/* Hallmark · shape: program pages (index, detail, exercise, plan preview) · genre: atmospheric · theme: custom (DESIGN.md, locked) · idea: "the week of training lit on the same grey figure that sells the site" · vibe: "black atelier, hairline type, one champagne metal" · job: sign up · draw: none (design.md)
 * hero: programs index: Banner, head, one sentence and the action on the left, one specimen plate on the right; detail pages open on a title block, no hero · nav: centred wordmark between link groups, solid from the top (DESIGN.md) · footer: index columns (DESIGN.md) · imagery: product: MoveKit posters and clips through mediaUrl() on warm plates, the live 3D figure lit by the week's load · signature: the weekly load lit on the character, front and back
 * axes: dark/grotesk-sans/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, the pages inherit the home page's system on purpose (DESIGN.md inverts variety); the lift comes from the figure carrying real program data instead of a decorative turn */
/* Hallmark · hero-review: fix · 5 findings · 4 resolved 1 partial (two were a capture without the /media route) · finish-review: subagent · 8 findings · 6 resolved 1 no change (biceps regions verified) 1 capture artifact · gap: none */
/* Hallmark · waive 28b · pages/exercise.js sets the poster through mediaUrl(slug, 'poster') before the clip loads · the slug comes from the URL, so no static poster could be right, and without script the video block is hidden */
/* Hallmark · waive 59 · on exercise.html the program list sits 105px under the clip, split from it by a hairline rule · the card and the programs that use the move are one record, and a 120px gap opened a dead band under the clip (gate 79) */
/* Hallmark · answered F21 · the footer column heads are h3 under the page's h2 sections, as on the approved home page; on exercise.html the h2 renders with the script */
/* Hallmark · dismissed 77 · programs.html is an index of seven programs: hero, two grouped lists and a close with three facts is the page's whole content, not a landing strip */
/* Hallmark · dismissed 23 · .meter__val is a 6px data bar inside the week table, a few percent of the screen at most, the one series the table argues from */

:root { --nav-h: 80px; --thumb: 64px; --plate: var(--color-ink); }

/* ---- page frame under the solid nav ---- */
.nav__more { display: none; }
@media (max-width: 60rem) and (min-width: 40.01rem) { .nav__more { display: inline; color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); } }
.plate { background: var(--plate); }
.plate > img { width: 100%; height: 100%; object-fit: cover; }
.plate > img.is-missing { visibility: hidden; }

/* ---- programs index: banner hero ---- */
.ihero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; min-height: calc(100dvh - var(--space-3xl)); padding-top: calc(var(--nav-h) + var(--space-xl)); padding-bottom: var(--space-xl); }
.ihero__copy { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); justify-items: start; padding-bottom: var(--space-xl); }
.ihero h1 { font-size: var(--text-display-s); letter-spacing: var(--tracking-display); line-height: 1.02; }
.ihero__sub { max-width: 22ch; font: italic 400 var(--text-2xl)/1.2 var(--font-outlier); color: var(--color-ink); }
.ihero .lead { max-width: 34ch; }
.ihero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xl); margin-top: var(--space-sm); }
.ihero__fig { grid-column: 7 / -1; position: relative; margin: 0; aspect-ratio: 4 / 5; height: min(72dvh, 680px); width: auto; max-width: 100%; justify-self: end; overflow: hidden; }
.ihero__fig > img { position: absolute; inset: 0; object-position: 50% 50%; transform: scale(1.18); transform-origin: 52% 55%; }
@media (max-width: 60rem) { .ihero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: calc(var(--nav-h) + var(--space-xl)); padding-bottom: var(--space-2xl); } .ihero__copy, .ihero__fig { grid-column: 1 / -1; } .ihero__fig { height: auto; width: 100%; aspect-ratio: 4 / 3; justify-self: stretch; } }

