/* ==========================================================================
   J&M Serenity Spa — style.css
   Clean, organized, and ready for Express/EJS (public/style.css)
   ========================================================================== */


/* ==========================================================================
   1) Design Tokens (Colors, Radius, Shadows)
   ========================================================================== */
:root{
  --bg: #fbfbfc;
  --bg-alt: #f3f5f7;
  --card: #ffffff;

  --text: #14161a;
  --muted: #5b6470;
  --line: #e6e9ee;

  --shadow: 0 10px 28px rgba(20,22,26,.08);
  --shadow-soft: 0 8px 18px rgba(20,22,26,.05);

  --radius: 18px;

  --brand: #1f6f78;   /* teal */
  --brand-2: #114a50; /* deep teal */
  --accent: #b68b5a;  /* warm gold */
}


/* ==========================================================================
   2) Base / Reset
   ========================================================================== */
*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
}

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

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }


/* ==========================================================================
   3) Layout Helpers
   ========================================================================== */
.container{
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.section{ padding: 2.4rem 0; }
.section.alt{
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head{ margin-bottom: 1.2rem; }

.grid{ display:grid; gap:1rem; }
.grid.cards{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Two credential sets shown together, e.g. Square sandbox vs production. Its
   own rule rather than .grid.two, which stays two columns at every width --
   fine for a pair of short boxes, unreadable for two full sets of fields on a
   phone. */
.env-pair{ display:grid; gap:1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px){ .env-pair{ grid-template-columns: 1fr; } }

/* The settings page index. Wraps rather than scrolls, so every section is
   reachable in one tap on a phone. scroll-margin keeps a jumped-to card clear
   of the sticky admin header instead of tucked underneath it. */
.settings-index-link{
  display:inline-block; margin:0 .3rem .35rem 0; padding:.2rem .5rem;
  border:1px solid #dcdcdc; border-radius:999px;
  font-size:.82rem; text-decoration:none; color:#444; background:#fafafa;
}
.settings-index-link:hover{ background:#eee; color:#111; }

/* Callback URLs, webhook addresses and ids printed as code have no space in
   them and so no break opportunity, and one of them drags the page sideways
   on a phone. Breaking mid-token is the right trade for an address nobody
   reads aloud. */
/* Callback URLs, webhook addresses, long ids and email addresses have no
   space in them and so no break opportunity, and one of them is enough to
   drag a whole page sideways on a phone. Breaking mid-token is the right
   trade for a string nobody reads aloud. */
code{ overflow-wrap: anywhere; }
.admin-main .card[id]{ scroll-margin-top: 5rem; }
.service-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.split{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}
.split-actions{ display:flex; gap:.8rem; flex-wrap:wrap; }


/* ==========================================================================
   4) Typography Utilities
   ========================================================================== */
h1{
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height:1.15;
  margin:.6rem 0;
}
h2{
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin:.2rem 0 .6rem;
}
h3{ margin:.15rem 0 .35rem; }

.lead{ font-size:1.1rem; }
.muted{ color: var(--muted); }
.small{ font-size:.92rem; }

.eyebrow{
  display:inline-block;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.8rem;
  color: var(--brand-2);
  background: rgba(31,111,120,.10);
  padding: .35rem .6rem;
  border-radius: 999px;
}


/* ==========================================================================
   5) Buttons
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;

  border-radius: 14px;
  padding: .85rem 1.05rem;

  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;

  text-decoration:none !important;
}

.btn-small{
  padding:.6rem .85rem;
  border-radius: 12px;
  font-size:.92rem;
}

.btn-block{ width:100%; }

.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  box-shadow: 0 10px 22px rgba(31,111,120,.18);
}
.btn-primary:hover{ filter: brightness(1.03); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover{ background:#fff; }


/* ==========================================================================
   6) Header + Navigation (Desktop + Mobile Dropdown)
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,251,252,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: .9rem 0;
  position: relative; /* helps dropdown positioning */
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: .8rem;
  min-width: 0;
  text-decoration:none !important;
}

.brand-logo{
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display:block;
}

.brand-wordmark{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-name{ font-weight:800; }
.brand-tag{ font-size:.85rem; color: var(--muted); }

/* Nav */
.nav{
  display:flex;
  gap:.9rem;
  align-items:center;
  margin-left:auto;
}

.nav-link{
  font-size:.95rem;
  color: var(--muted);
  padding:.4rem .55rem;
  border-radius: 10px;
}

.nav-link:hover{
  background: rgba(31,111,120,.08);
  text-decoration:none;
  color: var(--text);
}

.nav-link.is-active{
  color: var(--text);
  background: #eef3f4;
  text-decoration:none;
}

/* CTA behavior */
.header-cta{ display:inline-flex; }
.nav-cta{ display:none; }

/* Mobile toggle button */
.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  padding:.55rem .7rem;
  border-radius: 12px;
  font-weight:900;
  cursor:pointer;
}


/* ==========================================================================
   7) Hero (Home)
   ========================================================================== */
.hero{
  padding: 3.2rem 0 2.2rem;
  background:
    radial-gradient(900px 400px at 20% 15%, rgba(31,111,120,.10), transparent 60%),
    radial-gradient(900px 420px at 85% 0%, rgba(182,139,90,.10), transparent 55%);
}

.hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1.3rem;
  align-items:stretch;
}

.hero-actions{
  display:flex;
  gap:.8rem;
  flex-wrap:wrap;
  margin-top:1.1rem;
}

.hero-notes{
  display:flex;
  gap: .9rem;
  flex-wrap:wrap;
  margin-top:1.3rem;
}

.note{
  flex: 1 1 220px;
  background: rgba(255,255,255,.7);
  border:1px solid var(--line);
  border-radius: 16px;
  padding: .9rem;
}
.note strong{ display:block; }

/* Hero card */
.hero-card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.85), #fff);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  display:flex;
}
.hero-card-inner{
  padding:1.2rem;
  display:flex;
  flex-direction:column;
  gap:.8rem;
  width:100%;
}
.hero-card-title{ font-weight:800; margin:.2rem 0; }

