/* ──────────────────────────────────────────────────────────
   BIES Standards Companion · shared design system
   v1.0 · May 2026
   ────────────────────────────────────────────────────────── */

/* Fira Sans is the NZ Government / govt.nz default typeface. Source Serif kept available but used sparingly. */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700;800&family=Source+Serif+4:wght@400;500;600;700&display=swap');

:root {
  /* MPI-aligned: white surfaces, near-black text, MPI fern green, conservative spacing. */
  --bg:        #ffffff;
  --bg-card:   #ffffff;
  --bg-tool:   #f6f6f4;
  --bg-band:   #000000;     /* MPI uses near-black for the brand band */
  --bg-band-2: #1c1c1c;
  --bg-strip:  #f4f3ee;     /* light strip for utility nav */
  --bg-warn:   #f2c75c;     /* concept-mockup banner colour */
  --ink:       #1a1a1a;     /* MPI body text */
  --ink-soft:  #444444;
  --ink-mute:  #6e6e6e;
  --rule:      #d4d4d0;
  --rule-soft: #e8e6e0;
  --green:     #006e3c;     /* MPI fern green */
  --green-dk:  #004d2a;
  --green-pl:  #dfe9e1;
  --ochre:     #b88420;
  --ochre-pl:  #f5ecd0;
  --warn:      #9b3a1f;
  --warn-pl:   #f6e8df;
  --info:      #1d4673;
  --info-pl:   #dee6f0;
  --shadow:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --serif:     'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:      'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:      ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ── DISCLAIMER BAR (concept mockup notice) ──── */
.disclaimer-bar {
  background: var(--bg-warn);
  color: #1a1a1a;
  border-bottom: 2px solid #c69a26;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.disclaimer-bar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.disclaimer-bar b { font-weight: 700; }
.disclaimer-bar a {
  color: #1a1a1a; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  font-weight: 600;
}
.disclaimer-bar a:hover { background: rgba(0,0,0,0.08); }
.disclaimer-bar .tag {
  background: #1a1a1a; color: var(--bg-warn);
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 2px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--green-dk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
button { font-family: inherit; cursor: pointer; }

/* ── UTILITY STRIP (above brand bar, MPI-style) ── */
.util-strip {
  background: var(--bg-strip);
  border-bottom: 1px solid var(--rule);
  padding: 6px 0;
  font-size: 12px;
}
.util-strip-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  flex-wrap: wrap;
}
.util-strip a {
  color: var(--ink-soft); text-decoration: none;
  padding: 2px 4px;
}
.util-strip a:hover { color: var(--green-dk); text-decoration: underline; }

/* ── TOP BAND (brand bar, MPI black) ───────── */
.topband {
  background: var(--bg-band);
  color: #ffffff;
  padding: 14px 0;
  font-size: 14px;
  border-bottom: 4px solid var(--green);
}
.topband-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.topband-mark {
  display: flex; align-items: baseline; gap: 14px;
  font-weight: 700; letter-spacing: 0;
}
.topband-mark .ko {
  font-style: normal; color: rgba(255,255,255,0.65);
  font-weight: 400; font-size: 12.5px;
}
.topband-meta { color: rgba(255,255,255,0.55); font-size: 12px; font-weight: 400; }

/* ── NAVIGATION ─────────────────────────────── */
.sitenav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(20,33,26,0.02);
}
.sitenav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  gap: 24px;
}
.sitenav-brand {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--sans); font-size: 17px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.005em;
}
.sitenav-brand .v {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  color: var(--ink-mute); letter-spacing: 0.05em;
  padding: 2px 6px; background: var(--rule-soft); border-radius: 2px;
  text-transform: uppercase;
}
.sitenav-links {
  display: flex; gap: 4px; list-style: none; align-items: center;
}
.sitenav-links a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  border-radius: 3px;
  transition: all 0.12s;
}
.sitenav-links a:hover { color: var(--ink); background: var(--rule-soft); }
.sitenav-links a.active { color: var(--green-dk); background: var(--green-pl); font-weight: 600; }