/* ---- programs index: two groups of rows ---- */
.pgroup { padding-block: var(--section-gap-s) 0; }
.pgroup__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-xl); }
.pgroup__head h2 { grid-column: 1 / span 7; font-size: var(--text-section); }
.pgroup__head .lead { grid-column: 9 / span 4; }
.pgroup__list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.pgm { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) 168px; gap: var(--gap-columns); align-items: center; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.pgm:hover { background: var(--color-paper-2); }
.pgm:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.pgm__main { display: grid; gap: var(--space-xs); min-width: 0; }
.pgm__name { font: italic 400 var(--text-3xl)/1.1 var(--font-outlier); }
.pgm__who { color: var(--color-ink-2); max-width: 46ch; }
.pgm__facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.pgm__facts > div { display: grid; gap: var(--space-2xs); align-content: start; }
.pgm__facts dt { color: var(--color-muted); font-size: var(--text-sm); }
.pgm__facts dd { margin: 0; font: 100 var(--text-2xl)/1 var(--font-display); }
.pgm__shot { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.pgm__shot > img { position: absolute; inset: 0; transform: scale(1.25); transform-origin: 50% 45%; }
@media (max-width: 60rem) {
  .pgroup__head h2, .pgroup__head .lead { grid-column: 1 / -1; }
  .pgm { grid-template-columns: minmax(0, 1fr) 88px; gap: var(--space-md); align-items: start; }
  .pgm__facts { grid-column: 1 / -1; grid-row: 2; }
  .pgm__shot { grid-column: 2; grid-row: 1; }
  .pgm__name { font-size: var(--text-2xl); }
}
@media (prefers-reduced-motion: reduce) { .pgm { transition: none; } }

.iclose { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); padding-block: var(--section-gap-s) var(--section-gap); }
.iclose h2 { grid-column: 1 / span 7; font-size: var(--text-section); }
.iclose__help { grid-column: 9 / span 4; align-self: end; color: var(--color-ink-2); }
.iclose__answers { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--rule-hair) solid var(--color-rule-2); }
.iclose__answers a { display: flex; align-items: center; min-height: 96px; padding: var(--space-md) var(--space-md) var(--space-md) 0; white-space: nowrap; border-bottom: var(--rule-hair) solid var(--color-rule); font: italic 400 var(--text-2xl)/1.15 var(--font-outlier); color: var(--color-ink); text-decoration: none; transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.iclose__answers a:hover { background: var(--color-paper-2); }
.iclose__answers a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
@media (max-width: 60rem) { .iclose h2, .iclose__help { grid-column: 1 / -1; } .iclose__answers { grid-template-columns: minmax(0, 1fr); } .iclose__answers a { min-height: 72px; font-size: var(--text-xl); } }
@media (prefers-reduced-motion: reduce) { .iclose__answers a { transition: none; } }

/* ---- detail pages: title block ---- */
.phead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); padding-top: calc(var(--nav-h) + var(--space-2xl)); padding-bottom: var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.phead__title { grid-column: 1 / span 9; font-size: var(--text-display-s); letter-spacing: var(--tracking-display); }
.phead__who, .plan__name { grid-column: 1 / span 6; }
.plan__name { font: italic 400 var(--text-2xl)/1.15 var(--font-outlier); color: var(--color-ink); }
.phead__switch { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); align-items: center; margin-top: var(--space-xs); }
.phead > .cap { grid-column: 1 / -1; }
.seg--links { gap: var(--space-3xs); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg--links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; font-size: var(--text-sm); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg--links a:hover { color: var(--color-ink); background: var(--color-paper-2); }
.seg--links a[aria-current="page"] { background: var(--color-paper-3); color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-ink); }
.seg--links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.seg--links a.is-members { color: var(--color-muted); }
@media (max-width: 40rem) { .seg--links a { padding: 0 var(--space-sm); } }
@media (prefers-reduced-motion: reduce) { .seg--links a { transition: none; } }

