/* ============================================================================
   JOINT FORCES — Redesign
   One Platform / All Domains
   ----------------------------------------------------------------------------
   00  Tokens & themes        05  Navigation           10  Latest news
   01  Reset & base           06  Search overlay       11  Events
   02  Primitives             07  Layout shell         12  Magazines
   03  Topbar                 08  Sidebar              13  Conversations
   04  Masthead               09  Hero + picks         14  Newsletter / Footer
   ========================================================================== */

/* 00 — TOKENS ============================================================== */

:root {
  /* Light "luxury" — warm ivory & champagne, never flat white */
  --bg:            #f3ede3;
  --bg-tint:       #ece3d5;
  --surface:       #fdfbf7;
  --surface-2:     #f8f2e8;
  --surface-3:     #f1e8da;
  --ink:           #16120d;
  --ink-2:         #4b4239;
  --ink-3:         #746a5d;   /* AA 4.55:1 on --bg (was #7d7264, 4.04:1) */
  --line:          #e3d8c6;
  --line-2:        #d3c4ab;
  --brand:         #d11020;
  --brand-ink:     #ffffff;
  --brand-soft:    rgba(209, 16, 32, .09);
  --gold:          #a8823a;   /* fill only — dark text sits on this */
  --gold-ink:      #84662e;   /* text on --bg/--surface, AA 4.60:1 */
  --gold-soft:     rgba(168, 130, 58, .16);
  --shadow-sm:     0 1px 2px rgba(60, 44, 20, .06), 0 2px 8px rgba(60, 44, 20, .05);
  --shadow-md:     0 4px 14px rgba(60, 44, 20, .08), 0 14px 34px rgba(60, 44, 20, .07);
  --shadow-lg:     0 10px 30px rgba(60, 44, 20, .11), 0 30px 70px rgba(60, 44, 20, .10);
  --scrim:         linear-gradient(180deg, rgba(8,10,14,0) 12%, rgba(8,10,14,.62) 62%, rgba(8,10,14,.92) 100%);
  --logo-light:    block;
  --logo-dark:     none;
  --grain:         .035;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Metrics */
  --container: 1320px;
  --gutter: clamp(16px, 3vw, 28px);
  --rail: 300px;   /* standard 300px ad column — sidebar creatives are sold at this width */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --nav-h: 58px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Spacing scale — base 4px. Use for new/changed layout spacing; existing
     component-tuned clamp() gaps are left as-is (see style guide notes). */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* 12-column grid gap — default only; most sections below keep their own
     tuned clamp() gap and override this. */
  --grid-gap: var(--space-6);
}

[data-theme="dark"] {
  --bg:            #07090c;
  --bg-tint:       #0a0d12;
  --surface:       #10141a;
  --surface-2:     #161b23;
  --surface-3:     #1c222c;
  --ink:           #eef1f6;
  --ink-2:         #a7b1c0;
  --ink-3:         #7d8798;   /* AA 4.93:1 on --surface (was #737d8c, 4.43:1) */
  --line:          rgba(255, 255, 255, .095);
  --line-2:        rgba(255, 255, 255, .17);
  --brand:         #f2323e;
  --brand-ink:     #ffffff;
  --brand-soft:    rgba(242, 50, 62, .14);
  --gold:          #d8b374;
  --gold-ink:      #d8b374;   /* already 10:1 on dark, no split needed */
  --gold-soft:     rgba(216, 179, 116, .14);
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md:     0 6px 18px rgba(0, 0, 0, .5), 0 16px 40px rgba(0, 0, 0, .38);
  --shadow-lg:     0 12px 34px rgba(0, 0, 0, .6), 0 34px 80px rgba(0, 0, 0, .5);
  --scrim:         linear-gradient(180deg, rgba(3,5,8,0) 10%, rgba(3,5,8,.66) 60%, rgba(3,5,8,.95) 100%);
  --logo-light:    none;
  --logo-dark:     block;
  --grain:         .05;
}

/* 01 — RESET & BASE ======================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fine paper/sensor grain — keeps large flat areas from looking plastic */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* [hidden] must beat component display rules (.meta is a flex container) */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.16;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--brand); color: #fff; }

/* Themed scrollbar */
* { scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  transform: translateY(-160%);
  background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 13px;
  transition: transform .22s var(--ease);
}
.skip-link:focus { transform: none; }

/* Theme-swap easing (skipped on first paint via .no-anim) */
body:not(.no-anim) .themed,
body:not(.no-anim) { transition: background-color .38s var(--ease), color .38s var(--ease), border-color .38s var(--ease); }

/* 02 — PRIMITIVES ========================================================== */

/* The one global container for every public page (topbar, masthead, navbar,
   .shell, footer all compose this) — do not give a section its own
   max-width; add a modifier here instead if a page genuinely needs one. */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* 12-COLUMN GRID — content-section composition primitive. Applies to how
   sections inside .main are composed; never to .shell/.rail or any of the
   six sold ad units (leaderboard/banner/banner--top/promo/adslot/adslot--
   wide) — those keep their own fixed dimensions regardless of this system.
   No breakpoint collapse lives here: the same span number means a
   different thing in different sections (e.g. col-4 collapses at 680px
   for .dcard but at 1080px for .issue-card), so each section keeps its
   own scoped @media override at whichever of the site's 4 existing
   breakpoints (1180/1080/900/680) it already used before this. */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 3px;
  white-space: nowrap;
}

.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .085em; text-transform: uppercase;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.28) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease-out);
}
.btn.is-disabled { opacity: .45; pointer-events: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); border-color: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: #101317; }
.btn--sm { padding: 9px 15px; font-size: 11px; }
/* Full-width button stacked with a sibling: the pair must read as one control
   group, so both fill the column and share the card radius used around them. */
.btn--stack {
  width: 100%;
  border-radius: var(--r-md);
  min-height: 46px;
  padding: 0 18px;
  font-size: 11.5px;
  letter-spacing: .09em;
  white-space: nowrap;
}

/* Section heading — red rule + optional gold hairline, per the mockup */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 18px;
}
.sec-title {
  position: relative;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding-left: 14px;
}
/* Anchored to the first line, so a wrapped subtitle can't drag it off-centre */
.sec-title::before {
  content: ""; position: absolute; left: 0; top: .16em;
  width: 4px; height: 1.05em;
  background: var(--brand); border-radius: 2px;
}
.sec-title small {
  display: block; margin-top: 5px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 400;
  letter-spacing: .01em; text-transform: none; color: var(--ink-3);
}
.view-all {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.view-all svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.view-all:hover svg { transform: translateX(4px); }

.meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  color: var(--ink-3); font-size: 11.5px; letter-spacing: .01em;
}
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.meta strong { color: var(--brand); font-weight: 600; }

