:root {
  --blue-950: #062047;
  --blue-900: #0a2b61;
  --blue-800: #0d3678;
  --accent: var(--theme-accent, #ef3b24);
  --accent-dark: #c92a18;
  --ink: #111827;
  --muted: #5d6675;
  --soft: #f3f5f8;
  --line: #dfe4ea;
  --surface: #ffffff;
  --container: 1216px;
  --ease: cubic-bezier(.2, 0, .2, 1);
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.45;
  background: var(--surface);
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
}

body.is-menu-open { overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), opacity 160ms var(--ease);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
}

.has-sticky-header .site-header {
  position: sticky;
  top: 0;
  transition: box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 10px rgba(7, 31, 69, .12);
}

.utility-row {
  background: var(--blue-950);
  color: #dbeafe;
  font-size: 12px;
}

.utility-row__inner,
.masthead__inner,
.primary-nav__inner,
.topic-strip__inner {
  display: flex;
  align-items: center;
}

.utility-row__inner {
  min-height: 34px;
  justify-content: space-between;
  gap: 18px;
}

.utility-row__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.utility-row a:hover { color: #fff; }

.utility-row__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 59, 36, .22);
}

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  min-height: 72px;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 180ms var(--ease);
}

.site-header.is-scrolled .masthead__inner { min-height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--blue-950);
}

.brand__logo {
  max-height: 44px;
  width: auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
}

.brand__text {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(420px, 40vw);
  min-width: 240px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.header-search input,
.page-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  outline: 0;
}

.header-search:focus-within,
.page-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 59, 36, .16);
}

.header-search button,
.page-search button {
  display: grid;
  place-items: center;
  height: 100%;
  min-width: 42px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 800;
}

.header-search button:hover,
.page-search button:hover,
.load-more:hover,
.button:hover,
.contact-form button:hover,
.tts-block button:hover,
.share-block button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(7, 31, 69, .14);
}

.search-suggestions a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.search-suggestions a:last-child { border-bottom: 0; }

.search-suggestions img,
.search-suggestions .suggestion-thumb {
  width: 44px;
  height: 36px;
  object-fit: cover;
  background: var(--soft);
  border-radius: 3px;
}

.search-suggestions strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.search-suggestions span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.icon-button {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--blue-900);
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: #fff;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.is-menu-open .icon-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-menu-open .icon-button span:nth-child(2) { opacity: 0; }
.is-menu-open .icon-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  background: var(--blue-900);
  color: #fff;
}

.primary-nav__inner {
  min-height: 44px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav__inner::-webkit-scrollbar { display: none; }

.primary-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  color: #fff;
  background: var(--blue-800);
  border-bottom-color: var(--accent);
}

.topic-strip {
  background: #fff8f6;
  border-bottom: 1px solid #ffd8cf;
}

.topic-strip__inner {
  min-height: 38px;
  gap: 14px;
  overflow: hidden;
}

.topic-strip__label,
.eyebrow-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.topic-strip__items {
  display: flex;
  min-width: 0;
  gap: 20px;
  overflow-x: auto;
  font-size: 13px;
  scrollbar-width: none;
}

.topic-strip__items::-webkit-scrollbar { display: none; }

.topic-strip__items a {
  white-space: nowrap;
}

.ad-band,
.ad-slot {
  display: grid;
  place-items: center;
  width: min(var(--container), calc(100% - 40px));
  margin: 24px auto;
  min-height: 92px;
  padding: 16px;
  background: var(--soft);
  border: 1px dashed #cbd5e1;
  overflow: hidden;
}

.ad-slot--square {
  width: 100%;
  min-height: 250px;
  margin: 24px 0 0;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr) 300px;
  gap: 28px;
  padding: 28px 0 42px;
}

