/*
Theme Name: Allt om Elbil
Theme URI: https://alltomelbil.se/
Author: Allt om Elbil
Description: Eget tema för Allt om Elbil – nyheter, provkörningar och kunskap om elbilar. Byggt för Disqus, Yoast SEO, wpDataTables och widgetbaserade annonsytor.
Version: 0.3.12
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alltomelbil
*/

/* ---------- Typsnitt (lokalt, inga anrop till Google) ---------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("assets/fonts/jetbrains-mono-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* ---------- Färger och grundvärden ---------- */
:root {
	--aoe-brand: #1f4370;
	--aoe-brand-hover: #2b5ea8;
	--aoe-brand-light: #8fb3e8;
	--aoe-ink: #0d1b2e;
	--aoe-ink-2: #1c2633;
	--aoe-ink-3: #2a3442;
	--aoe-bg: #f3f5f8;
	--aoe-surface: #ffffff;
	--aoe-muted: #56606e;
	--aoe-muted-2: #48525f;
	--aoe-line: #e3e7ed;
	--aoe-line-2: #d3d9e2;
	--aoe-dash: #b6c0ce;
	--aoe-placeholder: #dce3ec;
	--aoe-chip: #e4eaf3;
	--aoe-dark-2: #1f2f47;
	--aoe-dark-line: #2a3b55;
	--aoe-on-dark: #c3ccd9;
	--aoe-on-dark-muted: #9aa7b8;
	--aoe-plus: #1e7a4e;
	--aoe-minus: #a13d1f;
	--aoe-sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	--aoe-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--aoe-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--aoe-wrap: 1240px;
	--aoe-gutter: 24px;
	--aoe-radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
	margin: 0;
	background: var(--aoe-bg);
	color: var(--aoe-ink);
	font-family: var(--aoe-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--aoe-ink); text-decoration: none; }
a:hover { color: var(--aoe-brand-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--aoe-brand-hover);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto;
	padding: 12px 16px;
	background: #fff;
	z-index: 1000;
}

.aoe-wrap { max-width: var(--aoe-wrap); margin: 0 auto; padding: 0 var(--aoe-gutter); }
.aoe-main { padding-top: 32px; }

/* ---------- Gemensamma byggstenar ---------- */
.aoe-eyebrow {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--aoe-brand);
	margin: 0 0 8px;
}
.aoe-on-dark .aoe-eyebrow { color: var(--aoe-brand-light); }

.aoe-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
}
.aoe-h2 {
	margin: 0;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -.02em;
}
.aoe-link-arrow {
	font-size: 15px;
	font-weight: 700;
	color: var(--aoe-brand);
}
.aoe-on-dark .aoe-link-arrow {
	color: #fff;
	border-bottom: 2px solid var(--aoe-brand-light);
	padding-bottom: 2px;
}

