/*
Theme Name: West Bay Hot Lunch
Theme URI: https://github.com/
Description: Child block theme of Twenty Twenty-Five for the West Bay Hot Lunch parent site (West Bay PAC).
Author: West Bay PAC hot lunch volunteers
Template: twentytwentyfive
Version: 1.4.2
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: westbay-hotlunch
*/

/* ---------------------------------------------------------------
   1. Tokens and parent-theme aliases
   The parent's block styles use its own preset slugs (base, contrast,
   accent-*). This child removes those presets, so map them here.
--------------------------------------------------------------- */
:root {
	--wb-radius: 14px;
	--wb-radius-lg: 22px;
	--wb-border: 1px solid var(--wp--preset--color--mist);
	--wb-shadow: 0 1px 2px rgba(25, 42, 57, 0.06), 0 6px 18px rgba(25, 42, 57, 0.08);
	--wb-focus: var(--wp--preset--color--teal-deep);
	--wb-tap: 44px;

	--wp--preset--color--base: var(--wp--preset--color--surface);
	--wp--preset--color--contrast: var(--wp--preset--color--ink);
	--wp--preset--color--accent-1: var(--wp--preset--color--sun);
	--wp--preset--color--accent-2: var(--wp--preset--color--mist);
	--wp--preset--color--accent-3: var(--wp--preset--color--teal-deep);
	--wp--preset--color--accent-4: var(--wp--preset--color--slate);
	--wp--preset--color--accent-5: var(--wp--preset--color--mist);
	--wp--preset--color--accent-6: var(--wp--preset--color--mist);
	--wp--preset--font-family--manrope: var(--wp--preset--font-family--body);
	--wp--preset--font-family--fira-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------
   2. Base
--------------------------------------------------------------- */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img,
video {
	max-width: 100%;
	height: auto;
}

:where(p, li, td, th, figcaption, a) {
	overflow-wrap: break-word;
}

::selection {
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--ink);
}

/* Visible focus on every interactive element. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--wb-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

.wp-element-button:focus-visible {
	border-radius: 999px;
}

/* Dark surfaces use a sun focus ring. */
:where(.wb-hero, .is-style-band-ink, .wb-footer, .has-ink-background-color) {
	--wb-focus: var(--wp--preset--color--sun);
}

/* Tap targets for buttons. */
.wp-element-button,
.wp-block-button__link {
	min-height: var(--wb-tap);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--teal-deep);
	border-color: var(--wp--preset--color--teal-deep);
	color: var(--wp--preset--color--surface);
}

/* Lead paragraph after a page H1. */
.wb-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
	color: var(--wp--preset--color--slate);
}

/* Small info line, for example "Menus can change". */
.wb-note {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--wp--preset--color--teal);
	background: var(--wp--preset--color--surface);
	border-radius: 0 10px 10px 0;
}

/* ---------------------------------------------------------------
   3. Header
--------------------------------------------------------------- */
.wb-header {
	border-bottom: var(--wb-border);
	padding-top: 0.625rem;
	padding-bottom: 0.625rem;
}

.wb-header-inner {
	gap: 1rem;
	min-height: 56px;
}

.wb-brand {
	gap: 0.75rem;
	flex: 1 1 auto;
	min-width: 0;
}

.wb-brand .wp-block-site-logo img {
	height: 56px;
	width: auto !important;
	max-width: 180px;
	object-fit: contain;
}

.wb-brand .wp-block-site-title {
	margin: 0;
	min-width: 0;
	text-wrap: balance;
}

.wb-brand .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wb-tap);
}

.wb-header-actions {
	gap: 0.5rem 1.25rem;
	flex: 0 1 auto;
	min-width: 0;
}

.wb-header .wp-block-navigation .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: var(--wb-tap);
	padding-inline: 0.25rem;
}

.wb-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--sun);
}

.wb-header .wp-block-navigation__responsive-container-open,
.wb-header .wp-block-navigation__responsive-container-close {
	width: var(--wb-tap);
	height: var(--wb-tap);
	align-items: center;
	justify-content: center;
}

.wb-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50);
}

.wb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--x-large);
	color: inherit;
}

