/* Resa till Spanien Verktyg 1.0.0. Använder temats variabler (--rs-*) med reservvärden. */
.rsv {
	--rsv-ink: var(--rs-ink, #2b2d33);
	--rsv-muted: var(--rs-muted, #5c5a62);
	--rsv-navy: var(--rs-navy, #14334a);
	--rsv-deep: var(--rs-deep, #14334a);
	--rsv-red: var(--rs-red, #b3361e);
	--rsv-sea: var(--rs-sea, #0e5a82);
	--rsv-sea-light: var(--rs-sea-light, #e7f1f6);
	--rsv-saffron: var(--rs-saffron, #f2b632);
	--rsv-saffron-light: var(--rs-saffron-light, #ffd877);
	--rsv-saffron-text: var(--rs-saffron-text, #7d5300);
	--rsv-paper: var(--rs-paper, #fdf9f2);
	--rsv-cream: var(--rs-cream, #fff6dc);
	--rsv-rule: var(--rs-rule, #e9dfcd);
	--rsv-font: var(--rs-font, Jost, "Segoe UI", system-ui, sans-serif);
	--rsv-head: var(--rs-font-head, "Palanquin Dark", "Trebuchet MS", sans-serif);
	margin: 2.2em 0;
	padding: 26px 26px 20px;
	background: #fff;
	border: 1px solid var(--rsv-rule);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(20, 51, 74, .06);
	color: var(--rsv-ink);
	font: 400 16px/1.55 var(--rsv-font);
	overflow-wrap: anywhere;
}
.rsv *, .rsv *::before, .rsv *::after { box-sizing: border-box; }
.rsv p { margin: 0 0 12px; }
.rsv .rsv-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rsv-saffron-text); }
.rsv h2.rsv-title, .rts-prose .rsv h2.rsv-title { margin: 0 0 8px; font: 700 clamp(22px, 3vw, 30px)/1.15 var(--rsv-head); color: var(--rsv-navy); }
.rsv .rsv-lead { color: var(--rsv-muted); }

/* Val */
.rsv .rsv-controls { display: grid; gap: 14px; margin: 18px 0 16px; }
.rsv .rsv-field label, .rsv .rsv-label { display: block; margin: 0 0 5px; font-weight: 600; font-size: 14px; color: var(--rsv-navy); }
.rsv .rsv-field .rsv-place {
	width: 100%;
	max-width: 360px;
	min-height: 46px;
	margin: 0;
	padding: 8px 12px;
	background: #fff;
	color: var(--rsv-ink);
	border: 1px solid var(--rs-field, #8a7d6d);
	border-radius: 6px;
	font: 500 16px/1.3 var(--rsv-font);
}
.rsv .rsv-field .rsv-place:focus { outline: 3px solid rgba(14, 90, 130, .3); border-color: var(--rsv-sea); }
.rsv .rsv-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.rsv .rsv-month {
	min-height: 40px;
	margin: 0;
	padding: 6px 0;
	background: var(--rsv-paper);
	color: var(--rsv-navy);
	border: 1px solid var(--rsv-rule);
	border-radius: 6px;
	font: 600 14px/1 var(--rsv-font);
	cursor: pointer;
	box-shadow: none;
}
.rsv .rsv-month:hover { border-color: var(--rsv-sea); background: #fff; color: var(--rsv-navy); }
.rsv .rsv-month[aria-checked="true"] { background: var(--rsv-navy); border-color: var(--rsv-navy); color: #fff; }
.rsv button:focus-visible, .rsv a:focus-visible { outline: 3px solid rgba(14, 90, 130, .45); outline-offset: 2px; }

/* Kort */
.rsv .rsv-card { padding: 20px 20px 16px; background: var(--rsv-cream); border-radius: 12px; }
.rsv .rsv-card-head { margin-bottom: 12px; }
.rsv h3.rsv-card-title, .rts-prose .rsv h3.rsv-card-title { margin: 0; font: 700 22px/1.2 var(--rsv-head); color: var(--rsv-navy); }
.rsv .rsv-card-station { margin: 2px 0 0; font-size: 13px; color: var(--rsv-muted); }
.rsv .rsv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rsv .rsv-stat { display: flex; flex-direction: column; padding: 12px 12px 10px; background: #fff; border-radius: 10px; border: 1px solid var(--rsv-rule); }
.rsv .rsv-stat-l { font-size: 13px; font-weight: 600; color: var(--rsv-muted); }
.rsv .rsv-stat-v { font: 700 28px/1.15 var(--rsv-head); color: var(--rsv-navy); font-variant-numeric: tabular-nums; }
.rsv .rsv-stat:first-child .rsv-stat-v { color: var(--rsv-red); }
.rsv .rsv-stat-s { font-size: 12.5px; line-height: 1.35; color: var(--rsv-muted); }
.rsv .rsv-compare { margin: 14px 0 10px; font-size: 15px; }
.rsv .rsv-verdicts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.rsv .rsv-verdicts-l { font-size: 13px; font-weight: 600; color: var(--rsv-muted); margin-right: 2px; }
.rsv .rsv-chip { padding: 4px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.rsv .rsv-chip-sun { background: var(--rsv-saffron-light); color: #4d3300; }
.rsv .rsv-chip-ok { background: #e3f1e6; color: #1f5a30; }
.rsv .rsv-chip-hot { background: #fbe1da; color: #8a2a15; }
.rsv .rsv-chip-cold { background: var(--rsv-sea-light); color: var(--rsv-sea); }
.rsv .rsv-chip-rain { background: #e6e9ef; color: #3a4552; }
.rsv .rsv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rsv a.rsv-more { font-weight: 600; color: var(--rsv-sea); }
.rsv .rsv-btn {
	min-height: 40px;
	margin: 0;
	padding: 8px 14px;
	background: #fff;
	color: var(--rsv-navy);
	border: 1px solid var(--rsv-navy);
	border-radius: 6px;
	font: 600 14px/1.2 var(--rsv-font);
	cursor: pointer;
}
.rsv .rsv-btn:hover { background: var(--rsv-navy); color: #fff; }

/* Diagram */
.rsv .rsv-chart { margin: 22px 0 6px; }
.rsv .rsv-chart-title { margin: 0 0 6px; font-weight: 600; color: var(--rsv-navy); }
.rsv .rsv-chart svg { display: block; width: 100%; height: auto; }
.rsv .rsv-grid { stroke: var(--rsv-rule); stroke-width: 1; }
.rsv .rsv-axis { fill: var(--rsv-muted); font: 500 12px var(--rsv-font); }
.rsv .rsv-val { fill: var(--rsv-navy); font: 700 11.5px var(--rsv-font); }
.rsv .rsv-hit { fill: transparent; }
.rsv .rsv-bar { cursor: pointer; }
.rsv .rsv-range { fill: var(--rsv-saffron); opacity: .55; transition: opacity .2s; }
.rsv .rsv-bar:hover .rsv-range { opacity: .85; }
.rsv .rsv-bar.is-on .rsv-range { fill: var(--rsv-red); opacity: 1; }
.rsv .rsv-bar.is-on .rsv-hit { fill: rgba(20, 51, 74, .05); }
.rsv .rsv-sthlm { fill: none; stroke: var(--rsv-sea); stroke-width: 2; stroke-dasharray: 5 4; }
.rsv .rsv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--rsv-muted); }
.rsv .rsv-leg-range { display: inline-block; width: 12px; height: 16px; border-radius: 3px; background: var(--rsv-saffron); }
.rsv .rsv-leg-sthlm { display: inline-block; width: 22px; border-top: 2px dashed var(--rsv-sea); margin-left: 10px; }

/* Rangordning */
.rsv .rsv-rank { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rsv-rule); }
.rsv .rsv-rank-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rsv h3.rsv-rank-title, .rts-prose .rsv h3.rsv-rank-title { margin: 0; font: 700 19px/1.2 var(--rsv-head); color: var(--rsv-navy); }
.rsv .rsv-sort { display: flex; gap: 4px; }
.rsv .rsv-sort-b {
	min-height: 36px;
	margin: 0;
	padding: 6px 12px;
	background: #fff;
	color: var(--rsv-navy);
	border: 1px solid var(--rsv-rule);
	border-radius: 999px;
	font: 600 13.5px/1 var(--rsv-font);
	cursor: pointer;
}
.rsv .rsv-sort-b[aria-pressed="true"] { background: var(--rsv-sea); border-color: var(--rsv-sea); color: #fff; }
.rsv ol.rsv-list, .rts-prose .rsv ol.rsv-list { margin: 0; padding: 0; list-style: none; counter-reset: rsv; }
.rsv .rsv-list li { margin: 0; counter-increment: rsv; }
.rsv .rsv-list li::marker { content: none; }
.rsv .rsv-list-b {
	display: grid;
	grid-template-columns: 1.6em minmax(0, 11em) minmax(0, 1fr) 6.2em;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 5px 6px;
	background: none;
	border: 0;
	border-radius: 6px;
	color: var(--rsv-ink);
	font: 400 14.5px/1.3 var(--rsv-font);
	text-align: left;
	cursor: pointer;
}
.rsv .rsv-list-b::before { content: counter(rsv) "."; color: var(--rsv-muted); font-size: 13px; text-align: right; }
.rsv .rsv-list-b:hover { background: var(--rsv-paper); color: var(--rsv-ink); }
.rsv .rsv-list li.is-on .rsv-list-b { background: var(--rsv-cream); font-weight: 700; }
.rsv .rsv-list-bar { height: 10px; background: var(--rsv-paper); border-radius: 5px; overflow: hidden; }
.rsv .rsv-list-fill { display: block; height: 100%; border-radius: 5px; transition: width .3s; }
.rsv .rsv-fill-tmax { background: var(--rsv-red); opacity: .8; }
.rsv .rsv-fill-sun { background: var(--rsv-saffron); }
.rsv .rsv-fill-rdays { background: var(--rsv-sea); opacity: .7; }
.rsv .rsv-list-v { text-align: right; font-variant-numeric: tabular-nums; }

/* Tabell och källor */
.rsv .rsv-table-wrap { margin-top: 18px; border-top: 1px solid var(--rsv-rule); padding-top: 12px; }
.rsv .rsv-table-wrap summary { cursor: pointer; font-weight: 600; color: var(--rsv-navy); }
.rsv .rsv-scroll { overflow-x: auto; margin-top: 10px; border: 1px solid var(--rsv-rule); border-radius: 8px; }
.rsv table.rsv-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rsv .rsv-table caption { padding: 8px 10px; text-align: left; color: var(--rsv-muted); font-size: 13px; }
.rsv .rsv-table th, .rsv .rsv-table td { padding: 5px 7px; border: 0; border-bottom: 1px solid var(--rsv-rule); text-align: right; white-space: nowrap; }
.rsv .rsv-table thead th { background: var(--rsv-deep); color: #fff; font-weight: 600; }
.rsv .rsv-table tbody th { text-align: left; font-weight: 600; color: var(--rsv-navy); }
.rsv .rsv-row-sthlm th, .rsv .rsv-row-sthlm td { background: var(--rsv-sea-light); }
.rsv .rsv-sources { margin-top: 14px; font-size: 13px; color: var(--rsv-muted); }
.rsv .rsv-sources p { margin: 0 0 6px; }
.rsv .rsv-sources a { color: var(--rsv-sea); }

@media (max-width: 720px) {
	.rsv { padding: 18px 14px 16px; }
	.rsv .rsv-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.rsv .rsv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rsv .rsv-stat-v { font-size: 24px; }
	.rsv .rsv-card { padding: 16px 12px 12px; }
	.rsv .rsv-list-b { grid-template-columns: 1.5em minmax(0, 1fr) 5.6em; }
	.rsv .rsv-list-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.rsv .rsv-range, .rsv .rsv-list-fill { transition: none; }
}
