/* ============================================================
   NEWZ — US States Network · production stylesheet
   Ported from Claude Design handoff (states-design/project/newz.css)
   for theme states_newz_com (fork of magazine-child / GeneratePress).
   2026-05-29 — F0 (chrome) + F1 (article). Reusable for F2/F3.

   Changes vs the design prototype:
     - Preview chrome (.preview-bar) and device frame
       (.device/.phone-bezel/.viewport) REMOVED — not part of WP output.
     - `@container page (max-width: N)` rewritten to `@media (max-width: N)`
       (prototype reflowed via a container query on the fake phone bezel;
       a real WP page reflows on the viewport).
     - body background forced to white (prototype used a dark canvas).
   Everything else is the design verbatim. The AD HOST BRIDGE block at the
   end maps the bare AdHub <div id="adhub-..."> hosts emitted by
   mag_ad_slot() to the footprint the prototype reserved (CLS-safe).
   ============================================================ */

:root {
  --ink: #0F172A;
  --ink-2: #1E293B;
  --ink-3: #334155;
  --slate: #475569;
  --slate-2: #64748B;
  --slate-3: #94A3B8;
  --line: #E2E8F0;
  --line-2: #EDF1F6;
  --wash: #F6F8FB;
  --wash-2: #F1F5F9;
  --white: #FFFFFF;

  --red: #E63946;
  --red-hover: #C8232F;
  --red-wash: #FEF2F3;

  --maxw: 1180px;
  --gap: 28px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 6px 20px rgba(15,23,42,.10);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-fast: 120ms ease;
  --t: 180ms ease;
}

