/*
 * Astro Forecast chart. One color rule: the "best" color is a great hour or a clear sky, fading to "worst".
 * Override any --af-* property in your theme: .astro-forecast { --af-best: #123; } (see README, "Themes").
 * Narrow layouts follow the chart's own width (a container query), not the screen's.
 */

.astro-forecast {
	--af-best: #071029;
	--af-worst: #ffffff;
	--af-dusk: #fcefd2;
	--af-highlight: #f2b632;
	--af-bg: #ffffff;
	--af-ink: #111111;
	--af-muted: #4b5563;
	--af-line: #e3e1da;
	--af-on-dark: #ffffff;
	--af-warn: #8a5a00;
	--af-stop: #9b2c1f;
	--af-tint: color-mix(in srgb, var(--af-highlight) 10%, var(--af-bg));
	--af-label: 200px;
	--af-font: inherit;
	--af-font-display: inherit;
	--af-headline-size: 26px;
	--af-radius: 12px;
	container-type: inline-size;
	margin: 0 0 24px;
	color: var(--af-ink);
	font-family: var(--af-font);
}

.astro-forecast *,
.astro-forecast *::before,
.astro-forecast *::after {
	box-sizing: border-box;
}

.af__card {
	padding: 28px 28px 8px;
	border: 1px solid var(--af-line);
	background: var(--af-bg);
}

.astro-forecast .af__label {
	margin: 0;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--af-muted);
}

.astro-forecast .af__headline {
	margin: 6px 0 20px;
	font-family: var(--af-font-display);
	font-size: var(--af-headline-size);
	line-height: 1.25;
	color: var(--af-best);
}

.af__icon {
	width: 16px;
	height: 16px;
	flex: none;
}

.af__grid {
	display: grid;
	grid-template-columns: var(--af-label) repeat(var(--cols), minmax(0, 1fr));
	align-items: stretch;
}

/* The hours across the top, with the window highlighted. */
.af__hours {
	grid-template-rows: auto auto;
	border-bottom: 1px solid var(--af-ink);
}

.af__windowbar {
	grid-row: 1;
	padding: 5px 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	color: var(--af-ink);
	background: var(--af-highlight);
}

.af__date,
.af__hours .af__hour {
	grid-row: 2;
	padding: 10px 0 8px;
	font-size: 14px;
	font-weight: 600;
}

.af__date {
	grid-column: 1;
}

.af__hour {
	text-align: center;
}

.astro-forecast .is-window {
	background: var(--af-tint);
}

/* Tabs: radio buttons and labels, so they work without JavaScript. */
.af__radio {
	display: none;
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.af__tabs {
	display: none;
	gap: 6px;
	margin-top: 16px;
	border-bottom: 1px solid var(--af-line);
}

.af__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: -1px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	color: var(--af-muted);
	border: 1px solid var(--af-line);
	background: color-mix(in srgb, var(--af-best) 4%, var(--af-bg));
}

.af__tab .is-short {
	display: none;
}

.af__radio[value="stargazing"]:checked ~ .af__tabs .af__tab.is-stargazing,
.af__radio[value="clouds"]:checked ~ .af__tabs .af__tab.is-clouds,
.af__radio[value="comfort"]:checked ~ .af__tabs .af__tab.is-comfort,
.af__radio[value="seeing"]:checked ~ .af__tabs .af__tab.is-seeing {
	color: var(--af-best);
	background: var(--af-bg);
	border-bottom-color: var(--af-bg);
	box-shadow: inset 0 3px 0 var(--af-highlight);
}

.af__radio[value="stargazing"]:focus-visible ~ .af__tabs .af__tab.is-stargazing,
.af__radio[value="clouds"]:focus-visible ~ .af__tabs .af__tab.is-clouds,
.af__radio[value="comfort"]:focus-visible ~ .af__tabs .af__tab.is-comfort,
.af__radio[value="seeing"]:focus-visible ~ .af__tabs .af__tab.is-seeing {
	outline: 2px solid var(--af-best);
	outline-offset: 2px;
}

