@font-face {
	font-family: "Metropolis";
	src: url("./Metropolis-Regular-fixed.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Metropolis";
	src: url("./Metropolis-Bold-fixed.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "GaramondLocal";
	src: url("./Garamond.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--green: #18453B;
	--excellence: #0B9A6D;
	--kelly: #008208;

	--ink: #111;
	--muted: #6b7280;
	--card: #fff;
	--bg: #f6f7f9;
	--border: #e5e7eb;
	--ring: rgba(24, 69, 59, .25);
	--pill-bg: rgba(11, 154, 109, .12);
}

* {
	box-sizing: border-box
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.5 "Metropolis", Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

header {
	position: sticky;
	top: 0;
	z-index: 5;
	background: var(--card);
	border-bottom: 1px solid var(--border);
	padding: 14px 16px;
}

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.about {
	color: var(--muted);
	font-size: .95rem;
	margin-top: 6px;
}

.about[hidden] {
	display: none;
}

header h1 {
	margin: 0 0 4px;
	font-size: 1.2rem;
	color: var(--green);
	letter-spacing: .2px;
	font-family: "GaramondLocal", Garamond, Georgia, serif;
	font-weight: 700;
}

.wrap {
	max-width: 1000px;
	margin: 16px auto;
	padding: 0 12px;
}

.controls {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr auto;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 12px;
	align-items: end;
}

@media (max-width:820px) {
	.controls {
		grid-template-columns: 1fr;
	}
}

label {
	font-size: .8rem;
	color: #4b5563;
	margin-bottom: 6px;
	display: block;
}

input,
select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	outline: none;
	font-family: inherit;
}

input:focus,
select:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 4px var(--ring);
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 700;
	transition: transform .04s ease, filter .12s ease;
	font-family: "Metropolis", Arial, Helvetica, sans-serif;
}

.btn:active {
	transform: translateY(1px);
}

.btn.primary {
	background: var(--kelly);
	color: #fff;
	border-color: var(--kelly);
}

.btn.primary:hover {
	filter: brightness(.95);
}

.btnbar {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

.status {
	margin: 12px 0 0;
	color: #4b5563;
}

.results {
	margin-top: 14px;
	display: grid;
	gap: 10px;
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 14px;
}

.card p {
	margin: .25rem 0 0 0;
}

.muted {
	color: var(--muted);
	font-size: .92rem;
}

@media (max-width:600px) {
	.muted {
		font-size: .9rem;
	}
}

.name-row {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.name-row h3 {
	margin: 0;
	font-size: 1.08rem;
	color: var(--green);
	display: flex;
	gap: 10px;
	align-items: center;
	font-family: "GaramondLocal", Garamond, Georgia, serif;
	font-weight: 700;
}

.name-row h3 a {
	color: var(--green);
	text-decoration: none;
}

.name-row h3 a:hover {
	text-decoration: underline;
}

.inline-pills {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.pill {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--excellence);
	border-radius: 999px;
	background: var(--pill-bg);
	font-size: .75rem;
	color: var(--excellence);
	white-space: nowrap;
	font-weight: 700;
}

.section-title {
	margin: 18px 0 8px;
	font-size: 1.05rem;
	color: #243041;
	font-family: "GaramondLocal", Garamond, Georgia, serif;
	font-weight: 700;
}

#map-wrap {
	margin-top: 18px;
}

#map {
	height: 380px;
	border: 1px solid var(--border);
	border-radius: 12px;
}

@media (max-width:600px) {
	#map {
		height: 320px;
	}
}

.backlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0 12px;
	text-decoration: none;
	color: #0b57d0;
}

.backlink:hover {
	text-decoration: underline;
}

.spinner {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(255, 255, 255, .7);
	backdrop-filter: blur(2px);
	display: grid;
	place-items: center;
}

.spinner[hidden] {
	display: none;
}

.spinner-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.loader {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 4px solid #e5e7eb;
	border-top-color: var(--green);
	animation: spin 1s linear infinite;
}

.spinner-text {
	color: var(--green);
	font-weight: 700;
	font-family: "Metropolis", Arial, Helvetica, sans-serif;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.desc-html{ margin:.5rem 0 0; font-size:.95rem; }
.desc-html p{ margin:.35rem 0; }
.desc-html ul{ margin:.35rem 0 .35rem 1.25rem; padding:0; }
.desc-html li{ margin:.2rem 0; }
.desc-html a{ color:#0b57d0; text-decoration:underline; }
