/* MVF Students Safety Training
   Direction: warm paper, deep evergreen, serif reading text. Serious, not corporate. */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/source-serif-4-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/source-serif-4-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/source-serif-4-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/source-serif-4-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

:root {
  --paper: #FAF6EF;
  --paper-2: #F2EBDF;
  --paper-3: #E9E0D1;
  --ink: #1E1A16;
  --ink-2: #4A433C;
  --ink-3: #66605A;
  --line: #DED4C4;
  --green: #1F5C4A;
  --green-dark: #164538;
  --green-soft: #E1EDE6;
  --amber: #7A4E0A;
  --amber-soft: #FBEFD3;
  --amber-line: #E3B75C;
  --red: #8A3527;
  --red-soft: #F8E3DD;
  --red-line: #D08A7C;
  --blue: #2B5170;
  --blue-soft: #E1EAF1;
  --focus: #2B5170;
  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(30, 26, 22, 0.06), 0 4px 16px rgba(30, 26, 22, 0.06);
  --measure: 40rem;
  --tap: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--green-dark); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* App bar */
.app-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.app-bar-title { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1rem; line-height: 1.1; min-height: var(--tap); }
.app-bar-title strong { display: block; font-weight: 700; font-size: 1.05rem; }
.app-bar-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--green) url('/icon.svg') center/contain no-repeat; flex: none; }
.app-bar-actions { display: flex; gap: 8px; align-items: center; }
.menu { position: absolute; right: 12px; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; min-width: 220px; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; background: none; color: var(--ink); text-decoration: none; border-radius: 6px; min-height: var(--tap); cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--paper-2); }
.menu .menu-name { padding: 8px 14px 4px; color: var(--ink-3); font-size: 0.9rem; }

