/*
 * Base layer — global typography, layout wrappers, shared components.
 * Loads after style.css and tokens.css. Blocks reuse these classes,
 * never redefine them (see CLAUDE.md §4).
 */

/* ---------- Global ---------- */

html {
	/* In-page anchors (TOC, #cta links) glide instead of jumping.
	   NOTE: overflow-x:clip must NOT sit on html — Chromium then refuses to
	   run smooth/programmatic scrolls entirely. The sideways-scroll guard
	   lives on #page below instead. */
	scroll-behavior: smooth;
}

#page {
	/* The page never scrolls sideways — wide content must live inside its
	   own scroller (.x31535511). clip (not hidden) keeps position:sticky
	   working for the header. */
	overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Anchor targets land BELOW the sticky header instead of underneath it
   (header is ~92px: topbar + purple bar), with a little breathing room. */
[id] {
	scroll-margin-top: 116px;
}

body {
	background: var(--sn-bg);
	color: var(--sn-text);
	font-family: var(--sn-font);
	font-size: var(--sn-fs-md);
	line-height: var(--sn-lh-body);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--sn-heading);
	line-height: var(--sn-lh-heading);
	font-family: var(--sn-font-display);
	font-weight: 700;
	clear: both;
}

h1 { font-size: var(--sn-fs-2xl); }
h2 { font-size: var(--sn-fs-xl); }
h3 { font-size: var(--sn-fs-lg); }

/* Section marker: vertical cyan→indigo rule in front of every content H2
   (deliberately NOT the NL skin's underline bar). */
.site-main h2 {
	position: relative;
	padding-left: var(--sn-sp-4);
}

.site-main h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: .16em;
	bottom: .16em;
	width: 5px;
	border-radius: 3px;
	background: linear-gradient(to bottom, var(--sn-pink), var(--sn-accent));
}

/* Eyebrow label above section headings (reference style) — Michael can drop
   it in a WYSIWYG as <p class="x299199f4">…</p> right before a heading. */
.x299199f4 {
	margin: 0 0 var(--sn-sp-1);
	color: var(--sn-primary);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .12em;
}

.x299199f4 + h2,
.x299199f4 + h3 {
	margin-top: 0;
}

a {
	color: var(--sn-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--sn-primary-hover);
	text-decoration: underline;
}

a:visited {
	color: var(--sn-accent);
}

img {
	max-width: 100%;
	height: auto;
}

/* Content lists: ONE compact hanging indent. Underscores ships
   `margin: 0 0 1.5em 3em` on top of the browser's ~40px padding-left —
   a double indent that wrecks lists inside callouts and flex layouts.
   Blocks that restyle their own lists (toc, faq, chips, sources…) set
   explicit margins/paddings with class selectors and are unaffected. */
ul,
ol {
	margin: 0 0 1.5em;
	padding-left: var(--sn-sp-6);
}

li > ul,
li > ol {
	margin: var(--sn-sp-1) 0 0;
}

::selection {
	background: var(--sn-accent);
	color: var(--sn-on-chrome);
}

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

.x33bb1dc9 {
	width: 100%;
	max-width: var(--sn-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--sn-sp-4);
	padding-right: var(--sn-sp-4);
}

.xbbfc2589 {
	width: 100%;
	max-width: var(--sn-content);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--sn-sp-4);
	padding-right: var(--sn-sp-4);
}

@media (min-width: 768px) {
	.x33bb1dc9,
	.xbbfc2589 {
		padding-left: var(--sn-sp-6);
		padding-right: var(--sn-sp-6);
	}
}

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

.x810bf6bb {
	position: relative;
	overflow: hidden;
	display: inline-block;
	padding: var(--sn-sp-3) var(--sn-sp-8);
	border: 0;
	border-radius: var(--sn-radius-sm);
	background: linear-gradient(135deg, var(--sn-primary), var(--sn-primary-hover));
	color: var(--sn-primary-dark);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-md);
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--sn-glow);
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

/* Sheen sweep across the CTA on hover. */
.x810bf6bb::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--sn-primary-dark) 30%, transparent) 50%, transparent 70%);
	transform: translateX(-150%);
	pointer-events: none;
}

.x810bf6bb:hover::before,
.x810bf6bb:focus::before {
	transform: translateX(150%);
	transition: transform .6s ease;
}

@media (prefers-reduced-motion: reduce) {
	.x810bf6bb::before {
		display: none;
	}
}

