/* Going On — brand + everyday views (Now, Alerts, story sheet). Map styles live in styles.css. */
/* Schibsted Grotesk (SIL Open Font License), variable 400-900, served from /fonts */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/schibsted-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/schibsted-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Schibsted Grotesk', system-ui, sans-serif;
  /* paper */
  --paper: #f2f3f1;
  --card: #ffffff;
  --ink-1: #14171a;
  --ink-2: #474d54;
  --ink-3: #5f666e;      /* passes 4.5:1 on paper */
  --rule: rgba(20, 23, 26, .11);
  --rule-2: rgba(20, 23, 26, .2);
  --onair: #e5341d;      /* live / major — the only loud colour */
  --onair-soft: rgba(229, 52, 29, .09);
  --watch: #a35f00;
  --calm: #1d7a52;
  --shadow: 0 1px 2px rgba(20, 23, 26, .06), 0 8px 24px rgba(20, 23, 26, .06);
  --fs: 17px;
  --now-w: 680px;
  /* one design for both themes: the components below use only these tokens; the dark set further down swaps the colours */
  --card-2: #eceeeb;                 /* a quieter surface inside a card (count badges, thumbnails waiting to load) */
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 60%);
  --rim: inset 0 0 0 1px rgba(20, 23, 26, .09);
  --lift: 0 12px 28px -16px rgba(20, 23, 26, .3);
  --glow: 0 0 0 0 transparent;        /* the live dot glows on dark only; a no-op shadow keeps shadow lists valid */
  --lit: linear-gradient(180deg, #2c3035, #14171a);         /* the active / primary control */
  --lit-rim: 0 8px 18px -10px rgba(20, 23, 26, .5);
  --frost: rgba(242, 243, 241, .86);   /* sticky bars over scrolling content */
  --bar: rgba(255, 255, 255, .9);      /* the floating tab bar */
  --bar-rim: inset 0 0 0 1px rgba(20, 23, 26, .08), 0 14px 34px -12px rgba(20, 23, 26, .35);
  --ncard: var(--card);                /* notification cards (Recent alerts, the recap preview) */
  --sheet: var(--paper);               /* sheets */
  --orb-ring: rgba(242, 243, 241, .96);
  --hover: rgba(20, 23, 26, .06);
  --grabber: rgba(20, 23, 26, .2);
}
:root[data-size="l"] { --fs: 19px; }
:root[data-size="xl"] { --fs: 21.5px; }
/* dark: the horizon palette, the same whether picked or following the device (Auto) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #09090b; --card: #141418; --card-2: #1c1c21; --ink-1: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93; --rule: rgba(255, 255, 255, .075); --rule-2: rgba(255, 255, 255, .15); --onair: #ff2d2d; --onair-soft: rgba(255, 45, 45, .13); --watch: #f0a63a; --calm: #4cc391;
    --glass: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018) 55%, rgba(255, 255, 255, .01)); --rim: inset 0 1px 0 rgba(255, 255, 255, .085), inset 0 0 0 1px rgba(255, 255, 255, .06); --lift: 0 18px 40px -14px rgba(0, 0, 0, .75); --glow: 0 0 9px rgba(255, 45, 45, .75), 0 0 2px rgba(255, 45, 45, .95); --shadow: var(--rim), var(--lift);
    --lit: linear-gradient(180deg, #3c3c43 0%, #2a2a30 55%, #232328 100%); --lit-rim: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 0 0 1px rgba(255, 255, 255, .13), 0 10px 22px -10px rgba(0, 0, 0, .9);
    --frost: rgba(9, 9, 11, .8); --bar: rgba(20, 20, 24, .8); --bar-rim: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px -10px rgba(0, 0, 0, .9); --ncard: #17171b; --sheet: #0f0f12; --orb-ring: rgba(9, 9, 11, .9); --hover: rgba(255, 255, 255, .06); --grabber: rgba(255, 255, 255, .22); }
}
:root[data-theme="dark"] { --paper: #09090b; --card: #141418; --card-2: #1c1c21; --ink-1: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93; --rule: rgba(255, 255, 255, .075); --rule-2: rgba(255, 255, 255, .15); --onair: #ff2d2d; --onair-soft: rgba(255, 45, 45, .13); --watch: #f0a63a; --calm: #4cc391;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018) 55%, rgba(255, 255, 255, .01)); --rim: inset 0 1px 0 rgba(255, 255, 255, .085), inset 0 0 0 1px rgba(255, 255, 255, .06); --lift: 0 18px 40px -14px rgba(0, 0, 0, .75); --glow: 0 0 9px rgba(255, 45, 45, .75), 0 0 2px rgba(255, 45, 45, .95); --shadow: var(--rim), var(--lift);
  --lit: linear-gradient(180deg, #3c3c43 0%, #2a2a30 55%, #232328 100%); --lit-rim: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 0 0 1px rgba(255, 255, 255, .13), 0 10px 22px -10px rgba(0, 0, 0, .9);
  --frost: rgba(9, 9, 11, .8); --bar: rgba(20, 20, 24, .8); --bar-rim: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px -10px rgba(0, 0, 0, .9); --ncard: #17171b; --sheet: #0f0f12; --orb-ring: rgba(9, 9, 11, .9); --hover: rgba(255, 255, 255, .06); --grabber: rgba(255, 255, 255, .22); }

/* Schibsted's tabular figures also space out . and : so we keep proportional figures */

/* ---------- brand ---------- */
.brand { text-decoration: none; gap: 9px; }
/* the wordmark: "going on" with its o drawn as a power ring and the live dot in the gap (tools/brand.js) */
.brand-logo { display: block; height: 25px; width: auto; overflow: visible; color: var(--ink); flex: none; }
.brand-logo .bl-dot { fill: var(--onair); }
.brand-logo .bl-halo { fill: none; stroke: var(--onair); stroke-width: 56; opacity: 0; transform-box: fill-box; transform-origin: center; }
.brand-logo[data-mood="notable"] .bl-halo, .brand-logo[data-mood="busy"] .bl-halo { animation: onair 2.4s ease-out infinite; }
.brand:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 4px; border-radius: 6px; }
@keyframes onair { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- top bar: paper on Now/Alerts, glass over the map ---------- */
.topbar { height: 60px; gap: 18px; }
.views { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.views button { height: 34px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--soft); }
.views button.on { background: rgba(255, 255, 255, .14); color: var(--ink); }
.get-alerts { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--onair); color: #fff; font-weight: 700; font-size: 14.5px; margin-left: 6px; }
.get-alerts svg { width: 17px; height: 17px; fill: currentColor; }
.get-alerts.on { background: transparent; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.get-alerts.on span::after { content: ' on'; }
body:not([data-view="map"]) .map-only { display: none !important; }
body:not([data-view="map"]) .topbar { background: var(--paper); border-bottom: 1px solid var(--rule); backdrop-filter: none; -webkit-backdrop-filter: none; }
body:not([data-view="map"]) .brand-logo { color: var(--ink-1); }
body:not([data-view="map"]) .views { background: color-mix(in srgb, var(--ink-1) 6%, transparent); }
body:not([data-view="map"]) .views button { color: var(--ink-2); }
body:not([data-view="map"]) .views button.on { background: var(--ink-1); color: var(--paper); box-shadow: none; }
body:not([data-view="map"]) .get-alerts.on { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-2); }
body:not([data-view="map"]) .tools { margin-left: auto; }
body:not([data-view="map"]) .left, body:not([data-view="map"]) .right, body:not([data-view="map"]) .tour-caption { display: none !important; }
body[data-view="map"] .view { display: none; }

/* ---------- the paper views ---------- */
.view { position: absolute; top: 60px; left: 0; bottom: 0; width: min(var(--now-w), 62vw); z-index: 6; overflow-y: auto; background: var(--paper); color: var(--ink-1);
  font-size: var(--fs); line-height: 1.5; border-right: 1px solid var(--rule); scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
body[data-view="now"] .view.alerts, body[data-view="alerts"] .view.now { display: none; }
.view::after { content: ''; display: block; height: 40px; }
.now-inner { padding: 28px 40px 0; max-width: var(--now-w); }
.view h1, .view h2, .view h3 { margin: 0; color: var(--ink-1); }
.view p { margin: 0; }
.view button { color: inherit; }
.view a { color: inherit; }
/* the globe stays visible on the right as a live picture of the world */
body:not([data-view="map"]) .vignette { background: linear-gradient(to right, transparent 40%, rgba(1, 4, 8, .35)); }

.hero { padding-bottom: 26px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.hero .date { font-size: .82em; color: var(--ink-3); font-weight: 500; margin-bottom: 10px; }
.hero h1 { font-size: clamp(34px, 2.1em + 1vw, 54px); line-height: 1.02; font-weight: 720; letter-spacing: -0.022em; text-wrap: balance; }
.hero h1[data-mood="busy"] { color: var(--ink-1); }
.hero .lead { margin-top: 14px; font-size: 1.12em; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; max-width: 34em; }
.hero.small h1 { font-size: clamp(30px, 1.8em + 1vw, 44px); }

.sec { font-size: 1.12em; font-weight: 720; letter-spacing: -0.015em; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-note { font-size: .8em; color: var(--ink-3); }
section + section { margin-top: 34px; }

/* near you */
.near { background: var(--card); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.near h2 { font-size: 1.05em; font-weight: 720; }
.near-empty { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.near-empty p { color: var(--ink-2); font-size: .92em; margin-top: 4px; max-width: 30em; }
.near-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wx { color: var(--ink-2); font-size: .9em; }
.calm-line { margin-top: 8px !important; color: var(--calm); font-size: .95em; }
.near-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.near-list li { display: grid; gap: 2px; padding: 10px 0 0; border-top: 1px solid var(--rule); cursor: pointer; }
.near-list .nl { font-size: .74em; font-weight: 700; color: var(--ink-3); text-transform: none; }
.near-list li.hot .nl { color: var(--onair); }
.near-list b { font-size: 1em; }
.near-list .ns { font-size: .86em; color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink-1); color: var(--paper) !important; font-weight: 700; font-size: .92em; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--ink-1) !important; box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 1em; background: var(--onair); color: #fff !important; }
.btn.big.on { background: var(--calm); }
.btn[disabled] { opacity: .6; }
.link { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--ink-1); padding: 4px 0; }
.mini { min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: .78em; font-weight: 700; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1px var(--rule-2); }
.mini:hover { color: var(--ink-1) !important; box-shadow: inset 0 0 0 1px var(--ink-3); }

/* story cards */
.cards { display: grid; gap: 0; }
.scard { padding: 20px 0 20px 18px; border-top: 1px solid var(--rule); cursor: pointer; position: relative; }
.scard:first-child { border-top: 0; padding-top: 6px; }
.scard::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 2px; background: var(--rule-2); }
.scard:first-child::before { top: 10px; }
.scard.major::before, .scard.big::before { background: var(--onair); }
.scard.unconf::before { background: repeating-linear-gradient(to bottom, var(--watch) 0 5px, transparent 5px 9px); }
.scard.over::before { background: var(--calm); }
.scard:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.scard:focus-visible { outline-offset: 4px; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: .76em; color: var(--ink-3); font-weight: 600; flex-wrap: wrap; }
.scard h3 { margin-top: 6px !important; font-size: 1.3em; line-height: 1.22; font-weight: 700; letter-spacing: -0.018em; text-wrap: balance; }
.scard.major h3 { font-size: 1.5em; font-weight: 720; }
.scard p { margin-top: 6px !important; color: var(--ink-2); font-size: .92em; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ols { display: flex; }
.ol { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 720; background: var(--paper); color: var(--ink-2); box-shadow: 0 0 0 2px var(--card), inset 0 0 0 1px var(--rule-2); margin-left: -6px; }
:root:not([data-theme]) .view .ol, .view .ol { background: color-mix(in srgb, var(--ink-1) 7%, var(--paper)); box-shadow: 0 0 0 2px var(--paper); }
.ol:first-child { margin-left: 0; }
.src { font-size: .8em; color: var(--ink-3); }
.acts { display: flex; gap: 6px; }

.weight { display: inline-flex; align-items: center; gap: 6px; font-weight: 720; font-size: 1em; color: var(--ink-2); }
/* "Major" and "Big" are ink: red is kept for Live and breaking */
.weight.major, .weight.big { color: var(--ink-1); }
.weight.major::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.weight.unconf { color: var(--watch); }
.weight.over { color: var(--calm); }

/* happening now + money */
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; }
.ongoing { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.ongoing li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; cursor: pointer; }
.ongoing .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); margin-top: .5em; }
.ongoing li.hot .dot { background: var(--onair); box-shadow: 0 0 0 4px var(--onair-soft); }
.ongoing li.quiet .dot { background: var(--calm); }
.ongoing b { display: block; font-size: .95em; line-height: 1.3; }
.ongoing span { display: block; font-size: .82em; color: var(--ink-3); margin-top: 2px; }
.nerves { margin-top: 12px !important; font-size: .95em; color: var(--ink-2); }
.nerves b { color: var(--ink-1); }
.mk { list-style: none; margin: 10px 0 0; padding: 0; }
.mk li { display: grid; grid-template-columns: 1fr auto 60px; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--rule); font-size: .88em; }
.mk span { color: var(--ink-2); }
.mk i { font-style: normal; font-weight: 700; text-align: right; }
.mk i.up { color: var(--calm); }
.mk i.down { color: var(--onair); }

.early { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.early li { padding-left: 14px; border-left: 3px dotted var(--watch); }
.early a { text-decoration: none; }
.early a:hover b { text-decoration: underline; }
.early span { display: block; font-size: .82em; color: var(--ink-3); }
/* Health watch: plain rows like every other list (no red headlines, no orange dotted rule, no green text) */
.early.hwatch li, .early.hwatch li.hw-calm { padding-left: 0; border-left: 0 !important; color: inherit; }
.early.hwatch li + li { padding-top: 12px; border-top: 1px solid var(--rule); }
.early.hwatch li b, .early.hwatch li.mine b { color: var(--ink-1) !important; }
.early.hwatch li.hw-calm, .early.hwatch li.hw-calm * { color: var(--ink-2) !important; }

/* the page footer: one sentence on the method, then small quiet links */
.about { margin-top: 44px; padding: 22px 0 8px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 13.5px; line-height: 1.5; display: grid; gap: 12px; }
.about h2 { font-size: 1.05em; font-weight: 720; }
.about p { margin: 0; }
.about-line { max-width: 56ch; color: var(--ink-2); }
.about a, .about button { color: inherit; font: inherit; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.about .about-how { color: var(--ink-1); font-weight: 650; white-space: nowrap; }
.about .about-how::after { content: ' ›'; }
.about-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.about-links a, .about-links button { color: var(--ink-2); font-weight: 600; }
.about a:hover, .about button:hover { color: var(--ink-1); text-decoration: underline; text-underline-offset: 3px; }
.about-copy { font-size: 12.5px; }
.empty { color: var(--ink-3); padding: 12px 0; }

/* ---------- alerts view ---------- */
.set { padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.set:last-child { border-bottom: 0; }
.set h2 { font-size: 1.12em; font-weight: 720; margin-bottom: 4px !important; }
.set-note { font-size: .84em; color: var(--ink-3); margin: 4px 0 12px !important; }
.place-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; }
.place-now { font-size: .95em; color: var(--ink-2); }
.place-now b { color: var(--ink-1); }
.place-search { position: relative; flex: 1; min-width: 200px; }
.place-search input, #placeInput { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--rule-2); background: var(--card); color: var(--ink-1); padding: 0 14px; font-size: .95em; outline: none; }
#placeInput:focus { border-color: var(--ink-1); }
#placeResults { list-style: none; margin: 6px 0 0; padding: 0; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
#placeResults:empty { display: none; }
#placeResults button { width: 100%; text-align: left; padding: 11px 14px; border-top: 1px solid var(--rule); font-size: .92em; }
#placeResults li:first-child button { border-top: 0; }
#placeResults button:hover { background: color-mix(in srgb, var(--ink-1) 5%, transparent); }
#placeResults span, #placeResults .none { color: var(--ink-3); }
#placeResults .none { padding: 11px 14px; font-size: .9em; }
.levels { display: grid; gap: 10px; margin-top: 12px; }
.level { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--rule); cursor: pointer; }
.level:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink-1); }
.level input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--onair); }
.level b { display: block; font-size: 1em; }
.level em { display: block; font-style: normal; font-size: .8em; color: var(--ink-3); font-weight: 600; }
.level i { display: block; font-style: normal; font-size: .86em; color: var(--ink-2); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 15px; border-radius: 999px; font-size: .86em; font-weight: 600; color: var(--ink-3) !important; box-shadow: inset 0 0 0 1.5px var(--rule-2); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.chip.on { background: var(--ink-1); color: var(--paper) !important; box-shadow: none; text-decoration: none; }
.toggle { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 12px 0; font-size: .92em; cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink-1); }
.push { margin-top: 18px; display: grid; justify-items: start; gap: 8px; }
.ios-help { background: var(--card); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); font-size: .9em; }
.ios-help ol { margin: 6px 0 0; padding-left: 20px; }
.seg { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.seg > span { min-width: 90px; font-size: .9em; color: var(--ink-2); }
.seg button { min-height: 40px; min-width: 44px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: .9em; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-2); }
.seg button.on { background: var(--ink-1); color: var(--paper); box-shadow: none; }
.seg button.l { font-size: 1.05em; } .seg button.xl { font-size: 1.25em; }
.seg.small { margin: 0; } .seg.small button { min-height: 34px; }
.history { list-style: none; margin: 8px 0 0; padding: 0; }
.history .day { font-size: .78em; font-weight: 720; color: var(--ink-3); padding: 16px 0 4px; }
.h-item { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); cursor: pointer; }
.h-item time { font-size: .82em; color: var(--ink-3); padding-top: 2px; }
.h-item .weight { font-size: .74em; display: flex; }
.h-item b { display: block; font-size: .96em; line-height: 1.32; margin-top: 2px; }
.h-item span:not(.weight) { display: block; font-size: .82em; color: var(--ink-3); margin-top: 2px; }

