:root {
  --background: #eef3f8;
  --surface: rgba(248, 251, 255, 0.58);
  --surface-solid: rgba(251, 253, 255, 0.84);
  --border: rgba(100, 116, 139, 0.12);
  --border-soft: rgba(255, 255, 255, 0.8);
  --text: #1a1a1a;
  --muted: #64748b;
  --accent: #e8420a;
  --accent-hover: #c23408;
  --max-width: 1180px;
  --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 30px 90px rgba(15, 23, 42, 0.12);
  --glass-fill: rgba(248, 251, 255, 0.6);
  --glass-fill-strong: rgba(251, 253, 255, 0.84);
  --glass-highlight: rgba(255, 255, 255, 0.92);
  --glass-line: rgba(100, 116, 139, 0.08);
  --glass-tint: rgba(233, 238, 245, 0.72);
  --font-body: "Inter", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", Arial, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 247, 252, 0.64)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(233, 238, 245, 0.18) 46%, rgba(214, 224, 236, 0.46) 100%),
    linear-gradient(rgba(214, 224, 236, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.04) 1px, transparent 1px);
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-size: auto, auto, 120px 120px, 120px 120px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  animation: pageGridDrift 32s linear infinite;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, 0.88) 40%, rgba(233, 238, 245, 0.28) 58%, transparent 82%),
    linear-gradient(90deg, transparent 0%, rgba(232, 66, 10, 0.035) 48%, transparent 100%);
  content: "";
  opacity: 0.92;
  transform: translateX(-48%);
  animation: pageSweep 18s ease-in-out infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(214, 224, 236, 0.12), transparent 40%, rgba(255, 255, 255, 0.28) 68%, transparent 100%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 120px);
  content: "";
  opacity: 0.76;
  background-size: auto, auto, 220px 220px;
  animation: pageVeilShift 26s ease-in-out infinite alternate;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(232, 66, 10, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--text);
  color: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0.6rem;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  width: min(calc(100% - 1rem), calc(var(--max-width) + 2rem));
  margin: 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: var(--glass-fill);
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--glass-highlight);
  background: rgba(251, 253, 255, 0.72);
  transform: translateY(-1px);
}

.newsletter-panel form,
.newsletter-band form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: start;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--glass-highlight);
  border-radius: 16px;
  background: rgba(251, 253, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 0.78rem 0.85rem;
  backdrop-filter: blur(18px) saturate(150%);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(232, 66, 10, 0.15);
}

button,
.button-link {
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  padding: 0.88rem 1.1rem;
  box-shadow: 0 14px 32px rgba(232, 66, 10, 0.18);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:hover,
.button-link:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(232, 66, 10, 0.24);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 3.2rem 1rem 1.2rem;
}

.hero::before {
  display: none;
}

.hero-shell {
  position: relative;
  display: grid;
  gap: 0;
  justify-items: center;
  overflow: hidden;
  padding: clamp(0.7rem, 1.6vw, 1rem);
  border: 1px solid var(--border-soft);
  border-radius: 36px;
  background: rgba(249, 252, 255, 0.6);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(26px) saturate(165%);
}

.hero-shell::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(233, 238, 245, 0.24) 42%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(232, 66, 10, 0.05) 48%, transparent 100%);
  content: "";
  opacity: 0.88;
  animation: heroSheen 14s ease-in-out infinite;
}

.hero-shell::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 42%);
  content: "";
  pointer-events: none;
}

.hero-shell-inner {
  position: relative;
  display: grid;
  gap: 1.35rem;
  justify-items: center;
  width: min(100%, 1020px);
  padding: clamp(1.55rem, 3.8vw, 3rem) clamp(1rem, 3vw, 2.8rem) clamp(1.8rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(247, 250, 255, 0.28) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.hero-shell-inner::before {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, transparent 44%),
    repeating-linear-gradient(90deg, rgba(100, 116, 139, 0.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(100, 116, 139, 0.045) 0 1px, transparent 1px 72px);
  content: "";
  opacity: 0.32;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.24) 74%, transparent 100%);
  animation: heroGridPan 24s linear infinite;
}

.hero-shell-inner::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  content: "";
  pointer-events: none;
}

