/*
 * The public site, built afresh from the 2026 redesign (canvas "Clometrix
 * Public Site Redesign", direction D). Replaces public.css, its colour file and
 * Bootstrap on every page moved to layouts.site.
 *
 * Layout is fluid: grids fill with auto-fit and min(), type and spacing scale
 * with clamp(), so it holds at every width Randy listed, from 1920 down to 300
 * by 300. Fixed breakpoints only where the layout changes shape:
 *   991px  the header's links become the Menu button
 *   767px  wide tables become stacked cards
 *   300px  (height) the header stops taking room on very short screens
 */

/* ---------- Tokens ---------- */

:root {
	--navy:			#13203f;
	--navy-deep:	#0d1730;
	--navy-line:	#2a3860;
	--navy-edge:	#3d4c75;
	--on-navy:		#d6dcea;
	--on-navy-soft:	#b7c0d6;
	--ground:		#f4f5f8;
	--card:			#ffffff;
	--line:			#e1e4ea;
	--line-soft:	#eef0f4;
	--field:		#c9ced6;
	--text:			#121826;
	--text-2:		#2b3240;
	--muted:		#4b5565;
	--accent:		#f36f43;
	--accent-bg:	#fff4ef;
	--accent-row:	#fff8f5;
	--strong-bg:	#fde3d8;
	--strong-text:	#7a2a0c;
	--except-bg:	#f9c7b2;
	--link:			#1d3f8f;
	--link-hover:	#122a63;
	--up:			#137a52;
	--down:			#b42335;

	--head:			'Space Grotesk', system-ui, sans-serif;
	--body:			'Inter', system-ui, sans-serif;

	--max:			1240px;
	--gutter:		clamp(16px, 4vw, 32px);
	--radius:		12px;
	--radius-lg:	16px;
}

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

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

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

body {
	margin: 0;
	background: var(--ground);
	color: var(--text);
	font-family: var(--body);
	font-size: clamp(16px, 1.2vw, 18px);
	line-height: 1.6;
	overflow-wrap: anywhere;
}

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

a { color: var(--link); }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
	font-family: var(--head);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 12px;
}

p { margin: 0 0 14px; }

button, input, select, textarea { font: inherit; color: inherit; }

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

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 8px; top: -60px;
	z-index: 100;
	background: var(--accent);
	color: var(--text);
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
}
.skip-link:focus { top: 8px; }

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.wrap-narrow { max-width: 880px; }

.muted { color: var(--muted); }
.small { font-size: 15px; }
.tiny { font-size: 14px; }
.nowrap { white-space: nowrap; }

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

.site-head {
	background: var(--navy);
	color: #ffffff;
	font-size: 15px;
	line-height: 1.5;
}

.site-head-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 32px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-logo { display: flex; align-items: center; padding: 6px 0; }
.site-logo img { height: clamp(18px, 6vw, 24px); width: auto; display: block; }

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
	flex: 1 1 auto;
	font-weight: 500;
}

