/* ==========================================================================
   Australian Citizenship Study Guide — shared styles
   Palette: eucalyptus teal + wattle gold (Australia's national colours are
   green and gold). Light + dark themes. The theme follows the site-wide
   `theme` localStorage key used by the rest of bishal.com.au.
   ========================================================================== */

:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #f0ede4;
  --border: #e2ddd0;
  --border-strong: #cdc6b4;
  --text: #1b2725;
  --muted: #55645f;
  --faint: #7b8782;
  --primary: #1d7466;
  --primary-hover: #155b50;
  --primary-ink: #ffffff;
  --primary-soft: #e2f0ec;
  --primary-line: #b5dad0;
  --gold: #855f00;
  --gold-fill: #f2c230;
  --gold-soft: #fbf2d6;
  --gold-line: #e9d38a;
  --ok: #17683f;
  --ok-soft: #e1f2e8;
  --ok-line: #a6d6b9;
  --bad: #a8322a;
  --bad-soft: #fae5e2;
  --bad-line: #e9b1a9;
  --shadow-sm: 0 1px 2px rgba(27, 39, 37, .06);
  --shadow: 0 1px 2px rgba(27, 39, 37, .05), 0 10px 28px -14px rgba(27, 39, 37, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --header-h: 62px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1413;
    --surface: #141e1c;
    --surface-2: #1a2624;
    --border: #253432;
    --border-strong: #354a46;
    --text: #e5eeeb;
    --muted: #a3b4af;
    --faint: #7a8c87;
    --primary: #55c6ad;
    --primary-hover: #7fd8c4;
    --primary-ink: #04201a;
    --primary-soft: #15302b;
    --primary-line: #26514a;
    --gold: #f0c75a;
    --gold-fill: #f2c94c;
    --gold-soft: #2b2512;
    --gold-line: #5a4a1c;
    --ok: #6fd49b;
    --ok-soft: #12291c;
    --ok-line: #285c3d;
    --bad: #ff9384;
    --bad-soft: #341815;
    --bad-line: #6b2c24;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1413;
  --surface: #141e1c;
  --surface-2: #1a2624;
  --border: #253432;
  --border-strong: #354a46;
  --text: #e5eeeb;
  --muted: #a3b4af;
  --faint: #7a8c87;
  --primary: #55c6ad;
  --primary-hover: #7fd8c4;
  --primary-ink: #04201a;
  --primary-soft: #15302b;
  --primary-line: #26514a;
  --gold: #f0c75a;
  --gold-fill: #f2c94c;
  --gold-soft: #2b2512;
  --gold-line: #5a4a1c;
  --ok: #6fd49b;
  --ok-soft: #12291c;
  --ok-line: #285c3d;
  --bad: #ff9384;
  --bad-soft: #341815;
  --bad-line: #6b2c24;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (max-width: 600px) { body { font-size: 16px; } }
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .3em 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-fill); color: #1b2725; }
mark, .cz-mark {
  background: var(--gold-soft);
  color: inherit;
  padding: 0 .25em;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--gold-line);
}
.cz-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.cz-skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--primary); color: var(--primary-ink);
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.cz-skip:focus { left: 8px; color: var(--primary-ink); }
.cz-muted { color: var(--muted); }
.cz-small { font-size: .9rem; }

/* ---------- Header ---------- */
.cz-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.cz-header__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 14px;
}
.cz-brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  text-decoration: none; color: var(--text);
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; white-space: nowrap;
}
.cz-brand:hover { color: var(--text); }
.cz-brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.cz-brand b { color: var(--primary); font-weight: 600; }
.cz-nav {
  display: flex; align-items: center; gap: 2px; margin-left: auto;
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.cz-nav::-webkit-scrollbar { display: none; }
.cz-nav a {
  font-size: .92rem; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.cz-nav a:hover { color: var(--text); background: var(--surface-2); }
.cz-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.cz-nav a.cz-nav__cta { background: var(--primary); color: var(--primary-ink); margin-left: 6px; }
.cz-nav a.cz-nav__cta:hover,
.cz-nav a.cz-nav__cta[aria-current="page"] { background: var(--primary-hover); color: var(--primary-ink); }
.cz-theme {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.cz-theme:hover { color: var(--primary); border-color: var(--primary-line); }
.cz-theme svg { width: 18px; height: 18px; }
.cz-theme .i-sun { display: none; }
:root[data-theme="dark"] .cz-theme .i-sun { display: block; }
:root[data-theme="dark"] .cz-theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cz-theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .cz-theme .i-moon { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 104px; }
  .cz-header__inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; gap: 8px 12px; }
  .cz-theme { margin-left: auto; }
  .cz-nav { order: 3; width: 100%; margin-left: 0; }
  .cz-nav a { padding: 6px 11px; font-size: .88rem; }
}
@media (max-width: 480px) {
  .cz-nav a[data-nav="home"] { display: none; } /* the brand already links to the overview */
  .cz-nav a { padding: 6px 9px; }
  .cz-nav a.cz-nav__cta { margin-left: 2px; }
}

/* ---------- Layout ---------- */
.cz-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .cz-wrap { padding: 0 24px; } }
main { display: block; }

