:root {
  --ink: #151719;
  --near-black: #090d12;
  --muted: #5d6570;
  --line: #d9dee6;
  --paper: #f7f8fa;
  --surface: #ffffff;
  --red: #d71920;
  --cyan: #007f8a;
  --green: #0e7c66;
  --amber: #b7791f;
  --blue: #1f5f99;
  --image-bg: #e7ebef;
  --grid-line: rgba(21, 23, 25, 0.022);
  --header-bg: rgba(9, 13, 18, 0.96);
  --header-line: rgba(255, 255, 255, 0.12);
  --soft-panel: rgba(255, 255, 255, 0.78);
  --ad-bg: rgba(255, 255, 255, 0.84);
  --shadow: rgba(9, 13, 18, 0.08);
  --solid-bg: #151719;
  --solid-fg: #ffffff;
  --max: 1180px;
  --font-body: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2f7;
  --near-black: #05080d;
  --muted: #a9b4c2;
  --line: #253141;
  --paper: #090d13;
  --surface: #111821;
  --red: #ff3640;
  --cyan: #18b7c0;
  --green: #26b391;
  --amber: #e3a23a;
  --blue: #79b8ff;
  --image-bg: #182230;
  --grid-line: rgba(255, 255, 255, 0.035);
  --header-bg: rgba(5, 8, 13, 0.98);
  --header-line: rgba(255, 255, 255, 0.1);
  --soft-panel: rgba(17, 24, 33, 0.86);
  --ad-bg: rgba(17, 24, 33, 0.9);
  --shadow: rgba(0, 0, 0, 0.34);
  --solid-bg: #edf2f7;
  --solid-fg: #090d13;
}

* { box-sizing: border-box; }

html {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

body {
  margin: 0;
  line-height: 1.55;
}

input,
button {
  font-family: var(--font-display);
}

h1,
h2,
h3,
.nav,
.brand,
.meta-row,
.section-kicker,
.archive-kicker,
.compact-meta,
.pagination-status,
.read-on,
.search-result h2,
.static-kicker,
.ad-slot {
  font-family: var(--font-display);
}

a {
  color: inherit;
  text-decoration: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--image-bg);
}

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

.skip-link:focus {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  clip: auto;
  background: var(--surface);
  border: 1px solid var(--line);
}

.site-header {
  position: relative;
  z-index: 4;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
}

.topbar,
.nav,
.hero-grid,
.section-shell,
.archive-hero,
.article,
.static-page,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: min(560px, 48vw);
  height: 92px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  image-rendering: auto;
  transform: translateZ(0);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  inset: 11px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.theme-toggle::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 8px;
  left: 18px;
  border-radius: 50%;
  background: var(--header-bg);
  transform: scale(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

:root[data-theme="dark"] .theme-toggle::after {
  transform: scale(1);
}

.search {
  display: flex;
  align-items: center;
  width: min(440px, 100%);
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.search-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--red);
  color: white;
  cursor: pointer;
}

.search-toggle::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  top: 10px;
  left: 11px;
  border: 2px solid white;
  border-radius: 50%;
}

.search-toggle::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  top: 24px;
  left: 23px;
  background: white;
  transform: rotate(45deg);
  transform-origin: left center;
}

.site-header.search-open .search-toggle::before {
  width: 20px;
  height: 2px;
  top: 18px;
  left: 10px;
  border: 0;
  border-radius: 0;
  background: white;
  transform: rotate(45deg);
}

.site-header.search-open .search-toggle::after {
  width: 20px;
  top: 18px;
  left: 10px;
  transform: rotate(-45deg);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 12px;
  font: inherit;
  color: white;
  outline: 0;
  background: transparent;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.search-button {
  position: relative;
  width: 42px;
  height: 38px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--red);
  color: white;
  cursor: pointer;
}

.search-button::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  top: 10px;
  left: 12px;
  border: 2px solid white;
  border-radius: 50%;
}

.search-button::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  top: 24px;
  left: 24px;
  background: white;
  transform: rotate(45deg);
  transform-origin: left center;
}

.nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.nav a {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 750;
}

.nav a:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(340px, 0.78fr);
  gap: 28px;
  align-items: stretch;
  padding: 26px 0;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.lead-story {
  position: relative;
  height: 490px;
  min-height: 0;
  overflow: hidden;
  background: var(--near-black);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px var(--shadow);
}

.lead-image {
  display: block;
  height: 100%;
  min-height: 0;
}

.lead-image img,
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 13, 18, 0.88), rgba(9, 13, 18, 0.48) 48%, rgba(9, 13, 18, 0.08)),
    linear-gradient(0deg, rgba(9, 13, 18, 0.82), transparent 44%);
  pointer-events: none;
}

