/* kiwi-values.nz — stylesheet
   Aesthetic: bright, civic, alive. Saturated kōwhai gold + vibrant teal,
   deep navy type, blocks of colour rather than mere accents. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #0F2A47;
  --ink-soft: #2C4E6F;
  --ink-mute: #6B7E94;
  --canvas: #FFFFFF;
  --canvas-warm: #FFFBED;          /* very pale yellow */
  --canvas-mint: #ECFBF7;            /* very pale teal */
  --canvas-sky:  #EEF6FE;            /* very pale sky */
  --canvas-edge: #E8DFC2;
  --kowhai: #FFC72C;                  /* brighter, more vivid */
  --kowhai-deep: #E0A800;
  --kowhai-glow: #FFE17A;
  --teal: #06D5C0;                    /* more vivid */
  --teal-deep: #00A89A;
  --bush: #1B4332;
  --bush-soft: #2D6049;
  --rata: #E63946;                    /* vivid pohutukawa coral */
  --cobalt: #1E40AF;                   /* opposition blue accent */
  --rule: rgba(15, 42, 71, 0.12);
  --rule-strong: rgba(15, 42, 71, 0.3);

  --display: 'DM Sans', system-ui, sans-serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Menlo', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* When jumping to an anchor, leave room for the sticky header */
[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A subtle warm-light atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 800px at 92% -5%, rgba(255, 199, 44, 0.18), transparent 55%),
    radial-gradient(circle 700px at -5% 100%, rgba(6, 213, 192, 0.13), transparent 55%);
}

main, header, footer { position: relative; z-index: 1; }

/* ── Typography ─────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.55em;
  line-height: 1.2;
}

h1 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--kowhai);
  transition: color .15s ease, background .15s ease;
}
a:hover { background: var(--kowhai); color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 1.4em;
  display: inline-block;
}
.eyebrow::before { content: '— '; color: var(--kowhai-deep); }

/* ── Layout ─────────────────────────────────── */

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 740px; margin: 0 auto; padding: 0 32px; }

section { padding: 90px 0; }

/* ── Header / nav ───────────────────────────── */

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(15, 42, 71, 0.04), 0 4px 18px rgba(15, 42, 71, 0.05);
}

/* Kōwhai accent stripe at the bottom edge of the header */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--kowhai) 25%,
    var(--kowhai) 75%,
    transparent 100%);
  pointer-events: none;
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .15s;
  flex-shrink: 0;
}
.logo:hover { background: transparent; opacity: 0.85; }

.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(15, 42, 71, 0.2));
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.logo-kiwi { color: var(--ink); font-weight: 600; }
.logo-values { color: var(--kowhai-deep); font-style: italic; font-weight: 500; }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--rule-strong);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.nav-toggle:hover { background: var(--canvas-warm); border-color: var(--kowhai); }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Primary nav */
.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color .15s;
}
.nav a:hover { background: transparent; color: var(--teal-deep); }
.nav a.active {
  color: var(--ink);
  border-bottom: 2.5px solid var(--kowhai);
  padding-bottom: 4px;
}

/* "Take the test" as the primary CTA pill */
.nav .nav-cta {
  background: var(--kowhai);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--kowhai-deep), 0 3px 10px rgba(255, 199, 44, 0.3);
  transition: all .15s ease;
  border: 0;
  letter-spacing: 0.01em;
}
.nav .nav-cta:hover {
  background: var(--kowhai-glow);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--kowhai-deep), 0 6px 14px rgba(255, 199, 44, 0.4);
}
.nav .nav-cta.active {
  background: var(--kowhai-deep);
  color: var(--canvas);
  border-bottom: 0;
  padding-bottom: 10px;
  box-shadow: 0 2px 0 #8B6900, inset 0 1px 2px rgba(0,0,0,0.15);
}
.nav .nav-cta.active:hover {
  background: var(--kowhai-deep);
  transform: none;
  box-shadow: 0 2px 0 #8B6900, inset 0 1px 2px rgba(0,0,0,0.15);
}

/* ── Mobile nav drawer ──────────────────────── */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(15, 42, 71, 0.18);
  }
  .nav.open { display: flex; }

  .nav a {
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 1rem;
    border-bottom: 0;
  }
  .nav a + a { border-top: 1px solid var(--rule); }
  .nav a:hover { background: var(--canvas-warm); }
  .nav a.active {
    color: var(--ink);
    background: var(--canvas-warm);
    border-bottom: 0;
    padding-bottom: 14px;
  }
  .nav a.active::before {
    content: '→ ';
    color: var(--kowhai-deep);
    font-weight: 700;
  }

  /* CTA pill: full-width box at the top of the drawer */
  .nav .nav-cta {
    margin-bottom: 6px;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    border-top: 0 !important;
  }
  .nav .nav-cta + a { border-top: 1px solid var(--rule); }
  .nav .nav-cta.active {
    background: var(--kowhai);
    color: var(--ink);
    box-shadow: 0 2px 0 var(--kowhai-deep);
  }
  .nav .nav-cta.active::before { content: ''; }
}

