/* NIAF brand palette, taken from the logo: crimson #B10C1A and gold #EAA613 on white */
:root {
  --bg: #f7f5f3; --surface: #ffffff; --surface-2: #f3efec; --ink: #231f20; --ink-2: #433d3e; --muted: #6b6466;
  --line: #e4ddd9; --line-strong: #c9bfba;
  --brand: #b10c1a; --brand-dark: #8c0915; --brand-deep: #5e0710; --brand-soft: #fbe9eb; --btn-bg: #b10c1a; --btn-bg-hover: #8c0915;
  --link: #9e0b18; --heading: #6e0a13; --focus: #b10c1a;
  --accent: #eaa613; --accent-soft: #fdf1d6; --accent-ink: #7a5000;
  --ok: #1d774c; --ok-soft: #e0f1e7; --warn: #975a00; --warn-soft: #fcebcf; --bad: #b2261e; --bad-soft: #fbe2df;
  --info: #2c589f; --info-soft: #e2eaf7;
  --on-ink: #ffffff;
  --r-s: 4px; --r-m: 8px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141012; --surface: #1d181a; --surface-2: #272022; --ink: #efe9ea; --ink-2: #d4cacc; --muted: #a89c9e;
    --line: #362d30; --line-strong: #4c4144;
    --brand: #e2525d; --brand-dark: #f07a83; --brand-deep: #3a050b; --brand-soft: #3a1519; --btn-bg: #c41e2b; --btn-bg-hover: #d63340;
    --link: #f39aa1; --heading: #f6c9cd; --focus: #f0b43a;
    --accent: #f0b43a; --accent-soft: #3a2c10; --accent-ink: #f6d58e;
    --ok: #5cc08f; --ok-soft: #16322a; --warn: #e3a548; --warn-soft: #382913; --bad: #f08a80; --bad-soft: #3c1c1a;
    --info: #8db0ee; --info-soft: #1a2944; --on-ink: #ffffff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141012; --surface: #1d181a; --surface-2: #272022; --ink: #efe9ea; --ink-2: #d4cacc; --muted: #a89c9e;
  --line: #362d30; --line-strong: #4c4144;
  --brand: #e2525d; --brand-dark: #f07a83; --brand-deep: #3a050b; --brand-soft: #3a1519; --btn-bg: #c41e2b; --btn-bg-hover: #d63340;
  --link: #f39aa1; --heading: #f6c9cd; --focus: #f0b43a;
  --accent: #f0b43a; --accent-soft: #3a2c10; --accent-ink: #f6d58e;
  --ok: #5cc08f; --ok-soft: #16322a; --warn: #e3a548; --warn-soft: #382913; --bad: #f08a80; --bad-soft: #3c1c1a;
  --info: #8db0ee; --info-soft: #1a2944; --on-ink: #ffffff; color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
#root { min-height: 100%; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; font-weight: 600; }
h1 { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1.0625rem; }
h4 { font-size: 0.975rem; }
h5 { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 0.5rem; }
p { margin: 0; }
a { color: var(--info); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.code { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; margin-right: 0.25rem; }
.lede { color: var(--ink-2); max-width: 72ch; }
.hint { color: var(--muted); font-size: 0.875rem; }
.empty { color: var(--muted); padding: 1rem 0; }
.loading { color: var(--muted); padding: 2rem; }
.stack > * + * { margin-top: 1rem; }

/* ---- buttons, pills, notes ---- */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; padding: 0.45rem 0.95rem; border-radius: var(--r-s);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 500; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn-primary:hover:not(:disabled) { background: var(--ink-2); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.icon { min-width: 38px; justify-content: center; padding: 0; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-weight: 500; }
.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-muted { background: var(--surface-2); color: var(--muted); }
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); }
.note { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; padding: 0.75rem 1rem; border-radius: var(--r-s); border-left: 3px solid; }
.note ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.note-bad { background: var(--bad-soft); border-color: var(--bad); }
.note-warn { background: var(--warn-soft); border-color: var(--warn); }
.note-ok { background: var(--ok-soft); border-color: var(--ok); }
.note .mini { margin-top: 0.5rem; background: var(--surface); }

/* ---- sign in ---- */
.signin { max-width: 1040px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.signin-head { margin-bottom: 2.5rem; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.02em; }
.signin-head .wordmark { font-size: 1.1rem; color: var(--muted); margin-bottom: 0.75rem; }
.signin-head h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 22ch; line-height: 1.15; }
.signin-live { max-width: 420px; margin-bottom: 2.5rem; }
.signin-demo > h2 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 0.4rem; }
.role-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 2rem; margin: 1.75rem 0 1.25rem; border-top: 1px solid var(--line); }
.role-group { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.role-group h3 { font-size: 1rem; }
.role-group p { font-size: 0.875rem; margin: 0.15rem 0 0.5rem; }
.role-group ul { list-style: none; margin: 0; padding: 0; }
.account { display: block; width: 100%; text-align: left; padding: 0.35rem 0; border: 0; background: none; cursor: pointer; color: var(--info); font-weight: 500; }
.account:hover { text-decoration: underline; }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.5rem;
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.1rem 0.55rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand .wordmark { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.06em; }
.brand-full { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; color: var(--ink-2); }
.brand-abbr { color: var(--accent-ink); font-family: var(--sans); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; }
.boot { padding: 1rem 1.5rem; }
.setup { max-width: 860px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.setup > * + * { margin-top: 1rem; }
.setup .brand { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.setup .panel > * + * { margin-top: 0.75rem; }
.boot .brand { margin-bottom: 1rem; }
.brand-sub { color: var(--muted); font-size: 0.875rem; }
.who { display: flex; align-items: center; gap: 0.9rem; }
.who-name { display: flex; flex-direction: column; line-height: 1.25; font-size: 0.9rem; text-align: right; }
.sidenav { padding: 1.25rem 0.75rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.15rem; }
.sidenav a { padding: 0.5rem 0.75rem; border-radius: var(--r-s); color: var(--ink-2); text-decoration: none; font-weight: 500; }
.sidenav a:hover { background: var(--surface-2); }
.sidenav a.active { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.main { min-width: 0; }
.page { max-width: 1180px; padding: 1.75rem 2rem 4rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.back::before { content: "‹ "; }
.back:hover { color: var(--ink); }

/* ---- worklists ---- */
.group { margin-bottom: 2rem; }
.group h2 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.count { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.cycle-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cycle-row { display: grid; grid-template-columns: minmax(0, 2.2fr) auto minmax(0, 1.4fr) auto; align-items: center; gap: 1rem;
  padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cycle-row:hover { background: var(--surface); }
.cycle-inst { font-weight: 600; }
.cycle-progress { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; }
.cycle-date { font-size: 0.8125rem; white-space: nowrap; }
.meter { display: inline-block; width: 110px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; vertical-align: middle; }
.meter-fill { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; }

/* ---- cycle page ---- */
.cycle-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.inst-name { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.next-step { margin: 1.25rem 0 0; padding-left: 0.9rem; border-left: 3px solid var(--accent); color: var(--ink-2); max-width: 80ch; }

/* the stage rail: the one bold element */
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.rail-step { position: relative; display: flex; gap: 0; align-items: flex-start; padding-right: 1rem; }
.rail-step::after { content: ""; position: absolute; left: 44px; right: 8px; top: 17px; height: 2px; background: var(--line); }
.rail-step:last-child::after { display: none; }
.rail-done::after { background: var(--ink-2); }
.rail-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600;
  border: 2px solid var(--line-strong); background: var(--surface); color: var(--muted); position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.rail-done .rail-dot { background: var(--ink-2); border-color: var(--ink-2); color: var(--on-ink); }
.rail-current .rail-dot { background: var(--accent); border-color: var(--accent); color: #2b1d00; box-shadow: 0 0 0 5px var(--accent-soft); }
.rail-bad .rail-dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.rail-text { display: flex; flex-direction: column; padding: 0.35rem 0.6rem 0 0.7rem; position: relative; z-index: 1; background: var(--bg); }
.rail-name { font-weight: 600; }
.rail-todo .rail-name { color: var(--muted); font-weight: 500; }
.rail-note { font-size: 0.8125rem; color: var(--muted); }
.rail-current .rail-note { color: var(--accent-ink); font-weight: 500; }
.rail-bad .rail-note { color: var(--bad); font-weight: 500; }
.rail-muted { opacity: 0.55; }
.panel .rail-text { background: var(--surface); }
.panel .rail { margin-top: 0.75rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin: 1.75rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.tab { padding: 0.6rem 0.9rem; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- panels, forms ---- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.25rem 1.4rem; }
.panel-head { margin-bottom: 1rem; }
.panel-head .lede { margin-top: 0.25rem; }
.form > * + * { margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.35rem; font-weight: 500; }
label { font-weight: 500; font-size: 0.9rem; }
input[type="text"], input[type="url"], input[type="email"], input[type="password"], input[type="date"], input[type="search"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-height: 38px; padding: 0.45rem 0.65rem; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); }
input:disabled { background: var(--surface-2); }
textarea { resize: vertical; line-height: 1.5; }
input[aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 0.8125rem; }
.input-affix { display: flex; align-items: stretch; }
.input-affix input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-affix input:only-child { border-radius: var(--r-s); }
.affix { display: grid; place-items: center; padding: 0 0.6rem; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--r-s) var(--r-s) 0;
  background: var(--surface-2); color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.choice { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 400; padding: 0.2rem 0; }
.choice input { margin-top: 0.3rem; accent-color: var(--ink); }
.choice-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.check-result { padding: 0.75rem 1rem; border-radius: var(--r-s); }
.check-result ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.check-result.ok { background: var(--ok-soft); color: var(--ok); }
.check-result.pending { background: var(--surface-2); }
.check-result.fail { background: var(--bad-soft); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem 1.5rem; margin: 0 0 1rem; }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { margin: 0.1rem 0 0; }
.links { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }

/* ---- SAR / assessment workspace ---- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.toolbar-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.progress-block { display: flex; align-items: center; gap: 0.9rem; }
.progress-block .meter { width: 180px; }
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.domain-nav { display: flex; flex-direction: column; position: sticky; top: 76px; border-top: 1px solid var(--line); }
.domain-link { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0.55rem 0.6rem; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer; font-size: 0.9rem; }
.domain-link:hover { background: var(--surface); }
.domain-link.active { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.domain-count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.domain-title { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 0.75rem; }
.pd + .pd { margin-top: 1.25rem; }
.pd-title { margin-bottom: 0.4rem; }
.ind-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ind { border-bottom: 1px solid var(--line); }
.ind.open { background: var(--surface); }
.ind-head { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 0.75rem; align-items: center; width: 100%; padding: 0.7rem 0.6rem;
  border: 0; background: none; text-align: left; cursor: pointer; }
.ind-head:hover { background: var(--surface); }
.ind-title { font-weight: 500; }
/* NIAF 2.0: the indicator statement, with the question asked of the institution below it in bold italic */
.ind-q { display: block; margin-top: 0.3rem; font-weight: 700; font-style: italic; color: var(--ink); max-width: 90ch; }
.ind-head .ind-q { font-size: 0.92rem; }
.ind-state { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.ind-marks { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: right; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--accent); }
.dot-bad { background: var(--bad); }
.dot-empty { border: 2px solid var(--line-strong); }
.ind-body { padding: 0.25rem 0.6rem 1.25rem 2.1rem; }
.metric { margin-bottom: 0.4rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.9rem; }
.editor > * + * { margin-top: 0.9rem; }
.years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.year-col > * + * { margin-top: 0.6rem; }
.assess-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.75rem; }
.readout > * + * { margin-top: 0.5rem; }
.narrative { white-space: pre-wrap; padding: 0.6rem 0.8rem; background: var(--surface-2); border-radius: var(--r-s); }
.record { padding: 0.7rem 0.85rem; background: var(--surface-2); border-radius: var(--r-s); }
.record + .record { margin-top: 0.5rem; }
.justification { margin-top: 0.25rem; font-size: 0.9rem; }
.history { margin-top: 0.75rem; font-size: 0.9rem; }
.history summary { cursor: pointer; color: var(--muted); margin-bottom: 0.5rem; }
.grade-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.4rem; }
.grade { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.5rem 0.25rem; border: 1px solid var(--line-strong); border-radius: var(--r-s); cursor: pointer; text-align: center; }
.grade input { position: absolute; opacity: 0; pointer-events: none; }
.grade:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.grade.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.grade-n { font-size: 1.15rem; font-weight: 600; }
.grade-t { font-size: 0.72rem; line-height: 1.2; }
.team { list-style: none; margin: 0 0 1rem; padding: 0; }
.team li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.6rem; align-items: center; }
.assign-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: end; }
.codes { font-variant-numeric: tabular-nums; color: var(--ink-2); }

table.mini { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
table.mini th, table.mini td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.mini th { color: var(--muted); font-weight: 500; }
table.mini caption { text-align: left; font-weight: 600; padding-bottom: 0.4rem; }
table.mini tr.current td { background: var(--accent-soft); font-weight: 600; }
table.mini tr.mismatch td { color: var(--bad); }
.structure { margin-top: 1rem; }
.bands { max-width: 520px; margin-bottom: 1rem; }

/* ---- score sheet ---- */
.score-top { display: flex; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }
.score-total { display: flex; align-items: baseline; gap: 0.5rem; }
.score-num { font-family: var(--serif); font-size: 3.25rem; line-height: 1; font-weight: 500; }
.score-of { color: var(--muted); }
.score-grade { display: flex; flex-direction: column; gap: 0.15rem; }
.grade-label { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.domains-table { width: 100%; border-collapse: collapse; }
.domains-table th, .domains-table td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.domains-table thead th { color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.domains-table td.num, .domains-table th.num { text-align: right; white-space: nowrap; }
.domains-table tr.sub td { font-size: 0.875rem; background: var(--surface-2); }
.bar-col { width: 38%; }
.bar { display: block; height: 10px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.bar.thin { height: 6px; background: var(--surface); }
.bar-fill { display: block; height: 100%; background: var(--ink-2); }

.verdict { text-align: left; }
.verdict-label { font-weight: 600; }
.verdict-ok .verdict-label { color: var(--ok); }
.verdict-bad .verdict-label { color: var(--bad); }
.verdict-grade { font-family: var(--serif); font-size: 3.5rem; line-height: 1.1; margin: 0.25rem 0 1rem; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }

.scheme-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.scheme-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 0.75rem; }
.scheme-head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }

/* ---- dialog, toast ---- */
.dialog { border: 1px solid var(--line); border-radius: var(--r-m); padding: 0; width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem);
  background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgb(10 15 30 / 0.28); }
.dialog-wide { width: min(860px, calc(100vw - 2rem)); }
.dialog::backdrop { background: rgb(15 20 32 / 0.45); }
.dialog-body { padding: 1.25rem 1.4rem 1.4rem; }
.dialog-body > * + * { margin-top: 1rem; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dialog-head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.steps { margin: 0; padding-left: 1.3rem; }
.steps > li + li { margin-top: 1rem; }
.steps .actions { margin-top: 0.5rem; }
.steps .grid-2 { margin-top: 0.5rem; }
.toast-region { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 50; }
.toast { background: var(--ink); color: var(--on-ink); padding: 0.6rem 1.1rem; border-radius: var(--r-s); box-shadow: 0 8px 24px rgb(10 15 30 / 0.25);
  animation: toast-in 180ms ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }


/* ---- utilities ---- */
.block { display: block; }
.small { font-size: 0.8125rem; }
.strong { font-weight: 600; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.pre { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.grow { flex: 1 1 auto; }
.row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.panel-head.row { justify-content: space-between; }
.narrow { max-width: 760px; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.35rem; }
.page-head-block { margin-bottom: 1.25rem; }
.page-head-block .page-head { margin-bottom: 0.35rem; }
.page-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.page-actions input[type="search"] { width: 260px; }
.btn-small { min-height: 30px; padding: 0.2rem 0.6rem; font-size: 0.8125rem; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--bad); filter: brightness(0.92); }
.btn.wide { width: 100%; justify-content: center; }
.panel.danger { border-color: var(--bad); }
.panel.attention { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.panel h3 + * { margin-top: 0.6rem; }
.panel > h2 + * { margin-top: 0.75rem; }
.check { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 400; padding: 0.2rem 0; }
.check input { margin-top: 0.3rem; accent-color: var(--ink); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.1rem 1rem; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seg-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-actions .seg-row, .toolbar .seg-row { margin-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 34px; padding: 0.3rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip.on .count { color: inherit; opacity: 0.8; }
.toolbar { margin-bottom: 1rem; }
.toolbar input[type="search"] { width: 280px; max-width: 100%; }
.toolbar select { width: auto; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.inst-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.inst-table th, .inst-table td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.inst-table thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 500; background: var(--surface-2); white-space: nowrap; }
.inst-table tbody th { font-weight: 500; }
.inst-table tbody th .pill { margin-left: 0.4rem; }
.inst-table tbody tr:last-child > * { border-bottom: 0; }
.inst-table .num { text-align: right; }
.inst-table tr.muted th, .inst-table tr.muted td { color: var(--muted); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn + .btn { margin-left: 0.35rem; }
.recs { list-style: none; margin: 0; padding: 0; }
.recs > li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.recs > li:last-child { border-bottom: 0; }
.recs > li.row { justify-content: space-between; }
.rec-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 7rem auto; gap: 0.6rem; align-items: end; }
.checklist { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.checklist li { padding: 0.25rem 0 0.25rem 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--line-strong); }
.checklist li.ok { color: var(--ok); }
.checklist li.ok::before { border-color: var(--ok); background: var(--ok); }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.card-link { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; }
.card-link:hover { border-color: var(--line-strong); background: var(--surface-2); }
.empty-state { padding: 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--r-m); background: var(--surface); }
.empty-state > * + * { margin-top: 0.35rem; }
.overlay-card { margin-top: 1rem; max-width: 640px; box-shadow: 0 18px 50px rgb(10 15 30 / 0.18); }
.tab-body { min-width: 0; }

/* ---- shell additions ---- */
.menu-btn { display: none; }
.bell { position: relative; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 0.35rem 0.5rem; border-radius: var(--r-s); }
.bell:hover { background: var(--surface-2); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 0.35rem; border-radius: 10px; background: var(--accent); color: #2b1d00; font-size: 0.75rem; font-weight: 700; }
.who-name { color: var(--ink); text-decoration: none; }
.sidenav a.sub { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.sidenav a.sub:first-of-type { margin-top: auto; }
.notices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notices li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); }
.notices li.unread { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.notices li.unread a { font-weight: 600; }
.notices time { white-space: nowrap; font-size: 0.8125rem; }
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-wrap > .brand { margin-bottom: 1rem; justify-content: center; }
.auth-card { width: min(440px, 100%); }
.auth-card > * + * { margin-top: 1rem; }

/* ---- dashboard ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.stat-label { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.stat-attention { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.cards-3 .stat { margin: 0; }
.queues { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.queue .panel-head { margin-bottom: 0.5rem; }
.queue-list { list-style: none; margin: 0; padding: 0; }
.queue-list a { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.queue-list li:last-child a { border-bottom: 0; }
.queue-list a:hover { color: var(--info); }
.grid-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1rem; }
.load { display: inline-flex; align-items: center; gap: 0.5rem; }
.load .meter { width: 80px; }

/* ---- charts ---- */
.chart { position: relative; margin: 0; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.page > .chart { margin-bottom: 1.5rem; }
.chart figcaption { margin-bottom: 0.75rem; }
.chart-title { font-weight: 600; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.6rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.seg-series, .seg-done, .seg-ok { background: var(--ink-2); }
.seg-todo { background: var(--line-strong); }
.seg-warn { background: var(--accent); }
.seg-bad { background: var(--bad); }
.bars { display: flex; flex-direction: column; gap: 0.45rem; }
.bar-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 6.5rem; gap: 0.75rem; align-items: center; font-size: 0.875rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: flex; gap: 2px; height: 12px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.bar-seg { display: block; height: 100%; min-width: 2px; }
.bar-empty { font-size: 0.72rem; color: var(--muted); padding-left: 0.3rem; line-height: 12px; }
.bar-value { text-align: right; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.chart-tip { position: absolute; transform: translate(-50%, calc(-100% - 8px)); background: var(--ink); color: var(--on-ink); padding: 0.5rem 0.7rem; border-radius: var(--r-s);
  font-size: 0.8125rem; display: flex; flex-direction: column; gap: 0.15rem; pointer-events: none; z-index: 4; min-width: 160px; }
.tip-row { display: flex; align-items: center; gap: 0.4rem; }
.tip-row b { margin-left: auto; font-weight: 600; }
.chart-tip .muted { color: inherit; opacity: 0.75; }
.chart-table { margin-top: 0.75rem; font-size: 0.875rem; }
.chart-table summary { cursor: pointer; color: var(--muted); }
.chart-table .table-wrap { margin-top: 0.5rem; }

/* ---- assessment workspace additions ---- */
.domain-link.mine { font-weight: 600; }
.domain-link.mine .domain-count::after { content: " · yours"; color: var(--accent-ink); }
.side-records { display: flex; flex-direction: column; gap: 0.5rem; }
table.alloc td, table.alloc th { text-align: center; }
table.alloc td:first-child, table.alloc th:first-child { text-align: left; }
table.consolidation tr.flagged td { background: var(--warn-soft); }
.panel.report > * + *, .panel.score > * + * { margin-top: 0.75rem; }
.atr-item { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.atr-item:last-child { border-bottom: 0; }
.grid-atr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr); gap: 0.75rem; margin-top: 0.5rem; }
.maturity { margin: 0; padding-left: 1.5rem; }
.maturity li { padding: 0.15rem 0; }

/* ---- invoices, receipts, certificates (printable documents) ---- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.doc-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.doc-side > .panel > * + * { margin-top: 0.75rem; }
.doc-side .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
.doc { background: #fff; color: #1b2440; border: 1px solid var(--line); border-radius: var(--r-m); padding: 2.25rem 2.5rem; }
.doc > * + * { margin-top: 1.5rem; }
.doc-head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 2px solid #1b2440; }
.doc-org p, .doc-title p { margin: 0.1rem 0; }
.doc-title { text-align: right; }
.doc-title h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-to p { margin: 0.1rem 0; }
.doc-lines { width: 100%; border-collapse: collapse; }
.doc-lines th, .doc-lines td { padding: 0.6rem 0.4rem; border-bottom: 1px solid #d6dce6; text-align: left; }
.doc-lines thead th { font-size: 0.8125rem; color: #5d6679; font-weight: 500; }
.doc-lines .num { text-align: right; }
.doc-lines tfoot th, .doc-lines tfoot td { border-bottom: 0; border-top: 2px solid #1b2440; font-size: 1.05rem; }
.doc .facts dt { color: #5d6679; }
.doc-pay { padding: 1rem 1.15rem; background: #f2f4f7; border-radius: var(--r-s); }
.doc-pay > * + * { margin-top: 0.5rem; }
.doc-pay .facts { margin: 0; }
.doc-stamp { display: inline-block; padding: 0.35rem 0.8rem; border: 2px solid #b2261e; color: #b2261e; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: var(--r-s); }
.doc-stamp.ok { border-color: #1d774c; color: #1d774c; }
.doc-foot { padding-top: 1rem; border-top: 1px solid #d6dce6; color: #5d6679; }
.certificate { position: relative; background: #fffdf7; color: #1b2440; text-align: center; padding: 3rem 2.5rem 2.5rem; border: 10px double #b08a2e; border-radius: 2px; }
.certificate > * + * { margin-top: 0.6rem; }
.certificate.draft { background: repeating-linear-gradient(-45deg, #fffdf7, #fffdf7 18px, #f7f1e1 18px, #f7f1e1 36px); }
.cert-draft { position: absolute; top: 0.75rem; right: 0.75rem; margin: 0; padding: 0.2rem 0.6rem; border: 2px solid #b2261e; color: #b2261e; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; }
.cert-org { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase; color: #6b5317; }
.cert-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: 0.25rem !important; }
.cert-lead { font-style: italic; color: #4a5470; }
.cert-inst { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
.cert-place { color: #4a5470; }
.cert-grade { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; color: #6b5317; margin-top: 1rem !important; }
.cert-score { color: #4a5470; }
.cert-facts { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin: 1.5rem 0 0 !important; }
.cert-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #5d6679; }
.cert-facts dd { margin: 0.15rem 0 0; font-weight: 600; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: 2.5rem !important; text-align: left; flex-wrap: wrap; }
.cert-verify, .cert-sign { display: flex; flex-direction: column; gap: 0.15rem; max-width: 50%; }
.cert-sign { align-items: center; text-align: center; }
.sign-line { display: block; width: 200px; border-bottom: 1px solid #1b2440; height: 2.5rem; margin-bottom: 0.35rem; }
.temp-pw { font-size: 1.4rem; padding: 0.6rem 0.9rem; background: var(--surface-2); border-radius: var(--r-s); text-align: center; user-select: all; }
.verify-result > * + * { margin-top: 0.6rem; }
.verify-result.verify-ok { border-color: var(--ok); box-shadow: inset 4px 0 0 var(--ok); }
.verify-result.verify-warn { border-color: var(--warn); box-shadow: inset 4px 0 0 var(--warn); }
.verify-result.verify-bad { border-color: var(--bad); box-shadow: inset 4px 0 0 var(--bad); }
.verify-result .pill { font-size: 0.95rem; }

/* ---- cases ---- */
.thread { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.thread li { padding: 0.7rem 0.9rem; border-radius: var(--r-m); background: var(--surface-2); max-width: 88%; }
.thread li.staff { background: var(--info-soft); }
.thread li.internal { background: var(--warn-soft); border: 1px dashed var(--warn); }
.thread li.mine { align-self: flex-end; }
.thread li p { margin-top: 0.3rem; }
.thread .row { gap: 0.5rem; }
.inline-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 0.75rem 0; border-top: 1px solid var(--line); z-index: 2; }

/* ---- public website ---- */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 2rem; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.pub-nav { display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.pub-nav a:not(.btn) { padding: 0.45rem 0.7rem; color: var(--ink-2); text-decoration: none; font-weight: 500; border-radius: var(--r-s); }
.pub-nav a:not(.btn):hover { background: var(--surface-2); }
.pub-nav a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.pub-nav .btn { margin-left: 0.5rem; }
.announce { padding: 0.6rem 2rem; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.pub-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 0 3rem; }
.pub-main > .page { margin: 0 auto; }
.pub-main > .auth-wrap { min-height: 60vh; }
.pub-main > section, .pub-main > .pub-grid { margin-left: 2rem; margin-right: 2rem; }
.hero { padding: 3.5rem 0 2.5rem; max-width: 860px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; max-width: 24ch; }
.hero .lede { margin-top: 1rem; font-size: 1.05rem; }
.pub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.pub-grid .panel > * + * { margin-top: 0.5rem; }
.pub-main > section.panel > * + * { margin-top: 0.75rem; }
.pub-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding: 1.5rem 2rem; border-top: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; }
.process { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
.process li { display: flex; gap: 1rem; align-items: flex-start; padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.step-no { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.domains { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.domain { padding: 0; overflow: hidden; }
.domain-head { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; width: 100%; padding: 0.9rem 1.2rem; border: 0; background: none; cursor: pointer; text-align: left; }
.domain-head:hover { background: var(--surface-2); }
.domain-code { font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.domain-name { font-weight: 600; }
.domain .pd { padding: 0.5rem 1.2rem 1rem; }
.domain .pd h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.domain .ind-list li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 3rem; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.domain .ind-list li .num { text-align: right; }

@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .topbar, .sidenav, .no-print, .toast-region, .tabs, .back, .pub-top, .pub-foot, .page-actions, .eyebrow { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .page-head-block { display: none; }
  .doc-layout { display: block; }
  .doc, .certificate { border-radius: 0; box-shadow: none; }
  .doc { border: 0; padding: 0; }
  .certificate { min-height: 250mm; display: flex; flex-direction: column; justify-content: center; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- small screens ---- */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0.4rem 0.75rem; }
  .sidenav a.active { box-shadow: inset 0 -2px 0 var(--accent); }
  .page { padding: 1.25rem 1rem 3rem; }
  .who-name .muted { display: none; }
  .brand { flex: 1 1 auto; }
  .brand .wordmark { font-size: 1.1rem; }
  .brand-full { font-size: 0.82rem; flex-basis: 100%; }
  .brand-abbr { font-size: 0.78rem; }
  .topbar { padding: 0.6rem 1rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .domain-nav { position: static; flex-direction: row; overflow-x: auto; border: 0; gap: 0.4rem; padding-bottom: 0.25rem; }
  .domain-link { flex: none; border: 1px solid var(--line); border-radius: var(--r-s); }
  .domain-link.active { box-shadow: inset 0 -3px 0 var(--accent); }
  .rail { grid-template-columns: repeat(2, 1fr); gap: 0.9rem 0; }
  .rail-step:nth-child(2n)::after { display: none; }
  .cycle-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cycle-progress, .cycle-date { grid-column: 1 / -1; }
  .grid-2, .grid-3, .years, .assess-grid { grid-template-columns: minmax(0, 1fr); }
  .ind-head { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .ind-marks { display: none; }
  .ind-body { padding-left: 0.6rem; }
  .assign-row { grid-template-columns: minmax(0, 1fr); }
  .grade-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bar-col { width: 30%; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .menu-btn { display: inline-flex; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  table.mini { display: block; overflow-x: auto; }
  table.mini th, table.mini td { padding: 0.35rem 0.4rem; }
  table.mini .pill { white-space: normal; }
  .sidenav { display: none; flex-direction: column; overflow: visible; }
  .sidenav.open { display: flex; }
  .sidenav a.sub:first-of-type { margin-top: 0.5rem; }
  .topbar { flex-wrap: wrap; }
  .cards-3, .pub-grid, .pub-foot { grid-template-columns: minmax(0, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc { padding: 1.25rem; }
  .doc-title { text-align: left; }
  .certificate { padding: 2rem 1rem 1.5rem; border-width: 6px; }
  .cert-verify, .cert-sign { max-width: 100%; }
  .pub-top { padding: 0.6rem 1rem; flex-wrap: wrap; }
  .pub-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .pub-nav.open { display: flex; }
  .pub-nav .btn { margin: 0.4rem 0 0; justify-content: center; }
  .announce { padding: 0.6rem 1rem; }
  .pub-main > section, .pub-main > .pub-grid { margin-left: 1rem; margin-right: 1rem; }
  .hero { padding: 2rem 0 1.5rem; }
  .queues, .grid-charts { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: minmax(0, 1fr) 4.5rem; }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .rec-row, .grid-atr { grid-template-columns: minmax(0, 1fr); }
  .thread li { max-width: 100%; }
  .page-actions input[type="search"], .toolbar input[type="search"] { width: 100%; }
  .notices li { flex-direction: column; gap: 0.2rem; }
  .domain .ind-list li { grid-template-columns: 3.8rem minmax(0, 1fr); }
  .domain .ind-list li .num { display: none; }
  .domain-head { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .domain-head .num { grid-column: 2; }
}
@media (max-width: 560px) {
  .who { gap: 0.4rem; min-width: 0; }
  .who .pill-accent { display: none; }
  .who-name { min-width: 0; }
  .who-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; display: block; }
  .topbar .btn-quiet { padding: 0.45rem 0.5rem; white-space: nowrap; }
}

/* ---- questionnaire (NIAF 2.0) ---- */
.question { font-weight: 600; color: var(--ink); max-width: 80ch; }
.question.small { font-weight: 500; font-size: 0.9rem; color: var(--ink-2); }
.question.ind-q { font-weight: 700; font-style: italic; }
.year-grid th[scope="row"] { font-weight: 500; color: var(--ink); min-width: 12rem; }
.year-grid td { min-width: 7.5rem; }
.year-grid input { width: 100%; min-height: 34px; padding: 0.3rem 0.5rem; }
.grid-num { text-align: right; font-variant-numeric: tabular-nums; }
.grid-num[aria-invalid="true"] { border-color: var(--bad); }
table.levels { max-width: 560px; }
table.levels input { width: 100%; max-width: 9rem; min-height: 34px; padding: 0.3rem 0.5rem; text-align: right; }
table.levels td, table.levels tfoot td { text-align: right; }
table.levels tfoot th, table.levels tfoot td { border-top: 1px solid var(--line-strong); }
.label-like { font-weight: 500; font-size: 0.9rem; }
.computed { display: block; min-height: 38px; padding: 0.45rem 0.65rem; border: 1px dashed var(--line-strong); border-radius: var(--r-s); background: var(--surface-2); font-weight: 600; }
.facts.compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem 1rem; margin-bottom: 0.5rem; }
.readout .yes { color: var(--ok); }
.readout .no { color: var(--bad); }
@media (max-width: 860px) { .year-grid th[scope="row"] { min-width: 9rem; } .year-grid td { min-width: 6rem; } }
.table-wrap:has(> table.levels) { max-width: 560px; }
table.readout-grid td.num { text-align: right; white-space: nowrap; }
table.readout-grid th[scope="row"] { font-weight: 500; color: var(--ink-2); }
table.readout-grid td, table.readout-grid th { padding: 0.35rem 0.5rem; }

/* =====================================================================================================================
   NIAF brand theme (logo colours). Kept as one block of overrides so the brand can be tuned in one place.
   ===================================================================================================================== */
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1 { color: var(--heading); }
.btn-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: #ffffff; }
.btn-primary:hover:not(:disabled) { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn:not(.btn-primary):not(.btn-quiet):hover:not(:disabled) { border-color: var(--brand); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.chip.on, .grade.on { background: var(--btn-bg); border-color: var(--btn-bg); color: #ffffff; }
.step-no { background: var(--brand); color: #ffffff; }
.choice input, .check input, input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.sidenav a.active { color: var(--brand); background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.domain-link.active { box-shadow: inset 3px 0 0 var(--brand); }
.domain-code { color: var(--brand); }
.account, .queue-list a:hover { color: var(--link); }
.eyebrow { color: var(--accent-ink); }

/* Header: a white plate in every theme so the logo always reads as designed */
.topbar, .pub-top {
  --ink: #231f20; --ink-2: #433d3e; --muted: #6b6466; --surface: #ffffff; --surface-2: #f3efec; --line-strong: #c9bfba; --link: #9e0b18;
  --brand: #b10c1a; --btn-bg: #b10c1a; --btn-bg-hover: #8c0915; --focus: #b10c1a;
  background: #ffffff; color: var(--ink); border-bottom: 3px solid var(--brand); box-shadow: 0 1px 0 #eaa613, 0 4px 14px rgb(35 31 32 / 0.06);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; flex: 0 1 auto; }
.brand-logo { display: block; height: 52px; width: auto; max-width: 100%; }
.pub-nav a.active { color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); }
.pub-nav a:not(.btn):hover { color: var(--brand); background: #fbe9eb; }
.who .bell { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.badge { background: var(--accent); color: #2b1d00; }
.boot .brand, .auth-wrap > .brand, .setup .brand { margin-bottom: 1.25rem; }
.auth-wrap > .brand .brand-logo { height: 60px; }

/* Staging banner */
.env-banner { background: repeating-linear-gradient(135deg, #eaa613 0 14px, #f3bd45 14px 28px); color: #2b1d00; text-align: center; font-weight: 700;
  font-size: 0.875rem; letter-spacing: 0.04em; padding: 0.35rem 1rem; }

/* Public landing hero: white band with the logo's gold corner */
.hero { position: relative; margin-top: 2rem; padding: 3rem 2.5rem 2.5rem; max-width: none; background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--brand); border-radius: var(--r-m); overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 64px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 0 100%); }
.hero h1 { color: var(--heading); }
.hero .lede { max-width: 72ch; }
.pub-grid .panel { border-top: 3px solid var(--accent); }
.pub-grid .panel h2 { color: var(--heading); }

/* Footer: deep crimson with gold links */
.pub-foot { background: var(--brand-deep, #5e0710); color: #ffffff; border-top: 4px solid #eaa613; }
.pub-foot .muted, .pub-foot .small { color: #f1d9db; }
.pub-foot a { color: #f6c95c; }
.pub-foot strong { color: #ffffff; }

/* Hero: text beside the key facts */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 2.5rem; align-items: center; }
.hero-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.hero-facts > div { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.hero-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.hero-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.hero-facts dt { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.hero-facts dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--brand); line-height: 1.2; }
.maturity { list-style: none; padding-left: 0; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .brand-logo { height: 44px; }
  .sidenav a.active { box-shadow: inset 0 -3px 0 var(--brand); }
  .hero { padding: 2.25rem 1.25rem 1.75rem; margin-top: 1rem; }
  .hero::before { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  .brand-logo { height: 38px; }
  .sidenav a.active { box-shadow: inset 3px 0 0 var(--brand); }
  .hero-facts dd { font-size: 1.3rem; }
  .pub-main > section, .pub-main > .pub-grid { margin-left: 1rem; margin-right: 1rem; }
}
@media (max-width: 380px) {
  .brand-logo { height: 32px; }
}
@media print {
  .env-banner { display: none !important; }
}

/* Documents in the brand: invoices, receipts and the certificate */
.doc { color: #231f20; }
.doc-head { border-bottom: 2px solid #b10c1a; }
.doc-logo { display: block; height: 44px; width: auto; margin-bottom: 0.5rem; }
.doc-title h2 { color: #6e0a13; }
.doc-lines tfoot th, .doc-lines tfoot td { border-top-color: #b10c1a; }
.doc-pay { background: #fdf6e6; }
.certificate { color: #231f20; border: 10px double #c08b14; background: #fffdf8; }
.certificate.draft { background: repeating-linear-gradient(-45deg, #fffdf8, #fffdf8 18px, #f8efdc 18px, #f8efdc 36px); }
.cert-logo { display: block; height: 64px; width: auto; max-width: 100%; margin: 0 auto 0.5rem; }
.cert-title { color: #6e0a13; }
.cert-grade { color: #b10c1a; }
.cert-lead, .cert-place, .cert-score { color: #4a4446; }
.cert-facts dt { color: #6b6466; }
.sign-line { border-bottom-color: #231f20; }
@media (max-width: 560px) { .cert-logo { height: 44px; } .doc-logo { height: 34px; } }

/* =====================================================================================================================
   Public website (home page and public pages), after the NIAF reference design: utility bar, white header with the
   logo, banner slider, key figures, About, process band, News & Events with the Latest Updates ticker, resources,
   FAQs and a crimson footer. Everything is scoped to .site and stays light in every colour scheme.
   ===================================================================================================================== */
.site {
  --red: #b10c1a; --red-dark: #850915; --red-deep: #5e0710; --gold: #efad16; --gold-ink: #7a5000; --cream: #fff8eb; --blush: #fff6f5;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f6f1ee; --ink: #21191b; --ink-2: #3f3638; --muted: #6c6264;
  --line: #eee4df; --line-strong: #d4c6bf;
  --brand: #b10c1a; --brand-dark: #850915; --brand-deep: #5e0710; --brand-soft: #fbe9eb; --btn-bg: #b10c1a; --btn-bg-hover: #850915;
  --link: #9e0b18; --heading: #6e0a13; --focus: #b10c1a;
  --accent: #efad16; --accent-soft: #fdf1d6; --accent-ink: #7a5000;
  --ok: #1d774c; --ok-soft: #e0f1e7; --warn: #975a00; --warn-soft: #fcebcf; --bad: #b2261e; --bad-soft: #fbe2df; --info: #2c589f; --info-soft: #e2eaf7;
  --sans: "DM Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Libre Baskerville", "IBM Plex Serif", Georgia, serif;
  --max: 1200px; --head-h: 84px;
  color-scheme: light; background: #ffffff; color: var(--ink); font: 15px/1.65 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
}
.site h1, .site h2, .site h3 { font-family: var(--sans); letter-spacing: -0.01em; }
.site .page h1, .site .auth-card h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--heading); }
.site img { max-width: 100%; }
.nf-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.nf-icon { flex: none; display: block; }
.nf-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.nf-skip:focus { top: 8px; }
.nf-main { flex: 1; }
.nf-main:focus, .site section[tabindex="-1"]:focus, .nf-foot:focus { outline: none; }
.site section[id], .site footer[id] { scroll-margin-top: calc(var(--head-h) + 12px); }

/* buttons */
.nf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 20px; border-radius: 8px; border: 2px solid transparent;
  font: 600 14.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.nf-btn-lg { min-height: 50px; padding: 12px 26px; font-size: 15.5px; }
.nf-btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgb(177 12 26 / .22); }
.nf-btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.nf-btn-line { background: #fff; color: var(--red); border-color: var(--red); }
.nf-btn-line:hover, .nf-btn-line.on { background: var(--red); color: #fff; }
.nf-btn-gold { background: var(--gold); color: #2b1d00; }
.nf-btn-gold:hover { background: #ffc23d; color: #2b1d00; transform: translateY(-1px); }
.nf-btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .75); }
.nf-btn-ghost:hover { background: #fff; color: var(--red); }
.site :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nf-btn-red:focus-visible, .nf-btn-line:focus-visible { outline-color: #21191b; }

/* utility bar */
.nf-util { background: var(--red); color: #fff; font-size: 13px; }
.nf-util-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.nf-util-tag { font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.nf-util-tag span { color: var(--gold); margin-right: 4px; }
.nf-util-links { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.nf-util-links a { color: #fff; text-decoration: none; padding: 6px 12px; position: relative; opacity: .95; }
.nf-util-links a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: rgb(255 255 255 / .35); }
.nf-util-links a:hover { color: var(--gold); opacity: 1; }

/* header */
.nf-head { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.nf-head.is-stuck { box-shadow: 0 8px 24px rgb(33 25 27 / .08); }
.nf-head-in { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.nf-logo { display: block; flex: none; line-height: 0; }
.nf-logo img { display: block; width: min(300px, 30vw); max-height: 64px; height: auto; object-fit: contain; object-position: left center; }
.nf-burger { display: none; margin-left: auto; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--red); cursor: pointer; }
.nf-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nf-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nf-nav ul a { display: block; padding: 10px 11px; color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; position: relative; white-space: nowrap; border-radius: 6px; }
.nf-nav ul a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nf-nav ul a:hover { color: var(--red); }
.nf-nav ul a:hover::after, .nf-nav ul a.on::after { transform: scaleX(1); }
.nf-nav ul a.on { color: var(--red); }
.nf-nav-cta { display: flex; gap: 10px; }
.nf-announce { background: var(--accent-soft); color: var(--gold-ink); font-weight: 500; padding: 10px 0; border-bottom: 1px solid #f3dfae; }

/* banner slider */
.nf-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--cream); padding-bottom: 62px; }
.nf-hero-bg { position: absolute; inset: 0; z-index: -1; background: #ffffff; }
.nf-hero-bg::after { content: ""; position: absolute; inset: 0; clip-path: polygon(59% 0, 100% 0, 100% 100%, 53% 100%);
  background: radial-gradient(circle at 96% 8%, rgb(177 12 26 / .07) 0 120px, transparent 121px),
              radial-gradient(circle at 96% 8%, transparent 0 190px, rgb(177 12 26 / .10) 191px 193px, transparent 194px),
              linear-gradient(160deg, #fff8eb 0%, #fdeccb 100%); }
.nf-hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--gold); clip-path: polygon(58.4% 0, 59% 0, 53% 100%, 52.4% 100%); }
.nf-hero-stage { display: grid; }
.nf-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; padding: 56px 0 18px;
  opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .8s ease, transform .8s ease, visibility 0s linear .8s; }
.nf-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .8s ease, transform .8s ease, visibility 0s; }
.nf-slide.on .nf-slide-text > * { animation: nf-rise .8s ease both; }
.nf-slide.on .nf-slide-text > :nth-child(2) { animation-delay: .08s; }
.nf-slide.on .nf-slide-text > :nth-child(3) { animation-delay: .16s; }
.nf-slide.on .nf-slide-text > :nth-child(4) { animation-delay: .24s; }
.nf-slide.on .nf-photo img { animation: nf-zoom 9s ease-out both; }
@keyframes nf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nf-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.nf-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.nf-eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--gold); }
.nf-hero-title { font-size: clamp(2.1rem, 4.6vw, 3.55rem); line-height: 1.1; font-weight: 700; color: var(--ink); letter-spacing: -0.025em; margin: 0; }
.nf-hero-title em, .nf-h2 em { font-style: normal; color: var(--red); }
.nf-hero-title em { display: block; }
.nf-hero-lede { margin: 20px 0 0; max-width: 54ch; font-size: 1.075rem; color: var(--muted); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.nf-slide-media { position: relative; margin: 0; padding: 0 22px 22px 0; justify-self: end; width: min(100%, 540px); }
.nf-photo { position: relative; z-index: 1; overflow: hidden; border-radius: 22px 22px 22px 120px; aspect-ratio: 6 / 5; box-shadow: 0 26px 50px rgb(94 7 16 / .22); background: #e9dccd; }
.nf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-corner { position: absolute; right: 0; bottom: 0; width: 46%; height: 52%; border-radius: 0 22px 22px 22px; background: var(--gold); z-index: 0; }
.nf-corner::before { content: ""; position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 6px solid var(--red); background: #fff; z-index: 2; display: none; }
.nf-pill { position: absolute; z-index: 2; left: -18px; bottom: 54px; background: var(--red); color: #fff; font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 999px; box-shadow: 0 10px 24px rgb(177 12 26 / .3); }
.nf-hero-ctrl { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding-top: 4px; padding-bottom: 4px; }
.nf-dots { display: flex; gap: 10px; align-items: center; }
.nf-dot { position: relative; width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 0; background: rgb(177 12 26 / .25); cursor: pointer; overflow: hidden; transition: width .35s, background-color .35s; }
.nf-dot::before { content: ""; position: absolute; inset: -12px; }
.nf-dot.on { width: 44px; background: rgb(177 12 26 / .3); }
.nf-dot.on:not(:has(.nf-dot-fill)) { background: var(--red); }
.nf-dot-fill { position: absolute; inset: 0; background: var(--red); transform-origin: left; animation: nf-fill linear forwards; }
@keyframes nf-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nf-arrows { display: flex; gap: 8px; }
.nf-round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(177 12 26 / .25); background: #fff; color: var(--red); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, color .2s; }
.nf-round:hover { background: var(--red); color: #fff; border-color: var(--red); }
.nf-hero.no-motion .nf-slide, .nf-hero.no-motion .nf-slide.on { transition: none; transform: none; }
.nf-hero.no-motion .nf-slide-text > *, .nf-hero.no-motion .nf-photo img { animation: none !important; }

/* key figures */
.nf-stats { position: relative; z-index: 3; margin: -40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-radius: 16px;
  box-shadow: 0 18px 44px rgb(33 25 27 / .10); border: 1px solid var(--line); overflow: hidden; }
.nf-stats > div { display: flex; align-items: center; gap: 12px; padding: 22px 16px; min-width: 0; }
.nf-stats > div + div { border-left: 1px solid var(--line); }
.nf-stat-ic { width: 48px; height: 48px; flex: none; border-radius: 50%; background: #fdf1d6; color: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.nf-stats dd { margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
.nf-stats dd b { font-size: 1.4rem; font-weight: 700; color: var(--red); letter-spacing: -0.01em; white-space: nowrap; }
.nf-stats dd span { font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* features */
.nf-features { background: var(--blush); padding: 56px 0 52px; margin-top: -1px; }
.nf-stats + .nf-features, .nf-wrap:has(> .nf-stats) + .nf-features { margin-top: 48px; }
.nf-features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; text-align: center; }
.nf-feat-ic { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgb(177 12 26 / .12); border: 2px solid #f6d27e; transition: transform .3s, background-color .3s, color .3s; }
.nf-features li:hover .nf-feat-ic { transform: translateY(-4px); background: var(--red); color: #fff; }
.nf-features h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.nf-features p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* sections */
.nf-sec { padding: 88px 0; }
.nf-kicker { margin: 0 0 10px; color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.nf-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); }
.nf-kicker-gold { color: var(--gold); }
.nf-h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.18; font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.nf-serif { font-family: var(--serif) !important; font-weight: 700; letter-spacing: -0.01em; }
.nf-center { text-align: center; }
p.nf-center, .nf-kicker.nf-center { display: flex; justify-content: center; }
h2.nf-center { text-align: center; }

/* about */
.nf-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.nf-about-media { position: relative; padding: 0 70px 70px 0; }
.nf-about-main { border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 5.2; box-shadow: 0 22px 48px rgb(33 25 27 / .16); background: #eadfd8; }
.nf-about-main img, .nf-about-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-about-card { position: absolute; right: 0; bottom: 0; width: 48%; background: #fff; border-radius: 16px; padding: 8px 8px 0; box-shadow: 0 18px 40px rgb(33 25 27 / .18); }
.nf-about-card img { aspect-ratio: 1.1; border-radius: 10px; height: auto; }
.nf-about-card span { display: block; text-align: center; padding: 10px 6px 12px; font-weight: 700; font-size: 13px; color: var(--red); letter-spacing: .02em; }
.nf-about-label { position: absolute; left: -14px; top: 28px; margin: 0; max-width: 220px; background: var(--gold); color: #2b1d00; font-weight: 700; font-size: 14px; line-height: 1.35; padding: 12px 16px; border-radius: 12px; box-shadow: 0 12px 28px rgb(122 80 0 / .25); }
.nf-about-text > p { color: var(--muted); margin: 0 0 14px; font-size: 1.02rem; }
.nf-checks { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.nf-checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.nf-checks .nf-icon { margin-top: 1px; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--gold); color: #fff; stroke-width: 2.6; }

/* process band */
.nf-process { position: relative; overflow: hidden; color: #fff; padding: 88px 0; text-align: center;
  background: radial-gradient(circle at 92% 12%, transparent 0 90px, rgb(255 255 255 / .07) 91px 93px, transparent 94px 150px, rgb(255 255 255 / .05) 151px 153px, transparent 154px),
              radial-gradient(circle at 4% 96%, transparent 0 70px, rgb(255 255 255 / .06) 71px 73px, transparent 74px 130px, rgb(255 255 255 / .04) 131px 133px, transparent 134px),
              linear-gradient(135deg, #b10c1a 0%, #850915 100%); }
.nf-process .nf-h2 { color: #fff; max-width: 22ch; margin: 0 auto 48px; }
.nf-process .nf-h2 em { color: var(--gold); font-style: italic; }
.nf-process .nf-kicker { justify-content: center; display: flex; }
.nf-steps { list-style: none; margin: 0; padding: 34px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.nf-steps li { position: relative; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16); border-radius: 18px; padding: 0 22px 28px; backdrop-filter: blur(2px); transition: transform .3s, background-color .3s; }
.nf-steps li:hover { transform: translateY(-6px); background: rgb(255 255 255 / .12); }
.nf-step-no { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: -1px auto 18px; border-radius: 50%; background: #fff; color: var(--red);
  font: 700 1.5rem/1 var(--serif); box-shadow: 0 0 0 6px rgb(239 173 22 / .55); position: relative; margin-top: -34px; }
.nf-steps li { padding-top: 0; margin-top: 0; }
.nf-steps h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.nf-steps p { margin: 0; color: #f6dadc; font-size: 14.5px; }
.nf-process .nf-center { margin: 44px 0 0; }

/* promo */
.nf-promo { padding-bottom: 40px; }
.nf-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nf-promo-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 300px; border-radius: 20px; overflow: hidden; background: var(--cream); border: 1px solid #f3e3c4; }
.nf-promo-alt { background: #fff3f3; border-color: #f4d7da; }
.nf-promo-text { padding: 34px 10px 34px 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.nf-promo-text h2 { font-size: 1.55rem; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.nf-promo-text p:not(.nf-kicker) { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; }
.nf-promo-img { position: relative; overflow: hidden; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); background: #e7dbd2; }
.nf-promo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .6s; }
.nf-promo-card:hover .nf-promo-img img { transform: scale(1.05); }

/* news and the ticker */
.nf-news { background: linear-gradient(180deg, #ffffff 0%, var(--blush) 100%); }
.nf-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.nf-sec-head .nf-h2 { margin: 0; }
.nf-ticker { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 22px rgb(33 25 27 / .06); margin-bottom: 30px; min-height: 52px; }
.nf-tick-label { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 26px 0 18px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); white-space: nowrap; }
.nf-tick-label .nf-icon { color: var(--gold); }
.nf-tick-view { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.nf-tick-track { display: flex; width: max-content; animation: nf-marquee linear infinite; will-change: transform; }
.nf-tick-view:hover .nf-tick-track, .nf-tick-view:focus-within .nf-tick-track, .nf-ticker.is-still .nf-tick-track { animation-play-state: paused; }
@keyframes nf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.nf-tick-list { display: flex; align-items: center; gap: 44px; list-style: none; margin: 0; padding: 0 44px 0 22px; white-space: nowrap; }
.nf-tick-list li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
.nf-tick-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.nf-tick-list a:hover { color: var(--red); border-bottom-color: var(--red); }
.nf-tick-dot { color: var(--gold); font-size: 11px; }
.nf-tick-btn { flex: none; width: 52px; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--red); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nf-tick-btn:hover { background: #fbe9eb; }
.nf-ticker.no-motion .nf-tick-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.nf-ticker.no-motion .nf-tick-track { animation: none; }
.nf-notice { display: flex; gap: 10px; align-items: flex-start; margin: -10px 0 26px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--gold-ink); font-weight: 500; }
.nf-news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.nf-news-card { animation: nf-rise .6s ease both; animation-delay: calc(var(--k, 0) * 70ms); }
.nf-news-link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit;
  box-shadow: 0 10px 26px rgb(33 25 27 / .06); transition: transform .3s, box-shadow .3s; }
a.nf-news-link:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgb(33 25 27 / .12); }
.nf-news-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e7dbd2; }
.nf-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.nf-news-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, #7b1b20aa, #1c141255); }
a.nf-news-link:hover .nf-news-img img { transform: scale(1.06); }
.nf-news-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.nf-date { position: absolute; z-index: 1; left: 14px; top: 14px; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 7px 8px 6px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.1; box-shadow: 0 8px 18px rgb(0 0 0 / .25); }
.nf-date b { font-size: 1.45rem; letter-spacing: 0; }
.nf-news-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nf-news-time { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.nf-news-body h3 { font-size: 1.04rem; line-height: 1.38; font-weight: 700; color: var(--ink); margin: 0; }
.nf-news-body p { margin: 0; color: var(--muted); font-size: 14px; }
.nf-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 14px; }
.nf-empty { color: var(--muted); }

/* resources */
.nf-res-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nf-res-grid a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 20px 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, transform .25s; }
.nf-res-grid a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.nf-res-grid b { font-size: 1.02rem; }
.nf-res-grid a > span:nth-child(2) span { color: var(--muted); font-size: 13.5px; }
.nf-res-grid a > .nf-icon { color: var(--line-strong); transition: color .25s, transform .25s; }
.nf-res-grid a:hover { border-color: var(--red); box-shadow: 0 14px 30px rgb(177 12 26 / .10); transform: translateY(-3px); }
.nf-res-grid a:hover > .nf-icon { color: var(--red); transform: translateX(3px); }
.nf-res-ic { width: 54px; height: 54px; flex: none; border-radius: 14px; background: #fbe9eb; color: var(--red); display: inline-flex; align-items: center; justify-content: center; }

/* FAQs and grades */
.nf-faq { background: var(--cream); }
.nf-faq-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.nf-faq-list { display: grid; gap: 12px; margin-top: 8px; }
.nf-faq details { background: #fff; border: 1px solid #f0e2c6; border-radius: 12px; }
.nf-faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--ink); position: relative; }
.nf-faq summary::-webkit-details-marker { display: none; }
.nf-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fbe9eb; color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; line-height: 1; }
.nf-faq details[open] summary::after { content: "−"; background: var(--red); color: #fff; }
.nf-faq details[open] summary { color: var(--red); }
.nf-faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.nf-grades { background: #fff; border-radius: 16px; padding: 26px; border-top: 4px solid var(--red); box-shadow: 0 14px 34px rgb(33 25 27 / .08); position: sticky; top: calc(var(--head-h) + 20px); }
.nf-grades h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; }
.nf-grades table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nf-grades th, .nf-grades td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.nf-grades thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.nf-grades tbody th { color: var(--red); font-weight: 700; font-size: 15px; }
.nf-grades p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

/* call to action */
.nf-cta { padding: 0 0 80px; background: var(--cream); }
.nf-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-radius: 22px; padding: 40px 44px; color: #fff;
  background: radial-gradient(circle at 100% 0, rgb(239 173 22 / .28) 0 120px, transparent 121px), linear-gradient(120deg, #850915, #b10c1a); box-shadow: 0 22px 48px rgb(133 9 21 / .28); }
.nf-cta h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; margin: 0 0 6px; color: #fff; }
.nf-cta p { margin: 0; color: #f8dfe1; }
.nf-cta .nf-actions { margin: 0; }

/* footer */
.nf-foot { background: #970b18; color: #fff; border-top: 4px solid var(--gold); font-size: 14.5px; }
.nf-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 40px; padding-top: 60px; padding-bottom: 44px; }
.nf-foot-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; line-height: 0; }
.nf-foot-logo img { width: 250px; max-width: 100%; height: auto; }
.nf-foot-about p { margin: 0; color: #f6d9dc; }
.nf-foot h2 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 4px 0 18px; padding-bottom: 10px; position: relative; }
.nf-foot h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--gold); }
.nf-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.nf-foot a { color: #fde6c4; text-decoration: none; }
.nf-foot a:hover { color: #fff; text-decoration: underline; }
.nf-foot-contact li { display: flex; gap: 10px; align-items: flex-start; color: #f6d9dc; }
.nf-foot-contact .nf-icon { color: var(--gold); margin-top: 3px; }
.nf-foot-bar { background: #7d0914; font-size: 13.5px; color: #f6d9dc; }
.nf-foot-bar-in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.nf-foot-bar-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* public pages other than home */
.nf-band { background: linear-gradient(120deg, #850915, #b10c1a); color: #fff; }
.nf-band .nf-wrap { padding-top: 14px; padding-bottom: 14px; }
.nf-crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; }
.nf-crumbs a { color: #fde6c4; text-decoration: none; }
.nf-crumbs a:hover { color: #fff; text-decoration: underline; }
.nf-inner { background: #faf7f5; }
.nf-inner-body { padding-top: 36px; padding-bottom: 64px; }
.nf-inner-body > .page { max-width: none; margin: 0; padding: 0; }
.nf-inner-body > .page.narrow { max-width: 760px; margin: 0 auto; }
.nf-inner-body .panel { border-radius: 14px; border-color: var(--line); box-shadow: 0 8px 22px rgb(33 25 27 / .05); }
.nf-inner-body > .auth-wrap { min-height: 52vh; padding: 0; }
.site .btn { border-radius: 8px; font-weight: 600; }

/* responsive */
@media (max-width: 1180px) {
  .nf-burger { display: inline-flex; }
  .nf-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--red); box-shadow: 0 18px 30px rgb(33 25 27 / .12);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; max-height: calc(100vh - var(--head-h)); overflow-y: auto; }
  .nf-nav.open { display: flex; animation: nf-drop .22s ease; }
  @keyframes nf-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nf-nav ul { flex-direction: column; align-items: stretch; }
  .nf-nav ul li + li { border-top: 1px solid var(--line); }
  .nf-nav ul a { padding: 14px 4px; font-size: 16px; border-radius: 0; }
  .nf-nav ul a::after { left: 4px; right: auto; width: 28px; bottom: 6px; }
  .nf-nav-cta { padding-top: 14px; }
  .nf-nav-cta .nf-btn { flex: 1; min-height: 48px; }
  .nf-head-in { position: relative; }
  .nf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nf-stats > div:nth-child(4) { border-left: 0; }
  .nf-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .nf-features ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .nf-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .site { --head-h: 74px; }
  .nf-slide { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0 20px; }
  .nf-slide-media { justify-self: center; width: min(100%, 480px); }
  .nf-hero-bg::after { clip-path: polygon(0 58%, 100% 46%, 100% 100%, 0 100%); }
  .nf-hero-bg::before { display: none; }
  .nf-about-grid, .nf-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .nf-about-media { max-width: 560px; }
  .nf-grades { position: static; }
  .nf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 60px; }
  .nf-promo-grid { grid-template-columns: minmax(0, 1fr); }
  .nf-res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-sec, .nf-process { padding: 68px 0; }
  .nf-util-tag { display: none; }
  .nf-util-in { justify-content: center; }
}
@media (max-width: 680px) {
  .nf-wrap { padding-left: 16px; padding-right: 16px; }
  .nf-util-links { justify-content: center; }
  .nf-util-links a { padding: 6px 8px; font-size: 12.5px; }
  .nf-util-links a:nth-child(4) { display: none; }
  .nf-logo img { width: min(230px, 62vw); }
  .nf-hero { padding-bottom: 52px; }
  .nf-slide { padding: 30px 0 12px; }
  .nf-hero-title { font-size: clamp(1.85rem, 8.4vw, 2.4rem); }
  .nf-hero-lede { font-size: 1rem; }
  .nf-actions { gap: 10px; }
  .nf-actions .nf-btn { flex: 1 1 auto; }
  .nf-pill { left: 8px; bottom: 34px; font-size: 13px; padding: 8px 14px; }
  .nf-photo { border-radius: 18px 18px 18px 70px; }
  .nf-slide-media { padding: 0 14px 14px 0; }
  .nf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -34px; }
  .nf-stats > div { padding: 16px 14px; gap: 10px; }
  .nf-stats > div + div { border-left: 0; }
  .nf-stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .nf-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nf-stats > div:nth-child(5) { grid-column: 1 / -1; justify-content: center; }
  .nf-stat-ic { width: 42px; height: 42px; }
  .nf-stats dd b { font-size: 1.2rem; }
  .nf-stats dd span { font-size: 12.5px; }
  .nf-features { padding: 44px 0; }
  .nf-features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .nf-features li:last-child { grid-column: 1 / -1; }
  .nf-sec, .nf-process { padding: 56px 0; }
  .nf-about-media { padding: 0 34px 50px 0; }
  .nf-about-label { left: -6px; top: 14px; font-size: 12.5px; max-width: 170px; padding: 9px 12px; }
  .nf-checks { grid-template-columns: minmax(0, 1fr); }
  .nf-steps { grid-template-columns: minmax(0, 1fr); row-gap: 60px; }
  .nf-promo-card { grid-template-columns: minmax(0, 1fr); }
  .nf-promo-img { order: -1; height: 190px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
  .nf-promo-text { padding: 24px; }
  .nf-ticker { flex-wrap: wrap; }
  .nf-tick-label { width: 100%; clip-path: none; padding: 10px 16px; }
  .nf-tick-view { min-height: 50px; flex: 1 1 calc(100% - 52px); }
  .nf-tick-list li { font-size: 14.5px; }
  .nf-news-grid, .nf-res-grid { grid-template-columns: minmax(0, 1fr); }
  .nf-cta-in { padding: 30px 22px; }
  .nf-cta .nf-actions { width: 100%; }
  .nf-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 44px; }
  .nf-grades { padding: 20px 16px; }
  .nf-grades th, .nf-grades td { padding: 8px 5px; }
  .nf-hero-ctrl .nf-round { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { scroll-behavior: auto !important; }
  .nf-news-card, .nf-nav.open { animation: none; }
  .nf-slide, .nf-slide.on { transition: none; }
}
@media print {
  .nf-util, .nf-head, .nf-hero-ctrl, .nf-ticker, .nf-cta, .nf-foot { display: none !important; }
  .nf-slide:not(.on) { display: none; }
}

/* Settings → home page editor */
.he-item { border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1rem 0.5rem; margin: 0 0 1rem; position: relative; min-width: 0; }
.he-item legend { font-weight: 600; padding: 0 0.35rem; color: var(--heading); }
.he-item > * + * { margin-top: 0.6rem; }
.he-tools { display: flex; gap: 0.25rem; justify-content: flex-end; }
.he-item > .he-tools { position: absolute; right: 0.75rem; top: -0.2rem; margin: 0; background: var(--surface); }
.he-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 0.75rem; align-items: end; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.he-row .he-tools { padding-bottom: 0.2rem; }
.he-img { display: flex; gap: 0.75rem; align-items: center; }
.he-img select { flex: 1; min-width: 0; }
.he-thumb { flex: none; width: 96px; height: 64px; border-radius: var(--r-s); overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.he-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-narrow { max-width: 12rem; }
.he-lib { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.he-lib li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.4rem; }
.he-lib img { width: 72px; height: 52px; object-fit: cover; border-radius: var(--r-s); display: block; }
.he-lib .small { overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .he-row { grid-template-columns: minmax(0, 1fr); }
  .he-item > .he-tools { position: static; background: none; }
}

/* ---- assessor panel link ---- */
.link-panel .row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.link-panel .stats.compact { margin: .75rem 0; }
.link-panel .stat-value.small-value { font-size: .95rem; font-weight: 600; }
.link-panel details summary { cursor: pointer; margin-top: .5rem; }
.link-panel .note { margin: .5rem 0; }
/* =====================================================================================================================
   Assessor panel pages (everything under .pz; ported from the separate assessor portal)
   ===================================================================================================================== */
.pz .brand { gap: 0.6rem; }
.pz .brand-tag { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); border-left: 2px solid #eaa613; padding-left: 0.6rem; white-space: nowrap; }
.pz .nf-portal-tag { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); border-left: 3px solid var(--gold); padding: 2px 0 2px 10px; white-space: nowrap; }
.pz .nf-burger span[aria-hidden] { font-size: 22px; line-height: 1; }
.pz .cards-2, .pz .cards-4 { display: grid; gap: 1rem; margin: 1rem 0; }
.pz .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pz .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pz .grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pz .plain { list-style: none; padding: 0; margin: 0; }
.pz .plain > li { padding: 0.3rem 0; }
.pz .timeline li { display: block; }
.pz .timeline time { display: inline-block; min-width: 11rem; }
.pz .timeline li.internal { background: var(--surface-2); padding-left: 0.5rem; }
.pz .tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.05rem 0.45rem; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); margin: 0 0.25rem 0.2rem 0; white-space: nowrap; }
.pz .tag.ok { background: var(--ok-soft); color: var(--ok); } .pz .tag.bad { background: var(--bad-soft); color: var(--bad); } .pz .tag.warn { background: var(--warn-soft); color: var(--warn); }
.pz .note-info { background: var(--info-soft); border-color: var(--info); }
.pz .note .actions { margin-top: 0.5rem; }
.pz .note { flex-wrap: wrap; justify-content: flex-start; }
.pz .note > .btn:last-child { margin-left: auto; }
.pz .req { color: var(--bad); }
.pz .text-bad { color: var(--bad); font-weight: 600; } .pz .text-warn { color: var(--warn); font-weight: 600; }
.pz .linklike { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }
.pz .no-print { }
.pz .level { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 999px; margin-left: 0.35rem; }
.pz .level-assessor { background: var(--accent-soft); color: var(--accent-ink); }
.pz .level-lead { background: var(--brand); color: #fff; }
.pz .stars { color: #e3a008; white-space: nowrap; letter-spacing: 1px; } .pz .stars-off { color: var(--line-strong); } .pz .stars .num { color: var(--ink); letter-spacing: 0; font-size: 0.875rem; }
.pz .status-card h2 { margin: 0.2rem 0 0.6rem; }
.pz .status-card > * + * { margin-top: 0.6rem; }
.pz .checklist { list-style: none; padding: 0; margin: 0.5rem 0; }
.pz .checklist li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.pz .check-mark { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.pz .checklist .met .check-mark { background: var(--ok-soft); color: var(--ok); }
.pz .checklist .unmet .check-mark { background: var(--bad-soft); color: var(--bad); }
.pz .checklist .unknown .check-mark { background: var(--surface-2); color: var(--muted); }
.pz .decisions { list-style: none; padding: 0; margin: 0; }
.pz .decisions > li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.pz .decisions > li > * + * { margin-top: 0.4rem; }
.pz .multi { border: 0; padding: 0; margin: 0; }
.pz .multi legend, .pz fieldset.field legend { font-weight: 500; margin-bottom: 0.35rem; padding: 0; }
.pz fieldset.field { border: 0; padding: 0; margin: 0; }
.pz .checks { display: flex; flex-wrap: wrap; gap: 0.15rem 1.25rem; }
.pz .checks-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.1rem 1rem; }
.pz .narrow-field { max-width: 22rem; }
.pz input.short { width: 6rem; }
.pz .inline-field { display: inline-flex; align-items: center; gap: 0.4rem; }
.pz .file-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.pz .file-row input[type="file"] { max-width: 100%; }
.pz .coi-row { display: grid; grid-template-columns: 2fr 1fr 1.5fr auto; gap: 0.75rem; align-items: end; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.pz .terms { max-height: 18rem; overflow-y: auto; padding: 0.9rem 1rem; background: var(--surface-2); border-radius: var(--r-s); border: 1px solid var(--line); }
.pz .rich > * + * { margin-top: 0.6rem; }
.pz .rich h3 { font-size: 1.05rem; margin-top: 1.1rem; color: var(--heading); }
.pz .rich ul { padding-left: 1.3rem; margin: 0.4rem 0; }
.pz .rich li + li { margin-top: 0.25rem; }
.pz .history summary, .pz details.panel > summary { cursor: pointer; font-weight: 600; }
.pz details.panel[open] > summary { margin-bottom: 0.75rem; }
/* training */
.pz .course-cards { display: grid; gap: 1rem; }
.pz .course-card > * + * { margin-top: 0.6rem; }
.pz .progress-row { display: flex; align-items: center; gap: 0.6rem; }
.pz .progress-row .meter { flex: 1; max-width: 22rem; }
.pz .meter { display: inline-block; height: 8px; min-width: 60px; background: var(--surface-2); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.pz .meter-fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.pz .course-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.pz .module-nav { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.75rem; }
.pz .module-nav ol { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.pz .module-nav a { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: 0.5rem; padding: 0.5rem; border-radius: var(--r-s); text-decoration: none; color: var(--ink-2); }
.pz .module-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.pz .mod-dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.pz .mod-dot.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.pz .module-body { max-width: 78ch; line-height: 1.7; }
.pz .module-body h2 { font-family: var(--serif); color: var(--heading); font-size: 1.45rem; margin-bottom: 0.8rem; }
.pz .module-actions { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.pz .test-rules li { padding: 0.45rem 0; }
.pz .test-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.6rem 1rem; margin-bottom: 1rem; box-shadow: 0 6px 18px rgb(0 0 0 / 0.06); }
.pz .test-bar.urgent { border-color: var(--bad); background: var(--bad-soft); }
.pz .questions { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.pz .question fieldset { border: 0; padding: 0; margin: 0; }
.pz .question legend { font-weight: 600; margin-bottom: 0.5rem; line-height: 1.45; }
.pz .q-no { color: var(--brand); margin-right: 0.25rem; }
.pz .question .choice { border: 1px solid var(--line); border-radius: var(--r-s); padding: 0.5rem 0.7rem; margin: 0.35rem 0; cursor: pointer; }
.pz .question .choice.on { border-color: var(--brand); background: var(--brand-soft); }
.pz .question .choice input { accent-color: var(--brand); }
.pz .evidence { margin: 0.5rem 0 0.75rem; padding: 0.75rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--r-s) var(--r-s) 0; }
.pz .levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 0.5rem; }
.pz .result-card.pass { border-top: 4px solid var(--ok); } .pz .result-card.fail { border-top: 4px solid var(--bad); }
.pz .tags { list-style: none; padding: 0; margin: 0; } .pz .tags li { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 3rem; gap: 0.6rem; align-items: center; padding: 0.25rem 0; }
.pz .editor-item { position: relative; border: 1px solid var(--line); }
.pz .editor-item legend { font-weight: 700; color: var(--heading); padding: 0 0.3rem; }
.pz .editor-tools { display: flex; gap: 0.25rem; justify-content: flex-end; }
.pz .option-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; margin: 0.3rem 0; }
.pz .option-row input[type="radio"] { accent-color: var(--ok); width: 1.1rem; height: 1.1rem; }
.pz .pick-list { list-style: none; padding: 0; margin: 0.5rem 0; max-height: 24rem; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-s); }
.pz .pick-list li { padding: 0.2rem 0.75rem; border-bottom: 1px solid var(--line); }
/* staff */
.pz .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; }
.pz .tile { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink-2); background: var(--surface); }
.pz .tile-n { font-size: 1.8rem; font-weight: 700; color: var(--muted); line-height: 1.1; }
.pz .tile.has { border-color: var(--accent); } .pz .tile.has .tile-n { color: var(--brand); }
.pz .tile.mine { box-shadow: inset 4px 0 0 var(--brand); }
.pz .tile:hover { border-color: var(--brand); }
.pz .dash-grid { margin-top: 1rem; align-items: start; }
.pz .queue li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.pz .bars { list-style: none; padding: 0; margin: 0; } .pz .bars li { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 2rem; gap: 0.6rem; align-items: center; padding: 0.2rem 0; font-size: 0.875rem; }
.pz .bars .meter { width: 100%; }
.pz .facts.compact { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem 1rem; }
.pz .inline-link { display: inline-block; margin-right: 0.75rem; }
.pz .filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 1rem; }
.pz .filters .field { min-width: 11rem; flex: 1 1 11rem; }
.pz .filters .field:first-child { flex: 2 1 16rem; }
.pz .decide { border-left: 4px solid var(--accent); }
.pz .person-actions { margin: 0 0 0.5rem; }
.pz .note-form { margin-bottom: 1rem; }
.pz .rule-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) auto auto auto; gap: 0.75rem; align-items: end; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.pz .rule-row .check { padding-bottom: 0.55rem; }
.pz code.secret { font-size: 1rem; padding: 0.1rem 0.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; user-select: all; }
/* assignments and claims */
.pz .cards-list { list-style: none; padding: 0; margin: 0; }
.pz .card-row { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.pz .card-row > * + * { margin-top: 0.5rem; }
.pz .card-row h3 { font-size: 1.05rem; }
.pz .tasks { list-style: none; padding: 0; margin: 0.5rem 0; }
.pz .tasks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); }
.pz .tasks li > .muted { margin-left: auto; }
.pz .tasks li.done { color: var(--muted); } .pz .tasks li.done label { text-decoration: line-through; }
.pz .tasks li.late { color: var(--bad); }
.pz .team { background: var(--surface-2); border-radius: var(--r-s); padding: 0.6rem 0.9rem; }
.pz .team h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.pz .task-edit { display: grid; grid-template-columns: minmax(0, 1fr) 10rem auto; gap: 0.5rem; margin: 0.3rem 0; }
.pz .asg-grid { align-items: start; }
.pz .cand-table .row-muted { opacity: 0.6; }
.pz .claim-item { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.pz .claim-item-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: end; justify-content: space-between; margin-top: 0.4rem; }
.pz .rating legend { font-weight: 500; }
.pz .rating-row { display: flex; gap: 0.4rem; }
.pz .rate { width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer; font-weight: 600; }
.pz .rate.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pz .rate:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.pz .inst-table tfoot th, .pz .inst-table tfoot td { padding: 0.5rem 0.8rem; border-top: 1px solid var(--line-strong); }
/* the letter */
.pz .letter { max-width: 760px; background: #fff; color: #231f20; border: 1px solid var(--line); padding: 2.5rem 3rem; margin-top: 1rem; line-height: 1.65; }
.pz .letter > * + * { margin-top: 1rem; }
.pz .letter-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #b10c1a; padding-bottom: 0.75rem; box-shadow: 0 2px 0 #eaa613; }
.pz .letter-head img { height: 54px; width: auto; }
.pz .letter-meta { display: flex; flex-direction: column; text-align: right; font-size: 0.875rem; color: #4a4446; }
.pz .letter h1 { font-family: var(--serif); color: #6e0a13; font-size: 1.5rem; text-align: center; margin: 1.5rem 0 1rem; }
.pz .letter-facts { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.3rem 1rem; background: #fdf6e6; padding: 0.9rem 1.1rem; border-radius: 6px; }
.pz .letter-facts > div { display: contents; } .pz .letter-facts dt { color: #6b6466; } .pz .letter-facts dd { margin: 0; font-weight: 600; }
.pz .letter-sign { display: flex; flex-direction: column; align-items: flex-end; margin-top: 2.5rem; }
.pz .letter-sign .sign-line { width: 12rem; border-bottom: 1px solid #231f20; height: 2.5rem; }
/* public pages of the assessor portal */
.pz .asr-hero { padding-bottom: 56px; }
.pz .asr-hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-top: 56px; }
.pz .asr-hero-steps { list-style: none; margin: 0; padding: 22px; background: #fff; border-radius: 20px; box-shadow: 0 22px 48px rgb(94 7 16 / .15); border: 1px solid var(--line); display: grid; gap: 4px; }
.pz .asr-hero-steps li { display: flex; align-items: center; gap: 14px; padding: 10px 6px; font-weight: 600; color: var(--ink); border-bottom: 1px dashed var(--line); }
.pz .asr-hero-steps li:last-child { border-bottom: 0; }
.pz .asr-step-no { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.pz .asr-hero-steps li:last-child .asr-step-no { background: var(--gold); color: #2b1d00; }
.pz .asr-two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.pz .asr-p { color: var(--muted); font-size: 1.02rem; }
.pz .asr-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pz .asr-roles li { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; background: #fff; }
.pz .asr-roles h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.pz .asr-roles p { margin: 0; color: var(--muted); }
.pz .asr-band { background: var(--cream); }
.pz .asr-elig li { background: #fff; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.pz .asr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 58px; }
.pz .asr-rates { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px rgb(33 25 27 / .08); }
.pz .asr-rates th, .pz .asr-rates td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.pz .asr-rates td { color: var(--red); font-weight: 700; }
.pz .site .nf-inner-body > .auth-wrap, .pz .site .nf-inner-body > .page { margin: 0 auto; }
@media (max-width: 980px) {
  .pz .asr-hero-in, .pz .asr-two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pz .asr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pz .course-layout { grid-template-columns: minmax(0, 1fr); }
  .pz .module-nav { position: static; }
  .pz .cards-4, .pz .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pz .rule-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pz .nf-portal-tag { display: none; }
}
@media (max-width: 680px) {
  .pz .asr-steps { grid-template-columns: minmax(0, 1fr); }
  .pz .cards-2, .pz .cards-4, .pz .grid-4, .pz .levels, .pz .coi-row, .pz .task-edit { grid-template-columns: minmax(0, 1fr); }
  .pz .letter { padding: 1.25rem; }
  .pz .letter-facts { grid-template-columns: minmax(0, 1fr); }
  .pz .timeline time { display: block; }
  .pz .brand-tag { display: none; }
  .pz .rule-row { grid-template-columns: minmax(0, 1fr); }
  .pz .test-bar { gap: 0.5rem; }
}
@media print {
  .no-print, .shell > .topbar, .sidenav, .env-banner, .page-actions .btn { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; }
  .letter { border: 0; padding: 0; }
}
.pz .letter-sign .strong { font-weight: 700; }

/* ---- link with the NIAF portal ---- */
.pz .tag.niaf { background: var(--warn-soft); color: var(--warn); margin-left: .5rem; vertical-align: middle; font-size: .72rem; }
.pz .open-niaf { display: inline-flex; flex-direction: column; gap: .4rem; }
.pz .code-block { background: #f6f3ee; border: 1px solid #e4ddd2; border-radius: 8px; padding: .75rem 1rem; font-size: .82rem; overflow-x: auto; white-space: pre; max-width: 100%; }
.pz button.tab { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font: inherit; font-weight: 500; cursor: pointer; }
.pz button.tab.active { border-bottom-color: var(--brand); }

/* ---- assessor panel in the portal ---- */
.page-note { max-width: 1180px; padding: 1.75rem 2rem 0; }
.page-note .note { margin: 0; }
.pz-public .nf-hero.asr-hero { margin-top: 0; }
.pz .checklist li { padding: 0.4rem 0; }
.pz .checklist li::before { content: none; }
/* the site menu has one more item (Assessors): keep it on one line on laptop screens */
@media (min-width: 1181px) {
  .nf-head-in { gap: 16px; }
  .nf-nav { gap: 12px; }
  .nf-nav ul a { padding: 10px 6px; font-size: 13.5px; }
  .nf-nav ul a::after { left: 6px; right: 6px; }
  .nf-nav-cta .nf-btn { padding-left: 16px; padding-right: 16px; }
}