* { box-sizing: border-box; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* Production page base — light surface (prototype used a dark canvas). */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   AD SLOTS (prototype placeholder styling — used by ?adsdebug=1)
   ============================================================ */
.ad {
  --ad-bg: #EEF2F7;
  background:
    repeating-linear-gradient(135deg, #EEF2F7 0 12px, #E9EEF5 12px 24px);
  border: 1px dashed #C4D0E0;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8295AE;
  text-align: center;
  margin-inline: auto;
}
.ad .ad-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #97A8C0;
}
.ad .ad-dim { font-size: 11px; font-weight: 600; color: #ACBACE; }
.ad.is-native {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Billboard above masthead */
.billboard-wrap {
  background: var(--ink);
  padding: 12px 16px;
  display: flex;
  justify-content: center;
}
.ad-billboard { width: 970px; max-width: 100%; height: 250px; }
@media (max-width: 760px) {
  .ad-billboard { width: 320px; height: 100px; }
  .billboard-wrap { padding: 8px; }
}

/* Leaderboard in-feed */
.ad-leaderboard { width: 728px; max-width: 100%; height: 90px; margin-block: var(--gap); }
@media (max-width: 760px) {
  .ad-leaderboard { width: 320px; height: 100px; }
}

/* Sidebar MPUs */
.ad-mpu-300x600 { width: 300px; height: 600px; }
.ad-mpu-300x250 { width: 300px; height: 250px; }

/* Mobile anchor */
.mobile-anchor {
  display: none;
}
@media (max-width: 760px) {
  .mobile-anchor {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 80;
    background: rgba(246,248,251,.92);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--line);
    padding: 6px;
    justify-content: center;
  }
  .mobile-anchor .ad { width: 320px; height: 50px; }
  .mobile-anchor .anchor-close {
    position: absolute; top: -10px; right: 8px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ink); color: #fff; border: 0;
    font-size: 12px; line-height: 1;
    box-shadow: var(--shadow-sm);
  }
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  background: var(--ink);
  color: #fff;
}
.masthead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.mh-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.mh-logo img { height: 34px; width: auto; }
.mh-edition {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px solid #2A3650;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
  color: #fff;
  flex-shrink: 0;
}
.mh-edition .ed-flag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  background: var(--red);
  color: #fff;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}
.mh-spacer { flex: 1; }

/* search */
.mh-search {
  display: flex;
  align-items: center;
  background: #18233B;
  border: 1px solid #2A3650;
  border-radius: 999px;
  height: 42px;
  width: 340px;
  max-width: 38vw;
  transition: var(--t);
  overflow: hidden;
}
.mh-search:focus-within { border-color: var(--red); background: #1B2741; }
.mh-search svg { width: 17px; height: 17px; color: #8295AE; margin-left: 15px; flex-shrink: 0; }
.mh-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 14px;
  padding: 0 14px;
  min-width: 0;
}
.mh-search input::placeholder { color: #6F8198; }

/* state selector trigger */
.mh-state {
  position: relative;
  flex-shrink: 0;
}
.mh-state-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid #2A3650;
  border-radius: 999px;
  color: #DCE3EE;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--t);
}
.mh-state-btn:hover { border-color: var(--red); color: #fff; }
.mh-state-btn svg { width: 14px; height: 14px; }
.mh-state-btn .pin { color: var(--red); }
.mh-icon-btn {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid #2A3650; border-radius: 999px;
  color: #fff;
}
.mh-icon-btn svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .masthead-inner { padding: 12px 16px; gap: 12px; }
  .mh-logo img { height: 26px; }
  .mh-edition { font-size: 14px; padding-left: 10px; gap: 6px; }
  .mh-edition .ed-flag { font-size: 9px; padding: 2px 5px; }
  .mh-search { display: none; }
  .mh-state-btn .st-label { display: none; }
  .mh-state-btn { padding: 0 11px; }
  .mh-icon-btn { display: inline-flex; }
}

/* ============================================================
   CATEGORY NAV
   ============================================================ */
.catnav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}
.catnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.catnav a {
  position: relative;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.catnav a:hover { color: var(--red); }
.catnav a.active,
.catnav a[aria-current="page"] { color: var(--red); }
.catnav a.active::after,
.catnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 3px; background: var(--red); border-radius: 3px 3px 0 0;
}
.catnav .nav-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catnav .nav-scroll::-webkit-scrollbar { display: none; }
/* mag_primary_nav() prints <ul><li><a>; flatten it to the design's row of links. */
.catnav .nav-scroll ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.catnav .nav-scroll li { margin: 0; padding: 0; list-style: none; }
.catnav .nav-more { margin-left: auto; padding-left: 14px; }
.catnav .nav-live {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--red);
  padding: 14px 4px 14px 14px;
  text-transform: uppercase;
}
.catnav .nav-live .blip {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(230,57,70,.6);
  animation: blip 1.6s infinite;
}
@keyframes blip {
  0% { box-shadow: 0 0 0 0 rgba(230,57,70,.55); }
  70% { box-shadow: 0 0 0 7px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}
@media (max-width: 760px) {
  .catnav-inner { padding: 0 12px; }
  .catnav .nav-live { display: none; }
  .catnav a { padding: 12px 11px; font-size: 13.5px; }
}

/* ============================================================
   NETWORK STRIP (state pages)
   ============================================================ */
.netbar {
  background: var(--ink-2);
  color: #fff;
  border-bottom: 1px solid #243049;
}
.netbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px;
}
.netbar .nb-label { color: var(--slate-3); font-weight: 700; letter-spacing: .04em; flex-shrink: 0; }
.netbar .nb-states { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.netbar .nb-states::-webkit-scrollbar { display: none; }
.netbar .nb-states a { padding: 4px 10px; border-radius: 999px; color: #C7D2E0; font-weight: 600; white-space: nowrap; }
.netbar .nb-states a:hover { background: #243049; color: #fff; }
.netbar .nb-states a.cur { background: var(--red); color: #fff; }
.netbar .nb-hub { margin-left: auto; flex-shrink: 0; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.netbar .nb-hub:hover { color: var(--red); }
@media (max-width: 760px) {
  .netbar-inner { padding: 8px 12px; }
  .netbar .nb-label { display: none; }
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 56px;
}
.with-rail {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 40px;
  align-items: start;
}
.with-rail > main { min-width: 0; }
.rail { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 980px) {
  .with-rail { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .rail .ad-mpu-300x600 { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 16px 14px 40px; }
  .rail { flex-direction: column; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-top: 3px solid var(--ink);
  padding-top: 10px;
  margin: 40px 0 18px;
}
.sec-head:first-child { margin-top: 0; }
.sec-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sec-head .seeall {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 5px;
}
.sec-head .seeall:hover { color: var(--red-hover); }
.sec-head.accent { border-top-color: var(--red); }

/* ============================================================
   CATEGORY TAG
   ============================================================ */
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.tag.ink { background: var(--ink); }
.tag.ghost { background: transparent; color: var(--red); padding: 0; }
.tag.state {
  background: var(--wash-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ============================================================
   IMAGE PLACEHOLDER (branded, intentional)
   ============================================================ */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, #1B2740 0%, #0F172A 60%, #131E33 100%);
  overflow: hidden;
  border-radius: var(--radius);
}
.ph::before { /* faint Z watermark */
  content: "Z";
  position: absolute;
  right: -6px; bottom: -26px;
  font-size: 130px;
  font-weight: 900;
  font-style: italic;
  color: rgba(230,57,70,.14);
  line-height: 1;
}
.ph::after { /* subtle texture sheen */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.06), transparent 60%);
}
.ph .ph-label {
  position: absolute;
  left: 12px; bottom: 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(226,232,240,.5);
  z-index: 2;
}
.ph.light {
  background: linear-gradient(135deg, #E7EDF5 0%, #D7E0EC 100%);
}
.ph.light::before { color: rgba(15,23,42,.07); }
.ph.light .ph-label { color: rgba(71,85,105,.7); }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-3-2 { aspect-ratio: 3/2; }
.ratio-1-1 { aspect-ratio: 1/1; }

/* ============================================================
   CARDS
   ============================================================ */
.card { display: flex; flex-direction: column; gap: 9px; }
.card .ph { width: 100%; }
.card .kicker { display: flex; align-items: center; gap: 8px; }
.card h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.18;
  text-wrap: pretty;
}
.card h3 a:hover { color: var(--red); }
.card .dek {
  margin: 0;
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.5;
  text-wrap: pretty;
}
.card .meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--slate-2);
  margin-top: 2px;
}
.card .meta .by { font-weight: 600; color: var(--ink-3); }
.card .meta .sep { color: var(--slate-3); }

.card.sz-lg h3 { font-size: 21px; }
.card.sz-md h3 { font-size: 17px; }
.card.sz-sm h3 { font-size: 15px; }
.card.sz-sm .ph { border-radius: var(--radius-sm); }

/* horizontal card */
.card.row { flex-direction: row; gap: 14px; align-items: flex-start; }
.card.row .ph { width: 116px; flex-shrink: 0; }
.card.row .body { display: flex; flex-direction: column; gap: 5px; }

/* divided list of small rows */
.rowlist { display: flex; flex-direction: column; }
.rowlist .card.row { padding: 14px 0; border-top: 1px solid var(--line); }
.rowlist .card.row:first-child { border-top: 0; padding-top: 0; }

/* grid of cards */
.cardgrid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px) {
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .cols-3 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .card.sz-lg h3 { font-size: 19px; }
}

/* ============================================================
   HERO (home — F2)
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: var(--gap);
  margin-bottom: 8px;
}
.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 430px;
  display: flex;
}
.hero-main .ph { position: absolute; inset: 0; border-radius: 0; }
.hero-main .ph::before { font-size: 240px; bottom: -50px; right: 0; }
.hero-overlay {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 30px 30px 28px;
  width: 100%;
  background: linear-gradient(to top, rgba(7,11,20,.92) 0%, rgba(7,11,20,.7) 45%, transparent 100%);
  color: #fff;
}
.hero-overlay h1 {
  margin: 12px 0 10px;
  font-size: 33px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero-overlay .dek { color: rgba(226,232,240,.82); font-size: 15px; line-height: 1.5; margin: 0; max-width: 56ch; }
.hero-overlay .meta { color: rgba(148,163,184,.95); margin-top: 12px; font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.hero-side { display: flex; flex-direction: column; gap: var(--gap); }
.hero-side .hcard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1;
  min-height: 150px;
  display: flex;
}
.hero-side .hcard .ph { position: absolute; inset: 0; border-radius: 0; }
.hero-side .hcard .ov {
  position: relative; z-index: 3; margin-top: auto; padding: 16px 18px; width: 100%;
  background: linear-gradient(to top, rgba(7,11,20,.92), rgba(7,11,20,.2) 70%, transparent);
  color: #fff;
}
.hero-side .hcard h3 { margin: 7px 0 0; font-size: 16px; font-weight: 800; line-height: 1.18; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 360px; }
  .hero-side { flex-direction: row; }
}
@media (max-width: 640px) {
  .hero-main { min-height: 300px; }
  .hero-overlay { padding: 20px 18px 18px; }
  .hero-overlay h1 { font-size: 25px; }
  .hero-side { flex-direction: column; }
}
/* Real-image heroes (WP front-page state branch, F2): the link is a flex
   container filling the card; the img is the absolute background and the
   overlay flows to the bottom via margin-top:auto (same look as the .ph case). */
.hero-main > .hero-main__link,
.hero-side .hcard > a { position: relative; display: flex; flex: 1; width: 100%; }
.hero-main .hero-img,
/* 2026-07-22: descendant combinator so the fill rule keeps matching once the
   img is wrapped in <picture> by seo-network-fixes (WebP/S3 offload). The old
   direct-child `> a > img` no longer matched (img became a grandchild of <a>),
   dropping the absolute-fill and leaving the picture/overlay side-by-side. */
.hero-side .hcard > a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-main > .hero-main__link .hero-overlay { margin-top: auto; }

/* ============================================================
   TRENDING STRIP (home — F2)
   ============================================================ */
.trending {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 26px 0;
}
.trending-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.trending-head .tr-ico { color: var(--red); display:inline-flex; }
.trending-head .tr-ico svg { width: 16px; height: 16px; }
.trending-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.trending-grid .ti {
  padding: 4px 18px;
  border-left: 1px solid #243049;
  display: flex; gap: 11px; align-items: flex-start;
}
.trending-grid .ti:first-child { border-left: 0; padding-left: 0; }
.trending-grid .ti .num {
  font-size: 19px; font-weight: 900; color: var(--red); line-height: 1; flex-shrink: 0;
  font-style: italic;
}
.trending-grid .ti .tt { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.trending-grid .ti .ts { font-size: 11px; color: var(--slate-3); margin-top: 4px; font-weight: 600; }
@media (max-width: 760px) {
  .trending-grid { grid-template-columns: 1fr; gap: 0; }
  .trending-grid .ti { border-left: 0; border-top: 1px solid #243049; padding: 12px 0; }
  .trending-grid .ti:first-child { padding-top: 0; }
}

/* ============================================================
   MOST POPULAR (numbered rail)
   ============================================================ */
.popular {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.popular h4 {
  margin: 0 0 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
}
.popular .pop-item {
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.popular .pop-item .num {
  font-size: 26px; font-weight: 900; font-style: italic; color: var(--red); line-height: 1;
  flex-shrink: 0; width: 26px;
}
.popular .pop-item .pt { font-size: 14px; font-weight: 700; line-height: 1.25; }
.popular .pop-item .pt:hover { color: var(--red); }

/* ============================================================
   BY STATE MODULE (chips selector — US hub, F3)
   ============================================================ */
.bystate {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bystate-top {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px 14px;
}
.bystate-top h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.bystate-top .sub { color: var(--slate-2); font-size: 13px; font-weight: 600; }
.bystate-top .count {
  margin-left: auto; font-size: 12px; font-weight: 800; color: var(--red);
  letter-spacing: .04em; text-transform: uppercase;
}
.chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 22px 16px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.chips::-webkit-scrollbar { height: 6px; }
.chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.chip {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: var(--t-fast);
}
.chip:hover { border-color: var(--slate-3); color: var(--ink); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.bystate-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.bystate-feature {
  position: relative;
  min-height: 320px;
  display: flex;
}
.bystate-feature .ph { position: absolute; inset: 0; border-radius: 0; }
.bystate-feature .ov {
  position: relative; z-index: 3; margin-top: auto; padding: 26px 26px 24px; width: 100%;
  background: linear-gradient(to top, rgba(7,11,20,.94), rgba(7,11,20,.4) 60%, transparent);
  color: #fff;
}
.bystate-feature .ov .st-name {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(230,57,70,.92); padding: 4px 9px; border-radius: var(--radius-sm);
}
.bystate-feature .ov h3 { margin: 12px 0 8px; font-size: 24px; font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
.bystate-feature .ov .dek { color: rgba(226,232,240,.82); font-size: 14px; margin: 0; line-height: 1.5; }
.bystate-feature .ov .visit {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 12.5px; font-weight: 800; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 13px; border-radius: 999px;
}
.bystate-feature .ov .visit:hover { background: var(--red); border-color: var(--red); }
.bystate-list { padding: 8px 22px; display: flex; flex-direction: column; }
.bystate-list .bl {
  padding: 14px 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.bystate-list .bl:first-child { border-top: 0; }
.bystate-list .bl .blk { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--red); }
.bystate-list .bl .blt { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.bystate-list .bl .blt:hover { color: var(--red); }
.bystate-list .bl .blm { font-size: 11.5px; color: var(--slate-2); }
@media (max-width: 760px) {
  .bystate-body { grid-template-columns: 1fr; }
  .bystate-feature { min-height: 260px; }
}

/* ============================================================
   LATEST FEED (home/category — F2/F3)
   ============================================================ */
.latest .latest-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.latest .latest-item:first-child { border-top: 0; }
.latest .latest-item .ph { border-radius: var(--radius); }
.latest .latest-item .li-body { display: flex; flex-direction: column; gap: 6px; }
.latest .latest-item h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.2; }
.latest .latest-item h3:hover { color: var(--red); }
.latest .latest-item .dek { margin: 0; color: var(--slate); font-size: 13.5px; line-height: 1.5; }
.latest .latest-item .meta { font-size: 12px; color: var(--slate-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.latest .latest-item .meta .stbadge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: var(--wash-2); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 999px;
}
.loadmore {
  display: block; margin: 26px auto 0;
  background: var(--white); border: 1px solid var(--ink); color: var(--ink);
  font-size: 13px; font-weight: 800; letter-spacing: .03em;
  padding: 12px 26px; border-radius: 999px; transition: var(--t);
}
.loadmore:hover { background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .latest .latest-item { grid-template-columns: 110px 1fr; gap: 12px; }
  .latest .latest-item h3 { font-size: 15.5px; }
}

/* local split (lead + side list) */
.local-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gap); }
.local-split > * { min-width: 0; }
@media (max-width: 760px) { .local-split { grid-template-columns: 1fr; } }

/* in-feed native card */
.native-feed {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px;
  padding: 16px; margin: 18px 0;
  background: var(--wash-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: center;
}
.native-feed .nf-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2); }
.native-feed h3 { margin: 6px 0 4px; font-size: 16px; font-weight: 800; line-height: 1.2; }
.native-feed .dek { margin: 0; font-size: 13px; color: var(--slate); }
.native-feed .nf-spons { font-size: 11.5px; color: var(--slate-2); margin-top: 6px; }
@media (max-width: 640px) {
  .native-feed { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
}
/* In-feed AD band: .native-feed is reused only for the card chrome (wash bg,
   border, radius) — its contents are bare ad hosts, NOT a 2-col native card,
   so the 150px|1fr grid must be neutralized. Otherwise the creative lands in
   the 150px track and gets clipped by .adhub-slot-wrapper { overflow:hidden },
   leaving the 1fr column empty (the half-empty 792px box in the bug report).

   Single-host fallback (non-duo): center one creative full-width. */
.native-feed:not(.native-feed--duo):has(.adhub-slot-wrapper),
.native-feed:not(.native-feed--duo):has(.mag-ad-host) {
  display: block;
  text-align: center;
}
.native-feed:not(.native-feed--duo):has(.adhub-slot-wrapper) .adhub-slot-wrapper,
.native-feed:not(.native-feed--duo):has(.mag-ad-host) .mag-ad-host {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* Duo band (mag_ad_feed_duo): two MPU (300x250 / 336x280) side by side on
   desktop, centered; flex-wrap stacks them on narrow viewports. The ~760px
   inner width fits 2x336 + 18px gap. Overrides the .native-feed card grid. */
.native-feed--duo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.native-feed--duo .adhub-slot-wrapper,
.native-feed--duo .mag-ad-host {
  flex: 0 0 auto;
  width: 336px;
  max-width: 100%;
  min-height: 280px;
  margin: 0;
  text-align: center;
}
/* Host nested inside the MGID-prefill wrapper must fill that wrapper, not
   re-impose its own 336px width. */
.native-feed--duo .adhub-slot-wrapper .mag-ad-host {
  width: 100%;
  min-height: 0;
}

/* ============================================================
   STATE QUICK FACTS (weather — state page rail, F2)
   ============================================================ */
.weather-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.weather-card .wc-top { display: flex; align-items: center; justify-content: space-between; }
.weather-card .wc-city { font-size: 13px; font-weight: 700; color: var(--slate-3); letter-spacing: .04em; text-transform: uppercase; }
.weather-card .wc-temp { font-size: 40px; font-weight: 900; letter-spacing: -.03em; }
.weather-card .wc-sun { width: 40px; height: 40px; color: var(--red); }
.weather-card .wc-row { display: flex; gap: 0; margin-top: 14px; border-top: 1px solid #243049; padding-top: 12px; }
.weather-card .wc-day { flex: 1; text-align: center; font-size: 11px; }
.weather-card .wc-day .d { color: var(--slate-3); font-weight: 700; }
.weather-card .wc-day .t { font-weight: 800; margin-top: 4px; font-size: 13px; }

/* ============================================================
   FOOTER (network directory)
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #C7D2E0;
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 30px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 36px;
  border-bottom: 1px solid #1E2A42;
}
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: var(--slate-3); margin: 0; max-width: 40ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #18233B; display: flex; align-items: center; justify-content: center;
  color: #C7D2E0; transition: var(--t);
}
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h5 {
  margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.footer-col a { display: block; padding: 6px 0; font-size: 13.5px; color: var(--slate-3); }
.footer-col a:hover { color: #fff; }

/* states directory */
.footer-states {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px;
  border-bottom: 1px solid #1E2A42;
}
.footer-states h5 {
  margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.footer-states h5 .cnt { color: var(--red); }
.states-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px 18px;
}
.states-grid a { font-size: 12.5px; color: var(--slate-3); padding: 4px 0; }
.states-grid a:hover { color: var(--red); }
.states-grid a.cur { color: #fff; font-weight: 700; }
/* INACTIVE state in footer directory: muted, non-clickable, "Coming soon" badge. */
.states-grid .state--soon {
  font-size: 12.5px; padding: 4px 0; color: var(--slate-2); opacity: .6;
  display: inline-flex; align-items: center; gap: 6px; cursor: default;
}
.states-grid .state--soon .soon-badge {
  font-size: 8.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--slate-2); border: 1px solid #2A3854; border-radius: 3px;
  padding: 1px 4px; line-height: 1.3; white-space: nowrap;
}

.footer-intl {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border-bottom: 1px solid #1E2A42;
}
.footer-intl .il { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-intl a {
  font-size: 13px; color: var(--slate-3); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.footer-intl a:hover { color: #fff; }
.footer-intl a .fl { font-size: 11px; color: var(--red); font-weight: 800; }

.footer-legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px 40px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--slate-2);
}
.footer-legal .fl-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal .fl-links a:hover { color: #fff; }
.footer-legal .sp { margin-left: auto; }
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .states-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 24px; }
  .footer-states, .footer-intl, .footer-legal { padding-inline: 16px; }
  .states-grid { grid-template-columns: repeat(2,1fr); }
  .footer-legal .sp { margin-left: 0; width: 100%; }
}

/* ============================================================
   STATE SELECTOR OVERLAY (built by newz.js)
   ============================================================ */
.state-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(7,11,20,.6);
  padding: 60px 20px;
}
.state-overlay.open { display: flex; }
.state-panel {
  background: #fff;
  width: 760px; max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-height: 78vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.state-panel .sp-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.state-panel .sp-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.state-panel .sp-head .close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--slate);
  font-size: 16px;
}
.state-panel .sp-head .close:hover { background: var(--wash-2); color: var(--ink); }
.state-search {
  margin: 16px 24px 4px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}
.state-search:focus-within { border-color: var(--red); }
.state-search svg { width: 17px; height: 17px; color: var(--slate-2); }
.state-search input { border: 0; outline: 0; flex: 1; font-size: 14px; }
.state-grid {
  padding: 14px 24px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
}
.state-grid a {
  padding: 10px 12px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.state-grid a:hover { background: var(--red-wash); color: var(--red); }
.state-grid a.cur { background: var(--ink); color: #fff; }
.state-grid a .ar { opacity: 0; font-size: 12px; }
.state-grid a:hover .ar { opacity: 1; }
.state-grid .empty { grid-column: 1/-1; color: var(--slate-2); font-size: 13px; padding: 20px; text-align: center; }
/* INACTIVE state in the switcher overlay: non-clickable label + small muted
   "Coming soon" badge. Same cell footprint as the <a> so the grid stays even. */
.state-grid .state--soon {
  padding: 10px 12px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
  color: var(--slate-2); display: flex; align-items: center; justify-content: space-between;
  gap: 8px; cursor: default; opacity: .72;
}
.state-grid .state--soon .soon-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--slate-2); background: var(--wash-2); border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 6px; line-height: 1.3; white-space: nowrap; flex-shrink: 0;
}
.sp-hub {
  padding: 16px 24px; border-top: 1px solid var(--line); background: var(--wash);
}
.sp-hub a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; color: var(--red); }
@media (max-width: 640px) {
  .state-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 520px) {
  .state-grid { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   MOBILE NAV DRAWER (.mnav / .sheet)
   ============================================================ */
.mnav {
  position: fixed; inset: 0; z-index: 290; display: none;
}
.mnav.open { display: block; }
.mnav .scrim { position: absolute; inset: 0; background: rgba(7,11,20,.55); }
.mnav .sheet {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 290px; max-width: 84%;
  background: var(--ink); color: #fff;
  padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(-100%);
  transition: transform var(--t);
  overflow-y: auto;
}
.mnav.open .sheet { transform: translateX(0); }
.mnav .sheet .mn-top { display: flex; align-items: center; margin-bottom: 14px; }
.mnav .sheet .mn-top img { height: 26px; }
.mnav .sheet .mn-top .close { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 20px; }
/* mag_primary_nav() prints <ul><li><a>; flatten it into the sheet's link list. */
.mnav .sheet ul { margin: 0; padding: 0; list-style: none; display: contents; }
.mnav .sheet li { margin: 0; padding: 0; list-style: none; display: block; }
.mnav .sheet a { display: block; padding: 12px 8px; font-size: 16px; font-weight: 700; border-bottom: 1px solid #1E2A42; }
.mnav .sheet a.active,
.mnav .sheet a[aria-current="page"] { color: var(--red); }
.mnav .sheet .mn-hub { margin-top: auto; color: var(--red); font-weight: 800; }

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

/* ============================================================
   IN-CONTENT AD (article pages — prototype placeholder)
   ============================================================ */
.ad-incontent { width: 336px; max-width: 100%; height: 280px; margin: 28px auto; }
.ad-incontent-300 { width: 300px; height: 250px; margin: 28px auto; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--slate-2); margin-bottom: 14px;
}
.crumb a { font-weight: 600; }
.crumb a:hover { color: var(--red); }
.crumb .sep { color: var(--slate-3); }
.crumb .here { color: var(--ink); font-weight: 700; }
/* Yoast breadcrumb (mag_breadcrumb wraps in .mag-breadcrumb) inherits crumb look */
.mag-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--slate-2); margin-bottom: 14px;
}
.mag-breadcrumb a { font-weight: 600; }
.mag-breadcrumb a:hover { color: var(--red); }

/* ============================================================
   CATEGORY HEADER (category — F2)
   ============================================================ */
.cat-head {
  display: flex; align-items: flex-end; gap: 16px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 14px; margin-bottom: 24px;
}
.cat-head h1 {
  margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -.03em; color: var(--red);
  text-transform: uppercase;
}
.cat-head .ch-sub { color: var(--slate); font-size: 14px; font-weight: 600; padding-bottom: 7px; max-width: 48ch; text-wrap: pretty; }
.cat-head .ch-count { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--slate-2); letter-spacing: .04em; text-transform: uppercase; padding-bottom: 9px; }
@media (max-width: 640px) {
  .cat-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cat-head h1 { font-size: 30px; }
  .cat-head .ch-count { margin-left: 0; }
}

/* category lead */
.cat-lead {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap);
  margin-bottom: 30px;
}
.cat-lead > * { min-width: 0; }
.cat-lead .feat { display: flex; flex-direction: column; gap: 11px; }
.cat-lead .feat .ph { border-radius: var(--radius-lg); }
.cat-lead .feat h2 { margin: 0; font-size: 27px; font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
.cat-lead .feat h2 a:hover { color: var(--red); }
.cat-lead .feat .dek { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.55; }
.cat-lead .side { display: flex; flex-direction: column; }
@media (max-width: 760px) {
  .cat-lead { grid-template-columns: 1fr; }
  .cat-lead .feat h2 { font-size: 22px; }
}

/* pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 36px 0 0; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font-size: 13.5px; font-weight: 700; color: var(--ink-3);
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .cur,
.pager .current { background: var(--red); border-color: var(--red); color: #fff; }
.pager .nav-a { font-weight: 800; }
.pager .gap,
.pager .dots { border: 0; background: transparent; }

/* ============================================================
   ARTICLE PAGE (single — F1)
   ============================================================ */
.article-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; align-items: start;
}
@media (max-width: 980px) { .article-grid { grid-template-columns: minmax(0,1fr); } }

.article { max-width: 720px; }
.article-header { margin-bottom: 18px; }
.article-header .a-cat {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.article-header h1 {
  margin: 0 0 14px; font-size: 40px; font-weight: 900; line-height: 1.06; letter-spacing: -.03em;
  text-wrap: balance;
}
.article-header .a-dek { margin: 0; font-size: 19px; line-height: 1.5; color: var(--slate); font-weight: 500; text-wrap: pretty; }
@media (max-width: 640px) {
  .article-header h1 { font-size: 28px; }
  .article-header .a-dek { font-size: 16px; }
}

.byline {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.byline .av {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px;
}
.byline .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.byline .bl-meta { font-size: 13px; line-height: 1.5; }
.byline .bl-meta .nm { font-weight: 700; color: var(--ink); }
.byline .bl-meta .dt { color: var(--slate-2); }
.byline .share { margin-left: auto; display: flex; gap: 8px; }
.byline .share a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--slate); transition: var(--t);
}
.byline .share a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.byline .share svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .byline .share { display: none; } }

.article-hero { margin: 0; }
.article-hero .ph,
.article-hero img { border-radius: var(--radius-lg); width: 100%; }
.figcap { font-size: 12px; color: var(--slate-2); margin: 8px 2px 0; line-height: 1.4; }

.article-body { margin-top: 26px; font-size: 18px; line-height: 1.72; color: #243042; }
.article-body > p { margin: 0 0 22px; text-wrap: pretty; }
.article-body > p:first-of-type::first-letter {
  float: left; font-size: 58px; line-height: .82; font-weight: 900; color: var(--red);
  padding: 4px 10px 0 0;
}
.article-body h2 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 36px 0 14px; line-height: 1.15; }
.article-body h3 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 28px 0 10px; }
.article-body a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--red-hover); }
.article-body ul { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body figure { margin: 28px 0; }
.article-body blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red);
  font-size: 23px; font-weight: 700; line-height: 1.35; color: var(--ink); letter-spacing: -.01em;
}
.article-body strong { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .article-body { font-size: 17px; }
  .article-body blockquote { font-size: 20px; }
}

/* tags row */
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.tags-row a {
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  background: var(--wash-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}
.tags-row a:hover { background: var(--red-wash); border-color: var(--red); color: var(--red); }

/* author box */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; margin: 30px 0;
}
.author-box .av { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: linear-gradient(135deg, var(--red), #B91C2C); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.author-box .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-box .ab-name { font-weight: 800; font-size: 15px; }
.author-box .ab-name a:hover { color: var(--red); }
.author-box .ab-role { font-size: 12.5px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 8px; }
.author-box .ab-bio { font-size: 13.5px; color: var(--slate); line-height: 1.55; margin: 0; }

/* further reading */
.further { margin-top: 36px; }
.further h2.sec-h { margin: 0; }
@media (max-width: 640px) {
  .article-grid { gap: 28px; }
}

/* ============================================================
   AD HOST BRIDGE — production only
   ------------------------------------------------------------
   In the prototype each ad was a styled .ad placeholder box. In
   production the AdHub bundle fills a bare <div id="adhub-...">
   emitted by mag_ad_slot() (inc/ad-slots.php) — class .mag-ad-host.
   These rules give that host the SAME footprint the prototype
   reserved, so CLS is absorbed before the creative lands.
   The min-heights mirror inc/ad-slot-map.php.
   ============================================================ */
.mag-ad-host { display: block; margin-inline: auto; max-width: 100%; }

/* Billboard above masthead (leaderboard-top): 970x250 / 320x100. */
.billboard-wrap .mag-ad-host { width: 970px; max-width: 100%; min-height: 250px; }
@media (max-width: 760px) {
  .billboard-wrap .mag-ad-host { width: 320px; min-height: 100px; }
}

/* In-content (in-content-1/2/3): 336x280 / 300x250. Centered in article body. */
.mag-ad-wrap-center { margin: 28px 0; text-align: center; }
.mag-ad-wrap-center .mag-ad-host { width: 336px; max-width: 100%; min-height: 280px; }

/* Sidebar rail MPU (sidebar-1-single): 300x600 (sticky) / 300x250. */
.rail .mag-ad-host { width: 300px; max-width: 100%; min-height: 600px; }
@media (max-width: 980px) {
  .rail .mag-ad-host { min-height: 250px; }
}

/* Mobile anchor (anchor-bottom): 320x50 / 320x100. */
.mobile-anchor .mag-ad-host { width: 320px; min-height: 50px; }

/* Native AdHub recommendation widget host (single bottom). */
.mag-native { margin: 30px 0; }
.mag-native #adhub-native-widget { min-height: 280px; }

/* WP-generated content figures inherit the design article-body rhythm. */
.article-body img { border-radius: var(--radius); }
.article-body .wp-caption-text,
.article-body figcaption { font-size: 12px; color: var(--slate-2); margin: 8px 2px 0; line-height: 1.4; }