.site-nav a {
	color: var(--on-navy);
	text-decoration: none;
	padding: 12px 0;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #ffffff; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.site-auth { display: flex; gap: 8px; align-items: center; }

.site-auth .link-plain {
	color: #ffffff;
	text-decoration: none;
	padding: 10px;
}

.menu-button {
	display: none;
	margin-left: auto;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 14px;
	font-weight: 600;
	color: #ffffff;
	background: transparent;
	border: 1px solid var(--navy-edge);
	border-radius: 8px;
	cursor: pointer;
}

.menu-button svg { width: 18px; height: 18px; }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

.site-menu {
	display: none;
	border-top: 1px solid var(--navy-line);
	padding-top: 8px;
	padding-bottom: 20px;
}

.site-menu.is-open { display: block; }

.site-menu > a {
	display: block;
	color: var(--on-navy);
	text-decoration: none;
	padding: 12px 0;
	font-size: 17px;
	font-weight: 500;
	border-bottom: 1px solid #22305a;
}

.site-menu > a[aria-current="page"] { color: #ffffff; font-weight: 600; }

.site-menu-auth {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.site-menu-auth a { flex: 1 1 140px; text-align: center; }

@media (max-width: 991px) {
	.site-head-bar .site-nav,
	.site-head-bar .site-auth { display: none; }
	.menu-button { display: flex; }
}

@media (min-width: 992px) {
	.site-menu, .site-menu.is-open { display: none; }
}

.label-short { display: none; }

/* Between the Menu button and full width, the bar tightens to stay on one line */
@media (min-width: 992px) and (max-width: 1279px) {
	.site-head-bar { gap: 12px 20px; }
	.site-nav { gap: 0 14px; font-size: 14px; }
	.site-logo img { height: 20px; }
	.site-auth .link-plain { padding: 10px 4px; }
	.label-long { display: none; }
	.label-short { display: inline; }
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover { background: #e85f31; color: var(--text); }

.btn-navy { background: var(--navy); color: #ffffff; }
.btn-navy:hover { background: var(--navy-deep); color: #ffffff; }

.btn-ghost { background: transparent; color: #ffffff; border-color: var(--navy-edge); }
.btn-ghost:hover { color: #ffffff; border-color: var(--on-navy-soft); }

.btn-light { background: var(--card); color: var(--text); border-color: var(--field); }
.btn-light:hover { color: var(--text); border-color: var(--muted); }

.btn-lg { padding: 14px 26px; min-height: 48px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Bands and sections ---------- */

.band { background: var(--navy); color: #ffffff; }
.band p { color: var(--on-navy); }
.band a:not(.btn) { color: #ffffff; }

.sec { padding-top: 48px; padding-bottom: 24px; }
.sec-tight { padding-top: 32px; padding-bottom: 16px; }

.sec-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 16px;
	margin-bottom: 20px;
}

.sec-head h2, .sec-title { margin: 0; font-size: clamp(24px, 2.8vw, 32px); }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.sec-head .more { font-size: 15px; font-weight: 500; }

.sec-lead { margin: 0 0 24px; color: var(--muted); }

.link-strong { font-weight: 600; }

.eyebrow {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--strong-text);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.eyebrow span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }

/* ---------- Grids and cards ---------- */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr));
	gap: var(--gap, 12px);
}

.row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap, 20px);
}

.row > * { min-width: 0; }
.grow-main { flex: 999 1 var(--basis, 520px); }
.grow-side { flex: 1 1 var(--basis, 300px); }

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	min-width: 0;
}

.card-lg { border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); }
.card-pad { padding: clamp(20px, 2.4vw, 28px); }
.card-accent { border: 2px solid var(--accent); padding: 19px; }

.card h3 { font-size: clamp(19px, 1.8vw, 22px); margin-bottom: 8px; }
.card p:last-child, .card dd:last-child { margin-bottom: 0; }

a.card { display: block; color: var(--text); text-decoration: none; }
a.card:hover { border-color: var(--muted); color: var(--text); }
a.card strong { display: block; font-family: var(--head); font-size: 19px; }
a.card span { color: var(--muted); font-size: 16px; }

.band-card {
	border: 1px solid var(--navy-edge);
	border-radius: 14px;
	padding: clamp(20px, 2.4vw, 28px);
}

.band-card h3 { font-size: 21px; margin-bottom: 10px; }
.band-card p { margin: 0; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; }

.step-num {
	width: 40px; height: 40px;
	margin: 0 0 14px;
	border-radius: 10px;
	background: var(--navy);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--head);
	font-weight: 700;
	font-size: 19px;
}

.step-num.is-accent { background: var(--accent); color: var(--text); }

/* Stat tiles */
.stats { margin: 0; }

.stat {
	background: var(--ground);
	border-radius: var(--radius);
	padding: 18px;
	min-width: 0;
}

.stats-white .stat { background: var(--card); border: 1px solid var(--line); }
.stats-white .stat.is-accent { border: 2px solid var(--accent); padding: 17px; }

.stat dt { font-size: 15px; color: var(--muted); }

.stat dd {
	margin: 2px 0 0;
	font-family: var(--head);
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1.25;
}

.stat dd.stat-note {
	margin-top: 4px;
	font-family: var(--body);
	font-size: 14px;
	font-weight: 400;
	color: var(--muted);
}

/* Glossary-style definition cards */
.terms { margin: 0; }
.terms dt { font-family: var(--head); font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--muted); }
.terms dt a { color: inherit; text-decoration: none; }
.terms dt a:hover { color: var(--link); text-decoration: underline; }
.terms dd p:last-child { margin-bottom: 0; }

/* ---------- Badges ---------- */

.badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
	background: var(--line-soft);
	color: var(--text-2);
}

