/* ==========================================================================
   RiskLens Australia — shared stylesheet
   Friendly learning-site look (inspired by Khan Academy's layout and style): white pages, a bold navy
   banner, a different colour for each subject, rounded cards, flat illustrations, amber call-to-action
   buttons on navy and blue buttons on white. All colours live in :root.
   Diagrams are inline SVG in their original light palette (no re-mapping).
   Section illustrations are our own flat SVG drawings in /assets/img/ (see _scripts/graphics/).
   ========================================================================== */

/* Lato (text) and Nunito (headings) are self-hosted (SIL Open Font License; see /assets/fonts/OFL-*.txt). */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/lato-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2"); }

:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-2: #f3f6fb;
  --surface: #f3f6fb;
  --surface-solid: #ffffff;
  --surface-2: #f3f6fb;
  --field: #ffffff;
  --border: #dde3ee;
  --border-strong: #c5cddc;
  /* text */
  --heading: #0b2a4a;
  --text: #1d2b3f;
  --muted: #4f5b70;
  --faint: #5a6478;
  /* brand: navy banner, amber call-to-action, blue links and buttons on white */
  --navy: #0b2a4a;
  --navy-2: #133a63;
  --amber-cta: #ffb020;
  --amber-cta-ink: #1d1500;
  --cyan: #1556b3;
  --cyan-soft: rgba(21, 86, 179, 0.08);
  --blue: #1556b3;
  --blue-bright: #1556b3;
  --blue-soft: rgba(21, 86, 179, 0.08);
  --violet: #5b3aa6;
  --violet-soft: rgba(107, 63, 184, 0.08);
  --green: #17692d;
  --green-soft: rgba(52, 199, 89, 0.1);
  --amber: #8a4600;
  --amber-soft: rgba(255, 159, 10, 0.1);
  --red: #b00014;
  --red-soft: rgba(255, 59, 48, 0.08);
  /* one colour per subject (cards, bands and badges) */
  --c-foundations: #1d6fd1;
  --c-risk: #b04e08;
  --c-compliance: #0b7a6b;
  --c-governance: #6b3fb8;
  --c-standards: #3c5a78;
  --c-grc: #a82a6e;
  --grad: linear-gradient(180deg, #1c63c4, #1556b3);
  --glow: 0 10px 28px -12px rgba(11, 42, 74, 0.25);
  /* type and layout */
  --font-body: "Lato", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Nunito", "Lato", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: var(--font-body);
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1024px;
  --max-text: 740px;
  /* legacy names still used by a few rules */
  --navy-legacy: #0b2a4a;
  --blue-dark: #0f4a9c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* links inside running text are always underlined, so they never rely on colour alone */
main p a:not(.button), main li a:not(.button), main dd a, main td a, main th a { text-decoration: underline; text-decoration-color: rgba(21, 86, 179, 0.4); text-underline-offset: 3px; }
main p a:not(.button):hover, main li a:not(.button):hover, main dd a:hover, main td a:hover, main th a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid rgba(21, 86, 179, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: rgba(21, 86, 179, 0.2); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  z-index: 100;
  border-radius: 980px;
}
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header and navigation (frosted bar) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(11, 42, 74, 0.03);
}
.site-header .inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--heading);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: url("/assets/brand/favicon.svg") center / cover no-repeat;
  flex: none;
  margin-right: 8px;
}
.brand span { margin-left: 0.25em; color: var(--muted); font-weight: 700; }
.brand:hover { color: var(--heading); text-decoration: none; }
.site-nav { min-width: 0; }
.site-nav ul {
  list-style: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0 22px;
}
.site-nav li { margin: 0; flex: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--heading);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 19px 0;
  transition: color .2s;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 900; box-shadow: inset 0 -3px 0 var(--amber-cta); }
.nav-search svg { width: 15px; height: 15px; }

/* ---------- Layout ---------- */

main { display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.article {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 36px 22px 72px;
}
.article.wide { max-width: var(--max); }

.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
}
.breadcrumb ol { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px 0 4px; color: var(--faint); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue-bright); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { color: var(--heading); font-family: var(--font-display); font-weight: 800; }
h1 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  font-weight: 900;
}
h2 { font-size: 30px; line-height: 1.2; margin: 52px 0 14px; letter-spacing: -0.005em; }
h3 { font-size: 22px; line-height: 1.25; margin: 32px 0 8px; letter-spacing: 0; }
h4 { font-size: 17px; margin: 22px 0 6px; letter-spacing: 0; }
p { margin-bottom: 16px; }
ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 7px; }
li::marker { color: var(--faint); }
strong { color: var(--heading); font-weight: 700; }
kbd, code { font-family: var(--font-code); font-size: 0.88em; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--heading); }
.summary { font-size: 22px; line-height: 1.4; letter-spacing: 0; color: var(--muted); margin-bottom: 20px; font-weight: 400; }
.small { font-size: 14px; color: var(--muted); }

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

/* Glossary term links inside articles */
a.term {
  color: inherit;
  text-decoration: underline dotted var(--faint);
  text-underline-offset: 4px;
}
a.term:hover { color: var(--blue-bright); text-decoration-color: var(--blue-bright); }

/* ---------- Level tags ---------- */

