/**
 * Psychiatry For All: components.
 *
 * The global frame and the template components (build lane T1b). Loaded on
 * every page after base.css, which holds the tokens (--pfa-*), the surface
 * variables (.pfa-on-dark and friends), the focus ring, the skip link,
 * .screen-reader-text, .pfa-container and the reading options.
 *
 * Mobile first. Breakpoints: 768px, 1024px, 1200px wide; 500px tall (nothing
 * sticky below that). Colour pairs: only the "Allowed" table in
 * specs/ux-journey.md 0.3. No motion except 150ms colour changes when the
 * visitor allows motion (--pfa-transition, base.css).
 *
 * Contents
 *   1. Helpers (JS / no-JS, safe areas)
 *   2. Buttons, text links with arrows, pills
 *   3. Announcement bar
 *   4. Utility bar, reading options popover, switches
 *   5. Site header and main navigation
 *   6. Dialogs: menu, accordion, contact channels, contact sheet
 *   7. Breadcrumbs
 *   8. Page hero, content area, reviewed-by stamp
 *   9. Next step band
 *  10. Urgent help strip
 *  11. Footer
 *  12. Mobile quick actions bar
 *  13. Cards, guide cards, clinician cards, clinician profile
 *  14. Forms and the search form
 *  15. Tables
 *  16. Guides: layout and "On this page"; legal pages
 *  17. Lists of guides, search results, crisis panel, 404, useful links
 *  18. Pagination
 *  19. Larger text, short windows, print
 */

/* 1. Helpers
 * The inline head script swaps "no-js" for "pfa-js" on <html> before the
 * first paint, so these never cause a layout shift.
 * -------------------------------------------------------------------------- */

.pfa-js .pfa-nojs-only,
html:not(.pfa-js) .pfa-js-only {
	display: none !important;
}

/* viewport-fit=cover (for the quick bar's safe area): keep page content
   clear of the notch in landscape, as without it. */
body {
	padding-left: env(safe-area-inset-left, 0px);
	padding-right: env(safe-area-inset-right, 0px);
}

html.pfa-dialog-open {
	overflow: hidden;
}

.pfa-icon--inline {
	width: 1em;
	height: 1em;
	margin-inline-start: 0.25em;
	vertical-align: -0.125em;
}

/* 2. Buttons, text links with arrows, pills
 * Primary: Royal Sapphire with the square arrow (UX B7) in its light version.
 * Light (on dark surfaces): Arctic White with the Royal Sapphire arrow.
 * Secondary: lavender tint, Royal Sapphire text (7.53:1).
 * -------------------------------------------------------------------------- */

.pfa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--pfa-space-3);
	min-height: 48px;
	padding: var(--pfa-space-2) var(--pfa-space-5);
	border: 0;
	border-radius: var(--pfa-radius-btn);
	background-color: var(--pfa-btn-bg);
	color: var(--pfa-btn-fg);
	font-family: inherit;
	font-size: var(--pfa-fs-body);
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	text-wrap: balance;
	cursor: pointer;
}

.pfa-button:hover,
.pfa-button:active {
	background-color: var(--pfa-btn-bg-hover);
	color: var(--pfa-btn-fg);
	text-decoration: none;
}

/* Primary follows the surface (base.css): Royal Sapphire on light surfaces,
   Arctic White on dark ones. Light and secondary are fixed. */
.pfa-button--light {
	--pfa-btn-bg: var(--pfa-arctic);
	--pfa-btn-fg: var(--pfa-sapphire);
	--pfa-btn-bg-hover: var(--pfa-lavender-tint);
	--pfa-btn-tile: var(--pfa-sapphire);
	--pfa-btn-arrow: var(--pfa-arctic);
}

.pfa-button--secondary {
	--pfa-btn-bg: var(--pfa-lavender-tint);
	--pfa-btn-fg: var(--pfa-sapphire);
	--pfa-btn-bg-hover: var(--pfa-lavender);
}

.pfa-button--block {
	display: flex;
	width: 100%;
}

/* The call to action with the square arrow: 52px tall, arrow tile inside.
   Two classes, so theme.json's .wp-element-button padding never wins,
   whichever stylesheet prints last. */
.pfa-button.pfa-cta {
	min-height: 52px;
	padding-block: 6px;
	padding-inline: var(--pfa-space-5) 6px;
	line-height: 1.25;
}

.pfa-button__label {
	flex: 1 1 auto;
}

.pfa-button__arrow {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--pfa-radius-arrow);
	background-color: var(--pfa-btn-tile);
	color: var(--pfa-btn-arrow);
}

.pfa-button__arrow svg {
	width: 20px;
	height: 20px;
}

/* Buttons in a wrapper that is short of room keep their label on one line.
   A wrapper opts in with "container: pfa-cta / inline-size": the next step
   band's actions (section 9), and the plugin's price card and contact card
   buttons. Under 19.25rem (308px) the label is 16px with less padding;
   under 16.5rem the arrow tile goes, like the quick bar's under 420px. */
@container pfa-cta (max-width: 19.25rem) {
	.pfa-button {
		font-size: var(--pfa-fs-small);
	}

	.pfa-button.pfa-cta {
		gap: var(--pfa-space-2);
		padding-inline-start: var(--pfa-space-4);
	}
}

@container pfa-cta (max-width: 16.5rem) {
	.pfa-button.pfa-cta .pfa-button__arrow {
		display: none;
	}

	.pfa-button.pfa-cta {
		padding-inline: var(--pfa-space-4);
	}
}

.pfa-cta-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: start;
	gap: var(--pfa-space-2);
}

.pfa-cta-note {
	margin: 0;
	color: var(--pfa-text-muted);
	font-size: var(--pfa-fs-small);
}

/* "Label >": a text link with a trailing arrow. */
.pfa-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--pfa-space-2);
	min-height: var(--pfa-target);
	color: var(--pfa-link);
	font-weight: 600;
}

.pfa-link-arrow svg {
	flex: none;
	width: 20px;
	height: 20px;
}

/* Pills (UX B4). Inactive: lavender tint; current: Royal Sapphire. */
.pfa-pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pfa-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-pill {
	display: inline-flex;
	align-items: center;
	min-height: var(--pfa-target);
	padding: var(--pfa-space-2) var(--pfa-space-4);
	border-radius: var(--pfa-radius-pill);
	background-color: var(--pfa-lavender-tint);
	color: var(--pfa-sapphire);
	font-size: var(--pfa-fs-label);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color var(--pfa-transition), color var(--pfa-transition);
}

a.pfa-pill:hover {
	background-color: var(--pfa-lavender);
	color: var(--pfa-sapphire);
	text-decoration: none;
}

.pfa-pill.is-current,
.pfa-pill[aria-current="page"] {
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
}

a.pfa-pill.is-current:hover {
	background-color: var(--pfa-sapphire-700);
	color: var(--pfa-arctic);
}

/* A label, not a control: no 44px target needed. */
.pfa-pill--static {
	min-height: 0;
	padding: var(--pfa-space-1) var(--pfa-space-3);
}

/* 3. Announcement bar (UX 2.2)
 * Info: lavender tint, Royal Sapphire text. Important: Royal Sapphire,
 * Arctic White text. 16px Medium, left on mobile, centred from 768px.
 * -------------------------------------------------------------------------- */

.pfa-announcement {
	font-size: var(--pfa-fs-small);
	font-weight: 500;
	line-height: 1.45;
}

.pfa-announcement--info {
	background-color: var(--pfa-lavender-tint);
	color: var(--pfa-sapphire);
}

.pfa-announcement--important {
	border-bottom: 1px solid var(--pfa-rule);
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
}

/* A notice the visitor dismissed: hidden before the first paint. */
html[data-pfa-notice="dismissed"] .pfa-announcement {
	display: none;
}

.pfa-announcement__inner {
	display: flex;
	align-items: center;
	gap: var(--pfa-space-3);
	min-height: 44px;
	padding-block: var(--pfa-space-2);
}

.pfa-announcement__text {
	flex: 1 1 auto;
	margin: 0;
}

.pfa-announcement__link {
	margin-inline-start: 0.35em;
	color: inherit;
	font-weight: 600;
	white-space: nowrap;
}

.pfa-announcement__link:hover {
	color: inherit;
}

.pfa-announcement__dismiss {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--pfa-radius-btn);
	background-color: transparent;
	color: inherit;
	transition: background-color var(--pfa-transition);
}

