:root {
	--fdm-ink: #17242c;
	--fdm-paper: #f7f2e8;
	--fdm-copper: #9a4d38;
	--fdm-moss: #416555;
	--fdm-line: #d8cdbb;
}

.fdm-search {
	background: var(--fdm-paper);
	border: 1px solid var(--fdm-line);
	color: var(--fdm-ink);
	padding: clamp(24px, 5vw, 56px);
}

.fdm-search__intro {
	max-width: 720px;
}

.fdm-search__intro h2 {
	font-size: clamp(1.8rem, 4vw, 3.4rem);
	line-height: 1.04;
	margin: .18em 0 .35em;
}

.fdm-eyebrow,
.fdm-card__type {
	color: var(--fdm-copper);
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.fdm-search__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 18px;
	margin-top: 28px;
}

.fdm-finder__progress {
	display: flex;
	grid-column: 1 / -1;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--fdm-line);
	color: #4f5c62;
	font-size: .8rem;
	margin: 0;
	padding-bottom: 12px;
}

.fdm-finder__progress [data-fdm-finder-progress] {
	color: var(--fdm-copper);
	font-weight: 800;
}

.fdm-finder [data-fdm-finder-step] {
	grid-column: 1 / -1;
}

.fdm-finder [data-fdm-finder-step][hidden] {
	display: none;
}

.fdm-finder__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

.fdm-finder__back {
	background: transparent;
	color: var(--fdm-ink);
}

.fdm-fieldset {
	border: 1px solid var(--fdm-line);
	grid-column: 1 / -1;
	margin: 0;
	padding: 18px;
}

.fdm-fieldset--place {
	grid-column: auto;
}

.fdm-fieldset legend {
	background: var(--fdm-paper);
	color: var(--fdm-moss);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .09em;
	padding: 0 8px;
	text-transform: uppercase;
}

.fdm-choice-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
}

.fdm-choice-grid label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	background: #fff;
	border: 1px solid var(--fdm-line);
	cursor: pointer;
	font-size: .86rem;
	line-height: 1.35;
	padding: 12px;
}

.fdm-choice-grid input {
	flex: 0 0 auto;
	margin-top: .2em;
}

.fdm-field__help {
	color: #4f5c62;
	font-size: .8rem;
	margin: 7px 0 0;
}

.fdm-field label {
	display: block;
	font-size: .86rem;
	font-weight: 700;
	margin-bottom: 7px;
}

.fdm-field input,
.fdm-field select,
.fdm-field textarea {
	background: #fff;
	border: 1px solid #887c6c;
	border-radius: 0;
	box-sizing: border-box;
	color: var(--fdm-ink);
	font: inherit;
	min-height: 48px;
	padding: 10px 12px;
	width: 100%;
}

.fdm-field input:focus,
.fdm-field select:focus,
.fdm-field textarea:focus,
.fdm-button:focus,
.fdm-guidance a:focus,
.fdm-card a:focus {
	outline: 3px solid #bd6a4d;
	outline-offset: 3px;
}

.fdm-button {
	background: var(--fdm-ink);
	border: 1px solid var(--fdm-ink);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 750;
	min-height: 48px;
	padding: 10px 20px;
}

.fdm-search__form > .fdm-button {
	align-self: end;
	min-height: 56px;
}

.fdm-results {
	border-top: 1px solid var(--fdm-line);
	margin-top: 34px;
	padding-top: 24px;
}

.fdm-results__count,
.fdm-card__verified,
.fdm-card__location {
	font-size: .86rem;
}

.fdm-guidance {
	background: #fff;
	border: 1px solid var(--fdm-line);
	box-shadow: 0 18px 42px rgb(23 36 44 / .08);
	display: grid;
	gap: clamp(20px, 3vw, 34px);
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
	margin: 0 0 28px;
	padding: clamp(22px, 4vw, 38px);
}

.fdm-guidance__intro h3,
.fdm-guidance__questions h4 {
	margin-top: 0;
}

