/* Public pages (tools/build_pages.py), on top of styles.css: same tokens, hard corners, shared hairlines */
body.sub { padding-bottom: 0; }
.main-nav .nav-dd-btn[aria-current="true"] { background: #ffffff1f; color: #fff; }

/* Headlines without .hl in the markup. .person-cols h3 and .day-side h2 are small labels, so they stay in the text face. */
.cell h3, .cell-title, .row h3, .person-body h2, .cc-head h3, .form-card > header h2, .auth .form-card > header h1, .prose h2,
.dk-s-h1, .dk-s-title, .dk-col h3, .dk-pt h3, .dk-steps h3 { font-family: var(--font-head); font-weight: 700; word-spacing: var(--ws-head); overflow-wrap: anywhere; }

/* ── Page head ──────────────────────────────────────────────────────── */
.page-head { position: relative; overflow: hidden; padding: calc(96px + var(--space-block)) 0 var(--space-block); }
.page-dots { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(70% 90% at 80% 20%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 80% 20%, #000, transparent 75%); }
.page-head-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-md); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--gap-xs); margin-bottom: var(--gap-md); font-size: 0.875rem; color: var(--fg-muted); }
.crumbs a { color: #ffffffcc; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-title { max-width: 56rem; font-size: var(--t-display); line-height: var(--lh-head); }
.page-lead { max-width: 46rem; line-height: 1.45; color: #ffffffb3; }
.page-head .eyebrow { --eyebrow-dot: var(--accent); color: var(--fg-muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--gap-xs); }
.page-head .actions { margin-top: var(--gap-md); }

/* ── Section head ───────────────────────────────────────────────────── */
.sec-head { max-width: 50rem; display: flex; flex-direction: column; gap: var(--gap-md); margin-bottom: var(--space-stack); }
.sec-head p:not(.eyebrow) { line-height: 1.45; color: var(--ink-soft); }
.note-line { max-width: 50rem; margin-top: var(--gap-lg); font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }

/* ── Cells: grids that share one hairline ───────────────────────────── */
.cells { display: grid; padding: 0 1px 1px 0; }
.cells > * { margin: 0 -1px -1px 0; min-width: 0; }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { padding: var(--card-padding-md); display: flex; flex-direction: column; gap: var(--gap-sm); }
.cell h3 { font-size: var(--t-heading); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.cell p { font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
.cell .k { font-size: 0.75rem; color: var(--ink-soft); }
.cell .more { margin-top: auto; padding-top: var(--pad-sm); font-size: 1rem; }
a.cell { position: relative; transition: box-shadow .3s var(--ease-out); }
a.cell:hover { z-index: 1; box-shadow: inset 0 0 0 1px var(--ring); }
.cell-title { font-size: var(--t-title); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.page-head .cells { width: 100%; margin-top: var(--gap-xl); }
.stat-cell .n { font-size: var(--t-story); line-height: 1; letter-spacing: -0.03em; }
.stat-cell p { color: var(--fg-muted); }
.ltr { width: 40px; height: 40px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }

/* Inline code */
.cell code, .rows code, .prose code, .tbl code { padding: 0 .3em; background: var(--field); font: 400 .875em/1.5 var(--font-mono); word-spacing: 0; overflow-wrap: anywhere; }

/* ── Rows: numbered lines in one card ───────────────────────────────── */
.row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-md); align-items: baseline; padding: var(--pad-lg) var(--card-padding-md); }
.row + .row { border-top: 1px solid var(--rule); }
.row .k { font-size: 0.875rem; color: var(--ink-soft); }
.row h3 { font-size: var(--t-heading); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.row p { font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
a.row { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 2fr) auto; transition: background-color .3s var(--ease-out); }
a.row:hover { background: var(--field); }
.row .go { font-size: 0.875rem; white-space: nowrap; }

/* Lists and tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.tbl th, .tbl td { padding: var(--pad-sm) var(--pad-md) var(--pad-sm) 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 500; }
.tbl tr:first-child > * { border-top: 0; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl th, .tbl td:first-child { color: var(--ink-soft); }
.steps-list { counter-reset: s; display: flex; flex-direction: column; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--gap-md); padding: var(--pad-sm) 0; border-top: 1px solid var(--rule); line-height: 1.4; }
.steps-list li::before { content: counter(s); height: 24px; display: grid; place-items: center; background: var(--field); font-size: 0.75rem; }
.cell .checks li, .cell .steps-list li { line-height: 1.4; }
.cell .checks li:first-child, .cell .steps-list li:first-child { border-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: var(--gap-2xs); }
.tag { min-height: 28px; padding: var(--pad-2xs) var(--pad-sm); display: inline-flex; align-items: center; background: var(--field); font-size: 0.8125rem; line-height: 1.25; }

/* ── People ─────────────────────────────────────────────────────────── */
.person-card { display: grid; grid-template-columns: 6.875rem minmax(0, 1fr); gap: var(--gap-xl); padding: var(--card-padding-md); }
.person-card + .person-card { margin-top: -1px; }
.person-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--field); }
.person-body { display: flex; flex-direction: column; gap: var(--gap-sm); }
.person-body h2 { font-size: var(--t-title); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.person-body > p { max-width: 46rem; line-height: 1.45; color: var(--ink-soft); }
.person-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-lg); margin-top: var(--gap-xs); }
.person-cols h3 { margin-bottom: var(--gap-xs); font-size: 0.875rem; color: var(--ink-soft); }
.person-cols .checks li { padding: var(--pad-xs) 0; font-size: 1rem; line-height: 1.4; }
.person-cols .checks li:first-child { border-top: 0; }
.source { font-size: 0.8125rem; color: var(--ink-soft); }
.guest img, .guest .ph { width: 64px; height: 64px; object-fit: cover; display: grid; place-items: center; background: var(--field); color: var(--ink-soft); }

/* Portfolio previews: a live site at half scale */
.pf { padding: 0; gap: 0; }
.pf-view { height: 15rem; overflow: hidden; background: var(--field); box-shadow: inset 0 -1px 0 var(--cell-l); }
.pf-view iframe { display: block; width: 200%; height: 200%; border: 0; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
.pf-meta { padding: var(--pad-md); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--gap-md); }
.pf-meta p { margin-top: var(--gap-2xs); font-size: 0.875rem; }
.pf-meta a { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: var(--field); }
.pf-meta a:hover { background: var(--accent); color: var(--on-accent); }

/* Contact block */
.contact-grid { align-items: start; row-gap: var(--space-stack); }
.contact-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-md); }
.contact-copy p:not(.eyebrow) { color: var(--ink-soft); }
.contact-copy .btn { margin-top: var(--gap-xs); }
.contact-list { grid-column: 7 / span 6; padding: var(--pad-xs) var(--card-padding-md); }
.contact-list > div { display: flex; justify-content: space-between; gap: var(--gap-md); padding: var(--pad-md) 0; border-top: 1px solid var(--rule); }
.contact-list > div:first-child { border-top: 0; }
.contact-list dt { flex: none; color: var(--ink-soft); }
.contact-list dd { text-align: right; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Curriculum days and course content ─────────────────────────────── */
.cc-list { margin-top: var(--space-group); display: flex; flex-direction: column; gap: var(--space-group); }
.cc-day { align-items: start; row-gap: var(--gap-md); }
.cc-head { grid-column: 1 / span 3; position: sticky; top: 112px; display: flex; flex-direction: column; gap: var(--gap-2xs); }
.cc-head .k { font-size: 0.875rem; color: var(--ink-soft); }
.cc-head h3 { font-size: var(--t-title); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.cc-head p { font-size: 0.875rem; color: var(--ink-soft); }
.cc-body { grid-column: 4 / span 9; }
.cc-body .cell { min-height: 11rem; }
.cc-final { padding: var(--card-padding-md); line-height: 1.45; color: var(--ink-soft); }

/* ── Day page ───────────────────────────────────────────────────────── */
.day-grid { align-items: start; row-gap: var(--space-stack); }
.day-side { grid-column: 1 / span 3; position: sticky; top: 112px; }
.day-side h2 { margin-bottom: var(--gap-sm); font-size: 0.875rem; color: var(--ink-soft); }
.day-side a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; min-height: 40px; padding: var(--pad-2xs) var(--pad-sm); font-size: 0.9375rem; line-height: 1.2; color: var(--ink-soft); transition: background-color .15s; }
.day-side a:hover { background: var(--field); color: var(--ink); }
.day-side a[aria-current="page"] { background: var(--ink); color: #fff; }
.day-main { grid-column: 4 / span 9; display: flex; flex-direction: column; gap: var(--gap-lg); min-width: 0; }
.day-main .formats { flex-flow: row wrap; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.formats a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pn .dir { font-size: 0.875rem; color: var(--ink-soft); }
.pn a:last-child { text-align: right; align-items: flex-end; }

/* ── Forms ──────────────────────────────────────────────────────────── */
.form-grid { align-items: start; row-gap: var(--space-stack); }
.form-side { grid-column: 1 / span 4; position: sticky; top: 112px; display: flex; flex-direction: column; gap: var(--gap-lg); }
.form-side .checks li:first-child { border-top: 0; }
.form-side dl > div { padding: var(--pad-sm) 0; border-top: 1px solid var(--rule); }
.form-side dt { font-size: 0.875rem; color: var(--ink-soft); }
.form-side dd { margin-top: var(--gap-2xs); }
.form-side dd a { text-decoration: underline; text-underline-offset: 3px; }
.form-card { grid-column: 6 / span 7; padding: var(--card-padding-md); display: flex; flex-direction: column; gap: var(--gap-xl); }
.form-card > header { display: flex; flex-direction: column; gap: var(--gap-sm); }
.form-card > header h2 { font-size: var(--t-title); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.form-card > header p { line-height: 1.45; color: var(--ink-soft); }
.fgroup { display: flex; flex-direction: column; gap: var(--gap-md); }
.fgroup-h { display: flex; align-items: center; gap: var(--gap-sm); font-size: 1.125rem; }
.fgroup-h span { width: 24px; height: 24px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 0.75rem; }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-md); }
.field { min-width: 0; display: flex; flex-direction: column; gap: var(--gap-xs); }
.field label { font-size: 0.9375rem; line-height: 1.3; }
.field small { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: var(--header-h); padding: 0 var(--pad-md); border: 0; border-radius: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--cell-l); color: var(--ink); font: 500 1rem/1.35 var(--font-sans); letter-spacing: -0.005em; }
.field textarea { min-height: 7rem; padding: var(--pad-sm) var(--pad-md); resize: vertical; }
.field input[type="file"] { padding: var(--pad-sm) var(--pad-md); }
.field ::placeholder { color: var(--ink-soft); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.file-list { font-size: 0.875rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
.fmore { border-top: 1px solid var(--rule); }
.fmore:last-of-type { border-bottom: 1px solid var(--rule); }
.fmore summary { list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); cursor: pointer; }
.fmore summary::-webkit-details-marker { display: none; }
.fmore summary small { margin-left: var(--gap-xs); font-size: 0.8125rem; color: var(--ink-soft); }
.fmore[open] .pm .v { display: none; }
.fmore-body { display: flex; flex-direction: column; gap: var(--gap-md); padding-bottom: var(--pad-lg); }
.consent { display: flex; gap: var(--gap-sm); align-items: flex-start; font-size: 0.9375rem; line-height: 1.4; }
.consent input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--accent); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-err { margin-top: var(--gap-xs); font-size: 0.875rem; color: #c8321a; }
.form-send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-md); }
.form-send p { flex: 1 1 14rem; font-size: 0.875rem; line-height: 1.4; color: var(--ink-soft); }
.form-send button { border: 0; }
.form-status { padding: var(--pad-md); background: var(--field); line-height: 1.4; }
.form-status.is-err { background: #c8321a; color: #fff; }
.form-done { gap: var(--gap-lg); align-items: flex-start; }
.form-done-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.form-done-ic svg { width: 28px; height: 28px; }
.form-done h3 { font-size: var(--t-title); line-height: var(--lh-head); letter-spacing: var(--ls-head); margin: 0; }
.form-done p { margin: 0; line-height: 1.5; color: var(--ink-soft); max-width: 44rem; }
.form-done p b { color: var(--ink); font-weight: 600; }
.form-done-note { font-size: 0.875rem; }
@media (max-width: 840px) {
  .form-done { align-items: center; text-align: center; }
  .form-done p { margin: 0 auto; }
}

/* Sign-in pages */
.auth { position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center; padding: calc(96px + var(--space-stack)) var(--margin-comfortable) var(--space-stack); }
.auth .form-card { position: relative; width: min(30rem, 100%); padding: var(--pad-3xl) var(--card-padding-md) var(--card-padding-md); background: var(--paper); color: var(--ink); }
.auth .form-card > header h1 { font-size: var(--t-narrative); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.auth .form-card > header p { line-height: 1.45; color: var(--ink-soft); }
.auth .btn { width: 100%; }
.pw { position: relative; }
.pw input { padding-right: 4.5rem; }
.pw button { position: absolute; top: 0; right: 0; height: var(--header-h); padding: 0 var(--pad-md); border: 0; background: none; color: var(--ink-soft); font-size: 0.875rem; cursor: pointer; }
.pw button:hover { color: var(--ink); }
.auth-help { font-size: 0.9375rem; line-height: 1.4; color: var(--ink-soft); }
.auth-help a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Long text: privacy policy ──────────────────────────────────────── */
.policy-grid { align-items: start; row-gap: var(--space-stack); }
.policy-toc { grid-column: 1 / span 3; position: sticky; top: 112px; display: flex; flex-direction: column; }
.policy-toc a { min-height: 36px; display: flex; align-items: center; font-size: 0.9375rem; line-height: 1.25; color: var(--ink-soft); }
.policy-toc a:hover { color: var(--ink); }
.prose { grid-column: 5 / span 7; color: var(--ink); }
.prose .intro { font-size: 1.25rem; line-height: 1.35; }
.prose h2 { margin-top: var(--gap-2xl); font-size: var(--t-title); line-height: var(--lh-head); letter-spacing: var(--ls-head); scroll-margin-top: 112px; }
.prose p, .prose ul { margin-top: var(--gap-sm); line-height: 1.55; color: var(--ink-soft); }
.prose li { position: relative; padding-left: var(--pad-lg); }
.prose li + li { margin-top: var(--gap-xs); }
.prose li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--accent); }
.prose li b, .prose p b { font-weight: 500; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose .intro { color: var(--ink); }

/* ── Scrolling course page ──────────────────────────────────────────── */
.flow-grid { align-items: start; }
.flow-toc { grid-column: 1 / span 3; position: sticky; top: 112px; max-height: calc(100vh - 136px); overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.flow-toc a { min-height: 32px; padding: var(--pad-2xs) 0; font-size: 0.875rem; line-height: 1.25; color: var(--fg-muted); }
.flow-toc a:hover { color: #fff; }
.flow-toc a.main { margin-top: var(--gap-sm); font-size: 1rem; color: #fff; }
.flow-toc a.main:first-child { margin-top: 0; }
.flow-body { grid-column: 4 / span 9; min-width: 0; }

/* ── Deck ───────────────────────────────────────────────────────────── */
body.deck-page { padding: 0; background: var(--void); color: #fff; }
body.deck-page::before { display: none; }
.dk-top { position: fixed; inset: 0 0 auto; z-index: 5; height: 56px; padding: 0 var(--margin-comfortable); display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); font-size: 0.9375rem; }
.dk-top a { color: #ffffffb3; }
.dk-top a:hover { color: #fff; }
.dk-top .brand { display: inline-flex; align-items: center; gap: var(--gap-xs); color: #fff; font-size: 1.125rem; letter-spacing: -0.03em; }
.dk-top svg { width: 18px; height: 22px; }
.dk-prog { position: fixed; inset: 0 0 auto; z-index: 6; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .3s var(--ease-out); }
.dk-ctl { position: fixed; right: var(--margin-comfortable); bottom: var(--margin-comfortable); z-index: 5; display: flex; background: #141414e6; box-shadow: inset 0 0 0 1px #ffffff40; }
.dk-ctl button { width: var(--header-h); height: var(--header-h); border: 0; background: none; color: #fff; cursor: pointer; }
.dk-ctl button:hover { background: #ffffff14; }
.dk-ctl button:disabled { color: #ffffff4d; cursor: default; background: none; }
.dk-ctl span { min-width: 4.5rem; display: grid; place-items: center; font-size: 0.9375rem; box-shadow: inset 1px 0 0 #ffffff40, inset -1px 0 0 #ffffff40; }
.dk-deck:not(.is-paged) + .dk-ctl { display: none; }

.dk-slide { padding: var(--space-block) var(--margin-comfortable); display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--cell-d); }
.dk-deck .dk-slide { min-height: 100vh; }
.dk-deck.is-paged .dk-slide { display: none; height: 100vh; min-height: 0; overflow-y: auto; padding-top: 72px; padding-bottom: 88px; border-top: 0; }
.dk-deck.is-paged .dk-slide.is-on { display: flex; }
.flow-body .dk-slide { justify-content: flex-start; padding: var(--space-stack) 0; }
.flow-body .dk-slide:first-child { border-top: 0; padding-top: 0; }
.dk-s-inner { width: 100%; max-width: 64rem; display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-md); margin: auto 0; }
.dk-s-inner--center { align-items: center; text-align: center; }
.dk-s-brand { font-size: 1.125rem; }
.dk-s-brand b { font-weight: 500; color: var(--accent-tint); }
.dk-s-chip { height: 28px; padding: 0 var(--pad-sm); display: inline-flex; align-items: center; background: #ffffff1a; font-size: 0.75rem; }
.dk-s-eyebrow { font-size: 0.75rem; color: var(--accent-tint); }
.dk-s-h1 { font-size: var(--t-display); font-weight: 700; line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.dk-s-title { font-size: var(--t-story-title); font-weight: 700; line-height: var(--lh-head); letter-spacing: var(--ls-head); text-wrap: balance; }
.dk-s-sub { max-width: 46rem; font-size: 1.25rem; line-height: 1.35; color: #ffffffb3; }
.dk-s-meta { font-size: 0.9375rem; color: var(--fg-muted, #ffffff80); }
.dk-slide--divider .dk-s-title { font-size: var(--t-display); line-height: var(--lh-head); }
.dk-dv-num { font-size: 8rem; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.dk-cols2, .dk-pts { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 1px 1px 0; margin-top: var(--gap-sm); }
.dk-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dk-col, .dk-pt { margin: 0 -1px -1px 0; padding: var(--card-padding-md); display: flex; flex-direction: column; gap: var(--gap-xs); box-shadow: inset 0 0 0 1px var(--cell-d); }
.dk-col h3, .dk-pt h3 { font-size: var(--t-heading); font-weight: 700; line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.dk-col p, .dk-pt p { font-size: 1rem; line-height: 1.45; color: #ffffffa6; }
.dk-chain { width: 100%; display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--gap-xs); margin-top: var(--gap-sm); }
.dk-cnode { flex: 1 1 8.5rem; padding: var(--pad-md); display: flex; flex-direction: column; gap: var(--gap-2xs); box-shadow: inset 0 0 0 1px var(--cell-d); }
.dk-cnode.dk-end { background: var(--accent); box-shadow: none; }
.dk-cn { font-size: 0.75rem; color: #ffffff80; }
.dk-ct { font-size: 1.125rem; }
.dk-cs { font-size: 0.8125rem; line-height: 1.3; color: #ffffffa6; }
.dk-carr { display: none; }
.dk-quo { margin: 0; font-size: var(--t-narrative); line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.dk-quo-by { font-size: 0.9375rem; color: #ffffffa6; }
.dk-term, .dk-codebox { width: 100%; max-width: 46rem; margin-top: var(--gap-sm); background: #0b0b0b; border: 1px solid #ffffff1f; border-radius: var(--win-r); overflow: hidden; }
.dk-term-bar, .dk-cb-bar { position: relative; height: 40px; padding: 0 var(--pad-md); display: flex; align-items: center; gap: var(--gap-xs); background: var(--win-bar); border-bottom: 1px solid #000; font-size: 0.8125rem; color: #ffffffa6; }
.dk-term-title, .dk-cb-fn { position: absolute; inset: 0 80px; display: flex; align-items: center; justify-content: center; }
.dk-dots { display: flex; gap: var(--gap-xs); }
.dk-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--win-red); box-shadow: inset 0 0 0 1px #0000001f; }
.dk-dots i:nth-of-type(2) { background: var(--win-yellow); }
.dk-dots i:nth-of-type(3) { background: var(--win-green); }
.dk-term-body, .dk-codebox pre { margin: 0; padding: var(--pad-lg) var(--pad-xl); overflow-x: auto; font: 400 0.9375rem/1.7 var(--font-mono); word-spacing: 0; color: #ffffffd9; }
.dk-term-body *, .dk-codebox * { word-spacing: 0; }
.dk-tl { white-space: pre; }
.dk-tp { color: #ffffff8c; }
.dk-ok { color: var(--accent-tint); }
.dk-steps { width: 100%; display: flex; flex-direction: column; margin-top: var(--gap-sm); }
.dk-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--gap-md); padding: var(--pad-md) 0; border-top: 1px solid var(--cell-d); }
.dk-st-n { height: 40px; display: grid; place-items: center; background: #ffffff1a; }
.dk-steps h3 { font-size: var(--t-heading); font-weight: 700; line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.dk-steps p { margin-top: var(--gap-2xs); font-size: 1rem; line-height: 1.4; color: #ffffffa6; }
.dk-weeks { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 1px 1px 0; margin-top: var(--gap-sm); }
.dk-week { margin: 0 -1px -1px 0; padding: var(--pad-md); display: flex; flex-direction: column; gap: var(--gap-sm); box-shadow: inset 0 0 0 1px var(--cell-d); }
.dk-wk { font-size: 0.75rem; color: var(--accent-tint); }
.dk-wday { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0 var(--gap-xs); }
.dk-wd-n { grid-row: span 2; font-size: 0.8125rem; color: #ffffff80; }
.dk-wd-t { font-size: 1rem; line-height: 1.2; }
.dk-wd-s { font-size: 0.75rem; line-height: 1.3; color: #ffffff80; overflow-wrap: anywhere; }
.dk-final .dk-wd-t { color: var(--accent-tint); }
.dk-tbl { width: 100%; margin-top: var(--gap-sm); border-collapse: collapse; line-height: 1.35; }
.dk-tbl th, .dk-tbl td { padding: var(--pad-sm) var(--pad-md) var(--pad-sm) 0; border-top: 1px solid var(--cell-d); text-align: left; vertical-align: top; font-weight: 500; }
.dk-tbl th { border-top: 0; font-size: 0.875rem; color: #ffffff80; }
.dk-tbl td:first-child { width: 4rem; color: #ffffff80; }
.dk-tbl td:last-child { color: #ffffffa6; overflow-wrap: anywhere; }
.dk-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap-xs); margin-top: var(--gap-sm); }
.dk-cta-row a { min-height: var(--header-h); padding: 0 var(--pad-xl); display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px #ffffff40; }
.dk-cta-row a:first-child { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.dk-cta-note { font-size: 0.875rem; color: #ffffff80; }

/* ── Tablet ≤ 1023px ────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .c3, .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-head, .day-side, .form-side, .policy-toc, .flow-toc { position: static; }
  .cc-head, .cc-body, .day-side, .day-main, .form-side, .form-card, .policy-toc, .prose, .flow-body, .contact-copy, .contact-list { grid-column: 1 / -1; }
  .flow-toc { display: none; }
  .day-side h2 { display: none; }
  .day-side ol { display: flex; overflow-x: auto; margin: 0 calc(-1 * var(--margin-comfortable)); padding: 0 var(--margin-comfortable); scrollbar-width: none; }
  .day-side li { flex: none; }
  .day-side a { display: flex; min-height: 44px; padding: 0 var(--pad-md); }
  .day-side a span:last-child { display: none; }
  .policy-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-md); }
  .dk-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Mobile ≤ 743px ─────────────────────────────────────────────────── */
@media (max-width: 743px) {
  .page-head { padding-top: calc(72px + var(--space-stack)); }
  .page-title { font-size: 2.75rem; }
  .c2, .c3 { grid-template-columns: 1fr; }
  .row, a.row { grid-template-columns: 3.75rem minmax(0, 1fr); gap: var(--gap-2xs) var(--gap-sm); }
  .row p { grid-column: 2; }
  .row .go { display: none; }
  .person-card { grid-template-columns: 1fr; gap: var(--gap-md); }
  .person-card img { width: 6.875rem; }
  .person-cols, .frow { grid-template-columns: 1fr; }
  .pf-extra { display: none; }
  .contact-list dd { overflow-wrap: anywhere; }
  .policy-toc { grid-template-columns: 1fr; }
  .form-send .btn { width: 100%; }
  .pn a:last-child { text-align: left; align-items: flex-start; }
  .dk-cols2, .dk-pts, .dk-cols-3 { grid-template-columns: 1fr; }
  .dk-weeks { grid-template-columns: 1fr; }
  .dk-dv-num { font-size: 5rem; }
  .dk-s-sub { font-size: 1.0625rem; }
  .dk-term-body, .dk-codebox pre { padding: var(--pad-md); font-size: 0.75rem; }
  .dk-ctl { right: 0; bottom: 0; left: 0; }
  .dk-ctl button { flex: 1; }
  .dk-chain { gap: var(--gap-2xs); }
  .dk-cnode { flex-basis: calc(50% - 2px); }
}
