/* ==========================================================================
   দৈনিক প্রতিবিম্ব — Swiss brutalist
   Stark white / black, oversized type, thick rules, zero radius,
   asymmetric offset grids. Deliberately not an editorial newspaper skin.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --ink: #000000;
  --muted: #4a4a4a;
  --faint: #8a8a8a;
  --line: #000000;
  --soft: #f2f2f2;
  --gray: #d9d9d9;
  --invert: #3b1230;
  --invert-line: #5c3a52;
  --accent: #ff3b00;
  --accent-ink: #ffffff;

  --font-body: "Inter", "Anek Bangla", "Nirmala UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 28px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;

  --content-width: 1440px;
  --reading-width: 760px;
  --reading-layout-width: 1180px;
  --gutter: clamp(14px, 3vw, 40px);

  --rule: 2px;
  --rule-thin: 1px;
  --rule-thick: 4px;
  --header-offset: 150px;

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

html { -webkit-text-size-adjust: 100%; }

body { margin: 0; min-width: 320px; background: var(--bg); }

img { max-width: 100%; }

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

button,
input,
textarea,
select { font: inherit; color: inherit; border-radius: 0; }

button,
a,
summary,
input { -webkit-tap-highlight-color: transparent; }

button,
summary { cursor: pointer; }

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

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

[id] { scroll-margin-top: var(--header-offset); }

h1,
h2,
h3,
p,
figure { margin: 0; }

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.12;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.container {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s4);
  z-index: 100;
  padding: var(--s3) var(--s5);
  color: #fff;
  background: var(--invert);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip-link:focus { top: var(--s2); }

.eyebrow {
  margin-bottom: var(--s2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: var(--rule) solid var(--ink);
}
.text-link span { transition: transform 160ms ease; }
.text-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.text-link:hover span { transform: translate(2px, -2px); }

.empty-state {
  padding: var(--s8);
  background: var(--soft);
  border: var(--rule) solid var(--ink);
  color: var(--ink);
}
.empty-state h2 { margin-bottom: var(--s3); font-size: 26px; }
.empty-state p { margin-top: var(--s2); }

/* --------------------------------------------------------------------------
   Sponsor rail
   -------------------------------------------------------------------------- */