.sitenav-tools {
  position: relative;
}
.sitenav-tools-trigger {
  background: transparent; border: 0;
  padding: 8px 12px;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft);
  border-radius: 3px;
  display: inline-flex; align-items: center; gap: 5px;
}
.sitenav-tools-trigger:hover { color: var(--ink); background: var(--rule-soft); }
.sitenav-tools-trigger.in-tools { color: var(--green-dk); background: var(--green-pl); font-weight: 600; }
.sitenav-tools-trigger::after { content: "▾"; font-size: 9px; opacity: 0.6; }
.sitenav-tools-menu {
  position: absolute;
  top: 100%; left: 0; min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  margin-top: 4px;
  display: none;
  z-index: 200;
}
.sitenav-tools.open .sitenav-tools-menu { display: block; }
.sitenav-tools-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink); text-decoration: none;
  border-radius: 3px;
}
.sitenav-tools-menu a:hover { background: var(--rule-soft); }
.sitenav-tools-menu a.active { background: var(--green-pl); color: var(--green-dk); }
.sitenav-tools-menu a small {
  display: block; color: var(--ink-mute); font-size: 11.5px; font-weight: 400; margin-top: 2px;
}
.sitenav-tools-menu a b { font-weight: 600; }

.sitenav-cta {
  margin-left: 12px;
  padding: 8px 16px;
  background: var(--green); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; border-radius: 3px;
  transition: background 0.15s;
}
.sitenav-cta:hover { background: var(--green-dk); color: #fff; }

/* ── PAGE HEADER (MPI style: white, bold sans, te reo pair) ── */
.pagehead {
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
  padding: 30px 0 36px;
}
.pagehead-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* MPI-style numbered breadcrumbs */
.crumbs {
  font-size: 13px; color: var(--ink-soft);
  margin-bottom: 18px;
  display: flex; flex-wrap: wrap; gap: 0;
}
.crumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0;
}
.crumbs li {
  display: inline-flex; align-items: center;
}
.crumbs li::after {
  content: "›"; color: var(--ink-mute); margin: 0 8px; font-weight: 400;
}
.crumbs li:last-child::after { content: ""; margin: 0; }
.crumbs li:last-child { color: var(--ink); font-weight: 500; }
.crumbs a { color: var(--green-dk); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--green); }

.last-reviewed {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 500;
}
.last-reviewed b { color: var(--ink-soft); font-weight: 600; }

.pagehead-eyebrow {
  color: var(--green-dk); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.pagehead h1 {
  font-family: var(--sans);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 920px;
  color: var(--ink);
}
.pagehead .reo {
  font-family: var(--sans);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 6px;
  font-style: normal;
}
.pagehead .lede {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 760px;
}
.pagehead .meta {
  margin-top: 22px;
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-size: 13px;
  color: var(--ink-mute);
}
.pagehead .meta b { color: var(--ink); font-weight: 600; }

/* ── ON THIS PAGE (MPI side-anchor list) ─── */
.on-this-page {
  background: var(--bg-tool);
  border: 1px solid var(--rule);
  padding: 18px 22px;
  margin-top: 22px;
  border-radius: 0;
}
.on-this-page h5 {
  font-size: 13px; font-weight: 700; color: var(--ink);
  text-transform: none; letter-spacing: 0;
  margin-bottom: 8px;
}
.on-this-page ol, .on-this-page ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 4px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 760px) { .on-this-page ol, .on-this-page ul { grid-template-columns: 1fr; } }
.on-this-page li::before {
  content: "›"; color: var(--green-dk); margin-right: 8px; font-weight: 700;
}
.on-this-page a {
  color: var(--green-dk); text-decoration: underline; text-underline-offset: 3px;
  font-size: 14px; font-weight: 500;
}
.on-this-page a:hover { color: var(--green); }