/* Media frame shared by every card */
.media {
  position: relative; overflow: hidden;
  background: var(--surface-3);
  border-radius: var(--r-md);
  isolation: isolate;
}
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), filter .5s var(--ease);
}
.media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  border-radius: inherit; pointer-events: none;
}
a:hover .media img, .card:hover .media img { transform: scale(1.06); }

.card-title { transition: color .22s var(--ease); }
a:hover .card-title, .card:hover .card-title { color: var(--brand); }

/* 03 — TOPBAR ============================================================== */

.topbar {
  background: #05070a;
  color: #b9c1cd;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 38px;
}
.topbar a { color: #cdd4de; transition: color .2s var(--ease); }
.topbar a:hover { color: #fff; }

.social { display: flex; align-items: center; gap: 3px; }
.social a {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 5px;
  transition: background-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.social a:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.social svg { width: 14px; height: 14px; }

.topbar__date { letter-spacing: .04em; color: #94a0b0; }

.topbar__right { display: flex; align-items: center; gap: 4px; }
.topbar__links { display: flex; align-items: center; gap: 2px; }
.topbar__links a { padding: 4px 10px; border-radius: 5px; }
.topbar__links a:hover { background: rgba(255, 255, 255, .08); }
.topbar__links span { color: rgba(255, 255, 255, .2); }

.icon-btn {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  color: inherit;
  transition: background-color .22s var(--ease), color .22s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.icon-btn svg { width: 16px; height: 16px; }

/* Theme toggle — sun/moon crossfade */
.theme-toggle { position: relative; }
.theme-toggle .i-sun, .theme-toggle .i-moon {
  grid-area: 1 / 1;
  transition: opacity .3s var(--ease), transform .45s var(--ease-out);
}
.theme-toggle .i-sun { opacity: 0; transform: rotate(-70deg) scale(.5); }
.theme-toggle .i-moon { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(70deg) scale(.5); }

/* 04 — MASTHEAD ============================================================ */

.masthead { background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead__inner {
  display: grid;
  grid-template-columns: minmax(210px, 300px) 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
  padding-block: 20px;
}

.logo { display: block; }
.logo img { width: 100%; max-width: 292px; }

/* Theme-paired logo swap — global, so it also covers the drawer,
   the compact nav brand and the admin sidebar. */
.for-light { display: var(--logo-light); }
.for-dark  { display: var(--logo-dark); }

/* Leaderboard ad slot */
.leaderboard {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 26px;
  min-height: 104px; padding: 14px 26px;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 160% at 88% 20%, rgba(209, 16, 32, .38), transparent 58%),
    linear-gradient(100deg, #0b0f15 0%, #141c26 52%, #0d1219 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.leaderboard::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(105deg, #000, transparent 72%);
}
.leaderboard__body { position: relative; text-align: center; }
.leaderboard__body h3 { font-size: clamp(17px, 2vw, 25px); letter-spacing: -.01em; }
.leaderboard__body p { font-size: 12.5px; color: rgba(255, 255, 255, .74); margin-top: 5px; }
.leaderboard__body a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.leaderboard__body a:hover { border-color: var(--brand); color: var(--brand); }

.leaderboard__brand {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.leaderboard__brand svg { width: 42px; height: 42px; flex: none; color: #fff; }
.leaderboard__brand b {
  display: block; font-family: var(--font-display);
  font-size: 19px; line-height: 1.05; letter-spacing: -.01em;
}
.leaderboard__brand span {
  display: block; font-size: 10.5px; letter-spacing: .19em;
  text-transform: uppercase; color: rgba(255, 255, 255, .68); margin-top: 3px;
}

/* 05 — NAVIGATION ========================================================== */

.navbar {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.navbar.is-stuck { box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--bg) 95%, transparent); }
.navbar__inner { display: flex; align-items: center; gap: 16px; min-height: var(--nav-h); }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav > li { position: relative; }
.nav > li > a {
  display: inline-flex; align-items: center; gap: 7px;
  height: var(--nav-h); padding: 0 14px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: .085em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav > li > a:hover { color: var(--ink); }
.nav > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 3px; background: var(--brand); border-radius: 3px 3px 0 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav > li > a:hover::after { transform: scaleX(1); }
.nav > li.is-active > a { color: var(--ink); }
.nav > li.is-active > a::after { transform: scaleX(1); }
.nav .home-dot { width: 15px; height: 15px; color: var(--brand); }
.nav .caret { width: 11px; height: 11px; opacity: .6; transition: transform .25s var(--ease); }
.nav > li:hover .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% - 1px); left: 6px;
  min-width: 208px; padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .28s var(--ease-out), visibility .22s;
}
.nav > li:hover .submenu,
.nav > li:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease), padding-left .2s var(--ease);
}
.submenu a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-2); transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.submenu a:hover { background: var(--brand-soft); color: var(--brand); padding-left: 16px; }
.submenu a:hover::before { background: var(--brand); transform: scale(1.3); }

/* Inline nav search */
.nav-search { position: relative; flex: none; width: min(280px, 30vw); }
.nav-search input {
  width: 100%; height: 40px;
  padding: 0 44px 0 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  transition: border-color .22s var(--ease), background-color .22s var(--ease), box-shadow .22s var(--ease);
}
.nav-search input::placeholder { color: var(--ink-3); }
.nav-search input:focus {
  outline: 0; border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.nav-search button {
  position: absolute; right: 4px; top: 4px;
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}
.nav-search button:hover { filter: brightness(1.1); transform: scale(1.05); }
.nav-search svg { width: 15px; height: 15px; }

.burger { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); }
.burger span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease);
}
body.drawer-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.drawer-open .burger span:nth-child(2) { opacity: 0; }
body.drawer-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 120;
  width: min(360px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(101%);
  transition: transform .42s var(--ease-out);
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 22px;
}
body.drawer-open .drawer { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer__head img { max-width: 168px; }
.drawer nav a {
  display: block; padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.drawer nav a:hover { color: var(--brand); }
.drawer nav .sub a {
  padding: 9px 4px 9px 18px; font-size: 13px;
  font-weight: 500; letter-spacing: .03em;
  text-transform: none; color: var(--ink-2);
  border-bottom: 0;
}
.scrim {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(4, 6, 9, .55);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
body.drawer-open .scrim { opacity: 1; visibility: visible; }

/* 06 — SEARCH OVERLAY ====================================================== */

.search-overlay {
  position: fixed; inset: 0; z-index: 140;
  display: grid; place-items: start center;
  padding: clamp(60px, 14vh, 150px) var(--gutter) 40px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
body.search-open .search-overlay { opacity: 1; visibility: visible; }
.search-overlay__box {
  width: min(720px, 100%);
  transform: translateY(-16px) scale(.98);
  transition: transform .42s var(--ease-out);
}
body.search-open .search-overlay__box { transform: none; }
.search-overlay label {
  display: block; margin-bottom: 12px;
  font-family: var(--font-display); font-size: 11.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.search-overlay__field { position: relative; }
.search-overlay input {
  width: 100%; height: 66px;
  padding: 0 60px 0 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px); font-weight: 600;
  box-shadow: var(--shadow-lg);
}
.search-overlay input:focus { outline: 0; border-color: var(--brand); }
.search-overlay__field svg {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--ink-3);
}
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.search-suggest button {
  padding: 7px 13px; border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12.5px; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.search-suggest button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.search-hint { margin-top: 22px; font-size: 12px; color: var(--ink-3); }
kbd {
  display: inline-block; padding: 2px 6px;
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 5px; background: var(--surface-2);
  font-family: var(--font-ui); font-size: 11px;
}

/* 07 — LAYOUT SHELL ======================================================== */

/* The one global inner-page grid, shared by index/article/category/
   magazines/conversations: a fixed --rail (300px, a sold ad-unit width —
   don't change without a media-kit update) + a fluid main column. */
.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
  align-items: start;
  padding-block: 26px 60px;
}
.rail { position: sticky; top: calc(var(--nav-h) + 18px); display: grid; gap: 18px; }
/* grid-template-columns is explicit (not the implicit single auto column)
   so the column tracks the container's actual available width instead of
   growing to fit its widest child's own preferred/max-content size —
   without it, an article whose content has a wide max-content width (long
   unwrapped strings in a card title, a related-article headline, etc.)
   forces the whole column wider than the viewport rather than wrapping. */
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(34px, 4vw, 52px); min-width: 0; }

/* 08 — SIDEBAR ============================================================= */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.panel__head h2 {
  font-size: 12px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
  position: relative; padding-left: 12px;
}
.panel__head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 13px; background: var(--brand); border-radius: 2px;
}
.panel__body { padding: 20px 18px; }

/* Upcoming events — compact date badge + name/location row */
.ev-list { display: grid; gap: 14px; }
.ev-row { display: flex; align-items: center; gap: 12px; }
.ev-row:hover .ev-body b { color: var(--brand); }
.ev-date {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; line-height: 1.1;
}
.ev-date b { display: block; font-size: 17px; font-family: var(--font-display); }
.ev-date i { display: block; font-size: 10px; font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.ev-body b { display: block; font-size: 13.5px; font-weight: 700; transition: color .2s var(--ease); }
.ev-body span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ev-empty { font-size: 12.5px; color: var(--ink-3); }

/* Magazine issue card — cover left, details right */
.issue__main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.issue__cover {
  position: relative; display: block;
  border-radius: 5px; overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
  background: #0b0f14;
}
.issue__cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.14) 55%, rgba(0,0,0,.16));
}
.issue__cover:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.issue__cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.issue__info h3 { font-size: 18px; letter-spacing: -.02em; }
.issue__date { margin-top: 7px; font-size: 13.5px; color: var(--ink-2); }
.issue__vol { margin-top: 2px; font-size: 13px; color: var(--ink-3); }

