html,
body,
button {
	font-family: "Inter", Arial, sans-serif;
}

.screen-reader-text {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.byf-frost-map {
	--byf-border: #d9dfdc;
	--byf-green: #315c43;
	--byf-green-dark: #244a34;
	--byf-pale: #f4f7f5;
	--byf-text: #243029;
	background: #fff;
	border: 1px solid var(--byf-border);
	border-radius: 6px;
	color: var(--byf-text);
	font-family: "Inter", Arial, sans-serif;
	margin: 1.25rem 0;
	overflow: visible;
}

.byf-frost-map *,
.byf-frost-map *::before,
.byf-frost-map *::after { box-sizing: border-box; }

.byf-frost-map__night-selector {
	display: flex;
	gap: .6rem;
	padding: .85rem 1rem;
	border-bottom: 1px solid var(--byf-border);
}

.byf-frost-map button {
	border-radius: 3px;
	font: inherit;
}

.byf-frost-map__night-button,
.byf-frost-map__time-button {
	background: #fbfcfb;
	border: 1px solid #bdc8c2;
	color: #243029;
	cursor: pointer;
	font-weight: 600;
	min-height: 2.65rem;
	padding: .55rem .9rem;
}

.byf-frost-map__night-button {
	font-size: 1.025em;
	min-height: 2.9rem;
	padding: .65rem 1.15rem;
}

.byf-frost-map__night-button.is-active {
	background: var(--byf-green-dark);
	border-color: var(--byf-green-dark);
	color: #fff;
}
.byf-frost-map__night-button:hover:not(.is-active),
.byf-frost-map__time-button:hover { background: var(--byf-pale); border-color: var(--byf-green); }

.byf-frost-map button:focus-visible { outline: 3px solid #e1a72b; outline-offset: 2px; }
.byf-frost-map button:disabled { cursor: not-allowed; opacity: .45; }

.byf-frost-map__map-panel { min-width: 0; padding: .9rem 1rem 1rem; }
.byf-frost-map__notice { background: #fff6d9; border-left: 3px solid #c28a13; font-size: .85em; margin: 0 0 .8rem; padding: .55rem .7rem; }
.byf-frost-map__figure { align-items: center; background: #f3f6f5; border-radius: 3px; display: flex; justify-content: center; margin: 0 auto; max-width: 900px; overflow: visible; width: 100%; }
.byf-frost-map__image { display: block; height: auto; max-height: 650px; max-width: 100%; object-fit: contain; width: auto; }

.byf-frost-map__time-controls {
	align-items: center;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(5.25rem, auto) minmax(7rem, 1fr) minmax(5.25rem, auto);
	margin-top: .85rem;
}

.byf-frost-map__time-button { font-size: 1.025em; min-height: 2.85rem; padding: .65rem 1rem; }
.byf-frost-map__time { align-self: center; line-height: 1.15; margin: 0; text-align: center; }
.byf-frost-map__time strong { color: var(--byf-green-dark); display: block; font-size: 1.75em; font-variant-numeric: tabular-nums; font-weight: 700; }
.byf-frost-map__date { font-size: .9em; font-weight: 600; margin: .25rem 0 0; text-align: center; }
.byf-frost-map__attribution { font-size: .7em; margin: .55rem 0 0; opacity: .7; text-align: center; }

@media (max-width: 760px) {
	.byf-frost-map__night-selector { display: grid; grid-template-columns: 1fr 1fr; }
	.byf-frost-map__night-button { padding-left: .35rem; padding-right: .35rem; }
	.byf-frost-map__map-panel { padding: .75rem; }
	.byf-frost-map__time-controls { gap: .4rem; }
	.byf-frost-map__time-button { padding-left: .55rem; padding-right: .55rem; }
}

@media (max-width: 420px) {
	.byf-frost-map__time-button { font-size: .9em; }
}

@media (prefers-reduced-motion: reduce) {
	.byf-frost-map * { scroll-behavior: auto !important; }
}