.cz-hero { padding: 44px 0 28px; }
.cz-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--primary);
}
.cz-lede { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.cz-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cz-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .85rem; color: var(--muted);
}
.cz-chip svg { width: 14px; height: 14px; }

.cz-block { padding: 44px 0; border-top: 1px solid var(--border); }
.cz-block__head { max-width: 68ch; margin-bottom: 24px; }
.cz-block__head p { color: var(--muted); margin-bottom: 0; }

.cz-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cz-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cz-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.cz-card > :last-child { margin-bottom: 0; }
.cz-card h3 { margin-top: 0; }

/* ---------- Buttons ---------- */
.cz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .97rem/1.2 var(--font-body); padding: 12px 20px; min-height: 46px;
  border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.cz-btn:active { transform: translateY(1px); }
.cz-btn svg { width: 18px; height: 18px; }
.cz-btn--primary { background: var(--primary); color: var(--primary-ink); }
.cz-btn--primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.cz-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.cz-btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.cz-btn--sm { padding: 7px 14px; min-height: 36px; font-size: .87rem; }
.cz-btn[disabled] { opacity: .5; cursor: not-allowed; }
.cz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Hub ---------- */
.cz-hub-hero { display: grid; gap: 32px; align-items: center; padding: 48px 0 44px; }
@media (min-width: 960px) { .cz-hub-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; padding: 64px 0 56px; } }
.cz-hub-hero h1 { max-width: 15ch; }
.cz-hub-hero h1 em { font-style: normal; color: var(--primary); }

.cz-marking { padding: 24px; }
.cz-marking h2 { font-size: 1.3rem; margin-bottom: 4px; }
.cz-marking > p { color: var(--muted); font-size: .93rem; }
.cz-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0 12px; }
.cz-tiles span {
  aspect-ratio: 1.25; display: grid; place-items: center; border-radius: 8px;
  font: 600 .85rem var(--font-body); background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-line);
}
.cz-tiles span.v { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.cz-tiles-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.cz-tiles-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--primary-soft); border: 1px solid var(--primary-line); }
.cz-tiles-legend i.v { background: var(--gold-soft); border-color: var(--gold-line); }
.cz-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cz-rules li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .95rem; }
.cz-rules svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--ok); margin-top: 1px; }
.cz-rules .cz-rules__note { font-size: .85rem; color: var(--muted); padding-left: 32px; }

.cz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.cz-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; }
.cz-stat__num { font-family: var(--font-head); font-size: 2.5rem; font-weight: 600; line-height: 1; color: var(--primary); }
.cz-stat--gold .cz-stat__num { color: var(--gold); }
.cz-stat__label { font-weight: 600; margin-top: 10px; line-height: 1.35; }
.cz-stat__note { font-size: .87rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }

.cz-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.cz-step {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; align-items: start; margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
}
.cz-step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font: 600 1.2rem var(--font-head);
  grid-row: span 2;
}
.cz-step.is-done::before { content: "\2713"; background: var(--ok); color: var(--surface); }
.cz-step h3 { font-size: 1.12rem; margin: 2px 0 2px; }
.cz-step p { margin: 0; color: var(--muted); font-size: .95rem; }
.cz-step__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cz-step__status { font-size: .85rem; font-weight: 600; color: var(--faint); }
.cz-step.is-done .cz-step__status { color: var(--ok); }

