/* Sentinel Academy — black / emerald / white. Premium pass (v2).
   Certificate gold appears ONLY in certificate-specific rules. */
:root {
  /* Estate premium tokens (2026-11-03, Sweep 3): Academy's legacy
     names are aliases of the shared estate values — surfaces
     #0a0d0a / #0e130e, line rgba(0,230,118,.16), line-strong
     rgba(0,230,118,.32), green-deep #00c853, muted #9db8a4.
     --panel-3 stays a derived raised tint of surface-2 for the
     existing gradient cards. Certificate gold is untouched below. */
  --bg: #060806;
  --surface: #0a0d0a;
  --surface-2: #0e130e;
  --panel: #0a0d0a;
  --panel-2: #0e130e;
  --panel-3: #131b13;
  --line: rgba(0, 230, 118, 0.16);
  --line-strong: rgba(0, 230, 118, 0.32);
  --line-2: rgba(0, 230, 118, 0.32);
  --ink: #f2f7f2;
  --muted: #9db8a4;
  --dim: #9db8a4;
  --green: #00e676;
  --green-deep: #00c853;
  --emerald: #00e676;
  --emerald-deep: #00c853;
  --danger: #ff6b5e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4),
          0 12px 32px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px rgba(0, 230, 118, 0.22),
          0 14px 44px rgba(0, 200, 83, 0.10);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background-color: var(--bg); color: var(--ink);
  /* Page depth (estate premium): a <=4% green glow near the top and
     a gentle vignette, CSS-only. The print block below still resets
     body to plain white for paper. */
  background-image:
    radial-gradient(880px 460px at 50% -10%, rgba(0, 230, 118, 0.04), transparent 70%),
    radial-gradient(140% 90% at 50% 0%, transparent 60%, rgba(0, 0, 0, 0.22));
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald); }
::selection { background: var(--emerald); color: #04150a; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--emerald); outline-offset: 2px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main { padding-bottom: 72px; }
/* Wave 4: one calm page-entry motion for every surface. The global
   reduced-motion rule turns this off, and because the keyframes only
   animate FROM a hidden state, animation:none leaves content fully
   visible — motion can never strand a page blank. */
@keyframes page-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); } }
main { animation: page-in 0.45s ease both; }
h1 { font-size: 2.55rem; line-height: 1.12; margin: 10px 0 14px;
  letter-spacing: -0.015em; font-weight: 800; }
h2 { font-size: 1.55rem; margin: 0 0 14px; letter-spacing: -0.01em;
  line-height: 1.15; }
h3 { font-size: 1.12rem; margin: 18px 0 8px; line-height: 1.25; }
p { margin: 0 0 14px; }
.lead { font-size: 1.14rem; color: var(--ink); max-width: 46rem; }
.note, .foot-dim { color: var(--dim); font-size: 0.92rem; }
.crumb { color: var(--dim); font-size: 0.9rem; margin-top: 26px; }
.crumb a { color: var(--dim); padding: 10px 3px; margin: -10px -3px;
  display: inline-block; }
.crumb a:hover { color: var(--emerald); }

/* header / footer */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 6, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.head-in { display: flex; align-items: center; justify-content: space-between;
  gap: 14px 22px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 800;
  letter-spacing: 0.14em; font-size: 1.02rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 11px; min-height: 44px; }
.wordmark span { color: var(--emerald); margin-left: 0.45em; }
.head-logo { width: 34px; height: 42px; object-fit: cover;
  object-position: center 56%; border-radius: 7px; flex: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.head-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.head-nav a { color: var(--dim); text-decoration: none; font-size: 0.95rem;
  transition: color 0.2s ease; display: inline-flex; align-items: center;
  min-height: 44px; }
.head-nav a:hover { color: var(--emerald); }
.head-account { display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap; }
.head-name { color: var(--ink); font-weight: 650; font-size: 0.95rem;
  text-decoration: none; display: inline-flex; align-items: center;
  min-height: 44px; }
.head-name:hover { color: var(--emerald); }
.head-logout, .logout-form { margin: 0; display: inline-flex; }
.head-my { color: var(--dim); text-decoration: none; font-size: 0.95rem;
  display: inline-flex; align-items: center; min-height: 44px; }
.head-my:hover { color: var(--emerald); }
.head-login { display: inline-flex; align-items: center; min-height: 44px; }
.link-btn { background: none; border: 0; padding: 0 2px; cursor: pointer;
  color: var(--dim); font: inherit; font-size: 0.95rem;
  display: inline-flex; align-items: center; min-height: 44px; }
.link-btn:hover { color: var(--emerald); }
.site-foot { border-top: 1px solid var(--line); padding: 30px 0 44px;
  color: var(--dim); font-size: 0.93rem; }
.site-foot strong { color: var(--ink); }
.site-foot p:last-child a { display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 2px; }
/* F19 social circle buttons: 44px hit area, small visual circle
   (::before, inset 4px = 36px), dark circle + light glyph, green
   hover and focus. Focus ring comes from the global
   a:focus-visible emerald outline; border-radius makes it round. */
.foot-social { display: flex; gap: 8px; align-items: center;
  margin: 8px 0 2px; }
.social-btn { position: relative; display: inline-flex;
  align-items: center; justify-content: center; width: 44px;
  height: 44px; border-radius: 50%; color: var(--ink);
  text-decoration: none; }
.social-btn::before { content: ""; position: absolute; inset: 4px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--panel-2);
  transition: border-color 0.18s ease, background 0.18s ease; }
.social-btn .social-icon { position: relative; width: 18px;
  height: 18px; display: block; }
.social-btn:hover { color: var(--emerald); }
.social-btn:hover::before { border-color: var(--emerald-deep);
  background: var(--panel-3); }
.social-btn:focus-visible { color: var(--emerald); }
@media (prefers-reduced-motion: reduce) {
  .social-btn::before { transition: none; } }

/* hero + doors */
.hero { padding: 64px 0 12px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 300px at 18% 0%,
    rgba(0, 230, 118, 0.09), transparent 70%);
  pointer-events: none; }
.hero-kicker { color: var(--emerald); letter-spacing: 0.18em;
  text-transform: uppercase; font-size: 0.8rem; font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin: 0 0 14px; }
