﻿
:root {
    --bg: #f1f4f8;
    --surface: #ffffff;
    --fg: #14202e;
    --muted: #566577;
    --line: #dde3ea;
    --accent: #1c3f94;
    --on-accent: #ffffff;
    --accent-soft: #e8eefb;
    --gold: #8a6508;
    --nav-bg: #12295a;
    --nav-fg: #e9eefc;
    --side-bg: #0d1a2d;
    --side-fg: #d6deea;
    --side-muted: #8696ad;
    --side-line: rgba(255,255,255,.09);
    --side-hover: rgba(255,255,255,.06);
    --side-accent: #e6b94a;
    --cover-a: #10244a;
    --cover-b: #1c3f94;
    --font-display: "Newsreader", Georgia, "Times New Roman", serif;
    --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0a1220;
        --surface: #111c2e;
        --fg: #e8edf4;
        --muted: #9aa9bc;
        --line: #223249;
        --accent: #86a8ff;
        --on-accent: #0a1220;
        --accent-soft: #162844;
        --gold: #e6b94a;
        --nav-bg: #0b1a3a;
        --side-bg: #070e19;
        --cover-a: #0c1b38;
        --cover-b: #21479f;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0a1220;
    --surface: #111c2e;
    --fg: #e8edf4;
    --muted: #9aa9bc;
    --line: #223249;
    --accent: #86a8ff;
    --on-accent: #0a1220;
    --accent-soft: #162844;
    --gold: #e6b94a;
    --nav-bg: #0b1a3a;
    --side-bg: #070e19;
    --cover-a: #0c1b38;
    --cover-b: #21479f;
    color-scheme: dark;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0 0 auto;
        height: env(safe-area-inset-top, 0px);
        background: var(--nav-bg);
        z-index: 50;
    }

a {
    color: var(--accent);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
    margin: 0;
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrap {
    max-width: 1280px;
    margin-inline: auto;
    padding-left: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(16px, 3vw, 32px), env(safe-area-inset-right, 0px));
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    font: 600 14px/1.2 var(--font-body);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, background .15s, border-color .15s;
}

    .btn:hover {
        text-decoration: none;
        transform: translateY(-1px);
    }

.btn-gold {
    background: var(--side-accent);
    color: #0d1a2d;
}

    .btn-gold:hover {
        background: #f0c75e;
    }

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.35);
}

    .btn-ghost:hover {
        border-color: #fff;
    }

.btn-line {
    background: var(--surface);
    color: var(--fg);
    border-color: var(--line);
}

    .btn-line:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.icon-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--side-line);
    background: transparent;
    color: var(--side-fg);
    border-radius: 6px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .icon-btn:hover {
        border-color: var(--side-accent);
        color: var(--side-accent);
    }

/* ---------- Utility bar ---------- */
.util {
    background: var(--side-bg);
    color: var(--side-muted);
    font-size: 12.5px;
}

.util-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 7px;
    flex-wrap: wrap;
}

.util-l {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .04em;
}

    .util-l b {
        color: var(--side-accent);
        font-weight: 500;
    }

.util-r {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .util-r a {
        color: var(--side-fg);
    }

/* ---------- Masthead ---------- */
.mast {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.mast-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    padding-block: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--fg);
    min-width: 0;
}

    .brand:hover {
        text-decoration: none;
    }

    .brand svg {
        flex: none;
    }

.lg-r {
    stroke: var(--gold);
}

.lg-v {
    stroke: var(--accent);
}

.lg-d {
    fill: var(--gold);
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.005em;
}

