:root {
    color-scheme: light;
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --bg: #ffffff;

    /* Per-tenant brand kit fallbacks; App.razor overrides these from the tenant's resolved kit. */
    --brand-primary: #d97706;
    --brand-on-primary: #1c1308;
    --brand-on-tint: #d97706;
    --brand-accent: #d97706;
    --brand-font: ui-sans-serif, system-ui, sans-serif;
    --brand-display-spacing: -0.01em;

    /* Derived surface tints (slate fallbacks); App.razor overrides with color-mix off the tenant's primary. */
    --brand-tint: #f8fafc;
    --brand-tint-2: #f1f5f9;
    --brand-band: #f8fafc;
    --brand-accent-soft: #fef3c7;
    --brand-hairline: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--brand-font, ui-sans-serif, system-ui, sans-serif);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

button {
    font: inherit;
    cursor: pointer;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.55rem 1.1rem;
}

button:hover { filter: brightness(1.08); }

input,
select,
textarea {
    font: inherit;
    font-size: 1rem;
    min-height: 44px;
    width: 100%;
    padding: 0.55rem 0.75rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
}

textarea { min-height: 5.5rem; resize: vertical; line-height: 1.5; }

:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }

img { max-width: 100%; }

.skip-link {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-120%);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    padding: 0.5rem 1rem;
    z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

.site-header__home { display: inline-flex; }
.site-header__logo { height: 2.5rem; width: auto; display: block; }

.hero__tagline { color: var(--muted); font-size: 1.1rem; margin: 0 0 1rem; }

.content-section { margin: 2rem 0; }
.content-section__title {
    font-family: var(--brand-font);
    letter-spacing: var(--brand-display-spacing);
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
}
.content-section__body { color: var(--ink); margin: 0; white-space: pre-line; }
.content-section__hours { color: var(--ink); margin: 0; white-space: pre-line; }
.content-section__contact { color: var(--ink); margin: 0; font-style: normal; display: flex; flex-direction: column; gap: 0.25rem; }
.content-section__contact-line { color: inherit; }
.content-section__faq { margin: 0; color: var(--ink); }
.content-section__faq-question { font-weight: 600; margin: 0.75rem 0 0.25rem; }
.content-section__faq-answer { margin: 0; }
.content-section__cta {
    display: inline-block;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: 0.5rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
}

.page {
    max-width: 44rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 4rem;
}

h1 { font-size: clamp(1.5rem, 5vw, 1.9rem); margin: 0.5rem 0 1.5rem; line-height: 1.2; }
h2 { font-size: clamp(1.25rem, 4vw, 1.4rem); margin: 2rem 0 0.5rem; line-height: 1.25; }

.menu-langbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.5rem;
    background: var(--brand-band);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.menu-langbar__icon {
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 0.25rem;
}
.menu-langbar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.35rem 0.85rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg);
    border: 1px solid var(--brand-hairline);
    border-radius: 999px;
}
.menu-langbar__link:hover { border-color: var(--brand-accent); }
.menu-langbar__link:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}
.menu-langbar__link--active {
    color: var(--brand-on-primary);
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.menu-search {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 1rem;
    background-color: var(--brand-tint);
    background-image: repeating-linear-gradient(
        135deg,
        color-mix(in srgb, var(--brand-primary) 2%, transparent) 0,
        color-mix(in srgb, var(--brand-primary) 2%, transparent) 1px,
        transparent 1px,
        transparent 4px);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.menu-search__input {
    font: inherit;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
}
.menu-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    border: none;
}
.menu-search__legend {
    width: 100%;
    padding: 0;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}
.menu-search__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.4rem 0.85rem;
    background: var(--bg);
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.9rem;
    cursor: pointer;
}
.menu-search__chip:hover { border-color: var(--brand-accent); }
.menu-search__chip:has(input:checked) {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-color: var(--brand-primary);
}
.menu-search__chip:has(input:focus-visible) {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}
.menu-search__chip input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--brand-primary);
}
.menu-search__chip--allergen:has(input:checked) { border-color: var(--brand-primary); }
.menu-search__diet {
    gap: 0.6rem;
}
.menu-search__chip--diet {
    font-size: 0.95rem;
    font-weight: 600;
}
.menu-search__diet-icon {
    font-size: 1.1rem;
    line-height: 1;
}
.menu-search__avail {
    gap: 0.6rem;
}
.menu-search__chip--avail {
    font-weight: 600;
}
.menu-search__avail-icon {
    font-size: 1rem;
    line-height: 1;
}
.menu-search__chips--allergens,
.menu-search__chips--ingredients {
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}
.menu-search__disclaimer {
    margin: 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--bg);
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
}
.menu-search__submit { min-height: 44px; align-self: flex-start; }

