:root {
  --accent: var(--theme-accent, #d6001c);
  --navy: #071932;
  --navy-2: #102a4c;
  --ink: #111318;
  --muted: #626a73;
  --line: #dfe3e8;
  --soft: #f4f6f8;
  --white: #ffffff;
  --warning: #f4c542;
  --container: 1240px;
  --ease: cubic-bezier(.2, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

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

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  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 {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  transition: transform 160ms var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  border-bottom-color: #cfd6de;
}

.utility-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 700;
}

.utility-bar__inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.utility-bar__donate {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--navy);
  background: var(--warning);
  border-radius: 999px;
}

.masthead {
  background: var(--navy-2);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.masthead__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr minmax(260px, 360px);
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand:hover {
  color: var(--white);
}

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

.brand__mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  font-weight: 900;
  letter-spacing: 0;
}

.brand__name,
.footer-brand {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.icon-button,
.header-search button,
.tts-block button {
  display: inline-grid;
  place-items: center;
  border: 0;
}

.masthead__menu {
  display: none;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
}

.header-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
}

.header-search input,
.search-page-form input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px 0 0 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, .72);
}

.header-search button {
  height: 42px;
  color: var(--white);
  background: var(--accent);
  border-radius: 0 999px 999px 0;
  font-weight: 900;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
  overflow: hidden;
}

.search-suggestions a {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.search-suggestions img {
  width: 46px;
  height: 36px;
  object-fit: cover;
  background: var(--soft);
}

.primary-nav {
  background: var(--white);
}

.primary-nav__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.primary-nav__link:hover {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.ticker-strip {
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.ticker-strip__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-strip span {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--white);
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-strip a {
  font-size: 13px;
  font-weight: 750;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 90px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.ad-slot--square {
  min-height: 250px;
  margin: 0;
}

.home-hero {
  padding: 28px 0 12px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.section-heading a {
  font-size: 13px;
  font-weight: 850;
  color: var(--accent);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr) 300px;
  gap: 28px;
  align-items: start;
}

.lead-story__image,
.news-card__image,
.compact-card__image,
.news-preview__image,
.article-figure {
  display: block;
  overflow: hidden;
  background: var(--soft);
}

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

.lead-story__image img,
.news-card__image img,
.compact-card__image img,
.news-preview__image img,
.article-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms var(--ease), opacity 180ms var(--ease);
}

.lead-story:hover img,
.news-card:hover img,
.compact-card:hover img,
.news-preview:hover img {
  transform: scale(1.025);
  opacity: .92;
}

.lead-story h2,
.article-header h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  font-weight: 950;
}

.lead-story p,
.article-lead,
.page-kicker p {
  margin: 0;
  color: #414851;
  font-size: 17px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.story-meta a {
  color: var(--accent);
  text-transform: uppercase;
}

.secondary-stack,
.headline-list,
.preview-list {
  display: grid;
  gap: 0;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.compact-card:first-child {
  padding-top: 0;
}

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

.compact-card h3,
.news-card__title,
.news-preview h2 {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

.compact-card h3 a:hover,
.news-card__title a:hover,
.lead-story h2 a:hover,
.news-preview h2 a:hover,
.headline-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.right-rail {
  display: grid;
  gap: 20px;
}

.rail-block {
  border-top: 4px solid var(--accent);
  background: #fbfcfd;
  padding: 14px;
}

.rail-block h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.headline-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.headline-list time,
.headline-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.headline-list a {
  font-size: 14px;
  line-height: 1.22;
  font-weight: 850;
}

.news-block {
  padding: 28px 0;
}

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

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

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

.news-card__title a,
.news-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title a {
  -webkit-line-clamp: 3;
}

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

.ranked-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  counter-reset: rank;
}

.ranked-list li {
  counter-increment: rank;
  position: relative;
  min-height: 90px;
  padding: 16px 0 16px 54px;
  border-top: 1px solid var(--line);
}

.ranked-list li::before {
  content: counter(rank);
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.ranked-list a {
  display: block;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 900;
}

.ranked-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.listing-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 36px 0 56px;
  align-items: start;
}

.page-kicker {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--ink);
}

.page-kicker span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.page-kicker h1 {
  margin: 6px 0 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
  font-weight: 950;
}

.news-preview {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

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

.news-preview p {
  margin: 8px 0 0;
  color: var(--muted);
}

.empty-state,
.success-message {
  padding: 16px;
  background: var(--soft);
  border-left: 4px solid var(--accent);
  font-weight: 750;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-bottom: 20px;
}

.search-page-form input {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  border-radius: 6px 0 0 6px;
}

.search-page-form button,
.load-more-button,
.contact-form button,
.not-found__actions a,
.share-block a,
.share-block button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 16px;
  color: var(--white);
  background: var(--accent);
  font-weight: 850;
  transition: transform 100ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.search-page-form button {
  border-radius: 0 6px 6px 0;
}

.search-page-form button:hover,
.load-more-button:hover,
.contact-form button:hover,
.not-found__actions a:hover,
.share-block a:hover,
.share-block button:hover {
  color: var(--white);
  background: #a90016;
  border-color: #a90016;
}

.search-page-form button:active,
.load-more-button:active,
.contact-form button:active,
.not-found__actions a:active,
.share-block button:active {
  transform: translateY(1px);
}

.load-more-button {
  margin: 28px auto 0;
}

.load-more-sentinel {
  height: 1px;
}

.article-layout {
  grid-template-columns: minmax(0, 760px) 320px;
}

.article-header {
  margin-bottom: 20px;
}

.article-figure {
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
}

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

.article-tools {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.share-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.share-block span {
  margin-right: 4px;
  font-weight: 900;
}

.share-block a,
.share-block button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.tts-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--navy);
  color: var(--white);
  border-left: 4px solid var(--accent);
}

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

.tts-block h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 950;
}

.tts-block p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.tts-block__controls {
  display: flex;
  gap: 6px;
}

.tts-block button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-weight: 900;
}

.tts-block button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.tts-block.is-playing button[data-tts-toggle] {
  background: var(--warning);
}

.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.05em;
}

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

