/*
Theme Name: byeurope
Theme URI: https://byeurope.eu/
Author: Light Solutions ApS
Author URI: https://lightsolutions.dk/
Description: Hand-built classic theme for byeurope.eu — the registry of European manufacturers, marked by origin. Search-first, hallmark-driven, no build step, no page builder.
Version: 0.1.7
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: byeurope
Tags: one-column, custom-menu, translation-ready
*/

/* =========================================================
   1. Design tokens (design plan §2)
   ========================================================= */
:root {
	--ink: #182430;        /* primary text, dark surfaces — ledger ink */
	--paper: #F6F6F2;      /* page background — cool paper white */
	--surface: #FFFFFF;    /* cards, search field, panels */
	--slate: #5A6B7A;      /* secondary text, meta, self-declared marks */
	--brass: #A8842C;      /* THE accent — hallmarks, verified, precious */
	--verified: #2E6B4F;   /* document-verified/audited state only */
	--line: #DDDED8;       /* hairlines, dividers, card borders */

	--font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	--radius: 2px;
	--shadow-float: 0 8px 24px rgba(24, 36, 48, 0.08);
	--maxw: 1200px;
	--section-pad: clamp(56px, 8vw, 96px);
}

/* =========================================================
   2. Self-hosted fonts (GDPR — never Google CDN)
   ========================================================= */
@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/bricolage-grotesque-600.woff2') format('woff2');
}
@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/bricolage-grotesque-700.woff2') format('woff2');
}
@font-face {
	font-family: 'Hanken Grotesk';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/hanken-grotesk-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Hanken Grotesk';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/hanken-grotesk-500.woff2') format('woff2');
}
@font-face {
	font-family: 'Hanken Grotesk';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/hanken-grotesk-600.woff2') format('woff2');
}
@font-face {
	font-family: 'Spline Sans Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/spline-sans-mono-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Spline Sans Mono';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/spline-sans-mono-500.woff2') format('woff2');
}

/* =========================================================
   3. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brass); }
p a, .entry-content a { text-decoration: underline; text-underline-offset: 2px; }

::selection { background: rgba(168, 132, 44, 0.22); }

h1, h2, h3 {
	font-family: var(--font-display);
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	font-weight: 600;
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }

input, textarea, button, select { font-family: var(--font-body); font-size: 1rem; }
input::placeholder { color: rgba(90, 107, 122, 0.55); }

/* Visible focus: 2px ink outline + brass offset ring (quality floor) */
:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px rgba(168, 132, 44, 0.35);
	border-radius: var(--radius);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--ink);
	color: var(--paper);
	padding: 10px 18px;
	border-radius: var(--radius);
}
.skip-link:focus {
	left: 12px;
	top: 12px;
	color: var(--paper);
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate);
}

.mono { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--slate); }

/* =========================================================
   4. Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(246, 246, 242, 0.94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 10px 24px;
	min-height: 68px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
}
.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--ink);
}
.site-brand:hover { color: var(--ink); }
.site-brand svg { display: block; width: 30px; height: 30px; }
.site-brand__word {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}
.site-brand__word .tld { color: var(--slate); }

.site-nav { margin-left: auto; }
.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	align-items: center;
}
.site-nav a {
	font-size: 0.90625rem;
	font-weight: 500;
	color: var(--slate);
	padding: 6px 2px;
	display: inline-block;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta > a {
	color: var(--ink);
	font-weight: 600;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	padding: 7px 16px;
	transition: background 150ms ease-out, color 150ms ease-out;
}
.site-nav .nav-cta > a:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   5. Buttons
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 26px;
	background: var(--ink);
	color: var(--paper);
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.96875rem;
	cursor: pointer;
	transition: background 150ms ease-out;
}
.btn:hover { background: #24354a; color: var(--paper); }
.btn--ghost {
	background: transparent;
	color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   6. Hero (search-first, Phase-0 behavior)
   ========================================================= */
.hero {
	padding: clamp(64px, 9vw, 116px) 24px clamp(56px, 8vw, 96px);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border-bottom: 1px solid var(--line);
}
.hero h1 { margin: 0; max-width: 840px; }
.hero__sub {
	margin: 18px 0 0;
	font-size: 1.15rem;
	color: var(--slate);
}

