/* Academy v41 — blue, plum, baize and porcelain from the Academy emblem.
   Surface-scoped text tokens prevent pale copy leaking onto pale sections.
   Loaded last; earlier files continue to own layout and interactions. */
:root{--navy:#0b1730;--blue:#183754;--plum:#482d55;--baize:#173e36;--paper:#f6f3ec;--ink-blue:#192b43;--sky:#b7d8ff;--lilac:#e4c7f0;--mint:#b9e3d3;--text:#f6f3ec;--subtext:#c9d5e5;--accent:#b7d8ff;--surface:#142840;--green:var(--navy);--green2:var(--blue);--green3:var(--baize);--ivory:var(--paper);--muted:var(--subtext);--ink:var(--navy);--gold:var(--sky);--gold2:var(--sky);--atlas-gold:var(--sky);--atlas-ivory:var(--paper);--atlas-green:var(--navy);--line:transparent;--glass:#0b1730f5;}
/* Reset legacy text and metallic frames before applying surface contexts. */
body{background:var(--navy)!important;color:var(--text);}
body *,body *::before,body *::after{border-color:transparent!important;}
body *{color:var(--text)!important;box-shadow:none!important;}
body :is(img,figure,.artifact,.hof-frame,.hof-card,.room-link,.person-card,.passport-module,.resource-card,.world-brandstamp,.event-brandmark,.atlas-event,.event-card,.drawer,.collection,.directory-group,.world-tool,.credit-item,.action-card,.curiosity-card,.desk-module,.passport-cover-button){border:0!important;outline:0;box-shadow:none!important;}
body :is(.rooms,.world-list,.levels,.world-directory,.resource-grid,.portrait-wall,.desk-modules){background:transparent;}
body :is(.section,.footer,.date-block,.index-list,.index-row,.collection-body,.passport-entry,.source-note,.record-facts,.hof-rule,.archive-progress,.record-links a,.provenance,.trust,.near-toolbar button,.artifact-panel button,.passport-tabs button,.passport-pref,.passport-profile-strip,.profile-check,.atlas-profile-form fieldset,.menu-panel,.menu-tools button,.action-dock,.dock-actions,.modal-card,.choice,.challenge,.challenge-options button){border:0!important;box-shadow:none;}
/* The default page is blue; reading sections are porcelain with dark ink. */
:is(.section.light,.passport-dashboard,.hof-archive,.atlas-record,.world-today,.collection,.passport-module,.hof-card,.record-facts span){--text:#192b43;--subtext:#42566e;--accent:#664075;--surface:#fffdf8;background:#f6f3ec!important;}
:is(.section.light,.passport-dashboard,.hof-archive,.atlas-record,.world-today){background:linear-gradient(145deg,#faf8f2,#e9eef4)!important;}
:is(.section.dark,.curiosity-section,.people-section,.atlas-mvp,.desk-dashboard,.membership-band,.explore-band,.room-invitation){--text:#f6f3ec;--subtext:#c9d5e5;--accent:#b7d8ff;--surface:#142840;background:#0b1730!important;}
.curiosity-section{background:linear-gradient(145deg,#182740,#31233e)!important;}
.membership-band,.room-invitation{background:linear-gradient(115deg,#183754,#173e36)!important;}
/* Solid cards give copy a predictable contrast. Image cards retain photography. */
:is(.resource-card,.directory-group,.discipline,.world-tool,.event-card,.atlas-event,.desk-lead,.desk-rail,.desk-module,.desk-links>a,.world-list>div,.level,.drawer,.action-card,.artifact-panel,.credit-item,.player-proto,.today-lead,.today-side){--text:#f6f3ec;--subtext:#c9d5e5;--accent:#b7d8ff;--surface:#183754;background:#183754!important;border-radius:8px;}
:is(.world-tool,.event-card,.desk-module,.action-card,.drawer):nth-child(3n+2){--accent:#e4c7f0;background:#482d55!important;}
:is(.world-tool,.event-card,.desk-module,.action-card,.drawer):nth-child(3n){--accent:#b9e3d3;background:#173e36!important;}
.directory-group>a,.discipline>div>a{background:transparent!important;}
.discipline[open]>summary{background:#ffffff08!important;}
.collection summary:hover{background:#e5eaf1!important;}
.source-note,.archive-progress,.rights-note{background:#192b430a!important;border-radius:6px;}
.dark-note,.rights-note{background:#ffffff08!important;}
.artifact,.gallery figure{background:transparent!important;padding:0;}
.artifact img,.gallery img{filter:none;}
.hof-frame{border-radius:4px;}
.hof-placeholder,.player-photo-placeholder{--text:#f6f3ec;--subtext:#c9d5e5;background:radial-gradient(circle at 50% 25%,#314f6e,#142840 80%)!important;}
.ball-mark,.medallion{--text:#192b43;background:#f6f3ec!important;border:0!important;}
.hof-placeholder .ball-mark{--text:#192b43;}
/* Legibility hierarchy: never rely on gold or low-opacity text. */
body :is(p,.intro,.lead,.caption,figcaption,.modal-intro,.hof-source,.footer small,.footer p,.event-main p,.world-brand-copy>span,.passport-module p,.hof-copy p,.record-facts span,.profile-save-status){color:var(--subtext)!important;}
body :is(.eyebrow,.gold,.menu-kicker,.desk-kicker,.event-date span,.event-main small,.record-state,.record-facts b,.passport-module small,.hof-copy small,.directory-group>small,.resource-card small,.world-tool small,.drawer small,.feed-state,.archive-progress strong,.training-copy small,.step b,.level span){color:var(--accent)!important;}
body :is(h1,h2,h3,h4,strong){color:var(--text)!important;text-wrap:pretty;}
body :where(.section.light,.passport-dashboard,.hof-archive,.atlas-record,.world-today) a:where(:not(.btn):not(.resource-card):not(.world-brand-card):not(.person-card):not(.curiosity-card):not(.room-link)){color:var(--accent)!important;}
body :is(.resource-card,.world-brand-card,.directory-group,.today-side,.today-lead,.artifact-panel,.world-tool,.event-card,.passport-module,.hof-card) a{color:var(--accent)!important;}
body :is(.section.light,.passport-dashboard,.hof-archive,.atlas-record,.world-today) .passport-entry-copy p{color:var(--subtext)!important;}
/* Photography receives a blue scrim, independent of the section beneath it. */
:is(.hero,.room-link,.curiosity-card,.person-card,.menu-panel nav a){--text:#fffdf8;--subtext:#e1e8f2;--accent:#b7d8ff;}
.hero{background:#0b1730;}
.hero:after,.home .hero:after,.room-page .hero:after{background:linear-gradient(90deg,#0b1730f5 0%,#0b1730d9 36%,#0b173040 80%),linear-gradient(0deg,#0b1730e6,transparent 75%)!important;}
.hero-bg{filter:saturate(.95) brightness(.85)!important;}
.hero-motion{filter:saturate(.95) brightness(.8);}
.rooms .room-link:before,.rooms .room-link:hover:before{background:linear-gradient(90deg,#0b1730ed,#0b1730c9 70%,#0b173099)!important;}
.curiosity-card:before,.curiosity-card:after,.person-card:after,.person-card.no-photo:after{background:linear-gradient(180deg,#0b173026 5%,#0b1730f5 85%)!important;}
.person-card.no-photo{background:radial-gradient(circle at 50% 28%,#314f6e,#142840 75%)!important;}
.curiosity-card p{color:#e1e8f2!important;}
.menu-panel nav a:before,.menu-panel nav a:hover:before{background:linear-gradient(180deg,#0b173066,#0b1730ed 85%)!important;}
.today-lead,.today-side article{background-image:none!important;}
.today-side article{background:transparent!important;}
/* Quiet controls, visible active states, and deliberate keyboard focus. */
body::before{background:#0b1730f5!important;border:0!important;}
:is(.brand,.menu-btn,.action-dock,.dock-actions,.menu-panel,.modal-card,.saved-toast){--text:#f6f3ec;--subtext:#c9d5e5;--accent:#b7d8ff;}
.brand{text-shadow:none;}
.brand-copy span{color:#c9d5e5!important;}
.menu-btn,.action-toggle,.dock-actions,.menu-panel,.modal-card,.saved-toast{background:#142840!important;border:0!important;box-shadow:0 12px 38px #02081430!important;}
.menu-btn i,.menu-btn::before,.menu-btn::after{background:#f6f3ec!important;}
.academy-modal{background:#030916c9;}
body :is(.btn,button,.record-links a,.record-actions a,.hub-actions a){border:0!important;}
body :is(.btn,.record-links a,.record-actions a,.hub-actions a,.near-toolbar button,.hof-filters button,.passport-tabs button,.challenge-options button,.choice,.passport-settings){background:#e1eaf4!important;--text:#192b43;--subtext:#42566e;--accent:#664075;color:#192b43!important;border-radius:5px;}
body :is(.btn.primary,.hero-actions .primary,.hub-actions a.primary,.member-trigger.join,.member-form button,.passport-settings,.near-toolbar button.active,.hof-filters button.active,.passport-tabs button.active){background:#183754!important;--text:#fffdf8;color:#fffdf8!important;}
body :is(.hero,.modal-card,.membership-band,.room-invitation,.section.dark) .btn.primary{background:#b7d8ff!important;--text:#192b43;color:#192b43!important;}
body :is(.btn,button,.choice,.record-actions a,.record-links a):hover{filter:brightness(1.08);}
body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #3977bd!important;outline-offset:4px!important;}
.action-dock .accent,.action-dock .dock-actions .accent,.menu-tools button{background:#ffffff0d!important;}
.passport-room,.passport-room.visited,.passport-profile-strip,.passport-pref,.profile-check{background:#ffffff09!important;}
body :is(input:not([type=checkbox]):not([type=radio]),textarea,select){--text:#192b43;--subtext:#42566e;color:#192b43!important;background:#f6f3ec!important;border:1px solid #687f9a!important;border-radius:5px;}
body input::placeholder,body textarea::placeholder{color:#53667e!important;opacity:1;}
body input[type=checkbox],body input[type=radio]{accent-color:#80bae8;}
body .member-trigger.join:hover{background:#234c72!important;color:#fffdf8!important;}
.search-input{caret-color:#192b43;}
.passport-pref small,.profile-check,.atlas-profile-form label,.atlas-profile-form legend{color:var(--text)!important;}
.profile-check input{flex-shrink:0;}
.footer{--text:#f6f3ec;--subtext:#c9d5e5;--accent:#b7d8ff;background:#080f21!important;}
.news-ticker,.resume-cue{--text:#f6f3ec;background:#142840f0!important;}
.journey-meter u{background:linear-gradient(90deg,#8bbfff,#bd91d1)!important;}
.journey-line i,.journey-meter i{background:#b7d8ff33!important;}
.feed-state::before,.member-status i{background:#b9e3d3!important;}
.world-brandstamp,.world-brand-card>.world-brandstamp{background:#fffdf8!important;border:0!important;box-shadow:none!important;}
.world-brandstamp-dark,.world-brand-card>.world-brandstamp-dark{background:#142840!important;}
.event-brandmark{background:transparent!important;}
.event-brandmark-light{background:#fffdf8!important;}
.academy-emblem{background:#06172d!important;}
.world .hero:before,.drawer::before,.curiosity-section::before{border:0!important;box-shadow:none!important;}
.globe-lines{background:repeating-radial-gradient(ellipse at center,transparent 0 11%,#b7d8ff26 11.2% 11.5%,transparent 11.8% 22%)!important;}
.surprise-orb{background:radial-gradient(circle at 32% 25%,#587197,#183754 70%)!important;box-shadow:none!important;}
.training-stage{background:radial-gradient(circle at 72% 48%,#24665a66,transparent 40%),linear-gradient(135deg,#0b1730,#173e36)!important;}
/* Avoid cramped labels and soften the old widely tracked miniature text. */
body :is(.caption,figcaption,.source-note,.launch-note,.rights-note,.hof-source){font-size:12px;line-height:1.6;}
body :is(.eyebrow,.directory-group>small,.desk-kicker,.resource-card small){font-size:10px;letter-spacing:.12em;}
body :is(.world-brand-copy>span,.directory-group a span,.desk-links span,.discipline>div a span){font-size:12px;line-height:1.5;letter-spacing:0;}
.world-brand-copy{font:inherit!important;}
.room-link,.person-card,.curiosity-card,.passport-module,.hof-card{border-radius:8px;}
.rooms{gap:18px;}
@media(max-width:700px){.rooms{gap:10px;}.section{padding-top:64px;padding-bottom:64px;}.collection-body{padding-left:16px;padding-right:16px;}.collection summary{padding:18px 16px;}.director-check{max-width:100%;width:auto;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;}}
