/* Dental Emergency LI — styles shared by the site and the editor. */

:root {
	--deli-navy: var(--wp--preset--color--navy);
	--deli-deep: var(--wp--preset--color--deep);
	--deli-blue: var(--wp--preset--color--blue);
	--deli-red: var(--wp--preset--color--red);
	--deli-ink: var(--wp--preset--color--ink);
	--deli-muted: var(--wp--preset--color--muted);
	--deli-mist: var(--wp--preset--color--mist);
	--deli-line: var(--wp--preset--color--line);
	--deli-sky: var(--wp--preset--color--sky);
	--deli-coral: var(--wp--preset--color--coral);
	--deli-radius: 1.25rem;
	--deli-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	--deli-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--deli-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
	--deli-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3 {
	text-wrap: balance;
}

/* ---------- Buttons ---------- */

.wp-block-button__link {
	transition: filter 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.wp-block-button__link:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--deli-navy);
	border: 1.5px solid var(--deli-navy);
	padding: calc(0.95rem - 1.5px) calc(1.7rem - 1.5px);
}

.wp-block-button.is-style-navy > .wp-block-button__link {
	background: var(--deli-navy);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-light > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	padding: calc(0.95rem - 1.5px) calc(1.7rem - 1.5px);
}

/* ---------- Lists ---------- */

ul.is-style-plain {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

/* ---------- Top bar ---------- */

.deli-topbar {
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

.deli-topbar p {
	margin: 0;
}

.deli-topbar__note {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.deli-topbar__note::before {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: var(--deli-clock) center / contain no-repeat;
	mask: var(--deli-clock) center / contain no-repeat;
}

.deli-topbar__phones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem clamp(1rem, 2.2vw, 3rem);
}

.deli-topbar__phones a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	white-space: nowrap;
}

.deli-topbar__phones a:hover {
	text-decoration: underline;
}

/* ---------- Header ---------- */

.deli-header {
	border-bottom: 1px solid var(--deli-line);
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

.deli-header__row {
	gap: 1.5rem;
}

.deli-header .wp-block-site-logo img {
	height: auto;
	display: block;
}

.deli-header__actions {
	gap: 0.75rem;
	flex-shrink: 0;
}

.deli-nav .wp-block-navigation-item__content {
	color: var(--deli-navy);
	font-weight: 600;
	text-decoration: none;
}

.deli-nav .wp-block-navigation-item__content:hover {
	color: var(--deli-red);
}

.deli-loc-toggle > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}

.deli-loc-toggle > .wp-block-button__link::before,
.deli-loc-toggle > .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.15em;
	height: 1.15em;
	background: var(--deli-red);
	-webkit-mask: var(--deli-pin) center / contain no-repeat;
	mask: var(--deli-pin) center / contain no-repeat;
}

.deli-loc-toggle > .wp-block-button__link::after {
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask-image: var(--deli-chevron);
	mask-image: var(--deli-chevron);
}

.deli-header__book .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
}

/* ---------- Footer ---------- */

.deli-footer {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--40);
}

.deli-footer a {
	color: var(--wp--preset--color--white);
}

.deli-footer p {
	margin-top: 0.4rem;
	margin-bottom: 0;
}

.deli-footer__office {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
}

.deli-footer__office a,
.deli-footer__phone a {
	text-decoration: none;
	font-weight: 600;
}

.deli-footer__office a:hover,
.deli-footer__phone a:hover {
	text-decoration: underline;
}

.deli-areas {
	margin-top: var(--wp--preset--spacing--50);
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.deli-areas > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--white);
}

.deli-areas > summary::-webkit-details-marker {
	display: none;
}

.deli-areas > summary::after {
	content: "";
	flex: none;
	width: 1.4em;
	height: 1.4em;
	background: currentColor;
	-webkit-mask: var(--deli-chevron) center / contain no-repeat;
	mask: var(--deli-chevron) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.deli-areas[open] > summary::after {
	transform: rotate(180deg);
}

.deli-areas > :not(summary) {
	max-width: none;
}

.deli-areas .wp-block-columns {
	margin-top: 1.25rem;
	padding-bottom: 1.75rem;
}

.deli-areas li {
	line-height: 2;
}

.deli-areas li a {
	font-weight: 600;
}

.deli-footer__bottom {
	margin-top: var(--wp--preset--spacing--40);
}

.deli-footer__legal a {
	color: var(--deli-sky);
	margin-left: 1.5rem;
}

.deli-footer__menu .wp-block-navigation__container {
	gap: 0.5rem 1.5rem;
}

.deli-footer__menu a {
	color: var(--deli-sky);
}

/* The fixed phone action bar is hidden everywhere except small screens (see front.css). */
.wp-block-group.deli-actionbar {
	display: none;
}

/* ======================================================================
   Page sections
   ====================================================================== */

.deli-band {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.deli-band .wp-block-columns {
	gap: clamp(1.75rem, 4vw, 6rem);
	margin-bottom: 0;
}

.deli-eyebrow {
	margin: 0 0 0.9rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--deli-sky);
}

.deli-eyebrow--red {
	color: var(--deli-red);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.deli-kicker,
.deli-label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--deli-muted);
}

