.content-body {
    background:
        linear-gradient(180deg, var(--soft) 0%, #fff 46%, var(--cool) 100%);
}

.dark-mode.content-body {
    background:
        linear-gradient(180deg, #0d1117 0%, #121a24 54%, #172333 100%);
}

.content-main {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    padding: clamp(34px, 5vw, 68px) 0 clamp(62px, 8vw, 104px);
}

.content-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/noise.png");
    opacity: 0.035;
    pointer-events: none;
}

.content-shell {
    width: calc(100% - clamp(32px, 3vw, 72px));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) minmax(210px, 320px);
    gap: clamp(20px, 2.2vw, 44px);
    align-items: start;
}

.section-sidebar,
.article-toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 48px);
    color: var(--muted);
}

.section-sidebar {
    overflow: auto;
}

.section-sidebar {
    border-right: 1px solid var(--line);
    padding-right: 20px;
}

.article-toc {
    border-left: 1px solid var(--line);
    overflow-x: hidden;
    overflow-y: auto;
    padding-left: 16px;
    padding-right: 8px;
    scrollbar-color: color-mix(in srgb, var(--muted), transparent 50%) transparent;
    scrollbar-width: thin;
}

.article-toc::-webkit-scrollbar {
    width: 6px;
}

.article-toc::-webkit-scrollbar-track {
    background: transparent;
}

.article-toc::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted), transparent 58%);
}

.article-toc::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--muted), transparent 34%);
}

.section-menu,
#TableOfContents ul {
    display: grid;
    gap: 0.12rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#TableOfContents ul ul {
    margin-top: 0.08rem;
    padding-left: 0.72rem;
}

.section-menu a,
#TableOfContents a {
    display: block;
    border-radius: var(--radius-sm);
    padding: 0.28rem 0.42rem;
    color: inherit;
    font-size: 0.82rem;
    line-height: 1.22;
    text-decoration: none;
    overflow-wrap: anywhere;
    white-space: normal;
}

.section-menu a:hover,
#TableOfContents a:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--accent), transparent 92%);
}

.section-menu a[aria-current="page"],
#TableOfContents li.active > a {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent), transparent 91%);
    font-weight: 800;
}

.content-article {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 48px);
    background: var(--panel-strong);
    box-shadow: var(--surface-lift);
}

.entry-article {
    padding-bottom: clamp(30px, 5vw, 56px);
}

.article-header {
    margin-bottom: clamp(26px, 5vw, 46px);
}

.article-header h1 {
    max-width: 14ch;
    margin: 0;
    color: var(--deep);
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.crumbs {
    margin-bottom: 1.15rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.25rem;
    color: color-mix(in srgb, var(--muted), transparent 35%);
}

.crumbs a {
    color: inherit;
}

.article-body {
    min-width: 0;
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body > :last-child {
    margin-bottom: 0;
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
    color: var(--deep);
    line-height: 1.12;
    letter-spacing: 0;
}

.article-body h2 {
    margin-top: 2.5em;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.article-body h3 {
    margin-top: 2em;
    font-size: clamp(1.28rem, 2vw, 1.65rem);
}

.article-body h4 {
    margin-top: 1.75em;
    font-size: 1.08rem;
}

.article-body p,
.article-body li {
    color: color-mix(in srgb, var(--ink), transparent 8%);
}

.article-body a:not(.action-link):not(.secondary-action) {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.anchor-link {
    margin-left: 0.35rem;
    color: color-mix(in srgb, var(--accent), transparent 35%) !important;
    font-size: 0.8em;
    text-decoration: none !important;
}

.article-body blockquote {
    margin: 1.5rem 0;
    border-left: 3px solid var(--accent);
    padding: 0.1rem 0 0.1rem 1rem;
    color: var(--muted);
}

.article-body hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2rem 0;
}

.article-body img,
.article-body video {
    border-radius: var(--radius-md);
}

.article-body iframe {
    border: 0;
}

.article-body pre {
    margin: 1.35rem 0;
}

.entry-list {
    display: grid;
    gap: 18px;
    margin-top: 2.5rem;
}

.entry-preview {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.entry-preview h2 {
    margin: 0 0 0.35rem;
    color: var(--deep);
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
}

.entry-preview a:hover {
    text-decoration: none;
}

.entry-preview p {
    margin: 0.4rem 0;
    color: var(--muted);
}

.showcase-preview {
    display: block;
    max-width: 100%;
    max-height: 300px;
    margin: 1em 0;
    text-align: center;
}

.showcase-left,
.showcase-right {
    width: 100%;
}

.nightly-table {
    margin-bottom: 1.75rem;
}

/* Nightly builds */
.nightly-article {
    overflow: hidden;
}

.nightly-header {
    position: relative;
    margin: calc(-1 * clamp(24px, 4vw, 48px)) calc(-1 * clamp(24px, 4vw, 48px)) clamp(36px, 5vw, 54px);
    padding: clamp(30px, 5vw, 58px) clamp(24px, 4vw, 48px) clamp(32px, 4vw, 46px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent-2), transparent 76%) 0, transparent 20rem),
        linear-gradient(122deg, color-mix(in srgb, var(--accent), transparent 93%), transparent 54%);
}

.nightly-header::after {
    position: absolute;
    right: clamp(-100px, -5vw, -42px);
    bottom: clamp(-122px, -7vw, -62px);
    width: clamp(190px, 30vw, 300px);
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--accent), transparent 72%);
    border-radius: 50%;
    box-shadow: 0 0 0 26px color-mix(in srgb, var(--accent), transparent 91%), 0 0 0 54px color-mix(in srgb, var(--accent), transparent 95%);
    content: "";
    pointer-events: none;
}