.searchbar {
	position: relative;
	width: 100%;
	max-width: 720px;
	margin-top: 42px;
}
.searchbar__field {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 64px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-float);
	padding: 8px 8px 8px 20px;
}
.searchbar__field svg { flex: none; }
.searchbar__field input {
	flex: 1;
	min-width: 60px;
	height: 100%;
	border: none;
	outline: none;
	background: transparent;
	font-size: 1.0625rem;
	color: var(--ink);
}
.searchbar__field input:focus-visible { outline: none; box-shadow: none; }
.searchbar__field:focus-within {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	box-shadow: var(--shadow-float), 0 0 0 5px rgba(168, 132, 44, 0.25);
}
.searchbar .btn { flex: none; }

.hero__marksrow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 18px;
}
.hero__registry {
	margin: 30px 0 0;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	color: var(--slate);
}
.hero__registry strong { color: var(--ink); font-weight: 500; }

/* =========================================================
   7. Hallmarks — the signature element
   Text chips (per HallmarkRow set); fill encodes evidence:
   outline+slate = self-declared · brass fill = document-verified
   · verified-green fill = audited
   ========================================================= */
.hallmark {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid var(--slate);
	border-radius: var(--radius);
	background: transparent;
	color: var(--slate);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.65625rem;
	letter-spacing: 0.09em;
	line-height: 1;
	white-space: nowrap;
	cursor: help;
}
.hallmark--verified {
	background: var(--brass);
	border-color: var(--brass);
	color: var(--ink);
}
.hallmark--audited {
	background: var(--verified);
	border-color: var(--verified);
	color: #F6F9F9;
}
.hallmark--lg { padding: 8px 14px; font-size: 0.71875rem; }

/* Tooltip — where honesty lives. Focusable, aria-describedby. */
.hallmark__tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	width: max-content;
	max-width: 280px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.8125rem;
	letter-spacing: 0;
	line-height: 1.45;
	text-transform: none;
	white-space: normal;
	text-align: left;
	padding: 10px 12px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-float);
	opacity: 0;
	visibility: hidden;
	transition: opacity 150ms ease-out;
	z-index: 70;
	pointer-events: none;
}
.hallmark__tip strong { font-weight: 600; }
.hallmark__tip .tip-level {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #C9CFCB;
	margin-top: 4px;
}
.hallmark:hover .hallmark__tip,
.hallmark:focus .hallmark__tip,
.hallmark:focus-visible .hallmark__tip {
	opacity: 1;
	visibility: visible;
}

/* The one animation: hallmark stamp-in (design plan §5) */
@keyframes byeu-stamp {
	0%   { transform: scale(1.15); opacity: 0; }
	70%  { transform: scale(0.97); opacity: 1; }
	100% { transform: scale(1);    opacity: 1; }
}
.js .stamp-row .hallmark { opacity: 0; }
.js .stamp-row.is-stamped .hallmark {
	animation: byeu-stamp 120ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.js .stamp-row.is-stamped .hallmark:nth-child(1) { animation-delay: 0ms; }
.js .stamp-row.is-stamped .hallmark:nth-child(2) { animation-delay: 60ms; }
.js .stamp-row.is-stamped .hallmark:nth-child(3) { animation-delay: 120ms; }
.js .stamp-row.is-stamped .hallmark:nth-child(4) { animation-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.js .stamp-row .hallmark { opacity: 1; }
}

/* =========================================================
   8. Sections
   ========================================================= */
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--surface {
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.section__lede {
	color: var(--slate);
	max-width: 58ch;
	margin: 12px 0 0;
}
.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

/* How the marks work */
.marks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 32px;
	margin-top: 44px;
}
.mark-card p {
	margin: 14px 0 0;
	font-size: 0.90625rem;
	line-height: 1.55;
	color: var(--slate);
}
.mark-card .mark-card__evidence {
	margin: 10px 0 0;
	font-family: var(--font-mono);
	font-size: 0.71875rem;
	color: var(--slate);
}

.evidence-strip {
	margin-top: 52px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px 28px;
	align-items: center;
	background: var(--surface);
}
.evidence-strip__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	color: var(--slate);
}
.evidence-strip__item .is-current { color: var(--ink); }
.evidence-strip .marks-link {
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.marks-figure { margin: 0; flex: none; width: min(340px, 100%); }
.marks-figure img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}
.marks-figure figcaption {
	margin-top: 6px;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	color: var(--slate);
}
.marks-intro { display: flex; gap: 44px; align-items: flex-start; flex-wrap: wrap; }
.marks-intro > div { flex: 1; min-width: 300px; }

