/*
 * Region 9 Weather live components
 * Current conditions, warning feeds, radar, iframe, and official links.
 */

.r9-conditions,
.r9-forecast,
.r9-radar,
.r9-alert-feed,
.r9-generic-embed,
.r9-official-links {
	--r9-midnight: #00152f;
	--r9-navy: #05234d;
	--r9-navy-soft: #0b376d;
	--r9-blue: #154f90;
	--r9-blue-bright: #2c69a3;
	--r9-red: #d71920;
	--r9-red-dark: #a80f19;
	--r9-gold: #dda01a;
	--r9-gold-bright: #facc2f;
	--r9-gold-dark: #9a6008;
	--r9-ink: #05234d;
	--r9-muted: #526982;
	--r9-line: #ced9e5;
	--r9-surface: #fff;
	--r9-bg: #f1f5f9;
	--r9-shadow: 0 22px 54px rgba(5, 35, 77, 0.13);
	box-sizing: border-box;
	color: var(--r9-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.r9-conditions *,
.r9-forecast *,
.r9-radar *,
.r9-alert-feed *,
.r9-generic-embed *,
.r9-official-links * {
	box-sizing: border-box;
}

.r9-conditions {
	background:
		radial-gradient(circle at 7% 0, rgba(44, 105, 163, 0.16), transparent 31rem),
		radial-gradient(circle at 96% 18%, rgba(250, 204, 47, 0.13), transparent 28rem),
		linear-gradient(180deg, #f8fafc 0%, var(--r9-bg) 100%);
	border: 1px solid rgba(5, 35, 77, 0.1);
	border-radius: 26px;
	box-shadow: var(--r9-shadow);
	container-name: r9-conditions;
	container-type: inline-size;
	margin: 1.5rem auto;
	max-width: 1500px;
	overflow: hidden;
	padding: clamp(1.15rem, 3vw, 2.2rem);
	position: relative;
}

.r9-conditions::before {
	background-image:
		linear-gradient(rgba(5, 35, 77, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(5, 35, 77, 0.028) 1px, transparent 1px);
	background-size: 36px 36px;
	content: "";
	inset: 0;
	mask-image: linear-gradient(to bottom, #000, transparent 74%);
	opacity: 0.55;
	pointer-events: none;
	position: absolute;
}

.r9-conditions > * {
	position: relative;
	z-index: 1;
}

.r9-conditions__stripe {
	background: linear-gradient(
		90deg,
		var(--r9-midnight) 0 56%,
		var(--r9-blue) 56% 72%,
		var(--r9-gold-dark) 72% 79%,
		var(--r9-gold-bright) 88%,
		var(--r9-gold) 100%
	);
	height: 8px;
	inset: 0 0 auto;
	position: absolute;
	z-index: 2;
}

.r9-conditions__header {
	align-items: center;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	padding: 0.6rem 0 1.45rem;
}

.r9-conditions__branding {
	align-items: center;
	display: flex;
	gap: clamp(1.1rem, 2.6vw, 2.6rem);
	min-width: 0;
}

.r9-conditions__brand {
	display: block;
	flex: 0 0 clamp(170px, 19vw, 270px);
	text-decoration: none;
}

.r9-conditions__brand img {
	display: block;
	filter:
		drop-shadow(0 9px 14px rgba(5, 35, 77, 0.14))
		drop-shadow(0 2px 2px rgba(5, 35, 77, 0.1));
	height: auto;
	max-width: 100%;
	width: 100%;
}

.r9-conditions__eyebrow,
.r9-warning-banner__kicker,
.r9-alert-detail__kicker {
	color: var(--r9-gold-dark);
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.17em;
	margin: 0 0 0.35rem;
	text-transform: uppercase;
}

.r9-conditions h2 {
	color: var(--r9-navy);
	font-size: clamp(1.7rem, 3.2vw, 3.25rem);
	font-weight: 850;
	letter-spacing: -0.045em;
	line-height: 1;
	margin: 0;
}

.r9-conditions__intro {
	color: var(--r9-muted);
	font-size: 0.84rem;
	line-height: 1.5;
	margin: 0.7rem 0 0;
	max-width: 48rem;
}

.r9-conditions__controls {
	align-items: center;
	display: grid;
	flex: 0 0 auto;
	gap: 0.55rem;
	grid-template-columns: auto auto;
	justify-content: end;
}

.r9-live-status,
.r9-refresh {
	align-items: center;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(5, 35, 77, 0.12);
	border-radius: 999px;
	box-shadow: 0 7px 22px rgba(5, 35, 77, 0.07);
	color: var(--r9-ink);
	display: inline-flex;
	font-size: 0.69rem;
	font-weight: 800;
	gap: 0.55rem;
	justify-content: center;
	line-height: 1;
	min-height: 40px;
	padding: 0 0.85rem;
}

.r9-live-status__dot {
	background: #18a85b;
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(24, 168, 91, 0.11);
	height: 8px;
	width: 8px;
}

.r9-live-status__dot.is-delayed {
	background: var(--r9-gold-bright);
	box-shadow: 0 0 0 5px rgba(250, 204, 47, 0.17);
}

.r9-refresh {
	cursor: pointer;
	font-family: inherit;
	transition:
		border-color 160ms ease,
		box-shadow 160ms ease,
		transform 160ms ease;
}

.region9-weather-site .r9-refresh {
	background: rgba(255, 255, 255, 0.88);
	color: var(--r9-ink);
	letter-spacing: 0;
	padding: 0 0.9rem;
	text-transform: none;
}

.r9-refresh:hover:not(:disabled) {
	border-color: rgba(21, 79, 144, 0.4);
	box-shadow: 0 10px 24px rgba(5, 35, 77, 0.11);
	transform: translateY(-1px);
}

.r9-refresh:disabled {
	cursor: wait;
	opacity: 0.7;
}

.r9-refresh__icon {
	font-size: 1.2rem;
	line-height: 1;
}

.r9-refresh__icon.is-spinning {
	animation: r9-spin 800ms linear infinite;
}

.r9-conditions__checked {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.92);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(5, 35, 77, 0.06);
	display: grid;
	grid-column: 1 / -1;
	line-height: 1.2;
	margin: 0;
	padding: 0.7rem 0.9rem;
}

.r9-conditions__checked span,
.r9-conditions__checked small {
	color: var(--r9-muted);
	font-size: 0.58rem;
}

.r9-conditions__checked span {
	font-weight: 850;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.r9-conditions__checked strong {
	color: var(--r9-navy);
	font-size: 0.72rem;
	margin: 0.18rem 0;
}

.r9-warning-banner {
	align-items: center;
	background:
		radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.12), transparent 24rem),
		linear-gradient(115deg, var(--r9-red-dark), var(--r9-red));
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	box-shadow: 0 18px 38px rgba(169, 15, 24, 0.23);
	color: #fff;
	display: grid;
	gap: 1rem;
	grid-template-columns: auto 1fr;
	margin: 0 0 1.2rem;
	overflow: hidden;
	padding: 1rem 1.15rem;
	position: relative;
}

.r9-warning-banner::after {
	color: rgba(255, 255, 255, 0.09);
	content: "!";
	font-size: 7rem;
	font-weight: 950;
	line-height: 1;
	position: absolute;
	right: 1.5rem;
	top: -1.25rem;
}

.r9-warning-banner__symbol {
	align-items: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(88, 0, 7, 0.25);
	color: var(--r9-red);
	display: flex;
	font-size: 1.5rem;
	font-weight: 950;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.r9-warning-banner__copy {
	min-width: 0;
	position: relative;
	z-index: 1;
}

.r9-warning-banner__kicker {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.61rem;
	margin-bottom: 0.15rem;
}

.r9-warning-banner h2 {
	color: #fff;
	font-size: clamp(1.15rem, 2.2vw, 1.55rem);
	letter-spacing: -0.025em;
	line-height: 1.1;
	margin: 0;
}

.r9-warning-banner__copy > p:not(.r9-warning-banner__kicker) {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.76rem;
	line-height: 1.45;
	margin: 0.35rem 0 0;
	max-width: 68rem;
}

.r9-warning-banner__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.95rem;
	margin-top: 0.55rem;
}

.r9-warning-banner__meta span {
	color: #fff;
	font-size: 0.62rem;
	font-weight: 800;
}

.r9-warning-banner--compact {
	border-radius: 0;
	margin: 0;
	padding: 0.7rem max(1rem, calc((100vw - 1380px) / 2 + 1rem));
}

.r9-warning-banner--compact .r9-warning-banner__symbol {
	font-size: 1.1rem;
	height: 34px;
	width: 34px;
}

.r9-warning-banner--compact .r9-warning-banner__copy {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.7rem;
}

.r9-warning-banner--compact .r9-warning-banner__kicker {
	flex: 0 0 100%;
}

.r9-warning-banner--compact h2 {
	font-size: 1rem;
}

.r9-warning-banner--compact .r9-warning-banner__copy > p:not(.r9-warning-banner__kicker) {
	flex: 1 1 26rem;
	margin: 0;
}

.r9-warning-banner--compact .r9-warning-banner__meta {
	flex: 0 0 100%;
	margin-top: 0.1rem;
}

.r9-global-alert-shell {
	position: relative;
	z-index: 90;
}

.r9-global-alert-shell > .widget {
	margin: 0 auto;
	max-width: 1380px;
}

.r9-feed-message {
	align-items: center;
	background: #fff7d8;
	border: 1px solid #d9a711;
	border-radius: 12px;
	color: #6c5100;
	display: flex;
	font-size: 0.74rem;
	gap: 0.7rem;
	margin: 0 0 1rem;
	padding: 0.7rem 0.85rem;
}

.r9-feed-message[hidden] {
	display: none;
}

.r9-feed-message > span {
	align-items: center;
	background: var(--r9-gold-bright);
	border-radius: 50%;
	color: var(--r9-navy);
	display: flex;
	flex: 0 0 24px;
	font-weight: 950;
	height: 24px;
	justify-content: center;
}

.r9-feed-message p {
	flex: 1;
	margin: 0;
}

.region9-weather-site .r9-feed-message button,
.r9-feed-message button {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #6c5100;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.7rem;
	font-weight: 850;
	padding: 0.25rem;
	text-decoration: underline;
	text-transform: none;
}

.r9-carousel-tools {
	align-items: center;
	display: none;
	justify-content: space-between;
	margin: 0 0 0.55rem;
}

.r9-carousel-tools p {
	color: var(--r9-muted);
	font-size: 0.66rem;
	font-weight: 750;
	margin: 0;
}

.r9-carousel-tools > div {
	display: flex;
	gap: 0.4rem;
}

.region9-weather-site .r9-carousel-tools button,
.r9-carousel-tools button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--r9-line);
	border-radius: 50%;
	box-shadow: 0 6px 14px rgba(5, 35, 77, 0.08);
	color: var(--r9-navy);
	cursor: pointer;
	display: flex;
	font-size: 0.9rem;
	height: 34px;
	justify-content: center;
	padding: 0;
	text-transform: none;
	width: 34px;
}

.r9-conditions__grid {
	display: grid;
	gap: clamp(0.7rem, 1.25vw, 1rem);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.r9-condition-card {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 252, 0.98));
	border: 1px solid rgba(5, 35, 77, 0.12);
	border-radius: 18px;
	box-shadow:
		0 12px 28px rgba(5, 35, 77, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	color: var(--r9-ink);
	display: flex;
	flex-direction: column;
	min-height: 390px;
	overflow: hidden;
	padding: clamp(0.9rem, 1.5vw, 1.2rem);
	position: relative;
	scroll-snap-align: start;
	transition:
		border-color 170ms ease,
		box-shadow 170ms ease,
		transform 170ms ease;
}

.r9-condition-card:hover {
	border-color: rgba(21, 79, 144, 0.22);
	box-shadow: 0 18px 36px rgba(5, 35, 77, 0.13);
	transform: translateY(-2px);
}

.r9-condition-card:focus-visible {
	outline: 3px solid rgba(21, 79, 144, 0.45);
	outline-offset: 3px;
}

.r9-condition-card__accent {
	background: linear-gradient(
		90deg,
		var(--r9-blue) 0 68%,
		var(--r9-gold) 68% 83%,
		var(--r9-gold-bright) 83%
	);
	height: 4px;
	inset: 0 0 auto;
	position: absolute;
}

.r9-condition-card--unavailable {
	filter: saturate(0.7);
}

.r9-condition-card__header {
	align-items: start;
	display: flex;
	gap: 0.65rem;
	justify-content: space-between;
}

.r9-condition-card__city {
	color: var(--r9-navy);
	font-size: 1rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0;
}

.r9-condition-card__station {
	color: var(--r9-muted);
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 0.55rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0.18rem 0 0;
}

.r9-delay-badge {
	align-items: center;
	background: #fff4b8;
	border: 1px solid #e2b70f;
	border-radius: 999px;
	color: #6b4d00;
	display: inline-flex;
	font-size: 0.55rem;
	font-weight: 900;
	gap: 0.38rem;
	letter-spacing: 0.06em;
	padding: 0.3rem 0.48rem;
	text-transform: uppercase;
}

.r9-delay-badge span {
	background: var(--r9-gold);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(221, 160, 26, 0.18);
	height: 6px;
	width: 6px;
}

.r9-condition-card__primary {
	align-items: center;
	display: grid;
	gap: 0.65rem;
	grid-template-columns: auto 1fr;
	margin: 0.85rem 0 0.65rem;
}

.r9-condition-card__icon {
	align-items: center;
	background:
		radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.95), transparent 56%),
		linear-gradient(145deg, rgba(250, 204, 47, 0.2), rgba(21, 79, 144, 0.09));
	border: 1px solid rgba(5, 35, 77, 0.08);
	border-radius: 15px;
	display: flex;
	font-size: clamp(2rem, 3vw, 2.7rem);
	height: 68px;
	justify-content: center;
	width: 68px;
}

