:root {
  --bg: #f4f5f7;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #d8dee8;
  --brand-blue: #007ab8;
  --brand-navy: #0b2a5b;
  --brand-navy-deep: #071b3d;
  --chip: #e9f2f9;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(8, 27, 61, 0.09);
  --nav-shift: 0px;
  --nav-logo-scale: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(100rem 34rem at 7% -15%, #ffffff 0%, #f4f5f7 45%, #e9eef6 100%);
  line-height: 1.65;
}

a {
  color: var(--brand-navy);
}

.container {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 56px) 72px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 0 16px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.74) 0%, rgba(241, 245, 251, 0.66) 100%);
  backdrop-filter: blur(10px) saturate(130%);
  border-bottom: 1px solid var(--line);
  transform: translate3d(0, var(--nav-shift), 0);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topbar.is-scrolled {
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.9) 0%, rgba(240, 246, 253, 0.86) 100%);
  border-bottom-color: #c6d2e2;
  box-shadow: 0 8px 22px rgba(8, 27, 61, 0.11);
}

.topbar-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 250px;
  height: auto;
  transform: scale(var(--nav-logo-scale));
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav {
  display: flex;
  gap: clamp(12px, 1.6vw, 18px);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.kicker {
  margin: 24px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--brand-navy);
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0;
}

h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  max-width: 28ch;
}

.lead {
  margin-top: 14px;
  color: var(--muted);
  max-width: 76ch;
  font-size: 1.06rem;
}

.page-hero {
  margin-top: 14px;
  min-height: 330px;
  display: flex;
  align-items: flex-start;
  padding: 26px clamp(18px, 3.2vw, 36px);
  border: 1px solid #c9d7e9;
  border-radius: 12px;
  background-image:
    linear-gradient(90deg, rgba(4, 18, 40, 0.78) 0%, rgba(8, 26, 52, 0.55) 42%, rgba(8, 29, 58, 0.25) 68%, rgba(8, 29, 58, 0.18) 100%),
    url("assets/hero/primary-site-hero.png");
  background-size: cover;
  background-position: center center;
  box-shadow: 0 12px 28px rgba(8, 27, 61, 0.16);
}

.hero-copy {
  min-width: 0;
  max-width: min(70ch, 70%);
}

.page-hero .kicker {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #c6dcff;
}

.page-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.page-hero .lead {
  color: #dbe7f7;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chip {
  background: var(--chip);
  border: 1px solid #d0deeb;
  border-radius: 999px;
  color: #1e456f;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 12px;
}

.featured {
  margin-top: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
}

.featured-copy {
  padding: 20px 22px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.featured h2 {
  margin-top: 10px;
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
}

.featured p {
  margin: 8px 0 0;
  color: var(--muted);
}

.featured-panel {
  background: linear-gradient(155deg, var(--brand-blue) 0%, var(--brand-navy) 56%, var(--brand-navy-deep) 100%);
  color: #f5f8ff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-panel p {
  margin: 0;
  color: #dfeafb;
}

.featured-media {
  margin: 0;
  height: clamp(240px, 28vw, 370px);
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d0dae8;
  box-shadow: 0 2px 8px rgba(11, 42, 91, 0.10);
}

.featured-media img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

.featured-media figcaption {
  padding: 6px 8px;
  font-size: 0.74rem;
  color: #e8f1ff;
  background: rgba(7, 27, 61, 0.85);
}

.featured-hidden-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.controls {
  margin-top: 16px;
}

.controls-top {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #d3deeb;
  border-radius: 12px;
  background: #f9fbff;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #b9c7da;
  border-radius: 999px;
  padding: 2px 6px 2px 10px;
  background: rgba(255, 255, 255, 0.82);
}

.nav-search-input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 7px 0;
  min-width: 180px;
  font-size: 0.9rem;
  color: var(--ink);
}

.nav-search-input:focus {
  outline: none;
}