.brand-tag {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.mast-act {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 340px;
    justify-content: flex-end;
    min-width: 0;
}

.search {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 380px;
}

    .search input {
        width: 100%;
        height: 44px;
        padding: 0 14px 0 42px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: var(--bg);
        color: var(--fg);
        font: 400 14.5px var(--font-body);
    }

        .search input::placeholder {
            color: var(--muted);
        }

    .search svg {
        position: absolute;
        left: 13px;
        top: 13px;
        color: var(--muted);
    }

/* ---------- Menu bar ---------- */
.navbar {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 40;
    background: var(--nav-bg);
    color: var(--nav-fg);
}

.nav-in {
    display: flex;
    align-items: center;
    min-height: 52px;
    position: relative;
}

.menu-btn {
    display: none;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--nav-fg);
    font: 600 14.5px var(--font-body);
    cursor: pointer;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

    .menu > li {
        position: relative;
    }

        .menu > li > a, .menu > li > button {
            display: flex;
            align-items: center;
            gap: 8px;
            height: 52px;
            padding: 0 15px;
            color: var(--nav-fg);
            font: 500 14.5px var(--font-body);
            background: none;
            border: 0;
            cursor: pointer;
            text-decoration: none;
        }

            .menu > li > a:hover, .menu > li > button:hover, .dd.open > button {
                background: rgba(255,255,255,.09);
            }

            .menu > li > button::after {
                content: "";
                width: 6px;
                height: 6px;
                border-right: 1.5px solid currentColor;
                border-bottom: 1.5px solid currentColor;
                transform: rotate(45deg) translateY(-2px);
                opacity: .8;
            }

.sub {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 240px;
    z-index: 45;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--side-accent);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 22px 44px -14px rgba(8,16,32,.4);
    padding: 8px;
}

    .sub.end {
        left: auto;
        right: 0;
    }

    .sub a {
        display: block;
        padding: 9px 12px;
        border-radius: 6px;
        color: var(--fg);
        font-size: 14px;
    }

        .sub a:hover {
            background: var(--accent-soft);
            color: var(--accent);
            text-decoration: none;
        }

.dd.open > .sub {
    display: block;
}

@media (hover: hover) and (min-width: 961px) {
    .dd:hover > .sub, .dd:focus-within > .sub {
        display: block;
    }
}

/* ---------- Two-column container ---------- */
.container {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    padding-block: 28px 56px;
    align-items: start;
}

.content {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.side {
    display: grid;
    gap: 16px;
    min-width: 0;
}

/* Sidebar cards */
.sb-nav {
    background: var(--side-bg);
    color: var(--side-fg);
    border-radius: 14px;
    padding: 10px 10px 12px;
    border: 1px solid rgba(255,255,255,.08);
    position: relative;
    overflow: hidden;
}

    .sb-nav::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 160px;
        pointer-events: none;
        background: radial-gradient(120% 100% at 0% 0%, rgba(230,185,74,.14), transparent 60%);
    }

    .sb-nav > * {
        position: relative;
    }

.sb-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 8px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

    .sb-title::before {
        content: "";
        width: 4px;
        height: 18px;
        border-radius: 2px;
        background: var(--side-accent);
    }

.sb-nav a, .sb-nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--side-fg);
    cursor: pointer;
}

    .sb-nav a:hover, .sb-nav summary:hover {
        background: var(--side-hover);
        text-decoration: none;
        color: #fff;
    }

    .sb-nav a.on {
        background: rgba(230,185,74,.14);
        color: #fff;
        box-shadow: inset 2px 0 0 var(--side-accent);
    }

.sb-nav summary {
    list-style: none;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--side-muted);
}

    .sb-nav summary::-webkit-details-marker {
        display: none;
    }

    .sb-nav summary::after {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        transition: transform .2s;
        margin-right: 3px;
    }

.sb-nav details[open] > summary::after {
    transform: rotate(-135deg);
}

.sb-nav details ul {
    padding: 2px 0 4px 6px;
    margin-left: 12px;
    border-left: 1px solid var(--side-line);
}

.sb-nav details a {
    font-weight: 400;
    font-size: 14px;
    padding: 7px 12px;
}

.sb-cta {
    border-radius: 14px;
    padding: 22px;
    background: linear-gradient(150deg, var(--cover-b), var(--cover-a));
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
}

    .sb-cta h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .sb-cta p {
        font-size: 14px;
        color: #c9d4e6;
        margin-bottom: 16px;
    }

    .sb-cta .btn {
        width: 100%;
    }

.sb-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 22px;
}

    .sb-card h3 {
        font-size: 19px;
        margin-bottom: 12px;
    }

.glance {
    margin: 0;
    display: grid;
    gap: 0;
}

    .glance div {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 9px 0;
        border-top: 1px solid var(--line);
        font-size: 14px;
    }

        .glance div:first-child {
            border-top: 0;
            padding-top: 0;
        }

    .glance dt {
        color: var(--muted);
    }

    .glance dd {
        margin: 0;
        font-weight: 600;
        text-align: right;
    }

/* ---------- Hero ---------- */
.hero {
    border-radius: 14px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1a33 0%, #10244a 55%, #17357a 100%);
    padding: clamp(24px, 4vw, 44px);
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .5;
        pointer-events: none;
        background: radial-gradient(60% 80% at 90% 10%, rgba(230,185,74,.2), transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px);
    }

.hero-in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 36px;
    align-items: center;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--side-accent);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

    .eyebrow span + span::before {
        content: "/";
        margin-right: 14px;
        opacity: .45;
    }

