/* Lazy Bones Blocks — front end and editor.
   Colors use the theme's palette variables, with the brand hex values as
   fallbacks so the blocks look right under the current theme too. */

:root {
	--lb-charcoal: var(--wp--preset--color--charcoal, var(--wp--preset--color--custom-charcoal, #1a1a18));
	--lb-floured: var(--wp--preset--color--lightly-floured, var(--wp--preset--color--custom-lightly-floured, #fffdf7));
	--lb-beer: var(--wp--preset--color--warm-beer, var(--wp--preset--color--custom-warm-beer, #e8a020));
	--lb-pesto: var(--wp--preset--color--ramp-pesto, var(--wp--preset--color--custom-ramp-pesto-1, #5e8e30));
	--lb-pea: var(--wp--preset--color--pea-shoot, #dcebcb);
	--lb-basil: var(--wp--preset--color--basil, #3b4a2f);
	--lb-display: var(--wp--preset--font-family--fjalla-one, "Fjalla One", sans-serif);
}

/* ---------- Promo bar ---------- */
.lb-promo {
	--lb-promo-bg: var(--lb-pea);
	--lb-promo-fg: var(--lb-basil);
	overflow: hidden;
	background: var(--lb-promo-bg);
	color: var(--lb-promo-fg);
	border-block: 3px solid var(--lb-charcoal);
	font-family: var(--lb-display);
	font-size: 24px;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-block: 0;
}
.lb-promo--pesto { --lb-promo-bg: var(--lb-pesto); --lb-promo-fg: var(--lb-charcoal); } /* 24px keeps Charcoal on Ramp Pesto at large-text contrast. */
.lb-promo--beer { --lb-promo-bg: var(--lb-beer); --lb-promo-fg: var(--lb-charcoal); }

.lb-promo__track {
	display: flex;
	width: max-content;
	animation: lb-promo-scroll 45s linear infinite;
}
.lb-promo:hover .lb-promo__track,
.lb-promo:focus-within .lb-promo__track { animation-play-state: paused; }

.lb-promo__list {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 12px 11px;
	list-style: none;
}
.lb-promo__item { white-space: nowrap; }
.lb-promo__item a { color: inherit; text-decoration: none; }
.lb-promo__item a:hover,
.lb-promo__item a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.lb-promo__sep { display: flex; }
.lb-slice { display: block; color: currentColor; }
.lb-slice__pep { fill: var(--lb-promo-bg); }

@keyframes lb-promo-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* No motion: show the messages still, scrollable by hand. */
@media (prefers-reduced-motion: reduce) {
	.lb-promo { overflow-x: auto; }
	.lb-promo__track { animation: none; }
	.lb-promo__list[aria-hidden="true"] { display: none; }
}

/* ---------- Shared info heading ---------- */
.lb-info-heading {
	margin: 0 0 0.75em;
	font-family: var(--lb-display);
	font-size: 22px;
	font-weight: 600;
	text-transform: uppercase;
	color: inherit;
}

/* ---------- Hours ---------- */
.lb-hours__list { margin: 0; }
.lb-hours__row { display: flex; gap: 0.35em; line-height: 1.6; }
.lb-hours__row dt::after { content: " |"; }
.lb-hours__row dd { margin: 0; font-weight: 700; }
.lb-hours__note { margin: 0.6em 0 0; font-style: italic; }

/* ---------- Location ---------- */
.lb-location__blurb { margin: 0 0 1.25em; line-height: 1.6; }
.lb-location__address { font-style: normal; line-height: 1.6; }
.lb-location .wp-block-buttons { margin-top: 1.25em; }

/* ---------- Social links ---------- */
.lb-social .wp-block-social-links { margin: 0.75em 0 0; gap: 0.75em; }
.lb-social .wp-social-link { color: inherit; }
.lb-social .wp-block-social-link-label { font-size: 15px; }

/* ---------- Footer links ---------- */
.lb-footer-links {
	margin: 1.25em 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--lb-display);
	font-size: var(--wp--preset--font-size--medium, 20px);
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-transform: uppercase;
}
.lb-footer-links li + li { margin-top: 0.5em; }
.lb-footer-links a { color: inherit; font-weight: 400; text-decoration: none; }
.lb-footer-links a:hover,
.lb-footer-links a:focus { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Section edge ---------- */
.lb-edge {
	position: relative;
	display: block;
	height: 28px;
	background: var(--lb-below, transparent);
	margin-block: 0 !important;
}
.lb-edge + * { margin-block-start: 0 !important; }
.lb-edge::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--lb-above, transparent);
}
.lb-edge--torn::before {
	-webkit-mask: url("torn.svg") repeat-x 0 0 / 1440px 100%;
	mask: url("torn.svg") repeat-x 0 0 / 1440px 100%;
}
.lb-edge--scallop { height: 12px; }
.lb-edge--scallop::before {
	-webkit-mask: url("scallop.svg") repeat-x 0 0 / 24px 12px;
	mask: url("scallop.svg") repeat-x 0 0 / 24px 12px;
}
.lb-edge--checker { height: 20px; }
.lb-edge--checker::before {
	background: conic-gradient(var(--lb-above) 90deg, transparent 90deg 180deg, var(--lb-above) 180deg 270deg, transparent 270deg) 0 0 / 20px 20px;
}

/* ---------- Menu section ---------- */
.lb-menu-section { box-sizing: border-box; }
.lb-menu-section__title {
	margin: 0 0 12px;
	text-align: center;
	font-family: var(--wp--preset--font-family--cyprus-sunrise-script, "Cyprus Sunrise Script", cursive);
	font-size: clamp(40px, 4.4vw, 64px);
	font-weight: 400;
	line-height: 1.1;
	text-transform: none;
	letter-spacing: 0;
	color: var(--lb-charcoal);
}
.lb-notice { padding: 12px 16px; border: 2px dashed currentColor; border-radius: 10px; font-size: 14px; }
.is-style-menu-box { border: 5px solid var(--lb-beer); border-radius: 10px; padding: clamp(18px, 2.4vw, 28px); }

/* ---------- Arched title ---------- */
.lb-arch {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	-webkit-mask-image: var(--lb-stamp-mask, none);
	mask-image: var(--lb-stamp-mask, none);
	-webkit-mask-size: 260px;
	mask-size: 260px;
}
.lb-arch text {
	fill: currentColor;
	font-family: var(--wp--preset--font-family--cyprus-sunrise-sans, "Cyprus Sunrise Sans", "Fjalla One", sans-serif);
	font-size: 54px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ---------- Special of the Week ---------- */
.lb-special { --lb-red: var(--wp--preset--color--jersey-fresh, #c8391a); --lb-basil: var(--wp--preset--color--basil, #3b4a2f); }
.lb-special__trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 100%;
	padding: 18px 28px 20px;
	border: 0;
	border-radius: 24px;
	background: var(--lb-red);
	color: var(--lb-floured);
	cursor: pointer;
}
.lb-special__trigger .lb-special__arch { flex: 0 1 380px; }
.lb-special__trigger:hover { background: var(--lb-charcoal); }
.lb-special__trigger:focus-visible { outline: 3px solid var(--lb-beer); outline-offset: 3px; }
.lb-special__arrow { flex: none; width: 28px; height: 28px; }

.lb-special__dialog {
	width: min(600px, calc(100vw - 24px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}
.lb-special__dialog::backdrop {
	background: rgba(26, 26, 24, 0.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* Guest check (the popup): classic tan check, Basil ink and rules, a
   Pea Shoot ruled area. The special keeps the menu page's item format
   (name, leader dots, price, description) and sits on the lines loosely. */
.lb-check {
	--lb-paper: #efe6da;
	--lb-ink: var(--lb-basil);
	--lb-pea: var(--wp--preset--color--pea-shoot, #dcebcb);
	--lb-body: #e2d7c8; /* darker tan of the ruled area */
	--lb-row: 40px;
	--lb-qty: 44px;
	--lb-price: 120px;
	--lb-rule: 1.5px;
	--lb-title: var(--wp--preset--font-family--cyprus-sunrise-sans, "Cyprus Sunrise Sans", "Fjalla One", sans-serif);
	--lb-num: var(--wp--preset--font-family--barlow-condensed, "Barlow Condensed", "Roboto Condensed", sans-serif);
	--lb-hand: var(--wp--preset--font-family--cyprus-sunrise-script, "Cyprus Sunrise Script", cursive);
	container-type: inline-size;
	max-height: calc(100vh - 48px);
	overflow: auto;
	box-sizing: border-box;
	padding: 36px 40px 24px;
	background: var(--lb-paper);
	color: var(--lb-ink);
	border-radius: 2px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
	font-family: var(--wp--preset--font-family--roboto, Roboto, Arial, sans-serif);
	text-align: left;
}
.lb-check:focus { outline: none; } /* Focus lands on the card when it opens, so the first Tab goes to Close. */
.lb-check p { margin: 0; }
.lb-check__title {
	margin: 0 0 14px !important;
	font-family: var(--lb-title) !important;
	font-size: 13.2cqi !important; /* "Pizza Specials" spans the full width; special.js refits other titles */
	font-weight: 400 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	white-space: nowrap;
	text-transform: none !important;
	text-align: center;
	color: var(--lb-ink) !important;
}
.lb-check__fields {
	display: grid;
	grid-template-columns: 1.35fr repeat(3, 1fr) 1.9fr; /* first box is wider for "Last updated" */
	border: 2px solid var(--lb-ink);
}
.lb-check__fields > span {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 64px;
	padding: 8px 4px 6px;
	border-right: 2px solid var(--lb-ink);
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.1;
}
.lb-check__fields > span:last-child { border-right: 0; }
.lb-check__fields .lb-check__hand { margin-top: auto; font-family: var(--lb-hand); font-size: 28px; font-weight: 400; line-height: 1; letter-spacing: 1.5px; white-space: nowrap; color: var(--lb-charcoal); }
.lb-check__no {
	justify-content: center;
	font-family: var(--lb-num);
	font-size: 42px !important;
	font-weight: 400 !important;
	letter-spacing: 0.02em;
	color: var(--lb-red);
}
.lb-check__courses { padding: 9px 0 10px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* Ruled area. Column rules run the full height; row rules are drawn behind
   the order so the text can wrap freely without fighting the lines. */
.lb-check__lines {
	border-top: 3px solid var(--lb-ink);
	border-bottom: 3px solid var(--lb-ink);
	background:
		linear-gradient(to right, transparent calc(var(--lb-qty) - var(--lb-rule)), var(--lb-ink) 0 var(--lb-qty), transparent 0),
		linear-gradient(to left, transparent calc(var(--lb-price) - var(--lb-rule)), var(--lb-ink) 0 var(--lb-price), transparent 0),
		var(--lb-body);
}
.lb-check__order {
	min-height: calc(var(--lb-row) * 4);
	padding: 0 0 0 calc(var(--lb-qty) + 12px);
	background: repeating-linear-gradient(to bottom, var(--lb-ink) 0 var(--lb-rule), transparent 0 var(--lb-row)); /* first rule hides under the top border; Tax closes the last row */
	box-sizing: border-box;
}
.lb-check .butter-menus,
.lb-check .butter-menu-group,
.lb-check .butter-menu-items { margin: 0; padding: 0; border: 0; background: none; }
.lb-check .butter-menu-item { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.lb-check .butter-menu-item-title { display: flex; align-items: baseline; gap: 6px; }
.lb-check .butter-menu-item-name { margin: 0; font-size: 30px; line-height: var(--lb-row); color: var(--lb-charcoal); }
.lb-check .butter-menu-price-leaders,
.lb-check .butter-menu-item-price { display: none; } /* the price only appears in Total */
.lb-check .butter-menu-item-price {
	flex: none;
	width: var(--lb-price);
	font-family: var(--lb-display);
	font-size: 30px;
	line-height: var(--lb-row);
	text-align: center;
	color: var(--lb-charcoal);
}
/* Each wrapped line of the description sits in its own ruled row. */
.lb-check .butter-menu-item-desc { margin: 0; padding-right: calc(var(--lb-price) + 12px); font-size: 20px; line-height: var(--lb-row); color: var(--lb-charcoal); }
.lb-check__row {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	height: var(--lb-row);
	padding: 0 calc(var(--lb-price) + 10px) 7px 0;
	border-top: var(--lb-rule) solid var(--lb-ink);
	box-sizing: border-box;
}
.lb-check__tax { font-size: 16px; }
.lb-check__total { font-size: 18px; font-weight: 700; }
.lb-check__row--total { position: relative; }
.lb-check__amount {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: calc(var(--lb-price) - var(--lb-rule));
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--lb-display);
	font-size: 28px;
	color: var(--lb-charcoal);
}
/* Red-pen circle around the total, drawn on when the check opens. */
.lb-check__circle {
	position: absolute;
	top: -13px;
	left: 4px;
	width: calc(100% - 4px);
	height: calc(100% + 24px);
	overflow: visible;
	pointer-events: none;
}
.lb-check__circle path { fill: none; stroke: var(--lb-red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
	.lb-special__dialog[open] .lb-check__circle path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lb-circle 0.7s ease-out 0.35s forwards; }
	@keyframes lb-circle { to { stroke-dashoffset: 0; } }
}
.lb-check__thanks { padding: 18px 0 10px; text-align: center; font-family: var(--lb-hand); font-size: clamp(24px, 5vw, 30px); line-height: 1.1; letter-spacing: 1.5px; }
.lb-check__receipt { padding-bottom: 6px; font-size: 17px; font-weight: 700; font-style: italic; }
.lb-check__foot { display: flex; justify-content: flex-end; padding-top: 12px; }
.lb-check__close {
	padding: 6px 2px;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: inherit;
	cursor: pointer;
}
.lb-check__close:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb-check__close:focus-visible { outline: 3px solid var(--lb-red); outline-offset: 2px; }
@media (max-width: 480px) {
	.lb-check { --lb-qty: 26px; --lb-price: 70px; padding: 26px 16px 16px; }
	.lb-check__fields { grid-template-columns: 1.35fr repeat(3, 1fr) 1.4fr; }
	.lb-check__updated { text-align: center; line-height: 1.15; }
	.lb-check__fields > span { min-height: 52px; font-size: 11px; }
	.lb-check__fields .lb-check__hand { font-size: 21px; }
	.lb-check__no { font-size: 28px !important; }
	.lb-check__courses { font-size: 10px; letter-spacing: 0.04em; }
	.lb-check { --lb-row: 34px; }
	.lb-check .butter-menu-item-name,
	.lb-check .butter-menu-item-price { font-size: 22px; }
	.lb-check .butter-menu-item-desc { font-size: 16px; }
	.lb-check__amount { font-size: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
	.lb-special__dialog[open] .lb-check { animation: lb-pop 0.25s ease-out; }
	@keyframes lb-pop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.lb-special--banner {
	padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 56px);
	border-radius: 24px;
	background: var(--lb-red);
	color: var(--lb-floured);
}
.lb-special--banner .lb-special__arch { max-width: 560px; margin-bottom: 4px; }
.lb-special--banner .wp-block-buttons { margin-top: 20px; }

/* Butter content on dark backgrounds (banner) */
.lb-on-dark .butter-menu-item { border: 0; padding: 4px 0; }
.lb-on-dark .butter-menu-item-title { flex-wrap: wrap; justify-content: inherit; }
.lb-on-dark .butter-menu-item-name { color: inherit; font-size: clamp(24px, 3vw, 30px); }
.lb-on-dark .butter-menu-price-leaders { display: none; }
.lb-on-dark .butter-menu-item-price { color: var(--lb-beer); font-family: var(--lb-display); font-size: 24px; }
.lb-on-dark .butter-menu-item-desc { color: inherit; font-size: 18px; line-height: 1.5; }

/* ---------- Order options ---------- */
.lb-order { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.lb-order__option { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lb-order__name { margin: 0; font-family: var(--lb-display); font-size: 30px; line-height: 1.1; text-transform: uppercase; color: var(--lb-charcoal); }
.lb-order__text { margin: 0 0 6px; font-size: 16px; color: #655d50; max-width: 300px; }
.lb-order .wp-block-buttons { margin-top: auto; }