/* justify-items:stretch keeps the two buttons exactly equal width, so their
   labels line up vertically instead of drifting against each other.
   This column is narrow — rail (300) less panel padding (36), cover (112) and
   gap (16) leaves ~136px — so the buttons run tighter padding than elsewhere. */
.issue__actions { display: grid; justify-items: stretch; gap: 10px; margin-top: 18px; }
.issue__actions .btn { gap: 8px; padding: 0 12px; letter-spacing: .07em; }
.issue__actions .btn svg { width: 15px; height: 15px; }
/* Outlined action reads as a true pair with the primary, not a faint outline */
.issue__actions .btn--ghost { color: var(--ink); border-color: var(--line-2); }
.issue__actions .btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dots { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; }
.dots button {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--line-2);
  transition: all .3s var(--ease);
}
.dots button.is-active { width: 22px; background: var(--brand); }


/* Sponsor / expo tiles */
.promo {
  position: relative; display: block;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease);
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.promo__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 15px;
  background: linear-gradient(180deg, rgba(4,7,11,.42) 0%, rgba(4,7,11,.28) 42%, rgba(4,7,11,.9) 100%);
  color: #fff;
}
.promo__eyebrow {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.promo h3 { font-size: 19px; line-height: 1.08; letter-spacing: -.015em; }
.promo h3 em { font-style: normal; color: var(--brand); }
.promo p { font-size: 11.5px; color: rgba(255,255,255,.82); margin-top: 5px; letter-spacing: .03em; }
.promo__cta {
  align-self: flex-start; margin-top: 11px;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 3px;
}
.promo:hover .promo__cta { background: #fff; color: #0b0f14; }

/* Disclosure label for a live ad in this slot — a small solid chip, not a
   scrim over the whole creative, so the advertiser's own image stays
   clearly visible. */
.promo__ad-badge {
  align-self: flex-start;
  background: rgba(4,7,11,.78); color: #fff;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 4px;
}

.adslot {
  display: grid; place-items: center; gap: 4px;
  min-height: 118px; padding: 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink-3); text-align: center;
}
.adslot b {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.adslot span { font-size: 11.5px; }
/* Full-width slot — the sidebar version is 300px, this one runs the main column */
.adslot--wide {
  min-height: 250px;
  gap: 8px;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 11px,
      color-mix(in srgb, var(--line-2) 34%, transparent) 11px 12px),
    var(--surface-2);
}
.adslot--wide b { font-size: 13px; letter-spacing: .22em; }
.adslot--wide span { font-size: 12.5px; }
.adslot__cta {
  margin-top: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
  border-bottom: 1px solid currentColor;
  transition: opacity .2s var(--ease);
}
.adslot__cta:hover { opacity: .7; }

/* Swapped in by nav.js when a real ad targets this slot — drops the
   dashed "buy this space" placeholder chrome so the creative fills it. */
.adslot.is-ad-live,
.adslot--wide.is-ad-live {
  border-style: solid; border-color: transparent; background: none; padding: 0;
}

/* 09 — HERO + EDITOR'S PICKS =============================================== */

.hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #05070a;
  box-shadow: var(--shadow-md);
}
.hero__viewport { position: relative; aspect-ratio: 16 / 7.4; min-height: 300px; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 9s linear;
}
.hero__slide.is-active img { transform: scale(1.13); }
.hero__scrim { position: absolute; inset: 0; background: var(--scrim); }
.hero__scrim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,7,10,.78) 0%, rgba(5,7,10,.34) 46%, transparent 72%);
}
.hero__content {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(20px, 2.6vw, 34px);
  padding-right: clamp(20px, 12vw, 190px);
  color: #fff;
}
.hero__slide.is-active .hero__content > * {
  animation: heroUp .75s var(--ease-out) both;
}
.hero__slide.is-active .hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { animation-delay: .16s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { animation-delay: .24s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero h2 {
  margin: 11px 0 10px;
  font-size: clamp(24px, 2.9vw, 38px);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.06;
  /* Wider measure than before: the smaller type would otherwise run to four
     lines and undo the height saving. */
  max-width: 19ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.hero h2 a:hover { color: #ffd7d9; }
.hero p {
  max-width: 46ch;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(13px, 1.15vw, 15px);
}
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.hero__actions .meta { color: rgba(255, 255, 255, .72); }
.hero__actions .meta strong { color: #fff; }

.hero__ui {
  position: absolute; right: clamp(18px, 2.6vw, 30px); bottom: clamp(18px, 2.6vw, 30px);
  display: flex; align-items: center; gap: 16px;
  z-index: 3;
}
.hero__dots { display: flex; gap: 7px; }
.hero__dots button {
  width: 8px; height: 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .38);
  transition: all .35s var(--ease);
}
.hero__dots button.is-active { width: 26px; background: var(--brand); }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrows button {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(10, 13, 18, .4);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: all .25s var(--ease);
}
.hero__arrows button:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.06); }
.hero__arrows svg { width: 15px; height: 15px; }
.hero__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4;
  background: rgba(255, 255, 255, .14);
}
.hero__progress i { display: block; height: 100%; width: 0; background: var(--brand); }

/* Wide banner ad */
.banner {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease);
}
.banner:hover { box-shadow: var(--shadow-md); }
.banner img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.banner__inner {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: clamp(14px, 3vw, 40px);
  min-height: 132px; padding: 22px 26px;
  background: linear-gradient(90deg, rgba(5,8,12,.9), rgba(5,8,12,.62) 45%, rgba(5,8,12,.86));
  color: #fff; text-align: center;
}
.banner__mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em;
}
.banner__mark span { color: var(--brand); }
.banner__mark small {
  display: block; font-size: 9.5px; font-weight: 600;
  letter-spacing: .2em; color: rgba(255,255,255,.66); margin-top: 2px;
}
/* Billboard slot at the top of the main column — slimmer than the in-feed banner */
.banner--top .banner__inner { min-height: 106px; }

