/* News page (blog.php), the post template (post.php) and the public ceilidh tickets page. Square corners. */

/* ================= news: lead story opener ================= */
.nw-open { position: relative; color: var(--paper); padding: calc(var(--head-h) + 34px) 0 clamp(40px, 5vw, 64px); overflow: clip; isolation: isolate; }
.nw-open::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 28% 50%, rgba(255, 90, 31, .18), transparent 70%), radial-gradient(40% 60% at 92% 10%, rgba(120, 60, 255, .26), transparent 70%); animation: sv-glow 8s ease-in-out infinite alternate; }
@keyframes sv-glow { from { opacity: .65; } to { opacity: 1; } }
.nw-open__in { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.nw-lead__stage { position: relative; height: min(58vh, 540px); margin: 0 0 0 16px; }
.nw-lead__frame { position: absolute; left: -16px; top: -16px; right: 16px; bottom: 16px; border: 1px solid var(--gold); pointer-events: none; z-index: 2; }
.nw-lead__shots { position: absolute; inset: 0; overflow: clip; background: var(--night-2); box-shadow: 22px 22px 0 var(--violet), 0 40px 90px rgba(5, 2, 12, .55); }
.nw-lead__shot { position: absolute; inset: 0; display: block; visibility: hidden; }
.nw-lead__shot.is-on { visibility: visible; z-index: 1; }
.nw-lead__pan { position: absolute; inset: -6% 0; display: block; }
.nw-lead__img { width: 100%; height: 100%; object-fit: cover; }
.nw-lead__shot.is-on .nw-lead__img { animation: push 16s ease-in-out infinite alternate; }
.nw-lead__shots::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(20, 12, 34, .35), transparent 30%, transparent 70%, rgba(20, 12, 34, .45)); }
.nw-lead__stamp { position: absolute; z-index: 3; left: -16px; top: 26px; margin: 0; display: grid; justify-items: start; padding: 12px 18px 14px; background: var(--ember); color: var(--ink); font-family: var(--display); box-shadow: 0 18px 40px rgba(5, 2, 12, .45); }
.nw-lead__stamp-d { font-weight: 900; font-stretch: 120%; font-size: clamp(2.6rem, 4vw, 3.8rem); line-height: .9; font-variant-numeric: tabular-nums; }
.nw-lead__stamp-m { font-weight: 700; font-size: .98rem; }
.nw-open__h { font-size: clamp(2.3rem, 3.6vw, 3.5rem); margin-bottom: .4em; }
.nw-open__h em { color: var(--gold); }
.nw-lead__slides { display: grid; }
.nw-lead__slide { grid-area: 1 / 1; visibility: hidden; }
.nw-lead__slide.is-on { visibility: visible; }
.nw-lead__t { font-size: clamp(1.45rem, 2vw, 1.95rem); line-height: 1.12; margin: 0 0 .45em; font-stretch: 108%; }
.nw-lead__t a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.nw-lead__t a:hover { background-size: 100% 2px; color: var(--gold); }
.nw-lead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 12px; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--glow); }
.nw-lead__topic { padding: 3px 10px; background: rgba(255, 194, 61, .14); border-left: 3px solid var(--gold); color: var(--gold); }
.nw-lead__sum { margin: 0 0 22px; font-size: 1.1rem; line-height: 1.55; color: #E6DCF5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.nw-open__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nw-lead__ctl { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 194, 61, .3); }
.nw-lead__ctl .arrow { color: var(--paper); flex: none; }
.nw-lead__count { margin: 0; flex: none; font-family: var(--display); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.nw-lead__count span { color: var(--gold); }
.nw-lead__timer { flex: 1; height: 3px; background: rgba(246, 240, 255, .16); }
.nw-lead__timer span { display: block; height: 100%; background: var(--flame); transform-origin: left; transform: scaleX(0); }
.no-js .nw-lead__ctl { display: none; }
@media (max-width: 900px) {
  .nw-open { padding-top: calc(var(--head-h) + 14px); }
  .nw-open__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nw-open__text { display: contents; }
  .nw-open .crumbs { order: 1; margin-bottom: 4px; }
  .nw-open__h { order: 2; font-size: clamp(2rem, 8vw, 2.6rem); margin-bottom: .45em; }
  .nw-lead__stage { order: 3; height: min(30svh, 300px); margin: 0 12px 26px 12px; }
  .nw-lead__slides { order: 4; }
  .nw-open__actions { order: 5; }
  .nw-lead__ctl { order: 6; }
  .nw-lead__stamp { top: 14px; padding: 8px 12px 10px; }
  .nw-lead__stamp-d { font-size: 2.2rem; }
  .nw-lead__shots { box-shadow: 12px 12px 0 var(--violet); }
  .nw-lead__sum { -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 16px; font-size: 1.04rem; }
  .nw-lead__t { font-size: 1.35rem; }
}
@media (max-width: 560px) { .nw-open__actions .btn { flex: 1 1 auto; } }

/* opener start state, so nothing flashes open then shut before the scripts arrive */
.js .nw-lead__shots { clip-path: inset(0% 50% 0% 50%); }
.js .nw-lead__frame { clip-path: inset(0 100% 100% 0); }
.js .nw-lead__stamp { opacity: 0; }
.rv-fail .nw-lead__shots, .rv-fail .nw-lead__frame { clip-path: none !important; }
.rv-fail .nw-lead__stamp { opacity: 1 !important; }

/* ================= news: story grid ================= */
.nw-stories { padding-block: clamp(64px, 7vw, 100px); }
.nw-stories h2 em, .nw-dates h2 em, .tk-list h2 em, .tk-like h2 em, .ps-rel h2 em { white-space: nowrap; }   /* the coloured phrase stays whole; balance breaks before it only when the heading needs two lines */
.nw-stories h2 em { color: var(--violet); }
.nw-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding-bottom: 14px; }
.nw-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; border: 2px solid rgba(20, 12, 34, .22); background: rgba(255, 255, 255, .7); cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
.nw-chip span { font-weight: 600; font-size: .85rem; color: var(--violet); font-variant-numeric: tabular-nums; transition: color .3s; }
.nw-chip:hover { border-color: var(--violet); }
.nw-chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--paper); }
.nw-chip[aria-pressed="true"] span { color: var(--gold); }
.nw-chips__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 60px; background: var(--ember); transform-origin: left; }
.no-js .nw-chips { display: none; }

