/*
 * FLAT Core: minimal styles for the shortcodes.
 * Uses the Elementor V4 variables of the site (DESIGN.md): --f-ink, --f-muted,
 * --f-accent, --f-surface, --f-font, --fs-small, --fs-body, --fs-lead.
 * No borders, no shadows: rows are separated by space and --f-surface.
 */

/* Definition lists (specs, prices, hours) */
.f-specs {
	margin: 0;
	display: grid;
	gap: 2px;
	font-family: var(--f-font, inherit);
	font-size: var(--fs-body, 1rem);
	color: var(--f-ink, inherit);
}

.f-specs__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 16px;
	background: var(--f-surface, transparent);
}

.f-specs__label {
	margin: 0;
	color: var(--f-muted, inherit);
}

.f-specs__value {
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

@media (min-width: 1025px) {
	.f-specs--vehicle,
	.f-specs--unit {
		grid-template-columns: 1fr 1fr;
	}
}

.f-hours .f-specs__value {
	white-space: nowrap;
}

/* Status badges */
.f-badge {
	display: inline-block;
	padding: 4px 10px;
	font-family: var(--f-font, inherit);
	font-size: var(--fs-small, 0.875rem);
	font-weight: 600;
	line-height: 1.4;
	color: var(--f-ink, inherit);
	background: var(--f-surface, transparent);
}

.f-badge--new {
	color: var(--f-on-accent, #0b0b0c);
	background: var(--f-accent, #ee7d31);
}

.f-badge--sold,
.f-badge--sold-out {
	color: var(--f-muted, inherit);
}

/* Lists */
.f-equipment,
.f-prices {
	display: grid;
	gap: 32px;
	font-family: var(--f-font, inherit);
	color: var(--f-ink, inherit);
}

.f-equipment__title,
.f-prices__title {
	margin: 0 0 12px;
	font-size: var(--fs-lead, 1.25rem);
	font-weight: 400;
}

.f-equipment__list,
.f-arguments,
.f-unit__description {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 2px;
	font-size: var(--fs-body, 1rem);
}

.f-equipment__list > li,
.f-arguments > li,
.f-unit__description > li {
	padding: 10px 16px;
	background: var(--f-surface, transparent);
}

.f-equipment__term {
	padding: 10px 16px;
	margin-bottom: 2px;
	background: var(--f-surface, transparent);
}

.f-equipment__term-name {
	cursor: pointer;
	font-weight: 600;
}

.f-prices__note,
.f-arguments__conclusion,
.f-table__footnote {
	margin: 8px 0 0;
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
}

/* Glossary of options: real reading text, body size and measure. */
.f-equipment__term-text {
	margin: 8px 0 4px;
	max-width: var(--measure, 68ch);
	font-size: var(--fs-body, 1rem);
	line-height: 1.55;
	color: var(--f-muted, inherit);
}

/* Gallery */
.f-gallery__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.f-gallery__item:first-child {
	grid-column: 1 / -1;
}

.f-gallery__link {
	display: block;
	overflow: hidden;
}

.f-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform var(--dur-slow, 1200ms) cubic-bezier(.25, .1, .25, 1);
}

.f-gallery__link:hover .f-gallery__img {
	transform: scale(1.05);
}

.f-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--f-ink, #f2f0ec);
	background: var(--f-bg, #0b0b0c);
}

.f-lightbox::backdrop {
	background: var(--f-bg, #0b0b0c);
}

.f-lightbox__figure {
	margin: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 56px 16px 24px;
	box-sizing: border-box;
}

.f-lightbox__img {
	max-width: 100%;
	max-height: calc(100% - 48px);
	object-fit: contain;
}

.f-lightbox__caption {
	font-family: var(--f-font, inherit);
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
	font-variant-numeric: tabular-nums;
}

.f-lightbox__btn {
	position: absolute;
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 0;
	font-size: 1.5rem;
	color: var(--f-ink, #f2f0ec);
	background: var(--f-surface, #151517);
	cursor: pointer;
}

.f-lightbox__btn:hover {
	background: var(--f-surface-2, #202023);
}

.f-lightbox__btn--close {
	top: 0;
	right: 0;
}

.f-lightbox__btn--prev,
.f-lightbox__btn--next {
	top: 50%;
	transform: translateY(-50%);
}

.f-lightbox__btn--prev {
	left: 0;
}

.f-lightbox__btn--next {
	right: 0;
}

/* Maintenance finder */
.f-finder {
	display: grid;
	gap: 24px;
	font-family: var(--f-font, inherit);
	color: var(--f-ink, inherit);
}

.f-finder__form {
	display: grid;
	gap: 16px;
}

.f-finder__form[hidden],
.f-finder__result[hidden],
.f-finder__fallback[hidden] {
	display: none;
}

/* Columns depend on the space the finder actually gets, not the viewport. */
.f-finder {
	container-type: inline-size;
}

@container (min-width: 640px) {
	.f-finder__form {
		grid-template-columns: minmax(14rem, 1fr) 2fr;
	}
}

.f-finder__field {
	display: grid;
	gap: 8px;
}

.f-finder__label {
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
}

.f-finder__select {
	width: 100%;
	min-height: 56px;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	font: inherit;
	font-size: var(--fs-body, 1rem);
	color: var(--f-ink, inherit);
	background-color: var(--f-surface, #151517);
}

.f-finder__select:disabled {
	color: var(--f-muted, inherit);
}

.f-finder__select:focus-visible,
.f-finder__link:focus-visible,
.f-gallery__link:focus-visible,
.f-lightbox__btn:focus-visible {
	outline: 2px solid var(--f-accent, #ee7d31);
	outline-offset: 3px;
}

.f-finder__result {
	display: grid;
	gap: 12px;
}

.f-finder__title {
	margin: 0;
	font-size: var(--fs-lead, 1.25rem);
}

.f-finder__details,
.f-finder__empty {
	margin: 0;
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
}

.f-finder__link {
	justify-self: start;
	color: var(--f-ink, inherit);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.f-finder__link:hover {
	color: var(--f-accent, inherit);
}

.f-finder__fallback-range {
	padding: 12px 16px;
	margin-bottom: 2px;
	background: var(--f-surface, transparent);
}

.f-finder__fallback-name {
	cursor: pointer;
	font-size: var(--fs-lead, 1.25rem);
}

.f-finder__fallback-list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

/* Price tables */
.f-tables {
	display: grid;
	gap: 40px;
}

.f-table__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 2px;
	font-family: var(--f-font, inherit);
	font-size: var(--fs-body, 1rem);
	color: var(--f-ink, inherit);
}

.f-table__caption {
	margin-bottom: 12px;
	text-align: left;
	font-size: var(--fs-lead, 1.25rem);
}

.f-table__head {
	padding: 8px 16px;
	text-align: right;
	font-size: var(--fs-small, 0.875rem);
	font-weight: 400;
	color: var(--f-muted, inherit);
}

.f-table__head--label,
.f-table__label {
	text-align: left;
}

/* Neutralise the Hello Elementor table reset (1px rules, zebra rows, hover tint). */
.f-table__table th,
.f-table__table td {
	border: 0;
	line-height: 1.5;
	vertical-align: baseline;
}

/* Hello targets the first header row with `table thead:first-child tr:first-child th`. */
.f-table__table thead .f-table__head.f-table__head {
	border: 0;
	white-space: nowrap;
}

.f-table__table .f-table__row > * {
	padding: 12px 16px;
	background: var(--f-surface, transparent);
	transition: background-color var(--dur-fast, 250ms);
}

.f-table__table .f-table__row:hover > * {
	background: var(--f-surface-2, transparent);
}

.f-table__label {
	font-weight: 400;
}

.f-table__value {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.f-table__note {
	color: var(--f-muted, inherit);
	font-size: var(--fs-small, 0.875rem);
}

@media (max-width: 767px) {
	.f-table {
		overflow-x: auto;
	}
}

/* Timeline, team, warranties, figures, videos, social, certifications */
.f-timeline,
.f-team,
.f-warranties,
.f-figures,
.f-videos,
.f-social,
.f-certifications {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--f-font, inherit);
	color: var(--f-ink, inherit);
}

.f-timeline,
.f-warranties,
.f-videos {
	display: grid;
	gap: 24px;
}

.f-timeline__year,
.f-figures__value {
	margin: 0;
	font-size: var(--fs-lead, 1.25rem);
	font-variant-numeric: tabular-nums;
}

.f-timeline__title,
.f-team__name,
.f-warranties__name {
	margin: 4px 0;
	font-size: var(--fs-body, 1rem);
	font-weight: 600;
}

.f-timeline__figure,
.f-timeline__text,
.f-team__text,
.f-warranties__duration,
.f-warranties__text,
.f-figures__label {
	margin: 0;
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
}

.f-timeline__img,
.f-team__img {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 12px;
}

.f-warranties__item {
	padding: 16px;
	background: var(--f-surface, transparent);
}

.f-team {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.f-figures {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.f-figures__value,
.f-figures__label {
	display: block;
}

.f-videos iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.f-social,
.f-certifications {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.f-social .f-social__link,
.f-certifications .f-certifications__link,
.elementor a.f-option-link,
.elementor a.f-related-link {
	color: var(--f-ink, inherit);
	text-underline-offset: 4px;
}

.f-social .f-social__link:hover,
.f-certifications .f-certifications__link:hover,
.elementor a.f-option-link:hover {
	color: var(--f-accent, inherit);
}

@media (prefers-reduced-motion: reduce) {
	.f-gallery__img {
		transition: none;
	}

	.f-gallery__link:hover .f-gallery__img {
		transform: none;
	}
}

/* Related link (vehicle > maintenance sheet) */
.f-related-link {
	font-family: var(--f-font, inherit);
	font-size: var(--fs-body, 1rem);
	color: var(--f-ink, inherit);
	text-decoration: underline;
	text-underline-offset: 0.25em;
	transition: color 250ms;
}

.elementor a.f-related-link:hover,
.elementor a.f-related-link:focus-visible {
	color: var(--f-accent, inherit);
}

.f-related-link:focus-visible,
.f-social__link:focus-visible,
.f-option-link:focus-visible {
	outline: 2px solid var(--f-accent, #ee7d31);
	outline-offset: 3px;
}

/* PDF library ([flat69_documents]) */
.f-docs {
	display: grid;
	gap: var(--sp-l, 64px);
	font-family: var(--f-font, inherit);
	color: var(--f-ink, inherit);
	container-type: inline-size;
}

.f-docs [hidden] {
	display: none !important;
}

.f-docs__tools {
	display: grid;
	gap: var(--sp-m, 24px);
}

.f-docs__filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin-inline: calc(-1 * var(--gutter, 20px));
	padding-inline: var(--gutter, 20px);
	overflow-x: auto;
	scroll-padding-inline: var(--gutter, 20px);
	scrollbar-width: none;
}

.f-docs__filters::-webkit-scrollbar {
	display: none;
}

.f-docs .f-docs__filters button.f-docs__filter {
	flex: none;
	white-space: nowrap;
}

/* Strong selectors: the kit styles every <button> in orange. */
.f-docs .f-docs__filters button.f-docs__filter {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	min-height: 48px;
	padding: 12px 20px;
	border: 0;
	border-radius: 0;
	font: inherit;
	font-size: var(--fs-body, 1rem);
	line-height: 1.2;
	color: var(--f-ink, inherit);
	background: var(--f-surface, #151517);
	cursor: pointer;
	transition: background-color 250ms cubic-bezier(.25, .1, .25, 1), color 250ms cubic-bezier(.25, .1, .25, 1);
}

.f-docs__filter-count {
	font-size: var(--fs-small, 0.875rem);
	font-variant-numeric: tabular-nums;
	color: var(--f-muted, inherit);
	transition: color 250ms cubic-bezier(.25, .1, .25, 1);
}

.f-docs .f-docs__filters button.f-docs__filter[aria-pressed="true"],
.f-docs .f-docs__filters button.f-docs__filter[aria-pressed="true"]:hover,
.f-docs .f-docs__filters button.f-docs__filter[aria-pressed="true"]:focus {
	color: var(--f-bg, #0b0b0c);
	background: var(--f-ink, #f2f2f0);
}

.f-docs__filter[aria-pressed="true"] .f-docs__filter-count {
	color: var(--f-bg, #0b0b0c);
}

.f-docs .f-docs__filters button.f-docs__filter:active {
	scale: .98;
}

.f-docs__search {
	display: grid;
	gap: 8px;
	max-width: 30rem;
}

.f-docs__label {
	margin: 0;
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
	font-variant-numeric: tabular-nums;
}

.f-docs__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.f-docs .f-docs__search input.f-docs__input {
	width: 100%;
	min-height: 56px;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	font: inherit;
	font-size: var(--fs-body, 1rem);
	color: var(--f-ink, inherit);
	background: var(--f-surface, #151517);
	-webkit-appearance: none;
	appearance: none;
}

.f-docs .f-docs__search input.f-docs__input:focus {
	border: 0;
	outline: none;
	box-shadow: none;
}

.f-docs__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2 2 12' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2 2 12' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	color: var(--f-muted, #a8a8a5);
	cursor: pointer;
}

.f-docs__input::placeholder {
	color: var(--f-muted, inherit);
	opacity: 1;
}

.f-docs .f-docs__filters button.f-docs__filter:focus-visible,
.f-docs .f-docs__search input.f-docs__input:focus-visible,
.f-docs__link:focus-visible {
	outline: 2px solid var(--f-accent, #ee7d31);
	outline-offset: 3px;
}

.f-docs__family {
	display: grid;
	gap: var(--sp-m, 32px);
}

.f-docs .f-docs__family-title {
	margin: 0;
	font-size: var(--fs-head, 2.5rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.03em;
}

.f-docs__group {
	display: grid;
	gap: var(--sp-s, 16px);
}

.f-docs__gen {
	display: grid;
	gap: 4px;
	align-content: start;
}

.f-docs .f-docs__gen-name {
	margin: 0;
	font-size: var(--fs-lead, 1.375rem);
	font-weight: 400;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.f-docs__gen-desc {
	margin: 0;
	max-width: 22rem;
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
}

.f-docs__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.f-docs__item {
	margin: 0;
}

.elementor .f-docs__link,
.f-docs__link {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	grid-template-areas:
		"cover name action"
		"cover meta action"
		"cover file action";
	column-gap: 16px;
	row-gap: 2px;
	align-items: center;
	padding: 12px;
	color: var(--f-ink, inherit);
	text-decoration: none;
	transition: background-color 250ms cubic-bezier(.25, .1, .25, 1);
}

.f-docs__cover {
	grid-area: cover;
	display: block;
	width: 64px;
	aspect-ratio: 4 / 3;
	padding: 4px;
	overflow: hidden;
	background: var(--f-surface, #151517);
}

/* Covers are shown whole (portrait, landscape), like objects on a shelf. */
.f-docs__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: brightness(.85) contrast(1.05);
	transition: scale 1200ms cubic-bezier(.23, 1, .32, 1);
}

.f-docs__name {
	grid-area: name;
	font-size: var(--fs-lead, 1.25rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.f-docs__new {
	margin-left: 8px;
	font-size: var(--fs-small, 0.875rem);
	font-weight: 600;
	letter-spacing: 0;
	vertical-align: 0.15em;
}

.f-docs__meta,
.f-docs__file {
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
	font-variant-numeric: tabular-nums;
}

.f-docs__meta {
	grid-area: meta;
}

.f-docs__file {
	grid-area: file;
}

.f-docs__action {
	grid-area: action;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-small, 0.875rem);
	font-weight: 600;
	transition: color 250ms cubic-bezier(.25, .1, .25, 1);
}

/* The label is kept for wide rows only; the icon carries the action on phones. */
.f-docs__action {
	font-size: 0;
}

.f-docs__icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.f-docs__empty {
	margin: 0;
	font-size: var(--fs-body, 1rem);
	color: var(--f-muted, inherit);
}

@media (hover: hover) {
	.f-docs .f-docs__filters button.f-docs__filter:not([aria-pressed="true"]):hover,
	.f-docs .f-docs__filters button.f-docs__filter:not([aria-pressed="true"]):focus {
		background: var(--f-surface-2, #202023);
	}

	.f-docs__link:hover {
		background: var(--f-surface, #151517);
	}

	.f-docs__link:hover .f-docs__cover {
		background: var(--f-surface-2, #202023);
	}

	.f-docs__link:hover .f-docs__img {
		scale: 1.04;
	}

	.f-docs__link:hover .f-docs__action {
		color: var(--f-accent, #ee7d31);
	}
}

@container (min-width: 720px) {
	.f-docs__filters {
		flex-wrap: wrap;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}

	.elementor .f-docs__link,
	.f-docs__link {
		grid-template-columns: 96px minmax(0, 1fr) minmax(12rem, auto) 6rem 5rem;
		grid-template-areas: "cover name meta file action";
		column-gap: var(--sp-m, 32px);
		padding: 12px 16px;
	}

	.f-docs__cover {
		width: 96px;
	}

	.f-docs__action {
		justify-content: flex-end;
		font-size: var(--fs-small, 0.875rem);
	}

	.f-docs__icon {
		width: 16px;
		height: 16px;
	}
}

@container (min-width: 1000px) {
	.f-docs__group {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--sp-m, 32px);
	}

	.f-docs__gen {
		grid-column: 1 / span 3;
		position: sticky;
		top: var(--sp-l, 64px);
		padding-top: 16px;
	}

	.f-docs__list {
		grid-column: 4 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.f-docs__img,
	.f-docs__filter,
	.f-docs__link {
		transition: none;
	}
}

/* Encyclopedia: technical sheets ([flat69_models], [flat69_model_related]) */
.f-docs--models .f-docs__cover {
	aspect-ratio: 16 / 9;
	padding: 0;
	width: 96px;
}

.f-docs--models .f-docs__img {
	object-fit: cover;
	filter: brightness(.9);
}

/* Rows without a cover (resources of a sheet) */
.elementor .f-docs__link--plain,
.f-docs__link--plain {
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"name action"
		"meta action";
	padding: 16px;
}

.f-docs--resources .f-docs__link,
.f-docs--related .f-docs__link {
	background: var(--f-surface, #151517);
}

.f-docs--resources .f-docs__cover,
.f-docs--related .f-docs__cover {
	background: var(--f-surface-2, #202023);
}

@media (hover: hover) {
	.f-docs--resources .f-docs__link:hover,
	.f-docs--related .f-docs__link:hover {
		background: var(--f-surface-2, #202023);
	}
}

/* Cards (wheels) */
.f-docs--cards .f-docs__list,
.f-docs--colors .f-docs__list {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 2px;
}

.f-card {
	display: grid;
	align-content: start;
	gap: 4px;
	padding: 0 0 16px;
	background: var(--f-surface, #151517);
}

.f-card__media {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	margin-bottom: 12px;
	padding: 12px;
	background: var(--f-bg, #0b0b0c);
}

.f-card__img {
	display: block;
	width: 100%;
	max-width: 160px;
	height: auto;
	aspect-ratio: 13 / 12;
	object-fit: contain;
}

.f-card__name,
.f-card__meta {
	padding-inline: 16px;
}

.f-card__name {
	font-size: var(--fs-body, 1rem);
	line-height: 1.25;
}

.f-card__meta {
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
	font-variant-numeric: tabular-nums;
}

/* Colours ([flat69_colors]) */
.f-docs--colors .f-docs__list {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.f-color {
	display: grid;
	align-content: start;
	gap: 4px;
	padding: 0 16px 16px;
	background: var(--f-surface, #151517);
}

.f-color__swatch {
	display: block;
	aspect-ratio: 3 / 2;
	margin: 0 -16px 12px;
	overflow: hidden;
	background: var(--swatch, var(--f-surface-2, #202023));
}

.f-color__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.f-color__name {
	font-size: var(--fs-body, 1rem);
	line-height: 1.25;
}

.f-color__finish,
.f-color__gens,
.f-color__line {
	font-size: var(--fs-small, 0.875rem);
	line-height: 1.4;
	color: var(--f-muted, inherit);
}

.f-color__gens,
.f-color__gen {
	font-variant-numeric: tabular-nums;
	color: var(--f-ink, inherit);
}

.f-color__lines {
	display: grid;
	gap: 4px;
}

.f-color__line {
	display: block;
}

/* Country codes ([flat69_country_codes]) */
.f-codes {
	display: grid;
	gap: var(--sp-l, 64px);
	font-family: var(--f-font, inherit);
	color: var(--f-ink, inherit);
}

.f-codes [hidden] {
	display: none !important;
}

.f-codes__lookup {
	display: grid;
	gap: 8px;
	max-width: 36rem;
}

.f-codes__label {
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
}

.f-codes input.f-codes__input {
	width: 100%;
	max-width: 12rem;
	min-height: 72px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	font: inherit;
	font-size: var(--fs-head, 2.5rem);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: var(--f-ink, inherit);
	background: var(--f-surface, #151517);
	-webkit-appearance: none;
	appearance: none;
}

.f-codes input.f-codes__input::placeholder {
	color: var(--f-muted, inherit);
	opacity: .5;
}

.f-codes input.f-codes__input:focus {
	border: 0;
	box-shadow: none;
	outline: none;
}

.f-codes input.f-codes__input:focus-visible {
	outline: 2px solid var(--f-accent, #ee7d31);
	outline-offset: 3px;
}

.f-codes__result {
	min-height: 1.3em;
	margin: 8px 0 0;
	font-size: var(--fs-lead, 1.375rem);
	line-height: 1.3;
}

.f-codes__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 2px;
	font-size: var(--fs-body, 1rem);
}

.f-codes__caption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.f-codes__table th,
.f-codes__table td {
	padding: 12px 16px;
	border: 0;
	text-align: left;
	vertical-align: baseline;
}

.f-codes__table thead th {
	padding-block: 0 8px;
	font-size: var(--fs-small, 0.875rem);
	font-weight: 400;
	color: var(--f-muted, inherit);
	background: none;
}

.f-codes__table tbody th,
.f-codes__table tbody td {
	background: var(--f-surface, #151517);
	transition: background-color 250ms cubic-bezier(.25, .1, .25, 1), color 250ms cubic-bezier(.25, .1, .25, 1);
}

.f-codes__code {
	width: 5rem;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.f-codes__note {
	color: var(--f-muted, inherit);
	font-size: var(--fs-small, 0.875rem);
}

.f-codes__table tr.is-match th,
.f-codes__table tr.is-match td {
	color: var(--f-bg, #0b0b0c);
	background: var(--f-ink, #f2f2f0);
}

@media (max-width: 599px) {
	.f-codes__table th,
	.f-codes__table td {
		padding: 12px;
	}

	.f-codes__code {
		width: 3.5rem;
	}
}

/* Stories ([flat69_story]) */
.f-story {
	display: grid;
	gap: var(--sp-section, 160px);
	font-family: var(--f-font, inherit);
	color: var(--f-ink, inherit);
	container-type: inline-size;
}

.f-story--single {
	gap: 0;
}

.f-story__chapter {
	display: grid;
	gap: var(--sp-m, 32px);
	align-items: start;
}

.f-story__text {
	display: grid;
	gap: 16px;
	max-width: 40rem;
}

.f-story .f-story__title {
	margin: 0;
	font-size: var(--fs-head, 2.5rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.03em;
}

.f-story__when {
	margin: 0;
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
	font-variant-numeric: tabular-nums;
}

.f-story__body {
	font-size: var(--fs-body, 1rem);
	line-height: 1.6;
}

.f-story__body p {
	margin: 0 0 1em;
}

.f-story__body p:last-child {
	margin-bottom: 0;
}

.f-story__media {
	display: grid;
	gap: var(--sp-m, 32px);
	justify-items: start;
}

.f-story__figure,
.f-story__video {
	display: grid;
	gap: 8px;
	margin: 0;
}

.f-story__video {
	width: 100%;
}

/* Archive photos are small (125 to 300 px): shown as small prints, never stretched. */
.f-story__figure {
	justify-items: start;
}

.f-story__img {
	display: block;
	width: min(100%, 260px);
	max-width: 100%;
	height: auto;
	filter: brightness(.9) contrast(1.05);
}

.f-story__caption {
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
}

.elementor a.f-story__file,
.f-story__file {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	min-height: 48px;
	font-size: var(--fs-body, 1rem);
	color: var(--f-ink, inherit);
	text-decoration: underline;
	text-underline-offset: 0.25em;
	transition: color 250ms;
}

.elementor a.f-story__file:hover,
.f-story__file:focus-visible {
	color: var(--f-accent, #ee7d31);
}

.f-story__file:focus-visible {
	outline: 2px solid var(--f-accent, #ee7d31);
	outline-offset: 3px;
}

/* Video facade */
.f-video,
.f-video__frame {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.f-story button.f-video,
button.f-video {
	position: relative;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: var(--f-surface, #151517);
	cursor: pointer;
}

.f-video__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(.8);
	transition: filter 600ms cubic-bezier(.23, 1, .32, 1), scale 1200ms cubic-bezier(.23, 1, .32, 1);
}

.f-video__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--f-ink, #f2f2f0);
}

.f-video__play svg {
	width: 64px;
	height: 64px;
	padding: 20px;
	background: var(--f-scrim, rgba(11, 11, 12, .6));
	box-sizing: border-box;
}

button.f-video:focus-visible {
	outline: 2px solid var(--f-accent, #ee7d31);
	outline-offset: 3px;
}

@media (hover: hover) {
	button.f-video:hover .f-video__poster {
		filter: brightness(.95);
		scale: 1.02;
	}
}

@container (min-width: 900px) {
	.f-story__chapter {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: var(--sp-l, 64px);
	}

	.f-story__chapter:nth-child(even) .f-story__text {
		order: 2;
	}

	.f-story__chapter--text {
		grid-template-columns: minmax(0, 7fr);
	}
}

/* Technical sheet: key figures, specs, text */
.f-keyfigures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: var(--sp-m, 32px) var(--sp-m, 32px);
	margin: 0;
	font-family: var(--f-font, inherit);
	color: var(--f-ink, inherit);
}

.f-keyfigures__item {
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
}

.f-keyfigures__label {
	margin: 0;
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
}

.f-keyfigures__value {
	margin: 0;
	font-size: calc(var(--fs-lead, 1.375rem) * 1.6);
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.f-modelspecs {
	display: grid;
	gap: var(--sp-l, 64px) var(--sp-m, 32px);
	font-family: var(--f-font, inherit);
	color: var(--f-ink, inherit);
}

.f-modelspecs__group {
	display: grid;
	gap: 16px;
	align-content: start;
}

.f-modelspecs .f-modelspecs__title {
	margin: 0;
	font-size: var(--fs-lead, 1.375rem);
	font-weight: 400;
	line-height: 1.1;
}

.f-modelspecs__notes {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-small, 0.875rem);
	color: var(--f-muted, inherit);
}

@media (min-width: 1025px) {
	.f-modelspecs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.f-modelspecs__notes {
		grid-column: 1 / -1;
	}
}

.f-prose {
	max-width: 40rem;
	font-family: var(--f-font, inherit);
	font-size: var(--fs-body, 1rem);
	line-height: 1.65;
	color: var(--f-ink, inherit);
}

.f-prose p {
	margin: 0 0 1em;
}

.f-prose p:last-child {
	margin-bottom: 0;
}

@container (min-width: 720px) {
	.f-docs--models .f-docs__link {
		grid-template-columns: 128px minmax(0, 1fr) minmax(11rem, auto) 8rem 5rem;
	}

	.f-docs--models .f-docs__cover {
		width: 128px;
	}

	.elementor .f-docs__link--plain,
	.f-docs__link--plain {
		grid-template-columns: minmax(0, 1fr) minmax(12rem, auto) 5rem;
		grid-template-areas: "name meta action";
		padding: 20px 16px;
	}

	.f-docs--cards .f-docs__list {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}

	.f-docs--colors .f-docs__list {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.f-video__poster,
	.f-codes__table tbody th,
	.f-codes__table tbody td {
		transition: none;
	}
}

/* Title printed by a block shortcode, only when the block has content */
.f-blocktitle {
	margin: 0 0 var(--sp-m, 32px);
	font-family: var(--f-font, inherit);
	font-size: var(--fs-head, 2.5rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--f-ink, inherit);
}

.f-model-more {
	display: grid;
	gap: var(--sp-section, 160px);
}

.f-docs__more {
	margin: var(--sp-m, 32px) 0 0;
	font-family: var(--f-font, inherit);
}

/* The kit draws table rules: none here (DESIGN.md §5). */
.f-codes table.f-codes__table,
.f-codes .f-codes__table thead,
.f-codes .f-codes__table tbody,
.f-codes .f-codes__table tr,
.f-codes .f-codes__table th,
.f-codes .f-codes__table td {
	border: 0;
}

/* Google Maps ([flat69_map]) */
.f-map {
	position: relative;
	aspect-ratio: 21 / 9;
	background: var(--f-surface, #151517);
}

/* Dark map: the light Google tiles are inverted to stay in the dark room. */
.f-map__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(1) invert(.92) contrast(.9);
}

@media (max-width: 767px) {
	.f-map {
		aspect-ratio: 4 / 5;
	}
}
