/* ==========================================================================
   MY ONE BLOG — "Signal Desk" (see DESIGN.md)
   Light editorial newsroom · one indigo accent · gold reserved for featured
   ========================================================================== */

:root {
  --mob-bg: #F5F6F9;
  --mob-bg-soft: #ECEEF4;
  --mob-surface: #FFFFFF;
  --mob-ink: #12151C;
  --mob-ink-2: #4A5160;
  --mob-muted: #6B7285;
  --mob-line: #E3E6EE;
  --mob-accent: #3B4CE0;
  --mob-accent-ink: #FFFFFF;
  --mob-accent-soft: #E9ECFF;
  --mob-gold: #B7791F;
  --mob-gold-soft: #FBF1DE;
  --mob-ok: #1F7A55;
  --mob-ok-soft: #E3F4EC;
  --mob-risk: #B4232C;
  --mob-dark: #0B0E17;
  --mob-dark-2: #141A2B;
  --mob-brand: linear-gradient(135deg, #A855F7 0%, #6366F1 50%, #06B6D4 100%);
  --mob-shadow-1: 0 1px 2px rgba(18, 21, 28, .05), 0 8px 24px -14px rgba(18, 21, 28, .16);
  --mob-shadow-2: 0 2px 4px rgba(18, 21, 28, .05), 0 26px 50px -22px rgba(30, 36, 90, .30);
  --mob-radius: 18px;
  --mob-radius-sm: 12px;
  --mob-maxw: 1220px;
  --mob-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --mob-body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mob-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --mob-ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --mob-bg: #0B0E17;
  --mob-bg-soft: #10141F;
  --mob-surface: #121726;
  --mob-ink: #EDF0F7;
  --mob-ink-2: #A9B1C4;
  --mob-muted: #8A93A8;
  --mob-line: #232A3D;
  --mob-accent: #8C98FF;
  --mob-accent-ink: #0B0E17;
  --mob-accent-soft: #1C2245;
  --mob-gold: #E0B25A;
  --mob-gold-soft: #2A2112;
  --mob-ok: #4ACB91;
  --mob-ok-soft: #10261C;
  --mob-dark: #060810;
  --mob-dark-2: #0F1322;
  --mob-shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -14px rgba(0, 0, 0, .6);
  --mob-shadow-2: 0 2px 4px rgba(0, 0, 0, .4), 0 26px 50px -22px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--mob-body);
  color: var(--mob-ink);
  background: var(--mob-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--mob-display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--mob-accent); color: var(--mob-accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--mob-maxw); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mob-mono); }
.brand-text { background: var(--mob-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--mob-accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--mob-accent-soft); }