.sponsor-rail {
  display: flex;
  align-items: center;
  gap: var(--s5);
  width: min(100% - var(--gutter) * 2, var(--content-width));
  min-height: 88px;
  margin: var(--s3) auto;
  padding: var(--s2) var(--s4);
  background: var(--soft);
  border: var(--rule) solid var(--ink);
}
.sponsor-label {
  flex: 0 0 auto;
  padding: 3px var(--s2);
  color: #fff;
  background: var(--invert);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sponsor-rail > a { display: block; flex: 1 1 0; min-width: 0; }
.sponsor-banner { display: block; width: 100%; height: 72px; object-fit: contain; }
.sponsor-rail > .sponsor-banner { flex: 1 1 0; width: 0; min-width: 0; }

/* --------------------------------------------------------------------------
   Ticker — black strip, accent label
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--invert);
  color: #fff;
  border-bottom: var(--rule) solid var(--ink);
}
.ticker-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s2) var(--s4);
  padding-block: 10px;
}
.ticker-label {
  padding: 2px var(--s2);
  color: #fff;
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  scrollbar-width: thin;
}
.ticker-story {
  display: block;
  width: max-content;
  color: #fff;
  font-size: 14px;
  line-height: 1.7;
  white-space: nowrap;
}
.ticker-title,
.ticker-summary { display: inline; }
.ticker-summary { color: #bdbdbd; font-size: 13px; }
.ticker-story:hover .ticker-title { text-decoration: underline; text-underline-offset: 3px; }
.ticker-toggle {
  min-width: 64px;
  min-height: 30px;
  padding: 2px var(--s3);
  color: #fff;
  background: transparent;
  border: var(--rule-thin) solid #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-toggle:hover { background: #fff; color: var(--ink); }
.ticker-toggle[hidden] { display: none; }
.ticker[data-enhanced] .ticker-viewport { overflow-x: hidden; }
.ticker[data-enhanced] .ticker-track {
  width: max-content;
  padding-left: var(--ticker-viewport-width, 100vw);
  animation: ticker-scroll var(--ticker-duration, 35s) linear infinite;
}
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.ticker[data-paused="true"] .ticker-track,
.ticker-viewport:focus-within .ticker-track {
  width: max-content;
  padding-left: 0;
  animation: none;
}
.ticker[data-paused="true"] .ticker-viewport,
.ticker .ticker-viewport:focus-within { overflow-x: auto; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   Header — black utility strip, oversized wordmark, boxed search,
   bordered uppercase nav strip
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: var(--rule) solid var(--ink);
}

.utility-bar {
  background: var(--invert);
  color: #fff;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.utility-group { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
.utility-group > span { white-space: nowrap; }
.utility-edition { color: #fff; }
.utility-links { display: flex; gap: var(--s4); }
.utility-links a { color: #fff; white-space: nowrap; border-bottom: 1px solid transparent; }
.utility-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s6);
  padding-block: var(--s6);
}

.brand-lockup { display: flex; align-items: center; min-width: 0; }
.brand { display: block; flex-shrink: 0; line-height: 1; }
.brand-logo { display: block; width: clamp(180px, 24vw, 300px); height: auto; }
.brand-lockup p { display: none; }
.masthead-note { display: none; }

.masthead-search {
  display: flex;
  align-items: stretch;
  width: min(420px, 38vw);
  min-width: 240px;
  height: 50px;
  background: #fff;
  border: var(--rule) solid var(--ink);
}
.masthead-search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.masthead-search input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--s4);
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 15px;
}
.masthead-search input::placeholder { color: var(--faint); text-transform: uppercase; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.masthead-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  flex-shrink: 0;
  padding: 0 var(--s5);
  color: #fff;
  background: var(--invert);
  border: 0;
  border-left: var(--rule) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 160ms ease;
}
.masthead-search button:hover { background: var(--accent); }
.masthead-search svg,
.mobile-nav-more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.category-nav { border-top: var(--rule) solid var(--ink); }
.category-nav-inner { display: flex; align-items: stretch; gap: 0; min-height: 0; }
.nav-scroll {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 46px;
  padding-inline: var(--s4);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: var(--rule-thin) solid var(--ink);
  transition: background 120ms ease, color 120ms ease;
}
.nav-scroll a:first-child { border-left: var(--rule-thin) solid var(--ink); }
.nav-scroll a:hover { background: var(--soft); }
.nav-scroll a[aria-current="page"] { background: var(--invert); color: #fff; }
.nav-scroll a:focus-visible { outline-offset: -4px; }

.mobile-nav-more { position: relative; flex: 0 0 auto; border-left: var(--rule) solid var(--ink); }
.mobile-nav-more summary {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 46px;
  padding-inline: var(--s4);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
}
.mobile-nav-more summary::-webkit-details-marker { display: none; }
.mobile-nav-more[open] summary,
.mobile-nav-more summary:hover { background: var(--accent); color: #fff; }
.mobile-nav-more summary:focus-visible { outline-offset: -4px; }
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  width: min(440px, calc(100vw - 28px));
  max-height: min(68vh, 520px);
  overflow-y: auto;
  padding: var(--s4);
  background: #fff;
  border: var(--rule) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.mobile-nav-more[open] .mobile-nav-drawer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.mobile-nav-drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s2) var(--s3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: var(--rule-thin) solid var(--ink);
}
.mobile-nav-drawer a:nth-child(odd) { border-right: var(--rule-thin) solid var(--ink); }
.mobile-nav-drawer a:hover,
.mobile-nav-drawer a[aria-current] { background: var(--invert); color: #fff; }

/* --------------------------------------------------------------------------
   Story primitives — sharp images, big type, index numbers
   -------------------------------------------------------------------------- */
.story-card { min-width: 0; }
.story-link { display: block; min-width: 0; }
.story-media {
  overflow: hidden;
  margin-bottom: var(--s4);
  background: var(--gray);
  border: var(--rule) solid var(--ink);
}
.story-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(12%);
  transition: filter 220ms ease, transform 320ms ease;
}
.story-link:hover .story-image { filter: grayscale(0); transform: scale(1.02); }

