/*
  Tehran Pars content pages: About, Contact, FAQ, Home tuition, Instruments for sale, Notes,
  Concerts, Reviews, Gallery, the three policies and the two thank-you pages.
  Loaded after tokens.css, site.css and pages.css, on these pages only. It reuses the shared
  title band, seams, bands, list rows, cards, fact band and motion system, and adds only the
  components those files do not have. Motion moves transform, opacity and clip-path only,
  under html.motion; hover is gated to fine pointers.
*/

/* =========================================================
   Title band on the content pages: the stave sits directly above the H1 (the eyebrow is an
   open item in DESIGN.md and is not extended to new surfaces)
   ========================================================= */
.tb-stave + .tb-title { margin-top: clamp(1.4rem, 2.8vw, 2.25rem); }
.tb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: var(--small);
  color: var(--on-stage-muted);
}
.tb-meta .ph { font-size: var(--small); }
.tb-grid--wide .tb-lead { max-width: 40rem; }
.tb--article .tb-title {
  font-size: clamp(2.375rem, 1.2rem + 4.2vw, 5rem);
  line-height: 1.04;
  max-width: 18ch;
}
@media (min-width: 64em) {
  .tb--article .tb-grid--wide .tb-title { max-width: 20ch; }
}
@media (max-width: 47.99em) {
  .crumbs a { min-width: 44px; justify-content: center; }
}
.motion .tb-meta { animation: fade-rise 700ms var(--ease-out) 720ms backwards; }

/* Split-plate crops: no face meets a frame edge */
.tb-photo--founder img { object-position: 66% 28%; }
.tb-photo--recital img { object-position: 50% 12%; }
.tb-photo--violins img { object-position: 45% 0%; }
.shot--embrace img { object-position: 55% 20%; }
.tb-photo--ai img { object-position: 50% 50%; }
@media (max-width: 63.99em) { .tb-photo--ai { aspect-ratio: 3 / 2; } }   /* the AI slots are 3:2 sources */

/* Topic links under a title band lead (FAQ) */
.tb-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  padding: clamp(1.25rem, 2vw, 1.5rem) 0 0;
  border-top: 1px solid var(--stage-line);
  list-style: none;
}
.tb-topics a { color: var(--paper); font-size: var(--body); }
.motion .tb-topics { animation: fade-rise 700ms var(--ease-out) 880ms backwards; }

/* Marked placeholders: the client sees at once what still needs their answer */
.ph {
  padding: 0.04em 0.32em;
  background: color-mix(in srgb, var(--oxblood) 9%, var(--paper));
  color: var(--oxblood);
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.band-sand .ph, .facts .ph { background: color-mix(in srgb, var(--oxblood) 11%, var(--sand)); }
.on-stage .ph { background: color-mix(in srgb, var(--paper) 12%, var(--ink)); color: var(--paper); }

/* A band that follows another Paper band: one hairline, not a second full gap */
.band--follow { padding-top: 0; }
.band--follow > .wrap {
  padding-top: clamp(4rem, 3rem + 5vw, 7.5rem);
  border-top: 1px solid var(--rule);
}
/* The first band under a title-band seam: it clears the notch (41 to 55px) and then breathes */
.band--tight-top { padding-top: clamp(5.5rem, 4rem + 4.5vw, 8.5rem); }

/* Ordered lists marked as lists carry no UA indent (the shared reset covers ul only) */
:where(ol[role="list"]) { list-style: none; margin: 0; padding: 0; }

/* Shared: a heading with its icon on the left of a split */
.sec-note { margin-top: 1rem; max-width: 40ch; font-size: var(--small); color: var(--ink-muted); }
.band-sand .sec-lead, .band-sand .sec-note { color: var(--on-sand-muted); }
.sec-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
@media (max-width: 29.99em) {
  .sec-actions .btn { flex: 1 1 100%; }
}
.btn .icon { width: 1.2em; height: 1.2em; }

/* =========================================================
   Label and value rows (Paper and Sand): a dl with an Oxblood rule on top
   ========================================================= */
.info { margin: 0; border-top: 1px solid var(--oxblood); }
.info-row {
  display: grid;
  gap: 0.2rem 2rem;
  padding-block: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.info-row dt { font-size: var(--small); line-height: 1.5; color: var(--ink-muted); }
.info-row dd { margin: 0; font-size: 1.1875rem; line-height: 1.5; color: var(--ink); }
.info-row dd .sweep { color: var(--oxblood); }
.band-sand .info-row { border-bottom-color: var(--rule); }
.band-sand .info-row dt { color: var(--on-sand-muted); }
@media (min-width: 48em) {
  .info-row { grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); align-items: baseline; }
}

/* The Visit rows on Paper (contact): the shared dl with icons, recoloured for the day */
.details--paper .detail { border-top-color: var(--line); }
.details--paper .detail:last-child { border-bottom-color: var(--line); }
.details--paper .detail dt { color: var(--ink-muted); }
.details--paper .detail dd { color: var(--ink); font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); }
.details--paper .detail dd .sweep { color: var(--oxblood); }
.details--paper .detail dd .sweep-arrow { font-size: var(--body); }
.details--paper .detail-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 0.45rem; }

