/* ==========================================================================
   PAN child theme — service pages and explainers (v0.3, 14 Sep 2026)
   --------------------------------------------------------------------------
   Loaded after pan.css (functions.php), on every page and in the editor.
   Sections: hero with motif · the problem · options · steps · details and
   questions · the free-guide band · the explainer components (chooser, tree,
   report, phone, AI routes, website map, first steps) · the hero motifs.

   The explainers are Custom HTML blocks, but they need no JavaScript: a set of
   radio "chips" and CSS :has() choose which panel shows. Without :has()
   support every panel simply shows, stacked. Motion is transform-only and
   sits behind prefers-reduced-motion, like the rest of the theme.
   The :has() rule blocks under CHOOSER RULES are systematic (one line per
   chip, up to 10). A chooser with more chips needs lines added there.
   ========================================================================== */

.pan-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Service hero ------------------------------------------------ */

.pan-svc-hero {
	padding-top: clamp(3rem, 7vw, 5.5rem);
	padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.pan-svc-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.pan-svc-hero-grid > * { margin-block: 0; }
.pan-svc-hero-text > * { margin-block: 0; }
/* Every scene's eyebrow is brass (it passes AA on night navy); the scene's own text rule would
   otherwise turn it bone, as it did on the Services page hero. */
.pan-scene p.pan-eyebrow { color: var(--wp--preset--color--brass); }
.pan-svc-hero .pan-eyebrow { margin-bottom: 1rem; }

.pan-svc-hero h1 {
	max-width: 15ch;
	margin-block-start: 0;
	font-size: clamp(2.5rem, 5vw, 4.25rem);
	text-wrap: balance;
}

.pan-svc-hero .pan-lead { max-width: 36rem; margin-top: 1.25rem; text-wrap: pretty; }
.pan-svc-hero .wp-block-buttons { gap: 0.75rem 1rem; margin-top: 2rem; }
.pan-svc-hero p.pan-trust { margin-top: 1.4rem; }

@media (max-width: 880px) {
	.pan-svc-hero-grid { grid-template-columns: minmax(0, 1fr); }
	.pan-svc-hero .pan-motif { max-width: 20rem; justify-self: start; }
}

/* The quieter second button on a scene. */
.pan-scene .wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 0.9rem 1.4rem;
	font-size: var(--wp--preset--font-size--body);
	background: transparent;
	color: var(--wp--preset--color--bone);
	border: 1px solid rgba(244, 236, 216, 0.5);
}

.pan-scene .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.pan-scene .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: rgba(244, 236, 216, 0.08);
	border-color: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--bone);
}

/* ---------- The problem -------------------------------------------------- */

/* Until 14 Sep this was bone text beside a white card of bulleted symptoms, "very plain and easy
   to pass over". Now the words sit beside a night panel of the visitor's own thoughts, set as
   quotes, and the section turns to the good news before it ends: problem, recognition, way out. */

.pan-split { gap: clamp(2rem, 5vw, 4.5rem); align-items: flex-start; }
.pan-problem-grid { align-items: center; }
.pan-svc-problem h2 { text-wrap: balance; }
.pan-svc-problem .pan-problem-grid p:not(.pan-eyebrow) { font-size: 1.125rem; color: var(--wp--preset--color--ink-2); max-width: 36rem; }

/* The first paragraph under the headline carries the argument: lead size, full ink. */
.pan-svc-problem .pan-problem-grid h2 + p {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
}

.pan-familiar {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.5rem, 3.5vw, 2.4rem) clamp(1.1rem, 2.5vw, 1.6rem);
	color: var(--wp--preset--color--bone);
	background:
		radial-gradient(ellipse 90% 70% at 100% 0%, rgba(7, 168, 173, 0.3), rgba(12, 91, 158, 0.16) 45%, transparent 75%),
		var(--wp--preset--color--night);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--depth--elev-3);
}

.pan-familiar::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1.5px);
	background-size: 9px 9px;
	-webkit-mask-image: linear-gradient(210deg, rgba(0, 0, 0, 0.7), transparent 45%);
	mask-image: linear-gradient(210deg, rgba(0, 0, 0, 0.7), transparent 45%);
}

.pan-familiar > * { margin-block: 0; }

/* "Sound familiar?" as the panel's brass label. */
.pan-familiar h3.wp-block-heading {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--custom--eyebrow--size);
	font-weight: 700;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--brass);
}

ul.pan-familiar-list {
	display: grid;
	margin: 0.6rem 0 0;
	padding: 0;
	list-style: none;
}

/* Each one a thought in the visitor's own voice: Newsreader italic behind a brass quote mark. */
.pan-familiar-list li {
	position: relative;
	margin: 0;
	padding: 0.95rem 0 0.95rem 2.2rem;
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: clamp(1.1875rem, 1.7vw, 1.375rem);
	font-style: italic;
	line-height: 1.35;
	color: var(--wp--preset--color--bone);
}

.pan-familiar-list li + li { border-top: 1px solid var(--wp--custom--depth--on-seal-edge); }

.pan-familiar-list li::before {
	content: "\201C";
	position: absolute;
	left: 0;
	top: 0.62rem;
	font-size: 2.4rem;
	font-style: normal;
	line-height: 1;
	color: var(--wp--preset--color--brass);
}

/* The good news: a raised white strip with a safe tick, and a link down to the explainer. */
.pan-goodnews {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 2rem;
	margin-top: clamp(2.5rem, 5vw, 3.75rem);
	padding: 1.3rem 1.6rem 1.3rem 4.6rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--custom--depth--elev-2);
}

.pan-goodnews::before {
	content: "";
	position: absolute;
	left: 1.35rem;
	top: 50%;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--custom--signal--safe-tint);
	box-shadow: inset 0 0 0 1px var(--wp--custom--signal--safe-edge);
	transform: translateY(-50%);
}

.pan-goodnews::after {
	content: "";
	position: absolute;
	left: calc(1.35rem + 0.5rem);
	top: 50%;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--wp--custom--signal--safe);
	-webkit-mask: var(--pan-icon-tick) center / contain no-repeat;
	mask: var(--pan-icon-tick) center / contain no-repeat;
	transform: translateY(-50%);
}

.pan-goodnews > * { margin: 0; }

.pan-goodnews p.pan-goodnews-text {
	flex: 1 1 30rem;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.45;
	color: var(--wp--preset--color--ink);
	text-wrap: pretty;
}

.pan-goodnews-text strong { color: var(--wp--custom--signal--safe); }

.pan-goodnews p.pan-goodnews-link { flex: none; font-weight: 600; }

.pan-goodnews-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--wp--preset--color--seal-mid);
	text-decoration: none;
}

.pan-goodnews-link a::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--pan-icon-arrow) center / contain no-repeat;
	mask: var(--pan-icon-arrow) center / contain no-repeat;
	transform: rotate(90deg);
}

.pan-goodnews-link a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

@media (max-width: 560px) {
	.pan-goodnews { padding: 4rem 1.25rem 1.25rem; }
	.pan-goodnews::before { left: 1.25rem; top: 1.25rem; transform: none; }
	.pan-goodnews::after { left: 1.75rem; top: 1.75rem; transform: none; }
}

/* ---------- Explainer section --------------------------------------------- */

/* Service-page titles are sentences, not labels: a size that holds two lines, not four. */
.pan-svc-section h2 { max-width: 26ch; font-size: clamp(2rem, 3.4vw, 2.875rem); text-wrap: balance; }
.pan-explainer h2 { max-width: 26ch; }
.pan-explainer .pan-lead { max-width: 44rem; }

/* ---------- Options -------------------------------------------------------- */

.pan-options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	margin-top: 2.25rem;
}