.deli-label {
	margin-bottom: 0.3rem;
}

.deli-label + p {
	margin-top: 0;
	font-weight: 500;
}

.deli-lead {
	max-width: 44rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
	color: var(--deli-muted);
}

/* ---------- Inner page banner and text ---------- */

.deli-banner {
	padding-top: clamp(2.25rem, 5vw, 5rem);
	padding-bottom: clamp(2.25rem, 5vw, 5rem);
}

.deli-banner h1 {
	margin: 0;
	max-width: 22em;
	color: var(--wp--preset--color--white);
	font-size: clamp(2rem, 3.4vw + 0.8rem, 3.6rem);
}

.deli-prose {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* Inner pages: text column plus sidebar, lined up with the banner title. */
.deli-split {
	gap: clamp(2rem, 4vw, 5rem) !important;
	margin-bottom: 0;
}

.deli-article > :first-child {
	margin-top: 0;
}

.deli-aside__part {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.deli-side__card {
	padding: clamp(1.4rem, 2vw, 2rem);
	border-radius: 1.25rem;
}

.deli-side__card > * {
	margin-top: 0;
	margin-bottom: 0;
}

.deli-side__card > * + * {
	margin-top: 0.75rem;
}

.deli-side__eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--deli-coral);
}

/* Two classes so it wins over ".deli-prose h2". */
.deli-side__card .deli-side__title {
	margin-top: 0;
	font-size: clamp(1.25rem, 0.6vw + 1rem, 1.5rem);
	line-height: 1.2;
}

.deli-side__card--navy .deli-side__title {
	color: var(--wp--preset--color--white);
}

.deli-side__note {
	color: var(--deli-sky);
}

ul.deli-side__offices {
	margin-top: 1.1rem !important;
	padding: 0;
}

ul.deli-side__offices li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	margin: 0;
}

ul.deli-side__offices a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	font-weight: 600;
}

ul.deli-side__offices a[href^="tel:"] {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	color: var(--deli-coral);
	white-space: nowrap;
}

ul.deli-side__offices a:hover {
	text-decoration: underline;
}

.deli-side__book {
	margin-top: 1.1rem !important;
}

.deli-side__book .wp-block-button,
.deli-side__book .wp-block-button__link {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

ul.deli-side__links {
	margin-top: 1rem !important;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	columns: 2;
	column-gap: 1.25rem;
}

ul.deli-side__links li {
	margin: 0;
	border-top: 1px solid var(--deli-line);
	break-inside: avoid;
	line-height: 1.3;
}

ul.deli-side__links a {
	display: block;
	padding: 0.55rem 0;
	color: var(--deli-ink);
	text-decoration: none;
	font-weight: 500;
}

ul.deli-side__links a:hover {
	color: var(--deli-red);
}

.deli-hours {
	margin-top: 0;
	line-height: 1.6;
}

.deli-prose h2 {
	margin-top: 2.25rem;
	font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem);
}

.deli-prose h3 {
	margin-top: 1.9rem;
}

.deli-prose li {
	margin-bottom: 0.35rem;
}

.deli-prose .wp-block-image.alignright {
	max-width: min(42%, 20rem);
	margin: 0 0 1.25rem 2rem;
}

.deli-prose .wp-block-image img,
.deli-photo img {
	border-radius: var(--deli-radius);
}

/* ---------- Home hero ---------- */

.deli-hero {
	position: relative;
	overflow: hidden;
}

.deli-hero__img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 66%;
	margin: 0;
}

.deli-hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 30%;
	display: block;
}

.deli-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, #0a2a52 0%, #0a2a52 34%, rgba(10, 42, 82, 0.78) 44%, rgba(10, 42, 82, 0) 62%);
}

