/* Floating glass navigation; opaque fallback remains readable without backdrop blur. */
html { scroll-padding-top: 116px; }
.header {
  position: fixed;
  inset: 18px auto auto 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 64px));
  height: 86px;
  padding: 12px 22px;
  gap: 20px;
  isolation: isolate;
  border: 1px solid #ffffff30;
  border-radius: 999px;
  background: transparent;
  transition: height .3s ease, top .3s ease, border-color .3s ease;
}
.header:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #101010f5;
  pointer-events: none;
  transition: background .3s ease;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header:before, .mobile-menu {
    background: #0c0c0cc7;
    -webkit-backdrop-filter: blur(20px) saturate(115%);
    backdrop-filter: blur(20px) saturate(115%);
  }
}
.header .brand { flex-direction: column; align-items: center; gap: 3px; }
.header .brand-image { width: 102px; height: 47px; }
.header .brand-image img { width: 113px; top: -29px; left: -5px; }
.header .branch { border: 0; padding: 0; font-size: 9px; line-height: 1.2; letter-spacing: .08em; }
.header .desktop-nav {
  position: relative;
  isolation: isolate;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.desktop-nav>a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 600;
  color: #e1e1d8;
  transition: color .22s ease, background .22s ease;
}
.desktop-nav>a:hover { background: #ffffff0b; color: #fff; }
.desktop-nav>a[aria-current="location"] { color: #080808; background: var(--yellow); }
.desktop-nav.has-active>a[aria-current="location"] { background: transparent; }
.desktop-nav>a:focus-visible { outline-offset: 1px; }
.nav-indicator {
  position: absolute;
  z-index: 0;
  inset: 5px auto 5px 0;
  width: var(--nav-width, 0px);
  transform: translateX(var(--nav-x, 0px));
  background: var(--yellow);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: transform .38s cubic-bezier(.22,.8,.22,1), width .38s cubic-bezier(.22,.8,.22,1), opacity .2s;
}
.desktop-nav.has-active>.nav-indicator { opacity: 1; }
.header .header-book { flex-shrink: 0; min-height: 44px; padding-inline: 20px; font-size: 12px; gap: 18px; }
@media(min-width:1001px) {
  .header.is-compact { top: 12px; height: 68px; padding-block: 8px; border-color: #ffffff26; }
  .header.is-compact:before { background: #0b0b0be6; }
  .header.is-compact .brand-image { transform: scale(.9); }
  .header .brand-image { transition: transform .3s ease; }
}
@media(max-width:1100px) and (min-width:1001px) {
  .header { width: calc(100% - 40px); padding-inline: 18px; gap: 12px; }
  .desktop-nav>a { padding-inline: 10px; }
}
@media(max-width:1000px) {
  html { scroll-padding-top: 100px; }
  .header { top: 12px; width: calc(100% - 32px); height: 72px; padding: 10px 16px; gap: 12px; }
  .header .header-book { margin-left: auto; }
  .header .menu-toggle { flex-shrink: 0; min-width: 44px; min-height: 44px; width: 44px; height: 44px; padding: 10px; border: 1px solid #ffffff38; background: #ffffff08; }
  .header .menu-toggle span { width: 22px; }
  .header .mobile-menu {
    position: absolute;
    inset: calc(100% + 12px) 0 auto;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    max-height: calc(100svh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 13px;
    border: 1px solid #ffffff30;
    border-radius: 26px;
    background-color: #101010df;
    animation: nav-panel-in .24s cubic-bezier(.2,.8,.2,1) both;
  }
  .mobile-menu>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 49px;
    padding: 12px 18px;
    border: 0;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ecece4;
    animation: nav-item-in .28s ease both;
    animation-delay: calc(var(--nav-order, 0) * 35ms + 30ms);
  }
  .mobile-menu>a:after { content: '↗'; color: #b4b4a7; font-size: 18px; }
  .mobile-menu>a[aria-current="location"] { color: #080808; background: var(--yellow); }
  .mobile-menu>a[aria-current="location"]:after { color: #080808; }
  .mobile-menu>a:hover { background: #ffffff10; }
  .mobile-menu>a[aria-current="location"]:hover { background: var(--yellow); }
  .mobile-menu>a:focus-visible { outline-offset: -2px; }
}
@media(max-width:640px) {
  .header { width: calc(100% - 24px); top: 10px; height: 68px; padding: 8px 10px; gap: 8px; }
  .header .brand { gap: 7px; }
  .header .brand-image { width: 76px; height: 37px; }
  .header .brand-image img { width: 85px; top: -22px; left: -4px; }
  .header .branch { font-size: 10px; padding-left: 7px; }
  .header .header-book { min-height: 44px; padding-inline: 13px; font-size: 11px; gap: 10px; }
}
@media(max-width:360px) {
  .header .brand-image { width: 64px; height: 33px; }
  .header .brand-image img { width: 73px; top: -19px; }
  .header .header-book { padding-inline: 11px; gap: 7px; }
}
@keyframes nav-panel-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nav-item-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media(prefers-reduced-motion:reduce) {
  .header, .header:before, .header .brand-image, .nav-indicator, .desktop-nav>a { transition: none; }
  .header .mobile-menu, .mobile-menu>a { animation: none; }
}
@media print { .header { display: none; } }
