@font-face {
  font-family: "Lato";
  src: url("/static/fonts/Lato-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/static/fonts/Lato-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/static/fonts/Lato-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/static/fonts/Lato-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/static/fonts/Lato-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* White Rabbit standard palette */
  --bg: #0a0f1e;
  --bg-2: #0c1222;
  --navy: #102337;
  --navy-2: #16233f;
  --surface: #102337;
  --surface-2: #16233f;
  --text: #f4efe4;
  --white: #ffffff;
  --muted: #aab8c8;
  --muted-2: #8e9caf;
  --line: #22364a;
  --line-strong: #657489;
  --gold: #bd9a4e;
  --gold-soft: #e7c86a;
  --gold-dim: rgba(189, 154, 78, 0.28);
  --gold-glow: rgba(189, 154, 78, 0.12);
  --teal-bright: #4fd1c5;
  --green: #56b981;
  --green-soft: #10261a;
  --red: #e5484d;
  --red-soft: #2a1215;
  --amber-soft: #2a2110;
  --paper-ink: #1a1a1a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --max: 1240px;
  /* legacy aliases used by older markup */
  --ink: var(--bg);
  --paper: var(--bg);
  --sand: var(--gold-soft);
  --teal: var(--gold);
  --teal-dark: var(--gold-soft);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.16; margin: 0 0 0.5em; color: var(--white); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
code, .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.9em; }
code { background: var(--surface-2); color: var(--gold-soft); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--surface); color: var(--text); padding: 1rem; border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
strong { color: var(--white); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 58px 28px; }
.section.narrow { max-width: 880px; }
.split { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 42px; align-items: start; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #111; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  background: rgba(5, 8, 13, 0.94);
  border-bottom: 1px solid var(--gold-dim);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 60px; height: 42px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.04; }
.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.brand-text span {
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d5dbe4;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 0.92rem;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.nav-link .icon { color: var(--gold); flex: none; }
.nav-link:hover { background: var(--gold-glow); color: var(--gold-soft); text-decoration: none; }
.nav-link.active { color: var(--gold-soft); background: var(--gold-glow); border-color: var(--gold); font-weight: 700; }
.nav-button { padding: 9px 11px; }
.inline-form { display: inline; margin: 0; }
.user-pill {
  background: var(--surface);
  color: var(--gold-soft);
  border: 1px solid var(--gold-dim);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #12100a;
  border: 1px solid var(--gold-soft);
  padding: 11px 20px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { background: linear-gradient(180deg, #f2d786, var(--gold-soft)); color: #12100a; text-decoration: none; }
.btn-small { padding: 7px 13px; font-size: 0.84rem; }
.btn-wide { display: flex; text-align: center; width: 100%; }
.btn-ghost { background: transparent; color: var(--gold-soft); border-color: var(--gold-dim); }
.btn-ghost:hover { background: var(--gold-glow); color: var(--gold-soft); }
.hero .btn-ghost { color: var(--gold-soft); border-color: var(--gold-dim); }
.hero .btn-ghost:hover { background: var(--gold-glow); }
.band .btn-ghost { color: var(--gold-soft); border-color: var(--gold-dim); }
.band .btn-ghost:hover { background: var(--gold-glow); }
.text-link { font-weight: 700; color: var(--gold-soft); }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 700; font-size: 0.9rem; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(189, 154, 78, 0.16), transparent 62%),
    radial-gradient(700px 360px at 8% 110%, rgba(189, 154, 78, 0.08), transparent 60%),
    linear-gradient(135deg, var(--bg), var(--navy));
  color: var(--text);
  padding: 62px 0 66px;
  border-bottom: 1px solid var(--gold-dim);
}
.hero-inner { max-width: 980px; }
.hero h1 { color: var(--white); max-width: 900px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 12px;
}
.eyebrow.dark { color: var(--gold); }
.hero-sub { font-size: 1.12rem; color: #c8d0dc; max-width: 800px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Home hero */
.home-hero {
  position: relative;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.99) 0%, rgba(5, 8, 13, 0.94) 38%, rgba(5, 8, 13, 0.44) 74%, rgba(5, 8, 13, 0.76) 100%),
    url("/static/hero-art.jpg") right center / cover no-repeat,
    var(--bg);
  border-bottom: 1px solid var(--gold-dim);
}
.home-hero-inner { display: flex; align-items: center; min-height: 360px; }
.home-hero-copy { max-width: 760px; padding: 58px 0 62px; }
.home-hero-copy h1 { font-size: clamp(2.15rem, 4.4vw, 3.55rem); margin-bottom: 0.28em; }
.home-hero-copy .hero-sub { max-width: 660px; }

/* Feature strip */
.feature-strip {
  background: linear-gradient(180deg, #071018, #050b11);
  border-bottom: 1px solid var(--gold-dim);
}
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-right: 1px solid var(--line);
}
.feature-item:last-child { border-right: 0; }
.feature-item .icon { color: var(--gold); flex: none; }
.feature-item strong { display: block; font-size: 0.86rem; color: var(--white); line-height: 1.2; }
.feature-item span { display: block; font-size: 0.74rem; color: var(--muted); line-height: 1.35; }

/* Stats and cards */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -34px; position: relative; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.8rem; color: var(--gold-soft); line-height: 1; }
.stat span { color: var(--muted); font-size: 0.86rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card, .tool-card, .ref-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.module-card:hover, .tool-card:hover, .ref-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.module-card h3, .tool-card h3, .ref-card h3 { margin-top: 10px; }
.module-card p, .tool-card p, .ref-card p { color: var(--muted); font-size: 0.94rem; }
.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.8rem;
}
.module-meta { color: var(--muted-2); font-size: 0.8rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 0; }
.callout-card, .side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.big-list { font-size: 1.12rem; font-weight: 700; color: var(--gold-soft); padding-left: 1.2em; }
.band { background: var(--navy); color: var(--text); padding: 54px 0; border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim); }
.band h2 { color: var(--white); }
.band p { color: #c8d0dc; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.tool-links { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-links + h2 { margin-top: 28px; }

/* Pathway */
.pathway-grid { display: grid; grid-template-columns: 1.15fr 1fr 0.88fr; gap: 34px; align-items: start; }
.pathway-copy h2 { margin-bottom: 0.35em; }
.pathway-copy p { color: #c8d0dc; }
.pathway-copy strong { color: var(--white); }
.outcome-panel h3 { font-size: 1.18rem; margin-bottom: 14px; }
.gold-check-list { list-style: none; padding-left: 0; margin: 0; }
.gold-check-list li { position: relative; padding-left: 28px; margin-bottom: 11px; color: #c8d0dc; font-size: 0.94rem; }
.gold-check-list li .icon { position: absolute; left: 0; top: 3px; color: var(--gold); }
.cpd-inline {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--gold-dim);
  background: var(--gold-glow);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 22px;
}
.cpd-inline .icon { color: var(--gold); flex: none; margin-top: 2px; }
.cpd-inline p { margin: 0; font-size: 0.9rem; color: #dbe1e8; }
.glance-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.glance-card h3 { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; margin-bottom: 14px; }
.glance-card h3 .icon { color: var(--gold); }
.glance-list { margin: 0 0 16px; }
.glance-list div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.glance-list div:last-child { border-bottom: 0; }
.glance-list dt { color: var(--muted); font-size: 0.82rem; }
.glance-list dd { margin: 0; color: var(--white); font-weight: 700; font-size: 0.82rem; text-align: right; }

/* Module tiles */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.module-tile {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  gap: 14px;
  align-items: start;
  background: linear-gradient(180deg, #0b1118, #080d13);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px 18px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.module-tile:hover { border-color: var(--gold); background: #101821; text-decoration: none; transform: translateY(-1px); }
.module-tile-icon { color: var(--gold); padding-top: 2px; }
.module-tile-num { display: block; color: var(--gold); font-size: 0.74rem; letter-spacing: 0.16em; font-weight: 700; margin-bottom: 3px; }
.module-tile h3 { font-size: 0.98rem; margin-bottom: 5px; }
.module-tile p { color: var(--muted); font-size: 0.82rem; line-height: 1.45; margin-bottom: 8px; }
.module-tile-arrow { color: var(--gold); padding-top: 4px; }
.module-tile .module-meta { font-size: 0.74rem; }
.tools-band { background: var(--navy); border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim); padding: 34px 0; }
.tools-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tools-band h2 { font-size: 1.35rem; margin-bottom: 4px; }
.tools-band p { color: var(--muted); margin: 0; }

/* Course rows */
.module-list, .lesson-list, .dash-list { display: grid; gap: 10px; }
.module-row, .lesson-row, .dash-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--text);
}
.module-row:hover, .lesson-row:hover, .dash-row:hover { border-color: var(--gold); text-decoration: none; }
.module-row-main, .lesson-row-main, .dash-main { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.module-row-main span, .lesson-row-main span, .dash-main span { color: var(--muted); font-size: 0.9rem; }
.arrow { color: var(--gold); font-weight: 700; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gold); flex: none; }
.lesson-row.done .check { background: var(--gold); border-color: var(--gold); color: #111; }
.quiz-row { border-style: dashed; }
.progress { display: block; height: 7px; background: #1a2430; border-radius: 999px; overflow: hidden; margin: 4px 0; }
.progress span, .progress > div { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.facts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 14px; margin: 0 0 20px; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; font-weight: 700; color: var(--white); }
.tick-list { list-style: none; padding-left: 0; }
.tick-list li { padding-left: 28px; position: relative; }
.tick-list li:before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.plain-list { list-style: none; padding-left: 0; color: var(--muted); }

/* Lesson */
.lesson-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 38px; align-items: start; }
.lesson-nav { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lesson-nav h3 { font-size: 1rem; }
.lesson-nav-list { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.lesson-nav-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lesson-nav-list li:last-child { border-bottom: 0; }
.lesson-nav-list li.current a { color: var(--gold-soft); font-weight: 700; }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow); }
.lesson .prose { max-width: 760px; }
.prose { max-width: 760px; }
.prose p { font-size: 1.03rem; color: #d4dae2; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.key-points, .takeaways { background: var(--gold-glow); border-left: 3px solid var(--gold); padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.scenario { background: var(--amber-soft); border-left: 3px solid var(--gold); padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.lesson-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 18px; }

/* Forms and quizzes */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; color: var(--text); }
input, select, textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #090f16;
  color: var(--white);
  width: 100%;
}
select option, select optgroup {
  background: #0a0f1e;
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: #66707e; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-link:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
}
textarea { resize: vertical; }
.hint { color: var(--muted-2); font-size: 0.8rem; font-weight: 400; }
.checkline { display: flex; gap: 10px; align-items: start; font-weight: 400; color: var(--text); }
.checkline input { width: auto; margin-top: 5px; accent-color: var(--gold); }
.quiz-form { display: grid; gap: 16px; }
.quiz-q, .risk-q { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px 20px; margin: 0; }
.quiz-q legend, .risk-q legend { font-weight: 700; padding: 0 6px; color: var(--white); }
.qnum { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-glow); border: 1px solid var(--gold-dim); color: var(--gold-soft); font-size: 0.78rem; margin-right: 6px; }
.option { display: flex; gap: 10px; align-items: start; font-weight: 400; padding: 8px 0; border-bottom: 1px solid var(--line); }
.option:last-child { border-bottom: 0; }
.option input { width: auto; margin-top: 4px; accent-color: var(--gold); }
.result-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; text-align: center; box-shadow: var(--shadow); margin-bottom: 28px; }
.result-card.pass { border-top: 4px solid var(--green); }
.result-card.fail { border-top: 4px solid var(--red); }
.result-card h1 { font-size: 3rem; margin: 0.1em 0; color: var(--white); }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.review-list { display: grid; gap: 12px; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.review-item.correct { border-left: 4px solid var(--green); }
.review-item.incorrect { border-left: 4px solid var(--red); }
.review-item p { margin: 0 0 6px; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; margin: 22px 0; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.dash-progress { display: flex; align-items: center; gap: 26px; }
.ring { --pct: 0; width: 110px; height: 110px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--pct) * 1%), #1a2430 0); display: grid; place-items: center; flex: none; position: relative; }
.ring:before { content: ""; position: absolute; width: 84px; height: 84px; background: var(--surface); border-radius: 50%; }
.ring span { position: relative; font-weight: 700; font-size: 1.3rem; color: var(--white); }
.dash-num { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-glow); border: 1px solid var(--gold-dim); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: var(--gold-soft); flex: none; }
.badge { display: inline-block; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: 0.74rem; font-weight: 700; }
.badge.pass { background: var(--green-soft); color: #7ee2a8; border-color: #1f5a39; }
.badge.warn { background: var(--amber-soft); color: #f5c56b; border-color: #6b4f1c; }
.tool-card { margin-top: 18px; }

/* Reports */
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.verdict { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.verdict.pass { background: var(--green-soft); color: #7ee2a8; border: 1px solid #1f5a39; }
.verdict.fail { background: var(--red-soft); color: #ff9ca0; border: 1px solid #6b2529; }
.verdict.warn { background: var(--amber-soft); color: #f5c56b; border: 1px solid #6b4f1c; }
.report-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; }
.report-summary p { margin: 0 0 6px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 22px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.88rem; vertical-align: top; }
.data-table th { background: #0c1222; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.data-table tr:last-child td { border-bottom: 0; }
.good { color: #7ee2a8; font-weight: 700; }
.bad { color: #ff9ca0; font-weight: 700; }
.signal-list, .link-list, .attachment-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.signal { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; border-left: 4px solid var(--line); }
.signal strong { display: block; color: var(--white); }
.signal span { color: var(--muted); font-size: 0.9rem; }
.signal.high { border-left-color: var(--red); }
.signal.medium { border-left-color: var(--gold); }
.signal.info { border-left-color: var(--gold-soft); }
.link-list li, .attachment-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-wrap: anywhere; }
.notice { background: var(--gold-glow); border: 1px solid var(--gold-dim); border-left: 3px solid var(--gold); padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 22px 0; }
.notice h3 { margin-top: 0; }
.notice.error { background: var(--red-soft); border-color: #6b2529; border-left-color: var(--red); }
.flash { background: var(--green-soft); border-bottom: 1px solid #1f5a39; padding: 12px 24px; text-align: center; color: #7ee2a8; font-weight: 700; }

/* Risk and checklist */
.score-list { display: grid; gap: 12px; margin-bottom: 26px; }
.score-row { display: grid; grid-template-columns: 210px 1fr 50px; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.score-row strong { text-align: right; color: var(--white); }
.checklist { display: grid; gap: 14px; }
.checklist-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.checklist-card h2 { font-size: 1.2rem; }
.checklist-card .checkline { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Certificate (kept light for print) */
.certificate { background: #fff; color: var(--paper-ink); border: 8px double var(--gold); border-radius: 4px; padding: clamp(30px, 6vw, 70px); text-align: center; max-width: 820px; margin: 0 auto; }
.certificate h1, .certificate h2, .certificate h3, .certificate strong { color: var(--paper-ink); }
.certificate h1 { font-size: 2.2rem; letter-spacing: 0.04em; }
.cert-name { font-size: 2rem; font-weight: 700; color: var(--paper-ink); border-bottom: 1px solid #ccc; display: inline-block; padding: 0 20px 8px; }

/* Footer */
.site-footer { background: #04070b; color: #b9c1cc; padding: 46px 0 22px; margin-top: 0; border-top: 1px solid var(--gold-dim); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h4 { color: var(--gold-soft); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; }
.footer-grid a { color: #c5ccd6; display: block; font-size: 0.88rem; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; margin-bottom: 8px; }
.footer-brand img { width: 42px; height: 30px; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; color: var(--muted-2); font-size: 0.8rem; }

/* Two ways / address */
.two-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.way-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.way-card h3 { margin-top: 0; }
.address { font-family: SFMono-Regular, Consolas, monospace; font-size: 1.05rem; font-weight: 700; color: var(--gold-soft); background: var(--surface-2); padding: 10px 12px; border-radius: 6px; overflow-wrap: anywhere; }

/* Check rows */
.check-list { display: grid; gap: 10px; margin-bottom: 24px; }
.check-row { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.check-row.pass { border-left-color: var(--green); }
.check-row.warn { border-left-color: var(--gold); }
.check-row.fail { border-left-color: var(--red); }
.check-row-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.check-row-head span { font-weight: 700; color: var(--muted); font-size: 0.82rem; }
.check-row p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.check-row p.fix { color: var(--text); }
.danger-box { background: var(--red-soft); border: 1px solid #6b2529; border-left: 5px solid var(--red); border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 22px 0; }
.danger-box h2 { color: #ff9ca0; margin-top: 0; }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-row .btn { margin: 0; }

/* Verification box */
.verify-box { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 22px 24px; margin: 20px 0; box-shadow: var(--shadow); }
.verify-box h2 { margin-top: 0; font-size: 1.25rem; }
.verify-box p { margin-bottom: 0.7em; }

/* Responsive */
@media (max-width: 1100px) {
  .pathway-grid { grid-template-columns: 1fr 1fr; }
  .glance-card { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-item:nth-child(3) { border-right: 0; }
  .feature-item:nth-child(4), .feature-item:nth-child(5) { border-top: 1px solid var(--line); }
  .nav-link span { display: none; }
  .nav-link { padding: 9px; }
}
@media (max-width: 900px) {
  .split, .dash-grid, .lesson-layout, .footer-grid, .pathway-grid { grid-template-columns: 1fr; }
  .lesson-nav { position: static; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .band-inner { flex-direction: column; align-items: start; }
  .home-hero-inner { min-height: 340px; }
  .home-hero-copy { padding: 46px 0 50px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-item:nth-child(2n) { border-right: 0; }
  .feature-item:nth-child(3) { border-right: 1px solid var(--line); }
  .feature-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .tools-band-inner { flex-direction: column; align-items: start; }
  .nav { gap: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .brand-mark { width: 48px; height: 34px; }
  .brand-text strong { font-size: 0.9rem; }
  .brand-text span { font-size: 0.52rem; }
  .nav { width: 100%; margin-left: 0; justify-content: space-between; }
  .nav-link { padding: 7px 8px; font-size: 0.84rem; }
  .nav-link .icon { width: 15px; height: 15px; }
  .card-grid, .form-grid, .stat-row, .score-row, .module-grid, .feature-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: 0 !important; border-top: 1px solid var(--line); }
  .feature-item:first-child { border-top: 0; }
  .score-row { gap: 6px; }
  .score-row strong { text-align: left; }
  .section { padding: 38px 20px; }
  .wrap { padding: 0 20px; }
  .report-head { flex-direction: column; align-items: start; }
  .dash-progress { flex-direction: column; align-items: start; }
  .home-hero { background-position: 62% center; }
  .home-hero-copy h1 { font-size: 2.1rem; }
}

@media print {
  .site-header, .site-footer, .hero, .home-hero, .feature-strip, .tools-band, .back, .btn, .nav, .flash { display: none !important; }
  body { background: white; color: #111; font-size: 12pt; }
  .wrap, .section { max-width: none; padding: 0; }
  h1, h2, h3, h4, p, li, dt, dd, td, th, strong { color: #111 !important; }
  .data-table, .notice, .verify-box, .callout-card, .form-card, .lesson, .dash-card, .glance-card, .module-tile { background: #fff !important; border-color: #ccc !important; box-shadow: none !important; }
  .data-table th { background: #fff !important; color: #111 !important; border-color: #ccc !important; }
  .data-table td { border-color: #ccc !important; }
  .certificate { border: 6px double #999; box-shadow: none; max-width: none; }
  .checklist-card { break-inside: avoid; }
  a { color: #111; }
}