/* Manufacturer CTA */
.mfg-cta {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 36px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
}
.mfg-cta img {
	flex: none;
	width: 124px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}
.mfg-cta__body { flex: 1; min-width: 280px; }
.mfg-cta__body h2 { font-size: 1.55rem; margin: 0; }
.mfg-cta__body p { margin: 8px 0 0; color: var(--slate); }
.mfg-cta .btn { flex: none; }

/* =========================================================
   9. Waitlist (Phase 0)
   ========================================================= */
.waitlist { scroll-margin-top: 90px; }
.waitlist__panel {
	max-width: 640px;
	margin: 36px auto 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(24px, 4vw, 40px);
}
.waitlist__panel .field { margin-top: 20px; }
.waitlist__panel label {
	display: block;
	font-weight: 600;
	font-size: 0.9375rem;
	margin-bottom: 6px;
}
.waitlist__panel .hint {
	font-weight: 400;
	color: var(--slate);
	font-size: 0.8125rem;
}
.waitlist__panel input[type="email"],
.waitlist__panel input[type="text"] {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font-size: 1rem;
}
.waitlist__panel input:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 1px;
	box-shadow: 0 0 0 5px rgba(168, 132, 44, 0.25);
}

.role-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.role-toggle input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.role-toggle label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--slate);
	font-weight: 500;
	cursor: pointer;
	text-align: center;
	padding: 8px 10px;
	transition: border-color 150ms ease-out, background 150ms ease-out, color 150ms ease-out;
}
.role-toggle input[type="radio"]:checked + label {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
	font-weight: 600;
}
.role-toggle input[type="radio"]:focus-visible + label {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px rgba(168, 132, 44, 0.35);
}

.consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.875rem;
	color: var(--slate);
}
.consent input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--ink);
}
.consent label { font-weight: 400; margin: 0; font-size: 0.875rem; }

/* Honeypot — hidden from humans, present for bots */
.hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.waitlist__status {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: var(--radius);
	font-size: 0.9375rem;
	display: none;
}
.waitlist__status.is-ok {
	display: block;
	border: 1px solid var(--verified);
	color: var(--verified);
	background: rgba(46, 107, 79, 0.06);
}
.waitlist__status.is-err {
	display: block;
	border: 1px solid #9c3a2e;
	color: #9c3a2e;
	background: rgba(156, 58, 46, 0.06);
}

/* =========================================================
   10. Content pages (page.php, marks)
   ========================================================= */
.page-plain { padding-top: clamp(48px, 6vw, 80px); padding-bottom: var(--section-pad); }
.entry-content { max-width: 720px; }
.entry-content p, .entry-content ul, .entry-content ol { color: var(--ink); }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }

.marks-page__intro { max-width: 720px; }
.marks-page__answer {
	max-width: 720px;
	font-size: 1.15rem;
	line-height: 1.55;
	margin: 16px 0 0;
}
.mark-article {
	border-top: 1px solid var(--line);
	padding: 36px 0;
	display: grid;
	grid-template-columns: minmax(150px, 200px) 1fr;
	gap: 24px 40px;
}
.mark-article:last-of-type { border-bottom: 1px solid var(--line); }
.mark-article h3 { margin: 14px 0 0; font-size: 1.25rem; }
.mark-article .legal {
	font-size: 0.9375rem;
	color: var(--slate);
	border-left: 2px solid var(--line);
	padding-left: 14px;
	margin: 14px 0 0;
}
.mark-article .mono-row { margin-top: 12px; }
@media (max-width: 640px) {
	.mark-article { grid-template-columns: 1fr; }
}

.levels-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.levels-table th, .levels-table td {
	text-align: left;
	padding: 12px 14px;
	border: 1px solid var(--line);
	vertical-align: top;
	font-size: 0.9375rem;
}
.levels-table th {
	font-family: var(--font-mono);
	font-size: 0.71875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate);
	background: var(--surface);
}
.levels-table td:first-child { white-space: nowrap; }

