/* Tribune Weather Command's look: its dark panel, blue accent, orange for
   warmth and storms, and its condensed italic display face. */
@font-face {
	font-family: "Barlow Semi Condensed";
	font-style: italic;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/barlow-semi-condensed-600-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Barlow Semi Condensed";
	font-style: italic;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/barlow-semi-condensed-800-italic.woff2") format("woff2");
}

.tribune-wx {
	--wx-bg: #121212;
	--wx-panel: #1e1e1e;
	--wx-line: #2a2a2a;
	--wx-text: #f0f0f0;
	--wx-muted: #9aa0a6;
	--wx-accent: #3d8bfd;
	--wx-warm: #f0a030;
	--wx-danger: #ef4444;
	--wx-display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
	box-sizing: border-box;
	display: grid;
	gap: 14px;
	margin-bottom: 28px;
	padding: 16px;
	border-radius: 10px;
	background: radial-gradient(120% 90% at 20% 0%, #1a3050 0%, var(--wx-bg) 62%);
	border: 1px solid var(--wx-line);
	color: var(--wx-text);
	font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
}

.tribune-wx a {
	color: inherit;
	text-decoration: none;
}

.tribune-wx__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 34px;
}

.tribune-wx__brand > span {
	display: grid;
	line-height: 1.1;
}

.tribune-wx__name {
	font-family: var(--wx-display);
	font-style: italic;
	font-weight: 800;
	font-size: 19px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.tribune-wx__place {
	font-size: 12px;
	color: var(--wx-muted);
}

.tribune-wx__alert {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid color-mix(in srgb, var(--wx-warm) 55%, transparent);
	background: color-mix(in srgb, var(--wx-warm) 16%, var(--wx-panel));
	font-weight: 700;
	font-size: 14px;
}

.tribune-wx__alert.is-warning {
	border-color: color-mix(in srgb, var(--wx-danger) 60%, transparent);
	background: color-mix(in srgb, var(--wx-danger) 20%, var(--wx-panel));
}

.tribune-wx__now {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tribune-wx__temp {
	font-family: var(--wx-display);
	font-style: italic;
	font-weight: 800;
	font-size: 56px;
	line-height: 0.9;
	color: var(--wx-warm);
	font-variant-numeric: tabular-nums;
}

.tribune-wx__detail {
	display: grid;
	gap: 2px;
}

/* The sky right now, at the right of the temperature row. */
.tribune-wx .tribune-wx__now-icon {
	flex: none;
	width: 64px;
	height: 64px;
	margin-left: auto;
}

.tribune-wx__text {
	font-weight: 700;
	font-size: 16px;
}

.tribune-wx__hilo {
	font-size: 13px;
	color: var(--wx-muted);
	font-variant-numeric: tabular-nums;
}

.tribune-wx__days {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 4px;
	margin: 0;
	padding: 10px 0 0;
	list-style: none;
	border-top: 1px solid var(--wx-line);
}

.tribune-wx__days li {
	display: grid;
	justify-items: center;
	gap: 3px;
	margin: 0;
	padding: 6px 0;
	border-radius: 8px;
	background: color-mix(in srgb, var(--wx-panel) 70%, transparent);
	font-size: 12px;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.tribune-wx__day {
	font-weight: 700;
	color: var(--wx-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 11px;
}

.tribune-wx__range {
	font-weight: 700;
	font-size: 14px;
}

.tribune-wx__range small {
	display: block;
	text-align: center;
	font-size: 12px;
	font-weight: 400;
	color: var(--wx-muted);
}

.tribune-wx__pop {
	font-size: 11px;
	color: #6eb5ff;
}

.tribune-wx__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid color-mix(in srgb, var(--wx-accent) 45%, transparent);
	background: color-mix(in srgb, var(--wx-accent) 12%, transparent);
	font-weight: 700;
	font-size: 14px;
}

.tribune-wx a:hover .tribune-wx__name,
.tribune-wx__more:hover,
.tribune-wx__alert:hover {
	text-decoration: underline;
}

.tribune-wx a:focus-visible {
	outline: 2px solid var(--wx-accent);
	outline-offset: 2px;
}

/* The header's temperature, linked to Weather Command. */
.tribune-wx-head {
	display: inline-block;
	width: auto;
	/* The theme gives every block a 48px bottom margin, which pushed the date
	   below the temperature. */
	margin: 0 32px 0 0 !important;
	vertical-align: middle;
}

.tribune-wx-head a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 24px;
	color: #111;
	font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.tribune-wx-head a:hover,
.tribune-wx-head a:focus-visible {
	text-decoration: underline;
}

.tribune-wx-head img {
	display: block;
	width: 18px;
	height: 18px;
}

.tribune-wx-head__temp {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.tribune-wx-head__alert {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f0a030;
}
