/*
Theme Name:   Skrotpriset
Theme URI:    https://www.skrotpriset.se
Description:  Barntema till GeneratePress för skrotpriset.se. Svart, vitt och gult – platt, utan toningar.
Author:       Skrotpriset.se
Template:     generatepress
Version:      4.0.8
Text Domain:  skrotpriset
*/

/* ---------- Typsnitt (självhostat, latin) ---------- */
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}

/* ---------- Färger och mått ---------- */
:root {
	--sp-black: #111111;
	--sp-ink: #111111;
	--sp-ink-soft: #3a3a3a;
	--sp-muted: #5f5f5f;
	--sp-line: #e2e2e2;
	--sp-line-strong: #cfcfcf;
	--sp-bg: #ffffff;
	--sp-bg-alt: #f4f4f4;
	--sp-yellow: #ffc20e;
	--sp-yellow-hover: #f2b400;
	--sp-yellow-soft: #fff4cc;
	--sp-radius: 8px;
	--sp-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--sp-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Grund ---------- */
body {
	background: var(--sp-bg);
	color: var(--sp-ink);
	font-family: var(--sp-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--sp-black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--sp-black); text-decoration-thickness: 2px; text-decoration-color: var(--sp-yellow-hover); }
:focus-visible { outline: 3px solid var(--sp-black); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sp-yellow); }

h1, h2, h3, h4, .entry-title {
	font-family: var(--sp-head);
	font-weight: 700;
	color: var(--sp-black);
	letter-spacing: .2px;
	line-height: 1.1;
}
h1, .entry-title { font-size: 2.1rem; }
h2 { font-size: 1.7rem; margin-top: 1.6em; }
h3 { font-size: 1.3rem; font-weight: 600; }
@media (min-width: 769px) {
	h1, .entry-title { font-size: 2.75rem; }
	h2 { font-size: 2rem; }
}
strong { color: var(--sp-black); }

