/* ==========================================================================
   Components — buttons, badges, cards, header, footer, forms, accordion
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	padding: 13px 26px;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.2px;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
	border-radius: var(--radius-s);
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
		transform 0.12s ease, box-shadow 0.18s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.btn--primary {
	background: var(--gold-500);
	color: var(--on-accent);
	box-shadow: 0 4px 14px rgb(133 111 78 / 0.24);
}

.btn--primary:hover {
	background: var(--gold-600);
	color: var(--on-accent);
	box-shadow: 0 8px 20px rgb(133 111 78 / 0.32);
}

.btn--secondary {
	background: transparent;
	color: var(--text);
	border-color: var(--border-strong);
}

.btn--secondary:hover {
	background: rgb(12 20 38 / 0.05);
	border-color: var(--gold-500);
	color: var(--text);
}

.btn--ghost {
	background: transparent;
	color: var(--text-muted);
	padding-inline: 12px;
}

.btn--ghost:hover {
	color: var(--text);
	background: rgb(12 20 38 / 0.04);
}

.btn--on-light {
	background: var(--navy-700);
	color: #fff;
}

.btn--on-light:hover {
	background: var(--navy-600);
	color: #fff;
}

.btn--sm {
	min-height: 44px;
	padding: 11px 22px;
	font-size: 0.84rem;
}

.btn--lg {
	min-height: 48px;
	padding: 13px 26px;
	font-size: 0.875rem;
}

.btn--block {
	width: 100%;
}

.btn .icon {
	width: 18px;
	height: 18px;
	flex: none;
}

/* --------------------------------------------------------------------------
   Badges / pills
   -------------------------------------------------------------------------- */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: var(--radius-full);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1;
	background: var(--accent-soft);
	color: var(--gold-600);
	border: 1px solid var(--border-gold);
}

.badge--solid {
	background: var(--gold-500);
	color: var(--on-accent);
	border-color: transparent;
}

.badge--neutral {
	background: rgb(12 20 38 / 0.05);
	color: var(--text-muted);
	border-color: var(--border);
}

.badge .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(255 255 255 / 0.85);
	backdrop-filter: saturate(150%) blur(14px);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	border-bottom: 1px solid rgb(12 20 38 / 0.045);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-stuck {
	border-bottom-color: rgb(12 20 38 / 0.045);
	background: rgb(255 255 255 / 0.96);
}

.topbar {
	background: var(--sand-50);
	border-bottom: 1px solid var(--border);
	font-size: max(12px, var(--step--2));
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--text-muted);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-m);
	min-height: 34px;
	text-align: center;
}

.topbar strong {
	color: var(--gold-600);
	font-weight: 700;
}

.topbar__sep {
	display: none;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--gold-500);
	flex: none;
}

@media (min-width: 768px) {
	.topbar__sep {
		display: block;
	}
}

.header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-m);
	min-height: var(--header-h);
	padding-block: var(--space-2xs);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text);
	flex: none;
}

.brand img {
	max-height: 54px;
	width: auto;
	object-fit: contain;
}

@media (min-width: 1024px) {
	.brand img {
		max-height: 76px;
	}
}

.site-footer .brand img {
	max-height: 104px;
}

.brand__mark {
	width: 38px;
	height: 38px;
	flex: none;
}

.brand__text {
	display: grid;
	line-height: 1;
}

.brand__name {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.06rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.brand__sub {
	font-size: 0.62rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--gold-600);
	margin-top: 4px;
}

/* Primary nav */
.nav {
	display: none;
}

@media (min-width: 1024px) {
	.nav {
		display: block;
		margin-inline-start: var(--space-l);
	}
}

.nav ul {
	display: flex;
	align-items: center;
	gap: var(--space-s);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 1320px) {
	.nav ul {
		gap: var(--space-m);
	}
}

.nav a {
	display: block;
	position: relative;
	padding: 10px 2px;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--text-muted);
	text-decoration: none;
}