.story-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s2);
}
.story-category {
  padding: 2px var(--s2);
  color: #fff;
  background: var(--invert);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.editor-selection { color: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.editor-selection::before { content: "■ "; }

.story-title { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; transition: color 120ms ease; }
.story-link:hover .story-title { color: var(--accent); }
.story-excerpt {
  display: -webkit-box;
  margin-top: var(--s3);
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.story-time { display: block; margin-top: var(--s3); color: var(--faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.story-number { color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Lead */
.story-card--lead .story-media { margin-bottom: var(--s5); }
.story-card--lead .story-image { aspect-ratio: 16 / 9; }
.story-card--lead .story-title { font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.story-card--lead .story-excerpt { font-size: 17px; line-height: 1.75; -webkit-line-clamp: 3; }
.story-card--lead .story-kicker { margin-bottom: var(--s3); }
.story-card--lead .story-category { font-size: 10px; }

/* Feature */
.story-card--feature { padding-top: var(--s4); border-top: var(--rule-thick) solid var(--ink); }
.story-card--feature .story-title { font-size: 22px; line-height: 1.15; }
.story-card--feature .story-media { border-width: var(--rule-thin); }
.story-card--feature .story-image { aspect-ratio: 16 / 9; }

/* Compact row */
.story-card--compact { padding-block: var(--s4); border-bottom: var(--rule-thin) solid var(--ink); }
.story-card--compact .story-link.has-image {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: var(--s3);
}
.story-card--compact .story-media { margin: 2px 0 0; border-width: var(--rule-thin); }
.story-card--compact .story-image { aspect-ratio: 1 / 1; }
.story-card--compact .story-kicker { margin-bottom: var(--s1); }
.story-card--compact .story-title { font-size: 16px; line-height: 1.2; }
.story-card--compact .story-time { margin-top: var(--s2); }

/* Editorial index row */
.story-card--editorial { padding-block: var(--s3); border-bottom: var(--rule-thin) solid var(--ink); }
.story-card--editorial .story-link { display: block; }
.story-card--editorial.story-card--ranked .story-link { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.story-card--editorial .story-number { padding-top: 1px; font-size: 22px; line-height: 1; letter-spacing: -0.04em; }
.story-card--editorial .story-title { font-size: 17px; line-height: 1.25; }
.story-card--editorial .story-category { font-size: 9px; }

/* Editorial feature */
.story-card--editorial-feature { padding: var(--s5) 0; border-top: var(--rule-thick) solid var(--ink); }
.story-card--editorial-feature .story-title { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; }
.story-card--editorial-feature .story-excerpt { -webkit-line-clamp: 3; }

.story-card--text-only .story-media { display: none; }

/* --------------------------------------------------------------------------
   Home masthead + asymmetric hero
   -------------------------------------------------------------------------- */
#main {
  min-height: 62vh;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s6);
  padding-bottom: var(--s4);
  margin-bottom: 0;
  border-bottom: var(--rule-thick) solid var(--ink);
}
.page-masthead .kicker {
  margin-bottom: var(--s2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.page-masthead h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.masthead-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  align-items: flex-end;
  padding-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.masthead-meta strong { color: var(--accent); font-weight: 700; }

/* Legacy edition heading (kept harmless) */
.edition-heading { display: none; }

.brutal-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr);
  border-bottom: var(--rule-thick) solid var(--ink);
}
.brutal-hero-lead {
  min-width: 0;
  padding: var(--s7) var(--s7) var(--s7) 0;
  border-right: var(--rule-thick) solid var(--ink);
}
.brutal-hero-lead .story-link { display: flex; flex-direction: column; }
.brutal-hero-lead .story-copy { order: -1; margin-bottom: var(--s5); }
.brutal-hero-lead .story-media { margin-bottom: 0; }
.brutal-hero-index {
  min-width: 0;
  padding: var(--s7) 0 var(--s7) var(--s7);
}
.index-heading {
  padding-bottom: var(--s2);
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: var(--rule-thick) solid var(--ink);
}
.index-stack .story-card:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.editorial-section { margin-top: clamp(32px, 5vw, 64px); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s6);
  padding: 0 0 var(--s3);
  margin-bottom: var(--s5);
  border-top: 0;
  border-bottom: var(--rule-thick) solid var(--ink);
}
.section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.section-heading h2 a:hover { color: var(--accent); }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading .text-link { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Highlights — three hard blocks with oversized numbers
   -------------------------------------------------------------------------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: var(--rule-thick) solid var(--ink);
}
.highlight-grid .story-card {
  min-width: 0;
  padding: var(--s4);
  border-right: var(--rule-thin) solid var(--ink);
}
.highlight-grid .story-card:last-child { border-right: 0; }
.highlight-grid .story-number {
  display: block;
  margin-bottom: var(--s2);
  color: var(--accent);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.highlight-grid .story-media { border-width: var(--rule-thin); }
.highlight-grid .story-image { aspect-ratio: 16 / 9; }
.highlight-grid .story-title { font-size: 22px; }
.highlight-grid .story-excerpt { font-size: 14px; -webkit-line-clamp: 2; }
.highlight-grid .story-card--text-only { border-top: 0; }
.highlight-grid .story-card--text-only .story-media { display: none; }

/* --------------------------------------------------------------------------
   Category deck — divided blocks, no cards
   -------------------------------------------------------------------------- */
.category-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule-thick) solid var(--ink);
}
.category-deck.editorial-section { margin-top: clamp(32px, 5vw, 64px); }
.category-section {
  min-width: 0;
  padding: var(--s6) 0;
  border-bottom: var(--rule-thick) solid var(--ink);
}
.category-section:nth-child(odd) { padding-right: var(--s7); border-right: var(--rule-thin) solid var(--ink); }
.category-section:nth-child(even) { padding-left: var(--s7); }
.category-section--feature { grid-column: 1 / -1; padding-right: 0; border-right: 0; }

.category-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 0;
}
.category-feature-layout > .story-card { padding-right: var(--s7); border-right: var(--rule-thin) solid var(--ink); }
.category-feature-layout > .story-card .story-title { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.02; letter-spacing: -0.03em; }
.category-support { padding-left: var(--s7); }
.category-support .story-card:first-child { padding-top: 0; }
.category-support .story-card:last-child { border-bottom: 0; }
.category-support .story-link.has-image { grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); }
.category-support .story-title { font-size: 17px; }

.category-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.category-split > .story-card:first-child { padding-right: var(--s5); border-right: var(--rule-thin) solid var(--ink); }
.category-split > .story-card:last-child { padding-left: var(--s5); }
.category-split .story-title { font-size: 20px; }
.category-split .story-excerpt { display: none; }
.category-section--split .editorial-list { margin-top: var(--s3); }

.category-section--digest { padding: var(--s5); }
.category-section--digest .section-heading { margin-bottom: var(--s3); }
.digest-list .story-card:last-child { padding-bottom: 0; border-bottom: 0; }

/* --------------------------------------------------------------------------
   Latest — numbered index, not cards
   -------------------------------------------------------------------------- */
.latest-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s10);
  border-top: var(--rule-thick) solid var(--ink);
}
.latest-list .story-card {
  padding: var(--s3) 0;
  border-bottom: var(--rule-thin) solid var(--ink);
}
.latest-list .story-card--editorial.story-card--ranked .story-link { grid-template-columns: 58px minmax(0, 1fr); }
.latest-list .story-number { font-size: 26px; font-weight: 800; letter-spacing: -0.05em; }
.latest-list .story-title { font-size: 18px; }

