/* Rooms in the same Atlas. Color always accompanies a label and icon. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
/* Native document transitions retain a separate, unmoving masthead snapshot.
   Page scripts keep their own document lifecycle, history and focus behavior. */
@view-transition{navigation:auto}
.site-header{view-transition-name:atlas-header}
::view-transition-group(atlas-header),::view-transition-old(atlas-header),::view-transition-new(atlas-header){animation:none;mix-blend-mode:normal}
::view-transition-old(atlas-header){display:none}
::view-transition-group(root),::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-old(root){display:none}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none}}
:root{
 --room-learn:#74511c;--room-listen:#695083;--room-atlas:#365f75;--room-library:#75492f;--room-practice:#396145;
 --room-listen-tab:#e7def0;--room-listen-selected:#d9c8e8;
 --room-learn-tab:#eee4cb;--room-learn-selected:#e5d4ad;
 --room-atlas-tab:#dce8ef;--room-atlas-selected:#c6dce9;
 --room-library-tab:#eddcd3;--room-library-selected:#e4c7b8;
 --room-practice-tab:#dce9d8;--room-practice-selected:#c6ddbe;
 --room-sit:#795d32;--room-sit-tab:#ece1cb;--room-sit-selected:#dfcda9;
}
html[data-theme=dark]{
 --room-learn:#e0bd76;--room-listen:#c8afe6;--room-atlas:#9ec8e1;--room-library:#ddb293;--room-practice:#a7d0a2;
 --room-listen-tab:#382e48;--room-listen-selected:#4a3a61;
 --room-learn-tab:#383122;--room-learn-selected:#453a25;
 --room-atlas-tab:#25394b;--room-atlas-selected:#304c63;
 --room-library-tab:#42312c;--room-library-selected:#563c31;
 --room-practice-tab:#293e2b;--room-practice-selected:#35513a;
 --room-sit:#e2c18a;--room-sit-tab:#383022;--room-sit-selected:#4b3d27;
}
/* The page, cards and secondary navigation share the active room's palette.
   These explicit dark colors bypass the generic per-stylesheet conversion. */
