@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/outfit-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Mollygram design system v2 — midnight & mint */
:root {
    color-scheme: light;
    --bg: #f6f4ef;
    --surface: #ffffff;
    --wash: #efece5;
    --ink: #111722;
    --muted: #596273;
    --line: #e2ded4;
    --accent: #0c8a77;
    --accent-ink: #ffffff;
    --accent-2: #ff6a4a;
    --soft: #dff3ee;
    --danger: #9b1c31;
    --danger-bg: #fff1f2;
    --danger-line: #f6c9d0;
    --ok: #0b6b57;
    --ok-bg: #e8f7f2;
    --ok-line: #bfe6da;
    --shadow: 0 1px 2px rgba(17, 23, 34, 0.04), 0 18px 48px -18px rgba(17, 23, 34, 0.18);
    --radius: 22px;
    --max: 1160px;
}
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a1019;
    --surface: #121a27;
    --wash: #172131;
    --ink: #eef2f7;
    --muted: #98a4b8;
    --line: #223049;
    --accent: #3fe0c0;
    --accent-ink: #06231d;
    --accent-2: #ff8a6b;
    --soft: #0f2f2b;
    --danger: #ffb4bf;
    --danger-bg: #331822;
    --danger-line: #5a2634;
    --ok: #9cecd3;
    --ok-bg: #0f2b26;
    --ok-line: #1d5246;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 56px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Outfit, "Segoe UI", system-ui, sans-serif;
    font-size: 1.04rem;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
main, .site-footer { position: relative; z-index: 1; }
img, video { max-width: 100%; min-width: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
h1 { margin: 0 0 0.6rem; font-size: 2.3rem; font-weight: 750; }
h2 { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { margin: 0; font-size: 1.1rem; font-weight: 650; }
p { margin: 0; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.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: 12px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 60; }
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner, .section, .hero, .page-hero, .prose {
    width: min(var(--max), calc(100% - 32px));
    margin-inline: auto;
}
.header-inner { position: relative; min-height: 68px; display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -0.02em; font-size: 1.14rem; }
.brand:hover { color: var(--ink); }
.brand-mark, .brand-mark svg { width: 36px; height: 36px; display: inline-flex; }
.nav-check { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.lang { position: relative; margin-left: auto; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px;
    border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    cursor: pointer; font-weight: 600; font-size: 0.92rem;
}
.lang-toggle::after { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.6; }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 200px; max-height: 70vh; margin: 0; padding: 6px;
    overflow: auto; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.lang-menu[hidden] { display: none; }
.lang-menu button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ink); padding: 9px 10px; border-radius: 10px; cursor: pointer; font-weight: 550; text-align: left; }
.lang-menu button[aria-selected="true"], .lang-menu button:hover { background: var(--soft); }
.theme-toggle {
    min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink);
    background: var(--ink); color: var(--bg); cursor: pointer; font-weight: 650; font-size: 0.9rem;
}
.theme-toggle:hover { opacity: 0.88; }
.nav-toggle {
    cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
    display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 5px; }
