/* The Continental Patriot — premium dense European gazette
   Patriot Blue / Liberty Gold / Paper White / Iron Gray.
   Round 5: tasteful 3D / depth — layered cards, glass chrome, hero vignette.
   NOT cartoon, NOT crypto-neon. QC: overflow-x hidden, mobile Support safe. */

:root {
  --bg: #0B2D5B;
  --bg-2: #0a254c;
  --panel: #0f335f;
  --line: #1e3f6e;
  --line-soft: rgba(212, 175, 55, 0.22);
  --ink: #F5F3EA;
  --muted: #b8c0cc;
  --red: #D4AF37; /* Liberty Gold (accent token kept as --red for class compat) */
  --red-d: #b8942c;
  --gold: #D4AF37;
  --gold-d: #b8942c;
  --gold-hi: #e8c85a;
  --paper: #F5F3EA;
  --iron: #1A1A1A;
  --ad: #0a254c;
  --ad-ink: #8a93a3;
  --max: 1280px;
  --gutter: 10px;
  --sans: "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  /* Depth tokens — gazette emboss, not neon glow */
  --shadow-card: 0 1px 0 rgba(212, 175, 55, 0.14),
                 0 2px 3px rgba(0, 0, 0, 0.22),
                 0 8px 18px rgba(0, 0, 0, 0.32),
                 0 18px 40px rgba(0, 0, 0, 0.22);
  --shadow-card-hover: 0 0 0 1px rgba(212, 175, 55, 0.42),
                       0 4px 8px rgba(0, 0, 0, 0.28),
                       0 16px 36px rgba(0, 0, 0, 0.48),
                       0 28px 56px rgba(0, 0, 0, 0.28);
  --shadow-hero: 0 1px 0 rgba(212, 175, 55, 0.22),
                 0 14px 36px rgba(0, 0, 0, 0.5),
                 0 28px 64px rgba(0, 0, 0, 0.32);
  --ease-lift: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.25px;
  line-height: 1.4;
  letter-spacing: 0.004em;
  min-height: 100vh;
  /* block, not flex: sticky chrome inside a flex body collapses to 0 */
  display: block;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; background: #071428; }

/* Whole header chrome sticks as one unit — glass / frosted depth */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(4, 18, 42, 0.88);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 0;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.38),
    inset 0 -1px 0 rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.site-chrome header { position: relative; z-index: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-chrome { background: #04122a; }
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.022em;
}
p { margin: 0 0 1em; }
button, input { font-family: var(--sans); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #0B2D5B;
  padding: 8px 14px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== TOP UTILITY (icons-first, tight) ===== */
.topbar {
  background: transparent;
  border-bottom: 1px solid rgba(30, 63, 110, 0.65);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar button, .topbar a {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.topbar button:hover, .topbar a:hover { color: #fff; }
.topbar svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.desk-status {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.desk-status::before {
  content: "·";
  margin-right: 10px;
  opacity: 0.6;
}

/* ===== MASTHEAD (compact newspaper lockup) ===== */
.masthead {
  background: linear-gradient(180deg, rgba(12, 50, 102, 0.55) 0%, rgba(11, 45, 91, 0.35) 100%);
  text-align: center;
  padding: 6px 14px 5px;
  border-bottom: 2px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold);
  background: #061a38;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.wordmark {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.72rem);
  letter-spacing: 0.03em;
  line-height: 1.0;
  color: var(--ink);
  text-transform: none;
}
.wordmark .wm-the {
  display: block;
  font-size: 0.38em;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0;
  text-transform: uppercase;
}
.wordmark .wm-continental {
  display: block;
  color: var(--ink);
  font-weight: 700;
}
.wordmark .wm-patriot {
  display: block;
  color: var(--gold) !important;
  font-size: 0.9em;
  letter-spacing: 0.14em;
  margin-top: 0;
  text-transform: uppercase;
}
.wordmark .wm-u {
  position: relative;
  display: inline-block;
}
.wordmark .wm-u::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--gold);
  margin-top: 2px;
  width: 100%;
}
.tagline {
  display: block;
  margin-top: 1px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-style: normal;
  opacity: 0.94;
}
.pillars {
  display: block;
  margin-top: 1px;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== NAV (sticky, compact) ===== */
.nav-bar {
  background: rgba(3, 14, 34, 0.55);
  border-top: 0;
  border-bottom: 1px solid var(--gold);
  position: relative;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.nav-inner {
  max-width: min(var(--max), 100%);
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  min-width: 0;
  box-sizing: border-box;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  width: 38px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  background: #fff;
  margin: 3px auto;
}
.site-nav { flex: 1; overflow: hidden; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: center;
}
.site-nav a {
  display: block;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 11px 9px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--gold);
  border-bottom-color: rgba(212, 175, 55, 0.45);
}
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.btn-support {
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 42%, var(--gold-d) 100%);
  color: #0B2D5B !important;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 3px 8px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(184, 148, 44, 0.45);
  transition: transform 0.18s var(--ease-lift), box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-support:hover {
  background: linear-gradient(180deg, #f0d470 0%, #e0c04a 45%, var(--gold) 100%);
  color: #061a38 !important;
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(212, 175, 55, 0.55);
}
.btn-support:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-brand {
  display: none; /* shown when scrolled — keeps ATF nav from forcing >100vw */
  align-items: center;
  gap: 7px;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  color: #fff !important;
  text-decoration: none;
  margin-right: 2px;
}
.nav-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
  background: #061a38;
  flex-shrink: 0;
}
.nav-brand-text {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(160px, 36vw);
}

/* ===== BREAKING (ticker rail) ===== */
.breaking {
  background: linear-gradient(180deg, #0e3a72 0%, #0B2D5B 55%, #071f42 100%);
  border-bottom: 1px solid #2a2a2a;
  overflow: hidden;
  max-width: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.28);
}
.breaking-inner {
  max-width: min(var(--max), 100%);
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  font-size: 11.5px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.breaking-label {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-d));
  color: #0B2D5B;
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  flex-shrink: 0;
  border-radius: 1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.4);
}
.breaking-track {
  display: flex;
  gap: 0;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.breaking-track-inner {
  display: inline-flex;
  align-items: center;
  animation: ticker-scroll 48s linear infinite;
}
.breaking-track:hover .breaking-track-inner { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.breaking-track a { color: #eee; font-weight: 600; }
.breaking-track a:hover { color: var(--gold); }
.breaking-dot {
  color: var(--gold);
  margin: 0 10px;
  font-weight: 800;
}
.breaking-all {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.breaking-all:hover { color: #fff; }

/* ===== PAGE SHELL ===== */
.page {
  flex: 1;
  max-width: min(var(--max), 100%);
  width: 100%;
  margin: 0 auto;
  padding: 6px 12px 36px;
  overflow-x: hidden;
  min-width: 0;
  box-sizing: border-box;
}
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: var(--gutter);
  align-items: start;
}

/* Hero + 2x2 — dominate ATF with perspective depth */
.hero-row {
  display: grid;
  grid-template-columns: 1.58fr 1fr;
  gap: var(--gutter);
  perspective: 1400px;
  transform-style: preserve-3d;
}
.tile {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  overflow: hidden;
  background: #000;
  color: #fff;
  min-height: 0;
  border: 1px solid rgba(212, 175, 55, 0.16);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-hero);
}
a.tile:hover,
a.tile:hover h2,
a.tile:hover h3 { color: #fff; }
.tile img,
.tile-shade,
.tile-body { grid-area: 1 / 1; }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04) translateZ(0);
  transition: transform 0.65s var(--ease-lift);
  will-change: transform;
}
.tile:hover img { transform: scale(1.09) translate3d(0, -4px, 0); }
.tile, .card {
  transition: transform 0.28s var(--ease-lift), box-shadow 0.28s ease, border-color 0.28s ease;
}
a.tile:hover, .card:hover {
  transform: translateY(-6px) translateZ(18px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(212, 175, 55, 0.4);
  z-index: 3;
}
.tile-shade {
  background:
    radial-gradient(ellipse 85% 65% at 50% 28%, transparent 15%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.08) 18%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}
.tile-body {
  position: relative;
  z-index: 2;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tile h2, .tile h3, .tile .lede,
.card h3, .list-item h3,
.article-title, .article-wrap h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.tile--hero {
  min-height: 420px;
  isolation: isolate;
}
.tile--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.45),
    inset 0 -40px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(212, 175, 55, 0.18);
}
.kicker {
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-family: var(--sans);
}
.kicker.plain { display: inline-block; }
.tile h2, .tile h3 {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.024em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65), 0 2px 10px rgba(0,0,0,0.4);
}
.tile--hero h2 {
  font-size: clamp(1.62rem, 2.55vw, 2.38rem);
  max-width: 22ch;
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.75), 0 8px 24px rgba(0,0,0,0.55);
}
.tile .lede {
  margin: 7px 0 0;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
  color: #e8e4d8;
  max-width: 48ch;
  font-family: var(--sans);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.meta {
  margin-top: 7px;
  font-size: 11px;
  color: #b5b5b5;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gutter);
}
.quad .tile { min-height: 220px; }
.quad .tile img { object-position: center 32%; min-height: 220px; }
.quad h3 { font-size: 0.92rem; line-height: 1.18; }

/* Card rows — denser portal with layered depth + gold edge */
.cards {
  display: grid;
  gap: var(--gutter);
  margin-top: 8px;
  perspective: 1100px;
  transform-style: preserve-3d;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.card {
  background: linear-gradient(165deg, #12386a 0%, var(--bg-2) 48%, #081c3a 100%);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-top-color: rgba(212, 175, 55, 0.42);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-card);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
  z-index: 2;
  pointer-events: none;
}
.card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: center 40%;
  background: #071428;
  transition: transform 0.45s var(--ease-lift);
  display: block;
}
.card:hover img { transform: scale(1.035); }
.card-body { padding: 8px 10px 10px; position: relative; z-index: 1; }
.card h3 { font-size: 0.9rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.card .kicker { margin-bottom: 3px; font-size: 10px; }
.card .meta { margin-top: 4px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 7px;
}
.section-head h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.section-head hr {
  flex: 1;
  border: 0;
  border-top: 2px solid var(--gold);
  margin: 0;
  opacity: 0.85;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: var(--gutter); }
.sidebar-sticky {
  position: sticky;
  top: 52px;
  z-index: 5;
}
.most-read {
  background: linear-gradient(180deg, #143968 0%, var(--panel) 100%);
  padding: 12px 12px 6px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-card);
}
.most-read h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink);
}
.most-read ol { list-style: none; margin: 0; padding: 0; }
.most-read li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.most-read li:first-of-type { border-top: 0; padding-top: 4px; }
.num {
  background: var(--gold);
  color: #0B2D5B;
  font-weight: 800;
  font-size: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--sans);
}
.most-read a {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.28;
  font-family: var(--display);
  letter-spacing: -0.01em;
}
.most-read a:hover { color: var(--gold); }
.most-read .meta { margin-top: 3px; font-size: 10.5px; }
.picks {
  background: linear-gradient(180deg, #143968 0%, var(--panel) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 12px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-card);
}
.picks h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pick {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pick:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.pick img { width: 80px; height: 58px; object-fit: cover; }
.pick h3 { font-size: 0.82rem; line-height: 1.25; }

/* Ads */
.ad-slot {
  background: var(--ad);
  border: 1px solid #2a3a55;
  text-align: center;
  color: var(--ad-ink);
}
.ad-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 0 0;
  color: #6a7588;
}
.ad-slot__box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 90px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a93a3;
  font-size: 15px;
  background: #0a254c;
}
.ad-slot__faux {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  padding: 8px;
  color: #8a93a3;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ad-slot__box ins.adsbygoogle {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
}
.ad-slot--sidebar .ad-slot__box { min-height: 250px; }
.ad-slot--sidebar.ad-slot--tall .ad-slot__box { min-height: 600px; }
.ad-slot--banner { margin-top: 10px; }
.ad-slot--banner .ad-slot__box { min-height: 90px; }
.ad-slot--leaderboard {
  max-width: var(--max);
  margin: 4px auto 0;
  width: calc(100% - 24px);
}
.ad-slot--leaderboard .ad-label { padding: 2px 0 0; }
.ad-slot--leaderboard .ad-slot__box { min-height: 90px; }
.ad-rail--below-hero {
  margin: 8px 0 2px;
  padding: 0;
}
.ad-rail--below-hero .ad-slot--leaderboard {
  margin: 0;
  width: 100%;
  max-width: none;
}
.ad-size--mob { display: none; }
.ad-size--desk { display: inline; }
.ad-slot--billboard .ad-slot__box { min-height: 250px; }
.ad-slot--infeed { margin: 12px 0 6px; }
.ad-slot--infeed .ad-slot__box { min-height: 90px; }
.ad-slot--inarticle { margin: 16px 0 20px; }
.ad-slot--inarticle .ad-slot__box { min-height: 110px; }
.ad-slot--endarticle { margin: 24px 0 6px; }
.ad-slot--endarticle .ad-slot__box { min-height: 250px; }
.ad-rail {
  width: 100%;
  background: transparent;
  padding: 0 0 2px;
}
.ad-faux-brand { font-size: 14px; color: #7a8496; letter-spacing: 0.08em; }
.ad-faux-sub { font-size: 10px; font-weight: 500; margin-top: 5px; letter-spacing: 0.04em; }

.ad-slot--mobile-anchor {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}
.ad-slot--mobile-anchor .ad-slot__box { min-height: 50px; font-size: 12px; }
.ad-slot--mobile-anchor .ad-dismiss {
  position: absolute;
  top: 4px;
  right: 8px;
  background: transparent;
  border: 0;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
@media (max-width: 900px) {
  .ad-slot--mobile-anchor:not(.is-dismissed) { display: block; }
  /* Clear sticky anchor even when AdSense empty — keep has-* class logic */
  body.has-ad-anchor,
  body.has-mobile-ad {
    padding-bottom: 120px;
  }
  body.has-ad-anchor .page,
  body.has-mobile-ad .page {
    padding-bottom: 130px;
  }
  body.has-ad-anchor .article-wrap,
  body.has-mobile-ad .article-wrap,
  body.has-ad-anchor .article-body,
  body.has-mobile-ad .article-body {
    padding-bottom: 110px;
  }
  body.has-ad-anchor .cookie-bar.is-visible,
  body.has-mobile-ad .cookie-bar.is-visible { bottom: 56px; }
}

/* Section index */
.section-lead {
  margin: 2px 0 14px;
  color: var(--muted);
  max-width: 62ch;
  font-size: 0.95rem;
}
.list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}
.list-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.list-item img { width: 148px; height: 100px; object-fit: cover; }
.list-item h3 { font-size: 1rem; margin-top: 2px; line-height: 1.2; }
.list-item .card-body { padding: 8px 10px 10px 0; }

/* Article */
.layout-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 22px;
  align-items: start;
}
.article-wrap { max-width: 760px; }
.article-title {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 5px 0 12px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #0B2D5B;
  font-weight: 800;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.article-hero img { width: 100%; max-height: 400px; object-fit: cover; }
.caption {
  font-size: 11.5px;
  color: var(--muted);
  margin: 7px 0 16px;
  line-height: 1.4;
}
.caption a { color: var(--muted); text-decoration: underline; }
.article-body {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.68;
  letter-spacing: -0.005em;
  color: var(--iron);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}
.article-body p,
.article-body li,
.article-body blockquote {
  color: var(--iron);
}
.article-body p:first-of-type {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--iron);
  font-weight: 500;
}
.article-body h2 {
  font-family: var(--sans);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 1.4em 0 0.5em;
  color: var(--iron);
}
.article-body a { color: #0B2D5B; text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--gold-d); }
.article-body code {
  font-size: 0.88em;
  background: #ebe6d8;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--iron);
}
.article-body blockquote {
  margin: 1.05em 0;
  padding: 0.15em 0 0.15em 1em;
  border-left: 3px solid var(--gold);
  color: #2a2a2a;
  font-style: italic;
}
.related {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 12px;
}
.related h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.related-item {
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.related-item img { width: 68px; height: 50px; object-fit: cover; }
.related-item a { font-weight: 700; font-size: 0.86rem; line-height: 1.25; }

/* Prose pages */
.prose {
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px 30px 36px;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.prose h1 { font-size: 1.9rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.prose h2 { font-size: 1.1rem; margin: 20px 0 7px; }
.prose ul { padding-left: 1.2em; color: var(--iron); }
.prose a { color: #0B2D5B; }
.prose a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: #020810;
  border-top: 3px solid var(--gold);
  margin-top: auto;
  color: #c8c8c8;
  font-size: 12.5px;
}
.footer-promo {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 14px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.footer-promo h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--gold);
}
.footer-promo p { color: #9aa3b0; font-size: 12.5px; margin: 0; line-height: 1.4; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid #1a2438;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
}
.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}
.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a { color: #ccc; }
.footer-nav a:hover { color: var(--gold); }

/* Overlays */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay.is-open { display: flex; }
.panel {
  background: #0a1a34;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  color: #fff;
  max-width: 440px;
  width: 100%;
  padding: 22px;
  position: relative;
}
.panel h2 { margin-bottom: 7px; }
.panel p { color: #bbb; }
.panel-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.search-input {
  width: 100%;
  background: #04122a;
  border: 1px solid var(--line);
  color: #fff;
  padding: 10px 12px;
  font-size: 16px;
  margin: 8px 0 12px;
}
.search-results { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.search-results li { border-top: 1px solid #1e3f6e; }
.search-results a { display: block; padding: 10px 0; font-weight: 700; }
.search-cat {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.btn-ghost, .btn-red {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  padding: 8px 13px;
}
.btn-red { background: var(--gold); color: #0B2D5B; }
.btn-red:hover { background: #e0c04a; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #445; }

/* Cookie bar — compact, not eating the fold */
.cookie-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #04122a;
  border-top: 2px solid var(--gold);
  z-index: 70;
  padding: 10px 14px;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.4);
}
.cookie-bar.is-visible { display: block; }
.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-bar p { margin: 0; font-size: 12px; color: #c8c8c8; max-width: 68ch; line-height: 1.4; }
.cookie-bar a { color: var(--gold); }
.cookie-actions { display: flex; gap: 7px; }

/* Mid breakpoints */
@media (max-width: 1100px) {
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .stage, .layout-article { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .ad-slot--sidebar { grid-column: span 1; }
  .tile--hero { min-height: 360px; }
}

/* ===== PAPER WELLS (gazette) ===== */
.article-wrap, .prose, .list-grid .list-item {
  background: var(--paper);
  color: var(--iron);
}
.list-grid .list-item {
  border-color: #e0dccf;
}
.article-wrap .article-title,
.article-wrap h1, .article-wrap h2, .article-wrap h3,
.prose h1, .prose h2, .prose h3 {
  color: var(--iron);
}
.article-wrap .byline, .article-wrap .meta, .article-wrap .caption,
.prose .meta, .prose p, .prose li, .prose ul {
  color: #2a2a2a;
}
.article-wrap .kicker, .prose .kicker { color: var(--gold-d); }
.article-body,
.article-body p,
.article-body li,
.article-body blockquote,
.prose p,
.prose li {
  color: #1A1A1A;
}
.article-body p:first-of-type { color: #1A1A1A; }
.article-body h2 { color: #1A1A1A; }
.article-body a, .prose a { color: #0B2D5B; }
.article-body a:hover, .prose a:hover { color: #D4AF37; }
.article-wrap {
  padding: 26px 28px 34px;
  border: 1px solid #ddd8c8;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.prose {
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 30px 28px 38px;
  border: 1px solid #ddd8c8;
  background: var(--paper);
  color: #1A1A1A;
}
.avatar {
  background: var(--bg) !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
}

/* ===== DYNAMISM ===== */
.updated-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(11, 45, 91, 0.5);
  width: fit-content;
}
.updated-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: chip-pulse 2.4s ease-in-out infinite;
}
@keyframes chip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}
.meta .updated-chip { margin-top: 0; margin-left: 6px; vertical-align: middle; }
.tile .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }

/* Compact on scroll — NEVER hide masthead, nav, logo, or Support */
body.is-scrolled .masthead {
  padding: 4px 12px 3px;
  max-height: none;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  border-bottom: 1px solid var(--gold);
}
body.is-scrolled .brand-mark { width: 34px; height: 34px; }
body.is-scrolled .wordmark { font-size: clamp(1rem, 2.2vw, 1.35rem); }
body.is-scrolled .tagline,
body.is-scrolled .pillars { display: none; }
body.is-scrolled .nav-brand { display: inline-flex; }
body.is-scrolled .nav-bar {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border-bottom-width: 2px;
  background: rgba(3, 14, 34, 0.92);
}
body.is-scrolled .site-chrome {
  background: rgba(3, 12, 28, 0.94);
}
body.is-scrolled .nav-inner { min-height: 38px; }
.masthead, .brand-mark, .wordmark, .nav-bar, .nav-brand {
  transition: padding 0.2s ease, max-height 0.2s ease, opacity 0.2s ease,
    width 0.2s ease, height 0.2s ease, font-size 0.2s ease, box-shadow 0.2s ease;
}

/* Deeper ATF hero vignette + soft parallax-feel (CSS only) */
.tile--hero .tile-shade {
  background:
    radial-gradient(ellipse 95% 70% at 50% 30%, transparent 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(
      185deg,
      rgba(4, 18, 42, 0.18) 8%,
      rgba(4, 18, 42, 0.5) 42%,
      rgba(0, 0, 0, 0.96) 100%
    );
}
.tile--hero img {
  transform: scale(1.07) translateZ(0);
}
.tile--hero:hover img {
  transform: scale(1.13) translate3d(0, -8px, 0);
}
.tile--hero .tile-body { padding: 18px 18px 20px; }
.tile--hero .kicker {
  background: rgba(11, 45, 91, 0.88);
  display: inline-block;
  padding: 3px 9px;
  border-left: 3px solid var(--gold);
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Mobile ≤900px */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 40px;
    background: #04122a;
    border-bottom: 1px solid var(--gold);
    z-index: 60;
  }
  .nav-bar { position: relative; }
  .nav-inner { position: relative; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a {
    padding: 11px 14px;
    border-top: 1px solid #1e3f6e;
    border-bottom: 0;
  }
  /* Short Support CTA — avoid clipping at ~390px */
  .btn-support {
    font-size: 0;
    padding: 7px 8px;
    letter-spacing: 0;
    line-height: 0;
    max-width: 5.6rem;
  }
  .btn-support::after {
    content: "SUPPORT";
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .topbar-label { display: none; }
  .topbar-left span:nth-child(2) { display: none; }
  .desk-status { display: none; }
  .topbar-inner { padding: 2px 10px; gap: 6px; min-height: 24px; }
  .topbar-right { gap: 8px; }

  /* Compact default masthead so fold isn't eaten (scrolled compact kept) */
  .masthead { padding: 3px 10px 2px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-lockup { gap: 6px; }
  .wordmark { font-size: clamp(0.92rem, 4.6vw, 1.22rem); }
  .tagline { font-size: 0.62rem; }
  .pillars { font-size: 0.48rem; letter-spacing: 0.1em; }
  .nav-brand-text { display: none; }

  .breaking-inner { min-height: 24px; font-size: 11px; }
  .breaking-label { padding: 2px 5px; font-size: 9px; }
  .breaking-all { display: none; }
  .breaking-track-inner { animation-duration: 60s; }

  .ad-size--desk { display: none !important; }
  .ad-size--mob { display: inline !important; }
  .ad-slot--leaderboard .ad-slot__box {
    min-height: 50px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .ad-slot--infeed .ad-slot__box {
    min-height: 250px;
    font-size: 13px;
  }
  .ad-slot--banner .ad-slot__box { min-height: 50px; font-size: 12px; }

  .page { padding: 5px 8px 32px; }
  .hero-row { grid-template-columns: 1fr; }
  .tile--hero { min-height: 270px; }
  .tile--hero .tile-body { padding: 12px 12px 14px; }
  .tile--hero h2 { font-size: 1.28rem; max-width: none; }
  .quad { grid-template-rows: auto; }
  .quad .tile { min-height: 200px; }
  .quad .tile img { min-height: 200px; object-position: center 28%; }
  .footer-promo { grid-template-columns: 1fr 1fr; }
  .list-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards-5, .cards-4 { grid-template-columns: 1fr 1fr; }
  .card img { height: 110px; }
  .list-item { grid-template-columns: 1fr; }
  .list-item img { width: 100%; height: 150px; }
  .footer-promo { grid-template-columns: 1fr; }
  .prose { padding: 16px 14px 26px; }
  .tile--hero h2 { font-size: 1.22rem; }
  .article-wrap { padding: 18px 16px 26px; }
  .cookie-bar p { font-size: 11.5px; }
}


/* ===== ALWAYS-VISIBLE AD PLACEHOLDERS (not mobile-anchor) ===== */
.ad-slot:not(.ad-slot--mobile-anchor) { display: block !important; visibility: visible !important; }
.ad-slot__box {
  background: #0a254c !important;
  border: 1px dashed rgba(212,175,55,0.55) !important;
  color: #b8c0cc !important;
  min-height: 90px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.ad-slot--sidebar .ad-slot__box { min-height: 250px; }
.ad-slot--sidebar.ad-slot--tall .ad-slot__box { min-height: 600px; }
.ad-label { display: block !important; color: var(--gold) !important; font-weight: 800; letter-spacing: 0.14em; }
@media (max-width: 900px) {
  body.has-mobile-ad,
  body.has-ad-anchor { padding-bottom: 140px !important; }
}
/* Dismiss must fully hide sticky bar — !important beats any later show rules */
.ad-slot--mobile-anchor.is-dismissed,
.ad-slot--mobile-anchor[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* ===== R5 PREMIUM DEPTH — mobile ≤390 + reduced motion ===== */
@media (max-width: 390px) {
  .hero-row,
  .cards {
    perspective: none;
  }
  a.tile:hover,
  .card:hover {
    transform: translateY(-2px);
  }
  .tile:hover img,
  .tile--hero:hover img,
  .card:hover img {
    transform: scale(1.03);
  }
  .btn-support {
    max-width: 5.4rem;
    padding: 7px 7px;
  }
  .page { padding-left: 8px; padding-right: 8px; }
  .nav-inner { padding: 0 8px; gap: 4px; }
  .card { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(212, 175, 55, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .tile img,
  .card img,
  .tile, .card,
  .btn-support,
  .breaking-track-inner,
  .updated-chip::before {
    transition: none !important;
    animation: none !important;
  }
  .tile:hover img,
  .tile--hero:hover img,
  .card:hover img {
    transform: none;
  }
  a.tile:hover, .card:hover {
    transform: none;
  }
}

/* Paper wells — slight emboss */
.article-wrap {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.12) !important;
}
.list-item {
  box-shadow: var(--shadow-card);
  border-color: rgba(212, 175, 55, 0.18) !important;
  transition: transform 0.25s var(--ease-lift), box-shadow 0.25s ease;
}
.list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* R4 visual QA — overflow safety */
.site-chrome,
.nav-bar,
.stage,
.hero-row,
.layout-article,
.article-wrap {
  max-width: 100%;
  min-width: 0;
}
.site-chrome { overflow-x: clip; }
.prose p, .prose li, .prose h1, .prose h2, .prose h3,
.article-body p, .article-body li, .article-body h2, .article-body blockquote {
  overflow-wrap: anywhere;
  word-break: break-word;
}
