/* =====================================================================
   PulsedMC Forums, shared theme
   Deep navy surfaces, rounded cards, gold accent. Used by every page.
   No emoji anywhere; all icons come from the sprite in icons.svg.
   ===================================================================== */

:root {
    /* Surfaces - deep navy, each step lighter than the last */
    --bg:        #0e1017;
    --bg-soft:   #12151d;
    --surface:   #171b25;
    --surface-2: #1e232f;
    --surface-3: #262c3a;
    --border:    #2a3040;
    --border-lt: #343c4e;

    /* Text */
    --text:  #e8ebf2;
    --dim:   #98a1b3;
    --faint: #6b7488;

    /* Brand - PulsedMC gold */
    --accent:      #ffaa00;
    --accent-lite: #ffc44d;
    --accent-dark: #cc8500;
    --accent-glow: rgba(255, 170, 0, 0.14);

    /* Status */
    --green:   #3fe38f;
    --green-d: rgba(63, 227, 143, 0.12);
    --red:     #ff6161;
    --red-d:   rgba(255, 97, 97, 0.11);
    --amber:   #ffc44d;
    --blue:    #5b9dff;

    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

    --r-sm: 6px;
    --r:    10px;
    --r-lg: 14px;

    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    background-image: radial-gradient(1100px 460px at 50% -180px, var(--accent-glow), transparent 70%);
    background-repeat: no-repeat;
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-lite); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

h1, h2, h3 { font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }

::selection { background: var(--accent); color: #1a1200; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- icons --------------------------------------------------------- */
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===================================================================
   Header
   =================================================================== */
.masthead {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(18, 21, 29, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.masthead-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo .mark {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--accent-lite), var(--accent-dark));
    display: grid; place-items: center;
    box-shadow: 0 2px 10px rgba(255,170,0,.3);
    color: #241a00;
}
.logo .mark .i { width: 17px; height: 17px; vertical-align: 0; }
.logo span.dim { color: var(--faint); font-weight: 600; }

.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a {
    padding: 7px 13px;
    border-radius: var(--r-sm);
    color: var(--dim);
    font-weight: 500;
    font-size: 14px;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--surface-2); color: var(--accent); }

.masthead .spacer { flex: 1; }

.search { position: relative; width: 220px; }
.search input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px 8px 36px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 13.5px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px var(--accent-glow); }
.search .s-ico {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
    pointer-events: none;
    display: flex;
}
.search .s-ico .i { width: 14px; height: 14px; vertical-align: 0; }

.avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3d4657, #232936);
    border: 1px solid var(--border-lt);
    display: grid; place-items: center;
    color: var(--dim);
    flex: none;
}
.avatar .i { width: 16px; height: 16px; vertical-align: 0; }

/* ===================================================================
   Breadcrumb strip
   =================================================================== */
.crumbs-bar { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.crumbs {
    max-width: 1240px;
    margin: 0 auto;
    padding: 11px 24px;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: var(--faint);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--accent); text-decoration: none; }
