/* ==========================================================================
   NamePlayground - style.css
   Palette lives in OKLCH (hex fallbacks first for older browsers).
   Signature motif: soft alphabet-block tiles in candy pastels.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
	font-family: 'Bricolage Grotesque';
	src: url('/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Figtree';
	src: url('/assets/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Figtree';
	src: url('/assets/fonts/figtree-latin-wght-italic.woff2') format('woff2-variations');
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'IBM Plex Mono';
	src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IBM Plex Mono';
	src: url('/assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	/* hex fallbacks */
	--paper: #fdf8ee;
	--surface: #ffffff;
	--surface-2: #faf2e3;
	--ink: #3d3350;
	--ink-soft: #6f6584;
	--line: #ece2cf;
	--pink: #ec6aa0;
	--pink-soft: #fbdcea;
	--sky: #64a7e8;
	--sky-soft: #dcecfb;
	--butter: #f5c64b;
	--butter-soft: #fdf0c9;
	--mint: #5ec9a7;
	--mint-soft: #d9f4ea;
	--plum: #8a6fd1;
	--focus: #4f86d8;

	/* OKLCH (perceptually matched: accents share L/C) */
	--paper: oklch(0.977 0.024 90);
	--surface: oklch(0.995 0.008 95);
	--surface-2: oklch(0.958 0.032 88);
	--ink: oklch(0.32 0.045 300);
	--ink-soft: oklch(0.50 0.04 300);
	--line: oklch(0.91 0.03 88);
	--pink: oklch(0.68 0.17 355);
	--pink-soft: oklch(0.92 0.05 355);
	--sky: oklch(0.70 0.12 245);
	--sky-soft: oklch(0.92 0.04 245);
	--butter: oklch(0.85 0.14 90);
	--butter-soft: oklch(0.94 0.07 92);
	--mint: oklch(0.76 0.11 165);
	--mint-soft: oklch(0.93 0.05 165);
	--plum: oklch(0.62 0.14 295);
	--focus: oklch(0.60 0.15 245);

	--shadow: 0 2px 6px oklch(0.32 0.045 300 / 0.06), 0 10px 28px oklch(0.32 0.045 300 / 0.07);
	--shadow-lift: 0 4px 10px oklch(0.32 0.045 300 / 0.09), 0 16px 40px oklch(0.32 0.045 300 / 0.11);
	--radius: 18px;
	--radius-sm: 12px;

	--font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
	--font-body: 'Figtree', system-ui, -apple-system, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

	color-scheme: light;
}

[data-theme="dark"] {
	--paper: #221d2e;
	--surface: #2b2539;
	--surface-2: #332c44;
	--ink: #ece7f4;
	--ink-soft: #b3a9c7;
	--line: #423a56;

	--paper: oklch(0.22 0.03 300);
	--surface: oklch(0.27 0.033 300);
	--surface-2: oklch(0.31 0.036 300);
	--ink: oklch(0.93 0.015 300);
	--ink-soft: oklch(0.74 0.03 300);
	--line: oklch(0.37 0.04 300);
	--pink: oklch(0.72 0.15 355);
	--pink-soft: oklch(0.38 0.07 355);
	--sky: oklch(0.73 0.11 245);
	--sky-soft: oklch(0.37 0.06 245);
	--butter: oklch(0.83 0.13 90);
	--butter-soft: oklch(0.40 0.06 92);
	--mint: oklch(0.75 0.10 165);
	--mint-soft: oklch(0.37 0.05 165);
	--plum: oklch(0.70 0.12 295);

	--shadow: 0 2px 6px oklch(0 0 0 / 0.30), 0 10px 28px oklch(0 0 0 / 0.35);
	--shadow-lift: 0 4px 10px oklch(0 0 0 / 0.38), 0 16px 40px oklch(0 0 0 / 0.42);

	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #221d2e;
		--surface: #2b2539;
		--surface-2: #332c44;
		--ink: #ece7f4;
		--ink-soft: #b3a9c7;
		--line: #423a56;

		--paper: oklch(0.22 0.03 300);
		--surface: oklch(0.27 0.033 300);
		--surface-2: oklch(0.31 0.036 300);
		--ink: oklch(0.93 0.015 300);
		--ink-soft: oklch(0.74 0.03 300);
		--line: oklch(0.37 0.04 300);
		--pink: oklch(0.72 0.15 355);
		--pink-soft: oklch(0.38 0.07 355);
		--sky: oklch(0.73 0.11 245);
		--sky-soft: oklch(0.37 0.06 245);
		--butter: oklch(0.83 0.13 90);
		--butter-soft: oklch(0.40 0.06 92);
		--mint: oklch(0.75 0.10 165);
		--mint-soft: oklch(0.37 0.05 165);
		--plum: oklch(0.70 0.12 295);

		--shadow: 0 2px 6px oklch(0 0 0 / 0.30), 0 10px 28px oklch(0 0 0 / 0.35);
		--shadow-lift: 0 4px 10px oklch(0 0 0 / 0.38), 0 16px 40px oklch(0 0 0 / 0.42);

		color-scheme: dark;
	}
}