/* ---------- Prisrad överst ---------- */
.sp-topbar { background: var(--sp-black); color: #e6e6e6; font-size: .82rem; border-bottom: 1px solid #2a2a2a; }
.sp-topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .2em .6em; padding: .45em 20px; }
.sp-topbar strong { color: var(--sp-yellow); font-weight: 700; }
.sp-topbar__when { color: #9a9a9a; }
.sp-topbar__item + .sp-topbar__item::before { content: "·"; margin-right: .6em; color: #6a6a6a; }
.sp-topbar__link { margin-left: auto; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sp-topbar__link:hover { color: var(--sp-yellow); }
@media (max-width: 700px) {
	.sp-topbar__inner { flex-wrap: nowrap; padding: .45em 16px; }
	.sp-topbar__item:not(:first-child) { display: none; }
	.sp-topbar__item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Sidhuvud och logga ---------- */
.site-header { background: var(--sp-black); border-bottom: 4px solid var(--sp-yellow); }
.inside-header { padding-top: 14px; padding-bottom: 14px; }
.sp-logo { margin: 0; line-height: 1; }
.sp-logo a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.sp-logo__text { font-family: var(--sp-head); font-weight: 700; font-size: 1.85rem; letter-spacing: .3px; color: #fff; }
.sp-logo__tld { color: var(--sp-yellow); }
.sp-logo a:hover .sp-logo__text { color: #fff; }
.site-description { display: none; }

.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a {
	font-family: var(--sp-head);
	font-weight: 600;
	font-size: 1.12rem;
	letter-spacing: .3px;
	color: #fff;
	text-decoration: none;
	padding-left: 14px;
	padding-right: 14px;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--sp-yellow);
	background: transparent;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a { box-shadow: inset 0 -3px 0 var(--sp-yellow); }
.menu-toggle, .main-navigation .menu-toggle, .main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus {
	color: #fff; background: transparent; font-family: var(--sp-head); font-weight: 600;
}
.main-navigation.toggled .main-nav > ul { background: var(--sp-black); }
@media (max-width: 768px) {
	.main-navigation .main-nav ul li a { box-shadow: none !important; border-bottom: 1px solid #2a2a2a; }
	/* Större hamburgerikon och 56 px träffyta på mobil. */
	.main-navigation .menu-toggle { min-height: 56px; padding: 0 14px; }
	.main-navigation .menu-toggle .gp-icon { font-size: 34px; line-height: 1; }
	.main-navigation .menu-toggle .gp-icon svg { width: 34px; height: 34px; }
}
.main-navigation .main-nav ul li.sp-nav-cta a {
	margin: 12px 0 12px 10px; padding: 0 18px; line-height: 40px; border-radius: var(--sp-radius);
	background: var(--sp-yellow); color: var(--sp-black); box-shadow: none;
}
.main-navigation .main-nav ul li.sp-nav-cta a:hover,
.main-navigation .main-nav ul li.sp-nav-cta a:focus { background: var(--sp-yellow-hover); color: var(--sp-black); }
@media (max-width: 768px) {
	.main-navigation .main-nav ul li.sp-nav-cta a { margin: 10px 0; text-align: center; border-bottom: 0; }
}

/* ---------- Knappar ---------- */
.sp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 22px; border-radius: var(--sp-radius);
	font-family: var(--sp-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .3px;
	text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.sp-btn--primary { background: var(--sp-yellow); color: var(--sp-black); }
.sp-btn--primary:hover, .sp-btn--primary:focus { background: var(--sp-yellow-hover); color: var(--sp-black); }
.sp-btn--ghost { border: 2px solid #fff; color: #fff; }
.sp-btn--ghost:hover, .sp-btn--ghost:focus { background: #fff; color: var(--sp-black); }

/* ---------- Rubrikrad ovanför sektioner ---------- */
.sp-kicker {
	display: inline-flex; align-items: center; gap: .5em;
	margin: 0 0 .4em; font-size: .78rem; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase; color: var(--sp-black);
}
.sp-kicker::before { content: ""; width: 18px; height: 4px; background: var(--sp-yellow); }
.sp-kicker--light { color: #fff; }
.sp-dot { display: none; }
.sp-more { font-weight: 700; color: var(--sp-black); white-space: nowrap; }

/* ---------- Startsidan ---------- */
.home .site.grid-container { max-width: none; padding: 0; }
.home .site-content { display: block; padding: 0; }
.sp-front .site-main { margin: 0 !important; }
.sp-front .grid-container { padding-left: 20px; padding-right: 20px; }

.sp-hero { background: var(--sp-black); color: #e6e6e6; padding: 36px 0 40px; border-bottom: 6px solid var(--sp-yellow); }
.sp-hero__inner { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 960px) {
	.sp-hero { padding: 64px 0 72px; }
	.sp-hero__inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
.sp-hero__title { margin: .1em 0 .35em; color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.02; }
.sp-hero__lead { font-size: 1.12rem; line-height: 1.6; color: #d6d6d6; max-width: 36em; margin-bottom: 1.4em; }
.sp-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.sp-hero__chips a {
	display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline;
	padding: 10px 14px; border-radius: var(--sp-radius); text-decoration: none;
	background: #1e1e1e; border: 1px solid #333;
}
.sp-hero__chips a:hover { border-color: var(--sp-yellow); }
.sp-hero__chips span { grid-column: 1 / -1; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #b5b5b5; }
.sp-hero__chips strong { font-family: var(--sp-head); font-size: 1.7rem; line-height: 1.1; color: var(--sp-yellow); font-variant-numeric: tabular-nums; }
.sp-hero__chips small { color: #b5b5b5; font-size: .85rem; }
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
	.sp-hero__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.sp-hero__chips a { padding: 8px 10px; }
	.sp-hero__chips strong { font-size: 1.35rem; }
	.sp-hero__chips small { display: none; }
	.sp-hero__chips span { font-size: .66rem; }
	.sp-hero__actions .sp-btn { flex: 1 1 100%; }
}

.sp-hero__calc { background: #fff; color: var(--sp-ink); border-radius: var(--sp-radius); padding: 22px 22px 16px; border-top: 6px solid var(--sp-yellow); }
.sp-hero__calc-title { margin: 0 0 .6em; font-size: 1.6rem; }
.sp-hero__calc .sp-kalk { padding: 0; border: 0; background: none; }
.sp-hero__calc .sp-kalk__row { flex-direction: column; align-items: stretch; gap: 4px; }
.sp-hero__calc .sp-kalk__row label { min-width: 0; font-size: 1rem; color: var(--sp-ink-soft); }
.sp-hero__calc .sp-kalk__row select,
.sp-hero__calc .sp-kalk__row input { flex: none; height: 48px; min-height: 48px; }
.sp-hero__calc .sp-kalk__out { background: none; padding: 0; min-height: 0; }
.sp-hero__calc .sp-disclaimer { font-size: 0; margin: 10px 0 0; }
.sp-hero__calc .sp-disclaimer a { font-size: .8rem; color: var(--sp-muted); }
.sp-hero__calc .sp-disclaimer::before { content: "Uppskattning – det är firmans pris vid invägningen som gäller. "; font-size: .8rem; color: var(--sp-muted); }

/* Sektioner */
.sp-section { padding: 44px 0; }
@media (min-width: 960px) { .sp-section { padding: 64px 0; } }
.sp-section--alt { background: var(--sp-bg-alt); }
.sp-section h2 { margin-top: 0; }
.sp-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.sp-section__head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.sp-section .sp-source { margin-top: 10px; }

/* Förtroenderad */
.sp-trust { background: #fff; border-bottom: 1px solid var(--sp-line); padding: 28px 0; }
.sp-trust__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .sp-trust__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sp-trust__grid { grid-template-columns: repeat(4, 1fr); } }
.sp-trust__item { display: flex; gap: 14px; align-items: flex-start; }
.sp-trust__item svg { flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border-radius: var(--sp-radius); color: var(--sp-black); background: var(--sp-yellow); }
.sp-trust__item strong { display: block; font-family: var(--sp-head); font-size: 1.2rem; line-height: 1.2; }
.sp-trust__item span { display: block; font-size: .9rem; color: var(--sp-muted); line-height: 1.45; }

/* Två kolumner */
.sp-split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 960px) {
	.sp-split { grid-template-columns: 1fr 1.15fr; gap: 48px; }
	.sp-split--even { grid-template-columns: 1fr 1fr; align-items: start; }
}
.sp-split .sp-graf { margin: 0; }

/* Guidekort */
.sp-guides { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .sp-guides { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sp-guides { grid-template-columns: repeat(4, 1fr); } }
.sp-guide {
	display: flex; flex-direction: column; gap: 6px; padding: 20px;
	background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius);
	color: var(--sp-ink); text-decoration: none; transition: border-color .15s;
}
.sp-guide:hover, .sp-guide:focus { color: var(--sp-ink); border-color: var(--sp-black); }
.sp-guide__icon { width: 46px; height: 46px; padding: 11px; border-radius: var(--sp-radius); background: var(--sp-yellow); color: var(--sp-black); margin-bottom: 6px; }
.sp-guide__icon svg { width: 100%; height: 100%; display: block; }
.sp-guide strong { font-family: var(--sp-head); font-size: 1.35rem; line-height: 1.15; }
.sp-guide span { color: var(--sp-muted); font-size: .92rem; line-height: 1.5; }

/* Städer och nyhet */
.sp-cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }
.sp-cities a {
	padding: 10px 18px; border-radius: var(--sp-radius); background: #fff; border: 1px solid var(--sp-line-strong);
	font-family: var(--sp-head); font-weight: 600; font-size: 1.15rem; color: var(--sp-ink); text-decoration: none;
}
.sp-cities a:hover { border-color: var(--sp-black); background: var(--sp-yellow); }
.sp-news {
	display: flex; flex-direction: column; gap: 6px; padding: 22px;
	background: #fff; border: 1px solid var(--sp-line); border-left: 6px solid var(--sp-yellow);
	border-radius: var(--sp-radius); color: var(--sp-ink); text-decoration: none;
}
.sp-news:hover { color: var(--sp-ink); border-color: var(--sp-black); border-left-color: var(--sp-yellow); }
.sp-news time { font-size: .82rem; color: var(--sp-muted); }
.sp-news strong { font-family: var(--sp-head); font-size: 1.45rem; line-height: 1.15; }
.sp-news span { color: var(--sp-ink-soft); font-size: .95rem; }

.sp-section--prose { background: #fff; border-top: 1px solid var(--sp-line); }
.sp-prose { max-width: 820px !important; }
.sp-prose .sp-byline { display: none; }

/* ---------- Undersidor: rubrikband och innehållsyta ---------- */
.sp-pagehead { background: var(--sp-black); color: #e6e6e6; padding: 22px 0 88px; }
.sp-pagehead__inner { padding-left: 20px; padding-right: 20px; }
.sp-pagehead .rank-math-breadcrumb, .sp-pagehead .rank-math-breadcrumb a { color: #b5b5b5; }
.sp-pagehead .rank-math-breadcrumb a:hover { color: var(--sp-yellow); }
.sp-pagehead__title { margin: .25em 0 0; color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; max-width: 22em; }
.sp-pagehead__meta { margin: .5em 0 0; color: #b5b5b5; font-size: .9rem; }

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-top: 6px solid var(--sp-yellow);
	border-radius: var(--sp-radius);
}
.separate-containers .inside-article { padding: 34px 40px 30px; }
.separate-containers .site-main { position: relative; z-index: 1; margin-top: 24px; margin-bottom: 32px; }
body.separate-containers.sp-has-pagehead .site-main { margin-top: -56px; }
@media (max-width: 768px) {
	.sp-pagehead { padding-bottom: 64px; }
	body.separate-containers.sp-has-pagehead .site-main { margin-top: -44px; }
	.separate-containers .inside-article { padding: 22px 18px; border-left: 0; border-right: 0; border-radius: 0; }
}
.entry-header { margin-bottom: .6em; }
.entry-content > :is(p, ul, ol, h2, h3, h4, details, .sp-lead) { max-width: 74ch; }
.sp-lead { font-size: 1.15em; color: var(--sp-ink-soft); }

/* Brödsmulor, författare */
.rank-math-breadcrumb { font-size: .85rem; color: var(--sp-muted); margin: 0 0 .8em; }
.rank-math-breadcrumb a { color: var(--sp-muted); }
.rank-math-breadcrumb p { margin: 0; }
.sp-byline { margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var(--sp-line); color: var(--sp-muted); font-size: .875em; }

/* ---------- Prisruta (metallsidor) ---------- */
.sp-prisruta { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 1.2em 0 1.6em; }
@media (min-width: 560px) { .sp-prisruta { grid-template-columns: 1fr 1fr; } }
.sp-stat {
	display: flex; flex-direction: column; gap: 2px;
	padding: 16px 18px; border-radius: var(--sp-radius);
	background: var(--sp-yellow-soft); border: 1px solid #f2d97a; border-left: 6px solid var(--sp-yellow);
}
.sp-stat--world { background: var(--sp-bg-alt); border-color: var(--sp-line); border-left-color: var(--sp-black); }
.sp-stat__label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sp-ink-soft); }
.sp-stat__value { font-family: var(--sp-head); font-weight: 700; font-size: 2.4rem; line-height: 1.05; color: var(--sp-black); font-variant-numeric: tabular-nums; }
.sp-stat__value small { font-size: .5em; font-weight: 600; color: var(--sp-ink-soft); }
.sp-stat__value--none { font-size: 1.3rem; color: var(--sp-muted); }
.sp-stat__meta { font-size: .82rem; color: var(--sp-muted); }

/* ---------- Priskort (startsidan) ---------- */
.sp-kortlista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1em 0 .5em; }
@media (min-width: 700px) { .sp-kortlista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sp-kortlista { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-kort {
	display: flex; flex-direction: column; gap: 2px;
	padding: 14px 14px 12px; background: #fff;
	border: 1px solid var(--sp-line); border-radius: var(--sp-radius);
	color: var(--sp-ink); text-decoration: none; transition: border-color .15s;
}
a.sp-kort:hover, a.sp-kort:focus { color: var(--sp-ink); border-color: var(--sp-black); box-shadow: inset 0 -4px 0 var(--sp-yellow); }
.sp-kort__sym {
	align-self: flex-start; min-width: 2.2em; padding: 2px 7px; margin-bottom: 6px;
	border-radius: 4px; font-family: var(--sp-head); font-weight: 700; font-size: .95rem; text-align: center;
	color: var(--sp-yellow); background: var(--sp-black);
}
.sp-kort__namn { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.sp-kort__pris { font-family: var(--sp-head); font-weight: 700; font-size: 1.75rem; line-height: 1.1; color: var(--sp-black); font-variant-numeric: tabular-nums; }
.sp-kort__pris small { font-size: .55em; color: var(--sp-ink-soft); font-weight: 600; }
.sp-kort__meta { font-size: .78rem; color: var(--sp-muted); }

/* ---------- Tabeller ---------- */
.sp-tabell, .wp-block-table { margin: 1.2em 0 1.6em; }
.sp-tabell table, .wp-block-table table, .sp-graf__data table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); overflow: hidden; font-size: .95rem;
}
.sp-tabell caption { text-align: left; font-family: var(--sp-head); font-weight: 700; font-size: 1.2rem; padding-bottom: .4em; color: var(--sp-black); }
.sp-tabell th, .sp-tabell td, .wp-block-table th, .wp-block-table td, .sp-graf__data th, .sp-graf__data td {
	padding: .6em .75em; border: 0; border-bottom: 1px solid var(--sp-line); text-align: left;
}
.sp-tabell thead th, .wp-block-table thead th, .sp-graf__data thead th {
	background: var(--sp-black); color: #fff;
	font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.sp-tabell tbody tr:last-child > *, .wp-block-table tbody tr:last-child > * { border-bottom: 0; }
.sp-tabell tbody tr:nth-child(even), .wp-block-table tbody tr:nth-child(even) { background: #fafafa; }
.wp-block-table figcaption, .wp-element-caption { color: var(--sp-muted); font-size: .82rem; text-align: left; }
.sp-source, .sp-disclaimer { color: var(--sp-muted); font-size: .85rem; }
.sp-tabell, .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sp-tabell td, .sp-tabell th, .wp-block-table td, .wp-block-table th { overflow-wrap: break-word; }
.sp-tabell td a, .wp-block-table td a { overflow-wrap: anywhere; }
.sp-num { overflow-wrap: normal; }

/* Tabeller på smala skärmar: tätare, text får radbrytas, och tabeller med många kolumner
   (.sp-tabell--kort) visas som kort med kolumnrubriken framför varje värde. Inget ska klippas. */
@media (max-width: 600px) {
	.sp-tabell table, .wp-block-table table, .sp-graf__data table { font-size: .9rem; }
	.sp-tabell th, .sp-tabell td, .wp-block-table th, .wp-block-table td { padding: .5em .55em; }
	.sp-tabell thead th, .wp-block-table thead th { font-size: .68rem; letter-spacing: .03em; }
	.sp-tabell caption { font-size: 1.1rem; }

	.sp-tabell--kort thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sp-tabell--kort table, .sp-tabell--kort tbody, .sp-tabell--kort tr { display: block; width: 100%; }
	.sp-tabell--kort tr { padding: .65em .8em; border-bottom: 1px solid var(--sp-line); }
	.sp-tabell--kort tbody tr:last-child { border-bottom: 0; }
	.sp-tabell--kort th, .sp-tabell--kort td {
		display: flex; justify-content: space-between; align-items: baseline; gap: 1em;
		border: 0; padding: .18em 0; text-align: left;
	}
	.sp-tabell--kort th[scope="row"], .sp-tabell--kort td:first-child { font-weight: 700; font-size: 1.05em; padding-bottom: .3em; }
	.sp-tabell--kort td::before { content: attr(data-label); flex: 0 0 auto; color: var(--sp-muted); font-weight: 400; font-size: .9em; }
	.sp-tabell--kort td:first-child::before { display: none; }
	.sp-tabell--kort caption { display: block; width: 100%; }
	.sp-tabell--kort td.sp-num { text-align: right; white-space: normal; }
	.sp-tabell--kort td .sp-cell { display: block; text-align: right; }
	.sp-tabell--kort td.sp-num small { display: block; color: var(--sp-muted); font-size: .85em; }
	.sp-tabell--kort td:empty { display: none; }
}

/* ---------- Kalkylator ---------- */
.sp-kalk { padding: 18px; border: 1px solid var(--sp-line); border-top: 6px solid var(--sp-yellow); border-radius: var(--sp-radius); background: #fff; }
.sp-kalk__row label { font-family: var(--sp-head); font-size: 1.1rem; }
.sp-kalk select, .sp-kalk input {
	border: 1px solid var(--sp-line-strong); border-radius: var(--sp-radius);
	background: #fff; padding: 8px 10px; font-size: 1rem; color: var(--sp-ink);
}
.sp-kalk select:focus, .sp-kalk input:focus { border-color: var(--sp-black); outline: 3px solid var(--sp-yellow); }
.sp-kalk select {
	appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.sp-kalk__quick { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; }
.sp-kalk__quick button {
	min-height: 36px; padding: 0 14px; border-radius: var(--sp-radius);
	border: 1px solid var(--sp-line-strong); background: #fff; color: var(--sp-ink);
	font-weight: 600; font-size: .9rem; cursor: pointer;
}
.sp-kalk__quick button:hover { border-color: var(--sp-black); }
.sp-kalk__quick button[aria-pressed="true"] { background: var(--sp-black); border-color: var(--sp-black); color: #fff; }
.sp-kalk__out { display: grid; gap: 10px; }
.sp-kalk__res { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--sp-radius); background: var(--sp-yellow); }
.sp-kalk__res--world { background: var(--sp-bg-alt); }
.sp-kalk__res-label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-black); }
.sp-kalk .sp-kalk__out .sp-kalk__res-value { font-family: var(--sp-head); font-size: 2.3rem; line-height: 1.05; color: var(--sp-black); font-variant-numeric: tabular-nums; }
.sp-kalk .sp-kalk__out .sp-kalk__res--world .sp-kalk__res-value { font-size: 1.6rem; }
.sp-kalk__res .sp-kalk__meta { font-size: .82rem; color: var(--sp-ink-soft); }

/* ---------- Graf ---------- */
.sp-graf { padding: 14px; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); }
.sp-graf__line { stroke: var(--sp-black); stroke-width: 2.5; }

/* ---------- Listor ---------- */
.entry-content ul li::marker { color: var(--sp-black); }
.entry-content ol li::marker { color: var(--sp-black); font-weight: 700; }

/* ---------- Knapp för samtycke ---------- */
.sp-samtycke {
	margin: .5em 0 1.5em; padding: .6em 1.1em; min-height: 44px;
	border: 2px solid var(--sp-black); background: #fff; color: var(--sp-black);
	border-radius: var(--sp-radius); font-weight: 700; cursor: pointer;
}
.sp-samtycke:hover, .sp-samtycke:focus { background: var(--sp-yellow); }

/* ---------- Sidfot ---------- */
.sp-footer { background: var(--sp-black); color: #cfcfcf; padding: 48px 0 28px; border-top: 6px solid var(--sp-yellow); }
.sp-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-left: 20px; padding-right: 20px; }
@media (min-width: 900px) { .sp-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.sp-footer__about { grid-column: 1 / -1; }
@media (min-width: 900px) { .sp-footer__about { grid-column: auto; } }
.sp-footer__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--sp-head); font-weight: 700; font-size: 1.6rem; color: #fff; }
.sp-footer__logo span span { color: var(--sp-yellow); }
.sp-footer__logo:hover { color: #fff; }
.sp-footer p { font-size: .92rem; line-height: 1.6; max-width: 30em; margin-top: .8em; }
.sp-footer__title { margin: 0 0 .7em; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-yellow); }
.sp-footer ul { list-style: none; margin: 0; padding: 0; }
.sp-footer li { margin: 0 0 .45em; }
.sp-footer a { color: #e6e6e6; text-decoration: none; }
.sp-footer a:hover { color: var(--sp-yellow); text-decoration: underline; }
.site-info { background: #000; color: #a8a8a8; border-top: 1px solid #262626; font-size: .85rem; }
.site-info a { color: #e6e6e6; }
.site-info a:hover { color: var(--sp-yellow); }

/* ---------- Annonsplatser ---------- */
.sp-ad { display: block; width: 100%; min-height: 280px; margin: 1.5em 0; text-align: center; background: var(--sp-bg-alt); border-radius: var(--sp-radius); }
.sp-ad::before { content: "Annons"; display: block; padding-top: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-muted); }
@media (min-width: 769px) { .sp-ad--sidebar { min-height: 600px; } }
