/* RaajjeViyu v2 design: warm paper, deep teal, DM Sans and Manrope; a dark mode in deep green-black.
   Desktop and phone share one layout: a top bar with the pages, a theme toggle and Viyu (the chat guide),
   whose panel unfolds under the bar.
   Rules that tests and CLAUDE.md pin:
   * Status and impact are words plus a shape, never colours. Numbers stay neutral (an arrow shows direction).
   * One accent (teal) for actions and the logo tile. No per-tone or per-status colours anywhere.
   * Cards are plain paper with a hairline; blur only on the top bar (.glass). `.pane` is a card without blur.
   * Everything moves once and calmly, and stops under prefers-reduced-motion.
   * Nothing is loaded from a third-party host. The fonts are self-hosted (fonts.css). */

:root {
    --font-ui: 'DM Sans', -apple-system, system-ui, 'Segoe UI', sans-serif;
    --font-display: 'Manrope', 'DM Sans', system-ui, sans-serif;
    --r-lg: 14px; --r-md: 12px; --ease: cubic-bezier(.2, .8, .2, 1);
    /* One page frame and one rhythm: 10% | 80% | 10% from 1000px up (80% is capped at 1600px), 24px between cards, 24px inside them. */
    --gap: 16px; --pad: 20px;
    --w: calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px)));
    --edge: calc((100% - var(--w)) / 2);

    --bg: #f5f9f7;
    --ink: #17272a; --ink-2: #3f5457; --ink-3: #5d7275;
    --accent: #1f9d90; --accent-ink: #075d55; --accent-btn: #10756b; --on-btn: #ffffff; --accent-soft: #e7f3f0;
    --on-fill: #ffffff; --chart: #1a8f84; --area: rgba(26, 143, 132, .14);
    --glass: #ffffff; --glass-solid: #ffffff; --glass-bar: rgba(255, 255, 255, .92);
    --tile: #eef5f2; --tile-solid: #eef5f2;
    --line: #e2ece8; --edge-low: #dfe9e5; --hair: #e9f1ee;
    --shadow: 0 10px 32px rgba(18, 74, 66, .09);
    --shadow-hover: 0 16px 40px rgba(18, 74, 66, .16);
    --ring: #1f9d90;
    --map-bg: #e3efeb; --map-grid: #d0e2dc; --atoll: #6bb2a5; --atoll-strong: #3f8c7f; --land: #1b6157;
    --sea: #d3e5df; --land-fine: #f4faf7; --land-edge: #4a8c81; --bld: #b3d1c9; --bld-edge: #8fb5ab; --road: #ffffff; --road-edge: #c6dcd5; --path: #9fbeb7;
    --isle-1: #f3c276; --isle-2: #eca43a; --isle-3: #dd8610; --isle-4: #c26a06; --isle-5: #9a4a03;
    --heat-0: rgba(217, 119, 6, .04); --heat-1: rgba(217, 119, 6, .16); --heat-2: rgba(217, 119, 6, .30); --heat-3: rgba(217, 119, 6, .46); --heat-4: rgba(217, 119, 6, .64); --heat-5: rgba(194, 90, 4, .84);
    color-scheme: light;
}
.dark {
    --bg: #0b1416;
    --ink: #e8f1ef; --ink-2: #b4c6c3; --ink-3: #93a9a6;
    --accent: #4fc3b3; --accent-ink: #8fd8cb; --accent-btn: #10756b; --on-btn: #ffffff; --accent-soft: rgba(79, 195, 179, .16);
    --on-fill: #0b1416; --chart: #4fc3b3; --area: rgba(79, 195, 179, .2);
    --glass: #111e21; --glass-solid: #111e21; --glass-bar: rgba(11, 20, 22, .9);
    --tile: #162629; --tile-solid: #162629;
    --line: #223435; --edge-low: #2a3f3f; --hair: #1f3033;
    --shadow: 0 10px 34px rgba(0, 0, 0, .4);
    --shadow-hover: 0 16px 44px rgba(0, 0, 0, .45);
    --ring: #8fd8cb;
    --map-bg: #10191c; --map-grid: #1a2a2c; --atoll: #2e5a54; --atoll-strong: #2f7d72; --land: #6cc4b5;
    --sea: #070f11; --land-fine: #16302c; --land-edge: #3e6f66; --bld: #2b4a45; --bld-edge: #3d6159; --road: #3f615b; --road-edge: #1b2e2c; --path: #35534f;
    --isle-1: #8c6428; --isle-2: #bd822b; --isle-3: #e09a2e; --isle-4: #f5b04a; --isle-5: #ffcf7a;
    --heat-0: rgba(245, 166, 60, .04); --heat-1: rgba(245, 166, 60, .14); --heat-2: rgba(245, 166, 60, .26); --heat-3: rgba(245, 166, 60, .40); --heat-4: rgba(245, 166, 60, .56); --heat-5: rgba(245, 166, 60, .74);
    color-scheme: dark;
}

@media (min-width: 1000px) { :root { --w: min(80%, 1600px); } }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 112px) + 16px); }
body {
    margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
    font: 13.5px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    transition: background-color .2s, color .2s;
}
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 10px; }
.ic { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 40; padding: 10px 16px; border-radius: 999px; background: var(--accent-btn); color: var(--on-btn); font-weight: 600; transition: top .2s; }
.skip:focus { top: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── Frame ── */
.wrap { width: var(--w); margin-inline: auto; }
.app { padding: 0 0 36px; }
.page { width: var(--w); margin: 0 auto; }
.topbar-wrap { position: sticky; top: 0; z-index: 20; background: var(--glass-bar); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding-top: env(safe-area-inset-top, 0px); }
main { display: flex; flex-direction: column; gap: var(--gap); padding-top: 24px; }
.front-head + .app-main main { padding-top: var(--gap); }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s, transform .2s var(--ease); }
.iconbtn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.iconbtn:active { transform: scale(.94); }
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding: 16px 0 max(0px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--ink-2); font-weight: 500; padding: 4px 0; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--accent-ink); }
.made { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 5px; margin: 0; }
.heart { fill: var(--accent-ink); stroke: none; flex: none; }
@media (max-width: 640px) { .site-foot { flex-direction: column; justify-content: center; text-align: center; gap: 10px; } .foot-links { justify-content: center; } .made { justify-content: center; } }
.legal-toc ol { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 28px; }
.legal-toc li { padding: 5px 0; break-inside: avoid; }
.legal-toc a { color: var(--accent-ink); font-weight: 500; }
.legal { scroll-margin-top: 90px; }
.legal p { margin: 0 0 12px; max-width: 70ch; line-height: 1.65; color: var(--ink-2); }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 12px; padding-left: 20px; max-width: 70ch; color: var(--ink-2); line-height: 1.65; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); }

