/* Wellness Pod Company events.
   Matches the main site: black, white, Orbitron headings, Space Grotesk text,
   with the pod red and green doing the Christmas work. */
@font-face {
  font-family: 'Orbitron';
  src: url('/fonts/orbitron-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Orbitron';
  src: url('/fonts/orbitron-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* brand */
  --green: #8be23a;
  --blue: #4fc3f7;
  --red: #e53935;
  /* surface (public pages are dark, like the main site) */
  --bg: #000000;
  --fg: #ffffff;
  --soft: rgb(255 255 255 / 0.8);
  --muted: rgb(255 255 255 / 0.66);
  --card: #141414;
  --line: rgb(255 255 255 / 0.16);
  --line-soft: rgb(255 255 255 / 0.08);
  --field-bg: #000000;
  --btn-bg: #ffffff;
  --btn-fg: #000000;
  --btn-hover: rgb(255 255 255 / 0.85);
  --error: #ff8a80;
  --display: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 42rem;
  --gutter: clamp(20px, 5vw, 56px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: var(--fg);
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999rem;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: #000;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  z-index: 10;
}

.eyebrow {
  font: 600 0.75rem/1.3 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.25rem;
}
.hero-festive .eyebrow {
  color: #ff5a55; /* the pod red, lifted a touch so small text stays readable on black */
}

/* ---------- Site frame (mirrors the main site's nav and footer) ---------- */

.site-head {
  background: #000;
  border-bottom: 1px solid var(--line-soft);
}
.site-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo img {
  height: 40px;
  width: auto;
}
.site-head nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.site-head nav a {
  position: relative;
  padding: 0.6rem 0.7rem;
  border-radius: 999px;
  font-size: 0.90625rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
}
.site-head nav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.06);
}
.site-head nav a[aria-current='page'] {
  color: #fff;
}
.site-head nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.3rem;
  height: 1px;
  background: #fff;
}
@media (max-width: 26rem) {
  .nav-site {
    display: none;
  }
}
@media (min-width: 48rem) {
  .site-logo img {
    height: 48px;
  }
}