.deli-hero__inner {
	position: relative;
	z-index: 2;
	padding-top: clamp(2.75rem, 6.5vw, 8rem);
	padding-bottom: clamp(7rem, 12vw, 14rem);
}

.deli-hero__copy {
	max-width: 47%;
}

.deli-hero h1 {
	margin: 0;
	color: var(--wp--preset--color--white);
}

.deli-hero__sub {
	margin: 1.4rem 0 1.75rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.35;
}

.deli-hero .wp-block-buttons .wp-block-button__link,
.deli-lochero .wp-block-buttons .wp-block-button__link {
	padding-top: 1.1rem;
	padding-bottom: 1.1rem;
}

.deli-call > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.deli-call > .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1.15em;
	height: 1.15em;
	background: currentColor;
	-webkit-mask: var(--deli-phone) center / contain no-repeat;
	mask: var(--deli-phone) center / contain no-repeat;
}

.deli-denture {
	width: fit-content;
	max-width: 100%;
	margin-top: 2.25rem;
	padding: 1rem 1.4rem;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 1rem;
	background: rgba(7, 30, 61, 0.6);
}

.deli-denture p {
	margin: 0;
}

.deli-denture__label {
	margin-bottom: 0.4rem !important;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--deli-sky);
}

.deli-denture__text {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.25;
}

/* ---------- Office tiles under the hero ---------- */

.deli-tiles {
	position: relative;
	z-index: 3;
	padding-bottom: var(--wp--preset--spacing--50);
}

.deli-tiles__row {
	margin-top: calc(-1 * clamp(4.5rem, 6.4vw, 8rem));
	gap: clamp(1rem, 1.7vw, 2.5rem) !important;
}

.deli-tile {
	height: 100%;
	box-sizing: border-box;
	gap: clamp(0.9rem, 1.3vw, 1.75rem);
	padding: clamp(0.9rem, 1.3vw, 1.75rem);
	border-radius: var(--deli-radius);
	background: var(--wp--preset--color--white);
	box-shadow: 0 22px 48px -22px rgba(7, 30, 61, 0.4), 0 0 0 1px var(--deli-line);
}

.deli-tile__img {
	flex: none;
	width: clamp(5.25rem, 7.2vw, 10rem);
	margin: 0;
}

.deli-tile__img img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0.9rem;
	display: block;
}

.deli-tile__body > * {
	margin: 0;
}

.deli-tile__name {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
}

.deli-tile__name a,
.deli-card h3 a {
	color: var(--deli-navy);
	text-decoration: none;
}

.deli-tile__name a::after,
.deli-card h3 a::after {
	content: " \2192";
	color: var(--deli-red);
}

.deli-tile__addr {
	margin-top: 0.25rem !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--deli-muted);
}

.deli-tile__phone {
	margin-top: 0.6rem !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.deli-tile__phone a,
.deli-card__phone a {
	color: var(--deli-red);
	text-decoration: none;
}

/* ---------- Service links, questions and chips ---------- */

ul.is-style-service-links {
	list-style: none;
	margin: 0;
	padding: 0;
	column-width: 15rem;
	column-gap: clamp(1rem, 1.7vw, 2.5rem);
}

ul.is-style-service-links li {
	break-inside: avoid;
	border-bottom: 1px solid var(--deli-line);
	font-weight: 500;
}

ul.is-style-service-links li,
ul.is-style-service-links li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	color: var(--deli-ink);
	text-decoration: none;
}

ul.is-style-service-links li a {
	width: 100%;
	padding: 0.85rem 0.25rem;
}

ul.is-style-service-links li:not(:has(a)) {
	padding: 0.85rem 0.25rem;
}

ul.is-style-service-links li a::after {
	content: "\2192";
}

ul.is-style-service-links li a:hover {
	color: var(--deli-red);
}

.deli-band--wide-list ul.is-style-service-links {
	column-width: 17rem;
	margin-top: 1.5rem;
}

ul.is-style-questions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	column-gap: clamp(1rem, 1.7vw, 2.5rem);
}

ul.is-style-questions li {
	padding: clamp(1rem, 1.5vw, 2rem) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.3;
}

ul.is-style-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.5rem 0 0;
	padding: 0;
}

ul.is-style-chips li {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 1.1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 0 1px var(--deli-line);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--deli-navy);
}

/* ---------- Photos and fact tiles ---------- */

.deli-photo {
	margin: 0;
}