.cz-parts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.cz-part {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  text-decoration: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cz-part:hover { border-color: var(--primary-line); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.cz-part__num { font-size: .78rem; font-weight: 700; color: var(--primary); letter-spacing: .09em; text-transform: uppercase; }
.cz-part h3 { margin: 6px 0 8px; font-size: 1.32rem; }
.cz-part p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.cz-part__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .84rem; color: var(--faint); }
.cz-part__status { font-weight: 600; }
.cz-part.is-done { border-color: var(--ok-line); }
.cz-part.is-done .cz-part__status { color: var(--ok); }
.cz-part--values { background: linear-gradient(180deg, var(--gold-soft), var(--surface) 70%); border-color: var(--gold-line); }
.cz-part--values .cz-part__num { color: var(--gold); }

.cz-faq details { border-bottom: 1px solid var(--border); }
.cz-faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
}
.cz-faq summary::-webkit-details-marker { display: none; }
.cz-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem var(--font-body); color: var(--primary); }
.cz-faq details[open] summary::after { content: "\2212"; }
.cz-faq details > div { padding: 0 0 16px; color: var(--muted); max-width: 70ch; }

/* ---------- Reading pages ---------- */
.cz-partnav-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.cz-partnav-top a {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: .84rem; font-weight: 600; color: var(--muted); text-decoration: none;
}
.cz-partnav-top a:hover { border-color: var(--primary-line); color: var(--primary); }
.cz-partnav-top a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.cz-partnav-top a.is-done:not([aria-current])::after { content: " \2713"; color: var(--ok); }

.cz-layout { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 1000px) { .cz-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } }
.cz-toc { align-self: start; }
@media (min-width: 1000px) {
  .cz-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
  details.cz-toc > summary { display: none; }
}
.cz-toc summary {
  cursor: pointer; list-style: none; font-weight: 600; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; justify-content: space-between; align-items: center;
}
.cz-toc summary::-webkit-details-marker { display: none; }
.cz-toc summary::after { content: "\25BE"; color: var(--muted); }
.cz-toc[open] summary::after { content: "\25B4"; }
.cz-toc__label { display: none; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px 14px; }
@media (min-width: 1000px) { .cz-toc__label { display: block; } }
.cz-toc ol { list-style: none; margin: 10px 0 0; padding: 0; border-left: 2px solid var(--border); }
@media (min-width: 1000px) { .cz-toc ol { margin-top: 0; } }
.cz-toc li { margin: 0; }
.cz-toc a {
  display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.4;
}
.cz-toc a:hover { color: var(--text); }
.cz-toc a[aria-current="true"] { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

.cz-article { max-width: 760px; min-width: 0; }
.cz-intro { font-size: 1.05rem; padding: 18px 20px; border-left: 4px solid var(--gold-fill); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 8px; }
.cz-intro > :last-child { margin-bottom: 0; }
.cz-sec { padding: 32px 0; border-bottom: 1px solid var(--border); }
.cz-sec h2 { margin-bottom: .3em; }
.cz-sec h3 { margin-top: 1.5em; }
.cz-sec > :last-child { margin-bottom: 0; }
.cz-listen {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 4px 12px 4px 10px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font: 500 .82rem var(--font-body); cursor: pointer;
}
.cz-listen svg { width: 15px; height: 15px; }
.cz-listen:hover { color: var(--primary); border-color: var(--primary-line); }
.cz-listen.is-speaking { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }

/* Callouts */
.cz-callout { border-radius: var(--radius-sm); padding: 16px 18px; margin: 22px 0; border: 1px solid; font-size: .97rem; }
.cz-callout > :last-child { margin-bottom: 0; }
.cz-callout ul { padding-left: 1.15em; }
.cz-callout__title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.cz-callout__title svg { width: 16px; height: 16px; }
.cz-remember { background: var(--primary-soft); border-color: var(--primary-line); }
.cz-remember .cz-callout__title { color: var(--primary); }
.cz-tip { background: var(--gold-soft); border-color: var(--gold-line); }
.cz-tip .cz-callout__title { color: var(--gold); }
.cz-warn { background: var(--bad-soft); border-color: var(--bad-line); }
.cz-warn .cz-callout__title { color: var(--bad); }

/* Tables */
.cz-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.cz-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cz-table th, .cz-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cz-table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); font-weight: 700; }
.cz-table tbody th { font-weight: 600; }
.cz-table tr:last-child td, .cz-table tr:last-child th { border-bottom: 0; }

