/*
 * Pentasweet theme styles.
 * Ported from design/prototype-v2.5.html (brand book v2.5, section 7).
 * Colours: the prototype's light theme for every visitor (decided
 * 2026-11-30). Tokens live in theme.json settings.custom.color.
 * Dark mode can be added later by redefining the tokens.
 */

:root {
	color-scheme: light;
	--ps-bg: var(--wp--custom--color--bg);
	--ps-fg: var(--wp--custom--color--fg);
	--ps-accent: var(--wp--custom--color--accent);
	--ps-muted: var(--wp--custom--color--muted);
	--ps-line: var(--wp--custom--color--line);
	--ps-soft: var(--wp--custom--color--soft);
	--ps-panel: var(--wp--custom--color--panel);
	--ps-panel-fg: var(--wp--custom--color--panel-fg);
	--ps-panel-accent: var(--wp--custom--color--panel-accent);
	--ps-radius: var(--wp--custom--radius);
	--ps-header-h: var(--wp--custom--header-height);
	--ps-sticky-top: 0px;
}

.admin-bar {
	--ps-sticky-top: 32px;
}

@media (max-width: 782px) {

	.admin-bar {
		--ps-sticky-top: 46px;
	}
}

/* ---------- Base ---------- */

html {
	scroll-padding-top: calc(var(--ps-header-h) + var(--ps-sticky-top) + 12px);
}

/* Prototype: *{box-sizing:border-box} (elements only, not pseudo-elements) */
* {
	box-sizing: border-box;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

a {
	text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--ps-accent);
	outline-offset: 3px;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	filter: brightness(1.08);
}

/* Tabular figures wherever numbers line up. */
table,
time {
	font-variant-numeric: tabular-nums;
}

/* Skip link: hidden until focused. */
.ps-skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 12px 16px;
	background: var(--ps-accent);
	color: var(--ps-bg);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--ps-radius);
}

.ps-skip-link:focus {
	top: calc(var(--ps-sticky-top) + 12px);
}

/* ---------- Header ---------- */

.ps-site-header {
	position: sticky;
	top: var(--ps-sticky-top);
	z-index: 20;
	background: var(--ps-bg);
	border-bottom: 1px solid var(--ps-line);
}

.ps-header-bar {
	min-height: var(--ps-header-h);
	gap: 24px;
}

.ps-logo,
.ps-logo a {
	display: flex;
	margin: 0;
}

.ps-logo img {
	height: 28px;
	width: auto;
}

/* Main navigation (core Navigation block). */
.ps-main-nav .wp-block-navigation__container {
	gap: 4px;
	align-items: center;
}

.ps-main-nav .wp-block-navigation-item__content {
	color: var(--ps-fg);
	text-decoration: none;
	padding: 8px 10px;
	border-radius: var(--ps-radius);
}

.ps-main-nav .wp-block-navigation-item__content:hover {
	color: var(--ps-accent);
}

.ps-main-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--ps-accent);
	box-shadow: inset 0 -2px 0 var(--ps-accent);
}

/* "Contact" as a solid button. */
.ps-main-nav .ps-nav-cta {
	margin-left: 12px;
}

.ps-main-nav .ps-nav-cta .wp-block-navigation-item__content,
.ps-main-nav .ps-nav-cta .wp-block-navigation-item__content:hover,
.ps-main-nav .ps-nav-cta .wp-block-navigation-item__content[aria-current="page"] {
	background: var(--ps-accent);
	border: 1px solid var(--ps-accent);
	color: var(--ps-bg);
	font-weight: 600;
	line-height: 1;
	padding: 10px 16px;
	box-shadow: none;
}

.ps-main-nav .ps-nav-cta .wp-block-navigation-item__content:hover {
	filter: brightness(1.08);
}

/* Toggle buttons ("Menu" / "Close"). */
.ps-main-nav .wp-block-navigation__responsive-container-open,
.ps-main-nav .wp-block-navigation__responsive-container-close {
	background: none;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	color: var(--ps-fg);
	font: 600 14px/1.2 var(--wp--preset--font-family--sans);
	padding: 8px 12px;
}

/*
 * The prototype collapses the menu at 960px; core collapses at 600px.
 * Between 600 and 960 force the collapsed state.
 */