.pfa-announcement--info .pfa-announcement__dismiss:hover {
	background-color: var(--pfa-lavender);
}

.pfa-announcement--important .pfa-announcement__dismiss:hover {
	background-color: var(--pfa-sapphire-700);
}

@media (min-width: 768px) {
	.pfa-announcement__text {
		text-align: center;
	}
}

/* 4. Utility bar (UX 2.3), reading options popover, switches (UX I12)
 * Royal Sapphire, 40px, not sticky, right-aligned, 768px and wider.
 * -------------------------------------------------------------------------- */

.pfa-utility {
	position: relative;
	z-index: 51;
	display: none;
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
	font-size: var(--pfa-fs-small);
	font-weight: 500;
}

@media (min-width: 768px) {
	.pfa-utility {
		display: block;
	}
}

.pfa-utility__inner {
	display: flex;
	justify-content: flex-end;
}

.pfa-utility__list {
	display: flex;
	align-items: stretch;
	gap: var(--pfa-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-utility__item {
	position: relative;
	display: flex;
	align-items: center;
}

.pfa-utility__link,
.pfa-utility__button {
	display: inline-flex;
	align-items: center;
	gap: var(--pfa-space-2);
	min-height: 40px;
	padding: 0 var(--pfa-space-1);
	border: 0;
	background: none;
	color: var(--pfa-arctic);
	font: inherit;
	font-weight: 500;
	text-decoration: none;
}

.pfa-utility__link:hover,
.pfa-utility__button:hover,
.pfa-utility__link[aria-current="page"] {
	color: var(--pfa-arctic);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.pfa-utility__icon {
	width: 20px;
	height: 20px;
}

.pfa-utility__chevron {
	display: inline-flex;
}

.pfa-utility__button[aria-expanded="true"] .pfa-utility__chevron {
	transform: rotate(180deg);
}

/* Popover panels (reading options): Arctic White card with the dialog shadow. */
.pfa-popover {
	position: absolute;
	top: calc(100% + var(--pfa-space-2));
	right: 0;
	z-index: 70;
	width: min(22rem, calc(100vw - 2 * var(--pfa-gutter)));
	padding: var(--pfa-space-5);
	border: 1px solid var(--pfa-lavender-tint);
	border-radius: 20px;
	background-color: var(--pfa-arctic);
	color: var(--pfa-sapphire);
	box-shadow: var(--pfa-shadow-dialog);
	font-size: var(--pfa-fs-body);
	font-weight: 400;
}

.pfa-reading-options {
	display: grid;
	gap: var(--pfa-space-2);
}

.pfa-reading-options__title {
	margin: 0 0 var(--pfa-space-1);
	font-weight: 700;
}

.pfa-reading-options__note {
	margin: var(--pfa-space-1) 0 0;
	color: var(--pfa-text-muted);
	font-size: var(--pfa-fs-small);
}

.pfa-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pfa-space-4);
	min-height: var(--pfa-target);
}

.pfa-switch__label {
	font-weight: 600;
	cursor: pointer;
}

.pfa-switch__control {
	position: relative;
	display: inline-flex;
	flex: none;
}

/* The real checkbox lies over the drawn track, so clicks and taps hit it. */
.pfa-switch__input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.pfa-switch__track {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 4.75rem;
	height: 2.375rem;
	padding: 0 0.625rem;
	border: 2px solid var(--pfa-sapphire);
	border-radius: var(--pfa-radius-pill);
	background-color: var(--pfa-white);
	color: var(--pfa-sapphire);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
}

.pfa-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background-color: var(--pfa-sapphire);
}

.pfa-switch__state--off {
	margin-inline-start: auto;
}

.pfa-switch__state--on {
	display: none;
}

.pfa-switch__input:checked + .pfa-switch__track {
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
}

.pfa-switch__input:checked + .pfa-switch__track .pfa-switch__thumb {
	right: 3px;
	left: auto;
	background-color: var(--pfa-arctic);
}

.pfa-switch__input:checked + .pfa-switch__track .pfa-switch__state--on {
	display: inline;
}

.pfa-switch__input:checked + .pfa-switch__track .pfa-switch__state--off {
	display: none;
}

.pfa-switch__input:focus-visible + .pfa-switch__track {
	outline: 3px solid var(--pfa-focus);
	outline-offset: 3px;
}

/* 5. Site header (UX 2.4, 2.5, 2.8) and main navigation (UX I14)
 * Sticky at every width; 60px, 72px from 768px, 76px from 1200px (base.css
 * --pfa-header-height). A hairline appears once the page has scrolled.
 * -------------------------------------------------------------------------- */

.pfa-header-sentinel {
	height: 1px;
	margin-bottom: -1px;
}

.pfa-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	background-color: var(--pfa-canvas);
	transition: border-color var(--pfa-transition);
}

.admin-bar .pfa-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

@media screen and (max-width: 600px) {
	.admin-bar .pfa-header {
		top: 0;
	}
}

.pfa-header.is-scrolled {
	border-bottom-color: var(--pfa-border);
}

.pfa-header__inner {
	display: flex;
	align-items: center;
	gap: var(--pfa-space-3);
	min-height: var(--pfa-header-height);
}

.pfa-header__brand {
	display: flex;
	flex: none;
	align-items: center;
}

.pfa-logo {
	display: inline-flex;
	align-items: center;
	border-radius: var(--pfa-space-2);
}

.pfa-logo__image {
	display: block;
	width: auto;
	max-width: 100%;
}

.pfa-header .pfa-logo__image {
	height: 36px;
}

.pfa-logo--text {
	color: var(--pfa-sapphire);
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.pfa-header__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--pfa-space-3);
	margin-inline-start: auto;
}

.pfa-header__cta {
	display: none;
}

.pfa-header .pfa-header__cta {
	font-size: 1.0625rem;
}

/* Menu button: icon plus the visible word "Menu", 48 x 48px or more (52px
   tall from 768px, beside the header's booking button). */
.pfa-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--pfa-space-2);
	min-width: 48px;
	min-height: 48px;
	padding: 0 var(--pfa-space-4);
	border: 0;
	border-radius: var(--pfa-radius-btn);
	background-color: var(--pfa-lavender-tint);
	color: var(--pfa-sapphire);
	font: inherit;
	font-size: var(--pfa-fs-small);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color var(--pfa-transition);
}

.pfa-menu-toggle:hover {
	background-color: var(--pfa-lavender);
	color: var(--pfa-sapphire);
	text-decoration: none;
}

.pfa-menu-toggle svg {
	width: 22px;
	height: 22px;
}

/* Main navigation: only in the full layout (1200px and wider). */
.pfa-nav {
	display: none;
}

.pfa-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pfa-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-nav__item {
	position: relative;
}

.pfa-nav__link,
.pfa-nav__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 48px;
	padding: 0 var(--pfa-space-3);
	border: 0;
	border-radius: var(--pfa-radius-btn);
	background-color: transparent;
	color: var(--pfa-sapphire);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--pfa-transition);
}

.pfa-nav__link:hover,
.pfa-nav__toggle:hover,
.pfa-nav__toggle[aria-expanded="true"] {
	background-color: var(--pfa-lavender-tint);
	color: var(--pfa-sapphire);
	text-decoration: none;
}

/* Current section: a 3px Iris Violet underline (UX 2.4). */
.pfa-nav__item.is-current-section > .pfa-nav__link::after,
.pfa-nav__item.is-current-section > .pfa-nav__toggle::after,
.pfa-nav__link[aria-current="page"]::after {
	content: "";
	position: absolute;
	right: var(--pfa-space-3);
	bottom: 6px;
	left: var(--pfa-space-3);
	height: 3px;
	border-radius: 2px;
	background-color: var(--pfa-iris);
}

.pfa-nav__chevron {
	display: inline-flex;
}

.pfa-nav__chevron svg {
	width: 18px;
	height: 18px;
}

.pfa-nav__toggle[aria-expanded="true"] .pfa-nav__chevron {
	transform: rotate(180deg);
}

/* Dropdown panel: Arctic White bento card, 400px, radius 20px. */
.pfa-nav__panel {
	position: absolute;
	top: calc(100% + var(--pfa-space-2));
	left: 0;
	z-index: 60;
	width: 400px;
	max-width: calc(100vw - 2 * var(--pfa-gutter));
	padding: var(--pfa-space-2);
	border: 1px solid var(--pfa-lavender-tint);
	border-radius: 20px;
	background-color: var(--pfa-arctic);
	box-shadow: var(--pfa-shadow-dialog);
}