/* Timeline */
.cz-timeline { list-style: none; padding: 0; margin: 22px 0; position: relative; }
.cz-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--primary-line); }
.cz-timeline li { position: relative; padding-left: 34px; margin: 0 0 18px; }
.cz-timeline li:last-child { margin-bottom: 0; }
.cz-timeline li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--primary);
}
.cz-timeline .when { display: block; font: 600 1.1rem/1.3 var(--font-head); color: var(--primary); }

/* Mini cards (compare, powers, symbols) */
.cz-compare { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 20px 0; }
.cz-mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.cz-mini h3, .cz-mini h4 { margin: 0 0 4px; font-size: 1.1rem; }
.cz-mini .who { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--primary); margin-bottom: 6px; }
.cz-mini p, .cz-mini ul { margin: 0; font-size: .94rem; color: var(--muted); }
.cz-mini ul { padding-left: 1.1em; }
.cz-mini > * + p, .cz-mini > * + ul { margin-top: 6px; }
.cz-mini--gold { background: var(--gold-soft); border-color: var(--gold-line); }
.cz-mini--gold .who { color: var(--gold); }

/* States tile map */
.cz-tilemap {
  /* Every named area must be a rectangle, or the browser drops the whole template. */
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-auto-rows: minmax(66px, auto); gap: 6px; margin: 22px 0 8px;
  grid-template-areas:
    "wa wa wa nt nt qld qld qld qld"
    "wa wa wa nt nt qld qld qld qld"
    "wa wa wa sa sa nsw nsw nsw nsw"
    ". . . sa sa vic vic act act"
    ". . . . . tas tas . .";
}
.cz-tile {
  border-radius: 10px; padding: 8px 10px; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--tile, #1d7466); color: #fff; line-height: 1.25;
}
.cz-tile b { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.1; }
.cz-tile span { font-size: .78rem; opacity: .9; }
.cz-tile small { font-size: .76rem; font-weight: 600; }
.cz-tile small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f2c230; margin-right: 5px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
.cz-tile--act { background: #f2c230; color: #1b2725; }
.cz-tile--act small::before { background: #1b2725; box-shadow: none; }
@media (max-width: 560px) {
  .cz-tilemap { grid-auto-rows: minmax(54px, auto); gap: 3px; }
  .cz-tile { padding: 6px; }
  .cz-tile span { display: none; }
  .cz-tile b { font-size: 1rem; }
  .cz-tile small { font-size: .66rem; }
  .cz-tile small::before { display: none; }
}
.cz-mapnote { font-size: .84rem; color: var(--muted); }

.cz-states { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 20px 0; }
.cz-state { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.cz-state h3 { font-size: 1.08rem; margin: 0 0 2px; }
.cz-state .cap { font-size: .84rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.cz-state p { margin: 0; font-size: .93rem; color: var(--muted); }
.cz-badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line);
  margin: 0 4px 4px 0; vertical-align: 2px;
}

/* Flags */
.cz-flag { display: grid; gap: 18px; align-items: start; margin: 20px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
@media (min-width: 640px) { .cz-flag { grid-template-columns: 220px minmax(0, 1fr); } }
.cz-flag__img svg { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--border); }
.cz-flag__img figcaption { font-size: .78rem; color: var(--faint); margin-top: 6px; }
.cz-flag__img { margin: 0; }
.cz-flag h3 { margin: 0 0 6px; }
.cz-flag p { font-size: .95rem; margin-bottom: 10px; }
.cz-legend { list-style: none; padding: 0; margin: 0; }
.cz-legend li { display: flex; gap: 10px; align-items: flex-start; margin: 7px 0; font-size: .94rem; }
.cz-swatch { flex: 0 0 18px; height: 18px; border-radius: 4px; margin-top: 3px; box-shadow: inset 0 0 0 1px rgba(127,127,127,.45); }
.cz-swatches { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); aspect-ratio: 2 / 1; }
.cz-swatches span { display: block; }

/* Flow (how laws are made) */
.cz-flow { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; counter-reset: flow; }
.cz-flow li {
  position: relative; margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px 14px 58px;
}
.cz-flow li::before {
  counter-increment: flow; content: counter(flow); position: absolute; left: 14px; top: 13px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink); font: 700 .9rem var(--font-body);
}
.cz-flow li:not(:last-child)::after { content: ""; position: absolute; left: 28px; bottom: -13px; width: 2px; height: 12px; background: var(--primary-line); }
.cz-flow li:last-child { border-color: var(--ok-line); background: var(--ok-soft); }
.cz-flow li:last-child::before { background: var(--ok); color: var(--surface); }
.cz-flow--plain li:last-child { border-color: var(--border); background: var(--surface); }
.cz-flow--plain li:last-child::before { background: var(--primary); color: var(--primary-ink); }

