/* COVIDESC — Pandemic Policy Archive
   Dark theme · min viewport ~360px */

:root {
  --bg-deep: #070a0f;
  --bg: #0c1018;
  --surface: #121a24;
  --surface-2: #1a2433;
  --border: #2a3545;
  --border-strong: #3d4f66;
  --text: #e8eef6;
  --text-muted: #94a3b8;
  --accent: #5ec8d4;
  --accent-dim: #3a9aaa;
  --accent-glow: rgba(94, 200, 212, 0.12);
  --warning: #e8b84a;
  --danger-soft: #c45c5c;
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --header-h: 4.14rem;
  --max: 72rem;
  --sidebar-w: 18.75rem;
  --section-space-y: clamp(2.75rem, 6vw, 4.25rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 360px;
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(94, 200, 212, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(196, 92, 92, 0.04), transparent 45%);
  background-attachment: fixed;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #7ee8f0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

/* —— Breadcrumbs (blog + article only) —— */
.breadcrumb-bar {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 16, 24, 0.65);
}

.breadcrumb-bar .wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 2.65rem;
  padding-block: 0.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  margin: -0.2rem -0.35rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.breadcrumb__sep {
  color: var(--border-strong);
  user-select: none;
  font-weight: 400;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(94, 200, 212, 0.08);
  border: 1px solid rgba(94, 200, 212, 0.2);
}

/* —— Site header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 15, 0.88);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.75rem);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  line-height: 0;
}

.logo:hover {
  opacity: 0.92;
}

.logo__img {
  display: block;
  height: clamp(3.42rem, 2.88rem + 1.8vw, 4.5rem);
  width: auto;
  max-width: min(calc(100vw - 6.5rem), 20.25rem);
  object-fit: contain;
  object-position: left center;
}

.site-footer .logo__img {
  height: clamp(2.97rem, 2.52rem + 1.26vw, 3.96rem);
  max-width: min(calc(100vw - 2.5rem), 18.7rem);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle .fa-bars {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1;
  pointer-events: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.02rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 22rem;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1.35rem clamp(1rem, 4vw, 1.75rem) 1.35rem;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }
}

/* —— Layout —— */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.75rem);
  box-sizing: border-box;
}

.section {
  padding: var(--section-space-y) 0;
}

.section--tight {
  padding: clamp(1.5rem, 4vw, 2rem) 0;
}

/* —— Typography —— */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--text-muted);
  max-width: 42rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.eyebrow .fa-icon {
  margin-right: 0.5em;
  opacity: 0.95;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: var(--section-space-y) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, var(--accent-glow) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(42, 53, 69, 0.35) 40px,
      rgba(42, 53, 69, 0.35) 41px
    );
  opacity: 0.5;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stat-pill strong {
  color: var(--accent);
  font-weight: 600;
}

/* Home: continuous headline ticker under hero (full viewport width) */
.home-news-ticker {
  width: 100%;
  padding-block: clamp(0.45rem, 1.35vw, 0.85rem);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(18, 26, 36, 0.92) 0%, var(--surface) 45%, rgba(12, 16, 24, 0.98) 100%);
}

.home-news-ticker__strip {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(0.45rem, 1.8vw, 0.95rem);
  box-sizing: border-box;
}

.home-news-ticker__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  flex-shrink: 0;
  margin: 0;
  background: rgba(94, 200, 212, 0.14);
  border: 1px solid rgba(94, 200, 212, 0.28);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-news-ticker__badge .fa-icon {
  font-size: 0.95em;
}

.home-news-ticker__viewport {
  flex: 1;
  min-width: 0;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.home-news-ticker__track {
  display: flex;
  width: max-content;
  animation: home-news-ticker-scroll 55s linear infinite;
}

.home-news-ticker:hover .home-news-ticker__track,
.home-news-ticker:focus-within .home-news-ticker__track {
  animation-play-state: paused;
}

@keyframes home-news-ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

.home-news-ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.2rem 0;
}

.home-news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(42, 53, 69, 0.75);
  white-space: nowrap;
  font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.875rem);
  line-height: 1.4;
  color: var(--text-muted);
}

.home-news-ticker__item a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.home-news-ticker__item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.home-news-ticker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--warning);
  box-shadow: 0 0 0 2px rgba(232, 184, 74, 0.2);
  animation: home-news-ticker-pulse 2.2s ease-in-out infinite;
}

