/* citizen-theme.css — Direction B "Karatula" (plan A-38) for the public + citizen web area, converted from Docs/mockups/citizen/assets/citizen-b.css (A-39).
   LGU-variable tokens (--cz-ink, --cz-action, --cz-surface, --cz-action-text) are NOT declared here: GET /citizen-theme/tokens.css emits them from BrandingSetting.
   Everything below is fixed by Direction B. One responsive DOM: phone (< 1024 px) = full-width rows + five-tab bar; desktop (≥ 1024 px) = top nav + hero band + 2:1 grid. */

/* ---- Self-hosted type (ARCH § 13) ------------------------------------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../lib/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

/* ---- Fixed tokens ------------------------------------------------------ */
:root {
  --cz-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --cz-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --cz-done: #15803d;        /* done / verified — 4.6:1 with white tag text (was #16a34a, 3.3:1; plan A-49) */
  --cz-now: #eab308;         /* in progress / attention */
  --cz-alert: #dc2626;       /* action needed / emergency */
  --cz-info: #4f46e5;        /* information / links */
  --cz-muted: #5b6573;       /* secondary text — 5.9:1 on white */
  --cz-rule: #e2e5ea;        /* thin rule */
  --cz-link: #3730a3;        /* link ink — 8.6:1 on white */
  --cz-link-hover: #312e81;
  --cz-ph-1: #e9ecef;        /* placeholder image stripes */
  --cz-ph-2: #dde1e6;
  --cz-on-fixed: #fff;       /* text on a fixed status colour */
  --cz-on-ink-muted: rgba(255, 255, 255, .75);
  --cz-on-ink-rule: rgba(255, 255, 255, .4);
  --cz-on-ink-track: rgba(255, 255, 255, .25);
}

/* ---- Base ----------------------------------------------------------------- */
.cz { margin: 0; font-family: var(--cz-body); color: var(--cz-ink); background: var(--cz-surface); min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.4; }
.cz a { color: var(--cz-link); }
.cz a:hover { color: var(--cz-link-hover); }
/* Component anchors (tabs, buttons, tags, rows, cells, bands) carry their own ink; only prose links take the link colour. */
.cz a.cz-plain, .cz a.cz-tab, .cz a.cz-emergency, .cz a.cz-cell, .cz a.cz-btn-k, .cz a.cz-btn-y, .cz a.cz-btn-o, .cz a.cz-tag, .cz a.cz-pill, .cz a.cz-chip, .cz .cz-foot2 > a, .cz .cz-nav-links a, .cz .cz-foot a, .cz .cz-section-head a { color: inherit; text-decoration: none; }
.cz a.cz-tab.on { color: var(--cz-action); }
.cz a.cz-btn-k, .cz a.cz-emergency { color: var(--cz-surface); }
.cz a.cz-emergency { color: var(--cz-on-fixed); }
.cz a.cz-btn-y, .cz a.cz-tag-action { color: var(--cz-action-text); }
.cz .cz-nav-links a.on { color: var(--cz-action); }
.cz .cz-section-head a, .cz .cz-foot a { text-decoration: underline; }
.cz-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.cz-wrap { width: 100%; box-sizing: border-box; } /* padding (cz-pad) stays inside the 100 % — a content-box wrap pushed /Announcements/{id} and /Verify 40 px past the viewport */
.cz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cz :focus-visible { outline: 3px solid var(--cz-info); outline-offset: 2px; }