/* ---------- Base ---------- */
* { 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.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3 {
	font-family: var(--font-display);
	line-height: 1.08;
	text-wrap: balance;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 750; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }

p { text-wrap: pretty; max-width: 70ch; }

a { color: var(--plum); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--pink); }

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

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

.mono, .rank, .stat-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.skip-link {
	position: absolute; left: -999px; top: 8px; z-index: 100;
	background: var(--surface); padding: 8px 14px; border-radius: 10px;
}
.skip-link:focus { left: 8px; }

pre.debug { background: var(--surface-2); border: 1px dashed var(--line); padding: 10px; border-radius: 8px; overflow: auto; font-family: var(--font-mono); font-size: 0.8rem; }
pre.debug-warning { border-color: var(--butter); }
pre.debug-error { border-color: var(--pink); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in oklab, var(--paper) 86%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex; align-items: center; gap: 20px;
	min-height: 66px;
}
.brand {
	display: flex; align-items: center; gap: 10px;
	text-decoration: none; color: var(--ink);
	font-family: var(--font-display); font-weight: 760; font-size: 1.28rem;
	letter-spacing: -0.01em;
}
.brand-mark { transition: transform 0.25s ease; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-word-alt { color: var(--pink); }

.site-nav { display: flex; gap: 4px; margin-left: 6px; }
.site-nav a {
	text-decoration: none; color: var(--ink-soft);
	padding: 7px 12px; border-radius: 999px; font-weight: 550; font-size: 0.98rem;
	transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--pink-soft); color: var(--ink); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.header-search { position: relative; }
.header-search input {
	width: 200px; padding: 8px 14px;
	border: 1.5px solid var(--line); border-radius: 999px;
	background: var(--surface); color: var(--ink);
	font: inherit; font-size: 0.95rem;
	transition: width 0.2s ease, border-color 0.2s ease;
}
.header-search input:focus { width: 260px; border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px var(--sky-soft); }

.suggest-panel {
	position: absolute; top: calc(100% + 8px); right: 0;
	width: 300px; max-height: 380px; overflow: auto;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lift); padding: 6px; z-index: 60;
}
.suggest-panel a {
	display: flex; justify-content: space-between; gap: 10px;
	padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink);
}
.suggest-panel a:hover, .suggest-panel a.active { background: var(--surface-2); }
.suggest-panel .s-meta { color: var(--ink-soft); font-size: 0.82rem; font-family: var(--font-mono); }

.theme-toggle {
	width: 40px; height: 40px; border-radius: 999px;
	border: 1.5px solid var(--line); background: var(--surface);
	cursor: pointer; position: relative;
	transition: transform 0.2s ease;
}
.theme-toggle:hover { transform: rotate(15deg); }
.theme-icon { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.2s ease; }
.theme-icon-sun::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 3px var(--butter-soft); display: block; }
.theme-icon-moon::before { content: ''; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 5px -3px 0 0 var(--sky); display: block; }
:root:not([data-theme="dark"]) .theme-icon-moon { opacity: 1; }
:root:not([data-theme="dark"]) .theme-icon-sun { opacity: 0; }
[data-theme="dark"] .theme-icon-moon { opacity: 0; }
[data-theme="dark"] .theme-icon-sun { opacity: 1; }