.crumbs .sep { color: #3d4455; display: flex; }
.crumbs .sep .i { width: 12px; height: 12px; vertical-align: 0; }
.crumbs .here { color: var(--text); font-weight: 500; }

/* ===================================================================
   Page shell
   =================================================================== */
.shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 24px 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 24px;
    align-items: start;
}
.shell.wide { grid-template-columns: minmax(0, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

/* ===================================================================
   Thread header
   =================================================================== */
.thread-head { padding: 24px 28px 20px; margin-bottom: 20px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
    font-size: 11px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 5px;
    background: var(--surface-3);
    color: var(--dim);
}
.tag.gold  { background: var(--accent-glow); color: var(--accent-lite); }
.tag.green { background: var(--green-d);     color: var(--green); }

.thread-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.thread-head .sub { margin: 12px 0 0; color: var(--dim); font-size: 15.5px; max-width: 68ch; }

.byline {
    display: flex; align-items: center; gap: 12px;
    margin-top: 20px; padding-top: 18px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.byline .av {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-lite), var(--accent-dark));
    display: grid; place-items: center;
    font-weight: 800; font-size: 14px; color: #241a00;
    flex: none;
}
.byline .who { line-height: 1.35; }
.byline .who .name { font-weight: 600; font-size: 14px; }
.byline .who .name .staff {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: 1px;
}
.byline .who .when { font-size: 12.5px; color: var(--faint); }
.byline .stats {
    margin-left: auto;
    display: flex; gap: 20px;
    font-size: 13px; color: var(--faint);
}
.byline .stats span { display: inline-flex; align-items: center; gap: 6px; }
.byline .stats .i { width: 14px; height: 14px; vertical-align: 0; color: var(--faint); }
.byline .stats b { color: var(--text); font-weight: 600; }

/* ===================================================================
   Post body
   =================================================================== */
.post { padding: 8px 28px 28px; }

.post p { margin: 15px 0; color: #d3d9e4; }
.post ul, .post ol { margin: 15px 0; padding-left: 22px; }
.post li { margin-bottom: 9px; color: #d3d9e4; }
.post li::marker { color: var(--accent-dark); }
.post b, .post strong { color: var(--text); font-weight: 600; }

/* --- step sections, on a timeline rail ----------------------------- */
.step {
    position: relative;
    padding: 26px 0 26px 60px;
    border-bottom: 1px solid var(--border);
}
.step:last-of-type { border-bottom: 0; }
.step::before {
    content: "";
    position: absolute;
    left: 19px; top: 60px; bottom: -1px;
    width: 2px;
    background: var(--border);
}
.step:last-of-type::before { display: none; }

.step-num {
    position: absolute;
    left: 0; top: 24px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border-lt);
    color: var(--accent);
    display: grid; place-items: center;
    font-weight: 800; font-size: 15px;
    z-index: 1;
}
.step-num .i { width: 18px; height: 18px; vertical-align: 0; }

.step > h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -0.02em; }
.step h3 { margin: 26px 0 10px; font-size: 15px; color: var(--accent-lite); font-weight: 600; }

/* inline chips for UI paths and keys */
.ui {
    display: inline-block;
    background: var(--surface-2);
    border: 1px solid var(--border-lt);
    border-radius: var(--r-sm);
    padding: 1px 7px;
    font-size: 13px; font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}
.post p code, .post li code, td code, .note code, .warn code {
    font-family: var(--mono);
    font-size: 12.8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    color: var(--accent-lite);
}

/* --- code blocks ---------------------------------------------------- */
.code {
    margin: 18px 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}
.code-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 12px 8px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.code-bar .name {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
    display: inline-flex; align-items: center; gap: 8px;
    min-width: 0;
}
.code-bar .name .i { width: 13px; height: 13px; vertical-align: 0; color: var(--faint); }
.copy {
    font-family: var(--sans);
    font-size: 12px; font-weight: 500;
    background: transparent;
    color: var(--dim);
    border: 1px solid var(--border-lt);
    border-radius: var(--r-sm);
    padding: 3px 10px 3px 8px;
    cursor: pointer;
    transition: .15s;
    display: inline-flex; align-items: center; gap: 6px;
    flex: none;
}
.copy:hover { background: var(--surface-3); color: var(--text); }
.copy.done { color: var(--green); border-color: var(--green); }
.copy .i { width: 13px; height: 13px; vertical-align: 0; }
.code pre {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    color: #cdd4e0;
}
.code .c { color: var(--faint); }
.code .g { color: var(--green); }
.code .y { color: var(--accent-lite); }
.code .r { color: var(--red); }
.code .b { color: var(--blue); }

/* --- callouts -------------------------------------------------------- */
.note, .warn {
    display: flex; gap: 13px;
    margin: 20px 0;
    padding: 15px 17px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-left: 3px solid var(--accent);
}
.warn { border-left-color: var(--red); background: var(--red-d); }
.note > .i { color: var(--accent); margin-top: 2px; }
.warn > .i { color: var(--red);    margin-top: 2px; }
.note .txt, .warn .txt { min-width: 0; }
.note .lbl, .warn .lbl {
    display: block;
    font-size: 11px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--accent);
}
.warn .lbl { color: var(--red); }
.note p, .warn p { margin: 0; font-size: 14.2px; }
.note p + p, .warn p + p { margin-top: 8px; }
.note ul, .warn ul { margin: 8px 0 0; font-size: 14.2px; }

/* --- tables ----------------------------------------------------------- */
.table-wrap {
    margin: 18px 0;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
th {
    text-align: left;
    padding: 11px 15px;
    background: var(--surface-2);
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--dim);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    color: #d3d9e4;
    vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }

/* --- accordion ---------------------------------------------------------- */
.faq { margin-top: 10px; }
details {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 10px;
    overflow: hidden;
}
details[open] { border-color: var(--border-lt); }
summary {
    cursor: pointer;
    padding: 14px 17px;
    font-weight: 600; font-size: 14.5px;
    color: var(--text);
    list-style: none;
    display: flex; align-items: center; gap: 11px;
    transition: background .15s;
}
summary:hover { background: var(--surface-3); }
summary::-webkit-details-marker { display: none; }
summary .chev { flex: none; color: var(--faint); transition: transform .2s; display: flex; }
summary .chev .i { width: 12px; height: 12px; vertical-align: 0; }
details[open] summary .chev { transform: rotate(90deg); color: var(--accent); }
details .body { padding: 14px 17px 17px 41px; border-top: 1px solid var(--border); }
details .body > :first-child { margin-top: 0; }
details .body > :last-child { margin-bottom: 0; }

/* --- reaction bar ------------------------------------------------------ */
.reactions {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px; padding-top: 20px;
    border-top: 1px solid var(--border);
}
.reactions .q { font-size: 14px; color: var(--dim); margin-right: 4px; }
.react {
    font-family: var(--sans);
    font-size: 13.5px; font-weight: 500;
    background: var(--surface-2);
    color: var(--dim);
    border: 1px solid var(--border-lt);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    transition: .15s;
}
.react:hover { background: var(--surface-3); color: var(--text); }
.react.on { background: var(--accent-glow); border-color: var(--accent-dark); color: var(--accent-lite); }
.react[disabled] { opacity: .6; cursor: default; }
.react .i { width: 15px; height: 15px; vertical-align: 0; }
.react .n { font-variant-numeric: tabular-nums; opacity: .75; }
.reactions .thanks { font-size: 13px; color: var(--green); }

/* --- inline support strip ---------------------------------------------- */
.support-strip {
    display: flex; align-items: center; gap: 14px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border-lt);
    border-radius: var(--r);
    background: var(--surface-2);
    flex-wrap: wrap;
}
.support-strip > .i { color: var(--accent); width: 20px; height: 20px; }
.support-strip .txt { min-width: 0; flex: 1; }
.support-strip .txt b { display: block; font-size: 14.5px; }
.support-strip .txt span { font-size: 13.4px; color: var(--dim); }
.support-strip .btn { width: auto; flex: none; }

/* ===================================================================
   Sidebar
   =================================================================== */
.side { position: sticky; top: 130px; display: grid; gap: 16px; }

.side-card { padding: 16px 18px; }
.side-card h3 {
    margin: 0 0 12px;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--faint);
    display: flex; align-items: center; gap: 8px;
}
.side-card h3 .i { width: 14px; height: 14px; vertical-align: 0; color: var(--faint); }

.toc { list-style: none; margin: 0; padding: 0; counter-reset: t; max-height: 46vh; overflow-y: auto; }
.toc::-webkit-scrollbar { width: 5px; }
.toc::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 3px; }
.toc li { counter-increment: t; }
.toc a {
    display: block;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    color: var(--dim);
    border-left: 2px solid transparent;
    line-height: 1.45;
}
.toc a::before { content: counter(t) "."; color: var(--faint); margin-right: 7px; font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.toc a.active {
    background: var(--accent-glow);
    border-left-color: var(--accent);
    color: var(--accent-lite);
    font-weight: 500;
}
.toc a.active::before { color: var(--accent-dark); }

.links { display: grid; gap: 2px; }
.link-row {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    color: var(--dim);
    font-size: 13.5px;
}
.link-row:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.link-row .tile {
    flex: none;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--surface-3);
    display: grid; place-items: center;
    color: var(--accent-lite);
}
.link-row .tile .i { width: 15px; height: 15px; vertical-align: 0; }