.af__radio[value="stargazing"]:checked ~ .af__panel.is-stargazing,
.af__radio[value="clouds"]:checked ~ .af__panel.is-clouds,
.af__radio[value="comfort"]:checked ~ .af__panel.is-comfort,
.af__radio[value="seeing"]:checked ~ .af__panel.is-seeing {
	display: block;
}

/* Sections: stacked under their own headings (layouts auto on a wide card, and never). */
.af__panel {
	padding: 20px 0 12px;
}

.af__section {
	align-items: end;
	margin: 4px 0 14px;
	border-bottom: 1px solid var(--af-line);
}

.af__panel.is-stargazing .af__section {
	border-bottom: 0;
}

.astro-forecast .af__title {
	display: flex;
	font-family: var(--af-font-display);
	align-items: center;
	gap: 8px;
	margin: 0;
	padding-bottom: 6px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--af-best);
}

.af__title .af__icon {
	width: 18px;
	height: 18px;
}

.af__section .af__hour {
	padding: 4px 0 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--af-muted);
}

/* Always tabs. */
.is-tabs-always .af__tabs {
	display: flex;
}

.is-tabs-always .af__radio {
	display: block;
}

.is-tabs-always .af__panel,
.is-tabs-always .af__section {
	display: none;
}

.astro-forecast .af__legend,
.astro-forecast .af__intro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 0 0 12px var(--af-label);
	font-size: 13px;
	color: var(--af-muted);
}

.astro-forecast .af__intro {
	display: block;
}

.af__legend strong,
.af__intro strong {
	color: var(--af-ink);
}

.af__key::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	vertical-align: -1px;
	background: var(--key);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--af-ink) 12%, transparent);
}

.astro-forecast .af__empty {
	margin: 8px 0;
	color: var(--af-muted);
}

/* Rows: a name on the left, one cell per hour. */
.af__row {
	border-bottom: 1px solid var(--af-line);
}

.af__name {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px 16px 10px 0;
}

.af__name strong {
	font-size: 15px;
	line-height: 20px;
	color: var(--af-ink);
}

.af__name small {
	font-size: 12.5px;
	line-height: 17px;
	color: var(--af-muted);
}

.af__cell.is-value {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 10px 2px;
	font-size: 15px;
	text-align: center;
}

.af__cell small {
	font-size: 12px;
	color: var(--af-muted);
}

/* The Stargazing rating: best color = best hour. */
.af__rating,
.af__key {
	--key: var(--af-dusk);
}

.af__rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 6px 3px;
	padding: 10px 2px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
	color: var(--af-ink);
	background: var(--key);
}

.astro-forecast .is-great {
	--key: var(--af-best);
}

.astro-forecast .is-good {
	--key: color-mix(in srgb, var(--af-best) 78%, var(--af-worst));
}

.astro-forecast .is-some {
	--key: color-mix(in srgb, var(--af-best) 25%, var(--af-worst));
}

.astro-forecast .is-cloudy {
	--key: color-mix(in srgb, var(--af-best) 10%, var(--af-worst));
}

.astro-forecast .is-notdark {
	--key: var(--af-dusk);
}

.astro-forecast .is-unknown {
	--key: color-mix(in srgb, var(--af-best) 4%, var(--af-worst));
}

.af__rating.is-great,
.af__rating.is-good {
	color: var(--af-on-dark);
}

.af__rating.is-great .af__icon,
.af__rating.is-good .af__icon {
	color: var(--af-highlight);
	fill: var(--af-highlight);
}

.af__rating.is-cloudy,
.af__rating.is-unknown {
	color: var(--af-muted);
}

.af__rating .af__icon {
	width: 17px;
	height: 17px;
}

/* Darkness: a band from daylight to night, marked at sunset, first stars and full dark. */
.af__darkness {
	position: relative;
	padding: 10px 0 70px;
}

.af__band {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 28px;
	padding: 0 12px;
	font-size: 13px;
	color: var(--af-on-dark);
	background: linear-gradient(90deg, var(--af-dusk) 0, var(--af-dusk) var(--sunset), color-mix(in srgb, var(--af-best) 45%, var(--af-worst)) var(--first), var(--af-best) var(--dark), var(--af-best) 100%);
}

