/* Booking page: the "table ticket". Loaded only on pages with "book": true. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose p { margin: 0 0 16px; color: var(--fg-2); line-height: 1.7; }
.prose .h3 { margin: 32px 0 10px; }
.book { background: var(--ink); color: var(--paper); padding-top: calc(var(--head-h) + 40px); }
.book .h2 { margin: 8px 0 28px; }
.book-fallback { padding: 24px; border: 1px solid var(--rule); }
.js .book-fallback { display: none; }
.book a { color: var(--accent-2); }

.ticket { position: relative; background: #f3ece0; color: var(--ink); padding: 32px 28px 32px 44px; box-shadow: var(--shadow);
  --fg: var(--ink); --fg-2: #4f483f; --accent: var(--gold-deep); --accent-2: var(--gold-dark); --rule: rgba(127, 90, 23, .4); }
.ticket a { color: var(--gold-dark); }
/* perforation down the left edge */
.ticket::before { content: ''; position: absolute; left: 14px; top: 16px; bottom: 16px; width: 8px;
  background: radial-gradient(circle at 4px 4px, var(--ink) 3px, transparent 3.5px) 0 0 / 8px 18px repeat-y; opacity: .9; }
.step { border: 0; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px dashed rgba(15, 26, 23, .25); min-width: 0; }
.step:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.step legend { font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--display); padding: 0; margin-bottom: 16px; }
.step[hidden] { display: none; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-choice input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.card-choice span { display: block; height: 100%; padding: 18px; border: 1px solid rgba(15, 26, 23, .35); cursor: pointer; transition: background .2s, border-color .2s; }
.card-choice strong { display: block; font: 400 22px/1.2 var(--display); }
.card-choice small { display: block; margin-top: 6px; color: #4f483f; font-size: 14px; line-height: 1.4; }
.card-choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card-choice input:checked + span small { color: rgba(243, 236, 224, .8); }
.card-choice input:focus-visible + span, .chips input:focus-visible + span { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.chips label { position: relative; }
.chips span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 14px; border: 1px solid rgba(15, 26, 23, .35); cursor: pointer; font-weight: 600; transition: background .2s; }
.chips--mono span { font: 500 16px/1 var(--mono); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.callus { margin: 16px 0 0; padding: 16px; background: rgba(127, 90, 23, .12); line-height: 1.6; }
.callus .btn { margin-top: 12px; }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__nav { width: 44px; height: 44px; border: 1px solid rgba(15, 26, 23, .35); background: transparent; font-size: 22px; cursor: pointer; color: var(--ink); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #4f483f; padding: 4px 0; }
.cal__day { min-height: 46px; border: 1px solid transparent; background: transparent; font: 500 15px/1 var(--mono); color: var(--ink); cursor: pointer; }
.cal__day[aria-disabled="true"] { color: rgba(15, 26, 23, .35); cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.cal__day[data-status="open"] { border-color: rgba(15, 26, 23, .35); }
.cal__day[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal__day:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 1px; }
.cal__why, .note { min-height: 1.5em; margin: 12px 0 0; color: #4f483f; }
.cal__hint { margin: 0 0 16px; padding: 16px; background: rgba(127, 90, 23, .12); line-height: 1.6; }
.cal__hint .btn { display: flex; margin-top: 12px; }
.cal__ring { margin: 8px 0 0; color: #4f483f; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; font: 400 16px/1.4 var(--body); border: 1px solid rgba(15, 26, 23, .45); background: #fff; color: var(--ink); border-radius: 0; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--signred); border-width: 2px; }
.err { margin: 6px 0 0; color: var(--signred); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 20px; padding: 16px; background: rgba(15, 26, 23, .06); }
.review:empty { display: none; }
.review dt { color: #4f483f; }
.review dd { margin: 0; font-weight: 600; }
.review dd.mono { font-family: var(--mono); }
.fine { margin: 14px 0 0; font-size: 14px; color: #4f483f; }
.btn[disabled] { opacity: .6; cursor: progress; }
.stub { padding: 4px 0; }
.stub:focus { outline: none; }
.stub .btn { margin-top: 12px; }

@media (max-width: 560px) {
  .ticket { padding: 24px 16px 24px 32px; }
  .ticket::before { left: 8px; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .card-choice span, .chips span { transition: none; } }
