/* ─────────────────────────────────────────────────────────────────────────
   WETRIPER — Core
   Design system: Bold & Editorial.
   One file covers: tokens, reset, global, header, footer, buttons, atoms.
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
	font-family: "Satoshi";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/satoshi-300.woff2") format("woff2");
}

@font-face {
	font-family: "Satoshi";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/satoshi-400.woff2") format("woff2");
}

@font-face {
	font-family: "Satoshi";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/satoshi-500.woff2") format("woff2");
}

@font-face {
	font-family: "Satoshi";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/satoshi-700.woff2") format("woff2");
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
	/* Colour palette */
	--c-bg: #fafafa;
	/* base background                           */
	--c-surface: #ffffff;
	/* card / panel backgrounds                  */
	--c-surface-2: #f2f2f2;
	/* subtle inset background                   */
	--c-ink: #121212;
	/* primary text & icons                      */
	--c-ink-2: #404040;
	/* secondary headings                        */
	--c-muted: #a6a6a6;
	/* captions, meta, placeholders              */
	--c-line: #ededed;
	/* borders, dividers                         */
	--c-accent: #121212;
	/* brand accent — monochrome                 */
	--c-accent-bg: #f2f2f2;
	/* subtle accent tint                        */
	--c-dark: #121212;
	/* dark sections, primary button bg          */
	--c-white: #ffffff;
	/* Transparency tokens */
	--c-white-80: #ffffffcc;
	--c-white-30: #ffffff4d;
	--c-white-10: #ffffff1a;
	--c-bg-trans: #fafafae6;
	--c-bg-50: #fafafa99;

	/* Typography */
	--font: "Satoshi", system-ui, sans-serif;

	/* Fluid type scale */
	--text-xs: 0.75rem;
	/* 12px */
	--text-sm: 0.875rem;
	/* 14px */
	--text-base: 1rem;
	/* 16px */
	--text-lg: 1.125rem;
	/* 18px */
	--text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	--text-3xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
	--text-4xl: clamp(2.8rem, 1.8rem + 4vw, 5rem);
	--text-5xl: clamp(3.2rem, 2rem + 5.5vw, 6.5rem);
	--text-hero: clamp(3.6rem, 2rem + 7vw, 9rem);

	/* Spacing */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 24px;
	--sp-6: 32px;
	--sp-7: 48px;
	--sp-8: 64px;
	--sp-9: 88px;
	--sp-10: 120px;

	/* Radii */
	--r-xs: 4px;
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 20px;
	--r-xl: 32px;
	--r-pill: 999px;

	/* Shadows */
	--shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.05);
	--shadow-card-hover: 0 4px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.06);

	/* Layout */
	--container: 1320px;
	--gutter: clamp(20px, 4vw, 48px);

	/* Header height (used by sticky sidebar) */
	--header-h: 72px;
}

/* ── Dark mode tokens ───────────────────────────────────────────────────── */
[data-theme="dark"] {
	--c-bg:         #111111;
	--c-surface:    #1c1c1c;
	--c-surface-2:  #272727;
	--c-ink:        #ededed;
	--c-ink-2:      #c0c0c0;
	--c-muted:      #ababab;
	--c-line:       #2c2c2c;
	--c-accent:     #ededed;
	--c-accent-bg:  #272727;
	/* --c-dark and --c-white intentionally NOT overridden —
	   they are used for always-dark sections (hero, CTA, primary btn)
	   and must stay #121212 / #ffffff in both modes. */
	--c-bg-trans:   #111111e6;
	--c-bg-50:      #11111199;
}

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

html {
	min-height: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100%;
	overflow-x: hidden;
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--font);
	font-size: var(--text-base);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.is-menu-open {
	overflow: hidden;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font);
	font-weight: 600;
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--c-ink);
}

h1 {
	font-size: var(--text-4xl);
}

h2 {
	font-size: var(--text-2xl);
}

h3 {
	font-size: var(--text-lg);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

h4 {
	font-size: var(--text-xl);
	font-weight: 500;
}

p {
	color: var(--c-muted);
	line-height: 1.65;
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
	width: 100%;
	appearance: none;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: var(--c-surface);
	color: var(--c-ink);
	padding: 0.9rem 1.1rem;
	transition: border-color 150ms, box-shadow 150ms;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--c-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
}

input:not([type="checkbox"]):not([type="radio"])::placeholder,
textarea::placeholder {
	color: var(--c-muted);
}

/* Select: custom chevron */
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.1rem center;
	padding-right: 2.6rem;
	cursor: pointer;
}

