/*
 * Concert page (1.10.45 redesign, docs/requirements/CONCERT-PAGE-REDESIGN.md: CPR-L*, G*, B*, S*, V*, M*).
 *
 * Loaded after tto-align.css. Everything is scoped to main.tto-cp, so the older single-concert rules
 * (tto-single-concert / tto-single-refine / tto-single-readability / tto-align) still style the Events booking
 * form inside the panel, but no longer place anything on the page: this file owns the layout.
 *
 * Phones (DOM order): gallery, title, booking panel, About, Important notes, venue, FAQ, Booking & Rescheduling.
 * Desktop (900px+): gallery / About / notes on the left; title and the narrow sticky panel on the right.
 */

body.single-to_concert main.tto-cp{
	--cp-burgundy:#780b2b;--cp-gold:#8c6d3a;--cp-ink:#202c3e;--cp-muted:#5f5b55;--cp-line:#e2d9cb;--cp-field:#d6cab4;
	--cp-cream:#fcfaf6;--cp-paper:#fffdf8;--cp-serif:Georgia,'Times New Roman',serif;--cp-thumb:52px;--cp-gap:6px;
	display:block;width:auto;max-width:none;margin:0;padding:0;color:var(--cp-ink);background:transparent;
	font:15px/1.6 Arial,Helvetica,sans-serif
}
body.single-to_concert main.tto-cp *,body.single-to_concert main.tto-cp *::before,body.single-to_concert main.tto-cp *::after{box-sizing:border-box}
body.single-to_concert .tto-cp__wrap{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:16px 0 40px}

/* ---- Grid (phones: one column in DOM order) ---- */
body.single-to_concert .tto-cp__top{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"gallery" "side" "about" "notes";row-gap:0;align-items:start}
body.single-to_concert .tto-cp__side{grid-area:side;min-width:0}
body.single-to_concert .tto-cp__gallery{grid-area:gallery;min-width:0;margin:0 0 14px}
body.single-to_concert .tto-cp__title{min-width:0;margin:0 0 12px;padding:0}
body.single-to_concert .tto-cp .tto-cp__booking{order:0;position:static;top:auto;width:auto;max-width:none;min-width:0;margin:0 0 24px;align-self:start}
body.single-to_concert .tto-cp__about{grid-area:about;min-width:0}
body.single-to_concert .tto-cp__notes{grid-area:notes;min-width:0}

/* ---- Type ---- */
body.single-to_concert .tto-cp h1,body.single-to_concert .tto-cp h2,body.single-to_concert .tto-cp h3{font-family:var(--cp-serif);font-weight:400;letter-spacing:-.2px;text-transform:none}
body.single-to_concert .tto-cp .tto-cp__title h1{margin:0;color:var(--cp-burgundy);font-size:26px;line-height:1.18}
body.single-to_concert .tto-cp__title .tto-single__badges{margin:6px 0 0}
body.single-to_concert .tto-cp :is(.tto-cp__about,.tto-cp__notes,.tto-cp__venue,.tto-cp__faq,.tto-cp__policy)>h2{margin:0 0 8px;color:var(--cp-burgundy);font-size:20px;line-height:1.25}
body.single-to_concert .tto-cp h3{margin:0 0 4px;color:var(--cp-ink);font-size:17px;line-height:1.3}
body.single-to_concert .tto-cp__text{max-width:68ch;font-size:15px;line-height:1.65}
body.single-to_concert .tto-cp__text>:first-child{margin-top:0}
body.single-to_concert .tto-cp__text>:last-child{margin-bottom:0}
body.single-to_concert .tto-cp__text :is(p,ul,ol){margin:0 0 .7em}
body.single-to_concert .tto-cp__text :is(ul,ol){padding-left:1.2em}
body.single-to_concert .tto-cp__text li{margin:0 0 .25em}
body.single-to_concert .tto-cp a.tto-cp__link,body.single-to_concert .tto-cp__text a{color:var(--cp-burgundy);text-decoration:underline;text-underline-offset:2px}
body.single-to_concert .tto-cp a.tto-cp__link:hover,body.single-to_concert .tto-cp__text a:hover{color:var(--cp-gold)}
body.single-to_concert .tto-cp a:focus-visible,body.single-to_concert .tto-cp button:focus-visible{outline:2px solid var(--cp-burgundy);outline-offset:2px}
body.single-to_concert .tto-cp__more{margin:10px 0 0;font-size:14px}