.facts { grid-column: 1 / -1; margin: var(--space-sm) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap-columns); border-top: var(--rule-hair) solid var(--color-rule); }
.facts > div { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); align-content: start; }
.facts dt { color: var(--color-muted); font-size: var(--text-sm); }
.facts dd { margin: 0; color: var(--color-ink); }
.pnote { grid-column: 1 / -1; }
.pnote summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.pnote summary:hover { color: var(--color-ink); }
.pnote summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pnote p { padding-top: var(--space-xs); color: var(--color-ink-2); max-width: 70ch; }
@media (max-width: 60rem) { .phead__title, .phead__who, .plan__name { grid-column: 1 / -1; } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- detail pages: sessions beside the body ---- */
.pbody { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) var(--space-3xl); padding-block: var(--space-2xl) var(--space-3xl); align-items: start; }
.pbody__days { display: grid; gap: var(--space-3xl); min-width: 0; }
.pbody:has(> .pbody__days--wide) { grid-template-columns: minmax(0, 1fr); }
.pbody__days--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-3xl); align-items: start; }
.pbody__days--wide > .locked, .pbody__days--wide > h2 { grid-column: 1 / -1; }
@media (max-width: 60rem) { .pbody__days--wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 60rem) { .pbody { grid-template-columns: minmax(0, 1fr); } }

.day { display: grid; gap: var(--space-md); min-width: 0; }
.day__head { display: grid; gap: var(--space-2xs); font-weight: 400; }
.day__dow { font: 400 var(--text-sm)/1.2 var(--font-body); color: var(--color-muted); }
.day__name { font: italic 400 var(--text-2xl)/1.15 var(--font-outlier); }
.day__meta { color: var(--color-ink-2); max-width: 65ch; }
.day__names { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: var(--gap-columns); color: var(--color-ink-2); border-top: var(--rule-hair) solid var(--color-rule); }
.day__names li { padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); break-inside: avoid; }

.moves { width: 100%; border-collapse: collapse; }
.moves th, .moves td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: middle; font-weight: 400; }
.moves thead th { padding-block: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; border-bottom-color: var(--color-rule-2); }
.moves td { white-space: nowrap; font-size: var(--text-sm); color: var(--color-ink-2); }
.moves .num { font-variant-numeric: tabular-nums; }
.move { display: grid; grid-template-columns: var(--thumb) minmax(0, 1fr); gap: var(--space-md); align-items: center; color: var(--color-ink); text-decoration: none; min-height: 44px; }
.move__thumb { position: relative; width: var(--thumb); height: var(--thumb); overflow: hidden; }
.move__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.8); transform-origin: 50% 50%; }
.move__name { font: italic 400 var(--text-lg)/1.2 var(--font-outlier); }
.move:hover .move__name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.move:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 40rem) {
  .moves thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .moves tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-sm); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .moves th, .moves td { padding: 0; border: 0; }
  .moves tbody th { grid-column: 1 / -1; padding-bottom: var(--space-xs); }
  .moves td { white-space: normal; }
  .moves td::before { content: attr(data-label); display: block; color: var(--color-muted); font-size: var(--text-xs); }
}

.locked { display: grid; gap: var(--space-md); padding: var(--space-xl); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-accent); }
.locked__head { font: 400 var(--text-xl)/1.25 var(--font-body); }
.locked p { color: var(--color-ink-2); max-width: 62ch; }
.locked__actions { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; }
.day--locked .day__name { color: var(--color-ink-2); }