.nw-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
.nw-card { position: relative; min-width: 0; }
.nw-card__link { display: grid; gap: 12px; height: 100%; text-decoration: none; color: var(--ink); }
.nw-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: clip; background: var(--night); }
.nw-card__pan { position: absolute; inset: -7% 0; display: block; }
.nw-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.nw-card__link:hover .nw-card__img, .nw-card__link:focus-visible .nw-card__img { transform: scale(1.07); }
.nw-card__media::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 194, 61, 0); transition: border-color .45s, inset .45s var(--ease); pointer-events: none; }
.nw-card__link:hover .nw-card__media::after { border-color: rgba(255, 194, 61, .85); inset: 16px; }
.nw-card__topic { position: absolute; left: 0; bottom: 0; z-index: 1; padding: 6px 12px; background: var(--night); color: var(--gold); font-family: var(--display); font-weight: 700; font-size: .85rem; }
.nw-card__body { display: grid; gap: 8px; align-content: start; }
.nw-card__t { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: clamp(1.15rem, 1.35vw, 1.32rem); line-height: 1.18; background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease), color .3s; text-wrap: balance; }
.nw-card__link:hover .nw-card__t { background-size: 100% 2px; color: var(--violet); }
.nw-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--muted-l); }
.nw-card.is-wide { grid-column: span 2; }
.nw-card.is-wide .nw-card__link { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.nw-card.is-wide .nw-card__media { aspect-ratio: 16 / 10.4; }
.nw-card.is-wide .nw-card__t { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.no-js .nw-card:nth-child(8n+1) { grid-column: span 2; }
.nw-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 40px; }
.nw-more__status { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--violet); font-variant-numeric: tabular-nums; }
.nw-more__line { flex: 1 1 200px; height: 3px; background: rgba(75, 31, 160, .16); }
.nw-more__line span { display: block; height: 100%; background: var(--ember); transform-origin: left; transform: scaleX(1); transition: transform .8s var(--ease); }
.nw-none { grid-column: 1 / -1; margin: 0; padding: 28px; background: #fff; font-family: var(--display); font-weight: 600; }
@media (max-width: 1100px) {
  .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-card.is-wide .nw-card__link { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nw-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .nw-card.is-wide, .no-js .nw-card:nth-child(8n+1) { grid-column: auto; }
  .nw-card.is-wide .nw-card__link { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nw-chip { min-height: 44px; padding: 6px 12px; font-size: .95rem; }
}

/* ================= tickets (shared by the news dates band, the tickets opener and the stubs) ================= */
.tk { --notch: 11px; --stubw: 200px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--stubw); filter: drop-shadow(0 22px 34px rgba(10, 4, 24, .38)); color: var(--paper); }
.tk__body, .tk__stub { position: relative; min-width: 0; }
.tk__paper { position: relative; height: 100%; }
.tk__body .tk__paper { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 20px 26px; background: var(--night); clip-path: polygon(0 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) var(--notch), 100% var(--notch), 100% calc(100% - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%); }
.tk__body .tk__paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255, 194, 61, .42) 0 1.2px, transparent 2px) 0 0 / 34px 26px; opacity: .45; }
.tk__stub .tk__paper { display: grid; align-content: center; justify-items: center; gap: 10px; padding: 18px 18px 18px 22px; background: var(--gold); color: var(--ink); clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch)), 0 var(--notch), var(--notch) var(--notch)); }
.tk__stub .tk__paper::before { content: ""; position: absolute; left: calc(var(--notch) - 1px); top: calc(var(--notch) + 6px); bottom: calc(var(--notch) + 6px); width: 0; border-left: 3px dotted rgba(20, 12, 34, .55); }
.tk--soon .tk__stub .tk__paper { background: var(--hall); }
.tk__day { margin: 0; display: grid; justify-items: start; font-family: var(--display); line-height: 1; padding-right: 22px; border-right: 1px solid rgba(255, 194, 61, .35); }
.tk__dow { font-weight: 600; font-size: .85rem; color: var(--glow); }
.tk__n { font-weight: 900; font-stretch: 120%; font-size: 3.2rem; line-height: .95; color: var(--gold); font-variant-numeric: tabular-nums; }
.tk__my { font-weight: 700; font-size: .95rem; }
.tk__what { min-width: 0; }
.tk__name { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(1.25rem, 1.8vw, 1.65rem); line-height: 1.08; }
.tk__where { margin: 0; font-size: 1.05rem; color: #E6DCF5; }
.tk__count { margin: 0; font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--gold); white-space: nowrap; }
.tk__count span { display: inline-block; padding: 5px 10px; border: 1px solid rgba(255, 194, 61, .55); }
.tk__admit { margin: 0; font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.tk__btn { min-height: 48px; padding: 12px 22px; }
.tk__soon { margin: 0; font-family: var(--display); font-weight: 700; font-size: .98rem; text-align: center; line-height: 1.25; }
/* a foil shimmer crosses each ticket now and then */
.tk__body .tk__paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 231, 176, .16) 50%, transparent 60%) no-repeat; background-size: 250% 100%; animation: foil 7s ease-in-out infinite; }
.tk:nth-child(2) .tk__body .tk__paper::after { animation-delay: -2.3s; }
.tk:nth-child(3) .tk__body .tk__paper::after { animation-delay: -4.6s; }
@keyframes foil { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@media (max-width: 700px) {
  .tk { --stubw: 130px; }
  .tk__body .tk__paper { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 16px 14px 16px 16px; }
  .tk__day { padding-right: 14px; }
  .tk__n { font-size: 2.4rem; }
  .tk__count { grid-column: 2; }
  .tk__stub .tk__paper { padding: 14px 10px 14px 18px; }
  .tk__btn { padding: 10px 14px; }
}

/* mini tickets: news page dates band */
.nw-dates { color: var(--paper); padding-block: clamp(64px, 7vw, 96px); }
.nw-dates h2 em { color: var(--gold); }
.nw-dates__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tk--mini { --stubw: 112px; }
.tk--mini .tk__body .tk__paper { grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; padding: 18px 18px; align-content: center; }
.tk--mini .tk__n { font-size: 2.5rem; }
.tk--mini .tk__day { padding-right: 16px; }
.tk--mini .tk__name { font-size: 1.15rem; }
.tk--mini .tk__where { font-size: .95rem; }
.tk--mini .tk__count { grid-column: 1 / -1; }
.tk--mini .tk__stub .tk__paper { padding: 12px 8px 12px 18px; }
.tk--mini .tk__btn { padding: 10px 12px; min-height: 44px; font-size: .95rem; }
.tk--mini .tk__soon { font-size: .88rem; }
.nw-dates__all { margin: 26px 0 0; }
.nw-dates__all .link-line, .nw-dates__none .link-line { color: var(--gold); }
@media (max-width: 1100px) { .nw-dates__row { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }

/* ================= post: cover with a reading line ================= */
.ps-line { position: fixed; left: 0; right: 0; top: 0; z-index: 130; height: 4px; pointer-events: none; background: rgba(20, 12, 34, .3); }
.ps-line span { display: block; height: 100%; background: var(--flame); transform-origin: left; transform: scaleX(0); }
.ps-open { position: relative; color: var(--paper); padding: calc(var(--head-h) + 18px) 0 clamp(36px, 4vw, 56px); overflow: clip; isolation: isolate; }
.ps-open::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 60% at 80% 85%, rgba(255, 90, 31, .2), transparent 70%), radial-gradient(40% 50% at 8% 20%, rgba(120, 60, 255, .22), transparent 70%); animation: sv-glow 9s ease-in-out infinite alternate; }
.ps-open .crumbs { margin-bottom: 8px; }
.ps-open .crumbs > span:last-child { display: inline-block; max-width: min(60ch, 70vw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.ps-cover { position: relative; height: clamp(260px, 42vh, 470px); margin: 0 14px 0 0; }
.ps-cover__frame { position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); pointer-events: none; z-index: 2; }
.ps-cover__clip { position: absolute; inset: 0; overflow: clip; background: var(--night-2); }
.ps-cover__pan { position: absolute; inset: -10% 0; display: block; }
.ps-cover__img { width: 100%; height: 100%; object-fit: cover; animation: push 18s ease-in-out infinite alternate; }
.ps-cover__clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 12, 34, .7), transparent 55%); }
.ps-card { position: relative; z-index: 3; width: min(980px, calc(100% - 40px)); margin: -140px 0 0 clamp(16px, 4vw, 56px); padding: clamp(22px, 2.6vw, 36px) clamp(22px, 3vw, 44px) clamp(20px, 2.4vw, 30px); background: var(--night-2); border-top: 4px solid var(--ember); box-shadow: 0 40px 90px rgba(5, 2, 12, .55); }
.ps-card__h { font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.04; margin: 0 0 .4em; }
.ps-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 18px; font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--glow); }
.ps-card__topic { padding: 4px 12px; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; transition: background-color .3s; }
a.ps-card__topic:hover { background: var(--paper); }
.ps-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ps-card__actions .btn { min-height: 48px; padding: 12px 22px; }
@media (max-width: 900px) {
  .ps-open { padding-top: calc(var(--head-h) + 8px); }
  .ps-cover { height: min(30svh, 260px); margin-right: 10px; }
  .ps-cover__frame { inset: 10px -10px -10px 10px; }
  .ps-card { width: auto; margin: -56px 0 0 0; padding: 20px 18px 20px; }
  .ps-card__h { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .ps-card__meta { font-size: .92rem; margin-bottom: 14px; gap: 6px 12px; }
  .ps-card__actions .btn { flex: 1 1 auto; }
}
.js .ps-cover__clip { clip-path: inset(0% 50% 0% 50%); }
.js .ps-cover__frame { clip-path: inset(0 100% 100% 0); }
.rv-fail .ps-cover__clip, .rv-fail .ps-cover__frame { clip-path: none !important; }

/* ---------- post body: long-form type beside a sticky aside ---------- */
.ps-body { padding-block: clamp(56px, 6vw, 90px); }
.ps-body__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: clamp(32px, 6vw, 110px); align-items: start; }
.ps-art { font-family: var(--body); font-size: clamp(1.13rem, 1.2vw, 1.24rem); line-height: 1.72; color: #22162F; max-width: 72ch; }
.ps-art > p { margin: 0 0 1.1em; }
.ps-art > p:first-child { font-size: 1.18em; line-height: 1.6; color: var(--ink); }
.ps-art > p:first-child::first-letter { float: left; font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: 3.6em; line-height: .82; margin: .06em .1em 0 0; color: var(--ember); }
.ps-art h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.1; margin: 1.6em 0 .55em; scroll-margin-top: calc(var(--head-h) + 30px); }
.ps-art h2:first-child { margin-top: 0; }
.ps-art ul { margin: 0 0 1.2em; display: grid; gap: .45em; }
.ps-art li { position: relative; padding-left: 1.6em; }
.ps-art li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .48em; height: .48em; background: var(--ember); transform: rotate(45deg); }
.ps-art a { color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ps-art a:hover { color: var(--ember); }
.ps-fig { position: relative; margin: 2em 22px 2.2em 0; aspect-ratio: var(--ar, 4 / 3); max-height: var(--media-cap); width: min(100%, calc(var(--media-cap) * var(--arw, 1.333))); background: var(--night); box-shadow: 22px 22px 0 var(--violet); }
.ps-fig__clip { position: absolute; inset: 0; overflow: clip; }
.ps-fig__pan { position: absolute; inset: -8% 0; display: block; }
.ps-fig__pan img { width: 100%; height: 100%; object-fit: cover; }
.ps-fig::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 194, 61, .7); pointer-events: none; animation: frame-breathe 5s ease-in-out infinite alternate; }
.ps-fig--poster { aspect-ratio: auto; background: transparent; width: min(100%, 460px); max-height: none; box-shadow: 16px 16px 0 var(--violet); }
.ps-fig--poster .ps-fig__clip { position: relative; }
.ps-fig--poster .ps-fig__pan { position: relative; inset: auto; }
.ps-fig--poster .ps-fig__pan img { height: auto; max-height: var(--media-cap); object-fit: contain; }
.ps-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin: 2em 22px 2.2em 0; }
.ps-pair .ps-fig { margin: 0; width: 100%; aspect-ratio: 4 / 3; box-shadow: 14px 14px 0 var(--violet); }
.ps-pair .ps-fig--poster { aspect-ratio: auto; }
.ps-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 2.4em; padding-top: 22px; border-top: 3px solid var(--ink); font-family: var(--display); }
.ps-end p { margin: 0; font-weight: 700; font-size: 1rem; }
.ps-end .link-line { color: var(--violet); }