/* Column counts follow the number of options, so none is ever left alone on a row. */
@media (min-width: 900px) {
	.pan-options:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
	.pan-options:has(> :nth-child(2):last-child),
	.pan-options:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.pan-options:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Five: three then two, the ladder read left to right, top to bottom. */
@media (min-width: 900px) {
	.pan-options:has(> :nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pan-options > * { margin-block: 0; }

/* Glass cards in the navy room (Seal DNA on-seal tokens). The featured option, where one honestly
   is the place to start, is lit with brass: a top rule, a glow, its badge and the one button. */
.pan-svc-options .pan-lead { max-width: 44rem; color: var(--wp--preset--color--seal-label); }
.pan-svc-options .pan-lead a { color: var(--wp--preset--color--brass); text-decoration: underline; text-underline-offset: 0.2em; }
.pan-svc-options .pan-lead a:hover,
.pan-svc-options .pan-lead a:focus-visible { color: var(--wp--preset--color--bone); }

/* 🔴 On night, not the room's usual deep navy. A glass fill lightens whatever it sits on: brass text on the
   6% fill over deep measured 4.43:1 and 3.94:1 on the featured card's 10% (AA fails), though brass on
   bare deep is 5.19:1. Over night it is 5.5:1 and 4.89:1. Measure text against the blended colour. */
.pan-room.pan-svc-options { background-color: var(--wp--preset--color--night); }

.pan-option {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.7rem 1.5rem 1.5rem;
	background: var(--wp--custom--depth--on-seal-fill);
	border: 1px solid var(--wp--custom--depth--on-seal-edge);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--custom--depth--on-seal-lift);
	transition:
		transform var(--wp--custom--motion--base) var(--wp--custom--motion--ease-standard),
		background-color var(--wp--custom--motion--base) var(--wp--custom--motion--ease-standard);
}

.pan-option > * { margin-block: 0; }
.pan-option h3 { font-size: 1.45rem; color: var(--wp--preset--color--bone); }
.pan-option p.pan-option-for { font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--wp--preset--color--brass); }
.pan-svc-options .pan-ticks li { color: var(--wp--preset--color--seal-label); }
.pan-svc-options .pan-ticks li::before { border-color: var(--wp--preset--color--seal-bright); }
.pan-option p.pan-option-link { margin-top: auto; padding-top: 1rem; font-weight: 600; }
.pan-option p.pan-option-link a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--wp--preset--color--bone); text-decoration: none; }
.pan-option p.pan-option-link a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.pan-option p.pan-option-link a::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: var(--wp--preset--color--brass);
	-webkit-mask: var(--pan-icon-arrow) center / contain no-repeat;
	mask: var(--pan-icon-arrow) center / contain no-repeat;
}

.pan-option .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.pan-option .wp-block-button.pan-cta { width: 100%; }
.pan-option .wp-block-button.pan-cta > .wp-block-button__link { width: 100%; }

.pan-option.is-featured {
	background: var(--wp--custom--depth--on-seal-fill-raised);
	border-color: rgba(194, 161, 77, 0.55);
	box-shadow: var(--wp--custom--depth--glow-brass), var(--wp--custom--depth--on-seal-lift);
}

.pan-option.is-featured::before {
	content: "";
	position: absolute;
	inset: -1px -1px auto;
	height: 2px;
	background: var(--wp--preset--color--brass);
	border-radius: var(--wp--custom--radius--md) var(--wp--custom--radius--md) 0 0;
}

.pan-option p.pan-option-badge {
	position: absolute;
	top: 0;
	left: 1.5rem;
	margin: 0;
	transform: translateY(-50%);
	padding: 0.22rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--headline); /* 6.9:1 on brass */
	background: var(--wp--preset--color--brass);
	border-radius: var(--wp--custom--radius--pill);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.pan-option:hover { transform: translateY(-3px); background-color: var(--wp--custom--depth--on-seal-fill-raised); }
}

ul.pan-ticks {
	display: grid;
	gap: 0.5rem;
	margin: 0.4rem 0 0;
	padding: 0;
	list-style: none;
}

.pan-ticks li {
	position: relative;
	margin: 0;
	padding-left: 1.6rem;
	font-size: 0.96875rem;
	color: var(--wp--preset--color--ink-2);
}

.pan-ticks li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.5em;
	width: 0.7rem;
	height: 0.38rem;
	border-left: 2px solid var(--wp--preset--color--seal-mid);
	border-bottom: 2px solid var(--wp--preset--color--seal-mid);
	transform: rotate(-45deg);
}

/* ---------- Steps with titles ---------------------------------------------- */

.pan-step h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.pan-svc-steps h2 { max-width: 24ch; text-wrap: balance; }

/* ---------- Details: the technically curious, and questions ---------------- */

.pan-tech h2 { color: var(--wp--preset--color--bone); }

/* Under the hood: heading and lead side by side, then the questions as glass cards, two across
   (an odd last one spans both). Until 14 Sep a single column sat beside a mostly empty one. */
.pan-tech-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
	gap: 1rem 4rem;
	align-items: end;
}

.pan-tech-head > *,
.pan-tech-title > * { margin-block: 0; }
.pan-tech-title > .pan-eyebrow { margin-bottom: 0.875rem; }
.pan-tech-head p.pan-lead { max-width: 32rem; padding-bottom: 0.35rem; color: var(--wp--preset--color--seal-label); }

@media (max-width: 880px) {
	.pan-tech-head { grid-template-columns: minmax(0, 1fr); }
}

.pan-qa-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 2.5rem;
}

.pan-qa-grid > * { margin: 0; }
.pan-qa-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 760px) {
	.pan-qa-grid { grid-template-columns: minmax(0, 1fr); }
}

details.pan-qa {
	margin: 0;
	border-top: 1px solid var(--wp--preset--color--border);
}

details.pan-qa:last-child { border-bottom: 1px solid var(--wp--preset--color--border); }

.pan-qa > summary {
	position: relative;
	padding: 1.05rem 2.5rem 1.05rem 0;
	font-weight: 600;
	color: var(--wp--preset--color--headline);
	list-style: none;
	cursor: pointer;
}

.pan-qa > summary::-webkit-details-marker { display: none; }

/* Blocksy gives the summary a 25.5px flow margin, which padded every closed question (measured 14 Sep). */
.pan-qa > summary { margin: 0; }

.pan-qa > summary::after {
	content: "";
	position: absolute;
	right: 0.35rem;
	top: 50%;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--wp--custom--motion--base) var(--wp--custom--motion--ease-standard);
}

.pan-qa[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
.pan-qa > summary:hover { color: var(--wp--preset--color--seal-mid); }
.pan-qa > :not(summary) { margin: 0 0 1.1rem; max-width: 42rem; color: var(--wp--preset--color--ink-2); }

.pan-tech details.pan-qa,
.pan-tech details.pan-qa:last-child {
	padding: 0 1.3rem;
	background: var(--wp--custom--depth--on-seal-fill);
	border: 1px solid var(--wp--custom--depth--on-seal-edge);
	border-radius: var(--wp--custom--radius--md);
	transition: background-color var(--wp--custom--motion--base) var(--wp--custom--motion--ease-standard);
}

.pan-tech details.pan-qa[open] { background: var(--wp--custom--depth--on-seal-fill-raised); border-color: var(--wp--custom--depth--on-seal-edge-strong); }
.pan-tech details.pan-qa:hover { background: var(--wp--custom--depth--on-seal-fill-raised); }
.pan-tech .pan-qa > summary { color: var(--wp--preset--color--bone); }
.pan-tech .pan-qa > summary::after { color: var(--wp--preset--color--brass); }
.pan-tech .pan-qa > summary:hover { color: var(--wp--preset--color--surface); }
.pan-tech .pan-qa > :not(summary) { color: var(--wp--preset--color--seal-label); }

/* Questions: heading, a nudge and a link to the form on the left (held in view on a wide screen), the
   questions on a raised white panel on the right. Until 14 Sep a bare list under a heading. */
.pan-faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 2rem clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

.pan-faq-grid > *,
.pan-faq-head > * { margin-block: 0; }
.pan-faq-head > .pan-eyebrow { margin-bottom: 0.875rem; }
.pan-faq-head h2 { text-wrap: balance; }
.pan-faq-head p.pan-faq-note { max-width: 24rem; margin-top: 1.1rem; font-size: 1.125rem; color: var(--wp--preset--color--ink-2); }
.pan-faq-head p.pan-faq-link { margin-top: 1.1rem; font-weight: 600; }

.pan-faq-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--wp--preset--color--seal-mid);
	text-decoration: none;
}

.pan-faq-link a::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--pan-icon-arrow) center / contain no-repeat;
	mask: var(--pan-icon-arrow) center / contain no-repeat;
	transform: rotate(90deg);
}

.pan-faq-link a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.pan-faq-list {
	padding: 0.35rem clamp(1.1rem, 3vw, 1.75rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--depth--elev-1);
}

.pan-faq-list > details.pan-qa:first-child { border-top: 0; }
.pan-faq-list > details.pan-qa:last-child { border-bottom: 0; }

@media (min-width: 881px) {
	.pan-faq-head { position: sticky; top: 6.5rem; }
}

