/* ==========================================================================
   Dingal AI Research — site stylesheet
   Values are lifted from the approved design canvas (design/*.dc.html).
   ========================================================================== */

:root {
  --navy-900: #062a42;   /* utility bar, footer */
  --navy-800: #0b4a7a;   /* masthead brand, primary nav, section rules */
  --navy-700: #08395f;   /* active nav item */
  --blue-600: #12659f;   /* links */
  --blue-300: #6fb4e4;   /* active nav underline */
  --blue-200: #8ec3e9;   /* hero eyebrow */
  --blue-100: #cfe3f2;   /* hero summary */

  --ink: #16202b;
  --ink-prose: #23303c;
  --ink-soft: #43515e;
  --muted: #4c5a66;
  --muted-light: #6a7783;

  --rule: #d5dce2;
  --rule-soft: #e7ecf1;
  --rule-tint: #dde4ea;
  --field: #c3ccd5;
  --tint: #f2f5f8;
  --white: #ffffff;

  --notice-bg: #f7efdd;
  --notice-rule: #e2d2ab;
  --notice-ink: #533f10;
  --notice-accent: #8a5a00;

  --topic-colour: var(--navy-800);

  --sans: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: 40px;
}

/* --------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.012em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-800); text-decoration: underline; }

:focus-visible {
  outline: 3px solid #b8860b;
  outline-offset: 2px;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--tint);
  border: 1px solid var(--rule-soft);
  padding: 0.1em 0.35em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* ------------------------------------------------------- utility bar */