@media (min-width: 600px) and (max-width: 960px) {

	.ps-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	/* stylelint-disable-next-line @stylistic/max-line-length */
	.ps-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Open menu: a panel in the brand colours, not the default overlay look. */
.ps-main-nav.wp-block-navigation:not(.has-background)
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ps-bg);
	color: var(--ps-fg);
	padding: calc(var(--ps-sticky-top) + 16px) clamp(16px, 4.5vw, 32px) 24px;
}

.ps-main-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: calc(var(--ps-sticky-top) + 16px);
	right: clamp(16px, 4.5vw, 32px);
}

.ps-main-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px;
}

.ps-main-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
}

.ps-main-nav .is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.ps-main-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--ps-line);
}

.ps-main-nav .is-menu-open .wp-block-navigation-item__content {
	box-sizing: border-box;
	display: block;
	width: 100%;
	padding: 12px 4px;
	font-size: 17px;
}

.ps-main-nav .is-menu-open .ps-nav-cta {
	box-sizing: border-box;
	margin: 16px 0 0;
	border-bottom: 0;
}

.ps-main-nav .is-menu-open .ps-nav-cta .wp-block-navigation-item__content {
	text-align: center;
	padding: 14px 20px;
}

/* ---------- Main ---------- */

.ps-main {
	margin-block-start: 0;
}

/* Generic page header (legal pages, news, 404). */
.ps-page-hero {
	padding-block: clamp(48px, 8vw, 88px) clamp(32px, 5vw, 48px);
	display: grid;
	gap: 16px;
}

.ps-page-hero > * {
	margin: 0;
}

.ps-page-hero h1 {
	max-width: 28ch;
}

.ps-page-content {
	padding-bottom: var(--wp--preset--spacing--90);
}

.ps-page-content > h2,
.ps-page-content > h3 {
	margin-block-start: 1.6em;
}

/* ---------- News ---------- */

.ps-news-list {
	padding-bottom: var(--wp--preset--spacing--90);
}

.ps-news-list .wp-block-post-template {
	border-top: 1px solid var(--ps-fg);
	margin: 0;
}

.ps-news-item {
	display: grid;
	gap: 8px;
	padding-block: 24px;
	border-bottom: 1px solid var(--ps-line);
	max-width: 820px;
}

.ps-news-item > * {
	margin: 0;
}

.ps-news-title {
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 600;
	line-height: 1.25;
}

.ps-news-title a {
	color: var(--ps-fg);
	text-decoration: none;
}

.ps-news-title a:hover {
	color: var(--ps-accent);
}

.ps-post-image img {
	border-radius: var(--ps-radius);
}

.ps-post-nav {
	border-top: 1px solid var(--ps-line);
	padding-block: 32px var(--wp--preset--spacing--90);
}

/* ---------- Footer ---------- */

.ps-footer-part {
	margin-block-start: 0;
}

.ps-site-footer {
	padding-block: 64px 40px;
	margin-block-start: 0;
}

.ps-site-footer a {
	color: var(--wp--preset--color--bone);
	text-decoration: none;
}

.ps-site-footer a:hover {
	color: var(--ps-panel-accent);
}

.ps-footer-cols {
	gap: 40px;
	margin: 0;
}

.ps-footer-cols > .wp-block-column {
	min-width: 0;
}

.ps-footer-logo {
	margin: 0;
}

.ps-footer-logo img {
	height: 26px;
	width: auto;
	vertical-align: baseline;
}

.ps-footer-boiler {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--grey-300);
	max-width: 46ch;
	margin-block-start: 20px;
}

.ps-footer-heading {
	margin: 0 0 12px;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--custom--color--footer-muted);
}

.ps-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: var(--wp--preset--font-size--nav);
}

.ps-footer-list li {
	overflow-wrap: anywhere;
}

.ps-footer-muted {
	color: var(--wp--preset--color--grey-300);
}

.ps-footer-legal {
	margin-block-start: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--grey-700);
	font-size: 13px;
	color: var(--wp--custom--color--footer-muted);
	gap: 12px 32px;
}

.ps-footer-legal p {
	margin: 0;
}

@media (max-width: 820px) {

	.wp-block-columns.is-not-stacked-on-mobile.ps-footer-cols {
		flex-wrap: wrap !important;
	}

	.ps-footer-cols.wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - 20px) !important;
		flex-grow: 0;
	}

	.ps-footer-cols.wp-block-columns > .ps-footer-about {
		flex-basis: 100% !important;
	}
}