.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(30px, 6vw, 72px) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
	background: var(--mint-soft); color: var(--ink);
	padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 .accent-pink { color: var(--pink); }
.hero h1 .accent-sky { color: var(--sky); }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); }
.hero-img img { border-radius: 26px; box-shadow: var(--shadow-lift); }

.hero-search { position: relative; margin-top: 22px; max-width: 460px; }
.hero-search input {
	width: 100%; padding: 15px 130px 15px 20px;
	font: inherit; font-size: 1.05rem;
	border: 2px solid var(--line); border-radius: 999px;
	background: var(--surface); color: var(--ink);
	box-shadow: var(--shadow);
}
.hero-search input:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 4px var(--pink-soft); }
.hero-search button {
	position: absolute; right: 6px; top: 6px; bottom: 6px;
	padding: 0 22px; border: 0; border-radius: 999px;
	background: var(--pink); color: white;
	font: inherit; font-weight: 650; cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}
.hero-search button:hover { transform: scale(1.03); }
.hero-search .suggest-panel { left: 0; right: auto; width: 100%; }

.hero-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Chips (Linear-style filters + suggestion pills) ---------- */
.chip {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 13px; border-radius: 999px;
	background: var(--surface); border: 1.5px solid var(--line);
	color: var(--ink); font-size: 0.9rem; font-weight: 550;
	text-decoration: none; cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--sky); transform: translateY(-1px); color: var(--ink); }
.chip .chip-prop { color: var(--ink-soft); font-weight: 450; }
.chip .chip-x {
	border: 0; background: transparent; cursor: pointer; color: var(--ink-soft);
	font-size: 1rem; line-height: 1; padding: 0 0 0 2px; font-family: var(--font-body);
}
.chip .chip-x:hover { color: var(--pink); }
.chip-pink { background: var(--pink-soft); border-color: transparent; }
.chip-sky { background: var(--sky-soft); border-color: transparent; }
.chip-mint { background: var(--mint-soft); border-color: transparent; }
.chip-butter { background: var(--butter-soft); border-color: transparent; }

