:root {
  --blue: #0646a5;
  --blue-dark: #052d68;
  --blue-light: #dceaff;
  --yellow: #ffd31a;
  --yellow-soft: #fff3ad;
  --ink: #151d29;
  --muted: #5a6472;
  --paper: #ffffff;
  --mist: #f3f6fa;
  --line: #d8dee7;
  --green: #0b7a53;
  --max: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--blue-dark);
  transform: translateY(-150%);
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { transform: none; }
.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;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: var(--blue);
  color: #fff;
  border-bottom: 5px solid var(--yellow);
}
.header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--blue-dark);
  border-radius: 50%;
  font-size: 14px;
  border: 3px solid #fff;
}
.brand em { color: var(--yellow); font-style: normal; }
.main-nav { justify-self: center; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--yellow); color: var(--blue-dark); }
.header-tools { position: relative; display: flex; align-items: center; gap: 8px; }
.icon-button.menu-toggle { display: none; }
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.icon-button:hover { background: var(--yellow); color: var(--blue-dark); border-color: var(--yellow); }
.search-glyph {
  width: 17px;
  height: 17px;
  display: block;
  border: 3px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.search-glyph::after {
  content: "";
  width: 8px;
  height: 3px;
  position: absolute;
  right: -7px;
  bottom: -4px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 999px;
}
.search-panel {
  width: min(440px, calc(100vw - 32px));
  position: absolute;
  top: 54px;
  right: 0;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(5, 45, 104, .22);
}
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-form input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.search-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
}
.search-status { margin: 12px 2px 0; color: var(--muted); font-size: 13px; }
.search-results { margin: 12px 0 0; padding: 0; list-style: none; max-height: 320px; overflow-y: auto; }
.search-results li { border-top: 1px solid var(--line); }
.search-results a { display: block; padding: 12px 2px; text-decoration: none; }
.search-results a:hover strong { color: var(--blue); text-decoration: underline; }
.search-results small { display: block; margin-top: 3px; color: var(--muted); }