.hero h1 {
    font-size: clamp(34px, 4.6vw, 52px);
    margin: 16px 0 16px;
    letter-spacing: -.01em;
}

    .hero h1 em {
        font-style: italic;
        font-weight: 400;
        color: var(--side-accent);
    }

.hero p.lead {
    max-width: 56ch;
    font-size: 16.5px;
    color: #c9d4e6;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.cover {
    justify-self: center;
    width: min(100%, 220px);
    aspect-ratio: 3 / 4;
    border-radius: 4px 10px 10px 4px;
    background: linear-gradient(160deg, var(--cover-b), var(--cover-a) 70%);
    border: 1px solid rgba(255,255,255,.2);
    position: relative;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 26px 50px -18px rgba(0,0,0,.6), 0 0 0 5px rgba(255,255,255,.04);
    transform: rotate(1.5deg);
}

    .cover::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 12px;
        background: linear-gradient(90deg, rgba(0,0,0,.35), transparent);
        border-radius: 4px 0 0 4px;
    }

.cover-top {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #aebde0;
}

.cover-mark {
    margin: auto 0 0;
}

    .cover-mark svg {
        width: 52px;
        height: auto;
        margin-bottom: 12px;
        display: block;
    }

.cover-title {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.cover-sub {
    margin-top: 7px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--side-accent);
}

.cover-rule {
    height: 1px;
    background: rgba(255,255,255,.28);
    margin: 16px 0 10px;
}

.cover-issue {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    color: #d4def2;
}

/* ---------- Panels ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(20px, 3vw, 32px);
}

    .panel.soft {
        background: var(--accent-soft);
        border-color: transparent;
    }

.sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 24px;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.sec-head h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.sec-head p {
    color: var(--muted);
    max-width: 54ch;
    margin-top: 10px;
}

.chip {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
}

    .chip.hot {
        background: var(--accent-soft);
        color: var(--accent);
        border-color: transparent;
    }

.issue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.articles {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 24px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

    .art:last-of-type {
        border-bottom: 0;
    }

    .art[hidden] {
        display: none;
    }

.art-type {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.art h3 {
    font-size: 20px;
    margin: 6px 0 6px;
}

    .art h3 a {
        color: var(--fg);
    }

        .art h3 a:hover {
            color: var(--accent);
        }

.art-by {
    font-size: 14.5px;
    color: var(--muted);
}

    .art-by b {
        color: var(--fg);
        font-weight: 500;
    }

.art-side {
    grid-row: 1 / span 2;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

    .art-side .links {
        display: flex;
        gap: 8px;
    }

        .art-side .links a {
            padding: 6px 12px;
            border: 1px solid var(--line);
            border-radius: 6px;
            font-family: var(--font-body);
            font-weight: 600;
            font-size: 12.5px;
        }

            .art-side .links a:hover {
                border-color: var(--accent);
                text-decoration: none;
            }

.empty {
    padding: 36px 24px;
    text-align: center;
    color: var(--muted);
}

.sample-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

.call-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 32px;
    align-items: start;
}

.call h2 {
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 14px;
}

.call p {
    color: var(--muted);
    max-width: 56ch;
}

.call .cta-row {
    margin-top: 22px;
}

.types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

    .types li {
        padding: 14px 16px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--surface);
    }

    .types b {
        display: block;
        font-size: 14.5px;
        font-weight: 600;
    }

    .types span {
        font-size: 13px;
        color: var(--muted);
    }

.steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    counter-reset: s;
}

.step {
    position: relative;
    padding: 0 12px 0 0;
}

    .step::before {
        counter-increment: s;
        content: counter(s);
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--surface);
        border: 1.5px solid var(--accent);
        color: var(--accent);
        font-family: var(--font-mono);
        font-weight: 500;
        position: relative;
        z-index: 1;
    }

    .step::after {
        content: "";
        position: absolute;
        top: 19px;
        left: 38px;
        right: 0;
        height: 1px;
        background: var(--line);
    }

    .step:last-child::after {
        display: none;
    }

    .step h3 {
        font-size: 18px;
        margin: 14px 0 6px;
    }

    .step p {
        font-size: 13.5px;
        color: var(--muted);
        line-height: 1.55;
    }

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.tile {
    display: block;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    transition: border-color .2s, transform .2s;
    color: var(--fg);
}

    .tile:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
        text-decoration: none;
    }

    .tile code {
        font-family: var(--font-mono);
        font-size: 11px;
        letter-spacing: .14em;
        color: var(--accent);
        background: var(--accent-soft);
        padding: 3px 8px;
        border-radius: 4px;
    }

    .tile h3 {
        font-size: 18px;
        margin: 14px 0 6px;
    }

    .tile p {
        font-size: 13.5px;
        color: var(--muted);
        line-height: 1.55;
    }

.board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.person {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    min-width: 0;
}

.avatar {
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cover-b), var(--cover-a));
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
}

.person b {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.person span {
    display: block;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.person .role {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 3px;
}

.pol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

    .pol a {
        display: block;
        padding: 18px 20px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--bg);
        color: var(--fg);
    }

        .pol a:hover {
            border-color: var(--accent);
            text-decoration: none;
        }

    .pol b {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 600;
    }

    .pol span {
        display: block;
        margin-top: 6px;
        font-size: 13.5px;
        color: var(--muted);
        line-height: 1.55;
    }

/* ---------- Footer ---------- */
.foot {
    background: var(--side-bg);
    color: var(--side-fg);
    padding-block: 48px 28px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.foot h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--side-accent);
    margin-bottom: 14px;
}