@media (max-width: 880px) {
	.pan-faq-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- The free-guide band --------------------------------------------- */

.pan-guide-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.pan-guide-grid > *,
.pan-guide-text > * { margin-block: 0; }

.wp-block-image.pan-guide-cover { margin: 0; justify-self: center; max-width: 20rem; }

.wp-block-image.pan-guide-cover img {
	display: block;
	border-radius: 4px;
	box-shadow: 0 26px 50px rgba(12, 40, 129, 0.24), 0 2px 6px rgba(12, 40, 129, 0.12);
	transform: rotate(-2.5deg);
}

.pan-guide-text h2 { margin-top: 0.4rem; text-wrap: balance; }
.pan-guide-text > p:not(.pan-eyebrow) { margin-top: 0.9rem; color: var(--wp--preset--color--ink-2); max-width: 34rem; }
.pan-guide-text ul.pan-ticks { margin-top: 1rem; }
.pan-guide-text .fluentform { max-width: 32rem; margin-top: 1.5rem; }

@media (max-width: 880px) {
	.pan-guide-grid { grid-template-columns: minmax(0, 1fr); }
	.wp-block-image.pan-guide-cover { max-width: 13rem; justify-self: start; }
}

/* Getting a guide: the download first, "Email me a copy" folded away beneath it. Until 14 Sep the form
   came first, which made the email feel like the price of the guide. Used on guide bands and hub cards. */
/* Both text columns zero their children's margins (the hub's rule loads later), so the gap is set from the column. */
:is(.pan-guide-text, .pan-hub-guide-text) > .pan-guide-get { margin-top: 1.5rem; }
.pan-guide-get > * { margin-block: 0; }
.pan-guide-get p.pan-guide-meta {
	margin-top: 0.6rem;
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--ink-3);
	font-variant-numeric: tabular-nums;
}

details.pan-guide-email {
	max-width: 32rem;
	margin-top: 1.1rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

/* Blocksy gives <summary> a flow margin (as on the FAQs), so it's zeroed here too. */
.pan-guide-email > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.85rem 0 0.15rem;
	font-weight: 600;
	color: var(--wp--preset--color--seal-mid);
	list-style: none;
	cursor: pointer;
}

.pan-guide-email > summary::-webkit-details-marker { display: none; }

.pan-guide-email > summary::after {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	transition: transform 0.2s ease;
}

.pan-guide-email[open] > summary::after { transform: translateY(20%) rotate(-135deg); }
.pan-guide-email > summary:hover { color: var(--wp--preset--color--seal-deep); }
.pan-guide-email > summary:focus-visible { outline: 2px solid var(--wp--preset--color--seal-mid); outline-offset: 3px; border-radius: 2px; }
.pan-guide-email p.pan-guide-email-note { margin: 0.45rem 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }
:is(.pan-guide-text, .pan-hub-guide-text) .pan-guide-email .fluentform { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
	.pan-guide-email > summary::after { transition: none; }
}

/* ==========================================================================
   Explainer components
   ========================================================================== */

.pan-chooser { display: grid; gap: 1.6rem; margin-top: 2.25rem; }
.pan-chooser > * { margin: 0; }

.pan-chooser-picks {
	display: flex;
	flex-wrap: wrap;
	align-items: center; /* stretch made the last chip on a row 7px taller (measured 14 Sep) */
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.pan-chooser-picks > legend {
	float: left;
	width: 100%;
	margin: 0 0 0.35rem;
	padding: 0;
	font-weight: 600;
	color: var(--wp--preset--color--headline);
}

/* A visually hidden legend kept the rule above's width: 100% (higher specificity), so it measured 1566px wide
   off-screen (shoot.mjs, 14 Sep). */
.pan-chooser-picks > legend.pan-visually-hidden { float: none; width: 1px; }

/* margin: 0 — Blocksy gives every form label but the last a 7.5px bottom margin, which made one
   flex row taller and knocked the last chip 4px out of line (measured 14 Sep). */
.pan-chooser-picks > .pan-chip { margin: 0; }

.pan-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 1.05rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
	cursor: pointer;
	transition:
		background-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease-standard),
		border-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease-standard),
		color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease-standard);
}

/* The radio is the real control — full-size and transparent over its label, so it keeps
   keyboard, touch and screen-reader behaviour for free. */
.pan-chip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.pan-chip b {
	display: inline-grid;
	place-items: center;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 50%;
	font-size: 0.75rem;
	background: var(--wp--preset--color--seal-soft);
	color: var(--wp--preset--color--seal-deep);
}

.pan-chip:hover { border-color: var(--wp--preset--color--seal-mid); }
.pan-chip:has(input:checked) { background: var(--wp--preset--color--seal-deep); border-color: var(--wp--preset--color--seal-deep); color: var(--wp--preset--color--bone); box-shadow: var(--wp--custom--depth--elev-2); }
.pan-chip:has(input:checked) b { background: var(--wp--preset--color--brass); color: var(--wp--preset--color--headline); }
.pan-chip:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--seal-bright); outline-offset: 2px; }
.pan-chooser-picks > .pan-chip:not(:has(input:checked)) { box-shadow: var(--wp--custom--depth--elev-1); }

/* A chip that stands for a risky, uncertain or safe choice carries that signal's icon, so the
   comparison reads before a single panel is opened. */
.pan-chip-sig {
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	background: var(--pan-sig);
	-webkit-mask: var(--pan-i) center / contain no-repeat;
	mask: var(--pan-i) center / contain no-repeat;
}

.pan-chip:has(input:checked) .pan-chip-sig { background: var(--pan-sig-dark); }

.pan-chooser-picks--toggle { padding: 0.3rem; gap: 0.3rem; width: fit-content; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--pill); box-shadow: var(--wp--custom--depth--elev-1); }
.pan-chooser-picks--toggle > .pan-chip:not(:has(input:checked)) { box-shadow: none; }
.pan-chooser-picks--toggle .pan-chip { border-color: transparent; }

.pan-chooser-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 880px) {
	.pan-chooser-stage { grid-template-columns: minmax(0, 1fr); }
}

/* On a wide screen the answer stays in view while the tree or report beside it is read. */
@media (min-width: 881px) {
	.pan-chooser-stage > .pan-chooser-panels { position: sticky; top: 6.5rem; }
}

.pan-pick {
	padding: clamp(1.4rem, 3vw, 2rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--depth--elev-2);
}

.pan-pick > * { margin: 0; }
.pan-pick + .pan-pick { margin-top: 1rem; } /* only seen stacked, without :has() */
.pan-pick h3 { margin-top: 0.35rem; font-size: clamp(1.6rem, 3vw, 2rem); }
.pan-pick-kicker { font-size: var(--wp--custom--eyebrow--size); font-weight: 700; letter-spacing: var(--wp--custom--eyebrow--tracking); text-transform: uppercase; color: var(--wp--custom--brass-800); }
.pan-pick-family { margin-top: 0.3rem !important; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-3); }
.pan-pick .pan-ticks { margin-top: 1.1rem; }
.pan-pick-trade { margin-top: 1.2rem !important; padding-top: 1rem; border-top: 1px dashed var(--wp--preset--color--border); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }
.pan-chooser-note { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-3); }

/* Under the chosen card (the Linux chooser), the reassurance sits as a quiet note with a shield, so the
   column beside the tall family tree isn't left half empty. */
.pan-chooser-panels > p.pan-chooser-note {
	position: relative;
	margin-top: 1rem;
	padding: 0.95rem 1.2rem 0.95rem 3.1rem;
	color: var(--wp--preset--color--ink-2);
	border: 1px dashed rgba(12, 40, 129, 0.25);
	border-radius: var(--wp--custom--radius--md);
}

.pan-chooser-panels > p.pan-chooser-note::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 1rem;
	width: 1.3rem;
	height: 1.3rem;
	background: var(--wp--preset--color--seal-mid);
	-webkit-mask: var(--pan-icon-shield) center / contain no-repeat;
	mask: var(--pan-icon-shield) center / contain no-repeat;
}

/* CHOOSER RULES — which panel shows, and what lights up, for the checked chip.
   Generated for up to 10 chips: the n-th chip shows the n-th .pan-pick and lights
   anything carrying data-n containing n. */