.ps-aside { position: sticky; top: calc(var(--head-h) + 10px); display: grid; gap: 18px; font-family: var(--display); }
.ps-meter { background: var(--night); color: var(--paper); padding: 18px 20px 20px; border-top: 4px solid var(--gold); }
.ps-meter__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 10px; font-weight: 700; font-size: .95rem; }
.ps-meter__pc { font-weight: 900; font-stretch: 118%; font-size: 1.9rem; line-height: 1; background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.ps-meter__bar { height: 4px; background: rgba(246, 240, 255, .16); }
.ps-meter__bar span { display: block; height: 100%; background: var(--flame); transform-origin: left; transform: scaleX(0); }
.ps-toc { margin-top: 14px; display: grid; gap: 0; counter-reset: toc; }
.ps-toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 0 6px 14px; border-left: 2px solid rgba(246, 240, 255, .18); color: #E6DCF5; text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.25; transition: color .3s, border-color .3s, padding .3s var(--ease); }
.ps-toc a:hover { color: var(--gold); }
.ps-toc a.is-on { color: var(--gold); border-left-color: var(--gold); padding-left: 20px; }
.ps-book { position: relative; background: #fff; color: var(--ink); border-top: 4px solid var(--ember); overflow: clip; }
.ps-book__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: clip; background: var(--night); }
.ps-book__media img { width: 100%; height: 100%; object-fit: cover; animation: push 14s ease-in-out infinite alternate; }
.ps-book__in { padding: 16px 20px 20px; display: grid; gap: 10px; }
.ps-book__t { margin: 0; font-weight: 800; font-stretch: 108%; font-size: 1.25rem; line-height: 1.12; }
.ps-book__l { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.45; color: var(--muted-l); }
.ps-book .btn { justify-self: start; }
.ps-book .tk { margin-top: 2px; }
.ps-book--tk .tk--mini { --stubw: 96px; }
@media (max-width: 1000px) {
  .ps-body__in { grid-template-columns: minmax(0, 1fr); }
  .ps-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ps-toc { display: none; }
}
@media (max-width: 640px) {
  .ps-aside { grid-template-columns: minmax(0, 1fr); }
  .ps-fig, .ps-pair { margin-right: 12px; }
  .ps-fig { box-shadow: 12px 12px 0 var(--violet); }
  .ps-pair { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ps-art > p:first-child::first-letter { font-size: 3.1em; }
}

/* ---------- related ---------- */
.ps-rel { padding-block: clamp(64px, 7vw, 96px); }
.ps-rel .nw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-rel h2 em { color: var(--violet); }
@media (max-width: 1100px) { .ps-rel .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ps-rel .nw-card:nth-child(3) { display: none; } }
@media (max-width: 640px) { .ps-rel .nw-grid { grid-template-columns: minmax(0, 1fr); } .ps-rel .nw-card:nth-child(3) { display: block; } }

/* ---------- post not found ---------- */
.ps-missing { position: relative; color: var(--paper); padding: calc(var(--head-h) + 50px) 0 clamp(50px, 6vw, 80px); overflow: clip; isolation: isolate; }
.ps-missing__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ps-missing__h { font-size: clamp(2.3rem, 4.4vw, 4rem); }
.ps-missing__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ps-missing__photo { position: relative; aspect-ratio: 4 / 3; max-height: var(--media-cap); overflow: clip; outline: 1px solid rgba(255, 194, 61, .6); outline-offset: 10px; margin: 12px; }
.ps-missing__photo img { width: 100%; height: 100%; object-fit: cover; animation: push 15s ease-in-out infinite alternate; }
@media (max-width: 900px) { .ps-missing__in { grid-template-columns: minmax(0, 1fr); } }

/* ================= tickets page ================= */
.tk-open { position: relative; color: var(--paper); padding: calc(var(--head-h) + 26px) 0 clamp(44px, 5vw, 70px); overflow: clip; isolation: isolate; }
.tk-open::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 70% 70%, rgba(255, 90, 31, .2), transparent 70%), radial-gradient(40% 50% at 10% 15%, rgba(120, 60, 255, .25), transparent 70%); animation: sv-glow 8s ease-in-out infinite alternate; }
.tk-open__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 72px); align-items: end; margin-bottom: clamp(26px, 3.4vw, 44px); }
.tk-open__h { font-size: clamp(2.4rem, 4.2vw, 4.1rem); margin: 0; }
.tk-open__h em { color: var(--gold); display: block; }
.tk-open__lede { margin: 0; font-size: clamp(1.08rem, 1.3vw, 1.25rem); color: #EDE4FA; }
.tk-open__stage { perspective: 1400px; }
.tk--big { --notch: 16px; --stubw: clamp(220px, 21vw, 290px); transform-style: preserve-3d; will-change: transform; }
.tk--big .tk__body .tk__paper { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0; padding: 0; background: var(--night-2); min-height: clamp(280px, 34vh, 340px); }
.tk-big__photo { position: relative; height: 100%; overflow: clip; }
.tk-big__photo img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; animation: push 16s ease-in-out infinite alternate; }
.tk-big__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--night-2)); }
.tk-big__main { position: relative; padding: clamp(20px, 2.4vw, 34px) clamp(22px, 2.6vw, 40px); display: grid; align-content: center; gap: 8px; }
.tk-big__label { margin: 0; font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.tk-big__name { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 116%; font-size: clamp(2rem, 3.3vw, 3.2rem); line-height: 1; }
.tk-big__when { margin: 0; font-size: 1.15rem; color: #E6DCF5; }
.tk-big__when strong { font-family: var(--display); font-weight: 700; color: var(--paper); }
.cd { display: flex; align-items: flex-end; gap: clamp(10px, 1.4vw, 20px); margin: 10px 0 0; }
.cd__u { display: grid; justify-items: start; gap: 2px; }
.cd__n { display: block; min-width: 2ch; font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: .92; background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; overflow: clip; }
.cd__l { font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--muted-d); }
.cd__sep { align-self: center; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); margin-bottom: 26px; animation: tick 1s steps(2) infinite; }
@keyframes tick { 50% { opacity: .2; } }
.cd__sec { height: 3px; margin-top: 12px; max-width: 420px; background: rgba(246, 240, 255, .14); }
.cd__sec span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.tk--big .tk__stub .tk__paper { gap: 14px; padding: 24px 22px 24px 30px; }
.tk--big .tk__admit { font-size: .85rem; }
.tk-big__stubday { margin: 0; font-family: var(--display); text-align: center; line-height: 1; }
.tk-big__stubday b { display: block; font-weight: 900; font-stretch: 120%; font-size: 3.4rem; }
.tk-big__stubday span { font-weight: 700; font-size: 1rem; }
.tk--big .tk__btn { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }
.tk-big__glare { position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(40% 70% at var(--gx, 30%) var(--gy, 20%), rgba(255, 231, 176, .18), transparent 70%); opacity: 0; transition: opacity .4s; }
.tk--big:hover .tk-big__glare { opacity: 1; }
.tk-open__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 26px 0 0; font-family: var(--display); font-weight: 600; }
.tk-open__more a { color: var(--gold); }
@media (max-width: 1000px) {
  .tk-open__head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 10px; }
  .tk--big .tk__body .tk__paper { grid-template-columns: minmax(0, 1fr); }
  .tk-big__photo { position: absolute; inset: 0; opacity: .32; }
  .tk-big__photo::after { background: linear-gradient(0deg, var(--night-2) 10%, rgba(33, 18, 58, .4)); }
}
@media (max-width: 700px) {
  .tk-open { padding-top: calc(var(--head-h) + 10px); }
  .tk-open__h { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .tk-open__lede { font-size: 1.02rem; }
  .tk--big { --stubw: 100%; grid-template-columns: minmax(0, 1fr); }
  .tk--big .tk__body .tk__paper { min-height: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch))); }
  .tk--big .tk__stub .tk__paper { grid-template-columns: auto auto; justify-content: space-between; align-items: center; padding: 16px 18px; clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) var(--notch), 100% var(--notch), 100% 100%, 0 100%, 0 var(--notch), var(--notch) var(--notch)); }
  .tk--big .tk__stub .tk__paper::before { left: calc(var(--notch) + 6px); right: calc(var(--notch) + 6px); top: -1px; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 3px dotted rgba(20, 12, 34, .55); }
  .tk-big__main { padding: 18px 18px 20px; gap: 6px; }
  .tk-big__name { font-size: 1.9rem; }
  .tk-big__when { font-size: 1rem; }
  .cd__n { font-size: 2.6rem; }
  .cd__sep { margin-bottom: 22px; }
  .tk-big__stubday, .tk--big .tk__admit { display: none; }
  .tk--big .tk__stub .tk__paper > :last-child { grid-column: 1 / -1; justify-self: stretch; }
}
.js .tk--big .tk__body { clip-path: inset(0 100% 0 0); }
.js .tk--big .tk__stub { opacity: 0; }
.rv-fail .tk--big .tk__body { clip-path: none !important; }
.rv-fail .tk--big .tk__stub { opacity: 1 !important; transform: none !important; }

