:root {
  color-scheme: light;
  --red: #b5121b;
  --red-dark: #8f0e16;
  --gold: #d5a33a;
  --ink: #17202a;
  --muted: #697586;
  --line: #e6e9ee;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --green: #176b5b;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  background: var(--red);
  color: #fff;
  font-size: 13px;
}

.topbar__inner,
.brand-row,
.main-nav__inner,
.topbar__actions,
.search,
.breaking__inner,
.meta,
.tabs {
  display: flex;
  align-items: center;
}

.topbar__inner {
  justify-content: space-between;
  min-height: 34px;
}

.topbar__actions {
  gap: 8px;
}

.icon-button,
.login-button,
.menu-toggle,
.search,
.stat-map button,
.tabs button,
.feed-toolbar button,
.source-link {
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.icon-button,
.menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.brand-row {
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--gold));
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.search {
  flex: 1;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  background: var(--soft);
  border-color: var(--line);
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.menu-toggle {
  display: none;
  color: var(--ink);
  border-color: var(--line);
}

.main-nav {
  border-top: 1px solid var(--line);
}

.main-nav__inner {
  gap: 4px;
  min-height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 14px;
  color: #344054;
}

.main-nav a:hover {
  background: #fff3f3;
  color: var(--red);
}

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

.breaking__inner {
  gap: 18px;
  min-height: 48px;
}

.breaking span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.ticker {
  position: relative;
  flex: 1;
  height: 26px;
  overflow: hidden;
  color: #3d4754;
}

.ticker p {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: ticker 12s infinite;
}

.ticker p:nth-child(2) {
  animation-delay: 4s;
}

.ticker p:nth-child(3) {
  animation-delay: 8s;
}

@keyframes ticker {
  0%,
  9% {
    opacity: 0;
    transform: translateY(16px);
  }
  13%,
  31% {
    opacity: 1;
    transform: translateY(0);
  }
  36%,
  100% {
    opacity: 0;
    transform: translateY(-16px);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 24px;
  padding: 28px 0;
}

.lead-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
}

.lead-card img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.lead-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.78));
}

.lead-card__content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 1;
  color: #fff;
}

.pill,
.category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pill {
  padding: 7px 10px;
  background: var(--gold);
  color: #241600;
}

.category {
  color: var(--red);
}

.lead-card h1 {
  max-width: 780px;
  margin: 14px 0 12px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead-card p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.meta {
  gap: 14px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-stack {
  display: grid;
  gap: 16px;
}

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

.story-card img {
  height: 190px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--soft);
}

.story-card h2,
.story-card h3,
.media-card h3,
.events h3 {
  margin: 5px 0 0;
  line-height: 1.25;
  letter-spacing: 0;
}

.story-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.story-card--compact {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.story-card--compact img {
  height: 112px;
  margin: 0;
}

.story-card--compact h2 {
  font-size: 18px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding: 18px 0 46px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.section-heading a {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

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

.feed-toolbar {
  display: flex;
  gap: 8px;
  margin: -4px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-toolbar button {
  flex: 0 0 auto;
  padding: 9px 12px;
  background: var(--soft);
  color: #3d4754;
  cursor: pointer;
  font-weight: 750;
}

.feed-toolbar button.active {
  background: var(--ink);
  color: #fff;
}

.aggregated-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.aggregated-card img {
  height: 185px;
}

.source-row,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.source-row {
  margin: 12px 0 8px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.source-badge svg {
  flex: 0 0 auto;
  color: var(--green);
}

.source-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-label {
  display: inline-block;
  margin: 12px 0 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.own-context {
  margin-top: 10px;
  padding: 12px;
  border-left: 3px solid var(--gold);
  background: #fffaf0;
  color: #3d4754;
  font-size: 14px;
}

.card-actions {
  margin-top: auto;
  padding-top: 14px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.source-link:hover {
  background: var(--red-dark);
}

.fetched-at {
  color: var(--muted);
  font-size: 12px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 22px;
  border: 1px dashed #c8ced8;
  border-radius: var(--radius);
  background: #f7f9fc;
  color: #4b5563;
  text-align: center;
}

.ad-slot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ad-slot strong {
  margin-top: 4px;
  font-size: 22px;
  color: var(--ink);
}

.ad-slot p {
  max-width: 420px;
  margin: 6px auto 0;
}

.ad-slot--wide {
  min-height: 120px;
  margin-top: 24px;
}

.empty-feed {
  grid-column: 1 / -1;
  min-height: 220px;
  padding: 34px;
  border: 1px dashed #c8ced8;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}

.empty-feed svg {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.empty-feed h3 {
  margin: 10px 0 6px;
  color: var(--ink);
}

.empty-feed p {
  max-width: 520px;
  margin: 0 auto;
}

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel + .panel {
  margin-top: 18px;
}

.pipeline ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #3d4754;
}

.stat-map {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.stat-map img {
  height: 190px;
}

.stat-map button {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 9px 12px;
  background: #fff;
  color: var(--red);
  font-weight: 750;
  cursor: pointer;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.facts div,
.events article {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.facts dt,
.events p {
  color: var(--muted);
}

.facts dd,
.facts dt,
.events p {
  margin: 0;
}

.facts dd {
  font-weight: 720;
}

.events time {
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: var(--radius);
  background: #eef8f5;
  color: var(--green);
  font-weight: 800;
}

.events h3 {
  font-size: 16px;
}

.feature-band {
  background: #0f3f35;
  color: #fff;
  padding: 44px 0;
}

.feature-band__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 32px;
  align-items: start;
}

.feature-band h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.feature-list img {
  height: 170px;
  border-radius: var(--radius);
}

.feature-list h3 {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.media-section {
  padding: 42px 0 54px;
}

.tabs {
  gap: 6px;
  overflow-x: auto;
}

.tabs button {
  padding: 8px 12px;
  background: var(--soft);
  color: #3d4754;
  cursor: pointer;
  font-weight: 700;
}

.tabs button.active {
  background: var(--red);
  color: #fff;
}

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

.media-card {
  min-height: 180px;
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(181, 18, 27, 0.88), rgba(23, 107, 91, 0.88)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80")
      center/cover;
  color: #fff;
}

.media-card svg {
  width: 36px;
  height: 36px;
}

.media-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.media-card.is-hidden {
  display: none;
}

.site-footer {
  background: #111827;
  color: #fff;
  padding: 38px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 220px 220px;
  gap: 32px;
}

.brand--footer small,
.site-footer p {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.site-footer a:not(.brand) {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.74);
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

@media (max-width: 900px) {
  .brand-row {
    min-height: 72px;
  }

  .search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    margin-left: auto;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav__inner {
    display: grid;
    padding: 8px 0 12px;
  }

  .hero,
  .section-grid,
  .feature-band__inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lead-card {
    min-height: 470px;
  }

  .feature-list,
  .media-grid {
    grid-template-columns: 1fr;
  }
}

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

  .topbar__inner {
    min-height: 40px;
  }

  .login-button {
    width: 36px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand small {
    max-width: 185px;
  }

  .breaking__inner {
    align-items: flex-start;
    padding: 10px 0;
  }

  .ticker {
    height: 48px;
  }

  .lead-card {
    min-height: 430px;
  }

  .lead-card__content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .lead-card p {
    font-size: 15px;
  }

  .story-card--compact,
  .news-grid,
  .facts div,
  .events article {
    grid-template-columns: 1fr;
  }

  .source-row,
  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-card--compact img {
    height: 180px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
