/* Mt. Hood Guide — live conditions blocks. Works inside Elementor pages or the plugin templates. */

.mhg-cond {
	--mhg-navy: #023047;
	--mhg-amber: #ffb703;
	--mhg-teal: #219ebc;
	--mhg-orange: #fb8500;
	--mhg-ink: #0f0f17;
	--mhg-text: #4a5560;
	--mhg-muted: #6e6e6e;
	--mhg-line: #dadada;
	--mhg-smoke: #f6f7f8;
	--mhg-radius: 12px;
	--mhg-head: "Oswald", "Arial Narrow", sans-serif;
	--mhg-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

	box-sizing: border-box;
	color: var(--mhg-text);
	font-family: var(--mhg-body);
	font-size: 1rem;
	line-height: 1.55;
}

.mhg-cond *,
.mhg-cond *::before,
.mhg-cond *::after {
	box-sizing: inherit;
}

.mhg-cond a {
	color: var(--mhg-navy);
}

.mhg-cond .mhg-meta {
	color: var(--mhg-muted);
	font-size: 0.85rem;
}

/* Sections */
.mhg-cond__section {
	margin: 0 0 44px;
}

.mhg-cond__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--mhg-navy);
}

body .mhg-cond h2 {
	font-family: var(--mhg-head);
	font-weight: 600;
	font-size: 1.6rem;
	line-height: 1.15;
	color: var(--mhg-ink);
	letter-spacing: normal;
	text-transform: none;
	margin: 0;
}

body .mhg-cond h3 {
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 1.1rem;
	color: var(--mhg-navy);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 24px 0 12px;
}

.mhg-updated {
	font-size: 0.8rem;
	color: var(--mhg-muted);
}

.mhg-updated.is-stale {
	color: #a33a00;
	font-weight: 500;
}

.mhg-link {
	font-weight: 500;
	text-decoration: none;
}

.mhg-link:hover {
	text-decoration: underline;
}

/* Alerts */
.mhg-cond__alerts {
	display: grid;
	gap: 10px;
}

.mhg-alert {
	border-radius: 10px;
	padding: 12px 16px;
	border-left: 5px solid var(--mhg-teal);
	background: #eef7fa;
	color: var(--mhg-ink);
}

.mhg-alert summary {
	cursor: pointer;
	list-style-position: outside;
}

.mhg-alert__kind {
	display: inline-block;
	margin-right: 6px;
	font-family: var(--mhg-head);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.mhg-alert__body {
	margin-top: 10px;
	font-size: 0.92rem;
	color: var(--mhg-text);
}

.mhg-alert--moderate {
	border-left-color: var(--mhg-amber);
	background: #fff8e1;
}

.mhg-alert--severe {
	border-left-color: #c62828;
	background: #fdecea;
}

.mhg-alert--fire {
	border-left-color: var(--mhg-orange);
	background: #fff1e3;
}

.mhg-alert--road {
	border-left-color: #6a4c93;
	background: #f3eff9;
}

/* Right now */
.mhg-now-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}

.mhg-now {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border: 1px solid var(--mhg-line);
	border-radius: var(--mhg-radius);
	background: #fff;
}

.mhg-now__head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	align-items: baseline;
}

.mhg-now__name {
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 1.05rem;
	color: var(--mhg-ink);
}

.mhg-now__elev {
	font-size: 0.75rem;
	color: var(--mhg-muted);
	white-space: nowrap;
}

.mhg-now__main {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--mhg-navy);
}

.mhg-now__temp {
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--mhg-ink);
}

.mhg-now__short {
	font-size: 0.9rem;
	color: var(--mhg-text);
}

/* One location's card on its own, e.g. on a dark Elementor hero */
.mhg-now-grid--compact {
	grid-template-columns: minmax(0, 340px);
}

.mhg-now-grid--compact .mhg-now {
	box-shadow: 0 12px 32px rgba(2, 48, 71, 0.25);
	border: 0;
}

.mhg-now__source {
	padding-top: 8px;
	margin-top: 4px;
	border-top: 1px solid var(--mhg-line);
	font-size: 0.75rem;
	color: var(--mhg-muted);
}

.mhg-now__source .mhg-updated {
	font-size: inherit;
}

/* Forecast periods */
.mhg-periods {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(118px, 1fr);
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
}

.mhg-period {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	padding: 12px 8px;
	border-radius: 10px;
	background: var(--mhg-smoke);
	scroll-snap-align: start;
	color: var(--mhg-navy);
}

