/* NeuroDirect layout supplement. Loads after nd.css (the supplied design kit, kept verbatim).
   Holds only what the kit leaves to the mockups' inline styles: the self-hosted font, page layout, list resets
   and the few mockup-only classes. Uses the kit's --nd-* tokens. Motion is limited to short hover and entry
   transitions and is switched off under prefers-reduced-motion. */

/* The font itself (the @font-face rules, preload and fallback) is assets/css/nd-fonts.css, loaded on every front-end page by ND_Fonts. */
:root { --nd-container: 1400px; } /* owner decision, 4 November: all content max width, sitewide. The kit stays verbatim. */
:root { --nd-font: var(--nd-font-stack, 'Plus Jakarta Sans', system-ui, sans-serif); }   /* the kit names the font in nd.css, which stays verbatim; this points it at the stack with the matched fallback */


/* ---- Resets for lists the kit styles by context ---- */
.nd-root ul, .nd-root ol { list-style: none; margin: 0; padding: 0; }
.nd-root .nd-prose ul { list-style: disc; padding-left: 1.25em; }
.nd-root .nd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nd-root .nd-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.nd-root { padding-top: 24px; padding-bottom: 64px; }
.nd-root > .nd-container { display: flex; flex-direction: column; gap: 32px; }
.nd-root img { max-width: 100%; height: auto; }