/* --------------------------------------------------------------------------
   Related panel
   -------------------------------------------------------------------------- */
.related-panel {
  min-width: 0;
  padding: var(--s6) 0;
  background: transparent;
  border: 0;
  border-bottom: var(--rule-thick) solid var(--ink);
}
.related-panel > h2 { margin-bottom: var(--s2); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -0.03em; }
.related-panel > .eyebrow { color: var(--accent); }
.related-category-link {
  display: inline-flex;
  gap: var(--s2);
  margin-bottom: var(--s4);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: var(--rule-thin) solid var(--accent);
}
.related-headlines { display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--rule-thick) solid var(--ink); }
.related-headlines .story-card { border-bottom: var(--rule-thin) solid var(--ink); }
.related-headlines .story-card:last-child { padding-bottom: 0; border-bottom: 0; }
.related-headlines .story-title { font-size: 17px; }

/* Home related band: four index columns */
.home-related-band .related-headlines {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.home-related-band .story-card {
  padding: var(--s4);
  border-bottom: 0;
  border-right: var(--rule-thin) solid var(--ink);
}
.home-related-band .story-card:last-child { border-right: 0; }
.home-related-band .story-number { display: block; margin-bottom: 6px; font-size: 24px; }

/* --------------------------------------------------------------------------
   Breadcrumbs & page headings
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s4);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumbs a:hover { color: var(--accent); }

.page-heading {
  margin-bottom: var(--s6);
  padding-bottom: var(--s4);
  border-bottom: var(--rule-thick) solid var(--ink);
}
.page-heading h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 800; }
.page-heading > p:last-child { margin-top: var(--s3); color: var(--muted); font-size: 16px; }
.page-heading .eyebrow { margin-bottom: var(--s2); }

/* --------------------------------------------------------------------------
   Category page
   -------------------------------------------------------------------------- */
.content-with-sidebar { display: block; }
.content-with-sidebar.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  align-items: start;
}
.category-main { min-width: 0; padding-right: var(--s7); border-right: var(--rule-thick) solid var(--ink); }
.category-main > .story-card--lead { max-width: none; }
.category-main > .story-card--lead .story-link { display: flex; flex-direction: column; }
.category-main > .story-card--lead .story-copy { order: -1; margin-bottom: var(--s5); }
.category-main > .story-card--lead .story-media { margin-bottom: 0; }
.category-main > .story-card--lead .story-image { aspect-ratio: 16 / 9; }
.content-with-sidebar > .related-panel { padding: var(--s6) 0 var(--s6) var(--s7); border-bottom: 0; }

