/* ProArts: the concert's cities as tickets, the sponsors and the sponsor spotlight.
   One file for the website and for the admin's live preview (assets/js/pa-render.js draws both), so what the admin shows
   is what visitors see. Everything here stands on black: in the admin the preview sits in a black box (.on-black). */

/* ======================================================================
   THE CITIES, AS TICKETS: one piece of colour with a bite out of the top and bottom edge where the stub tears off.
   On sale: orange, and the whole ticket is the link. Sold out, not on sale yet, cancelled, past: dark, and not a link.
   ====================================================================== */
.tks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tks[data-count="1"] { grid-template-columns: minmax(0, 420px); }
.tks[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tks[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tks[data-count="5"], .tks[data-count="6"], .tks[data-count="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-item { display: flex; flex-direction: column; min-width: 0; }
.tk { --c: var(--orange, #ff7f30); position: relative; isolation: isolate; flex: 1; display: flex; border-radius: 17px; color: #000; text-decoration: none; transition: transform .32s cubic-bezier(.2, .8, .25, 1); }
.tk-in { --stub: 78px; --bite: 10px; position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); min-height: 164px; border-radius: 16px; background: var(--c);
  -webkit-mask-image: radial-gradient(circle var(--bite) at calc(100% - var(--stub)) 0, transparent 96%, #000 100%), radial-gradient(circle var(--bite) at calc(100% - var(--stub)) 100%, transparent 96%, #000 100%); -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle var(--bite) at calc(100% - var(--stub)) 0, transparent 96%, #000 100%), radial-gradient(circle var(--bite) at calc(100% - var(--stub)) 100%, transparent 96%, #000 100%); mask-composite: intersect; }
.tk-in::after { content: ""; position: absolute; top: 17px; bottom: 17px; left: calc(100% - var(--stub) - 1px); border-left: 2px dashed rgba(0, 0, 0, .34); }
.tk-body { display: flex; flex-direction: column; min-width: 0; padding: 18px 10px 16px 20px; }
.tk-date { font-size: 14px; font-weight: 750; }
.tk-city { margin-top: 7px; font-size: clamp(24px, 2.25vw, 30px); font-weight: 800; line-height: 1; letter-spacing: -.028em; overflow-wrap: anywhere; }
.tk-venue { margin-top: 7px; font-size: 15px; font-weight: 650; line-height: 1.25; }
.tk-show { margin-top: 4px; font-size: 13.5px; font-weight: 750; }
.tk-few { align-self: flex-start; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: #000; color: var(--c); font-size: 12.5px; font-weight: 700; }
.tk-times { margin-top: auto; padding-top: 12px; font-size: 13px; line-height: 1.4; }
.tk-times span { display: block; }
.tk-times span[hidden] { display: none; }   /* times set but not shown yet: they appear 13 weeks before the day */
.tk-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 4px; }
.tk-disc { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #000; color: var(--c); transition: transform .28s cubic-bezier(.3, .8, .2, 1); }
.tk-disc .ic { width: 21px; height: 21px; }
.tk-go { max-width: 4.6em; font-size: 13.5px; font-weight: 750; line-height: 1.15; text-align: center; }
.tk.is-out, .tk.is-soon, .tk.is-cancelled, .tk.is-past { --c: #2a2a2a; color: #dcdcdc; }
.tk.is-soon { --c: #fff; color: #000; }
.tk.is-out .tk-in::after, .tk.is-cancelled .tk-in::after, .tk.is-past .tk-in::after { border-left-color: rgba(255, 255, 255, .22); }
.tk.is-out .tk-date, .tk.is-out .tk-times, .tk.is-past .tk-date, .tk.is-past .tk-times, .tk.is-cancelled .tk-date, .tk.is-cancelled .tk-times { color: #b0b0b0; }
.tk.is-cancelled .tk-city { text-decoration: line-through; text-decoration-thickness: 2px; }
/* the ring goes around the whole ticket (the bites are cut out of the layer inside, so the ring stays whole) */
a.tk:focus-visible { outline: 3px solid #fff; outline-offset: 4px; box-shadow: none; border-radius: 17px; }
@media (hover: hover) and (pointer: fine) {
  a.tk:hover { transform: translateY(-9px) rotate(-1deg); }
  .tk-item:nth-child(odd) a.tk:hover { transform: translateY(-9px) rotate(.8deg); }
  a.tk:hover .tk-disc { transform: scale(1.1); }
}
/* the concert's own page: calendar, map and the seller under each ticket */
.tk-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 10px 2px 0; font-size: 13.5px; color: #a3a3a3; }
.tk-more a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; color: #e6e6e6; text-decoration: underline; text-decoration-color: #5a5a5a; text-underline-offset: 4px; }
.tk-more .ic { color: var(--orange, #ff7f30); }
.tks-empty { padding: 18px 20px; border: 1.5px dashed #444; border-radius: 14px; color: #cfcfcf; }
@media (hover: hover) and (pointer: fine) { .tk-more a:hover { color: var(--orange, #ff7f30); } }
@media (min-width: 901px) and (max-width: 1140px) {
  .tk-in { --stub: 60px; }
  .tk-body { padding: 15px 6px 14px 16px; }
  .tk-go { font-size: 12.5px; }
  .tk-disc { width: 40px; height: 40px; }
}
@media (max-width: 900px) {
  .tks, .tks[data-count] { grid-template-columns: 1fr; gap: 12px; }
  .tk-in { --stub: 78px; --bite: 8px; min-height: 96px; }
  .tk-body { padding: 13px 10px 13px 18px; justify-content: center; }
  .tk-city { margin-top: 3px; font-size: 25px; }
  .tk-venue { margin-top: 4px; }
  .tk-times { margin-top: 6px; padding-top: 0; }
  .tks:not(.tks-full) .tk-times { display: none; }
  .tk-disc { width: 42px; height: 42px; }
  .tk-go { font-size: 13px; }
  .tk-more { margin-bottom: 6px; }
}

/* ======================================================================
   OUR SPONSORS (on the page of the concert they support): each logo on its own white tile
   ====================================================================== */
.sponsors-sec { padding-bottom: clamp(36px, 4vw, 56px); }
.sp-levels { display: grid; gap: 30px; }
.sp-level h3 { margin: 0 0 12px; font-size: 14px; font-weight: 650; color: var(--mute, #a3a3a3); }
.sp-logos { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sp-main .sp-logos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.sp-support .sp-logos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.sp-item { min-width: 0; }
.sp-tile { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 12% 14%; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1.5px var(--rule, transparent); text-decoration: none; transition: transform .2s; }
.sp-support .sp-tile { aspect-ratio: 3 / 2; padding: 14% 16%; }
.sp-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sp-name { margin: 8px 2px 0; font-size: 14px; font-weight: 600; color: var(--soft, #cfcfcf); }
@media (hover: hover) and (pointer: fine) { a.sp-tile:hover { transform: translateY(-3px); } }

/* ======================================================================
   SPONSOR SPOTLIGHT (the concerts page): sponsors take turns, the last slide invites new ones
   ====================================================================== */
.spot { container: spot / inline-size; }
.spot-track { display: grid; overflow: hidden; border-radius: 20px; }
.spot-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-width: 0; overflow: hidden; border-radius: 20px; background: #131313; color: #fff;
  opacity: 0; visibility: hidden; transform: translateX(28px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .6s; }
.spot-slide.is-left { transform: translateX(-28px); }
.spot-slide.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 1; }
.spot:not(.js) .spot-slide:first-child { opacity: 1; visibility: visible; transform: none; }
.spot-media { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 16 / 9; align-self: stretch; background: #fff; }
.spot-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-logo { display: grid; place-items: center; width: 64%; height: 64%; }
.spot-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.spot-copy { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(24px, 3.2vw, 44px); }
.spot-for { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 600; color: #cfcfcf; }
.spot-for .ic { color: var(--orange, #ff7f30); }
.spot-for a { color: #fff; }
.spot-name { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.06; letter-spacing: -.028em; overflow-wrap: anywhere; }
.spot-msg { margin: 0; max-width: 40ch; font-size: 16.5px; color: #d6d6d6; }
.spot-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 10px; }
.spot-house { grid-template-columns: minmax(0, 1fr); }
.spot-house .spot-copy { max-width: 760px; }
.spot-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.spot-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.spot-dot { position: relative; width: 46px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.spot-dot span { position: absolute; left: 0; right: 0; top: 12px; height: 4px; overflow: hidden; border-radius: 2px; background: #3d3d3d; }
.spot-dot span::after { content: ""; position: absolute; inset: 0; background: var(--orange, #ff7f30); transform: scaleX(0); transform-origin: left center; }
.spot-dot[aria-current="true"] span::after { transform: scaleX(1); }
.spot.playing .spot-dot[aria-current="true"] span::after { animation: spot-fill var(--spot-ms, 7000ms) linear both; }
.spot.held .spot-dot[aria-current="true"] span::after { animation-play-state: paused; }
@keyframes spot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.spot-ctrl { display: flex; gap: 8px; }
.spot-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid #4a4a4a; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.spot-btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .spot-btn:hover { border-color: #fff; background: #fff; color: #000; } }
@container spot (max-width: 760px) {
  .spot-slide { grid-template-columns: minmax(0, 1fr); }
  .spot-media { width: 100%; align-self: start; }
  .spot-copy { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .spot-slide, .tk, .tk-disc { transition: none; transform: none !important; } }

/* ======================================================================
   IN THE ADMIN: the preview stands on black, like the website
   ====================================================================== */
.on-black { padding: 16px; border-radius: 16px; background: #000; color: #fff; color-scheme: dark; }
.on-black .tks, .on-black .tks[data-count] { grid-template-columns: 1fr; gap: 12px; }
.on-black .tk-in { --stub: 78px; --bite: 8px; min-height: 96px; }
.on-black .tk-body { padding: 13px 10px 13px 18px; }
.on-black .tk-city { margin-top: 3px; font-size: 24px; }
.on-black .tk-times { margin-top: 6px; padding-top: 0; }

/* ======================================================================
   PROARTS HUB: "Who we are" and "With thanks" (assets/js/pa-render.js draws them for the page and for the admin preview)
   The greys and lines come from the section's own colours (white on the page; .on-white in the admin).
   ====================================================================== */
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); margin: 0; border-top: 1px solid var(--rule); }
.kv div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.kv dt { font-size: 14.5px; color: var(--mute); }
.kv dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.thanks-group + .thanks-group { margin-top: clamp(28px, 3.4vw, 40px); }
.thanks-group h3 { margin-bottom: 12px; font-size: 15px; font-weight: 650; color: var(--mute); }
.namegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.namegrid li { min-width: 0; }
.namegrid li > * { display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 84px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--ring); border-radius: 14px; color: inherit; text-decoration: none; }
.namegrid b { font-size: 17px; font-weight: 700; line-height: 1.25; }
.namegrid b, .namegrid small { overflow-wrap: anywhere; }
.namegrid small { font-size: 13.5px; color: var(--mute); }
/* a funder's or partner's logo stands above its name, never larger than the others */
.namegrid .ng-logo { width: auto; max-width: min(100%, 170px); height: 40px; margin-bottom: 8px; object-fit: contain; object-position: left center; }
.credit-line { margin-top: 16px; max-width: 46em; font-size: 14.5px; color: var(--mute); }
@media (hover: hover) and (pointer: fine) { .namegrid a:hover { border-color: var(--orange-text); } }
@media (max-width: 900px) { .kv { grid-template-columns: 1fr; } .namegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kv div { grid-template-columns: 1fr; gap: 2px; } }

/* a line the team still has to confirm (the test site only: the real site leaves the fact out, and tools/publish.py
   refuses to go live with a note that is written into a page by hand) */
.todo { display: inline-block; padding: 2px 8px; border: 1px dashed #c9a227; border-radius: 6px; background: #2a2410; color: #f3dc8a; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.pair-orange .todo, .light .todo, .on-white .todo { background: #fff3c4; border-color: #7a5b00; color: #4a3600; }

/* the admin's preview of a white section: the same greys and lines as the page's white sections, in a narrow column */
.on-white { --soft: #333; --mute: #666; --rule: #e2e2e2; --ring: #cfcfcf; --orange-text: var(--orange-deep); padding: 4px 18px 18px; border: 1.5px solid var(--line, #e6e6e6); border-radius: 16px; background: #fff; color: #000; }
.on-white .kv { grid-template-columns: 1fr; border-top: 0; }
.on-white .kv div { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
.on-white .kv dt { font-size: 13px; }
.on-white .kv dd { font-size: 15px; }
.on-white .thanks { padding-top: 14px; }
.on-white .namegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.on-white .namegrid li > * { min-height: 70px; padding: 12px 14px; }
.on-white .namegrid b { font-size: 15px; }
.on-white .namegrid small { font-size: 12.5px; }
.on-white .credit-line { font-size: 13.5px; }
.on-white a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange-text); text-underline-offset: 3px; }
.on-white .namegrid a { text-decoration: none; }

/* ProArts Hub, "What we do": the programs (Admin, ProArts Hub, Programs). The page and the admin's preview share these. */
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.program { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(22px, 2.6vw, 30px); border-radius: 18px; background: var(--raise); }
.program-ic { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--ring); border-radius: 50%; color: var(--orange-text); }
.program h3 { font-size: 20px; font-weight: 750; line-height: 1.2; letter-spacing: -.014em; }
.program p { font-size: 15.5px; color: var(--soft); }
.program .more-link { margin-top: auto; }
.program p + .more-link { margin-top: 0; }
@media (max-width: 900px) { .programs { grid-template-columns: 1fr; } }