/* =========================================================
   11. Footer
   ========================================================= */
.site-footer {
	background: var(--ink);
	color: var(--paper);
}
.site-footer__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 56px 24px 28px;
}
.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 48px;
	justify-content: space-between;
}
.site-footer__brand { max-width: 320px; }
.site-footer__brand .site-brand { color: var(--paper); }
.site-footer__brand .site-brand:hover { color: var(--paper); }
.site-footer__brand .tld { color: #8FA0AE; }
.site-footer__brand p {
	margin: 14px 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #9FB0BE;
}
.site-footer nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.site-footer nav a { font-size: 0.84375rem; color: #C6D0D9; }
.site-footer nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__bottom {
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid rgba(246, 246, 242, 0.16);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
	font-family: var(--font-mono);
	font-size: 0.71875rem;
	color: #8FA0AE;
}
.site-footer__bottom .neutrality { max-width: 64ch; line-height: 1.5; }

/* =========================================================
   12. 404 / index
   ========================================================= */
.error-404 { text-align: center; padding-top: clamp(72px, 10vw, 140px); }
.error-404 .mono { margin-top: 20px; }
.error-404 .searchbar { margin: 40px auto 0; }

.archive-list article {
	border-top: 1px solid var(--line);
	padding: 28px 0;
}
.archive-list article:last-child { border-bottom: 1px solid var(--line); }
.archive-list h2 { font-size: 1.35rem; margin: 0 0 8px; }

/* =========================================================
   13. Small screens
   ========================================================= */
@media (max-width: 720px) {
	.site-header__inner { min-height: 60px; }
	.searchbar__field { height: 56px; padding-left: 14px; }
	.searchbar .btn { height: 42px; padding: 0 18px; }
	.evidence-strip .marks-link { margin-left: 0; }
	.mfg-cta { padding: 24px; }
}

/* ==========================================================================
   Specimen index — archival material plates as clickable industry votes
   ========================================================================== */
.specimen-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	margin-top: 40px;
}
.specimen {
	display: block;
	padding: 0 0 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 2px;
	text-align: left;
	cursor: pointer;
	transition: border-color 150ms ease-out;
}
.specimen:hover { border-color: var(--slate); }
.specimen:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 1px var(--brass);
}
.specimen img {
	display: block;
	width: 100%;
	height: auto;
	border-bottom: 1px solid var(--line);
	margin-bottom: 12px;
}
.specimen__meta {
	display: block;
	padding: 0 14px;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: var(--slate);
}
.specimen__name {
	display: block;
	padding: 2px 14px 0;
	font-weight: 600;
	font-size: 1rem;
	color: var(--ink);
}
.specimen-note {
	margin-top: 20px;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	color: var(--slate);
}
@media (max-width: 900px) {
	.specimen-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
	.specimen-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.specimen__name { font-size: 0.9375rem; }
}
/* Square specimen replaces the old portrait in the manufacturer CTA */
.mfg-cta img { border: 1px solid var(--line); }

/* ==========================================================================
   Company profile — the certificate
   ========================================================================== */