/* =========================================================
   About: the founder's two years, and the institute block
   ========================================================= */
.founder-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.founder-copy .sec-title { max-width: 11ch; }
.founder-text { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; max-width: 38rem; }
.founder-text p { font-size: var(--lead); line-height: 1.65; color: var(--ink); }
.founder-text p + p { color: var(--ink-muted); font-size: var(--body); }
.years { border-top: 1px solid var(--oxblood); }
.year {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.25rem, 2.4vw, 1.9rem);
  border-bottom: 1px solid var(--line);
}
.year-n {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.75rem, 1.4rem + 3.8vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--oxblood);
  font-variant-numeric: lining-nums tabular-nums;
}
.year-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.year-note { display: block; margin-top: 0.35rem; font: 400 var(--body)/1.55 var(--font-text); letter-spacing: 0; color: var(--ink-muted); }
.founder-creds { margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 64em) {
  .founder-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
  }
}

/* The fact band on About: the note carries two named facts, so it may run a little wider */
.facts--about .stat-top-note { max-width: 40ch; }

/* How lessons are taught: the shared faculty module with a section heading in place of the label */
.cast-body .sec-title { max-width: 12ch; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.cast-photo--bow img { object-position: 50% 40%; }

/* Two traditions pair on Ink */
.pair-band .sec-title { max-width: 13ch; }
.pair-band .concerts-pair { margin-top: clamp(2.5rem, 5vw, 4rem); }
.shot--violins img { object-position: 42% 30%; }
.shot--duo img { object-position: 50% 40%; }

/* =========================================================
   FAQ: an accessible accordion (WAI-ARIA disclosure pattern; every answer is open without JS)
   ========================================================= */
.faq-group + .faq-group { margin-top: clamp(4.5rem, 9vw, 8rem); }
.faq-group .sec-title { max-width: 11ch; }
.qa { border-top: 1px solid var(--oxblood); }
.qa-item { border-bottom: 1px solid var(--line); }
.band-sand .qa-item { border-bottom-color: var(--rule); }
.qa-q { margin: 0; font: inherit; }
.qa-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 4rem;
  padding: 1.1rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.008em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.qa-text { transition: color var(--dur-ui) ease; }
.qa-mark {
  position: relative;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--oxblood);
}
.qa-mark::before,
.qa-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 240ms var(--ease-out);
}
.qa-mark::after { transform: rotate(90deg); }
.qa-btn[aria-expanded="true"] .qa-mark::after { transform: rotate(90deg) scaleX(0); }
@media (hover: hover) and (pointer: fine) {
  .qa-btn:hover .qa-text { color: var(--oxblood); }
}
.qa-btn:focus-visible { outline-offset: 4px; }
.qa-a-inner {
  display: grid;
  gap: 0.85rem;
  max-width: 62ch;
  padding: 0 0 1.75rem;
  color: var(--ink);
}
.qa-a-inner p, .qa-a-inner li { color: var(--ink); }
.band-sand .qa-a-inner .qa-more { color: var(--oxblood); }
.qa-a-inner ul { margin: 0; padding-left: 1.2rem; }
.qa-a-inner li + li { margin-top: 0.35rem; }
.qa-a-inner li::marker { color: var(--oxblood); }
.qa-more { color: var(--oxblood); font-weight: 500; }
/* JS on: answers close; a 1.5s failsafe (content.js never ran) opens them all again */
.js [data-accordion] .qa-a { display: none; }
.js [data-accordion] .qa-item.is-open .qa-a,
.qa-failsafe [data-accordion] .qa-a { display: block; }
.motion .qa-item.is-open .qa-a-inner { animation: qa-open 320ms var(--ease-out); }
@keyframes qa-open { from { opacity: 0; transform: translate3d(0, -6px, 0); } }

