/*
Theme Name: Bromley Rheumatology
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bromley-rheumatology
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* === tokens === */
.section-border-top {
	border-top: 1px solid var(--wp--preset--color--border);
}

.eyebrow-row {
	justify-content: flex-start;
}

.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal-deep);
	font-weight: 600;
	margin: 0;
}
/* === header === */
/* Sticky positioning lives on the OUTER template-part wrapper (the true top-level
   header container), not the inner Group, so it is never constrained by an
   ancestor. The header template part is always the first top-level block in
   every template (see templates/*.html), so this selector targets only the
   header wrapper and never the footer. */
.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky;
	top: 0;
	z-index: 9999;
	background-color: var(--wp--preset--color--navy-deep);
}

/* keep the sticky header below the WP admin bar (not overlapped by it) when logged in */
.admin-bar .wp-site-blocks > .wp-block-template-part:first-child {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .wp-site-blocks > .wp-block-template-part:first-child {
		top: 46px;
	}
}

.site-header {
	box-shadow: 0 2px 8px rgba(11, 27, 43, 0.18);
}

/* Keep sticky-header height out of the way when the browser jumps to an
   in-page anchor (e.g. the Clinics page hospital sections), so the target
   heading isn't hidden underneath the fixed header. */
#sloane-hospital,
#chelsfield-park-hospital {
	scroll-margin-top: 90px;
}

.brand-name a {
	color: inherit;
	text-decoration: none;
}

.brand-name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--wp--preset--color--base);
	margin: 0;
	line-height: 1.3;
}

.brand-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal);
	margin: 0;
	font-weight: 600;
}

.main-navigation .wp-block-navigation-item__content {
	font-size: 0.875rem;
	font-weight: 500;
	padding: 6px 5px;
	position: relative;
	border-radius: 2px;
	transition: background-color 0.2s ease;
}

.main-navigation a.wp-block-navigation-item__content,
.main-navigation a.wp-block-navigation-item__content:link,
.main-navigation a.wp-block-navigation-item__content:visited,
.main-navigation a.wp-block-navigation-item__content:hover,
.main-navigation a.wp-block-navigation-item__content:active {
	color: var(--wp--preset--color--base) !important;
}

.main-navigation .wp-block-navigation-item__content:hover {
	background-color: rgba(30, 124, 116, 0.35);
}

.main-navigation .current-menu-item .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 5px;
	right: 5px;
	bottom: 2px;
	height: 2px;
	background-color: var(--wp--preset--color--teal);
}

.main-navigation .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--base);
}

/* === mobile navigation overlay panel (opened hamburger menu) === */
.main-navigation .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--navy-deep) !important;
	color: var(--wp--preset--color--base) !important;
}

.main-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--base) !important;
}

.main-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	max-width: 100%;
	box-sizing: border-box;
}

.main-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	row-gap: 0.4rem;
	width: 100%;
}

.main-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.main-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	font-size: 1.1rem;
	padding: 0.65rem 0;
}

.main-navigation .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--base);
	outline-offset: 2px;
}

.main-navigation.wp-block-navigation {
	gap: 2px;
	column-gap: 2px;
}

.header-cta {
	flex-shrink: 0;
}

.header-phone {
	margin: 0;
	white-space: nowrap;
}

.header-phone a {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.header-phone a:hover {
	text-decoration: underline;
}

.header-cta .wp-element-button {
	background: var(--wp--preset--color--teal);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	padding-top: 0.7rem;
	padding-bottom: 0.7rem;
	padding-left: 1.1rem;
	padding-right: 1.1rem;
	white-space: nowrap;
}

.header-cta .wp-element-button:hover {
	background: var(--wp--preset--color--teal-deep);
}
/* === buttons === */
.wp-block-button__link {
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.is-style-outline .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--contrast);
}

.is-style-outline .wp-element-button:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.button-subtext {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--slate);
	margin: 0.4rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link {
		transition: none;
	}
}
/* === hero === */
.hero-actions {
	column-gap: var(--wp--preset--spacing--40);
	row-gap: var(--wp--preset--spacing--20);
	align-items: flex-start;
}

.placeholder-frame {
	background: var(--wp--preset--color--base-tint);
	border-radius: 2px;
	padding: var(--wp--preset--spacing--40);
	text-align: center;
	row-gap: var(--wp--preset--spacing--10);
}