.deli-photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.deli-photo--tall img {
	aspect-ratio: 3 / 4;
}

.deli-photo--drop {
	margin-top: clamp(1.75rem, 4vw, 6rem);
}

.deli-photo--hero img {
	border-radius: 1.75rem;
	box-shadow: 0 30px 70px -30px rgba(7, 30, 61, 0.5);
}

.deli-facts {
	margin-top: var(--wp--preset--spacing--50);
	gap: clamp(1rem, 1.7vw, 2.5rem);
}

.deli-fact {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	aspect-ratio: 4 / 3;
	padding: clamp(1.4rem, 2.2vw, 3rem);
	border-radius: var(--deli-radius);
}

.deli-fact p {
	margin: 0;
}

.deli-fact__big {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: clamp(4rem, 6.4vw, 9rem);
	line-height: 0.9;
	letter-spacing: -0.03em;
}

.deli-fact__title {
	margin-top: 0.6rem !important;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.15;
}

.deli-fact__title--big {
	font-weight: 800;
	font-size: clamp(2.1rem, 3.2vw, 4.75rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.deli-fact__lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
	color: var(--deli-sky);
}

/* Why Choose Us: always four equal tiles in a row (two on tablets, one on phones), and the text
   sized to its own tile so "Accepted" and "0%" never spill out. Beats core's auto-fill grid rule. */
.wp-block-group.deli-facts.is-layout-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
}

.deli-facts > .deli-fact {
	container-type: inline-size;
	aspect-ratio: 4 / 3;
	min-width: 0;
	overflow: hidden;
}

.deli-facts > .deli-photo {
	aspect-ratio: 4 / 3;
	height: 100%;
	overflow: hidden;
	border-radius: var(--deli-radius);
}

.deli-facts > .deli-photo img {
	height: 100%;
	aspect-ratio: auto;
}

.deli-facts .deli-fact__big {
	font-size: clamp(2.5rem, 30cqi, 9rem);
}

.deli-facts .deli-fact__title {
	font-size: clamp(1rem, 7.5cqi, 1.9rem);
}

.deli-facts .deli-fact__title--big {
	font-size: clamp(1.6rem, 15cqi, 4.75rem);
}

.deli-facts .deli-fact__lead {
	font-size: clamp(0.95rem, 7cqi, 1.6rem);
}

.deli-facts .deli-fact p:not(.deli-fact__big):not(.deli-fact__title):not(.deli-fact__lead) {
	font-size: clamp(0.85rem, 5.6cqi, 1.25rem);
}

@media (max-width: 1024px) {
	.wp-block-group.deli-facts.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.wp-block-group.deli-facts.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- "How we can help" steps ---------- */

.deli-steps {
	margin-top: var(--wp--preset--spacing--50);
}

.deli-step {
	border-top: 3px solid var(--deli-red);
	padding-top: clamp(1rem, 1.5vw, 2rem);
}

.deli-step h3 {
	margin-top: 0;
}

/* ---------- Office cards ---------- */

.deli-cards {
	margin-top: var(--wp--preset--spacing--50);
	gap: clamp(1rem, 1.7vw, 2.5rem) !important;
}

.deli-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 1.5rem;
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 0 1px var(--deli-line);
}

.deli-card--navy {
	box-shadow: none;
}

.deli-card__img {
	margin: 0;
}

.deli-card__img img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}

.deli-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
	padding: clamp(1.25rem, 2vw, 2.75rem);
}

.deli-card__body > * {
	margin: 0;
}

.deli-card h3 {
	font-size: clamp(1.5rem, 2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
}

.deli-card__addr {
	color: var(--deli-muted);
}

.deli-card__phone {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.2;
}

.deli-card__body .wp-block-buttons {
	margin-top: auto;
	padding-top: 0.9rem;
}

.deli-card__body .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
	padding: 0.8rem 1.25rem;
}

/* ---------- Dentists ---------- */

.deli-docs {
	margin-top: var(--wp--preset--spacing--50);
	gap: clamp(1rem, 1.7vw, 2.5rem);
}

.deli-doc {
	text-align: center;
}

.deli-doc__img {
	margin: 0;
}

.deli-doc__img img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: 50% 0;
	border-radius: 50%;
	background: #e3eaf2;
	display: block;
}

.deli-doc__name {
	margin: 0.9rem 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	line-height: 1.25;
	color: var(--deli-navy);
}

/* ---------- Location pages ---------- */

.deli-facts-row {
	margin-top: 2.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--deli-line);
	gap: 1.5rem !important;
}