.r9-condition-card__temperature {
	color: var(--r9-navy);
	font-size: clamp(2.5rem, 4vw, 3.7rem);
	font-weight: 850;
	letter-spacing: -0.065em;
	line-height: 0.9;
}

.r9-condition-card__temperature span {
	color: var(--r9-gold-dark);
	font-size: 0.55em;
	vertical-align: top;
}

.r9-condition-card__condition {
	color: var(--r9-muted);
	font-size: 0.72rem;
	font-weight: 750;
	line-height: 1.25;
	margin: 0.35rem 0 0;
}

.r9-condition-card__feels {
	align-items: center;
	background: rgba(21, 79, 144, 0.065);
	border: 1px solid rgba(21, 79, 144, 0.08);
	border-radius: 10px;
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.65rem;
	padding: 0.45rem 0.6rem;
}

.r9-condition-card__feels span {
	color: var(--r9-muted);
	font-size: 0.62rem;
	font-weight: 750;
}

.r9-condition-card__feels strong {
	color: var(--r9-navy);
	font-size: 0.78rem;
}

.r9-condition-card__metrics {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	overflow: hidden;
}

.r9-condition-card__metrics > div {
	background: rgba(5, 35, 77, 0.035);
	min-width: 0;
	padding: 0.45rem 0.5rem;
}