.placeholder-frame .icon-line img {
	width: 40px;
	height: 40px;
	opacity: 0.7;
}

.placeholder-frame .placeholder-label {
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--slate);
	margin: 0;
}

.placeholder-hero {
	aspect-ratio: 16 / 15;
	width: 100%;
}

.placeholder-landscape {
	aspect-ratio: 32 / 15;
	width: 100%;
}

.placeholder-consultation {
	aspect-ratio: 16 / 9;
	width: 100%;
}

.placeholder-portrait {
	aspect-ratio: 4 / 5;
	width: 100%;
}

.placeholder-square {
	aspect-ratio: 1 / 1;
	width: 100%;
}
/* === hospitals === */
.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	padding: var(--wp--preset--spacing--30);
}

.hospitals-section .is-style-card,
.contact-section .is-style-card {
	--wp--style--block-gap: 0.6rem;
}
/* === conditions === */
.icon-badge {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--wp--preset--color--teal-tint);
	align-items: center;
	justify-content: center;
}

.icon-badge .icon-line img {
	width: 22px;
	height: 22px;
}

.conditions-section .is-style-card {
	--wp--style--block-gap: 0.5rem;
}
/* === expect === */
.expect-items .icon-line img {
	width: 34px;
	height: 34px;
	margin-bottom: var(--wp--preset--spacing--10);
}

.expect-items .wp-block-column p {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}
/* === symptoms === */
.is-style-tick-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	row-gap: var(--wp--preset--spacing--10);
}

.is-style-tick-list li {
	position: relative;
	padding-left: 1.75rem;
}

.is-style-tick-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.05em;
	color: var(--wp--preset--color--teal-deep);
	font-weight: 700;
}
/* === insurers === */
.insurer-row {
	row-gap: var(--wp--preset--spacing--20);
	column-gap: var(--wp--preset--spacing--20);
}

.is-style-logo-tile {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	min-width: 130px;
}

.is-style-logo-tile p {
	margin: 0;
	color: var(--wp--preset--color--slate);
	font-size: 0.9375rem;
	font-weight: 500;
	text-align: center;
}
/* === about === */
.about-section h2 {
	margin-top: 0;
}
/* === contact === */
.contact-section .is-style-card h3 {
	margin-top: 0;
}

.contact-section .is-style-card p,
.site-footer p {
	overflow-wrap: anywhere;
}
/* === cta-strip === */
.is-style-cta-light .wp-element-button {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--navy-deep);
}

.is-style-cta-light .wp-element-button:hover {
	background: var(--wp--preset--color--teal-tint);
	color: var(--wp--preset--color--navy-deep);
}
/* === footer === */
.site-footer .footer-brand-name {
	color: var(--wp--preset--color--base);
}

.site-footer .footer-brand-title {
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9FB4C4;
	margin-top: 0.3rem;
}

.site-footer .footer-heading {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9FB4C4;
	margin-bottom: 0.9rem;
}

.site-footer a {
	color: var(--wp--preset--color--base);
}

.site-footer a:hover {
	color: var(--wp--preset--color--teal-tint);
}

.site-footer .footer-navigation .wp-block-navigation-item__content {
	padding: 0.2rem 0;
	font-size: 0.9375rem;
}

.footer-legal {
	color: #9FB4C4;
}

.footer-legal p {
	margin: 0;
}

/* mobile only: tighten vertical rhythm across the footer — links within the
   same group sit close together, groups get a bit more breathing room, and
   the trailing Spacer block is collapsed since footer-legal's own margin
   now provides that separation. Wording, links, colours and order untouched. */
@media (max-width: 600px) {
	.site-footer .wp-block-columns {
		row-gap: 22px;
	}

	.site-footer .wp-block-column {
		--wp--style--block-gap: 8px;
	}

	.site-footer .footer-heading {
		margin-bottom: 9px;
	}

	.site-footer .footer-navigation,
	.site-footer .footer-navigation .wp-block-navigation__container {
		gap: 7px;
	}

	.site-footer .footer-navigation .wp-block-navigation-item__content {
		padding: 0.15rem 0;
		line-height: 1.4;
	}

	.site-footer > .wp-block-spacer {
		height: 0 !important;
		margin-top: 0 !important;
	}

	.footer-legal {
		margin-top: 20px;
	}

	.footer-legal p {
		line-height: 1.4;
	}
}
/* === icons === */
/* === services page === */
.hero-xray-image {
	margin: 0;
}