.wb-header .wp-block-navigation__responsive-container.is-menu-open a:hover {
	color: var(--wp--preset--color--sun);
}

.wb-order-btn .wp-block-button__link {
	padding: 0.625rem 1.125rem;
	white-space: nowrap;
}

@media (min-width: 600px) {
	.wb-brand .wp-block-site-title {
		white-space: nowrap;
	}
}

/* Phones: hide the title text when a logo shows, put the menu button last. */
@media (max-width: 599px) {
	.wb-brand .wp-block-site-logo:has(img) + .wp-block-site-title {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.wb-header-actions {
		flex: none;
		gap: 0.25rem;
	}

	.wb-header-actions .wp-block-navigation {
		order: 2;
	}

	.wb-brand .wp-block-site-title {
		font-size: 1.0625rem;
	}

	.wb-brand .wp-block-site-logo img {
		height: 48px;
	}

	.wb-order-btn .wp-block-button__link {
		font-size: var(--wp--preset--font-size--small);
		padding: 0.5rem 0.875rem;
	}
}

/* ---------------------------------------------------------------
   4. Block styles: card, band-mist, band-ink
--------------------------------------------------------------- */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--surface);
	border: var(--wb-border);
	border-radius: var(--wb-radius);
	padding: clamp(1.25rem, 4vw, 1.75rem);
	box-shadow: 0 1px 2px rgba(25, 42, 57, 0.04);
}

.wp-block-group.is-style-card > :first-child {
	margin-top: 0;
}

.wp-block-group.is-style-card .wp-block-buttons:last-child {
	margin-top: auto;
	padding-top: 0.5rem;
}

.wp-block-column > .wp-block-group.is-style-card:only-child {
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* Flex column plus the layout's auto margins would centre short items. */
.wp-block-column > .wp-block-group.is-style-card:only-child > :not(.wb-tag) {
	width: 100%;
}

.wp-block-group.is-style-band-mist,
.wp-block-group.is-style-band-ink {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.wp-block-group.is-style-band-mist {
	background: var(--wp--preset--color--mist);
}

.wp-block-group.is-style-band-ink {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--mist);
}

.wp-block-group.is-style-band-mist:not(.alignfull),
.wp-block-group.is-style-band-ink:not(.alignfull) {
	border-radius: var(--wb-radius-lg);
	padding-left: var(--wp--preset--spacing--50);
	padding-right: var(--wp--preset--spacing--50);
}

/* Full-width sections touch the next section. */
:where(.wp-site-blocks, .entry-content, .wp-block-post-content) > .alignfull:is(.is-style-band-mist, .is-style-band-ink, .wb-hero) + .alignfull:is(.is-style-band-mist, .is-style-band-ink, .wb-hero) {
	margin-top: 0;
}

/* Light text and links on dark sections. */
:is(.is-style-band-ink, .wb-hero, .wb-footer) :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--surface);
}

:is(.is-style-band-ink, .wb-hero, .wb-footer) a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--teal);
}

:is(.is-style-band-ink, .wb-hero, .wb-footer) a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--surface);
}

:is(.is-style-band-ink, .wb-hero) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background) {
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--ink);
}

:is(.is-style-band-ink, .wb-hero) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background):hover {
	background: var(--wp--preset--color--surface);
}

:is(.is-style-band-ink, .wb-hero) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--surface);
}

:is(.is-style-band-ink, .wb-hero) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

/* ---------------------------------------------------------------
   5. Hero (wb-hero)
--------------------------------------------------------------- */
.wp-block-group.wb-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--mist);
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

/* Large soft circle, an echo of the round wolf badge. */
.wp-block-group.wb-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: min(80vw, 620px);
	aspect-ratio: 1;
	right: max(-30vw, -220px);
	top: -40%;
	border-radius: 50%;
	background: var(--wp--preset--color--teal);
	opacity: 0.14;
}

.wp-block-group.wb-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: var(--wp--preset--color--sun);
}

.wb-hero h1 {
	font-size: var(--wp--preset--font-size--hero);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.02;
	margin-top: 0;
}