.aoe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	background: var(--aoe-brand);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}
.aoe-btn:hover { background: var(--aoe-brand-hover); color: #fff; }
.aoe-btn--dark { background: var(--aoe-ink); }
.aoe-btn--dark:hover { background: var(--aoe-ink-3); }
.aoe-btn--ghost { background: transparent; border-color: var(--aoe-ink); color: var(--aoe-ink); }
.aoe-btn--ghost:hover { background: var(--aoe-ink); color: #fff; }
.aoe-btn--light { background: #fff; color: var(--aoe-ink); }
.aoe-btn--soft { background: var(--aoe-chip); color: var(--aoe-brand); }
.aoe-btn--soft:hover { background: var(--aoe-line-2); color: var(--aoe-brand); }
.aoe-btn--outline { background: #fff; border: 1px solid var(--aoe-line-2); color: var(--aoe-ink); font-weight: 600; font-size: 14px; }

.aoe-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.aoe-pill {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--aoe-line-2);
	font-size: 14px;
	font-weight: 600;
}
.aoe-pill.is-active, .aoe-pill[aria-current="page"] { background: var(--aoe-ink); border-color: var(--aoe-ink); color: #fff; }

.aoe-chip {
	display: inline-block;
	font-family: var(--aoe-mono);
	font-size: 12px;
	padding: 5px 9px;
	border-radius: 6px;
	background: var(--aoe-chip);
	color: var(--aoe-ink);
}
.aoe-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.aoe-badge {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 6px;
	background: #fff;
	color: var(--aoe-ink);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.aoe-badge--dark { background: var(--aoe-ink); color: #fff; }
.aoe-badge--brand { background: var(--aoe-brand); color: #fff; }

.aoe-comments-count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--aoe-muted);
	font-size: 13px;
	white-space: nowrap;
}
.aoe-comments-count svg { flex: none; }

.aoe-media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--aoe-placeholder);
	border-radius: 14px;
}
.aoe-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.aoe-media--3x2 { aspect-ratio: 3 / 2; }
.aoe-media--16x10 { aspect-ratio: 16 / 10; }
.aoe-media--16x9 { aspect-ratio: 16 / 9; border-radius: var(--aoe-radius); }
.aoe-media--21x9 { aspect-ratio: 21 / 9; border-radius: var(--aoe-radius); }
.aoe-media--4x5 { aspect-ratio: 4 / 5; border-radius: 16px; }
.aoe-media .aoe-badge { position: absolute; left: 14px; top: 14px; }

/* ---------- Sidhuvud ---------- */
.aoe-header { background: #fff; border-bottom: 1px solid var(--aoe-line); }
.aoe-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.aoe-logo { display: flex; align-items: center; }
.aoe-logo img { height: 48px; width: auto; display: block; }
.aoe-logo__text { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--aoe-brand); }
.aoe-nav { flex: 1 1 420px; }
.aoe-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.aoe-nav li { position: relative; }
.aoe-nav a {
	display: block;
	padding: 10px 0;
	font-size: 15px;
	font-weight: 600;
	color: #3c4757;
	border-bottom: 2px solid transparent;
}
.aoe-nav a:hover { color: var(--aoe-ink); }
.aoe-nav .current-menu-item > a,
.aoe-nav .current-menu-ancestor > a,
.aoe-nav .current_page_item > a { color: var(--aoe-ink); border-bottom-color: var(--aoe-brand); }
.aoe-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 50;
	min-width: 240px;
	flex-direction: column;
	gap: 0;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--aoe-line);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgb(13 27 46 / 12%);
}
.aoe-nav .sub-menu a { padding: 10px 12px; border: 0; border-radius: 8px; }
.aoe-nav .sub-menu a:hover { background: var(--aoe-bg); }
.aoe-nav li:hover > .sub-menu,
.aoe-nav li:focus-within > .sub-menu { display: flex; }
.aoe-header__actions { display: flex; align-items: center; gap: 10px; }
.aoe-icon-btn {
	width: 44px; height: 44px;
	border-radius: 22px;
	border: 1px solid var(--aoe-line-2);
	background: #fff;
	color: var(--aoe-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.aoe-search-panel { border-top: 1px solid var(--aoe-line); background: #fff; }
.aoe-search-panel[hidden] { display: none; }
.aoe-search-panel .aoe-searchform { padding-top: 16px; padding-bottom: 16px; }

.aoe-searchform { display: flex; flex-wrap: wrap; gap: 8px; max-width: 720px; }
.aoe-searchform input[type="search"] {
	flex: 1 1 240px;
	min-width: 0;
	height: 48px;
	border-radius: 14px;
	border: 1px solid var(--aoe-line-2);
	padding: 0 16px;
	font-family: inherit;
	font-size: 16px;
	background: #fff;
	color: var(--aoe-ink);
}

/* ---------- Annonsytor ---------- */
.aoe-ad {
	margin: 24px 0;
	text-align: center;
}
.aoe-ad__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--aoe-muted);
	margin-bottom: 6px;
}
.aoe-ad .widget { margin: 0; }
.aoe-ad .widget + .widget { margin-top: 16px; }
.aoe-ad--top { margin: 24px auto 0; }
.aoe-ad--feed { margin: 40px 0; }
.aoe-ad--incontent { margin: 8px 0 30px; font-family: var(--aoe-sans); }

/* ---------- Kort ---------- */
.aoe-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 28px;
}
@media (max-width: 860px) {
	.aoe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Udda antal kort i två kolumner: första kortet blir brett, så att raderna går jämnt ut. */
	.aoe-grid > .aoe-card:first-child:nth-last-child(odd) {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto auto 1fr;
		column-gap: 28px;
		row-gap: 12px;
		align-content: start;
	}
	.aoe-grid > .aoe-card:first-child:nth-last-child(odd) > .aoe-media { grid-row: 1 / span 4; }
	.aoe-grid > .aoe-card:first-child:nth-last-child(odd) > :not(.aoe-media) { grid-column: 2; }
	.aoe-grid > .aoe-card:first-child:nth-last-child(odd) .aoe-card__title { font-size: 26px; }
}
@media (max-width: 600px) {
	.aoe-grid { grid-template-columns: minmax(0, 1fr); }
	.aoe-grid > .aoe-card:first-child:nth-last-child(odd) { display: flex; }
	.aoe-grid > .aoe-card:first-child:nth-last-child(odd) .aoe-card__title { font-size: 22px; }
}
.aoe-grid .aoe-card__title { font-size: 22px; }
.aoe-grid--tight { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

.aoe-card { display: flex; flex-direction: column; gap: 12px; }
.aoe-card__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--aoe-muted); }
.aoe-card__cat { font-weight: 700; color: var(--aoe-brand); }
.aoe-card__meta .aoe-comments-count { margin-left: auto; }
.aoe-card__title { margin: 0; font-size: 20px; line-height: 1.22; font-weight: 700; letter-spacing: -.01em; }
.aoe-card__title a::after { content: ""; }
.aoe-card--sponsored { background: #fff; border-radius: 14px; padding: 14px; }
.aoe-card--sponsored .aoe-media { border-radius: 10px; }
.aoe-card__sponsor { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--aoe-muted); }