.hero-xray-image img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	object-position: 75% center;
	border-radius: 4px;
	display: block;
}

.services-grid-row .is-style-card {
	--wp--style--block-gap: 0.35rem;
	padding: var(--wp--preset--spacing--20);
}

.services-grid-row .icon-line img {
	width: 28px;
	height: 28px;
}

.services-grid-row .is-style-card h3 a {
	color: inherit;
	text-decoration: none;
}

.services-grid-row .is-style-card h3 a:hover {
	text-decoration: underline;
}

.assessment-card {
	display: flex;
	align-items: flex-start;
	column-gap: var(--wp--preset--spacing--20);
}

.assessment-card .icon-line img {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.referral-column h3 {
	margin-top: 0;
}

.services-cta-band .cta-text {
	flex: 1 1 420px;
}

.services-cta-band .wp-block-buttons {
	flex-shrink: 0;
}

/* === responsive === */
@media (max-width: 782px) {
	.hero-section .wp-block-columns,
	.symptoms-section .wp-block-columns,
	.about-section .wp-block-columns {
		flex-wrap: wrap;
	}

	.hero-section .wp-block-column,
	.symptoms-section .wp-block-column,
	.about-section .wp-block-column {
		flex-basis: 100% !important;
	}

	.about-section .wp-block-columns {
		flex-direction: column-reverse;
	}

	.placeholder-hero {
		aspect-ratio: 16 / 10;
	}

	.expect-items {
		flex-wrap: wrap;
	}

	.expect-items .wp-block-column {
		flex-basis: 45% !important;
	}

	.services-grid-row,
	.assessment-row {
		flex-wrap: wrap;
	}

	.services-grid-row .wp-block-column,
	.assessment-row .wp-block-column {
		flex-basis: 45% !important;
	}

	.placeholder-xray {
		aspect-ratio: 16 / 10;
	}

	.services-cta-band {
		flex-direction: column;
		align-items: flex-start !important;
	}

	.header-cta .wp-element-button {
		padding-left: 1.1rem;
		padding-right: 1.1rem;
	}
}

@media (max-width: 600px) {
	.services-grid-row .wp-block-column,
	.assessment-row .wp-block-column {
		flex-basis: 100% !important;
	}

	.services-cta-band {
		justify-content: flex-start !important;
		row-gap: 24px !important;
	}

	.services-cta-band .cta-text {
		flex: 0 0 auto !important;
		height: auto !important;
		min-height: 0 !important;
		width: 100%;
	}

	.services-cta-band .wp-block-buttons {
		width: 100%;
	}

	.conditions-grid-wrap {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
		row-gap: 12px;
	}

	.conditions-grid-wrap > h2,
	.conditions-grid-wrap > .wp-block-spacer:first-of-type {
		grid-column: 1 / -1;
	}

	.conditions-grid-wrap .services-grid-row {
		display: contents;
	}

	.conditions-grid-wrap .services-grid-row + .wp-block-spacer {
		display: none;
	}

	.services-grid-row .wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
		min-width: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
	}

	.services-grid-row .is-style-card {
		padding: 15px !important;
		box-sizing: border-box;
	}

	.services-grid-row .is-style-card > * {
		margin-top: 8px !important;
	}

	.services-grid-row .is-style-card > *:first-child {
		margin-top: 0 !important;
	}

	.services-grid-row .icon-line img {
		width: 22px !important;
		height: 22px !important;
	}

	.services-grid-row .is-style-card h3.wp-block-heading {
		font-size: 17px !important;
		line-height: 1.3 !important;
	}

	.services-grid-row .is-style-card p {
		font-size: 14px !important;
		line-height: 1.4 !important;
		overflow-wrap: anywhere;
	}

	.assessment-row {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
		row-gap: 12px;
	}

	.assessment-row .wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
		min-width: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
	}

	.assessment-row .is-style-card {
		padding: 13px !important;
		box-sizing: border-box;
	}

	.assessment-card {
		flex-direction: column !important;
		align-items: flex-start !important;
		row-gap: 8px !important;
	}

	.assessment-card .icon-line img {
		width: 24px !important;
		height: 24px !important;
	}

	.assessment-card .wp-block-group {
		--wp--style--block-gap: 6px;
	}

	.assessment-card h3.wp-block-heading {
		font-size: 16.5px !important;
		line-height: 1.25 !important;
	}

	.assessment-card p {
		font-size: 14px !important;
		line-height: 1.4 !important;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 340px) {
	.conditions-grid-wrap {
		grid-template-columns: 1fr;
	}

	.assessment-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.header-phone {
		display: none;
	}
}