.lead-overlay {
  position: absolute;
  left: 36px;
  right: 52px;
  bottom: 114px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  color: white;
}

.lead-overlay .meta-row {
  color: rgba(255, 255, 255, 0.76);
}

.lead-overlay .meta-row a {
  color: #7bd7c1;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.meta-row a { color: var(--red); }

h1, h2, h3, p { margin-top: 0; }

.lead-overlay h1 {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.lead-summary {
  position: absolute;
  left: 36px;
  right: 52px;
  bottom: 28px;
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.45;
}

.archive-hero p,
.article-header p {
  color: var(--muted);
  font-size: 18px;
}

.briefing {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 167, 181, 0.16), transparent 38%),
    var(--near-black);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.briefing .section-kicker { color: #7bd7c1; }

.brief-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 144px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.brief-thumb,
.compact-thumb,
.archive-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #202832;
}

.brief-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(9, 13, 18, 0.5), rgba(9, 13, 18, 0.18)),
    rgba(0, 167, 181, 0.14);
  transition: opacity 180ms ease;
  pointer-events: none;
}

.brief-thumb {
  width: 128px;
  height: 104px;
  min-height: 0;
}

.brief-thumb img,
.compact-thumb img,
.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brief-item:hover .brief-thumb img,
.brief-item:focus-within .brief-thumb img {
  transform: scale(1.06);
}

.brief-item:hover .brief-thumb::after,
.brief-item:focus-within .brief-thumb::after {
  opacity: 0.18;
}

.brief-item span,
.brief-item time {
  color: #b9c1ca;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.brief-item h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 8px;
  font-size: 15px;
  line-height: 1.18;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.section-shell { padding: 16px 0 34px; }

.popular-strip {
  width: 100%;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft-panel);
}

.popular-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px 0;
}

.popular-heading .section-kicker {
  margin: 0;
}

.popular-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.popular-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 12px 14px 14px;
  animation: popular-scroll 34s linear infinite;
}

.popular-strip:hover .popular-track,
.popular-strip:focus-within .popular-track {
  animation-play-state: paused;
}

.popular-card {
  flex: 0 0 190px;
}

.popular-card a {
  position: relative;
  display: block;
  height: 118px;
  overflow: hidden;
  background: var(--near-black);
  color: white;
}

.popular-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 180ms ease, opacity 180ms ease;
}

.popular-card a:hover img {
  transform: scale(1.04);
  opacity: 0.82;
}

.popular-card span,
.popular-card strong {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 1;
}

.popular-card span {
  top: 10px;
  color: #7bd7c1;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.popular-card strong {
  bottom: 10px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.popular-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 13, 18, 0.88), rgba(9, 13, 18, 0.16));
}

@keyframes popular-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 5px));
  }
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 3px solid var(--ink);
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.section-heading a {
  color: var(--blue);
  font-weight: 800;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.story-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 167, 181, 0.45);
  box-shadow: 0 16px 36px var(--shadow);
}

.story-thumb,
.story-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.story-card:hover .story-thumb img,
.story-card:focus-within .story-thumb img {
  transform: scale(1.04);
}

.story-copy,
.story-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.story-copy h3,
.story-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.22;
}

.story-copy p,
.story-body p,
.compact-list p { color: var(--muted); }

.read-on {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.read-on::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-left: 8px;
  vertical-align: 4px;
  background: currentColor;
  transition: width 160ms ease;
}

.read-on:hover::after {
  width: 28px;
}

.split-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.compact-list {
  background: var(--surface);
  border: 1px solid var(--line);
}

.archive-list {
  display: grid;
  gap: 28px;
}

.compact-list article {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  height: 198px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.compact-thumb {
  width: 156px;
  height: 166px;
  min-height: 0;
}

.compact-list article > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  height: 166px;
  overflow: hidden;
}

.compact-list article:first-child,
.archive-list article:first-child { border-top: 0; }

.compact-list h3 {
  display: -webkit-box;
  margin-bottom: 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.22;
}

.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.compact-meta time::before {
  content: "- ";
}

.compact-list p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 15px;
  line-height: 1.4;
}

.archive-list article {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.archive-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.archive-list time,
.archive-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.archive-kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-list h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.archive-meta span + time::before {
  content: "- ";
}

.archive-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.all-posts-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 18px 20px;
  border-top: 3px solid var(--ink);
  background: var(--surface);
}

.all-posts-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.all-posts-cta a {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: var(--red);
  color: white;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
}

.all-posts-cta a:hover {
  background: var(--solid-bg);
  color: var(--solid-fg);
}