/* ---------- Buttons & chips ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .8em 1.35em; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 650 15.5px/1 var(--mob-body); transition: transform .25s var(--mob-ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn .arr { transition: transform .25s var(--mob-ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--mob-accent); color: var(--mob-accent-ink); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--mob-accent) 80%, transparent); }
.btn-primary::after { content: ''; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35), transparent 70%); transition: transform .7s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--mob-accent) 90%, transparent); }
.btn-ghost { background: var(--mob-surface); color: var(--mob-ink); border-color: var(--mob-line); }
.btn-ghost:hover { border-color: var(--mob-accent); color: var(--mob-accent); }
.btn-light { background: #fff; color: #12151C; }
.btn-light:hover { background: #EEF0FF; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-outline-light:hover { border-color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .34em .75em; border-radius: 999px;
  font: 600 12.5px/1.2 var(--mob-body); background: var(--mob-bg-soft); color: var(--mob-ink-2); border: 1px solid var(--mob-line);
}
a.chip:hover { border-color: var(--mob-accent); color: var(--mob-accent); }
.chip-cat { background: color-mix(in srgb, var(--c, #3B4CE0) 11%, var(--mob-surface)); color: color-mix(in srgb, var(--c, #3B4CE0) 80%, var(--mob-ink)); border-color: transparent; }
:root[data-theme="dark"] .chip-cat { color: color-mix(in srgb, var(--c, #8C98FF) 60%, white); background: color-mix(in srgb, var(--c, #8C98FF) 16%, var(--mob-surface)); }
.chip-hot { background: #FDECEC; color: var(--mob-risk); border-color: transparent; }
:root[data-theme="dark"] .chip-hot { background: #2B1416; color: #F08A8F; }
.chip-featured { background: var(--mob-gold-soft); color: var(--mob-gold); border-color: color-mix(in srgb, var(--mob-gold) 35%, transparent); }
.chip-local { background: var(--mob-ok-soft); color: var(--mob-ok); border-color: transparent; }
.eyebrow { font: 600 12px/1.3 var(--mob-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mob-accent); display: inline-flex; gap: .6em; align-items: center; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.kbd { font: 600 11.5px/1 var(--mob-mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--mob-line); background: var(--mob-bg); color: var(--mob-muted); }

/* ---------- Progress, header (capsule nav) ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--mob-accent); z-index: 120; transition: width .1s linear; }
.site-header { position: sticky; top: 0; z-index: 60; padding: 12px 0; transition: padding .3s var(--mob-ease); }
.capsule {
  display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 10px 0 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--mob-surface) 82%, transparent); border: 1px solid var(--mob-line);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--mob-shadow-1); transition: height .3s var(--mob-ease), box-shadow .3s;
}
.site-header.scrolled { padding: 8px 0; }
.site-header.scrolled .capsule { height: 56px; box-shadow: var(--mob-shadow-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.brand svg.mark { width: 38px; height: 38px; transition: transform .35s var(--mob-ease); }
.brand:hover svg.mark { transform: rotate(-8deg) scale(1.05); }
.brand-word { font: 800 19px/1 var(--mob-display); letter-spacing: -.03em; color: var(--mob-ink); }
.brand-word small { display: block; font: 500 10.5px/1.2 var(--mob-mono); color: var(--mob-muted); letter-spacing: .04em; margin-top: 4px; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav > a, .nav-drop > button {
  min-height: 42px; padding: 0 14px; border-radius: 999px; font: 600 14.5px/1 var(--mob-body); color: var(--mob-ink-2);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35em;
}
.main-nav > a:hover, .nav-drop > button:hover, .nav-drop.open > button, .main-nav > a.active { background: var(--mob-bg-soft); color: var(--mob-ink); }
.nav-drop { position: relative; }
.nav-drop > button .icon { transition: transform .2s; }
.nav-drop.open > button .icon { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; width: 620px; padding: 14px;
  background: var(--mob-surface); border: 1px solid var(--mob-line); border-radius: 22px; box-shadow: var(--mob-shadow-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--mob-ease);
}
.mega.narrow { width: 340px; grid-template-columns: 1fr; }
.nav-drop:hover .mega, .nav-drop:focus-within .mega, .nav-drop.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; font-weight: 600; font-size: 14.5px; }
.mega a small { display: block; color: var(--mob-muted); font-weight: 500; font-size: 12.5px; }
.mega a:hover { background: var(--mob-bg-soft); }
.mega .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, var(--mob-surface)); color: var(--c); flex: none; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px 0 14px; border-radius: 999px;
  border: 1px solid var(--mob-line); background: var(--mob-bg); color: var(--mob-muted); font: 500 14px var(--mob-body); cursor: pointer;
}
.search-trigger:hover { border-color: var(--mob-accent); color: var(--mob-ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--mob-line); background: var(--mob-surface); color: var(--mob-ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--mob-accent); border-color: var(--mob-accent); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 150; display: none; }
.palette.open { display: block; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(11, 14, 23, .45); backdrop-filter: blur(4px); }
.palette-box {
  position: relative; max-width: 640px; margin: 10vh auto 0; background: var(--mob-surface); border: 1px solid var(--mob-line);
  border-radius: 22px; box-shadow: var(--mob-shadow-2); overflow: hidden; animation: pop .22s var(--mob-ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--mob-line); color: var(--mob-muted); }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--mob-ink); font: 500 18px var(--mob-body); }
.palette-results { max-height: 60vh; overflow: auto; padding: 8px; }
.palette-group { font: 600 11px var(--mob-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mob-muted); padding: 12px 12px 6px; }
.palette-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--mob-ink); }
.palette-item .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mob-bg-soft); color: var(--mob-accent); flex: none; }
.palette-item b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.palette-item small { color: var(--mob-muted); font-size: 13px; display: block; line-height: 1.35; }
.palette-item:hover, .palette-item.active { background: var(--mob-accent-soft); }
.palette-empty { padding: 26px 16px; color: var(--mob-muted); text-align: center; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--mob-line); font-size: 12.5px; color: var(--mob-muted); }

/* ---------- Messages ---------- */
.flash { margin: 6px auto 0; padding: 14px 18px; border-radius: 14px; background: var(--mob-ok-soft); color: var(--mob-ok); font-weight: 600; border: 1px solid color-mix(in srgb, var(--mob-ok) 30%, transparent); }
.flash.error { background: #FDECEC; color: var(--mob-risk); border-color: #F5C2C5; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 34px 0 54px; }
.hero::before {
  content: ''; position: absolute; z-index: -1; width: 70vw; max-width: 900px; aspect-ratio: 1; right: -18%; top: -38%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .22), rgba(6, 182, 212, .08) 55%, transparent); filter: blur(30px);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.04; margin: 16px 0 16px; max-width: 15ch; }
.hero h1 .accent { color: var(--mob-accent); }
.hero-lead { font-size: 18.5px; color: var(--mob-ink-2); max-width: 50ch; margin: 0 0 24px; }
.hero-search { display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: var(--mob-surface); border: 1px solid var(--mob-line); box-shadow: var(--mob-shadow-2); max-width: 560px; }
.hero-search .icon { margin-left: 12px; color: var(--mob-muted); align-self: center; width: 20px; height: 20px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 16.5px var(--mob-body); color: var(--mob-ink); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.quick span { font: 500 12.5px var(--mob-mono); color: var(--mob-muted); margin-right: 2px; }
.hero-feature { position: relative; }
.feature-card {
  position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--mob-surface);
  border: 1px solid var(--mob-line); box-shadow: var(--mob-shadow-2); transition: transform .35s var(--mob-ease);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mob-bg-soft); }