/* ── Hero ──────────────────────────────────── */
/* The home page hero uses a full-bleed photograph with a left-aligned
   gradient "scrim" that fades from canvas-cream on the far left to
   transparent on the right, so the headline reads cleanly while the
   image's faces and landscape stay visible.

   .hero-image is for pages WITH the photo (currently just index.html).
   .hero is the default flat-canvas hero used on every other page. */

.hero {
  padding: 84px 0 64px;
  position: relative;
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
}

/* Single thin kōwhai accent strip at the very top of the hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--kowhai);
  z-index: 2;
}

.hero > * { position: relative; z-index: 1; }

/* Image-backed hero — full image, no scrim, frosted-glass card overlay */
.hero-image {
  padding: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--kowhai);
  z-index: 3;
}

/* Image fills the section width; height follows aspect ratio. */
.hero-image-bg {
  position: relative;
  width: 100%;
  line-height: 0;
}
.hero-image-bg picture,
.hero-image-bg img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;     /* prevents the image dominating very tall screens */
  object-fit: cover;
  object-position: center;
}

/* Frosted-glass overlay card — narrow column in the lower-left, sits over
   the water/sky area without covering any of the people on the left side
   of the photograph. */
.hero-image-card {
  position: absolute;
  left: 2.5%;
  bottom: 6%;
  width: 27%;
  max-width: 320px;
  min-width: 270px;
  background: rgba(252, 250, 244, 0.58);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  padding: 26px 26px 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 14px 40px rgba(15, 42, 71, 0.20),
    0 2px 6px rgba(15, 42, 71, 0.10);
  z-index: 2;
}

.hero-image-card .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.7rem;
}

.hero-image-card h1 {
  font-weight: 700;
  margin-bottom: 0.4em;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.15;
}
.hero-image-card h1 em {
  font-style: normal;
  color: var(--kowhai-deep);
  background: none;
  padding: 0;
}

.hero-image-card .lead {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.3em;
  font-weight: 500;     /* slightly bolder so it reads cleanly through the transparent card */
  max-width: 100%;
}

/* Buttons stack since the card is narrow */
.hero-image-card .btn-row {
  margin: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.hero-image-card .btn {
  padding: 11px 16px;
  font-size: 0.92rem;
  text-align: center;
  justify-content: center;
}

/* Standard hero (every page except home) — kōwhai stripe + flat canvas */
.hero h1 {
  font-weight: 700;
  margin-bottom: 0.35em;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--kowhai-deep);
  background: none;
  padding: 0;
}

.hero .lead {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 660px;
  font-weight: 400;
  margin-bottom: 2em;
}

/* The 4-up stats grid sits in its own section AFTER the hero on the home
   page, so we don't have to overlay it on the photo. Standalone styling
   matches the inline hero-meta. */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 32px 0 30px;
}

.hero-meta div { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-mute); position: relative; padding-top: 6px; min-width: 0; letter-spacing: 0.02em; }
.hero-meta div::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 24px;
  height: 3px;
  background: var(--kowhai);
}

.hero-meta strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* ── Buttons ───────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--kowhai);
  color: var(--ink);
  padding: 16px 30px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 3px 0 var(--kowhai-deep), 0 6px 14px rgba(255, 199, 44, 0.3);
}
.btn:hover {
  background: var(--kowhai-glow);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--kowhai-deep), 0 8px 20px rgba(255, 199, 44, 0.4);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 var(--kowhai-deep), 0 2px 6px rgba(255, 199, 44, 0.3);
}

.btn-ghost {
  background: var(--canvas);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: 0 5px 0 #000;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 16px;
}

/* Brief reassurance line under CTA buttons */
.hero-note {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin: 4px 0 0;
}

/* Ensure buttons at the bottom of a section don't crowd the footer */
main > section:last-child {
  padding-bottom: 130px;
}
main > section:last-child .btn-row {
  margin-bottom: 0;
}

/* Better spacing between consecutive sections of the same kind */
section + section.wrap-narrow,
section + section.wrap {
  padding-top: 70px;
}