.archive-hero { padding: 44px 0 18px; }

.archive-hero h1 {
  max-width: 840px;
  margin-bottom: 10px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.96;
}

.archive-hero-compact {
  padding: 34px 0 12px;
}

.archive-hero-compact h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.02;
}

.archive-hero-compact p {
  font-size: 17px;
}

.article { padding: 38px 0 54px; }

.article-header { max-width: none; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 880px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.breadcrumbs a {
  color: var(--blue);
}

.article-header h1 {
  max-width: none;
  margin: 12px 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}

.article-header p {
  max-width: none;
}

.article-hero { margin: 28px 0; }

.article-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 46px;
  align-items: start;
}

.article-rail {
  position: sticky;
  top: 130px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.article-rail strong {
  margin-top: 8px;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 12px;
}

.article-content {
  font-size: 19px;
  background: var(--surface);
  border-top: 4px solid var(--cyan);
  padding: 30px;
  line-height: 1.72;
}

.article-content h2 {
  margin-top: 34px;
  font-size: 30px;
  line-height: 1.08;
}

.article-content p { margin-bottom: 20px; }

.article-content img,
.article-content video,
.article-content iframe,
.article-content object,
.article-content embed {
  max-width: 100%;
}

.article-content img,
.article-content video {
  height: auto;
}

.article-content iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.article-content iframe[src*="youtube.com"],
.article-content iframe[src*="youtu.be"],
.article-content iframe[src*="vimeo.com"] {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
}

.article-content video {
  display: block;
  width: 100%;
  margin: 24px 0;
  background: #000;
}

.article-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.article-content th,
.article-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.article-content th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 850;
}

.article-content .wp-caption,
.article-content figure {
  max-width: 100%;
}

.article-content .wp-caption-text,
.article-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.article-content .gallery,
.article-content .wp-block-gallery,
.article-content .blocks-gallery-grid,
.article-content .tiled-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.article-content .gallery-columns-1 { grid-template-columns: 1fr; }
.article-content .gallery-columns-2,
.article-content .columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-content .gallery-columns-3,
.article-content .columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-content .gallery-columns-4,
.article-content .columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.article-content .gallery-columns-5,
.article-content .columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.article-content .gallery-item,
.article-content .blocks-gallery-item,
.article-content .tiled-gallery-item {
  margin: 0;
  min-width: 0;
}

.article-content .gallery figure,
.article-content .wp-block-gallery figure,
.article-content .blocks-gallery-item figure,
.article-content .tiled-gallery figure {
  margin: 0;
}

.article-content .gallery img,
.article-content .wp-block-gallery img,
.article-content .blocks-gallery-grid img,
.article-content .tiled-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.article-content .gallery-caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.related-articles {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 44px;
}

.static-page {
  padding: 38px 0 64px;
}

.static-page-header {
  max-width: none;
  margin-bottom: 24px;
}

.static-kicker {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.static-page-header h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.08;
}

.static-page-header > p:not(.static-kicker) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.static-page-content {
  max-width: none;
  padding: 30px;
  border-top: 4px solid var(--cyan);
  background: var(--surface);
  font-size: 18px;
  line-height: 1.72;
}

.static-page-content h2 {
  margin: 34px 0 12px;
  font-size: 26px;
  line-height: 1.16;
}

.static-page-content h2:first-child {
  margin-top: 0;
}

.static-page-content p {
  margin-bottom: 20px;
}

.static-page-content ul {
  margin: 0 0 24px;
  padding-left: 22px;
}

.static-page-content li + li {
  margin-top: 7px;
}

.ad-placement {
  display: flex;
  justify-content: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.ad-placement-site-top {
  padding: 14px 0 0;
}

.ad-placement-article-sidebar {
  width: auto;
  margin-top: 18px;
  justify-content: flex-start;
}

.ad-placement-article-inline {
  width: 100%;
  margin-top: 34px;
}

.ad-slot {
  display: grid;
  width: var(--ad-width);
  max-width: 100%;
  height: var(--ad-height);
  place-items: center;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  border: 1px dashed #aeb7c2;
  background:
    linear-gradient(135deg, rgba(0, 127, 138, 0.08), transparent 42%),
    var(--ad-bg);
  color: var(--muted);
  text-align: center;
}

.ad-slot span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-slot small {
  font-size: 11px;
  font-weight: 750;
}

.ad-slot-mobile {
  display: none;
}

.search-page-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

.search-page-form button {
  min-width: 110px;
  border: 0;
  background: var(--red);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.search-count {
  color: var(--muted);
  font-weight: 700;
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-result {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.search-result h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.search-result p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--red);
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 160ms ease;
  box-shadow: 0 14px 32px rgba(9, 13, 18, 0.22);
}

.scroll-top::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  top: 17px;
  left: 15px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg);
}

