/* The Daily Bugle: "Newsprint" theme. Tokens generated from design/thedailybugle/tokens.json. */
:root {
  --paper: #f2f1ec;
  --paper-raised: #ffffff;
  --paper-sunk: #e6e4dd;
  --rule: #cfccc3;
  --rule-strong: #111111;
  --ink: #111111;
  --ink-muted: #57544d;
  --red: #c8102e;
  --red-hover: #a80c24;
  --on-red: #ffffff;
  --red-text: #b00d26;
  --flash: #ffd400;
  --on-flash: #111111;
  --ink-block: #111111;
  --on-ink-block: #ffffff;
  --on-ink-muted: #bdbab3;
  --focus: #1a56db;
  --success: #1d6b43;
  --media-sky: #9a9c9f;
  --media-ink: #2a2c30;
  --media-sun: #c9cbcd;
  --media-dot: rgba(17, 17, 17, 0.18);
  --overlay: rgba(10, 10, 10, 0.78);
  --overlay-track: rgba(255, 255, 255, 0.32);
  --media-sky-far: #6f7276;
  --media-sky-low: #b3b5b8;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-pill: 999px;
  --shadow-stamp: 4px 4px 0 #111111;
  --page-max: 1240px;
  --measure: 680px;
  --measure-wide: 880px;
  --rail: 300px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); }
a { color: inherit; text-decoration: none; }
a:hover .hl, a.hl:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--flash); color: var(--on-flash); padding: 8px 12px; font: 600 14px/20px var(--sans); z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6); }

/* ---------- Type ---------- */
.kicker { font: 700 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--red-text); }
.meta { font: 400 13px/18px var(--sans); color: var(--ink-muted); }
.credit { font: 600 11px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.byline { font: 500 15px/20px var(--sans); color: var(--ink); }
.card-h { font: 700 22px/26px var(--serif); letter-spacing: -.01em; color: var(--ink); }
.hl-l { font: 400 56px/.98 var(--display); text-transform: uppercase; color: var(--ink); }
.hl-xl { font: 400 68px/.96 var(--display); text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.deck { font: italic 400 22px/31px var(--serif); color: var(--ink-muted); }
.quote { font: 400 40px/1.05 var(--display); text-transform: uppercase; color: var(--ink); }
.sub { font: 400 28px/1.1 var(--display); text-transform: uppercase; color: var(--ink); margin-top: var(--space-4); }

/* ---------- Masthead ---------- */
.mast { background: var(--red); color: var(--on-red); }
.mast .wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 16px; padding-bottom: 20px; }
.mast-meta { align-self: stretch; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 600 12px/16px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.mast-name { font: 400 96px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--on-red); }
.mast--compact .wrap { padding-top: 14px; padding-bottom: 16px; }
.mast--compact .mast-name { font-size: 72px; }

.nav { border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; flex-wrap: wrap; gap: 0 28px; justify-content: center; }
.nav a { font: 600 14px/20px var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 12px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red-text); }

/* Breaking ticker */
.ticker { background: var(--ink-block); display: flex; align-items: stretch; }
.ticker-label { background: var(--red); color: var(--on-red); font: 700 12px/20px var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 12px 16px; flex-shrink: 0; }
.ticker-view { overflow: hidden; flex: 1; min-width: 0; }
.marq { overflow: hidden; }
.marq-track { display: flex; width: max-content; animation: marq 48s linear infinite; }
.marq-slow { animation-duration: 22s; }
.marq:hover .marq-track, .marq:focus-within .marq-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marq-track { animation: none; } }
.tk { display: flex; align-items: center; gap: 10px; padding: 12px 24px; font: 500 14px/20px var(--sans); white-space: nowrap; color: var(--on-ink-block); }
.tb { width: 8px; height: 8px; background: var(--flash); display: inline-block; flex-shrink: 0; }

/* Sponsored disclosure bar (advertorial) */
.disclosure { background: var(--flash); color: var(--on-flash); }
.disclosure .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.disclosure p { font: 600 15px/20px var(--sans); }
.disclosure p strong { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; margin-right: 8px; }
.disclosure a { font: 600 14px/20px var(--sans); text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; }

/* ---------- Page ---------- */
.main { display: flex; flex-direction: column; gap: var(--space-12); padding-top: 32px; padding-bottom: var(--space-16); }
.main--article { padding-top: 40px; }

.sec-h { border-top: 4px solid var(--rule-strong); padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sec-h--soft { border-top-color: var(--rule); }
.sec-t { font: 400 28px/1.1 var(--display); text-transform: uppercase; color: var(--red-text); }
.sec-t--ink { color: var(--ink); }
.sec-t--muted { color: var(--ink-muted); }
.sec-more { font: 600 14px/20px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--red-text); }
.section { display: flex; flex-direction: column; gap: 20px; }

.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }

/* Media */
.ph { aspect-ratio: 16 / 9; width: 100%; background: var(--media-sky); }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.photo { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; background: var(--media-sky); }
.fig { display: flex; flex-direction: column; gap: 8px; }
.fig figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.fig-inline { margin: 8px 0; }
.fig-cover { max-width: var(--measure-wide); }