.r9-condition-card__metric-wide {
	grid-column: 1 / -1;
}

.r9-condition-card__metrics dt {
	color: var(--r9-muted);
	font-size: 0.5rem;
	font-weight: 850;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.r9-condition-card__metrics dd {
	color: var(--r9-navy);
	font-size: 0.68rem;
	font-weight: 850;
	line-height: 1.25;
	margin: 0.13rem 0 0;
	overflow-wrap: anywhere;
}

.r9-condition-card__footer {
	border-top: 1px solid rgba(5, 35, 77, 0.1);
	margin-top: auto;
	padding-top: 0.65rem;
}

.r9-condition-card__footer p,
.r9-condition-card__footer time {
	color: var(--r9-muted);
	display: block;
	font-size: 0.52rem;
	line-height: 1.4;
	margin: 0;
}

.r9-condition-card__footer p {
	color: var(--r9-navy);
	font-weight: 800;
}

.r9-condition-card__footer time {
	margin-top: 0.18rem;
}

.r9-condition-card--loading {
	gap: 0.75rem;
}

.r9-skeleton {
	animation: r9-shimmer 1.25s linear infinite;
	background: linear-gradient(100deg, #e8eef5 25%, #f7f9fb 42%, #e8eef5 59%);
	background-size: 200% 100%;
	border-radius: 9px;
}

.r9-skeleton--city {
	height: 25px;
	margin-top: 0.25rem;
	width: 46%;
}

.r9-skeleton--temperature {
	height: 92px;
	margin-top: 0.4rem;
	width: 82%;
}

.r9-skeleton--line {
	height: 35px;
	width: 100%;
}

.r9-skeleton--metrics {
	flex: 1;
	min-height: 120px;
	width: 100%;
}

.r9-conditions__footer {
	align-items: center;
	border-top: 1px solid rgba(5, 35, 77, 0.1);
	color: var(--r9-muted);
	display: grid;
	gap: 1rem 2rem;
	grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1.3fr);
	margin-top: 1.1rem;
	padding: 1rem 0 0;
}

.r9-conditions__footer > div {
	display: grid;
	gap: 0.1rem;
}

.r9-conditions__footer strong {
	color: var(--r9-navy);
	font-size: 0.75rem;
}

.r9-conditions__footer span,
.r9-conditions__footer p {
	font-size: 0.58rem;
	line-height: 1.5;
}

.r9-conditions__footer p {
	margin: 0;
	text-align: right;
}

.r9-noscript,
.r9-embed-error {
	background: #fff7d8;
	border: 1px solid #d9a711;
	border-radius: 10px;
	color: #6c5100;
	font-size: 0.8rem;
	padding: 0.75rem;
}

/* Point forecast */
.r9-forecast {
	background:
		radial-gradient(circle at 92% 0, rgba(250, 204, 47, 0.13), transparent 25rem),
		linear-gradient(180deg, #f8fafc, #edf3f8);
	border: 1px solid rgba(5, 35, 77, 0.12);
	border-radius: 22px;
	box-shadow: var(--r9-shadow);
	container-name: r9-forecast;
	container-type: inline-size;
	margin: 1.5rem auto;
	max-width: 1380px;
	overflow: hidden;
}

.r9-forecast__header {
	align-items: center;
	background:
		radial-gradient(circle at 91% 0, rgba(250, 204, 47, 0.16), transparent 22rem),
		linear-gradient(135deg, var(--r9-midnight), var(--r9-navy));
	border-bottom: 4px solid var(--r9-gold);
	color: #fff;
	display: flex;
	gap: 1.2rem 2rem;
	justify-content: space-between;
	padding: 1.15rem 1.3rem;
}

.r9-forecast__header .r9-eyebrow {
	color: var(--r9-gold-bright);
	margin-bottom: 0.2rem;
}

.r9-forecast__header h2 {
	color: #fff;
	font-size: clamp(1.45rem, 3vw, 2.2rem);
	margin: 0;
}

.r9-forecast__header p:not(.r9-eyebrow) {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.74rem;
	margin: 0.3rem 0 0;
}

.region9-weather-site .r9-forecast__refresh,
.r9-forecast__refresh {
	align-items: center;
	background: linear-gradient(135deg, var(--r9-gold-bright), var(--r9-gold));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 7px 18px rgba(221, 160, 26, 0.22);
	color: var(--r9-navy);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 0.68rem;
	font-weight: 900;
	gap: 0.45rem;
	letter-spacing: 0.045em;
	padding: 0.68rem 0.9rem;
	text-transform: uppercase;
}

.r9-forecast__refresh:disabled {
	cursor: wait;
	opacity: 0.75;
}

.r9-forecast__refresh [data-r9-forecast-refresh-icon] {
	font-size: 1rem;
}

.r9-forecast__refresh [data-r9-forecast-refresh-icon].is-spinning {
	animation: r9-spin 800ms linear infinite;
}

.r9-forecast__message {
	background: #fff7d8;
	border-bottom: 1px solid #d9a711;
	color: #6c5100;
	font-size: 0.75rem;
	padding: 0.75rem 1rem;
}

.r9-forecast__message[hidden] {
	display: none;
}

.r9-forecast__grid {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	padding: 1rem;
}

.r9-forecast-period {
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(5, 35, 77, 0.12);
	border-radius: 15px;
	box-shadow: 0 9px 23px rgba(5, 35, 77, 0.07);
	display: flex;
	flex-direction: column;
	min-height: 270px;
	padding: 0.9rem;
	scroll-snap-align: start;
}

.r9-forecast-period > header {
	align-items: start;
	display: flex;
	gap: 0.5rem;
	justify-content: space-between;
}

.r9-forecast-period__name {
	color: var(--r9-navy);
	font-size: 0.9rem;
	font-weight: 900;
	line-height: 1.1;
	margin: 0;
}

.r9-forecast-period__type {
	color: var(--r9-muted);
	font-size: 0.55rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	margin: 0.2rem 0 0;
	text-transform: uppercase;
}

.r9-forecast-period__icon {
	align-items: center;
	background: rgba(21, 79, 144, 0.07);
	border-radius: 12px;
	display: flex;
	flex: 0 0 44px;
	font-size: 1.65rem;
	height: 44px;
	justify-content: center;
}

.r9-forecast-period__temperature {
	color: var(--r9-navy);
	font-size: 2.65rem;
	font-weight: 850;
	letter-spacing: -0.06em;
	line-height: 1;
	margin-top: 0.8rem;
}

.r9-forecast-period__temperature span {
	color: var(--r9-gold-dark);
	font-size: 0.34em;
	letter-spacing: 0;
	vertical-align: top;
}

.r9-forecast-period__condition {
	color: var(--r9-muted);
	font-size: 0.7rem;
	font-weight: 750;
	line-height: 1.35;
	margin: 0.35rem 0 0.65rem;
	min-height: 1.9em;
}

.r9-forecast-period dl {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: auto 0 0;
	overflow: hidden;
}

.r9-forecast-period dl > div {
	background: rgba(5, 35, 77, 0.035);
	padding: 0.4rem;
}

.r9-forecast-period dt {
	color: var(--r9-muted);
	font-size: 0.46rem;
	font-weight: 850;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.r9-forecast-period dd {
	color: var(--r9-navy);
	font-size: 0.62rem;
	font-weight: 850;
	line-height: 1.3;
	margin: 0.13rem 0 0;
}

.r9-forecast-period details {
	border-top: 1px solid rgba(5, 35, 77, 0.1);
	margin-top: 0.65rem;
	padding-top: 0.55rem;
}

.r9-forecast-period summary {
	color: var(--r9-blue);
	cursor: pointer;
	font-size: 0.62rem;
	font-weight: 850;
}

.r9-forecast-period details p {
	color: var(--r9-muted);
	font-size: 0.65rem;
	line-height: 1.45;
	margin: 0.45rem 0 0;
}

.r9-forecast-period--loading {
	gap: 0.8rem;
}

.r9-forecast__footer {
	align-items: center;
	background: #fff;
	border-top: 1px solid rgba(5, 35, 77, 0.1);
	color: var(--r9-muted);
	display: flex;
	font-size: 0.62rem;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.7rem 1rem;
}

/* Standalone and sitewide warning feeds */
.r9-alert-feed[hidden] {
	display: none;
}

.r9-alert-detail-list {
	display: grid;
	gap: 1rem;
	margin-block: 1rem;
}

.r9-alert-detail {
	background:
		linear-gradient(115deg, rgba(168, 15, 25, 0.99), rgba(215, 25, 32, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 18px;
	box-shadow: 0 18px 38px rgba(169, 15, 24, 0.2);
	color: #fff;
	padding: clamp(1.1rem, 3vw, 1.65rem);
}

.r9-alert-detail :is(h2, h3, p, summary) {
	color: #fff;
}

.r9-alert-detail h2 {
	font-size: clamp(1.3rem, 3vw, 2rem);
	margin: 0;
}

.r9-alert-detail h3 {
	font-size: 1rem;
	margin: 1rem 0 0.3rem;
}

.r9-alert-detail p {
	white-space: pre-line;
}

.r9-alert-detail__kicker {
	color: rgba(255, 255, 255, 0.7);
}

.r9-alert-detail__headline {
	font-weight: 700;
	margin-bottom: 0.55rem;
}

.r9-alert-detail__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
}

.r9-alert-detail__meta span {
	font-size: 0.72rem;
	font-weight: 850;
}

.r9-alert-detail details {
	background: rgba(63, 0, 5, 0.22);
	border-radius: 10px;
	margin-top: 1rem;
	padding: 0.75rem;
}

.r9-alert-detail summary {
	cursor: pointer;
	font-weight: 850;
}

.r9-alert-detail__source {
	font-size: 0.68rem;
	font-weight: 800;
	opacity: 0.75;
}

.r9-alert-clear {
	align-items: center;
	background: #f0faf4;
	border: 1px solid #b7dfc7;
	border-radius: 18px;
	color: #135f35;
	display: flex;
	gap: 0.9rem;
	margin-block: 1rem;
	padding: 1rem 1.2rem;
}

.r9-alert-clear > span {
	align-items: center;
	background: #17894b;
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex: 0 0 38px;
	font-size: 1.2rem;
	font-weight: 900;
	height: 38px;
	justify-content: center;
}

.r9-alert-clear h2 {
	color: #135f35;
	font-size: 1rem;
	margin: 0;
}

.r9-alert-clear p {
	font-size: 0.78rem;
	margin: 0.2rem 0 0;
}

/* Radar */
.r9-radar {
	background: #fff;
	border: 1px solid rgba(5, 35, 77, 0.12);
	border-radius: 22px;
	box-shadow: var(--r9-shadow);
	margin: 1.5rem auto;
	max-width: 1380px;
	overflow: hidden;
}

.r9-radar__header {
	align-items: center;
	background:
		radial-gradient(circle at 90% 0, rgba(250, 204, 47, 0.15), transparent 22rem),
		linear-gradient(135deg, var(--r9-midnight), var(--r9-navy));
	color: #fff;
	display: flex;
	gap: 1rem 2rem;
	justify-content: space-between;
	padding: 1.1rem 1.3rem;
}

.r9-radar__header h2 {
	color: #fff;
	font-size: clamp(1.35rem, 3vw, 2.15rem);
	margin: 0;
}

.r9-radar__header p:not(.r9-eyebrow) {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.75rem;
	margin: 0.3rem 0 0;
}

.r9-radar__header .r9-eyebrow {
	color: var(--r9-gold-bright);
	margin-bottom: 0.2rem;
}

.region9-weather-site .r9-radar__open,
.r9-radar__open {
	background: linear-gradient(135deg, var(--r9-gold-bright), var(--r9-gold));
	border-radius: 999px;
	color: var(--r9-navy);
	flex: 0 0 auto;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.045em;
	padding: 0.7rem 0.9rem;
	text-decoration: none;
	text-transform: uppercase;
}

.r9-radar__frame {
	background:
		linear-gradient(135deg, rgba(21, 79, 144, 0.08), rgba(5, 35, 77, 0.12)),
		#dbe5ee;
	height: var(--r9-radar-height, 620px);
	position: relative;
}

.r9-radar__frame::before {
	color: var(--r9-muted);
	content: "Loading official NWS radar…";
	font-size: 0.8rem;
	inset: 50% auto auto 50%;
	position: absolute;
	transform: translate(-50%, -50%);
}

.r9-radar__frame iframe {
	background: #eef3f7;
	border: 0;
	display: block;
	height: 100%;
	position: relative;
	width: 100%;
	z-index: 1;
}

.r9-radar__footer {
	align-items: center;
	background: #fff;
	display: flex;
	font-size: 0.65rem;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.65rem 0.9rem;
}

.r9-radar__footer span {
	color: var(--r9-muted);
}

.r9-radar__footer a {
	font-weight: 850;
}

/* Generic iframes */
.r9-generic-embed {
	background: #eaf0f7;
	border: 1px solid rgba(5, 35, 77, 0.12);
	border-radius: 18px;
	box-shadow: var(--r9-shadow);
	height: var(--r9-embed-height, 620px);
	margin: 1.5rem auto;
	max-width: 1380px;
	overflow: hidden;
}

.r9-generic-embed iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

/* Official resource links */
.r9-official-links {
	margin: 1.5rem 0;
}

.r9-official-links ul {
	display: grid;
	gap: 0.65rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.r9-official-links li {
	margin: 0;
}

.r9-official-links a {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(5, 35, 77, 0.12);
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(5, 35, 77, 0.06);
	color: var(--r9-navy);
	display: flex;
	font-size: 0.78rem;
	font-weight: 800;
	gap: 0.6rem;
	justify-content: space-between;
	padding: 0.8rem 0.9rem;
	text-decoration: none;
}

.r9-official-links a:hover {
	border-color: rgba(21, 79, 144, 0.32);
	box-shadow: 0 11px 25px rgba(5, 35, 77, 0.1);
	color: var(--r9-blue);
}

.r9-official-links a span {
	color: var(--r9-gold-dark);
}

/* Theme homepage helpers */
.region9-weather-site .r9-home-hero {
	background:
		radial-gradient(circle at 88% 15%, rgba(250, 204, 47, 0.18), transparent 28rem),
		linear-gradient(135deg, var(--r9-navy-deep), var(--r9-navy));
	border-radius: 24px;
	box-shadow: var(--r9-shadow-lg);
	color: #fff;
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
	overflow: hidden;
	padding: clamp(2rem, 6vw, 5rem);
	position: relative;
}

.region9-weather-site .r9-home-hero::after {
	color: rgba(250, 204, 47, 0.11);
	content: "9";
	font-size: clamp(10rem, 30vw, 27rem);
	font-style: italic;
	font-weight: 950;
	line-height: 0.7;
	position: absolute;
	right: 2%;
	top: 12%;
}

.region9-weather-site .r9-home-hero > * {
	max-width: 53rem;
	position: relative;
	z-index: 1;
}

.region9-weather-site .r9-home-hero :is(h1, p) {
	color: #fff;
}

.region9-weather-site .r9-home-hero .r9-eyebrow {
	color: var(--r9-gold-bright);
}

.region9-weather-site .r9-latest-posts {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.region9-weather-site .r9-latest-posts li {
	background: #fff;
	border: 1px solid rgba(5, 35, 77, 0.12);
	border-radius: 15px;
	box-shadow: 0 9px 24px rgba(5, 35, 77, 0.07);
	overflow: hidden;
	padding: 1rem;
}

.region9-weather-site .r9-latest-posts img {
	border-radius: 10px;
}

/* Footer menu */
.r9-footer-menu {
	margin-bottom: 0.55rem;
}

.r9-footer-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.region9-weather-site .r9-footer-menu__list a {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.7rem;
	font-weight: 750;
	text-decoration: none;
}

/* Standalone iframe document */
body.region9-embed-document {
	background: #f1f5f9;
	margin: 0;
	min-width: 320px;
}

body.region9-embed-document::before {
	display: none;
}

.r9-embed-document__main {
	margin: 0 auto;
	max-width: 1600px;
	padding: 0;
}

.r9-embed-document__main .r9-conditions {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	min-height: 100vh;
}

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

@keyframes r9-shimmer {
	from {
		background-position: 100% 0;
	}

	to {
		background-position: 0 0;
	}
}

/* Tablet */
@media (max-width: 1100px) {
	.r9-conditions__header {
		align-items: start;
		flex-direction: column;
	}

	.r9-conditions__controls {
		grid-template-columns: auto auto minmax(240px, 1fr);
		width: 100%;
	}

	.r9-conditions__checked {
		grid-column: auto;
	}

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

	.r9-forecast__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.r9-official-links ul,
	.region9-weather-site .r9-latest-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile swipe carousel */
@media (max-width: 760px) {
	.r9-conditions {
		border-radius: 18px;
		padding: 1rem 0 1.2rem;
	}

	.r9-conditions__header,
	.r9-conditions__alerts,
	.r9-feed-message,
	.r9-carousel-tools,
	.r9-conditions__footer,
	.r9-noscript {
		margin-left: 1rem;
		margin-right: 1rem;
	}

	.r9-conditions__header {
		gap: 1rem;
		padding-top: 0.7rem;
	}

	.r9-conditions__branding {
		align-items: start;
		flex-direction: column;
		gap: 0.75rem;
	}

	.r9-conditions__brand {
		flex-basis: auto;
		width: 185px;
	}

	.r9-conditions h2 {
		font-size: clamp(1.75rem, 9vw, 2.45rem);
	}

	.r9-conditions__controls {
		grid-template-columns: 1fr auto;
	}

	.r9-live-status {
		justify-self: start;
	}

	.r9-conditions__checked {
		grid-column: 1 / -1;
	}

	.r9-warning-banner {
		border-radius: 14px;
		grid-template-columns: 38px 1fr;
		padding: 0.8rem;
	}

	.r9-warning-banner__symbol {
		font-size: 1.15rem;
		height: 38px;
		width: 38px;
	}

	.r9-warning-banner::after {
		font-size: 4rem;
	}

	.r9-carousel-tools {
		display: flex;
	}

	.r9-conditions__grid {
		display: grid;
		gap: 0.75rem;
		grid-auto-columns: min(86vw, 350px);
		grid-auto-flow: column;
		grid-template-columns: none;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding: 0.2rem 1rem 1.15rem;
		scroll-behavior: smooth;
		scroll-padding-left: 1rem;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.r9-conditions__grid::-webkit-scrollbar {
		display: none;
	}

	.r9-condition-card {
		min-height: 405px;
	}

	.r9-condition-card:hover {
		transform: none;
	}

	.r9-conditions__footer {
		grid-template-columns: 1fr;
		margin-top: 0;
	}

	.r9-conditions__footer p {
		text-align: left;
	}

	.r9-warning-banner--compact {
		border-radius: 0;
		grid-template-columns: 34px 1fr;
		margin: 0;
		padding-inline: 0.85rem;
	}

	.r9-warning-banner--compact .r9-warning-banner__copy {
		display: block;
	}

	.r9-warning-banner--compact .r9-warning-banner__copy > p:not(.r9-warning-banner__kicker) {
		margin-top: 0.2rem;
	}

	.r9-radar {
		border-radius: 16px;
	}

	.r9-forecast {
		border-radius: 16px;
	}

	.r9-forecast__header {
		align-items: start;
		flex-direction: column;
	}

	.r9-forecast__grid {
		grid-auto-columns: min(78vw, 270px);
		grid-auto-flow: column;
		grid-template-columns: none;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-left: 1rem;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.r9-forecast__grid::-webkit-scrollbar {
		display: none;
	}

	.r9-forecast__footer {
		align-items: start;
		flex-direction: column;
	}

	.r9-radar__header {
		align-items: start;
		flex-direction: column;
	}

	.r9-radar__frame {
		height: min(var(--r9-radar-height, 620px), 72vh);
		min-height: 420px;
	}

	.r9-official-links ul,
	.region9-weather-site .r9-latest-posts {
		grid-template-columns: 1fr;
	}
}

/* Force compact widgets into a carousel even in a wide sidebar layout. */
.r9-conditions--compact {
	border-radius: 16px;
	padding: 1rem 0;
}

.r9-conditions--compact .r9-conditions__header,
.r9-conditions--compact .r9-conditions__alerts,
.r9-conditions--compact .r9-feed-message,
.r9-conditions--compact .r9-carousel-tools,
.r9-conditions--compact .r9-conditions__footer {
	margin-left: 0.85rem;
	margin-right: 0.85rem;
}

.r9-conditions--compact .r9-conditions__header {
	align-items: start;
	flex-direction: column;
}

.r9-conditions--compact .r9-conditions__branding {
	display: block;
}

.r9-conditions--compact .r9-conditions__controls {
	grid-template-columns: 1fr auto;
	width: 100%;
}

.r9-conditions--compact .r9-conditions__checked {
	grid-column: 1 / -1;
}

.r9-conditions--compact .r9-carousel-tools {
	display: flex;
}

.r9-conditions--compact .r9-conditions__grid {
	display: grid;
	gap: 0.7rem;
	grid-auto-columns: min(85cqw, 340px);
	grid-auto-flow: column;
	grid-template-columns: none;
	overflow-x: auto;
	padding: 0.2rem 0.85rem 1rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.r9-conditions--compact .r9-conditions__grid::-webkit-scrollbar {
	display: none;
}

.r9-conditions--compact .r9-conditions__footer {
	grid-template-columns: 1fr;
}

.r9-conditions--compact .r9-conditions__footer p {
	text-align: left;
}

@container r9-conditions (max-width: 700px) {
	.r9-conditions__header {
		align-items: start;
		flex-direction: column;
	}

	.r9-conditions__controls {
		grid-template-columns: 1fr auto;
		width: 100%;
	}

	.r9-conditions__checked {
		grid-column: 1 / -1;
	}
}

@container r9-forecast (max-width: 720px) {
	.r9-forecast__header {
		align-items: start;
		flex-direction: column;
	}

	.r9-forecast__grid {
		grid-auto-columns: min(78cqw, 270px);
		grid-auto-flow: column;
		grid-template-columns: none;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.r9-forecast__grid::-webkit-scrollbar {
		display: none;
	}

	.r9-forecast__footer {
		align-items: start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.r9-conditions *,
	.r9-conditions *::before,
	.r9-conditions *::after,
	.r9-forecast *,
	.r9-forecast *::before,
	.r9-forecast *::after,
	.r9-radar *,
	.r9-alert-feed * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.r9-refresh,
	.r9-forecast__refresh,
	.r9-carousel-tools,
	.r9-radar {
		display: none !important;
	}

	.r9-conditions,
	.r9-condition-card,
	.r9-forecast,
	.r9-forecast-period,
	.r9-warning-banner,
	.r9-alert-detail {
		background: #fff !important;
		box-shadow: none !important;
		color: #000 !important;
	}

	.r9-conditions__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.r9-forecast__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
