/* Shared black-and-white styles for the product page and calculator. */
:root {
	color-scheme: light;
	font-family: system-ui, sans-serif;
	line-height: 1.6;
	color: #111;
	background: #fff;
	--line: #d4d4d4;
}

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

[hidden] {
	display: none !important;
}

body {
	margin: 0;
}

.page_width {
	width: min(100% - 2.5rem, 48rem);
	margin-inline: auto;
}

.site_header, .site_footer {
	padding-block: 1rem;
}

.site_header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--line);
}

.site_footer {
	border-top: 1px solid var(--line);
}

.site_header nav, .actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

a {
	color: #0000ee;
}

:focus-visible {
	outline: 2px solid;
	outline-offset: 3px;
}

.brand {
	color: inherit;
	font-size: 1.2rem;
	font-weight: 700;
	text-decoration: none;
}

main {
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero {
	padding-top: clamp(2.25rem, 7vw, 5rem);
}

h1, h2 {
	line-height: 1.12;
	margin: 0;
}

h1 {
	font-size: clamp(2.125rem, 6.8vw, 4rem);
	letter-spacing: -0.045em;
}

h2 {
	font-size: 1.5rem;
	letter-spacing: -0.02em;
}

p, ul {
	margin: 1rem 0 0;
}

ul {
	padding-inline-start: 1.25rem;
}

li + li {
	margin-top: 0.25rem;
}

.intro {
	font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
}

.actions, .media {
	margin-top: 1.5rem;
}

.primary_link, select, .checkout_text, .quote {
	border-radius: 0.25rem;
}

.primary_link {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	color: #fff;
	background: #111;
	text-decoration: none;
}

.primary_link:hover {
	background: #333;
}

.primary_link:focus-visible {
	outline-color: #111;
}

.media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.media_placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	border: 1px dashed #777;
	font-size: 0.875rem;
}

.page_section {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.page_section > a {
	display: inline-block;
	margin-top: 0.75rem;
}

pre {
	overflow-x: auto;
	margin: 1rem 0 0;
	padding: 0.75rem;
	border: 1px solid var(--line);
}

code {
	font-family: ui-monospace, monospace;
}

form, .quote {
	margin-top: 1.5rem;
}

.field {
	display: grid;
	align-content: start;
	gap: 0.375rem;
	min-width: 0;
}

.calculator_fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

label {
	font-weight: 600;
}

select, .checkout_text {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.375rem 0.625rem;
	border: 1px solid #777;
	background: #fff;
	color: inherit;
	font: inherit;
}

.seat_slider {
	grid-column: 1 / -1;
}

.range_label, .range_bounds {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
}

.range_bounds {
	font-size: 0.8125rem;
}

.seat_slider input {
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	accent-color: #111;
}

.quote {
	padding: clamp(0.875rem, 3vw, 1.5rem);
	border: 1px solid #111;
}

.costs {
	margin: 0 0 0.875rem;
	padding-bottom: 0.875rem;
	border-bottom: 1px solid var(--line);
}

.costs > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(3rem, max-content);
	align-items: baseline;
	gap: 0.75rem;
}

.purchase_total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem 1rem;
	flex-wrap: wrap;
	font-weight: 700;
}

.costs dd {
	margin: 0;
}

.purchase_total output {
	font-size: clamp(1.875rem, 6vw, 3rem);
	line-height: 1.15;
}

.purchase_button {
	display: block;
	width: fit-content;
	margin-block-start: 0.875rem;
	margin-inline-start: auto;
	border: 1px solid #111;
	font: inherit;
	cursor: pointer;
}

.quote_message {
	margin-top: 0.75rem;
}

.quote_currency {
	margin-top: 0.25rem;
	color: #757575;
	font-size: 0.75rem;
	font-style: italic;
	text-align: right;
}

.costs dd {
	text-align: right;
}

.costs dd, .purchase_total output {
	max-width: 100%;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}

.table_scroll {
	overflow-x: auto;
}

.table_hint {
	display: none;
}

table {
	width: 100%;
	margin-top: 0.75rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

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

thead th {
	border-bottom-color: #111;
	vertical-align: bottom;
}

tbody th {
	font-weight: 500;
}

@media (max-width: 36rem) {
	.page_width {
		width: calc(100% - 2rem);
	}

	.media, .calculator_fields {
		grid-template-columns: minmax(0, 1fr);
	}

	table {
		font-size: 0.8125rem;
	}

	th, td {
		padding-inline: 0.1875rem;
	}
}

@media (max-width: 23rem) {
	.table_hint {
		display: block;
		font-size: 0.875rem;
	}
}