/* ── LAYOUT ─────────────────────────────────── */
main { padding: 0 0 80px; }
section { padding: 56px 0; border-bottom: 1px solid var(--rule-soft); }
section:last-child { border-bottom: 0; }
section.tight { padding: 40px 0; }
section.dark { background: var(--bg-band); color: #e8e4d4; border-color: #000; }
section.dark .section-eyebrow { color: #c9d8cf; }
section.dark .section-title { color: #f7f4ec; }
section.dark .section-lede { color: rgba(232,228,212,0.8); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 880px; }

.section-eyebrow {
  color: var(--green-dk); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.section-eyebrow .reo {
  font-weight: 400; color: var(--ink-mute);
  text-transform: none; letter-spacing: 0;
  margin-left: 8px;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  color: var(--ink);
}
.section-title .reo {
  display: block;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--ink-mute);
  margin-top: 4px;
}
.section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── FIND OUT MORE / WHO TO CONTACT (MPI footer-of-page) ── */
.find-out-more, .who-to-contact {
  border-top: 1px solid var(--rule);
  padding-top: 22px; margin-top: 32px;
}
.find-out-more h3, .who-to-contact h3 {
  font-family: var(--sans);
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 10px;
}
.find-out-more ul {
  list-style: none; padding: 0; margin: 0;
}
.find-out-more li {
  padding: 4px 0;
}
.find-out-more li::before {
  content: "›"; color: var(--green-dk); margin-right: 8px; font-weight: 700;
}
.find-out-more a {
  color: var(--green-dk); text-decoration: underline; text-underline-offset: 3px;
  font-size: 15px;
}
.find-out-more a:hover { color: var(--green); }
.who-to-contact p {
  font-size: 15px; color: var(--ink); line-height: 1.6;
}
.who-to-contact a {
  color: var(--green-dk); text-decoration: underline; text-underline-offset: 3px;
}

/* ── METRICS ROW ────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 22px;
}
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric {
  background: var(--bg-card);
  padding: 22px 22px 24px;
}
.metric-label {
  font-size: 11px; color: var(--ink-mute); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.metric-value {
  font-family: var(--sans);
  font-size: 30px; font-weight: 600; color: var(--ink);
  line-height: 1.05;
}
.metric-value .unit {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink-mute); margin-left: 4px;
}
.metric-foot { margin-top: 8px; font-size: 12px; color: var(--ink-mute); line-height: 1.4; }

/* ── 2 / 3-col body ──────────────────────────── */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.threecol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .twocol, .threecol { grid-template-columns: 1fr; gap: 32px; } }
.twocol h3, .threecol h3 {
  font-family: var(--sans); font-size: 18px; font-weight: 600;
  margin-bottom: 8px; color: var(--ink);
}
.twocol p, .threecol p { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.6; }

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: var(--green); color: #fff;
  border: 0; border-radius: 3px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--green-dk); color: #fff; }
.btn:disabled { background: var(--ink-mute); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--green-dk); border: 1px solid var(--green); }
.btn.ghost:hover { background: var(--green-pl); color: var(--green-dk); }
.btn.lg { padding: 14px 28px; font-size: 14px; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; color: #fff; }

/* ── DEMO PANEL (for tool pages) ──────────────── */
.demo {
  background: var(--bg-tool);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-top: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-head {
  background: var(--bg-band);
  color: #e8e4d4;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  border-bottom: 1px solid #000;
}
.demo-head-title { display: flex; align-items: baseline; gap: 12px; }
.demo-head-title b { font-weight: 600; font-size: 14px; letter-spacing: 0.01em; }
.demo-head-title span { font-size: 12px; color: rgba(232,228,212,0.65); }
.demo-head-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(232,228,212,0.85);
}
.demo-head-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #6fb88a;
  box-shadow: 0 0 0 3px rgba(111,184,138,0.18);
}

