/* NDC Canopy — The Neurodiversity Centre
   Calm, predictable layout. One expressive element: the four-colour canopy from the logo.
   Service colours carry meaning: blue = assessment, teal = therapy, navy = training,
   green = post-diagnostic care. Orange is reserved for actions. */

:root {
	--orange: #F2901E;
	--orange-deep: #D97D0E;
	--orange-text: #B4600A;   /* orange that passes AA on white */
	--ink: #363B40;
	--ink-deep: #23272B;
	--text: #434343;
	--muted: #6A6F75;
	--line: #E4E4E4;
	--paper: #FFFFFF;
	--mist: #F4F4F4;
	--sky: #EEF4FB;           /* cool tint for alternating sections */

	--blue: #1863DC;  --blue-tint: #E8F0FC;
	--teal: #16A8C9;  --teal-tint: #E5F6FA;  --teal-text: #0E7690;
	--navy: #2D5DA8;  --navy-tint: #EAF0F8;
	--green: #8FBF3F; --green-tint: #F0F7E6; --green-text: #557A1B;

	--font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--step--1: 0.9rem;
	--step-0: 1.125rem;   /* 18px body: easier reading */
	--step-1: 1.35rem;
	--step-2: 1.75rem;
	--step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
	--step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.1rem);

	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--space: clamp(4rem, 3rem + 4vw, 7rem);
	--radius-s: 8px;
	--radius: 16px;
	--radius-l: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--step-0);
	line-height: 1.65;
	color: var(--text);
	background: var(--paper);
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 750; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ndc-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .7em 1.35em;
	font: 650 1rem/1.2 var(--font); text-decoration: none;
	border-radius: 999px; border: 2px solid transparent; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { min-height: 56px; padding-inline: 1.7em; font-size: 1.06rem; }