.cover {
  min-height: 620px;
  position: relative;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.cover::after { content: ""; position: absolute; inset: 0; background: rgba(2, 19, 45, .54); }
.cover-copy { position: relative; z-index: 2; padding-block: 64px 72px; }
.cover-copy-inner { max-width: 780px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 6px; background: var(--yellow); border-radius: 999px; }
.cover .eyebrow { color: #fff; }
.cover h1 { max-width: 760px; margin: 0; font-size: 60px; line-height: 1.08; font-weight: 700; }
.cover p { max-width: 640px; margin: 20px 0 0; font-size: 19px; }
.read-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 700; color: var(--yellow); }
.read-cue::after { content: "→"; font-size: 25px; }
.motion-lines { position: absolute; z-index: 2; right: -30px; bottom: 36px; width: 310px; height: 180px; pointer-events: none; }
.motion-lines i { position: absolute; right: 0; width: 100%; height: 70px; border-top: 5px solid var(--yellow); border-radius: 50%; transform: rotate(-11deg); }
.motion-lines i:nth-child(2) { top: 40px; right: 28px; width: 82%; border-color: #fff; }
.motion-lines i:nth-child(3) { top: 82px; right: 62px; width: 63%; }

.topic-strip { background: var(--yellow); color: var(--blue-dark); }
.topic-row { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; min-width: 0; padding-block: 18px; }
.topic-row strong { white-space: nowrap; }
.topic-links { display: flex; gap: 10px; min-width: 0; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: thin; }
.topic-links a { white-space: nowrap; padding: 7px 12px; border: 2px solid var(--blue-dark); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; }
.topic-links a:hover { background: var(--blue-dark); color: #fff; }

.section { padding-block: 78px; }
.section.alt { background: var(--mist); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { max-width: 760px; margin: 0; font-size: 38px; line-height: 1.18; }
.section-heading > a { color: var(--blue); font-weight: 700; white-space: nowrap; }
.story-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.story-card { grid-column: span 6; min-width: 0; }
.story-card.compact { grid-column: span 4; }
.story-card a { display: block; text-decoration: none; }
.story-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 48% 48% 8px 8px;
  background: var(--blue-light);
  border-bottom: 8px solid var(--yellow);
}
.story-card:nth-child(even) .story-photo { border-radius: 8px 48% 48% 8px; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card a:hover .story-photo img { transform: scale(1.035); }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.story-category { color: var(--blue); }
.story-card h2, .story-card h3 { margin: 8px 0 8px; line-height: 1.24; }
.story-card h2 { font-size: 28px; }
.story-card h3 { font-size: 22px; }
.story-card p { margin: 0; color: var(--muted); }

.pulse-band { background: var(--blue-dark); color: #fff; overflow: hidden; }
.pulse-inner { min-height: 270px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; position: relative; }
.pulse-inner::after { content: ""; width: 270px; height: 270px; border: 24px solid var(--yellow); border-radius: 50%; transform: translateX(36%); }
.pulse-band h2 { margin: 0; max-width: 690px; font-size: 36px; line-height: 1.2; }
.pulse-band p { margin: 14px 0 0; max-width: 650px; color: #dfeaff; }

.page-hero { background: var(--blue-dark); color: #fff; padding: 62px 0 56px; border-bottom: 10px solid var(--yellow); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -90px; border: 22px solid var(--yellow); border-radius: 50%; }
.page-hero h1 { max-width: 900px; margin: 0; font-size: 52px; line-height: 1.12; }
.page-hero p { max-width: 760px; margin: 18px 0 0; color: #dfeaff; font-size: 18px; }
.page-hero .eyebrow { color: #fff; }

.article-header { padding-top: 50px; }
.breadcrumbs { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--blue); font-weight: 700; }
.article-title { max-width: 980px; margin: 0; font-size: 52px; line-height: 1.1; }
.article-deck { max-width: 780px; margin: 22px 0 0; color: var(--muted); font-size: 20px; line-height: 1.55; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; font-weight: 700; }
.article-byline a { color: var(--blue); }
.article-figure { width: min(calc(100% - 40px), 1240px); margin: 42px auto 0; }
.article-figure img { width: 100%; max-height: 700px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 45% 45% 8px 8px; border-bottom: 10px solid var(--yellow); }
.article-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.article-layout { width: min(calc(100% - 40px), 1040px); margin: 56px auto 90px; display: grid; grid-template-columns: minmax(0, var(--reading)) 190px; gap: 70px; align-items: start; }
.article-body { min-width: 0; }
.article-body > p:first-child { font-size: 19px; color: #2c3746; }
.article-body h2 { margin: 56px 0 16px; font-size: 31px; line-height: 1.2; color: var(--blue-dark); }
.article-body h3 { margin: 34px 0 10px; font-size: 22px; line-height: 1.25; }
.article-body h4 { margin: 26px 0 8px; font-size: 17px; line-height: 1.3; color: var(--blue); }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin-bottom: 9px; }
.article-body blockquote { margin: 34px 0; padding: 22px 26px; background: var(--yellow-soft); border-left: 8px solid var(--yellow); border-radius: 0 8px 8px 0; font-weight: 700; }
.article-body table { width: 100%; margin: 26px 0 32px; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--blue-dark); color: #fff; }
.article-body tr:nth-child(even) td { background: var(--mist); }
.article-aside { position: sticky; top: 112px; padding-top: 10px; border-top: 7px solid var(--yellow); }
.article-aside strong { display: block; color: var(--blue-dark); }
.article-aside a { display: block; margin-top: 10px; color: var(--blue); font-size: 14px; font-weight: 700; }
.article-end { margin-top: 48px; padding-top: 24px; border-top: 3px solid var(--ink); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.article-end a { color: var(--blue); font-weight: 700; }

.category-intro { max-width: 760px; }
.category-count { display: inline-block; margin-top: 18px; padding: 7px 12px; border-radius: 999px; background: var(--yellow); color: var(--blue-dark); font-weight: 700; font-size: 13px; }
.empty-category { padding: 24px; background: var(--yellow-soft); border-left: 8px solid var(--yellow); border-radius: 0 8px 8px 0; }

.site-footer { background: var(--ink); color: #fff; padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; }
.site-footer h2 { margin: 0 0 12px; font-size: 22px; }
.site-footer p { margin: 0; color: #c9d0da; max-width: 460px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #46505f; color: #aeb7c4; font-size: 12px; }

@media (max-width: 960px) {
  .header-row { gap: 16px; }
  .main-nav { position: absolute; inset: 78px 0 auto; display: none; background: var(--blue-dark); padding: 16px 20px 20px; border-bottom: 5px solid var(--yellow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { width: min(100%, var(--max)); margin: auto; align-items: stretch; flex-direction: column; }
  .main-nav a { padding: 12px; }
  .header-tools { justify-self: end; }
  .icon-button.menu-toggle { display: grid; }
  .menu-lines, .menu-lines::before, .menu-lines::after { width: 19px; height: 2px; display: block; background: currentColor; border-radius: 999px; }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  .cover { min-height: 570px; }
  .cover h1 { font-size: 48px; }
  .story-card.compact { grid-column: span 6; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; display: none; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .header-row { min-height: 70px; grid-template-columns: 1fr auto; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .main-nav { top: 70px; }
  .search-panel { position: fixed; top: 75px; right: 14px; }
  .cover { min-height: 520px; }
  .cover-copy { padding-block: 56px 52px; }
  .cover h1 { font-size: 34px; }
  .cover p { font-size: 16px; }
  .motion-lines { opacity: .5; width: 220px; }
  .topic-row { grid-template-columns: 1fr; gap: 8px; }
  .topic-links { flex-wrap: wrap; overflow-x: visible; }
  .section { padding-block: 56px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 29px; }
  .section-heading > a { display: inline-block; margin-top: 14px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .story-card, .story-card.compact { grid-column: 1 / -1; }
  .story-card h2 { font-size: 24px; }
  .story-card h3 { font-size: 21px; }
  .pulse-inner { min-height: 300px; grid-template-columns: 1fr; }
  .pulse-inner::after { position: absolute; right: -150px; bottom: -110px; opacity: .45; }
  .pulse-band h2 { font-size: 28px; }
  .page-hero { padding: 48px 0 44px; }
  .page-hero::after { right: -140px; top: -100px; }
  .page-hero h1 { font-size: 34px; }
  .article-header { padding-top: 34px; }
  .article-title { font-size: 34px; }
  .article-deck { font-size: 17px; }
  .article-figure { width: 100%; margin-top: 30px; }
  .article-figure img { border-radius: 0 42% 0 0; }
  .article-figure figcaption { padding-inline: 14px; }
  .article-layout { width: min(calc(100% - 28px), 1040px); margin-top: 40px; }
  .article-body > p:first-child { font-size: 17px; }
  .article-body h2 { font-size: 27px; margin-top: 44px; }
  .article-body h3 { font-size: 21px; }
  .article-body table { display: block; overflow-x: auto; white-space: normal; }
  .article-end { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-photo img { transition: none; }
}