.scroll-top.is-visible,
.scroll-top:focus-visible,
.scroll-top:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--solid-bg);
  color: var(--solid-fg);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong { color: var(--ink); }

.site-footer p {
  max-width: 640px;
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
  font-weight: 750;
}

.pagination,
.pagination-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span,
.pagination-pages a,
.pagination-pages span,
.pagination-control {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.pagination-bar {
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination-status {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.pagination-pages .is-current {
  border-color: var(--solid-bg);
  background: var(--solid-bg);
  color: var(--solid-fg);
  font-weight: 850;
}

.pagination-control {
  min-width: 92px;
  padding: 0 14px;
  color: var(--blue);
  font-weight: 850;
}

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

.pagination-ellipsis {
  min-width: 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.pagination-control:hover {
  border-color: var(--red);
  color: var(--red);
}

.pagination-control.is-disabled {
  color: #9aa3ad;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .hero-grid,
  .lead-story,
  .split-lanes,
  .article-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .lead-story,
  .lead-image {
    height: 460px;
  }

  .lead-overlay h1 {
    max-width: 700px;
    font-size: clamp(26px, 4vw, 32px);
  }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .article-rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0 8px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .header-actions {
    display: contents;
  }

  .brand-logo {
    width: min(320px, calc(100vw - 92px));
    height: 68px;
  }

  .theme-toggle {
    flex: 0 0 auto;
  }

  .search-toggle {
    display: block;
    flex: 0 0 auto;
  }

  html.js .site-header:not(.search-open) .search {
    display: none;
  }

  .search {
    order: 3;
    width: 100%;
  }

  .nav {
    padding-bottom: 8px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .ad-placement-site-top {
    padding-top: 10px;
  }

  .ad-placement-article-sidebar {
    flex-basis: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .ad-slot-desktop {
    display: none;
  }

  .ad-slot-mobile {
    display: grid;
  }

  .hero-grid { padding-top: 18px; }
  .lead-story,
  .lead-image {
    height: 360px;
  }

  .lead-overlay {
    left: 22px;
    right: 22px;
    bottom: 96px;
  }

  .lead-overlay h1 {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(24px, 6.4vw, 30px);
    line-height: 1.04;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .lead-summary {
    left: 22px;
    right: 22px;
    bottom: 22px;
    max-width: none;
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .brief-item {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 124px;
  }

  .brief-thumb {
    width: 96px;
    height: 82px;
    min-height: 0;
  }

  .brief-item h2 {
    font-size: 15px;
  }

  .compact-list article {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    height: 150px;
  }

  .compact-thumb {
    width: 104px;
    height: 118px;
    min-height: 0;
  }

  .compact-list article > div {
    height: 118px;
  }

  .compact-list p {
    -webkit-line-clamp: 2;
  }
  .story-grid { grid-template-columns: 1fr; }

  .popular-card {
    flex-basis: 168px;
  }

  .popular-card a {
    height: 108px;
  }

  .archive-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .archive-list h3 {
    font-size: 20px;
  }

  .all-posts-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .all-posts-cta a {
    text-align: center;
  }

  .pagination-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pagination-pages {
    order: -1;
    flex-basis: 100%;
  }

  .pagination-control {
    flex: 1 1 0;
  }

  .article-header h1 {
    font-size: clamp(28px, 7.5vw, 34px);
    line-height: 1.08;
  }

  .article-content {
    padding: 22px 18px;
    font-size: 18px;
  }

  .article-content iframe {
    min-height: 240px;
  }

  .article-content .gallery,
  .article-content .wp-block-gallery,
  .article-content .blocks-gallery-grid,
  .article-content .tiled-gallery,
  .article-content .gallery-columns-3,
  .article-content .gallery-columns-4,
  .article-content .gallery-columns-5,
  .article-content .columns-3,
  .article-content .columns-4,
  .article-content .columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-content .gallery img,
  .article-content .wp-block-gallery img,
  .article-content .blocks-gallery-grid img,
  .article-content .tiled-gallery img {
    min-height: 120px;
  }

  .static-page {
    padding-top: 28px;
  }

  .static-page-header h1 {
    font-size: clamp(28px, 7.5vw, 34px);
  }

  .static-page-header > p:not(.static-kicker),
  .static-page-content {
    font-size: 17px;
  }

  .static-page-content {
    padding: 22px 18px;
  }

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

  .search-page-form button {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .popular-track {
    width: auto;
    overflow-x: auto;
    animation: none;
  }
}