/* Mini price table inside an answer */
.qa-table { width: 100%; max-width: 30rem; border-collapse: collapse; }
.qa-table caption { text-align: left; padding-bottom: 0.4rem; font: 500 var(--small)/1.4 var(--font-text); color: var(--on-sand-muted); }
.qa-table th, .qa-table td { padding-block: 0.55rem; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.qa-table td { text-align: right; }
.qa-tables { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .qa-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }

/* =========================================================
   Home tuition and instruments for sale
   ========================================================= */
.band-sand .price-row { border-bottom-color: var(--rule); }
.band-sand .price-term, .band-sand .price-foot { color: var(--on-sand-muted); }
.price-row--solo { grid-template-areas: "name amount"; }

.two-col { display: grid; gap: clamp(3.5rem, 7vw, 5rem); }
@media (min-width: 64em) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
}
.two-col .sec-title { max-width: 12ch; }
.who-list--compact li { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); }
.home-inst { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.home-inst .photo-frame { aspect-ratio: 3 / 2; }

/* The family index: every instrument taught, grouped by family. A reference list, not a shop:
   no prices, no cart and one WhatsApp action for the whole page (in the title band). */
.fi-grid { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.fi-intro .sec-title { max-width: 11ch; }
.fi-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.fi-pair .photo-frame { aspect-ratio: 4 / 5; background: var(--ink); }
.fi-pair .photo-frame:first-child img { object-position: 52% 50%; }
.fi-pair .photo-frame:last-child img { object-position: 62% 55%; }
.fi-index { display: grid; gap: clamp(2.25rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem); align-content: start; }
.fi-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--oxblood);
}
.fi-title {
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fi-count { flex: none; font-size: var(--small); color: var(--ink-muted); }
.fi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  min-height: 2.9rem;
  padding-block: 0.6rem 0.55rem;
  border-bottom: 1px solid var(--line);
}
.fi-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.2;
  color: var(--ink);
}
.fi-note { font-size: var(--small); line-height: 1.4; color: var(--ink-muted); }
@media (min-width: 40em) {
  .fi-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fi-fam--bowed { grid-column: 1; grid-row: 1; }
  .fi-fam--keyboard { grid-column: 1; grid-row: 2; }
  .fi-fam--winds { grid-column: 1; grid-row: 3; }
  .fi-fam--strings { grid-column: 2; grid-row: 1 / span 2; }
  .fi-fam--percussion { grid-column: 2; grid-row: 3; }
}
@media (max-width: 47.99em) { .fi-note { font-size: 1rem; } }
@media (min-width: 64em) {
  .fi-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(3rem, 5.5vw, 6rem); align-items: start; }
  .fi-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.band--compact { padding-block: clamp(3.5rem, 2rem + 4vw, 5.5rem); }
.band--compact .sec-title { max-width: none; }
.fi-section { padding-bottom: clamp(4rem, 2.5rem + 4vw, 6.5rem); }
/* A title band sized to its copy (the plate fills that height): Instruments for sale */
.tb--compact .tb-grid--split { min-height: 0; }
@media (min-width: 64em) { .tb--compact .tb-copy { padding-block: clamp(2.5rem, 4vw, 3.5rem) clamp(3.5rem, 5vw, 4.5rem); } }

