/*
 * Menu v2 skin: MINIMAL CAFE (body.menu-t-stitch). Quiet and airy: off-white paper, hairlines instead of boxes, no shadows, a centred
 * round logo, text-only categories, round dish pictures and soft pill buttons.
 * Loaded after menu-base.css. Every colour comes from the --mn-* tokens, which follow the platform appearance tokens (--stitch-*) until an
 * owner theme sets its own. Logical properties only (RTL mirrors for free).
 */
body.menu-t-stitch {
    --mn-bg: var(--stitch-canvas, #fbfaf8);
    --mn-surface: var(--stitch-surface, #ffffff);
    --mn-surface-2: var(--stitch-surface-subtle, #f3f1ed);
    --mn-text: var(--stitch-text-primary, #1c1b19);
    --mn-text-2: var(--stitch-text-secondary, #55524c);
    --mn-border: var(--stitch-border, #e6e2da);
    --mn-primary: var(--stitch-emerald-dark, #047857);
    --mn-on-primary: #ffffff;
    --mn-accent: #9c6b4a;
    --mn-radius: 14px;
    --mn-radius-sm: 10px;
    --mn-shadow: none;
    --mn-max: 860px;
    --mn-thumb-radius: 999px;
    --mn-fs-h1: 1.6rem;
    --mn-fs-h2: 1.05rem;
    --mn-caps: uppercase;
    --mn-track: 0.08em;
}
html[data-theme="dark"] body.menu-t-stitch:not(.mn-scope) {
    --mn-accent: #d9ac8b;
    --mn-on-primary: var(--mq-on-primary, #04130d);
    --mn-focus: #93c5fd;
}
.menu-t-stitch .mn-h1 { font-weight: 700; }
.menu-t-stitch .mn-h2 { text-align: center; color: var(--mn-text-2); font-weight: 600; letter-spacing: var(--mn-track); text-transform: var(--mn-caps); }

.menu-t-stitch .mn-topbar { background: var(--mn-bg); }
.menu-t-stitch .mn-topbar-name, .menu-t-stitch .mn-topbar-back { font-weight: 600; }
.menu-t-stitch .mq-headcart { border-color: var(--mn-border); border-radius: 999px; }
.menu-t-stitch .mn-section { margin-block-start: calc(28px * var(--mn-density)); }

/* ------------------------------------------------------------ hero and masthead */
.menu-t-stitch .mn-hero { margin-block-start: 16px; margin-inline: 0; }
.menu-t-stitch .mn-hero-media { aspect-ratio: 16 / 6; min-height: 130px; max-height: 260px; border-radius: var(--mn-radius); }
.menu-t-stitch .mn-hero-shade { display: none; }
.menu-t-stitch .mn-hero-actions { position: static; justify-content: center; margin-block-start: 10px; }
.menu-t-stitch .mn-hero-btn { background: transparent; font-weight: 500; }
.menu-t-stitch .mn-identity { flex-direction: column; align-items: center; text-align: center; }
.menu-t-stitch .mn-identity-main { flex-direction: column; flex: none; width: 100%; }
.menu-t-stitch .mn-logo { width: 76px; height: 76px; border: 1px solid var(--mn-border); box-shadow: none; }
.menu-t-stitch .mn-logo-tile { background: var(--mn-surface-2); color: var(--mn-text); font-weight: 600; }
.menu-t-stitch .mn-desc { max-width: 48ch; margin-inline: auto; }
.menu-t-stitch .mn-lang { background: transparent; }

.menu-t-stitch .mn-contact-list, .menu-t-stitch .mn-links-list { justify-content: center; }
.menu-t-stitch .mn-contact-link, .menu-t-stitch .mn-pill { background: transparent; }
.menu-t-stitch .mn-search-input { border-radius: 999px; padding-inline-start: 20px; background: var(--mn-surface-2); border-color: transparent; }

/* ------------------------------------------------------------ categories: words only */
.menu-t-stitch .mn-cat-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.menu-t-stitch .mn-cat-card { flex-direction: row; align-items: baseline; gap: 6px; height: auto; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: transparent; box-shadow: none; }
.menu-t-stitch .mn-cat-media { display: none; }
.menu-t-stitch .mn-cat-name, .menu-t-stitch .mn-cat-count { padding: 0; }
.menu-t-stitch .mn-cat-name { font-weight: 600; }
.menu-t-stitch .mn-cat-card.is-active { background: var(--mn-surface-2); }

.menu-t-stitch .mn-catbar-link { padding-inline: 12px; border: 0; border-block-end: 2px solid transparent; border-radius: 0; background: transparent; color: var(--mn-text-2); font-weight: 500; }
.menu-t-stitch .mn-catbar-link.is-active { border-block-end-color: var(--mn-text); background: transparent; color: var(--mn-text); font-weight: 700; }

/* ------------------------------------------------------------ dishes: hairlines on the page */
.menu-t-stitch .mn-table-wrap { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.menu-t-stitch .mn-caption { padding-inline: 4px; text-align: center; }
.menu-t-stitch .mn-caption .mn-h3 { padding-block-end: 6px; border-block-end: 2px solid var(--mn-accent); font-weight: 600; }
.menu-t-stitch .mn-table thead th { border-block: 0; border-block-end: 1px solid var(--mn-text-2); background: transparent; font-weight: 600; }
.menu-t-stitch .mn-row { border-block-end: 1px solid var(--mn-border); }
.menu-t-stitch .mn-row + .mn-row { border-block-start: 0; }
.menu-t-stitch:not([data-card="grid"]):not([data-card="cards"]) .mn-table { --mn-pad-x: 4px; }
.menu-t-stitch .mn-thumb { border: 0; box-shadow: none; }
.menu-t-stitch .mn-thumb-ph { color: var(--mn-text-2); font-weight: 500; }
.menu-t-stitch .mn-table .mq-add-btn { border: 1px solid var(--mn-text-2); border-radius: 999px; background: transparent; color: var(--mn-text); font-weight: 600; }
.menu-t-stitch .mn-table .mq-add-btn:hover:not(:disabled) { border-color: var(--mn-primary); background: var(--mn-primary); color: var(--mn-on-primary); filter: none; }
.menu-t-stitch .mn-table .mq-add-btn:disabled, .menu-t-stitch .mn-table .mq-add-btn[aria-disabled="true"] { border-color: var(--mn-border); background: var(--mn-surface-2); color: var(--mn-text-2); }
.menu-t-stitch .mn-table .mq-stepper { border-radius: 999px; }

.menu-t-stitch .mn-rating-summary { justify-content: center; }
.menu-t-stitch .mn-review { border: 0; border-block-end: 1px solid var(--mn-border); border-radius: 0; background: transparent; }
.menu-t-stitch .mn-footer .mn-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--mn-text); }

@media (min-width: 640px) {
    body.menu-t-stitch { --mn-fs-h1: 2rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .menu-t-stitch .mn-cat-card, .menu-t-stitch .mn-hero-btn, .menu-t-stitch .mn-pill { transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
}
@media (prefers-reduced-motion: reduce) {
    .menu-t-stitch * { animation: none !important; transition: none !important; }
}