/* ---------- ticket stubs ---------- */
.tk-list { padding-block: clamp(64px, 7vw, 100px); }
.tk-list h2 em { color: var(--violet); }
.tk-rows { display: grid; gap: 22px; }
.tk--row .tk__body .tk__paper { padding: 22px 30px; }
.tk--row { --stubw: clamp(170px, 17vw, 230px); }
.tk--row:nth-child(even) .tk__body .tk__paper { background: var(--night-2); }
.tk-list__note { margin: 26px 0 0; font-size: 1.05rem; color: var(--muted-l); }
.tk-list__note a { color: var(--violet); font-family: var(--display); font-weight: 700; }
@media (min-width: 701px) { .tk--row .tk__body .tk__paper { grid-template-columns: 150px minmax(0, 1fr) auto; } }

/* ---------- what a public ceilidh is like ---------- */
.tk-like { color: var(--paper); padding-block: clamp(64px, 7vw, 100px); }
.tk-like h2 em { color: var(--gold); }
.tk-strip { display: grid; grid-template-columns: 1.15fr .9fr 1.25fr .9fr 1.05fr; gap: 16px; align-items: start; margin: 0 0 clamp(34px, 4vw, 54px); }
.tk-shot { position: relative; margin: 0; overflow: clip; background: var(--night); }
.tk-shot:nth-child(1) { aspect-ratio: 4 / 5; margin-top: 40px; }
.tk-shot:nth-child(2) { aspect-ratio: 3 / 4; }
.tk-shot:nth-child(3) { aspect-ratio: 4 / 4.4; margin-top: 70px; }
.tk-shot:nth-child(4) { aspect-ratio: 3 / 4; margin-top: 18px; }
.tk-shot:nth-child(5) { aspect-ratio: 4 / 5; margin-top: 52px; }
.tk-shot { max-height: min(46vh, 420px); }
.tk-shot__pan { position: absolute; inset: -12% 0; display: block; }
.tk-shot__pan img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tk-shot:hover img { transform: scale(1.06); }
.tk-shot::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 194, 61, .55); pointer-events: none; }
.tk-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.tk-facts li { position: relative; padding-top: 18px; }
.tk-facts li::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold) 0 34%, rgba(246, 240, 255, .2) 34%); }
.tk-facts h3 { font-size: 1.35rem; margin-bottom: .35em; }
.tk-facts p { margin: 0; font-size: 1.06rem; color: #E6DCF5; }
@media (max-width: 900px) {
  .tk-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .tk-shot:nth-child(1) { grid-column: span 3; margin-top: 0; }
  .tk-shot:nth-child(2) { grid-column: span 3; margin-top: 30px; }
  .tk-shot:nth-child(3) { grid-column: span 2; margin-top: 0; }
  .tk-shot:nth-child(4) { grid-column: span 2; margin-top: 22px; }
  .tk-shot:nth-child(5) { grid-column: span 2; margin-top: 8px; }
  .tk-shot:nth-child(n+3) { aspect-ratio: 3 / 4; }
  .tk-facts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .nw-open::after, .ps-open::after, .tk-open::after, .nw-lead__img, .ps-cover__img, .ps-fig::after, .ps-book__media img, .tk-big__photo img, .tk__body .tk__paper::after, .cd__sep, .ps-missing__photo img { animation: none !important; }
  .js .nw-lead__shots, .js .nw-lead__frame, .js .ps-cover__clip, .js .ps-cover__frame, .js .tk--big .tk__body { clip-path: none; }
  .js .nw-lead__stamp, .js .tk--big .tk__stub { opacity: 1; }
}

/* ---------- refinements after looking ---------- */
.nw-card__sum { display: none; }
.nw-card.is-wide .nw-card__sum, .no-js .nw-card:nth-child(8n+1) .nw-card__sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; font-family: var(--body); font-size: 1.06rem; line-height: 1.5; color: var(--muted-l); }
/* posters and adverts sit whole on a night panel instead of being cropped */
.nw-card--poster .nw-card__media { background: var(--night) radial-gradient(circle, rgba(255, 194, 61, .35) 0 1.2px, transparent 2px) 0 0 / 26px 22px; }
.nw-card--poster .nw-card__img { object-fit: contain; padding: 14px 0; }
.nw-lead__shot--poster .nw-lead__img, .ps-cover--poster .ps-cover__img { object-fit: contain; }
.nw-lead__shot--poster .nw-lead__pan, .ps-cover--poster .ps-cover__pan { inset: 4% 0; }
.nw-lead__blur, .ps-cover__blur { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.2); }
.tk--mini .tk__admit { display: none; }
.tk--mini { --stubw: 118px; }
.ps-meter__bar { display: block; }
.ps-body__in { grid-template-columns: minmax(0, 46rem) minmax(260px, 330px); justify-content: space-between; }
.ps-art { max-width: none; }
.ps-art > .ps-sub { margin: 1.4em 0 .3em; font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: 1.12em; line-height: 1.2; color: var(--violet); }
.ps-open .crumbs { display: flex; align-items: center; gap: .35em; white-space: nowrap; }
.ps-open .crumbs > span:last-child { min-width: 0; max-width: none; flex: 0 1 auto; }
.ps-cover__img { object-position: 50% 62%; }
@media (max-width: 1000px) { .ps-body__in { grid-template-columns: minmax(0, 1fr); } }
.ps-art > .ps-fact { margin: 0; padding: .55em 0 .55em .2em; border-bottom: 1px solid rgba(75, 31, 160, .18); font-family: var(--display); font-weight: 600; font-size: .95em; }
.ps-art > p:not(.ps-fact) + .ps-fact { border-top: 3px solid var(--ember); margin-top: .4em; }
.ps-art > .ps-fact + p:not(.ps-fact) { margin-top: 1.1em; }
/* ambient life after looking: the sett drifts, the strip photos breathe, the foil passes more often */
.tk-list.tx-sett, .nw-stories.tx-sett, .ps-rel.tx-sett { animation: sett-drift 60s linear infinite; }
@keyframes sett-drift { to { background-position: 144px 72px; } }
.tk-shot__pan img { animation: push 14s ease-in-out infinite alternate; }
.tk-shot:nth-child(even) .tk-shot__pan img { animation-direction: alternate-reverse; animation-duration: 11s; }
.tk__body .tk__paper::after { animation-duration: 4.6s; }
@keyframes foil { 0%, 30% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .tk-list.tx-sett, .nw-stories.tx-sett, .ps-rel.tx-sett, .tk-shot__pan img { animation: none; } }
.ps-toc a { min-height: 40px; font-size: .9rem; }
@media (max-height: 820px) { .ps-book__media { display: none; } }
/* the aside's ticket stands upright: the stub tears off along the bottom */
.ps-book .tk--mini { --stubw: 100%; grid-template-columns: minmax(0, 1fr); }
.ps-book .tk--mini .tk__body .tk__paper { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch))); }
.ps-book .tk--mini .tk__stub .tk__paper { grid-template-columns: auto auto; justify-content: space-between; align-items: center; padding: 12px 16px; clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) var(--notch), 100% var(--notch), 100% 100%, 0 100%, 0 var(--notch), var(--notch) var(--notch)); }
.ps-book .tk--mini .tk__stub .tk__paper::before { left: calc(var(--notch) + 6px); right: calc(var(--notch) + 6px); top: -1px; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 3px dotted rgba(20, 12, 34, .55); }
.ps-book .tk--mini .tk__admit { display: block; }
.ps-book .tk--mini .tk__btn { padding: 10px 20px; }
.tk-list, .ps-body, .nw-dates, .tk-like { overflow-x: clip; }
/* phones: row tickets stand upright, the stub tears off along the bottom */
@media (max-width: 700px) {
  .tk--row { --stubw: 100%; grid-template-columns: minmax(0, 1fr); }
  .tk--row .tk__body .tk__paper { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch))); padding: 18px 18px 16px; }
  .tk--row .tk__stub .tk__paper { grid-template-columns: auto auto; justify-content: space-between; align-items: center; padding: 12px 16px; clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) var(--notch), 100% var(--notch), 100% 100%, 0 100%, 0 var(--notch), var(--notch) var(--notch)); }
  .tk--row .tk__stub .tk__paper::before { left: calc(var(--notch) + 6px); right: calc(var(--notch) + 6px); top: -1px; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 3px dotted rgba(20, 12, 34, .55); }
  .tk-rows { gap: 18px; }
}