.nav-clear-btn {
  border: 0;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  background: #e2ecf9;
  color: #24486f;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.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;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.topic-pill {
  border: 1px solid #b9c7da;
  background: #ffffff;
  color: #2b4363;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}

.topic-pill.active {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

.control-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.search-input {
  width: 100%;
  border: 1px solid #b9c7da;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

.search-input::placeholder {
  color: #8091a8;
}

.select-input {
  width: 100%;
  border: 1px solid #b9c7da;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

.actions-wrap {
  display: flex;
  align-items: end;
}

.reset-btn {
  border: 1px solid #b8c9df;
  background: #eef4fc;
  color: #243b5a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.results-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn {
  display: inline-block;
  margin-top: 0;
  text-decoration: none;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 8px 16px rgba(11, 42, 91, 0.2);
}

.btn.secondary {
  background: #f2f6fc;
  color: var(--brand-navy);
  border: 1px solid #c8d7ec;
  box-shadow: none;
}

.btn-group {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

section {
  margin-top: 44px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.section-head h2 {
  font-size: 1.65rem;
}

.cards {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(11, 42, 91, 0.06);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  opacity: 0;
  transform: translateY(14px);
  animation: card-enter 500ms ease forwards;
}

.cards .card:nth-child(2) {
  animation-delay: 80ms;
}

.cards .card:nth-child(3) {
  animation-delay: 160ms;
}

.card-media {
  margin: 0;
  overflow: hidden;
  border-radius: 9px;
}

.card-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
}

.card-body {
  padding: 10px 8px 8px;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #c1d2e8;
  box-shadow: 0 12px 24px rgba(11, 42, 91, 0.1);
}

.card h3 {
  margin-top: 8px;
  font-size: 1.06rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.card .meta {
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b6a7d;
  line-height: 1.35;
  -webkit-line-clamp: initial;
  -webkit-box-orient: initial;
  display: block;
}

.card a {
  display: inline-block;
  margin-top: 11px;
  text-decoration: none;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card a::after {
  content: " \203A";
}

.article-wrap {
  max-width: 930px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.article {
  margin-top: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.article h1 {
  max-width: 24ch;
  font-size: clamp(1.85rem, 3.1vw, 2.8rem);
}

.report-cover {
  margin: 18px 0 0;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(11, 42, 91, 0.12);
}

.report-cover img {
  width: 100%;
  display: block;
  max-height: 460px;
  object-fit: cover;
  object-position: top center;
}

.exec {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  background: #f2f8fe;
}

.exec h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.exec ul {
  margin: 0;
  padding-left: 20px;
}

.exec li + li {
  margin-top: 8px;
}

.callout {
  margin-top: 18px;
  border: 1px solid #c8d9ee;
  background: #f7fbff;
  border-radius: 10px;
  padding: 14px 16px;
}

.prose {
  margin-top: 20px;
  max-width: 72ch;
  font-size: 1.03rem;
}

.prose h2 {
  margin-top: 30px;
  font-size: 1.45rem;
}

.prose p {
  margin: 12px 0 0;
}

.related {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.related h2 {
  font-size: 1.2rem;
}

.related a {
  text-decoration: none;
  color: var(--brand-navy);
  font-weight: 600;
}

.no-results {
  margin-top: 14px;
  color: var(--muted);
  font-style: italic;
}

@keyframes card-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .topbar {
    transform: none;
    transition: none;
  }

  .brand img {
    transform: none;
    transition: none;
  }

  .card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #2a68ca;
  outline-offset: 2px;
  border-radius: 8px;
}

@media (max-width: 1080px) {
  .topbar {
    gap: 12px;
  }

  .brand img {
    width: 220px;
  }

  .nav {
    gap: 16px;
    padding-right: 6px;
  }

  .page-hero {
    min-height: 290px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    padding-right: 2px;
    gap: 14px;
  }

  .topbar-tools {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-search {
    width: 100%;
  }

  .nav-search-input {
    width: 100%;
    min-width: 0;
  }

  .page-hero {
    min-height: 260px;
    padding: 20px 16px;
    background-position: center 24%;
  }

  .hero-copy {
    max-width: 100%;
  }

  .brand img {
    width: 205px;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .container,
  .article-wrap {
    padding: 18px 14px 52px;
  }

  .article {
    padding: 20px;
  }

  .brand img {
    width: 190px;
  }

  .nav {
    padding-right: 2px;
    gap: 14px;
  }
}