/* The main column's section gap is tuned for full sections. The billboard is
   chrome attached to what follows, so pull the next block up toward it. */
.banner--top + .hero,
.banner--top + .crumbs,
.banner--top + .post { margin-top: clamp(-34px, -2.5vw, -20px); }
/* The breadcrumb is a label for what follows, not a section of its own, so it
   sits close to the content rather than centred in a full section gap. */
.main > .crumbs + * { margin-top: clamp(-38px, -2.9vw, -22px); }
/* Same pull on the far side, so the hero sits evenly between the two ad bands
   instead of hugging the one above it. */
.hero + .banner { margin-top: clamp(-34px, -2.5vw, -20px); }
.banner__copy h3 { font-size: clamp(17px, 2.1vw, 25px); }
.banner__copy p { font-size: 12.5px; color: rgba(255,255,255,.78); letter-spacing: .07em; margin-top: 5px; }

/* Editor's picks */
.picks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.pick { grid-column: span 3; }
.pick .media { aspect-ratio: 4 / 3; }
.pick .chip { position: absolute; left: 9px; bottom: 9px; z-index: 2; }
.pick h3 { margin: 11px 0 8px; font-size: 14.5px; line-height: 1.3; letter-spacing: -.012em; }
.pick:nth-child(1) { animation-delay: .04s; }
.pick:nth-child(2) { animation-delay: .08s; }
.pick:nth-child(3) { animation-delay: .12s; }
.pick:nth-child(4) { animation-delay: .16s; }

/* Domain rows — one titled row per news domain on the homepage.
   Three cards across, each an elevated surface so the rows read as distinct
   bands rather than one continuous wall of thumbnails. */
.drow {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.dcard {
  grid-column: span 4;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.dcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dcard > a { display: block; }
.dcard .media { aspect-ratio: 16 / 10; border-radius: 0; }
.dcard h3 {
  margin: 0; padding: 15px 16px 12px;
  font-size: 16px; line-height: 1.3; letter-spacing: -.015em;
}
.dcard .meta { margin-top: auto; padding: 0 16px 15px; }
.dcard:nth-child(1) { animation-delay: .04s; }
.dcard:nth-child(2) { animation-delay: .08s; }
.dcard:nth-child(3) { animation-delay: .12s; }

/* 09b — DOMAIN / CATEGORY PAGE ============================================ */

.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-3);
  flex-wrap: wrap;
}
.crumbs a { transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 11px; height: 11px; opacity: .5; }
.crumbs span { color: var(--ink); font-weight: 600; }
.cat-head__stats .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.cat-desc { font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin: 12px 0 22px; }

/* Lead story */
.cat-lead {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  align-items: center;
  padding: clamp(16px, 2vw, 22px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: translate .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  /* translate, not transform — .cat-lead also carries .reveal.is-in (the
     scroll-entrance animation), whose transform:none reset outranks a
     plain .cat-lead:hover transform on specificity regardless of source
     order. translate is its own CSS property, so it composes instead of
     losing that fight. */
  .cat-lead:hover { translate: 0 -3px; box-shadow: var(--shadow-md); border-color: var(--line-2); }
  .cat-lead:hover .media img { transform: scale(1.02); }
}
.cat-lead__media { grid-column: span 7; display: block; aspect-ratio: 16 / 10; }
.cat-lead__media img { object-fit: contain; }
.cat-lead__body { grid-column: span 5; }
.cat-lead__body .chip { margin-bottom: 12px; }
.cat-lead__body h2 {
  font-size: clamp(20px, 2.5vw, 30px);
  letter-spacing: -.028em; line-height: 1.1;
  margin-bottom: 11px;
}
.cat-lead__body > p { color: var(--ink-2); font-size: 14px; }
.cat-lead__foot {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px; margin-top: 20px;
}

/* Toolbar */
.cat-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cat-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.cat-chips button {
  padding: 8px 15px; border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
  transition: all .22s var(--ease);
}
.cat-chips button:hover { border-color: var(--line-2); color: var(--ink); }
.cat-chips button.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.cat-chips button i {
  margin-left: 7px; padding-left: 7px;
  border-left: 1px solid var(--line-2);
  font-style: normal; font-size: 10.5px; opacity: .75;
}
.cat-chips button.is-active i { border-color: rgba(255, 255, 255, .4); }
.cat-sort { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-3); }
.cat-sort select {
  padding: 8px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; color: var(--ink); cursor: pointer;
}
.cat-sort select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Grid */
.cat-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
/* Plain-white-box complaint fix: give the card real chrome (surface tint,
   border, restrained shadow) instead of relying on .media's own rounding —
   same premium-editorial treatment as .dcard elsewhere, just missing here
   before. Image bleeds to the card's own clipped edge (radius 0 on
   .media, overflow:hidden on the card); text gets its own padding via
   .cat-card__body instead of per-child. */
