/*
 * Region 9 Weather visual system
 * Parent theme: GeneratePress
 */

:root {
	--r9-navy: #05234d;
	--r9-navy-deep: #031a3a;
	--r9-blue: #154f90;
	--r9-blue-bright: #2675bf;
	--r9-gold: #dda01a;
	--r9-gold-bright: #facc2f;
	--r9-warning: #d71920;
	--r9-warning-dark: #a90f18;
	--r9-ink: #0b1f38;
	--r9-slate: #53677e;
	--r9-mist: #f4f7fb;
	--r9-cloud: #eaf0f7;
	--r9-white: #fff;
	--r9-border: rgba(5, 35, 77, 0.12);
	--r9-shadow-sm: 0 8px 24px rgba(5, 35, 77, 0.08);
	--r9-shadow-lg: 0 22px 54px rgba(5, 35, 77, 0.13);
	--r9-radius-sm: 10px;
	--r9-radius: 18px;
	--r9-radius-lg: 26px;
	--r9-content: 1380px;
}

html {
	scroll-behavior: smooth;
}

body.region9-weather-site {
	background:
		linear-gradient(180deg, rgba(21, 79, 144, 0.045), transparent 360px),
		var(--r9-mist);
	color: var(--r9-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
		Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

body.region9-weather-site::before {
	background: linear-gradient(
		90deg,
		var(--r9-navy) 0 56%,
		var(--r9-blue) 56% 72%,
		var(--r9-gold) 72% 84%,
		var(--r9-gold-bright) 84% 100%
	);
	content: "";
	display: block;
	height: 6px;
	inset: 0 0 auto;
	position: fixed;
	z-index: 100001;
}

body.region9-weather-site.admin-bar::before {
	top: 32px;
}

.region9-weather-site a {
	color: var(--r9-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
	transition:
		color 160ms ease,
		background-color 160ms ease,
		border-color 160ms ease;
}

.region9-weather-site a:hover {
	color: var(--r9-navy);
}

.region9-weather-site :focus-visible {
	border-radius: 3px;
	outline: 3px solid var(--r9-gold-bright);
	outline-offset: 3px;
}

.region9-weather-site :is(h1, h2, h3, h4, h5, h6) {
	color: var(--r9-navy);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.region9-weather-site h1 {
	font-size: clamp(2.15rem, 5vw, 4.7rem);
}

.region9-weather-site h2 {
	font-size: clamp(1.7rem, 3.4vw, 3rem);
}

.region9-weather-site h3 {
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

/* Header and navigation */
.region9-weather-site .site-header {
	background:
		radial-gradient(
			circle at 85% 0,
			rgba(250, 204, 47, 0.13),
			transparent 36%
		),
		var(--r9-white);
	border-bottom: 1px solid var(--r9-border);
}

.region9-weather-site .inside-header {
	align-items: center;
	margin-inline: auto;
	max-width: var(--r9-content);
	padding: 1rem 24px;
}

.region9-weather-site .site-logo img {
	height: auto;
	max-height: 96px;
	width: auto;
}

.region9-weather-site .site-branding .main-title a {
	color: var(--r9-navy);
	font-size: clamp(1.45rem, 3vw, 2.3rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.region9-weather-site .site-description {
	color: var(--r9-slate);
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.region9-weather-site .main-navigation {
	background: linear-gradient(110deg, var(--r9-navy-deep), var(--r9-navy));
	border-bottom: 3px solid var(--r9-gold);
	box-shadow: 0 7px 18px rgba(3, 26, 58, 0.16);
}

.region9-weather-site .main-navigation .inside-navigation {
	margin-inline: auto;
	max-width: var(--r9-content);
}

.region9-weather-site .main-navigation .main-nav ul li a,
.region9-weather-site .main-navigation .menu-toggle,
.region9-weather-site .main-navigation .menu-bar-items a {
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.region9-weather-site .main-navigation .main-nav ul li:hover > a,
.region9-weather-site
	.main-navigation
	.main-nav
	ul
	li:focus-within
	> a,
.region9-weather-site
	.main-navigation
	.main-nav
	ul
	li[class*="current-menu-"]
	> a {
	background: rgba(250, 204, 47, 0.13);
	color: var(--r9-gold-bright);
}

.region9-weather-site .main-navigation ul ul {
	background: var(--r9-navy);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--r9-shadow-lg);
}

.region9-weather-site .main-navigation ul ul li a {
	font-size: 0.78rem;
}

.region9-weather-site .sticky-enabled .main-navigation.is_stuck {
	box-shadow: 0 10px 30px rgba(3, 26, 58, 0.22);
}

/* Main content */
.region9-weather-site .site.grid-container {
	max-width: var(--r9-content);
}

.region9-weather-site .site-content {
	padding: clamp(24px, 4vw, 52px) 24px;
}

.region9-weather-site.separate-containers .inside-article,
.region9-weather-site.separate-containers .comments-area,
.region9-weather-site.separate-containers .page-header,
.region9-weather-site.separate-containers .paging-navigation,
.region9-weather-site .widget {
	background: rgba(255, 255, 255, 0.97);
	border: 1px solid var(--r9-border);
	border-radius: var(--r9-radius);
	box-shadow: var(--r9-shadow-sm);
}

.region9-weather-site.separate-containers .inside-article {
	padding: clamp(1.4rem, 4vw, 3rem);
}

.region9-weather-site .entry-header {
	border-bottom: 1px solid var(--r9-border);
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
}

.region9-weather-site .entry-title {
	margin-bottom: 0.45rem;
}

.region9-weather-site .entry-title a {
	color: var(--r9-navy);
	text-decoration: none;
}

.region9-weather-site .entry-title a:hover {
	color: var(--r9-blue);
}

.region9-weather-site .entry-meta {
	color: var(--r9-slate);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.region9-weather-site .entry-meta a {
	color: var(--r9-blue);
	text-decoration: none;
}

.region9-weather-site .post-image img,
.region9-weather-site .featured-image img {
	border-radius: var(--r9-radius);
	box-shadow: var(--r9-shadow-sm);
}

.region9-weather-site blockquote,
.region9-weather-site .wp-block-quote {
	background: linear-gradient(
		90deg,
		rgba(221, 160, 26, 0.11),
		rgba(250, 204, 47, 0.04)
	);
	border: 0;
	border-left: 5px solid var(--r9-gold);
	border-radius: 0 var(--r9-radius-sm) var(--r9-radius-sm) 0;
	color: var(--r9-navy);
	font-size: 1.08em;
	margin-inline: 0;
	padding: 1.2rem 1.4rem;
}

.region9-weather-site hr,
.region9-weather-site .wp-block-separator {
	border-color: var(--r9-border);
}

/* Buttons */
.region9-weather-site button,
.region9-weather-site input[type="button"],
.region9-weather-site input[type="reset"],
.region9-weather-site input[type="submit"],
.region9-weather-site .button,
.region9-weather-site .wp-block-button__link {
	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.24);
	color: var(--r9-navy);
	font-size: 0.82rem;
	font-weight: 850;
	letter-spacing: 0.055em;
	padding: 0.8rem 1.25rem;
	text-decoration: none;
	text-transform: uppercase;
}

.region9-weather-site button:hover,
.region9-weather-site input[type="button"]:hover,
.region9-weather-site input[type="reset"]:hover,
.region9-weather-site input[type="submit"]:hover,
.region9-weather-site .button:hover,
.region9-weather-site .wp-block-button__link:hover {
	background: var(--r9-navy);
	color: var(--r9-white);
	transform: translateY(-1px);
}

.region9-weather-site .is-style-region9-gold .wp-block-button__link {
	background: linear-gradient(135deg, var(--r9-gold-bright), var(--r9-gold));
	color: var(--r9-navy);
}

/* Forms */
.region9-weather-site
	:is(
		input[type="text"],
		input[type="email"],
		input[type="url"],
		input[type="search"],
		input[type="tel"],
		select,
		textarea
	) {
	background: var(--r9-white);
	border: 1px solid rgba(5, 35, 77, 0.2);
	border-radius: var(--r9-radius-sm);
	color: var(--r9-ink);
	padding: 0.8rem 0.9rem;
}

.region9-weather-site
	:is(
		input[type="text"],
		input[type="email"],
		input[type="url"],
		input[type="search"],
		input[type="tel"],
		select,
		textarea
	):focus {
	border-color: var(--r9-blue);
	box-shadow: 0 0 0 3px rgba(21, 79, 144, 0.14);
	outline: 0;
}

/* Widgets and sidebars */
.region9-weather-site .widget {
	padding: 1.35rem;
}

.region9-weather-site .widget-title {
	border-bottom: 2px solid var(--r9-gold);
	color: var(--r9-navy);
	font-size: 0.88rem;
	letter-spacing: 0.075em;
	margin-bottom: 1rem;
	padding-bottom: 0.65rem;
	text-transform: uppercase;
}

.region9-weather-site .widget ul {
	list-style: none;
	margin: 0;
}

.region9-weather-site .widget ul li {
	border-bottom: 1px solid var(--r9-border);
	padding-block: 0.65rem;
}

/* Region 9 block styles */
.region9-weather-site .is-style-region9-panel,
.region9-weather-site .r9-panel {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(244, 247, 251, 0.96));
	border: 1px solid var(--r9-border);
	border-radius: var(--r9-radius);
	box-shadow: var(--r9-shadow-sm);
	padding: clamp(1.25rem, 3vw, 2.15rem);
	position: relative;
}

.region9-weather-site .is-style-region9-panel::before,
.region9-weather-site .r9-panel::before {
	background: linear-gradient(
		90deg,
		var(--r9-blue) 0 70%,
		var(--r9-gold) 70% 86%,
		var(--r9-gold-bright) 86%
	);
	border-radius: var(--r9-radius) var(--r9-radius) 0 0;
	content: "";
	height: 4px;
	inset: 0 0 auto;
	position: absolute;
}

.region9-weather-site .is-style-region9-navy,
.region9-weather-site .r9-navy-panel {
	background:
		radial-gradient(
			circle at 92% 10%,
			rgba(250, 204, 47, 0.16),
			transparent 36%
		),
		linear-gradient(140deg, var(--r9-navy-deep), var(--r9-navy));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--r9-radius);
	box-shadow: var(--r9-shadow-lg);
	color: rgba(255, 255, 255, 0.88);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.region9-weather-site
	:is(.is-style-region9-navy, .r9-navy-panel)
	:is(h1, h2, h3, h4, h5, h6, a, strong) {
	color: var(--r9-white);
}

.region9-weather-site .is-style-region9-navy a:not(.wp-block-button__link) {
	text-decoration-color: var(--r9-gold);
}

.region9-weather-site .is-style-region9-forecast-graphic img {
	border: 1px solid var(--r9-border);
	border-radius: var(--r9-radius);
	box-shadow: var(--r9-shadow-lg);
}

.region9-weather-site .r9-eyebrow {
	color: var(--r9-gold);
	font-size: 0.77rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	margin-bottom: 0.65rem;
	text-transform: uppercase;
}

.region9-weather-site .r9-section-heading {
	align-items: end;
	border-bottom: 1px solid var(--r9-border);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.4rem;
	padding-bottom: 0.85rem;
}

.region9-weather-site .r9-section-heading h2,
.region9-weather-site .r9-section-heading h3 {
	margin: 0;
}

.region9-weather-site .r9-section-heading::after {
	background: linear-gradient(90deg, var(--r9-gold), var(--r9-gold-bright));
	border-radius: 999px;
	content: "";
	height: 4px;
	margin-left: auto;
	max-width: 160px;
	width: 18%;
}

.region9-weather-site .r9-badge {
	align-items: center;
	background: rgba(21, 79, 144, 0.08);
	border: 1px solid rgba(21, 79, 144, 0.15);
	border-radius: 999px;
	color: var(--r9-navy);
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 850;
	gap: 0.4rem;
	letter-spacing: 0.07em;
	padding: 0.35rem 0.65rem;
	text-transform: uppercase;
}

.region9-weather-site .r9-live-dot {
	background: #18a871;
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(24, 168, 113, 0.12);
	display: inline-block;
	height: 8px;
	width: 8px;
}

/* Alert banner for dynamic NWS alert integrations */
.region9-weather-site .r9-alert-banner {
	align-items: center;
	background:
		linear-gradient(115deg, var(--r9-warning-dark), var(--r9-warning)),
		var(--r9-warning);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--r9-radius);
	box-shadow: 0 18px 38px rgba(169, 15, 24, 0.23);
	color: var(--r9-white);
	display: grid;
	gap: 0.95rem;
	grid-template-columns: auto 1fr auto;
	margin-block: 1rem 1.5rem;
	padding: 1rem 1.2rem;
}

.region9-weather-site .r9-alert-banner :is(h2, h3, h4, p, a) {
	color: var(--r9-white);
	margin-block: 0;
}

.region9-weather-site .r9-alert-banner a {
	font-weight: 800;
}

/* Current conditions iframe */
.region9-weather-site .r9-weather-embed {
	margin-inline: auto;
	max-width: var(--r9-content);
	width: 100%;
}

.region9-weather-site .r9-weather-embed iframe {
	background: var(--r9-mist);
	border: 0;
	border-radius: var(--r9-radius-lg);
	box-shadow: var(--r9-shadow-lg);
	display: block;
	height: 1500px;
	width: 100%;
}

/* Forecast grids */
.region9-weather-site .r9-forecast-grid {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.region9-weather-site .r9-forecast-card {
	background: var(--r9-white);
	border: 1px solid var(--r9-border);
	border-radius: var(--r9-radius);
	box-shadow: var(--r9-shadow-sm);
	overflow: hidden;
	padding: 1.2rem;
	position: relative;
}

.region9-weather-site .r9-forecast-card::before {
	background: linear-gradient(
		90deg,
		var(--r9-blue) 0 72%,
		var(--r9-gold) 72%
	);
	content: "";
	height: 4px;
	inset: 0 0 auto;
	position: absolute;
}

.region9-weather-site .r9-forecast-card img {
	border-radius: calc(var(--r9-radius) - 5px);
	width: 100%;
}

.region9-weather-site .r9-forecast-card h3 {
	margin: 1rem 0 0.45rem;
}

.region9-weather-site .r9-forecast-card p:last-child {
	margin-bottom: 0;
}

/* Blog archives */
.region9-weather-site.blog .site-main,
.region9-weather-site.archive .site-main,
.region9-weather-site.search .site-main {
	display: grid;
	gap: 1.4rem;
}

.region9-weather-site.blog .site-main > article,
.region9-weather-site.archive .site-main > article,
.region9-weather-site.search .site-main > article {
	margin-bottom: 0;
}

.region9-weather-site .read-more {
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.region9-weather-site .paging-navigation {
	margin-top: 1.5rem;
}

/* Footer */
.region9-weather-site .site-footer {
	background: var(--r9-navy-deep);
	color: rgba(255, 255, 255, 0.78);
	margin-top: clamp(2rem, 5vw, 4.5rem);
}

.region9-weather-site .footer-widgets {
	background:
		radial-gradient(
			circle at 85% 0,
			rgba(250, 204, 47, 0.11),
			transparent 35%
		),
		var(--r9-navy);
	border-top: 4px solid var(--r9-gold);
}

.region9-weather-site .footer-widgets .widget {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.78);
	padding-inline: 0;
}

.region9-weather-site .footer-widgets .widget-title,
.region9-weather-site .footer-widgets a {
	color: var(--r9-white);
}

.region9-weather-site .site-info {
	background: var(--r9-navy-deep);
	font-size: 0.78rem;
	letter-spacing: 0.035em;
}

.region9-weather-site .site-info a {
	color: var(--r9-gold-bright);
}

/* Tablet */
@media (max-width: 1024px) {
	.region9-weather-site .r9-forecast-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.region9-weather-site .site-logo img {
		max-height: 78px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	body.region9-weather-site.admin-bar::before {
		top: 46px;
	}

	.region9-weather-site .inside-header {
		padding-inline: 18px;
	}

	.region9-weather-site .site-logo img {
		max-height: 68px;
	}

	.region9-weather-site .main-navigation .menu-toggle {
		padding-block: 0.85rem;
	}

	.region9-weather-site .site-content {
		padding: 24px 14px;
	}

	.region9-weather-site.separate-containers .inside-article {
		padding: 1.25rem;
	}

	.region9-weather-site .r9-section-heading {
		align-items: start;
		flex-direction: column;
	}

	.region9-weather-site .r9-section-heading::after {
		margin-left: 0;
		width: 90px;
	}

	.region9-weather-site .r9-alert-banner {
		grid-template-columns: 1fr;
	}

	.region9-weather-site .r9-forecast-grid {
		grid-template-columns: 1fr;
	}

	.region9-weather-site .r9-weather-embed iframe {
		border-radius: var(--r9-radius);
		height: 1250px;
	}
}

@media (max-width: 480px) {
	.region9-weather-site .site-logo img {
		max-height: 58px;
	}

	.region9-weather-site h1 {
		font-size: clamp(2rem, 12vw, 3.25rem);
	}

	.region9-weather-site .is-style-region9-panel,
	.region9-weather-site .r9-panel,
	.region9-weather-site .is-style-region9-navy,
	.region9-weather-site .r9-navy-panel {
		border-radius: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.region9-weather-site *,
	.region9-weather-site *::before,
	.region9-weather-site *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	body.region9-weather-site {
		background: #fff;
		color: #000;
	}

	body.region9-weather-site::before,
	.region9-weather-site .main-navigation,
	.region9-weather-site .site-footer {
		display: none;
	}

	.region9-weather-site .inside-article,
	.region9-weather-site .r9-panel,
	.region9-weather-site .r9-forecast-card {
		border: 1px solid #bbb;
		box-shadow: none;
	}
}