/* ---- Type ----------------------------------------------------------------- */
.cz-brand { font-family: var(--cz-display); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.cz-brand-lg { font-size: 16px; }
.cz-logo { width: 32px; height: 32px; border-radius: 999px; vertical-align: middle; margin-right: 10px; background: var(--cz-surface); }
.cz-h1 { font-family: var(--cz-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.02em; margin: 0; }
.cz-h1-xl { font-size: 40px; }
.cz-h1s { font-family: var(--cz-display); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.cz-h2 { font-family: var(--cz-display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin: 0; }
.cz-eyebrow, h2.cz-eyebrow { font-family: var(--cz-display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cz-muted); padding: 18px 20px 6px; margin: 0; line-height: 1.3; } /* section heads are h2s (screen-reader landmarks) with the eyebrow look */
.cz-rt { font-family: var(--cz-display); font-weight: 800; font-size: 20px; line-height: 1.1; }
.cz-rt-sm { font-size: 18px; }
.cz-rs { font-size: 15px; color: var(--cz-muted); }
.cz-muted { font-size: 14px; color: var(--cz-muted); }
.cz-strong { font-weight: 600; }
.cz-lead { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cz-num { font-family: var(--cz-display); font-weight: 800; font-size: 22px; width: 32px; flex-shrink: 0; }
.cz-ref { font-family: var(--cz-display); font-weight: 800; font-size: 26px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .cz-ref { font-size: 20px; letter-spacing: 0; white-space: nowrap; } .cz-pad-box .cz-ref { font-size: 18px; white-space: normal; overflow-wrap: anywhere; } } /* header reference on one line; inside the bordered box (Submitted) it may break rather than overflow */ /* BTC-HLT-MED-2026-000002 stays on one line at 375 */
.cz-meta { font-size: 13px; color: var(--cz-muted); margin-top: 6px; }

/* ---- Header (phone) + nav (desktop) --------------------------------------- */
.cz-hd { background: var(--cz-ink); color: var(--cz-surface); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.cz-hd-row { display: flex; align-items: center; gap: 10px; }
.cz-hd-row .cz-brand { flex-grow: 1; }
.cz-nav { display: none; background: var(--cz-ink); color: var(--cz-surface); align-items: center; gap: 32px; padding: 0 64px; height: 72px; }
.cz-nav-links { display: flex; gap: 28px; font-size: 16px; font-weight: 600; flex-grow: 1; }
.cz-nav-links a { color: inherit; text-decoration: none; padding-bottom: 4px; border-bottom: 3px solid transparent; }
.cz-nav-links a.on { color: var(--cz-action); border-bottom-color: var(--cz-action); }
.cz-lang { font-size: 14px; font-weight: 600; border: 1px solid var(--cz-on-ink-rule); padding: 8px 12px; }
.cz-user { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.cz-avatar { width: 36px; height: 36px; background: var(--cz-action); color: var(--cz-action-text); display: flex; align-items: center; justify-content: center; font-family: var(--cz-display); font-weight: 800; font-size: 14px; flex-shrink: 0; }
.cz-avatar-sm { width: 32px; height: 32px; font-size: 13px; }

/* ---- Hero ----------------------------------------------------------------- */
.cz-hero { background: var(--cz-ink); color: var(--cz-surface); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.cz-hero-grid { display: flex; flex-direction: column; gap: 12px; }
.cz-hero .cz-h { font-family: var(--cz-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.02em; margin: 0; }
.cz-search { display: flex; align-items: center; gap: 10px; background: var(--cz-surface); color: var(--cz-ink); padding: 14px 16px; }
.cz-search input { flex-grow: 1; border: 0; font: inherit; font-size: 17px; color: var(--cz-ink); background: transparent; min-width: 0; }
.cz-search input::placeholder { color: var(--cz-muted); }
.cz-search svg { flex-shrink: 0; }
.cz-hero-img { display: none; }
.cz-hero .cz-eyebrow { color: var(--cz-on-ink-muted); padding: 0; margin: 0 0 8px; }
.cz-hero .cz-sub { color: var(--cz-on-ink-muted); font-size: 16px; margin: 8px 0 0; }

/* ---- Rows ----------------------------------------------------------------- */
.cz-grow > .cz-rt, .cz-grow > .cz-rs, .cz-grow > .cz-strong { display: block; }
.cz-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 2px solid var(--cz-ink); text-decoration: none; color: inherit; }
.cz-row-thin { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--cz-rule); }
.cz-row-top { align-items: flex-start; }
.cz-grow { flex-grow: 1; min-width: 0; }
.cz-bar { width: 14px; height: 44px; flex-shrink: 0; background: var(--cz-bar, var(--cz-ink)); }
.cz-band { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 2px solid var(--cz-ink); font-size: 16px; line-height: 1.35; }
.cz-list { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.cz-dated { display: flex; gap: 12px; align-items: baseline; }
a.cz-dated { min-height: 44px; box-sizing: border-box; padding-top: 6px; padding-bottom: 6px; } /* a dated announcement link is a 44 px target even on one line */
.cz-dated .cz-date { width: 56px; flex-shrink: 0; font-weight: 600; font-size: 15px; color: var(--cz-muted); }

/* ---- Buttons / tags --------------------------------------------------------- */
.cz-btn-k, .cz-btn-y, .cz-btn-o { display: block; width: 100%; box-sizing: border-box; border: 0; cursor: pointer; text-decoration: none; font-family: var(--cz-display); font-weight: 800; text-align: center; }
.cz-btn-k { background: var(--cz-ink); color: var(--cz-surface); padding: 20px; font-size: 18px; }
.cz-btn-y { background: var(--cz-action); color: var(--cz-action-text); padding: 20px; font-size: 18px; }
.cz-btn-o { background: transparent; color: var(--cz-ink); padding: 18px; font-size: 16px; border-bottom: 2px solid var(--cz-ink); }
.cz-tag { display: inline-flex; align-self: flex-start; align-items: center; font-weight: 600; font-size: 14px; padding: 7px 10px; text-decoration: none; }
a.cz-tag, button.cz-tag, .cz-tag-action { min-height: 48px; box-sizing: border-box; padding-left: 14px; padding-right: 14px; } /* a tag you can tap is a 48 px target (plan A-38 table, A-49); a status word stays compact */
.cz-tag-action { background: var(--cz-action); color: var(--cz-action-text); }
.cz-tag-lg { padding: 10px 18px; font-size: 16px; }
.cz-pill { font-family: var(--cz-display); font-weight: 800; font-size: 13px; padding: 8px 14px; border: 2px solid var(--cz-ink); background: transparent; color: var(--cz-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; }
.cz-pill.on { background: var(--cz-ink); color: var(--cz-action); }
.cz-pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Forms ---------------------------------------------------------------- */
.cz-field { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; border-bottom: 1px solid var(--cz-rule); }
.cz-lbl { font-weight: 600; font-size: 15px; }
.cz-inp { border: 2px solid var(--cz-ink); padding: 14px; font-size: 18px; font-family: inherit; width: 100%; box-sizing: border-box; background: var(--cz-surface); color: var(--cz-ink); }
.cz-error { color: var(--cz-alert); font-weight: 600; font-size: 14px; }
/* B4 polish § 1: Tom Select over a data-fed select keeps the Karatula input look (the wrapper inherits .cz-inp) */
.cz .ts-wrapper.cz-inp { padding: 0; border: 0; background: transparent; }
.cz .ts-wrapper.cz-inp .ts-control { border: 2px solid var(--cz-ink); border-radius: 0; padding: 14px; font-size: 18px; font-family: inherit; background: var(--cz-surface); color: var(--cz-ink); box-shadow: none; min-height: 0; }
.cz .ts-wrapper.cz-inp .ts-control input { font-size: 18px; color: var(--cz-ink); }
.cz .ts-wrapper.cz-inp.focus .ts-control { outline: 3px solid var(--cz-action); outline-offset: 2px; border-color: var(--cz-ink); }
.cz .ts-wrapper.cz-inp .ts-dropdown { border: 2px solid var(--cz-ink); border-radius: 0; font-size: 17px; margin-top: 4px; box-shadow: none; background: var(--cz-surface); color: var(--cz-ink); }
.cz .ts-wrapper.cz-inp .ts-dropdown .option { padding: 12px 14px; }
.cz .ts-wrapper.cz-inp .ts-dropdown .active { background: var(--cz-action); color: var(--cz-ink); }
.cz .ts-wrapper.cz-inp .clear-button { color: var(--cz-muted); }
.cz .ts-wrapper.cz-inp .ts-control .item[data-value=""] { color: var(--cz-muted); } /* the empty option reads as the placeholder, not as a choice */

/* ---- Two-up cells / footer grid ------------------------------------------- */
.cz-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cz-two > *:first-child { border-right: 2px solid var(--cz-ink); }
.cz-cell { padding: 18px; text-align: center; font-family: var(--cz-display); font-weight: 800; font-size: 15px; border-bottom: 2px solid var(--cz-ink); text-decoration: none; color: inherit; display: block; }
.cz-foot2 { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--cz-ink); }
.cz-foot2 > * { padding: 22px; text-align: center; font-family: var(--cz-display); font-weight: 800; font-size: 18px; text-decoration: none; color: inherit; }
.cz-foot2 > *:first-child { border-right: 2px solid var(--cz-ink); }

/* ---- Chat / progress -------------------------------------------------------- */
.cz-bub { padding: 14px 16px; font-size: 16px; line-height: 1.4; max-width: 300px; border: 2px solid var(--cz-ink); }
.cz-bub.me { background: var(--cz-ink); color: var(--cz-surface); align-self: flex-end; }
.cz-prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.cz-prog > div { height: 6px; background: var(--cz-on-ink-track); }
.cz-prog > div.on { background: var(--cz-action); }

/* ---- Status colour utilities (fixed by Direction B) ------------------------ */
.cz-bg-done { background: var(--cz-done); color: var(--cz-on-fixed); }
.cz-bg-now { background: var(--cz-now); color: var(--cz-ink); }
.cz-bg-alert { background: var(--cz-alert); color: var(--cz-on-fixed); }
.cz-bg-info { background: var(--cz-info); color: var(--cz-on-fixed); }
.cz-bg-ink { background: var(--cz-ink); color: var(--cz-surface); }
.cz-bg-action { background: var(--cz-action); color: var(--cz-action-text); }
.cz-bar-done { --cz-bar: var(--cz-done); }
.cz-bar-now { --cz-bar: var(--cz-now); }
.cz-bar-alert { --cz-bar: var(--cz-alert); }
.cz-bar-info { --cz-bar: var(--cz-info); }
.cz-bar-muted { --cz-bar: var(--cz-muted); }
.cz-bg-muted { background: var(--cz-muted); color: var(--cz-on-fixed); } /* plan A-48 § 7: a permit the registry has not placed yet */
.cz-inline-form { display: inline; margin: 0; }
.cz-bar-action { --cz-bar: var(--cz-action); }

/* ---- Emergency band ------------------------------------------------------- */
.cz-emergency { margin: 0 20px; background: var(--cz-alert); color: var(--cz-on-fixed); display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; text-decoration: none; }
.cz-emergency .cz-brand { font-size: 18px; letter-spacing: 0; }
.cz-emergency .cz-brand-num { font-size: 26px; letter-spacing: 0; }

/* ---- Placeholder image (fixed anatomy, LGU-variable picture) --------------- */
.cz-img { background: repeating-linear-gradient(135deg, var(--cz-ph-1) 0 12px, var(--cz-ph-2) 12px 24px); border: 2px solid var(--cz-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--cz-muted); font-family: var(--cz-display); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; overflow: hidden; }
.cz-img img { width: 100%; height: 100%; object-fit: cover; }
.cz-img-thumb { width: 120px; height: 80px; }
.cz-img-doc { width: 64px; height: 80px; flex-shrink: 0; } /* a saved document that is a picture (Vault) */
.cz-dated-thumb { display: none; margin-left: auto; } /* Home announcement cover — desktop rows only (mockup Main) */
@media (min-width: 1024px) { .cz-dated-thumb { display: flex; width: 96px; height: 64px; } a.cz-dated { align-items: center; } }
.cz-mayor { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border-top: 2px solid var(--cz-ink); border-bottom: 2px solid var(--cz-ink); }
.cz-mayor .cz-grow { min-width: 0; flex: 1 1 0; }
.cz-mayor p { margin: 0 0 12px; overflow-wrap: anywhere; }
.cz-mayor-photo { width: 120px; height: 120px; border-radius: 0; }
.cz-mayor-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .cz-mayor-photo { width: 200px; height: 200px; } }
.cz-img-office { width: 96px; height: 72px; }
.cz-img-hero { width: 100%; aspect-ratio: 8 / 5; }
.cz-img.cz-hero-img { display: none; }

/* ---- Tab bar (phone) / footer (desktop) ----------------------------------- */
.cz-tabs { position: sticky; bottom: 0; margin-top: auto; display: flex; background: var(--cz-ink); color: var(--cz-surface); padding: 10px 4px 12px; z-index: 10; }
.cz-tab { flex-grow: 1; text-align: center; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.cz-tab svg { stroke: currentColor; }
.cz-tab.on { color: var(--cz-action); font-weight: 600; }
.cz-foot { display: none; background: var(--cz-ink); color: var(--cz-surface); padding: 40px 0; margin-top: auto; }
.cz-foot .cz-wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--cz-on-ink-muted); }
.cz-foot a { color: inherit; }

/* ---- Desktop-only blocks (side column, app promo) -------------------------- */
.cz-side { display: flex; flex-direction: column; gap: 24px; padding: 8px 20px 24px; }
.cz-sb { display: flex; flex-direction: column; gap: 10px; }
.cz-sb .t { font-family: var(--cz-display); font-weight: 800; font-size: 18px; }
.cz-sb p { margin: 0; font-size: 15px; line-height: 1.5; }
.cz-sb .lnk { font-weight: 600; text-decoration: underline; font-size: 15px; }
.cz-box { border: 2px solid var(--cz-ink); padding: 20px; }
.cz-box p { margin: 0; font-size: 15px; line-height: 1.4; }
.cz-box .cz-brand { display: block; margin-bottom: 6px; }
.cz-box .cz-pills { margin-top: 12px; }
.cz-side .cz-h2 { margin-bottom: 8px; }
.cz-side .cz-emergency { margin: 0; }
.cz-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; padding: 18px 20px 0; }
.cz-section-head a { font-weight: 600; text-decoration: underline; color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.cz-desktop-only { display: none; }
.cz-phone-only { display: block; }
.cz-grid2, .cz-main-side { display: flex; flex-direction: column; }
.cz-col { display: flex; flex-direction: column; }
.cz-arrow { flex-shrink: 0; }

/* ============================================================================
   Desktop ≥ 1024 px — top nav + hero band + 2:1 main/side grid (citizen/Main.html desktop tree)
   ============================================================================ */
@media (min-width: 1024px) {
  .cz-hd, .cz-tabs, .cz-phone-only { display: none; }
  .cz-nav, .cz-foot { display: flex; }
  .cz-desktop-only { display: block; }
  .cz-wrap { width: min(1312px, calc(100% - 128px)); margin: 0 auto; }
  .cz-hero { padding: 56px 0 64px; border-bottom: 4px solid var(--cz-action); }
  .cz-hero-grid { display: grid; grid-template-columns: 1fr 480px; gap: 48px; align-items: center; }
  .cz-hero .cz-h { font-size: 64px; line-height: .98; max-width: 720px; }
  .cz-search { padding: 18px 22px; max-width: 720px; margin-top: 28px; }
  .cz-img.cz-hero-img { display: flex; width: 480px; height: 300px; }
  .cz-section { padding: 48px 0 40px; }
  .cz-section-tight { padding: 0 0 56px; }
  .cz-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
  .cz-main-side { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; }
  .cz-side { border-left: 2px solid var(--cz-ink); padding: 0 0 0 40px; }
  .cz-section-head { padding: 0; }
  .cz-row { gap: 20px; padding: 24px 0; }
  .cz-row .cz-rt { font-size: 24px; }
  .cz-row .cz-rt-sm { font-size: 22px; }
  .cz-row .cz-rs { font-size: 16px; }
  .cz-bar { width: 16px; height: 56px; }
  .cz-row-thin { padding: 12px 0; }
  .cz-eyebrow { padding-left: 0; padding-right: 0; }
  .cz-list { padding-left: 0; padding-right: 0; }
  .cz-emergency { margin: 0; padding: 22px 24px; }
  .cz-emergency .cz-brand { font-size: 20px; }
  .cz-emergency .cz-brand-num { font-size: 32px; }
  .cz-two-dk { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--cz-ink); }
  .cz-two-dk > *:first-child { border-right: 2px solid var(--cz-ink); }
  .cz-foot2 { margin-top: 24px; border: 2px solid var(--cz-ink); }
  .cz-field { padding-left: 0; padding-right: 0; }
  .cz-band { padding-left: 0; padding-right: 0; }
}

/* Phase 7.3 — account and stepper surfaces (citizen/SignIn.html, citizen/Register.html): same container as every page, form capped at 760 px */
.cz-hd-page { padding: 24px 20px 8px; }
/* the flash line the controllers leave in TempData — one band above the page header */
.cz-flash { padding: 12px 20px 0; }
.cz-flash .cz-row { border-top: 2px solid var(--cz-ink); border-bottom: 2px solid var(--cz-ink); }
.cz-hd-page .cz-sub { margin: 8px 0 0; font-size: 16px; color: var(--cz-muted); }
.cz-hd-page .cz-sub a, .cz-links a { color: var(--cz-ink); font-weight: 600; }
.cz-pad { padding: 12px 20px; }
.cz-links p { margin: 0 0 8px; font-size: 16px; }
.cz-form { display: flex; flex-direction: column; }
.cz-form .cz-field .cz-muted { font-size: 14px; }
.cz-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cz-field-row > div { display: flex; flex-direction: column; gap: 6px; }
.cz-check { flex-direction: row; align-items: center; gap: 12px; }
.cz-check input { width: 24px; height: 24px; accent-color: var(--cz-ink); flex-shrink: 0; }
.cz-check label { font-size: 16px; flex-grow: 1; display: flex; align-items: center; min-height: 48px; cursor: pointer; } /* the label is the target (48 px row), not the 24 px box */
.cz-btn { display: block; width: calc(100% - 40px); margin: 16px 20px 0; border: 0; font: inherit; font-family: var(--cz-display); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; }
.cz-btn:focus-visible, .cz-inp:focus-visible, .cz-link-btn:focus-visible { outline: 3px solid var(--cz-action); outline-offset: 2px; }
.cz-inp-code { font-family: var(--cz-display); font-weight: 800; font-size: 32px; letter-spacing: .3em; text-align: center; }
.cz-link-btn { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--cz-ink); text-decoration: underline; cursor: pointer; } /* text-styled, but still a 44 px target */
.cz-link-btn:disabled { color: var(--cz-muted); text-decoration: none; cursor: default; }
.cz-prog-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.cz-prog-3 > div { background: var(--cz-rule); }
.cz-prog-3 > div.on { background: var(--cz-ink); }
.cz-eyebrow-flush { padding: 8px 0; }
.cz-eyebrow-family { color: var(--cz-ink); padding-top: 28px; border-top: 2px solid var(--cz-ink); } /* plan A-48 § 8: the Services page family sections */
.cz-tag.cz-bg-done, .cz-tag.cz-bg-now { font-family: var(--cz-display); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cz-inp.ts-wrapper, .ts-wrapper.cz-inp .ts-control { padding: 0; border: 0; }
.cz-field .ts-wrapper .ts-control { border: 2px solid var(--cz-ink); border-radius: 0; padding: 14px; font-size: 18px; }

/* Phase 7.3 — finder, service page, directory, announcements, home, me */
.cz-hero-compact { padding-bottom: 16px; }
.cz-h-sm { font-size: 30px !important; margin-bottom: 12px !important; }
.cz-hero .cz-eyebrow { color: var(--cz-on-ink-muted); }
.cz-tabstrip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 4px; scrollbar-width: none; }
.cz-tabstrip::-webkit-scrollbar { display: none; }
.cz-chip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 48px; box-sizing: border-box; font-family: var(--cz-display); font-weight: 800; font-size: 13px; padding: 8px 14px; border: 2px solid var(--cz-ink); color: var(--cz-ink); text-decoration: none; white-space: nowrap; }
.cz-chip.on, .cz a.cz-chip.on { background: var(--cz-ink); color: var(--cz-surface); } /* the anchor colour-inherit rule above must not win on a selected chip */
.cz-checklist { list-style: none; margin: 0; padding: 0; }
.cz-check-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--cz-rule); }
.cz-check-row .cz-grow > span { display: block; }
.cz-two-btn { display: flex; gap: 6px; flex-shrink: 0; }
.cz-pill { cursor: pointer; font-family: inherit; }
.cz-pill.on { background: var(--cz-ink); color: var(--cz-surface); }
.cz-cta { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 24px; }
.cz-cta .cz-btn { margin-top: 0; }
.cz-btn-flush { margin-left: 0; margin-right: 0; width: 100%; }
.cz-pad-y { display: inline-block; padding: 12px 0; }
.cz-dl { display: grid; grid-template-columns: 110px 1fr; row-gap: 12px; column-gap: 12px; margin: 0; }
.cz-dl dt { font-family: var(--cz-display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cz-muted); padding-top: 3px; }
.cz-dl dd { margin: 0; font-size: 18px; font-weight: 600; }
.cz-body { font-size: 17px; line-height: 1.5; }
.cz-body p { margin: 0 0 12px; }
.cz-avatar-lg { width: 56px; height: 56px; font-size: 20px; flex-shrink: 0; }
.cz-cell { display: flex; flex-direction: column; gap: 4px; align-items: center; color: inherit; }
.cz-cell .cz-eyebrow { padding: 0; }
.cz-cell .cz-muted { font-family: var(--cz-body); font-weight: 400; font-size: 13px; }
.cz-row .cz-tag { margin-top: 8px; }
.cz-grow > .cz-tag, .cz-grow > .cz-eyebrow { display: inline-flex; }
.cz-grow > .cz-eyebrow { display: block; padding: 0 0 4px; }
.cz-row-thin.cz-plain, .cz-dated.cz-plain, .cz-cell.cz-plain { text-decoration: none; color: inherit; }
.cz-dated.cz-plain .cz-lead { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .cz-hd-page, .cz-tabstrip, .cz-check-row, .cz-eyebrow, .cz-pad { padding-left: 0; padding-right: 0; }
  .cz-cta { flex-direction: row; }
  .cz-cta .cz-btn { width: auto; margin: 0; min-width: 260px; }
  .cz-cta .cz-muted { flex-basis: 100%; }
  .cz-btn { width: auto; min-width: 320px; margin-left: 0; margin-right: 0; }
  .cz-dl { grid-template-columns: 160px 1fr; }
}
.cz-row-thin a.cz-strong, .cz-links a, .cz-hd-page .cz-sub a { color: var(--cz-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Phase 8.1 — apply stepper, tracker timeline, messages, feedback, alerts */
.cz-prog-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cz-slot { align-items: flex-start; }
.cz-slot .cz-grow > span, .cz-slot .cz-grow > form { display: block; margin-top: 4px; }
.cz-slot .cz-tag { display: inline-block; margin-top: 8px; }
.cz-attach { display: flex; flex-direction: column; gap: 8px; padding-top: 0; border-bottom: 1px solid var(--cz-rule); padding-bottom: 16px; }
.cz-attach .cz-btn { margin-top: 0; }
.cz-file-btn { position: relative; cursor: pointer; overflow: hidden; }
.cz-file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.cz-timeline { list-style: none; margin: 0; padding: 8px 20px 16px; }
.cz-timeline li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--cz-rule); }
.cz-timeline li:last-child { border-bottom: 0; }
.cz-timeline .cz-grow > span { display: block; }
.cz-timeline .cz-num { width: 36px; height: 36px; border: 2px solid var(--cz-ink); display: grid; place-items: center; font-size: 16px; }
.cz-tl-done .cz-num { background: var(--cz-ink); color: var(--cz-surface); }
.cz-tl-now .cz-num { background: var(--cz-action); color: var(--cz-action-text); }
.cz-tl-upcoming { color: var(--cz-muted); }
.cz-tl-upcoming .cz-num { border-color: var(--cz-rule); color: var(--cz-muted); }
.cz-tl-stopped .cz-num { background: var(--cz-alert); border-color: var(--cz-alert); color: var(--cz-on-fixed); }
.cz-details > summary { list-style: none; cursor: pointer; }
.cz-details > summary::-webkit-details-marker { display: none; }
.cz-details[open] > summary { border-bottom: 0; }
.cz-details .cz-form { padding-top: 8px; }
.cz-pad-box { margin: 16px 20px 0; }
.cz-thread { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px 24px; }
.cz-eyebrow-center { text-align: center; padding: 8px 0; }
.cz-msg { display: flex; flex-direction: column; max-width: 85%; }
.cz-msg-me { align-self: flex-end; align-items: flex-end; }
.cz-msg-them { align-self: flex-start; align-items: flex-start; }
.cz-msg-me .cz-bub { background: var(--cz-ink); color: var(--cz-surface); }
.cz-composer { margin-top: 12px; border-top: 2px solid var(--cz-ink); padding-top: 12px; }
.cz-composer .cz-field { padding: 0; }
.cz-composer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.cz-btn-inline { display: inline-flex; align-items: center; width: auto; margin: 0; padding: 12px 22px; min-height: 48px; box-sizing: border-box; }
.cz-stars { display: flex; gap: 8px; margin-top: 8px; }
.cz-stars input, .cz-sr-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cz-stars input:checked + .cz-pill, .cz-sr-input:checked + .cz-pill { background: var(--cz-ink); color: var(--cz-action); }
.cz-stars input:focus-visible + .cz-pill, .cz-sr-input:focus-visible + .cz-pill { outline: 3px solid var(--cz-action); outline-offset: 2px; }
.cz-stars .cz-pill { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; font-size: 18px; }
.cz-row-btn { width: 100%; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cz-row-btn .cz-grow > span { display: block; }
.cz-unread { border-left: 6px solid var(--cz-action); }
@media (min-width: 1024px) {
  .cz-thread { max-width: 720px; }
}
.cz-thread { box-sizing: border-box; }
.cz-msg .cz-bub { max-width: 100%; box-sizing: border-box; }
.cz-row-btn { border: 0; border-bottom: 1px solid var(--cz-rule); }
.cz-row-btn.cz-unread { border-left: 6px solid var(--cz-action); }
.cz-slot .cz-grow > span.cz-tag { display: inline-block; }
.cz-row .cz-grow > .cz-tag-action { display: inline-block; margin-top: 12px; }
.cz-pad-box .cz-ref { font-size: 24px; letter-spacing: 0; }
@media (min-width: 1024px) {
  .cz-hd-page { width: min(1312px, calc(100% - 128px)); margin: 0 auto; }
  /* Desktop width (lead decision 2026-09-16): every page — list, hub, detail, stepper, form — fills the same .cz-wrap container, so headers, rules and rows
     line up from page to page. Only a form or a reading column is capped at 760 px and sits left-aligned inside it (inputs stay readable; the job-board
     filter row is the exception — it lays its fields out across the container). */
  .cz-form:not(.cz-filters), .cz-notice > * { max-width: 760px; }
  .cz-wrap .cz-hd-page { width: auto; }
  /* the flash band the layout renders above the page takes the container width, not the viewport */
  .cz-flash { width: min(1312px, calc(100% - 128px)); margin: 0 auto; padding-left: 0; padding-right: 0; }
  /* a list page's filter form lies in one row instead of stacking 1312-px-wide inputs */
  .cz-filters { display: grid; grid-template-columns: 2fr 1.4fr .9fr 1.6fr auto; column-gap: 16px; align-items: end; }
  .cz-filters .cz-field-row { display: contents; }
  .cz-filters .cz-field { border-bottom: 0; }
  .cz-filters .cz-btn { width: auto; margin-bottom: 14px; padding-left: 40px; padding-right: 40px; }
}

/* Phase 8.1b — verify, household, vault, digital ID, settings */
.cz-choice { cursor: pointer; }
.cz-choice input[type="radio"] { width: 24px; height: 24px; accent-color: var(--cz-ink); flex-shrink: 0; }
.cz-choice .cz-grow > span { display: block; }
.cz-side-block { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-top: 2px solid var(--cz-ink); }
.cz-side-block .cz-link-btn { align-self: flex-start; }
.cz-switch-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--cz-rule); cursor: pointer; font-size: 17px; }
.cz-switch-row .cz-grow > span { display: block; }
.cz-switch { appearance: none; width: 72px; height: 32px; border: 2px solid var(--cz-ink); background: var(--cz-surface); position: relative; flex-shrink: 0; cursor: pointer; }
.cz-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: var(--cz-ink); transition: transform .15s; }
/* the state as a word, never colour or shape alone (UI § 17.1, A-49): OFF beside the knob on surface, ON on ink */
.cz-switch::before { content: "OFF"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--cz-display); font-weight: 800; font-size: 11px; letter-spacing: .06em; color: var(--cz-ink); }
.cz-switch:checked { background: var(--cz-ink); }
.cz-switch:checked::after { background: var(--cz-action); transform: translateX(40px); }
.cz-switch:checked::before { content: "ON"; right: auto; left: 10px; color: var(--cz-action); }
.cz-switch:focus-visible { outline: 3px solid var(--cz-action); outline-offset: 2px; }
.cz-idcard { margin: 16px 20px 0; border: 2px solid var(--cz-ink); background: var(--cz-surface); }
.cz-idcard-off { opacity: .6; }
.cz-idcard-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--cz-ink); color: var(--cz-surface); }
.cz-idcard-head .cz-brand { color: var(--cz-action); }
.cz-idcard-body { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px; align-items: flex-start; } /* photo · details · QR — the QR wraps under the details on a phone */
.cz-idcard-qr img { display: block; width: 140px; height: 140px; border: 2px solid var(--cz-ink); }
.cz-id-photo { width: 80px; height: 100px; flex-shrink: 0; background: var(--cz-rule); overflow: hidden; } /* the card's ID photo (mockup DigitalId); grey slot when none is on file */
.cz-id-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cz-idcard-dl { grid-template-columns: 90px 1fr; font-size: 15px; flex: 1 1 160px; }
.cz-idcard-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 2px solid var(--cz-ink); font-size: 13px; color: var(--cz-muted); }
@media (max-width: 1023px) {
  .cz-idcard-qr { flex-basis: 100%; display: flex; justify-content: center; }
}
@media (min-width: 1024px) {
  .cz-idcard { margin: 16px 0 0; }
  .cz-side-block { padding-left: 0; padding-right: 0; }
  .cz-switch-row { padding-left: 0; padding-right: 0; }
}
.cz-dialog { border: 2px solid var(--cz-ink); padding: 0; max-width: 360px; width: calc(100% - 40px); background: var(--cz-surface); color: var(--cz-ink); }
.cz-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.cz-dialog-form { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.cz-dialog-title { margin: 0; font-family: var(--cz-display); font-weight: 800; font-size: 20px; }
.cz-dialog-actions { justify-content: flex-end; margin-top: 8px; }
.cz-stack > * { display: block; }
.cz-stack > .cz-tag { display: inline-flex; margin-top: 8px; }
.cz-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 8px 20px 16px; }
.cz-gallery a { position: relative; display: block; border: 2px solid var(--cz-ink); }
.cz-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cz-gallery .cz-tag { position: absolute; top: 6px; left: 6px; }
.cz-loc { align-items: stretch; }
.cz-loc .cz-inp { flex: 1; }
@media (min-width: 1024px) { .cz-gallery { padding-left: 0; padding-right: 0; } }
/* Book a visit — step 3 picker: a day strip of calendar-style chips, then the free times in a Morning / Afternoon grid of equal pills */
.cz-daystrip { padding-top: 4px; }
.cz-day { display: grid; justify-items: center; gap: 0; min-width: 72px; padding: 8px 10px 6px; line-height: 1.1; text-align: center; color: var(--cz-ink); }
.cz-day-name { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--cz-muted); }
.cz-day-num { font-size: 24px; font-weight: 800; margin-top: 2px; }
.cz-day-mon { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.cz-day.on .cz-day-name, .cz-day.on .cz-day-mon { color: var(--cz-action); }
.cz-daylead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 18px; padding-bottom: 6px; }
.cz-daylead .cz-lead { margin: 0; }
.cz-slotgroups .cz-eyebrow { padding-top: 10px; padding-bottom: 6px; }
.cz-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cz-times .cz-pill { display: grid; justify-items: center; align-content: center; gap: 2px; box-sizing: border-box; min-height: 56px; padding: 8px; text-align: center; font-size: 15px; }
.cz-slot-time { font-variant-numeric: tabular-nums; }
.cz-slot-left { font-family: var(--cz-body); font-weight: 600; font-size: 11px; color: var(--cz-alert); text-transform: none; letter-spacing: 0; }
.cz-sr-input:checked + .cz-pill .cz-slot-left { color: var(--cz-action); }
.cz-slot-summary { margin-top: 12px; padding-top: 12px; padding-bottom: 12px; border-top: 2px solid var(--cz-rule); font-size: 17px; color: var(--cz-muted); }
.cz-slot-summary-on { color: var(--cz-ink); font-weight: 600; }
.cz-pill-off { opacity: .35; cursor: default; }
.cz-sr-input:disabled + .cz-pill { pointer-events: none; }
.cz-qr-box { text-align: center; }
.cz-qr-box img { display: block; margin: 12px auto; border: 2px solid var(--cz-ink); }
.cz-datebox { display: flex; flex-direction: column; align-items: center; width: 48px; flex-shrink: 0; }
.cz-datebox .cz-num { width: auto; font-size: 28px; line-height: 1; }
.cz-tab-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--cz-action); color: var(--cz-action-text); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; vertical-align: top; }

