/* Raised glass, not flashing lights. The dark base keeps the label legible
   even when a button sits in front of bright artwork. */
:root {
  --neon-content:#fffaf1;
  --neon-plain:44px;
}
:is(button,summary,input[type="button"],input[type="submit"],input[type="reset"],[data-neon-control="glass"]) {
  --neon-h:36;
  --neon-border:hsl(var(--neon-h) 88% 75%);
  --neon-depth:hsl(var(--neon-h) 57% 24%);
  --neon-wash:linear-gradient(165deg,hsl(var(--neon-h) 74% 46% / .33),hsl(var(--neon-h) 89% 37% / .17) 63%,hsl(var(--neon-h) 86% 44% / .23)),linear-gradient(#081521ee,#050e17f8);
}
:is(button,summary,input[type="button"],input[type="submit"],input[type="reset"],[data-neon-control="glass"]):not([hidden],[data-no-neon],[data-neon-control="scene"],[data-neon-control="dot"],.holo-dots button) {
  box-sizing:border-box;
  min-block-size:var(--neon-plain) !important;
  min-inline-size:var(--neon-plain);
  border:1px solid var(--neon-border) !important;
  border-radius:.65rem !important;
  background:var(--neon-wash) !important;
  color:var(--neon-content) !important;
  box-shadow:inset 0 1px 0 #ffffff46,inset 0 -3px 7px hsl(var(--neon-h) 78% 56% / .24),0 3px 0 var(--neon-depth),0 4px 11px hsl(var(--neon-h) 85% 57% / .14) !important;
  font-size:max(.875rem,1em);
  font-weight:650;
  text-shadow:0 1px 2px #05080a;
  cursor:pointer;
}
:is(button,summary,input[type="button"],input[type="submit"],input[type="reset"],a,[role="tab"],[role="button"]):not([data-no-neon]):focus-visible {
  outline:3px solid #fff5d0 !important;
  outline-offset:3px !important;
}
[data-neon-control]:not([disabled],[aria-disabled="true"]):is(:hover,:focus-visible) {
  --neon-border:hsl(var(--neon-h) 95% 87%);
}
[data-neon-control]:not([disabled],[aria-disabled="true"]):is(:active,[aria-pressed="true"],[aria-selected="true"],[aria-current="page"]),details[open]>summary[data-neon-control] {
  --neon-border:hsl(var(--neon-h) 95% 86%);
  --neon-wash:linear-gradient(165deg,hsl(var(--neon-h) 72% 50% / .44),hsl(var(--neon-h) 85% 50% / .25)),linear-gradient(#0b1721f9,#0b1721fc);
  box-shadow:inset 0 0 0 2px var(--neon-border),inset 0 -3px 10px #0004 !important;
}
[data-neon-control]:is(:disabled,[aria-disabled="true"]):not([hidden]) {
  opacity:.62;
  cursor:not-allowed;
  filter:saturate(.45);
}
[data-neon-control="scene"] {
  --neon-border:hsl(var(--neon-h) 90% 74%);
  outline:1px solid var(--neon-border);
  outline-offset:-2px;
  box-shadow:inset 0 0 11px hsl(var(--neon-h) 80% 55% / .23),0 2px 0 hsl(var(--neon-h) 66% 26%);
}
.holo-dots button,[data-neon-control="dot"] {
  min-inline-size:20px;
  min-block-size:44px;
  border-color:transparent !important;
  background:transparent !important;
  box-shadow:inset 0 0 0 0 transparent !important;
}
.holo-dots button::before {
  background:hsl(var(--neon-h) 88% 75%);
  box-shadow:0 2px 0 hsl(var(--neon-h) 54% 23%),0 0 7px hsl(var(--neon-h) 85% 67% / .35);
}
.holo-dots button[aria-pressed="true"]::before {outline:2px solid #fffaee;outline-offset:2px}
.portal-home header.portal-banner nav.portal-utilities {gap:6px}
.home-more-panel .portal-menu {margin-block:5px}
.home-more-panel>.portal-nav {border-top:0}
.home-more-panel>a {margin-bottom:5px}
:where(#verse-wayfinder,.view-switch,.touch,.portal-utilities) :is(a,button,summary)[data-neon-control] {
  font-size:.875rem;
}
@media (max-width:480px) {
  .portal-home header.portal-banner nav.portal-utilities {gap:4px}
  .portal-home header.portal-banner nav.portal-utilities>a,.portal-home .home-more>summary {padding-inline:5px;min-inline-size:44px}
}
@media (max-width:360px) {
  .portal-home header.portal-banner .portal-banner-top {gap:4px}
  .portal-home header.portal-banner .brand-mark {width:19px;height:19px}
  .portal-home header.portal-banner .brand-words {font-size:8px}
}
@media (prefers-reduced-motion:reduce) {
  [data-neon-control] {transition:none !important;animation:none !important}
}
@media (prefers-contrast:more) {
  [data-neon-control="glass"] {--neon-wash:#08131e;}
}
@media (forced-colors:active) {
  [data-neon-control]:not([hidden]) {forced-color-adjust:auto;box-shadow:none !important;text-shadow:none;border-color:ButtonText !important}
  [data-neon-control]:focus-visible {outline-color:Highlight !important}
}
/* Keep existing map comfort choices meaningful. */
body.no-glow [data-neon-control]:not([hidden]) {
  box-shadow:0 2px 0 hsl(var(--neon-h) 57% 24%) !important;
}
body.high-contrast [data-neon-control="glass"] {
  --neon-wash:#08131e;
  --neon-border:#fff5d0;
}
@media(max-width:600px) {
  html.portal-home header.portal-banner nav.portal-utilities {gap:4px;min-width:0;max-width:100%;width:auto}
  html.portal-home header.portal-banner nav.portal-utilities>a,
  html.portal-home header.portal-banner nav.portal-utilities>.home-more>summary {
    width:auto;min-width:44px;margin:0;padding:4px 5px;
    font:650 .875rem/1.1 system-ui,sans-serif;letter-spacing:0;text-transform:none;
  }
  html.portal-home header.portal-banner .portal-banner-top {justify-content:space-between}
  html.portal-home header.portal-banner .brand {max-width:100px;min-width:0}
  html.portal-home header.portal-banner .brand-words {font-size:.625rem;letter-spacing:0;white-space:normal}
  body:has(.view-switch)>header {flex-wrap:wrap;gap:10px;padding:14px}
  body:has(.view-switch)>header nav {flex-wrap:wrap;gap:5px;min-width:0}
  body:has(.view-switch)>header nav :is(a,button) {display:inline-flex;align-items:center;margin:0;padding:6px 9px;min-height:44px}
  #verse-wayfinder nav {gap:4px}
}
@media(max-width:340px) {
  html.portal-home header.portal-banner .brand-words {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  html.portal-home header.portal-banner .brand-mark {width:24px;height:24px}
  html.portal-home header.portal-banner .brand {min-width:44px;min-height:44px;justify-content:center}
}
