:root {
	color-scheme: light;
	--ink: #15202b;
	--muted: #3e5163;
	--line: #c5d0da;
	--paper: #d7e0e8;
	--sheet: #f7f9fb;
	--tape: #0e7490;
	--canada: #0b6e4f;
	font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
}

::selection {
	background: #b7d4e4;
	color: var(--ink);
}

:focus-visible {
	outline: 2px solid var(--tape);
	outline-offset: 2px;
}

.top {
	display: grid;
	gap: 0.75rem;
	padding: 1.5rem 1.25rem 0.5rem;
	max-width: 72rem;
}

h1 {
	margin: 0.15rem 0 0;
	font-size: 2rem;
	font-weight: 650;
	letter-spacing: -0.03em;
}

.lede {
	margin: 0;
	max-width: 42rem;
	color: var(--muted);
	line-height: 1.45;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: end;
	padding: 1rem 1.25rem;
	max-width: 72rem;
}

label {
	display: grid;
	gap: 0.3rem;
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.search { flex: 1 1 16rem; }

input, select {
	font: inherit;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	color: var(--ink);
	background: var(--sheet);
	border: 1px solid var(--line);
	border-radius: 0.4rem;
	padding: 0.55rem 0.65rem;
	min-width: 11rem;
}

.search input { width: 100%; min-width: 0; }

.check {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
	padding-bottom: 0.45rem;
}

.check input { min-width: 0; accent-color: var(--canada); }

.summary {
	margin: 0;
	padding: 0 1.25rem 0.75rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.sheet {
	margin: 0 1.25rem 1rem;
	background: var(--sheet);
	border: 1px solid var(--line);
	border-radius: 0.6rem;
	overflow: auto;
	max-width: 72rem;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

th, td {
	text-align: left;
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

th {
	position: sticky;
	top: 0;
	background: #e4edf3;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

tr:last-child td { border-bottom: 0; }

.pn {
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
	font-size: 0.85rem;
	white-space: nowrap;
}

.variant {
	display: block;
	color: var(--muted);
	font-size: 0.82rem;
	margin-top: 0.15rem;
}

.price { font-variant-numeric: tabular-nums; white-space: nowrap; }

.country {
	display: inline-block;
	margin-left: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--canada);
}

a { color: #1d4e89; }

.links { white-space: nowrap; }
.links a + a { margin-left: 0.6rem; }

.empty, .more {
	margin: 0.5rem 1.25rem 2rem;
}

.empty { color: var(--muted); }

.more {
	font: inherit;
	background: var(--ink);
	color: var(--sheet);
	border: 0;
	border-radius: 0.4rem;
	padding: 0.6rem 0.9rem;
	cursor: pointer;
}

@media (max-width: 760px) {
	thead { display: none; }
	table, tbody, tr, td { display: block; width: 100%; }
	tr { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
	td { border: 0; padding: 0.15rem 0.75rem; }
	td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.68rem;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--muted);
	}
}