.site-foot {
  margin-top: 5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--soft);
}
.foot-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--gutter) 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2.5rem 2rem;
}
.foot-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 1.1rem;
}
.foot-brand p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 20rem;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.foot-col h2 {
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0.18em;
  color: rgb(255 255 255 / 0.5);
  margin-bottom: 0.4rem;
}
.foot-col a {
  font-size: 0.9375rem;
  color: var(--soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.foot-col a:hover,
.foot-links a:hover {
  color: #fff;
}
.foot-base {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.5);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.foot-links a {
  color: rgb(255 255 255 / 0.6);
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 9vw, 5.5rem) var(--gutter) clamp(2.5rem, 7vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
}
/* Christmas, in the pod's own colours: red and green light on black, with snow
   falling like the star ceiling in the gym. */
.hero-festive {
  padding-top: clamp(4.25rem, 10vw, 6.5rem);
  background-image:
    /* snow is kept faint so a flake never reads as a full stop in the text */
    radial-gradient(circle, rgb(255 255 255 / 0.4) 1.5px, transparent 2.3px),
    radial-gradient(circle, rgb(255 255 255 / 0.26) 1.2px, transparent 1.9px),
    radial-gradient(circle, rgb(255 255 255 / 0.16) 0.9px, transparent 1.4px),
    radial-gradient(70% 80% at 100% 0%, rgb(229 57 53 / 0.42), transparent 70%),
    radial-gradient(55% 65% at 0% 100%, rgb(139 226 58 / 0.14), transparent 70%);
  background-size:
    131px 149px,
    83px 97px,
    47px 59px,
    100% 100%,
    100% 100%;
  background-position:
    18px 30px,
    52px 70px,
    9px 14px,
    0 0,
    0 0;
}
/* A string of fairy lights across the top, one bulb per pod:
   red (Red Light), green (Gym), yellow (Tanning), blue (Oxy). */
.lights {
  --tan: #ffb547; /* the Tanning Pod accent from the site design */
  position: absolute;
  inset: 0 0 auto 0;
  height: 44px;
  background-image:
    radial-gradient(circle at 24px 20px, #ff4a44 4.5px, transparent 5.5px),
    radial-gradient(circle at 24px 20px, rgb(229 57 53 / 0.55), transparent 15px),
    radial-gradient(circle at 72px 27px, #8be23a 4.5px, transparent 5.5px),
    radial-gradient(circle at 72px 27px, rgb(139 226 58 / 0.45), transparent 15px),
    radial-gradient(circle at 120px 20px, var(--tan) 4.5px, transparent 5.5px),
    radial-gradient(circle at 120px 20px, rgb(255 181 71 / 0.45), transparent 15px),
    radial-gradient(circle at 168px 27px, #4fc3f7 4.5px, transparent 5.5px),
    radial-gradient(circle at 168px 27px, rgb(79 195 247 / 0.45), transparent 15px),
    /* the wire, dipping between bulbs */
    radial-gradient(60px 26px at 0 0, transparent 24px, rgb(255 255 255 / 0.28) 25px, transparent 26.5px),
    radial-gradient(60px 26px at 48px 0, transparent 24px, rgb(255 255 255 / 0.28) 25px, transparent 26.5px),
    radial-gradient(60px 26px at 96px 0, transparent 24px, rgb(255 255 255 / 0.28) 25px, transparent 26.5px),
    radial-gradient(60px 26px at 144px 0, transparent 24px, rgb(255 255 255 / 0.28) 25px, transparent 26.5px),
    radial-gradient(60px 26px at 192px 0, transparent 24px, rgb(255 255 255 / 0.28) 25px, transparent 26.5px);
  background-size: 192px 44px;
  background-repeat: repeat-x;
  animation: twinkle 2.6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from {
    opacity: 0.72;
  }
  to {
    opacity: 1;
  }
}
.hero-inner {
  position: relative;
}
.hero-inner {
  max-width: var(--measure);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 8.4vw, 4rem);
  margin-bottom: 1.5rem;
}
.hero-small h1 {
  font-size: clamp(1.625rem, 6vw, 2.75rem);
}
.hero-lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--soft);
  max-width: 34rem;
  text-wrap: pretty;
}
.hero-lede + .hero-lede {
  margin-top: 0.9rem;
}
.hero-price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-weight: 700;
}
.glow-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  transform: translateY(-1px);
}

/* ---------- Booking form ---------- */

