/* Thai Love NY guest ordering and order status. Mobile first. No inline styles (CSP). */
@font-face{font-family:Merriweather;src:url('/assets/merriweather-latin.woff2') format('woff2');font-style:normal;font-weight:900;font-display:swap}

:root{
  color-scheme:light;
  --green-900:#173e29;
  --green-700:#21543a;
  --green-600:#2b6a4a;
  --green-50:#eaf1ec;
  --cream:#f7f2e8;
  --paper:#fffdf8;
  --ink:#1d2a22;
  --muted:#55605a;
  --line:#e2d9c8;
  --line-strong:#c9bfae;
  --terracotta:#c86a3d;
  --terracotta-text:#a4502a;
  --terracotta-50:#fbefe8;
  --danger:#a33a1f;
  --focus:#a4502a;
  --serif:Merriweather,Georgia,'Times New Roman',serif;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --radius:12px;
  --nav-h:56px;
  --shadow:0 1px 2px rgba(29,42,34,.06),0 4px 16px rgba(29,42,34,.06);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--ink);font:400 1rem/1.5 var(--sans);overflow-wrap:break-word}
body:has(dialog[open]){overflow:hidden}
img{display:block;max-width:100%;height:auto}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--green-700);text-underline-offset:3px}
a:hover{color:var(--green-900)}
p{margin:0 0 .75rem}
h1,h2,h3{margin:0}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.icon{width:20px;height:20px;flex:none}
.wrap{width:min(1280px,100% - 32px);margin-inline:auto}