/* cards: paper with a hairline. `.glass` and `.pane` are both cards (the names are historical); only the top bar blurs. */
.glass, .pane { background: var(--glass); box-shadow: 0 0 0 1px var(--line); }
.tile { background: var(--tile); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--edge-low); }
.card { border-radius: var(--r-lg); padding: var(--pad); min-width: 0; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .topbar-wrap { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
    .topbar-wrap { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) { :root { --ink-3: var(--ink-2); --edge-low: rgba(43, 45, 94, .45); --line: rgba(24, 39, 43, .35); } .dark { --ink-3: var(--ink-2); --edge-low: rgba(255, 255, 255, .45); --line: rgba(255, 255, 255, .4); } }

/* ── Masthead: one centred lighthouse, balanced navigation, quiet tools ── */
.topbar, .topbar.glass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; width: var(--w); min-height: 88px; margin-inline: auto; padding: 10px 0; background: none; box-shadow: none; }
.masthead-note { margin: 0; max-width: 17ch; color: var(--ink-3); font-size: 10px; line-height: 1.6; letter-spacing: .035em; }
.topbar .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-column: 2; position: relative; align-items: center; gap: 20px; isolation: isolate; }
.nav-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nav a.tab { position: relative; display: grid; place-items: center; flex: 1 1 auto; min-height: 44px; padding: 10px 16px; border-radius: 10px; color: var(--ink-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.nav a.tab:hover { background: var(--tile); color: var(--accent-ink); }
.nav a.tab[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.nav a.tab[aria-current="page"]::after { content: ""; position: absolute; bottom: 5px; left: calc(50% - 8px); width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.bar-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 4px; padding-left: 14px; border-left: 1px solid var(--line); }
.bar-right a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.logo { display: block; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-btn); box-shadow: 0 0 0 3px var(--glass-solid), 0 0 0 4px var(--line), 0 5px 14px rgba(16, 117, 107, .12); transition: box-shadow .25s; }
.logo .bird { width: 100%; height: 100%; }
.viyu-launch, .viyu-home { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 104px; padding: 4px 8px; border-radius: 14px; color: var(--ink); }
.viyu-launch:hover .logo, .viyu-launch[aria-expanded="true"] .logo, .viyu-launch[aria-current="page"] .logo, .viyu-home:hover .logo { box-shadow: 0 0 0 3px var(--glass-solid), 0 0 0 4px var(--accent), 0 5px 18px rgba(16, 117, 107, .18); }
.viyu-label { text-align: center; line-height: 1.15; }
.viyu-label strong { font: 800 10.5px/1.15 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.viyu-thought { position: absolute; top: calc(100% + 12px); left: 50%; width: max-content; max-width: 190px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-solid); box-shadow: var(--shadow); color: var(--ink-2); font-size: 10.5px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -4px); transition: opacity .2s, transform .2s; z-index: 2; }
.viyu-launch:focus-visible .viyu-thought { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) { .viyu-launch:hover .viyu-thought { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; } }
.viyu-launch[aria-expanded="true"] .viyu-thought { opacity: 0; }
@media (max-width: 1239px) {
    .topbar, .topbar.glass { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 8px 0 12px; }
    .masthead-note { display: none; }
    .bar-right { grid-column: 2; grid-row: 1; padding-left: 0; border: 0; }
    .topbar .nav { grid-column: 1 / -1; grid-row: 2; gap: 16px; padding-top: 6px; border-top: 1px solid var(--hair); }
}
@media (max-width: 760px) {
    .topbar, .topbar.glass { gap: 2px 8px; padding: 4px 0 10px; }
    .masthead-note { font-size: 10px; letter-spacing: .01em; }
    .bar-right { gap: 0; }
    .topbar .nav { gap: 6px; }
    .nav-side { gap: 0; }
    .nav a.tab { padding: 10px 4px; font-size: 10px; letter-spacing: -.015em; }
    .logo { width: 38px; height: 38px; }
    .viyu-launch, .viyu-home { min-width: 80px; gap: 6px; padding: 4px 0; }
    .viyu-label strong { font-size: 10px; }
}
@media (max-width: 359px) {
    .topbar .nav { gap: 3px; }
    .nav a.tab { padding-inline: 2px; font-size: 10px; }
    .viyu-launch, .viyu-home { min-width: 72px; }
    .viyu-label strong { font-size: 10px; }
}

/* ── Viyu, the lighthouse ── */
.bird { display: block; overflow: hidden; flex: none; border-radius: 50%; }
.bird .beam-aim { transform-origin: 60px 33px; transform: rotate(calc(var(--ang, 0) * 1deg)); }  /* app.js sets --ang: the beam turns to the pointer */
.bird[data-ease] .beam-aim { transition: transform .3s ease-out; }
.bird .beam-sweep { transform-origin: 60px 33px; animation: beamspin 10s linear infinite; }  /* no pointer on the page: the beam turns all the way round, like a real lamp */
@keyframes beamspin { to { transform: rotate(360deg); } }
.bird[data-aim] .beam-sweep { animation: none; }
.bird .lamp-glow { transform-origin: 60px 33px; animation: lampglow 3.2s ease-in-out infinite; }
@keyframes lampglow { 50% { opacity: .7; transform: scale(1.15); } }
.bird .sea-far { animation: wavedrift 11s linear infinite; }
.bird .sea-mid { animation: wavedrift 7s linear infinite reverse; }
.bird .sea-near { animation: wavedrift 4.5s linear infinite; }
@keyframes wavedrift { to { transform: translateX(-40px); } }
.bird .sea-glint { transform-origin: 60px 100px; animation: glint 3.6s ease-in-out infinite; }
@keyframes glint { 50% { opacity: .55; transform: scaleX(1.18); } }
.bird .foam { animation: foam 4s ease-in-out infinite; }
@keyframes foam { 50% { opacity: .25; } }
.bird .palm { transform-box: fill-box; transform-origin: 50% 100%; animation: palmsway 5.5s ease-in-out infinite; }
.bird .palm2 { animation-duration: 7s; animation-delay: -2s; }
.bird .palm3 { animation-duration: 6.2s; animation-delay: -1s; }
@keyframes palmsway { 50% { transform: rotate(3.5deg); } }
.bird[data-mood="think"] .lamp-glow { animation: lampglow .7s ease-in-out infinite; }
.bird[data-mood="happy"] .beam { animation: beamwide 1.2s ease-in-out 2; }
@keyframes beamwide { 50% { transform: scale(1.3); } }
.bird .beam { transform-origin: 60px 33px; }
/* ── Viyu's panel: unfolds under the bar ── */
.viyu-expander { display: grid; grid-template-rows: 0fr; visibility: hidden; background: linear-gradient(125deg, var(--bg), var(--tile) 55%, var(--bg)); border-bottom: 1px solid transparent; transition: grid-template-rows .44s cubic-bezier(.2, .7, .2, 1), border-color .25s, visibility 0s .44s; position: relative; z-index: 15; }
.viyu-expander.open { grid-template-rows: 1fr; visibility: visible; border-color: var(--line); box-shadow: 0 13px 28px rgba(22, 62, 56, .08); transition-delay: 0s; }
.viyu-clip { min-height: 0; overflow: hidden; }
.viyu-expander:not(.open) .bird * { animation-play-state: paused !important; }
.viyu-expander:not(.open) .bird { visibility: hidden; }
html[data-page-hidden] .bird * { animation-play-state: paused !important; }
.viyu-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 0; box-sizing: border-box; height: 66.667vh; height: min(66.667dvh, var(--vvh, 66.667dvh)); padding: 16px 0 20px; }  /* two thirds of the screen (owner, 2026-11-01); the intro is a strip on top, the chat takes the whole width below */
.viyu-intro { min-width: 0; display: flex; flex-direction: column; gap: 4px; border-radius: 20px 20px 0 0; padding: 8px 12px; background: radial-gradient(ellipse at 8% 60%, var(--accent-soft) 0, transparent 40%), var(--glass); box-shadow: 0 -1px 0 var(--line) inset, 1px 0 0 var(--line) inset, -1px 0 0 var(--line) inset, 0 1px 0 var(--line); }
.viyu-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #31ae8c; box-shadow: 0 0 0 3px rgba(49, 174, 140, .18); display: block; }
.viyu-intro-main { display: flex; align-items: center; gap: 18px; }
.viyu-art { position: relative; flex: 0 0 84px; height: 84px; display: grid; place-items: center; }
.viyu-art .bird { width: 76px; height: 76px; }
.viyu-art .bird { position: relative; z-index: 2; box-shadow: 0 10px 24px rgba(26, 83, 67, .16); }
.orbit { position: absolute; border: 1px solid var(--atoll); border-radius: 50%; opacity: .8; }
.orbit-1 { inset: 22px; } .orbit-2 { inset: 4px; border-style: dashed; opacity: .45; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viyu-intro-copy .viyu-h2 { font: 800 clamp(18px, 1.79vw, 23px)/1.15 var(--font-display); letter-spacing: -.04em; margin-bottom: 4px; }
.viyu-intro-copy br { display: none; }
.viyu-intro-copy .viyu-h2 em { font-style: normal; color: var(--accent-ink); }
.viyu-intro-copy p { font-size: 11.5px; line-height: 1.55; color: var(--ink-2); max-width: 70ch; }
.viyu-workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--glass); border-radius: 0 0 20px 20px; box-shadow: 1px 0 0 var(--line) inset, -1px 0 0 var(--line) inset, 0 -1px 0 var(--line) inset, var(--shadow); overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 14px 16px 12px; border-bottom: 1px solid var(--hair); }
.chat-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); }
.chat-avatar .bird { width: 36px; height: 36px; }
.chat-header .viyu-h3 { font: 800 13.5px var(--font-display); letter-spacing: -.02em; }
.viyu-intro-bar { display: flex; align-items: center; gap: 8px; }
.viyu-intro-bar b { font: 650 12.5px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.viyu-intro-bar #viyu-status { font-size: 11px; color: var(--ink-3); margin-right: auto; }
.viyu-intro-bar .close-btn { flex: none; }
.viyu-mark { display: block; width: 24px; height: 24px; flex: none; }
.viyu-h2, .viyu-h3 { margin: 0; }
.chat-header small { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); }
.close-btn { margin-left: auto; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--tile); color: var(--ink-2); transition: background .2s; }
.close-btn:hover { background: var(--accent-soft); }
.chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 8px; overscroll-behavior: contain; }
.chat-foot { padding: 6px 16px 14px; }
.viyu-workspace .chat-bubble { font-size: 13px; }
.chat-bubble { animation: bubble-in .3s var(--ease) both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-foot .chat-examples { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chat-foot .chat-examples::-webkit-scrollbar { display: none; }
.chat-foot .chat-examples .chip { white-space: nowrap; }
.chat-foot .chat-form { background: var(--glass); box-shadow: 0 2px 12px rgba(18, 74, 66, .07), inset 0 0 0 1px var(--edge-low); }
@media (max-width: 900px) {
    .viyu-layout { gap: 0; padding: 12px 0 14px; grid-template-rows: auto minmax(0, 1fr); }
    /* the header row is already one line; it stays on a phone because it carries the only close button */
    .viyu-intro { padding: 6px 10px; }
}

/* ── Today: hero and the map of places ── */
.hero { display: grid; grid-template-columns: 1.45fr .55fr; gap: 35px; align-items: center; padding: 22px 0 30px; }
.hero h1 { font: 800 clamp(29px, 3.22vw, 46.5px)/1.14 var(--font-display); letter-spacing: -.05em; margin: 13px 0 14px; max-width: 760px; text-wrap: balance; }
.hero h1 em { color: var(--accent-ink); font-style: normal; }
.hero-copy p { max-width: 620px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent-ink); font-weight: 700; }
.hero .eyebrow::before { content: ""; display: block; width: 17px; height: 2px; background: var(--accent-ink); flex: none; }
.hero-aside { border-left: 1px solid var(--line); padding-left: 32px; }
.aside-title { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-bottom: 10px; }
.aside-feature { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; color: inherit; }
.aside-dot { width: 30px; height: 30px; flex: none; background: var(--accent-soft); border-radius: 9px; display: grid; place-items: center; color: var(--accent-ink); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.aside-feature:hover .aside-dot { transform: scale(1.1) rotate(-4deg); }
.aside-feature strong { font-size: 11.5px; display: block; }
.aside-feature small { font-size: 10.5px; line-height: 1.45; color: var(--ink-3); display: block; margin-top: 2px; }
@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; padding-top: 8px; } .hero-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }

/* Street level: from about 9 m per pixel the tiles of islands, roads and buildings are drawn over the atolls. */
.stage[data-size="tall"] { height: min(82vh, 760px); }
.stage { transition: background-color .4s; scroll-margin-top: 76px; }
.stage:has(.stage-svg:not([data-detail="atoll"])) { background-color: var(--sea); background-image: none; }
.tiles { pointer-events: none; }
.tiles path { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.t-l { fill: var(--land-fine); fill-rule: evenodd; stroke: var(--land-edge); stroke-width: 1px; }
.t-m, .t-a, .t-p { fill: none; stroke: var(--road); }
.t-m { stroke-width: var(--road-w, 1px); }
.t-a { stroke-width: calc(var(--road-w, 1px) * 1.5); }
.t-p { stroke: var(--path); stroke-width: max(1px, calc(var(--road-w, 1px) * .3)); stroke-dasharray: 3 3; }
.t-b { fill: var(--bld); stroke: var(--bld-edge); stroke-width: .6px; }
.stage-svg[data-detail="atoll"] .tiles { display: none; }
.stage-svg:not([data-detail="atoll"]) .region path { fill: transparent; stroke: none; pointer-events: none; }
.stage-svg:not([data-detail="atoll"]) .rlabel { opacity: 0; }
.stage-svg:not([data-detail="atoll"])[data-tiles="ready"] .islands { opacity: 0; }
.islands { transition: opacity .4s; }
.bname { font: 700 10px var(--font-ui); fill: var(--ink); paint-order: stroke; stroke: var(--land-fine); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }

.tiny-label { font-weight: 600; font-size: 11px; letter-spacing: .01em; color: var(--ink-3); }
/* The hero: copy over a full-width map of the real atolls. The chain runs north-south, so it is turned to lie
   horizontally (north to the left); "north up" turns it back and the stage grows taller. */
.hero-stage { background: linear-gradient(to bottom, var(--bg), var(--map-bg) 70%); border-bottom: 1px solid var(--line); }
.hero-in { width: var(--w); margin-inline: auto; }
.hero-stage .hero { padding-bottom: 6px; }
.stage { position: relative; height: clamp(250px, 26vw, 380px); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
    background-image: radial-gradient(130% 100% at 50% 45%, transparent 60%, color-mix(in srgb, var(--map-grid) 70%, transparent)), linear-gradient(to right, color-mix(in srgb, var(--map-grid) 55%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--map-grid) 55%, transparent) 1px, transparent 1px); background-size: 100% 100%, 64px 64px, 64px 64px; background-position: center; }
