/* ===========================================================================
   Guidebook — the reading surface
   ---------------------------------------------------------------------------
   Guides and policy pages deliberately do NOT look like the app. Tool pages
   are workspaces: sidenav, panels, forms, things to act on. These pages are
   documents: one column, serif body text, a sticky contents rail, and no app
   chrome competing with the words.

   Everything is namespaced `gb-` and lives under `.gb-root`. This file is
   loaded AFTER application.css in the guide layout, which matters: the soft-ui
   theme ships unlayered `h1 { font-size: 3rem }`, `a { color: inherit }` and
   `.text-slate-400/500/700/800` rules that beat Tailwind's own utilities
   regardless of specificity. Rather than fight that per-element, the guide
   surface simply restates what it needs here, later in the cascade.
   =========================================================================== */

.gb-root {
    /* Warm paper, not the app's cool slate — the clearest single signal that
       you have moved from the workspace to something you read. */
    --gb-bg: #fbfaf8;
    --gb-surface: #ffffff;
    --gb-surface-sunken: #f5f3f0;
    --gb-border: #e7e3dd;
    --gb-border-strong: #d6d0c7;
    --gb-ink: #1c1917;
    --gb-ink-soft: #44403c;
    --gb-ink-muted: #78716c;
    --gb-accent: #1d4ed8;
    --gb-accent-soft: #eff4ff;
    --gb-accent-ink: #1e3a8a;

    --gb-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --gb-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --gb-measure: 43rem;
    --gb-rail: 15rem;
    --gb-gutter: 1.25rem;

    background: var(--gb-bg);
    color: var(--gb-ink);
    font-family: var(--gb-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dark .gb-root {
    --gb-bg: #0b1020;
    --gb-surface: #111827;
    --gb-surface-sunken: #0f172a;
    --gb-border: #24304a;
    --gb-border-strong: #33415c;
    --gb-ink: #f5f5f4;
    --gb-ink-soft: #d6d3d1;
    --gb-ink-muted: #a8a29e;
    --gb-accent: #7cb0ff;
    --gb-accent-soft: #15203a;
    --gb-accent-ink: #bfdbfe;
}

.gb-root a { color: inherit; }

.gb-shell {
    width: min(100% - (var(--gb-gutter) * 2));
    max-width: 76rem;
    margin-inline: auto;
}

/* --- Masthead ------------------------------------------------------------ */

.gb-masthead {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--gb-bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gb-border);
}

.gb-masthead__bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 4rem;
}

.gb-masthead__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    text-decoration: none;
}

.gb-masthead__logo { display: block; width: auto; height: 1.9rem; }
.gb-root .logo-dark { display: none; }
.dark .gb-root .logo-light { display: none; }
.dark .gb-root .logo-dark { display: block; }

.gb-masthead__label {
    font-family: var(--gb-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding-left: 0.6rem;
    border-left: 1px solid var(--gb-border-strong);
    color: var(--gb-ink);
}

.gb-masthead__nav {
    display: none;
    align-items: center;
    gap: 1.1rem;
    margin-left: auto;
    font-size: 0.83rem;
    font-weight: 500;
}

@media (min-width: 900px) {
    .gb-masthead__nav { display: flex; }
}

.gb-masthead__nav a {
    color: var(--gb-ink-muted);
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 1.5px solid transparent;
    white-space: nowrap;
}

.gb-masthead__nav a:hover { color: var(--gb-ink); border-bottom-color: var(--gb-border-strong); }
.gb-masthead__nav a[aria-current="page"] { color: var(--gb-ink); border-bottom-color: var(--gb-accent); }

.gb-masthead__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

@media (min-width: 900px) {
    .gb-masthead__actions { margin-left: 0; }
}

.gb-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--gb-accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.15s ease;
}

.dark .gb-cta { color: #0b1020; }
.gb-cta:hover { filter: brightness(1.08); }

/* Theme toggle — the app's lives in the sidenav, which this surface omits. */
.gb-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--gb-border-strong);
    color: var(--gb-ink-muted);
    cursor: pointer;
    background: transparent;
}