/* === inflammatory arthritis page === */
.ia-cards-row .is-style-card {
	--wp--style--block-gap: 0.4rem;
}

.is-style-callout {
	background: var(--wp--preset--color--teal-tint);
	border-left: 3px solid var(--wp--preset--color--teal);
	padding: var(--wp--preset--spacing--30);
}

.is-style-callout p {
	margin: 0;
	font-style: italic;
	color: var(--wp--preset--color--contrast);
}

.ia-checklist-columns .wp-block-column {
	--wp--style--block-gap: 0.4rem;
}

.cta-split-band .cta-text-block {
	flex: 1 1 420px;
}

.cta-split-band .wp-block-buttons {
	flex-shrink: 0;
}

@media (max-width: 782px) {
	.ia-cards-row {
		flex-wrap: wrap;
	}

	.ia-cards-row .wp-block-column {
		flex-basis: 45% !important;
	}

	.cta-split-band {
		flex-direction: column;
		align-items: flex-start !important;
	}

	.cta-split-band .cta-text-block {
		flex: 0 0 auto;
	}
}

@media (max-width: 600px) {
	.ia-cards-row .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* === clinics page === */
.clinic-photo img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.switchboard-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--slate);
	margin: 0 0 2px;
}

.switchboard-number {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--slate);
	margin: 0 0 var(--wp--preset--spacing--20);
}

.switchboard-number a {
	color: var(--wp--preset--color--slate);
}

.maps-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--teal-deep);
	text-decoration: none;
}

.maps-link:hover {
	text-decoration: underline;
}

.maps-link img {
	width: 13px;
	height: 13px;
}

.practice-contact-highlight {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	margin: 0 0 4px;
}

.practice-contact-highlight a {
	color: inherit;
}

/* === fees page === */
.fee-cards-row .is-style-card {
	--wp--style--block-gap: 0.4rem;
	padding: var(--wp--preset--spacing--30);
}

.fee-price {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--teal-deep);
	margin: 0;
	line-height: 1.1;
}

.fee-info-panel {
	background: var(--wp--preset--color--teal-tint);
	border-radius: 4px;
	padding: var(--wp--preset--spacing--40);
}