/* Sections are separated by a thin rule, not cards. */
body.single-to_concert .tto-cp :is(.tto-cp__about,.tto-cp__notes,.tto-cp__venue,.tto-cp__help){margin:0;padding:20px 0 0;border-top:1px solid var(--cp-line)}
body.single-to_concert .tto-cp :is(.tto-cp__notes,.tto-cp__venue,.tto-cp__help){margin-top:20px}

/* ---- Gallery (CPR-G1..G4): fixed aspect ratio, so switching never moves the page ----
   1.10.47 (UAT A2): 16:9 on every screen, matching the Programme editor's guidance, so a 1920 x 1080 image is shown
   whole (no side crop, no letterbox). Other shapes still fill the frame and lose a little at the top and bottom. */
/* pan-y: vertical drags scroll the page; horizontal ones stay with the gallery's swipe (else the browser cancels them). */
body.single-to_concert .tto-cp__stage{position:relative;overflow:hidden;aspect-ratio:16/9;border-radius:4px;background:#efe9dd;touch-action:pan-y}
body.single-to_concert .tto-cp__slide{position:absolute;inset:0;width:100%;height:100%;margin:0}
body.single-to_concert .tto-cp__slide[hidden]{display:none}
body.single-to_concert .tto-cp__slide :is(img,video,iframe){display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;border:0}
/* 1.10.46 (UAT B3): compact previous / next arrows over the image (only rendered for 2+ images). */
body.single-to_concert .tto-cp .tto-cp__arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:32px;height:32px;min-height:0;margin:-16px 0 0;padding:0;border:0;border-radius:50%;background:rgba(255,253,248,.82);color:var(--cp-burgundy);font:400 24px/1 var(--cp-serif);cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.18);opacity:.85;transition:opacity .15s,background-color .15s}
body.single-to_concert .tto-cp .tto-cp__arrow span{display:block;margin-top:-3px}
body.single-to_concert .tto-cp .tto-cp__arrow:hover{opacity:1;background:#fffdf8}
body.single-to_concert .tto-cp .tto-cp__arrow:focus-visible{opacity:1;outline:2px solid var(--cp-burgundy);outline-offset:2px}
body.single-to_concert .tto-cp .tto-cp__arrow--prev{left:8px}
body.single-to_concert .tto-cp .tto-cp__arrow--next{right:8px}
body.single-to_concert .tto-cp__slide figcaption{position:absolute;right:8px;bottom:6px;padding:2px 6px;background:rgba(0,0,0,.45);color:#fff;font-size:11px}
body.single-to_concert .tto-cp__thumbs{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--cp-gap);max-width:calc(5 * var(--cp-thumb) + 4 * var(--cp-gap));margin:10px auto 0;padding:0;list-style:none}
body.single-to_concert .tto-cp__thumbs li{margin:0;padding:0;list-style:none}
body.single-to_concert .tto-cp .tto-cp__thumb{display:block;width:var(--cp-thumb);height:var(--cp-thumb);min-height:0;margin:0;padding:0;overflow:hidden;border:2px solid transparent;border-radius:3px;background:#efe9dd;cursor:pointer;opacity:.78;transition:opacity .15s,border-color .15s;box-shadow:none}
body.single-to_concert .tto-cp .tto-cp__thumb:hover{opacity:1}
body.single-to_concert .tto-cp .tto-cp__thumb[aria-current="true"]{border-color:var(--cp-burgundy);opacity:1}
body.single-to_concert .tto-cp__thumb img{display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:cover}
body.single-to_concert .tto-cp__thumb-play{display:grid;place-items:center;width:100%;height:100%;color:var(--cp-burgundy);font-size:16px}
body.single-to_concert .tto-cp__video{margin-top:14px}
body.single-to_concert .tto-cp__video :is(video,iframe){display:block;width:100%;max-width:640px;height:auto;aspect-ratio:16/9;border:0}

/* ---- Booking panel (Events' own form; only spacing and the new facts / note) ---- */
body.single-to_concert .tto-cp .tto-cp__booking .to-events-booking{margin:0;padding:14px 14px 16px;background:var(--cp-paper);border:1px solid var(--cp-line);border-radius:6px;box-shadow:0 2px 10px rgba(69,54,31,.05)}
body.single-to_concert .tto-cp .tto-cp__booking .to-events-booking>h2{margin:0 0 10px;padding:0 0 8px;border-bottom:1px solid var(--cp-line);color:var(--cp-burgundy);font:400 19px/1.2 var(--cp-serif);letter-spacing:-.2px}
body.single-to_concert .tto-cp .to-events-session-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin:0 0 12px;padding:0}
body.single-to_concert .tto-cp .to-events-session-fact{min-width:0;margin:0;padding:0}
body.single-to_concert .tto-cp .to-events-session-fact dt{margin:0;color:var(--cp-gold);font-size:11px;font-weight:700;letter-spacing:.6px;line-height:1.4;text-transform:uppercase}
body.single-to_concert .tto-cp .to-events-session-fact dd{margin:1px 0 0;color:var(--cp-ink);font-size:14.5px;line-height:1.35;overflow-wrap:anywhere}
body.single-to_concert .tto-cp .to-events-package-note{margin:10px 0 0;color:var(--cp-muted);font-size:13px;line-height:1.5}
body.single-to_concert .tto-cp .to-events-package-note a{color:var(--cp-burgundy);font-weight:700;text-decoration:underline;text-underline-offset:2px}

/* ---- Your venue (CPR-V4) ---- */
body.single-to_concert .tto-cp__venue-card{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
body.single-to_concert .tto-cp__venue-media{overflow:hidden;aspect-ratio:16/10;border-radius:4px;background:#efe9dd}
body.single-to_concert .tto-cp__venue-media img{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
body.single-to_concert .tto-cp__venue-info{min-width:0;font-size:14.5px;line-height:1.55}
body.single-to_concert .tto-cp__venue-info p{margin:0 0 6px}
body.single-to_concert .tto-cp__venue-address{color:var(--cp-muted)}
body.single-to_concert .tto-cp__venue-details{margin:8px 0 0}
body.single-to_concert .tto-cp__venue-details p{margin:0 0 6px}
/* 1.10.47 (UAT A3): rich Venue Details -- lists and links. */
body.single-to_concert .tto-cp__venue-details :is(ul,ol){margin:0 0 6px;padding-left:1.2em}
body.single-to_concert .tto-cp__venue-details ul{list-style:disc}
body.single-to_concert .tto-cp__venue-details ol{list-style:decimal}
body.single-to_concert .tto-cp__venue-details li{margin:0 0 .25em}
body.single-to_concert .tto-cp__venue-details a{color:var(--cp-burgundy);text-decoration:underline;text-underline-offset:2px}
body.single-to_concert .tto-cp__venue-details a:hover{color:var(--cp-gold)}
body.single-to_concert .tto-cp__venue-info ul{margin:6px 0 0;padding-left:1.2em}
body.single-to_concert .tto-cp__venue-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
body.single-to_concert .tto-cp__venue-item p{margin:0 0 4px;font-size:14.5px}
body.single-to_concert .tto-cp__venue-dates a{color:var(--cp-burgundy)}

/* ---- FAQ, then Booking & Rescheduling (CPR-S1..S4): shown directly, no accordion ---- */
body.single-to_concert .tto-cp__help{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
body.single-to_concert .tto-cp__help>section{min-width:0}
body.single-to_concert .tto-cp__faq-list{margin:0;padding:0}
body.single-to_concert .tto-cp__faq-item{margin:0;padding:10px 0;border-bottom:1px solid var(--cp-line)}
body.single-to_concert .tto-cp__faq-item:first-child{padding-top:2px}
body.single-to_concert .tto-cp__faq-item dt{margin:0 0 3px;color:var(--cp-ink);font-size:15px;font-weight:700;line-height:1.4}
body.single-to_concert .tto-cp__faq-item dd{margin:0;color:var(--cp-ink);font-size:14.5px;line-height:1.6}
body.single-to_concert .tto-cp__faq-item dd p{margin:0 0 .5em}
body.single-to_concert .tto-cp__faq-item dd p:last-child{margin-bottom:0}

/* ---- Phone booking bar (CPR-M1..M3) ---- */
body.single-to_concert .tto-cp-bar{position:fixed;left:0;right:0;bottom:0;z-index:90;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:var(--cp-paper,#fffdf8);border-top:1px solid #e2d9cb;box-shadow:0 -4px 14px rgba(32,44,62,.08)}
body.single-to_concert .tto-cp-bar[hidden]{display:none}
body.single-to_concert .tto-cp-bar__price{margin:0;min-width:0;color:#202c3e;font:700 15px/1.3 Arial,Helvetica,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.single-to_concert .tto-cp-bar__button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:4px;background:#780b2b;color:#fffaf3;font:700 15px/1 Arial,Helvetica,sans-serif;text-decoration:none}
body.single-to_concert .tto-cp-bar__button:hover,body.single-to_concert .tto-cp-bar__button:focus-visible{background:#5f0822;color:#fff}
body.single-to_concert .tto-cp-bar__button:focus-visible{outline:2px solid #ad8446;outline-offset:2px}
body.tto-cp-bar-on{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}

/* ---- 600px+: venue image beside its details; small tablets ---- */
@media (min-width:600px){
	body.single-to_concert .tto-cp__wrap{width:min(1120px,calc(100% - 48px))}
	body.single-to_concert .tto-cp__venue-card:not(.tto-cp__venue-card--text){grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:20px;align-items:start}
	body.single-to_concert .tto-cp__venue-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---- Desktop (900px+): two columns, sticky narrow panel ----
   Row 2 is the flexible one: the gallery spans rows 1-2, so its extra height lands below the title + panel top,
   not between them (auto rows would share it and open a gap under the title). */
@media (min-width:900px){
	body.single-to_concert main.tto-cp{--cp-gap:8px}
	body.single-to_concert .tto-cp__wrap{width:min(1120px,calc(100% - 64px));padding:24px 0 56px}
	body.single-to_concert .tto-cp__top{grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto auto auto 1fr;grid-template-areas:"gallery side" "about side" "notes side" ". side";column-gap:40px}
	body.single-to_concert .tto-cp__top--no-gallery{grid-template-rows:auto auto 1fr;grid-template-areas:"about side" "notes side" ". side"}
	/* 1.10.46 (UAT B2): the right column spans every row and its extra height goes to the last (empty) row, so the
	   left column (gallery, About, notes) stays packed however tall the booking panel grows. It stretches to the full
	   height so the panel can stay sticky beside a long left column. */
	body.single-to_concert .tto-cp__side{align-self:stretch}
	body.single-to_concert .tto-cp__gallery{margin:0 0 24px}
	body.single-to_concert .tto-cp__thumbs{max-width:none;justify-content:center;margin-top:10px}
	body.single-to_concert .tto-cp__title{margin:0 0 12px}
	body.single-to_concert .tto-cp .tto-cp__title h1{font-size:30px}
	/* Taller than the window (several dates of birth): the panel scrolls inside itself, so every field and Book Now
	   stay reachable while it is sticky. */
	body.single-to_concert .tto-cp .tto-cp__booking{position:sticky;top:calc(24px + var(--to-announce-h,0px));max-height:calc(100vh - 40px - var(--to-announce-h,0px));overflow-y:auto;max-width:none;margin:0;padding:2px;grid-row:auto;grid-column:auto}
	body.admin-bar.single-to_concert .tto-cp .tto-cp__booking{top:calc(56px + var(--to-announce-h,0px));max-height:calc(100vh - 72px - var(--to-announce-h,0px))}
	body.single-to_concert .tto-cp .tto-cp__top--no-gallery .tto-cp__about{padding-top:4px;border-top:0}
	body.single-to_concert .tto-cp__venue{margin-top:32px;padding-top:24px}
	body.single-to_concert .tto-cp__venue-card:not(.tto-cp__venue-card--text){grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:28px}
	body.single-to_concert .tto-cp__help{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;margin-top:32px;padding-top:24px}
	body.single-to_concert .tto-cp__help>section:only-child{grid-column:1/-1}
	body.single-to_concert .tto-cp-bar{display:none!important}
	body.tto-cp-bar-on{padding-bottom:0}
}
/* 1.10.46: from 1025px the site header is sticky (tto-chrome.css: 80px, compacting to 64px), so the sticky panel
   stops below it instead of sliding under it, and its height leaves room for the header. */
@media (min-width:1025px){
	body.single-to_concert .tto-cp .tto-cp__booking{top:calc(80px + var(--to-announce-h,0px));max-height:calc(100vh - 96px - var(--to-announce-h,0px))}
	body.admin-bar.single-to_concert .tto-cp .tto-cp__booking{top:calc(112px + var(--to-announce-h,0px));max-height:calc(100vh - 128px - var(--to-announce-h,0px))}
}
@media (min-width:1200px){
	body.single-to_concert .tto-cp__top{grid-template-columns:minmax(0,1fr) 360px;column-gap:48px}
}

@media (prefers-reduced-motion:reduce){
	body.single-to_concert .tto-cp .tto-cp__thumb{transition:none}
}
@media print{
	body.single-to_concert .tto-cp-bar,body.single-to_concert .tto-cp__thumbs{display:none!important}
	body.single-to_concert .tto-cp .tto-cp__booking{position:static}
}