.gb-theme:hover { color: var(--gb-ink); border-color: var(--gb-ink-muted); }
.gb-theme__input { position: absolute; opacity: 0; pointer-events: none; }
.gb-theme .gb-theme__moon { display: none; }
.dark .gb-theme .gb-theme__moon { display: block; }
.dark .gb-theme .gb-theme__sun { display: none; }

/* --- Reading progress ---------------------------------------------------- */

.gb-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: var(--gb-accent);
    transition: width 0.1s linear;
}

/* --- Breadcrumbs --------------------------------------------------------- */

.gb-crumbs {
    font-size: 0.78rem;
    color: var(--gb-ink-muted);
    padding-top: 1.75rem;
}

.gb-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gb-crumbs a { text-decoration: none; }
.gb-crumbs a:hover { color: var(--gb-ink); text-decoration: underline; text-underline-offset: 2px; }
.gb-crumbs [aria-current="page"] { color: var(--gb-ink-soft); font-weight: 500; }

/* --- Article header ------------------------------------------------------ */

.gb-hero { padding: 1.5rem 0 0; }

.gb-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--gb-accent);
    margin: 0;
}

.gb-eyebrow__sep { color: var(--gb-border-strong); }
.gb-eyebrow__meta { color: var(--gb-ink-muted); font-weight: 600; letter-spacing: 0.06em; }

.gb-title {
    font-family: var(--gb-serif);
    font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.25rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.021em;
    color: var(--gb-ink);
    margin: 0.75rem 0 0;
    max-width: 22ch;
    text-wrap: balance;
}

.gb-standfirst {
    font-family: var(--gb-serif);
    font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
    line-height: 1.6;
    color: var(--gb-ink-soft);
    margin: 1.1rem 0 0;
    max-width: var(--gb-measure);
}

.gb-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    margin-top: 1.75rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--gb-border);
    border-bottom: 1px solid var(--gb-border);
    font-size: 0.83rem;
    color: var(--gb-ink-muted);
}

.gb-byline__who { color: var(--gb-ink-soft); font-weight: 600; }
.gb-byline a { color: var(--gb-accent); text-decoration: none; }
.gb-byline a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* --- Two-column reading layout ------------------------------------------- */

.gb-layout,
.gb-headgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

.gb-layout { padding: 2.5rem 0 4rem; }

@media (min-width: 1080px) {
    .gb-layout,
    .gb-headgrid {
        grid-template-columns: var(--gb-rail) minmax(0, var(--gb-measure));
        justify-content: center;
        gap: 4rem;
    }
}

/* The masthead grid carries an empty first cell so the headline sits over the
   article column rather than over the contents rail. Below the two-column
   breakpoint the cell collapses entirely. */
.gb-headgrid { gap: 0; }
.gb-headgrid__spacer { display: none; }

@media (min-width: 1080px) {
    .gb-headgrid { gap: 4rem; }
    .gb-headgrid__spacer { display: block; }
}

/* --- Contents rail ------------------------------------------------------- */

.gb-toc__heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gb-ink-muted);
    margin: 0 0 0.75rem;
}

.gb-toc ol { list-style: none; margin: 0; padding: 0; }

.gb-toc a {
    display: block;
    padding: 0.32rem 0 0.32rem 0.85rem;
    border-left: 2px solid var(--gb-border);
    font-size: 0.83rem;
    line-height: 1.45;
    color: var(--gb-ink-muted);
    text-decoration: none;
}

.gb-toc a:hover { color: var(--gb-ink); border-left-color: var(--gb-border-strong); }

.gb-toc a[aria-current="true"] {
    color: var(--gb-accent);
    border-left-color: var(--gb-accent);
    font-weight: 600;
}

/* On wide screens the rail sticks; on narrow it becomes a disclosure so it
   does not push the article down the page. */
@media (min-width: 1080px) {
    .gb-toc { position: sticky; top: 5.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; }
    .gb-toc__mobile { display: none; }
}

@media (max-width: 1079px) {
    .gb-toc__desktop { display: none; }

    .gb-toc__mobile {
        border: 1px solid var(--gb-border);
        border-radius: 0.85rem;
        background: var(--gb-surface);
        padding: 0.9rem 1.1rem;
    }

    .gb-toc__mobile > summary {
        cursor: pointer;
        list-style: none;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: var(--gb-ink-muted);
    }

    .gb-toc__mobile > summary::-webkit-details-marker { display: none; }
    .gb-toc__mobile[open] > summary { margin-bottom: 0.6rem; }
}