.skip-link{position:absolute;left:16px;top:12px;transform:translateY(-300%);z-index:50;background:var(--paper);color:var(--green-900);padding:12px 16px;border-radius:8px;font-weight:600;box-shadow:var(--shadow)}
.skip-link:focus{transform:none}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border-radius:10px;border:1px solid transparent;font-weight:600;font-size:1rem;line-height:1.25;text-decoration:none;text-align:center}
.btn-primary{background:var(--green-700);color:#fff;border-color:var(--green-700)}
.btn-primary:hover{background:var(--green-900);border-color:var(--green-900);color:#fff}
.btn-primary:disabled,.btn-primary[aria-disabled="true"]{background:#d9d3c6;border-color:#d9d3c6;color:#3f4741;cursor:not-allowed}
.btn-secondary{background:var(--paper);color:var(--green-900);border-color:var(--line-strong)}
.btn-secondary:hover{background:var(--green-50)}
.btn-block{width:100%}
.text-btn{background:none;border:0;padding:10px 4px;min-height:44px;color:var(--green-700);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.text-btn:hover{color:var(--green-900)}

/* Header */
.site-header{background:var(--green-900);color:var(--cream)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding-block:10px}
.brand{display:flex;align-items:center;gap:12px;color:var(--cream);text-decoration:none;min-width:0}
.brand:hover{color:#fff}
.logo-mark{position:relative;flex:none;width:48px;height:48px;border-radius:50%;overflow:hidden;background:#000;box-shadow:0 0 0 2px rgba(247,242,232,.25)}
.logo-mark img{width:100%;height:100%;object-fit:cover}
.brand-text{display:flex;flex-direction:column;min-width:0}
.brand-name{font:900 1.1875rem/1.25 var(--serif);letter-spacing:.005em}
.brand-sub{font-size:.875rem;color:#d8e2db;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid rgba(247,242,232,.45);border-radius:999px;color:var(--cream);text-decoration:none;font-weight:600;font-size:.9375rem;white-space:nowrap}
.call-link:hover{background:rgba(247,242,232,.1);color:#fff}
.site-header :focus-visible{outline-color:#f2c3a6}
.call-short{display:none}
@media (max-width:440px){.call-text{display:none}.call-short{display:inline}.call-link{padding:8px 14px}}

/* Last order banner */
.last-order{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding:6px 8px 6px 16px;background:var(--green-50);border:1px solid #c9dccf;border-radius:var(--radius)}
.last-order p{margin:0;font-weight:600}

/* Intro */
.intro{padding-block:24px 8px}
.page-title{font:900 1.625rem/1.25 var(--serif);color:var(--green-900);margin-bottom:12px}
.page-title:focus{outline:none}
.avail{display:flex;align-items:baseline;gap:10px;margin:0 0 6px;font-weight:600;font-size:1.0625rem}
.avail-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--line-strong);transform:translateY(-1px)}
.avail[data-state="open"] .avail-dot{background:#2f8a57}
.avail[data-state="closed"] .avail-dot{background:var(--terracotta)}
.avail[data-state="paused"] .avail-dot{background:#b98a1a}
.avail[data-state="paused"],.avail[data-state="closed"]{color:var(--ink)}
.avail-extra{margin:0 0 6px 20px;color:var(--muted);min-height:1.5em}
.avail-extra a{font-weight:600}
.intro-line{margin:0 0 16px 20px}
.notes{display:grid;gap:10px;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);font-size:.9375rem}
.notes p{margin:0}
.note-diet{color:var(--muted)}

/* Search */
.menu-tools{padding-top:16px}
.search{position:relative}
.search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.search input{width:100%;min-height:48px;padding:10px 14px 10px 44px;border:1px solid var(--line-strong);border-radius:999px;background:var(--paper);font-size:1rem}
.search input::placeholder{color:#6b736d}
.search input:focus-visible{outline-offset:1px}

/* Category tabs */
.cat-nav{position:sticky;top:0;z-index:20;background:var(--cream);border-bottom:1px solid var(--line);margin-top:8px}
.cat-nav-inner{position:relative}
.cat-tabs{display:flex;gap:4px;margin:0;padding:0;list-style:none;overflow-x:auto;scrollbar-width:none;scroll-padding-inline:16px;-webkit-overflow-scrolling:touch}
.cat-tabs::-webkit-scrollbar{display:none}
.cat-tabs li{flex:none}
.cat-tabs a{display:flex;align-items:center;min-height:var(--nav-h);padding:0 12px;color:var(--muted);font-weight:600;font-size:.9375rem;text-decoration:none;white-space:nowrap;border-bottom:3px solid transparent;margin-bottom:-1px}
.cat-tabs a:hover{color:var(--green-900)}
.cat-tabs a[aria-current="true"]{color:var(--green-900);border-bottom-color:var(--terracotta)}
.cat-tabs a:focus-visible{outline-offset:-3px}
.cat-tabs li.is-empty{display:none}

/* Layout */
.layout{display:block;padding-bottom:40px}
.menu-col{min-width:0}
.cart-col{display:none}
#menu-start{display:block;height:0;outline:none}

.menu-status{margin:24px 0;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
.search-empty{margin:24px 0;color:var(--muted)}
.menu-section{padding-top:28px;scroll-margin-top:calc(var(--nav-h) + 8px)}
.menu-section h2{font:900 1.375rem/1.3 var(--serif);color:var(--green-900);margin:0 0 12px}
.dish-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.dish-list>li{display:flex}
.dish-list>li>.dish{flex:1}
.dish:not(:has(.dish-photo)){min-height:0}

/* Dish row */
.dish{display:flex;gap:14px;align-items:stretch;width:100%;min-height:124px;padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);text-align:left;color:var(--ink)}
button.dish{transition:border-color .15s ease,box-shadow .15s ease}
button.dish:hover{border-color:var(--line-strong);box-shadow:var(--shadow)}
.dish-text{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.dish-name{font-weight:650;font-size:1.0625rem;line-height:1.35}
.code{color:var(--terracotta-text);font-weight:700;font-variant-numeric:tabular-nums}
.dish-desc{color:var(--muted);font-size:.9375rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dish-meta{font-size:.875rem;color:var(--green-700);line-height:1.4}
.dish-price{margin-top:auto;padding-top:4px;font-weight:650;font-variant-numeric:tabular-nums}
.dish-photo{flex:none;width:104px;height:104px;border-radius:10px;object-fit:cover;background:var(--green-50);align-self:center}
.dish.is-soldout{background:#f3eee4;color:#4a524d}
.dish.is-soldout .dish-photo{opacity:.55;filter:grayscale(.6)}
.soldout-tag{display:inline-block;align-self:flex-start;margin-top:auto;padding:2px 10px;border-radius:999px;background:#e9e2d4;color:#3f4741;font-weight:700;font-size:.875rem}

/* Totals */
.totals{display:grid;gap:6px;margin:0;padding:14px 0 0;border-top:1px solid var(--line)}
.totals div{display:flex;justify-content:space-between;gap:12px}
.totals dt{color:var(--muted)}
.totals dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}
.totals .total-cash dt,.totals .total-cash dd{color:var(--ink);font-weight:700;font-size:1.0625rem}
.totals .total-card dt,.totals .total-card dd{color:var(--ink)}

/* Cart */
.cart-panel h2{font:900 1.25rem/1.3 var(--serif);color:var(--green-900);margin:0 0 4px}
.cart-panel h2:focus{outline:none}
.cart-sub{color:var(--muted);font-size:.9375rem;margin:0 0 12px}
.cart-empty{color:var(--muted);margin:8px 0 0}
.cart-notice{margin:0 0 12px;padding:12px 14px;border-radius:10px;background:var(--terracotta-50);border:1px solid #efc9b5;font-size:.9375rem}
.cart-notice ul{margin:6px 0 0;padding-left:18px}
.cart-notice p{margin:0}
.cart-lines{margin:0 0 12px;padding:0;list-style:none}
.cart-line{padding:12px 0;border-top:1px solid var(--line)}
.cart-line:first-child{border-top:0}
.line-top{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.line-name{font-weight:650;margin:0}
.line-price{font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;margin:0}
.line-opts,.line-note{margin:2px 0 0;color:var(--muted);font-size:.9rem}
.line-actions{display:flex;align-items:center;gap:6px;margin-top:6px;flex-wrap:wrap}
.line-actions .text-btn{padding-inline:8px}
.stepper{display:inline-flex;align-items:center;border:1px solid var(--line-strong);border-radius:999px;background:var(--paper)}
.step-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:none;border-radius:999px;color:var(--green-900)}
.step-btn:hover{background:var(--green-50)}
.step-btn:disabled{color:#6b736d;background:none;cursor:not-allowed}
.step-value{min-width:2ch;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.stepper.small .step-btn{width:44px;height:44px}
.cart-actions{display:grid;gap:8px;margin-top:16px}
.blocked{margin:12px 0 0;padding:12px 14px;border-radius:10px;background:#f4ecd8;border:1px solid #e1cf9f;font-size:.9375rem}
.blocked a{font-weight:600}

/* Mobile order bar */
.order-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--cream) 70%,rgba(247,242,232,0))}
.order-bar .btn{box-shadow:0 6px 20px rgba(23,62,41,.25);justify-content:space-between;min-height:52px;font-size:1.0625rem}
.has-order-bar .site-footer{padding-bottom:96px}

/* Footer */
.site-footer{border-top:1px solid var(--line);padding:24px 0 32px;color:var(--muted);font-size:.9375rem}
.site-footer p{margin:0 0 6px}

/* Dialog sheets */
.sheet{padding:0;border:0;background:var(--paper);color:var(--ink);box-shadow:0 -8px 40px rgba(0,0,0,.18);margin:auto 0 0;width:100%;max-width:100%;max-height:calc(100dvh - 24px);border-radius:18px 18px 0 0;overflow:hidden}
.sheet[open]{display:flex;flex-direction:column}
.sheet::backdrop{background:rgba(20,30,24,.55)}
.sheet-form{display:flex;flex-direction:column;min-height:0;flex:1}
.sheet-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}
.sheet-close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--paper);color:var(--ink);box-shadow:var(--shadow)}
.sheet-close:hover{background:var(--green-50)}
/* Header strip: title and close button never cover the content below. */
.sheet-top{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 12px 10px 20px;border-bottom:1px solid var(--line);background:var(--paper)}
.sheet-title{font:900 1.25rem/1.3 var(--serif);color:var(--green-900);margin:0;padding-top:9px;min-width:0}
.sheet-title:focus{outline:none}
.sheet-body{padding:16px 20px 8px}
.sheet-intro{display:grid;gap:12px;margin-bottom:4px}
/* Dish photos are 360 px wide: shown at 180 CSS px so they stay sharp on 2x screens (never stretched). */
.sheet-photo-slot{width:180px;max-width:100%}
.sheet-photo{width:180px;height:135px;object-fit:cover;border-radius:12px;background:var(--green-50)}
.sheet-info{min-width:0}
.sheet-desc{color:var(--muted)}
.sheet-meta{margin:0 0 8px;padding:0;list-style:none;color:var(--green-700);font-size:.9375rem}
.sheet-price{font-weight:650;margin-bottom:12px}
.sheet-error{margin:0 0 12px;padding:12px 14px;border-radius:10px;background:#fbe9e4;border:1px solid #eab9aa;color:var(--danger);font-weight:600}
.sheet-footer{display:flex;gap:12px;align-items:center;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
.add-btn{flex:1;min-height:52px;font-size:1.0625rem}

/* Choice groups */
.group{margin:0 0 20px;padding:0;border:0;min-width:0}
.group legend{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0;margin-bottom:2px;font-weight:700;font-size:1.0625rem}
.badge{flex:none;padding:2px 10px;border-radius:999px;font-size:.8125rem;font-weight:700;background:var(--green-50);color:var(--green-900);border:1px solid #c9dccf}
.badge.optional-badge{background:#f1ece2;color:#4a524d;border-color:var(--line)}
.group-hint{margin:0 0 8px;color:var(--muted);font-size:.9375rem}
.group-err{margin:0 0 8px;color:var(--danger);font-weight:600;font-size:.9375rem}
.group.has-error .choices{border-color:var(--danger);box-shadow:0 0 0 1px var(--danger)}
.choices{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.choice{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 14px;border-top:1px solid var(--line);cursor:pointer}
.choice:first-child{border-top:0}
.choice:hover{background:#faf7f0}
.choice input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--green-700)}
.choice-name{flex:1}
.choice-price{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.choice.is-off{cursor:not-allowed;color:#5f6862;background:#f6f3ec}
.choice.is-off .choice-price{color:#5f6862}
.more{margin:0 0 20px}
.more > summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;list-style:none;font-weight:700}
.more > summary::-webkit-details-marker{display:none}
.more > summary::after{content:"";flex:none;width:10px;height:10px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-3px)}
.more[open] > summary::after{transform:rotate(-135deg) translateY(-3px)}
.more[open] > summary{border-radius:10px 10px 0 0;border-bottom-color:transparent}
.summary-name{flex:1}
.summary-count{color:var(--muted);font-weight:600;font-size:.9375rem}
.more .group{margin:0;padding:4px 14px 14px;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;background:#fff}
.more .group legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.more .choices{border-color:var(--line)}

/* Forms */
.field{margin:0 0 18px}
.field label,.field legend{display:block;font-weight:700;margin-bottom:4px}
.field-hint{margin:0 0 6px;color:var(--muted);font-size:.9375rem}
.optional{font-weight:400;color:var(--muted)}
.field input[type=text],.field input[type=tel],.field select,.field textarea{display:block;width:100%;min-height:48px;padding:10px 12px;border:1px solid #8f978f;border-radius:10px;background:#fff;font-size:1rem}
.field textarea{resize:vertical;min-height:72px}
.field input[aria-invalid="true"],.field select[aria-invalid="true"]{border-color:var(--danger);box-shadow:0 0 0 1px var(--danger)}
.field-err{margin:6px 0 0;color:var(--danger);font-weight:600;font-size:.9375rem}
.counter{margin:4px 0 0;color:var(--muted);font-size:.875rem;text-align:right}
.pickup-field{border:0;padding:0;min-width:0}
.radio-row{display:flex;align-items:flex-start;gap:12px;min-height:52px;padding:12px 14px;margin:0 0 8px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-weight:400!important}
.radio-row input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--green-700)}
.radio-row:has(input:checked){border-color:var(--green-700);box-shadow:0 0 0 1px var(--green-700)}
.radio-row:has(input:disabled){cursor:not-allowed;background:#f6f3ec;color:#5f6862}
.radio-title{font-weight:700}
.radio-sub{color:var(--muted)}
.time-field{margin:4px 0 0 34px}

/* Checkout */
.checkout{padding-block:16px 48px}
.back-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 10px 8px 4px;border:0;background:none;color:var(--green-700);font-weight:600}
.back-btn:hover{color:var(--green-900);text-decoration:underline}
.checkout-sub{color:var(--muted)}
.form-heading{font:900 1.1875rem/1.3 var(--serif);color:var(--green-900);margin:8px 0 12px}
.checkout-grid{display:grid;gap:8px}
.checkout-side{padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
.checkout-side .form-heading:first-child{margin-top:0}
.summary-lines{margin:0 0 12px;padding:0;list-style:none}
.summary-lines li{padding:10px 0;border-top:1px solid var(--line)}
.summary-lines li:first-child{border-top:0;padding-top:0}
.pay-box{margin:16px 0 12px;padding-top:4px}
.pay-box p{margin:0;color:var(--ink)}
#place-btn{margin-top:12px;min-height:56px;font-size:1.0625rem}
.fine-print{margin:10px 0 0;color:var(--muted);font-size:.875rem;text-align:center}
.alert{margin:12px 0 16px;padding:14px 16px;border-radius:var(--radius);border:1px solid #eab9aa;background:#fbe9e4;color:var(--ink)}
.alert:focus{outline:none;box-shadow:0 0 0 3px rgba(164,80,42,.35)}
.alert h2{font:700 1.0625rem/1.4 var(--sans);color:var(--danger);margin:0 0 4px}
.alert p{margin:0 0 6px}
.alert ul{margin:6px 0 0;padding-left:20px}
.alert a{font-weight:600}
.alert.is-info{background:var(--terracotta-50);border-color:#efc9b5}
.alert.is-info h2{color:var(--terracotta-text)}
.alert .btn{margin-top:8px}

/* Status page */
.status-page{padding-block:24px 48px;max-width:720px}
.status-card{padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:16px}
.status-card>:last-child{margin-bottom:0}
.order-number{font:600 1rem/1.4 var(--sans);color:var(--muted);margin:0 0 10px}
.stage-kicker{font-weight:700;color:var(--green-700);margin:0 0 2px}
.stage-line{font:900 1.75rem/1.25 var(--serif);color:var(--green-900);margin:0 0 8px}
.stage-line:focus{outline:none}
#status-loading .stage-line{font:600 1.0625rem/1.5 var(--sans);color:var(--ink);margin:0}
.stage-sub{color:var(--muted);margin:0}
.stage-sub+.stage-sub{margin-top:6px}
.stage-wait{margin:12px 0 0;padding:12px 14px;border-radius:10px;background:#f4ecd8;border:1px solid #e1cf9f}
.stage-wait a,.stage-sub a{font-weight:600}
.stage-card.is-final-bad .stage-line{color:var(--ink)}
.thanks{margin:14px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.keep-link{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:6px 0 0;color:var(--muted);font-size:.9375rem}
.keep-link .text-btn{padding-inline:0}
.allergy-line{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#fbe9e4;border:1px solid #eab9aa;font-weight:600}
.page-status .site-footer .wrap{max-width:720px}
.stage-card.is-final-bad{border-color:#eab9aa;background:#fdf3ef}
.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:20px 0 4px;padding:0;list-style:none;counter-reset:step}
.timeline li{position:relative;padding-top:22px;font-size:.875rem;color:var(--muted);text-align:center}
.timeline li::before{content:"";position:absolute;top:0;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--paper);border:2px solid var(--line-strong);z-index:1}
.timeline li::after{content:"";position:absolute;top:6px;left:-50%;width:100%;height:2px;background:var(--line-strong)}
.timeline li:first-child::after{display:none}
.timeline li.is-done{color:var(--ink)}
.timeline li.is-done::before{background:var(--green-700);border-color:var(--green-700)}
.timeline li.is-done::after{background:var(--green-700)}
.timeline li[aria-current="step"]{color:var(--green-900);font-weight:700}
.timeline li[aria-current="step"]::before{background:var(--terracotta);border-color:var(--terracotta);box-shadow:0 0 0 4px var(--terracotta-50)}
.timeline-note{font-size:.875rem;color:var(--muted);margin:10px 0 0}
.status-card h2{font:900 1.1875rem/1.3 var(--serif);color:var(--green-900);margin:0 0 12px}
.status-actions{display:grid;gap:10px;margin-top:12px}
.updated{color:var(--muted);font-size:.875rem;margin:8px 0 0}

/* Wider screens */
@media (min-width:640px){
  .wrap{width:min(1280px,100% - 48px)}
  .sheet{margin:auto;width:min(560px,100% - 48px);max-height:min(88dvh,880px);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
  .sheet-intro:has(.sheet-photo-slot:not([hidden])){grid-template-columns:180px minmax(0,1fr);gap:16px;align-items:start}
  .page-title{font-size:2rem}
  .status-actions{grid-template-columns:1fr 1fr}
  .stage-line{font-size:2rem}
}
@media (min-width:720px) and (max-width:1023px){
  .dish-list{grid-template-columns:1fr 1fr}
}
@media (min-width:1024px){
  .layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:32px;align-items:start}
  .cart-col{display:block;position:sticky;top:calc(var(--nav-h) + 16px);margin-top:28px;max-height:var(--cart-max,calc(100vh - var(--nav-h) - 32px));overflow-y:auto;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
  .order-bar{display:none!important}
  .has-order-bar .site-footer{padding-bottom:32px}
  .intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);column-gap:40px;align-items:start}
  .intro-main{min-width:0}
  .menu-tools .search{max-width:640px}
  .checkout-main{max-width:640px}
  .checkout-grid{grid-template-columns:minmax(0,1fr) 400px;gap:40px;align-items:start}
  .checkout-side{position:sticky;top:16px}
}
@media (min-width:1200px){
  .dish-list{grid-template-columns:1fr 1fr}
}

@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  .sheet[open]{animation:sheet-up .22s ease-out}
  .sheet[open]::backdrop{animation:fade-in .22s ease-out}
  @media (min-width:640px){.sheet[open]{animation:sheet-in .18s ease-out}}
}
@keyframes sheet-up{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@keyframes sheet-in{from{transform:translateY(12px) scale(.985);opacity:0}to{transform:none;opacity:1}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}

@media (forced-colors:active){
  .btn-primary,.dish,.sheet,.radio-row,.choices{border:1px solid CanvasText}
  .avail-dot,.timeline li::before{forced-color-adjust:none}
}
@media print{
  .site-header,.order-bar,.cat-nav,.search,.status-actions{display:none!important}
  body{background:#fff}
}
.cat-tabs{position:relative}
.menu-section h2:focus:not(:focus-visible),main:focus:not(:focus-visible){outline:none}
.field .radio-row{display:flex;margin-bottom:8px}
.pickup-field legend{padding:0}
.cart-sheet .cart-panel{padding:20px 16px calc(20px + env(safe-area-inset-bottom))}
.cart-sheet .cart-panel h2{padding-right:52px}
#order-note{margin:12px 0}
a[href^="tel:"]{white-space:nowrap}
.timeline li.is-done[aria-current="step"]::before{background:var(--green-700);border-color:var(--green-700);box-shadow:none}
.cart-actions .blocked{margin:0}
@media (min-width:1024px){
  .cart-col .cart-actions{position:sticky;bottom:-20px;margin:12px -20px -20px;padding:12px 20px 20px;background:var(--paper);border-top:1px solid var(--line);border-radius:0 0 var(--radius) var(--radius)}
}
@media (max-width:639px){
  .intro{padding-top:20px}
  .page-title{font-size:1.5rem;margin-bottom:8px}
  .notes{padding:14px;gap:8px;font-size:.875rem}
  .intro-line{margin-bottom:12px}
}

/* ---- Fix round 1 (2026-11-10) ---- */
/* Landing: compact intro so dishes show on the first phone screen. */
.notes-more>summary{display:inline-flex;align-items:center;gap:8px;min-height:32px;cursor:pointer;color:var(--green-700);font-weight:600;list-style:none}
.notes-more>summary::-webkit-details-marker{display:none}
.notes-more>summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.notes-more[open]>summary::after{transform:rotate(-135deg) translateY(-1px)}
.notes-more p{margin:4px 0 0;color:var(--muted)}
.avail[data-state="paused"],.avail[data-state="closed"]{padding:10px 14px;border-radius:10px;background:#f4ecd8;border:1px solid #e1cf9f}
/* Loading placeholders (same size as dish rows, so nothing jumps when the menu arrives). */
.menu-skeleton{padding-top:28px}
.sk-h{width:150px;height:29px;margin:0 0 12px;border-radius:8px;background:#ebe3d3}
.sk-list{display:grid;gap:12px}
.sk-dish{height:134px;border-radius:var(--radius);background:var(--paper);border:1px solid var(--line)}
@media (prefers-reduced-motion:no-preference){.sk-dish,.sk-h{animation:sk-pulse 1.4s ease-in-out infinite alternate}}
@keyframes sk-pulse{from{opacity:1}to{opacity:.55}}
/* Category tabs: a fade on the right says there are more. */
.cat-nav-inner::after{content:"";position:absolute;top:0;right:0;bottom:1px;width:28px;background:linear-gradient(to right,rgba(247,242,232,0),var(--cream));pointer-events:none}
/* Order bar when the order changed */
.order-bar.has-notice .btn{background:var(--terracotta-text);border-color:var(--terracotta-text)}
.blocked:focus{outline:none}
.blocked.is-flash{box-shadow:0 0 0 3px rgba(164,80,42,.45)}
/* Checkout: order summary folds away; Place order stays on screen on phones and tablets. */
.summary-box{margin:0 0 4px}
.summary-box>summary{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer;list-style:none}
.summary-box>summary::-webkit-details-marker{display:none}
.summary-box>summary::after{content:"";flex:none;width:10px;height:10px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-3px)}
.summary-box[open]>summary::after{transform:rotate(-135deg) translateY(-3px)}
.summary-head{flex:1;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;min-width:0}
.summary-title{margin:0}
.summary-meta{font-weight:650;font-variant-numeric:tabular-nums}
.summary-box[open]>summary{margin-bottom:8px}
.change-line{margin:0}
.checkout-side .text-btn{padding-inline:0}
@media (max-width:1023px){
  .place-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--cream) 70%,rgba(247,242,232,0))}
  .place-bar #place-btn{margin-top:0;box-shadow:0 6px 20px rgba(23,62,41,.25)}
  .checkout{padding-bottom:120px}
  html:has(#view-checkout:not([hidden])){scroll-padding-bottom:100px}
  .page-order:has(#view-checkout:not([hidden])) .site-footer{padding-bottom:100px}
}
@media (min-width:640px) and (max-width:1023px){.place-bar{padding-inline:max(24px,calc((100% - 640px) / 2))}}
/* Cart sheet: the title sits in the header strip */
.cart-sheet .cart-panel{padding:12px 16px calc(20px + env(safe-area-inset-bottom))}
@media (max-width:639px){
  .intro{padding-block:16px 4px}
  .intro-line{display:none}
  .notes{padding:0;background:none;border:0;gap:2px}
  .note-pay{color:var(--ink)}
  .menu-tools{padding-top:10px}
  .cat-nav{margin-top:6px}
  .menu-section:first-child,.menu-skeleton{padding-top:16px}
}

/* ---- Fix round 2 (2026-11-10) ---- */
/* Landing: brand line as the headline, "Order for pickup" as the kicker. */
.page-kicker{margin:0 0 2px;font-weight:700;font-size:.9375rem;color:var(--green-700)}
/* Phones: the full address with its maps link sits under the hours (the header only has room for the street). */
@media (max-width:639px){.intro-line{display:block;margin:0 0 8px 20px;font-size:.9375rem}}
/* Checkout alert: a light 2px ring that never touches the top edge when it scrolls into view. */
.alert{scroll-margin-top:16px}
.alert:focus{box-shadow:none;outline:2px solid var(--terracotta-text);outline-offset:2px}
/* Phones and tablets: a focused field scrolls clear of the sticky Place bar. */
@media (max-width:1023px){#view-checkout input,#view-checkout textarea,#view-checkout select{scroll-margin-bottom:110px}}
/* A sent order whose answer is unknown: shown as sent, read-only. */
.cart-lock,.sheet-lock{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:var(--terracotta-50);border:1px solid #efc9b5;font-size:.9375rem}
.checkout-form.is-locked .field input[type=text],.checkout-form.is-locked .field input[type=tel],.checkout-form.is-locked .field textarea,.checkout-form.is-locked .field select{background:#f6f3ec;color:#3f4741;border-color:#b9b4a8}
.checkout-form.is-locked .radio-row:has(input:checked){color:var(--ink)}
/* Phone dish sheet: photo beside the description, like the wider sheet (shown smaller, never stretched). */
@media (min-width:360px) and (max-width:639px){
  .sheet-intro:has(.sheet-photo-slot:not([hidden])){grid-template-columns:140px minmax(0,1fr);gap:14px;align-items:start}
  .sheet-photo-slot{width:140px}
  .sheet-photo{width:140px;height:105px}
}
/* Phones: a tighter checkout top, so the Food allergy box shows above the Place button on a short screen. */
@media (max-width:639px){
  .checkout{padding-top:8px}
  .back-line{margin:0}
  .checkout-sub{margin:0 0 4px;font-size:.9375rem}
  .checkout-main>.form-heading:first-child{margin:4px 0 8px}
  .checkout-main .field{margin-bottom:14px}
}

/* ---- Fix round 2b (2026-11-10) ---- */
/* Last-order bar: the stage and "View" stay together, so a phone breaks after the order number instead. */
.last-order p{min-width:0;text-wrap:balance}
.last-order-tail{white-space:nowrap}
/* U2b-5: "View" is a full-size tap target (44 px high), without making the bar taller. */
#last-order-link{display:inline-flex;align-items:center;min-height:44px;min-width:44px;margin:-13px 0}
/* A dish taken out of the order: the "add it again" button sits under its sentence. */
.cart-notice li .readd-btn,.alert li .readd-btn{display:block;padding:8px 0;text-align:left}