.fdm-guidance__intro > :last-child,
.fdm-guidance__candidates li > :last-child,
.fdm-guidance__questions > :last-child {
	margin-bottom: 0;
}

.fdm-guidance__candidates {
	counter-reset: fdm-guidance;
	display: grid;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fdm-guidance__candidates li {
	border-left: 3px solid var(--fdm-copper);
	counter-increment: fdm-guidance;
	padding: 4px 0 4px 18px;
}

.fdm-guidance__candidates h4 {
	font-size: 1.1rem;
	margin: .2em 0 .45em;
}

.fdm-guidance__candidates h4 a {
	color: var(--fdm-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.fdm-guidance__questions {
	background: #f3eee4;
	grid-column: 1 / -1;
	padding: 20px;
}

.fdm-guidance__questions ul {
	display: grid;
	gap: 8px;
	margin-bottom: 0;
	padding-left: 20px;
}

.fdm-results__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.fdm-results__layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: clamp(22px, 4vw, 48px);
	align-items: start;
}

.fdm-card {
	background: #fff;
	border-top: 3px solid var(--fdm-copper);
	padding: 20px;
}

.fdm-card.is-corresponding {
	box-shadow: 0 0 0 3px var(--fdm-copper);
}

.fdm-card h3 {
	font-size: 1.24rem;
	margin: .3em 0 .65em;
}

.fdm-card h3 a {
	color: var(--fdm-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.fdm-card__location {
	color: var(--fdm-moss);
	font-weight: 700;
}

.fdm-card__match {
	color: var(--fdm-copper);
	font-size: .82rem;
	font-weight: 700;
}

.fdm-card__verified {
	border-top: 1px solid var(--fdm-line);
	margin-top: 16px;
	padding-top: 12px;
}

.fdm-empty {
	background: #fff;
	border-left: 4px solid var(--fdm-copper);
	padding: 20px;
}

.fdm-map-panel {
	background: #ebe4d7;
	border: 1px solid var(--fdm-line);
	padding: 20px;
}

.fdm-map-panel h3 {
	font-size: 1.18rem;
	margin: 0 0 8px;
}

.fdm-map-panel > p,
.fdm-map figcaption,
.fdm-map-panel__empty {
	color: #4f5c62;
	font-size: .8rem;
}

.fdm-map {
	margin: 18px 0 0;
}

.fdm-map__canvas {
	aspect-ratio: 300 / 340;
	margin: 0 auto;
	max-width: 300px;
	position: relative;
}

.fdm-map__shape {
	filter: drop-shadow(0 10px 18px rgb(23 36 44 / .12));
	height: 100%;
	width: 100%;
}

.fdm-map__shape path {
	fill: #d5c8b4;
	stroke: #8f806b;
	stroke-width: 2;
}

.fdm-map__shape .fdm-map__island {
	fill: #d5c8b4;
}

.fdm-map__markers {
	inset: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
}

.fdm-map__markers li {
	left: var(--fdm-map-x);
	position: absolute;
	top: var(--fdm-map-y);
	transform: translate(-50%, -50%);
}

.fdm-map__markers a {
	background: var(--fdm-copper);
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 3px 9px rgb(23 36 44 / .3);
	display: block;
	height: 32px;
	width: 32px;
}

.fdm-map__markers a:focus {
	outline: 3px solid var(--fdm-ink);
	outline-offset: 3px;
}

.fdm-map__markers li.is-corresponding a {
	background: var(--fdm-ink);
	box-shadow: 0 0 0 5px rgb(154 77 56 / .28), 0 3px 9px rgb(23 36 44 / .3);
	transform: scale(1.16);
}

.fdm-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border-top: 1px solid var(--fdm-line);
	font-size: .86rem;
	margin-top: 22px;
	padding-top: 16px;
}

.fdm-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--fdm-line);
	border: 1px solid var(--fdm-line);
}

.fdm-stats div {
	display: flex;
	flex-direction: column-reverse;
	gap: 6px;
	background: var(--fdm-paper);
	padding: 20px;
}

.fdm-stats dt {
	font-size: .78rem;
	font-weight: 750;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.fdm-stats dd {
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 750;
	line-height: 1;
	margin: 0;
}

.fdm-nomenclature {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fdm-nomenclature li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--fdm-line);
	padding: 12px 0;
}

.fdm-nomenclature span {
	color: var(--fdm-moss);
	font-size: .8rem;
}

.fdm-contribution {
	background: var(--fdm-paper);
	border: 1px solid var(--fdm-line);
	color: var(--fdm-ink);
	padding: clamp(24px, 5vw, 56px);
}

.fdm-contribution__header {
	max-width: 760px;
}

.fdm-contribution__header h2 {
	font-size: clamp(1.7rem, 3vw, 2.8rem);
	line-height: 1.08;
	margin: .18em 0 .35em;
}

.fdm-contribution__form {
	margin-top: 28px;
}

.fdm-contribution__steps {
	display: grid;
	gap: 22px;
}

.fdm-contribution__step {
	border: 1px solid var(--fdm-line);
	margin: 0;
	padding: clamp(18px, 3vw, 28px);
}

.fdm-contribution__step legend {
	background: var(--fdm-paper);
	color: var(--fdm-moss);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .08em;
	padding: 0 10px;
	text-transform: uppercase;
}

.fdm-contribution__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.fdm-contribution .fdm-field--wide,
.fdm-contribution .fdm-field--checkbox {
	grid-column: 1 / -1;
}

.fdm-contribution .fdm-field textarea {
	min-height: 150px;
	resize: vertical;
}

.fdm-contribution .description,
.fdm-contribution__privacy {
	color: #4f5c62;
	font-size: .86rem;
	margin: 7px 0 0;
}

.fdm-checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
}

