:root {
	--nas-wd-ink: #17223f;
	--nas-wd-muted: #59657d;
	--nas-wd-paper: #ffffff;
	--nas-wd-soft: #f4f7fc;
	--nas-wd-line: #d9e0ec;
	--nas-wd-blue: #213364;
	--nas-wd-sky: #dbe8ff;
	--nas-wd-cyan: #03c8e8;
	--nas-wd-burgundy: #7c263a;
	--nas-wd-alert: #a52824;
	--nas-wd-radius: 20px;
}

/* Header shortcode: intentionally global so block-template headers render it. */
.nas-header-shell p {
	margin: 0 !important;
}

.nas-brand-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: nowrap !important;
}

.nas-brand-row .wp-block-site-logo {
	flex: 0 0 auto;
}

.nas-desktop-only {
	display: none !important;
}

.nas-header-weather {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	margin-left: auto !important;
	padding-left: 12px !important;
	color: inherit !important;
	font: inherit;
	line-height: 1 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	position: relative;
	z-index: 10;
}

.nas-header-weather:hover,
.nas-header-weather:focus-visible {
	color: var(--nas-wd-cyan, #03c8e8) !important;
	text-decoration: underline !important;
}

.nas-header-weather .nas-weather-glyph {
	display: inline-block;
	font-size: 17px;
	line-height: 1;
}

.nas-header-weather .nas-weather-temp {
	font-weight: 700;
}

.nas-header-weather .nas-weather-desc {
	font-size: .85em;
	opacity: .9;
}

.nas-separator {
	margin: 0 10px;
	opacity: .6;
}

.nas-mainstreet-link {
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}

.nas-mainstreet-link:hover {
	opacity: .85;
	text-decoration: underline;
}

@media (min-width: 1024px) {
	.nas-desktop-only {
		display: block !important;
		font-size: 13px;
		color: #dfe6f5;
		letter-spacing: .4px;
		line-height: 1.25;
		margin: 0 !important;
		white-space: nowrap;
	}

	/* Match the theme's compact navigation on the custom Weather Desk page. */
	body.nas-wd-page-template .wp-site-blocks > .wp-block-navigation,
	body.nas-wd-page-template .wp-site-blocks > main {
		margin-block-start: 0 !important;
	}

	body.nas-wd-page-template .wp-block-navigation,
	body.nas-wd-page-template .wp-block-navigation__container {
		justify-content: center !important;
		flex-wrap: wrap !important;
		gap: 0 !important;
	}
}

/* Keep the custom Weather Desk template aligned with the normal page header. */
body.nas-wd-page-template .wp-site-blocks > .wp-block-navigation,
body.nas-wd-page-template .wp-site-blocks > main {
	margin-block-start: 0 !important;
}

body.nas-wd-page-template header.wp-block-template-part {
	position: relative;
	z-index: 100;
}

body.nas-wd-page-template .wp-block-navigation__responsive-container-open {
	position: relative;
	z-index: 101;
	pointer-events: auto !important;
}

body.nas-wd-page-template .wp-block-navigation__responsive-container {
	z-index: 100000;
}

@media (max-width: 767px) {
	.nas-brand-row {
		justify-content: center !important;
	}

	.nas-header-weather {
		gap: 3px !important;
		padding-left: 9px !important;
		font-size: 12px !important;
	}

	.nas-header-weather .nas-weather-glyph {
		font-size: 14px;
	}

	.nas-header-weather .nas-weather-desc {
		display: none !important;
	}
}

/* Dedicated Weather Desk. */
.nas-wd-main {
	background: var(--nas-wd-paper);
	color: var(--nas-wd-ink);
	font-family: inherit;
	line-height: 1.55;
}

.nas-wd-shell {
	width: min(1180px, calc(100% - 36px));
	margin: 0 auto;
	padding: clamp(46px, 7vw, 86px) 0 74px;
}

.nas-wd-shell *,
.nas-wd-shell *::before,
.nas-wd-shell *::after {
	box-sizing: border-box;
}

.nas-wd-hero {
	max-width: 900px;
	margin-bottom: 28px;
}

.nas-wd-kicker,
.nas-wd-alert-label,
.nas-wd-location,
.nas-wd-article-label {
	margin: 0 0 8px;
	color: var(--nas-wd-burgundy);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.nas-wd-hero h1,
.nas-wd-section h2,
.nas-wd-radar h2,
.nas-wd-briefing h2,
.nas-wd-alert h2,
.nas-wd-unavailable h2 {
	color: var(--nas-wd-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.05;
}

.nas-wd-hero h1 {
	margin: 0;
	font-size: clamp(46px, 7vw, 82px);
}

.nas-wd-deck {
	max-width: 820px;
	margin: 18px 0 0;
	color: var(--nas-wd-muted);
	font-size: clamp(18px, 2.1vw, 24px);
	line-height: 1.45;
}

.nas-wd-clear {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 22px 0;
	padding: 13px 17px;
	border: 1px solid #b8dfcc;
	border-radius: 12px;
	background: #edf9f2;
	color: #1e6242;
	font-size: 14px;
	font-weight: 650;
}

.nas-wd-alert-status {
	margin: 22px 0;
	padding: 14px 17px;
	border: 1px solid #e1c579;
	border-radius: 12px;
	background: #fff9e8;
	color: #604b13;
	font-size: 14px;
	font-weight: 650;
}

.nas-wd-alert-status a {
	color: inherit;
	font-weight: 800;
}

.nas-wd-clear span {
	display: grid;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #218454;
	color: #fff;
	place-items: center;
}

.nas-wd-alert {
	margin: 22px 0;
	padding: 22px 24px;
	border: 1px solid #efb6b3;
	border-left: 6px solid var(--nas-wd-alert);
	border-radius: 14px;
	background: #fff4f3;
	color: #53201f;
}

.nas-wd-alert-label {
	color: var(--nas-wd-alert);
}

.nas-wd-alert h2 {
	margin: 0 0 8px;
	color: #741c19;
	font-size: clamp(26px, 3vw, 38px);
}

.nas-wd-alert p {
	margin: 7px 0;
}

.nas-wd-alert a {
	display: inline-block;
	margin-top: 5px;
	color: #741c19;
	font-weight: 750;
}

.nas-wd-alert-time {
	font-size: 14px;
}

.nas-wd-current {
	display: grid;
	grid-template-columns: minmax(260px, .8fr) minmax(460px, 1.2fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
	margin: 28px 0 34px;
	padding: clamp(26px, 4vw, 46px);
	border-radius: var(--nas-wd-radius);
	background: linear-gradient(135deg, #1e315f 0%, #30477b 100%);
	box-shadow: 0 18px 42px rgba(25, 42, 83, .14);
	color: #fff;
}

.nas-wd-current-primary h2 {
	margin: 0 0 6px;
	color: #fff !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(27px, 3.2vw, 42px);
	line-height: 1.05;
}

.nas-wd-current-primary > p:last-child {
	margin: 0;
	opacity: .75;
	font-size: 13px;
}

.nas-wd-current .nas-wd-location {
	color: #b9c9f6;
}

.nas-wd-current-reading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 5px 0 7px;
}

.nas-wd-current-reading strong {
	color: #fff !important;
	font-size: clamp(66px, 8vw, 104px);
	font-weight: 700;
	letter-spacing: -.07em;
	line-height: .95;
}

.nas-wd-current-glyph {
	font-size: clamp(48px, 6vw, 74px);
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .16));
}

.nas-wd-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.nas-wd-facts div {
	min-height: 90px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 13px;
	background: rgba(255, 255, 255, .08);
}

.nas-wd-facts dt {
	margin-bottom: 4px;
	color: #cdd7f1;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.nas-wd-facts dd {
	margin: 0;
	color: #fff !important;
	font-size: 21px;
	font-weight: 750;
}

.nas-wd-briefing {
	margin: 34px 0;
	padding: clamp(26px, 4vw, 42px);
	border: 1px solid var(--nas-wd-line);
	border-radius: var(--nas-wd-radius);
	background: var(--nas-wd-soft);
}

.nas-wd-briefing h2 {
	margin: 0 0 16px;
	font-size: clamp(30px, 4vw, 48px);
}

.nas-wd-briefing-copy {
	max-width: 860px;
	font-size: 18px;
	line-height: 1.65;
}

.nas-wd-briefing-copy p {
	margin: 0 0 14px;
}

.nas-wd-briefing-copy p:last-child {
	margin-bottom: 0;
}

.nas-wd-planning-note {
	margin: 20px 0 0;
	padding: 15px 18px;
	border-left: 4px solid var(--nas-wd-burgundy);
	background: #fff;
}

.nas-wd-section,
.nas-wd-radar {
	margin: 48px 0;
}

.nas-wd-section-heading {
	margin-bottom: 18px;
}

.nas-wd-section-heading h2 {
	margin: 0;
	font-size: clamp(30px, 4vw, 44px);
}

.nas-wd-hourly {
	display: grid;
	grid-auto-columns: minmax(110px, 1fr);
	grid-auto-flow: column;
	gap: 10px;
	overflow-x: auto;
	padding: 2px 2px 12px;
	scrollbar-color: #8997b4 #eef1f7;
	scrollbar-width: thin;
}

.nas-wd-hour {
	min-height: 170px;
	padding: 16px 12px;
	border: 1px solid var(--nas-wd-line);
	border-radius: 15px;
	background: #fff;
	text-align: center;
}

.nas-wd-hour h3 {
	margin: 0;
	font-family: inherit;
	font-size: 14px;
	text-transform: uppercase;
}

.nas-wd-hour-glyph {
	display: block;
	margin: 13px 0 7px;
	font-size: 30px;
}

.nas-wd-hour strong {
	display: block;
	font-size: 23px;
}

.nas-wd-hour > span:last-child {
	display: block;
	margin-top: 5px;
	color: var(--nas-wd-muted);
	font-size: 12px;
}

.nas-wd-days {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.nas-wd-day {
	padding: 20px;
	border: 1px solid var(--nas-wd-line);
	border-radius: 16px;
	background: #fff;
}

.nas-wd-day h3 {
	margin: 0;
	font-family: inherit;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.nas-wd-day-glyph {
	display: block;
	margin: 13px 0 5px;
	font-size: 34px;
}

.nas-wd-high-low {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 10px;
}

.nas-wd-high-low strong {
	font-size: 26px;
}

.nas-wd-high-low span,
.nas-wd-day small {
	color: var(--nas-wd-muted);
}

.nas-wd-day > p:not(.nas-wd-high-low) {
	min-height: 48px;
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.45;
}

.nas-wd-radar {
	padding: clamp(22px, 4vw, 38px);
	border: 1px solid var(--nas-wd-line);
	border-radius: var(--nas-wd-radius);
	background: var(--nas-wd-soft);
}

.nas-wd-radar-image {
	display: block;
	overflow: hidden;
	border: 1px solid #cad2df;
	border-radius: 14px;
	background: #e7ebf2;
}

.nas-wd-radar-image img {
	display: block;
	width: 100%;
	height: auto;
}

.nas-wd-source-note,
.nas-wd-data-note {
	color: var(--nas-wd-muted);
	font-size: 13px;
}

.nas-wd-source-note {
	margin: 12px 0 0;
}

.nas-wd-data-note {
	margin-top: 54px;
	padding-top: 22px;
	border-top: 1px solid var(--nas-wd-line);
}

.nas-wd-data-note p {
	margin: 6px 0;
}

.nas-wd-unavailable {
	margin: 30px 0;
	padding: 30px;
	border: 1px solid var(--nas-wd-line);
	border-radius: var(--nas-wd-radius);
	background: var(--nas-wd-soft);
}

.nas-wd-unavailable h2 {
	margin: 0 0 10px;
	font-size: 34px;
}

/* Inline article update. */
.nas-wd-article-update {
	margin: 28px 0;
	padding: 18px 20px;
	border: 1px solid #cbd7ee;
	border-left: 5px solid var(--nas-wd-blue);
	border-radius: 10px;
	background: #f3f7ff;
	color: #24314e;
}

.nas-wd-article-update.is-alert {
	border-color: #efb6b3;
	border-left-color: var(--nas-wd-alert);
	background: #fff4f3;
	color: #53201f;
}

.nas-wd-article-update p {
	margin: 0 !important;
}

.nas-wd-article-update .nas-wd-article-label {
	margin-bottom: 5px !important;
}

.nas-wd-article-update a {
	font-weight: 750;
}

@media (max-width: 900px) {
	.nas-wd-current {
		grid-template-columns: 1fr;
	}

	.nas-wd-days {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.nas-wd-shell {
		width: min(100% - 24px, 1180px);
		padding-top: 36px;
	}

	.nas-wd-hero h1 {
		font-size: 44px;
	}

	.nas-wd-current {
		padding: 24px 20px;
	}

	.nas-wd-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nas-wd-facts div {
		min-height: 82px;
		padding: 13px;
	}

	.nas-wd-facts dd {
		font-size: 18px;
	}

	.nas-wd-days {
		grid-template-columns: 1fr;
	}

	.nas-wd-day {
		display: grid;
		grid-template-columns: 52px 54px 82px 1fr;
		gap: 8px;
		align-items: center;
		padding: 14px;
	}

	.nas-wd-day h3,
	.nas-wd-day-glyph,
	.nas-wd-high-low,
	.nas-wd-day > p:not(.nas-wd-high-low) {
		margin: 0;
	}

	.nas-wd-day-glyph {
		font-size: 28px;
	}

	.nas-wd-day > p:not(.nas-wd-high-low) {
		min-height: 0;
	}

	.nas-wd-day small {
		display: none;
	}
}

/* NAS uses a manual dark-mode body class; also honor the native color scheme. */
body.dark-mode .nas-wd-main,
body.is-dark-theme .nas-wd-main,
body.has-dark-mode .nas-wd-main,
html[data-wp-dark-mode-active] body .nas-wd-main {
	--nas-wd-ink: #f5f7ff;
	--nas-wd-muted: #bac3d7;
	--nas-wd-paper: #20232e;
	--nas-wd-soft: #292d3a;
	--nas-wd-line: #42495c;
	--nas-wd-sky: #283a63;
	background: var(--nas-wd-paper);
}

body.dark-mode .nas-wd-hour,
body.dark-mode .nas-wd-day,
body.dark-mode .nas-wd-planning-note,
body.is-dark-theme .nas-wd-hour,
body.is-dark-theme .nas-wd-day,
body.is-dark-theme .nas-wd-planning-note,
body.has-dark-mode .nas-wd-hour,
body.has-dark-mode .nas-wd-day,
body.has-dark-mode .nas-wd-planning-note,
html[data-wp-dark-mode-active] body .nas-wd-hour,
html[data-wp-dark-mode-active] body .nas-wd-day,
html[data-wp-dark-mode-active] body .nas-wd-planning-note {
	background: #242834;
}

body.dark-mode .nas-wd-clear,
body.is-dark-theme .nas-wd-clear,
body.has-dark-mode .nas-wd-clear,
html[data-wp-dark-mode-active] body .nas-wd-clear {
	border-color: #35664f;
	background: #203b30;
	color: #bce7d2;
}

body.dark-mode .nas-wd-alert-status,
body.is-dark-theme .nas-wd-alert-status,
body.has-dark-mode .nas-wd-alert-status,
html[data-wp-dark-mode-active] body .nas-wd-alert-status {
	border-color: #76622d;
	background: #39331f;
	color: #f4dda0;
}

body.dark-mode .nas-wd-alert,
body.is-dark-theme .nas-wd-alert,
body.has-dark-mode .nas-wd-alert,
html[data-wp-dark-mode-active] body .nas-wd-alert {
	border-color: #794441;
	background: #3d282a;
	color: #f2cecc;
}

body.dark-mode .nas-wd-alert h2,
body.dark-mode .nas-wd-alert-label,
body.dark-mode .nas-wd-alert a,
body.is-dark-theme .nas-wd-alert h2,
body.is-dark-theme .nas-wd-alert-label,
body.is-dark-theme .nas-wd-alert a,
body.has-dark-mode .nas-wd-alert h2,
body.has-dark-mode .nas-wd-alert-label,
body.has-dark-mode .nas-wd-alert a,
html[data-wp-dark-mode-active] body .nas-wd-alert h2,
html[data-wp-dark-mode-active] body .nas-wd-alert-label,
html[data-wp-dark-mode-active] body .nas-wd-alert a {
	color: #ffb9b4;
}