@keyframes home-news-ticker-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

@media (max-width: 560px) {
  .home-news-ticker__strip {
    flex-direction: column;
    align-items: center;
    padding-inline: clamp(0.4rem, 2.5vw, 0.85rem);
    gap: 0.25rem;
  }

  .home-news-ticker__badge {
    align-self: center;
    margin: 0;
  }

  .home-news-ticker__viewport {
    min-height: 2.2rem;
    width: 100%;
  }

  .home-news-ticker__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-news-ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 0.5rem 0 0.75rem;
    row-gap: 0.5rem;
  }

  .home-news-ticker__group[aria-hidden="true"] {
    display: none;
  }

  .home-news-ticker__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .home-news-ticker__group {
    flex-wrap: wrap;
    padding: 0.35rem 0 0.5rem;
    justify-content: flex-start;
  }

  .home-news-ticker__item {
    white-space: normal;
    max-width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .home-news-ticker__dot {
    animation: none;
  }
}

body.page-home .home-news-ticker__item {
  font-size: clamp(0.82rem, 0.76rem + 0.28vw, 0.92rem);
}

/* Home: leaderboard directly under site header */
.home-top-ad {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 15, 0.5);
}

/* —— Ad slots (minimal chrome; creative supplies visuals) —— */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  flex-shrink: 0;
}

.ad-slot > ins,
.ad-slot .my-ad-ins {
  display: block;
  max-width: 100%;
}

.ad-slot--leaderboard {
  width: 100%;
  max-width: 728px;
  height: 90px;
}

.ad-slot--skyscraper {
  width: 160px;
  height: 600px;
}

.ad-slot--medrect {
  width: 300px;
  height: 250px;
}

@media (max-width: 1024px) {
  .ad-slot--skyscraper {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 0;
  }
}

/* —— Cards & prose —— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}

.prose {
  max-width: 44rem;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose h2 {
  margin: 1.75em 0 0.65em;
}

.prose h3 {
  margin: 1.35em 0 0.5em;
}

.prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.25rem;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* After .prose so it wins the cascade: full width inside .wrap (--max), not 44rem */
.prose.prose--container {
  max-width: none;
  width: 100%;
}

.prose.prose--container > h2:first-child {
  margin-top: 0;
}

/* —— Home: “quiet rewiring” editorial band —— */
.home-rewiring {
  position: relative;
  overflow: hidden;
  padding: var(--section-space-y) 0;
  background:
    linear-gradient(165deg, rgba(18, 26, 36, 0.55) 0%, var(--bg) 42%, rgba(12, 16, 24, 0.9) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(94, 200, 212, 0.06);
}

/* Decorative FA icons behind content (not text watermarks) */
.home-rewiring__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-rewiring__bg-icon {
  position: absolute;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.home-rewiring__bg-icon--1 {
  top: clamp(4%, 8vh, 14%);
  left: clamp(-4%, -2vw, 2%);
  font-size: clamp(4rem, 14vw, 10rem);
  color: rgba(94, 200, 212, 0.07);
  transform: rotate(-14deg);
}

.home-rewiring__bg-icon--2 {
  top: clamp(28%, 32vh, 48%);
  right: clamp(-6%, -3vw, 4%);
  font-size: clamp(3rem, 10vw, 7rem);
  color: rgba(94, 200, 212, 0.05);
  transform: rotate(11deg);
}

.home-rewiring__bg-icon--3 {
  bottom: clamp(6%, 10vh, 16%);
  left: clamp(8%, 12vw, 22%);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  color: rgba(148, 163, 184, 0.08);
  transform: rotate(-8deg);
}

.home-rewiring__bg-icon--4 {
  top: clamp(12%, 14vh, 20%);
  right: clamp(18%, 22vw, 32%);
  font-size: clamp(2rem, 6vw, 4rem);
  color: rgba(148, 163, 184, 0.055);
  transform: rotate(18deg);
}

.home-rewiring__bg-icon--5 {
  bottom: clamp(22%, 28vh, 38%);
  right: clamp(2%, 6vw, 14%);
  font-size: clamp(3.25rem, 11vw, 8rem);
  color: rgba(94, 200, 212, 0.045);
  transform: rotate(-6deg);
}

@media (max-width: 767px) {
  .home-rewiring__bg-icon--4 {
    opacity: 0.65;
  }

  .home-rewiring__bg-icon--5 {
    font-size: clamp(2.25rem, 14vw, 4rem);
    right: 2%;
    bottom: 30%;
  }
}

.home-rewiring__wrap {
  position: relative;
  z-index: 1;
}

.home-rewiring__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 52rem;
}

.home-rewiring__eyebrow {
  margin-bottom: 0.5rem;
}

.home-rewiring__eyebrow .fa-icon {
  margin-right: 0.45em;
}

.home-rewiring__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-rewiring__layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 768px) {
  .home-rewiring__layout {
    grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 19rem);
    gap: clamp(1.75rem, 4vw, 2.75rem);
  }
}