.pfa-nav__list > .pfa-nav__item:last-child > .pfa-nav__panel {
	right: 0;
	left: auto;
}

.pfa-nav__sub,
.pfa-menu-nav__sub {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-nav__sublink,
.pfa-menu-nav__sublink {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-height: 56px;
	padding: var(--pfa-space-2) var(--pfa-space-4);
	border-radius: 12px;
	color: var(--pfa-sapphire);
	text-decoration: none;
	transition: background-color var(--pfa-transition);
}

.pfa-nav__sublink:hover,
.pfa-nav__sublink:focus-visible,
.pfa-menu-nav__sublink:hover,
.pfa-menu-nav__sublink:focus-visible {
	background-color: var(--pfa-lavender-tint);
	color: var(--pfa-sapphire);
	text-decoration: none;
}

.pfa-nav__sublink:hover .pfa-nav__label,
.pfa-menu-nav__sublink:hover .pfa-menu-nav__label {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pfa-nav__sublink .pfa-nav__label {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.pfa-nav__desc,
.pfa-menu-nav__desc {
	color: var(--pfa-ink-muted);
	font-size: var(--pfa-fs-small);
	font-weight: 400;
	line-height: 1.4;
}

/* Muted text is not an allowed pair on lavender tint: darken it on hover. */
.pfa-nav__sublink:is(:hover, :focus-visible) .pfa-nav__desc,
.pfa-menu-nav__sublink:is(:hover, :focus-visible) .pfa-menu-nav__desc {
	color: var(--pfa-sapphire);
}

.pfa-nav__sublink[aria-current="page"],
.pfa-menu-nav__sublink[aria-current="page"] {
	background-color: var(--pfa-lavender-wash);
	box-shadow: inset 3px 0 0 var(--pfa-iris);
}

@media (min-width: 768px) {
	.pfa-header .pfa-logo__image {
		height: 44px;
	}

	.pfa-header__cta {
		display: inline-flex;
	}

	/* Beside the 52px booking button, the Menu button is as tall, so the two
	   share a top and bottom edge (also with larger text from 1200px). */
	.pfa-menu-toggle {
		min-height: 52px;
	}
}

@media (min-width: 1200px) {
	.pfa-nav {
		display: block;
		flex: 1 1 auto;
		margin-inline-start: var(--pfa-space-5);
	}

	.pfa-menu-toggle {
		display: none;
	}
}

/* 6. Dialogs (UX 2.7, 2.10, I11)
 * Native modal <dialog>. One soft shadow is allowed for dialogs (contract 3.3).
 * -------------------------------------------------------------------------- */

.pfa-dialog {
	padding: 0;
	border: 0;
	background-color: var(--pfa-canvas);
	color: var(--pfa-sapphire);
}

/* Navy at 55%: page behind is dimmed while the dialog is open. */
.pfa-dialog::backdrop {
	background-color: rgba(0, 15, 46, 0.55);
}

.pfa-dialog__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: var(--pfa-space-2);
	min-height: 48px;
	padding: 0 var(--pfa-space-4);
	border: 0;
	border-radius: var(--pfa-radius-btn);
	background-color: var(--pfa-lavender-tint);
	color: var(--pfa-sapphire);
	font: inherit;
	font-size: var(--pfa-fs-small);
	font-weight: 600;
	transition: background-color var(--pfa-transition);
}

.pfa-dialog__close:hover {
	background-color: var(--pfa-lavender);
}

.pfa-dialog__close svg {
	width: 22px;
	height: 22px;
}

/* Menu dialog: full height, canvas, scrolls inside. A side panel from 768px. */
.pfa-menu {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.pfa-menu__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-5);
	padding: 0 var(--pfa-gutter) calc(var(--pfa-space-7) + env(safe-area-inset-bottom, 0px));
}

.pfa-menu__top {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pfa-space-3);
	min-height: var(--pfa-header-height);
	background-color: var(--pfa-canvas);
}

.pfa-menu__top .pfa-logo__image {
	height: 36px;
}

.pfa-menu__urgent {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pfa-space-1) var(--pfa-space-2);
	margin: 0;
	padding: var(--pfa-space-3) var(--pfa-space-4);
	border-radius: 12px;
	background-color: var(--pfa-arctic);
	box-shadow: inset 4px 0 0 var(--pfa-iris);
	font-weight: 600;
}

.pfa-menu__urgent a {
	font-weight: 700;
}

.pfa-menu__urgent-icon {
	width: 22px;
	height: 22px;
	color: var(--pfa-iris);
}

.pfa-menu__section {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-3);
}

.pfa-menu__heading {
	margin: 0;
	font-size: var(--pfa-fs-h4);
}

.pfa-menu__section--reading {
	padding: var(--pfa-space-4) var(--pfa-space-5);
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-arctic);
}

@media (min-width: 768px) {
	.pfa-menu {
		width: min(30rem, 100%);
		margin-inline-start: auto;
		box-shadow: var(--pfa-shadow-dialog);
	}
}

/* Accordion inside the menu dialog. */
.pfa-menu-nav__list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--pfa-border);
	list-style: none;
}

.pfa-menu-nav__item {
	border-bottom: 1px solid var(--pfa-border);
}

.pfa-menu-nav__toggle,
.pfa-menu-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pfa-space-3);
	width: 100%;
	min-height: 56px;
	padding: var(--pfa-space-2);
	border: 0;
	background-color: transparent;
	color: var(--pfa-sapphire);
	font: inherit;
	font-size: var(--pfa-fs-body);
	font-weight: 700;
	line-height: 1.3;
	text-align: start;
	text-decoration: none;
	transition: background-color var(--pfa-transition);
}

.pfa-menu-nav__toggle:hover,
.pfa-menu-nav__link:hover {
	background-color: var(--pfa-lavender-wash);
	color: var(--pfa-sapphire);
	text-decoration: none;
}

.pfa-menu-nav__item.is-current-section > .pfa-menu-nav__toggle .pfa-menu-nav__label,
.pfa-menu-nav__link[aria-current="page"] .pfa-menu-nav__label {
	text-decoration: underline;
	text-decoration-color: var(--pfa-iris);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.pfa-menu-nav__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--pfa-space-2);
	background-color: var(--pfa-lavender-tint);
}

.pfa-menu-nav__icon svg,
.pfa-menu-nav__go svg {
	width: 20px;
	height: 20px;
}

/* The chevron of a plain link sits in a box as wide as the +/- tile, so all
   the markers on the right share one centre line. */
.pfa-menu-nav__go {
	display: inline-flex;
	flex: none;
	justify-content: center;
	width: 32px;
}

.pfa-menu-nav__toggle[aria-expanded="true"] .pfa-icon--closed,
.pfa-menu-nav__toggle[aria-expanded="false"] .pfa-icon--open {
	display: none;
}

.pfa-menu-nav__panel {
	padding-bottom: var(--pfa-space-3);
}

.pfa-menu-nav__sublink {
	min-height: 52px;
}

.pfa-menu-nav__sublink .pfa-menu-nav__label {
	font-weight: 600;
}

/* Contact channels: menu "Other ways to reach us" and the contact sheet. */
.pfa-channels {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-channels__item {
	padding: var(--pfa-space-2) var(--pfa-space-4);
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-arctic);
}

.pfa-channels__link {
	display: flex;
	align-items: center;
	gap: var(--pfa-space-3);
	min-height: var(--pfa-target);
	color: var(--pfa-sapphire);
	font-weight: 600;
	text-decoration: none;
}

.pfa-channels__link:hover {
	color: var(--pfa-sapphire);
}

.pfa-channels__link:hover .pfa-channels__label {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pfa-channels__label {
	flex: 1 1 auto;
	overflow-wrap: anywhere;
}

.pfa-channels__icon {
	width: 22px;
	height: 22px;
}

.pfa-channels__go {
	width: 20px;
	height: 20px;
}

.pfa-channels__note {
	margin: 0 0 var(--pfa-space-2);
	padding-inline-start: calc(22px + var(--pfa-space-3));
	color: var(--pfa-ink-muted);
	font-size: var(--pfa-fs-small);
	line-height: 1.5;
}

/* Contact sheet: a bottom sheet on phones. */
.pfa-sheet {
	width: 100%;
	max-width: 100%;
	max-height: min(90vh, 100%);
	max-height: min(90dvh, 100%);
	margin: auto 0 0;
	border-radius: var(--pfa-radius-card) var(--pfa-radius-card) 0 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: var(--pfa-shadow-dialog);
}

.pfa-sheet__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-4);
	padding: var(--pfa-space-4) var(--pfa-gutter) calc(var(--pfa-space-5) + env(safe-area-inset-bottom, 0px));
}