/* =========================================================
 * Sections and patterns.
 * Ported 1:1 from the prototype's CSS (class in comments).
 * ========================================================= */

/* Root padding: 16px, 32px from 720px (.wrap). */
html body {
	--wp--style--root--padding-left: 16px;
	--wp--style--root--padding-right: 16px;
}

@media (min-width: 720px) {

	html body {
		--wp--style--root--padding-left: 32px;
		--wp--style--root--padding-right: 32px;
	}
}

/* No flow-layout margins inside sections: spacing comes from rules below. */
.ps-section :where(*),
.ps-nextlink :where(*) {
	margin-block: 0;
}

.wp-block-post-content > .ps-section,
.wp-block-post-content > .ps-nextlink {
	margin-block: 0;
}

/* section */
.ps-section {
	padding-block: 96px;
}

.ps-section.ps-tight {
	padding-block: 64px;
}

/* section + section */
.ps-section + .ps-section {
	border-top: 1px solid var(--ps-line);
}

/* section.soft */
.ps-section.is-style-ps-soft {
	background: var(--ps-soft);
}

/* section.panel */
.ps-section.is-style-ps-panel {
	background: var(--ps-panel);
	color: var(--ps-panel-fg);
	border-top: 0;
}

.ps-section.is-style-ps-panel + .ps-section {
	border-top: 0;
}

.is-style-ps-panel .is-style-ps-label {
	color: var(--wp--preset--color--grey-100);
}

.is-style-ps-panel a {
	color: var(--ps-panel-accent);
}

/* ---------- Text styles (type scale) ---------- */

/* .label */
.is-style-ps-label,
.is-style-ps-kicker {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ps-muted);
}

/* .eyebrow .label */
.is-style-ps-kicker {
	color: var(--ps-accent);
}

/* Prototype quirk: p.label in .prose gets the .prose p size (news). */
.ps-prose > .is-style-ps-kicker.ps-kicker-large {
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.6;
	font-weight: 400;
}