@media (min-width: 1100px) {
  .home-rewiring__layout {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
  }
}

.home-rewiring__main.prose {
  max-width: 46rem;
  width: 100%;
}

.home-rewiring__main.prose > p:first-of-type {
  font-size: 1.04em;
  color: var(--text-muted);
}

.home-rewiring__main.prose > p:first-of-type + p {
  margin-top: 0.25em;
}

.home-rewiring__pullquote {
  margin: clamp(1.35rem, 3vw, 1.85rem) 0 0;
  padding: clamp(1.1rem, 2.5vw, 1.45rem) clamp(1.15rem, 3vw, 1.5rem);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(232, 184, 74, 0.08) 0%, rgba(7, 10, 15, 0.65) 55%, var(--surface) 100%);
  font-style: italic;
  font-size: 1.02em;
  line-height: 1.55;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.home-rewiring__audience {
  margin: 0;
  padding: clamp(1.15rem, 3vw, 1.45rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .home-rewiring__audience {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.home-rewiring__audience-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.home-rewiring__audience-title .fa-icon {
  color: var(--accent);
  font-size: 0.9em;
}

.home-rewiring__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-rewiring__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92em;
  line-height: 1.5;
  color: var(--text-muted);
}

.home-rewiring__list li span:last-child {
  color: var(--text);
}

.home-rewiring__list-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(94, 200, 212, 0.1);
  border: 1px solid rgba(94, 200, 212, 0.22);
  color: var(--accent);
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .home-rewiring__list li {
    padding: 0.75rem 0.8rem;
    font-size: 0.95em;
  }

  .home-rewiring__pullquote {
    font-size: 1em;
  }
}

@media (max-width: 400px) {
  .home-rewiring__list-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }
}

/* —— RSS / feed bands —— */
.feed-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
}

@media (min-width: 640px) {
  .feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feed-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 14rem;
}

.feed-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.feed-panel__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
}

.feed-panel__tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warning);
  white-space: nowrap;
}

.feed-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.feed-panel__list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(42, 53, 69, 0.6);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.feed-panel__list li:last-child {
  border-bottom: 0;
}

.feed-panel__list a {
  color: var(--text);
  text-decoration: none;
}

.feed-panel__list a:hover {
  color: var(--accent);
}

.feed-panel__foot {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feed-panel__rss {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 6rem;
}

.feed-panel__rss .rss-loading {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

a.rss-item {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(42, 53, 69, 0.6);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

a.rss-item:first-of-type {
  padding-top: 0;
}

a.rss-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

a.rss-item:hover {
  background: var(--accent-glow);
  margin-inline: -0.35rem;
  padding-inline: 0.35rem;
  border-radius: var(--radius);
  border-bottom-color: transparent;
}

a.rss-item h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.35;
  color: var(--text);
}

a.rss-item p {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

a.rss-item .meta {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dim);
}

a.rss-item .rss-item-icon {
  font-size: 0.65em;
  margin-left: 0.2em;
  vertical-align: 0.05em;
  opacity: 0.85;
}

/* —— Policy archive listing only: RSS as three equal columns —— */
.archive-rss-bands {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--bg) 45%, var(--surface) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.archive-rss-bands__intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
}

.archive-rss-bands__kicker {
  margin-bottom: 0.65rem;
}

.archive-rss-bands__lede {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--text-muted);
}