.pfa-sheet__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pfa-space-3);
}

.pfa-sheet__title {
	margin: 0;
	font-size: var(--pfa-fs-h3);
}

.pfa-sheet__cta {
	display: grid;
	gap: var(--pfa-space-2);
}

.pfa-sheet__note {
	margin: 0;
	color: var(--pfa-ink-muted);
	font-size: var(--pfa-fs-small);
}

.pfa-sheet__urgent {
	margin: 0;
	padding-top: var(--pfa-space-4);
	border-top: 1px solid var(--pfa-border);
	font-weight: 600;
}

.pfa-sheet__urgent a {
	font-weight: 700;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.pfa-sheet {
		width: min(32rem, calc(100% - 2 * var(--pfa-gutter)));
		margin: auto;
		border-radius: var(--pfa-radius-card);
	}
}

/* 7. Breadcrumbs (UX 2.11)
 * Full trail from 768px; on phones only the parent, as a back link.
 * -------------------------------------------------------------------------- */

.pfa-breadcrumbs-bar {
	padding-block: var(--pfa-space-2) 0;
}

.pfa-breadcrumbs {
	font-size: var(--pfa-fs-small);
	line-height: 1.4;
}

.pfa-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pfa-space-1) var(--pfa-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: var(--pfa-space-2);
}

.pfa-breadcrumbs__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--pfa-target);
	color: var(--pfa-link);
}

.pfa-breadcrumbs__item.is-current {
	color: var(--pfa-ink-muted);
}

@media (max-width: 767.98px) {
	.pfa-breadcrumbs__item {
		display: none;
	}

	.pfa-breadcrumbs__item.is-parent {
		display: inline-flex;
	}

	.pfa-breadcrumbs__item.is-parent .pfa-breadcrumbs__link {
		gap: var(--pfa-space-2);
		padding-inline-end: var(--pfa-space-2);
		font-weight: 600;
	}

	.pfa-breadcrumbs__item.is-parent .pfa-breadcrumbs__link::before {
		content: "";
		width: 0.5em;
		height: 0.5em;
		margin-inline-start: 0.2em;
		border-bottom: 2px solid currentColor;
		border-left: 2px solid currentColor;
		transform: rotate(45deg);
	}
}

@media (min-width: 768px) {
	.pfa-breadcrumbs__item + .pfa-breadcrumbs__item::before {
		content: "";
		width: 0.45em;
		height: 0.45em;
		margin-inline-end: 0.15em;
		border-top: 2px solid var(--pfa-ink-muted);
		border-right: 2px solid var(--pfa-ink-muted);
		transform: rotate(45deg);
	}
}

/* 8. Page hero, content area, reviewed-by stamp
 * -------------------------------------------------------------------------- */

.pfa-main {
	display: block;
}

.pfa-page-hero {
	padding-block: var(--pfa-space-6) var(--pfa-space-7);
}

.pfa-page-hero__inner > * {
	margin-block: 0;
}

.pfa-page-hero__inner > * + * {
	margin-block-start: var(--pfa-space-4);
}

.pfa-page-hero__eyebrow {
	color: var(--pfa-ink-muted);
	font-size: var(--pfa-fs-label);
	font-weight: 600;
}

.pfa-page-hero__title {
	max-width: 30ch;
}

.pfa-page-hero__lead {
	max-width: var(--pfa-measure);
	font-size: var(--pfa-fs-lead);
	font-weight: 500;
	line-height: 1.5;
}

/* Lines the H1 up with the 720px reading column. */
.pfa-page-hero--narrow .pfa-page-hero__inner,
.pfa-page-hero--guide .pfa-page-hero__inner {
	max-width: calc(var(--pfa-content) + 2 * var(--pfa-gutter));
}

@media (min-width: 768px) {
	.pfa-page-hero {
		padding-block: var(--pfa-space-7) var(--pfa-space-8);
	}
}

.pfa-content {
	padding-bottom: var(--pfa-space-2);
}

.pfa-page-links {
	margin-block-start: var(--pfa-space-6);
	font-weight: 600;
}

/* Reviewed-by stamp (UX C41), directly before the next step band. */
.pfa-reviewed-wrap {
	margin-block-start: var(--pfa-space-7);
}

.pfa-reviewed-by {
	display: flex;
	align-items: flex-start;
	gap: var(--pfa-space-3);
	max-width: var(--pfa-content);
	margin-inline: auto;
	padding: var(--pfa-space-4) var(--pfa-space-5);
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-arctic);
	color: var(--pfa-sapphire);
	font-size: var(--pfa-fs-small);
	line-height: 1.55;
}

.pfa-reviewed-by__icon {
	flex: none;
	width: 24px;
	height: 24px;
	margin-block-start: 1px;
	color: var(--pfa-iris);
}

.pfa-reviewed-by__text {
	margin: 0;
}

.pfa-reviewed-by__name {
	font-weight: 600;
}

/* 9. Next step band (UX C39), the theme's own version
 * Royal Sapphire block, Arctic White text, Soft Lavender emphasis (base.css
 * .pfa-on-dark), light primary button, line art in its own column.
 * -------------------------------------------------------------------------- */

.pfa-next-step,
.pfa-next-step-wrap {
	margin-block-start: var(--pfa-section-y);
}

/* After a page built from sections, whose last section already ends with
   half the section spacing, the band adds the other half from 1024px: the
   same space above it as between sections and below it (it was 50% more). */
@media (min-width: 1024px) {
	.entry-content:has(> .pfa-section:last-child) + :is(.pfa-next-step, .pfa-next-step-wrap) {
		margin-block-start: calc(var(--pfa-section-y) / 2);
	}
}

.pfa-next-step__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
	padding: var(--pfa-space-7) var(--pfa-space-5);
	border-radius: var(--pfa-radius-card);
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
}

.pfa-next-step__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-4);
	max-width: 40rem;
}

.pfa-next-step__body > * {
	margin: 0;
}

.pfa-next-step__title {
	color: var(--pfa-arctic);
}

.pfa-next-step__lead {
	font-size: var(--pfa-fs-lead);
	font-weight: 500;
	line-height: 1.5;
}

/* A pfa-cta container (section 2): a smaller label when the band is narrow. */
.pfa-next-step__actions {
	container: pfa-cta / inline-size;
	display: flex;
	flex-wrap: wrap;
	gap: var(--pfa-space-3);
	margin-block-start: var(--pfa-space-2);
}

.pfa-next-step__note,
.pfa-next-step__phone {
	font-size: var(--pfa-fs-small);
	line-height: 1.55;
}

.pfa-next-step__phone a {
	font-weight: 700;
	white-space: nowrap;
}

.pfa-next-step__art {
	display: none;
	color: var(--pfa-lavender);
}

/* Phones: both buttons full width, one above the other (as core buttons),
   both 52px tall like the call to action. The second button keeps clear on
   its right what the call to action's arrow takes (6px edge, 40px tile and
   the 12px gap; in a narrow band the gap is 8px and the start 16px, and
   under 16.5rem there is no tile, section 2), so both labels share one
   centre line. */
@media (max-width: 479px) {
	.pfa-next-step__actions > .pfa-button {
		flex: 1 1 100%;
		min-height: 52px;
	}

	.pfa-next-step__actions > .pfa-button:not(.pfa-cta) {
		padding-inline-end: calc(6px + 40px + var(--pfa-space-3));
	}

	@container pfa-cta (max-width: 19.25rem) {
		.pfa-next-step__actions > .pfa-button:not(.pfa-cta) {
			padding-inline: var(--pfa-space-4) calc(6px + 40px + var(--pfa-space-2));
		}
	}

	@container pfa-cta (max-width: 16.5rem) {
		.pfa-next-step__actions > .pfa-button:not(.pfa-cta) {
			padding-inline: var(--pfa-space-4);
		}
	}
}

@media (min-width: 768px) {
	.pfa-next-step__card {
		padding: var(--pfa-space-8) var(--pfa-space-7);
	}
}