.nav a:hover {
	color: var(--text);
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	background: var(--foil);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--ease-out);
}

.nav a:hover::after,
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav .current-menu-parent > a::after {
	transform: scaleX(1);
}

.nav .current-menu-item > a,
.nav .current_page_item > a {
	color: var(--text);
}

/* Sub menu */
.nav .sub-menu {
	position: absolute;
	top: calc(100% - 4px);
	left: -16px;
	display: grid;
	gap: 2px;
	min-width: 220px;
	padding: 10px;
	background: var(--surface-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-l);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav li {
	position: relative;
}

.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav .sub-menu a {
	padding: 9px 12px;
	border-radius: var(--radius-s);
	text-transform: none;
	letter-spacing: 0;
	font-size: var(--step--1);
}

.nav .sub-menu a::after {
	display: none;
}

.nav .sub-menu a:hover {
	background: rgb(12 20 38 / 0.05);
}

/* Header actions */
.header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
	margin-inline-start: auto;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--text-muted);
	border-radius: var(--radius-full);
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
	background: rgb(12 20 38 / 0.06);
	color: var(--text);
}

.icon-btn svg {
	width: 21px;
	height: 21px;
}

.cart-count {
	position: absolute;
	top: 5px;
	right: 4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	background: var(--gold-500);
	color: var(--on-accent);
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
	border-radius: var(--radius-full);
	font-variant-numeric: tabular-nums;
}

.header__cta {
	display: none;
}

@media (min-width: 1200px) {
	.header__cta {
		display: inline-flex;
	}
}

.nav-toggle {
	display: inline-flex;
}

@media (min-width: 1024px) {
	.nav-toggle {
		display: none;
	}
}

.nav-toggle__label {
	display: none;
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (min-width: 480px) {
	.nav-toggle {
		width: auto;
		padding-inline: 14px;
		gap: 8px;
	}

	.nav-toggle__label {
		display: inline;
	}
}

/* Mobile drawer */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: grid;
	grid-template-rows: auto auto auto;
	align-content: start;
	background: var(--surface);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.3s var(--ease-out);
	overflow-y: auto;
}

.mobile-nav.is-open {
	transform: translateX(0);
	visibility: visible;
}

.mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	min-height: var(--header-h);
	padding-inline: clamp(1rem, 5vw, 3rem);
	border-bottom: 1px solid var(--border);
}

.mobile-nav__body {
	padding: var(--space-s) clamp(1rem, 5vw, 3rem) var(--space-m);
}

.mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
}

.mobile-nav > .mobile-nav__body > ul > li + li {
	border-top: 1px solid var(--border);
}

.mobile-nav a {
	display: block;
	padding: 16px 0;
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.mobile-nav a:hover {
	color: var(--gold-600);
}

.mobile-nav .sub-menu {
	padding-inline-start: var(--space-s);
	padding-block-end: var(--space-s);
}

.mobile-nav .sub-menu a {
	padding: 9px 0;
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 400;
	color: var(--text-muted);
}

.mobile-nav__foot {
	padding: var(--space-m) clamp(1rem, 5vw, 3rem) var(--space-xl);
	border-top: 1px solid var(--border);
	display: grid;
	gap: var(--space-2xs);
}

.mobile-nav__foot .btn {
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: center;
	padding-inline: var(--space-s);
	min-height: 48px;
}

/* The contact address is long; let it size down rather than overflow. */
.mobile-nav__foot .btn--secondary {
	font-size: 0.84rem;
}

/* Header search panel */
.site-search {
	border-top: 1px solid var(--border);
	background: var(--surface-3);
	padding-block: var(--space-s);
}

.site-search[hidden] {
	display: none;
}

.search-form {
	display: flex;
	gap: var(--space-2xs);
}

.search-form input[type="search"] {
	flex: 1;
}

.search-form .btn {
	flex: none;
}

/* --------------------------------------------------------------------------
   Feature / value cards
   -------------------------------------------------------------------------- */

.card {
	position: relative;
	display: grid;
	gap: var(--space-xs);
	align-content: start;
	padding: var(--space-l);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-l);
	transition: border-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.card--hover:hover {
	border-color: var(--border-gold);
	transform: translateY(-3px);
	box-shadow: var(--shadow-m);
}

.card h3 {
	font-size: var(--step-1);
}

.card p {
	color: var(--text-muted);
	font-size: var(--step-0);
}

.card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-block-end: var(--space-2xs);
	border-radius: var(--radius-m);
	background: var(--accent-soft);
	border: 1px solid var(--border-gold);
	color: var(--gold-600);
}

