:root {
  --ink: #04050b;
  --panel: #0a0c16;
  --panel-2: #0f1220;
  --line: #1b2133;
  --line-2: #273049;
  --text: #eef2f7;
  --muted: #9aa6b8;
  --dim: #6b778c;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --q-edge-up: #5eead4;
  --q-grows: #8ab4ff;
  --q-edge-steady: #f6c56b;
  --q-shape: #f39ab6;
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: #a9c6ff; }
a:hover { color: #fff; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(4, 5, 11, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand b { color: var(--blue-2); font-weight: 600; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 8px 14px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } .nav-cta { font-size: 13px; padding: 7px 11px; } }

/* ---------- hero + ask ---------- */
.hero { padding: 64px 0 28px; }
.hero h1 { font: 700 clamp(36px, 5.6vw, 64px)/1.06 var(--serif); letter-spacing: -0.015em; margin: 0 0 18px; max-width: 19ch; }
.hero p.lede { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 0 30px; }
.edition { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dim); font-size: 13.5px; margin-bottom: 26px; }
.edition span b { color: var(--text); font-weight: 600; }

.ask { position: relative; background: linear-gradient(180deg, #0d1222, #090b15); border: 1px solid var(--line-2); border-radius: 20px; padding: 18px; box-shadow: 0 30px 80px -40px rgba(37, 99, 235, 0.55); }
.ask-row { display: flex; gap: 12px; align-items: center; }
.ask .thoob-av { width: 54px; height: 54px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 70%, #fff3d1, #f6c56b 60%, #8a5a20); }
.ask input { flex: 1; min-width: 0; background: #05070e; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 16px; font-size: 18px; color: var(--text); }
.ask input::placeholder { color: #6f7b91; }
.ask input:focus { border-color: var(--blue-2); outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); }
.ask button.go { flex: none; background: var(--blue); color: #fff; border: 0; border-radius: 12px; padding: 16px 20px; font-weight: 600; cursor: pointer; }
.ask button.go:hover { background: #1d4fd6; }
.ask-try { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px 66px; }
.ask-try button { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; color: #c9d3e3; cursor: pointer; }
.ask-try button:hover { border-color: var(--blue-2); color: #fff; }
.ask-note { margin: 12px 0 0 66px; color: var(--dim); font-size: 12.5px; }
.suggest { position: absolute; left: 84px; right: 18px; top: 74px; z-index: 20; background: #0b0e1a; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; display: none; max-height: 320px; overflow: auto; }
.suggest.open { display: block; }
.suggest button { display: flex; width: 100%; justify-content: space-between; gap: 12px; text-align: left; background: transparent; border: 0; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--text); }
.suggest button:hover, .suggest button[aria-selected="true"] { background: #141a2c; }
.suggest small { color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .ask { padding: 14px; border-radius: 16px; }
  .ask .thoob-av { width: 40px; height: 40px; }
  .ask input { font-size: 16px; padding: 13px 12px; }
  .ask button.go { padding: 13px 14px; }
  .ask-try, .ask-note { margin-left: 0; }
  .suggest { left: 14px; right: 14px; top: 64px; }
}

/* ---------- answer ---------- */
.answer { margin-top: 18px; display: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; }
.answer.open { display: block; }
.answer h2 { font: 600 24px/1.25 var(--serif); margin: 0 0 6px; }
.answer .sub { color: var(--muted); margin: 0 0 14px; }
.answer .ai { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.answer .ai-head { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.answer .ai-head .thoob-av { width: 30px; height: 30px; border-radius: 50%; background: #f6c56b; }
.answer .ai-body p { margin: 0 0 10px; max-width: 72ch; }
.answer .ai-body ul { margin: 0 0 10px; padding-left: 20px; }
.answer .ai-foot { color: var(--dim); font-size: 12.5px; }
.answer .ai-left { display: block; margin-top: 6px; color: var(--muted); }
.answer .ai-limit p { margin: 0 0 10px; max-width: 70ch; }
.answer .ai-up { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; color: #c9d3e3; }
.answer .ai-up a { color: var(--q-edge-up); font-weight: 600; white-space: nowrap; }
.typing::after { content: '▍'; animation: blink 1s steps(2) infinite; color: var(--blue-2); }
@keyframes blink { 50% { opacity: 0; } }
.mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.mini { display: block; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--text); }
.mini:hover { border-color: var(--line-2); background: #121729; }
.mini b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.mini span { color: var(--muted); font-size: 13px; }
.facts-line { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.facts-line b { color: var(--text); font-weight: 600; }

/* ---------- section scaffolding ---------- */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2.h { font: 700 clamp(28px, 3.6vw, 40px)/1.12 var(--serif); margin: 0 0 12px; letter-spacing: -0.01em; }
section p.intro { color: var(--muted); max-width: 64ch; margin: 0 0 28px; font-size: 17px; }

/* ---------- world stats ---------- */
.world { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.world div { background: var(--ink); padding: 22px 20px; }
.world strong { display: block; font: 700 34px/1 var(--serif); margin-bottom: 10px; }
.world p { margin: 0 0 10px; color: #c9d3e3; font-size: 15px; line-height: 1.45; }
.world cite { font-style: normal; color: var(--dim); font-size: 12.5px; }
.world.trends { grid-template-columns: repeat(3, 1fr); }
.world strong i { font-style: normal; color: var(--dim); font-weight: 400; margin: 0 2px; }
.world strong .vs { font: 400 16px var(--sans); color: var(--dim); vertical-align: middle; margin: 0 6px; }
.world cite a { color: var(--dim); }
.world cite a:hover { color: var(--text); }
@media (max-width: 900px) { .world, .world.trends { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .world, .world.trends { grid-template-columns: 1fr; } }

/* ---------- this year's edition ---------- */
.ed-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 920px; }
.ed-row { display: grid; grid-template-columns: 170px 1fr 1.6fr; border-top: 1px solid var(--line); }
.ed-row:first-child { border-top: 0; }
.ed-row > span { padding: 14px 18px; font-size: 15px; line-height: 1.45; }
.ed-row > span:nth-child(1) { color: var(--muted); font-weight: 500; }
.ed-row > span:nth-child(2) { color: var(--dim); }
.ed-row > span:nth-child(3) { color: var(--text); background: rgba(37, 99, 235, 0.07); }
.ed-row > span:nth-child(3) b { font: 700 22px/1 var(--serif); color: var(--text); margin-right: 2px; }
.ed-headrow > span { font-size: 13px; color: var(--muted) !important; padding-top: 12px; padding-bottom: 12px; font-weight: 600; }
.ed-headrow > span:nth-child(3) { color: #8ab4ff !important; }
.ed-price > span:nth-child(3) b { color: var(--q-edge-up); }
.ed-h3 { font: 600 24px/1.25 var(--serif); margin: 44px 0 8px; }
.six { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1040px; }
.six li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.six b { display: block; font-size: 15px; margin-bottom: 4px; }
.six span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.ed-note { margin-top: 16px; max-width: 70ch; }
@media (max-width: 900px) { .six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .ed-row { grid-template-columns: 1fr 1fr; }
  .ed-row > span:nth-child(1) { grid-column: 1 / -1; padding-bottom: 0; font-size: 13px; }
  .ed-headrow > span:nth-child(1) { display: none; }
  .ed-row > span { padding: 10px 14px; font-size: 14px; }
  .six { grid-template-columns: 1fr; }
}

/* ---------- what moved ---------- */
.moves { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.mv-col h3 { font: 600 20px var(--serif); margin: 0 0 10px; }
.mv-up h3 { color: var(--q-edge-up); }
.mv-down h3 { color: var(--q-shape); }
.mv-col ol { list-style: none; margin: 0; padding: 0; }
.mv-col li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; }
.mv-col li:first-child { border-top: 0; padding-top: 4px; }
.mv-col li button { all: unset; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--text); }
.mv-col li button:hover { color: #8ab4ff; text-decoration: underline; }
.mv-col li button:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }
.mv-rank { font: 500 14px var(--mono); color: var(--muted); white-space: nowrap; align-self: start; padding-top: 2px; }
.mv-rank i { font-style: normal; color: var(--dim); }
.mv-col li p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.mv-note { margin-top: 18px; max-width: 72ch; }
@media (max-width: 820px) { .moves { grid-template-columns: 1fr; } }

/* ---------- map ---------- */
.map-wrap { position: relative; background: radial-gradient(120% 90% at 50% 0%, #0c1122, #05060d 70%); border: 1px solid var(--line-2); border-radius: 20px; padding: 14px; }
.map-svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.map-svg .quad-label { font: 600 15px var(--sans); }
.map-svg .quad-sub { font: 400 12px var(--sans); fill: #8a96aa; }
.map-svg .axis { font: 400 12px var(--sans); fill: #8a96aa; }
.map-svg.narrow .axis { font-size: 11px; }
.map-svg.narrow .quad-label { font-size: 13px; }
.map-svg circle.dot { cursor: pointer; transition: opacity .2s; }
.map-svg circle.dot.dim { opacity: 0.08; }
.map-svg circle.dot.hi { stroke: #fff; stroke-width: 1.5; }
.map-tip { position: absolute; pointer-events: none; background: #0b0f1d; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; max-width: 240px; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .12s; }
.map-tip.on { opacity: 1; }
.map-tip b { display: block; font-weight: 600; }
.map-tip span { color: var(--muted); }
.quads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.quad { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; }
.quad[aria-pressed="true"] { border-color: currentColor; background: #0f1426; }
.quad b { display: block; font-weight: 600; margin-bottom: 4px; }
.quad p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.quad .n { color: var(--text); font-size: 13px; margin-top: 8px; display: block; }
.q-edge_up { color: var(--q-edge-up); }
.q-grows { color: var(--q-grows); }
.q-edge_steady { color: var(--q-edge-steady); }
.q-shape { color: var(--q-shape); }
@media (max-width: 900px) { .quads { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quads { grid-template-columns: 1fr; } .map-wrap { padding: 8px 4px; } }

/* ---------- filters + list ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--dim); }
.filters select, .filters input[type=search] { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 10px; font-size: 14.5px; min-width: 150px; }
.filters input[type=search] { min-width: 220px; }
.filters .reset { align-self: flex-end; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; cursor: pointer; color: var(--muted); }
.count { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } .filters label { flex: 1 1 45%; } .filters select, .filters input[type=search] { min-width: 0; width: 100%; } }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; }
.card:hover { border-color: var(--line-2); }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card h3 { margin: 0; font: 600 19px/1.25 var(--serif); }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; border-radius: 4px; }
.card .grp { color: var(--dim); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ring { position: relative; width: 52px; height: 52px; flex: none; }
.ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 16px var(--sans); }
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 96px 1fr 64px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.bar i { display: block; height: 6px; border-radius: 6px; background: #1b2133; overflow: hidden; }
.bar i em { display: block; height: 100%; border-radius: 6px; }
.bar span { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cmp { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: var(--muted); }
.cmp input { accent-color: var(--blue-2); }
.more { display: block; margin: 22px auto 0; background: transparent; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 11px 18px; cursor: pointer; }
.empty { color: var(--muted); padding: 30px 0; }

/* ---------- compare tray ---------- */
.tray { position: fixed; transition: transform .25s, bottom .2s; left: 50%; bottom: 16px; transform: translateX(-50%) translateY(140%); z-index: 40; background: #0c1020; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transition: transform .25s; max-width: calc(100% - 24px); }
.tray { visibility: hidden; }
.tray.on { transform: translateX(-50%) translateY(0); visibility: visible; }
.tray .names { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.tray button { background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 600; cursor: pointer; }
.tray button.clear { background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-weight: 500; }

/* ---------- dialogs ---------- */
dialog { width: min(860px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; background: #080a13; color: var(--text); border: 1px solid var(--line-2); border-radius: 20px; }
dialog::backdrop { background: rgba(2, 3, 8, 0.72); backdrop-filter: blur(3px); }
.dlg { padding: 26px 28px 30px; }
.dlg-close { position: sticky; top: 0; float: right; margin: 14px 14px 0 0; background: #111628; border: 1px solid var(--line-2); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; font-size: 20px; line-height: 1; z-index: 2; }
.dlg h2 { font: 700 clamp(26px, 3.4vw, 36px)/1.12 var(--serif); margin: 8px 0 6px; padding-right: 30px; }
.dlg .lead { color: #c9d3e3; max-width: 70ch; }
.dlg h3 { font: 600 18px/1.3 var(--serif); margin: 26px 0 10px; }
.dlg ul { margin: 0; padding-left: 20px; }
.dlg li { margin: 4px 0; }
.dlg .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .dlg { padding: 20px 18px 24px; } .dlg .grid2 { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 18px 0 4px; }
.kv div { background: #0b0e19; padding: 12px 14px; }
.kv small { display: block; color: var(--dim); font-size: 12px; }
.kv b { font-weight: 600; font-size: 17px; }
@media (max-width: 700px) { .kv { grid-template-columns: repeat(2, 1fr); } }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.box p { margin: 0; color: #c9d3e3; }
.note { color: var(--dim); font-size: 13px; }
.headline-score { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.headline-score .ring, .headline-score .ring svg { width: 74px; height: 74px; }
.headline-score .ring b { font-size: 22px; }
.sp { display: grid; gap: 9px; }
.sp .bar { grid-template-columns: 150px 1fr 40px; font-size: 13.5px; }
.flag { border-left: 3px solid var(--q-shape); background: #170d14; padding: 12px 14px; border-radius: 8px; color: #f3d5df; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { display: inline-block; text-decoration: none; background: var(--blue); color: #fff; padding: 11px 16px; border-radius: 10px; font-weight: 600; border: 0; cursor: pointer; }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); font-weight: 500; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table th { color: var(--dim); font-weight: 500; width: 160px; }
.cmp-table td b { font: 600 17px/1.25 var(--serif); }
.cmp-scroll { overflow-x: auto; }

/* ---------- sources + method ---------- */
.src-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .src-grid { grid-template-columns: 1fr; } }
.src { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.src h3 { margin: 0 0 2px; font: 600 17px/1.3 var(--serif); }
.src .meta { color: var(--dim); font-size: 13px; margin-bottom: 10px; }
.src ul { margin: 0; padding-left: 18px; color: #c9d3e3; font-size: 14.5px; }
.src li { margin: 4px 0; }
.method { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } }
.method ol { padding-left: 20px; color: #c9d3e3; }
.method li { margin: 8px 0; }
.weights { display: flex; height: 14px; border-radius: 8px; overflow: hidden; margin: 10px 0 8px; }
.weights i { display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.limits li { color: var(--muted); }

/* ---------- next steps ---------- */
.next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .next { grid-template-columns: 1fr; } }
.next a { display: block; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.next a:hover { border-color: var(--blue-2); }
.next b { display: block; font: 600 19px/1.3 var(--serif); margin-bottom: 6px; }
.next span { color: var(--muted); font-size: 14.5px; }
.next em { display: block; font-style: normal; margin-top: 10px; color: var(--q-edge-up); font-size: 13.5px; font-weight: 600; }

footer.site-foot { border-top: 1px solid var(--line); padding: 28px 0 60px; color: var(--dim); font-size: 13.5px; }
footer.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
footer.site-foot a { color: var(--muted); text-decoration: none; margin-right: 16px; }
.loading { color: var(--muted); padding: 40px 0; }
.ed-note, .mv-note { font-size: 14px; color: var(--muted); }
.edition a { color: #8ab4ff; text-decoration: none; }
.edition a:hover { text-decoration: underline; }

/* ---------- upgrade ladder and nudges ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.rung { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.rung h3 { font: 600 21px/1.25 var(--serif); margin: 0 0 4px; }
.rung-sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.rung ul { list-style: none; margin: 8px 0 18px; padding: 0; flex: 1; }
.rung li { position: relative; padding: 0 0 9px 22px; color: #c9d3e3; font-size: 14.5px; line-height: 1.45; }
.rung li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--q-edge-up); border-bottom: 2px solid var(--q-edge-up); transform: rotate(-45deg); }
.rung-free { border-color: rgba(94, 234, 212, 0.45); }
.rung-free h3 { margin-bottom: 12px; }
.here { position: absolute; top: -11px; left: 18px; background: var(--q-edge-up); color: #04201b; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.rung-cta { display: block; text-align: center; text-decoration: none; background: var(--blue); color: #fff; font-weight: 600; font-size: 14.5px; padding: 11px 14px; border-radius: 10px; }
.rung-cta:hover { background: var(--blue-2); }
.rung-free .rung-cta { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.rung-free .rung-cta:hover { border-color: var(--q-edge-up); }
.rung-link { display: block; text-align: center; margin-top: 10px; color: #8ab4ff; font-size: 13.5px; text-decoration: none; }
.rung-link:hover { text-decoration: underline; }
.ladder-foot { margin: 18px 0 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ladder-foot a { color: #8ab4ff; text-decoration: none; }
.ladder-foot a:hover { text-decoration: underline; }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr; } .rung ul { flex: none; } }
.nudge { margin: 22px 0 4px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--q-edge-up); border-radius: 12px; padding: 14px 16px; }
.nudge b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.nudge p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.nudge a { color: var(--q-edge-up); font-weight: 600; font-size: 14px; text-decoration: none; margin-right: 16px; }
.nudge a:hover { text-decoration: underline; }

/* ---------- static career pages (/careers/<slug>/) ---------- */
.cp { padding: 34px 0 60px; }
.cp .wrap { max-width: 860px; }
.cp-crumb { color: var(--dim); font-size: 14px; margin: 0 0 18px; }
.cp-crumb a { color: #8ab4ff; text-decoration: none; }
.cp-pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin: 0 0 10px; border: 1px solid currentColor; }
.cp-edge_up { color: var(--q-edge-up); } .cp-grows { color: var(--q-grows); } .cp-edge_steady { color: var(--q-edge-steady); } .cp-shape { color: var(--q-shape); }
.cp h1 { font: 700 clamp(32px, 5vw, 48px)/1.1 var(--serif); margin: 0 0 14px; }
.cp h2 { font: 600 21px/1.3 var(--serif); margin: 0 0 10px; }
.cp-desc { color: #c9d3e3; font-size: 18px; line-height: 1.6; max-width: 70ch; margin: 0 0 24px; }
.cp-score { display: flex; gap: 18px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; }
.cp-score strong { font: 700 52px/1 var(--serif); color: var(--q-edge-up); min-width: 72px; }
.cp-score p { margin: 6px 0 0; color: #c9d3e3; line-height: 1.55; }
.cp-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 18px; }
.cp-facts div { background: var(--ink); padding: 12px 14px; }
.cp-facts dt { color: var(--dim); font-size: 12.5px; margin: 0 0 4px; }
.cp-facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.cp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.cp section { margin: 0 0 28px; }
.cp section ul { margin: 0; padding-left: 20px; color: #c9d3e3; line-height: 1.6; }
.cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cp-two > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cp-sim { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cp-sim li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cp-sim a { display: block; color: var(--text); font-weight: 600; text-decoration: none; }
.cp-sim a:hover { color: #8ab4ff; }
.cp-sim span { color: var(--muted); font-size: 13.5px; }
.cp-next { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--q-edge-up); border-radius: 12px; padding: 16px 18px; }
.cp-next p { color: var(--muted); margin: 0 0 12px; }
.cp-alts, .cp-src { margin-top: 10px; line-height: 1.6; }
.cp-src a { color: #8ab4ff; }
@media (max-width: 760px) { .cp-facts { grid-template-columns: 1fr 1fr; } .cp-two, .cp-sim { grid-template-columns: 1fr; } .cp-score strong { font-size: 42px; min-width: 56px; } }
.cp section { padding: 0; border-top: 0; }

/* "Email me a fuller answer" offer under Mr Thoob */
.answer .ai-follow { margin-top: 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; }
.answer .ai-follow p { margin: 0 0 10px; color: #c9d3e3; }
.ai-follow-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-follow-row input { flex: 1 1 220px; min-width: 0; background: var(--bg, #070910); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; }
.ai-follow-row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.ai-follow-opt { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13px; color: var(--muted); }
.answer .ai-follow-hint { font-size: 12px; color: var(--dim); margin: 8px 0 0; }
.answer .ai-follow-hint a { color: #8ab4ff; }
.answer .ai-follow-msg { font-size: 13px; color: #f6c56b; margin: 6px 0 0; min-height: 1em; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Founding families: shown under the ask box only while free places remain */
.founding { display: block; margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--blue-2); border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 14px; line-height: 1.5; text-decoration: none; }
.founding b { color: var(--text); }
.founding .u { color: var(--text); text-decoration: underline; white-space: nowrap; }
.founding:hover, .founding:focus-visible { border-color: var(--text); }
.founding.hidden { display: none; }
