/* ============================================================
   extra.css — small additions on top of theme.scss (Statecraft)
   Scope: references hanging indent, navbar polish, landing hero,
   figure/table captions. Brand tokens mirrored from theme.scss:
     ink #1C1916 · verdigris #4A6B5C · verdigris-deep #3A5648
     paper #F2EDE3 · paper-soft #EAE3D4 · ink-mute #6B6357
     rule rgba(28,25,22,.14)
   ============================================================ */

/* ---- Navbar: align with the editorial / paper register ---- */
.navbar {
  border-bottom: 1px solid rgba(28, 25, 22, 0.14);
  background-color: #EAE3D4 !important;
  backdrop-filter: saturate(1.1);
}
.navbar .navbar-brand {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1C1916 !important;
}
.navbar .navbar-nav .nav-link {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6B6357 !important;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #3A5648 !important;
}

/* ---- Page footer ---- */
.nav-footer {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  color: #6B6357;
  border-top: 1px solid rgba(28, 25, 22, 0.14);
}
.nav-footer a { color: #3A5648; }

/* ============================================================
   Landing hero
   ============================================================ */
.paper-lede {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #1C1916;
  max-width: 34ch;
  margin: 1.5rem 0 2rem;
  text-wrap: pretty;
}
.paper-lede em { color: #3A5648; }

.paper-eyebrow {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4A6B5C;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-family: "Newsreader", Georgia, serif !important;
  font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
  color: #1C1916;
  margin: 0 0 0.5rem;
  border: 0 !important;
  padding: 0 !important;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-sub {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #6B6357;
  max-width: 44ch;
  margin: 0 0 2rem;
}

/* "At a glance" two-column overview cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(28, 25, 22, 0.14);
  border: 1px solid rgba(28, 25, 22, 0.14);
  margin: 2.5rem 0;
}
.overview-cell {
  background: #F2EDE3;
  padding: 1.5rem 1.4rem;
}
.overview-cell h3 {
  font-family: "Public Sans", system-ui, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A6B5C !important;
  margin: 0 0 0.7rem !important;
}
.overview-cell p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: #1C1916;
}
@media (max-width: 760px) {
  .overview-grid { grid-template-columns: 1fr; }
}

/* Figure gallery on the landing page */
.fig-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 1rem;
}
.fig-gallery figure { margin: 0; }
.fig-gallery img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(28, 25, 22, 0.14);
  background: #fff;
  border-radius: 2px;
}
.fig-gallery figcaption {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: #6B6357;
  margin-top: 0.45rem;
}
@media (max-width: 760px) {
  .fig-gallery { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Paper body: figures, tables, references
   ============================================================ */

/* Figures from the paper sit on white so the chart antialiasing
   reads cleanly against the cream page. */
figure.quarto-figure img,
.figure img,
main img {
  background: #ffffff;
  border: 1px solid rgba(28, 25, 22, 0.10);
  border-radius: 2px;
  padding: 0.4rem;
}
figure.quarto-figure figcaption,
.figure-caption,
figcaption {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  color: #6B6357;
  line-height: 1.45;
}

/* Tables — quiet, archival */
main table {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  border-collapse: collapse;
  width: 100%;
  margin: 0.5rem 0 0.5rem;
}
main table caption {
  caption-side: top;
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  color: #6B6357;
  text-align: left;
  padding-bottom: 0.5rem;
}
main table thead th {
  border-bottom: 1.5px solid rgba(28, 25, 22, 0.30);
  border-top: 1px solid rgba(28, 25, 22, 0.30);
  font-weight: 600;
  color: #1C1916;
  text-align: left;
  padding: 0.5rem 0.7rem;
}
main table tbody td {
  border-bottom: 1px solid rgba(28, 25, 22, 0.07);
  padding: 0.42rem 0.7rem;
}
main table tbody tr:last-child td {
  border-bottom: 1.5px solid rgba(28, 25, 22, 0.30);
}
/* Right-align numeric columns where present */
main table td.numeric,
main table th.numeric { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- References: hanging indent ---- */
.references {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 1rem;
}
.references > p {
  padding-left: 1.7em;
  text-indent: -1.7em;
  margin-bottom: 0.6rem;
  color: #2A2622;
}
.references > p a { word-break: break-word; }

/* ---- RQ / definition callouts use the theme's callout styles ---- */
.rq {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.95rem;
}

/* Keep the title block subtitle in the serif italic register */
#title-block-header .subtitle {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #6B6357;
  line-height: 1.3;
  margin-top: 0.4rem;
}