.checklist{ margin:0; padding-left: 1.1rem; }
.checklist li{ margin:.2rem 0; }


/* ==========================================================================
   8) Page Hero (Internal pages)
   ========================================================================== */
.page-hero{
  padding: 2.4rem 0 1.2rem;
  background:
    radial-gradient(800px 380px at 25% 10%, rgba(31,111,120,.10), transparent 60%);
  border-bottom: 1px solid var(--line);
}


/* ==========================================================================
   9) Cards + Content Blocks
   ========================================================================== */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
}

.card.service h2{ font-size:1.3rem; }

.pill{
  background: rgba(255,255,255,.8);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.callout{
  margin-top: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.callout.subtle{ background: rgba(255,255,255,.7); }

.cta-row{
  display:flex;
  gap:.8rem;
  flex-wrap:wrap;
  margin-top: 1.4rem;
}


/* ==========================================================================
   10) Lists / Steps
   ========================================================================== */
.bullets{ margin:.7rem 0 0; padding-left:1.15rem; }
.bullets li{ margin:.25rem 0; }

.steps{ margin:.8rem 0 0; padding-left: 1.2rem; }
.steps li{ margin:.35rem 0; }


/* ==========================================================================
   11) Profiles (Therapists)
   ========================================================================== */
/* Therapist profile cards (public About page) */
.grid.therapist-profiles{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.therapist-profile{
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.therapist-profile-top{
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* A therapist photo is a FRAME with the picture inside it, so that the framing
   saved on the therapist (object-position, and a zoom that overflows on
   purpose) has something to be clipped by. The class stays on the frame and
   not on the <img>, which is what keeps the size, the circle and the border
   below working exactly as they did. The <img> carries fmt.photoFocus(). */
.therapist-profile-photo{
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--line);
}

.therapist-profile-avatar{
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  flex-shrink: 0;
}

.therapist-bio{
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}


/* ==========================================================================
   12) Forms
   ========================================================================== */
.form{ display:grid; gap:.75rem; margin-top:.8rem; }

/* Images and embeds never wider than the thing holding them. */
img, svg, video, iframe, canvas{ max-width: 100%; }

/* A grid child will not shrink below its own content unless it is told it
   may -- min-width on a grid item defaults to auto, not 0. Every .form is a
   grid, so every card inside one refused to go narrower than its widest
   field, and the admin settings page was 473px wide on a 375px phone with
   nothing on it visibly too big: the whole column was simply 100px too wide.
   Letting them shrink cannot widen anything that already fitted. */
.form > *{ min-width: 0; }

/* Same rule, same reason, for every other grid on the site. A card holding a
   wide table sat in a one-column grid and refused to go narrower than the
   table, so the card -- not the table -- hung off the side of the phone. The
   table has its own scroller; it only needed to be allowed to use it. */
.grid > *{ min-width: 0; }

/* Cloudflare's widget is a fixed 300px and renders inside a shadow root, so
   nothing on the page can make it narrower and nothing on the page can even
   see it to measure. On a 320px phone it hung 30px off the side of /book and
   /contact. Keep whatever it does to itself inside its own box. */
.cf-turnstile{ max-width: 100%; overflow-x: auto; }

label{ display:grid; gap:.35rem; font-weight:700; }

input, textarea, select{
  /* Every label is a grid, so every control in one is a grid item and will
     not shrink below its own content unless told it may. A <select> measures
     itself against its LONGEST OPTION, so "Deep Tissue Massage - 90 min" made
     the treatment picker on /book 368px wide inside a 289px label and pushed
     the booking page sideways on every phone. */
  min-width: 0;
  max-width: 100%;
  font: inherit;
  padding: .75rem .85rem;
  border-radius: 14px;
  border:1px solid var(--line);
  background:#fff;
}

/* Keyboard focus.
   The old rule was a 18%-opacity teal outline on a white card — technically
   present, invisible in practice. Anyone navigating by keyboard had no way to
   tell where they were. One high-contrast ring, everywhere, no exceptions. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible{
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.contact-list{ list-style:none; padding:0; margin:.9rem 0 0; }
.contact-list li{ margin:.5rem 0; }


/* ==========================================================================
   13) Footer
   ========================================================================== */
.site-footer{
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
}

.footer-logo{
  max-height: 44px;
  width: auto;
}

/* This one line put a sideways scrollbar on every page of the site. Five
   links in a row that never wrapped came to 687px, so a 375px phone scrolled
   to 703px on the home page, the booking page and everything else. */
.footer-links{ display:flex; gap:1rem; flex-wrap:wrap; }
.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: var(--text); text-decoration:none; }


/* ==========================================================================
   14b) Tables

   Twenty-three screens print a table and the stylesheet had nothing to say
   about any of them. A six-column table does not fit a phone and never will,
   so the honest answer is to let the table itself scroll sideways inside the
   card rather than take the whole page with it -- the page stays put and the
   columns are still all there, a swipe away.
   ========================================================================== */
table{ border-collapse: collapse; max-width: 100%; }

/* A table already inside .admin-table-wrap has a scroller; it just could not
   use it, because the wrapper would not shrink below the table's own width. */
.admin-table-wrap{ min-width: 0; }

@media (max-width: 760px){
  /* Only the tables that do NOT already have a scrolling wrapper. display:block
     makes the table its own scroll container; the rows inside are still laid
     out as a table by the anonymous box the browser generates, so nothing
     about the columns changes. */
  :not(.admin-table-wrap) > table{ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  /* A cell that wraps to two words per line makes a tall unreadable column,
     and the table can scroll now, so let the cells keep their width. */
  th, td{ white-space: nowrap; }
  /* ...except the ones that are genuinely prose, which should wrap. */
  td.wrap, th.wrap, td .wrap{ white-space: normal; }
}

/* ==========================================================================
   14) Animations (Soft Reveal)
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   15) Responsive (Layout + Mobile Nav)
   ========================================================================== */
@media (max-width: 980px){
  /* Header */
  .brand-wordmark{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .header-cta{ display:none; }
  .nav-cta{
    display:inline-flex;
    width:100%;
    justify-content:center;
    margin-top:.35rem;
  }

  /* Mobile dropdown nav */
  .nav{
    display:none;
    position:absolute;
    top: 74px;
    left: 1rem;
    right: 1rem;
    background:#fff;
    border:1px solid var(--line);
    border-radius: 16px;
    padding: .65rem;
    box-shadow: var(--shadow);
    flex-direction:column;
    align-items:stretch;
    gap:.25rem;
    z-index: 60;
  }
  .nav.is-open{ display:flex; }

  /* Page layout */
  .hero-inner{ grid-template-columns: 1fr; }
  .grid.cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cards{ grid-template-columns: 1fr; }
  .grid.three{ grid-template-columns: 1fr; }
  .grid.therapist-profiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split{ flex-direction:column; align-items:flex-start; }
}

/* Small phones */
@media (max-width: 520px){
  .grid.cards{ grid-template-columns: 1fr; }
  .grid.therapist-profiles{ grid-template-columns: 1fr; }
  /* .grid.cards and .grid.three already collapse here; .grid.two never did,
     which leaves two form fields about 150px wide each on a phone. It is used
     on the booking and contact pages as well as all through the admin, and
     most customers arrive on a phone, so it collapses everywhere. */
  .grid.two{ grid-template-columns: 1fr; }
}


/* ==========================================================================
   16) Gallery
   ========================================================================== */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  /* A light lift on phone photos. Done here, not in the files, so the originals
     stay untouched and changing these numbers restyles the whole gallery. */
  filter: brightness(1.06) contrast(1.03) saturate(1.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-item img:hover{
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}

.gallery-caption{
  text-align: center;
  padding: .4rem 0;
}

/* Featured review highlight */
.featured-review{
  border-left: 4px solid var(--accent);
}
/* ==========================================================================
   Time-slot picker (public booking page)
   These rules previously lived ONLY in admin.css, which the public pages never
   load — so the one interaction the whole booking form exists to capture
   rendered as unstyled default buttons, and "selected" had no visible effect.
   Sized for thumbs: 48px minimum touch target.
   ========================================================================== */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: .55rem;
  margin-bottom: .25rem;
}

.slot-btn {
  min-height: 48px;
  padding: .6rem .5rem;
  border: 1.5px solid var(--line, #ddd);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #2c2c2c);
  transition: border-color .15s, background .15s, color .15s;
}

.slot-btn:hover,
.slot-btn:focus-visible {
  border-color: var(--brand, #1f6f78);
  background: rgba(31, 111, 120, .06);
}
/* NOTE: no `outline: none` here — this rule is more specific than the global
   :focus-visible ring and would have cancelled it for the time buttons, which
   are the one control on the page you actually have to tab through. */

/* The ONLY signal that a time was chosen — make it unmissable. */
.slot-btn.selected {
  background: var(--brand, #1f6f78);
  color: #fff;
  border-color: var(--brand, #1f6f78);
  box-shadow: 0 2px 10px rgba(31, 111, 120, .3);
}
.slot-btn.selected::after { content: " ✓"; }

/* "Choose a service first" / "Now pick a date" / "no times left" messages.
   They live inside the slots grid, so they have to span every column or they
   get squeezed into a 104px strip. */
.slots-hint {
  grid-column: 1 / -1;
  margin: 0;
}


/* ==========================================================================
   Booking form (public /book, /booking/manage)
   The form is the business. Every field on it is a question a client may end
   up asking about at the front desk, where nobody can answer in English — so
   the layout puts the three that matter (service, date, time) front and
   centre and tucks the optional ones out of the way.
   ========================================================================== */

/* Numbered steps: service 1, date 2, time 3, phone 4. */
.step-label{
  display: flex;
  align-items: center;
  gap: .5rem;
}

.step-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1;
}

/* Length choice under the treatment (60 / 90 / 120). Only shown for a
   treatment with more than one length; the buttons reuse .slot-btn. */
.length-picker{ display: grid; gap: .45rem; }
.length-picker[hidden]{ display: none; }
.length-picker-label{ font-weight: 700; }
.length-buttons{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .55rem;
}

/* Treatments page: one button per length on a multi-length card. */
.length-links{ display: flex; flex-wrap: wrap; gap: .5rem; }

/* Optional therapist preferences — collapsed by default. */
.booking-prefs{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .7rem .9rem;
  background: var(--bg-alt);
}

.booking-prefs > summary{
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

.booking-prefs[open] > summary{
  margin-bottom: .75rem;
}

.booking-prefs-body{
  display: grid;
  gap: .75rem;
}

.addons-fieldset{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

/* Confirmation page: the price and the "you pay in person" promise sit
   together, because the question they answer is the same one. */
.pay-note{
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--bg-alt);
}

.pay-total{
  margin: 0 0 .25rem;
  font-size: 1.15rem;
}

/* /book in steps (2026-11-15): 1 your massage, 2 anyone with you, 3 date,
   4 time, 5 your details. Each step is a block with a hairline between, so a
   phone shows where one question ends and the next begins. Classes, not
   inline styles, so the redesign's site.css can restyle them. */
.book-step{
  display: grid;
  gap: .75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.book-step > *{ min-width: 0; }
.booking-form > .book-step:first-of-type{
  padding-top: 0;
  border-top: 0;
}
.book-step .step-label{ font-size: 1.08rem; font-weight: 700; }
.book-step-title{ margin: 0; }
.field-hint{ font-weight: 400; }

/* THE TWO TEXT QUESTIONS on /book (2026-11-18), and on the check-in form,
   which loads this file too: "Can we text you ...?" with a Yes and a No of
   equal size, NEITHER chosen to start with. Real radio buttons -- one choice,
   arrow keys move between them, required holds the form -- in a
   role="radiogroup" named by its question, drawn as the same buttons as a
   time slot, the chosen one filled like a chosen time. The radio itself is
   laid over its button, transparent, so a tap anywhere on the button picks it
   and it can still take keyboard focus. A div, not a fieldset: a fieldset's
   legend lays out differently from browser to browser, and the tablets'
   browser is not the newest. */
.text-questions{ display: grid; gap: .8rem; }
.yn{
  margin: 0;
  padding: .85rem .95rem .95rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
/* 650, and the <strong> inherits it: at 700 with a <strong> inside (which
   went to 900) the question was louder than the step title above it. Shared
   with the check-in tablet, on purpose -- same value on both (2026-11-19). */
.yn-q{ margin: 0; font-weight: 650; line-height: 1.35; }
.yn-q strong{ display: block; font-weight: inherit; }
.yn-sub{ display: block; margin-top: .2rem; color: var(--muted); font-size: .92rem; font-weight: 400; line-height: 1.45; }
.yn-pair{ display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; padding-top: .7rem; }
label.yn-opt{ display: block; position: relative; margin: 0; cursor: pointer; font-weight: 600; }
label.yn-opt input[type="radio"]{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
label.yn-opt > span{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 48px;
  padding: .55rem .5rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  color: var(--text, #2c2c2c);
  transition: border-color .15s, background .15s, color .15s;
}
label.yn-opt:hover > span{ border-color: var(--brand); background: rgba(31, 111, 120, .06); }
label.yn-opt input[type="radio"]:focus-visible + span{ outline: 3px solid var(--brand); outline-offset: 2px; }
label.yn-opt input[type="radio"]:checked + span{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 2px 10px rgba(31, 111, 120, .3);
}
label.yn-opt input[type="radio"]:checked + span::after{ content: "\2713"; }
/* Book pressed with a question unanswered. */
.yn.yn-missing{ border-color: #c0392b; box-shadow: 0 0 0 1px #c0392b; }
.yn-need{ margin: .55rem 0 0; color: #b02a37; font-weight: 700; font-size: .95rem; }
.yn-need[hidden]{ display: none; }
.yn .text-choice-note{ margin-top: .65rem; }

/* THE TICK BOX on /book: the email box. Every label on this site is a grid
   and every input is padded for typing into, which squashed it to a 4-6px
   sliver on a phone. Laid out on its own: a 24px box that never shrinks, the
   words beside it, the second line lighter, all inside one tappable card. */
label.text-choice{
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-weight: 400;
  cursor: pointer;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
label.text-choice input[type="checkbox"]{
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: .05rem 0 0;
  padding: 0;
  accent-color: var(--brand);
}
label.text-choice strong{ display: block; font-weight: 700; line-height: 1.35; }
.text-choice-sub{ display: block; margin-top: .2rem; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.text-choice-note{
  margin: 0;
  padding: .6rem .8rem;
  border-radius: 10px;
  background: #fdf3e0;
  color: #7a4e00;
  font-size: .92rem;
}
.text-choice-note[hidden]{ display: none; }
.text-fine{ margin: 0; line-height: 1.5; }
/* The policy link in that notice: the site-wide a{} rule makes links inherit
   the grey around them with no underline, which left "Text Message Policy"
   reading as leftover text rather than a link a guest -- or a carrier
   reviewer -- would press. */
.text-fine a{ color: var(--brand); text-decoration: underline; }

/* "Just me" / "Me and one more person": two equal buttons, the chosen one
   filled exactly like a chosen time (they are .slot-btn). */
.party-choice{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.party-choice .slot-btn{ min-width: 0; line-height: 1.25; }
.party-btn:disabled{ opacity: .45; cursor: not-allowed; }
.party-note{ margin: -.2rem 0 0; }
.party-note[hidden]{ display: none; }

/* The second person's questions, in their own panel so it is obvious which
   answers are theirs. */
.guest2-block{
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  background: var(--bg-alt);
}
.guest2-block > *{ min-width: 0; }
.guest2-block[hidden]{ display: none; }
.guest2-title{ margin: 0; font-weight: 700; font-size: 1.05rem; }
/* Up to four people (2026-11-27): "Person 3" with its Remove on one line,
   the add button full width like the party buttons, and the line above them. */
.guest-head{ display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.guest-remove{ background: none; border: 0; padding: .3rem .4rem; color: var(--brand); text-decoration: underline; cursor: pointer; font-size: .95rem; }
.guest-remove[hidden]{ display: none; }
.party-more{ display: grid; }
.party-more[hidden]{ display: none; }
.party-more .party-add{ width: 100%; }
.party-lead{ margin: -.2rem 0 .1rem; }
.field-error{ color: #b02a37; font-weight: 700; font-size: .95rem; }
.field-error[hidden]{ display: none; }

/* What is about to be booked, right above the button. */
.booking-summary{
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--bg-alt);
}
.booking-summary[hidden]{ display: none; }
.booking-summary-title{ margin: 0 0 .35rem; font-weight: 700; }
.booking-summary ul{ margin: 0; padding-left: 1.15rem; }
.booking-summary li{ margin: .2rem 0; }

/* Confirmation and manage pages: one heading per person on a booking for two. */
.party-who{ margin: 1.1rem 0 0; font-size: 1.05rem; }

/* "Running late?" on the manage page: three equal buttons, the same size as
   a time button; and what happened, at the top of the page. */
.late-choice{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .6rem;
}
.late-choice .slot-btn{ min-width: 0; line-height: 1.2; }
.late-choice .slot-btn small{ display: block; font-size: .78rem; font-weight: 500; opacity: .8; margin-top: .15rem; }
.late-choice .slot-btn.selected small{ opacity: 1; }
.late-note{ margin-bottom: 1.5rem; padding: .85rem 1rem; border-radius: 12px; }
.late-note p{ margin: 0; }
.late-ok{ background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.late-warn{ background: #fff4e0; border: 1px solid #f0d29a; color: #7a4b00; }


/* ==========================================================================
   17) Guest pages only (2026-11-19 polish)

   EVERY RULE IN THIS SECTION SITS UNDER body.site. Only the guest header
   (views/partials/header.ejs) puts that class on <body>. The admin, the front
   desk, the check-in tablet and the phone app load this same file and never
   wear it, so nothing here can move a staff screen. :where() keeps the
   element resets at plain element weight, so a class (.btn, .slot-btn, the
   kiosk bar's own rules) still sets its own size and weight over them.
   ========================================================================== */

/* Buttons in the page's font. Without this a <button> fell back to the
   browser's own 13px Arial: "Pick a time to continue", "Just me" and every
   time slot looked like a different site from the links beside them. */
:where(body.site) button{ font: inherit; }

/* What a guest types, and the placeholders, at normal weight. Every label is
   bold and the shared input rule inherits the label's font, so everything in
   every box on /book was bold. */
:where(body.site) input,
:where(body.site) select,
:where(body.site) textarea{ font-weight: 400; }

/* A tick box or a radio is not a text box: no typing padding. With it, a
   tick box in a row was squeezed to a dot on a phone. */
:where(body.site) input[type="checkbox"],
:where(body.site) input[type="radio"]{ padding: 0; }

/* "(optional)" and the other hints inside a label are help, not the
   question: normal weight. (The markup keeps each hint on the line of its
   label words; a label is a grid, so a loose hint got a line of its own.) */
body.site label .muted.small,
body.site legend .muted.small,
body.site summary .muted.small{ font-weight: 400; }

/* A phone number stays on one line. */
body.site .nowrap{ white-space: nowrap; }

/* THE TOP BAR ON ONE LINE at every desktop width. It wrapped at every width
   before, 1440 included: the bar stops at 1100px and needed about 1110, so
   the name broke over four lines and "Book Now" over two. Nothing in it may
   wrap now, and the links sit a little closer. Where room is short the bar
   gives up the least first: up to 1180px the "Signature Treatments" line
   goes, and only below 1100px (just above the phone menu at 980px) the name
   goes too, so the nine links and Book Now still fit on one line. */
body.site .brand-name,
body.site .brand-tag,
body.site .header-cta{ white-space: nowrap; }
@media (min-width: 981px){
  body.site .nav{ gap: .5rem; }
}
@media (min-width: 981px) and (max-width: 1180px){
  body.site .brand-tag{ display: none; }
}
@media (min-width: 981px) and (max-width: 1099px){
  body.site .brand-wordmark{ display: none; }
}

/* /book: the form at a readable width (it stretched to 1030px, so each Yes
   and No was a 500px bar), the hero lined up with it, and a gap between the
   booking, waitlist and policies cards, which sat on each other. page-narrow
   is also the hero of /privacy and /policies, whose cards are 720px too, so
   the title starts where the cards do. */
body.site .page-narrow{ max-width: 720px; }
body.site .book-wrap{ display: grid; gap: 1.25rem; }
body.site .book-wrap > *{ min-width: 0; }

/* /book Add-Ons: the same tick cards as the email box (label.text-choice),
   one to a row on a phone, two where there is room. No box round the group:
   cards inside a box inside the card was one frame too many. */
body.site .addons-fieldset{ margin: 0; padding: 0; border: 0; min-width: 0; }
body.site .addons-legend{ padding: 0; font-weight: 700; }
body.site .addons-list{ display: grid; gap: .55rem; padding-top: .55rem; }
@media (min-width: 640px){
  body.site .addons-list{ grid-template-columns: 1fr 1fr; }
}

/* The Text Message Policy's small headings (/policies#text-messages): the
   same space above each one whether a paragraph or a list comes before it,
   and less under the card's title. */
body.site .policy-sub{ margin: 1.35rem 0 .35rem; font-size: 1.08rem; }
body.site h2 + .policy-sub{ margin-top: .5rem; }

/* /book step 4: its title is a <p> (it lives inside the slots box script.js
   shows and hides), so it kept the browser's 1em margins and sat lower than
   the other four steps, with a wider gap under it. The same .75rem as the
   gap under every other step title. */
body.site .book-step p.step-label{ margin: 0 0 .75rem; }

/* Links in the running text of /privacy and /policies look like links: the
   site-wide a{} rule gives every link the colour of the words round it and no
   underline, so the phone, the email and "Privacy Policy" read as plain text
   -- and a phone has no hover to give them away. The same look as the policy
   links in the small print on /book (.text-fine a). Buttons keep their own. */
body.site .prose-links p a:not(.btn),
body.site .prose-links li a:not(.btn){ color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* When the booking form turned them away (/book, 2026-11-18): the reason, and
   the shop's number as a button beside it. Words and button side by side
   where there is room; on a phone the button goes underneath, full width, so
   it is the easiest thing on the screen to hit. Same colours the box always
   had. Guest pages only, like everything in this section: these boxes are on
   /book and nowhere else. */
body.site .book-error{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.2rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #f5c6cb;
  border-radius: 12px;
  background: #fdecea;
  color: #b02a37;
  line-height: 1.5;
}
body.site .book-error-words{ flex: 1 1 18rem; min-width: 0; }
body.site .book-error-kept{ display: block; margin-top: .35rem; font-weight: 600; }
body.site .book-error-call{
  flex: 0 0 auto;
  min-height: 52px;
  padding: .8rem 1.3rem;
  font-size: 1.05rem;
  white-space: nowrap;
}
@media (max-width: 560px){
  body.site .book-error-call{ flex: 1 1 100%; }
}
body.site .book-done{
  margin-bottom: .8rem;
  padding: .85rem 1rem;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  background: #e8f5e9;
  color: #2e7d32;
  line-height: 1.5;
}
body.site .book-done a{ color: #1b5e20; font-weight: 700; }
/* The same booking pressed twice: the green box on its own, with the way to
   the booking as a button beside the words (under them on a phone), the same
   size as the red box's Call button. */
body.site .book-done-only{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.2rem;
}
body.site .book-done-words{ flex: 1 1 18rem; min-width: 0; }
body.site .book-done .book-done-see{
  flex: 0 0 auto;
  min-height: 52px;
  padding: .8rem 1.3rem;
  font-size: 1.05rem;
  white-space: nowrap;
  color: #fff;
}
@media (max-width: 560px){
  body.site .book-done .book-done-see{ flex: 1 1 100%; }
}
/* /my-membership: the member's own figures, label left and value right. Its
   own table rule, so on a phone it fits the card (values wrap) instead of
   scrolling sideways like a data table. */
body.site table.mymem-table{ display: table; width: 100%; border-collapse: collapse; font-size: 1rem; }
body.site .mymem-table td{ padding: .5rem 0; vertical-align: top; white-space: normal; }
body.site .mymem-table td + td{ text-align: right; padding-left: 1rem; }
body.site .mymem-table td.mymem-note{ padding-top: 0; }
body.site .mymem-table .mymem-strong{ font-weight: 700; }
body.site .mymem-table .mymem-bad{ color: #b02a37; }