/* Layout */
.main { padding: 0 0 64px; }
.container { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 24px 20px 0; }
.container-wide { max-width: 72rem; }
.loading { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.lede { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); margin: 12px 0 24px; }
.muted { color: var(--ink-3); }
.small { font-size: 0.92rem; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.right { text-align: right; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-help { background: var(--red); color: #fff; padding: 8px 14px; font-size: 0.95rem; }
.btn-help:hover { background: #6e2a1f; color: #fff; }
.btn-small { padding: 6px 12px; font-size: 0.95rem; min-height: var(--tap); }
.btn-block { width: 100%; }
.btn-large { font-size: 1.12rem; padding: 14px 26px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Forms */
.field { margin: 0 0 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--ink-3); font-size: 0.92rem; margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #B9AE9C; border-radius: 8px; background: #fff; color: var(--ink);
  font-size: 1.05rem;
}
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.input-code { font-size: 1.6rem; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.textarea { min-height: 140px; line-height: 1.5; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; min-height: var(--tap); cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.check-list { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.check-list .check { padding: 6px 0; }
.error { background: var(--red-soft); border-left: 4px solid var(--red); color: var(--red); padding: 12px 14px; border-radius: 6px; margin: 0 0 16px; font-weight: 600; }
.notice { background: var(--blue-soft); border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: 6px; margin: 0 0 16px; }
.success { background: var(--green-soft); border-left: 4px solid var(--green); padding: 12px 14px; border-radius: 6px; margin: 0 0 16px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-title { margin-bottom: 8px; }

/* Progress */
.progress { display: flex; align-items: center; gap: 12px; }
.progress-bar { flex: 1; height: 10px; background: var(--paper-3); border-radius: 999px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width 0.3s; }
.progress-label { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }

/* Module list */
.module-list { list-style: none; margin: 0; padding: 0; }
.module-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 4px; border-top: 1px solid var(--line); }
.module-item:last-child { border-bottom: 1px solid var(--line); }
.module-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); font-weight: 700; font-size: 0.95rem; }
.module-item.is-done .module-num { background: var(--green); color: #fff; }
.module-item.is-next .module-num { background: var(--amber-soft); color: var(--amber); border: 2px solid var(--amber-line); }
.module-item.is-locked { opacity: 0.85; }
.module-body { flex: 1; min-width: 0; }
.module-title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: 0 0 4px; }
.module-title a { color: var(--ink); text-decoration: none; }
.module-title a:hover { text-decoration: underline; }
.module-meta { color: var(--ink-3); font-size: 0.92rem; }
.module-status { flex: none; font-size: 0.85rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); margin-top: 6px; }
.module-item.is-done .module-status { background: var(--green-soft); color: var(--green); }
.module-item.is-next .module-status { background: var(--amber-soft); color: var(--amber); }
.section-label { margin: 28px 0 10px; }

/* Reading */
.reading-head { padding-top: 32px; }
.reading-head .module-kicker { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-3); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.reading-head h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); margin: 10px 0 12px; }
.reading-head .summary { font-family: var(--serif); font-size: 1.22rem; color: var(--ink-2); margin: 0 0 8px; }
.reading-rule { height: 4px; width: 64px; background: var(--green); border-radius: 2px; margin: 20px 0 8px; }
.heavy .reading-rule { background: var(--red); width: 96px; }
.heavy .module-kicker .weight { color: var(--red); }
/* Heavy modules open on a dark band so they feel different from the rest. */
.heavy .reading-head { background: var(--green-dark); color: #fff; margin: -24px -20px 0; padding: 32px 20px 24px; border-radius: 0 0 18px 18px; }
.heavy .reading-head .module-kicker { color: #CFE3D9; }
.heavy .reading-head .module-kicker .weight { color: #F0C96E; }
.heavy .reading-head .summary { color: #E8F0EC; }
.heavy .reading-head .reading-rule { background: #E3B75C; }
@media (min-width: 720px) { .heavy .reading-head { margin: -32px -24px 0; padding: 40px 24px 28px; } }

.prose { font-family: var(--serif); font-size: 1.19rem; line-height: 1.65; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.55rem; margin-top: 2em; padding-top: 0.5em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0; }
.prose li + li { margin-top: 0.5em; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--paper-3); color: var(--ink-2); font-style: italic; }
.prose a[href^="tel:"] { font-weight: 700; white-space: nowrap; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose hr { border: 0; border-top: 1px solid var(--line); }

/* Callouts */
.callout { border-radius: var(--radius); padding: 18px 20px; font-family: var(--sans); font-size: 1.06rem; line-height: 1.5; }
.callout > * + * { margin-top: 0.7em; }
.callout p { margin: 0; }
.callout ul, .callout ol { padding-left: 1.3em; margin: 0; }
.callout li + li { margin-top: 0.4em; }
.callout-title { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.callout-scenario { background: var(--paper-2); border-left: 4px solid var(--paper-3); font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--ink-2); }
.callout-scenario .callout-title { font-style: normal; color: var(--ink-3); }
.callout-rule { background: var(--amber-soft); border-left: 5px solid var(--amber-line); }
.callout-rule .callout-title { color: var(--amber); }
.callout-stop { background: var(--red-soft); border-left: 5px solid var(--red); }
.callout-stop .callout-title { color: var(--red); }
.callout-stop strong { color: var(--red); }
.callout-numbers { background: var(--green); color: #fff; }
.callout-numbers .callout-title { color: #CFE3D9; }
.callout-numbers a { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration-color: rgba(255,255,255,0.5); }
.callout-numbers a:hover { color: #fff; }
.callout-note { background: var(--blue-soft); border-left: 5px solid var(--blue); }
.callout-note .callout-title { color: var(--blue); }
.callout-wednesday { background: #fff; border: 1.5px solid var(--green); }
.callout-wednesday .callout-title { color: var(--green); }
.callout-wednesday ol, .callout-wednesday ul { list-style: none; padding: 0; }
.callout-wednesday li { position: relative; padding-left: 32px; }
.callout-wednesday li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border: 2px solid var(--green); border-radius: 5px; }

.sources { margin-top: 40px; font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); }
.sources summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: var(--tap); display: flex; align-items: center; }
.sources ul { padding-left: 1.2em; }
.sources li + li { margin-top: 8px; }
.sources a { overflow-wrap: anywhere; }

.reading-foot { margin-top: 40px; padding: 24px 0 8px; border-top: 2px solid var(--green); }
.reading-foot p { margin-bottom: 14px; }

/* Quiz */
.quiz-progress { color: var(--ink-3); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.quiz-prompt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; margin: 10px 0 20px; }
.quiz-options { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.quiz-option {
  display: flex; gap: 12px; align-items: flex-start; width: 100%;
  padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff;
  text-align: left; cursor: pointer; font-size: 1.05rem; line-height: 1.4; color: var(--ink);
}
.quiz-option:hover { border-color: var(--green); background: var(--green-soft); }
.quiz-option .letter { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 700; font-size: 0.9rem; }
.quiz-option.is-chosen { border-color: var(--blue); }
.quiz-option.is-correct { border-color: var(--green); background: var(--green-soft); }
.quiz-option.is-correct .letter { background: var(--green); color: #fff; }
.quiz-option.is-wrong { border-color: var(--red); background: var(--red-soft); }
.quiz-option.is-wrong .letter { background: var(--red); color: #fff; }
.quiz-option[disabled] { cursor: default; }
.quiz-option[disabled]:not(.is-correct):not(.is-wrong) { opacity: 0.6; }
.quiz-feedback { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); }
.quiz-feedback.ok { background: var(--green-soft); border-left: 5px solid var(--green); }
.quiz-feedback.miss { background: var(--amber-soft); border-left: 5px solid var(--amber-line); }
.quiz-feedback h3 { font-family: var(--sans); font-size: 1rem; margin-bottom: 6px; }
.quiz-result { text-align: center; padding: 20px 0; }
.quiz-result .score { font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; margin: 8px 0; }
.quiz-result.pass .score { color: var(--green); }
.quiz-result.fail .score { color: var(--amber); }

/* Status pills */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.pill-complete { background: var(--green-soft); color: var(--green); }
.pill-progress { background: var(--blue-soft); color: var(--blue); }
.pill-notstarted { background: var(--paper-2); color: var(--ink-2); }
.pill-expired { background: var(--red-soft); color: var(--red); }
.pill-overdue { background: var(--red); color: #fff; }
.pill-soon { background: var(--amber-soft); color: var(--amber); }
.pill-inactive { background: var(--paper-3); color: var(--ink-3); }

/* Sheet (help) */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(30, 26, 22, 0.5); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 18px 18px 0 0; padding: 16px 20px 32px; box-shadow: 0 -8px 30px rgba(0,0,0,0.2); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.help-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.help-item .label { font-weight: 700; }
.help-item .note { color: var(--ink-3); font-size: 0.92rem; }
.help-item a.btn { flex: none; font-variant-numeric: tabular-nums; }
.help-subhead { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
@media (min-width: 640px) {
  .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 480px; border-radius: 18px; }
}

/* Certificate */
.certificate { background: #fff; border: 2px solid var(--green); padding: 36px 28px; border-radius: 6px; text-align: center; position: relative; }
.certificate::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.certificate .cert-eyebrow { color: var(--green); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.certificate h1 { font-size: 2rem; margin: 10px 0 6px; }
.certificate .cert-name { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 24px 0 6px; }
.certificate .cert-dates { margin: 16px 0; }
.certificate .cert-modules { text-align: left; display: inline-block; margin: 12px auto 0; font-size: 0.95rem; columns: 1; }
.certificate .cert-id { color: var(--ink-3); font-size: 0.85rem; margin-top: 20px; font-variant-numeric: tabular-nums; }
.cert-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 20px 0; }
.celebrate { text-align: center; padding: 24px 0 8px; }
.celebrate .mark { width: 72px; height: 72px; border-radius: 50%; background: var(--green); margin: 0 auto 16px; display: grid; place-items: center; }

/* Admin */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 16px 0; }
.toolbar .field { margin: 0; flex: 1 1 160px; }
.toolbar .field .input, .toolbar .field .select { min-height: 44px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.stat:hover { border-color: var(--green); }
.stat.is-active { border-color: var(--green); background: var(--green-soft); }
.stat .n { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat .l { font-size: 0.9rem; color: var(--ink-2); margin-top: 4px; }
.stat.warn .n { color: var(--red); }
.stat.soon .n { color: var(--amber); }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); background: var(--paper-2); }
.table th button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 6px 0; min-height: 32px; }
.table th button[aria-sort="ascending"]::after { content: ' \2191'; }
.table th button[aria-sort="descending"]::after { content: ' \2193'; }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.roster-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roster-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 4px; }
.roster-card .name { font-weight: 700; font-size: 1.05rem; }
.roster-card .name a { text-decoration: none; color: var(--ink); }
.roster-card .meta { color: var(--ink-3); font-size: 0.9rem; }
.only-phone { display: none; }
@media (max-width: 720px) { .only-phone { display: grid; } .only-desktop { display: none; } }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 1rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
details.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
details.panel summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: var(--tap); display: flex; align-items: center; }
details.panel > div { padding: 0 0 18px; }
.audit { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.audit li { padding: 8px 0; border-top: 1px solid var(--line); }
.audit time { color: var(--ink-3); }

@media (max-width: 720px) {
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table.responsive td { display: block; padding: 4px 0; border: 0; }
  .table.responsive td::before { content: attr(data-label) ' '; color: var(--ink-3); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
  .table.responsive td.no-label::before { content: none; }
}

/* Summary print sheet */
.summary-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.summary-sheet h1 { font-size: 1.7rem; }
.summary-sheet table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.summary-sheet td, .summary-sheet th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.summary-sheet td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* Welcome */
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.hero .lede { font-size: 1.25rem; }
.hero-facts { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; }
.hero-facts li { display: flex; gap: 12px; align-items: flex-start; }
.hero-facts li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 9px; }

@media (min-width: 720px) {
  .container { padding: 32px 24px 0; }
  .app-bar { padding: 12px 24px; }
  .prose { font-size: 1.22rem; }
  .certificate { padding: 48px 56px; }
  .certificate .cert-modules { columns: 2; column-gap: 32px; }
}

@media print {
  .app-bar, .btn, .sheet, .cert-actions, .no-print, .skip-link { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .main { padding: 0; }
  .container { max-width: none; padding: 0; }
  .certificate { border: 3px double var(--green); box-shadow: none; page-break-inside: avoid; }
  .certificate .cert-modules { columns: 2; }
  .summary-sheet { border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