/* Story cards */
.card { display: flex; flex-direction: column; gap: 8px; }
.card .kicker { margin-top: 4px; }
.card--lead { gap: 12px; }
.card--lead .kicker { margin-top: 8px; }
.card .card-h a { display: block; }

/* Top stories */
.top { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.top-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.top-secondary { border-top: 1px solid var(--rule); padding-top: var(--space-6); }
.rail { flex: 1 1 var(--rail); min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rail--stack { gap: 40px; }

/* Most read */
.mr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mr li { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.mr a { display: flex; gap: 14px; align-items: flex-start; }
.mr-n { font: 400 34px/1 var(--display); color: var(--red-text); min-width: 24px; }
.mr-h { font: 700 17px/22px var(--serif); color: var(--ink); }

/* ---------- Sponsored units ---------- */
.contimo-placement { display: block; min-width: 0; }
.contimo-placement--center { width: 100%; max-width: 920px; align-self: center; }
.contimo-placement--inline { margin: 8px 0; }
.sp { display: flex; flex-direction: column; gap: 12px; background: var(--paper-sunk); padding: 12px; border: 2px dashed var(--ink-muted); min-width: 0; }
.sp-label { font: 700 11px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--ink-block); color: var(--on-ink-block); padding: 2px 6px; white-space: nowrap; }
.sp-label--lg { font-size: 12px; padding: 4px 8px; }
.sp-name { font: 600 13px/18px var(--sans); color: var(--ink); }
.sp-name--lg { font-size: 15px; }
.sp-tag { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-summary { font: 400 16px/24px var(--serif); color: var(--ink-muted); }
.sp-cta { font: 600 14px/20px var(--sans); letter-spacing: .02em; color: var(--red-text); }
.sp-cta::after { content: " →"; }
.sp-big-h { font: 400 56px/.98 var(--display); text-transform: uppercase; color: var(--ink); }
.sp--billboard { flex-direction: row; flex-wrap: wrap; gap: var(--space-6); align-items: center; }
.sp--billboard .sp-media { flex: 1 1 420px; min-width: 0; }
.sp--billboard .sp-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sp--billboard .sp-h { font: 700 34px/40px var(--serif); letter-spacing: -.01em; color: var(--ink); }
.sp--feature { gap: 16px; padding: 16px; }
.sp--inline { flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; }
.sp--inline .sp-media { flex: 1 1 220px; min-width: 0; }
.sp--inline .sp-body { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sp--rail .sp-h, .sp--card .sp-h { font: 700 22px/26px var(--serif); letter-spacing: -.01em; color: var(--ink); }
.sp--about { padding: var(--space-6); gap: 16px; margin-top: 16px; }
.sp--more { gap: 16px; }
.sp--more a { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); padding-top: 12px; }

/* Ribbon marquee inside a sponsored card */
.rib { background: var(--ink-block); color: var(--on-ink-block); margin: 0 -12px; }
.rib-i { font: 600 12px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; white-space: nowrap; }

/* Video poster (static) */
.vid { position: relative; aspect-ratio: 16 / 9; background: var(--media-ink); width: 100%; overflow: hidden; }
.vid .ph { position: absolute; inset: 0; height: 100%; filter: brightness(.55) contrast(1.1); }
.vid-st { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; align-items: center; background: var(--overlay); color: var(--on-ink-block); padding: 4px 8px; font: 600 12px/16px var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.live { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--red); display: inline-block; }
.unmute { position: absolute; right: 10px; bottom: 14px; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 0; background: var(--overlay); color: var(--on-ink-block); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.vid-track { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--overlay-track); }
.vid-bar { height: 4px; background: var(--red); }

/* Logo box (advertorial) */
.logo { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--ink-muted); background: var(--paper-raised); font: 700 13px/14px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); text-align: center; flex-shrink: 0; }
.logo--wide { width: 96px; height: 32px; }
.logo--square { width: 72px; height: 72px; font-size: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); background: var(--red); color: var(--on-red); font: 600 15px/20px var(--sans); letter-spacing: .02em; border: 0; cursor: pointer; }
.btn:hover { background: var(--red-hover); }
.btn--flash { background: var(--flash); color: var(--on-flash); box-shadow: var(--shadow-stamp); }
.btn--flash:hover { background: var(--flash); transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
.share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); font: 600 15px/20px var(--sans); letter-spacing: .02em; cursor: pointer; }
.share:hover { background: var(--paper-sunk); }
.share-row { display: flex; gap: 12px; flex-wrap: wrap; max-width: var(--measure-wide); }
.tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-strong); font: 600 13px/18px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.tag:hover { background: var(--ink-block); color: var(--on-ink-block); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.avatar { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--ink-block); color: var(--on-ink-block); display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--sans); letter-spacing: .04em; flex-shrink: 0; }