.feature-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--mob-ease); }
.feature-card:hover .media img { transform: scale(1.04); }
.feature-card .body { padding: 22px 24px 24px; }
.feature-card h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 12px 0 8px; }
.feature-card p { color: var(--mob-ink-2); margin: 0; }
.feature-tag { position: absolute; top: 16px; left: 16px; z-index: 2; font: 600 11.5px var(--mob-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--mob-surface); color: var(--mob-ink); padding: 7px 11px; border-radius: 999px; box-shadow: var(--mob-shadow-1); }
.float-stat { position: absolute; z-index: 3; background: var(--mob-surface); border: 1px solid var(--mob-line); border-radius: 16px; box-shadow: var(--mob-shadow-2); padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.float-stat b { font: 700 20px/1 var(--mob-display); display: block; }
.float-stat small { font: 500 11.5px var(--mob-mono); color: var(--mob-muted); }
.float-stat .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--mob-accent-soft); color: var(--mob-accent); }
.float-stat.one { left: -28px; bottom: -22px; }
.float-stat.two { right: -20px; top: 28px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font: 500 12.5px var(--mob-mono); color: var(--mob-muted); }
.meta span { display: inline-flex; gap: .4em; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--mob-line); border-radius: var(--mob-radius); background: var(--mob-surface); margin-top: 46px; box-shadow: var(--mob-shadow-1); }
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--mob-line); }
.stat b { font: 700 clamp(26px, 3vw, 34px)/1 var(--mob-display); letter-spacing: -.02em; }
.stat small { font: 500 12px var(--mob-mono); color: var(--mob-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Sections & bands ---------- */
.section { padding: clamp(56px, 7vw, 92px) 0; position: relative; }
.band-soft { background: var(--mob-bg-soft); }
.band-dark { background: var(--mob-dark); color: #E7EAF3; }
.band-dark h2, .band-dark h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 10px 0 0; }
.section-head p { color: var(--mob-ink-2); margin: 10px 0 0; max-width: 58ch; }
.link-arrow { font-weight: 700; color: var(--mob-accent); display: inline-flex; gap: .4em; align-items: center; white-space: nowrap; min-height: 44px; }
.link-arrow .icon { transition: transform .25s var(--mob-ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--mob-surface); border: 1px solid var(--mob-line); border-radius: var(--mob-radius); overflow: hidden; position: relative;
  display: flex; flex-direction: column; box-shadow: var(--mob-shadow-1); transition: transform .35s var(--mob-ease), box-shadow .35s var(--mob-ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--mob-shadow-2); border-color: color-mix(in srgb, var(--mob-accent) 28%, var(--mob-line)); }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mob-bg-soft); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--mob-ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .badge { position: absolute; top: 12px; left: 12px; font: 600 11px var(--mob-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--mob-surface); color: var(--mob-ink); padding: 6px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 19.5px; line-height: 1.25; margin: 0; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--mob-accent); }
.card .chips { position: relative; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.card p { color: var(--mob-ink-2); font-size: 15.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 6px; }

/* Lead story + list layout (latest section) */
.lead-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.story-list { display: grid; gap: 6px; align-content: start; }
.story-row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid transparent; transition: .2s; }
.story-row:hover { background: var(--mob-surface); border-color: var(--mob-line); box-shadow: var(--mob-shadow-1); }
.story-row img { width: 112px; height: 76px; object-fit: cover; border-radius: 12px; }
.story-row h3 { font-size: 16.5px; line-height: 1.3; margin: 4px 0 6px; }
.story-row:hover h3 { color: var(--mob-accent); }

.trend-list { counter-reset: t; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.trend { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--mob-line); position: relative; }
.trend::before { counter-increment: t; content: counter(t, decimal-leading-zero); font: 600 15px/1.6 var(--mob-mono); color: var(--mob-accent); flex: none; width: 30px; }
.trend h3 { font-size: 17px; line-height: 1.3; margin: 6px 0 6px; }
.trend h3 a::after { content: ''; position: absolute; inset: 0; }
.trend:hover h3 { color: var(--mob-accent); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-tile {
  position: relative; padding: 18px; border-radius: var(--mob-radius); background: var(--mob-surface); border: 1px solid var(--mob-line);
  display: flex; gap: 14px; align-items: center; transition: transform .3s var(--mob-ease), border-color .3s, box-shadow .3s; min-height: 76px;
}
.cat-tile:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: var(--mob-shadow-1); }
.cat-tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--mob-surface)); color: var(--c); flex: none; }
.cat-tile b { font: 700 15.5px/1.25 var(--mob-display); display: block; }
.cat-tile small { font: 500 12px var(--mob-mono); color: var(--mob-muted); }