/* ── Coloured panels ────────────────────────── */

.panel-mint {
  background: linear-gradient(135deg, var(--canvas-mint) 0%, #FFFFFF 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.panel-warm {
  background: linear-gradient(135deg, var(--canvas-warm) 0%, #FFFFFF 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.panel-sky {
  background: linear-gradient(135deg, var(--canvas-sky) 0%, #FFFFFF 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Default section divider when no coloured panel */
section.std { border-top: 1px solid var(--rule); }

/* ── Pull quotes / quote cards ──────────────── */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0;
  margin: 40px 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 4px 20px rgba(15, 42, 71, 0.06);
}

.quote-card {
  padding: 30px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
  position: relative;
  transition: background .15s, transform .15s;
}
.quote-card:hover {
  background: var(--canvas-warm);
  transform: translateY(-1px);
}
.quote-card:last-child { border-right: 0; }

.quote-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 100%;
  background: var(--kowhai);
}
.quote-card.q-coalition::before { background: #1F4FA8; }
.quote-card.q-act::before { background: var(--kowhai); }
.quote-card.q-nzfirst::before { background: #1F1F4F; }
.quote-card.q-labour::before { background: #D82A20; }
.quote-card.q-green::before { background: #098137; }
.quote-card.q-tpm::before { background: #B73C32; }
.quote-card.q-critic::before { background: var(--teal); }

.quote-card .who {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
  font-weight: 700;
}
.quote-card .what {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote-card .src {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  margin-top: 14px;
  letter-spacing: 0.03em;
}

/* ── "Missing" dark section ─────────────────── */

.missing {
  background: linear-gradient(180deg, var(--bush) 0%, #122A1F 100%);
  color: #E6F0E9;
  padding: 90px 0;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.missing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 90% 100%, rgba(255, 199, 44, 0.12), transparent 60%),
    radial-gradient(ellipse 600px 400px at -10% 0%, rgba(6, 213, 192, 0.10), transparent 60%);
  pointer-events: none;
}
.missing > * { position: relative; }
.missing h2 { color: #FFFCEB; }
.missing .eyebrow { color: rgba(230, 240, 233, 0.7); }
.missing .eyebrow::before { color: var(--kowhai); }
.missing a { color: #FFFCEB; text-decoration-color: var(--kowhai); }
.missing a:hover { background: var(--kowhai); color: var(--bush); }

/* ── Share box ───────────────────────────────── */

.share-box {
  margin: 36px 0 12px;
  padding: 26px 30px 28px;
  background: var(--canvas-warm);
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.share-box h2 {
  margin-bottom: 6px;
}
.share-box p {
  margin-bottom: 16px;
  color: var(--ink-soft);
}

/* Quoted share text shown to user */
.share-text {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  border-left: 3px solid var(--kowhai);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 18px;
  user-select: all; /* clicking highlights all text for easy manual copy */
}

.share-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Base share button — overrides .btn padding for icon+label fit */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
  white-space: nowrap;
}
.btn-share svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
}
.btn-share:hover { transform: translateY(-2px); opacity: 0.88; }

/* WhatsApp — green */
.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 2px 0 #1aaa50;
}
.btn-wa:hover { box-shadow: 0 4px 0 #1aaa50; }

/* X / Twitter — black */
.btn-x {
  background: #000;
  color: #fff;
  box-shadow: 0 2px 0 #333;
}
.btn-x svg { fill: #fff; }
.btn-x:hover { box-shadow: 0 4px 0 #333; }

/* Copy — outline style matching btn-ghost */
.btn-copy {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.btn-copy svg { fill: none; stroke: var(--ink); }
.btn-copy:hover { box-shadow: 0 4px 0 var(--ink); }

/* ── Notes ──────────────────────────────────── */

.note {
  background: var(--canvas-mint);
  border-left: 4px solid var(--teal);
  padding: 24px 30px 24px 38px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
}
.note strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  color: var(--teal-deep);
}
.note.note-warn {
  background: var(--canvas-warm);
  border-left-color: var(--kowhai);
}
.note.note-warn strong { color: var(--kowhai-deep); }

/* ── Jump-cue (in-page anchor signpost) ─────── */
/* A subtle but visible call-to-action that points readers to a section
   further down the page. Used at the top of the politicians page. */

.jump-cue {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: var(--canvas-warm);
  border-left: 3px solid var(--kowhai);
  border-radius: 0 6px 6px 0;
  text-decoration: none;
  color: var(--ink);
  margin: 8px 0 36px;
  font-size: 0.96rem;
  line-height: 1.5;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 0 rgba(15, 42, 71, 0.04);
}
.jump-cue:hover {
  background: #FFFBED;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(15, 42, 71, 0.08);
}
.jump-cue-arrow {
  font-size: 1.5rem;
  color: var(--kowhai-deep);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.jump-cue strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kowhai-deep);
  margin-right: 6px;
  font-weight: 600;
}

/* ── Pull-quote box ─────────────────────────── */
/* For actual quotations (politicians, civil society, critics).
   Warm parchment ground with a dark navy edge — editorial pull-quote feel,
   visually distinct from .note boxes used for methodology / instructions. */

.quote-box {
  background: #FBF6E3;
  border-left: 4px solid var(--ink);
  padding: 26px 32px 26px 40px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  position: relative;
  box-shadow: 0 1px 0 rgba(15, 42, 71, 0.04);
}
.quote-box strong {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  color: var(--kowhai-deep);
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────── */

.site-footer {
  background: linear-gradient(180deg, var(--ink) 0%, #0A1F36 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 0;
  margin-top: 0;
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--rata) 0%,
    var(--kowhai) 25%,
    var(--teal) 50%,
    var(--cobalt) 75%,
    #1B4332 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 50px;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kowhai);
  font-weight: 700;
  margin: 0 0 16px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .12s;
}
.footer-col a:hover { color: var(--kowhai); background: transparent; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
}
.footer-logo:hover { background: transparent; color: var(--kowhai); }
.footer-logo svg { width: 38px; height: 38px; }
.footer-logo .logo-text {
  font-size: 1.3rem;
}
.footer-logo .logo-kiwi { color: #FFFFFF; }
.footer-logo .logo-values { color: var(--kowhai); }

.footer-tag {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
}

.footer-tag.footer-tag-ai {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  font-style: italic;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Quiz ───────────────────────────────────── */

.quiz-shell { padding: 50px 0 80px; }

.progress-bar {
  height: 6px;
  background: var(--canvas-edge);
  margin-bottom: 36px;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kowhai), var(--teal));
  width: 0%;
  transition: width .3s ease;
  border-radius: 3px;
}

.q-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.q-meta .topic { color: var(--teal-deep); font-weight: 700; }

.question {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--ink);
}

.options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.option {
  display: block;
  padding: 18px 22px;
  background: var(--canvas);
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
  transition: all .15s;
  position: relative;
  padding-left: 56px;
  box-shadow: 0 1px 2px rgba(15, 42, 71, 0.04);
}
.option:hover {
  background: var(--canvas-warm);
  border-color: var(--kowhai);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 42, 71, 0.08);
}
.option.selected {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 42, 71, 0.25);
}
.option .letter {
  position: absolute;
  left: 22px;
  top: 18px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--kowhai-deep);
  width: 22px;
}
.option.selected .letter { color: var(--kowhai); }

.controls { margin-top: 36px; display: flex; justify-content: space-between; gap: 16px; }

.timer {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

/* ── Result ─────────────────────────────────── */

.result-shell { padding: 60px 0; }
.result-headline {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5em;
}
.result-headline em {
  font-style: normal;
  color: var(--teal-deep);
  background: none;
  padding: 0;
}
.result-headline.fail em {
  color: var(--rata);
  background: none;
}

.score-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 30px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  margin: 28px 0;
}
.score-row div { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-mute); }
.score-row strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.review-q {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}
.review-q .qtext {
  font-family: var(--display);
  font-size: 1.18rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.review-q .ans { font-size: 0.95rem; margin-bottom: 4px; }
.review-q .right { color: var(--bush-soft); font-weight: 600; }
.review-q .wrong { color: var(--rata); font-weight: 600; }
.review-q .src { font-size: 0.88rem; color: var(--ink-mute); font-style: italic; margin-top: 8px; }

/* ── Form ───────────────────────────────────── */

.form-row { margin-bottom: 22px; }
label {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 600;
}
input[type=text], input[type=email], textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--rule-strong);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 6px;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(6, 213, 192, 0.2);
}
textarea { min-height: 140px; font-family: var(--sans); resize: vertical; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230F2A47' d='M0 0l6 8 6-8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 7px;
  padding-right: 40px;
  cursor: pointer;
}

/* ── Contribute box ─────────────────────────── */

.contribute {
  background: linear-gradient(135deg, var(--canvas-warm) 0%, var(--canvas) 50%, var(--canvas-mint) 100%);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--kowhai);
  padding: 36px 36px 36px 44px;
  margin: 40px 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 4px 20px rgba(15, 42, 71, 0.07);
}
.contribute h2 { margin-top: 0; font-size: 1.7rem; }
.contribute p { color: var(--ink-soft); }

.form-status {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 14px 18px 14px 22px;
  border-radius: 6px;
}
.form-status:empty { display: none; }
.form-status.ok    { background: rgba(6, 213, 192, 0.1); color: var(--teal-deep); border-left: 3px solid var(--teal); }
.form-status.err   { background: rgba(230, 57, 70, 0.1); color: var(--rata); border-left: 3px solid var(--rata); }
.form-status.warn  { background: rgba(255, 199, 44, 0.15); color: var(--kowhai-deep); border-left: 3px solid var(--kowhai); }

/* ── Attempt status & try-again ─────────────── */

.attempt-status {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--canvas-warm);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--kowhai);
  padding: 14px 18px 14px 22px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
}
.attempt-status:empty { display: none; }
.attempt-status a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--kowhai);
}

