/* Restaurant Menu Builder – front-end menu (also used in the admin preview). */
.rmb-menu { --rmb-accent: #8a3b2e; --rmb-heading: 'Cormorant Garamond', Georgia, serif; --rmb-ink: #1f1b16; --rmb-muted: #5f5a53; --rmb-line: #d9d2c7; --rmb-paper: #faf7f2;
	max-width: 760px; margin: 0 auto; color: var(--rmb-ink); box-sizing: border-box; }
.rmb-menu.rmb-layout-two { max-width: 1080px; }
.rmb-menu *, .rmb-menu *::before, .rmb-menu *::after { box-sizing: border-box; }
.rmb-menu ul { list-style: none; margin: 0; padding: 0; }
.rmb-menu li { margin: 0; }
.rmb-menu li::before { content: none; }

/* Tabs */
.rmb-tabs { margin: 0 0 40px; padding: 12px 0; border-bottom: 1px solid var(--rmb-line); background: var(--rmb-tabs-bg, #fff); z-index: 20; }
.rmb-sticky .rmb-tabs { position: sticky; top: var(--rmb-sticky-top, 0px); }
.rmb-tabs ul { display: flex; gap: 8px; justify-content: center; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; padding: 2px; }
.rmb-tabs li { flex: none; }
.rmb-tab { display: flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--rmb-line); border-radius: 999px;
	text-decoration: none !important; white-space: nowrap; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rmb-ink) !important; background: transparent; }
.rmb-tab:hover { border-color: var(--rmb-accent); }
.rmb-tab.is-active { background: var(--rmb-accent); border-color: var(--rmb-accent); color: #fff !important; }
.rmb-tab:focus-visible, .rmb-al:focus-visible, .rmb-key-open:focus-visible, .rmb-modal__close:focus-visible { outline: 2px solid var(--rmb-accent); outline-offset: 2px; }

/* Courses */
.rmb-course { margin: 0 0 56px; scroll-margin-top: 96px; }
.rmb-course[hidden] { display: none; }
.rmb-course__title { margin: 0 0 24px; padding: 0 0 12px; border-bottom: 1px solid var(--rmb-line); text-align: center; font-family: var(--rmb-heading);
	font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rmb-accent); }
.rmb-course__desc { margin: -12px 0 24px; text-align: center; font-style: italic; color: var(--rmb-muted); }
.rmb-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 48px; }
.rmb-layout-two .rmb-items { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }

/* Items */
.rmb-item { display: flex; gap: 16px; align-items: flex-start; }
.rmb-item__img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; flex: none; }
.rmb-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rmb-item__head { display: flex; align-items: baseline; gap: 12px; }
.rmb-item__name { margin: 0; flex: 1; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--rmb-ink); font-family: inherit; letter-spacing: 0; text-transform: none; }
.rmb-item__price { font-weight: 600; color: var(--rmb-accent); white-space: nowrap; }
.rmb-item__price small { font-weight: 400; color: var(--rmb-muted); font-size: .8em; }
.rmb-item__desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--rmb-muted); }
.rmb-item__contains { margin: 2px 0 0; font-size: 13px; color: var(--rmb-muted); }

/* Allergen icons + tooltips */
.rmb-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; }
.rmb-allergens li { position: relative; display: flex; }
.rmb-al { display: block; width: 24px; height: 24px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; line-height: 0; box-shadow: none; }
.rmb-al:hover, .rmb-al:focus { background: none; }
.rmb-icon { display: block; width: 24px; height: 24px; max-width: none; border-radius: 50%; }
.rmb-icon--text { display: flex; align-items: center; justify-content: center; background: #6b655d; color: #fff; font-size: 8px; font-weight: 600; line-height: 1; }
.rmb-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 30; background: var(--rmb-ink); color: #fff; font-size: 12px;
	font-weight: 500; line-height: 1.3; padding: 6px 10px; border-radius: 6px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.18); pointer-events: none; }
.rmb-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--rmb-ink); }
.rmb-tip[hidden] { display: none; }

/* Key button, notice, popup */
.rmb-key-wrap { display: flex; justify-content: center; margin: 0 0 16px; }
.rmb-key-open { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--rmb-accent); border-radius: 999px; background: transparent;
	color: var(--rmb-accent); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.rmb-key-open:hover { background: var(--rmb-accent); color: #fff; }
.rmb-notice { margin: 0; padding-top: 20px; border-top: 1px solid var(--rmb-line); text-align: center; font-size: 14px; font-style: italic; line-height: 1.6; color: var(--rmb-muted); }
.rmb-modal { --rmb-ink: #1f1b16; --rmb-muted: #5f5a53; --rmb-paper: #faf7f2; position: fixed; inset: 0; z-index: 100000; background: rgba(31,27,22,.55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.rmb-modal[hidden] { display: none; }
.rmb-modal ul { list-style: none; margin: 0; padding: 0; }
.rmb-modal li { margin: 0; }
.rmb-modal li::before { content: none; }
.rmb-modal__dialog { position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--rmb-paper); color: var(--rmb-ink);
	border-radius: 16px; padding: 32px; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.rmb-modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--rmb-ink); cursor: pointer; }
.rmb-modal__close:hover { background: rgba(0,0,0,.06); color: var(--rmb-ink); }
.rmb-modal__title { margin: 0 0 20px; font-family: var(--rmb-heading); font-size: 28px; font-weight: 600; color: var(--rmb-ink); }
.rmb-modal__group { margin: 24px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rmb-muted); }
.rmb-modal__group:first-of-type { margin-top: 0; }
.rmb-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 16px 20px; }
.rmb-key li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; }
.rmb-key .rmb-icon { width: 32px; height: 32px; flex: none; }
.rmb-key .rmb-icon--text { font-size: 10px; }
.rmb-empty { text-align: center; color: var(--rmb-muted); }

@media (prefers-reduced-motion: reduce) { .rmb-menu * { scroll-behavior: auto !important; } }