.utility-bar {
  background: var(--navy-900);
  color: #b9cddd;
  font-size: 12px;
}
.utility-bar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.utility-bar__note { letter-spacing: 0.01em; padding: 6px 0; }
.utility-bar__nav ul { display: flex; gap: 22px; flex-wrap: wrap; }
.utility-bar__nav { margin-left: auto; }
.utility-bar a { color: #b9cddd; }
.utility-bar a:hover { color: var(--white); }

.lang {
  position: relative;
  padding-left: 22px;
  border-left: 1px solid #17435f;
}
.lang > summary {
  list-style: none;
  cursor: pointer;
  color: var(--white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.lang > ul {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--field);
  box-shadow: 0 12px 28px rgba(6, 42, 66, 0.16);
}
.lang > ul a {
  display: block;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.lang > ul li:last-child a { border-bottom: 0; }

/* ---------------------------------------------------------- masthead */

.masthead { background: var(--white); border-bottom: 1px solid var(--rule); }
.masthead__inner {
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .emblem { color: var(--navy-800); flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__name {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.brand__tagline { font-size: 12.5px; color: var(--muted); }

.site-search {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  height: 42px;
  border: 1px solid var(--field);
}
.site-search input {
  width: 268px;
  max-width: 100%;
  border: 0;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--white);
}
.site-search input::placeholder { color: var(--muted-light); opacity: 1; }
.site-search input:focus { outline: 2px solid var(--navy-800); outline-offset: -2px; }
.site-search button {
  border: 0;
  background: var(--navy-800);
  color: var(--white);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 20px;
  cursor: pointer;
}
.site-search button:hover { background: var(--navy-700); }

/* ------------------------------------------------------ primary nav */

.primary-nav { background: var(--navy-800); position: relative; }
.primary-nav__list { display: flex; flex-wrap: wrap; }
.primary-nav__item { position: relative; }
.primary-nav__link {
  display: block;
  padding: 0 20px;
  line-height: 54px;
  color: #dceaf5;
  font-size: 15px;
  font-weight: 600;
}
.primary-nav__link:hover {
  color: var(--white);
  background: var(--navy-700);
  text-decoration: none;
}
.primary-nav__link.is-active {
  color: var(--white);
  background: var(--navy-700);
  box-shadow: inset 0 -3px 0 var(--blue-300);
}

.primary-nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  width: 320px;
  background: var(--white);
  border: 1px solid var(--field);
  border-top: 0;
  box-shadow: 0 12px 28px rgba(6, 42, 66, 0.16);
}
.primary-nav__item.has-menu:hover .primary-nav__menu,
.primary-nav__item.has-menu:focus-within .primary-nav__menu { display: block; }
.primary-nav__menu a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.primary-nav__menu li:last-child a { border-bottom: 0; }
.primary-nav__menu a:hover { background: var(--tint); }

.primary-nav--mobile { display: none; }
.primary-nav--mobile > summary {
  list-style: none;
  cursor: pointer;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}
.primary-nav--mobile > summary::-webkit-details-marker { display: none; }
.burger {
  width: 18px; height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.primary-nav--mobile .primary-nav__list { flex-direction: column; }
.primary-nav--mobile .primary-nav__link {
  line-height: 1.4;
  padding: 14px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.primary-nav--mobile .primary-nav__menu {
  display: block;
  position: static;
  width: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.primary-nav--mobile .primary-nav__menu a {
  color: #cfe3f2;
  border-bottom: 0;
  padding: 10px var(--gutter) 10px calc(var(--gutter) + 18px);
  font-size: 13.5px;
}
.primary-nav--mobile .primary-nav__menu a:hover { background: var(--navy-700); }

/* ------------------------------------------------------- breadcrumbs */

.breadcrumbs {
  background: var(--tint);
  border-bottom: 1px solid var(--rule-tint);
  font-size: 12.5px;
  color: var(--muted-light);
}
.breadcrumbs ol {
  min-height: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 8px 0;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 9px; color: var(--muted-light); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ------------------------------------------------------ alert banner */

.alert-banner {
  background: var(--notice-bg);
  border-bottom: 1px solid var(--notice-rule);
}
.alert-banner p {
  padding: 14px 0;
  font-size: 14px;
  color: var(--notice-ink);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.alert-banner__label {
  background: var(--notice-accent);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 9px;
}
.alert-banner a { color: var(--notice-accent); font-weight: 600; text-decoration: underline; }

/* -------------------------------------------------------------- hero */

.hero { background: var(--navy-800); color: var(--white); }
.hero__inner {
  padding-top: 56px;
  padding-bottom: 60px;
  display: flex;
  gap: 56px;
  align-items: center;
}
.hero__text { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; }
.hero__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-200);
}
.hero h1 { font-size: 43px; line-height: 1.16; max-width: 640px; }
.hero__summary {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--blue-100);
  max-width: 610px;
}
.hero__actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.hero__media { flex: 0 0 380px; }
.hero__media .banner { height: 236px; }

.button { font-size: 14.5px; font-weight: 600; display: inline-block; }
.button:hover { text-decoration: none; }
.button--primary {
  background: var(--white);
  color: var(--navy-800);
  font-weight: 700;
  padding: 13px 24px;
}
.button--primary:hover { background: var(--blue-100); color: var(--navy-800); }
.button--ghost {
  border: 1px solid #6d9ec4;
  color: var(--white);
  padding: 12px 24px;
}
.button--ghost:hover { background: var(--navy-700); color: var(--white); }

/* ------------------------------------------------------------- bands */

.band { padding: 52px 0; }
.band--light, .band--tint { background: var(--tint); border-top: 1px solid var(--rule-tint); border-bottom: 1px solid var(--rule-tint); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--navy-800);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 25px; }
.section-head__link { font-size: 14px; font-weight: 600; }
.section-head__link::after { content: " \2192"; }

/* -------------------------------------------------------- statistics */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.stat-row--wide { gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-row--wide .stat { padding: 0 28px; border-right: 1px solid var(--rule); }
.stat-row--wide .stat:first-child { padding-left: 0; }
.stat-row--wide .stat:last-child { padding-right: 0; border-right: 0; }
.stat { display: flex; flex-direction: column; gap: 7px; }
.stat__value {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label { font-size: 14.5px; font-weight: 600; }
.stat__note { font-size: 12.5px; color: var(--muted-light); }

.banner { display: block; width: 100%; }

/* ------------------------------------------------------------- cards */

.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-decoration: none;
}
.card:hover { text-decoration: none; border-color: var(--navy-800); }
.card__title { font-size: 18.5px; color: var(--navy-800); }
.card:hover .card__title { text-decoration: underline; }
.card__summary { font-family: var(--serif); font-size: 15px; line-height: 1.58; color: var(--muted); }
.card__more { font-size: 13.5px; font-weight: 600; color: var(--blue-600); margin-top: 4px; }
.card__more::after { content: " \2192"; }
.card--compact { padding: 22px; }
.card--topic { border-top: 3px solid var(--topic-colour); }

/* -------------------------------------------------------- post cards */

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.feature-grid--single { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }

.post-card { border: 1px solid var(--rule); background: var(--white); display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--navy-800); }
.post-card__media { display: block; background: #eaf1f7; }
.post-card__media:hover { text-decoration: none; }
.post-card .banner { height: 106px; }
.post-card--featured .banner { height: 148px; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.post-card--featured .post-card__body { padding: 24px; gap: 12px; }
.post-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted-light); }
.post-card--featured .post-card__meta { gap: 12px; font-size: 12.5px; }
.post-card__title { font-size: 17px; line-height: 1.32; }
.post-card--featured .post-card__title { font-size: 21px; line-height: 1.3; }
.post-card__title a { color: var(--ink); }
.post-card__summary { font-family: var(--serif); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.post-card--featured .post-card__summary { font-size: 15.5px; line-height: 1.6; }
.post-card__author {
  font-size: 12px;
  color: var(--muted-light);
  border-top: 1px solid var(--rule-soft);
  padding-top: 11px;
  margin-top: auto;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--tint);
  color: var(--muted);
  white-space: nowrap;
}
.post-card--featured .badge, .article__meta .badge { font-size: 10.5px; padding: 4px 8px; }
.badge--note    { background: #eef1f3; color: #3d4f5c; }
.badge--report  { background: #e6f0ee; color: #1a6153; }
.badge--release { background: #e8f0f7; color: #12659f; }

/* --------------------------------------------------------- post list */

.post-list { border-top: 1px solid var(--rule); }
.post-row { padding: 24px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 9px; }
.post-row__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-light); }
.post-row__title { font-size: 19px; line-height: 1.35; }
.post-row__title a { color: var(--ink); }
.post-row__summary { font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 80ch; }

.feed-note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.empty { font-family: var(--serif); font-size: 16px; color: var(--muted); padding: 24px 0; }

/* ---------------------------------------------- topics, tags, chips */

.topic-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.topic-strip a {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.topic-strip a:hover { border-color: var(--topic-colour); text-decoration: none; }
.topic-strip a::before {
  content: "";
  width: 11px; height: 11px;
  background: var(--topic-colour);
  flex: none;
}
.topic-strip__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topic-strip__name { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.topic-strip__count { display: block; font-size: 12px; color: var(--muted-light); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule);
  padding: 5px 11px;
  font-size: 12.5px;
  color: var(--ink);
}
.tag::before { content: ""; width: 9px; height: 9px; background: var(--topic-colour); flex: none; }
.tag:hover { border-color: var(--topic-colour); text-decoration: none; }

.filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule-tint);
  margin-bottom: 32px;
}
.filter-bar__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 9px;
  flex: none;
}
.filter-bar ul { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: block;
  border: 1px solid var(--rule);
  background: var(--white);
  padding: 7px 13px;
  font-size: 13px;
  color: var(--muted);
}
.chip:hover { border-color: var(--topic-colour); color: var(--ink); text-decoration: none; }
.chip.is-active {
  background: var(--topic-colour);
  border-color: var(--topic-colour);
  color: var(--white);
  font-weight: 600;
}

/* ------------------------------------------------------- page header */

.page-header { border-top: 4px solid var(--navy-800); background: var(--white); padding: 38px 0 34px; }
.page-header--topic { border-top-color: var(--topic-colour); border-bottom: 1px solid var(--rule-tint); }
.page-header > .container > * { max-width: 780px; }
.page-header__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--topic-colour);
  margin-bottom: 14px;
}
.page-header h1 { font-size: 36px; line-height: 1.2; }
.page-header__summary {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 14px;
}
.page-header__count {
  font-size: 13.5px;
  color: var(--muted-light);
  border-top: 1px solid var(--rule-soft);
  padding-top: 14px;
  margin-top: 18px;
}

/* ----------------------------------------------------------- article */

.article__header { border-top: 4px solid var(--topic-colour); background: var(--white); padding: 40px 0 32px; }
.article__header > .container > * { max-width: 830px; }
.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-light);
  margin-bottom: 18px;
}
.article__reading { padding-left: 14px; border-left: 1px solid var(--rule); }
.article__header h1 { font-size: 38px; line-height: 1.2; }
.article__summary {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: 18px;
}
.article__author { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 18px; }
.article__header .tag-list { margin-top: 22px; }