.try-again {
  background: linear-gradient(135deg, var(--canvas-warm) 0%, var(--canvas) 100%);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--rata);
  padding: 28px 32px 28px 38px;
  margin: 30px 0 40px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 4px 20px rgba(15, 42, 71, 0.07);
}
.try-again-msg {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}

/* ── Headline stats (Results page) ──────────── */

.headline-stats { margin: 0 0 20px; }
.hero-meta-big {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 30px 0;
  margin: 0;
  gap: 44px;
}
.hero-meta-big strong { font-size: 1.9rem; }

.empty-state {
  background: var(--canvas-mint);
  border: 2px dashed var(--teal);
  padding: 50px 44px;
  text-align: center;
  border-radius: 10px;
}
.empty-state h3 { font-family: var(--display); margin: 0 0 0.4em; }
.empty-state code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--canvas-edge);
  padding: 2px 6px;
  border-radius: 3px;
}

.loading {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 28px 0;
}

/* ── Tile grid ──────────────────────────────── */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  margin: 30px 0 50px;
  background: var(--canvas);
  box-shadow: 0 4px 20px rgba(15, 42, 71, 0.05);
}

.tile {
  --accent: var(--kowhai);
  padding: 24px 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
  position: relative;
  transition: background .12s, transform .12s;
}
.tile:hover { background: var(--canvas-warm); transform: translateY(-1px); }