/* --- Prose --------------------------------------------------------------- */

.gb-prose {
    font-family: var(--gb-serif);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gb-ink-soft);
    max-width: var(--gb-measure);
}

/* Reset UA block margins at ZERO specificity via :where(), so the single
   rhythm rule below is what actually controls vertical spacing. Resetting them
   with normal selectors instead (`.gb-prose p { margin-block: 0 }`) outranks
   `> * + *` and silently collapses the gaps between paragraphs. */
.gb-prose :where(p, ul, ol, blockquote, pre, table, hr, h2, h3) { margin-block: 0; }

.gb-prose > * + * { margin-top: 1.4rem; }

.gb-prose h2 {
    font-family: var(--gb-serif);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.014em;
    color: var(--gb-ink);
    margin-top: 3rem;
    margin-bottom: 0;
    scroll-margin-top: 6rem;
}

.gb-prose h3 {
    font-family: var(--gb-sans);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--gb-ink);
    margin-top: 2rem;
    margin-bottom: 0;
    scroll-margin-top: 6rem;
}

.gb-prose strong { color: var(--gb-ink); font-weight: 600; }
.gb-prose em { font-style: italic; }

.gb-prose a {
    color: var(--gb-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2.5px;
    text-decoration-color: color-mix(in srgb, var(--gb-accent) 40%, transparent);
}

.gb-prose a:hover { text-decoration-color: currentColor; }

.gb-prose ul, .gb-prose ol { padding-left: 1.4rem; }
.gb-prose ul { list-style: disc; }
.gb-prose ol { list-style: decimal; }
.gb-prose li::marker { color: var(--gb-ink-muted); }
.gb-prose li + li { margin-top: 0.5rem; }
.gb-prose li > ul, .gb-prose li > ol { margin-top: 0.5rem; }

/* Examples and model answers are the most-read part of a guide, so they get a
   visible frame rather than the usual quiet blockquote. */
.gb-prose blockquote {
    margin-inline: 0;
    padding: 1.1rem 1.35rem;
    border: 1px solid var(--gb-border);
    border-left: 3px solid var(--gb-accent);
    border-radius: 0 0.75rem 0.75rem 0;
    background: var(--gb-surface);
    color: var(--gb-ink-soft);
    font-size: 1.05rem;
}

.gb-prose blockquote > * + * { margin-top: 0.75rem; }
.gb-prose blockquote p:first-child { margin-top: 0; }

.gb-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.86em;
    padding: 0.15em 0.4em;
    border-radius: 0.3rem;
    background: var(--gb-surface-sunken);
    color: var(--gb-ink);
}

.gb-prose pre {
    overflow-x: auto;
    padding: 1.1rem 1.35rem;
    border: 1px solid var(--gb-border);
    border-radius: 0.85rem;
    background: var(--gb-surface-sunken);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gb-ink);
}

.gb-prose pre code { padding: 0; background: none; font-size: inherit; }

/* Comparison tables are wide; they scroll inside their own box rather than
   pushing the page sideways on a phone. */
.gb-prose__table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--gb-border);
    border-radius: 0.85rem;
    background: var(--gb-surface);
}

.gb-prose table {
    width: 100%;
    /* Wider than a phone on purpose: the wrapper scrolls, which keeps cells
       readable instead of squeezing "Two-stage adaptive" into three lines. */
    min-width: 32rem;
    border-collapse: collapse;
    font-family: var(--gb-sans);
    font-size: 0.9rem;
    text-align: left;
}

.gb-prose thead { background: var(--gb-surface-sunken); }

.gb-prose th, .gb-prose td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--gb-border);
    vertical-align: top;
}

.gb-prose tbody tr:last-child td { border-bottom: 0; }
.gb-prose th { color: var(--gb-ink); font-weight: 600; white-space: nowrap; }

.gb-prose hr { border: 0; border-top: 1px solid var(--gb-border); margin-block: 2.5rem; }