.badge-strong { background: var(--strong-bg); color: var(--strong-text); }
.badge-exceptional { background: var(--except-bg); color: var(--strong-text); }
.badge-ordinary { background: #e6ebf5; color: #1d2c55; }
.badge-muted, .badge-quiet { background: #e9ecf2; color: var(--muted); }
.badge-today { background: var(--strong-bg); color: var(--strong-text); font-size: 13px; padding: 2px 8px; margin-left: 4px; }

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

.hero-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 56px;
	align-items: flex-start;
	padding-top: clamp(32px, 6vw, 64px);
	padding-bottom: clamp(40px, 6vw, 72px);
}

.hero-text { flex: 999 1 520px; min-width: 0; }

.hero h1 {
	margin: 0 0 16px;
	font-size: clamp(30px, 4.4vw, 52px);
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.hero-lead { margin: 0 0 28px; font-size: clamp(17px, 1.6vw, 20px); max-width: 700px; }

.hero-note { margin: 0; font-size: 15px; color: var(--on-navy-soft) !important; }

.finder {
	max-width: 680px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.finder select {
	flex: 1 1 200px;
	min-width: 0;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--navy-edge);
	border-radius: 8px;
	background: #ffffff;
	color: var(--text);
}

.finder .btn { flex: 0 1 auto; }

.next-card {
	flex: 1 1 300px;
	min-width: 0;
	background: var(--card);
	color: var(--text);
	border-radius: 14px;
	padding: clamp(18px, 2vw, 24px);
}

.band .next-card p { color: var(--text-2); }

.band .next-card .label { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.band .next-card .title { color: var(--text);  margin: 0; font-family: var(--head); font-size: 24px; font-weight: 700; line-height: 1.25; }
.band .next-card .when { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.next-card .stat { padding: 12px; border-radius: 10px; }
.next-card .stat dt { font-size: 14px; }
.next-card .stat dd { font-size: 22px; }
.next-card .usual { margin: 16px 0; font-size: 15px; color: var(--text-2); }
.next-card .usual strong { font-family: var(--head); }

/* ---------- This week ---------- */

.day-card { padding: 16px; }
.day-card.is-today { border: 2px solid var(--accent); padding: 15px; }
.day-name { margin: 0 0 10px; font-weight: 600; color: var(--muted); font-size: 15px; }
.day-none { margin: 0; color: #5b6472; font-size: 15px; }

.day-item {
	display: block;
	text-decoration: none;
	color: var(--text);
	background: var(--ground);
	border-radius: 8px;
	padding: 10px 12px;
}

.day-item + .day-item { margin-top: 8px; }
.day-item:hover { color: var(--text); background: var(--line-soft); }
.day-item.is-big { background: var(--accent-bg); }
.day-item span { display: block; font-size: 13px; color: var(--muted); }
.day-item strong { font-weight: 600; font-size: 16px; line-height: 1.35; display: block; }

/* ---------- News blocks ---------- */

.news-lead { flex: 2 1 480px; overflow: hidden; padding: 0; }

.news-lead .thumb {
	aspect-ratio: 16 / 9;
	background: #e6e9ef;
	display: block;
}

.news-lead .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-lead .body { padding: clamp(18px, 2vw, 24px); }
.news-lead h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25; }
.news-side { flex: 1 1 300px; display: grid; gap: 12px; align-content: start; }
.news-item { padding: 18px; }
.news-item .meta { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.news-item h3 { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.4; font-weight: 600; }
.news-lead h3 a, .news-item h3 a { color: var(--text); text-decoration: none; }
.news-lead h3 a:hover, .news-item h3 a:hover { color: var(--link); text-decoration: underline; }

/* ---------- Questions ---------- */

.faq { padding: 4px clamp(16px, 2.4vw, 24px); }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }

.faq summary {
	cursor: pointer;
	font-family: var(--head);
	font-size: clamp(17px, 1.6vw, 19px);
	font-weight: 700;
	min-height: 28px;
}

.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Call to action ---------- */

.cta {
	background: var(--navy);
	color: #ffffff;
	border-radius: var(--radius-lg);
	padding: clamp(24px, 4vw, 48px);
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
}

.cta > div { flex: 1 1 380px; min-width: 0; }
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 2.8vw, 32px); }
.cta p { margin: 0; color: var(--on-navy); }

/* ---------- Page band (inner pages) ---------- */

.page-band-inner {
	padding-top: clamp(24px, 4vw, 36px);
	padding-bottom: clamp(28px, 4vw, 40px);
}

.page-band h1 {
	margin: 0 0 12px;
	font-size: clamp(28px, 3.6vw, 42px);
	line-height: 1.15;
	max-width: 960px;
}

.crumbs { font-size: 14px; color: var(--on-navy-soft); margin-bottom: 12px; }
.crumbs a { color: var(--on-navy-soft) !important; }
.crumbs [aria-current] { color: #ffffff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips .chips-label { font-size: 15px; color: var(--on-navy); margin-right: 4px; }

.chip {
	font-size: 15px;
	color: #ffffff !important;
	text-decoration: none;
	border: 1px solid var(--navy-edge);
	border-radius: 999px;
	padding: 8px 14px;
	line-height: 1.3;
}

.chip:hover { border-color: var(--on-navy-soft); }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--text) !important; font-weight: 600; }

.page-main { padding-top: 28px; padding-bottom: 72px; }

/* ---------- Release page ---------- */

.answer {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	align-items: center;
	margin-bottom: 16px;
}

.answer-text { flex: 999 1 460px; min-width: 0; }
.answer-text h2 { font-size: 20px; margin-bottom: 8px; }
.answer-text p { margin: 0; font-size: clamp(17px, 1.6vw, 20px); }
.answer-figure { flex: 1 1 160px; min-width: 0; text-align: center; }

.answer-figure .big {
	margin: 0;
	font-family: var(--head);
	font-size: clamp(40px, 5vw, 56px);
	line-height: 1;
	font-weight: 700;
}

.answer-figure .badge { margin-top: 10px; font-size: 15px; padding: 4px 12px; }

.status-note {
	margin: 0 0 16px;
	padding: 14px 18px;
	background: var(--accent-bg);
	border: 1px solid var(--strong-bg);
	border-radius: var(--radius);
	font-size: 15px;
}

.chart-card { padding: clamp(14px, 2vw, 24px); margin-bottom: 40px; }

.chart-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--muted);
}

