/* =========================================================
   Mavericks-Club — Monza 2026
   Mobile-first club app. Palette sampled from the design.
   ========================================================= */

/* Self-hosted fonts (latin). No Google Fonts round-trip on site.
   Inter = headlines · Lato = copy. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/inter-800.woff2") format("woff2");
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/lato-400.woff2") format("woff2");
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/lato-700.woff2") format("woff2");
}

:root {
  --bg: #12171a;
  --bg-deep: #0c1012;
  --card: #1a2225;
  --card-hover: #202a2e;
  --teal-deep: #183135;
  --teal: #1f5458;
  --input: #151d20;
  --orange: #cb5013;
  --orange-hover: #b34410;
  /* Brand gold, taken straight from the logo SVG. */
  --gold: #e2b951;
  --gold-rgb: 226, 185, 81;
  /* Dress-code card — sampled from the location mock. */
  --berry: #2b2430;
  --berry-line: rgba(226, 185, 81, 0.28);

  --text: #f2f4f5;
  --muted: #8e9599;
  --muted-teal: #a9b7b7;

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  --r-lg: 16px;
  --r-md: 14px;
  --r-sm: 10px;

  --pad: 16px;
  --col: 430px;
  --topbar-h: 64px;
  /* Homescreen / notch: 0 in normal Safari chrome, non-zero in standalone. */
  --safe-top: env(safe-area-inset-top, 0px);
  --topbar-offset: calc(var(--topbar-h) + var(--safe-top));

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-copy: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-headline: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  /* clip does not turn the other axis into a second scroller the way
     overflow-x:hidden on html+body did (that left tall empty scroll on iOS). */
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-copy);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.hero__title,
.tile__title,
.highlight__title,
.early__title,
.sheet__title,
.sheet__nav-title,
.nowcard__title,
.schedule__session,
.svc__name,
.day__weekday,
.always__title,
.fact__title,
.berry__title,
.lightbox__title {
  font-family: var(--font-headline);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: var(--gold);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Phone-shaped column, centred on wider screens */
.app {
  position: relative;
  max-width: var(--col);
  /* svh = visible viewport with chrome showing — avoids phantom height under iOS. */
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  background: var(--bg);
  overflow-x: clip;
}

@media (min-width: 520px) {
  body {
    background: radial-gradient(120% 60% at 50% 0%, #1a2226 0%, var(--bg-deep) 70%);
  }

  .app {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Height grows with the status bar; box-sizing would otherwise crush the logo. */
  height: var(--topbar-offset);
  padding: var(--safe-top) var(--pad) 0;
  transition: background-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
}

.topbar.is-stuck {
  background: rgba(18, 23, 26, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  display: block;
  flex: 0 0 auto;
}

.topbar__logo {
  width: min(44vw, 178px);
  height: auto;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.65));
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* One chip instead of a row of pills, so the header holds any number
   of languages. The full list lives in the language sheet. */
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  padding: 0 8px 0 10px;
  border-radius: 7px;
  background: var(--gold);
  color: #12171a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: filter 0.18s var(--ease);
}

.lang-chip:hover {
  filter: brightness(1.08);
}

.lang-chip svg {
  width: 13px;
  height: 13px;
}

.burger {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -6px;
  border-radius: 8px;
  color: var(--text);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
  transition: background-color 0.18s var(--ease);
}

.burger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.burger svg {
  width: 22px;
  height: 22px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(290px, 74vw, 348px);
  margin-top: calc(var(--topbar-offset) * -1);
  padding: calc(var(--topbar-offset) + 24px) var(--pad) 30px;
}

.hero__picture {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 46%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 16, 18, 0.62) 0%,
      rgba(12, 16, 18, 0.28) 26%,
      rgba(15, 20, 22, 0.55) 62%,
      rgba(18, 23, 26, 0.94) 88%,
      var(--bg) 100%
    ),
    linear-gradient(90deg, rgba(12, 16, 18, 0.5) 0%, rgba(12, 16, 18, 0) 62%);
}

.hero__body {
  position: relative;
}