.level {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 2px 10px;
  border-radius: 980px;
  border: 1.5px solid currentColor;
  vertical-align: middle;
  background: #ffffff;
}
.level-beginner { color: #0b7a4b; }
.level-intermediate { color: #8a5a00; }
.level-advanced { color: #7a2fb3; }
h2 .level, h3 .level { margin-left: 8px; font-size: 12px; }

/* ---------- Boxes ---------- */

.takeaways {
  background: #eaf1fc;
  border: 2px solid #cfdcf3;
  border-radius: var(--radius);
  padding: 22px 28px 10px;
  margin: 30px 0;
}
.takeaways h2 {
  font-size: 21px;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px 8px;
  margin: 26px 0;
}
.callout h3, .callout h4 { margin-top: 0; }
.callout h2 { margin-top: 0; font-size: 21px; }
.callout.warn { background: #fff8ec; }
.callout.example { background: #f0faf3; }

.definition {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 22px 4px;
  margin: 20px 0;
}
.definition dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.definition dd { margin: 2px 0 12px; }

/* ---------- Figures and diagrams ---------- */

figure.diagram {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}
figure.diagram svg { display: block; margin: 0 auto; width: 100%; height: auto; }
main svg { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
figure.diagram figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}
.diagram-scroll { overflow-x: auto; }

/* Section artwork (our own flat illustrations; stamped by sync_layout.py) */
.section-art {
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f3f6fb;
}
.section-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article:not(.wide) .section-art img { aspect-ratio: 16 / 9; }
.article.wide .section-art img { aspect-ratio: 16 / 7; }

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  position: relative;
  margin: 24px 0 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  background: var(--surface);
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
}
tbody th { font-size: 15px; background: #fff; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
caption { caption-side: bottom; font-size: 14px; color: var(--muted); padding: 10px; text-align: left; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 22px 0 32px;
}
.card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card h3 { color: var(--heading); font-size: 20px; margin: 0 0 8px; letter-spacing: 0; }
.card p { font-size: 15px; color: var(--muted); margin-bottom: 14px; line-height: 1.45; }
.card .level { align-self: flex-start; margin-top: auto; }
a.card { text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--glow); }
a.card:hover h3 { color: var(--blue); }
.card.coming-soon { background: #f8fafd; border: 1px dashed var(--border-strong); }
.card.coming-soon h3 { color: var(--faint); }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: #eaf1fc;
  color: #1f4a8a;
  border: 1px solid transparent;
  border-radius: 980px;
  padding: 2px 10px;
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 11px 22px;
  border-radius: 10px;
  border: 2px solid var(--blue);
  transition: background .2s, color .2s, border-color .2s;
}
.button:hover { background: #0f4a9c; border-color: #0f4a9c; color: #fff; text-decoration: none; }
.button.secondary { background: #ffffff; color: #1556b3; border-color: #1556b3; }
.button.secondary:hover { background: var(--blue); color: #fff; }
.link-more::after, .more::after { content: " ›"; }

/* ---------- Home page ---------- */

.hero {
  background: var(--navy);
  color: #ffffff;
  padding: 56px 22px 60px;
}
.hero-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; background: var(--navy-2); border-radius: 980px; padding: 5px 14px; margin-bottom: 14px; }
.hero h1 { font-size: 52px; line-height: 1.07; letter-spacing: -0.01em; color: #ffffff; margin: 0 0 16px; }
.hero p { font-size: 20px; line-height: 1.5; color: #e3eaf5; max-width: 540px; margin: 0 0 12px; }
.hero .cta { margin: 24px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .button { background: var(--amber-cta); border-color: var(--amber-cta); color: var(--amber-cta-ink); }
.hero .button:hover { background: #ffc24d; border-color: #ffc24d; color: var(--amber-cta-ink); }
.hero .button.secondary { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }
.hero .button.secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: #ffffff; color: #ffffff; }
.hero .hero-search { max-width: 540px; margin: 26px 0 0; }
.hero-art { display: block; width: 100%; height: auto; }

/* Subject cards: a coloured band with a flat illustration, then the text */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
  margin-top: 26px;
}
.course { --cc: var(--blue); background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.course .band-art { background: var(--cc); display: grid; place-items: center; height: 150px; }
.course .band-art img { height: 118px; width: auto; max-width: 100%; display: block; }
.course .course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course h3 { margin: 0; font-size: 23px; color: var(--cc); }
.course p { margin: 0 0 6px; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.course .tile-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.course .button { font-size: 14.5px; padding: 8px 16px; }
.course.c-playbooks { --cc: #b04e08; }
.course.c-obligations { --cc: #0b7a6b; }
.course.c-standards { --cc: #3c5a78; }
.course.c-grc { --cc: #a82a6e; }
.course.c-cases { --cc: #8a2c2c; }
.course.c-learn { --cc: #1d6fd1; }
.course.c-videos { --cc: #6b3fb8; }
.course.c-tools { --cc: #0b6e99; }
.course.c-news { --cc: #3b6b2a; }

.band { padding: 60px 22px; }
.band.alt { background: #f3f6fb; }
.band > .container > h2:first-child, .band h2.band-title { font-size: 34px; text-align: left; margin: 0 0 8px; letter-spacing: -0.005em; }
.band .band-intro { text-align: left; color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 0 22px; }
.band.alt .card { background: #fff; }

.section { padding: 40px 0 16px; }
.section h2 { margin-top: 0; }
.section-intro { color: var(--muted); max-width: 700px; font-size: 19px; }

/* ---------- Learning path (numbered steps) ---------- */

.path { list-style: none; margin: 20px 0 28px; counter-reset: step; }
.path li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.path li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(21, 86, 179, 0.4);
}
.path li p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- Glossary ---------- */

.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 8px;
  position: sticky;
  top: 64px;
  background: #ffffff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  z-index: 5;
  border-bottom: 1px solid var(--border);
}
.az-nav a, .az-nav span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.az-nav a { background: var(--surface); border: 1px solid var(--border); color: var(--cyan); }
.az-nav a:hover { background: var(--cyan-soft); border-color: var(--cyan); box-shadow: 0 0 12px rgba(21, 86, 179, 0.35); }
.az-nav span { color: #c5cddc; }
.glossary-filter { margin: 14px 0 4px; }
.glossary-filter label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.glossary-filter input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.glossary-filter input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(21, 86, 179, 0.2); }
.glossary-letter {
  margin-top: 36px;
  font-size: 30px;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glossary dl { margin: 0; }
.glossary .entry {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 130px;
}
.glossary .entry:target { background: rgba(21, 86, 179, 0.08); box-shadow: 0 0 0 8px rgba(21, 86, 179, 0.08); border-radius: 6px; }
.glossary dt { font-weight: 700; color: var(--heading); font-size: 18px; font-family: var(--font-display); }
.glossary dt .abbr { font-weight: 400; color: var(--muted); font-size: 15px; font-family: var(--font-mono); }
.glossary dd { margin: 4px 0 0; }
.glossary dd .see { font-size: 14px; color: var(--muted); }

/* ---------- Related / sources / reviewed ---------- */

.related, .sources {
  margin-top: 44px;
  padding-top: 8px;
}
.related h2, .sources h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.related ul { list-style: none; margin-left: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; }
.related li { color: var(--faint); margin: 0; }
.related li a {
  display: block;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.related li a::after { content: " ›"; color: var(--blue-bright); }
.related li a:hover { border-color: rgba(21, 86, 179, 0.5); box-shadow: var(--glow); color: var(--heading); }
.related .soon, .soon { color: var(--faint); font-size: 14px; }
.sources ol { font-size: 15px; }
.sources li { margin-bottom: 8px; }
.last-reviewed { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-top: 28px; }

/* ---------- Interactive widgets ---------- */

.widget {
  background: linear-gradient(180deg, #ffffff, #ffffff);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px;
  margin: 26px 0;
  box-shadow: 0 18px 50px -32px rgba(21, 86, 179, 0.45);
}
.widget h3 { margin-top: 0; }
.widget .controls { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 12px 0; }
.widget label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; color: var(--heading); }
.widget select, .widget input[type="text"], .widget input[type="number"], .widget input[type="datetime-local"], .widget input[type="range"] {
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  max-width: 100%;
}
.widget input[type="range"] { padding: 0; accent-color: var(--cyan); background: transparent; border: none; }
.widget select:focus, .widget input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(21, 86, 179, 0.2); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cyan); }
.widget .result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.039);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--heading);
}
.widget button, .btn {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  background: var(--grad);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: 0 6px 20px -8px rgba(21, 86, 179, 0.7);
}
.widget button:hover, .btn:hover { filter: brightness(1.1); }
.widget button.secondary { background: rgba(0, 0, 0, 0.044); color: var(--heading); border: 1px solid var(--border-strong); box-shadow: none; }
.widget button.secondary:hover { background: rgba(21, 86, 179, 0.14); border-color: var(--cyan); }

/* Heat map grid */
.heatmap { border-collapse: separate; border-spacing: 4px; width: auto; margin: 0 auto; font-size: 13px; }
.heatmap th { background: none; text-align: center; font-weight: 600; color: var(--muted); padding: 4px; border: none; font-family: var(--font-body); font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.heatmap th.row-label { text-align: right; white-space: nowrap; }
.heatmap td {
  width: 64px;
  height: 52px;
  text-align: center;
  vertical-align: middle;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  border: none;
  padding: 2px;
  color: #0b2a4a;
}
.heatmap td.sel { outline: 2px solid #0b2a4a; outline-offset: -2px; box-shadow: 0 0 16px rgba(0, 0, 0, 0.12); }
.rating-low { background: #bfeccb; }
.rating-medium { background: #ffe39a; }
.rating-high { background: #ffc58f; }
.rating-extreme { background: #ffaaa5; }
.heatmap tbody tr:hover td.rating-low { background: #bfeccb; }
.heatmap tbody tr:hover td.rating-medium { background: #ffe39a; }
.heatmap tbody tr:hover td.rating-high { background: #ffc58f; }
.heatmap tbody tr:hover td.rating-extreme { background: #ffaaa5; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font-size: 14px; margin-top: 10px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.legend .l-low::before { background: #bfeccb; }
.legend .l-medium::before { background: #ffe39a; }
.legend .l-high::before { background: #ffc58f; }
.legend .l-extreme::before { background: #ffaaa5; }

/* Expandable details */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 12px 0;
}
details summary { cursor: pointer; font-weight: 600; color: var(--heading); }
details summary::marker { color: var(--cyan); }
details[open] { border-color: var(--border-strong); }
details[open] summary { margin-bottom: 10px; }


/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #c9d5e8;
  padding: 40px 22px 30px;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: 0;
}
.site-footer .inner { max-width: var(--max); margin: 0 auto; }
.site-footer a { color: #e3eaf5; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .footer-links { list-style: none; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .footer-links li { margin: 0; }
.site-footer .disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 16px;
  margin-bottom: 12px;
  max-width: 880px;
}
.site-footer .copyright { color: #c9d5e8; margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 834px) {
  .site-header .inner { flex-wrap: wrap; padding: 0 16px; }
  .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-top: -6px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .site-nav ul { padding-right: 28px; }
  .site-nav a { padding: 8px 0 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .summary { font-size: 19px; }
  .hero { padding: 36px 16px 40px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 18px; }
  .band { padding: 44px 16px; }
  .band > .container > h2:first-child, .band h2.band-title { font-size: 28px; }
  .container, .article { padding-left: 16px; padding-right: 16px; }
  .takeaways, .callout { padding-left: 20px; padding-right: 20px; }
  figure.diagram { padding: 14px; }
  .section-art { border-radius: var(--radius); margin-bottom: 28px; }
  .az-nav { position: static; }
  .heatmap td { width: 44px; height: 40px; font-size: 12px; }
  .heatmap { font-size: 11px; border-spacing: 3px; }
  .heatmap th.row-label { white-space: normal; max-width: 64px; line-height: 1.2; }
  .heatmap th { font-size: 10.5px; padding: 2px; }
  .heatmap td { width: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  a.card, .site-nav a, .button, .who-card, .course { transition: none; }
  a.card:hover, .who-card:hover { transform: none; }
}

/* ---------- Quiz (scripts/quiz.js) ---------- */

.quiz .q { border-top: 1px solid var(--border); padding: 14px 0 6px; }
.quiz .q:first-of-type { border-top: none; }
.quiz .q-text { font-weight: 600; margin-bottom: 8px; color: var(--heading); }
.quiz .q-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz .q-options button { background: rgba(0, 0, 0, 0.033); color: var(--text); border: 1px solid var(--border-strong); text-align: left; box-shadow: none; font-weight: 500; }
.quiz .q-options button:hover:not(:disabled) { background: var(--cyan-soft); border-color: var(--cyan); }
.quiz .q-options button:disabled { cursor: default; opacity: 0.6; }
.quiz .q-options button.is-correct { background: var(--green-soft); border-color: var(--green); color: var(--green); opacity: 1; box-shadow: 0 0 14px -4px rgba(52, 199, 89, 0.7); }
.quiz .q-options button.is-wrong { background: var(--red-soft); border-color: var(--red); color: var(--red); opacity: 1; }
.quiz .q-feedback { margin: 8px 0 4px; font-weight: 700; }
.quiz .q-feedback.good { color: var(--green); }
.quiz .q-feedback.bad { color: var(--red); }
.quiz .q-explain { font-size: 15px; color: var(--muted); }
.quiz .quiz-score { font-weight: 700; color: var(--cyan); margin-top: 10px; }

/* ---------- Topic quiz runner (scripts/quiz-runner.js) ---------- */

.quiz-runner h2 { margin-top: 0; }
.quiz-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.widget .quiz-topic { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: rgba(0, 0, 0, 0.028); color: var(--heading); border: 1px solid var(--border-strong); text-align: left; padding: 14px 16px; box-shadow: none; }
.widget .quiz-topic:hover { background: var(--cyan-soft); border-color: var(--cyan); box-shadow: var(--glow); filter: none; }
.quiz-topic span { font-weight: 400; font-size: 14px; color: var(--muted); }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.quiz-progress { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); font-weight: 600; }
.quiz-bar { height: 6px; background: rgba(0, 0, 0, 0.055); border-radius: 3px; margin: 10px 0 4px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: var(--grad); box-shadow: 0 0 10px rgba(21, 86, 179, 0.8); }
.quiz-runner .q-text:focus, .quiz-runner h2:focus { outline: none; }
.quiz-runner .q > button { margin-top: 10px; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Scenario simulations (scripts/scenario-runner.js) ---------- */

.scenario-setting { background: var(--cyan-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 12px 16px; }
.scenario-text { font-size: 17px; margin: 14px 0; color: var(--heading); }
.scenario-text:focus { outline: none; }
.scenario-choices { display: flex; flex-direction: column; gap: 8px; }
.widget .scenario-choice { background: rgba(0, 0, 0, 0.028); color: var(--text); border: 1px solid var(--border-strong); text-align: left; font-weight: 500; line-height: 1.5; box-shadow: none; }
.widget .scenario-choice:hover:not(:disabled) { background: var(--cyan-soft); border-color: var(--cyan); filter: none; }
.widget .scenario-choice:disabled { cursor: default; opacity: 0.5; }
.widget .scenario-choice.picked { opacity: 1; }
.scenario-choice.picked.q-best { border-color: var(--green); background: var(--green-soft); }
.scenario-choice.picked.q-ok { border-color: var(--amber); background: var(--amber-soft); }
.scenario-choice.picked.q-poor { border-color: var(--red); background: var(--red-soft); }
.scenario-feedback { margin: 12px 0; border-radius: var(--radius); }
.scenario-feedback.q-best, .scenario-feedback.q-ok, .scenario-feedback.q-poor { padding: 12px 16px; border-left: 3px solid; }
.scenario-feedback.q-best { background: var(--green-soft); border-color: var(--green); }
.scenario-feedback.q-ok { background: var(--amber-soft); border-color: var(--amber); }
.scenario-feedback.q-poor { background: var(--red-soft); border-color: var(--red); }
.scenario-best { margin: 8px 0 0; }
.scenario-log li { margin-bottom: 8px; }
.scenario-verdict { font-weight: 600; color: var(--cyan); }
.badge.q-best { background: var(--green-soft); color: var(--green); border-color: rgba(52, 199, 89, 0.4); }
.badge.q-ok { background: var(--amber-soft); color: var(--amber); border-color: rgba(255, 159, 10, 0.4); }
.badge.q-poor { background: var(--red-soft); color: var(--red); border-color: rgba(255, 59, 48, 0.4); }

/* ---------- Risk heat map tool (scripts/risk-map-tool.js) ---------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.risk-map-tool h2 { font-size: 20px; margin: 22px 0 8px; }
.risk-map-tool h2:first-child { margin-top: 0; }
.risk-map-tool .rm-wide { flex: 1 1 320px; }
.widget .rm-wide input { width: 100%; }
.rm-set, .rm-view { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 14px 4px; margin: 10px 0; }
.rm-set legend, .rm-view legend { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; padding: 0 6px; color: var(--cyan); }
.widget .rm-view label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-right: 14px; }
.rm-heatmap td.rm-above { box-shadow: inset 0 0 0 2px var(--red), 0 0 12px rgba(255, 59, 48, 0.45); }
.legend .l-above::before { background: transparent; box-shadow: inset 0 0 0 2px var(--red); }
.badge.rm-low { background: rgba(52, 199, 89, 0.14); color: #17692d; border-color: rgba(52, 199, 89, 0.45); }
.badge.rm-medium { background: rgba(255, 159, 10, 0.14); color: #8a4600; border-color: rgba(255, 159, 10, 0.45); }
.badge.rm-high { background: rgba(255, 120, 0, 0.12); color: #933b00; border-color: rgba(255, 120, 0, 0.5); }
.badge.rm-extreme { background: rgba(255, 59, 48, 0.1); color: #a8000f; border-color: rgba(255, 59, 48, 0.5); }
.rm-table .rm-row-above td { background: #fff5f5; }
.rm-table td { vertical-align: top; }
.widget .rm-actions button { padding: 6px 10px; font-size: 14px; margin: 2px 0; }
.rm-table .badge { margin-top: 0; }

/* ---------- Flashcards (scripts/flashcards.js) ---------- */

.widget .fc-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 240px; margin: 14px 0 8px; padding: 28px 22px; background: radial-gradient(ellipse at 50% 0%, rgba(21, 86, 179, 0.12), #ffffff 70%); color: var(--heading); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 20px 50px -28px rgba(21, 86, 179, 0.7); text-align: center; font-weight: 400; }
.widget .fc-card:hover { border-color: var(--cyan); filter: none; }
.widget .fc-card.flipped { background: radial-gradient(ellipse at 50% 0%, rgba(94, 92, 230, 0.22), #ffffff 70%); color: var(--heading); border-color: rgba(94, 92, 230, 0.6); }
.fc-side { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); opacity: 0.9; }
.fc-card.flipped .fc-side { color: var(--violet); }
.fc-text { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.45; max-width: 36em; }
.fc-card.flipped .fc-text { font-family: var(--font-body); font-size: 18px; font-weight: 500; }
.fc-hint { font-size: 13px; opacity: 0.6; }
.fc-more { min-height: 1.5em; margin: 4px 0; text-align: center; }
.fc-actions { justify-content: center; }
.fc-option { margin-top: 14px; }
.widget .fc-option label { display: inline; font-weight: 500; }

/* ---------- Learning pathways (scripts/pathways.js) ---------- */

.pathway-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.pathway-toc h2 { margin-top: 0; font-size: 20px; }
.pathway-toc ul { margin: 0; }
.pathway { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; scroll-margin-top: 80px; }
.pathway > h2 { margin-top: 0; }
.pathway-who { color: var(--muted); }
.pathway-stage { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cyan); border-top: 1px solid var(--border); padding-top: 14px; }
.pathway-steps { padding-left: 0; list-style: none; counter-reset: step; }
.pathway-steps li { position: relative; padding: 8px 0 8px 36px; border-bottom: 1px dashed var(--border); }
.pathway-steps li:last-child { border-bottom: none; }
.pathway-steps .pw-check { position: absolute; left: 4px; top: 12px; width: 20px; height: 20px; accent-color: var(--green); }
.pathway-steps li.pw-done > a { color: var(--green); text-decoration-color: var(--green); }
.pathway-steps .level { margin-left: 6px; font-size: 10.5px; vertical-align: 1px; }
.pw-bar { display: block; max-width: 320px; margin-top: 6px; }
.pw-bar span { background: linear-gradient(90deg, var(--green), var(--cyan)); }

/* ---------- Templates and downloads ---------- */

.download-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: linear-gradient(135deg, rgba(52, 199, 89, 0.08), #ffffff 55%); border: 1px solid rgba(52, 199, 89, 0.35); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.download-box .button { margin: 0; }
.download-box p { margin: 0; }
.file-meta { font-size: 14px; color: var(--muted); }
.sheet-list dt { font-weight: 700; color: var(--heading); margin-top: 10px; font-family: var(--font-display); }
.sheet-list dd { margin: 2px 0 0; }

/* ---------- News ---------- */

.news-kicker { margin: 0 0 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.news-kicker .badge { margin-top: 0; }
.badge.news-commentary { background: var(--violet-soft); color: var(--violet); border-color: rgba(94, 92, 230, 0.45); }
.badge.news-update { background: var(--blue-soft); color: var(--blue-bright); border-color: rgba(21, 86, 179, 0.45); }
.badge.news-roundup { background: var(--green-soft); color: var(--green); border-color: rgba(52, 199, 89, 0.45); }
.news-list { list-style: none; padding: 0; margin: 12px 0 20px; }
.news-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; transition: border-color .2s, box-shadow .2s; }
.news-item:hover { border-color: rgba(21, 86, 179, 0.4); box-shadow: var(--glow); }
.news-item h3 { margin: 4px 0 6px; font-size: 20px; }
.news-item h3 a { text-decoration: none; color: var(--heading); }
.news-item h3 a:hover { color: var(--cyan); }
.news-item p { margin: 0 0 6px; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.news-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #3f4a5e; background: rgba(0, 0, 0, 0.055); border: 1px solid rgba(0, 0, 0, 0.11); border-radius: 5px; padding: 1px 8px; }
.news-card .news-kicker { display: flex; margin-bottom: 4px; }
.news-card h3 { margin-top: 2px; }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filter button { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.028); color: var(--text); font-weight: 600; cursor: pointer; }
.news-filter button:hover { border-color: var(--cyan); }
.news-filter button[aria-pressed="true"] { background: var(--cyan-soft); color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px -2px rgba(21, 86, 179, 0.55); }

/* ---------- Regulatory changes tracker (scripts/tracker-filter.js) ---------- */

#tracker { font-size: 14px; min-width: 820px; }
#tracker td:first-child { min-width: 260px; }
#tracker .badge { margin-top: 0; white-space: nowrap; }
.tracker-status.st-0 { background: var(--green-soft); color: var(--green); border-color: rgba(52, 199, 89, 0.45); }
.tracker-status.st-1 { background: var(--blue-soft); color: var(--blue-bright); border-color: rgba(21, 86, 179, 0.45); }
.tracker-status.st-2 { background: var(--amber-soft); color: var(--amber); border-color: rgba(255, 159, 10, 0.45); }
.tracker-status.st-3 { background: var(--violet-soft); color: var(--violet); border-color: rgba(94, 92, 230, 0.45); }
.tracker-status.st-4 { background: rgba(0, 0, 0, 0.066); color: #3f4a5e; }

/* ---------- Search (scripts/search.js) ---------- */

.search-form { display: flex; gap: 8px; margin: 18px 0 10px; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: #ffffff; color: var(--text); box-shadow: inset 0 0 20px rgba(21, 86, 179, 0.04); }
.search-form input::placeholder { color: var(--faint); }
.search-form input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(21, 86, 179, 0.2), 0 0 24px -6px rgba(21, 86, 179, 0.6); }
.search-form button { font: inherit; font-weight: 700; padding: 10px 20px; border: none; border-radius: 12px; background: var(--grad); color: #ffffff; cursor: pointer; box-shadow: 0 8px 24px -10px rgba(21, 86, 179, 0.8); }
.search-form button:hover { filter: brightness(1.1); }
.search-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.search-suggest button { font: inherit; font-size: 14px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.028); color: var(--text); cursor: pointer; }
.search-suggest button:hover { background: var(--cyan-soft); border-color: var(--cyan); color: var(--heading); }
.search-status { font-weight: 600; color: var(--cyan); margin-top: 18px; }
.search-results { list-style: none; padding: 0; }
.search-hit { border-bottom: 1px solid var(--border); padding: 14px 0; }
.search-hit h3 { margin: 4px 0 4px; font-size: 19px; }
.search-hit p { margin: 0 0 4px; }
.search-meta { display: flex; gap: 8px; align-items: center; }
.search-meta .badge, .search-meta .level { margin-top: 0; }
.search-hit mark { background: rgba(21, 86, 179, 0.24); color: var(--heading); padding: 0 2px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(21, 86, 179, 0.35); }
.search-url { color: var(--faint); word-break: break-all; font-family: var(--font-mono); font-size: 12px; }
.site-nav a.nav-search { display: inline-flex; align-items: center; gap: 4px; }
.site-nav a.nav-search svg { width: 18px; height: 18px; }
@media (min-width: 641px) {
  .nav-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.article .search-results { padding-left: 0; margin-left: 0; }
.hero-search { max-width: 580px; margin: 24px auto 0; }

/* ---------- Start here and resource library ---------- */

.start-card .badge { margin-top: auto; }
.start-route { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; scroll-margin-top: 80px; }
.start-route > h2 { margin-top: 0; }
.start-steps { list-style: none; padding: 0; margin: 14px 0; }
.start-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed var(--border); }
.start-steps li:first-child { border-top: none; }
.start-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cyan-soft); border: 1px solid var(--cyan); color: var(--cyan); font-family: var(--font-mono); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 0 12px rgba(21, 86, 179, 0.4); }
.start-next { margin: 8px 0 0; }
.badge.res-download { background: var(--green-soft); color: var(--green); border-color: rgba(52, 199, 89, 0.45); }
.badge.res-interactive-tool { background: var(--blue-soft); color: var(--blue-bright); border-color: rgba(21, 86, 179, 0.45); }
.badge.res-self-check { background: var(--amber-soft); color: var(--amber); border-color: rgba(255, 159, 10, 0.45); }
.badge.res-learning { background: var(--violet-soft); color: var(--violet); border-color: rgba(94, 92, 230, 0.45); }
.badge.res-video { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(21, 86, 179, 0.45); }
.news-kicker .level { margin: 0; }

/* ---------- Regulator finder (scripts/regulator-finder.js) ---------- */

.reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; margin: 14px 0; }
.reg-card { border-radius: 10px; padding: 12px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.022); }
.reg-card .reg-name { font-weight: 700; color: var(--heading); font-size: 17px; font-family: var(--font-display); }
.reg-card .reg-level { font-family: var(--font-mono); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; margin: 2px 0 6px; }
.reg-card .reg-note { font-size: 14px; color: var(--muted); line-height: 1.45; }
.reg-card.lvl-main { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: 0 0 18px -6px rgba(21, 86, 179, 0.7); }
.reg-card.lvl-main .reg-level { color: var(--cyan); }
.reg-card.lvl-yes { border-color: rgba(21, 86, 179, 0.6); }
.reg-card.lvl-yes .reg-level { color: var(--blue-bright); }
.reg-card.lvl-depends { border-style: dashed; }
.reg-card.lvl-depends .reg-level { color: var(--amber); }
.reg-card.lvl-no { opacity: .55; }
.reg-card.lvl-no .reg-level { color: var(--faint); }

/* ---------- KRI dashboard (scripts/kri-dashboard.js) ---------- */

.kri-row { border-top: 1px solid var(--border); padding: 14px 0; }
.kri-row:first-child { border-top: none; }
.kri-head label { display: block; }
.kri-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.kri-body input { width: 120px; }
.kri-light { width: 22px; height: 22px; border-radius: 50%; background: #c5cddc; flex: none; border: 1px solid rgba(0, 0, 0, 0.11); }
.kri-light.green { background: #34c759; box-shadow: 0 0 14px #34c759; }
.kri-light.amber { background: #ff9f0a; box-shadow: 0 0 14px #ff9f0a; }
.kri-light.red { background: #ff3b30; box-shadow: 0 0 14px #ff3b30; }
.kri-status { margin: 0; flex: 1 1 260px; font-size: 15px; }

/* Heat map result colouring */
.widget .result.rating-low { background: rgba(52, 199, 89, 0.14); border-color: rgba(52, 199, 89, 0.45); box-shadow: none; }
.widget .result.rating-medium { background: rgba(255, 159, 10, 0.14); border-color: rgba(255, 159, 10, 0.45); box-shadow: none; }
.widget .result.rating-high { background: rgba(255, 120, 0, 0.16); border-color: rgba(255, 120, 0, 0.5); box-shadow: none; }
.widget .result.rating-extreme { background: rgba(255, 59, 48, 0.16); border-color: rgba(255, 59, 48, 0.5); box-shadow: none; }
.heatmap td[role="button"] { cursor: pointer; }
.heatmap caption { caption-side: top; text-align: center; }
.hm-examples { list-style: none; margin: 10px 0 0; }

/* ---------- Checklist (scripts/checklist.js) ---------- */

.checklist-widget label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; padding: 8px 0; border-top: 1px solid var(--border); margin: 0; cursor: pointer; color: var(--text); }
.checklist-widget label:first-of-type { border-top: none; }
.checklist-widget input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.checklist-widget .check-ref { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #3f4a5e; background: rgba(0, 0, 0, 0.055); border: 1px solid rgba(0, 0, 0, 0.11); border-radius: 5px; padding: 0 6px; margin-left: 2px; }
.checklist-section { scroll-margin-top: 80px; }
.checklist-widget .result.band-0 { background: rgba(52, 199, 89, 0.14); border-color: rgba(52, 199, 89, 0.45); }
.checklist-widget .result.band-1 { background: rgba(255, 159, 10, 0.14); border-color: rgba(255, 159, 10, 0.45); }
.checklist-widget .result.band-2 { background: rgba(255, 59, 48, 0.14); border-color: rgba(255, 59, 48, 0.45); }

/* ---------- Reporting clock (scripts/reporting-clock.js) ---------- */

.clock-list { list-style: none; margin: 14px 0 0; }
.clock-list li { display: grid; grid-template-columns: 210px 1fr; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--border); }
.clock-due { font-family: var(--font-mono); font-weight: 600; color: var(--red); grid-row: span 2; }
.clock-name { font-weight: 600; color: var(--heading); }
.clock-rule { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .clock-list li { grid-template-columns: 1fr; } .clock-due { grid-row: auto; } }

/* ---------- Tiering tool (scripts/supplier-tiering.js) ---------- */

.tier-q { border: none; border-top: 1px solid var(--border); padding: 10px 0; margin: 0; }
.tier-q legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; color: var(--heading); }
.tier-q label { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; font-weight: 400; }
.tier-q input { width: 18px; height: 18px; }
.tier-detail p { font-size: 15px; margin: 10px 0 0; }

/* ---------- Breach regime finder (scripts/breach-finder.js) ---------- */

#breach-finder .tier-q label { display: flex; margin: 6px 0; }
.bf-list { list-style: none; margin: 6px 0 8px; }
.bf-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 12px; border-left: 3px solid var(--red); background: var(--red-soft); margin-bottom: 6px; border-radius: 0 8px 8px 0; }
.bf-list li a { font-weight: 600; }
.bf-list li span { font-family: var(--font-mono); font-size: 12.5px; color: var(--red); font-weight: 600; }

/* ---------- Board skills matrix (scripts/skills-matrix.js) ---------- */

.skills-table { font-size: 14px; min-width: 620px; }
.skills-table th[scope="col"] { text-align: center; font-size: 11px; }
.skills-table td { text-align: center; }
.skills-table input { width: 18px; height: 18px; }
.skills-table td.cov { font-weight: 700; font-size: 13px; white-space: nowrap; }
.skills-table td.cov.gap { background: var(--red-soft); color: var(--red); }
.skills-table td.cov.thin { background: var(--amber-soft); color: var(--amber); }
.skills-table td.cov.good { background: var(--green-soft); color: var(--green); }

/* ---------- Accountability map (scripts/accountability-map.js) ---------- */

.am-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.am-person { border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px; font-size: 14px; font-weight: 600; color: var(--heading); background: rgba(0, 0, 0, 0.022); transition: all .15s; }
.am-person.on { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: 0 0 0 1px var(--cyan), 0 0 18px -4px rgba(21, 86, 179, 0.8); }

/* Keep form controls inside widgets on narrow screens */
.widget .controls > div { min-width: 0; max-width: 100%; }
.widget select { max-width: 100%; }

/* ---------- Culture radar (scripts/culture-radar.js) ---------- */

.cr-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.cr-row { display: grid; grid-template-columns: 1fr 90px 18px; gap: 8px; align-items: center; padding: 4px 0; }
.cr-row label { font-size: 14px; font-weight: 600; margin: 0; }
.cr-row input { width: 90px; }
.cr-row output { font-family: var(--font-mono); font-weight: 600; color: var(--cyan); }
.cr-chart svg { width: 100%; height: auto; }
@media (max-width: 700px) { .cr-layout { grid-template-columns: 1fr; } }


/* ---------- Print ---------- */

@media print {
  .site-header, .site-nav, .az-nav, .skip-link, .section-art, .hero-art, .course .band-art { display: none; }
  body { background: #fff; color: #111; }
  .card, .widget, .callout, .definition, .takeaways, figure.diagram, .table-wrap, .news-item { background: #fff; border: 1px solid #c5cddc; box-shadow: none; }
  .course { border: 1px solid #c5cddc; }
  a { color: #1556b3; }
  .site-footer { background: #fff; color: #333; }
}

/* Yearly review system */
.review-due { color: var(--muted); }
.badge.expert-badge { background: var(--green-soft); color: var(--green); border-color: rgba(52, 199, 89, 0.4); }
.badge.expert-badge::before { content: "\2713\00a0"; }
.page-meta .badge { margin-top: 0; }
a.badge.review-status, .badge.review-status-demo { color: #3f4a5e; background: rgba(0, 0, 0, 0.05); text-decoration: none; }
a.badge.review-status:hover { background: var(--cyan-soft); color: var(--blue-bright); }
.page-feedback { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.page-feedback a { text-decoration: underline; text-underline-offset: 2px; }
@media print { .page-feedback { display: none; } }

/* Operational risk Monte Carlo chart (quantitative operational risk page) */
.mc-chart svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.mc-chart .mc-bar { fill: var(--cyan); opacity: 0.85; }
.mc-chart .mc-bar:hover { opacity: 1; }
.mc-chart .mc-grid { stroke: rgba(0, 0, 0, 0.055); stroke-width: 1; }
.mc-chart .mc-base { stroke: rgba(0, 0, 0, 0.12); stroke-width: 1; }
.mc-chart .mc-axis { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.mc-chart .mc-label { fill: var(--heading); font-size: 12.5px; font-weight: 600; font-family: var(--font-body); }
.mc-chart .mc-mark { stroke-width: 2; }
.mc-chart .mc-mean { stroke: var(--heading); stroke-dasharray: 4 3; }
.mc-chart .mc-var { stroke: var(--violet); }
.mc-stats td:nth-child(2) { font-family: var(--font-mono); white-space: nowrap; }
@media print {
  .mc-chart .mc-bar { fill: #2563eb; }
  .mc-chart .mc-axis, .mc-chart .mc-label { fill: #0f2942; }
}

/* Tolerance level builder (CPS 230 tolerance levels page) */
#tol-builder td select { font-size: 14px; padding: 6px 6px; min-width: 7.5em; }
#tol-builder select.tol-l2 { border-color: rgba(255, 159, 10, 0.55); }
#tol-builder select.tol-l3 { border-color: rgba(255, 120, 0, 0.75); }
#tol-builder select.tol-l4 { border-color: rgba(255, 59, 48, 0.9); background: var(--red-soft); color: var(--red); font-weight: 700; }

/* Risk aggregation calculator */
.agg-bars { margin: 14px 0 4px; display: grid; gap: 10px; }
.agg-row { display: grid; grid-template-columns: minmax(0, 15em) 1fr auto; gap: 12px; align-items: center; font-size: 15px; }
.agg-label { color: var(--text); }
.agg-track { height: 14px; background: rgba(0, 0, 0, 0.033); border-radius: 4px; overflow: hidden; }
.agg-bar { display: block; height: 100%; background: rgba(21, 86, 179, 0.45); border-radius: 0 4px 4px 0; }
.agg-bar.agg-main { background: var(--cyan); }
.agg-val { font-family: var(--font-mono); color: var(--heading); min-width: 5em; text-align: right; }
@media (max-width: 560px) { .agg-row { grid-template-columns: 1fr auto; } .agg-track { grid-column: 1 / -1; grid-row: 2; } }

/* Keep status badges on one line inside tables */
td .badge { white-space: nowrap; }

/* AI use case tiering */
.ai-checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; padding: 8px 0; border-top: 1px solid var(--border); margin: 0; cursor: pointer; color: var(--text); }
.ai-checks label:first-of-type { border-top: none; }
.ai-checks input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.ai-controls { margin-top: 10px; }

/* Case study timelines */
.timeline { list-style: none; margin: 18px 0 24px; padding: 0 0 0 22px; border-left: 2px solid var(--border-strong); }
.timeline li { position: relative; margin: 0 0 16px; padding-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(21, 86, 179, 0.15); }
.timeline .when { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--cyan); letter-spacing: 0.04em; }
.case-prompt { margin: 12px 0; }
@media print { .timeline li::before { background: #2563eb; box-shadow: none; } .timeline .when { color: #0f2942; } }

/* Browse by level page */
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 18px 0; }
.level-card { background: var(--surface, #ffffff); border: 1px solid var(--border, rgba(0, 0, 0, 0.099)); border-radius: var(--radius); padding: 16px 18px; }
.level-card h3 { margin: 6px 0 8px; font-size: 17.5px; }
.level-card p { margin: 0 0 8px; }
.level-list { list-style: none; padding-left: 0; }
.level-list li { padding: 8px 0; border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.077)); }

/* APS 115 calculator bar */
.sma-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin: 10px 0 4px; border: 1px solid var(--border); }
.sma-bar span { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11.5px; color: #05080f; font-weight: 600; }
.sma-bar .b1 { background: #67e8f9; } .sma-bar .b2 { background: #60a5fa; } .sma-bar .b3 { background: #a78bfa; }

/* KRI control chart */
.kc-plot svg { width: 100%; height: auto; display: block; }
.kc-pt:focus { outline: none; }
.kc-pt:focus circle:last-child, .kc-pt:hover circle:last-child { stroke: #0b2a4a; }

/* Calibration exercise */
.cal-q { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.cal-q legend { padding: 0 6px; font-weight: 600; color: var(--heading); }
.cal-q label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 12px 4px 0; }
.widget .cal-q input[type="number"] { width: 110px; }
.cal-ans { display: block; margin-top: 4px; }

/* Critical operation dependency explorer */
.om-res { display: grid; gap: 6px; margin: 8px 0 14px; }
.om-steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.om-steps li { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; position: relative; padding-left: 38px; }
.om-steps .om-icon { position: absolute; left: 10px; top: 9px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #05080f; }
.om-ok .om-icon { background: var(--green); }
.om-degraded { border-color: rgba(255, 159, 10, 0.55) !important; } .om-degraded .om-icon { background: var(--amber); }
.om-failed { border-color: rgba(255, 59, 48, 0.6) !important; } .om-failed .om-icon { background: #f87171; }

/* Compliance monitoring planner */
#cm-planner td input[type="number"] { width: 72px; }
#cm-planner td select { min-width: 100px; }
.cm-plan ol { padding-left: 20px; }
.cm-plan li { margin-bottom: 6px; }

/* Going deeper (links to Advanced pages) */
.going-deeper { border: 1px solid rgba(255, 59, 48, 0.35); border-left: 3px solid var(--violet); border-radius: var(--radius); padding: 14px 18px; margin: 28px 0; background: var(--surface); }
.going-deeper h2 { font-size: 19.5px; margin: 0 0 8px; }
.going-deeper ul { margin: 0; padding-left: 20px; }
.going-deeper li { margin: 4px 0; }

/* ---------- Videos (built by _scripts/build_videos.py) ---------- */
.video-block { margin: 28px 0; }
.video-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .video-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 18px 0 30px; }
figure.video {
  margin: 0;
  background: linear-gradient(180deg, #ffffff, #ffffff);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: inset 0 0 40px rgba(21, 86, 179, 0.04), 0 18px 50px -30px #ffffff;
  min-width: 0;
}
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
figure.video figcaption { margin: 12px 4px 2px; font-size: 15px; color: var(--text); }
.video-meta { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--cyan); }
.video-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--heading); margin: 4px 0 4px; }
.video-desc { display: block; color: var(--muted); font-size: 14.5px; }
.video-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; margin-top: 8px; }
figure.video details.transcript { margin: 10px 0 0; padding: 8px 12px; font-size: 14.5px; }
.transcript ol { list-style: none; padding: 0; margin: 0; }
.transcript li { padding: 7px 0; border-top: 1px solid var(--border); }
.transcript time { font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan); margin-right: 6px; }
.transcript .on-screen { color: var(--muted); font-style: italic; }
.yt-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center; text-decoration: none; color: var(--heading);
  background: radial-gradient(ellipse at 30% 20%, rgba(21, 86, 179, 0.16), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(94, 92, 230, 0.18), transparent 60%), #f3f6fb;
}
.yt-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; transition: transform .2s, box-shadow .2s; }
.yt-icon svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { transform: scale(1.07); box-shadow: var(--glow); }
.yt-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 2.2vw, 20px); line-height: 1.3; max-width: 92%; }
.yt-source { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.video-libraries li { margin-bottom: 10px; }
@media print { .video-frame, .yt-facade { display: none; } }

/* ---------- University-level sections and research references (built by _scripts/build_references.py) ---------- */
.outcomes { position: relative; background: linear-gradient(135deg, rgba(94, 92, 230, 0.09), rgba(21, 86, 179, 0.06)); border: 1px solid rgba(94, 92, 230, 0.4); border-radius: var(--radius); padding: 18px 24px 8px 28px; margin: 26px 0; }
.outcomes::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--violet); box-shadow: 0 0 12px rgba(94, 92, 230, 0.7); }
.outcomes h2 { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin: 0 0 10px; }
.outcomes p { margin: 0 0 8px; }
.outcomes ol { margin: 0 0 10px; padding-left: 22px; }
.outcomes li { margin: 5px 0; }
a.cite { text-decoration: none; border-bottom: 1px dotted currentColor; white-space: nowrap; }
a.cite:hover, a.cite:focus-visible { border-bottom-style: solid; }
.ref-list { list-style: none; padding-left: 0; margin: 12px 0 18px; }
.ref-list li { padding-left: 2em; text-indent: -2em; margin: 0 0 12px; font-size: 15px; overflow-wrap: anywhere; }
.ref-list li > * { text-indent: 0; }
.ref-list li:target { background: var(--cyan-soft); border-radius: 6px; }
.ref-pr { display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--green); border: 1px solid rgba(52, 199, 89, 0.45); border-radius: 999px; padding: 0 7px; margin-left: 6px; white-space: nowrap; }
.ref-note { color: var(--text); }
.further-reading { padding-left: 20px; }
.further-reading li { margin-bottom: 12px; overflow-wrap: anywhere; }
.seminar-questions li { margin-bottom: 10px; }
.research-note { border-left: 3px solid var(--violet); padding: 4px 0 4px 14px; margin: 16px 0; color: var(--text); }
@media print { .outcomes h2, .references h2 { color: #0f2942; } .outcomes, .ref-pr { background: #fff; border-color: #ccd6e2; } }

/* Advanced study program modules */
.study-module { border-top: 1px solid var(--border, rgba(0, 0, 0, 0.12)); margin-top: 34px; padding-top: 8px; }
.study-module h2 .module-num { display: block; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }
.study-module details { margin: 8px 0 14px; }
.study-module summary { cursor: pointer; font-weight: 600; }

/* ---------- Motion and "On this page" bar (scripts/site.js) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
html { scroll-behavior: smooth; }
h2[id], h3[id] { scroll-margin-top: 110px; }
.local-nav {
  position: sticky;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  margin-bottom: -53px;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}
.local-nav.show { transform: none; opacity: 1; visibility: visible; transition: transform .35s ease, opacity .35s ease; }
.local-nav .inner { max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 24px; }
.local-nav .ln-title { flex: none; max-width: 30%; font-size: 18px; font-weight: 900; font-family: var(--font-display); letter-spacing: 0; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.local-nav .ln-title:hover { text-decoration: none; }
.local-nav ul { list-style: none; margin: 0 0 0 auto; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); padding: 0 16px; }
.local-nav ul::-webkit-scrollbar { display: none; }
.local-nav li { margin: 0; flex: none; }
.local-nav ul a { font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; padding: 6px 0; display: inline-block; }
.local-nav ul a:hover { color: var(--heading); text-decoration: none; }
.local-nav ul a.on { color: var(--blue); font-weight: 900; }
@media (max-width: 834px) {
  .local-nav .ln-title { display: none; }
  .local-nav ul { margin-left: 0; padding-left: 0; }
  .local-nav .inner { padding: 0 16px; height: 46px; }
  .local-nav { margin-bottom: -47px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .local-nav { transition: none; }
  html { scroll-behavior: auto; }
}
@media print { .local-nav { display: none; } }

/* ---------- Home: by the numbers ---------- */
.stats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; text-align: left; }
.stats li { margin: 0; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stats .num { display: block; font-family: var(--font-display); font-size: 52px; line-height: 1.05; font-weight: 900; letter-spacing: -0.01em; color: var(--navy); font-variant-numeric: tabular-nums; }
.stats .lbl { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
@media (max-width: 640px) { .stats .num { font-size: 42px; } }

/* ---------- Desktop ---------- */
.toc-side { display: none; }
@media (min-width: 1200px) {
  body { font-size: 17.5px; }
  :root { --max: 1200px; --max-text: 780px; }
  .site-header .inner, .local-nav .inner { max-width: 1240px; }
  .site-nav ul { gap: 0 26px; }
  .site-nav a { font-size: 15px; }
  .site-footer .inner { max-width: 1200px; }
  h1 { font-size: 48px; }
  .article.wide h1 { font-size: 52px; }
  .summary { font-size: 24px; }
  .article { padding-top: 44px; }
  .hero { padding-top: 72px; padding-bottom: 76px; }
  .hero h1 { font-size: 58px; }
  .hero p { font-size: 22px; }
  .band { padding: 72px 22px; }
  .band > .container > h2:first-child, .band h2.band-title { font-size: 38px; }
  .stats .num { font-size: 56px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
  /* articles: let graphics and diagrams step out of the text column (tables stay at text width) */
  .article:not(.wide) .section-art, .article:not(.wide) figure.diagram, .article:not(.wide) .widget, .article:not(.wide) .video-block {
    margin-left: -90px; margin-right: -90px;
  }
  .article:not(.wide) .section-art img { aspect-ratio: 16 / 7; }
}
@media (min-width: 1480px) {
  :root { --max: 1280px; }
  .local-nav { display: none; }
  .toc-side {
    display: block;
    position: fixed;
    top: 120px;
    left: calc(50% - 390px - 90px - 48px - 230px);
    width: 230px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
    font-size: 13px;
    line-height: 1.35;
  }
  .toc-side.show { opacity: 1; transform: none; pointer-events: auto; }
  .toc-side .toc-label { font-size: 12px; font-weight: 900; color: var(--heading); margin: 0 0 10px; }
  .toc-side ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
  .toc-side li { margin: 0; }
  .toc-side a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); }
  .toc-side a:hover { color: var(--heading); text-decoration: none; }
  .toc-side a.on { color: var(--heading); font-weight: 600; border-left-color: var(--heading); }
  .toc-side .toc-top { margin-top: 14px; font-size: 12px; }
  .toc-side .toc-top a { padding-left: 0; border: 0; color: var(--blue-bright); }
}
@media (prefers-reduced-motion: reduce) { .toc-side { transition: none; } }
@media print { .toc-side { display: none !important; } }

.section-art, .section-art.dark { background: #eaf1fc; }

/* ---------- GRC data model map (scripts/grc-links.js) ---------- */
.grc-map-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.grc-map { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.grc-map-svg { display: block; width: 100%; min-width: 600px; height: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.grc-node { cursor: pointer; transition: opacity .2s; }
.grc-node:focus { outline: none; }
.grc-node:focus rect, .grc-node[aria-pressed="true"] rect { stroke: #ff9f0a; stroke-width: 3; }
.grc-detail { background: var(--surface); border-radius: var(--radius); padding: 18px 22px 8px; }
.grc-detail h3 { margin-top: 0; }
.grc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 8px 0 0; padding: 0; list-style: none; }
.grc-legend li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.grc-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1.4px solid transparent; }
@media (min-width: 1200px) { .article:not(.wide) .grc-map-wrap { margin-left: -90px; margin-right: -90px; } }

/* ---------- GRC model builder (scripts/grc-builder.js) ---------- */
/* Tool page: a wide layout with reading-width text */
.gb-page > .summary, .gb-page > .takeaways, .gb-page > h2, .gb-page > p, .gb-page > ul, .gb-page > ol, .gb-page > .related, .gb-page > .sources { max-width: 820px; }
.gb-page .section-art img { aspect-ratio: 16 / 7; object-fit: cover; }
/* the wizard */
.grc-builder [hidden], .grc-out [hidden] { display: none !important; }
.grc-builder.widget { padding: 30px 30px 0; border-radius: var(--radius-lg); scroll-margin-top: 64px; margin-top: 34px; }
.grc-builder .gb-h { font-size: 34px; margin: 0 0 6px; }
.gb-lead { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.gb-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 22px; }
.gb-presets ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.gb-presets li { margin: 0; }
.gb-pre-l { font-size: 14px; font-weight: 600; color: var(--heading); }
.grc-builder .gb-pre { background: var(--surface); color: var(--heading); border: 1px solid var(--border-strong); box-shadow: none; border-radius: 980px; font-size: 14px; font-weight: 600; padding: 7px 14px; }
.grc-builder .gb-pre:hover { background: var(--cyan-soft); border-color: var(--cyan); filter: none; }
.grc-builder .gb-linkbtn, .grc-out .gb-linkbtn { background: none; border: 0; box-shadow: none; color: var(--blue-bright); font-size: 14px; font-weight: 600; padding: 6px 4px; margin-left: auto; }
.grc-builder .gb-linkbtn:hover { text-decoration: underline; filter: none; }
.gb-steps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.gb-steps li { margin: 0; position: relative; }
.gb-steps li + li::before { content: ""; position: absolute; top: 19px; left: -50%; right: 50%; margin: 0 22px; height: 2px; background: var(--border-strong); }
.grc-builder .gb-stepbtn { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; background: none; box-shadow: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 600; padding: 4px 2px; }
.grc-builder .gb-stepbtn:hover { filter: none; color: var(--heading); }
.gb-stepn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--border-strong); color: var(--muted); font-size: 14px; font-weight: 700; }
.gb-stepbtn.done .gb-stepn { border-color: var(--blue); color: var(--blue-bright); }
.gb-stepbtn.on .gb-stepn { background: var(--blue); border-color: var(--blue); color: #fff; }
.gb-stepbtn.on { color: var(--heading); }
.gb-stepl { text-align: center; line-height: 1.25; }
.gb-sp { padding: 8px 0 6px; }
.gb-sp > h3 { font-size: 26px; margin: 18px 0 6px; }
.gb-sp > h3:focus { outline: none; }
.gb-sp > h3:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.gb-fs { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.gb-fs legend, .gb-fs > .gb-legend { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--heading); padding: 0; margin-bottom: 6px; }
.gb-help, .gb-mode { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
.gb-mode { color: var(--heading); font-weight: 500; }
.gb-sum { margin-top: 10px; font-weight: 600; color: var(--heading); }
.gb-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.gb-field1 label { display: block; }
.grc-builder input[type="text"] { width: 100%; max-width: 520px; }
.gb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 4px 26px; }
.gb-grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.gb-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.gb-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--border); }
.gb-opt input { margin: 4px 0 0; width: 17px; height: 17px; }
.widget .gb-opt label { grid-column: 2; margin: 0; font-size: 15.5px; line-height: 1.35; cursor: pointer; }
.gb-opt .gb-note { grid-column: 2; }
.gb-note { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.gb-why { color: var(--blue-bright); font-weight: 500; }
.gb-reg { font-weight: 600; color: var(--heading); }
.gb-tag { display: inline-block; vertical-align: 2px; margin-left: 8px; font-size: 11.5px; font-weight: 600; line-height: 1.6; color: #0f4a9c; background: rgba(21, 86, 179, 0.1); border-radius: 980px; padding: 0 8px; letter-spacing: 0; }
.gb-help .gb-tag { margin-left: 0; }
.gb-tag-alt { color: var(--violet); background: var(--violet-soft); }
.gb-ents { gap: 0 26px; }
.gb-ent { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.widget .gb-ent label { flex: 1; margin: 0; }
.gb-t { display: block; font-size: 15.5px; font-weight: 600; color: var(--heading); }
.widget .gb-ent input[type="number"] { width: 78px; flex: none; text-align: center; }
.gb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.widget .gb-card { display: block; position: relative; margin: 0; padding: 14px 14px 12px 42px; border: 1px solid var(--border-strong); border-radius: 14px; cursor: pointer; font-weight: 400; }
.gb-card input { position: absolute; left: 14px; top: 16px; width: 17px; height: 17px; margin: 0; }
.gb-card:has(input:checked) { border-color: var(--blue); background: var(--cyan-soft); box-shadow: 0 0 0 1px var(--blue) inset; }
.gb-card:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
#gb-sfi-wrap .gb-opt { border-bottom: 0; background: var(--surface); border-radius: 14px; padding: 12px 14px; }
.gb-riskrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; border-bottom: 1px solid var(--border); }
.gb-riskrow .gb-opt { border-bottom: 0; }
.gb-matopt { display: flex; align-items: center; gap: 6px; padding: 10px 2px 0; white-space: nowrap; }
.widget .gb-matopt label { margin: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.gb-matopt input { width: 17px; height: 17px; margin: 0; }
.gb-matopt input:disabled + label { color: var(--faint); cursor: default; }
.gb-mats { display: grid; gap: 0; }
.gb-matrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px 24px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.widget .gb-matrow label { margin: 0; }
.widget .gb-matrow select { width: 100%; }
.gb-cform { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; align-items: end; background: var(--surface); border-radius: 14px; padding: 14px 16px; margin: 4px 0 10px; }
.gb-cform p { margin: 0; }
.gb-cform .gb-cwide { grid-column: 1 / -1; }
.gb-cform input[type="text"], .widget .gb-cform select { width: 100%; max-width: none; }
.gb-clist { list-style: none; margin: 0 0 14px; padding: 0; }
.gb-clist li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.gb-clist li > span { min-width: 0; overflow-wrap: anywhere; }
.gb-navbar { position: sticky; bottom: 0; z-index: 6; margin: 22px -30px 0; padding: 14px 30px 12px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.gb-navbtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grc-builder .gb-build { margin-left: auto; padding: 10px 20px; border-radius: 980px; font-size: 16px; }
.grc-builder .gb-navbtns .secondary { border-radius: 980px; }
.gb-live { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.gb-status { font-size: 14.5px; font-weight: 600; color: var(--green); margin: 0; min-height: 0; }
.gb-status:not(:empty) { margin: 10px 0 18px; }
.grc-builder button.gb-small, .grc-out button.gb-small { font-size: 13.5px; padding: 6px 12px; }
/* the output */
.grc-out { margin-top: 56px; }
.gb-head { margin-bottom: 10px; }
.gb-eyebrow { font-size: 17px; font-weight: 600; color: #b64400; margin: 0 0 2px; }
.grc-out #gb-title { font-size: 48px; margin: 0 0 6px; letter-spacing: -0.025em; }
.grc-out #gb-title:focus { outline: none; }
.gb-sub { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.gb-tabs { position: sticky; top: var(--gb-top, 0px); z-index: 20; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 18px 0 0; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--border); }
.gb-tabs::-webkit-scrollbar { display: none; }
.gb-tabs button { flex: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 13px 12px 11px; cursor: pointer; white-space: nowrap; }
.gb-tabs button:hover { color: var(--heading); }
.gb-tabs button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--heading); }
.gb-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; border-radius: 6px; }
.gb-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 980px; background: #ff9f0a; color: #0b2a4a; font-size: 12px; line-height: 20px; text-align: center; }
.gb-panel { padding: 8px 0 10px; }
.gb-panel:focus { outline: none; }
.gb-panel:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 8px; }
.grc-out .gb-ph { font-size: 32px; margin: 26px 0 14px; letter-spacing: -0.02em; }
.grc-out h4 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.grc-out h5 { font-size: 16.5px; margin: 0 0 4px; color: var(--heading); font-family: var(--font-display); }
.grc-out button { font: inherit; cursor: pointer; }
.grc-out .secondary { font-size: 14.5px; font-weight: 600; color: var(--heading); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 980px; padding: 8px 16px; }
.grc-out .secondary:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.gb-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 12px; margin: 6px 0 8px; }
.grc-out .gb-stat { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--surface); border: 0; border-radius: var(--radius); padding: 16px 18px 15px; color: var(--heading); transition: background .2s; }
.grc-out .gb-stat:hover { background: #ebebf0; }
.gb-n { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.gb-l { font-size: 14.5px; font-weight: 600; margin-top: 4px; }
.gb-s { font-size: 13px; color: var(--muted); }
.gb-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 900px) { .gb-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .gb-cols-radar { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); align-items: start; } }
.gb-kv th { width: 38%; }
.gb-callout { background: linear-gradient(180deg, #f2f7ff, #f3f6fb); border-radius: var(--radius); padding: 20px 24px 6px; margin: 24px 0; }
.gb-om { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--heading); margin-bottom: 8px; letter-spacing: -0.015em; }
.gb-more { font-size: 14.5px; margin: 18px 0 0; }
.gb-thread { list-style: none; margin: 18px 0 8px 9px; padding: 0; border-left: 2px solid var(--blue); }
.gb-thread li { position: relative; margin: 0; padding: 0 0 16px 24px; }
.gb-thread li:last-child { padding-bottom: 2px; }
.gb-thread li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.gb-thread li:last-child::before { background: var(--blue); }
.gb-tk { display: inline-block; font-size: 12.5px; font-weight: 700; color: #0f4a9c; margin-right: 8px; }
.gb-tid { display: inline-block; font-family: var(--font-code); font-size: 12.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; color: var(--heading); }
.gb-tt { display: block; margin-top: 3px; font-size: 15.5px; }
.gb-wins li { margin-bottom: 6px; }
.gb-checksum { background: var(--surface); border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 30px; }
.gb-pyr { list-style: none; margin: 22px 0 26px; padding: 0; }
.gb-pyr li { width: var(--w, 100%); max-width: 100%; margin: 0 auto 6px; display: flex; align-items: baseline; gap: 12px; border-radius: 12px; padding: 10px 18px; background: #e8f0fe; color: #0f2942; }
.gb-pyr li:nth-child(1) { background: #0f2942; color: #fff; }
.gb-pyr li:nth-child(2) { background: #1b3a5c; color: #fff; }
.gb-pyr li:nth-child(3) { background: #2563eb; color: #fff; }
.gb-pyr li:nth-child(5) { background: var(--surface); }
.gb-pyr-n { font-family: var(--font-display); font-size: 24px; font-weight: 700; min-width: 2.2ch; text-align: right; }
.gb-pyr-t { font-size: 15px; font-weight: 600; }
.gb-pyr-t small { display: block; font-size: 13px; font-weight: 400; }
.gb-note a { text-decoration: underline; }
@media (max-width: 640px) { .gb-pyr li { width: 100%; } }
.gb-code { font-family: var(--font-code); font-size: 12.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--heading); }
.gb-id { display: inline-block; font-family: var(--font-code); font-size: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; margin: 1px 0; white-space: nowrap; color: var(--heading); }
.gb-none, .gb-empty { color: var(--muted); font-style: italic; }
.gb-mat-badge { display: inline-block; font-size: 12px; font-weight: 600; color: #0f4a9c; background: rgba(21, 86, 179, 0.1); border-radius: 980px; padding: 1px 9px; white-space: nowrap; }
.gb-sumn { font-size: 13.5px; font-weight: 400; color: var(--muted); margin-left: 6px; }
details.gb-l1, details.gb-reg { background: #fff; border-color: var(--border-strong); padding: 14px 18px; }
details.gb-l1 > summary, details.gb-reg > summary { font-size: 16.5px; }
.gb-l2 { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.gb-dl { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 8px 16px; font-size: 14.5px; margin: 10px 0 4px; }
.gb-dl dt { font-weight: 600; color: var(--heading); }
.gb-dl dd { margin: 0; }
@media (max-width: 640px) { .gb-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .gb-dl dd { margin-bottom: 8px; } }
.gb-plain { list-style: none; margin: 0; padding: 0; }
.gb-plain li { margin: 0 0 5px; }
.gb-grouph { margin: 26px 0 6px !important; color: var(--muted) !important; font-size: 14px !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.gb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-chip { display: inline-block; font-size: 13.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); border-radius: 980px; padding: 3px 12px; color: var(--heading); }
.gb-warn-t { color: var(--amber); font-weight: 600; font-size: 13px; }
.gb-fig { margin: 18px 0 10px; }
.gb-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.gb-scroll svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.gb-radar { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.gb-matt td, .gb-matt th { font-size: 14px; }
.gb-meter { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0; }
.gb-meter-t { font-size: 15.5px; margin-bottom: 10px; }
.gb-meter-t strong { font-size: 22px; }
.gb-meter-bar { height: 10px; border-radius: 980px; background: #dcdce2; overflow: hidden; }
.gb-meter-bar span { display: block; height: 100%; background: linear-gradient(90deg, #1556b3, #4745c2); border-radius: 980px; }
.gb-heatmap th, .gb-heatmap td { padding: 7px 8px; font-size: 13.5px; text-align: center; white-space: nowrap; }
.gb-heatmap th:first-child, .gb-heatmap tbody th { text-align: left; }
.gb-heatmap abbr { text-decoration: none; }
.gb-heat { display: inline-block; min-width: 28px; border-radius: 6px; padding: 3px 6px; font-weight: 700; }
.gb-heat[data-n="1"] { background: #e8f0fe; color: #0f2942; }
.gb-heat[data-n="2"] { background: #bcd3fb; color: #0f2942; }
.gb-heat[data-n="3"] { background: #7ea6f4; color: #0f2942; }
.gb-heat[data-n="4"] { background: #1b3a5c; color: #fff; }
.gb-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); margin: 6px 0 14px; }
.gb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gb-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.gb-sw-board { background: #1b3a5c; } .gb-sw-bc { background: #e8f0fe; border: 1px solid #9fb4d6; } .gb-sw-exec { background: #f3f6fb; border: 1px solid #c5cddc; } .gb-sw-mgmt { background: #fff; border: 1px solid #9fb4d6; }
.gb-tree, .gb-tree ul { list-style: none; margin: 0; padding: 0; }
.gb-tree ul { margin-left: 16px; padding-left: 20px; border-left: 2px solid #c5cddc; }
.gb-tree li { position: relative; margin: 10px 0 0; }
.gb-tree ul > li::before { content: ""; position: absolute; left: -20px; top: 22px; width: 18px; border-top: 2px solid #c5cddc; }
.gb-tree ul > li:last-child::after { content: ""; position: absolute; left: -22px; top: 24px; bottom: 0; width: 2px; background: #fff; }
.gb-node { display: inline-block; max-width: 680px; border-radius: 12px; padding: 9px 14px 10px; background: var(--surface); }
.gb-node strong { display: block; font-size: 15.5px; }
.gb-node span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.gb-node em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: #0f4a9c; margin-top: 3px; }
.gb-node-board { background: #1b3a5c; }
.gb-node-board strong { color: #fff; }
.gb-node-board span { color: rgba(255, 255, 255, 0.86); }
.gb-node-bc { background: #e8f0fe; }
.gb-node-bc span { color: #3a4a5e; }
.gb-node-mgmt { background: #fff; border: 1px solid #c5d3ea; }
.gb-raci td, .gb-raci th { font-size: 14px; }
.gb-entmx td { text-align: center; }
.gb-entmx td:last-child { text-align: left; font-size: 13.5px; color: var(--muted); }
.gb-dot { color: var(--blue); font-size: 13px; }
.gb-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; margin-top: 14px; }
.gb-field { background: var(--surface); border-radius: 14px; padding: 14px 16px 6px; }
.gb-field p { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.gb-field ul { font-size: 13.5px; margin: 0 0 8px 18px; }
.gb-field li { margin-bottom: 2px; }
details.gb-rels ul { columns: 2 320px; font-size: 14px; margin: 6px 0 4px 18px; }
details.gb-rels li { break-inside: avoid; }
.gb-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.gb-cal-g { background: var(--surface); border-radius: 14px; padding: 16px 18px 8px; }
.gb-cal-g h5 { margin-bottom: 8px; }
.gb-cal-g ul { font-size: 14.5px; margin-left: 18px; }
.gb-src { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 980px; padding: 0 7px; margin-left: 4px; }
.gb-checks { list-style: none; margin: 0; padding: 0; }
.gb-checks li { position: relative; margin: 0 0 8px; padding: 12px 16px 12px 46px; border-radius: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; }
.gb-checks li > span { flex: 1 1 320px; }
.gb-checks li::before { position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.gb-ck-warn { background: #fff4e5; } .gb-ck-warn::before { content: "!"; background: #b64400; }
.gb-ck-info { background: #eef4ff; } .gb-ck-info::before { content: "i"; background: #1556b3; }
.gb-ck-ok { background: #edf8f0; } .gb-ck-ok::before { content: "\2713"; background: #17692d; }
.gb-xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; margin: 18px 0; }
.gb-x { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px 20px 6px; }
.gb-x > button { background: var(--grad); color: #fff; border: 0; border-radius: 980px; padding: 10px 18px; font-size: 15px; font-weight: 600; }
.gb-x > button:hover { filter: brightness(1.08); }
.gb-x p { font-size: 14px; color: var(--muted); margin: 10px 0 12px; }
.gb-linkbox label { display: block; font-size: 13px; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.gb-linkbox input { width: 100%; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 10px; }
.gb-disclaimer { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 44px; max-width: 820px; }
@media (max-width: 700px) {
  .grc-builder.widget { padding: 22px 18px 0; }
  .gb-navbar { margin: 18px -18px 0; padding: 12px 18px 10px; }
  .gb-live { display: none; }
  .gb-steps li + li::before { margin: 0 18px; }
  .gb-stepl { font-size: 11.5px; }
  .gb-matrow { grid-template-columns: minmax(0, 1fr); }
  .gb-riskrow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gb-matopt { padding: 0 0 10px 30px; }
  .grc-builder .gb-build { margin-left: 0; }
  .grc-out #gb-title { font-size: 36px; }
  .grc-builder .gb-h { font-size: 28px; }
  .gb-n { font-size: 30px; }
  .grc-out .table-wrap table:not(.gb-kv) { min-width: 640px; }
  .grc-out .table-wrap table.gb-heatmap { min-width: 0; }
  .grc-out th, .grc-out td { padding: 9px 10px; font-size: 14px; }
}
@media print {
  .grc-builder, .gb-tabs, .gb-xgrid, .gb-inline, .gb-checksum button, .gb-checks button, .local-nav, .toc-side { display: none !important; }
  .grc-out .gb-panel[hidden] { display: block !important; }
  .gb-panel + .gb-panel { break-before: page; }
  .grc-out { margin-top: 0; }
  .gb-scroll { overflow: visible; border: 0; padding: 0; }
  .gb-scroll svg { min-width: 0; }
  .gb-tree li, .gb-checks li, .gb-field, .gb-cal-g, .gb-thread li, tr { break-inside: avoid; }
  .grc-out .gb-stat { background: #fff; border: 1px solid #c5cddc; }
  body.gb-printing main > :not(#grc-out), body.gb-printing .site-footer { display: none !important; }
}

/* ---------- Playbooks (scripts/playbook.js) ---------- */
.pb-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 26px 0; }
.pb-glance > div { background: var(--surface); border-radius: var(--radius); padding: 18px 20px 6px; }
.pb-glance .pb-gh { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.01em; }
.pb-glance ul { font-size: 15px; margin-left: 18px; }
.pb-progress { padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: center; }
.pb-progress p { margin: 0; }
.pb-progress .small { grid-column: 1 / -1; }
.pb-bar { height: 8px; border-radius: 980px; background: #dde3ee; overflow: hidden; }
.pb-bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 980px; transition: width .3s; }
.pb-steps { list-style: none; margin: 18px 0 30px; padding: 0; }
.pb-step { position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px 22px 6px; margin: 0 0 14px; background: #fff; transition: background .2s, border-color .2s; }
.pb-step.done { background: #f3faf5; border-color: rgba(23, 105, 45, 0.35); }
.pb-step h3 { margin: 0 0 8px; padding-right: 90px; font-size: 20px; }
.pb-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; margin-right: 6px; vertical-align: 2px; }
.pb-step.done .pb-n { background: var(--green); }
.pb-check { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.pb-check input { width: 18px; height: 18px; }
.pb-check label { cursor: pointer; }
.pb-step ul { font-size: 16px; }
.pb-out { font-size: 15px; color: var(--muted); }
.pb-more { display: block; margin-top: 4px; }
.pb-tools .card p { margin: 0; color: var(--blue-bright); font-weight: 600; }
@media (max-width: 640px) { .pb-progress { grid-template-columns: 1fr; } .pb-step { padding: 16px 16px 4px; } .pb-step h3 { font-size: 18px; } }
@media print { .pb-progress, .pb-tools, .playbook .section-art { display: none !important; } .pb-step { break-inside: avoid; border-color: #999; } .pb-check label::after { content: " \2610"; } }

/* ---------- Obligations library (scripts/obligations.js) ---------- */
.ob-page > .summary, .ob-page > .takeaways, .ob-page > p, .ob-page > ul { max-width: 860px; }
.ob-tools { padding: 16px 20px; }
.ob-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1.2fr)); gap: 4px 16px; align-items: end; }
.ob-filters p { margin: 0 0 6px; }
.ob-filters input[type="search"], .ob-filters select { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; }
.ob-filters .ob-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.ob-filters .ob-check label { display: inline; font-weight: 500; margin: 0; }
.ob-count { font-weight: 600; margin: 6px 0 4px; }
.ob-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.ob-jump p { font-size: 14px; line-height: 2; }
.ob-jump a { display: inline-block; margin-right: 10px; }
.ob-reg { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 18px; scroll-margin-top: 70px; }
.ob-reg h3 { margin-top: 18px; }
.ob-meta { font-size: 14.5px; color: var(--muted); margin-bottom: 8px; }
.ob-meta .gb-chip { margin-right: 6px; }
.ob-clocks { background: #fff4e5; border-radius: 14px; padding: 12px 16px 2px; font-size: 14.5px; }
.ob-clocks p { margin-bottom: 4px; }
.ob-clocks ul { margin-left: 18px; }
.ob-table th, .ob-table td { font-size: 14px; }
.ob-detail { margin-top: 8px; }
.ob-detail summary { cursor: pointer; color: var(--blue-bright); font-weight: 600; font-size: 13.5px; }
.ob-detail ol { margin: 6px 0 2px 18px; }
.ob-detail li { margin-bottom: 5px; }
.ob-cite { display: inline-block; font-size: 12.5px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.ob-checked { font-size: 13.5px; }
.ob-table th[scope="row"] { white-space: nowrap; }
@media (max-width: 760px) { .ob-filters { grid-template-columns: 1fr; } .ob-tools { position: static; } .ob-table { min-width: 680px; } }

/* ---------- Course bar and My learning ---------- */
.course-nav { background: var(--surface); border-radius: var(--radius); padding: 16px 20px 6px; margin: 40px 0 10px; }
.cn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.cn-note { font-size: 14px; color: var(--muted); }
.cn-mark { font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; border-radius: 980px; padding: 7px 16px; border: 1px solid var(--blue); background: #fff; color: var(--blue-bright); }
.cn-mark:hover { background: var(--cyan-soft); }
.cn-mark.on { background: var(--green); border-color: var(--green); color: #fff; }
.course-nav ul { font-size: 14.5px; margin-left: 18px; }
.course-nav li { margin-bottom: 4px; }
@media print { .course-nav { display: none; } }
.ml-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; margin: 20px 0; }
.ml-summary div { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; }
.ml-summary strong { display: block; font-size: 34px; font-family: var(--font-display); line-height: 1.1; }
.ml-path { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 16px 20px 8px; margin: 12px 0; }
.ml-path h3 { margin: 0 0 6px; font-size: 19px; }
.ml-path .pb-bar { margin: 6px 0 10px; }
.ml-path details { background: none; border: 0; padding: 0; margin: 0 0 8px; }
.ml-path ol { font-size: 14.5px; }
.ml-path li.done a { color: var(--green); }
.ml-path li.done::marker { content: "\2713  "; color: var(--green); }
.ml-record { display: none; }
@media print {
  body.ml-printing main > :not(.ml-record), body.ml-printing .site-footer { display: none !important; }
  body.ml-printing .ml-record { display: block; }
  .ml-record { font-size: 14px; }
  .ml-record h2 { font-size: 26px; }
}

/* ---------- Site roadmap (/about/roadmap.html) ---------- */
.rm-overview { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.rm-big { font-size: 21px; margin-bottom: 12px; }
.rm-bar { height: 10px; }
.rm-list { list-style: none; margin: 18px 0 28px; padding: 0; position: relative; }
.rm-list::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: var(--border-strong); }
.rm-stage { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; margin: 0 0 18px; }
.rm-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--border-strong); color: var(--muted); font-weight: 700; font-size: 15px; }
.rm-done .rm-dot { background: var(--green); border-color: var(--green); color: #fff; }
.rm-now .rm-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(21, 86, 179, 0.15); }
.rm-body { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px 4px; background: #fff; }
.rm-now .rm-body { border-color: var(--blue); box-shadow: 0 10px 30px -18px rgba(21, 86, 179, 0.6); }
.rm-body h3 { margin: 4px 0 6px; font-size: 19px; }
.rm-body p { font-size: 15.5px; }
.rm-status { font-size: 13px !important; color: var(--muted); margin-bottom: 0; }
.rm-pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 980px; padding: 1px 9px; margin-right: 6px; }
.rm-pill-done { background: var(--green-soft); color: var(--green); }
.rm-pill-now { background: rgba(21, 86, 179, 0.12); color: #0f4a9c; }
.rm-pill-next { background: var(--amber-soft); color: var(--amber); }
.rm-pill-later { background: rgba(0, 0, 0, 0.05); color: #3f4a5e; }
.rm-banner { max-width: 820px; margin: 0 auto; padding: 10px 18px; font-size: 15px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 980px; }

/* ---------- Topics hub (/topics/) ---------- */
.topics-page > .summary, .topics-start { max-width: 820px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 18px; margin: 24px 0 40px; }
.topic-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.topic-card.dark { background: #000; color: #f3f6fb; }
.topic-card img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.tc-body { padding: 4px 28px 22px; }
.topic-card h2 { font-size: 30px; margin: 0 0 6px; }
.topic-card h2 a { color: inherit; }
.topic-card.dark h2, .topic-card.dark strong { color: #f3f6fb; }
.tc-sum { color: var(--muted); font-size: 16px; }
.topic-card.dark .tc-sum, .topic-card.dark .tc-count { color: #c7c7cc; }
.tc-count { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.tc-pop { list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; }
.tc-pop li { margin: 0; padding: 6px 0; border-top: 1px solid var(--border); }
.topic-card.dark .tc-pop li { border-color: #2c2c2e; }
.topic-card.dark .tc-pop a { color: #2997ff; }
.topics-h { font-size: 32px; }

/* Footer site map in columns */
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.footer-cols .footer-h { font-size: 13px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: #ffffff; margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0 0 7px; font-size: 14px; }
.footer-cols a { color: #d6e0f0; }
.footer-cols a:hover { color: #ffffff; }
@media (max-width: 640px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Home: "where would you like to start" router, what's new strip, topic links */
.band.who { padding-top: 48px; padding-bottom: 56px; }
.band.who .rm-banner { margin-bottom: 34px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-top: 22px; }
.who-card { display: flex; flex-direction: column; gap: 6px; background: #ffffff; border: 2px solid var(--border); border-radius: var(--radius); padding: 20px 22px 20px; color: var(--text); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.who-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--glow); }
.who-k { font-size: 12.5px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: #8a4600; }
.who-card strong { font-size: 22px; font-family: var(--font-display); font-weight: 900; letter-spacing: 0; color: var(--heading); }
.who-card span:last-child { font-size: 15px; color: var(--muted); }
.whats-new-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 28px; padding: 14px 20px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14.5px; }
.whats-new-strip .wn-label { margin: 0; font-weight: 700; }
.whats-new-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.whats-new-strip li { margin: 0; }
.wn-date { color: var(--muted); margin-right: 6px; }
.topic-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin-top: 18px; }
.topic-links a { padding: 9px 18px; border-radius: 980px; background: #ffffff; border: 2px solid var(--border); color: var(--heading); font-weight: 700; font-size: 15px; }
.topic-links a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ---------- Board briefings (/governance/briefing-*.html) ---------- */
.bf-print { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.briefing { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 24px 28px 10px; margin: 20px 0 36px; background: #fff; }
.bf-head { border-bottom: 3px solid #1b3a5c; margin-bottom: 14px; padding-bottom: 8px; }
.bf-kicker { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.briefing .bf-title { font-size: 28px; margin: 4px 0 0; }
.bf-sec h3 { font-size: 17px; margin: 18px 0 6px; color: #1b3a5c; }
.bf-sec p, .bf-sec li { font-size: 15.5px; }
.bf-sec .table-wrap { margin: 8px 0 10px; }
.bf-q { background: #f2f7ff; border-radius: 14px; padding: 4px 18px 6px; }
.bf-flags { background: #fff4e5; border-radius: 14px; padding: 4px 18px 6px; margin-top: 12px; }
.bf-foot { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 8px; }
.bf-foot p { font-size: 12.5px; color: var(--muted); }
@media print {
  @page { margin: 14mm; }
  main.article:has(.briefing) > :not(.briefing) { display: none !important; }
  body:has(.briefing) .site-footer, body:has(.briefing) .local-nav { display: none !important; }
  .briefing { border: 0; padding: 0; margin: 0; font-size: 11pt; }
  .briefing .bf-title { font-size: 20pt; }
  .bf-sec p, .bf-sec li, .briefing td, .briefing th { font-size: 10pt; }
  .bf-sec h3 { font-size: 12pt; margin-top: 10px; }
  .bf-q, .bf-flags { break-inside: avoid; }
}
.also-as { background: #f2f7ff; border-radius: 14px; padding: 12px 18px; font-size: 15.5px; margin: -10px 0 30px; }
@media print { .also-as { display: none; } }
.subscribe-box { max-width: 820px; margin: 24px auto; padding: 18px 22px 6px; background: var(--surface); border-radius: var(--radius); text-align: center; }

/* ---------- Deep review programme (home panel and /about/roadmap.html) ---------- */
.dr-home { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 36px; align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: 28px 32px; margin: 0 0 40px; }
.dr-home h2 { font-size: 30px; margin: 4px 0 8px; text-align: left; letter-spacing: -0.02em; }
.dr-home p { font-size: 16px; margin-bottom: 8px; }
.dr-k { font-size: 13px !important; font-weight: 700; color: var(--muted); margin: 0 !important; }
.dr-links { margin: 6px 0 0 !important; font-weight: 600; }
.dr-home-progress { background: #fff; border-radius: var(--radius); padding: 18px 22px 14px; }
.dr-pct { margin: 0 0 8px !important; color: var(--muted); font-size: 15px !important; }
.dr-pct strong { font-family: var(--font-display); font-size: 40px; color: var(--heading); letter-spacing: -0.03em; margin-right: 4px; }
.dr-bar { height: 12px; }
.dr-now { margin: 12px 0 6px !important; font-size: 15.5px !important; }
.dr-now span, .dr-lh { font-weight: 700; color: var(--heading); }
.dr-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 4px 18px; }
.dr-lh { font-size: 13px !important; margin: 6px 0 2px !important; }
.dr-lists ul { list-style: none; margin: 0; padding: 0; }
.dr-lists li { font-size: 14px; margin: 0 0 4px; }
@media (max-width: 760px) { .dr-home { grid-template-columns: 1fr; padding: 22px 18px; } .dr-home h2 { font-size: 25px; } }
.dr-overview .dr-pct strong { font-size: 44px; }
.dr-overview .rm-big { margin: 12px 0 4px; }
.dr-check li { margin-bottom: 6px; }
.dr-tracks { margin: 14px 0 40px; }
.dr-track { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 10px; background: #fff; }
.dr-track[open] { border-color: var(--border-strong); }
.dr-track.dr-now { border-color: var(--blue); }
.dr-track summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "n t c" "b b b"; gap: 4px 12px; align-items: baseline; padding: 14px 18px; cursor: pointer; list-style: none; }
.dr-track summary::-webkit-details-marker { display: none; }
.dr-tc::after { content: " \25BE"; color: var(--blue); }
.dr-track[open] .dr-tc::after { content: " \25B4"; }
.dr-tn { grid-area: n; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dr-tt { grid-area: t; font-weight: 700; font-size: 17px; color: var(--heading); }
.dr-tc { grid-area: c; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.dr-tbar { grid-area: b; height: 6px; margin-top: 6px; }
.dr-tbody { padding: 0 18px 12px; border-top: 1px solid var(--border); }
.dr-tdesc { font-size: 15px; color: var(--muted); margin: 10px 0 8px; }
.dr-phases { list-style: none; margin: 0; padding: 0; }
.dr-ph { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 15.5px; }
.dr-ph:first-child { border-top: 0; }
.dr-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-strong); font-size: 12.5px; font-weight: 700; color: var(--muted); background: #fff; }
.dr-ph-done .dr-n { background: var(--green); border-color: var(--green); color: #fff; }
.dr-ph-now .dr-n { background: var(--blue); border-color: var(--blue); color: #fff; }
.dr-ph > div { align-self: center; }
.dr-what { font-size: 14.5px; color: var(--muted); margin: 4px 0 0; }

/* ---------- Main menu with drop-down panels (October 2026) ---------- */
.nav-toggle { display: none; }
.site-nav .mm-top { font-weight: 700; }
.site-nav .mm-top[aria-current="true"] { color: var(--blue); font-weight: 900; box-shadow: inset 0 -3px 0 var(--amber-cta); }
.mm-panel { display: none; }
@media (min-width: 835px) {
  .site-header { position: sticky; }
  .mm-panel { position: absolute; left: 0; right: 0; top: 100%; background: #ffffff; border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -28px rgba(11, 42, 74, 0.4); }
  .mm-item:hover > .mm-panel, .mm-item:focus-within > .mm-panel, .mm-item.open > .mm-panel { display: block; }
  .mm-item.closed > .mm-panel { display: none !important; }
  .mm-inner { max-width: 1024px; margin: 0 auto; padding: 18px 22px 26px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .mm-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 28px; }
  .mm-item:hover > .mm-top, .mm-item:focus-within > .mm-top, .mm-item.open > .mm-top { color: var(--blue); }
}
.mm-intro { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.mm-intro a { font-weight: 600; }
.site-nav .mm-panel .mm-intro a { display: inline; padding: 0; font-size: inherit; }
.mm-h { font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.site-nav .mm-panel ul { display: block; list-style: none; margin: 0; padding: 0; }
.site-nav .mm-panel li { margin: 0; }
.site-nav .mm-panel a { display: block; padding: 4px 0; font-size: 14.5px; font-weight: 400; color: var(--heading); letter-spacing: 0; box-shadow: none; }
.site-nav .mm-panel a:hover { color: var(--blue-bright); text-decoration: underline; }
@media (max-width: 834px) {
  .site-header .inner { flex-wrap: nowrap; }
  .nav-toggle { display: inline-flex; align-items: center; font: inherit; font-size: 14px; font-weight: 600; background: none; border: 1px solid var(--border-strong); border-radius: 980px; padding: 5px 14px; color: var(--heading); cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto; margin: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; background: #ffffff; border-bottom: 1px solid var(--border); max-height: calc(100vh - 56px); overflow-y: auto; padding: 4px 16px 16px; }
  .site-header.nav-open .site-nav { display: block; }
  .site-nav ul { display: block; padding: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--border); }
  .site-nav a.mm-top, .site-nav a.nav-search { display: flex; padding: 12px 2px; font-size: 16px; }
  .site-nav a.mm-top:not(.mm-plain)::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; }
  .mm-item.open > a.mm-top::after { content: "\2212"; }
  .mm-item.open > .mm-panel { display: block; padding: 0 2px 14px; }
  .mm-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; }
  .site-nav .mm-panel a { font-size: 15px; padding: 5px 0; }
}
@media print { .nav-toggle, .mm-panel { display: none !important; } }

/* Obligations by sector comparison */
.ob-compare th, .ob-compare td { text-align: center; white-space: nowrap; font-size: 13px; }
.ob-compare th[scope="row"] { text-align: left; white-space: normal; min-width: 220px; }
.ob-compare thead th { white-space: normal; vertical-align: bottom; min-width: 78px; }
.ob-compare .ob-yes { color: var(--green); font-weight: 700; }
.ob-compare .ob-cmp-group th { text-align: left; background: var(--surface); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
