/* Phase 34 · Closing Page final mobile QA touch-up.
   Additive styles only. Never affects the existing scoring/admin/certificates. */
:root {color-scheme:dark}
html {scroll-padding-top:90px}
a:focus-visible, button:focus-visible {outline:3px solid #f4d092;outline-offset:3px}
/* Photo text should remain legible even on the bright green turf. */
.photo-shade {background:linear-gradient(0deg,rgba(3,3,6,.96) 0%,rgba(3,3,6,.66) 28%,rgba(3,3,6,.12) 74%,transparent 100%)}
.photo-caption {color:#fff2db;text-shadow:0 2px 7px #000,0 1px 2px #000;line-height:1.4}
.photo-index {text-shadow:0 1px 6px #000}
.photo-card[hidden] {display:none!important}
.photo-card:focus-visible,.honour:focus-visible,.legacy-legend:focus-visible {outline:3px solid #ffd48a;outline-offset:3px}
/* Preserve focus and sensible wrapping for longer titles. */
.honour strong,.legacy-legend-copy strong {overflow-wrap:break-word}
.legacy-opening[hidden],.lightbox[hidden] {display:none!important}
@media (max-width:900px) {
  /* CSS-first fallback for embedded webviews where device detection changes. */
  html:not(.bc32-mobile) .nav {z-index:120}
  html:not(.bc32-mobile) .nav-inner {position:relative;min-height:68px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;padding:10px 15px;gap:9px}
  html:not(.bc32-mobile) .nav .links {display:none!important;position:absolute;top:calc(100% + 3px);left:10px;right:10px;z-index:130;max-height:calc(100dvh - 82px);overflow:auto;background:#131219f7;border:1px solid #b28a52;border-radius:14px;box-shadow:0 18px 45px #000d;padding:9px;flex-direction:column;align-items:stretch;gap:2px;min-width:0;width:auto;white-space:normal}
  html:not(.bc32-mobile) .nav .links.bc32-open {display:flex!important}
  html:not(.bc32-mobile) .nav .links a {display:flex;align-items:center;min-height:46px;padding:10px 13px;font-size:15px;line-height:1.3;white-space:normal}
  html:not(.bc32-mobile) .bc32-menu-toggle {display:flex;align-items:center;gap:8px;min-height:44px;min-width:90px;justify-content:center;padding:9px 12px;color:#f9dba1;background:#331823;border:1px solid #c59a60;border-radius:11px;font-weight:800}
  html:not(.bc32-mobile) .bc32-menu-bars {display:flex;flex-direction:column;gap:4px}
  html:not(.bc32-mobile) .bc32-menu-bars i {display:block;width:17px;height:2px;background:#f9dba1}
  html:not(.bc32-mobile) .nav .links .bc32-highlights-menu {display:flex!important}
  html:not(.bc32-mobile) .nav .watch {display:none}
  html:not(.bc32-mobile) .brand strong {font-size:18px}
  html:not(.bc32-mobile) .brand small {font-size:8px}
  html:not(.bc32-mobile) .brand-mark {width:39px;height:39px;font-size:20px}
  html:not(.bc32-mobile) .content-wrap {padding-inline:18px;max-width:650px}
  html:not(.bc32-mobile) .dean-feature {display:grid;grid-template-columns:1fr}
  html:not(.bc32-mobile) .dean-copy {padding:26px 20px}
  html:not(.bc32-mobile) .dean-address p {font-size:15px;line-height:1.8}
  html:not(.bc32-mobile) .legacy-story-grid,html:not(.bc32-mobile) .legacy-legends-grid,html:not(.bc32-mobile) .timeline {display:grid;grid-template-columns:1fr;grid-auto-rows:auto}
  html:not(.bc32-mobile) .legacy-story,html:not(.bc32-mobile) .legacy-story-wide,html:not(.bc32-mobile) .legacy-story-final,html:not(.bc32-mobile) .legacy-legend {grid-column:auto;grid-row:auto;min-height:265px}
  html:not(.bc32-mobile) .gallery,html:not(.bc32-mobile) .honours-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  html:not(.bc32-mobile) .timeline:before {display:none}
  html:not(.bc32-mobile) .memory-band {grid-template-columns:1fr}
  html:not(.bc32-mobile) .explore {display:block}
  html:not(.bc32-mobile) .explore-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  html:not(.bc32-mobile) .legacy-final-cta {display:flex;flex-direction:column;align-items:center}
  /* Shared readability polishing for regular and embedded mobile browsers. */
  .photo-shade {padding:13px 11px}
  .photo-caption {font-size:clamp(12px,3.25vw,15px);max-width:85%}
  .photo-index {font-size:11px}
  .photo-card {min-height:182px}
  .photo-card.photo-feature {min-height:215px}
  .honour {padding:22px 10px;min-height:195px}
  .honour strong {font-size:clamp(16px,3.9vw,19px);line-height:1.25}
  .honour small {line-height:1.45;letter-spacing:.06em}
  .honour-open {line-height:1.5}
  .legacy-numbers-grid strong {font-variant-numeric:tabular-nums}
  .legacy-final-inner .legacy-outline-cta,.legacy-final-inner .legacy-gold-cta {min-height:48px}
  .nav .links a:focus-visible {outline-offset:-2px}
}
@media(max-width:390px) {
  .nav-inner .brand {max-width:68%}
  .honours-grid {gap:9px}
  .honour {min-height:195px}
  .photo-shade {padding:10px}
  .photo-caption {font-size:12px}
}
@media(prefers-reduced-motion:reduce) {
  .photo-card img,.honour,.legacy-story img {transition:none!important}
}
