/* tokens.css */

:root {
  --navy: #1A2B4A; --navy-deep: #0E1B33; --orange: #E87722; --orange-d: #CF6716; --orange-ink: #A8500F;
  --lblue: #CCDDEE; --charcoal: #4A5568; --ink: #1F2933; --gray: #F2F4F7; --border: #D0D5DD; --paper: #FFFFFF;
  --fig-blue: #2D6BD2; --fig-amber: #8F5E00; --fig-grey: #676D7B; --fig-grid: #9CA3AF; --fig-red: #C62828;
  --pass-bg: #C8E6C9; --pass-ink: #1B5E20; --caution-bg: #FFF59D; --fail-bg: #FFCDD2; --fail-ink: #B71C1C;
  --info-bg: #EDF2F9; --orange-soft: #FFF3E8;
  --focus: var(--navy);
  --font-ui: 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1180px; --measure: 68ch; --reading-w: 760px; --radius: 12px;
  color-scheme: light;
}

/* fonts.css */

@font-face { font-family: 'Inter Variable'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Variable'; font-style: italic; font-weight: 100 900; font-display: optional; src: url('/assets/fonts/inter-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/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: optional; src: url('/assets/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: optional; src: url('/assets/fonts/source-serif-4-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

/* base.css */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { font-family: var(--font-ui); color: var(--charcoal); background: var(--paper); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a, .prose a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg, canvas, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -.01em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.15rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-navy :focus-visible, .hero :focus-visible, footer :focus-visible { outline-color: var(--lblue); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem .8rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: var(--orange-ink); }
.muted { color: var(--charcoal); }
.small { font-size: .9rem; }
.tnum { font-variant-numeric: tabular-nums; }

.print-notice { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.08rem; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.brand .mark { display: inline-block; background: var(--navy); color: var(--orange); font-weight: 800; border-radius: 6px; padding: 1px 7px; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { display: block; padding: .55rem .8rem; font-size: .92rem; font-weight: 600; color: var(--navy); border-radius: 8px; }
.nav-links a:hover { color: var(--orange-ink); }
.nav-links a[aria-current="page"] { color: var(--orange-ink); }
.nav-cta { background: var(--orange); color: var(--navy) !important; padding: .55rem 1.1rem !important; border-radius: 8px; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--navy); color: #fff !important; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-menu a { display: block; padding: .85rem 24px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gray); }
.mobile-menu.open { display: block; }

@media (max-width: 1000px) { .nav-links a { padding-left: .45rem; padding-right: .45rem; } }
@media (max-width: 900px) { .nav-links { display: none; } .hamburger { display: block; } }

.hero { background: linear-gradient(165deg, #0E1B33 0%, #1A2B4A 62%, #16294a 100%); color: #fff; padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(204,221,238,.03) 0, rgba(204,221,238,.03) 1px, transparent 1px, transparent 4px); opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--orange); }
.hero h1 { color: #fff; max-width: 20ch; margin: .6rem 0; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p.lead { color: #c9d6e6; font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 62ch; margin-bottom: 1.4rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero .stage { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); margin-top: 24px; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font-size: .8rem; font-weight: 600; background: rgba(204,221,238,.14); color: #e6eef8; border: 1px solid rgba(204,221,238,.3); border-radius: 999px; padding: .32rem .8rem; }
.chip.light { background: var(--gray); color: var(--navy); border-color: var(--border); }

section.block { padding: 56px 0; }
section.block.alt { background: var(--gray); }
.sec-head { max-width: 62ch; margin-bottom: 1.6rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 10px 30px -18px rgba(14,27,51,.35); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: .4rem 0 0; }
.card .still { border: 1px solid var(--border); border-radius: 8px; margin: 0 0 12px; }

footer.site { background: var(--navy-deep); color: #c9d6e6; padding: 48px 0 24px; margin-top: 64px; font-size: .92rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer.site h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
footer.site a { display: block; color: #c9d6e6; padding: .2rem 0; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .legal { border-top: 1px solid rgba(204,221,238,.18); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
footer.site .brand { color: #fff; }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } .wrap { padding: 0 16px; } }

.flash { padding: .7rem 1rem; border-radius: 8px; margin: 12px 0; border: 1px solid var(--border); background: var(--info-bg); color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.flash.ok { background: var(--pass-bg); } .flash.warn { background: var(--caution-bg); } .flash.err { background: var(--fail-bg); }
.flash button { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: inherit; }

/* components.css */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; font-size: .95rem; padding: .75rem 1.4rem; min-height: 44px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.btn[hidden] { display: none; } 
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--navy); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--orange-ink); color: var(--orange-ink); }
.hero .btn-ghost { border-color: rgba(204,221,238,.5); color: #fff; }
.hero .btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-danger { background: var(--fail-bg); color: var(--fail-ink); border-color: var(--fail-ink); }
.btn-sm { padding: .45rem .9rem; min-height: 36px; font-size: .88rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.form { display: grid; gap: 14px; max-width: 560px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.field .hint { font-size: .85rem; color: var(--charcoal); margin-top: .25rem; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea { width: 100%; font: inherit; padding: .65rem .8rem; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; }
.field .error { color: var(--fail-ink); font-size: .88rem; margin-top: .3rem; }
.field.invalid input, .field.invalid textarea { border-color: var(--fail-ink); }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 10px; position: relative; }
.tbl-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 24px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9)); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.tbl th, table.tbl td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--border); }
table.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--charcoal); background: var(--gray); }
table.tbl tbody tr:nth-child(even) { background: #fafbfc; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl.sticky-first th:first-child, table.tbl.sticky-first td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }

.callout { border: 1px solid var(--border); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 20px 0; max-width: calc(var(--measure) + 44px); }
.callout.note { background: var(--info-bg); border-left: 4px solid var(--navy); }
.callout.caution { background: var(--caution-bg); border-left: 4px solid var(--ink); }
.decide { background: var(--orange-soft); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 22px 0 28px; max-width: calc(var(--measure) + 44px); }
.decide p { margin: 0; } .decide b { color: var(--orange-ink); }
.common-questions { background: var(--lblue); border-radius: 12px; padding: 16px 20px; margin: 28px 0; }
.common-questions h3 { font-size: 1rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.common-questions .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; background: #fff; border-radius: 999px; padding: .15rem .55rem; color: var(--navy); }
.common-questions details { border-top: 1px solid rgba(26,43,74,.15); padding: .5rem 0; }
.common-questions summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.common-questions details p { margin: .5rem 0 0; }

.price-table td.each, .price-table th.each, .price-table td.total, .price-table th.total { text-align: right; font-variant-numeric: tabular-nums; }
.labels { list-style: none; margin: 14px 0; display: grid; gap: 6px; font-size: .92rem; }
.labels li::before { content: "·"; color: var(--orange-ink); margin-right: .5rem; }
details.terms-brief { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
details.terms-brief summary { font-weight: 600; cursor: pointer; color: var(--navy); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc .total { font-size: 1.6rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc .per { color: var(--charcoal); }
.calc .hint { font-size: .9rem; color: var(--charcoal); margin-top: .4rem; }
.trust { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--gray); font-size: .92rem; }
.trust h3 { font-size: .95rem; margin-bottom: .4rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

.progress-list { list-style: none; display: grid; gap: 6px; }
.progress-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; }
.progress-list li.current { background: var(--orange-soft); }
.progress-list li.locked { color: var(--fig-grey); }
.progress-list li.locked span:first-child + span { color: var(--fig-grey); }
.state { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 2px solid var(--fig-grey); font-size: .7rem; font-weight: 700; color: var(--fig-grey); }
.state.locked { border-style: solid; color: var(--fig-grey); }
.state.available { border-color: var(--navy); color: var(--navy); }
.state.current { border-color: var(--orange-ink); background: var(--orange-ink); color: #fff; }
.state.attempted { border-color: var(--navy); color: var(--navy); }
.state.passed { border-color: var(--pass-ink); background: var(--pass-bg); color: var(--pass-ink); }
.bar { height: 8px; background: var(--gray); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.bar > span { display: block; height: 100%; background: var(--navy); }
.pct { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }

.gate { border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin: 34px 0; background: #fff; }
.gate h2 { margin: 0 0 .3rem; font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.gate .intro { color: var(--charcoal); margin-bottom: 1rem; }
.item { padding: 16px 0; border-top: 1px solid var(--border); }
.item .stem { font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.opt { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .4rem .6rem; border-radius: 8px; cursor: pointer; }
.opt:hover { background: var(--gray); }
.opt input { width: 20px; height: 20px; flex: none; }
.opt.plot { align-items: flex-start; border: 1px solid var(--border); margin: 8px 0; }
.opt.plot img { width: 220px; border-radius: 6px; border: 1px solid var(--border); }
.opt.plot .desc { font-size: .9rem; color: var(--charcoal); }
.numeric { display: flex; align-items: center; gap: .5rem; }
.numeric input { width: 180px; font: inherit; padding: .55rem .7rem; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; font-variant-numeric: tabular-nums; }
.numeric .units { font-weight: 600; color: var(--navy); }
.precision { font-size: .88rem; color: var(--charcoal); margin-top: .3rem; }
.order-list { list-style: none; display: grid; gap: 6px; }
.order-list li { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 8px; padding: .5rem .6rem; background: #fff; }
.order-list li .txt { flex: 1; }
.order-list select { font: inherit; padding: .3rem; min-height: 36px; }
.order-list button { min-height: 36px; min-width: 36px; }
.result { border-radius: 10px; padding: 14px 18px; margin: 10px 0 18px; border-left: 4px solid var(--ink); display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); }
.result.passed { background: var(--pass-bg); color: var(--pass-ink); }
.result.notyet { background: var(--caution-bg); }
.result.error { background: var(--fail-bg); color: var(--fail-ink); }
.feedback { border-left: 3px solid var(--border); padding: .4rem .8rem; margin: .4rem 0; color: var(--ink); font-size: .95rem; }
.feedback.right { border-color: var(--pass-ink); } .feedback.wrong { border-color: var(--fail-ink); }
.locked-next { display: flex; align-items: center; gap: .5rem; color: var(--charcoal); }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); }
.pager a { color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.icon { width: 20px; height: 20px; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.stage { background: #fff; border: 1px solid var(--border); border-radius: 14px; aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; padding: 5% 6%; display: none; flex-direction: column; }
.slide.active { display: flex; }
.slide h2 { font-size: clamp(1.1rem, 2.6vw, 2rem); margin-bottom: .8rem; }
.slide ul { font-size: clamp(.95rem, 1.8vw, 1.35rem); line-height: 1.5; margin-left: 1.2em; color: var(--ink); }
.slide .fig { margin: 0; }
.slide-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; }
.stack .slide { position: static; display: flex; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 12px 0; }
.stage:fullscreen { border: 0; border-radius: 0; background: #fff; }
.deck.stage { container-type: size; }
.deck.stage .slide .prose { flex: 1; min-height: 0; overflow: auto; }
.deck.stage .slide figure.fig canvas { width: 100%; max-height: 50cqh; object-fit: contain; }
.deck.stage .slide figure.fig img, .deck.stage .slide figure.fig video, .deck.stage .slide figure.fig svg { max-height: 56cqh; object-fit: contain; }

.deck.stage .slide figure.fig .fig-body { max-height: 62cqh; overflow: auto; }
.deck.stage .slide figure.fig figcaption { font-size: .8rem; margin-top: 6px; }
.deck.stage .slide figure.fig table.tbl { font-size: clamp(.72rem, 1.35cqw, .95rem); }
.deck.stage .slide figure.fig table.tbl th, .deck.stage .slide figure.fig table.tbl td { padding: .4em .6em; }
.deck.stage .slide figure.listing { font-size: clamp(.72rem, 1.6cqw, 1.3rem); max-height: 62cqh; overflow: auto; margin: 6px 0 0; } 
.notes { background: var(--gray); border-radius: 10px; padding: 14px; font-size: .95rem; white-space: pre-wrap; }

.wm { position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: var(--wm-image); background-size: 320px 320px; opacity: 1; }
main.reading { position: relative; z-index: 1; }
.licensee { font-size: .8rem; color: var(--fig-grey); }
.vd-tag a { font-size: .72rem; font-weight: 700; letter-spacing: .08em; border: 1px solid var(--border); border-radius: 4px; padding: 0 .3rem; text-decoration: none; color: var(--navy); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.stat .n { font-size: 1.6rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
pre.mono, code { font-family: var(--font-mono); font-size: .9em; }
pre.mono { background: var(--gray); padding: 12px; border-radius: 8px; overflow-x: auto; }
.swatch { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--gray); font-size: .9rem; }
.swatch i { display: block; width: 56px; height: 28px; border-radius: 6px; border: 1px solid var(--border); }

/* reading.css */

main.reading { padding: 40px 0 80px; }
main.reading .wrap { max-width: var(--reading-w); }
.crumbs { font-size: .88rem; color: var(--charcoal); margin-bottom: 18px; }
.crumbs a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.reading h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); margin: 8px 0 10px; color: var(--ink); }
.reading .readline { color: var(--charcoal); font-size: .92rem; margin-bottom: 20px; }
.prose { font-family: var(--font-serif); color: var(--ink); font-size: 18px; line-height: 1.62; }
.prose p { max-width: var(--measure); margin: 0 0 16px; }
.prose p.outcome { font-family: var(--font-ui); font-size: 1rem; color: var(--charcoal); border-left: 3px solid var(--fig-amber); padding-left: 14px; margin: 0 0 26px; }
.prose p.outcome b { color: var(--navy); }
.prose ol, .prose ul { max-width: var(--measure); margin: 0 0 18px 24px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--navy); }
.prose h2 { font-family: var(--font-ui); margin: 44px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.prose h3 { font-family: var(--font-ui); margin: 28px 0 8px; }
.prose .eq { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 14px 0 18px; max-width: calc(var(--measure) + 44px); overflow-x: auto; }
.prose .eq .eq-body { grid-column: 2; }
.prose .eq .eq-num { grid-column: 3; justify-self: end; color: var(--charcoal); font-family: var(--font-ui); font-size: .95rem; }
figure.fig { margin: 28px 0 34px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 16px 12px; font-family: var(--font-ui); }
figure.fig .fig-body { width: 100%; overflow-x: auto; }
figure.fig .fig-body canvas { width: 100%; height: auto; }

figure.fig .panels { display: grid; gap: 12px; align-items: start; }
figure.fig .panels > .panel { min-width: 0; }
figure.fig .panels.panels2 { grid-template-columns: 1fr 1fr; } 
@media (max-width: 640px) { figure.fig .panels { grid-template-columns: 1fr !important; } }

figure.fig .panel h4 { font-size: .78rem; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal); margin: 2px 0 6px; font-weight: 700; }
figure.fig .note, figure.fig .panel .note { font-size: 13.5px; color: var(--charcoal); margin: 6px 0 0; line-height: 1.4; }
figure.fig .panel .note { margin: 0 0 8px; }
figure.fig figcaption { font-size: .9rem; color: var(--charcoal); margin-top: 10px; line-height: 1.5; }
figure.fig figcaption b { color: var(--ink); }
figure.fig .fig-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0 2px; font-size: .88rem; color: var(--charcoal); }
figure.fig .fig-tools label { display: inline-flex; align-items: center; gap: 6px; background: var(--gray); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
figure.fig .fig-tools input[type="range"] { accent-color: var(--navy); }
figure.fig .readout { font-variant-numeric: tabular-nums; color: var(--ink); }
figure.fig .placeholder { border: 1px dashed var(--fig-grey); border-radius: 10px; padding: 24px; color: var(--charcoal); text-align: center; }

figure.fig .vd-live { position: relative; }
figure.fig .vd-live.vd-on > .vd-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
figure.fig .vd-live:not(.vd-on) > .vd-mounts { display: none; }
figure.fig .vd-bar { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 12.5px; color: var(--charcoal); }
figure.fig .vd-flip { font: inherit; color: var(--navy); background: var(--gray); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
figure.fig .vd-flip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
figure.fig .vd-mount + .vd-mount { margin-top: 12px; }

figure.fig .vd-mount .hint, figure.fig .vd-mount .copy { display: none; }

figure.fig .vd-mount .readout { display: inline; max-width: none; gap: 0; }
@media (min-width: 1100px) { figure.fig.wide { width: 900px; margin-left: calc((var(--reading-w) - 900px) / 2); } }

figure.listing { margin: 22px 0 28px; max-width: 100%; background: var(--gray); border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow-x: auto; font-family: var(--font-mono); font-size: .85rem; line-height: 1.5; color: var(--ink); }
figure.listing pre { margin: 0; font: inherit; white-space: pre; tab-size: 4; }
figure.listing code { font: inherit; }
figure.listing .c { color: var(--charcoal); }
figure.listing .listing-link, .prose figure.listing p.listing-link { font-family: var(--font-ui); font-size: .8rem; color: var(--charcoal); margin: 10px 0 0; }
.listing-pointer { font-family: var(--font-ui); color: var(--charcoal); font-style: italic; }
@media (max-width: 640px) {
  .prose { font-size: 16.5px; }
  figure.fig .fig-tools { flex-direction: column; align-items: stretch; }
  figure.fig .fig-tools label { border-radius: 10px; display: grid; }
  figure.fig .fig-tools input[type="range"] { width: 100%; min-height: 44px; }
}
.sticky-bar { position: sticky; top: 64px; z-index: 5; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); padding: 6px 0; margin: 0 0 12px; font-size: .9rem; display: flex; align-items: center; gap: 12px; }
.sticky-bar .title { flex: 1; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-bar .line { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--orange); width: var(--read-pct, 0%); }
.sticky-bar[hidden] { display: none; }
.side-rail { display: none; }
@media (min-width: 1100px) { .side-rail { display: block; position: fixed; left: calc(50% + var(--reading-w) / 2 + 24px); top: 110px; width: 240px; font-size: .88rem; } }
.week, .labkit { font-family: var(--font-ui); }

.labkit { max-width: 720px; margin: 24px auto; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.labkit h1 { font-size: 1.5rem; margin-bottom: 12px; }
.labkit[data-kind="figure"] p.note { font-size: .9rem; color: var(--charcoal); margin-top: 12px; }
.labkit[data-kind="figure"] .printable { overflow-x: auto; }
.labkit .checklist, .labkit .steps { list-style: none; margin: 0; }
.labkit .checklist li, .labkit .steps li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dotted var(--border); }
.labkit .box { width: 18px; height: 18px; border: 2px solid var(--navy); border-radius: 3px; flex: none; margin-top: 3px; }
.labkit dl.form { display: grid; grid-template-columns: 1fr; gap: 10px; }
.labkit .field { display: grid; grid-template-columns: 220px 1fr; gap: 10px; align-items: end; }
.labkit .field dt { font-weight: 600; color: var(--navy); }
.labkit .field dd.blank { border-bottom: 1px solid var(--ink); min-height: 28px; }
.labkit .notes-lines { background: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, var(--border) 27px, var(--border) 28px); min-height: 170px; margin-top: 8px; }
.labkit .stamp { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--charcoal); }

.preview-note { background: var(--info-bg); border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: 0 12px 12px 0; padding: 12px 18px; margin: 0 0 26px; max-width: calc(var(--measure) + 44px); font-family: var(--font-ui); font-size: .95rem; line-height: 1.5; color: var(--ink); }
.preview-note p { margin: 0; }
.preview-note b { color: var(--navy); }
.preview-note a { color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* public.css */

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.hero-slot { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
.hero-slot img { width: 100%; }
.hero-slot .emblem { display: block; padding: 0; }
.hero-slot img.photo { display: block; width: 100%; height: auto; border-radius: 10px; }
.hero-slot figcaption { font-size: .8rem; color: var(--charcoal); margin-top: 8px; }
.hero .independence { color: #e6eef8; max-width: 58ch; margin: 0 0 1.2rem; }
.hero .lockup { color: #c9d6e6; font-style: italic; font-family: var(--font-serif); font-size: 1.05rem; margin-top: -.2rem; margin-bottom: 1rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } }

.trust-strip { border-bottom: 1px solid var(--border); background: var(--gray); }

.early-offer { background: var(--orange-soft); border-bottom: 1px solid var(--border); border-top: 3px solid var(--orange); }
.early-offer p { margin: 0; padding: 12px 0; color: var(--navy); font-weight: 600; }
.early-offer a { color: var(--orange-ink); font-weight: 700; white-space: nowrap; }
.trust-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 12px 0; font-size: .88rem; font-weight: 600; color: var(--navy); }
.trust-strip li { display: inline-flex; align-items: center; gap: .45rem; }
.trust-strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.card .ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--info-bg); color: var(--navy); margin-bottom: 12px; }
.card .ico .icon { width: 24px; height: 24px; }
.card .still-fallback { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card .still-fallback img { width: 48px; }

.curriculum { display: grid; gap: 8px; max-width: 820px; }
.curriculum details { border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.curriculum summary { cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); list-style: none; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; flex: none; }
.curriculum details[open] summary::before { content: "\2013"; }
.curriculum summary .meta { margin-left: auto; font-weight: 500; font-size: .85rem; color: var(--charcoal); white-space: nowrap; }
.curriculum ol { list-style: none; padding: 0 16px 12px 50px; display: grid; gap: 4px; }
.curriculum ol li { display: flex; align-items: baseline; gap: 10px; font-size: .95rem; padding: 4px 0; border-top: 1px solid var(--gray); }
.curriculum ol li .n { color: var(--charcoal); font-variant-numeric: tabular-nums; min-width: 2.6em; }
.curriculum ol li .min { margin-left: auto; color: var(--charcoal); font-size: .85rem; white-space: nowrap; }
.free-tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--pass-bg); color: var(--pass-ink); border-radius: 999px; padding: .12rem .5rem; }
@media (max-width: 560px) { .curriculum ol { padding-left: 16px; } .curriculum summary .meta { display: none; } }

table.compare th:first-child, table.compare td:first-child { font-weight: 600; color: var(--navy); width: 20%; }
table.compare td { line-height: 1.5; }

.price-table td.each, .price-table td.total { white-space: nowrap; }
.price-table tr.early td { background: var(--orange-soft); }
.pricing-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-grid > * { min-width: 0; }
.hero-grid > * { min-width: 0; }
.cards > *, .cols-3 > * { min-width: 0; }
.price-excerpt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.price-excerpt .big { font-size: 2rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.effective { font-size: .9rem; color: var(--charcoal); }
details.terms-brief ul { margin: 10px 0 4px 18px; display: grid; gap: 6px; font-size: .92rem; }

.buy-bar { position: sticky; top: 64px; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 8px 0; }
.buy-bar .wrap { display: flex; align-items: center; gap: 14px; }
.buy-bar .price { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.buy-bar .price small { font-weight: 500; color: var(--charcoal); }
.buy-bar .btn { margin-left: auto; }
@media (max-width: 640px) { .buy-bar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-bottom: 0; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -16px rgba(14,27,51,.4); } body.has-buy-bar { padding-bottom: 72px; } .buy-bar .price small { display: none; } }

.band { background: var(--navy); color: #fff; padding: 48px 0 36px; }
.band h1 { color: #fff; }
.band .sub { color: #c9d6e6; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; margin: .4rem 0 1rem; }
.band .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: #e6eef8; list-style: none; }
.band .facts b { color: #fff; font-variant-numeric: tabular-nums; }
.band .volmark { width: 72px; float: right; margin-left: 20px; }

.sample-cert { width: 100%; max-width: 640px; border: 1px solid var(--border); border-radius: 12px; }
.lines { max-width: 68ch; display: grid; gap: 10px; }
.lines li { padding-left: 1.2em; position: relative; }
.lines li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.form-wide { max-width: 680px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }

.legal-page, .prose-page { max-width: var(--measure); }
.legal-page h2, .prose-page h2 { margin: 36px 0 10px; font-size: 1.3rem; clear: both; }

.prose-page .headshot { float: right; width: 200px; height: auto; border-radius: 12px; border: 1px solid var(--border); margin: 4px 0 14px 24px; }
@media (max-width: 640px) { .prose-page .headshot { float: none; display: block; width: 160px; margin: 0 0 14px; } }

.instructor-card { display: flow-root; }
.instructor-card .headshot { float: right; width: 150px; height: auto; border-radius: 12px; border: 1px solid var(--border); margin: 4px 0 12px 22px; }
@media (max-width: 640px) { .instructor-card .headshot { float: none; display: block; width: 120px; margin: 0 0 12px; } }

.byline { font-size: .95rem; color: var(--charcoal); margin: 0 0 1rem; }
.byline a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.band .byline { color: #e6eef8; }
.band .byline a { color: #fff; }
.legal-page h3, .prose-page h3 { margin: 22px 0 6px; }
.legal-page p, .prose-page p { margin: 0 0 14px; color: var(--ink); }
.legal-page ul, .legal-page ol, .prose-page ul, .prose-page ol { margin: 0 0 14px 22px; color: var(--ink); }
.legal-page li, .prose-page li { margin: 5px 0; }
.legal-page .updated { color: var(--charcoal); font-size: .9rem; margin-bottom: 20px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; margin-bottom: 28px; }
.legal-nav a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; text-decoration: none; }
blockquote.quote { border-left: 4px solid var(--orange); padding: 6px 18px; margin: 18px 0; font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink); }
blockquote.quote cite { display: block; font-family: var(--font-ui); font-size: .85rem; color: var(--charcoal); font-style: normal; margin-top: 6px; }
.credits-list { list-style: none; display: grid; gap: 14px; max-width: 72ch; }
.credits-list li { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.credits-list li b { color: var(--navy); }
.link-list { list-style: none; display: grid; gap: 8px; max-width: 60ch; }
.link-list a { font-weight: 600; }
.link-list .small { display: block; font-weight: 400; }

.tool-page figure.fig.tool { margin-top: 10px; }
.tool-page figure.fig.tool canvas { width: 100%; }
.try-it figure.fig { margin: 10px 0 0; }
.tool-list { list-style: none; display: grid; gap: 14px; max-width: 760px; }
.tool-list li { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.tool-list h3 a { color: var(--navy); }

.cta-band { background: var(--navy); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { color: #c9d6e6; max-width: 52ch; margin: 0 auto 1.4rem; }
.cta-band .actions { justify-content: center; }
.cta-band .btn-ghost { border-color: rgba(204,221,238,.5); color: #fff; }
.cta-band .btn-ghost:hover, .cta-band .btn-ghost:focus-visible { border-color: var(--orange); color: var(--orange); }
.cta-band :focus-visible { outline-color: var(--lblue); }

.faq-page .faq-item { border-top: 1px solid var(--border); padding: 18px 0; max-width: var(--measure); }
.faq-page .faq-item h3 { margin-bottom: 6px; }
.faq-page .faq-item p { color: var(--ink); }
.faq-pairs { max-width: 760px; display: grid; gap: 8px; }
.faq-pair { border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 0 16px; }
.faq-pair summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--navy); }
.faq-pair p { padding: 0 0 14px; color: var(--ink); }

.status-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: .2rem .6rem; vertical-align: middle; white-space: nowrap; }
.status-tag.available { background: var(--pass-bg); color: var(--pass-ink); }
.status-tag.in_progress { background: var(--caution-bg); color: #5a4a00; }
.status-tag.complete { background: #EDF2F9; color: #1A2B4A; }
.status-tag.coming { background: var(--gray); color: var(--charcoal); border: 1px solid var(--border); }
.series-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.series-cards > * { min-width: 0; }
.series-card.future { background: #fbfcfd; }
.series-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.series-head img { width: 56px; height: 56px; flex: none; }
.series-card .facts-line { color: var(--navy); font-weight: 600; margin-top: 8px; }
.series-card .links { margin: 14px 0 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chapters-planned { max-width: 68ch; margin-left: 1.4em; display: grid; gap: 6px; }
.chapters-planned li { padding: 4px 0; }
@media (max-width: 900px) { .series-cards { grid-template-columns: 1fr; } }

.card-btn { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.card-btn:hover, .card-btn:focus-visible { border-color: var(--navy); }
.card-btn .see { display: inline-block; margin-top: 12px; color: var(--orange-ink); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
dialog.example { border: 0; border-radius: 16px; padding: 0; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); color: var(--ink); }
dialog.example::backdrop { background: rgba(26,43,74,.55); }
dialog.example .example-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
dialog.example .example-head h3 { margin: 0; font-size: 1.15rem; }
dialog.example .example-body { padding: 18px 22px 24px; }
dialog.example .example-body > .still, dialog.example .example-body > .sample-cert { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; }
dialog.example .example-body figure.fig { margin: 0 0 12px; }
dialog.example .example-body .decide { margin: 0 0 12px; }
dialog.example .example-body .labkit { margin: 0 0 12px; max-width: none; }
dialog.example .labkit .kit-title { font-size: 1.5rem; margin-bottom: 12px; }
dialog.example .quiz-sample { margin: 0; }
dialog.example .quiz-sample .stem { font-weight: 600; margin: 0 0 10px; }
dialog.example .quiz-sample .options { list-style: none; margin: 0 0 12px; }
dialog.example .quiz-sample .options li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; margin: 6px 0; }
dialog.example .quiz-sample .options label { display: flex; gap: 10px; align-items: flex-start; }

/* certs.css */

.cert-code { font-family: var(--font-mono); font-size: .92em; letter-spacing: .06em; background: var(--gray); border: 1px solid var(--border); border-radius: 6px; padding: .1rem .45rem; color: var(--navy); white-space: nowrap; }
.cert-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.verify-card h2 { font-size: 1.6rem; }

dl.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; margin-top: 12px; }
dl.kv > div { border-top: 1px solid var(--border); padding-top: 8px; }
dl.kv dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--charcoal); font-weight: 700; }
dl.kv dd { margin: 2px 0 0; color: var(--ink); }

table.transcript tr.group td { background: var(--lblue); color: var(--navy); }

.tbl-wrap.team { background: #fff; }
table.team-table td { font-size: .92rem; }
table.team-table tr.is-revoked td { color: var(--fig-grey); }
table.team-table .prework { color: var(--orange-ink); font-weight: 600; }
table.team-table .prework.met { color: var(--pass-ink); }
@media (max-width: 760px) {
  .tbl-wrap.team { border: 0; overflow: visible; }
  .tbl-wrap.team::after { display: none; }
  table.team-table, table.team-table tbody, table.team-table tr, table.team-table td { display: block; width: 100%; }
  table.team-table thead { display: none; }
  table.team-table tr { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; background: #fff; }
  table.team-table tbody tr:nth-child(even) { background: #fff; }
  table.team-table td { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--gray); padding: .45rem 0; text-align: right; }
  table.team-table td:last-child { border-bottom: 0; }
  table.team-table td::before { content: attr(data-label); font-weight: 600; color: var(--navy); text-align: left; flex: none; }
  table.team-table td[data-label="Person"] { text-align: left; flex-direction: column; gap: 2px; }
  table.team-table td[data-label="Person"]::before { display: none; }
  table.team-table td.num .bar { margin-left: auto; }
  table.team-table td.empty { display: none; }
  table.tbl.sticky-first.team-table th:first-child, table.tbl.sticky-first.team-table td:first-child { position: static; }
}

.seat-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.seat-head h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.invite-form .two, .reassign .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reassign summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.form.inline { display: inline; }
@media (max-width: 560px) { .invite-form .two, .reassign .two { grid-template-columns: 1fr; } }

.renew-table .swap { display: grid; gap: 6px; min-width: 220px; }
.renew-table .swap input { font: inherit; padding: .5rem .7rem; min-height: 40px; border: 1px solid var(--border); border-radius: 8px; width: 100%; }
@media (max-width: 760px) {
  .renew-form .tbl-wrap { border: 0; overflow: visible; }
  .renew-form .tbl-wrap::after { display: none; }
  table.renew-table, table.renew-table tbody, table.renew-table tr, table.renew-table td { display: block; width: 100%; }
  table.renew-table thead { display: none; }
  table.renew-table tr { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
  table.renew-table td { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--gray); padding: .45rem 0; }
  table.renew-table td::before { content: attr(data-label); font-weight: 600; color: var(--navy); flex: none; }
  table.renew-table td:last-child { border-bottom: 0; flex-direction: column; }
}

/* admin.css */

body.admin main { padding: 28px 0 60px; }
body.admin .wrap { max-width: 1000px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 22px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.admin-nav a:hover { background: var(--gray); }
.admin-nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange-ink); }
.admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-head .meta { font-size: .88rem; color: var(--charcoal); }
body.admin h2 { margin: 36px 0 12px; font-size: 1.3rem; }
body.admin h3 { margin: 18px 0 8px; }
body.admin .card { margin-top: 14px; }
body.admin .card:hover { box-shadow: none; }
body.admin table.tbl { font-size: .88rem; }
body.admin table.tbl th, body.admin table.tbl td { padding: .5rem .65rem; }
body.admin td.wrap-cell { white-space: normal; max-width: 36ch; }
body.admin .mono-cell { font-family: var(--font-mono); font-size: .8rem; white-space: nowrap; }
.form.compact { max-width: none; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; gap: 12px; }
.form.compact .field.wide { grid-column: 1 / -1; }
.form.compact .submit { display: flex; align-items: end; }
.form.compact .field input, .form.compact .field select { min-height: 44px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: .18rem .6rem; border: 1px solid var(--border); background: var(--gray); color: var(--navy); white-space: nowrap; }
.badge.ok { background: var(--pass-bg); color: var(--pass-ink); border-color: transparent; }
.badge.warn { background: var(--caution-bg); color: var(--ink); border-color: transparent; }
.badge.err { background: var(--fail-bg); color: var(--fail-ink); border-color: transparent; }
.badge.info { background: var(--info-bg); color: var(--navy); border-color: transparent; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .95rem; margin: 10px 0; }
.kv dt { font-weight: 600; color: var(--navy); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.seat-pick { display: grid; gap: 4px; margin: 8px 0; }
.seat-pick label { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .4rem; border-radius: 8px; cursor: pointer; }
.seat-pick label:hover { background: var(--gray); }
.seat-pick input { width: 20px; height: 20px; }
.q-body { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); border-left: 3px solid var(--lblue); padding: 4px 0 4px 14px; margin: 10px 0 14px; }
textarea.answer { width: 100%; min-height: 170px; font: inherit; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); resize: vertical; }
.q-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.q-actions form { display: inline; }
details.panel { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-top: 14px; }
details.panel summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 28px; }
details.panel[open] summary { margin-bottom: 10px; }
body.admin pre.mono { max-height: 520px; overflow: auto; font-size: .8rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.inline-form { display: inline; }
.inline-form button { min-height: 36px; }
.notice { border: 1px solid var(--border); border-left: 4px solid var(--orange); background: var(--orange-soft); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 14px 0; }
.stat .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--charcoal); }
.stat .sub { font-size: .85rem; color: var(--charcoal); margin-top: 4px; }
.sub-note { font-size: .85rem; color: var(--charcoal); margin: 6px 0 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dt { margin-top: 8px; } .form.compact { grid-template-columns: 1fr; } }

/* present.css */

main.present { padding: 28px 0 60px; }
main.present .wrap { max-width: 1500px; }
body.present footer.site, body.present .print-notice { display: none; }
.present-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.present-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 6px 0 0; color: var(--ink); }
.present-links { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.present-links a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.present-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@media (min-width: 1100px) { .present-grid { grid-template-columns: minmax(0, 1fr) 360px; } .present-panel { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; } }
.present-stage .deck.stage { outline: none; }
.present-stage .deck.stage:focus-visible { box-shadow: 0 0 0 3px var(--lblue); }
.present-stage .slide-end { margin-top: auto; }
.present-stage .slide figure.fig { padding: 10px 12px 8px; } 
.present-stage .slide.kind-figure h2 { font-size: clamp(1rem, 2vw, 1.5rem); margin-bottom: .5rem; }
.present-keys { margin-top: 10px; }
.slide.kind-decide { background: var(--orange-soft); }
.slide.kind-decide h2 { color: var(--orange-ink); }
.slide.kind-title { background: var(--navy); }
.slide.kind-title h2 { color: #fff; }
.slide.kind-title ul { color: var(--lblue); }

.present-panel { display: grid; gap: 14px; }
.panel-block { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fff; }
.panel-block h2 { font-family: var(--font-ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--charcoal); margin-bottom: 8px; }
.panel-block .notes { background: var(--gray); min-height: 72px; font-size: 1rem; line-height: 1.5; }
.next-slide .next-title { font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.next-slide .next-bullets { margin: 0 0 0 18px; font-size: .92rem; color: var(--ink); }
.next-slide .next-bullets li { margin: 3px 0; }
.next-slide .end { color: var(--charcoal); }

.timer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timer-display { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: .02em; }
.timer-display.running { color: var(--orange-ink); }

.slide-list { list-style: none; margin: 0; max-height: 240px; overflow-y: auto; position: relative; }
.slide-list li { margin: 0; }
.slide-list button { display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 6px 8px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; min-height: 36px; }
.slide-list button:hover { background: var(--gray); }
.slide-list button[aria-current="true"] { background: var(--lblue); color: var(--navy); font-weight: 600; }
.slide-list button .tnum { color: var(--charcoal); min-width: 1.6em; }

.poll { list-style: none; margin: 0; counter-reset: poll; }
.poll li { margin: 0; border-top: 1px solid var(--gray); }
.poll li:first-child { border-top: 0; }
.poll-q { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 8px 6px; font: inherit; font-size: .9rem; line-height: 1.45; color: var(--ink); cursor: pointer; min-height: 44px; border-radius: 6px; }
.poll-q::before { counter-increment: poll; content: counter(poll); flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: var(--charcoal); margin-top: 1px; }
.poll-q:hover { background: var(--gray); }
.poll-q[aria-pressed="true"] { color: var(--charcoal); text-decoration: line-through; text-decoration-thickness: 1px; }
.poll-q[aria-pressed="true"]::before { background: var(--pass-bg); border-color: var(--pass-ink); color: var(--pass-ink); content: "\2713"; }

.present-vol { margin-top: 28px; font-size: 1.2rem; }
.present-chapter { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.present-chapter h3 { margin-bottom: 8px; }
.present-sections { margin: 0 0 0 22px; }
.present-sections li { margin: 4px 0; }
.present-sections a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }

/* print.css */

@media print {
  .nav, footer.site, .sticky-bar, .side-rail, .flash, .wm, .pager, .gate, .slide-bar { display: none !important; }
  body.print-blocked main { display: none !important; }
  body.print-blocked .print-notice { display: block !important; font-family: var(--font-ui); padding: 48px; font-size: 14pt; }
  .print-notice { display: none; }
  .labkit { border: 0; max-width: none; margin: 0; padding: 0; }
  .labkit .stamp { display: block; }
  @page { margin: 18mm; }
  
  @page landscape { size: landscape; margin: 12mm; }
  body.print-landscape .wrap { padding: 0; max-width: none; }
  
  body.print-landscape, body.print-landscape .labkit { page: landscape; }
  .crumbs .print-ctl { display: none !important; }
  .labkit .printable { overflow: visible !important; }
  .labkit[data-kind="figure"] h1 { break-after: avoid; }
  
  .labkit[data-kind="figure"] table { width: 100%; font-size: 8.5pt; hyphens: auto; }
  .labkit[data-kind="figure"] table th, .labkit[data-kind="figure"] table td { padding: .3em .35em; }
  .labkit[data-kind="figure"] table th { font-size: 7.5pt; letter-spacing: 0; text-transform: none; }
  .labkit[data-kind="figure"] thead { display: table-header-group; }
  .labkit[data-kind="figure"] tr { break-inside: avoid; }
  .labkit[data-kind="figure"] p.note { font-size: 9pt; break-before: avoid; }
  
  figure.listing { overflow: visible; break-inside: avoid; }
  figure.listing pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  
  figure.fig .vd-bar, figure.fig .vd-mounts { display: none !important; }
  figure.fig .vd-live > .vd-fallback { position: static !important; width: auto !important; height: auto !important; clip: auto !important; clip-path: none !important; overflow: visible !important; white-space: normal !important; }
}