.demo-tabs {
  display: flex; border-bottom: 1px solid var(--rule);
  background: #f1ecdf;
}
.demo-tab {
  flex: 1; padding: 14px 18px;
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  text-align: left; transition: all 0.15s;
}
.demo-tab:hover { color: var(--ink); background: rgba(255,255,255,0.4); }
.demo-tab.active {
  background: var(--bg-tool);
  color: var(--green-dk);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.demo-tab small { display: block; color: var(--ink-mute); font-weight: 400; font-size: 11px; margin-top: 2px; }

.demo-body { padding: 24px 22px 28px; }
.demo-input {
  background: var(--bg-card); border: 1px solid var(--rule);
  border-radius: 3px; padding: 16px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  color: var(--ink-soft);
  width: 100%; min-height: 220px; max-height: 380px;
  resize: vertical; overflow: auto;
}
.demo-input:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
.demo-input[readonly] { background: #f4efe2; cursor: default; }

.demo-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px;
}
.demo-controls .grow { flex: 1; }

.keyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 13px; }
.keyrow label { color: var(--ink-soft); font-weight: 500; }
.keyrow input[type="password"], .keyrow input[type="text"] {
  flex: 1; min-width: 220px;
  padding: 8px 10px;
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 3px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
}
.keyrow input:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
.keyrow .hint { font-size: 12px; color: var(--ink-mute); width: 100%; }
.keyrow .hint a { color: var(--ink-soft); }

.demo-tabpanel { display: none; }
.demo-tabpanel.active { display: block; }

.demo-twoinput {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 760px) { .demo-twoinput { grid-template-columns: 1fr; } }
.demo-twoinput label {
  display: block;
  font-size: 11px; color: var(--ink-mute); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* ── OUTPUT (shared rendering for tools) ──────── */
.out {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  display: none;
}
.out.show { display: block; }
.out-head {
  padding: 16px 20px;
  background: #f4efe2;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.out-head-title {
  font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink);
}
.out-head-meta { font-size: 12px; color: var(--ink-mute); }
.out-body { padding: 24px 22px 28px; }