/* ---------- Article ---------- */
.article { display: flex; flex-direction: column; gap: var(--space-8); }
.article-head { display: flex; flex-direction: column; gap: 16px; max-width: var(--measure-wide); }
.article-head .sp-tag { gap: 12px; }
.byline-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; flex-wrap: wrap; }
.byline-row div { display: flex; flex-direction: column; gap: 2px; }
.article-cols { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: flex-start; }
.article-main { flex: 999 1 560px; min-width: 0; }
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: var(--space-6); }
.prose > p, .prose > ul > li, .prose > ol > li { font: 400 19px/31px var(--serif); color: var(--ink); }
.prose > p a, .prose li a { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }
.prose > h2 { font: 400 28px/1.1 var(--display); text-transform: uppercase; color: var(--ink); margin-top: var(--space-4); }
.prose > h3 { font: 700 22px/26px var(--serif); color: var(--ink); }
.prose ul, .prose ol { margin: 0; padding-left: var(--space-6); display: flex; flex-direction: column; gap: 8px; }
.prose > p:first-child::first-letter { font: 400 72px/0.8 var(--display); color: var(--red-text); float: left; padding: 8px 6px 0 0; }
.pull { margin: 8px 0; border-top: 4px solid var(--rule-strong); border-bottom: 1px solid var(--rule); padding: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.pull cite { font-style: normal; }
.partnership { border-top: 1px solid var(--rule); padding-top: 16px; font-size: 14px; line-height: 21px; }
.partnership strong { color: var(--ink); }
.cover-badge { position: relative; }
.cover-badge .sp-label { position: absolute; top: 12px; left: 12px; z-index: 1; }

/* ---------- Section page ---------- */
.section-head { display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--rule-strong); padding-top: 12px; }
.section-head h1 { font: 400 56px/.98 var(--display); text-transform: uppercase; color: var(--red-text); }
.section-head p { font: italic 400 19px/28px var(--serif); color: var(--ink-muted); max-width: var(--measure); }

/* ---------- Static pages ---------- */
.page { max-width: var(--measure); display: flex; flex-direction: column; gap: var(--space-6); }
.page h1 { font: 400 56px/.98 var(--display); text-transform: uppercase; color: var(--ink); }
.page h2 { font: 400 28px/1.1 var(--display); text-transform: uppercase; color: var(--ink); margin-top: var(--space-4); }
.page p, .page li { font: 400 19px/31px var(--serif); }
.page ul { margin: 0; padding-left: var(--space-6); }
.page a { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }
.tipline { background: var(--flash); color: var(--on-flash); padding: var(--space-6); box-shadow: var(--shadow-stamp); display: flex; flex-direction: column; gap: 8px; }
.tipline h2 { font: 400 40px/1.05 var(--display); text-transform: uppercase; margin: 0; }
.tipline p { font: 400 16px/24px var(--serif); }
.big-404 { font: 400 160px/1 var(--display); color: var(--red-text); }

/* ---------- Newsletter well ---------- */
.well { background: var(--paper-sunk); padding: var(--space-4); display: flex; flex-direction: column; gap: 12px; }
.well h2 { font: 400 28px/1.1 var(--display); text-transform: uppercase; }
.well p { font: 400 16px/24px var(--serif); color: var(--ink-muted); }
.well form { display: flex; gap: 8px; flex-wrap: wrap; }
.well input { flex: 1 1 160px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper-raised); font: 400 15px/20px var(--sans); color: var(--ink); }

/* ---------- Footer ---------- */
.foot { background: var(--ink-block); color: var(--on-ink-block); }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 48px; padding-bottom: 48px; }
.foot-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.foot-brand a { font: 400 40px/1 var(--display); text-transform: uppercase; }
.foot-brand p { font: 400 16px/24px var(--serif); color: var(--on-ink-muted); }
.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-h { font: 700 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.foot-l { font: 500 15px/20px var(--sans); color: var(--on-ink-block); padding: 4px 0; }
.foot-legal { border-top: 1px solid var(--on-ink-muted); padding-top: 16px; padding-bottom: 24px; }
.foot-legal p { font: 400 13px/18px var(--sans); color: var(--on-ink-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mast-name { font-size: 72px; }
  .hl-xl { font-size: 54px; }
}
@media (max-width: 620px) {
  .g4, .g3 { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
  .mast-name, .mast--compact .mast-name { font-size: 48px; }
  .mast-meta { justify-content: center; text-align: center; }
  .nav .wrap { gap: 0 18px; }
  .hl-l, .sp-big-h { font-size: 38px; }
  .hl-xl { font-size: 40px; }
  .deck { font-size: 19px; line-height: 28px; }
  .prose > p, .prose > ul > li, .prose > ol > li { font-size: 18px; line-height: 29px; }
  .quote { font-size: 30px; }
  .sp--billboard .sp-h { font-size: 26px; line-height: 31px; }
  .section-head h1, .page h1 { font-size: 40px; }
  .big-404 { font-size: 110px; }
  .rib { margin: 0 -12px; }
}