/* ---------- Sections & cards ---------- */
.section { padding: clamp(26px, 5vw, 56px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head .more { white-space: nowrap; font-weight: 600; text-decoration: none; }
.section-head .more:hover { text-decoration: underline; }

.card {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow);
	padding: clamp(16px, 3vw, 26px);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Name tiles (signature block motif) ---------- */
.tile-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px;
}
.name-tile {
	display: flex; align-items: center; gap: 12px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 10px 14px 10px 10px; text-decoration: none; color: var(--ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.name-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.tile-block {
	width: 44px; height: 44px; flex: 0 0 44px;
	display: grid; place-items: center;
	border-radius: 11px;
	font-family: var(--font-display); font-weight: 760; font-size: 1.3rem;
	color: white;
	box-shadow: inset 0 -3px 0 oklch(0 0 0 / 0.12), inset 0 2px 0 oklch(1 0 0 / 0.28);
	transform: rotate(-4deg);
	transition: transform 0.18s ease;
}
.name-tile:hover .tile-block { transform: rotate(4deg) scale(1.06); }
.lean-girl .tile-block { background: var(--pink); }
.lean-boy .tile-block { background: var(--sky); }
.lean-unisex .tile-block { background: var(--mint); }
.tile-body { display: flex; flex-direction: column; min-width: 0; }
.tile-name { font-weight: 650; font-size: 1.06rem; }
.tile-meta { color: var(--ink-soft); font-size: 0.8rem; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Ranked lists ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li { counter-increment: rank; }
.rank-list a {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink);
}
.rank-list a:hover { background: var(--surface-2); }
.rank-list a::before {
	content: counter(rank);
	font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem;
	width: 30px; height: 30px; flex: 0 0 30px;
	display: grid; place-items: center;
	background: var(--surface-2); border-radius: 9px; color: var(--ink-soft);
}
.rank-list li:nth-child(1) a::before { background: var(--butter); color: var(--ink); }
.rank-list li:nth-child(2) a::before { background: var(--butter-soft); }
.rank-list li:nth-child(3) a::before { background: var(--butter-soft); }
.rank-list .rl-name { font-weight: 620; }
.rank-list .rl-meta { margin-left: auto; color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.82rem; }

.trend-up { color: var(--mint); font-weight: 650; }
.trend-down { color: var(--pink); font-weight: 650; }

/* ---------- Alphabet index ---------- */
.alpha-row { display: flex; flex-wrap: wrap; gap: 8px; }
.alpha-row a {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	font-family: var(--font-display); font-weight: 740; font-size: 1.2rem;
	color: var(--ink); text-decoration: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
	box-shadow: inset 0 -3px 0 oklch(0 0 0 / 0.06);
	transition: transform 0.14s ease, background 0.14s ease;
}
.alpha-row a:nth-child(4n+1):hover { background: var(--pink-soft); }
.alpha-row a:nth-child(4n+2):hover { background: var(--sky-soft); }
.alpha-row a:nth-child(4n+3):hover { background: var(--butter-soft); }
.alpha-row a:nth-child(4n+4):hover { background: var(--mint-soft); }
.alpha-row a:hover { transform: rotate(-5deg) scale(1.08); }
.alpha-row a.active { background: var(--pink); color: white; border-color: transparent; }

/* ---------- Name detail page ---------- */
.name-hero { padding: clamp(26px, 5vw, 52px) 0 10px; }
.name-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.name-hero h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.4rem); }
.name-hero .big-block {
	width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px);
	display: grid; place-items: center;
	border-radius: 20px; transform: rotate(-5deg);
	font-family: var(--font-display); font-weight: 780; font-size: clamp(2rem, 5vw, 3rem); color: white;
	box-shadow: inset 0 -6px 0 oklch(0 0 0 / 0.12), inset 0 3px 0 oklch(1 0 0 / 0.28), var(--shadow);
}
.name-hero .pron { color: var(--ink-soft); font-size: 1.05rem; font-style: italic; }
.gender-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; max-width: 300px; margin-top: 8px; border: 1px solid var(--line); }
.gender-bar .gb-f { background: var(--pink); }
.gender-bar .gb-m { background: var(--sky); }
.gender-bar-label { font-size: 0.82rem; color: var(--ink-soft); font-family: var(--font-mono); margin-top: 5px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0; }
.stat-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 14px 16px;
}
.stat-card .stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.stat-card .stat-value { font-size: 1.45rem; font-weight: 600; margin-top: 2px; }
.stat-card .stat-note { font-size: 0.8rem; color: var(--ink-soft); }

.chart-card { position: relative; }
.chart-wrap { position: relative; height: 340px; }
.chart-toggle { display: flex; gap: 8px; }

.meaning-box { border-left: 4px solid var(--butter); }

/* ---------- Explore builder ---------- */
.explore-bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 8px;
}
.add-filter-btn {
	display: inline-flex; align-items: center; gap: 6px;
	border: 1.5px dashed var(--line); background: transparent;
	padding: 6px 14px; border-radius: 999px; cursor: pointer;
	font: inherit; font-size: 0.9rem; font-weight: 550; color: var(--ink-soft);
}
.add-filter-btn:hover { border-color: var(--sky); color: var(--ink); }

.filter-menu {
	position: absolute; z-index: 70;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lift); padding: 6px; min-width: 230px;
}
.filter-menu button, .filter-menu a {
	display: flex; width: 100%; text-align: left; align-items: center; gap: 10px;
	background: transparent; border: 0; font: inherit; color: var(--ink);
	padding: 9px 12px; border-radius: 9px; cursor: pointer; text-decoration: none;
	font-size: 0.94rem;
}
.filter-menu button:hover, .filter-menu a:hover { background: var(--surface-2); }
.filter-menu .fm-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; transform: rotate(-6deg); }

