/* Gastone - public website. Mobile first; breakpoints at 760px and 1024px. */

/* ------------------------------------------------------------------ fonts */

@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/lora-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/lora-latin-wght-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/lora-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/lora-cyrillic-wght-italic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ------------------------------------------------------------------ tokens */

:root {
    --navy: #002e54;
    --navy-light: #0b4676;
    --navy-deep: #00213d;
    --cream: #fbf8f3;
    --cream-dark: #f3ede3;
    --ink: #1c2631;
    --muted: #5d6874;
    --line: #e5ddd0;
    --green: #22903f;
    --red: #d71f26;
    --open: #3fd17a;
    --closed: #ff8a65;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(0, 33, 61, .06), 0 8px 24px rgba(0, 33, 61, .08);
    --header-h: 64px;
    --serif: "Lora", Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
/* Chinese: no web font for CJK (several MB); headings use the system's Chinese fonts */
:lang(zh) {
    --serif: "Lora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
@media (min-width: 760px) {
    :root { --header-h: 76px; }
}

/* ------------------------------------------------------------------ base */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font: 400 1rem/1.65 var(--sans);
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    cursor: default;   /* arrow over text too (owner's choice); hand only on what can be clicked */
}
a, button, summary, label, [role="button"] { cursor: pointer; }
input:not([type="checkbox"]):not([type="radio"]), textarea { cursor: text; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }
::selection { background: var(--navy); color: #fff; }

:focus-visible { outline: 3px solid #f5b301; outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 10px 16px; background: #fff; color: var(--navy); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
    width: 1.15em; height: 1.15em; flex-shrink: 0;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon-star { fill: currentColor; stroke-width: 1; }

.price { font-family: var(--sans); font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ buttons */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px;
    border: 1.5px solid var(--navy); border-radius: 999px;
    background: var(--navy); color: #fff;
    font: 600 .95rem/1.2 var(--sans); text-decoration: none; letter-spacing: .01em;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.button:hover { background: var(--navy-light); border-color: var(--navy-light); transform: translateY(-1px); }
.button-light { background: #fff; border-color: #fff; color: var(--navy); }
.button-light:hover { background: var(--cream-dark); border-color: var(--cream-dark); }
.button-outline-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.button-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.button-outline { background: transparent; color: var(--navy); }
.button-outline:hover { background: var(--navy); color: #fff; }
.button-whatsapp { background: #1fa855; border-color: #1fa855; }
.button-whatsapp:hover { background: #178a45; border-color: #178a45; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-row.center { justify-content: center; }

/* ------------------------------------------------------------------ header */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy); color: #fff;
}
.header-bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; margin-right: auto; transition: opacity .3s; }
.brand img { height: calc(var(--header-h) - 18px); width: auto; }
/* Home: the big logo is in the hero, the small one appears once the hero is scrolled away */
.js .page-home .brand { opacity: 0; pointer-events: none; }
.js .page-home.hero-passed .brand { opacity: 1; pointer-events: auto; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    display: block; padding: 8px 14px; border-radius: 999px;
    color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 500;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }

.lang-switch { position: relative; }
.lang-switch summary {
    display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
    cursor: pointer; list-style: none; font-size: .9rem; color: #fff; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: rgba(255, 255, 255, .08); }
.lang-switch .icon-chevron { width: 14px; height: 14px; transition: transform .2s; }
.lang-switch[open] .icon-chevron { transform: rotate(180deg); }
.lang-switch ul {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;
    background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 33, 61, .25);
}
.lang-switch li a {
    display: block; padding: 10px 14px; border-radius: 8px;
    color: var(--ink); text-decoration: none;
}
.lang-switch li a:hover { background: var(--cream-dark); }
.lang-switch li a[aria-current] { font-weight: 700; color: var(--navy); }
.lang-switch li a[aria-current]::after { content: " ✓"; color: var(--green); }

.nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; margin-right: -8px;
    border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 759px) {
    .js .nav-toggle { display: inline-flex; }
    .js .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .1);
        box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .js .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .js .main-nav ul { flex-direction: column; padding: 12px 20px 20px; }
    .js .main-nav a { padding: 14px 16px; font-size: 1.1rem; border-radius: 10px; }
    .no-js .header-bar { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; }
    .lang-switch summary { padding: 6px 10px; }
}
@media (max-width: 379px) {
    .lang-current { display: none; }
}

/* ------------------------------------------------------------------ notices */

.notice { background: #fff3d1; color: #5a4300; border-bottom: 1px solid #f0dc9e; }
.notice .wrap { display: flex; align-items: flex-start; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.notice .icon { margin-top: 3px; }
.notice p { margin: 0; }

/* ------------------------------------------------------------------ hero */

.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, var(--navy-light) 0%, var(--navy) 55%, var(--navy-deep) 100%);
    color: #fff; text-align: center;
}
.hero-inner { padding-top: 40px; padding-bottom: 64px; }
.hero-logo { margin: 0 auto; max-width: min(400px, 78vw); }
.hero-logo img { display: block; width: 100%; }
/* Where we are, under the logo: part of the page heading */
.hero-place {
    display: block; margin-top: 14px;
    font: 600 .85rem/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
}
.hero-text {
    max-width: 640px; margin: 24px auto 0;
    font: italic 400 1.35rem/1.4 var(--serif); color: rgba(255, 255, 255, .92);
}
.hero-text p { margin: 0; }
.hero-text p + p { margin-top: .5em; }
.hero-text::after {
    content: ""; display: block; width: 72px; height: 3px; margin: 24px auto 0; border-radius: 3px;
    background: linear-gradient(90deg, var(--green) 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (min-width: 760px) {
    .hero-inner { padding-top: 64px; padding-bottom: 96px; }
    .hero-text { font-size: 1.75rem; }
}

.status {
    display: inline-flex; align-items: center; gap: 8px; margin: 24px 0 0;
    padding: 6px 14px; border-radius: 999px;
    font-size: .9rem; font-weight: 500;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--closed); }
.status.is-open .status-dot { background: var(--open); box-shadow: 0 0 0 4px rgba(63, 209, 122, .2); }

.page-hero {
    background: radial-gradient(120% 120% at 50% 0%, var(--navy-light) 0%, var(--navy) 70%);
    color: rgba(255, 255, 255, .88); padding: 22px 0 24px;
}
.page-hero h1 { color: #fff; font-size: 2.1rem; margin-bottom: .3em; }
.page-hero h1:last-child { margin-bottom: 0; }
.page-hero p { margin: 0; }
@media (min-width: 760px) {
    .page-hero { padding: 30px 0 32px; }
    .page-hero h1 { font-size: 2.75rem; }
}

/* ------------------------------------------------------------------ sections */

.section { padding: 56px 0; }
.tinted { background: var(--cream-dark); }
.section-head { margin-bottom: 32px; }
.section-title { font-size: 1.9rem; }
.section-intro { color: var(--muted); max-width: 600px; margin: 0 auto 1em; }
.section-intro > :last-child { margin-bottom: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.faq p { margin-bottom: 1.25em; }
.faq strong { font-family: var(--serif); font-size: 1.08rem; color: var(--navy); }
.ornament { display: block; margin: 0 auto 12px; }
@media (min-width: 760px) {
    .section { padding: 88px 0; }
    .section-title { font-size: 2.4rem; }
    .lead { font-size: 1.2rem; }
}

/* Home "about": title, the dining room photo across the page, then the text */
.about-grid { display: grid; gap: 32px; }
.about-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text { text-align: center; }
.about-text .section-title { margin-bottom: 0; }
@media (min-width: 760px) {
    .about-grid { gap: 48px; }
}

.card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px;
}
.card h2, .card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
@media (min-width: 760px) {
    .card { padding: 32px; }
}

/* ------------------------------------------------------------------ home: dishes */

.dish-cards {
    display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 -4px 12px;
    scrollbar-width: none;
}
.dish-cards::-webkit-scrollbar { display: none; }
.dish-card { scroll-snap-align: start; }
.dish-card a {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.dish-card a:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 33, 61, .06), 0 16px 40px rgba(0, 33, 61, .14); }
.dish-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-card-nophoto {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
    background: var(--navy);   /* same blue as the icon's background */
}
.dish-card .dish-card-nophoto img { width: 120px; height: 120px; aspect-ratio: auto; }
.dish-card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.dish-card-category { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.dish-card-title { font: 600 1.1rem/1.3 var(--serif); color: var(--navy); flex: 1; }
@media (min-width: 760px) {
    .dish-cards {
        grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(220px, 290px));
        overflow: visible; padding: 0; margin: 0 0 40px; justify-content: center;
    }
}

/* ------------------------------------------------------------------ home: reviews */

.review-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 32px; }
.review-cards:has(> :only-child) { max-width: 680px; margin-left: auto; margin-right: auto; }
.review-card {
    position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px 24px 24px;
}
.review-card::before {
    content: "\201C"; position: absolute; right: 20px; top: -6px;
    font: 700 6rem/1 var(--serif); color: rgba(215, 31, 38, .12);
}
.review-card h3 { font-size: 1.2rem; }
.review-card blockquote { color: #3a4552; }
.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.stars .on { color: #f5b301; }
.stars .off { color: #ddd5c8; }
.review-meta { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.review-meta strong { color: var(--ink); }

/* ------------------------------------------------------------------ visit / contact */

.visit-grid, .contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
    .visit-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
    .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 32px; }
}
.contact-side { display: grid; gap: 32px; }

.contact-list { display: grid; gap: 18px; margin: 24px 0 28px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list li > .icon {
    width: 42px; height: 42px; padding: 10px; border-radius: 50%;
    background: rgba(0, 46, 84, .08); color: var(--navy);
}
.contact-list .label {
    display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.card .contact-list { margin-top: 0; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pay-badge {
    padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--cream); color: var(--navy); font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.booking-note { margin: 0 0 22px; padding: 12px 16px; border-radius: 10px; background: #e3ebf4; color: var(--navy); font-size: .92rem; }

.hours-card .status { margin: 0 0 16px; background: var(--cream-dark); border-color: var(--line); color: var(--ink); }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.hours-table th { text-align: left; font-weight: 500; }
.hours-table th::first-letter { text-transform: uppercase; }
.hours-table td { text-align: right; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table .is-today { font-weight: 700; color: var(--navy); }
.hours-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px;
    border: 1px solid currentColor; color: inherit; text-decoration: none;
}
.social .icon { width: 20px; height: 20px; }
.social-large a { padding: 0 18px; color: var(--navy); font-weight: 600; }
.social-large a:hover { background: var(--navy); color: #fff; }

/* ------------------------------------------------------------------ menu */

/* Sticky bar: category buttons, then the diet filters */
.menu-bar {
    position: sticky; top: var(--header-h); z-index: 40;
    background: rgba(251, 248, 243, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.menu-nav ul {
    display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px;
    scrollbar-width: none;
}
.menu-nav ul::-webkit-scrollbar { display: none; }
/* Centred when it fits, scrollable from the first button when it doesn't (spacers, since filters may hide buttons) */
.menu-nav ul::before, .menu-filters::before { content: ""; margin: 0 -8px 0 auto; }   /* -8px: cancel the flex gap */
.menu-nav ul::after, .menu-filters::after { content: ""; margin: 0 auto 0 -8px; }
.menu-nav a {
    display: block; white-space: nowrap; padding: 8px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
    transition: background-color .2s, color .2s, border-color .2s;
}
.menu-nav a:hover { border-color: var(--navy); }
.menu-nav a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
/* site.js sets the exact value from the bar height */
html:has(.page-menu) { scroll-padding-top: calc(var(--header-h) + 72px); }

/* One row like the categories: scrolls sideways when the labels don't fit (phones, long translations) */
/* padding-top: room for the buttons' top border, which the row clips (it scrolls sideways): flush with the edge,
   sub-pixel rounding after scrolling could cut it off */
.menu-filters { display: flex; gap: 8px; overflow-x: auto; padding-top: 2px; padding-bottom: 10px; scrollbar-width: none; }
.menu-filters::-webkit-scrollbar { display: none; }
/* Less space under the categories when the filters follow: the two rows must not overlap (each scrolls
   sideways on its own layer, and an overlap let the categories cover the top of the filter buttons) */
.menu-nav:has(+ .menu-filters) ul { padding-bottom: 6px; }
.menu-filters:first-child { padding-top: 10px; }
.menu-filters[hidden] { display: none; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px;
    background: transparent; border: 1px dashed #c4b7a4; color: var(--muted);
    font: 500 .82rem/1.3 var(--sans); white-space: nowrap; flex: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.filter-chip::before {
    content: ""; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid currentColor; flex: none;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip[aria-pressed="true"] { background: #e3ebf4; border-style: solid; border-color: var(--navy); color: var(--navy); }
.filter-chip[aria-pressed="true"]::before {
    border-color: var(--navy); background: var(--navy)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.menu-note, .filter-none {
    margin: 28px auto 0; max-width: 620px; padding: 12px 18px; border-radius: 10px;
    background: #e3ebf4; color: var(--navy); font-size: .92rem; text-align: center;
}
.menu-note { margin: 12px auto 8px; }
.filter-none[hidden], .menu-category[hidden], .dish[hidden], .menu-nav li[hidden] { display: none; }

.menu-wrap { max-width: 880px; padding-bottom: 72px; }
.menu-category { padding-top: 48px; }
.menu-category-head { text-align: center; margin-bottom: 8px; }
.menu-category-head h2 {
    display: flex; align-items: center; gap: 20px; font-size: 1.9rem; margin-bottom: .2em;
}
.menu-category-head h2::before, .menu-category-head h2::after {
    content: ""; flex: 1; height: 1px; background: var(--line);
}
.menu-category-head p { color: var(--muted); }

/* Photo column on the left, always reserved, so every dish's text starts at the same distance */
.dish {
    --thumb: 76px;
    display: grid; grid-template-columns: var(--thumb) minmax(0, 1fr); gap: 16px; align-items: start;
    padding: 20px 0; border-bottom: 1px solid var(--line);
}
.dish-photo { grid-column: 1; grid-row: 1; }
.dish-body { grid-column: 2; grid-row: 1; }
.dish:target { animation: highlight 2s ease-out; }
@keyframes highlight { from { background: #fff3d1; } to { background: transparent; } }

/* Name + tag icons + dots, price on the right at the baseline of the name's last line */
.dish-head { display: flex; align-items: flex-end; align-items: last baseline; gap: 10px; margin: 0 0 4px; }
.dish-name {
    flex: 1; min-width: 0; margin: 0;
    font: 600 1.12rem/1.4 var(--serif); color: var(--ink);
    overflow: hidden; overflow-x: clip; overflow-y: visible;   /* cuts the dots at the price, keeps icons whole */
}
/* Zero width so it always fits after the last word of the name, on its baseline; the dots overflow right and are clipped by .dish-name */
.dish-leader { display: inline-block; width: 0; white-space: nowrap; font: 400 1rem/1 var(--sans); letter-spacing: 3px; color: #c4b7a4; }
.dish-leader::after { padding-left: 8px; content: "........................................................................................................................................................"; }
.dish-head .price { flex: none; font-size: 1.02rem; }
.dish-desc { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.dish-ingredients { margin: 0 0 6px; color: var(--muted); font-size: .88rem; font-style: italic; }
.dish-ingredients .tag, .dish-ingredients .tag-icon { margin-left: 4px; font-style: normal; vertical-align: middle; }
.dish-tags { margin: 0 0 6px; }
.dish-tags .tag:first-child, .dish-tags .tag-icon:first-child { margin-left: 0; }
.tag {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 600; background: #eee8de; color: #5a5146;
}
.tag .icon { width: 13px; height: 13px; }
.tag-vegetarian, .tag-vegan { background: #e5f3e8; color: #1b6e31; }
.tag-spicy { background: #fde6e4; color: #a8191f; }
.tag-gluten-free, .tag-gluten-free-pasta { background: #fdf1d8; color: #7a5a06; }
.tag-lactose { background: #e6eef7; color: #1d4f80; }
/* Tags with an emoji (admin "Icon"): icon only, the name appears on hover / tap */
.tag-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 7px; background: #f1ece4;
    font: .95rem/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.tag-icon:focus-visible { outline-offset: 1px; }
/* Name bubble of a tag icon, placed by site.js on the page so the dish row never cuts it off */
.tag-tip {
    position: fixed; z-index: 70; pointer-events: none;
    padding: 5px 9px; border-radius: 6px; background: var(--navy); color: #fff;
    font: 600 .75rem/1.2 var(--sans); white-space: nowrap;
}
.tag-tip[hidden] { display: none; }

.dish-photo {
    display: block; width: var(--thumb); height: var(--thumb); border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 33, 61, .12); cursor: zoom-in;
}
.dish-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.dish-photo:hover img { transform: scale(1.06); }
@media (min-width: 760px) {
    .dish { --thumb: 112px; gap: 24px; padding: 24px 0; }
    .dish-name { font-size: 1.2rem; }
    .menu-category { padding-top: 64px; }
    .menu-category-head h2 { font-size: 2.3rem; }
}

.extras { margin-top: 20px; padding: 16px 20px; border-radius: 12px; background: var(--cream-dark); }
.extras h3 { font: 600 .78rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.extras li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }

.photo-viewer {
    width: min(92vw, 900px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius);
    background: #000; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.photo-viewer::backdrop { background: rgba(0, 20, 38, .8); backdrop-filter: blur(4px); }
.photo-viewer figure { margin: 0; }
.photo-viewer img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.photo-viewer figcaption { padding: 14px 20px; background: #fff; font: 600 1.1rem/1.3 var(--serif); color: var(--navy); }
.photo-close {
    position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer;
}

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand img { width: 160px; }
.site-footer h2 {
    font: 600 .78rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .14em;
    color: #fff; margin-bottom: 16px;
}
.footer-list { display: grid; gap: 12px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { margin-top: 4px; opacity: .7; }
.site-footer .hours-table th, .site-footer .hours-table td { border-color: rgba(255, 255, 255, .12); padding: 6px 0; }
.site-footer .hours-table .is-today { color: #fff; }
.site-footer .hours-note { color: rgba(255, 255, 255, .6); }
.site-footer .social a { border-color: rgba(255, 255, 255, .3); }
.site-footer .social a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.social-text { font-size: .85rem; padding: 0 14px !important; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
    padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .85rem;
}
.footer-bottom p { margin: 0; }
/* Company and tax ID (Settings), a two-part badge next to the copyright */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; max-width: 100%; }
.company-badge {
    display: inline-flex; flex-wrap: wrap; overflow: hidden; max-width: 100%;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; font-size: .8rem; line-height: 1.4;
}
.company-badge > span { padding: 4px 12px; }
.company-name { color: #fff; font-weight: 600; }
.company-tax { background: rgba(255, 255, 255, .1); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.company-tax .label { margin-right: 8px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-langs a { color: rgba(255, 255, 255, .7); }
.footer-langs a[aria-current] { color: #fff; font-weight: 700; }
@media (min-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1.4fr 1.3fr 1fr; gap: 48px; padding-top: 72px; }
}

/* ------------------------------------------------------------------ mobile action bar */

.action-bar { display: none; }
@media (max-width: 759px) {
    .action-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        background: #fff; border-top: 1px solid var(--line);
        box-shadow: 0 -6px 24px rgba(0, 33, 61, .1);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .action-bar a {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        padding: 9px 4px 8px; color: var(--navy); text-decoration: none;
        font-size: .74rem; font-weight: 600;
    }
    .action-bar a + a { border-left: 1px solid var(--line); }
    .action-bar .icon { width: 22px; height: 22px; }
    body:has(.action-bar) { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}