.menu-search__status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 0.5rem;
}
.menu-search__count { color: var(--muted); margin: 0; font-size: 0.95rem; }
.menu-search__clear {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.menu-search__clear:hover { color: var(--muted); }
.menu-search__active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.menu-search__active-label { font-weight: 600; color: var(--ink); }
.menu-search__active-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    background: var(--brand-tint-2);
    border: 1px solid var(--brand-hairline);
    border-radius: 999px;
    color: var(--ink);
}
.menu-search__active-chip--avail { gap: 0.3rem; }

.menu__description { color: var(--muted); margin: 0 0 1rem; }
/* Category eyebrow: a soft-accent caption (≤16% accent over white keeps --ink AA) in the brand font, kept on its
   accent left-rule so the section reads as the tenant's, not a slate label. */
.menu-section__title {
    display: inline-block;
    font-family: var(--brand-font);
    letter-spacing: var(--brand-display-spacing);
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
    padding: 0.15rem 0.6rem;
    color: var(--ink);
    background: var(--brand-accent-soft);
    border-left: 3px solid var(--brand-accent);
    border-radius: 0 0.25rem 0.25rem 0;
}
.menu-section__items { list-style: none; margin: 0; padding: 0; }

.dish { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.dish__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 0.75rem;
    margin: 0 0 0.75rem;
    display: block;
    background: var(--line);
}
.dish__head { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.dish__description { color: var(--muted); margin: 0.25rem 0 0; font-weight: 400; }
.dish__price { display: block; white-space: nowrap; color: var(--brand-primary); font-weight: 700; margin: 0.35rem 0 0; }

/* Bounded menu-layout presets (per-tenant brand kit, never free CSS). The wrapper carries
   data-menu-layout=list|card-grid|large-photo; each renders the same dish markup differently
   with a brand-led identity. Defined after the base .dish/.dish__image rules so these win by source order. */
.menu-layout { display: block; }

/* list = editorial: each dish gets an accent left-rule and roomier line-height. */
[data-menu-layout="list"] .dish {
    border-left: 3px solid var(--brand-hairline);
    padding-left: 0.85rem;
    line-height: 1.6;
}

[data-menu-layout="card-grid"] .menu-section__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
[data-menu-layout="card-grid"] .dish {
    border: 1px solid var(--brand-hairline);
    border-top: 3px solid var(--brand-accent);
    border-radius: 0.75rem;
    padding: 0.85rem;
    background: var(--bg);
    transition: background-color 0.15s ease;
}
[data-menu-layout="card-grid"] .dish:hover { background: var(--brand-tint); }

/* large-photo = photo-forward: the price rides over the dish image as a brand pill, bottom-right. */
[data-menu-layout="large-photo"] .dish { position: relative; }
[data-menu-layout="large-photo"] .dish__image {
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
}
[data-menu-layout="large-photo"] .dish__name { font-size: 1.15rem; }
[data-menu-layout="large-photo"] .dish__price {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.2rem 0.7rem;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: 999px;
    font-weight: 700;
    z-index: 1;
}
.dish__ingredients { color: var(--muted); margin: 0.35rem 0 0; font-size: 0.85rem; font-weight: 400; }
.dish__ingredients-label { font-weight: 600; }
.dish__allergens {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    font-weight: 400;
}
.dish__allergens-label { font-weight: 600; color: var(--ink); }
.dish__allergens-pills { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.dish__allergen-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 28px;
    padding: 0.2rem 0.6rem;
    background: var(--brand-accent-soft);
    color: var(--brand-on-primary);
    border: 1px solid var(--brand-primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.dish__allergen-icon { font-size: 0.95rem; line-height: 1; }
.dish__allergen-name { line-height: 1.2; }
.dish__badge {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
}

.pay__stripe,
.receipt__pay-stripe {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 1.25rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}

.pay__card-heading,
.receipt__pay-card-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.pay__amount,
.receipt__pay-amount,
.receipt__pay-total {
    margin: 0;
    color: var(--ink);
}

.receipt__pay-total {
    font-size: 1.25rem;
    font-weight: 700;
}

.receipt__pay-total-amount {
    color: var(--brand-primary);
}

.pay__element,
.receipt__pay-element {
    min-height: 3rem;
    padding: 0.85rem;
    background: var(--bg);
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
}

.pay__element[data-loading]::after,
.receipt__pay-element[data-loading]::after {
    content: attr(data-loading);
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.pay__submit,
.receipt__pay-submit {
    min-height: 48px;
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
}

.pay__submit:disabled,
.receipt__pay-submit:disabled {
    background: #cbd5e1;
    color: var(--muted);
    cursor: not-allowed;
    filter: none;
}

.pay__stripe-error,
.receipt__pay-stripe-error {
    margin: 0;
    padding: 0.75rem 0.85rem;
    color: #b45309;
    background: #fef3c7;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
    font-size: 0.95rem;
}

.pay__field,
.receipt__pay-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 1rem;
    color: var(--ink);
    font-weight: 600;
}

.pay__field input,
.receipt__pay-field input {
    font: inherit;
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
    padding: 0.55rem 0.75rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
}

.offline-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 1rem;
    background: #0f172a;
    color: #f1f5f9;
    text-align: center;
    font-size: 0.9rem;
}

.offline-banner[hidden] { display: none !important; }

.offline-banner__note {
    color: #cbd5e1;
    font-size: 0.8rem;
}

@media (min-width: 40rem) {
    .offline-banner {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
}

.offline-banner__text { font-weight: 600; }

/* Site chrome: sticky full-bleed bar; an inner column centres the nav to the page width on desktop.
   The masthead fills the brand band so the skeleton — not just the accents — reads as this restaurant;
   the accent signature line sits over it. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0.6rem 1rem;
    background: var(--brand-band);
    border-bottom: 2px solid var(--brand-accent);
}

.site-header__wordmark {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    color: var(--ink);
    font-family: var(--brand-font);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.1;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.25rem;
    flex: 1 1 100%;
    order: 3;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.6rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

.site-nav__link:hover { background: var(--brand-tint-2); }

.site-nav__link--cart { color: var(--brand-primary); gap: 0.4rem; }

.site-nav__cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.site-nav__link--active {
    box-shadow: inset 0 -2px 0 0 var(--brand-accent);
    border-radius: 0.5rem 0.5rem 0 0;
}

.site-lang {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.25rem;
    flex: 1 1 100%;
    order: 2;
}

.site-lang__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.25rem 0.6rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 0.5rem;
}

.site-lang__link:hover { background: var(--brand-tint-2); color: var(--ink); }

.site-lang__link--active {
    color: var(--brand-on-primary);
    background: var(--brand-primary);
}

/* Home: hero, signatures */
.hero { margin: 0 0 1.5rem; }
.hero__title {
    font-family: var(--brand-font);
    letter-spacing: var(--brand-display-spacing);
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.15;
    margin: 0.5rem 0 0.75rem;
}

/* Branded hero: the tenant's image as a background band behind an overlaid title (the LCP element). The reserved
   aspect-ratio box + the explicit img width/height kill layout shift; the scrim keeps the white title AA over any photo. */
.hero--branded {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    margin: 0 0 1.5rem;
}
.hero--branded .hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Brand-tinted scrim: a faint primary wash up top deepening to a near-black brand shade (primary 72%-toward-black) at
   the bottom text band, so the photo reads as the tenant's — and the white overlaid title stays AA over the dark band. */
.hero--branded::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--brand-primary) 10%, transparent),
        color-mix(in srgb, var(--brand-primary), #000000 72%) 88%);
}
.hero--branded .hero__overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 1.25rem;
}
.hero--branded .hero__title,
.hero--branded .hero__tagline {
    color: var(--bg);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* No-image fallback: a warm brand-tint band with a 4px accent rule across the top keeps the home identity-led; the title
   inks in the on-tint brand colour (the primary, gated to AA-large ≥3:1 on the near-white tint) and the tenant logo leads
   above the wordmark. */
.hero--tint {
    padding: 1.5rem 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--brand-tint);
    background-image: repeating-linear-gradient(
        135deg,
        color-mix(in srgb, var(--brand-primary) 2%, transparent) 0,
        color-mix(in srgb, var(--brand-primary) 2%, transparent) 1px,
        transparent 1px,
        transparent 4px);
    border: 1px solid var(--brand-hairline);
    border-top: 4px solid var(--brand-accent);
}
.hero--tint .hero__logo {
    height: 3.5rem;
    width: auto;
    display: block;
    margin: 0 0 0.85rem;
}
.hero--tint .hero__title { margin-top: 0; color: var(--brand-on-tint); }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
}
.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.6rem 1.4rem;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}
.hero__cta:hover { filter: brightness(1.08); }
.hero__cta--secondary {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--brand-accent);
}
.hero__cta--secondary:hover { background: #fef3c7; filter: none; }

.signatures { margin: 2rem 0; }
.signatures__title {
    font-family: var(--brand-font);
    letter-spacing: var(--brand-display-spacing);
    font-size: 1.4rem;
    margin: 0 0 0.75rem;
}
.signatures__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
.signatures__item { margin: 0; }
.signatures__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--ink);
}
.signatures__link:hover { border-color: var(--brand-accent); }
.signatures__name { font-weight: 600; }
.signatures__price { white-space: nowrap; color: var(--brand-primary); font-weight: 600; }

