/* Layout changes for the separate upload edition. */
:root{--masthead-height:150px}
body:not(.home-ui){grid-template-rows:var(--masthead-height) minmax(0,1fr) 44px}
body .frame,body.home-ui .frame{height:var(--masthead-height)}
body .frame nav,body.home-ui .frame nav{top:8px;bottom:auto;height:48px;width:760px;max-width:calc(100% - 140px);grid-template-columns:1fr 66px 1fr;gap:24px}
body .frame nav .aion-home{height:46px;width:35px;min-width:35px;align-self:start;justify-self:center}
body .frame nav .header-aion{height:46px;width:35px;transform:none}
body .frame .identity{top:auto;bottom:8px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:120px;height:76px;margin:0;padding:0}
body .frame .identity img{position:static;top:auto;width:120px;height:76px;object-fit:contain}
body .frame .identity span{display:none}
body .image-expanded{top:var(--masthead-height)}

/* The title stays left-aligned; its emblem and subtitle share its center. */
body.home-ui .welcome-copy{position:absolute;left:3.5vw;right:auto;top:50%;bottom:auto;transform:translateY(-50%);width:max-content;max-width:93vw;padding:0;background:transparent;align-items:stretch}
body.home-ui .welcome-copy h1.welcome-brand{width:max-content;max-width:100%;font-size:clamp(62px,6.8vw,104px);line-height:1.08;gap:24px;margin:0 0 10px;text-align:left}
body.home-ui .welcome-copy .welcome-brand img{width:240px;height:160px;object-fit:contain;align-self:center}
body.home-ui .welcome-copy .welcome-brand>span{max-width:100%;text-wrap:balance}
body.home-ui .welcome-copy>.welcome-subtitle{width:100%;max-width:100%;font-size:clamp(28px,2.5vw,38px);line-height:1.35;text-align:center;text-wrap:balance;margin:0}