@supports selector(:has(*)) {
	.pan-chooser .pan-pick { display: none; }
	.pan-pick + .pan-pick { margin-top: 0; }
	.pan-chooser:has(.pan-chip:nth-of-type(1) > input:checked) .pan-pick:nth-of-type(1),
	.pan-chooser:has(.pan-chip:nth-of-type(2) > input:checked) .pan-pick:nth-of-type(2),
	.pan-chooser:has(.pan-chip:nth-of-type(3) > input:checked) .pan-pick:nth-of-type(3),
	.pan-chooser:has(.pan-chip:nth-of-type(4) > input:checked) .pan-pick:nth-of-type(4),
	.pan-chooser:has(.pan-chip:nth-of-type(5) > input:checked) .pan-pick:nth-of-type(5),
	.pan-chooser:has(.pan-chip:nth-of-type(6) > input:checked) .pan-pick:nth-of-type(6),
	.pan-chooser:has(.pan-chip:nth-of-type(7) > input:checked) .pan-pick:nth-of-type(7),
	.pan-chooser:has(.pan-chip:nth-of-type(8) > input:checked) .pan-pick:nth-of-type(8),
	.pan-chooser:has(.pan-chip:nth-of-type(9) > input:checked) .pan-pick:nth-of-type(9),
	.pan-chooser:has(.pan-chip:nth-of-type(10) > input:checked) .pan-pick:nth-of-type(10) {
		display: block;
	}
	.pan-chooser:has(.pan-chip:nth-of-type(1) > input:checked) .pan-node[data-n~="1"],
	.pan-chooser:has(.pan-chip:nth-of-type(2) > input:checked) .pan-node[data-n~="2"],
	.pan-chooser:has(.pan-chip:nth-of-type(3) > input:checked) .pan-node[data-n~="3"],
	.pan-chooser:has(.pan-chip:nth-of-type(4) > input:checked) .pan-node[data-n~="4"],
	.pan-chooser:has(.pan-chip:nth-of-type(5) > input:checked) .pan-node[data-n~="5"],
	.pan-chooser:has(.pan-chip:nth-of-type(6) > input:checked) .pan-node[data-n~="6"],
	.pan-chooser:has(.pan-chip:nth-of-type(7) > input:checked) .pan-node[data-n~="7"],
	.pan-chooser:has(.pan-chip:nth-of-type(8) > input:checked) .pan-node[data-n~="8"],
	.pan-chooser:has(.pan-chip:nth-of-type(9) > input:checked) .pan-node[data-n~="9"],
	.pan-chooser:has(.pan-chip:nth-of-type(10) > input:checked) .pan-node[data-n~="10"] {
		background: var(--wp--preset--color--seal-deep);
		border-color: var(--wp--preset--color--seal-deep);
		color: var(--wp--preset--color--bone);
		box-shadow: 0 0 0 4px rgba(7, 168, 173, 0.2);
	}
	.pan-chooser:has(.pan-chip:nth-of-type(1) > input:checked) .pan-node[data-n~="1"] small,
	.pan-chooser:has(.pan-chip:nth-of-type(2) > input:checked) .pan-node[data-n~="2"] small,
	.pan-chooser:has(.pan-chip:nth-of-type(3) > input:checked) .pan-node[data-n~="3"] small,
	.pan-chooser:has(.pan-chip:nth-of-type(4) > input:checked) .pan-node[data-n~="4"] small,
	.pan-chooser:has(.pan-chip:nth-of-type(5) > input:checked) .pan-node[data-n~="5"] small,
	.pan-chooser:has(.pan-chip:nth-of-type(6) > input:checked) .pan-node[data-n~="6"] small,
	.pan-chooser:has(.pan-chip:nth-of-type(7) > input:checked) .pan-node[data-n~="7"] small,
	.pan-chooser:has(.pan-chip:nth-of-type(8) > input:checked) .pan-node[data-n~="8"] small,
	.pan-chooser:has(.pan-chip:nth-of-type(9) > input:checked) .pan-node[data-n~="9"] small,
	.pan-chooser:has(.pan-chip:nth-of-type(10) > input:checked) .pan-node[data-n~="10"] small {
		color: var(--wp--preset--color--seal-label);
	}
	.pan-chooser:has(.pan-chip:nth-of-type(1) > input:checked) .pan-report-rows li[data-n~="1"],
	.pan-chooser:has(.pan-chip:nth-of-type(2) > input:checked) .pan-report-rows li[data-n~="2"],
	.pan-chooser:has(.pan-chip:nth-of-type(3) > input:checked) .pan-report-rows li[data-n~="3"],
	.pan-chooser:has(.pan-chip:nth-of-type(4) > input:checked) .pan-report-rows li[data-n~="4"],
	.pan-chooser:has(.pan-chip:nth-of-type(5) > input:checked) .pan-report-rows li[data-n~="5"],
	.pan-chooser:has(.pan-chip:nth-of-type(6) > input:checked) .pan-report-rows li[data-n~="6"],
	.pan-chooser:has(.pan-chip:nth-of-type(7) > input:checked) .pan-report-rows li[data-n~="7"],
	.pan-chooser:has(.pan-chip:nth-of-type(8) > input:checked) .pan-report-rows li[data-n~="8"],
	.pan-chooser:has(.pan-chip:nth-of-type(9) > input:checked) .pan-report-rows li[data-n~="9"],
	.pan-chooser:has(.pan-chip:nth-of-type(10) > input:checked) .pan-report-rows li[data-n~="10"] {
		background: var(--wp--preset--color--seal-soft);
		box-shadow: inset 0 0 0 1.5px rgba(12, 91, 158, 0.45);
		color: var(--wp--preset--color--headline);
	}
	/* Anything else carrying data-n (the framework's layer stack, scale rings) reads this and styles
	   itself: --lit is 1 on the lit elements, 0 elsewhere (see pan-pages.css). */
	.pan-chooser:has(.pan-chip:nth-of-type(1) > input:checked) [data-n~="1"],
	.pan-chooser:has(.pan-chip:nth-of-type(2) > input:checked) [data-n~="2"],
	.pan-chooser:has(.pan-chip:nth-of-type(3) > input:checked) [data-n~="3"],
	.pan-chooser:has(.pan-chip:nth-of-type(4) > input:checked) [data-n~="4"],
	.pan-chooser:has(.pan-chip:nth-of-type(5) > input:checked) [data-n~="5"],
	.pan-chooser:has(.pan-chip:nth-of-type(6) > input:checked) [data-n~="6"],
	.pan-chooser:has(.pan-chip:nth-of-type(7) > input:checked) [data-n~="7"],
	.pan-chooser:has(.pan-chip:nth-of-type(8) > input:checked) [data-n~="8"],
	.pan-chooser:has(.pan-chip:nth-of-type(9) > input:checked) [data-n~="9"],
	.pan-chooser:has(.pan-chip:nth-of-type(10) > input:checked) [data-n~="10"] {
		--lit: 1;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.pan-pick { animation: pan-pick-in var(--wp--custom--motion--slow) var(--wp--custom--motion--ease-decel); }
}

@keyframes pan-pick-in { from { transform: translateY(8px); } to { transform: none; } }

/* ---------- The family tree ---------------------------------------------- */

.pan-tree-wrap {
	padding: clamp(1.2rem, 3vw, 1.6rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--depth--elev-1);
}

.pan-tree-title { margin: 0 0 0.9rem; font-weight: 600; color: var(--wp--preset--color--headline); }
.pan-tree-title span { margin-left: 0.4rem; font-size: var(--wp--preset--font-size--caption); font-weight: 400; color: var(--wp--preset--color--ink-3); }

ul.pan-tree,
.pan-tree ul { margin: 0; padding: 0; list-style: none; }
.pan-tree ul { margin-left: 0.85rem; padding-left: 1.1rem; border-left: 1.5px solid rgba(12, 40, 129, 0.22); }
.pan-tree li { position: relative; margin: 0; padding: 0.28rem 0; }
.pan-tree ul > li::before { content: ""; position: absolute; left: -1.1rem; top: 1.15rem; width: 0.9rem; border-top: 1.5px solid rgba(12, 40, 129, 0.22); }

.pan-node {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.3rem 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--headline);
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
	transition:
		background-color var(--wp--custom--motion--base) var(--wp--custom--motion--ease-standard),
		box-shadow var(--wp--custom--motion--base) var(--wp--custom--motion--ease-standard);
}

.pan-node small { font-size: 0.75rem; font-weight: 400; color: var(--wp--preset--color--ink-3); }
.pan-node.is-root { border-color: rgba(12, 40, 129, 0.3); }

/* ---------- The example report (privacy consulting) ------------------------ */

.pan-report {
	margin: 0;
	padding: clamp(1.2rem, 3vw, 1.6rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--depth--elev-2);
}

.pan-report-title { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 0.8rem; padding-bottom: 0.8rem; font-weight: 600; color: var(--wp--preset--color--headline); border-bottom: 1px solid var(--wp--preset--color--border); }
.pan-report-title span { font-size: var(--wp--preset--font-size--caption); font-weight: 400; color: var(--wp--preset--color--ink-3); }

ol.pan-report-rows { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }

.pan-report-rows li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0.42rem 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-2);
	border-radius: var(--wp--custom--radius--sm);
	transition: background-color var(--wp--custom--motion--base) var(--wp--custom--motion--ease-standard);
}

/* Ratings as signal badges: icon and word, in crimson, amber or the safe teal. Until 14 Sep
   "High" was a terracotta pill, the colour of the page's own buttons. */
.pan-report-rows b {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.14rem 0.55rem 0.14rem 0.4rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--pan-sig);
	background: var(--pan-sig-tint);
	border: 1px solid var(--pan-sig-edge);
	border-radius: var(--wp--custom--radius--pill);
}

.pan-report-rows b::before {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: var(--pan-i) center / contain no-repeat;
	mask: var(--pan-i) center / contain no-repeat;
}