/* Three real steps on Sand (buying in person) */
@media (min-width: 64em) {
  .steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   Notes: the hub and the reading layout (65ch)
   ========================================================= */
.note-feature {
  display: grid;
  gap: 1.5rem;
  color: inherit;
  text-decoration: none;
}
.note-feature .photo-frame { aspect-ratio: 3 / 2; }
.note-feature .photo-frame img { transition: transform 700ms var(--ease-out); }
.note-feature-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.016em;
  color: var(--ink);
}
.note-feature-title .icon { flex: none; width: 1.5rem; height: 1.5rem; color: var(--oxblood); transition: transform 320ms var(--ease-out); }
.note-feature-text { margin-top: 1rem; max-width: 40ch; font-size: var(--lead); line-height: 1.6; color: var(--ink-muted); }
.note-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 1.25rem; font-size: var(--small); color: var(--ink-muted); }
.note-meta span:first-child { color: var(--oxblood); font-weight: 500; }
.card .note-meta { margin-top: 0; }
@media (hover: hover) and (pointer: fine) {
  .note-feature:hover .photo-frame img { transform: scale(1.03); }
  .note-feature:hover .note-feature-title .icon { transform: translateX(6px); }
}
@media (min-width: 64em) {
  .note-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: end; }
}
.notes-more { margin-top: clamp(4rem, 8vw, 6.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); }
.notes-more .cards { margin-top: 0; }

.article { padding-block: clamp(5.5rem, 4rem + 4.5vw, 8.5rem) var(--section); }
.article-figure { margin-bottom: clamp(3rem, 6vw, 5rem); }
.article-figure .photo-frame { aspect-ratio: 3 / 2; }
@media (min-width: 64em) { .article-figure .photo-frame { aspect-ratio: 21 / 9; } }
.article-grid { display: grid; gap: 2.5rem; }
.article-aside { font-size: var(--small); color: var(--ink-muted); }
.article-aside h2 {
  margin-bottom: 0.75rem;
  font: 500 var(--small)/1.4 var(--font-text);
  letter-spacing: 0.01em;
  color: var(--ink-muted);
}
.article-toc { border-top: 1px solid var(--oxblood); }
.article-toc li { border-bottom: 1px solid var(--line); }
.article-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: color var(--dur-ui) ease;
}
@media (hover: hover) and (pointer: fine) { .article-toc a:hover { color: var(--oxblood); } }
@media (max-width: 63.99em) { .article-aside { display: none; } }
@media (min-width: 64em) {
  .article-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .article-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.prose {
  max-width: 65ch;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.75;
  color: var(--ink);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.014em;
  color: var(--oxblood);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 0.8em; }
.prose p:first-child { font-size: 1.12em; line-height: 1.65; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.3em; }
.prose li + li { margin-top: 0.55em; }
.prose li::marker { color: var(--oxblood); }
.prose a { color: var(--oxblood); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.prose strong { font-weight: 500; }
.prose-table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.prose caption {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--oxblood);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.2;
}
.prose th, .prose td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-weight: 500; font-size: var(--small); color: var(--ink-muted); }
.prose tbody th { font-weight: 500; }
.prose td { font-variant-numeric: tabular-nums; }
@media (max-width: 39.99em) {
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose tbody tr { padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
  .prose th, .prose td { padding: 0; border: 0; }
  .prose tbody th { margin-bottom: 0.3rem; }
  .prose td[data-label]::before { content: attr(data-label) ": "; font-weight: 500; color: var(--ink-muted); }
  .prose td + td { margin-top: 0.2rem; }
}
.prose-box {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  border-top: 1px solid var(--oxblood);
}
.prose-box h3 { font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); line-height: 1.2; margin-bottom: 0.75rem; }
.prose-box .cols { display: grid; gap: 1.25rem; }
.prose-box .cols p { font-size: var(--body); line-height: 1.6; color: var(--ink-muted); }
.prose-box .cols strong { display: block; color: var(--ink); }
@media (min-width: 40em) { .prose-box .cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: 65ch;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--small);
  line-height: 1.55;
  color: var(--ink-muted);
}
.article-foot p { max-width: 52ch; }
.draft-label {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

/* =========================================================
   Concerts: the next concert, the programme with leaders, prev and next
   ========================================================= */
.programme { border-top: 1px solid var(--oxblood); }
.prog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0.3rem;
  padding-block: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--rule);
}
.prog-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.prog-leader { display: none; }
.prog-detail { font-size: var(--body); color: var(--on-sand-muted); }
@media (min-width: 48em) {
  .prog-row { display: flex; align-items: last baseline; gap: 0.9rem; }
  .prog-leader {
    display: block;
    flex: 1 1 2rem;
    min-width: 2rem;
    height: 0.5rem;
    background-image: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--oxblood) 55%, var(--sand)) 0 0.85px, transparent 1.2px);
    background-size: 7px 3px;
    background-repeat: repeat-x;
    background-position: 0 calc(100% - 1px);
  }
  .prog-detail { flex: none; text-align: right; }
}
.prog-note { margin-top: 1.25rem; color: var(--on-sand-muted); }