.article-body a,
.source-link 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: 750;
}

.source-link {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 850;
}

.page-layout {
  max-width: 840px;
  padding: 40px 0 64px;
}

.page-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 22px;
}

.contact-card {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.contact-card h2 {
  margin: 0 0 12px;
}

.contact-form p {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

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

.not-found {
  min-height: 54vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 56px 0;
}

.not-found span {
  color: var(--accent);
  font-size: 68px;
  line-height: 1;
  font-weight: 950;
}

.not-found h1 {
  margin: 8px 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
}

.not-found p {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--muted);
}

.not-found__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer {
  color: rgba(255, 255, 255, .78);
  background: var(--navy);
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 360px;
  margin: 12px 0 0;
}

.site-footer__col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__legal {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .home-hero__grid,
  .listing-layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .home-hero__grid {
    grid-template-areas:
      "lead rail"
      "secondary rail";
  }

  .lead-story {
    grid-area: lead;
  }

  .secondary-stack {
    grid-area: secondary;
  }

  .right-rail {
    grid-area: rail;
  }

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

@media (max-width: 860px) {
  .utility-bar {
    display: none;
  }

  .masthead__inner {
    min-height: 62px;
    grid-template-columns: 40px 1fr 42px;
    gap: 12px;
  }

  .masthead__menu {
    display: inline-grid;
  }

  .brand__name {
    font-size: 22px;
  }

  .header-search {
    justify-self: end;
    width: 42px;
    grid-template-columns: 42px;
  }

  .header-search input {
    position: absolute;
    right: 0;
    top: calc(100% + 9px);
    width: min(82vw, 340px);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    border-color: var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }

  .header-search input::placeholder {
    color: var(--muted);
  }

  .header-search.is-open input,
  .header-search:focus-within input {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-search button {
    border-radius: 6px;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  }

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

  .primary-nav__inner {
    width: 100%;
    max-height: 70vh;
    display: grid;
    align-items: stretch;
    overflow: auto;
    padding: 8px 16px;
  }

  .primary-nav__link {
    border-bottom: 1px solid var(--line);
  }

  .ticker-strip__inner {
    overflow-x: auto;
  }

  .home-hero__grid,
  .listing-layout,
  .article-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .right-rail {
    grid-area: auto;
  }

  .news-grid,
  .ranked-list,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-preview {
    grid-template-columns: 180px 1fr;
  }
}

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

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__name {
    font-size: 18px;
  }

  .home-hero {
    padding-top: 20px;
  }

  .lead-story h2,
  .article-header h1 {
    font-size: 30px;
  }

  .section-heading {
    align-items: flex-end;
    gap: 12px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 20px;
  }

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

  .compact-card h3,
  .news-preview h2,
  .news-card__title {
    font-size: 16px;
  }

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

  .news-card__title a,
  .news-card__summary {
    -webkit-line-clamp: unset;
  }

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

  .article-tools,
  .share-block,
  .tts-block,
  .site-footer__legal {
    align-items: stretch;
    flex-direction: column;
  }

  .share-block a,
  .share-block button {
    width: 100%;
  }

  .search-page-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-page-form input,
  .search-page-form button {
    border-radius: 6px;
  }
}