.nightly-header > * {
    position: relative;
    z-index: 1;
}

.nightly-header .crumbs {
    margin-bottom: 1.65rem;
}

.nightly-eyebrow,
.nightly-kicker {
    margin: 0 0 0.52rem;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nightly-header h1 {
    max-width: 12ch;
}

.nightly-lede {
    max-width: 42rem;
    margin: 1.15rem 0 0;
    color: var(--muted) !important;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.55;
}

.nightly-caution {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 0.72rem;
    max-width: 48rem;
    margin-top: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--accent), transparent 74%);
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    background: color-mix(in srgb, var(--panel-strong), transparent 16%);
    backdrop-filter: blur(8px);
}

.nightly-caution-mark,
.nightly-note-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
}

.nightly-caution-mark {
    width: 24px;
    height: 24px;
    margin-top: 0.08rem;
}

.nightly-caution p {
    margin: 0;
    color: color-mix(in srgb, var(--ink), transparent 12%) !important;
    font-size: 0.9rem;
    line-height: 1.45;
}

.nightly-start {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.9fr);
    gap: clamp(24px, 4vw, 46px);
    align-items: end;
    margin-bottom: clamp(46px, 7vw, 76px);
    border: 1px solid color-mix(in srgb, var(--accent), transparent 79%);
    border-radius: var(--radius-md);
    padding: clamp(22px, 3.5vw, 34px);
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent), transparent 94%), color-mix(in srgb, var(--panel-strong), transparent 3%));
}

.nightly-start h2,
.nightly-section-heading h2,
.nightly-notes h2 {
    margin: 0;
    color: var(--deep);
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    line-height: 1.07;
}

.nightly-start p:not(.nightly-kicker),
.nightly-section-heading > p,
.nightly-notes p:not(.nightly-kicker) {
    margin: 0.8rem 0 0;
    color: var(--muted) !important;
    line-height: 1.55;
}

.nightly-actions {
    display: grid;
    gap: 10px;
}

.nightly-actions .action-link {
    justify-content: space-between;
    gap: 0.7rem;
}

.nightly-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 1.35rem;
}

.nightly-status {
    flex: 0 0 auto;
    width: fit-content;
    margin: 0 !important;
    border-radius: 999px;
    padding: 0.48rem 0.72rem;
    color: var(--accent) !important;
    background: color-mix(in srgb, var(--accent), transparent 91%);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.nightly-build-list {
    display: grid;
    gap: 16px;
}

.nightly-loading {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px;
}

.nightly-loading span {
    display: block;
    height: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--line), transparent 10%), color-mix(in srgb, var(--panel-strong), var(--accent) 14%), color-mix(in srgb, var(--line), transparent 10%));
    background-size: 200% 100%;
    animation: nightly-shimmer 1.5s ease-in-out infinite;
}

.nightly-loading span:nth-child(2) {
    width: 83%;
}

.nightly-loading span:nth-child(3) {
    width: 62%;
}

@keyframes nightly-shimmer {
    to { background-position: -200% 0; }
}

