/* ==========================================================================
   A Calibrated Framework for AI-Resilient Assessment Design — stylesheet
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Base surfaces & ink */
  --cream: #f7f2e8;
  --cream-2: #fdfaf4;
  --navy: #1b2340;
  --navy-2: #12172c;
  --ink: #2d2a25;
  --muted: #6b675f;
  --muted-on-navy: #a9adc4;
  --cream-text: #f7f2e8;
  --border: rgba(27, 35, 64, 0.12);
  --border-soft: rgba(27, 35, 64, 0.08);
  --border-on-navy: rgba(247, 242, 232, 0.16);

  /* Category colors — vivid: backgrounds & large/bold text only */
  --slate: #5b5f6b;
  --indigo: #3f4f95;
  --teal: #1c8478;
  --coral: #d9622f;
  --gold: #c99a2e;

  /* Category colors — text-safe on cream (small text, links, eyebrows) */
  --coral-ink: #b64c20;
  --teal-ink: #19766b;
  --gold-decorative: #a97e20;
  --gold-fill: #f6e3ab;

  /* Chart-only, validated against the navy card surface */
  --chart-indigo: #7c8ce0;
  --chart-gold: #ad7f24;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(27, 35, 64, 0.06), 0 12px 28px -16px rgba(27, 35, 64, 0.22);
  --shadow-card-lg: 0 2px 4px rgba(27, 35, 64, 0.06), 0 24px 48px -20px rgba(27, 35, 64, 0.28);
  --content-width: 1180px;
  --header-h: 64px;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:has(:target) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
img, svg { max-width: 100%; display: block; }
/* An <img> carrying width/height attributes needs height:auto to keep its
   aspect ratio once max-width shrinks it. Set it on the element itself, not
   on a per-figure class, so a renamed or missing class can't stretch an
   image. */
img { height: auto; }
ul, ol { padding-left: 1.2em; }
a { color: var(--indigo); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--coral-ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold-decorative);
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; }
button { font-family: inherit; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy); color: var(--cream-text);
  padding: 0.6em 1em; border-radius: var(--radius-sm);
  z-index: 1000; transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---- Layout ---------------------------------------------------------------- */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--navy { background: var(--navy); color: var(--cream-text); }