/* ---------- Signal Board (signature) ---------- */
.board { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; background: var(--mob-surface); border: 1px solid var(--mob-line); border-radius: 26px; box-shadow: var(--mob-shadow-2); overflow: hidden; }
.board-map { padding: 28px; border-right: 1px solid var(--mob-line); }
.board-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.board-tools label { font: 600 12px var(--mob-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mob-muted); }
.board-tools input { flex: 1; min-width: 180px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--mob-line); background: var(--mob-bg); color: var(--mob-ink); font: 500 15px var(--mob-body); }
.board-tools input:focus { outline: 0; border-color: var(--mob-accent); box-shadow: 0 0 0 4px var(--mob-accent-soft); }
.tilemap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.tile {
  aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font: 600 clamp(9px, 1vw, 12.5px)/1 var(--mob-mono);
  background: var(--mob-bg-soft); border: 1px solid var(--mob-line); color: var(--mob-ink-2); transition: transform .18s var(--mob-ease), background .18s, color .18s; cursor: pointer;
}
a.tile:hover, a.tile:focus-visible, a.tile.active { background: var(--mob-accent); color: var(--mob-accent-ink); border-color: transparent; transform: scale(1.1); z-index: 2; }
a.tile.dim { opacity: .3; }
a.tile.match { background: var(--mob-accent-soft); color: var(--mob-accent); border-color: var(--mob-accent); }
.tile.empty { background: none; border: 0; cursor: default; }
.tile.ny { box-shadow: inset 0 0 0 2px var(--mob-accent); }
.board-legend { display: flex; gap: 16px; font: 500 12px var(--mob-mono); color: var(--mob-muted); margin-top: 16px; flex-wrap: wrap; }
.board-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--mob-accent); vertical-align: -1px; margin-right: 6px; }
.board-panel { padding: 28px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, var(--mob-bg-soft), var(--mob-surface)); position: relative; }
.board-code { font: 700 64px/1 var(--mob-display); color: var(--mob-accent); letter-spacing: -.03em; opacity: .14; position: absolute; right: 22px; top: 16px; }
.board-panel h3 { font-size: 28px; margin: 6px 0 0; }
.board-panel p { color: var(--mob-ink-2); margin: 0; font-size: 15.5px; }
.board-facts { display: grid; gap: 8px; }
.board-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 14.5px; }
.board-facts dt { font: 600 11.5px/1.7 var(--mob-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mob-muted); margin: 0; }
.board-facts dd { margin: 0; }
.board-links { display: grid; gap: 8px; margin-top: auto; }
.board-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--mob-surface); border: 1px solid var(--mob-line); font-weight: 650; min-height: 52px; transition: .2s; }
.board-links a:hover { border-color: var(--mob-accent); color: var(--mob-accent); transform: translateX(3px); }
.board-links .icon:last-child { margin-left: auto; }
.city-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.city-pills a { padding: .55em 1em; border-radius: 999px; border: 1px solid var(--mob-line); background: var(--mob-surface); font-weight: 600; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.city-pills a:hover { border-color: var(--mob-accent); color: var(--mob-accent); }

/* ---------- Spotlight (featured partner, dark band) ---------- */
.spotlight { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; }
.ghost-word { position: absolute; right: -2%; bottom: -46px; font: 800 clamp(6rem, 16vw, 13rem)/1 var(--mob-display); color: #fff; opacity: .035; pointer-events: none; user-select: none; letter-spacing: -.05em; }
.spotlight h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 14px 0 12px; }
.spotlight p { color: #B9C0D3; max-width: 52ch; }
.spotlight .chip-featured { background: rgba(224, 178, 90, .12); color: #E0B25A; border-color: rgba(224, 178, 90, .35); }
.spot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.spot-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--mob-dark-2); border: 1px solid rgba(255, 255, 255, .08); padding: 16px; border-radius: 16px; }
.spot-list li .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(140, 152, 255, .14); color: #A9B3FF; flex: none; }
.spot-list b { color: #fff; }
.spot-list small { color: #9AA3B9; font-size: 14px; }
.disclosure { font: 500 12px/1.5 var(--mob-mono); color: #8A93A8; margin-top: 18px; }

/* ---------- Glossary ---------- */
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a, .az span { min-width: 42px; height: 42px; padding: 0 6px; display: grid; place-items: center; border-radius: 11px; font: 600 14px var(--mob-mono); background: var(--mob-surface); border: 1px solid var(--mob-line); }
.az a:hover, .az a.active { background: var(--mob-accent); color: var(--mob-accent-ink); border-color: transparent; }
.az span { opacity: .35; }
.az-sticky { position: sticky; top: 92px; z-index: 20; background: color-mix(in srgb, var(--mob-bg) 90%, transparent); backdrop-filter: blur(10px); padding: 12px 0; }
.term-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.term-card { padding: 18px; border-radius: var(--mob-radius-sm); background: var(--mob-surface); border: 1px solid var(--mob-line); transition: .25s var(--mob-ease); }
.term-card:hover { border-color: var(--mob-accent); transform: translateY(-2px); box-shadow: var(--mob-shadow-1); }
.term-card b { font: 700 16px var(--mob-display); display: block; margin-bottom: 6px; }
.term-card p { font-size: 14.5px; color: var(--mob-ink-2); margin: 0; }
.filter-box { display: flex; align-items: center; gap: 10px; max-width: 520px; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--mob-line); background: var(--mob-surface); color: var(--mob-muted); box-shadow: var(--mob-shadow-1); }
.filter-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--mob-ink); font: 500 16px var(--mob-body); }
.filter-box:focus-within { border-color: var(--mob-accent); box-shadow: 0 0 0 4px var(--mob-accent-soft); }
.filter-count { font: 500 12.5px var(--mob-mono); color: var(--mob-muted); margin-top: 10px; }
.letter-group { margin-top: 34px; }
.letter-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.letter-head b { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 700 24px var(--mob-mono); background: var(--mob-accent); color: var(--mob-accent-ink); }
.letter-head span { font: 500 12.5px var(--mob-mono); color: var(--mob-muted); }
.term-row { display: grid; grid-template-columns: 250px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--mob-line); }
.term-row > a { font-weight: 700; color: var(--mob-ink); }
.term-row > a:hover { color: var(--mob-accent); }
.term-row p { margin: 0; color: var(--mob-ink-2); }