.nightly-release {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: color-mix(in srgb, var(--panel-strong), transparent 2%);
}

.nightly-release-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.15rem;
    background: color-mix(in srgb, var(--soft-2), transparent 14%);
}

.nightly-release-title {
    display: flex;
    min-width: 0;
    gap: 10px;
    align-items: center;
}

.article-body .nightly-release-date {
    margin: 0;
    color: var(--deep);
    font-family: var(--font-mono);
    font-size: 0.98rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.nightly-latest,
.nightly-file-count,
.nightly-platform {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.nightly-latest {
    padding: 0.28rem 0.5rem;
    color: #fff;
    background: var(--accent);
}

.nightly-file-count {
    padding: 0.3rem 0.52rem;
    color: var(--muted);
    background: color-mix(in srgb, var(--muted), transparent 92%);
}

.nightly-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.nightly-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: collapse;
}

.nightly-table th,
.nightly-table td {
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 15%);
    padding: 0.84rem 1.15rem;
    text-align: left;
    vertical-align: middle;
}

.nightly-table th {
    color: var(--muted);
    background: color-mix(in srgb, var(--soft), transparent 22%);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nightly-table tbody tr:last-child td {
    border-bottom: 0;
}

.nightly-table tbody tr:hover {
    background: color-mix(in srgb, var(--accent), transparent 95%);
}

.nightly-platform {
    padding: 0.33rem 0.54rem;
    color: var(--deep-2);
    background: color-mix(in srgb, var(--deep-2), transparent 91%);
}

.nightly-platform-cell,
.nightly-size,
.nightly-hash-cell {
    width: 1%;
    white-space: nowrap;
}

.nightly-archive-cell {
    width: 100%;
}

.nightly-download-link {
    display: block;
    color: var(--accent) !important;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    white-space: nowrap;
}

.nightly-download-link:hover {
    text-decoration: underline !important;
}

.nightly-download-link[aria-disabled="true"] {
    color: var(--muted) !important;
    cursor: not-allowed;
}

.nightly-size {
    color: var(--deep);
    font-family: var(--font-mono);
    font-size: 0.94rem;
    font-weight: 700;
    white-space: nowrap;
}

.nightly-hash-cell {
    min-width: 330px;
}

.nightly-hash-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.nightly-hash {
    color: var(--muted) !important;
    background: transparent !important;
    font-size: 0.74rem;
    line-height: 1.3;
}

.nightly-copy {
    border: 0;
    padding: 0;
    color: var(--accent);
    background: transparent;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
    cursor: pointer;
}

.nightly-copy:hover {
    text-decoration: underline;
}

.nightly-no-hash {
    color: var(--muted);
    font-size: 0.8rem;
    font-style: italic;
}

.nightly-show-more {
    width: fit-content;
    margin: 0.25rem auto 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.62rem 0.94rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent), transparent 94%);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.nightly-show-more:hover {
    background: color-mix(in srgb, var(--accent), transparent 89%);
}

.nightly-error {
    border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    background: color-mix(in srgb, var(--accent), transparent 94%);
}

.nightly-error p {
    margin: 0.4rem 0 1rem;
    color: var(--muted) !important;
}

.nightly-noscript {
    margin-top: 1rem;
}

.nightly-notes {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-top: clamp(50px, 7vw, 80px);
    border-top: 1px solid var(--line);
    padding: clamp(30px, 4vw, 42px) 0 0;
}

.nightly-note-icon {
    width: 42px;
    height: 42px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent), transparent 89%);
    font-size: 1rem;
}

/* Install guide */
.install-article {
    overflow: hidden;
}

.install-main .content-layout {
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) minmax(150px, 210px);
    gap: clamp(20px, 1.7vw, 32px);
}

.install-header {
    position: relative;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.install-header::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -160px;
    width: min(38vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 79%) 0%, transparent 68%);
    pointer-events: none;
}

.install-eyebrow,
.install-kicker {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.install-lede {
    max-width: 48rem;
    margin: 1.2rem 0 0;
    color: var(--muted) !important;
    font-size: clamp(1.05rem, 1.45vw, 1.22rem);
    line-height: 1.55;
}

.install-article h2,
.install-article h3 {
    margin: 0;
}

.install-quickstart {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px 36px;
    align-items: start;
    margin: 0 -0.5rem clamp(44px, 6vw, 68px);
    border: 1px solid color-mix(in srgb, var(--accent), transparent 76%);
    border-radius: var(--radius-md);
    padding: clamp(24px, 3vw, 32px);
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent), transparent 94%), color-mix(in srgb, var(--panel-strong), transparent 6%));
}