/* The moon's note on the band: its own pill, readable on any part of the band in any color scale. */
.af__band span {
	padding: 1px 8px;
	font-size: 12px;
	line-height: 18px;
	color: var(--af-ink);
	background: var(--af-bg);
	border-radius: 999px;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--af-ink) 12%, transparent);
}

.af__mark {
	position: absolute;
	top: 38px;
	display: flex;
	gap: 0.3em;
	padding: 4px 0 0 6px;
	font-size: 12.5px;
	white-space: nowrap;
	color: var(--af-muted);
	border-left: 1px dashed var(--af-ink);
}

/* A mark near the right edge: its label to the left of the line. */
.af__mark.is-flip {
	/* The time stays next to its line: "Fully dark 6:48". */
	flex-direction: row-reverse;
	padding: 4px 6px 0 0;
	text-align: right;
	border-left: 0;
	border-right: 1px dashed var(--af-ink);
	transform: translateX(-100%);
}

.af__mark b {
	color: var(--af-ink);
}

.af__mark.is-first_stars {
	top: 58px;
}

.af__mark.is-sunset {
	top: 78px;
}

/* Shaded boxes for cloud: a clear sky is the best color, a covered one pale. */
.af__box {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 2px;
	font-size: 14.5px;
	color: var(--af-ink);
	background: color-mix(in srgb, var(--af-best) var(--shade, 0%), var(--af-worst));
	box-shadow: inset -1px -1px 0 var(--af-bg);
}

.af__box[data-dark],
.af__estimate[data-dark] {
	color: var(--af-on-dark);
}

.af__row.is-total .af__box {
	font-weight: 700;
}

.af__box.is-none {
	color: var(--af-muted);
	background: var(--af-bg);
}

.af__dew {
	padding: 1px 7px;
	font-size: 12.5px;
	font-weight: 600;
	border: 1px solid transparent;
}

.af__dew.is-medium {
	color: var(--af-warn);
	background: color-mix(in srgb, var(--af-warn) 12%, var(--af-bg));
	border-color: var(--af-warn);
}

.af__dew.is-high {
	color: var(--af-stop);
	background: color-mix(in srgb, var(--af-stop) 10%, var(--af-bg));
	border-color: var(--af-stop);
}

/* Seeing and transparency: 3-hour boxes, dashed because they are rougher. */
.af__estimate {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 6px 3px;
	padding: 8px 4px;
	font-size: 14px;
	text-align: center;
	color: var(--af-ink);
	background: color-mix(in srgb, var(--af-best) var(--shade, 0%), var(--af-worst));
	border: 1px dashed color-mix(in srgb, var(--af-best) 45%, var(--af-worst));
}

.af__estimate small {
	font-size: 12px;
	opacity: 0.8;
}

.af__estimate.is-none {
	color: var(--af-muted);
}

/* Under the card: optional extras, then the required data credits. */
.astro-forecast .af__extras {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--af-muted);
}

.af__csc {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.af__csc .af__icon {
	width: 13px;
	height: 13px;
}

.af__csc-image {
	flex-basis: 100%;
}

.af__csc-image img {
	max-width: 100%;
	height: auto;
}

.astro-forecast .astro-forecast-credits {
	display: block;
	visibility: visible;
	opacity: 1;
	margin: 8px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--af-muted);
}

.astro-forecast .astro-forecast-credits a {
	color: inherit;
	text-decoration: underline;
}

/* The footer: optional extras over the required credits (Full); side by side in a card (Compact). */
.af__foot {
	display: flex;
	flex-direction: column;
}

.af__foot .af__extras {
	order: -1;
}

/* ---------------------------------------------------------------------------
 * The Compact layout: one heat map, a square per hour. v0 (worst) to v4 (best).
 * ------------------------------------------------------------------------ */