.archive-rss-bands .feed-grid.archive-rss-bands__row {
  gap: clamp(1.25rem, 3vw, 1.85rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .archive-rss-bands .feed-grid.archive-rss-bands__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.archive-rss-bands .feed-panel {
  min-height: 17rem;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(12, 16, 24, 0.92) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.archive-rss-bands .feed-panel:nth-child(1) {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), inset 0 3px 0 0 var(--accent);
}

.archive-rss-bands .feed-panel:nth-child(2) {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), inset 0 3px 0 0 var(--warning);
}

.archive-rss-bands .feed-panel:nth-child(3) {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), inset 0 3px 0 0 var(--accent-dim);
}

.archive-rss-bands .feed-panel__head {
  flex-shrink: 0;
  margin: 0;
  padding: 1rem 1.15rem 0.95rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 15, 0.35);
  align-items: center;
}

.archive-rss-bands .feed-panel__title {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.12rem);
  font-weight: 600;
  line-height: 1.25;
}

.archive-rss-bands .feed-panel__tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

.archive-rss-bands .feed-panel__tag .fa-rss {
  color: var(--accent);
  margin-right: 0.35em;
  opacity: 0.9;
}

.archive-rss-bands .feed-panel__rss {
  flex: 1;
  min-height: 7.5rem;
  padding: 0.85rem 1.05rem 1rem;
  gap: 0.4rem;
}

.archive-rss-bands .feed-panel__rss .rss-loading {
  font-size: 0.875rem;
  font-style: italic;
  padding: 0.35rem 0;
}

.archive-rss-bands a.rss-item {
  padding: 0.55rem 0.65rem;
  margin-bottom: 0;
  border-bottom: none;
  border-radius: var(--radius);
  background: rgba(7, 10, 15, 0.4);
  border: 1px solid rgba(42, 53, 69, 0.55);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.archive-rss-bands a.rss-item:first-of-type {
  padding-top: 0.55rem;
}

.archive-rss-bands a.rss-item:last-child {
  padding-bottom: 0.55rem;
}

.archive-rss-bands a.rss-item:hover {
  background: rgba(94, 200, 212, 0.09);
  border-color: var(--accent-dim);
  margin-inline: 0;
  padding-inline: 0.65rem;
  transform: translateY(-1px);
}

.archive-rss-bands a.rss-item h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.archive-rss-bands a.rss-item p {
  font-size: 0.78rem;
  line-height: 1.45;
}

.archive-rss-bands a.rss-item .meta {
  font-size: 0.65rem;
  letter-spacing: 0.07em;
}

.archive-rss-bands .feed-panel__foot {
  margin: 0;
  margin-top: auto;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border);
  background: rgba(7, 10, 15, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
}

.archive-rss-bands .feed-panel__foot a {
  color: var(--accent);
  text-decoration: none;
}

.archive-rss-bands .feed-panel__foot a:hover {
  color: #7ee8f0;
  text-decoration: underline;
}

/* —— Home only: RSS band (matches hero texture + reading-room card tone) —— */
body.page-home .home-rss-section {
  position: relative;
  padding: var(--section-space-y) 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 26, 36, 0.92) 0%, var(--surface) 35%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(94, 200, 212, 0.06);
}

body.page-home .home-rss-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 35%, var(--accent-glow) 95%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 44px,
      rgba(42, 53, 69, 0.28) 44px,
      rgba(42, 53, 69, 0.28) 45px
    );
  opacity: 0.55;
  pointer-events: none;
}

body.page-home .home-rss-section .wrap {
  position: relative;
  z-index: 1;
}

body.page-home .home-rss-section__intro {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 48rem;
}

body.page-home .home-rss-section__kicker {
  margin-bottom: 0.65rem;
}

body.page-home .home-rss-section__lede {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
}

body.page-home .home-rss-section__grid {
  gap: clamp(1.25rem, 3.5vw, 2rem);
}

body.page-home .home-rss-section .feed-panel {
  position: relative;
  min-height: 15rem;
  padding: clamp(1.35rem, 3vw, 1.65rem);
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 48%, rgba(12, 16, 24, 0.65) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}

body.page-home .home-rss-section .feed-panel:nth-child(2) {
  border-left-color: var(--warning);
}

body.page-home .home-rss-section .feed-panel:nth-child(3) {
  border-left-color: var(--accent-dim);
}

body.page-home .home-rss-section .feed-panel__head {
  margin-bottom: 1.1rem;
  padding-bottom: 0;
  border-bottom: none;
  align-items: center;
}