/* Menu: table banner, status messages, off-hours, sections */
.menu { margin: 0 0 2rem; }
/* Group title: brand font (serif=bistro / rounded=casual / sans=modern) inked in the on-tint brand colour, on a hairline
   section rule so each menu group opens with a structural, restaurant-led divider. AA-large (≥3:1) on bold display type. */
.menu h2 {
    font-family: var(--brand-font);
    letter-spacing: var(--brand-display-spacing);
    color: var(--brand-on-tint);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--brand-hairline);
}
.menu-section { margin: 0 0 0.5rem; }
.menu__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    color: var(--ink);
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.menu__empty-text { margin: 0; color: var(--muted); }
.menu__empty-cta,
.cart__empty-cta {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.6rem 1.4rem;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}
.menu__empty-cta:hover,
.cart__empty-cta:hover { filter: brightness(1.08); }
.menu__added {
    margin: 0 0 1rem;
    padding: 0.6rem 0.85rem;
    color: #1c1308;
    background: #fef3c7;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
    font-weight: 600;
}
.menu__table-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.5rem;
}
.menu__table-banner-text { font-weight: 600; }
.menu__leave-table {
    min-height: 44px;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid #cbd5e1;
}
.menu__leave-table:hover { border-color: var(--brand-accent); filter: none; }
.menu__off-hours-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--brand-tint-2);
    border: 1px solid var(--brand-hairline);
    border-radius: 999px;
    vertical-align: middle;
}
.menu--off-hours { opacity: 0.85; }
.menu-search__chip-text { line-height: 1.2; }