@media (min-width: 1024px) {
	.pfa-next-step__card {
		grid-template-columns: minmax(0, 1fr) 15rem;
		align-items: end;
		gap: var(--pfa-space-7);
	}

	/* Decorative, cropped by the card's edge, never behind text (UX B6). */
	.pfa-next-step__art {
		display: block;
		margin-block-end: calc(-1 * var(--pfa-space-9));
		margin-inline-end: calc(-1 * var(--pfa-space-7));
	}

	.pfa-next-step__art svg {
		display: block;
		width: 18rem;
		height: auto;
	}
}

/* 10. Urgent help strip (UX 2.12)
 * Arctic White card, 4px Iris Violet rule on the left, inside the canvas,
 * above the footer. Calm: no red, no alarm icons.
 * -------------------------------------------------------------------------- */

.pfa-urgent-wrap {
	display: block;
	padding-block: var(--pfa-section-y) var(--pfa-space-8);
}

.pfa-urgent-strip {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-4);
	padding: var(--pfa-space-5) var(--pfa-space-5) var(--pfa-space-5) var(--pfa-space-6);
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-arctic);
	box-shadow: inset 4px 0 0 var(--pfa-iris);
	color: var(--pfa-sapphire);
}

.pfa-urgent-strip__title {
	margin: 0 0 var(--pfa-space-2);
	font-size: var(--pfa-fs-h4);
	line-height: 1.3;
}

.pfa-urgent-strip__body p {
	margin: 0;
}

.pfa-urgent-strip__body p + p {
	margin-block-start: var(--pfa-space-1);
}

.pfa-urgent-strip__tel {
	font-weight: 700;
	white-space: nowrap;
}

.pfa-urgent-strip__more {
	margin: 0;
}

@media (min-width: 768px) {
	.pfa-urgent-strip {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		gap: var(--pfa-space-6);
		padding: var(--pfa-space-6) var(--pfa-space-7);
	}
}

/* 11. Footer (UX 2.13)
 * Navy, Arctic White text (18.33:1), Soft Lavender headings (7.97:1),
 * Turquoise link hover and focus (11.30:1) from .pfa-on-dark.
 * -------------------------------------------------------------------------- */

.pfa-footer {
	padding-block: var(--pfa-space-8) calc(var(--pfa-space-7) + env(safe-area-inset-bottom, 0px));
	background-color: var(--pfa-navy);
	color: var(--pfa-arctic);
	font-size: var(--pfa-fs-small);
	line-height: 1.55;
}

.pfa-footer p {
	margin: 0;
}

.pfa-footer a:not(.pfa-button) {
	color: var(--pfa-link);
}

.pfa-footer a:not(.pfa-button):hover {
	color: var(--pfa-link-hover);
}

.pfa-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-7);
}

.pfa-footer__brand {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	justify-items: start;
	gap: var(--pfa-space-4);
}

.pfa-footer__brand .pfa-logo__image {
	height: 44px;
}

/* Balanced, so the two-sentence tagline breaks between its sentences when
   it needs two lines (phones), never inside one. */
.pfa-footer__line {
	max-width: 24rem;
	font-size: var(--pfa-fs-body);
	text-wrap: balance;
}

.pfa-footer .pfa-footer__cta .pfa-button {
	font-size: var(--pfa-fs-small);
}

.pfa-footer__contact,
.pfa-footer__social {
	display: grid;
	gap: var(--pfa-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pfa-space-1) var(--pfa-space-4);
}

.pfa-footer__contact-item {
	display: grid;
}

.pfa-footer__contact-link,
.pfa-footer__social-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--pfa-target);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.pfa-footer__groups {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-6) var(--pfa-space-5);
}

.pfa-footer__heading {
	margin: 0 0 var(--pfa-space-2);
	color: var(--pfa-lavender);
	font-size: var(--pfa-fs-body);
	font-weight: 700;
	line-height: 1.3;
}

.pfa-footer-nav__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A label that wraps keeps its own lines close and has 4px above and below,
   so it does not run into the next link. One-line links stay at the target
   height (border-box). */
.pfa-footer-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--pfa-target);
	padding-block: var(--pfa-space-1);
	font-size: 1.0625rem;
	line-height: 1.3;
	text-decoration: none;
}

.pfa-footer-nav__link:hover,
.pfa-footer-nav__link[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pfa-footer__regulation {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--pfa-space-5);
	margin-block-start: var(--pfa-space-8);
	padding-block-start: var(--pfa-space-6);
	border-top: 1px solid var(--pfa-rule);
}

.pfa-footer__regulation-text {
	display: grid;
	flex: 1 1 24rem;
	gap: var(--pfa-space-2);
	max-width: 60rem;
}

.pfa-footer__cqc-graphic {
	display: inline-flex;
	flex: none;
}

.pfa-footer__cqc-graphic img {
	display: block;
	width: 135px;
	height: auto;
}

.pfa-footer__inline-link {
	font-weight: 600;
	white-space: nowrap;
}

.pfa-footer__policies {
	margin-block-start: var(--pfa-space-6);
	padding-block-start: var(--pfa-space-4);
	border-top: 1px solid var(--pfa-rule);
}

.pfa-footer__policies .pfa-footer-nav__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--pfa-space-5);
}

.pfa-footer__policies .pfa-footer-nav__link {
	font-size: var(--pfa-fs-small);
}

.pfa-footer__company {
	display: grid;
	gap: var(--pfa-space-1);
	margin-block-start: var(--pfa-space-5);
}

.pfa-footer__copyright {
	margin-block-start: var(--pfa-space-3) !important;
}

/* Link groups two by two from 640px, where every label fits on one line
   (the longest, "NHS, Right to Choose or private", needs 611px); one column
   below. Two across on phones, 5-7 labels wrapped in the narrow columns and
   ran into the links under them. Four across from 1200px. */
@media (min-width: 640px) {
	.pfa-footer__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.pfa-footer-nav__list {
		row-gap: var(--pfa-space-1);
	}

	.pfa-footer-nav__link {
		min-height: 36px;
	}

	.pfa-footer__policies .pfa-footer-nav__list {
		display: flex;
		flex-wrap: wrap;
		gap: 0 var(--pfa-space-6);
	}
}

@media (min-width: 1200px) {
	.pfa-footer__top {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 4fr);
		gap: var(--pfa-space-7);
	}

	.pfa-footer__groups {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* 12. Mobile quick actions bar (UX D6, I10)
 * Under 768px only, 64px plus the safe area. navigation.js shows it.
 * -------------------------------------------------------------------------- */

.pfa-quick {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	padding: var(--pfa-space-2) max(var(--pfa-gutter), env(safe-area-inset-right, 0px)) calc(var(--pfa-space-2) + env(safe-area-inset-bottom, 0px)) max(var(--pfa-gutter), env(safe-area-inset-left, 0px));
	border-top: 1px solid var(--pfa-border);
	background-color: var(--pfa-arctic);
}

.pfa-quick__inner {
	display: flex;
	gap: var(--pfa-space-2);
	max-width: 40rem;
	margin-inline: auto;
}

.pfa-quick .pfa-quick__book {
	flex: 1 1 auto;
	min-height: 48px;
	padding-block: 4px;
	font-size: var(--pfa-fs-small);
}

.pfa-quick .pfa-button__arrow {
	width: 36px;
	height: 36px;
}

.pfa-quick__contact {
	flex: none;
	min-height: 48px;
	padding-inline: var(--pfa-space-4);
	font-size: var(--pfa-fs-small);
}

@media (max-width: 419.98px) {
	.pfa-quick .pfa-button__arrow {
		display: none;
	}

	.pfa-quick .pfa-quick__book {
		padding-inline: var(--pfa-space-4);
	}
}

@media (min-width: 768px) {
	.pfa-quick {
		display: none !important;
	}
}

/* 13. Cards (UX B3: flat bento, no shadow), guide cards, clinician cards, profile
 * Pair a dark card with .pfa-on-dark (or .pfa-on-iris, .pfa-on-tint) so its
 * links, focus ring and emphasis switch colour too.
 * -------------------------------------------------------------------------- */

.pfa-card {
	padding: var(--pfa-space-5);
	border-radius: var(--pfa-radius-card);
	background-color: var(--pfa-arctic);
	color: var(--pfa-sapphire);
}

.pfa-card--white {
	background-color: var(--pfa-white);
}

.pfa-card--canvas {
	background-color: var(--pfa-canvas);
}

.pfa-card--sapphire {
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
}

.pfa-card--iris {
	background-color: var(--pfa-iris);
	color: var(--pfa-white);
}

.pfa-card--turquoise {
	background-color: var(--pfa-turquoise);
	color: var(--pfa-sapphire);
}

.pfa-card--lavender {
	background-color: var(--pfa-lavender-tint);
	color: var(--pfa-sapphire);
}

@media (min-width: 768px) {
	.pfa-card {
		padding: var(--pfa-space-6);
	}
}

/* Guide cards (UX C44). The title link covers the whole card. */
.pfa-guide-grid,
.pfa-clinician-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-5);
}