textarea {
	min-height: 8rem;
	resize: vertical;
	line-height: 1.65;
}

button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
	border-radius: var(--r-xs);
}

label {
	color: var(--c-ink);
	font-size: var(--text-sm);
	font-weight: 600;
}

/* Stack label text above its input — only for field labels, not for inline choices */
label:has(> input:not([type="checkbox"]):not([type="radio"])),
label:has(> select),
label:has(> textarea) {
	display: grid;
	gap: var(--sp-2);
}

.sr-only,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.site-frame {
	min-height: 100dvh;
}

.site-main {
	padding-block: 0 var(--sp-10);
}

.shell {
	width: min(var(--container), calc(100% - var(--gutter) * 2));
	margin-inline: auto;
}

/* Stack of sections with consistent vertical rhythm */
.page-sections {
	display: grid;
	gap: clamp(var(--sp-8), 8vw, var(--sp-10));
}

/* Two-column layout helper */
.layout-sidebar {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: 1fr 360px;
	align-items: start;
}

/* Three-column grid */
.grid-3 {
	display: grid;
	gap: var(--sp-5);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Four-column grid */
.grid-4 {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Flex row utility */
.row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-3);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: var(--c-bg);
}

.site-header__inner {
	display: flex;
	align-items: center;
	height: 100%;
	gap: var(--sp-6);
	justify-content: space-between;

}

/* Logo */
.site-branding__link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-branding__mark img {
	width: 148px;
	height: auto;
}

/* Nav */


.site-nav ul {

	display: flex;
	align-items: center;
	gap: clamp(var(--sp-4), 2.5vw, var(--sp-6));
	margin: 0;
	padding: 0;
	list-style: none;
	padding: 6px 16px 6px 16px;
	border-radius: var(--r-pill);
	border: 1px solid var(--c-line);
	background: var(--c-surface);
}

.site-nav a {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-ink);
	transition: color 150ms;

}

.site-nav a:hover {
	color: var(--c-ink);
}

/* Header CTA buttons */
.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	flex-shrink: 0;
}

/* ── Desktop account menu ────────────────────────────────────────────────── */
.account-menu {
	position: relative;
	list-style: none;
}

/* Remove default <details> marker */
.account-menu__toggle {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	cursor: pointer;
	list-style: none;
	padding: 4px 6px 4px 4px;
	border-radius: var(--r-pill);
	border: 1px solid var(--c-line);
	transition: border-color 150ms, background 150ms;
	background: var(--c-surface);
}

.account-menu__toggle::-webkit-details-marker {
	display: none;
}

.account-menu__toggle::marker {
	display: none;
}

.account-menu__toggle:hover {
	border-color: var(--c-ink);
	background: var(--c-surface);
}

.account-menu__avatar img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.account-menu__name {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-ink);
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Chevron */
.account-menu__toggle::after {
	content: '';
	display: block;
	width: 10px;
	height: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23444' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	transition: transform 200ms;
	flex-shrink: 0;
}

.account-menu[open]>.account-menu__toggle::after {
	transform: rotate(180deg);
}

/* Dropdown card */
.account-menu__dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 200px;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	padding: var(--sp-2);
	z-index: 200;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Profile row at top of dropdown */
.account-menu__profile {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-3);
	border-radius: var(--r-md);
	text-decoration: none;
	margin-bottom: var(--sp-1);
	border-bottom: 1px solid var(--c-line);
	padding-bottom: var(--sp-3);
}

.account-menu__avatar-large img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.account-menu__profile strong {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-ink);
}

/* Nav links inside dropdown */
.account-menu__link {
	display: block;
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--r-md);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--c-ink);
	text-decoration: none;
	transition: background 150ms;
}

.account-menu__link:hover {
	background: var(--c-surface);
}

/* Log out link — muted */
.account-menu__logout {
	color: var(--c-muted);
	margin-top: var(--sp-1);
	border-top: 1px solid var(--c-line);
	padding-top: var(--sp-3);
	border-radius: 0 0 var(--r-md) var(--r-md);
}

/* Dark mode toggle button inside dropdown */
.account-menu__theme-toggle {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--r-md);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--c-ink);
	transition: background 150ms;
}

.account-menu__theme-toggle:hover {
	background: var(--c-surface);
}

.account-menu__theme-toggle i {
	font-size: 1.1rem;
	line-height: 1;
	color: var(--c-muted);
	flex-shrink: 0;
}

/* Mobile toggle — hidden on desktop */
.site-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
}

.site-header__toggle i {
	font-size: 1.5rem;
	line-height: 1;
	color: var(--c-ink);
}

