/* Astro Weather — front-end styles */

.astroweather {
	--aw-bg-1: #0b1026;
	--aw-bg-2: #05060f;
	--aw-fg: #eef2ff;
	--aw-muted: #9aa6c9;
	--aw-accent: #cdd7ff;
	--aw-border: rgba(255, 255, 255, 0.1);

	box-sizing: border-box;
	margin: 0 auto;
	padding: 20px 22px;
	border-radius: 16px;
	background: radial-gradient(120% 120% at 50% 0%, var(--aw-bg-1) 0%, var(--aw-bg-2) 85%);
	color: var(--aw-fg);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.astroweather * {
	box-sizing: border-box;
}

.astroweather--light {
	--aw-bg-1: #f4f6fc;
	--aw-bg-2: #e7ecf7;
	--aw-fg: #1a2238;
	--aw-muted: #5b6688;
	--aw-accent: #2b3a78;
	--aw-border: rgba(20, 30, 60, 0.12);
	box-shadow: 0 14px 36px rgba(40, 60, 110, 0.16);
}

.astroweather .astroweather__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding-bottom: 14px;
}

.astroweather .astroweather__temp {
	font-size: 2.4rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--aw-fg);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.astroweather .astroweather__unit {
	font-size: 1.1rem;
	font-weight: 600;
	margin-left: 3px;
	color: var(--aw-muted);
}

.astroweather .astroweather__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	text-align: right;
}

.astroweather .astroweather__station {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--aw-accent);
}

.astroweather .astroweather__updated {
	font-size: 0.72rem;
	color: var(--aw-muted);
}

.astroweather .astroweather__updated b {
	font-weight: 600;
	color: var(--aw-fg);
	font-variant-numeric: tabular-nums;
}

.astroweather .astroweather__condition {
	margin: -4px 0 12px;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--aw-accent);
	text-wrap: balance;
}

.astroweather .astroweather__condition[hidden] {
	display: none;
}

.astroweather .astroweather__stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
	border-top: 1px solid var(--aw-border);
}

.astroweather .astroweather__stats li[hidden] {
	display: none;
}

.astroweather .astroweather__stats li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 18px;
	margin: 0;
	padding: 10px 2px;
	border-bottom: 1px solid var(--aw-border);
	list-style: none;
	background: none;
}

.astroweather .astroweather__stats li:last-child {
	border-bottom: 0;
}

.astroweather .astroweather__stats li::before,
.astroweather .astroweather__stats li::marker {
	content: none;
}

.astroweather .astroweather__stats li span {
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--aw-muted);
}

.astroweather .astroweather__stats li b {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--aw-accent);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.astroweather .astroweather__windval {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.astroweather .astroweather__arrow {
	flex: 0 0 auto;
	transform-origin: 50% 50%;
	transition: transform 0.5s ease;
	color: var(--aw-accent);
	opacity: 0.95;
}

.astroweather .astroweather__arrow[hidden] {
	display: none;
}

/* Sparkline */
.astroweather .astroweather__spark {
	margin-top: 14px;
}

.astroweather .astroweather__spark[hidden] {
	display: none;
}

.astroweather .astroweather__spark-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 5px;
}

.astroweather .astroweather__spark-head span:first-child {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--aw-muted);
}

.astroweather .astroweather__spark-head span:last-child {
	font-size: 0.72rem;
	color: var(--aw-muted);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.astroweather .astroweather__spark-svg {
	display: block;
	width: 100%;
	height: 34px;
	overflow: visible;
}

.astroweather .astroweather__spark-svg polyline {
	stroke: var(--aw-accent);
	stroke-width: 1.6;
	stroke-linejoin: round;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	transition: all 0.5s ease;
}

/* Weather Underground link */
.astroweather .astroweather__more {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--aw-border);
	text-align: center;
}

.astroweather .astroweather__wu {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--aw-accent);
	text-decoration: none;
	opacity: 0.9;
}

.astroweather .astroweather__wu:hover,
.astroweather .astroweather__wu:focus-visible {
	opacity: 1;
	text-decoration: underline;
}

.astroweather .astroweather__wu[hidden] {
	display: none;
}

.astroweather .astroweather__wu-arrow {
	font-weight: 400;
}