.mhg-period__name {
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 0.85rem;
	color: var(--mhg-ink);
}

.mhg-period__temp {
	font-family: var(--mhg-head);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--mhg-ink);
}

.mhg-period__short {
	font-size: 0.78rem;
	line-height: 1.3;
	color: var(--mhg-text);
}

.mhg-period__pop {
	font-size: 0.75rem;
	color: var(--mhg-teal);
	font-weight: 500;
}

.mhg-forecast {
	border: 1px solid var(--mhg-line);
	border-radius: var(--mhg-radius);
	padding: 12px 16px;
	margin-bottom: 10px;
}

.mhg-forecast summary {
	cursor: pointer;
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 1.1rem;
	color: var(--mhg-ink);
}

.mhg-forecast[open] summary {
	margin-bottom: 12px;
}

.mhg-gridline {
	margin: 10px 0 0;
}

/* Snow */
.mhg-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.mhg-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--mhg-navy);
	color: #fff;
}

.mhg-stat__label {
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.mhg-stat__value {
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 1.7rem;
	color: var(--mhg-amber);
}

.mhg-stat .mhg-meta {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.78rem;
}

.mhg-table-wrap {
	overflow-x: auto;
}

.mhg-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.mhg-table th,
.mhg-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--mhg-line);
	text-align: left;
	vertical-align: top;
	white-space: nowrap;
}

.mhg-table thead th {
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mhg-muted);
}

.mhg-table tbody th {
	font-weight: 500;
	color: var(--mhg-ink);
	white-space: normal;
}

.mhg-table tbody th .mhg-meta {
	display: block;
	font-weight: 400;
}

/* Avalanche */
.mhg-dangers {
	display: grid;
	gap: 8px;
	margin-bottom: 14px;
}

.mhg-danger {
	display: grid;
	grid-template-columns: 28px 150px 1fr;
	align-items: center;
	gap: 10px;
}