/* ── Desktop nav: sub-menu dropdown ─────────────────────────────────────── */
.site-nav .menu-item-has-children {
	position: relative;
}

/* Transparent bridge — fills the gap between the link and the dropdown
   so the mouse stays inside the <li> hover zone while crossing over */
.site-nav>ul>.menu-item-has-children::before {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 12px;
	/* must match or exceed the gap set on .sub-menu top */
}

/* Chevron on parent items */
.site-nav>ul>.menu-item-has-children>a::after {
	content: '';
	display: inline-block;
	width: 10px;
	height: 6px;
	margin-left: 5px;
	vertical-align: middle;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	transition: transform 200ms;
}

.site-nav>ul>.menu-item-has-children:hover>a::after {
	transform: rotate(180deg);
}

.site-nav .sub-menu {
	display: flex !important;
	/* override WP's block-level default */
	flex-direction: column;
	gap: 2px;
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	min-width: 180px;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	padding: var(--sp-2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms ease, transform 150ms ease;
	z-index: 200;
	list-style: none;
	margin: 0;
}

.site-nav .menu-item-has-children:hover .sub-menu,
.site-nav .menu-item-has-children:focus-within .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.site-nav .sub-menu a {
	display: block;
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--r-md);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--c-ink);
	white-space: nowrap;
	transition: background 150ms;
}

.site-nav .sub-menu a:hover {
	background: var(--c-surface);
	color: var(--c-ink);
}

/* ── Mobile nav panel ────────────────────────────────────────────────────── */
.mobile-nav-panel {
	display: none;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
	background: #121212;
	color: #ffffff;
	padding-block: var(--sp-8) var(--sp-6);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: var(--sp-7);
}

.site-footer__brand {
	display: grid;
	gap: var(--sp-4);
}

.site-footer__logo img {
	width: 120px;
}

/* ── Logo theme swap ─────────────────────────────────────────────────────── */
.logo--dark { display: none; }

[data-theme="dark"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark  { display: block; }

.site-footer__tagline {
	color: rgba(255, 255, 255, 0.5);
	font-size: var(--text-sm);
	line-height: 1.6;
}

.site-footer__col h4 {
	color: var(--c-white);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: var(--sp-4);
}

.site-footer__col ul {
	display: grid;
	gap: var(--sp-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__col a {
	color: rgba(255, 255, 255, 0.55);
	font-size: var(--text-sm);
	transition: color 150ms;
}

.site-footer__col a:hover {
	color: var(--c-white);
}

.site-footer__bottom {
	margin-top: var(--sp-7);
	padding-top: var(--sp-5);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	color: rgba(255, 255, 255, 0.35);
	font-size: var(--text-xs);
}

/* ── Footer dark-mode toggle ────────────────────────────────────────────── */
.footer-theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--r-pill);
	padding: 0.35rem 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	font-family: inherit;
	font-size: var(--text-xs);
	font-weight: 500;
	cursor: pointer;
	transition: border-color 150ms, color 150ms;
}

.footer-theme-toggle:hover {
	border-color: rgba(255, 255, 255, 0.4);
	color: rgba(255, 255, 255, 0.85);
}

.footer-theme-toggle i {
	font-size: 0.95rem;
	line-height: 1;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn,
.button,
.c-button,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: 0.7rem 1.4rem;
	border: 1.5px solid var(--c-dark);
	border-radius: var(--r-pill);
	background: var(--c-dark);
	color: var(--c-white);
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background 150ms, border-color 150ms, color 150ms, transform 150ms;
}

.btn:hover,
.button:hover,
.c-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--c-accent);
	border-color: var(--c-accent);
	color: var(--c-white);
}

/* Secondary / ghost button */
.btn--secondary,
.button-secondary,
.c-button--secondary {
	background: transparent;
	border-color: var(--c-line);
	color: var(--c-ink);
}

.btn--secondary:hover,
.button-secondary:hover,
.c-button--secondary:hover {
	background: var(--c-surface);
	border-color: var(--c-ink);
	color: var(--c-ink);
}

/* Accent button */
.btn--accent {
	background: var(--c-accent);
	border-color: var(--c-accent);
}

.btn--accent:hover {
	background: #333333;
	border-color: #333333;
}

/* White button — for use on dark/image backgrounds */
.btn--white {
	background: var(--c-white);
	border-color: var(--c-white);
	color: var(--c-dark);
}

.btn--white:hover {
	background: var(--c-bg);
	border-color: var(--c-bg);
	color: var(--c-dark);
}

/* Ghost-white button — outline on dark/image backgrounds */
.btn--ghost-white {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.4);
	color: var(--c-white);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.btn--ghost-white:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--c-white);
}