.install-quickstart h2,
.install-section-heading h2,
.install-more h2,
.install-next h2 {
    color: var(--deep);
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    line-height: 1.07;
}

.install-quickstart p:not(.install-kicker),
.install-section-heading > p,
.install-more p:not(.install-kicker),
.install-next p:not(.install-kicker),
.install-source-card > p {
    margin: 0.8rem 0 0;
    color: var(--muted) !important;
    line-height: 1.55;
}

.install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.install-actions .action-link {
    gap: 0.46rem;
    white-space: nowrap;
}

.install-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08em;
    line-height: 1;
}

.install-actions .install-button-icon {
    transform: translateY(-0.04em);
}

.install-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 1.35rem;
}

.install-section-heading > p {
    max-width: 24rem;
    margin: 0;
    font-size: 0.92rem;
}

.install-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0;
    border-radius: 999px;
    padding: 0.46rem 0.7rem;
    color: var(--accent) !important;
    background: color-mix(in srgb, var(--accent), transparent 91%);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.install-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    overflow-x: auto;
}

.install-tabs button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 0.58rem 0.9rem;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.install-tabs button:hover,
.install-tabs button:focus-visible {
    color: var(--ink);
    background: color-mix(in srgb, var(--accent), transparent 92%);
    outline: none;
}

.install-tabs button[aria-selected="true"] {
    color: #fff;
    background: #1e5085;
    box-shadow: 0 5px 12px rgba(20, 32, 42, 0.18);
}

.dark-mode .install-tabs button[aria-selected="true"] {
    color: #fff;
    background: #30424f;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
}

.install-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: clamp(22px, 3vw, 32px);
    background: color-mix(in srgb, var(--panel-strong), transparent 3%);
}

.install-panel[hidden],
.install-build-command[hidden] {
    display: none;
}

.install-panel-intro {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 1.2rem;
}

.install-platform-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent), transparent 90%);
    font-size: 1.35rem;
    font-weight: 900;
}

.install-panel h3,
.install-source-card h3 {
    color: var(--deep);
    font-size: 1.13rem;
}

.install-panel-intro p {
    margin: 0.35rem 0 0;
    color: var(--muted) !important;
    font-size: 0.94rem;
    line-height: 1.45;
}

.install-steps {
    display: grid;
    gap: 0.95rem;
    margin: 0;
    padding-left: 1.35rem;
}

.install-steps li {
    padding-left: 0.35rem;
    color: var(--ink) !important;
    line-height: 1.55;
}

.install-steps li::marker {
    color: var(--accent);
    font-weight: 900;
}

.install-steps p {
    margin: 0.45rem 0 0;
    color: var(--muted) !important;
}

.install-command,
.install-build-command {
    display: flex;
    align-items: stretch;
    margin-top: 0.62rem;
    border: 1px solid color-mix(in srgb, var(--line), var(--deep) 18%);
    border-radius: 10px;
    overflow: hidden;
    background: var(--code);
}