.pan-report-rows b.is-high { --pan-i: var(--pan-icon-risk); --pan-sig: var(--wp--custom--signal--risk); --pan-sig-tint: var(--wp--custom--signal--risk-tint); --pan-sig-edge: var(--wp--custom--signal--risk-edge); }
.pan-report-rows b.is-medium { --pan-i: var(--pan-icon-caution); --pan-sig: var(--wp--custom--signal--caution); --pan-sig-tint: var(--wp--custom--signal--caution-tint); --pan-sig-edge: var(--wp--custom--signal--caution-edge); }
.pan-report-rows b.is-low { --pan-i: var(--pan-icon-safe); --pan-sig: var(--wp--custom--signal--safe); --pan-sig-tint: var(--wp--custom--signal--safe-tint); --pan-sig-edge: var(--wp--custom--signal--safe-edge); }

.pan-report-foot { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--wp--preset--color--border); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }
.pan-report-foot strong { padding: 0.1rem 0.4rem; color: var(--wp--preset--color--headline); background: var(--wp--preset--color--seal-soft); border-radius: var(--wp--custom--radius--sm); }

.pan-chooser-picks--layers .pan-chip { padding-left: 0.5rem; }

/* What I check, then the example finding (crimson, with an alert) beside the typical fix (the
   safe tick): the problem and its answer side by side. Until 14 Sep these were three rows with
   coloured left borders, a trope Seal DNA rules out, and the finding was terracotta. */
dl.pan-finding {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1.2rem 0 0;
}

.pan-finding > div { margin: 0; }
.pan-finding > div:first-child { grid-column: 1 / -1; padding-bottom: 0.3rem; }

.pan-finding > div:nth-child(2) { --pan-i: var(--pan-icon-alert); --pan-sig: var(--wp--custom--signal--risk); --pan-sig-tint: var(--wp--custom--signal--risk-tint); --pan-sig-edge: var(--wp--custom--signal--risk-edge); }
.pan-finding > div:nth-child(3) { --pan-i: var(--pan-icon-safe); --pan-sig: var(--wp--custom--signal--safe); --pan-sig-tint: var(--wp--custom--signal--safe-tint); --pan-sig-edge: var(--wp--custom--signal--safe-edge); }

.pan-finding > div:nth-child(n+2) {
	padding: 0.9rem 1rem 1rem;
	background: var(--pan-sig-tint);
	border: 1px solid var(--pan-sig-edge);
	border-radius: var(--wp--custom--radius--md);
}

.pan-finding dt {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-3);
}

.pan-finding dt::before {
	content: "";
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	background: currentColor;
	-webkit-mask: var(--pan-i, var(--pan-icon-look)) center / contain no-repeat;
	mask: var(--pan-i, var(--pan-icon-look)) center / contain no-repeat;
}

.pan-finding > div:nth-child(n+2) dt { color: var(--pan-sig); }
.pan-finding dd { margin: 0.3rem 0 0; color: var(--wp--preset--color--ink); }

@media (max-width: 560px) {
	dl.pan-finding { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- The example phone and the master key (secure devices) --------- */

.pan-phone-pick { padding: 0; background: transparent; border: 0; box-shadow: none; }

/* The phone column is as wide as the phone, so the master-key panel sits beside it, not across a gap. */
@media (min-width: 881px) {
	.pan-devices .pan-chooser-stage { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
}

/* The phone glows faintly with its state: crimson before, the safe cyan after. */
.pan-phone {
	max-width: 22rem;
	padding: 1.1rem 1.1rem 1.4rem;
	background: var(--wp--preset--color--night);
	border: 8px solid var(--wp--preset--color--seal-deep);
	border-radius: 2.2rem;
	box-shadow: 0 0 0 1px rgba(255, 159, 148, 0.3), 0 34px 70px -26px rgba(180, 35, 24, 0.5), var(--wp--custom--depth--elev-2);
}

.pan-phone.is-after { box-shadow: 0 0 0 1px rgba(111, 214, 217, 0.4), 0 34px 70px -26px rgba(7, 168, 173, 0.55), var(--wp--custom--depth--elev-2); }

.pan-phone-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin: 0 0.25rem 0.9rem 0.4rem; font-size: var(--wp--preset--font-size--caption); font-weight: 600; color: var(--wp--preset--color--seal-label); }

ul.pan-perms { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }

.pan-perms li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	margin: 0;
	padding: 0.6rem 0.8rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--bone);
	background: rgba(188, 211, 232, 0.07);
	border-radius: 0.7rem;
}

.pan-perms b { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-align: right; }

.pan-perms b::before {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--pan-i) center / contain no-repeat;
	mask: var(--pan-i) center / contain no-repeat;
}

.pan-perms b.is-risk { color: var(--wp--custom--signal--risk-on-dark); } /* 8.0:1 on night navy */
.pan-perms b.is-safe { color: var(--wp--custom--signal--safe-on-dark); } /* 9.3:1 on night navy */

.pan-keychain {
	padding: clamp(1.4rem, 3vw, 2rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--depth--elev-1);
}

.pan-keychain > * { margin: 0; }
.pan-keychain h3 { margin-top: 0.35rem; font-size: 1.6rem; }
.pan-keychain > p:not(.pan-pick-kicker) { margin-top: 0.7rem; color: var(--wp--preset--color--ink-2); }

ul.pan-keys { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }

.pan-keys li {
	margin: 0;
	padding: 0.3rem 0.7rem 0.3rem 1.6rem;
	position: relative;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	color: var(--wp--preset--color--headline);
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill);
}

/* Each account hangs off the inbox: a small key-hole dot in brass. */
.pan-keys li::before { content: ""; position: absolute; left: 0.6rem; top: 50%; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--wp--preset--color--brass); transform: translateY(-50%); }
.pan-keys-fix { margin-top: 1.1rem !important; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--border); }

/* ---------- Where your words go (safe & private AI) ------------------------ */

/* Each route opens with its verdict: a signal badge and a three-step privacy meter, so the three
   routes can be told apart at a glance. Until 14 Sep they were three near-identical rows of
   beige boxes ("you couldn't tell what was wrong clearly"). */
.pan-route-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	margin-bottom: 1.3rem !important;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.pan-route-head > * { margin: 0; }
.pan-route-head .pan-badge { font-size: var(--wp--preset--font-size--small); padding: 0.35rem 0.85rem 0.35rem 0.6rem; }

.pan-meter { display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--wp--preset--font-size--caption); font-weight: 600; color: var(--wp--preset--color--ink-3); }
.pan-meter i { width: 1.6rem; height: 0.5rem; margin-left: 0.05rem; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--border); }
.pan-meter i:first-of-type { margin-left: 0.4rem; }

.pan-route.is-risk .pan-meter i:nth-of-type(-n+1),
.pan-route.is-caution .pan-meter i:nth-of-type(-n+2),
.pan-route.is-safe .pan-meter i { background: var(--pan-sig); }

ol.pan-flow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr) 3rem minmax(0, 1fr);
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pan-flow > li { margin: 0; }

.pan-flow-node {
	display: grid;
	align-content: center;
	gap: 0.2rem;
	padding: 0.95rem 1rem;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
}

.pan-flow-node b { color: var(--wp--preset--color--headline); line-height: 1.3; }
.pan-flow-node span { font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--ink-3); }

/* Where the words end up carries the route's signal: tint, edge, icon and colour. */
.pan-flow-node:is(.is-risk, .is-caution, .is-safe) {
	position: relative;
	padding-left: 2.8rem;
	background: var(--pan-sig-tint);
	border: 1.5px solid var(--pan-sig-edge);
}

.pan-flow-node:is(.is-risk, .is-caution, .is-safe)::before {
	content: "";
	position: absolute;
	left: 0.95rem;
	top: 1rem;
	width: 1.35rem;
	height: 1.35rem;
	background: var(--pan-sig);
	-webkit-mask: var(--pan-i) center / contain no-repeat;
	mask: var(--pan-i) center / contain no-repeat;
}

.pan-flow-node:is(.is-risk, .is-caution, .is-safe) b { color: var(--pan-sig); }
.pan-flow-node:is(.is-risk, .is-caution, .is-safe) span { color: var(--wp--preset--color--ink-2); }

/* The link between two stops: a dashed line whose dashes travel, in the colour of where the
   route ends. */
.pan-flow-link {
	align-self: center;
	height: 4px;
	margin: 0 0.35rem !important;
	border-radius: 2px;
	background: repeating-linear-gradient(90deg, var(--pan-sig, var(--wp--preset--color--seal-mid)) 0 8px, transparent 8px 16px);
}

@media (max-width: 720px) {
	ol.pan-flow { grid-template-columns: minmax(0, 1fr); }
	.pan-flow-link { width: 4px; height: 1.6rem; margin: 0.2rem auto !important; background: repeating-linear-gradient(180deg, var(--pan-sig, var(--wp--preset--color--seal-mid)) 0 6px, transparent 6px 12px); }
}

@media (prefers-reduced-motion: no-preference) {
	.pan-flow-link { animation: pan-dash 900ms linear infinite; }
}

@keyframes pan-dash { from { background-position: 0 0; } to { background-position: 16px 0; } }