/* Large button */
.btn--lg {
	min-height: 52px;
	padding: 0.9rem 2rem;
	font-size: var(--text-base);
}

/* Icon button */
.btn--icon {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: var(--r-pill);
}

/* ── Eyebrow label ───────────────────────────────────────────────────────── */
p.eyebrow,
span.eyebrow,
.eyebrow {
	display: inline-block;
	width: fit-content;
	padding: 0.25rem 0.75rem;
	background: var(--c-white);
	border-radius: var(--r-pill);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--c-muted);
}

/* ── Chip / tag ─────────────────────────────────────────────────────────── */
.chip {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-surface);
	color: var(--c-ink-2);
	font-size: var(--text-xs);
	font-weight: 500;
	white-space: nowrap;
}

.chip--active {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-white);
}

.chip--accent {
	background: var(--c-accent-bg);
	border-color: var(--c-accent);
	color: var(--c-accent);
}

/* Chip row */
.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

/* ── Section heading ─────────────────────────────────────────────────────── */
.section-head {
	display: grid;
	gap: var(--sp-3);
	max-width: 52rem;
}

.section-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-5);
	max-width: none;
}

/* ── Notice / alert ─────────────────────────────────────────────────────── */
.catm-notice {
	padding: var(--sp-4) var(--sp-5);
	border-radius: var(--r-md);
	font-size: var(--text-sm);
	font-weight: 500;
}

.catm-notice-success {
	background: #EAF7F0;
	color: #1A6B40;
	border: 1px solid #B6E4CC;
}

.catm-notice-error {
	background: #FEF2F2;
	color: #991B1B;
	border: 1px solid #FECACA;
}

/* ── Dark mode overrides for hardcoded semantic colours ─────────────────── */
[data-theme="dark"] .catm-notice-success {
	background: #052e16;
	color: #86efac;
	border-color: #166534;
}
[data-theme="dark"] .catm-notice-error {
	background: #2d0c0c;
	color: #fca5a5;
	border-color: #991b1b;
}
[data-theme="dark"] .catm-status--new      { background: #0c1a2e; color: #7dd3fc; }
[data-theme="dark"] .catm-status--pending  { background: #2d2006; color: #fde68a; }
[data-theme="dark"] .catm-status--approved { background: #052e16; color: #86efac; }
[data-theme="dark"] .catm-status--rejected { background: #2d0c0c; color: #fca5a5; }

/* ── Dark mode: eyebrow pill ─────────────────────────────────────────────── */
/* In dark mode --c-white stays #fff, making eyebrows glow white on dark bg.
   Replace with the subtle dark surface. */
[data-theme="dark"] p.eyebrow,
[data-theme="dark"] span.eyebrow,
[data-theme="dark"] .eyebrow {
	background: var(--c-surface-2);   /* #272727 — visible on #111 page bg   */
	color: var(--c-muted);
}

/* CTA banner is already dark (#121212); keep the eyebrow pill readable there */
[data-theme="dark"] .cta-banner .eyebrow {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.55);
}

/* ── Dark mode: button fixes ─────────────────────────────────────────────── */
/* --c-accent flips to #ededed (near-white) in dark mode.
   Any button that uses it as a background needs dark text, not white. */

/* Primary button hover → accent bg becomes light (#ededed), text must go dark */
[data-theme="dark"] .btn:hover,
[data-theme="dark"] .button:hover,
[data-theme="dark"] button[type="submit"]:hover,
[data-theme="dark"] input[type="submit"]:hover {
	color: var(--c-dark);
}

/* Secondary button hover keeps its own light ink text — restore it after the
   broad override above (same specificity, but later in file = cascade wins) */
[data-theme="dark"] .btn--secondary:hover,
[data-theme="dark"] .button-secondary:hover,
[data-theme="dark"] .c-button--secondary:hover {
	color: var(--c-ink);   /* --c-ink = #ededed in dark mode → readable on --c-surface */
}

/* Accent-variant button: light bg in dark mode — must use dark text */
[data-theme="dark"] .btn--accent {
	color: var(--c-dark);
}
[data-theme="dark"] .btn--accent:hover {
	color: var(--c-dark);
}

/* ── Dark mode: CTA banner ───────────────────────────────────────────────── */
/* --c-dark (#121212) is almost identical to --c-bg (#111111) in dark mode —
   the card blends into the page. Use surface + border to restore separation. */
[data-theme="dark"] .cta-banner {
	background: var(--c-surface);      /* #1c1c1c — clearly distinct from page */
	border: 1px solid var(--c-line);
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.nav-links,
.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-top: var(--sp-7);
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: var(--sp-3);
	border: 1.5px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface);
	color: var(--c-ink);
	font-size: var(--text-sm);
	font-weight: 500;
	transition: background 150ms, border-color 150ms;
}

.page-numbers:hover {
	border-color: var(--c-ink);
}

.page-numbers.current {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-white);
}

.page-numbers.dots {
	border: none;
	background: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.layout-sidebar {
		grid-template-columns: 1fr;
	}

	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-6);
	}
}