.card__icon svg {
	width: 24px;
	height: 24px;
}

/* Numbered step card */
.step {
	position: relative;
	padding-block-start: var(--space-l);
	border-top: 1px solid var(--border);
}

.step__num {
	font-family: var(--font-display);
	font-size: var(--step-2);
	font-weight: 800;
	line-height: 1;
	margin-block-end: var(--space-xs);
}

.step h3 {
	font-size: var(--step-1);
	margin-block-end: 8px;
}

.step p {
	color: var(--text-muted);
}

/* Stat */
.stats {
	display: grid;
	gap: var(--space-m);
	grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}

.stat {
	display: grid;
	gap: 6px;
	padding: var(--space-m) var(--space-s);
	text-align: center;
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	background: var(--surface);
}

.stat__value {
	font-family: var(--font-display);
	font-size: var(--step-3);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.stat__label {
	font-size: var(--step--1);
	color: var(--text-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Accordion (FAQ) — native details/summary
   -------------------------------------------------------------------------- */

.faq {
	display: grid;
	gap: var(--space-2xs);
	max-width: 820px;
	margin-inline: auto;
}

.faq details {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	transition: border-color 0.2s ease;
}

.faq details[open] {
	border-color: var(--border-gold);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	padding: var(--space-m);
	font-family: var(--font-body);
	font-size: var(--step-1);
	font-weight: 700;
	letter-spacing: -0.01em;
	cursor: pointer;
	list-style: none;
	min-height: 56px;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--gold-600);
	border-bottom: 2px solid var(--gold-600);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.22s var(--ease-out);
}

.faq details[open] summary::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.faq__body {
	padding: 0 var(--space-m) var(--space-m);
	color: var(--text-muted);
	max-width: 68ch;
}

.faq__body > * + * {
	margin-block-start: var(--space-s);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field {
	display: grid;
	gap: 7px;
}

.field label,
.form-label {
	font-size: var(--step--1);
	font-weight: 600;
	color: var(--text);
}

.input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	font-size: max(16px, var(--step-0));
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-s);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

textarea {
	min-height: 130px;
	resize: vertical;
	line-height: 1.6;
}

select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8b4c9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	padding-right: 42px;
}

::placeholder {
	color: var(--text-subtle);
	opacity: 1;
}

.input:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: none;
	border-color: var(--gold-500);
	background: rgb(12 20 38 / 0.05);
	box-shadow: 0 0 0 3px rgb(201 162 39 / 0.18);
}

input[aria-invalid="true"],
.woocommerce-invalid input {
	border-color: var(--danger);
}

.field__hint {
	font-size: var(--step--1);
	color: var(--text-muted);
}

.field__error {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--step--1);
	color: var(--danger);
}

/* Newsletter inline form */
.subscribe {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
}

.subscribe input {
	flex: 1 1 220px;
}

.subscribe .btn {
	flex: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--sand-50);
	color: var(--text);
	border-top: 1px solid var(--border);
	padding-block-start: var(--space-3xl);
	margin-block-start: auto;
}

.footer__top {
	display: grid;
	gap: var(--space-2xl);
	padding-block-end: var(--space-2xl);
}

@media (min-width: 900px) {
	.footer__top {
		grid-template-columns: 1.4fr repeat(3, 1fr);
		gap: var(--space-xl);
	}
}