.x810bf6bb:hover,
.x810bf6bb:focus {
	background: var(--sn-primary-hover);
	color: var(--sn-primary-dark);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--sn-primary) 50%, transparent);
}

.x810bf6bb:visited {
	color: var(--sn-primary-dark);
}

.x89bb9b27 {
	background: var(--sn-purple);
	color: var(--sn-on-chrome);
	box-shadow: none;
}

.x89bb9b27:hover,
.x89bb9b27:focus {
	background: var(--sn-accent);
	color: var(--sn-on-chrome);
	box-shadow: none;
}

.x89bb9b27:visited {
	color: var(--sn-on-chrome);
}

/* ---------- Images (rendered by blocks) ---------- */

.xd8bf11ba {
	display: block;
	border-radius: var(--sn-radius);
	height: auto;
	max-width: 100%;
}

/* ---------- Shared table base ---------- */
/* Table blocks wrap their <table class="xdd68f8ce"> in .x31535511 — mandatory. */

.x31535511 {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.xdd68f8ce {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: var(--sn-fs-sm);
}

.xdd68f8ce th,
.xdd68f8ce td {
	padding: var(--sn-sp-3) var(--sn-sp-4);
	border: 0;
	text-align: left;
	vertical-align: top;
}

.xdd68f8ce thead th {
	background: transparent;
	color: var(--sn-text-muted);
	font-size: var(--sn-fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	white-space: nowrap;
	border-bottom: 2px solid var(--sn-heading);
}

.xdd68f8ce tbody tr {
	background: var(--sn-surface);
	transition: background .15s ease;
}

.xdd68f8ce tbody td,
.xdd68f8ce tbody th {
	border-bottom: 1px solid var(--sn-border);
}

.xdd68f8ce tbody tr:last-child td,
.xdd68f8ce tbody tr:last-child th {
	border-bottom: 0;
}

.xdd68f8ce tbody tr:hover {
	background: color-mix(in srgb, var(--sn-accent) 5%, var(--sn-surface));
}

/* WYSIWYG tables (auto-wrapped by sterrennacht_wrap_naked_tables) usually
   keep their header cells in the first body row — style them like a thead.
   Zebra offset: skip the header row when striping. */
.x683e21db tr:first-child th {
	background: transparent;
	color: var(--sn-text-muted);
	font-size: var(--sn-fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	white-space: nowrap;
	border-bottom: 2px solid var(--sn-heading);
}

.x683e21db td {
	min-width: 120px; /* keeps pasted tables readable before the wrap scrolls */
}

/* ---------- Panels ---------- */

.xf04aa7fc {
	background: var(--sn-surface);
	border: 1px solid var(--sn-border);
	border-radius: var(--sn-radius);
	padding: var(--sn-sp-6);
	box-shadow: var(--sn-shadow);
}

@media (min-width: 768px) {
	.xf04aa7fc {
		padding: var(--sn-sp-8);
	}
}

/* ---------- Site header (T1) ---------- */

.xaca35102 {
	position: sticky;
	top: 0;
	z-index: 100;
	background: linear-gradient(115deg, var(--sn-purple), var(--sn-purple-2));
	box-shadow: 0 2px 12px color-mix(in srgb, var(--sn-purple-deep) 25%, transparent);
}

.admin-bar .xaca35102 {
	top: 32px;
}

.xdf8caaa9 {
	background: color-mix(in srgb, var(--sn-purple-deep) 35%, transparent);
	font-size: var(--sn-fs-xs);
	color: color-mix(in srgb, var(--sn-on-chrome) 75%, transparent);
}

.xb6494025 {
	display: flex;
	align-items: center;
	gap: var(--sn-sp-2);
	padding-top: var(--sn-sp-1);
	padding-bottom: var(--sn-sp-1);
}

.xf645813a {
	display: inline-flex;
	align-items: center;
	padding: 0 var(--sn-sp-2);
	border: 1px solid var(--sn-gold);
	border-radius: var(--sn-radius-sm);
	color: var(--sn-gold);
	font-weight: 800;
}

.xbcb5bf1d {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sn-sp-4);
	padding-top: var(--sn-sp-3);
	padding-bottom: var(--sn-sp-3);
}

.xc39e399c {
	flex: 0 0 auto;
}

.xc08e2e9c {
	margin: 0;
	font-family: var(--sn-font-display);
	font-size: 1.625rem;
	font-weight: 700;
	white-space: nowrap;
}

.xc08e2e9c a {
	color: var(--sn-on-chrome);
	text-decoration: none;
}

.xc08e2e9c a::after {
	content: '.';
	color: var(--sn-primary);
}

.xaca35102 .custom-logo {
	max-height: 48px;
	width: auto;
}

.x7b6dd130 {
	position: relative;
	/* Underscores sets .main-navigation to width:100%; flex keeps the
	   hamburger pinned to the far right on mobile. */
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.x1a7378cb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--sn-sp-2);
	background: color-mix(in srgb, var(--sn-on-chrome) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--sn-on-chrome) 30%, transparent);
	border-radius: var(--sn-radius-sm);
	color: var(--sn-on-chrome);
	cursor: pointer;
}

