/* =====================================================================
   Jobaaj Stories — visual language v2 ("The Edition")
   Type:   Archivo (condensed display + UI)  ·  Source Serif 4 (reading)
   Colour: paper + maroon-black ink, maroon as structure, orange as signal
   Form:   12-col grid, ink rules instead of boxes, square images
   ===================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-2: #F3F1EE;          /* muted band */
  --ink: #1B1414;
  --ink-2: #544848;
  --ink-3: #857877;
  --rule: rgba(27, 20, 20, .14);
  --rule-2: rgba(27, 20, 20, .9);
  --maroon: #541C1C;
  --maroon-2: #6E2626;
  --orange: #E36B24;
  --orange-on-dark: #F2934F;   /* brand orange, lightened to pass AA on maroon */
  --signal: #B9530F;           /* orange that passes AA on paper */
  --on-dark: #FBF4EF;
  --on-dark-2: rgba(251, 244, 239, .68);
  --img-bg: #E4DEDA;
  --img-filter: none;
  --gradient: linear-gradient(to right, #E36B24 0, #541C1C 51%, #E36B24 100%);

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --ui: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --t-cover: clamp(2.5rem, 1.2rem + 4.6vw, 4.75rem);
  --t-xl: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  --t-l: clamp(1.45rem, 1.15rem + 1vw, 2rem);
  --t-m: clamp(1.15rem, 1.05rem + .35vw, 1.375rem);
  --t-s: 1.0625rem;
  --t-meta: .75rem;

  --wrap: 1320px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #120F0F; --paper-2: #1B1616; --ink: #F1EAE7; --ink-2: #C3B6B3; --ink-3: #8F8381;
  --rule: rgba(241, 234, 231, .14); --rule-2: rgba(241, 234, 231, .85);
  --maroon: #4A1818; --maroon-2: #5E2222; --signal: #F2934F; --img-bg: #241E1E; --img-filter: brightness(.88);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #120F0F; --paper-2: #1B1616; --ink: #F1EAE7; --ink-2: #C3B6B3; --ink-3: #8F8381;
    --rule: rgba(241, 234, 231, .14); --rule-2: rgba(241, 234, 231, .85);
    --maroon: #4A1818; --maroon-2: #5E2222; --signal: #F2934F; --img-bg: #241E1E; --img-filter: brightness(.88);
    color-scheme: dark;
  }
}
[style*="--c"] { --c-text: var(--c); }
:root[data-theme="dark"] [style*="--c"] { --c-text: color-mix(in srgb, var(--c) 50%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [style*="--c"] { --c-text: color-mix(in srgb, var(--c) 50%, #fff); } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ol[class], ul[class] { list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- type primitives ---------- */
.hd { font-family: var(--display); font-stretch: 78%; font-weight: 780; letter-spacing: -.012em; line-height: 1.02; text-wrap: balance; }
.hd--cover { font-size: var(--t-cover); font-weight: 820; line-height: .96; letter-spacing: -.02em; }
.hd--xl { font-size: var(--t-xl); line-height: 1; }
.hd--l { font-size: var(--t-l); }
.hd--m { font-size: var(--t-m); font-stretch: 85%; font-weight: 700; line-height: 1.12; }
.hd--s { font-size: var(--t-s); font-stretch: 90%; font-weight: 650; line-height: 1.22; letter-spacing: 0; }
.hd a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 1px; }
.story:hover .hd a, .hd a:hover { background-size: 100% 2px; }
.dek { font: 400 1.125rem/1.5 var(--serif); color: var(--ink-2); }
.dek--l { font-size: clamp(1.125rem, 1rem + .5vw, 1.3rem); }

/* category label: a short rule in the section colour, then the name */
.kicker { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; font: 650 var(--t-meta)/1 var(--ui); letter-spacing: .02em; color: var(--c-text, var(--signal)); }
.kicker::before { content: ""; width: 16px; height: 2px; background: var(--c, var(--orange)); transition: width .3s var(--ease); }
a.kicker:hover::before { width: 26px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; font: 500 var(--t-meta)/1.3 var(--ui); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.meta > * + * { padding-left: .75rem; border-left: 1px solid var(--rule); }
.meta b { color: var(--ink); font-weight: 650; }
.read { display: inline-flex; align-items: center; gap: .45rem; font: 650 .8125rem/1 var(--ui); color: var(--ink); }
.read svg { transition: transform .3s var(--ease); }
.story:hover .read svg, .read:hover svg { transform: translateX(4px); }

/* ---------- images ---------- */
.img { position: relative; display: block; overflow: hidden; background: var(--img-bg); }
.img img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: transform 1.1s var(--ease), opacity .5s ease; }
.story:hover .img img { transform: scale(1.04); }
.js .img img:not(.ok) { opacity: 0; }
.img.broken img { display: none; }
.img.broken::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--c, #541C1C) 12%, transparent) 10px 11px), var(--img-bg); }
.r-21x9 { aspect-ratio: 21 / 9; } .r-16x9 { aspect-ratio: 16 / 9; } .r-16x10 { aspect-ratio: 16 / 10; } .r-3x2 { aspect-ratio: 3 / 2; }
.r-4x5 { aspect-ratio: 4 / 5; } .r-1x1 { aspect-ratio: 1; } .r-3x4 { aspect-ratio: 3 / 4; }
.caption { font: 400 .75rem/1.45 var(--ui); color: var(--ink-3); margin-top: .5rem; }

/* whole story clickable through its headline link */
.story { position: relative; min-width: 0; }
.story .hd a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- utility bar + masthead + nav ---------- */
.util { border-bottom: 1px solid var(--rule); font: 500 .75rem/1 var(--ui); color: var(--ink-2); }
.util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 1rem; }
.util__r { display: flex; align-items: center; gap: 1.25rem; }
.util a { display: inline-flex; align-items: center; gap: .4rem; }
.util a:hover { color: var(--ink); }
.util__live { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 650; }
.util__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 1.25rem 1.1rem; }
.mast__l, .mast__r { display: flex; align-items: center; gap: .25rem; }
.mast__r { justify-content: flex-end; }
.brand { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; }
.brand__word { display: flex; align-items: baseline; gap: .35rem; line-height: .85; white-space: nowrap; }
.brand__a { font: 900 clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem)/.85 var(--display); font-stretch: 72%; letter-spacing: -.03em; }
.brand__b { font: italic 500 clamp(1.7rem, 1.1rem + 2.3vw, 3rem)/.85 var(--serif); color: var(--maroon); letter-spacing: -.02em; }
:root[data-theme="dark"] .brand__b { color: var(--signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__b { color: var(--signal); } }
.brand__bar { width: 64px; height: 4px; background: var(--gradient); background-size: 200% auto; transition: background-position .8s var(--ease), width .5s var(--ease); }
.brand:hover .brand__bar { background-position: right center; width: 96px; }
.brand__tag { font: 500 .75rem/1 var(--ui); color: var(--ink-3); letter-spacing: .02em; }
.ibtn { display: inline-grid; place-items: center; gap: .4rem; min-width: 42px; height: 42px; padding: 0 .55rem; border: 0; background: none; font: 600 .8125rem var(--ui); }
.ibtn:hover { color: var(--signal); }
.ibtn--label { display: inline-flex; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: 0 1.1rem; border: 0; font: 650 .8125rem/1 var(--ui); letter-spacing: .01em; }
.btn--brand { background: var(--gradient) 0 0 / 200% auto; color: #fff; transition: background-position .6s var(--ease); }
.btn--brand:hover { background-position: right center; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { box-shadow: inset 0 0 0 1.5px currentColor; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }

/* sticky section bar — gains a compact wordmark once the masthead scrolls away */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(8px); border-top: 2px solid var(--rule-2); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 1rem; height: 50px; }
.nav__mini { display: flex; align-items: baseline; gap: .25rem; white-space: nowrap; max-width: 0; opacity: 0; overflow: hidden; transition: max-width .45s var(--ease), opacity .3s; }
.nav__mini .brand__a { font-size: 1.35rem; } .nav__mini .brand__b { font-size: 1.2rem; }
.stuck .nav__mini { max-width: 200px; opacity: 1; }
.nav__list { flex: 1; min-width: 0; display: flex; gap: 1.35rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a { position: relative; display: flex; align-items: center; height: 50px; font: 600 .875rem/1 var(--ui); color: var(--ink-2); white-space: nowrap; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c, var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__list a[aria-current] { color: var(--ink); }
.nav__list a[aria-current]::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.stuck .nav__tools { opacity: 1; pointer-events: auto; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }

/* full-screen section index (menu) */
.index { position: fixed; inset: 0; z-index: 120; background: var(--maroon); color: var(--on-dark); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
.index.open { visibility: visible; opacity: 1; transition: opacity .3s; }
.index__top { display: flex; justify-content: space-between; align-items: center; padding-block: 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.index__top .brand__b { color: var(--orange-on-dark); }
.index__grid { display: grid; gap: 2.5rem; padding-block: 2.5rem 4rem; }
.index__list { counter-reset: n; display: grid; }
.index__list a { counter-increment: n; display: flex; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font: 780 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.05 var(--display); font-stretch: 78%; transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, color .2s; }
.index__list a::before { content: counter(n, decimal-leading-zero); font: 600 .8rem/1 var(--ui); color: var(--orange-on-dark); min-width: 1.8rem; }
.index__list a:hover { color: var(--orange-on-dark); }
.index.open .index__list a { transform: none; opacity: 1; }
.index__side h2 { font: 650 .75rem/1 var(--ui); letter-spacing: .04em; color: var(--orange-on-dark); margin-bottom: 1rem; }
.index__side a { display: block; padding: .4rem 0; font: 500 1.05rem var(--ui); }
.index__side a:hover { color: var(--orange-on-dark); }
.index__search { display: flex; border-bottom: 2px solid rgba(255,255,255,.6); margin-bottom: 2rem; }
.index__search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: 600 1.25rem var(--ui); color: #fff; padding: .7rem 0; }
.index__search input::placeholder { color: rgba(255,255,255,.55); }

/* search overlay */
.find { position: fixed; inset: 0 0 auto; z-index: 110; background: var(--paper); border-bottom: 2px solid var(--rule-2); transform: translateY(-105%); transition: transform .4s var(--ease); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.find.open { transform: none; }
.find form { display: flex; align-items: center; gap: 1rem; padding-block: 1.5rem; }
.find input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 780 clamp(1.5rem, 1rem + 2vw, 2.5rem)/1.1 var(--display); font-stretch: 80%; color: var(--ink); }
.find__hint { padding-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font: 500 .875rem var(--ui); color: var(--ink-3); }
.find__hint a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.find__hint a:hover { text-decoration-color: var(--orange); }

/* ---------- section scaffolding ---------- */
.sec { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.sec-hd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 1rem; padding-top: .75rem; border-top: 2px solid var(--rule-2); margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.sec-hd__n { font: 600 .8125rem/1 var(--ui); color: var(--signal); font-variant-numeric: tabular-nums; align-self: start; padding-top: .45rem; }
.sec-hd__t { min-width: 0; overflow-wrap: anywhere; font: 800 clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem)/1 var(--display); font-stretch: 75%; letter-spacing: -.015em; }
.sec-hd__t span { color: var(--c-text, inherit); }
.sec-hd__more { display: inline-flex; align-items: center; gap: .4rem; font: 650 .8125rem/1 var(--ui); padding-bottom: .35rem; white-space: nowrap; }
.sec-hd__more svg { transition: transform .3s var(--ease); }
.sec-hd__more:hover { color: var(--signal); }
.sec-hd__more:hover svg { transform: translateX(4px); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ================= STORY PATTERNS ================= */
/* A — cover (hero) */
.cover { position: relative; margin-top: 0; }
.cover__img { aspect-ratio: 4 / 3; }
.cover__body { padding: 1.25rem var(--pad) 0; display: grid; gap: .9rem; }
.cover .hd--cover { max-width: 17ch; }
.cover .dek { max-width: 52ch; }
.cover__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.byline { display: inline-flex; align-items: center; gap: .6rem; font: 600 .8125rem/1.2 var(--ui); }
.byline small { display: block; font-weight: 500; color: var(--ink-3); }
.av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--maroon); color: #fff; font: 700 .75rem/1 var(--ui); flex: none; }
.av--l { width: 52px; height: 52px; font-size: 1rem; }
/* orchestrated moment: the cover headline rises in once */
.rise > span { display: block; overflow: hidden; }
.rise > span > span { display: block; animation: rise .9s var(--ease) both; }
.rise > span:nth-child(2) > span { animation-delay: .08s; } .rise > span:nth-child(3) > span { animation-delay: .16s; } .rise > span:nth-child(4) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } }

.cover-side { display: grid; margin-top: 1.5rem; }
.cover-side .story { padding: 1rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 1rem; }
.cover-side .story .img { order: 2; }

/* B — row: small image + headline */
.row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1rem; align-items: start; }
.row__body { display: grid; gap: .45rem; }

/* C — overlay */
.ov { position: relative; overflow: hidden; color: #fff; isolation: isolate; display: flex; }
.ov .img { position: absolute; inset: 0; z-index: -2; }
.ov::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 8, 8, 0) 35%, rgba(18, 8, 8, .82) 100%); }
.ov__body { margin-top: auto; padding: clamp(1rem, 2vw, 1.75rem); display: grid; gap: .6rem; }
.ov .kicker { color: var(--orange-on-dark); } .ov .kicker::before { background: var(--orange-on-dark); }
.ov .meta { color: rgba(255, 255, 255, .72); } .ov .meta > * + * { border-color: rgba(255, 255, 255, .25); }

/* D — numbered */
.num { counter-reset: n; display: grid; }
.num > li { counter-increment: n; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: .75rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); position: relative; }
.num > li::before { content: counter(n, decimal-leading-zero); font: 800 2.1rem/.9 var(--display); font-stretch: 70%; color: var(--signal); font-variant-numeric: tabular-nums; }
.num > li > div { display: grid; gap: .45rem; }