/* .display */
.is-style-ps-display {
	font-weight: 300;
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

/* h2.h3 */
h2.is-style-ps-h3 {
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 600;
	line-height: 1.25;
}

/* .lede (17px after the prototype's type-consistency rule) */
.is-style-ps-lede {
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.6;
	max-width: var(--wp--custom--measure--lede);
	color: var(--ps-fg);
}

/* .muted */
.is-style-ps-muted {
	color: var(--ps-muted);
}

/* .updated, .muted small notes, figcaption */
.is-style-ps-note {
	color: var(--ps-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

/* .honest */
.ps-section .is-style-ps-honest {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--ps-line);
	max-width: var(--wp--custom--measure--lede);
}

/* .ph (copy placeholders) */
.ps-section mark {
	background: var(--wp--custom--color--ph-bg);
	color: var(--wp--custom--color--ph-fg);
	padding: 0 4px;
	border-radius: var(--ps-radius);
	font-weight: 600;
	white-space: nowrap;
}

/* ---------- Layout ---------- */

/* .prose */
.ps-prose {
	display: grid;
	gap: 16px;
	max-width: var(--wp--custom--measure--prose);
	align-content: start;
	min-width: 0;
}

/* .sec-head */
.ps-sec-head {
	display: grid;
	gap: 16px;
	max-width: 760px;
}

.ps-section .ps-sec-head {
	margin-bottom: 48px;
}

.ps-section .ps-split > .ps-sec-head {
	margin-bottom: 0;
}

/* .two / .split */
.ps-two,
.ps-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

.ps-split {
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.ps-align-center {
	align-items: center;
}

@media (max-width: 820px) {

	.ps-two,
	.ps-split {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

.ps-stack {
	display: grid;
	gap: 32px;
}

.ps-stack-48 {
	display: grid;
	gap: 48px;
}

/* ---------- Heroes ---------- */

/* .hero */
.ps-section.ps-hero {
	padding-block: 88px 96px;
}

.ps-hero .ps-wrap > h1 {
	margin-top: 28px;
	max-width: 20ch;
}

.ps-hero .ps-wrap > h1.ps-measure-22 {
	max-width: 22ch;
}

.ps-hero .ps-wrap > .is-style-ps-lede {
	margin-top: 24px;
}

.ps-hero .ps-wrap > .is-style-ps-note {
	margin-top: 20px;
}

/* Contact hero: H1 and facts inside .prose (prototype inline styles). */
.ps-hero .ps-prose > h1 {
	margin-top: 12px;
}

.ps-hero .ps-prose > .ps-facts {
	margin-top: 16px;
}

/* Small extra space above a sec-head note (prototype inline margin-top:8px). */
.ps-section .ps-mt-8 {
	margin-top: 8px;
}

/* .hero-text (home) */
.ps-section.ps-hero-text {
	padding-block: 120px 112px;
	position: relative;
	overflow: hidden;
}

.ps-hero-text .ps-wrap {
	position: relative;
}

.ps-hero-copy {
	max-width: 900px;
}

.ps-hero-copy h1 {
	max-width: 20ch;
}

/* .hero-copy .sub */
.ps-sub {
	margin-top: 28px;
	font-size: var(--wp--preset--font-size--sub);
	font-weight: 400;
	color: var(--ps-fg);
}

/* .hero-copy .intro */
.ps-hero-copy .ps-intro {
	margin-top: 32px;
	max-width: var(--wp--custom--measure--lede);
	color: var(--ps-fg);
}

/* .hero .ctas */
.ps-hero-copy .ps-ctas {
	margin-top: 40px;
	gap: 12px;
}

/* .hero-plant */
.ps-section .ps-hero-plant {
	position: absolute;
	right: 80px;
	top: 24px;
	height: calc(100% - 24px);
	width: auto;
	max-width: none;
	margin: 0;
	pointer-events: none;
	user-select: none;
	transform: scaleX(-1);
}

.ps-hero-plant img {
	height: 100%;
	width: auto;
	max-width: none;
}

@media (max-width: 1100px) {

	.ps-section .ps-hero-plant {
		right: -30px;
		opacity: 0.9;
	}
}

@media (max-width: 600px) {

	.ps-section.ps-hero-text {
		padding-block: 56px 64px;
	}
}

@media (max-width: 820px) {

	.ps-section.ps-hero-text {
		padding-bottom: 0;
		display: flex;
		flex-direction: column;
	}

	.ps-section .ps-hero-plant {
		order: 2;
		position: static;
		display: block;
		height: auto;

		/* 62% of the full section width (the section has root padding). */
		--ps-full: calc(100% + 2 * var(--wp--style--root--padding-right));
		width: calc(0.62 * var(--ps-full));
		max-width: 360px;
		margin:
			16px calc(-24px - var(--wp--style--root--padding-right))
			0 auto;
	}

	.ps-hero-plant img {
		width: 100%;
		height: auto;
	}
}

/* ---------- Story ---------- */

/* .chapter-problem */
.ps-section.ps-chapter-problem {
	padding-block: 112px;
}

/* .story-text */
.ps-story-text {
	max-width: 820px;
	display: grid;
	gap: 20px;
}

/* ---------- Figures ---------- */

/* .photo */
.ps-section .ps-photo {
	margin: 0;
	display: grid;
	gap: 12px;
}

.ps-photo img {
	width: 100%;
	height: auto;
	border-radius: var(--ps-radius);
	display: block;
}

/* Cropped 4:3 unless the photo keeps its own ratio (--natural uses the
   width/height attributes, so the space is reserved before it loads). */
.ps-photo:not(.ps-photo--natural) img {
	aspect-ratio: 4/3;
	object-fit: cover;
}

.ps-photo .wp-element-caption {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--ps-muted);
	text-align: left;
}

/* Botanical illustration: centred, square, max 300px. */
.ps-figure-botanical {
	justify-items: center;
}

.ps-figure-botanical img {
	max-width: 300px;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: 0;
}

.ps-figure-botanical.ps-figure-small img {
	max-width: 260px;
}

/* figcaption on the plum panel + .datebadge */
.is-style-ps-panel .ps-photo .wp-element-caption {
	color: var(--wp--preset--color--grey-100);
}

.ps-photo .wp-element-caption strong {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ps-prose .ps-more {
	margin-top: 8px;
}

/* ---------- Proof grid ---------- */

/* .proofs */
.ps-proofs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--ps-line);
}

/* .proof */
.ps-proof {
	padding: 32px 32px 32px 0;
	display: grid;
	gap: 12px;
	align-content: start;
}

.ps-proof + .ps-proof {
	padding-left: 32px;
	border-left: 1px solid var(--ps-line);
}

/* .proof .stat */
.ps-section .ps-stat {
	font-weight: 300;
	font-size: var(--wp--preset--font-size--stat);
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
	margin-top: 4px;
}

/* .proof .statc */
.ps-section .ps-statc {
	font-size: var(--wp--preset--font-size--small);
	color: var(--ps-muted);
	line-height: 1.5;
	max-width: 30ch;
	margin-bottom: 12px;
	min-height: calc(3 * 1.45em);
}

/* .proof .basis */
.ps-basis {
	font-size: var(--wp--preset--font-size--small);
	color: var(--ps-muted);
	line-height: 1.5;
}

@media (max-width: 820px) {

	.ps-section .ps-statc {
		min-height: 0;
	}

	.ps-proofs {
		grid-template-columns: 1fr;
	}

	.ps-proof,
	.ps-proof + .ps-proof {
		padding: 28px 0;
		border-left: 0;
	}

	.ps-proof + .ps-proof {
		border-top: 1px solid var(--ps-line);
	}
}

/* ---------- Tiles and status line ---------- */

/* .tiles */
.ps-tiles.wp-block-buttons {
	gap: 10px;
}

/* .tile */
.is-style-ps-tile .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	padding: 12px 16px;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--ps-bg);
	color: var(--ps-fg);
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.6;
}

.is-style-ps-tile .wp-block-button__link:hover {
	border-color: var(--ps-accent);
	color: var(--ps-accent);
}

/* .status-line */
.ps-status-line {
	max-width: var(--wp--custom--measure--lede);
}

/* ---------- Buttons ---------- */

/* .btn.ghost */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--ps-accent);
	border: 1px solid var(--ps-accent);
	padding: 14px 20px;
}

