/* Menus as web pages (/pdf/<slug>/ when menus/<slug>.json exists). Loaded only on those pages (uvwpframe/menu-page.php).
   Look: option D of the menu prototype (dark charcoal, crimson accents, serif headings). No web fonts added:
   headings use the system serif (same Georgia fallback design B shows for non-Katsuya venues), text uses the theme's font. */

.sbm {
	--sbm-bg: #1b1918;
	--sbm-bg2: #242120;
	--sbm-line: #3f3a37;
	--sbm-line2: #2f2b29;
	--sbm-ink: #f4efe9;
	--sbm-mute: #aaa199;
	--sbm-red: #a3192f;
	--sbm-red2: #bf2038;
	--sbm-serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
	--sbm-top: 70px; /* the theme's fixed header */
	--sbm-offset: 190px; /* header + sticky bar; menu-page.js measures the real value */
	color: var(--sbm-ink);
	background: var(--sbm-bg);
	padding-top: 86px;
	min-height: 80vh;
}
body.sbm-page { background-color: #1b1918; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sbm *, .sbm *::before, .sbm *::after { box-sizing: border-box; }
.sbm a { color: inherit; text-decoration: none; }
.sbm [hidden] { display: none !important; }
.sbm a:hover { color: var(--sbm-ink); }
.sbm a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sbm h1, .sbm h2, .sbm h3 { font-family: var(--sbm-serif); font-weight: 600; color: var(--sbm-ink); margin: 0; text-transform: none; letter-spacing: 0; text-align: left; }
.sbm p { color: inherit; }
.sbm ul { list-style: none; margin: 0; padding: 0; }
.sbm li { font-size: inherit; line-height: inherit; }
.sbm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sbm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Title block */
.sbm-head { padding-top: 12px; padding-bottom: 18px; display: grid; justify-items: start; gap: 4px; }
.sbm-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sbm-mute) !important; }
.sbm-back::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.sbm-back:hover { color: var(--sbm-ink) !important; }
.sbm-eyebrow { margin: 6px 0 0; font-size: 12px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--sbm-mute) !important; }
.sbm .sbm-title { font-size: clamp(40px, 11vw, 72px); line-height: 1.05; margin: 2px 0 8px; }
.sbm .sbm-pdf { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sbm-red2); }

/* Sticky bar: Dinner/Drinks switch + section shortcuts */
.sbm-bar { position: sticky; top: var(--sbm-top); z-index: 20; background: #1b1918; border-top: 1px solid var(--sbm-line); border-bottom: 1px solid var(--sbm-line); }
.sbm-tabs { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; overflow-x: auto; scrollbar-width: none; }
.sbm-tabs::-webkit-scrollbar, .sbm-chips::-webkit-scrollbar { display: none; }
.sbm-tab { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-bottom: 2px solid transparent; color: var(--sbm-mute) !important; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.sbm-tab[aria-current="true"] { color: var(--sbm-ink) !important; border-bottom-color: var(--sbm-red2); }
.sbm-tab:hover { color: var(--sbm-ink) !important; }
.sbm-tabs + .sbm-chips { border-top: 1px solid var(--sbm-line2); }
.sbm-chips { position: relative; max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.sbm-chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--sbm-line); border-radius: 20px; background: var(--sbm-bg2); font-size: 14px; white-space: nowrap; }
.sbm-chip:hover { border-color: var(--sbm-mute); }
.sbm-chip.is-active { border-color: var(--sbm-red2); }

/* Menu */
.sbm-body { padding-bottom: 56px; }
.sbm .sbm-menu-title { font-size: 34px; line-height: 1.1; padding-top: 24px; }
.sbm-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--sbm-mute) !important; max-width: 46em; }
.sbm-sec { padding-top: 28px; scroll-margin-top: var(--sbm-offset); }
.sbm .sbm-sec h3 { font-size: 28px; line-height: 1.15; padding-bottom: 8px; border-bottom: 1px solid var(--sbm-line); }
.sbm .sbm-sec h3 small { display: block; margin-top: 4px; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500; color: var(--sbm-mute); letter-spacing: .04em; }
.sbm-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--sbm-line2); }
.sbm-n { font-weight: 600; letter-spacing: .02em; line-height: 1.4; }
.sbm-p { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; line-height: 1.4; }
.sbm-d { grid-column: 1 / -1; color: var(--sbm-mute); font-size: 14px; line-height: 1.45; }
.sbm-opts { grid-column: 1 / -1; margin-top: 4px !important; }
.sbm-opts li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--sbm-mute); padding: 2px 0; }
.sbm-opts .sbm-p { color: var(--sbm-ink); font-weight: 500; }
.sbm-tag { display: inline-block; margin-left: 4px; padding: 1px 5px; border: 1px solid var(--sbm-line); border-radius: 2px; font-size: 10px; line-height: 1.4; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sbm-mute); vertical-align: 2px; white-space: nowrap; }
.sbm-tag-spicy, .sbm-tag-signature { border-color: var(--sbm-red); color: #f0c9cf; }

/* Key, notes, buttons */
.sbm-foot { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--sbm-line); display: grid; gap: 10px; justify-items: start; }
.sbm-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--sbm-mute); }
.sbm-legend .sbm-tag { margin-left: 0; }
.sbm-star { font-weight: 700; color: var(--sbm-ink); }
.sbm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sbm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--sbm-red); border-radius: 2px; background: var(--sbm-red); color: #fff !important; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sbm-btn:hover { background: var(--sbm-red2); border-color: var(--sbm-red2); }
.sbm-btn-ghost { background: transparent; border-color: rgba(244, 239, 233, .6); }
.sbm-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

