/* Saghar Eslami's Yoga School — one stylesheet, served from the site itself (the policy allows nothing else).
   Minimal by intent: lime plaster, drafting ink, one lapis accent, hairlines instead of boxes. A pose is drawn as an
   elevation on its floor line, and the page around it is set like a drawing sheet. */

/* ------------------------------------------------------------------------------------------------ typefaces (OFL) */
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/vazirmatn-arabic.05d9ce2a23d3.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
                 U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/vazirmatn-latin-ext.2b9f461883fd.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/vazirmatn-latin.e7eada615dc3.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin-ext.61d59919981f.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin.3e2c4175a96d.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tiro Devanagari Sanskrit"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/tiro-devanagari-sanskrit.b006a9cd84cd.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }

/* ------------------------------------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  /* day: creme */
  --ground: #f4efe2;        /* creme */
  --paper: #fbf8f0;         /* a raised surface: a field, a sheet */
  --ink: #2a2e1f;           /* olive-black ink */
  --ink-2: #4a4f36;
  --muted: #666a51;
  --rule: #ddd6c3;          /* a hairline */
  --rule-2: #e9e3d3;
  --accent: #5a6a26;        /* olive */
  --accent-soft: #e5e6cf;
  --wait: #8c5c0c;          /* something waits on someone */
  --wait-soft: #efe2c4;
  --bad: #973221;
  --bad-soft: #ecd7cc;
  --figure: var(--ink);
  --sans: Vazirmatn, "Segoe UI", Tahoma, system-ui, sans-serif;
  --roman: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", "Kohinoor Devanagari", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
}
/* night: olive — the device's own setting, unless the switch in the header chose */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #262b1a; --paper: #2e3421; --ink: #efe9d7; --ink-2: #d3cdb6; --muted: #aaa88d; --rule: #454c36; --rule-2: #353c28;
    --accent: #c9d38c; --accent-soft: #3b4329; --wait: #e2b364; --wait-soft: #3a3016; --bad: #eb9a88; --bad-soft: #3d2519;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #262b1a; --paper: #2e3421; --ink: #efe9d7; --ink-2: #d3cdb6; --muted: #aaa88d; --rule: #454c36; --rule-2: #353c28;
  --accent: #c9d38c; --accent-soft: #3b4329; --wait: #e2b364; --wait-soft: #3a3016; --bad: #eb9a88; --bad-soft: #3d2519;
}

/* ------------------------------------------------------------------------------------------------ ground */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ground); color: var(--ink); font: 400 16px/1.85 var(--sans); padding-inline: var(--gutter);
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { line-height: 1.7; }
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .3em;
  text-decoration-thickness: 1px; transition: text-decoration-color .15s, color .15s; }