/* ---------- Facts list (dl.facts) ---------- */

.ps-facts {
	display: grid;
	border-top: 1px solid var(--ps-line);
}

.ps-fact {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: 24px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ps-line);
	font-variant-numeric: tabular-nums;
}

/* dt: 600 in the prototype's base rule, but its later type-consistency rule
   resets dl.facts dt to 400, so terms render regular. */
.ps-fact-term {
	font-weight: 400;
}

@media (max-width: 600px) {

	.ps-fact {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* ---------- Label table (.tablewrap + table) ---------- */

.ps-section .wp-block-table.is-style-ps-label-table {
	overflow-x: auto;
	border-top: 1px solid var(--ps-fg);
	margin-top: 8px;
}

.wp-block-table.is-style-ps-label-table table {
	border-collapse: collapse;
	width: 100%;
	min-width: 420px;
	font-variant-numeric: tabular-nums;
}

.wp-block-table.is-style-ps-label-table thead {
	border-bottom: 0;
}

.wp-block-table.is-style-ps-label-table th,
.wp-block-table.is-style-ps-label-table td {
	text-align: left;
	padding: 14px 16px 14px 0;
	border: 0;
	border-bottom: 1px solid var(--ps-line);
	vertical-align: top;
}

.wp-block-table.is-style-ps-label-table th {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ps-muted);
}

/* ---------- Applications list (.applist / .app / .ease) ---------- */

.ps-applist {
	display: grid;
	border-top: 1px solid var(--ps-fg);
}

.ps-app {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2.2fr);
	gap: 32px;
	padding: 24px 0;
	border-bottom: 1px solid var(--ps-line);
	align-items: start;
}

.ps-section .ps-app .is-style-ps-muted {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	margin-top: 6px;
}

.ps-app.ps-app-head {
	padding: 12px 0;
}

.ps-section .ps-applist-note {
	margin-top: 24px;
	max-width: var(--wp--custom--measure--prose);
}

/* .ease: three bars + level; "Difficulty:" prefix shown on small screens. */
.ps-app .ps-ease {
	--ps-e1: var(--ps-line);
	--ps-e2a: var(--ps-line);
	--ps-e2b: var(--ps-line);
	--ps-e3: var(--ps-line);
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--ps-fg);
}

.ps-app .ps-ease::before {
	content: "";
	order: -2;
	display: block;
	width: 60px;
	height: 6px;

	/* Bars: 18px, 3px gap, 18px (two halves), 3px gap, 18px. */
	background-image:
		linear-gradient(90deg, var(--ps-e1) 0 18px, transparent 18px 21px),
		linear-gradient(90deg, var(--ps-e2a) 0 9px, var(--ps-e2b) 9px 18px),
		linear-gradient(90deg, var(--ps-e3) 0 18px);
	background-size: 21px 6px, 18px 6px, 18px 6px;
	background-position: 0 0, 21px 0, 42px 0;
	background-repeat: no-repeat;
}