.mhg-danger__swatch {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Roads */
.mhg-reports {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.mhg-report {
	padding: 14px 16px;
	border-radius: 10px;
	border: 1px solid var(--mhg-line);
}

.mhg-report.is-chains {
	border-color: var(--mhg-orange);
	background: #fff6e8;
}

.mhg-report__chains {
	font-weight: 500;
	color: var(--mhg-ink);
	margin: 4px 0;
}

.mhg-list {
	margin: 0 0 16px;
	padding-left: 1.2em;
}

.mhg-list li {
	margin-bottom: 8px;
}

/* Cameras */
.mhg-cams {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.mhg-cam {
	margin: 0;
}

.mhg-cam img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 352 / 240;
	object-fit: cover;
	border-radius: 10px;
	background: var(--mhg-smoke);
}

.mhg-cam figcaption {
	font-size: 0.85rem;
	margin-top: 6px;
	color: var(--mhg-text);
}

.mhg-cond__sources {
	border-top: 1px solid var(--mhg-line);
	padding-top: 16px;
}

.mhg-icon {
	flex: 0 0 auto;
}

/* Day-use fee sites */
.mhg-fee-legend {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

body .mhg-cond .mhg-fee-legend__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border-radius: 10px;
	border: 2px solid transparent;
	border-top: 4px solid var(--mhg-teal);
	background: var(--mhg-smoke);
	color: var(--mhg-text);
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	overflow-wrap: anywhere;
	height: auto;
	cursor: pointer;
	transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

body .mhg-cond .mhg-fee-legend__item:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(2, 48, 71, 0.12);
}

body .mhg-cond .mhg-fee-legend__item.is-active {
	border-color: var(--mhg-navy);
	background: #fff;
	box-shadow: 0 8px 20px rgba(2, 48, 71, 0.16);
}

.mhg-fee-legend__top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.mhg-fee-legend__count {
	flex: 0 0 auto;
	padding: 2px 9px;
	border-radius: 999px;
	background: #fff;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--mhg-navy);
}

.mhg-fee-legend__cta {
	margin-top: auto;
	font-weight: 600;
	font-size: 0.82rem;
	color: var(--mhg-navy);
}

.mhg-fee-legend__item.is-active .mhg-fee-legend__cta::after {
	content: " ✓";
}

.mhg-fee-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-bottom: 12px;
}

.mhg-fee-search input {
	width: min(320px, 100%);
	padding: 10px 14px;
	border: 1px solid var(--mhg-line);
	border-radius: 10px;
	font: inherit;
	font-size: 0.95rem;
}

body .mhg-cond .mhg-fee-reset {
	padding: 8px 14px;
	border: 1px solid var(--mhg-navy);
	border-radius: 999px;
	background: #fff;
	color: var(--mhg-navy);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.mhg-fee-table tr[hidden] {
	display: none;
}

.mhg-fee-legend__item--annual_only {
	border-top-color: var(--mhg-amber);
}

.mhg-fee-legend__item--none {
	border-top-color: #9aa4ad;
}

.mhg-fee-legend__item strong {
	display: block;
	font-family: var(--mhg-head);
	font-weight: 500;
	color: var(--mhg-ink);
	margin-bottom: 4px;
}

.mhg-fee-legend__item p {
	margin: 0;
}

.mhg-fee-table td,
.mhg-fee-table th {
	white-space: normal;
	vertical-align: middle;
}

.mhg-fee-table td {
	text-align: center;
}

.mhg-fee-table td:nth-child(2) {
	text-align: left;
	white-space: nowrap;
}

.mhg-fee-table tbody th a {
	text-decoration: none;
}

.mhg-fee-table tbody th a:hover {
	text-decoration: underline;
}

.mhg-pass {
	display: inline-flex;
}

.mhg-pass--yes {
	color: #0a8a1f;
}

.mhg-pass--no {
	color: #c62828;
}

.mhg-fee-source {
	margin-top: 12px;
}

.mhg-cond .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Fixed columns, so filtering the rows never reflows the table. */
@media (min-width: 701px) {
	.mhg-fee-table {
		table-layout: fixed;
	}

	.mhg-fee-table thead th:nth-child(1) {
		width: 34%;
	}

	.mhg-fee-table thead th:nth-child(2) {
		width: 15%;
	}

	.mhg-fee-table thead th:nth-child(n+3) {
		width: 17%;
	}

	.mhg-fee-table td:nth-child(2) {
		white-space: normal;
	}

	/* The table fits on desktop, so drop the scroll box (it would stop the header sticking). */
	.mhg-fee-sites .mhg-table-wrap {
		overflow: visible;
	}

	/* Gold header that stays put while scrolling the list. */
	body .mhg-cond .mhg-fee-table thead th {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 2;
		background: var(--mhg-amber);
		color: var(--mhg-navy);
		font-weight: 600;
		border-color: rgba(2, 48, 71, 0.18);
		box-shadow: 0 2px 6px rgba(2, 48, 71, 0.15);
	}
}

@media (max-width: 700px) {
	.mhg-fee-table thead {
		display: none;
	}

	.mhg-fee-table tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 12px;
		padding: 12px 0;
		border-bottom: 1px solid var(--mhg-line);
	}

	.mhg-fee-table tbody th {
		grid-column: 1 / -1;
		border: 0;
		padding: 0;
	}

	.mhg-fee-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		border: 0;
		padding: 2px 0;
		font-size: 0.85rem;
		text-align: left;
	}

	.mhg-fee-table td::before {
		content: attr(data-label);
		color: var(--mhg-muted);
	}
}

@media (max-width: 600px) {
	.mhg-danger {
		grid-template-columns: 28px 1fr;
	}

	.mhg-danger strong {
		grid-column: 2;
	}
}

/* ------------------------------------------------------------------
   Richer weather look: tinted cards, big numbers, hourly strip.
   Tones come from Render::tone(): is-day, is-night, is-snow, is-wet.
   ------------------------------------------------------------------ */