.cat-card {
  grid-column: span 6;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: translate .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.cat-card > a { display: flex; flex-direction: column; flex: 1; }
.cat-card .media { aspect-ratio: 16 / 10; border-radius: 0; }
/* contain, not cover — an MoU/handshake/signing photo (this section's
   most common art) loses the handshake itself to a cover-crop; showing
   the whole frame reads more editorial than a tight crop anyway. .media's
   own background (--surface-3) fills the letterbox so a non-16:10 source
   still looks intentional rather than like empty space. */
.cat-card .media img { object-fit: contain; }
.cat-card .chip { position: absolute; left: 10px; bottom: 10px; z-index: 2; }
.cat-card__body { display: flex; flex-direction: column; flex: 1; padding: 15px 16px 16px; }
.cat-card h3 {
  margin: 0 0 8px; font-size: 17px; line-height: 1.26; letter-spacing: -.018em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card__excerpt {
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  line-clamp: 3; overflow: hidden;
}
.cat-card .meta { margin-top: auto; }
/* Trailing arrow nudges in on hover — reinforces "the whole card is a
   link" without adding a DOM element. Gated behind (hover:hover) with
   everything else below so touch never gets a stuck "hovered" card. */
.cat-card .meta::after {
  content: "→"; margin-left: auto; color: var(--brand);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  /* translate, not transform — see the .cat-lead:hover comment above;
     .cat-card carries the same .reveal.is-in conflict. */
  .cat-card:hover { translate: 0 -3px; box-shadow: var(--shadow-md); border-color: var(--line-2); }
  .cat-card:hover .media img { transform: scale(1.02); }
  .cat-card:hover .meta::after { opacity: 1; transform: translateX(0); }
}
.cat-empty { grid-column: 1 / -1; padding: 46px 20px; text-align: center; color: var(--ink-3); }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.pagination__count { font-size: 12.5px; color: var(--ink-3); }
.pagination__count b { color: var(--ink); }
.pagination__pages { display: flex; gap: 6px; }
.pagination__pages button {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--ink-2);
  transition: all .22s var(--ease);
}
.pagination__pages button svg { width: 13px; height: 13px; }
.pagination__pages button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pagination__pages button.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination__pages button:disabled { opacity: .38; cursor: not-allowed; }

/* Current domain in the News dropdown */
.submenu a.is-current { background: var(--brand-soft); color: var(--brand); }
.submenu a.is-current::before { background: var(--brand); }

/* 09c — MAGAZINE ARCHIVE PAGE ============================================= */

.issue-hero {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.issue-hero__cover {
  position: relative; display: block;
  border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0b0f14;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.issue-hero__cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.14) 55%, rgba(0,0,0,.16));
}
.issue-hero__cover:hover { transform: translateY(-5px) rotate(-.7deg); box-shadow: var(--shadow-lg); }
.issue-hero__cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.issue-hero__body .chip { margin-bottom: 12px; }
.issue-hero__body h2 { font-size: clamp(22px, 2.6vw, 31px); letter-spacing: -.03em; }
.issue-hero__vol { margin: 7px 0 14px; font-size: 14px; color: var(--ink-3); }
.issue-hero__vol em { font-style: normal; color: var(--brand); font-weight: 600; }
.issue-hero__body > p { font-size: 14px; color: var(--ink-2); }
/* margin-top replaces the spacing the contents list used to contribute */
.issue-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.issue-hero__actions .btn { min-height: 46px; padding: 0 22px; }
/* Here the pair sits side by side, so the stacked variant must not stretch */
.issue-hero__actions .btn--stack { width: auto; }

