/* ── Page landmark ─────────────────────────────────────────────────────────────
   header.php opens <main class="pcpd-main">, footer.php closes it. body is a flex column
   for the sticky footer and templates used to be its direct children; main takes that
   role and passes it down, so nothing about the page layout changes. */
.pcpd-main { display: flex; flex-direction: column; flex: 1 0 auto; width: 100%; }

/* ── CPD topic pages (/courses/topic/…) and the NSW CPD guide ─────────────────
   Loaded after site.css; uses its tokens. Kept in its own file so the topic and guide
   styling can be read in one place, and so site.css does not grow another 200 lines. */

/* Topic intro: prose column plus a rail listing the eight topics. */
.pcpd-topic-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem 3rem;
	margin: 0 0 2.25rem;
	padding: 0 0 2rem;
	border-bottom: 1px solid hsl(var(--border));
}
@media (min-width: 900px) {
	.pcpd-topic-intro { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
}
.pcpd-topic-intro__body { max-width: none; }
.pcpd-topic-intro__body p { margin: 0 0 1rem; line-height: 1.65; }
.pcpd-topic-intro__body p:last-child { margin-bottom: 0; }
.pcpd-topic-intro__body a {
	color: hsl(var(--foreground));
	text-decoration: underline;
	text-decoration-color: hsl(var(--yellow));
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}
.pcpd-topic-intro__aside {
	background: hsl(var(--surface-2));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.1rem 1.25rem 1rem;
	font-size: 0.92rem;
}
.pcpd-topic-intro__aside-title {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	margin: 0 0 0.6rem;
}
.pcpd-topic-intro__list { margin: 0; padding-left: 1.25rem; }
.pcpd-topic-intro__list li { margin: 0 0 0.3rem; padding-left: 0.2rem; }
.pcpd-topic-intro__list li.is-current { font-weight: 600; }
.pcpd-topic-intro__list li.is-current span::before {
	content: '';
	display: inline-block;
	width: 0.5rem; height: 0.5rem;
	border-radius: 50%;
	background: hsl(var(--yellow));
	margin-right: 0.45rem;
	vertical-align: 1px;
}
.pcpd-topic-intro__list a { color: hsl(var(--foreground)); text-decoration: none; }
.pcpd-topic-intro__list a:hover { text-decoration: underline; text-decoration-color: hsl(var(--yellow)); text-decoration-thickness: 2px; }
.pcpd-topic-intro__aside-foot { margin: 0.9rem 0 0; color: hsl(var(--muted-foreground)); }
.pcpd-topic-intro__aside-foot a { color: hsl(var(--foreground)); }

/* ── Guide ─────────────────────────────────────────────────────────────────── */
/* Full container width (James, Sep 2026): guides previously sat at 860px inside a 1280px
   container and read as three-quarters of the page. .pcpd-container already applies the
   site's horizontal inset, so this fills the measure between those margins and no further.
   The per-element max-widths below are lifted to match; prose therefore runs wide on a
   large monitor, which is the deliberate trade. Cap .pcpd-guide p/li at ~80ch to walk it
   back without touching the layout. */
/* .pcpd-article is now container-width sitewide (site.css), so this is a no-op kept as a
   marker: guides opt into the wider measure explicitly rather than inheriting it by luck. */
body.pcpd-page--guide .pcpd-article { max-width: var(--container); }

.pcpd-guide { line-height: 1.65; }
.pcpd-guide h2 {
	margin: 2.75rem 0 0.9rem;
	padding-top: 0.5rem;
	font-size: 1.55rem;
	scroll-margin-top: 6rem;
}
.pcpd-guide p, .pcpd-guide li { max-width: none; }
.pcpd-guide ol, .pcpd-guide ul { padding-left: 1.4rem; }
.pcpd-guide li { margin-bottom: 0.45rem; }

.pcpd-guide__byline {
	font-size: 0.9rem;
	color: hsl(var(--muted-foreground));
	margin: -0.5rem 0 1.5rem;
}
.pcpd-guide__byline a { color: hsl(var(--foreground)); }

/* The direct answer, first, in the brand ink block. */
.pcpd-guide__answer {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-radius: var(--radius);
	padding: 1.4rem 1.6rem 1.25rem;
	margin: 0 0 1.75rem;
}
.pcpd-guide__answer-label {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: hsl(var(--yellow));
	margin: 0 0 0.5rem;
}
.pcpd-guide__answer p { margin: 0; font-size: 1.05rem; max-width: none; }
.pcpd-guide__answer strong { color: hsl(var(--yellow)); font-weight: 600; }

/* Tables scroll inside their own box on a phone; the page never scrolls sideways. */
.pcpd-guide__tablewrap {
	overflow-x: auto;
	margin: 0 0 1.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
}
.pcpd-guide__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.pcpd-guide__table caption {
	text-align: left;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	padding: 0.85rem 1rem 0.5rem;
}
.pcpd-guide__table th, .pcpd-guide__table td {
	text-align: left;
	vertical-align: top;
	padding: 0.7rem 1rem;
	border-top: 1px solid hsl(var(--border));
}
.pcpd-guide__table thead th {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	background: hsl(var(--surface-2));
	border-top: 0;
	white-space: nowrap;
}
.pcpd-guide__table tbody th { font-weight: 600; white-space: nowrap; width: 9rem; }

.pcpd-guide__toc {
	background: hsl(var(--surface-2));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1rem 1.25rem 0.9rem;
	margin: 0 0 1rem;
	font-size: 0.93rem;
}
.pcpd-guide__toc-title {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	margin: 0 0 0.5rem;
}
.pcpd-guide__toc ol { margin: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .pcpd-guide__toc ol { columns: 1; } }
.pcpd-guide__toc li { break-inside: avoid; margin-bottom: 0.3rem; }
.pcpd-guide__toc a { color: hsl(var(--foreground)); text-decoration: none; }
.pcpd-guide__toc a:hover { text-decoration: underline; text-decoration-color: hsl(var(--yellow)); text-decoration-thickness: 2px; }

.pcpd-guide__topics li, .pcpd-guide__mistakes li { margin-bottom: 0.6rem; }

.pcpd-guide__faq { border-top: 1px solid hsl(var(--border)); margin: 0 0 1.25rem; }
.pcpd-guide__faq-item { border-bottom: 1px solid hsl(var(--border)); }
.pcpd-guide__faq-item summary {
	cursor: pointer;
	padding: 0.85rem 0;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.pcpd-guide__faq-item summary::-webkit-details-marker { display: none; }
.pcpd-guide__faq-item summary::after {
	content: '+';
	color: hsl(var(--muted-foreground));
	font-weight: 500;
	flex: none;
}
.pcpd-guide__faq-item[open] summary::after { content: '\2212'; }
.pcpd-guide__faq-item summary:focus-visible { outline: 3px solid hsl(var(--yellow)); outline-offset: 2px; }
.pcpd-guide__faq-a { padding: 0 0 1rem; }
.pcpd-guide__faq-a p { margin: 0 0 0.75rem; }
.pcpd-guide__faq-a p:last-child { margin-bottom: 0; }

.pcpd-guide__author {
	display: grid;
	gap: 0.25rem;
	border-left: 4px solid hsl(var(--yellow));
	background: hsl(var(--yellow-tint));
	padding: 1rem 1.25rem;
	border-radius: 0 var(--radius) var(--radius) 0;
	margin: 2.5rem 0 1.25rem;
}
.pcpd-guide__author p { margin: 0; }
.pcpd-guide__author-name { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; }
.pcpd-guide__author-cred { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }
.pcpd-guide__author-note { font-size: 0.88rem; margin-top: 0.5rem !important; }

.pcpd-guide__sources { font-size: 0.88rem; color: hsl(var(--muted-foreground)); }
.pcpd-guide__sources a { color: hsl(var(--foreground)); }

/* Callouts inside guide copy. */
.pcpd-guide__callout {
	border-left: 4px solid hsl(var(--yellow));
	background: hsl(var(--yellow-tint));
	padding: 0.9rem 1.1rem;
	border-radius: 0 var(--radius) var(--radius) 0;
	margin: 1.25rem 0 1.5rem;
	max-width: none;
}
.pcpd-guide__callout p { margin: 0; }
.pcpd-guide__callout p + p { margin-top: 0.6rem; }
.pcpd-guide__callout--warn { border-left-color: hsl(var(--alert)); background: hsl(var(--alert-tint)); }

/* Checklist: big tap targets, printable. */
.pcpd-guide__checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: step; }
.pcpd-guide__checklist li {
	position: relative;
	padding: 0.85rem 1rem 0.85rem 3rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	margin: 0 0 0.6rem;
	background: hsl(var(--card));
	max-width: none;
}
.pcpd-guide__checklist li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 0.9rem; top: 0.8rem;
	width: 1.5rem; height: 1.5rem;
	border-radius: 50%;
	background: hsl(var(--foreground));
	color: hsl(var(--yellow));
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	display: grid;
	place-items: center;
}
.pcpd-guide__checklist li strong { display: block; margin-bottom: 0.15rem; }

