.vedrid {
	--fv-warm: #c8322a;
	--fv-cold: #2563c9;
	--fv-line: rgba(127, 127, 127, 0.25);
	--fv-muted: rgba(127, 127, 127, 0.95);
	font-size: 15px;
	line-height: 1.35;
}
.vedrid .is-warm { color: var(--fv-warm); }
.vedrid .is-cold { color: var(--fv-cold); }
.vedrid-muted { color: var(--fv-muted); }
.vedrid-title { margin: 0 0 0.4em; }
.vedrid-place {
	font-weight: 600;
	font-size: 1.05em;
	margin-bottom: 0.5em;
}
.vedrid-icon { display: block; flex: none; }

/* Now */
.vedrid-now {
	background: linear-gradient(135deg, rgba(61, 142, 224, 0.16), rgba(61, 142, 224, 0.04));
	border: 1px solid rgba(61, 142, 224, 0.2);
	border-radius: 14px;
	padding: 14px 16px 16px;
	margin-bottom: 1em;
}
.vedrid-now-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1em;
	margin-bottom: 4px;
}
.vedrid-now-place { font-weight: 700; font-size: 1.1em; }
.vedrid-now-time { color: var(--fv-muted); font-size: 0.85em; }
.vedrid-now-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}
.vedrid-now-main {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 220px;
}
.vedrid-now-temp {
	font-size: 3.6em;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}
.vedrid-now-desc { margin-top: 4px; font-size: 1.05em; }
.vedrid-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
	flex: 1 1 280px;
}
.vedrid-tile {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "icon label" "icon value" "icon sub";
	column-gap: 8px;
	align-items: center;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.vedrid-tile-icon {
	grid-area: icon;
	align-self: start;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(61, 142, 224, 0.14);
	color: #2f7fd6;
}
.vedrid-tile-icon .vedrid-arrow { width: 18px; height: 18px; }
.vedrid-tile-label { grid-area: label; font-size: 0.78em; color: var(--fv-muted); }
.vedrid-tile-value { grid-area: value; font-weight: 700; font-size: 1.05em; white-space: nowrap; }
.vedrid-tile-sub { grid-area: sub; font-size: 0.78em; color: var(--fv-muted); }
.vedrid-arrow { vertical-align: -3px; }

/* Chart */
.vedrid-chart-wrap {
	overflow-x: auto;
	margin-bottom: 1em;
	-webkit-overflow-scrolling: touch;
}
.vedrid-chart {
	display: block;
	width: 100%;
	min-width: 560px;
	height: auto;
	font-size: 12px;
}
.vedrid-chart text { fill: currentColor; }
.vedrid-chart .fv-grid line { stroke: var(--fv-line); stroke-width: 1; }
.vedrid-chart .fv-grid line.fv-zero { stroke: var(--fv-muted); stroke-dasharray: 4 3; }
.vedrid-chart .fv-grid text,
.vedrid-chart .fv-hour,
.vedrid-chart .fv-unit { fill: var(--fv-muted); }
.vedrid-chart .fv-precip-axis text { fill: #3d8ee0; font-size: 11px; }
.vedrid-chart .fv-days line { stroke: var(--fv-muted); stroke-width: 1; }
.vedrid-chart .fv-days text { font-weight: 600; }
.vedrid-chart .fv-bars rect { opacity: 0.75; }
.vedrid-chart .fv-temp { font-weight: 600; font-size: 12px; }
.vedrid-chart .fv-temp.is-warm { fill: var(--fv-warm); }
.vedrid-chart .fv-temp.is-cold { fill: var(--fv-cold); }
.vedrid-chart .fv-wind { color: var(--fv-muted); }

/* Days */
.vedrid-days {
	list-style: none;
	margin: 0 0 0.75em;
	padding: 0;
}
.vedrid-day {
	display: grid;
	grid-template-columns: minmax(6em, 1.4fr) 40px;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	align-items: center;
	gap: 0.5em;
	padding: 0.2em 0;
	border-top: 1px solid var(--fv-line);
	margin: 0;
}
.vedrid-day:first-child { border-top: 0; }
.vedrid-day-temp { font-weight: 600; white-space: nowrap; }
.vedrid-day-precip { color: #2f7fd6; white-space: nowrap; }
.vedrid-day-wind { color: var(--fv-muted); white-space: nowrap; text-align: right; }

.vedrid-credit {
	font-size: 0.8em;
	color: var(--fv-muted);
	margin: 0;
}
.vedrid-error { font-style: italic; }

.vedrid-day-short { display: none; }

/* The coming days as blocks: always with "breitt", and with "auto" when there is room */
.vedrid--breitt .vedrid-days {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
	gap: 8px;
}
.vedrid--breitt .vedrid-day,
.vedrid--breitt .vedrid-day:first-child {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 8px 4px;
	border: 1px solid var(--fv-line);
	border-radius: 10px;
	text-align: center;
}
.vedrid--breitt .vedrid-day .vedrid-icon { width: 46px; height: 46px; }
.vedrid--breitt .vedrid-day-name { font-weight: 600; }
.vedrid--breitt .vedrid-day-long { display: none; }
.vedrid--breitt .vedrid-day-short { display: inline; }
.vedrid--breitt .vedrid-day-wind { text-align: center; }

@container (min-width: 420px) {
	.vedrid--auto .vedrid-days {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
		gap: 8px;
	}
	.vedrid--auto .vedrid-day,
	.vedrid--auto .vedrid-day:first-child {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding: 8px 4px;
		border: 1px solid var(--fv-line);
		border-radius: 10px;
		text-align: center;
	}
	.vedrid--auto .vedrid-day .vedrid-icon { width: 46px; height: 46px; }
	.vedrid--auto .vedrid-day-name { font-weight: 600; }
	.vedrid--auto .vedrid-day-long { display: none; }
	.vedrid--auto .vedrid-day-short { display: inline; }
	.vedrid--auto .vedrid-day-wind { text-align: center; }
}

/* Narrow places such as sidebars */
@container (max-width: 340px) {
	.vedrid-day { grid-template-columns: minmax(4.5em, 1.2fr) 36px; gap: 0.35em; font-size: 0.95em; }
	.vedrid-day-long { display: none; }
	.vedrid-day-short { display: inline; }
	.vedrid-now { padding: 12px; }
	.vedrid-tile { padding: 7px 8px; column-gap: 6px; }
	.vedrid-tile-icon { width: 26px; height: 26px; }
	.vedrid-tile-icon svg { width: 16px; height: 16px; }
}
.vedrid { container-type: inline-size; }