.summary-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  margin-bottom: 24px;
}
@media (max-width: 760px) { .summary-row { grid-template-columns: repeat(2, 1fr); } }
.summary-cell { background: var(--bg-card); padding: 14px 16px; }
.summary-cell .lab { font-size: 11px; color: var(--ink-mute); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.summary-cell .val { font-family: var(--sans); font-size: 22px; font-weight: 600; margin-top: 4px; color: var(--ink); }
.summary-cell .sub { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }

.findings {
  background: var(--green-pl); border-left: 3px solid var(--green);
  padding: 14px 18px; border-radius: 0 3px 3px 0; margin-bottom: 24px;
}
.findings h4 { font-size: 12px; color: var(--green-dk); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 8px; }
.findings ol { margin-left: 18px; color: var(--ink); font-size: 14px; line-height: 1.6; }
.findings ol li { margin-bottom: 4px; }

.theme {
  border: 1px solid var(--rule); border-radius: 3px;
  margin-bottom: 14px; background: var(--bg-card); overflow: hidden;
}
.theme-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; background: #faf6e9;
  border-bottom: 1px solid var(--rule-soft); cursor: pointer;
}
.theme-head:hover { background: #f4efe2; }
.theme-id {
  flex-shrink: 0; background: var(--ink); color: #f1ecdf;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 2px; letter-spacing: 0.04em;
}
.theme-title {
  flex: 1; font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: var(--ink); line-height: 1.35;
}
.theme-tags { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 2px; letter-spacing: 0.02em;
}
.tag.cnt { background: #efe9d6; color: var(--ink); }
.tag.dis-accept { background: var(--green-pl); color: var(--green-dk); }
.tag.dis-modify { background: #fff1cc; color: #7a5e10; }
.tag.dis-decline { background: var(--warn-pl); color: var(--warn); }
.tag.dis-refer { background: var(--info-pl); color: var(--info); }
.tag.conf-high { background: var(--green-pl); color: var(--green-dk); }
.tag.conf-medium { background: #fff1cc; color: #7a5e10; }
.tag.conf-low { background: var(--warn-pl); color: var(--warn); }
.tag.sme { background: var(--info-pl); color: var(--info); }
.tag.sev-high { background: var(--warn-pl); color: var(--warn); }
.tag.sev-med  { background: #fff1cc; color: #7a5e10; }
.tag.sev-low  { background: var(--green-pl); color: var(--green-dk); }
.tag.cat      { background: var(--ochre-pl); color: #7a5e10; }

.theme-body { padding: 18px 22px 20px; display: none; border-top: 1px solid var(--rule-soft); }
.theme.open .theme-body { display: block; }
.caret { font-family: var(--mono); color: var(--ink-mute); font-size: 14px; transition: transform 0.15s; align-self: center; }
.theme.open .caret { transform: rotate(90deg); }

.theme-section { margin-bottom: 16px; }
.theme-section:last-child { margin-bottom: 0; }
.theme-section h5 {
  font-size: 11px; color: var(--ink-mute); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.quote {
  border-left: 2px solid var(--green);
  padding: 6px 0 6px 14px; margin-bottom: 10px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.55;
  font-family: var(--sans); font-style: italic;
}
.quote .qmeta {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: 12px; color: var(--ink-mute); margin-top: 4px;
}
.quote .qmeta b { color: var(--green-dk); font-weight: 600; }

.theme-rationale { font-size: 14px; color: var(--ink); line-height: 1.6; margin-bottom: 10px; }
.theme-meta-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.theme-meta-row b { color: var(--ink); font-weight: 600; }

.verify {
  background: var(--info-pl); border-left: 3px solid var(--info);
  padding: 16px 20px; border-radius: 0 3px 3px 0; margin-top: 22px;
}
.verify h4 { font-size: 12px; color: var(--info); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 8px; }
.verify ol { margin-left: 18px; color: var(--ink); font-size: 14px; line-height: 1.6; }
.verify ol li { margin-bottom: 4px; }

.scope {
  background: var(--warn-pl); border-left: 3px solid var(--warn);
  padding: 16px 20px; border-radius: 0 3px 3px 0; margin-top: 14px;
}
.scope h4 { font-size: 12px; color: var(--warn); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 8px; }
.scope-item { font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.scope-item code { font-family: var(--mono); font-size: 12px; color: var(--warn); background: rgba(155,58,31,0.08); padding: 1px 5px; border-radius: 2px; }

.status {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--info-pl); color: var(--info);
  border-radius: 3px; font-size: 13px;
  display: none;
}
.status.err { background: var(--warn-pl); color: var(--warn); }
.status.ok { background: var(--green-pl); color: var(--green-dk); }
.status.show { display: block; }

/* ── governance grid ─────────────────────────── */
.gov-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin-top: 24px;
}
@media (max-width: 860px) { .gov-grid { grid-template-columns: 1fr; } }
.gov-cell { background: var(--bg-card); padding: 22px; }
.gov-cell h4 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.gov-cell p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.gov-cell .num {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--green-dk); letter-spacing: 0.06em; margin-bottom: 6px; display: block;
}

/* ── tool cards ──────────────────────────────── */
.toolset {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px;
}
@media (max-width: 760px) { .toolset { grid-template-columns: 1fr; } }
.tool-card {
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 4px;
  padding: 24px 26px; box-shadow: var(--shadow);
  transition: all 0.15s; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
}
.tool-card:hover { border-color: var(--green); box-shadow: var(--shadow-lg); transform: translateY(-1px); color: var(--ink); }
.tool-card .lab {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--green-dk); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.tool-card h3 {
  font-family: var(--sans); font-size: 19px; font-weight: 600;
  margin-bottom: 8px; line-height: 1.25;
}
.tool-card p {
  color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin-bottom: 14px; flex: 1;
}
.tool-card .where {
  font-size: 12px; color: var(--ink-mute);
  padding-top: 12px; border-top: 1px solid var(--rule-soft);
}
.tool-card .where b { color: var(--ink); font-weight: 600; }
.tool-card .cta {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--green-dk);
}

/* ── roadmap ────────────────────────────────── */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 860px) { .road { grid-template-columns: 1fr; } }
.road-card {
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 3px;
  padding: 22px; position: relative;
}
.road-card.now { border-color: var(--green); border-width: 1px; box-shadow: 0 0 0 2px rgba(29,106,64,0.12); }
.road-card .phase {
  font-size: 11px; font-weight: 700; color: var(--green-dk);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
}
.road-card h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.25; }
.road-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 12px; }
.road-card .saving { font-size: 12px; color: var(--ink-mute); padding-top: 10px; border-top: 1px solid var(--rule-soft); }
.road-card .saving b { color: var(--green-dk); }

/* ── data card ───────────────────────────────── */
.datacard {
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 3px;
  padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.datacard h3 {
  font-family: var(--sans); font-size: 18px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.datacard .src {
  font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}

/* ── tables ──────────────────────────────────── */
table.std {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; line-height: 1.5;
  background: var(--bg-card); border: 1px solid var(--rule);
}
table.std th, table.std td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
table.std thead th {
  background: #f4efe2; font-size: 11px; font-weight: 700;
  color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--rule);
}
table.std tbody tr:last-child td { border-bottom: 0; }
table.std tbody tr:nth-child(even) { background: rgba(0,0,0,0.012); }
table.std code { font-family: var(--mono); font-size: 12px; background: var(--rule-soft); padding: 1px 5px; border-radius: 2px; }
table.std b { color: var(--ink); font-weight: 600; }

/* ── FOOTER (MPI two-tier: govt strip + brand strip) ─── */
footer.sitefoot {
  background: #ffffff;
  color: var(--ink);
  font-size: 13.5px; line-height: 1.6;
  border-top: 1px solid var(--rule);
}
.foot-feedback {
  background: var(--bg-strip);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.foot-feedback-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.foot-feedback-mark {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
}
.foot-feedback-mark .nz {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; background: #1a1a1a; color: #fff;
  font-weight: 600; font-size: 12px; letter-spacing: 0.02em;
}
.foot-feedback-mark .nz::before {
  content: ""; display: inline-block;
  width: 14px; height: 14px;
  background: #fff;
  clip-path: polygon(50% 0%, 65% 25%, 100% 30%, 75% 55%, 90% 100%, 50% 75%, 10% 100%, 25% 55%, 0% 30%, 35% 25%);
}
.foot-feedback-actions { display: flex; gap: 16px; font-size: 13px; }
.foot-feedback-actions a {
  color: var(--green-dk); text-decoration: underline; text-underline-offset: 3px;
  font-weight: 600;
}
.foot-feedback-actions a:hover { color: var(--green); }

footer.sitefoot .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  padding-top: 32px; padding-bottom: 24px;
}
@media (max-width: 760px) { footer.sitefoot .wrap { grid-template-columns: 1fr; } }
footer.sitefoot h5 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute); margin-bottom: 10px;
}
footer.sitefoot a { color: var(--green-dk); text-decoration: underline; text-underline-offset: 3px; }
footer.sitefoot a:hover { color: var(--green); }
footer.sitefoot ul { list-style: none; padding: 0; }
footer.sitefoot li { margin-bottom: 5px; font-size: 13.5px; }
footer.sitefoot b { color: var(--ink); font-weight: 700; }
footer.sitefoot p { color: var(--ink-soft); }
footer.sitefoot .legal {
  margin-top: 12px; padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-mute);
  grid-column: 1 / -1;
  background: var(--bg-strip);
  margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px;
}

/* MPI-style "business units" strip */
.foot-units {
  background: var(--bg-strip);
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
.foot-units-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
}
.foot-units h6 {
  font-size: 11px; font-weight: 700; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.foot-units ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px;
  padding: 0;
}
.foot-units li {
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  padding: 4px 0;
}

/* ── helpers ─────────────────────────────────── */
.sr-only { position: absolute; left: -9999px; }
.spin { display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--ink-mute); }
.spacer-l { margin-top: 32px; }
.spacer-xl { margin-top: 48px; }

/* ── value model sliders ────────────────────── */
.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px;
}
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs {
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 4px;
  padding: 24px; box-shadow: var(--shadow);
}
.calc-input {
  margin-bottom: 22px;
}
.calc-input:last-child { margin-bottom: 0; }
.calc-input label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 8px;
}
.calc-input label .v {
  font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--green-dk);
}
.calc-input input[type="range"] { width: 100%; accent-color: var(--gr