.astro-forecast.is-layout-compact {
	--afc-lbl: 100px;
	--afc-gap: 3px;
	--afc-v0: color-mix(in srgb, var(--af-best) 7%, var(--af-worst));
	--afc-v1: color-mix(in srgb, var(--af-best) 28%, var(--af-worst));
	--afc-v2: color-mix(in srgb, var(--af-best) 52%, var(--af-worst));
	--afc-v3: color-mix(in srgb, var(--af-best) 76%, var(--af-worst));
	--afc-v4: var(--af-best);
	--afc-nd: repeating-linear-gradient(45deg, color-mix(in srgb, var(--af-dusk) 45%, var(--af-bg)) 0 3px, var(--af-dusk) 3px 5px);
	--afc-window: color-mix(in srgb, var(--af-highlight) 80%, #000);
	--afc-window-text: color-mix(in srgb, var(--af-highlight) 50%, #000);
	padding: 20px 20px 16px;
	border: 1px solid var(--af-line);
	border-radius: var(--af-radius);
	background: var(--af-bg);
	font-size: 14px;
	line-height: 20px;
}

.afc {
	position: relative;
}

.afc__top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 16px;
}

.astro-forecast .afc__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--af-ink);
}

.astro-forecast .afc__when {
	margin: 0;
	font-size: 12px;
	color: var(--af-muted);
}

.astro-forecast .afc__headline {
	margin: 4px 0 0;
	color: var(--af-ink);
}

.astro-forecast .afc__empty {
	margin: 0;
	color: var(--af-muted);
}

.afc__scroll {
	position: relative;
	margin-top: 20px;
	padding: 6px 4px 6px 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

.afc__scroll.has-window {
	margin-top: 22px;
	padding-top: 24px;
}

.afc__grid {
	position: relative;
	display: grid;
	grid-template-columns: var(--afc-lbl) repeat(var(--cols), minmax(22px, 1fr));
	gap: var(--afc-gap);
	font-size: 12px;
	line-height: 16px;
}

.afc__lbl {
	position: sticky;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	min-width: 0;
	padding-right: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--af-muted);
	background: var(--af-bg);
}

.afc__corner {
	position: sticky;
	left: 0;
	z-index: 2;
	background: var(--af-bg);
}

/* When the hours scroll sideways, the row names stay put: a solid column that also covers the
   gaps around each name, with a soft edge, so no square shows through or beside it. */
.afc__lbl::before,
.afc__corner::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: calc(var(--afc-gap) * -1);
	bottom: calc(var(--afc-gap) * -1);
	left: 0;
	right: calc(var(--afc-gap) * -1);
	background: var(--af-bg);
}

.afc__scroll.is-scrolled .afc__lbl::before,
.afc__scroll.is-scrolled .afc__corner::before {
	box-shadow: 6px 0 6px -6px color-mix(in srgb, var(--af-ink) 35%, transparent);
}

.afc__lbl > span,
.afc__lbl {
	overflow: hidden;
	text-overflow: ellipsis;
}

.afc__hr {
	padding-bottom: 4px;
	text-align: center;
	color: var(--af-muted);
	font-variant-numeric: tabular-nums;
}

.afc__gap {
	grid-column: 1 / -1;
	height: 6px;
}

.afc__c {
	position: relative;
	height: 22px;
	border-radius: 3px;
	background: var(--afc-v0);
}

.afc__c.v0 { background: var(--afc-v0); }
.afc__c.v1 { background: var(--afc-v1); }
.afc__c.v2 { background: var(--afc-v2); }
.afc__c.v3 { background: var(--afc-v3); }
.afc__c.v4 { background: var(--afc-v4); }

.afc__c.nd {
	background: var(--afc-nd);
}

.afc__c.none {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--af-line);
}

