/* ==========================================================================
   Risha — public menu
   The page a guest reads after scanning the code on the table. Paper ground,
   the landing page's Lyon and Satoshi, its five colours and nothing else.
   Layout is written in logical properties so Arabic and Kurdish mirror it
   without a second stylesheet. Builds on /css/risha-brand.css.
   ========================================================================== */

.menu {
    --m-paper: var(--risha-cream-soft);
    --m-paper-warm: var(--risha-cream);
    --m-ink: var(--risha-ink);
    --m-ink-soft: rgba(22, 20, 15, 0.68);
    --m-ink-faint: rgba(22, 20, 15, 0.46);
    --m-green: var(--risha-green);
    --m-green-deep: var(--risha-green-deep);
    --m-tan: var(--risha-brown);
    --m-line: rgba(39, 86, 41, 0.14);
    --m-line-soft: rgba(39, 86, 41, 0.08);
    --m-card: rgba(255, 255, 255, 0.52);
    --m-card-hover: rgba(255, 255, 255, 0.78);
    --m-shadow: 0 1px 2px rgba(22, 20, 15, 0.05), 0 10px 30px -18px rgba(27, 60, 29, 0.35);
    --m-radius: 20px;
    --m-gutter: clamp(16px, 4.5vw, 40px);
    --m-cats-h: 60px;
    --m-safe-bottom: env(safe-area-inset-bottom, 0px);
    /* Text on a green fill, and green on a cream fill — both flip in dark mode. */
    --m-on-green: var(--risha-cream);
    --m-green-ink: var(--risha-green-deep);

    position: relative;
    min-height: 100vh;
    color: var(--m-ink);
    font-family: var(--risha-body);
    line-height: 1.5;
}

.menu-body {
    /* The tile is 1024² and painted at half size so it stays crisp on
       phones. The flat colour underneath is the same cream, for the moment
       before the texture arrives. */
    background: var(--risha-cream-soft) url("/images/menu/paper-texture.webp") repeat;
    background-size: 512px 512px;
}

.menu img { display: block; max-width: 100%; }

.menu h1,
.menu h2,
.menu h3,
.menu p,
.menu ul { margin: 0; }

.menu ul { padding: 0; list-style: none; }

.menu button {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.menu__defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Skip link ----------------------------------------------------------- */

.menu__skip {
    position: fixed;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    z-index: 90;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--m-green);
    color: var(--m-on-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.3s var(--risha-ease);
}

.menu__skip:focus-visible,
.menu__skip:focus { transform: none; }

/* --- Hero ---------------------------------------------------------------- */

.menu__hero {
    position: relative;
    isolation: isolate;
    /* A fixed box so nothing below moves when the photograph arrives. */
    height: clamp(460px, 68svh, 640px);
    overflow: hidden;
    color: var(--risha-cream);
}

.menu__hero-media,
.menu__hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.menu__hero-media img {
    object-fit: cover;
    object-position: 50% 62%;
}

/* A short dark scrim under the top bar and the title, then a long dissolve
   into the paper so the photograph ends where the menu begins. */
.menu__hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom,
            rgba(9, 13, 10, 0.62) 0%,
            rgba(9, 13, 10, 0.38) 26%,
            rgba(9, 13, 10, 0.08) 52%,
            rgba(246, 236, 220, 0) 66%,
            rgba(246, 236, 220, 0.72) 86%,
            var(--m-paper) 100%);
}

.menu__topbar {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(18px + env(safe-area-inset-top, 0px)) var(--m-gutter) 0;
}

.menu__brand {
    display: flex;
    align-items: center;
    height: 16px;
    color: var(--risha-cream);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.menu__brand .risha-mark { height: 100%; }

.menu__brand::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 140px;
    height: 44px;
    transform: translateY(-50%);
}

/* Language pill — three tabs in one cream-glass capsule. The active tab is
   solid so the guest can see the current language at a glance. */
.menu__lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(246, 236, 220, 0.16);
    box-shadow: inset 0 0 0 1px rgba(246, 236, 220, 0.34);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.menu__lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(246, 236, 220, 0.86);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: background 0.25s var(--risha-ease), color 0.25s var(--risha-ease);
}

.menu__lang-link[lang="ar"],
.menu__lang-link[lang="ku"] {
    font-family: var(--risha-body-ar);
    font-size: 14px;
    padding-block-end: 2px;
}

.menu__lang-link:hover { color: var(--risha-cream); }

.menu__lang-link[aria-current="page"] {
    background: var(--risha-cream);
    color: var(--m-green-ink);
    text-shadow: none;
}

