/*
Theme Name: Wellness Directory
Theme URI: https://melbourne-wellness-directory.test
Author: ArsenalTech Pvt. Ltd. 
Description: Presentation-only companion theme for the Wellness Directory Core plugin. Templates and assets, no business logic — all directory data is read through the plugin's helper functions, and the design tokens come from the plugin's stylesheet so the theme and the directory screens stay one product.
Version: 0.3.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellness-directory
Tags: directory, business, custom-menu, translation-ready
*/

/* Tokens come from the plugin's wd-front.css, which this stylesheet depends
   on. The fallbacks below keep the theme presentable if it is ever activated
   without the plugin. */

/* Element defaults sit in the `base` layer that wd-front.css opens, below the
   plugin's `components` and `utilities`. Unlayered CSS beats layered CSS at any
   specificity, so an unlayered `a { color }` here would repaint the label of
   every plugin component built on a link � buttons, tabs, chips � and a white
   label on a blue fill would come out blue on blue. Theme *component* rules
   stay unlayered below, where they are meant to win. */
@layer base {

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--wd-paper, #f5f8fc);
	color: var(--wd-text, #2e3d50);
	font-family: var(--wd-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	color: var(--wd-ink, #0a1120);
	line-height: 1.2;
	letter-spacing: 0;
}

/* a {
	color: var(--wd-primary, #0969f9);
} */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wd-primary, #0969f9);
	outline-offset: 2px;
}

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

}

.wd-container {
	width: 100%;
	max-width: 1510px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 5vw, 2.5rem);
}

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

.wd-site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--wd-border, #dbe5f1);
	background: color-mix(in srgb, var(--wd-cream, #fff) 94%, transparent);
	box-shadow: 0 10px 30px rgba(10, 17, 32, 0.04);
	backdrop-filter: blur(18px);
}

.wd-site-header__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(0.65rem, 1.7vw, 1.2rem);
	min-height: 4rem;
	padding-block: 0.55rem;
}

.wd-site-title {
	margin: 0;
	flex: 0 0 auto;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0;
}

.wd-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wd-ink, #0a1120);
	text-decoration: none;
}