.wb-hero .wb-lead,
.wb-hero > p {
	color: var(--wp--preset--color--mist);
	font-size: var(--wp--preset--font-size--large);
}

.wb-hero .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40);
}

/* Hero is the first block on the home page: no gap under the header. */
.wp-block-post-content > .wb-hero:first-child {
	margin-top: 0;
}

/* ---------------------------------------------------------------
   6. Weekly schedule: the lunch tray (wb-week, wb-day)
--------------------------------------------------------------- */
.wp-block-columns.wb-week {
	max-width: min(100%, 1000px);
	margin-left: auto;
	margin-right: auto;
	gap: 8px;
	padding: 8px;
	background: var(--wp--preset--color--ink);
	border-radius: var(--wb-radius-lg);
	box-shadow: var(--wb-shadow);
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--40);
}

/* A plain group that holds the tray may grow wider than the text column. */
.is-layout-constrained > .wp-block-group:not(.alignwide, .alignfull):has(> .wb-week) {
	max-width: min(100%, 1000px);
}

.wb-week > .wp-block-column.wb-day {
	position: relative;
	margin: 0;
	padding: 1rem 1rem 1.125rem;
	background: var(--wp--preset--color--paper);
	border-radius: var(--wb-radius);
	border-top: 6px solid var(--wp--preset--color--mist);
	box-shadow: inset 0 2px 6px rgba(25, 42, 57, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wb-day > * {
	margin-block: 0;
}

.wb-day .wb-day-name,
.wb-day > :is(h2, h3, h4):first-of-type {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

/* Vendor chips. */
.wb-day ul,
.wb-day-vendors {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wb-day li {
	margin: 0;
}

.wb-day li > a,
.wb-day li:not(:has(a)) {
	display: flex;
	align-items: center;
	min-height: var(--wb-tap);
	padding: 0.5rem 0.875rem;
	background: var(--wp--preset--color--surface);
	border: var(--wb-border);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.wb-day li > a:hover {
	border-color: var(--wp--preset--color--teal-deep);
	color: var(--wp--preset--color--teal-deep);
}

/* Today: raised compartment with a sun top edge. */
.wb-week > .wp-block-column.wb-day.is-today {
	background: var(--wp--preset--color--surface);
	border-top-color: var(--wp--preset--color--sun);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	transform: translateY(-6px);
	z-index: 1;
}

.wb-day.is-today .wb-day-name,
.wb-day.is-today > :is(h2, h3, h4):first-of-type {
	color: var(--wp--preset--color--ink);
}

.wb-today-label {
	position: absolute;
	top: -6px;
	right: 0.75rem;
	transform: translateY(-50%);
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.5;
}

/* No hot lunch today (page "Days Without Hot Lunch"): calm, not alarm red. */
.wb-week > .wp-block-column.wb-day.is-closed {
	background: var(--wp--preset--color--mist);
	border-top-color: var(--wp--preset--color--slate);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	transform: translateY(-6px);
	z-index: 1;
}

.wb-day.is-closed .wb-day-name,
.wb-day.is-closed > :is(h2, h3, h4):first-of-type {
	color: var(--wp--preset--color--ink);
}

.wb-day.is-closed .wb-today-label {
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--surface);
	letter-spacing: 0.04em;
}

.wb-day .wb-closed-reason {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
}

/* Vendors do not serve on this day: chips stay readable but quiet. */
.wb-day.is-closed li > a,
.wb-day.is-closed li:not(:has(a)) {
	color: var(--wp--preset--color--slate);
	opacity: 0.7;
}

/* "No hot lunch: Fri, Nov 27 ..." line under the schedule. */
.wb-next-closures {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--mist);
	border-radius: 10px;
	overflow-wrap: anywhere;
}

.wb-next-closures a {
	white-space: nowrap;
	font-weight: 600;
}

/* Small notes right under the schedule sit close together. */
.wb-week + .wb-next-closures,
.wb-next-closures + .wb-note {
	margin-top: 0.5rem;
}

/* Closures table: dates may wrap (ranges are long). */
.wp-block-table.wb-closures td:first-child {
	white-space: normal;
	min-width: 6.5rem;
}

/* Phones: one block per row. Date and day on one line, the reason below. */
@media (max-width: 600px) {
	.wp-block-table.wb-closures thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.wp-block-table.wb-closures :is(table, tbody, tr) {
		display: block;
	}

	.wp-block-table.wb-closures tr {
		padding: 0.75rem 1rem;
		border-bottom: var(--wb-border);
	}

	.wp-block-table.wb-closures tbody tr:last-child {
		border-bottom: 0;
	}

	.wp-block-table.wb-closures td,
	.wp-block-table.wb-closures tbody tr:last-child td {
		display: inline;
		padding: 0;
		border: 0;
	}

	.wp-block-table.wb-closures td:nth-child(2) {
		color: var(--wp--preset--color--slate);
	}

	.wp-block-table.wb-closures td:nth-child(2)::before {
		content: " \00B7  ";
	}

	.wp-block-table.wb-closures td:nth-child(3),
	.wp-block-table.wb-closures tbody tr:last-child td:nth-child(3) {
		display: block;
		margin-top: 0.25rem;
	}
}

/* Phones and tablets: one row per day, day name on the left. */
@media (max-width: 781px) {
	.wb-week > .wp-block-column.wb-day {
		display: grid;
		grid-template-columns: 6.75rem 1fr;
		align-items: center;
		column-gap: 0.75rem;
		padding: 0.75rem;
		border-top: 0;
		border-left: 6px solid var(--wp--preset--color--mist);
	}

	.wb-day .wb-day-name,
	.wb-day > :is(h2, h3, h4):first-of-type {
		margin: 0;
		grid-column: 1;
	}

	.wb-day > :is(ul, p, .wp-block-group) {
		grid-column: 2;
	}

	.wb-day ul,
	.wb-day-vendors {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.wb-week > .wp-block-column.wb-day.is-today {
		border-left-color: var(--wp--preset--color--sun);
		transform: translateX(4px);
		padding-top: 1.75rem;
	}

	.wb-week > .wp-block-column.wb-day.is-closed {
		border-left-color: var(--wp--preset--color--slate);
		transform: translateX(4px);
		padding-top: 1.75rem;
	}

	.wb-day .wb-closed-reason {
		grid-column: 2;
		margin: 0 0 0.25rem;
	}

	.wb-day.is-closed ul {
		grid-column: 2;
	}

	.wb-day.is-closed .wb-day-name {
		grid-row: span 2;
	}

	.wb-today-label {
		top: 0.375rem;
		left: 0.75rem;
		right: auto;
		transform: none;
	}
}

/* ---------------------------------------------------------------
   7. Vendors and dish photos
--------------------------------------------------------------- */
.wp-block-group.wb-vendor {
	scroll-margin-top: 1.5rem;
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 2px solid var(--wp--preset--color--mist);
}

.wb-vendor > :is(h2, h3):first-child {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.wb-vendor > :is(h2, h3):first-child::before {
	content: "";
	flex: none;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var(--wp--preset--color--teal);
}

.wb-vendor:target > :is(h2, h3):first-child::before {
	background: var(--wp--preset--color--sun);
}

.wb-vendor-days {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	color: var(--wp--preset--color--slate);
	margin-top: 0.25rem;
}

.wb-vendor-days strong {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8125rem;
}

/* Dish grid: 2 per row on phones, 3 on tablets and desktop. */
.wp-block-gallery.has-nested-images.wb-dish-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 700px) {
	.wp-block-gallery.has-nested-images.wb-dish-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}

	.wp-block-gallery.has-nested-images.wb-dish-grid.wb-dish-strip {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.wp-block-gallery.has-nested-images.wb-dish-grid figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface);
	border: var(--wb-border);
	border-radius: var(--wb-radius);
	overflow: hidden;
}

.wp-block-gallery.has-nested-images.wb-dish-grid figure.wp-block-image:has(figcaption)::before {
	display: none !important;
}

.wp-block-gallery.has-nested-images.wb-dish-grid figure.wp-block-image img {
	width: 100%;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	flex: none !important;
}

.wp-block-gallery.has-nested-images.wb-dish-grid figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	overflow: visible;
	margin: 0;
	padding: 0.5rem 0.75rem 0.625rem;
	background: none;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	text-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* ---------------------------------------------------------------
   8. 20 cents of every dollar (wb-dollar)
--------------------------------------------------------------- */
.wp-block-group.wb-dollar {
	background: var(--wp--preset--color--surface);
	border: var(--wb-border);
	border-radius: var(--wb-radius-lg);
	padding: clamp(1.25rem, 5vw, 2.25rem);
	margin-top: var(--wp--preset--spacing--40);
	text-align: center;
}

.wb-dollar > :is(h2, h3):first-child {
	margin-top: 0;
}

.wp-block-group.wb-dollar-coins {
	gap: 6px;
	flex-wrap: nowrap;
	justify-content: center;
	margin-top: 1.25rem;
	margin-left: auto;
	margin-right: auto;
	max-width: 520px;
	padding: 6px;
	background: var(--wp--preset--color--mist);
	border-radius: 999px;
}

.wp-block-group.wb-dollar-part {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0 0.25rem;
	margin: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--slate);
}

.wp-block-group.wb-dollar-part:first-child {
	border-radius: 999px 10px 10px 999px;
}

.wp-block-group.wb-dollar-part:last-child {
	border-radius: 10px 999px 999px 10px;
}

.wb-dollar-part > p {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(0.9375rem, 3.5vw, 1.25rem);
	line-height: 1;
	white-space: nowrap;
}

.wp-block-group.wb-dollar-part.wb-dollar-pac {
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--ink);
}

.wb-dollar-pac > p {
	font-weight: 800;
}

.wb-dollar-caption {
	max-width: 34em;
	margin-left: auto;
	margin-right: auto;
	margin-top: 1rem;
	color: var(--wp--preset--color--slate);
}

/* ---------------------------------------------------------------
   9. Link list (wb-link-list) and tag (wb-tag)
--------------------------------------------------------------- */
ul.wb-link-list,
ol.wb-link-list {
	list-style: none;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wb-link-list li {
	margin: 0;
}

.wb-link-list li > a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0.75rem 3rem 0.75rem 1.125rem;
	background: var(--wp--preset--color--surface);
	border: var(--wb-border);
	border-radius: var(--wb-radius);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Arrow made with borders (no font glyph needed). */
.wb-link-list li > a::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	width: 0.5rem;
	height: 0.5rem;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
	color: var(--wp--preset--color--teal-deep);
	transition: right 0.15s ease;
}

.wb-link-list li > a:hover {
	border-color: var(--wp--preset--color--teal-deep);
	box-shadow: var(--wb-shadow);
	color: var(--wp--preset--color--teal-deep);
}

.wb-link-list li > a:hover::after {
	right: 1rem;
}

/* Keep the pill on the left edge of the text column, not centred. */
.is-layout-constrained > p.wb-tag {
	margin-left: max(0px, (100% - var(--wp--style--global--content-size)) / 2) !important;
	margin-right: auto !important;
}

p.wb-tag {
	display: block;
	width: fit-content;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.5;
}

/* ---------------------------------------------------------------
   10. Core blocks: details (FAQ), table, quote
--------------------------------------------------------------- */
.wp-block-details {
	background: var(--wp--preset--color--surface);
	border: var(--wb-border);
	border-radius: var(--wb-radius);
	padding: 0 1.125rem;
}

.wp-block-details + .wp-block-details {
	margin-top: 0.5rem;
}

.wp-block-details > summary {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0.75rem 2rem 0.75rem 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details > summary::after {
	content: "";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid var(--wp--preset--color--teal-deep);
	border-bottom: 2px solid var(--wp--preset--color--teal-deep);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.15s ease;
}

.wp-block-details[open] > summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.wp-block-details[open] {
	padding-bottom: 1rem;
}

.wp-block-details > :not(summary) {
	margin-top: 0;
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--wp--preset--color--surface);
	border: var(--wb-border);
	border-radius: var(--wb-radius);
	overflow: hidden;
}

.wp-block-table :is(th, td) {
	border: 0;
	border-bottom: var(--wb-border);
	padding: 0.75rem 1rem;
	text-align: left;
	vertical-align: top;
}

.wp-block-table tbody tr:last-child td {
	border-bottom: 0;
}

.wp-block-table thead {
	border-bottom: 0;
}

.wp-block-table th {
	background: var(--wp--preset--color--mist);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wp-block-table td:first-child {
	font-weight: 600;
	white-space: nowrap;
}

.wp-block-quote > p:first-child {
	margin-top: 0;
}

.wp-block-quote cite {
	display: block;
	margin-top: 0.5rem;
}

.wp-block-quote cite::before {
	content: "\2014\00a0";
}

/* ---------------------------------------------------------------
   11. Report note (template part) and footer
--------------------------------------------------------------- */
.wb-report-note-wrap {
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--50);
}

.wp-block-group.wb-report-note {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-radius: var(--wb-radius);
}

.wp-block-group.wb-report-note::before {
	content: "!";
	flex: none;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--sun);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	line-height: 1;
}