.menu__hero-type {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(98px + env(safe-area-inset-top, 0px)) var(--m-gutter) 0;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 18px rgba(0, 0, 0, 0.35);
}

.menu__mark {
    height: 46px;
    margin-block-end: 18px;
    color: var(--risha-cream);
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.menu__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(246, 236, 220, 0.82);
}

[dir="rtl"] .menu__eyebrow {
    letter-spacing: 0;
    font-size: 14px;
}

.menu__name {
    margin-block-start: 10px;
    font-family: var(--risha-title);
    font-size: clamp(44px, 11vw, 76px);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1;
}

.menu__name--ar {
    font-family: "Lyon Arabic", var(--risha-title-ar);
    letter-spacing: 0;
    line-height: 1.25;
}

.menu__tagline {
    max-width: 30ch;
    margin-block-start: 14px;
    font-size: clamp(15px, 2.6vw, 18px);
    line-height: 1.45;
    color: rgba(246, 236, 220, 0.92);
}

[dir="rtl"] .menu__tagline { font-size: clamp(16px, 2.8vw, 19px); }

.menu__place {
    margin-block-start: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(246, 236, 220, 0.72);
}

[dir="rtl"] .menu__place {
    letter-spacing: 0;
    font-size: 13px;
}

/* --- Category chips ------------------------------------------------------ */

.menu__cats {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--m-cats-h);
    margin-block-start: -8px;
    background: rgba(246, 236, 220, 0.86);
    box-shadow: inset 0 -1px 0 var(--m-line);
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.menu__cats-track {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding-inline: var(--m-gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--m-gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.menu__cats-track::-webkit-scrollbar { display: none; }

/* Trailing air so the last chip can clear the gutter. */
.menu__cats-track::after {
    content: "";
    flex: 0 0 1px;
}

.menu__chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--m-line);
    color: var(--m-ink-soft);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    scroll-snap-align: start;
    transition: background 0.25s var(--risha-ease), color 0.25s var(--risha-ease), box-shadow 0.25s var(--risha-ease);
}

[dir="rtl"] .menu__chip { font-size: 15px; }

.menu__chip:hover {
    color: var(--m-green-deep);
    box-shadow: inset 0 0 0 1px rgba(39, 86, 41, 0.34);
}

.menu__chip[aria-current="true"] {
    background: var(--m-green-deep);
    color: var(--m-on-green);
    box-shadow: none;
}

/* --- Sections ------------------------------------------------------------ */

.menu__main {
    width: min(1200px, 100%);
    margin-inline: auto;
    padding: 8px var(--m-gutter) 40px;
}

.menu__main:focus { outline: none; }

.menu__section {
    padding-block: 28px 8px;
    scroll-margin-top: calc(var(--m-cats-h) + 6px);
}

.menu__section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-block-end: 16px;
}

.menu__section-thumb {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--m-line), 0 0 0 4px var(--m-paper);
}

.menu__section-title {
    font-family: var(--risha-title);
    font-size: clamp(26px, 4.4vw, 34px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--m-green-deep);
}

.menu__section-rule {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(to right, var(--m-line), transparent);
}

[dir="rtl"] .menu__section-rule {
    background: linear-gradient(to left, var(--m-line), transparent);
}

.menu__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 720px) {
    .menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1100px) {
    .menu__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .menu__section { padding-block: 40px 12px; }
}

/* --- Cards --------------------------------------------------------------- */

.menu__card {
    border-radius: var(--m-radius);
    background: var(--m-card);
    box-shadow: var(--m-shadow), inset 0 0 0 1px var(--m-line-soft);
    transition: background 0.3s var(--risha-ease), transform 0.3s var(--risha-ease), box-shadow 0.3s var(--risha-ease);
}

@media (hover: hover) {
    .menu__card:hover {
        background: var(--m-card-hover);
        transform: translateY(-2px);
        box-shadow: 0 1px 2px rgba(22, 20, 15, 0.05), 0 18px 34px -18px rgba(27, 60, 29, 0.45), inset 0 0 0 1px var(--m-line);
    }
}

.menu__card-btn {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    text-align: start;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu__card-btn:active { transform: scale(0.992); }

.menu__card-btn:focus-visible {
    outline: 2px solid var(--m-green);
    outline-offset: 2px;
}

.menu__card-media {
    position: relative;
    flex: 0 0 auto;
    width: 104px;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--m-paper-warm);
}