/* ---------- story sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(8, 10, 12, .45); display: flex; justify-content: flex-end; animation: fade .2s ease-out; }
.sheet-panel { position: relative; width: min(600px, 100vw); height: 100%; overflow-y: auto; background: var(--paper); color: var(--ink-1); font-size: var(--fs); line-height: 1.5; padding: 30px 36px 60px; box-shadow: -20px 0 60px rgba(0, 0, 0, .25); animation: slidein .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--ink-2); }
.sheet-close:hover { background: color-mix(in srgb, var(--ink-1) 7%, transparent); }
.sh-meta { display: flex; gap: 12px; align-items: center; font-size: .8em; color: var(--ink-3); font-weight: 600; flex-wrap: wrap; padding-right: 40px; }
.sh-title { margin-top: 10px !important; font-size: 1.75em; line-height: 1.12; font-weight: 720; letter-spacing: -0.02em; text-wrap: balance; }
.sh-lead { margin-top: 12px !important; color: var(--ink-2); }
.sh-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.sh-h { margin-top: 30px !important; font-size: 1em; font-weight: 720; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.side h4 { margin: 0 0 6px; font-size: .8em; color: var(--ink-3); }
.side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .88em; }
.side b { display: block; font-size: .85em; color: var(--ink-3); }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: .9em; }
.timeline li:first-child { border-top: 0; }
.timeline li.is-first b::after { content: ' · first'; color: var(--onair); }
:root[lang="es"] .timeline li:first-child b::after { content: ' · primero'; }
.timeline time { color: var(--ink-3); font-size: .9em; }
.timeline b { display: block; }
.timeline span { color: var(--ink-2); }
.odds { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; font-size: .92em; }
.odds b { font-size: 1.2em; }
.fine { margin-top: 14px !important; font-size: .78em; color: var(--ink-3); }
.loading { color: var(--ink-3); }

/* ---------- toasts & notes ---------- */
.toasts { top: 74px; width: min(460px, calc(100vw - 24px)); left: auto; right: 16px; transform: none; }
.toast { grid-template-columns: 1fr auto; padding: 14px 10px 14px 16px; background: var(--card); color: var(--ink-1); border: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, .28), inset 3px 0 0 var(--ink-3); backdrop-filter: none; }
.toast.major, .toast.big { box-shadow: 0 18px 50px rgba(0, 0, 0, .28), inset 4px 0 0 var(--onair); }
.toast .tk { font-family: var(--font); font-size: 12.5px; color: var(--ink-3); gap: 8px; }
.toast .tk::before { display: none; }
.toast .tt { font-size: 16px; font-weight: 700; color: var(--ink-1); margin-top: 3px; }
.toast .td { color: var(--ink-2); font-size: 13.5px; }
.toast .tx { color: var(--ink-3); }
.note { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 40; background: var(--ink-1); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.note.show { animation: fade .2s ease-out; }

.bottom-nav { display: none; }

/* map view polish */
.maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(0, 0, 0, .35); color: #aab; }
.maplibregl-ctrl-attrib a { color: #bbc; }
body[data-view="map"] .live { display: inline-flex !important; }

/* ---------- phones & tablets ---------- */
@media (max-width: 960px) {
  body:not([data-view="map"]):not(.classmode) .grain, body:not([data-view="map"]):not(.classmode) .vignette { display: none; }
  .topbar { height: 56px; padding: 0 10px 0 14px; padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); }
  .views { display: none; }
  .get-alerts span { display: none; }
  .get-alerts { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .view { top: calc(56px + env(safe-area-inset-top)); width: 100%; bottom: calc(62px + env(safe-area-inset-bottom)); border-right: 0; }
  .now-inner { padding: 22px 18px 0; }
  .hero { padding-bottom: 20px; margin-bottom: 20px; }
  .two { grid-template-columns: 1fr; gap: 30px; }
  .near-empty { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--rule); }
  .bottom-nav button { flex: 1; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--ink-3); font-size: 12px; font-weight: 700; }
  .bottom-nav svg { width: 24px; height: 24px; fill: currentColor; }
  .bottom-nav button.on { color: var(--ink-1); }
  .bottom-nav button.on svg { color: var(--onair); }
  body[data-view="map"] .bottom-nav { background: #0b1117; border-top-color: rgba(255, 255, 255, .08); }
  body[data-view="map"] .bottom-nav button { color: #8a99a6; }
  body[data-view="map"] .bottom-nav button.on { color: #fff; }
  body[data-view="map"] .mobile-tabs { top: calc(64px + env(safe-area-inset-top)); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: auto; height: 38px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(8, 14, 20, .85); backdrop-filter: blur(10px); padding: 3px; gap: 2px; }
  body[data-view="map"] .mobile-tabs button { flex: none; padding: 0 16px; border-radius: 999px; font-family: var(--font); font-size: 14px; }
  body[data-view="map"] .mobile-tabs button.active { background: rgba(255, 255, 255, .14); box-shadow: none; }
  body[data-view="map"] .left, body[data-view="map"] .right { top: calc(110px + env(safe-area-inset-top)); bottom: calc(72px + env(safe-area-inset-bottom)); }
  body[data-view="map"] .ticker { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .maplibregl-ctrl-bottom-right { bottom: calc(110px + env(safe-area-inset-bottom)); }
  .toasts { top: calc(64px + env(safe-area-inset-top)); right: 12px; }
  .sheet-panel { padding: 24px 20px 60px; width: 100vw; }
  .sheet { align-items: flex-end; }
  .sheet-panel { height: 92%; border-radius: 20px 20px 0 0; animation: slideup .3s cubic-bezier(.2, .8, .2, 1); }
  @keyframes slideup { from { transform: translateY(40px); opacity: 0; } }
  .sides { grid-template-columns: 1fr; }
  .note { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .scard h3 { font-size: 1.2em; } .scard.major h3 { font-size: 1.36em; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-halo, .weight.major::before, .sheet-panel, .sheet, .note.show { animation: none !important; }
}
html body * { font-variant-numeric: normal !important; font-feature-settings: normal !important; }

/* following */
.following:empty { display: none; }
.follow-block { padding: 14px 0; border-top: 1px solid var(--rule); }
.follow-block:first-of-type { border-top: 0; padding-top: 4px; }
.follow-block h3 { font-size: .8em; font-weight: 720; color: var(--onair); margin-bottom: 6px !important; }
.follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.follow-list li { cursor: pointer; }
.follow-list b { display: block; font-size: .98em; line-height: 1.3; }
.follow-list li:hover b { text-decoration: underline; }
.follow-list span { font-size: .8em; color: var(--ink-3); }
.follow-none { font-size: .86em; color: var(--ink-3); }
.chip.add { text-decoration: none; color: var(--ink-1) !important; }
.chip.add:hover { box-shadow: inset 0 0 0 1.5px var(--ink-1); }
.chip.on span { margin-left: 4px; opacity: .6; }
.link.small { font-size: .82em; }
.quiet-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 4px 0 8px 36px; font-size: .9em; color: var(--ink-2); }
.quiet-row.off { opacity: .45; pointer-events: none; }
.quiet-row select { height: 40px; border-radius: 10px; border: 1.5px solid var(--rule-2); background: var(--card); color: var(--ink-1); padding: 0 10px; font: inherit; margin-left: 6px; }
.quiet-row .set-note { width: 100%; margin: 0 !important; }
.olist { font-size: .8em; font-weight: 600; color: var(--ink-3); }
@media (min-width: 600px) and (max-width: 960px) { .now-inner { max-width: none; padding: 28px 36px 0; } }

/* swipe through today */
.swipe-open { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--ink-1); color: var(--paper) !important; font-weight: 700; font-size: .9em; }
.so-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--onair); box-shadow: 0 0 0 4px rgba(229, 52, 29, .25); }
.swipe { position: fixed; inset: 0; z-index: 35; background: #0f1215; color: #eef0f2; }
.swipe-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 16px 12px 20px; pointer-events: none; }
.swipe-count { font-size: 14px; font-weight: 700; color: #9aa3ab; }
.swipe-x { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; color: #eef0f2; background: rgba(255, 255, 255, .08); }
.swipe-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.swipe-track::-webkit-scrollbar { display: none; }
.swp { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; padding: 70px 26px calc(40px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 120% 70% at 85% 0%, rgba(255, 90, 64, .22), transparent 60%), #0f1215; }
.swp.notable, .swp.minor { background: radial-gradient(ellipse 120% 70% at 85% 0%, rgba(160, 175, 190, .16), transparent 60%), #0f1215; }
.swp.over { background: radial-gradient(ellipse 120% 70% at 85% 0%, rgba(76, 195, 145, .18), transparent 60%), #0f1215; }
.swp.unconf { background: radial-gradient(ellipse 120% 70% at 85% 0%, rgba(240, 166, 58, .18), transparent 60%), #0f1215; }
.sw-in { max-width: 640px; margin: 0 auto; width: 100%; }
.sw-kick { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; font-weight: 700; color: #9aa3ab; }
.swp .weight.major, .swp .weight.big { color: #ff5a40; }
.swp .weight.over { color: #4cc391; } .swp .weight.unconf { color: #f0a63a; } .swp .weight.notable, .swp .weight.minor { color: #eef0f2; }
.sw-new { color: #0f1215; background: #eef0f2; padding: 1px 8px; border-radius: 999px; }
.sw-title { margin: 16px 0 0 !important; font-size: clamp(32px, 8.6vw, 60px); line-height: 1.04; font-weight: 720; letter-spacing: -0.022em; color: #fff; text-wrap: balance; }
.sw-sum { margin-top: 18px !important; font-size: 18px; color: #c4cbd2; line-height: 1.45; }
.sw-ol { margin-top: 14px !important; font-size: 14px; font-weight: 600; color: #8c959e; }
.sw-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.swp .btn { background: #fff; color: #14171a !important; }
.swp .btn.ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.sw-hint { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; font-weight: 700; color: #8c959e; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(-6px); } }
.swp.end { background: #0f1215; }
@media (prefers-reduced-motion: reduce) { .sw-hint { animation: none; } }

/* the lead story */
.lead-card:empty { display: none; }
.lead-card { margin-bottom: 26px; }
.leadc { position: relative; padding: 22px 24px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; border-left: 5px solid var(--rule-2); }
.leadc.major, .leadc.big { border-left-color: var(--onair); }
.leadc.over { border-left-color: var(--calm); } .leadc.unconf { border-left-color: var(--watch); }
.leadc h2 { margin-top: 8px !important; font-size: 1.75em; line-height: 1.12; font-weight: 720; letter-spacing: -0.02em; text-wrap: balance; }
.leadc:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.leadc p { margin-top: 8px !important; color: var(--ink-2); }
.leadc-stat { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.leadc-stat b { font-size: 2.6em; line-height: 1; font-weight: 760; letter-spacing: -0.028em; }
.leadc-stat span { font-size: .82em; color: var(--ink-3); line-height: 1.35; }
.near.compact { padding: 14px 18px; box-shadow: none; background: transparent; border: 1px solid var(--rule); }
.near.compact .near-head h2 { font-size: .95em; }
.near.compact .calm-line { margin-top: 4px !important; font-size: .84em; }
body.no-odds [data-tab="markets"], body.no-odds #tab-markets { display: none !important; }

/* classroom mode */
.classroom { position: fixed; top: 0; right: 0; bottom: 0; width: min(46vw, 820px); z-index: 30; display: flex; align-items: center; padding: 3vh 3vw; background: linear-gradient(to right, transparent, rgba(5, 9, 13, .72) 18%); pointer-events: none; }
.cl-card { pointer-events: auto; width: 100%; max-height: 94vh; overflow: auto; background: #f4f5f2; color: #14171a; border-radius: 22px; padding: 3.2vh 2.6vw; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); font-size: clamp(16px, 1.25vw, 24px); line-height: 1.45; }
.cl-top { display: flex; justify-content: space-between; font-weight: 700; color: #6b727a; font-size: .8em; }
.cl-brand { display: flex; align-items: center; gap: 8px; color: #14171a; font-weight: 720; letter-spacing: -0.02em; }
.cl-brand svg { height: 1.2em; width: auto; display: block; }
.cl-brand .bl-dot { fill: #e5341d; }
.cl-place { margin-top: 2.2vh; font-weight: 720; color: #e5341d; font-size: 1.05em; }
.cl-title { margin: .4vh 0 0; font-size: clamp(30px, 2.9vw, 60px); line-height: 1.06; font-weight: 720; letter-spacing: -0.02em; text-wrap: balance; }
.cl-what { margin: 1.6vh 0 0; color: #474d54; }
.cl-h { margin: 2.6vh 0 .8vh; font-size: .78em; font-weight: 720; color: #6b727a; }
.cl-told { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2vh; }
.cl-told li { padding-left: 14px; border-left: 3px solid #d0d3cf; }
.cl-o { display: block; font-weight: 720; font-size: .8em; }
.cl-o em { font-style: normal; font-weight: 500; color: #6b727a; }
.cl-q { margin: 0; padding-left: 1.3em; display: grid; gap: .8vh; }
.cl-keys { margin: 2.4vh 0 0; font-size: .7em; color: #8c959e; }
body.classmode .topbar, body.classmode .bottom-nav, body.classmode .left, body.classmode .right, body.classmode .ticker, body.classmode .mobile-tabs, body.classmode .toasts, body.classmode .view, body.classmode .maplibregl-ctrl-bottom-right { display: none !important; }
.cl-pin { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.cl-pin span { width: 18px; height: 18px; border-radius: 50%; background: #e5341d; box-shadow: 0 0 0 8px rgba(229, 52, 29, .3), 0 0 30px rgba(229, 52, 29, .8); }
.cl-pin b { font: 720 clamp(22px, 2vw, 40px)/1 'Schibsted Grotesk', sans-serif; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); white-space: nowrap; }
@media (max-width: 960px) { .classroom { width: 100%; align-items: flex-end; background: none; padding: 12px; } .cl-card { max-height: 62vh; } }

/* translations are always labelled */
.tr-note { display: block; margin-top: 4px; font-size: .74em; font-weight: 500; color: var(--ink-3); }
.swp .tr-note { color: #8c959e; font-size: 13px; margin-top: 10px; }
/* calmer globe behind the reading views */
body:not([data-view="map"]) #map { filter: saturate(.55) brightness(.75); }
/* the swipe feed follows the light theme too */
:root[data-theme="light"] .swipe, :root[data-theme="light"] .swp, :root[data-theme="light"] .swp.end { background: var(--paper); color: var(--ink-1); }
:root[data-theme="light"] .sw-title { color: var(--ink-1); }
:root[data-theme="light"] .sw-sum { color: var(--ink-2); }
:root[data-theme="light"] .swipe-x { color: var(--ink-1); background: rgba(0, 0, 0, .06); }
:root[data-theme="light"] .swp .btn { background: var(--ink-1); color: var(--paper) !important; }
:root[data-theme="light"] .swp .btn.ghost { background: transparent; color: var(--ink-1) !important; box-shadow: inset 0 0 0 1.5px var(--rule-2); }
:root[data-theme="light"] .swp .weight.notable, :root[data-theme="light"] .swp .weight.minor { color: var(--ink-1); }
:root[data-theme="light"] .sw-new { background: var(--ink-1); color: var(--paper); }
.swipe-count { font-size: 16px; }
.sw-hint { font-size: 15px; }
.sw-next { margin-top: 14px; font-size: 15px; font-weight: 700; color: inherit; opacity: .7; padding: 8px 0; }
.chip.on::before { content: '✓ '; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .swipe, :root:not([data-theme="dark"]) .swp, :root:not([data-theme="dark"]) .swp.end { background: var(--paper); color: var(--ink-1); }
  :root:not([data-theme="dark"]) .sw-title { color: var(--ink-1); }
  :root:not([data-theme="dark"]) .sw-sum { color: var(--ink-2); }
  :root:not([data-theme="dark"]) .swipe-x { color: var(--ink-1); background: rgba(0, 0, 0, .06); }
  :root:not([data-theme="dark"]) .swp .btn { background: var(--ink-1); color: var(--paper) !important; }
  :root:not([data-theme="dark"]) .swp .btn.ghost { background: transparent; color: var(--ink-1) !important; box-shadow: inset 0 0 0 1.5px var(--rule-2); }
  :root:not([data-theme="dark"]) .swp .weight.notable, :root:not([data-theme="dark"]) .swp .weight.minor { color: var(--ink-1); }
  :root:not([data-theme="dark"]) .sw-new { background: var(--ink-1); color: var(--paper); }
}

.mini.strong { background: var(--ink-1); color: var(--paper) !important; box-shadow: none; }

/* simple map */
.map-mode { position: absolute; top: 72px; left: 16px; z-index: 7; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(8, 14, 20, .82); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }
.map-mode button { height: 34px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: #9aa7b2; }
.map-mode button.on { background: rgba(255, 255, 255, .16); color: #fff; }
body.map-simple .left, body.map-simple .right, body.map-simple .ticker, body.map-simple .prices, body.map-simple .mobile-tabs, body.map-simple .health, body.map-simple #tourBtn { display: none !important; }
body:not(.map-simple) .map-mode { top: 72px; left: calc(var(--side) + 28px); }
.spin { display: flex; align-items: center; gap: 8px; padding: 0; max-width: 260px; text-align: left; cursor: pointer; }
.spin i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #eef0f2; box-shadow: 0 0 0 4px rgba(238, 240, 242, .2); }
.spin.hot i { background: #ff5a40; box-shadow: 0 0 0 5px rgba(255, 90, 64, .25); }
.spin span { font: 700 14px/1.25 'Schibsted Grotesk', system-ui, sans-serif; color: #fff; background: rgba(10, 14, 18, .82); padding: 6px 10px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.spin.small span { display: none; }
.spin:hover span, .spin:focus span { display: block; background: #fff; color: #14171a; }
@media (max-width: 960px) { .map-mode { top: calc(64px + env(safe-area-inset-top)); left: 12px; } body:not(.map-simple) .map-mode { left: 12px; top: auto; bottom: calc(118px + env(safe-area-inset-bottom)); } .spin { max-width: 190px; } .spin span { font-size: 13px; } }

/* while you were away */
.away { margin-bottom: 22px; padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--onair) 8%, var(--card)); box-shadow: var(--shadow); }
.away .follow-list li { cursor: pointer; }

/* money strip */
.money-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 2px 0; font-size: .86em; color: var(--ink-2); }
.money-strip:empty { display: none; }
.money-strip i { font-style: normal; font-weight: 700; }
.money-strip i.up { color: var(--calm); } .money-strip i.down { color: var(--onair); }

.spin.crowd span { display: none; }
.spin.crowd:hover span { display: block; }

/* swipe: next button sits at the bottom, headline gets the full width */
.swp .sw-next { position: absolute; left: 0; right: 0; bottom: calc(52px + env(safe-area-inset-bottom)); text-align: center; }
.swipe-bar { background: linear-gradient(to bottom, rgba(0,0,0,.25), transparent); }
.seen-first { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; font-size: .78em; font-weight: 700; background: color-mix(in srgb, var(--calm) 14%, transparent); color: var(--calm); }

body.classmode .map-mode, body.classmode .spin, body.classmode .note { display: none !important; }
.cl-o { font-size: .9em; }

/* light globe */
body.map-light #map { background: radial-gradient(ellipse 70% 60% at 50% 50%, #ffffff, #e9edef 70%); }
body.map-light #map::before { display: none; }
body.map-light .vignette { background: none !important; }
body.map-light:not([data-view="map"]) #map { filter: none; }
body.map-light[data-view="map"] .topbar { background: var(--paper); border-bottom: 1px solid var(--rule); backdrop-filter: none; }
body.map-light[data-view="map"] .brand-logo { color: var(--ink-1); }
body.map-light[data-view="map"] .views button { color: var(--ink-2); }
body.map-light[data-view="map"] .views button.on { background: var(--card); color: var(--ink-1); }
body.map-light[data-view="map"] .tool, body.map-light[data-view="map"] .clock { color: var(--ink-2); }
body.map-light[data-view="map"] .search input { background: var(--card); color: var(--ink-1); border-color: var(--rule-2); }
body.map-light .map-mode { background: var(--card); border-color: var(--rule-2); }
body.map-light .map-mode button { color: var(--ink-2); }
body.map-light .map-mode button.on { background: var(--ink-1); color: var(--paper); }
body.map-light .spin i { background: #4c5862; box-shadow: 0 0 0 4px rgba(76, 88, 98, .2); }
body.map-light .spin.hot i { background: #e5341d; }
body.map-light .spin span { background: rgba(255, 255, 255, .94); color: #14171a; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }

.leadc .card-foot { flex-wrap: wrap; row-gap: 8px; }
.money-strip { margin-bottom: 10px; }

/* On the roads: NWS driving advisories for your state and its neighbours */
.roads { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.roads h3 { margin: 0 0 6px; font-size: .82em; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.roads h3 .src, .roads .src { font-weight: 500; color: var(--ink-3); font-size: .92em; }
.roads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.roads li { display: grid; grid-template-columns: minmax(0, auto) 1fr; gap: 2px 10px; align-items: baseline; font-size: .92em; }
.roads li b { white-space: nowrap; }
.roads li span { color: var(--ink-2); font-size: .92em; }
.roads li.hot b { color: var(--onair); }
.roads li.home b::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; }
.roads.calm p { margin: 0; color: var(--calm); font-size: .9em; }
@media (max-width: 420px) { .roads li { grid-template-columns: 1fr; } }
.early.hwatch li.mine b { color: var(--onair); }
.early.hwatch .hw-where { font-weight: 500; color: var(--ink-2); }
.wide-tag { font-style: normal; font-size: .9em; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 999px; padding: 0 6px; }

/* Called it: three calls a day on real stories */
.callit { background: var(--card); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.callit .sec-head { margin-bottom: 4px; }
.ci-dead { margin: 0 0 12px; color: var(--ink-3); font-size: .86em; }
.ci-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: ci; }
.ci-q { padding: 14px 0; border-top: 1px solid var(--rule); counter-increment: ci; display: grid; gap: 8px; }
.ci-story { all: unset; cursor: pointer; font-weight: 720; font-size: 1.02em; line-height: 1.25; color: var(--ink-1); }
.ci-story::before { content: counter(ci); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; font-size: .72em; background: var(--ink-1); color: var(--paper); vertical-align: 2px; }
.ci-q:has(.ci-opts.duel) .ci-text::before { content: counter(ci); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; font-size: .72em; font-weight: 720; background: var(--ink-1); color: var(--paper); vertical-align: 2px; }
.ci-story:hover { text-decoration: underline; }
.ci-story:focus-visible, .ci-opt:focus-visible { outline: 2px solid var(--onair); outline-offset: 2px; }
.ci-text { margin: 0; color: var(--ink-2); font-size: .92em; }
.ci-live { color: var(--ink-3); white-space: nowrap; }
.ci-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.ci-opts.duel { display: grid; grid-template-columns: 1fr 1fr; }
.ci-opt { min-height: 44px; padding: 8px 18px; border-radius: 12px; font-weight: 700; font-size: .92em; color: var(--ink-1); box-shadow: inset 0 0 0 1.5px var(--rule-2); text-align: left; display: grid; gap: 2px; }
.ci-opts:not(.duel) .ci-opt { min-width: 92px; text-align: center; border-radius: 999px; }
.ci-opt small { font-weight: 500; color: var(--ink-3); font-size: .82em; }
.ci-opt:not([disabled]):hover { box-shadow: inset 0 0 0 2px var(--ink-1); }
.ci-opt.picked { background: var(--ink-1); color: var(--paper); box-shadow: none; }
.ci-opt.picked small { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.ci-opt.right { box-shadow: inset 0 0 0 2px var(--calm); }
.ci-opt.picked.right { background: var(--calm); color: #fff; }
.ci-opt[disabled] { cursor: default; }
.ci-opt[disabled]:not(.picked):not(.right) { opacity: .55; }
.ci-lock { margin: 0; font-size: .8em; color: var(--ink-3); }
.ci-v { font-size: .86em; font-weight: 700; color: var(--ink-2); }
.ci-v.ok { color: var(--calm); }
.ci-v.no { color: var(--onair); }
.ci-v.void { font-weight: 500; color: var(--ink-3); }
.ci-prev { margin: 4px 0 0; font-size: .86em; color: var(--ink-2); }
.ci-room { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ink-1) 5%, var(--card)); }
.ci-room-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ci-room-head span { color: var(--ink-3); font-size: .82em; letter-spacing: .04em; }
.ci-room-head .mini { margin-left: auto; }
.ci-board { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: rank; }
.ci-board li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: baseline; font-size: .92em; counter-increment: rank; }
.ci-board li::before { content: counter(rank); color: var(--ink-3); font-size: .85em; }
.ci-board li.me span { font-weight: 720; }
.ci-board b { font-variant-numeric: tabular-nums; }
.ci-board i { font-style: normal; color: var(--ink-3); font-size: .85em; font-variant-numeric: tabular-nums; }
.ci-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.callit .fine { margin: 12px 0 0; }
.ci-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink-1); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .9em; z-index: 99; }
@media (max-width: 420px) { .ci-opts.duel { grid-template-columns: 1fr; } .callit { padding: 18px 16px; } }
.early.hwatch li.hw-calm { border-left-color: var(--calm); color: var(--calm); font-size: .9em; }
/* light map on phones: nav, tabs and zoom follow the paper look */
@media (max-width: 760px) {
  body.map-light[data-view="map"] .bottom-nav { background: var(--paper); border-top-color: var(--rule); }
  body.map-light[data-view="map"] .bottom-nav button { color: var(--ink-3); }
  body.map-light[data-view="map"] .bottom-nav button.on { color: var(--ink-1); }
  body.map-light[data-view="map"] .mobile-tabs { background: color-mix(in srgb, var(--card) 92%, transparent); border-color: var(--rule-2); }
  body.map-light[data-view="map"] .mobile-tabs button { color: var(--ink-2); }
  body.map-light[data-view="map"] .mobile-tabs button.on { background: var(--ink-1); color: var(--paper); }
}
body.map-light .maplibregl-ctrl-group { background: var(--card); border-color: var(--rule-2); }
body.map-light .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: none; }
/* your routes (I-35 …) inside Following */
.follow-block.route h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.route-states { font-size: .78em; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.roads-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.roads-list li { display: grid; gap: 2px; padding-left: 12px; border-left: 3px solid var(--rule-2); }
.roads-list li.hot { border-left-color: var(--onair); }
.roads-list li.hot b { color: var(--onair); }
.roads-list span { font-size: .86em; color: var(--ink-2); }
.follow-block.route .calm-line { margin: 6px 0 0 !important; }
.follow-block.route .fine { margin-top: 8px !important; }
/* Called it v2: chip under the hero, invite and settle cards, crowd split */
.ci-chip { display: inline-flex; align-items: center; min-height: 44px; margin: 10px 0 0 8px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: .9em; color: var(--ink-1); box-shadow: inset 0 0 0 1.5px var(--rule-2); vertical-align: top; }
.ci-chip.hot { box-shadow: inset 0 0 0 2px var(--calm); color: var(--calm); }
@media (max-width: 520px) { .ci-chip { margin-left: 0; } }
.ci-invite { display: grid; gap: 10px; margin: 6px 0 14px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--calm) 10%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--calm) 45%, transparent); }
.ci-invite p { margin: 0; }
.ci-invite label { display: grid; gap: 6px; font-size: .86em; font-weight: 700; color: var(--ink-2); }
.ci-invite input { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--rule-2); background: var(--card); color: var(--ink-1); font: inherit; font-size: 1rem; }
.ci-invite .btn { justify-self: start; }
.ci-reveal { display: grid; gap: 8px; margin: 6px 0 14px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ink-1) 6%, var(--card)); }
.ci-grid { font-size: 1.6em; letter-spacing: .12em; }
.ci-reveal .ci-acts { margin-top: 2px; align-items: center; }
.ci-crowd { margin: 0; font-size: .82em; color: var(--ink-2); display: grid; gap: 4px; }
.ci-crowd span { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink-1) var(--p), var(--rule-2) var(--p)); }
.ci-crowd i { font-style: normal; color: var(--ink-3); }
.roads.warn p, .roads.warn h3 { color: var(--onair); }
.roads.grid p, .roads.mytools p { margin: 0; font-size: .9em; }
.roads.calm.grid p, .roads.calm.mytools p { color: var(--calm); }
.legend { margin: -4px 0 14px; font-size: .86em; color: var(--ink-2); }
.legend summary { cursor: pointer; color: var(--ink-3); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.legend dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.legend dt { font-weight: 720; }
.legend dt.major { color: var(--onair); } .legend dt.over { color: var(--calm); }
.legend dd { margin: 0; }

/* classroom: on-screen controls for tablets, readable key hints */
.cl-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cl-btn { min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 720; font-size: 1rem; background: var(--ink-1); color: var(--paper); }
.cl-btn.ghost { background: transparent; color: var(--ink-1); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.cl-btn[disabled] { opacity: .35; }
.classmode .cl-keys { font-size: 15px !important; }
.mk i.flat { color: var(--ink-3); font-style: normal; }
.mk .asof { color: var(--ink-3); font-weight: 500; font-size: .82em; }
/* the classroom card is always light: give its buttons fixed dark ink */
.cl-card .cl-btn { background: #14171a; color: #fff; }
.cl-card .cl-btn.ghost { background: transparent; color: #14171a; box-shadow: inset 0 0 0 1.5px rgba(20, 23, 26, .3); }
.cl-card .cl-btn[disabled] { opacity: .3; }
/* class game on the projector (the card is always light) */
.cg .cg-join { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; margin: 10px 0 18px; padding: 18px 22px; border-radius: 16px; background: #14171a; color: #fff; }
.cg .cg-join span { display: block; font-size: 14px; opacity: .7; }
.cg .cg-join b { font-size: clamp(18px, 2.2vw, 28px); font-weight: 720; word-break: break-all; }
.cg .cg-code { font-size: clamp(40px, 6vw, 72px); font-weight: 760; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.cg .cg-n { text-align: center; }
.cg .cg-n b { display: block; font-size: 40px; }
.cg .cg-qs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; counter-reset: q; }
.cg .cg-qs li { counter-increment: q; padding: 12px 0 0; border-top: 1px solid rgba(20, 23, 26, .12); }
.cg .cg-head { margin: 0; font-weight: 720; font-size: clamp(16px, 1.6vw, 22px); color: #14171a; }
.cg .cg-head::before { content: counter(q) '. '; color: #e5341d; }
.cg .cg-head i { font-style: normal; font-weight: 600; color: #6b7480; }
.cg .cg-q { margin: 4px 0 6px; color: #3d454d; }
.cg .cg-split { display: grid; gap: 6px; font-size: 15px; color: #3d454d; }
.cg .cg-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; font-weight: 720; font-size: 14px; }
.cg .cg-bar span { display: flex; align-items: center; padding: 0 10px; white-space: nowrap; background: #e3e6e8; color: #14171a; flex: 1; }
.cg .cg-bar span:first-child { background: #14171a; color: #fff; flex: none; }
.cg .cg-board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.cg .cg-board li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: #e9ecee; font-weight: 700; color: #14171a; }
.cg .cg-start { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 12px 0; }
.cg .cg-start label { display: grid; gap: 6px; font-weight: 700; color: #3d454d; }
.cg .cg-start input { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid rgba(20, 23, 26, .25); font: inherit; font-size: 18px; }
@media (max-width: 700px) { .cg .cg-join { grid-template-columns: 1fr; } }
.ci-region { font-size: .78em; font-weight: 720; color: var(--calm); }

.legend summary { color: var(--ink-1); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.legend summary::-webkit-details-marker { display: none; }
.legend summary::before { content: '▸'; display: inline-block; margin-right: 6px; transition: transform .15s; }
.legend[open] summary::before { transform: rotate(90deg); }
:root[data-size="l"] { --fs: 20px; }
:root[data-size="xl"] { --fs: 23px; }
:root[data-size="l"] .fine, :root[data-size="xl"] .fine, :root[data-size="l"] .sec-note, :root[data-size="xl"] .sec-note { font-size: .9em !important; }
/* class game join panel: the link on its own row, the code big below it */
.cg .cg-join { grid-template-columns: 1fr auto; grid-template-areas: "link link" "code n"; row-gap: 10px; }
.cg .cg-join > div:first-child { grid-area: link; }
.cg .cg-join .cg-code { grid-area: code; }
.cg .cg-join .cg-n { grid-area: n; }
.cg .cg-join b { word-break: normal; overflow-wrap: anywhere; }

.ci-opt.ci-right { box-shadow: inset 0 0 0 2px var(--calm); }
.ci-opt.picked.ci-right { background: var(--calm); color: #fff; }
.ci-friends { margin: 0; font-size: .84em; color: var(--ink-2); }
.ci-friends b { color: var(--ink-1); }
.ci-beat { font-size: .9em; font-weight: 700; color: var(--ink-2); }
.ci-chip { white-space: nowrap; }
@media (max-width: 420px) { .ci-chip { white-space: normal; } }
.mk i { white-space: nowrap; }
.muted-note { margin: 0 0 8px; font-size: .86em; color: var(--ink-3); }

/* class game: readable from the back of the room */
.cg .cl-h { font-size: 16px !important; color: #3d454d !important; }
.cg .cg-q { font-size: 18px; }
.cg .cg-split { font-size: 17px; }
.cg .cg-board li { font-size: 17px; align-items: center; gap: 8px; }
.cg .cg-x { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; color: #6b7480; font-size: 18px; line-height: 1; }
.cg .cg-x:hover { background: #d9dde0; color: #14171a; }
.mk i.flat { white-space: normal; }
@media (max-width: 420px) { .mk li { grid-template-columns: minmax(0, 1fr) auto auto; } .mk i { font-size: .82em; } }
.cg .cg-timer { margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; background: #e3f3ea; color: #14171a; font-size: 18px; }
.cg .cg-timer b { font-size: 28px; color: #1d7a52; }
.ci-class { margin: 4px 0 16px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--calm) 9%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--calm) 40%, transparent); }
.ci-class h3 { margin: 0 0 4px; font-size: 1em; }
.mk li { grid-template-columns: minmax(0, 1fr) auto auto; }
.wide-tag { white-space: nowrap; }
.timeline .nc { font-style: normal; font-weight: 500; font-size: .8em; color: var(--muted, #888); }
.sh-credit { margin: 4px 0 0; }

.wx-days { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 8px; font-size: .92em; color: var(--ink-2); }
.wx-days span.wet { color: var(--ink-1); font-weight: 600; }
.wx-days small { flex-basis: 100%; font-size: .78em; opacity: .75; }
.get-alerts.quiet { opacity: .45; filter: saturate(.3); }
.know { margin: 4px 0 6px; padding-left: 18px; line-height: 1.45; }
.know li { margin: 4px 0; }

.cg-qr { width: 132px; height: 132px; flex: none; background: #fff; border-radius: 10px; padding: 4px; }
.cg-qr:empty { display: none; }
.cg-qr svg { width: 100%; height: 100%; display: block; }
.cg-cta { display: flex; align-items: center; gap: 16px; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: rgba(229, 52, 29, .08); }
.cg-cta p { margin: 0; flex: 1; font-size: 1.05em; }
.cg-cta .cl-btn { flex: none; }
.timeline small.later { display: block; opacity: .7; font-size: .85em; margin-top: 2px; }
.route-gap { margin: 4px 0 8px; font-size: .9em; color: var(--warn, #b45309); }

/* swipe cards: progress, and the outlet count as the card's anchor */
.sw-prog { display: flex; gap: 4px; margin-bottom: 28px; }
.sw-prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.sw-prog i.on { background: rgba(255, 255, 255, .85); }
.sw-count { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.sw-count b { font-size: clamp(64px, 19vw, 112px); font-weight: 720; line-height: .82; letter-spacing: -0.028em; color: #fff; font-variant-numeric: tabular-nums; }
.swp.major .sw-count b, .swp.big .sw-count b { color: #ff5a40; }
.sw-count span { font-size: 14px; font-weight: 700; line-height: 1.25; color: #9aa3ab; padding-bottom: 4px; }
.sw-place { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-style: normal; color: #c4cbd2; }
:root[data-theme="light"] .sw-prog i { background: rgba(0, 0, 0, .12); }
:root[data-theme="light"] .sw-prog i.on { background: var(--ink-1); }
:root[data-theme="light"] .sw-count b { color: var(--ink-1); }
:root[data-theme="light"] .sw-place { color: var(--ink-2); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sw-prog i { background: rgba(0, 0, 0, .12); }
  :root:not([data-theme="dark"]) .sw-prog i.on { background: var(--ink-1); }
  :root:not([data-theme="dark"]) .sw-count b { color: var(--ink-1); }
  :root:not([data-theme="dark"]) .sw-place { color: var(--ink-2); }
}
.cg-qr { width: 220px; height: 220px; }

/* class view on a student's phone */
.student-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(229, 52, 29, .08); font-weight: 600; }
body.student #moneyStrip, body.student #following, body.student #esNews, body.student .two, body.student #earlyWrap, body.student #healthWrap, body.student #homeNews, body.student #nearYou { display: none !important; }
.related { font-size: .9em; opacity: .85; }
.related a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* phones: one labelled pin, the rest as dots; labels never run off the screen */
@media (max-width: 600px) {
  .spin:not(.first) span { display: none; }
  .spin span { max-width: 44vw; font-size: 13px; }
}
.leadc-local { margin: 8px 0 0; font-weight: 600; color: var(--ok, #2f855a); }
.spin.first { z-index: 5; }
/* class view: the map, alerts, following and sharing aren't part of a lesson on a student's phone */
body.student [data-view-btn="map"], body.student [data-view-btn="alerts"], body.student .get-alerts, body.student .sh-acts [data-follow], body.student [data-share-story], body.student [data-share-image], body.student [data-act="share"], body.student [data-act="map"], body.student [data-map], body.student #shareSite { display: none !important; }
.card-meta .cty { font-weight: 700; }
.corridors { margin: 2px 0 8px; font-weight: 700; }
.neutral-line { margin: 6px 0; color: var(--ink-2, #9aa3ab); }
.roads .fine.dim, .roads.warn .fine { color: var(--ink-3, #8c959e) !important; }
.roads.warn p.corridors { color: var(--ink-1); }
.roads.warn p.follow-none { color: var(--ink-2, #9aa3ab); }

/* a followed TfL line: live status */
.follow-status { margin: 4px 0 10px; line-height: 1.4; }
.follow-status b { font-weight: 700; }
.follow-status.bad b { color: var(--watch); }
.follow-status.ok b { color: var(--calm); }
.follow-status span { color: var(--ink-3); font-size: .92em; }

/* large text reaches the controls too: bottom tabs, swipe buttons and lines, card buttons, menus */
:root[data-size="l"] .bottom-nav button { font-size: 14px; }
:root[data-size="xl"] .bottom-nav button { font-size: 16px; }
:root[data-size="xl"] .bottom-nav { height: calc(70px + env(safe-area-inset-bottom)); }
:root[data-size="xl"] .bottom-nav svg { width: 27px; height: 27px; }
:root[data-size="l"] .sw-ol, :root[data-size="l"] .sw-kick, :root[data-size="l"] .sw-hint { font-size: 16px; }
:root[data-size="xl"] .sw-ol, :root[data-size="xl"] .sw-kick, :root[data-size="xl"] .sw-hint { font-size: 18px; }
:root[data-size="xl"] .sw-sum { font-size: 21px; }
:root[data-size="xl"] .sw-acts .btn { min-height: 52px; font-size: 19px; padding: 0 22px; }
:root[data-size="xl"] .mini { min-height: 44px; font-size: .86em; padding: 0 16px; }
:root[data-size="xl"] select { font-size: 19px !important; height: 48px !important; }

/* ===== For you: chips, photo cards, picker ===== */
body[data-feed="fy"] #nowView .now-inner > :not(.fy-chips):not(.fy):not(.fy-search):not(.home-title), body[data-feed="saved"] #nowView .now-inner > :not(.fy-chips):not(.fy):not(.fy-search) { display: none !important; }
.fy-chips { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -28px -40px 18px; padding: 12px 40px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.fy-chips::-webkit-scrollbar { display: none; }
.fy-chip { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-2); white-space: nowrap; }
.fy-chip.on { background: var(--ink-1); color: var(--paper); box-shadow: none; }
.fy-chip.add { color: var(--ink-3); box-shadow: inset 0 0 0 1px dashed var(--rule-2); border: 1px dashed var(--rule-2); box-shadow: none; }
.fy-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 12px; }
.fy-sec h2 { font-size: 26px; font-weight: 720; letter-spacing: -0.02em; margin: 0; }
.fy-more { font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.fy-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.fy-card { display: grid; color: inherit; text-decoration: none; border-radius: 16px; background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.fy-card:focus-visible { outline: 3px solid var(--ink-1); outline-offset: 2px; }
.fy-img { position: relative; background: var(--rule); overflow: hidden; }
.fy-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fy-credit { position: absolute; right: 8px; bottom: 6px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .45); padding: 1px 6px; border-radius: 6px; }
.fy-body { padding: 14px 16px 15px; display: grid; gap: 6px; align-content: start; }
.fy-k { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.fy-card h3 { margin: 0; font-weight: 720; letter-spacing: -0.02em; text-wrap: pretty; }
.fy-m { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-3); }
.fy-who { font-weight: 600; color: var(--ink-2); }
.fy-one { font-weight: 700; color: var(--watch); }
.fy-card.big .fy-img { aspect-ratio: 16 / 9; }
.fy-card.big h3 { font-size: 22px; line-height: 1.18; }
.fy-card.row { grid-template-columns: 1fr 104px; }
.fy-card.row .fy-img { grid-column: 2; grid-row: 1; margin: 12px 12px 12px 0; border-radius: 12px; aspect-ratio: 1; height: auto; align-self: start; }
.fy-card.row .fy-credit { display: none; }
.fy-card.row .fy-body { grid-column: 1; grid-row: 1; }
.fy-card.row h3 { font-size: 17px; line-height: 1.25; }
.fy-card.noimg { grid-template-columns: 1fr; }
.fy-card.live { box-shadow: inset 4px 0 0 var(--onair), var(--shadow); }
.fy-card.live .fy-k { color: var(--onair); }
.fy-near { margin: 0 0 26px; padding: 14px 16px; border-radius: 16px; background: var(--card); display: grid; gap: 8px; }
.fy-near-row { display: grid; gap: 2px; }
.fy-near-row b { font-size: 13px; color: var(--ink-3); }
.fy-near-row span { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fy-near .fy-more { justify-self: start; }
.fy-empty { color: var(--ink-3); margin: 10px 0 30px; }
.fy-pick h2 { font-size: 30px; font-weight: 720; letter-spacing: -0.022em; margin: 4px 0 6px; }
.fy-pick > p { color: var(--ink-2); margin: 0 0 18px; }
.fy-pick h3 { font-size: 15px; font-weight: 720; margin: 22px 0 10px; color: var(--ink-2); }
.fy-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fy-tile { text-align: left; display: grid; gap: 3px; padding: 13px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--rule-2); min-height: 64px; }
.fy-tile b { font-size: 16px; font-weight: 720; color: var(--ink-1); }
.fy-tile span { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.fy-tile.on { background: var(--ink-1); box-shadow: none; }
.fy-tile.on b { color: var(--paper); }
.fy-tile.on span { color: var(--paper); opacity: .75; }
.fy-follow { display: flex; gap: 8px; }
.fy-follow input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1.5px solid var(--rule-2); background: var(--card); color: var(--ink-1); padding: 0 14px; font: inherit; }
.fy-followed { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fy-followed span { padding: 4px 10px; border-radius: 999px; background: var(--card); font-weight: 600; font-size: 14px; }
.fy-pick-go { position: sticky; bottom: 0; padding: 18px 0 22px; background: linear-gradient(transparent, var(--paper) 30%); margin-top: 14px; }
.fy-pick-go .btn { width: 100%; min-height: 52px; font-size: 17px; }
.fy-pick-go .btn[disabled] { opacity: .4; }
@media (max-width: 960px) {
  .fy-chips { margin: -22px -18px 16px; padding: 10px 18px; }
  .fy-card.big h3 { font-size: 21px; }
  .fy-tiles { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 600px) and (max-width: 960px) { .fy-chips { margin: -28px -36px 18px; padding: 12px 36px; } }
:root[data-size="xl"] .fy-card.row h3 { font-size: 20px; }
:root[data-size="xl"] .fy-card.big h3 { font-size: 25px; }
:root[data-size="xl"] .fy-m, :root[data-size="xl"] .fy-k { font-size: 16px; }

/* ===== Alerts: what can alert you, per category ===== */
.push.top { margin-top: 20px; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.push.top .btn.big { width: 100%; }
.ac-group { margin-top: 22px; }
.ac-group h3 { margin: 0 0 4px; font-size: 15px; font-weight: 720; color: var(--ink-2); }
.ac-note { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-3); }
.ac-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.ac-name { display: grid; gap: 2px; min-width: 0; }
.ac-name b { font-size: 16px; font-weight: 700; }
.ac-name span { font-size: 13px; color: var(--ink-3); }
.ac-row.is-off .ac-name b { color: var(--ink-3); }
.ac-seg { flex: none; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--rule); }
.ac-seg button { height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.ac-seg button.on { background: var(--card); color: var(--ink-1); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.ac-seg button[data-v="breaking"]::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.ac-seg button.on.breaking::before { background: var(--onair); }
.ac-seg button.on.all { background: var(--ink-1); color: var(--paper); }
.ac-seg button:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 1px; }
.ac-more { margin-top: 22px; }
.ac-more summary { cursor: pointer; font-weight: 720; font-size: 16px; padding: 12px 0; list-style: none; color: var(--ink-1); }
.ac-more summary::-webkit-details-marker { display: none; }
.ac-more summary::after { content: ' ▾'; color: var(--ink-3); }
.ac-more[open] summary::after { content: ' ▴'; }
@media (max-width: 520px) {
  .ac-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .ac-seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .ac-seg button { justify-content: center; }
}
:root[data-size="xl"] .ac-name b { font-size: 19px; }
:root[data-size="xl"] .ac-seg button { height: 44px; font-size: 16px; }
/* recent alerts: interest stories carry their outlet's photo */
.h-item.has-img { grid-template-columns: 74px 1fr 72px; }
.h-item.has-img > div { grid-column: 2; grid-row: 1; }
.h-thumb { grid-column: 3; grid-row: 1; width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
@media (max-width: 520px) { .h-item.has-img { grid-template-columns: 56px 1fr 64px; } .h-thumb { width: 64px; height: 64px; } }

/* ===== live scores strip ===== */
.fy-scores { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -40px 24px; padding: 2px 40px 4px; align-items: stretch; }
.fy-scores::-webkit-scrollbar { display: none; }
.sc { flex: none; width: 168px; padding: 11px 12px 10px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); color: inherit; text-decoration: none; display: grid; gap: 6px; align-content: start; }
.sc.mine { box-shadow: inset 0 0 0 1.5px var(--ink-3), var(--shadow); }
.sc-h { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.sc-h > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.sc-live { color: var(--onair); display: inline-flex; align-items: center; gap: 5px; }
.sc-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--onair); }
.sc-t { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.sc-t img, .sc-t i { width: 22px; height: 22px; object-fit: contain; }
.sc-t b { font-variant-numeric: tabular-nums; font-size: 17px; color: var(--ink-2); }
.sc-t.win, .sc-t.win b, .sc.live .sc-t, .sc.live .sc-t b { color: var(--ink-1); }
.sc-solo { font-weight: 700; font-size: 14px; line-height: 1.25; }
.sc-src { flex: none; align-self: end; font-size: 11px; color: var(--ink-3); padding: 0 6px 6px 2px; }
@media (max-width: 960px) { .fy-scores { margin: 0 -18px 22px; padding: 2px 18px 4px; } }
@media (min-width: 600px) and (max-width: 960px) { .fy-scores { margin: 0 -36px 24px; padding: 2px 36px 4px; } }

/* ===== For you, editorial pass: no card kit. A broadcast-style lead, open rows, one red dot for live ===== */
.fy-grid { gap: 0; margin-bottom: 34px; }
.fy-card { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.fy-card.row { padding: 16px 0; border-top: 1px solid var(--rule); grid-template-columns: 1fr 96px; gap: 14px; }
.fy-grid > .fy-card.row:first-child { border-top: 0; padding-top: 4px; }
.fy-card.row .fy-img { margin: 2px 0 0; border-radius: 10px; }
.fy-card.row .fy-body, .fy-card.big .fy-body { padding: 0; }
.fy-card.row h3 { font-size: 17.5px; line-height: 1.24; font-weight: 750; letter-spacing: -0.015em; }
.fy-card.big { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.fy-grid > .fy-card.big:first-child { border-top: 0; padding-top: 4px; }
.fy-card.big .fy-img { border-radius: 14px; margin-bottom: 12px; }
.fy-card.big h3 { font-size: 23px; line-height: 1.14; letter-spacing: -0.025em; }
.fy-card.noimg { grid-template-columns: 1fr; }
.fy-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fy-k { font-size: 12.5px; letter-spacing: 0; }
.fy-m { font-size: 12.5px; margin-top: 2px; }
.fy-card.live { box-shadow: none; }
.fy-card.live .fy-k { color: var(--onair); }
.fy-card.live .fy-k::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--onair); margin-right: 6px; vertical-align: 1px; }
/* the lead: the photo is the page, the headline sits on it */
.fy-card.hero { position: relative; display: block; margin: 0 0 6px; border-radius: 18px; overflow: hidden; background: #000; isolation: isolate; }
.fy-card.hero .fy-img { aspect-ratio: 4 / 3; border-radius: 0; }
.fy-card.hero .fy-img img { transform: scale(1.01); }
.fy-card.hero .fy-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 58%, rgba(0, 0, 0, .9) 100%); }
.fy-card.hero .fy-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 18px; gap: 8px; z-index: 1; }
.fy-card.hero h3 { font-size: 28px; line-height: 1.08; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.fy-card.hero .fy-k, .fy-card.hero .fy-m, .fy-card.hero .fy-who { color: rgba(255, 255, 255, .82); }
.fy-card.hero.live .fy-k { color: #fff; }
.fy-card.hero .fy-credit { top: 10px; bottom: auto; z-index: 2; }
.fy-sec h2 { font-size: 22px; }
.fy-sec h2.fy-onair { display: inline-flex; align-items: center; gap: 10px; }
.fy-sec h2.fy-onair::before { content: none; } /* "Right now" is a heading, not a live signal: no red dot */
.fy-near { background: none; padding: 0 0 0 14px; border-left: 3px solid var(--watch); border-radius: 0; margin: 4px 0 30px; }
.fy-skip { display: block; width: 100%; margin-top: 8px; padding: 10px; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .fy-card.hero { margin: 0 -18px 6px; border-radius: 0; }
  .fy-card.hero h3 { font-size: 27px; }
  .fy-card.row { grid-template-columns: 1fr 88px; }
}
@media (min-width: 600px) and (max-width: 960px) { .fy-card.hero { margin: 0 0 6px; border-radius: 18px; } .fy-card.hero .fy-img { aspect-ratio: 16 / 9; } .fy-card.hero h3 { font-size: 34px; } }
:root[data-theme="light"] .fy-card.hero .fy-k, :root[data-theme="light"] .fy-card.hero .fy-m { color: rgba(255, 255, 255, .85); }

/* ===== Look v2: a newsroom, not a template =====
   Paper for reading, ink for type, one red dot for live. No glowing buttons, no pill soup. */
/* header: the alerts control is a quiet outline icon; red stays for "live" */
.get-alerts { background: transparent; color: var(--ink-1); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.get-alerts:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.get-alerts.on { color: var(--ink-1); }
body[data-view="map"] .get-alerts { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
/* sections: a typographic bar with an underline, like a paper's section nav */
.fy-chips { gap: 22px; padding-top: 0; padding-bottom: 0; height: 52px; align-items: stretch; }
.fy-chip { height: auto; padding: 0; border-radius: 0; box-shadow: none; background: none; font-size: 16px; font-weight: 700; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.fy-chip:hover { color: var(--ink-1); }
.fy-chip.on { background: none; color: var(--ink-1); border-bottom-color: var(--ink-1); }
.fy-chip.add { border: 0; border-bottom: 3px solid transparent; color: var(--ink-3); font-weight: 600; }
/* bottom bar: the active tab is ink with a bar on top, not red */
.bottom-nav button.on { color: var(--ink-1); box-shadow: inset 0 3px 0 var(--ink-1); }
.bottom-nav button.on svg { color: var(--ink-1); }
body[data-view="map"] .bottom-nav button.on { color: #fff; box-shadow: inset 0 3px 0 #fff; }
body[data-view="map"] .bottom-nav button.on svg { color: #fff; }
/* scores: flat tiles on a quiet surface, live ones get the dot */
.sc { box-shadow: none; background: var(--card); border: 1px solid var(--rule); }
.sc.mine { box-shadow: none; border-color: var(--ink-1); border-width: 1.5px; }
.sc { background: var(--glass), var(--card); border-color: transparent; box-shadow: var(--rim); }
.sc.mine { box-shadow: inset 0 0 0 1.5px var(--ink-1); }
/* lead photo: a touch more space under it, so the next row breathes */
.fy-card.hero { margin-bottom: 10px; }
.fy-sec { margin-top: 2px; }
.fy-sec h2 { font-weight: 720; letter-spacing: -0.02em; }
/* the picker tiles: type first, no boxes-in-boxes */
.fy-tile { box-shadow: none; border: 1.5px solid var(--rule-2); background: transparent; }
.fy-tile.on { border-color: var(--ink-1); background: var(--ink-1); }
/* alerts board: flatter switches */
.ac-seg button.on { box-shadow: none; }
.push.top { box-shadow: none; border: 1px solid var(--rule); }
.push.top .btn.big { background: var(--ink-1); color: var(--paper); }
/* story view: the lead photo, credited */
.sh-img { margin: -6px -4px 16px; position: relative; border-radius: 14px; overflow: hidden; background: var(--rule); }
.sh-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sh-img figcaption { position: absolute; right: 8px; bottom: 6px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .45); padding: 1px 6px; border-radius: 6px; }
/* install the app */
.fy-install { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; margin: 4px 0 28px; padding: 14px 14px 14px 16px; border-radius: 14px; border: 1.5px solid var(--ink-1); }
.fy-install b { display: block; font-size: 16px; font-weight: 720; }
.fy-install span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }
.fy-install .btn { background: var(--ink-1); color: var(--paper); min-height: 40px; }
.fy-x { width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink-3); }
.fy-x:hover { color: var(--ink-1); background: var(--rule); }
/* picker: your team, by logo */
.fy-teams h4 { margin: 18px 0 8px; font-size: 14px; font-weight: 720; color: var(--ink-2); }
.fy-teamrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.fy-teamrow::-webkit-scrollbar { display: none; }
.fy-team { flex: none; width: 76px; display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 12px; border: 1.5px solid var(--rule-2); }
.fy-team img { width: 36px; height: 36px; object-fit: contain; }
.fy-team span { font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; color: var(--ink-2); }
.fy-team.on { border-color: var(--ink-1); background: var(--ink-1); }
.fy-team.on span { color: var(--paper); }
.fy-team.on img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .8)); }
@media (min-width: 961px) { .fy-teamrow { margin: 0 -40px; padding-left: 40px; padding-right: 40px; } }

/* ===== round 33 ===== */
/* near you, at the top of For you: the same card as Top news, a little tighter */
.fy-nearcard { margin: 0 0 26px; padding: 16px 18px; box-shadow: none; border: 1px solid var(--rule); }
.fy-nearcard .fy-roads { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.fy-nearcard .fy-money { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
/* the section bar says it scrolls: a soft fade at the right edge */
.fy-chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 56px; }
/* Aa: text size in one tap */
.aa-btn { height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; font-weight: 720; font-size: 15px; color: var(--ink-1); box-shadow: inset 0 0 0 1.5px var(--rule-2); margin-right: 8px; }
body[data-view="map"] .aa-btn { display: none; }
.aa-note { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink-1); color: var(--paper); font-weight: 700; padding: 10px 16px; border-radius: 999px; z-index: 50; }
/* large text reaches the small print too */
:root[data-size="l"] .fy-tile span, :root[data-size="l"] .ac-name span, :root[data-size="l"] .ac-note, :root[data-size="l"] .sc-h, :root[data-size="l"] .fy-install span, :root[data-size="l"] .set-note, :root[data-size="l"] .fy-team span { font-size: 15px; }
:root[data-size="xl"] .fy-tile span, :root[data-size="xl"] .ac-name span, :root[data-size="xl"] .ac-note, :root[data-size="xl"] .sc-h, :root[data-size="xl"] .fy-install span, :root[data-size="xl"] .set-note, :root[data-size="xl"] .fy-team span { font-size: 17px; }
:root[data-size="xl"] .fy-credit, :root[data-size="xl"] .sc-src, :root[data-size="xl"] .sh-img figcaption { font-size: 14px; }
:root[data-size="xl"] .ac-group h3, :root[data-size="xl"] .fy-pick h3 { font-size: 19px; }
:root[data-size="xl"] .fy-chip { font-size: 19px; }
:root[data-size="xl"] .sc-t { font-size: 18px; }
:root[data-size="xl"] .fy-pick-go .btn[disabled] { opacity: .55; }
.fy-pick-go .btn[disabled] { background: var(--rule-2); color: var(--ink-2); opacity: 1; }
/* score tiles grow with the text instead of clipping it */
:root[data-size="l"] .sc { width: 196px; }
:root[data-size="xl"] .sc { width: 222px; }
:root[data-size="l"] .sc-h, :root[data-size="xl"] .sc-h { flex-direction: column; gap: 2px; white-space: normal; }
/* round 34: the more-scores tile; the alert history time never wraps */
.sc-more { flex: none; align-self: stretch; padding: 0 16px; border-radius: 14px; border: 1.5px dashed var(--rule-2); font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.h-item time { white-space: nowrap; }
@media (max-width: 520px) { .h-item.has-img { grid-template-columns: 64px 1fr 60px; } .h-thumb { width: 60px; height: 60px; } }

/* near you, when all is quiet: one line, open it for the details */
.fy-near-quiet { padding: 0; }
.fy-near-quiet > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; }
.fy-near-quiet > summary::-webkit-details-marker { display: none; }
.fy-near-quiet > summary b { font-weight: 720; }
.fy-near-quiet > summary span { color: var(--ink-2); }
.fy-near-quiet > summary em { font-style: normal; font-weight: 700; color: var(--calm); margin-left: auto; }
.fy-near-quiet > summary em::after { content: ' ▾'; color: var(--ink-3); }
.fy-near-quiet[open] > summary em::after { content: ' ▴'; }
.fy-near-quiet[open] { padding-bottom: 14px; }
.fy-near-quiet[open] > :not(summary) { margin-left: 18px; margin-right: 18px; }
/* the close button always sits above the story photo, and stays reachable while scrolling */
.sheet-close { z-index: 6; background: var(--card); color: var(--ink-1); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); position: sticky; float: right; top: 10px; margin: 0 0 -44px 0; }
.sheet-close:hover { background: var(--card); color: var(--onair); }
.sh-img { clear: none; }
/* alert pop-ups never block the controls: only the card itself takes taps; on phones they sit above the tab bar */
.toasts { pointer-events: none; }
.toast { pointer-events: auto; }
@media (max-width: 960px) {
  .toasts { top: auto; bottom: calc(74px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; }
  :root[data-size="xl"] .toasts { bottom: calc(82px + env(safe-area-inset-bottom)); }
}
.sheet-close { float: none; display: block; margin: 0 0 -44px auto; }

/* a long near-you card folds; the button sits at the bottom */
.fy-fold { position: relative; max-height: 300px; overflow: hidden; display: flex; flex-direction: column; }
.fy-fold.open { max-height: none; }
.fy-fold > .fy-foldbtn { order: 99; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; padding-top: 22px; font-weight: 700; color: var(--ink-1); background: linear-gradient(transparent, var(--card) 55%); border-radius: 0 0 16px 16px; }
.fy-fold.open > .fy-foldbtn { position: static; height: auto; padding: 10px 0 0; background: none; }

/* ===== accounts ===== */
.profile-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-1); box-shadow: inset 0 0 0 1.5px var(--rule-2); margin-right: 8px; }
.profile-btn svg { width: 22px; height: 22px; }
.profile-btn.in { background: var(--ink-1); color: var(--paper); box-shadow: none; }
.pf-initial { font-weight: 720; font-size: 17px; }
body[data-view="map"] .profile-btn { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
body[data-view="map"] .profile-btn.in { background: #fff; color: #111; }
.acct-why { color: var(--ink-2); margin: 6px 0 18px; }
.acct-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.acct-tabs button { padding: 10px 0; font-weight: 700; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.acct-tabs button.on { color: var(--ink-1); border-bottom-color: var(--ink-1); }
.acct-form { display: grid; gap: 14px; }
.acct-form label { display: grid; gap: 6px; }
.acct-form label span { font-weight: 700; font-size: .92em; }
.acct-form input { height: 50px; border-radius: 12px; border: 1.5px solid var(--rule-2); background: var(--card); color: var(--ink-1); padding: 0 14px; font: inherit; }
.acct-form input:focus { outline: none; border-color: var(--ink-1); }
.acct-form .btn { min-height: 50px; background: var(--ink-1); color: var(--paper); margin-top: 4px; }
.acct-form .btn[disabled] { opacity: .6; }
.acct-err { color: var(--onair); font-weight: 600; margin: 0; }
.acct-forgot { margin-top: 14px; }
.acct-keep { margin-top: 22px; }
.acct-code { font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 720; letter-spacing: .06em; text-align: center; padding: 18px; border-radius: 14px; border: 2px dashed var(--ink-1); margin: 4px 0 18px; user-select: all; }
.acct-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; padding: 0; color: var(--ink-2); }
.acct-list b { color: var(--ink-1); }
.acct-danger { margin-top: 26px; border-top: 1px solid var(--rule); padding-top: 14px; }
.acct-danger summary { cursor: pointer; font-weight: 700; color: var(--onair); }
.acct-danger .acct-form .btn { background: var(--onair); }
@media (max-width: 380px) { .profile-btn, .aa-btn { margin-right: 4px; } }

/* Top news, v37: the same editorial language as For you. Photo first, rows with a thumbnail, quiet outline buttons,
   no coloured rules down the side, no giant outlet number. The weight label (Major, Big) is the only colour. */
.hero { padding-bottom: 20px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(28px, 1.5em + .6vw, 38px); line-height: 1.08; letter-spacing: -0.02em; }
.hero .lead { font-size: 1.02em; margin-top: 10px; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-acts:not(:has(> :not([hidden]))) { display: none; }
.swipe-open, .ci-chip { margin: 0; min-height: 40px; height: auto; padding: 8px 16px; border-radius: 999px; background: transparent; color: var(--ink-1) !important;
  box-shadow: inset 0 0 0 1px var(--rule-2); font-weight: 700; font-size: 15px; gap: 8px; text-align: left; white-space: normal; }
.swipe-open:hover, .ci-chip:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.swipe-open svg { width: 16px; height: 16px; flex: none; }
.so-dot { display: none; }
.ci-chip.hot { color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--rule-2); }
.ci-chip.hot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--calm); margin-right: 8px; flex: none; }

.leadc { padding: 0; border-left: 0; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.leadc-pic { position: relative; aspect-ratio: 16 / 9; background: var(--rule); overflow: hidden; }
.leadc-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.leadc-body { padding: 16px 18px 16px; display: grid; gap: 8px; }
.leadc h2 { margin: 0 !important; font-size: 25px; line-height: 1.14; letter-spacing: -0.025em; }
.leadc:hover h2 { text-decoration: none; }
.leadc .leadc-sum { margin: 0 !important; color: var(--ink-2); line-height: 1.45; }
.leadc .leadc-local { margin: 0; }
.scard-m { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-3); }
.leadc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.leadc-acts .fy-chip { height: 36px; font-size: 14px; color: var(--ink-1); }
.leadc-place { font-size: 13px; color: var(--ink-3); margin-left: auto; }
.card-meta { font-size: 13px; gap: 8px; }
.card-meta .weight { font-weight: 720; }
.card-meta .weight.major, .card-meta .weight.big { color: var(--onair); }
.card-meta .weight.over { color: var(--calm); }
.card-meta .weight.unconf { color: var(--watch); }
.card-meta .weight + span::before, .card-meta span + span::before { content: ''; }

.scard { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px 0; }
.scard.has-pic { grid-template-columns: 1fr 104px; }
.scard::before { content: none; }
.scard:first-child { padding-top: 4px; }
.scard-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.scard h3, .scard.major h3 { margin: 0 !important; font-size: 18px; line-height: 1.25; font-weight: 720; letter-spacing: -0.015em; }
.scard:hover h3 { text-decoration: none; }
.scard .scard-sum { margin: 0 !important; font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard .related { margin: 0 !important; font-size: 13px; }
.scard-pic { width: 104px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--rule); }
.scard-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scard:focus-visible, .leadc:focus-visible { outline: 3px solid var(--ink-1); outline-offset: 2px; }
@media (max-width: 960px) {
  .scard.has-pic { grid-template-columns: 1fr 88px; }
  .scard-pic { width: 88px; }
}
@media (max-width: 599px) {
  .leadc { margin: 0 -18px; border-radius: 0; box-shadow: none; background: transparent; }
  .leadc-body { padding: 14px 18px 4px; }
  .leadc h2 { font-size: 24px; }
}
@media (min-width: 961px) { .leadc h2 { font-size: 28px; } .scard h3 { font-size: 19px; } }
.scard .scard-m, .leadc .scard-m { margin: 0 !important; font-size: 13px; color: var(--ink-3); }
.scard .scard-m .fy-who, .leadc .scard-m .fy-who { font-weight: 600; color: var(--ink-2); }
.leadc-acts button { height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--rule-2); }
.leadc-acts button:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.card-meta .weight.major::before { animation: none; width: 7px; height: 7px; }

/* Alerts tab, v38: lighter category rows. One calm "on" state (no black pill per row), compact switches that size to
   their words instead of 20 full-width bars, and the page title on the same scale as Top news. */
.hero.small h1 { font-size: clamp(28px, 1.5em + .6vw, 38px); line-height: 1.08; letter-spacing: -0.02em; }
.ac-seg { background: color-mix(in srgb, var(--ink-1) 7%, transparent); }
.ac-seg button { height: 32px; padding: 0 12px; font-size: 13.5px; }
.ac-seg button.on, .ac-seg button.on.all { background: var(--card); color: var(--ink-1); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.ac-seg button.on.off { color: var(--ink-2); }
.ac-row { padding: 14px 0; }
@media (max-width: 600px) {
  .ac-row { gap: 8px; }
  .ac-seg { display: inline-flex; align-self: flex-start; }
  .ac-seg button { justify-content: center; }
}
:root[data-size="xl"] .ac-seg button { height: 42px; font-size: 16px; }
/* v38: the sticky tab bar stays solid (no fade that lets photos show through); a slow hero photo waits on a calm grey, not black */
.fy-chips { -webkit-mask-image: none; mask-image: none; padding-right: 18px; }
.fy-card.hero { background: var(--rule); }
.fy-card.hero .fy-img { background: var(--rule); }
/* Spanish labels such as "Última hora" never wrap inside the alert switches */
.ac-seg button { white-space: nowrap; }
@media (max-width: 380px) { .ac-seg button { padding: 0 9px; font-size: 13px; } }
.acct-local { margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; justify-items: start; }
.acct-local b { font-size: 16px; }
.acct-local p { margin: 0; color: var(--ink-2); font-size: 15px; }
.acct-local .btn { margin-top: 6px; }
/* swiping through cards is a touch gesture: on a mouse-and-keyboard computer the button is left out */
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) { #swipeOpen { display: none !important; } }
.fy-en { font-weight: 700; color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 6px; padding: 0 6px; font-size: 12px; }
.fy-card.hero .fy-en { color: #fff; border-color: rgba(255,255,255,.5); }
/* v39: the main alerts button follows the theme (dark ink on a light button in dark mode, never white on white) */
.push.top .btn.big { background: var(--ink-1); color: var(--paper) !important; }
.push.top .btn.big.on { background: var(--calm); color: #fff !important; }

/* v39 Top news: once the lead story is in, it opens the page. The mood line and its summary sentence (a slogan over a
   story the reader is about to see anyway) give way; the date row and the two quiet links stay. */
#nowView .now-inner:has(#leadCard article) #nowMood, #nowView .now-inner:has(#leadCard article) #nowLead { display: none; }
#nowView .now-inner:has(#leadCard article) .hero { padding-bottom: 14px; margin-bottom: 16px; }
#nowView .now-inner:has(#leadCard article) .hero-acts { margin-top: 10px; }
/* the news game is a plain link, not a pill with a status dot */
.ci-chip, .ci-chip.hot { box-shadow: none; padding: 8px 2px; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--ink-2) !important; }
.ci-chip.hot::before { display: none; }

/* v39 swipe: a plain background (no coloured glow band), the progress bar pinned under the top bar, and photo-first cards:
   the story's photo fills the screen, the headline sits on a dark fade at the bottom, the outlet count is a byline */
.swp, .swp.notable, .swp.minor, .swp.over, .swp.unconf { background: #0f1215; }
.swp .sw-prog { position: absolute; top: calc(62px + env(safe-area-inset-top)); left: 26px; right: 26px; margin: 0; z-index: 2; }
.swp.has-photo { align-items: flex-end; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.sw-photo { position: absolute; inset: 0; z-index: 0; background: #1d2227; }
.sw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .78) 66%, rgba(0, 0, 0, .94) 100%); }
.sw-photo .fy-credit { top: calc(80px + env(safe-area-inset-top)); bottom: auto; z-index: 1; }
.swp .sw-in { position: relative; z-index: 1; }
.swp.has-photo .sw-title { color: #fff; font-size: clamp(30px, 8vw, 54px); }
.swp.has-photo .sw-sum { color: rgba(255, 255, 255, .86); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.swp.has-photo .sw-kick, .swp.has-photo .sw-ol { color: rgba(255, 255, 255, .8); }
.swp .sw-ol b { color: inherit; font-weight: 700; margin-right: 6px; }
.swp .sw-kick span + span::before { content: none; }
.swp .sw-acts { margin-top: 20px; }
.swp .sw-acts .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.swp.has-photo .sw-next { color: #fff; }
/* the light theme keeps photo cards dark: white text on the photo always */
:root:not([data-theme="dark"]) .swp.has-photo { background: #0f1215; color: #fff; }
:root:not([data-theme="dark"]) .swp.has-photo .sw-title { color: #fff; }
:root:not([data-theme="dark"]) .swp.has-photo .sw-sum { color: rgba(255, 255, 255, .86); }
:root:not([data-theme="dark"]) .swp.has-photo .btn { background: #fff; color: #14171a !important; }
:root:not([data-theme="dark"]) .swp.has-photo .btn.ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.h-sent { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
/* swipe cards stack top to bottom, so "Next story" sits under the buttons, never on them */
.swp { flex-direction: column; justify-content: center; align-items: stretch; }
.swp.has-photo { justify-content: flex-end; }
.swp .sw-next { position: relative; inset: auto; z-index: 1; align-self: center; margin-top: 18px; }
/* swipe cards are full screens: no gap between them (the page-wide "section + section" margin broke Next story) */
.swipe-track .swp + .swp { margin-top: 0; }
/* score cards: a long kickoff time ("Sun, Nov 15, 6:00 PM") wraps inside the card instead of running past its edge */
.sc-h { white-space: normal; flex-wrap: wrap; row-gap: 2px; }
.sc-h > span { min-width: 0; }
.sc { overflow: hidden; }

/* v41: text size l / xl reaches Top news, the swipe deck and the price strip (the v37 cards used fixed pixel sizes) */
:root[data-size="l"] .card-meta, :root[data-size="l"] .scard-m, :root[data-size="l"] .scard .related, :root[data-size="l"] .leadc-place { font-size: 15px; }
:root[data-size="l"] .scard h3, :root[data-size="l"] .scard.major h3 { font-size: 21px; }
:root[data-size="l"] .scard .scard-sum { font-size: 17px; }
:root[data-size="l"] .leadc h2 { font-size: 29px; }
:root[data-size="l"] .leadc-acts button, :root[data-size="l"] .swipe-open, :root[data-size="l"] .ci-chip { font-size: 16px; }
:root[data-size="xl"] .card-meta, :root[data-size="xl"] .scard-m, :root[data-size="xl"] .scard .related, :root[data-size="xl"] .leadc-place, :root[data-size="xl"] .money-strip { font-size: 17px; }
:root[data-size="xl"] .scard h3, :root[data-size="xl"] .scard.major h3 { font-size: 23px; }
:root[data-size="xl"] .scard .scard-sum, :root[data-size="xl"] .leadc .leadc-sum { font-size: 19px; }
:root[data-size="xl"] .leadc h2 { font-size: 32px; }
:root[data-size="xl"] .leadc-acts button, :root[data-size="xl"] .swipe-open, :root[data-size="xl"] .ci-chip { font-size: 18px; min-height: 48px; }
:root[data-size="xl"] .scard.has-pic { grid-template-columns: 1fr 112px; }
:root[data-size="xl"] .scard-pic { width: 112px; }
.fy-money-top { margin: 0 0 18px; }
.money-strip .ms-src { color: var(--ink-3); font-size: .85em; }

/* Your services: one row per followed service, from its own status page */
.fy-services { margin: 0 0 24px; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.fy-services h2 { margin: 0 0 6px; font-size: 18px; font-weight: 720; }
.fy-services ul { list-style: none; margin: 0; padding: 0; }
.fy-services li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--rule); }
.fy-services li:first-child { border-top: 0; }
.fy-services li b { font-weight: 720; }
.fy-services li span { color: var(--ink-2); font-size: 15px; }
.fy-services li.sv-ok span { color: var(--calm); }
.fy-services li.sv-bad span { color: var(--onair); font-weight: 600; }
.fy-services li a { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fy-services .fine { margin: 6px 0 0; }

/* v42 simple at xl: at the largest text size the extras give way (swipe and game links, the labels legend and ranking note,
   follow suggestions, the install card) so the news comes first */
:root[data-size="xl"] #nowView #ciChip, :root[data-size="xl"] #nowView .legend, :root[data-size="xl"] #nowView .top .sec-note,
:root[data-size="xl"] #nowView .chips:has(.chip.add[data-follow]), :root[data-size="xl"] .fy-install { display: none !important; }
/* a plain-words note under a headline that uses an acronym */
.gloss { margin: 2px 0 0 !important; font-size: .82em; color: var(--ink-3); }
:root[data-size="xl"] .gloss { font-size: 16px; }
/* dark mode: every dropdown (the morning brief time too) uses the dark control style */
:root[data-theme="dark"] select { color-scheme: dark; background: var(--card); color: var(--ink-1); border-color: var(--rule-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) select { color-scheme: dark; background: var(--card); color: var(--ink-1); } }

/* swipe: the close button stays visible on any photo */
.swipe-x { background: rgba(0, 0, 0, .55) !important; color: #fff !important; backdrop-filter: blur(6px); }

/* live status rows (transit) sit on the same left edge as the stories below them */
.fy-card.live.noimg .fy-body { padding-left: 0; }

/* v44 simple at xl, part 2: the price strip and the follow invitation give way on Top news; acronym notes read at full strength */
:root[data-size="xl"] #nowView #moneyStrip, :root[data-size="xl"] #nowView .following:has(.chip.add[data-follow]) { display: none !important; }
:root[data-size="xl"] .gloss { color: var(--ink-2); font-size: 17px; }
.fy-card .gloss { margin: 0 !important; font-size: 14px; color: var(--ink-3); }
:root[data-size="xl"] .fy-card .gloss { font-size: 16px; color: var(--ink-2); }

.fy-services li.sv-unk span { color: var(--ink-3); }
/* For you has its own Your services card: the near card does not repeat it */
.fy-nearcard .mytools { display: none !important; }

/* v45: the swipe progress bar is placed against the whole card; the text block no longer becomes its anchor */
.swp .sw-in { position: static; }
.swp .sw-in > :not(.sw-prog) { position: relative; z-index: 1; }
/* "1 outlet" isn't a warning: same quiet grey as the rest of the line */
.fy-one { color: var(--ink-3) !important; font-weight: 600 !important; }

/* fuel: a weekly change in calm colours (a drop is good news) */
.money-strip i.cost-up { color: var(--ink-2, #555); font-style: normal; }
.money-strip i.cost-down { color: var(--calm); font-style: normal; }
.money-strip .ms-close { color: var(--ink-3, #777); font-size: .85em; }
.fy-more { margin: 4px 0 12px; } .fy-more summary { cursor: pointer; padding: 10px 0; color: var(--ink-2, #555); font-weight: 600; }
.sv-not { margin: 8px 0 0; color: var(--ink-2, #555); font-size: .92em; }

/* the story page: a count is information, not an alarm (red stays for major) */
.sh-meta .weight.big { color: var(--ink-1); }

/* the picker's first step: where the reader lives */
.fy-where { padding: 4px 0 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line, #e3e3e0); }
.fy-where h2 { margin: 0 0 4px; }
.fy-where p { margin: 0 0 12px; color: var(--ink-2); }
.fy-where-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fy-where-row input { flex: 1 1 200px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line, #d6d6d2); font: inherit; background: var(--card, #fff); color: inherit; }
.fy-place-res { list-style: none; margin: 8px 0 0; padding: 0; }
.fy-place-res button { display: block; width: 100%; text-align: left; padding: 12px 4px; min-height: 44px; background: none; border: 0; border-bottom: 1px solid var(--line, #e3e3e0); font: inherit; color: inherit; cursor: pointer; }
.fy-place-res span, .fy-place-res .none { color: var(--ink-3); }
.fy-where-set { margin: 0 0 14px; color: var(--ink-2); }

/* the reader's own stories in the swipe deck */
.sw-kick .sw-mine { color: var(--calm); }

/* For you: quiet hours and the away summary at the top */
.fy-quiet { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--card, #fff); color: var(--ink-2); font-size: .95em; }
.fy-away { display: block; margin: 0 0 16px; }

.fy-m .fy-land { font-weight: 700; color: var(--ink-2); margin-right: 6px; }

/* a student's wrong game code: retype it right here */
.join-box { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 20, .55); }
.join-card { width: min(420px, 100%); background: var(--card, #fff); color: var(--ink-1, #111); border-radius: 18px; padding: 22px; display: grid; gap: 12px; }
.join-card h2 { margin: 0; }
.join-card .join-err { margin: 0; color: var(--ink-2); }
.join-card label { display: grid; gap: 6px; font-weight: 600; }
.join-card input { min-height: 52px; font-size: 1.6rem; letter-spacing: .3em; text-transform: uppercase; text-align: center; border-radius: 12px; border: 1px solid var(--line, #ccc); background: var(--bg, #fff); color: inherit; }

.money-strip i { white-space: nowrap; }

.tk-en { font-size: .72em; font-weight: 700; opacity: .7; margin-left: 6px; border: 1px solid currentColor; border-radius: 4px; padding: 0 3px; }

/* the reader's own cards in the swipe deck: a colour field of their own instead of an empty page */
.swp.mine:not(.has-photo) { background: linear-gradient(160deg, #10324a 0%, #0d1b2a 55%, #0a1520 100%); color: #f2f5f8; }
.swp.mine.team:not(.has-photo) { background: linear-gradient(160deg, #3a1020 0%, #1b0d16 60%, #120a10 100%); }
.swp.mine:not(.has-photo) .sw-title { font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.05; }
.swp.mine:not(.has-photo) .sw-sum, .swp.mine:not(.has-photo) .sw-ol { color: rgba(242, 245, 248, .8); }
.swp.mine:not(.has-photo) .sw-kick span { color: rgba(242, 245, 248, .75); }
.swp.mine:not(.has-photo) .sw-kick .sw-mine { color: #7fe0b0; }
.swp.mine:not(.has-photo) .btn.ghost { color: #f2f5f8; border-color: rgba(242, 245, 248, .4); }
.swp.mine:not(.has-photo) .sw-next { color: rgba(242, 245, 248, .8); }
/* the kicker and counter stay readable over any photo */
.swp.has-photo .sw-kick span { text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
/* the reader's own cards keep their light-on-dark look in every theme */
:root .swp.mine:not(.has-photo) .sw-title { color: #f6f8fa !important; }
:root .swp.mine:not(.has-photo) .btn { background: #f6f8fa !important; color: #14171a !important; }
:root .swp.mine:not(.has-photo) .btn.ghost { background: transparent !important; color: #f6f8fa !important; box-shadow: inset 0 0 0 1.5px rgba(246, 248, 250, .45) !important; }
:root .swp.mine:not(.has-photo) .sw-prog i { background: rgba(246, 248, 250, .3); } :root .swp.mine:not(.has-photo) .sw-prog i.on { background: #f6f8fa; }

/* a plain-word note on a photo card stays readable */
.fy-card.hero .gloss { color: rgba(255, 255, 255, .85) !important; }
.fy-pick-go .fy-hint { display: block; margin-top: 8px; color: var(--ink-3); font-size: .9em; text-align: center; }
/* the projector: section headings, the plain-word line and the keys stay readable from the back of the room */
.classmode .cl-card .cl-h { font-size: max(16px, .9em) !important; color: #3d454d !important; }
.classmode .cl-card .gloss { font-size: max(16px, .85em) !important; color: #3d454d !important; }
.classmode .cl-card { padding-bottom: 4vh; }
.classmode .cl-keys { color: #5a636c !important; }

/* the largest text size: plain-word notes and small meta lines grow too */
:root[data-size="xl"] .gloss, :root[data-size="xl"] .sheet .gloss { font-size: 20px !important; }
:root[data-size="xl"] .fy-m, :root[data-size="xl"] .fy-credit { font-size: 18px !important; }
/* the picker's pinned "Show my feed" bar never covers the last group */
.fy-pick { padding-bottom: 140px; }

/* phone Map header: "En vivo" on one line, the bell always visible (the tour and connection dot wait for wider screens) */
.live { white-space: nowrap; flex: none; }
@media (max-width: 440px) {
  body[data-view="map"] .topbar #tourBtn, body[data-view="map"] .topbar #healthBtn { display: none !important; }
  body[data-view="map"] .topbar .tools { gap: 4px; }
}

/* "Ransomware & scanners": two numbers, kept on one line each, wrapping as a unit */
.layer[data-layer="cyber"] { flex-wrap: wrap; row-gap: 2px; text-align: left; }
.layer .lcount { white-space: nowrap; }

/* projector: the card takes ~60% of the screen with text readable from the back row (22px at 1440, 26–28px at 1920) */
@media (min-width: 1200px) {
  .classroom { width: min(60vw, 1240px); background: linear-gradient(to right, transparent, rgba(5, 9, 13, .72) 10%); }
  .cl-card { font-size: clamp(20px, 1.5vw, 30px); }
  .cl-title { font-size: clamp(36px, 3.2vw, 68px); }
  .classmode .cl-keys { font-size: 13px !important; opacity: .8; }
}

/* Weather page: five days, big and plain */
.fy-weather { padding: 4px 0 12px; }
.fy-weather .wx-now { font-size: 1.15em; font-weight: 700; margin: 0 0 10px; }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wx-days li { display: grid; grid-template-columns: 1.3fr 1.2fr auto; gap: 4px 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: var(--card, rgba(127,127,127,.08)); }
.wx-days li b { font-weight: 720; }
.wx-days .wx-t { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.wx-days .wx-r { grid-column: 1 / -1; font-size: .9em; opacity: .8; }
.wx-h { margin: 18px 0 8px; font-size: 1.05em; font-weight: 720; }
.wx-warn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wx-warn li { display: grid; gap: 2px; padding: 10px 12px; border-left: 4px solid #e0a100; background: var(--card, rgba(127,127,127,.08)); border-radius: 8px; }
.wx-warn a { font-size: .9em; }
.wx-calm { margin: 14px 0 0; font-weight: 600; color: #2f7d32; }

/* largest text: headlines clearly bigger (24px+), source lines and links 18px, and one big "one story at a time" button */
:root[data-size="xl"] .fy-card.row h3 { font-size: 24px; }
:root[data-size="xl"] .fy-card.big h3 { font-size: 29px; }
:root[data-size="xl"] .fy-m, :root[data-size="xl"] .fy-k, :root[data-size="xl"] .fy-more, :root[data-size="xl"] .sc-src, :root[data-size="xl"] .fy-sec .fy-more { font-size: 18px; }
:root[data-size="xl"] .scard h3, :root[data-size="xl"] .scard.major h3 { font-size: 25px; }
:root[data-size="xl"] #nowView .swipe-open { width: 100%; min-height: 58px; font-size: 20px; justify-content: center; }
:root[data-size="xl"] .sw-hint, :root[data-size="xl"] .sw-prog-n { font-size: 19px !important; color: var(--ink) !important; opacity: 1 !important; }

/* Simple map: labels on the side with room, bigger at the largest text size, and a one-line key */
.spin.flip { flex-direction: row-reverse; text-align: right; }
:root[data-size="xl"] .spin span, :root[data-size="l"] .spin span { font-size: 18px; }
:root[data-size="xl"] .spin { max-width: 340px; }
.spin-key { position: fixed; left: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 6; margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(10, 14, 18, .78); color: #fff; font: 600 13px/1.3 'Schibsted Grotesk', system-ui, sans-serif; max-width: calc(100vw - 32px); pointer-events: none; }
:root[data-size="xl"] .spin-key { font-size: 17px; }
body:not(.map-simple) .spin-key, body:not([data-view="map"]) .spin-key { display: none; }
@media (min-width: 961px) { .spin-key { bottom: 24px; left: 50%; transform: translateX(-50%); } }

/* Health watch on For you (health readers): the first three notices, linked to the full list */
.fy-health { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--card, rgba(127,127,127,.08)); }
.fy-health h2 { margin: 0 0 8px; font-size: 1.05em; }
.fy-health ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fy-health li a { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.fy-health li span, .fy-health li em { font-size: .88em; opacity: .8; font-style: normal; }
.fy-health .fy-more { margin-top: 8px; }

/* "+2 more on this in your feed": other angles on one event, folded into its first card */
.fy-angles { font-weight: 700; color: var(--accent, #c2410c); }

/* a team's result card names the next game under the score */
.fy-next { margin: 2px 0 4px; font-weight: 600; font-size: .95em; }

/* projector card: ~60% of the screen measured on the card itself; keys readable; a portrait tablet gives the map 30% and lets the card scroll */
@media (min-width: 1200px) {
  .classroom { width: min(64vw, 1300px); padding: 3vh 2vw; }
  .classmode .cl-keys { font-size: 16px !important; }
}
@media (max-width: 960px) and (orientation: portrait) {
  .classroom { top: 30vh; align-items: stretch; }
  .cl-card { max-height: calc(70vh - 24px); overflow-y: auto; font-size: max(17px, 1em); }
}

/* every followed service fine: one quiet line */
.fy-sv-ok { padding: 10px 14px; }
.fy-sv-ok p { margin: 0; }
.fy-sv-ok .sv-not { margin-top: 6px; font-size: .9em; opacity: .85; }

/* largest text: "Next story" is a big, clear button and the counter is readable */
:root[data-size="xl"] .sw-next, :root[data-size="l"] .sw-next { font-size: 20px !important; min-height: 56px; padding: 0 22px; border-radius: 999px; background: var(--ink, #111); color: var(--bg, #fff) !important; opacity: 1 !important; font-weight: 720; }
:root[data-size="xl"] .sw-prog-n, :root[data-size="xl"] .sw-count { font-size: 18px !important; }
/* the map key steps aside while a story is open; it also explains the white dots */
body.sheet-open .spin-key, html.sheet-open .spin-key { display: none !important; }

/* the other angles folded into a card, listed in its sheet */
.fy-moreon { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.fy-moreon a { color: inherit; text-decoration: none; display: block; }
.fy-moreon b { margin-right: 6px; }
.roads .rail-calm { font-size: inherit; font-weight: 500; }

/* the reader button on For you at the largest text size */
.fy-read { width: 100%; min-height: 58px; font-size: 20px; justify-content: center; margin: 0 0 14px; }

/* ---------- the globe's story pins: a paper card clipped to the night globe ---------- */
.spin { gap: 10px; max-width: 300px; background: none; border: 0; }
.spin span { min-width: 0; }
.spin i { position: relative; width: 14px; height: 14px; background: #f2f3f1; box-shadow: 0 0 0 3px rgba(242, 243, 241, .22), 0 2px 8px rgba(0, 0, 0, .55); }
.spin.hot i { background: #e5341d; box-shadow: 0 0 0 3px rgba(229, 52, 29, .3), 0 2px 12px rgba(229, 52, 29, .5); }
.spin.hot i::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid #e5341d; opacity: 0; animation: onair 2.4s ease-out infinite; }
.spin span, .spin:hover span, .spin:focus span, .spin.crowd:hover span, .spin.crowd:focus span {
  display: grid; grid-template-columns: 1fr; align-items: center; column-gap: 10px; row-gap: 2px;
  padding: 8px 12px; border-radius: 14px; background: rgba(250, 250, 248, .97); color: #15181b;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); font: inherit; text-align: left;
}
.spin span:has(img) { grid-template-columns: 48px 1fr; padding-left: 8px; }
.spin img { grid-row: span 2; width: 48px; height: 48px; border-radius: 9px; object-fit: cover; background: #d9dcd8; display: block; }
.spin em { font: 600 12px/1.25 'Schibsted Grotesk', system-ui, sans-serif; font-style: normal; color: #5d646b; font-variant-numeric: tabular-nums; }
.spin.hot em { color: #c42b17; }
.spin b { font: 700 14px/1.25 'Schibsted Grotesk', system-ui, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spin:hover span, .spin:focus-visible span { box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 2px #f2f3f1; }
.spin:focus-visible { outline: none; }
.spin.flip span { text-align: left; }
.spin.small span, .spin.crowd span { display: none; }
.spin.small:hover span, .spin.small:focus-visible span { display: grid; }
:root[data-size="xl"] .spin b, :root[data-size="l"] .spin b { font-size: 17px; }
@media (max-width: 960px) { .spin span { max-width: none; } .spin-key { font-size: 12px; padding: 7px 12px; } .spin b { font-size: 13.5px; } .spin img { width: 44px; height: 44px; } .spin span:has(img) { grid-template-columns: 44px 1fr; } }
@media (prefers-reduced-motion: reduce) { .spin.hot i::after { animation: none; } }
/* map zoom: dark glass on the night globe; phones pinch instead */
.maplibregl-ctrl-group { background: rgba(12, 18, 24, .78); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); overflow: hidden; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.maplibregl-ctrl-group button { width: 36px; height: 36px; }
.maplibregl-ctrl-group button + button { border-top: 1px solid rgba(255, 255, 255, .08); }
.maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1) brightness(1.6); opacity: .85; }
@media (hover: none) and (pointer: coarse) { .maplibregl-ctrl-group { display: none; } }
/* the key under the globe, as a quiet pill */
.spin-key { border-radius: 999px; padding: 8px 14px; background: rgba(12, 18, 24, .8); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 960px) {
  .spin b { -webkit-line-clamp: 3; }
  body[data-view="map"].map-simple .maplibregl-ctrl-bottom-right { bottom: calc(132px + env(safe-area-inset-bottom)); }
}

/* ---------- Today's stories: the photo above, the words below on solid ground (never text over a photo) ---------- */
.swp { --swbg: #0f1215; --sw-ink: #ffffff; --sw-ink2: #c4cbd2; --sw-ink3: #8c959e; --sw-chip: rgba(255, 255, 255, .08); --sw-chip-ink: #d5dade; --sw-btn: #ffffff; --sw-btn-ink: #14171a; --sw-line: rgba(255, 255, 255, .3); }
:root[data-theme="light"] .swp { --swbg: var(--paper); --sw-ink: var(--ink-1); --sw-ink2: var(--ink-2); --sw-ink3: var(--ink-3); --sw-chip: rgba(20, 23, 26, .06); --sw-chip-ink: var(--ink-2); --sw-btn: var(--ink-1); --sw-btn-ink: var(--paper); --sw-line: var(--rule-2); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .swp, :root[data-theme="auto"] .swp { --swbg: var(--paper); --sw-ink: var(--ink-1); --sw-ink2: var(--ink-2); --sw-ink3: var(--ink-3); --sw-chip: rgba(20, 23, 26, .06); --sw-chip-ink: var(--ink-2); --sw-btn: var(--ink-1); --sw-btn-ink: var(--paper); --sw-line: var(--rule-2); } }
.swp, .swp.has-photo, .swp.notable, .swp.minor, .swp.over, .swp.unconf, .swp.end, :root:not([data-theme="dark"]) .swp.has-photo { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; background: var(--swbg) !important; color: var(--sw-ink) !important; }
.swp .sw-in { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 640px; margin: 0 auto; box-sizing: border-box; padding: calc(104px + env(safe-area-inset-top)) 24px calc(100px + env(safe-area-inset-bottom)); }
.swp.has-photo .sw-in, .swp.has-hero .sw-in { justify-content: flex-start; padding-top: 18px; }
.swp .sw-title, .swp.has-photo .sw-title, :root:not([data-theme="dark"]) .swp.has-photo .sw-title { color: var(--sw-ink) !important; font-size: clamp(30px, 7.6vw, 54px); }
.swp.has-photo .sw-title, .swp.has-hero .sw-title { font-size: clamp(26px, 6.6vw, 46px); margin-top: 12px !important; }
.swp .sw-sum, .swp.has-photo .sw-sum, :root:not([data-theme="dark"]) .swp.has-photo .sw-sum { color: var(--sw-ink2) !important; font-size: 17px; margin-top: 12px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.swp.has-photo .sw-sum { -webkit-line-clamp: 2; }
.swp .sw-kick, .swp .sw-ol, .swp.has-photo .sw-kick, .swp.has-photo .sw-ol { color: var(--sw-ink3) !important; }
.swp .sw-kick .weight.major, .swp .sw-kick .weight.big { color: #ff5a40 !important; }
:root[data-theme="light"] .swp .sw-kick .weight.major, :root[data-theme="light"] .swp .sw-kick .weight.big { color: var(--sw-ink, var(--ink-1)) !important; }
.swp .btn:not(.ghost), .swp.has-photo .btn:not(.ghost), :root:not([data-theme="dark"]) .swp.has-photo .btn:not(.ghost) { background: var(--sw-btn) !important; color: var(--sw-btn-ink) !important; }
.swp .btn.ghost, .swp.has-photo .btn.ghost, :root:not([data-theme="dark"]) .swp.has-photo .btn.ghost { background: transparent !important; color: var(--sw-ink) !important; box-shadow: inset 0 0 0 1.5px var(--sw-line) !important; }
.swp .sw-next, .swp.has-photo .sw-next { color: var(--sw-ink) !important; opacity: .72; }
/* the photo: the top 46% of the screen, faded into the card so the words start on solid colour */
.sw-photo { position: relative; inset: auto; flex: none; height: 46dvh; min-height: 250px; z-index: 0; overflow: hidden; background: #1d2227; }
.sw-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.sw-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 64%, var(--swbg) 100%); }
.sw-photo .fy-credit { position: absolute; top: auto; bottom: 18px; right: 14px; left: auto; z-index: 1; }
/* no photo: the evidence is the picture (how many news sites are carrying it) */
.sw-hero { flex: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 40dvh; min-height: 230px; width: 100%; max-width: 640px; margin: 0 auto; box-sizing: border-box; padding: 0 24px 4px; }
.sw-hero b { font-size: clamp(118px, 36vw, 210px); line-height: .8; font-weight: 720; letter-spacing: -0.05em; color: var(--sw-ink); font-variant-numeric: tabular-nums; margin-left: -.04em; }
.swp.major .sw-hero b, .swp.big .sw-hero b { color: #ff5a40; }
:root[data-theme="light"] .swp.major .sw-hero b, :root[data-theme="light"] .swp.big .sw-hero b { color: var(--sw-ink, var(--ink-1)); }
.sw-hero span { font-size: 18px; font-weight: 700; color: var(--sw-ink3); }
/* who's carrying it */
.sw-outlets { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; }
.sw-outlets li { font-size: 13px; font-weight: 700; line-height: 1; padding: 7px 11px; border-radius: 999px; background: var(--sw-chip); color: var(--sw-chip-ink); }
.sw-outlets li.more { background: none; padding-left: 2px; color: var(--sw-ink3); }
.swp .sw-outlets + .sw-ol { margin-top: 10px !important; }
.swp .sw-prog { top: calc(62px + env(safe-area-inset-top)); }
@media (min-width: 961px) { .sw-photo { height: 44vh; } .swp .sw-in { padding-bottom: 110px; } }
:root[data-size="xl"] .swp .sw-title, :root[data-size="l"] .swp .sw-title { font-size: clamp(32px, 8vw, 56px); }
.swp > .sw-next { position: absolute !important; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); margin: 0; text-align: center; z-index: 2; }
.swp .sw-kick, .swp .sw-kick span, .swp .sw-title, .swp .sw-sum, .swp .sw-ol { text-shadow: none !important; }
.sw-hero.src b { font-size: clamp(54px, 15vw, 104px); line-height: .92; letter-spacing: -0.03em; color: var(--sw-ink); opacity: .9; overflow-wrap: anywhere; }
/* the page itself is paper in the light theme: no black flash on overscroll or a slow first paint (the map keeps its night) */
html[data-theme="light"], html[data-theme="light"] body:not([data-view="map"]) { background: var(--paper); }
@media (prefers-color-scheme: light) { html:not([data-theme]), html:not([data-theme]) body:not([data-view="map"]) { background: var(--paper); } }
/* how we counted a story: one quiet line under the lead, opened on demand */
.sh-how { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.sh-how summary { cursor: pointer; font-weight: 700; color: var(--ink-2); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.sh-how summary::-webkit-details-marker { display: none; }
.sh-how summary::after { content: '+'; font-weight: 700; }
.sh-how[open] summary::after { content: '–'; }
.sh-how p { margin: 6px 0 0; }
.sw-latest { display: block; font-size: 13px; font-weight: 700; color: var(--sw-ink3); margin-bottom: 2px; }
/* the counter and progress stay readable over a bright photo */
.swipe-bar { background: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent) !important; }
.swipe-count { color: #fff !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
:root[data-theme="light"] .swipe:not(:has(.swp.has-photo)) .swipe-count { color: var(--ink-2) !important; text-shadow: none; }

/* ---------- one card system, one red ---------- */
/* the hero is the photo itself, edge to edge: no grey frame around it */
.fy-card.hero { padding: 0 !important; background: #0f1215 !important; box-shadow: none !important; }
.fy-card.hero .fy-img { margin: 0 !important; border-radius: 0 !important; }
/* red means live or Major, nothing else: labels, "Big", "first" and section titles are ink */
.weight.big, .card-meta .weight.big, .swp .weight.big, .swp .sw-kick .weight.big, :root[data-theme="light"] .swp .sw-kick .weight.big { color: var(--ink-1) !important; }
.swp .sw-kick .weight.big { color: var(--sw-ink) !important; }
.fy-card.live .fy-k { color: var(--ink-2); }
.fy-card.hero.live .fy-k { color: #fff; }
.fy-card.live { box-shadow: var(--shadow, none); }
.timeline li.is-first b::after { color: var(--ink-3); }
.follow-block h3 { color: var(--ink-2); }
.fy-angles { color: var(--ink-2) !important; }
/* list rows read as headlines, not as underlined links */
.following li a, .following .fol-t, #homeNews li a, #esNews li a { text-decoration: none; color: inherit; }
.following li a:hover, #homeNews li a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the end of For you */
.fy-end { margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid var(--rule); text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-3); }
/* the newcomer's one card on Top news */
.fy-make { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 16px 16px 16px 18px; border-radius: 16px; background: var(--card, #fff); box-shadow: 0 0 0 1px var(--rule); }
.fy-make[hidden] { display: none; }
.fy-make b { display: block; font-size: 17px; font-weight: 720; color: var(--ink-1); }
.fy-make span { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.fy-make-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.fy-make .btn { white-space: nowrap; }
@media (max-width: 520px) { .fy-make { flex-direction: column; align-items: stretch; } .fy-make-acts { justify-content: space-between; } }
.sum-latest { display: block; font-size: .78em; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }

/* ================= the owner's mockup (2026-11-15): dark first, pills, globe tab ================= */
/* (the dark palette lives in the tokens at the top of this file) */
:root body:not([data-view="map"]) .topbar { background: var(--paper); border-bottom-color: transparent; }
/* header: the globe icon, the name, and what it is */
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-text .brand-logo { height: 20px; }
.brand-tag { font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
body[data-view="map"] .brand-tag { display: none; }
@media (max-width: 960px) { .profile-btn { display: none !important; } }
@media (max-width: 359px) { .brand-tag { display: none; } }
/* search the world */
.fy-search { display: flex; align-items: center; gap: 10px; height: 46px; margin: -8px 0 6px; padding: 0 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-3); }
.fy-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.fy-search svg { width: 18px; height: 18px; flex: none; }
.fy-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: 500 16px/1 var(--font); color: var(--ink-1); }
.fy-search input::placeholder { color: var(--ink-3); }
.fy-search input::-webkit-search-cancel-button { filter: invert(.6); }
body.student .fy-search { display: none; }
/* feeds as pills: the open one is solid */
.fy-chips { gap: 8px !important; border-bottom: 0 !important; height: auto !important; align-items: center !important; margin-top: 0 !important; padding-top: 6px !important; padding-bottom: 12px !important; }
.fy-chip { height: 36px; padding: 0 16px !important; border: 0 !important; border-radius: 999px !important; background: var(--card) !important; box-shadow: inset 0 0 0 1px var(--rule) !important; color: var(--ink-1) !important; font-size: 15px !important; font-weight: 650 !important; white-space: nowrap; }
.fy-chip.on { background: var(--ink-1) !important; color: var(--paper) !important; box-shadow: none !important; }
.fy-chip.add { background: none !important; box-shadow: none !important; color: var(--ink-3) !important; }
.fy-chip::after, .fy-chip.on::after { display: none !important; }
/* the lead story: a rounded photo card with a Live tag and a bookmark */
@media (max-width: 960px) { .fy-card.hero { margin: 0 0 14px !important; border-radius: 22px !important; } }
.fy-card.hero { border-radius: 22px !important; }
.fy-live { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--onair); color: #fff; font-size: 13px; font-weight: 720; letter-spacing: .01em; }
.fy-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.fy-card.hero .fy-credit { left: auto; right: 12px; }
.fy-save { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-3); vertical-align: middle; margin: -8px -8px -8px 2px; cursor: pointer; }
.fy-save svg { width: 20px; height: 20px; }
.fy-save.on { color: var(--ink-1); }
.fy-save.on svg path { fill: currentColor; }
.fy-card.hero > .fy-save { position: absolute; right: 10px; bottom: 12px; z-index: 2; margin: 0; color: #fff; background: rgba(0, 0, 0, .25); }
.fy-card.hero .fy-body { padding-right: 56px; }
.fy-save:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
/* follow what you care about */
.fy-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.fy-pill { height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1.5px var(--rule-2); color: var(--ink-1); font: 700 14px/1 var(--font); cursor: pointer; }
.fy-pill:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.fy-sec .fy-pill { margin-left: auto; height: 34px; }
/* near you, before a place is set */
.fy-near-add { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 16px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.fy-near-add > svg { width: 26px; height: 26px; flex: none; color: var(--onair); }
.fy-near-add > div { flex: 1; min-width: 0; }
.fy-near-add b { display: block; font-size: 17px; color: var(--ink-1); }
.fy-near-add span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.fy-near-add .btn { flex: none; background: var(--ink-1); color: var(--paper); white-space: nowrap; }
/* the tab bar: Home, Map, today's stories (the globe), Saved, Profile */
@media (max-width: 960px) {
  .bottom-nav { height: calc(64px + env(safe-area-inset-bottom)) !important; background: color-mix(in srgb, var(--paper) 90%, transparent) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--rule) !important; }
  .bottom-nav button { color: var(--ink-3) !important; box-shadow: none !important; }
  .bottom-nav button > span:not(.ic) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bottom-nav button svg { width: 26px !important; height: 26px !important; color: inherit !important; }
  .bottom-nav button.on, .bottom-nav button.on svg { color: var(--ink-1) !important; }
  body.on-saved .bottom-nav [data-view-btn="now"], body.on-saved .bottom-nav [data-view-btn="now"] svg { color: var(--ink-3) !important; }
  .bottom-nav .tab-globe img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 22px rgba(0, 0, 0, .55); transform: translateY(-6px); }
  .bottom-nav .tab-globe:active img { transform: translateY(-4px) scale(.96); }
  .view { bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
}
.bottom-nav [data-view-btn="now"] svg circle { display: none; }
.brand-text { align-items: flex-start; }
.brand-text .brand-logo { width: auto; align-self: flex-start; display: block; }
.fy-card.hero.live .fy-k::before { display: none; }

/* ---------- "Let's make it yours": the setup as a short conversation ---------- */
.fy-chat-head { text-align: center; margin: 6px 0 26px; }
.fy-chat-head img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .45); }
.fy-chat-head h2 { margin: 16px 0 6px !important; font-size: 30px; line-height: 1.08; letter-spacing: -0.02em; }
.fy-chat-head p { margin: 0 auto !important; max-width: 34ch; color: var(--ink-2); font-size: 15.5px; }
.fy-bubble { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 12px; }
.fy-bubble img { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.fy-bubble p { margin: 0 !important; padding: 11px 15px; border-radius: 6px 18px 18px 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-1); font-size: 16px; font-weight: 600; line-height: 1.35; }
.fy-chat h3 { margin: 16px 0 8px !important; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.fy-chat .fy-tiles { display: flex !important; flex-wrap: wrap; gap: 8px; grid-template-columns: none !important; }
.fy-chat .fy-tile { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; min-height: 40px; padding: 0 15px !important; border: 0 !important; border-radius: 999px !important; background: none !important; box-shadow: inset 0 0 0 1.5px var(--rule-2) !important; }
.fy-chat .fy-tile b { font-size: 14.5px; font-weight: 700; color: var(--ink-1); }
.fy-chat .fy-tile span { display: none !important; }
.fy-chat .fy-tile.on, .fy-pill.fy-opt.on { background: var(--onair-soft) !important; box-shadow: inset 0 0 0 1.5px var(--onair) !important; }
.fy-chat .fy-tile.on b::before, .fy-pill.fy-opt.on::before { content: '✓'; margin-right: 7px; color: var(--onair); font-weight: 720; }
.fy-pill.fy-opt:not(.on)::before { content: '✓'; margin-right: 7px; color: var(--ink-3); font-weight: 720; }
.fy-opts { flex-direction: column; align-items: flex-start; }
.fy-chat .fy-where h2 { display: inline-block; margin: 22px 0 8px !important; padding: 11px 15px; border-radius: 6px 18px 18px 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.fy-chat .fy-pick-go { position: sticky; bottom: 0; z-index: 2; margin: 18px -18px 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--paper) 28%); }
.fy-chat .fy-pick-go .btn { width: 100%; min-height: 52px; border-radius: 999px; background: var(--ink-1); color: var(--paper); font-size: 17px; font-weight: 720; }
.fy-chat .fy-pick-go .btn[disabled] { opacity: .45; }
/* ---------- Alerts & Recaps ---------- */
.seg { display: flex; gap: 4px; padding: 4px; margin: 10px 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 700 14px/1 var(--font); cursor: pointer; }
.seg button.on { background: var(--ink-1); color: var(--paper); }
.recap-times { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 14px; }
.recap-times[hidden], #recapEveRow[hidden] { display: none; }
.recap-times label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-1); }
.recap-times select { min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--card); color: var(--ink-1); border: 1px solid var(--rule-2); font: 600 15px var(--font); }
.recap-preview { padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, var(--onair-soft), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px var(--rule), inset 3px 0 0 var(--onair); }
.recap-preview .rp-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.recap-preview .rp-head b { font-size: 16px; }
.recap-preview .rp-head span { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.recap-preview ul { margin: 10px 0 8px; padding-left: 18px; }
.recap-preview li { margin: 6px 0; color: var(--ink-1); font-weight: 600; line-height: 1.35; }
.recap-preview .set-note { margin: 6px 0 0 !important; }
#topicsSet .sec-head { display: flex; justify-content: space-between; align-items: center; }
#topicsSet .count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: var(--card); font-size: 13px; color: var(--ink-2); vertical-align: 3px; }
.fy-pill.static { display: inline-flex; align-items: center; cursor: default; }
/* the old single daily-brief switch is now the Recap section */
.toggle:has(#daily) { display: none; }
.seg button { border: 0 !important; box-shadow: none !important; white-space: nowrap; padding: 0 6px !important; font-size: 14px !important; }
@media (max-width: 380px) { .seg button { font-size: 13px !important; } }

/* ---------- the owner's asset pack: line icons (filled when active) and topic icons ---------- */
.bottom-nav .ic { display: grid; place-items: center; }
.bottom-nav .ic svg { width: 26px !important; height: 26px !important; }
.bottom-nav .ic-on { display: none; }
.bottom-nav button.on .ic-off { display: none; }
.bottom-nav button.on .ic-on { display: grid; }
body.on-saved .bottom-nav [data-view-btn="now"] .ic-on { display: none; }
body.on-saved .bottom-nav [data-view-btn="now"] .ic-off { display: grid; }
.bottom-nav .tab-globe img { border-radius: 50%; }
.get-alerts svg, .fy-search svg { stroke: currentColor; }
.ti { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--ti) center / contain no-repeat; mask: var(--ti) center / contain no-repeat; }
.fy-chat .fy-tile .ti { color: var(--ink-2); margin-right: 1px; }
.fy-chat .fy-tile.on .ti { color: var(--onair); }
/* with an icon, the check mark isn't needed */
.fy-chat .fy-tile:has(.ti) b::before { content: none !important; }
.bottom-nav .ic svg { fill: none; }
.bottom-nav .ic-on svg { fill: currentColor; }
.get-alerts svg, .fy-search svg { fill: none !important; stroke: currentColor; }

/* ================= the horizon look (2026-11-16): the owner's logo and concept board (docs/brand/concept-board.png) =================
   One accent: the live dot, and it glows. Surfaces are dark glass (a faint top-lit gradient, a hairline rim brighter at the
   top, a long soft shadow). Icon buttons are rounded squares, like the app tile. Greys follow Apple's dark palette.
   The palette is in the tokens at the top of this file; every rule here is the same in light and dark. */
/* the dot glows wherever it means live */
.fy-live::before { box-shadow: var(--glow); }
.brand-logo .bl-dot { fill: var(--onair); }
.brand-logo .bl-glow { fill: var(--onair); opacity: .55; }
:root[data-theme="light"] .brand-logo .bl-glow { opacity: .25; }
.brand-logo .bl-halo { stroke-width: 60; }
/* header: the glass tile and the wordmark, icon buttons as glass squares */
.brand-icon { width: 40px !important; height: 40px !important; border-radius: 23% !important; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .8) !important; }
.brand-text .brand-logo { height: 22px !important; }
:root body:not([data-view="map"]) .topbar .aa-btn,
:root body:not([data-view="map"]) .topbar .get-alerts { width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 13px; background: var(--glass), var(--card); box-shadow: var(--rim), var(--lift); color: var(--ink-1); }
:root body:not([data-view="map"]) .topbar .get-alerts { position: relative; }
/* alerts switched on: a small ink dot on the bell (red is kept for live) */
:root body:not([data-view="map"]) .topbar .get-alerts.on::after { content: ''; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-1); box-shadow: 0 0 0 2px var(--paper); }
/* the Live tag: dark glass, white type, the glowing dot (as on the board) */
.fy-live { height: 28px !important; padding: 0 12px 0 10px !important; gap: 7px !important; background: rgba(12, 12, 14, .62) !important; -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .09); color: #fff !important; font-weight: 700 !important; }
.fy-live::before { width: 8px !important; height: 8px !important; background: var(--onair) !important; }
/* glass surfaces */
:root .fy-search, :root .fy-chip:not(.on):not(.add), :root .fy-make, :root .fy-near-add, :root .seg, :root .fy-bubble p, :root .fy-chat .fy-where h2 { background: var(--glass), var(--card) !important; box-shadow: var(--rim) !important; }
:root .fy-make, :root .fy-near-add { box-shadow: var(--rim), var(--lift) !important; }
/* the tab bar: the floating capsule (below, phones); the centre is the app's round Earth, raised */
@media (max-width: 960px) {
  .bottom-nav .tab-globe img { width: 54px !important; height: 54px !important; border-radius: 23% !important; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .5) !important; }
}
.bottom-nav .tab-globe img { border-radius: 23% !important; }
/* the setup chat: the tile, not a round avatar */
.fy-chat-head img, .fy-bubble img { border-radius: 23% !important; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8) !important; }

/* ---------- horizon pass 2: from the screen audit against the concept board ---------- */
/* lit glass is the active and primary state (no white slabs); quiet glass is the rest */
:root .btn:not(.ghost), :root .fy-near-add .btn, :root .fy-chat .fy-pick-go .btn { background: var(--lit) !important; color: #fff !important; box-shadow: var(--lit-rim) !important; }
:root .btn.ghost, :root .leadc-acts button { background: var(--glass), var(--card) !important; color: var(--ink-1) !important; box-shadow: var(--rim) !important; }
:root .fy-chip.on, :root .seg button.on, :root .chip.on { background: var(--lit) !important; color: #fff !important; box-shadow: var(--lit-rim) !important; }
:root .fy-chip:not(.on):not(.add) { color: var(--ink-2) !important; }
:root .chip:not(.on) { background: transparent !important; color: var(--ink-2) !important; box-shadow: var(--rim) !important; }
/* the disabled Continue is a solid quiet surface, never a see-through slab */
:root .fy-chat .fy-pick-go .btn[disabled] { opacity: 1 !important; background: var(--card-2) !important; color: var(--ink-3) !important; box-shadow: var(--rim) !important; }
.fy-chat .fy-pick-go { background: linear-gradient(to bottom, transparent, var(--paper) 34%) !important; }
/* setup choices: lit when picked, white check; no grey ticks on the others */
:root .fy-chat .fy-tile.on, :root .fy-pill.fy-opt.on { background: var(--lit) !important; box-shadow: var(--lit-rim) !important; color: #fff !important; }
.fy-chat .fy-tile.on b::before, .fy-pill.fy-opt.on::before { color: #fff !important; }
.fy-pill.fy-opt:not(.on)::before { content: none !important; }
:root .fy-chat .fy-tile.on .ti, :root .fy-chat .fy-tile.on b, :root .fy-chat .fy-tile.on span { color: #fff; }
/* toasts and notes: frosted glass on the page's own colour */
:root .aa-note, :root .note { background: color-mix(in srgb, var(--card) 88%, transparent) !important; color: var(--ink-1) !important; -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--rim), var(--lift) !important; }
:root .toast { background: var(--glass), var(--card) !important; box-shadow: var(--rim), var(--lift) !important; }

/* one red: labels and counts are ink, red stays for the live dot */
:root .weight.major, :root .weight.big, :root .fy-k, :root .card-meta .weight { color: var(--ink-1) !important; }
:root .fy-card.hero .fy-k { color: rgba(255, 255, 255, .88) !important; }
:root .leadc.major, :root .leadc.big { border-left-color: transparent; }

/* the Top news lead and every lead photo: a rounded glass card, never edge to edge */
:root .leadc { margin: 0 !important; border-radius: 22px !important; background: var(--glass), var(--card) !important; box-shadow: var(--rim), var(--lift) !important; overflow: hidden; }
@media (max-width: 960px) { :root .leadc-body { padding: 14px 16px 16px !important; } }
.fy-card.hero { margin: 0 0 14px !important; border-radius: 22px !important; }

/* the brief's two quiet actions: glass pills (no dot: red is kept for live) */
:root .swipe-open, :root .ci-chip { min-height: 42px; padding: 0 16px !important; border-radius: 999px; background: var(--glass), var(--card) !important; box-shadow: var(--rim) !important; color: var(--ink-1) !important; font-weight: 650; text-decoration: none !important; white-space: nowrap; }
:root .swipe-open svg { display: none; }
:root .swipe-open::before { content: none; }
:root .ci-chip.hot::before { background: var(--ink-1); box-shadow: none; }
@media (max-width: 420px) { :root .swipe-open, :root .ci-chip { white-space: normal; text-align: left; padding: 10px 16px !important; } }
/* links that are controls read as quiet grey text, not underlined bold */
.legend summary, .fy-skip { text-decoration: none !important; color: var(--ink-3) !important; font-weight: 600 !important; }
.legend summary::before { content: '›' !important; font-size: 1.2em; }
.legend[open] summary::before { transform: rotate(90deg); }
.fy-sec a, .sec-head a, .fy-more { text-decoration: none !important; color: var(--ink-3) !important; font-weight: 600 !important; }
.fy-sec a::after, .sec-head a::after, .fy-more::after { content: " ›"; }

/* the feed chips stick under the header on frosted glass, so text never shows half-cut beneath them */
:root .fy-chips { background: var(--frost) !important; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }

/* header over the map, and the desktop header: the same glass squares */
/* one icon-button style on Home and on the Map: the theme's glass card, 42px, the tile's rounded square */
@media (max-width: 960px) { :root body[data-view="map"] .topbar .tool, :root body[data-view="map"] .topbar .get-alerts, :root body[data-view="map"] .topbar .health { width: 42px; min-width: 42px; height: 42px; padding: 0 !important; border: 0 !important; border-radius: 13px !important; background: var(--glass), var(--card) !important; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: var(--rim), var(--lift) !important; color: var(--ink-1) !important; display: inline-grid; place-items: center; } }
@media (min-width: 961px) { :root body[data-view="map"] .topbar .tool, :root body[data-view="map"] .topbar .get-alerts, :root body[data-view="map"] .topbar .profile-btn, :root body[data-view="map"] .topbar .aa-btn, :root body[data-view="map"] .topbar .health { width: auto !important; min-width: 42px; justify-content: center; height: 42px; padding: 0 16px 0 13px !important; border: 0 !important; border-radius: 13px !important; background: var(--glass), var(--card) !important; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: var(--rim), var(--lift) !important; color: var(--ink-1) !important; display: inline-flex; flex-direction: row; align-items: center; gap: 7px; white-space: nowrap; } }
:root body[data-view="map"] .topbar .tool svg { fill: currentColor; }
@media (min-width: 961px) {
  :root body[data-view="map"] .topbar .profile-btn, :root body[data-view="map"] .topbar .aa-btn { padding: 0 !important; width: 42px !important; }
  /* the Messages button (dm.js) is the same square as its neighbours, on Home and on the Map */
  :root .topbar #dmBtn { display: inline-grid; place-items: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 0; border-radius: 13px; background: var(--glass), var(--card) !important; box-shadow: var(--rim), var(--lift) !important; color: var(--ink-1) !important; opacity: 1; }
}
@media (min-width: 961px) {
  :root body:not([data-view="map"]) .topbar .get-alerts, :root body:not([data-view="map"]) .topbar .profile-btn { width: auto !important; min-width: 0; height: 42px; padding: 0 16px 0 13px !important; border-radius: 13px !important; background: var(--glass), var(--card) !important; box-shadow: var(--rim), var(--lift) !important; color: var(--ink-1) !important; }
}
/* the map's Live tag: dark glass, white type, glowing dot */
.topbar .live { height: 26px; padding: 0 11px 0 9px !important; gap: 7px !important; background: rgba(16, 16, 20, .62) !important; -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .09); color: #fff !important; font-weight: 650 !important; font-size: 12.5px !important; }
.topbar .live i { width: 7px !important; height: 7px !important; background: #ff2d2d !important; box-shadow: 0 0 8px rgba(255, 45, 45, .8), 0 0 2px rgba(255, 45, 45, .95) !important; }
.topbar .live.stale i { background: #8e8e93 !important; box-shadow: none !important; }

/* the globe's story labels: dark glass cards, not paper */
.spin span, .spin:hover span, .spin:focus span, .spin.crowd:hover span, .spin.crowd:focus span { background: rgba(18, 18, 22, .8) !important; color: #f5f5f7 !important; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 34px rgba(0, 0, 0, .55) !important; }
.spin:hover span, .spin:focus-visible span { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1.5px rgba(255, 255, 255, .3), 0 14px 34px rgba(0, 0, 0, .55) !important; }
.spin em { color: #a1a1a6 !important; }
.spin.hot em { color: #fff !important; }
.spin img { background: #26262b !important; }
.spin i { background: #f5f5f7 !important; box-shadow: 0 0 0 3px rgba(245, 245, 247, .18), 0 2px 8px rgba(0, 0, 0, .6) !important; }
.spin.hot i { background: #ff2d2d !important; box-shadow: 0 0 0 3px rgba(255, 45, 45, .25), 0 0 12px rgba(255, 45, 45, .7) !important; }
.spin.hot i::after { border-color: #ff2d2d !important; }
body.map-light .spin span { background: rgba(255, 255, 255, .94) !important; color: #14171a !important; }
/* map panels and popups: solid dark glass that stays on screen */
.maplibregl-popup-content { background: var(--glass), #141418 !important; color: #f5f5f7 !important; border: 0 !important; border-radius: 16px !important; box-shadow: var(--rim, inset 0 0 0 1px rgba(255, 255, 255, .08)), 0 20px 50px rgba(0, 0, 0, .6) !important; max-width: min(300px, calc(100vw - 32px)); }
.maplibregl-ctrl-group, .spin-key { background: rgba(18, 18, 22, .72) !important; border-color: rgba(255, 255, 255, .09) !important; }
#map { background: radial-gradient(ellipse 120% 90% at 50% 50%, #0d0d10 0%, #040405 72%) !important; }

/* the story sheet: a lifted glass panel with a grabber; the close button is frosted so text under it stays out of the way */
:root .sheet-panel { background: var(--sheet) !important; box-shadow: var(--rim), 0 -20px 60px rgba(0, 0, 0, .35) !important; }
@media (max-width: 960px) {
  .sheet-panel::before { content: ''; position: relative; z-index: 7; display: block; width: 40px; height: 5px; margin: -16px auto 14px; border-radius: 3px; background: var(--grabber); }
}
:root .sheet-close { background: color-mix(in srgb, var(--card-2) 80%, transparent) !important; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: var(--rim) !important; color: var(--ink-1) !important; }

/* today's stories (the deck): the page's own black, white labels with the live dot, one row of outlets */
:root[data-theme="dark"] .swipe, :root[data-theme="dark"] .swp, :root[data-theme="dark"] .swp.end { background: var(--paper) !important; }
:root[data-theme="dark"] .swp { --swbg: #09090b; --sw-ink2: #c7c7cc; --sw-ink3: #8e8e93; --sw-chip: rgba(255, 255, 255, .07); --sw-chip-ink: #e5e5ea; --sw-line: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .swp .sw-kick .weight.major, :root[data-theme="dark"] .swp .sw-kick .weight.big { color: #fff !important; }
:root[data-theme="dark"] .swp.major .sw-hero b, :root[data-theme="dark"] .swp.big .sw-hero b { color: #fff !important; }
.swp.major .sw-hero b::after { content: ''; display: inline-block; width: .13em; height: .13em; margin: .04em 0 0 .07em; vertical-align: top; border-radius: 50%; background: #ff2d2d; box-shadow: 0 0 .12em rgba(255, 45, 45, .85), 0 0 .03em rgba(255, 45, 45, .95); }
:root[data-theme="dark"] .swp .sw-kick [class*="mine"], :root[data-theme="dark"] .swp .sw-kick .fy { color: var(--sw-ink3) !important; }
.swp .sw-outlets { flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.swp .sw-outlets li { flex: none; }
:root[data-theme="dark"] .swp .sw-outlets li { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.sw-photo { height: clamp(220px, 40dvh, 460px) !important; min-height: 0 !important; }
.swp.has-photo .sw-in { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
/* the end of the deck: the app tile over the Earth's lit rim */
:root[data-theme="dark"] .swp.end { background: url(/brand/horizon.png) center bottom / max(900px, 150%) auto no-repeat, radial-gradient(120% 60% at 50% 0%, #17171c, transparent 60%), var(--paper) !important; }
.swp.end .sw-in::before { content: ''; display: block; width: 76px; height: 76px; margin-bottom: 26px; border-radius: 23%; background: url(/brand/tile-160.png) center / cover; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .9); }

/* Alerts & Recaps: the recap preview is the board's notification card */
.ncard { position: relative; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 14px 14px; border-radius: 22px; background: var(--glass), var(--ncard); box-shadow: var(--rim), var(--lift); }
.ncard.has-img { grid-template-columns: 1fr 64px; column-gap: 12px; }
.nc-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.nc-top img { width: 20px; height: 20px; border-radius: 23%; flex: none; }
.nc-top b { font-weight: 600; color: var(--ink-2); }
.nc-top time { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nc-body { min-width: 0; }
.nc-title { display: block; font-size: 16px; font-weight: 700; color: var(--ink-1); line-height: 1.3; }
.nc-body p { margin: 3px 0 0 !important; font-size: 15px; line-height: 1.38; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nc-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; align-self: center; background: var(--card-2); }
.recap-preview { padding: 0 !important; background: none !important; box-shadow: none !important; }
.recap-preview .set-note { margin: 10px 2px 0 !important; }
/* recent alerts: the same notification cards */
:root .history .h-item { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 8px; padding: 38px 14px 14px; border: 0; border-radius: 20px; background: var(--glass), var(--ncard); box-shadow: var(--rim); }
:root .history .h-item.has-img { grid-template-columns: 1fr 60px; column-gap: 12px; }
:root .history .h-item::before { content: ''; position: absolute; top: 12px; left: 14px; width: 18px; height: 18px; border-radius: 23%; background: url(/brand/tile-96.png) center / cover; }
:root .history .h-item::after { content: 'What\2019s Going On'; position: absolute; top: 12px; left: 40px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); }
:root .history .h-item time { position: absolute; top: 12px; right: 14px; padding: 0; font-size: 13px; line-height: 18px; color: var(--ink-3); }
:root .history .h-item > div { grid-column: 1; grid-row: 1; min-width: 0; }
:root .history .h-item .h-thumb { grid-column: 2; grid-row: 1; width: 60px; height: 60px; border-radius: 12px; align-self: center; }
:root .history .h-item b { font-size: 16px; font-weight: 700; line-height: 1.3; }
:root .history .day { padding: 18px 2px 8px; font-weight: 650; }
.seg.small { display: inline-flex; width: auto; }
.seg.small button { flex: none !important; padding: 0 14px !important; }
#topicsSet .count:empty { display: none; }
/* radio choices: an empty ring, then a white ring with a white centre */
.level input[type="radio"] { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border-radius: 50%; border: 2px solid var(--rule-2); background: transparent; cursor: pointer; }
.level input[type="radio"]:checked { border-color: var(--ink-1); background: radial-gradient(circle, var(--ink-1) 0 4.5px, transparent 5px); }
.level input[type="radio"]:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 3px; }
:root .level:has(input:checked) { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink-1) 30%, transparent) !important; }

/* the bigger text sizes: chips and the photo credit stay in proportion */
:root[data-size="xl"] .fy-chip { height: 44px; font-size: 18px !important; }
:root[data-size="l"] .fy-chip { height: 40px; font-size: 16.5px !important; }
:root[data-size="xl"] .fy-credit, :root[data-size="l"] .fy-credit { font-size: 12px !important; }

.sec-head .link, .sec-head button.link { text-decoration: none !important; color: var(--ink-3) !important; font-weight: 600; }
/* empty screens: a glass tile with the screen's own icon, then one line on what to do */
body[data-feed="saved"] .fy-sec + .fy-empty { position: relative; padding-top: 84px; }
body[data-feed="saved"] .fy-sec + .fy-empty::after { content: ''; position: absolute; top: 0; left: 0; width: 64px; height: 64px; border-radius: 20px; background: var(--glass), var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V20l-6.5-4-6.5 4V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center / 28px no-repeat; box-shadow: var(--rim), var(--lift); }

/* ================= the owner's phone concept (2026-11-16): Home, Explore, Ask, the story page ================= */
/* Home: the tile alone in the bar, then the big name and its line */
.home-title { display: none; }
@media (max-width: 960px) {
  .topbar .brand-text { display: none !important; }
  .topbar .brand-icon { width: 42px !important; height: 42px !important; margin-top: 2px; }
  body[data-view="now"]:not([data-feed="saved"]):not([data-feed="explore"]):not([data-feed="ask"]) .home-title { display: block; margin: 4px 0 20px; }
  .home-title .home-mark { display: block; height: 31px; width: auto; color: var(--ink-1); overflow: visible; }
  .home-tag { margin: 9px 0 0 !important; font-size: 15px; font-weight: 500; color: var(--ink-3); }
  .fy-search { margin-top: 0 !important; }
}
.home-mark .bl-dot { fill: var(--onair); }
.home-mark .bl-glow { fill: var(--onair); opacity: .6; }
/* the open feed is the white pill, as in the concept */
:root .fy-chip.on { background: var(--ink-1) !important; color: var(--paper) !important; box-shadow: 0 6px 16px -8px rgba(127, 255, 255, .25) !important; }
/* the lead photo's Live tag: solid red with a white dot */
.fy-live { background: #ff2d2d !important; color: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 6px 16px -6px rgba(255, 45, 45, .7) !important; height: 26px !important; padding: 0 11px 0 9px !important; font-size: 13px; }
.fy-live::before { background: #fff !important; box-shadow: none !important; width: 6px !important; height: 6px !important; }
/* list rows: the photo on the left, then the headline, the topic and the time, the bookmark at the end */
.fy-card.row:not(.noimg) { grid-template-columns: 84px 1fr !important; column-gap: 14px !important; }
.fy-card.row:not(.noimg) .fy-img { grid-column: 1 !important; grid-row: 1 !important; width: 84px; margin: 2px 0 0 !important; border-radius: 14px !important; }
.fy-card.row:not(.noimg) .fy-body { grid-column: 2 !important; grid-row: 1 !important; }
.scard.has-pic { grid-template-columns: 84px 1fr !important; column-gap: 14px; }
.scard.has-pic .scard-pic { grid-column: 1; grid-row: 1; width: 84px; border-radius: 14px; align-self: start; margin-top: 2px; }
.scard.has-pic .scard-body { grid-column: 2; grid-row: 1; min-width: 0; }
:root[data-size="xl"] .fy-card.row:not(.noimg), :root[data-size="xl"] .scard.has-pic { grid-template-columns: 104px 1fr !important; }
:root[data-size="xl"] .fy-card.row:not(.noimg) .fy-img, :root[data-size="xl"] .scard.has-pic .scard-pic { width: 104px; }
/* Explore and Ask are their own screens inside Now: no search bar or feed chips above them */
body[data-feed="explore"] #nowView .now-inner > :not(.fy), body[data-feed="ask"] #nowView .now-inner > :not(.fy) { display: none !important; }
.bottom-nav [data-tab="explore"] .ic-on { display: none; }
.bottom-nav [data-tab="explore"].on .ic-off { display: none; }
.bottom-nav [data-tab="explore"].on .ic-on { display: grid; }
/* Explore */
.xp-title, .ask-title { margin: 6px 0 0 !important; font-size: 32px; line-height: 1.05; font-weight: 720; letter-spacing: -0.022em; color: var(--ink-1); }
.xp-sub { margin: 8px 0 18px !important; font-size: 15px; color: var(--ink-3); }
.xp-map { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; width: 100%; min-height: 132px; margin: 0 0 18px; padding: 16px 16px 15px 18px; border: 0; border-radius: 22px; overflow: hidden; text-align: left; cursor: pointer; color: #fff;
  background: url(/brand/horizon.png) 50% 0% / 150% auto no-repeat, radial-gradient(120% 90% at 80% 0%, #1c1c22, #0c0c0f 70%); box-shadow: var(--rim), var(--lift); }
.xp-map::after { content: ''; position: absolute; top: 18px; right: 22px; width: 11px; height: 11px; border-radius: 50%; background: #ff2d2d; box-shadow: 0 0 12px rgba(255, 45, 45, .85), 0 0 3px rgba(255, 45, 45, .95); }
.xp-map b { display: block; font-size: 18px; font-weight: 720; }
.xp-map small { display: block; margin-top: 3px; font-size: 14px; color: #c7c7cc; }
.xp-chev { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.xp-map .xp-chev { color: #fff; }
.xp-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 6px; padding: 2px 18px 8px; }
.xp-tabs::-webkit-scrollbar { display: none; }
.xp-tabs .fy-chip { flex: none; }
.xp-pane { margin: 0 0 26px; min-height: 120px; }
.xp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink-1); text-align: left; cursor: pointer; font: inherit; }
.xp-row:last-child { border-bottom: 0; }
.xp-row b { display: block; font-size: 16px; font-weight: 650; line-height: 1.3; }
.xp-row small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.xp-t, .xp-q { flex: 1; min-width: 0; }
.xp-q small { margin: 0 0 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.xp-trend { flex: none; width: 22px; color: var(--ink-2); display: grid; place-items: center; }
.xp-trend svg { width: 20px; height: 20px; }
.xp-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.xp-pills .fy-pill { display: inline-flex; align-items: center; gap: 7px; }
.xp-pills .ti { color: var(--ink-2); }
.xp-hint { margin: 6px 0 4px !important; font-size: 14px; color: var(--ink-3); }
.xp-h { margin: 0 0 12px !important; font-size: 19px; font-weight: 720; letter-spacing: -0.01em; }
.xp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.xp-tile { display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 92px; padding: 14px 6px; border: 0; border-radius: 18px; background: var(--glass), var(--card); box-shadow: var(--rim); color: var(--ink-1); font: 600 14px/1.2 var(--font); cursor: pointer; text-align: center; }
.xp-tile .ti { width: 26px; height: 26px; color: var(--ink-1); }
.xp-tile:active, .xp-row:active, .xp-map:active { transform: scale(.985); }
@media (min-width: 600px) { .xp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
/* Ask: the Earth's rim and the live dot, then one question */
.ask { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 24px; }
.ask-globe { position: relative; width: calc(100% + 36px); height: 220px; margin: -6px -18px 4px; background: url(/brand/dome.png) 50% 100% / auto 100% no-repeat; -webkit-mask: linear-gradient(to bottom, #000 70%, transparent); mask: linear-gradient(to bottom, #000 70%, transparent); }
.ask-globe i { display: none; } /* no stray red dot over the Earth: red is kept for live */
.ask-title { max-width: 12ch; font-size: 34px; text-align: center; text-wrap: balance; }
.ask-form { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; height: 54px; margin: 22px 0 10px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--glass), var(--card); box-shadow: var(--rim), var(--lift); color: var(--ink-3); }
.ask-form:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink-2), var(--lift); }
.ask-form .ask-ico { width: 20px; height: 20px; flex: none; }
.ask-form input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: 500 16px/1 var(--font); color: var(--ink-1); }
.ask-form input::placeholder { color: var(--ink-3); }
.ask-form input::-webkit-search-cancel-button { display: none; }
.ask-form button { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink-1); color: var(--paper); cursor: pointer; }
.ask-form button svg { width: 20px; height: 20px; }
.ask-note { margin: 0 0 20px !important; max-width: 36ch; font-size: 13px; color: var(--ink-3); }
.ask-sugs { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.ask-sug { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; box-shadow: var(--rim); color: var(--ink-1); font: 600 14.5px/1.25 var(--font); cursor: pointer; text-align: left; }
.ask-sug svg { width: 15px; height: 15px; flex: none; color: var(--ink-2); }
.ask-deck { margin-top: 22px; border: 0; background: none; color: var(--ink-3); font: 600 14px var(--font); cursor: pointer; }
.ask-deck::after { content: ' ›'; }
/* the story page, as rows (the owner's phone concept) */
.sheet-panel:has(.sh-bar) .sheet-close { display: none !important; }
.sh-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 6px; margin: -24px -20px 14px; padding: 10px 12px; background: color-mix(in srgb, var(--sheet) 86%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
@media (min-width: 961px) { .sh-bar { margin: -30px -36px 16px; padding: 12px 20px; } }
.sh-bar button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 13px; background: none; color: var(--ink-1); cursor: pointer; }
.sh-bar button svg { width: 23px; height: 23px; }
.sh-bar button:hover { background: var(--hover); }
.sh-bar .sh-sp { flex: 1; }
.sh-save.on svg path { fill: currentColor; }
.sh-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; padding: 12px; border-radius: 18px; background: var(--glass), var(--card); box-shadow: var(--rim), var(--lift); }
.sh-menu[hidden] { display: none; }
.sh-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; margin: 0 0 12px; border-radius: 999px; background: var(--glass), var(--card); box-shadow: var(--rim); font-size: 13px; font-weight: 650; color: var(--ink-1); }
.sheet-panel .sh-title { margin-top: 0 !important; }
.sh-by { display: flex; align-items: center; gap: 11px; margin: 16px 0 16px; }
.sh-by img { width: 34px; height: 34px; border-radius: 23%; flex: none; }
.sh-by b { display: flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 700; color: var(--ink-1); }
.sh-by b i { width: 6px; height: 6px; margin-top: -8px; border-radius: 50%; background: #ff2d2d; box-shadow: 0 0 6px rgba(255, 45, 45, .8); }
.sh-by span { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.sh-by .sh-live { width: 7px; height: 7px; border-radius: 50%; background: #ff2d2d; box-shadow: 0 0 7px rgba(255, 45, 45, .8); flex: none; }
.sheet-panel .sh-img { margin: 0 0 14px !important; border-radius: 20px; overflow: hidden; }
.sh-sum { position: relative; margin: 0 0 14px; padding: 14px 16px 14px 20px; border-radius: 18px; background: var(--glass), var(--card); box-shadow: var(--rim); }
.sh-sum::before { content: ''; position: absolute; left: 10px; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: var(--ink-3); }
.sh-sum b { display: block; font-size: 16px; font-weight: 720; }
.sh-sum p { margin: 6px 0 4px !important; font-size: 15px; line-height: 1.42; color: var(--ink-2); }
.sh-sum span { font-size: 13px; color: var(--ink-3); }
.sh-row { border-bottom: 1px solid var(--rule); }
.sh-row > summary { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 4px 2px; list-style: none; cursor: pointer; font-size: 16.5px; font-weight: 650; color: var(--ink-1); }
.sh-row > summary::-webkit-details-marker { display: none; }
.sh-row > summary > svg:first-child { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.sh-row > summary span { flex: 1; }
.sh-row > summary em { font-style: normal; min-width: 26px; height: 24px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--card-2, rgba(255, 255, 255, .08)); font-size: 13px; color: var(--ink-2); }
.sh-row > summary > svg:last-child { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .15s; }
.sh-row[open] > summary > svg:last-child { transform: rotate(90deg); }
.sh-row-in { padding: 2px 0 16px; }
.sh-row-in .sides { margin-top: 4px; }
.sh-sources { list-style: none; margin: 0; padding: 0; }
.sh-sources li a { display: block; padding: 10px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.sh-sources li:first-child a { border-top: 0; }
.sh-sources b { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.sh-sources span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .sh-row > summary > svg:last-child { transition: none; } }
/* phones: the header is the tile and the bell (text size lives under Alerts, Reading); the tab bar floats as a capsule
   with the round Earth in the middle, as in the owner's phone concept */
@media (max-width: 960px) {
  .topbar .aa-btn { display: none !important; }
  :root .bottom-nav, :root body[data-view="map"] .bottom-nav, :root body.map-light[data-view="map"] .bottom-nav { left: 12px !important; right: 12px !important; bottom: calc(8px + env(safe-area-inset-bottom)) !important; height: 64px !important; padding: 0 8px !important; border: 0 !important; border-radius: 32px !important; background: var(--bar) !important; -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: var(--bar-rim) !important; overflow: visible; }
  :root .view { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
  /* the round Earth: the brand's red dot stays on the tile and the wordmark; here it is grey, so red only ever means live */
  .bottom-nav .tab-globe img { width: 62px !important; height: 62px !important; border-radius: 50% !important; transform: translateY(-14px) !important; filter: grayscale(1) brightness(1.08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 5px var(--orb-ring), 0 14px 28px -10px rgba(0, 0, 0, .6) !important; }
  .bottom-nav .tab-globe:active img { transform: translateY(-12px) scale(.96) !important; }
  .bottom-nav .tab-globe.on img { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .45), 0 0 0 5px var(--orb-ring), 0 14px 28px -10px rgba(0, 0, 0, .6) !important; }
}
/* list rows: a smaller photo on the left, the bookmark at the far right */
.fy-card.row:not(.noimg) { grid-template-columns: 72px 1fr !important; }
.fy-card.row:not(.noimg) .fy-img { width: 72px; border-radius: 13px !important; }
.scard.has-pic { grid-template-columns: 72px 1fr !important; }
.scard.has-pic .scard-pic { width: 72px; border-radius: 13px; }
.fy-card.row { position: relative; padding-right: 42px !important; }
.fy-card.row .fy-save { position: absolute !important; right: -6px; top: 50%; transform: translateY(-50%); margin: 0 !important; }

/* ---------- the owner's newest screens: Home greets, search is a tab, Explore opens on the globe, Ask is a chat ---------- */
@media (max-width: 960px) {
  body[data-view="map"] .topbar .brand-text { display: none !important; }
  body:not([data-view="map"]) .topbar .brand-text { display: flex !important; }
  .topbar .brand-tag { display: none !important; }
  .topbar .brand-text .brand-logo { height: 19px !important; }
  body[data-view="now"] #nowView .now-inner > .fy-search { display: none !important; }
  .home-title { margin: 6px 0 16px !important; }
}
.home-greet { margin: 0 !important; font-size: 31px; line-height: 1.08; font-weight: 720; letter-spacing: -0.022em; color: var(--ink-1); }
/* rows: a 4:3 photo on the left */
.fy-card.row:not(.noimg) { grid-template-columns: 96px 1fr !important; }
.fy-card.row:not(.noimg) .fy-img { width: 96px; aspect-ratio: 4 / 3 !important; }
.scard.has-pic { grid-template-columns: 96px 1fr !important; }
.scard.has-pic .scard-pic { width: 96px; aspect-ratio: 4 / 3; }
/* Explore */
.xp-search { margin: 0 0 14px !important; }
.xp-tabs .fy-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px !important; }
.xp-tabs .fy-chip svg { width: 18px; height: 18px; }
.xp-globe { position: relative; margin: 4px 0 6px; }
.xp-globe-img { position: relative; display: block; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; }
.xp-globe-img img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 22px rgba(200, 210, 230, .12)); }
.xp-pin { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #f5f5f7; box-shadow: 0 0 0 3px rgba(245, 245, 247, .16), 0 0 10px rgba(255, 255, 255, .45); }
.xp-pin.hot { background: #ff2d2d; box-shadow: 0 0 0 3px rgba(255, 45, 45, .22), 0 0 14px rgba(255, 45, 45, .85); }
.xp-pin.lead { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
.xp-pin.lead.hot::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid #ff2d2d; opacity: 0; animation: onair 2.4s ease-out infinite; }
.xp-pin-card { position: absolute; left: 50%; top: calc(var(--y) - 4px); transform: translate(-36%, -100%); display: flex; align-items: center; gap: 10px; width: min(78%, 300px); padding: 8px 10px 8px 8px; border: 0; border-radius: 16px; background: rgba(22, 22, 26, .84); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 36px -10px rgba(0, 0, 0, .9); color: #f5f5f7; text-align: left; cursor: pointer; font: inherit; }
.xp-pin-card img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.xp-pin-card span { flex: 1; min-width: 0; }
.xp-pin-card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.25; }
.xp-pin-card small { display: block; margin-top: 2px; font-size: 12px; color: #a1a1a6; }
.xp-pin-card .xp-chev { width: 16px; height: 16px; color: #a1a1a6; }
.xp-open { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px auto 8px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-3); font: 600 14px var(--font); cursor: pointer; }
.xp-open svg { width: 17px; height: 17px; }
.xp-h { display: flex; align-items: center; gap: 10px; margin-top: 10px !important; }
.xp-h svg { width: 22px; height: 22px; color: var(--ink-1); }
.xp-rows { margin-bottom: 18px; }
.xp-rows .xp-trend { color: var(--ink-3); }
.xp-pane > .xp-grid { margin-top: 4px; }
.xp-pane > .xp-pills { margin-top: 14px; }
/* Ask: a conversation */
.ask.chat { align-items: stretch; text-align: left; min-height: 100%; }
.ask-head { display: flex; align-items: center; justify-content: center; position: relative; margin: 0 0 14px; }
.ask-head img { width: 40px; height: 40px; border-radius: 23%; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .9); }
.ask-clear { position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); font: 600 14px var(--font); cursor: pointer; padding: 8px 4px; }
.ask-thread { display: grid; gap: 14px; width: 100%; }
.ask-me { display: flex; justify-content: flex-end; }
.ask-me p { margin: 0 !important; max-width: 82%; padding: 11px 15px; border-radius: 20px 20px 6px 20px; background: var(--glass), #1f1f24; box-shadow: var(--rim); font-size: 16px; line-height: 1.38; color: var(--ink-1); }
.ask-bot { display: flex; align-items: flex-start; gap: 10px; }
.ask-bot > img { width: 30px; height: 30px; border-radius: 23%; flex: none; margin-top: 2px; }
.ask-bot > div { flex: 1; min-width: 0; }
.ask-bot p { margin: 4px 0 10px !important; font-size: 16px; line-height: 1.42; color: var(--ink-1); }
.ask-bot .ask-q { display: inline-block; margin-top: 0 !important; padding: 9px 14px; border-radius: 6px 18px 18px 18px; background: var(--glass), #1a1a1f; box-shadow: var(--rim); }
.ask-typing { color: var(--ink-3) !important; }
.ask-card { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 20px; background: var(--glass), #141418; box-shadow: var(--rim); }
.ask-card .fy-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; }
.ask-card .fy-pill.on { background: var(--lit) !important; box-shadow: var(--lit-rim) !important; color: #fff; }
.ask-card .fy-pill svg { width: 16px; height: 16px; }
.ask-recap { display: grid; gap: 0; padding: 4px 14px; }
.ask-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink-1); text-align: left; cursor: pointer; font: inherit; }
.ask-opt:last-child { border-bottom: 0; }
.ask-opt i { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--rule-2); }
.ask-opt.on i { border-color: var(--ink-1); background: radial-gradient(circle, var(--ink-1) 0 4.5px, transparent 5px); }
.ask-opt b { display: block; font-size: 16px; font-weight: 650; }
.ask-opt small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.ask-res { display: grid; margin: 0 0 10px; border-radius: 18px; overflow: hidden; background: var(--glass), #141418; box-shadow: var(--rim); }
.ask-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; text-decoration: none; color: var(--ink-1); border-bottom: 1px solid var(--rule); }
.ask-row:last-child { border-bottom: 0; }
.ask-row img { width: 54px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; }
.ask-row b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 650; line-height: 1.3; }
.ask-row small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.ask-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-bar { position: sticky; bottom: 0; z-index: 3; margin: 18px 0 0 !important; }
.ask.chat .ask-bar { margin-top: auto !important; }
.ask .ask-bar::before { content: ''; position: absolute; left: -18px; right: -18px; bottom: -14px; top: -16px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--paper) 40%); pointer-events: none; }
.ask:not(.chat) .ask-globe, .ask:not(.chat) .ask-title { order: -1; }
.ask:not(.chat) .ask-note { order: 1; margin-top: 10px !important; }
.ask:not(.chat) .ask-sugs { order: 2; margin-top: 14px; }
.ask:not(.chat) .ask-thread, .ask:not(.chat) .ask-deck { order: 3; }
/* phones: the bell is a bare line icon, as in the concept */
@media (max-width: 960px) {
  :root body:not([data-view="map"]) .topbar .get-alerts { background: none !important; box-shadow: none !important; width: 44px; min-width: 44px; }
  .topbar .get-alerts svg { width: 25px !important; height: 25px !important; }
  :root body:not([data-view="map"]) .topbar .get-alerts.on::after { top: 8px; right: 9px; }
}

/* ---------- Ask, round 3 (from the owner's phone): the message bar sits at the bottom, one tile, real score answers ---------- */
.ask.chat { display: flex; flex-direction: column; padding-bottom: 4px !important; min-height: calc(100dvh - 168px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
@media (min-width: 961px) { .ask.chat { min-height: calc(100vh - 160px); } }
.ask.chat .ask-thread { flex: 1 0 auto; align-content: start; }
.ask.chat .ask-bar { margin-top: 16px !important; }
.ask-head { justify-content: flex-end; min-height: 32px; margin: -4px 0 8px; }
.ask-clear { position: static; transform: none; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--glass), var(--card); box-shadow: var(--rim); color: var(--ink-2); font: 600 13.5px var(--font); }
.ask-score { display: grid; gap: 8px; margin: 0 0 10px; padding: 12px 14px; border-radius: 18px; background: var(--glass), #141418; box-shadow: var(--rim); color: var(--ink-1); text-decoration: none; }
.ask-score small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ask-team { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink-2); }
.ask-team img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.ask-team b { flex: 1; font-weight: 650; }
.ask-team em { font-style: normal; font-size: 19px; font-weight: 720; font-variant-numeric: tabular-nums; }
.ask-team.win, .ask-team.win b, .ask-team.win em { color: var(--ink-1); }
.ask-src { margin: -2px 0 10px !important; font-size: 12.5px !important; color: var(--ink-3) !important; }

/* the chat sits right above the tab bar */
body[data-feed="ask"] #nowView .now-inner { padding-bottom: 8px !important; }

/* ========== STORY PAGE: THE FULLER STORY (appended block; story-pages work) ==========
   What we know (the outlets' own summary sentences, credited), Numbers & quotes, Official sources, What's next,
   Background, Related, and each outlet's one-line summary under its headline. Existing tokens only; no new accent. */
.sh-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); font-weight: 400; }
.sh-desc a { color: inherit; text-decoration: none; }
.sh-desc a:hover, .sh-desc a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.side li .sh-desc { margin-top: 4px; }
.sh-row.sh-wwk { border-bottom: 0; margin-bottom: 4px; }
.wwk { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 10px; }
.wwk li { padding: 13px 15px 11px; border-radius: 16px; background: var(--glass, none), var(--card); box-shadow: var(--rim, inset 0 0 0 1px var(--rule)); }
.wwk blockquote { margin: 0; font-size: 15.5px; line-height: 1.46; color: var(--ink-1); text-wrap: pretty; }
.wwk-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 9px 0 0 !important; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.wwk-by b { font-weight: 700; color: var(--ink-2); }
.wwk-by a, .kn-v small a, .kn-quotes a, .kn-next a { color: inherit; text-decoration: none; }
.wwk-by a:hover, .kn-v small a:hover, .kn-quotes a:hover, .kn-next a:hover { text-decoration: underline; text-underline-offset: 2px; }
.wwk-l { font-style: normal; font-weight: 600; padding: 2px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink-2); }
.wwk-l.wwk-official { color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--ink-3); }
.wwk-l.wwk-view { font-style: italic; }
.wwk-by span { flex-basis: 100%; }
.sh-row-in > .fine { margin: 8px 0 0 !important; font-size: 12.5px; color: var(--ink-3); }
.kn-figs, .kn-quotes, .kn-off, .kn-next, .kn-bg, .kn-rel { list-style: none; margin: 0; padding: 0; }
.kn-figs li, .kn-quotes li, .kn-off li, .kn-next li, .kn-bg li, .kn-rel li { padding: 10px 0; border-top: 1px solid var(--rule); }
.kn-figs li:first-child, .kn-quotes li:first-child, .kn-off li:first-child, .kn-next li:first-child, .kn-bg li:first-child, .kn-rel li:first-child { border-top: 0; }
.kn-figs + .kn-quotes { border-top: 1px solid var(--rule); }
.kn-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.kn-v b { font-size: 16px; font-weight: 700; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.kn-v small { font-size: 12.5px; color: var(--ink-3); }
.kn-differ { display: grid; gap: 6px; }
.kn-differ .kn-k { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.kn-differ .kn-v { padding: 8px 12px; border-radius: 12px; background: var(--glass, none), var(--card); box-shadow: var(--rim, inset 0 0 0 1px var(--rule)); }
@media (min-width: 520px) { .kn-differ { grid-template-columns: 1fr 1fr; } .kn-differ .kn-k { grid-column: 1 / -1; } }
.kn-quotes q { display: block; font-size: 15px; line-height: 1.45; color: var(--ink-1); quotes: '“' '”'; }
.kn-quotes span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.kn-quotes span b { color: var(--ink-2); font-weight: 650; }
.kn-ag { display: block; font-size: 12px; font-weight: 700; letter-spacing: .01em; color: var(--ink-3); }
.kn-off b, .kn-bg b, .kn-rel b { display: block; margin-top: 2px; font-size: 15px; line-height: 1.35; font-weight: 650; color: var(--ink-1); }
.kn-off a, .kn-rel a { color: inherit; text-decoration: none; }
.kn-off a:hover b, .kn-rel a:hover b { text-decoration: underline; text-underline-offset: 2px; }
.kn-off p, .kn-bg p { margin: 4px 0 0 !important; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.kn-off .kn-ins { color: var(--ink-1); }
.kn-off small, .kn-rel span, .kn-next span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.kn-next li { display: grid; gap: 4px; }
.kn-next time { font-size: 13px; font-weight: 700; color: var(--ink-1); }
.kn-next blockquote, .kn-next p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.kn-bg i { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.kn-bg a { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); text-underline-offset: 2px; }
.sh-row-in .fine a { color: inherit; }
.kn-v .kn-ctx { flex-basis: 100%; display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-3); quotes: '“' '”'; }

/* ==================== MAP (live map agent) — appended block; overrides earlier map rules, edit only below ==================== */
/* story pins: a zero-size marker on the exact spot; the dot is centred on it and the card hangs off the roomier side */
.spin { display: block; position: relative; width: 0; height: 0; max-width: none; gap: 0; padding: 0; }
.spin-hit { position: absolute; top: 0; left: -7px; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; width: max-content; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.spin.flip .spin-hit { left: auto; right: -7px; flex-direction: row-reverse; }
.spin-hit:focus-visible { outline: none; }
.spin-hit:focus-visible i { outline: 2px solid #fff; outline-offset: 3px; }
.spin.small:focus-within span, .spin.crowd:focus-within span { display: grid; }
.spin span { max-width: 300px; }
.spin small { grid-column: 1 / -1; display: block; margin-top: 4px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, .1); font: 600 12px/1.3 'Schibsted Grotesk', system-ui, sans-serif; color: #c7c7cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spin small:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
/* a story known only by its country: a ring over a softly shaded country, not a made-up exact dot */
.spin.area i { background: rgba(10, 10, 12, .35) !important; box-shadow: inset 0 0 0 2.5px #f5f5f7, 0 2px 8px rgba(0, 0, 0, .6) !important; }
.spin.area.hot i { box-shadow: inset 0 0 0 2.5px #ff2d2d, 0 0 12px rgba(255, 45, 45, .6) !important; }
/* a red pin that can't show its label goes white: red always comes with words */
.spin.hot.mute i { background: #f5f5f7 !important; box-shadow: 0 0 0 3px rgba(245, 245, 247, .18), 0 2px 8px rgba(0, 0, 0, .6) !important; }
.spin.hot.mute i::after { display: none; }
.spin.hot.mute.area i { background: rgba(10, 10, 12, .35) !important; box-shadow: inset 0 0 0 2.5px #f5f5f7 !important; }
.spin.hot.mute em { color: #a1a1a6 !important; }
/* new since the reader's last visit: a thin white ring around the dot */
.spin.new i::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); }
.spin.hot.new i::before { inset: -9px; }
/* phones: the card strip is the label; the pin whose card is in the middle grows */
body.has-strip .spin span { display: none !important; }
body.has-strip .spin-key { display: none !important; }
.spin i { transition: transform .2s; }
.spin.on i { transform: scale(1.4); }
.spin.on:not(.hot) i { box-shadow: 0 0 0 3px rgba(245, 245, 247, .35), 0 0 14px rgba(255, 255, 255, .45) !important; }
@media (max-width: 600px) { body:not(.has-strip) .spin:not(.small):not(.crowd) span { display: grid; } }

/* the strip of story cards under the globe on phones */
.spin-strip { position: fixed; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 6; display: flex; gap: 10px; padding: 6px 16px 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.spin-strip::-webkit-scrollbar { display: none; }
body:not([data-view="map"]) .spin-strip, body:not(.map-simple) .spin-strip, body.sheet-open .spin-strip, body.dz-open .spin-strip { display: none !important; }
.ss-card { flex: 0 0 min(82vw, 340px); scroll-snap-align: center; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px 8px 8px; border: 0; border-radius: 16px; background: rgba(22, 22, 26, .86); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 36px -10px rgba(0, 0, 0, .9); color: #f5f5f7; text-align: left; font: inherit; cursor: pointer; opacity: .66; transition: opacity .2s, box-shadow .2s; }
.ss-card.on { opacity: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1.5px rgba(255, 255, 255, .3), 0 16px 36px -10px rgba(0, 0, 0, .9); }
.ss-card.hot.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1.5px rgba(255, 45, 45, .55), 0 0 22px -4px rgba(255, 45, 45, .45), 0 16px 36px -10px rgba(0, 0, 0, .9); }
.ss-card img, .ss-card .ss-dot { flex: none; width: 48px; height: 48px; border-radius: 11px; object-fit: cover; background: #26262b; }
.ss-card .ss-dot { display: block; background: radial-gradient(circle, #f5f5f7 0 6px, transparent 6.5px), #26262b; }
.ss-card.hot .ss-dot { background: radial-gradient(circle, #ff2d2d 0 6px, transparent 6.5px), #26262b; }
.ss-card span { flex: 1; min-width: 0; }
.ss-card em { display: block; font: 600 12px/1.25 'Schibsted Grotesk', system-ui, sans-serif; font-style: normal; color: #a1a1a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-card.hot em { color: #ff5c5c; }
.ss-card.new em::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; vertical-align: 1px; }
.ss-card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font: 700 14px/1.28 'Schibsted Grotesk', system-ui, sans-serif; }
:root[data-size="xl"] .ss-card b, :root[data-size="l"] .ss-card b { font-size: 16px; }
@media (max-width: 960px) { body[data-view="map"].map-simple.has-strip .maplibregl-ctrl-bottom-right { bottom: calc(168px + env(safe-area-inset-bottom)); } }

/* the key: what red, white, a shaded country and a ring mean (only what is on the globe right now) */
.spin-key { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; width: max-content; max-width: calc(100vw - 32px); }
@media (min-width: 961px) { .spin-key { max-width: min(1000px, calc(100vw - 360px)); } }
.spin-key .k::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; vertical-align: 0; }
.spin-key .k-red::before { background: #ff2d2d; box-shadow: 0 0 8px rgba(255, 45, 45, .8); }
.spin-key .k-white::before { background: #f5f5f7; }
.spin-key .k-area::before { width: 13px; border-radius: 3px; background: rgba(242, 243, 241, .14); box-shadow: inset 0 0 0 1px rgba(242, 243, 241, .55); }
.spin-key .k-new::before { background: radial-gradient(circle, #f5f5f7 0 2.5px, transparent 3px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.spin-key .k-tap { color: #a1a1a6; font-weight: 500; }
/* desktop Simple: attribution in the corner, clear of the key */
@media (min-width: 961px) {
  body.map-simple .maplibregl-ctrl-bottom-right { right: 12px; bottom: 8px; }
}
@media (min-width: 961px) and (max-width: 1320px) { .spin-key { left: 16px; transform: none; justify-content: flex-start; max-width: calc(100vw - 380px); } }

/* country drill-down in Simple mode: the country panel slides in on its own (no tabs) */
body.map-simple.dz-open #rightPanel { display: flex !important; }
body.map-simple.dz-open #rightPanel > .tabs, body.map-simple.dz-open #rightPanel > .tabpanel { visibility: hidden; }
.dossier .dz-score b { color: #f5f5f7; }

/* header on the map at laptop widths: everything fits, "Get alerts" never clips */
@media (min-width: 961px) and (max-width: 1600px) {
  body[data-view="map"]:not(.map-simple) .topbar .clock { display: none; }
  body[data-view="map"]:not(.map-simple) .topbar .search { width: 236px; }
  body[data-view="map"]:not(.map-simple) .topbar #shareBtn span, body[data-view="map"]:not(.map-simple) .topbar #tourBtn span { display: none; }
  body[data-view="map"]:not(.map-simple) .topbar #shareBtn, body[data-view="map"]:not(.map-simple) .topbar #tourBtn { padding: 0 11px !important; }
}
@media (min-width: 961px) and (max-width: 1280px) { body[data-view="map"]:not(.map-simple) #healthText { display: none; } }

/* map popups: one dark-glass card for everything on the map (aircraft photo or icon, title, facts, source and time) */
.maplibregl-popup.pc-pop .maplibregl-popup-content { padding: 0 !important; overflow: hidden; border-radius: 18px !important; background: rgba(20, 20, 24, .9) !important; -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px -12px rgba(0, 0, 0, .85) !important; max-width: min(320px, calc(100vw - 32px)); }
.maplibregl-popup.pc-pop .maplibregl-popup-tip { border-top-color: rgba(20, 20, 24, .9) !important; border-bottom-color: rgba(20, 20, 24, .9) !important; }
.maplibregl-popup.pc-pop .maplibregl-popup-close-button { z-index: 2; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; padding: 0; font-size: 18px; line-height: 28px; color: #f5f5f7; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.maplibregl-popup.pc-pop .maplibregl-popup-close-button:hover { background: rgba(0, 0, 0, .7); }
.pc { width: min(300px, calc(100vw - 48px)); color: #f5f5f7; font: 400 13px/1.4 'Schibsted Grotesk', system-ui, sans-serif; }
.pc-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #26262c, #141418); overflow: hidden; }
.pc-media .pc-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .16); }
.pc-media .pc-ph svg { width: 64px; height: 64px; transform: rotate(45deg); }
.pc-media.loaded .pc-ph { display: none; }
.pc-media .pc-ph small { display: none; position: absolute; bottom: 10px; font-size: 11.5px; color: #8e8e93; }
.pc-media.none .pc-ph small { display: block; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-credit { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #e5e5ea; font-size: 11px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.pc-credit[href]:hover { text-decoration: underline; }
.pc-h { display: flex; align-items: flex-start; gap: 10px; padding: 14px 40px 0 14px; }
.pc.has-media .pc-h { padding-right: 14px; }
.pc-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.pc-ic svg { width: 19px; height: 19px; }
.pc-k { font-size: 11.5px; font-weight: 600; color: #a1a1a6; letter-spacing: .01em; }
.pc-t { margin-top: 1px; font-size: 15.5px; font-weight: 700; line-height: 1.28; color: #fff; overflow-wrap: anywhere; }
.pc-sub, .pc-type { margin: 6px 14px 0; color: #c7c7cc; font-size: 13px; }
.pc-type b { color: #f5f5f7; font-weight: 650; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 12px 14px 0; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.pc-grid div { padding: 7px 10px; background: rgba(20, 20, 24, .72); min-width: 0; }
.pc-grid dt { font-size: 10.5px; color: #8e8e93; text-transform: uppercase; letter-spacing: .04em; }
.pc-grid dd { margin: 1px 0 0; font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: #f5f5f7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-rows { margin: 10px 14px 0; color: #c7c7cc; }
.pc-rows p { margin: 0 0 3px; }
.pc-list { list-style: none; margin: 10px 14px 0; padding: 0; display: grid; gap: 1px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.pc-list a { display: block; padding: 7px 10px; background: rgba(20, 20, 24, .72); color: #f5f5f7; text-decoration: none; font-weight: 600; line-height: 1.3; }
.pc-list a:hover { background: rgba(40, 40, 46, .9); }
.pc-list small { display: block; font-size: 11px; font-weight: 500; color: #8e8e93; }
.pc-note { margin: 10px 14px 0; padding-left: 9px; border-left: 2px solid rgba(255, 255, 255, .25); color: #a1a1a6; font-size: 12px; }
.pc-btn { display: block; width: calc(100% - 28px); margin: 12px 14px 0; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font: 650 13.5px 'Schibsted Grotesk', system-ui, sans-serif; cursor: pointer; }
.pc-btn:hover { background: rgba(255, 255, 255, .16); }
.pc-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 9px 14px 11px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 11.5px; color: #8e8e93; }
.pc-f span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-f a { flex: none; color: #f5f5f7; font-weight: 650; text-decoration: none; }
.pc-f a::after { content: ' ↗'; }
.pc-f a:hover { text-decoration: underline; text-underline-offset: 2px; }
/* the country hover tip, in the same glass */
.hover-tip { background: rgba(20, 20, 24, .9); border: 0; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 30px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (max-width: 600px) { .pc-media { aspect-ratio: 2 / 1; } .pc-grid { margin-top: 10px; } .pc-grid div { padding: 5px 9px; } .pc-t { font-size: 15px; } .pc-h { padding-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .spin i, .ss-card { transition: none; } }
/* ==================== end MAP block ==================== */

/* ---------- deep test fixes: Home and feeds (2026-11-16) ---------- */
/* a row without a photo uses the whole width */
.fy-card.row.noimg { grid-template-columns: 1fr !important; }
.scard:not(.has-pic) { grid-template-columns: 1fr !important; }
/* the light theme: the reader's own deck cards were white on grey */
:root[data-theme="light"] .swp.mine:not(.has-photo) { background: var(--paper) !important; color: var(--ink-1) !important; }
:root[data-theme="light"] .swp.mine:not(.has-photo) .sw-title { color: var(--ink-1) !important; }
:root[data-theme="light"] .swp.mine:not(.has-photo) .sw-sum, :root[data-theme="light"] .swp.mine:not(.has-photo) .sw-ol, :root[data-theme="light"] .swp.mine:not(.has-photo) .sw-kick span, :root[data-theme="light"] .swp.mine:not(.has-photo) .sw-next { color: var(--ink-2) !important; }
:root[data-theme="light"] .swp.mine:not(.has-photo) .btn.ghost { color: var(--ink-1) !important; border-color: var(--rule-2) !important; box-shadow: inset 0 0 0 1.5px var(--rule-2) !important; }
/* the deck's progress bar follows its text column on wide screens */
@media (min-width: 700px) { .swp .sw-prog { left: 50% !important; right: auto !important; width: min(592px, calc(100% - 52px)); transform: translateX(-50%); } }
/* install card: glass, no white border */
:root .fy-install { border: 0 !important; background: var(--glass), var(--card) !important; box-shadow: var(--rim) !important; }
.fy-install b { text-wrap: balance; }
/* the toast fits on one line and sits above the round Earth button */
.note { white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) { .note { bottom: calc(104px + env(safe-area-inset-bottom)) !important; } }
/* the "more sports" disclosure in the picker had a stray › */
details.fy-more::after { content: none !important; }
/* the picker's sticky footer takes less of the screen */
.fy-chat .fy-pick-go { padding-top: 6px !important; padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important; }
.fy-chat .fy-pick-go .btn { min-height: 48px !important; }
.fy-chat .fy-pick-go p, .fy-chat .fy-pick-go .fy-hint { margin: 6px 0 0 !important; font-size: 12.5px !important; }
.fy-chat .fy-skip { margin-top: 2px !important; padding: 6px !important; }
/* the game's heading lands below the sticky chips */
#callit { scroll-margin-top: 72px; }
/* Saved is its own screen: no feed chips with nothing lit */
body[data-feed="saved"] .fy-chips { display: none !important; }
:root[data-theme="light"] body[data-feed="saved"] .fy-sec + .fy-empty::after { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314171a' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V20l-6.5-4-6.5 4V4.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center / 28px no-repeat; }
/* the greeting reserves its line until the script fills it */
.home-greet:empty { min-height: 34px; }

/* ---------- deep test fixes: robustness and accessibility (2026-11-16) ---------- */
/* a headline with a very long word never runs off the card */
h1, h2, h3, .sw-title, .sh-title, .xp-row b, .ask-row b, .fy-card h3, .scard h3, .leadc h2 { overflow-wrap: anywhere; }
/* light mode: the third grey passes 4.5:1 on paper */
:root[data-theme="light"] { --ink-3: #5f666e; }
/* quiet hours don't make the bell look disabled */
.get-alerts.quiet { opacity: 1 !important; filter: none !important; }
/* moving things stop for readers who asked for less motion */
@media (prefers-reduced-motion: reduce) { .xp-pin.lead.hot::after, .xp-pin::after { animation: none !important; } }
/* keyboard focus is always visible on the map pins */
.spin-hit:focus-visible, .spin:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }

/* ---------- alerts fixes (2026-11-16): settings, recap preview, Recent alerts ---------- */
/* text size: three visibly different A's (the "seg" rule above set all three to 14px) */
#readingSet .seg button[data-size="m"] { font-size: 14px !important; }
#readingSet .seg button[data-size="l"] { font-size: 17.5px !important; }
#readingSet .seg button[data-size="xl"] { font-size: 21.5px !important; }
/* ...and the chosen size reaches the Now greeting, the dark Recent-alerts rows and the map panels */
:root[data-size="l"] .home-greet { font-size: 34px; }
:root[data-size="xl"] .home-greet { font-size: 37px; }
:root[data-size="l"] .history .h-item b { font-size: 18px; }
:root[data-size="xl"] .history .h-item b { font-size: 20px; }
:root[data-size="xl"] .history .h-item::after, :root[data-size="xl"] .history .h-item time { font-size: 15px; }
:root[data-size="l"] .left > *, :root[data-size="l"] .right > * { zoom: 1.07; }
:root[data-size="xl"] .left > *, :root[data-size="xl"] .right > * { zoom: 1.15; }
:root[data-size="l"] .right > .tabs, :root[data-size="xl"] .right > .tabs { zoom: 1; } /* four tabs stay on one line */
/* quiet hours with alerts on: a small moon on the bell (never a faded bell; it replaces the "on" dot) */
.get-alerts { position: relative; }
.get-alerts.quiet::after, :root body:not([data-view="map"]) .topbar .get-alerts.on.quiet::after { content: ''; position: absolute; top: 5px; right: 5px; width: 11px; height: 11px; border-radius: 0; background: currentColor; box-shadow: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* turning alerts on: what went wrong, or the steps to unblock notifications, stays on screen */
.push-help { margin: 12px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink-1); font-size: .92em; line-height: 1.45; }
.push-help p { margin: 0; }
.push-help ol { margin: 6px 0 0; padding-left: 20px; }
.push-help li { margin: 3px 0; }
.push-extra { margin-top: 8px !important; }
.push-extra .link { font-size: inherit; padding: 0; }
.push-extra .pe-t { color: var(--ink-2); }
.push-help[hidden], .push-extra[hidden], .place-msg[hidden] { display: none !important; }
/* place search: a message that stays (location off), and "Searching…" while it looks */
.place-msg { margin: 8px 0 0 !important; color: var(--ink-1); }
#placeResults .searching { font-style: italic; }
/* the recap preview shows the whole text the notification will carry */
.recap-preview .nc-body p { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* ==================== end alerts fixes ==================== */

/* ==================== map fixes (live map deep test, 2026-11-16) — append-only ==================== */
/* story pins: a card with a photo keeps its photo column when hovered or focused (the hover rule used to reset it to one column, so the card reflowed and the photo jumped) */
.spin span:has(img), .spin:hover span:has(img), .spin:focus span:has(img), .spin:focus-within span:has(img), .spin.crowd:hover span:has(img), .spin.crowd:focus span:has(img), .spin.small:hover span:has(img) { grid-template-columns: 48px 1fr; padding-left: 8px; }
@media (max-width: 960px) { .spin span:has(img), .spin:hover span:has(img), .spin:focus span:has(img), .spin:focus-within span:has(img), .spin.crowd:hover span:has(img), .spin.small:hover span:has(img) { grid-template-columns: 44px 1fr; } }
/* the country panel's Crimea note */
.dossier .dz-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: #a1a1a6; }
/* aircraft cards: the type line, and the track line ("Orbiting over the Black Sea for 46 min") */
.pc-type b { font-weight: 650; }
.pc-orbit { margin: 6px 14px 0; font-size: 12.5px; color: #a1a1a6; }
.pc-orbit.on { color: var(--c); font-weight: 650; }
.pc-orbit.on::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; border: 1.5px solid currentColor; vertical-align: -1px; }
/* phones: map cards are a sheet in the free band between the header and the bars at the bottom (app.js measures it) */
@media (max-width: 600px) {
  .maplibregl-popup.pc-pop.pc-sheet { position: fixed !important; transform: none !important; top: auto !important; left: 8px !important; right: 8px !important; bottom: var(--sheet-b, calc(96px + env(safe-area-inset-bottom))) !important; width: auto !important; max-width: none !important; display: block !important; z-index: 8; }
  .maplibregl-popup.pc-pop.pc-sheet .maplibregl-popup-tip { display: none !important; }
  .maplibregl-popup.pc-pop.pc-sheet .maplibregl-popup-content { max-width: none !important; max-height: var(--sheet-h, 60vh); overflow-y: auto !important; overscroll-behavior: contain; }
  .pc-sheet .pc { width: auto; }
  .pc-sheet .pc-media { aspect-ratio: 2.6 / 1; }
  .pc-sheet .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Advanced layer list: watched regions are a dashed silver frame, not another amber dot */
.layer[data-layer="regions"] .sw { border-radius: 2px; width: 10px; height: 8px; background: transparent; border: 1.5px dashed var(--c); box-shadow: none; }
/* "Notable now": military aircraft up now by what they are for; each class flies to its aircraft in turn */
.mc-now { margin: 4px 2px 6px; }
.mc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 2px 4px 5px; font-size: 11.5px; font-weight: 650; color: var(--ink, #f5f5f7); }
.mc-h small { font-size: 11px; font-weight: 500; color: var(--mute, #8e8e93); }
.mc-list { display: flex; flex-wrap: wrap; gap: 4px; }
/* neutral chips: one quiet surface, ink type; no per-class rainbow (styles.css #leftPanel .mc agrees) */
.mc { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 9px 3px 7px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--soft, #d1d1d6); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.mc:not(.big) { opacity: .78; }
.mc:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .09); opacity: 1; }
.mc b { font-variant-numeric: tabular-nums; color: var(--ink, #f5f5f7); }
.mc-ic { flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--mc-shape) center / contain no-repeat; mask: var(--mc-shape) center / contain no-repeat; }
.mc-ic { --mc-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8c.8 0 1.3.7 1.3 1.6v5l7.2 4.3v1.9l-7.2-2.2v4.4l2.1 1.6v1.5L12 20.2l-3.4.7v-1.5l2.1-1.6v-4.4l-7.2 2.2v-1.9l7.2-4.3v-5c0-.9.5-1.6 1.3-1.6z'/%3E%3C/svg%3E"); }
.mc-ic.mc-heli { --mc-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='10' rx='3.4' ry='5'/%3E%3Crect x='11.2' y='14' width='1.6' height='8'/%3E%3Crect x='2' y='9.2' width='20' height='1.6' transform='rotate(45 12 10)'/%3E%3Crect x='2' y='9.2' width='20' height='1.6' transform='rotate(-45 12 10)'/%3E%3C/svg%3E"); }
.mc-ic.mc-drone { --mc-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1' y='9' width='22' height='2.4'/%3E%3Crect x='10.8' y='3' width='2.4' height='15'/%3E%3Cpath d='M12 16l-4 4 1 .8 3-2.6 3 2.6 1-.8z'/%3E%3C/svg%3E"); }
.mc-ic.mc-bomber { --mc-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l11 12-3 1.4-4-2-2 2-2-2-4 2L1 16z'/%3E%3C/svg%3E"); }
.mc-ic.mc-jet { --mc-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l1.5 5v4l7.5 6.5V18l-7.5-2.5v3.5l2.5 2.5v1L12 21.5 8 22.5v-1l2.5-2.5v-3.5L3 18v-1.5L10.5 10V6z'/%3E%3C/svg%3E"); }
/* ==================== end map fixes ==================== */
/* ==================== story fixes (2026-11-16) ====================
   The sticky top bar lives inside the scrolling panel: a sticky offset counts from the panel's padding edge, so top is minus
   that padding (24px on phones, 30px on desktop). At rest it sits where its negative margin puts it and covers nothing; scrolled,
   it meets the panel's top edge with no band of text above it. The grabber stays decorative. */
.sheet-panel .sh-bar { top: -24px; }
@media (min-width: 961px) { .sheet-panel .sh-bar { top: -30px; } }
.sheet-panel .sh-bar ~ .sh-tag, .sheet-panel .sh-bar ~ .sh-title { scroll-margin-top: 76px; }
/* (the glass tokens now exist in both themes, so the tag pill, the count badges, the latest-report card and the More menu
   use the same rules in light and dark) */
/* ==================== end story fixes ==================== */

/* ==================== ask fixes (2026-11-16): one-line facts with their source, the globe card beside its pin, the game's heading in view ==================== */
.ask-bot .ask-fact { margin: 2px 0 10px !important; padding: 12px 14px; border-radius: 16px; background: var(--glass), var(--card); box-shadow: var(--rim); font-size: 16px; line-height: 1.45; }
.ask-fact i.up { font-style: normal; color: #30d158; }
.ask-fact i.down { font-style: normal; color: #ff6b6b; }
.ask-fact small { font-size: 13px; color: var(--ink-3); }
.ask-fact a { color: var(--ink-1); font-weight: 650; white-space: nowrap; }
.ask-bot .ask-know { margin: 0 0 10px !important; font-size: 15px !important; line-height: 1.42; color: var(--ink-2) !important; }
.ask-know small, .ask-warn small { font-size: 12.5px; color: var(--ink-3); }
.ask-bot .ask-warn { margin: 0 0 10px !important; padding: 10px 12px; border-radius: 14px; background: rgba(255, 159, 10, .12); box-shadow: inset 0 0 0 1px rgba(255, 159, 10, .3); font-size: 14.5px !important; }
.ask-bot .ask-sub { margin: 4px 0 8px !important; font-size: 13px !important; font-weight: 700; color: var(--ink-3) !important; }
.ask-odds { display: inline-block; margin: 0 6px 2px 0; padding: 2px 9px; border-radius: 999px; background: rgba(255, 159, 10, .16); color: #ffb340; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.ask-days { list-style: none; margin: 0 0 10px; padding: 2px 14px; border-radius: 18px; background: var(--glass), var(--card); box-shadow: var(--rim); }
.ask-days li { display: grid; grid-template-columns: 6.8em 1fr; align-items: baseline; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.ask-days li:last-child { border-bottom: 0; }
.ask-days b { font-weight: 650; color: var(--ink-1); }
.ask-days span { color: var(--ink-2); }
.ask-days em { grid-column: 2; font-style: normal; font-size: 13.5px; color: var(--ink-3); }
div.ask-row { cursor: default; }
:root:not([data-theme="dark"]) .ask-odds { color: #a35a00; }
/* tablets and wider: the message bar lines up with the conversation */
@media (min-width: 700px) { .ask.chat .ask-thread, .ask.chat .ask-head, .ask.chat .ask-bar { width: 100%; max-width: 720px; margin-left: auto !important; margin-right: auto !important; } }
/* the globe's story card is placed on the picture (not on the picture plus the button under it), beside its pin */
.xp-globe-box { position: relative; width: min(100%, 380px); margin: 0 auto; }
.xp-globe-box > .xp-globe-img { width: 100%; }
.xp-globe-box > .xp-pin-card { left: var(--x, 50%); width: min(80%, 290px); }
.xp-globe-box > .xp-pin-card.below { top: calc(var(--y) + 14px); transform: translateX(-50%); }
.xp-globe-box > .xp-pin-card.above { top: calc(var(--y) - 14px); transform: translate(-50%, -100%); }
/* the game: when its counts were taken, and its heading clear of the sticky header and chips */
.ci-count { margin: 6px 0 0 !important; font-size: 12.5px; color: var(--ink-3); }
#callit { scroll-margin-top: 112px; }
/* ==================== end ask fixes ==================== */

/* "What's overhead and around me?" — opens the near sheet (public/near.js) */
.near-what { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 8px 14px 8px 11px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink-1); font: inherit; font-size: .84em; font-weight: 600; cursor: pointer; }
.near-what svg { width: 17px; height: 17px; fill: currentColor; transform: rotate(45deg); }
.near-what:hover { border-color: var(--ink-3); }
.near-what:focus-visible { outline: 2px solid var(--onair); outline-offset: 2px; }
.ask-sky { margin: 6px 0 10px; padding: 0 0 0 18px; }
.ask-sky li { margin: 0 0 6px; }
.ask-sky small { color: var(--ink-3); }

/* Messages button in the header (public/dm.js inserts it before the bell) */
.dm-hbtn { position: relative; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-1); display: inline-grid; place-items: center; cursor: pointer; border-radius: 12px; flex: none; }
.dm-hbtn svg { width: 23px; height: 23px; }
.dm-hbtn:focus-visible { outline: 2px solid var(--onair); outline-offset: 2px; }
.dm-hbtn .dm-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff2d2d; color: #fff; font: 700 11px/18px var(--font); text-align: center; box-shadow: 0 0 10px rgba(255, 45, 45, .6); }
@media (max-width: 960px) { body[data-view="map"] .dm-hbtn { display: none; } }

/* ==================== Marcus pass (2026-11-16): the first screen answers "is anything big, does it affect me" ==================== */
/* the local line under the greeting: the most serious thing near the reader's place, or that our checks found nothing */
.home-local { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin: 0 0 12px; padding: 8px 12px 8px 14px; border: 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-1); font: inherit; font-size: .88em; line-height: 1.3; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.home-local[hidden] { display: none !important; }
:root .home-local { background: var(--glass), var(--card); box-shadow: var(--rim), var(--lift); }
.home-local .hl-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--calm); }
.home-local.mild .hl-dot { background: var(--ink-3); }
.home-local.warn .hl-dot { background: var(--watch); }
.home-local.hot .hl-dot { background: var(--onair); box-shadow: var(--glow, none); }
.home-local .hl-txt { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; column-gap: 7px; row-gap: 1px; align-items: baseline; }
.home-local .hl-txt b { font-weight: 700; }
.home-local .hl-txt span { color: var(--ink-2); overflow-wrap: anywhere; }
.home-local.hot .hl-txt span, .home-local.warn .hl-txt span { color: var(--ink-1); font-weight: 600; }
.home-local .hl-wx { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; line-height: 1.15; }
.home-local .hl-wx b { font-size: 1.1em; font-weight: 700; }
.home-local .hl-wx small { font-size: .8em; color: var(--ink-3); }
.home-local .hl-chev { flex: none; width: 16px; height: 16px; color: var(--ink-3); margin-left: -2px; }
.home-local:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
body:is([data-feed="saved"], [data-feed="explore"], [data-feed="ask"]) #homeLocal, body.student #homeLocal { display: none !important; }
body[data-feed="fy"] #nowView .now-inner > #homeLocal:not([hidden]) { display: flex !important; }
/* the greeting's line is the brief's own summary; it may run to two lines */
.home-tag:empty { display: none; }
@media (max-width: 960px) {
  body[data-view="now"] .home-title { margin: 2px 0 14px !important; }
  .home-tag { margin-top: 6px !important; line-height: 1.35; color: var(--ink-2) !important; }
}
/* the biggest story comes first; the date, the swipe and game buttons sit under it, small */
#nowView .lead-card { margin-top: 0; margin-bottom: 14px; }
#nowView .lead-card + .hero { margin-top: 0; }
#nowView .now-inner:has(#leadCard article) .hero { padding-bottom: 14px; margin-bottom: 14px; }
#nowView .now-inner:has(#leadCard article) .hero .date { font-size: 13px; margin: 0; }
#nowView .now-inner:has(#leadCard article) .hero-acts { margin-top: 8px; gap: 8px; }
#nowView .now-inner:has(#leadCard article) .hero-acts .swipe-open, #nowView .now-inner:has(#leadCard article) .hero-acts .ci-chip { min-height: 38px; font-size: 14px; padding-top: 6px !important; padding-bottom: 6px !important; }
/* on a phone the lead's photo is shorter, so its headline is on the first screen */
@media (max-width: 600px) { #nowView .leadc-pic { aspect-ratio: 2 / 1; } }
/* "Make it yours" sits after the lead, as one compact row */
#nowView .fy-make { padding: 12px 12px 12px 16px; margin-bottom: 16px; }
#nowView .fy-make b { font-size: 15px; }
#nowView .fy-make span { font-size: 13.5px; }
#nowView .fy-make .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
@media (max-width: 520px) { #nowView .fy-make { flex-direction: row; align-items: center; } #nowView .fy-make span { display: none; } }
/* sections and buttons scrolled to land clear of the sticky chips at the top and the tab bar at the bottom */
#nowView, #alertsView { scroll-padding-top: 76px; scroll-padding-bottom: 110px; }
#nearYou, #following, #homeNews, #alertSettings, #placeSet, #followSet, #histSet, #readingSet { scroll-margin-top: 76px; }
@media (max-width: 960px) {
  #nowView .now-inner, #alertsView .now-inner { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  body[data-feed="ask"] .ask-head { position: relative; z-index: 2; padding-top: 6px; }
}
/* Alerts opens on what was sent; the settings follow, one tap away */
.al-head { padding-bottom: 6px !important; margin-bottom: 8px !important; border-bottom: 0 !important; }
.al-head .sec-head { align-items: center; }
.al-head h1 { margin: 0 !important; }
/* the title keeps one line; on a narrow phone Alert settings drops under it */
.al-head .sec-head { flex-wrap: wrap; gap: 10px 12px; }
.al-head h1 { white-space: nowrap; }
@media (max-width: 420px) { .al-head h1 { font-size: 28px !important; letter-spacing: -0.02em; } }
.al-set-btn { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: 14px; text-decoration: none !important; color: var(--ink-1) !important; box-shadow: inset 0 0 0 1px var(--rule-2); }
:root .al-set-btn { background: var(--glass), var(--card); box-shadow: var(--rim); }
#alertsView .al-head + .al-recent { margin-top: 0 !important; }
.al-recent #histNote { margin: -4px 0 10px; }
.al-recent #histNote:empty { display: none; }
.history .h-more { list-style: none; margin: 12px 0 0; text-align: center; }
.history .h-more .btn { min-height: 40px; }
.al-push h2 { margin-bottom: 6px; }
.al-push .lead { font-size: .95em; color: var(--ink-2); margin: 0 0 14px; }
/* Rosa pass: the globe's story card is dark glass on a dark globe in both themes, so its words stay light */
.xp-pin-card, .xp-pin-card b, .xp-pin-card span { color: #f5f5f7 !important; }
.xp-pin-card small, .xp-pin-card .xp-chev { color: #b4b4ba !important; }
/* fine print grows with the reader's text size */
.grid-mw { font-size: .82em; color: var(--ink-3); font-weight: 500; }
:root[data-size="l"] .set-note, :root[data-size="l"] #pushNote, :root[data-size="l"] .wx-days small, :root[data-size="l"] .fine, :root[data-size="l"] .ask-src, :root[data-size="l"] .roads .src { font-size: 16px !important; }
:root[data-size="xl"] .set-note, :root[data-size="xl"] #pushNote, :root[data-size="xl"] .wx-days small, :root[data-size="xl"] .fine, :root[data-size="xl"] .ask-src, :root[data-size="xl"] .roads .src { font-size: 18px !important; }
/* ==================== end Marcus pass ==================== */

/* ==================== Latest (2026-11-17): what just happened, newest first ====================
   One loud thing: the Breaking now card, with its big red "4 min ago". Everything else is a quiet timeline on a rail.
   Row labels say what kind of thing each row is: solid = a news report, outline = official, dotted = a sensor,
   dashed = not confirmed. Red only for live / breaking. */
body[data-feed="latest"] #nowView .now-inner > :not(.fy-chips):not(.fy):not(.fy-search):not(.home-title) { display: none !important; }
body[data-feed="latest"] #forYou { display: block !important; }
.lt { --lt-glass: var(--glass, linear-gradient(transparent, transparent)); --lt-rim: var(--rim, inset 0 0 0 1px var(--rule-2)); font-variant-numeric: tabular-nums; }
.lt-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 16px; padding: 2px 18px 4px; }
.lt-filters::-webkit-scrollbar { display: none; }
.lt-f { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 650; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--rule-2); cursor: pointer; white-space: nowrap; }
.lt-f small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.lt-f.on { color: var(--paper); background: var(--ink-1); box-shadow: none; }
:root .lt-f.on { background: var(--lit) !important; color: #fff; box-shadow: var(--lit-rim); }
.lt-f:focus-visible, .lt-item:focus-visible, .lt-bmain:focus-visible, .lt-bmore:focus-visible, .lt-pill:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
/* "N new": a pill that waits at the top instead of moving the list */
.lt-pillbox { position: sticky; top: 64px; z-index: 4; height: 0; display: flex; justify-content: center; }
.lt-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-top: -4px; padding: 0 16px 0 13px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: rgba(28, 28, 32, .92); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 28px -8px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); cursor: pointer; }
.lt-pill[hidden] { display: none; }
.lt-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--onair); box-shadow: var(--glow, none); }
/* Breaking now */
.lt-break { position: relative; margin: 0 0 26px; padding: 18px 18px 8px; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 80% at 0% 0%, rgba(255, 45, 45, .16), transparent 60%), var(--lt-glass), var(--card); box-shadow: var(--lt-rim), var(--lift, var(--shadow)); }
:root[data-theme="light"] .lt-break { background: radial-gradient(120% 80% at 0% 0%, rgba(229, 52, 29, .08), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px var(--rule-2), var(--shadow); }
.lt-bhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.lt-live { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 750; color: var(--ink-1); }
.lt-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--onair); box-shadow: 0 0 0 4px var(--onair-soft), var(--glow, none); animation: lt-pulse 2.4s ease-in-out infinite; }
@keyframes lt-pulse { 50% { box-shadow: 0 0 0 7px transparent, var(--glow, none); } }
@media (prefers-reduced-motion: reduce) { .lt-live i { animation: none; } }
.lt-bwhen-w { display: grid; gap: 6px; }
.lt-bwhy { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.lt-bmain { display: grid; gap: 10px; width: 100%; padding: 0 0 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lt-bwhen { display: block; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.035em; color: var(--onair); text-shadow: 0 0 28px rgba(255, 45, 45, .35); }
:root[data-theme="light"] .lt-bwhen { text-shadow: none; }
.lt-bbody { display: flex; gap: 14px; align-items: flex-start; }
.lt-btitle { flex: 1; min-width: 0; font-size: 24px; line-height: 1.18; font-weight: 750; letter-spacing: -0.02em; color: var(--ink-1); text-wrap: balance; }
.lt-bimg { flex: none; width: 92px; height: 92px; object-fit: cover; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); }
.lt-bgrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lt-bgrow:empty { display: none; }
.lt-bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--ink-3); }
.lt-bmeta b { color: var(--ink-1); font-weight: 650; }
.lt-bsub { flex-basis: 100%; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.lt-bmore { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--rule); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lt-bmwhen { flex: none; min-width: 34px; font-size: 16px; font-weight: 800; color: var(--onair); }
.lt-bmore b { display: block; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--ink-1); }
.lt-bmore small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
/* growth: measured, never guessed */
.lt-grow { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--ink-1); white-space: nowrap; }
.lt-grow svg { width: 16px; height: 16px; color: var(--onair); }
.lt-grow.calm { font-weight: 600; color: var(--ink-2); }
.lt-grow.calm svg { color: var(--ink-3); }
.lt-spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; }
.lt-spark i { width: 5px; height: max(2px, var(--h)); border-radius: 2px; background: var(--rule-2); }
.lt-spark i.on { background: var(--ink-2); }
.lt-spark i.on:nth-last-child(-n+3) { background: var(--onair); }
/* kind labels */
.lt-kind { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.lt-kind.rep { background: color-mix(in srgb, var(--ink-1) 9%, transparent); color: var(--ink-1); }
.lt-kind.claim { background: color-mix(in srgb, var(--ink-1) 6%, transparent); box-shadow: inset 0 0 0 1px var(--rule-2); }
.lt-kind.off, .lt-kind.mil { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-1) 34%, transparent); color: var(--ink-1); }
.lt-kind.sen { border: 1px dotted color-mix(in srgb, var(--ink-1) 40%, transparent); padding: 0 7px; }
.lt-kind.unc { border: 1px dashed color-mix(in srgb, var(--ink-1) 32%, transparent); color: var(--ink-3); padding: 0 7px; }
/* the timeline */
#forYou .lt-hour { margin: 26px 0 4px; font-size: 14px; line-height: 1.2; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
#forYou .lt-break + .lt-hour, #forYou .lt-pillbox + .lt-hour { margin-top: 6px; }
.lt-list { list-style: none; margin: 0; padding: 0; position: relative; }
.lt-list::before { content: ''; position: absolute; left: 55px; top: 6px; bottom: 6px; width: 1px; background: var(--rule-2); }
.lt-row { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 0; }
.lt-row::before { content: ''; position: absolute; left: 52px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.lt-row.k-story::before { background: var(--ink-1); box-shadow: 0 0 0 3px var(--paper); }
.lt-row.hot::before { background: var(--onair); box-shadow: 0 0 0 3px var(--paper), var(--glow, none); }
.lt-when { display: flex; flex-direction: column; align-items: flex-end; padding-top: 15px; text-align: right; }
.lt-when b { font-size: 15px; font-weight: 750; color: var(--ink-1); line-height: 1.1; }
.lt-when small { font-size: 12px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; }
.lt-item { display: grid; gap: 6px; min-width: 0; padding: 12px 0 14px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lt-row:last-child .lt-item { border-bottom: 0; }
.lt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--ink-3); }
.lt-n { font-weight: 650; color: var(--ink-2); }
.lt-src { color: var(--ink-3); }
.lt-top .lt-grow { font-size: 13px; }
.lt-title { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--ink-1); text-wrap: pretty; }
.lt-sub { font-size: 14px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-row.quiet .lt-title { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.lt-row.quiet .lt-item { padding: 10px 0 11px; gap: 4px; }
.lt-row.quiet .lt-when { padding-top: 12px; }
.lt-row.quiet::before { top: 19px; }
@media (hover: hover) { .lt-item:hover .lt-title, .lt-bmain:hover .lt-btitle, .lt-bmore:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } }
.lt-empty { margin: 8px 0 24px; padding: 22px 20px; border-radius: 20px; background: var(--lt-glass), var(--card); box-shadow: var(--lt-rim); }
.lt-empty b { display: block; font-size: 18px; font-weight: 700; color: var(--ink-1); }
.lt-empty p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.lt-empty .btn { margin-top: 14px; }
.lt-loading { color: var(--ink-3); padding: 24px 0; }
.lt-foot { margin: 18px 0 8px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
@media (min-width: 600px) {
  .lt-filters { margin: 0 0 18px; padding: 2px 0 4px; gap: 6px; }
  .lt-f { padding: 0 12px; }
  .lt-break { padding: 24px 26px 10px; }
  .lt-bwhen { font-size: 56px; }
  .lt-btitle { font-size: 28px; }
  .lt-bimg { width: 128px; height: 96px; }
  .lt-row { grid-template-columns: 64px 1fr; gap: 20px; }
  .lt-list::before { left: 74px; }
  .lt-row::before { left: 71px; }
  .lt-title { font-size: 18px; }
}
:root[data-size="l"] .lt-title { font-size: 19px; }
:root[data-size="xl"] .lt-title { font-size: 21px; }
:root[data-size="xl"] .lt-top, :root[data-size="xl"] .lt-sub, :root[data-size="xl"] .lt-f { font-size: 17px; }

/* countries: Your countries on For you, the Countries row in Explore, the settings list */
.cc-flag { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: 1.05em; line-height: 1; }
.cc-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 26px; padding: 2px 18px 6px; }
.cc-row::-webkit-scrollbar { display: none; }
.cc-pill { flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 650; color: var(--ink-1); background: var(--glass, transparent), var(--card); box-shadow: var(--rim, inset 0 0 0 1px var(--rule-2)); cursor: pointer; }
.cc-pill small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cc-hot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); flex: none; } /* a busy country: a quiet ink dot, red is kept for live */
.cc-pill .cc-hot { position: absolute; top: 4px; right: 6px; width: 7px; height: 7px; }
.xp-h .xp-cc-pick { margin: 0 0 0 auto !important; font-size: 14px; }
.xp-cc { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; grid-template-rows: repeat(2, auto); gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 28px; padding: 2px 18px 8px; }
.xp-cc::-webkit-scrollbar { display: none; }
.xp-ccb { position: relative; display: grid; gap: 2px; align-content: start; min-height: 84px; padding: 12px 14px; border: 0; border-radius: 16px; font: inherit; text-align: left; color: var(--ink-1); background: var(--glass, transparent), var(--card); box-shadow: var(--rim, inset 0 0 0 1px var(--rule-2)); cursor: pointer; }
.xp-ccb .cc-flag { font-size: 22px; margin-bottom: 4px; }
.xp-ccb b { font-size: 15px; font-weight: 700; line-height: 1.2; }
.xp-ccb small { font-size: 12px; color: var(--ink-3); }
.xp-ccb .cc-hot { position: absolute; top: 12px; right: 12px; }
:root .xp-ccb.mine { background: var(--lit); box-shadow: var(--lit-rim); color: #fff; }
:root .xp-ccb.mine small { color: rgba(255, 255, 255, .7); }
:root .xp-ccb.mine .cc-hot { background: #fff; }
@media (min-width: 600px) { .cc-row, .xp-cc { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
#countryChips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
/* hidden countries and words: one quiet line where something was left out, and the chips in Settings */
.hide-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 14px 0 18px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.hide-line .link { min-height: 32px; padding: 0; border: 0; background: none; font: inherit; font-weight: 650; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lt > .hide-line { margin: -4px 0 14px; }
.history .h-hidden { list-style: none; border: 0 !important; padding: 0 !important; }
#hiddenChips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.hide-chip i { font-style: normal; font-size: 18px; line-height: 1; color: var(--ink-3); margin-left: 2px; }
#hiddenAdd { margin-top: 4px; }
/* ==================== end Latest ==================== */

/* ==================== Personal controls (per-country alert levels, muted outlets, Home sections, Who's talking) ==================== */
/* "Alerts about Ukraine: Everything / Only major" (Settings › Countries you follow, and the country page) */
.al-levels h3 { font-size: .95em; font-weight: 720; margin: 14px 0 4px; }
.al-lvl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.al-lvl:first-of-type { border-top: 0; }
.al-lvl > span { flex: 1 1 160px; font-size: .95em; color: var(--ink-1); }
.al-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink-1) 7%, transparent); }
.al-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 650; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.al-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink-1); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), inset 0 0 0 1px var(--rule); }
.gc-alerts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; max-width: 1080px; width: calc(100% - 32px); box-sizing: border-box; margin: 6px auto 0; padding: 8px 8px 8px 16px; border-radius: 16px; font-size: 15px; color: var(--ink-2); background: color-mix(in srgb, var(--ink-1) 5%, transparent); }
.gc-alerts[hidden] { display: none; }
/* muted outlets: "Less from CNN" under each source, the folded line, the chip in Settings › Hidden */
[data-ol][hidden] { display: none !important; }
.sh-sources li .ol-less { display: inline-block; margin: -4px 0 10px; padding: 4px 0; min-height: 32px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sh-sources li .ol-less[hidden] { display: none; }
.ol-hid { display: flex !important; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 10px 0 !important; border-top: 1px solid var(--rule); list-style: none; font-size: 14px; color: var(--ink-3); grid-template-columns: none !important; }
.ol-hid span { display: inline !important; margin: 0 !important; font-size: 14px !important; }
.ol-hid .link { min-height: 32px; padding: 0; border: 0; background: none; font: inherit; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.ol-tip { margin-top: -4px; }
.ol-pv { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--ink-2); }
.ol-pv .link { border: 0; background: none; font: inherit; font-weight: 650; cursor: pointer; }
/* Who's talking: name, what the outlet says they said, the outlet */
.who-talk { list-style: none; margin: 0; padding: 0; }
.who-talk li { padding: 10px 0; border-top: 1px solid var(--rule); line-height: 1.4; }
.who-talk li:first-child { border-top: 0; }
.who-talk b { font-weight: 720; }
.who-talk small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.who-talk small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* For you sections in the reader's order (the wrapper takes no space of its own) */
.fy-part { display: contents; }
.fy-arrange { margin: 6px 0 4px; text-align: center; font-size: 14px; }
.fy-arrange .link { border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-3); cursor: pointer; min-height: 40px; }
.home-arr { list-style: none; margin: 8px 0 6px; padding: 0; }
.home-arr li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--rule); }
.home-arr li:first-child { border-top: 0; }
.home-arr li > span { flex: 1; min-width: 0; font-weight: 600; }
.home-arr li.off > span { color: var(--ink-3); font-weight: 500; }
.home-arr .ha-b { width: 40px; height: 40px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink-1) 6%, transparent); color: var(--ink-1); font-size: 17px; cursor: pointer; }
.home-arr .ha-b[disabled] { opacity: .3; cursor: default; }
.home-arr .ha-t { min-width: 72px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ink-1); color: var(--paper); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.home-arr .ha-t[aria-pressed="false"] { background: none; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
/* Latest as a For you section */
.fy-ltl { list-style: none; margin: 0 0 26px; padding: 0; }
.fy-ltl li a { display: grid; grid-template-columns: 52px 1fr; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; }
.fy-ltl li:first-child a { border-top: 0; }
.fy-ltl time { grid-row: span 2; font-size: 13px; font-weight: 650; color: var(--ink-3); padding-top: 2px; }
.fy-ltl b { font-weight: 650; line-height: 1.3; }
.fy-ltl small { font-size: 13px; color: var(--ink-3); }
/* ==================== end Personal controls ==================== */

/* ==================== Latest views, "Since you last looked", Listen (2026-11-17; public/latest.js, public/listen.js) ==================== */
/* the bar under the filters: Cards | Wire on the left, Listen on the right */
.lt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 18px; }
.lt-views { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--lt-glass), var(--card); box-shadow: var(--lt-rim); }
.lt-v { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 650; color: var(--ink-3); cursor: pointer; }
.lt-v svg { width: 17px; height: 17px; flex: none; }
.lt-v.on { background: var(--ink-1); color: var(--paper); }
.lt-v:focus-visible, .ls-btn:focus-visible, .lt-wi:focus-visible, .ls-player button:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
/* the wire: one line per item */
.lt-wlist { list-style: none; margin: 0; padding: 0; }
.lt-wi { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lt-wlist > li:last-child .lt-wi { border-bottom: 0; }
.lt-wt { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lt-wt small { margin-left: 2px; font-size: 10px; font-weight: 650; color: var(--ink-3); }
.lt-w.hot .lt-wt, .lt-w.hot .lt-wt small { color: var(--onair); }
.lt-wh { min-width: 0; font-size: 15px; line-height: 1.32; font-weight: 600; color: var(--ink-1); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-ws { margin-right: 6px; font-size: 11.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.lt-w.quiet .lt-wh { font-weight: 500; color: var(--ink-2); }
.lt-wtag { justify-self: end; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.lt-wtag.n { display: grid; justify-items: end; line-height: 1.1; }
.lt-wtag.n small { font-size: 10px; font-weight: 650; letter-spacing: .03em; color: var(--ink-3); }
.lt-wtag.n b { font-weight: 750; color: var(--ink-1); }
.lt-wtag.n i { margin-left: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--onair); }
.lt-wtag.lt-kind { height: 20px; padding: 0 6px; font-size: 11px; }
.lt-wtag.lt-kind.sen, .lt-wtag.lt-kind.unc { padding: 0 5px; }
@media (hover: hover) { .lt-wi:hover .lt-wh > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } }
.lt-wbreak { margin: 0 0 20px; padding: 12px 14px 4px; border-radius: 18px; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 45, 45, .12), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--onair) 32%, transparent); }
.lt-wbreak .lt-bhead { margin-bottom: 2px; }
.lt-wbreak .lt-live { font-size: 14px; }
@media (min-width: 600px) {
  .lt-wi { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; padding: 8px 0; }
  .lt-wh { display: block; white-space: nowrap; text-overflow: ellipsis; }
}
:root[data-size="l"] .lt-wh { font-size: 17px; }
:root[data-size="xl"] .lt-wh { font-size: 19px; }
/* "Since you last looked · 3 new": above the first row the reader had already seen */
.lt-since { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; list-style: none; position: relative; z-index: 1; }
.lt-since span { flex: none; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 750; line-height: 1.3; color: var(--paper); background: var(--ink-1); }
.lt-since::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: var(--ink-1); opacity: .55; }
.lt-list > .lt-since { margin: 4px 0 6px; }
.lt-wlist > .lt-since { margin: 8px 0; }
/* Listen: a pill wherever it is offered, and a small player above the tab bar while it reads */
.ls-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 650; color: var(--ink-1); background: var(--glass, linear-gradient(transparent, transparent)), var(--card); box-shadow: var(--rim, inset 0 0 0 1px var(--rule-2)); cursor: pointer; white-space: nowrap; }
.ls-btn svg { width: 18px; height: 18px; flex: none; }
.ls-btn.on { color: var(--paper); background: var(--ink-1); box-shadow: none; }
.ls-btn.ls-hero { min-height: 40px; }
.ls-btn.ls-home { float: right; margin: 0 0 6px 10px; }
body[data-feed="latest"] .ls-btn.ls-home { display: none; }
.ls-player { position: fixed; z-index: 35; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 7px 8px 7px 7px; border-radius: 22px; background: var(--card); color: var(--ink-1); box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--rule-2); }
.ls-player[hidden] { display: none; }
.ls-player button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-1); cursor: pointer; }
.ls-player button svg { width: 20px; height: 20px; }
.ls-player .ls-pp { width: 44px; height: 44px; background: var(--ink-1); color: var(--paper); }
.ls-now { display: grid; gap: 1px; min-width: 0; padding: 0 4px; }
.ls-now small { font-size: 12px; font-weight: 650; color: var(--ink-3); }
.ls-now b { font-size: 14px; line-height: 1.25; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) { .ls-player { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); } }
body.ls-open .lt { padding-bottom: 72px; } /* the last rows can scroll out from under the player */
@media print { .ls-player, .ls-btn { display: none !important; } }
/* ==================== end Latest views and Listen ==================== */

/* ==================== Polish B (2026-11-17): one sheet header, red only for live, the same shell in light and dark ====================
   Every sheet opens the same way: a grabber (phones), a 17px title on the left, one round close button on the right; any
   other actions sit just left of the close as plain icons. Story, profile, messages, near you, the country page, the picker.
   The sheets built by near.js, dm.js and country.js inject their own <style> after this file, so these rules carry one
   extra class of specificity. */
/* the close button: one shape and one × everywhere */
.sheet-close, .gn-sheet .gn-x, .dm-sheet .dm-ib[data-dm-x], .gc-sheet .gc-bar [data-gc-close], .sheet-panel .sh-bar .sh-back {
  position: relative; display: grid; place-items: center; flex: none; width: 36px !important; height: 36px !important; min-width: 36px; padding: 0 !important; border: 0; border-radius: 50% !important;
  background: color-mix(in srgb, var(--ink-1) 9%, transparent) !important; box-shadow: none !important; color: var(--ink-1) !important; font-size: 0 !important; line-height: 0; cursor: pointer;
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
.sheet-close::before, .gn-sheet .gn-x::before, .dm-sheet .dm-ib[data-dm-x]::before, .gc-sheet .gc-bar [data-gc-close]::before, .sheet-panel .sh-bar .sh-back::before {
  content: ''; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5 5 19'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5 5 19'/%3E%3C/svg%3E") center / contain no-repeat; }
.gc-sheet .gc-bar [data-gc-close] svg, .sheet-panel .sh-bar .sh-back svg, .gn-sheet .gn-x svg, .dm-sheet .dm-ib[data-dm-x] svg, .sheet-close svg { display: none; }
.sheet-close:hover, .gn-sheet .gn-x:hover, .dm-sheet .dm-ib[data-dm-x]:hover, .gc-sheet .gc-bar [data-gc-close]:hover, .sheet-panel .sh-bar .sh-back:hover { background: color-mix(in srgb, var(--ink-1) 15%, transparent) !important; color: var(--ink-1) !important; }
/* the other header actions: plain icons of the same size */
.dm-sheet .dm-ib:not([data-dm-x]), .gc-sheet .gc-bar .gc-ib:not([data-gc-close]), .gc-sheet .gc-bar .gc-hid, .sheet-panel .sh-bar button:not(.sh-back) { width: 38px; height: 38px; min-width: 38px; min-height: 38px; padding: 0; border-radius: 50%; background: none; color: var(--ink-1); }
.sheet-panel .sh-bar button:not(.sh-back) svg { width: 22px; height: 22px; }
.dm-sheet .dm-ib:not([data-dm-x]):hover, .gc-sheet .gc-bar .gc-ib:not([data-gc-close]):hover, .gc-sheet .gc-bar .gc-hid:hover { background: var(--hover); }
/* the grabber */
.gn-panel::before, .dm-panel::before, .gc-pp::before { content: none; }
@media (max-width: 759px) {
  .gn-sheet .gn-panel::before, .dm-sheet .dm-panel::before, .gc-pick .gc-pp::before { content: ''; display: block; flex: none; width: 40px; height: 5px; border-radius: 3px; background: var(--grabber); }
  .gn-sheet .gn-panel::before { margin: -10px auto 12px; }
  .dm-sheet .dm-panel::before, .gc-pick .gc-pp::before { margin: 8px auto 0; }
}
/* the title: 17px, one line, on the left */
.gn-sheet .gn-head h2, .dm-sheet .dm-top h2, .gc-pick .gc-ph h2, .gc-sheet .gc-bar h2, .sheet-panel:not(:has(.sh-bar)) #sheetBody > .sh-title:first-child {
  font-size: 17px !important; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap; }
/* the story and settings sheets (#sheet): the close sits on the title's line */
.sheet-close { position: sticky !important; float: none !important; top: 6px !important; z-index: 8; margin: 0 0 -36px auto !important; }
.sheet-panel:not(:has(.sh-bar)) #sheetBody > .sh-title:first-child { min-height: 36px; display: flex; align-items: center; margin: 0 48px 14px 0 !important; }
/* the story sheet: its bar carries Save, Share and ⋯, then the close at the far right */
.sheet-panel .sh-bar .sh-sp { order: -1; }
.sheet-panel .sh-bar .sh-back { order: 9; margin-left: 6px; }
/* near you */
.gn-sheet .gn-head { align-items: center; margin-bottom: 10px; }
.gn-sheet .gn-head p { margin-top: 1px; }
.gn-sheet .gn-panel { background: var(--sheet); }
/* messages */
.dm-sheet .dm-panel { background: var(--sheet); }
.dm-sheet .dm-top { gap: 6px; padding: 10px 12px 10px 16px; }
/* the country page: on a phone it is a sheet like the others; the name shows in its bar once the big name scrolls away,
   and then Share and Hide step aside so the name is never cut short */
.gc-sheet .gc-bar { justify-content: flex-end; }
.gc-sheet .gc-bar h2 { order: -1; flex: 1; text-align: left; }
.gc-sheet .gc-bar [data-gc-close] { order: 9; }
.gc-sheet .gc-bar .gc-fol { min-height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 759px) {
  body > .gc-sheet { top: calc(env(safe-area-inset-top) + 10px); border-radius: 20px 20px 0 0; background: var(--sheet); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
  .gc-sheet .gc-bar { padding: 16px 12px 10px 16px; border-radius: 20px 20px 0 0; background: color-mix(in srgb, var(--sheet) 88%, transparent); }
  .gc-sheet .gc-bar::before { content: ''; position: absolute; top: 6px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--grabber); }
  .gc-sheet.scrolled .gc-bar [data-gc-share], .gc-sheet.scrolled .gc-bar .gc-hid { display: none; }
}
/* the country picker */
.gc-pick .gc-pp { background: var(--sheet); }
.gc-pick .gc-ph { padding-top: 14px; }
.gc-pick .gc-ph h2 { line-height: 36px; }

/* red only for live and breaking: messages, near you, the picker and the country page use ink for everything else */
.dm-sheet .dm-av { background: var(--card-2); color: var(--ink-1); }
.dm-sheet .dm-m.mine, .dm-sheet .dm-send { background: var(--ink-1); color: var(--paper); }
.dm-sheet .dm-dot, body #dmBtn .dm-badge { background: var(--ink-1); color: var(--paper); }
.gn-sheet .gn-loc { color: var(--ink-1); font-weight: 650; }
.gc-pick .gc-tile i { background: var(--ink-3); box-shadow: none; }
.gc-pick .gc-tile[aria-pressed="true"] i { background: var(--paper); }
.gc-sheet .gc-status.hot i { background: var(--ink-1); box-shadow: none; }
.gc-sheet .gc-chip.red b { color: var(--ink-1); }

/* phones: the reading views end above the floating tab bar; the strip around the bar is the page's own colour in both
   themes (the dark globe behind the views showed through it in light) */
@media (max-width: 960px) {
  html body:not([data-view="map"]) #app { background: var(--paper); }
  body:not([data-view="map"]) #map, body:not([data-view="map"]) .vignette, body:not([data-view="map"]) .grain { visibility: hidden; }
}
/* ==================== end Polish B ==================== */

/* ==================== Polish A: story sheet, Top news, alerts, Home cards, Markets, weather (public/now.js) ==================== */
/* Listen once: phones keep the one by the greeting, so the hero's copy goes; nothing to listen to before the news loads */
@media (max-width: 960px) { body[data-view="now"]:not([data-feed="saved"]):not([data-feed="explore"]):not([data-feed="ask"]) #nowView .hero-acts .ls-hero { display: none !important; } }
body.no-news .ls-btn { display: none !important; }
/* before the news loads (or when it can't): no empty sections or headers under the hero */
body.no-news #nowView .top, body.no-news #nowView .two, body.no-news #nowView #earlyWrap, body.no-news #nowView #healthWrap, body.no-news #nowView .money-strip, body.no-news #nowView #callit, body.no-news #nowView .hero-acts, body.no-news #nowView #nearYou, body.no-news #nowView #following, body.no-news #nowView #homeNews, body.no-news #nowView #esNews, body.no-news #nowView #away { display: none !important; }
#nowView #nearYou:empty, #nowView #following:empty { display: none !important; }
#nowView .two > div[hidden] { display: none !important; }

/* Top news: "one at a time" is a quiet text action, not a red-dot pill */
#nowView .hero-acts .swipe-open { min-height: 36px !important; padding: 0 2px !important; background: none !important; box-shadow: none !important; border: 0 !important; color: var(--ink-2) !important; font-size: 14px !important; font-weight: 600 !important; gap: 8px; }
#nowView .hero-acts .swipe-open::before { display: none !important; }
#nowView .hero-acts .swipe-open svg { display: inline-block !important; width: 16px; height: 16px; }
#nowView .hero-acts .swipe-open:hover { color: var(--ink-1) !important; }

/* the news game, closed: one compact row that opens it */
#callit.ci-closed { padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
.ci-compact { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); color: var(--ink-1); font: inherit; text-align: left; cursor: pointer; }
.ci-compact:hover { border-color: var(--rule-2); }
.ci-compact:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
.ci-cico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card-2, var(--rule)); color: var(--ink-1); }
.ci-cico svg { width: 20px; height: 20px; }
.ci-ctxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ci-ctxt b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.ci-ctxt span { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.ci-cgo { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14px; font-weight: 650; color: var(--ink-1); white-space: nowrap; }
.callit .sec-head [data-ci-close] { margin-left: auto; }

/* photo credits: a small caption, not a watermark */
.fy-credit, .fy-card.hero .fy-credit, .sw-photo .fy-credit { background: none !important; padding: 0 !important; border-radius: 0 !important; font-size: 11px !important; font-weight: 500 !important; color: rgba(255, 255, 255, .78) !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .65); box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.sh-img figcaption { background: none !important; font-size: 11px !important; font-weight: 500 !important; color: var(--ink-3) !important; text-shadow: none; }

/* For you "Right now" hero: no underline, and a long headline makes the card taller instead of running off it;
   the text starts below the Live badge so the two never overlap */
.fy-card.hero, .fy-card.hero:hover, .fy-card.hero h3 { text-decoration: none !important; }
.fy-card.hero { display: grid !important; }
.fy-card.hero > .fy-img { grid-area: 1 / 1; height: 100%; min-height: 0; }
.fy-card.hero > .fy-img img { width: 100%; height: 100%; object-fit: cover; }
.fy-card.hero > .fy-body { grid-area: 1 / 1; position: relative !important; align-self: end; padding-top: 58px !important; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .62) 46px, rgba(0, 0, 0, .82)); }
.fy-card.hero h3 { overflow-wrap: anywhere; }

/* story sheet: the Timeline carries the links; one quiet "How this works" row; "Manage news sites" in the ⋯ menu */
.timeline .tl-h { color: var(--ink-1); text-decoration: none; }
.timeline .tl-h:hover { text-decoration: underline; text-underline-offset: 3px; }
.timeline .sh-desc { display: block; margin-top: 3px; color: var(--ink-3); }
.sh-menu .sh-olm { flex-basis: 100%; }
.sh-menu .sh-olm > summary { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 16px; font-weight: 700; color: var(--ink-1); cursor: pointer; list-style: none; width: max-content; }
.sh-menu .sh-olm > summary::-webkit-details-marker { display: none; }
.sh-menu .sh-olm > summary::after { content: ""; width: 7px; height: 7px; margin-left: 10px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sh-menu .sh-olm[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.sh-olm-in { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sh-olm-in .btn { min-height: 36px; font-size: 13.5px; }
.sh-olm-in .btn[hidden] { display: none; }
.who-talk .who-s { margin: 0; }
.who-talk .who-src a { color: inherit !important; text-decoration: none !important; }
.who-talk .who-src a:hover { text-decoration: underline !important; }
.kn-bg-src { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.kn-bg-src a { color: inherit; text-decoration: none; }
.kn-bg-src a:hover { text-decoration: underline; }
.sh-howto .sh-row-in p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sh-howto .sh-row-in p:last-child { margin-bottom: 0; }
.sh-howto .sh-row-in a { color: inherit; }

/* the recap preview's app icon (a background image, so it never shows as an empty box) */
.nc-top .nc-ico { flex: none; width: 20px; height: 20px; border-radius: 23%; background: #000 url("/brand/tile-96.png") center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

/* Markets: a tile grid like a finance page (2 columns on a phone, more on wider screens) */
.money-strip:has(.mkt), .fy-money:has(.mkt) { display: block !important; font-size: 1rem !important; color: var(--ink-1); }
.mkt { display: block !important; margin: 6px 0 4px; }
.mkt-vr { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.mkt-r { overflow: hidden; min-width: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.mkt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.mkt-head h2 { margin: 0; font-size: 20px; font-weight: 720; letter-spacing: -0.01em; color: var(--ink-1); }
.mkt-note { font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.mkt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .mkt-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } }
.mkt-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.mkt-l { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.mkt-l small { font-size: 1em; font-weight: 500; color: var(--ink-3); }
.mkt-v { font-size: 21px; font-weight: 720; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.mkt-f { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 22px; }
.mkt-c { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 12.5px; font-weight: 700; font-style: normal; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mkt-c svg { width: 8px; height: 8px; fill: currentColor; }
.mkt-c.good { color: var(--calm); background: color-mix(in srgb, var(--calm) 14%, transparent); }
.mkt-c.bad { color: var(--ink-2); background: color-mix(in srgb, var(--ink-3) 18%, transparent); }
.mkt-c.flat { color: var(--ink-3); background: color-mix(in srgb, var(--ink-3) 12%, transparent); }
.mkt-sp { flex: 0 1 52px; min-width: 28px; height: 18px; color: var(--ink-3); }
.mkt-src { margin: 8px 2px 0; font-size: 12px; color: var(--ink-3); }
#nowView .money-strip:has(.mkt) { margin: 22px 0 8px; }
/* the Money table: red is for Live only, so a fall (or a cost rising) is plain ink */
#marketsNow .mk i.down, #marketsNow .mk i.cost-up { color: var(--ink-2) !important; }
.near .wx-hl { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fy-money:has(.mkt) { padding-top: 0 !important; border-top: 0 !important; }

/* Near you: the weather as a block (icon, big temperature, condition, wind, high and low) and a status chip */
.near .near-head { display: block; }
.near .nh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.near .nh-top h2 { margin: 0; }
.wx-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.wx-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wx-chip.ok { color: var(--calm); background: color-mix(in srgb, var(--calm) 13%, transparent); }
.wx-chip.warn { color: var(--watch); background: color-mix(in srgb, var(--watch) 15%, transparent); }
.near .near-head .wx { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; font-size: 1rem; color: var(--ink-1); }
.wxi { flex: none; width: 24px; height: 24px; }
.near .near-head .wx .wxi { width: 46px; height: 46px; stroke-width: 1.5; }
.near .wx-t { font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.near .wx-t small { margin-left: 1px; font-size: 18px; font-weight: 600; letter-spacing: 0; vertical-align: 16px; color: var(--ink-2); }
.near .wx-d { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 4px; }
.near .wx-c { font-size: 16px; font-weight: 650; color: var(--ink-1); }
.near .wx-w { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wx-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; }
.wxd { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--card-2, var(--rule)); }
.wxd b { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.wxd .wxi { width: 26px; height: 26px; color: var(--ink-1); }
.wxd i { font-style: normal; font-size: 15px; font-weight: 700; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.wxd i span { font-weight: 500; color: var(--ink-3); }
.wxd small { overflow: hidden; max-width: 100%; font-size: 12px; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.wxd.wet small { color: var(--ink-2); }
.wx-src { margin: 4px 2px 8px; font-size: 11.5px; color: var(--ink-3); }
/* the location pill at the top of Home gets the same icon */
.home-local .hl-wx { flex-direction: row !important; align-items: center !important; gap: 8px; }
.home-local .hl-wx > span { display: flex; flex-direction: column; align-items: flex-end; }
.home-local .hl-wx .wxi { width: 28px; height: 28px; color: var(--ink-1); }
/* ==================== end Polish A ==================== */

/* ==================== Polish C (2026-11-17): For you, Settings, Latest, Near you, countries, onboarding ====================
   (public/foryou.js, latest.js, near.js, country.js, dm.js). Flags are the score cards' flag images, cropped to the flag;
   Settings is one pattern (rows with a title, one short line and a switch on the right, or a title above a full-width
   segmented control); text glyphs (+ ✓ × › ▾) are line icons. */
/* flags: window.GOflag(cc) — the picture is a padded square, so it is scaled to fill a flag-shaped box */
.go-flag { --fw: 20px; display: inline-block; flex: none; width: var(--fw); height: calc(var(--fw) * .674); border-radius: 3px; vertical-align: -.14em;
  background-color: color-mix(in srgb, var(--ink-1) 12%, transparent); background-position: center; background-repeat: no-repeat; background-size: calc(var(--fw) * 1.087) auto;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); font-size: 0; }
.cc-pill .go-flag { --fw: 22px; }
.xp-ccb .go-flag { --fw: 28px; margin-bottom: 6px; border-radius: 4px; }
.fy-pill.static .go-flag { --fw: 18px; margin-right: 2px; }
#countryChips .go-flag { --fw: 20px; }

/* line icons inside pills and chips (+, chevrons) */
.fy-pill .ic, .fy-chip .ic, .fy-qbtn .ic { width: 15px; height: 15px; flex: none; }
.fy-pill.add, .fy-chip.add { display: inline-flex; align-items: center; gap: 6px; }
.fy-pill.add .ic-plus { width: 14px; height: 14px; margin-left: -2px; color: var(--ink-2); }
.fy-x { display: inline-grid; place-items: center; }
.fy-x .ic { width: 16px; height: 16px; }
/* the old "+ " prefixes are gone from the words; the pills keep one height */
.fy-pills .fy-pill { height: 38px; }

/* quiet buttons instead of underlined links ("Arrange sections", "Back to the usual order", "Remove", "Edit") */
.fy-qbtn, #alertsView button.link, #placeClear { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px !important; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--ink-1) 8%, transparent); color: var(--ink-1); font: inherit; font-size: 14px; font-weight: 650; text-decoration: none !important; cursor: pointer; }
.fy-qbtn:hover, #alertsView button.link:hover, #placeClear:hover { background: color-mix(in srgb, var(--ink-1) 13%, transparent); }
.fy-arrange { text-align: center; }
#placeClear { min-height: 30px; margin-left: 8px; padding: 0 12px !important; font-size: 13px; vertical-align: 1px; }

/* the "Right now" photo card: long headlines step down a size (the card grows rather than clip: Polish A) */
.fy-card.hero h3.long { font-size: 24px !important; }
.fy-card.hero h3.xlong { font-size: 21px !important; line-height: 1.12; }
@media (min-width: 600px) and (max-width: 960px) { .fy-card.hero h3.long { font-size: 28px !important; } .fy-card.hero h3.xlong { font-size: 24px !important; } }
/* touch screens keep :hover after a tap: no sticky underline on a card you came back from */
@media (hover: none) { .fy-card:hover h3 { text-decoration: none !important; } }

/* a calm day's weather line on For you: icon, temperature, place with sky and wind, a quiet status chip, a chevron */
.fy-near-quiet > summary.fy-wxsum { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 0 12px; padding: 14px 16px; }
.fy-wxsum .fy-wxic { display: grid; place-items: center; color: var(--ink-1); }
.fy-wxsum .fy-wxic .wxi { width: 32px; height: 32px; stroke-width: 1.6; }
.fy-wxsum .fy-wxt { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.fy-wxsum .fy-wxd { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fy-near-quiet > summary.fy-wxsum .fy-wxd b { font-size: 15px; font-weight: 700; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-near-quiet > summary.fy-wxsum .fy-wxd > span { font-size: 13.5px; line-height: 1.3; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fy-near-quiet > summary.fy-wxsum em.fy-wxok { margin: 0; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
  color: var(--calm); background: color-mix(in srgb, var(--calm) 13%, transparent); white-space: nowrap; }
.fy-near-quiet > summary.fy-wxsum em.fy-wxok::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fy-near-quiet > summary.fy-wxsum em.fy-wxok::after { content: none !important; }
.fy-wxsum .ic-chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s; }
.fy-near-quiet[open] > summary.fy-wxsum .ic-chev { transform: rotate(180deg); }
@media (max-width: 420px) {
  .fy-near-quiet > summary.fy-wxsum { grid-template-columns: auto auto minmax(0, 1fr) auto; row-gap: 8px; }
  .fy-wxsum .fy-wxhl { display: none; }
  .fy-near-quiet > summary.fy-wxsum em.fy-wxok { grid-column: 3; grid-row: 2; justify-self: start; }
  .fy-wxsum .ic-chev { grid-column: 4; grid-row: 1; }
}

/* Latest: the clock time only, one meta line, labels only for what is not a news report, no counts on the filters */
.lt-row { grid-template-columns: 56px 1fr !important; gap: 26px !important; }
.lt-list::before { left: 69px !important; }
.lt-row::before { left: 66px !important; }
.lt-when { padding-top: 14px; }
.lt-when b { font-size: 13.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lt-when b small { margin-left: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.lt-row.hot .lt-when b { color: var(--ink-1); }
.lt-item { gap: 5px; }
.lt-meta { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.lt-bmeta { display: block !important; }
.lt-meta .lt-grow { display: inline-flex; vertical-align: -2px; }
.lt-meta > span + span::before, .lt-bmeta > span + span::before { content: '·'; margin: 0 6px; color: var(--ink-3); }
.lt-bmeta { gap: 4px 0 !important; }
.lt-meta b, .lt-bmeta b { font-weight: 650; color: var(--ink-2); }
.lt-meta .lt-grow { margin-left: 10px; font-size: 13px; }
.lt-meta .lt-kind, .lt-bmeta .lt-kind { height: auto; padding: 0 !important; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.lt-meta .lt-kind.unc, .lt-meta .lt-kind.claim, .lt-bmeta .lt-kind.unc, .lt-bmeta .lt-kind.claim { color: var(--watch); }
.lt-sub { -webkit-line-clamp: 1 !important; font-size: 13.5px; color: var(--ink-3); }
.lt-bmore small { display: block; margin-top: 3px; }
.lt-filters { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.lt-f small { display: none; }
.lt-wh .lt-ws { text-transform: none !important; letter-spacing: 0 !important; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
@media (min-width: 961px) { .lt-row { grid-template-columns: 72px 1fr !important; gap: 30px !important; } .lt-list::before { left: 87px !important; } .lt-row::before { left: 84px !important; } }
.lt-bmeta > .lt-bsub { display: block; margin-top: 4px; }
.lt-bmeta > .lt-bsub::before { content: none !important; }
/* opened, the weather line stays the header: the card below drops its own copy of the place and the temperature */
.fy-near-quiet[open] .near-head .nh-top, .fy-near-quiet[open] .near-head > .wx { display: none !important; }

/* Settings: one pattern. Switch rows (title, one short line, switch on the right) */
#alertsView label.toggle.sr { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 1rem; cursor: pointer; }
#alertsView .set > h2 + label.toggle.sr, #alertsView .set > h2 + .sr-head { border-top: 0; }
#alertsView .sr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#alertsView .sr-txt b { font-size: 16px; font-weight: 650; line-height: 1.3; color: var(--ink-1); }
#alertsView .sr-txt small { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
input.go-switch-in { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 46px !important; height: 28px !important; margin: 0 !important; border-radius: 999px;
  background: color-mix(in srgb, var(--ink-1) 18%, transparent); cursor: pointer; transition: background .2s; }
input.go-switch-in::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
input.go-switch-in:checked { background: var(--calm); }
input.go-switch-in:checked::after { transform: translateX(18px); }
input.go-switch-in:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
/* quiet hours' times sit under their row, aligned with the text */
#alertsView .quiet-row { margin: -4px 0 12px; }
/* a title above a full-width segmented control (Recap, Text size, Language, Look, every alert category) */
#alertsView .sr-head { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--rule); font-size: 16px; font-weight: 650; color: var(--ink-1); }
#alertsView .seg.seg-full, #alertsView #recapSet > .seg { display: flex; width: 100%; max-width: 520px; margin: 10px 0 14px; padding: 4px; gap: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink-1) 7%, transparent); box-shadow: none; }
#alertsView .seg.seg-full button, #alertsView #recapSet > .seg button { flex: 1 1 0; min-width: 0; min-height: 38px; }
#alertsView .ac-row { flex-direction: column; align-items: stretch; gap: 8px; }
#alertsView .al-lvl { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
#alertsView .al-seg { display: flex !important; width: 100%; max-width: 520px; padding: 4px; gap: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink-1) 7%, transparent); }
#alertsView .al-seg button { flex: 1 1 0; min-width: 0; min-height: 38px; }
#alertsView .ac-seg { display: flex !important; width: 100%; max-width: 520px; align-self: flex-start; padding: 4px; gap: 4px; }
#alertsView .ac-seg button { flex: 1 1 0; min-width: 0; height: 38px; justify-content: center; }
#alertsView .ac-seg button.on.breaking::before { background: var(--ink-2); }
/* selects: one shape (a pill with a chevron) */
#alertsView select { -webkit-appearance: none; appearance: none; min-height: 38px; height: 38px; padding: 0 34px 0 14px; border: 0 !important; border-radius: 999px;
  background: color-mix(in srgb, var(--ink-1) 8%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
  color: var(--ink-1); font: 600 15px var(--font); cursor: pointer; }
#alertsView .recap-times label, #alertsView .quiet-row label { font-weight: 600; color: var(--ink-2); }
/* "Specialist data" and "More categories": rows with a chevron, not a ▾ glyph */
#alertsView .ac-more > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 16px; font-weight: 700; cursor: pointer; }
#alertsView .ac-more > summary::-webkit-details-marker { display: none; }
#alertsView .ac-more > summary::after { content: none !important; }
#alertsView .ac-more > summary .ic-chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s; }
#alertsView .ac-more[open] > summary .ic-chev { transform: rotate(180deg); }
/* chips that are on: a line check, not a ✓ character */
#alertsView .chip.on::before { content: '' !important; display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Home sections: chevron buttons and a switch per row */
.home-arr li { padding: 8px 0; gap: 4px; }
.home-arr .ha-b { display: grid; place-items: center; width: 36px; height: 36px; }
.home-arr .ha-b .ic { width: 18px; height: 18px; }
.home-arr .ha-t.go-switch { position: relative; flex: none; min-width: 0; width: 46px; height: 28px; min-height: 0; margin-left: 8px; padding: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink-1) 18%, transparent) !important; box-shadow: none !important; }
.home-arr .ha-t.go-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.home-arr .ha-t.go-switch[aria-checked="true"] { background: var(--calm) !important; }
.home-arr .ha-t.go-switch[aria-checked="true"] i { transform: translateX(18px); }

/* onboarding: the chosen options carry a line check, not ✓; the town box scrolls clear of the Continue bar */
.fy-chat .fy-tile.on b::before, .fy-pill.fy-opt.on::before { content: '' !important; display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.fy-where input, .fy-follow input { scroll-margin-bottom: 160px; }
.fy-pick { padding-bottom: 24px; }
.fy-pick-go .fy-hint { color: var(--ink-3); }
/* the alert category dot is ink, not red (red is for live) */
.ac-seg button.on.breaking::before { background: var(--ink-2) !important; }
/* ==================== end Polish C ==================== */