.wb-report-note p {
	margin: 0;
	align-self: center;
	font-weight: 600;
}

.wb-report-note a {
	color: var(--wp--preset--color--ink);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.wb-report-note a:hover {
	color: var(--wp--preset--color--teal-deep);
}

.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

.wb-footer {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--mist);
}

.wb-footer-brand {
	gap: 0.875rem;
}

.wb-footer-brand .wp-block-image {
	flex: none;
	width: 56px;
	margin: 0;
}

.wb-footer .wb-footer-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	color: var(--wp--preset--color--surface);
	line-height: 1.15;
}

.wb-footer :is(h2, h3) {
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sun);
	margin-bottom: 0.5rem;
}

.wb-footer ul.wb-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wb-footer-links li {
	margin: 0;
}

.wb-footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wb-tap);
	text-decoration: none;
	font-weight: 600;
}

.wb-footer-links a:hover {
	text-decoration: underline;
}

.wb-footer .wb-footer-email a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wb-tap);
	font-weight: 600;
}

.wb-footer-bottom {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: 1rem;
	border-top: 1px solid rgba(225, 236, 239, 0.18);
	color: rgba(225, 236, 239, 0.8);
}

/* ---------------------------------------------------------------
   12. Reduced motion
--------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}

	.wb-week > .wp-block-column.wb-day:is(.is-today, .is-closed) {
		transform: none;
	}
}

/* Meal Handling Requests: step rows with app screenshots. */
.wb-step {
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40, 1.5rem);
	margin-block: var(--wp--preset--spacing--40, 1.5rem);
}
.wb-shot img {
	display: block;
	width: 100%;
	max-width: 280px;
	margin-inline: auto;
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: 14px;
	box-shadow: 0 6px 18px rgb(25 42 57 / 0.08);
}
@media (max-width: 781px) {
	.wb-step .wb-shot img {
		max-width: 240px;
	}
}

