/**
 * Psychiatry For All: base styles.
 *
 * Loaded on every page (inc/assets.php) and inside the block editor
 * (add_editor_style), so the editor matches the site.
 *
 * theme.json holds the values: colours, font sizes, spacing, layout widths.
 * This file gives them short --pfa-* names, then sets the reset, typography,
 * focus, layout helpers, reading options and print rules. Components live in
 * components.css, pattern styling in patterns.css, per-block styling in
 * blocks/core-*.css.
 *
 * Contents
 *   1. Tokens
 *   2. Surfaces: link, button, focus and emphasis colours per background
 *   3. Reset
 *   4. Typography
 *   5. Focus, skip link, screen reader text
 *   6. Layout helpers
 *   7. Post content rhythm and core blocks
 *   8. Forms baseline
 *   9. Reading options
 *  10. Motion
 *  11. Print
 *
 * Colour pairs follow the "Allowed" table in specs/ux-journey.md section 0.3.
 * Breakpoints: 768px, 1024px, 1200px wide; 500px tall (nothing sticky below).
 */

/* 1. Tokens
 * Each token reads its theme.json preset. The second value is the same value,
 * used only if the global styles have not loaded yet.
 * -------------------------------------------------------------------------- */

/* Arial adjusted to Montserrat's width and line height, so text does not jump
   when the web font arrives (values measured from the woff2 with fontTools). */
@font-face {
	font-family: "Montserrat Fallback";
	src: local("Arial"), local("ArialMT");
	size-adjust: 114.06%;
	ascent-override: 84.87%;
	descent-override: 22.01%;
	line-gap-override: 0%;
}