.install-command code,
.install-build-command code {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 0.72rem 0.8rem;
    overflow-x: auto;
    color: #f6d39a;
    background: transparent;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.copy-command {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0 0.7rem;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.copy-icon {
    display: block;
    color: #fff;
    font-size: 1.04em;
    line-height: 1;
    opacity: 0.86;
}

.copy-command:hover,
.copy-command:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    outline: none;
}

.install-details {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.install-details summary {
    color: var(--deep);
    font-weight: 800;
    cursor: pointer;
}

.install-details > :last-child {
    margin-bottom: 0;
}

.install-details img {
    display: block;
    max-width: min(100%, 640px);
    margin-top: 1rem;
    border: 1px solid var(--line);
}

.install-source {
    margin-top: clamp(44px, 6vw, 68px);
}

.install-source-grid,
.install-more {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.install-source-card,
.install-more-card,
.install-help-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: clamp(20px, 2.8vw, 28px);
    background: color-mix(in srgb, var(--panel-strong), transparent 3%);
}

.install-step-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.install-step-heading > span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.install-source-notes {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
}

.install-source-notes[open] summary {
    margin-bottom: 1rem;
}

.install-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
}

.install-notes-grid h3 {
    font-size: 0.95rem;
}

.install-notes-grid p {
    margin: 0.42rem 0 0;
    color: var(--muted) !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

.install-more {
    margin-top: clamp(44px, 6vw, 68px);
}

.install-more-card {
    background: linear-gradient(130deg, color-mix(in srgb, var(--accent), transparent 93%), var(--panel-strong));
}

.install-help-card {
    background: #1e5085;
}

.dark-mode .install-help-card {
    background: #172333;
}

.install-help-card h2,
.install-help-card p,
.install-help-card .install-kicker {
    color: #fff !important;
}

.install-help-card p:not(.install-kicker) {
    margin: 0.8rem 0 1.1rem;
    color: color-mix(in srgb, #fff, transparent 25%) !important;
    line-height: 1.55;
}

.install-help-card > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.install-help-card a {
    border: 1px solid color-mix(in srgb, #fff, transparent 68%);
    border-radius: 999px;
    padding: 0.47rem 0.72rem;
    color: #fff !important;
    font-size: 0.83rem;
    font-weight: 800;
    text-decoration: none !important;
}

.install-help-card a:hover {
    background: color-mix(in srgb, #fff, transparent 88%);
}

.install-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    margin-top: 1rem;
    color: var(--accent) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.install-text-link:hover {
    text-decoration: underline !important;
}

.install-next {
    margin-top: clamp(44px, 6vw, 68px);
    border-top: 1px solid var(--line);
    padding-top: clamp(28px, 4vw, 40px);
}

.install-next p:not(.install-kicker) {
    max-width: 37rem;
}

@media (max-width: 720px) {
    .nightly-header {
        margin: -22px -22px 34px;
        padding: 30px 22px 34px;
    }

    .nightly-header::after {
        right: -88px;
        bottom: -92px;
        width: 210px;
    }

    .nightly-start {
        grid-template-columns: 1fr;
        margin-bottom: 46px;
    }

    .nightly-section-heading {
        display: block;
    }

    .nightly-status {
        margin-top: 0.85rem !important;
        white-space: normal;
    }

    .nightly-release-heading {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .nightly-file-count {
        justify-self: start;
    }

    .install-quickstart,
    .install-source-grid,
    .install-more,
    .install-notes-grid {
        grid-template-columns: 1fr;
    }

    .install-quickstart {
        margin-inline: 0;
    }

    .install-section-heading {
        display: block;
    }

    .install-section-heading > p,
    .install-status {
        margin-top: 0.85rem;
    }

    .install-actions .action-link {
        flex: 1 1 12rem;
    }

    .copy-command .copy-label {
        display: none;
    }

    .copy-command {
        padding-inline: 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 1120px) {
    .install-main .content-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

body {
    counter-reset: h2;
}

h2 {
    counter-reset: h3;
}

h3 {
    counter-reset: h4;
}

h4 {
    counter-reset: h5;
}

article[autonumbering] h2::before {
    counter-increment: h2;
    content: counter(h2) ". ";
}

article[autonumbering] h3::before {
    counter-increment: h3;
    content: counter(h2) "." counter(h3) ". ";
}

article[autonumbering] h4::before {
    counter-increment: h4;
    content: counter(h2) "." counter(h3) "." counter(h4) ". ";
}

@media (min-width: 980px) {
    .showcase-left,
    .showcase-right {
        width: 48%;
        margin-top: 0.3em;
        margin-bottom: 0.125em;
    }

    .showcase-left {
        float: left;
        margin-right: 1em;
    }

    .showcase-right {
        float: right;
        margin-left: 1em;
    }
}

@media (max-width: 1120px) {
    .content-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-sidebar,
    .article-toc {
        position: static;
        max-height: none;
        border: 0;
        padding: 0;
    }

    .section-sidebar {
        display: none;
    }

    .article-toc {
        order: 3;
    }

    .article-toc-inner {
        border-top: 1px solid var(--line);
        padding-top: 20px;
    }
}

@media (max-width: 720px) {
    .content-shell {
        width: min(100% - 28px, 1880px);
    }

    .content-article {
        padding: 22px;
        border-radius: var(--radius-md);
    }

    .article-header h1 {
        font-size: clamp(2rem, 14vw, 3.3rem);
    }
}
