/* Approved M4/M5 interactions. All colours used for text meet AA on the site ground. */
.texture-hero {position:relative;isolation:isolate;background-image:linear-gradient(90deg,rgba(3,7,18,.96),rgba(3,7,18,.72)),var(--hero-texture);background-size:cover;background-position:center;overflow:hidden;border-radius:18px}
.texture-hero::after {content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;opacity:.16;background:repeating-linear-gradient(0deg,transparent 0 3px,#aac4d017 3px 4px)}
.record-snapshot {margin-top:32px;padding:24px;border:1px solid #49d6ff38;border-left:3px solid var(--accent);border-radius:16px;background:#0b1421}
.record-snapshot h2 {font-size:clamp(21px,3vw,32px);margin:6px 0 16px}.record-snapshot ul {padding-left:22px;display:grid;gap:12px}.record-snapshot li {font-size:15px;line-height:1.7;color:#dce6ef}
.record-change {border-left:3px solid var(--accent);background:#49d6ff0a;padding:16px 20px;border-radius:8px}.record-change strong,.record-change .kicker {color:var(--accent)}.record-change p {margin:6px 0;line-height:1.65}
.record-chapter-tabs {display:flex;flex-wrap:wrap;gap:8px;scroll-margin-top:110px;margin-top:24px}.record-chapter-tabs .chip {min-height:44px;min-width:62px;justify-content:center}.record-chapter-tabs [aria-current] {color:var(--accent);border-color:var(--accent);background:#ffffff0b}.chapter-archive-heading h2 {color:var(--accent)}
.record-more-facts summary,.record-collection-details>summary {cursor:pointer;min-height:44px;padding:14px 0;color:var(--accent);font-size:14px}.record-collection-details {border:1px solid #47647c66;border-radius:14px;padding:0 22px;margin-top:20px;margin-bottom:20px}.record-collection-details .shell {width:100%;margin:0}.record-more-facts {border-top:1px solid #47647c44;margin:14px 0}.record-more-facts dl {padding-bottom:18px}.archive-index-card {border-bottom:2px solid var(--faction,var(--accent))}
.archive-connections>div:last-child,.archive-scene-grid {gap:16px}
.collection-meter {display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:24px;padding:16px 20px;border:1px solid #49d6ff38;border-radius:14px;background:#101d2c}.collection-meter[hidden] {display:none}.collection-meter p {margin:3px 0}.viewed-badge {display:inline-flex;border-radius:30px;padding:3px 8px;background:#101e22;border:1px solid #83d9c5;color:#abf0da;font-size:12px;line-height:1.4;margin:4px 0}.archive-index-card.is-viewed {border-color:#83d9c566}.archive-card {border-bottom-color:var(--faction,var(--accent))}
.watch-player--facade {position:relative;background:#030712;aspect-ratio:16/9}.watch-facade {position:relative;height:100%;width:100%;min-height:180px}.watch-facade>img {width:100%;height:100%;object-fit:contain}.watch-facade::after {content:"";position:absolute;inset:0;background:linear-gradient(transparent 35%,#030712b0);pointer-events:none}.watch-facade__play {position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:16px;border:1px solid var(--accent);padding:18px 26px;border-radius:60px;background:#030712e8;color:#fff;font-size:16px;min-height:60px;cursor:pointer;max-width:90%;white-space:nowrap}.watch-facade__play>span {color:var(--accent);font-size:25px}.watch-facade__external {position:absolute;bottom:15px;right:20px;z-index:1;display:inline-flex;align-items:center;min-height:44px;color:#fff;font-size:13px}.watch-extras {display:flex;gap:12px;flex-wrap:wrap;padding:20px 0 40px}.watch-facade__nojs {padding:15px;background:#111c2b}.watch-facade__nojs a {color:var(--accent)}
.watch-facade__error {position:absolute;left:16px;right:16px;bottom:52px;z-index:2;background:#030712ed;border:1px solid #8aabbd;padding:10px 14px;color:#edf6ff;font-size:13px;border-radius:8px}
.earth-grid-page .earth-intro {padding-top:26px;padding-bottom:24px}.earth-grid-page .earth-intro h1 {font-size:clamp(32px,5vw,58px)}.map-marker {min-width:26px;min-height:26px}.map-marker-label {position:absolute;left:24px;top:-6px;white-space:nowrap;padding:5px 9px;background:#08121ff2;color:#e7f4ff;border:1px solid #62d4ee66;border-radius:5px;font-size:12px;font-weight:600;box-shadow:0 3px 12px #0008}.map-marker.is-new {outline:3px solid #b8efff88;outline-offset:5px;animation:new-pin 2s ease-in-out infinite}.map-marker.is-active .map-marker-label {border-color:#fff;color:#fff}
@keyframes new-pin {50%{outline-offset:10px;outline-color:#b8efff22}}
.hall-changes {margin-top:28px}.hall-changes h2 {font-size:26px}.hall-changes article {margin:16px 0}.hall-changes a {color:var(--accent)}
.quiz-main,.recap-main {padding-top:calc(var(--header-height) + 36px);padding-bottom:70px}.quiz-intro {max-width:760px}.quiz-intro h1 {font-size:clamp(36px,6vw,68px);margin:10px 0}.quiz-intro p {line-height:1.7;color:#b8c9da}.quiz-card {max-width:760px;background:linear-gradient(130deg,#142238,#08101e);padding:clamp(22px,5vw,45px);border:1px solid #4a6c8b66;border-radius:24px;margin-top:28px}.quiz-card blockquote {font-size:clamp(22px,4vw,35px);line-height:1.5;margin:22px 0;font-weight:600}.quiz-choices {display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:0}.quiz-choices label {display:flex;align-items:center;gap:10px;min-height:56px;padding:12px 16px;border:1px solid #7892ac66;border-radius:12px;cursor:pointer;font-size:15px}.quiz-choices label:has(:checked) {border-color:var(--accent);background:#49d6ff12}.quiz-choices input {accent-color:var(--accent);width:18px;height:18px}.quiz-controls {display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.quiz-feedback {line-height:1.7;color:#c9eddf;margin-top:18px}.quiz-score {font-size:14px;color:#c6d6e5}.quiz-answer {margin-top:20px}.quiz-answer summary {min-height:44px;cursor:pointer;padding:12px 0;color:var(--accent)}
.recap-stories {display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;max-width:500px;margin:24px auto}.recap-slide {margin:0;position:relative;flex:0 0 100%;scroll-snap-align:start;aspect-ratio:4/5;border-radius:18px;overflow:hidden;background:#08111e;border:1px solid #37566d}.recap-slide img {width:100%;height:100%;object-fit:contain}.recap-slide figcaption {position:absolute;left:24px;right:24px;bottom:8%;font-size:clamp(19px,4vw,27px);line-height:1.5;font-weight:600;text-shadow:0 3px 10px #000;background:#030712cc;padding:15px;border-radius:10px}.recap-slide small {display:block;font-size:13px;color:var(--accent);margin-bottom:8px}.recap-controls {display:flex;justify-content:center;gap:14px;align-items:center}.recap-controls button {min-height:44px;min-width:64px;border:1px solid var(--accent);border-radius:24px;background:#0b1b2d;color:#eaf7ff;cursor:pointer}.recap-controls [data-recap-status] {min-width:56px;text-align:center}.recap-heading {text-align:center}.recap-heading a {color:var(--accent)}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {outline:3px solid #e8f8ff;outline-offset:4px}
@media(max-width:700px) {
 .archive-connections>div:last-child,.archive-scenes>div:last-child,.archive-scene-grid {display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 0 14px;gap:14px}
 .archive-connections>div:last-child>*,.archive-scenes>div:last-child>*,.archive-scene-grid>* {flex:0 0 min(82vw,340px);scroll-snap-align:start}
 .record-snapshot {padding:20px;margin-top:22px}.record-snapshot li {font-size:14px}.collection-meter {flex-direction:column;align-items:flex-start}.quiz-choices {grid-template-columns:1fr}.watch-facade__play {padding:13px 18px;font-size:14px;gap:10px}.watch-facade__external {right:12px;bottom:4px;font-size:12px}.watch-player--facade {overflow:visible}.watch-extras .chip {white-space:normal}.recap-slide {margin:0}.texture-hero {border-radius:12px}
}
@media(prefers-reduced-motion:reduce) {.map-marker.is-new {animation:none}.recap-stories {scroll-behavior:auto}*,*::before,*::after {scroll-behavior:auto!important}}
/* MapLibre's vendor stylesheet loads after the site sheet; scope overrides. */
.earth-map .map-marker {width:44px;height:44px;min-width:44px;min-height:44px;border-width:3px}
.earth-map .map-marker-label {left:34px;top:0}
.earth-map .maplibregl-popup-content {color:#eaf4ff;background:#0b1726;border:1px solid #6e91ad;border-radius:12px;max-height:400px;overflow-y:auto;box-shadow:0 12px 40px #0009}
.earth-map .maplibregl-popup-tip {border-top-color:#0b1726!important;border-bottom-color:#0b1726!important}
.earth-map .maplibregl-popup-close-button {width:44px;height:44px;min-width:44px;min-height:44px;color:#fff;background:#030712e0;line-height:1}
.earth-map .map-popup img {max-height:145px;object-fit:cover}
.earth-map .map-popup p {color:#bdcfdf;font-size:13px;line-height:1.55}
.earth-map .map-popup address {color:#a9c3d9;font-size:12px}
.earth-map .map-popup a {display:inline-flex;min-height:44px;align-items:center;font-size:12px}
.hero-slide .hero-title small,.hero-slide .kicker,.chapter-drop .kicker,.chapter-drop__head h2,.chapter-drop__counts strong,.watch-page .watch-copy h1 {color:var(--accent)}
.hero-slide .button--primary,.watch-page .watch-details .button--primary {background:var(--accent);border-color:var(--accent);color:#030712}
.chapter-drop {border-color:var(--accent)}
.archive-index-card.is-viewed {border-bottom-color:var(--faction,var(--accent))}
.earth-map .map-marker {background:transparent;border:0;border-radius:50%;box-shadow:none}
.earth-map .map-marker::before {content:"";position:absolute;width:23px;height:23px;left:10px;top:10px;border:2px solid white;border-radius:50% 50% 50% 0;background:#49d6ff;box-shadow:0 0 14px #49d6ff99}
.earth-map .map-marker:hover,.earth-map .map-marker:focus-visible,.earth-map .map-marker.is-active {background:transparent;box-shadow:none}
.earth-map .map-marker.is-active::before {background:white;box-shadow:0 0 18px #b8efff}
.earth-map .map-marker:focus-visible {outline:3px solid #fff;outline-offset:2px}