.btn--primary { background: var(--orange); color: var(--ink-deep); }
.btn--primary:hover { background: var(--orange-deep); color: var(--ink-deep); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { border-color: var(--ink); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { border-color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.text-link:hover { color: var(--orange-text); }
.text-link .ndc-icon { width: 1.1em; height: 1.1em; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink-deep); color: #D5D8DB; font-size: var(--step--1); }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1.5rem; padding-block: .5rem; }
.topbar__note { margin: 0; }
.topbar__links { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; gap: .45em; align-items: center; }
.topbar a:hover { text-decoration: underline; }
.topbar .ndc-icon { width: 1.05em; height: 1.05em; color: var(--orange); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { flex: none; display: block; }
.site-header .brand__logo { width: auto; height: 46px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: .55rem .7rem; color: var(--ink); font-weight: 550; font-size: 1rem; text-decoration: none; border-radius: var(--radius-s); }
.nav__list a:hover { background: var(--mist); }
.nav__list .current-menu-item > a, .nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav__list .sub-menu { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: .4rem; margin-left: auto;
		min-height: 48px; padding: .5rem 1rem; font: 650 1rem var(--font); color: var(--ink);
		background: var(--mist); border: 0; border-radius: 999px; cursor: pointer;
	}
	.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
	.nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(35,39,43,.25); }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; }
	.nav__list a { padding: .85rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav__list .current-menu-item > a, .nav__list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 1rem; }
	.site-header__inner { position: relative; min-height: 72px; }
	.site-header .brand__logo { height: 38px; }
}
@media (max-width: 640px) {
	.topbar__note, .topbar__links li:nth-child(2) { display: none; }
	.topbar__inner { justify-content: center; }
}

/* ---------- The canopy ---------- */
.ndc-canopy { display: block; }
.ndc-canopy .c-orange { fill: var(--orange); }
.ndc-canopy .c-green  { fill: var(--green); }
.ndc-canopy .c-teal   { fill: var(--teal); }
.ndc-canopy .c-blue   { fill: var(--navy); }

/* ---------- Sections ---------- */
.section-title { font-size: var(--step-3); max-width: 22ch; }
.section-intro { font-size: var(--step-1); color: var(--muted); max-width: 46ch; margin-bottom: 2.5rem; line-height: 1.5; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.split-head .section-title { margin: 0; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) var(--space); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__kicker { font-weight: 650; color: var(--orange-text); margin-bottom: 1.2rem; }
.hero__title { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; max-width: 13ch; margin-bottom: 1.5rem; }
.hero__lede { font-size: var(--step-1); line-height: 1.55; max-width: 36ch; color: var(--text); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__media { position: relative; margin: 0; padding-top: 21%; }
.hero__canopy { position: absolute; top: 0; left: -6%; width: 112%; max-width: none; }
.hero__media img { position: relative; width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; object-position: 40% 30%; border-radius: var(--radius-l) var(--radius-l) var(--radius-l) var(--radius-l); }
@media (prefers-reduced-motion: no-preference) {
	.hero__canopy path { transform-origin: 200px 200px; animation: canopy-open .9s cubic-bezier(.2,.8,.2,1) both; }
	.hero__canopy .c-green { animation-delay: .08s; }
	.hero__canopy .c-teal  { animation-delay: .16s; }
	.hero__canopy .c-blue  { animation-delay: .24s; }
	@keyframes canopy-open { from { transform: rotate(-35deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { max-width: 520px; padding-top: 16%; }
}

/* Paths: four colour-coded ways in */
.paths { padding-block: var(--space); background: var(--mist); }
.paths__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.path a {
	--c: var(--blue); --t: var(--blue-tint); --ct: var(--blue);
	display: flex; flex-direction: column; height: 100%;
	padding: 1.75rem 1.5rem 1.5rem; background: #fff; border-radius: var(--radius);
	color: var(--text); text-decoration: none;
	position: relative; overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.path a::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c); }
.path--teal a  { --c: var(--teal);  --t: var(--teal-tint);  --ct: var(--teal-text); }
.path--navy a  { --c: var(--navy);  --t: var(--navy-tint);  --ct: var(--navy); }
.path--green a { --c: var(--green); --t: var(--green-tint); --ct: var(--green-text); }
.path a:hover { box-shadow: 0 18px 40px -24px rgba(35,39,43,.45); transform: translateY(-3px); }
.path__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--t); color: var(--ct); margin-bottom: 1.25rem; }
.path__icon .ndc-icon { width: 26px; height: 26px; }
.path__title { font-size: var(--step-1); font-weight: 750; color: var(--ink); line-height: 1.25; margin-bottom: .6rem; }
.path__text { font-size: 1rem; line-height: 1.6; margin-bottom: 1.25rem; }
.path__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 650; font-size: 1rem; color: var(--ct); }
.path__more .ndc-icon { width: 1.1em; transition: transform .2s; }
.path a:hover .path__more .ndc-icon { transform: translateX(3px); }
@media (max-width: 1000px) { .paths__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .paths__list { grid-template-columns: 1fr; } }

/* Assessments list */
.assess { padding-block: var(--space); }
.assess__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.assess__intro { position: sticky; top: 8rem; }
.assess__intro p { font-size: var(--step-1); line-height: 1.55; color: var(--muted); margin-bottom: 1.75rem; }
.assess__list { margin: 0; border-top: 1px solid var(--line); }
.assess__item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.assess__item dt { display: flex; align-items: baseline; gap: .9rem; font-size: var(--step-1); font-weight: 750; color: var(--ink); margin-bottom: .4rem; }
.assess__item dd { margin: 0 0 0 calc(4.2rem + .9rem); max-width: 54ch; }
.tag { flex: none; display: inline-block; min-width: 4.2rem; text-align: center; padding: .2rem .55rem; font-size: .85rem; font-weight: 750; letter-spacing: .02em; color: var(--blue); background: var(--blue-tint); border-radius: 6px; }
@media (max-width: 860px) {
	.assess__grid { grid-template-columns: 1fr; }
	.assess__intro { position: static; }
	.assess__item dd { margin-left: 0; }
}

/* Steps: a real sequence, so numbered */
.steps-section { padding-block: var(--space); background: var(--sky); }
.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.5rem; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 14px); opacity: .45; }
.step { counter-increment: step; position: relative; }
.step::before { content: counter(step); display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.15rem; position: relative; box-shadow: 0 0 0 6px var(--sky); }
.step__title { font-size: var(--step-1); margin-bottom: .4rem; }
.step p { font-size: 1rem; margin: 0; }
@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr; gap: 1.75rem; }
	.steps::before { left: 1.5rem; right: auto; top: 1.5rem; bottom: 1.5rem; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--blue) 0 8px, transparent 8px 14px); }
	.step { padding-left: 4.5rem; }
	.step::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Reviews */
