/* Cross-area usability fixes, deliberately loaded after all area styles. */
body.med-site .med-app [data-med-reveal] { opacity:1; transform:none; }
body.med-site .med-app [hidden] { display:none!important; }
body.med-site .med-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; }
body.med-site .med-app :where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid var(--med-accent); outline-offset:4px; }
body.med-site .med-app :where(section[id],main[id],div[id]) { scroll-margin-top:8rem; }
body.med-site .med-app :where(.med-shell,.med-field,.med-form-panel,.med-contact-intro) { min-width:0; }
body.med-site .med-app :where(input,select,textarea) { min-width:0; max-width:100%; }
body.med-site .med-app .med-actions { display:flex; flex-wrap:wrap; gap:1rem 1.5rem; align-items:center; }
body.med-site .med-app .med-button { white-space:normal; text-align:center; }
body.med-site .med-header__inner { gap:1.5rem; }
body.med-site .med-brand { flex-shrink:0; }
body.med-site .med-navigation { gap:1.2rem; }
body.med-site .med-navigation__list { gap:1.1rem; }
body.med-site .med-navigation__list a { display:inline-flex; align-items:center; min-height:44px; }
body.med-site .med-navigation__list a[aria-current="location"] { text-decoration:underline; text-underline-offset:7px; text-decoration-thickness:2px; text-decoration-color:var(--med-accent); }
body.med-site .med-menu-toggle { min-height:44px; min-width:44px; }
body.med-site .med-language-picker { position:relative; flex-shrink:0; }
body.med-site .med-language-picker>summary { min-height:44px; padding:.55rem .6rem; cursor:pointer; font-size:.82rem; list-style:revert; }
body.med-site .med-language-picker .med-language-list { position:absolute; top:100%; right:0; z-index:90; min-width:7rem; display:grid; gap:0; padding:.5rem; margin:0; border:1px solid var(--med-line); background:var(--med-bg); box-shadow:0 10px 24px #00000012; }
body.med-site .med-language-picker .med-language-list a { min-height:44px; display:flex; align-items:center; padding:.5rem; }
body.med-site .med-language-picker a[aria-current="page"] { text-decoration:underline; text-underline-offset:4px; }
body.med-site .med-breadcrumbs { overflow-wrap:anywhere; }
body.med-site .med-breadcrumbs ol { flex-wrap:wrap; }
body.med-site .med-route-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
body.med-site .med-route-card { min-width:0; display:flex; flex-direction:column; align-items:flex-start; padding:2rem; border:1px solid var(--med-line); border-top:3px solid var(--med-accent); background:var(--med-surface); text-decoration:none; transition:box-shadow .2s; }
body.med-site .med-route-card:hover { box-shadow:0 8px 24px #00000012; }
body.med-site .med-route-card h3 { font-size:clamp(1.35rem,2vw,1.8rem); line-height:1.2; letter-spacing:-.025em; }
body.med-site .med-route-card__audience { font-size:.85rem; font-weight:650; color:var(--med-muted); line-height:1.5; }
body.med-site .med-route-card>span:last-child { margin-top:auto; text-decoration:underline; text-underline-offset:5px; }
body.med-site .med-route-card>p { font-size:1rem; }
body.med-site .med-footer nav { display:grid; gap:.2rem; }
body.med-site .med-footer nav a { display:block; min-height:44px; }
body.med-site .med-form { position:relative; }
body.med-site .med-form :where(input,select,textarea) { font-size:1rem; }
body.med-site .med-form .med-field :where(input,select,textarea) { width:100%; min-height:48px; }
body.med-site .med-form .med-field>label { line-height:1.5; }
body.med-site .med-form .med-checkbox { align-items:flex-start; gap:.75rem; }
body.med-site .med-form .med-checkbox input { width:20px; height:20px; flex:0 0 20px; margin-top:.25rem; }
body.med-site .med-notice { line-height:1.6; overflow-wrap:anywhere; }
body.med-site .med-form button[disabled] { opacity:.65; cursor:wait; }
body.med-site .med-contact-scope { font-size:.95rem; line-height:1.65; border-top:1px solid var(--med-line); padding-top:1.5rem; }
body.med-site.med-page-contact.med-contact-context-cultural, body.med-site.med-page-contact.med-contact-context-opera_experience {
  --med-bg:#f7f5ef; --med-surface:#fffdf8; --med-surface-2:#ece8df;
  --med-ink:#182a38; --med-muted:#52616b; --med-line:#d3d4cc;
  --med-accent:#725836; --med-on-accent:#fff; --med-contrast:#182a38; --med-on-contrast:#f7f5ef;
}
body.med-contact-context-opera_experience { --med-accent:#713a3b; }
body.med-site:is(.med-contact-context-cultural,.med-contact-context-opera_experience) .med-hero--contact { background:var(--med-bg); color:var(--med-ink); }
body.med-site:is(.med-contact-context-cultural,.med-contact-context-opera_experience) .med-hero--contact h1 { font-family:Georgia,'Times New Roman',serif; font-weight:400; font-size:clamp(2rem,4vw,4rem); letter-spacing:-.03em; line-height:1.14; max-width:24ch; }
@media(max-width:1240px) {
  html:not(.med-js) body.med-site .med-header { position:static; }
  body.med-site .med-header__inner { flex-wrap:wrap; }
  body.med-site .med-menu-toggle { display:none; }
  body.med-site .med-navigation { position:static; inset:auto; width:100%; min-height:0; max-height:none; display:flex; flex-direction:column; align-items:stretch; padding:1rem 0 2rem; overflow:visible; background:var(--med-bg); }
  body.med-site .med-navigation__list { flex-direction:column; align-items:stretch; gap:.35rem; }
  body.med-site .med-navigation__list a { font-size:clamp(1.1rem,3.4vw,1.65rem); letter-spacing:-.02em; font-weight:650; line-height:1.35; }
  body.med-site .med-navigation>.med-button { align-self:flex-start; }
  .med-js body.med-site .med-menu-toggle { display:inline-flex; align-items:center; gap:10px; }
  .med-js body.med-site .med-navigation { display:none; position:absolute; inset:100% 0 auto; width:100%; padding:1rem 24px 2rem; max-height:var(--med-menu-height,calc(100dvh - 82px)); overflow-y:auto; overscroll-behavior:contain; border-bottom:1px solid var(--med-line); box-shadow:0 16px 24px #00000012; }
  .med-js body.med-site .med-navigation.is-open { display:flex; }
  body.med-site .med-language-picker .med-language-list { position:static; display:flex; flex-wrap:wrap; border:0; box-shadow:none; min-width:0; padding:.3rem 0; }
  body.med-site .med-language-picker .med-language-list a { padding:.5rem .75rem; }
  body.med-site .med-menu-toggle__lines, body.med-site .med-menu-toggle__lines::before, body.med-site .med-menu-toggle__lines::after { display:block; width:22px; height:1px; background:currentColor; content:""; }
  body.med-site .med-menu-toggle__lines { position:relative; }
  body.med-site .med-menu-toggle__lines::before { position:absolute; top:-6px; }
  body.med-site .med-menu-toggle__lines::after { position:absolute; top:6px; }
  body.med-site .med-menu-toggle[aria-expanded="true"] .med-menu-toggle__lines { background:transparent; }
  body.med-site .med-menu-toggle[aria-expanded="true"] .med-menu-toggle__lines::before { top:0; transform:rotate(45deg); }
  body.med-site .med-menu-toggle[aria-expanded="true"] .med-menu-toggle__lines::after { top:0; transform:rotate(-45deg); }
}
@media(min-width:1241px) {
  body.med-site .med-navigation { display:flex; position:static; min-height:0; max-height:none; }
  body.med-site .med-menu-toggle { display:none; }
}
@media(max-width:980px) { body.med-site .med-route-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  body.med-site .med-route-grid { grid-template-columns:minmax(0,1fr); }
  body.med-site .med-route-card { padding:1.5rem; }
  body.med-site .med-form-panel { padding:1.25rem; }
  body.med-site .med-contact-intro h2 { font-size:1.8rem; line-height:1.15; }
  body.admin-bar.med-site .med-header { top:0; }
}
@media(prefers-reduced-motion:reduce) { html:has(body.med-site) { scroll-behavior:auto; } }

/* Reset the former dark Cultural contact treatment, including literal colors. */
body.med-site:is(.med-contact-context-cultural,.med-contact-context-opera_experience) {
  --med-accent-2:#b9a588; --med-radius:8px; --med-radius-large:8px; --med-shadow:0 12px 36px #182a3810;
}
body.med-site:is(.med-contact-context-cultural,.med-contact-context-opera_experience) .med-form-panel { background:var(--med-surface); }
body.med-site:is(.med-contact-context-cultural,.med-contact-context-opera_experience) .med-hero--contact::after { display:none; }
body.med-site:is(.med-contact-context-cultural,.med-contact-context-opera_experience) .med-field :is(input,select,textarea) { color-scheme:light; }