.hero-sub { max-width: 44rem; font-size: 1.13rem; color: var(--ink); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 34px 0 8px; }
.door {
  display: block; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; color: var(--ink); text-decoration: none;
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 62%);
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.door:hover { border-color: var(--emerald-deep); transform: translateY(-3px);
  box-shadow: var(--shadow); }
.door-kicker { color: var(--emerald); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; margin: 0 0 6px; }
.door h2 { margin: 0 0 10px; font-size: 1.5rem; }
.door-meta { color: var(--dim); font-size: 0.93rem; }
.door-go { color: var(--emerald); font-weight: 700; }
.band { margin-top: 48px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; }
.step span { display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--emerald); color: var(--emerald); align-items: center;
  justify-content: center; font-weight: 800; margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { color: var(--dim); font-size: 0.94rem; margin: 0; }
.cta-band { margin-top: 8px; border: 1px solid var(--emerald-deep);
  border-radius: 16px; padding: 30px; text-align: center;
  background: linear-gradient(160deg, var(--panel-3), var(--panel) 70%);
  box-shadow: var(--glow); }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--dim); max-width: 34rem; margin-left: auto;
  margin-right: auto; }
.cta-band .btn { margin: 4px 4px 0; }

/* buttons / pills / bars */
.btn { display: inline-block;
  background: linear-gradient(180deg, #00e676, #00c853); color: #04150a;
  font-weight: 700; border: 1px solid var(--emerald-deep); border-radius: 10px;
  padding: 11px 20px; text-decoration: none; cursor: pointer; font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 24px rgba(0, 230, 118, 0.16);
  transition: background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease; }
.btn:hover { background: linear-gradient(180deg, #00e676, #00c853);
  border-color: var(--emerald-deep); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 28px rgba(0, 230, 118, 0.22); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink);
  border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(0, 230, 118, 0.07); color: var(--ink);
  border-color: var(--line-strong); box-shadow: none; }
.btn-small { padding: 7px 14px; font-size: 0.92rem; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; }
.btn-wide { width: 100%; text-align: center; }
.btn-danger { background: transparent; color: var(--danger);
  border-color: rgba(255, 107, 94, 0.55); box-shadow: none; }
.btn-danger:hover { background: rgba(255, 107, 94, 0.10);
  border-color: var(--danger); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none;
  box-shadow: none; }
.pill { display: inline-block; border: 1px solid var(--emerald-deep);
  color: var(--emerald); border-radius: 999px; padding: 1px 10px;
  font-size: 0.78rem; font-weight: 700; vertical-align: middle; }
.pill-dev { border-color: #6b7a6b; color: var(--dim); }
.pill-elective { border-color: var(--emerald-deep); color: var(--emerald);
  margin-left: 8px; }
.elective-note { margin-top: 16px; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--emerald);
  color: #04150a; font-weight: 700; padding: 10px 16px; z-index: 130;
  border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* hands-on exercises */
.exercise { border: 1px solid var(--emerald-deep); border-left: 4px solid var(--emerald);
  background: var(--panel-2); border-radius: 10px; padding: 16px 20px; margin: 22px 0; }
.exercise-kicker { color: var(--emerald); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 800; margin: 0 0 6px; }
.exercise ol { margin: 8px 0 4px; padding-left: 22px; }
.exercise li { margin-bottom: 6px; }

/* clinic take-home packs (Round 2 item 8): worksheet sheets */
.pack-challenge { border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); padding: 6px 20px 10px; margin: 14px 0; }
.pack-num { color: var(--emerald); }
.pack-continue { color: var(--dim); font-size: 0.94rem; }
.pack-spot ul { margin: 8px 0 4px; padding-left: 22px; }
.pack-spot li { margin-bottom: 6px; }

/* course extras: alignment + glossary */
.align-band p { max-width: 46rem; }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin: 0; }
.gloss-item { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.gloss-item dt { font-weight: 700; color: var(--ink); }
.gloss-item dd { margin: 2px 0 0; color: var(--dim); font-size: 0.95rem; }
@media (max-width: 820px) { .glossary { grid-template-columns: 1fr; } }
.bar { background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; height: 10px; overflow: hidden; margin: 10px 0 6px; }
.bar-fill { background: linear-gradient(90deg, var(--emerald-deep), var(--emerald));
  height: 100%; width: 0; transition: width 0.5s ease; }
.course-state, .track-progress { color: var(--dim); font-size: 0.9rem; }

/* catalog */
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.course-card { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease; }
.course-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.course-card h3 { margin: 2px 0 8px; font-size: 1.25rem; }
.course-card h3 a { color: var(--ink); text-decoration: none; }
.course-card h3 a:hover { color: var(--emerald); }
.course-cert { color: var(--emerald); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
.course-meta { color: var(--dim); font-size: 0.9rem; }
.dev-list { list-style: none; padding: 0; margin: 0 0 20px; }
.dev-list li { background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.dev-list p { color: var(--dim); margin: 4px 0 0; font-size: 0.94rem; }
.dev-domains { font-size: 0.88rem !important; }

/* course + lesson */
.module { margin-top: 28px; }
.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-list li { border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; background: var(--panel);
  transition: border-color 0.2s ease; }
.lesson-list li:hover { border-color: var(--emerald-deep); }
.lesson-list a { display: flex; gap: 14px; align-items: baseline;
  padding: 13px 16px; color: var(--ink); text-decoration: none; flex-wrap: wrap;
  min-height: 44px; }
.lesson-row { display: flex; gap: 14px; align-items: baseline;
  padding: 13px 16px; flex-wrap: wrap; }
.lesson-n { color: var(--emerald); font-weight: 800; }
.lesson-t { flex: 1; font-weight: 600; }
.lesson-m { color: var(--dim); font-size: 0.88rem; }
.lesson-done { color: var(--emerald); font-size: 0.88rem; font-weight: 700; }
.lesson-locked { opacity: 0.82; }
.lesson-lock { color: var(--dim); font-size: 0.88rem; font-weight: 700;
  display: inline-flex; gap: 6px; align-items: center; }
.lesson-lock svg, .row-lock svg { width: 14px; height: 14px; flex: none; }
.lesson-meta { color: var(--dim); }
.lesson h3 { margin-top: 26px; }
/* Wave 4 reading measure: prose holds a comfortable ~72ch line while
   exercises, callouts and checks stay wide as designed features. */
.lesson > p, .lesson > ul, .lesson > ol { max-width: 46rem; }
.lesson .exercise, .lesson .callout { max-width: 52rem; }
.lesson code { font-size: 0.92em; overflow-wrap: anywhere; }
.callout { border-radius: 10px; padding: 14px 18px; margin: 18px 0;
  border: 1px solid var(--line); background: var(--panel); }
.callout-tip { border-left: 4px solid var(--emerald); }
.callout-key { border-left: 4px solid var(--emerald); background: var(--panel-2); }
.callout-warn { border-left: 4px solid var(--danger); }
.lesson-nav { display: flex; gap: 18px; justify-content: space-between;
  flex-wrap: wrap; margin-top: 36px; border-top: 1px solid var(--line);
  padding-top: 18px; }

/* quizzes */
.q-block { background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.q-text { font-weight: 650; margin: 0 0 12px; }
.q-choices { display: grid; gap: 8px; }
.q-choice { text-align: left; background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px;
  cursor: pointer; font-size: 0.98rem; min-height: 44px;
  transition: border-color 0.15s ease, background-color 0.25s ease; }
.q-choice:hover { border-color: var(--emerald-deep); }
.q-choice.picked { border-color: var(--emerald); }
.q-choice.right { border-color: var(--emerald); background: rgba(0, 230, 118, 0.12); }
.q-choice.wrong { border-color: var(--danger); background: rgba(255, 107, 94, 0.10); }
.q-choice[disabled] { cursor: default; opacity: 0.85; }
.q-explain { color: var(--dim); margin: 12px 0 0; font-size: 0.95rem; }
.q-yours { margin: 12px 0 0; font-size: 0.95rem; font-weight: 650; }
.q-yours .yours-wrong { color: var(--danger); }
.q-yours .yours-right { color: var(--emerald); }
.q-result { margin-top: 18px; animation: page-in 0.35s ease both; }
.q-score { font-size: 1.08rem; font-weight: 700; }
.q-result .btn { margin-right: 10px; margin-top: 8px; }

/* Item 12 (Feature Wave 2026-11-09): 60-second skill checks —
   shells on / and /familia; questions render client-side into
   [data-skill-check] via /static/skill-checks.js, reusing the
   quiz block styles above. Estate palette only. */
.skill-check { margin-top: 26px; }
.skill-check > h3 { margin-bottom: 10px; }
.skill-check-course { color: var(--dim); font-size: 0.95rem; }

/* forms / verify */
label { display: block; font-weight: 650; margin: 16px 0 6px; }
input[type="text"], input[type="email"], input[type="password"],
input:not([type]), select {
  width: 100%; max-width: 430px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font-size: 1rem; display: block; margin-bottom: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; }
input:focus, select:focus { border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15); outline: none; }
textarea.batch-codes { width: 100%; max-width: 430px; background: var(--surface);
  color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 1rem; display: block; margin-bottom: 6px;
  font-family: inherit; }
textarea.batch-codes:focus { border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15); outline: none; }
.batch-table td .verify-ok, .batch-table td .verify-bad,
.batch-table td .verify-review { margin-top: 0; }
#cert-name, #v-code { max-width: 430px; }
.form-err { color: var(--danger); min-height: 1.2em; }
.form-note { color: var(--dim); font-size: 0.9rem; margin-top: 10px; }
.label-note { font-weight: 400; color: var(--dim); font-size: 0.88rem; }
.verify-ok { border: 1px solid var(--emerald-deep); background: var(--panel);
  border-radius: 12px; padding: 20px; margin-top: 22px; }
.verify-bad { border: 1px solid var(--danger); background: var(--panel);
  border-radius: 12px; padding: 20px; margin-top: 22px; }
code { background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 7px; }
.alert-err { border: 1px solid rgba(255, 107, 94, 0.55);
  border-left: 4px solid var(--danger); background: var(--panel);
  border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.alert-err[data-auth-alert] { scroll-margin-top: 110px; }
.alert-err-submit { margin: 14px 0 4px; }
.field-hint { color: var(--dim); font-size: 0.9rem; margin: 2px 0 10px; }
.field-hint.is-satisfied { color: var(--emerald); font-weight: 650; }
.alert-ok { border: 1px solid var(--emerald-deep);
  border-left: 4px solid var(--emerald); background: var(--panel-2);
  border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }

/* ---------------- v2: front door / auth ---------------- */
.door-wrap { max-width: 1020px; }
.door-hero { text-align: center; padding-top: 44px; }
.door-hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.door-hero .hero-sub { margin-left: auto; margin-right: auto; }
.door-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  margin: 34px 0 6px; align-items: start; }
.door-logo { width: 84px; height: auto; border-radius: 16px;
  margin-bottom: 16px; box-shadow: var(--shadow); }
.auth-card { background: linear-gradient(165deg, var(--panel-2), var(--panel) 70%);
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow); }
.auth-card h2 { margin-top: 0; }
.auth-card input { max-width: none; }
.auth-card .btn { margin-top: 10px; }
.auth-switch { color: var(--dim); font-size: 0.93rem; margin-top: 16px; }
.auth-wrap { max-width: 520px; }
.auth-wrap .auth-card { margin-top: 26px; }
.auth-solo { max-width: 520px; margin: 26px auto 0; }
.auth-wide { max-width: 660px; margin: 26px auto 0; }
.form-link { color: var(--dim); font-size: 0.93rem; margin-top: 14px; }
.sep-note { border: 1px solid var(--line); border-left: 4px solid var(--emerald);
  background: var(--panel); border-radius: 10px; padding: 14px 18px;
  margin: 22px 0; font-size: 0.97rem; }
.sep-note strong { color: var(--emerald); }
.path-choices { display: grid; gap: 12px; margin: 6px 0 4px; }
label.path-card { display: block; cursor: pointer; margin: 0; font-weight: 400; }
.path-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.path-card-in { display: block; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; background: var(--panel);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease; }
.path-card-t { display: block; font-size: 1.08rem; font-weight: 700;
  margin-bottom: 4px; }
.path-card-b { display: block; color: var(--dim); font-size: 0.93rem; }
.path-card:hover .path-card-in { border-color: var(--line-2); }
.path-card input:checked + .path-card-in { border-color: var(--emerald);
  background: var(--panel-2); box-shadow: var(--glow); }
.path-card input:focus-visible + .path-card-in {
  outline: 2px solid var(--emerald); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 650; margin-bottom: 8px; padding: 0; }

/* ---------------- v2: dashboard ---------------- */
.dash-head { padding-top: 34px; }
.dash-sub { color: var(--dim); max-width: 44rem; }
.continue-card { border: 1px solid var(--emerald-deep); border-radius: 14px;
  padding: 20px 22px; margin: 20px 0 4px;
  background: linear-gradient(150deg, var(--panel-3), var(--panel) 72%);
  box-shadow: var(--glow); }
.continue-label { color: var(--emerald); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 800; margin: 0 0 4px; }
.continue-t { font-size: 1.22rem; font-weight: 750; margin: 0 0 2px; }
.continue-s { color: var(--dim); margin: 0 0 6px; font-size: 0.95rem; }
.continue-card .btn { margin-top: 6px; }
section.path-card { border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; margin: 26px 0;
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 72%); }
section.path-add { border-style: dashed; }
.path-head { display: flex; gap: 22px; align-items: center;
  justify-content: space-between; flex-wrap: wrap; }