/* E — minimal */
.min { display: grid; gap: .55rem; align-content: start; }

/* F — split */
.split { display: grid; gap: 1.25rem; }
.split__body { display: grid; gap: 1rem; align-content: center; }

/* ================= HOME SECTIONS ================= */
/* Trending band */
.band { background: var(--maroon); color: var(--on-dark); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.band .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
.band__label { display: flex; align-items: center; gap: .6rem; padding-right: 1.25rem; font: 650 .8125rem/1.1 var(--ui); border-right: 1px solid rgba(255,255,255,.18); }
.band__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 2.4s infinite; }
.band__list { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.band__list::-webkit-scrollbar { display: none; }
.band__list li { position: relative; flex: 0 0 min(300px, 78vw); scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: 1.1rem 1.25rem; border-right: 1px solid rgba(255,255,255,.14); }
.band__list b { font: 800 1.75rem/.9 var(--display); font-stretch: 70%; color: var(--orange-on-dark); }
.band__list a { font: 600 .9375rem/1.3 var(--ui); }
.band__list a::after { content: ""; position: absolute; inset: 0; }
.band__list li:hover a { text-decoration: underline; text-underline-offset: 3px; }

/* Editor's picks (split + minimal row) */
.picks-lead .split__body .hd { max-width: 18ch; }
.picks-row { margin-top: 2rem; display: grid; gap: 1.25rem; }
.picks-row .min { padding-top: 1rem; border-top: 1px solid var(--rule); }

/* 8/4 category */
.eight .lead { display: grid; gap: .9rem; }
.eight .list { display: grid; margin-top: 1.5rem; }
.eight .list .min { padding: 1rem 0; border-top: 1px solid var(--rule); }
.eight .list .min:first-child { border-top-color: var(--rule-2); }

/* Visual (dark picture section) */
.pics { background: #161010; color: var(--on-dark); margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.pics .sec-hd { border-top-color: rgba(255,255,255,.85); margin-top: 0; }
.pics .sec-hd__n { color: var(--orange-on-dark); }
.pics__grid { display: grid; gap: var(--gap); }
.pics__grid .ov { min-height: 300px; }

/* numbered + featured */
.ranked .feat { display: grid; gap: .9rem; }

/* wire feed */
.wire { display: grid; }
.wire li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: .75rem; padding: .9rem 0; border-top: 1px solid var(--rule); position: relative; }
.wire time { font: 600 .75rem/1.5 var(--ui); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wire .body { display: grid; gap: .3rem; }

/* people */
.people { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62%); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.people::-webkit-scrollbar { display: none; }
.people .story { scroll-snap-align: start; display: grid; gap: .75rem; }

/* discovery / newsletter band */
.disc { background: var(--maroon); color: var(--on-dark); margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.disc .wrap { display: grid; gap: 3rem; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.disc__big { font: 800 clamp(2.4rem, 1.5rem + 4vw, 4.5rem)/.95 var(--display); font-stretch: 72%; letter-spacing: -.02em; }
.disc__big em { font: italic 500 1em/1 var(--serif); color: var(--orange-on-dark); letter-spacing: -.02em; }
.disc p { font: 400 1.1rem/1.55 var(--serif); color: var(--on-dark-2); max-width: 44ch; margin-top: 1.25rem; }
.sub { display: flex; margin-top: 1.75rem; max-width: 480px; border-bottom: 2px solid rgba(255,255,255,.75); }
.sub input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: 500 1.05rem var(--ui); padding: .85rem 0; }
.sub input::placeholder { color: rgba(255,255,255,.5); }
.sub button { background: none; border: 0; color: #fff; font: 700 .875rem var(--ui); display: inline-flex; align-items: center; gap: .4rem; }
.sub button:hover { color: var(--orange-on-dark); }
.sub-note { font: 500 .8125rem var(--ui); color: var(--orange-on-dark); margin-top: .75rem; min-height: 1.2em; }
.disc__idx h2 { font: 650 .75rem/1 var(--ui); letter-spacing: .04em; color: var(--orange-on-dark); margin-bottom: .5rem; }
.disc__idx ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.disc__idx a { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.14); font: 650 1rem/1.2 var(--ui); }
.disc__idx a span { color: var(--on-dark-2); font-weight: 500; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.disc__idx a:hover { color: var(--orange-on-dark); }

/* footer */
.foot { background: #0E0B0B; color: var(--on-dark-2); padding-block: 3.5rem 2rem; font-size: .875rem; }
.foot__word { display: flex; align-items: baseline; gap: .5rem; color: var(--on-dark); line-height: .85; }
.foot__word .brand__a { font-size: clamp(3rem, 1rem + 9vw, 8.5rem); }
.foot__word .brand__b { font-size: clamp(2.6rem, 1rem + 7.8vw, 7.4rem); color: var(--orange-on-dark); }
.foot__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); }
.foot h2 { font: 650 .75rem/1 var(--ui); letter-spacing: .04em; color: var(--on-dark); margin-bottom: .9rem; }
.foot a { display: block; padding: .3rem 0; }
.foot a:hover { color: #fff; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .75rem; }

/* ================= SECTION (CATEGORY) PAGE ================= */
.sect-hd { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) 0; border-bottom: 1px solid var(--rule); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font: 500 .75rem/1.3 var(--ui); color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.sect-hd__name { font: 850 clamp(4.5rem, 2rem + 13vw, 11rem)/.82 var(--display); font-stretch: 66%; letter-spacing: -.035em; margin-top: 1.25rem; color: var(--ink); }
.sect-hd__name::after { content: ""; display: block; width: .55em; height: .07em; background: var(--c); margin-top: .12em; }
.sect-hd__row { display: grid; gap: 1.5rem; margin-top: 1.75rem; padding-bottom: 1.5rem; }
.sect-hd__intro { font: 400 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.45 var(--serif); max-width: 40ch; }
.sect-hd__facts { display: flex; gap: 2rem; align-self: end; }
.sect-hd__facts div { display: grid; gap: .25rem; }
.sect-hd__facts dt { font: 500 .75rem/1 var(--ui); color: var(--ink-3); }
.sect-hd__facts dd { font: 800 2rem/1 var(--display); font-stretch: 75%; }
.tabs { display: flex; gap: 1.5rem; border-top: 1px solid var(--rule); }
.tabs a { padding: .9rem 0; font: 600 .875rem/1 var(--ui); color: var(--ink-3); border-top: 2px solid transparent; margin-top: -1px; }
.tabs a[aria-current] { color: var(--ink); border-top-color: var(--ink); }
.sect-feed { display: grid; }
.sect-feed .story { display: grid; grid-template-columns: minmax(0, 1fr) 38%; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.sect-feed .story .img { order: 2; }
.sect-feed .story > div { display: grid; gap: .6rem; align-content: start; }
.sect-feed .dek { font-size: 1rem; }
.sect-feed .date { font: 600 .75rem var(--ui); color: var(--ink-3); }

/* ================= ARTICLE (calmer, reading-first) ================= */
.art-hd { max-width: 860px; margin-inline: auto; padding: clamp(2rem, 1.5rem + 3vw, 4rem) var(--pad) 0; display: grid; gap: 1.1rem; }
.art-title { font: 600 clamp(2.1rem, 1.4rem + 3vw, 3.6rem)/1.06 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.art-dek { font: 400 clamp(1.15rem, 1.05rem + .45vw, 1.35rem)/1.5 var(--serif); color: var(--ink-2); }
.art-by { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1rem; margin-top: .5rem; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule); }
.art-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.art-facts div { display: grid; gap: .2rem; }
.art-facts dt { font: 500 .6875rem/1 var(--ui); color: var(--ink-3); letter-spacing: .02em; }
.art-facts dd { font: 600 .8125rem/1.2 var(--ui); font-variant-numeric: tabular-nums; }
.art-fig { max-width: 1320px; margin: clamp(1.5rem, 1rem + 2vw, 2.75rem) auto 0; }
.art-fig .img { aspect-ratio: 16 / 9; }
.art-fig figcaption { max-width: 860px; margin: .6rem auto 0; padding-inline: var(--pad); font: 400 .8125rem/1.45 var(--ui); color: var(--ink-3); }
.art-grid { position: relative; max-width: 1180px; margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) auto 0; padding-inline: var(--pad); display: grid; grid-template-columns: minmax(0, 1fr); }
.art-body { width: 100%; max-width: 660px; margin-inline: auto; }
.share { display: flex; gap: .35rem; }
.share a, .share button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); background: none; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share .done { background: var(--ink); color: var(--paper); }
.share-rail { display: none; }

.prose { font: 400 1.1875rem/1.75 var(--serif); }
.prose > * + * { margin-top: 1.2em; }
.prose > p:first-child::first-letter { float: left; font: 800 4.1em/.8 var(--display); font-stretch: 70%; padding: .08em .1em 0 0; color: var(--maroon); }
:root[data-theme="dark"] .prose > p:first-child::first-letter { color: var(--signal); }
.prose h2 { font: 800 1.75rem/1.1 var(--display); font-stretch: 78%; letter-spacing: -.01em; margin-top: 2.2em; padding-top: .9rem; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.prose h2 + * { margin-top: .75em; }
.prose h3 { font: 700 1.2rem/1.3 var(--ui); margin-top: 1.8em; }
.prose a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--signal); }
.prose .key-figures { list-style: none; padding: 0; font-family: var(--ui); font-size: 1rem; line-height: 1.5; border-top: 2px solid var(--rule-2); }
.prose .key-figures li { padding: .8rem 0; margin: 0; border-bottom: 1px solid var(--rule); }
.prose .key-figures strong { display: block; font: 800 1.35rem/1.15 var(--display); font-stretch: 78%; color: var(--signal); }
.prose blockquote { margin: 2em 0; padding: 1.25rem 0; border-top: 3px solid var(--orange); border-bottom: 1px solid var(--rule); }
.prose blockquote p { font: italic 400 clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem)/1.28 var(--serif); letter-spacing: -.01em; }
.prose blockquote cite { display: block; margin-top: .8rem; font: 600 .8125rem/1.3 var(--ui); font-style: normal; color: var(--ink-3); }
.prose .callout { font-family: var(--ui); font-size: 1rem; line-height: 1.6; padding: 1.25rem 1.4rem; background: var(--paper-2); border-left: 3px solid var(--maroon); }
.prose .callout p:first-child, .prose .bottom-line p:first-child { font-weight: 750; margin-bottom: .35rem; }
.prose .bottom-line { font-family: var(--ui); font-size: 1.0625rem; line-height: 1.6; padding: 1.5rem 1.5rem; background: var(--maroon); color: var(--on-dark); }
.prose .bottom-line p:first-child { font: 800 1.35rem/1.1 var(--display); font-stretch: 78%; color: var(--orange-on-dark); }
.prose .sources { font: 400 .875rem/1.6 var(--ui); color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 1rem; }
.prose .sources h3 { font: 700 .8125rem/1 var(--ui); color: var(--ink); margin: 0 0 .5rem; }
.prose figure img { width: 100%; filter: var(--img-filter); }
.prose figcaption { font: 400 .8125rem/1.45 var(--ui); color: var(--ink-3); margin-top: .5rem; }
.table-wrap { overflow-x: auto; font: 400 .9375rem/1.45 var(--ui); }
.prose table { width: 100%; min-width: 460px; border-collapse: collapse; border-top: 2px solid var(--rule-2); }
.prose th, .prose td { text-align: left; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 700; font-size: .8125rem; }
.toc { margin-bottom: 2.5rem; padding: 1rem 0; border-top: 2px solid var(--rule-2); border-bottom: 1px solid var(--rule); font-family: var(--ui); }
.toc h2 { font: 650 .75rem/1 var(--ui); letter-spacing: .04em; color: var(--ink-3); margin-bottom: .75rem; }
.toc ol { counter-reset: n; display: grid; gap: .45rem; }
.toc li { counter-increment: n; display: grid; grid-template-columns: 1.8rem 1fr; font: 600 .9375rem/1.35 var(--ui); }
.toc li::before { content: counter(n, decimal-leading-zero); color: var(--signal); font-variant-numeric: tabular-nums; font-size: .8125rem; padding-top: .1rem; }
.toc a:hover, .toc a.on { color: var(--signal); }
.faq { margin-top: 3rem; }
.faq > h2 { font: 800 1.75rem/1.1 var(--display); font-stretch: 78%; margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font: 650 1.05rem/1.35 var(--ui); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: .35rem; background: linear-gradient(var(--signal), var(--signal)) center / 12px 2px no-repeat, linear-gradient(var(--signal), var(--signal)) center / 2px 12px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; font: 400 1.0625rem/1.65 var(--serif); color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font: 600 .875rem var(--ui); }
.tags a { color: var(--ink-2); } .tags a::before { content: "#"; color: var(--signal); margin-right: 1px; }
.tags a:hover { color: var(--ink); }
.author { display: grid; grid-template-columns: auto 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--rule-2); }
.author__name { font: 800 1.35rem/1.1 var(--display); font-stretch: 80%; }
.author__bio { font: 400 1rem/1.55 var(--serif); color: var(--ink-2); margin-top: .35rem; }
.end-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font: 650 .9375rem var(--ui); }
.next { background: var(--paper-2); margin-top: clamp(3rem, 2rem + 4vw, 5rem); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.next .sec-hd { margin-top: 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 150; transform: translate(-50%, 1rem); opacity: 0; transition: .3s var(--ease); background: var(--ink); color: var(--paper); padding: .75rem 1.1rem; font: 600 .875rem var(--ui); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.totop { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 44px; height: 44px; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: .3s var(--ease); pointer-events: none; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }

/* ================= RESPONSIVE ART DIRECTION ================= */
/* Mobile first (above). Mobile specifics: */
@media (max-width: 767.98px) {
  .sec-hd { grid-template-columns: auto minmax(0, 1fr); }
  .sec-hd__more { grid-column: 2; justify-self: start; padding-bottom: 0; }
  .util { display: none; }
  .mast { grid-template-columns: auto 1fr auto; padding-block: .9rem .8rem; }
  .brand { align-items: flex-start; }
  .brand__tag, .brand__bar { display: none; }
  .mast__l .lbl, .mast__r .btn { display: none; }
  .nav { border-top-width: 1px; }
  .nav .wrap { height: 46px; } .nav__list a { height: 46px; font-size: .8125rem; } .nav__list { gap: 1.1rem; }
  .nav__mini, .nav__tools { display: none; }
  .cover__img { margin-inline: 0; }
  .band .wrap { grid-template-columns: 1fr; padding-inline: 0; }
  .band__label { padding: .9rem var(--pad) 0; border: 0; }
  .band__list li { padding-left: var(--pad); }
  .row { grid-template-columns: 96px minmax(0, 1fr); }
  .sect-feed .story { grid-template-columns: minmax(0, 1fr) 104px; gap: 1rem; }
  .sect-feed .story .dek { display: none; }
  .prose { font-size: 1.125rem; }
  .prose blockquote { margin-inline: 0; }
}

@media (min-width: 640px) {
  .picks-row { grid-template-columns: repeat(3, 1fr); }
  .picks-row .min + .min { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
  .pics__grid { grid-template-columns: 1fr 1fr; }
  .pics__grid .ov:first-child { grid-column: 1 / -1; min-height: 420px; }
  .people { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .foot__cols { grid-template-columns: repeat(4, 1fr); }
  .index__grid { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 768px) {
  .cover-side { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
  .cover-side .story { grid-template-columns: 1fr; }
  .cover-side .story .img { display: none; }
  .cover-side .story + .story { border-left: 1px solid var(--rule); padding-left: var(--gap); margin-left: calc(var(--gap) * -1); padding-left: var(--gap); }
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
  .eight { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); }
  .eight .list { margin-top: 0; align-content: start; }
  .ranked { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--gap) * 1.5); }
  .ranked .num { order: -1; }
  .wire { grid-template-columns: 1fr 1fr; column-gap: calc(var(--gap) * 1.5); }
  .disc .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .sect-hd__row { grid-template-columns: minmax(0, 1fr) auto; }
  .art-hd { text-align: left; }
}

@media (min-width: 1024px) {
  /* magazine cover: edge-to-edge image, headline set over it */
  .cover { max-width: 1600px; margin-inline: auto; }
  .cover__stage { position: relative; }
  .cover__img { aspect-ratio: auto; height: min(78vh, 760px); min-height: 560px; }
  .cover__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 6, 6, .82) 0%, rgba(14, 6, 6, .55) 42%, rgba(14, 6, 6, 0) 72%); pointer-events: none; }
  .cover__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding: 0 var(--pad) 2.75rem; color: #fff; }
  .cover__body > * { max-width: 760px; }
  .cover .kicker { color: var(--orange-on-dark); } .cover .kicker::before { background: var(--orange); width: 28px; }
  .cover .dek { color: rgba(255, 255, 255, .82); }
  .cover__foot { border-color: rgba(255, 255, 255, .22); max-width: 760px; }
  .cover .meta, .cover .byline small { color: rgba(255, 255, 255, .7); }
  .cover .meta > * + * { border-color: rgba(255, 255, 255, .25); }
  .cover .read { color: #fff; }
  .cover-side { margin-top: 0; }
  .cover-side .story { padding-block: 1.25rem; border-top: 0; }
  .cover-side .story .img { display: block; }
  .cover-side .story { grid-template-columns: minmax(0, 1fr) 88px; }

  .picks-lead .split__body { padding-left: 1rem; }
  .pics__grid { grid-template-columns: 5fr 7fr; grid-template-rows: 1fr 1fr; }
  .pics__grid .ov:first-child { grid-column: 1; grid-row: 1 / span 2; min-height: 640px; }
  .pics__grid .ov { min-height: 0; }
  .people { grid-template-columns: repeat(4, 1fr); }
  .people .story:nth-child(even) { margin-top: 3rem; }        /* staggered, portrait-wall rhythm */
  .index__list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }

  .sect-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: calc(var(--gap) * 1.5); }
  .art-grid { grid-template-columns: 64px minmax(0, 660px); column-gap: 3rem; justify-content: center; }
  .share-rail { display: block; }
  .share-rail .share { position: sticky; top: 90px; flex-direction: column; }
  .art-body { margin: 0; }
  .art-aside { display: block; }
  .inline-share { display: none; }
}
@media (max-width: 1199.98px) { .art-aside { display: none; } }
@media (min-width: 1200px) { .art-grid { grid-template-columns: 64px minmax(0, 660px) minmax(0, 1fr); justify-content: stretch; } .prose blockquote { margin-inline: -80px; } }
.art-aside .num { position: sticky; top: 90px; }
.art-aside h2 { font: 650 .75rem/1 var(--ui); letter-spacing: .04em; color: var(--ink-3); padding-bottom: .75rem; }
.art-aside .num > li { grid-template-columns: 2.4rem 1fr; padding: .85rem 0; }
.art-aside .num > li::before { font-size: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media print { .util, .nav, .band, .disc, .foot, .share, .share-rail, .next, .index, .find { display: none !important; } }

/* =====================================================================
   Additions for real content (not in the prototype, same visual language)
   ===================================================================== */

/* preview ribbon */
.pv { background: var(--ink); color: var(--paper); font: 500 .75rem/1.3 var(--ui); }
.pv .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-block: .45rem; }
.pv a { text-decoration: underline; text-underline-offset: 3px; }
.pv b { font-weight: 700; color: var(--orange-on-dark); }