.issue-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.issue-card { grid-column: span 4; text-align: left; }
.issue-card[hidden] { display: none; }
.issue-card__cover {
  position: relative; display: block;
  border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0b0f14;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.issue-card__cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(255,255,255,.13) 55%, rgba(0,0,0,.15));
}
.issue-card__cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.issue-card:hover .issue-card__cover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.issue-card__over {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: rgba(6, 9, 13, .6);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.issue-card:hover .issue-card__over { opacity: 1; }
.issue-card__cover.is-disabled { cursor: default; pointer-events: none; }
.issue-card__cover.is-disabled .issue-card__over { opacity: 1; background: rgba(6, 9, 13, .72); }
.issue-card__cover.is-disabled .btn { --btn-bg: transparent; border-color: rgba(255,255,255,.4); }
.issue-card h3 { margin-top: 13px; font-size: 15px; letter-spacing: -.015em; }
.issue-card__meta { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.issue-card__theme { margin-top: 2px; font-size: 12px; color: var(--ink-3); opacity: .85; }
.issue-card__links { display: flex; gap: 14px; margin-top: 11px; }
.issue-card__links a {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.issue-card__links svg { width: 12px; height: 12px; }
.issue-card__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 09e — ARTICLE PAGE ====================================================== */

.readbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  height: 3px; background: transparent; pointer-events: none;
}
.readbar i { display: block; height: 100%; width: 0; background: var(--brand); }

/* .post itself stays full .main width — headline, lead image, byline,
   tags and prev/next should span the column, not just body copy.
   .prose (below) now matches that same full width too — a narrower
   editorial measure there used to leave a wide dead gap next to the
   full-width lead image, so body copy fills the column and relies on
   justification (further down) to keep the wider line length tidy.
   --img-box-h is the one shared fixed height for the lead image and
   every inline body image, so both use the same image-box system. */
.post { max-width: 100%; --img-box-h: clamp(200px, 30vw, 380px); }
.post__head { padding-bottom: 4px; }
.post__head .chip { margin-bottom: 16px; }
.post h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.06;
}
.post__standfirst {
  margin-top: 16px;
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6;
  color: var(--ink-2);
}
.post__byline {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post__byline-text { flex: 1; min-width: 140px; }
.post__byline-text b { display: block; font-size: 13.5px; }
.post__byline-text > span {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-3);
}
.post__byline-text .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.share { display: flex; gap: 6px; }
.share button {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-3);
  transition: all .22s var(--ease);
}
.share button svg { width: 14px; height: 14px; }
.share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.share button.is-done { background: var(--gold); border-color: var(--gold); color: #1a1408; }

.post__lead { margin: 26px 0 30px; }
.post__lead img {
  display: block; width: 100%; height: var(--img-box-h);
  object-fit: contain; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
/* Caption text isn't real image metadata (article.js derives it from the
   headline + a fixed credit string) — hidden per editorial preference, not
   removed, so the markup/data still exist if this is ever revisited. */
.post__lead figcaption { display: none; }

/* Long-form prose — fills the full .main width (matching .post__head/
   .post__lead above it) instead of the narrower editorial measure this
   used to carry, which is what left a bare gap down the right side of
   the column. Direct-child paragraphs are justified to keep the
   resulting longer line length tidy on desktop/tablet; blockquote's
   nested <p> stays left (only .prose p sets it, not the more specific
   .prose > p below), and both flip back to left on mobile — see the
   680px breakpoint. */
.prose { max-width: 100%; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose p { text-align: left; hyphens: auto; }
.prose > p { text-align: justify; text-justify: inter-word; }
.prose p b { color: var(--ink); font-weight: 700; letter-spacing: .02em; }
/* Editorial drop cap — only the article's true opening paragraph (the
   child combinator + :first-of-type skips past a leading heading/image
   if the body happens to start with one, and excludes a blockquote's own
   nested <p>, which would otherwise also count as "first of its type"
   within its own parent). ~2.6 lines at the body copy's line-height. */
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.2em;
  line-height: .78;
  font-weight: 800;
  color: var(--brand);
  margin: .04em .09em 0 0;
}
/* Images the admin inserts anywhere in the body via the editor — the same
   fixed-height image-box system as the lead image (--img-box-h), so a
   portrait or landscape photo is always shown in full (object-fit:
   contain) rather than cropped, zoomed or stretched to fill the box.
   data-align, set from the editor's per-image toolbar, is the only case
   that isn't full width; anything else (no attribute, or "center") gets
   the default. */
.prose img {
  display: block; width: 100%; height: var(--img-box-h);
  object-fit: contain; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.prose img[data-align="left"] { float: left; width: 46%; margin: 4px 22px 16px 0; }
.prose img[data-align="right"] { float: right; width: 46%; margin: 4px 0 16px 22px; }
/* Clears any trailing float so the next paragraph/heading never rides up
   alongside a left/right-aligned image left over from the block above. */
.prose::after { content: ""; display: table; clear: both; }
.prose figure { margin: 0; }
.prose figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -.024em; color: var(--ink);
}
.prose ul { margin-left: 0; }
.prose li {
  position: relative; padding-left: 24px; margin-top: .5em;
}
.prose li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.prose blockquote {
  margin: 1.7em 0; padding: 20px 24px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose blockquote p {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 20px); font-weight: 600;
  line-height: 1.4; letter-spacing: -.018em; color: var(--ink);
}
.prose blockquote cite {
  display: block; margin-top: 11px;
  font-style: normal; font-size: 12.5px; color: var(--ink-3);
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose em { color: var(--ink-3); }

.post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.post__tags a {
  padding: 7px 13px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.post__tags a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.author-box {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  margin-top: 30px; padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.author-box .convo__avatar { width: 48px; height: 48px; font-size: 15px; }
.author-box b { font-size: 14.5px; }
.author-box p { margin: 6px 0 8px; font-size: 13.5px; color: var(--ink-2); }
.author-box a { font-size: 13px; color: var(--brand); }

.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.postnav__item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: all .25s var(--ease);
}
.postnav__item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.postnav__item--next { text-align: right; }
.postnav__label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.postnav__item--next .postnav__label { justify-content: flex-end; }
.postnav__label svg { width: 12px; height: 12px; }
.postnav__item b { display: block; margin-top: 8px; font-size: 14px; line-height: 1.3; }

/* 10 — LATEST NEWS ========================================================= */

.tabs {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tabs button {
  position: relative;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color .22s var(--ease);
}
.tabs button::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease-out);
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--brand); }
.tabs button.is-active::after { transform: scaleX(1); }
.tabs .view-all { margin-left: auto; padding-right: 4px; }
.news-item {
  display: grid; grid-template-columns: 104px 1fr;
  gap: 14px; align-items: center;
  padding: 11px; margin: -1px 0;
  border-radius: var(--r-md);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item:hover { background: var(--surface); transform: translateX(3px); }
.news-item .media { aspect-ratio: 4 / 3; border-radius: 8px; }
.news-item h3 { font-size: 14.5px; line-height: 1.32; margin-bottom: 7px; }
.news-item[hidden] { display: none; }

.play {
  position: absolute; left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.play svg { width: 24px; height: 24px; margin-left: 3px; }
.play::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .8; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}
.feature-video:hover .play { background: var(--brand); transform: translate(-50%, -50%) scale(1.07); }

/* 11 — EVENTS ============================================================== */

.events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.event {
  display: grid; grid-template-columns: 68px 1fr;
  gap: 14px; align-items: center;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event h3 { font-size: 13.5px; line-height: 1.28; }
.event p { margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }

/* .convo__avatar is still used standalone by the article-page author byline
   (.author-box .convo__avatar override just below tunes its size there) —
   the Conversations-specific .convo/.convos card it originally belonged to
   is gone, this rule just kept its name rather than being renamed. */
.convo__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), #7a0d16);
  color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 700;
}
.newsletter .eyebrow {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.newsletter .form-note.ok { color: #6ee7b7; }

.site-footer {
  background: #05070a;
  color: #97a2b1;
  border-top: 3px solid var(--brand);
  margin-top: 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
  padding-block: clamp(36px, 5vw, 60px);
  align-items: start;
}
.footer-top .social { gap: 10px; }
.footer-col--brand    { grid-column: span 4; }
.footer-col--domains  { grid-column: span 2; }
.footer-col--platform { grid-column: span 2; }
.footer-col--contact  { grid-column: span 4; }
.footer-top img { max-width: 250px; margin-bottom: 18px; }
.footer-top p { font-size: 13.5px; line-height: 1.72; color: #8b96a6; }
.footer-top h3 {
  color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-top li + li { margin-top: 10px; }
.footer-top a { font-size: 13.5px; color: #9aa5b4; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-top a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 11px; font-size: 13.5px; line-height: 1.55; }
.footer-contact svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--brand); }
.footer-sisters { display: grid; gap: 9px; margin-top: 18px; }
.footer-sisters a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #d5dbe4;
}
.footer-sisters a:hover { background: var(--brand); border-color: var(--brand); color: #fff; padding-left: 14px; }
.footer-sisters svg { width: 13px; height: 13px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 12.5px;
}
.footer-bottom__left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom__left nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
.footer-credit { font-weight: 700; color: #d5dbe4; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .32s var(--ease-out);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px) scale(1.05); }
.to-top svg { width: 18px; height: 18px; }

/* Scroll reveal — only ever hidden when JS is present to reveal it again */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }

/* ══ LOADING SKELETONS ═══════════════════════════════════════════════════
   These containers are populated by JS after an API fetch. :empty matches
   them only until real content is injected — a sized, stable placeholder
   instead of blank space, so navigation doesn't blank-then-pop. Nothing
   here is JS-driven; the selector simply stops matching once children
   exist, so it never needs cleanup. */
@keyframes skelPulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }

#hero .hero__viewport:empty,
.drow:empty,
#eventsPanel:empty,
[data-cat-lead]:empty,
[data-cat-grid]:empty,
#magGrid:empty,
[data-talk-lead]:empty,
#talkGrid:empty,
[data-post-related]:empty,
[data-post-body]:empty {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  animation: skelPulse 1.6s ease-in-out infinite;
}
#hero .hero__viewport:empty { min-height: 420px; }
.drow:empty { min-height: 260px; }
#eventsPanel:empty { min-height: 160px; }
[data-cat-lead]:empty { min-height: 320px; }
[data-cat-grid]:empty { min-height: 480px; }
#magGrid:empty { min-height: 480px; }
[data-talk-lead]:empty { min-height: 320px; }
#talkGrid:empty { min-height: 480px; }
[data-post-related]:empty { min-height: 200px; }
[data-post-body]:empty { min-height: 360px; }

/* Article title/standfirst are briefly cleared during a soft navigation
   (see article.js) so a stale, different article never flashes on screen.
   No shimmer here — just enough reserved height that the layout below
   doesn't jump once the real text lands a moment later. */
[data-post-title]:empty { min-height: 1.2em; display: block; }
[data-post-standfirst]:empty { min-height: 1.6em; display: block; }

@media (prefers-reduced-motion: reduce) {
  #hero .hero__viewport:empty, .drow:empty, #eventsPanel:empty,
  [data-cat-lead]:empty, [data-cat-grid]:empty, #magGrid:empty, [data-talk-lead]:empty,
  #talkGrid:empty, [data-post-related]:empty, [data-post-body]:empty {
    animation: none;
  }
}

/* RESPONSIVE =============================================================== */

@media (max-width: 1180px) {
  .pick { grid-column: span 6; }
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { row-gap: clamp(28px, 5vw, 44px); }
  .footer-col--brand, .footer-col--contact { grid-column: span 12; }
  .footer-col--domains, .footer-col--platform { grid-column: span 6; }
  .dcard h3 { font-size: 15px; }
}

@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    align-items: start;
  }
  .rail .panel { grid-column: span 2; }
  .issue-card { grid-column: span 6; }}

@media (max-width: 900px) {
  .masthead__inner { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .logo img { max-width: 250px; }
  .leaderboard { width: 100%; grid-template-columns: 1fr; text-align: center; }
  .leaderboard__brand { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); justify-content: center; }
  .nav, .nav-search { display: none; }
  .burger { display: block; margin-left: auto; }
  .navbar__inner { justify-content: space-between; }
  .navbar__brand { display: flex !important; align-items: center; }
  .navbar__brand img { max-width: 168px; }
  .topbar__links { display: none; }
  .cat-lead__media, .cat-lead__body { grid-column: span 12; }
  .issue-hero { grid-template-columns: 176px minmax(0, 1fr); }}

@media (max-width: 680px) {
  /* Justified text needs a reasonably wide column to avoid uneven word
     gaps; the mobile column is too narrow for that, so fall back to
     normal left-aligned paragraphs here. */
  .prose > p { text-align: left; }
  .postnav { grid-template-columns: 1fr; }
  .postnav__item--next { text-align: left; }
  .postnav__item--next .postnav__label { justify-content: flex-start; }
  .author-box { grid-template-columns: 1fr; }
  .cat-card { grid-column: span 12; }
  .issue-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .issue-hero__cover { max-width: 200px; }
  .issue-hero__body { text-align: left; }
  .cat-toolbar { align-items: flex-start; flex-direction: column; }
  .pagination { justify-content: center; }
  /* Domain rows collapse to a single column — two-up leaves an orphan card */
  .drow { gap: 16px; }
  .dcard { grid-column: span 12; }
  .events, .rail { grid-template-columns: 1fr; }
  .rail .panel { grid-column: auto; }
  .footer-top { row-gap: clamp(28px, 8vw, 40px); }
  .footer-col--brand, .footer-col--domains, .footer-col--platform, .footer-col--contact { grid-column: span 12; }
  .hero__viewport { aspect-ratio: 4 / 5; min-height: 0; }
  .hero__content { padding-right: clamp(18px, 6vw, 30px); }
  .hero__ui { left: clamp(18px, 3vw, 26px); right: auto; }
  .hero__content { padding-bottom: 76px; }
  .news-item { grid-template-columns: 86px 1fr; }
  .to-top { right: 14px; bottom: 14px; }
  /* Clears the fixed to-top button, which otherwise sits over the credit
     link in the bottom-right corner at narrow widths. */
  .footer-credit { padding-right: 60px; }
  .topbar__date { display: none; }}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__slide img { transform: none !important; }}