.path-head h2 { margin: 0 0 4px; }
.path-sub { color: var(--dim); margin: 0; font-size: 0.95rem; }
.ring { position: relative; width: 88px; height: 88px; flex: none; }
.ring svg { width: 88px; height: 88px; display: block; }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--emerald); stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center; }
.ring-num { position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; font-weight: 800;
  font-size: 1.02rem; }
.course-rows { margin-top: 20px; display: grid; gap: 8px; }
.course-row { display: flex; gap: 10px 16px; align-items: baseline;
  flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; background: var(--panel); }
.course-row .row-t { flex: 1; font-weight: 600; min-width: 180px; }
.course-row .row-t a { color: var(--ink); text-decoration: none; }
.course-row .row-t a:hover { color: var(--emerald); }
.course-row .row-s { color: var(--dim); font-size: 0.9rem; }
.course-row .row-a { font-weight: 700; font-size: 0.93rem; }
.course-row.is-current { border-color: var(--emerald-deep);
  box-shadow: var(--glow); }
.course-row.is-done .row-s { color: var(--emerald); }
.course-row.is-locked { opacity: 0.82; }
.row-lock { color: var(--dim); display: inline-flex; align-items: center; }
.final-row { border-style: dashed; }
.dash-cert { border: 1px solid var(--line); border-left: 3px solid #d9a441;
  border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px; background: var(--panel); }