.fee-note {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 782px) {
	.fee-cards-row {
		flex-wrap: wrap;
	}

	.fee-cards-row > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* === contact page === */
.contact-hospitals-row .is-style-card {
	--wp--style--block-gap: 0.35rem;
}

.contact-guide-columns > .wp-block-column {
	--wp--style--block-gap: 0.35rem;
}

@media (max-width: 782px) {
	.contact-hospitals-row {
		flex-wrap: wrap;
	}

	.contact-hospitals-row > .wp-block-column {
		flex-basis: 100% !important;
	}

	.contact-guide-columns {
		flex-wrap: wrap;
	}

	.contact-guide-columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* === contact page cards === */
.is-style-contact-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 3px;
	padding: var(--wp--preset--spacing--30);
}

.contact-cards-grid .is-style-contact-card {
	--wp--style--block-gap: 0.55rem;
}

.is-style-contact-icon-badge {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--teal-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.is-style-contact-icon-badge img {
	width: 20px;
	height: 20px;
}

.contact-cards-grid .wp-block-separator {
	margin: 4px 0;
	border-color: var(--wp--preset--color--border);
}

.contact-cards-grid .is-style-contact-card {
	display: flex;
	flex-direction: column;
}

.contact-cards-grid .is-style-contact-card h3 {
	min-height: 48px;
}

.contact-cards-grid .is-style-contact-card > p:first-of-type {
	min-height: 108px;
}

.contact-cards-grid .full-width-button {
	margin-top: auto;
}

.full-width-button,
.full-width-button .wp-block-button {
	width: 100%;
	margin: 0 0 4px;
}

.full-width-button .wp-element-button {
	display: block;
	width: 100%;
	text-align: center;
}

@media (max-width: 782px) {
	.contact-cards-grid {
		flex-wrap: wrap;
	}

	.contact-cards-grid > .wp-block-column {
		flex-basis: 46% !important;
	}
}

@media (max-width: 600px) {
	.contact-cards-grid > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* === home billing box === */
.contact-section .billing-box {
	background: var(--wp--preset--color--teal-tint);
	border-radius: 4px;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	--wp--style--block-gap: 2px;
}

.contact-section .billing-box h4 {
	margin: 0 0 4px;
	color: var(--wp--preset--color--slate);
}

@media (max-width: 600px) {
	.contact-section .billing-box {
		max-width: none !important;
		width: 100%;
	}
}

/* === joint & soft tissue injections page === */
.procedure-diagram {
	margin: 0 0 var(--wp--preset--spacing--20);
	text-align: center;
}

.procedure-diagram img {
	width: 100%;
	max-width: 220px;
	height: auto;
	margin: 0 auto;
}

@media (max-width: 782px) {
	.procedure-panels-row .wp-block-column {
		flex-basis: 100% !important;
	}
}

.step-number {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--wp--preset--color--teal);
}

.step-number p {
	color: var(--wp--preset--color--base);
	font-weight: 600;
	margin: 0;
}

.step-card {
	align-items: flex-start;
}

@media (max-width: 782px) {
	.steps-row .wp-block-column {
		flex-basis: 100% !important;
	}
}

.injection-photo-placeholder img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
	background-color: var(--wp--preset--color--base);
	border: 1px dashed var(--wp--preset--color--border);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354677A' stroke-width='1.2' opacity='0.45'%3E%3Cpath d='M4 8h3l1.5-2h7L17 8h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 48px 48px;
	display: block;
}

/* === osteoporosis & bone health page === */
.fracture-pathway-row {
	align-items: stretch;
}

.fracture-pathway-card {
	flex: 1 1 220px;
	text-align: center;
	background-color: var(--wp--preset--color--base);
}

.fracture-pathway-result {
	background-color: var(--wp--preset--color--teal-tint);
}

.fracture-pathway-operator {
	flex: 0 0 auto;
	width: 40px;
}

.fracture-pathway-operator p {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.75rem;
	color: var(--wp--preset--color--teal);
	margin: 0;
}

@media (max-width: 782px) {
	.fracture-pathway-row {
		flex-direction: column;
	}
	.fracture-pathway-operator {
		width: 100%;
	}
}

/* mobile only: the "flex: 1 1 220px" above sets a 220px flex-basis, which is
   read as a fixed HEIGHT once the row switches to a column direction — that
   is what was forcing each card to a tall, mostly-empty box. Override the
   flex sizing so each box is only as tall as its own content, and tighten
   the internal spacing so the diagram reads as a compact stacked equation. */
@media (max-width: 600px) {
	.fracture-pathway-row {
		gap: 0;
	}

	.fracture-pathway-card {
		flex: 0 1 auto;
		width: 100%;
		height: auto;
		min-height: 0;
		padding: 20px 18px;
		--wp--style--block-gap: 11px;
	}

	.fracture-pathway-card .is-style-eyebrow {
		font-size: 15px;
		line-height: 1.25;
	}

	.fracture-pathway-card > p:last-child {
		font-size: 14px;
		line-height: 1.4;
	}

	.fracture-pathway-operator {
		height: auto;
		min-height: 0;
		padding: 16px 0;
	}

	.fracture-pathway-operator p {
		font-size: 28px;
		line-height: 1;
		margin: 0;
	}
}

/* === home hero: mobile-only adjustments (≤600px) === */
@media (max-width: 600px) {
	.hero-section {
		padding-top: 20px !important;
		padding-bottom: 20px !important;
	}

	.hero-section .wp-block-column {
		padding: 20px !important;
		--wp--style--block-gap: 0.6rem;
	}

	.hero-section .wp-block-column > * {
		margin-top: 10px !important;
	}

	.hero-section .wp-block-column > *:first-child {
		margin-top: 0 !important;
	}

	.hero-section h1.wp-block-heading {
		font-size: 35px !important;
		line-height: 1.08 !important;
		margin-top: 8px !important;
	}

	.hero-section .wp-block-column p.has-medium-font-size {
		font-size: 16px !important;
		line-height: 1.45 !important;
		margin-top: 10px !important;
	}

	.hero-section .wp-block-column > p.has-link-color {
		margin-top: 6px !important;
	}

	.hero-section .wp-block-column .wp-block-spacer {
		height: 0px !important;
		margin-top: 0 !important;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
		row-gap: 8px;
		width: 100%;
	}

	.hero-section .hero-actions {
		margin-top: 14px !important;
	}

	.hero-actions .wp-block-buttons,
	.hero-actions .wp-block-button {
		width: 100% !important;
	}

	.hero-actions .wp-element-button {
		display: block;
		width: 100%;
		text-align: center;
		padding-top: 11px !important;
		padding-bottom: 11px !important;
	}
}

.mobile-hero-photo {
	display: none;
}

@media (max-width: 600px) {
	.mobile-hero-photo {
		display: block;
		margin-top: 16px;
	}

	.mobile-hero-photo-image img {
		display: block;
		width: 100%;
		aspect-ratio: 3 / 2;
		object-fit: cover;
		object-position: 78% 25%;
	}
}

/* === home contact section: mobile-only spacing (≤600px) === */
@media (max-width: 600px) {
	.contact-cards-section {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
	}

	.contact-cards-grid {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		column-gap: 12px !important;
		row-gap: 12px !important;
	}

	.contact-cards-grid > .wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
		min-width: 0;
	}

	.contact-cards-grid .is-style-contact-card {
		padding: 14px !important;
		min-height: 0 !important;
		box-sizing: border-box;
	}

	.contact-cards-grid .is-style-contact-card h3,
	.contact-cards-grid .is-style-contact-card > p:first-of-type {
		min-height: 0 !important;
	}

	.contact-cards-grid .is-style-contact-card h3 {
		font-size: 16px !important;
		line-height: 1.25 !important;
	}

	.contact-cards-grid .is-style-contact-card p {
		font-size: 14px !important;
		line-height: 1.35 !important;
		overflow-wrap: anywhere;
	}

	.contact-cards-grid .is-style-contact-icon-badge {
		width: 36px;
		height: 36px;
	}

	.contact-cards-grid .is-style-contact-icon-badge img {
		width: 16px;
		height: 16px;
	}

	.contact-cards-grid .is-style-contact-card > * {
		margin-top: 8px !important;
	}

	.contact-cards-grid .is-style-contact-card > *:first-child {
		margin-top: 0 !important;
	}

	.contact-cards-grid .full-width-button .wp-element-button {
		font-size: 14px !important;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}

/* fall back to a single column on extremely narrow screens */
@media (max-width: 340px) {
	.contact-cards-grid {
		grid-template-columns: 1fr;
	}
}

/* === home "what to expect" section: mobile-only compact layout (≤600px) === */
@media (max-width: 600px) {
	.expect-section {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
	}

	.expect-section > h2.wp-block-heading {
		font-size: 28px !important;
		line-height: 1.25 !important;
	}

	.expect-section > .wp-block-spacer {
		height: 12px !important;
	}

	.expect-items {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		column-gap: 12px;
		row-gap: 12px;
	}

	.expect-items .wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
		min-width: 0;
		min-height: 0 !important;
		padding: 15px !important;
		box-sizing: border-box;
	}

	.expect-items .wp-block-column > * {
		margin-top: 8px !important;
	}

	.expect-items .wp-block-column > *:first-child {
		margin-top: 0 !important;
	}

	.expect-items .icon-line img {
		width: 24px !important;
		height: 24px !important;
	}

	.expect-items .wp-block-column p {
		font-size: 14px !important;
		line-height: 1.4 !important;
		overflow-wrap: anywhere;
	}
}