.lead-story h1 {
  margin: 10px 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead-story p,
.article-lead,
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.eyebrow,
.news-card__meta,
.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.eyebrow a,
.news-card__meta a,
.article-kicker a,
.news-preview__category {
  color: var(--accent);
  font-weight: 850;
}

.image-frame {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2f7, #dfe6ee);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

a.image-frame:hover img,
.news-card:hover .image-frame img,
.news-preview:hover .image-frame img {
  transform: scale(1.025);
  opacity: .94;
}

.lead-story__image { aspect-ratio: 16 / 9; }

.news-card__image { aspect-ratio: 4 / 3; }

.lead-grid__secondary {
  display: grid;
  gap: 18px;
}

.news-card {
  min-width: 0;
}

.news-card--compact {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.news-card--compact .news-card__image {
  grid-row: span 2;
  aspect-ratio: 4 / 3;
}

.news-card--compact .news-card__meta {
  margin-top: 0;
}

.news-card__title {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.news-card--compact .news-card__title {
  margin: 0;
  font-size: 16px;
}

.news-card__title a,
.news-preview h2 a,
.news-preview h3 a,
.lead-story h1 a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.news-card:hover .news-card__title a,
.news-preview:hover h2 a,
.news-preview:hover h3 a,
.lead-story:hover h1 a {
  text-decoration: underline;
}

.news-card__summary {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.right-rail {
  min-width: 0;
}

.rail-block {
  padding: 16px;
  background: var(--soft);
  border-top: 4px solid var(--blue-900);
}

.rail-block + .rail-block { margin-top: 24px; }

.rail-block h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.ranked-list {
  counter-reset: rank;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ranked-list li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ranked-list li::before {
  content: counter(rank);
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.ranked-list a {
  font-weight: 750;
  line-height: 1.25;
}

.ranked-list span {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-top: 20px;
  border-top: 3px solid var(--blue-900);
}

.section-header h2 {
  margin: 0;
  font-size: 25px;
}

.section-header > a {
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

.news-block {
  padding: 22px 0 38px;
}

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

.news-strip-block {
  padding: 8px 0 34px;
}

.news-strip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.strip-item {
  display: block;
  padding: 14px 16px;
  background: var(--soft);
  border-left: 4px solid var(--accent);
}

.strip-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 4px;
}

.strip-item strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.feed-section,
.split-layout {
  padding: 20px 0 56px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
}

.preview-list {
  display: grid;
  gap: 0;
}

.news-preview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.news-preview.is-hidden { display: none; }

.news-preview__image {
  aspect-ratio: 16 / 10;
}

.news-preview h2,
.news-preview h3 {
  margin: 4px 0 6px;
  font-size: 23px;
  line-height: 1.16;
}

.news-preview p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-preview time {
  color: var(--muted);
  font-size: 12px;
}

.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 20px;
  background: var(--blue-900);
  color: #fff;
  border-radius: 6px;
  font-weight: 800;
  transition: background-color 160ms var(--ease), opacity 160ms var(--ease);
}

.load-more[hidden],
.load-more-sentinel[hidden] { display: none; }

.page-heading {
  padding: 34px 0 22px;
}

.page-heading h1,
.content-page h1,
.not-found h1 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
}

.page-search {
  display: flex;
  align-items: center;
  width: min(680px, 100%);
  height: 44px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.rail-list {
  display: grid;
}

.rail-list a {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 750;
  line-height: 1.26;
}

.rail-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

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

.article-main h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.article-hero {
  margin: 24px 0;
  aspect-ratio: 16 / 9;
}

.article-hero figcaption {
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.article-body {
  font-size: 18px;
  line-height: 1.62;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.15em;
}

.article-body h2,
.article-body h3 {
  margin: 1.6em 0 .55em;
  line-height: 1.14;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote {
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  font-weight: 650;
}

.article-rail {
  position: sticky;
  top: 150px;
}

.tts-block,
.share-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tts-block[hidden] { display: none; }

.tts-block h2 {
  margin: 0;
  font-size: 16px;
}

.tts-block p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.tts-block__controls,
.share-block {
  flex-wrap: wrap;
}

.tts-block button,
.share-block button,
.share-block a,
.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  background: var(--blue-900);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.tts-block button[disabled] {
  cursor: not-allowed;
  opacity: .5;
}

.share-block span {
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}

.source-link a {
  color: var(--accent);
  font-weight: 850;
}

.content-page {
  max-width: 820px;
  padding: 42px 20px 64px;
}

.content-page__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 24px 0;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form p {
  margin: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.contact-form textarea { min-height: 140px; }

.form-success {
  color: #047857;
  font-weight: 800;
}

.not-found {
  max-width: 720px;
  padding: 72px 20px;
}

.not-found p {
  color: var(--muted);
  font-size: 18px;
}

.not-found__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button--ghost {
  background: #fff;
  color: var(--blue-900);
  border: 1px solid var(--line);
}

.button--ghost:hover {
  background: var(--soft);
  color: var(--blue-900);
}

.empty-state {
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  margin-top: 16px;
  background: var(--blue-950);
  color: #dbeafe;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr));
  gap: 28px;
  padding: 42px 0 30px;
}

.brand--footer { color: #fff; }

.site-footer__brand p {
  max-width: 340px;
  color: #b7c7df;
  margin: 14px 0 0;
}

.site-footer__column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
}

.site-footer a:hover { color: #fff; }

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #b7c7df;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .lead-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  }

  .lead-grid > .right-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }

  .news-block__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-rail {
    position: static;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .utility-row { display: none; }

  .masthead__inner {
    min-height: 62px;
    gap: 12px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 23px;
  }

  .brand__text {
    font-size: 25px;
  }

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

  .icon-button {
    display: grid;
  }

  .primary-nav {
    position: fixed;
    inset: 62px 0 auto 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
    box-shadow: 0 14px 28px rgba(7, 31, 69, .18);
  }

  .is-menu-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav__inner {
    display: grid;
    width: 100%;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    padding: 10px 16px 16px;
  }

  .primary-nav__link {
    min-height: 42px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .topic-strip__inner {
    min-height: 36px;
  }

  .lead-grid,
  .split-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .lead-grid > .right-rail {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .news-block__grid,
  .news-strip-list,
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-preview {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
  }

  .news-preview h2,
  .news-preview h3 {
    font-size: 19px;
  }

  .tts-block {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-search {
    position: absolute;
    left: 14px;
    right: 68px;
    top: calc(100% + 8px);
    width: auto;
    display: none;
    background: #fff;
    box-shadow: 0 10px 24px rgba(7,31,69,.16);
  }

  .is-menu-open .header-search {
    display: flex;
  }

  .lead-grid {
    padding-top: 22px;
  }

  .lead-story h1 {
    font-size: 30px;
  }

  .lead-grid__secondary,
  .news-block__grid,
  .news-strip-list,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .news-card--compact,
  .news-preview {
    grid-template-columns: 1fr;
  }

  .news-card--compact .news-card__image,
  .news-preview__image {
    aspect-ratio: 16 / 9;
  }

  .news-card__summary,
  .news-preview p {
    -webkit-line-clamp: unset;
  }

  .page-heading h1,
  .content-page h1,
  .not-found h1,
  .article-main h1 {
    font-size: 30px;
  }

  .article-body {
    font-size: 16px;
  }

  .share-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__legal {
    flex-direction: column;
  }
}