body.page-home .home-rss-section .feed-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

body.page-home .home-rss-section .feed-panel__tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: rgba(7, 10, 15, 0.45);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

body.page-home .home-rss-section .feed-panel__tag .fa-rss {
  color: var(--accent);
  margin-right: 0.4em;
}

body.page-home .home-rss-section .feed-panel__rss {
  gap: 0.35rem;
  min-height: 7rem;
}

body.page-home .home-rss-section .feed-panel__rss .rss-loading {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

body.page-home .home-rss-section a.rss-item {
  padding: 0.75rem 0.65rem 0.75rem 0.85rem;
  margin-inline: -0.65rem;
  border-bottom: 1px solid rgba(42, 53, 69, 0.45);
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition:
    background 0.2s ease,
    border-left-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

body.page-home .home-rss-section a.rss-item:first-of-type {
  padding-top: 0.35rem;
}

body.page-home .home-rss-section a.rss-item:hover {
  background: rgba(94, 200, 212, 0.07);
  border-left-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transform: translateX(2px);
}

body.page-home .home-rss-section a.rss-item h4 {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 0.92rem + 0.2vw, 1.08rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

body.page-home .home-rss-section a.rss-item p {
  font-size: 0.875rem;
  line-height: 1.5;
}

body.page-home .home-rss-section a.rss-item .meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
}

body.page-home .home-rss-section .feed-panel__foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(42, 53, 69, 0.55);
  font-size: 0.8125rem;
}

body.page-home .home-rss-section .feed-panel__foot a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

body.page-home .home-rss-section .feed-panel__foot a:hover {
  color: #7ee8f0;
  text-decoration: underline;
}

/* —— Blog layout (listing) —— */
.blog-banner {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg) 55%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  text-align: center;
}

.blog-banner h1 {
  margin: 0 0 0.5rem;
}

.blog-banner p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
}

.blog-shell {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.wrap.blog-shell {
  padding-top: var(--section-space-y);
  padding-bottom: var(--section-space-y);
}

@media (min-width: 1024px) {
  .blog-shell {
    grid-template-columns: 1fr var(--sidebar-w);
    align-items: start;
  }
}

.blog-main {
  min-width: 0;
}

.blog-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent-glow);
}

.blog-card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--surface-2);
}

