@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Merriweather:wght@700&display=swap");

:root {
  --bg: #f4f6fa;
  --bg-deep: #0d1b39;
  --surface: #ffffff;
  --surface-alt: #eef2f9;
  --text: #12233f;
  --muted: #5f6f89;
  --line: #d7deea;
  --brand: #174ea6;
  --brand-strong: #0d3f94;
  --accent: #d95f02;
  --ok: #1f8b4c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", "IBM Plex Sans", "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -10%, #d7e7ff 0%, transparent 34%),
    radial-gradient(circle at 110% 15%, #dff8ef 0%, transparent 28%),
    linear-gradient(180deg, #f8f9fc 0%, #f2f5fb 55%, #eef3fb 100%);
  line-height: 1.6;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #0f2a58;
  background: #0f2b59;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

.brand {
  font-family: "Merriweather", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 25px;
  color: #ffffff;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #d9e6ff;
  font-size: 14px;
}

.menu a {
  padding: 4px 6px;
  border-radius: 7px;
}

.menu a:hover {
  background: #1a3d78;
  color: #ffffff;
}

.search-chip {
  border: 1px solid #2e4e88;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  color: #d9e6ff;
  background: #1a3d78;
}

.hero {
  padding: 54px 0 24px;
}

.hero h1 {
  margin: 0;
  font-family: "Merriweather", "Times New Roman", serif;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.4px;
  max-width: 980px;
}

.hero p {
  margin: 14px 0 0;
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.strip-item {
  border: 1px solid #1f396f;
  border-radius: 12px;
  background: linear-gradient(160deg, #1a315b, #10264a);
  color: #f2f5fb;
  padding: 14px;
}

.strip-item strong {
  display: block;
  font-size: 22px;
}

.strip-item span {
  font-size: 13px;
  color: #dbe6ff;
}

.section {
  padding: 16px 0 30px;
}

.section h2 {
  margin: 0 0 14px;
  font-family: "Merriweather", "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 34px);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head a {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.grid.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #b6c9eb;
  box-shadow: 0 14px 36px rgba(17, 41, 84, 0.14);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

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

.pill {
  display: inline-block;
  border: 1px solid #c9d7ef;
  color: var(--brand);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  margin-bottom: 10px;
  background: #edf3ff;
}

.keyline {
  border-top: 1px solid var(--line);
  margin: 6px 0 0;
  padding-top: 18px;
}

.insight-list {
  display: grid;
  gap: 10px;
}

.insight-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
}

.insight-date {
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
}

.insight-title {
  margin: 0 0 4px;
  font-size: 17px;
}

.insight-text {
  margin: 0;
  color: var(--muted);
}

.page-title {
  padding: 38px 0 14px;
}

.page-title h1 {
  margin: 0 0 7px;
  font-family: "Merriweather", "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.06;
}

.page-title p {
  margin: 0;
  color: var(--muted);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.two-col {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.metric {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.metric-value {
  font-size: clamp(30px, 5vw, 44px);
  margin: 2px 0 0;
  font-family: "Merriweather", "Times New Roman", serif;
}

.chart-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
}

.chart-bar {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.bar-fill {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f86db, #174ea6);
}

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

.controls select,
.controls input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 7px 10px;
  font-size: 14px;
}

.button {
  display: inline-block;
  border-radius: 10px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
}

.button.secondary {
  background: transparent;
  color: var(--brand);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.topic-hero {
  margin-top: 20px;
  border: 1px solid #c7d8f5;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(125deg, #0d2a55 0%, #103770 38%, #114f88 100%);
  color: #f0f6ff;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 360px);
  gap: 0;
}

.topic-hero-main {
  padding: 34px 34px 30px;
}

.topic-hero-main h1 {
  margin: 0;
  font-family: "Merriweather", "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
}

.topic-hero-main p {
  margin: 14px 0 0;
  max-width: 640px;
  color: #dbe8ff;
}

.topic-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.topic-stat {
  border: 1px solid rgba(229, 238, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 10px;
}

.topic-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.topic-stat span {
  font-size: 12px;
  color: #d4e2fc;
}

.topic-hero-side {
  border-left: 1px solid rgba(236, 243, 255, 0.2);
  background: linear-gradient(180deg, rgba(8, 24, 55, 0.38), rgba(13, 34, 71, 0.6));
  padding: 24px 22px;
}

.topic-hero-side h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #f6f8ff;
}

.topic-hero-side ol {
  margin: 0;
  padding-left: 18px;
  color: #cfe0ff;
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.topic-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.topic-card {
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #cfdbef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.95));
  position: relative;
}

.topic-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #2f72d6, #1f4f9f);
}

.topic-card h3 {
  margin: 8px 0 8px;
  font-size: 30px;
  line-height: 1;
  font-family: "Merriweather", "Times New Roman", serif;
  color: #1a325f;
}

.topic-card h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.topic-card p {
  margin: 10px 0 0;
  color: #5d6d87;
}

.topic-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #1d4f99;
}

.topic-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-meta span {
  font-size: 12px;
  color: #35547f;
  border: 1px solid #d0def6;
  padding: 3px 8px;
  border-radius: 999px;
}

.topic-note {
  margin-top: 12px;
  border: 1px dashed #bdd1f2;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  color: #3a5580;
  background: #f7fbff;
}

@media (max-width: 780px) {
  .menu {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .insight-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bar-row {
    grid-template-columns: 85px 1fr 52px;
    font-size: 12px;
  }

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

  .topic-hero-side {
    border-left: none;
    border-top: 1px solid rgba(236, 243, 255, 0.2);
  }
}