.dash-cert p { margin: 0 0 4px; }
.claim-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.claim-form label { margin: 0 0 6px; }
.claim-form input { margin-bottom: 0; }
.promo-kicker { color: var(--emerald); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 800; margin: 0 0 4px; }
.promo-applied { border: 1px solid var(--emerald-deep);
  background: var(--panel-2); border-radius: 12px; padding: 16px 20px; }
.promo-applied strong { color: var(--emerald); }
.promo-box { border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; background: var(--panel); }
.promo-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.promo-form input { margin-bottom: 0; }
.import-box { border: 1px solid var(--emerald-deep); border-radius: 14px;
  padding: 22px 26px; margin: 26px 0 4px; background: var(--panel-2); }
.import-box h2 { margin-top: 0; }

/* ---------------- v2: profile / privacy / lock ---------------- */
.profile-card { border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 28px; margin: 22px 0; background: var(--panel); }
.profile-card h2 { margin-top: 0; }
.danger-zone { border-color: rgba(255, 107, 94, 0.45); }
.lock-wrap { padding-top: 52px; }
.lock-card { max-width: 580px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: 16px; padding: 38px 34px;
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 70%);
  box-shadow: var(--shadow); }
.lock-ic { color: var(--emerald); margin-bottom: 8px; }
.lock-ic svg { width: 42px; height: 42px; }
.lock-card h1 { font-size: 1.7rem; }
.lock-card .btn { margin-top: 8px; }
.privacy-list { max-width: 46rem; }