/* === home "Conditions & Services" section: mobile-only adjustments (≤600px) === */
@media (max-width: 600px) {
	.conditions-section {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
	}

	.conditions-section > .wp-block-spacer {
		height: 12px !important;
		margin-top: 0 !important;
	}

	.conditions-section .wp-block-columns.alignwide {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		column-gap: 12px !important;
		row-gap: 12px !important;
	}

	.conditions-section .wp-block-columns.alignwide > .wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
		min-width: 0;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 15px !important;
		box-sizing: border-box;
	}

	.conditions-section .wp-block-columns.alignwide > .wp-block-column > * {
		margin-top: 8px !important;
	}

	.conditions-section .wp-block-columns.alignwide > .wp-block-column > *:first-child {
		margin-top: 0 !important;
	}

	.conditions-section .icon-badge {
		width: 36px;
		height: 36px;
	}

	.conditions-section .icon-badge .icon-line img {
		width: 18px;
		height: 18px;
	}

	.conditions-section .wp-block-columns.alignwide h3.wp-block-heading {
		font-size: 17px !important;
		line-height: 1.3 !important;
	}

	.conditions-section .wp-block-columns.alignwide p {
		font-size: 14px !important;
		line-height: 1.4 !important;
		overflow-wrap: anywhere;
	}
}