.intervals { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.intervals a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 4px 12px;
	border: 1px solid var(--field);
	border-radius: 6px;
	background: var(--card);
	color: var(--text);
	text-decoration: none;
	font-size: 15px;
}

.intervals a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #ffffff; }

.chart-panes { position: relative; }
.pane-price { position: relative; height: clamp(220px, 42vw, 420px); }
.pane-vol { position: relative; height: clamp(90px, 14vw, 150px); }

.vol-label {
	position: absolute;
	left: 8px; top: 2px;
	font-size: 13px;
	color: var(--muted);
	pointer-events: none;
}

.chart-foot { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.day-stats { margin: 16px 0 0; --min: 130px; --gap: 8px; }
.day-stats .stat { padding: 10px 12px; border-radius: 8px; }
.day-stats .stat dt { font-size: 13px; }
.day-stats .stat dd { font-size: 17px; }

.article h2 { font-size: clamp(23px, 2.4vw, 28px); margin: 0 0 10px; }
.article > section, .article > .block { margin-bottom: 36px; }
.article .prose p:last-child { margin-bottom: 0; }

.callout {
	padding: 16px 20px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 16px;
}

.scale { position: relative; height: 52px; }

.scale-bar {
	position: absolute;
	left: 0; right: 0; top: 18px;
	height: 14px;
	border-radius: 999px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 35fr 30fr 35fr 50fr;
}

.scale-bar > :nth-child(1) { background: #e9ecf2; }
.scale-bar > :nth-child(2) { background: #e6ebf5; }
.scale-bar > :nth-child(3) { background: var(--strong-bg); }
.scale-bar > :nth-child(4) { background: var(--except-bg); }

.scale-mark { position: absolute; top: 8px; width: 3px; height: 34px; background: var(--muted); transform: translateX(-50%); }
.scale-mark.is-this { top: 4px; width: 4px; height: 42px; background: var(--text); }

.scale-labels {
	display: grid;
	grid-template-columns: 35fr 30fr 35fr 50fr;
	font-size: 13px;
	color: var(--muted);
}

.side { display: grid; gap: 16px; align-content: start; }
.side h2 { font-size: 18px; margin: 0 0 10px; }
.side .card { padding: 22px; font-size: 15px; border-radius: 14px; }
.side .band-box { background: var(--navy); color: #ffffff; border-radius: 14px; padding: 22px; }
.side .band-box h2 { font-size: 20px; margin-bottom: 6px; }
.side .band-box p { color: var(--on-navy); font-size: 15px; margin-bottom: 16px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: flex; justify-content: space-between; gap: 8px; }
.timeline li.is-this { font-weight: 600; }
.timeline .muted { white-space: nowrap; }

.disclaimer { font-size: 14px; color: var(--muted); }
.disclaimer h2 { font-size: 16px; margin-bottom: 6px; }

.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- Tables ---------- */

.table-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow-x: auto;
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.table th {
	text-align: left;
	font-weight: 600;
	color: var(--muted);
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}

.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.is-this { background: var(--accent-row); }
.table tr.is-this td:first-child { font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }
.table th.num { text-align: right; }

/* Long tables become one card per row on phones */
@media (max-width: 767px) {
	.table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
	.table-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
	.table-stack tbody tr:last-child { border-bottom: 0; }
	.table-stack td { padding: 4px 0; border: 0; text-align: right; }
	.table-stack td::after { content: ""; display: table; clear: both; }
	.table-stack td::before { content: attr(data-label); float: left; margin-right: 12px; color: var(--muted); font-weight: 500; text-align: left; }
	.table-stack tbody th { display: block; text-align: left; padding: 0 0 6px; border: 0; color: var(--text); font-family: var(--head); font-weight: 700; font-size: 17px; white-space: normal; }
	.table-stack td:first-child { font-family: var(--head); font-weight: 700; font-size: 17px; text-align: left; padding-bottom: 6px; }
	.table-stack td:first-child::before { content: none; }
	.table-stack tbody th ~ td:first-of-type { font-family: var(--body); font-weight: 400; font-size: 15px; padding: 4px 0; }
	.table-stack tbody th ~ td::before { content: attr(data-label); }
	.table-stack .num { text-align: right; }
}

/* ---------- Forms and filters ---------- */

.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }

.field select, .field input, .field textarea {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--field);
	border-radius: 8px;
	background: var(--card);
	color: var(--text);
}

.filters {
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
	gap: 12px;
	align-items: end;
}

.filters-toggle { display: none; }

@media (max-width: 767px) {
	.filters-toggle { display: flex; grid-column: 1 / -1; }
	.filters.is-collapsed { padding: 12px; }
	.filters.is-collapsed .field,
	.filters.is-collapsed [type="submit"] { display: none; }
}

/* ---------- Pagination ---------- */

.pager {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	font-size: 15px;
}

.pager a, .pager span {
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	background: var(--card);
	border-radius: 8px;
	text-decoration: none;
}

.pager [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #ffffff; font-weight: 600; }
.pager .is-off { color: #9aa2b1; }
.pager .pager-gap { border: 0; background: transparent; min-width: 0; padding: 0 4px; color: var(--muted); }

.figure { font-family: var(--head); font-weight: 700; }

/* ---------- Reports ---------- */

.tier { margin-bottom: 48px; }
.report-card { display: flex; flex-direction: column; }
.report-card h3 { margin-bottom: 4px; }
.report-card h3 a { color: var(--text); text-decoration: none; }
.report-card h3 a:hover { color: var(--link); text-decoration: underline; }
.report-about { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.report-about p:last-child { margin-bottom: 0; }

.report-facts {
	margin: auto 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
	gap: 8px;
}

.report-facts div { background: var(--ground); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.report-facts dt { font-size: 13px; color: var(--muted); }
.report-facts dd { margin: 0; font-weight: 600; font-size: 15px; }

/* ---------- Coins ---------- */

.table caption { caption-side: top; text-align: left; padding: 12px 14px 0; }
.coin-name { display: inline-flex; align-items: center; gap: 10px; }
.coin-name img { width: 28px; height: 28px; border-radius: 50%; flex: none; }

@media (max-width: 767px) {
	.table-stack caption { display: block; padding: 12px 16px; }
}

/* ---------- Long reads ---------- */

.toc { align-self: flex-start; font-size: 15px; }
.toc p { font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

@media (min-width: 992px) {
	.toc { position: sticky; top: 24px; }
}

.article ul { padding-left: 22px; margin: 0 0 14px; }
.article li { margin-bottom: 6px; }

.verdicts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.verdicts li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.verdicts .badge { min-width: 104px; text-align: center; }

/* ---------- Pricing ---------- */

.period-switch {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--navy-edge);
	border-radius: 10px;
}

.period-switch button {
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	background: transparent;
	color: var(--on-navy);
	cursor: pointer;
}

.period-switch button[aria-pressed="true"] { background: #ffffff; color: var(--text); }

.plan { display: flex; flex-direction: column; }
.plan.is-featured { border: 2px solid var(--accent); }
.plan h2 { font-size: 24px; margin-bottom: 4px; }
.plan-badge { margin: 0 0 8px; }
.plan-price { margin: 8px 0 2px; color: var(--muted); }
.plan-price span { font-family: var(--head); font-size: clamp(34px, 3.6vw, 42px); font-weight: 700; color: var(--text); }
.plan-list { margin: 16px 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }
.plan-coins { margin-bottom: 16px; }
.plan .btn { margin-top: auto; }
.plan-badge:empty, .plan-for:empty, .plan-coins:empty { margin: 0; }

/* The parts of each plan card line up across the row: badge, name, who it
   is for, price, list, coins and button each share a row, so a card without
   a badge or with a shorter description is not out of step with the rest */
@supports (grid-template-rows: subgrid) {
	.plans .plan { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
	.plans .plan .btn { align-self: end; }
}
.compare th[scope="row"] { color: var(--text); font-weight: 600; white-space: normal; }

/* ---------- About and contact ---------- */

.big-number { margin: 0; font-family: var(--head); font-size: clamp(32px, 3.4vw, 42px); font-weight: 700; line-height: 1.1; }
.numbers .card p.muted { margin: 4px 0 0; }

.facts { margin: 0; display: grid; gap: 10px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

.contact-form { display: grid; gap: 16px; align-content: start; }
.contact-form > p { margin: 0; }
.field textarea { resize: vertical; min-height: 160px; }

.form-status:empty { display: none; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--ground); font-size: 15px; }
.form-status.is-ok { background: #e3f4ec; color: #0f5c3d; }
.form-status.is-error { background: #fde7ea; color: #8a1c2b; }

/* ---------- News ---------- */

.news-sub { margin: 0 0 18px; font-size: 15px; color: var(--on-navy-soft) !important; }

.news-tabs {
	display: flex;
	gap: 4px 22px;
	overflow-x: auto;
	scrollbar-width: none;
	margin-bottom: calc(-1 * clamp(28px, 4vw, 40px));
	border-top: 1px solid var(--navy-line);
}

.news-tabs::-webkit-scrollbar { display: none; }

.news-tabs a {
	flex: none;
	padding: 14px 0 12px;
	color: var(--on-navy) !important;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}

.news-tabs a:hover { color: #ffffff !important; }
.news-tabs a[aria-current="page"] { color: #ffffff !important; border-bottom-color: var(--accent); font-weight: 600; }

.news h2, .news h3 { overflow-wrap: break-word; }
.news a { color: var(--text); text-decoration: none; }
.news a:hover { color: var(--link); text-decoration: underline; }
.news .more, .news .link-strong, .news .pager a { color: var(--link); }

.story-img { display: block; background: #e6e9ef; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 14px; }
.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.standfirst { color: var(--muted); margin: 0 0 8px; }
.meta { margin: 0; font-size: 14px; color: var(--muted); }
.byline { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.news-top { margin-bottom: 32px; }
.story-link { display: block; }
.story-link:hover h2 { text-decoration: underline; }
.news-lead-story h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 0 0 10px; }
.news-lead-story .standfirst { font-size: clamp(17px, 1.5vw, 19px); }
.story-links { margin: 14px 0 0; padding: 12px 0 0 18px; border-top: 1px solid var(--line); font-size: 15px; display: grid; gap: 6px; }
.story-links a { color: var(--link) !important; }

.news-rail { border-left: 1px solid var(--line); padding-left: 24px; }
.news-rail h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.news-rail .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.news-rail ol { list-style: none; margin: 0 0 14px; padding: 0; }
.news-rail li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 2px; }
.news-rail li:first-child { padding-top: 0; }
.news-rail time { font-size: 13px; font-weight: 600; color: var(--strong-text); }
.news-rail li a { font-weight: 600; line-height: 1.4; }

@media (max-width: 899px) {
	.news-rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}

.coming-band { background: var(--navy); color: #ffffff; border-radius: 14px; padding: 18px clamp(16px, 2.4vw, 24px); margin-bottom: 40px; }
.coming-band h2 { font-size: 18px; margin: 0; color: #ffffff; }
.coming-band .more { color: #ffffff !important; }
.coming-band .coming { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.coming-band .coming time { color: var(--on-navy-soft); }
.coming-band .coming a { color: #ffffff !important; }
.coming-band .muted { color: var(--on-navy) !important; }

.coming { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.coming li { display: grid; gap: 2px; }
.coming time { font-size: 13px; color: var(--muted); }
.coming a { font-weight: 600; }

.news-section, .news-features { margin-bottom: 44px; }

.news-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	border-top: 3px solid var(--text);
	padding-top: 10px;
	margin-bottom: 18px;
}

.news-section-head h2 { margin: 0; font-size: clamp(21px, 2.2vw, 26px); }

.news-section-body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px 32px;
}

.news-block-lead h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; margin-bottom: 8px; }
.news-block-list { display: grid; gap: 0; align-content: start; }
.news-block-list article { padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-block-list article:first-child { padding-top: 0; }
.news-block-list h3 { font-family: var(--body); font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }

.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature-card .story-img { border-radius: 0; margin: 0; }
.feature-card > div { padding: 18px 20px 20px; }
.feature-card h3 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; margin-bottom: 8px; }

.news-all h2 { font-size: clamp(22px, 2.4vw, 28px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border-top: 3px solid var(--text); padding-top: 10px; }
.news-all h2 span { font-size: 15px; font-family: var(--body); font-weight: 500; color: var(--muted); }
.news-all h3, .list-head { font-family: var(--body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 24px 0 6px; }

.stream { list-style: none; margin: 0 0 8px; padding: 0; }
.stream li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.stream time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.stream li a { font-weight: 600; }
.stream-cat { font-size: 13px; color: var(--muted); white-space: nowrap; margin-left: 4px; }

@media (max-width: 420px) {
	.stream li { grid-template-columns: 1fr; gap: 2px; }
}

.cat-lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px 28px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cat-lead .story-img { margin: 0; }
.cat-lead h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; margin-bottom: 10px; }

.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.story-list li:not(:has(.story-img)) { grid-template-columns: 1fr; }
.story-list .story-img { margin: 0; }
.story-list h3 { font-size: 19px; line-height: 1.3; margin-bottom: 6px; }

@media (max-width: 520px) {
	.story-list li { grid-template-columns: 1fr; }
}

.month-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.pager-months { justify-content: space-between; }

/* ---------- Article ---------- */

.article-page { max-width: 1160px; }
.crumbs-light { color: var(--muted); }
.crumbs-light a { color: var(--muted) !important; }

.article-head { max-width: 820px; margin: 8px 0 24px; }
.article-head h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 14px; }
.standfirst-lg { font-size: clamp(18px, 1.8vw, 21px); color: var(--text-2); margin: 0 0 18px; }

.byline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.byline-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.byline-who a { color: var(--text); }
.byline-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.byline-mark img { width: 70%; height: 70%; object-fit: contain; }

.article-hero { margin: 0 0 32px; border-radius: 14px; overflow: hidden; background: #e6e9ef; }
.article-hero img { width: 100%; height: auto; display: block; }

.article-prose { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; max-width: 720px; }
.article-prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 36px 0 12px; scroll-margin-top: 16px; }
.article-prose h3 { font-size: 20px; margin: 28px 0 10px; }
.article-prose p, .article-prose ul, .article-prose ol { margin: 0 0 18px; }
.article-prose ul, .article-prose ol { padding-left: 22px; }
.article-prose img { border-radius: 10px; }
.article-prose blockquote { margin: 0 0 18px; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--accent-bg); border-radius: 0 10px 10px 0; }
.article-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article-prose th, .article-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article-prose a { color: var(--link); text-decoration: underline; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.share > span { font-weight: 600; margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--field); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; cursor: pointer; font-size: 15px; }
.share a:hover, .share button:hover { border-color: var(--muted); color: var(--text); }

.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; font-size: 15px; }
.author-box .byline-mark { width: 44px; height: 44px; }
.author-box p { margin: 0; }
.author-name { font-family: var(--head); font-weight: 700; font-size: 17px; margin-bottom: 4px !important; }

.toc-card ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

@media (min-width: 992px) {
	.article-side { position: sticky; top: 24px; align-self: flex-start; }
}

.read-next { margin-top: 48px; border-top: 3px solid var(--text); padding-top: 12px; }
.read-next h2 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 18px; }
.read-next a { color: var(--text); text-decoration: none; }
.read-next a:hover { color: var(--link); text-decoration: underline; }

/* ---------- Legal ---------- */

.legal { max-width: 780px; font-size: 17px; line-height: 1.7; }
.legal h2 { font-size: clamp(21px, 2.2vw, 25px); margin: 36px 0 12px; scroll-margin-top: 16px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 18px 0 8px; color: var(--strong-text); }
.legal ul { padding-left: 0; list-style: none; margin: 0 0 16px; }
.legal li { margin-bottom: 10px; padding-left: 44px; position: relative; }
.legal li > strong:first-child { position: absolute; left: 0; font-variant-numeric: tabular-nums; }
.legal ul:not(:has(li > strong:first-child)) { list-style: disc; padding-left: 22px; }
.legal ul:not(:has(li > strong:first-child)) li { padding-left: 0; }
.legal table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; margin: 0 0 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; min-width: 120px; }
.legal th { color: var(--muted); font-weight: 600; }
.cookie-choice { margin-bottom: 24px; }

/* ---------- Sign-in pages ---------- */

.auth-main { max-width: 520px; padding-top: clamp(28px, 6vw, 56px); padding-bottom: 72px; }
.auth-card h1 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 20px; }
.auth-form { display: grid; gap: 16px; margin-top: 8px; }
.auth-after { text-align: center; margin-top: 16px; }
.auth-after p { margin: 0; }
.auth-card .form-status { margin-bottom: 8px; }
.auth-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-bg); color: #c2481d; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.auth-cancel { margin-top: 16px; text-align: center; }

.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field-with-button { display: flex; gap: 8px; }
.field-with-button input { flex: 1 1 auto; }
.field-with-button .btn { flex: none; padding: 8px 14px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }

.choices { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.choices legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }

.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.link-button { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font-size: 15px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.authPopup {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--gutter);
	background: rgba(13, 23, 48, 0.6);
}

.authPopup.is-open { display: flex; }
.auth-popup-box { background: var(--card); border-radius: 16px; padding: clamp(20px, 3vw, 28px); max-width: 460px; width: 100%; max-height: 100%; overflow-y: auto; display: grid; gap: 14px; }
.auth-popup-box p { margin: 0; }
.auth-popup-box h2 { font-size: 22px; margin: 0; }
.auth-popup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-popup-actions .btn { flex: 1 1 140px; }
.errorNote { color: var(--down); font-size: 15px; }
.errorNote:empty { display: none; }
.authPopup [data-required="true"] { border-color: var(--down); }
.authLoading .auth-popup-box { justify-items: center; text-align: center; }

.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Error pages ---------- */

.error-main { max-width: 820px; padding-top: clamp(40px, 8vw, 88px); padding-bottom: 88px; }
.error-code { margin: 0 0 8px; font-family: var(--head); font-size: 15px; font-weight: 700; color: var(--strong-text); letter-spacing: 0.08em; text-transform: uppercase; }
.error-main h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; margin-bottom: 14px; }
.error-line { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 640px; margin-bottom: 24px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.error-ways-title { font-size: 20px; margin: 36px 0 12px; }
.error-ways { list-style: none; margin: 0; padding: 0; }

/* ---------- Learn ---------- */

.learn-section { margin-bottom: 36px; }
.learn-section .news-section-head a { color: var(--text); text-decoration: none; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.guide-list li > a { font-weight: 600; font-size: 18px; }
.guide-list p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.learn-card h2 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; margin-bottom: 8px; }
.learn-card h2 a, .learn-section a, .guide-list a { color: var(--text); text-decoration: none; }
.learn-card h2 a:hover, .guide-list a:hover { color: var(--link); text-decoration: underline; }

.faq-answer { margin-top: 10px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq details[id] { scroll-margin-top: 16px; }

.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.letters a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--card); border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--text); }
.letters a:hover { border-color: var(--muted); }
.glossary-letter { margin-bottom: 28px; scroll-margin-top: 16px; }
.glossary-letter h2 { font-size: 22px; border-bottom: 3px solid var(--text); padding-bottom: 6px; }
.glossary { margin: 0; }
.glossary > div { padding: 14px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 16px; }
.glossary > div:target { background: var(--accent-bg); margin: 0 -12px; padding: 14px 12px; border-radius: 8px; }
.glossary dt { font-family: var(--head); font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--text-2); }
.glossary dd p:last-child { margin-bottom: 0; }

.guide-sources { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.guide-sources h2 { font-size: 20px; }

/* ---------- Calendar ---------- */

.cal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 10px; }
.cal-weeks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cal-range { font-family: var(--head); font-weight: 700; font-size: 18px; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.cal-filters .field { min-width: 160px; }
.cal-day { margin-bottom: 28px; }
.cal-day h2 { font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-day.is-today .table-card { border: 2px solid var(--accent); }
.cal-table td:first-child { white-space: nowrap; }

@media (min-width: 768px) {
	.cal-table { table-layout: fixed; }
	.cal-table th:nth-child(1) { width: 200px; }
	.cal-table th:nth-child(3) { width: 64px; }
	.cal-table th:nth-child(4), .cal-table th:nth-child(5) { width: 120px; }
	.cal-table th:nth-child(6) { width: 140px; }
	.cal-table td { overflow-wrap: anywhere; }
}

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

body.embed { background: var(--card); padding: clamp(12px, 3vw, 20px); }
.embed-head h1 { font-size: clamp(18px, 2.6vw, 24px); margin: 0 0 4px; }
.embed-head p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.embed-series { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.series-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.series-chip input { accent-color: var(--navy); margin: 0; }
.swatch { width: 12px; height: 3px; border-radius: 2px; }
.embed-chart { position: relative; height: clamp(200px, 45vw, 380px); }
.embed-table { margin-top: 12px; }
.embed-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 12px; }
.embed-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; }

/* ---------- Ads ---------- */

.ad-slot { margin: 0 0 36px; min-height: 250px; display: flex; align-items: center; justify-content: center; }

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

.site-foot {
	background: var(--navy-deep);
	color: var(--on-navy);
	font-size: 15px;
	line-height: 1.6;
}

.site-foot-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
	gap: 32px;
	padding-top: 48px;
	padding-bottom: 24px;
}

.site-foot-cols > * { min-width: 0; }

@media (max-width: 767px) {
	.site-foot-cols > div:first-child { grid-column: 1 / -1; }
}
.site-foot img { height: 22px; width: auto; max-width: 100%; display: block; margin-bottom: 14px; }
.site-foot .foot-note { font-size: 14px; color: var(--on-navy-soft); margin: 0; }
.site-foot nav { display: grid; gap: 6px; align-content: start; }
.site-foot nav p { margin: 0 0 4px; font-weight: 600; color: #ffffff; }
.site-foot nav a { color: var(--on-navy); padding: 4px 0; }
.site-foot nav a:hover { color: #ffffff; }

.site-foot-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 16px;
	padding-bottom: 28px;
	border-top: 1px solid #22305a;
	font-size: 14px;
	color: var(--on-navy-soft);
}

/* ---------- Cookie notice ---------- */

.cookie-notice {
	position: fixed;
	left: var(--gutter);
	right: var(--gutter);
	bottom: 16px;
	z-index: 50;
	max-width: 960px;
	margin: 0 auto;
	background: var(--navy);
	color: #ffffff;
	border-radius: 14px;
	padding: clamp(14px, 2.4vw, 22px);
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	align-items: center;
	border: 1px solid var(--navy-edge);
	box-shadow: 0 8px 30px rgba(13, 23, 48, 0.3);
}

.cookie-notice p { margin: 0; flex: 1 1 320px; min-width: 0; font-size: 15px; color: var(--on-navy); }
.cookie-notice a { color: #ffffff; }
.cookie-notice[hidden] { display: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-choice p { margin: 0 0 12px; }

/* ---------- Very short screens ---------- */

@media (max-height: 300px) {
	.site-head-bar { padding-top: 6px; padding-bottom: 6px; }
	.cookie-notice { position: static; margin: 16px var(--gutter); box-shadow: none; }
}

/* ---------- Very narrow screens ---------- */

@media (max-width: 380px) {
	.btn-lg { padding: 12px 18px; }
	.card { padding: 16px; }
	.card-accent { padding: 15px; }
}

@media print {
	.site-head, .site-foot, .cookie-notice, .ad-slot, .menu-button { display: none !important; }
	body { background: #ffffff; }
}
