/* Blob Web Explorer — shared design system for documentation, support and legal pages */

@font-face { font-family: "HK Grotesk"; src: url("../../assets/fonts/hkgrotesk-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("../../assets/fonts/hkgrotesk-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("../../assets/fonts/hkgrotesk-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("../../assets/fonts/hkgrotesk-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --surface-2: #f7f7f7;
    --ink: #303030;
    --ink-2: #505050;
    --muted: #737373;
    --line: #e5e5e5;
    --line-strong: #cecece;
    --brand: #3f71b8;
    --brand-600: #345e99;
    --brand-700: #2a4c7c;
    --brand-50: #f2f5fa;
    --brand-100: #dce6f4;
    --navy: #282b30;
    --navy-2: #343a43;
    --accent: #f97316;
    --ok: #15803d;
    --ok-50: #f0fdf4;
    --warn: #b45309;
    --warn-50: #fffbeb;
    --danger: #b91c1c;
    --danger-50: #fef2f2;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --header-h: 76px;
    --font: "HK Grotesk", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-600); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); text-decoration: underline; }

:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; }
h4 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

code {
    font-family: var(--mono);
    font-size: 0.86em;
    background: #f1f5f9;
    border: 1px solid var(--line);
    color: #0f2a6b;
    padding: 0.1em 0.4em;
    border-radius: 6px;
    word-break: break-word;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; max-width: 1200px; }
.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-brand img { width: 212px; height: auto; display: block; }
.site-brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 0.88rem; padding: 8px 10px; border-radius: 8px; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand-600); background: var(--brand-50); }
.site-nav .btn { margin-left: 8px; border-radius: 6px; min-height: 40px; }
.site-nav .btn--primary, .site-nav .btn--primary:hover { color: #fff; }
.site-nav .btn--primary[aria-current="page"] { background: var(--brand-600); color: #fff; }
/* Guides (editorial content) and Sign in (the application) are separated from the site pages. */
.site-nav .site-nav__guides, .site-nav .site-nav__signin { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-left: 17px; }
.site-nav .site-nav__guides::after, .site-nav .site-nav__signin::after { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.site-nav .site-nav__guides::before, .site-nav .site-nav__signin::before { font-family: remixicon; font-weight: normal; font-size: 1rem; line-height: 1; }
.site-nav .site-nav__guides::before { content: "\eadb"; color: var(--brand); }
.site-nav .site-nav__signin { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--brand-600); font-weight: 600; }
.site-nav .site-nav__signin::before { content: "\eed4"; }
.site-nav .site-nav__signin:hover { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-600); }

.site-nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 40px; font-size: 1.3rem; color: var(--ink); cursor: pointer; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand-600); }
.btn--light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--light:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--brand-50); color: var(--navy); }
.btn--sm { padding: 8px 14px; font-size: 0.9rem; }
.btn i { font-size: 1.1em; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.page-hero {
    position: relative;
    overflow: hidden;
    color: #cbd5e1;
    background:
        radial-gradient(900px 420px at 85% -20%, rgba(59, 130, 246, 0.35), transparent 60%),
        radial-gradient(700px 360px at 0% 120%, rgba(249, 115, 22, 0.14), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: 64px 0 56px;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 14px; letter-spacing: -0.02em; }
.page-hero__lead { font-size: 1.15rem; max-width: 760px; color: #cbd5e1; margin-bottom: 24px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #93c5fd;
    margin-bottom: 14px;
}

.meta-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; color: #94a3b8; }
.meta-list li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.meta-list i { color: #93c5fd; }

.hero-search { position: relative; max-width: 620px; margin-bottom: 20px; }
.hero-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.15rem; }
.hero-search input {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 15px 16px 15px 46px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}
.hero-search input:focus { outline: 3px solid rgba(147, 197, 253, 0.6); }
.hero-search__status { margin: -8px 0 20px; min-height: 1.4em; font-weight: 600; }
.hero-search__status a { color: #93c5fd; }

/* ── Page layout ────────────────────────────────────────────────────────── */

.page-body { padding: 40px 0 72px; }
.page-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.page-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 4px; }
.toc__toggle { display: none; }
.toc__title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px 12px; }
.toc__group + .toc__group { margin-top: 18px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
    display: block;
    padding: 6px 12px;
    border-left: 2px solid var(--line);
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.4;
}
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); text-decoration: none; }
.toc a.is-active { color: var(--brand-600); border-left-color: var(--brand); font-weight: 600; background: linear-gradient(90deg, var(--brand-50), transparent); }