.footer__brand {
	display: grid;
	gap: var(--space-s);
	align-content: start;
	max-width: 42ch;
}

.footer__brand p {
	color: var(--text-muted);
	font-size: var(--step--1);
}

.footer-col h3 {
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-600);
	margin-block-end: var(--space-s);
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
}

/* Padded so each row clears the 44px touch target on phones. */
.footer-col a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding-block: 6px;
	color: var(--text-muted);
	text-decoration: none;
	font-size: var(--step-0);
}

.footer-col a:hover {
	color: var(--gold-600);
}

.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.footer-contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	color: var(--text-muted);
	font-size: var(--step--1);
}

.footer-contact svg {
	width: 18px;
	height: 18px;
	color: var(--gold-600);
	flex: none;
}

.footer-contact a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: var(--text-muted);
	text-decoration: none;
}

.footer-contact a:hover {
	color: var(--gold-600);
}

.socials {
	display: flex;
	gap: 8px;
}

.socials a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	color: var(--text-muted);
}

.socials a:hover {
	border-color: var(--gold-500);
	color: var(--gold-600);
}

.socials svg {
	width: 18px;
	height: 18px;
}

.disclaimer {
	padding: var(--space-m);
	border: 1px solid var(--border);
	border-left: 3px solid var(--gold-600);
	border-radius: var(--radius-m);
	background: var(--surface);
	color: var(--text-muted);
	font-size: var(--step--1);
	line-height: 1.6;
}

.disclaimer > * + * {
	margin-block-start: var(--space-2xs);
}

.disclaimer strong {
	color: var(--text);
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: var(--space-s);
	padding-block: var(--space-m);
	margin-block-start: var(--space-xl);
	border-top: 1px solid var(--border);
	font-size: var(--step--1);
	color: var(--text-subtle);
}

.footer__bottom ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-s);
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer__bottom a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
}

.footer__bottom a {
	color: var(--text-subtle);
	text-decoration: none;
}