.article__banner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.article__banner .banner { height: 230px; background: var(--tint); }

.article__layout { display: flex; gap: 64px; align-items: flex-start; padding-bottom: 56px; }
.article__aside { flex: 0 0 300px; display: flex; flex-direction: column; gap: 22px; }
.article__cite { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.page-layout { display: flex; gap: 64px; align-items: flex-start; }
.page-aside { flex: 0 0 300px; display: flex; flex-direction: column; gap: 22px; }

.aside-block { border: 1px solid var(--rule); padding: 22px; }
.aside-block--tint { background: var(--tint); border-color: var(--rule-tint); }
.aside-block h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 14px;
}
.aside-block--tint h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; }
.aside-block p { font-family: var(--serif); font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.aside-block p:last-child { margin-bottom: 0; }
.aside-nav li + li { margin-top: 11px; }
.aside-nav a { font-size: 14px; }
.aside-nav [aria-current="page"] { font-weight: 700; color: var(--ink); }

.toc { border: 1px solid var(--rule); padding: 22px; }
.toc h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 14px;
}
.toc li + li { margin-top: 11px; }
.toc a { font-size: 14px; }

.detail-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 13.5px; }
.detail-list dt { color: var(--muted-light); }
.detail-list dd { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------- prose */

.prose { flex: 1 1 0; max-width: 760px; display: flex; flex-direction: column; gap: 26px; }
.prose > * { margin: 0; }
.prose p {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--ink-prose);
}
.prose h2 { font-size: 25px; letter-spacing: -0.015em; padding-top: 8px; }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 17px; }

