/* NZTA "Do it online" demo — styles (government-plain, navy + white) */
:root {
  --navy: #003B5C;
  --navy-d: #002A42;
  --navy-l: #E6EEF3;
  --blue: #0B6FA4;
  --ink: #1F2A33;
  --muted: #55636E;
  --line: #D5DDE3;
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --ok: #1E7B4E;
  --ok-bg: #E8F4EE;
  --warn-bg: #FFF6DB;
  --warn-line: #E7C14C;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 30, 50, .08), 0 4px 14px rgba(0, 30, 50, .06);
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-family: Consolas, "SFMono-Regular", monospace; font-size: .85em; }
.nz-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #F2B400; outline-offset: 2px; }

/* ── Demo bar + header ───────────────────────────────────────────── */
.nz-demo-bar {
  background: #FFE8A3; color: #3A2E00; font-size: .82rem; line-height: 1.4;
  padding: 6px 24px; text-align: center; border-bottom: 1px solid #E7C14C;
}
.nz-header {
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px max(24px, calc((100% - var(--wrap)) / 2 + 24px));
}
.nz-wordmark { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.nz-wordmark:hover { color: #fff; }
.nz-wm-main { font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.nz-wm-sub { font-size: .85rem; opacity: .85; margin-top: 3px; }
.nz-header-nav { display: flex; align-items: center; gap: 6px; }
.nz-hlink {
  color: #fff; background: none; border: 1px solid rgba(255,255,255,.45); border-radius: 4px;
  padding: 7px 14px; font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.nz-hlink:hover { background: rgba(255,255,255,.12); color: #fff; }
.nz-hlink.nz-mdl-signin { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border-color: #fff; font-weight: 800; }
.nz-hlink.nz-mdl-signin:hover { background: #E8F4EE; color: var(--navy); }
.nz-hlink.nz-mdl-signin svg { width: 20px; height: 20px; stroke-width: 2.2; color: var(--ok); }
.nz-btn.mdl { background: var(--ok); border-color: var(--ok); }
.nz-btn.mdl:hover { background: #17633E; border-color: #17633E; }
.nz-icon {
  width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: none;
  border: 0; border-radius: 4px; cursor: pointer;
}
.nz-icon:hover { background: rgba(255,255,255,.12); }
.nz-icon svg { width: 24px; height: 24px; }

/* ── Breadcrumb + page head ──────────────────────────────────────── */
.nz-crumbs { font-size: .9rem; color: var(--muted); padding: 16px 0 0; }
.nz-crumbs a { color: var(--blue); }
.nz-crumbs span[aria-hidden] { margin: 0 6px; }
.nz-pagehead { padding: 18px 0 8px; }
.nz-lead { font-size: 1.15rem; color: var(--ink); max-width: 760px; }

/* ── Hero (index) ────────────────────────────────────────────────── */
.nz-hero { position: relative; overflow: hidden; background: var(--navy-d); color: #fff; }
.nz-hero-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 380px at 85% 120%, rgba(41, 151, 196, .55), transparent 60%),
    radial-gradient(700px 300px at 10% -20%, rgba(120, 190, 220, .25), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px),
    linear-gradient(120deg, #003B5C 0%, #00527D 55%, #0B6FA4 100%);
}
.nz-hero-road {
  position: absolute; right: -6%; bottom: -40%; width: 60%; height: 140%;
  border-radius: 50%; border: 18px solid rgba(255,255,255,.08); border-left-color: transparent; border-bottom-color: transparent;
  transform: rotate(-12deg);
}
.nz-hero .nz-wrap { position: relative; padding-top: 56px; padding-bottom: 88px; }
.nz-hero h1 { color: #fff; margin: 0; }
.nz-hero p { max-width: 620px; font-size: 1.15rem; margin: 12px 0 0; opacity: .95; }
.nz-hero-curve {
  position: absolute; right: 0; bottom: -1px; width: 46%; height: 56px; background: var(--bg);
  border-top-left-radius: 90px 56px;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.nz-section { padding: 28px 0 8px; }
.nz-section > h2 { margin-bottom: 16px; }
.nz-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nz-feature {
  position: relative; display: flex; flex-direction: column; min-height: 170px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px 18px; text-decoration: none; color: var(--ink);
  border-top: 4px solid var(--navy); transition: transform .15s, box-shadow .15s;
}
.nz-feature:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,30,50,.1), 0 10px 24px rgba(0,30,50,.1); color: var(--ink); }
.nz-feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.nz-feature p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.nz-online {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .85rem; font-weight: 600; color: var(--navy);
}
.nz-online-ico { width: 38px; height: 38px; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: 4px; flex: none; }
.nz-online-ico svg { width: 22px; height: 22px; }
.nz-feature.nz-mdl { border-top: 6px solid var(--ok); box-shadow: 0 0 0 2px var(--ok), 0 8px 22px rgba(30, 123, 78, .18); background: linear-gradient(180deg, #F1F9F4 0, #fff 120px); }
.nz-feature.nz-mdl .nz-online-ico { background: var(--ok); }
.nz-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-bottom: 12px;
  font-size: .9rem; font-weight: 800; color: #fff; background: var(--ok); padding: 6px 14px 6px 10px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(30, 123, 78, .3); letter-spacing: .01em;
}
.nz-tag svg { width: 20px; height: 20px; stroke-width: 2.2; }

.nz-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 24px; }
.nz-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px; text-decoration: none; color: var(--navy);
  font-weight: 700; font-size: 1.12rem; border-left: 4px solid transparent; transition: border-color .15s, background .15s;
}
.nz-cat:hover { border-left-color: var(--navy); background: #fff; color: var(--navy); }
.nz-cat small { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); margin-top: 3px; }
.nz-cat svg { width: 22px; height: 22px; flex: none; }

.nz-promo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.nz-promo h2 { margin-bottom: .35em; }
.nz-promo p { margin-bottom: .6em; }
.nz-promo .nz-actions { margin-top: 12px; }
.nz-promo .nz-read { margin: 0; }

/* Service list (driver licensing) */
.nz-services { list-style: none; margin: 0 0 28px; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.nz-services li + li { border-top: 1px solid var(--line); }
.nz-svc {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 16px 20px;
  text-decoration: none; color: var(--ink);
}
.nz-svc:hover { background: #F9FBFC; color: var(--ink); }
.nz-svc strong { color: var(--blue); font-size: 1.05rem; }
.nz-svc:hover strong { text-decoration: underline; }
.nz-svc span.nz-svc-desc { grid-column: 1; color: var(--muted); font-size: .93rem; }
.nz-svc .nz-svc-side { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 10px; }
.nz-svc .nz-svc-side svg.nz-chev { width: 20px; height: 20px; color: var(--muted); }
.nz-req { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.nz-req.mdl { color: #fff; background: var(--ok); display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 8px; font-weight: 800; }
.nz-req.mdl svg { width: 16px; height: 16px; stroke-width: 2.2; }
.nz-req.none { color: var(--muted); background: #EEF1F4; }

/* ── Panels, buttons, forms ──────────────────────────────────────── */
.nz-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.nz-panel > h2:first-child, .nz-panel > h3:first-child { margin-top: 0; }
.nz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 10px 22px; border-radius: 4px; border: 2px solid var(--navy); background: var(--navy); color: #fff;
  font: inherit; font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer;
}
.nz-btn:hover { background: var(--navy-d); border-color: var(--navy-d); color: #fff; }
.nz-btn svg { width: 22px; height: 22px; }
.nz-btn [data-icon] { display: inline-flex; }
.nz-btn.ghost { background: #fff; color: var(--navy); }
.nz-btn.ghost:hover { background: var(--navy-l); color: var(--navy); }
.nz-btn[disabled] { opacity: .55; cursor: not-allowed; }
.nz-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.nz-field { margin: 0 0 16px; }
.nz-field label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.nz-field .nz-hint { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.nz-field input {
  width: 100%; max-width: 440px; min-height: 46px; padding: 8px 12px; font: inherit;
  border: 2px solid #5E6E7A; border-radius: 4px; background: #fff; color: var(--ink);
}
.nz-field input:focus { border-color: var(--navy); outline: 3px solid #F2B400; outline-offset: 0; }
.nz-error { color: #B3261E; font-weight: 600; font-size: .95rem; margin-top: 6px; }
.nz-check { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.nz-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }

.nz-notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border-left: 5px solid var(--blue); background: #EAF3F9; margin-bottom: 20px; }
.nz-notice.ok { border-left-color: var(--ok); background: var(--ok-bg); }
.nz-notice.warn { border-left-color: var(--warn-line); background: var(--warn-bg); }
.nz-notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--navy); }
.nz-notice.ok svg { color: var(--ok); }
.nz-notice p:last-child { margin-bottom: 0; }

/* ── "What we read" card ─────────────────────────────────────────── */
.nz-read { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #FAFCFD; margin: 16px 0; }
.nz-read-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.nz-read-head svg { width: 22px; height: 22px; }
.nz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nz-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; padding: 4px 10px 4px 8px;
  border-radius: 999px; background: var(--navy-l); color: var(--navy); font-weight: 600;
}
.nz-chip svg { width: 16px; height: 16px; flex: none; }
.nz-read-note { font-size: .88rem; color: var(--muted); margin: 10px 0 6px; }
.nz-claims summary { cursor: pointer; font-size: .88rem; color: var(--blue); font-weight: 600; padding: 4px 0; }
.nz-claims ul { list-style: none; margin: 6px 0 0; padding: 0; columns: 2; column-gap: 24px; font-size: .86rem; }
.nz-claims li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; break-inside: avoid; }
.nz-claims code { color: var(--muted); }

/* ── Sign-in ─────────────────────────────────────────────────────── */
.nz-signin { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 28px; }
.nz-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.nz-steps li { counter-increment: s; display: flex; gap: 12px; padding: 8px 0; }
.nz-steps li::before {
  content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy);
  color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center;
}
.nz-alt { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }

/* ── Licence record ──────────────────────────────────────────────── */
.nz-licence { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; }
.nz-photo {
  width: 170px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--navy-l);
  display: grid; place-items: center; color: var(--navy); font-size: 2.6rem; font-weight: 700; border: 1px solid var(--line);
}
.nz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nz-verified { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.nz-verified svg { width: 16px; height: 16px; }
.nz-name { font-size: 1.7rem; font-weight: 700; color: var(--navy); margin: 0 0 12px; line-height: 1.15; }
.nz-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.nz-dl > div { display: grid; align-content: start; grid-template-columns: 22px minmax(0, 1fr); gap: 0 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.nz-dl svg { width: 20px; height: 20px; color: var(--muted); margin-top: 2px; }
.nz-dl dt { font-size: .85rem; color: var(--muted); grid-column: 2; }
.nz-dl dd { margin: 0; grid-column: 2; font-weight: 600; overflow-wrap: anywhere; }
.nz-dl svg { grid-row: 1 / span 2; }
.nz-dl > .nz-dl-wide { grid-column: 1 / -1; }
.nz-cert .nz-subhead { font-size: .95rem; }

.nz-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.nz-table th, .nz-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nz-table th { font-size: .85rem; color: var(--muted); font-weight: 600; background: #F7F9FA; }
.nz-class { display: inline-grid; place-items: center; min-width: 40px; padding: 2px 8px; border-radius: 4px; background: var(--navy); color: #fff; font-weight: 700; }
.nz-empty { color: var(--muted); font-style: italic; }

.nz-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nz-next a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: #fff;
}
.nz-next a strong { color: var(--blue); }
.nz-next a:hover { border-color: var(--navy); }
.nz-next a span { font-size: .9rem; color: var(--muted); }

/* ── Certificate flow ────────────────────────────────────────────── */
.nz-progress { display: flex; list-style: none; margin: 0 0 22px; padding: 0; gap: 6px; }
.nz-progress li {
  flex: 1; font-size: .88rem; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 5px solid var(--line);
}
.nz-progress li.on { color: var(--navy); border-top-color: var(--navy); }
.nz-progress li.done { color: var(--ok); border-top-color: var(--ok); }
.nz-review { margin: 0 0 6px; }
.nz-review > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nz-review dt { color: var(--muted); font-size: .95rem; }
.nz-review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.nz-src { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; color: var(--ok); margin-left: 8px; white-space: nowrap; }
.nz-src svg { width: 14px; height: 14px; }

.nz-cert {
  position: relative; background: #fff; border: 1px solid #9DB0BD; padding: 32px 36px; margin: 8px 0 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.nz-cert::before {
  content: "SPECIMEN — DEMONSTRATION ONLY"; position: absolute; top: 46%; left: -10%; right: -10%; text-align: center;
  font-weight: 800; font-size: 2.1rem; letter-spacing: .08em; color: rgba(0, 59, 92, .07); transform: rotate(-18deg); pointer-events: none;
}
.nz-cert-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 3px solid var(--navy); padding-bottom: 14px; margin-bottom: 18px; }
.nz-cert-head h2 { margin: 0; font-size: 1.5rem; }
.nz-cert-head .nz-cert-org { font-size: .9rem; color: var(--muted); }
.nz-cert-ref { text-align: right; font-size: .88rem; color: var(--muted); }
.nz-cert-ref strong { display: block; color: var(--ink); font-size: 1rem; }
.nz-cert-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; }
.nz-cert-body .nz-photo { width: 120px; font-size: 1.8rem; }
.nz-cert-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ── Callback / misc ─────────────────────────────────────────────── */
.nz-center { text-align: center; padding: 72px 0; }
.nz-spinner { width: 46px; height: 46px; border: 5px solid var(--navy-l); border-top-color: var(--navy); border-radius: 50%; margin: 0 auto 18px; animation: nzspin .9s linear infinite; }
@keyframes nzspin { to { transform: rotate(360deg); } }
.nz-toast:empty { display: none; }
.nz-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 4px; font-size: .95rem; box-shadow: var(--shadow); z-index: 50; max-width: calc(100% - 32px);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.nz-footer { background: var(--navy-d); color: #D5E2EA; font-size: .92rem; margin-top: 32px; }
.nz-footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 30px; }
.nz-footer-inner > div:first-child { max-width: 640px; }
.nz-footer strong { color: #fff; }
.nz-footer-links { display: flex; flex-direction: column; gap: 6px; }
.nz-footer a { color: #fff; white-space: nowrap; }
.nz-version { font-size: .78rem; opacity: .7; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nz-mdl-signin .nz-long { display: none; }
}
@media (max-width: 980px) {
  .nz-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nz-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nz-signin { grid-template-columns: minmax(0, 1fr); }
  .nz-next { grid-template-columns: minmax(0, 1fr); }
  .nz-promo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nz-wrap { padding: 0 16px; }
  .nz-demo-bar { padding: 6px 16px; font-size: .78rem; }
  .nz-header { padding: 10px 12px 10px 16px; gap: 8px; }
  .nz-wm-main { font-size: 1.02rem; }
  .nz-wm-sub { font-size: .78rem; }
  .nz-hlink { padding: 7px 10px; font-size: .9rem; }
  .nz-icon { width: 40px; height: 40px; }
  .nz-icon[aria-label="Search"] { display: none; }
  .nz-hero .nz-wrap { padding-top: 34px; padding-bottom: 64px; }
  .nz-hero-curve { height: 34px; width: 60%; border-top-left-radius: 60px 34px; }
  .nz-feature-grid, .nz-cat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nz-feature { min-height: 0; }
  .nz-cat { padding: 16px; }
  .nz-panel { padding: 18px 16px; }
  .nz-svc { padding: 14px 16px; grid-template-columns: minmax(0, 1fr); }
  .nz-svc .nz-svc-side { grid-row: auto; grid-column: 1; }
  .nz-svc .nz-svc-side svg.nz-chev { display: none; }
  .nz-licence { grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; }
  .nz-licence > div:last-child { display: contents; }
  .nz-photo { width: 92px; font-size: 1.8rem; }
  .nz-licence > .nz-photo { grid-row: 1 / span 2; }
  .nz-licence .nz-verified { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; font-size: .76rem; margin: 0; }
  .nz-licence .nz-name { grid-column: 2; grid-row: 2; align-self: start; font-size: 1.3rem; margin: 6px 0 0; }
  .nz-licence .nz-dl { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; }
  .nz-cert-body .nz-photo { width: 92px; }
  .nz-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .nz-dl > div { grid-template-columns: 18px minmax(0, 1fr); gap: 0 6px; padding: 7px 0; }
  .nz-dl svg { width: 17px; height: 17px; }
  .nz-dl dt { font-size: .78rem; }
  .nz-dl dd { font-size: .95rem; }
  .nz-feature { padding: 16px 16px 14px; }
  .nz-feature p { margin-bottom: 8px; }
  .nz-online-ico { width: 32px; height: 32px; }
  .nz-online-ico svg { width: 19px; height: 19px; }
  .nz-section { padding-top: 20px; }
  .nz-claims ul { columns: 1; }
  .nz-review > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nz-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .nz-table, .nz-table tbody, .nz-table tr, .nz-table td { display: block; width: 100%; }
  .nz-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nz-table td { border: 0; padding: 0; font-size: .9rem; color: var(--muted); grid-column: 2; }
  .nz-table td:first-child { grid-column: 1; grid-row: 1 / span 8; align-self: start; padding-top: 2px; }
  .nz-table td[data-label="Vehicles"] { font-weight: 600; color: var(--ink); font-size: 1rem; }
  .nz-table td[data-label="Issued"]::before, .nz-table td[data-label="Expires"]::before, .nz-table td[data-label="Conditions"]::before,
  .nz-table td[data-label="Type"]::before, .nz-table td[data-label="Status"]::before { content: attr(data-label) " "; }
  .nz-table td[colspan] { grid-column: 1 / -1; grid-row: auto; }
  .nz-cert { padding: 22px 16px; }
  .nz-cert-head { flex-direction: column; }
  .nz-cert-ref { text-align: left; }
  .nz-cert-body { grid-template-columns: minmax(0, 1fr); }
  .nz-cert::before { font-size: 1.3rem; }
  .nz-footer-inner { flex-direction: column; }
  .nz-btn { width: 100%; }
}

/* ── Print: certificate only ─────────────────────────────────────── */
@media print {
  body { background: #fff; }
  .nz-demo-bar, .nz-header, .nz-footer, .nz-crumbs, .nz-pagehead, .nz-progress, .nz-noprint, .nz-toast { display: none !important; }
  .nz-cert { box-shadow: none; border-color: #555; margin: 0; }
}
.nz-signin .nz-read { margin: 0; background: #fff; border: 0; box-shadow: var(--shadow); padding: 20px; }

/* ── Credential choice (sign-in) ─────────────────────────────────── */
.nz-choice { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.nz-choice legend { padding: 0; margin-bottom: 10px; }
.nz-choice legend h2 { margin: 0; }
.nz-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.nz-opt + .nz-opt { margin-top: 8px; }
.nz-opt input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ok); }
.nz-opt:has(input:checked) { border-color: var(--ok); background: #F3FAF6; }
.nz-opt:has(input:focus-visible) { outline: 3px solid #F2B400; outline-offset: 2px; }
.nz-opt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nz-opt-body strong { color: var(--navy); }
.nz-opt-body > span { font-size: .93rem; color: var(--muted); }
.nz-opt-meta { font-size: .82rem !important; }
.nz-opt-meta code { overflow-wrap: anywhere; }
.nz-rec { display: inline-block; font-size: .72rem; font-weight: 800; color: #fff; background: var(--ok); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; }

/* "What we read" groups (mDL-NZ) */
.nz-read-head .nz-count { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.nz-chip-group + .nz-chip-group { margin-top: 10px; }
.nz-chip-head { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.nz-chip.dom { background: #E8F4EE; color: #145C39; box-shadow: inset 0 0 0 1px #9FD0B5; }
.nz-read-key { font-size: .8rem; color: var(--muted); margin: 10px 0 0; display: flex; align-items: center; gap: 6px; }
.nz-read-key .nz-chip { padding: 1px 8px; font-size: .74rem; }

/* Licence classes: NZ domestic + ISO */
.nz-subhead { font-size: 1.05rem; margin: 4px 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.nz-subhead ~ .nz-subhead { margin-top: 22px; }
.nz-ns { font-size: .76rem; font-weight: 600; color: var(--muted); font-family: Consolas, "SFMono-Regular", monospace; }
.nz-status { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #EEF1F4; color: var(--muted); }
.nz-status.ok { background: var(--ok-bg); color: var(--ok); }
.nz-conds { list-style: none; margin: 0; padding: 0; }
.nz-conds li + li { margin-top: 3px; }
.nz-conds strong { display: inline-block; min-width: 26px; padding: 0 6px; margin-right: 4px; border-radius: 4px; background: #FFF1C9; color: #5A4300; font-size: .82rem; text-align: center; }

/* Address and age checks */
.nz-k { display: block; font-size: .82rem; color: var(--muted); }
.nz-addr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px 28px; }
.nz-addr-main { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.nz-addr-main > svg { width: 20px; height: 20px; color: var(--muted); margin-top: 2px; }
.nz-addr-main strong { display: block; font-size: 1.05rem; }
.nz-addr-parts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: .92rem; }
.nz-addr-parts .nz-k { display: inline; }
.nz-ages ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nz-ages li { font-size: .88rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.nz-ages li.yes { background: var(--ok-bg); color: var(--ok); }
.nz-ages li.no { background: #F1F3F5; color: #66737D; }
@media (max-width: 640px) { .nz-addr { grid-template-columns: minmax(0, 1fr); } }
