/* Night Watch palette */
:root {
  --bg: #F3F4F9; --surface: #FFFFFF; --ink: #151A2E; --muted: #565C76; --line: #DDE0EC;
  --primary: #232C5C; --on-primary: #FFFFFF; --accent: #F2B544; --on-accent: #151A2E; --tint: #E6E8F4;
  --night: #141B33; --night-ink: #EEF0F7; --night-accent: #F2B544;
  --serif: Newsreader, Georgia, "Times New Roman", serif; --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B0F22; --surface: #141B33; --ink: #EEF0F7; --muted: #A9AFC8; --line: #262F52;
    --primary: #AEB8F0; --on-primary: #0B0F22; --tint: #1C2445; --night: #0F1530; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
a:hover { opacity: .85; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(38px, 6vw, 60px); margin: 8px 0 18px; letter-spacing: -0.02em; }
h1 em { color: var(--primary); }
h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 0 0 14px; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow.light { color: var(--night-accent); }

/* header */
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 23px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { flex: none; border-radius: 9px; }
.foot-brand .logo { font-size: 21px; } .foot-brand .logo-mark { width: 32px; height: 32px; }
@media (max-width: 760px) { .logo { font-size: 20px; gap: 8px; } .logo-mark { width: 30px; height: 30px; } }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { text-decoration: none; }
.mini-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 16px; flex: 0 1 380px; min-width: 0; }
.mini-search label { font-size: 15px; color: var(--muted); white-space: nowrap; }
.mini-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.mini-search button { width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }

/* suggestions */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(21,26,46,.16); padding: 6px; z-index: 20; display: flex; flex-direction: column; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; }
.suggest a:hover, .suggest a.on { background: var(--tint); }
.suggest small { color: var(--muted); white-space: nowrap; }

/* hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.big-search { position: relative; margin: 14px 0 22px; }
.hero-title { font-size: clamp(40px, 6.5vw, 68px); line-height: 1.05; margin: 0 0 14px; max-width: 16ch; }
.hero-sub { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em; margin: 0 0 30px; }
.big-search { max-width: 760px; }
.sbar { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 7px 7px 7px 20px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(21,26,46,.10); cursor: text; transition: border-color .15s, box-shadow .15s; }
.sbar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent), 0 10px 30px rgba(21,26,46,.10); }
.sbar-icon { flex: none; color: var(--muted); }
.sbar-prefix { flex: none; font-weight: 600; font-size: 18px; color: var(--ink); white-space: nowrap; }
.sbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); outline: none; padding: 10px 0; }
.sbar input::placeholder { color: var(--muted); opacity: .8; }
.sbar button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; }
.sbar button:hover { filter: brightness(.96); }
.big-search .suggest { left: auto; width: min(620px, 100%); font-size: 17px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 24px; }
.pill { text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-size: 15px; }

.votd { margin-bottom: 72px; }
.votd-in { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; background: var(--night); color: var(--night-ink); border-radius: 24px; padding: clamp(28px, 5vw, 48px); }
.votd blockquote { margin: 12px 0; font-family: var(--serif); font-size: clamp(26px, 3.5vw, 38px); line-height: 1.25; max-width: 30ch; }
.votd-act { display: flex; gap: 10px; flex-wrap: wrap; }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head a { color: var(--primary); font-weight: 600; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 40px; }
.tcard { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tcard strong { font-family: var(--serif); font-size: 23px; font-weight: 500; }
.tcard span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.tcard small { color: var(--primary); font-weight: 600; }
.band { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--tint); border-radius: 24px; padding: 36px 40px; margin-bottom: 48px; }
.band h2 { margin: 6px 0 8px; } .band p { margin: 0; color: var(--muted); }

.btn { display: inline-block; text-decoration: none; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; border: 1px solid transparent; text-align: center; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; white-space: nowrap; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: inherit; background: transparent; }

/* topic page */
.layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 24px; padding-bottom: 80px; }
.main { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.lede { font-size: 19px; line-height: 1.6; max-width: 64ch; margin: 0 0 10px; }
.lede2 { color: var(--muted); max-width: 64ch; margin: 0 0 22px; }
.crisis { background: var(--tint); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.verbar { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.seg { display: flex; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; background: transparent; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.sec { margin: 0 0 30px; display: flex; flex-direction: column; gap: 12px; }
.sec h2 { margin-top: 10px; }
.verse { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.vt { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.vmeta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vref { font-weight: 700; color: var(--primary); font-size: 15px; }
.vver { font-weight: 500; color: var(--muted); }
.vact { display: flex; gap: 6px; }
.chip { font-size: 13px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 6px 11px; border-radius: 999px; }
.cmp { border-top: 1px solid var(--line); margin-top: 14px; }
.cmp div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmp b { font-size: 13px; color: var(--primary); padding-top: 3px; }
.cmp span { font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.about-tr { border-top: 1px solid var(--line); padding-top: 18px; }
.about-tr h2 { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.about-tr p { font-size: 14px; color: var(--muted); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.box a { text-decoration: none; }

/* sponsored */
.ad-label { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.ad-inline { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 30px; }
.ad-logo { width: 52px; height: 52px; border-radius: 13px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; font-family: var(--serif); font-size: 24px; }
.ad-copy { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ad-copy span:last-child { font-size: 14px; color: var(--muted); }
.ad-home { margin-bottom: 64px; }
.ad-side { display: flex; flex-direction: column; gap: 6px; }
.ad-card { text-decoration: none; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.ad-lock { background: var(--night); color: var(--night-ink); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; }
.ad-lock strong { font-size: 19px; }
.ad-lock span { font-size: 14px; opacity: .85; }
.ad-lock .ad-time { font-size: 11px; color: var(--night-accent); letter-spacing: .1em; text-transform: uppercase; opacity: 1; }
.ad-body { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; }
.ad-body > span:not(.btn) { font-size: 14px; color: var(--muted); }
.ad-body .btn { align-self: flex-start; }
.ad-body small { color: var(--muted); }

.plain { padding-top: 24px; padding-bottom: 80px; max-width: 900px; }
.plain h2 { margin-top: 28px; }
.foot { border-top: 1px solid var(--line); }
.foot { background: var(--surface); margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 32px; font-size: 15px; }
.foot-brand p { color: var(--muted); margin: 10px 0 12px; max-width: 34ch; line-height: 1.55; }
.foot-brand > a:last-child { color: var(--primary); font-weight: 600; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col .eyebrow { margin-bottom: 4px; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; opacity: 1; }
.foot-base { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.foot-base a { text-decoration: underline; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (max-width: 760px) {
  .side { position: static; }
  .mini-search { order: 3; flex-basis: 100%; }
  .vt { font-size: 20px; }
  .verse { padding: 18px; }
  .band { padding: 26px 22px; }
  .hero { padding-top: 40px; }
  .sbar { min-height: 58px; padding: 5px 5px 5px 14px; gap: 8px; }
  .sbar-icon { display: none; }
  .sbar-prefix, .sbar input { font-size: 16px; }
  .sbar button { height: 46px; width: 46px; padding: 0; justify-content: center; }
  .sbar button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* illustrations and icons */
.ic { flex: none; vertical-align: -3px; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.banner { margin: 22px 0 8px; }
.banner img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 18px; background: var(--tint); }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-art { margin: 0; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 60px rgba(21,26,46,.22); background: var(--tint); }
.tcard.has-img { padding: 0; overflow: hidden; gap: 0; transition: transform .15s, box-shadow .15s; }
.tcard.has-img:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(21,26,46,.12); }
.tcard-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tint); }
.tcard-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.plain.wide { max-width: 1200px; }
.plain.wide .tgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tcard-media { position: relative; }
.tcard-badge { position: absolute; left: 16px; bottom: -18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); color: var(--primary); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(21,26,46,.12); }
.tcard-media:has(.tcard-badge) + .tcard-body { padding-top: 28px; }
/* card titles stay on one line at every width: the font scales with the card (cqi = 1% of the card's text width) */
.tcard-body { container-type: inline-size; }
.tcard-body strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: min(23px, calc(100cqi / (var(--n, 20) * 0.5))); }   /* --n = characters in the title */
.tcard small { display: inline-flex; align-items: center; gap: 6px; }
.hub-h1 { display: flex; align-items: center; gap: 14px; }
.hub-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--primary); flex: none; }
.hub-ic.sm { width: 32px; height: 32px; border-radius: 10px; }
.hubchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 48px; }
.hubchip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; }
.hubchip .ic { color: var(--primary); }
.hubchip:hover { opacity: 1; border-color: var(--primary); }
.band-img { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 28px; } .band-pic { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; flex: none; }
@media (max-width: 760px) { .band-img { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-art { display: none; } }
@media (max-width: 760px) { .banner img { aspect-ratio: 16 / 8; border-radius: 14px; } .hub-ic { width: 44px; height: 44px; } }
.tlink { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.tlink:hover { text-decoration-color: var(--primary); opacity: 1; }
.keep { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.keep ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.keep a { color: var(--primary); font-weight: 600; text-decoration: none; } .keep a::after { content: " →"; }
.keep a:hover { text-decoration: underline; opacity: 1; }
.pairnote { margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--tint); border-radius: 0 10px 10px 0; }
.pairnote a { color: var(--primary); font-weight: 600; }
/* sponsored PimaScroll ads (scripts/ads.py), in PimaScroll's own brand: forest, ink, gold sparingly, Inter Tight + Inter */
.adslot { --p-ink: #0F1F1A; --p-forest: #145C43; --p-forest-2: #0E4733; --p-gold: #F5A524; --p-gold-ink: #B7791F; --p-muted: #55645E; --p-line: #E3E8E2; --p-paper: #F3F5F0;
  margin: 8px 0 30px; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.adslot .ad-card { display: flex; flex-direction: row; text-decoration: none; color: var(--p-ink); border: 1px solid var(--p-line); border-radius: 18px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.adslot .ad-card:hover { opacity: 1; box-shadow: 0 12px 30px rgba(15,31,26,.14); transform: translateY(-1px); }
.adslot .ad-lock { flex: 0 0 210px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 22px 18px;
  background: radial-gradient(120% 90% at 50% 0%, var(--p-forest) 0%, var(--p-forest-2) 70%); color: #fff; border-radius: 0; }
.adslot .ad-lock .ad-time { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--p-gold); opacity: 1; }
.adslot .ad-lock strong { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; line-height: 1.15; }
.adslot .ad-lock span:last-child { font-size: 12.5px; color: #CFE3D8; opacity: 1; }
.adslot .ad-body { flex: 1; min-width: 0; padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 7px; background: #fff; }
.pima-brand { display: flex; align-items: center; gap: 8px; }
.pima-mark { flex: none; display: block; }
.pima-word { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -.02em; color: var(--p-ink); }
.pima-word b { color: var(--p-gold-ink); font-weight: 800; }
.pima-brand .ad-label { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); }
.adslot .ad-body strong { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1.18; color: var(--p-ink); }
.adslot .ad-text { font-size: 14.5px; line-height: 1.5; color: var(--p-muted); }
.ad-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.pima-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 999px; background: var(--p-gold); color: var(--p-ink); font-weight: 700; font-size: 14.5px; white-space: nowrap; box-shadow: 0 2px 0 rgba(15,31,26,.12); }
.ad-card:hover .pima-btn { background: #FFB43A; }
.ad-cta small { color: var(--p-muted); font-size: 12.5px; }
.ad-end { margin-top: 36px; }
/* the animated story ad (scripts/ads.py _story): a real phone (assets/phone-frame.png) with the screen cut out; the scenes
   play underneath at the screen's measured position. 12 s loop, plays only on screen (.play), still last frame for reduced motion */
.ad-story { padding: 14px !important; }
.ad-story .phone { position: relative; display: block; width: 150px; aspect-ratio: 300 / 553; filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)); }
.ad-story .frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.ad-story .scr { position: absolute; left: 11.1%; right: 7.1%; top: 2.1%; bottom: 3.7%; border-radius: 19px; overflow: hidden; background: #fff;
  animation: scr-bg 12s infinite paused; font-family: Inter, system-ui, sans-serif; }
.ad-story.play .scr, .ad-story.play .scr * { animation-play-state: running; }
.ad-story .scr * { animation-play-state: paused; }
.sb { position: absolute; top: 0; left: 0; right: 0; height: 20px; z-index: 4; font: 700 9px Inter, sans-serif; }
.sb span { position: absolute; left: 13px; top: 6px; opacity: 0; }
.sb .t1 { animation: t1 12s infinite; } .sb .t2 { animation: t2 12s infinite; } .sb .t3 { animation: t3 12s infinite; }
.sb .sig { opacity: 1; left: auto; right: 11px; top: 7px; width: 22px; height: 6px; border-radius: 2px; background: linear-gradient(90deg, currentColor 0 55%, transparent 55% 62%, currentColor 62% 100%); opacity: .8; }
.sb { animation: sb-col 12s infinite; }
.scr .sc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; padding: 22px 9px 8px; opacity: 0; }
.scr .feed { justify-content: flex-start; padding: 20px 0 0; animation: s-feed 12s infinite; }
.feed-in { display: flex; flex-direction: column; width: 100%; animation: feed-move 12s infinite; }
.post { display: flex; flex-direction: column; text-align: left; padding-bottom: 6px; }
.post .pu { display: flex; align-items: center; gap: 5px; padding: 5px 7px; font-size: 8.5px; color: #111; }
.post .pu b { font-weight: 600; } .post .pu em { margin-left: auto; font-style: normal; color: #666; }
.post .av { width: 15px; height: 15px; border-radius: 50%; background: conic-gradient(from 0deg, hsl(var(--h) 80% 55%), hsl(calc(var(--h) + 60) 80% 55%), hsl(var(--h) 80% 55%)); box-shadow: inset 0 0 0 2px #fff; }
.post img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #e8e8e8; }
.post .pa { display: flex; gap: 8px; padding: 5px 7px 2px; }
.post .pa svg { width: 13px; height: 13px; fill: none; stroke: #111; stroke-width: 2; stroke-linejoin: round; }
.post .pl { padding: 0 7px; font-size: 8px; font-weight: 600; color: #111; }
.scr .lockd { background: radial-gradient(120% 80% at 50% 10%, #145C43, #0B2A20); color: #fff; animation: s-lock 12s infinite; }
.scr .lockd .pima-mark { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.8); }
.scr .lockd b { font: 800 15px "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; }
.scr .lockd small { font-size: 9.5px; line-height: 1.35; color: #DCEBE3; }
.scr .lockd .dim { color: #9DBFAE; font-size: 8.5px; }
.scr .lockd .lk { margin: 6px 0 2px; animation: drop 12s infinite; }
.scr .morn { justify-content: flex-start; align-items: stretch; text-align: left; padding: 30px 12px 0; background: #FBF8F1; animation: s-morn 12s infinite; }
.scr .bh { font: 600 12px Newsreader, Georgia, serif; color: #222; margin-bottom: 4px; }
.scr .bv { font: 400 10px/1.5 Newsreader, Georgia, serif; color: #2b2b2b; }
.scr .bv sup { font-size: 6px; color: #B7791F; margin-right: 2px; }
.scr .bl { display: block; height: 5px; border-radius: 3px; background: #E2DCCD; margin-top: 7px; } .scr .bl.s { width: 70%; }
.scr .tok { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; padding: 6px 11px; border-radius: 999px; background: #0F1F1A; color: #F5A524;
  font: 800 12px "Inter Tight", Inter, sans-serif; box-shadow: 0 6px 16px rgba(0,0,0,.25); animation: pop 12s infinite; }
.scr .fin { background: radial-gradient(120% 80% at 50% 20%, #145C43, #0B2A20); animation: s-fin 12s infinite; }
.scr .fin .pima-mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.scr .fin .pima-word { color: #fff; font-size: 17px; } .scr .fin .pima-word b { color: #F5A524; }
.scr .fin small { font-size: 9.5px; color: #DCEBE3; }
/* app icons on the still panels and in the story */
.ad-app { position: relative; display: inline-block; margin-bottom: 4px; }
.ad-app .app-ic { width: 38px; height: 38px; display: block; filter: grayscale(.15); }
.ad-lockbadge { position: absolute; right: -8px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: #0F1F1A; display: grid; place-items: center; }
.ad-lockbadge svg { width: 13px; height: 13px; }
.scr .igbar { position: absolute; top: 20px; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 5px; padding: 3px 8px 4px; background: #fff; font-size: 10px; color: #111; border-bottom: 1px solid #f0f0f0; }
.scr .feed .feed-in { margin-top: 21px; }
.scr .igbar em { margin-left: auto; font-style: normal; font-size: 12px; }
.scr .stories { display: flex; gap: 6px; padding: 2px 7px 6px; border-bottom: 1px solid #eee; }
.scr .st { width: 22px; height: 22px; border-radius: 50%; flex: none; background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  -webkit-mask: radial-gradient(circle, transparent 0 7.6px, #000 8px); mask: radial-gradient(circle, transparent 0 7.6px, #000 8px); position: relative; }
.scr .st::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: hsl(var(--h) 45% 62%); }
.scr .tt { padding: 0; background: #000; animation: s-tt 12s infinite; }
.scr .tt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: tt-in 12s infinite; }
.scr .ttop { position: absolute; top: 22px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 9px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.scr .tside { position: absolute; right: 5px; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #fff; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.scr .tside span { display: flex; flex-direction: column; align-items: center; line-height: 1; } .scr .tside small { font-size: 6.5px; margin-top: 1px; }
.scr .tav { width: 18px; height: 18px; border-radius: 50%; background: #c98; border: 1.5px solid #fff; }
.scr .tcap { position: absolute; left: 7px; right: 30px; bottom: 12px; text-align: left; color: #fff; font-size: 7.5px; line-height: 1.35; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.scr .tcap b { display: block; font-size: 8.5px; }
.scr .lapps { display: flex; gap: 12px; margin-bottom: 6px; }
.scr .la { position: relative; display: block; } .scr .la .app-ic { display: block; filter: grayscale(1) brightness(.75); opacity: .9; animation: dim 12s infinite; }
.scr .la .lb { position: absolute; right: -7px; bottom: -6px; width: 17px; height: 17px; border-radius: 50%; background: #0B2A20; display: grid; place-items: center; animation: drop 12s infinite; }
.scr .la .lb svg { width: 11px; height: 11px; }
.scr .lpima { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 4px; font: 800 9px "Inter Tight", Inter, sans-serif; color: #fff; }
.scr .lpima .pima-mark { width: 13px; height: 13px; }
@keyframes s-tt { 0%, 13% { opacity: 0; } 15%, 24% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes tt-in { 0%, 13% { transform: translateY(100%); } 16%, 100% { transform: none; } }
@keyframes dim { 0%, 28% { filter: none; } 32%, 100% { filter: grayscale(1) brightness(.75); } }
@keyframes scr-bg { 0%, 100% { background: #fff; } }
.adslot .ad-story span:last-child { color: inherit; }          /* the still ad's pale last line must not leak into the phone */
.adslot .ad-story .post .pl { color: #111; } .adslot .ad-story .scr .lockd .dim { color: #9DBFAE; }
.scr .feed { overflow: hidden; }
.scr .feed::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px; background: #fff; z-index: 2; }   /* status bar area stays clear */
.scr .feed-in { margin-top: 2px; }
@keyframes sb-col { 0%, 13% { color: #111; } 14%, 47% { color: #fff; } 49%, 76% { color: #111; } 78%, 100% { color: #fff; } }
@keyframes t1 { 0%, 18% { opacity: 1; } 19%, 100% { opacity: 0; } }
@keyframes t2 { 0%, 18% { opacity: 0; } 19%, 47% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes t3 { 0%, 47% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes s-feed { 0%, 14% { opacity: 1; } 16%, 100% { opacity: 0; } }
@keyframes feed-move { 0%, 6% { transform: translateY(0); animation-timing-function: cubic-bezier(.45, 0, .9, .6); } 15%, 100% { transform: translateY(-520px); } }
@keyframes s-lock { 0%, 25% { opacity: 0; transform: scale(.94); } 28% { opacity: 1; transform: none; } 45% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes drop { 0%, 27% { transform: translateY(-30px) scale(.6); } 31% { transform: translateY(3px) scale(1.1); } 33%, 100% { transform: none; } }
@keyframes s-morn { 0%, 48% { opacity: 0; } 51%, 75% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes pop { 0%, 58% { transform: translateX(-50%) translateY(30px); opacity: 0; } 61% { transform: translateX(-50%) translateY(-3px); opacity: 1; } 63%, 100% { transform: translateX(-50%); opacity: 1; } }
@keyframes s-fin { 0%, 77% { opacity: 0; transform: translateY(6px); } 80%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ad-story .scr, .ad-story .scr * { animation: none !important; }
  .scr .sc { opacity: 0; } .scr .fin { opacity: 1; } .sb { color: #fff; } .sb .t3 { opacity: 1; }
}
.adslot .ad-sidebar .ad-card { flex-direction: column; }
.adslot .ad-sidebar .ad-lock { flex: none; padding: 22px 16px; }
.adslot .ad-sidebar .ad-body { padding: 14px 16px 16px; }
.ad-sidebar .ad-body strong { font-size: 19px; }
.ad-home .adslot { margin-bottom: 64px; }
@media (max-width: 760px) {
  .adslot .ad-card { flex-direction: column; }
  .adslot .ad-lock { flex: none; padding: 18px 16px; }
  .adslot .ad-body { padding: 14px 16px 16px; }
  .side .adslot { display: none; }           /* phones get the end-of-article ad instead of a sidebar card at the bottom */
}
[hidden], .suggest[hidden], .cmp[hidden] { display: none !important; }

/* written notes */
.vnote { margin: -4px 0 12px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.seclead { margin: 0 0 4px; color: var(--muted); max-width: 64ch; }
.explain { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; gap: 0; }
.explain h2 { margin-top: 0; }
.explain p { margin: 0 0 14px; max-width: 66ch; line-height: 1.65; }
.explain p:last-child { margin-bottom: 0; }