.footer__bottom a:hover {
	color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Age / research-use gate

   The brand mark is a transparent PNG in navy and gold, so the panel stays
   light — on a dark panel the molecule and "PEPTIDES" would disappear. The
   scrim carries the dark weight instead. Panel colours are scoped variables
   below, so flipping to a dark panel is a four-line change if the client
   supplies a reversed logo.
   -------------------------------------------------------------------------- */

.gate {
	--gate-panel: var(--surface);
	--gate-row: var(--sand-50);
	--gate-row-border: var(--border);
	--gate-text: var(--text);
	--gate-muted: var(--text-muted);

	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: var(--space-s);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: rgb(8 16 28 / 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.gate[hidden] {
	display: none;
}

.gate__panel {
	width: min(480px, 100%);
	margin: auto;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	background: var(--gate-panel);
	border: 1px solid var(--border-gold);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-l);
	text-align: center;
	display: grid;
	gap: var(--space-s);
	justify-items: center;
	color: var(--gate-text);
}

/* Brand ------------------------------------------------------------------ */

.gate__brand img {
	display: block;
	width: auto;
	height: clamp(76px, 16vw, 104px);
}

.gate__rule {
	display: block;
	width: 46px;
	height: 2px;
	border-radius: var(--radius-full);
	background: var(--gold-500);
}

.gate__title {
	margin: 0;
	font-size: var(--step-2);
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--gate-text);
}

.gate__sub {
	margin: 0;
	max-width: 40ch;
	font-size: var(--step--1);
	color: var(--gate-muted);
}

/* Checkboxes -------------------------------------------------------------- */

.gate__checks {
	display: grid;
	gap: var(--space-2xs);
	width: 100%;
	margin-block-start: var(--space-2xs);
}

.gate__check {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 12px;
	padding: 14px 16px;
	text-align: start;
	background: var(--gate-row);
	border: 1px solid var(--gate-row-border);
	border-radius: var(--radius-s);
	cursor: pointer;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.gate__check:hover {
	border-color: var(--border-gold);
}

/* Hidden from sight, not from the keyboard. */
.gate__check input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.gate__box {
	width: 20px;
	height: 20px;
	margin-block-start: 1px;
	flex: none;
	background: var(--surface);
	border: 1.5px solid var(--text-subtle);
	border-radius: 4px;
	position: relative;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Tick drawn as a rotated L so it needs no icon font or SVG. */
.gate__box::after {
	content: "";
	position: absolute;
	inset-block-start: 2px;
	inset-inline-start: 6px;
	width: 5px;
	height: 10px;
	border: solid var(--on-accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0.4);
	opacity: 0;
	transition: opacity 0.15s ease, transform 0.15s var(--ease-out);
}

.gate__check input:checked + .gate__box {
	background: var(--gold-500);
	border-color: var(--gold-500);
}

.gate__check input:checked + .gate__box::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

.gate__check input:focus-visible + .gate__box {
	outline: 2px solid var(--gold-500);
	outline-offset: 3px;
}

.gate__check:has(input:checked) {
	background: var(--accent-soft);
	border-color: var(--border-gold);
}

.gate__label {
	font-size: var(--step--1);
	line-height: 1.45;
	color: var(--gate-muted);
}

.gate__label strong {
	color: var(--gate-text);
	font-weight: 700;
}

/* Actions ----------------------------------------------------------------- */

.gate__error {
	margin: 0;
	min-height: 0;
	font-size: var(--step--1);
	color: var(--danger);
}

.gate__error:empty {
	display: none;
}

.gate__actions {
	display: grid;
	gap: var(--space-2xs);
	width: 100%;
}

/* Kept focusable and announced via aria-disabled rather than the disabled
   attribute, so keyboard users can reach it and hear why it will not proceed. */
.gate__enter[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

.gate__leave {
	color: var(--gate-muted);
	border: 1px solid var(--border);
}

.gate__leave:hover {
	border-color: var(--text-subtle);
}

.gate__fine {
	margin: 0;
	font-size: var(--step--2, 0.75rem);
	line-height: 1.5;
	color: var(--text-subtle);
}

.gate__fine a {
	color: var(--gold-600);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
	.gate__check,
	.gate__box,
	.gate__box::after {
		transition: none;
	}
}

/* Laptop viewports around 1366x768 leave under 600px of usable height once the
   browser chrome is deducted. The panel scrolls either way, but a gate whose
   Enter button starts below the fold reads as broken — so compact it instead. */
@media (max-height: 720px) {
	.gate__panel {
		gap: var(--space-2xs);
		padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
	}

	.gate__brand img {
		height: 66px;
	}

	.gate__rule {
		margin-block: 2px;
	}

	.gate__title {
		font-size: var(--step-1);
	}

	.gate__check {
		padding: 11px 14px;
	}

	.gate__checks {
		margin-block-start: 0;
	}
}

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.notice {
	display: flex;
	gap: var(--space-xs);
	padding: var(--space-s) var(--space-m);
	border-radius: var(--radius-m);
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--text-muted);
	font-size: var(--step--1);
}

.notice--success {
	border-color: rgb(53 181 134 / 0.4);
	background: var(--success-soft);
}

.notice--error {
	border-color: rgb(226 102 111 / 0.4);
	background: var(--danger-soft);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
	display: flex;
	justify-content: center;
	margin-block-start: var(--space-2xl);
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	margin: 0 3px;
	border: 1px solid var(--border);
	border-radius: var(--radius-s);
	color: var(--text-muted);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.pagination .page-numbers:hover {
	border-color: var(--gold-500);
	color: var(--text);
}

.pagination .page-numbers.current {
	background: var(--gold-500);
	border-color: var(--gold-500);
	color: var(--on-accent);
	font-weight: 700;
}

/* Footer newsletter result message (see inc/newsletter.php). */
.vp-news-ok { color: var(--success); margin-block-start: var(--space-2xs); }
.vp-news-err { color: #b4472f; margin-block-start: var(--space-2xs); }