.blog-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.sidebar-block h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.search-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search-form button {
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.search-form button:hover {
  filter: brightness(1.08);
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-list a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.cat-list a:hover {
  color: var(--accent);
}

.cat-list li:last-child a {
  border-bottom: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.pagination a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .is-current {
  background: var(--accent);
  color: var(--bg-deep);
}

/* Article */
.article-hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 1rem;
}

.article-hero h1 {
  margin: 0 0 0.75rem;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.article-meta .tags span {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.2rem 0.5rem;
  background: var(--surface-2);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent);
}

.article-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: var(--section-space-y);
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.article-feature-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.related-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.related-block .related-block__heading {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.article-sidebar-widget .article-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc a {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.4;
}

.article-toc li:last-child a {
  border-bottom: 0;
}

.article-toc a:hover {
  color: var(--accent);
}

.article-toc .fa-icon {
  width: 1rem;
  flex-shrink: 0;
  margin-top: 0.12em;
  color: var(--accent-dim);
  font-size: 0.88em;
}

.article-sidebar-ads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-sidebar-ads__medrect {
  margin: 0;
  justify-content: center;
  width: 100%;
}

.article-sidebar-ads__sky {
  margin: 0;
}

.related-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-mini {
  display: flex;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.related-mini:hover {
  border-color: var(--accent-dim);
}

.related-mini img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-mini h3 {
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.related-mini h3 .fa-icon {
  margin-right: 0.35em;
  color: var(--accent-dim);
  font-size: 0.88em;
}

.related-mini p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Article page: RSS merged into related-article cards */
.article-related-rss {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-related-rss__head {
  max-width: 44rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.article-related-rss__head .eyebrow {
  font-size: clamp(1.02rem, 0.92rem + 0.45vw, 1.2rem);
  letter-spacing: 0.1em;
}

.article-related-rss__head .eyebrow .fa-icon {
  margin-right: 0.45em;
}

.article-related-rss__lede {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(0.88rem, 0.84rem + 0.18vw, 0.98rem);
  line-height: 1.58;
}

.related-articles-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.35rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .related-articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-articles-grid .rss-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.related-rss-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 10rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 55%, rgba(12, 16, 24, 0.85) 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.related-rss-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), 0 0 0 1px var(--accent-glow);
  transform: translateY(-3px);
}

.related-rss-card--empty {
  grid-column: 1 / -1;
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.related-rss-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.95rem + 0.28vw, 1.18rem);
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 0.55rem;
  color: var(--text);
}

.related-rss-card__excerpt {
  flex: 1;
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.related-rss-card--empty .related-rss-card__excerpt {
  margin-bottom: 0.65rem;
}

.related-rss-card__meta {
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-dim);
}

.related-rss-card__meta .fa-icon {
  margin-left: 0.35em;
  font-size: 0.82em;
  opacity: 0.88;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-row a {
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.share-row a:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(18, 26, 36, 0.55) 0%, var(--bg-deep) 38%, #05070b 100%);
  box-shadow: inset 0 1px 0 rgba(94, 200, 212, 0.05);
}

.site-footer__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  align-items: start;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: auto 1fr;
    gap: clamp(2rem, 5vw, 3rem);
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 20rem;
}

.site-footer__brand .logo {
  align-self: flex-start;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.site-footer__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.site-footer__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer__nav a:hover {
  color: var(--accent);
  border-bottom-color: rgba(94, 200, 212, 0.45);
}

.site-footer__fineprint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 48rem;
}

.site-footer__copy {
  margin: 0;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dim);
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

.share-row__copy {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.share-row__copy:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* Listing top ad row */
.blog-ad-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .blog-sidebar .ad-slot--skyscraper {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.medrect-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.blog-sidebar__medrect {
  margin: 0;
  justify-content: center;
}

@media (min-width: 1024px) {
  .medrect-wrap:not(.blog-sidebar__medrect) {
    justify-content: flex-start;
  }
}

/* 360px tweaks */
@media (max-width: 400px) {
  .hero__stats {
    flex-direction: column;
  }

  .stat-pill {
    width: 100%;
    text-align: center;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }
}

/* Font Awesome — sizing & theme */
.site-nav a .fa-fw,
.site-footer__nav a .fa-fw {
  width: 1.1em;
  margin-right: 0.45em;
  text-align: center;
  opacity: 0.88;
}

.site-footer__nav a:hover .fa-fw {
  color: var(--accent);
  opacity: 1;
}

.site-nav a:hover .fa-fw,
.site-nav a[aria-current="page"] .fa-fw {
  color: var(--accent);
  opacity: 1;
}

.stat-pill .fa-fw {
  margin-right: 0.45em;
  color: var(--accent-dim);
}

.feed-panel__title {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feed-panel__title .fa-icon {
  color: var(--accent);
  margin-top: 0.2em;
  flex-shrink: 0;
}

.feed-panel__tag .fa-rss {
  margin-right: 0.35em;
  opacity: 0.85;
}

.blog-banner h1 .fa-icon {
  margin-right: 0.5rem;
  color: var(--accent);
  vertical-align: -0.08em;
}

.blog-card__meta .fa-icon {
  margin-right: 0.3em;
  color: var(--accent-dim);
  font-size: 0.82em;
}

.sidebar-block h2 .fa-icon {
  margin-right: 0.4em;
  color: var(--accent-dim);
  font-size: 0.88em;
}

.cat-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-list a .fa-icon {
  width: 1rem;
  flex-shrink: 0;
  color: var(--accent-dim);
  font-size: 0.85em;
}

.search-form button .fa-icon {
  font-size: 0.95rem;
}

.pagination a .fa-angles-right {
  margin-left: 0.35em;
  font-size: 0.8em;
}

.article-meta .fa-icon {
  margin-right: 0.35em;
  color: var(--accent-dim);
}

.share-row a .fa-icon {
  margin-right: 0.4em;
}

.card-cta .fa-icon {
  margin-left: 0.35em;
  font-size: 0.85em;
  vertical-align: -0.05em;
}

.prose .fa-li-icon {
  margin-right: 0.5em;
  color: var(--accent-dim);
  width: 1.1em;
  display: inline-block;
  text-align: center;
}

/* —— Home page: larger type scale —— */
body.page-home {
  font-size: clamp(1.0625rem, 0.98rem + 0.5vw, 1.2rem);
  line-height: 1.7;
}

body.page-home h1 {
  font-size: clamp(2.35rem, 1.7rem + 3vw, 3.85rem);
}

body.page-home h2 {
  font-size: clamp(1.65rem, 1.35rem + 1.2vw, 2.25rem);
}

body.page-home h3 {
  font-size: clamp(1.22rem, 1.08rem + 0.65vw, 1.48rem);
}

body.page-home .lead {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.32rem);
  max-width: 46rem;
}

body.page-home .eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

body.page-home .stat-pill {
  font-size: 0.9375rem;
  padding: 0.55rem 1.1rem;
}

body.page-home .hero .card .hero-card__title {
  margin-top: 0;
  font-size: clamp(1.5rem, 1.28rem + 1vw, 1.85rem);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

body.page-home .hero .card .hero-card__lead {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.65;
}

body.page-home .card-cta {
  font-size: 1.05rem;
}

body.page-home .prose p,
body.page-home .prose ul {
  font-size: 1.02em;
}

body.page-home .prose blockquote:not(.home-rewiring__pullquote) {
  font-size: 1.05em;
}

body.page-home .site-footer__fineprint,
body.page-home .site-footer__tagline,
body.page-home .site-footer__nav a {
  font-size: 0.9375rem;
}

body.page-home .site-footer__copy {
  font-size: 0.78rem;
}

/* —— Blog listing: larger type scale —— */
body.page-blog {
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.14rem);
  line-height: 1.68;
}

body.page-blog h1 {
  font-size: clamp(2.2rem, 1.55rem + 2.8vw, 3.5rem);
}

body.page-blog .blog-banner p {
  font-size: clamp(1.02rem, 0.96rem + 0.28vw, 1.14rem);
  max-width: 38rem;
}

body.page-blog .blog-banner .eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

body.page-blog .blog-card__title {
  font-size: clamp(1.28rem, 1.12rem + 0.55vw, 1.48rem);
}

body.page-blog .blog-card__excerpt {
  font-size: 0.9375rem;
}

body.page-blog .blog-card__meta {
  font-size: 0.8125rem;
}

body.page-blog .sidebar-block h2 {
  font-size: 0.92rem;
}

body.page-blog .search-form input {
  font-size: 1rem;
}

body.page-blog .search-form button {
  font-size: 0.9375rem;
}

body.page-blog .cat-list a {
  font-size: 1rem;
}

body.page-blog .pagination a,
body.page-blog .pagination span {
  font-size: 0.9375rem;
  min-width: 2.65rem;
  height: 2.65rem;
}

body.page-blog .site-nav a {
  font-size: 1.05rem;
}

body.page-blog .site-footer__fineprint,
body.page-blog .site-footer__tagline,
body.page-blog .site-footer__nav a {
  font-size: 0.9375rem;
}

body.page-blog .site-footer__copy {
  font-size: 0.78rem;
}

body.page-blog .archive-rss-bands__kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

body.page-blog .archive-rss-bands__lede {
  font-size: clamp(1.08rem, 1rem + 0.38vw, 1.24rem);
  max-width: 40rem;
}

body.page-blog .archive-rss-bands .feed-panel__title {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem);
}

body.page-blog .archive-rss-bands .feed-panel__tag {
  font-size: 0.68rem;
  padding: 0.4rem 0.72rem;
}

body.page-blog .archive-rss-bands .feed-panel__rss .rss-loading {
  font-size: 0.9375rem;
}

body.page-blog .archive-rss-bands a.rss-item h4 {
  font-size: 0.98rem;
}

body.page-blog .archive-rss-bands a.rss-item p {
  font-size: 0.84rem;
}

body.page-blog .archive-rss-bands a.rss-item .meta {
  font-size: 0.7rem;
}

body.page-blog .archive-rss-bands .feed-panel__foot {
  font-size: 0.85rem;
}

/* —— Article page —— */
body.page-article {
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.14rem);
  line-height: 1.68;
}

body.page-article .site-nav a {
  font-size: 1.05rem;
}

body.page-article .site-footer__fineprint,
body.page-article .site-footer__tagline,
body.page-article .site-footer__nav a {
  font-size: 0.9375rem;
}

body.page-article .site-footer__copy {
  font-size: 0.78rem;
}