/* Levels of government */
.cz-levels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 22px 0; }
.cz-level { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.cz-level h3 { margin: 0; padding: 12px 16px; font-size: 1.02rem; background: var(--primary); color: var(--primary-ink); }
.cz-level:nth-child(2) h3 { background: #2b6f86; color: #fff; }
.cz-level:nth-child(3) h3 { background: #f2c230; color: #1b2725; }
.cz-level ul { list-style: none; margin: 0; padding: 6px 16px 12px; }
.cz-level li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; margin: 0; }
.cz-level li:last-child { border-bottom: 0; }

/* Senate */
.cz-senate { margin: 20px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.cz-senate__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: .86rem; padding: 3px 0; }
.cz-senate__row b { font-weight: 700; }
.cz-senate__row em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.cz-senate__dots { display: flex; flex-wrap: wrap; gap: 4px; }
.cz-senate__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.cz-senate__row--t .cz-senate__dots i { background: var(--gold-fill); }
.cz-senate__total { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; font-weight: 600; }
.cz-senate__total span:last-child { font-family: var(--font-head); font-size: 1.3rem; color: var(--primary); line-height: 1; }

/* Pledge & anthem */
.cz-pledge {
  margin: 24px 0; padding: 28px 24px; border-radius: var(--radius); text-align: center;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.cz-pledge p { margin: 0; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.7; color: var(--primary); }
.cz-pledge a { color: inherit; text-decoration-color: var(--primary-line); }
.cz-pledge footer { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.cz-anthem { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 18px 0; }
.cz-anthem p { margin: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-head); font-style: italic; font-size: 1.05rem; line-height: 1.75; }

/* Quick check / quiz items */
.cz-quiz { margin: 36px 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.cz-quiz h2 { font-size: 1.5rem; margin-bottom: 2px; }
.cz-quiz__intro { color: var(--muted); font-size: .94rem; margin-bottom: 8px; }
.cz-q { padding: 18px 0 4px; border-top: 1px solid var(--border); margin-top: 14px; }
.cz-q__text { font-weight: 600; margin-bottom: 12px; }
.cz-q__text small { display: block; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.cz-opts { display: grid; gap: 8px; }
.cz-opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: .97rem; line-height: 1.45; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.cz-opt:hover:not(:disabled) { border-color: var(--primary); }
.cz-opt:disabled { cursor: default; }
.cz-opt__key {
  flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); font-size: .78rem; font-weight: 700; color: var(--muted);
}
.cz-opt.is-selected { border-color: var(--primary); background: var(--primary-soft); }
.cz-opt.is-selected .cz-opt__key { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.cz-opt.is-correct { border-color: var(--ok); background: var(--ok-soft); }
.cz-opt.is-correct .cz-opt__key { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.cz-opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.cz-opt.is-wrong .cz-opt__key { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.cz-feedback { margin-top: 12px; font-size: .94rem; padding: 12px 14px; border-radius: var(--radius-xs); background: var(--surface-2); }
.cz-feedback .ok { color: var(--ok); font-weight: 700; }
.cz-feedback .bad { color: var(--bad); font-weight: 700; }
.cz-feedback a { font-weight: 600; white-space: nowrap; }
.cz-quiz__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.cz-quiz__score { font-weight: 600; }

/* Done + pager */
.cz-done {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin: 28px 0 0; padding: 18px 20px; border-radius: var(--radius);
  background: var(--primary-soft); border: 1px solid var(--primary-line);
}
.cz-done p { margin: 0; font-weight: 600; }
.cz-done p small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.cz-markread[aria-pressed="true"] { background: var(--ok); color: var(--surface); }
.cz-markread[aria-pressed="true"]:hover { background: var(--ok); color: var(--surface); }
.cz-pager { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 0; }
.cz-pager a { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: var(--text); }
.cz-pager a:hover { border-color: var(--primary); color: var(--text); }
.cz-pager small { display: block; color: var(--muted); font-size: .8rem; }
.cz-pager strong { font-family: var(--font-head); font-size: 1.06rem; }
.cz-pager .next { text-align: right; grid-column: 2; }

.cz-readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.cz-readbar span { display: block; height: 100%; width: 100%; background: var(--gold-fill); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Key facts & flashcards ---------- */
.cz-facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.cz-factlist { list-style: none; padding: 0; margin: 0; }
.cz-factlist li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dashed var(--border); margin: 0; font-size: .94rem;
}
.cz-factlist li:last-child { border-bottom: 0; }
.cz-factlist b { font-family: var(--font-head); color: var(--primary); font-size: 1.06rem; text-align: right; max-width: 18ch; }
.cz-pairs { display: grid; gap: 12px; }
.cz-pair { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.cz-pair > div { font-size: .92rem; }
.cz-pair > div b { display: block; font-family: var(--font-head); font-size: 1.04rem; color: var(--text); margin-bottom: 2px; }
.cz-pair > div + div { border-left: 1px solid var(--border); padding-left: 12px; }
@media (max-width: 520px) { .cz-pair { grid-template-columns: 1fr; } .cz-pair > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 10px; } }

.cz-flash-wrap { max-width: 640px; margin: 0 auto; }
.cz-flash-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.cz-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.cz-seg button {
  border: 0; background: transparent; color: var(--muted); font: 600 .85rem var(--font-body);
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
}
.cz-seg button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.cz-flash { perspective: 1400px; }
.cz-flash__card {
  position: relative; display: block; width: 100%; height: 270px; border: 0; background: none; padding: 0; cursor: pointer;
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1); font: inherit; color: inherit;
}
.cz-flash__card.is-flipped { transform: rotateY(180deg); }
.cz-flash__face {
  position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); overflow: auto;
}
.cz-flash__face--back { transform: rotateY(180deg); background: var(--primary-soft); border-color: var(--primary-line); }
.cz-flash__tag { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.cz-flash__q { font-family: var(--font-head); font-size: clamp(1.2rem, 3.4vw, 1.55rem); font-weight: 600; line-height: 1.3; }
.cz-flash__a { font-family: var(--font-head); font-size: clamp(1.25rem, 3.6vw, 1.65rem); font-weight: 600; color: var(--primary); line-height: 1.3; }
.cz-flash__hint { font-size: .8rem; color: var(--faint); }
.cz-flash-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.cz-flash-count { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .cz-flash__card { transition: none; } }

/* ---------- Glossary ---------- */
.cz-search-wrap { position: relative; margin: 0 0 18px; }
.cz-search-wrap svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.cz-search {
  width: 100%; padding: 14px 18px 14px 46px; font: inherit; font-size: 1rem;
  border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text);
}
.cz-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.cz-az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.cz-az a { min-width: 32px; padding: 4px 8px; text-align: center; border-radius: 6px; font-weight: 600; font-size: .86rem; text-decoration: none; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.cz-az a:hover { color: var(--primary); border-color: var(--primary-line); }
.cz-gloss { display: grid; gap: 10px; margin: 0; }
.cz-term { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.cz-term dt { font-family: var(--font-head); font-weight: 600; font-size: 1.16rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cz-term dt a { font-family: var(--font-body); font-size: .76rem; font-weight: 600; text-decoration: none; color: var(--primary); }
.cz-term dd { margin: 4px 0 0; }
.cz-term .ex { color: var(--muted); font-style: italic; font-size: .93rem; margin-top: 6px; }
.cz-empty { text-align: center; padding: 32px; color: var(--muted); }

/* ---------- Practice test ---------- */
.cz-test { max-width: 780px; margin: 0 auto; padding: 36px 0 64px; }
.cz-modes { display: grid; gap: 14px; }
.cz-mode {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
}
.cz-mode h2 { margin: 0 0 4px; font-size: 1.25rem; }
.cz-mode p { margin: 0; color: var(--muted); font-size: .94rem; }
.cz-mode__opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: .92rem; }
.cz-mode--main { border-color: var(--primary-line); box-shadow: var(--shadow); }
@media (max-width: 560px) { .cz-mode { grid-template-columns: 1fr; } .cz-mode .cz-btn { width: 100%; } }
.cz-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cz-check input { width: 18px; height: 18px; accent-color: var(--primary); }

.cz-qcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .cz-qcard { padding: 18px 16px; } }
.cz-qbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
.cz-qbar__left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cz-progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 22px; }
.cz-progress span { display: block; height: 100%; background: var(--primary); transition: width .25s; }
.cz-qtext { font-family: var(--font-head); font-size: clamp(1.25rem, 3.2vw, 1.5rem); line-height: 1.35; font-weight: 600; margin: 0 0 18px; }
.cz-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line);
}
.cz-tag--part { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }
.cz-qnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.cz-qnav__right { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.cz-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.cz-dots button {
  position: relative; width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg);
  font: 600 .8rem var(--font-body); color: var(--muted); cursor: pointer;
}
.cz-dots button.is-answered { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); }
.cz-dots button.is-current { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.cz-dots button.is-values::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-fill); }
.cz-timer { font-variant-numeric: tabular-nums; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.cz-timer.is-low { background: var(--bad-soft); color: var(--bad); }
.cz-kbd { font-size: .8rem; color: var(--faint); margin-top: 12px; }
@media (max-width: 600px), (hover: none) { .cz-kbd { display: none; } }
.cz-kbd kbd { font: 600 .75rem var(--font-body); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--surface-2); }

.cz-result { text-align: center; padding: 30px 22px; }
.cz-verdict { font-family: var(--font-head); font-size: clamp(2rem, 6vw, 2.7rem); font-weight: 700; margin: 4px 0 6px; line-height: 1.1; }
.cz-verdict.pass { color: var(--ok); }
.cz-verdict.fail { color: var(--bad); }
.cz-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 22px 0; text-align: left; }
.cz-score { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--bg); }
.cz-score__num { font-family: var(--font-head); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.cz-score__label { font-size: .86rem; color: var(--muted); }
.cz-score.ok { border-color: var(--ok-line); background: var(--ok-soft); }
.cz-score.ok .cz-score__num { color: var(--ok); }
.cz-score.bad { border-color: var(--bad-line); background: var(--bad-soft); }
.cz-score.bad .cz-score__num { color: var(--bad); }
.cz-review { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; counter-reset: rv; }
.cz-review > li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ok); border-radius: var(--radius-sm); padding: 14px 16px; }
.cz-review > li.is-wrong { border-left-color: var(--bad); }
.cz-review__q { font-weight: 600; margin-bottom: 8px; }
.cz-review__q small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.cz-review__a { font-size: .93rem; display: grid; gap: 3px; }
.cz-review__a .you-bad { color: var(--bad); }
.cz-review__a .right { color: var(--ok); font-weight: 600; }
.cz-review__x { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.cz-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 28px; }
.cz-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.cz-history li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; margin: 0; border-radius: var(--radius-xs); background: var(--surface); border: 1px solid var(--border); }
.cz-history .p { color: var(--ok); font-weight: 600; }
.cz-history .f { color: var(--bad); font-weight: 600; }

/* ---------- Footer ---------- */
.cz-footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 32px 0 44px; font-size: .88rem; color: var(--muted); }
.cz-footer p { max-width: 82ch; }
.cz-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.cz-footer__links a { font-weight: 600; text-decoration: none; }

/* ---------- Print (cram sheet friendly) ---------- */
@media print {
  .cz-header, .cz-footer, .cz-listen, .cz-toc, .cz-quiz, .cz-done, .cz-pager, .cz-readbar, .cz-actions, .cz-flash-section, .cz-partnav-top { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .cz-layout { display: block; }
  .cz-sec { break-inside: avoid-page; }
  a { color: inherit; text-decoration: none; }
}