.reviews { padding-block: var(--space); }
.reviews__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; align-items: stretch; }
.review { margin: 0; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.review--lead { background: var(--ink); border-color: var(--ink); color: #E9EBED; }
.review--lead blockquote p { font-size: var(--step-1); color: #fff; }
.review__stars { display: flex; gap: 2px; color: var(--orange); margin-bottom: 1rem; }
.review__stars .ndc-icon { width: 1.05rem; height: 1.05rem; stroke-width: 1; }
.review blockquote { margin: 0 0 1.5rem; }
.review blockquote p { margin: 0; line-height: 1.55; }
.review figcaption { margin-top: auto; font-weight: 700; color: var(--ink); }
.review--lead figcaption { color: #fff; }
.review figcaption span { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.review--lead figcaption span { color: #B9BEC3; }
@media (max-width: 960px) { .reviews__grid { grid-template-columns: 1fr; } }

/* People */
.specialists { padding-block: 0 var(--space); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.5rem; }
.people--three { grid-template-columns: repeat(3, 1fr); }
.person img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 8%; border-radius: var(--radius); background: var(--mist); margin-bottom: 1rem; }
.person__name { font-size: var(--step-1); margin-bottom: .25rem; }
.person__role { font-size: 1rem; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 960px) { .people, .people--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .people, .people--three { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--ink); color: #DADDE0; padding-block: clamp(3rem, 2rem + 4vw, 5rem); position: relative; overflow: hidden; }
.cta-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-band h2 { color: #fff; font-size: var(--step-3); margin-bottom: .5rem; }
.cta-band p { max-width: 52ch; margin: 0; font-size: var(--step-1); line-height: 1.5; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Inner pages ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); background: var(--mist); }
.page-head__title { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; margin-bottom: 1rem; }
.page-head__lede { font-size: var(--step-1); line-height: 1.55; max-width: 48ch; margin: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.page-head__canopy { position: absolute; right: -60px; bottom: -2px; width: min(420px, 45vw); opacity: .95; }
.page-head .wrap { position: relative; z-index: 1; }
@media (max-width: 720px) { .page-head__canopy { width: 200px; right: -40px; opacity: .35; } }

/* Page-head colour accent: tells you which service area you are in */
.page-head--blue  { background: var(--blue-tint); }
.page-head--teal  { background: var(--teal-tint); }
.page-head--navy  { background: var(--navy-tint); }
.page-head--green { background: var(--green-tint); }

.section { padding-block: var(--space); }
.section--mist { background: var(--mist); }
.section--sky { background: var(--sky); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.two-col--top { align-items: start; }
.two-col img { width: 100%; border-radius: var(--radius-l); object-fit: cover; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Feature lists (icon + text rows, not boxed cards) */
.features { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.features--2 { grid-template-columns: repeat(2, 1fr); }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.feature { padding-top: 1.25rem; border-top: 3px solid var(--fc, var(--orange)); }
.feature h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.feature p { margin: 0; font-size: 1rem; }
.feature--blue  { --fc: var(--blue); }
.feature--teal  { --fc: var(--teal); }
.feature--navy  { --fc: var(--navy); }
.feature--green { --fc: var(--green); }
@media (max-width: 960px) { .features, .features--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features, .features--2, .features--4 { grid-template-columns: 1fr; } }

.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks .ndc-icon { color: var(--green-text); margin-top: .2em; }
.checks strong { color: var(--ink); display: block; }

.pill-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list li { padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 1rem; color: var(--ink); }

.quote-block { margin: 0; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-l); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.quote-block p { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.4; font-weight: 500; max-width: 38ch; margin: 0 0 1.5rem; position: relative; }
.quote-block cite { font-style: normal; font-weight: 650; color: var(--orange); position: relative; }
.quote-block .ndc-canopy { position: absolute; right: -40px; bottom: -4px; width: 280px; opacity: .25; }

.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: #FFF1DE; }
.notice p { margin: 0; color: var(--ink); max-width: 60ch; }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.contact-item { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-item .ndc-icon { width: 28px; height: 28px; color: var(--orange-text); margin-bottom: .9rem; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.contact-item p, .contact-item address { margin: 0; font-size: 1rem; }
.contact-item a { color: var(--ink); font-weight: 600; }
.contact-item .small { color: var(--muted); font-size: var(--step--1); margin-top: .4rem; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

.booking-shell { padding: clamp(1rem, 3vw, 2.5rem); border-radius: var(--radius-l); background: #fff; border: 1px solid var(--line); }

/* ---------- Content (blog, policies, plugin pages) ---------- */
.content-area { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--space); }
.prose { max-width: 72ch; }
.prose--wide { max-width: none; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.25em; border-left: 4px solid var(--orange); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); }
.prose .wp-block-button__link, .prose button, .prose input[type="submit"] { background: var(--orange); color: var(--ink-deep); border: 0; border-radius: 999px; padding: .75em 1.4em; font: 650 1rem var(--font); text-decoration: none; cursor: pointer; }
.post-meta { color: var(--muted); font-size: var(--step--1); margin-bottom: 0; }

.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.75rem; }
.post-card a { text-decoration: none; color: inherit; display: block; }
.post-card__img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--mist); margin-bottom: 1rem; }
.post-card h2 { font-size: var(--step-1); margin-bottom: .4rem; }
.post-card a:hover h2 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.post-card p { font-size: 1rem; margin: 0; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.pagination { margin-top: 3rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Forms (WPForms, search, WooCommerce) */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], select, textarea {
	font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
	border: 1.5px solid #C9CDD1; border-radius: var(--radius-s); padding: .7rem .85rem; min-height: 48px; max-width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; }
.search-form .search-submit { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 0 1.3rem; font: 650 1rem var(--font); cursor: pointer; }

/* WooCommerce light touch */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product img { border-radius: var(--radius); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: var(--step-1) !important; color: var(--ink); }
.woocommerce ul.products li.product .price { color: var(--ink) !important; font-weight: 650; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--orange) !important; color: var(--ink-deep) !important; border-radius: 999px !important; font-weight: 650 !important; padding: .8em 1.4em !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--orange-deep) !important; }
.woocommerce span.onsale { background: var(--green-text); border-radius: 999px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-weight: 650; }

/* The Events Calendar: brand font and action colour */
.tribe-common, .tribe-events, .tribe-events-pg-template {
	--tec-font-family-sans-serif: var(--font);
	--tec-font-family-base: var(--font);
	--tec-color-accent-primary: var(--orange);
	--tec-color-accent-primary-hover: var(--orange-deep);
	--tec-color-accent-primary-active: var(--orange-deep);
	--tec-color-button-primary: var(--orange);
	--tec-color-background-events-bar-submit-button: var(--orange);
	--tec-color-background-events-bar-submit-button-hover: var(--orange-deep);
	--tec-color-background-events-bar-submit-button-active: var(--orange-deep);
	--tec-color-text-events-bar-submit-button: var(--ink-deep);
	--tec-color-link-accent: var(--ink);
}
.tribe-common .tribe-common-c-btn, .tribe-common a.tribe-common-c-btn { background-color: var(--orange); color: var(--ink-deep); border-radius: 999px; font-weight: 650; }
/* Orange as text must use the darker AA shade */
.tribe-events .tribe-events-calendar-latest-past__event-datetime-featured-text,
.tribe-events .tribe-events-calendar-list__event-datetime-featured-text,
.tribe-events .tribe-events-calendar-list__event-datetime-featured-icon { color: var(--orange-text); --tec-color-accent-primary: var(--orange-text); }
/* Latest-posts "Read more" links must stand out from the excerpt text */
.wp-block-latest-posts__read-more { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.tribe-common .tribe-common-c-btn:hover, .tribe-common .tribe-common-c-btn:focus, .tribe-common a.tribe-common-c-btn:hover { background-color: var(--orange-deep); color: var(--ink-deep); }
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink-deep); color: #C3C8CD; padding-top: clamp(4rem, 3rem + 4vw, 6rem); font-size: 1rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--orange) 0 25%, var(--green) 25% 50%, var(--teal) 50% 75%, var(--navy) 75%); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__name { font-size: var(--step-1); font-weight: 750; color: #fff; margin-bottom: .6rem; }
.site-footer__heading { font-size: 1rem; color: #fff; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #E6E8EA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__contact li { display: flex; gap: .6rem; align-items: center; }
.site-footer__contact .ndc-icon { color: var(--orange); }
.site-footer__badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.site-footer .site-footer__badges img { height: 44px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--step--1); }
.site-footer__base p { margin: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Small additions */
.section-subtitle { font-size: var(--step-1); margin: 3rem 0 0; }
.page-head .pill-list { margin-top: 1.75rem; max-width: 760px; }
.reviews__grid--even { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .reviews__grid--even { grid-template-columns: 1fr; } }
.page-head__title--post { font-size: var(--step-3); max-width: 28ch; }
.single-post__img { width: 100%; margin-bottom: 2rem; }
.page-head__lede a { color: var(--ink); font-weight: 650; }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* ---------- Events page (tribe/events/v2/default-template.php) ---------- */
.feature--icon .ndc-icon { width: 30px; height: 30px; color: var(--fc); margin-bottom: .6rem; }
.events-intro { max-width: 62ch; margin-top: 1rem; }
.events-calendar { padding: 0 0 var(--space); }
.events-notice { margin-bottom: 2rem; }
.events-notice__links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }

/* Let the calendar sit on the theme grid instead of its own padded container */
.tec-wrap .tribe-common-l-container,
.tec-wrap .tribe-events-l-container { max-width: none; padding: 0 !important; min-height: 0; }
.tec-wrap--single { max-width: var(--wrap); margin: 0 auto; padding: 3rem var(--gutter) var(--space); }
.tec-wrap .tribe-events-header__events-bar { border-radius: var(--radius); }
.tec-wrap .tribe-events-c-messages__message { border-radius: var(--radius-s); background: var(--mist); }
.tec-wrap .tribe-events-calendar-latest-past__heading,
.tec-wrap .tribe-events-calendar-list__month-separator-text { font-family: var(--font); font-weight: 750; color: var(--ink); }
.tec-wrap .tribe-events-calendar-latest-past__heading { font-size: var(--step-2); }
.tec-wrap .tribe-events-calendar-latest-past__event,
.tec-wrap .tribe-events-calendar-list__event-row { padding: 1.5rem 0; border-top: 1px solid var(--line); margin: 0; }
.tec-wrap .tribe-events-calendar-latest-past__event-title-link,
.tec-wrap .tribe-events-calendar-list__event-title-link { color: var(--ink); font-weight: 750; }
.tec-wrap .tribe-events-calendar-latest-past__event-title-link:hover,
.tec-wrap .tribe-events-calendar-list__event-title-link:hover { color: var(--orange-text); border-color: var(--orange); }
.tec-wrap .tribe-events-calendar-latest-past__event-date-tag-month,
.tec-wrap .tribe-events-calendar-list__event-date-tag-weekday { color: var(--muted); font-weight: 650; }
.tec-wrap .tribe-events-calendar-latest-past__event-date-tag-daynum,
.tec-wrap .tribe-events-calendar-list__event-date-tag-daynum { color: var(--ink); font-weight: 800; }
.tec-wrap .tribe-events-calendar-latest-past__event-featured-image,
.tec-wrap .tribe-events-calendar-list__event-featured-image { border-radius: var(--radius); }

/* On-demand workshop band */
.ondemand { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ondemand__media img { width: 100%; height: auto; border-radius: var(--radius-l); }
.ondemand__name { font-size: var(--step-1); margin: 1.25rem 0 .5rem; }
.ondemand__price { font-size: var(--step-1); font-weight: 750; color: var(--ink); }
.ondemand__price del { color: var(--muted); font-weight: 500; margin-right: .4rem; }
.ondemand__price ins { text-decoration: none; }
.ondemand__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.5rem; }
@media (max-width: 800px) {
	.ondemand { grid-template-columns: 1fr; }
	.ondemand__media { max-width: 420px; }
}

/* ---------- Blog posts (single.php, inc/posts.php) ---------- */
.post-head__back { margin: 0 0 1rem; font-weight: 650; }
.post-head__back a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); }
.post-head .post-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin-top: 1.25rem; font-size: 1rem; color: var(--text); }
.post-head .post-meta a { color: var(--ink); font-weight: 650; }
.key-points { margin: 0 0 2.5rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--sky); }
.key-points h2 { font-size: var(--step-1); margin: 0 0 .75rem; }
.key-points ul { margin: 0; }
.key-points li:last-child { margin-bottom: 0; }
.safety-note { margin: 0 0 2rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: #FFF1DE; color: var(--ink); }
.safety-note p { margin: 0; }
.faq { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.faq h2 { margin-top: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 700; color: var(--ink); font-size: var(--step-0); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--mist); font-weight: 600; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.faq__item p { margin: 0 0 1.25rem; }
.post-disclaimer { margin-top: 2.5rem; font-size: var(--step--1); color: var(--muted); }
.post-card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.post-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Story invitation page */
.story-card a { height: 100%; padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.story-card .text-link { margin-top: 1rem; }
.story-card--soon a { background: var(--teal-tint); border-color: transparent; }
.story-form { padding: 1.75rem; border-radius: var(--radius); background: #fff; }
.story-form .wpforms-container { margin: 0 !important; }
.story-form .wpforms-field-label { font: 700 var(--step-0) var(--font) !important; color: var(--ink) !important; }
.story-form textarea { width: 100% !important; max-width: none !important; min-height: 14rem !important; border: 1px solid #C9CDD1 !important; border-radius: var(--radius-s) !important; padding: .9rem !important; font: 1rem/1.5 var(--font) !important; }
.story-form .wpforms-submit { background: var(--orange) !important; color: var(--ink-deep) !important; border: 0 !important; border-radius: 999px !important; padding: .8em 1.6em !important; font: 650 1rem var(--font) !important; cursor: pointer; }
.story-form .wpforms-submit:hover { background: var(--orange-deep) !important; }