.ps-app .ps-ease::after {
	content: "Difficulty:";
	order: -1;
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	font-weight: 400;
	color: var(--ps-muted);
}

.ps-ease--easy {
	--ps-e1: var(--ps-accent) !important;
}

.ps-ease--easy-moderate {
	--ps-e1: var(--ps-accent) !important;
	--ps-e2a: var(--ps-accent) !important;
}

.ps-ease--moderate {
	--ps-e1: var(--ps-accent) !important;
	--ps-e2a: var(--ps-accent) !important;
	--ps-e2b: var(--ps-accent) !important;
}

.ps-ease--difficult {
	--ps-e1: var(--ps-accent) !important;
	--ps-e2a: var(--ps-accent) !important;
	--ps-e2b: var(--ps-accent) !important;
	--ps-e3: var(--ps-accent) !important;
}

@media (max-width: 820px) {

	.ps-app {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ps-app.ps-app-head {
		display: none;
	}

	.ps-app .ps-ease {
		grid-auto-flow: column;
		justify-content: start;
		align-items: center;
		gap: 10px;
	}

	.ps-app .ps-ease::after {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
		margin-right: -6px;
	}
}

/* ---------- Claims we don't make (.nolist / .no) ---------- */

.ps-nolist {
	display: grid;
	border-top: 1px solid var(--ps-line);
}

.ps-no {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 24px;
	padding: 18px 0;
	border-bottom: 1px solid var(--ps-line);
}

.ps-no-term {
	font-weight: 600;
}

@media (max-width: 640px) {

	.ps-no {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

/* ---------- FAQ (.faq, core Details) ---------- */

.ps-faq {
	display: grid;
	border-top: 1px solid var(--ps-line);
	max-width: 860px;
}

.ps-faq .wp-block-details {
	border-bottom: 1px solid var(--ps-line);
}

.ps-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 20px 40px 20px 0;
	position: relative;
	font-weight: 600;
	font-size: 18px;
}

.ps-faq summary::-webkit-details-marker {
	display: none;
}

.ps-faq summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 16px;
	font-weight: 300;
	font-size: 26px;
	color: var(--ps-accent);
}

.ps-faq details[open] summary::after {
	content: "–";
}

.ps-section .ps-faq details > :not(summary) {
	max-width: var(--wp--custom--measure--prose);
	margin-bottom: 12px;
}

.ps-section .ps-faq details > :last-child {
	margin-bottom: 24px;
}

/* ---------- CTA band ---------- */

/* .cta-band .inner */
.ps-cta-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: end;
}

.ps-actions.wp-block-buttons {
	gap: 12px;
}

.ps-cta-band .wp-block-button:not(.is-style-outline)
.wp-block-button__link {
	background: var(--ps-panel-accent);
	border-color: var(--ps-panel-accent);
	color: var(--wp--preset--color--ink);
}

.ps-cta-band .wp-block-button.is-style-outline .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 820px) {

	.ps-cta-inner {
		grid-template-columns: 1fr;
	}
}

/* ---------- Next page link (.nextlink) ---------- */

.ps-nextlink {
	border-top: 1px solid var(--ps-line);
}

.ps-nextlink .ps-wrap {
	display: grid;
	gap: 6px;
	padding-block: 48px;
	position: relative;
}

.ps-nl-title {
	font-size: var(--wp--preset--font-size--next);
	font-weight: 300;
	line-height: 1.15;
}

.ps-nl-title a {
	color: var(--ps-fg);
	text-decoration: none;
}

/* The whole block is the link, like the prototype. */
.ps-nl-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ps-nextlink .ps-wrap:hover .ps-nl-title a {
	color: var(--ps-accent);
}

.ps-nl-desc {
	color: var(--ps-muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {

	.ps-section {
		padding-block: 56px;
	}

	.ps-section.ps-tight {
		padding-block: 40px;
	}

	.ps-section.ps-hero {
		padding-block: 48px 56px;
	}

	.ps-section .ps-sec-head {
		margin-bottom: 32px;
	}

	.ps-section.ps-chapter-problem {
		padding-block: 64px;
	}

	.ps-nextlink .ps-wrap {
		padding-block: 36px;
	}
}
