/* Hallmark · shape: club website · genre: community · theme: custom · job: help parents find the right group and its training time · idea: "A lit stage on top, daylight below: the night is the header, the page heads and the hero, the body is paper" · vibe: "bright, confident, clean, proud, warm"
 * paper: oklch(98.3% 0.005 356) · accent: oklch(64.2% 0.262 356.3) · display: Fraunces (owner-mandated) · body: Plus Jakarta Sans (owner-mandated) · hero: dark title band over a magenta stage edge · nav: dark bar · footer: black columns · imagery: high-contrast black and white · signature: schedule matrix with the open groups as magenta cells
 * axes: light/serif/magenta · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: E, the discipline rows share the start page index shape on purpose */
@import url("../stil.css");

/* Schedule matrix: discipline by age */
.schedule { padding-block: var(--space-xl) var(--section-gap); }
.schedule__title { font-size: var(--text-title); margin-bottom: var(--space-xl); }
.schedule__scroll { overflow-x: auto; }
.schedule__scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.matrix { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: var(--space-2xs); table-layout: fixed; }
.matrix th, .matrix td { padding: var(--space-lg) var(--space-md); text-align: left; vertical-align: top; }
.matrix thead th { padding-block: 0 var(--space-sm); font-weight: 600; border-bottom: var(--rule-bold) solid var(--color-rule-strong); }
.matrix__age { display: block; margin-top: var(--space-2xs); font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); }
.matrix tbody th { width: 18%; padding-left: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); font-variation-settings: "SOFT" 0, "WONK" 0; letter-spacing: var(--tracking-display); }
.matrix tbody td { background: var(--color-paper-2); }
.matrix__group { display: block; font-weight: 600; text-decoration: none; }
.matrix__group:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.matrix__time { display: block; margin-block: var(--space-2xs) var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.matrix tbody .matrix__open { --color-focus: var(--color-accent-ink); background: var(--color-accent); color: var(--color-accent-ink); }
.matrix__open .matrix__time { color: var(--color-accent-ink); }
.schedule__notes { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-2xl); margin-top: var(--space-xl); color: var(--color-ink-2); }
.schedule__notes strong { color: var(--color-ink); font-weight: 600; }

/* Disciplines as a typographic index: big word, sentence, small photo */
.disciplines-list { padding-block: 0; }
.discipline-row:first-child { border-top: var(--rule-bold) solid var(--color-rule-strong); }
.discipline-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.discipline-row__text { grid-column: 1 / span 8; grid-row: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-sm); align-items: center; }
.discipline-row__text .section-title { grid-column: 1 / span 5; grid-row: 1 / span 2; font-size: var(--text-index); }
.discipline-row__text p { grid-column: 6 / -1; color: var(--color-ink-2); }
.discipline-row__text .discipline-row__meta { font-weight: 600; color: var(--color-ink); font-size: var(--text-sm); }
.discipline-row__photo { grid-column: 9 / -1; grid-row: 1; }
.discipline-row__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Soloists teaser */
.solo { padding-block: var(--section-gap-s); }
.solo__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: baseline; }
.solo__title { grid-column: 1 / span 5; font-size: var(--text-title); }
.solo p { grid-column: 6 / span 5; color: var(--color-ink-2); }
.solo .link { grid-column: 11 / -1; justify-self: end; }

/* Phone: each discipline becomes a stacked list, so no column hides off-screen */
@media (max-width: 40rem) {
  .schedule__scroll { overflow: visible; }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; min-width: 0; width: 100%; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .matrix tbody tr { display: grid; gap: var(--space-2xs); padding-block: var(--space-lg); }
  .matrix tbody th { width: 100%; padding: 0 0 var(--space-xs); border-bottom: var(--rule-bold) solid var(--color-rule-strong); }
  .matrix td { padding: var(--space-sm) var(--space-md); }
  .matrix td::before { content: attr(data-stufe); display: block; margin-bottom: var(--space-2xs); font-size: var(--text-xs); }
}

@media (max-width: 60rem) {
  .discipline-row__text, .discipline-row__photo { grid-column: 1 / -1; grid-row: auto; }
  .discipline-row__text { grid-template-columns: minmax(0, 1fr); }
  .discipline-row__text .section-title, .discipline-row__text p { grid-column: 1 / -1; grid-row: auto; }
  .discipline-row__photo { margin-top: var(--space-lg); }
  .solo__title, .solo p, .solo .link { grid-column: 1 / -1; justify-self: start; }
}
