/* Pre-order sheet and the reserve.html form. Tokens from premium.css only. Dialog: bottom sheet under 700px, right-hand sheet above. */
html.po-lock{overflow:hidden}
.po-sheet{padding:0;border:0;background:var(--card);color:var(--ink);max-width:none;max-height:none;overflow:hidden;font:400 var(--fs-body)/1.5 var(--text)}
.po-sheet::backdrop{background:color-mix(in srgb,var(--ink) 58%,transparent)}
.po-sheet:not([open]){display:none}
.po-panel{position:relative;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;padding:var(--s4) var(--gut) var(--s4)}
.po-root>h2{font-size:clamp(32px,4vw,44px);line-height:1.05;padding-right:var(--s5);margin-bottom:var(--s3)}
.po-root>h2:focus{outline:none}
.po-close{position:absolute;top:var(--s2);right:var(--s2);z-index:1;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-height:44px;border:0;border-radius:var(--r-pill);background:var(--page2);color:var(--ink);cursor:pointer;touch-action:manipulation;transition:background-color var(--dur-hover) var(--ease-out)}
@media (hover:hover){.po-close:hover{background:var(--hair)}}

/* the form (also used bare on reserve.html) */
.po-form{display:grid;gap:var(--s2);max-width:560px}
.po-form fieldset{margin:0;padding:0;border:0;min-width:0}
.po-form legend,.po-field>label{display:block;padding:0;margin-bottom:var(--s1);font:600 var(--fs-small)/1.3 var(--text);color:var(--ink)}
.po-opts{display:flex;flex-wrap:wrap;gap:var(--s1)}
.po-opt{position:relative;flex:1 1 auto;min-width:0}
.po-opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.po-opt span{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 var(--s2);border-radius:var(--r-pill);box-shadow:inset 0 0 0 1.5px var(--soft);font:600 var(--fs-small)/1 var(--text);text-align:center;white-space:nowrap;transition:background-color var(--dur-hover) var(--ease-out),color var(--dur-hover) var(--ease-out)}
.po-opt input:checked+span{background:var(--ink);color:var(--page);box-shadow:inset 0 0 0 1.5px var(--ink)}
.po-opt input:focus-visible+span{outline:3px solid var(--focus);outline-offset:3px}
/* 17px is deliberate: under 16px iOS Safari zooms the page on focus, so this stays a literal, not a token */
.po-field input,.po-field textarea{display:block;width:100%;min-height:48px;padding:12px var(--s2);border:1.5px solid var(--soft);border-radius:var(--r-card);background:var(--card2);color:var(--ink);font:400 17px/1.3 var(--text);outline:3px solid transparent;outline-offset:2px;transition:background-color var(--dur-hover) var(--ease-out)}
.po-field textarea{resize:vertical;min-height:88px}
/* quantity stepper: minus, number, plus; 48 px targets, native number input kept (keyboard, screen reader, paste) */
.po-step{display:flex;align-items:center;gap:var(--s1)}
.po-step-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;padding:0;border:0;border-radius:var(--r-pill);background:var(--page2);color:var(--ink);font:600 22px/1 var(--text);cursor:pointer;touch-action:manipulation;outline:3px solid transparent;outline-offset:2px;transition:background-color var(--dur-hover) var(--ease-out)}
.po-step-btn:focus-visible{outline-color:var(--focus)}
@media (hover:hover){.po-step-btn:hover{background:var(--hair)}}
.po-field .po-step input{flex:0 0 88px;width:88px;text-align:center;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
.po-step input::-webkit-outer-spin-button,.po-step input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.po-field input::placeholder,.po-field textarea::placeholder{color:var(--hint)}
.po-field input:focus-visible,.po-field textarea:focus-visible{outline-color:var(--focus)}
.po-field [aria-invalid=true]{border-color:var(--ink)}
.po-err{min-height:1lh;margin-top:4px;font-size:var(--fs-small);line-height:1.4;font-weight:600;color:var(--ink)}
.po-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.po-privacy{margin:calc(var(--s1) - var(--s2)) 0 0;padding:0;font-size:var(--fs-small);font-weight:400;line-height:1.4;color:var(--soft);text-align:center}   /* a quiet footnote: 8px under the button (the form grid gap is 16) */
.po-fail{padding:var(--s2);border-radius:var(--r-card);background:var(--page2);color:var(--ink);font-size:var(--fs-small);box-shadow:inset 0 0 0 1.5px var(--accent)}
.po-submit{width:100%;min-height:52px;touch-action:manipulation}
.po-submit:disabled{background:var(--soft);color:var(--page);cursor:progress}   /* sending: a different fill (and aria-busy), not a fade */

/* success */
.po-done :is(h2,h3){font-size:var(--fs-heading);color:var(--soft);font-weight:500;padding-right:var(--s5)}
.po-done :is(h2,h3):focus{outline:none}
.po-id{margin:var(--s1) 0 var(--s3);font:600 var(--fs-title)/1 var(--head);letter-spacing:-.02em;font-variant-numeric:tabular-nums;word-break:break-all}
.po-next{margin:0 0 var(--s3);padding-left:1.2em;display:grid;gap:var(--s1);max-width:46ch;color:var(--soft)}
.po-page{max-width:calc(560px + 2 * var(--gut));padding-top:var(--s5);padding-bottom:var(--sec)}   /* the form's own measure, centred; the section rhythm below (owner 2026-11-15: spacing) */
.po-page .po-root{margin-top:var(--s3)}

/* placement: phone = bottom sheet, wider = right-hand sheet */
.po-sheet{margin:auto 0 0;width:100%;height:auto;max-height:92dvh;border-radius:var(--r-card) var(--r-card) 0 0}
@media (min-width:700px){.po-sheet{margin:0 0 0 auto;width:min(520px,100%);height:100dvh;max-height:100dvh;border-radius:var(--r-card) 0 0 var(--r-card)}.po-panel{height:100%;max-height:none;padding:var(--s5) var(--s4)}}
@keyframes po-in{from{transform:translateY(16px);opacity:0}to{transform:none;opacity:1}}
@keyframes po-out{from{transform:none;opacity:1}to{transform:translateY(16px);opacity:0}}
@keyframes po-fade{from{opacity:0}to{opacity:1}}
@keyframes po-fade-out{from{opacity:1}to{opacity:0}}
/* motion is gated on html.motion only (reduced motion, ?motion=off and a stored Pause all drop it): open 320 ms, close 240 ms, same at every width */
html.motion .po-sheet[open]{animation:po-in 320ms var(--ease-out) both}
html.motion .po-sheet[open]::backdrop{animation:po-fade 320ms var(--ease-out) both}
html.motion .po-sheet[open].closing{animation:po-out var(--dur-exit) var(--ease-in) both}
html.motion .po-sheet[open].closing::backdrop{animation:po-fade-out var(--dur-exit) var(--ease-in) both}

.po-page h1{font-size:var(--fs-title)}
.po-req{font-weight:400;color:var(--soft)}