.stage:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
.stage.dragging { cursor: grabbing; }
.stage[data-orient="vertical"] { height: min(86vh, 800px); }
.stage-svg { display: block; width: 100%; height: 100%; }
.region { cursor: pointer; outline: none; }
.region path { fill-opacity: .7; fill: var(--heat-0); stroke: color-mix(in srgb, var(--atoll-strong) 65%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .45s, fill-opacity .25s, stroke .2s, stroke-width .2s, filter .25s; animation: heat-in 1s var(--ease) backwards; }
.region[data-level="1"] path { fill: var(--heat-1); }
.region[data-level="2"] path { fill: var(--heat-2); }
.region[data-level="3"] path { fill: var(--heat-3); }
.region[data-level="4"] path { fill: var(--heat-4); }
.region[data-level="5"] path { fill: var(--heat-5); }
.no-heat .region path { fill: var(--heat-0); }
.swatches:not(.isle-key) { opacity: .7; }
.isle-key i[data-level="1"] { background: var(--isle-1); } .isle-key i[data-level="2"] { background: var(--isle-2); } .isle-key i[data-level="3"] { background: var(--isle-3); }
.isle-key i[data-level="4"] { background: var(--isle-4); } .isle-key i[data-level="5"] { background: var(--isle-5); }
.legend-sep { width: 1px; height: 14px; background: var(--line); }
/* The heat starts at the place itself: an island that stories are tagged to is outlined and filled by its own count, and its atoll
   takes the sum. Far out the outline is thickened so a small island still shows as a speck of heat; at street level it is a thin wash
   over the buildings. */
.hotisles .isle { outline: none; cursor: pointer; }
.hotisles .isle path { fill: transparent; stroke: transparent; stroke-width: 0; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; transition: fill .45s, stroke .45s; }
.isle[data-level="1"] path { fill: var(--isle-1); stroke: var(--isle-1); }
.isle[data-level="2"] path { fill: var(--isle-2); stroke: var(--isle-2); }
.isle[data-level="3"] path { fill: var(--isle-3); stroke: var(--isle-3); }
.isle[data-level="4"] path { fill: var(--isle-4); stroke: var(--isle-4); }
.isle[data-level="5"] path { fill: var(--isle-5); stroke: var(--isle-5); }
.isle:is([data-level="1"], [data-level="2"], [data-level="3"], [data-level="4"], [data-level="5"]) path { stroke-width: 3.5px; pointer-events: all; }
.isle:hover path, .isle:focus-visible path, .isle[aria-current] path { stroke: var(--accent-ink); stroke-width: 4.5px; }
.stage-svg:not([data-detail="atoll"]) .isle path { stroke-width: 0; fill-opacity: .4; pointer-events: none; }
.no-heat .hotisles { display: none; }
/* A building the news names: a dot of the same heat where it stands, from street level in. */
.hotisles .bld { outline: none; cursor: pointer; }
.hotisles .bld circle { fill: transparent; stroke: transparent; stroke-width: 0; vector-effect: non-scaling-stroke; transition: fill .4s; }
.bld:is([data-level="1"], [data-level="2"], [data-level="3"], [data-level="4"], [data-level="5"]) circle { stroke: var(--glass); stroke-width: 2px; }
.bld[data-level="1"] circle { fill: var(--isle-1); } .bld[data-level="2"] circle { fill: var(--isle-2); } .bld[data-level="3"] circle { fill: var(--isle-3); }
.bld[data-level="4"] circle { fill: var(--isle-4); } .bld[data-level="5"] circle { fill: var(--isle-5); }
.bld:hover circle, .bld:focus-visible circle { stroke: var(--accent-ink); }
.stage-svg[data-detail="atoll"] .bld, .bld[data-level="0"] { display: none; }  /* no heat for the chosen range or sector: nothing to hover, click or tab to */
.region:hover path, .region:focus-visible path, .region[aria-current] path { stroke: var(--accent-ink); stroke-width: 2.2; fill-opacity: 1; }
.region:hover path { filter: drop-shadow(0 3px 8px rgba(13, 80, 72, .28)); }
@keyframes heat-in { from { fill: var(--heat-0); } }
.islands path { fill: var(--land); stroke: var(--land); stroke-width: .8px; vector-effect: non-scaling-stroke; pointer-events: none; }
.rlabel { font: 700 10px var(--font-display); fill: var(--ink-2); paint-order: stroke; stroke: var(--map-bg); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; transition: opacity .25s; }
.rlabel.on { fill: var(--ink); }
.moving .rlabel, .moving .mk-name { opacity: 0; }
.mk { cursor: pointer; outline: none; transition: opacity .25s; }
.mk .hit { fill: transparent; }  /* no dot (owner, 2026-11-01): the island is a hit area, its name shows on hover and when zoomed in */
.mk-name { font: 800 10px var(--font-display); fill: var(--ink); paint-order: stroke; stroke: var(--map-bg); stroke-width: 3.5px; stroke-linejoin: round; opacity: 0; transition: opacity .2s; pointer-events: none; }
.mk:hover .mk-name, .mk:focus-visible .mk-name, .mk[aria-current] .mk-name, .stage-svg[data-zoom="near"] .mk-name { opacity: 1; }
.stage-svg:not([data-zoom="near"]) .mk.quiet:not(:hover):not(:focus-visible):not([aria-current]) { opacity: 0; pointer-events: none; }
.stage-tools { position: absolute; right: max(14px, var(--edge)); top: 12px; display: flex; align-items: center; gap: 3px; padding: 4px; background: var(--glass-bar); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--line); cursor: default; }
.tool { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s; }
.tool:hover { background: var(--accent-soft); color: var(--accent-ink); }
.tool[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.tool-sep { width: 1px; height: 20px; margin: 0 3px; background: var(--line); }
.stage-legend { position: absolute; left: max(16px, var(--edge)); bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--glass-bar); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; box-shadow: var(--shadow), 0 0 0 1px var(--line); font-size: 10px; font-weight: 700; color: var(--ink-3); pointer-events: none; transition: opacity .3s; }
.legend-hi { color: var(--ink-2); }
.swatches { display: flex; gap: 2px; }
.swatches i { display: block; width: 20px; height: 8px; border-radius: 3px; background: var(--heat-0); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--atoll-strong) 45%, transparent); }
.swatches i[data-level="1"] { background: var(--heat-1); } .swatches i[data-level="2"] { background: var(--heat-2); } .swatches i[data-level="3"] { background: var(--heat-3); }
.swatches i[data-level="4"] { background: var(--heat-4); } .swatches i[data-level="5"] { background: var(--heat-5); }
.no-heat ~ .stage-legend { opacity: .4; }
.stage-hint { position: absolute; right: max(16px, var(--edge)); bottom: 14px; font-size: 10px; font-weight: 600; color: var(--ink-3); pointer-events: none; }
.stage-tip { position: absolute; z-index: 3; display: grid; gap: 2px; min-width: 150px; padding: 10px 13px 11px; background: var(--glass); border-radius: 13px; box-shadow: var(--shadow-hover), 0 0 0 1px var(--line), inset 3px 0 0 var(--accent); pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); animation: tip-in .18s var(--ease) backwards; }
@keyframes tip-in { from { opacity: 0; } }
.stage-tip.below { transform: translate(-50%, 20px); }
.stage-tip strong { font: 800 12px/1.25 var(--font-display); letter-spacing: -.02em; }
.stage-tip em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--ink-3); }

/* Heat controls: the time range and the sector the map is shaded by. */
.heat-panel { position: absolute; z-index: 2; left: max(14px, var(--edge)); top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 5px; max-width: calc(100% - 100px); background: var(--glass-bar); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 1px var(--line); cursor: default; }
.heat-panel[hidden] { display: none; }
.seg { --at: 1; position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 10px; background: var(--tile); }
.seg button { position: relative; z-index: 1; padding: 6px 11px; border-radius: 8px; font: 700 10.5px var(--font-ui); color: var(--ink-3); white-space: nowrap; transition: color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--accent-ink); }
.seg button:focus-visible, .heat-sector select:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 8px; background: var(--glass-solid); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(18, 74, 66, .1); transform: translateX(calc(var(--at) * 100%)); transition: transform .4s var(--ease); }
.heat-sector select { padding: 8px 28px 8px 11px; border: 0; border-radius: 10px; background-color: var(--tile); font: 700 10.5px var(--font-ui); color: var(--ink); max-width: 190px; cursor: pointer; }
.lens.filtered .lens-list, .lens.filtered .lens-nums, .lens.filtered > .tiny-label { display: none; }

.small-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-low); font-size: 10.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: color .2s, box-shadow .2s; }
.small-btn:hover { color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.map-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-low); font-size: 10px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.map-chip:hover, .map-chip[aria-current] { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.dock { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding: var(--gap) 0 0; align-items: stretch; }
.dock-main { min-width: 0; }
.dock-side { display: grid; gap: 18px; min-width: 0; align-content: start; }
@media (min-width: 1000px) { .dock { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dock-main { grid-column: span 2; } }
.finder-row { display: flex; gap: 8px; margin-top: 7px; }
.finder select { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 0; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-low); font: 600 11.5px var(--font-ui); color: var(--ink); }
.finder select:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.ranked .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lens { display: flex; flex-direction: column; gap: 10px; animation: lens-in .45s var(--ease) backwards; }
@keyframes lens-in { from { opacity: 0; transform: translateY(8px); } }
.lens-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.focus-pill { color: var(--ink-3); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.lens h3 { font: 700 19.5px/1.2 var(--font-display); letter-spacing: -.025em; }
.lens p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.lens-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.lens-list li { padding-left: 14px; border-left: 2px solid var(--line); }
.lens-list a { display: block; font: 650 14px/1.35 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.lens-list a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.lens-list span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-3); }
.lens h2 { font: 700 19.5px/1.2 var(--font-display); letter-spacing: -.025em; }
.lens-nums { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.lens-nums li { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 11px; color: var(--ink); }
.lens-nums span { color: var(--ink-2); }
.lens-nums a { color: var(--accent-ink); font-size: 10px; text-decoration: underline; text-underline-offset: 2px; }
.dock .lens-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 20px; }
.dock-main.card { align-content: start; }
@media (max-width: 760px) {
    /* A phone shows the news soon: the standing map is about half the screen, the "Bigger map" button gives the rest. */
    .stage { height: 320px; } .stage[data-orient="vertical"] { height: min(52vh, 440px); }
    .stage[data-size="tall"], .stage[data-orient="vertical"][data-size="tall"] { height: min(82vh, 700px); }
    .stage-hint { display: none; } .stage-tools { top: 8px; right: 10px; flex-direction: column; } .tool { width: 38px; height: 38px; } .tool-sep { width: 20px; height: 1px; margin: 3px 0; }
    .stage-legend { left: 10px; right: 10px; bottom: 8px; justify-content: space-between; gap: 7px; font-size: 10px; padding: 6px 12px; border-radius: 14px; } .swatches { gap: 1px; } .swatches i { width: 12px; }
    .heat-panel { left: 10px; top: 8px; max-width: calc(100% - 72px); gap: 6px; padding: 4px; } .seg button { padding: 6px 8px; font-size: 10px; } .heat-sector select { max-width: 150px; padding: 7px 24px 7px 9px; }
    .seg .unit { display: none; }
    .stage-svg:not([data-zoom]) .rlabel { display: none; }  /* the static view is too small to read here */
}

.more-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12.5px; color: var(--ink-3); }
.more-links a:hover { color: var(--accent-ink); }


/* ── Motion ── */
.enter { animation: enter .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes enter { from { opacity: .2; transform: translateY(16px) scale(.985); } }
.lift { transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover), 0 0 0 1px var(--line); }
.lift:active { transform: translateY(0) scale(.985); }
.reveal { animation: reveal 1.2s cubic-bezier(.4, 0, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms + .3s); }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0); } }
@keyframes popc { from { transform: scale(0); opacity: 0; } }
@keyframes growx { from { transform: scaleX(0); } }