.category-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--s7);
  border-top: var(--rule-thick) solid var(--ink);
}
.category-news-grid > .story-card {
  padding: var(--s4);
  border-right: var(--rule-thin) solid var(--ink);
  border-bottom: var(--rule-thin) solid var(--ink);
}
.category-news-grid > .story-card:nth-child(3n) { border-right: 0; }
.category-news-grid .story-card--editorial-feature { padding: var(--s4); border-top: 0; }
.category-news-grid .story-card--compact { align-self: start; }

.other-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule-thick) solid var(--ink);
}
.other-category { min-width: 0; padding: var(--s5); border-right: var(--rule-thin) solid var(--ink); }
.other-category:last-child { border-right: 0; }
.other-category > h3 {
  padding-bottom: var(--s2);
  margin-bottom: var(--s2);
  border-bottom: var(--rule) solid var(--accent);
  font-size: 20px;
  letter-spacing: -0.02em;
}
.other-category > .text-link { margin-top: var(--s3); }
.other-category .story-card:last-of-type { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Search page
   -------------------------------------------------------------------------- */
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  align-items: start;
}
.search-page { min-width: 0; padding-right: var(--s7); border-right: var(--rule-thick) solid var(--ink); }
.search-form {
  padding: var(--s5);
  background: #fff;
  border: var(--rule) solid var(--ink);
}
.search-form label { display: block; margin-bottom: var(--s3); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.search-fields { display: flex; gap: 0; }
.search-fields input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: var(--s3) var(--s4);
  color: var(--ink);
  background: #fff;
  border: var(--rule) solid var(--ink);
  border-right: 0;
  font-size: 16px;
}
.search-fields input:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-fields button {
  flex-shrink: 0;
  padding: var(--s3) var(--s5);
  color: #fff;
  background: var(--invert);
  border: var(--rule) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 160ms ease;
}
.search-fields button:hover { background: var(--accent); }
.search-hint { margin-top: var(--s3); color: var(--muted); font-size: 13px; line-height: 1.7; }
.search-summary { margin-top: var(--s5); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.search-results { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--s4); }
.search-results .story-card { padding-block: var(--s4); }
.search-results .story-link.has-image { grid-template-columns: 150px minmax(0, 1fr); gap: var(--s4); }
.search-results .story-title { font-size: 21px; }