.booking,
.panel {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.panel {
  padding-top: clamp(2.5rem, 7vw, 4rem);
}
.panel a,
.hint a,
.check a,
.errors a {
  text-decoration: underline;
}
.page-title {
  font-size: clamp(1.75rem, 6.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}
.panel h2,
.prose h2 {
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  margin: 2.25rem 0 0.75rem;
}
.panel p,
.panel li {
  color: var(--soft);
}

.step {
  padding-top: clamp(2.5rem, 7vw, 3.5rem);
}
.step > h2 {
  font-size: clamp(1.25rem, 4.6vw, 1.75rem);
  margin-bottom: 0.75rem;
}
.hint,
.field-hint {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 0.6rem;
}

.errors {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: rgb(229 57 53 / 0.12);
  border: 1px solid rgb(229 57 53 / 0.55);
  border-radius: 12px;
}
.errors p {
  font-weight: 700;
  color: var(--error);
  margin-bottom: 0.4rem;
}
.errors p:last-child {
  margin-bottom: 0;
}
.errors ul {
  margin: 0 0 0.4rem;
  padding-left: 1.2rem;
}

/* Day switcher */
.day-tabs {
  display: flex;
  gap: 0.6rem;
  margin: 1.25rem 0 0.25rem;
}
.day-tab {
  flex: 1;
  font: 700 0.9375rem var(--body);
  padding: 0.85rem 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.day-tab:hover {
  border-color: #fff;
}
.day-tab[aria-pressed='true'] {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.day {
  margin-top: 1.5rem;
}
.day-title {
  font-size: 1rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.9rem;
}
.day-left {
  font: 400 0.9375rem var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.hour {
  margin-top: 1.25rem;
}
.hour-label {
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

/* The advent-calendar doors: one per visit */
.doors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media (min-width: 30rem) {
  .doors {
    grid-template-columns: repeat(6, 1fr);
  }
}
.door {
  position: relative;
  display: block;
  cursor: pointer;
}
.door input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.door-face {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.2;
  padding-top: 18%;
  background: var(--card);
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px 999px 8px 8px;
  color: #fff;
  transition:
    border-color 150ms,
    background-color 150ms,
    transform 150ms;
}
/* door knob */
.door-face::after {
  content: '';
  position: absolute;
  right: 13%;
  top: 64%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.door-time {
  /* body font, not the display one: its 7s and slashed zeros were slow to read */
  font: 600 1.0625rem/1 var(--body);
}
.door-tick {
  position: absolute;
  top: 16%;
  left: 0;
  right: 0;
  text-align: center;
  font: 700 0.9375rem/1 var(--body);
  opacity: 0;
}
.door input:checked + .door-face .door-tick {
  opacity: 1;
}
.door:hover input:not(:disabled) + .door-face {
  border-color: #fff;
  transform: translateY(-2px);
}
.door input:checked + .door-face {
  background: var(--red);
  border-color: var(--red);
  color: #000;
  box-shadow:
    0 0 0 3px rgb(229 57 53 / 0.35),
    0 0 28px rgb(229 57 53 / 0.55);
}
.door input:checked + .door-face .door-time {
  font-weight: 700;
}
.door input:checked + .door-face::after {
  background: #000;
  box-shadow: none;
}
.door input:focus-visible + .door-face {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.door-gone {
  cursor: not-allowed;
}
.door-gone .door-face {
  background: transparent;
  border: 1px dashed rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.3);
}
.door-gone .door-time {
  text-decoration: line-through;
}
.door-gone .door-face::after {
  display: none;
}

/* ---------- Doors that open ---------- */
/* Each bookable door has a leaf that swings inward on its left hinge when chosen and
   carries on out of sight, leaving a clean lit doorway. The time is printed on the leaf
   and again inside, so it stays readable the whole way through. Chosen = open, red, ticked. */
.door,
.count-option {
  -webkit-tap-highlight-color: transparent; /* no blue flash on phones; the door itself responds */
}
.door-face {
  perspective: 560px;
  /* keep the swinging leaf inside the arch; isolation makes Safari honour the rounded clip */
  overflow: hidden;
  isolation: isolate;
}
.door:not(.door-gone) .door-face {
  background: radial-gradient(circle at 50% 62%, #6d1a16, #1c0706 78%);
  transition:
    border-color 150ms,
    background-color 420ms ease-out,
    box-shadow 420ms ease-out,
    transform 150ms;
}
.door:not(.door-gone) .door-face::after {
  display: none; /* the knob lives on the leaf now */
}
.door-leaf {
  position: absolute;
  inset: -1px;
  display: grid;
  place-items: center;
  padding-top: 18%;
  background: var(--card);
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: inherit;
  color: #fff;
  font: 600 1.0625rem/1 var(--body);
  transform-origin: left center;
  backface-visibility: hidden;
  transition:
    transform 520ms cubic-bezier(0.33, 0.9, 0.3, 1),
    filter 520ms ease-out,
    border-color 150ms;
}
.door-leaf::after {
  content: '';
  position: absolute;
  right: 13%;
  top: 64%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.door:hover input:not(:disabled) + .door-face .door-leaf {
  border-color: #fff;
}
@media (hover: hover) {
  /* a peek of light before you commit */
  .door:hover input:not(:checked):not(:disabled) + .door-face .door-leaf {
    transform: rotateY(18deg);
  }
}
.door input:checked + .door-face {
  background: var(--red);
  /* a soft shadow down the hinge side, so it reads as a doorway and not a flat tile */
  box-shadow:
    inset 13px 0 14px -11px rgb(0 0 0 / 0.55),
    0 0 0 3px rgb(229 57 53 / 0.35),
    0 0 28px rgb(229 57 53 / 0.55);
}
.door input:checked + .door-face .door-leaf {
  transform: rotateY(108deg); /* past edge-on, so it disappears instead of leaving a sliver */
  filter: brightness(0.45); /* the leaf falls into shadow as it turns away */
}
/* the tick lands once the door is most of the way open */
.door-tick {
  transform: scale(0.5);
  transition:
    opacity 160ms,
    transform 260ms cubic-bezier(0.3, 1.4, 0.5, 1);
}
.door input:checked + .door-face .door-tick {
  transform: scale(1);
  transition-delay: 240ms;
}

/* Number of children */
.count {
  border: 0;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
}
.count legend {
  font-size: 0.875rem;
  color: var(--soft);
  padding: 0;
  margin-bottom: 0.5rem;
}
.count-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.count-option {
  position: relative;
  cursor: pointer;
}
.count-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.count-face {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  transition: border-color 150ms;
}
.count-option:hover .count-face {
  border-color: #fff;
}
.count-n {
  font: 700 1.75rem/1 var(--display);
}
.count-price {
  font-weight: 600;
  color: var(--muted);
}
.count-option input:checked + .count-face {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.count-option input:checked + .count-face .count-price {
  color: rgb(0 0 0 / 0.7);
}
.count-option input:focus-visible + .count-face {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Fields */
.field {
  margin-bottom: 1.15rem;
}
.field label,
.checks legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--soft);
  margin-bottom: 0.4rem;
  padding: 0;
}
.field-hint {
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='password'],
input[type='datetime-local'],
select,
textarea {
  width: 100%;
  font: 500 1rem var(--body);
  color: var(--fg);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  min-height: 3rem;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--fg);
}
textarea {
  resize: vertical;
}
input[type='file'] {
  width: 100%;
  font: 500 0.9375rem var(--body);
  color: var(--soft);
  padding: 1rem;
  background: var(--card);
  border: 1px dashed rgb(255 255 255 / 0.3);
  border-radius: 12px;
}
.checks {
  border: 0;
  padding: 0;
  margin: 0 0 1.15rem;
}
.check {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0 0 0.75rem;
  color: var(--soft);
  cursor: pointer;
}
.check input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.1rem 0 0;
  accent-color: var(--green);
}
.hp {
  position: absolute;
  left: -999rem;
}

.pay {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
}
.pay-summary {
  font: 700 1.0625rem/1.3 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.pay-summary:empty {
  display: none;
}
.pay-summary.is-missing {
  color: var(--error);
}
.pay .hint,
.panel form + .hint {
  margin-top: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  font: 700 0.9375rem var(--body);
  text-decoration: none !important;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: 8px;
  padding: 1.1rem 1.75rem;
  cursor: pointer;
  transition:
    background-color 200ms,
    transform 200ms;
}
.button:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}
.button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.button-quiet {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.button-quiet:hover {
  background: transparent;
  border-color: var(--fg);
}
.button-small {
  width: auto;
  font-size: 0.8125rem;
  padding: 0.45rem 0.9rem;
}
.button-danger {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.button-danger:hover {
  background: var(--red);
  color: #000;
}
@media (min-width: 30rem) {
  .pay .button,
  .panel .button {
    width: auto;
    min-width: 17rem;
  }
}

/* ---------- Confirmation: a gift tag ---------- */

.tag {
  position: relative;
  max-width: 21rem;
  margin: 2rem 0 2.25rem 0.5rem;
  padding: 3.8rem 1.5rem 1.6rem;
  background: var(--red);
  color: #000;
  clip-path: polygon(22% 0, 78% 0, 100% 13%, 100% 100%, 0 100%, 0 13%);
  transform: rotate(-2deg);
}
.tag-hole {
  position: absolute;
  top: 1.15rem;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -0.55rem;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 3px #fff;
}
.tag p {
  margin: 0;
  color: #000;
}
.tag-to {
  font-weight: 700;
  font-size: 1.0625rem;
}
.tag-when {
  font: 700 2.75rem/1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 0.7rem !important;
}
.tag-date {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 0.35rem !important;
}
.tag-facts {
  display: flex;
  gap: 1.5rem;
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1.5px dashed rgb(0 0 0 / 0.55);
}
.tag-facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tag-facts dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.plain {
  margin: 0;
  padding-left: 1.2rem;
}
.plain li {
  margin-bottom: 0.45rem;
}

/* ---------- Admin (light, for reading tables at the door) ---------- */

.admin {
  --bg: #ffffff;
  --fg: #111111;
  --soft: #222222;
  --muted: #5c5c5c;
  --card: #f4f4f4;
  --line: #bdbdbd;
  --line-soft: #e2e2e2;
  --field-bg: #ffffff;
  --btn-bg: #000000;
  --btn-fg: #ffffff;
  --btn-hover: #2a2a2a;
  --error: #b3261e;
  --red: #c62828;
}
.admin a {
  color: #000;
}
.admin :focus-visible {
  outline-color: #000;
}
.admin-head {
  background: #000;
  color: #fff;
  padding: 0.6rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-items: center;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
}
.admin-brand img {
  height: 36px;
  width: auto;
}
.admin-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  align-items: center;
  font-size: 0.9375rem;
}
.admin-head nav a {
  color: rgb(255 255 255 / 0.72);
  text-decoration: none;
}
.admin-head nav a:hover {
  color: #fff;
}
.admin-head nav a[aria-current='page'] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
.admin-head :focus-visible {
  outline-color: #fff;
}
.admin-head form {
  margin: 0;
}
.linklike {
  font: inherit;
  color: rgb(255 255 255 / 0.72);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.linklike:hover {
  color: #fff;
}
.admin-main {
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 4rem;
}
.admin-main h1 {
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.admin-main h2 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 2.25rem 0 0.7rem;
}
.login {
  max-width: 22rem;
  margin: 3rem auto;
}
.login h1 {
  margin-bottom: 1.25rem;
}
.flash {
  background: #eef9e2;
  border-left: 5px solid var(--green);
  padding: 0.7rem 1rem;
  font-weight: 500;
}
.warn,
.attention {
  background: #fdecea;
  border-left: 5px solid var(--red);
  padding: 0.7rem 1rem;
}
.admin .errors {
  margin: 0 0 1rem;
  background: #fdecea;
  border-color: var(--red);
  color: var(--error);
  font-weight: 600;
}
.attention h2 {
  margin-top: 0.3rem;
}
.muted {
  color: var(--muted);
  font-size: 0.875rem;
}
.pre {
  white-space: pre-wrap;
  max-width: 44rem;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}
.tabs a {
  padding: 0.55rem 1rem;
  border: 1px solid #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
}
.tabs a[aria-current='page'] {
  background: #000;
  color: #fff;
}
.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}
.grid th,
.grid td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.grid thead th {
  font: 600 0.75rem/1.2 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid #000;
  white-space: nowrap;
}
.grid tbody th {
  white-space: nowrap;
  font-weight: 700;
}
.grid form {
  margin: 0 0 0.35rem;
}
.slots .is-free td {
  color: var(--muted);
}
.slots .is-held {
  background: repeating-linear-gradient(-45deg, transparent 0 8px, rgb(0 0 0 / 0.05) 8px 16px);
}
.slots .is-in {
  background: #eef9e2;
}
.slots .is-pending {
  background: #fff6d6;
}
.slots details {
  margin-top: 0.35rem;
}
.slots summary {
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.875rem;
}
.stack {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  margin: 0.6rem 0 0.9rem !important;
  max-width: 18rem;
}
.stack .check {
  font-size: 0.875rem;
}
.inline-form {
  max-width: 26rem;
}
.pill {
  display: inline-block;
  font: 700 0.75rem/1.4 var(--body);
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  vertical-align: middle;
}
.pill-new {
  background: #fff6d6;
  box-shadow: inset 0 0 0 1px #e0b400;
}
.pill-approved {
  background: #eef9e2;
  box-shadow: inset 0 0 0 1px #5cb51a;
}
.pill-declined {
  background: #f1f1f1;
  box-shadow: inset 0 0 0 1px #bdbdbd;
}
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.6rem;
}
.photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}
.facts {
  margin: 0;
  max-width: 44rem;
}
.facts div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.copyable {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.4rem 0.6rem;
  background: var(--card);
  border-radius: 8px;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
  user-select: all;
}
.decide {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.decide .button {
  width: auto;
}

/* Door check-in list */
.checkin-count {
  font-size: 1.0625rem;
}
.checkin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
}
.checkin-row {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 5rem;
}
.checkin-time {
  font-weight: 700;
  font-size: 1.0625rem;
  white-space: nowrap;
}
.checkin-who {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.checkin-who strong {
  font-size: 1.0625rem;
}
.checkin-who a {
  white-space: nowrap;
}
.checkin-row form {
  margin: 0;
}
.button-checkin {
  width: auto;
  min-width: 6.25rem;
  padding: 0.85rem 1rem;
}
.checkin-row.is-in {
  background: #eef9e2;
}
.checkin-row.is-empty {
  grid-template-columns: 4.6rem 1fr;
  padding-block: 0.45rem;
  color: var(--muted);
}
.checkin-row.is-empty .checkin-time {
  font-weight: 500;
  font-size: 0.9375rem;
}
.checkin-row.is-now {
  box-shadow: inset 5px 0 0 #000;
}

/* ---------- Booking confirmed page ---------- */
.booked .tag {
  margin: 2.25rem auto 2.5rem; /* centred under the heading on phones */
}
.booked-night h2 {
  font-size: 1.125rem;
  margin-bottom: 0.9rem;
}
.booked-night .plain {
  color: var(--soft);
  max-width: 36rem;
}
.booked-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}
@media (min-width: 30rem) {
  .booked-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .booked-actions .button {
    width: auto;
  }
}
@media (min-width: 64rem) {
  .booked-inner {
    max-width: calc(1240px - 2 * var(--gutter));
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .booked h1 {
    font-size: clamp(3.25rem, 4.6vw, 4.5rem);
  }
  .booked-head {
    grid-column: 1;
    grid-row: 1;
  }
  .booked-night {
    grid-column: 1;
    grid-row: 2;
    margin-top: 2.75rem;
  }
  .booked .tag {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 25rem;
    margin: 0;
    padding: 4.6rem 2rem 2rem;
  }
  .booked .tag-when {
    font-size: 3.5rem;
  }
  .booked .tag-to,
  .booked .tag-date {
    font-size: 1.1875rem;
  }
}

/* ---------- Wide screens: booking page ---------- */
/* Phones keep the single column. From laptop width up, the hero lines up with the
   logo and carries the key facts, and the form sits beside the time picker. */
.hero-card {
  display: none;
}
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (min-width: 64rem) {
  .hero-wide .hero-inner {
    max-width: calc(1240px - 2 * var(--gutter));
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: end;
  }
  .hero-wide h1 {
    font-size: clamp(3.25rem, 4.6vw, 4.5rem);
  }
  .hero-wide .hero-price {
    display: none; /* the card on the right carries the price here */
  }
  .hero-card {
    display: block;
    background: rgb(20 20 20 / 0.78);
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 12px;
    padding: 1.6rem 1.6rem 1.5rem;
    backdrop-filter: blur(6px);
  }
  .hero-card dl {
    margin: 0 0 1.4rem;
  }
  .hero-card dl > div {
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
  }
  .hero-card dl > div:first-child {
    padding-top: 0;
  }
  .hero-card dt {
    font: 700 0.6875rem var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .hero-card dd {
    margin: 0;
    font-weight: 700;
    text-wrap: balance;
  }

  .booking {
    max-width: 1240px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .booking > .errors {
    grid-column: 1 / -1;
  }
  .booking > .step:first-of-type {
    grid-column: 1;
    grid-row: 2 / span 3;
  }
  .booking > .step:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
  }
  .booking > .step:nth-of-type(3) {
    grid-column: 2;
    grid-row: 3;
  }
  .booking > .pay {
    grid-column: 2;
    grid-row: 4;
  }
}

/* ---------- Stall application page ---------- */
/* Phones: one column, the agreement tick sits right above the send button.
   Laptop up: the hero lines up with the form and the form is two even columns. */
.pay-consent {
  margin: 0 0 1.4rem;
}
.stall-notes {
  margin-top: 2.5rem;
}
@media (min-width: 64rem) {
  .hero-stalls h1 {
    font-size: clamp(2.5rem, 3.6vw, 3.25rem);
  }
  .hero-stalls .hero-inner {
    align-items: center;
  }
  .hero-stalls .hero-card dl {
    margin-bottom: 0;
  }
  .hero-stalls .hero-card dl > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .stall-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .admin-head nav,
  .site-head,
  .site-foot {
    display: none;
  }
  .grid {
    display: table;
  }
}
