/* The waiting notice and navigation share one fixed header. */
:root {
  --waiting-bar-h: 64px;
  --navigation-h: 104px;
  --navigation-scrolled-h: 68px;
  --header-h: calc(var(--waiting-bar-h) + var(--navigation-h));
  --header-scrolled-h: var(--navigation-scrolled-h);
}

html { scroll-padding-top: calc(var(--header-scrolled-h) + 20px); }
.site-header {
  display: block;
  height: var(--header-h);
  background-size: 100% var(--navigation-h);
  background-position: center bottom;
  background-repeat: no-repeat;
}
.site-header.is-scrolled { height: var(--header-scrolled-h); }
.site-header > .wait-ribbon {
  width: 100%;
  height: var(--waiting-bar-h);
  overflow: hidden;
  transition: height .42s cubic-bezier(.2,.75,.25,1), opacity .2s ease;
}
.site-header.is-scrolled > .wait-ribbon {
  height: 0;
  border-block-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-header .wait-ribbon-inner {
  height: 100%;
  min-height: 0;
  padding-block: 8px;
}
.site-header .wait-ribbon p { min-width: 0; }
.site-header > .header-inner {
  height: var(--navigation-h);
  transition: height .42s cubic-bezier(.2,.75,.25,1);
}
.site-header.is-scrolled > .header-inner { height: var(--navigation-scrolled-h); }
.hero { padding-top: var(--header-h); }
.hero-grid { min-height: calc(max(780px, 100svh) - var(--header-h)); }
.wait-visit-summary { scroll-margin-top: 0; }

/* Reuse the shared buttons; the search and notice buttons stay together. */
.hero-actions {
  position: relative;
  z-index: 4;
  align-items: stretch;
  gap: 10px;
  width: max-content;
  max-width: min(650px, calc(100vw - 64px));
}
.hero-secondary-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.hero-actions button:focus-visible { outline-color: #fff; }
.hero-actions .button {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  padding-inline: 15px;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 860px) {
  :root {
    --waiting-bar-h: 80px;
    --navigation-h: 82px;
    --navigation-scrolled-h: 62px;
  }
  .hero-actions { width: 100%; max-width: 100%; }
}

@media (max-width: 600px) {
  :root {
    --waiting-bar-h: 84px;
    --navigation-h: 74px;
    --navigation-scrolled-h: 58px;
  }
  html[lang="en"] { --waiting-bar-h: 104px; }
  .hero { min-height: 760px; }
  .hero-grid { min-height: calc(760px - var(--header-h)); }
  .hero-actions,
  .hero-secondary-actions { gap: 6px; }
  .hero-actions .button {
    min-height: 44px;
    max-width: 100%;
    padding: 11px 10px;
    font-size: 13px;
  }
  html[lang="en"] .hero-actions .button { font-size: 13px; }
  html[lang="en"] .hero-secondary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    width: 100%;
  }
  html[lang="en"] .hero-secondary-actions .button {
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}

@media (max-width: 360px) {
  :root { --waiting-bar-h: 104px; }
}