.menu__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The placeholder: the paper again, a shade warmer, and the feather. */
.menu__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(160deg, rgba(150, 118, 90, 0.10), rgba(39, 86, 41, 0.06)),
        url("/images/menu/paper-texture.webp") center / 256px repeat;
    color: rgba(39, 86, 41, 0.42);
}

.menu__ph svg {
    width: 34%;
    height: 42%;
}

.menu__card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding-block: 4px;
}

.menu__card-name {
    font-family: var(--risha-title);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--m-green-deep);
    overflow-wrap: anywhere;
}

[dir="rtl"] .menu__card-name { font-size: 21px; line-height: 1.35; }

.menu__card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--m-ink-soft);
}

[dir="rtl"] .menu__card-desc { font-size: 14.5px; }

.menu__price {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    margin-block-start: auto;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(39, 86, 41, 0.10);
    color: var(--m-green-deep);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    unicode-bidi: plaintext;
    white-space: nowrap;
}

.menu__price bdi { font-size: 16px; }

/* --- Empty state --------------------------------------------------------- */

.menu__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 64px var(--m-gutter) 40px;
    text-align: center;
}

.menu__empty-mark {
    width: 40px;
    height: 52px;
    margin-block-end: 8px;
    color: rgba(39, 86, 41, 0.42);
}

.menu__empty h2 {
    font-family: var(--risha-title);
    font-size: 30px;
    font-weight: 400;
    color: var(--m-green-deep);
}

.menu__empty p {
    max-width: 36ch;
    color: var(--m-ink-soft);
}

/* --- Footer -------------------------------------------------------------- */

.menu__foot {
    padding: 40px var(--m-gutter) calc(36px + var(--m-safe-bottom));
    border-block-start: 1px solid var(--m-line);
    text-align: center;
}

.menu__foot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(640px, 100%);
    margin-inline: auto;
}

.menu__foot-mark {
    height: 34px;
    color: var(--m-green);
}

.menu__foot-name {
    font-family: var(--risha-title);
    font-size: 24px;
    color: var(--m-green-deep);
}

[dir="rtl"] .menu__foot-name { font-family: "Lyon Arabic", var(--risha-title-ar); }

.menu__foot-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 14px;
    color: var(--m-ink-soft);
}

.menu__foot-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--m-tan);
    align-self: center;
}

[dir="rtl"] .menu__foot-label { letter-spacing: 0; font-size: 13px; }

.menu__foot-tel {
    color: var(--m-green-deep);
    font-weight: 700;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.menu__foot-tel:hover { text-decoration: underline; }

.menu__foot-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin-block-start: 18px;
    font-size: 14px;
    color: var(--m-ink-faint);
}

.menu__foot-links a {
    color: inherit;
    text-decoration: none;
    padding-block: 12px;
}

.menu__foot-links a:hover { color: var(--m-green-deep); }

.menu__foot-powered { font-weight: 700; }

/* --- Item sheet ---------------------------------------------------------- */

.menu__sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.menu__sheet[hidden] { display: none; }

.menu__sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 20, 15, 0.46);
    opacity: 0;
    transition: opacity 0.32s var(--risha-ease);
}

.menu__sheet-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(92dvh, 92vh);
    border-radius: 26px 26px 0 0;
    background: var(--m-paper) url("/images/menu/paper-texture.webp") repeat;
    background-size: 512px 512px;
    box-shadow: 0 -12px 50px -20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.42s var(--risha-ease);
    will-change: transform;
    touch-action: pan-y;
}

.menu__sheet.is-open .menu__sheet-backdrop { opacity: 1; }
.menu__sheet.is-open .menu__sheet-panel { transform: none; }

.menu__sheet.is-dragging .menu__sheet-panel { transition: none; }

.menu__sheet-grip {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    padding: 10px 0 14px;
    cursor: grab;
}

.menu__sheet-grip span {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(246, 236, 220, 0.9);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.menu__sheet-grip.is-on-paper span {
    background: rgba(22, 20, 15, 0.2);
    box-shadow: none;
}

.menu__sheet-close {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(246, 236, 220, 0.9);
    color: var(--m-green-ink);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    -webkit-tap-highlight-color: transparent;
}

.menu__sheet-close.is-on-paper {
    box-shadow: inset 0 0 0 1px var(--m-line);
}

.menu__sheet-close:focus-visible {
    outline: 2px solid var(--m-green);
    outline-offset: 2px;
}

.menu__sheet-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: inherit;
    -webkit-overflow-scrolling: touch;
    padding-block-end: var(--m-safe-bottom);
}