:root {
	/* Colour */
	--pfa-sapphire: var(--wp--preset--color--sapphire, #022b9f);
	--pfa-sapphire-700: var(--wp--preset--color--sapphire-700, #01217a);
	--pfa-turquoise: var(--wp--preset--color--turquoise, #0ddfd4);
	--pfa-lavender: var(--wp--preset--color--lavender, #ba96fa);
	--pfa-lavender-tint: var(--wp--preset--color--lavender-tint, #d8ccf9);
	--pfa-lavender-wash: var(--wp--preset--color--lavender-wash, #e9e2fc);
	--pfa-iris: var(--wp--preset--color--iris, #5855e4);
	--pfa-iris-700: var(--wp--preset--color--iris-700, #4441c9);
	--pfa-arctic: var(--wp--preset--color--arctic, #fafbff);
	--pfa-canvas: var(--wp--preset--color--canvas, #edf0f9);
	--pfa-white: var(--wp--preset--color--white, #fff);
	--pfa-navy: var(--wp--preset--color--navy, #000f2e);
	--pfa-ink: var(--wp--preset--color--ink, #022b9f);
	--pfa-ink-muted: var(--wp--preset--color--ink-muted, #3a4c8c);
	--pfa-border: var(--wp--preset--color--border, rgba(2, 43, 159, 0.14));
	--pfa-success: var(--wp--preset--color--success, #0b7a52);
	--pfa-error: var(--wp--preset--color--error, #b4232c);
	--pfa-gradient-serenity: var(--wp--custom--gradient--serenity, linear-gradient(135deg, #0ddfd4 0%, #2c7be5 38%, #5855e4 72%, #ba96fa 100%));

	/* Type */
	--pfa-font: var(--wp--preset--font-family--montserrat, "Montserrat", "Montserrat Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
	--pfa-fs-display: var(--wp--preset--font-size--display, clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem));
	--pfa-fs-h1: var(--wp--preset--font-size--heading-1, clamp(2.125rem, 1.55rem + 2.2vw, 3.5rem));
	--pfa-fs-h2: var(--wp--preset--font-size--heading-2, clamp(1.75rem, 1.4rem + 1.35vw, 2.5rem));
	--pfa-fs-h3: var(--wp--preset--font-size--heading-3, clamp(1.3125rem, 1.2rem + 0.5vw, 1.625rem));
	--pfa-fs-h4: var(--wp--preset--font-size--heading-4, 1.25rem);
	--pfa-fs-lead: var(--wp--preset--font-size--lead, clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem));
	--pfa-fs-body: var(--wp--preset--font-size--body, 1.125rem);
	--pfa-fs-small: var(--wp--preset--font-size--small, 1rem);
	--pfa-fs-label: var(--wp--preset--font-size--label, 0.9375rem);
	--pfa-measure: var(--wp--custom--measure, 37rem);

	/* Space */
	--pfa-space-1: var(--wp--preset--spacing--1, 0.25rem);
	--pfa-space-2: var(--wp--preset--spacing--2, 0.5rem);
	--pfa-space-3: var(--wp--preset--spacing--3, 0.75rem);
	--pfa-space-4: var(--wp--preset--spacing--4, 1rem);
	--pfa-space-5: var(--wp--preset--spacing--5, 1.5rem);
	--pfa-space-6: var(--wp--preset--spacing--6, 2rem);
	--pfa-space-7: var(--wp--preset--spacing--7, 3rem);
	--pfa-space-8: var(--wp--preset--spacing--8, 4rem);
	--pfa-space-9: var(--wp--preset--spacing--9, 6rem);
	--pfa-space-10: var(--wp--preset--spacing--10, 8rem);
	--pfa-section-y: var(--wp--custom--section-y, clamp(3.5rem, 2.25rem + 4.5vw, 7rem));
	--pfa-gutter: var(--wp--custom--gutter, clamp(1.25rem, 0.8rem + 2vw, 2.5rem));
	/* One gap between the two columns of every two-column layout (splits,
	   reading sections, guides): 32px, 48px from 900px, 64px from 1200px. */
	--pfa-split-gap: var(--pfa-space-6);
	--pfa-content: var(--wp--style--global--content-size, 720px);
	--pfa-wide: var(--wp--style--global--wide-size, 1200px);
	--pfa-max: var(--wp--custom--max, 1440px);

	/* Shape */
	--pfa-radius-card: var(--wp--custom--radius--card, 24px);
	--pfa-radius-inner: var(--wp--custom--radius--inner, 16px);
	--pfa-radius-btn: var(--wp--custom--radius--button, 14px);
	--pfa-radius-arrow: var(--wp--custom--radius--arrow, 10px);
	--pfa-radius-pill: var(--wp--custom--radius--pill, 999px);
	--pfa-radius-input: var(--wp--custom--radius--input, 14px);
	--pfa-shadow-dialog: var(--wp--custom--shadow--dialog, 0 24px 60px rgba(0, 15, 46, 0.18));

	/* Frame. The sticky header row is 60px, 72px from 768px, 76px from 1200px
	   (UX 2.8). --pfa-sticky-top is what sticks to the top (0 when the window
	   is too short for anything to stick). navigation.js sets
	   --pfa-sticky-bottom on <html> while the mobile bottom bar shows. */
	--pfa-header-height: 60px;
	--pfa-sticky-top: var(--pfa-header-height);
	--pfa-target: 44px;
	--pfa-transition: 0s;

	accent-color: var(--pfa-sapphire);
}

@media (max-width: 767.98px) {
	:root {
		--pfa-radius-card: var(--wp--custom--radius--card-small, 20px);
	}
}

@media (min-width: 768px) {
	:root {
		--pfa-header-height: 72px;
	}
}

@media (min-width: 900px) {
	:root {
		--pfa-split-gap: var(--pfa-space-7);
	}
}

@media (min-width: 1200px) {
	:root {
		--pfa-header-height: 76px;
		--pfa-split-gap: var(--pfa-space-8);
	}
}

@media (max-height: 499.98px) {
	:root {
		--pfa-sticky-top: 0px;
	}
}

/* 2. Surfaces
 * Each surface sets the colours for what sits on it. Surfaces nest (a white
 * card inside a Royal Sapphire band) and the nearest one wins.
 *   --pfa-text, --pfa-text-muted   body and secondary text
 *   --pfa-link, --pfa-link-hover   text links (theme.json reads these)
 *   --pfa-focus                    focus ring
 *   --pfa-em                       italic emphasis in H1 and H2 (UX D19)
 *   --pfa-btn-bg, --pfa-btn-fg, --pfa-btn-bg-hover
 *                                  buttons (theme.json and core-button.css)
 *   --pfa-btn-tile, --pfa-btn-arrow  the square arrow tile in a button
 *   --pfa-rule                     hairlines (separators, table rows)
 *   --pfa-bullet                   list markers
 * Give a component .pfa-on-light, .pfa-on-dark, .pfa-on-iris or .pfa-on-tint.
 * The group block styles and WordPress colour classes are listed here too
 * (core-group.css sets the same values for its styles). Zero specificity, so
 * component CSS can override any of it.
 * -------------------------------------------------------------------------- */

/* Light: Canvas, Arctic White, white (the default). */
:root,
:where(.pfa-on-light, .is-style-card, .is-style-band-canvas, .is-style-callout-important, .is-style-callout-medication, .has-canvas-background-color, .has-arctic-background-color, .has-white-background-color) {
	--pfa-text: var(--pfa-ink);
	--pfa-text-muted: var(--pfa-ink-muted);
	--pfa-link: var(--pfa-sapphire);
	--pfa-link-hover: var(--pfa-iris);
	--pfa-focus: var(--pfa-sapphire);
	--pfa-em: var(--pfa-iris);
	--pfa-btn-bg: var(--pfa-sapphire);
	--pfa-btn-fg: var(--pfa-arctic);
	--pfa-btn-bg-hover: var(--pfa-sapphire-700);
	--pfa-btn-tile: var(--pfa-arctic);
	--pfa-btn-arrow: var(--pfa-sapphire);
	--pfa-rule: var(--pfa-border);
	--pfa-bullet: var(--pfa-iris);
}

:where(.pfa-on-light, .is-style-card, .is-style-band-canvas, .is-style-callout-important, .is-style-callout-medication, .has-canvas-background-color, .has-arctic-background-color, .has-white-background-color) {
	color: var(--pfa-text);
}

/* Dark: Royal Sapphire and Navy. Soft Lavender emphasis (4.78:1, 7.97:1),
   Turquoise focus and link hover (6.77:1, 11.30:1), light buttons. */
:where(.pfa-on-dark, .is-style-band-sapphire, .is-style-card-sapphire, .has-sapphire-background-color, .has-sapphire-700-background-color, .has-ink-background-color, .has-navy-background-color) {
	--pfa-text: var(--pfa-arctic);
	--pfa-text-muted: var(--pfa-arctic);
	--pfa-link: var(--pfa-arctic);
	--pfa-link-hover: var(--pfa-turquoise);
	--pfa-focus: var(--pfa-turquoise);
	--pfa-em: var(--pfa-lavender);
	--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-rule: rgba(250, 251, 255, 0.28);
	--pfa-bullet: var(--pfa-lavender);
	color: var(--pfa-text);
}

/* Iris Violet: only white or Arctic White sit on it (white 5.48:1). */
:where(.pfa-on-iris, .is-style-card-iris, .has-iris-background-color, .has-iris-700-background-color) {
	--pfa-text: var(--pfa-white);
	--pfa-text-muted: var(--pfa-white);
	--pfa-link: var(--pfa-white);
	--pfa-link-hover: var(--pfa-white);
	--pfa-focus: var(--pfa-arctic);
	--pfa-em: currentColor;
	--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-rule: rgba(255, 255, 255, 0.32);
	--pfa-bullet: var(--pfa-white);
	color: var(--pfa-text);
}

/* Tinted: Turquoise and the lavenders. Royal Sapphire text. Iris fails as
   normal-size text here (4.37:1 on the wash), so link hover darkens and
   emphasis uses Iris 700 (5.89:1 on the wash). */
:where(.pfa-on-tint, .is-style-card-turquoise, .is-style-card-lavender, .is-style-band-lavender, .is-style-callout-note, .has-turquoise-background-color, .has-lavender-background-color, .has-lavender-tint-background-color, .has-lavender-wash-background-color) {
	--pfa-text: var(--pfa-sapphire);
	--pfa-text-muted: var(--pfa-sapphire);
	--pfa-link: var(--pfa-sapphire);
	--pfa-link-hover: var(--pfa-sapphire-700);
	--pfa-focus: var(--pfa-sapphire);
	--pfa-em: var(--pfa-iris-700);
	--pfa-btn-bg: var(--pfa-sapphire);
	--pfa-btn-fg: var(--pfa-arctic);
	--pfa-btn-bg-hover: var(--pfa-sapphire-700);
	--pfa-btn-tile: var(--pfa-arctic);
	--pfa-btn-arrow: var(--pfa-sapphire);
	--pfa-rule: var(--pfa-border);
	--pfa-bullet: var(--pfa-iris);
	color: var(--pfa-text);
}

/* Turquoise, the lavender card and Soft Lavender: emphasis keeps the text
   colour; bullets are Royal Sapphire where Iris is too faint. */
:where(.is-style-card-turquoise, .is-style-card-lavender, .is-style-callout-note, .has-turquoise-background-color, .has-lavender-background-color) {
	--pfa-em: currentColor;
}

:where(.is-style-card-turquoise, .has-turquoise-background-color, .has-lavender-background-color) {
	--pfa-bullet: var(--pfa-sapphire);
}

/* 3. Reset
 * -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--pfa-sticky-top) + 1rem);
	scroll-padding-bottom: var(--pfa-sticky-bottom, 0px);
}

body {
	margin: 0;
	background-color: var(--pfa-canvas);
	color: var(--pfa-ink);
	font-family: var(--pfa-font);
	font-size: var(--pfa-fs-body);
	line-height: 1.65;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Zero specificity: WordPress layout rules (block gaps) and components win. */
:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, pre) {
	margin-block: 0;
}

:where(figure, blockquote) {
	margin-inline: 0;
}

:where(img, svg, video) {
	max-width: 100%;
	height: auto;
}

:where(iframe) {
	max-width: 100%;
	border: 0;
}

:where(input, button, textarea, select) {
	font: inherit;
}

:where(button, summary, [role="button"]):not(:disabled) {
	cursor: pointer;
}

:where(table) {
	border-collapse: collapse;
}

[hidden] {
	display: none !important;
}

/* 4. Typography
 * Sizes, weights and line heights for body and headings come from theme.json.
 * -------------------------------------------------------------------------- */

:where(h1, h2, h3, h4, h5, h6) {
	text-wrap: balance;
}

:where(p, li, dd, figcaption, blockquote) {
	text-wrap: pretty;
}

/* Brand emphasis (UX D19): Montserrat Bold Italic on 1 to 3 words of an H1 or
   H2. Iris Violet on light, Soft Lavender on Sapphire and Navy (--pfa-em, section 2). */
:where(h1, h2) em {
	font-style: italic;
	font-weight: 700;
	color: var(--pfa-em);
}

:where(strong, b) {
	font-weight: 700;
}

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

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

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

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

.pfa-label {
	font-size: var(--pfa-fs-label);
	font-weight: 600;
	line-height: 1.4;
}

.pfa-muted {
	color: var(--pfa-text-muted);
}

.pfa-icon {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
}

/* 5. Focus, skip link, screen reader text
 * One visible ring everywhere: 3px, 3px away from the element, Sapphire on
 * light surfaces and Turquoise on dark ones (WCAG 2.4.7, 2.4.13).
 * -------------------------------------------------------------------------- */

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

/* The skip link moves focus to <main tabindex="-1">: no ring round the page. */
main:focus {
	outline: none;
}

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

/* Skip link: <a class="pfa-skip-link" href="#main">. WordPress's
   "skip-link screen-reader-text" markup gets the same look. */
.pfa-skip-link,
.skip-link,
.screen-reader-text:focus {
	position: absolute;
	top: var(--pfa-space-2);
	left: var(--pfa-space-2);
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	margin: 0;
	padding: var(--pfa-space-3) var(--pfa-space-5);
	clip-path: none;
	border-radius: var(--pfa-radius-btn);
	background-color: var(--pfa-sapphire);
	color: var(--pfa-arctic);
	font-size: var(--pfa-fs-small);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: normal;
}

.pfa-skip-link:not(:focus),
.skip-link:not(:focus) {
	transform: translateY(calc(-100% - 2rem));
}

/* 6. Layout helpers
 * Templates use these; page content uses WordPress layout (section 7).
 * -------------------------------------------------------------------------- */

/* Centred 1200px column with the gutter either side. */
.pfa-container {
	width: 100%;
	max-width: calc(var(--pfa-wide) + 2 * var(--pfa-gutter));
	margin-inline: auto;
	padding-inline: var(--pfa-gutter);
}

/* 720px reading column. No template uses it now (guides and legal pages use the guide
   layout); kept for content that sets the class by hand. */
.pfa-container--content {
	max-width: calc(var(--pfa-content) + 2 * var(--pfa-gutter));
}

.pfa-section {
	padding-block: var(--pfa-section-y);
}

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

/* Vertical rhythm between children. --pfa-stack-space changes the gap. */
.pfa-stack {
	--pfa-stack-space: var(--pfa-space-5);
}

.pfa-stack--s {
	--pfa-stack-space: var(--pfa-space-3);
}

.pfa-stack--l {
	--pfa-stack-space: var(--pfa-space-7);
}

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

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

/* Items in a row that wrap: pills, buttons, links. */
.pfa-cluster {
	--pfa-cluster-space: var(--pfa-space-3) var(--pfa-space-4);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pfa-cluster-space);
}

/* Cards that fill the row: as many columns of at least --pfa-grid-min as fit. */
.pfa-grid {
	--pfa-grid-min: 17.5rem;
	--pfa-grid-gap: var(--pfa-space-5);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(var(--pfa-grid-min), 100%), 1fr));
	gap: var(--pfa-grid-gap);
}

/* 7. Post content rhythm and core blocks
 * The content wrapper is "entry-content is-layout-constrained
 * has-global-padding" (pfa_get_content_classes()), the same layout the editor
 * uses: children are centred at 720px, .alignwide grows to 1200px and
 * .alignfull runs edge to edge (theme.json, useRootPaddingAwareAlignments).
 * .is-root-container is the editor's version of the same wrapper.
 * -------------------------------------------------------------------------- */

/* More space above headings in long text, less between a heading and its text. */
:is(.entry-content, .is-root-container) > h2:not(:first-child) {
	margin-block-start: var(--pfa-space-8);
}

:is(.entry-content, .is-root-container) > :is(h3, h4):not(:first-child) {
	margin-block-start: var(--pfa-space-6);
}

:is(.entry-content, .is-root-container) > :is(h2, h3, h4) + * {
	margin-block-start: var(--pfa-space-4);
}

/* Lists: a little air between items (block list styles replace this). Only
   List blocks and plain lists: classed lists (block grids, card rows) set
   their own gaps, and an extra margin there pushed cards out of line. */
:where(.wp-block-list, .entry-content :is(ul, ol):not([class])):not([class*="is-style-"]) > li + li {
	margin-block-start: var(--pfa-space-2);
}

:where(.wp-block-list, .entry-content ul, .entry-content ol) > li::marker {
	color: var(--pfa-bullet);
}

/* Table and Separator blocks: blocks/core-table.css and core-separator.css.
   A plain <hr> in templates is a hairline. */
:where(hr):not(.wp-block-separator) {
	border: 0;
	border-top: 1px solid var(--pfa-rule);
}

/* Details: a 44px target for the question line (the Details block is styled
   in blocks/core-details.css; this covers other <details>). */
:where(.wp-block-details, details) > summary {
	min-height: var(--pfa-target);
	padding-block: var(--pfa-space-2);
	font-weight: 600;
}

/* Classic alignment classes outside WordPress layout containers. */
:where(.alignleft) {
	float: left;
	margin-inline-end: var(--pfa-space-5);
}

:where(.alignright) {
	float: right;
	margin-inline-start: var(--pfa-space-5);
}

:where(.aligncenter) {
	margin-inline: auto;
}

/* 8. Forms baseline
 * Inputs and selects are styled in theme.json (textInput, select elements);
 * these cover what theme.json cannot.
 * -------------------------------------------------------------------------- */

::placeholder {
	color: var(--pfa-ink-muted);
	opacity: 1;
}

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

:where(input[type="checkbox"], input[type="radio"]) {
	width: 1.25rem;
	height: 1.25rem;
}

/* 9. Reading options (UX D20, I12)
 * Set on <html> by the head script in inc/assets.php from what the visitor
 * chose in "Reading options". Everything is sized in rem, so one change
 * scales the whole page. The softer background is a warm off-white: Royal
 * Sapphire 10.2:1, Iris Violet 4.9:1, secondary text 7.3:1 on it.
 * -------------------------------------------------------------------------- */

html[data-reading-size="large"] {
	font-size: 112.5%;
}

html[data-reading-bg="soft"] {
	--wp--preset--color--canvas: #f7f2e6;
	--wp--preset--color--arctic: #fffbf2;
}

/* 10. Motion (UX D18)
 * Nothing moves by default. If the visitor has not asked for less motion,
 * colours fade over 150ms on hover and focus.
 * -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	:root {
		--pfa-transition: 150ms;
	}

	:where(a, button, .wp-element-button, .wp-block-button__link) {
		transition-duration: var(--pfa-transition);
		transition-property: color, background-color, border-color, text-decoration-color;
		transition-timing-function: ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* 11. Print
 * Black on white, no menus or buttons, link addresses shown in the content.
 * -------------------------------------------------------------------------- */

@media print {
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	nav,
	button,
	dialog,
	iframe,
	video,
	audio,
	.skip-link,
	.pfa-skip-link,
	.wp-block-buttons,
	.wp-block-embed,
	.pfa-no-print {
		display: none !important;
	}

	main a[href^="http"]:not(.wp-element-button)::after {
		content: " (" attr(href) ")";
		font-size: 0.875em;
		font-weight: 400;
		overflow-wrap: anywhere;
	}

	:is(h1, h2, h3, h4) {
		break-after: avoid;
	}

	:is(img, svg, figure, table, blockquote) {
		break-inside: avoid;
	}

	p {
		orphans: 3;
		widows: 3;
	}
}