/* ── Guides archive and lists ───────────────────────────────────────────────── */
.pcpd-guide-pillar {
	display: grid;
	gap: 0.35rem;
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-radius: var(--radius);
	padding: 1.5rem 1.75rem;
	margin: 0 0 2rem;
	text-decoration: none;
	box-shadow: var(--shadow-md);
}
.pcpd-guide-pillar:hover .pcpd-guide-pillar__title { text-decoration: underline; text-decoration-color: hsl(var(--yellow)); text-decoration-thickness: 3px; }
.pcpd-guide-pillar__kicker {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: hsl(var(--yellow));
}
.pcpd-guide-pillar__title { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.4rem; line-height: 1.2; }
.pcpd-guide-pillar__text { color: hsl(var(--background) / 0.8); max-width: 60ch; }

.pcpd-guide-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .pcpd-guide-list { grid-template-columns: 1fr 1fr; } }
.pcpd-guide-list--compact { grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 720px) { .pcpd-guide-list--compact { grid-template-columns: 1fr 1fr; } }
.pcpd-guide-list__item {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.1rem 1.25rem;
	display: grid;
	gap: 0.4rem;
	align-content: start;
}
.pcpd-guide-list__meta {
	margin: 0;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
}
.pcpd-guide-list__title {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 1.12rem;
	line-height: 1.25;
	color: hsl(var(--foreground));
	text-decoration: none;
}
.pcpd-guide-list__title:hover { text-decoration: underline; text-decoration-color: hsl(var(--yellow)); text-decoration-thickness: 3px; }
.pcpd-guide-list__excerpt { margin: 0; color: hsl(var(--muted-foreground)); font-size: 0.95rem; line-height: 1.5; }
.pcpd-guide-more__title { font-size: 1.35rem; margin: 0 0 1rem; }
.pcpd-guide-related .pcpd-section__header { margin-bottom: 1.25rem; }