.help-card {
    padding: 20px 18px;
    text-align: center;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.help-card .t { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.help-card p { margin: 0 0 15px; font-size: 13.2px; color: var(--dim); line-height: 1.55; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 14px; font-weight: 600;
    background: var(--accent);
    color: #241a00;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .15s;
}
.btn:hover { background: var(--accent-lite); color: #241a00; text-decoration: none; }
.btn .i { width: 16px; height: 16px; vertical-align: 0; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-lt); margin-top: 8px; }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }

/* status widget - states come from /api/status */
.status-row {
    display: flex; align-items: center; gap: 9px;
    font-size: 13.5px; color: var(--dim);
    padding: 5px 0;
}
.status-row .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--faint);
    box-shadow: 0 0 0 3px rgba(107,116,136,.12);
    flex: none;
}
.status-row.up   .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-d); }
.status-row.down .dot { background: var(--red);   box-shadow: 0 0 0 3px var(--red-d); }
.status-row b { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.status-row.down b { color: var(--red); }
.status-note { margin-top: 8px; font-size: 11.5px; color: var(--faint); }

/* ===================================================================
   Index / search pages
   =================================================================== */
.page-head { max-width: 1240px; margin: 0 auto; padding: 40px 24px 8px; }
.page-head h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.page-head p { margin: 10px 0 0; color: var(--dim); font-size: 16px; max-width: 62ch; }

.section-block { margin-bottom: 26px; }
.section-head {
    display: flex; align-items: baseline; gap: 12px;
    padding: 0 4px 12px;
    flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.section-head .blurb { font-size: 13.5px; color: var(--faint); }

.guide-list { display: grid; gap: 10px; }

.guide-row {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    color: inherit;
    transition: border-color .15s, transform .15s, background .15s;
}
.guide-row:hover {
    text-decoration: none;
    color: inherit;
    border-color: var(--border-lt);
    background: var(--surface-2);
}
.guide-row .tile {
    flex: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--surface-3);
    display: grid; place-items: center;
    color: var(--accent-lite);
}
.guide-row .tile .i { width: 21px; height: 21px; vertical-align: 0; }
.guide-row .body { min-width: 0; flex: 1; }
.guide-row .title {
    font-size: 16px; font-weight: 700;
    letter-spacing: -0.015em;
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.guide-row:hover .title { color: var(--accent-lite); }
.guide-row .desc { margin: 5px 0 0; font-size: 13.8px; color: var(--dim); }
.guide-row .meta {
    margin-top: 10px;
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--faint);
}
.guide-row .meta span { display: inline-flex; align-items: center; gap: 6px; }
.guide-row .meta .i { width: 13px; height: 13px; vertical-align: 0; }
.guide-row .go { flex: none; color: var(--faint); align-self: center; display: flex; }
.guide-row:hover .go { color: var(--accent); }
.guide-row .go .i { width: 16px; height: 16px; vertical-align: 0; }

.empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--dim);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.empty .i { width: 26px; height: 26px; color: var(--faint); vertical-align: 0; margin-bottom: 10px; }

/* ===================================================================
   Footer
   =================================================================== */
footer { border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 24px;
    display: flex; align-items: center; gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--faint);
}
.footer-inner .fl { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner .fl a { color: var(--dim); }
.footer-inner .rt { margin-left: auto; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1040px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side { position: static; grid-template-columns: repeat(2, 1fr); }
    .toc-card { grid-column: 1 / -1; }
    .toc { max-height: none; }
}

@media (max-width: 720px) {
    .search { display: none; }
    .nav { display: none; }
    .shell { padding: 18px 14px 50px; gap: 16px; }
    .page-head { padding: 28px 14px 4px; }
    .page-head h1 { font-size: 24px; }
    .side { grid-template-columns: 1fr; }
    .thread-head { padding: 20px 18px 18px; }
    .thread-head h1 { font-size: 23px; }
    .post { padding: 4px 18px 22px; }
    .step { padding-left: 0; padding-top: 22px; }
    .step::before { display: none; }
    .step-num {
        position: static;
        width: 32px; height: 32px;
        font-size: 13.5px;
        margin-bottom: 12px;
    }
    .step-num .i { width: 15px; height: 15px; }
    .step > h2 { font-size: 18px; }
    .byline .stats { margin-left: 0; width: 100%; gap: 16px; }
    .support-strip .btn { width: 100%; }
    .guide-row { padding: 15px 15px; gap: 13px; }
    .guide-row .go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ===================================================================
   Real brand mark
   The header and bylines used a generic glyph on an accent tile. The
   logo carries its own colour and shape, so it sits bare, matching how
   the main site renders it in its nav, instead of fighting a gradient.
   =================================================================== */
.logo img.mark,
.byline img.av {
    background: none;
    box-shadow: none;
    object-fit: contain;
}
.logo img.mark { border-radius: 0; }
.byline img.av { border-radius: 0; }

/* ===================================================================
   Polish
   =================================================================== */
/* Guide rows read as a list; a little lift on hover makes it obvious
   the whole row is the target, not just the title. */
.guide-row { transition: transform .13s ease, border-color .13s ease, background .13s ease; }
.guide-row:hover { transform: translateY(-1px); }

/* Keyboard users were getting the browser default outline, which sat
   awkwardly against the rounded cards. */
.guide-row:focus-visible,
.link-row:focus-visible,
.nav a:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--accent-lite);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* Long code samples in guides could push the card sideways on mobile. */
.code pre { overflow-x: auto; }