.wd-site-brand__logo,
.wd-site-brand__mark {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: var(--wd-radius-sm, 8px);
	background: linear-gradient(140deg, var(--wd-primary, #0969f9), var(--wd-primary-dark, #0052c8));
	color: #fff;
	box-shadow: var(--wd-shadow-sm, 0 1px 2px rgba(10, 17, 32, 0.06));
	overflow: hidden;
}

.wd-site-brand__logo {
	background: var(--wd-cream, #fff);
	border: 1px solid var(--wd-border, #dbe5f1);
}

.wd-site-brand__logo .custom-logo-link {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.wd-site-brand__logo .custom-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.2rem;
}

.wd-site-brand__mark {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0;
}

.wd-site-brand__name {
	white-space: nowrap;
	max-width: 18rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wd-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-nav a {
	color: var(--wd-text, #2e3d50);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.wd-nav a:hover,
.wd-nav a:focus-visible {
	color: var(--wd-primary-dark, #0052c8);
}

.wd-nav .current-menu-item > a {
	color: var(--wd-primary-dark, #0052c8);
}

.wd-site-header__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	font-size: 0.95rem;
}

/* ---------------------------------------------------------------------------
 * Main
 * ------------------------------------------------------------------------ */

.wd-main {
	padding-block: clamp(2rem, 4vw, 3.25rem);
	min-height: 60vh;
}

/* The inner-page titlebar: the same gradient band as the home hero, one third
   the height, directly under a solid header. Every screen that prints a page
   heading gets it, so an archive, a term page and an ordinary page open the
   same way. Its ground is pinned to the light-mode brand values for the same
   reason the hero's is — it is always a dark surface. */
.wd-page-header {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-block: 0 clamp(1.75rem, 4vw, 2.75rem);
	padding-block: clamp(1.85rem, 4.5vw, 3rem);
	padding-inline: clamp(1rem, 5vw, 2.5rem);
	color: #fff;
	background:
		radial-gradient(80% 140% at 10% 0%, rgba(184, 50, 128, 0.3), transparent 60%),
		linear-gradient(135deg, #0969f9 0%, #0a3a8f 52%, #0a1120 100%);
}

/* The heading and its line of orientation stay on the container's grid even
   though the band behind them does not. */
.wd-page-header > * {
	max-width: 1510px;
	margin-inline: auto;
}

.wd-page-header h1 {
	margin: 0 0 0.4rem;
	color: #fff;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 800;
}

.wd-page-header p {
	margin: 0;
	color: color-mix(in srgb, #fff 78%, transparent);
	max-width: 68ch;
}

.wd-page-header a {
	color: #fff;
}

/* A titlebar sits flush under the header, so the main column's top padding
   would be a gap between two coloured bands. */
.wd-main:has(.wd-page-header) {
	padding-top: 0;
}

.wd-entry + .wd-entry {
	margin-top: 2rem;
	border-top: 1px solid var(--wd-border, #dbe5f1);
	padding-top: 2rem;
}

.wd-entry__title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.wd-entry__meta {
	margin: 0 0 0.75rem;
	color: var(--wd-text-muted, #657489);
	font-size: 0.9rem;
}

.wd-entry__content {
	max-width: 68ch;
}

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

/* ---------------------------------------------------------------------------
 * Footer
 *
 * Two shapes. The full one is a four-part grid — brand and a search box, two
 * columns of the directory's own depth, and a card asking for a listing — on a
 * dark ground so the page ends somewhere rather than fading out. The minimal
 * one, for anybody signed in, is the bottom bar and nothing else.
 * ------------------------------------------------------------------------ */

.wd-site-footer {
	position: relative;
	margin-top: clamp(2.5rem, 7vw, 5rem);
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.92rem;
	background:
		radial-gradient(ellipse 60% 70% at 10% 0%, rgba(var(--wd-primary-rgb), 0.35), transparent 62%),
		radial-gradient(ellipse 50% 60% at 92% 100%, rgba(var(--wd-tertiary-rgb), 0.22), transparent 60%),
		#0a1120;
}

/* The hairline that separates the page from the footer, drawn in the brand
   rather than in grey, so the seam is deliberate. */
.wd-site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--wd-primary), var(--wd-secondary), var(--wd-tertiary));
}

.wd-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 3vw, 2.5rem);
}

.wd-footer__brand .wd-site-brand {
	color: #fff;
}

.wd-footer__brand .wd-site-brand__name {
	color: #fff;
}

.wd-footer__pitch {
	margin: 1rem 0 1.35rem;
	max-width: 40ch;
	color: rgba(255, 255, 255, 0.66);
	line-height: 1.6;
}

.wd-footer__search {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	max-width: 24rem;
	padding: 0.35rem 0.35rem 0.35rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--wd-radius-pill, 999px);
	background: rgba(255, 255, 255, 0.06);
}

.wd-footer__search svg {
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.55);
}

.wd-footer__search input {
	width: 100%;
	height: 2.35rem;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	outline: none;
}

.wd-footer__search input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.wd-footer__search button {
	flex: 0 0 auto;
	height: 2.35rem;
	padding-inline: 1.1rem;
	border: 0;
	border-radius: var(--wd-radius-pill, 999px);
	background: var(--wd-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 160ms var(--wd-ease);
}

.wd-footer__search button:hover {
	background: var(--wd-primary-dark);
}

.wd-footer__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 1.5rem 2rem;
}

.wd-footer__column h2 {
	margin: 0 0 0.75rem;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wd-footer__column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-footer__column li + li {
	margin-top: 0.45rem;
}

.wd-footer__column a {
	color: rgba(255, 255, 255, 0.68);
	text-decoration: none;
	transition: color 140ms var(--wd-ease);
}

.wd-footer__column a:hover,
.wd-footer__column a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.wd-footer__cta {
	align-self: start;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--wd-radius-lg, 16px);
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.wd-footer__cta-eyebrow {
	margin: 0 0 0.35rem;
	color: var(--wd-primary-neon, #2f7dff);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wd-footer__cta h2 {
	margin: 0 0 0.5rem;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.25;
}

.wd-footer__cta p {
	margin: 0 0 1.1rem;
	color: rgba(255, 255, 255, 0.66);
	line-height: 1.55;
}

.wd-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	padding-block: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.85rem;
}

.wd-site-footer--minimal .wd-footer__bottom {
	border-top: 0;
}

.wd-footer__copy {
	margin: 0;
}

.wd-footer__minilinks,
.wd-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.15rem;
	margin: 0;
}

.wd-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-footer__minilinks a,
.wd-footer__legal a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.wd-footer__minilinks a:hover,
.wd-footer__legal a:hover {
	color: #fff;
}

.wd-footer__contact {
	margin-left: auto;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.wd-footer__contact:hover {
	color: #fff;
}

@media (max-width: 1020px) {

	.wd-footer__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.wd-footer__cta {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {

	.wd-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.wd-footer__contact {
		margin-left: 0;
	}
}

/* ---------------------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------------------ */

.wd-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: clamp(2rem, 5vw, 3rem);
}

.wd-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding-inline: 0.6rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: 999px;
	color: var(--wd-text, #2e3d50);
	text-decoration: none;
}

.wd-pagination .page-numbers:hover {
	border-color: var(--wd-mid, #a8b6c8);
}

.wd-pagination .page-numbers.current {
	background: var(--wd-primary, #0969f9);
	border-color: var(--wd-primary, #0969f9);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Utilities
 * ------------------------------------------------------------------------ */

.screen-reader-text {
	position: absolute !important;
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

.skip-link:focus {
	position: absolute;
	top: 8px;
	left: 8px;
	clip-path: none;
	width: auto;
	height: auto;
	padding: 10px 16px;
	background: var(--wd-cream, #fff);
	z-index: 100;
}

/* ---------------------------------------------------------------------------
 * Header: nav, search, account
 * ------------------------------------------------------------------------ */

.wd-site-header__inner {
	flex-wrap: nowrap;
}

.wd-nav--primary {
	flex: 0 1 auto;
	min-width: 0;
}

.wd-nav ul.wd-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A search box in the header is how somebody uses a directory. It shrinks
   before the navigation does, and disappears before the brand. */
.wd-headersearch {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 19rem;
	min-width: 13rem;
	max-width: 29rem;
	margin-left: auto;
}

.wd-headersearch svg {
	position: absolute;
	left: 0.75rem;
	width: 1rem;
	height: 1rem;
	color: var(--wd-text-soft, #8a96a7);
	pointer-events: none;
}

.wd-headersearch input {
	width: 100%;
	height: 2.5rem;
	padding: 0 0.9rem 0 2.25rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: 999px;
	background: var(--wd-cream, #fff);
	color: inherit;
	font: inherit;
	font-size: 0.85rem;
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--wd-cream, #fff) 75%, transparent);
}

.wd-headersearch input:focus-visible {
	border-color: var(--wd-primary, #0969f9);
	outline: none;
	box-shadow: var(--wd-focus, 0 0 0 3px rgba(0, 194, 255, 0.3));
}

.wd-site-header__actions {
	margin-left: 0;
	flex: 0 0 auto;
}

/* The account menu is a <details>: it opens, closes and traps focus correctly
   with no script, and it still works if the script never loads. */
.wd-account {
	position: relative;
}

.wd-account > summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.55rem;
	padding: 0.2rem 0.7rem 0.2rem 0.25rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: 999px;
	background: var(--wd-cream, #fff);
	cursor: pointer;
	list-style: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.wd-account > summary::-webkit-details-marker {
	display: none;
}

.wd-account__avatar {
	display: grid;
	place-items: center;
	width: 2.05rem;
	height: 2.05rem;
	border-radius: 999px;
	background: var(--wd-primary, #0969f9);
	color: #fff;
	font-size: 0.7rem;
	letter-spacing: 0.02em;
}

.wd-account__name {
	max-width: 9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wd-account__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	z-index: 40;
	min-width: 12rem;
	padding: 0.4rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius, 14px);
	background: var(--wd-cream, #fff);
	box-shadow: var(--wd-shadow-lg, 0 18px 48px rgba(10, 17, 32, 0.13));
}

.wd-account__panel ul {
	margin: 0 0 0.4rem;
	padding: 0;
	list-style: none;
}

.wd-account__panel a {
	display: block;
	padding: 0.55rem 0.7rem;
	border-radius: var(--wd-radius-sm, 8px);
	color: var(--wd-text, #2e3d50);
	text-decoration: none;
	font-size: 0.9rem;
}

.wd-account__panel a:hover,
.wd-account__panel a:focus-visible {
	background: var(--wd-surface, #eaf1fb);
}

.wd-account__logout {
	display: block;
	border-top: 1px solid var(--wd-border, #dbe5f1);
	padding-top: 0.5rem !important;
	color: var(--wd-text-muted, #657489) !important;
}

/* The burger only exists below the breakpoint. */
.wd-burger {
	display: none;
	position: relative;
}

.wd-burger > summary {
	display: grid;
	place-items: center;
	width: 2.55rem;
	height: 2.55rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius-sm, 8px);
	background: var(--wd-cream, #fff);
	cursor: pointer;
	list-style: none;
}

.wd-burger > summary::-webkit-details-marker {
	display: none;
}

.wd-burger__bars,
.wd-burger__bars::before,
.wd-burger__bars::after {
	display: block;
	width: 1.05rem;
	height: 2px;
	border-radius: 2px;
	background: var(--wd-ink, #0a1120);
}

.wd-burger__bars {
	position: relative;
}

.wd-burger__bars::before,
.wd-burger__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.wd-burger__bars::before {
	top: -5px;
}

.wd-burger__bars::after {
	top: 5px;
}

.wd-burger__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	z-index: 40;
	min-width: 13rem;
	padding: 0.5rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius, 14px);
	background: var(--wd-cream, #fff);
	box-shadow: var(--wd-shadow-lg, 0 18px 48px rgba(10, 17, 32, 0.13));
}

.wd-burger__panel ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-burger__panel a {
	display: block;
	padding: 0.55rem 0.7rem;
	border-radius: var(--wd-radius-sm, 8px);
	text-decoration: none;
	font-size: 0.95rem;
}

.wd-burger__panel a:hover,
.wd-burger__panel a:focus-visible {
	background: var(--wd-surface, #eaf1fb);
}

/* ---------------------------------------------------------------------------
 * Responsive header
 * ------------------------------------------------------------------------ */

@media (max-width: 1000px) {
	.wd-nav--primary {
		display: none;
	}

	.wd-burger {
		display: block;
	}
}

@media (max-width: 860px) {
	.wd-site-brand__name {
		max-width: 12rem;
	}
}

@media (max-width: 720px) {
	.wd-headersearch {
		display: none;
	}

	.wd-site-brand__name,
	.wd-account__name,
	.wd-hide-sm {
		display: none;
	}

	.wd-site-header__inner {
		gap: 0.5rem;
		min-height: 4rem;
	}
}

@media (max-width: 420px) {
	.wd-site-brand__logo,
	.wd-site-brand__mark {
		width: 2.2rem;
		height: 2.2rem;
	}
}

/* ---------------------------------------------------------------------------
 * Header: overlay mode
 *
 * On the home page the bar has no chrome of its own until the page scrolls —
 * it sits on the hero photograph and the script adds `is-stuck` on the way
 * down. Everything below is the same header, painted for a dark ground.
 * ------------------------------------------------------------------------ */

:root {
	--wd-header-h: 4.75rem;
}

.wd-site-header__inner {
	min-height: var(--wd-header-h);
	padding-block: 0;
}

.wd-site-header {
	transition: background-color 180ms var(--wd-ease, ease), box-shadow 180ms var(--wd-ease, ease), border-color 180ms var(--wd-ease, ease);
}

.wd-site-header--overlay:not(.is-stuck) {
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

/* The search box belongs to the hero while the hero is on screen; it comes
   back the moment the bar turns solid. */
.wd-site-header--overlay:not(.is-stuck) .wd-headersearch {
	display: none;
}

.wd-site-header--overlay:not(.is-stuck) .wd-site-header__actions {
	margin-left: auto;
}

.wd-site-header--overlay:not(.is-stuck) .wd-site-title a,
.wd-site-header--overlay:not(.is-stuck) .wd-nav > ul > li > a,
.wd-site-header--overlay:not(.is-stuck) .wd-dropdown > summary,
.wd-site-header--overlay:not(.is-stuck) .wd-account > summary {
	color: var(--wd-text, #1e293b);
}

.wd-site-header--overlay:not(.is-stuck) .wd-nav > ul > li > a:hover,
.wd-site-header--overlay:not(.is-stuck) .wd-nav > ul > li > a:focus-visible,
.wd-site-header--overlay:not(.is-stuck) .wd-dropdown > summary:hover,
.wd-site-header--overlay:not(.is-stuck) .wd-dropdown[open] > summary,
.wd-site-header--overlay:not(.is-stuck) .wd-nav > ul > .current-menu-item > a {
	color: var(--wd-primary);
}

.wd-site-header--overlay:not(.is-stuck) .wd-account > summary,
.wd-site-header--overlay:not(.is-stuck) .wd-burger > summary {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(0, 0, 0, 0.08);
	color: var(--wd-text, #1e293b);
	backdrop-filter: blur(10px);
}

.wd-site-header--overlay:not(.is-stuck) .wd-burger__bars,
.wd-site-header--overlay:not(.is-stuck) .wd-burger__bars::before,
.wd-site-header--overlay:not(.is-stuck) .wd-burger__bars::after {
	background: var(--wd-text, #1e293b);
}

.wd-site-header--overlay:not(.is-stuck) .wd-button--ghost {
	border-color: #cbd5e1;
	color: var(--wd-text, #1e293b);
	background: #ffffff;
}

.wd-site-header--overlay:not(.is-stuck) .wd-button--ghost:hover,
.wd-site-header--overlay:not(.is-stuck) .wd-button--ghost:focus-visible {
	border-color: var(--wd-primary);
	color: var(--wd-primary);
	background: rgba(var(--wd-primary-rgb), 0.08);
}

/* The "add a listing" button carries its icon on every screen. */
.wd-button--add svg {
	width: 1rem;
	height: 1rem;
}

/* ---------------------------------------------------------------------------
 * Front page
 * ------------------------------------------------------------------------ */

/* The templates all render inside the header's .wd-container, so a section
   that wants the full window steps back out of it. 100vw is wider than the
   content box by the scrollbar, and `overflow-x: clip` on the body absorbs
   that without creating a scroll container — which is what would break the
   sticky header. */
body {
	overflow-x: clip;
}

.wd-bleed {
	margin-inline: calc(50% - 50vw);
}

.home .wd-main {
	padding-top: 0;
}

/* --- hero ----------------------------------------------------------------
 *
 * The landing band: a headline, one wide search bar and the showcase deck.
 * Everything here resolves through the plugin's `--wd-*` tokens, so the hero
 * follows the theme into dark mode instead of staying a light photograph of
 * itself. The deck's own styles live in the plugin, next to the code that
 * renders it.
 * ------------------------------------------------------------------------ */

.wd-hero {
	position: relative;
	isolation: isolate;
	/* Not `overflow: hidden`: the suburb and treatment pickers open a panel
	   below the search bar, and hiding overflow here clips it. Nothing in the
	   hero bleeds out — the decorative layer is `inset: 0` and the page body
	   already clips the horizontal axis. */
	margin-block: calc(-1 * var(--wd-header-h)) clamp(2.5rem, 6vw, 4.5rem);
	padding-block: calc(var(--wd-header-h) + clamp(2.25rem, 5vw, 3.75rem)) clamp(2.75rem, 5vw, 4rem);
	color: var(--wd-text, #2e3d50);
	background:
		radial-gradient(ellipse 90% 60% at 50% -10%, rgba(var(--wd-primary-rgb), 0.09), transparent 70%),
		radial-gradient(circle at 8% 25%, rgba(var(--wd-secondary-rgb), 0.05), transparent 45%),
		radial-gradient(circle at 92% 35%, rgba(var(--wd-tertiary-rgb), 0.05), transparent 45%),
		linear-gradient(180deg, var(--wd-paper, #f5f8fc) 0%, var(--wd-cream, #fff) 100%);
}

/* The drawn lines behind the hero. `currentColor` is not available to a data
   URI, so the strokes are the brand blue at the opacity the light ground
   wants; in dark mode the whole layer is dropped to a faint wash instead. */
.wd-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' fill='none'%3E%3Cpath d='M-100,220 C350,60 850,480 1750,160' stroke='rgba(9,105,249,0.09)' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M-50,340 C420,130 750,580 1800,280' stroke='rgba(9,105,249,0.06)' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M-120,470 C380,240 920,670 1850,420' stroke='rgba(9,105,249,0.05)' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M100,-60 C650,420 1250,110 1750,620' stroke='rgba(9,105,249,0.06)' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: cover;
	background-position: center;
	pointer-events: none;
}

.wd-hero__inner {
	position: relative;
	text-align: center;
}

.wd-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 auto 1rem;
	padding: 0.35rem 0.9rem 0.35rem 0.45rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius-pill, 999px);
	background: var(--wd-cream, #fff);
	box-shadow: var(--wd-shadow-sm);
	color: var(--wd-text-muted, #657489);
	font-size: 0.83rem;
	font-weight: 600;
}

.wd-hero__eyebrow strong {
	padding: 0.15rem 0.6rem;
	border-radius: var(--wd-radius-pill, 999px);
	background: rgba(var(--wd-primary-rgb), 0.12);
	color: var(--wd-primary-dark);
	font-weight: 700;
}

/* Wider than the old 22ch: the headline is the first thing that says what the
   site is for, and breaking it over three short lines made it read as a slogan
   rather than a sentence. */
.wd-hero__title {
	margin: 0 auto clamp(0.9rem, 2vw, 1.35rem);
	max-width: 26ch;
	color: var(--wd-ink, #0a1120);
	font-size: clamp(2.35rem, 5.2vw, 4.1rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.wd-hero__highlight {
	position: relative;
	display: inline-block;
	color: var(--wd-primary);
	white-space: nowrap;
}

.wd-hero__scribble {
	position: absolute;
	left: 0;
	bottom: -0.22em;
	width: 100%;
	height: 0.35em;
	color: var(--wd-primary);
	overflow: visible;
	pointer-events: none;
}

.wd-hero__lede {
	margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
	max-width: 62ch;
	color: var(--wd-text-muted, #657489);
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	line-height: 1.55;
	text-align: center;
}

/* --- the search bar ------------------------------------------------------
 *
 * One row, four things: what, where, which treatment, go. It is deliberately
 * the widest element on the page — finding a business is what the site does,
 * and the bar is the sentence a visitor completes to do it.
 * ---------------------------------------------------------------------- */

.wd-herosearch {
	max-width: 72rem;
	margin-inline: auto;
	margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
	padding: 0.5rem 0.5rem 0.5rem 1.4rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius-pill, 999px);
	background: var(--wd-cream, #fff);
	box-shadow: var(--wd-shadow-lg);
	color: var(--wd-text, #2e3d50);
	text-align: left;
	transition: box-shadow 0.25s var(--wd-ease), border-color 0.25s var(--wd-ease);
}

.wd-herosearch:focus-within {
	border-color: rgba(var(--wd-primary-rgb), 0.45);
	box-shadow: var(--wd-shadow-lg), 0 0 0 3px rgba(var(--wd-primary-rgb), 0.12);
}

.wd-herosearch__row {
	display: flex;
	align-items: center;
	width: 100%;
}

.wd-herosearch__field {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.wd-herosearch__field--query {
	flex: 1.5 1 14rem;
}

/* The suburb and treatment fields are the picture pickers, which bring their
   own padding — the field is only here to give them a share of the row. */
.wd-herosearch__field--picker {
	flex: 1 1 11rem;
}

.wd-herosearch__divider {
	flex-shrink: 0;
	width: 1px;
	height: 32px;
	margin: 0 0.6rem;
	background: var(--wd-border, #dbe5f1);
}

.wd-herosearch__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	color: var(--wd-primary);
}

.wd-herosearch__icon svg {
	width: 1.15rem;
	height: 1.15rem;
}

.wd-herosearch input[type="search"] {
	width: 100%;
	height: 3rem;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--wd-ink, #0a1120);
	font: inherit;
	font-size: 1rem;
	font-weight: 500;
	outline: none;
	box-shadow: none;
}

.wd-herosearch input::placeholder {
	color: var(--wd-text-soft, #8a96a7);
	font-weight: 400;
}

.wd-herosearch__submit {
	flex-shrink: 0;
	margin-left: 0.5rem;
}

.wd-herosearch__submit .wd-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	height: 3.35rem;
	padding: 0 2.1rem;
	border: none;
	border-radius: var(--wd-radius-pill, 999px);
	background: linear-gradient(135deg, var(--wd-primary) 0%, var(--wd-primary-dark) 100%);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(var(--wd-primary-rgb), 0.35);
	cursor: pointer;
	transition: transform 0.18s var(--wd-ease), box-shadow 0.18s var(--wd-ease);
}

.wd-herosearch__submit .wd-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(var(--wd-primary-rgb), 0.45);
}

/* --- what sits under the bar -------------------------------------------- */

.wd-hero__deck {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.wd-hero__ctas {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.wd-hero__cta-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 2.2rem;
	border-radius: var(--wd-radius-pill, 999px);
	background: var(--wd-primary);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(var(--wd-primary-rgb), 0.32);
	transition: background-color 0.2s var(--wd-ease), transform 0.2s var(--wd-ease), box-shadow 0.2s var(--wd-ease);
}

.wd-hero__cta-primary:hover {
	transform: translateY(-2px);
	background: var(--wd-primary-dark);
	color: #fff;
	box-shadow: 0 8px 26px rgba(var(--wd-primary-rgb), 0.45);
}

.wd-hero__cta-secondary {
	padding: 0.75rem 1rem;
	color: var(--wd-text, #2e3d50);
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s var(--wd-ease);
}

.wd-hero__cta-secondary:hover {
	color: var(--wd-primary-dark);
}

.wd-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 auto;
	font-size: 0.88rem;
}

.wd-hero__tags-label {
	margin-right: 0.25rem;
	color: var(--wd-text-muted, #657489);
	font-weight: 600;
}

.wd-hero__tags a {
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius-pill, 999px);
	background: var(--wd-cream, #fff);
	color: var(--wd-text, #2e3d50);
	text-decoration: none;
	transition: background-color 0.18s var(--wd-ease), border-color 0.18s var(--wd-ease), color 0.18s var(--wd-ease);
}

.wd-hero__tags a:hover,
.wd-hero__tags a:focus-visible {
	border-color: var(--wd-primary);
	background: rgba(var(--wd-primary-rgb), 0.08);
	color: var(--wd-primary-dark);
}

.wd-hero__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem clamp(1.5rem, 5vw, 3.5rem);
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding: 0;
	list-style: none;
}

.wd-hero__trust li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1rem;
}

.wd-hero__trust strong {
	color: var(--wd-ink, #0a1120);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 800;
	line-height: 1.1;
}

.wd-hero__trust span {
	color: var(--wd-text-muted, #657489);
	font-size: 0.85rem;
}

/* --- hero, narrow -------------------------------------------------------
 *
 * The bar stops being a bar and becomes a stack of fields with a full-width
 * button. A pill row with four things in it at 375px is four things nobody
 * can hit.
 * ---------------------------------------------------------------------- */

@media (max-width: 860px) {

	.wd-herosearch {
		padding: 0.85rem;
		border-radius: var(--wd-radius-lg, 16px);
		margin-bottom: 2rem;
	}

	.wd-herosearch__row {
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
	}

	.wd-herosearch__divider {
		width: auto;
		height: 1px;
		margin: 0;
	}

	.wd-herosearch__field--query {
		padding-inline: 0.35rem;
	}

	.wd-herosearch input[type="search"] {
		height: 2.75rem;
	}

	.wd-herosearch__submit {
		margin-top: 0.4rem;
		margin-left: 0;
	}

	.wd-herosearch__submit .wd-button {
		width: 100%;
		height: 3rem;
	}

	.wd-hero__ctas {
		flex-direction: column;
		gap: 0.75rem;
	}

	.wd-hero__cta-primary {
		width: 100%;
		max-width: 320px;
	}
}

/* --- home sections ------------------------------------------------------ */

.wd-home-section {
	max-width: 1510px;
	margin: 0 auto clamp(2.25rem, 6vw, 4rem);
}

.wd-home-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.wd-home-section__header h2 {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 1.95rem);
	font-weight: 800;
	letter-spacing: 0;
}

.wd-home-section__eyebrow {
	margin: 0 0 0.3rem;
	color: var(--wd-primary, #0969f9);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wd-home-section__header .wd-button--link {
	font-size: 0.95rem;
	font-weight: 800;
}

.wd-catgrid {
	display: grid;
	gap: clamp(0.9rem, 1.4vw, 1.25rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1020px) {
	.wd-catgrid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.wd-catgrid > li {
	display: flex;
	min-width: 0;
}

.wd-catcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	justify-content: flex-end;
	width: 100%;
	min-width: 0;
	height: 100%;
	min-height: 9.75rem;
	aspect-ratio: 16 / 10;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius-lg, 16px);
	background: var(--wd-paper, #f5f8fc);
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(10, 17, 32, 0.04);
	transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.wd-catcard:hover,
.wd-catcard:focus-visible {
	border-color: var(--wd-primary, #0969f9);
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(10, 17, 32, 0.13);
}

.wd-catcard__name {
	color: var(--wd-ink, #0a1120);
	font-weight: 700;
	letter-spacing: 0;
}

.wd-catcard__count {
	color: var(--wd-text-soft, #8a96a7);
	font-size: 0.85rem;
}

.wd-catcard--image,
.wd-catcard--tint {
	border-color: transparent;
	color: #fff;
}

.wd-catcard__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, var(--wd-surface, #eaf1fb), var(--wd-primary-soft, #e7f0ff));
}

.wd-catcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms var(--wd-ease, ease);
}

.wd-catcard--logo .wd-catcard__media {
	padding: clamp(1.1rem, 2vw, 1.8rem);
	background:
		linear-gradient(180deg, rgba(10, 17, 32, 0.04), rgba(10, 17, 32, 0.12)),
		#fff;
}

.wd-catcard--logo .wd-catcard__media img {
	object-fit: contain;
	filter: drop-shadow(0 1px 1px rgba(10, 17, 32, 0.22));
}

.wd-catcard--image::after,
.wd-catcard--tint::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.wd-catcard--image::after {
	z-index: 1;
	background: linear-gradient(180deg, rgba(10, 17, 32, 0.06) 26%, rgba(10, 17, 32, 0.78) 100%);
}

.wd-catcard--logo::after {
	background:
		linear-gradient(180deg, transparent 12%, rgba(10, 17, 32, 0.1) 46%, rgba(10, 17, 32, 0.74) 100%),
		linear-gradient(90deg, rgba(10, 17, 32, 0.12), transparent 54%);
}

.wd-catcard--image .wd-catcard__name,
.wd-catcard--image .wd-catcard__count {
	position: relative;
	z-index: 2;
	width: fit-content;
	max-width: 100%;
	padding: 0.16rem 0.38rem;
	border-radius: var(--wd-radius-sm, 6px);
	background: rgba(10, 17, 32, 0.62);
	color: #fff;
	text-shadow: 0 1px 1px rgba(10, 17, 32, 0.35);
}

.wd-catcard--image .wd-catcard__count,
.wd-catcard--tint .wd-catcard__count {
	color: rgba(255, 255, 255, 0.9);
}

.wd-catcard--tint .wd-catcard__name {
	position: relative;
	z-index: 1;
	color: #fff;
	text-shadow: 0 1px 1px rgba(10, 17, 32, 0.38);
}

.wd-catcard--tint {
	background:
		linear-gradient(
			145deg,
			hsl(var(--wd-tile-hue, 216) 86% 31%) 0%,
			hsl(calc(var(--wd-tile-hue, 216) + 18) 76% 19%) 100%
		);
}

.wd-catcard--tint::after {
	z-index: 0;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 48%),
		linear-gradient(180deg, transparent 35%, rgba(10, 17, 32, 0.32));
}

.wd-catcard--tint .wd-catcard__count {
	position: relative;
	z-index: 1;
}

.wd-catcard--image:hover img,
.wd-catcard--image:focus-visible img {
	transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
	.wd-catcard__media img {
		transition: none;
	}

	.wd-catcard--image:hover img,
	.wd-catcard--image:focus-visible img {
		transform: none;
	}
}

@media (max-width: 560px) {
	.wd-home-section__header {
		align-items: flex-start;
		justify-content: flex-start;
	}

	.wd-catgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wd-catcard {
		min-height: 8.4rem;
		padding: 0.85rem;
	}

	.wd-catcard__name {
		font-size: 0.92rem;
		line-height: 1.22;
	}
}

/* --- how it works --------------------------------------------------------
 *
 * Two columns: the claim on the left, the three steps threaded on a rail down
 * the right. The rail is what makes it read as a sequence rather than as three
 * unrelated boxes — the old centred row said "three features", not "three
 * steps in this order".
 * ---------------------------------------------------------------------- */

.wd-how {
	margin-block: clamp(2.25rem, 6vw, 4rem);
	padding-block: clamp(3rem, 7vw, 5rem);
	border-block: 1px solid var(--wd-border, #dbe5f1);
	background:
		radial-gradient(ellipse 70% 60% at 12% 10%, rgba(var(--wd-primary-rgb), 0.09), transparent 60%),
		radial-gradient(ellipse 60% 60% at 92% 90%, rgba(var(--wd-tertiary-rgb), 0.08), transparent 60%),
		var(--wd-surface, #eaf1fb);
}

.wd-how__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

.wd-how__intro {
	position: sticky;
	top: calc(var(--wd-header-h) + 1.5rem);
}

.wd-how__intro h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.6rem, 3.4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.14;
	color: var(--wd-ink, #0a1120);
}

.wd-how__intro p {
	margin: 0 0 1.5rem;
	max-width: 40ch;
	color: var(--wd-text-muted, #657489);
	font-size: 1.02rem;
	line-height: 1.6;
}

.wd-how__list {
	position: relative;
	display: grid;
	gap: clamp(0.85rem, 2vw, 1.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The rail. It runs behind the medallions from the first to the last, which is
   why it is inset by half a medallion at each end. */
.wd-how__list::before {
	content: "";
	position: absolute;
	top: 3.4rem;
	bottom: 3.4rem;
	left: 2.55rem;
	width: 2px;
	background: linear-gradient(
		180deg,
		var(--wd-primary) 0%,
		rgba(var(--wd-primary-rgb), 0.35) 60%,
		rgba(var(--wd-primary-rgb), 0.12) 100%
	);
}

.wd-how__step {
	position: relative;
	display: grid;
	grid-template-columns: 3.6rem minmax(0, 1fr);
	grid-template-areas:
		"icon num"
		"icon title"
		"icon body";
	align-items: start;
	gap: 0.15rem 1.25rem;
	padding: clamp(1.15rem, 2.4vw, 1.6rem);
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius-lg, 16px);
	background: var(--wd-cream, #fff);
	box-shadow: var(--wd-shadow-sm);
	transition: transform 180ms var(--wd-ease), box-shadow 180ms var(--wd-ease), border-color 180ms var(--wd-ease);
}

.wd-how__step:hover {
	transform: translateY(-3px);
	border-color: rgba(var(--wd-primary-rgb), 0.45);
	box-shadow: var(--wd-shadow);
}

.wd-how__icon {
	grid-area: icon;
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 3.6rem;
	height: 3.6rem;
	border-radius: var(--wd-radius-pill, 999px);
	background: linear-gradient(150deg, var(--wd-primary), var(--wd-primary-dark));
	color: #fff;
	box-shadow: 0 8px 20px rgba(var(--wd-primary-rgb), 0.32);
}

.wd-how__icon svg {
	width: 1.5rem;
	height: 1.5rem;
	stroke-width: 1.9;
}

.wd-how__num {
	grid-area: num;
	color: var(--wd-primary);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
}

.wd-how__step h3 {
	grid-area: title;
	margin: 0 0 0.3rem;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--wd-ink, #0a1120);
}

.wd-how__step p {
	grid-area: body;
	margin: 0;
	max-width: 46ch;
	color: var(--wd-text-muted, #657489);
	font-size: 0.95rem;
	line-height: 1.6;
}

@media (max-width: 900px) {

	.wd-how__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.wd-how__intro {
		position: static;
	}

	.wd-how__list::before {
		display: none;
	}
}

@media (max-width: 480px) {

	.wd-how__step {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"icon"
			"num"
			"title"
			"body";
		gap: 0.4rem;
	}

	.wd-how__icon {
		width: 3rem;
		height: 3rem;
	}
}

/* --- suburbs mosaic ----------------------------------------------------- */

.wd-citygrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 11rem;
	gap: clamp(0.75rem, 1.4vw, 1.1rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-citygrid > li {
	display: flex;
	min-width: 0;
}

.wd-citygrid > li:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.wd-citygrid > li:nth-child(6),
.wd-citygrid > li:nth-child(7) {
	grid-column: span 2;
}

.wd-citycard {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100%;
	padding: 1.1rem 1.2rem;
	border-radius: var(--wd-radius-lg, 16px);
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background:
		linear-gradient(
			145deg,
			hsl(var(--wd-tile-hue, 216) 86% 31%) 0%,
			hsl(calc(var(--wd-tile-hue, 216) + 18) 76% 19%) 100%
		);
	transition: transform 140ms var(--wd-ease, ease), box-shadow 140ms var(--wd-ease, ease);
}

.wd-citycard:hover,
.wd-citycard:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 38px rgba(10, 17, 32, 0.18);
}

.wd-citycard__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms var(--wd-ease, ease);
}

.wd-citycard::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(10, 17, 32, 0.05) 30%, rgba(10, 17, 32, 0.76) 100%);
	pointer-events: none;
}

.wd-citycard:hover .wd-citycard__media,
.wd-citycard:focus-visible .wd-citycard__media {
	transform: scale(1.05);
}

.wd-citycard__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.wd-citycard__name {
	font-size: clamp(1rem, 2vw, 1.3rem);
	font-weight: 800;
	text-shadow: 0 1px 2px rgba(10, 17, 32, 0.4);
}

.wd-citycard__count {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
	.wd-citycard__media {
		transition: none;
	}

	.wd-citycard:hover .wd-citycard__media,
	.wd-citycard:focus-visible .wd-citycard__media {
		transform: none;
	}
}

@media (max-width: 860px) {
	.wd-citygrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 9rem;
	}

	.wd-citygrid > li:first-child {
		grid-row: span 1;
	}
}

/* --- what people said --------------------------------------------------- */

/* Pinned to the light-mode brand values for the same reason as the hero: this
   band is always a dark surface. */
.wd-quotes {
	margin-block: clamp(2.25rem, 6vw, 4rem);
	padding-block: clamp(2.5rem, 6vw, 4rem);
	background: linear-gradient(135deg, #0a1120 0%, #0a3a8f 100%);
	color: #fff;
}

.wd-quotes__intro {
	max-width: 1510px;
	margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
	text-align: center;
}

.wd-quotes__intro h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	font-weight: 800;
}

.wd-quotes .wd-home-section__eyebrow {
	color: color-mix(in srgb, #fff 72%, transparent);
}

.wd-quotes__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	max-width: 1510px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.wd-quote {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border-radius: var(--wd-radius-lg, 16px);
	background: var(--wd-cream, #fff);
	color: var(--wd-text, #2e3d50);
	box-shadow: 0 18px 40px rgba(10, 17, 32, 0.24);
}

.wd-quote blockquote {
	margin: 0;
}

.wd-quote blockquote p {
	margin: 0;
	color: var(--wd-ink, #0a1120);
	font-size: 1.02rem;
	line-height: 1.55;
}

.wd-quote__by {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: auto 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--wd-border, #dbe5f1);
	font-size: 0.9rem;
}

.wd-quote__by strong {
	display: block;
	color: var(--wd-ink, #0a1120);
}

.wd-quote__by a {
	color: var(--wd-primary, #0969f9);
	font-size: 0.85rem;
}

.wd-quote__avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	background: var(--wd-primary-soft, #e7f0ff);
	color: var(--wd-primary-dark, #0052c8);
	font-size: 0.78rem;
	font-weight: 800;
}

/* --- closing call to action --------------------------------------------- */

.wd-band {
	margin-block: clamp(2.25rem, 6vw, 4rem);
	padding-block: clamp(2rem, 5vw, 3.25rem);
	background: var(--wd-primary, #0969f9);
	color: #fff;
}

.wd-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	max-width: 1510px;
}

.wd-band h2 {
	margin: 0 0 0.35rem;
	color: #fff;
	font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.wd-band p {
	margin: 0;
	max-width: 46ch;
	color: color-mix(in srgb, #fff 82%, transparent);
}

.wd-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* The ghost button sits on the brand colour here, so it needs its own
   treatment rather than the light-background one. */
.wd-band .wd-button {
	background: #fff;
	border-color: #fff;
	color: var(--wd-primary-dark, #0052c8);
}

.wd-band .wd-button--ghost {
	background: transparent;
	border-color: color-mix(in srgb, #fff 55%, transparent);
	color: #fff;
}

.wd-band .wd-button--ghost:hover {
	background: color-mix(in srgb, #fff 14%, transparent);
}

/* --- from the blog ------------------------------------------------------ */

.wd-postgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-postcard {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius-lg, 16px);
	background: var(--wd-cream, #fff);
	overflow: hidden;
	text-decoration: none;
	transition: transform 140ms var(--wd-ease, ease), box-shadow 140ms var(--wd-ease, ease), border-color 140ms ease;
}

.wd-postcard:hover,
.wd-postcard:focus-visible {
	transform: translateY(-2px);
	border-color: var(--wd-primary, #0969f9);
	box-shadow: 0 14px 34px rgba(10, 17, 32, 0.12);
}

.wd-postcard__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.wd-postcard__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.1rem 1.2rem 1.35rem;
}

.wd-postcard__date {
	color: var(--wd-text-soft, #8a96a7);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wd-postcard__title {
	color: var(--wd-ink, #0a1120);
	font-size: 1.08rem;
	font-weight: 800;
	line-height: 1.3;
}

.wd-postcard__excerpt {
	color: var(--wd-text-muted, #657489);
	font-size: 0.92rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Error pages
 * ------------------------------------------------------------------------ */

.wd-error {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.8fr);
	gap: clamp(1.25rem, 4vw, 3rem);
	align-items: center;
	min-height: clamp(34rem, 68vh, 46rem);
	padding-block: clamp(1rem, 4vw, 3rem);
}

.wd-error__copy {
	max-width: 42rem;
}

.wd-error__code {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	margin: 0 0 0.9rem;
	padding-inline: 0.8rem;
	border: 1px solid color-mix(in srgb, var(--wd-primary, #0969f9) 32%, var(--wd-border, #dbe5f1));
	border-radius: var(--wd-radius-pill, 999px);
	background: var(--wd-primary-soft, #e7f0ff);
	color: var(--wd-primary-dark, #0052c8);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.wd-error h1 {
	margin: 0;
	max-width: 12ch;
	font-size: clamp(2.4rem, 8vw, 5.4rem);
	line-height: 0.98;
}

.wd-error__copy > p:not(.wd-error__code) {
	margin: 1rem 0 0;
	max-width: 36rem;
	color: var(--wd-text-muted, #657489);
	font-size: clamp(1rem, 2vw, 1.15rem);
}

.wd-error__search {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.65rem;
	align-items: center;
	margin-top: 1.6rem;
	padding: 0.65rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius, 14px);
	background: var(--wd-cream, #fff);
	box-shadow: var(--wd-shadow, 0 4px 16px rgba(10, 17, 32, 0.07));
}

.wd-error__search svg {
	position: absolute;
	left: 1.45rem;
	width: 1rem;
	height: 1rem;
	color: var(--wd-text-soft, #8a96a7);
	pointer-events: none;
}

.wd-error__search input {
	width: 100%;
	height: 2.9rem;
	min-width: 0;
	padding: 0 1rem 0 2.35rem;
	border: 1px solid transparent;
	border-radius: var(--wd-radius-sm, 8px);
	background: var(--wd-paper, #f5f8fc);
	color: inherit;
	font: inherit;
}

.wd-error__search input:focus-visible {
	border-color: var(--wd-primary, #0969f9);
	outline: none;
	box-shadow: var(--wd-focus, 0 0 0 3px rgba(0, 194, 255, 0.3));
}

.wd-error__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1rem;
}

.wd-error__panel {
	position: relative;
	overflow: hidden;
	padding: clamp(1rem, 3vw, 1.4rem);
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius-lg, 20px);
	background:
		linear-gradient(160deg, color-mix(in srgb, var(--wd-primary-soft, #e7f0ff) 72%, var(--wd-cream, #fff)), var(--wd-paper, #f5f8fc));
	box-shadow: var(--wd-shadow-lg, 0 18px 48px rgba(10, 17, 32, 0.13));
}

.wd-error__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--wd-primary, #0969f9) 10%, transparent) 1px, transparent 1px),
		linear-gradient(color-mix(in srgb, var(--wd-primary, #0969f9) 10%, transparent) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
	pointer-events: none;
}

.wd-error__brand,
.wd-error__status,
.wd-error__tiles,
.wd-error__details {
	position: relative;
}

.wd-error__brand {
	display: grid;
	place-items: center;
	width: 4.75rem;
	height: 4.75rem;
	margin-bottom: 1rem;
	border: 1px solid color-mix(in srgb, var(--wd-primary, #0969f9) 30%, var(--wd-border, #dbe5f1));
	border-radius: var(--wd-radius, 14px);
	background: var(--wd-cream, #fff);
	color: var(--wd-primary-dark, #0052c8);
	font-weight: 800;
	font-size: 1.25rem;
	box-shadow: var(--wd-shadow, 0 4px 16px rgba(10, 17, 32, 0.07));
}

.wd-error__brand .custom-logo-link,
.wd-error__brand .custom-logo {
	display: block;
	width: 100%;
	height: 100%;
}

.wd-error__brand .custom-logo {
	object-fit: contain;
	padding: 0.45rem;
}

.wd-error__status {
	display: grid;
	gap: 0.2rem;
	margin-bottom: 1rem;
}

.wd-error__status span {
	color: var(--wd-primary-dark, #0052c8);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wd-error__status strong {
	color: var(--wd-ink, #0a1120);
	font-size: clamp(1.25rem, 3vw, 1.7rem);
	line-height: 1.15;
}

.wd-error__tiles {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-error__tiles a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.15rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius-sm, 8px);
	background: color-mix(in srgb, var(--wd-cream, #fff) 88%, transparent);
	color: inherit;
	text-decoration: none;
	transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.wd-error__tiles a:hover,
.wd-error__tiles a:focus-visible {
	border-color: var(--wd-primary, #0969f9);
	transform: translateY(-2px);
	box-shadow: var(--wd-shadow, 0 4px 16px rgba(10, 17, 32, 0.07));
}

.wd-error__tiles span {
	color: var(--wd-ink, #0a1120);
	font-weight: 700;
}

.wd-error__tiles small {
	color: var(--wd-text-soft, #8a96a7);
	white-space: nowrap;
}

.wd-error__details {
	margin-top: 0.9rem;
	border-top: 1px solid var(--wd-border, #dbe5f1);
	padding-top: 0.9rem;
}

.wd-error__details summary {
	color: var(--wd-primary-dark, #0052c8);
	cursor: pointer;
	font-weight: 700;
}

.wd-error__details p {
	margin: 0.5rem 0 0;
	color: var(--wd-text-muted, #657489);
	font-size: 0.92rem;
}

@media (max-width: 820px) {
	.wd-error {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.wd-error h1 {
		max-width: 13ch;
	}
}

@media (max-width: 560px) {
	.wd-error__search {
		grid-template-columns: 1fr;
	}

	.wd-error__search .wd-button {
		width: 100%;
	}

	.wd-error__actions .wd-button {
		flex: 1 1 100%;
	}
}

/* ---------------------------------------------------------------------------
 * The categories menu in the header
 * ------------------------------------------------------------------------ */

.wd-nav ul.wd-menu {
	flex-wrap: nowrap;
	white-space: nowrap;
}

.wd-menu__has-children {
	position: relative;
}

.wd-dropdown > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
	list-style: none;
	color: var(--wd-text, #2e3d50);
	font-size: 0.9rem;
	font-weight: 600;
}

.wd-dropdown > summary::-webkit-details-marker {
	display: none;
}

.wd-dropdown > summary:hover,
.wd-dropdown[open] > summary {
	color: var(--wd-primary-dark, #0052c8);
}

.wd-dropdown__caret {
	width: 0.4rem;
	height: 0.4rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-1px, -1px);
	transition: transform 140ms ease;
}

.wd-dropdown[open] .wd-dropdown__caret {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.wd-dropdown__panel {
	position: absolute;
	left: 0;
	top: calc(100% + 0.75rem);
	z-index: 40;
	min-width: 15rem;
	padding: 0.4rem;
	border: 1px solid var(--wd-border, #dbe5f1);
	border-radius: var(--wd-radius, 14px);
	background: var(--wd-cream, #fff);
	box-shadow: var(--wd-shadow-lg, 0 18px 48px rgba(10, 17, 32, 0.13));
}

.wd-dropdown__panel ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: normal;
}

/* The panel is a white card wherever the bar it hangs off is painted, so its
   links state their own colour rather than inheriting the nav's — over the
   hero the nav is white, and white on white is an empty menu. */
.wd-dropdown__panel a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0.7rem;
	border-radius: var(--wd-radius-sm, 8px);
	color: var(--wd-text, #2e3d50);
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
}

.wd-dropdown__panel a:hover,
.wd-dropdown__panel a:focus-visible {
	background: var(--wd-surface, #eaf1fb);
}

.wd-dropdown__count {
	color: var(--wd-text-soft, #8a96a7);
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
}

/* The search box gets its space back now the nav is one line. */
.wd-headersearch {
	flex: 1 1 19rem;
	min-width: 13rem;
}

@media (max-width: 1180px) {
	.wd-headersearch {
		flex-basis: 13rem;
	}
}

/* ---------------------------------------------------------------------------
 * Directory profile visibility fixes
 * ------------------------------------------------------------------------ */

@media (min-width: 783px) {
	.single-wd_business.admin-bar .wd-site-header {
		top: 32px;
	}
}

@media (min-width: 601px) and (max-width: 782px) {
	.single-wd_business.admin-bar .wd-site-header {
		top: 46px;
	}
}

.wd-profile__identity {
	position: relative;
	z-index: 2;
}

.wd-profile__logo {
	position: relative;
	z-index: 3;
	margin-top: 0;
}

.wd-profile__actions > .wd-button,
.wd-profile__actions > .wd-favourite .wd-button {
	min-width: 6.25rem;
}

.wd-profile .wd-button:not(.wd-button--ghost):not(.wd-button--secondary),
.wd-contact-card .wd-button:not(.wd-button--ghost):not(.wd-button--secondary),
.wd-actionbar .wd-button:not(.wd-button--ghost):not(.wd-button--secondary) {
	color: #fff;
}

.wd-profile .wd-button:not(.wd-button--ghost):not(.wd-button--secondary) svg,
.wd-contact-card .wd-button:not(.wd-button--ghost):not(.wd-button--secondary) svg,
.wd-actionbar .wd-button:not(.wd-button--ghost):not(.wd-button--secondary) svg {
	color: currentColor;
	stroke: currentColor;
}

.wd-profile .wd-button__label {
	display: inline-block;
	color: inherit;
	font-weight: 700;
	line-height: 1.2;
}

.wd-profile .wd-button--ghost {
	color: var(--wd-ink, #0a1120);
}

.wd-profile .wd-button--secondary,
.wd-actionbar .wd-button--secondary {
	color: var(--wd-primary-dark, #0052c8);
}

.wd-branchbar,
.wd-branchtabs {
	align-items: center;
}

.wd-branchbar__item,
.wd-branchtabs__item {
	min-width: 9rem;
	max-width: 16rem;
}

.wd-branchbar__item.is-current,
.wd-branchtabs__item.is-current {
	color: #fff;
}

/* Dashboard branch tabs docked in a section header render as a text tab
   strip, not a card: the active tab takes the primary colour (as on hover),
   overriding the card style's white above. */
.wd-section__header .wd-branchtabs__item.is-current,
.wd-section__header .wd-branchtabs__item.is-current:hover,
.wd-section__header .wd-branchtabs__item.is-current:focus-visible {
	background: transparent;
	border-color: transparent;
	border-bottom-color: var(--wd-primary, #0052c8);
	box-shadow: none;
	color: var(--wd-primary-dark, #0052c8);
}

.wd-branchbar__item.is-current .wd-branchbar__name,
.wd-branchbar__item.is-current .wd-branchbar__place,
.wd-branchtabs__item.is-current .wd-branchtabs__name,
.wd-branchtabs__item.is-current .wd-branchtabs__place {
	color: #fff;
}

/* Google map autocomplet options CSS */
.wd-locationdialog [data-wd-err-for][hidden],
.wd-locationdialog [data-wd-loc-form-error][hidden] { display: none; }
.wd-locationdialog [data-wd-err-for]::before,
.wd-locationdialog [data-wd-loc-form-error]::before { display: none; }
.wd-field--autocomplete { position: relative; }
.wd-location-autocomplete {
	z-index: 20;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% - 0.15rem);
	max-height: 14rem;
	overflow: auto;
	border: 1px solid var(--wd-border);
	border-radius: var(--wd-radius-sm);
	background: var(--wd-cream);
	box-shadow: var(--wd-shadow-md);
}
.wd-location-autocomplete[hidden] { display: none; }
.wd-location-autocomplete__item {
	display: block;
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--wd-border);
	background: transparent;
	color: var(--wd-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	padding: 0.8rem 0.95rem;
}
.wd-location-autocomplete__item:last-child { border-bottom: 0; }
.wd-location-autocomplete__item:hover,
.wd-location-autocomplete__item:focus-visible {
	background: var(--wd-primary-soft);
	color: var(--wd-ink);
	outline: none;
}
