/* Shared chrome for both pages: brand name, header, footer, gold CTA,
   tap-answer focus, fields, errors, state messages.
   Layout and composition live in style.css. Values come from tokens.css. */

:root {
  --err: #a3001b;
}

html { scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { min-width: 320px; }
[hidden] { display: none !important; }
/* In the page for a screen reader, not on screen. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Keeps a full stop with the name box in front of it. */
.nb { white-space: nowrap; }
img { height: auto; }

/* The business name is plain text. It is filled in by app.js from one value. */
.brand-name { font: 700 20px/1.2 var(--font-head); color: var(--primary); }
.foot-row .brand-name { font: 700 13px/1.2 var(--font-body); color: var(--ink-muted); }

/* Header pieces */
.star { display: block; width: auto; height: 38px; }

/* Footer: light, document register. */
footer.site-foot { background: transparent; color: var(--ink-muted); padding: 0; border-top: 1px solid var(--line); }
.site-foot .foot-in { padding: 28px 24px 36px; }
.site-foot .fine { font-size: 13px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 14px; max-width: 68ch; }
.site-foot .foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; font-size: 13px; color: var(--ink-muted); }
.site-foot .brk { display: none; }
@media (max-width: 620px) {
  .site-foot .brk { display: block; flex-basis: 100%; height: 0; }
  .site-foot .pipe1 { display: none; }
}
.site-foot a { color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.site-foot a:hover { color: var(--primary-bright); }
.site-foot a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Primary CTA: gold, dark label (never white) */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 14px 30px; border: 2px solid var(--secondary); border-radius: var(--radius);
  background: var(--secondary); color: var(--secondary-fg);
  font: 700 15px/1.2 var(--font-body); text-align: center; cursor: pointer; text-decoration: none;
  transition: filter .12s ease, transform .12s ease;
}
.cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cta:active { transform: none; }
/* A button that cannot be used yet (the page is still asking whether booking is open) looks off, not gold. */
.cta:disabled { background: var(--surface-2); border-color: var(--control-line); color: var(--ink-muted); cursor: not-allowed; }
.cta:disabled:hover { filter: none; transform: none; }

/* Secondary buttons: navy, never gold */
.btn-navy, .btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border: 2px solid var(--primary); border-radius: var(--radius);
  font: 700 15px/1.2 var(--font-body); text-align: center; text-decoration: none; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
@media (max-width: 360px) { .btn-navy, .btn-line { padding-left: 14px; padding-right: 14px; } }
.btn-navy { background: var(--primary); color: #fff; }
.btn-navy:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn-line { background: transparent; color: var(--primary); }
.btn-line:hover { background: var(--surface-2); }
.btn-navy:focus-visible, .btn-line:focus-visible { outline: 3px solid var(--primary-bright); outline-offset: 3px; }

/* Tap answers: radio inputs stretched over the label, so a tap anywhere selects */
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; float: left; width: 100%; }
legend + * { clear: both; }
.opt { position: relative; display: block; cursor: pointer; min-width: 0; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Fields */
.fld { min-width: 0; }
.fld label { display: block; margin: 0 0 6px; font: 700 13px/1.3 var(--font-body); color: var(--ink); }
.fld input {
  display: block; width: 100%; min-width: 0; height: 50px; padding: 0 14px;
  border: 1px solid var(--control-line); border-radius: var(--radius); background: #fff;
  font: 16px var(--font-body); color: var(--ink);
}
.fld input::placeholder { color: var(--ink-muted); }
.fld.is-invalid input { border-color: var(--err); }
.err { margin: 6px 0 0; font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--err); }
fieldset.is-invalid > .err { margin-top: 10px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); }

/* State messages: closed, could not save, no open times, taken, and so on. Plain, calm, no colour alarm. */
.state { margin: 0 0 22px; padding: 20px 22px; border: 1px solid var(--line-strong); border-left: 6px solid var(--primary); background: var(--surface); max-width: 62ch; }
.state p { margin: 0 0 8px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.state p:last-child { margin-bottom: 0; }
.state .state-line { font: 700 20px/1.3 var(--font-head); color: var(--primary); }
.state .btn-line, .state .cta { margin-top: 12px; }

/* Bot trap field: off screen, out of the tab order, hidden from a screen reader. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Neutral placeholder silhouette for a team member with no photo */