/* ---------- Newsletter (dark band) ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 12px 0 10px; }
.newsletter p { margin: 0; color: #B9C0D3; }
.newsletter form { display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: var(--mob-dark-2); border: 1px solid rgba(255, 255, 255, .1); }
.newsletter input { flex: 1; min-width: 0; padding: 0 16px; border: 0; outline: 0; background: none; color: #fff; font: 500 16px var(--mob-body); }
.newsletter input::placeholder { color: #7D869C; }
.newsletter .fine { font: 500 12px var(--mob-mono); color: #7D869C; margin-top: 12px; }

/* ---------- Article page ---------- */
.post-hero { padding: 26px 0 8px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12.5px var(--mob-mono); color: var(--mob-muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--mob-accent); }
.breadcrumbs span::after { content: '/'; margin-left: 8px; opacity: .5; }
.breadcrumbs span:last-child::after { content: ''; }
.post-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.post-hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 24ch; margin: 14px 0 16px; }
.post-hero .lead { font-size: 19.5px; color: var(--mob-ink-2); max-width: 64ch; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.byline b { font-weight: 700; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--mob-brand); color: #fff; display: grid; place-items: center; font: 800 18px var(--mob-display); flex: none; }
.avatar.lg { width: 88px; height: 88px; font-size: 34px; }
.cover { margin: 28px 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--mob-shadow-2); background: var(--mob-bg-soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.credit { font: 500 11.5px var(--mob-mono); color: var(--mob-muted); margin-top: 8px; }
.credit a { text-decoration: underline; }

.post-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 290px; gap: 44px; padding-top: 36px; padding-bottom: 64px; }
.term-layout { grid-template-columns: minmax(0, 1fr) 300px; padding-top: 0; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc h4, .rail-title { font: 600 11.5px var(--mob-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mob-muted); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--mob-line); }
.toc .toc { position: static; max-height: none; overflow: visible; }
.toc li a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--mob-muted); line-height: 1.35; }
.toc li a:hover, .toc li a.active { color: var(--mob-accent); border-color: var(--mob-accent); }
.share { display: flex; gap: 8px; margin-top: 22px; }
.toc-mobile { display: none; margin-bottom: 24px; border: 1px solid var(--mob-line); border-radius: 16px; background: var(--mob-surface); }
.toc-mobile summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: '+'; font: 600 18px var(--mob-mono); color: var(--mob-accent); }
.toc-mobile[open] summary::after { content: '−'; }
.toc-mobile .toc-inner { padding: 0 18px 14px; }
.toc-mobile ul { list-style: none; padding: 0; margin: 0; }
.toc-mobile li a { display: block; padding: 8px 0; color: var(--mob-ink-2); border-top: 1px solid var(--mob-line); }
.aside-stack { display: grid; gap: 18px; align-self: start; position: sticky; top: 100px; }
.aside-card { background: var(--mob-surface); border: 1px solid var(--mob-line); border-radius: var(--mob-radius); padding: 20px; box-shadow: var(--mob-shadow-1); }
.aside-card h4 { font-size: 16.5px; display: flex; gap: 8px; align-items: center; }
.aside-card.dark { background: var(--mob-dark); color: #DDE2EE; border-color: transparent; }
.aside-card.dark h4 { color: #fff; }
.aside-card.dark p { color: #A9B1C4; font-size: 14px; }
.aside-card input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--mob-line); margin: 4px 0 10px; font: 15px var(--mob-body); }
.glance { display: grid; gap: 0; margin: 0; }
.glance div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--mob-line); font-size: 14.5px; }
.glance div:first-child { border-top: 0; }
.glance dt { color: var(--mob-muted); }
.glance dd { margin: 0; font: 600 13.5px var(--mob-mono); text-align: right; }
.mini-post { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--mob-line); }
.mini-post:first-of-type { border-top: 0; }
.mini-post img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; }
.mini-post b { font-size: 14px; line-height: 1.35; font-weight: 600; }
.mini-post:hover b { color: var(--mob-accent); }

