:root { --ease: cubic-bezier(.22, 1, .36, 1); }

main[aria-busy="true"] {
  min-height: 100vh;
  min-height: 100svh;
}

#catalogue[aria-busy="true"] {
  min-height: 50vh;
  min-height: 50svh;
}

main[aria-busy="true"] ~ .site-footer {
  visibility: hidden;
}

:where(#header, #dock) { -webkit-tap-highlight-color: transparent; }
:where(#header, #dock) :focus-visible { outline: 2px solid #ff7a1a; outline-offset: 2px; }

html.is-guest :where(#header, #dock) [data-auth="user"],
html:not(.is-guest) :where(#header, #dock) [data-auth="guest"] {
  display: none !important;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.island {
  background: rgba(37, 37, 42, .72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 18px 40px -20px rgba(0, 0, 0, .55);
  max-width: 1400px;
  transition: max-width .6s var(--ease), height .5s var(--ease);
}

@media (min-width: 1024px) {
  #header.is-compact .island { max-width: 1120px; height: 60px; }
}

#navPill { transition: transform .45s var(--ease), width .45s var(--ease); }
#navPill.no-anim { transition: none; }
.hbtn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: #ededee; }

.panel {
  background: rgba(37, 37, 42, .97);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 60px -24px rgba(0, 0, 0, .7);
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  visibility: hidden;
  transition: clip-path .5s var(--ease), opacity .2s ease, visibility 0s .5s;
}

.panel.is-open {
  clip-path: inset(0 -60px -60px -60px);
  opacity: 1;
  visibility: visible;
  transition: clip-path .5s var(--ease), opacity .15s ease, visibility 0s;
}

.panel .stagger {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .4s var(--ease);
}

.panel.is-open .stagger {
  opacity: 1;
  transform: none;
  transition-delay: calc(.08s + var(--i, 0) * 40ms);
}

#overlay { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
#overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
body.lock { overflow: hidden; }
.notif.unread { box-shadow: inset 2px 0 0 #ff7a1a; }

.dock-avatar { background: #3a3a41; color: #ededee; }
.dock-item[aria-current="page"] .dock-avatar { box-shadow: 0 0 0 2px #19191c, 0 0 0 3.5px #ff9447; }
.dock-label { text-overflow: ellipsis; }

.dock {
  background: rgba(37, 37, 42, .78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 18px 40px -16px rgba(0, 0, 0, .6);
}

.dock-item { transition: background-color .35s ease, color .3s ease, padding .45s var(--ease); }
.dock-item:active { transform: scale(.94); }
.dock-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .45s var(--ease), opacity .25s ease, margin .45s var(--ease);
}

.dock-item[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #ededee; padding-right: 16px; }
.dock-item[aria-current="page"] svg { color: #ff9447; }
.dock-item[aria-current="page"] .dock-label { max-width: 90px; opacity: 1; margin-left: 8px; }