/* plan A-46 — the directory map (Leaflet, self-hosted; tiles from OpenStreetMap) */
.cz-map { height: 360px; border-top: 2px solid var(--cz-ink); border-bottom: 2px solid var(--cz-ink); background: var(--cz-rule); }
.cz-map .leaflet-popup-content { font-family: var(--cz-body); font-size: 15px; line-height: 1.35; }
.cz-map .leaflet-popup-content .cz-strong { display: block; }
.cz-map-note { font-size: 15px; color: var(--cz-muted); padding: 8px 20px 0; }
.cz-pills .cz-pill[data-kind] { cursor: pointer; }
.cz a.cz-pill.on { color: var(--cz-action); } /* the anchor rule above (`.cz a.cz-pill { color: inherit }`) outranks `.cz-pill.on` — the selected filter read black on black */

/* Public data-privacy notice (BATLGU-22): section eyebrows over prose; the outline action inside the legal-notice box sits inline, not full-width */
.cz-notice .cz-eyebrow { padding-top: 22px; padding-bottom: 6px; }
.cz-notice .cz-box { margin-top: 20px; }
.cz-notice .cz-box p { margin: 0 0 14px; }
.cz-notice-btn { display: inline-block; width: auto; padding: 12px 20px; border: 2px solid var(--cz-ink); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

/* A-49 fix batch 2 — classes the views already used, now defined */
.cz-inp-sm { max-width: 200px; } /* a short numeric field (TIN last 4, years) — never the full row */
.cz-upload { display: flex; flex-direction: column; gap: 8px; padding: 8px 20px 12px; } /* one requirement's attach form on the documents step */
.cz-prewrap { white-space: pre-line; }

/* A-49: a stepper or settings form ends in a sticky action bar above the tab bar (mockups: BACK | NEXT, CANCEL | SAVE), so the primary action is never off-screen.
   Budget on a 375 px landscape phone: tab bar 89 + bar 58 = 147 px (39 %). On desktop the bar goes back to the inline pair. */
@media (max-width: 1023px) {
  .cz-cta-sticky { position: sticky; bottom: 89px; z-index: 5; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 16px 0 0; padding: 4px 20px 6px; background: var(--cz-surface); border-top: 2px solid var(--cz-ink); }
  .cz-cta-sticky .cz-btn { margin: 0; width: 100%; padding: 12px 8px; min-height: 48px; font-size: 15px; letter-spacing: .02em; }
  .cz-cta-sticky:has(> .cz-btn:nth-child(2):last-child), .cz-cta-sticky:has(> input[type=hidden] + .cz-btn + .cz-btn:last-child) { grid-template-columns: 2fr 3fr; } /* Back | Next: the primary gets the wider column so its label stays on one line */
  .cz-cta-sticky > .cz-muted, .cz-cta-sticky > p { grid-column: 1 / -1; margin: 0 0 4px; }
}

/* ============================================================================
   A-49 — page anatomy shared by every citizen / public page
   Phone (< 1024): white page header (eyebrow → h1 → sub | progress), rows, trailing side blocks stacked at the end.
   Desktop (≥ 1024): the header becomes the INK HERO BAND (title + chips on --cz-ink, full-bleed background, container-width content) and a
   .cz-wrap.cz-page-grid lays its content in the mockups' 2:1 main/side grid — main column framed by a 2 px rule, aside.cz-side on the right.
   Same markup at both widths; only the aside (the mockups' .sb blocks) is a wrapper the views add around blocks most of them already had.
   ============================================================================ */
.cz-side-page { display: flex; flex-direction: column; gap: 0; padding: 0; }
.cz-side-page .cz-side-block { border-top: 2px solid var(--cz-ink); }
.cz-side-block .cz-strong { font-size: 17px; }
.cz-side-block .cz-muted { font-size: 15px; line-height: 1.5; }
.cz-side-block a:not(.cz-btn) { font-weight: 600; text-decoration: underline; color: var(--cz-ink); }
.cz-hd-page .cz-tabstrip { padding-left: 0; padding-right: 0; padding-top: 16px; } /* filter chips live in the page header */
.cz-row-tint-alert { background: var(--cz-alert-tint, #fee2e2); } /* the action-needed row (mockups MyCases / CitizenHome) */
.cz-hd-page .cz-ref { margin-top: 6px; }
@media (min-width: 1024px) {
  /* the band: full-bleed ink behind the container-width header */
  .cz-hd-page { position: relative; background: var(--cz-ink); color: var(--cz-surface); padding: 36px 0 36px; box-shadow: 0 0 0 100vmax var(--cz-ink); clip-path: inset(0 -100vmax); }
  .cz-hd-page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--cz-action); box-shadow: 100vmax 0 0 var(--cz-action), -100vmax 0 0 var(--cz-action); } /* the full-bleed action rule under the band — shadows, not width, so nothing scrolls sideways */
  .cz-wrap .cz-hd-page { box-shadow: none; clip-path: none; background: transparent; color: inherit; padding: 24px 0 8px; }
  .cz-wrap .cz-hd-page::after { display: none; } /* a header nested inside a form column (sign in, register) stays white */
  .cz-hd-page .cz-eyebrow, .cz-hd-page .cz-sub, .cz-hd-page .cz-sub a, .cz-hd-page .cz-ref { color: var(--cz-on-ink-muted); }
  .cz-hd-page .cz-h2, .cz-hd-page .cz-ref { color: var(--cz-surface); }
  .cz-hd-page .cz-sub a { color: var(--cz-surface); }
  .cz-hd-page .cz-prog > div { background: var(--cz-on-ink-track); }
  .cz-hd-page .cz-prog > div.on { background: var(--cz-action); }
  .cz-hd-page .cz-chip { color: var(--cz-surface); border-color: var(--cz-on-ink-rule); }
  .cz-hd-page .cz-chip.on, .cz .cz-hd-page a.cz-chip.on { background: var(--cz-action); color: var(--cz-ink); border-color: var(--cz-action); }
  .cz-hd-page .cz-link-btn, .cz-hd-page .cz-tag-action { color: var(--cz-ink); }
  .cz-hd-page .cz-link-btn { color: var(--cz-surface); }
  .cz-hd-page .cz-tabstrip { padding-top: 20px; }
  .cz-wrap .cz-hd-page .cz-eyebrow, .cz-wrap .cz-hd-page .cz-sub { color: var(--cz-muted); }
  .cz-wrap .cz-hd-page .cz-h2 { color: var(--cz-ink); }
  /* the 2:1 grid: every child but the aside flows down column 1; the aside spans the rows on the right; ::before frames the main column */
  .cz-wrap.cz-page-grid { display: grid; grid-template-columns: 2fr 1fr; column-gap: 64px; align-items: start; padding-top: 32px; padding-bottom: 56px; }
  .cz-wrap.cz-page-grid > * { grid-column: 1; min-width: 0; }
  .cz-wrap.cz-page-grid { position: relative; }
  .cz-wrap.cz-page-grid::before { content: ""; position: absolute; top: 32px; bottom: 56px; left: 0; width: calc((100% - 64px) * 2 / 3); box-sizing: border-box; border: 2px solid var(--cz-ink); pointer-events: none; } /* the mockups' framed main column (2fr of 2fr 1fr + 64 px gap), drawn behind the rows */
  .cz-wrap.cz-page-grid > *:not(.cz-side) { position: relative; }
  .cz-wrap.cz-page-grid > .cz-side { grid-column: 2; grid-row: 1 / span 200; border-left: 2px solid var(--cz-ink); padding: 0 0 0 40px; display: flex; flex-direction: column; gap: 24px; }
  .cz-wrap.cz-page-grid > .cz-side .cz-side-block { border-top: 0; padding: 0 0 24px; border-bottom: 1px solid var(--cz-rule); }
  .cz-wrap.cz-page-grid > .cz-side .cz-side-block:last-child { border-bottom: 0; }
  .cz-wrap.cz-page-grid > .cz-side .cz-strong { font-size: 18px; }
  .cz-wrap.cz-page-grid > .cz-form { max-width: none; }
  /* the mockups' CANCEL | SAVE / BACK | NEXT footer: a 1:1 split across the framed column, buttons flush */
  .cz-wrap.cz-page-grid .cz-cta-sticky { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; margin: 24px 0 0; border-top: 2px solid var(--cz-ink); }
  .cz-wrap.cz-page-grid .cz-cta-sticky .cz-btn { width: 100%; min-width: 0; margin: 0; min-height: 56px; }
  .cz-wrap.cz-page-grid .cz-cta-sticky .cz-btn-o { border-width: 0; }
  .cz-wrap.cz-page-grid .cz-cta-sticky > .cz-muted, .cz-wrap.cz-page-grid .cz-cta-sticky > p { grid-column: 1 / -1; padding: 12px 20px 0; }
}

/* A-49 batch 3/4 helpers */
.cz-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--cz-action); color: var(--cz-ink); font-family: var(--cz-display); font-weight: 800; padding: 12px 16px; text-decoration: none; }
.cz-skip:focus { top: 12px; outline: 3px solid var(--cz-ink); }
.cz-bar-ink .cz-bar, .cz-bar-ink .cz-bar-tone { background: var(--cz-ink); }
.cz-row-btn.cz-row-top { display: flex; align-items: flex-start; gap: 14px; }
.cz-empty { padding-bottom: 20px; }
.cz-emergency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 20px 0; } /* Directory mockup: the numbers as a 2-up button grid, not pills */
.cz-emergency-grid .cz-btn { margin: 0; width: 100%; min-height: 64px; padding: 10px 8px; font-size: 14px; letter-spacing: .02em; text-transform: none; }
.cz-btn-two { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.cz-btn-sub { font-family: var(--cz-body); font-weight: 600; font-size: 14px; text-transform: none; letter-spacing: 0; }
@media (min-width: 1024px) { .cz-emergency-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0 0; } }
@media (max-width: 1023px) {
  .cz-main-side .cz-section-head .cz-h2, .cz-main-side > .cz-side > div > .cz-h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cz-muted); line-height: 1.3; } /* Home section heads are eyebrows on the phone (mockup Main) */
}

