/* topic-static.css — layout shell for the STATIC /topics/{slug} pages.
   The component look comes from site.css (.lens / .md-*); this only supplies the
   reading-measure widths the React app set inline, plus a few static-only bits. */

.ts-measure { margin-left: auto; margin-right: auto; }
.ts-read { max-width: 720px; }
.ts-wide { max-width: 920px; }

/* hero art is a background div here (the app uses a JS canvas collage).
   FULL content width + wide-banner height to match the home lead (override site.css's 920/440). */
/* ambient-glow wrapper: a blurred, enlarged copy of the hero bleeds its colour onto the page
   background around the rounded hero (the iOS halo). The wrapper must not clip. */
/* hero + head share the body reading-measure (720px) on desktop so the image, title and
   dek line up with the article text below; full-width on phones (mobile override) */
.shero-wrap { position: relative; isolation: isolate; margin: 6px auto 0; max-width: 720px; }
.shero-glow {
  position: absolute; inset: 0; z-index: 0; border-radius: 16px;
  background-size: cover; background-position: center; pointer-events: none;
  filter: blur(var(--glow-blur, 52px)) saturate(1.6);
  transform: scale(var(--glow-scale, 1.08));
  opacity: var(--glow-opacity, 0.85);
}
.shero { position: relative; z-index: 1; border-radius: 8px; overflow: hidden; max-width: none; margin: 0;
  min-height: 400px; }
.shero-art { position: absolute; inset: 0; }
.shero-content { position: relative; padding: 30px 34px; z-index: 2; width: 100%; }
.shero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.62)); z-index: 1; }
/* headline + hook now sit BELOW the image on white space (no overlay, no scrim) */
.shero-head { margin: 22px auto 0; max-width: 720px; }
.shero-title-out { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.06; letter-spacing: -0.04em; margin: 0; max-width: 100%; }
.shero-dek-out { color: var(--text-secondary); font-size: clamp(16px, 1.7vw, 20px); line-height: 1.34; font-weight: 500; margin: 12px 0 0; max-width: 100%; }
/* meta line — lowercase, dot-separated, per the guidelines' Voice rule (not an uppercase eyebrow) */
.shero-kicker { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: lowercase; margin-bottom: 10px; }
/* short wire-style headline — bold but not overwhelming */
.shero-title { color: #fff; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.06; letter-spacing: -0.05em; margin: 0; max-width: 22ch; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
/* the editorial hook, smaller, under the headline */
.shero-dek { color: rgba(255,255,255,.92); font-size: clamp(16px, 1.7vw, 20px); line-height: 1.34; font-weight: 500; margin: 12px 0 0; max-width: 56ch; text-shadow: 0 2px 18px rgba(0,0,0,.4); }

/* favicon row in framing columns */
.sfavrow { display: inline-flex; align-items: center; gap: 6px; }

/* engagement chip on framing take-rows */
.ltake-eng { color: var(--text-muted); font-size: 11px; margin-left: auto; white-space: nowrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.ts-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-subtle); margin-top: 26px; padding: 18px 0 56px; }

/* nav links (the app uses <button>; static uses <a> — match the look) */
.mast nav { display: inline-flex; gap: 18px; margin-left: 22px; }
.mast nav a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; }
.mast nav a:hover { color: var(--text-primary); }
.mast .left { display: flex; align-items: center; }

/* logo: 28px on desktop (matches the desktop app), 22px on phones to match the mobile home header */
.masthead-logo { height: 28px; display: block; }
@media (max-width: 767px) {
  /* match .m-head: smaller mark + status-bar top space */
  .mast { padding-top: 54px; }
  .masthead-logo { height: 22px; }
}

/* source favicon row under the standfirst (parity with the app story page) */
.srcrow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.srcrow .sfav { margin: 0; }

/* topics index */
.wrap > h1 { font-size: 28px; margin: 28px 0 16px; }
.wrap > ul { line-height: 2; }
.wrap > ul a { color: var(--text-primary); }

/* ---- mobile: a lot of share traffic is phones; stack the 3 framing columns ---- */
@media (max-width: 760px) {
  .lenses, .lenses[data-n="1"], .lenses[data-n="2"], .lenses[data-n="3"] { grid-template-columns: 1fr; }
  .lenses .lens + .lens { border-left: none; border-top: 1px solid var(--border-hairline); }
  .lenses.bare .lens + .lens { border-left: none; padding-left: 0; }
  .shero { min-height: 320px; }
  .shero-content { padding: 20px; }
  .shero-title { font-size: clamp(24px, 8vw, 32px); }
  .ts-wide, .ts-read, .shero-wrap, .shero-head { max-width: 100%; }
}
