/* Mandala Theatre — productions archive, production page, artists index, artist profile.
   Builds on tokens.css, site.css and pages.css (and show.css on a production page). */

/* ---------- finder: search + filter chips + count ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px var(--gap); align-items: end; }
.finder-search { display: grid; gap: 8px; }
.finder-search label { font-weight: 600; }
.finder-search input {
  min-height: 56px; width: 100%; padding: 0 18px; border: 0; border-radius: var(--btn-radius);
  font: inherit; color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1.5px transparent;
}
.finder-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); background: var(--white); }
.finder .filters { margin-top: 0; }
.finder-count { grid-column: 1 / -1; font-size: var(--t-small); color: var(--ink-soft); }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } }

/* ---------- archive: one row per year, year on the left ---------- */
.archive { padding-bottom: var(--section); }
.yr { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--gap); padding: clamp(28px, 3vw, 44px) 0; border-top: 2px solid var(--ink); }
.yr[hidden] { display: none; }
.yr-label { position: sticky; top: calc(var(--head-h) + 72px); align-self: start; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.yr-label span { display: block; margin-top: 8px; font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
@media (max-width: 820px) {
  .yr { grid-template-columns: 1fr; gap: 20px; }
  .yr-label { position: static; display: flex; align-items: baseline; gap: 14px; }
  .yr-label span { margin: 0; }
}

/* ---------- a production tile (poster or stage photo) ---------- */
.pt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); }
.pt[hidden] { display: none; }
.pt > a, .pt > div { display: grid; text-decoration: none; color: inherit; }
.pt img, .pt-none { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--mist); }
.pt > a img { transition: transform .35s var(--ease); }
.pt > a:hover img { transform: translateY(-6px); }
.pt-none {
  display: flex; align-items: flex-end; padding: 18px; background: var(--curtain); color: var(--white);
  font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); font-weight: 750; line-height: 1.05; letter-spacing: -0.01em;
}
.pt-title { margin-top: 14px; font-weight: 700; line-height: 1.25; }
.pt-deva { display: block; font-weight: 500; color: var(--ink-soft); }
.pt-meta { margin-top: 2px; font-size: var(--t-small); color: var(--ink-soft); }
.pt > a .pt-title { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.pt > a:hover .pt-title { color: var(--crimson); text-decoration-color: var(--crimson); }
.pt-row { margin-top: 0; }
@media (max-width: 1100px) { .pt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }

/* ---------- a record page (production or artist): the old site's fields, nothing more ----------
   Dark header with the record's own image beside the text, at whatever size the editor uploaded. */
.rec-head { height: auto; background: var(--curtain); }
.rec-top {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: end;
  padding: clamp(128px, 14vw, 176px) max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin))) clamp(48px, 6vw, 88px);
}
.rec-text { padding-bottom: 8px; }
.rec-text .slide-status a { color: inherit; text-decoration: underline; text-decoration-color: rgba(245,164,0,.5); text-underline-offset: 4px; }
.rec-title { margin-top: 10px; font-size: clamp(3.5rem, 1rem + 7vw, 8rem); font-weight: 800; letter-spacing: -0.035em; line-height: .95; text-wrap: balance; }
.rec-sum { margin-top: 24px; max-width: 40ch; font-size: var(--t-lead); line-height: 1.35; color: #ecdfe2; }
.rec-img { margin: 0; }
.rec-img img { width: 100%; height: auto; max-height: 560px; object-fit: contain; object-position: right bottom; }
.rec-person .rec-img img { width: auto; max-width: 100%; max-height: 520px; margin-left: auto; display: block; }
@media (max-width: 820px) {
  .rec-top { grid-template-columns: 1fr; padding-top: 112px; }
  .rec-img img, .rec-person .rec-img img { object-position: left; margin-left: 0; max-height: 420px; }
}
.facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .facts-4 { grid-template-columns: 1fr 1fr; } }
.rec-body { max-width: 860px; }
.rec-body .synopsis { max-width: 64ch; }

/* ---------- artists list (the old Team Directory): photo, name, role ---------- */
.artists { padding-bottom: var(--section); }
.people .pt img { aspect-ratio: 1 / 1; object-position: 50% 25%; }

/* ---------- artist profile ---------- */
.motto { margin: 0; padding-left: 24px; border-left: 6px solid var(--saffron); }
.motto p { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.motto footer { margin-top: 10px; font-size: var(--t-small); color: var(--ink-soft); }
.person-facts { margin: clamp(48px, 5vw, 72px) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); border-top: 2px solid var(--ink); }
.person-facts > div { padding: 18px 0; border-bottom: 1px solid #dcd8d9; }
.person-facts dt { font-size: var(--t-small); color: var(--ink-soft); }
.person-facts dd { margin: 4px 0 0; font-weight: 650; }
.person-lists { margin-top: clamp(48px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.person-lists h2 { font-size: var(--t-lead); font-weight: 750; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.person-lists li { padding: 10px 0; border-bottom: 1px solid #dcd8d9; }
.person-links { margin-top: 40px; }
.person-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.person-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 820px) { .person-facts, .person-lists { grid-template-columns: 1fr; } .person-gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- artists A to Z: names only, under their first letter ---------- */
.az-jump { position: sticky; top: var(--head-h); z-index: 15; background: var(--white); border-bottom: 1px solid #e6e3e4; }
.az-jump[hidden] { display: none; }
.az-jump ul { list-style: none; margin: 0; padding: 10px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(28px, 1fr)); gap: 2px; }
.az-jump a, .az-jump span { display: grid; place-items: center; min-height: 36px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.az-jump a:hover { background: var(--ink); color: var(--white); }
.az-jump span { color: #c4bec0; }
.az { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--gap); padding: clamp(24px, 3vw, 40px) 0; border-top: 2px solid var(--ink); scroll-margin-top: calc(var(--head-h) + 70px); }
.az[hidden] { display: none; }
.az-letter { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); font-weight: 800; line-height: .9; letter-spacing: -0.04em; color: var(--crimson); }
.az-names { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: var(--gap); }
.az-names li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid #ece9ea; }
.az-names li[hidden] { display: none; }
.az-names a { font-size: var(--t-lead); font-weight: 700; line-height: 1.25; text-decoration: none; }
.az-names a:hover { color: var(--crimson); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.az-role { display: block; font-size: var(--t-small); color: var(--ink-soft); }
@media (max-width: 620px) {
  .az { grid-template-columns: 1fr; gap: 8px; }
  /* one row that scrolls sideways, so the sticky bar stays small */
  .az-jump ul { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 34px; overflow-x: auto; scrollbar-width: none; }
  .az-jump ul::-webkit-scrollbar { display: none; }
}

/* Within each letter, a grid of portrait cards; the whole card is the profile link. */
.artists.is-cards .az-names { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px var(--gap); }
.artists.is-cards .az-names li { position: relative; padding: 0; border: 0; }
.artists.is-cards .az-pic {
  display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 10px; overflow: hidden; border-radius: 6px;
  background: var(--curtain); color: rgba(255,255,255,.85); font-size: 2.5rem; font-weight: 800;
}
.artists.is-cards .az-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .35s var(--ease); }
.artists.is-cards li:hover .az-pic img { transform: scale(1.04); }
.artists.is-cards .az-names a { font-size: var(--t-body); }
.artists.is-cards .az-names a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 620px) { .artists.is-cards .az-names { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } }
