/*
Theme Name: El Niño
Theme URI: https://el-nino.ee/
Author: El-nino.ee
Description: El-nino.ee avaleht: El Niño olukord NOAA andmetest ning Keskkonnaagentuuri ilmavaatlused, hoiatused ja 4 päeva prognoos. Andmed uuenevad kord päevas kell 13.00.
Version: 1.0.5
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: el-nino
*/

/* Archivo (SIL OFL 1.1, see assets/fonts/OFL.txt), variable weight and width. */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("assets/fonts/archivo-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #0a1622;
	--ink-2: #26394a;
	--mute: #5b6b79;
	--line: #d8dee4;
	--line-2: #e8edf1;
	--paper: #ffffff;
	--tint: #f2f5f8;
	--deep: #06121d;
	--deep-2: #0c2233;
	--deep-line: rgba(255, 255, 255, 0.14);
	--deep-mute: #9fb4c6;
	--accent: #e8431f;
	--accent-ink: #c2330f;
	--cool: #1d5fa8;
	--radius: 4px;
	--wrap: 1240px;
	--gutter: clamp(18px, 4vw, 40px);
	--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base ------------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent-ink);
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	line-height: 1.1;
	font-weight: 800;
	font-stretch: 85%;
	letter-spacing: -0.015em;
}

p {
	margin: 0 0 1em;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--text {
	max-width: 820px;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 100;
	padding: 10px 14px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Ticker ---------------------------------------------------------------- */

.ticker {
	overflow: hidden;
	background: var(--deep);
	color: #cfe0ee;
	border-bottom: 1px solid var(--deep-line);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ticker__track {
	display: flex;
	width: max-content;
	animation: elnino-ticker 70s linear infinite;
}

.ticker:hover .ticker__track {
	animation-play-state: paused;
}

.ticker__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ticker__list li {
	position: relative;
	padding: 8px 22px;
	white-space: nowrap;
}

.ticker__list li::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	background: var(--accent);
	transform: translate(50%, -50%);
}

@keyframes elnino-ticker {
	to {
		transform: translateX(-50%);
	}
}

/* Header ---------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--deep);
	color: #fff;
	border-bottom: 1px solid var(--deep-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 64px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.brand:hover {
	color: inherit;
}

.brand__mark {
	display: inline-grid;
	grid-template-columns: repeat(5, 5px);
	height: 22px;
}

.brand__mark i:nth-child(1) { background: #2171b5; }
.brand__mark i:nth-child(2) { background: #9ecae1; }
.brand__mark i:nth-child(3) { background: #fcbba1; }
.brand__mark i:nth-child(4) { background: #ef3b2c; }
.brand__mark i:nth-child(5) { background: #99000d; }

.brand__name {
	font-size: 21px;
	font-weight: 800;
	font-stretch: 85%;
	letter-spacing: -0.01em;
}

.brand__tld {
	color: var(--accent);
}

.site-nav__list {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: block;
	padding: 8px 12px;
	color: #d9e4ee;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.site-nav__list a:hover {
	color: #fff;
	box-shadow: inset 0 -2px var(--accent);
}

/* Buttons --------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--accent {
	background: var(--accent);
	color: #fff;
}

.btn--accent:hover {
	background: #ff5a2e;
	color: #fff;
}

.btn--line,
.btn--line-light {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.btn--line:hover,
.btn--line-light:hover {
	border-color: #fff;
	color: #fff;
}

/* Hero ------------------------------------------------------------------ */

.hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(40px, 7vw, 88px);
	background: var(--deep);
	color: #fff;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: end;
}

.hero__eyebrow {
	margin: 0 0 18px;
	color: var(--deep-mute);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero__title {
	margin: 0 0 22px;
}

.hero__big {
	display: block;
	font-size: clamp(64px, 11.5vw, 168px);
	font-weight: 900;
	font-stretch: 75%;
	line-height: 0.86;
	letter-spacing: -0.03em;
}

.hero__rest {
	display: block;
	margin-top: 12px;
	color: var(--accent);
	font-size: clamp(26px, 3.6vw, 48px);
	font-weight: 700;
	line-height: 1.05;
}

.hero__lead {
	max-width: 60ch;
	color: #c9d6e2;
	font-size: clamp(16px, 1.4vw, 19px);
}

.hero__lead strong {
	color: #fff;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 26px 0 0;
}

.hero__panel {
	padding: clamp(18px, 2.4vw, 28px);
	background: var(--deep-2);
	border: 1px solid var(--deep-line);
	border-radius: var(--radius);
}

.gauge__label {
	margin: 0 0 6px;
	color: var(--deep-mute);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gauge__value {
	margin: 0;
	color: #fff;
	font-size: clamp(64px, 8vw, 112px);
	font-weight: 800;
	font-stretch: 80%;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	letter-spacing: -0.03em;
	text-decoration: underline;
	text-decoration-color: var(--c, var(--accent));
	text-decoration-thickness: 0.07em;
	text-underline-offset: 0.12em;
	text-decoration-skip-ink: none;
}

.gauge__value span {
	display: inline-block;
	margin-left: 0.12em;
	color: var(--deep-mute);
	font-size: 0.3em;
	font-weight: 600;
	letter-spacing: 0;
	vertical-align: 1.1em;
}

.gauge__meta {
	margin: 14px 0 16px;
	color: #c9d6e2;
	font-size: 15px;
}

.scale {
	position: relative;
	padding-top: 8px;
}

.scale__cells {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 1px;
	height: 12px;
}

.scale__cells i {
	display: block;
}

.scale__marker {
	position: absolute;
	top: 2px;
	width: 3px;
	height: 24px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--deep-2);
	transform: translateX(-50%);
}

.scale__ticks {
	position: relative;
	height: 18px;
	margin-top: 8px;
	color: var(--deep-mute);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.scale__ticks span {
	position: absolute;
	transform: translateX(-50%);
}

.panel-list {
	margin: 18px 0 0;
	border-top: 1px solid var(--deep-line);
}

.panel-list div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--deep-line);
}

.panel-list dt {
	color: var(--deep-mute);
	font-size: 14px;
}

.panel-list dd {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	text-align: right;
}

.panel-list .en {
	display: block;
	color: #8ea3b6;
	font-size: 12px;
	font-weight: 400;
}

/* Climate stripes ------------------------------------------------------- */

.stripes {
	margin: clamp(40px, 6vw, 72px) 0 0;
}

.stripes__band {
	position: relative;
	height: clamp(90px, 12vw, 150px);
}

.stripes-svg {
	display: block;
	width: 100%;
	height: 100%;
	animation: elnino-reveal 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes elnino-reveal {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

.stripes__event {
	position: absolute;
	top: 10px;
	padding: 2px 6px;
	background: rgba(6, 18, 29, 0.85);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	transform: translateX(-50%);
}

.stripes__event::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	width: 1px;
	height: 16px;
	background: rgba(255, 255, 255, 0.75);
}

.stripes__event--now {
	background: var(--accent);
	transform: translateX(-100%);
}

.stripes__event--now::after {
	left: auto;
	right: 0;
}

.stripes__axis {
	position: relative;
	height: 28px;
	border-top: 1px solid var(--deep-line);
	color: #8ea3b6;
	font-size: 12px;
}

.stripes__axis span {
	position: absolute;
	top: 6px;
	transform: translateX(-50%);
}

.stripes__axis span:first-child {
	transform: none;
}

.stripes__caption {
	padding-top: 4px;
	padding-bottom: 24px;
	color: #8ea3b6;
	font-size: 13px;
}

/* Sections -------------------------------------------------------------- */

.section {
	padding: clamp(56px, 8vw, 104px) 0;
}

.section--tint {
	background: var(--tint);
}

.section--ink {
	background: var(--deep);
	color: #fff;
}

.section-head {
	max-width: 780px;
	margin-bottom: clamp(28px, 4vw, 44px);
}

.kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--accent-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.kicker span {
	display: inline-block;
	padding-right: 10px;
	border-right: 1px solid currentColor;
	color: var(--ink);
}

.section--ink .kicker {
	color: #ff7a52;
}

.section--ink .kicker span {
	color: #fff;
}

.section-title {
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 800;
	font-stretch: 80%;
	line-height: 1;
	letter-spacing: -0.025em;
}

.section-lead {
	margin: 18px 0 0;
	color: var(--ink-2);
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.55;
}

.section--ink .section-lead {
	color: #c9d6e2;
}

.notice {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	background: var(--paper);
}

.small {
	color: var(--mute);
	font-size: 14px;
	line-height: 1.5;
}

.data-meta {
	margin: 18px 0 0;
	color: var(--mute);
	font-size: 14px;
}

/* Grid + cards ---------------------------------------------------------- */

.grid {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
}

.grid + .grid {
	margin-top: clamp(16px, 2vw, 24px);
}

.grid--wide-left {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.grid--thirds {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
	min-width: 0;
	margin: 0;
	padding: clamp(18px, 2.2vw, 28px);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.section--tint .card {
	border-color: var(--line-2);
}

.card--ink {
	background: var(--deep);
	border-color: var(--deep);
	color: #fff;
}

.card--ink .small,
.card--ink .card__note {
	color: var(--deep-mute);
}

.card--ink a:hover {
	color: #ff7a52;
}

.card__head {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.card--ink .card__head {
	border-color: var(--deep-line);
}

.card__title {
	font-size: 22px;
	font-weight: 800;
	font-stretch: 85%;
}

.card__note {
	margin: 4px 0 0;
	color: var(--mute);
	font-size: 14px;
}

.card p:last-child {
	margin-bottom: 0;
}

/* Weekly chart ---------------------------------------------------------- */

.card.chart {
	display: flex;
	flex-direction: column;
}

.chart-plot {
	position: relative;
	flex: 1 1 auto;
	height: clamp(220px, 26vw, 300px);
	min-height: clamp(220px, 26vw, 300px);
	margin-left: 34px;
}

.chart-svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.chart-zero {
	stroke: var(--ink);
	stroke-width: 1;
}

.chart-threshold {
	stroke: var(--mute);
	stroke-width: 1;
	stroke-dasharray: 3 4;
}

.chart-y {
	position: absolute;
	left: -34px;
	width: 28px;
	color: var(--mute);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	text-align: right;
	transform: translateY(-50%);
}

.chart-th {
	position: absolute;
	left: 6px;
	padding: 0 6px 2px 0;
	background: var(--paper);
	color: var(--mute);
	font-size: 12px;
	transform: translateY(-100%);
}

.chart-x {
	position: relative;
	height: 24px;
	margin-left: 34px;
	color: var(--mute);
	font-size: 12px;
}

.chart-x span {
	position: absolute;
	top: 6px;
	white-space: nowrap;
	transform: translateX(-50%);
}

.chart-x .is-year {
	color: var(--ink);
	font-weight: 700;
}

/* Decorative labels sit inside aria-hidden elements and are printed from data attributes,
   so the ticker, scale and axis numbers do not end up in the page text. */

.ticker__list li::before {
	content: attr(data-t);
}

.scale__ticks span::before,
.stripes__axis span::before,
.chart-y::before,
.chart-x span::before {
	content: attr(data-l);
}

/* Niño regions map ------------------------------------------------------ */

.map-svg {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 16px;
	font-family: var(--font);
}

.map-sea {
	fill: #e4edf4;
}

.map-land {
	fill: #c9c1ad;
}

.map-equator {
	stroke: #8fa3b3;
	stroke-width: 1;
	stroke-dasharray: 4 4;
}

.map-tick {
	fill: var(--mute);
	font-size: 15px;
}

.map-box {
	stroke: rgba(10, 22, 34, 0.35);
	stroke-width: 1;
}

.map-outline {
	fill: none;
	stroke: var(--ink);
	stroke-width: 2.5;
	stroke-dasharray: 7 4;
}

.map-name {
	fill: var(--ink-2);
	font-size: 17px;
	font-weight: 600;
}

.map-name--key {
	fill: var(--ink);
	font-size: 20px;
	font-weight: 800;
}

.map-value {
	font-size: 30px;
	font-weight: 800;
}

.map-value--sea {
	fill: var(--ink);
}

/* Data tables ----------------------------------------------------------- */

.table-scroll {
	position: relative;
	overflow-x: auto;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.data-table caption {
	padding-bottom: 8px;
	color: var(--mute);
	font-size: 14px;
	text-align: left;
}

.data-table th,
.data-table td {
	padding: 9px 8px;
	border-bottom: 1px solid var(--line-2);
	text-align: left;
	vertical-align: middle;
}

.data-table th:first-child,
.data-table td:first-child {
	padding-left: 0;
}

.data-table th:last-child,
.data-table td:last-child {
	padding-right: 0;
}

.data-table thead th {
	color: var(--mute);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom-color: var(--line);
}

.data-table tbody th {
	font-weight: 700;
	white-space: nowrap;
}

.data-table .num {
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.data-table .is-key th,
.data-table .is-key td {
	background: #fbf3ef;
}

.data-table--compact {
	margin: 18px 0 12px;
}

.data-table--compact th,
.data-table--compact td {
	padding: 7px 0;
}

.chip {
	display: inline-block;
	min-width: 52px;
	padding: 3px 7px;
	border-radius: 2px;
	background: var(--c);
	color: var(--ink);
	font-weight: 700;
	text-align: center;
}

.history tbody th small {
	display: block;
	color: var(--mute);
	font-size: 13px;
	font-weight: 400;
}

.tag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 5px;
	border-radius: 2px;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	vertical-align: 2px;
}

.history .is-now th,
.history .is-now td {
	background: #fbf3ef;
}

/* Stats + NOAA card ----------------------------------------------------- */

.stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.stat {
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-top: 4px solid var(--c, var(--line));
	border-radius: var(--radius);
}

.stat__label {
	margin: 0;
	color: var(--mute);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.stat__value {
	margin: 2px 0 0;
	font-size: 36px;
	font-weight: 800;
	font-stretch: 80%;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.stat__note {
	margin: 0;
	color: var(--mute);
	font-size: 13px;
}

.noaa__list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	counter-reset: noaa;
}

.noaa__list li {
	position: relative;
	padding: 0 0 12px 34px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--deep-line);
	counter-increment: noaa;
	font-size: 15px;
	line-height: 1.5;
}

.noaa__list li::before {
	content: counter(noaa, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 1px;
	color: #ff7a52;
	font-size: 13px;
	font-weight: 700;
}

/* Weather: warnings + stations ------------------------------------------ */

.warnings {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px 24px;
	margin-bottom: 20px;
	padding: 16px 20px;
	background: #fff6d6;
	border: 1px solid #f0d27a;
	border-left: 5px solid #f2b705;
	border-radius: var(--radius);
}

.warnings__title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	font-stretch: 85%;
}

.warnings__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.warnings__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 12px;
	font-size: 15px;
}

.warnings__time {
	color: var(--mute);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.warnings__none {
	margin: 0;
	color: var(--ink-2);
	font-size: 15px;
}

.warnings__sea {
	margin-top: 10px;
	font-size: 15px;
}

.warnings__sea summary {
	color: var(--ink-2);
	font-weight: 700;
	cursor: pointer;
}

.warnings__sea .warnings__list {
	margin-top: 8px;
}

.warnings__stamp {
	margin: 10px 0 0;
	color: var(--mute);
	font-size: 13px;
}

.warnings--none {
	background: var(--paper);
	border-color: var(--line);
	border-left-color: var(--line);
}

.admin-only {
	color: var(--accent-ink);
}

.stations {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.station {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 20px 20px 16px;
	background: var(--paper);
}

.station::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: var(--t);
}

.station__city {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.station__temp {
	margin: 6px 0 4px;
	font-size: clamp(44px, 4.6vw, 60px);
	font-weight: 800;
	font-stretch: 80%;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	letter-spacing: -0.03em;
}

.station__sky {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	margin: 0 0 12px;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.25;
}

.wx {
	flex: none;
	width: 38px;
	height: 38px;
}

.wx--sm {
	width: 26px;
	height: 26px;
}

.station__facts {
	margin: 0 0 10px;
	font-size: 14px;
}

.station__facts div {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 5px 0;
	border-top: 1px solid var(--line-2);
}

.station__facts dt {
	color: var(--mute);
}

.station__facts dd {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.arrow {
	flex: none;
	width: 12px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: rotate(var(--deg, 0deg));
}

.station__src {
	margin: auto 0 0;
	color: var(--mute);
	font-size: 12px;
}

/* Forecast -------------------------------------------------------------- */

.fc-days {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.fc-day {
	padding: 18px 20px 8px;
	background: var(--paper);
}

.fc-day__title {
	display: flex;
	flex-direction: column;
	margin-bottom: 10px;
}

.fc-day__title span {
	font-size: 24px;
	font-weight: 800;
	font-stretch: 85%;
}

.fc-day__title small {
	color: var(--mute);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
}

.fc-part {
	display: grid;
	grid-template-columns: 42px 40px minmax(0, 1fr);
	grid-template-areas: "label icon temp" "label icon sky";
	align-items: center;
	column-gap: 10px;
	padding: 10px 0;
	border-top: 1px solid var(--line-2);
}

.fc-part__label {
	grid-area: label;
	color: var(--mute);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fc-part .wx {
	grid-area: icon;
	width: 40px;
	height: 40px;
}

.fc-part__temp {
	grid-area: temp;
	font-size: 26px;
	font-weight: 800;
	font-stretch: 85%;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.fc-part__sky {
	grid-area: sky;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.3;
}

.fc-bottom {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 44px);
	align-items: start;
	margin-top: clamp(20px, 3vw, 32px);
}

.fc-text {
	border-bottom: 1px solid var(--line);
}

.fc-texts > .fc-text:first-child {
	border-top: 2px solid var(--ink);
}

.fc-text summary,
.faq__item summary {
	position: relative;
	padding: 14px 36px 14px 0;
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

.fc-text summary::-webkit-details-marker,
.faq__item summary::-webkit-details-marker {
	display: none;
}

.fc-text summary::after,
.faq__item summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	color: var(--accent-ink);
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-50%);
}

.fc-text[open] summary::after,
.faq__item[open] summary::after {
	content: "−";
}

.fc-text p {
	margin: 0 0 12px;
	color: var(--ink-2);
	font-size: 16px;
}

.fc-places caption {
	color: var(--ink);
	font-weight: 700;
}

.fc-place {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.fc-place b {
	min-width: 2.3em;
	font-variant-numeric: tabular-nums;
}

.fc-place span {
	color: var(--mute);
	font-size: 13px;
	line-height: 1.2;
}

/* Explainer ------------------------------------------------------------- */

.prose {
	columns: 2 340px;
	column-gap: clamp(24px, 4vw, 56px);
	color: var(--ink-2);
	font-size: 18px;
}

.prose p {
	break-inside: avoid;
}

.prose strong {
	color: var(--ink);
}

.diagram {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 20px);
	margin: clamp(20px, 3vw, 32px) 0 0;
}

.diagram__panel {
	padding: 14px 14px 10px;
	background: var(--paper);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
}

.diagram__title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.diagram__title--nino {
	color: var(--accent-ink);
}

.diagram__svg {
	display: block;
	width: 100%;
	height: auto;
	font-family: var(--font);
}

.dg-label {
	fill: var(--ink);
	font-size: 20px;
	font-weight: 700;
}

.dg-label--soft {
	fill: var(--ink-2);
	font-weight: 500;
}

.dg-place {
	fill: var(--mute);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.diagram__caption {
	grid-column: 1 / -1;
	color: var(--mute);
	font-size: 14px;
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: clamp(36px, 5vw, 56px) 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
	border-top: 2px solid var(--ink);
}

.steps li {
	padding: 20px 20px 4px 0;
	counter-increment: step;
}

.steps li + li {
	padding-left: 20px;
	border-left: 1px solid var(--line);
}

.steps li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	margin-bottom: 10px;
	color: var(--accent-ink);
	font-size: 14px;
	font-weight: 800;
}

.steps h3 {
	margin-bottom: 8px;
	font-size: 22px;
}

.steps p {
	color: var(--ink-2);
	font-size: 16px;
}

.trio {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 20px);
	margin: clamp(28px, 4vw, 40px) 0 0;
}

.trio__item {
	padding: 18px 20px;
	background: var(--paper);
	border: 1px solid var(--line-2);
	border-top: 4px solid var(--ink);
	border-radius: var(--radius);
}

.trio__item--nino {
	border-top-color: var(--accent);
}

.trio__item--nina {
	border-top-color: var(--cool);
}

.trio dt {
	margin-bottom: 6px;
	font-size: 22px;
	font-weight: 800;
	font-stretch: 85%;
}

.trio dd {
	margin: 0;
	color: var(--ink-2);
	font-size: 15px;
}

/* Impacts --------------------------------------------------------------- */

.impacts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	column-gap: clamp(20px, 3vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.impact {
	padding: 18px 0;
	border-top: 1px solid var(--line);
}

.impact__type {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	color: var(--mute);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.impact__type::before {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--dot, var(--mute));
}

.impact--wet { --dot: #2a78d4; }
.impact--dry { --dot: #d08a12; }
.impact--warm { --dot: var(--accent); }
.impact--storm { --dot: #6b4bb8; }

.impact__region {
	margin-bottom: 6px;
	font-size: 21px;
}

.impact__text {
	margin: 0;
	color: var(--ink-2);
	font-size: 15px;
}

.callout {
	margin: clamp(24px, 3vw, 36px) 0 0;
	padding: 18px 22px;
	background: var(--tint);
	border-left: 4px solid var(--accent);
}

/* Estonia --------------------------------------------------------------- */

.estonia {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: start;
}

.estonia__head {
	position: sticky;
	top: 96px;
	margin-bottom: 0;
}

.estonia__head .section-lead + p {
	margin: 24px 0 0;
}

.section--ink a:hover {
	color: #ff7a52;
}

.estonia__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ee;
}

.estonia__list li {
	position: relative;
	padding: 22px 0 14px 60px;
	border-top: 1px solid var(--deep-line);
	counter-increment: ee;
}

.estonia__list li:last-child {
	border-bottom: 1px solid var(--deep-line);
}

.estonia__list li::before {
	content: counter(ee, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 26px;
	color: #ff7a52;
	font-size: 15px;
	font-weight: 800;
}

.estonia__list h3 {
	margin-bottom: 8px;
	font-size: 26px;
}

.estonia__list p {
	margin-bottom: 8px;
	color: #c9d6e2;
}

.estonia__list .estonia__source {
	color: var(--deep-mute);
	font-size: 14px;
}

/* FAQ ------------------------------------------------------------------- */

.faq {
	max-width: 960px;
}

.faq__list {
	border-top: 2px solid var(--ink);
}

.faq__item {
	border-bottom: 1px solid var(--line);
}

.faq__item summary {
	padding: 20px 44px 20px 0;
}

.faq__item h3 {
	font-size: clamp(19px, 2vw, 23px);
	font-weight: 700;
	font-stretch: 90%;
}

.faq__item p {
	max-width: 72ch;
	margin: 0 0 22px;
	color: var(--ink-2);
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
	padding: clamp(44px, 6vw, 72px) 0 28px;
	background: var(--deep);
	border-top: 1px solid var(--deep-line);
	color: #c9d6e2;
	font-size: 15px;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: clamp(24px, 4vw, 56px);
}

.brand--light {
	margin-bottom: 14px;
	color: #fff;
}

.footer-title {
	margin-bottom: 12px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	font-stretch: 100%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.footer-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-list li {
	padding: 5px 0;
}

.footer-list a,
.footer-bottom a {
	color: #fff;
}

.footer-list a:hover,
.footer-bottom a:hover {
	color: #ff7a52;
}

.footer-list--cols {
	columns: 2;
	column-gap: 20px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: clamp(28px, 4vw, 44px);
	padding-top: 18px;
	border-top: 1px solid var(--deep-line);
	color: var(--deep-mute);
	font-size: 13px;
}

.footer-bottom p {
	margin: 0;
}

/* Other templates ------------------------------------------------------- */

.page {
	padding: clamp(40px, 6vw, 80px) 0;
}

.page__title {
	margin-bottom: 24px;
	font-size: clamp(34px, 5vw, 56px);
	font-stretch: 80%;
}

.entry {
	margin-bottom: 40px;
}

.entry__title {
	margin-bottom: 8px;
	font-size: 28px;
}

.entry__title a {
	text-decoration: none;
}

.entry__content {
	font-size: 18px;
}

.entry__content img {
	height: auto;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1100px) {
	.grid--wide-left,
	.fc-bottom {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.grid--thirds > .card--ink {
		grid-column: 1 / -1;
	}

	.steps,
	.trio {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.steps li:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (max-width: 960px) {
	.hero__grid,
	.estonia {
		grid-template-columns: minmax(0, 1fr);
	}

	.estonia__head {
		position: static;
	}

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

	.footer-about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.site-header {
		position: static;
	}

	.site-header__inner {
		flex-wrap: wrap;
		gap: 0;
		min-height: 0;
		padding-top: 12px;
	}

	.site-nav {
		width: calc(100% + 2 * var(--gutter));
		margin-inline: calc(-1 * var(--gutter));
		overflow-x: auto;
		scrollbar-width: none;
	}

	.site-nav::-webkit-scrollbar {
		display: none;
	}

	.site-nav__list {
		width: max-content;
		padding: 4px calc(var(--gutter) - 12px);
	}

	.site-nav__list a {
		padding: 12px;
		white-space: nowrap;
	}

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

	.diagram {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 700px) {
	.grid--thirds,
	.steps,
	.trio,
	.warnings,
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.steps li + li {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.stripes__event:not(.stripes__event--now),
	.stripes__axis span:nth-child(even),
	.map-tick,
	.map-name:not(.map-name--key) {
		display: none;
	}

	.panel-list div {
		flex-direction: column;
		gap: 2px;
	}

	.panel-list dd {
		text-align: left;
	}
}

@media (max-width: 560px) {
	.site-nav {
		-webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
		mask-image: linear-gradient(to right, #000 82%, transparent);
	}

	.site-nav__list {
		padding-right: 72px;
	}

	.dg-label {
		font-size: 22px;
	}

	.dg-place {
		font-size: 19px;
	}
}

@media (max-width: 480px) {
	.col-where {
		display: none;
	}

	.fc-place span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.fc-days {
		grid-template-columns: minmax(0, 1fr);
	}

	.station {
		padding: 16px 14px 12px;
	}

	.station__facts div {
		display: block;
	}

	.station__facts dd {
		text-align: left;
	}
}

@media (hover: none) and (pointer: coarse) {
	.site-nav__list a {
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.footer-list a {
		display: inline-block;
		padding: 6px 0;
	}

	.warnings__sea summary {
		padding: 8px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.ticker__track,
	.stripes-svg {
		animation: none;
	}
}

@media print {
	.ticker,
	.site-nav,
	.hero__actions {
		display: none;
	}

	.stripes-svg {
		animation: none;
	}
}