/* Gallery: native horizontal snap so a swipe is a swipe. */
.menu__gallery {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 46vh;
    background: var(--m-paper-warm);
}

.menu__gallery[hidden] { display: none; }

.menu__gallery-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.menu__gallery-track::-webkit-scrollbar { display: none; }

.menu__gallery-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.menu__gallery-dots {
    position: absolute;
    inset-block-end: 12px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.menu__gallery-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(246, 236, 220, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s var(--risha-ease), background 0.25s var(--risha-ease);
}

.menu__gallery-dots span.is-active {
    background: var(--risha-cream);
    transform: scale(1.35);
}

.menu__sheet-body {
    padding: 22px var(--m-gutter) 28px;
}

.menu__gallery[hidden] + .menu__sheet-body { padding-block-start: 52px; }

.menu__sheet-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--m-tan);
}

[dir="rtl"] .menu__sheet-cat { letter-spacing: 0; font-size: 13px; }

.menu__sheet-name {
    margin-block-start: 6px;
    font-family: var(--risha-title);
    font-size: clamp(28px, 6vw, 36px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.12;
    color: var(--m-green-deep);
}

[dir="rtl"] .menu__sheet-name { line-height: 1.35; }

.menu__sheet-desc {
    margin-block-start: 12px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--m-ink-soft);
}

.menu__sheet-desc[hidden] { display: none; }

.menu__sheet-sub {
    margin-block: 26px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--m-tan);
}

[dir="rtl"] .menu__sheet-sub { letter-spacing: 0; font-size: 13px; }

.menu__sheet-sub[hidden] { display: none; }

.menu__variants {
    margin-block-start: 22px;
}

.menu__sheet-sub + .menu__variants { margin-block-start: 0; }

.menu__variant {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-block: 10px;
    font-size: 16px;
}

.menu__variant + .menu__variant { border-block-start: 1px solid var(--m-line-soft); }

.menu__variant-name {
    color: var(--m-ink);
    font-weight: 700;
}

.menu__variant-leader {
    flex: 1 1 auto;
    min-width: 16px;
    border-block-end: 1px dotted rgba(22, 20, 15, 0.28);
    transform: translateY(-4px);
}

.menu__variant-price {
    color: var(--m-green-deep);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    unicode-bidi: plaintext;
    white-space: nowrap;
}

.menu__variant-price bdi { font-size: 18px; }

.menu__variant--single {
    justify-content: flex-start;
    font-size: 20px;
}

.menu__variant--single .menu__variant-price bdi { font-size: 24px; }

/* Larger screens: the sheet becomes a centred card. */
@media (min-width: 720px) {
    .menu__sheet { align-items: center; padding: 24px; }

    .menu__sheet-panel {
        width: min(560px, 100%);
        max-height: min(88vh, 860px);
        border-radius: 26px;
        transform: translateY(24px) scale(0.98);
        opacity: 0;
        transition: transform 0.36s var(--risha-ease), opacity 0.3s var(--risha-ease);
    }

    .menu__sheet.is-open .menu__sheet-panel { transform: none; opacity: 1; }
    .menu__sheet-grip { display: none; }
    .menu__gallery { max-height: 400px; }
    .menu__sheet-body { padding-inline: 32px; }
}

.menu-body.is-locked {
    position: fixed;
    inset-inline: 0;
    width: 100%;
    overflow: hidden;
}

/* --- Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .menu__sheet-panel,
    .menu__sheet-backdrop,
    .menu__card,
    .menu__chip { transition: none; }
}

/* --- Print --------------------------------------------------------------- */

@media print {
    .menu-body { background: #fff; }

    .menu__skip,
    .menu__cats,
    .menu__lang,
    .menu__sheet,
    .menu__hero-media,
    .menu__hero-scrim { display: none !important; }

    .menu__hero {
        height: auto;
        color: var(--m-green-deep);
        text-shadow: none;
        padding-block: 24px 8px;
    }

    .menu__hero-type { position: static; padding-block-start: 0; }
    .menu__topbar { position: static; padding: 0; }
    .menu__brand, .menu__mark { color: var(--m-green-deep); filter: none; }
    .menu__eyebrow, .menu__tagline, .menu__place { color: var(--m-ink-soft); }
    .menu__card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
    .menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu__section { padding-block: 16px 4px; }
}

/* --- RTL type -------------------------------------------------------------
   Arabic and Kurdish get the brand's Arabic faces (Bahij for text, Shahd for
   titles); Satoshi and Lyon carry no Arabic glyphs. Sorani ascenders need a
   little more leading than Latin, so tight line-heights are eased. */
html[dir="rtl"] {
    --risha-body: var(--risha-body-ar);
    --risha-title: var(--risha-title-ar);
}

[dir="rtl"] .menu__section-title,
[dir="rtl"] .menu__chip,
[dir="rtl"] .menu__lang-link { line-height: 1.3; }
[dir="rtl"] .menu__empty h2,
[dir="rtl"] .menu__sheet-name { line-height: 1.35; }

/* --- Light / dark ----------------------------------------------------------
   The page follows the phone unless the guest chose with the toggle in the
   top bar (kept in localStorage) or the link carried ?mode=light|dark. The
   same paper and photograph stay; the ground goes to a deep warm ink under
   a darker overlay and the greens lighten so text keeps its contrast. Only
   on screen — paper prints stay light. */

.menu__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu__mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(246, 236, 220, 0.16);
    box-shadow: inset 0 0 0 1px rgba(246, 236, 220, 0.34);
    color: var(--risha-cream);
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s var(--risha-ease);
}