.deli-facts-row p {
	margin-top: 0;
}

.deli-formcard {
	padding: clamp(1.4rem, 2.4vw, 3.5rem);
	border-radius: 1.5rem;
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 0 1px var(--deli-line), 0 30px 60px -40px rgba(7, 30, 61, 0.35);
}

.deli-formcard h2 {
	margin-top: 0;
}

.deli-form {
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
	overflow: hidden;
}

/* The GoHighLevel script sets the real height once the form loads. */
.deli-form iframe {
	display: block;
	width: 100%;
	min-height: 34rem;
	border: 0;
}

/* Office appointment pages: the form sits on white in a bordered box. */
.deli-band--book .deli-form {
	padding: clamp(0.75rem, 1.5vw, 1.5rem);
	box-shadow: 0 0 0 1px var(--deli-line);
	border-radius: 1.25rem;
}

.deli-card--side {
	height: auto;
	position: sticky;
	top: 7rem;
}

.deli-card--side .deli-card__body {
	gap: 0.35rem;
}

.deli-card--side h3 a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.deli-card--side .deli-card__note {
	margin-bottom: 0.75rem;
	color: var(--deli-sky);
}

.deli-card--side .deli-label {
	margin-top: 0.75rem;
	color: var(--deli-sky);
}

.deli-card--side a[href^="tel:"] {
	color: var(--wp--preset--color--white);
}

.deli-card--side .wp-block-buttons {
	margin-top: 1rem;
}

.deli-map {
	overflow: hidden;
	border-radius: 1.5rem;
	box-shadow: inset 0 0 0 1px var(--deli-line);
	background: #dce5ef;
}

.deli-map iframe {
	display: block;
	width: 100%;
	height: clamp(20rem, 34vw, 44rem);
	border: 0;
}

.deli-nearby {
	font-weight: 600;
	color: var(--deli-navy);
}

.deli-back a {
	font-weight: 600;
}

/* ---------- Testimonials ---------- */

.deli-quotes {
	gap: clamp(1rem, 1.7vw, 2.5rem);
}

.wp-block-quote.deli-quote {
	margin: 0;
	padding: clamp(1.4rem, 2vw, 2.5rem);
	border: 0;
	border-radius: var(--deli-radius);
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 0 1px var(--deli-line);
}

.wp-block-quote.deli-quote cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-style: normal;
	font-weight: 700;
	color: var(--deli-navy);
}

/* ---------- Closing call band ---------- */

.deli-cta {
	position: relative;
	overflow: hidden;
}

.deli-cta__img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 66%;
	margin: 0;
}

.deli-cta__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 30%;
	display: block;
}

.deli-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, #0a2a52 0%, #0a2a52 34%, rgba(10, 42, 82, 0.78) 44%, rgba(10, 42, 82, 0) 62%);
}

.deli-cta__inner {
	position: relative;
	z-index: 2;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.deli-cta__copy {
	max-width: 47%;
}

.deli-cta h2 {
	margin: 0 0 1.75rem;
	color: var(--wp--preset--color--white);
}

.deli-cta__calls {
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	max-width: 32rem;
}

.deli-cta__calls .wp-block-button {
	width: 100%;
}

.deli-cta__calls .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	box-sizing: border-box;
	padding: 1.1rem 1.6rem;
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
	color: var(--deli-navy);
	font-weight: 600;
	text-align: left;
}

.deli-cta__calls .wp-block-button__link strong {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	color: var(--deli-red);
	white-space: nowrap;
}

/* The hero and call-band photos ignore the content-width limit of their section. */
.deli-hero > .deli-hero__img,
.deli-cta > .deli-cta__img {
	max-width: none !important;
	margin: 0 !important;
}

/* ---------- FAQs (core Accordion) ---------- */

.deli-faq__list {
	border-top: 1px solid var(--deli-line);
}

.deli-faq__list .wp-block-accordion-item {
	border-bottom: 1px solid var(--deli-line);
}

.deli-faq__list .wp-block-accordion-heading {
	margin: 0;
	font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
	line-height: 1.35;
	color: var(--deli-navy);
}

.deli-faq__list .wp-block-accordion-heading__toggle {
	gap: 1rem;
	padding: 1.15rem 0;
}

.deli-faq__list .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	text-decoration: none;
	color: var(--deli-red);
}