@media (max-width: 768px) {
	:root {
		--header-h: 64px;
	}

	/* Hide desktop nav + header actions; keep panel's copy visible */
	.site-nav,
	.site-header>.site-header__inner>.site-header__actions {
		display: none;
	}

	.site-header__toggle {
		display: flex;
		margin-left: auto;
	}

	/* Mobile panel — fixed overlay below the sticky header */
	.mobile-nav-panel {
		display: block;
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		height: calc(100dvh - var(--header-h));
		background: var(--c-bg);
		z-index: 99;
		overflow-y: auto;
		opacity: 0;
		pointer-events: none;
		transform: translateY(-6px);
		transition: opacity 220ms ease, transform 220ms ease;
		border-top: 1px solid var(--c-line);
	}

	.mobile-nav-panel__inner {
		padding: var(--sp-5) var(--sp-5) var(--sp-8);
		display: flex;
		flex-direction: column;
		gap: var(--sp-6);
	}

	/* Mobile nav links */
	.mobile-nav ul {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
	}

	.mobile-nav li {
		border: none;
	}

	/* Parent items with children: row so link + chevron sit side by side */
	.mobile-nav>ul>.menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.mobile-nav>ul>li>a {
		flex: 1;
		display: block;
		padding-block: var(--sp-4);
		font-size: var(--text-base);
		font-weight: 500;
		color: var(--c-ink);
	}

	/* Sub-menu toggle button — sits to the right of the link */
	.sub-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		color: var(--c-muted);
		flex-shrink: 0;
		transition: transform 200ms;
	}

	.menu-item-has-children.is-expanded>.sub-menu-toggle {
		transform: rotate(180deg);
	}

	/* Mobile sub-menu — spans full width on its own row */
	.mobile-nav .sub-menu {
		display: none;
		list-style: none;
		margin: 0;
		padding: 0 0 var(--sp-3) var(--sp-4);
		flex-basis: 100%;
	}

	.mobile-nav .menu-item-has-children.is-expanded>.sub-menu {
		display: flex;
		flex-direction: column;
	}

	.mobile-nav .sub-menu li {
		border: none;
	}

	.mobile-nav .sub-menu a {
		display: block;
		padding-block: var(--sp-2);
		font-size: var(--text-sm);
		color: var(--c-muted);
	}

	.mobile-nav .sub-menu a:hover {
		color: var(--c-ink);
	}

	/* ── Mobile account section ──────────────────────────────────────────── */
	.mobile-account {
		display: flex;
		flex-direction: column;
		gap: var(--sp-3);
		padding-top: var(--sp-2);
		border-top: 1px solid var(--c-line);
	}

	/* Logged-out: two full-width buttons */
	.mobile-account>.btn {
		width: 100%;
		justify-content: center;
	}

	/* Logged-in: profile row */
	.mobile-account__profile {
		display: flex;
		align-items: center;
		gap: var(--sp-3);
		text-decoration: none;
		padding-bottom: var(--sp-3);
		border-bottom: 1px solid var(--c-line);
	}

	.mobile-account__avatar {
		width: 40px;
		height: 40px;
		border-radius: 50%;
		object-fit: cover;
		flex-shrink: 0;
	}

	.mobile-account__name {
		font-size: var(--text-base);
		font-weight: 600;
		color: var(--c-ink);
	}

	/* Flat link list */
	.mobile-account__links {
		display: flex;
		flex-direction: column;
	}

	.mobile-account__link {
		display: block;
		padding-block: var(--sp-3);
		font-size: var(--text-base);
		font-weight: 500;
		color: var(--c-ink);
		border-bottom: 1px solid var(--c-line);
		text-decoration: none;
	}

	.mobile-account__link:last-child {
		border-bottom: none;
	}

	.mobile-account__logout {
		color: var(--c-muted);
		font-weight: 400;
	}

	/* Mobile panel open state */
	.mobile-nav-panel.is-open {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	/* Prevent scroll behind panel */
	body.has-mobile-menu-open {
		overflow: hidden;
	}

	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	.section-head--row {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}