/* avatar photo over initials */
.av { position: relative; overflow: hidden; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av--xl { width: 120px; height: 120px; font-size: 2rem; }

/* live label */
.live { display: inline-flex; align-items: center; gap: .35rem; margin-left: .6rem; font: 700 .6875rem/1 var(--ui); letter-spacing: .04em; color: #fff; background: #C62828; padding: .3rem .45rem; position: relative; z-index: 2; vertical-align: middle; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }

/* pager */
.more { display: flex; justify-content: center; margin-top: 2rem; }
.more .btn { min-height: 46px; padding-inline: 1.4rem; }
.more .btn[aria-busy="true"] { opacity: .5; pointer-events: none; }

/* home: digest row */
.digests { display: grid; gap: 1.25rem; }
.digests .row .img { aspect-ratio: 1; }

/* section header: long names step down so they never overflow */
.sect-hd__name { overflow-wrap: anywhere; }
.sect-hd__name--m { font-size: clamp(3rem, 1.5rem + 7vw, 7rem); }
.sect-hd__name--s { font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.75rem); line-height: .9; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.sect-empty { padding: 3rem 0; font: 400 1.15rem/1.5 var(--serif); color: var(--ink-2); }
.sect-aside .num { margin-top: 0; }

/* search page form */
.sfind { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; border-bottom: 2px solid var(--rule-2); max-width: 760px; }
.sfind input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: .7rem 0; font: 700 clamp(1.3rem, 1rem + 1.2vw, 1.9rem)/1.1 var(--display); font-stretch: 82%; color: var(--ink); }
.sfind button { border: 0; background: none; }

/* article extras */
.art-live { display: inline-flex; align-self: start; }
.art-live .live { margin: 0; font-size: .75rem; padding: .4rem .6rem; }
.listen { display: grid; gap: .6rem; margin-bottom: 2rem; padding: 1rem 1.1rem; background: var(--paper-2); border-left: 3px solid var(--orange); }
.listen p { display: flex; align-items: center; gap: .5rem; font: 700 .8125rem/1 var(--ui); }
.listen p svg { color: var(--signal); }
.listen audio { width: 100%; height: 40px; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; }
.prose img { filter: var(--img-filter); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.prose .twitter-tweet, .prose .instagram-media { margin-inline: auto !important; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 80px; }
.prose h4 { font: 700 1.05rem/1.35 var(--ui); margin-top: 1.6em; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose table p { margin: 0; }
.prose > .table-wrap { margin-top: 1.5em; }
.prose .key-figures li::marker { content: none; }
.livefeed { margin-top: 3rem; }
.livefeed > h2 { display: flex; align-items: center; gap: .75rem; font: 800 1.75rem/1.1 var(--display); font-stretch: 78%; margin-bottom: 1rem; }
.livefeed ol { list-style: none; border-left: 2px solid var(--rule); padding-left: 1.25rem; display: grid; gap: 1.75rem; }
.livefeed li { position: relative; }
.livefeed li::before { content: ""; position: absolute; left: calc(-1.25rem - 6px); top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--orange); }
.livefeed li:first-child::before { background: var(--orange); }
.livefeed time { font: 650 .75rem/1 var(--ui); color: var(--signal); font-variant-numeric: tabular-nums; }
.livefeed h3 { font: 700 1.2rem/1.3 var(--ui); margin-top: .4rem; }
.livefeed .prose { font-size: 1.0625rem; margin-top: .5rem; }
.sources a { overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.author__links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .6rem; }
.art-aside h2 + .num > li:first-child { border-top-color: var(--rule-2); }

/* people index (authors) */
.team { display: grid; gap: 2rem var(--gap); }
.team .story { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.team .av { width: 88px; height: 88px; font-size: 1.4rem; }
.team .hd a::after { content: ""; position: absolute; inset: 0; }
.team p { font: 400 .95rem/1.5 var(--serif); color: var(--ink-2); margin-top: .35rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.team .role { font: 600 .75rem/1.3 var(--ui); color: var(--signal); margin-top: .3rem; display: block; }
.author-hd { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) 2rem; border-bottom: 1px solid var(--rule); }
.author-hd .sect-hd__name { margin-top: 0; }
.author-hd .role { font: 650 .875rem/1.3 var(--ui); color: var(--signal); margin-top: 1rem; }
.author-hd .bio { font: 400 clamp(1.05rem, 1rem + .4vw, 1.25rem)/1.55 var(--serif); color: var(--ink-2); max-width: 62ch; margin-top: .75rem; }

/* static pages */
.page .art-hd { padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.page-body { max-width: 720px; margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0; padding-inline: var(--pad); }
.page-body .prose > p:first-child::first-letter { float: none; font: inherit; padding: 0; color: inherit; }

/* forms */
.form { display: grid; gap: 1.1rem; margin-top: 3rem; padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); background: var(--paper-2); border-top: 3px solid var(--maroon); }
.form h2 { font: 800 1.75rem/1.1 var(--display); font-stretch: 78%; }
.form .fields { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font: 650 .8125rem/1.2 var(--ui); }
.form input, .form textarea { width: 100%; border: 0; border-bottom: 1.5px solid var(--rule-2); background: var(--paper); padding: .75rem .8rem; font: 400 1rem/1.4 var(--ui); color: var(--ink); border-radius: 0; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; }
.form .btn { justify-self: start; }
.form .note { font: 500 .875rem/1.4 var(--ui); min-height: 1.2em; }
.form .note.ok { color: #1E6B45; } .form .note.bad { color: #B3261E; }
.map { margin-top: 3rem; aspect-ratio: 16 / 9; width: 100%; border: 0; filter: var(--img-filter); }

/* digest */
.digest-body { max-width: 680px; margin: 2.5rem auto 0; padding-inline: var(--pad); }
.digest-body table { max-width: 100% !important; }
.digest-body img { max-width: 100%; height: auto; }
.digest-list { display: grid; gap: 2rem; margin-top: 2rem; }
.digest-list .row { grid-template-columns: 160px minmax(0, 1fr); }

/* 404 */
.lost { padding-block: clamp(3rem, 2rem + 6vw, 7rem) 2rem; display: grid; gap: 1.25rem; }
.lost .sect-hd__name { margin: 0; }
.lost p { font: 400 1.25rem/1.5 var(--serif); color: var(--ink-2); max-width: 44ch; }

/* footer extras */
.foot__social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.foot__social a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.18); }
.foot__social a:hover { border-color: #fff; }
.foot__about { max-width: 46ch; margin-top: 1rem; line-height: 1.6; }

@media (max-width: 767.98px) {
  .digest-list .row { grid-template-columns: 96px minmax(0, 1fr); }
  .sect-aside { margin-top: 2.5rem; }
}
@media (min-width: 640px) {
  .digests { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .form .fields { grid-template-columns: 1fr 1fr; }
  .form .fields .full { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .author-hd { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2rem; }
}
@media (min-width: 1024px) {
  .digests { grid-template-columns: repeat(4, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .digest-list { grid-template-columns: 1fr 1fr; column-gap: calc(var(--gap) * 1.5); }
}
@media print { .pv { display: none !important; } }

/* Weekly Digest issues are email HTML: show them as a letter, on white, as sent. */
.digest-mail { background: #fff; color: #1B1414; padding: clamp(.75rem, 2vw, 1.5rem); box-shadow: 0 0 0 1px var(--rule); font: 400 1rem/1.6 var(--ui); overflow-x: auto; }
.digest-mail img { max-width: 100%; height: auto; }
.digest-mail table { max-width: 100%; }
.digest-mail a { color: inherit; text-decoration: underline; }

/* CMS "The Details" lists: several bold runs per item. Only the leading label
   takes the display treatment; later bold stays inline. */
.prose .key-figures strong { display: inline; font: inherit; font-weight: 700; color: inherit; }
.prose .key-figures li > strong:first-child { display: block; font: 800 1.2rem/1.15 var(--display); font-stretch: 78%; color: var(--signal); margin-bottom: .15rem; }
.faq__a { padding-bottom: 1.1rem; font: 400 1.0625rem/1.65 var(--serif); color: var(--ink-2); }
.faq .faq__a p { padding-bottom: 0; }
.faq__a > * + * { margin-top: .6em; }
.faq__a ul, .faq__a ol { padding-left: 1.25em; }

/* ---------- logo (replaces the typeset wordmark) ---------- */
.logo, .logo img { display: block; }
.logo img { width: auto; height: 100%; }
.logo--paper { display: none; }
:root[data-theme="dark"] .logo--ink { display: none; }
:root[data-theme="dark"] .logo--paper { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--ink { display: none; }
  :root:not([data-theme="light"]) .logo--paper { display: block; }
}
.brand .logo { height: clamp(52px, 30px + 3.2vw, 78px); }
.brand:hover .logo img { opacity: .92; }
.nav__mini { align-items: center; }
.nav__mini .logo { height: 34px; }
.stuck .nav__mini { max-width: 90px; }
.brand--index { align-items: flex-start; }
.brand--index .logo { height: 48px; }
.foot__logo { display: inline-block; padding: 0; }
.foot__logo .logo { height: clamp(88px, 40px + 9vw, 150px); }
@media (max-width: 767.98px) {
  .brand .logo { height: 42px; }
}

/* Compact header: smaller logo and padding, slimmer section bar. */
.mast { padding-block: .6rem .55rem; }
.brand { gap: .3rem; }
.brand .logo { height: clamp(40px, 28px + 1.6vw, 54px); }
.brand__bar { height: 3px; width: 48px; }
.brand:hover .brand__bar { width: 72px; }
.nav .wrap, .nav__list a { height: 44px; }
.nav__mini .logo { height: 30px; }
.util .wrap { min-height: 30px; }
html { scroll-padding-top: 60px; }
@media (max-width: 767.98px) {
  .mast { padding-block: .5rem .45rem; }
  .brand .logo { height: 36px; }
  .nav .wrap, .nav__list a { height: 42px; }
}

/* Brand colours only: live badge and form messages. */
.live { background: var(--maroon); }
.live::before { background: var(--orange); }
.form .note.ok { color: var(--maroon); }
.form .note.bad { color: var(--signal); }
:root[data-theme="dark"] .form .note.ok { color: var(--orange-on-dark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form .note.ok { color: var(--orange-on-dark); } }

/* ---------- dark brand surfaces: section menu, "Just in", Weekly Digest band ----------
   Maroon ground, white type, brand orange as the only accent, and the brand
   gradient (orange -> maroon -> orange) as a top stripe, as on the Subscribe button. */
/* .index is the fixed full-screen menu: it must keep position: fixed. */
.band, .disc { position: relative; }
.index::before, .band::before, .disc::before { content: ""; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); z-index: 1; }
.band::before, .disc::before { position: absolute; }
.index::before { position: sticky; display: block; }
.index__top { border-bottom-color: rgba(255,255,255,.18); }
.index__list a { border-bottom-color: rgba(255,255,255,.16); }
.index__search { border-bottom-color: #fff; }
.band__label { color: #fff; }
.band__list a { color: #fff; }
.band__list li { border-right-color: rgba(255,255,255,.16); }
.band__list li:hover b { color: #fff; }

/* Weekly Digest band: production's newsletter treatment, maroon into brand orange.
   Type stays on the maroon side; the orange only lights the far corner. */
.disc { background: radial-gradient(110% 130% at 100% 100%, rgba(227,107,36,.55) 0, rgba(227,107,36,.18) 38%, rgba(227,107,36,0) 62%), linear-gradient(120deg, #541C1C 0%, #6E2626 100%); }
.disc p { color: rgba(255,255,255,.8); }
.disc__idx h2 { color: #fff; opacity: .75; }
.disc__idx a { border-bottom-color: rgba(255,255,255,.18); }
.disc__idx a span { color: rgba(255,255,255,.7); }
.disc__idx a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange-on-dark); text-underline-offset: 4px; }
.sub { border-bottom-color: #fff; }
.sub button:hover { color: var(--orange-on-dark); }
.sub-note { color: #fff; }
:root[data-theme="dark"] .disc { background: radial-gradient(110% 130% at 100% 100%, rgba(227,107,36,.4) 0, rgba(227,107,36,0) 60%), linear-gradient(120deg, #3A1212 0%, #541C1C 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .disc { background: radial-gradient(110% 130% at 100% 100%, rgba(227,107,36,.4) 0, rgba(227,107,36,0) 60%), linear-gradient(120deg, #3A1212 0%, #541C1C 100%); } }

/* Story thumbnails are uploaded at 1200x700 (12:7). Frames that must show the
   whole image use this ratio instead of cropping to square or portrait. */
.r-thumb { aspect-ratio: 12 / 7; }

/* ---------- navbar sections: centred small caps, overflow under "More" ---------- */
.nav__list a { font: 650 .75rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.nav__list a::after { height: 2px; background: var(--orange); }
.nav__list a[aria-current] { color: var(--maroon); }
.nav__more { display: none; position: relative; flex: none; }
.nav__more summary { display: flex; align-items: center; gap: .35rem; height: 44px; list-style: none; cursor: pointer; font: 650 .75rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.nav__more summary::-webkit-details-marker { display: none; }
.nav__more summary:hover, .nav__more[open] summary, .nav__more summary[aria-current] { color: var(--ink); }
.nav__more summary svg { transition: transform .25s var(--ease); }
.nav__more[open] summary svg { transform: rotate(180deg); }
.nav__drop { position: absolute; right: -1rem; top: 100%; z-index: 60; min-width: 220px; padding: .4rem 0; background: var(--paper); border-top: 2px solid var(--orange); box-shadow: 0 18px 40px -12px rgba(27, 20, 20, .28), 0 0 0 1px var(--rule); }
.nav__drop a { display: block; padding: .7rem 1.1rem; font: 600 .875rem/1.2 var(--ui); color: var(--ink-2); }
.nav__drop a:hover, .nav__drop a[aria-current] { color: var(--maroon); background: var(--paper-2); }
:root[data-theme="dark"] .nav__list a[aria-current], :root[data-theme="dark"] .nav__drop a:hover, :root[data-theme="dark"] .nav__drop a[aria-current] { color: var(--signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav__list a[aria-current], :root:not([data-theme="light"]) .nav__drop a:hover, :root:not([data-theme="light"]) .nav__drop a[aria-current] { color: var(--signal); } }
@media (min-width: 1024px) {
  .nav__list { justify-content: center; gap: 1.9rem; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .nav__list .is-extra { display: none; }
  .nav__more { display: block; }
}

/* ---------- section page: sub-section tabs as wrapping pills ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid var(--rule); overflow: visible; }
.tabs a { margin: 0; padding: .55rem 1rem; border: 1px solid var(--rule); border-radius: 999px; font: 600 .8125rem/1 var(--ui); color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s; }
.tabs a:hover { border-color: var(--maroon); color: var(--maroon); }
.tabs a[aria-current] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
:root[data-theme="dark"] .tabs a:hover { border-color: var(--signal); color: var(--signal); }
:root[data-theme="dark"] .tabs a[aria-current] { background: var(--signal); border-color: var(--signal); color: #1B1414; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tabs a:hover { border-color: var(--signal); color: var(--signal); }
  :root:not([data-theme="light"]) .tabs a[aria-current] { background: var(--signal); border-color: var(--signal); color: #1B1414; }
}
@media (max-width: 639.98px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .tabs::-webkit-scrollbar { display: none; }
}

/* ---------- People@Work: expanding mentor row ----------
   Thumbnails are 1200x700 graphics: mentor on the left, name on the right.
   Resting cards show a 2:3 slice with just the mentor. On desktop the hovered
   (or focused) card grows to roughly the graphic's own 12:7 shape and pushes
   the others narrower; they re-centre on the mentor's face as they shrink. */
.r-2x3 { aspect-ratio: 2 / 3; }
.pw__frame { position: relative; display: block; overflow: hidden; }
.pw__crop { aspect-ratio: 2 / 3; background: #5B1624; }
.pw__crop img { object-position: 0% 50%; transition: transform 1.1s var(--ease), object-position .6s var(--ease), opacity .5s ease; }
.story.pw:hover .img img { transform: none; }
.pw__over { display: none; }
.pw__kicker { display: inline-flex; align-items: center; gap: .5rem; font: 650 var(--t-meta)/1 var(--ui); letter-spacing: .02em; color: var(--orange-on-dark); }
.pw__kicker::before { content: ""; width: 16px; height: 2px; background: var(--orange); }
.pw__name { font: 700 1.05rem/1.3 var(--ui); color: #fff; max-width: 46ch; }
.pw__cap { font: 650 .9375rem/1.3 var(--ui); margin-top: .6rem; }

@media (min-width: 1024px) and (hover: hover) {
  .people.pw-row { display: flex; gap: var(--gap); height: clamp(340px, 34vw, 460px); overflow: visible; }
  .pw-row .pw { flex: 1 1 0; min-width: 0; margin-top: 0 !important; display: block; transition: flex-grow .7s var(--ease); }
  .pw-row .pw__frame, .pw-row .pw__crop { height: 100%; aspect-ratio: auto; }
  .pw-row .pw__crop img { transition: transform 1.1s var(--ease), object-position .7s var(--ease), filter .6s ease, opacity .5s ease; }
  .pw__over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: .5rem; padding: 3rem 1.25rem 1.1rem; background: linear-gradient(180deg, rgba(40, 10, 14, 0) 0%, rgba(40, 10, 14, .88) 70%); opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease) .2s, transform .45s var(--ease) .2s; pointer-events: none; }
  .pw-row .pw__frame::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient); opacity: 0; transition: opacity .3s; }
  .pw-row .pw__cap { display: none; }

  /* Open card: JS sets .is-open (auto-play, then the reader's hover/focus).
     Without JS, plain :hover does the same. */
  .pw-row .pw.is-open, html:not(.js) .pw-row .pw:hover { flex-grow: 5.4; }
  .pw-row .pw.is-open .pw__over, html:not(.js) .pw-row .pw:hover .pw__over { opacity: 1; transform: none; }
  .pw-row .pw.is-open .pw__frame::after, html:not(.js) .pw-row .pw:hover .pw__frame::after { opacity: 1; }
  /* the others: narrowed onto the face, in greyscale */
  .pw-row.has-open .pw:not(.is-open) .pw__crop img,
  html:not(.js) .pw-row:has(.pw:hover) .pw:not(:hover) .pw__crop img { object-position: 20% 50%; filter: grayscale(1); }
}

/* ---------- article opening: split hero ----------
   Headline, dek and byline on the left; the photo on the right at ~40% width,
   in the thumbnails' own 12:7 shape (no crop), on a warm band. Stacks on phones:
   text, photo, byline. */
.art-top { position: relative; background: var(--paper-2); padding-block: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-bottom: 1px solid var(--rule); }
.art-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient); }
.art-top__grid { display: grid; gap: 1.25rem; grid-template-areas: "hd" "fig" "by"; }
.art-top .art-hd { grid-area: hd; max-width: none; margin: 0; padding: 0; gap: .9rem; }
.art-top .art-title { font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3.1rem); line-height: 1.08; }
.art-top .art-dek { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); }
.art-top .art-fig { grid-area: fig; max-width: none; margin: 0; }
.art-top .art-fig .img { aspect-ratio: 12 / 7; box-shadow: 0 18px 40px -22px rgba(27, 20, 20, .45); }
.art-top .art-fig figcaption { max-width: none; margin: .55rem 0 0; padding: 0; }
.art-top .art-by { grid-area: by; margin-top: 0; border-top: 1px solid var(--rule-2); border-bottom: 0; padding-bottom: 0; }
.art-top + .art-grid { margin-top: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
@media (min-width: 1024px) {
  .art-top__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: 1fr auto; grid-template-areas: "hd fig" "by fig"; column-gap: clamp(2rem, 4vw, 4rem); row-gap: 1.5rem; align-items: center; }
  .art-top .art-hd { align-self: end; }
  .art-top .art-by { align-self: start; }
}

/* ---------- footer: logo block beside the link columns ---------- */
.foot__top { display: grid; gap: 2.5rem; }
.foot__top .foot__cols { margin-top: 0; padding-top: 2rem; }
.foot__top .foot__logo .logo { height: clamp(72px, 40px + 5vw, 104px); }
@media (min-width: 1024px) {
  .foot__top { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.6fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .foot__top .foot__cols { padding-top: 0; border-top: 0; padding-left: clamp(2.5rem, 5vw, 5rem); margin-left: calc(clamp(2.5rem, 5vw, 5rem) * -1); border-left: 1px solid rgba(255,255,255,.12); }
  .foot__top .foot__about { max-width: 34ch; }
}

/* ---------- Help (bottom right): production's widget, restyled only where needed ---------- */
.help { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.help__btn { display: inline-flex; align-items: center; gap: 5px; padding: .55rem .85rem; border: 0; border-radius: 200px; background: linear-gradient(to right, #E36B24 0, #541C1C 51%, #E36B24 100%) 0 0 / 200% auto; color: #fff; font: 500 14px/1.2 var(--ui); box-shadow: 0 8px 20px -8px rgba(84, 28, 28, .6); transition: background-position .6s var(--ease); }
.help__btn:hover { background-position: right center; }
.help__btn .i-x { display: none; }
.help.open .help__btn .i-chat, .help.open .help__btn span { display: none; }
.help.open .help__btn .i-x { display: block; }
.help__panel { width: min(20rem, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow: auto; background: #F8F9FA; color: #1B1414; padding: 1.25rem; border-radius: 1rem; box-shadow: 0 .375rem 1.5rem 0 rgba(140, 152, 164, .65); text-align: left; }
.help__title { font: 700 1.25rem/1.2 var(--ui); color: #000; }
.help__sub { font: 400 .9375rem/1.4 var(--ui); color: #6C757D; margin: .2rem 0 .9rem; }
.help__form { display: grid; gap: .5rem; }
.help__form input[type=text], .help__form input[type=email], .help__form input[type=tel], .help__form textarea { width: 100%; padding: .4rem .7rem; border: 1px solid #DEE2E6; border-radius: .375rem; background: #fff; font: 400 .875rem/1.5 var(--ui); color: #1B1414; resize: vertical; }
.help__form input:focus, .help__form textarea:focus { outline: 0; border-color: #E36B24; box-shadow: 0 0 0 .2rem rgba(227, 107, 36, .2); }
.help__form fieldset { border: 0; margin: 0; padding: 0; }
.help__form legend { font: 400 .875rem/1.3 var(--ui); color: #6C757D; margin-bottom: .35rem; }
.help__opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.help__opts label { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border: 1px solid #DEE2E6; border-radius: .375rem; background: #fff; font: 400 .875rem/1.3 var(--ui); cursor: pointer; }
.help__opts input { accent-color: #541C1C; margin: 0; }
.help__opts label:has(input:checked) { border-color: #541C1C; }
.help__submit { justify-self: center; margin: .4rem 0 .2rem; padding: .35rem 1.5rem; border: 0; border-radius: .375rem; background: linear-gradient(to right, #E36B24 0, #541C1C 51%, #E36B24 100%) 0 0 / 200% auto; color: #fff; font: 500 .875rem/1.5 var(--ui); transition: background-position .6s var(--ease); }
.help__submit:hover { background-position: right center; }
.help__submit:disabled { opacity: .6; }
.help__note { font: 500 .8125rem/1.4 var(--ui); color: #B9530F; text-align: center; min-height: 1.1em; }
.help__done { text-align: center; }
.help__done img { margin: .5rem auto 0; width: 200px; height: 200px; }
.help__ticket { font: 500 1.1rem/1.3 var(--ui); color: #541C1C; }
.help__ticket + .help__ticket { margin-top: .5rem; }
.totop { bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }

/* ---------- Bottom left: WhatsApp channel + app QR ---------- */
.dock { position: fixed; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 94; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.wa-float { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.appqr { display: none; }
@media (min-width: 1024px) {
  .appqr { display: block; transform-origin: bottom left; }
  .appqr a { display: grid; justify-items: center; gap: .25rem; width: 64px; padding: 5px; background: #fff; border-radius: 8px; box-shadow: 0 8px 20px -8px rgba(27, 20, 20, .45), 0 0 0 1px rgba(27, 20, 20, .1); text-align: center; transition: width .35s var(--ease), padding .35s var(--ease), border-radius .35s var(--ease); }
  .appqr img { width: 100%; height: auto; transition: none; }
  .appqr span { font: 600 7px/1.2 var(--ui); color: #333; transition: font-size .35s var(--ease); }
  /* zoomed: large enough for a phone camera */
  .appqr.zoom a { width: 176px; padding: 10px; border-radius: 12px; box-shadow: 0 24px 50px -16px rgba(27, 20, 20, .5), 0 0 0 1px rgba(27, 20, 20, .1); }
  .appqr.zoom span { font-size: 11px; }
}
@media print { .help, .dock { display: none !important; } }

/* ---------- Help panel animation ----------
   Grows out of the Help button (bottom-right origin): fade + lift + scale, with
   a springy ease; the fields then ripple in one after another. Closing reverses
   quickly. The chat icon rotates into the close cross. */
.help__panel { transform-origin: bottom right; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .2s ease, transform .25s cubic-bezier(.4, 0, 1, 1), visibility 0s linear .25s; }
.help.open .help__panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .25s ease, transform .5s cubic-bezier(.2, 1.3, .4, 1), visibility 0s; }
.help__panel > div > * { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.help__form > * { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.help.open .help__panel > div > *, .help.open .help__form > * { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .3, 1); }
.help.open .help__panel > div > :nth-child(1) { transition-delay: .08s; }
.help.open .help__panel > div > :nth-child(2) { transition-delay: .12s; }
.help.open .help__panel > div > :nth-child(3), .help.open .help__panel > div > :nth-child(4) { transition-delay: .14s; }
.help.open .help__form > :nth-child(1) { transition-delay: .16s; }
.help.open .help__form > :nth-child(2) { transition-delay: .2s; }
.help.open .help__form > :nth-child(3) { transition-delay: .24s; }
.help.open .help__form > :nth-child(4) { transition-delay: .28s; }
.help.open .help__form > :nth-child(5) { transition-delay: .32s; }
.help.open .help__form > :nth-child(n+6) { transition-delay: .36s; }
/* keep the panel above the button without shifting it while closed */
.help { pointer-events: none; }
.help > * { pointer-events: auto; }
.help:not(.open) .help__panel { pointer-events: none; }
/* button: icon morph */
.help__btn { overflow: hidden; }
.help__btn .i-chat, .help__btn .i-x { transition: transform .35s cubic-bezier(.2, 1.3, .4, 1), opacity .2s; }
.help.open .help__btn .i-x { animation: help-x .35s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes help-x { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
.help__btn:active { transform: scale(.95); }
/* success view swaps in with a soft pop */
.help__done:not([hidden]) { animation: help-pop .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes help-pop { from { opacity: 0; transform: scale(.94); } }

/* ---------- "In this story": pinned in the side column (>=1200px) ---------- */
.toc--side { display: none; }
.art-aside__pin { position: sticky; top: 76px; display: grid; gap: 2rem; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 1rem; }
.art-aside__latest h2 { font: 650 .75rem/1 var(--ui); letter-spacing: .04em; color: var(--ink-3); padding-bottom: .75rem; }
@media (min-width: 1200px) {
  .toc--inline { display: none; }
  .toc--side { display: block; margin: 0; padding: 1rem 0 .5rem; }
  .toc--side ol { gap: 0; }
  .toc--side li { display: block; }
  .toc--side li::before { content: none; }
  .toc--side a { position: relative; display: block; padding: .5rem 0 .5rem 1rem; border-left: 2px solid var(--rule); font: 600 .875rem/1.35 var(--ui); color: var(--ink-2); transition: color .2s, border-color .2s; }
  .toc--side a:hover { color: var(--ink); border-left-color: var(--ink-3); }
  .toc--side a.on { color: var(--signal); border-left-color: var(--orange); }
}
.art-aside .art-aside__latest .num { position: static; }  /* the whole column is pinned now, not the list */
/* pinned side column: no visible scrollbar (still scrolls with wheel/trackpad if taller than the screen) */
.art-aside__pin { scrollbar-width: none; -ms-overflow-style: none; }
.art-aside__pin::-webkit-scrollbar { display: none; }
/* heading reached from "In this story": a short orange flash */
.prose h2.toc-hit { animation: toc-hit 1.4s ease-out; }
@keyframes toc-hit { 0%, 30% { color: var(--signal); } }
.prose h2:focus { outline: none; }

/* footer: legacy content (Explore / Company / Legal) in three columns */
@media (min-width: 640px) { .foot__cols--3 { grid-template-columns: repeat(3, 1fr); } }
.foot__top-link { display: inline-flex !important; align-items: center; gap: .4rem; padding: 0 !important; font-weight: 600; }

/* article body: tighter paragraph rhythm */
.prose { line-height: 1.7; }
.prose > * + * { margin-top: .8em; }
.prose h2 { margin-top: 1.8em; }
.prose h2 + * { margin-top: .6em; }
.prose h3 { margin-top: 1.5em; }
/* article body: tighter still */
.prose { line-height: 1.62; }
.prose > * + * { margin-top: .55em; }
.prose h2 { margin-top: 1.5em; padding-top: .7rem; }
.prose h2 + * { margin-top: .45em; }
.prose h3 { margin-top: 1.2em; }
.prose li + li { margin-top: .25em; }

/* ---------- Big images show the whole thumbnail, logo included ----------
   Thumbnails are 1200x700 (12:7) with the Jobaaj Stories logo in the top-left
   corner. Big frames use 12:7 (r-thumb) so nothing is cropped; where a frame
   cannot match (the full-width cover, the photo cards), the image is anchored
   top-left so any crop comes off the bottom/right and the logo stays in view. */
.cover__img { aspect-ratio: 12 / 7; }
.cover__img img, .ov .img img { object-position: left top; }
@media (min-width: 1024px) {
  /* full-bleed cover: keep the top-left corner clear, shade from the bottom for the text */
  .cover__stage::after { background: linear-gradient(0deg, rgba(14, 6, 6, .9) 0%, rgba(14, 6, 6, .62) 36%, rgba(14, 6, 6, 0) 70%); }
}
/* Entertainment photo cards: 12:7 cards. Desktop: a large card beside two
   stacked ones (2:1 columns make the stacks match the large card's height). */
.pics__grid .ov, .pics__grid .ov:first-child { min-height: 0; aspect-ratio: 12 / 7; }
@media (min-width: 1024px) {
  .pics__grid { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
  .pics__grid .ov:first-child { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; min-height: 0; }
}

/* ---------- Home hero (desktop): text over the image, image shown in full ----------
   The hero is as wide as the page content (not full-bleed) and takes the
   thumbnails' 12:7 shape, so the whole photo shows, logo included (top-left).
   The shade rises from the bottom behind the text and leaves that corner clear. */
@media (min-width: 1024px) {
  .cover__stage { max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; }
  .cover__img { height: auto; min-height: 0; aspect-ratio: 12 / 7; }
  .cover__img img { object-position: center; }
  .cover__stage::after { background: linear-gradient(0deg, rgba(14, 6, 6, .92) 0%, rgba(14, 6, 6, .65) 34%, rgba(14, 6, 6, 0) 62%); }
  .cover__body { padding-inline: clamp(1.5rem, 3vw, 3rem); }
}