.prose { font-size: 18px; line-height: 1.78; color: var(--mob-ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(25px, 2.6vw, 30px); color: var(--mob-ink); margin: 2em 0 .6em; }
.prose h3 { font-size: 21px; color: var(--mob-ink); margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose a { color: var(--mob-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--mob-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--mob-accent); }
.prose blockquote { margin: 2em 0; padding: 22px 26px; border-radius: 18px; background: var(--mob-accent-soft); border-left: 4px solid var(--mob-accent); color: var(--mob-ink); font-size: 18.5px; font-weight: 500; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; display: block; overflow-x: auto; border: 1px solid var(--mob-line); border-radius: 14px; background: var(--mob-surface); }
.prose th { background: var(--mob-bg-soft); color: var(--mob-ink); text-align: left; font: 600 12.5px var(--mob-mono); text-transform: uppercase; letter-spacing: .06em; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--mob-line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { background: var(--mob-bg-soft); padding: .15em .4em; border-radius: 6px; font: .88em var(--mob-mono); }
.prose hr { border: 0; height: 1px; background: var(--mob-line); margin: 2.4em 0; }

/* Quick answer (AEO) + auto links */
.answer-box { margin: 22px 0 4px; max-width: 760px; padding: 18px 22px; border-radius: 18px; background: var(--mob-surface); border: 1px solid var(--mob-line); border-left: 4px solid var(--mob-ok); box-shadow: var(--mob-shadow-1); }
.answer-box p { margin: 6px 0 0; font-size: 17px; color: var(--mob-ink); line-height: 1.6; }
.answer-label { font: 600 11.5px var(--mob-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mob-ok); display: inline-flex; gap: 6px; align-items: center; }
.prose a.auto-link { text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--mob-accent) 45%, transparent); }
.prose a.term-link { color: inherit; text-decoration-style: dotted; text-decoration-color: var(--mob-accent); }
.prose a.term-link:hover { color: var(--mob-accent); }
.more-places { margin-top: 40px; padding: 24px; border-radius: 20px; border: 1px solid var(--mob-line); background: var(--mob-bg-soft); }
.more-places h3 { font-size: 20px; margin: 8px 0 14px; }

/* Ranked list */
.jump { position: sticky; top: 92px; z-index: 15; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 20px; border-radius: 16px; background: color-mix(in srgb, var(--mob-surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--mob-line); box-shadow: var(--mob-shadow-1); }
.jump span { font: 600 11px var(--mob-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mob-muted); margin-right: 4px; }
.jump a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font: 600 13px var(--mob-mono); color: var(--mob-ink-2); border: 1px solid var(--mob-line); background: var(--mob-bg); text-decoration: none; }
.jump a:hover, .jump a.active { background: var(--mob-accent); color: var(--mob-accent-ink); border-color: transparent; }
.jump a.gold { border-color: var(--mob-gold); color: var(--mob-gold); }
.rank-group { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; font: 600 12px var(--mob-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mob-muted); }
.rank-group::after { content: ''; flex: 1; height: 1px; background: var(--mob-line); }
.rank-group b { color: var(--mob-ink); }
.rank-list { display: grid; gap: 16px; margin: 0 0 40px; }
.rank-item { scroll-margin-top: 170px; position: relative; border: 1px solid var(--mob-line); background: var(--mob-surface); border-radius: 20px; padding: 24px 24px 22px 92px; box-shadow: var(--mob-shadow-1); }
.rank-item .num { position: absolute; left: 22px; top: 22px; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font: 700 18px var(--mob-mono); background: var(--mob-bg-soft); color: var(--mob-ink); }
.rank-item.featured { border: 1.5px solid color-mix(in srgb, var(--mob-gold) 55%, var(--mob-line)); background: linear-gradient(180deg, var(--mob-gold-soft), var(--mob-surface) 40%); }
.rank-item.featured .num { background: var(--mob-gold); color: #fff; }
.rank-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.rank-head h3 { font-size: 22px; margin: 0; }
.rank-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 12.5px var(--mob-mono); color: var(--mob-muted); margin: 10px 0 12px; }
.rank-facts span { display: inline-flex; gap: .4em; align-items: center; }
.rank-item p { margin: 0 0 12px; color: var(--mob-ink-2); font-size: 16.5px; line-height: 1.7; }
.rank-item ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rank-item ul li { font-size: 13px; padding: .35em .8em; border-radius: 999px; background: var(--mob-bg-soft); margin: 0; }
.rank-item .visit { margin-top: 10px; text-decoration: none; }
.rank-disclosure { display: flex; gap: 10px; font-size: 14px; color: var(--mob-ink-2); background: var(--mob-gold-soft); border: 1px solid color-mix(in srgb, var(--mob-gold) 30%, transparent); border-radius: 14px; padding: 12px 14px; margin: 0 0 18px; line-height: 1.55; }
.rank-disclosure .icon { color: var(--mob-gold); margin-top: 3px; }

/* FAQ */
.faq { margin-top: 48px; scroll-margin-top: 110px; }
.faq h2 { font-size: clamp(25px, 2.6vw, 30px); margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--mob-line); }
.faq details:first-of-type { border-top: 1px solid var(--mob-line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font: 700 17.5px/1.4 var(--mob-display); color: var(--mob-ink); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 500 22px/1 var(--mob-mono); color: var(--mob-accent); transition: transform .3s var(--mob-ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--mob-accent); }
.faq .answer { padding: 0 0 20px; color: var(--mob-ink-2); font-size: 16.5px; }
.faq .answer p:last-child { margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.author-box { display: flex; gap: 20px; padding: 24px; border-radius: 20px; background: var(--mob-surface); border: 1px solid var(--mob-line); margin-top: 40px; align-items: center; box-shadow: var(--mob-shadow-1); }
.author-box p { margin: 6px 0 0; color: var(--mob-ink-2); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--mob-ink); color: var(--mob-bg); border: 0; cursor: pointer; box-shadow: var(--mob-shadow-2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s var(--mob-ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { transform: rotate(-90deg); }

/* ---------- Listing pages ---------- */
.page-hero { padding: 30px 0 34px; position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; z-index: -1; width: 60vw; max-width: 760px; aspect-ratio: 1; right: -15%; top: -60%; background: radial-gradient(closest-side, rgba(99, 102, 241, .16), transparent); filter: blur(30px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); margin: 12px 0 10px; }
.page-hero p { color: var(--mob-ink-2); font-size: 18px; max-width: 62ch; margin: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 40px; font-family: var(--mob-mono); font-size: 14px; }
.pagination a, .pagination span { padding: .7em 1.1em; border-radius: 12px; border: 1px solid var(--mob-line); background: var(--mob-surface); font-weight: 600; }
.pagination a:hover { border-color: var(--mob-accent); color: var(--mob-accent); }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.state-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--mob-line); border-radius: 14px; background: var(--mob-surface); transition: .2s var(--mob-ease); min-height: 64px; }
.state-card:hover { border-color: var(--mob-accent); transform: translateY(-2px); box-shadow: var(--mob-shadow-1); }
.state-card b { width: 40px; height: 40px; border-radius: 11px; background: var(--mob-accent-soft); color: var(--mob-accent); display: grid; place-items: center; font: 600 13px var(--mob-mono); flex: none; }
.state-card span { font-weight: 650; }
.state-card small { display: block; font: 500 11.5px var(--mob-mono); color: var(--mob-muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--mob-muted); }
[hidden] { display: none !important; }

/* ---------- Forms ---------- */
.form-card { background: var(--mob-surface); border: 1px solid var(--mob-line); border-radius: 22px; padding: 30px; box-shadow: var(--mob-shadow-1); }
.form-card label { font-weight: 650; display: block; margin: 14px 0 6px; }
.form-card input, .form-card textarea { width: 100%; padding: .85em 1em; border-radius: 12px; border: 1px solid var(--mob-line); background: var(--mob-bg); color: var(--mob-ink); font: 16px var(--mob-body); }
.form-card input:focus, .form-card textarea:focus { outline: 0; border-color: var(--mob-accent); box-shadow: 0 0 0 4px var(--mob-accent-soft); }
.form-card .errorlist { color: var(--mob-risk); font-size: 14px; padding-left: 18px; margin: 4px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mob-dark); color: #9AA3B9; border-top: 1px solid #1E2537; padding: 70px 0 28px; font-size: 15px; position: relative; overflow: hidden; }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word small { color: #8A93A8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; position: relative; }
.site-footer h4 { color: #fff; font: 600 12px var(--mob-mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid #2A3247; border-radius: 12px; transition: border-color .2s, color .2s; }
.footer-social a:hover { border-color: #A9B3FF; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-email { display: inline-block; margin-top: 12px; font: 500 13px var(--mob-mono); overflow-wrap: anywhere; }
.footer-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 40px; font: 500 13px var(--mob-mono); position: relative; }
.footer-partners > span { color: #6F7890; text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
.footer-translate { margin-left: auto; min-height: 30px; }
.footer-translate .goog-te-gadget-simple { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: transparent; border: 1px solid #2A3247; border-radius: 10px; padding: 6px 10px; font: 500 13px var(--mob-mono); }
.footer-translate img { display: none; }  /* the widget's 1px spacer and logo images */
.footer-translate a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.footer-translate .goog-te-gadget-simple span, .footer-translate .goog-te-gadget-simple a { color: #C9D0E0 !important; border: 0 !important; }
/* Google Translate's top banner shifts the page; keep the layout fixed. */
iframe.skiptranslate, .goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.footer-bottom { border-top: 1px solid #1E2537; margin-top: 28px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font: 500 12.5px var(--mob-mono); position: relative; }
.footer-ghost { position: absolute; left: 50%; bottom: -0.18em; translate: -50% 0; font: 800 clamp(5rem, 15vw, 13rem)/1 var(--mob-display); color: #fff; opacity: .03; white-space: nowrap; pointer-events: none; user-select: none; letter-spacing: -.05em; }

/* ---------- Reveal (only when JS is running; content visible otherwise) ---------- */
.mob-js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--mob-ease), transform .7s var(--mob-ease); transition-delay: calc(var(--d, 0) * 70ms); }
.mob-js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mob-js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .post-layout > .toc { display: none; }
  .toc-mobile { display: block; }
  .search-trigger .label, .search-trigger .kbd { display: none; }
  .search-trigger { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; position: absolute; top: calc(100% + 6px); left: 24px; right: 24px; background: var(--mob-surface); flex-direction: column; padding: 12px; border: 1px solid var(--mob-line); border-radius: 22px; box-shadow: var(--mob-shadow-2); max-height: calc(100vh - 110px); overflow: auto; }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > button { width: 100%; justify-content: space-between; min-height: 48px; }
  .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; translate: none; box-shadow: none; border: 0; padding: 0 0 6px 6px; display: none; grid-template-columns: 1fr; }
  .mega.narrow { width: auto; }
  .nav-drop.open .mega { display: grid; }
  .site-header .container { position: relative; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .hero-grid, .board, .spotlight, .newsletter, .lead-split { grid-template-columns: 1fr; }
  .board-map { border-right: 0; border-bottom: 1px solid var(--mob-line); }
  .grid-3, .term-cards { grid-template-columns: repeat(2, 1fr); }
  .trend-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-stat.one { left: 12px; }
  .float-stat.two { right: 12px; }
}
@media (max-width: 860px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .aside-stack { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .container { padding: 0 16px; }
  .capsule { height: 58px; padding: 0 6px 0 12px; gap: 8px; }
  .brand-word { font-size: 17px; }
  .brand-word small { display: none; }
  .brand svg.mark { width: 34px; height: 34px; }
  .icon-btn, .search-trigger { width: 42px; height: 42px; min-height: 42px; }
  .main-nav { left: 16px; right: 16px; }
  .hero { padding-top: 18px; }
  .hero-search { border-radius: 18px; flex-wrap: wrap; }
  .hero-search .btn { width: 100%; }
  .hero-search input { min-height: 44px; }
  .float-stat { display: none; }
  .grid-3, .grid-2, .term-cards, .trend-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--mob-line); }
  .story-row { grid-template-columns: 88px 1fr; }
  .story-row img { width: 88px; height: 64px; }
  .board-map, .board-panel { padding: 18px; }
  .tilemap { gap: 3px; }
  .tile { border-radius: 5px; }
  .newsletter form { flex-direction: column; border-radius: 18px; }
  .newsletter input { min-height: 46px; }
  .footer-grid { grid-template-columns: 1fr; }
  .term-row { grid-template-columns: 1fr; gap: 4px; }
  .rank-item { padding: 18px; }
  .rank-item .num { position: static; margin-bottom: 12px; width: 44px; height: 44px; }
  .jump { top: 78px; }
  .prose { font-size: 17px; }
  .cover { aspect-ratio: 16 / 10; border-radius: 16px; }
  .palette-box { margin: 12px; }
  .az-sticky { top: 78px; }
}
.accent-text { color: var(--mob-accent); }

/* Search results */
.search-block { margin-top: 34px; }
.search-block h2 { font: 600 12px var(--mob-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mob-muted); margin-bottom: 14px; }
.search-suggest { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--mob-ink-2); }
.answer-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.answer-card { display: block; padding: 18px 20px; border-radius: 16px; background: var(--mob-surface); border: 1px solid var(--mob-line); border-left: 4px solid var(--mob-ok); box-shadow: var(--mob-shadow-1); transition: .2s var(--mob-ease); }
.answer-card:hover { transform: translateY(-2px); border-color: var(--mob-accent); }
.answer-card b { font: 700 16.5px/1.35 var(--mob-display); display: block; }
.answer-card p { margin: 8px 0; color: var(--mob-ink-2); font-size: 15px; }
.answer-card small { font: 500 12px var(--mob-mono); color: var(--mob-muted); }
@media (max-width: 760px) { .answer-list { grid-template-columns: 1fr; } }

/* Forms (contact, guest post, reviews) */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; align-items: start; padding-bottom: 50px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-weight: 650; font-size: 15px; margin: 0; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; min-height: 48px; padding: .75em 1em; border-radius: 12px; border: 1px solid var(--mob-line); background: var(--mob-bg); color: var(--mob-ink); font: 16px var(--mob-body); }
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--mob-accent); box-shadow: 0 0 0 4px var(--mob-accent-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--mob-risk); }
.field .err { color: var(--mob-risk); font-weight: 600; font-size: 13.5px; }
.field .help { color: var(--mob-muted); font-size: 13px; }
.req { color: var(--mob-risk); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check-field label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14.5px; line-height: 1.5; }
.check-field input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine-print { font-size: 13px; color: var(--mob-muted); margin: 12px 0 0; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--mob-ink-2); }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { padding: 20px; border-radius: 18px; background: var(--mob-surface); border: 1px solid var(--mob-line); box-shadow: var(--mob-shadow-1); }
.step-card .mono { font-size: 13px; color: var(--mob-accent); font-weight: 700; }
.step-card b { display: block; font: 700 18px var(--mob-display); margin: 8px 0 4px; }
.step-card p { margin: 0; font-size: 14.5px; color: var(--mob-ink-2); }

