/*
 * WordPress-only additions to the design CSS (assets/css is copied unchanged from the design and preview).
 * Only what the preview never needed because it had placeholders: real photos and maps, sponsor logos, notes on
 * performance rows, the status notice above a performance list, and the announcement bar.
 */

/* Real headshots fill the 4:5 frame (the design's silhouette/initials remain the fallback). */
.headshot.has-img img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}

/* Venue map image in the design's map area, with the OpenStreetMap credit. */
.venue .map.has-img{position:relative; padding:0; margin:0; min-height:300px; overflow:hidden; display:block}
.venue .map.has-img img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.venue .map .map-credit{position:absolute; right:0; bottom:0; padding:3px 8px; font-size:12px; font-weight:400; letter-spacing:0; text-transform:none; color:var(--oo-ink); background:rgba(244,244,243,.85)}
.venue.venue-nomap{grid-template-columns:1fr}
@media (max-width:760px){ .venue .map.has-img{min-height:200px} }

/* Sponsor logos sit where the wordmarks do. */
.sponsor .sponsor-logo{max-width:180px; max-height:72px; width:auto; height:auto; object-fit:contain}

/* A performance's own note (postponed, cancelled, rescheduled). */
.perf .p-note{margin:6px 0 0; color:var(--muted)}

/* Status notice above the performance list of a postponed or cancelled production. */
.perf-notice{margin:0 0 24px}