/* === clinics page mobile === */
@media (max-width: 600px) {
	body.page-id-65 h1.wp-block-heading {
		font-size: 35px !important;
		line-height: 1.08 !important;
		margin-bottom: 10px !important;
	}

	body.page-id-65 .clinic-photo img {
		height: 160px !important;
	}

	body.page-id-65 #sloane-hospital .wp-block-columns.alignwide,
	body.page-id-65 #chelsfield-park-hospital .wp-block-columns.alignwide {
		row-gap: 16px !important;
	}

	body.page-id-65 .insurance-section {
		padding-top: 30px !important;
		padding-bottom: 30px !important;
	}

	body.page-id-65 .insurance-section h2 {
		font-size: 18px !important;
		line-height: 1.3 !important;
	}

	body.page-id-65 .insurer-row {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr);
		column-gap: 12px !important;
		row-gap: 14px !important;
	}

	body.page-id-65 .is-style-logo-tile {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		min-width: 0 !important;
		padding: 4px !important;
		border: none !important;
	}

	body.page-id-65 .is-style-logo-tile img {
		width: 100% !important;
		max-width: 90px;
		height: 40px !important;
		object-fit: contain;
	}
}

/* === fees page mobile === */
@media (max-width: 600px) {
	body.page-id-69 .fees-intro-section,
	body.page-id-69 .selfpay-section,
	body.page-id-69 .included-section,
	body.page-id-69 .insurance-section,
	body.page-id-69 .cancellations-section,
	body.page-id-69 .questions-section {
		padding-top: 32px !important;
		padding-bottom: 32px !important;
	}

	body.page-id-69 .selfpay-section > .wp-block-spacer,
	body.page-id-69 .included-section > .wp-block-spacer,
	body.page-id-69 .insurance-section > .wp-block-spacer,
	body.page-id-69 .questions-section > .wp-block-spacer {
		height: 16px !important;
	}

	body.page-id-69 .fee-cards-row {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		column-gap: 12px !important;
		row-gap: 12px !important;
	}

	body.page-id-69 .fee-cards-row > .wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
		min-width: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
	}

	body.page-id-69 .fee-cards-row > .wp-block-column:nth-child(3) {
		grid-column: 1 / -1;
	}

	body.page-id-69 .fee-cards-row .is-style-card {
		padding: 15px !important;
	}

	body.page-id-69 .fee-cards-row h3.wp-block-heading {
		font-size: 17px !important;
		line-height: 1.25 !important;
	}

	body.page-id-69 .fee-price {
		font-size: 28px !important;
	}

	body.page-id-69 .fee-cards-row p:not(.fee-price) {
		font-size: 15px !important;
		line-height: 1.5 !important;
	}

	body.page-id-69 .fee-info-panel {
		padding: 20px !important;
	}

	body.page-id-69 .insurer-row {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr);
		column-gap: 12px !important;
		row-gap: 14px !important;
	}

	body.page-id-69 .is-style-logo-tile {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		min-width: 0 !important;
		padding: 4px !important;
		border: none !important;
	}

	body.page-id-69 .is-style-logo-tile img {
		width: 100% !important;
		max-width: 90px;
		height: 40px !important;
		object-fit: contain;
	}
}

@media (max-width: 340px) {
	body.page-id-69 .fee-cards-row {
		grid-template-columns: 1fr;
	}
}