.browse-panel {
  padding: var(--s6) 0 var(--s6) var(--s7);
  background: transparent;
  border: 0;
}
.browse-panel h2 { margin-bottom: var(--s3); font-size: 22px; letter-spacing: -0.02em; }
.browse-panel nav { display: grid; border-top: var(--rule-thick) solid var(--ink); }
.browse-panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  padding-block: var(--s2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: var(--rule-thin) solid var(--ink);
}
.browse-panel a:hover { background: var(--soft); }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: var(--s8);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s2) var(--s5);
  background: #fff;
  border: var(--rule) solid var(--ink);
  font-weight: 700;
}
.pagination a:first-child { border-right: 0; }
.pagination a:hover { background: var(--invert); color: #fff; }
.pagination > span { padding: var(--s2) var(--s4); border-block: var(--rule) solid var(--ink); color: var(--muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Article reading page
   -------------------------------------------------------------------------- */
.reading-breadcrumbs { max-width: var(--reading-layout-width); margin-inline: auto; }
.reading-layout { max-width: var(--reading-width); margin-inline: auto; }
.reading-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 0;
  max-width: var(--reading-layout-width);
}
.article-detail { min-width: 0; padding-right: var(--s7); border-right: var(--rule-thick) solid var(--ink); }
.reading-layout > .related-panel { padding: var(--s6) 0 var(--s6) var(--s7); border-bottom: 0; }

.article-heading h1 { margin-top: var(--s3); font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
.article-deck {
  display: -webkit-box;
  margin-top: var(--s4);
  overflow: hidden;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  margin-block: var(--s5);
  padding: var(--s3) var(--s4);
  background: #fff;
  border: var(--rule) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-byline > span { font-weight: 700; }
.article-byline time { color: var(--muted); }
.article-figure {
  margin: 0 0 var(--s7);
  overflow: hidden;
  background: var(--gray);
  border: var(--rule) solid var(--ink);
}
.detail-image { display: block; width: 100%; height: auto; }
.article-content { width: 100%; max-width: 68ch; font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
.article-content p { margin-bottom: var(--s5); }
.source-note {
  margin: var(--s7) 0 0;
  padding: var(--s3) var(--s4);
  background: #fff;
  border: var(--rule) solid var(--ink);
  border-inline-start: var(--rule-thick) solid var(--accent);
  font-size: 14px;
}
.source-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-back { margin-top: var(--s5); }
.reading-layout.has-sidebar > .related-panel { position: sticky; top: calc(92px + var(--s4)); }

/* --------------------------------------------------------------------------
   Footer — inverted black slab
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: var(--s8);
  color: #fff;
  background: var(--invert);
  border-top: var(--rule-thick) solid var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 0;
  border-top: var(--rule-thin) solid var(--invert-line);
}
.footer-identity { padding: var(--s5) var(--s5) var(--s5) 0; border-right: var(--rule-thin) solid var(--invert-line); }
.footer-brand { display: inline-block; padding: 8px; background: #fff; }
.footer-brand img { display: block; width: 190px; height: auto; }
.footer-identity p { margin-block: var(--s4) var(--s2); color: #fff; font-size: 15px; font-weight: 700; }
.footer-identity > span { display: block; max-width: 300px; color: #bdbdbd; font-size: 14px; line-height: 1.7; }
.footer-column { padding: var(--s5); border-right: var(--rule-thin) solid var(--invert-line); }
.footer-column:last-child { border-right: 0; }
.footer-column h2 { margin-bottom: var(--s3); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-column nav { display: grid; gap: 0; }
.footer-column a { display: flex; align-items: center; min-height: 34px; color: #d8d8d8; font-size: 14px; border-bottom: var(--rule-thin) solid var(--invert-line); }
.footer-column a:hover { color: var(--accent); }
.footer-contact p { margin-bottom: var(--s2); color: #bdbdbd; font-size: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s6);
  padding-block: var(--s4);
  border-top: var(--rule-thin) solid var(--invert-line);
  color: #cdbcc8;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-bottom small { font-size: 10px; }
.footer-bottom > span { font-style: normal; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: var(--s6);
  background: var(--invert);
}
.not-found-shell {
  width: min(100%, 720px);
  padding: var(--s10);
  background: #fff;
  border: var(--rule-thick) solid #fff;
  box-shadow: 14px 14px 0 var(--accent);
  text-align: left;
}
.not-found-brand { display: inline-block; padding: 0; background: #fff; }
.not-found-brand img { width: 210px; height: auto; }
.not-found-code { margin-top: var(--s6); color: var(--ink); font-family: var(--font-mono); font-size: clamp(6rem, 22vw, 13rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.07em; }
.not-found-shell h1 { margin-block: var(--s5) var(--s2); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.not-found-shell > p:not(.not-found-code) { color: var(--muted); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
.not-found-actions a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: var(--s3) var(--s6);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.not-found-primary { color: #fff; background: var(--invert); }
.not-found-primary:hover { background: var(--accent); }
.not-found-secondary { color: var(--ink); background: #fff; border: var(--rule) solid var(--ink); }
.not-found-secondary:hover { background: var(--soft); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root { --gutter: clamp(14px, 2.6vw, 30px); }
  .home-related-band .related-headlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-with-sidebar.has-sidebar,
  .search-layout,
  .reading-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
  .category-main, .search-page, .article-detail { padding-right: var(--s6); }
  .content-with-sidebar > .related-panel,
  .reading-layout > .related-panel { padding-left: var(--s6); }
}

@media (max-width: 1024px) {
  .masthead { padding-block: var(--s5); }
  .masthead-search { width: min(320px, 42vw); min-width: 200px; }
  .brutal-hero { grid-template-columns: minmax(0, 1fr); }
  .brutal-hero-lead { padding: var(--s6) 0; border-right: 0; border-bottom: var(--rule-thick) solid var(--ink); }
  .brutal-hero-index { padding: var(--s6) 0; }
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlight-grid .story-card:nth-child(2) { border-right: 0; }
  .highlight-grid .story-card:last-child { grid-column: 1 / -1; border-right: 0; border-top: var(--rule-thin) solid var(--ink); }
  .category-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-news-grid > .story-card:nth-child(3n) { border-right: var(--rule-thin) solid var(--ink); }
  .category-news-grid > .story-card:nth-child(2n) { border-right: 0; }
  .content-with-sidebar.has-sidebar,
  .search-layout,
  .reading-layout.has-sidebar { grid-template-columns: minmax(0, 1fr); }
  .category-main, .search-page, .article-detail { padding-right: 0; border-right: 0; }
  .content-with-sidebar > .related-panel,
  .reading-layout > .related-panel { padding: var(--s5) 0 0; border-top: var(--rule-thick) solid var(--ink); }
  .reading-layout.has-sidebar > .related-panel { position: static; }
  .other-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .other-category:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-identity, .footer-column { border-bottom: var(--rule-thin) solid var(--invert-line); }
  .footer-column:nth-child(3) { border-right: 0; }
}

@media (max-width: 820px) {
  :root { --header-offset: 140px; }
  .utility-group > span:first-child { display: none; }
  .masthead { grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-items: stretch; }
  .brand-logo { width: 190px; }
  .masthead-search { width: 100%; min-width: 0; }
  .nav-scroll a { padding-inline: var(--s3); font-size: 10px; }
  .mobile-nav-more summary { padding-inline: var(--s3); font-size: 10px; }

  #main { padding-top: var(--s4); }
  .page-masthead { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--s2); }
  .masthead-meta { flex-direction: row; gap: var(--s4); align-items: center; text-align: left; }
  .page-masthead h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
  .story-card--lead .story-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .highlight-grid,
  .category-deck,
  .category-feature-layout,
  .category-split,
  .category-news-grid,
  .latest-list,
  .other-category-grid,
  .home-related-band .related-headlines { grid-template-columns: minmax(0, 1fr); }
  .highlight-grid .story-card,
  .category-section:nth-child(odd),
  .category-section:nth-child(even),
  .category-feature-layout > .story-card,
  .category-support,
  .category-split > .story-card:first-child,
  .category-split > .story-card:last-child,
  .category-news-grid > .story-card,
  .other-category { padding-left: 0; padding-right: 0; border-right: 0; }
  .highlight-grid .story-card { border-bottom: var(--rule-thin) solid var(--ink); }
  .highlight-grid .story-card:last-child { border-top: 0; }
  .category-feature-layout > .story-card { border-bottom: var(--rule-thin) solid var(--ink); }
  .category-news-grid > .story-card { border-right: 0; }
  .latest-list { gap: 0; }
  .home-related-band .story-card { border-right: 0; border-bottom: var(--rule-thin) solid var(--ink); }
  .home-related-band .story-card:last-child { border-bottom: 0; }
  .supporting-coverage .story-link.has-image,
  .category-support .story-link.has-image,
  .latest-list .story-link.has-image,
  .search-results .story-link.has-image { grid-template-columns: 88px minmax(0, 1fr); }
  .page-heading h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .article-heading h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .article-content { font-size: 17px; }
  .article-byline { display: grid; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-identity { border-right: 0; }
  .footer-column { border-right: 0; }
  .not-found-shell { padding: var(--s6) var(--s4); }
  .not-found-actions { flex-direction: column; }
}

@media (max-width: 600px) {
  :root { --header-offset: 130px; }
  .sponsor-rail { gap: var(--s2); min-height: 68px; padding: var(--s2); }
  .sponsor-banner { height: 52px; }
  .sponsor-label { font-size: 9px; }
  .utility-inner { min-height: 30px; font-size: 9px; }
  .utility-links { gap: var(--s3); }
  .brand-logo { width: 170px; }
  .ticker-inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); }
  .ticker-label { display: none; }
  .ticker-toggle { grid-column: 2; grid-row: 1; }
  .ticker-viewport { grid-column: 1; grid-row: 1; }
  .story-card--compact .story-link.has-image,
  .latest-list .story-link.has-image,
  .search-results .story-link.has-image { grid-template-columns: 76px minmax(0, 1fr); }
  .search-form { padding: var(--s4); }
  .search-fields { flex-direction: column; }
  .search-fields input { border-right: var(--rule) solid var(--ink); border-bottom: 0; }
  .search-fields button { min-height: 46px; }
  .browse-panel { padding: var(--s5) 0 0; }
  .latest-list .story-card--editorial.story-card--ranked .story-link { grid-template-columns: 44px minmax(0, 1fr); }
  .not-found-code { font-size: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .story-link:hover .story-image,
  .text-link:hover span { transform: none; }
  .ticker[data-enhanced] .ticker-track { width: max-content; padding-left: 0; animation: none; }
  .ticker[data-enhanced] .ticker-viewport { overflow-x: auto; }
}

@media print {
  .site-header,
  .ticker,
  .sponsor-rail,
  .site-footer,
  .related-panel,
  .pagination,
  .mobile-nav-more { display: none !important; }
  #main { padding: 0; }
  .article-content { font-size: 12pt; }
  a { text-decoration: underline; }
}