/* ── Guide hero image ───────────────────────────────────────────────────────── */
/* Every guide carries an image: a real featured photo when one is set, otherwise the
   brand illustration keyed in its content file. Sits on the ink band so the artwork
   reads as part of the header rather than floating above the prose. */
.pcpd-guide-hero {
	margin: -1rem auto 2rem;
	display: flex;
	justify-content: center;
}
.pcpd-guide-hero__art,
.pcpd-guide-hero__photo {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}
.pcpd-guide-hero__photo { object-fit: cover; max-height: 340px; box-shadow: var(--shadow-md); }
.pcpd-guide-list__art { margin: -0.25rem 0 0.35rem; }
.pcpd-guide-list__art img,
.pcpd-guide-list__art .pcpd-illustration {
	width: 100%;
	height: 116px;
	object-fit: cover;
	border-radius: calc(var(--radius) - 0.25rem);
	background: hsl(var(--surface-2));
}

/* ── Named technical reviewer (inc/reviewers.php) ───────────────────────────── */
/* Only appears on guides a licensed practitioner has actually read, so it is allowed to
   look like a credential rather than a byline. */
.pcpd-reviewer {
	margin: 2.5rem 0 1.25rem;
	padding: 1.4rem 1.5rem;
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	max-width: none;
}
.pcpd-reviewer__eyebrow {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.74rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: hsl(var(--yellow));
	margin: 0 0 0.9rem;
}
.pcpd-reviewer__head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.pcpd-reviewer__mark {
	flex: none;
	width: 3rem; height: 3rem;
	border-radius: 50%;
	background: hsl(var(--yellow));
	color: hsl(var(--yellow-foreground));
	display: grid;
	place-items: center;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 1.4rem;
}
.pcpd-reviewer__name {
	margin: 0;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.2;
}
.pcpd-reviewer__cred {
	margin: 0.15rem 0 0;
	font-size: 0.88rem;
	color: hsl(var(--background) / 0.75);
}
.pcpd-reviewer__bio {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: hsl(var(--background) / 0.88);
	max-width: none;
}
.pcpd-reviewer__bio:last-child { margin-bottom: 0; }

/* ── Charts ─────────────────────────────────────────────────────────────────── */
/* Decorative: every chart is paired with the real table, which stays the accessible and
   citable source. Growth animates only once [data-pcpd-animate] adds .is-inview, and the
   reduced-motion block at the end of this file pins everything to its final size. */