.menu__mode:hover { background: rgba(246, 236, 220, 0.28); }
.menu__mode:focus-visible { outline: 2px solid var(--risha-cream); outline-offset: 2px; }
.menu__mode svg { width: 20px; height: 20px; }
.menu__mode-sun { display: none; }

@media screen {
    html[data-mode="dark"] { color-scheme: dark; }
    html[data-mode="dark"] .menu__mode-sun { display: block; }
    html[data-mode="dark"] .menu__mode-moon { display: none; }

    html[data-mode="dark"] .menu {
        --m-paper: #1b1915;
        --m-paper-warm: #26231c;
        --m-ink: #f1e8d8;
        --m-ink-soft: rgba(241, 232, 216, 0.74);
        --m-ink-faint: rgba(241, 232, 216, 0.52);
        --m-green: #7fb884;
        --m-green-deep: #b6dbb8;
        --m-tan: #cdb293;
        --m-line: rgba(182, 219, 184, 0.22);
        --m-line-soft: rgba(182, 219, 184, 0.12);
        --m-card: rgba(255, 255, 255, 0.055);
        --m-card-hover: rgba(255, 255, 255, 0.09);
        --m-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -18px rgba(0, 0, 0, 0.8);
        --m-on-green: #16140f;
    }

    html[data-mode="dark"] .menu-body {
        background: linear-gradient(rgba(27, 25, 21, 0.9), rgba(27, 25, 21, 0.9)), #1b1915 url("/images/menu/paper-texture.webp") repeat;
        background-size: auto, 512px 512px;
    }

    html[data-mode="dark"] .menu__hero-scrim {
        background:
            linear-gradient(to bottom,
                rgba(9, 13, 10, 0.62) 0%,
                rgba(9, 13, 10, 0.38) 26%,
                rgba(9, 13, 10, 0.12) 52%,
                rgba(27, 25, 21, 0.05) 66%,
                rgba(27, 25, 21, 0.78) 86%,
                var(--m-paper) 100%);
    }

    html[data-mode="dark"] .menu__cats { background: rgba(27, 25, 21, 0.88); }
    html[data-mode="dark"] .menu__price { background: rgba(182, 219, 184, 0.14); }
    html[data-mode="dark"] .menu__empty-mark { color: rgba(127, 184, 132, 0.55); }

    html[data-mode="dark"] .menu__ph {
        background:
            linear-gradient(160deg, rgba(27, 25, 21, 0.88), rgba(27, 25, 21, 0.92)),
            url("/images/menu/paper-texture.webp") center / 256px repeat;
        color: rgba(127, 184, 132, 0.5);
    }

    html[data-mode="dark"] .menu__sheet-panel {
        background: linear-gradient(rgba(27, 25, 21, 0.9), rgba(27, 25, 21, 0.9)), #1b1915 url("/images/menu/paper-texture.webp") repeat;
        background-size: auto, 512px 512px;
    }

    html[data-mode="dark"] .menu__sheet-grip.is-on-paper span { background: rgba(241, 232, 216, 0.3); }

    html[data-mode="dark"] .menu__sheet-close.is-on-paper {
        background: rgba(255, 255, 255, 0.08);
        color: var(--m-green-deep);
        box-shadow: inset 0 0 0 1px var(--m-line);
    }

    html[data-mode="dark"] .menu__variant-leader { border-block-end-color: rgba(241, 232, 216, 0.3); }
    html[data-mode="dark"] .menu__card:hover { box-shadow: var(--m-shadow), inset 0 0 0 1px var(--m-line); }
}
