/* Homepage refinements only. Other pages retain their current navigation. */
body[data-page=home] .language-pill{display:inline-flex;align-items:center;padding:3px;border:1px solid #c9dbe83d;border-radius:24px;background:#0c162640;flex-shrink:0}
body[data-page=home] .language-pill a{display:grid;place-items:center;min-width:46px;min-height:44px;padding:4px 10px;border-radius:20px;font-size:12px;line-height:1.2;color:#bdc8d8;transition:background .2s,color .2s}
body[data-page=home] .language-pill a[aria-current]{background:#e5f0f3;color:#101b2a;font-weight:700}
body[data-page=home] .venue-map-link{text-decoration:underline;text-decoration-color:#b3c9d560;text-underline-offset:5px}
body[data-page=home] .venue-map-link:hover{color:#e1fff8;text-decoration-color:currentColor}
body[data-page=home] .miva-footer{background:#03050c!important;border-top:1px solid #ffffff18}
@media(max-width:700px){
 body[data-page=home] .site-header{min-height:76px;gap:12px}
 body[data-page=home] .site-header .brand img{width:68px;height:48px}
 body[data-page=home] .nav-shell{background:linear-gradient(180deg,#03071bc9,#03071b70)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom-color:#ffffff0c;box-shadow:none}
 body[data-page=home] .nav-shell:has(#main-nav.open){background:#080e20f5!important}
 body[data-page=home] .language-pill a{min-width:42px;min-height:44px;padding:4px 8px}
 body[data-page=home] .chapter-top>p{font-size:clamp(22px,6.2vw,29px);line-height:1.5;font-weight:500;color:#f2f7ff;opacity:1}
 body[data-page=home] .chapter-top{opacity:1!important;transform:none!important}
 body[data-page=home] .association-body>.record-actions,body[data-page=home] .highlight-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px 18px;width:100%}
 body[data-page=home] .record-actions .text-action,body[data-page=home] .highlight-actions .text-action{font-size:13px;line-height:1.6;gap:7px;margin:0;min-width:0;min-height:60px;align-items:center}
 body[data-page=home] .record-actions .text-action svg,body[data-page=home] .highlight-actions .text-action svg{width:17px;height:17px}
 body[data-page=home] .highlight-actions .text-action:last-child{grid-column:1/-1;justify-self:start}
 body[data-page=home] .hero-context{display:inline-block;color:#c9d8e5;background:linear-gradient(100deg,#b9cfdf 28%,#efffff 40%,#ffffff 49%,#dcfff8 56%,#b9cfdf 72%);background-size:300% 100%;background-position:0% 50%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
 body[data-page=home].motion-on:not(.motion-paused) .hero-context{animation:miva-title-light 4.8s ease-in-out infinite}
 @keyframes miva-title-light{0%,12%{background-position:0% 50%}74%,100%{background-position:100% 50%}}
}
@media(prefers-reduced-motion:reduce){body[data-page=home] .hero-context{animation:none!important;background:none;-webkit-text-fill-color:currentColor}body[data-page=home] .language-pill a{transition:none}}

/* Keep the existing floating back-to-top enhancement; hide only its inline source. */
body[data-page=home] .page-end-controls{display:none}

/* V34: the old top fade must sit behind content, not darken its text. */
body[data-page=home] .story-event>.wrap{position:relative;z-index:1}
body[data-page=home] .chapter-top>p{color:#f2f7ff;-webkit-text-fill-color:#f2f7ff;opacity:1}
/* V34: smaller visual pill, unchanged 44px touch height. */
body[data-page=home] .language-pill{position:relative;isolation:isolate;border:0;background:none;padding:0 3px;min-height:44px}
body[data-page=home] .language-pill:before{content:'';position:absolute;inset:5px 0;z-index:-1;border:1px solid #c9dbe83d;border-radius:20px;background:#0c162640}
body[data-page=home] .language-pill a{position:relative;isolation:isolate;min-width:44px;min-height:44px;padding:0 5px;font-size:11px}
body[data-page=home] .language-pill a[aria-current]{background:none}
body[data-page=home] .language-pill a[aria-current]:before{content:'';position:absolute;inset:8px 0;z-index:-1;background:#e5f0f3;border-radius:18px}
@media(max-width:700px){
 body[data-page=home] .hero-context{filter:drop-shadow(0 0 5px #a6eee540) drop-shadow(0 0 13px #a6bafc30)}
 body[data-page=home].motion-on:not(.motion-paused) .hero-context{animation:miva-title-light 4.8s ease-in-out infinite,miva-title-glow 4.8s ease-in-out infinite}
 @keyframes miva-title-glow{0%,100%{filter:drop-shadow(0 0 4px #a6eee538) drop-shadow(0 0 12px #a6bafc24)}45%,58%{filter:drop-shadow(0 0 7px #d7fff9a0) drop-shadow(0 0 19px #b8caff70)}}
}
@media(prefers-reduced-motion:reduce){body[data-page=home] .hero-context{animation:none!important;filter:drop-shadow(0 0 5px #a6eee540)}}
/* V37: shared title light language on all viewport sizes. */
@keyframes miva-title-light{0%,12%{background-position:0% 50%}74%,100%{background-position:100% 50%}}
@keyframes miva-title-glow{0%,100%{filter:drop-shadow(0 0 4px #a6eee538) drop-shadow(0 0 12px #a6bafc24)}45%,58%{filter:drop-shadow(0 0 7px #d7fff9a0) drop-shadow(0 0 19px #b8caff70)}}
body[data-page=home] :is(.hero-context,.hero-content h1 span){color:#e1edf5;background:linear-gradient(100deg,#c6dbe9 28%,#efffff 40%,#ffffff 49%,#dcfff8 56%,#c6dbe9 72%);background-size:300% 100%;background-position:0% 50%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 5px #a6eee540) drop-shadow(0 0 13px #a6bafc30)}
body[data-page=home].motion-on:not(.motion-paused) :is(.hero-context,.hero-content h1 span){animation:miva-title-light 4.8s ease-in-out infinite,miva-title-glow 4.8s ease-in-out infinite}
body[data-page=home]:not(.motion-on) :is(.hero-context,.hero-content h1 span),body[data-page=home].motion-paused :is(.hero-context,.hero-content h1 span){animation:none!important;background:none;-webkit-text-fill-color:currentColor}
@media(prefers-reduced-motion:reduce){body[data-page=home] :is(.hero-context,.hero-content h1 span){animation:none!important;background:none;-webkit-text-fill-color:currentColor;filter:drop-shadow(0 0 5px #a6eee540)}}
/* V39: opaque text stays readable even if the animated gradient layer drops a frame. */
body[data-page=home] :is(.hero-context,.hero-content h1>span){position:relative;color:#dcebf4;-webkit-text-fill-color:#dcebf4;background:none!important;filter:none!important;animation:none!important;text-shadow:0 0 10px #a6eee538,0 0 24px #a6bafc24}
body[data-page=home] :is(.hero-context,.hero-content h1>span)::after{content:attr(data-light);position:absolute;inset:0;pointer-events:none;color:transparent;-webkit-text-fill-color:transparent;background:linear-gradient(100deg,transparent 30%,#e5fff7 47%,white 51%,transparent 65%);background-size:300% 100%;background-clip:text;-webkit-background-clip:text;text-shadow:none;opacity:.75}
body[data-page=home].motion-on:not(.motion-paused) :is(.hero-context,.hero-content h1>span)::after{animation:miva-title-light 4.8s ease-in-out infinite}
body[data-page=home]:not(.motion-on) :is(.hero-context,.hero-content h1>span)::after,body[data-page=home].motion-paused :is(.hero-context,.hero-content h1>span)::after{display:none}
@media(prefers-reduced-motion:reduce){body[data-page=home] :is(.hero-context,.hero-content h1>span)::after{display:none;animation:none!important}}