.event-nav { display: grid; gap: 0; border-top: 1px solid var(--oxblood); }
.event-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.event-nav .en-label { display: block; font-size: var(--small); color: var(--ink-muted); }
.event-nav .en-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: color var(--dur-ui) ease;
}
.event-nav .icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--oxblood); transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .event-nav a:hover .en-title { color: var(--oxblood); }
  .event-nav a:hover .icon { transform: translateX(6px); }
}

/* The photograph mosaic on Ink (concerts hub) */
.mosaic { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.mosaic .concerts-pair { margin-top: 0; }
@media (min-width: 64em) {
  .concerts-pair--flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.mosaic-foot { margin-top: clamp(2rem, 4vw, 3rem); }
.shot--recital img { object-position: 50% 30%; }
.shot--flute img { object-position: 22% 50%; }
.shot--dance img { object-position: 50% 22%; }
.shot--recorders img { object-position: 50% 40%; }

/* The workshop photograph: shown whole, it is the room itself */
.event-split { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.event-photo .photo-frame { aspect-ratio: 4 / 3; }
.event-copy .sec-title { max-width: 12ch; }
.event-copy p { max-width: 40ch; }
.event-copy p + p { margin-top: 1rem; color: var(--ink-muted); }
.event-copy .sec-lead { color: var(--ink); }
@media (min-width: 64em) {
  .event-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: center; }
}

/* =========================================================
   Gallery: justified rows (every photograph keeps its own shape), and the lightbox
   ========================================================= */
.gallery {
  --row-h: clamp(6.75rem, 2.5rem + 17vw, 18rem);   /* phones: two landscapes share a row, so no tile outgrows its 700w file */
  --g-gap: clamp(0.5rem, 1vw, 0.875rem);
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery::after { content: ""; flex: 10000 1 0; }
.g-item { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row-h)); min-width: 0; }
.g-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ar);
  background: color-mix(in srgb, var(--ink) 10%, var(--paper));
  -webkit-tap-highlight-color: transparent;
}
.g-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.g-link:focus-visible { outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .g-link:hover img { transform: scale(1.035); }
}
.gallery-note { margin-top: clamp(1.5rem, 3vw, 2rem); font-size: var(--small); color: var(--ink-muted); max-width: 60ch; }
/* The event set: five photographs as an exact bento, one large and four small (1 + 2 + 2 on phones) */
.gallery--event {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--g-gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.gallery--event::after { content: none; }
.gallery--event .g-item { flex: none; }
.gallery--event .g-link { aspect-ratio: 3 / 2; }
.gallery--event .g-item:first-child { grid-column: 1 / -1; }
@media (min-width: 64em) {
  .gallery--event { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery--event .g-item:first-child { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .gallery--event .g-item:first-child .g-link { aspect-ratio: auto; height: 100%; }
}
.split-head > header > .info { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: var(--ink); }
.lightbox:not([open]) { display: none; }
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--wrap);
  height: var(--header-h);
  margin-inline: auto;
}
.lb-count { font-size: var(--small); color: var(--on-stage-muted); font-variant-numeric: tabular-nums; }
.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
  touch-action: pan-y;
}
.lb-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out);
}
.lb-img.is-swapping { opacity: 0; }
.lb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  width: var(--wrap);
  min-height: 5rem;
  margin-inline: auto;
  padding-block: 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
}
.lb-cap { margin: 0; max-width: 56ch; font-size: var(--body); line-height: 1.5; color: var(--paper-dim); }
.lb-nav { display: flex; gap: 0.6rem; flex: none; }
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 52px;
  min-height: 52px;
  padding: 0 0.9rem;
  border: 1.5px solid color-mix(in srgb, var(--paper) 55%, var(--ink));
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font: 500 1rem/1 var(--font-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.lb-btn .icon { width: 1.25rem; height: 1.25rem; }
.lb-btn:active { transform: scale(0.97); }
.lb-btn:focus-visible { outline-color: var(--paper); }
.lb-close { border-color: transparent; margin-right: -0.9rem; }
@media (hover: hover) and (pointer: fine) {
  .lb-btn:hover { background: color-mix(in srgb, var(--paper) 10%, var(--ink)); border-color: var(--paper); }
  .lb-close:hover { border-color: transparent; }
}
@media (max-width: 47.99em) {
  .lb-foot { flex-direction: column; align-items: stretch; }
  .lb-nav .lb-btn { flex: 1; }
}
.motion .lightbox[open] { animation: lb-in 220ms var(--ease-out); }
.motion .lightbox[open] .lb-img:not(.is-swapping) { animation: lb-img-in 320ms var(--ease-out); }
.motion .lightbox.is-closing { opacity: 0; transition: opacity 160ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-img-in { from { opacity: 0; transform: scale(0.97); } }
html.lb-open { overflow: hidden; }

/* =========================================================
   Reviews: one frame where the Google reviews feed will sit once connected. Built from the
   stave at tile scale (five hairlines through the frame), never a mock quote card.
   ========================================================= */
.feed-frame {
  border-top: 1px solid var(--oxblood);
  background: color-mix(in srgb, var(--paper) 55%, var(--sand));
}
.feed-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1rem clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--rule);
  font-size: var(--small);
  line-height: 1.4;
}
.feed-source { font-weight: 500; color: var(--ink); }
.feed-state { color: var(--on-sand-muted); }
.feed-body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(13rem, 20vw, 17rem);
  padding: 2rem clamp(1.25rem, 2.5vw, 2rem);
  --feed-bg: color-mix(in srgb, var(--paper) 55%, var(--sand));
}
.feed-stave {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  display: grid;
  gap: 7px;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--oxblood) 30%, var(--sand));
  pointer-events: none;
}
.feed-stave i { display: block; height: 1px; background: currentColor; }
.feed-slot {
  position: relative;
  max-width: 28ch;
  padding: 0.6rem 1rem;
  background: var(--feed-bg);
  box-shadow: 0 0 0 0.75rem var(--feed-bg);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  line-height: 1.3;
}
.feed-slot .ph { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.leave-actions-note { margin-top: 1rem; }
.leave-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.leave-photo .photo-frame { aspect-ratio: 4 / 5; }
.leave-photo img { object-position: 60% 18%; }
.leave-copy .sec-title { max-width: 12ch; }
.leave-copy .sec-lead { color: var(--ink); }
.leave-alt { margin-top: 1.75rem; font-size: var(--small); color: var(--ink-muted); max-width: 44ch; }
.leave-alt .sweep { color: var(--oxblood); }
@media (min-width: 48em) { .leave-photo .photo-frame { aspect-ratio: 1; } }
@media (min-width: 64em) {
  .leave-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: center; }
  .leave-photo .photo-frame { aspect-ratio: 4 / 5; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.contact-copy .sec-title { max-width: 11ch; }
.contact-photo .photo-frame { aspect-ratio: 4 / 5; }
.contact-photo img { object-position: 50% 30%; }
@media (min-width: 64em) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .contact-photo { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* =========================================================
   Policies: contents on the left, numbered clauses on the right
   ========================================================= */
.doc { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.doc-toc-h {
  margin-bottom: 0.75rem;
  font: 500 var(--small)/1.4 var(--font-text);
  letter-spacing: 0.01em;
  color: var(--ink-muted);
}
.doc-toc ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--oxblood);
}
.doc-toc li { border-bottom: 1px solid var(--line); }
.doc-toc a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding-block: 0.35rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: color var(--dur-ui) ease;
}
.doc-toc .n { color: var(--oxblood); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .doc-toc a:hover { color: var(--oxblood); } }
@media (min-width: 40em) and (max-width: 63.99em) {
  .doc-toc ol { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}
.clause {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.clause:first-child { padding-top: 0; }
.clause-title {
  display: flex;
  gap: 0.7em;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.clause-title .n { flex: none; min-width: 1.4em; color: var(--oxblood); font-variant-numeric: lining-nums tabular-nums; }
.clause-body { display: grid; gap: 0.9rem; max-width: 65ch; margin-top: 1rem; }
.clause-body ul { margin: 0; padding-left: 1.2rem; }
.clause-body li + li { margin-top: 0.45rem; }
.clause-body li::marker { color: var(--oxblood); }
.clause-body a { color: var(--oxblood); }
.doc-updated { margin-top: 1.5rem; font-size: var(--small); color: var(--ink-muted); }
@media (min-width: 64em) {
  .doc { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .doc-toc { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* At-a-glance tables on Sand (package rules, the six trial fields) */
.glance { width: 100%; border-collapse: collapse; margin-top: clamp(2rem, 4vw, 3rem); }
.glance th, .glance td {
  padding: 1.05rem 1.25rem 1.05rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}
.glance thead th { padding-block: 0.6rem; font: 500 var(--small)/1.4 var(--font-text); color: var(--on-sand-muted); border-bottom-color: var(--oxblood); }
.glance tbody th {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  line-height: 1.2;
  color: var(--ink);
}
.glance td { font-size: var(--lead); color: var(--ink); font-variant-numeric: tabular-nums; }
.glance td.muted-cell { font-size: var(--body); color: var(--on-sand-muted); }
.glance-note { margin-top: 1.5rem; max-width: 56ch; color: var(--on-sand-muted); }
.glance-note strong { font-weight: 500; color: var(--ink); }
@media (max-width: 39.99em) {
  .glance thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .glance, .glance tbody, .glance tr, .glance th, .glance td { display: block; }
  .glance tr { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
  .glance th, .glance td { padding: 0; border: 0; }
  .glance td { margin-top: 0.3rem; }
  .glance td[data-label]::before { content: attr(data-label) ": "; color: var(--on-sand-muted); font-size: var(--body); }
}

/* Shared rows recoloured for the Sand ground (the Sand-Muted rule) */
.band-sand .index li { border-bottom-color: var(--rule); }
.band-sand .rules { border-top-color: var(--oxblood); }
.band-sand .rule { border-bottom-color: var(--rule); }
.band-sand .rule-text,
.band-sand .card-text,
.band-sand .note-meta,
.band-sand .index-hint,
.band-sand .thanks-note { color: var(--on-sand-muted); }
.band-sand .note-meta span:first-child { color: var(--oxblood); }

/* FAQ: the group heading holds its place beside a long list of questions */
@media (min-width: 64em) {
  .faq-group > header { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Visit photographs on the thank-you pages */
.visit-photo--orff .photo-frame, .visit-photo--bow .photo-frame { aspect-ratio: 4 / 3; }
.visit-photo--orff img { object-position: 70% 35%; }
.visit-photo--bow img { object-position: 50% 40%; }

/* =========================================================
   Thank-you pages
   ========================================================= */
.next-links { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--oxblood); }
.next-links .index-name { font-size: clamp(1.375rem, 1.05rem + 1vw, 2rem); }
.thanks-note { margin-top: 1.75rem; color: var(--ink-muted); }
.thanks-note .sweep { color: var(--oxblood); }
.receipt { max-width: 52rem; margin-top: clamp(2rem, 4vw, 3rem); }

/* Phones: running notes read at arm's length, so none falls under 16px */
@media (max-width: 47.99em) {
  .sec-note, .gallery-note, .leave-alt, .article-foot, .prose table, .index-hint,
  .tb-meta, .tb-meta .ph { font-size: 1rem; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .tb-meta, .tb-topics, .qa-item.is-open .qa-a-inner, .lightbox[open], .lightbox[open] .lb-img { animation: none !important; }
  .qa-mark::before, .qa-mark::after, .g-link img, .note-feature .photo-frame img, .event-nav .icon,
  .note-feature-title .icon, .lb-img { transition: none; }
}
@media print {
  .lightbox { display: none !important; }
  .js [data-accordion] .qa-a { display: block !important; }
}
