/* yoga-schedule: one theme, "two-ink zine" (design option C, chosen 2026-11-05).
   Teal and marigold inks on newsprint; typewriter type for headings, times and labels.
   A single light theme on purpose (no dark mode). */

/* Fonts are served from this site (SIL Open Font License; see fonts/OFL-*.txt): no requests to Google. */
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-400.ddb0efd5d81c.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/courier-prime-700.4faaae3e616a.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/work-sans-variable.4890688e6436.woff2") format("woff2"); }

:root {
  --paper: #f2efe8;
  --ink: #22201c;
  --muted: #4f4a42;      /* 7.6:1 on paper */
  --rule: #d9d3c6;
  --teal: #1d6f73;       /* ink 1: borders, fills */
  --teal-text: #175c60;  /* teal for text: 6.3:1 on paper */
  --marigold: #e8b03a;   /* ink 2: fills behind dark text only */
  --warn: #9c3a28;       /* cancelled */
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.45 var(--sans); }
a { color: var(--teal-text); }
a:hover { color: #0f4245; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.error { color: var(--warn); }
code { font-family: var(--mono); font-size: .9em; }

/* ---- header / footer ---- */
header.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
header.top .mark { flex: none; display: block; }
header.top .names { display: flex; flex-direction: column; }
.brand { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; text-transform: lowercase; line-height: 1.1; }
.brand:hover { color: var(--ink); }
.tag { font-size: .8rem; color: var(--muted); text-transform: lowercase; }
header.top { flex-wrap: wrap; }
/* region switcher: two real links, the current one inked in (aria-current) */
.regionswitch { display: flex; gap: 0; margin-left: auto; }
.regionswitch .chip + .chip { border-left: 0; }
.regionswitch .chip:focus-visible, .chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 600px) {
  .regionswitch { margin-left: 0; flex: 1 0 100%; }
  .regionswitch .chip { flex: 1; text-align: center; padding: 2px 4px; font-size: .78rem; }
}
.region-tag { font-family: var(--mono); font-size: .8rem; text-transform: lowercase; text-decoration: none; padding: 0 6px; background: var(--marigold); color: var(--ink); }
.region-tag:hover { color: var(--ink); text-decoration: underline; }
.region-line { margin: 0 0 6px; }
section.gathering { padding: 12px 0 24px; }
section.gathering p { max-width: 38rem; }
ul.studiolist { list-style: none; margin: 0; padding: 0; }
ul.studiolist li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--rule); }
ul.studiolist li > a { font-weight: 600; text-decoration: none; }
ul.studiolist .status { font-size: .75rem; }
main { max-width: 900px; margin: 0 auto; padding: 0 16px 16px; }
footer { max-width: 900px; margin: 28px auto 0; padding: 14px 16px 28px; border-top: 2px solid var(--ink); color: var(--muted); font-size: .82rem; }

