/* ── TableTemptation — global styles ──────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
}

/* ── Hero section ────────────────────────────────────────────────────── */
.tt-hero {
    background: linear-gradient(135deg, #111111 0%, #C62828 100%);
    color: #fff;
    padding: 0;
}

.tt-hero-title {
    color: #fff !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.tt-hero-subtitle {
    color: rgba(255,255,255,0.88) !important;
}

.tt-cta-btn {
    min-width: 160px;
}

/* ── Language selector ───────────────────────────────────────────────── */
.lang-selector-menu .mud-button-root.mud-menu-button-activator {
    text-transform: none !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
    padding: 4px 8px !important;
}

/* ── Feature cards ───────────────────────────────────────────────────── */
.tt-feature-card {
    border-radius: 12px !important;
    transition: box-shadow 0.2s ease;
}
.tt-feature-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12) !important;
}

/* ── Alternating section background ─────────────────────────────────── */
.tt-section-alt {
    background: #F5F5F5;
}

/* ── CTA banner ──────────────────────────────────────────────────────── */
.tt-cta-banner {
    background: #fff;
    border-top: 1px solid #E0E0E0;
}

/* ── Auth pages ──────────────────────────────────────────────────────── */
.tt-auth-page {
    min-height: calc(100vh - 64px);
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.tt-auth-card {
    border-radius: 16px !important;
}

/* ── Admin stat cards ────────────────────────────────────────────────── */
.tt-stat-card {
    border-radius: 12px !important;
}
.tt-stat-card-link {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tt-stat-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* ── Image lightbox ─────────────────────────────────────────────────── */
.tt-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.tt-lightbox-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    cursor: default;
}
.tt-lightbox-image {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.tt-lightbox-close {
    position: absolute !important;
    top: -40px;
    right: -8px;
    color: white !important;
}
.tt-menu-item-image {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.tt-menu-item-image:hover {
    transform: scale(1.05);
}

/* ── Public menu item card — responsive layout ──────────────────────────
   Mobile-first: a long item name plus a wide price (e.g. "€100.00") was
   clipping off-frame on Android because the inner row tried to keep
   price on the same line via `white-space: nowrap`. On narrow viewports
   we now stack the price on its own line (right-aligned), and shrink the
   thumbnail from 100×80 → ~96×96 with a smaller variant on phones. */
.tt-menu-item-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
}
.tt-menu-item-image {
    width: 100px;
    height: 80px;
}
.tt-menu-item-image .mud-image,
.tt-menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.tt-menu-item-namerow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.tt-menu-item-titlecol {
    min-width: 0; /* allows the title to wrap inside a flex child */
}
.tt-menu-item-name {
    overflow-wrap: anywhere; /* break long un-spaced words instead of clipping */
}
.tt-menu-item-price {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Phone-specific layout: smaller thumb + price below name. */
@media (max-width: 599px) {
    .tt-menu-item-row {
        gap: 12px;
    }
    .tt-menu-item-image {
        width: 80px;
        height: 80px;
    }
    .tt-menu-item-namerow {
        /* Stack on phones — title gets the full content width, price
           drops below right-aligned. No more clipping at the frame edge. */
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .tt-menu-item-price {
        align-self: flex-end;
        margin-top: 2px;
    }
    .tt-menu-item-card {
        padding: 12px !important; /* tighter than pa-4's 16px */
    }
}

/* ── Admin quick-action panels ───────────────────────────────────────── */
.tt-quick-action {
    border-radius: 12px !important;
    transition: box-shadow 0.2s ease;
}
.tt-quick-action:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* ── Public menu banner ──────────────────────────────────────────────── */
.tt-public-banner {
    position: relative;
    padding: 3rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-public-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tt-public-banner-compact {
    min-height: auto;
    padding: 1.5rem 0;
}
@media (min-width: 600px) {
    .tt-public-banner-compact {
        padding: 2rem 0;
    }
}

.tt-public-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* ── Flag images ─────────────────────────────────────────────────────── */
.tt-flag-chip {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 4px;
    vertical-align: middle;
}

/* ── Public restaurant — sub-page floating logo ─────────────────────── */
.tt-subpage-logo {
    position: fixed;
    top: 6px;
    left: 6px;
    z-index: 1100;
    pointer-events: auto;
}
/* Sub-page logo (top-left badge on menu/history/gallery/contact/booking).
   Doubled from the previous design (32/48/80 px → 64/96/160 px) for a
   more prominent brand mark on the inner pages. */
.tt-subpage-logo-img {
    height: 64px;
    max-width: 160px;
    object-fit: contain;
}

/* Tablet: medium logo */
@media (min-width: 600px) {
    .tt-subpage-logo-img {
        height: 96px;
        max-width: 240px;
    }
}

/* Desktop: larger logo */
@media (min-width: 960px) {
    .tt-subpage-logo-img {
        height: 160px;
        max-width: 400px;
    }
}

/* ── Public restaurant — landing page responsive ────────────────────── */

/* Hero logo — viewport-relative sizing (max-height in `vh`) so the logo
   scales with the visible viewport on every device. Tuned to ~33–39 vh
   (down from an earlier 55–65 vh, which dominated the hero); the
   `max-width` clamps keep wide / banner-shaped logos from bleeding off
   the side on narrow screens. */
.tt-hero-logo {
    width: auto;
    height: auto;
    max-height: 33vh;
    max-width: 51vw;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}
@media (min-width: 600px) {
    .tt-hero-logo {
        max-height: 36vh;
        max-width: 42vw;
    }
}
@media (min-width: 960px) {
    .tt-hero-logo {
        max-height: 39vh;
        max-width: 33vw;
    }
}

/* Landing section padding: tighter on mobile */
.tt-landing-section {
    padding: 3rem 0;
}
@media (min-width: 600px) {
    .tt-landing-section {
        padding: 5rem 0;
    }
}

/* Landing section titles: smaller on mobile */
.tt-section-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ffffff;
}
@media (min-width: 600px) {
    .tt-section-title {
        font-size: 2rem !important;
    }
}

/* Note: `.tt-hero-name` and `.tt-hero-address` classes were removed when
   the hero became logo-only. Restaurant name + address now live in the
   bottom contact section / footer only. */

/* Hero CTA buttons — bigger touch targets on mobile (44 px min height
   matches Apple HIG / Material Design tap-target guidance) and a soft
   minimum width so a 2-button row doesn't squeeze either side. */
.tt-hero-inner .mud-button-root {
    min-height: 44px;
    min-width: 140px;
}
@media (max-width: 599px) {
    .tt-hero-inner .mud-button-root {
        flex: 1 1 calc(50% - 8px); /* two buttons fit per row on phones */
        font-size: 0.875rem;
    }
}

/* Nav bar: scrollable on mobile */
.tt-nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 6px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}
.tt-nav-bar::-webkit-scrollbar { display: none; }
@media (min-width: 600px) {
    .tt-nav-bar {
        justify-content: center;
        gap: 8px;
        padding: 8px;
    }
}

/* Contact card: less padding on mobile */
.tt-contact-card {
    padding: 1.5rem;
}
@media (min-width: 600px) {
    .tt-contact-card {
        padding: 2rem;
    }
}

/* Gallery grid on mobile: 2 columns */
.tt-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}
@media (min-width: 600px) {
    .tt-gallery-item {
        border-radius: 12px;
    }
}

/* ── Blazor error UI ─────────────────────────────────────────────────── */
#blazor-error-ui {
    background: #ffeded;
    border-top: 1px solid #e3c4c4;
    color: #333;
    display: none;
    font-size: 14px;
    padding: 12px 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ── Booking timeline bar (per-row slot indicator) ─────────────────── */
.booking-timeline {
    position: relative;
    height: 8px;
    background: #eeeeee;
    border-radius: 4px;
    overflow: hidden;
}

.booking-timeline-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ccc;
    z-index: 1;
}

.booking-timeline-slot {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    z-index: 2;
    transition: opacity 0.15s ease;
}

.booking-timeline--green  { background: #4caf50; }   /* 0–40% capacity */
.booking-timeline--orange { background: #ff9800; }   /* 40–80% capacity */
.booking-timeline--red    { background: #f44336; }   /* 80–100% capacity */

/* ── Change indicator ───────────────────────────────────────────────── */
.change-indicator {
    color: #e65100;
    font-weight: 600;
    font-size: 0.85em;
}

/* ──────────────────────────────────────────────────────────────────────
   Rich-text editor (history page) — Quill host + size classes
   ────────────────────────────────────────────────────────────────────── */

/* Image-size classes applied via the floating size-picker. Both the
   editor preview AND the public site honour these — the public side
   renders the same HTML so visitors see the same sizes the owner picked.
   `display: block` + auto margins centre the medium/large images;
   `Full` stretches to the column width. */
.ttrte-img-sm   { max-width: 30%;  display: block; margin: 1rem auto; }
.ttrte-img-md   { max-width: 60%;  display: block; margin: 1rem auto; }
.ttrte-img-lg   { max-width: 85%;  display: block; margin: 1rem auto; }
.ttrte-img-full { max-width: 100%; display: block; margin: 1rem auto; }

/* Floating size picker that appears next to a selected image. */
.ttrte-size-picker {
    background: #1a1a2e;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 4px;
    display: inline-flex;
    gap: 2px;
}
.ttrte-size-picker button {
    background: transparent;
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}
.ttrte-size-picker button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Ensure Quill's editor area has comfortable height + matches MudBlazor
   form-field padding so it doesn't look glued onto the rest of the form. */
.ql-container.ql-snow {
    min-height: 280px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.ql-toolbar.ql-snow {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* ── Editor.js block editor (admin + public) ─────────────────────────────
   Mirrors the Quill styling above. The admin host gives Editor.js enough
   vertical room to feel like a real editor (not a single textbox), and
   the public-side .tt-blocks namespace styles each rendered block type.
   Block-image classes (.tt-block-image-stretched / .tt-block-image-bg /
   .tt-block-image-border) match the legacy .ttrte-img-* widths so a
   migrated page looks identical post-conversion. */
.tt-block-editor-host {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 8px 12px;
    min-height: 280px;
    background: #fff;
}
.tt-block-editor .codex-editor {
    min-height: 240px;
}

/* Public-side rendered output. Keep tight whitespace defaults so the
   blocks compose well inside any host layout (cards or landing). */
.tt-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tt-blocks .tt-block-heading {
    margin: 1rem 0 0.25rem 0;
    line-height: 1.25;
}
.tt-blocks .tt-block-paragraph {
    margin: 0;
    line-height: 1.6;
}
.tt-blocks .tt-block-list {
    margin: 0 0 0 1.25rem;
    padding: 0;
}
.tt-blocks .tt-block-list li {
    margin: 0.125rem 0;
    line-height: 1.6;
}
.tt-blocks .tt-block-image {
    margin: 0.5rem 0;
}
.tt-blocks .tt-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}
.tt-blocks .tt-block-image-stretched img {
    width: 100%;
}
.tt-blocks .tt-block-image-bg {
    background: rgba(0, 0, 0, 0.04);
    padding: 12px;
    border-radius: 8px;
}
.tt-blocks .tt-block-image-border img {
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.tt-blocks .tt-block-image figcaption {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.75;
    text-align: center;
}
.tt-blocks .tt-block-delimiter {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.12);
    width: 60%;
    margin: 1.5rem auto;
}
.tt-blocks .tt-block-quote {
    border-left: 3px solid rgba(0, 0, 0, 0.25);
    padding: 0.25rem 1rem;
    margin: 0.5rem 0;
    font-style: italic;
}
.tt-blocks .tt-block-quote-center {
    text-align: center;
    border-left: none;
    padding: 0.25rem 0;
}
.tt-blocks .tt-block-quote p {
    margin: 0;
}
.tt-blocks .tt-block-quote cite {
    display: block;
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    font-style: normal;
}
.tt-blocks .tt-block-embed {
    margin: 0.75rem 0;
}
.tt-blocks .tt-block-embed-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 — responsive iframe */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}
.tt-blocks .tt-block-embed-frame iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.tt-blocks .tt-block-embed figcaption {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.75;
    text-align: center;
}

/* ── Image corner-drag resize handles (block editor) ───────────────────
   Always-visible blue circles at the 4 corners of every image inside
   the block editor. The TtImage class mounts these as direct children
   of `.image-tool__image-picture` (the upstream container that survives
   the plugin's async re-renders). Dragging any handle scales the image
   width — persisted as `data.ttWidth` (percent 10–100). */
.tt-block-editor-host .image-tool__image-picture {
    position: relative; /* positioning context for the handles */
}
.tt-img-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid #1976d2;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    z-index: 10;
    touch-action: none; /* prevent native scroll/zoom while dragging */
}
.tt-img-handle:hover { transform: scale(1.15); }
.tt-img-handle-nw { top: -10px;    left: -10px;    cursor: nwse-resize; }
.tt-img-handle-ne { top: -10px;    right: -10px;   cursor: nesw-resize; }
.tt-img-handle-sw { bottom: -10px; left: -10px;    cursor: nesw-resize; }
.tt-img-handle-se { bottom: -10px; right: -10px;   cursor: nwse-resize; }

/* Editor-view image cap — without this, a 4000-px-wide upload renders at
   its native size and dominates the editor before the owner can resize.
   The cap keeps the image inside the editor column from the moment it
   loads; the corner handles then let the owner shrink further. */
.tt-block-editor-host .image-tool__image-picture,
.tt-block-editor-host .image-tool__image-picture img {
    max-width: 100% !important;
    height: auto !important;
}

/* ── Public landing — mobile-friendliness safeguards ─────────────────────
   Catches whole categories of mobile bugs at once:
   • horizontal overflow (a single overflowing element makes the entire
     page scroll sideways on mobile — `overflow-x: hidden` on the layout
     root contains the damage without breaking sticky-position elements);
   • shrunk text on iOS Safari (the browser auto-zooms <input> when the
     font is < 16 px — pinning to 16 px stops the page from jumping);
   • cramped horizontal padding on small viewports;
   • images stretched past their container by a long URL or alt-text. */
.tt-landing-section,
.tt-landing-section * {
    box-sizing: border-box;
}
.tt-landing-section img:not(.tt-hero-logo) {
    max-width: 100%;
    height: auto;
}
@media (max-width: 599px) {
    .tt-landing-section {
        padding-left: max(env(safe-area-inset-left), 12px);
        padding-right: max(env(safe-area-inset-right), 12px);
    }
    /* iOS Safari auto-zooms inputs under 16 px — keep them at 16 px so
       focusing a public-booking form field doesn't trigger a zoom that
       the user then has to undo manually. */
    .tt-landing-section input,
    .tt-landing-section textarea,
    .tt-landing-section select {
        font-size: 16px;
    }
    /* Public booking + contact buttons get the same 44 px tap-target floor. */
    .tt-landing-section .mud-button-root {
        min-height: 44px;
    }
}

/* Prevent the body from horizontal-scrolling when a child overflows.
   This is a safety net — not an excuse for shipping overflowing content,
   but it stops a one-off CSS regression from breaking every public page. */
html, body {
    overflow-x: hidden;
}

/* ── Tier picker cards (Restaurants → create dialog) ──────────────────── */
.tt-tier-card {
    transition: box-shadow 120ms ease, transform 120ms ease;
}
.tt-tier-card:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}
.tt-tier-card-selected {
    border: 2px solid var(--mud-palette-primary) !important;
    background: rgba(25, 118, 210, 0.06);
}

/* Trial banner (admin layout) */
.tt-trial-banner {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}
.tt-trial-banner-expired {
    background: #fee2e2;
    color: #991b1b;
}
.tt-trial-banner a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 8px;
}

/* ── Block-editor image: size + position tunes ───────────────────────────
   The ImageSizeTune / ImagePositionTune (block-editor.js) write their state
   to `block.tunes.imageSize.size` and `block.tunes.imagePosition.alignment`.
   They ALSO apply matching CSS classes to the upstream image-tool root in
   the editor (`.image-tool.tt-block-image-size-{x}.tt-block-image-align-{y}`)
   so the editor preview reflects the chosen size + position immediately.
   BlockRenderer applies the same classes to the <figure> on the public side. */
.tt-block-image-size-small,
.codex-editor .image-tool.tt-block-image-size-small .image-tool__image-picture {
    max-width: 30%;
}
.tt-block-image-size-medium,
.codex-editor .image-tool.tt-block-image-size-medium .image-tool__image-picture {
    max-width: 60%;
}
.tt-block-image-size-large,
.codex-editor .image-tool.tt-block-image-size-large .image-tool__image-picture {
    max-width: 85%;
}
.tt-block-image-size-full,
.codex-editor .image-tool.tt-block-image-size-full .image-tool__image-picture {
    max-width: 100%;
}

/* Public-side <figure> alignment */
.tt-block-image-align-left   { margin-left: 0;    margin-right: auto; }
.tt-block-image-align-center { margin-left: auto; margin-right: auto; }
.tt-block-image-align-right  { margin-left: auto; margin-right: 0;    }

/* Editor-preview alignment — image-tool's picture is the actual visual
   anchor (caption sits below it as a full-width input), so we move the
   picture, not the whole image-tool. */
.codex-editor .image-tool.tt-block-image-align-left   .image-tool__image-picture { margin-left: 0;    margin-right: auto; }
.codex-editor .image-tool.tt-block-image-align-center .image-tool__image-picture { margin-left: auto; margin-right: auto; }
.codex-editor .image-tool.tt-block-image-align-right  .image-tool__image-picture { margin-left: auto; margin-right: 0;    }

/* `.image-tool__image-picture` must be display:block for margin:auto to
   work — it is by default in @editorjs/image, but be explicit. */
.codex-editor .image-tool__image-picture {
    display: block;
}

@media (max-width: 599px) {
    /* On phones, force-everything to ~full width so a "Small (30%)" image
       on a 375 px screen doesn't end up barely visible (would render at
       ~112 px otherwise). Owner intent is preserved on tablet/desktop. */
    .tt-block-image-size-small,
    .tt-block-image-size-medium,
    .tt-block-image-size-large,
    .codex-editor .image-tool .image-tool__image-picture {
        max-width: 100%;
    }
}

/* ── QR-mode menu page (chromeless) ───────────────────────────────────── */
/* Full-viewport background layer. Uses `position: fixed` for the dim
   overlay so the banner stays anchored as the menu scrolls — feels more
   like reading a poster than scrolling a website. */
.tt-qr-page {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.tt-qr-page-dim {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 0;
    pointer-events: none;
}
.tt-qr-lang-strip {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
}

/* Header row — logo LEFT, menu name RIGHT. The translucent strip lets
   the banner show through while keeping the text legible. */
.tt-qr-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.tt-qr-logo {
    flex-shrink: 0;
    /* Logo is a header MARK, not a hero element. Sized to roughly match
       1.5× the menu-name height so the two read as a balanced "logo +
       brand" row. Sizes below were bumped 25 % over the earlier baseline
       per owner feedback that the previous pass had over-shrunk. */
    height: 70px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.tt-qr-titleblock {
    flex: 1;
    min-width: 0; /* lets the name shrink inside the flex row */
}
.tt-qr-menu-name {
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin: 0 !important;
    overflow-wrap: anywhere;
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
}
.tt-qr-menu-note {
    color: rgba(255,255,255,0.85) !important;
    font-style: italic;
    margin: 0.25rem 0 0 0 !important;
    font-size: 0.875rem !important;
}

/* Menu body sits on top of the page background. The MenuDisplay cards
   bring their own surfaces, so item rows stay readable over any banner. */
.tt-qr-body {
    position: relative;
    z-index: 1;
}

/* Phones — stack header to column so the title doesn't get squeezed by
   a wide logo. Logo also shrinks a notch. */
@media (max-width: 599px) {
    .tt-qr-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        padding: 0.875rem;
    }
    .tt-qr-logo {
        height: 60px;       /* 48 → 60 (+25 %) */
        max-width: 70vw;
    }
    .tt-qr-menu-name {
        font-size: 1.25rem !important;
    }
}

/* Tablet+ — slightly larger logo + name, still header-proportioned. */
@media (min-width: 600px) {
    .tt-qr-header { padding: 1rem 1.5rem; gap: 1.25rem; }
    .tt-qr-logo   { height: 80px; max-width: 225px; }   /* 64 → 80, 180 → 225 (+25 %) */
    .tt-qr-menu-name { font-size: 1.625rem !important; }
}
@media (min-width: 960px) {
    .tt-qr-header { padding: 1.25rem 2rem; }
    .tt-qr-logo   { height: 90px; max-width: 275px; }   /* 72 → 90, 220 → 275 (+25 %) */
    .tt-qr-menu-name { font-size: 1.875rem !important; }
}