.pan-route-note { margin-top: 1.2rem !important; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }

/* Safe to paste? Three columns, each headed by its signal: icon, word and tint. Until 14 Sep the
   columns differed only by a thin coloured top border. */
.pan-sorter > * { margin: 0; }
.pan-sorter-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin-top: 0.9rem; }
@media (min-width: 720px) { .pan-sorter-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pan-sorter-col {
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--custom--depth--elev-1);
}

.pan-sorter-col h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.8rem 1.1rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pan-sig);
	background: var(--pan-sig-tint);
	border-bottom: 1px solid var(--pan-sig-edge);
}

.pan-sorter-col h3::before {
	content: "";
	flex: none;
	width: 1.3rem;
	height: 1.3rem;
	background: currentColor;
	-webkit-mask: var(--pan-i) center / contain no-repeat;
	mask: var(--pan-i) center / contain no-repeat;
}

.pan-sorter-col ul { display: grid; gap: 0.45rem; margin: 0; padding: 0.95rem 1.1rem 1.1rem 2.15rem; }
.pan-sorter-col li { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }
.pan-sorter-col li::marker { color: var(--pan-sig); }

/* ---------- What a website shares (websites) ------------------------------- */

.pan-web-pick { display: grid; gap: 1.2rem; }
.pan-web-pick > .pan-badge { font-size: var(--wp--preset--font-size--small); padding: 0.35rem 0.85rem 0.35rem 0.6rem; }
.pan-web-pick > * { margin: 0; }

.pan-web-map {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 1.2rem;
	align-items: center;
}

@media (max-width: 560px) { .pan-web-map { grid-template-columns: minmax(0, 1fr); } }

.pan-browser { margin: 0; overflow: hidden; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--md); background: var(--wp--preset--color--paper); box-shadow: var(--wp--custom--depth--elev-1); }
.pan-browser p { margin: 0; }
.pan-browser-bar { display: flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.7rem; font-size: 0.75rem; color: var(--wp--preset--color--seal-label); background: var(--wp--preset--color--seal-deep); }
.pan-browser-bar i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: rgba(244, 236, 216, 0.45); }
.pan-browser-bar i:last-of-type { margin-right: 0.35rem; }
.pan-browser-body { padding: 1.9rem 1rem; font-family: var(--wp--preset--font-family--newsreader); font-size: 1.35rem; text-align: center; color: var(--wp--preset--color--headline); }

ul.pan-web-parties { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }

/* Each company a visit is sent to: crimson, with an arrow leaving. On the clean site, what stays
   home: the safe teal, with a tick. */
.pan-web-parties li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.35rem 0.75rem 0.35rem 0.5rem;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	color: var(--wp--custom--signal--risk);
	background: var(--wp--custom--signal--risk-tint);
	border: 1px solid var(--wp--custom--signal--risk-edge);
	border-radius: var(--wp--custom--radius--pill);
}

.pan-web-parties li::before {
	content: "";
	flex: none;
	width: 0.95rem;
	height: 0.95rem;
	background: currentColor;
	-webkit-mask: var(--pan-icon-out) center / contain no-repeat;
	mask: var(--pan-icon-out) center / contain no-repeat;
}

.pan-web-pick.is-clean .pan-web-parties li { color: var(--wp--custom--signal--safe); background: var(--wp--custom--signal--safe-tint); border-color: var(--wp--custom--signal--safe-edge); }
.pan-web-pick.is-clean .pan-web-parties li::before { -webkit-mask-image: var(--pan-icon-tick); mask-image: var(--pan-icon-tick); }
.pan-web-note { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }

.pan-web-live {
	padding: clamp(1.4rem, 3vw, 2rem);
	color: var(--wp--preset--color--bone);
	background:
		radial-gradient(ellipse 90% 80% at 100% 0%, rgba(7, 168, 173, 0.28), rgba(12, 91, 158, 0.14) 50%, transparent 78%),
		var(--wp--preset--color--night);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--depth--elev-3);
}

.pan-web-live > * { margin: 0; }
.pan-web-live .pan-pick-kicker { color: var(--wp--preset--color--brass); }
.pan-web-live-count { margin-top: 0.5rem !important; font-family: var(--wp--preset--font-family--newsreader); font-size: clamp(2.5rem, 6vw, 3.5rem); line-height: 1; color: var(--wp--preset--color--bone); font-variant-numeric: tabular-nums; }
.pan-web-live-unit { font-family: var(--wp--preset--font-family--inter); font-size: 1rem; color: var(--wp--preset--color--seal-label); }

/* pan-live.js marks this line safe (nothing sent elsewhere) or risk (something was), so the icon
   always tells the truth about the count beside it. */
.pan-web-live-other { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.6rem !important; font-weight: 600; color: var(--wp--preset--color--bone); }
.pan-web-live-other [data-receipt-external] { font-variant-numeric: tabular-nums; }
.pan-web-live-other:is(.is-safe, .is-risk) [data-receipt-external] { color: var(--pan-sig-dark); }

.pan-web-live-other:is(.is-safe, .is-risk)::before {
	content: "";
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
	background: var(--pan-sig-dark);
	-webkit-mask: var(--pan-i) center / contain no-repeat;
	mask: var(--pan-i) center / contain no-repeat;
}

.pan-web-live-note { margin-top: 0.9rem !important; font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--seal-label); }

/* ---------- First steps (tech support) --------------------------------------- */

ol.pan-firststeps { display: grid; margin: 1.1rem 0 0; padding: 0; list-style: none; counter-reset: pan-first; }

.pan-firststeps li {
	position: relative;
	margin: 0;
	padding: 0.85rem 0 0.85rem 3.2rem;
	color: var(--wp--preset--color--ink-2);
	counter-increment: pan-first;
}

.pan-firststeps li + li { border-top: 1px solid var(--wp--preset--color--border); }

/* The step numbers are small seals, like the page's other steps. */
.pan-firststeps li::before {
	content: counter(pan-first);
	position: absolute;
	left: 0;
	top: 0.7rem;
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.05rem;
	line-height: 1;
	color: var(--wp--preset--color--bone);
	background: var(--wp--preset--color--seal-deep);
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(194, 161, 77, 0.8), inset 0 0 0 4px var(--wp--preset--color--seal-deep), inset 0 0 0 5px rgba(241, 236, 223, 0.3);
}

.pan-firststeps strong { color: var(--wp--preset--color--headline); }
.pan-firststeps a { color: var(--wp--preset--color--seal-mid); }
.pan-help .pan-pick > .pan-badge { margin-bottom: 0.6rem; }

ol.pan-remote-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: pan-remote;
}

.pan-remote-strip li {
	position: relative;
	margin: 0;
	padding: 1rem 1.2rem 1.05rem 3.3rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-2);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--custom--depth--elev-1);
	counter-increment: pan-remote;
}

.pan-remote-strip li::before {
	content: counter(pan-remote);
	position: absolute;
	left: 1.05rem;
	top: 1rem;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--seal-deep);
	background: var(--wp--preset--color--seal-soft);
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(194, 161, 77, 0.55);
}

.pan-remote-strip b { display: block; color: var(--wp--preset--color--headline); }