/* ---- day strip, chips, filters ---- */
.stickybar { position: sticky; top: 0; z-index: 5; background: var(--paper); margin: 0 -16px; padding: 10px 16px 8px; border-bottom: 1px solid var(--rule); }
.daystrip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.daystrip .day { flex: 1 0 54px; display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; }
.daystrip .day .dow { font-family: var(--mono); font-weight: 700; font-size: .72rem; text-transform: lowercase; }
.daystrip .day .dom { font-size: 1.05rem; font-weight: 600; line-height: 1.15; }
.daystrip .day .n { font-size: .68rem; color: var(--muted); }
.daystrip .day.active { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.daystrip .day.active .n { color: var(--paper); }
.daystrip .day.empty { opacity: .5; }

.chips, .viewtoggle { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.viewtoggle { display: inline-flex; gap: 0; margin: 0 0 6px; }
.chip { padding: 2px 10px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-size: .82rem; white-space: nowrap; text-transform: lowercase; }
.chip:hover { color: var(--ink); background: #e6e1d6; }
.chip.on, .chip.on:hover { background: var(--ink); color: var(--paper); }
.viewtoggle .chip + .chip { border-left: 0; }

details.more-filters { margin: 8px 0 0; }
details.more-filters summary { cursor: pointer; font-family: var(--mono); font-size: .85rem; color: var(--muted); text-transform: lowercase; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.filters select, .filters input[type=search], .filters input:not([type]), .filters input[type=text] {
  font: inherit; font-size: .9rem; padding: 5px 8px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); min-width: 0; }
.filters label { display: flex; gap: 4px; align-items: center; font-size: .85rem; color: var(--muted); }
.filters label.check { gap: 6px; }
.filters button { font: inherit; padding: 5px 12px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.filters .clear { font-size: .85rem; }

/* ---- day list ---- */
.dayhead { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; margin: 12px 0 0; }
.dayhead .muted { font-family: var(--sans); font-weight: 400; font-size: .8rem; }
details.past summary { cursor: pointer; margin: 4px 0; font-size: .85rem; color: var(--muted); }
details.past .session { opacity: .55; }
section.tod h2 { margin: 12px 0 2px; font-size: inherit; }
section.tod h2 { display: inline-block; background: var(--marigold); color: var(--ink); padding: 0 6px; font-family: var(--mono); font-weight: 700; font-size: .8rem; text-transform: lowercase; }
section.tod h2 .muted { color: var(--ink); font-weight: 400; }
.empty-state { padding: 24px 0; color: var(--muted); }
.hiddennote { margin-top: 24px; }

ul.sessions { list-style: none; margin: 0; padding: 0; }
ul.sessions .session { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3.4rem; gap: 0 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.session .time { font-family: var(--mono); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.session .ampm { font-size: .7rem; font-weight: 400; margin-left: 1px; }
.session.cancelled .title { text-decoration: line-through; color: var(--muted); }

details.what { min-width: 0; }
details.what > summary { list-style: none; cursor: pointer; display: block; }
details.what > summary::-webkit-details-marker { display: none; }
details.what > summary .name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
details.what > summary .title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.what > summary .flags { display: inline-flex; gap: 3px; flex: none; }
details.what > summary .sub { display: block; font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.what > summary .studio { color: var(--teal-text); font-weight: 500; }
details.what[open] > summary .title, details.what[open] > summary .sub { white-space: normal; }
details.what .detail { margin: 8px 0 4px; font-size: .88rem; }
details.what .detail .desc { margin: 0 0 8px; }
details.what .detail dl { display: grid; grid-template-columns: 4.5rem 1fr; gap: 2px 10px; margin: 0 0 6px; }
details.what .detail dt { font-family: var(--mono); color: var(--muted); text-transform: lowercase; }
details.what .detail dd { margin: 0; }

.badge { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .7rem; line-height: 1.45; padding: 0 5px; border: 1px solid var(--teal); color: var(--teal-text); text-transform: lowercase; white-space: nowrap; }
.badge.heat { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.badge.warn { border-color: var(--warn); color: var(--warn); }
.badge.soon, .badge.live { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.badge.price { border-style: dashed; }

a.book { justify-self: end; align-self: start; margin-top: 1px; padding: 1px 8px; border: 1.5px solid var(--teal); color: var(--teal-text); text-decoration: none; font-weight: 600; font-size: .8rem; text-transform: lowercase; }
a.book:hover { background: var(--teal); color: var(--paper); }
ul.sessions .session > span:last-child { justify-self: end; }

@media (min-width: 900px) {
  /* one line per class on wide screens: time | name+flags | teacher | studio, town | book */
  details.what > summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.1fr); gap: 0 12px; align-items: baseline; }
  details.what > summary .sub { display: contents; }
  details.what > summary .sep { display: none; }
  details.what > summary .who, details.what > summary .where { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  details.what > summary .who { color: var(--muted); grid-column: 2; }
  details.what > summary .where { grid-column: 3; }
}
@media (max-width: 600px) {
  header.top .tag { display: none; }
  ul.sessions .session { grid-template-columns: 3.2rem minmax(0, 1fr) 3.2rem; gap: 0 8px; }
  .viewtoggle { display: none; }
}

/* ---- week grid (desktop) ---- */
body:has(.weekgrid) main { max-width: 1280px; }
.weekgrid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; margin-top: 14px; }
.weekgrid .col h2 { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: .9rem; }
.weekgrid .col h2 a { color: var(--ink); text-decoration: none; text-transform: lowercase; }
.weekgrid ul { list-style: none; margin: 0; padding: 0; }
.weekgrid li { display: grid; grid-template-columns: 3.1rem 1fr; gap: 0 6px; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: .8rem; line-height: 1.25; }
.weekgrid li .t { font-family: var(--mono); font-weight: 700; }
.weekgrid li .t small { font-weight: 400; }
.weekgrid li .c a { color: var(--ink); text-decoration: none; }
.weekgrid li .c a:hover { text-decoration: underline; }
.weekgrid li .s { grid-column: 2; font-size: .74rem; color: var(--teal-text); }
.weekgrid li.over { opacity: .45; }
.weekgrid li.cancelled .c { text-decoration: line-through; }
.heatdot { color: #b07d10; font-size: .7em; }
@media (max-width: 760px) { .viewtoggle { display: none; } }

/* ---- studio + about pages ---- */
h1 { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; margin: 16px 0 6px; }
h2 { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; margin: 22px 0 6px; }
h3 { font-size: .95rem; margin: 14px 0 4px; }
.status { font-family: var(--mono); font-weight: 700; text-transform: lowercase; }
.status-open { color: var(--teal-text); }
.status-closed { color: var(--warn); }
.trust { font-size: .88rem; padding: 8px 12px; border: 1.5px dashed var(--teal); }
.facts { display: grid; grid-template-columns: 6rem 1fr; gap: 4px 12px; }
.facts dt { font-family: var(--mono); color: var(--muted); text-transform: lowercase; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.history { padding-left: 18px; font-size: .88rem; }

/* ---- admin console + review ---- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; margin: 12px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-family: var(--mono); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.card { border: 1.5px solid var(--ink); padding: 10px 12px; }
table.grid { width: 100%; border-collapse: collapse; font-size: .88rem; display: block; overflow-x: auto; }
table.grid th, table.grid td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.grid th { font-family: var(--mono); border-bottom: 2px solid var(--ink); }
.question { font-size: 1.2rem; }
.evidence li, .ops li { margin-bottom: 6px; overflow-wrap: anywhere; }
.decide { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.decide .buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.decide button, a.button { font: inherit; padding: 8px 14px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.decide button.primary, a.button { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.decide textarea { font: .85rem var(--mono); width: 100%; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.decide input { font: inherit; padding: 5px 8px; border: 1.5px solid var(--ink); background: var(--paper); }
kbd { font: .75em var(--mono); border: 1px solid currentColor; padding: 0 3px; opacity: .75; }