.pfa-guide-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--pfa-radius-card);
	background-color: var(--pfa-arctic);
	color: var(--pfa-sapphire);
}

.pfa-guide-card__media {
	aspect-ratio: 4 / 3;
	background-color: var(--pfa-lavender-wash);
}

.pfa-guide-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pfa-guide-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--pfa-space-3);
	padding: var(--pfa-space-5);
}

.pfa-guide-card__body > * {
	margin: 0;
}

.pfa-guide-card__topic {
	align-self: flex-start;
	padding: var(--pfa-space-1) var(--pfa-space-3);
	border-radius: var(--pfa-radius-pill);
	background-color: var(--pfa-lavender-tint);
	font-size: var(--pfa-fs-label);
	font-weight: 600;
	line-height: 1.3;
}

.pfa-guide-card__title {
	font-size: var(--pfa-fs-h4);
	line-height: 1.3;
}

.pfa-guide-card__link {
	color: var(--pfa-sapphire);
	text-decoration: none;
}

.pfa-guide-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.pfa-guide-card:hover .pfa-guide-card__link {
	color: var(--pfa-sapphire);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* Keyboard focus rings the whole card (the link covers it). */
@supports selector(:has(a)) {
	.pfa-guide-card:has(.pfa-guide-card__link:focus-visible) {
		outline: 3px solid var(--pfa-focus);
		outline-offset: 3px;
	}

	.pfa-guide-card__link:focus-visible {
		outline: none;
	}
}

.pfa-guide-card__excerpt {
	color: var(--pfa-ink-muted);
}

.pfa-guide-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pfa-space-1) var(--pfa-space-4);
	margin-block-start: auto !important;
	color: var(--pfa-ink-muted);
	font-size: var(--pfa-fs-small);
}

/* Clinician cards (UX C30, I7): photo left 96px on phones, on top from 768px. */
.pfa-clinician-card {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: start;
	gap: var(--pfa-space-4);
	padding: var(--pfa-space-4);
	border-radius: var(--pfa-radius-card);
	background-color: var(--pfa-arctic);
	color: var(--pfa-sapphire);
}

.pfa-clinician-card__photo {
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-lavender-wash);
}

.pfa-clinician-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pfa-clinician-card__body > * {
	margin: 0;
}

.pfa-clinician-card__body > * + * {
	margin-block-start: var(--pfa-space-2);
}

.pfa-clinician-card__name {
	font-size: var(--pfa-fs-h4);
	line-height: 1.3;
}

.pfa-clinician-card__name a {
	color: var(--pfa-sapphire);
}

.pfa-clinician-card__role {
	font-weight: 500;
}

.pfa-clinician-card__reg,
.pfa-clinician-card__check {
	font-size: var(--pfa-fs-small);
}

.pfa-clinician-card__reg {
	font-weight: 600;
}

.pfa-clinician-card .pfa-pills {
	margin-block-start: var(--pfa-space-3);
}

/* Clinician profile (UX T14). */
.pfa-profile__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-6);
	padding-block: var(--pfa-space-6) var(--pfa-space-7);
}

.pfa-profile__photo {
	overflow: hidden;
	max-width: 22.5rem;
	aspect-ratio: 4 / 5;
	border-radius: var(--pfa-radius-card);
	background-color: var(--pfa-lavender-wash);
}

.pfa-profile__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pfa-profile__intro:not(.has-photo) .pfa-profile__summary {
	max-width: var(--pfa-content);
}

.pfa-profile__summary > * {
	margin-block: 0;
}

.pfa-profile__summary > * + * {
	margin-block-start: var(--pfa-space-4);
}

.pfa-profile__summary > .pfa-profile__postnominals {
	margin-block-start: var(--pfa-space-2);
	color: var(--pfa-ink-muted);
	font-weight: 600;
}

.pfa-profile__role {
	font-size: var(--pfa-fs-lead);
	font-weight: 500;
	line-height: 1.5;
}

.pfa-profile__subtitle {
	margin: 0 0 var(--pfa-space-4);
	font-size: var(--pfa-fs-h3);
}

.pfa-profile__summary > .pfa-profile__subtitle {
	margin-block: var(--pfa-space-6) 0;
}

.pfa-profile__details {
	display: grid;
	gap: var(--pfa-space-2);
}

.pfa-profile__details > div {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--pfa-space-2);
}

.pfa-profile__details dt {
	font-weight: 700;
}

.pfa-profile__details dd {
	margin: 0;
}

.pfa-reg {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-2);
	padding: var(--pfa-space-5);
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-arctic);
}

.pfa-reg > * {
	margin: 0;
}

.pfa-reg__title {
	font-size: var(--pfa-fs-h4);
}

.pfa-reg__line {
	font-weight: 600;
}

.pfa-reg__check a {
	font-weight: 600;
}

.pfa-reg__checked {
	color: var(--pfa-ink-muted);
	font-size: var(--pfa-fs-small);
}

.pfa-profile__bio {
	padding-block-end: var(--pfa-space-4);
}

.pfa-profile__bio .pfa-content {
	max-width: var(--pfa-content);
}

.pfa-profile__reviewed,
.pfa-profile__others {
	margin-block-start: var(--pfa-space-8);
}

.pfa-link-list {
	display: grid;
	gap: var(--pfa-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-link-list a {
	display: inline-flex;
	align-items: center;
	min-height: var(--pfa-target);
	font-weight: 600;
}

@media (min-width: 768px) {
	.pfa-guide-grid,
	.pfa-clinician-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pfa-clinician-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 0;
		overflow: hidden;
	}

	.pfa-clinician-card__photo {
		border-radius: 0;
	}

	.pfa-clinician-card__body {
		padding: var(--pfa-space-5);
	}

	.pfa-profile__intro.has-photo {
		grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
		align-items: start;
		gap: var(--pfa-space-7);
	}
}

@media (min-width: 1024px) {
	.pfa-guide-grid,
	.pfa-clinician-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* A lone last guide card spans its row as a wide card, image on the left,
   so no part of a row is left empty (bento cards share rows). */
@media (min-width: 768px) and (max-width: 1023.98px) {
	.pfa-guide-grid > .pfa-guide-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		flex-direction: row;
	}

	.pfa-guide-grid > .pfa-guide-card:last-child:nth-child(odd) > .pfa-guide-card__media {
		flex: 0 0 calc((100% - var(--pfa-space-5)) / 2);
		aspect-ratio: auto;
	}
}

/* From 1024px the image is as wide as a column above, so the text lines up
   with column two. The meta follows the text here: !important only to beat
   the card's own "margin-block-start: auto !important" (section 13). */
@media (min-width: 1024px) {
	.pfa-guide-grid > .pfa-guide-card:last-child:nth-child(3n + 1) {
		grid-column: 1 / -1;
		flex-direction: row;
	}

	.pfa-guide-grid > .pfa-guide-card:last-child:nth-child(3n + 1) > .pfa-guide-card__media {
		flex: 0 0 calc((100% - 2 * var(--pfa-space-5)) / 3);
		aspect-ratio: auto;
	}

	.pfa-guide-grid > .pfa-guide-card:last-child:nth-child(3n + 1) > .pfa-guide-card__body {
		justify-content: center;
		padding: var(--pfa-space-6) var(--pfa-space-7);
	}

	.pfa-guide-grid > .pfa-guide-card:last-child:nth-child(3n + 1) .pfa-guide-card__meta {
		margin-block-start: var(--pfa-space-2) !important;
	}
}

@media (min-width: 1200px) {
	.pfa-profile__intro.has-photo {
		grid-template-columns: 22.5rem minmax(0, 1fr);
		gap: var(--pfa-space-8);
	}

}

/* 14. Forms (labels above fields, 48px inputs, error states) and the search form
 * The look of inputs and selects comes from theme.json (textInput, select).
 * Zero specificity, so block forms can refine any of it.
 * -------------------------------------------------------------------------- */

:where(.pfa-main, .pfa-dialog) :where(textarea, select, input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="image"])) {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
}