.deli-faq__list .wp-block-accordion-heading__toggle-icon {
	flex: none;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--deli-mist);
	color: var(--deli-red);
	font-size: 1.25rem;
}

.deli-faq__list .wp-block-accordion-panel {
	padding: 0 3rem 1.25rem 0;
	color: var(--deli-muted);
}

.deli-faq__list .wp-block-accordion-panel > * {
	margin-top: 0;
}

/* Long service lists: an accordion on phones (site.js adds the button). */
.deli-more {
	display: none;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 820px) {
	.deli-hero > .deli-hero__img,
	.deli-cta > .deli-cta__img {
		position: relative;
		width: calc(100% + 2 * var(--wp--style--root--padding-left, 1rem));
		height: 62vw;
		margin-left: calc(-1 * var(--wp--style--root--padding-left, 1rem)) !important;
	}

	.wp-block-group.deli-hero,
	.wp-block-group.deli-cta {
		padding-top: 0 !important;
	}

	.deli-hero::before,
	.deli-cta::before {
		display: none;
	}

	.deli-hero__copy,
	.deli-cta__copy {
		max-width: none;
	}

	.deli-hero__inner {
		padding-top: 1.75rem;
		padding-bottom: 2.5rem;
	}

	.deli-hero .wp-block-buttons .wp-block-button,
	.deli-hero .wp-block-buttons .wp-block-button__link {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}

	.deli-card--side {
		position: static;
	}

	.deli-collapsible:not(.is-open) > li:nth-child(n+6) {
		display: none;
	}

	.deli-more {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin-top: 0.75rem;
		padding: 1rem 1.15rem;
		border: 1px solid var(--deli-line);
		border-radius: 0.9rem;
		background: var(--wp--preset--color--white);
		color: var(--deli-navy);
		font: inherit;
		font-weight: 700;
		cursor: pointer;
	}

	.deli-more::after {
		content: "";
		width: 1.2rem;
		height: 1.2rem;
		background: var(--deli-red);
		-webkit-mask: var(--deli-chevron) center / contain no-repeat;
		mask: var(--deli-chevron) center / contain no-repeat;
		transition: transform 0.2s ease;
	}

	.deli-more[aria-expanded="true"]::after {
		transform: rotate(180deg);
	}

	.deli-faq__list .wp-block-accordion-panel {
		padding-right: 0;
	}

	.deli-prose .wp-block-image.alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 1.25rem;
	}
}

/* Cards with a background colour: photo edge to edge (core adds padding to coloured groups). */
.wp-block-group.deli-card.has-background {
	padding: 0;
}

/* ---------- Open now / next opening (filled by site.js; hidden until then) ---------- */

.deli-open:empty {
	display: none;
}

.deli-open {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.deli-open::before {
	content: "";
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: #9aa7b6;
}

.deli-open.is-open::before {
	background: #1f9d55;
	box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.18);
}

.deli-open.is-closed::before {
	background: var(--deli-red);
}

.deli-office-row__status {
	display: block;
	margin-top: 0.15rem;
	font-weight: 600;
}

.deli-office-row__status:empty {
	display: none;
}

/* ---------- Forms: smaller heading, SMS notice ---------- */

.deli-formcard > h2,
.deli-band--book h2 {
	font-size: clamp(1.5rem, 1vw + 1.15rem, 2.25rem);
	line-height: 1.15;
	margin-bottom: 0.75rem;
}

.deli-sms-note {
	margin-top: 0.85rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--deli-muted);
}

/* ---------- Legal pages ---------- */

.deli-updated {
	font-size: var(--wp--preset--font-size--small);
	color: var(--deli-muted);
}

.deli-privacy-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0 1.4rem;
	border: 0;
	border-radius: 999px;
	background: var(--deli-navy);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* "Your Privacy Choices" with the standard toggle icon. */
.deli-privacy-choices > a::before,
.deli-privacy-btn::before {
	content: "";
	display: inline-block;
	width: 2.1em;
	height: 1em;
	margin-right: 0.45em;
	vertical-align: -0.15em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 14'%3E%3Crect x='.5' y='.5' width='29' height='13' rx='6.5' fill='%23fff' stroke='%230066ff'/%3E%3Cpath d='M7 .5h9l-4.5 13H7a6.5 6.5 0 0 1 0-13z' fill='%230066ff'/%3E%3Cpath d='M5.2 7.1l1.9 1.9 3.6-3.8' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19.3 4.6l4.4 4.8M23.7 4.6l-4.4 4.8' stroke='%230066ff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