.afc__c.temp {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: var(--af-muted);
	background: transparent;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.afc__c:focus-visible,
.afc__c.is-on {
	z-index: 3;
	outline: none;
	box-shadow: 0 0 0 2px var(--af-bg), 0 0 0 4px var(--af-ink);
}

.afc__window {
	position: absolute;
	grid-row: 1 / -1;
	top: -6px;
	bottom: -5px;
	left: -4px;
	right: -4px;
	z-index: 1;
	border: 2px solid var(--afc-window);
	border-radius: 6px;
	pointer-events: none;
}

.afc__window span {
	position: absolute;
	bottom: 100%;
	left: -2px;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	white-space: nowrap;
	color: var(--afc-window-text);
}

.afc__tip {
	position: absolute;
	z-index: 5;
	padding: 8px 12px;
	font-size: 12px;
	line-height: 16px;
	white-space: nowrap;
	color: var(--af-muted);
	background: var(--af-bg);
	border: 1px solid var(--af-line);
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
	transform: translate(-50%, calc(-100% - 10px));
	pointer-events: none;
}

.afc__tip b {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--af-ink);
}

.astro-forecast .afc__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--af-muted);
}

.afc__k {
	display: flex;
	align-items: center;
	gap: 6px;
}

.afc__ramp {
	display: flex;
	gap: 2px;
}

.afc__ramp i,
.afc__sw {
	display: block;
	width: 14px;
	height: 10px;
	border-radius: 2px;
}

.afc__ramp .v0 { background: var(--afc-v0); }
.afc__ramp .v1 { background: var(--afc-v1); }
.afc__ramp .v2 { background: var(--afc-v2); }
.afc__ramp .v3 { background: var(--afc-v3); }
.afc__ramp .v4 { background: var(--afc-v4); }

.afc__sw.nd {
	background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--af-dusk) 45%, var(--af-bg)) 0 2px, var(--af-dusk) 2px 4px);
}

.is-layout-compact .af__foot {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 4px 24px;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--af-line);
}

.is-layout-compact .af__foot .af__extras {
	order: 2;
	flex: 0 1 auto;
	flex-wrap: wrap;
	min-width: 0;
	gap: 12px;
	margin: 0;
	font-size: 12px;
	line-height: 16px;
}

.is-layout-compact .af__foot .astro-forecast-credits {
	flex: 1 1 320px;
	margin: 0;
	font-size: 12px;
	line-height: 16px;
}

.is-layout-compact .af__extras a {
	color: inherit;
}

@container (max-width: 520px) {
	/* Phones: fit the hours to the card instead of scrolling. Squares shrink, every other hour is
	   labelled when there are many, and only a very long chart scrolls. */
	.astro-forecast.is-layout-compact {
		--afc-lbl: 74px;
		--afc-gap: 2px;
	}

	.afc__grid {
		grid-template-columns: var(--afc-lbl) repeat(var(--cols), minmax(16px, 1fr));
		font-size: 11px;
	}

	.afc__c {
		height: 20px;
		border-radius: 2px;
	}

	.afc__c.temp {
		overflow: visible;
		font-size: 10px;
	}

	.afc__grid.is-many .afc__hr.is-odd,
	.afc__grid.is-many .afc__c.temp.is-odd {
		color: transparent;
	}

	.afc__hr {
		overflow: visible;
		white-space: nowrap;
	}

	.is-layout-compact .af__foot .af__extras {
		order: -1;
		flex-basis: 100%;
		gap: 4px 12px;
	}
}

/* The narrow layout: hours run down the card. */
.af__narrow {
	display: none;
}