.toc__help {
    margin-top: 24px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.88rem;
}
.toc__help strong { display: block; margin-bottom: 4px; }
.toc__help p { margin-bottom: 10px; color: var(--muted); }

/* ── Sections and cards ─────────────────────────────────────────────────── */

.section-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
}
.section-card > :last-child { margin-bottom: 0; }

.section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.section-head h2 { margin: 2px 0 4px; }
.section-head p { margin: 0; color: var(--muted); }
.section-icon {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 1.35rem;
}

.group-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 16px 0 -8px 4px;
}

.lead { font-size: 1.08rem; color: var(--ink-2); }
.muted { color: var(--muted); }

.doc-figure { margin: 16px 0 20px; }
.doc-figure img { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); background: var(--surface); }
.doc-figure figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

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

.tile {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    padding: 20px;
}
.tile h3, .tile h4 { margin: 0 0 6px; font-size: 1.02rem; }
.tile p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.tile > i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--brand-600); font-size: 1.2rem; margin-bottom: 12px; }
.tile ul { margin: 10px 0 0; font-size: 0.93rem; }
a.tile { display: block; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.tile:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-weight: 600; font-size: 0.9rem; color: var(--brand-600); }

.tile--highlight { background: linear-gradient(160deg, var(--brand-50), #fff); border-color: var(--brand-100); }
.tile > .badge + h3 { margin-top: 12px; }
.spaced { margin-top: 1rem; }

/* ── Callouts ───────────────────────────────────────────────────────────── */

.callout {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand-100);
    background: var(--brand-50);
    margin: 1rem 0;
    font-size: 0.95rem;
}
.callout > i { font-size: 1.25rem; color: var(--brand-600); line-height: 1.4; flex-shrink: 0; }
.callout > div > :last-child { margin-bottom: 0; }
.callout__title { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.callout--warning { background: var(--warn-50); border-color: #fde68a; }
.callout--warning > i { color: var(--warn); }
.callout--success { background: var(--ok-50); border-color: #bbf7d0; }
.callout--success > i { color: var(--ok); }
.callout--danger { background: var(--danger-50); border-color: #fecaca; }
.callout--danger > i { color: var(--danger); }
.callout--neutral { background: var(--surface-2); border-color: var(--line); }
.callout--neutral > i { color: var(--muted); }

/* ── Tables ─────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.55; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { padding-top: 0; font-size: 0.9rem; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--ink); }
.table .center { text-align: center; }
.table .badge { white-space: nowrap; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #94a3b8; }

/* ── Steps ──────────────────────────────────────────────────────────────── */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 1.25rem; }
.steps > li { position: relative; counter-increment: step; padding: 0 0 18px 48px; margin: 0; }
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-50);
    color: var(--brand-600);
    border: 1px solid var(--brand-100);
    font-weight: 700;
    font-size: 0.88rem;
}
.steps > li::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 1px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps .step-title { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ── Guide steps (Marketplace) ──────────────────────────────────────────── */

.phase {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.phase--before { background: #fff7ed; color: #c2410c; }
.phase--during { background: var(--brand-50); color: var(--brand-700); }
.phase--after { background: var(--ok-50); color: var(--ok); }

.guide-step { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; margin: 16px 0; background: var(--surface); }
.guide-step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.guide-step__num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.guide-step__head h3 { margin: 0; }
.guide-step > :last-child { margin-bottom: 0; }

/* ── Badges and chips ───────────────────────────────────────────────────── */

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge--blue { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.badge--green { background: var(--ok-50); color: var(--ok); border-color: #bbf7d0; }
.badge--amber { background: var(--warn-50); color: var(--warn); border-color: #fde68a; }
.badge--red { background: var(--danger-50); color: var(--danger); border-color: #fecaca; }
.badge--slate { background: #f1f5f9; color: #475569; border-color: var(--line); }
.badge--violet { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.5rem 0 1rem; }

/* ── Definition list ────────────────────────────────────────────────────── */

.dl { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.dl dt, .dl dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dl dt { background: var(--surface-2); font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.dl dd { font-size: 0.95rem; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }

/* ── Copy box ───────────────────────────────────────────────────────────── */

.copy-box { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); margin: 0.75rem 0 1rem; }
.copy-box code { flex: 1; background: none; border: 0; padding: 0; font-size: 0.9rem; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: var(--brand); color: var(--brand-600); }
.copy-btn.is-copied { border-color: var(--ok); color: var(--ok); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 14px 20px 4px; font-size: 0.95rem; }

/* ── Contact panel ──────────────────────────────────────────────────────── */

.contact-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    padding: 32px 36px;
    border-radius: var(--radius);
    color: #cbd5e1;
    background: radial-gradient(600px 300px at 100% 0%, rgba(59, 130, 246, 0.3), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2));
}
.contact-panel h2 { color: #fff; }
.contact-panel p { color: #cbd5e1; }
.contact-panel strong { color: #fff; }
.contact-panel a:not(.btn) { color: #93c5fd; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.contact-list i { font-size: 1.3rem; color: #93c5fd; line-height: 1.3; }
.contact-list span { display: block; font-size: 0.9rem; }

/* ── Legal pages ────────────────────────────────────────────────────────── */

.legal-summary { border: 1px solid var(--brand-100); background: linear-gradient(160deg, var(--brand-50), #fff); border-radius: var(--radius); padding: 24px 28px; }
.legal-summary h2 { font-size: 1.15rem; margin-bottom: 10px; }
.legal-summary ul { margin: 0; }

.legal-section h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.3rem; }
.legal-section h2 .num { color: var(--brand-600); font-variant-numeric: tabular-nums; font-size: 0.95rem; font-weight: 700; min-width: 28px; }

.related-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.related-docs a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.93rem; }
.related-docs a:hover { border-color: var(--brand); color: var(--brand-600); text-decoration: none; }
.related-docs a[aria-current="page"] { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-700); }
.related-docs i { color: var(--brand-600); font-size: 1.15rem; }

/* ── Search state ───────────────────────────────────────────────────────── */

.is-hidden { display: none !important; }
.search-empty { text-align: center; padding: 40px 24px; }
.search-empty i { font-size: 2rem; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { background: var(--navy); color: #94a3b8; padding: 56px 0 28px; font-size: 0.92rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer img { height: 34px; width: auto; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }
.footer-social { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.footer-social i { font-size: 1.35rem; }

/* ── Release notes ──────────────────────────────────────────────────────── */

.release-feed { max-width: 880px; display: grid; gap: 20px; }
.release-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.88rem; color: var(--muted); }
.release-legend .badge:not(:first-child) { margin-left: 8px; }
.release { position: relative; }
.release__head h2 { margin: 10px 0 6px; font-size: 1.35rem; }
.release__head p { margin: 0 0 4px; color: var(--ink-2); }
.release__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.release__date { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.release__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.release__list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; }
.release__list .badge { justify-content: center; }
#whats-new ul li .badge { margin-right: 6px; }
.release-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.release-cta h2 { margin: 0 0 6px; font-size: 1.15rem; }
.release-cta p { margin: 0; color: var(--ink-2); }
.release-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 560px) {
  .release__list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .release__list .badge { justify-self: start; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
    .page-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; }
    .toc__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 12px 14px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
    .toc__body { display: none; padding: 4px 8px 12px; }
    .toc.is-open .toc__body { display: block; }
    .toc__help { display: none; }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-panel { grid-template-columns: minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
    .site-nav-toggle { display: inline-grid; place-items: center; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 16px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
    }
    .site-header.is-open .site-nav { display: flex; }
    .site-nav .btn { margin: 8px 0 0; }
    .site-nav .site-nav__guides, .site-nav .site-nav__signin { margin: 8px 0 0; }
    .site-nav .site-nav__guides { border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; }
    .site-nav .site-nav__signin { justify-content: center; }
    .site-nav .site-nav__guides::after, .site-nav .site-nav__signin::after { display: none; }
}

@media (max-width: 720px) {
    .container { padding: 0 16px; }
    .site-brand img { width: 176px; }
    .btn { white-space: normal; text-align: center; }
    .page-hero__actions .btn { width: 100%; }
    .page-hero { padding: 44px 0 40px; }
    .section-card, .contact-panel { padding: 24px 20px; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .dl { grid-template-columns: 1fr; }
    .dl dt { border-bottom: 0; padding-bottom: 4px; }
    .dl dd { padding-top: 0; background: var(--surface-2); }
    .site-footer__grid { grid-template-columns: 1fr; }
}

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

@media print {
    .site-header, .toc, .site-footer, .page-hero__actions, .hero-search, .copy-btn, #cc--main { display: none !important; }
    body { background: #fff; }
    .page-hero { background: none; color: var(--ink); padding: 0 0 16px; }
    .page-hero::after { display: none; }
    .page-hero h1 { color: var(--ink); }
    .page-layout { display: block; }
    .section-card { box-shadow: none; border: 0; padding: 0; margin-bottom: 24px; }
    .contact-panel { background: none; color: var(--ink); border: 1px solid var(--line); }
    a { color: var(--ink); }
}
