/* OperaOn75 — shared component styles that sit on top of theme.css (design/assets/theme.css, unchanged).
   Holds (1) the boards' inline style="" attributes turned into classes and (2) the small amount of CSS
   the live behaviors need (sticky header, dropdowns, phone-menu overlay, video player).
   Written to carry into the WordPress theme as-is. */

/* ---------- Page root (values of the approved type pairing A, from the boards' root element) ---------- */
body.oo{margin:0; --hs:1.1; --hw:600; --hwd:500}
/* The hidden attribute always wins (theme classes like .field and .empty set display:flex, which would override it). */
.oo [hidden]{display:none!important}
.oo h1,.oo h2,.oo h3,.oo h4{margin:0}
.oo .ftr-cols h3{margin:0 0 14px}
.oo .prose h3{margin:1.6em 0 .4em} /* keep theme.css long-form heading spacing after the reset above */
#main:focus{outline:none}

/* Visually hidden, still read by screen readers */
.sr-only{position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

/* Skip link (visible on keyboard focus) */
.skip-link{position:absolute; left:16px; top:-100px; z-index:100; padding:12px 18px; background:var(--oo-paper); color:var(--oo-ink)!important; font-weight:700; border-radius:var(--r)}
.skip-link:focus{top:12px}

/* ---------- Small layout helpers used across boards ---------- */
.sec-title{display:flex; flex-direction:column; gap:10px}
.gap-8{gap:8px}
.gap-10{gap:10px}
.badge-row{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.btn-row{display:flex; flex-wrap:wrap; gap:14px}
.plain-link{color:inherit!important; text-decoration:none!important}
.plain-link:hover{text-decoration:underline!important; text-decoration-thickness:1px!important}

/* Production artwork fallback: colour comes from data via --art */
.stage .ph-bg,.stage .art-ph{background:var(--art, var(--oo-umber))}

/* Cards / rows: wrappers that had inline styles */
.perf .p-main{min-width:0}
.ecard-body{min-width:0; display:flex; flex-direction:column; gap:6px; align-items:flex-start}

/* ---------- Header: sticky, condensed on scroll, dropdowns ---------- */
.site-header{position:sticky; top:0}
.site-header .hdr{transition:min-height .2s ease}
.nav li{position:relative}
.nav .dropdown{position:absolute; top:100%; left:0; margin-top:18px; z-index:3}
.site-header.is-condensed .nav .dropdown{margin-top:8px}
.nav button[aria-expanded="true"] svg{transform:rotate(180deg)}
.dropdown a[aria-current="page"]{color:var(--oo-gold-lt)!important}

/* ---------- Phone menu overlay (MobileMenu board) ---------- */
.mmenu-dialog{position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; flex-direction:column; overflow:hidden}
.mmenu-dialog[open]{display:flex}
.mmenu-dialog::backdrop{background:var(--oo-stage)}
.mmenu-hdr{width:100%; max-width:none; padding:0 16px; min-height:72px; justify-content:space-between; border-bottom:1px solid rgba(182,157,111,.3)}
.mmenu-hdr .brand img{height:46px}
.mmenu-hdr .wordmark{display:inline; font-size:25px}
.mmenu-hdr .hdr-actions{gap:8px}
.mmenu-hdr .btn{padding:0 14px}
.mmenu-hdr .menu-toggle{display:inline-flex}
.mmenu-dialog .mmenu{flex:1; min-height:0; overflow:auto}
.mmenu details[open] summary .v{display:none}
.mmenu a[aria-current="page"]{color:var(--oo-gold-lt)!important}
.mmenu-foot{padding:24px 20px; display:flex; flex-direction:column; gap:12px; margin-top:auto}
.mmenu-account{display:flex; gap:20px; justify-content:center}
.mmenu-account a{display:inline-flex; min-height:44px; align-items:center; font-size:16px; color:var(--oo-gold-lt)}
@media (max-width:359px){ .mmenu-hdr .wordmark{display:none} }
html.has-open-menu{overflow:hidden}

/* ---------- Footer: former inline styles ---------- */
.ftr-sponsors .sec-head{margin-bottom:28px}
.ftr-news{display:flex; flex-wrap:wrap; gap:40px 72px; align-items:flex-start}
.ftr-news-intro{flex:1 1 320px; display:flex; flex-direction:column; gap:14px; max-width:440px}
.ftr-news-intro .orn{max-width:120px}
.ftr-news-form{flex:999 1 520px; display:flex; flex-direction:column; gap:20px}
.form-grid{display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.form-actions{display:flex; flex-wrap:wrap; gap:12px 24px; align-items:center}
.form-status:empty{display:none}
.ftr-main{padding:72px 0 0}
.ftr-brand{display:flex; flex-direction:column; gap:18px}
.ftr-crest{width:112px; height:auto; mix-blend-mode:lighten}
.ftr-tagline{font-size:calc(22px * var(--hs,1)); font-style:italic; line-height:1.35; color:#f4f4f3}
.ftr-address{font-style:normal; display:flex; flex-direction:column; gap:4px; font-size:16px}
.ftr-social{display:flex; gap:8px; flex-wrap:wrap}
.ftr-rule{margin-top:56px}
.ftr-nonprofit{padding:22px 0 10px; font-size:14px; color:#b8b2a4; max-width:820px}
.ftr-legal{padding-bottom:20px}
.legal-copy{display:inline-flex; min-height:44px; align-items:center}
/* FIX (deviation from theme.css): .ftr-cols needs at least 450px (260px brand column + 40px gap + 150px
   link column), so below ~490px viewports the link columns overflow the page sideways. On phones the
   brand block takes the full row and the link columns sit two across. Logged in docs/preview-notes.md. */
@media (max-width:600px){ .ftr-cols{grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 24px} .ftr-brand{grid-column:1 / -1} }

/* ---------- Video: plays in place ---------- */
.video-poster iframe{position:absolute; inset:0; width:100%; height:100%; border:0; z-index:1}

/* ---------- Page hero heading on listing/stand-in pages ---------- */
.page-hero .h1{color:var(--oo-paper)}

@media (prefers-reduced-motion:reduce){ .site-header .hdr,.nav svg{transition:none} }

/* In-page targets (e.g. #ftr-news) clear the sticky header */
.oo [id]{scroll-margin-top:96px}

/* Sample video slot message (preview content without a recording yet) */
.video-empty{position:relative; z-index:1; max-width:420px; padding:16px 20px; background:rgba(20,21,16,.85); border:1px solid rgba(182,157,111,.5); color:#f4f4f3; font-size:16px; text-align:center}

/* Initials tiles inside dark sections. theme.css lightens .headshot.mono under .t-light, and <body> is .t-light,
   so without this a dark section's initials tile turns beige. Same tone as theme.css's dark headshots. */
.t-dark .headshot.mono,.t-stage .headshot.mono,.t-umber .headshot.mono{background:#38332a}
.t-dark .headshot.mono span,.t-stage .headshot.mono span,.t-umber .headshot.mono span{color:var(--oo-gold)}