/* === fees page mobile typography === */
@media (max-width: 600px) {
	body.page-id-69 h1.wp-block-heading {
		font-size: 35px !important;
		line-height: 1.08 !important;
	}

	body.page-id-69 h2.wp-block-heading {
		font-size: 27px !important;
		line-height: 1.12 !important;
	}

	body.page-id-69 .fee-info-panel h3.wp-block-heading {
		font-size: 19px !important;
		line-height: 1.2 !important;
	}

	body.page-id-69 .fees-intro-section > h1.wp-block-heading + p,
	body.page-id-69 .insurance-section > h2.wp-block-heading + p,
	body.page-id-69 .cancellations-section > h2.wp-block-heading + p,
	body.page-id-69 .questions-section > h2.wp-block-heading + p {
		margin-top: 12px !important;
	}

	body.page-id-69 .cta-text-block {
		gap: 12px !important;
	}

	body.page-id-69 .fees-intro-section p,
	body.page-id-69 .fee-info-panel p,
	body.page-id-69 .included-section li,
	body.page-id-69 .included-section > p,
	body.page-id-69 .insurance-section > p,
	body.page-id-69 .cancellations-section p,
	body.page-id-69 .questions-section > p:not(.practice-contact-highlight),
	body.page-id-69 .cta-text-block p {
		font-size: 15px !important;
		line-height: 1.5 !important;
	}
}

/* === contact page email line breaks (mobile only) === */
/* default (desktop/tablet): keep the original single-line rendering — the
   <wbr> below must not introduce a wrap opportunity outside mobile */
body.page-id-72 .contact-cards-grid a[href="mailto:secretary@bromleyrheumatology.com"] br,
body.page-id-72 .contact-cards-grid a[href="mailto:info@avondalemedical.co.uk"] br {
	display: none;
}

body.page-id-72 .contact-cards-grid a[href="mailto:secretary@bromleyrheumatology.com"] span,
body.page-id-72 .contact-cards-grid a[href="mailto:info@avondalemedical.co.uk"] span {
	white-space: nowrap;
}

@media (max-width: 600px) {
	body.page-id-72 .contact-cards-grid a[href="mailto:secretary@bromleyrheumatology.com"],
	body.page-id-72 .contact-cards-grid a[href="mailto:info@avondalemedical.co.uk"] {
		display: inline-block;
		line-height: 1.3;
		max-width: 100%;
	}

	body.page-id-72 .contact-cards-grid a[href="mailto:secretary@bromleyrheumatology.com"] br,
	body.page-id-72 .contact-cards-grid a[href="mailto:info@avondalemedical.co.uk"] br {
		display: block;
	}

	/* the deliberate break after "secretary@"/"info@" always applies; the
	   domain itself only wraps further if the card is too narrow to hold it
	   on one line, and it wraps at the <wbr> before the TLD (a sensible
	   break point) rather than an arbitrary mid-word split */
	body.page-id-72 .contact-cards-grid a[href="mailto:secretary@bromleyrheumatology.com"] span,
	body.page-id-72 .contact-cards-grid a[href="mailto:info@avondalemedical.co.uk"] span {
		display: inline-block;
		max-width: 100%;
		white-space: normal;
		overflow-wrap: normal !important;
		word-break: normal !important;
	}
}

/* === contact page: align separator lines within each row of cards (mobile only) ===
   the heading + intro text above each card's separator is wrapped in a
   ".contact-card-top" group; giving each row's pair a shared min-height
   (sized to the taller card's natural content) pushes the separator down
   to the same position in both cards, without touching desktop/tablet or
   any wording, links, colours or icons */
@media (max-width: 600px) {
	body.page-id-72 .contact-cards-grid .contact-card-top {
		box-sizing: border-box;
	}

	body.page-id-72 .contact-cards-grid .row1-top {
		min-height: 186px;
	}

	body.page-id-72 .contact-cards-grid .row2-top {
		min-height: 167px;
	}
}

/* below ~340px the cards fall back to a single column, so equal-height
   separator alignment between pairs is no longer required */
@media (max-width: 340px) {
	body.page-id-72 .contact-cards-grid .row1-top,
	body.page-id-72 .contact-cards-grid .row2-top {
		min-height: 0;
	}
}
