/* THOLE · Private dining · page.css
   Page-only CSS for the Rope Loft page. It sits on the shared kit.css and site.css (Home's language) and reuses
   loft B's own pieces from site.css as they are: .lf-b__fig, .lf-b__ph, .lf-b__cap, .lf-b__facts, .lf-b__n, .lf-b__w and
   .lf-b__foot. Kit tokens only; nothing here redefines a token. Shared parts first (the header's current page, the ruled
   facts, the enquiry form and its confirmation), then one block per direction: a "The room, then the form",
   b "The form is the page", c "An evening upstairs". The winner keeps the shared parts and its own block. */

[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* ---------------------------------------------------------------- shared: the opening (label, heading, lede) */
.pd-open { padding-top: clamp(40px, 5vw, 88px); }
.pd-head { display: grid; gap: 18px clamp(24px, 4vw, 64px); margin-bottom: clamp(32px, 4vw, 56px); }
.pd-head .t-h1 { max-width: 14ch; }
.pd-head .t-lede { max-width: 38ch; }
@media (min-width: 900px) {
  .pd-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .pd-head--split .t-label { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- shared: a ruled list of facts */
.pd-rl { display: grid; }
.pd-rl > div { display: grid; gap: 4px; padding-block: 14px; border-top: 1px solid var(--line); }
.pd-rl > div:last-child { border-bottom: 1px solid var(--line); }
.pd-rl dt { font-size: var(--fs-label); line-height: 1.3; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pd-rl dd { font-size: 16px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.pd-rl dd b { font-weight: 600; }
.pd-rl .tnum { white-space: nowrap; }
@media (min-width: 560px) {
  .pd-rl > div { grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 20px; align-items: baseline; }
}

/* ---------------------------------------------------------------- shared: the enquiry form */
.enq { display: grid; gap: clamp(24px, 2.4vw, 32px); }
.enq__row { display: grid; gap: clamp(24px, 2.4vw, 32px); }
@media (min-width: 640px) { .enq__row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; } }

.fld { display: grid; gap: 8px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld__l, .fld > legend { padding: 0; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.fld > legend { margin-bottom: 10px; }
fieldset.fld { display: block; }
fieldset.fld > legend ~ * + * { margin-top: 10px; }
.fld__opt { font-weight: 400; color: var(--muted); }
.fld__hint { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: 54ch; }
.fld__hint .link { color: var(--ink); }
.fld__note { font-size: var(--fs-small); line-height: 1.5; color: var(--ink); }
.fld__note:empty { display: none; }
.fld__note b { font-weight: 600; }

.inp {
  width: 100%; min-height: 52px; margin: 0; padding: 12px 14px; border-radius: 8px;
  font-family: var(--f-text); font-size: 17px; line-height: 1.4; color: var(--lime-ink);
  background: var(--lime); border: 1.5px solid color-mix(in srgb, var(--lime-ink) 42%, transparent);
  transition: border-color var(--t-quick), box-shadow var(--t-quick);
}
.inp:hover { border-color: color-mix(in srgb, var(--lime-ink) 70%, transparent); }
.inp:focus { outline: none; }
.inp:focus-visible { outline: 3px solid var(--focus, var(--lime-ink)); outline-offset: 2px; border-color: var(--lime-ink); }
textarea.inp { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.inp--short { min-height: 92px; }
input[type="date"].inp { appearance: none; -webkit-appearance: none; display: block; text-align: left; }
input[type="date"].inp::-webkit-date-and-time-value { text-align: left; }
.inp[aria-invalid="true"] { border-color: var(--ember-deep); box-shadow: inset 0 0 0 1px var(--ember-deep); }

/* lunch or dinner, and the guests: the kit's pill choices (.time-opts .opt), sized for a finger */
.enq .time-opts { gap: 10px; }
.enq .time-opts .opt__box { min-height: 48px; align-content: center; padding: 10px 18px; }
.enq .time-opts .opt__box b { font-size: 19px; }
.enq .time-opts .opt__box span { font-size: 14px; }
.pd-guests .opt__box { min-width: 56px; justify-content: center; }
.fld.is-bad .opt__box { border-color: var(--ember-deep); }

.fld__err { display: flex; gap: 10px; font-size: var(--fs-small); line-height: 1.45; font-weight: 600; color: var(--ember-deep); }
.fld__err::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: currentColor; }
.fld__err[hidden] { display: none; }

.enq__errors { display: grid; gap: 10px; padding: 16px 20px; border-left: 4px solid var(--ember-deep); background: var(--lime); }
.enq__errors[hidden] { display: none; }
.enq__errors-h { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--lime-ink); }
.enq__errors ul { display: grid; gap: 6px; }
.enq__errors a { font-size: 16px; color: var(--lime-ink); }

.enq__send { display: grid; gap: 14px; padding-top: 8px; }
.enq__send .btn { justify-self: start; }
.enq__send p { max-width: 52ch; }
.enq__nojs { padding: 16px 20px; border-left: 4px solid var(--lime-ink); background: var(--lime); font-size: 16px; line-height: 1.5; }
.js .enq__nojs { display: none; }
html:not(.js) .enq__send .btn { display: none; }

/* the confirmation: what Marta would read, and plainly that it has not gone */
.enq-done { display: grid; gap: 22px; align-content: start; }
.enq-done[hidden] { display: none; }
.enq-done__h { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.12; font-weight: 600; letter-spacing: -0.012em; max-width: 20ch; }
.enq-done__list { display: grid; }
.enq-done__list > div { display: grid; gap: 2px; padding-block: 12px; border-top: 1px solid var(--line); }
.enq-done__list > div:last-child { border-bottom: 1px solid var(--line); }
.enq-done__list dt { font-size: var(--fs-label); line-height: 1.3; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.enq-done__list dd { font-size: 16px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 560px) { .enq-done__list > div { grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 20px; align-items: baseline; } }
.enq-done__spend { font-size: 17px; line-height: 1.5; }
.enq-done__spend b { font-weight: 600; }
.enq-done__note { padding: 16px 20px; border-left: 4px solid var(--ember-deep); background: var(--lime); font-size: 16px; line-height: 1.55; color: var(--lime-ink); }
.enq-done__note b { font-weight: 600; }

/* ================================================================ a · "The room, then the form" */
/* the evening, on the season's field: the dish of the season beside a ruled list of what the night is */
.pd-a-eve__head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.pd-a-eve__head .t-h2 { max-width: 15ch; }
.pd-a-eve__body { display: grid; gap: clamp(32px, 4vw, 48px); }
.pd-a-eve__fig { margin: 0; }
.pd-a-eve__fig .cap { max-width: 44ch; }
.pd-list { display: grid; align-content: start; }
.pd-list > div { display: grid; gap: 8px; padding-block: clamp(18px, 2vw, 26px); border-top: 1px solid var(--line); }
.pd-list > div:last-child { border-bottom: 1px solid var(--line); }
.pd-list dt { font-family: var(--f-display); font-size: var(--fs-h4); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.pd-list dd { font-size: var(--fs-body); line-height: 1.55; max-width: 46ch; color: var(--ink); text-wrap: pretty; }
.pd-a-eve__small { margin-top: 20px; }
@media (min-width: 900px) {
  .pd-a-eve__body { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .pd-a-eve__fig { grid-column: 1 / span 5; }
  .pd-a-eve__words { grid-column: 7 / span 6; }
}

/* buyouts: the whole restaurant, in loft B's row of three figures */
.pd-a-buy__head { display: grid; gap: 18px; }
.pd-a-buy__head .t-h2 { max-width: 14ch; }
.pd-a-buy__head .t-lede { max-width: 40ch; }
.pd-a-buy .lf-b__facts { margin-top: clamp(32px, 4vw, 56px); }
.pd-a-buy__act { margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 699px) {
  .pd-a-buy .lf-b__facts > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (min-width: 900px) {
  .pd-a-buy__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap); align-items: end; }
  .pd-a-buy__head .t-label { grid-column: 1 / -1; }
}

/* the enquiry on pale ash: the facts beside the form */
.pd-enq__head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.pd-enq__head .t-h2 { max-width: 16ch; }
.pd-enq__body { display: grid; gap: clamp(36px, 4vw, 56px); }
.pd-enq__aside { display: grid; gap: 24px; align-content: start; }
.pd-enq__ph { aspect-ratio: 3 / 2; }
.pd-enq__ph img { object-position: 40% 62%; }
@media (min-width: 1000px) {
  .pd-enq__body { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .pd-enq__aside { grid-column: 1 / span 4; }
  .pd-enq__main { grid-column: 6 / span 7; }
  .pd-enq__ph { aspect-ratio: 4 / 5; }
  .pd-enq__ph img { object-position: 50% 50%; }
  .pd-enq .pd-rl > div { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) { .pd-enq .pd-rl > div { grid-template-columns: 8.5rem minmax(0, 1fr); } }

/* ---------------------------------------------------------------- print: the facts and the enquiry, not the chrome */
@media print {
  .site-footer, .lf-b__fig, .pd-step__fig, .pd-enq__ph, .pd-b__fig { display: none !important; }
}