.hero-shell > *,
.hero-shell-inner > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.56rem 0.92rem;
  border: 1px solid rgba(232, 66, 10, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 10px 24px rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-badge img {
  width: 18px;
  height: 18px;
}

.hero-copy h1,
.page-hero h1,
.article-shell h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 980px;
  font-size: clamp(3rem, 6vw, 5.15rem);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-copy p,
.page-hero p,
.article-dek {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-copy {
  display: grid;
  gap: 0.9rem;
  max-width: 840px;
  justify-items: center;
  text-align: center;
  animation: riseIn 700ms ease both;
}

.hero-copy .eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.hero-copy p:last-child {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.72rem 0.98rem;
  border: 1px solid rgba(220, 228, 238, 0.9);
  border-radius: 999px;
  background: rgba(252, 254, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(150%);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-highlights span::before {
  width: 6px;
  height: 6px;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(232, 66, 10, 0.08);
  content: "";
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-card,
.newsletter-panel,
.newsletter-band {
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(155%);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem 1rem 4rem;
}

.latest-section {
  display: grid;
  gap: 1rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin: 0.1rem 0 0.5rem;
}

.section-heading h2,
.newsletter-panel h2,
.article-sources h2,
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
}

.section-note,
.results-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.section-note {
  max-width: 360px;
  text-align: right;
}

.section-toolbar {
  display: grid;
  gap: 1rem;
  width: 100%;
  margin: 0 0 0.65rem;
}

.filter-row,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
}

.filter-chip {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid var(--glass-highlight);
  border-radius: 999px;
  background: rgba(251, 253, 255, 0.68);
  color: var(--text);
  padding: 0.7rem 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(155%);
}

.filter-chip strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(232, 66, 10, 0.22);
  background: var(--glass-fill-strong);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 14px 28px rgba(15, 23, 42, 0.08);
}

.filter-chip.is-active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 12px 28px rgba(232, 66, 10, 0.08);
}

.filter-chip.is-active strong {
  color: var(--accent);
}

.search-toggle {
  min-width: 108px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  margin: 0 0 0.35rem;
  padding: 0.8rem;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: var(--glass-fill);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(155%);
}

.search-panel input {
  min-height: 48px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  justify-content: center;
  gap: 1.25rem;
}

.article-card {
  position: relative;
  display: grid;
  grid-column: auto;
  overflow: hidden;
  width: 100%;
  min-height: 390px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background: var(--glass-fill);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(155%);
  text-decoration: none;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.article-card::before {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 27px;
  content: "";
  pointer-events: none;
}

.article-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.64) 0%, rgba(233, 238, 245, 0.18) 48%, transparent 100%);
  content: "";
  opacity: 0.95;
  pointer-events: none;
}

.card-media {
  position: relative;
  aspect-ratio: 1.45 / 1;
  display: grid;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  background: transparent;
}

.article-card:hover {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(251, 253, 255, 0.8);
  color: var(--text);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
}

.card-title-tile {
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.7rem;
  min-height: 240px;
  padding: 1.4rem 1.2rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 252, 0.54)),
    linear-gradient(135deg, rgba(232, 66, 10, 0.05) 0%, rgba(255, 255, 255, 0.18) 46%, rgba(100, 116, 139, 0.06) 100%);
  text-align: center;
}

.tile-category {
  color: var(--tile-accent);
  border: 1px solid rgba(232, 66, 10, 0.16);
  border-radius: 999px;
  background: var(--glass-fill-strong);
  padding: 0.45rem 0.78rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  justify-self: center;
}

.card-title-tile h3 {
  display: -webkit-box;
  max-width: 16ch;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.7vw, 1.55rem);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.card-body {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  align-content: start;
  padding: 1rem 1.25rem 1.35rem;
  text-align: center;
}

.card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.card-body h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.16;
}