/* Beta badge in the header. To remove: delete the "wb-beta" paragraph in parts/header.html. */
.wb-brand .wb-beta {
	margin: 0;
	flex-shrink: 0;
	line-height: 1;
}
.wb-brand .wb-beta a {
	display: inline-block;
	padding: 0.3rem 0.55rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.wb-brand .wb-beta a:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--sun);
}
.wb-brand .wb-beta a:focus-visible {
	outline: 2px solid var(--wp--preset--color--teal-deep);
	outline-offset: 2px;
}

/* Footer credit line. */
.wb-footer-bottom .wb-credit .wb-heart {
	color: var(--wp--preset--color--sun);
}
.wb-footer-bottom .wb-credit a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--teal);
	text-underline-offset: 3px;
}
.wb-footer-bottom .wb-credit a:hover {
	color: var(--wp--preset--color--sun);
}
.wb-footer-bottom .wb-credit .wb-heart {
	margin-inline: 0.15em;
}
.wb-footer-bottom .wb-credit .wb-nowrap {
	white-space: nowrap;
}
@media (max-width: 600px) {
	.wb-footer-bottom .wb-credit .wb-sep {
		display: none;
	}
	.wb-footer-bottom .wb-credit .wb-nowrap {
		display: block;
		margin-top: 0.25rem;
	}
}