.prose-list { display: flex; flex-direction: column; gap: 12px; }
.prose-list li {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-prose);
  padding-left: 26px;
  position: relative;
}
ul.prose-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: var(--navy-800);
}
ol.prose-list { counter-reset: prose-item; gap: 14px; }
ol.prose-list li { padding-left: 40px; counter-increment: prose-item; }
ol.prose-list li::before {
  content: counter(prose-item);
  position: absolute;
  left: 0; top: 0.1em;
  width: 26px; height: 26px;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose blockquote {
  border-left: 3px solid var(--topic-colour);
  padding: 4px 0 4px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prose blockquote p {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
.prose blockquote cite { font-family: var(--sans); font-size: 13px; color: var(--muted-light); font-style: normal; }

.callout { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.callout--info { background: var(--tint); border-top: 3px solid var(--navy-800); }
.callout--warning { background: #fdf6e8; border-top: 3px solid var(--notice-accent); }
.callout__title {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.callout--warning .callout__title { color: var(--notice-accent); }
.callout p { font-size: 16px; line-height: 1.65; }
.callout--warning p { color: #4a3a12; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-wrap caption {
  caption-side: top;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--tint);
}
.table-wrap th, .table-wrap td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--rule-soft); }
.table-wrap thead th { font-weight: 700; border-bottom: 2px solid var(--navy-800); }
.table-wrap tbody th { font-weight: 600; }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: 0; }

.figure { margin: 0; }
.figure .banner { height: 200px; background: var(--tint); }
.figure figcaption { font-size: 13px; color: var(--muted-light); padding-top: 12px; }

.link-list { border-top: 1px solid var(--rule); padding-top: 20px; }
.link-list__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.link-list li + li { margin-top: 10px; }
.link-list a { font-size: 15px; font-weight: 600; }
.link-list a::before { content: "\2192  "; color: var(--muted-light); }

.rule { border: 0; border-top: 1px solid var(--rule); }

.prose .stat-row, .prose .card-grid { margin: 6px 0; }

/* ------------------------------------------------------------ search */

.search-page__form { margin-bottom: 28px; }
.search-page__form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.search-page__row { display: flex; gap: 0; max-width: 620px; border: 1px solid var(--field); }
.search-page__row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.search-page__row input:focus { outline: 2px solid var(--navy-800); outline-offset: -2px; }
.search-page__row button {
  border: 0;
  background: var(--navy-800);
  color: var(--white);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 0 24px;
  cursor: pointer;
}
.search-status { font-size: 14px; color: var(--muted); padding: 8px 0 16px; }
.search-browse { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 24px; }
.search-browse h2 { font-size: 18px; margin-bottom: 16px; }
mark { background: #fdf0c8; color: inherit; padding: 0 2px; }

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--navy-900); color: #cfdce7; }
.site-footer .container { padding-top: 48px; }
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fb2d8;
  margin-bottom: 16px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: #cfdce7; font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-col--contact p {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.6;
  color: #a8c1d5;
  margin-bottom: 16px;
}
.footer-col--contact a { color: var(--white); font-weight: 600; }
.footer-col--contact a::after { content: " \2192"; }

.site-footer__bottom {
  border-top: 1px solid #14415f;
  padding: 26px 0 34px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer__mark { display: flex; align-items: center; gap: 12px; }
.site-footer__mark .emblem { color: #7fb2d8; }
.site-footer__mark span { font-size: 15px; font-weight: 700; color: var(--white); }
.site-footer__legal { font-size: 12.5px; color: #92aec5; margin-left: auto; max-width: 380px; }
.site-footer__address { font-size: 12.5px; color: #92aec5; line-height: 1.7; font-style: normal; }

/* -------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article__layout, .page-layout { gap: 40px; }
  .article__aside, .page-aside { flex-basis: 260px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .primary-nav--desktop { display: none; }
  .primary-nav--mobile { display: block; }
  .hero__inner { flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 40px; padding-bottom: 44px; }
  .hero h1 { font-size: 34px; }
  .hero__media { flex: 1 1 auto; width: 100%; }
  .hero__media .banner { height: 170px; }
  .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-row--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .stat-row--wide .stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .stat-row--wide .stat:nth-child(3) { padding-left: 0; }
  .article__layout, .page-layout { flex-direction: column; }
  .article__aside, .page-aside { flex: 1 1 auto; width: 100%; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .article__header h1 { font-size: 31px; }
  .page-header h1 { font-size: 30px; }
}

@media (max-width: 680px) {
  .masthead__inner { min-height: 0; }
  .site-search { margin-left: 0; width: 100%; }
  .site-search input { width: auto; flex: 1 1 auto; }
  .utility-bar__inner { gap: 12px; }
  .utility-bar__note { display: none; }
  .utility-bar__nav { margin-left: 0; }
  .lang { margin-left: auto; }
  .card-grid, .card-grid--three, .card-grid--four { grid-template-columns: minmax(0, 1fr); }
  .topic-strip { grid-template-columns: minmax(0, 1fr); }
  .stat-row, .stat-row--wide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stat-row--wide .stat { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat-row--wide .stat:last-child { padding-bottom: 0; border-bottom: 0; }
  .hero h1 { font-size: 28px; }
  .hero__summary { font-size: 16px; }
  .article__header h1 { font-size: 26px; }
  .article__summary { font-size: 17px; }
  .page-header h1 { font-size: 26px; }
  .prose p { font-size: 16.5px; }
  .prose h2 { font-size: 21px; }
  .band { padding: 36px 0; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__legal { margin-left: 0; }
  .filter-bar__label { padding-top: 0; }
}

/* ------------------------------------------------------------- print */

@media print {
  .utility-bar, .primary-nav, .site-search, .breadcrumbs,
  .site-footer__top, .article__banner, .alert-banner, .skip-link { display: none; }
  body { font-size: 11pt; color: #000; }
  .prose p, .prose-list li { font-size: 11pt; line-height: 1.5; }
  .article__header, .page-header { border-top: 2pt solid #000; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .band, .article__layout { padding: 0; }
  .article__aside, .page-aside { display: none; }
}