@media print {
  .topbar, .navbar, .rail, .newsletter, .to-top, .hero__ui, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  /* Decoration only — never waste toner on grain or grid */
  body::before, body::after { display: none !important; }}


/* ══ ENTRANCE ═══════════════════════════════════════════════════════════════
   Two parts: a one-per-session curtain, and a cascade that settles the page
   chrome in afterwards.

   The curtain is driven entirely by CSS animation ending in a hidden state
   with `forwards`. Nothing has to run to dismiss it — if every script after
   the inline boot block fails, the curtain still lifts on schedule. It only
   renders at all when the boot script sets [data-intro="on"], so a JS-less
   visitor never sees it.                                                    */

.curtain { display: none; }

[data-intro="on"] .curtain {
  display: grid;
  position: fixed; inset: 0; z-index: 999;
  place-content: center; justify-items: center; gap: 22px;
  background: #07090c;
  animation: curtainLift .62s var(--ease) .82s forwards;
}
/* Nothing underneath should scroll while the curtain is up. Released by the
   inline boot script, which is the one script that cannot fail to load. */
[data-intro="on"]:not(.intro-done),
[data-intro="on"]:not(.intro-done) body { overflow: hidden; }
[data-intro="on"] .curtain { pointer-events: none; }

.curtain__mark { position: relative; display: grid; place-items: center; }
.curtain__mark img {
  width: clamp(150px, 24vw, 230px);
  opacity: 0;
  /* Settles by .72s — fully formed before the curtain lifts at .82s */
  animation: markIn .56s var(--ease-out) .16s forwards;
}
/* Ring draws itself around the logo, then fades as the curtain goes */
.curtain__ring {
  position: absolute; width: clamp(190px, 30vw, 290px); aspect-ratio: 1;
  fill: none; stroke: var(--brand); stroke-width: 1.4;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  opacity: .9;
  /* Draw completes exactly as the curtain starts to lift, so the ring is
     never seen mid-stroke while fading. */
  animation: ringDraw .72s var(--ease-out) .1s forwards, ringOut .3s var(--ease) .82s forwards;
}
.curtain__tag {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  opacity: 0;
  animation: markIn .34s var(--ease-out) .4s forwards;
}