/* ---- Mockup-only classes ---- */
.nd-root .nd-avatar--photo { padding: 0; overflow: hidden; }
.nd-root .nd-avatar--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-root .nd-avatar--md { width: 48px; height: 48px; font-size: 16px; }
.nd-root .nd-prose { display: flex; flex-direction: column; gap: 14px; max-width: 68ch; }
.nd-root .nd-prose p { margin: 0; }
.nd-root .nd-fs { border: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding: 28px 0; }
.nd-root .nd-fs + .nd-fs { border-top: 1px solid var(--nd-border); }
.nd-root .nd-fs > legend { font-size: 20px; font-weight: 700; color: var(--nd-navy); padding: 0; margin-bottom: 4px; }
.nd-root .nd-fs > * { grid-column: 1 / -1; }
.nd-root .nd-fs > .nd-field--half { grid-column: auto; }
.nd-root .nd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--nd-green); margin-right: 8px; }
.nd-root .nd-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.nd-root .nd-dl dt { font-weight: 600; }
.nd-root .nd-dl dd { margin: 0; }
.nd-root .nd-inbox { display: flex; flex-direction: column; gap: 12px; }
.nd-root .nd-inbox > article { border: 1px solid var(--nd-border); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.nd-root .nd-tabs .n { background: var(--nd-blue-chip); color: var(--nd-navy); border-radius: 999px; padding: 0 8px; font-size: 13px; }
.nd-root .nd-section + .nd-section { margin-top: 0; }

/* ---- Layout ---- */
.nd-root .nd-stack { display: flex; flex-direction: column; gap: 16px; }
.nd-root .nd-stack--lg { gap: 32px; }
.nd-root .nd-head { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.nd-root .nd-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nd-root .nd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nd-root .nd-statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; max-width: 820px; }
.nd-root .nd-statgrid > div { background: var(--nd-blue-tint); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.nd-root .nd-statgrid dt { font-size: var(--nd-text-sm); color: var(--nd-muted); font-weight: 600; }
.nd-root .nd-statgrid dd { margin: 0; font-size: 26px; font-weight: 700; color: var(--nd-navy); }
.nd-root .nd-layout { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.nd-root .nd-layout > .nd-filters { flex: 0 0 300px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.nd-root .nd-layout > .nd-results { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nd-root .nd-filters__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nd-root .nd-filters__group { display: flex; flex-direction: column; gap: 2px; border: 0; padding: 0; margin: 0; min-width: 0; }
.nd-root .nd-filters__group > legend { font-weight: 700; padding: 0; margin-bottom: 2px; }
.nd-root .nd-cards { display: flex; flex-direction: column; gap: 16px; }
.nd-root .nd-card--result { display: flex; gap: 20px; }
.nd-root .nd-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.nd-root .nd-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.nd-root .nd-card__sub { margin: 0; font-size: 15px; color: var(--nd-muted); }
.nd-root .nd-card h2, .nd-root .nd-card h3 { margin: 0; }
.nd-root .nd-card p { margin: 0; }
.nd-root .nd-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.nd-root .nd-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; flex-wrap: wrap; }
.nd-root .nd-pagination__pages { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nd-root .nd-page--wide { width: auto; padding: 0 16px; }
.nd-root .nd-order { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.nd-root .nd-order svg { flex: none; margin-top: 2px; }
.nd-root .nd-postcodes { display: flex; flex-direction: column; gap: 10px; background: var(--nd-blue-tint); border-radius: 10px; padding: 16px; margin: 0 -8px -8px; }
.nd-root .nd-postcodes ul { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-root .nd-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; flex-wrap: wrap; }
.nd-root .nd-cta > div { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.nd-root .nd-cta h2, .nd-root .nd-cta p { margin: 0; }
.nd-root .nd-empty { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 32px; }
.nd-root .nd-empty h2, .nd-root .nd-empty p { margin: 0; }
.nd-root .nd-explore { display: flex; flex-direction: column; gap: 16px; }
.nd-root .nd-explore h2 { margin: 0; }
.nd-root .nd-faq { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.nd-root .nd-faq h2 { margin: 0; }
.nd-root .nd-search { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; max-width: 640px; }
.nd-root .nd-search .nd-field { flex: 1 1 260px; }
.nd-root .nd-hero { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.nd-root .nd-hero p { margin: 0; }
.nd-root #nd-map { height: 420px; border: 1px solid var(--nd-border); border-radius: 16px; overflow: hidden; }
.nd-root .nd-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.nd-root .nd-cols h3 { margin: 0 0 8px; }
.nd-root .nd-linklist { display: flex; flex-direction: column; gap: 2px; }
.nd-root .nd-linklist a { min-height: 40px; display: inline-flex; align-items: center; }
.nd-root .nd-count { color: var(--nd-muted); font-weight: 500; }

/* Profile */
.nd-root .nd-profile { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.nd-root .nd-profile__main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; }
.nd-root .nd-glance-box { background: var(--nd-blue-tint); border-radius: 12px; padding: 8px 24px; }
.nd-root .nd-section { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; }
.nd-root .nd-section > h2 { margin: 0; }
.nd-root .nd-profile__aside { flex: 0 0 360px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.nd-root .nd-profile__aside h2, .nd-root .nd-profile__aside p { margin: 0; }
.nd-root .nd-profile__aside form { display: flex; flex-direction: column; gap: 14px; }
.nd-root .nd-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nd-root .nd-others .nd-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.nd-root .nd-others h3 { font-size: 16px; }
.nd-root .nd-nearby { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 15px; }
.nd-root .nd-nearby h3 { font-size: 14px; color: var(--nd-muted); margin: 0 0 6px; }

/* Notices */
.nd-root .nd-note--ok { background: var(--nd-green-bg); color: #14532d; border-color: #bfe3cd; }
.nd-root .nd-note { margin: 0; }

/* Members */
.nd-root .nd-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nd-root .nd-plan-li { display: flex; gap: 8px; align-items: flex-start; }
.nd-root .nd-evlist li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
.nd-root .nd-field--wide { max-width: 640px; }
.nd-root .nd-field .nd-lbl { display: block; font-weight: 600; }
.nd-root .nd-checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nd-root .nd-checks > legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.nd-root textarea.nd-input { min-height: 96px; }

/* ---- Mobile filter drawer (desktop shows the filters in the column) ---- */
.nd-root .nd-filters-toggle { display: none; }
.nd-root .nd-place > a { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--nd-border); text-decoration: none; }
.nd-root .nd-place > a:hover span:first-child { text-decoration: underline; }
.nd-root .nd-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.nd-root .nd-hero-panel { padding: 40px 32px; display: flex; flex-direction: column; gap: 24px; }
.nd-root .nd-searchbar { background: #fff; border: 1px solid var(--nd-border); border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; max-width: 760px; }
.nd-root .nd-searchbar .nd-field { flex: 1 1 260px; }
.nd-root .nd-filters__close, .nd-root .nd-filters__apply { display: none; }
.nd-root .nd-enquiry-bar { display: none; }

@media (max-width: 899px) {
	.nd-root { padding-top: 16px; padding-bottom: 88px; }
	.nd-root .nd-statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nd-root .nd-card--result { flex-direction: column; gap: 14px; }
	.nd-root .nd-layout > .nd-filters { position: static; flex: 1 1 100%; }
	.nd-js .nd-root .nd-filters-toggle { display: inline-flex; }
	.nd-js .nd-root .nd-filters--drawer { display: none; }
	.nd-js .nd-root .nd-filters--drawer.is-open { display: flex; position: fixed; inset: 0; z-index: 100000; overflow-y: auto; border-radius: 0; background: var(--nd-white); padding: 16px 16px 96px; }
	.nd-js .nd-root .nd-filters--drawer.is-open .nd-filters__close { display: inline-flex; }
	.nd-js .nd-root .nd-filters--drawer.is-open .nd-filters__apply { display: flex; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: var(--nd-white); border-top: 1px solid var(--nd-border); }
	.nd-root .nd-profile { gap: 24px; }
	.nd-root .nd-profile__aside { flex: 1 1 100%; position: static; }
	.nd-root .nd-others, .nd-root .nd-nearby, .nd-root .nd-plans, .nd-root .nd-signup { grid-template-columns: 1fr; }
	.nd-root .nd-enquiry-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; padding: 10px 16px; background: var(--nd-white); border-top: 1px solid var(--nd-border); }
	.nd-root .nd-enquiry-bar .nd-btn { min-height: 56px; }
	.nd-root .nd-cta { padding: 24px; }
	.nd-root .nd-dl { grid-template-columns: 1fr; }
}

/* The kit's `.nd-root a` colour is more specific than the button modifiers, so restate button text colours. */
.nd-root a.nd-btn--primary, .nd-root a.nd-btn--primary:hover { color: #fff; }
.nd-root a.nd-btn--secondary, .nd-root a.nd-btn--text { color: var(--nd-navy); }
.nd-root a.nd-chip { color: var(--nd-navy); }
.nd-root a.nd-chip--on, .nd-root .nd-chip--on { color: #fff; }
.nd-root a.nd-page { color: var(--nd-navy); }
.nd-root a.nd-page[aria-current] { color: #fff; }
.nd-root h1 a, .nd-root h2 a, .nd-root h3 a { text-decoration: none; }
.nd-root h1 a:hover, .nd-root h2 a:hover, .nd-root h3 a:hover { text-decoration: underline; }
.nd-root { font-weight: 400; }

/* ---- Home: full-width bands as in the Find a Specialist mockup ---- */
.nd-root.nd-root--home { padding-top: 0; padding-bottom: 0; }
.nd-root .nd-home { display: flex; flex-direction: column; }
.nd-root .nd-home .nd-section { display: block; padding: 56px 0; }
.nd-root .nd-home .nd-section > .nd-container { display: flex; flex-direction: column; gap: 20px; }
.nd-root .nd-home .nd-home__hero { padding: 64px 0 48px; }
.nd-root .nd-home .nd-home__hero > .nd-container { gap: 28px; max-width: 1000px; }
.nd-root .nd-home .nd-home__map { padding: 40px 0 48px; }
.nd-root .nd-home .nd-home__map > .nd-container { gap: 12px; }
.nd-root .nd-home .nd-home__need { padding: 24px 0 56px; }
.nd-root .nd-hero { max-width: none; gap: 12px; }
.nd-root .nd-hero h1 { margin: 0; }
.nd-root .nd-lead { font-size: 19px; color: var(--nd-ink, #1B2540); }
.nd-root .nd-home__count { margin: 0; font-size: 16px; color: var(--nd-ink, #1B2540); }
.nd-root .nd-row--between { justify-content: space-between; align-items: flex-end; gap: 16px; }
.nd-root .nd-home h2 { margin: 0; }
.nd-root .nd-home .nd-searchbar { max-width: none; flex-wrap: nowrap; }
.nd-root .nd-home .nd-searchbar .nd-field { flex: 1 1 0; }
.nd-root .nd-home .nd-searchbar .nd-field--grow { flex: 1.3 1 0; }
.nd-root .nd-home .nd-searchbar .nd-btn { min-height: 48px; padding: 10px 28px; white-space: nowrap; }
.nd-root .nd-places { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nd-root .nd-place { display: flex; flex-direction: column; gap: 4px; }
.nd-root .nd-place h3 { margin-bottom: 8px; }
.nd-root .nd-place h3 .nd-muted { font-weight: 500; }
.nd-root .nd-place > a.nd-place__all { border-bottom: 0; color: var(--nd-navy); font-weight: 600; }
.nd-root .nd-home .nd-cta { padding: 32px; }
@media (max-width: 1099px) { .nd-root .nd-places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
	.nd-root .nd-home .nd-searchbar { flex-wrap: wrap; }
	.nd-root .nd-home .nd-searchbar .nd-field, .nd-root .nd-home .nd-searchbar .nd-field--grow { flex: 1 1 100%; }
	.nd-root .nd-home .nd-searchbar .nd-btn { width: 100%; }
	.nd-root .nd-home .nd-home__hero { padding: 40px 0 32px; }
	.nd-root.nd-root--home { padding-bottom: 0; }
}
@media (max-width: 599px) { .nd-root .nd-places { grid-template-columns: 1fr; } }

/* ---- Map: pale base, navy clusters, 44px zoom buttons ---- */
.nd-root #nd-map { height: 440px; border-radius: 12px; background: var(--nd-blue-tint); position: relative; z-index: 0; }
.nd-root #nd-map .nd-map-tiles { filter: grayscale(1) contrast(.5) brightness(1.55); opacity: .55; }
.nd-root #nd-map .leaflet-marker-icon.nd-cluster, .nd-root #nd-map .leaflet-marker-icon.nd-pin { background: var(--nd-navy); border: 3px solid #fff; border-radius: 50%; color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; margin: 0; }
.nd-root #nd-map .leaflet-marker-icon.nd-cluster:hover, .nd-root #nd-map .leaflet-marker-icon.nd-pin:hover { background: var(--nd-navy-deep); }
.nd-root #nd-map .leaflet-bar { border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 6px; }
.nd-root #nd-map .leaflet-bar a, .nd-root #nd-map .leaflet-bar a:hover { width: 44px; height: 44px; line-height: 42px; font-size: 22px; font-weight: 400; color: var(--nd-navy); background: #fff; border: 1px solid var(--nd-border); border-radius: 10px; text-decoration: none; }
.nd-root #nd-map .leaflet-bar a:first-child, .nd-root #nd-map .leaflet-bar a:last-child { border-radius: 10px; }
.nd-root #nd-map .leaflet-popup-content-wrapper { border-radius: 10px; border: 1px solid var(--nd-border); box-shadow: 0 1px 2px rgba(3, 27, 78, .06); color: var(--nd-navy); }
.nd-root #nd-map .leaflet-popup-content { margin: 12px 14px; font-size: 15px; font-family: inherit; line-height: 1.4; }
.nd-root #nd-map .leaflet-popup-content a { color: var(--nd-navy); text-decoration: underline; font-weight: 600; }
.nd-root #nd-map .leaflet-popup-close-button { width: 44px; height: 44px; font-size: 22px; line-height: 44px; }
.nd-root #nd-map .leaflet-control-attribution { font-size: 11px; }
.nd-root .nd-home .nd-searchbar .nd-input { min-height: 48px; }

/* ---- Sign-up and member pages ---- */
.nd-root .nd-root { padding: 0; }
.nd-root .nd-signup-band { padding: 56px 0 72px; }
.nd-root .nd-signup { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
.nd-root .nd-signup__intro { display: flex; flex-direction: column; gap: 20px; }
.nd-root .nd-signup__intro h1 { margin: 0; }
.nd-root .nd-lead { margin: 0; }
.nd-root .nd-signup__perks { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.nd-root .nd-signup__perks h2 { margin: 0; }
.nd-root .nd-signup__perks ul { display: flex; flex-direction: column; gap: 8px; }
.nd-root .nd-plan-li { font-size: 15px; }
.nd-root .nd-plan-li svg { flex: none; margin-top: 4px; color: var(--nd-green); }
.nd-root .nd-signup__form { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.nd-root .nd-signup__form h2 { margin: 0; }
.nd-root .nd-signup__form .nd-fs { margin: 0; }
.nd-root .nd-center { text-align: center; margin: 0; }
/* Log in, reset and "already listed" pages: the same pale band as sign-up, with the form on the right and a short intro on the left. */
.nd-root .nd-auth-narrow { max-width: 560px; }
.nd-root .nd-loginform { display: flex; flex-direction: column; gap: 18px; padding: 32px; max-width: 480px; }
.nd-root .nd-signup .nd-loginform { max-width: none; }
.nd-root .nd-signup__side { display: flex; flex-direction: column; gap: 16px; }
.nd-root .nd-signup--login { align-items: center; }
.nd-root .nd-signup--login .nd-signup__intro .nd-spot { height: 220px; width: auto; align-self: flex-start; }
.nd-root .nd-loginform .nd-btn { align-self: flex-start; }
.nd-root .nd-loginform .nd-btn--block { align-self: stretch; }
@media (max-width: 899px) { .nd-root .nd-loginform { padding: 24px; } .nd-root .nd-signup--login .nd-signup__intro .nd-spot { display: none; } }
@media (max-width: 899px) { .nd-root .nd-signup-band { padding: 32px 0 48px; } .nd-root .nd-signup { grid-template-columns: minmax(0, 1fr); gap: 24px; } .nd-root .nd-signup__form { padding: 24px; } }
.nd-root .nd-signup__form .nd-fs { gap: 4px; }

/* ---- Member dashboard ---- */
.nd-root .nd-dash { padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.nd-root .nd-dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.nd-root .nd-dash__title { display: flex; flex-direction: column; gap: 6px; }
.nd-root .nd-dash__title h1, .nd-root .nd-dash__title p { margin: 0; }
.nd-root .nd-badge--lg { font-size: 14px; padding: 6px 14px; }
.nd-root .nd-dash__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.nd-root .nd-dash__form { display: flex; flex-direction: column; max-width: 720px; }
.nd-root .nd-dash__save { display: flex; gap: 12px; padding-top: 24px; border-top: 1px solid var(--nd-border); align-items: center; flex-wrap: wrap; }
.nd-root .nd-dash__save p { margin: 0 0 0 auto; }
.nd-root .nd-dash__aside { display: flex; flex-direction: column; gap: 24px; }
.nd-root .nd-photo-row { display: flex; gap: 24px; align-items: flex-start; }
.nd-root .nd-photo-row .nd-field { flex: 1; min-width: 0; }
.nd-root .nd-file { font: inherit; font-size: 15px; min-height: 44px; }
.nd-root .nd-chipset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nd-root .nd-chipset > legend { padding: 0; margin-bottom: 8px; }
.nd-root .nd-chips { gap: 8px; }
.nd-root .nd-chip--check { position: relative; }
.nd-root .nd-chip--check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nd-root .nd-chip--check:has(input:checked) { background: var(--nd-navy); color: #fff; }
.nd-root .nd-chip--check:has(input:checked)::before { content: '\2713'; font-weight: 700; }
.nd-root .nd-chip--check:has(input:focus-visible) { outline: 3px solid #1A4FD6; outline-offset: 2px; }
.nd-root .nd-checks { flex-direction: row; flex-wrap: wrap; gap: 2px 24px; }
.nd-root .nd-checks > legend { width: 100%; }
.nd-root .nd-inbox-card { padding: 0; overflow: hidden; }
.nd-root .nd-inbox-card__head { padding: 20px 20px 12px; display: flex; justify-content: space-between; align-items: center; }
.nd-root .nd-inbox-card__head h2 { margin: 0; }
.nd-root .nd-inbox-card__foot { padding: 12px 20px; border-top: 1px solid var(--nd-border); }
.nd-root .nd-inbox-card__foot a { font-weight: 600; font-size: 15px; }
.nd-root .nd-inbox-card__empty { padding: 0 20px 20px; margin: 0; }
.nd-root .nd-inbox-card .nd-inbox { gap: 0; }
.nd-root .nd-inbox-card .nd-inbox a { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; text-decoration: none; color: var(--nd-text, inherit); border-bottom: 1px solid var(--nd-border); min-height: 44px; }
.nd-root .nd-inbox-card .nd-inbox a:hover { background: var(--nd-blue-tint); }
.nd-root .nd-inbox-card .nd-inbox a:last-child { border-bottom: 0; }
.nd-root .nd-plans { gap: 24px; align-items: stretch; }
.nd-root .nd-plan { display: flex; flex-direction: column; gap: 14px; }
.nd-root .nd-plan__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.nd-root .nd-plan h3, .nd-root .nd-plan p { margin: 0; }
.nd-root .nd-plan__price { font-size: 28px; font-weight: 700; color: var(--nd-navy); }
.nd-root .nd-plan__price span { font-size: 15px; font-weight: 500; color: var(--nd-muted); }
.nd-root .nd-plan ul { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nd-root .nd-publish ul:not(.nd-evlist) { list-style: disc; padding-left: 1.25em; display: flex; flex-direction: column; gap: 4px; }
.nd-root .nd-signup__form .nd-fs { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--nd-border); border-radius: 12px; padding: 20px 24px; }
.nd-root .nd-signup__form .nd-fs > legend { font-size: var(--nd-h4, 18px); padding: 0 8px; }
@media (max-width: 899px) {
	.nd-root .nd-dash { padding-top: 24px; }
	.nd-root .nd-dash__grid { grid-template-columns: 1fr; }
	.nd-root .nd-fs { grid-template-columns: 1fr; }
	.nd-root .nd-photo-row { flex-direction: column; }
}

/* Result card: description line and fact row as in the mockup */
.nd-root .nd-card__blurb { font-size: 17px; }
.nd-root .nd-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; align-items: center; }
.nd-root .nd-facts > span { display: inline-flex; align-items: center; gap: 6px; }

/* "Others in this area": equal-height cards, buttons pinned to the bottom, text given room */
.nd-root .nd-others { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: stretch; gap: 16px; }
.nd-root .nd-others .nd-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; height: 100%; }
.nd-root .nd-others .nd-row { align-items: flex-start; gap: 12px; flex-wrap: nowrap; }
.nd-root .nd-others .nd-row > div { min-width: 0; }
.nd-root .nd-others .nd-avatar { flex: none; width: 44px; height: 44px; font-size: 15px; }
.nd-root .nd-others h3 { font-size: 16px; line-height: 1.3; margin: 0 0 2px; overflow-wrap: anywhere; }
.nd-root .nd-others .nd-card p { margin: 0; }
.nd-root .nd-others .nd-btn { margin-top: auto; width: 100%; }

.nd-root .nd-profile__blurb { font-size: 18px; margin: 0; }

/* ---- Phone layouts for result cards and profile headers: photo beside the name, short meta, quick contact ---- */
.nd-root .nd-ics { display: inline-flex; gap: 4px; }
.nd-root .nd-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--nd-blue-tint); color: var(--nd-navy); }
.nd-root .nd-contact-btns { display: flex; flex-wrap: wrap; gap: var(--nd-space-2) var(--nd-space-3); margin-top: var(--nd-space-2); }
/* The main buttons are navy; pressed, they go to a lighter blue (white text on #4B64A8 is 5.7:1). */
.nd-root .nd-contact-btns a.nd-btn--primary:active, .nd-root .nd-contact-btns a.nd-btn--primary:active:hover { background: #4B64A8; border-color: #4B64A8; color: #fff; }
/* The website line in the where-and-how list is one link: the icon and the words. */
.nd-root .nd-quicklink { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.nd-root .nd-quicklink > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.nd-root .nd-quicklink:hover > span:last-child { text-decoration-thickness: 2px; }
.nd-root .nd-quickinfo { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nd-root .nd-quickinfo li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
@media (max-width: 899px) {
	.nd-root .nd-card--result { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px 16px; padding: 16px; align-items: start; }
	.nd-root .nd-card--result > .nd-card__body { display: contents; }
	.nd-root .nd-card--result > .nd-avatar { width: 88px; height: 88px; border-radius: 14px; font-size: 28px; grid-column: 1; grid-row: 1; }
	.nd-root .nd-card--result > .nd-avatar--photo img { border-radius: 14px; }
	.nd-root .nd-card--result .nd-card__top { grid-column: 2; grid-row: 1; flex-wrap: wrap; align-self: center; }
	.nd-root .nd-card--result .nd-card__body > :not(.nd-card__top) { grid-column: 1 / -1; }
	.nd-root .nd-card--result .nd-card__blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.nd-root .nd-contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
	.nd-root .nd-contact-btns .nd-btn:only-child { grid-column: 1 / -1; }
	.nd-root .nd-quickinfo { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--nd-border); border-radius: 14px; padding: 16px; }
	.nd-root .nd-quickinfo li { display: flex; align-items: center; gap: 12px; }
	.nd-root .nd-quickinfo li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
}

/* ---- Polish toward a card-based, softly bordered look (Psychology Today style) ---- */
.nd-root.nd-root--tint { background: color-mix(in srgb, var(--nd-blue-tint) 55%, #fff); }
.nd-root.nd-root--tint .nd-chip:not(.nd-chip--on) { background: #fff; border-color: var(--nd-border); }
.nd-root.nd-root--tint .nd-chip:not(.nd-chip--on):hover { background: var(--nd-blue-tint); }
.nd-root .nd-card--result:hover { border-color: #B9C6E2; }
.nd-root .nd-card--result.nd-card--featured, .nd-root .nd-card--result.nd-card--featured:hover { border: 2px solid var(--nd-gold, #E0A100); }
.nd-root .nd-card--result.nd-card--standard, .nd-root .nd-card--result.nd-card--standard:hover { border: 2px solid var(--nd-green); }
/* Featured is slightly bigger on a wide screen: more room, a larger photo and name. (A phone keeps its compact grid.) */
@media (min-width: 900px) {
	.nd-root .nd-card--result.nd-card--featured { padding: 32px 32px 28px; gap: 24px; }
	.nd-root .nd-card--result.nd-card--featured > .nd-avatar { width: 108px; height: 108px; font-size: 34px; }
	.nd-root .nd-card--result.nd-card--featured h2 { font-size: 22px; }
}
.nd-root .nd-avatar:not(.nd-avatar--photo) { background: var(--nd-blue-chip); color: var(--nd-navy); }
.nd-root .nd-card--result > .nd-avatar { border-radius: 14px; }
.nd-root .nd-card--result > .nd-avatar { width: 88px; height: 88px; font-size: 28px; }
.nd-root .nd-avatar--photo img { border-radius: inherit; }
.nd-root .nd-tick { display: inline-flex; vertical-align: middle; margin-left: 8px; color: var(--nd-green); }
.nd-root .nd-card h2 .nd-tick svg { width: 20px; height: 20px; }
.nd-root .nd-card__sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nd-root .nd-phead .nd-quickinfo .nd-ic, .nd-root .nd-profile__aside .nd-ic { width: 32px; height: 32px; }
/* Profile body: each section is a white card on the grey page. "Others in" holds cards of its own, so it stays unboxed. */
.nd-root .nd-profile__main { gap: var(--nd-space-4); }
.nd-root .nd-profile__main > .nd-section { background: #fff; border-radius: var(--nd-radius); box-shadow: var(--nd-shadow); padding: var(--nd-space-6); gap: var(--nd-space-4); }
.nd-root .nd-profile__main > .nd-section:has(> .nd-others), .nd-root .nd-profile__main > .nd-section:has(> .nd-nearby) { background: none; box-shadow: none; padding: var(--nd-space-2) 0 0; }
@media (max-width: 899px) {
	.nd-root .nd-quickinfo li { font-size: 16px; }
}

/* ---- Profile on a phone: cards in one column, the form before "Others", Others as rows ---- */
@media (max-width: 899px) {
	.nd-root .nd-profile { flex-direction: column; flex-wrap: nowrap; gap: var(--nd-space-4); }
	.nd-root .nd-profile__main { display: contents; }
	.nd-root .nd-profile__main > .nd-section { padding: var(--nd-space-5); }
	.nd-root .nd-profile__aside { order: 1; flex: none; width: 100%; margin: 0; }
	.nd-root .nd-profile__main > .nd-section:has(> .nd-others), .nd-root .nd-profile__main > .nd-section:has(> .nd-nearby) { order: 2; padding: var(--nd-space-2) 0 0; }
	.nd-root .nd-others { grid-template-columns: 1fr; gap: 12px; }
	.nd-root .nd-others .nd-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 16px; height: auto; }
	.nd-root .nd-others .nd-card > .nd-row { grid-column: 1; }
	.nd-root .nd-others .nd-card > p { grid-column: 1; }
	.nd-root .nd-others .nd-card > .nd-btn { grid-column: 2; grid-row: 1 / span 3; width: auto; margin: 0; border: 0; background: none; padding: 0 8px; min-width: 44px; text-decoration: underline; }
}

/* Quick questions card on the member dashboard */
.nd-root .nd-quickq { display: flex; flex-direction: column; gap: 8px; background: var(--nd-blue-tint); border-color: var(--nd-blue-tint); }
.nd-root .nd-quickq h2, .nd-root .nd-quickq p { margin: 0; }
.nd-root .nd-quickq ul { display: flex; flex-direction: column; }
.nd-root .nd-quickq li a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Accessibility: the kit's input border (#D5DCE8) is 1.4:1 against white; form controls need 3:1 (WCAG 1.4.11). Hover and error keep the kit's colours. */
.nd-root .nd-input:not(:hover):not(.nd-input--error) { border-color: #7A8396; }

/* Plans */
.nd-root .nd-plan__buy { display: flex; flex-direction: column; gap: 8px; }
.nd-root .nd-plan__buy p { margin: 0; }
.nd-root .nd-plan__buy form { margin: 0; }
.nd-root .nd-plan li > span { min-width: 0; }
.nd-root .nd-numbers p { line-height: 1.8; }
.nd-root .nd-bullets { list-style: disc; padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; }

/* Featured strip on the directory home and guide pages */
.nd-root .nd-featured-strip { padding: 40px 0 16px; }
.nd-root .nd-featured-strip .nd-container { display: flex; flex-direction: column; gap: 16px; }
.nd-root .nd-featured-strip h2 { margin: 0; }
.nd-root .nd-cards--strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

/* Hand-written guide section under the results, and the [nd_find] block for screening pages. */
.nd-root .nd-guide { max-width: 72ch; margin: var(--nd-space-6, 32px) 0; }
.nd-root .nd-guide p { margin: 0 0 14px; }
.nd-root .nd-find { margin: 24px 0; }
.nd-root .nd-find .nd-chips { margin-top: 12px; }

/* ==== Design pass (November 2026) ==== */

/* Buttons. Hello Elementor's reset colours every button, [type=submit] and their :hover and :focus states pink (#c36).
   An element plus class under .nd-root outranks it, so each state is restated here in the kit's colours. */
.nd-root button.nd-btn, .nd-root input.nd-btn { font: inherit; font-size: var(--nd-text-md); font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: normal; border-width: 2px; border-style: solid; border-radius: var(--nd-radius-sm); }
.nd-root button.nd-btn--primary, .nd-root button.nd-btn--primary:focus { background: var(--nd-navy); border-color: var(--nd-navy); color: #fff; }
.nd-root button.nd-btn--primary:hover, .nd-root button.nd-btn--primary:active { background: var(--nd-navy-deep); border-color: var(--nd-navy-deep); color: #fff; }
.nd-root button.nd-btn--secondary, .nd-root button.nd-btn--secondary:focus { background: #fff; border-color: var(--nd-navy); color: var(--nd-navy); }
.nd-root button.nd-btn--secondary:hover, .nd-root button.nd-btn--secondary:active { background: var(--nd-blue-chip); border-color: var(--nd-navy); color: var(--nd-navy); }
.nd-root button.nd-btn--text, .nd-root button.nd-btn--text:focus { background: transparent; border-color: transparent; color: var(--nd-navy); }
.nd-root button.nd-btn--text:hover, .nd-root button.nd-btn--text:active { background: var(--nd-blue-tint); border-color: transparent; color: var(--nd-navy); }
.nd-root button.nd-btn[disabled], .nd-root button.nd-btn[disabled]:hover { background: var(--nd-navy); border-color: var(--nd-navy); color: #fff; opacity: .45; }
.nd-root button.nd-btn--secondary[disabled], .nd-root button.nd-btn--secondary[disabled]:hover { background: #fff; color: var(--nd-navy); }
.nd-root button.nd-btn:focus:not(:focus-visible) { outline: 0; }

/* Gentle feedback: a short colour change on hover and a 1px press. Motion is off when the visitor asks for less. */
.nd-root .nd-btn, .nd-root .nd-chip, .nd-root .nd-page, .nd-root .nd-card--result { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease; }
.nd-root .nd-btn:active:not([disabled]) { transform: translateY(1px); }

/* Icons: Phosphor fill, navy by default, sized by the markup. */
.nd-root .nd-icon { flex: none; display: inline-block; vertical-align: middle; }
.nd-root .nd-facts .nd-icon { color: var(--nd-navy); }

/* Tags: plain labels that are not links. 6px corners so they never look like buttons; links keep the pill chip. */
.nd-root .nd-tags { display: flex; flex-wrap: wrap; gap: var(--nd-space-2); }
.nd-root .nd-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; background: var(--nd-blue-tint); color: var(--nd-navy); font-size: 15px; font-weight: 500; line-height: 1.5; }
.nd-root .nd-tags .nd-chip { min-height: 32px; padding: 3px 12px; font-size: 15px; }

/* "Who and how they work": label and values in rows split by hairlines. */
.nd-root .nd-facets { margin: 0; display: flex; flex-direction: column; }
.nd-root .nd-facets__row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--nd-space-2) var(--nd-space-5); padding: var(--nd-space-4) 0; border-top: 1px solid var(--nd-border); }
.nd-root .nd-facets__row:first-child { border-top: 0; padding-top: 0; }
.nd-root .nd-facets dt { font-weight: 600; color: var(--nd-muted); font-size: 15px; padding-top: 3px; }
.nd-root .nd-facets dd { margin: 0; }
/* On a phone the label sits above its tags, so the tags use the whole width and flow along the line. */
@media (max-width: 639px) {
	.nd-root .nd-facets__row { grid-template-columns: minmax(0, 1fr); gap: var(--nd-space-2); }
	.nd-root .nd-facets dt { padding-top: 0; }
}

/* At a glance: clean rows with no tinted box. Still a table underneath. */
.nd-root .nd-glance-box { background: none; border-radius: 0; padding: 0; }
/* Themes such as Hello Elementor give every table cell a grey border, striped rows and a hover shade. Switch those off here. */
.nd-root table.nd-table { margin: 0; border: 0; background: transparent; border-collapse: collapse; width: 100%; font-size: var(--nd-text-md); }
.nd-root table.nd-table th, .nd-root table.nd-table td, .nd-root table.nd-table tr:hover > th, .nd-root table.nd-table tr:hover > td { border: 0; background: transparent; line-height: 1.5; }
.nd-root table.nd-table tr + tr th, .nd-root table.nd-table tr + tr td { border-top: 1px solid var(--nd-border); }
.nd-root .nd-glance-box .nd-table { margin: 0; border-collapse: collapse; width: 100%; }
.nd-root .nd-glance-box .nd-table th { width: 32%; padding: var(--nd-space-3) var(--nd-space-4) var(--nd-space-3) 0; font-size: 15px; font-weight: 600; color: var(--nd-muted); }
.nd-root .nd-glance-box .nd-table td { padding: var(--nd-space-3) 0; font-weight: 600; color: var(--nd-navy); overflow-wrap: anywhere; }
.nd-root .nd-glance-box .nd-table td strong { font-weight: 700; }
.nd-root .nd-glance-box .nd-table tr:first-child th, .nd-root .nd-glance-box .nd-table tr:first-child td { padding-top: 0; }
.nd-root .nd-glance-box .nd-table tr + tr th, .nd-root .nd-glance-box .nd-table tr + tr td { border-top: 1px solid var(--nd-border); }
.nd-root .nd-glance-box + p { margin: 0; }

/* Readable bios: a 65 character measure, room between paragraphs, and a line that is only bold text reads as a sub-heading. */
.nd-root .nd-prose { max-width: 65ch; gap: var(--nd-space-4); line-height: 1.65; }
.nd-root .nd-prose p:has(> strong:only-child), .nd-root .nd-prose p:has(> b:only-child) { margin-top: var(--nd-space-3); font-weight: 700; color: var(--nd-navy); }
.nd-root .nd-prose h2, .nd-root .nd-prose h3, .nd-root .nd-prose h4 { margin: var(--nd-space-3) 0 0; font-size: var(--nd-text-lg, 18px); }
.nd-root .nd-prose li + li { margin-top: var(--nd-space-1); }

/* Dropdowns: the browser's own arrow sits hard against the edge. Draw a navy one with room around it. */
.nd-root select.nd-input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23232F55'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 18px 18px; }
.nd-root select.nd-input[disabled] { cursor: not-allowed; }
/* Windows high contrast removes background images, so give the browser's own arrow back there. */
@media (forced-colors: active) { .nd-root select.nd-input { appearance: auto; -webkit-appearance: menulist; padding-right: 14px; background-image: none; } }

/* The fixed bars at the bottom of a phone screen must not hide the field a keyboard user tabs to (WCAG 2.2, focus not obscured). */
@media (max-width: 899px) {
	html:has(.nd-enquiry-bar) { scroll-padding-bottom: 96px; }
	.nd-root .nd-filters--drawer { scroll-padding-bottom: 96px; }
}

/* ==== Profile: a full-width white header band, then a grey page of white cards with the sidebar on the right ==== */
.nd-root.nd-root--profile { padding-top: 0; background: var(--nd-blue-tint); }
.nd-root .nd-phead { background: #fff; border-bottom: 1px solid var(--nd-border); padding-bottom: var(--nd-space-6); }
.nd-root .nd-phead .nd-crumbs { padding: var(--nd-space-4) 0; margin-bottom: var(--nd-space-5); border-bottom: 1px solid var(--nd-border); }
.nd-root .nd-phead__row { display: flex; gap: var(--nd-space-6); align-items: flex-start; }
.nd-root .nd-phead .nd-avatar { flex: none; width: 160px; height: 160px; border-radius: 50%; border: 4px solid var(--nd-navy); box-sizing: border-box; font-size: 48px; }
.nd-root .nd-phead .nd-avatar--photo img { border-radius: 50%; }
.nd-root .nd-phead__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--nd-space-3); }
.nd-root .nd-phead__main p, .nd-root .nd-phead h1 { margin: 0; }
.nd-root .nd-phead__id { display: flex; flex-direction: column; gap: var(--nd-space-1); }
.nd-root .nd-phead__practice { font-size: 18px; font-weight: 600; color: var(--nd-navy); }
.nd-root .nd-phead__more { display: flex; flex-direction: column; gap: var(--nd-space-3); padding-top: var(--nd-space-4); margin-top: var(--nd-space-1); border-top: 1px solid var(--nd-border); }
/* A paid plan is seen at a glance on the result cards: Featured has a gold edge, Standard a green one (the profile page itself has none).
   The words ("Featured ad") always say it too, never the colour alone. */
.nd-root { --nd-gold: #E0A100; }
.nd-root .nd-pbody { padding-top: var(--nd-space-6); }
@media (max-width: 899px) {
	.nd-root .nd-phead { padding-bottom: var(--nd-space-5); }
	.nd-root .nd-phead .nd-crumbs { margin-bottom: var(--nd-space-4); }
	.nd-root .nd-phead__row { flex-direction: column; gap: var(--nd-space-4); }
	.nd-root .nd-phead .nd-avatar { width: 112px; height: 112px; font-size: 36px; }
	.nd-root .nd-phead h1 { font-size: 28px; }
	.nd-root .nd-phead__main, .nd-root .nd-phead__more { width: 100%; }
	.nd-root .nd-pbody { padding-top: var(--nd-space-4); }
}

/* "Accepting new clients": a green dot, with a soft ring that pulses three times (under five seconds, so it never becomes endless motion)
   and then rests. nd.js starts the pulse when the dot scrolls into view; without it the pulse runs when the page loads. The words always carry the meaning. */
.nd-root .nd-live { display: inline-flex; align-items: center; gap: var(--nd-space-2); font-weight: 600; color: var(--nd-green); }
.nd-root .nd-live__dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--nd-green); }
.nd-root .nd-live__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--nd-green); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
	.nd-root .nd-live__dot::after { animation: nd-live 1.6s ease-out 3; }
	.nd-js .nd-root .nd-live__dot::after { animation-play-state: paused; }
	.nd-js .nd-root .nd-live.is-seen .nd-live__dot::after { animation-play-state: running; }
	@keyframes nd-live { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3); opacity: 0; } }
}

/* Intro call booking button, in the facts row on cards and on the profile. On a card it sits above the whole-card link. */
.nd-root .nd-intro { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.nd-root .nd-card--result .nd-intro { position: relative; z-index: 1; }

.nd-root .nd-form--narrow { max-width: 640px; }
.nd-root .nd-delete { max-width: 640px; margin-top: var(--nd-space-5); }

/* Groups of tick boxes in the listing form: an even grid, so the boxes line up in columns whatever the length of each label, with every
   box centred on its words. (A wrapping row let each column drift with the label before it.) */
.nd-root .nd-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 var(--nd-space-5); align-content: start; }
.nd-root .nd-checks > legend { margin-bottom: var(--nd-space-2); }
.nd-root .nd-checks .nd-check { align-items: center; min-width: 0; overflow-wrap: anywhere; }
.nd-root .nd-checks .nd-check input { margin: 0; }
.nd-root .nd-checks + .nd-help, .nd-root .nd-checks ~ .nd-help { margin-top: var(--nd-space-2); }

/* Small helpers that replaced inline styles. */
.nd-root .nd-confirmed { margin: var(--nd-space-4) 0 0; }
.nd-root .nd-more { align-self: flex-start; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.nd-root .nd-row--nowrap { flex-wrap: nowrap; align-items: center; gap: var(--nd-space-3); }
.nd-root .nd-row--nowrap > div { min-width: 0; }
.nd-root .nd-stack--tight { gap: var(--nd-space-2); }


/* Home: places as plain columns with hairlines instead of boxes; search band left-aligned. */
.nd-root .nd-home__place .nd-place.nd-card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.nd-root .nd-home__place .nd-place h3 { padding-bottom: var(--nd-space-2); margin-bottom: 0; border-bottom: 2px solid var(--nd-navy); }
.nd-root .nd-places { gap: var(--nd-space-6) var(--nd-space-7); }
.nd-root .nd-home .nd-home__hero > .nd-container { margin-left: auto; margin-right: auto; max-width: var(--nd-container); }
.nd-root .nd-home .nd-hero { max-width: 46rem; }
.nd-root .nd-home .nd-searchbar { max-width: 60rem; }
.nd-root .nd-home .nd-home__hero { padding: var(--nd-space-8) 0 var(--nd-space-7); }
@media (max-width: 899px) { .nd-root .nd-home .nd-home__hero { padding: 40px 0 32px; } .nd-root .nd-places { gap: var(--nd-space-5); } }

/* Map: quieter tiles, navy markers. */
.nd-root #nd-map .nd-map-tiles { filter: grayscale(1) contrast(.85) brightness(1.12); opacity: .7; }
.nd-root #nd-map .leaflet-marker-icon.nd-pin { box-shadow: 0 1px 2px rgba(3, 27, 78, .25); }

/* Spot illustrations: decorative, navy and pale blue, never wider than they need to be. */
.nd-root .nd-spot { flex: none; display: block; width: auto; height: 160px; }
.nd-root .nd-spot--empty { height: 170px; }
.nd-root .nd-cta--art { flex-wrap: nowrap; justify-content: flex-start; }
.nd-root .nd-cta--art > a { margin-left: auto; }
.nd-root .nd-empty--art { flex-direction: row; align-items: center; gap: var(--nd-space-6); }
.nd-root .nd-empty--art > div { display: flex; flex-direction: column; gap: var(--nd-space-3); align-items: flex-start; min-width: 0; }
.nd-root .nd-signup__intro .nd-spot { height: 180px; }
@media (max-width: 899px) {
	.nd-root .nd-cta--art, .nd-root .nd-empty--art { flex-wrap: wrap; flex-direction: column; align-items: flex-start; }
	.nd-root .nd-cta--art > a { margin-left: 0; }
	.nd-root .nd-spot { height: 120px; }
	.nd-root .nd-signup__intro .nd-spot { display: none; }
}

/* Entry motion. Content is visible without JavaScript: the hidden state only applies once nd.js has marked the page. */
@media (prefers-reduced-motion: no-preference) {
	.nd-js .nd-root .nd-reveal { opacity: 0; transform: translateY(8px); transition: opacity 400ms ease, transform 400ms ease; }
	.nd-js .nd-root .nd-reveal.is-in { opacity: 1; transform: none; }
	.nd-js .nd-root .nd-cards.nd-stagger > li { opacity: 0; transform: translateY(8px); animation: nd-up 320ms ease forwards; animation-delay: calc(min(var(--i, 0), 8) * 50ms); }
	@keyframes nd-up { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
	.nd-root .nd-btn, .nd-root .nd-chip, .nd-root .nd-page, .nd-root .nd-card--result { transition: none; }
	.nd-root .nd-btn:active:not([disabled]) { transform: none; }
}

/* ==== Result cards ====
   A calm, left-aligned card. A round photo; the name in a medium weight with a small "Verified" tag; the credentials and where in plain,
   quieter text; three lines of the practice's own words; one light line of facts; then a hairline and the actions on the right. Weight and
   colour make the hierarchy (only the name and the buttons are semibold) and space does the separating, so nothing is crammed. */
.nd-root .nd-cards { gap: var(--nd-space-4); }
.nd-root .nd-card--result { display: flex; align-items: flex-start; gap: var(--nd-space-5); padding: var(--nd-space-5) var(--nd-space-6); box-shadow: 0 1px 2px rgba(35, 47, 85, .05), 0 10px 28px -18px rgba(35, 47, 85, .22); }
.nd-root .nd-card--result:hover { border-color: #B9C6E2; box-shadow: 0 1px 2px rgba(35, 47, 85, .06), 0 14px 32px -18px rgba(35, 47, 85, .28); }
.nd-root .nd-card--result > .nd-avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--nd-navy); box-sizing: border-box; font-size: 30px; }
.nd-root .nd-card--result > .nd-avatar--photo img { border-radius: 50%; }
.nd-root .nd-card--result .nd-card__body { gap: var(--nd-space-3); }
.nd-root .nd-card__id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nd-root .nd-card__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.nd-root .nd-card__name a { color: var(--nd-navy); text-decoration: none; }
.nd-root .nd-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nd-root .nd-card__verified { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid var(--nd-border); border-radius: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.5; color: var(--nd-muted); }
.nd-root .nd-card__verified svg { color: var(--nd-green); }
.nd-root .nd-card__sub { display: block; margin: 0; font-size: 15px; font-weight: 400; color: var(--nd-text, #1B2540); }
.nd-root .nd-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; font-size: 14px; color: var(--nd-muted); }
.nd-root .nd-card__meta .nd-ics { gap: 6px; }
.nd-root .nd-card__meta .nd-ic { width: auto; height: auto; background: none; color: var(--nd-muted); }
.nd-root .nd-card--result .nd-card__blurb { margin: 0; font-size: 16px; line-height: 1.6; color: #3B4559; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nd-root .nd-card--result .nd-facts { gap: 6px 20px; font-size: 14px; color: var(--nd-muted); }
.nd-root .nd-card--result .nd-facts > span { font-weight: 400; }
.nd-root .nd-card--result .nd-facts .nd-icon { color: var(--nd-muted); }
.nd-root .nd-card--result .nd-live { font-weight: 500; }
.nd-root .nd-card--result .nd-intro { min-height: 36px; padding: 4px 14px; font-size: 14px; }
.nd-root .nd-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--nd-space-3) var(--nd-space-4); flex-wrap: wrap; margin-top: var(--nd-space-1); padding-top: var(--nd-space-4); border-top: 1px solid var(--nd-border); }
.nd-root .nd-card__confirmed { font-size: 13px; color: var(--nd-muted); }
.nd-root .nd-card__actions { display: flex; flex-wrap: wrap; gap: var(--nd-space-3); margin-left: auto; }
.nd-root .nd-card__actions .nd-btn { min-height: 44px; padding: 8px 20px; font-size: 15px; }
/* The featured strip is narrower, so its cards give the buttons the full width. */
.nd-root .nd-cards--strip { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
.nd-root .nd-cards--strip .nd-card--result { padding: var(--nd-space-4) var(--nd-space-5); }
.nd-root .nd-cards--strip .nd-card__actions { margin-left: 0; width: 100%; }
@media (max-width: 899px) {
	.nd-root .nd-card--result { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--nd-space-3) var(--nd-space-4); padding: var(--nd-space-4); }
	.nd-root .nd-card--result > .nd-avatar { width: 72px; height: 72px; font-size: 24px; grid-column: 1; grid-row: 1; }
	.nd-root .nd-card--result > .nd-card__body { display: contents; }
	.nd-root .nd-card--result .nd-card__top { grid-column: 2; grid-row: 1; align-self: center; }
	.nd-root .nd-card--result .nd-card__body > :not(.nd-card__top) { grid-column: 1 / -1; }
	.nd-root .nd-card__name { font-size: 18px; }
	.nd-root .nd-card__meta { flex-wrap: nowrap; align-items: flex-start; }
	.nd-root .nd-card__meta > span:last-child { min-width: 0; padding-top: 1px; }
	.nd-root .nd-card__foot { flex-direction: column; align-items: stretch; gap: var(--nd-space-3); }
	.nd-root .nd-card__actions { display: grid; grid-template-columns: 1fr 1fr; margin-left: 0; width: 100%; }
	.nd-root .nd-card__actions .nd-btn { padding: 8px 10px; white-space: nowrap; }
	.nd-root .nd-card__confirmed { order: 2; }
	.nd-root .nd-cards--strip { grid-template-columns: minmax(0, 1fr); }
}

/* ==== Homepage practice grid ([nd_practices]) and search box ([nd_search]) ====
   Tiles are the result card stood upright: calm, left-aligned, a hairline above the buttons. One column below 640px, two from 640px, and
   four (or the number in columns="") from 1100px. CSS grid only, no script. Tiles in a row are the same height and the footers line up.
   Nothing moves on hover (colour and shadow only), so there is nothing to switch off for prefers-reduced-motion except the colour fade. */
.nd-root .nd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--nd-space-4); }
.nd-root .nd-grid__item { display: flex; margin: 0; padding: 0; min-width: 0; }
@media (min-width: 640px) { .nd-root .nd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
	.nd-root .nd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nd-root .nd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.nd-root .nd-tile { flex: 1; display: flex; flex-direction: column; gap: var(--nd-space-3); min-width: 0; padding: var(--nd-space-5); background: #fff; border: 1px solid var(--nd-border); border-radius: 16px; box-shadow: 0 1px 2px rgba(35, 47, 85, .05), 0 10px 28px -18px rgba(35, 47, 85, .22); transition: border-color 150ms ease, box-shadow 150ms ease; }
.nd-root .nd-tile:hover { border-color: #B9C6E2; box-shadow: 0 1px 2px rgba(35, 47, 85, .06), 0 14px 32px -18px rgba(35, 47, 85, .28); }
/* Featured has a gold edge and Standard a green one, as on the result cards. The edge is 2px, so the padding gives 1px back and the content lines up. */
.nd-root .nd-tile--featured, .nd-root .nd-tile--featured:hover { border: 2px solid var(--nd-gold, #E0A100); padding: calc(var(--nd-space-5) - 1px); }
.nd-root .nd-tile--standard, .nd-root .nd-tile--standard:hover { border: 2px solid var(--nd-green); padding: calc(var(--nd-space-5) - 1px); }
.nd-root .nd-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--nd-space-3); }
.nd-root .nd-tile__top .nd-badge { flex: none; }
.nd-root .nd-tile__top > .nd-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--nd-navy); box-sizing: border-box; font-size: 24px; }
.nd-root .nd-tile__top > .nd-avatar--photo img { border-radius: 50%; }
.nd-root .nd-tile__name { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.nd-root .nd-tile__name a, .nd-root .nd-tile__name a:hover { color: var(--nd-navy); text-decoration: none; }
.nd-root .nd-tile__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nd-root .nd-tile__sub { margin: 0; font-size: 15px; line-height: 1.45; color: var(--nd-text, #1B2540); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nd-root .nd-tile__meta { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--nd-muted); }
.nd-root .nd-tile__meta > span:last-child { min-width: 0; }
.nd-root .nd-tile__meta .nd-ics { gap: 6px; padding-top: 2px; }
.nd-root .nd-tile__meta .nd-ic { width: auto; height: auto; background: none; color: var(--nd-muted); }
.nd-root .nd-tile__blurb { margin: 0; font-size: 15px; line-height: 1.6; color: #3B4559; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nd-root .nd-tile__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.nd-root .nd-tile__tags .nd-live { font-weight: 500; }
.nd-root .nd-tile__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--nd-space-4); margin-top: auto; padding-top: var(--nd-space-4); border-top: 1px solid var(--nd-border); }
.nd-root .nd-tile__foot .nd-btn { flex: none; min-height: 44px; padding: 8px 20px; font-size: 15px; }
.nd-root a.nd-tile__link, .nd-root a.nd-tile__link:hover { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--nd-navy); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nd-root a.nd-tile__link:hover { text-decoration-thickness: 2px; }

/* Page links under the grid. The numbers are the kit's own nd-page links. */
.nd-root .nd-pager { margin-top: var(--nd-space-6); }
.nd-root .nd-pager__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nd-space-2); list-style: none; margin: 0; padding: 0; }
.nd-root .nd-pager__list li { margin: 0; padding: 0; }
.nd-root .nd-pager .nd-page--wide { gap: 6px; }
.nd-root .nd-pager__gap { display: inline-flex; align-items: center; justify-content: center; min-width: var(--nd-touch); height: var(--nd-touch); color: var(--nd-muted); }

/* The search box on its own: wide, one row on a big screen, stacked on a phone. Matches the search panel on the directory home. */
.nd-root .nd-searchblock .nd-searchbar { max-width: none; flex-wrap: nowrap; }
.nd-root .nd-searchblock .nd-searchbar .nd-field { flex: 1 1 0; }
.nd-root .nd-searchblock .nd-searchbar .nd-field--grow { flex: 1.3 1 0; }
.nd-root .nd-searchblock .nd-searchbar .nd-btn { min-height: 48px; padding: 10px 28px; white-space: nowrap; }
.nd-root .nd-searchblock .nd-searchbar .nd-input { min-height: 48px; }
@media (max-width: 899px) {
	.nd-root .nd-searchblock .nd-searchbar { flex-wrap: wrap; }
	.nd-root .nd-searchblock .nd-searchbar .nd-field, .nd-root .nd-searchblock .nd-searchbar .nd-field--grow { flex: 1 1 100%; }
	.nd-root .nd-searchblock .nd-searchbar .nd-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.nd-root .nd-tile { transition: none; }
}