@media (min-width: 720px) {
	.sbm-tab { flex: none; padding: 0 28px; }
	.sbm-tabs { gap: 8px; }
}
@media (min-width: 900px) {
	.sbm { padding-top: 110px; }
	.sbm-items { columns: 2; column-gap: 56px; }
	.sbm-item { break-inside: avoid; }
}
@media (hover: hover) and (pointer: fine) {
	/* mouse users get a thin scrollbar on the shortcut row (phones swipe it) */
	.sbm-chips { scrollbar-width: thin; scrollbar-color: var(--sbm-line) transparent; }
}

/* "Reserve at <venue>" bar (uvwpframe/menu-page.php, uv_menu_book). Phones: a bar fixed to the bottom of the screen
   (crimson Reserve + Call, the same pattern as the design B venue pages). 768px and up: the phone number and Reserve sit at the
   top right of the sticky Dinner/Drinks bar, so nothing floats over the menu. Walk-in venues show their note instead of "Reserve a table". */
.sbm-book {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	background: var(--sbm-bg); border-top: 1px solid var(--sbm-line);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sbm-book-row { display: flex; }
.sbm .sbm-book-row a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 12px; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-align: center; }
.sbm .sbm-book-main, .sbm .sbm-bar-main { background: var(--sbm-red); color: #fff !important; }
.sbm .sbm-book-main:hover, .sbm .sbm-bar-main:hover { background: var(--sbm-red2); }
.sbm .sbm-book-main { flex: 1.6; }
.sbm .sbm-book-call { flex: 1; color: var(--sbm-ink) !important; border-left: 1px solid var(--sbm-line); }
.sbm .sbm-book-call:hover { background: var(--sbm-bg2); }
.sbm .sbm-book a:focus-visible { outline-offset: -3px; }
/* Room under the last of the page so the bar never covers it */
body.sbm-has-book { padding-bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }
.sbm-bar-book { display: none; }

@media (min-width: 768px) {
	.sbm-book { display: none; }
	body.sbm-has-book { padding-bottom: 0; }
	.sbm-bar-book {
		display: flex; align-items: center; gap: 18px;
		position: absolute; top: 0; height: 60px; right: max(20px, calc((100% - 1120px) / 2 + 20px));
		padding-left: 24px; background: linear-gradient(to right, rgba(27, 25, 24, 0), #1b1918 24px);
	}
	/* The first row (tabs, or the shortcuts when there is one menu) ends before the phone + Reserve button. Padding alone
	   doesn't work on a row that scrolls sideways (the shortcuts slid under the button, 28 Oct), so the row itself is narrower. */
	.sbm-has-book .sbm-tabs, .sbm-has-book .sbm-chips:first-child {
		padding-right: 20px; max-width: none;
		margin-left: max(0px, calc((100% - 1120px) / 2));
		margin-right: calc(max(20px, calc((100% - 1120px) / 2 + 20px)) + 340px);
	}
	.sbm .sbm-bar-phone { font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--sbm-mute) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
	.sbm .sbm-bar-phone:hover { color: var(--sbm-ink) !important; }
	.sbm .sbm-bar-main { display: inline-flex; align-items: center; min-height: 42px; padding: 0 22px; border-radius: 2px; font-size: 14px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
	/* tabs row is 48px tall: centre the button in it */
	.sbm-has-book .sbm-tabs ~ .sbm-bar-book { height: 49px; }
}