/* One button, one hover/focus state, two closely linked lines. */
body.home-ui .welcome-panel>.enter-collection.welcome-invitation{bottom:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 24px;line-height:1.3;max-width:94vw;color:#f3f4f0}
body.home-ui .welcome-invitation>.welcome-greeting{display:block;position:static;transform:none;margin:0;padding:0;font-size:34px;line-height:1.25;font-weight:500;letter-spacing:.16em;color:inherit;opacity:1}
body.home-ui .welcome-invitation>.welcome-explore{display:block;margin:0;font-size:18px;line-height:1.35;letter-spacing:.05em;color:inherit;text-shadow:0 0 9px #ffffff9c,0 0 20px #ffffff40}
body.home-ui .welcome-panel>.welcome-invitation:is(:hover,:focus-visible)>span{color:#fff;text-shadow:0 0 12px #fffc,0 0 26px #ffffff80}
body.home-ui .welcome-panel>.welcome-invitation:is(:hover,:focus-visible)::before{opacity:1}

/* The sidebar name belongs to the sidebar, including its scroll/collapse state. */
.sidebar-column{position:sticky;top:20px;align-self:start;display:flex;flex-direction:column;gap:14px;max-height:calc(100dvh - var(--masthead-height) - 64px);min-width:0}
.sidebar-brand{font-family:Display,sans-serif;flex:none;margin:0;padding:0 4px;font-size:22px;line-height:1.2;letter-spacing:.055em;font-weight:650;color:#f3f4f0;text-transform:uppercase}
body.home-ui.gallery-locked .sidebar-column>.collection-sidebar{position:static;top:auto;min-height:0;max-height:none;overflow-y:auto;width:100%;box-sizing:border-box;padding:18px 14px;scrollbar-width:thin}
body.gallery-header-hidden .sidebar-column{max-height:calc(100dvh - 64px)}
body.gallery-sidebar-collapsed .sidebar-column{display:none}
.collection-sidebar .collection-tools{margin:0 0 20px;padding:0 0 14px;min-height:42px}
.collection-sidebar .sidebar-view-controls{gap:14px 12px;padding-bottom:20px;margin-bottom:22px}
.collection-sidebar #objectCount{grid-column:1/-1;font-size:12px;line-height:1.5;margin:0 0 2px}
.collection-sidebar .sidebar-view-controls>.themed-select{grid-column:1/-1}
.collection-sidebar .sidebar-view-controls .combo-trigger{min-height:38px;padding:8px 0;font-size:13px}
.collection-sidebar .sidebar-view-controls .segmented{gap:5px}
.collection-sidebar .sidebar-view-controls .segmented button{padding:8px 10px}
.collection-sidebar .sidebar-view-controls #exportResults{padding:8px 0;font-size:12px}
.collection-sidebar .sidebar-filter-heading{gap:12px;align-items:center;margin:0 0 16px}
.collection-sidebar .sidebar-filter-heading>span{font-size:12px;letter-spacing:.12em}
.collection-sidebar .sidebar-filter-heading .sidebar-reset{font-size:11px;line-height:1.5}
.collection-sidebar .settings-rows>.location-filter{display:block;margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid #ffffff24;font-size:13px;line-height:1.5}
.collection-sidebar .location-filter .themed-select{margin-top:8px}
.collection-sidebar .settings-rows>label:not(.location-filter){display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;justify-content:start;column-gap:10px;min-height:0;padding:7px 0;margin:0 0 7px;font-size:12px;line-height:1.5}
.collection-sidebar .settings-rows>label:not(.location-filter)>input{margin-top:2px}
.collection-sidebar .settings-rows>.feature-filters{margin-top:20px;padding-top:14px}
.collection-sidebar .feature-filters>summary{padding:6px 0 12px;font-size:12px;line-height:1.5}
.collection-sidebar .feature-color-key{margin:0 0 16px;padding:8px 0}
.collection-sidebar .feature-color-key>summary{padding:6px 0;font-size:12px;line-height:1.5}
.collection-sidebar .feature-search{margin:0 0 16px;padding:4px 0 10px}
.collection-sidebar .motifs{display:flex;flex-direction:column;gap:7px}
.collection-sidebar .motifs label{margin:0;padding:8px 2px;font-size:12px;line-height:1.5;min-height:36px}
.collection-sidebar .sidebar-hint{margin-top:20px;font-size:11px;line-height:1.6}
html[data-display-mode=day] .sidebar-brand{color:#302c26}
html[data-display-mode=day] .collection-sidebar .settings-rows>.location-filter{border-color:#74695466}

/* Names use normal letter case without changing catalogue text. */
.gallery-object h3,.gallery-object h3 button,.object-row .row-title strong,.object-screen>.page-heading h2,.comparison-columns h3,.source-row [data-object]{text-transform:none!important}
.scholarship-placeholder{color:var(--ink);font-size:24px}

/* More of the background shows through the dossier gutters, never through text/images. */
@media screen{
 #screen>.object-screen{--dossier-edge:#0d0f1000;--dossier-left:max(90px,6.5vw);background:linear-gradient(to right,var(--dossier-edge),var(--dossier-surface) var(--dossier-left),var(--dossier-surface) calc(100% - max(90px,6.5vw)),var(--dossier-edge))}
 html[data-display-mode=day] #screen>.object-screen{--dossier-edge:#e7dfcf00}
}

@media(max-width:720px){
 :root{--masthead-height:132px}
 body:not(.home-ui){grid-template-rows:var(--masthead-height) minmax(0,1fr) 40px}
 body .frame nav,body.home-ui .frame nav{top:7px;height:43px;width:calc(100% - 64px);max-width:none;grid-template-columns:1fr 36px 1fr;gap:5px}
 body .frame nav .aion-home,body .frame nav .header-aion{height:40px;width:30px;min-width:30px}
 body .frame .identity{width:108px;height:68px;bottom:7px}
 body .frame .identity img{width:108px;height:68px}
 body.home-ui .welcome-copy{left:20px;width:calc(100% - 40px);max-width:none}
 body.home-ui .welcome-copy h1.welcome-brand{font-size:clamp(42px,10.5vw,68px);width:100%;gap:18px;margin-bottom:10px}
 body.home-ui .welcome-copy .welcome-brand img{width:176px;height:118px}
 body.home-ui .welcome-copy>.welcome-subtitle{font-size:25px;line-height:1.35}
 body.home-ui .welcome-panel>.enter-collection.welcome-invitation{bottom:48px;gap:2px;padding:8px 20px}
 body.home-ui .welcome-invitation>.welcome-greeting{font-size:32px}
 body.home-ui .welcome-invitation>.welcome-explore{font-size:17px}
 body.home-ui .welcome-panel>.welcome-open{bottom:164px}
 .sidebar-column{position:static;max-height:none;gap:12px;margin-bottom:20px}
 body.home-ui.gallery-locked .sidebar-column>.collection-sidebar{overflow:visible;padding:16px}
 .sidebar-brand{font-size:22px}
 body.gallery-header-hidden .sidebar-column{max-height:none}
 #screen>.object-screen{--dossier-left:44px;background:linear-gradient(to right,var(--dossier-edge),var(--dossier-surface) 44px,var(--dossier-surface) calc(100% - 32px),var(--dossier-edge))}
}
@media(max-height:650px) and (min-width:721px){
 body.home-ui .welcome-copy h1.welcome-brand{font-size:64px;gap:12px}
 body.home-ui .welcome-copy .welcome-brand img{width:156px;height:104px}
 body.home-ui .welcome-copy>.welcome-subtitle{font-size:28px}
 body.home-ui .welcome-panel>.enter-collection.welcome-invitation{bottom:24px}
}
/* Second export refinement: readable hierarchy and a quieter invitation. */
:root{--masthead-height:194px}
body .frame .identity{bottom:-1px;width:152px;height:96px}
body .frame .identity img{width:152px;height:96px;object-fit:fill}
body .frame nav .aion-home{transform:translateY(32px);height:46px}
body .frame nav .header-aion{height:46px}
.header-zodiac{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:216px;height:108px;pointer-events:none;color:var(--white);opacity:.95}
body.home-ui .welcome-copy h1.welcome-brand{font-size:clamp(54px,5.3vw,82px);gap:18px}
body.home-ui .welcome-copy .welcome-brand img{width:190px;height:126px}
body.home-ui .welcome-copy>.welcome-subtitle{font-size:clamp(23px,2vw,30px)}
body.home-ui .welcome-invitation>span{text-shadow:0 0 9px #ffffff9c,0 0 20px #ffffff40}
body.home-ui .welcome-invitation>.welcome-explore{animation:explore-pulse 2s ease-in-out infinite}
body.home-ui .welcome-invitation:is(:hover,:focus-visible)>.welcome-explore{animation:none;opacity:1}
@keyframes explore-pulse{0%,100%{opacity:.48}50%{opacity:1}}
/* A single line attached directly to the filter rail. */
.sidebar-column{gap:8px}
body .sidebar-brand{font-family:Interface,sans-serif!important;font-size:18px;letter-spacing:.025em;line-height:1.35;white-space:nowrap;padding:0 2px}
body.home-ui.gallery-locked .sidebar-column>.collection-sidebar{padding:20px 16px}
.collection-sidebar .sidebar-view-controls{display:grid;grid-template-columns:1fr;gap:14px;margin:0 0 24px;padding:0 0 24px;border-bottom:1px solid #ffffff2e}
.collection-sidebar .sidebar-section-label,.sidebar-inclusions legend{font-size:11px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.collection-sidebar #objectCount{font-size:12px;line-height:1.5;margin:0}
.collection-sidebar .sidebar-view-controls .segmented{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:0}
.collection-sidebar .sidebar-view-controls .segmented button{padding:9px 12px}
.collection-sidebar .sidebar-view-controls #exportResults{justify-self:start;margin:0;padding:4px 0;line-height:1.5}
.collection-sidebar .sidebar-filter-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:8px}
.collection-sidebar .sidebar-filter-heading .sidebar-reset{font-size:11px;white-space:nowrap}
.collection-sidebar .settings-rows>.location-filter{font-size:13px;margin-bottom:24px;padding:0;border:0}
.collection-sidebar .location-filter .themed-select{margin-top:10px}
.sidebar-inclusions{min-width:0;margin:0 0 24px;padding:12px 0 18px;border:0;border-bottom:1px solid #ffffff2e;display:flex;flex-direction:column;gap:12px}
.collection-sidebar .sidebar-inclusions label{display:grid;grid-template-columns:16px minmax(0,1fr);gap:10px;margin:0;padding:0;font-size:12px;line-height:1.55;align-items:start;text-transform:none}
.sidebar-inclusions input{margin:3px 0 0}
.collection-sidebar .settings-rows>.feature-filters{border:0;margin:0;padding:0}
.collection-sidebar .feature-filters>summary{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;padding:0 0 18px;line-height:1.5;font-size:12px}
.collection-sidebar .feature-color-key{margin:0 0 18px;padding:10px 0;border-top:1px solid #ffffff20;border-bottom:1px solid #ffffff20}
.collection-sidebar .feature-search{margin:0 0 18px}
.collection-sidebar .motifs label{display:grid;grid-template-columns:8px 16px minmax(0,1fr);align-items:start;gap:8px;padding:9px 0;line-height:1.55}
.collection-sidebar .motifs input{margin:3px 0 0}
.collection-sidebar .motifs .feature-name{min-width:0;overflow-wrap:anywhere}
.collection-sidebar .motifs .feature-swatch{width:6px;min-width:6px;height:12px;margin:4px 0 0;padding:0;border-radius:1px}
/* Catalogue reference, title, and origin are three distinct lines. */
.collection-main .gallery-object .object-caption{min-height:144px;padding:14px 16px 16px}
.collection-main .gallery-object .object-caption>small{display:block;font-size:12px;line-height:1.4;margin-bottom:10px;letter-spacing:.065em}
.collection-main .gallery-object .object-caption h3{height:auto;min-height:0;font-size:22px;line-height:1.25;margin:0 0 12px}
.collection-main .gallery-object .object-caption h3 button{font:inherit;line-height:inherit}
.collection-main .gallery-object .object-caption .origin{display:block;margin-top:7px;font-size:13px;line-height:1.5}
.collection-main .gallery-object .object-caption .classification-label{font-size:12px;line-height:1.5;margin:0 0 4px}
.object-row .row-title strong{font-size:21px;line-height:1.3;margin-top:8px}
/* Dossier: larger title, deliberate reading hierarchy, a separate action at right. */
.object-screen>.page-heading{margin-bottom:16px}
.object-screen>.page-heading h2{font-size:clamp(36px,3.5vw,56px)!important;line-height:1.12;letter-spacing:.01em;margin-top:8px}
.object-screen>.page-heading .crumb{font-size:12px;line-height:1.5}
.object-screen .dossier-navigation{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px 22px;padding:0 0 16px;margin:0 0 22px}
.object-screen .dossier-navigation .reading-tabs{justify-content:start}
.object-screen .dossier-jumps{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px}
.object-screen #objectNote{justify-self:end;white-space:nowrap;font-size:13px;padding:10px 13px}
.object-screen .dossier-jumps button{font-size:14px}
.object-screen .reading-space,.object-screen #objectReading,.object-screen .dossier-chapter p,.object-screen .dossier-chapter li{font-size:18px;line-height:1.8}
.object-screen .dossier-intro-title,.object-screen .dossier-chapter h3{font-size:28px;line-height:1.25;letter-spacing:.035em;margin:0 0 20px}
.object-screen .dossier-chapter{padding-top:28px;margin-top:30px;border-top:1px solid #ffffff2e}
.object-screen .description-chapter{padding-top:0;margin-top:24px;border:0}
.object-screen .dossier-chapter p{margin:0 0 22px}
.object-screen .dossier-chapter h4{font-size:21px;margin:24px 0 12px;line-height:1.4}
.object-screen .dossier-dates{gap:14px;margin:0 0 26px}
.object-screen .dossier-dates>div{padding:16px 18px;background:#ffffff08;border-top:1px solid #ffffff50}
.object-screen .dossier-dates dt,.object-screen .dossier-facts dt{font-size:14px;line-height:1.5;letter-spacing:.025em;color:var(--muted)}
.object-screen .dossier-dates dd{font-size:20px;line-height:1.45;margin:8px 0 0}
.object-screen .dossier-facts{font-size:18px;line-height:1.65;grid-template-columns:120px minmax(0,1fr);column-gap:22px;row-gap:16px;margin-bottom:30px}
/* Reverse vignette affects the backdrop alone. All content remains fully opaque. */
@media screen{
 #screen>.object-screen{opacity:1;background:radial-gradient(ellipse at center,var(--dossier-surface) 58%,var(--dossier-surface) 68%,transparent 100%)}
 #screen>.object-screen>.page-heading,#screen>.object-screen>.dossier-navigation,#screen>.object-screen>.object-study{opacity:1}
}
@media(max-width:1100px) and (min-width:761px){
 .object-screen .dossier-navigation{grid-template-columns:minmax(0,1fr) auto}
 .object-screen .dossier-jumps{grid-column:1;grid-row:2;justify-content:start}
 .object-screen #objectNote{grid-column:2;grid-row:1/3}
}
@media(max-width:720px){
 :root{--masthead-height:170px}
 .header-zodiac{width:180px;height:90px}
 body .frame nav .aion-home{transform:translateY(33px);height:40px}
 body .frame .identity{width:130px;height:82px;bottom:-1px}
 body .frame .identity img{width:130px;height:82px}
 body.home-ui .welcome-copy h1.welcome-brand{font-size:clamp(34px,8.6vw,54px);gap:14px}
 body.home-ui .welcome-copy .welcome-brand img{width:144px;height:96px}
 body.home-ui .welcome-copy>.welcome-subtitle{font-size:21px}
 body .sidebar-brand{font-size:19px}
 .collection-main .gallery-object .object-caption{padding:12px 10px;min-height:146px}
 .collection-main .gallery-object .object-caption h3{font-size:18px;line-height:1.3;margin-bottom:10px}
 .collection-main .gallery-object .object-caption>small{font-size:10px;margin-bottom:8px}
 .collection-main .gallery-object .object-caption .origin{font-size:12px}
 .object-screen>.page-heading h2{font-size:36px!important}
 .object-screen .dossier-navigation{grid-template-columns:minmax(0,1fr) auto;gap:12px 8px}
 .object-screen .dossier-jumps{grid-column:1/-1;grid-row:2;justify-content:start}
 .object-screen #objectNote{grid-column:2;grid-row:1;padding:8px;font-size:11px}
 .object-screen .dossier-navigation .reading-tabs{gap:4px}
 .object-screen .dossier-navigation .reading-tabs button{font-size:13px}
 .object-screen .dossier-facts{grid-template-columns:95px minmax(0,1fr);column-gap:14px;font-size:17px}
 .object-screen .dossier-dates>div{padding:12px}
 .object-screen .dossier-dates dd{font-size:18px}
}
@media(prefers-reduced-motion:reduce){body.home-ui .welcome-invitation>.welcome-explore{animation:none}}
/* Final artwork clearance and vertical day/night controls. */
:root{--masthead-height:210px}
.header-zodiac{width:248px;height:124px}
body .frame .identity{width:144px;height:91px}
body .frame .identity img{width:144px;height:91px}
body .frame .header-torchbearer{width:40px;height:66px;object-position:center bottom;transform:none;bottom:-1px}
body .frame .header-cautes{left:2px}
body .frame .header-cautopates{right:2px}
body .frame .display-mode-button[data-display-mode-control=day]{left:0;top:auto;bottom:72px;width:44px;height:44px}
body .frame .display-mode-button[data-display-mode-control=night]{right:0;top:auto;bottom:72px;width:44px;height:44px}
html[data-display-mode=day] .header-zodiac{filter:invert(1)}
/* Each resting card owns a measured slot; hover can expand without moving other rows. */
.collection-main .object-grid{grid-auto-rows:auto;align-items:start}
.gallery-slot{position:relative;min-width:0}
.gallery-slot.measured>.gallery-object{position:absolute;inset:0 0 auto;width:100%}
.collection-main .gallery-slot>.gallery-object{height:auto;min-height:0}
.collection-main .gallery-object.measuring-card{transform:none!important}
.collection-main .gallery-object.measuring-card .art{height:190px!important}
.collection-main .gallery-object.measuring-card .card-features{max-height:0!important;margin:0!important;opacity:0!important}
.collection-main .gallery-object.measuring-card .object-actions{height:0!important;margin:0!important;opacity:0!important}
@media screen{#screen>.object-screen{background-attachment:fixed}}
@media(max-width:720px){
 :root{--masthead-height:180px}
 .header-zodiac{width:200px;height:100px}
 body .frame nav .header-aion{height:40px}
 body .frame .identity,body .frame .identity img{width:118px;height:74px}
 body .frame .header-torchbearer{width:36px;height:59px}
 body .frame .header-cautes{left:0}
 body .frame .header-cautopates{right:0}
 body .frame .display-mode-button[data-display-mode-control=day]{left:0;bottom:65px;width:36px;height:36px}
 body .frame .display-mode-button[data-display-mode-control=night]{right:0;bottom:65px;width:36px;height:36px}
 .collection-main .gallery-object.measuring-card .art{height:160px!important}
}
@media(hover:none){.collection-main .gallery-object.measuring-card .object-actions{height:auto!important;margin-top:3px!important;opacity:1!important}}
/* Figural zodiac arch: illustrated animals and figures, no astrological glyphs. */
body .frame .identity,body .frame .identity img{width:138px;height:85px}
body .frame nav .aion-home{transform:translateY(35px)}
@media(max-width:720px){
 body .frame .identity,body .frame .identity img{width:110px;height:68px}
 body .frame nav .aion-home{transform:translateY(35px)}
}
/* Keep the artwork useful on shorter desktop displays; its tools can scroll below it. */
@media screen and (min-width:761px){
 .object-study>.visual:not(.image-expanded) .image-viewport{flex:0 0 auto;min-height:0}
 .object-study>.visual:not(.image-expanded) #stage{height:clamp(260px,36vh,460px);min-height:260px;flex:0 0 auto}
}





/* Individually bounded figurative artwork, arranged in documented Barberini order. */
.header-zodiac{visibility:visible}

/* Rebuilt filter rail: search, view, then two concise filter groups. */
body .sidebar-brand{font-size:26px;line-height:1.2;font-weight:600;letter-spacing:.015em;padding:0 2px}
.sidebar-column{gap:12px;top:20px}
body.home-ui.gallery-locked .sidebar-column>.collection-sidebar{padding:0;display:flex;flex-direction:column;background:rgba(15,17,18,.48);border:1px solid #ffffff24;border-radius:3px;overflow:hidden}
.collection-sidebar .sidebar-search-area{flex:none;padding:20px 20px 16px;border-bottom:1px solid #ffffff24}
.collection-sidebar .sidebar-field-label{display:block;margin:0 0 9px;font-size:12px;line-height:1.4;font-weight:500;text-transform:none;letter-spacing:.025em;color:var(--muted)}
.collection-sidebar .collection-tools{min-height:44px;margin:0;padding:0 10px;gap:8px;border:1px solid #ffffff42;border-radius:3px;background:#ffffff06}
.collection-sidebar .collection-tools input{font-size:12px;min-width:0;padding:10px 0;height:auto}
.collection-sidebar .collection-tools .collection-search-icon{width:15px;height:15px;flex:none}
.collection-sidebar .sidebar-result-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:13px}
.collection-sidebar #objectCount{font-size:11px;line-height:1.5;color:var(--muted);min-width:0}
.collection-sidebar #exportResults{padding:0;border:0;font-size:11px;line-height:1.5;white-space:nowrap;color:var(--muted)}
.collection-sidebar .sidebar-body{min-height:0;overflow-y:auto;padding:20px;scrollbar-width:thin}
.collection-sidebar .sidebar-view-controls{display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 22px;padding:0 0 22px;border-bottom:1px solid #ffffff24}
.collection-sidebar .sidebar-section-label{font-size:11px;letter-spacing:.12em;color:var(--muted)}
.collection-sidebar .sidebar-view-controls .segmented{border:1px solid #ffffff32;border-radius:3px;overflow:hidden;gap:0;background:#ffffff04}
.collection-sidebar .sidebar-view-controls .segmented button{min-height:38px;padding:8px 12px;font-size:13px;border:0;border-radius:0;color:var(--muted);background:transparent}
.collection-sidebar .sidebar-view-controls .segmented button[aria-pressed=true]{background:#ffffff19;color:var(--ink);box-shadow:inset 0 -2px #d7d9d5}
.collection-sidebar .sidebar-sort{display:block;margin-top:8px}
.collection-sidebar .sidebar-sort .themed-select,.collection-sidebar .location-filter .themed-select{width:100%;margin:0}
.collection-sidebar .combo-trigger,.collection-sidebar .sidebar-view-controls .combo-trigger{min-height:42px;padding:10px 12px;font-size:14px;border:1px solid #ffffff32;border-radius:3px;background:#ffffff05}
.collection-sidebar .sidebar-filter-heading{margin:0 0 18px}
.collection-sidebar .sidebar-filter-heading>span{font-size:11px;letter-spacing:.11em;color:var(--muted)}
.collection-sidebar .sidebar-reset{font-size:12px!important;text-decoration:none;padding:3px 0;color:var(--muted)}
.collection-sidebar .settings-rows{display:block}
.collection-sidebar .settings-rows>.location-filter{margin:0 0 22px;padding:0;display:block}
.collection-sidebar .settings-rows>.feature-filters,.collection-sidebar .sidebar-record-options{border:0;border-top:1px solid #ffffff24;margin:0;padding:0}
.collection-sidebar .feature-filters>summary,.collection-sidebar .sidebar-record-options>summary{position:relative;display:flex;align-items:center;justify-content:space-between;gap:6px;list-style:none;padding:17px 17px 17px 0;font-size:14px;line-height:1.4;letter-spacing:0;text-transform:none;cursor:pointer}
.collection-sidebar .feature-filters>summary::-webkit-details-marker,.collection-sidebar .sidebar-record-options>summary::-webkit-details-marker{display:none}
.collection-sidebar .feature-filters>summary::after,.collection-sidebar .sidebar-record-options>summary::after{content:'+';position:absolute;right:0;color:var(--muted);font-size:16px;font-weight:400}
.collection-sidebar .feature-filters[open]>summary::after,.collection-sidebar .sidebar-record-options[open]>summary::after{content:'−'}
.collection-sidebar .filter-count{font-size:10px;white-space:nowrap;padding:3px 6px;border-radius:3px;background:#ffffff0b;color:var(--muted)}
.collection-sidebar .feature-search{margin:0 0 10px;padding:8px 10px;border:1px solid #ffffff32;border-radius:3px}
.collection-sidebar .feature-search input{font-size:13px}
.collection-sidebar .sidebar-hint{font-size:11px;line-height:1.55;margin:0 0 14px;color:var(--muted)}
.collection-sidebar .motifs{gap:0}
.collection-sidebar .motifs label{padding:10px 0;font-size:13px;line-height:1.5;border-bottom:1px solid #ffffff0d;gap:8px}
.collection-sidebar .feature-color-key{border:0;margin:12px 0 18px;padding:0;font-size:12px}
.collection-sidebar .feature-color-key>summary{font-size:12px}
.collection-sidebar .sidebar-inclusions{margin:0;padding:0 0 20px;gap:14px;border:0}
.collection-sidebar .sidebar-inclusions legend{font-size:11px;letter-spacing:0;text-transform:none;margin-bottom:14px}
.collection-sidebar .sidebar-inclusions label{font-size:13px;line-height:1.5}
.gallery-object h3,.gallery-object h3 button,.object-row .row-title strong{text-transform:uppercase!important}
html[data-display-mode=day] .sidebar-column>.collection-sidebar{background:rgba(248,242,229,.56)!important}
html[data-display-mode=day] .collection-sidebar :is(.sidebar-search-area,.collection-tools,.sidebar-view-controls,.segmented,.combo-trigger,.feature-filters,.sidebar-record-options,.feature-search){border-color:#74695455}
html[data-display-mode=day] .collection-sidebar .sidebar-view-controls .segmented button[aria-pressed=true]{background:#766b5622;box-shadow:inset 0 -2px #746954}
@media(min-width:721px){
 body.home-ui #screen>.collection-screen{grid-template-columns:300px minmax(0,1fr);gap:24px;padding-left:16px}
 .collection-sidebar .sidebar-body{display:block}
}
@media(min-width:721px) and (max-width:1100px){
 body.home-ui #screen>.collection-screen{grid-template-columns:270px minmax(0,1fr);gap:18px}
 body .sidebar-brand{font-size:24px}
}
@media(max-width:720px){
 body .sidebar-brand{font-size:clamp(23px,6.3vw,28px)}
 body.home-ui.gallery-locked .sidebar-column>.collection-sidebar{padding:0}
 .collection-sidebar #toggleSidebar{padding:15px 18px;font-size:14px;border-bottom:1px solid #ffffff24}
 .collection-sidebar .sidebar-search-area{padding:16px 18px}
 .collection-sidebar .sidebar-body{padding:18px;overflow:visible}
 .collection-sidebar .sidebar-body:not(.mobile-open){display:none}
 .collection-sidebar .sidebar-body.mobile-open{display:block}
}
.collection-sidebar .sidebar-search-area>.sidebar-field-label,.collection-sidebar .sidebar-view-controls>.sidebar-section-label{display:none}
.collection-sidebar .sidebar-search-area{padding-top:16px;padding-bottom:14px}
.collection-sidebar .sidebar-body{padding-top:16px}
.collection-sidebar .sidebar-view-controls{gap:10px;margin-bottom:18px;padding-bottom:18px}
.collection-sidebar .sidebar-sort{margin-top:0}
.collection-sidebar .feature-filters>summary>span:first-child{font:inherit;letter-spacing:inherit;color:inherit;background:none;padding:0}
.collection-sidebar details:is(.feature-filters,.sidebar-record-options)>summary::after{width:auto;height:auto;border:0;transform:translateY(-50%);top:50%;margin:0;line-height:1}
.collection-main .gallery-object .object-caption h3,.collection-main .gallery-object .object-caption h3 button{display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible;max-height:none;white-space:normal}
@media(min-width:1101px) and (max-width:1500px){.collection-main .object-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Theme-aware sidebar feedback, confined to interactive controls. */
.collection-sidebar{--sidebar-glow:#dce8e638;--sidebar-glow-text:#eaf5f46b;--sidebar-glow-line:#d3dfdd9c}
html[data-display-mode=day] .collection-sidebar{--sidebar-glow:#92734326;--sidebar-glow-text:#8a66354d;--sidebar-glow-line:#8a704d99}
.collection-sidebar :is(button,summary,.motifs label,.sidebar-inclusions label,.collection-tools,.feature-search){transition:color 180ms ease,text-shadow 180ms ease,box-shadow 180ms ease,border-color 180ms ease}
.collection-sidebar :is(button,summary,.motifs label,.sidebar-inclusions label):is(:hover,:focus-visible){text-shadow:0 0 9px var(--sidebar-glow-text)}
.collection-sidebar :is(.motifs label,.sidebar-inclusions label):focus-within{text-shadow:0 0 9px var(--sidebar-glow-text)}
.collection-sidebar :is(.collection-tools,.feature-search):is(:hover,:focus-within),.collection-sidebar .combo-trigger:is(:hover,:focus-visible),.collection-sidebar .segmented button:is(:hover,:focus-visible){border-color:var(--sidebar-glow-line);box-shadow:0 0 12px var(--sidebar-glow),inset 0 0 8px var(--sidebar-glow)}
.collection-sidebar :is(.collection-tools,.feature-search) input:is(:hover,:focus){color:var(--ink);background:transparent!important;box-shadow:none!important;outline:none}
.collection-sidebar .combo-options [role=option]:is(:hover,:focus-visible){text-shadow:0 0 9px var(--sidebar-glow-text)}
body.home-ui .welcome-invitation>.welcome-greeting{font-size:40px}
body.home-ui .welcome-invitation>.welcome-explore{font-size:21.2px;animation-duration:1.7s}
@media(max-width:720px){body.home-ui .welcome-invitation>.welcome-greeting{font-size:38px}body.home-ui .welcome-invitation>.welcome-explore{font-size:20.2px}}

/* Only arrow/entrance hover shades move to the actual viewport edges. */
.dossier-back::before,.welcome-return::before,.gallery-header-toggle::before,.enter-collection::before{background:none!important;box-shadow:none!important}
.arrow-hover-shade{position:fixed;inset:0;pointer-events:none;z-index:34;opacity:0;transition:opacity 520ms ease;--edge-dark:rgba(0,0,0,.42);--edge-mid:rgba(0,0,0,.19);--edge-soft:rgba(0,0,0,.055)}
.arrow-hover-left{background:radial-gradient(ellipse 34vw 75vh at 0 50%,var(--edge-dark),var(--edge-mid) 30%,var(--edge-soft) 65%,transparent 100%)}
.arrow-hover-top{background:radial-gradient(ellipse 75vw 42vh at 50% 0,var(--edge-dark),var(--edge-mid) 30%,var(--edge-soft) 65%,transparent 100%)}
.arrow-hover-bottom{z-index:2;background:radial-gradient(ellipse 75vw 42vh at 50% 100%,var(--edge-dark),var(--edge-mid) 30%,var(--edge-soft) 65%,transparent 100%)}
html[data-display-mode=day] .arrow-hover-shade{--edge-dark:rgba(58,43,24,.25);--edge-mid:rgba(58,43,24,.10);--edge-soft:rgba(58,43,24,.025)}
body:has(.dossier-back:not([hidden]):is(:hover,:focus-visible))>.arrow-hover-left{opacity:1}
body:has(.welcome-return:is(:hover,:focus-visible),.gallery-header-toggle:is(:hover,:focus-visible),.aion-home:is(:hover,:focus-visible))>.arrow-hover-top{opacity:1}
body.home-ui:not(.gallery-locked):has(.welcome-invitation:is(:hover,:focus-visible)) .arrow-hover-bottom{opacity:1}
@media(prefers-reduced-motion:reduce){.arrow-hover-shade,.collection-sidebar :is(button,summary,label,.collection-tools,.feature-search){transition:none}}
@media print{.arrow-hover-shade{display:none}}

/* Dossiers occupy the screen without reopening the gallery masthead. */
@media screen{
 body.dossier-ui{grid-template-rows:0 minmax(0,1fr) 44px}
 body.dossier-ui .frame{height:0;min-height:0;padding:0;border:0;visibility:hidden;pointer-events:none;transition:none}
 body.dossier-ui #screen{margin-top:0}
 body.dossier-ui .image-expanded{top:0}
}
@media screen and (max-width:720px){body.dossier-ui{grid-template-rows:0 minmax(0,1fr) 40px}}
/* List text follows the row's contrasting hover/focus foreground. */
.collection-main .object-row:is(:hover,:focus-within){background:#f3f4f0;color:#18272e}
.collection-main .object-row:is(:hover,:focus-within) :is(.row-title,.row-title strong,.row-title small,.row-origin,.row-date,.row-count){color:#18272e!important;text-shadow:none}
html[data-display-mode=day] .collection-main .object-row:is(:hover,:focus-within){background:#fff8e9;color:#302c26}
html[data-display-mode=day] .collection-main .object-row:is(:hover,:focus-within) :is(.row-title,.row-title strong,.row-title small,.row-origin,.row-date,.row-count){color:#302c26!important}

/* Compact masthead: Aion stands clear above the smaller zodiac. */
:root{--masthead-height:178px}
body .frame nav,body.home-ui .frame nav{top:4px}
body .frame nav .aion-home{transform:none;height:64px;width:44px;min-width:44px}
body .frame nav .header-aion{height:64px;width:44px;transform:none}
.header-zodiac{width:208px;height:104px}
body .frame .identity,body .frame .identity img{width:112px;height:69px}
body .frame .header-cautes{left:-6px}
body .frame .header-cautopates{right:-6px}
@media(max-width:720px){
 :root{--masthead-height:154px}
 body .frame nav .aion-home{height:56px;width:39px;min-width:39px}
 body .frame nav .header-aion{height:56px;width:39px}
 .header-zodiac{width:180px;height:90px}
 body .frame .identity,body .frame .identity img{width:100px;height:61px}
 body .frame .header-cautes{left:-5px}
 body .frame .header-cautopates{right:-5px}
}

/* Hairline clearance accounts for the transparent pixels below Aion’s feet. */
:root{--masthead-height:172px}
@media(max-width:720px){:root{--masthead-height:150px}}

/* Smaller arch, with its crown held at the same hairline clearance. */
:root{--masthead-height:164px}
.header-zodiac{width:192px;height:96px}
body .frame .identity,body .frame .identity img{width:106px;height:65px}
@media(max-width:720px){
 :root{--masthead-height:142px}
 .header-zodiac{width:164px;height:82px}
 body .frame .identity,body .frame .identity img{width:94px;height:57px}
}

/* Mithras size preserved: clearance is controlled by the arch artwork. */

/* Seven altar destinations; the central Mithras artwork retains its fixed size. */
.cave-outline{position:absolute;inset:0;width:100%;height:100%;color:var(--ink);opacity:.42;pointer-events:none;stroke-width:1.3;z-index:0}
body .frame nav,body.home-ui .frame nav{inset:4px 45px 0;transform:none;width:auto;max-width:none;height:auto;display:grid;grid-template-columns:minmax(0,1fr) 208px minmax(0,1fr);gap:10px;align-items:end}
body .frame nav .aion-home{align-self:start;grid-column:2;grid-row:1}
.altar-group{display:flex;align-items:flex-end;justify-content:space-around;gap:6px;min-width:0;height:100%}
.altar-left{grid-column:1;grid-row:1}.altar-right{grid-column:3;grid-row:1}
body .frame nav .altar-link{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:9px;padding:0 2px;margin:0;border:0;background:none;min-width:0;min-height:0;height:auto;color:var(--ink);font-size:14px;letter-spacing:.035em;white-space:nowrap;text-transform:none;line-height:1.2}
.altar-link img{width:45px;height:48px;object-fit:contain;opacity:.74;transition:opacity 180ms ease}
.altar-link:is(:hover,:focus-visible) img,.altar-link[aria-current=page] img{opacity:1}
html[data-display-mode=day] .altar-link img{filter:invert(1)}
body .sidebar-brand{font-size:30px;letter-spacing:0;white-space:nowrap}
.collection-sidebar :is(.sidebar-field-label,.sidebar-section-label,.sidebar-filter-heading>span,.sidebar-hint,#objectCount,#exportResults,.sidebar-inclusions legend){font-size:13px}
.collection-sidebar :is(.collection-tools input,.sidebar-view-controls .segmented button,.feature-search input,.motifs label,.sidebar-inclusions label,.feature-color-key,.feature-color-key>summary){font-size:15px}
.collection-sidebar :is(.combo-trigger,.sidebar-view-controls .combo-trigger,.feature-filters>summary,.sidebar-record-options>summary){font-size:16px}
.collection-sidebar .sidebar-reset{font-size:14px!important}
body .gallery-sidebar-toggle{height:54px!important;width:24px!important;min-height:0!important;top:var(--sidebar-arrow-center,50%)!important;transform:translateY(-50%)!important}
body .gallery-sidebar-toggle svg{height:42px!important;width:12px!important}
.export-placeholder{padding:48px;max-width:1000px;margin:auto}.export-placeholder h1{font-size:42px}.export-placeholder p{color:var(--muted)}
@media(min-width:721px){body.home-ui #screen>.collection-screen{grid-template-columns:340px minmax(0,1fr)}}
@media(min-width:721px) and (max-width:1100px){body .sidebar-brand{font-size:27px}body.home-ui #screen>.collection-screen{grid-template-columns:310px minmax(0,1fr)}body .frame nav .altar-link{font-size:12px}.altar-link img{width:36px;height:39px}}
@media(max-width:720px){
 body .frame nav,body.home-ui .frame nav{inset:4px 30px 0;grid-template-columns:minmax(0,1fr) 164px minmax(0,1fr);gap:2px}
 .altar-group{flex-direction:column;justify-content:flex-end;gap:3px;align-items:center}
 body .frame nav .altar-link{font-size:10px;letter-spacing:0;gap:1px;line-height:1.1}
 .altar-link img{width:17px;height:18px}
 body .sidebar-brand{font-size:30px}
}

body .frame nav,body.home-ui .frame nav{height:calc(var(--masthead-height) - 5px);align-self:stretch;top:4px;bottom:0}
body .frame nav .altar-link::after{display:none}


/* Quiet depth and a dedicated, unobstructed sidebar-control gutter. */
body.home-ui.gallery-locked #screen>.collection-screen{padding-left:38px}
body.home-ui.gallery-locked.gallery-sidebar-collapsed #screen>.collection-screen{grid-template-columns:minmax(0,1fr);padding-left:38px}
body.home-ui.gallery-locked .gallery-sidebar-toggle{display:block!important;left:3px;width:30px!important;z-index:40;color:var(--ink);opacity:1;visibility:visible;pointer-events:auto;border-radius:5px;background:rgba(20,24,25,.32)}
body.home-ui.gallery-locked .gallery-sidebar-toggle svg{left:9px;opacity:.64;stroke-width:1.6}
body.home-ui.gallery-locked .gallery-sidebar-toggle:is(:hover,:focus-visible) svg{opacity:1}
body.home-ui.gallery-locked .gallery-sidebar-toggle:focus-visible{outline:1px solid currentColor;outline-offset:1px}
html[data-display-mode=day] body.home-ui.gallery-locked .gallery-sidebar-toggle{background:rgba(241,234,220,.48);color:#514a3e}
.sidebar-column>.collection-sidebar{box-shadow:0 4px 14px #00000020,0 12px 28px #00000026}
.collection-main .gallery-slot,.collection-main .object-row{box-shadow:0 3px 10px #00000018,0 8px 22px #00000024}
html[data-display-mode=day] .sidebar-column>.collection-sidebar,html[data-display-mode=day] .collection-main :is(.gallery-slot,.object-row){box-shadow:0 3px 12px #392c1b14,0 8px 24px #392c1b1c}
/* Rounded rock contours frame the figures without crossing their silhouettes. */
.cave-outline{left:50%;right:auto;transform:translateX(-50%);width:calc(100% - 32px);max-width:1280px;opacity:.5;stroke-width:1.25}
.cave-mouth{stroke-width:1.5}.cave-strata{opacity:.43;stroke-width:.85}
body .frame .header-cautes{left:max(32px,calc((100% - 1280px)/2 + 42px))}
body .frame .header-cautopates{right:max(32px,calc((100% - 1280px)/2 + 42px))}
body .frame [data-display-mode-control=day]{left:max(30px,calc((100% - 1280px)/2 + 40px))}
body .frame [data-display-mode-control=night]{right:max(30px,calc((100% - 1280px)/2 + 40px))}
body .frame nav,body.home-ui .frame nav{left:110px;right:110px;gap:14px}
.altar-group{gap:clamp(12px,1.7vw,24px);transform:translateY(1px)}
.altar-left{justify-content:flex-end}.altar-right{justify-content:flex-start}
body .frame nav .altar-link{padding:0;min-width:66px;gap:8px}
.altar-link img{object-position:center bottom}
@media(min-width:901px) and (max-width:1100px){body .frame nav,body.home-ui .frame nav{left:82px;right:82px;gap:10px}.altar-group{gap:12px}body .frame nav .altar-link{min-width:54px;font-size:11px}}
@media(max-width:900px){
 body .frame nav,body.home-ui .frame nav{left:44px;right:44px;gap:4px}
 .altar-group{flex-direction:column;align-items:center;justify-content:flex-end;gap:3px}
 body .frame nav .altar-link{min-width:0;font-size:11px;gap:1px;line-height:1.1}
 .altar-link img{width:17px;height:18px}
 body .frame .header-cautes{left:9px}body .frame .header-cautopates{right:9px}
 body .frame [data-display-mode-control=day]{left:7px}body .frame [data-display-mode-control=night]{right:7px}
 .cave-outline{width:100%;max-width:none}
}
@media(max-width:420px){body .frame nav,body.home-ui .frame nav{left:36px;right:36px}body .frame nav .altar-link{font-size:10px}body .sidebar-brand{font-size:28px}}

/* Keep each luminary directly above its torchbearer and inside the rock opening. */
@media(min-width:901px){
 body .frame .header-cautes{left:max(72px,calc((100% - 1280px)/2 + 70px))}
 body .frame .header-cautopates{right:max(72px,calc((100% - 1280px)/2 + 70px))}
 body .frame .display-mode-button[data-display-mode-control=day]{left:max(70px,calc((100% - 1280px)/2 + 68px))}
 body .frame .display-mode-button[data-display-mode-control=night]{right:max(70px,calc((100% - 1280px)/2 + 68px))}
}
@media(max-width:900px){
 .altar-group{gap:1px}.altar-link img{height:16px;width:16px}
 body .frame .header-cautes{left:13px}body .frame .header-cautopates{right:13px}
 body .frame .display-mode-button[data-display-mode-control=day]{left:13px}
 body .frame .display-mode-button[data-display-mode-control=night]{right:13px}
}


/* Bare sidebar chevron; retain its reserved edge strip and hit area. */
body.home-ui.gallery-locked .gallery-sidebar-toggle,
html[data-display-mode=day] body.home-ui.gallery-locked .gallery-sidebar-toggle{background:transparent!important;border:0;border-radius:0;box-shadow:none!important}
/* Filled, faceted rock surrounds the low cave mouth; stars occupy the open sky. */
.cave-outline{opacity:1;color:var(--ink)}
.cave-rock-fill{fill:currentColor;fill-opacity:.14;stroke:none}
.cave-rock-facets>path{fill:currentColor;fill-opacity:.16;stroke:none}
.cave-rock-cuts{fill:none;stroke:currentColor;stroke-width:.8;stroke-opacity:.55;stroke-linecap:round;stroke-linejoin:round}
.cave-rock-edge{fill:none;stroke:currentColor;stroke-width:1;stroke-opacity:.6;stroke-linejoin:round}
.cave-opening-edge{fill:none;stroke:currentColor;stroke-width:1.2;stroke-opacity:.72}
.cave-sky{position:absolute;inset:0;pointer-events:none;z-index:0;color:var(--ink)}
.cave-star{position:absolute;overflow:visible;opacity:.48;fill:none;stroke:currentColor;stroke-width:.8;stroke-linecap:round}
.cave-star:nth-child(3n){opacity:.28}
body .frame nav .aion-home{transform:translateY(-3px)}
@media(max-width:900px){.cave-star.star-low{display:none}.cave-star{opacity:.34}}

/* Cave artwork keeps its native proportions: no nonuniform scale or faded filter. */
:root{--cave-width:min(1100px,calc(100vw - 32px));--cave-height:calc(var(--cave-width) * 315 / 1983);--masthead-height:calc(31px + var(--cave-height))}
body .frame{overflow:hidden}
.cave-engraving{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:var(--cave-width);max-width:none;height:var(--cave-height);overflow:hidden;pointer-events:none;opacity:1;z-index:0;filter:none}
.cave-compact{display:none}
html[data-display-mode=day] .cave-engraving{filter:invert(1);opacity:1}
body .frame .header-torchbearer{width:47px;height:78px}
body .frame .header-cautes{left:calc(50% - var(--cave-width) * .34)}
body .frame .header-cautopates{right:calc(50% - var(--cave-width) * .34)}
body .frame .display-mode-button[data-display-mode-control]{width:32px!important;height:32px!important;padding:3px;top:9px;bottom:auto}
body .frame .display-mode-button[data-display-mode-control=day]{left:calc(50% - var(--cave-width) * .34 + 7px)}
body .frame .display-mode-button[data-display-mode-control=night]{right:calc(50% - var(--cave-width) * .34 + 7px)}
body .frame nav .altar-link{min-width:0;font-size:12px}
.altar-group{gap:4px}
body.home-ui .welcome-copy h1.welcome-brand,body.home-ui .welcome-copy h1.welcome-brand>span,html[data-display-mode] body .sidebar-brand{color:#fff!important;-webkit-text-fill-color:#fff!important}
body .sidebar-brand{text-shadow:0 1px 5px #0009}
body.gallery-sidebar-collapsed .sidebar-column.sidebar-sliding{display:flex;position:fixed;left:var(--slide-left);top:var(--slide-top);width:var(--slide-width);height:var(--slide-height);max-height:none;z-index:30;pointer-events:none}
body.gallery-sidebar-collapsed .sidebar-column.sidebar-sliding>.collection-sidebar{display:flex}
@media(max-width:1350px){
 :root{--masthead-height:calc(79px + var(--cave-height))}
 .cave-engraving{bottom:48px}
 .header-zodiac{bottom:48px}
 body .frame .identity{bottom:47px}
 body .frame .header-torchbearer{bottom:47px}
 body .frame nav,body.home-ui .frame nav{left:24px;right:24px;grid-template-columns:minmax(0,4fr) minmax(0,3fr);gap:14px}
 body .frame nav .aion-home{position:absolute;left:50%;top:0;transform:translate(-50%,-3px);grid-column:1 / -1;grid-row:1}
 .altar-left{grid-column:1}.altar-right{grid-column:2}
 .altar-group{flex-direction:row;justify-content:space-evenly;gap:8px;height:auto;align-self:end;align-items:flex-end;transform:translateY(1px)}
 body .frame nav .altar-link{min-width:0;gap:4px;font-size:12px;line-height:1.15}
 .altar-link img{width:23px;height:25px}
}
@media(max-width:720px){
 :root{--cave-width:460px;--cave-height:calc(460px * 520 / 1983);--masthead-height:210px}
 .cave-wide{display:none}.cave-compact{display:block}
 body .frame .header-torchbearer{width:42px;height:70px}
 body .frame .header-cautes{left:calc(50% - 138px)}body .frame .header-cautopates{right:calc(50% - 132px)}
 body .frame .display-mode-button[data-display-mode-control]{top:6px}
 body .frame .display-mode-button[data-display-mode-control=day]{left:calc(50% - 132px)}
 body .frame .display-mode-button[data-display-mode-control=night]{right:calc(50% - 126px)}
 body .frame nav,body.home-ui .frame nav{left:18px;right:18px;gap:10px}
 .altar-group{justify-content:space-between;gap:4px}
 body .frame nav .altar-link{font-size:9px}
 .altar-link img{width:21px;height:23px}
}

/* Narrow engraved grotto; the established core figure coordinates remain intact. */
.grotto-composition{position:absolute;inset:0;pointer-events:none}
.grotto-composition>.identity,.grotto-composition>.display-mode-button{pointer-events:auto}
body .frame .identity{left:calc(50% - 10.5px)}
.cave-grotto{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:hidden;color:#fff;filter:grayscale(1)}
html[data-display-mode=day] .cave-grotto{filter:grayscale(1) invert(1);color:#fff}
body .frame nav,body.home-ui .frame nav{inset:0;display:block;width:100%;height:100%;transform:none;pointer-events:none}
.altar-group{display:contents}
body .frame nav .altar-link{position:absolute;left:var(--grotto-link-x);top:var(--grotto-link-base);transform:translate(-50%,-100%);pointer-events:auto;min-width:0;width:max-content;height:auto;gap:5px;font-size:11px;line-height:1.15;letter-spacing:0;padding:0;text-transform:uppercase}
body .frame nav .altar-link img{width:34px;height:36px;opacity:.9}
body .frame nav .altar-link{transition:color 180ms ease,text-shadow 180ms ease,box-shadow 180ms ease}
body .frame nav .aion-home{position:absolute;left:50%;top:var(--grotto-aion-top,1px);bottom:auto;transform:translateX(-50%);width:auto;height:var(--grotto-aion-height,64px);margin:0;padding:0;pointer-events:auto}
body .frame nav .header-aion{height:var(--grotto-aion-height,64px);width:auto;max-width:none;object-fit:contain}
body .frame .header-torchbearer{width:39px;height:46px}
body .frame .header-cautes{left:calc(50% - var(--grotto-cautes-offset) - 19.5px)}
body .frame .header-cautopates{right:calc(50% - var(--grotto-cautopates-offset) - 19.5px)}
body .frame .display-mode-button[data-display-mode-control]{width:17px!important;height:17px!important;padding:1px}
body .frame .display-mode-button[data-display-mode-control] svg{display:block;width:100%;height:100%}
body .frame .display-mode-button[data-display-mode-control=day]{left:calc(50% - var(--grotto-sun-offset) - 8.5px);top:var(--grotto-sun-y)}
body .frame .display-mode-button[data-display-mode-control=night]{right:calc(50% - var(--grotto-moon-offset) - 8.5px);top:var(--grotto-moon-y)}
.cave-sky .cave-star{opacity:.26}
.cave-sky .cave-star:nth-child(n+6):nth-child(-n+13){display:none}
.dipper-star{position:absolute;display:block;width:5px;height:5px;border-radius:50%;transform:translate(-50%,-50%);background:#f4fbff;box-shadow:0 0 3px 1px #e4f5ffb3,0 0 8px 2px #72b6ff80,0 0 15px 3px #629bff24;pointer-events:none}
.dipper-star::after{content:'';position:absolute;inset:-3px;background:linear-gradient(transparent 45%,#dceeff80 50%,transparent 55%),linear-gradient(90deg,transparent 45%,#dceeff80 50%,transparent 55%)}
html[data-display-mode=day] .dipper-star{background:#65768a;box-shadow:0 0 3px #8399b6,0 0 9px #8399b655}
.altar-art{position:relative;display:block;flex:none;width:34px;height:36px;overflow:visible}
.altar-art>img{display:block}
.altar-fire{position:absolute;left:19%;bottom:63.8%;width:62%;height:46%;pointer-events:none;opacity:0;transition:opacity 160ms ease;filter:drop-shadow(0 0 2px #ff9b3a88)}
.altar-fire::before,.altar-fire::after{content:'';position:absolute;inset:0;background:url('ui/altar-living-fire.png') center bottom/contain no-repeat;transform-origin:50% 95%;animation:none}
.altar-fire::after{clip-path:inset(0 24% 0 22%);opacity:.4}
.altar-lit .altar-fire{opacity:1}
body .frame nav .altar-lit .altar-art>img{clip-path:inset(34% 0 0);opacity:1}
.altar-lit .altar-fire::before{animation:altar-flame 1.45s ease-in-out infinite alternate}
.altar-lit .altar-fire::after{animation:altar-core .83s ease-in-out infinite alternate}
body .frame nav .altar-link.altar-lit>span:not(.altar-art){color:#eac36b;text-shadow:0 0 7px #ffc77780,0 0 15px #e1843038}
html[data-display-mode=day] body .frame nav .altar-link.altar-lit>span:not(.altar-art){color:#946011;text-shadow:0 0 7px #ffc77780}
body .frame .header-torchbearer{pointer-events:auto;cursor:pointer;transition:filter 180ms ease}
body .frame .header-cautes:is(.luminary-highlight,.luminary-selected){filter:drop-shadow(0 0 2px #ffd46b) drop-shadow(0 0 6px #e7aa4566)}
body .frame .header-cautopates:is(.luminary-highlight,.luminary-selected){filter:drop-shadow(0 0 2px #d9edff) drop-shadow(0 0 6px #8abfff66)}
body .frame .display-mode-button[data-display-mode-control=day].luminary-highlight svg{color:#eac36b;filter:drop-shadow(0 0 3px #ffc75b)}
body .frame .display-mode-button[data-display-mode-control=night].luminary-highlight svg{color:#d9edff;filter:drop-shadow(0 0 3px #8abfff)}
html[data-display-mode=day] body .frame .header-cautes:is(.luminary-highlight,.luminary-selected){filter:invert(1) drop-shadow(0 0 3px #b77d22)}
html[data-display-mode=day] body .frame .header-cautopates:is(.luminary-highlight,.luminary-selected){filter:invert(1) drop-shadow(0 0 3px #718ca8)}
@keyframes altar-flame{0%{transform:scale(1,.95) skewX(-1.5deg);opacity:.88}31%{transform:scale(.96,1.04) skewX(1deg);opacity:1}62%{transform:scale(1.02,.92) skewX(-.7deg);opacity:.92}100%{transform:scale(.98,1.06) skewX(1.8deg);opacity:1}}
@keyframes altar-core{0%{transform:scaleY(.93) translateX(-.3px);opacity:.28}57%{transform:scaleY(1.04) translateX(.25px);opacity:.46}100%{transform:scaleY(.97);opacity:.35}}
body.dossier-ui .altar-fire::before,body.dossier-ui .altar-fire::after,body.home-ui:not(.gallery-locked) .altar-fire::before,body.home-ui:not(.gallery-locked) .altar-fire::after{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.altar-lit .altar-fire::before,.altar-lit .altar-fire::after{animation:none}.altar-fire{transition:none}}
@media(min-width:721px) and (max-width:979px){
 :root{--masthead-height:calc(89px + var(--cave-height))}
 body .frame .identity,body .frame .header-torchbearer{bottom:57px}
 body .frame nav .altar-link{gap:3px}
 body .frame nav .altar-link img{width:23px;height:24px}
 .altar-art{width:23px;height:24px}
}
@media(max-width:720px){
 :root{--masthead-height:220px}
 body .frame .identity,body .frame .header-torchbearer{bottom:57px}
 body .frame nav .altar-link{font-size:9px;gap:3px}
 body .frame nav .altar-link img{width:22px;height:24px}
 .altar-art{width:22px;height:24px}
 body .frame .header-torchbearer{height:42px;width:34px}
 body .frame .header-cautes{left:calc(50% - var(--grotto-cautes-offset) - 17px)}
 body .frame .header-cautopates{right:calc(50% - var(--grotto-cautopates-offset) - 17px)}
}

/* Constant cool starlight; only the altar-linked star warms to gold. */
.dipper-star{transition:background-color 180ms ease,box-shadow 180ms ease}
.dipper-star.dipper-lit{background:#fff2ca;box-shadow:0 0 3px 1px #ffe6aab3,0 0 9px 2px #edbd6870,0 0 16px 3px #dba04430}
.dipper-star.dipper-lit::after{background:linear-gradient(transparent 45%,#ffe4a780 50%,transparent 55%),linear-gradient(90deg,transparent 45%,#ffe4a780 50%,transparent 55%)}
html[data-display-mode=day] .dipper-star.dipper-lit{background:#a67830;box-shadow:0 0 3px #c79951,0 0 9px 2px #e3b46665}
@media(prefers-reduced-motion:reduce){.dipper-star{transition:none}}
/* Shared gentle color fades for altar labels and their corresponding stars. */
body .frame nav .altar-link>span:not(.altar-art){transition:color 220ms ease,text-shadow 220ms ease}
.dipper-star{transition:background-color 220ms ease,box-shadow 220ms ease}
.dipper-star::after{transition:opacity 220ms ease}
.dipper-star.dipper-lit::after{background:linear-gradient(transparent 45%,#dceeff80 50%,transparent 55%),linear-gradient(90deg,transparent 45%,#dceeff80 50%,transparent 55%);opacity:.55}
.altar-fire{transition:opacity 220ms ease}
@media(prefers-reduced-motion:reduce){body .frame nav .altar-link>span:not(.altar-art),.dipper-star,.dipper-star::after,.altar-fire{transition:none}}
/* Keep the fire rooted on the altar: brightness flicker, no whole-flame bobbing. */
@keyframes altar-flame{0%,100%{opacity:.88}19%{opacity:.98}37%{opacity:.90}61%{opacity:1}82%{opacity:.93}}
@keyframes altar-core{0%,100%{opacity:.20}23%{opacity:.38}49%{opacity:.24}74%{opacity:.42}}
.altar-lit .altar-fire::before{animation-duration:1.9s}
.altar-lit .altar-fire::after{animation-duration:1.13s}
/* Quiet night atmosphere behind the engraved header artwork. */
html:not([data-display-mode=day]) body .frame{background:linear-gradient(90deg,rgba(13,15,16,0.0000) 0%,rgba(13,15,16,0.0000) 2%,rgba(13,15,16,0.5500) 7%,rgba(13,15,16,0.7200) 15%,rgba(8,16,26,0.7800) 28%,rgba(8,16,26,0.8200) 40%,rgba(7,16,27,0.8600) 50%,rgba(8,16,26,0.8200) 60%,rgba(8,16,26,0.7800) 72%,rgba(13,15,16,0.7200) 85%,rgba(13,15,16,0.5500) 93%,rgba(13,15,16,0.0000) 98%,rgba(13,15,16,0.0000) 100%)!important}
html:not([data-display-mode=day]) .cave-sky{background:radial-gradient(ellipse at 24% 15%,#34383216,transparent 44%),radial-gradient(ellipse at 78% 0%,#30332f18,transparent 42%)}

/* Inactive luminaries retain their natural colors without emitting light. */
body .frame .display-mode-button[data-display-mode-control=day] svg{color:#d6b36b}
body .frame .display-mode-button[data-display-mode-control=night] svg{color:#b9cbdc}
body .frame .display-mode-button[data-display-mode-control]:not(.luminary-selected):not(.luminary-highlight),body .frame .display-mode-button[data-display-mode-control]:not(.luminary-selected):not(.luminary-highlight) svg{filter:none;text-shadow:none;box-shadow:none}
body .frame .display-mode-button[data-display-mode-control=day]:is(.luminary-selected,.luminary-highlight) svg{color:#f3d28a;filter:drop-shadow(0 0 3px #ffc75b)}
body .frame .display-mode-button[data-display-mode-control=night]:is(.luminary-selected,.luminary-highlight) svg{color:#d9edff;filter:drop-shadow(0 0 3px #8abfff)}

body .frame nav .altar-link:focus-visible{outline:1px solid #b9cbdc99;outline-offset:4px}

/* Reference: restrained pinpoints, soft blue-white light, no large starbursts. */
.dipper-star{width:2px;height:2px;background:#b5cce1;box-shadow:0 0 2px .3px #b0cce18c,0 0 4px 1px #7a9cb53b}
.dipper-star::after{display:none}
.dipper-star.dipper-lit{background:#e8d4a0;box-shadow:0 0 2px .3px #e8d4a08c,0 0 5px 1px #d8b66b40}
html[data-display-mode=day] .dipper-star{background:#7c8d9e;box-shadow:0 0 2px #8399b655}
html[data-display-mode=day] .dipper-star.dipper-lit{background:#a67830;box-shadow:0 0 3px #c7995166}
.background-star-field{position:absolute;inset:0;pointer-events:none}
.background-star{position:absolute;display:block;border-radius:50%;background:#afc2d2;box-shadow:0 0 2px .4px #8fa9c15c;pointer-events:none}
html[data-display-mode=day] .background-star-field{opacity:.2}
/* Larger Dipper points; the surrounding star field remains faint and small. */
.dipper-star{width:3.5px;height:3.5px;box-shadow:0 0 3px .5px #b0cce19c,0 0 6px 1px #7a9cb54a}
.dipper-star.dipper-lit{box-shadow:0 0 3px .5px #e8d4a09c,0 0 6px 1px #d8b66b50}

/* Day mode uses the same smooth edge-to-center transparency profile. */
html[data-display-mode=day] body .frame{background:linear-gradient(90deg,rgba(238,232,220,0.0000) 0%,rgba(238,232,220,0.0000) 2%,rgba(238,232,220,0.6000) 7%,rgba(238,232,220,0.7800) 15%,rgba(238,232,220,0.8200) 28%,rgba(238,232,220,0.8600) 40%,rgba(238,232,220,0.8800) 50%,rgba(238,232,220,0.8600) 60%,rgba(238,232,220,0.8200) 72%,rgba(238,232,220,0.7800) 85%,rgba(238,232,220,0.6000) 93%,rgba(238,232,220,0.0000) 98%,rgba(238,232,220,0.0000) 100%)!important}
/* The bottom rule follows the header's horizontal transparency profile. */
body .frame{border-bottom-color:transparent!important;border-image-source:linear-gradient(90deg,rgba(255,255,255,0.0000) 0%,rgba(255,255,255,0.0000) 2%,rgba(255,255,255,0.1375) 7%,rgba(255,255,255,0.1800) 15%,rgba(255,255,255,0.1950) 28%,rgba(255,255,255,0.2050) 40%,rgba(255,255,255,0.2150) 50%,rgba(255,255,255,0.2050) 60%,rgba(255,255,255,0.1950) 72%,rgba(255,255,255,0.1800) 85%,rgba(255,255,255,0.1375) 93%,rgba(255,255,255,0.0000) 98%,rgba(255,255,255,0.0000) 100%);border-image-slice:1;border-image-width:0 0 1px 0;border-image-repeat:stretch}
html[data-display-mode=day] body .frame{border-image-source:linear-gradient(90deg,rgba(139,126,103,0.0000) 0%,rgba(139,126,103,0.0000) 2%,rgba(139,126,103,0.2280) 7%,rgba(139,126,103,0.2964) 15%,rgba(139,126,103,0.3116) 28%,rgba(139,126,103,0.3268) 40%,rgba(139,126,103,0.3344) 50%,rgba(139,126,103,0.3268) 60%,rgba(139,126,103,0.3116) 72%,rgba(139,126,103,0.2964) 85%,rgba(139,126,103,0.2280) 93%,rgba(139,126,103,0.0000) 98%,rgba(139,126,103,0.0000) 100%)}

/* Atmosphere uses the same header background, without a second ungraded layer. */
html:not([data-display-mode=day]) .cave-sky{background:none}

/* Aion remains unshaded: exclude his exact alpha silhouette from the hover veil. */
body>.arrow-hover-top{
 mask-image:linear-gradient(#fff,#fff),var(--aion-mask-image);
 mask-size:100% 100%,var(--aion-mask-width) var(--aion-mask-height);
 mask-position:0 0,var(--aion-mask-x) var(--aion-mask-y);
 mask-repeat:no-repeat;mask-composite:exclude;mask-mode:alpha;
}
body .frame nav .aion-home:is(:hover,:focus-visible){filter:none;box-shadow:none}
body .frame nav .aion-home:is(:hover,:focus-visible) .header-aion{filter:none}
html[data-display-mode=day] body .frame nav .aion-home:is(:hover,:focus-visible) .header-aion{filter:invert(1)}

/* Quiet resting shadows on sidebar controls, in addition to the panel shadow. */
.collection-sidebar{--sidebar-rest-shadow:0 2px 7px #00000020,0 5px 12px #00000014}
html[data-display-mode=day] .collection-sidebar{--sidebar-rest-shadow:0 2px 7px #392c1b12,0 5px 12px #392c1b0c}
.collection-sidebar :is(.collection-tools,.feature-search,.combo-trigger,.segmented,.feature-filters>summary,.sidebar-record-options>summary,.motifs label,.sidebar-inclusions label){box-shadow:var(--sidebar-rest-shadow)}
.collection-sidebar :is(.collection-tools,.feature-search):is(:hover,:focus-within),.collection-sidebar .combo-trigger:is(:hover,:focus-visible){box-shadow:var(--sidebar-rest-shadow),0 0 12px var(--sidebar-glow),inset 0 0 8px var(--sidebar-glow)}
/* Slightly brighter gallery hover halo; preserve the resting shadow and motion. */
body .collection-main .gallery-object:is(:hover,:focus-within,.features-open){box-shadow:0 0 0 1px #e4efffb3,0 0 28px #d8eaff80,0 14px 38px #0008}
/* A small opacity increase for the gray card captions. */
html:not([data-display-mode=day]) .collection-main .gallery-object .object-caption{background:rgba(32,35,37,.85)}
html:not([data-display-mode=day]) .collection-main .gallery-object:is(:hover,:focus-within,.features-open,:has(input:checked)) .object-caption{background:rgba(37,40,43,.90)!important}