.foot p, .foot li {
    font-size: 14px;
    color: var(--side-muted);
}

.foot ul {
    display: grid;
    gap: 8px;
}

.foot a {
    color: var(--side-fg);
}

.foot .fname {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

    .copy-row code {
        font-family: var(--font-mono);
        font-size: 13px;
        color: var(--side-fg);
        overflow-wrap: anywhere;
    }

    .copy-row button {
        font: 500 12px var(--font-body);
        padding: 5px 10px;
        border-radius: 6px;
        border: 1px solid var(--side-line);
        background: transparent;
        color: var(--side-fg);
        cursor: pointer;
    }

        .copy-row button:hover {
            border-color: var(--side-accent);
        }

.legal {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--side-line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    font-size: 13px;
    color: var(--side-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 28px;
    }

    .step:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 1100px) {
    .hero-in {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .cover {
        justify-self: start;
        transform: none;
    }
}

@media (max-width: 960px) {
    .container {
        grid-template-columns: minmax(0, 1fr);
    }

    .side {
        order: 2;
    }

    .menu-btn {
        display: inline-flex;
    }

    .menu {
        display: none;
        position: absolute;
        left: calc(-1 * max(clamp(16px, 3vw, 32px), env(safe-area-inset-left, 0px)));
        right: calc(-1 * max(clamp(16px, 3vw, 32px), env(safe-area-inset-right, 0px)));
        top: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        background: var(--nav-bg);
        border-top: 1px solid rgba(255,255,255,.12);
        padding: 6px max(clamp(16px, 3vw, 32px), env(safe-area-inset-right, 0px)) 14px max(clamp(16px, 3vw, 32px), env(safe-area-inset-left, 0px));
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        box-shadow: 0 24px 40px -16px rgba(0,0,0,.5);
    }

        .menu.open {
            display: flex;
        }

        .menu > li > a, .menu > li > button {
            width: 100%;
            height: 46px;
            padding: 0 4px;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255,255,255,.08);
        }

            .menu > li > a:hover, .menu > li > button:hover, .dd.open > button {
                background: transparent;
            }

    .sub, .sub.end {
        position: static;
        min-width: 0;
        border: 0;
        box-shadow: none;
        background: rgba(255,255,255,.05);
        border-radius: 8px;
        margin: 6px 0;
        padding: 4px;
    }

        .sub a {
            color: var(--nav-fg);
        }

            .sub a:hover {
                background: rgba(255,255,255,.08);
                color: #fff;
            }

    .call-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .foot-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

        .foot-grid > :first-child {
            grid-column: 1 / -1;
        }

    .mast-act {
        flex-basis: 100%;
        justify-content: flex-start;
    }

    .search {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .util-l .opt {
        display: none;
    }

    .mast-in {
        padding-block: 16px;
    }

    .brand svg {
        width: 40px;
        height: 40px;
    }

    .brand-tag {
        letter-spacing: .06em;
        font-size: 10px;
    }

    .mast-act .btn {
        display: none;
    }

    .art {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px 16px;
    }

    .art-side {
        grid-row: auto;
        grid-column: 1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }

    .step {
        padding: 0 0 24px 56px;
        min-height: 38px;
    }

        .step::before {
            position: absolute;
            left: 0;
            top: 0;
        }

        .step::after, .step:nth-child(3)::after {
            display: block;
            top: 38px;
            bottom: 0;
            left: 19px;
            right: auto;
            width: 1px;
            height: auto;
        }

        .step:last-child::after {
            display: none;
        }

        .step h3 {
            margin-top: 0;
            padding-top: 5px;
        }

    .foot-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }
}
