/* Floating navigation: retain the site's existing slate and green colours. */
#navbar {
  top: 16px;
  left: 50%;
  width: calc(100% - 48px);
  max-width: 1376px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(2, 6, 23, .16);
  transition: transform .64s cubic-bezier(.22, .61, .36, 1), opacity .42s ease, box-shadow .4s ease;
  will-change: transform;
}
#navbar.nav-is-hidden {
  transform: translate(-50%, calc(-100% - 36px));
  opacity: 0;
  pointer-events: none;
  transition: transform .52s cubic-bezier(.4, 0, .4, 1), opacity .36s ease, box-shadow .4s ease;
}
.scroll-top-button {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: #16a34a;
  color: white;
  box-shadow: 0 8px 24px rgba(2, 6, 23, .22);
  opacity: 0;
  transform: translateY(28px) scale(.72) rotate(-12deg);
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .36s cubic-bezier(.4, 0, .6, 1), opacity .3s ease, background-color .3s ease, box-shadow .4s ease;
}
.scroll-top-button.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0);
  pointer-events: auto;
  transition: transform .75s cubic-bezier(.16, 1, .3, 1), opacity .45s ease, background-color .3s ease, box-shadow .4s ease;
}
.scroll-top-button.is-visible svg { animation: scroll-top-arrow-enter .7s cubic-bezier(.16, 1, .3, 1) both; }
.scroll-top-ring {
  position: absolute;
  inset: -1px;
  border: 2px solid #22c55e;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
@keyframes scroll-top-arrow-enter {
  from { opacity: 0; translate: 0 9px; }
  35% { opacity: 1; }
  to { opacity: 1; translate: 0 0; }
}
.scroll-top-button.is-visible:active { transform: translateY(0) scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .scroll-top-button:hover { background: #22c55e; box-shadow: 0 12px 28px rgba(2, 6, 23, .26); }
  .scroll-top-button.is-visible:hover { transform: translateY(-2px); }
  .scroll-top-button:hover svg { transform: translateY(-2px); }
  .scroll-top-button.is-visible:active { transform: translateY(0) scale(.96); }
}
.scroll-top-button:focus-visible { outline: 3px solid #22c55e; outline-offset: 4px; }
.scroll-top-button svg { width: 22px; height: 22px; transition: transform .4s cubic-bezier(.22, .61, .36, 1); }
html.is-returning-to-top { scroll-behavior: auto !important; }
#navbar > div:first-child { max-width: none; padding: 0 32px; }
#navbar > div:first-child > div { height: 74px; }
#navbar .nav-brand { border-radius: 8px; text-align: left; }
#navbar .nav-brand:focus-visible { outline: 2px solid #22c55e; outline-offset: 5px; }
#navbar .gallery-desktop-menu { gap: 24px; }
#navbar .gallery-desktop-menu > button[onclick*="foglalas"] { box-shadow: none; min-height: 48px; }
#navbar #mobile-menu {
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  max-height: calc(100dvh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 48px rgba(2, 6, 23, .3);
}
#navbar #mobile-menu > div { padding: 16px; }
#navbar #mobile-menu > div > button:not([onclick*="foglalas"]),
#navbar #mobile-menu > div > a,
#navbar #mobile-menu > div > div { min-height: 48px; padding: 12px; }
#navbar #mobile-menu > div > button[onclick*="foglalas"] { margin-top: 12px; min-height: 48px; box-shadow: none; }
#navbar #mobile-menu-btn { border-radius: 12px; min-height: 44px; padding: 10px 12px; }
#navbar #mobile-menu-btn[aria-expanded="true"],
#navbar #mobile-menu-btn:focus-visible { outline: 2px solid #22c55e; outline-offset: 3px; }
.site-main { padding-top: 104px; }
.site-main:has(> #page-home.active) { padding-top: 0; }
@media (max-width: 1179px) {
  #navbar { top: 10px; width: calc(100% - 20px); border-radius: 20px; }
  #navbar > div:first-child { padding: 0 16px; }
  #navbar > div:first-child > div { height: 64px; }
  #navbar .nav-brand > span { font-size: 20px; }
  #navbar .nav-brand > svg { width: 24px; height: 24px; }
  #navbar #mobile-menu { border-radius: 22px; max-height: calc(100dvh - 98px); }
  #navbar #mobile-menu-btn > svg { width: 20px; height: 20px; }
  .site-main { padding-top: 88px; }
  .scroll-top-button { width: 48px; height: 48px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) {
  #navbar > div:first-child { padding: 0 12px; }
  #navbar .nav-brand > span { font-size: 18px; }
  #navbar #mobile-menu-btn { padding: 8px 10px; }
  #navbar #mobile-menu > div { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  #navbar, #navbar.nav-is-hidden, #navbar #mobile-menu, .scroll-top-button, .scroll-top-button.is-visible, .scroll-top-button svg { transition: none; }
  .scroll-top-button.is-visible svg { animation: none; }
}