.article-card p {
  display: -webkit-box;
  margin: 0;
  max-width: 28ch;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.96rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card-featured {
  grid-column: span 2;
  min-height: 470px;
}

.article-card-featured .card-media {
  aspect-ratio: 1.8 / 1;
}

.article-card-featured .card-title-tile {
  min-height: 320px;
  padding: 1.8rem;
}

.article-card-featured .card-body {
  padding: 1.25rem 1.8rem 1.8rem;
}

.article-card-featured .card-title-tile h3 {
  max-width: 15ch;
  font-size: clamp(1.9rem, 2.9vw, 2.65rem);
  -webkit-line-clamp: 4;
}

.article-card-featured p {
  max-width: 38ch;
  -webkit-line-clamp: 3;
}

.article-card-secondary {
  min-height: 390px;
}

.article-card-secondary .card-media {
  aspect-ratio: 1.5 / 1;
}

.article-card-secondary .card-title-tile {
  min-height: 240px;
}

.article-card-secondary .card-title-tile h3 {
  max-width: 16ch;
  font-size: clamp(1.28rem, 1.9vw, 1.62rem);
  -webkit-line-clamp: 3;
}

.article-card-compact {
  min-height: 390px;
}

.article-card-compact .card-body {
  min-height: 116px;
}

.article-card-compact .card-title-tile h3 {
  max-width: 17ch;
  font-size: clamp(1.16rem, 1.6vw, 1.38rem);
  -webkit-line-clamp: 4;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-self: end;
  color: var(--muted);
  font-size: 0.86rem;
}

.article-card .card-meta {
  font-size: 0.8rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-row span,
.category-pill {
  border: 1px solid rgba(232, 66, 10, 0.25);
  border-radius: 999px;
  background: rgba(232, 66, 10, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.24rem 0.5rem;
}

.article-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.button-secondary {
  border-color: var(--glass-highlight);
  background: rgba(251, 253, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding-inline: 1.15rem;
  backdrop-filter: blur(18px) saturate(150%);
}

.button-secondary:hover {
  border-color: rgba(232, 66, 10, 0.24);
  background: var(--glass-fill-strong);
  color: var(--accent-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 14px 30px rgba(15, 23, 42, 0.08);
}

.article-feed-ad {
  grid-column: 1 / -1;
  min-height: 116px;
}

.empty-state {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(251, 253, 255, 0.72);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  text-align: center;
}

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
  position: sticky;
  top: 6.6rem;
}

.newsletter-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.newsletter-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 1.5rem;
  align-items: end;
  margin-top: 2.2rem;
  padding: 1.35rem;
}

.newsletter-panel p,
.newsletter-band p {
  margin: 0;
  color: var(--muted);
}

.newsletter-panel form,
.newsletter-band form {
  grid-template-columns: 1fr;
}

.newsletter-band h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.8vw, 1.5rem);
  line-height: 1.12;
}

.ad-slot {
  display: none;
  min-height: 92px;
  place-items: center;
  border: 1px dashed rgba(107, 114, 128, 0.55);
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #ffffff, #ffffff 12px, #f9f9f7 12px, #f9f9f7 24px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.ad-slot-wide {
  margin: 1.5rem 0;
}

.ad-slot-rail {
  min-height: 280px;
}

.ad-slot-live {
  display: block;
  min-height: auto;
  border: 0;
  background: transparent;
}

.ad-slot-preview {
  display: grid;
  min-height: 120px;
  border: 1px dashed rgba(232, 66, 10, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    repeating-linear-gradient(135deg, rgba(232, 66, 10, 0.05), rgba(232, 66, 10, 0.05) 12px, rgba(255, 255, 255, 0.48) 12px, rgba(255, 255, 255, 0.48) 24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-container {
  display: none;
}

.ad-container-live {
  display: block;
}

.ad-container-preview {
  display: block;
}

.page-hero,
.page-content,
.article-layout,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1rem;
}

.page-hero {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.page-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  padding-bottom: 4rem;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.18;
}

.prose p,
.prose li {
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 300px;
  gap: 2rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.article-shell h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 1.2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.article-content {
  border-top: 1px solid var(--border);
  margin-top: 1.6rem;
  padding-top: 1rem;
}

.article-hero-media {
  margin: 1.5rem 0 1.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.article-hero-media img {
  width: 100%;
  height: auto;
}

.article-content h2,
.article-sources h2 {
  margin: 2.2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.article-content p,
.article-content li {
  color: #303030;
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-content ul {
  padding-left: 1.2rem;
}

.article-sources {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.article-newsletter {
  margin-top: 2rem;
}

.article-rail {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6.6rem;
}

.rail-card {
  padding: 1.2rem;
}

.rail-card p {
  margin: 0;
}

.site-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-on-scroll.is-visible {
  animation: riseIn 560ms ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageGridDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 0 0, 0 150px, 150px 0;
  }
}

@keyframes heroGridPan {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 82px 82px, -82px 82px;
  }
}

@keyframes heroSheen {
  0% {
    transform: translateX(-8%);
  }
  50% {
    transform: translateX(8%);
  }
  100% {
    transform: translateX(-8%);
  }
}

@keyframes pageSweep {
  0% {
    transform: translateX(-48%);
  }
  50% {
    transform: translateX(48%);
  }
  100% {
    transform: translateX(-48%);
  }
}

@keyframes pageVeilShift {
  0% {
    transform: translate3d(-1.5%, -1%, 0);
    opacity: 0.68;
  }
  50% {
    transform: translate3d(1.25%, 0.8%, 0);
    opacity: 0.82;
  }
  100% {
    transform: translate3d(2%, -0.6%, 0);
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  body {
    animation: none !important;
  }

  body::before,
  body::after,
  .hero::before,
  .hero-shell::before,
  .hero-shell-inner::before {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .main-grid,
  .page-content,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .article-rail {
    position: static;
  }

  .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-note {
    max-width: none;
    text-align: left;
  }

  .article-card-featured .card-media {
    aspect-ratio: 1.55 / 1;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 0.35rem;
    width: calc(100% - 0.7rem);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-shell {
    padding: 0.55rem;
  }

  .hero-shell-inner {
    gap: 1rem;
    padding: 1.2rem 0.95rem 1.45rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
  }

  .hero-highlights {
    gap: 0.55rem;
  }

  .hero-highlights span {
    min-height: 38px;
    padding: 0.62rem 0.82rem;
    font-size: 0.82rem;
  }

  .section-heading {
    align-items: start;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card-featured {
    grid-column: auto;
  }

  .filter-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
