/* Reviews, FAQs and dance instructions (testimonials.php, faq.php, ceilidh-dance-instructions.php). Square corners. */

/* everything on these pages stays in one stacking layer under the fixed header (z-index 100) */
.page-help main { position: relative; z-index: 0; }

/* ================================================================ REVIEWS */

/* ---------- opener: one quote, set big, under a moving spotlight ---------- */
.tm-open { position: relative; color: var(--paper); padding: calc(var(--head-h) + 22px) 0 clamp(30px, 4.5vh, 52px); min-height: 64svh; display: flex; align-items: flex-end; }
.tm-open .wash { opacity: .34; filter: saturate(.9); }
.tm-open::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(33, 18, 58, .55), rgba(33, 18, 58, .2) 40%, rgba(20, 12, 34, .9)); }
.tm-open__spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(520px circle at var(--sx, 62%) var(--sy, 42%), rgba(255, 194, 61, .36), rgba(255, 90, 31, .12) 45%, transparent 72%); }
.tm-open__in { position: relative; z-index: 1; }
.tm-open__quote { position: relative; padding-left: clamp(0px, 7.5vw, 118px); }
.tm-open__mark { position: absolute; left: -.04em; top: -.2em; font-family: var(--body); font-weight: 600; font-size: clamp(7rem, 13vw, 13rem); line-height: 1; color: var(--gold); text-shadow: 0 0 40px rgba(255, 194, 61, .45); pointer-events: none; }
.tm-open__h { font-size: clamp(2.1rem, 4.2vw, 4.4rem); font-weight: 800; font-stretch: 100%; line-height: 1.04; margin: 0 0 .4em; }
.tm-open__h em { display: block; color: var(--gold); }
.tm-open__who { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 0; font-family: var(--display); }
.tm-open__who strong { font-weight: 700; font-size: 1.08rem; }
.tm-open__who span { font-weight: 500; font-size: 1rem; color: var(--muted-d); }
.tm-open__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 52px); align-items: center; margin-top: clamp(22px, 3.6vh, 42px); padding-top: clamp(16px, 2.4vh, 24px); border-top: 1px solid rgba(255, 194, 61, .4); }
.tm-rot { min-width: 0; }
.tm-rot__box { display: grid; }
.tm-rot__item { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; }
.tm-rot__item.is-on { opacity: 1; visibility: visible; }
.tm-rot__item p { margin: 0 0 4px; font-style: italic; font-size: clamp(1.08rem, 1.3vw, 1.25rem); line-height: 1.4; }
.tm-rot__item footer { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--gold); }
.tm-rot__bar { display: block; height: 2px; margin-top: 12px; background: rgba(246, 240, 255, .16); }
.tm-rot__bar span { display: block; height: 100%; background: var(--flame); transform-origin: left; transform: scaleX(0); }
.tm-open__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- set piece: the year rail ---------- */
.tm-rail { color: var(--ink); }
.tm-rail h2 em, .fq-open h1 em, .fq-list h2 em, .dn-sec h2 em { color: var(--violet); }
.tm-rail__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.tm-side { align-self: start; position: sticky; top: 104px; }
.tm-side__stick { display: grid; gap: 14px; }
.tm-odo { display: flex; font-family: var(--display); font-weight: 900; font-stretch: 116%; font-size: clamp(5rem, min(10.5vw, 21vh), 10rem); line-height: .78; height: .78em; padding-top: .04em; box-sizing: content-box; letter-spacing: -.02em; color: var(--night); font-variant-numeric: tabular-nums; }
.tm-odo__col { display: block; height: .78em; overflow: clip; -webkit-mask: linear-gradient(transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
.tm-odo__col:nth-child(n+3) { color: var(--ember); }
.tm-odo__strip { display: flex; flex-direction: column; will-change: transform; }
.tm-odo__strip span { display: block; height: .78em; line-height: .78; }
.tm-side__meta { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.tm-side__meta b { color: var(--violet); }
.tm-side__places { margin: 0; font-size: 1.02rem; line-height: 1.45; color: var(--muted-l); min-height: 4.4em; }
.tm-side__prog { display: block; height: 4px; background: rgba(75, 31, 160, .14); }
.tm-side__prog span { display: block; height: 100%; background: var(--flame); transform-origin: left; transform: scaleX(0); }
.tm-years { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tm-years a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 66px; padding: 0 10px; border: 1.5px solid rgba(75, 31, 160, .28); background: rgba(255, 255, 255, .5); font-family: var(--display); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink); transition: background-color .3s var(--ease), color .3s, border-color .3s; }
.tm-years a:hover { border-color: var(--violet); }
.tm-years a.is-on { background: var(--night); border-color: var(--night); color: var(--gold); }

.tm-year { margin-bottom: clamp(36px, 5vw, 70px); scroll-margin-top: 110px; }
.tm-year:last-child { margin-bottom: 0; }
.tm-year__h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: clamp(1.6rem, 2.2vw, 2.1rem); margin: 0 0 22px; padding-bottom: 10px; border-bottom: 2px solid var(--night); }
.tm-year__n { font-size: 1rem; font-weight: 600; font-stretch: 100%; color: var(--violet); }
.tm-year__cards { columns: 2 320px; column-gap: 20px; }
.tm-note { break-inside: avoid; margin: 0 0 20px; position: relative; background: #fff; padding: 26px 26px 22px; border-top: 3px solid var(--violet); box-shadow: 0 1px 0 rgba(20, 12, 34, .06), 0 18px 40px -28px rgba(20, 12, 34, .4); transition: box-shadow .5s var(--ease), border-color .3s, translate .5s var(--ease); }
.tm-note::before { content: "\201C"; position: absolute; right: 18px; top: -2px; font-family: var(--body); font-size: 4.6rem; line-height: 1; color: rgba(75, 31, 160, .14); pointer-events: none; transition: color .4s; }
.tm-note:hover { border-top-color: var(--ember); translate: 0 -4px; box-shadow: 0 1px 0 rgba(20, 12, 34, .06), 0 26px 50px -26px rgba(20, 12, 34, .5); }
.tm-note:hover::before { color: rgba(255, 90, 31, .35); }
.tm-note__q p { margin: 0 0 .8em; font-size: 1.06rem; line-height: 1.6; }
.tm-note__q p:last-child { margin-bottom: 0; }
.tm-note--short .tm-note__q p { font-size: clamp(1.2rem, 1.5vw, 1.36rem); font-style: italic; line-height: 1.45; }
.tm-mark { color: inherit; padding: 0 .04em; background: linear-gradient(rgba(255, 90, 31, .3), rgba(255, 90, 31, .3)) 0 90% / 100% 44% no-repeat; transition: background-size 1.2s var(--ease) .15s; }
.js .tm-mark:not(.is-lit) { background-size: 0% 44%; }
.tm-note__by { display: grid; gap: 2px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(20, 12, 34, .12); font-family: var(--display); }
.tm-note__by strong { color: var(--violet); font-weight: 800; font-size: 1.02rem; }
.tm-note__by span { font-weight: 500; font-size: .92rem; color: var(--muted-l); }
.no-js .tm-odo, .no-js .tm-side__meta, .no-js .tm-side__places, .no-js .tm-side__prog { display: none; }

/* ---------- venues marquee ---------- */
.tm-venues.tx-lights { background-color: var(--violet); color: var(--paper); padding-block: clamp(64px, 8vw, 112px); overflow: clip; }
.tm-venues__head { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.tm-venues__head h2 { margin: 0; }
.tm-venues__head h2 em { color: var(--gold); display: block; }
.tm-venues__head p { margin: 0; font-size: 1.15rem; color: #EDE4FA; }
.tm-venues .marquee__set span { color: var(--paper); }
.tm-venues .marquee__set span::after { background: var(--gold); }
.tm-venues .marquee__row--rev .marquee__set span { -webkit-text-stroke: 2px var(--gold); color: transparent; }
.tm-venues .marquee__row--rev .marquee__set span::after { background: transparent; border: 2px solid var(--gold); }
.tm-venues .marquee { cursor: default; }

/* ================================================================ FAQ */

/* ---------- opener: search band over plucked staves ---------- */
.fq-open { position: relative; isolation: isolate; overflow: clip; color: var(--ink); padding: calc(var(--head-h) + 24px) 0 clamp(34px, 5vh, 56px); min-height: 52svh; }
.fq-staves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.fq-staves path { fill: none; stroke: var(--violet); stroke-opacity: .42; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fq-staves .is-soft .fq-note { fill: var(--violet); }
.fq-staves .fq-note { fill: var(--ember); }
.fq-open__in { position: relative; }
.fq-open__head { margin-bottom: clamp(20px, 3vh, 28px); }
.fq-open__head h1 { font-size: clamp(2.5rem, 4.6vw, 4.4rem); margin: 0 0 .3em; }
.fq-open__head h1 em { display: block; }
.fq-open__lede { margin: 0; font-size: clamp(1.1rem, 1.3vw, 1.22rem); color: var(--muted-l); }
.fq-search { position: relative; display: flex; align-items: stretch; background: #fff; border: 2px solid var(--night); box-shadow: 10px 10px 0 var(--violet); transition: box-shadow .4s var(--ease); }
.fq-search:focus-within { box-shadow: 10px 10px 0 var(--ember); }
.fq-search__ic { position: absolute; left: 22px; top: 50%; width: 20px; height: 20px; margin-top: -12px; border: 3px solid var(--night); border-radius: 50%; pointer-events: none; }
.fq-search__ic::after { content: ""; position: absolute; left: 15px; top: 15px; width: 3px; height: 10px; background: var(--night); transform: rotate(-45deg); }
.fq-search input { flex: 1 1 auto; min-width: 0; min-height: 68px; border: 0; background: transparent; padding: 0 18px 0 60px; font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.fq-search input::placeholder { color: #7A6E8C; font-weight: 500; }
.fq-search input:focus { outline: none; }
.fq-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.fq-search__count { flex: none; display: flex; align-items: center; gap: .3em; padding: 0 20px; border-left: 1px solid rgba(20, 12, 34, .14); font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--muted-l); white-space: nowrap; }
.fq-search__count b { color: var(--violet); font-weight: 800; min-width: 1.2em; text-align: right; }
.fq-search__cta { flex: none; min-height: 0; }
.fq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fq-chip, .dn-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 15px; font-family: var(--display); font-weight: 700; font-size: .97rem; cursor: pointer; border-radius: 0; transition: background-color .3s var(--ease), color .3s, border-color .3s; }
.fq-chip { border: 1.5px solid rgba(20, 12, 34, .32); background: rgba(255, 255, 255, .66); color: var(--ink); }
.fq-chip span { color: var(--violet); font-weight: 600; }
.fq-chip:hover { border-color: var(--night); }
.fq-chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--gold); }
.fq-chip[aria-pressed="true"] span { color: var(--paper); }
.no-js .fq-search input, .no-js .fq-search__count, .no-js .fq-search__ic, .no-js .fq-chips { display: none; }
.no-js .fq-search { background: transparent; border: 0; box-shadow: none; }

/* ---------- set piece: the live list ---------- */
.fq-list { color: var(--ink); }
.fq-list__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.fq-aside { align-self: start; position: sticky; top: 104px; }
.fq-aside__stick { display: grid; gap: 22px; }
.fq-aside__stick h2 { margin: 0; }
.fq-aside__photo { position: relative; overflow: clip; aspect-ratio: 3 / 2; margin: 10px; outline: 1px solid var(--violet); outline-offset: 9px; }
.fq-aside__pan { position: absolute; inset: 0; display: block; }
.fq-aside__pan img { width: 100%; height: 100%; object-fit: cover; animation: fq-push 16s ease-in-out infinite alternate; }
@keyframes fq-push { from { transform: scale(1); } to { transform: scale(1.1); } }
.fq-ask { background: var(--night); color: var(--paper); padding: 22px 24px; border-left: 4px solid var(--ember); }
.fq-ask p { margin: 0; }
.fq-ask a[href^="tel:"] { white-space: nowrap; }
.fq-ask__h { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.3rem; margin-bottom: 6px !important; color: var(--gold); }
.fq-ask a, .fq-none a { color: var(--gold); font-weight: 600; }
.fq-items { position: relative; }
.fq-item { position: relative; margin-bottom: 10px; background: #fff; border-left: 4px solid transparent; box-shadow: 0 1px 0 rgba(20, 12, 34, .07); transition: border-color .35s var(--ease), box-shadow .5s var(--ease); }
.fq-item.is-out { display: none; }
.fq-item:hover { border-left-color: var(--gold); }
.fq-item.is-open { border-left-color: var(--ember); box-shadow: 0 24px 50px -32px rgba(20, 12, 34, .55); }
.fq-item__q { margin: 0; font-size: inherit; font-stretch: inherit; line-height: inherit; }
.fq-item__q button { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 74px; padding: 14px 80px 14px 24px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.fq-item__t { font-family: var(--display); font-weight: 700; font-stretch: 104%; font-size: clamp(1.08rem, 1.3vw, 1.24rem); line-height: 1.28; }
.fq-item__topic { font-family: var(--display); font-weight: 600; font-size: .84rem; color: var(--violet); padding: 4px 10px; border: 1px solid rgba(75, 31, 160, .3); white-space: nowrap; }
.fq-item__ic { position: absolute; right: 18px; top: 50%; margin-top: -22px; width: 44px; height: 44px; background: var(--hall); transition: background-color .35s var(--ease); }
.fq-item__ic::before, .fq-item__ic::after { content: ""; position: absolute; left: 14px; top: 21px; width: 16px; height: 2px; background: var(--night); transition: transform .45s var(--ease); }
.fq-item__ic::after { transform: rotate(90deg); }
.fq-item.is-open .fq-item__ic::before { transform: rotate(45deg); }
.fq-item.is-open .fq-item__ic::after { transform: rotate(135deg); }
.fq-item__q button:hover .fq-item__ic { background: var(--gold); }
.fq-item.is-open .fq-item__ic { background: var(--ember); }
.fq-item__a { overflow: clip; }
.js .fq-item:not(.is-open) .fq-item__a { display: none; }
.fq-item__in { padding: 0 24px 26px; font-size: 1.08rem; }
.fq-item__in p { margin: 0 0 .85em; }
.fq-item__in p:last-child { margin-bottom: 0; }
.fq-item__in a { color: var(--violet); font-weight: 600; }
.fq-dances { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .9em; }
.fq-dances a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border: 1.5px solid rgba(75, 31, 160, .35); font-family: var(--display); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color .3s, color .3s; }
.fq-dances a:hover { background: var(--violet); color: var(--paper); }
.fq-items mark { background: var(--gold); color: var(--ink); padding: 0 .08em; }
.fq-none { background: var(--night); color: var(--paper); padding: clamp(24px, 3vw, 36px); border-top: 4px solid var(--gold); }
.fq-none p { margin: 0 0 14px; font-size: 1.1rem; }
.fq-none__h { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.15; }

/* ---------- a typical night ---------- */
.fq-night { color: var(--paper); }
.fq-night h2 em { color: var(--gold); }
.fq-tl { position: relative; display: flex; gap: 4px; margin: 0; }
.fq-tl__seg { flex: var(--w) 1 0; min-width: 0; display: grid; gap: 8px; align-content: start; cursor: default; transition: opacity .35s var(--ease); }
.fq-tl:hover .fq-tl__seg:not(:hover) { opacity: .55; }
.fq-tl__time { line-height: 1.2; align-items: baseline; display: flex; justify-content: space-between; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--gold); }
.fq-tl__mid { color: var(--paper); font-weight: 600; }
.fq-tl__bar { position: relative; display: block; height: 56px; background: rgba(20, 12, 34, .4); overflow: clip; }
.fq-tl__bar span { position: absolute; inset: 0; transform-origin: left; transition: filter .4s; }
.fq-tl__seg--0 .fq-tl__bar span { background: var(--glow); }
.fq-tl__seg--1 .fq-tl__bar span { background: var(--gold); }
.fq-tl__seg--2 .fq-tl__bar span { background: repeating-linear-gradient(135deg, rgba(255, 231, 176, .55) 0 8px, rgba(255, 231, 176, .2) 8px 16px); }
.fq-tl__seg--3 .fq-tl__bar span { background: var(--ember); }
.fq-tl__seg--4 .fq-tl__bar span { background: var(--flame); }
.fq-tl__seg.is-now .fq-tl__bar span, .fq-tl__seg:hover .fq-tl__bar span { filter: brightness(1.15) drop-shadow(0 0 14px rgba(255, 194, 61, .7)); }
.fq-tl__seg strong { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.2; }
.fq-tl__line { font-size: 1rem; line-height: 1.4; color: #EDE4FA; }
.fq-tl__head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--paper); box-shadow: 0 0 14px 3px rgba(255, 231, 176, .8); pointer-events: none; mix-blend-mode: screen; opacity: 0; }
.fq-night__go { margin: clamp(30px, 4vw, 48px) 0 0; }

/* ================================================================ DANCES */

/* ---------- opener: the formation picker ---------- */
.dn-open { position: relative; isolation: isolate; overflow: clip; color: var(--paper); padding: calc(var(--head-h) + 24px) 0 clamp(36px, 5vh, 60px); }
.dn-open::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 76% 50%, rgba(75, 31, 160, .5), transparent 70%), radial-gradient(36% 50% at 8% 100%, rgba(255, 90, 31, .18), transparent 70%); }
.dn-open__in { position: relative; display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.dn-open__h { font-size: clamp(2.5rem, 4.4vw, 4.3rem); margin: 0 0 .2em; }
.dn-open__h em { display: block; color: var(--gold); }
.dn-open__sub { margin: 0 0 .45em; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.3rem, 1.9vw, 1.8rem); line-height: 1.1; }
.dn-open__sub b { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dn-open__lede { font-size: clamp(1.08rem, 1.25vw, 1.2rem); color: #EDE4FA; margin: 0 0 20px; }
.dn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dn-chip { border: 1.5px solid rgba(246, 240, 255, .42); background: rgba(20, 12, 34, .45); color: var(--paper); }
.dn-chip span { color: var(--gold); font-weight: 600; }
.dn-chip:hover { border-color: var(--gold); }
.dn-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.dn-chip[aria-pressed="true"] span { color: var(--ink); }
.dn-open__actions { display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap; }
.dn-open__jump { color: var(--gold); }
.no-js .dn-chips { display: none; }
.dn-floor { margin: 0; }
.dn-floor__svg { width: min(100%, calc(min(60vh, 540px) * 600 / 440)); height: auto; margin: 12px 12px 0 auto; outline: 1px solid rgba(255, 194, 61, .55); outline-offset: 10px; overflow: hidden; }
.dn-floor__dots circle { stroke: rgba(20, 12, 34, .7); stroke-width: 2.5; transform-box: view-box; }
.dn-floor__dots .c0, .dn-glyph .c0 { fill: var(--gold); }
.dn-floor__dots .c1, .dn-glyph .c1 { fill: var(--ember); }
.dn-floor__band { fill: var(--night); stroke: rgba(255, 194, 61, .6); stroke-width: 1; }
.dn-floor__bandt { fill: var(--gold); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; }
.dn-floor__cap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: flex-end; margin: 20px 12px 0 0; font-family: var(--display); }
.dn-floor__cap b { color: var(--gold); font-weight: 800; font-size: 1.1rem; }
.dn-floor__cap span { color: #E6DCF5; font-weight: 500; }

/* ---------- set piece: dance cards with a bar ruler ---------- */
.dn-sec { color: var(--ink); scroll-margin-top: 60px; }
.dn-status { margin: 0; font-family: var(--display); font-weight: 600; color: var(--violet); }
.dn-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: calc(-1 * clamp(14px, 2vw, 30px)) 0 22px; }
.dn-filter .dn-chips { margin: 0; }
.dn-chips--grid .dn-chip { border-color: rgba(20, 12, 34, .28); background: #fff; color: var(--ink); }
.dn-chips--grid .dn-chip span { color: var(--violet); }
.dn-chips--grid .dn-chip:hover { border-color: var(--violet); }
.dn-chips--grid .dn-chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--gold); }
.dn-chips--grid .dn-chip[aria-pressed="true"] span { color: var(--gold); }
.dn-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dn-card { position: relative; scroll-margin-top: 100px; }
.dn-card.is-out { display: none; }
.dn-card.is-open { grid-column: 1 / -1; }
.dn-card__in { height: 100%; display: flex; flex-direction: column; background: #fff; padding: 24px 24px 22px; border-top: 3px solid var(--night); box-shadow: 0 1px 0 rgba(20, 12, 34, .06); transition: border-color .35s var(--ease), box-shadow .5s var(--ease); }
.dn-card:hover .dn-card__in { border-top-color: var(--ember); box-shadow: 0 26px 50px -32px rgba(20, 12, 34, .55); }
.dn-card.is-open .dn-card__in { border-top-color: var(--ember); box-shadow: 0 30px 70px -40px rgba(20, 12, 34, .6); }
.dn-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.dn-glyph { width: 88px; height: auto; flex: none; background: var(--night); padding: 6px; overflow: visible; }
.dn-glyph circle { transform-box: fill-box; transform-origin: center; }
.dn-card__meta { display: grid; gap: 2px; font-family: var(--display); }
.dn-card__form { font-weight: 700; color: var(--violet); font-size: .96rem; }
.dn-card__bars { font-weight: 500; font-size: .9rem; color: var(--muted-l); }
.dn-card__t { font-size: clamp(1.35rem, 1.65vw, 1.65rem); margin: 0 0 .3em; }
.dn-card__l { flex: 1 0 auto; margin: 0 0 18px; color: var(--muted-l); font-size: 1.05rem; line-height: 1.5; }
.dn-card__acts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.dn-card__open { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 14px 10px 18px; border: 0; background: var(--night); color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color .3s var(--ease), color .3s; }
.dn-card__open:hover { background: var(--violet); }
.dn-card.is-open .dn-card__open { background: var(--ember); color: var(--ink); }
.dn-card__plus { position: relative; width: 14px; height: 14px; transition: transform .45s var(--ease); }
.dn-card__plus::before, .dn-card__plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; }
.dn-card__plus::after { transform: rotate(90deg); }
.dn-card.is-open .dn-card__plus { transform: rotate(135deg); }
.dn-card__film[hidden] { display: none; }
.dn-card__film { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--violet); text-decoration: none; }
.dn-card__film::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M10 8l8 5-8 5z' fill='%23140C22'/%3E%3C/svg%3E") center / 100% no-repeat; transition: transform .35s var(--ease); }
.dn-card__film:hover::before { transform: scale(1.15); }
.dn-card__film:hover { text-decoration: underline; text-underline-offset: 4px; }
.js .dn-card:not(.is-open) .dn-card__steps { display: none; }
.dn-steps { display: grid; gap: 24px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(20, 12, 34, .12); }
.dn-card.is-open .dn-steps { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.dn-steps__form { margin: 0; font-size: 1.05rem; }
.dn-steps__form b { font-family: var(--display); font-weight: 800; color: var(--violet); margin-right: 6px; }
.dn-part { margin: 24px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: 1.1rem; color: var(--violet); }
.dn-ruler { position: relative; height: 58px; margin: 28px 0 6px; }
.dn-ruler__base { position: absolute; left: 0; right: 0; top: 28px; height: 2px; background: var(--night); transform-origin: left; }
.dn-ruler__seg { position: absolute; top: 2px; height: 24px; left: calc(var(--a) / var(--n) * 100%); width: calc(var(--s) / var(--n) * 100% - 3px); transform-origin: left bottom; transition: transform .3s var(--ease), filter .3s; }
.dn-ruler__seg--0 { background: var(--violet); }
.dn-ruler__seg--1 { background: var(--ember); }
.dn-ruler__seg--2 { background: var(--gold); }
.dn-ruler__seg--3 { background: var(--night); }
.dn-ruler__seg.is-open { -webkit-mask: linear-gradient(90deg, #000 60%, transparent); mask: linear-gradient(90deg, #000 60%, transparent); }
.dn-ruler__seg.is-hl { transform: scaleY(1.25); filter: brightness(1.1); }
.dn-ruler__tick { position: absolute; top: 30px; left: calc(var(--a) / var(--n) * 100%); padding-top: 12px; transform: translateX(-50%); font-family: var(--display); font-weight: 700; font-size: .8rem; line-height: 1; color: var(--muted-l); }
.dn-ruler__tick::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 6px; background: rgba(20, 12, 34, .5); }
.dn-ruler__tick.is-phrase::before { width: 2px; height: 10px; background: var(--night); }
.dn-ruler__tick:first-of-type { transform: none; }
.dn-ruler__tick:first-of-type::before { left: 0; }
.dn-figs { display: grid; margin-top: 8px; }
.dn-fig { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 12px 8px 12px 0; border-bottom: 1px solid rgba(20, 12, 34, .1); transition: background-color .3s; }
.dn-fig.is-hl { background: var(--hall); }
.dn-fig__bars { position: relative; padding-left: 16px; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.05rem; line-height: 1.5; white-space: nowrap; }
.dn-fig__bars::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 6px; }
.dn-fig--0 .dn-fig__bars::before { background: var(--violet); }
.dn-fig--1 .dn-fig__bars::before { background: var(--ember); }
.dn-fig--2 .dn-fig__bars::before { background: var(--gold); }
.dn-fig--3 .dn-fig__bars::before { background: var(--night); }
.dn-fig p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.dn-steps__repeat { margin: 16px 0 0; font-style: italic; color: var(--muted-l); }
.dn-steps__talk { margin: 16px 0 0; font-size: 1.35rem; font-style: italic; }
.dn-steps__side .yt { box-shadow: 12px 12px 0 var(--violet); }
.dn-steps__glyph { display: grid; place-items: center; gap: 10px; padding: 26px; background: var(--night); }
.dn-steps__glyph .dn-glyph { width: min(70%, 260px); padding: 0; }
.dn-steps__glyph p { margin: 0; font-family: var(--display); font-weight: 700; color: var(--gold); }

/* the dance floor: dancers act out each step in time with the count (dances.js) */
.dn-card.has-stage .dn-steps__glyph { display: none; }
.dn-card.has-stage:not(.is-film) .dn-steps__side .dn-yt { display: none; }
.dn-card.has-stage.is-film .dn-stage { display: none; }
.dn-view { display: flex; margin-bottom: 10px; }
.dn-view button { flex: 1 1 0; min-height: 46px; padding: 8px 12px; border: 0; background: var(--hall); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: .98rem; cursor: pointer; transition: background-color .3s var(--ease), color .3s; }
.dn-view button:hover { background: #E4D9F2; }
.dn-view button[aria-pressed="true"] { background: var(--night); color: var(--gold); }
.dn-stage { background: var(--night); color: var(--paper); box-shadow: 12px 12px 0 var(--violet); }
.dn-stage__floor { position: relative; cursor: pointer; background: repeating-linear-gradient(0deg, #2A1A44 0 35px, #3A2758 35px 36px); }
.dn-stage__svg { display: block; width: 100%; height: auto; aspect-ratio: 400 / 380; }
.dn-stage__lod { fill: none; stroke: rgba(255, 231, 176, .24); stroke-width: 2; stroke-dasharray: 1 9; stroke-linecap: round; }
.dn-stage__arrow { fill: none; stroke: rgba(255, 231, 176, .55); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dn-stage__note { fill: rgba(255, 231, 176, .5); font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.dn-stage__band { fill: var(--night); stroke: rgba(255, 194, 61, .6); stroke-width: 1; }
.dn-stage__bandt { fill: var(--gold); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; }
.dn-dancer { transition: opacity .3s; }
.dn-dancer__dot { stroke: var(--night); stroke-width: 2; }
.dn-dancer.is-man .dn-dancer__dot, .dn-dancer.is-man .dn-dancer__nose { fill: var(--gold); }
.dn-dancer.is-lady .dn-dancer__dot, .dn-dancer.is-lady .dn-dancer__nose { fill: var(--ember); }
.dn-dancer__ring { fill: none; stroke: var(--paper); stroke-width: 2; opacity: 0; }
.dn-dancer.is-spot .dn-dancer__ring { opacity: .95; }
.dn-dancer.is-dim { opacity: .5; }
.dn-dancer__n { fill: var(--ink); font-family: var(--display); font-weight: 800; font-size: 11px; }
.dn-hold { stroke: rgba(246, 240, 255, .8); stroke-width: 3; stroke-linecap: round; }
.dn-hold.is-arch { stroke: var(--glow); stroke-width: 5; }
.dn-hold.is-star { stroke: rgba(246, 240, 255, .7); stroke-width: 2.5; }
.dn-trail { fill: none; stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; opacity: .6; }
.dn-trail.is-man { stroke: var(--gold); }
.dn-trail.is-lady { stroke: var(--ember); }
.dn-trail__end { opacity: .8; }
.dn-trail__end.is-man { fill: var(--gold); }
.dn-trail__end.is-lady { fill: var(--ember); }
.dn-stage__play { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 18px 10px 14px; border: 0; background: var(--ember); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); transition: background-color .3s var(--ease); }
.dn-stage__play:hover { background: var(--gold); }
.dn-stage__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 4.4em; margin: 0; padding: 14px 18px 6px; border-top: 3px solid var(--ember); font-family: var(--display); }
.dn-stage__cap b { font-weight: 800; font-stretch: 110%; font-size: 1.1rem; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dn-stage__cap span { font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.dn-stage__key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 4px 18px 14px; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--muted-d); }
.dn-stage__key span { display: inline-flex; align-items: center; gap: 7px; }
.dn-stage__key span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.dn-stage__key .is-man::before { background: var(--gold); }
.dn-stage__key .is-lady::before { background: var(--ember); }
.dn-stage__key .is-dir::before { width: 0; height: 0; border-radius: 0; border-left: 10px solid var(--muted-d); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (min-width: 901px) { .dn-card.is-open .dn-steps__side { position: sticky; top: calc(var(--head-h) + 20px); } }

/* count through the bars */
.dn-count { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 18px 0 4px; padding: 12px 18px 12px 12px; background: var(--night); color: var(--paper); }
.dn-count__go { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 18px 10px 14px; border: 0; background: var(--ember); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color .3s var(--ease); }
.dn-count__go:hover { background: var(--gold); }
.dn-count__ico { position: relative; width: 14px; height: 16px; }
.dn-count__ico::before { content: ""; position: absolute; left: 1px; top: 0; border-left: 14px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.dn-count__go.is-on .dn-count__ico::before { left: 1px; width: 4px; height: 16px; border: 0; background: currentColor; box-shadow: 7px 0 0 currentColor; }
.dn-count__read { display: flex; align-items: baseline; gap: 8px; margin: 0; font-family: var(--display); }
.dn-count__read b { font-weight: 800; font-stretch: 110%; font-size: 1.35rem; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dn-count__read span { font-weight: 600; font-size: .95rem; color: var(--muted-d); }
.dn-count__hint { margin: 0 0 0 auto; font-style: italic; font-size: 1rem; color: var(--muted-d); }
.dn-ruler__lane { position: absolute; z-index: 2; left: -10px; right: -10px; top: -24px; height: 56px; overflow: clip; pointer-events: none; }
.dn-ruler__head { position: absolute; top: 0; bottom: 0; left: 10px; width: calc(100% - 20px); opacity: 0; visibility: hidden; }
.dn-ruler__head::before { content: ""; position: absolute; left: -1.5px; top: 10px; width: 3px; height: 44px; background: var(--ink); }
.dn-ruler__head::after { content: ""; position: absolute; left: -7px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--ink); }
.dn-card.is-live .dn-fig, .dn-card.is-live .dn-ruler__seg { cursor: pointer; }
.dn-ruler__seg { transition: transform .3s var(--ease), filter .3s, opacity .3s; }
.dn-fig > * { transition: opacity .3s; }
.dn-card.is-counting .dn-ruler__seg:not(.is-now) { opacity: .3; }
.dn-card.is-counting .dn-ruler__seg.is-now { transform: scaleY(1.35); }
.dn-card.is-counting .dn-fig:not(.is-now) > * { opacity: .45; }
.dn-card.is-counting .dn-fig.is-hl:not(.is-now) > * { opacity: .8; }
.dn-fig.is-now .dn-fig__bars::before { width: 10px; }
.dn-fig--0.is-now { background: rgba(75, 31, 160, .1); }
.dn-fig--1.is-now { background: rgba(255, 90, 31, .12); }
.dn-fig--2.is-now { background: rgba(255, 194, 61, .22); }
.dn-fig--3.is-now { background: rgba(20, 12, 34, .08); }

/* ---------- Paul calls every dance ---------- */
.dn-paul { color: var(--paper); }
.dn-paul h2 em { color: var(--gold); }
.dn-paul__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.dn-paul { padding-block: clamp(64px, 7vw, 96px); }
.dn-paul__photo { position: relative; overflow: clip; aspect-ratio: 1028 / 1488; height: min(62vh, 560px); width: auto; max-width: calc(100% - 28px); margin: 14px auto; outline: 1px solid rgba(255, 194, 61, .7); outline-offset: 12px; }
.dn-paul__pan { position: absolute; inset: 0; display: block; animation: fq-push 14s ease-in-out infinite alternate; }
.dn-paul__pan img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.dn-call { display: grid; margin: 4px 0 28px; padding: 18px 24px; background: rgba(20, 12, 34, .5); border-left: 4px solid var(--gold); }
.dn-call__item { grid-area: 1 / 1; display: grid; gap: 4px; margin: 0; opacity: 0; visibility: hidden; }
.dn-call__item.is-on { opacity: 1; visibility: visible; }
.dn-call__line { font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.3; }
.dn-call__dance { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--gold); }
.dn-paul__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ================================================================ shared states and sizes */
.js .tm-note, .js .fq-item, .js .dn-card { opacity: 0; }
.rv-fail .tm-note, .rv-fail .fq-item, .rv-fail .dn-card { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .tm-note, .js .fq-item, .js .dn-card { opacity: 1; }
  .fq-aside__pan img, .dn-paul__pan { animation: none; }
  .js .tm-mark:not(.is-lit) { background-size: 100% 44%; }
  .tm-note, .tm-note:hover { translate: none; }
}
.rv-fail .tm-mark { background-size: 100% 44% !important; }

@media (max-width: 1100px) {
  .dn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tm-open__foot { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tm-rail__in, .fq-list__in { grid-template-columns: minmax(0, 1fr); }
  .js .tm-side { display: contents; }
  .tm-side__stick { position: sticky; top: 72px; z-index: 5; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 16px; margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: var(--hall); border-bottom: 1px solid rgba(20, 12, 34, .14); }
  .tm-odo { font-size: 2.6rem; grid-row: span 2; }
  .tm-side__places, .tm-years { display: none; }
  .tm-side__prog { grid-column: 2; }
  .no-js .tm-years { display: flex; }
  .no-js .tm-side__stick { position: static; }
  .tm-venues__head { grid-template-columns: minmax(0, 1fr); }
  .fq-aside { position: static; }
  .fq-aside__stick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .fq-aside__stick h2 { grid-column: 1 / -1; }
  .dn-open__in, .dn-paul__in { grid-template-columns: minmax(0, 1fr); }
  .dn-floor__svg { margin: 12px auto 0; }
  .dn-floor__cap { justify-content: center; margin-right: 0; }
  .dn-card.is-open .dn-steps { grid-template-columns: minmax(0, 1fr); }
  .dn-paul__photo { height: min(56vh, 520px); }
}
@media (max-width: 700px) {
  .tm-open__quote { padding-left: 0; padding-top: .55em; }
  .tm-open__mark { font-size: 6rem; top: -.32em; opacity: .55; }
  .tm-year__cards { columns: 1; }
  .fq-open__head h1 { font-size: 2.15rem; font-stretch: 100%; }
  .fq-search { flex-wrap: wrap; box-shadow: 6px 6px 0 var(--violet); }
  .fq-search input { flex-basis: calc(100% - 120px); min-height: 60px; padding-left: 52px; }
  .fq-search__ic { top: 30px; left: 18px; }
  .fq-search__count { padding: 0 14px; font-size: .92rem; }
  .fq-search__cta { flex: 1 1 100%; min-height: 52px; }
  .fq-item__q button { grid-template-columns: minmax(0, 1fr); padding-left: 18px; padding-right: 74px; }
  .fq-item__topic { display: none; }
  .fq-item__in { padding: 0 18px 22px; }
  .fq-aside, .fq-aside__stick { display: contents; }
  .fq-aside__stick h2 { order: 0; }
  .fq-items { order: 1; }
  .fq-aside__photo { order: 2; margin-top: 18px; }
  .fq-ask { order: 3; }
  .fq-tl { flex-direction: column; gap: 14px; }
  .fq-tl__seg { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 14px; }
  .fq-tl__time { grid-row: span 3; flex-direction: column; justify-content: flex-start; gap: 2px; }
  .fq-tl__bar { height: 12px; width: calc(var(--w) / 1.5 * 100%); }
  .fq-tl__head { display: none; }
  .dn-grid { grid-template-columns: minmax(0, 1fr); }
  .dn-fig { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
  .dn-ruler__tick:not(.is-phrase) { display: none; }
  .dn-count { position: sticky; top: 72px; z-index: 3; }
  .dn-card.is-open .dn-steps__side { order: -1; }
  .dn-count__hint { flex-basis: 100%; margin: 0; }
}
@media (max-width: 560px) {
  .tm-side__stick { top: 64px; }
  .dn-card__in { padding: 20px 18px 18px; }
  .dn-count { top: 64px; gap: 4px 14px; padding: 8px 12px 10px 8px; }
  .dn-chips--grid { gap: 6px; }
  .dn-chips--grid .dn-chip { gap: 6px; padding: 6px 11px; font-size: .9rem; }
  .dn-stage__play { left: 8px; top: 8px; min-height: 44px; gap: 10px; padding: 6px 14px 6px 12px; font-size: .92rem; }
  .dn-count__go { min-height: 44px; padding: 8px 14px 8px 12px; font-size: .95rem; }
  .dn-count__read b { font-size: 1.2rem; }
  .dn-count__hint { padding-left: 4px; font-size: .95rem; }
}