.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 42px;
  background: var(--accent);
}

.tile-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
  font-weight: 700;
}

.tile-stat {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}
.tile-stat .pct {
  font-size: 1rem;
  color: var(--ink-mute);
  font-family: var(--sans);
  margin-left: 2px;
  font-weight: 400;
}

.tile-meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.4;
  margin-bottom: 14px;
}

.tile-bar {
  height: 5px;
  background: var(--canvas-edge);
  border-radius: 3px;
  overflow: hidden;
}
.tile-bar .fill {
  height: 100%;
  background: var(--accent);
  transition: width .6s ease;
  border-radius: 3px;
}

.tile-suppressed,
.tile-empty {
  background: var(--canvas-warm);
  color: var(--ink-mute);
}
.tile-suppressed::before,
.tile-empty::before { background: var(--rule-strong); }
.tile-na {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 1rem;
}

/* ── Mobile ─────────────────────────────────── */

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 44px; }
  .wrap, .wrap-narrow { padding: 0 22px; }

  /* Image-backed hero on mobile: image on top, card stacks below as a
     normal block — no overlay positioning on tiny screens. */
  .hero-image-bg img,
  .hero-image-bg picture { max-height: none; }
  .hero-image-card {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--canvas);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 32px 22px 36px;
  }
  .hero-image-card h1 { font-size: clamp(1.6rem, 5vw, 1.95rem); }
  .hero-image-card .lead { font-size: 1rem; }

  /* Stats: 2x2 instead of 1x4 wrapping mess */
  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 18px;
    padding: 22px 0;
    margin: 28px 0 30px;
  }
  .hero-meta strong { font-size: 1.5rem; }

  .quote-card { border-right: 0; }
  .controls { flex-direction: column-reverse; align-items: stretch; }
  .controls .btn { text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-text { font-size: 1.2rem; }
  .site-header-inner { padding: 12px 18px; }

  /* Score row stacks better */
  .score-row { gap: 22px 30px; }
  .score-row strong { font-size: 1.7rem; }

  /* Buttons go full width */
  .btn-row { gap: 12px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; text-align: center; min-width: 200px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-meta strong { font-size: 1.3rem; }
  .hero-meta div { font-size: 0.78rem; }
  h2 { font-size: 1.6rem; }
}