/* ---- the week on the body ---- */
.load { display: grid; gap: var(--space-xl); position: sticky; top: calc(var(--nav-h) + var(--space-lg)); min-width: 0; }
.load__head, .load h2 { font-size: var(--text-section); }
.load--locked { position: static; }
@media (max-width: 60rem) { .load { position: static; } }
.loadmap { margin: 0; display: grid; gap: var(--space-sm); }
.loadmap__stage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); aspect-ratio: 4 / 5; background: var(--color-paper); }
.loadmap__cv { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); cursor: grab; touch-action: pan-y; }
.loadmap.is-live .loadmap__cv { opacity: 1; }
.loadmap__still { position: absolute; inset: auto 0 0 0; padding: var(--space-md); display: none; }
.loadmap.is-still .loadmap__still, html:not(.js) .loadmap__still { display: block; }
.loadmap.is-still .loadmap__cv, html:not(.js) .loadmap__cv { display: none; }
.loadmap__cap { display: grid; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.loadmap__views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.legend__ramp { display: inline-grid; grid-template-columns: repeat(4, 20px); gap: var(--space-3xs); order: 1; }
.legend__ramp i { height: 8px; background: color-mix(in oklab, var(--color-accent) 40%, var(--color-paper-3)); }
.legend__ramp i:nth-child(2) { background: color-mix(in oklab, var(--color-accent) 60%, var(--color-paper-3)); }
.legend__ramp i:nth-child(3) { background: color-mix(in oklab, var(--color-accent) 80%, var(--color-paper-3)); }
.legend__ramp i:nth-child(4) { background: var(--color-accent); }
.legend > span:last-child { order: 2; }
@media (prefers-reduced-motion: reduce) { .loadmap__cv { transition: none; } }

.vol { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.vol caption { text-align: left; color: var(--color-muted); padding-bottom: var(--space-sm); caption-side: top; }
.vol th, .vol td { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; font-weight: 400; }
.vol thead th { color: var(--color-muted); border-bottom-color: var(--color-rule-2); white-space: nowrap; }
.vol .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vol__note { display: block; color: var(--color-muted); font-size: var(--text-xs); }
.vol__bar { width: 38%; padding-right: 0; }
.meter { position: relative; display: block; height: 6px; background: var(--color-paper-3); }
.meter__band { position: absolute; top: -3px; bottom: -3px; left: var(--lo); width: calc(var(--hi) - var(--lo)); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); }
.meter__val { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--color-accent); }

.pback { padding-bottom: var(--section-gap-s); }

/* ---- footer on narrow phones: one column so long legal links stay on one line ---- */
@media (max-width: 40rem) { .footer__col, .footer__col:first-child { grid-column: 1 / -1; } }

/* ---- exercise card ---- */
.xtop { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) var(--space-3xl); padding-top: calc(var(--nav-h) + var(--space-2xl)); padding-bottom: var(--space-xl); align-items: start; }
html:not(.js) .xpage__media { display: none; }
.xpage__media { position: sticky; top: calc(var(--nav-h) + var(--space-lg)); }
.video { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.video__el { width: 100%; height: 100%; object-fit: cover; }
.video.is-missing .video__el { visibility: hidden; }
.video__toggle { position: absolute; right: var(--space-md); bottom: var(--space-md); z-index: 2; background: var(--color-paper); }
.video__toggle:hover { background: var(--color-paper-3); }
html:not(.js) .video__toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .video__toggle { display: none; } }
.xpage__text { display: grid; gap: var(--space-xl); align-content: start; min-width: 0; }
.xpage__title { font-size: var(--text-display-s); letter-spacing: var(--tracking-display); }
.facts--ex { grid-template-columns: minmax(0, 1fr); margin: 0; }
.facts--ex > div { grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-md); }
.xused { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); padding-block: var(--space-2xl) var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); }
.xused > * { grid-column: 1 / -1; }
.used__head { font-size: var(--text-section); }
.used__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); border-top: var(--rule-hair) solid var(--color-rule); }
.used__list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-xs) var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.used__list a { font: italic 400 var(--text-2xl)/1.2 var(--font-outlier); color: var(--color-ink); text-decoration: none; }
.used__list a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.used__list a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.xpage__back { margin-top: var(--space-md); }
@media (max-width: 60rem) { .xtop { grid-template-columns: minmax(0, 1fr); } .xpage__media { position: static; } .used__list { grid-template-columns: minmax(0, 1fr); } }
/* run 8: exercise.html for a signed-in free account on a members exercise (pages/exercise.js) */
.video--members { background: var(--color-paper-2); display: grid; place-items: center; aspect-ratio: 1936 / 1088; box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule); }
.video__members { margin: 0; color: var(--color-ink-2); }
.video__members a { color: var(--color-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