.x7b6dd130 ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Mobile: dropdown panel (covers both wp_nav_menu ul and wp_page_menu div>ul). */
.x7b6dd130 > ul,
.x7b6dd130 > div > ul {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + var(--sn-sp-2));
	min-width: 220px;
	padding: var(--sn-sp-2);
	background: var(--sn-surface);
	border: 1px solid var(--sn-border);
	border-radius: var(--sn-radius);
	box-shadow: var(--sn-shadow);
}

.x7b6dd130.toggled > ul,
.x7b6dd130.toggled > div > ul {
	display: block;
}

/* Mobile-first: links live in the white dropdown panel — dark text. */
.x7b6dd130 li a {
	display: block;
	padding: var(--sn-sp-2) var(--sn-sp-3);
	border-radius: var(--sn-radius-sm);
	color: var(--sn-text);
	font-size: var(--sn-fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.x7b6dd130 li a:hover,
.x7b6dd130 li a:focus {
	background: var(--sn-purple-tint);
	color: var(--sn-heading);
	text-decoration: none;
}

.x7b6dd130 li.current-menu-item > a,
.x7b6dd130 li.current_page_item > a {
	color: var(--sn-accent);
}

/* Chevron on parent items (rotates up when open via .focus — navigation.js). */
.x7b6dd130 li.menu-item-has-children > a::after,
.x7b6dd130 li.page_item_has_children > a::after {
	content: '';
	display: inline-block;
	margin-left: var(--sn-sp-2);
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	padding: 2.5px;
	transform: translateY(-3px) rotate(45deg);
	transition: transform .15s ease;
}

.x7b6dd130 li.menu-item-has-children.focus > a::after,
.x7b6dd130 li.page_item_has_children.focus > a::after {
	transform: translateY(1px) rotate(225deg);
}

/* Mobile submenu: nested inline inside the white panel, indented, collapsed
   until the parent gets .focus (tap — handled by navigation.js/nav.js).
   Overrides underscores' absolute/-999em positioning. */
.x7b6dd130 ul ul {
	display: none;
	position: static;
	float: none;
	margin: var(--sn-sp-1) 0 var(--sn-sp-1) var(--sn-sp-3);
	padding: 0 0 0 var(--sn-sp-2);
	border-left: 2px solid color-mix(in srgb, var(--sn-accent) 25%, transparent);
	box-shadow: none;
}

.x7b6dd130 li.focus > ul {
	display: block;
	left: auto;
}

/* Underscores force-opens all nested uls when .toggled — collapse them back
   so the mobile submenu is a tap-to-expand accordion (chevron on parent). */
.x7b6dd130.toggled ul ul {
	display: none;
}

.x7b6dd130.toggled li.focus > ul {
	display: block;
}

.x7b6dd130 ul ul a {
	width: auto; /* underscores forces 200px */
	font-weight: 500;
}

@media (min-width: 768px) {
	.x1a7378cb {
		display: none;
	}

	.x7b6dd130 {
		justify-content: flex-start; /* Desktop: menu sits next to the logo. */
	}

	.x7b6dd130 > ul,
	.x7b6dd130 > div > ul {
		display: flex !important; /* Beat underscores' .main-navigation rules. */
		position: static;
		gap: var(--sn-sp-1);
		min-width: 0;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	/* Desktop: links sit on the purple header bar — white text. */
	.x7b6dd130 li a {
		color: color-mix(in srgb, var(--sn-on-chrome) 88%, transparent);
	}

	.x7b6dd130 li a:hover,
	.x7b6dd130 li a:focus {
		background: color-mix(in srgb, var(--sn-on-chrome) 14%, transparent);
		color: var(--sn-on-chrome);
	}

	.x7b6dd130 li.current-menu-item > a,
	.x7b6dd130 li.current_page_item > a {
		color: var(--sn-primary);
	}

	/* Desktop dropdown: white card under the parent item. Opens on hover,
	   keyboard focus, or click (.focus via nav.js). */
	.x7b6dd130 ul ul {
		display: none;
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		min-width: 230px;
		margin: 0;
		padding: var(--sn-sp-2);
		background: var(--sn-surface);
		border: 1px solid var(--sn-border);
		border-radius: var(--sn-radius);
		box-shadow: var(--sn-shadow);
	}

	/* Invisible bridge so the pointer can cross the gap without closing. */
	.x7b6dd130 ul ul::before {
		content: '';
		position: absolute;
		top: -12px;
		left: 0;
		right: 0;
		height: 12px;
	}

	.x7b6dd130 li:hover > ul,
	.x7b6dd130 li:focus-within > ul,
	.x7b6dd130 li.focus > ul {
		display: block;
		left: 0;
	}

	/* Dropdown links sit on a white card — dark text (overrides the
	   white-on-purple rule above). */
	.x7b6dd130 ul ul li a {
		color: var(--sn-text);
	}

	.x7b6dd130 ul ul li a:hover,
	.x7b6dd130 ul ul li a:focus {
		background: var(--sn-purple-tint);
		color: var(--sn-heading);
	}

	.x7b6dd130 ul ul li.current-menu-item > a,
	.x7b6dd130 ul ul li.current_page_item > a {
		color: var(--sn-accent);
	}

	/* Chevron opens on hover too. */
	.x7b6dd130 li.menu-item-has-children:hover > a::after,
	.x7b6dd130 li.page_item_has_children:hover > a::after {
		transform: translateY(1px) rotate(225deg);
	}
}

/* ---------- Site footer (T2) ---------- */

.xd25e3922 {
	margin-top: var(--sn-sp-16);
	background: var(--sn-purple-deep);
	color: color-mix(in srgb, var(--sn-on-chrome) 65%, transparent);
	font-size: var(--sn-fs-sm);
	/* Diagonal top edge (reference style) — content is padded below the cut. */
	clip-path: polygon(0 var(--sn-cut), 100% 0, 100% 100%, 0 100%);
	padding-top: var(--sn-cut);
}

.x914718bc {
	display: grid;
	gap: var(--sn-sp-8);
	padding: var(--sn-sp-12) 0;
}

.x5d70d0f6 {
	margin: 0 0 var(--sn-sp-3);
	color: var(--sn-on-chrome);
	font-family: var(--sn-font-display);
	font-size: var(--sn-fs-lg);
	font-weight: 700;
}

.x5d70d0f6::after {
	content: '.';
	color: var(--sn-primary);
}

.x3cea31eb {
	margin: 0 0 var(--sn-sp-3);
}

.x6888cee8 {
	margin: 0;
	font-size: var(--sn-fs-xs);
}

.xd0e7a686 {
	margin: 0 0 var(--sn-sp-3);
	color: var(--sn-on-chrome);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: var(--sn-fs-xs);
}

.xa69c3532 {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--sn-sp-2);
}

.xa69c3532 a {
	color: color-mix(in srgb, var(--sn-on-chrome) 65%, transparent);
	text-decoration: none;
}

.xa69c3532 a:hover,
.xa69c3532 a:focus {
	color: var(--sn-primary-hover);
	text-decoration: underline;
}

.x635ab619 {
	background: var(--sn-purple);
	color: color-mix(in srgb, var(--sn-on-chrome) 85%, transparent);
	font-size: var(--sn-fs-xs);
}

.x52616080 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sn-sp-2) var(--sn-sp-6);
	padding-top: var(--sn-sp-3);
	padding-bottom: var(--sn-sp-3);
}

.x79d87ee8,
.xec0b6c9c {
	margin: 0;
}

.xec0b6c9c {
	display: inline-flex;
	align-items: center;
	gap: var(--sn-sp-2);
}

@media (min-width: 768px) {
	.x914718bc {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}
}

/* ---------- Scroll-reveal animations (assets/js/reveal.js) ---------- */
/* The hidden initial state exists ONLY under .x54234509, which reveal.js adds
   after checking for IntersectionObserver + prefers-reduced-motion. Without
   JS nothing is ever hidden (compliance: no obscured content). */

.x54234509 .x18b371b6 {
	opacity: 0;
	transform: translateY(20px);
}

.x54234509 .x18b371b6.is-inview {
	opacity: 1;
	transform: none;
	transition: opacity .5s ease, transform .5s cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
	.x54234509 .x18b371b6 {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Utilities ---------- */

.x1e52fcee {
	color: var(--sn-text-muted);
	font-size: var(--sn-fs-sm);
}

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