.section--card {
  background: var(--cream-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head { margin-bottom: var(--space-8); }
.section-head--wide { max-width: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral-ink); margin-bottom: 0.9em;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; background: var(--gold-decorative);
  transform: rotate(45deg); flex: none;
}
.eyebrow--on-navy { color: #f0c979; }
.eyebrow--on-navy::before { background: #f0c979; }
.eyebrow--teal { color: var(--teal-ink); }
.eyebrow--teal::before { background: var(--teal); }

.section-title {
  display: flex; align-items: flex-end; gap: 0.4em;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 700;
}
.section-title__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 0.75;
  color: var(--gold-decorative); flex: none;
}
.section-lede {
  margin-top: var(--space-4); font-size: 1.1rem; color: var(--ink);
}
.section--navy .section-lede { color: var(--muted-on-navy); }

.prose p { color: var(--ink); }

/* ---- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--header-h);
}
.site-header__inner {
  max-width: var(--content-width); margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.brand { display: flex; align-items: center; gap: 0.65em; text-decoration: none; color: var(--navy); }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand__text span { color: var(--coral-ink); font-style: italic; }

.nav__list {
  list-style: none; display: flex; gap: clamp(0.9rem, 2vw, 1.6rem);
  margin: 0; padding: 0;
}
.nav__link {
  color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 600;
  padding: 0.4em 0.1em; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav__link:hover { color: var(--coral-ink); }
.nav__link.is-active { color: var(--coral-ink); border-bottom-color: var(--coral-ink); }

/* The design tool is not a section of the guide — it is a separate page that
   does something. It reads as an action, set apart from the framework links. */
.nav__item--cta { margin-left: 0.35rem; }
.nav__cta {
  background: var(--gold); color: #2b2103;
  border-radius: 100px; padding: 0.45em 1.05em;
  font-weight: 700; white-space: nowrap;
  border-bottom: 0 !important;
  transition: background 0.2s ease;
}
.nav__cta:hover { background: #dcaa3a; color: #2b2103; }
.nav__cta.is-active { color: #2b2103; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--cream-2); cursor: pointer;
  flex: none;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.site-header.is-open .nav-toggle__bars { background: transparent; }
.site-header.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* The nav carries a CTA now, so it needs to collapse before the row can
   overflow the header — measured, that is just above 1050px. */
@media (max-width: 1050px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .site-header.is-open .nav { max-height: 70vh; overflow-y: auto; }
  .nav__list { flex-direction: column; padding: var(--space-4) clamp(1.25rem, 4vw, 3rem) var(--space-6); gap: 0; }
  .nav__link { display: block; padding: 0.8em 0; border-bottom: 1px solid var(--border-soft); }
  .nav__link.is-active { border-bottom-color: var(--border-soft); }
  .nav__item--cta { margin: 0.7rem 0 0.2rem; }
  .nav__cta { display: inline-block; padding: 0.55em 1.2em; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  background: radial-gradient(120% 140% at 15% -10%, #232c52 0%, var(--navy) 45%, var(--navy-2) 100%);
  color: var(--cream-text);
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
}
/* Cap the hero's children, not the container. Capping .container itself let
   its margin-inline:auto centre the narrower box, which pushed the hero text
   ~170px right of the left edge every other section sits on. 744px is the
   text measure that 840px-minus-padding produced, so nothing else moves. */
.hero__title, .hero__subtitle, .hero__meta { max-width: 744px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6em;
  border: 1px solid var(--border-on-navy); border-radius: 999px;
  padding: 0.5em 1.1em; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-navy);
  margin-bottom: var(--space-8);
}
.hero__swatches { display: inline-flex; gap: 5px; }
.hero__swatches span { width: 10px; height: 10px; border-radius: 2px; }
.hero__swatches span:nth-child(1) { background: var(--chart-indigo); }
.hero__swatches span:nth-child(2) { background: var(--teal); }
.hero__swatches span:nth-child(3) { background: var(--coral); }

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 3.75rem);
  line-height: 1.08; color: #ffffff; margin: 0 0 0.55em;
}
.hero__title em { color: #f0a875; font-style: italic; }
.hero__subtitle {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted-on-navy);
  max-width: 46ch; margin: 0 0 var(--space-6);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.5em 1.5em; align-items: center;
  padding-top: var(--space-6); border-top: 1px solid var(--border-on-navy);
  font-size: 0.95rem; color: var(--muted-on-navy);
}
.hero__meta strong { color: var(--cream-text); font-weight: 600; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 0.7em 1.35em; border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--gold { background: var(--gold); color: #2b2103; }
.btn--gold:hover { background: #dcaa3a; }
.btn--ghost { border: 1px solid var(--border-on-navy); color: var(--cream-text); }
.btn--ghost:hover { background: rgba(247, 242, 232, 0.08); border-color: rgba(247, 242, 232, 0.4); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }

/* ---- Front-matter / TOC -------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-16);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: var(--space-10, 2.5rem); } }
.about-grid h3 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }
.about-grid h3:first-child { margin-top: 0; }

.toc { background: var(--cream-2); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--space-6); }
.toc__heading { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-4); }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__item { border-top: 1px solid var(--border-soft); }
.toc__item:first-child { border-top: none; }
.toc__link {
  display: flex; align-items: baseline; gap: 0.9em;
  padding: 0.85em 0.1em; text-decoration: none; color: var(--ink);
}
.toc__link:hover .toc__label { color: var(--coral-ink); }
.toc__num { font-family: var(--font-display); font-weight: 700; color: var(--gold-decorative); font-size: 1rem; flex: none; width: 1.6em; }
.toc__label { flex: 1; font-weight: 600; }
.toc__page { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.9rem; }

.toc__aside {
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
  font-size: 0.9rem; color: var(--muted);
}
.toc__aside a { color: var(--coral-ink); font-weight: 600; text-decoration: none; }
.toc__aside a:hover { text-decoration: underline; }

/* ---- Pull quotes & callouts ---------------------------------------------- */
.pullquote {
  border-left: 4px solid var(--indigo);
  padding: 0.3em 0 0.3em 1.3em;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--navy);
  margin: var(--space-8) 0;
}

.callout { border-radius: var(--radius-lg); padding: var(--space-6) var(--space-8); margin: var(--space-8) 0; }
.callout:last-child { margin-bottom: 0; }
.callout__kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6em; display: block; }
.callout--proposition { background: linear-gradient(180deg, #fbf3de, #f6e9c4); border: 1px solid #e7cd8d; }
.callout--proposition .callout__kicker { color: var(--gold-decorative); }
.callout--proposition p { font-size: 1.15rem; color: var(--navy); }
.callout--equity { background: #fbeae1; border: 1px solid #eec7ae; }
.callout--equity .callout__kicker { color: var(--coral-ink); }
.callout--note { background: #e3f0ec; border: 1px solid #b9d8ce; }
.callout--note .callout__kicker { color: var(--teal-ink); }

/* ---- Key terms grid ------------------------------------------------------- */
.terms-grid { display: grid; gap: var(--space-4); margin: var(--space-8) 0; }
.term-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  background: var(--cream-2); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--border-soft);
}
@media (max-width: 700px) { .term-card { grid-template-columns: 1fr; } }
.term-card__label {
  display: flex; align-items: center; padding: var(--space-6);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff;
}
.term-card__body { padding: var(--space-6); display: flex; align-items: center; color: var(--ink); }
.term-card--authorization .term-card__label { background: var(--indigo); }
.term-card--verification .term-card__label { background: var(--teal); }
.term-card--accountability .term-card__label { background: var(--coral); }

/* ---- Venn diagram --------------------------------------------------------- */
.figure { margin: var(--space-8) 0 0; }
.figure-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, var(--space-12)); box-shadow: var(--shadow-card);
}
.figure figcaption { margin-top: var(--space-6); font-style: italic; color: var(--muted); text-align: center; font-size: 0.98rem; }
.venn-svg { width: 100%; height: auto; max-width: 640px; margin-inline: auto; }

/* ---- Flow diagram (Figure 2) ------------------------------------------------
   A pre-rendered image straight from the source design rather than a hand-
   built recreation. min-width on the image + overflow-x on the card means
   small screens scroll a full-detail diagram instead of shrinking dense text
   past legibility. */
.figflow-card { overflow-x: auto; }
.figflow-img { display: block; width: 100%; min-width: 900px; height: auto; }

/* ---- Levels table ----------------------------------------------------------- */
/* Pull the wrapper out by one cell's padding so the table's first-column text
   lands on the same left edge as the paragraphs above it, and the last
   column's text on the same right edge. Without this the cell padding sat the
   whole grid 16px inside the text column. */
.levels-table-wrap {
  overflow-x: auto; margin-top: var(--space-8);
  margin-inline: calc(-1 * var(--space-4));
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.levels-table { width: 100%; min-width: 920px; background: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.levels-table caption { caption-side: top; text-align: left; font-size: 0.95rem; color: var(--muted); padding: 0 0 var(--space-4); }
.levels-table th, .levels-table td { text-align: left; padding: var(--space-4) var(--space-4); vertical-align: top; font-size: 0.92rem; }
.levels-table thead th {
  background: var(--navy); color: var(--cream-text); font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.levels-table thead th:last-child { color: #1b2340; background: var(--gold-fill); }
.levels-table tbody tr { border-top: 1px solid var(--border-soft); }
.levels-table tbody tr:nth-child(even) { background: var(--cream-2); }
.levels-table td:last-child, .levels-table th:last-child { background: var(--gold-fill); }
.levels-table tbody tr:nth-child(even) td:last-child { background: #f2dda0; }
.level-badge {
  display: inline-flex; flex-direction: column; gap: 0.1em;
  font-weight: 700; color: var(--navy);
}
.level-badge__level { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.level-badge__name { font-family: var(--font-display); font-size: 1.05rem; }
.levels-table td:last-child strong, .levels-table th:last-child { color: var(--navy); }
.levels-table td em { color: var(--muted); font-style: italic; }

.levels-note {
  margin-top: var(--space-6);
  font-size: 0.95rem; color: var(--muted); line-height: 1.6;
}
.levels-note strong { color: var(--navy); }

/* ---- Reviewing & recalibrating (per-level signals) ------------------------- */
.review-levels {
  margin-top: var(--space-8); background: #fbeae1; border: 1px solid #eec7ae;
  border-radius: var(--radius-lg); padding: var(--space-8);
}
.review-levels__title {
  display: flex; align-items: center; gap: 0.5em;
  font-size: 1.25rem; color: var(--coral-ink); margin-bottom: var(--space-3);
}
.review-levels__title svg { width: 20px; height: 20px; flex: none; }
.review-levels__lede { color: var(--ink); margin-bottom: var(--space-4); }
.review-levels__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.review-levels__list li {
  font-size: 0.95rem; color: var(--ink); line-height: 1.6;
  padding-left: var(--space-4); border-left: 2px solid #e0a583;
}
.review-levels__list strong { color: var(--navy); }

/* ---- Steps ------------------------------------------------------------------ */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); margin-top: var(--space-8); }
@media (max-width: 700px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); display: flex; gap: var(--space-4); }
.step-card__num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--gold-decorative); flex: none; line-height: 1; }
.step-card__title { font-size: 1.1rem; margin-bottom: 0.35em; }
.step-card__body { color: var(--muted); font-size: 0.96rem; margin: 0; }

.recalibrating { background: #e7e9f5; border: 1px solid #ccd0ec; border-radius: var(--radius-lg); padding: var(--space-8); margin-top: var(--space-8); }
.recalibrating__kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); margin-bottom: 0.5em; display: block; }
.recalibrating__title { font-size: 1.35rem; margin-bottom: var(--space-4); }
.recalibrating__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.recalibrating__list li { display: flex; gap: var(--space-3); align-items: baseline; }
.recalibrating__list-num {
  flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--indigo); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700;
  transform: translateY(0.15em);
}
.recalibrating__list p { margin: 0; }

/* ---- Worked examples ---------------------------------------------------------
   A direct port of CARA_report.html's .exv component: literal values from that
   file's CSS (padding, font sizes, colors), not values re-derived from this
   site's own scale. Stacked single-column, one card after another, matching
   the reference exactly rather than a 2-column adaptation. */
.examples-grid { display: grid; gap: var(--space-8); margin-top: var(--space-8); }

.example-card {
  background: #fff; border-radius: 0.875rem; overflow: hidden;
  box-shadow: 0 6px 20px rgba(23, 32, 58, 0.06); border: 1px solid var(--border-soft);
  border-top: 4px solid;
}
.example-card--e1 { border-top-color: var(--teal); }
.example-card--e2 { border-top-color: var(--indigo); }
.example-card--e3 { border-top-color: var(--coral); }
.example-card--e4 { border-top-color: #6b4e9e; }
.example-card--e5 { border-top-color: #b08a2e; }

.example-card__banner { padding: 0.8125rem 1.125rem; background: var(--navy); }
.example-card__kicker {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f4b740;
}
.example-card__title { font-size: 1.0625rem; color: #fff; margin: 0.25rem 0 0.125rem; }
.example-card__subtitle { font-style: italic; font-family: var(--font-display); color: #c9cfdd; font-size: 0.78rem; }

.example-card__fields { display: block; }
.field { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--border-soft); }
@media (max-width: 640px) { .field { grid-template-columns: 1fr; } }
.field__label {
  display: flex; align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.594rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; padding: 0.6875rem 0.875rem;
}
.field__label--competence { background: #57607a; }
.field__label--authorization { background: var(--indigo); }
.field__label--verification { background: var(--teal); }
.field__label--accountability { background: var(--coral); }
.field__label--skills { background: #f4b740; color: #5a4300; }
.field__text {
  margin: 0; padding: 0.6875rem 1rem; font-size: 0.78rem; color: var(--ink);
  display: flex; align-items: center; line-height: 1.42;
}
.field:last-child .field__text { background: #fcf0d3; font-weight: 600; }
.field__text strong { color: var(--navy); }

/* ---- Scope & cautions ---------------------------------------------------------- */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-8); }
@media (max-width: 800px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-card { border-radius: var(--radius-lg); padding: var(--space-8); }
.scope-card__kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.7em; display: block; }
.scope-card--equity { background: #fbeae1; border: 1px solid #eec7ae; }
.scope-card--equity .scope-card__kicker { color: var(--coral-ink); }
.scope-card--note { background: #e3f0ec; border: 1px solid #b9d8ce; }
.scope-card--note .scope-card__kicker { color: var(--teal-ink); }
.scope-card p { color: var(--ink); }

/* ---- FAQ ------------------------------------------------------------------------ */
.faq-list { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
.faq-item {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  border-left: 4px solid var(--indigo);
  padding: var(--space-6); box-shadow: var(--shadow-card);
}
.faq-item__q { font-size: 1.08rem; margin-bottom: 0.5em; }
.faq-item__a { margin: 0; color: var(--ink); font-size: 0.97rem; line-height: 1.65; }

/* ---- Attribution / further reading ---------------------------------------------- */
.citation-box { background: var(--navy); color: var(--cream-text); border-radius: var(--radius-lg); padding: var(--space-8); margin: var(--space-8) 0; }
.citation-box__kicker { font-weight: 700; margin-bottom: 0.6em; display: block; }
.citation-box code {
  display: block; margin-top: var(--space-3); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem; background: rgba(255,255,255,0.06); padding: var(--space-4); border-radius: var(--radius-sm);
  color: var(--muted-on-navy); line-height: 1.6; overflow-x: auto;
}
.citation-box code em { color: var(--cream-text); font-style: italic; }

/* ---- Contact ---------------------------------------------------------------- */
.contact {
  margin-top: var(--space-6); background: #e7e9f5; border: 1px solid #ccd0ec;
  border-radius: var(--radius-lg); padding: var(--space-8);
}
.contact__kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: var(--space-3);
}
.contact__body { margin: 0; color: var(--ink); }
.contact__action { margin: var(--space-4) 0 0; }
.btn--contact { background: var(--indigo); color: #fff; }
.btn--contact:hover { background: #33407c; }
.btn--contact svg { width: 17px; height: 17px; }

/* ---- Open licence ----------------------------------------------------------- */
.licence {
  margin-top: var(--space-8); background: #e3f0ec; border: 1px solid #b9d8ce;
  border-radius: var(--radius-lg); padding: var(--space-8);
}
.licence__mark {
  display: flex; align-items: center; gap: 0.7em; margin-bottom: var(--space-3);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal-ink);
}
.licence__badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--teal); color: #fff; border-radius: var(--radius-sm);
  padding: 0.35em 0.7em; letter-spacing: 0.06em;
}
.licence__body { margin: 0; color: var(--ink); }
.licence__body a { color: var(--teal-ink); font-weight: 600; }
.licence__attr {
  margin: var(--space-4) 0 0; padding-top: var(--space-4);
  border-top: 1px solid #b9d8ce; font-size: 0.92rem; color: var(--ink);
}
.licence__attr span {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.35em;
}

.reading-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.reading-item { border-left: 3px solid var(--coral); padding-left: var(--space-4); font-size: 0.96rem; color: var(--ink); }
.reading-item cite { font-style: italic; }

/* ---- Footer ---------------------------------------------------------------------- */
.site-footer { background: var(--navy-2); color: var(--muted-on-navy); padding-block: var(--space-16) var(--space-8); }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); padding-bottom: var(--space-8); border-bottom: 1px solid var(--border-on-navy); }
@media (max-width: 700px) { .footer__cols { grid-template-columns: 1fr; } }
.footer__brand { font-family: var(--font-display); color: #fff; font-size: 1.15rem; margin-bottom: 0.5em; }
.footer__desc { max-width: 40ch; font-size: 0.92rem; }
.footer__heading { color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9em; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6em; font-size: 0.92rem; }
.footer__list a { color: var(--muted-on-navy); text-decoration: none; }
.footer__list a:hover { color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-6); font-size: 0.85rem; }
.footer__legal a { color: var(--cream-text); text-decoration: underline; }
.footer__legal a:hover { color: #fff; }

/* ---- Back to top ------------------------------------------------------------------- */
.back-to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-card-lg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 90;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top svg { width: 20px; height: 20px; }

/* ---- Print --------------------------------------------------------------------------- */
@media print {
  .site-header, .back-to-top, .nav-toggle { display: none !important; }
  .hero, .section--navy, .citation-box { background: #fff !important; color: #000 !important; }
  .section { padding-block: 1.25rem; }
  a { color: #000; text-decoration: underline; }
}