:where(.pfa-main, .pfa-dialog) :where(textarea) {
	min-height: 8rem;
	resize: vertical;
}

.pfa-field {
	display: grid;
	gap: var(--pfa-space-2);
}

.pfa-field + .pfa-field {
	margin-block-start: var(--pfa-space-5);
}

.pfa-field__label {
	display: block;
	font-size: var(--pfa-fs-body);
	font-weight: 600;
	line-height: 1.4;
}

.pfa-field__hint {
	margin: 0;
	color: var(--pfa-ink-muted);
	font-size: var(--pfa-fs-small);
}

.pfa-field__error {
	display: flex;
	align-items: flex-start;
	gap: var(--pfa-space-2);
	margin: 0;
	color: var(--pfa-error);
	font-size: var(--pfa-fs-small);
	font-weight: 600;
}

.pfa-field--error :where(input, select, textarea),
:where(input, select, textarea)[aria-invalid="true"] {
	border-width: 2px;
	border-color: var(--pfa-error);
}

/* Error summary at the top of a form on submit. */
.pfa-error-summary {
	padding: var(--pfa-space-5);
	border: 2px solid var(--pfa-error);
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-white);
	color: var(--pfa-sapphire);
}

.pfa-error-summary__title {
	margin: 0 0 var(--pfa-space-2);
	color: var(--pfa-error);
	font-size: var(--pfa-fs-h4);
}

.pfa-error-summary ul {
	margin: 0;
	padding-inline-start: 1.25em;
}

.pfa-error-summary a {
	color: var(--pfa-error);
	font-weight: 600;
}

.pfa-form-success {
	padding: var(--pfa-space-5);
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-white);
	box-shadow: inset 4px 0 0 var(--pfa-success);
	color: var(--pfa-sapphire);
}

.pfa-form-success__title {
	margin: 0 0 var(--pfa-space-2);
	color: var(--pfa-success);
	font-size: var(--pfa-fs-h4);
}

/* Search form (UX B14 "input pill"): the field and the button in one rounded container. */
.pfa-search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-2);
	max-width: 36rem;
}

.pfa-search-form__label {
	font-weight: 600;
}

.pfa-search-form__pill {
	display: flex;
	align-items: center;
	gap: var(--pfa-space-2);
	padding: 4px;
	border: 1px solid var(--pfa-ink-muted);
	border-radius: var(--pfa-radius-pill);
	background-color: var(--pfa-white);
}

.pfa-search-form .pfa-search-form__input {
	flex: 1 1 0%;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 0 var(--pfa-space-4);
	border: 0;
	border-radius: var(--pfa-radius-pill);
	background-color: transparent;
	color: var(--pfa-sapphire);
}

.pfa-search-form .pfa-search-form__input:focus-visible {
	outline-offset: 0;
}

.pfa-search-form__button {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: var(--pfa-space-2);
	min-height: 44px;
	padding: 0 var(--pfa-space-5);
	border: 0;
	border-radius: var(--pfa-radius-pill);
	background-color: var(--pfa-lavender);
	color: var(--pfa-sapphire);
	font: inherit;
	font-weight: 600;
	transition: background-color var(--pfa-transition), color var(--pfa-transition);
}

.pfa-search-form__button:hover {
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
}

.pfa-search-form__button svg {
	width: 20px;
	height: 20px;
}

/* 15. Tables
 * Core table blocks are styled in base.css and blocks/core-table.css; this
 * is for tables the templates print.
 * -------------------------------------------------------------------------- */

.pfa-table-wrap {
	overflow-x: auto;
}

.pfa-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--pfa-fs-small);
}

.pfa-table :is(th, td) {
	padding: var(--pfa-space-3) var(--pfa-space-4);
	border-bottom: 1px solid var(--pfa-border);
	text-align: start;
	vertical-align: top;
}

.pfa-table thead th {
	border-bottom: 2px solid currentColor;
	font-weight: 600;
}

/* 16. Guides (UX T20): "On this page" beside the article from 1200px; legal pages (T27)
 * -------------------------------------------------------------------------- */

.pfa-guide__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pfa-space-1) var(--pfa-space-5);
	color: var(--pfa-ink-muted);
	font-size: var(--pfa-fs-small);
}

.pfa-guide__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-5);
	max-width: calc(var(--pfa-content) + 2 * var(--pfa-gutter));
}

.pfa-guide__body {
	min-width: 0;
	max-width: var(--pfa-content);
}

/* Guide and legal text keeps the reading measure (37rem). In short boxes,
   tables, price cards and callouts keep the 720px column (the article
   column from 1200px). */
:is(.pfa-guide__body .pfa-content, .pfa-legal__content) > :is(p, ul, ol, h2, h3, h4) {
	max-width: var(--pfa-measure);
}

.pfa-toc {
	font-size: var(--pfa-fs-small);
}

.pfa-toc__details {
	border-radius: var(--pfa-radius-card);
	background-color: var(--pfa-arctic);
}

/* The title starts on the links' text edge (list 8px + link 12px). */
.pfa-toc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pfa-space-3);
	min-height: 48px;
	padding: var(--pfa-space-2) var(--pfa-space-4);
	padding-inline-start: calc(var(--pfa-space-2) + var(--pfa-space-3));
	font-weight: 700;
	list-style: none;
}

.pfa-toc__summary::-webkit-details-marker {
	display: none;
}

.pfa-toc__chevron {
	display: inline-flex;
}

.pfa-toc__chevron svg {
	width: 20px;
	height: 20px;
}

.pfa-toc__details[open] .pfa-toc__chevron {
	transform: rotate(180deg);
}

.pfa-toc__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0 var(--pfa-space-2) var(--pfa-space-3);
	list-style: none;
}

/* One-line rows are 44px (--pfa-target) for touch; from 1200px, beside the
   article, they keep the 8px padding. Padding, not flex, so the numbers of
   the open list stay on the text's baseline. */
.pfa-toc__link {
	display: block;
	padding: calc((var(--pfa-target) - 1.4em) / 2) var(--pfa-space-3);
	border-radius: 10px;
	color: var(--pfa-sapphire);
	line-height: 1.4;
	text-decoration: none;
	transition: background-color var(--pfa-transition);
}

.pfa-toc__link:hover {
	background-color: var(--pfa-lavender-wash);
	color: var(--pfa-sapphire);
	text-decoration: underline;
}

.pfa-toc__link.is-active {
	background-color: var(--pfa-lavender-tint);
	font-weight: 600;
}

/* An always-open contents list (on-this-page with 'collapsible' => false). */
.pfa-toc--open {
	margin-block-end: var(--pfa-space-7);
	padding: var(--pfa-space-5);
	border-radius: var(--pfa-radius-card);
	background-color: var(--pfa-arctic);
}

.pfa-toc--open .pfa-toc__title {
	margin: 0 0 var(--pfa-space-2);
	font-size: var(--pfa-fs-h4);
}

.pfa-toc--open .pfa-toc__list {
	padding: 0 0 0 1.5em;
	list-style: decimal;
}

.pfa-toc--open .pfa-toc__link {
	padding-inline: var(--pfa-space-2);
}

.pfa-legal__updated {
	color: var(--pfa-ink-muted);
	font-size: var(--pfa-fs-small);
}

.pfa-related {
	margin-block-start: var(--pfa-section-y);
}

.pfa-related__title {
	margin: 0 0 var(--pfa-space-5);
}