/* --- Sections after the article ------------------------------------------ */

.gb-section { max-width: var(--gb-measure); margin-top: 3.5rem; }

/* The index has no article column to centre a section inside, so a reading-width
   block there has to centre itself against the full 76rem shell. */
.gb-section--centred { margin-inline: auto; }

.gb-section__title {
    font-family: var(--gb-serif);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--gb-ink);
    margin: 0 0 1.1rem;
}

/* The bridge from reading to doing. Tinted so it reads as an invitation to act
   rather than as more article. */
.gb-practice {
    max-width: var(--gb-measure);
    margin-top: 3.5rem;
    padding: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--gb-accent) 25%, var(--gb-border));
    border-radius: 1rem;
    background: var(--gb-accent-soft);
}

.gb-practice__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gb-accent);
    margin: 0;
}

.gb-practice__title {
    font-family: var(--gb-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gb-ink);
    margin: 0.45rem 0 1.1rem;
}

.gb-practice__list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }

.gb-practice__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--gb-border);
    border-radius: 0.8rem;
    background: var(--gb-surface);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.gb-practice__item:hover { border-color: var(--gb-accent); transform: translateY(-1px); }
.gb-practice__body { flex: 1; min-width: 0; }
.gb-practice__name { display: block; font-weight: 600; font-size: 0.95rem; color: var(--gb-ink); }
.gb-practice__summary { display: block; margin-top: 0.2rem; font-size: 0.86rem; line-height: 1.55; color: var(--gb-ink-muted); }
.gb-practice__arrow { flex-shrink: 0; margin-top: 0.15rem; color: var(--gb-accent); }

/* --- FAQ ----------------------------------------------------------------- */

.gb-faq { border-top: 1px solid var(--gb-border); }

.gb-faq__item { border-bottom: 1px solid var(--gb-border); }

.gb-faq__item > summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    padding: 1rem 0;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--gb-ink);
}

.gb-faq__item > summary::-webkit-details-marker { display: none; }
.gb-faq__item > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--gb-ink-muted); }
.gb-faq__item[open] > summary::after { content: "\2013"; }

.gb-faq__answer {
    font-family: var(--gb-serif);
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--gb-ink-soft);
    margin: 0;
    padding: 0 0 1.1rem;
    max-width: 60ch;
}

/* --- Card lists (related guides, sources) -------------------------------- */

.gb-cards { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }

@media (min-width: 640px) {
    .gb-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gb-card {
    display: block;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--gb-border);
    border-radius: 0.85rem;
    background: var(--gb-surface);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
    height: 100%;
}

.gb-card:hover { border-color: var(--gb-border-strong); transform: translateY(-1px); }
.gb-card__kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gb-accent); }
.gb-card__title { display: block; margin-top: 0.35rem; font-weight: 600; font-size: 0.98rem; line-height: 1.35; color: var(--gb-ink); }
.gb-card__summary { display: block; margin-top: 0.45rem; font-size: 0.86rem; line-height: 1.6; color: var(--gb-ink-muted); }
.gb-card__meta { display: block; margin-top: 0.7rem; font-size: 0.74rem; color: var(--gb-ink-muted); }

/* --- Previous / next trail through a cluster ---------------------------- */

.gb-pager {
    display: grid;
    gap: 0.75rem;
    max-width: var(--gb-measure);
    margin-top: 3.5rem;
}

@media (min-width: 640px) {
    .gb-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gb-pager__link {
    display: block;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--gb-border);
    border-radius: 0.85rem;
    background: var(--gb-surface);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.gb-pager__link:hover { border-color: var(--gb-border-strong); transform: translateY(-1px); }
.gb-pager__link--next { text-align: right; }
.gb-pager__dir { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gb-accent); }
.gb-pager__title { display: block; margin-top: 0.4rem; font-weight: 600; font-size: 0.98rem; line-height: 1.35; color: var(--gb-ink); }

.gb-sources { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.gb-sources li + li { margin-top: 0.6rem; }
.gb-sources a { color: var(--gb-accent); text-decoration: underline; text-underline-offset: 2px; }
.gb-sources__publisher { color: var(--gb-ink-muted); }

/* --- Byline card and disclaimer ------------------------------------------ */

.gb-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: var(--gb-measure);
    margin-top: 3.5rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--gb-border);
    border-radius: 1rem;
    background: var(--gb-surface);
}