body[data-atlas-room]{
 --room-accent:var(--room-learn);--room-wash:var(--a-surface);--a-selected:var(--room-learn-selected);
 --a-paper:#f6f0df;--a-card:#fffaf0;--a-surface:#eee4cb;--a-ink:#343326;--a-muted:#66604f;--a-line:#dcd0b5;
 --a-accent:var(--room-accent);--site-ink:var(--a-ink);--site-muted:var(--a-muted);--site-line:var(--a-line);--site-paper:var(--a-paper);
 min-height:100vh;background:var(--a-paper);color:var(--a-ink);
}
body[data-atlas-room=listen]{--room-accent:var(--room-listen);--a-selected:var(--room-listen-selected);--a-paper:#f1edf6;--a-card:#fcf9ff;--a-surface:#e7def0;--a-ink:#3c3149;--a-muted:#6a5b78;--a-line:#d3c7df}
body[data-atlas-room=atlas]{--room-accent:var(--room-atlas);--a-selected:var(--room-atlas-selected);--a-paper:#e9f1f5;--a-card:#f6fafc;--a-surface:#dce8ef;--a-ink:#263b48;--a-muted:#546875;--a-line:#c4d6e0}
body[data-atlas-room=library]{--room-accent:var(--room-library);--a-selected:var(--room-library-selected);--a-paper:#f5eae5;--a-card:#fff8f4;--a-surface:#eddcd3;--a-ink:#47372f;--a-muted:#705b51;--a-line:#dbc7bd}
body[data-atlas-room=practice]{--room-accent:var(--room-practice);--a-selected:var(--room-practice-selected);--a-paper:#eaf2e8;--a-card:#f7fbf4;--a-surface:#dce9d8;--a-ink:#293e2d;--a-muted:#576b54;--a-line:#c7d7c1}
body[data-atlas-room=sit]{--room-accent:var(--room-sit);--a-selected:var(--room-sit-selected);--a-paper:#f4eee3;--a-card:#fffaf2;--a-surface:#ece1cb;--a-ink:#42392b;--a-muted:#70614b;--a-line:#d9ccb4}
html[data-theme=dark] body[data-atlas-room]{--a-paper:#221e15;--a-card:#2b271d;--a-surface:#383122;--a-ink:#eee6d3;--a-muted:#c4baa4;--a-line:#514735}
html[data-theme=dark] body[data-atlas-room=listen]{--a-paper:#201a2b;--a-card:#2a2237;--a-surface:#382e48;--a-ink:#eee5f6;--a-muted:#c1afd1;--a-line:#51445f}
html[data-theme=dark] body[data-atlas-room=atlas]{--a-paper:#131f2b;--a-card:#1b2a38;--a-surface:#25394b;--a-ink:#dfeaf3;--a-muted:#a8bccb;--a-line:#364c60}
html[data-theme=dark] body[data-atlas-room=library]{--a-paper:#281b1b;--a-card:#322422;--a-surface:#42312c;--a-ink:#f0e2d8;--a-muted:#c8b3a9;--a-line:#59443d}
html[data-theme=dark] body[data-atlas-room=practice]{--a-paper:#152319;--a-card:#1e2e22;--a-surface:#293e2b;--a-ink:#e1ecda;--a-muted:#afc1aa;--a-line:#3c553f}
html[data-theme=dark] body[data-atlas-room=sit]{--a-paper:#211d16;--a-card:#2a251c;--a-surface:#383022;--a-ink:#f0e6d6;--a-muted:#c5b599;--a-line:#544832}
html body[data-atlas-room],html[data-theme=dark] body[data-atlas-room]{background:var(--a-paper);color:var(--a-ink)}
.room-icon{display:inline-block;vertical-align:middle;flex:none;width:19px;height:19px;pointer-events:none}
/* The active tab interrupts the masthead rule and opens into its room below. */
.site-header,html[data-theme=dark] .site-header{--room-nav-inset:10px;padding-block:12px 10px;min-height:72px;border-bottom-color:var(--room-accent)}
.site-header>nav{gap:8px;align-items:stretch;align-self:flex-end;margin-bottom:calc(-1 * var(--room-nav-inset) - 1px)}
.site-header>nav>a[data-room-link]{display:flex;align-items:center;gap:8px;min-height:44px;white-space:nowrap;padding:8px 12px calc(8px + var(--room-nav-inset));border:1px solid transparent;border-radius:7px;background:var(--nav-wash);color:var(--nav-accent)}
[data-room-link=learn]{--nav-accent:var(--room-learn);--nav-wash:var(--room-learn-tab);--nav-selected:var(--room-learn-selected)}
[data-room-link=listen]{--nav-accent:var(--room-listen);--nav-wash:var(--room-listen-tab);--nav-selected:var(--room-listen-selected)}
[data-room-link=atlas]{--nav-accent:var(--room-atlas);--nav-wash:var(--room-atlas-tab);--nav-selected:var(--room-atlas-selected)}
[data-room-link=library]{--nav-accent:var(--room-library);--nav-wash:var(--room-library-tab);--nav-selected:var(--room-library-selected)}
[data-room-link=practice]{--nav-accent:var(--room-practice);--nav-wash:var(--room-practice-tab);--nav-selected:var(--room-practice-selected)}
[data-room-link=sit]{--nav-accent:var(--room-sit);--nav-wash:var(--room-sit-tab);--nav-selected:var(--room-sit-selected)}
.site-header>nav>a[data-room-link]:hover{background:var(--nav-selected);color:var(--nav-accent);border-color:var(--nav-accent)}
.site-header>nav>a[data-room-link][aria-current=page]{background:var(--room-wash);color:var(--nav-accent);border-color:var(--room-accent);border-bottom-color:var(--room-wash);border-radius:7px 7px 0 0;font-weight:600;z-index:1}
/* Leave the masthead rule visible beneath every inactive tab, including on hover. */
.site-header>nav>a[data-room-link]:not([aria-current=page]){margin-bottom:5px;padding-bottom:calc(3px + var(--room-nav-inset))}
.site-header>nav>a[data-room-link] .room-icon{color:var(--nav-accent)}
.site-header>nav>a[data-room-link][aria-current=page]:after{content:none}
body[data-atlas-room]>.section-nav,html[data-theme=dark] body[data-atlas-room]>.section-nav{background:var(--room-wash);border-bottom-color:var(--a-line);gap:8px 24px;padding:8px 24px}
.section-nav a[aria-current=page]{color:var(--room-accent);border-bottom-color:var(--room-accent)}
/* Library groups are rendered in HTML; category links work without JS. */
.library-group-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.library-group-tabs>:is(button,a){display:flex;align-items:center;gap:8px;background:transparent;border:1px solid transparent;border-radius:5px;color:var(--a-muted);padding:9px 12px;min-height:44px;font:500 14px/1.4 system-ui,sans-serif}
.library-group-tabs>:is(button,a):hover{color:var(--a-ink);background:var(--a-card)}
.library-group-tabs>:is(button,a):is([aria-expanded=true],[aria-current=true],[aria-current=page]){color:var(--room-accent);border-color:var(--a-line);background:var(--a-card)}
.section-nav>:is([data-section-link=saved],[data-section-link=my-practice]){display:flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:5px;padding:9px 12px;min-height:44px;font-weight:500;line-height:1.4}
.section-nav>:is([data-section-link=saved],[data-section-link=my-practice]):hover{color:var(--a-ink);background:var(--a-card)}
.section-nav>:is([data-section-link=saved],[data-section-link=my-practice])[aria-current=page]{color:var(--room-accent);border-color:var(--a-line);background:var(--a-card)}
.library-group-links{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px 26px;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline:4px;scrollbar-width:thin}
.library-group-links>a{flex:0 0 auto;white-space:nowrap}
.library-group-links>a:first-of-type{margin-left:auto}
.library-group-links>a:last-child{margin-right:auto}
.library-group-label{font-weight:600;color:var(--room-accent)}
.section-nav[data-grouped=true] .library-group-links{flex-basis:100%;border-top:1px solid var(--a-line);padding:4px 0 0}
.section-nav[data-grouped=true] .library-group-label{display:none}
.section-nav .library-group-links a{min-height:32px;display:inline-flex;align-items:center;padding:2px 0;line-height:1.4}
/* All five rooms use the same compact, direct secondary tabs. */
body>.section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"]),html[data-theme=dark] body>.section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"]){gap:8px;padding:8px 24px}
.section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"])>a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid transparent;border-radius:5px;line-height:1.4;font-weight:500;white-space:nowrap}
.section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"])>a .room-icon{color:var(--room-accent)}
.section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"])>a:hover{background:var(--a-card);color:var(--a-ink)}
.section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"])>a[aria-current=page]{background:var(--a-card);border-color:var(--a-line);color:var(--room-accent)}
/* Media have recognizable silhouettes; names and actions carry the hierarchy. */
.resource-card .resource-identity{align-items:start}
body.library-display .resource-card:not(.retreat-row),html[data-theme=dark] body.library-display .resource-card:not(.retreat-row){background:var(--a-card);padding:24px;border:1px solid var(--a-line);border-radius:8px}
.resource-card:not(.has-preview) .resource-identity{display:block}
.resource-card.resource-teacher .resource-preview img{width:80px;height:80px;border-radius:50%;object-fit:cover;object-position:50% 25%;max-height:none}
.resource-card.resource-book .resource-preview img{border-radius:2px 4px 4px 2px;box-shadow:3px 4px 8px #102c231a}
.resource-card:is(.resource-podcast,.resource-youtube,.resource-app) .resource-preview img{border-radius:9px;aspect-ratio:1;object-fit:contain}
.resource-card .resource-type{display:inline-flex;align-items:center;gap:7px;color:var(--room-accent)}
.resource-card .resource-source{font-weight:550;text-decoration-thickness:1px;display:inline-block;margin:4px 0 12px}
.resource-card .resource-details{margin:14px 0 0;border-top:1px solid var(--a-line);font-size:.875rem}
.resource-details>summary{padding:12px 0 4px;min-height:40px;color:var(--a-muted);cursor:pointer;font-weight:450}
.resource-details[open]>summary{color:var(--a-ink);margin-bottom:12px}
.resource-details .resource-connections{margin:12px 0}
.resource-details .resource-image-credit{font-size:.75rem;color:var(--a-muted)}
.resource-card .resource-description{max-width:65ch}
.resource-card .resource-action-row{display:flex;align-items:baseline;gap:8px 20px;flex-wrap:wrap}
.resource-card .resource-action-row .resource-secondary-source{margin:0}
.resource-book .resource-identity :is(h3,h4,h5){font-family:var(--type-sans,system-ui,sans-serif);font-weight:600}
.library-display .catalog-entry{position:relative;box-shadow:0 2px 0 var(--a-surface);border-radius:2px 7px 7px 2px}
.library-display .catalog-kind{display:flex;align-items:center;gap:7px}
.library-display .catalog-entry h3{font-size:1.2rem;line-height:1.4}
.dharma-talk .talk-play{border-radius:50%;background:var(--room-wash);color:var(--room-accent);border:1px solid var(--a-line);min-width:44px;min-height:44px}
.dharma-talk .talk-play-cell>span{font-size:.8rem;font-variant-numeric:tabular-nums}
.gv-main .gv-intro h1{font:500 clamp(1.8rem,2.5vw,2.35rem)/1.15 var(--a-display)}
/* Navigation already identifies directory pages. Keep their titles accessible
   without a second visible heading, introduction or empty heading wrapper. */
html body .page-title-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html body .page-preamble-hidden{display:none!important}
html body :is(.compact-page-heading,.compact-title-row){display:contents!important}
.gv-browse-tools{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:12px;align-items:start;margin-bottom:20px}
.gv-browse-tools #gv-filter-panel{margin:0;min-width:0}
.gv-browse-tools .gv-info{margin:0}
.gv-main .gv-card h2{font:500 1.4rem/1.2 var(--a-display)}
.gv-main .gv-caption-note{margin:0;color:var(--a-muted)}
.gv-main .gv-tags{gap:5px}
.gv-main .gv-tag{font-size:.78rem;padding:3px 8px;border-radius:12px;background:var(--a-card)}
.gv-main .gv-actions a:first-child{font-weight:600}
.gv-main .gv-art{border-radius:7px;box-shadow:0 3px 12px #102c2312}
/* A selected subject carries through to the matching cards and their tags. */
body .resource-card[data-subject-match=true],body.library-display .resource-card[data-subject-match=true],html[data-theme=dark] body.library-display .resource-card[data-subject-match=true]{background:var(--room-wash);border-color:var(--room-accent)}
.dharma-talk[data-subject-match=true]{border-left:2px solid var(--room-accent);padding-left:16px}
.talk-tags button[aria-pressed=true],.gv-tag[aria-current=true]{background:var(--room-wash);color:var(--room-accent);border-color:var(--room-accent);font-weight:600}
.gv-card[data-subject-match=true] .gv-card-content{border-left:2px solid var(--room-accent);padding-left:12px}
.subject-next{background:var(--room-wash);padding:18px 22px;border-radius:6px;border-left:2px solid var(--room-accent)}
/* Bookmark feedback is emitted only after a successful save, never on a click. */
:is([data-save-resource],[data-save-talk],[data-atlas-save]){display:inline-flex;align-items:center;justify-content:center;gap:7px}
:is([data-save-resource],[data-save-talk],[data-atlas-save]):before{content:'';display:inline-block;width:15px;height:18px;flex:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4-6 4Z' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center/contain no-repeat}
:is([data-save-resource],[data-save-talk],[data-atlas-save])[aria-pressed=true]:before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4-6 4Z'/%3E%3C/svg%3E")}
[data-save-settled]:before{animation:bookmark-settle .38s ease-out}
.reading-resume,.resume-reading-card{border-left:2px solid var(--room-accent);background:var(--room-wash);color:var(--a-ink)}
.reading-resume{font-size:.875rem;line-height:1.6}
.reading-progress{background:var(--room-accent)}
@keyframes bookmark-settle{0%{transform:translateY(-5px);opacity:.4}65%{transform:translateY(2px)}100%{transform:translateY(0);opacity:1}}
@media(min-width:701px){.resource-card{transition:border-color .18s,background-color .18s}.resource-card:focus-within{border-color:var(--room-accent)}}
@media(max-width:1150px){.site-header{flex-wrap:wrap;gap:12px 22px}.site-header>nav{gap:8px}.site-header>nav>a[data-room-link]{font-size:13px;gap:6px}}
@media(min-width:701px) and (max-width:1150px){.site-header>nav{order:10;flex-basis:100%;justify-content:center}.site-header>.theme-control{margin-left:auto}}
@media(max-width:1000px){.site-header,html[data-theme=dark] .site-header{--room-nav-inset:10px;padding-bottom:10px}}
@media(max-width:700px){
 .site-header,html[data-theme=dark] .site-header{--room-nav-inset:0px;display:grid;grid-template-columns:minmax(0,1fr) auto;padding:12px 20px 0;gap:10px}
 .site-header>.site-brand{grid-column:1;font-size:29px;white-space:normal;min-width:0}
 .site-header>.theme-control{grid-column:2;grid-row:1;margin:0}
 /* Short labels keep the shared primary tab row compact. */
 .site-header>nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;width:100%;margin:0 0 -1px;gap:4px;overflow:visible}
 .site-header>nav>a[data-room-link]{white-space:normal;display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;padding:6px 2px 9px;font-size:11px;line-height:1.3;letter-spacing:0;min-height:48px}
 .site-header>nav>a[data-room-link]:not([aria-current=page]){padding-bottom:4px}
 .site-header>nav>a[data-room-link] .room-icon{width:19px;height:19px}
 body[data-atlas-room]>.section-nav{padding:8px 16px;gap:4px 18px;font-size:13px}
 .library-group-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
 .library-group-tabs>:is(button,a){font-size:11px;flex-direction:column;gap:5px;padding:8px 4px;text-align:center;min-height:66px}
 .section-nav>:is([data-section-link=saved],[data-section-link=my-practice]){flex-direction:column;gap:5px;padding:8px 6px;font-size:11px;line-height:1.4;max-width:70px;min-height:66px;text-align:center}
 .section-nav[data-grouped=true] .library-group-links{grid-column:1/-1;gap:3px 20px;justify-content:flex-start;padding-top:4px}
 .section-nav .library-group-links a{font-size:13px;min-height:44px}
 .section-nav:not([data-grouped]) .library-group-links{grid-column:1/-1}
 .resource-card .resource-identity{min-width:0}.resource-card .resource-source{overflow-wrap:anywhere}
 .gv-main .gv-card h2{font-size:1.25rem}
 .reading-resume{display:flex;flex-wrap:wrap;gap:8px;padding:12px}
 /* Keep secondary navigation below the primary row in visual weight and height.
    Natural-width tabs preserve full labels; narrow screens can scroll sideways. */
 body>.section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"]),html[data-theme=dark] body>.section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"]){display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:4px;padding:6px 16px;overflow-x:auto;scroll-padding-inline:16px;scrollbar-width:thin}
 .section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"])>a{flex:0 0 auto;flex-direction:row;max-width:none;min-height:44px;gap:6px;padding:9px 10px;font-size:13px}
 .section-nav:is([aria-label="Library pages"],[aria-label="Traditions pages"],[aria-label="Teachings pages"],[aria-label="Community pages"],[aria-label="Sit pages"],[aria-label="Listen & watch pages"])>a .room-icon{width:17px;height:17px}
 .section-nav[aria-label="Traditions pages"]>a{gap:5px;padding-inline:8px;font-size:.8125rem;}
}
@media(max-width:450px){
 .site-header,html[data-theme=dark] .site-header{padding-inline:16px;gap:8px}
 .site-header>.site-brand{font-size:24px;gap:7px}.site-brand span{font-size:23px}
 .site-header>.theme-control{gap:4px}
 .site-header .atlas-soundtrack{width:32px}
 .site-header .theme-switch{width:68px;height:40px}
 .site-header .theme-switch-thumb{width:30px;height:30px}
 html[data-theme=dark] .site-header .theme-switch-thumb{transform:translateX(28px)}
}
@media(max-width:380px){.site-header>.site-brand{font-size:22px}}
@media(prefers-reduced-motion:reduce){[data-save-settled]:before{animation:none}.resource-card{transition:none}}
@media print{.library-group-tabs,.section-nav{display:none}.resource-details{display:block}.reading-progress,.reading-resume{display:none}}
@media print{html,body[data-atlas-room]{background:#fff!important;color:#000!important}body[data-atlas-room]{--a-paper:#fff!important;--a-card:#fff!important;--a-surface:#fff!important;--a-ink:#000!important;--a-muted:#444!important;--a-accent:#333!important}}

.library-group-tabs>a{text-decoration:none;line-height:1.4;}

.teaching-home{font-size:.9rem;margin:0 0 22px}

/* Site-wide search is a utility alongside listening and appearance. */
.atlas-search-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px;color:inherit;text-decoration:none;font:500 13px/1.3 system-ui,sans-serif}.atlas-search-link:hover{text-decoration:underline}.atlas-search-link svg{flex:none}.theme-control{flex-wrap:wrap}@media(max-width:680px){.atlas-search-link span{display:none}.atlas-search-link{min-width:44px;justify-content:center}}

/* Six main sections stay legible on narrow phones. */
@media(max-width:480px){
 .site-header>nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding-bottom:8px}
 .site-header>nav>a[data-room-link],.site-header>nav>a[data-room-link]:not([aria-current=page]){flex-direction:row;justify-content:center;gap:6px;min-height:44px;padding:7px 4px;margin:0;font-size:12px}
 .site-header>nav>a[data-room-link][aria-current=page]{border-radius:7px;border-bottom-color:var(--room-accent)}
 body>.section-nav[aria-label="Sit pages"],html[data-theme=dark] body>.section-nav[aria-label="Sit pages"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:6px 12px;gap:4px;overflow:visible}
 body>.section-nav[aria-label="Sit pages"]>a{flex-direction:column;white-space:normal;text-align:center;padding:8px 4px;font-size:12px;line-height:1.3;min-width:0}
}

/* One quiet identity across the Atlas's differently colored rooms. */
.site-header>.site-brand{--brand-green:#315444;--brand-gold:#9a783e;display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;flex:0 0 auto;width:auto;min-width:44px;min-height:48px;max-width:max-content;color:var(--a-ink);text-decoration:none;white-space:nowrap;border-radius:4px}
html[data-theme=dark] .site-header>.site-brand{--brand-green:#c0d0b9;--brand-gold:#d4b779}
.site-brand .brand-mark{display:block;flex:none;width:48px;height:48px;overflow:visible}
.site-brand .brand-spokes{fill:var(--brand-green)}
.site-brand .brand-rim{stroke:var(--brand-gold)}
.site-brand .brand-center{fill:var(--brand-gold)}
.site-header .site-brand .brand-wordmark{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:0 1px 3px 0;color:inherit;width:80px}
.site-header .site-brand .brand-kicker{font:500 9px/1.2 system-ui,sans-serif;letter-spacing:.19em;text-transform:uppercase;color:var(--a-muted)}
.site-header .site-brand .brand-name{display:flex;align-items:center;width:58px;height:28px;color:var(--a-ink)}
.site-brand .brand-name svg{display:block;flex:none;width:58px;height:24px}
.site-header>.site-brand:focus-visible{outline:2px solid var(--brand-gold);outline-offset:5px}
@media(hover:hover){.site-brand:hover .brand-name{color:var(--brand-green)}.site-brand:hover .brand-rim{stroke-width:2}}
@media(max-width:700px){
 .site-header>.site-brand{width:44px;min-height:44px;gap:0;justify-self:start}
 .site-brand .brand-mark{width:44px;height:44px}
 .site-header .site-brand .brand-wordmark{display:none}
}