/* Announcement bar: a slim band above the header (decision 2026-10-26), in the stage palette. */
.announce{background:var(--oo-umber); color:var(--oo-paper); border-bottom:1px solid rgba(182,157,111,.35)}
.announce-inner{max-width:1360px; margin:0 auto; padding:10px 32px; display:flex; flex-wrap:wrap; gap:4px 16px; align-items:center; justify-content:center; text-align:center; font-size:15px; line-height:1.4}
.announce p{margin:0}
.announce a{color:var(--oo-gold); font-weight:600; text-decoration:underline; text-underline-offset:3px}
.announce a:hover{color:var(--oo-paper)}
@media (max-width:760px){ .announce-inner{padding:8px 16px; font-size:14px} }
/* Important (cancellations, postponements, schedule changes): the design's red, white text. */
.announce.announce-important{background:var(--oo-red); border-bottom-color:var(--oo-red-dk); font-weight:600}
.announce.announce-important a{color:#fff}
.announce.announce-important a:hover{color:var(--oo-warm)}

/* Homepage promotion block: the Support band layout; without an image the text is centred on its own. */
.give.promo-noimg{grid-template-columns:1fr}
.give.promo-noimg .give-text{margin:0 auto; align-items:center; text-align:center}

/* Page text written in the editor (policies and other plain pages): headings and lists in the design's type. */
.prose h2,.prose h3,.prose h4{font-family:var(--fh,var(--fh-d)); font-weight:var(--hw,600); color:var(--fg); text-wrap:balance; letter-spacing:-.005em}
.prose h2{font-size:calc(clamp(24px,2.2vw,28px) * var(--hs,1)); line-height:1.18; margin:1.6em 0 .5em}
.prose h3{font-size:calc(21px * var(--hs,1)); line-height:1.25}
.prose > :first-child{margin-top:0}
.prose ul,.prose ol{margin:1em 0; padding-left:1.3em}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose li + li{margin-top:.35em}
.prose li::marker{color:var(--accent)}
.prose blockquote{margin:1.2em 0; padding-left:1em; border-left:2px solid var(--accent); font-style:italic}
.prose p + ul,.prose p + ol,.prose ul + p,.prose ol + p{margin-top:1em}

/* A form that is not connected yet (Phase 4.4a): the card keeps its place in the layout. */
.form-pending{justify-content:center; min-height:200px; text-align:center}

/* Gift box: One-time / Monthly split the full width (the design CSS left an empty strip beside them). */
.givebox .seg{display:grid; grid-template-columns:1fr 1fr}
.givebox .seg button{width:100%}

/* An embedded donation form (Embed destinations) in place of the gift box. */
.give-embed .give-frame{display:block; width:100%; border:0; background:#fff}

/* An event's embedded ticket / registration form (event Ticket method = Embed). A Zeffy form reports its height and
   js/embed-resize.js fits the frame to it (2026-11-14); the height set per event (default 1200) is used until then,
   and if the form never reports. scroll-margin keeps the form's top clear of the sticky header when it scrolls into view. */
.ev-form-box{max-width:760px; margin-top:24px; background:#fff; border:1px solid var(--rule)}
.ev-form-frame{display:block; width:100%; height:1200px; border:0; background:#fff; scroll-margin-top:96px}
.give-embed .give-frame{scroll-margin-top:96px}
.ev-form-fallback{margin-top:12px}

/* ---------- Fluent Forms in the design's form style (Phase 4.4b). Scoped to .oo75-ff (the site's form spots). ---------- */
.oo75-ff .frm-fluent-form fieldset{display:flex; flex-wrap:wrap; gap:20px 16px; border:0; padding:0; margin:0; min-width:0}
.oo75-ff .ff-el-group{flex:1 1 100%; display:flex; flex-direction:column; gap:8px; min-width:0; margin:0}
.oo75-ff .ff-el-group.oo75-half{flex:1 1 calc(50% - 8px)}
@media (max-width:640px){ .oo75-ff .ff-el-group.oo75-half{flex-basis:100%} }
.oo75-ff .ff-el-input--label{margin:0; padding:0}
.oo75-ff .ff-el-input--label label{font-size:16px; font-weight:600; color:var(--fg); margin:0; letter-spacing:0; text-transform:none; display:inline}
.oo75-ff .ff-el-input--label.ff-el-is-required.asterisk-right label::after{content:" *"; color:var(--oo-red); margin:0}
.t-umber .oo75-ff .ff-el-input--label.ff-el-is-required.asterisk-right label::after{color:#e07a6e}
.oo75-ff .ff-el-form-control{width:100%; min-height:48px; padding:10px 14px; background:var(--field-bg); color:var(--fg); border:1px solid var(--oo-field-bd); border-radius:var(--r); font:inherit; font-size:17px; line-height:1.4; box-shadow:none}
.oo75-ff textarea.ff-el-form-control{min-height:132px; resize:vertical}
.oo75-ff .ff-el-form-control::placeholder{color:var(--muted); opacity:1}
.oo75-ff .ff-el-form-control:hover{border-color:var(--fg)}
.oo75-ff .ff-el-form-control:focus{border-color:var(--fg); outline:3px solid var(--focus); outline-offset:1px; box-shadow:none}
.oo75-ff .ff-el-is-error .ff-el-form-control{border-color:var(--oo-red); border-width:2px}
.t-umber .oo75-ff .ff-el-is-error .ff-el-form-control{border-color:#e07a6e}
.oo75-ff .ff-el-help-message{font-size:15px; color:var(--muted); font-style:normal; margin:0}
.oo75-ff .error.text-danger,.oo75-ff .ff-el-is-error .text-danger{color:var(--oo-red); font-size:15px; margin:4px 0 0}
.t-umber .oo75-ff .error.text-danger{color:#e07a6e}
/* Checkboxes and radios: the design's .check rows, side by side. */
.oo75-ff .ff-el-input--content:has(> .ff-el-form-check){display:flex; flex-wrap:wrap; gap:0 28px}
.oo75-ff .ff-el-form-check{margin:0}
.oo75-ff .ff-el-form-check-label{display:flex; align-items:center; gap:12px; min-height:44px; font-size:17px; font-weight:400; color:var(--fg); cursor:pointer; margin:0}
.oo75-ff .ff-el-form-check-input{width:22px; height:22px; margin:0; accent-color:var(--oo-red); flex:none}
.oo75-ff .oo75-check .ff-el-input--label{display:none}
/* Submit row. */
.oo75-ff .ff_submit_btn_wrapper{flex:1 1 100%; margin:4px 0 0}
.oo75-ff .ff-btn.btn{border-radius:var(--r); font:inherit; font-weight:600; line-height:1.2}
.oo75-ff .ff-message-success{border:0; box-shadow:none; padding:0; margin:0; background:transparent; color:var(--fg); font-size:18px}
.oo75-ff .ff-el-turnstile{min-height:65px}
/* Header cart: WooCommerce swaps this slot after "Add to cart"; it lays out as if it were not there. */
.oo75-cart-slot{display:contents}

/* WooCommerce store notice (WooCommerce › Customize › Store notice): its own CSS is off, so style it here. Fixed to
   the bottom; WooCommerce's script shows it and remembers "Dismiss". */
.woocommerce-store-notice{position:fixed; left:0; right:0; bottom:0; z-index:9999; margin:0; padding:12px 96px 12px 16px; background:var(--oo-ink); color:var(--oo-paper); border-top:3px solid var(--oo-gold); font-size:15px; line-height:1.4; text-align:center}
.woocommerce-store-notice a{color:var(--oo-gold-lt)}
.woocommerce-store-notice__dismiss-link{position:absolute; right:16px; top:50%; transform:translateY(-50%); font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.04em}

/* Donate button note (Site Settings › Donations: "Donate button note") under large Donate buttons. */
.donate-note{margin:10px 0 0; opacity:.8}
.mmenu-foot .donate-note{margin:-4px 0 0; text-align:center}

/* Footer social buttons: logo + name (Dan, 2026-11-11). */
.ftr-social-link{display:inline-flex; align-items:center; gap:8px}
.ftr-social-link svg{flex:none}

/* Footer "Proud member of" row (Site Settings › Organization › Memberships; Dan, 2026-11-11; not in the design).
   Logos sit on light tiles so any member logo reads on the dark footer. */
.ftr-members{padding:28px 0 6px; display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px}
.ftr-members-title{margin:0; font-size:14px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:#b8b2a4}
.ftr-members-list{display:flex; flex-wrap:wrap; gap:12px; margin:0; padding:0; list-style:none}
.ftr-member{display:inline-flex; align-items:center; justify-content:center; min-height:56px; padding:8px 14px; border-radius:6px; background:#f4f4f3; color:#1a1a1a; text-decoration:none}
.ftr-member-logo{display:block; max-height:40px; max-width:180px; width:auto; height:auto}
.ftr-members .ftr-member, .ftr-members .ftr-member-name{color:#1a1a1a}
.ftr-member-name{font-weight:600}
a.ftr-member:focus-visible{outline:2px solid #b69d6f; outline-offset:3px}

/* Crest chosen in Site Settings as a PNG with a see-through outside (Dan, 2026-11-12): show it as it is. The design's
   "lighten" blend is for the built-in JPG crest (black square) and would make the PNG's black shield see-through. */
.brand img[src*=".png"], .center-stage .crest[src*=".png"], .split-crest[src*=".png"], .co-crest[src*=".png"],
.give-crest[src*=".png"], .ftr-crest[src*=".png"], .crest-fallback img[src*=".png"]{mix-blend-mode:normal}

/* Home page Support section: the crest larger and centred in the picture (Dan, 2026-11-12: "the left side looks very
   empty"), solid, with a soft shadow so it reads against the photo. */
.give-img{align-items:center; justify-content:center}
.give-img .give-crest{width:clamp(170px, 19vw, 280px); opacity:1; filter:drop-shadow(0 10px 28px rgba(0,0,0,.55))}
@media (max-width:600px){ .give-img .give-crest{width:150px} }
/* ...with the organization's tagline under it (Dan: "it looks naked by itself"). */
.give-mark{display:flex; flex-direction:column; align-items:center; gap:22px; max-width:420px; text-align:center}
.give-tagline{margin:0; font-size:calc(30px * var(--hs,1)); line-height:1.25; color:var(--oo-paper); text-shadow:0 2px 14px rgba(0,0,0,.6)}
.give-tagline em{font-style:italic; color:var(--oo-gold)}
@media (max-width:600px){ .give-tagline{font-size:22px} }

/* Organizations as artists (2026-11-14, DECISIONS.md 2.26): the logo is shown whole on a light panel in the headshot
   frame (readable on the dark Cast & Creative section), leaders on a line under the name, the main image as a wide
   picture under the profile header. */
.headshot.logo-panel{background:#f4f1ea}
.headshot.logo-panel.has-img img{object-fit:contain; padding:14%; box-sizing:border-box}
.person .person-leaders{margin-top:2px; color:var(--muted)}
.t-dark .person .person-leaders,.t-stage .person .person-leaders{color:rgba(244,244,243,.72)}
.prof-leaders{margin-top:18px}
.prof-image{padding-top:0}
.prof-image-fig{margin:0 auto}
.prof-image-fig img{display:block; width:100%; height:auto; max-height:640px; object-fit:cover}
.prof-image-fig .prof-credit{margin-top:8px}

/* Event poster in the top section (only when the About section doesn't show; then it sits beside the About text).
   Desktop: date box · event information · poster. Tablet and phone: the poster under the details (Dan, 2026-11-15). */
.ev-poster{margin:0; min-width:0}
.ev-poster img{display:block; width:100%; height:auto; box-shadow:0 22px 48px rgba(0,0,0,.5)}
.ev-hero.has-poster{grid-template-columns:auto minmax(0,1fr) minmax(0,300px)}
.ev-hero.has-poster.no-date{grid-template-columns:minmax(0,1fr) minmax(0,300px)}
@media (max-width:1024px){
	.ev-hero.has-poster{grid-template-columns:auto minmax(0,1fr)}
	.ev-hero.has-poster .ev-poster{grid-column:2; max-width:360px}
	.ev-hero.has-poster.no-date{grid-template-columns:minmax(0,1fr)}
	.ev-hero.has-poster.no-date .ev-poster{grid-column:1}
}
@media (max-width:640px){
	.ev-hero.has-poster{grid-template-columns:1fr}
	.ev-hero.has-poster .ev-poster{grid-column:1; max-width:min(100%, 360px)}
}

/* Section menu on production pages: at the top under the site header, pinned while scrolling (Dan, 2026-11-15).
   Section headings land clear of the header + menu when a link is used. Phones: smaller links, and a fade on the side
   where more links are hidden (js/pnav.js sets .has-more / .has-less); the current link is kept in view. */
body:has(.pnav) .oo [id], body:has(.pnav) section[id]{scroll-margin-top:136px}
.pnav .wrap{position:relative}
.pnav ul{position:relative}
.pnav .wrap::before,.pnav .wrap::after{content:""; position:absolute; top:0; bottom:1px; width:56px; pointer-events:none; opacity:0; transition:opacity .2s}
.pnav .wrap::before{left:0; background:linear-gradient(90deg, var(--bg) 35%, transparent)}
.pnav .wrap::after{right:0; background:linear-gradient(270deg, var(--bg) 35%, transparent)}
.pnav.has-less .wrap::before,.pnav.has-more .wrap::after{opacity:1}
@media (max-width:760px){
	.pnav .wrap{padding:0}
	.pnav ul{gap:0; padding:0 8px}
	.pnav a{min-height:48px; padding:0 12px; font-size:13px; letter-spacing:.06em}
	body:has(.pnav) .oo [id], body:has(.pnav) section[id]{scroll-margin-top:124px}
}

/* Site header: one fixed height instead of shrinking on scroll (Dan, 2026-11-15). The design went 84 → 64 px on desktop
   and 72 → 64 px on phones after 80 px of scrolling, which read as a flicker. Now 72 px on desktop and 64 px on phones
   all the time (crest 48 / 40 px); the .is-condensed class oo75.js still sets changes nothing. Things pinned under the
   header (the section menu) sit right below it. */
.site-header .hdr,.site-header.is-condensed .hdr{min-height:72px; transition:none}
.site-header .brand img,.site-header.is-condensed .brand img{height:48px}
.site-header .wordmark,.site-header.is-condensed .wordmark{font-size:calc(25px * var(--hs,1))}
.site-header .nav .dropdown,.site-header.is-condensed .nav .dropdown{margin-top:12px}
.pnav{top:73px}
body:has(.pnav) .oo [id], body:has(.pnav) section[id]{scroll-margin-top:144px}
@media (max-width:760px){
	.site-header .hdr,.site-header.is-condensed .hdr{min-height:64px}
	.site-header .brand img,.site-header.is-condensed .brand img{height:40px}
	.site-header .wordmark,.site-header.is-condensed .wordmark{font-size:calc(23px * var(--hs,1))}
	.pnav{top:65px}
	body:has(.pnav) .oo [id], body:has(.pnav) section[id]{scroll-margin-top:124px}
}

/* Artist / organization profile: the dark band (260 px in the design) also reaches down to the bottom of the name, so
   a name of two or three lines sits fully on dark (2026-11-15; HanOpera Music Academy spilled onto the light part).
   A dark layer behind the name block, full width, under the photo and text; short names look exactly as before.
   Below 900 px the design already uses dark text on light, so nothing changes there. */
@media (min-width:901px){
	.prof-head{isolation:isolate; overflow-x:clip}
	.prof-head .prof-name{position:relative}
	.prof-head .prof-name::before{content:""; position:absolute; z-index:-1; top:-100vmax; bottom:0; left:-100vmax; right:-100vmax; background:#141510}
}

/* Artist profile without a Short bio (DECISIONS.md 2.33): the biography sits in the right column, under the filigree
   divider and a small "Biography" heading. The filigree is gold on light, light gold on dark. */
.orn-filigree{color:#b69d6f; width:100%; line-height:0}
.orn-filigree svg{display:block; width:100%; height:24px}
.t-dark .orn-filigree{color:#d4bf94}
.prof-bio-up{display:flex; flex-direction:column; margin-top:18px}
.prof-bio-up .orn-filigree{margin-bottom:30px}
.prof-bio-up .prof-bio-label{font-size:14px; line-height:1.4; margin:0 0 14px}
.prof-bio-up .prose{max-width:none}
/* Artist profile with a Short bio: the Biography section uses the header's grid on desktop, so the biography lines up
   with the name, tags and "Next with" box above it (.profile is 4fr/7fr with a 56px gap; .two-col is 4fr/8fr, 64px). */
@media (min-width:901px){ .prof-bio-grid{grid-template-columns:minmax(0,4fr) minmax(0,7fr); column-gap:56px} }