/* Reviews */
.reviews { margin-top: 48px; scroll-margin-top: 110px; }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.reviews-head h2 { font-size: clamp(24px, 2.4vw, 28px); margin: 10px 0 0; }
.review-score { text-align: right; }
.review-score b { font: 800 34px/1 var(--mob-display); display: block; }
.review-score small { font: 500 12px var(--mob-mono); color: var(--mob-muted); display: block; }
.stars { color: #E0A100; letter-spacing: 2px; }
.stars .off { color: var(--mob-line); }
.review { padding: 18px 0; border-top: 1px solid var(--mob-line); }
.review-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review p { margin: 8px 0; color: var(--mob-ink-2); }
.review small { color: var(--mob-muted); font-size: 12.5px; }
.reviews-empty { color: var(--mob-muted); padding: 14px 0; border-top: 1px solid var(--mob-line); margin: 0; }
.review-form-wrap { margin-top: 16px; }
.review-form-wrap > summary { list-style: none; width: fit-content; }
.review-form-wrap > summary::-webkit-details-marker { display: none; }
.review-form-wrap[open] > summary { margin-bottom: 14px; }
.star-input { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.star-input legend { font-weight: 650; font-size: 15px; margin-bottom: 6px; float: left; width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 32px; line-height: 1; color: var(--mob-line); cursor: pointer; padding: 4px; transition: color .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #E0A100; }
.star-input input:focus-visible + label { outline: 3px solid var(--mob-accent-soft); border-radius: 6px; }
.rating-chip { background: #FFF6DB; color: #8A6100; border-color: transparent; }
:root[data-theme="dark"] .rating-chip { background: #2A2112; color: #E0B25A; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .field-row, .steps-row { grid-template-columns: 1fr; } }

/* Author photo + byline role */
img.avatar { object-fit: cover; background: var(--mob-accent-soft); box-shadow: 0 0 0 3px var(--mob-surface), 0 0 0 4px var(--mob-line); }
.byline-role { display: block; font: 600 11px var(--mob-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mob-muted); }
.author-portrait { width: 220px; height: auto; border-radius: 24px; background: linear-gradient(160deg, var(--mob-accent-soft), var(--mob-bg-soft)); box-shadow: var(--mob-shadow-2); }
@media (max-width: 640px) { .author-portrait { width: 160px; } }

/* Pillar hubs */
.pillar-hero .pillar-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--mob-surface)); color: var(--c); font-size: 26px; margin-bottom: 14px; }
.cluster-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cluster-jump .mono { color: var(--mob-muted); font-size: 11px; }
.cluster-section { scroll-margin-top: 90px; }
.cluster-list { grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.row-answer { margin: 0 0 6px; font-size: 14px; color: var(--mob-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.muted-count { color: var(--mob-muted); font-size: 13px; }
@media (max-width: 860px) { .cluster-list { grid-template-columns: 1fr; } }