.aoe-card--puff .aoe-card__title { font-size: 22px; line-height: 1.2; font-weight: 800; }
.aoe-card--puff .aoe-media { border-radius: 16px; }
.aoe-card--puff .aoe-card__meta .aoe-comments-count { margin-left: 0; }

.aoe-card--test .aoe-card__title { color: #fff; }
.aoe-card--test a { color: #fff; }
.aoe-card--test .aoe-media { background: var(--aoe-dark-2); }
.aoe-card--test .aoe-chip { background: var(--aoe-dark-2); color: #e2e8f0; }
.aoe-card--test .aoe-comments-count { color: var(--aoe-on-dark); margin-left: auto; }

/* ---------- Startsida ---------- */
/* Toppen följer samma tre kolumner som nyhetsflödet: huvudnyheten tar två, puffarna en. */
.aoe-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; align-items: start; }
.aoe-hero__lead { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.aoe-hero__lead .aoe-card__meta .aoe-comments-count { margin-left: 0; }
.aoe-hero__title {
	margin: 0;
	font-size: clamp(34px, 4.6vw, 60px);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -.03em;
}
.aoe-hero__side { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 960px) {
	.aoe-hero__lead { grid-column: 1 / -1; }
	.aoe-hero__side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 600px) {
	.aoe-hero { grid-template-columns: minmax(0, 1fr); }
	.aoe-hero__side { grid-template-columns: minmax(0, 1fr); }
}

.aoe-stats {
	margin-top: 32px;
	background: var(--aoe-ink);
	color: #fff;
	border-radius: var(--aoe-radius);
	padding: 24px 28px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px 32px;
	align-items: center;
}
.aoe-stats__label { font-size: 15px; font-weight: 700; color: var(--aoe-brand-light); text-transform: uppercase; letter-spacing: .08em; }
.aoe-stats__label span { display: block; color: var(--aoe-on-dark); font-weight: 500; text-transform: none; letter-spacing: 0; }
.aoe-stats__value { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.aoe-stats__desc { font-size: 14px; color: var(--aoe-on-dark); }
.aoe-stats a { justify-self: start; }

.aoe-news { margin-top: 56px; }
.aoe-more { display: flex; justify-content: center; margin-top: 36px; }

.aoe-band { margin-top: 72px; background: var(--aoe-ink); color: #fff; }
.aoe-band .aoe-wrap { padding-top: 56px; padding-bottom: 56px; }

.aoe-tools { margin-top: 72px; }
.aoe-tools__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.aoe-tool {
	background: #fff;
	border-radius: 16px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 120px;
}
.aoe-tool__n { font-family: var(--aoe-mono); font-size: 12px; color: var(--aoe-muted); }
.aoe-tool__title { font-size: 20px; font-weight: 700; }
.aoe-tool__desc { font-size: 15px; line-height: 1.4; color: var(--aoe-muted-2); }

.aoe-split { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 24px; }
.aoe-split__main { flex: 999 1 520px; min-width: 0; }
.aoe-split__side { flex: 1 1 320px; min-width: 0; align-self: flex-start; }

.aoe-panel { background: #fff; border-radius: var(--aoe-radius); padding: 32px; }
.aoe-panel--sm { border-radius: 18px; padding: 22px; }

.aoe-newsletter {
	background: var(--aoe-brand);
	color: #fff;
	border-radius: var(--aoe-radius);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.aoe-newsletter h2 { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.aoe-newsletter p { margin: 0; color: #e2e8f0; }
.aoe-newsletter a:not(.aoe-btn) { color: #fff; text-decoration: underline; }
.aoe-newsletter input[type="email"], .aoe-newsletter input[type="text"] {
	height: 48px; border-radius: 12px; border: 0; padding: 0 14px;
	font-family: inherit; font-size: 15px; background: #fff; color: var(--aoe-ink);
	width: 100%;
}
.aoe-newsletter button, .aoe-newsletter input[type="submit"] {
	min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0;
	background: var(--aoe-ink); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}

.aoe-support {
	margin-top: 24px;
	border: 1.5px dashed var(--aoe-dash);
	border-radius: var(--aoe-radius);
	padding: 28px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.aoe-support h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.aoe-support p { margin: 0; color: var(--aoe-muted-2); }
.aoe-support__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Senaste kommentarerna ---------- */
.aoe-recent-comments { list-style: none; margin: 0; padding: 0; }
.aoe-recent-comments li { border-top: 1px solid var(--aoe-line); }
.aoe-recent-comments a { display: flex; gap: 14px; padding: 16px 0; }
.aoe-avatar {
	flex: none;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--aoe-chip);
	color: var(--aoe-brand);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
	overflow: hidden;
}
.aoe-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aoe-recent-comments__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aoe-recent-comments__who { font-size: 14px; color: var(--aoe-muted); }
.aoe-recent-comments__who strong { color: var(--aoe-ink); }
.aoe-recent-comments__text { font-family: var(--aoe-serif); font-size: 17px; line-height: 1.45; color: var(--aoe-ink); overflow-wrap: anywhere; }
.aoe-recent-comments__post { font-size: 14px; font-weight: 600; color: var(--aoe-brand); }
.aoe-sidebar .aoe-recent-comments .aoe-avatar { width: 32px; height: 32px; font-size: 12px; }
.aoe-sidebar .aoe-recent-comments__text { font-size: 15px; }
.aoe-sidebar .aoe-recent-comments a { gap: 12px; padding: 14px 0; }

/* ---------- Sidfot ---------- */
.aoe-footer { margin-top: 80px; background: var(--aoe-ink); color: var(--aoe-on-dark); }
.aoe-footer a { color: var(--aoe-on-dark); }
.aoe-footer a:hover { color: #fff; }
.aoe-footer__inner { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 48px; padding-bottom: 32px; }
.aoe-footer__about { flex: 1 1 320px; }
.aoe-footer__name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: 14px; }
.aoe-footer__about p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 380px; }
.aoe-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.aoe-footer__bottom { border-top: 1px solid var(--aoe-dark-2); padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: var(--aoe-on-dark-muted); }

/* ---------- Artikel ---------- */
.aoe-article { padding-top: 40px; }
.aoe-article__head { max-width: 860px; }
.aoe-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--aoe-muted); margin-bottom: 18px; }
.aoe-crumbs a { color: var(--aoe-muted); }
.aoe-crumbs a:last-child, .aoe-crumbs .breadcrumb_last { color: var(--aoe-brand); font-weight: 700; }
.aoe-article__title {
	margin: 0 0 28px;
	font-size: clamp(34px, 4.4vw, 56px);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -.03em;
}
.aoe-figure { margin: 0 0 28px; }
.aoe-figure figcaption, .aoe-caption { font-size: 13px; color: var(--aoe-muted); margin-top: 10px; }
.aoe-lead {
	margin: 0 0 24px;
	font-family: var(--aoe-serif);
	font-size: 22px;
	line-height: 1.45;
	color: var(--aoe-ink-3);
}
.aoe-lead p { margin: 0; }
.aoe-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	padding: 16px 0;
	border-top: 1px solid #dce1e8;
	border-bottom: 1px solid #dce1e8;
}
.aoe-byline__author { display: flex; align-items: center; gap: 12px; }
.aoe-byline__author .aoe-avatar { width: 44px; height: 44px; background: var(--aoe-brand); color: #fff; font-size: 16px; }
.aoe-byline__name { font-size: 15px; font-weight: 700; }
.aoe-byline__date { font-size: 13px; color: var(--aoe-muted); }
.aoe-byline__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.aoe-byline__actions .aoe-comments-count { color: inherit; font-size: inherit; }

.aoe-layout { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 40px; }
.aoe-layout__main { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.aoe-sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.aoe-sidebar .widget { background: #fff; border-radius: 18px; padding: 22px; }
.aoe-sidebar .widget-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.aoe-sidebar .aoe-ad { margin: 0; }
.aoe-sidebar .aoe-ad .widget { background: transparent; padding: 0; }

.aoe-latest-list { list-style: none; margin: 0; padding: 0; }
.aoe-latest-list li { border-top: 1px solid var(--aoe-line); }
.aoe-latest-list a { display: flex; gap: 14px; padding: 14px 0; }
.aoe-latest-list time { flex: none; font-family: var(--aoe-mono); font-size: 12px; color: var(--aoe-muted); padding-top: 3px; }
.aoe-latest-list__body { display: flex; flex-direction: column; gap: 5px; }
.aoe-latest-list__title { font-size: 16px; line-height: 1.3; font-weight: 600; }

/* Brödtext */
.aoe-content {
	font-family: var(--aoe-serif);
	font-size: 19px;
	line-height: 1.65;
	color: var(--aoe-ink-2);
}
.aoe-content > * { margin-top: 0; margin-bottom: 22px; }
.aoe-content h2, .aoe-content h3, .aoe-content h4 {
	font-family: var(--aoe-sans);
	color: var(--aoe-ink);
	letter-spacing: -.02em;
	line-height: 1.15;
}
.aoe-content h2 { font-size: 30px; font-weight: 800; margin-top: 40px; margin-bottom: 16px; }
.aoe-content h3 { font-size: 23px; font-weight: 700; margin-top: 32px; margin-bottom: 12px; }
.aoe-content a { color: var(--aoe-brand); text-decoration: underline; text-underline-offset: 2px; }
.aoe-content a:hover { color: var(--aoe-brand-hover); }
.aoe-content img { border-radius: 16px; }
.aoe-content figure { margin-left: 0; margin-right: 0; }
.aoe-content figcaption { font-family: var(--aoe-sans); font-size: 13px; color: var(--aoe-muted); margin-top: 8px; }
.aoe-content blockquote,
.aoe-content .wp-block-pullquote {
	margin: 32px 0;
	padding: 4px 0 4px 24px;
	border: 0;
	border-left: 4px solid var(--aoe-brand);
	font-family: var(--aoe-sans);
	font-size: 26px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--aoe-ink);
	text-align: left;
}
.aoe-content blockquote p { margin: 0; }
.aoe-content blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; font-style: normal; color: var(--aoe-muted); }
.aoe-content ul, .aoe-content ol { padding-left: 1.3em; }
.aoe-content li { margin-bottom: 6px; }
.aoe-content .wp-block-embed, .aoe-content iframe { border-radius: 16px; overflow: hidden; }
.aoe-content .wp-block-embed__wrapper { position: relative; }
.aoe-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.aoe-content .wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.aoe-content table { width: 100%; border-collapse: collapse; font-family: var(--aoe-sans); font-size: 15px; }
.aoe-content th, .aoe-content td { padding: 12px; border-bottom: 1px solid var(--aoe-line); text-align: left; vertical-align: top; }
.aoe-content thead th { border-bottom: 2px solid var(--aoe-ink); font-weight: 800; }
.aoe-content .wp-block-table { overflow-x: auto; }

/* Faktaruta (mönster) */
.aoe-content .aoe-factbox {
	background: var(--aoe-ink);
	color: #fff;
	border-radius: 18px;
	padding: 24px 26px;
	font-family: var(--aoe-sans);
	margin-bottom: 36px;
}
.aoe-content .aoe-factbox h2, .aoe-content .aoe-factbox h3 { color: #fff; font-size: 20px; margin: 0 0 16px; letter-spacing: 0; }
.aoe-content .aoe-factbox dl, .aoe-content .aoe-factbox .aoe-factbox__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 18px 24px;
	margin: 0;
}
.aoe-content .aoe-factbox table { color: #fff; font-size: 15px; }
.aoe-content .aoe-factbox td, .aoe-content .aoe-factbox th { border-color: var(--aoe-dark-line); }
.aoe-content .aoe-factbox td:first-child { color: var(--aoe-on-dark-muted); }
.aoe-content .aoe-factbox td:last-child { font-family: var(--aoe-mono); }
.aoe-content .aoe-factbox p { margin: 12px 0 0; font-size: 13px; color: var(--aoe-on-dark-muted); }

/* Plus/minus (mönster) */
.aoe-content .aoe-proscons {
	background: #fff;
	border-radius: var(--aoe-radius);
	padding: 24px 28px;
	font-family: var(--aoe-sans);
	gap: 24px 40px;
}
.aoe-content .aoe-proscons h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.aoe-content .aoe-proscons .aoe-plus h3 { color: var(--aoe-plus); }
.aoe-content .aoe-proscons .aoe-minus h3 { color: var(--aoe-minus); }
.aoe-content .aoe-proscons ul { margin: 0; font-size: 16px; line-height: 1.6; }

/* Specifikationstabell (tabellstil) */
.aoe-content .wp-block-table.is-style-aoe-specs {
	background: #fff;
	border-radius: var(--aoe-radius);
	padding: 20px 24px;
}
.aoe-content .is-style-aoe-specs td:not(:first-child) { font-family: var(--aoe-mono); font-size: 14px; }
.aoe-content .is-style-aoe-specs td:first-child { font-weight: 600; color: var(--aoe-muted-2); }
.aoe-content .is-style-aoe-specs figcaption { text-align: left; }

/* Omdöme (mönster) */
.aoe-content .aoe-verdict {
	background: var(--aoe-ink);
	color: #fff;
	border-radius: var(--aoe-radius);
	padding: 28px;
}
.aoe-content .aoe-verdict h2 { color: #fff; font-size: 28px; margin: 0 0 12px; }
.aoe-content .aoe-verdict p { color: #d3dae4; font-size: 18px; margin: 0; }
.aoe-content .aoe-verdict .aoe-eyebrow { color: var(--aoe-brand-light); font-family: var(--aoe-sans); font-size: 13px; margin-bottom: 10px; }

/* Taggar, författare */
.aoe-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; }
.aoe-tags__label { font-size: 14px; color: var(--aoe-muted); margin-right: 4px; }
.aoe-tags a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--aoe-line-2); font-size: 14px; font-weight: 600; }
.aoe-author {
	margin-top: 32px;
	background: #fff;
	border-radius: 18px;
	padding: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}
.aoe-author .aoe-avatar { width: 64px; height: 64px; background: var(--aoe-brand); color: #fff; font-size: 22px; }
.aoe-author__body { flex: 1 1 300px; }
.aoe-author__name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.aoe-author__bio { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--aoe-muted-2); }

/* Kommentarer */
.aoe-comments { margin-top: 48px; }
.aoe-comments__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--aoe-ink);
	margin-bottom: 20px;
}
.aoe-comments__head h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.aoe-comments__head h2 .aoe-comments-count { font-size: inherit; color: var(--aoe-brand); }
.aoe-comments__note { font-size: 13px; color: var(--aoe-muted); margin-top: 16px; }

.aoe-related { margin-top: 72px; }

/* ---------- Provkörning ---------- */
.aoe-test-hero { background: var(--aoe-ink); color: #fff; }
.aoe-test-hero .aoe-wrap { padding-top: 48px; }
.aoe-test-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.aoe-test-hero__badges .aoe-badge--outline { background: transparent; border: 1px solid var(--aoe-dark-line); color: var(--aoe-on-dark); }
.aoe-test-hero__title {
	margin: 0 0 20px;
	max-width: 980px;
	font-size: clamp(36px, 5vw, 68px);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -.035em;
}
.aoe-test-hero .aoe-lead { color: #d3dae4; font-size: 21px; max-width: 780px; margin-bottom: 28px; }
.aoe-test-hero .aoe-byline { border: 0; padding: 0 0 36px; }
.aoe-test-hero .aoe-byline__author .aoe-avatar { background: #fff; color: var(--aoe-ink); }
.aoe-test-hero .aoe-byline__date { color: var(--aoe-on-dark-muted); }
.aoe-test-hero .aoe-btn--outline { background: transparent; color: #fff; border-color: var(--aoe-dark-line); }
.aoe-test-hero .aoe-btn--outline .aoe-comments-count { color: #fff; }
.aoe-test-hero__media { aspect-ratio: 21 / 9; border-radius: var(--aoe-radius) var(--aoe-radius) 0 0; background: var(--aoe-dark-2); overflow: hidden; }
.aoe-test-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aoe-test-hero + .aoe-wrap .aoe-test-summary {
	background: #fff;
	border-radius: 0 0 var(--aoe-radius) var(--aoe-radius);
	padding: 28px;
}
.aoe-test-summary p { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 700; }

/* ---------- Arkiv / testarkiv ---------- */
.aoe-archive-hero { background: var(--aoe-ink); color: #fff; }
.aoe-archive-hero .aoe-wrap {
	padding-top: 56px;
	padding-bottom: 56px;
	display: flex;
	flex-wrap: wrap;
	gap: 24px 64px;
	align-items: flex-end;
}
.aoe-archive-hero__title-wrap { flex: 999 1 520px; }
.aoe-archive-hero h1 {
	margin: 0;
	font-size: clamp(40px, 5.4vw, 72px);
	line-height: .98;
	font-weight: 800;
	letter-spacing: -.035em;
}
.aoe-archive-hero__desc { flex: 1 1 320px; margin: 0; font-family: var(--aoe-serif); font-size: 19px; line-height: 1.5; color: #d3dae4; }
.aoe-archive-hero__desc p { margin: 0; }
.aoe-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 28px; }

.aoe-feature {
	display: flex;
	flex-wrap: wrap;
	background: #fff;
	border-radius: var(--aoe-radius);
	overflow: hidden;
	margin-bottom: 40px;
}
.aoe-feature .aoe-media { flex: 999 1 520px; min-height: 320px; border-radius: 0; }
.aoe-feature__body { flex: 1 1 340px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.aoe-feature__title { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }

.aoe-pagination { margin-top: 48px; }
.aoe-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.aoe-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 22px; background: #fff; border: 1px solid var(--aoe-line-2);
	font-weight: 700;
}
.aoe-pagination .page-numbers.current { background: var(--aoe-ink); color: #fff; border-color: var(--aoe-ink); }
.aoe-pagination .page-numbers.dots { background: transparent; border: 0; }

/* ---------- Kunskapsbank ---------- */
.aoe-kb-hero { background: var(--aoe-brand); color: #fff; }
.aoe-kb-hero .aoe-wrap { padding-top: 56px; padding-bottom: 60px; }
.aoe-kb-hero .aoe-eyebrow { color: #b9cdeb; }
.aoe-kb-hero h1 {
	margin: 0 0 14px;
	max-width: 820px;
	font-size: clamp(38px, 5vw, 64px);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -.035em;
}
.aoe-kb-hero__intro { margin: 0 0 28px; max-width: 640px; font-family: var(--aoe-serif); font-size: 19px; line-height: 1.5; color: #e2e8f0; }
.aoe-kb-hero .aoe-searchform input[type="search"] { height: 56px; border: 0; font-size: 17px; }
.aoe-kb-hero .aoe-searchform .aoe-btn { min-height: 56px; border-radius: 16px; }

.aoe-kb-content { margin-top: 56px; }
.aoe-kb-content .aoe-kb-card {
	background: #fff;
	border-radius: var(--aoe-radius);
	padding: 28px;
	font-family: var(--aoe-sans);
}
.aoe-kb-content .aoe-kb-card h2 { margin: 0 0 8px; font-size: 28px; }
.aoe-kb-content .aoe-kb-card p { font-size: 15px; line-height: 1.5; color: var(--aoe-muted-2); margin: 0 0 16px; }
.aoe-kb-content .aoe-kb-card ul { list-style: none; padding: 0; margin: 0; }
.aoe-kb-content .aoe-kb-card li { border-top: 1px solid var(--aoe-line); margin: 0; }
.aoe-kb-content .aoe-kb-card li a {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 13px 0; font-size: 16px; font-weight: 600;
	color: var(--aoe-ink); text-decoration: none;
}
.aoe-kb-content .aoe-kb-card li a::after { content: "→"; color: var(--aoe-brand); }
.aoe-kb-content .wp-block-columns { gap: 24px; }

/* ---------- Sida, sök, 404 ---------- */
.aoe-page { padding-top: 40px; }
.aoe-page__title { margin: 0 0 24px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.aoe-page .aoe-content { max-width: 860px; }
.aoe-page--wide .aoe-content { max-width: none; }
.aoe-empty { padding: 48px 0; }

/* WordPress-standardklasser */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 13px; color: var(--aoe-muted); }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

/* Contact Form 7 */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="url"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	width: 100%;
	border-radius: 12px;
	border: 1px solid var(--aoe-line-2);
	padding: 12px 14px;
	font-family: inherit;
	font-size: 16px;
	background: #fff;
	color: var(--aoe-ink);
}
.wpcf7 input[type="submit"] {
	min-height: 48px; padding: 0 24px; border: 0; border-radius: 24px;
	background: var(--aoe-brand); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}

/* wpDataTables: följ temats typsnitt och färger */
.wpDataTablesWrapper, .wpDataTablesWrapper table.wpDataTable { font-family: var(--aoe-sans) !important; }
.wpDataTablesWrapper table.wpDataTable thead th { background: var(--aoe-ink) !important; color: #fff !important; }

@media (max-width: 640px) {
	:root { --aoe-gutter: 16px; }
	.aoe-h2 { font-size: 30px; }
	.aoe-panel, .aoe-newsletter { padding: 24px; }
	.aoe-content { font-size: 18px; }
	.aoe-lead { font-size: 20px; }
	.aoe-byline__actions { margin-left: 0; }
	.alignleft, .alignright { float: none; margin: 0 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}

/* WordPress egna kommentarer (om Disqus är avstängt) */
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	width: 100%;
	max-width: 100%;
	border-radius: 12px;
	border: 1px solid var(--aoe-line-2);
	padding: 12px 14px;
	font-family: inherit;
	font-size: 16px;
	background: #fff;
}
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.comment-form .comment-form-cookies-consent label { display: inline; }

/* Mobilmeny */
.aoe-menu-toggle { display: none; }
.aoe-test-hero .aoe-byline__name a { color: #fff; }
@media (max-width: 900px) {
	.aoe-header__inner { flex-wrap: wrap; }
	.aoe-logo img { height: 40px; }
	.aoe-header__actions { margin-left: auto; }
	.aoe-menu-toggle { display: inline-flex; }
	.aoe-nav { display: none; order: 3; flex: 1 1 100%; padding-bottom: 8px; }
	.aoe-nav.is-open { display: block; }
	.aoe-nav ul { flex-direction: column; gap: 0; }
	.aoe-nav li { border-top: 1px solid var(--aoe-line); }
	.aoe-nav a { padding: 12px 0; border-bottom: 0; }
	.aoe-nav .current-menu-item > a { border-bottom: 0; color: var(--aoe-brand); }
	.aoe-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 8px 16px; min-width: 0; }
	.aoe-nav .sub-menu li { border: 0; }
	.aoe-nav .sub-menu a { padding: 8px 0; }
}
@media (max-width: 480px) {
	.aoe-btn--newsletter { display: none; }
}

/* Kommentarer: förhandsvisning (Disqus) */
.aoe-js [data-aoe-collapsed] { display: none; }
.aoe-comments__sort { font-size: 13px; font-weight: 600; color: var(--aoe-muted); }
.aoe-comments__compose {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 18px;
	margin-bottom: 8px;
	border: 0;
	border-radius: 16px;
	background: #fff;
	font-family: inherit;
	text-align: left;
	cursor: text;
}
.aoe-comments__compose .aoe-avatar { color: var(--aoe-muted); }
.aoe-comments__compose-field {
	flex: 1;
	min-height: 52px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	border: 1px solid var(--aoe-line-2);
	border-radius: 12px;
	background: #f8fafc;
	font-family: var(--aoe-serif);
	font-size: 16px;
	color: var(--aoe-muted);
}
.aoe-comments__compose:hover .aoe-comments__compose-field { border-color: var(--aoe-brand); }
.aoe-cmt { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--aoe-line); }
.aoe-cmt--reply { padding: 14px 0 6px 16px; border-bottom: 0; border-left: 2px solid var(--aoe-line-2); gap: 12px; }
.aoe-cmt__avatar { width: 40px; height: 40px; font-size: 14px; background: #4c6a92; color: #fff; }
.aoe-cmt--reply .aoe-cmt__avatar { width: 32px; height: 32px; font-size: 12px; }
.aoe-cmt__avatar.is-staff { background: var(--aoe-brand); }
.aoe-cmt__body { flex: 1; min-width: 0; }
.aoe-cmt__who { font-size: 14px; color: var(--aoe-muted); }
.aoe-cmt__who strong { color: var(--aoe-ink); }
.aoe-cmt__badge {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--aoe-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	vertical-align: 1px;
}
.aoe-cmt__text { margin-top: 6px; font-family: var(--aoe-serif); font-size: 17px; line-height: 1.55; color: var(--aoe-ink-2); overflow-wrap: anywhere; }
.aoe-cmt--reply .aoe-cmt__text { font-size: 16px; }
.aoe-cmt__text p { margin: 0 0 8px; }
.aoe-cmt__likes { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--aoe-muted-2); }
.aoe-cmt__replies { margin-top: 12px; }
.aoe-comments__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.aoe-comments__note { font-size: 13px; color: var(--aoe-muted); }

/* Fler nyheter */
.aoe-more-grid { margin-top: 32px; }

/* Felsökning (bara administratörer) */
.aoe-debug {
	margin-bottom: 20px;
	padding: 16px 18px;
	border: 1.5px dashed var(--aoe-minus);
	border-radius: 12px;
	background: #fff7f4;
	font-size: 14px;
	line-height: 1.5;
	color: var(--aoe-ink);
}
.aoe-debug p { margin: 8px 0; }
.aoe-debug ul { margin: 0; padding-left: 18px; }
.aoe-debug code { font-family: var(--aoe-mono); font-size: 12px; overflow-wrap: anywhere; }

/* Sponsrat innehåll */
.aoe-sponsor-label {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 12px;
	border-radius: 6px;
	background: #f3e7c9;
	color: #5a4300;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.aoe-sponsor-note {
	margin: 32px 0 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: #f3e7c9;
	color: #5a4300;
	font-size: 15px;
	line-height: 1.5;
}
.single .category-annons .aoe-byline { justify-content: space-between; }