.hero__title {
  margin: 0;
  white-space: pre-line;
  font-size: clamp(31px, 8.6vw, 38px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero__event {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* ---------- Content column ---------- */

.wrap {
  display: grid;
  gap: 22px;
  padding: 0 var(--pad) 8px;
}

/* ---------- Now / Next ---------- */

.schedule {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: -26px;
  border-radius: var(--r-md);
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.schedule__col {
  padding: 13px 16px 14px;
  min-width: 0;
}

.schedule__col + .schedule__col {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.schedule__label {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.schedule__session {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.schedule__time {
  margin: 1px 0 0;
  color: var(--muted-teal);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 156px;
  padding: 15px 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  /* Tiles are a mix of buttons and links; both keep the body colour. */
  color: var(--text);
  background: var(--card);
  text-align: left;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.tile:hover {
  background: var(--card-hover);
  border-color: var(--line-strong);
}

.tile:active {
  transform: scale(0.985);
}

.tile__icon {
  display: block;
  color: var(--gold);
}

.tile__icon svg {
  width: 26px;
  height: 26px;
}

.tile__text {
  display: block;
}

.tile__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.tile__desc {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.36;
}

/* Fills the odd slot when the grid holds an uneven number of tiles. */
.tile--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 0;
  padding: 16px 15px;
}

.tile--wide .tile__text {
  flex: 1 1 auto;
}

.tile--wide .tile__icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- Sunday highlight ---------- */

.highlight {
  padding: 16px 17px 18px;
  border: 1px solid var(--berry-line);
  border-radius: var(--r-lg);
  background: var(--berry);
}

.highlight__label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.highlight__title {
  margin: 0;
  color: var(--gold);
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.highlight__text {
  margin: 8px 0 0;
  color: var(--muted-teal);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- Early Bird ---------- */

.early {
  padding: 16px 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.early__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.early__label-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.early__title {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.early__text {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.52;
}

.early__form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.early__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--input);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}

.early__input::placeholder {
  color: #6f7a7e;
}

.early__input:focus {
  outline: none;
  border-color: rgba(var(--gold-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.12);
}

.early__input[aria-invalid="true"] {
  border-color: #c0563f;
}

.early__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.early__submit {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.early__submit:hover:not(:disabled) {
  background: var(--orange-hover);
}

.early__submit:active:not(:disabled) {
  transform: scale(0.98);
}

.early__submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.early__hint {
  margin: 11px 0 0;
  color: #6f7a7e;
  font-size: 11.5px;
  line-height: 1.45;
}

.early__status {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.early__status[data-state="idle"] {
  display: none;
}

.early__status[data-state="success"] {
  color: #6fd0a8;
}

.early__status[data-state="error"] {
  color: #e5836c;
}

.early__status[data-state="pending"] {
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  padding: 26px var(--pad) calc(30px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer__logo {
  width: 160px;
  height: auto;
  margin: 0 auto;
  opacity: 0.5;
}

.footer__meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer__copy {
  margin: 4px 0 0;
  color: #5d6669;
  font-size: 11.5px;
}

/* ---------- Detail sheet ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  /* Stay in the layout while closing so the slide-down can finish. */
  visibility: hidden;
  pointer-events: none;
}

.sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 10, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.sheet.is-open .sheet__scrim {
  opacity: 1;
}

.sheet__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  max-height: 86dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 20px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  border-radius: 20px 20px 0 0;
  background: #1b2327;
  /* Starts fully below the viewport, then slides up when .is-open lands.
     Avoid left:50% + translateX(-50%) — that overflows the layout box on iOS. */
  translate: 0 100%;
  transition: translate 0.34s var(--ease);
}

.sheet.is-open .sheet__panel {
  translate: 0 0;
}

.sheet__grip {
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.sheet__close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.sheet__close:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.sheet__close svg {
  width: 17px;
  height: 17px;
}

.sheet__eyebrow {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet__title {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.sheet__body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.sheet__day {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sheet__rows {
  display: grid;
  gap: 1px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.sheet__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13.5px;
}

.sheet__row--live {
  background: rgba(31, 84, 88, 0.55);
}

.sheet__row-time {
  flex: 0 0 84px;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sheet__row-name {
  flex: 1 1 auto;
  min-width: 0;
}

.sheet__note {
  margin: 0 0 12px;
  color: #6f7a7e;
  font-size: 12px;
  line-height: 1.5;
}

.sheet__nav {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.sheet__nav-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.sheet__nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

.sheet__nav-item.is-active {
  border-color: rgba(var(--gold-rgb), 0.55);
  background: rgba(var(--gold-rgb), 0.1);
}

.sheet__nav-title {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sheet__nav-item.is-active .sheet__nav-title {
  color: var(--gold);
}

.sheet__nav-desc {
  flex: 1 1 100%;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.sheet__nav-code {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sheet__nav-item.is-active .sheet__nav-code {
  color: var(--gold);
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.sheet__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.18s var(--ease);
}

.sheet__btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sheet__btn--primary {
  background: var(--orange);
  color: #fff;
}

.sheet__btn--primary:hover {
  background: var(--orange-hover);
}

/* =========================================================
   Sub-page: Food & drinks
   Only tokens from the palette above — no new colours.
   ========================================================= */

/* Shorter than the home hero — a sub-page leads with its content. */
.hero--page {
  min-height: clamp(212px, 54vw, 262px);
  padding-bottom: 20px;
}

.hero__img--food {
  object-position: 50% 55%;
}

.page .wrap {
  padding-top: 14px;
}

/* Sub-pages without a full-bleed hero sit below the sticky topbar. */
.page--plain {
  padding-top: 16px;
}

.page--plain .wrap {
  padding-top: 0;
}

.page__title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(27px, 7.4vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.page__intro {
  margin: 0;
  color: var(--muted-teal);
  font-size: 14px;
  line-height: 1.45;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  transition: color 0.18s var(--ease);
}

.back:hover {
  color: var(--gold);
}

.back svg {
  width: 15px;
  height: 15px;
}

.back--plain {
  margin-bottom: 10px;
  color: var(--muted);
  text-shadow: none;
}

.back--plain:hover {
  color: var(--gold);
}

/* ---------- "What can I get right now" ---------- */

.nowcard {
  padding: 14px 16px 16px;
  border-radius: var(--r-md);
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* No service running — the card steps back but still points somewhere. */
.nowcard--quiet {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: none;
}

.nowcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.nowcard__label {
  margin: 0;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nowcard__until {
  color: var(--muted-teal);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nowcard--quiet .nowcard__until {
  color: var(--muted);
}

.nowcard__title {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.nowcard__text {
  margin: 5px 0 0;
  color: var(--muted-teal);
  font-size: 13.5px;
  line-height: 1.4;
}

.nowcard--quiet .nowcard__text {
  color: var(--muted);
}

.nowcard__also {
  margin: 7px 0 0;
  color: var(--muted-teal);
  font-size: 12.5px;
}

.nowcard__jump {
  margin-top: 11px;
  padding: 0;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
}

.nowcard__jump:hover {
  text-decoration: underline;
}

.nowcard__next {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.nowcard--quiet .nowcard__next {
  border-top-color: var(--line);
}

.nowcard__next-time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nowcard__next-name {
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Day switcher ---------- */

.days {
  position: sticky;
  top: var(--topbar-offset);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 calc(var(--pad) * -1);
  padding: 10px var(--pad);
  /* Matches .app so the bar is invisible until it actually sticks. */
  background: var(--bg);
}

.day {
  padding: 9px 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  text-align: center;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.day:hover {
  background: var(--card-hover);
}

.day.is-active {
  border-color: rgba(var(--gold-rgb), 0.45);
  background: var(--teal-deep);
}

.day__weekday {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  text-transform: capitalize;
}

.day__date {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.day.is-active .day__weekday,
.day.is-active .day__date {
  color: var(--gold);
}

.day__today {
  display: block;
  margin-top: 3px;
  color: var(--muted-teal);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Service timeline ---------- */

.timeline {
  display: grid;
  gap: 7px;
}

.svc {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
}

.svc[open] {
  background: var(--card-hover);
}

.svc.is-live,
.svc.is-live[open] {
  border-color: rgba(var(--gold-rgb), 0.4);
  background: var(--teal-deep);
}

.svc.is-highlight {
  border-color: rgba(var(--gold-rgb), 0.3);
}

/* Finished windows stay readable but stop competing for attention. */
.svc.is-past {
  opacity: 0.45;
}

.svc__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 13px 13px 14px;
  cursor: pointer;
  list-style: none;
}

.svc__head::-webkit-details-marker {
  display: none;
}

.svc--flat .svc__head {
  cursor: default;
}

.svc__time {
  flex: 0 0 46px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.svc.is-past .svc__time {
  color: var(--muted);
}

.svc__label {
  flex: 1 1 auto;
  min-width: 0;
}

.svc__name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.svc__sub {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.svc__when {
  flex: 0 0 auto;
  color: var(--muted-teal);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.svc__marks {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.svc__caret {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: 2px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate 0.2s var(--ease);
}

.svc[open] > .svc__head .svc__caret {
  rotate: -135deg;
  translate: 0 2px;
}

.svc__body {
  padding: 0 14px 14px;
}

.svc__range {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.svc__note {
  margin: 0 0 8px;
  color: var(--muted-teal);
  font-size: 13px;
  line-height: 1.42;
}

.svc__session {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- Dish rows ---------- */

.items {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.item__main {
  flex: 1 1 auto;
  min-width: 0;
}

.item__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Lighter than --muted on purpose: this is read outdoors, in sunlight. */
.item__note {
  display: block;
  margin-top: 1px;
  color: var(--muted-teal);
  font-size: 12.5px;
  line-height: 1.35;
}

.item__marks {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

/* ---------- Chips ---------- */

.chip {
  display: inline-block;
  padding: 2.5px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Gold is reserved for state and for the rare marker, never for bulk tags. */
.chip--now {
  background: var(--gold);
  color: #12171a;
}

.chip--togo,
.chip--live {
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  color: var(--gold);
}

.chip--diet {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-teal);
}

/* ---------- Always available ---------- */

.always {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.always__title {
  margin: 0;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Same rhythm as the timed services above. */
[data-food-always] {
  display: grid;
  gap: 7px;
}

.always__row {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
}

.always__row .svc__head {
  padding: 12px 13px 12px 14px;
}

.legend {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.legend__keys {
  display: block;
  margin-top: 5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Timetable list ---------- */

.tt-list {
  display: grid;
  margin-top: -4px;
  border-top: 1px solid var(--line);
}

.tt-row {
  display: grid;
  grid-template-columns: 76px 3px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.tt-row.is-live {
  margin: 0 calc(var(--pad) * -1);
  padding: 13px var(--pad);
  border-bottom-color: transparent;
  background: var(--teal-deep);
}

.tt-row.is-past {
  opacity: 0.45;
}

.tt-row__time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.tt-row.is-past .tt-row__time {
  color: var(--muted);
}

.tt-row__bar {
  align-self: stretch;
  min-height: 36px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--muted);
}

.tt-row--club .tt-row__bar {
  background: var(--gold);
}

.tt-row__body {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 1px;
}

.tt-row__cat {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tt-row--club .tt-row__cat {
  color: var(--gold);
}

.tt-row__title {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tt-row__detail {
  color: var(--muted-teal);
  font-size: 13px;
  line-height: 1.35;
}

.tt-row .chip--now {
  justify-self: start;
  margin-top: 6px;
}

.tt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.tt-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tt-legend__bar {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--muted);
}

.tt-legend__item--club .tt-legend__bar {
  background: var(--gold);
}

/* =========================================================
   Sub-page: Location & access
   ========================================================= */

.map-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  text-align: left;
}

.map-card:hover .map-card__hint {
  color: var(--gold);
}

.map-card__picture,
.map-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 50% 45%;
}

.map-card__veil {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 16, 18, 0.82) 70%, rgba(12, 16, 18, 0.94) 100%);
  pointer-events: none;
}

.map-card__hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition: color 0.18s var(--ease);
}

.map-card__hint svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: -6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.map-link:hover {
  background: var(--card-hover);
  border-color: rgba(var(--gold-rgb), 0.4);
  color: var(--text);
}

.facts {
  display: grid;
  gap: 22px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.fact {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.fact__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: var(--gold);
}

.fact__icon svg {
  width: 24px;
  height: 24px;
}

.fact__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fact__title {
  font-family: var(--font-headline);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fact__text {
  color: var(--muted-teal);
  font-size: 13.5px;
  line-height: 1.45;
}

.berry {
  margin-top: 4px;
  padding: 18px 16px 16px;
  border: 1px solid var(--berry-line);
  border-radius: var(--r-md);
  background: var(--berry);
}

.berry__title {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.berry__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.berry__list li {
  color: var(--muted-teal);
  font-size: 13.5px;
  line-height: 1.45;
}

.berry__list strong {
  color: var(--text);
  font-weight: 700;
}

/* ---------- Map lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  visibility: hidden;
  pointer-events: none;
}

.lightbox.is-open {
  visibility: visible;
  pointer-events: auto;
}

.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 10, 0.78);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.lightbox.is-open .lightbox__scrim {
  opacity: 1;
}

.lightbox__panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: var(--col);
  max-height: 100%;
  margin-inline: auto;
  overflow: hidden;
  background: var(--bg);
  translate: 0 100%;
  transition: translate 0.34s var(--ease);
}

.lightbox.is-open .lightbox__panel {
  translate: 0 0;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 10px 18px;
  border-bottom: 1px solid var(--line);
}

.lightbox__title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
}

.lightbox__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
}

.lightbox__stage {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  background: var(--bg-deep);
  /* Vertical pan + pinch only — no sideways page drag on iOS. */
  touch-action: pan-y pinch-zoom;
}

.lightbox__stage picture {
  display: block;
  width: 100%;
  max-width: 100%;
}

.lightbox__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  touch-action: pan-y pinch-zoom;
}

.lightbox__note {
  margin: 0;
  padding: 10px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

/* ---------- Motion ---------- */

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hero__body,
.schedule,
.nowcard,
.tile,
.highlight,
.early {
  animation: rise 0.5s var(--ease) both;
}

.schedule,
.nowcard {
  animation-delay: 0.06s;
}

.tile:nth-child(1) {
  animation-delay: 0.1s;
}
.tile:nth-child(2) {
  animation-delay: 0.14s;
}
.tile:nth-child(3) {
  animation-delay: 0.18s;
}
.tile:nth-child(4) {
  animation-delay: 0.22s;
}
.tile:nth-child(5) {
  animation-delay: 0.26s;
}

.highlight {
  animation-delay: 0.32s;
}

.early {
  animation-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
}

/* =========================================================
   Admin — timetable editor (same tokens, no public link)
   ========================================================= */

.admin-chip {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--berry-line);
  border-radius: 7px;
  background: var(--berry);
  color: var(--gold);
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-login {
  padding: 18px 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.admin-login__label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-login__title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
}

.admin-login__text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.admin-login__form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.admin-login__input {
  flex: 1 1 auto;
}

.admin-status {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.admin-status[data-state="idle"] {
  display: none;
}

.admin-status[data-state="success"] {
  color: #6fd0a8;
}

.admin-status[data-state="error"] {
  color: #e5836c;
}

.admin-status[data-state="pending"] {
  color: var(--muted);
}

.admin-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
}

.admin-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.admin-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.18s var(--ease);
}

.admin-btn:hover {
  background: var(--orange-hover);
}

.admin-btn--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.admin-btn--ghost:hover {
  background: var(--card-hover);
}

.admin-btn--small {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-btn--block {
  width: 100%;
  margin-top: 4px;
}

.admin-days {
  margin: 8px 0 0;
}

.admin-featured {
  margin-top: 6px;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}

.admin-featured__label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-featured__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-featured__row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.admin-event {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}

.admin-event__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-event__index {
  color: var(--gold);
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-event__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

.admin-field:nth-child(5),
.admin-field:nth-child(6),
.admin-field:nth-child(7),
.admin-field:nth-child(8) {
  grid-column: 1 / -1;
}

.admin-select {
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text);
  font-size: 13.5px;
}

.admin-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.admin-event__note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

@media (max-width: 380px) {
  .admin-login__form {
    flex-direction: column;
  }

  .admin-featured__row,
  .admin-event__grid {
    grid-template-columns: 1fr;
  }

  .admin-field:nth-child(n) {
    grid-column: auto;
  }
}