.nav-toggle-bars span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.site-nav { display: none; }
.nav-check:checked ~ .site-nav {
    display: flex; flex-direction: column; position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; min-width: 270px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.site-nav a { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: 12px; font-weight: 550; }
.site-nav a:hover { background: var(--wash); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.noscript { margin: 12px auto; width: min(var(--max), calc(100% - 32px)); background: var(--soft); border-radius: 12px; padding: 10px 14px; }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; padding: 52px 0 36px; text-align: left; }
.hero > :not(.scene), .page-hero > :not(.scene) { position: relative; z-index: 1; }
.hero { display: flex; flex-direction: column; justify-content: center; min-height: min(86svh, 760px); }
.scene {
    position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
    overflow: hidden; pointer-events: none;
}
.scene .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.scene .glow-a { width: 520px; height: 520px; right: -120px; top: -180px; background: #19c7a8; }
.scene .glow-b { width: 420px; height: 420px; left: -160px; bottom: -120px; background: #ff7a59; opacity: 0.32; }
.scene .grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 25%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 25%, #000 25%, transparent 78%);
    opacity: 0.7;
}
html[data-theme="dark"] .scene .glow { opacity: 0.28; }
html[data-theme="dark"] .scene .glow-b { opacity: 0.16; }
.hero h1, .page-hero h1 { font-size: 2.35rem; max-width: 18em; }
.hero > .hero-title {
    display: block; width: 100%; max-width: 15em; margin: 0 auto 14px; text-align: center; text-wrap: balance;
    font-size: clamp(2.1rem, 5.6vw, 4rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 780;
}
.hero > .hero-title + .panel { margin-top: 8px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 16px; padding: 6px 12px 6px 10px; border-radius: 999px;
    background: var(--soft); color: var(--accent); border: 1px solid var(--ok-line); font-size: 0.85rem; font-weight: 650;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.lede { max-width: 660px; color: var(--muted); font-size: 1.14rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.trust-row span {
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--muted); font-size: 0.87rem; font-weight: 550;
}
.trust-row span::before { content: "\2713"; color: var(--accent); margin-right: 7px; font-weight: 800; }

.panel, .content-card {
    margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 18px;
}
.lookup label { display: block; font-weight: 650; margin-bottom: 8px; }
.search-bar {
    display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.lookup-input {
    display: block; flex: 1 1 auto; width: auto; min-width: 0; min-height: 50px; margin: 0; padding: 10px 4px;
    border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-size: 1rem;
}
.lookup-input:focus { outline: none; }
.lookup-input::placeholder, .field input::placeholder { color: var(--muted); opacity: 0.8; }
.paste-btn {
    flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer;
}
.paste-btn:hover { background: var(--wash); color: var(--ink); }
.search-go { flex: 0 0 auto; min-width: 112px; min-height: 50px; border-radius: 15px; }
.search-go .spinner { display: inline-block; flex: 0 0 auto; }
.search-go .spinner[hidden] { display: none; }
.field-actions { display: flex; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
    border-radius: 14px; border: 1px solid transparent; text-decoration: none; cursor: pointer; font-weight: 650;
    transition: transform 0.12s, background 0.15s, filter 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 10px 22px -10px var(--accent); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--wash); color: var(--ink); }
.btn:disabled { cursor: progress; opacity: 0.75; }
.hint { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); border-top-color: var(--accent-ink); animation: spin 0.7s linear infinite; }
.status, .result { margin-top: 14px; }
.notice { display: grid; gap: 8px; border-radius: 16px; padding: 14px 16px; }
.notice-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }
.notice-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.notice a { font-weight: 700; }

/* ---------- Results ---------- */
.profile-card, .media-card, .story-card { background: var(--surface); color: var(--ink); }
.profile-card, .media-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.public-embed, .reel-player { display: block; width: 100%; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #000; }
.public-embed { height: 780px; background: var(--surface); }
.reel-player { display: block; width: min(100%, 300px); max-width: 300px; aspect-ratio: 9 / 16; max-height: 534px; margin-inline: auto; margin-top: 0; border: 0; object-fit: contain; }
.reel-card { display: grid; gap: 8px; }
.reel-card .preview { aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px; background: #0b0f17; }
.reel-card .preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-card .preview:has(video), .reel-card .preview:has(iframe) { aspect-ratio: auto; height: auto; }
.preview video, video.reel-player { width: 100%; height: auto; max-height: 70vh; object-fit: contain; display: block; background: #000; }
.profile-top { display: flex; gap: 16px; align-items: flex-start; }
.avatar, .avatar-fallback { width: 88px; height: 88px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; background: var(--wash); border: 2px solid var(--line); }
.avatar-fallback { display: grid; place-items: center; color: var(--muted); font-size: 0.78rem; text-align: center; padding: 8px; }
.handle { font-size: 1.3rem; }
.fullname, .byline { color: var(--muted); margin-top: 2px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.stats li { min-width: 96px; background: var(--wash); border-radius: 14px; padding: 9px 12px; }
.stats strong { display: block; font-size: 1.08rem; }
.stats span { color: var(--muted); font-size: 0.82rem; }
.bio { margin-top: 14px; white-space: pre-wrap; }
.fav-toggle { margin-top: 12px; }
.fav-toggle.is-saved { border-color: var(--accent); color: var(--accent); }
.favorites { margin-top: 14px; }
.favorites[hidden] { display: none; }
.favorites-label { margin: 0 0 8px; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.favorites-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.favorite-chip { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 4px 6px 4px 4px; }
.favorite-open { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ink); font-weight: 650; cursor: pointer; padding: 0 4px; }
.favorite-open img, .favorite-mark { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--wash); display: inline-grid; place-items: center; }
.favorite-remove { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.result-tabs { margin-top: 18px; }
.tab-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding: 5px; background: var(--wash); border-radius: 999px; width: fit-content; max-width: 100%; }
.result-tab { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: transparent; color: var(--muted); text-decoration: none; font-weight: 650; }
.result-tab:hover { color: var(--ink); }
.result-tab.is-active, .result-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; min-width: 0; }
.media-tile { position: relative; min-width: 0; border-radius: 16px; overflow: hidden; background: #0b0f17; }
.media-tile video, .media-tile img { display: block; width: 100%; max-width: 100%; min-width: 0; aspect-ratio: 9 / 16; object-fit: cover; background: #0b0f17; }
.tab-panel { scroll-margin-top: 90px; margin-top: 18px; }
.tab-panel[hidden] { display: none !important; }
.tab-panel h3 { margin: 0 0 8px; font-size: 1.08rem; }
.load-more { margin-top: 14px; scroll-margin-top: 96px; position: relative; z-index: 4; }
.lookup, .panel, .hero, .result-tabs { min-width: 0; max-width: 100%; }
.tile-save { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(10, 16, 25, 0.78); color: #fff; backdrop-filter: blur(6px); }
.tile-save:hover { color: #fff; background: var(--accent); }
.tile { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--wash); color: inherit; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 8px; bottom: 8px; background: rgba(10, 16, 25, 0.8); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 0.75rem; }
.preview { border-radius: 16px; overflow: hidden; background: #0b0f17; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.preview img, .preview video { width: 100%; height: 100%; object-fit: contain; background: #0b0f17; }
.media-card .preview-reel { width: min(100%, 300px); max-width: 300px; min-width: 0; aspect-ratio: 9 / 16; max-height: 534px; height: auto; margin-inline: auto; background: #0b0f17; }
.media-card .preview-reel video, .media-card video.reel-player { width: 100%; max-width: 100%; height: 100%; max-height: 100%; min-width: 0; object-fit: contain; }
.caption { white-space: pre-wrap; margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.story-result { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.story-ring { display: inline-flex; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, #14b8a0, #5eead4, #ff7a59, #14b8a0); }
.story-ring .avatar { width: 72px; height: 72px; border: 3px solid var(--surface); }
.story-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; }
.highlight-heading { margin: 28px 0 8px; }
.highlight-block { margin-top: 18px; }
.highlight-block h3 { margin: 0 0 10px; font-size: 1.05rem; }
.story-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-width: 0; max-width: none; }
.story-card .preview { border-radius: 0; aspect-ratio: 9 / 16; max-height: none; }
.story-card .preview img, .story-card .preview video { width: 100%; height: 100%; object-fit: cover; }
.story-card .actions { padding: 8px; }
.story-card .actions .btn, .story-card .actions a.btn { width: 100%; min-width: 0; min-height: 40px; padding: 0 8px; font-size: 0.82rem; }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--wash) 25%, var(--surface) 37%, var(--wash) 63%); background-size: 400% 100%; animation: shimmer 1.2s ease infinite; }
.sk-card { display: grid; gap: 12px; }
.sk-row { display: flex; gap: 12px; }
.sk-avatar { width: 88px; height: 88px; border-radius: 50%; }
.sk-lines { flex: 1; display: grid; gap: 8px; align-content: center; }
.sk-line { height: 14px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-tile { aspect-ratio: 1; }
.sk-block { height: 220px; }
.sk-w-45 { width: 45%; }
.sk-w-70 { width: 70%; }
.note { color: var(--muted); margin-top: 12px; }

/* ---------- Sections & cards ---------- */
.section { padding: 44px 0; content-visibility: auto; contain-intrinsic-size: auto 520px; }
.section-head { margin-bottom: 22px; max-width: 660px; }
.section-head h2::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; margin-bottom: 14px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.section-head p { color: var(--muted); margin-top: 10px; }
.card-grid { display: grid; gap: 14px; }
.tool-card {
    display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
    padding: 22px; color: inherit; text-decoration: none; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
.tool-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: var(--bg); }
.tool-icon svg { width: 24px; height: 24px; }
.tool-card p { color: var(--muted); flex: 1; }
.tool-card h2 { font-size: 1.25rem; }
.text-link { font-weight: 700; color: var(--accent); }
.text-link::after { content: " \2192"; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.steps h3 { background: transparent; }
.step-num { color: var(--accent); font-weight: 750; letter-spacing: 0.06em; }
.steps p { color: var(--muted); margin-top: 6px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2px 18px; margin-bottom: 10px; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; padding: 14px 0; }
.faq summary h3 { display: inline; font-size: 1.03rem; }
.faq details p { color: var(--muted); padding: 0 0 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; color: var(--muted); font-size: 0.92rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: 0.5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.guide-meta { color: var(--muted); font-size: 0.9rem; margin-top: 8px; font-weight: 550; }
.section.article-body { width: min(740px, calc(100% - 32px)); text-align: left; font-size: 1.1rem; line-height: 1.8; }
.article-body h2 { margin-top: 40px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.article-body ul { margin: 14px 0 0; padding-left: 1.3em; }
.article-body li { margin-top: 8px; }
.article-body a { font-weight: 600; }
.guide-end { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.98rem; }
.prose { padding-bottom: 36px; }
.prose p, .stack > * + * { margin-top: 14px; }
.spaced { margin-top: 18px; }
.spaced-lg { margin-top: 24px; }
.prose h2, .stack h2 { margin-top: 34px; }
.muted { color: var(--muted); }

/* ---------- Footer / banner / forms ---------- */
.site-footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 26px; padding: 44px 0 14px; }
.footer-brand p, .site-footer li a { color: var(--muted); }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer li a:hover { color: var(--accent); }
.footer-base { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 16px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; display: grid; gap: 4px; }
.install-banner {
    position: fixed; right: 14px; bottom: 14px; z-index: 55; display: flex; align-items: center; gap: 8px; width: min(290px, calc(100% - 28px));
    padding: 8px 10px; border-radius: 14px; background: #0f1826; color: #fff; border: 1px solid #223049; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}
.install-banner[hidden] { display: none; }
.install-mark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(135deg, #14b8a0, #5eead4); color: #06231d; font-weight: 800; font-size: 0.8rem; }
.install-copy { min-width: 0; flex: 1; }
.install-copy strong { display: block; font-size: 0.8rem; line-height: 1.25; }
.install-copy p { margin: 1px 0 0; color: #a9b6ca; font-size: 0.68rem; line-height: 1.25; }
.install-go { border: 0; border-radius: 9px; background: #3fe0c0; color: #06231d; padding: 6px 10px; font-size: 0.74rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.install-close { border: 0; background: transparent; color: #a9b6ca; font-size: 1rem; line-height: 1; cursor: pointer; padding: 2px; }
.form-grid { display: grid; gap: 12px; }
.form-grid input, .form-grid textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; background: var(--bg); color: var(--ink); }
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--accent); }
.form-grid textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .media-card .preview-reel { width: min(100%, 260px); max-height: 462px; }
}
@media (max-width: 720px) {
    .header-inner { gap: 8px; }
    .brand { font-size: 1.04rem; }
    .lang-toggle { padding: 0 10px; }
    .lang-toggle [data-lang-name] { display: none; }
    .theme-toggle { padding: 0 12px; }
    .hero, .page-hero { padding-top: 30px; }
    .lede { font-size: 1.02rem; }
    .story-row { gap: 8px; }
    .story-card .actions { padding: 6px; }
    .story-card .actions .btn, .story-card .actions a.btn { min-height: 36px; padding: 0 4px; font-size: 0.72rem; }
    .install-banner { left: auto; right: 10px; bottom: 10px; width: min(270px, calc(100% - 20px)); padding: 7px 8px; gap: 7px; }
    .install-mark { width: 24px; height: 24px; border-radius: 8px; font-size: 0.72rem; }
    .install-copy strong { font-size: 0.74rem; }
    .install-copy p { font-size: 0.64rem; }
    .install-go { padding: 5px 8px; font-size: 0.7rem; }
    .header-inner, .hero, .page-hero, .section { width: min(var(--max), calc(100% - 24px)); }
    .panel { padding: 12px; border-radius: 24px; }
}
@media (max-width: 560px) {
    .search-bar { flex-wrap: wrap; padding: 8px; }
    .search-bar .lookup-input { flex: 1 1 calc(100% - 52px); }
    .search-go { flex: 1 1 100%; }
}
@media (min-width: 720px) {
    .card-grid, .steps, .footer-inner { grid-template-columns: 1fr 1fr; }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .hero, .page-hero { padding-top: 72px; }
    .hero h1, .page-hero h1 { font-size: 3rem; }
}
@media (min-width: 860px) {
    .hero, .page-hero { text-align: center; }
    .hero h1, .page-hero h1, .hero .lede, .page-hero .lede { margin-inline: auto; }
    .hero .trust-row, .page-hero .trust-row { justify-content: center; }
    .hero .crumbs ol, .page-hero .crumbs ol { justify-content: center; }
    .hero .panel, .page-hero .panel { width: min(700px, 100%); margin-inline: auto; text-align: left; }
    .media-card:has(.preview-reel) { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 22px; align-items: start; }
    .media-card:has(.preview-reel) .preview-reel { grid-row: 1 / span 4; width: 300px; max-width: 300px; margin: 0; justify-self: start; }
    .page-hero.prose { text-align: left; }
}
@media (min-width: 1100px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
    .nav-toggle { display: none !important; }
    .lang { margin-left: 8px; order: 4; }
    .theme-toggle { order: 5; }
    .site-nav {
        display: flex !important; order: 3; position: static !important; flex-direction: row; align-items: center; gap: 2px;
        min-width: 0; margin-left: auto; padding: 0; border: 0; box-shadow: none; background: transparent;
    }
    .site-nav a { color: var(--muted); font-size: 0.93rem; padding: 8px 13px; border-radius: 999px; }
    .site-nav a:hover { color: var(--ink); background: var(--wash); }
    .site-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
    .hero h1, .page-hero h1 { font-size: 3.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .tool-card:hover { transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.hero > .eyebrow { align-self: flex-start; }
@media (min-width: 860px) { .hero > .eyebrow { align-self: center; } }
.hero > .trust-row { justify-content: center; }