/* ── Type ── */
.title { font: 800 29px/1.12 var(--font-display); letter-spacing: -.045em; margin: 16px 2px 4px; text-wrap: balance; }
.sub { margin: 0 2px 18px; color: var(--ink-2); font-size: 12.5px; max-width: 62ch; }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 18px; }
.sec-head h2 { font: 700 19.5px/1.2 var(--font-display); letter-spacing: -.025em; }
.sec-head h2 { margin-right: auto; }
.muted { color: var(--ink-3); }
.sec-head .muted { font-size: 12.5px; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.more:hover { color: var(--accent-ink); }
.more .ic { transition: transform .3s var(--ease); }
.more:hover .ic { transform: translateX(3px); }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 0 -4px; padding: 6px 10px 6px 4px; font-weight: 600; color: var(--accent-ink); }
.back .ic { transition: transform .3s var(--ease); }
.back:hover .ic { transform: translateX(-3px); }
.foot { font-size: 11px; color: var(--ink-3); line-height: 1.5; margin-top: 14px; max-width: 70ch; }
.foot a, .src a, .quote-src a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ── Grid ── */
.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.grid > .promises-card { align-self: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
@media (min-width: 900px) {
    .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .s12 { grid-column: span 12; } .s6 { grid-column: span 6; } .s8 { grid-column: span 8; } .s4 { grid-column: span 4; }
}

/* ── Chips and segmented controls (links, so they work without scripts) ── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; flex: none; padding: 8px 14px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-low); font-size: 12px; font-weight: 600; color: var(--ink-2); min-height: 36px; white-space: nowrap; transition: background .25s, color .25s, transform .25s var(--ease); }
.chip:hover { background: var(--accent-soft); }
.chip b { font-weight: 700; padding: 1px 6px; margin-left: 6px; border-radius: 999px; background: var(--tile); font-size: 10px; font-variant-numeric: tabular-nums; }
.chip[aria-current] b, .chip[aria-pressed="true"] b { background: rgba(255, 255, 255, .22); color: inherit; }
.filters { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.filter-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.filter-row .tiny-label { flex: none; min-width: 64px; }
.filter-row .chips { min-width: 0; flex: 1; padding-bottom: 6px; }
.chip:active { transform: scale(.95); }
.chip[aria-current], .chip[aria-pressed="true"] { background: var(--accent-btn); color: var(--on-btn); box-shadow: none; }
.seg-pill { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--edge-low); }
.seg-pill a { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); min-height: 32px; transition: background .3s, color .3s; }
.seg-pill a:hover { background: var(--accent-soft); }
.seg-pill a[aria-current] { background: var(--accent-btn); color: var(--on-btn); }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; }

/* ── Analysis: separate parts, each with its own heading and cards ── */
.part { margin-top: 12px; scroll-margin-top: 90px; }
.part-head { background: var(--glass); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r-lg); padding: var(--pad); }
.part-head h2 { font: 800 21.5px/1.15 var(--font-display); letter-spacing: -.03em; }
.part-head p { margin: 6px 0 0; max-width: 70ch; font-size: 13px; }
.part-head a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.onpage { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.onpage .chip { min-height: 34px; padding: 6px 13px; }
@media (max-width: 760px) { .part-head h2 { font-size: 18.5px; } }

/* ── Numbers ── */
.hero-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-grid > * { min-width: 0; }
.hero-grid .big { grid-column: span 2; }
@media (min-width: 640px) { .hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero-grid .big { grid-column: span 3; } }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; } .hero-grid .big { grid-column: 1; grid-row: 1 / span 2; } }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px; color: inherit; transition: transform .4s var(--ease), background .3s; }
.kpi:hover { transform: translateY(-3px); background: var(--accent-soft); }
.num-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; color: inherit; border-radius: var(--r-lg); }
.kpi-name { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.num-card .kpi-name { color: var(--ink); font-size: 13px; }
.kpi-val { font-size: 25px; font-weight: 650; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-val small { display: inline-block; white-space: nowrap; font-size: 10.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 5px; }
.kpi-date { font-size: 10.5px; color: var(--ink-3); }
.big .kpi-val { font-size: 37.5px; }
.deltas { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.delta { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta svg { width: 8px; height: 8px; fill: currentColor; }
.delta i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.spark { position: relative; margin-top: 8px; height: 40px; }
.big .spark { margin-top: auto; padding-top: 6px; height: 116px; }
.num-card .spark { height: 44px; }
.spark svg { display: block; width: 100%; height: 100%; animation: reveal 1.2s cubic-bezier(.4, 0, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms + .3s); }
.spark .area { fill: var(--area); stroke: none; }
.spark .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--chart); box-shadow: 0 0 0 3px var(--glass-solid); transform: translate(-50%, -50%); animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms + 1.4s); }
.num-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.detail-val { font-size: 46.5px; font-weight: 650; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-val small { font-size: 14.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 8px; }
.chartbox { position: relative; margin-top: 14px; }
.chartbox svg { display: block; width: 100%; height: auto; }
.chart-area { fill: var(--area); }
.chart-line { fill: none; stroke: var(--chart); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--chart); stroke: var(--glass-solid); stroke-width: 3; }
.chart-shape { animation: reveal 1.2s cubic-bezier(.4, 0, .2, 1) backwards .3s; }
.chart-end { animation: popc .5s cubic-bezier(.3, 1.6, .5, 1) backwards 1.5s; transform-box: fill-box; transform-origin: center; }
.scrub-line { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chartbox svg[tabindex] { touch-action: pan-y; cursor: crosshair; }
.chartbox svg:focus-visible { outline: 2px solid var(--chart); outline-offset: 2px; border-radius: 6px; }
.scrub-read { position: absolute; top: 0; transform: translateX(-50%); padding: 3px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.scrub-hint { font-size: 10.5px; margin: 6px 0 0; }
.axis { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--ink-3); margin-top: 4px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hair); }
.tbl thead th { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.tbl tbody th { font-weight: 500; color: var(--ink-2); }
.tbl .r { text-align: right; padding-right: 0; }
.tag { font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--edge-low); color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── People: initials in a circle, before the name ── */
.av { position: relative; overflow: hidden; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: linear-gradient(150deg, var(--a), var(--b)); color: #fff; font-weight: 700; letter-spacing: .01em; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 1px 3px rgba(15, 40, 90, .22); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.av-xs { width: 22px; height: 22px; font-size: 9px; }
.av-sm { width: 30px; height: 30px; font-size: 10px; }
.av-lg { width: 56px; height: 56px; font-size: 18px; }
.who-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 18px; }
a.pchip:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.hue-0 { --a: #1f7f73; --b: #0f5f56; } .hue-1 { --a: #2b7a8f; --b: #1b5a6e; } .hue-2 { --a: #3c68a0; --b: #27497a; } .hue-3 { --a: #3a7d57; --b: #245a3c; } .hue-4 { --a: #287d82; --b: #165c60; } .hue-5 { --a: #5b6f86; --b: #3f5169; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--edge-low); font-size: 11.5px; font-weight: 600; max-width: 100%; }
.pchip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip.pl { padding: 2px 10px 2px 7px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.pchip.pl .ic { color: var(--accent-ink); flex: none; }

/* ── Stories ── */
.stories { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); color: inherit; }
.story h3 { font: 800 15.5px/1.35 var(--font-display); letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.story-summary { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story .meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); flex-wrap: wrap; margin-top: auto; }
.story .meta b { color: var(--ink-2); font-weight: 600; }
.story .meta .src-link { margin-left: auto; }
/* A card is one link to its story page: the title link covers the card, and the small Source link sits above it. */
.story, .story-row, .lead { position: relative; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.src-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 3px; font: 500 10.5px/1.3 var(--font-ui); letter-spacing: 0; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.src-link:hover { color: var(--accent-ink); }
.lens-list a.src-link, .lens-nums a.src-link { display: inline-flex; font: 500 10.5px/1.3 var(--font-ui); letter-spacing: 0; text-wrap: nowrap; color: var(--ink-3); }
.lens-list li .src-link { margin-left: 8px; }
.row-meta .src-link { font-size: 11px; }
.figpill { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 11px; color: var(--ink); }
.figpill b { font-weight: 700; font-variant-numeric: tabular-nums; }
.fig-evidence { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.fig-evidence summary { cursor: pointer; padding: 6px 0; font-size: 12.5px; }
.fig-evidence summary b { font-variant-numeric: tabular-nums; }
.fig-evidence summary i { font-style: normal; color: var(--ink-3); font-size: 11px; }
.fig-evidence summary:hover { color: var(--accent-ink); }
.fig-evidence .event-quote { display: block; margin: 4px 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; }
.pager .chip { background: var(--glass); }
.pager span { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 48px 20px; }
.empty b { display: block; font: 800 16px/1.3 var(--font-display); letter-spacing: -.02em; }
.empty span { display: block; margin-top: 6px; color: var(--ink-2); }

/* ── Promises ── */
.pstat { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) { .pstat { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pst { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); background: var(--tile); box-shadow: inset 0 0 0 1px var(--edge-low); min-height: 84px; transition: transform .4s var(--ease), background .3s, color .3s; }
.pst:hover { transform: translateY(-2px); background: var(--accent-soft); }
.pst[aria-current] { background: var(--accent-btn); color: var(--on-btn); }
.pst[aria-current] .st-g { color: var(--on-btn); }
.pst b { font-size: 21.5px; font-weight: 650; letter-spacing: -.02em; line-height: 1; }
.pst .w { font-size: 11px; font-weight: 600; }
.stackbar { display: flex; gap: 3px; height: 10px; margin: 14px 0 2px; }
.stackbar i { border-radius: 999px; background: var(--chart); min-width: 6px; transform-origin: left; animation: growx .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms + var(--k, 0) * 70ms + .2s); }
.stackbar .sb-promised { opacity: .18; } .stackbar .sb-in_progress { opacity: .32; } .stackbar .sb-partly_kept { opacity: .5; }
.stackbar .sb-kept { opacity: 1; }
.stackbar .sb-broken { background: repeating-linear-gradient(135deg, var(--chart) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--chart); }
.stackbar .sb-unclear { opacity: .14; box-shadow: inset 0 0 0 1px var(--chart); }
/* How the writing reads (Today, inside the "What the news is about" bars): one teal, three weights; the words carry the meaning, the shade only helps. */
.hb-fill.read-bar { display: flex; gap: 2px; background: transparent; min-width: 4px; }
.read-bar i, .rk i { background: var(--chart); border-radius: 999px; }
.read-bar .rd-positive, .rk .rd-positive { opacity: 1; }
.read-bar .rd-neutral, .rk .rd-neutral { opacity: .32; }
.read-bar .rd-negative, .rk .rd-negative { background: repeating-linear-gradient(135deg, var(--chart) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--chart); }
.read-bar .rd-unread, .rk .rd-unread { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); opacity: .6; }
.read-bar i { min-width: 3px; }
/* The bar reads as many thin stripes, one per slice of the count, over the three tone weights: a mask cuts every child the same
   way, so the tones and their widths are exactly as before and there is no extra markup. */
.read-bar i { transform-origin: left; animation: bar-in .7s var(--ease) backwards; }
.hbars > li { animation: row-in .45s var(--ease) backwards; }
.hbars > li:nth-child(1) { animation-delay: .04s; } .hbars > li:nth-child(2) { animation-delay: .08s; }
.hbars > li:nth-child(3) { animation-delay: .12s; } .hbars > li:nth-child(4) { animation-delay: .16s; }
.hbars > li:nth-child(5) { animation-delay: .20s; } .hbars > li:nth-child(6) { animation-delay: .24s; }
.hbars > li:nth-child(7) { animation-delay: .28s; } .hbars > li:nth-child(8) { animation-delay: .32s; }
.hbars > li:nth-child(n+9) { animation-delay: .36s; }
@keyframes row-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.findings > li { animation: row-in .45s var(--ease) backwards; }
.findings > li:nth-child(2) { animation-delay: .08s; } .findings > li:nth-child(3) { animation-delay: .16s; }
.findings > li:nth-child(4) { animation-delay: .24s; } .findings > li:nth-child(n+5) { animation-delay: .32s; }
.read-bar { -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 5px); mask-image: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 5px); }
.hbars.about + .muted { margin-top: 14px; }
.read-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font-size: 10.5px; color: var(--ink-3); }
.rk { display: inline-flex; align-items: center; gap: 5px; }
.rk i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.next { display: block; padding: 12px 14px; margin-top: 12px; color: inherit; }
.next b { display: block; font: 800 15.5px/1.3 var(--font-display); letter-spacing: -.02em; margin: 4px 0 8px; }
.plist { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.prom { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); color: inherit; }
.prom-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.due { font-size: 11px; color: var(--ink-3); }
.due b { color: var(--ink); font-weight: 700; }
.prom h3 { font: 800 15.5px/1.35 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.prom-meta { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 11.5px; font-weight: 650; }
.st-g { color: var(--accent-ink); }
.status .st-g { color: var(--ink); }
.impact { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.why { font-size: 11.5px; color: var(--ink-2); }
.path { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-3); }
.path .st-g { color: var(--ink); }
.path .arrow { font-size: 10.5px; }
.prom .latest { padding-top: 10px; border-top: 1px solid var(--hair); }
.prom .latest b { color: var(--ink); font-weight: 650; }
.pr-title { margin: 14px 0 12px; font: 800 23px/1.25 var(--font-display); letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.pr-verdict { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); display: grid; gap: 3px; }
.pr-verdict .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.pr-verdict b { font: 700 14px/1.4 var(--font-display); letter-spacing: -.01em; }
.pr-verdict span:last-child { font-size: 11.5px; color: var(--ink-2); }
.pr-list { display: grid; gap: 14px; margin: 6px 0 0; }
.pr-list > div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.pr-list > div:last-child { border: 0; padding-bottom: 0; }
.pr-list dt { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.pr-list dd { margin: 0; font-size: 13px; }
.pr-list dd small { display: block; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.pr-list dd a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.pr-tl { display: flex; flex-direction: column; }
.pr-node { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 22px; }
.pr-node:last-child { padding-bottom: 0; }
.pr-node::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 2px; background: var(--hair); }
.pr-node:last-child::before { display: none; }
.pr-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-solid); box-shadow: inset 0 0 0 1.5px var(--line); }
.pr-node.now .pr-mark { box-shadow: inset 0 0 0 2px var(--accent); }
.pr-node-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pr-node-top time { font-size: 11.5px; font-weight: 700; }
.pr-change { font-size: 11px; color: var(--ink-3); }
.pr-now { font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--accent-btn); color: var(--on-btn); }
.pr-node h3 { font: 800 15px/1.35 var(--font-display); letter-spacing: -.02em; margin: 6px 0 0; }
.pr-lab { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 2px; }
.pr-nums { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.quote { margin: 6px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--accent); font-size: 13px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.src { font-size: 11px; color: var(--ink-3); margin-top: 6px; }

/* ── Chat: bubbles and the form, in the panel and on the /chat/ page ── */
.chat-log { display: flex; flex-direction: column; gap: 14px; }
.chat-row { display: flex; transform-origin: bottom left; animation: bubble .5s cubic-bezier(.3, 1.4, .5, 1) backwards; }
.chat-row--user { justify-content: flex-end; transform-origin: bottom right; }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.88); } }
.chat-bubble { max-width: 92%; padding: 11px 15px; border-radius: 20px; font-size: 14px; line-height: 1.45; background: var(--glass); box-shadow: var(--shadow), 0 0 0 1px var(--line); border-bottom-left-radius: 6px; overflow-wrap: anywhere; }
.chat-bubble--user { background: var(--accent-btn); color: var(--on-btn); box-shadow: none; border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.chat-bubble--ai { min-width: 0; }
.chat-bubble--error { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.chat-answer { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-cite { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent-soft); font-size: 10px; font-weight: 700; color: var(--accent-ink); vertical-align: 1px; margin-left: 2px; text-decoration: none; }
.chat-sources { display: grid; gap: 8px; margin-top: 12px; }
.chat-source { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; color: inherit; }
.chat-source-title[href]:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.chat-source .src-link { display: flex; width: fit-content; margin-top: 3px; }
.chat-source .chat-cite { margin: 1px 0 0; }
.chat-source-title { display: block; font: 700 13px/1.3 var(--font-display); letter-spacing: -.02em; }
.chat-source-meta { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.chat-number { display: grid; gap: 3px; padding: 10px 12px; color: inherit; text-decoration: none; }
a.chat-number:hover { background: var(--accent-soft); }
.chat-number-value { font: 700 19.5px/1.2 var(--font-display); letter-spacing: -.02em; }
.chat-number-value small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.chat-number-line { display: block; width: 100%; height: 44px; margin-top: 4px; }
.chat-number-line .area { fill: var(--area); stroke: none; }
.chat-number-line .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chat-card { display: grid; gap: 6px; padding: 10px 12px; }
.chat-card-rows { display: grid; gap: 8px; }
.chat-card-rows--tight { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.chat-card-row { display: grid; gap: 1px; align-content: start; }
.chat-card-row a.chat-number-value { color: inherit; text-decoration: none; }
.chat-card-line { margin: 2px 0 0; }
.chat-card-items { display: grid; gap: 2px; }
.chat-card-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; padding: 6px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.chat-card-item:first-child { border-top: 0; }
a.chat-card-item:hover { background: var(--accent-soft); }
.chat-card-item:not(:has(.chat-card-shape)) { grid-template-columns: minmax(0, 1fr); }
.chat-card-item-text { display: block; font-size: 12.5px; line-height: 1.35; }
.chat-card-shape { margin-top: 2px; color: var(--ink-2); }
.chat-card-link { justify-self: start; font-size: 11.5px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.chat-card-link:hover { text-decoration: underline; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chat-chips .chip { white-space: normal; text-align: left; }
.chat-scope { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 11.5px; color: var(--ink); }
.chat-scope[hidden] { display: none; }
.chat-scope span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-scope-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; }
.chat-scope-x:hover { background: var(--tile); }
.ask-here { margin-top: 4px; }
.chat-rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.chat-rate { padding: 4px 10px; min-height: 32px; font-size: 12.5px; background: var(--tile); }
.chat-rate:disabled { opacity: .5; transform: none; cursor: default; }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chat-examples .chip { white-space: normal; text-align: left; animation: enter .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 26px; }
.chat-form:focus-within { outline: 3px solid var(--ring); outline-offset: 2px; }
.chat-input { flex: 1; min-width: 0; resize: none; border: 0; background: none; font: inherit; font-size: 14.5px; line-height: 1.4; color: var(--ink); outline: 0; padding: 11px 0; max-height: 160px; }
.chat-input::placeholder { color: var(--ink-3); }
.chat-send { flex: none; width: 40px; height: 40px; margin-bottom: 2px; border-radius: 50%; background: var(--accent-btn); color: var(--on-btn); display: grid; place-items: center; transition: transform .3s var(--ease); }
.chat-send:hover { transform: scale(1.08); } .chat-send:active { transform: scale(.9); } .chat-send:disabled { opacity: .5; transform: none; cursor: default; }
.chat-note { margin-top: 8px; font-size: 10.5px; color: var(--ink-3); text-align: center; }
.chat-page { max-width: 760px; margin: 0 auto; }
.chat-page .chat-dock { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 4; margin-top: 18px; }


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

/* Promises: report a mistake, tag filters, reasons, due soon */
.report-form { display: grid; gap: 12px; margin-top: 16px; max-width: 560px; }
.report-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.report-form legend, .report-form > label { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.report-form .choice { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.report-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-low); font: 12.5px var(--font-ui); color: var(--ink); resize: vertical; }
.report-form textarea:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.report-form .errorlist { margin: 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--ink); font-weight: 650; }
.report-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-solid { justify-self: start; padding: 10px 18px; border-radius: 999px; background: var(--accent-btn); color: var(--on-btn); font-weight: 650; font-size: 12.5px; }
.btn-solid:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.pr-report { font-size: 11.5px; margin-top: 14px; }
.pr-report a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.pr-reason { font-size: 11.5px; color: var(--ink-2); margin: 6px 0 0; }
.pr-reason b { color: var(--ink); font-weight: 650; }
.pr-auto { font-size: 10px; font-weight: 650; padding: 2px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; }
.chip-row .eyebrow { margin-right: 2px; }
.chip-row.card { margin: 0; padding: 14px var(--pad); }
.chip-row a { padding: 4px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.chip-row a[aria-current="true"] { background: var(--accent-btn); color: var(--on-btn); box-shadow: none; }
.due-soon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.due-soon .k { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.due-soon a { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.due-soon a span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.due-soon a span:last-child { color: var(--ink-2); flex: none; }

/* Statistics Maldives releases: a plain card per release, its headline number(s), and links to the release itself. */
.release-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.release { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-lg); }
.release-title { font: 700 14.5px/1.35 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.release-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.release-figs { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 2px 0 4px; }
.release-fig { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.release-fig .delta { margin-right: 6px; }
.release-fig .delta svg { width: 14px; height: 14px; }
.release-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; }
.release-links a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.due-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.due-list li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; font-size: 12.5px; }
.due-list time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.num-card .delta { margin-right: 4px; }

/* Coming up: an event, the sentence it came from, and who reported it. */
.event-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.event b { font: 700 13.5px/1.35 var(--font-display); letter-spacing: -.02em; }
.event-quote { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-2); quotes: "\201C" "\201D"; }
.event-src { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-3); }
.event-src a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Today overview: link rows with a count, and horizontal bars for the sector mix. */
.rowlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rowlinks a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); transition: background .2s; }
.rowlinks a:hover { background: var(--accent-soft); }
.rowlinks b { font-variant-numeric: tabular-nums; padding: 1px 8px; border-radius: 999px; background: var(--tile); font-size: 10.5px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hbars a { display: grid; grid-template-columns: minmax(96px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.hbars a:hover .hb-label { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.hb-label { min-width: 0; overflow-wrap: anywhere; }
.hb-track { display: block; height: 10px; border-radius: 999px; background: var(--tile); overflow: hidden; }
.hb-fill { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: var(--chart); }
.hbars b { font-variant-numeric: tabular-nums; font-size: 11px; min-width: 20px; text-align: right; }

/* Sector mix and rising rows: a number with the story behind it. */
.hbars.about { gap: 10px; }
.hb-lead { margin: 2px 0 0; font-size: 11px; line-height: 1.4; color: var(--ink-3); }
.hbars .hb-lead a, .hb-lead a { display: inline; font-size: inherit; font-weight: 400; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.hb-lead a:hover { color: var(--accent-ink); }
.hb-change, .hb-outlets { white-space: nowrap; }
.risers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rs-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rs-name { font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.rs-name:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.rs-num { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rs-num b { color: var(--ink-2); }

/* A grouped story card: the outlets that carried it as overlapping circles. */
.outlets { display: inline-flex; align-items: center; }
.outlets .av { width: 24px; height: 24px; }
.outlets .av + .av { margin-left: -5px; }
.outlets .av.more { background: var(--tile); color: var(--ink-2); box-shadow: 0 0 0 1.5px var(--glass-solid); }

/* Story page: coverage at a glance, outlets side by side, a time lane per outlet and the evidence behind the figures.
   One teal for charts, the current tab and actions. A gap is a hollow ring plus words; nothing here rates an outlet. */
.card > .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.sx-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; }
.sx-actions a.muted:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.sx-tiles { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sx-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px var(--pad); border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.sx-meter { grid-column: span 2; }
.sx-dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; }
.sx-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); opacity: .45; }
.sx-dots i.on { background: var(--chart); box-shadow: none; opacity: 1; }
.sx-gaps { display: grid; gap: var(--gap); }
.sx-gap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 16px var(--pad); border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--line); font-size: 12px; color: var(--ink-2); }
.sx-gap::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-2); align-self: center; }
.sx-gap b { color: var(--ink); }
.sx-gap .muted { font-size: 11px; }
.sx { margin: 0; }
.sx-asks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lead-change { font-size: 12px; color: var(--ink-2); }
.lead-change b { font-weight: 600; color: var(--ink); }
.chat-number-note { font-style: italic; }
.sx-tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 20px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--edge-low); max-width: 100%; }
.sx-tabs button { padding: 7px 18px; min-height: 34px; border-radius: 999px; font: 600 12px var(--font-ui); color: var(--ink-2); transition: background .25s, color .25s; }
.sx-tabs button:hover { background: var(--accent-soft); }
.sx-tabs button[aria-selected="true"] { background: var(--accent-btn); color: var(--on-btn); }
.sx-panel + .sx-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hair); }
.sx.tabbed .sx-panel + .sx-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.sx-note { margin-top: 14px; font-size: 11px; }
.sx-words, .sx-only { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sx-words { margin-bottom: 14px; }
.sx-word { padding: 3px 10px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--edge-low); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.sx-words .muted, .sx-only .muted { font-size: 11px; margin-right: 2px; }
.sx-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sx-grid.one { grid-template-columns: minmax(0, 1fr); }
.sx-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: var(--r-md); background: var(--tile); box-shadow: inset 0 0 0 1px var(--edge-low); min-width: 0; }
.sx-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sx-top b { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sx-kind { flex: none; font-size: 10px; font-weight: 600; color: var(--ink-3); padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge-low); }
.sx-card:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.sx-card h3 { font: 650 15.5px/1.3 var(--font-display); letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.sx-more summary { cursor: pointer; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.sx-more ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 11.5px; }
.sx-more li a { text-decoration: underline; text-underline-offset: 2px; }
.sx-card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; font-size: 11px; color: var(--ink-3); }
.sx-open { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 600; color: var(--accent-ink); }
.sx-open:hover span:first-child { text-decoration: underline; text-underline-offset: 2px; }
.sx-lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sx-lanes li { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: center; }
.sx-lane-name { font-size: 12px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.sx-track { position: relative; height: 14px; margin: 0 6px; }
.sx-track::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 2px; margin-top: -1px; background: var(--hair); }
.sx-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--chart); box-shadow: 0 0 0 3px var(--glass-solid); }
.sx-lane-times { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 10.5px; color: var(--ink-3); }
.sx-axis { margin: 12px 6px 0 166px; }
.sx-table th[scope="row"] { font-weight: 600; width: 40%; vertical-align: top; }
.sx-differs { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
.sx-read { display: block; }
.sx-read i { font-style: normal; color: var(--ink-3); }
.sx-moments { list-style: none; margin: 8px 0 0; padding: 0 0 0 26px; position: relative; }
.sx-moments::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--line)); }
.sx-moments > li { position: relative; }
.sx-moments > li::before { content: ""; position: absolute; left: -24px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-btn); box-shadow: 0 0 0 3px var(--glass-solid); animation: dot-in .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.sx-moments > li.sx-m-now-li::before { background: var(--accent-ink); box-shadow: 0 0 0 3px var(--glass-solid), 0 0 0 5px var(--accent-soft); }
@keyframes dot-in { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sx-moments li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sx-moments li:first-child { border-top: 0; }
.sx-m-day { font: 650 12.5px var(--font-display); }
.sx-m-day i { font-style: normal; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.sx-moments summary { cursor: pointer; }
.sx-moments .sx-m-now { color: var(--accent-ink); font-weight: 600; }
.sx-moments summary i { font-style: normal; font-size: 11.5px; color: var(--ink-2); margin-left: 6px; }
@media (max-width: 560px) { .sx-moments li { grid-template-columns: minmax(0, 1fr); } }
.sx-differ { margin: 0; }
.sx-diffs { margin: 8px 0 0; display: grid; gap: 0; }
.sx-diffs > div { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.sx-diffs > div:first-child { border-top: 0; }
.sx-diffs dt { font: 650 12.5px var(--font-display); margin-bottom: 2px; }
.sx-diffs dd { margin: 0; }
.sx-developed { margin: 0; }
.sx-days, .sx-d-items { list-style: none; margin: 0; padding: 0; }
.sx-days { margin-top: 8px; }
.sx-days > li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.sx-days > li:first-child { border-top: 0; }
.sx-d-day { font: 650 12.5px var(--font-display); }
.sx-d-day i { display: block; font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--ink-2); }
.sx-d-items li { padding: 2px 0; }
.sx-d-items a { font-weight: 600; }
.sx-d-items a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .sx-days > li { grid-template-columns: minmax(0, 1fr); } }
.sx-now { margin: 10px 0 0; font-size: 13.5px; }
.sx-now-k { font: 650 11.5px var(--font-display); color: var(--accent-ink); margin-right: 4px; }
.sx-glance { list-style: none; margin: 12px 0 2px; padding: 0; display: grid; gap: 6px; }
.sx-glance li { font-size: 13px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--line); }
.sx-glance li:first-child { border-top: 0; padding-top: 0; }
.sx-glance b { font: 650 14.5px var(--font-display); }
.sx-glance i { font-style: normal; font-size: 11.5px; color: var(--ink-2); margin-left: auto; }
.pchip small { display: block; font-size: 10.5px; line-height: 1.2; }
.sx-gauge { display: block; width: 100%; max-width: 132px; height: auto; margin: 2px 0 4px; }
.sx-arc { fill: none; stroke: var(--edge-low); stroke-width: 9; stroke-linecap: round; }
.sx-arc.on { stroke: var(--accent-btn); animation: arc-in .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes arc-in { from { opacity: 0; } to { opacity: 1; } }
.stk { display: inline-flex; align-items: center; margin-top: 2px; }
.stk-i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 9.5px var(--font-ui); color: var(--on-fill); background: hsl(168 calc(30% + var(--h) * 3%) calc(46% - var(--h) * 3%));  /* shades of the brand green, stable per name */ box-shadow: 0 0 0 2px var(--glass-solid); margin-left: -6px; }
.stk-i:first-child { margin-left: 0; }
.stk-more { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; font: 700 9.5px var(--font-ui); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--edge-low); margin-left: -4px; background: var(--glass-solid); }
.sx-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.sx-numbers .muted { font-size: 11px; }
.sx-numbers .sx-word { text-decoration: none; }
.sx-numbers .sx-word:hover { color: var(--accent-ink); }
.sx-numbers .sx-word b { font-variant-numeric: tabular-nums; }
.sx-next-wrap { margin: 10px 0 4px; }
.sx-next { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.sx-next li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; font-size: 13px; }
.sx-quotes { list-style: none; margin: 6px 0 0; padding: 0; }
.sx-quotes li { padding: 12px 0; border-top: 1px solid var(--line); }
.sx-quotes li:first-child { border-top: 0; padding-top: 0; }
.sx-quotes blockquote { margin: 0; }
.sx-quotes q { font: 500 14.5px/1.5 var(--font-display); }
.sx-quotes .meta { margin: 6px 0 0; flex-wrap: wrap; }
.sx-quotes .meta a { display: inline-flex; align-items: center; gap: 3px; }
.sx-type { flex: none; font-size: 10px; font-weight: 600; color: var(--ink-2); padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); }
.sx-prom-list { list-style: none; margin: 6px 0 0; padding: 0; }
.sx-prom-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.sx-prom-list li:first-child { border-top: 0; padding-top: 0; }
.sx-prom-line { margin: 0 0 6px; font-size: 13.5px; overflow-wrap: anywhere; }
.sx-prom-list .meta { margin: 0; flex-wrap: wrap; gap: 4px 8px; }
.sx-prom-list .meta a { display: inline-flex; align-items: center; gap: 3px; }
.sx-mplace { font-size: 11px; font-weight: 600; color: var(--accent-ink); text-decoration: none; margin-left: 6px; padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge-low); }
.sx-mplace:hover { background: var(--accent-soft); }
.sx-earlier { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; }
.sx-earlier > .muted { width: 100%; font-size: 11px; }
.sx-earlier b { font-variant-numeric: tabular-nums; }
.sx-morefigs { margin-top: 8px; }
.sx-morefigs summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.sx-morefigs summary:hover { color: var(--accent-ink); }
@media (max-width: 560px) { .sx-next li { grid-template-columns: minmax(0, 1fr); } }
.sx-claims { margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.sx-claim-counts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0 6px; font-size: 12px; color: var(--ink-2); }
.sx-claim-counts b { font: 650 15.5px var(--font-display); color: var(--ink); margin-right: 4px; }
.sx-claim-group { margin-top: 16px; }
.sx-claim-h { font: 650 13.5px var(--font-display); letter-spacing: -.01em; }
.sx-claim-note { font-size: 11px; margin: 2px 0 6px; }
.sx-claim-list { list-style: none; margin: 0; padding: 0; }
.sx-claim-list li { border-top: 1px solid var(--line); }
.sx-claim-list li:first-child { border-top: 0; }
.sx-claim-list summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; cursor: pointer; font-size: 12.5px; }
.sx-claim-title { font-weight: 600; overflow-wrap: anywhere; }
.sx-claim-reads { font-size: 12px; }
.sx-claim-list details[open] summary { padding-bottom: 4px; }
.sx-claim-list details > q, .sx-claim-list details > p { margin-left: 2px; }
.sx-claim-list details > p { margin-top: 2px; margin-bottom: 8px; font-size: 11px; }
@media (max-width: 560px) { .sx-claim-list summary { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .sx-meter { grid-column: 1 / -1; }
    .sx-lanes li { grid-template-columns: minmax(0, 1fr); }
    .sx-lane-times { grid-column: 1; }
    .sx-axis { margin-left: 6px; }
    .sx-tabs button { padding: 7px 14px; }
}

/* Analysis page: findings and the sector by place heat table. */
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.findings li { padding-left: 14px; border-left: 2px solid var(--line); font-size: 13px; line-height: 1.5; }
.findings b { display: block; font: 700 12.5px/1.3 var(--font-display); letter-spacing: -.02em; }
.findings a { color: var(--accent-ink); font-size: 11px; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.hb-row { display: grid; grid-template-columns: minmax(96px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.heat th, .heat td { text-align: center; }
.heat th:first-child { text-align: left; }
.hm { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 44px; }
.hm-0 { color: var(--ink-3); }
.hm-1 { background: color-mix(in srgb, var(--chart) 12%, transparent); }
.hm-2 { background: color-mix(in srgb, var(--chart) 26%, transparent); }
.hm-3 { background: color-mix(in srgb, var(--chart) 42%, transparent); }
.hm-4 { background: color-mix(in srgb, var(--chart) 62%, transparent); }
.hm-5 { background: color-mix(in srgb, var(--chart) 82%, transparent); color: var(--on-fill); }

/* Developing now: a slim line above the hero; no colour of its own, no motion. */
.scope { scroll-margin-top: 90px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); padding: 16px var(--pad); }
.scope b { color: var(--ink); }
.scope a { margin-left: 4px; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.developing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.developing ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; flex: 1; }
.developing a { font-weight: 650; font-size: 13.5px; letter-spacing: -.01em; }
.developing a:hover { text-decoration: underline; text-underline-offset: 2px; }
.developing span:not(.tiny-label) { font-size: 11px; color: var(--ink-2); }

/* A button that reads as one of the "more" links (My place). */
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.linklike:hover { text-decoration: underline; }

/* Right now strip (Today) and the dollar page */
.now-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; }
.now-list li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.now-list a { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.now-list b { font-size: 23px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.now-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; }
.now-pair .detail-val { margin-top: 6px; }

/* Today's card: always light, so the saved image does not depend on the reader's theme */
.card-stage { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 800px) { .card-stage { grid-template-columns: minmax(0, 1fr); } }
.daycard { aspect-ratio: 4 / 5; background: #f6f7fd; color: #2b2d5e; border-radius: 18px; padding: 8% 7%; border-top: 6px solid #5b4fd8;
    box-shadow: 0 0 0 1px rgba(24, 39, 43, .1); display: flex; flex-direction: column; gap: 10px; overflow: hidden; container-type: inline-size; }
.dc-top { display: flex; align-items: center; gap: 10px; }
.dc-logo { width: 9cqw; height: 9cqw; border-radius: 50%; background: #5b4fd8; color: #fff; display: grid; place-items: center; font: 800 5cqw/1 var(--font-display); }
.dc-brand { font: 800 5cqw/1 var(--font-display); }
.dc-date { font-size: 3.6cqw; color: #5b6d71; font-weight: 600; }
.dc-head { font: 800 6.4cqw/1.15 var(--font-display); letter-spacing: -.03em; margin-top: 2cqw; }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3cqw; counter-reset: dc; }
.dc-list li { counter-increment: dc; display: grid; grid-template-columns: 6cqw 1fr; column-gap: 2cqw; }
.dc-list li::before { content: counter(dc); color: #5b4fd8; font: 800 5cqw/1.1 var(--font-display); grid-row: span 2; }
.dc-title { font: 700 4.5cqw/1.25 var(--font-display); }
.dc-meta { font-size: 3.2cqw; color: #5b6d71; }
.dc-extra { display: grid; gap: .6cqw; border-left: 3px solid #5b4fd8; padding-left: 3cqw; }
.dc-extra .dc-title { font-size: 3.8cqw; }
.dc-empty { color: #5b6d71; font-size: 4cqw; }
.dc-number { margin-top: auto; background: #e9f5f0; border-radius: 12px; padding: 3.5cqw 4cqw; display: grid; gap: 1cqw; }
.dc-nlabel { font-size: 2.8cqw; letter-spacing: .08em; text-transform: uppercase; color: #5b4fd8; font-weight: 700; }
.dc-number b { font: 800 9cqw/1.05 var(--font-display); overflow-wrap: anywhere; }
.dc-nsub { font-size: 3.2cqw; color: #5b6d71; }
.dc-foot { font-size: 3cqw; color: #5b6d71; }
.card-tools { display: grid; gap: 10px; }
.card-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.card-caption { width: 100%; font: inherit; font-size: 12.5px; padding: 10px; border-radius: 10px; border: 1px solid var(--edge-low, rgba(0,0,0,.15)); background: transparent; color: inherit; resize: vertical; }


/* ── Round 2: news first (2026-10-30) ── */
html { overflow-x: clip; }
.app-main { padding-bottom: 24px; }
.front-head { padding-top: var(--gap); display: grid; gap: var(--gap); }
.front-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 22px; }
.now-inline { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 12.5px; color: var(--ink-3); list-style: none; padding: 0; }
.now-inline b { color: var(--ink); font-variant-numeric: tabular-nums; }
.now-inline a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.now-inline a:hover { text-decoration-color: var(--accent-ink); }
/* Right now card and Today's card, side by side (Today) */
.now-link { font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.now-link:hover { text-decoration-color: var(--accent-ink); }
.now-dollar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-top: 12px; border-top: 1px solid var(--hair); }
.now-rate { display: inline-flex; align-items: baseline; gap: 6px; color: inherit; text-decoration: none; }
.now-rate b { font: 650 18px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
a.now-rate:hover b { color: var(--accent-ink); }
.today-card { display: grid; gap: 14px; align-content: start; }
.today-card .sec-head { margin: 0; }
.tc-list { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.tc-list a { color: var(--ink); }
.tc-list a:hover, .tc-extra a:hover { color: var(--accent-ink); }
.tc-meta { font-size: 11px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.tc-extra { margin: 0; display: grid; gap: 2px; padding-left: 10px; border-left: 2px solid var(--accent); font-size: 12.5px; line-height: 1.35; }
.tc-extra a { color: var(--ink); font-weight: 600; }
.tc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* Right now card (Today) */
.now-card { display: grid; gap: 14px; align-content: start; }
.now-cells { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.now-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
.now-cell + .now-cell { padding-top: 14px; border-top: 1px solid var(--hair); }
a.now-cell:hover .now-main b { color: var(--accent-ink); }
.now-main { display: flex; align-items: center; gap: 8px; }
.now-main b { font: 650 23px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.now-dash { color: var(--ink-3); font-size: 18px; }
.now-wicon { color: var(--ink-2); }
.now-sub { font-size: 11.5px; color: var(--ink-3); }
.now-foot { margin: 0; font-size: 11px; color: var(--ink-3); }
.now-foot a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
@media (max-width: 640px) {
    .now-main b { font-size: 19.5px; }
}
.searchbar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-low); }
.searchbar:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 14.5px var(--font-ui); color: var(--ink); padding: 10px 0; }
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar.big { max-width: 720px; margin: 14px 0 10px; }
.searchbar.big input { font-size: 16px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); align-items: baseline; }
.jump a:hover { color: var(--accent-ink); }
.jump .aside-feature { margin-left: auto; color: var(--accent-ink); }
.jump .aside-feature small { font-weight: 500; color: var(--ink-3); margin-left: 6px; }
@media (max-width: 760px) { .jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; } .jump .aside-feature { margin-left: 0; } .jump .aside-feature small { display: none; } }

.lead { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 30px; border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s; }
.lead:hover { box-shadow: 0 0 0 1px var(--accent); }
.lead-title { font: 700 clamp(23px, 2.68vw, 30px)/1.2 var(--font-display); letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.lead-summary { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead .row-meta { margin-top: 10px; }

.flow { display: flex; flex-direction: column; gap: var(--gap); }
@media (max-width: 760px) {
    .flow > .top { order: 1; }
    .flow > .dash { order: 2; }
    .flow > .stories-section { order: 3; }
    .card { padding: var(--pad); }
    .kpi { padding: 14px; }
    .kpi-val { font-size: 21.5px; }
    .kpi-row .deltas > :nth-child(n+2) { display: none; }
    .sec-head .muted { white-space: normal; }  /* a long note wraps under the title instead of being clipped on a phone */
    .pchip, .pchip.pl { min-height: 28px; }  /* a link a finger can hit: these were 19 px tall */
    .sx-tabs [role="tab"] { min-height: 40px; }
    .tbl-wrap { -webkit-overflow-scrolling: touch; }
    .tbl-wrap thead th { position: sticky; top: 0; z-index: 2; background: var(--glass-solid); }
    .tbl-wrap tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--bg); }
}
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-row > * { min-width: 0; }
@media (max-width: 900px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stories-section { margin-top: 0; }
.pclock { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pclock li { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)) 34px; align-items: center; gap: 2px; }
.pclock-day { font: 600 10px var(--font-ui); color: var(--ink-3); }
.pclock b { font: 600 10px var(--font-ui); color: var(--ink-2); text-align: right; }
.pclock i { display: block; height: 12px; border-radius: 2px; background: var(--accent-soft); }
.pclock .pv-1 { background: color-mix(in srgb, var(--accent) 22%, var(--accent-soft)); }
.pclock .pv-2 { background: color-mix(in srgb, var(--accent) 40%, var(--accent-soft)); }
.pclock .pv-3 { background: color-mix(in srgb, var(--accent) 60%, var(--accent-soft)); }
.pclock .pv-4 { background: color-mix(in srgb, var(--accent) 80%, var(--accent-soft)); }
.pclock .pv-5 { background: var(--accent-btn); }
.pclock-axis { display: grid; grid-template-columns: 34px repeat(5, minmax(0, 1fr)); margin: 6px 0 0; font-size: 10px; }
.pclock-axis span:first-child { visibility: hidden; }
@media (max-width: 760px) { .pclock li { grid-template-columns: 26px repeat(24, minmax(0, 1fr)) 26px; gap: 1px; } .pclock i { height: 9px; } }
.tbar { display: flex; gap: 1px; height: 8px; min-width: 90px; border-radius: 999px; overflow: hidden; }
.tbar i { display: block; min-width: 2px; background: var(--chart); border-radius: 2px; transform-origin: left; animation: bar-in .7s var(--ease) backwards; }
.tbar .tb-neutral { opacity: .32; }
.tbar .tb-negative { background: repeating-linear-gradient(135deg, var(--chart) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--chart); }
.tbar .tb-mixed { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); opacity: .6; }
.sx-dbar { display: block; height: 4px; width: var(--p); min-width: 2px; margin-top: 5px; border-radius: 2px; background: var(--chart); transform-origin: left; animation: bar-in .7s var(--ease) backwards; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.findings li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; position: relative; padding: 12px 14px 12px 16px; border-radius: var(--r-md); background: var(--tile); }
.findings li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent-btn)); }
.fin-i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.findings b { display: block; font: 650 13px var(--font-display); margin-bottom: 2px; }
.findings span.fin-t { color: var(--ink-2); font-size: 12.5px; }
.findings a { font-size: 11.5px; }
.cal-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.cal-rail li { min-width: 0; }
.cal-rail > li > a, .cal-rail > li > span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--edge-low); font: 600 10px/1.2 var(--font-ui); color: var(--ink-3); min-height: 54px; justify-content: center; text-decoration: none; }
.cal-rail b { font: 700 15px/1.15 var(--font-display); color: var(--ink); }
.cal-rail i { font-style: normal; font-size: 10px; color: var(--accent-ink); font-weight: 700; }
.cal-rail a:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-rail .quiet { opacity: .55; }
.cal-rail .quiet b { color: var(--ink-3); }
@media (max-width: 760px) {
    .cal-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44px; overflow-x: auto; scroll-snap-type: x proximity; }
    .cal-rail li { scroll-snap-align: start; }
}
.story-row { display: flex; flex-direction: column; padding: 20px; border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--line); color: inherit; transition: box-shadow .25s; }
.story-row:hover { box-shadow: 0 0 0 1px var(--accent); }
.row-body { display: grid; gap: 6px; min-width: 0; }
.row-kicker { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.row-title { font: 650 16px/1.32 var(--font-display); letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
.story-row:hover .row-title { color: var(--accent-ink); }
.row-summary { font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 70ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 11px; color: var(--ink-3); margin-top: auto; padding-top: 6px; }
.row-meta b { color: var(--ink-2); font-weight: 600; }
.row-fig { color: var(--ink-2); }
.row-fig b { color: var(--accent-ink); font-weight: 700; }
.row-place { display: inline-flex; align-items: center; gap: 4px; }
.row-place .ic { color: var(--ink-3); }
@media (max-width: 760px) { .lead { padding: 22px; } .story-row { padding: 18px; } }

.filters { margin-bottom: 6px; }
.filter-toggle { width: fit-content; }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; min-height: 40px; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--edge-low); font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; list-style: none; }
.filter-toggle::-webkit-details-marker { display: none; }
.filters[open] .filter-toggle { color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.filters[open] { padding-bottom: 8px; }
.filters .filter-row { margin-top: 10px; }

.map-band { background: linear-gradient(to bottom, var(--bg), var(--map-bg) 40%); border-bottom: 1px solid var(--line); }
.search-group { margin-top: 22px; display: grid; gap: 10px; }
.search-group h2 { font: 800 17px var(--font-display); letter-spacing: -.03em; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips.wrap .chip { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; }  /* a long name wraps inside its pill instead of widening the page */

/* touch targets: 44 px on phones */
@media (max-width: 760px) {
    .chip, .small-btn, .more, .iconbtn { min-height: 44px; }
    .pager a, .pager button { min-height: 44px; }
}

/* page-to-page cross-fade where the browser can do it, and not for people who ask for less motion */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* Promises: one Filters button opens a small panel; what is chosen shows as removable chips. */
.ptools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 18px 0 16px; }
.pfilter { position: relative; }
.pfilter .filter-toggle { background: var(--glass); }
.pf-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-btn); color: var(--on-btn); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-panel { position: absolute; z-index: 6; top: calc(100% + 8px); left: 0; display: grid; gap: 16px; width: min(640px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 20px; border-radius: var(--r-lg); background: var(--glass-solid); box-shadow: var(--shadow-hover), 0 0 0 1px var(--line); }
.pf-group { display: grid; gap: 8px; }
.pf-opts { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.pf-opts a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.pf-opts a:hover { background: var(--accent-soft); }
.pf-opts a b { font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.pf-opts a[aria-current="true"] { background: var(--accent-btn); color: var(--on-btn); box-shadow: none; }
.pf-opts a[aria-current="true"] b { color: inherit; }
.achips { display: contents; list-style: none; margin: 0; padding: 0; }
.achips li { display: contents; }
.achip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 8px 5px 13px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--edge-low); font-size: 11.5px; font-weight: 600; color: var(--ink); }
.achip:hover { background: var(--accent-soft); }
.achip .x { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 14.5px; line-height: 1; color: var(--ink-3); }
.ptools .more { min-height: 36px; }
@media (max-width: 760px) { .pf-panel { padding: 16px; } .achip { min-height: 44px; } .ptools .more { min-height: 44px; } }

/* ── One card system (2026-11-01) ──
   Everything on a page is a card (hairline, 14px radius, 24px inside, 24px between) or a titled section that holds cards.
   Shared parts: `.card` · `.page-head` (the page's own title card) · `.sec-head.card` (a section's title card) ·
   `.cols` (3 columns from 1000px, 2 from 640px, 1 on phones; `.c2` spans two columns, `.c3` the whole row) · `.tile` (a quiet box inside a card). */
.cols, .section { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.cols > *, .section > * { min-width: 0; margin: 0; }
@media (min-width: 640px) {
    .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols > .c2, .cols > .c3 { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
    .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cols > .c2 { grid-column: span 2; }
    .cols > .c3 { grid-column: 1 / -1; }
}
.part { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.part > * { min-width: 0; margin: 0; }
@media (min-width: 640px) { .part { grid-template-columns: repeat(2, minmax(0, 1fr)); } .part > .c2, .part > .c3, .part > .part-head { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .part { grid-template-columns: repeat(3, minmax(0, 1fr)); } .part > .c2 { grid-column: span 2; } .part > .c3, .part > .part-head { grid-column: 1 / -1; } }

.page-head { display: grid; gap: 4px; align-content: start; padding: 22px var(--pad) 20px; }
.page-head .pr-title { margin: 4px 0 2px; font-size: 25px; }
.page-head > p { max-width: 70ch; font-size: 13px; line-height: 1.55; }
.page-head > p + p { margin-top: 6px; }
.page-head .searchbar.big { margin: 12px 0 4px; max-width: 760px; }
.page-head .onpage { margin-top: 12px; }
.page-head .filters, .page-head .filter-row { margin: 8px 0 0; }
.who-head.page-head { display: flex; margin: 0; padding: 22px var(--pad); }
.sec-head.card { margin: 0; padding: 16px var(--pad); align-items: center; }
.sec-head.card h2 { font-size: 18px; }
.back { margin: 0 0 -8px -4px; }
.empty.card { padding: 40px var(--pad); }
.story-row .row-title a { color: inherit; }
.cols > .lead { align-items: flex-start; grid-column: 1 / -1; }
.cols > .card.promises-card { align-self: stretch; }
.filters.card { margin: 0; }

.searchbar { box-shadow: inset 0 0 0 1px var(--edge-low); }
@media (max-width: 760px) {
    :root { --pad: 16px; --gap: 12px; }
    .page-head { padding: 20px var(--pad); }
    .page-head .pr-title { font-size: 21.5px; }
}
@media (min-width: 640px) {
    .now-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .now-cell + .now-cell { padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--hair); }
    .now-cell:first-child { padding-right: 24px; }
}
.filters.card { padding: 12px var(--pad); }
.filters.card[open] { padding-bottom: 16px; }
p.card, .foot.card { max-width: none; margin: 0; padding: 16px var(--pad); font-size: 12.5px; line-height: 1.55; }
.scope.card { margin: 0; }
.empty a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
/* a story row inside a card (the week page, an outlet list) is a plain row, not a card in a card */
.card .story-row { padding: 16px 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--hair); }
.card .story-row:first-child { border-top: 0; padding-top: 4px; }
.card .story-row:hover { box-shadow: none; }
.viyu-intro, .viyu-workspace { border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }
.viyu-workspace:first-child { border-radius: var(--r-lg); }  /* no intro strip: one card, all four corners */

/* Zoomed in on an atoll (or out to the country), the page is about to filter: a pill says so while the map settles */
.view-filter { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--glass-solid); box-shadow: 0 0 0 1px var(--accent), 0 8px 22px rgba(18, 74, 66, .14); font: 600 11px var(--font-ui); color: var(--accent-ink); cursor: pointer; animation: pill-in .3s var(--ease) both; }
.view-filter em { font-style: normal; }
.view-filter span { font-weight: 800; }
.view-filter i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pill-dot 1.1s ease-in-out infinite; }
.view-filter[hidden] { display: none; }
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pill-dot { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .view-filter, .view-filter i { animation: none; } }
/* Top stories and Latest stories each sit in one outer panel (owner, 2026-11-01); the stories inside are tinted tiles, not cards in a card */
.panel { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; padding: var(--pad); border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--line); }
.panel > .sec-head { margin: 0; padding: 0; align-items: center; }
.panel > .sec-head h2 { font-size: 18px; }
.panel .lead, .panel .story-row { background: var(--tile); box-shadow: none; }
.panel .lead:hover, .panel .story-row:hover { box-shadow: 0 0 0 1px var(--accent); }
.panel .filters { margin: 0; padding: 12px 16px; }
.panel .filters[open] { padding-bottom: 16px; }
.panel .empty { background: var(--tile); box-shadow: none; }

/* ── Viyu, premium and alive (owner, 2026-11-02: "premium end to end, also interactive") ──
   A ring and a soft glow on the logo; the badge tilts a little towards the pointer (app.js sets --tx, --ty); the lamp answers a hover, a press
   and a click; while Viyu thinks the beam sweeps fast like a search; in the dark theme the scene turns to night (stars, deeper sea, stronger beam). */
.logo, .viyu-art .bird { transform: perspective(360px) rotateX(calc(var(--ty, 0) * -1deg)) rotateY(calc(var(--tx, 0) * 1deg)) scale(var(--s, 1)); transition: transform .35s var(--ease), box-shadow .35s; }
.logo { box-shadow: 0 0 0 2px var(--glass), 0 0 0 3px var(--line), 0 9px 20px rgba(16, 117, 107, .26); }
.viyu-launch:hover .logo, .viyu-launch:focus-visible .logo { --s: 1.07; box-shadow: 0 0 0 2px var(--glass), 0 0 0 3px var(--accent), 0 12px 26px rgba(16, 117, 107, .34); }
.viyu-launch:active .logo { --s: .95; }
.viyu-launch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.viyu-launch .logo.tilting, .viyu-art .bird.tilting { transition: transform .08s linear, box-shadow .35s; }
.viyu-art .bird { box-shadow: 0 0 0 3px var(--glass), 0 0 0 4px var(--line), 0 16px 34px rgba(26, 83, 67, .2); }
.bird .beam { transition: transform .4s var(--ease); }
.viyu-launch:hover .beam, .viyu-launch:focus-visible .beam { transform: scale(1.18); }
.viyu-launch:hover .lamp-glow, .viyu-launch:focus-visible .lamp-glow { animation-duration: 1.3s; }
.viyu-launch.flash .logo { animation: logoring .75s ease-out; }
.viyu-launch.flash .lamp-glow { animation: lampflash .75s ease-out; }
@keyframes logoring { from { box-shadow: 0 0 0 2px var(--glass), 0 0 0 3px var(--accent), 0 0 0 3px rgba(31, 170, 150, .55); } to { box-shadow: 0 0 0 2px var(--glass), 0 0 0 3px var(--accent), 0 0 0 22px rgba(31, 170, 150, 0); } }
@keyframes lampflash { 0% { opacity: 1; transform: scale(.6); } 40% { opacity: 1; transform: scale(2.4); } 100% { opacity: .9; transform: scale(1); } }
.bird[data-mood="think"] .beam-sweep { animation-duration: 2.2s; }  /* searching: the beam sweeps fast; app.js lets go of the pointer while Viyu thinks */
.bird[data-mood="think"] .beam { opacity: 1; }
.bird .beam { opacity: .88; }
.bird .stars { opacity: 0; transition: opacity .6s; }
.bird .stars circle { animation: twinkle 3.4s ease-in-out infinite; }
.bird .stars circle:nth-child(3n) { animation-delay: -1.1s; }
.bird .stars circle:nth-child(3n + 1) { animation-delay: -2.2s; animation-duration: 4.6s; }
@keyframes twinkle { 50% { opacity: .25; } }
.bird .night { transition: opacity .6s; }
.dark .bird .stars { opacity: 1; }
.dark .bird .night { opacity: .34; }
.dark .bird .beam { opacity: 1; }
.dark .bird .k0 { stop-color: #031b1d; }
.dark .bird .k1 { stop-color: #07393a; }
.dark .bird .k2 { stop-color: #0f5f5b; }
.dark .bird .k3 { stop-color: #4e8f7f; }
.dark .bird .k4 { stop-color: #d8b676; }
.dark .bird .w0 { stop-color: #17786f; }
.dark .bird .w1 { stop-color: #0b5652; }
.dark .bird .w2 { stop-color: #05302f; }
@media (prefers-reduced-motion: reduce) {
    .logo, .viyu-art .bird { transform: none !important; }
    .bird .stars circle { animation: none; }
}

/* Phones and tablets: the top row is a search bar and the theme button, not two icons beside an empty space (owner, 2026-11-02: "I don't like whitespace above navbar"). */
.search-label { display: none; }
@media (max-width: 1239px) {
    .topbar, .topbar.glass { min-height: 0; padding-block: 10px; gap: 10px; }
    .topbar .bar-right { grid-column: 1 / -1; grid-row: 1; width: 100%; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; }
    .bar-right a[data-search-link] { flex: 1 1 auto; width: auto; display: flex; align-items: center; justify-content: flex-start; gap: 10px; height: 44px; padding: 0 14px; border-radius: 13px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-size: 12px; font-weight: 500; }
    .bar-right a[data-search-link]:hover { color: var(--ink); }
    .bar-right a[data-search-link] .ic { flex: none; }
    .search-label { display: inline; }
    .bar-right [data-theme-toggle] { flex: none; width: 44px; height: 44px; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line); }
}

/* iPhone Safari zooms the page when a text field under 16px is focused: keep the chat and search fields at 16px on phones
   while the rest of the type is smaller. */
@media (max-width: 760px) {
    .chat-input, .searchbar input, .searchbar.big input { font-size: 16px; }
}

/* A small link on the map to the credits on Terms & Legal. */
.stage-credit { position: absolute; right: max(16px, var(--edge)); bottom: 32px; z-index: 3; padding: 3px 10px; border-radius: 999px; background: var(--glass); box-shadow: 0 0 0 1px var(--line); font-size: 10px; font-weight: 600; color: var(--ink-3); transition: color .2s; }
.stage-credit:hover { color: var(--accent-ink); }
@media (max-width: 760px) { .stage-credit { bottom: 46px; right: 10px; } }


/* ── Orion-style restyle (owner, 2026-11-07, from two reference dashboards): soft indigo, airy shadowed cards, a faint dot grid,
   light large numerals, underlined current tab. Overrides the older "hairline, no shadow" rule; heat stays amber. ── */
body { background-color: var(--bg); background-image: radial-gradient(circle, rgba(31, 157, 144, .20) 1px, transparent 1.4px), radial-gradient(60% 40% at 80% 0%, rgba(31, 157, 144, .10), transparent 70%); background-size: 22px 22px, auto; background-attachment: fixed; }
.dark body { background-image: radial-gradient(circle, rgba(154, 144, 255, .14) 1px, transparent 1.4px), radial-gradient(60% 40% at 80% 0%, rgba(122, 111, 240, .16), transparent 70%); }
:root { --r-lg: 18px; --r-md: 14px; }
.glass, .pane { box-shadow: var(--shadow); border: 1px solid var(--hair); }
a.glass:hover, a.card:hover, .num-card:hover { box-shadow: var(--shadow-hover); }
.tile { box-shadow: none; border: 1px solid var(--hair); }
.nav a.tab { border-radius: 10px; background: none; font-size: 13px; font-weight: 600; color: var(--ink-3); padding-inline: 20px; }
.nav a.tab:hover { background: var(--accent-soft); color: var(--accent-ink); }
.nav a.tab[aria-current="page"] { background: none; color: var(--ink); }
.nav a.tab[aria-current="page"]::after { left: 16px; right: 16px; width: auto; bottom: 2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-btn)); }
.masthead-note { max-width: none; white-space: nowrap; font-size: 11.5px; letter-spacing: .01em; }
.viyu-label strong { font-size: 12px; font-weight: 700; color: var(--ink); }
.bar-right { gap: 10px; border-left: 0; }
.bar-right .iconbtn { background: var(--glass); box-shadow: var(--shadow), 0 0 0 1px var(--hair); border-radius: 14px; }
.bar-right .iconbtn:hover { background: var(--accent-soft); }
.logo { box-shadow: 0 0 0 3px var(--glass), 0 0 0 4px var(--hair), 0 10px 24px rgba(16, 117, 107, .28); }
@media (max-width: 999px) { .masthead-note { display: none; } }
.kpi-val, .big .kpi-val { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.big .kpi-val { font-size: 52px; font-weight: 500; }
.sec-head h2, .page-head h1 { font-weight: 600; letter-spacing: -.02em; }
.topbar-wrap { box-shadow: 0 4px 24px rgba(70, 70, 150, .06); }
.stage { border-radius: var(--r-lg); }
.topbar, .topbar.glass { border: 0; }
.nav a.tab { flex: 0 0 116px; width: 116px; padding-inline: 8px; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
@media (max-width: 999px) { .nav a.tab { flex: 1 1 0; width: auto; } }