@media (max-width: 720px) {
	ol.pan-remote-strip { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- The form on a guide band ------------------------------------------ */

.pan-guide-band .fluentform .ff-el-form-control { background: var(--wp--preset--color--surface); }
.pan-guide-band .fluentform .ff-el-group { margin-bottom: 1rem; }

/* The "if it's urgent" note in the tech support form: caution, icon and all. Until 14 Sep a
   terracotta left border. */
.fluentform p.pan-form-urgent {
	position: relative;
	margin: 0;
	padding: 0.85rem 1rem 0.85rem 2.9rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	background: var(--wp--custom--signal--caution-tint);
	border: 1px solid var(--wp--custom--signal--caution-edge);
	border-radius: var(--wp--custom--radius--md);
}

.fluentform p.pan-form-urgent::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 0.95rem;
	width: 1.2rem;
	height: 1.2rem;
	background: var(--wp--custom--signal--caution);
	-webkit-mask: var(--pan-icon-caution) center / contain no-repeat;
	mask: var(--pan-icon-caution) center / contain no-repeat;
}

/* ==========================================================================
   Hero motifs — small line drawings on the night scene
   ========================================================================== */

.pan-motif { display: block; width: 100%; height: auto; max-width: 28rem; justify-self: center; overflow: visible; }
.pan-motif * { transform-box: fill-box; transform-origin: center; }
.pm-glow { fill: rgba(7, 168, 173, 0.08); }

/* report */
.pan-motif-report .pm-paper { transform: rotate(-3deg); }
.pan-motif-report .pm-sheet { fill: var(--wp--preset--color--bone); }
.pan-motif-report .pm-ink { fill: var(--wp--preset--color--headline); }
.pan-motif-report .pm-soft { fill: rgba(16, 26, 58, 0.18); }
.pan-motif-report .pm-track { fill: rgba(16, 26, 58, 0.08); }
.pan-motif-report .pm-bar { transform-origin: left center; }
.pan-motif-report .pm-bar.is-high { fill: var(--wp--custom--signal--risk); }
.pan-motif-report .pm-bar.is-medium { fill: var(--wp--preset--color--brass); }
.pan-motif-report .pm-bar.is-low { fill: var(--wp--custom--signal--safe); }
.pan-motif-report .pm-stamp-disc { fill: var(--wp--preset--color--seal-deep); }
.pan-motif-report .pm-stamp-ring { fill: none; stroke: var(--wp--preset--color--brass); stroke-width: 2; }
.pan-motif-report .pm-stamp-inner { fill: none; stroke: rgba(244, 236, 216, 0.35); stroke-width: 1; }
.pan-motif-report .pm-stamp-text { fill: var(--wp--preset--color--bone); font-family: var(--wp--preset--font-family--newsreader); font-size: 18px; }

/* phone */
.pan-motif-phone .pm-device { fill: var(--wp--preset--color--seal-deep); stroke: rgba(188, 211, 232, 0.35); stroke-width: 1.5; }
.pan-motif-phone .pm-screen { fill: var(--wp--preset--color--night); }
.pan-motif-phone .pm-soft { fill: rgba(188, 211, 232, 0.42); }
.pan-motif-phone .pm-toggle { fill: var(--wp--preset--color--seal-mid); }
.pan-motif-phone .pm-knob { fill: var(--wp--preset--color--bone); transform: translateX(-12px); }
.pan-motif-phone .pm-lock-disc { fill: var(--wp--preset--color--brass); }
.pan-motif-phone .pm-lock-body { fill: var(--wp--preset--color--night); }
.pan-motif-phone .pm-lock-shackle { fill: none; stroke: var(--wp--preset--color--night); stroke-width: 4; stroke-linecap: round; }

/* linux */
.pan-motif-linux .pm-device { fill: var(--wp--preset--color--night); stroke: rgba(188, 211, 232, 0.3); stroke-width: 1.5; }
.pan-motif-linux .pm-bar { fill: var(--wp--preset--color--seal-deep); }
.pan-motif-linux .pm-dot { fill: rgba(244, 236, 216, 0.45); }
.pan-motif-linux .pm-prompt { fill: none; stroke: var(--wp--preset--color--brass); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pan-motif-linux .pm-code { fill: var(--wp--preset--color--seal-bright); transform-origin: left center; }
.pan-motif-linux .pm-ok { fill: rgba(7, 168, 173, 0.5); transform-origin: left center; }
.pan-motif-linux .pm-soft { fill: rgba(188, 211, 232, 0.35); transform-origin: left center; }
.pan-motif-linux .pm-cursor { fill: var(--wp--preset--color--bone); }
.pan-motif-linux .pm-branch { fill: none; stroke: rgba(188, 211, 232, 0.5); stroke-width: 2; }
.pan-motif-linux .pm-node { fill: var(--wp--preset--color--seal-deep); stroke: rgba(188, 211, 232, 0.6); stroke-width: 1.5; }
.pan-motif-linux .pm-node.is-root { fill: var(--wp--preset--color--brass); stroke: none; }
.pan-motif-linux .pm-node.is-lit { fill: var(--wp--preset--color--seal-bright); stroke: none; }

/* ai */
.pan-motif-ai .pm-route { fill: none; stroke: rgba(188, 211, 232, 0.22); stroke-width: 3; stroke-dasharray: 2 8; }
.pan-motif-ai .pm-flow { fill: none; stroke: var(--wp--custom--signal--risk-on-dark); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 14; }
.pan-motif-ai .pm-cloud-shape { fill: rgba(188, 211, 232, 0.12); stroke: rgba(188, 211, 232, 0.45); stroke-width: 2; }
.pan-motif-ai .pm-shield-shape { fill: var(--wp--preset--color--seal-deep); stroke: var(--wp--preset--color--brass); stroke-width: 2; }
.pan-motif-ai .pm-shield-tick { fill: none; stroke: var(--wp--preset--color--seal-bright); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.pan-motif-ai .pm-device { fill: var(--wp--preset--color--seal-deep); stroke: rgba(188, 211, 232, 0.4); stroke-width: 1.5; }
.pan-motif-ai .pm-screen { fill: var(--wp--preset--color--night); }
.pan-motif-ai .pm-base { fill: var(--wp--preset--color--seal-deep); stroke: rgba(188, 211, 232, 0.4); stroke-width: 1.5; }
.pan-motif-ai .pm-soft { fill: rgba(188, 211, 232, 0.4); }
.pan-motif-ai .pm-code { fill: var(--wp--preset--color--seal-bright); }
.pan-motif-ai .pm-orbit { fill: none; stroke: rgba(7, 168, 173, 0.35); stroke-width: 1.5; stroke-dasharray: 3 7; }
.pan-motif-ai .pm-orbit-dot { fill: var(--wp--preset--color--seal-bright); transform-box: view-box; transform-origin: 109px 158px; }

/* web */
.pan-motif-web .pm-leak { fill: none; stroke: rgba(255, 159, 148, 0.6); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 9; }
.pan-motif-web .pm-party { fill: var(--wp--preset--color--night); stroke: rgba(255, 159, 148, 0.75); stroke-width: 2; }
.pan-motif-web .pm-ring { fill: none; stroke: var(--wp--preset--color--brass); stroke-width: 2; }
.pan-motif-web .pm-ring-pulse { fill: none; stroke: rgba(194, 161, 77, 0.45); stroke-width: 2; }
.pan-motif-web .pm-device { fill: var(--wp--preset--color--bone); }
.pan-motif-web .pm-bar { fill: var(--wp--preset--color--seal-deep); }
.pan-motif-web .pm-dot { fill: rgba(244, 236, 216, 0.6); }
.pan-motif-web .pm-code { fill: var(--wp--preset--color--headline); }
.pan-motif-web .pm-soft { fill: rgba(16, 26, 58, 0.2); }
.pan-motif-web .pm-cta { fill: var(--wp--preset--color--terracotta); }
.pan-motif-web .pm-badge-disc { fill: var(--wp--preset--color--seal-bright); stroke: var(--wp--preset--color--night); stroke-width: 3; }
.pan-motif-web .pm-badge-text { fill: var(--wp--preset--color--night); font-family: var(--wp--preset--font-family--inter); font-size: 20px; font-weight: 700; }

/* support */
.pan-motif-support .pm-bubble-shape { fill: var(--wp--preset--color--seal-deep); stroke: rgba(188, 211, 232, 0.35); stroke-width: 1.5; }
.pan-motif-support .pm-bubble-shape.is-me { fill: var(--wp--preset--color--bone); stroke: none; }
.pan-motif-support .pm-bubble-them .pm-soft { fill: rgba(188, 211, 232, 0.45); }
.pan-motif-support .pm-bubble-me .pm-soft { fill: rgba(16, 26, 58, 0.22); }
.pan-motif-support .pm-risk { fill: var(--wp--custom--signal--risk-on-dark); }
.pan-motif-support .pm-fixed-disc { fill: var(--wp--preset--color--seal-bright); }
.pan-motif-support .pm-fixed-tick { fill: none; stroke: var(--wp--preset--color--night); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* trail: how a number gets out (the workshop page, 2 Oct 2026). Three sources feed one file; the file reaches a
   phone. The only words in it are the three sources and "pieced together"; the page beside it says the rest. */
.pan-motif-trail { max-width: 34rem; }
.pan-motif-trail .pm-leak { fill: none; stroke: rgba(255, 159, 148, 0.7); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 4 9; }
.pan-motif-trail .pm-card { fill: var(--wp--preset--color--seal-deep); stroke: rgba(188, 211, 232, 0.35); stroke-width: 1.5; }
.pan-motif-trail .pm-risk { fill: var(--wp--custom--signal--risk-on-dark); }
.pan-motif-trail .pm-label { fill: var(--wp--preset--color--bone); font-family: var(--wp--preset--font-family--inter); font-size: 12.5px; font-weight: 600; }
.pan-motif-trail .pm-sheet { fill: var(--wp--preset--color--bone); }
.pan-motif-trail .pm-ink { fill: var(--wp--preset--color--headline); }
.pan-motif-trail .pm-soft { fill: rgba(16, 26, 58, 0.2); }
.pan-motif-trail .pm-fill { fill: rgba(16, 26, 58, 0.5); transform-origin: left center; }
.pan-motif-trail .pm-number { fill: var(--wp--preset--color--headline); font-family: var(--wp--preset--font-family--inter); font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; }
.pan-motif-trail .pm-found { fill: var(--wp--preset--color--terracotta); transform-origin: left center; }
.pan-motif-trail .pm-caption { fill: var(--wp--preset--color--seal-label); font-family: var(--wp--preset--font-family--inter); font-size: 11.5px; font-weight: 500; }
.pan-motif-trail .pm-device { fill: var(--wp--preset--color--seal-deep); stroke: rgba(188, 211, 232, 0.4); stroke-width: 1.5; }
.pan-motif-trail .pm-screen { fill: var(--wp--preset--color--night); }
.pan-motif-trail .pm-notch { fill: rgba(188, 211, 232, 0.3); }
.pan-motif-trail .pm-bubble-shape { fill: var(--wp--preset--color--bone); }
.pan-motif-trail .pm-bubble .pm-soft { fill: rgba(16, 26, 58, 0.24); }
.pan-motif-trail .pm-link { fill: var(--wp--preset--color--seal-mid); }
.pan-motif-trail .pm-bubble-old { fill: rgba(188, 211, 232, 0.13); }
.pan-motif-trail .pm-input { fill: rgba(188, 211, 232, 0.07); stroke: rgba(188, 211, 232, 0.25); stroke-width: 1; }
.pan-motif-trail .pm-ping { fill: none; stroke: var(--wp--custom--signal--risk-on-dark); stroke-width: 1.5; }

/* The motion. Every loop starts from its finished drawing, so the first frame — the one a
   screenshot or a link preview catches — is always the whole picture. */
@media (prefers-reduced-motion: no-preference) {
	.pan-motif-report .pm-bar { animation: pm-grow 6s var(--wp--custom--motion--ease-standard) infinite; }
	.pan-motif-report .pm-stamp { animation: pm-thump 6s var(--wp--custom--motion--ease-standard) infinite; }

	.pan-motif-phone .pm-knob { animation: pm-knob 7s var(--wp--custom--motion--ease-standard) infinite; }
	.pan-motif-phone .pm-toggle { animation: pm-toggle 7s step-end infinite; }
	.pan-motif-phone .pm-lock-shackle { animation: pm-shackle 7s var(--wp--custom--motion--ease-standard) infinite; }

	.pan-motif-linux .pm-line rect { animation: pm-type 7s var(--wp--custom--motion--ease-decel) infinite; }
	.pan-motif-linux .pm-cursor { animation: pm-blink 1.1s step-end infinite; }
	.pan-motif-linux .pm-node.is-lit { animation: pm-pulse 3.5s ease-in-out infinite; }

	.pan-motif-ai .pm-flow { animation: pm-flow 1.4s linear infinite; }
	.pan-motif-ai .pm-shield { animation: pm-pulse 2.8s ease-in-out infinite; }
	.pan-motif-ai .pm-orbit-dot { animation: pm-orbit 5s linear infinite; }

	.pan-motif-web .pm-leak { animation: pm-flow 1.6s linear infinite; }
	.pan-motif-web .pm-ring-pulse { animation: pm-ring 2.4s ease-out infinite; }

	.pan-motif-support .pm-bubble-me { animation: pm-pop 6s var(--wp--custom--motion--ease-decel) infinite; }
	.pan-motif-support .pm-fixed { animation: pm-thump 6s var(--wp--custom--motion--ease-standard) infinite; }

	.pan-motif-trail .pm-leak { animation: pm-flow 1.6s linear infinite; }
	.pan-motif-trail .pm-leak:nth-child(2) { animation-delay: -0.5s; }
	.pan-motif-trail .pm-leak:nth-child(3) { animation-delay: -1s; }
	.pan-motif-trail :is(.pm-fill, .pm-found) { animation: pm-type 8s var(--wp--custom--motion--ease-decel) infinite; }
	.pan-motif-trail .pm-row:nth-child(2) .pm-found { animation-delay: 0.7s; }
	.pan-motif-trail .pm-row:nth-child(3) .pm-fill { animation-delay: 1.4s; }
	.pan-motif-trail .pm-bubble { animation: pm-pop 8s var(--wp--custom--motion--ease-decel) infinite; }
	.pan-motif-trail .pm-ping { animation: pm-ping 2.6s ease-out infinite; }
	.pan-motif-report .pm-row:nth-child(1) .pm-bar { animation-delay: 0.00s; }
	.pan-motif-report .pm-row:nth-child(2) .pm-bar { animation-delay: 0.12s; }
	.pan-motif-report .pm-row:nth-child(3) .pm-bar { animation-delay: 0.24s; }
	.pan-motif-report .pm-row:nth-child(4) .pm-bar { animation-delay: 0.36s; }
	.pan-motif-report .pm-row:nth-child(5) .pm-bar { animation-delay: 0.48s; }
	.pan-motif-report .pm-row:nth-child(6) .pm-bar { animation-delay: 0.60s; }
	.pan-motif-report .pm-row:nth-child(7) .pm-bar { animation-delay: 0.72s; }
	.pan-motif-report .pm-row:nth-child(8) .pm-bar { animation-delay: 0.84s; }
	.pan-motif-report .pm-row:nth-child(9) .pm-bar { animation-delay: 0.96s; }
	.pan-motif-phone .pm-switch:nth-child(1) :is(.pm-knob, .pm-toggle) { animation-delay: 0.00s; }
	.pan-motif-phone .pm-switch:nth-child(2) :is(.pm-knob, .pm-toggle) { animation-delay: 0.35s; }
	.pan-motif-phone .pm-switch:nth-child(3) :is(.pm-knob, .pm-toggle) { animation-delay: 0.70s; }
	.pan-motif-phone .pm-switch:nth-child(4) :is(.pm-knob, .pm-toggle) { animation-delay: 1.05s; }
	.pan-motif-phone .pm-switch:nth-child(5) :is(.pm-knob, .pm-toggle) { animation-delay: 1.40s; }
	.pan-motif-linux .pm-line:nth-child(1) rect { animation-delay: 0.00s; }
	.pan-motif-linux .pm-line:nth-child(2) rect { animation-delay: 0.45s; }
	.pan-motif-linux .pm-line:nth-child(3) rect { animation-delay: 0.90s; }
	.pan-motif-linux .pm-line:nth-child(4) rect { animation-delay: 1.35s; }
	.pan-motif-linux .pm-line:nth-child(5) rect { animation-delay: 1.80s; }
	.pan-motif-web .pm-leak:nth-child(1) { animation-delay: -0.25s; }
	.pan-motif-web .pm-leak:nth-child(2) { animation-delay: -0.50s; }
	.pan-motif-web .pm-leak:nth-child(3) { animation-delay: -0.75s; }
	.pan-motif-web .pm-leak:nth-child(4) { animation-delay: -1.00s; }
	.pan-motif-web .pm-leak:nth-child(5) { animation-delay: -1.25s; }
	.pan-motif-web .pm-leak:nth-child(6) { animation-delay: -1.50s; }
}

@keyframes pm-grow { 0%, 12% { transform: scaleX(1); } 18% { transform: scaleX(0.15); } 45%, 100% { transform: scaleX(1); } }
@keyframes pm-thump { 0%, 44% { transform: none; } 50% { transform: scale(1.12); } 58%, 100% { transform: none; } }
@keyframes pm-knob { 0%, 8% { transform: translateX(-12px); } 14% { transform: translateX(0); } 22%, 86% { transform: translateX(0); } 94%, 100% { transform: translateX(-12px); } }
@keyframes pm-toggle { 0% { fill: var(--wp--preset--color--seal-mid); } 11% { fill: var(--wp--custom--signal--risk); } 90% { fill: var(--wp--preset--color--seal-mid); } }
@keyframes pm-shackle { 0%, 60% { transform: none; } 66% { transform: translateY(-5px); } 74%, 100% { transform: none; } }
@keyframes pm-type { 0%, 6% { transform: scaleX(1); } 10% { transform: scaleX(0.02); } 40%, 100% { transform: scaleX(1); } }
@keyframes pm-blink { 50% { opacity: 0; } }
@keyframes pm-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.12); } }
@keyframes pm-flow { to { stroke-dashoffset: -36; } }
@keyframes pm-orbit { to { transform: rotate(360deg); } }
@keyframes pm-ring { 0% { transform: none; opacity: 0.8; } 100% { transform: scale(1.1); opacity: 0; } }
@keyframes pm-pop { 0%, 30% { transform: none; } 36% { transform: translateY(10px) scale(0.96); } 46%, 100% { transform: none; } }
@keyframes pm-ping { 0% { transform: none; opacity: 0.9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* In a service card the drawing holds still (its first frame is the whole picture) and plays
   while the card is hovered: six loops at once in a grid was restless. */
.pan-card-art .pm-glow { display: none; } /* the hero's soft backing box reads as a hard box at card size */

@media (prefers-reduced-motion: no-preference) {
	.pan-card .pan-card-art .pan-motif * { animation-play-state: paused; }
	.pan-card:hover .pan-card-art .pan-motif * { animation-play-state: running; }
}