.gb-author__mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: var(--gb-accent-soft);
    color: var(--gb-accent);
    font-family: var(--gb-serif);
    font-size: 1.15rem;
    font-weight: 700;
}

.gb-author__name { font-weight: 600; font-size: 0.93rem; color: var(--gb-ink); margin: 0; }
.gb-author__note { font-size: 0.85rem; line-height: 1.55; color: var(--gb-ink-muted); margin: 0.2rem 0 0; }
.gb-author__note a { color: var(--gb-accent); text-decoration: underline; text-underline-offset: 2px; }

.gb-disclaimer {
    max-width: var(--gb-measure);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gb-border);
    font-size: 0.79rem;
    line-height: 1.65;
    color: var(--gb-ink-muted);
}

.gb-disclaimer a { color: var(--gb-ink-soft); text-decoration: underline; text-underline-offset: 2px; }

/* --- Index page ---------------------------------------------------------- */

.gb-index-hero { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--gb-border); }

.gb-index-hero__title {
    font-family: var(--gb-serif);
    font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.5rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.022em;
    color: var(--gb-ink);
    margin: 0.6rem 0 0;
    max-width: 18ch;
    text-wrap: balance;
}

.gb-index-hero__lede {
    font-family: var(--gb-serif);
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.65;
    color: var(--gb-ink-soft);
    margin: 1.1rem 0 0;
    max-width: 46rem;
}

.gb-index-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.gb-stat__figure { font-family: var(--gb-serif); font-size: 1.55rem; font-weight: 600; color: var(--gb-ink); display: block; line-height: 1; }
.gb-stat__label { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gb-ink-muted); margin-top: 0.3rem; display: block; }

.gb-cluster { padding: 2.75rem 0; border-bottom: 1px solid var(--gb-border); scroll-margin-top: 5.5rem; }
.gb-cluster:last-of-type { border-bottom: 0; }

.gb-cluster__head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.5rem; }

.gb-cluster__title {
    font-family: var(--gb-serif);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.014em;
    color: var(--gb-ink);
    margin: 0;
}

.gb-cluster__count { font-size: 0.78rem; color: var(--gb-ink-muted); }

.gb-cluster__list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }

@media (min-width: 720px) { .gb-cluster__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gb-cluster__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- Policy pages -------------------------------------------------------- */

.gb-doc { max-width: var(--gb-measure); margin-inline: auto; padding: 2.5rem 0 4rem; }

/* --- Footer -------------------------------------------------------------- */

.gb-footer {
    margin-top: auto;
    border-top: 1px solid var(--gb-border);
    background: var(--gb-surface-sunken);
    padding: 3rem 0 2.5rem;
}

.gb-footer__grid { display: grid; gap: 2rem; }

@media (min-width: 760px) { .gb-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.gb-footer__blurb { font-size: 0.86rem; line-height: 1.65; color: var(--gb-ink-muted); margin: 0.9rem 0 0; max-width: 30ch; }
.gb-footer__heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gb-ink-muted); margin: 0 0 0.75rem; }
.gb-footer__list { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.gb-footer__list li + li { margin-top: 0.5rem; }
.gb-footer__list a { color: var(--gb-ink-soft); text-decoration: none; }
.gb-footer__list a:hover { color: var(--gb-accent); text-decoration: underline; text-underline-offset: 2px; }

.gb-footer__base {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gb-border);
    font-size: 0.78rem;
    color: var(--gb-ink-muted);
}

.gb-footer__base a { color: var(--gb-ink-muted); text-decoration: none; }
.gb-footer__base a:hover { color: var(--gb-accent); text-decoration: underline; text-underline-offset: 2px; }

.gb-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.6rem 1rem;
    background: var(--gb-accent);
    color: #fff;
    border-radius: 0 0 0.5rem 0;
    z-index: 60;
}

.gb-skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
    .gb-progress { transition: none; }
    .gb-card, .gb-practice__item { transition: none; }
    .gb-card:hover, .gb-practice__item:hover { transform: none; }
}