.fdm-checkbox input {
	flex: 0 0 auto;
	min-height: auto;
	margin-top: .2em;
	width: auto;
}

.fdm-contribution__privacy {
	border-top: 1px solid var(--fdm-line);
	margin: 24px 0 16px;
	padding-top: 16px;
}

.fdm-form-message {
	background: #fff;
	border-left: 4px solid var(--fdm-moss);
	margin: 20px 0;
	padding: 16px 18px;
}

.fdm-form-message--error {
	border-left-color: #a33131;
}

.fdm-form-message ul {
	margin-bottom: 0;
}

.fdm-form-message:focus {
	outline: 3px solid var(--fdm-ink);
	outline-offset: 4px;
}

.fdm-form-message--error a,
.fdm-field__error {
	color: #7f2525;
}

.fdm-field__error {
	font-size: .86rem;
	font-weight: 700;
	margin: 7px 0 0;
}

.fdm-field [aria-invalid="true"] {
	border-color: #7f2525;
	box-shadow: 0 0 0 1px #7f2525;
}

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

@media (max-width: 900px) {
	.fdm-guidance {
		grid-template-columns: 1fr;
	}

	.fdm-results__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fdm-results__layout {
		grid-template-columns: 1fr;
	}

	.fdm-choice-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fdm-fieldset:not(.fdm-fieldset--place) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.fdm-search__form,
	.fdm-results__grid,
	.fdm-choice-grid,
	.fdm-contribution__grid,
	.fdm-stats,
	.fdm-nomenclature {
		grid-template-columns: 1fr;
	}

	.fdm-field--query,
	.fdm-fieldset--place,
	.fdm-search__form > .fdm-button {
		grid-column: auto;
	}

	.fdm-pagination {
		align-items: stretch;
		flex-direction: column;
	}

	.fdm-finder__progress,
	.fdm-finder__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.fdm-contribution .fdm-field--wide,
	.fdm-contribution .fdm-field--checkbox {
		grid-column: auto;
	}
}
