/* ChowChow Feast. The look is a diner guest check: pale green paper, dark green
   ink, a red check number, and gold kept for the dishes that cost a fortune. */
:root {
  --paper: #f3f7ef; --pad: #e4eedd; --rule: #b9cfb4; --ink: #17301f; --ink-soft: #4a6353;
  --red: #c4202b; --leaf: #1f6b43; --gold: #9a7420; --gold-soft: #f4e9c8; --white: #fff;
  --display: "Gloock", "Iowan Old Style", "Songti SC", "Noto Serif", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px; --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 9rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; inset-inline-start: .5rem; z-index: 50; background: var(--ink); color: #fff; padding: .5rem .8rem; }
main { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.if-in, .if-premium { display: none; }
.is-in .if-in { display: inline-flex; } .is-in .if-out { display: none !important; }
.is-premium .if-premium { display: block; } .is-premium .if-not-premium { display: none !important; }

/* header */
.masthead { max-width: var(--wrap); margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 1.45rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 400; color: var(--red); }
.masthead nav { flex: 1; }
.masthead nav ul, .site-footer ul, .chips, .dishes, .sections, .lines, .saved-list, .order-list, .check-lines, .no-list, .steps { list-style: none; margin: 0; padding: 0; }
.masthead nav ul { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.masthead nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.masthead nav a:hover { text-decoration: underline; }
.nav-premium { color: var(--gold) !important; }
.head-tools { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; }
.signin { align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .8rem; background: var(--white); }
.signin.if-out { display: inline-flex; }
.signin-marks { display: inline-flex; gap: .25rem; } .signin-marks svg { width: 15px; height: 15px; }
.cart-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px; padding: .4rem .9rem; }
.cart-btn:hover { color: #fff; background: #0e2015; }
.cart-btn b { background: var(--white); color: var(--ink); border-radius: 999px; min-width: 1.5em; text-align: center; padding: 0 .35em; font-size: .85rem; }
.cart-btn b.has { background: var(--red); color: #fff; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--rule); background: var(--white); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: 2.6rem; z-index: 30; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); margin: 0; padding: .4rem; list-style: none; min-width: 11rem; columns: 2; box-shadow: 0 10px 30px rgb(23 48 31 / .18); }
.lang-menu a { display: block; padding: .3rem .5rem; text-decoration: none; color: var(--ink); border-radius: 4px; }
.lang-menu a[aria-current] { background: var(--pad); font-weight: 600; }

/* the budget strip: a perforated tear-off edge under it */
.check-strip { position: sticky; top: 0; z-index: 20; background: var(--pad); border-block: 1px solid var(--rule); }
.check-strip::after { content: ""; position: absolute; inset-inline: 0; bottom: -7px; height: 7px; background: radial-gradient(circle at 6px -1px, var(--pad) 5px, transparent 5.5px) 0 0 / 12px 7px repeat-x; pointer-events: none; }
.check-inner { max-width: var(--wrap); margin: 0 auto; padding: .45rem 1rem .5rem; display: grid; grid-template-columns: auto 1fr; gap: .1rem 1.2rem; align-items: center; }
.check-budget { margin: 0; white-space: nowrap; font-size: .9rem; color: var(--ink-soft); }
.check-budget strong { font-family: var(--display); font-weight: 400; font-size: 1.55rem; color: var(--ink); font-variant-numeric: tabular-nums; margin-inline: .3rem; vertical-align: -.08em; }
.low .check-budget strong { color: var(--red); }
.check-bar { height: .5rem; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.check-bar i { display: block; height: 100%; width: 100%; background: var(--leaf); transition: width .35s ease; }
.low .check-bar i { background: var(--red); }
.check-note { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--ink-soft); }
@media (max-width: 640px) { .check-inner { grid-template-columns: 1fr; } .check-budget strong { font-size: 1.3rem; } .masthead nav { order: 3; flex-basis: 100%; } .signin span:last-child { display: none; } .signin.if-in span { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .95rem/1.2 var(--body); color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: .6rem 1rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--pad); color: var(--ink); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #a31720; }
.btn.btn:disabled, .btn.btn:disabled:hover { background: #e9ece6; border-color: #c9d2c5; color: #6a7a6f; cursor: not-allowed; }
.btn.wide { width: 100%; }
.btn.danger { background: #8f1219; border-color: #8f1219; }
.btn.danger-text, .linklike.danger { color: #8f1219; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--leaf); text-decoration: underline; cursor: pointer; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.actions.center { justify-content: center; }
.disclaimer { display: inline-block; border: 1.5px dashed var(--red); color: #8f1219; background: #fff7f4; border-radius: var(--r); padding: .45rem .8rem; font-weight: 600; font-size: .95rem; }
.lede { font-size: 1.15rem; max-width: 62ch; color: var(--ink-soft); }
.empty { color: var(--ink-soft); padding: 1rem 0; }
.err { color: #8f1219; font-weight: 600; min-height: 1.2em; }

/* hero: headline on the left, a live guest check on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 2.5rem; align-items: start; padding: 2rem 0 2.5rem; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 12ch; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1rem; } }
.check { background: var(--pad); border: 1px solid var(--rule); border-radius: 3px; padding: 1rem 1.1rem 1.2rem; box-shadow: 0 1px 0 var(--rule), 6px 8px 0 rgb(23 48 31 / .08); transform: rotate(1.2deg); font-variant-numeric: tabular-nums; }
.check.big { transform: none; max-width: 640px; margin-inline: auto; }
.check-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: .4rem; margin-bottom: .2rem; font-family: var(--display); font-size: 1.2rem; }
.check-no { color: var(--red); font-family: var(--body); font-weight: 700; letter-spacing: .04em; }
.check-date { color: var(--ink-soft); font-size: .9rem; margin: .2rem 0 0; }
.check-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-bottom: 1px solid var(--rule); }
.check-lines li span { min-width: 0; overflow-wrap: anywhere; }
.check-empty, .check-more { color: var(--ink-soft); font-style: italic; }
.check-row { display: flex; justify-content: space-between; gap: 1rem; margin: .5rem 0 0; }
.check-total { font-size: 1.15rem; font-weight: 700; border-top: 2px solid var(--ink); padding-top: .5rem; }
.check-charged b { color: var(--leaf); }

/* sections and dish cards */
.band { margin-top: 3rem; }
.band-note { color: var(--ink-soft); margin-top: -.3rem; }
.page-head { padding: 1rem 0 1.2rem; }
.crumbs { font-size: .9rem; color: var(--ink-soft); }
.facts-line { color: var(--ink-soft); }
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 1.5rem; }
.sections a { display: grid; grid-template-columns: 56px 1fr; gap: .1rem .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.sections img { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.section-name { font-family: var(--display); font-size: 1.2rem; align-self: end; }
.section-meta { font-size: .85rem; color: var(--ink-soft); align-self: start; }
.sections a:hover .section-name { color: var(--red); }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.4rem 1rem; }
.dish { position: relative; display: flex; flex-direction: column; }
.dish-link { color: var(--ink); text-decoration: none; position: relative; display: block; }
.dish-link img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--pad); }
.dish-name { font-family: var(--body); font-weight: 650; font-size: 1rem; line-height: 1.25; margin: .55rem 0 .2rem; }
a.dish-link:hover .dish-name { color: var(--red); text-decoration: underline; }
.dish-desc { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .6rem; flex: 1; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-family: var(--display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.dish .add { padding: .4rem .8rem; font-size: .88rem; }
.dish[data-have]::after { content: "× " attr(data-have); position: absolute; top: .45rem; inset-inline-end: .45rem; background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; border-radius: 999px; padding: .1rem .5rem; }
.tier { position: absolute; top: .45rem; inset-inline-start: .45rem; font-size: .75rem; font-weight: 700; border-radius: 3px; padding: .1rem .45rem; background: var(--white); border: 1px solid var(--rule); }
.tier-ultra { background: var(--gold-soft); border-color: var(--gold); color: #5f4708; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: block; border: 1px solid var(--rule); background: var(--white); border-radius: 999px; padding: .3rem .8rem; text-decoration: none; color: var(--ink); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: .5rem; }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-size: 1.6rem; color: var(--red); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: end; background: var(--pad); border: 1px solid var(--rule); border-radius: var(--r); padding: .8rem 1rem; }
.filters label { display: grid; gap: .2rem; font-size: .85rem; font-weight: 600; }
.filters .f-search { flex: 1 1 220px; }
.filters .f-check { display: flex; align-items: center; gap: .4rem; font-weight: 500; padding-bottom: .5rem; }
input[type=search], input[type=text], input[type=email], input[type=number], input:not([type]), select { font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--ink-soft); border-radius: var(--r); padding: .5rem .6rem; width: 100%; }
.result-count { color: var(--ink-soft); min-height: 1.5em; margin: .6rem 0 0; }

/* dish page */
.dish-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 1rem; }
@media (max-width: 760px) { .dish-top { grid-template-columns: 1fr; } }
.dish-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--pad); }
.dish-price .price { font-size: 2.4rem; } .dish-price small { color: var(--ink-soft); }
.buy-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: stretch; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--white); }
.qty button { width: 2.4rem; border: 0; background: var(--pad); font: 700 1.1rem var(--body); color: var(--ink); cursor: pointer; }
.qty button:disabled { color: #9aa79d; cursor: not-allowed; }
.qty input { width: 5.5rem; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.in-cart { font-weight: 600; color: var(--leaf); margin: .8rem 0 0; }
.buy-note { font-size: .88rem; color: var(--ink-soft); margin-top: .6rem; }
.facts { margin-top: 2.5rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 2rem; }
.facts dl div { border-top: 1px solid var(--rule); padding: .6rem 0; display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; }
.facts dt { color: var(--ink-soft); } .facts dd { margin: 0; }
.prose { max-width: 68ch; margin-top: 2.5rem; font-size: 1.05rem; line-height: 1.65; }
.prose h2 { margin-top: 1.6em; }
.prose.legal h1 { font-size: 2.4rem; }
.cross { border-inline-start: 3px solid var(--gold); padding-inline-start: .8rem; }
.faq dt { font-weight: 700; margin-top: 1.1rem; } .faq dd { margin: .2rem 0 0; }

/* cart, checkout, history */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: .4rem 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.line img { border-radius: var(--r); width: 72px; height: 72px; object-fit: cover; }
.line-main a, .line-main span { font-weight: 650; color: var(--ink); } .line-main small { display: block; color: var(--ink-soft); }
.line-total { font-variant-numeric: tabular-nums; min-width: 6.5rem; text-align: end; }
.line .linklike { grid-column: 2 / -1; justify-self: start; font-size: .88rem; }
@media (max-width: 560px) { .line { grid-template-columns: 56px minmax(0, 1fr); } .line .qty, .line-total { grid-column: 2; justify-self: start; text-align: start; } }
.summary { background: var(--pad); border: 1px solid var(--rule); border-radius: 3px; padding: 1rem 1.1rem; position: sticky; top: 6.5rem; }
.summary .btn.wide { margin-top: 1rem; }
.summary-actions { display: grid; gap: .5rem; margin-top: .8rem; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: 2rem; align-items: start; }
@media (max-width: 760px) { .checkout { grid-template-columns: 1fr; } }
.no-list li { padding: .5rem 0 .5rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.no-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--leaf); font-weight: 700; }
.checkout-side .btn.wide { margin: 1.2rem 0 .4rem; padding-block: .85rem; font-size: 1.05rem; }
.confirm { text-align: center; padding-top: 1.5rem; }
.confirm .check { text-align: start; margin-block: 1.5rem; }
.confirm-delivery { font-size: 1.2rem; color: var(--ink-soft); }
.saved-list li, .order-list > li { border-bottom: 1px solid var(--rule); padding: .8rem 0; }
.saved-list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.saved-list small { display: block; color: var(--ink-soft); }
.row-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .6rem 0 0; }
.order-list summary { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; cursor: pointer; }
.order-list summary b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.order-list .check-lines { margin: .6rem 0 0 1rem; }
.round small { color: var(--ink-soft); }

/* premium, login, account */
.compare { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.compare th, .compare td { text-align: start; padding: .7rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 1.2rem; font-weight: 400; border-bottom: 2px solid var(--ink); }
.compare td:last-child { background: var(--gold-soft); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; max-width: 620px; }
.plan { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 1.1rem; }
.plan-price { font-family: var(--display); font-size: 2.2rem; margin: 0 0 .8rem; }
.premium-on { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--r); padding: .7rem 1rem; }
.login-card { max-width: 420px; margin: 1.5rem auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.5rem; }
.login-card h1 { font-size: 2rem; }
.login-card form { display: grid; gap: .5rem; margin-top: 1rem; }
.provider { margin-bottom: .6rem; } .provider svg, .login-card form svg { width: 18px; height: 18px; }
.account { max-width: 62ch; } .account h2 { margin-top: 1.6em; }
.fine { font-size: .85rem; color: var(--ink-soft); }

/* ads: space is reserved only once a banner is being shown */
.ad-slot { margin: 2.5rem auto 0; text-align: center; }
.ad-slot.ad-empty { display: none; }
.ad-label { display: block; font-size: .72rem; color: var(--ink-soft); margin-bottom: .2rem; }
.ad-box { display: grid; place-items: center; } .ad-frame { border: 0; max-width: 100%; }

/* footer, dialogs, toast */
.site-footer { border-top: 1px solid var(--rule); background: var(--pad); padding: 2rem 1rem 3rem; text-align: center; }
.foot-disclaimer { font-weight: 700; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-bottom: 1rem; }
.site-footer .fine { max-width: 70ch; margin-inline: auto; }
.dlg { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 0; width: min(92vw, 460px); color: var(--ink); background: var(--white); }
.dlg::backdrop { background: rgb(23 48 31 / .45); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1rem 1.1rem 0; }
.dialog-head h2 { font-size: 1.4rem; margin: 0; }
.close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.dialog-body { padding: .8rem 1.1rem; } .dialog-actions { padding: 0 1.1rem 1.1rem; }
.copy-input { font-size: .9rem; }
#toast { position: fixed; inset-inline: 0; bottom: 1.2rem; margin-inline: auto; width: fit-content; max-width: 92vw; background: var(--ink); color: #fff; padding: .65rem 1rem; border-radius: var(--r); font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 60; }
#toast.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 640px) { .check-note { display: none; } }
