:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #111827;
  --muted: #5b6474;
  --line: #d8e0ea;
  --navy: #0a2f63;
  --navy-2: #103f84;
  --accent: #1f6feb;
  --red: #c51f2e;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f5f8fc 0%, #eef2f7 100%);
}

a { color: inherit; }

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

.topline {
  background: #08264f;
  color: #e8f0ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topline-inner {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.live-pill {
  background: var(--red);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topline-copy {
  font-size: 14px;
  color: #d2def3;
}

.refresh-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: white;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}

.brand-row,
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-row {
  padding: 22px 0 18px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #c8dafb 100%);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-kicker {
  margin: 0 0 6px;
  color: #bcd0f4;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.header-meta {
  color: #dce8fb;
  font-size: 14px;
}

.nav-row {
  padding: 0 0 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding-top: 16px;
}

.header-search {
  width: min(360px, 100%);
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: white;
  color: var(--text);
}

.main-layout {
  padding: 26px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.lead-story,
.panel-card,
.news-card,
.section-bar,
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.lead-story {
  overflow: hidden;
}

.lead-image-wrap {
  position: relative;
  background: #dfe7f2;
  min-height: 320px;
}

.lead-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.lead-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(10, 47, 99, 0.92);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead-content {
  padding: 22px;
}

.story-source,
.section-label {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

.lead-content h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  line-height: 1.16;
}

.story-meta,
.summary,
.lead-summary,
.section-copy,
.headline-time,
.headline-source {
  color: var(--muted);
}

.lead-summary {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 18px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
}

.side-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head h3,
.section-bar h2 {
  margin: 0;
  font-size: 1.35rem;
}

.headlines-list {
  display: grid;
  gap: 12px;
}

.headline-item {
  display: grid;
  gap: 6px;
  text-decoration: none;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.headline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.headline-title {
  font-weight: 700;
  line-height: 1.4;
}

.headline-source,
.headline-time {
  font-size: 12px;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-chip,
.source-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.source-chip {
  padding: 8px 11px;
  background: #ecf3ff;
  color: var(--navy);
  border: 1px solid #ccdaf6;
}

.section-bar {
  margin-top: 22px;
  padding: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.status-card {
  margin-top: 22px;
  padding: 18px;
  color: var(--muted);
}

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

.news-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image-wrap {
  background: #dde6f2;
  aspect-ratio: 16 / 9;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-top,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-pill {
  padding: 7px 10px;
  color: var(--navy);
  background: #eaf1fd;
  border: 1px solid #d3e0f8;
}

.headline {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.42;
}

.summary {
  margin: 0;
  line-height: 1.65;
  flex: 1;
}

.story-link {
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
}

.hidden { display: none !important; }

@media (max-width: 1080px) {
  .hero-grid,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lead-story {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .topline-inner,
  .brand-row,
  .nav-row,
  .section-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .header-search {
    width: 100%;
  }

  .hero-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .stack-on-mobile {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 18px, 100%);
  }

  .lead-content,
  .panel-card,
  .section-bar,
  .status-card,
  .card-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .lead-image,
  .lead-image-wrap {
    min-height: 240px;
  }

  .primary-nav {
    gap: 12px;
  }
}