/* certificates — gold lives here, and only here */
.cert-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cert-card { background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; }
.cert-card h3 { margin-top: 0; }
.cert-card-gold { border-color: #d9a441; }
.cert-card-gold h3 { color: #d9a441; }
.cert-wrap { padding-top: 34px; }
.cert-sheet {
  position: relative;
  background: #0a0f0a; border: 3px double #d9a441; border-radius: 8px;
  padding: 52px 48px; text-align: center; max-width: 840px; margin: 0 auto;
  animation: cert-in 0.7s ease both; }
/* Certificate reveal: a quiet settle, never a show. Reduced-motion
   visitors get the sheet static (global rule), fully visible either way. */
@keyframes cert-in {
  from { opacity: 0; transform: translateY(10px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); } }
.cert-sheet::after { content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(217, 164, 65, 0.45); border-radius: 4px;
  pointer-events: none; }
.cert-org { letter-spacing: 0.3em; font-weight: 800; font-size: 1.35rem;
  color: #d9a441; margin: 0; }
.cert-sub { color: var(--dim); margin: 4px 0 0; }
.cert-rule { width: 120px; height: 2px; background: #d9a441;
  margin: 20px auto 22px; }
.cert-kind { text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ink); font-size: 0.95rem; margin: 0 0 14px; }
.cert-seal { width: 76px; height: 76px; margin: 0 auto 20px;
  border: 2px solid #d9a441; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 4px #0a0f0a, inset 0 0 0 5px rgba(217, 164, 65, 0.6); }
.cert-seal span { color: #d9a441; font-weight: 800; letter-spacing: 0.12em;
  font-size: 1.15rem; }
.cert-this { color: var(--dim); margin: 0; }
.cert-name { font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem; font-weight: 700; margin: 6px 0 14px;
  color: var(--ink); }
.cert-signature { font-family: "Snell Roundhand", "Brush Script MT",
  "Segoe Script", cursive; font-size: 1.5rem; color: var(--ink);
  margin: 26px 0 0; }
.cert-for { color: var(--dim); max-width: 34rem; margin: 0 auto 10px; }
.cert-title { font-size: 1.7rem; font-weight: 800; color: #d9a441; margin: 0 0 30px; }
.cert-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  color: var(--dim); font-size: 0.9rem; border-top: 1px solid var(--line);
  padding-top: 18px; }
.cert-meta span + span::before { content: "·"; margin-right: 10px; }
.cert-sign { margin-top: 22px; font-weight: 650; }
.cert-fine { color: var(--dim); font-size: 0.82rem; margin-bottom: 0; }
.cert-actions { text-align: center; margin-top: 24px; }
/* Item 10 (2026-11-03): the verify QR sits on the sheet itself, in
   the certificate's own ink — deep gold modules on paper stock. */
.cert-qr-block { margin-top: 26px; }
.cert-qr { width: 132px; height: 132px; border: 1px solid #b9ac83;
  border-radius: 6px; }
.cert-qr-cap { color: var(--dim); font-size: 0.85rem; margin: 8px 0 0; }
/* Item 9 (2026-11-03): retained last-attempt breakdown on the
   assessment page reuses the .breakdown/.bd-* rules above. */
.last-breakdown { margin: 1.2rem 0; }

@media (max-width: 820px) {
  .doors, .course-grid, .cert-cards, .door-panels { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  h1 { font-size: 1.85rem; }
  .cert-sheet { padding: 34px 20px; }
  .cert-name { font-size: 1.8rem; }
  section.path-card, .auth-card { padding: 22px; }
}
@media print {
  .site-head, .site-foot, .cert-actions, .lesson-nav, .check-band,
  .skip, .academy-splash, .paper-head, .catalog-tools { display: none !important; }
  .bar-fill, .bd-fill { print-color-adjust: exact;
    -webkit-print-color-adjust: exact; }
  main { animation: none; }
  .cert-sheet { animation: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
  main { padding-bottom: 0; }
  .lead, .lesson-meta, .crumb, .q-explain, .q-yours, .note { color: #0a0d0a; }
  .callout, .exercise, .q-block { background: #fff; border-color: #9db8a4;
    color: #000; break-inside: avoid; }
  .exercise-kicker { color: #000; }
  /* Premium token pass: screen hairlines now use the translucent
     estate line, which is too light on paper — pin print values. */
  .gloss-item { border-bottom-color: #9db8a4; }
  .bd-bar { background: #9db8a4; }
  .q-choice { background: #fff; color: #000; border-color: #9db8a4; }
  /* The certificate prints as a paper piece: cream stock, dark ink,
     deep gold for text so every pairing stays high-contrast. */
  .cert-wrap { padding-top: 0; }
  .cert-sheet { background: #fffdf4; color: #1c1a14; max-width: none;
    border-color: #d9a441; print-color-adjust: exact;
    -webkit-print-color-adjust: exact; }
  .cert-org, .cert-title, .cert-seal span { color: #7c5a10; }
  .cert-seal { border-color: #7c5a10;
    box-shadow: inset 0 0 0 4px #fffdf4, inset 0 0 0 5px rgba(124, 90, 16, 0.6); }
  .cert-rule { background: #7c5a10; }
  .cert-kind, .cert-name, .cert-signature { color: #1c1a14; }
  .cert-sub, .cert-this, .cert-for, .cert-meta, .cert-fine { color: #3d382c; }
  .cert-meta { border-top-color: #b9ac83; }
  .cert-qr { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .cert-qr-cap { color: #3d382c; }
  /* Take-home packs print as clean sheets: no nav chrome (the
     header/footer are already hidden above), no on-screen-only
     helper lines, compact type so a pack fits one to two sheets. */
  .pack-noprint { display: none !important; }
  .pack-sheet { font-size: 11pt; }
  .pack-sheet h1 { font-size: 1.6rem; }
  .pack-challenge { background: #fff; border-color: #9db8a4; color: #000;
    break-inside: avoid; padding: 2px 14px 6px; margin: 10px 0; }
  .pack-challenge p, .pack-continue { color: #000; }
  .pack-num { color: #000; }
  .pack-spot { break-inside: avoid; }
}

/* --------------------- papers, modes, owner audit --- */
.paper-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0 0 1rem; }
.paper-code, .paper-clock, .paper-mode { font-size: .85rem; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; }
.paper-clock { color: var(--ink); border-color: var(--emerald-deep); font-variant-numeric: tabular-nums; }
/* Wave 4: on wide screens the paper header (code, mode, clock) stays
   in view under the site header for the whole sitting — calm clarity
   under pressure; the clock itself gets flagship weight. */
@media (min-width: 821px) {
  .paper-head { position: sticky; top: 78px; z-index: 30;
    background: rgba(5, 8, 6, 0.88); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); padding: 0.55rem 0.8rem;
    border: 1px solid var(--line); border-radius: 999px; }
  .paper-clock { font-size: 1rem; font-weight: 800; padding: .3rem .9rem; }
}
.q-loading { color: var(--dim); display: flex; align-items: center;
  gap: 12px; padding: 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--panel); }
.q-loading::before { content: ""; width: 20px; height: 20px; flex: none;
  border-radius: 50%; border: 2px solid var(--line-2);
  border-top-color: var(--emerald); animation: w4-spin 0.9s linear infinite; }
@keyframes w4-spin { to { transform: rotate(360deg); } }
.catalog-none { border: 1px dashed var(--line-2); border-radius: 12px;
  background: var(--panel); color: var(--dim); text-align: center;
  padding: 30px 22px; margin-top: 18px; font-size: 1rem; }
.q-flags { border: 1px solid var(--line); border-left: 3px solid var(--danger); padding: .6rem .8rem; border-radius: 6px; }
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; }
.mode-card { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; background: var(--panel); }
.mode-card h3 { margin-top: 0; }
.attempt-status { color: var(--dim); font-size: .9rem; }
.breakdown { margin: .8rem 0; display: grid; gap: .45rem; }
.bd-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr auto; gap: .8rem; align-items: center; }
.bd-label { font-size: .92rem; }
.bd-bar { display: block; height: .55rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.bd-fill { display: block; height: 100%; background: var(--emerald); }
.bd-num { font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--dim); }
.bd-h { margin: 1rem 0 .4rem; }
.bd-note { max-width: 46rem; }
.tm-band { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; color: var(--dim); font-size: .9rem; max-width: 46rem; }
.catalog-tools { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 1.2rem; }
.catalog-tools input, .catalog-tools select { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
.catalog-tools input { flex: 1 1 240px; }
.ct-field { display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.93rem; color: var(--dim); margin: 0; }
.ct-field input, .ct-field select { margin-bottom: 0; }
.cert-banner { border-radius: 8px; padding: .7rem 1rem; margin: 0 0 1rem; font-weight: 600; }
.banner-review { border: 1px solid #7c5a10; color: #d9a441; }
.banner-revoked { border: 1px solid var(--danger); color: var(--danger); }
.verify-review { border-color: #7c5a10; }
.my-track { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.my-line { margin: .3rem 0; }
.my-courses { display: grid; gap: .4rem; margin-top: .8rem; }
.my-course { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; }
.my-course-t { font-weight: 600; }
.my-course-c { font-weight: 700; padding: 11px 4px; margin: -11px -4px;
  display: inline-block; }
.my-course-s { color: var(--dim); font-size: .9rem; margin-left: auto; }
.owner-table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; }
.owner-table th, .owner-table td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.owner-form { display: inline-block; margin: 0 .3rem .3rem 0; }
@media (max-width: 640px) {
  .bd-row { grid-template-columns: 1fr; gap: .2rem; }
  .my-course-s { margin-left: 0; }
}

/* ---------------- v2: entry splash (estate glitch pattern) ----
   Black / emerald / white ONLY. The lifecycle is exactly 3.8 s
   (splash.js): fade begins at 3.45 s, element gone at 3.8 s.
   Markup ships hidden — no JavaScript, no splash, no block. */
.academy-splash { position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: #020503; text-align: center;
  overflow: hidden; transition: opacity 0.35s ease; }
.academy-splash[hidden] { display: none; }
.academy-splash.is-exiting { opacity: 0; }
html.splash-lock, body.splash-lock { overflow: hidden !important; }
.academy-splash__inner { display: flex; flex-direction: column;
  align-items: center; gap: 20px; }
.academy-splash__logo { position: relative; width: min(300px, 64vw);
  aspect-ratio: 3 / 2; overflow: hidden; flex: none;
  animation: academy-fade-in 0.5s ease both; }
.academy-splash__logo img { position: absolute; inset: 0; width: 100%;
  height: 100%; object-fit: cover; object-position: center 56%;
  display: block; }
.academy-splash__slice { opacity: 0.75; }
.academy-splash__slice--one { clip-path: inset(10% 0 66% 0);
  animation: academy-slice-a 2.7s steps(2, end) infinite; }
.academy-splash__slice--two { clip-path: inset(46% 0 32% 0);
  animation: academy-slice-b 3.1s steps(2, end) infinite; }
.academy-splash__slice--three { clip-path: inset(74% 0 6% 0);
  animation: academy-slice-a 2.3s steps(2, end) infinite reverse; }
.academy-splash__word { position: relative; margin: 0; color: #f4fff6;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.2rem, 5.6vw, 2.5rem); letter-spacing: 0.2em;
  line-height: 1.25; }
.academy-splash__word span { display: inline-block; opacity: 0;
  animation: academy-letter-in 0.45s ease forwards; }
.academy-splash__word .sd1 { animation-delay: 0.62s; }
.academy-splash__word .sd2 { animation-delay: 0.665s; }
.academy-splash__word .sd3 { animation-delay: 0.71s; }
.academy-splash__word .sd4 { animation-delay: 0.755s; }
.academy-splash__word .sd5 { animation-delay: 0.80s; }
.academy-splash__word .sd6 { animation-delay: 0.845s; }
.academy-splash__word .sd7 { animation-delay: 0.89s; }
.academy-splash__word .sd8 { animation-delay: 0.935s; }
.academy-splash__word .sd9 { animation-delay: 0.98s; }
.academy-splash__word .sd10 { animation-delay: 1.025s; }
.academy-splash__word .sd11 { animation-delay: 1.07s; }
.academy-splash__word .sd12 { animation-delay: 1.115s; }
.academy-splash__word .sd13 { animation-delay: 1.16s; }
.academy-splash__word .sd14 { animation-delay: 1.205s; }
.academy-splash__word .sd15 { animation-delay: 1.25s; }
.academy-splash__word .sd16 { animation-delay: 1.295s; }
.academy-splash__word::before,
.academy-splash__word::after { content: attr(data-text);
  position: absolute; inset: 0; letter-spacing: 0.2em;
  pointer-events: none; }
.academy-splash__word::before { color: #ffffff; opacity: 0;
  clip-path: inset(8% 0 62% 0);
  animation: academy-ghost-a 2.8s steps(2, end) 0.9s infinite; }
.academy-splash__word::after { color: var(--emerald); opacity: 0;
  clip-path: inset(58% 0 10% 0);
  animation: academy-ghost-b 3.3s steps(2, end) 1.1s infinite; }
.academy-splash__welcome { margin: 0; color: var(--emerald);
  text-transform: uppercase; letter-spacing: 0.42em; font-weight: 700;
  font-size: clamp(0.78rem, 2.6vw, 0.95rem); opacity: 0;
  animation: academy-fade-up 0.6s ease 1.55s forwards; }
.academy-splash__trace { width: min(340px, 70vw); height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald),
    transparent); transform: scaleX(0); transform-origin: center;
  animation: academy-trace 0.9s ease 0.25s forwards; }
.academy-splash__skip { margin: 0; color: var(--dim);
  font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0;
  animation: academy-fade-in 0.6s ease 1.3s forwards; }
@keyframes academy-letter-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); } }
@keyframes academy-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes academy-fade-up {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); } }
@keyframes academy-trace {
  from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes academy-slice-a {
  0%, 88% { transform: translateX(0); }
  90% { transform: translateX(-7px); }
  94% { transform: translateX(5px); }
  100% { transform: translateX(0); } }
@keyframes academy-slice-b {
  0%, 82% { transform: translateX(0); }
  85% { transform: translateX(8px); }
  91% { transform: translateX(-4px); }
  100% { transform: translateX(0); } }
@keyframes academy-ghost-a {
  0%, 86% { opacity: 0; transform: translateX(0); }
  88% { opacity: 0.55; transform: translateX(-4px); }
  93% { opacity: 0.3; transform: translateX(2px); }
  100% { opacity: 0; transform: translateX(0); } }
@keyframes academy-ghost-b {
  0%, 78% { opacity: 0; transform: translateX(0); }
  81% { opacity: 0.5; transform: translateX(4px); }
  87% { opacity: 0.25; transform: translateX(-2px); }
  100% { opacity: 0; transform: translateX(0); } }
/* Reduced motion: the global rule above kills every animation,
 * which would leave the letter spans at their pre-animation
 * opacity — restate the splash's resting state so the brief
 * static version reads correctly. */
@media (prefers-reduced-motion: reduce) {
  .academy-splash__word span { opacity: 1; }
  .academy-splash__welcome, .academy-splash__skip { opacity: 1; }
  .academy-splash__trace { transform: scaleX(1); }
  .academy-splash__word::before, .academy-splash__word::after {
    opacity: 0; }
}

/* R3 item 5: living numbers (black/white/green only) */
.living-grid .step { text-align: left; }
.living-num { display: block; font-size: 2rem; font-weight: 800;
  color: var(--emerald); line-height: 1.1; margin-bottom: 6px;
  border: none !important; width: auto !important; height: auto !important; }
/* R3 item 14: profile notifications checkbox line */
.check-line { display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 14px; cursor: pointer; }
.check-line input { margin-top: 5px; accent-color: var(--emerald-deep); }

/* Round 2: public listings (Graduate Registry + Expert
   Leaderboard) and their account switches. Black / white /
   emerald only — gold stays certificate-only. */
.social-form { display: grid; gap: 14px; max-width: 44rem; }
.social-opt { display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; background: var(--panel); cursor: pointer; }
.social-opt input { margin-top: 5px; accent-color: var(--emerald-deep);
  width: 18px; height: 18px; flex: none; }
.social-opt span { color: var(--dim); font-size: 0.95rem; }
.social-opt strong { color: var(--ink); }
.grad-list { display: grid; gap: 8px; margin: 22px 0; }
.grad-row { display: flex; gap: 10px 18px; align-items: baseline;
  flex-wrap: wrap; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px;
  background: var(--panel); }
.grad-name { font-weight: 700; font-size: 1.05rem; }
.grad-meta { color: var(--dim); flex: 1; min-width: 200px; }
.grad-verify { font-weight: 700; }
.board-aggregate { font-size: 1.08rem; border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 14px 18px;
  background: var(--panel-2); max-width: 44rem; }
.board-table { border-collapse: collapse; width: 100%;
  margin: 22px 0 10px; }
.board-table th, .board-table td { border: 1px solid var(--line);
  padding: .55rem .7rem; text-align: left; vertical-align: top; }
.board-table th { color: var(--emerald); font-size: 0.92rem;
  letter-spacing: 0.02em; }
.empty-note { color: var(--dim); border: 1px dashed var(--line-2);
  border-radius: var(--radius); padding: 18px; max-width: 44rem; }

/* Layout simplification (2026-11-02): merged pages carry anchored
   sections — they clear the sticky header when jumped to; the
   account section nav reuses the header nav treatment; spacing
   stays on the 8px rhythm. */
section[id] { scroll-margin-top: 88px; }
.acct-nav { display: flex; gap: 8px 24px; flex-wrap: wrap;
  padding: 16px 0 8px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line); }
.acct-nav a { color: var(--dim); text-decoration: none;
  font-size: 0.95rem; display: inline-flex; align-items: center;
  min-height: 44px; }
.acct-nav a:hover { color: var(--emerald); }

/* ================= PREMIUM-2026-11-03 (Estate Premium x4, Sweep 3) ==
   Finish-only layer: same estate design language as the site and
   Command sweeps. Screen-only, so the print sheets (certificates,
   take-home packs, lesson print) keep their exact paper rendering.
   No certificate (.cert-*) rules here by design — the certificate
   is settled and its gold stays exactly as it was. */
@media screen {
  /* header / footer chrome */
  .site-head { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 32px rgba(0, 0, 0, 0.28); }
  .site-foot { border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(0, 230, 118, 0.05); }
  .head-nav a, .acct-nav a, .head-my, .head-name, .link-btn {
    transition: color 0.16s ease; }

  /* card depth: inset top highlight + the estate shadow stack */
  .course-card, .step, .q-block, .callout, .exercise, .pack-challenge,
  .mode-card, .profile-card, .promo-box, .promo-applied, .import-box,
  .board-aggregate, .verify-ok, .verify-bad, .cert-card, .social-opt,
  .path-card-in, .dev-list li, .catalog-none, .empty-note, .q-loading {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35); }
  .q-block, .verify-ok, .verify-bad, .promo-box, .promo-applied,
  .path-card-in, .catalog-none, .q-loading { border-radius: 14px; }

  /* linked / interactive cards: line-strong border + a 2px lift */
  .course-card { transition: border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease; }
  .course-card:hover { border-color: var(--line-strong);
    transform: translateY(-2px); }
  .course-row, .grad-row, .my-course, .mode-card, .social-opt,
  .dev-list li { transition: border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease; }
  .course-row:hover, .grad-row:hover, .my-course:hover,
  .mode-card:hover, .social-opt:hover, .dev-list li:hover {
    border-color: var(--line-strong); }
  .lesson-list li { transition: border-color 0.18s ease,
    box-shadow 0.18s ease; }
  .lesson-list li:hover { border-color: var(--line-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35); }

  /* /my + /account chrome (same stylesheet as the public pages) */
  .my-course { background: var(--surface); border-radius: 10px; }
  .my-track { border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .acct-nav { border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(0, 230, 118, 0.05); }
  .dash-cert, .promo-box, .import-box, .profile-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35); }

  /* tables: hairline row separators, eyebrow headers on surface,
     row hover tint — owner tables and the public board alike */
  .owner-table th, .owner-table td, .board-table th, .board-table td {
    border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .owner-table th, .board-table th { background: var(--surface);
    color: var(--emerald); text-transform: uppercase;
    letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; }
  .owner-table tbody tr:hover td, .board-table tbody tr:hover td,
  .owner-table tr:hover td, .board-table tr:hover td {
    background: rgba(0, 230, 118, 0.04); }

  /* catalog tools join the estate input system */
  .catalog-tools input, .catalog-tools select {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 10px; }
  .catalog-tools input:focus, .catalog-tools select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15); outline: none; }

  /* quiz choices: button radius + a whisper of hover tint on
     live choices only — graded right/wrong tints are untouched */
  .q-choice { border-radius: 10px; }
  .q-choice:not([disabled]):hover { background: rgba(0, 230, 118, 0.04); }

  /* lesson reading surface: readability is the finish here —
     a calmer prose rhythm inside the existing 46rem measure */
  .lesson { line-height: 1.7; }
  .lesson h2, .lesson h3 { letter-spacing: -0.01em; line-height: 1.25; }
  .lesson > p { margin-bottom: 16px; }
  .lesson-nav { border-top: 1px solid rgba(255, 255, 255, 0.06); }

  /* media joins the card geometry */
  .door-logo { border: 1px solid var(--line); border-radius: 14px; }

  @media (prefers-reduced-motion: reduce) {
    .course-card:hover, .door:hover, .btn:hover { transform: none; }
  }
}

/* ================= M-18 ICON STATE-MORPHS (2026-11-07) ==========
   The icon layer of the estate motion standard: an icon that
   represents a state change animates between its states instead
   of swapping static pictures. Academy honest-fit: only two of
   the six sub-patterns have a genuine control here — (b) the
   download story-arc on the certificate print button (the
   certificate's real save/print affordance) and (d) search<->X
   on the catalog search field's clear control. Play/pause,
   theme, send and unlock have no genuine Academy control (see
   the lane record) and were NOT invented. CSS/SVG transforms,
   stroke-dashoffset and opacity only; black/white/green via
   currentColor on the existing ink; no new assets. The global
   reduced-motion rule at the top of this file already collapses
   every transition/animation below to an instant swap; the
   explicit block at the end restates the resting states. */

/* (b) download story-arc — certificate print button */
.js-print { display: inline-flex; align-items: center; gap: 10px; }
.m18-dl { width: 20px; height: 20px; flex: none; display: block; }
.m18-dl-ring { stroke-dashoffset: 56.6; }
.m18-dl-tick { stroke-dashoffset: 12; }
.js-print.is-morphing .m18-dl-arrow {
  animation: m18-dl-arrow 1.2s ease both; }
.js-print.is-morphing .m18-dl-ring {
  animation: m18-dl-ring 1.2s ease both; }
.js-print.is-morphing .m18-dl-tick {
  animation: m18-dl-tick 1.2s ease both; }
@keyframes m18-dl-arrow {
  0% { transform: translateY(-3px); opacity: 0; }
  18% { transform: translateY(0); opacity: 1; }
  30% { transform: translateY(1px); opacity: 1; }
  38%, 100% { transform: translateY(3px); opacity: 0; } }
@keyframes m18-dl-ring {
  0%, 30% { stroke-dashoffset: 56.6; opacity: 1; }
  78%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes m18-dl-tick {
  0%, 80% { stroke-dashoffset: 12; }
  96%, 100% { stroke-dashoffset: 0; } }
/* Resting "done" state after the story: the drawn tick over the
   completed ring, held briefly by app.js, then back to rest. */
.js-print.is-done .m18-dl-arrow { opacity: 0; }
.js-print.is-done .m18-dl-ring { stroke-dashoffset: 0; opacity: 0.35; }
.js-print.is-done .m18-dl-tick { stroke-dashoffset: 0; }

/* (d) search<->X — catalog search clear control */
.m18-search-wrap { position: relative; display: flex; flex: 1 1 240px; }
.m18-search-wrap input { flex: 1 1 auto; padding-right: 46px; }
/* The morph button is the field's one clear affordance; the
   native search clear (a second, static X) is retired so the
   field carries exactly one clear control. */
.m18-search-wrap input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; }
.m18-clear { position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%; padding: 0;
  color: var(--muted); cursor: pointer; }
.m18-clear[hidden] { display: none; }
.m18-clear:hover { color: var(--emerald); }
.m18-sx { width: 20px; height: 20px; display: block; }
.m18-sx-circle { transition: stroke-dashoffset 0.4s ease; }
.m18-sx-handle { transition: transform 0.4s ease, opacity 0.4s ease;
  transform-box: fill-box; transform-origin: 0% 0%; }
.m18-sx-x1, .m18-sx-x2 { transition: stroke-dashoffset 0.3s ease 0.12s; }
.m18-clear.is-x .m18-sx-circle { stroke-dashoffset: 40.9; }
.m18-clear.is-x .m18-sx-handle { transform: rotate(-90deg); opacity: 0; }
.m18-clear.is-x .m18-sx-x1, .m18-clear.is-x .m18-sx-x2 {
  stroke-dashoffset: 0; }

/* Reduced motion: transitions/animations are already none under
   the global rule; restate it for the morph parts so every state
   below is reached by instant swap, exactly as M-18 requires. */
@media (prefers-reduced-motion: reduce) {
  .m18-dl-arrow, .m18-dl-ring, .m18-dl-tick,
  .m18-sx-circle, .m18-sx-handle, .m18-sx-x1, .m18-sx-x2 {
    transition: none !important; animation: none !important; }
}

/* F7 (2026-11-07): Owner-Track completion badge surfaces. */
.badge-card { margin: 22px 0 6px; }
.badge-img { max-width: 100%; height: auto; border-radius: 12px;
  box-shadow: var(--card-shadow); }
.badge-snippet { background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; overflow-x: auto;
  font-size: 0.85rem; white-space: pre-wrap; word-break: break-all; }

/* NIGHT-WATCH-2026-11-08 (DESIGN C.4, optional-if-clean): the
   M-13 shake on the existing auth-refusal alert. Progressive
   enhancement only — app.js adds .nw-shake after focusing the
   alert; the alert text and the generic refusal are untouched,
   and the global reduced-motion kill-switch above already
   neutralizes it for reduced-motion visitors. */
@keyframes nw-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px); }
  45% { transform: translateX(6px); }
  70% { transform: translateX(-4px); }
  85% { transform: translateX(3px); }
}
.alert-err.nw-shake { animation: nw-shake 350ms ease; }