a:hover { text-decoration-color: currentColor; }
.wrap { max-width: 1180px; margin-inline: auto; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.3; font-weight: 300; }
h2 { font-size: 1.3rem; line-height: 1.45; }
h3 { font-size: 1.05rem; line-height: 1.5; font-weight: 500; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.latin { direction: ltr; unicode-bidi: isolate; }
.roman { font-family: var(--roman); font-style: italic; font-weight: 500; font-size: 1.14em; direction: ltr; unicode-bidi: isolate; }
.deva { font-family: var(--deva); font-style: normal; }
.mono { font-family: var(--mono); font-size: .86rem; }
.prose { max-width: var(--measure); }
bdi { unicode-bidi: isolate; }

/* the label that opens a section, as on a drawing: a number, a word, a rule to the margin */
.label { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.label .n { font-variant-numeric: tabular-nums; color: var(--ink-2); }
html[lang="en"] .label { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }   /* Persian is never tracked */

/* ------------------------------------------------------------------------------------------------ header */
header.top { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  padding-block: 22px 18px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand .name { font-size: 1rem; font-weight: 500; line-height: 1.35; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; font-size: .92rem; margin-inline-start: auto; }
nav.main a, nav.main button.link { color: var(--ink-2); text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent;
  background: none; border-inline: 0; border-top: 0; font: inherit; cursor: pointer; min-height: 0; }
nav.main a:hover, nav.main button.link:hover { color: var(--ink); background: none; }
nav.main a.on { color: var(--ink); border-bottom-color: var(--ink); }
nav.main form { display: inline; margin: 0; }
nav.main .sep { width: 1px; height: 14px; background: var(--rule); }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 9px;
  background: var(--accent); color: var(--paper); font-size: .7rem; font-weight: 600; margin-inline-start: 5px; line-height: 1; }
.lang a { font-size: .82rem; color: var(--muted); text-decoration: none; border: 1px solid var(--rule); border-radius: 99px; padding: 3px 12px; }
.lang a:hover { color: var(--ink); border-color: var(--ink); }
.switches { display: flex; align-items: center; gap: 8px; }
/* day and night: one round button; it shows the moon by day and the sun by night — where a press takes you */
.theme { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--rule); border-radius: 50%;
  color: var(--ink-2); text-decoration: none; transition: border-color .15s, color .15s; }
.theme:hover { border-color: var(--ink); color: var(--ink); }
.theme svg { width: 15px; height: 15px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}

main { padding-block: 48px 96px; display: grid; gap: 64px; }
main > * { min-width: 0; }

/* ------------------------------------------------------------------------------------------------ surfaces */
.card { background: var(--paper); border: 1px solid var(--rule-2); border-radius: 2px; padding: 24px 26px; display: grid; gap: 14px; align-content: start; }
.section { display: grid; gap: 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
a.card { text-decoration: none; color: var(--ink); transition: border-color .15s; }
a.card:hover { border-color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ------------------------------------------------------------------------------------------------ controls */
button, .button { font: 500 .92rem/1 var(--sans); background: var(--ink); color: var(--ground); border: 1px solid var(--ink);
  border-radius: 2px; padding: 12px 22px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; transition: background .15s, border-color .15s, color .15s; }
button:hover, .button:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
button.quiet, .button.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
button.quiet:hover, .button.quiet:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
button.warn { background: transparent; color: var(--bad); border-color: var(--bad-soft); }
button.warn:hover { background: var(--bad); border-color: var(--bad); color: var(--paper); }
button.small, .button.small { padding: 7px 12px; min-height: 34px; font-size: .84rem; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

form.stack { display: grid; gap: 20px; max-width: 620px; }
form.stack > button { justify-self: start; }
.field { display: grid; gap: 6px; }
.field > label { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.field .help { font-size: .8rem; color: var(--muted); }
.field .err, .errorlist { color: var(--bad); font-size: .85rem; margin: 0; padding: 0; list-style: none; }
input, select, textarea { font: inherit; font-size: .98rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule);
  border-radius: 2px; padding: 9px 12px; width: 100%; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--ink); margin: 0; box-shadow: none; }
.field > label:has(input[type=checkbox]) { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); font-size: .95rem; }
.field > label:has(input[type=checkbox]) input { margin-top: .4em; flex: none; }
textarea { min-height: 96px; line-height: 1.75; }
textarea.mono { font-family: var(--mono); font-size: .86rem; }
select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-size: 5px 5px; background-repeat: no-repeat; background-position: left 13px center, left 18px center; }
[dir="ltr"] select { background-position: right 18px center, right 13px center; }   /* the two halves of one chevron */
.radios ul, ul.radios { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.radios li label { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--rule); border-radius: 2px; padding: 8px 14px;
  cursor: pointer; font-weight: 400; color: var(--ink); background: var(--paper); font-size: .95rem; }
.radios li label:has(input:checked) { border-color: var(--ink); }
input[type=color] { padding: 4px; width: 64px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.chip { border: 1px solid var(--rule); border-radius: 99px; padding: 3px 14px; font-size: .85rem; text-decoration: none; color: var(--ink-2);
  background: transparent; line-height: 1.7; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.chip.on .muted { color: inherit; opacity: .72; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.badge.req { color: var(--wait); }
.badge.req::before { background: var(--wait); }
.badge.bad { color: var(--bad); }
.badge.bad::before { background: var(--bad); }
.badge.ok::before { background: var(--accent); }
.proposed { font-size: .7rem; color: var(--wait); border: 1px solid var(--wait-soft); border-radius: 2px; padding: 0 6px; vertical-align: 2px;
  font-family: var(--sans); font-style: normal; font-weight: 400; white-space: nowrap; }

.messages { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.messages li { padding: 12px 16px; border-inline-start: 2px solid var(--accent); background: var(--paper); font-size: .95rem; }
.messages li.error { border-color: var(--bad); }
.messages li.warning { border-color: var(--wait); }

/* ------------------------------------------------------------------------------------------------ tables */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: .78rem; padding-block: 8px; }
html[lang="en"] th { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
tr:last-child td { border-bottom: 0; }
td form { margin: 0; }
td .actions { gap: 6px; }

/* ------------------------------------------------------------------------------------------------ pen weights
   A figure is one drawing at many scales; like a drawing set, each scale gets its own pens rather than a thicker copy
   of the same line. Widths are in screen pixels (non-scaling), set per place the figure appears. */
.pose-figure line { vector-effect: non-scaling-stroke; }
.pose-figure { --t: 4.6px; --l: 3.7px; --f: 2.8px; --a: 3px; }
.pose-figure .t { stroke-width: var(--t); }
.pose-figure .l { stroke-width: var(--l); }
.pose-figure .f { stroke-width: var(--f); }
.pose-figure .a { stroke-width: var(--a); }
.pose-figure .floor { stroke-width: 1px; }
.sheet .pose-figure { --t: 9px; --l: 7px; --f: 5px; --a: 5.5px; }
.frieze .pose-figure, .steps .pose-figure { --t: 3.6px; --l: 2.9px; --f: 2.2px; --a: 2.3px; }

/* ------------------------------------------------------------------------------------------------ the hero */
.hero { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.1rem); font-weight: 200; line-height: 1.2; max-width: 14ch; }
.hero .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 50ch; line-height: 1.95; }
.hero .actions { margin-top: 4px; }

/* the sun salutation: twelve figures, one floor under all of them */
.frieze-wrap { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; direction: ltr; }   /* a narrow screen opens on the first pose */
.frieze { direction: ltr; min-width: 900px; display: grid; gap: 12px; }
.frieze .figs, .frieze .nums { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.frieze .figs { position: relative; }
.frieze .figs::after { content: ""; position: absolute; inset-inline: 0; bottom: 5.17%; height: 1px; background: var(--ink); opacity: .5; }
.frieze .figs a { display: block; color: var(--figure); min-width: 0; }
.frieze .figs svg { width: 160%; margin-inline: -30%; height: auto; display: block; transition: color .2s; pointer-events: none; }
/* each bay is narrower than its drawing: the figures share one floor, as a frieze does; the widest pose still fits its bay */
.frieze .figs .floor { display: none; }                         /* each figure's own floor gives way to the one floor */
.frieze .figs a:hover { color: var(--accent); }
.frieze .nums span { text-align: center; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.frieze-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; font-size: .88rem; color: var(--muted); }
.frieze-caption a { color: var(--ink); }

/* ------------------------------------------------------------------------------------------------ poses: the catalogue */
.filters { display: grid; gap: 14px; }
.search { display: flex; gap: 8px; max-width: 520px; }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.pose-card { position: relative; display: grid; gap: 2px; align-content: start; padding: 14px 16px 18px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); transition: background .15s; }
.pose-card:hover { background: var(--paper); }
.pose-card svg { width: 100%; height: auto; color: var(--figure); display: block; margin-bottom: 8px; transition: color .15s; }
.pose-card:hover svg { color: var(--accent); }
.pose-card .i { position: absolute; top: 10px; inset-inline-start: 12px; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pose-card .n { font-weight: 500; font-size: .95rem; line-height: 1.5; }
.pose-card .s { font-family: var(--roman); font-style: italic; font-weight: 500; font-size: 1.04rem; color: var(--ink-2); line-height: 1.3;
  direction: ltr; unicode-bidi: isolate; text-align: start; }
.catalogue .empty { padding: 32px 16px; color: var(--muted); }
.tally { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------------------------------------ a pose: the sheet */
.sheet { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--rule); background: var(--paper); }
.sheet .plate { position: relative; display: grid; align-content: center; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px);
  border-inline-end: 1px solid var(--rule); background: var(--ground); min-height: 380px; }
.sheet .plate svg { width: 100%; height: auto; color: var(--figure); display: block; }
.sheet .plate .corner { position: absolute; top: 14px; inset-inline-start: 16px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet .plate .caption { position: absolute; bottom: 12px; inset-inline-start: 16px; font-size: .74rem; color: var(--muted); }
.sheet .plate .scale { position: absolute; bottom: 14px; inset-inline-end: 16px; display: flex; align-items: center; gap: 6px; font-size: .68rem; color: var(--muted); }
.sheet .legend { padding: clamp(22px, 3vw, 40px); display: grid; gap: 22px; align-content: start; }
.sheet .titles { display: grid; gap: 4px; }
.sheet .titles .deva { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.4; }
.sheet .titles .iast { font-family: var(--roman); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 1.35rem + 1.1vw, 2.25rem); line-height: 1.15;
  direction: ltr; unicode-bidi: isolate; }
.sheet .titles .local { font-size: 1.1rem; color: var(--ink-2); margin-top: 6px; }
.names { display: grid; grid-template-columns: max-content 1fr; margin: 0; border-top: 1px solid var(--rule); }
.names dt, .names dd { padding-block: 10px; border-bottom: 1px solid var(--rule); margin: 0; }
.names dt { color: var(--muted); font-size: .78rem; padding-inline-end: 22px; padding-top: 13px; }
.names dd { font-size: .96rem; }
.names .alt { color: var(--muted); font-size: .88rem; }
.sheet-text { display: grid; gap: 14px; max-width: var(--measure); }
.sheet-text .main { font-size: 1.12rem; line-height: 2; }
.sheet-text .other { font-size: .9rem; color: var(--muted); line-height: 1.8; }
.links { display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--rule); margin: 0; }
.links > dt, .links > dd { margin: 0; padding-block: 13px; border-bottom: 1px solid var(--rule); }
.links > dt { color: var(--muted); font-size: .85rem; padding-inline-end: 32px; padding-top: 15px; }
.links > dd { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.links a { text-decoration: none; border-bottom: 1px solid var(--rule); line-height: 1.6; }
.links a:hover { border-color: var(--ink); }
.links a .roman { color: var(--muted); font-size: .98em; margin-inline-start: 4px; }
.source { font-size: .8rem; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; padding-top: 16px; border-top: 1px solid var(--rule); }
.pager a { text-decoration: none; color: var(--ink-2); display: grid; gap: 0; }
.pager a:hover { color: var(--ink); }
.pager a .k { font-size: .72rem; color: var(--muted); }
.pager a.next { text-align: end; }

/* a set: its poses in order, each on its own floor */
.sequence { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.sequence .step { display: grid; gap: 3px; align-content: start; padding: 12px 14px 16px; border-bottom: 1px solid var(--rule);
  border-inline-end: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.sequence .step:hover { background: var(--paper); }
.sequence .step:hover svg { color: var(--accent); }
.sequence .step svg { width: 100%; height: auto; color: var(--figure); display: block; margin-bottom: 6px; transition: color .15s; }
.sequence .step .i { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sequence .step .n { font-weight: 500; font-size: .92rem; line-height: 1.5; }
.sequence .step .s { font-family: var(--roman); font-style: italic; font-weight: 500; font-size: 1rem; color: var(--ink-2); direction: ltr; unicode-bidi: isolate; text-align: start; }
.sequence .step .meta { font-size: .76rem; color: var(--muted); }
.sequence .step.concept { align-content: end; min-height: 180px; }
.repeat { display: flex; align-items: baseline; gap: 14px; }
.repeat b { font-size: 4rem; font-weight: 200; line-height: 1; font-variant-numeric: tabular-nums; }

/* the lesson plan in the coach's hand: a narrow list */
.steps { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--rule); }
.steps li svg { width: 96px; height: auto; color: var(--figure); }

/* concepts: an outline, set the way a treatise is */
.outline, .outline ul { list-style: none; margin: 0; padding: 0; }
.outline > li { padding-block: 26px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px 48px; }
.outline > li > .head { display: grid; gap: 4px; align-content: start; }
.outline > li > .head b { font-size: 1.2rem; font-weight: 400; }
.outline > li > ul { grid-column: 2; display: grid; gap: 18px; }
.outline li li { display: grid; gap: 2px; padding-inline-start: 18px; border-inline-start: 1px solid var(--rule); }
.outline li li b { font-weight: 500; }
.outline li li ul { margin-top: 12px; display: grid; gap: 12px; }
.outline .sa { font-size: .92rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.outline .sa .deva { font-size: 1.08em; }
.outline .about { font-size: .92rem; color: var(--ink-2); max-width: var(--measure); }
.outline li:target > .head b, .outline li li:target > b { color: var(--accent); }

/* ------------------------------------------------------------------------------------------------ the school's own things */
.index { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 36px; }
.index a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink); }
.index a:hover { color: var(--accent); }
.index a .c { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

/* balances: the figures first */
.balance { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: end; }
.balance .fig { display: grid; }
.balance .fig b { font-size: 2rem; font-weight: 200; font-variant-numeric: tabular-nums; line-height: 1.2; }
.balance .fig b.bad { color: var(--bad); }
.balance .fig span { font-size: .78rem; color: var(--muted); }
.meet { font-weight: 600; color: var(--accent); }

/* ------------------------------------------------------------------------------------------------ calendars */
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; }
.page-head .sub { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.cal > .dh { font-size: .75rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); }
.cal .day { min-height: 124px; padding: 8px 10px 12px; display: grid; align-content: start; gap: 6px; border-bottom: 1px solid var(--rule);
  border-inline-end: 1px solid var(--rule); }
.cal .day .dh { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal .day.out { background: repeating-linear-gradient(135deg, transparent 0 7px, var(--rule-2) 7px 8px); }
.cal .day.out .dh { opacity: .55; }
.cal .day.today { background: var(--paper); box-shadow: inset 0 2px 0 var(--accent); }
.cal .day.today .dh { color: var(--accent); font-weight: 600; }
.cal .ev { font-size: .8rem; line-height: 1.55; border-inline-start: 2px solid var(--c, var(--ink)); padding-inline-start: 7px; text-decoration: none;
  color: var(--ink); display: block; }
a.ev:hover { color: var(--accent); }
.cal .ev .who { color: var(--ink-2); display: block; }
@media (max-width: 760px) {
  .cal { grid-template-columns: 1fr; }
  .cal > .dh, .cal .day.out { display: none; }
  .cal .day { min-height: 0; }
  .cal .day:not(:has(.ev)):not(.today) { display: none; }
}

/* ------------------------------------------------------------------------------------------------ the coach's desk */
.desk { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.desk > section { padding: 20px 24px 24px 0; display: grid; gap: 10px; align-content: start; }
.desk > section + section { border-inline-start: 1px solid var(--rule); padding-inline-start: 24px; }
@media (max-width: 560px) { .desk > section { padding-inline: 0; } .desk > section + section { border-inline-start: 0; border-top: 1px solid var(--rule); } }
.desk h2 { font-size: .92rem; font-weight: 500; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.desk h2 .c { font-size: 2rem; font-weight: 200; line-height: 1; font-variant-numeric: tabular-nums; color: var(--muted); }
.desk h2 .c.req { color: var(--wait); }
.desk .hint { font-size: .8rem; color: var(--muted); }
.desk p { font-size: .9rem; }
.desk a { text-decoration: none; }
.desk a:hover { color: var(--accent); }
.subnav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .88rem; }
.subnav a { color: var(--ink-2); text-decoration: none; }
.subnav a:hover { color: var(--ink); }
.agenda { display: grid; border-top: 1px solid var(--rule); }
.agenda .slot { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.agenda .slot .t { font-size: 1.4rem; font-weight: 200; font-variant-numeric: tabular-nums; line-height: 1.2; }
.agenda .slot .t span { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
.agenda .slot h3 { font-weight: 400; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.agenda .slot h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink)); flex: none; }
.agenda .slot .who { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; margin-top: 4px; }

/* ------------------------------------------------------------------------------------------------ the ikiku place picker */
.places-box { position: relative; }
.places-list { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 5; background: var(--paper); border: 1px solid var(--ink);
  list-style: none; margin: 0; padding: 4px; max-height: 280px; overflow-y: auto; }
.places-list li { padding: 8px 10px; cursor: pointer; font-size: .92rem; }
.places-list li:hover, .places-list li[aria-selected=true] { background: var(--accent-soft); }

/* ------------------------------------------------------------------------------------------------ narrow pages */
.narrow { max-width: 560px; width: 100%; margin-inline: auto; display: grid; gap: 24px; }
.narrow h1 { font-size: 2rem; }
.qr { background: #fff; padding: 14px; width: 220px; max-width: 100%; border: 1px solid var(--rule); }
.qr svg { width: 100%; height: auto; display: block; }
pre { overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); padding: 12px 14px; margin: 0; white-space: pre-wrap; word-break: break-all; }
details summary { cursor: pointer; color: var(--ink-2); font-size: .9rem; }
.notice { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.notice .d { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.notice.unread .d { color: var(--accent); }

/* ------------------------------------------------------------------------------------------------ small screens */
@media (max-width: 860px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet .plate { border-inline-end: 0; border-bottom: 1px solid var(--rule); min-height: 0; }
  .outline > li { grid-template-columns: 1fr; }
  .outline > li > ul { grid-column: 1; }
  main { padding-block: 32px 64px; gap: 48px; }
}
@media (max-width: 560px) {
  header.top { padding-block: 16px 12px; }
  nav.main { gap: 2px 16px; font-size: .88rem; margin-inline-start: 0; }
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 18px; }
  .names dt, .links > dt { padding-inline-end: 14px; }
  .agenda .slot { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .notice { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* the transliteration sits with its script's own edge in a right-to-left page */
[dir="rtl"] .pose-card .s, [dir="rtl"] .sequence .step .s, [dir="rtl"] .sheet .titles .iast { text-align: right; }

/* two and more columns that fall to one on a phone */
.cols { display: grid; gap: 40px 56px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.cols-2 { display: grid; gap: 40px 56px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

/* a section's label already draws its rule: what follows it does not draw a second */
.label + .agenda, .label + .desk, .label + .names, .label + .links, .label + div > .notice:first-child { border-top: 0; }
[dir="ltr"] .names dd[dir="rtl"] { text-align: left; }   /* a Persian value keeps its column's edge in an English legend */

/* ------------------------------------------------------------------------------------------------ the plan builder */
.plan-meta { display: grid; gap: 6px; min-width: 0; flex: 1; }
.plan-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 300; border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; padding: 4px 0; border-radius: 0; min-height: 0; }
.plan-title:focus { box-shadow: none; border-bottom-color: var(--accent); }
.plan-meta select { display: inline-block; width: auto; min-height: 32px; padding-block: 2px; font-size: .9rem; }
.build { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px 48px; align-items: start; }
@media (max-width: 900px) { .build { grid-template-columns: 1fr; } }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.plan-steps li { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding-block: 12px; border-bottom: 1px solid var(--rule); }
.label + .plan-steps li:first-child { border-top: 0; }
.plan-steps .i { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; padding-top: 6px; }
.plan-steps .fig svg { width: 92px; height: auto; color: var(--figure); display: block; }
.plan-steps .what { display: grid; gap: 6px; min-width: 0; }
.plan-steps .knobs { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .85rem; color: var(--muted); }
.plan-steps .knobs select { width: auto; min-height: 32px; padding-block: 2px; font-size: .85rem; }
.plan-steps .knobs input { width: 3.6em; min-height: 32px; padding: 2px 6px; text-align: center; }
.plan-steps .cue { min-height: 34px; padding: 4px 10px; font-size: .9rem; }
.plan-steps .moves { display: grid; gap: 4px; }
.plan-steps .moves button { min-height: 28px; padding: 2px 10px; }
.plan-steps .moves button[disabled] { opacity: .3; cursor: default; }
@media (max-width: 560px) { .plan-steps li { grid-template-columns: 64px minmax(0, 1fr); } .plan-steps .i { display: none; }
  .plan-steps .fig svg { width: 64px; } .plan-steps .moves { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; } }
.find .search { max-width: none; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
button.pick { display: grid; gap: 2px; justify-items: start; align-content: start; text-align: start; background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: 2px; padding: 8px 10px 10px; min-height: 0; font-weight: 400; }
button.pick:hover { background: var(--paper); border-color: var(--accent); color: var(--ink); }
button.pick svg { width: 100%; height: auto; color: var(--figure); }
button.pick:hover svg { color: var(--accent); }
button.pick .n { font-size: .88rem; font-weight: 500; line-height: 1.5; }
button.pick .s { font-size: .78rem; color: var(--muted); line-height: 1.4; }
button.pick .s:not(:has(*)) { font-family: var(--sans); }
.set-mark { display: grid; place-items: center; width: 100%; aspect-ratio: 140 / 116; font-size: 1.8rem; font-weight: 200; color: var(--muted); }

/* ------------------------------------------------------------------------------------------------ names */
.names-table .mini svg { width: 64px; height: auto; color: var(--figure); display: block; }
.sheet-plate { background: var(--paper); border: 1px solid var(--rule-2); padding: 24px; align-self: start; }
.sheet-plate svg { width: 100%; height: auto; color: var(--figure); }

/* ------------------------------------------------------------------------------------------------ the desk's setting-up list */
.setup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--rule); }
.setup li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule); }
.setup .tick { width: 18px; height: 18px; border: 1px solid var(--rule); border-radius: 50%; margin-top: 3px; }
.setup li.done .tick { background: var(--accent); border-color: var(--accent); }
.setup li.done b { color: var(--muted); font-weight: 400; }
.setup a { text-decoration: none; }
.setup p { font-size: .85rem; color: var(--muted); }

/* ------------------------------------------------------------------------------------------------ the working bar
   The coach's (and a student's) own row under the header, on every page of theirs: nothing she needs hides one
   page down. On a phone the tabs scroll sideways; the buttons stay. */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding-block: 10px; border-bottom: 1px solid var(--rule); }
.toolbar .tabs { display: flex; align-items: center; gap: 2px 20px; font-size: .9rem; min-width: 0; flex: 0 1 auto; overflow-x: auto;
  scrollbar-width: none; white-space: nowrap; }
.toolbar .tabs::-webkit-scrollbar { display: none; }
.toolbar .tabs > a, .toolbar summary { color: var(--ink-2); text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.toolbar .tabs > a:hover, .toolbar summary:hover { color: var(--ink); }
.toolbar .tabs > a.on, .toolbar details.on > summary { color: var(--ink); border-bottom-color: var(--accent); }
.toolbar .actions { gap: 8px; flex-wrap: nowrap; margin-inline-start: auto; }
.toolbar .button.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.toolbar details { position: relative; font-size: .9rem; }
.toolbar summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.toolbar summary::-webkit-details-marker { display: none; }
.toolbar summary::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg); }                                  /* physical sides: it points down in both directions */
.toolbar details[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.toolbar .menu { position: absolute; inset-inline-start: 0; top: calc(100% + 6px); z-index: 10; display: grid; min-width: 190px;
  background: var(--paper); border: 1px solid var(--rule); padding: 6px; }
.toolbar .menu a { padding: 7px 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.toolbar .menu a:hover { background: var(--accent-soft); }
@media (max-width: 560px) {
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }   /* a wrapping column sizes its lines by their content, and would widen the page */
  .toolbar .actions { justify-content: flex-start; margin-inline-start: 0; }
  .toolbar details { position: static; }
  .toolbar .menu { inset-inline: 0; }
}

.ask-email { display: block; padding: 12px 16px; border-inline-start: 2px solid var(--wait); background: var(--paper); font-size: .95rem; }