@keyframes markIn   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes ringOut  { to { opacity: 0; } }
@keyframes curtainLift {
  to { transform: translateY(-101%); visibility: hidden; }
}

/* ── Chrome cascade ────────────────────────────────────────────────────────
   --enter-at is when the sequence starts: straight away on a repeat view,
   after the curtain has lifted on the first. Each element then offsets from
   that single origin, so the whole page settles as one movement.

   Scope note: the hero and billboard are deliberately NOT .reveal elements —
   they sit above the fold and are owned by this cascade instead, so the two
   systems never animate the same property. The sidebar rail keeps .reveal;
   cascading seven more tiles on load is more motion than this needs.       */
:root { --enter-at: 0s; }
[data-intro="on"] { --enter-at: .92s; }

.js .topbar,
.js .masthead,
.js .banner--top,
.js .hero {
  opacity: 0;
  animation: enterUp .62s var(--ease-out) forwards;
}
/* The navbar is position:sticky — a transform on it would create a containing
   block and break the stick, so it fades only. */
.js .navbar {
  opacity: 0;
  animation: enterFade .62s var(--ease-out) forwards;
}
.js .topbar      { animation-delay: calc(var(--enter-at) + 0s);   }
.js .masthead    { animation-delay: calc(var(--enter-at) + .07s); }
.js .navbar      { animation-delay: calc(var(--enter-at) + .13s); }
.js .banner--top { animation-delay: calc(var(--enter-at) + .2s);  }
.js .hero        { animation-delay: calc(var(--enter-at) + .27s); }

@keyframes enterFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes enterUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Hero headline resolves word by word behind a mask. main.js splits the
   words; with no JS the headline is simply plain text, already visible. */
.hero h2 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h2 .w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%);
  animation: wordUp .66s var(--ease-out) forwards;
  animation-delay: calc(var(--enter-at) + .42s + var(--wi, 0) * .045s);
}
@keyframes wordUp { to { transform: none; } }

/* Cross-fade between pages where the browser supports it. Purely additive —
   unsupported browsers just hard-cut as before. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s var(--ease) both; }
::view-transition-new(root) { animation: vtIn  .3s  var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Anyone who asks for less motion gets none of this: no curtain, no cascade,
   no word reveal, no page transition. */
@media (prefers-reduced-motion: reduce) {
  [data-intro="on"] .curtain { display: none; }
  /* Specificity must match the lock rule above, or the lock would still win */
  [data-intro="on"]:not(.intro-done),
  [data-intro="on"]:not(.intro-done) body { overflow: visible; }
  .js .topbar, .js .masthead, .js .navbar,
  .js .banner--top, .js .hero { opacity: 1; animation: none; }
  .hero h2 .w > i { transform: none; animation: none; }
  @view-transition { navigation: none; }
}


/* ══ AD SLOT ATTENTION RING ═════════════════════════════════════════════════
   A red hairline around every ad surface, with a brighter highlight running
   continuously around the perimeter to pull the eye.

   Built as one masked pseudo-element per slot. Two stacked background layers:
   a flat faint red that is always there (so the outline is complete even if
   the animation never runs), and a rotating conic highlight on top. The mask
   punches out the middle, leaving only a 2px ring — so the repaint each frame
   is confined to the border, not the whole box.

   Drawn at inset:0 rather than outside the box: three of these four hosts are
   overflow:hidden, and anything outside would simply be clipped away.        */

@property --ad-run {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.adslot { position: relative; }   /* the other three are already positioned */

.leaderboard::after,
.banner::after,
.promo::after,
.adslot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  background:
    conic-gradient(from var(--ad-run),
      transparent 0 56%,
      color-mix(in srgb, var(--brand) 45%, transparent) 66%,
      var(--brand) 74%,
      #ff9d7d 78%,
      var(--brand) 82%,
      color-mix(in srgb, var(--brand) 45%, transparent) 90%,
      transparent 100%),
    linear-gradient(color-mix(in srgb, var(--brand) 26%, transparent) 0 100%);
  /* Ring-only: fill the padding box, subtract the content box */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: adRun 3.4s linear infinite;
}

/* Offset the starts so the slots don't pulse in lockstep — a wall of eight
   synchronised rings reads as a glitch rather than as motion. */
.banner--top::after       { animation-delay: -.5s; }
.promo:nth-of-type(2n)::after { animation-delay: -1.1s; }
.promo:nth-of-type(3n)::after { animation-delay: -2.0s; }
.adslot::after            { animation-delay: -1.6s; }

@keyframes adRun { to { --ad-run: 360deg; } }

/* Continuous motion is exactly what some people cannot tolerate. They keep the
   red outline; the runner stops. */
@media (prefers-reduced-motion: reduce) {
  .leaderboard::after,
  .banner::after,
  .promo::after,
  .adslot::after {
    animation: none;
    background: linear-gradient(color-mix(in srgb, var(--brand) 42%, transparent) 0 100%);
  }
}

@media print {
  .leaderboard::after, .banner::after, .promo::after, .adslot::after { display: none !important; }}