/* Dish: name, tags, dual-price layout, add-to-cart */
.dish__name {
    font-family: var(--brand-font);
    letter-spacing: var(--brand-display-spacing);
    font-weight: 600;
}
.dish__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.4rem 0 0;
    padding: 0;
}
.dish__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    background: var(--brand-tint-2);
    color: var(--ink);
    border: 1px solid var(--brand-hairline);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
}
.dish__tag--signature,
.dish__tag--woodfired {
    background: #fef3c7;
    color: #1c1308;
    border-color: var(--brand-accent);
}
.dish__tag--spicy {
    background: #fef3c7;
    color: #92400e;
    border-color: #b45309;
}
.dish__tag--vegan,
.dish__tag--vegetarian {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}
.dish__tag--cold {
    background: #f8fafc;
    color: #475569;
    border-color: var(--line);
}
.dish__price--dual {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    white-space: normal;
    text-align: left;
}
.dish__price-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
}
[data-menu-layout="large-photo"] .dish__price--dual {
    align-items: flex-end;
    text-align: right;
}
.dish__price-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.dish__add { margin: 0.75rem 0 0; }
.dish__add-button { min-height: 44px; font-weight: 600; }

/* Cart */
.cart {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.cart__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 1.5rem 0 1rem;
    padding: 1.5rem;
    color: var(--ink);
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.cart__empty-text { margin: 0; color: var(--muted); }
.cart__line {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}
.cart__line-name { font-weight: 600; grid-column: 1; }
.cart__line-price {
    grid-column: 2;
    color: var(--brand-primary);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.cart__stepper {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.cart__step-form { display: inline-flex; }
.cart__step {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 700;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--border-strong, #cbd5e1);
    border-radius: 0.5rem;
}
.cart__step--dec,
.cart__step--inc { color: var(--brand-primary); }
.cart__step:hover { border-color: var(--brand-accent); filter: none; }
.cart__line-qty {
    min-width: 1.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.cart__remove-form { grid-column: 2; justify-self: end; display: inline-flex; }
.cart__remove {
    min-height: 44px;
    background: var(--bg);
    color: #b45309;
    border: 1px solid #cbd5e1;
}
.cart__remove:hover { border-color: #b45309; filter: none; }
.cart__total {
    margin: 1rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.cart__clear-form { margin-top: 1rem; }
.cart__clear {
    min-height: 44px;
    background: var(--bg);
    color: var(--muted);
    border: 1px solid #cbd5e1;
}
.cart__clear:hover { border-color: #cbd5e1; filter: none; }

/* Checkout / dine-in */
.checkout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.checkout--dinein { gap: 0.6rem; }
.checkout__heading { margin: 0; font-size: 1.2rem; }
.checkout__dinein-note { margin: 0; color: var(--muted); }
.checkout__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--ink);
}
.checkout__submit {
    min-height: 48px;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}
.checkout__submit--primary {
    min-height: 56px;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: 0.6rem;
}
.checkout__submit--primary:hover { filter: brightness(1.06); }
.checkout__confirmed {
    margin: 1.5rem 0;
    padding: 0.85rem 1rem;
    color: #1c1308;
    background: #fef3c7;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
    font-weight: 600;
}
.checkout__error {
    margin: 1rem 0;
    padding: 0.75rem 0.85rem;
    color: #b91c1c;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    border-radius: 0.25rem;
}
.checkout__error::before,
.reserve__error::before,
.pay__error::before { content: "\26A0\00A0"; font-weight: 700; }

/* Contact */
.contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.contact__empty { color: var(--muted); }
.contact__name { margin: 0 0 0.25rem; }
.contact__address { margin: 0; color: var(--ink); }
.contact__phone,
.contact__email { margin: 0; }
.contact__phone a,
.contact__email a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}
.contact__phone a:hover,
.contact__email a:hover { text-decoration: underline; }
.contact__hours { margin: 0.75rem 0 0; }
.contact__hours p { margin: 0.25rem 0 0; color: var(--ink); white-space: pre-line; }
.contact__legal { margin: 1.5rem 0 0; }
.contact__legal a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}
.contact__legal a:hover { text-decoration: underline; }

/* Legal notice (mentions légales) */
.legal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.legal__empty { color: var(--muted); }
.legal__section {
    padding: 1.25rem;
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
    background: var(--brand-tint);
}
.legal__section-title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.legal__intro { margin: 0 0 0.5rem; color: var(--muted); }
.legal__editor-name { margin: 0 0 0.75rem; font-weight: 600; color: var(--ink); }
.legal__facts { margin: 0; }
.legal__fact { margin: 0 0 0.6rem; }
.legal__fact-term { margin: 0; font-size: 0.85rem; color: var(--muted); }
.legal__fact-value { margin: 0.1rem 0 0; color: var(--ink); white-space: pre-line; }
.legal__fact-value--todo { color: var(--muted); font-style: italic; }
.legal__host-name { margin: 0 0 0.25rem; font-weight: 600; color: var(--ink); }
.legal__host-description { margin: 0 0 0.25rem; color: var(--ink); }
.legal__host-address { margin: 0; }
.legal__data-body { margin: 0; color: var(--ink); }
.legal__counsel-notice { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* Footer: closes the page on the same brand band as the masthead so the chrome frames the tenant's site top-to-bottom. */
.site-footer {
    border-top: 1px solid var(--brand-hairline);
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    background: var(--brand-band);
}
.site-footer__nav {
    max-width: 44rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-footer__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.site-footer__link:hover { color: var(--brand-primary); text-decoration: underline; }

/* Delivery */
.delivery {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
    background: var(--brand-tint);
}
.delivery--covered { border-left: 4px solid var(--brand-accent); }
.delivery__covered { margin: 0; font-weight: 600; }
.delivery__fee { margin: 0; color: var(--ink); }
.delivery__minimum { margin: 0; color: var(--muted); }
.delivery__not-covered {
    margin: 1.5rem 0;
    padding: 1rem;
    color: var(--muted);
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.5rem;
}

/* FAQ */
.faq { margin: 0; }
.faq__empty { color: var(--muted); }
.faq__item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.faq__question { font-weight: 600; margin: 0 0 0.35rem; }
.faq__answer { margin: 0; color: var(--ink); white-space: pre-line; }

/* Blog (per-tenant, feature-gated) */
.blog { margin: 0; }
.blog__title { margin: 0 0 1.25rem; }
.blog__empty { color: var(--muted); }
.blog__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.blog__item {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    overflow: hidden;
}
.blog__link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.blog__cover {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
}
.blog__item-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
}
.blog__item-title { font-weight: 600; font-size: 1.1rem; }
.blog__date { color: var(--muted); font-size: 0.85rem; }
.blog__excerpt { color: var(--ink); margin: 0; }

.blog-post { max-width: 44rem; margin: 0 auto; }
.blog-post__header { margin: 0 0 1rem; }
.blog-post__title { margin: 0 0 0.5rem; }
.blog-post__date { color: var(--muted); font-size: 0.9rem; margin-right: 0.75rem; }
.blog-post__author { color: var(--muted); font-size: 0.9rem; }
.blog-post__cover {
    width: 100%;
    max-height: 22rem;
    object-fit: cover;
    border-radius: 0.75rem;
    margin: 0 0 1.5rem;
}
.blog-post__body { color: var(--ink); line-height: 1.7; }
.blog-post__body img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.blog-post__body a { color: var(--brand-accent); }
.blog-post__back {
    display: inline-block;
    margin-top: 2rem;
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
}

/* Reviews */
.reviews {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.reviews__empty { color: var(--muted); }
.reviews__summary {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
}
.reviews__summary-score {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
}
.reviews__summary-star { color: var(--brand-accent); font-size: 1.2rem; }
.reviews__summary-count { color: var(--muted); }
.review {
    padding: 0.85rem 1rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.5rem;
}
.review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
}
.review__author { font-weight: 600; }
.review__rating { color: var(--brand-accent); white-space: nowrap; }
.review__comment { margin: 0; color: var(--ink); }

/* Order tracking */
.track {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.track__empty {
    margin: 1.5rem 0;
    color: var(--muted);
}
.track__code {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.track__channel { margin: 0; color: var(--muted); }
/* Order-journey progress indicator (placed → preparing → ready → collected/delivered). Each step pairs an icon glyph
   (✓ done / ● current / ○ upcoming) with its label, so state never rests on colour alone (design-system-ux.md, WCAG
   2.2). Done/current use the tenant brand accent; upcoming is muted slate. aria-hidden — the aria-live status line is
   the screen-reader source of truth. */
.track__progress {
    list-style: none;
    margin: 0.25rem 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.track__step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.track__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.8rem;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid var(--brand-hairline);
    background: var(--bg);
    color: var(--muted);
    flex: none;
}
.track__step-label { color: var(--muted); }
.track__step--done .track__step-icon {
    color: var(--brand-on-primary);
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}
.track__step--done .track__step-label { color: var(--ink); }
.track__step--current .track__step-icon {
    color: var(--brand-accent);
    background: var(--brand-accent-soft);
    border-color: var(--brand-accent);
}
.track__step--current .track__step-label { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
    .track__step-icon { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
}
/* Order status badge: the canonical functional tones (design-system-ux.md) — same colour semantics as the staff
   Dashboard, never the tenant brand, and never colour alone (the word stays + a dot precedes it). */
.track__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
    align-self: flex-start;
    padding: 0.4rem 0.85rem;
    font-weight: 600;
    color: #0f172a;
    background: #f1f5f9;
    border-radius: 999px;
}
.track__status::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #64748b;
    flex: none;
}
.track__status--positive { color: #166534; background: #dcfce7; }
.track__status--positive::before { background: #16a34a; }
.track__status--caution { color: #92400e; background: #fef3c7; }
.track__status--caution::before { background: #f59e0b; }
.track__status--negative { color: #991b1b; background: #fee2e2; }
.track__status--negative::before { background: #dc2626; }
.track__status--neutral { color: #334155; background: #f1f5f9; }
.track__status--neutral::before { background: #64748b; }
.track__total {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.track__paid {
    display: inline-block;
    align-self: flex-start;
    padding: 0.15rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1c1308;
    background: #fef3c7;
    border: 1px solid var(--brand-accent);
    border-radius: 999px;
}
.track__items-heading { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.track__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.track__item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
}

/* Table landing (QR) */
.table-landing {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.table-landing__empty {
    margin: 1.5rem 0;
    color: var(--muted);
}
.table-landing__intro { margin: 0; color: var(--muted); }
.table-landing__ordered {
    margin: 0;
    padding: 0.6rem 0.85rem;
    color: #1c1308;
    background: #fef3c7;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
    font-weight: 600;
}
.table-landing__order {
    min-height: 48px;
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
}
.table-landing__order--primary {
    min-height: 56px;
    padding: 0.85rem 1.4rem;
    font-size: 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.table-landing__order-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.table-landing__menu-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.table-landing__menu-link:hover { color: var(--ink); }
.table-landing__bill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.table-landing__call-heading { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.table-landing__called {
    margin: 0;
    padding: 0.6rem 0.85rem;
    color: #1c1308;
    background: #fef3c7;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
    font-weight: 600;
}
.table-landing__call-onetap {
    width: 100%;
    min-height: 56px;
    font-size: 1.1rem;
}
.table-landing__call-refine {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.table-landing__call-refine-toggle {
    align-self: flex-start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    cursor: pointer;
}
.table-landing__call-refine-toggle:hover { color: var(--ink); }
.table-landing__call-refine[open] .table-landing__call-refine-toggle { margin-bottom: 0.25rem; }
.table-landing__call-refine-submit {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--brand-hairline);
}

/* Reserve / waiter-call / review forms (shared form chrome) */
.reserve {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1rem 0 0;
    padding: 1.25rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.reserve__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--ink);
}
.reserve__submit {
    min-height: 48px;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}
.reserve__confirmed {
    margin: 1.5rem 0;
    padding: 0.85rem 1rem;
    color: #1c1308;
    background: #fef3c7;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
    font-weight: 600;
}
.reserve__error {
    margin: 1rem 0;
    padding: 0.75rem 0.85rem;
    color: #b91c1c;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    border-radius: 0.25rem;
}

/* Pickup payment surface (wraps the existing .pay__stripe island) */
.pay { margin: 1rem 0 0; }
.pay__confirmed {
    margin: 1.5rem 0 1rem;
    padding: 0.85rem 1rem;
    color: #1c1308;
    background: #fef3c7;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
    font-weight: 600;
}
.pay__error {
    margin: 1rem 0;
    padding: 0.75rem 0.85rem;
    color: #b91c1c;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    border-radius: 0.25rem;
}
.pay__unavailable {
    margin: 1.5rem 0 1rem;
    padding: 1rem;
    color: var(--muted);
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.5rem;
}
.pay__track {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-right: 1rem;
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pay__retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-right: 1rem;
    padding: 0.6rem 1.4rem;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}
.pay__retry:hover { filter: brightness(1.08); }

/* Receipt */
.receipt {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.receipt__empty {
    margin: 1.5rem 0;
    color: var(--muted);
}
.receipt__items-heading { font-size: 1.1rem; margin: 0 0 0.5rem; }
.receipt__items {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.receipt__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--line);
}
.receipt__item-qty { color: var(--muted); font-variant-numeric: tabular-nums; }
.receipt__item-name { font-weight: 600; }
.receipt__item-price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt__bill {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.3rem 1rem;
    margin: 0.5rem 0;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
}
.receipt__bill dt { margin: 0; color: var(--muted); }
.receipt__bill dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt__discount-label { color: var(--brand-accent); }
.receipt__discount { color: var(--brand-accent); font-weight: 600; }
.receipt__total-label { font-weight: 700; color: var(--ink); }
.receipt__total {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-primary);
}
.receipt__paid { margin: 0.5rem 0 0; color: var(--ink); }
.receipt__settled {
    display: inline-block;
    align-self: flex-start;
    padding: 0.15rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1c1308;
    background: #fef3c7;
    border: 1px solid var(--brand-accent);
    border-radius: 999px;
}
.receipt__remaining { margin: 0.5rem 0 0; font-weight: 600; }
.receipt__payments-heading { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.receipt__payments {
    list-style: none;
    margin: 0;
    padding: 0;
}
.receipt__line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
}
.receipt__line-method { font-weight: 600; }
.receipt__line-amount { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt__line-refunded {
    flex: 1 1 100%;
    color: #b45309;
    font-size: 0.9rem;
}
.receipt__refunded-total { margin: 0.5rem 0 0; color: #b45309; font-weight: 600; }
.receipt__pay {
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.receipt__pay-heading { margin: 0 0 0.5rem; font-size: 1.2rem; }
.receipt__pay-error {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    color: #b45309;
    background: #fef3c7;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
}
.receipt__pay-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.receipt__review {
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.receipt__review-heading { margin: 0 0 0.35rem; font-size: 1.2rem; }
.receipt__review-intro { margin: 0 0 1rem; color: var(--muted); }
.receipt__review-thanks {
    margin: 0;
    padding: 0.85rem 1rem;
    color: #1c1308;
    background: #fef3c7;
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Not found */
.not-found {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 2rem 0;
}
.not-found__title { margin: 0; }
.not-found__message { margin: 0; color: var(--muted); }
.not-found__home {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.6rem 1.4rem;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}
.not-found__home:hover { filter: brightness(1.08); }

/* Tablet refinements */
@media (min-width: 48rem) {
    .page { padding: 2rem 1.5rem 5rem; }

    .site-header { padding: 0.75rem 1.5rem; }
    .site-nav { flex: 1 1 auto; order: 0; }
    .site-lang { flex: 0 0 auto; margin-left: auto; order: 0; }

    .signatures__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .menu-section__items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: max-content;
        gap: 0.5rem 1.5rem;
    }

    [data-menu-layout="large-photo"] .menu-section__items {
        grid-template-columns: 1fr;
    }
    [data-menu-layout="card-grid"] .menu-section__items {
        gap: 1rem;
    }

    .hero__actions { gap: 1rem; }

    .pay__stripe,
    .receipt__pay-stripe { max-width: 30rem; }
}

/* Desktop refinements */
@media (min-width: 64rem) {
    .page { max-width: 52rem; }

    .site-header__inner { max-width: 52rem; margin: 0 auto; }
    .site-footer__nav { max-width: 52rem; }

    .signatures__list { grid-template-columns: repeat(3, 1fr); }

    .menu-section__items { gap: 0.5rem 2.5rem; }

    .cart__line {
        grid-template-columns: 1fr auto auto auto;
        align-items: center;
    }
    .cart__line-name { grid-column: 1; }
    .cart__stepper { grid-column: 2; }
    .cart__line-price { grid-column: 3; }
    .cart__remove-form { grid-column: 4; }
}

/* API/network-failure fallback: a warm, branded retry surface so a transport error never blanks the page. */
.api-error {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    color: var(--ink);
    background: var(--brand-tint);
    border: 1px solid var(--brand-hairline);
    border-radius: 0.75rem;
}
.api-error__text { margin: 0; color: var(--muted); }
.api-error__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.api-error__retry {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.6rem 1.4rem;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}
.api-error__retry:hover { filter: brightness(1.08); }
.api-error__menu {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