/* ---------- QA fixes (2026-10-20) ---------- */
.nw-card__link { grid-template-columns: minmax(0, 1fr); }
.nw-card__body, .nw-card__sum, .nw-card__t { min-width: 0; }
.ps-fig { --fcap: calc(var(--media-cap) * .84); max-height: var(--fcap); width: min(100%, calc(var(--fcap) * var(--arw, 1.333))); }
.ps-fig--poster .ps-fig__pan img { max-height: var(--fcap); }
.ps-body { scroll-margin-top: calc(var(--head-h) + 20px); }
.ps-art h2 { scroll-margin-top: calc(var(--head-h) + 30px); }
.ps-card__topic { display: inline-flex; align-items: center; min-height: 44px; }
.ps-toc { max-height: none; min-height: 0; overflow: visible; }
.ps-toc a.is-far { display: none; }
.ps-toc__n { margin: 10px 0 0; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--muted-d); }
.no-js .ps-toc__n { display: none; }
@media (min-width: 1001px) and (max-height: 1000px) { .ps-aside:has(.ps-toc) .ps-book__media { display: none; } }
/* the meter's top edge carries a slow travelling glint, so the reading column is never quite still */
.ps-meter { position: relative; overflow: clip; }
.ps-meter::before { content: ""; position: absolute; left: 0; top: 0; width: 34%; height: 3px; background: linear-gradient(90deg, transparent, #FFF3C4, transparent); animation: meter-glint 4.2s ease-in-out infinite; pointer-events: none; }
@keyframes meter-glint { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .ps-meter::before { animation: none; display: none; } }

/* the end note's rule is a drawn line (it grows in when the note enters) */
.ps-end { border-top: 0; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 3px no-repeat; }