.explore-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; flex-wrap: wrap; }
.explore-count { font-family: var(--font-mono); color: var(--ink-soft); font-size: 0.92rem; }
.sort-select {
	font: inherit; font-size: 0.92rem; color: var(--ink);
	background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
	padding: 7px 14px;
}

.load-more {
	display: block; margin: 26px auto 0; padding: 12px 34px;
	border: 0; border-radius: 999px; cursor: pointer;
	background: var(--sky); color: white; font: inherit; font-weight: 650; font-size: 1rem;
	transition: transform 0.15s ease;
}
.load-more:hover { transform: scale(1.04); }
.load-more[disabled] { opacity: 0.5; cursor: default; transform: none; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty-state .big { font-size: 2.4rem; }

/* ---------- Create page ---------- */
.blend-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; align-items: center; }
.blend-row input {
	width: 100%; padding: 13px 16px; font: inherit; font-size: 1.05rem;
	border: 2px solid var(--line); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--ink);
}
.blend-row input:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 4px var(--mint-soft); }
.blend-plus { font-family: var(--font-display); font-weight: 760; font-size: 1.6rem; color: var(--ink-soft); }
.btn {
	display: inline-block; padding: 12px 26px; border: 0; border-radius: 999px;
	background: var(--pink); color: white; font: inherit; font-weight: 650; cursor: pointer;
	text-decoration: none; transition: transform 0.15s ease;
}
.btn:hover { transform: scale(1.04); color: white; }
.btn-mint { background: var(--mint); }
.btn-sky { background: var(--sky); }

.result-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.result-pill {
	display: inline-flex; flex-direction: column; align-items: flex-start;
	background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
	padding: 10px 16px; text-decoration: none; color: var(--ink);
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.result-pill:hover { transform: translateY(-2px); border-color: var(--pink); color: var(--ink); }
.result-pill .rp-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.result-pill .rp-note { font-size: 0.78rem; color: var(--ink-soft); font-family: var(--font-mono); }
.result-pill.is-real .rp-note { color: var(--mint); }
.result-pill.is-unique .rp-note { color: var(--plum); }

/* ---------- Compare ---------- */
.compare-inputs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.compare-inputs input {
	padding: 11px 15px; font: inherit;
	border: 2px solid var(--line); border-radius: 999px;
	background: var(--surface); color: var(--ink); width: 180px;
}

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.data-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-table tr:hover td { background: var(--surface-2); }

/* ---------- Pagination ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span {
	min-width: 40px; height: 40px; padding: 0 12px;
	display: inline-grid; place-items: center;
	border-radius: 12px; text-decoration: none; color: var(--ink);
	background: var(--surface); border: 1px solid var(--line);
	font-family: var(--font-mono); font-size: 0.9rem;
}
.pager a:hover { background: var(--sky-soft); }
.pager .current { background: var(--pink); color: white; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--surface); }
.footer-inner { display: flex; gap: 40px; padding: 36px 0 10px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.92rem; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 10px; }
.footer-nav a { display: block; color: var(--ink); text-decoration: none; padding: 3px 0; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--pink); }
.footer-legal { padding: 12px 0 26px; }
.footer-legal p { color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.86rem; color: var(--ink-soft); margin: 16px 0 0; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--pink); }
.crumbs span { margin: 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-img { order: -1; }
	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.site-nav {
		display: none;
		position: absolute; top: 66px; left: 0; right: 0;
		flex-direction: column; padding: 10px 16px 16px;
		background: var(--paper); border-bottom: 1px solid var(--line);
	}
	.site-nav.open { display: flex; }
	.nav-burger {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
		width: 40px; height: 40px; border-radius: 10px;
		background: var(--surface); border: 1.5px solid var(--line); cursor: pointer;
	}
	.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; border-radius: 2px; }
	.header-search input { width: 130px; }
	.header-search input:focus { width: 170px; }
	.blend-row { grid-template-columns: 1fr; }
	.blend-plus { text-align: center; }
	.chart-wrap { height: 260px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