.pcpd-chart {
	margin: 0 0 2rem;
	padding: 1.25rem 1.25rem 1rem;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	max-width: none;
}
.pcpd-chart__caption {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	margin: 0 0 1.1rem;
}
.pcpd-chart__plot {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	align-items: end;
	gap: 0.3rem;
	height: 210px;
}
.pcpd-chart__bar {
	display: grid;
	grid-template-rows: auto 1fr auto;
	align-items: end;
	height: 100%;
	text-align: center;
	min-width: 0;
}
.pcpd-chart__value {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.3rem;
	opacity: 0;
	transition: opacity 0.4s ease calc(var(--i) * 45ms + 300ms);
}
.pcpd-chart__fill {
	display: block;
	align-self: end;
	height: var(--h);
	border-radius: 4px 4px 0 0;
	background: linear-gradient(180deg, hsl(var(--yellow)), hsl(45 100% 44%));
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) calc(var(--i) * 45ms);
}
.pcpd-chart__bar.is-peak .pcpd-chart__fill { background: linear-gradient(180deg, hsl(var(--foreground)), hsl(224 12% 22%)); }
.pcpd-chart__bar.is-peak .pcpd-chart__value { color: hsl(var(--foreground)); }
.pcpd-chart__bar.is-low .pcpd-chart__fill { background: linear-gradient(180deg, hsl(var(--yellow-tint)), hsl(45 60% 78%)); }
.pcpd-chart__label {
	font-size: 0.7rem;
	color: hsl(var(--muted-foreground));
	margin-top: 0.4rem;
	letter-spacing: 0.02em;
}
.pcpd-chart.is-inview .pcpd-chart__fill { transform: scaleY(1); }
.pcpd-chart.is-inview .pcpd-chart__value { opacity: 1; }
.pcpd-chart__bar:hover .pcpd-chart__fill { filter: brightness(1.08); }

.pcpd-chart__key {
	margin: 1rem 0 0;
	font-size: 0.85rem;
	color: hsl(var(--muted-foreground));
	max-width: none;
}
.pcpd-chart__key strong { color: hsl(var(--foreground)); font-size: 1rem; }
.pcpd-chart__swatch {
	display: inline-block;
	width: 0.7rem; height: 0.7rem;
	border-radius: 2px;
	vertical-align: -1px;
	margin-right: 0.2rem;
}
.pcpd-chart__swatch--peak { background: hsl(var(--foreground)); }
.pcpd-chart__swatch--low { background: hsl(45 60% 78%); }

/* Term-mix split bar */
.pcpd-split { display: flex; height: 74px; border-radius: var(--radius); overflow: hidden; }
.pcpd-split__seg {
	width: var(--w);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.1rem;
	min-width: 0;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i) * 120ms);
}
.pcpd-chart.is-inview .pcpd-split__seg { transform: scaleX(1); }
.pcpd-split__seg b {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 1.15rem;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.pcpd-split__seg small { font-size: 0.7rem; opacity: 0.85; white-space: nowrap; }
.pcpd-split__seg--five { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.pcpd-split__seg--three { background: hsl(var(--yellow)); color: hsl(var(--yellow-foreground)); }
.pcpd-split__seg--one { background: hsl(var(--surface-2)); color: hsl(var(--muted-foreground)); }

@media (max-width: 640px) {
	.pcpd-chart__plot { height: 170px; gap: 0.15rem; }
	.pcpd-chart__value { font-size: 0.56rem; }
	.pcpd-chart__label { font-size: 0.6rem; }
	.pcpd-split__seg small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.pcpd-chart__fill,
	.pcpd-chart__value,
	.pcpd-split__seg {
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}

/* ── Course search copy (inc/course-seo.php) ────────────────────────────────── */
.pcpd-course-seo__intro { max-width: 70ch; margin: 0 0 2rem; font-size: 1.05rem; line-height: 1.65; }
.pcpd-course-seo__intro p { margin: 0 0 1rem; }
.pcpd-course-seo__intro p:first-child { font-size: 1.15rem; }
.pcpd-course-seo__faq { margin: 2.5rem 0 1rem; max-width: 70ch; }
.pcpd-course-seo__faq h2 { font-size: 1.35rem; margin: 0 0 0.75rem; }

/* Inline SVG diagrams in the pillar guide (inc/nsw-cpd-guide.php). The caption repeats
   the point in words, so the figure is an aid and never the only place a rule is stated. */
.pcpd-fig { margin: 1.6rem 0; padding: 1.1rem 1.2rem 0.9rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.pcpd-fig svg { display: block; width: 100%; height: auto; }
.pcpd-fig figcaption { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.pcpd-fig__rule { stroke: hsl(var(--border)); stroke-width: 2; }
.pcpd-fig__tick { stroke: hsl(var(--muted-foreground)); stroke-width: 2; }
.pcpd-fig__lbl { font: 600 15px/1 Inter, sans-serif; fill: hsl(var(--muted-foreground)); }
.pcpd-fig__cap { font: 700 16px/1 "Space Grotesk", Inter, sans-serif; fill: hsl(var(--foreground)); }
.pcpd-fig__num { font: 700 12px/1 Inter, sans-serif; fill: #141619; }
.pcpd-fig__dot.is-used { fill: #FFC400; }
.pcpd-fig__dot.is-carried { fill: hsl(var(--yellow) / 0.35); stroke: #FFC400; stroke-width: 2; }
.pcpd-fig__dot.is-lost { fill: none; stroke: hsl(var(--muted-foreground)); stroke-width: 2; stroke-dasharray: 3 3; }