@container (max-width: 640px) {
	.af__card {
		padding: 20px 16px 4px;
	}

	.astro-forecast .af__headline {
		font-size: calc(var(--af-headline-size) * 0.85);
	}

	.af__wide,
	.af__hours,
	.af__section .af__hour {
		display: none;
	}

	.af__narrow {
		display: block;
	}

	table.af__narrow {
		display: table;
	}

	.af__section {
		display: block;
	}

	/* Layout auto: the sections become tabs. */
	.is-tabs-auto .af__radio {
		display: block;
	}

	.is-tabs-auto .af__section,
	.is-tabs-auto .af__panel {
		display: none;
	}

	.is-tabs-auto .af__tabs,
	.is-tabs-always .af__tabs {
		display: flex;
		gap: 0;
		margin: 0 -16px;
	}

	.af__radio[value="stargazing"]:checked ~ .af__panel.is-stargazing,
	.af__radio[value="clouds"]:checked ~ .af__panel.is-clouds,
	.af__radio[value="comfort"]:checked ~ .af__panel.is-comfort,
	.af__radio[value="seeing"]:checked ~ .af__panel.is-seeing {
		display: block;
	}

	.is-tabs-never .af__panel {
		display: block;
	}

	.af__tab {
		flex: 1;
		justify-content: center;
		padding: 10px 4px;
		font-size: 13.5px;
	}

	.af__tab .af__icon,
	.af__tab .is-long {
		display: none;
	}

	.af__tab .is-short {
		display: inline;
	}

	.astro-forecast .af__legend,
	.astro-forecast .af__intro {
		margin-left: 0;
	}

	.astro-forecast .af__list {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.af__list li {
		display: grid;
		grid-template-columns: 52px 8px minmax(0, 1fr);
		gap: 0 10px;
		align-items: stretch;
		padding-left: 6px;
		border-left: 4px solid transparent;
	}

	.af__list li.is-window {
		border-left-color: var(--af-highlight);
		background: none;
	}

	.af__time {
		align-self: center;
		font-size: 14px;
		font-weight: 600;
		text-align: right;
	}

	.af__strip.is-day {
		background: var(--af-dusk);
	}

	.af__strip.is-dusk {
		background: linear-gradient(var(--af-dusk), var(--af-best));
	}

	.af__strip.is-night {
		background: var(--af-best);
	}

	.af__list .af__rating {
		flex-direction: row;
		justify-content: flex-start;
		gap: 10px;
		margin: 2px 0;
		padding: 12px 14px;
		text-align: left;
	}

	.af__list .af__rating.is-plain {
		background: none;
	}

	.af__rating small {
		display: block;
		font-size: 12px;
		font-weight: 400;
		opacity: 0.85;
	}

	.astro-forecast .af__note {
		margin: 10px 0 0;
		font-size: 12.5px;
		color: var(--af-muted);
	}

	.af__windowkey {
		display: inline-block;
		width: 4px;
		height: 12px;
		margin-right: 8px;
		vertical-align: -1px;
		background: var(--af-highlight);
	}

	td.af__box {
		display: table-cell;
		padding: 10px 2px;
		text-align: center;
		vertical-align: middle;
	}

	.astro-forecast .af__table {
		width: 100%;
		margin: 0;
		border-collapse: collapse;
		font-size: 14px;
	}

	.af__table th {
		padding: 6px 4px;
		font-size: 12px;
		font-weight: 600;
		text-align: center;
		color: var(--af-muted);
		border: 0;
	}

	.af__table tbody th {
		text-align: right;
		color: var(--af-ink);
		border-left: 4px solid transparent;
	}

	.af__table tr.is-window th {
		border-left-color: var(--af-highlight);
	}

	.af__table.is-plain td {
		padding: 8px 4px;
		text-align: center;
		border: 0;
		border-bottom: 1px solid var(--af-line);
	}

	.af__table td small {
		display: block;
		font-size: 11px;
		color: var(--af-muted);
	}

	.af__table tr.is-window {
		background: none;
	}

	.astro-forecast .af__blocks {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.af__blocks li {
		display: grid;
		grid-template-columns: 70px repeat(var(--parts, 2), minmax(0, 1fr));
		gap: 8px;
		align-items: center;
		padding: 4px 0;
	}

	.af__blocks .af__estimate {
		margin: 0;
	}
}

/* when="event" without event times: shown to editors only. */
.astro-forecast-notice {
	padding: 10px 14px;
	font-size: 13px;
	color: #854d0e;
	background: #fefce8;
	border: 1px dashed #eab308;
	border-radius: 8px;
}

/* Wind: the speed with a small arrow pointing the way the wind blows. */
.astro-forecast .af__wind {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.astro-forecast .af__winddir {
	display: inline-flex;
	color: var(--af-muted);
	transform: rotate(var(--af-dir, 0deg));
}

.astro-forecast .af__winddir svg {
	display: block;
}