.wrap--narrow { max-width: 780px; }
.disclaimer {
	border: 1px solid var(--line);
	border-left: 3px solid var(--brass);
	background: var(--surface);
	border-radius: 2px;
	padding: 18px 22px;
	margin-bottom: 40px;
	font-size: 0.9375rem;
	color: var(--slate);
}
.disclaimer__label {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink);
	margin-bottom: 8px;
}
.disclaimer__claim { margin-top: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink); }
.btn--small { padding: 8px 16px; font-size: 0.9375rem; }
.profile__head h1 { margin-bottom: 6px; }
.profile__place { color: var(--slate); margin-bottom: 36px; }
.profile__cat { text-transform: capitalize; }
.provenance {
	border: 1px solid var(--line);
	border-radius: 2px;
	background: var(--surface);
	padding: 24px 28px;
	margin-bottom: 44px;
}
.provenance dl { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.provenance dl div { display: flex; gap: 12px; align-items: baseline; }
.provenance dt {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--slate);
	min-width: 110px;
	flex-shrink: 0;
}
.provenance dd { font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink); }
.prov-src { color: var(--slate); font-size: 0.78rem; }
.profile__body h2 { margin-bottom: 14px; }
.profile__offers { margin: 18px 0 0 1.2em; }
.profile__offers li { margin-bottom: 8px; }
.profile__basis {
	margin-top: 18px;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--slate);
}
.profile__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 640px) {
	.provenance dl { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Category layer — index grid + category page (ledger)
   ========================================================================== */
.specimen-grid--cats { grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
a.specimen--link { text-decoration: none; }
.specimen--link.is-waitlist img { filter: grayscale(0.85) opacity(0.75); }
.specimen__count {
	display: block;
	padding: 6px 14px 0;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--slate);
}
.catpage__plate {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	border: 1px solid var(--line);
	border-radius: 2px;
	margin-bottom: 40px;
}
.catpage__intro { margin-bottom: 16px; }
.catpage__stats {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	color: var(--slate);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 14px 0;
	margin: 28px 0 36px;
}
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ledger__card {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 2px;
	padding: 18px 20px;
	text-decoration: none;
	transition: border-color 150ms ease-out;
}
.ledger__card:hover { border-color: var(--slate); }
.ledger__card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 1px var(--brass); }
.ledger__name { display: block; font-weight: 600; color: var(--ink); }
.ledger__meta { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate); margin: 4px 0 8px; }
.ledger__snip { display: block; font-size: 0.9375rem; color: var(--slate); line-height: 1.45; }
.catpage__teaser { margin-top: 24px; }
.catpage__teaser .btn { margin-right: 12px; }
@media (max-width: 900px) { .specimen-grid--cats { grid-template-columns: repeat(3, 1fr); } .ledger { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .specimen-grid--cats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Claim + manage flow — /claim/, /claim-verify/, /manage/
   Sober single-page forms; reuses .field / .consent / .hp-field patterns.
   ========================================================================== */
.claimpage__meta { margin: -18px 0 24px; }
.claimpage__marks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.claimpage__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.managepage__meta { margin: -18px 0 32px; }
.managepage__meta a { text-decoration: underline; text-underline-offset: 2px; }

.claimform,
.manageform {
	max-width: 640px;
	margin-top: 32px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(24px, 4vw, 40px);
}
.claimform .field,
.manageform .field { margin-top: 20px; }
.claimform label,
.manageform label {
	display: block;
	font-weight: 600;
	font-size: 0.9375rem;
	margin-bottom: 6px;
}
.claimform .hint,
.manageform .hint {
	font-weight: 400;
	color: var(--slate);
	font-size: 0.8125rem;
}
.claimform input[type="text"],
.claimform input[type="email"],
.claimform input[type="password"],
.manageform input[type="text"],
.manageform textarea {
	width: 100%;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font-size: 1rem;
}
.claimform input[type="text"],
.claimform input[type="email"],
.claimform input[type="password"],
.manageform input[type="text"] { height: 48px; }
.manageform textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.claimform input:focus-visible,
.manageform input:focus-visible,
.manageform textarea:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 1px;
	box-shadow: 0 0 0 5px rgba(168, 132, 44, 0.25);
}

.manageform__section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.manageform__section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.manageform__section h2 { font-size: 1.35rem; margin-bottom: 4px; }
.manageform__section > .hint { display: block; margin: 0 0 8px; }

/* Product slots (edit form) */
.product-slot {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 4px 18px 18px;
	margin-top: 20px;
}
.product-slot legend {
	padding: 0 6px;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate);
}
.product-slot__imgrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-slot__imgrow .prod-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	flex: none;
}
.product-slot__imgrow .prod-thumb.is-empty { visibility: hidden; }
.prod-upload-label { cursor: pointer; margin-bottom: 0; font-weight: 600; }
.prod-img-status { flex: 1; min-width: 120px; }

/* Badge checkboxes with legal one-liners */
.badge-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	padding: 14px 16px;
	margin-top: 12px;
}
.badge-row input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--ink);
}
.badge-row label { margin: 0; font-weight: 400; cursor: pointer; }
.badge-row__name { display: block; font-weight: 600; font-size: 0.9375rem; }
.badge-row__legal { display: block; margin-top: 4px; font-size: 0.8125rem; line-height: 1.5; color: var(--slate); }
.declare-row { margin-top: 24px; }
.declare-row label strong { font-weight: 600; color: var(--ink); }
.empco-note {
	margin: 12px 0 0;
	border-left: 2px solid var(--brass);
	padding-left: 12px;
	line-height: 1.5;
}

/* Sign-in tabs — password (optional) vs. emailed link */
.signin-tabs {
	display: flex;
	gap: 8px;
	margin-top: 32px;
	max-width: 640px;
	border-bottom: 1px solid var(--line);
}
.signin-tab {
	appearance: none;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 10px 4px;
	margin-bottom: -1px;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate);
	cursor: pointer;
}
.signin-tab.is-active {
	color: var(--ink);
	border-bottom-color: var(--brass);
}
.signin-tab:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 1px;
}
.signin-tabs + div .claimform,
div[role="tabpanel"] .claimform { margin-top: 20px; }

/* Inline status line (claim + manage), mirrors .waitlist__status */
.form-status {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: var(--radius);
	font-size: 0.9375rem;
	display: none;
}
.form-status.is-ok {
	display: block;
	border: 1px solid var(--verified);
	color: var(--verified);
	background: rgba(46, 107, 79, 0.06);
}
.form-status.is-err {
	display: block;
	border: 1px solid #9c3a2e;
	color: #9c3a2e;
	background: rgba(156, 58, 46, 0.06);
}

/* Claimed profile — public page */
.claimed-line { margin: 0 0 28px; }
.claimed-line a { text-decoration: underline; text-underline-offset: 2px; }
.profile__marks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 36px; }
.profile__about p { margin: 0 0 1em; }
.profile__body + .profile__body { margin-top: 40px; }
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin-top: 18px;
}
.product-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 18px;
}
.product-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin-bottom: 12px;
}
.product-card__name { font-size: 1rem; margin: 0 0 6px; }
.product-card__desc { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--slate); }
@media (max-width: 560px) {
	.products-grid { grid-template-columns: 1fr 1fr; }
}

/* Category SEO layer: crumbs, answer, FAQ, methodology, adjacent */
.crumbs { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); margin-bottom: 28px; }
.crumbs a { color: var(--slate); text-decoration: underline; }
.catpage__answer { font-size: 1.125rem; line-height: 1.6; max-width: 720px; margin-bottom: 20px; color: var(--ink); }
.catpage__faq { margin-top: 56px; max-width: 760px; }
.catpage__faq h2 { margin-bottom: 18px; }
.faq-item { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq-item p { padding: 0 0 16px; color: var(--slate); max-width: 700px; }
.catpage__method { margin-top: 48px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); padding: 22px 26px; max-width: 760px; }
.catpage__method p { color: var(--slate); font-size: 0.9375rem; margin-top: 10px; }
.catpage__adjacent { margin-top: 64px; }
.specimen-grid--adjacent { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
a.profile__cat { text-transform: capitalize; text-decoration: underline; color: var(--slate); }
@media (max-width: 700px) { .specimen-grid--adjacent { grid-template-columns: repeat(2, 1fr); } }

/* For-manufacturers landing: steps + tier cards */
.steps { margin: 24px 0 0 1.2em; max-width: 720px; }
.steps li { margin-bottom: 14px; line-height: 1.55; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.tier { border: 1px solid var(--line); border-radius: 2px; background: var(--surface); padding: 26px 26px 30px; display: flex; flex-direction: column; }
.tier--free { border-color: var(--brass); }
.tier.is-coming { opacity: 0.85; }
.tier__badge { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); }
.tier--free .tier__badge { color: var(--brass); }
.tier h3 { margin: 10px 0 4px; }
.tier__price { font-family: var(--font-mono); font-size: 0.9375rem; color: var(--ink); margin-bottom: 16px; }
.tier__price span { color: var(--slate); font-size: 0.8125rem; }
.tier ul { margin: 0 0 22px 1.1em; flex: 1; }
.tier ul li { margin-bottom: 9px; font-size: 0.9375rem; line-height: 1.5; }
.tier .btn { align-self: flex-start; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