@media (min-width: 1200px) {
	/* Contents in the left column, the article in the right one, on the FAQ
	   and reading sections' lines (5fr / 7fr, the split gap), so the text
	   ends near the frame's right edge instead of 280px short of it. */
	.pfa-guide__layout.has-toc {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		gap: var(--pfa-split-gap);
		max-width: calc(var(--pfa-wide) + 2 * var(--pfa-gutter));
	}

	.pfa-guide__layout.has-toc > .pfa-guide__aside {
		width: 100%;
		max-width: 20rem;
	}

	/* A pair of price cards in the article column stacks: side by side they
	   were about 300px wide (narrower than at 768px), with titles on two or
	   three lines and the prices out of line. One under the other, as the
	   single card in other guides. */
	.pfa-guide__layout.has-toc .pfa-guide__body .wp-block-group.pfa-grid-2:has(> .pfa-price-card--compact) {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The H1 lines up with the article, over the right column. */
	.pfa-page-hero--guide.has-toc .pfa-page-hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--pfa-split-gap);
		max-width: calc(var(--pfa-wide) + 2 * var(--pfa-gutter));
	}

	.pfa-page-hero--guide.has-toc .pfa-page-hero__inner > * {
		grid-column: 2;
	}

	/* A guide title stops at 48px, about its size at 1024-1100px: in the
	   narrower article column the fluid H1 size (up to 56px) broke the
	   longest title onto four lines. Legal titles are short and keep it. */
	.pfa-guide .pfa-page-hero--guide.has-toc .pfa-page-hero__title {
		font-size: min(var(--pfa-fs-h1), 3rem);
	}

	.pfa-guide__aside {
		position: sticky;
		top: calc(var(--pfa-sticky-top) + var(--pfa-space-5));
		max-height: calc(100vh - var(--pfa-sticky-top) - 2 * var(--pfa-space-5));
		overflow-y: auto;
	}

	.pfa-toc__summary {
		cursor: default;
	}

	.pfa-toc__chevron {
		display: none;
	}

	.pfa-toc__link {
		padding-block: var(--pfa-space-2);
	}
}

/* Legal pages (T27): the guides' long-read layout with one reading edge. As
   on guides, the title, contents, cards and tables use the 720px column, so
   a long title or a three-column table is not squeezed into the measure;
   the text keeps the measure (above). */
.pfa-legal .pfa-page-hero__inner,
.pfa-legal .pfa-guide__layout {
	max-width: calc(var(--pfa-wide) + 2 * var(--pfa-gutter));
}

.pfa-legal .pfa-page-hero__inner > *,
.pfa-legal .pfa-guide__aside,
.pfa-legal .pfa-guide__body {
	max-width: var(--pfa-content);
}

/* Below 1200px the contents sit above the text, which opens with a heading:
   48px between them, not 24px, so the heading does not look jammed. */
@media (max-width: 1199.98px) {
	.pfa-legal .pfa-guide__layout {
		row-gap: var(--pfa-space-7);
	}
}

/* Guides below 1200px: the same one edge. The hero and the article start on
   the breadcrumb's edge, as the related guides and every other page do,
   instead of a centred 720px column; the reading column keeps 720px. From
   1200px the contents column sits beside the article (above). */
@media (max-width: 1199.98px) {
	.pfa-guide .pfa-page-hero__inner,
	.pfa-guide .pfa-guide__layout {
		max-width: calc(var(--pfa-wide) + 2 * var(--pfa-gutter));
	}

	.pfa-guide .pfa-page-hero__inner > *,
	.pfa-guide .pfa-guide__aside,
	.pfa-guide .pfa-guide__body {
		max-width: var(--pfa-content);
	}
}

/* 17. Lists of guides, search results, crisis panel, 404, useful links
 * -------------------------------------------------------------------------- */

.pfa-page-hero .pfa-topic-pills {
	margin-block-start: var(--pfa-space-5);
}

/* Phones: 12px side padding, so the topic pills take two rows instead of
   three from 380px wide (smaller phones keep three). Still 44px tall. */
@media (max-width: 479px) {
	.pfa-topic-pills .pfa-pill {
		padding-inline: var(--pfa-space-3);
	}
}

.pfa-archive__body,
.pfa-search__body,
.pfa-not-found__body {
	padding-block-end: var(--pfa-space-4);
}

.pfa-empty {
	margin: 0 0 var(--pfa-space-6);
	font-size: var(--pfa-fs-lead);
}

.pfa-search__body,
.pfa-not-found__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-7);
}

/* The search form there is as wide as the results and links around it, so
   the blocks end on one right edge. */
:is(.pfa-search__body, .pfa-not-found__body) .pfa-search-form {
	max-width: 48rem;
}

.pfa-search-results {
	max-width: 48rem;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--pfa-border);
	list-style: none;
}

.pfa-search-results + .pfa-pagination {
	margin-block-start: calc(-1 * var(--pfa-space-4));
}

.pfa-search-result {
	padding-block: var(--pfa-space-5);
	border-bottom: 1px solid var(--pfa-border);
}

.pfa-search-result > * {
	margin: 0;
}

.pfa-search-result__type {
	display: inline-block;
	margin-block-end: var(--pfa-space-2);
	padding: var(--pfa-space-1) var(--pfa-space-3);
	border-radius: var(--pfa-radius-pill);
	background-color: var(--pfa-lavender-tint);
	font-size: var(--pfa-fs-label);
	font-weight: 600;
	line-height: 1.3;
}

.pfa-search-result__title {
	font-size: var(--pfa-fs-h4);
	line-height: 1.3;
}

.pfa-search-result__excerpt {
	margin-block-start: var(--pfa-space-2) !important;
	color: var(--pfa-ink-muted);
}

/* Crisis panel above search results (UX I13). */
.pfa-crisis {
	max-width: 48rem;
	padding: var(--pfa-space-5) var(--pfa-space-5) var(--pfa-space-5) var(--pfa-space-6);
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-arctic);
	box-shadow: inset 4px 0 0 var(--pfa-iris);
	color: var(--pfa-sapphire);
}

.pfa-crisis > * {
	margin: 0;
}

.pfa-crisis > * + * {
	margin-block-start: var(--pfa-space-2);
}

.pfa-crisis__title {
	font-size: var(--pfa-fs-h3);
}

.pfa-crisis a[href^="tel:"] {
	font-weight: 700;
	white-space: nowrap;
}

.pfa-useful-links__title {
	margin: 0 0 var(--pfa-space-4);
	font-size: var(--pfa-fs-h3);
}

.pfa-useful-links__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfa-space-3);
	max-width: 48rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-useful-links__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pfa-space-3);
	min-height: 64px;
	padding: var(--pfa-space-3) var(--pfa-space-3) var(--pfa-space-3) var(--pfa-space-5);
	border-radius: var(--pfa-radius-inner);
	background-color: var(--pfa-arctic);
	color: var(--pfa-sapphire);
	font-weight: 700;
	text-decoration: none;
}

.pfa-useful-links__link:hover {
	color: var(--pfa-sapphire);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The square arrow (UX B7). */
.pfa-useful-links__go {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--pfa-radius-arrow);
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
}

.pfa-useful-links__go svg {
	width: 20px;
	height: 20px;
}

@media (min-width: 768px) {
	.pfa-useful-links__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 18. Pagination
 * -------------------------------------------------------------------------- */

.pfa-pagination {
	margin-block-start: var(--pfa-space-7);
}

.pfa-pagination__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pfa-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfa-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--pfa-target);
	min-height: var(--pfa-target);
	padding: 0 var(--pfa-space-4);
	border-radius: var(--pfa-radius-pill);
	background-color: var(--pfa-lavender-tint);
	color: var(--pfa-sapphire);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--pfa-transition);
}

.pfa-pagination a.page-numbers:hover {
	background-color: var(--pfa-lavender);
	color: var(--pfa-sapphire);
}

.pfa-pagination .page-numbers.current {
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
}

.pfa-pagination .page-numbers.dots {
	background-color: transparent;
}

/* 19. Larger text, short windows, print
 * -------------------------------------------------------------------------- */

/* With larger text the full navigation no longer fits one row in the 1200px
   header, so the compact layout (Menu button, side panel) stays at every width. */
@media (min-width: 1200px) {
	html[data-reading-size="large"] .pfa-nav {
		display: none;
	}

	html[data-reading-size="large"] .pfa-menu-toggle {
		display: inline-flex;
	}
}

/* Under 500px tall (landscape phones, high zoom) nothing is sticky (UX 2.8). */
@media (max-height: 499.98px) {
	.pfa-header,
	.admin-bar .pfa-header {
		position: relative;
		top: auto;
	}

	.pfa-guide__aside {
		position: static;
		max-height: none;
	}

	.pfa-menu__top {
		position: static;
	}

	.pfa-quick {
		display: none !important;
	}
}

@media print {
	.pfa-announcement,
	.pfa-header__actions,
	.pfa-header-sentinel,
	.pfa-breadcrumbs-bar,
	.pfa-next-step,
	.pfa-next-step-wrap,
	.pfa-quick,
	.pfa-guide__aside,
	.pfa-related {
		display: none !important;
	}

	.pfa-header {
		position: static;
		border: 0;
	}

	.pfa-footer {
		padding-block: var(--pfa-space-5);
	}
}