.mhg-now,
.mhg-period,
.mhg-hour {
	--tone-bg: linear-gradient(165deg, #f4faff 0%, #dcecf9 100%);
	--tone-ink: var(--mhg-ink);
	--tone-sub: #4c5d6c;
	background: var(--tone-bg);
	color: var(--tone-ink);
	border: 1px solid rgba(2, 48, 71, 0.08);
	box-shadow: 0 6px 18px rgba(2, 48, 71, 0.08);
}

.is-day {
	--tone-bg: linear-gradient(165deg, #fdfaf1 0%, #e3f1fb 100%);
}

.is-night {
	--tone-bg: linear-gradient(165deg, #0f3554 0%, #1d4f76 100%);
	--tone-ink: #ffffff;
	--tone-sub: rgba(255, 255, 255, 0.75);
}

.is-snow {
	--tone-bg: linear-gradient(165deg, #ffffff 0%, #d9eefc 100%);
}

.is-wet {
	--tone-bg: linear-gradient(165deg, #eef3f8 0%, #cfdbe8 100%);
}

.mhg-now {
	border-radius: 18px;
	padding: 18px 18px 16px;
}

.mhg-now .mhg-now__name,
.mhg-now .mhg-now__temp,
.mhg-period .mhg-period__name,
.mhg-period .mhg-period__temp,
.mhg-hour .mhg-hour__temp {
	color: var(--tone-ink);
}

.mhg-now .mhg-now__short,
.mhg-now .mhg-meta,
.mhg-now .mhg-now__elev,
.mhg-period .mhg-period__short,
.mhg-hour .mhg-hour__time,
.mhg-hour .mhg-hour__feels {
	color: var(--tone-sub);
}

.mhg-now__main {
	gap: 10px;
	align-items: center;
}

.mhg-now__temp {
	font-size: 3.2rem;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.mhg-now__feels {
	align-self: flex-start;
	margin: -4px 0 2px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.75rem;
	white-space: nowrap;
	background: rgba(255, 183, 3, 0.18);
	color: var(--tone-ink);
}

.is-night .mhg-now__feels {
	background: rgba(255, 255, 255, 0.14);
}

/* On a dark Elementor hero: a bright, frosted card regardless of tone */
.mhg-now-grid--compact .mhg-now {
	--tone-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(232, 243, 252, 0.95) 100%);
	--tone-ink: var(--mhg-ink);
	--tone-sub: #4c5d6c;
	backdrop-filter: blur(6px);
}

/* Hourly strip */
.mhg-hourly {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(84px, 1fr);
	gap: 10px;
	overflow-x: auto;
	padding: 4px 2px 12px;
	margin-bottom: 18px;
	scroll-snap-type: x proximity;
}

.mhg-hour {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 6px 10px;
	border-radius: 16px;
	text-align: center;
	scroll-snap-align: start;
}

.mhg-hour__time {
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mhg-hour__temp {
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 1.45rem;
	line-height: 1.1;
}

.mhg-hour__feels {
	font-size: 0.72rem;
}

.mhg-hour__pop {
	font-size: 0.72rem;
	font-weight: 500;
	color: #1e7fd6;
}

.is-night .mhg-hour__pop,
.is-night .mhg-period__pop {
	color: #8fd3ff;
}

/* Daily periods */
.mhg-period {
	border-radius: 16px;
	padding: 14px 8px 12px;
}

.mhg-period__temp {
	font-size: 1.7rem;
}

.mhg-icon {
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
}

/* ------------------------------------------------------------------ quick links */
.mhg-quick {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e3e8ec;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(2, 48, 71, 0.06);
}

body .mhg-cond .mhg-quick__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-height: 112px;
	padding: 16px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--mhg-smoke);
	color: var(--mhg-navy);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body .mhg-cond .mhg-quick__tile:hover {
	border-color: var(--mhg-navy);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(2, 48, 71, 0.12);
}

.mhg-quick__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--mhg-teal);
	font-size: 17px;
	box-shadow: 0 2px 6px rgba(2, 48, 71, 0.08);
}

.mhg-quick__label {
	font-family: var(--mhg-head);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.mhg-quick__ext {
	font-size: 0.65em;
	opacity: 0.5;
	vertical-align: 0.15em;
}

.mhg-quick__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
	background: #fff;
	color: var(--mhg-muted);
}

.mhg-quick__badge.is-ok {
	background: #e3f5e8;
	color: #186a2f;
}

.mhg-quick__badge.is-warn {
	background: #fff1cc;
	color: #7a5300;
}

.mhg-quick__badge.is-alert {
	background: #fde2e1;
	color: #a1261b;
}

body .mhg-cond .mhg-quick__tile.is-current {
	background: var(--mhg-navy);
	color: #fff;
}

.mhg-quick__tile.is-current .mhg-quick__icon {
	background: rgba(255, 255, 255, 0.12);
	color: var(--mhg-amber);
	box-shadow: none;
}

@media (max-width: 1024px) {
	.mhg-quick {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.mhg-quick {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 10px;
		gap: 8px;
	}

	body .mhg-cond .mhg-quick__tile {
		min-height: 96px;
		padding: 12px;
	}

	.mhg-quick__badge {
		position: static;
	}
}

/* ------------------------------------------------------------- ranger contacts */
.mhg-rangers__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e3e8ec;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(2, 48, 71, 0.06);
}

.mhg-ranger {
	display: flex;
	gap: 12px;
	padding: 14px;
	border-radius: 12px;
	background: var(--mhg-smoke);
}

.mhg-ranger__icon {
	flex: 0 0 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: var(--mhg-teal);
	font-size: 14px;
}

.mhg-ranger__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	font-size: 0.88rem;
	line-height: 1.4;
}

.mhg-ranger__name {
	font-family: var(--mhg-head);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.2;
	color: var(--mhg-navy);
}

body .mhg-cond .mhg-ranger__phone {
	color: var(--mhg-navy);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.mhg-ranger__phone i {
	font-size: 0.8em;
	color: var(--mhg-teal);
}

body .mhg-cond .mhg-ranger__addr {
	color: var(--mhg-muted);
	text-decoration: none;
}

body .mhg-cond .mhg-ranger__phone:hover,
body .mhg-cond .mhg-ranger__addr:hover {
	text-decoration: underline;
}

/* Footer: same layout on the navy footer. */
.mhg-rangers--footer {
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mhg-rangers__title {
	margin: 0 0 14px;
	font-family: var(--mhg-head);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.mhg-rangers--footer .mhg-rangers__grid {
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

.mhg-rangers--footer .mhg-ranger {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.mhg-rangers--footer .mhg-ranger__icon {
	background: rgba(255, 255, 255, 0.1);
	color: var(--mhg-amber);
}

.mhg-rangers--footer .mhg-ranger__name {
	color: #fff;
}

body .mhg-cond .mhg-rangers--footer .mhg-ranger__phone {
	color: var(--mhg-amber);
}

.mhg-rangers--footer .mhg-ranger__phone i {
	color: var(--mhg-amber);
}

body .mhg-cond .mhg-rangers--footer .mhg-ranger__addr {
	color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 1024px) {
	.mhg-rangers__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.mhg-rangers__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------- Forest Service alerts */
.mhg-fsalerts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}

body .mhg-cond .mhg-fsalert {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid #e3e8ec;
	border-left: 5px solid var(--mhg-teal);
	border-radius: 12px;
	background: #fff;
	color: var(--mhg-text);
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body .mhg-cond .mhg-fsalert:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(2, 48, 71, 0.1);
}

.mhg-fsalert.is-critical { border-left-color: #c62828; }
.mhg-fsalert.is-fire-restriction { border-left-color: var(--mhg-orange); }
.mhg-fsalert.is-caution { border-left-color: var(--mhg-amber); }

.mhg-fsalert__level {
	align-self: flex-start;
	padding: 2px 9px;
	border-radius: 999px;
	background: #e6f3f8;
	color: #0b5f78;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mhg-fsalert.is-critical .mhg-fsalert__level { background: #fde2e1; color: #a1261b; }
.mhg-fsalert.is-fire-restriction .mhg-fsalert__level { background: #ffe9d6; color: #8a3b00; }
.mhg-fsalert.is-caution .mhg-fsalert__level { background: #fff1cc; color: #7a5300; }

.mhg-fsalert__title {
	color: var(--mhg-navy);
	font-size: 1.02rem;
	line-height: 1.3;
}

.mhg-fsalert__summary {
	font-size: 0.9rem;
	line-height: 1.5;
}

.mhg-fsalert__more {
	margin-top: auto;
	color: var(--mhg-navy);
	font-size: 0.85rem;
	font-weight: 500;
}

/* ------------------------------------------------------------------------ map */
.mhg-map__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

body .mhg-cond .mhg-map__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--mhg-smoke);
	color: var(--mhg-navy);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

body .mhg-cond .mhg-map__chip i {
	color: var(--c);
}

body .mhg-cond .mhg-map__chip span {
	padding: 1px 7px;
	border-radius: 999px;
	background: #fff;
	color: var(--mhg-muted);
	font-size: 0.75rem;
}

body .mhg-cond .mhg-map__chip.is-on {
	opacity: 1;
	border-color: var(--c);
	background: #fff;
}

body .mhg-cond .mhg-map__chip:hover {
	border-color: var(--mhg-navy);
}

.mhg-map__canvas {
	border: 1px solid #e3e8ec;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(2, 48, 71, 0.08);
	z-index: 0;
}

.mhg-pin span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--c);
	color: #fff;
	font-size: 13px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.mhg-map .leaflet-popup-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 180px;
	margin: 12px 14px;
	font-family: var(--mhg-body);
	font-size: 0.9rem;
}

.mhg-map .leaflet-popup-content img {
	width: 100%;
	height: 96px;
	object-fit: cover;
	border-radius: 8px;
}

.mhg-map .leaflet-popup-content strong {
	color: var(--mhg-navy);
	font-size: 1rem;
	line-height: 1.25;
}

.mhg-map .leaflet-popup-content a {
	color: var(--mhg-teal);
	font-weight: 500;
}
