/* ============================================================
   PSYKPATIENT — main.css
   ============================================================
   Organisering:
     1. CSS-variabler (light + dark theme)
     2. Reset & bas
     3. Typografi
     4. Layout (topbar, masthead, nav)
     5. Innehållszoner (hero, grid, single, archive)
     6. Sidebar & widgets
     7. Arkiv-träd (drill-down)
     8. Ämnen-sida
     9. Paginering & formulär
    10. Footer
    11. 404 & utility
    12. Responsiv
   ============================================================ */


/* 1. ─────── VARIABLER ─────── */
:root {
	--bg:          #f4f0e8;
	--bg-elev:     #ede7db;
	--bg-raise:    #ffffff;
	--ink:         #1a1715;
	--ink-soft:    #4a433d;
	--ink-faint:   #7a6f65;
	--rule:        #d4ccbc;
	--rule-soft:   #e3dccb;
	--accent:      #8c2318;
	--accent-hover:#6f1c13;
	--accent-soft: #f2e3df;
	--tag-bg:      #e5dcc9;

	/* Kategori-badges — färger per typ */
	--cat-artikel: #8c2318;
	--cat-bidrag:  #2c5f7f;
	--cat-nyheter: #a86826;
	--cat-default: #4a433d;

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--maxw: 1280px;
	--gutter: 32px;

	--radius: 2px;

	--shadow-soft: 0 1px 2px rgba(26, 23, 21, 0.04), 0 2px 8px rgba(26, 23, 21, 0.04);
}

html[data-theme="dark"] {
	--bg:          #14120f;
	--bg-elev:     #1e1b17;
	--bg-raise:    #1a1714;
	--ink:         #f0ece3;
	--ink-soft:    #c4beb2;
	--ink-faint:   #8a8377;
	--rule:        #2e2a24;
	--rule-soft:   #262320;
	--accent:      #d4573f;
	--accent-hover:#e76a53;
	--accent-soft: #2a201c;
	--tag-bg:      #2a251e;

	--cat-artikel: #d4573f;
	--cat-bidrag:  #5b9fc4;
	--cat-nyheter: #d49a4f;
	--cat-default: #7a7265;
}


/* 2. ─────── RESET & BAS ─────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color 0.25s ease, color 0.25s ease;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0;
	margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; top: -40px; left: 0;
	background: var(--ink); color: var(--bg);
	padding: 8px 16px; z-index: 9999;
	font-size: 14px;
}
.skip-link:focus { top: 0; color: var(--bg); }


/* 3. ─────── TYPOGRAFI ─────── */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.15;
	margin: 0 0 0.5em;
	color: var(--ink);
}
p { margin: 0 0 1em; }
strong { font-weight: 600; }
em { font-style: italic; }

blockquote {
	margin: 1.8em 0;
	padding: 0 0 0 24px;
	border-left: 3px solid var(--accent);
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.1em;
	color: var(--ink-soft);
}

code, pre {
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.9em;
}
code { background: var(--bg-elev); padding: 2px 6px; border-radius: 2px; }
pre {
	background: var(--bg-elev);
	padding: 16px;
	overflow-x: auto;
	border-radius: 2px;
	border: 1px solid var(--rule);
}
pre code { background: none; padding: 0; }

hr {
	border: none;
	border-top: 1px solid var(--rule);
	margin: 2em 0;
}


/* 4. ─────── TOPBAR ─────── */
.topbar {
	border-bottom: 1px solid var(--rule);
	background: var(--bg);
	position: sticky; top: 0; z-index: 100;
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
}
.topbar-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 14px var(--gutter);
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px;
	font-size: 13px;
}
.topbar-date {
	font-family: var(--serif);
	font-style: italic;
	color: var(--ink-faint);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.topbar-right {
	display: flex; gap: 20px; align-items: center;
}
.topbar-links {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 18px;
}
.topbar-links a { color: var(--ink-soft); }
.topbar-links a:hover { color: var(--accent); }

.theme-toggle {
	background: transparent;
	border: 1px solid var(--rule);
	color: var(--ink);
	padding: 6px 12px;
	font-size: 12px;
	font-family: var(--sans);
	letter-spacing: 0.5px;
	border-radius: var(--radius);
	display: inline-flex; align-items: center; gap: 6px;
	transition: border-color 0.15s, background 0.15s;
}
.theme-toggle:hover {
	border-color: var(--ink);
	background: var(--bg-elev);
}
.theme-toggle-label {
	font-size: 12px;
}


/* ─────── MASTHEAD ─────── */
.masthead {
	text-align: center;
	padding: 48px var(--gutter) 32px;
	max-width: var(--maxw);
	margin: 0 auto;
	border-bottom: 3px double var(--rule);
}
.logo-link { display: block; color: inherit; }
.logo-link:hover { color: inherit; }
.logo {
	font-family: var(--serif);
	font-weight: 800;
	font-size: clamp(44px, 8vw, 96px);
	letter-spacing: -0.03em;
	line-height: 0.95;
	margin: 0 0 16px;
	color: var(--ink);
}
.logo .dot { color: var(--accent); }
.tagline {
	font-family: var(--serif);
	font-style: italic;
	font-size: 17px;
	line-height: 1.4;
	color: var(--ink-soft);
	max-width: 620px;
	margin: 0 auto;
}


/* ─────── NAV ─────── */
.main-nav {
	border-bottom: 1px solid var(--rule);
	background: var(--bg);
}
.main-nav-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.nav-list {
	list-style: none; margin: 0; padding: 0;
	display: flex;
	gap: 28px;
	overflow-x: auto;
	padding: 18px 0;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-weight: 500;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-item { white-space: nowrap; }
.nav-item a {
	color: var(--ink);
	padding: 4px 0;
	border-bottom: 2px solid transparent;
	transition: border-color 0.15s, color 0.15s;
}
.nav-item a:hover {
	border-bottom-color: var(--accent);
	color: var(--accent);
}
.nav-item.active a,
.nav-item.current-menu-item a {
	border-bottom-color: var(--ink);
}


/* 5. ─────── HUVUDINNEHÅLL ─────── */
.site-main {
	min-height: 40vh;
}

.content-wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 48px var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
}
.content-wrap-narrow {
	max-width: 860px;
	display: block;
	grid-template-columns: none;
	gap: 0;
	padding: 48px var(--gutter);
	margin: 0 auto;
}

/* När sidebar är till vänster (t.ex. arkiv). */
.content-wrap:has(.sidebar-left) {
	grid-template-columns: 280px minmax(0, 1fr);
}
/* Fallback för browsers utan :has() */
.content-wrap .sidebar-left + .content-main {
	/* Tomt — :has() fixar det. Fallback nedan via media. */
}

.content-main { min-width: 0; }


/* ─────── HERO (startsida) ─────── */
.hero {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 48px var(--gutter);
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 48px;
}
.hero-main .kicker,
.kicker {
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 16px;
	display: inline-block;
}
.kicker a { color: var(--accent); }
.kicker a:hover { color: var(--accent-hover); }
.hero-title {
	font-family: var(--serif);
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
}
.hero-title a { color: var(--ink); }
.hero-title a:hover { color: var(--accent); }

.hero-main .post-excerpt,
.hero-main p.post-excerpt {
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.5;
	color: var(--ink-soft);
	margin: 0 0 24px;
	max-width: 680px;
}

.byline, .entry-byline {
	font-size: 13px;
	color: var(--ink-faint);
	display: flex; flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.byline .author, .entry-byline .author { color: var(--ink); font-weight: 500; }
.byline .author a, .entry-byline .author a { color: var(--ink); }
.byline .author a:hover, .entry-byline .author a:hover { color: var(--accent); }
.byline .sep, .entry-byline .sep { color: var(--ink-faint); }

.hero-side {
	border-left: 1px solid var(--rule);
	padding-left: 32px;
	display: flex; flex-direction: column; gap: 24px;
}
.hero-side h3 {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ink-faint);
	font-weight: 600;
	margin: 0 0 4px;
}
.side-item {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rule);
}
.side-item:last-child { border-bottom: none; padding-bottom: 0; }
.side-item .kicker-sm,
.kicker-sm {
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 6px;
}
.side-item h4 {
	font-family: var(--serif);
	font-size: 18px;
	line-height: 1.25;
	font-weight: 600;
	margin: 0 0 4px;
}
.side-item h4 a { color: var(--ink); }
.side-item h4 a:hover { color: var(--accent); }
.side-item .meta { font-size: 12px; color: var(--ink-faint); }


/* ─────── SECTION HEAD (mellanrubriker) ─────── */
.section-head {
	max-width: var(--maxw);
	margin: 16px auto 0;
	padding: 32px var(--gutter) 0;
	display: flex; align-items: baseline; justify-content: space-between;
	border-top: 1px solid var(--rule);
}
.section-head h2 {
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
}
.section-head .more,
.section-head a.more {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-faint);
	font-weight: 500;
}
.section-head .more:hover { color: var(--accent); }


/* ─────── GRID (kort på startsidan) ─────── */
.grid {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 32px var(--gutter) 64px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}
.card {
	display: flex; flex-direction: column;
	border-top: 2px solid var(--ink);
	padding-top: 16px;
}
.card h3 {
	font-family: var(--serif);
	font-size: 22px;
	line-height: 1.2;
	font-weight: 600;
	margin: 0 0 10px;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card .post-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0 0 14px;
}
.card .meta {
	font-size: 12px;
	color: var(--ink-faint);
	margin-top: auto;
}


/* ─────── POST-LIST (arkiv, sök, tag) ─────── */
.post-list {
	display: flex; flex-direction: column;
	gap: 40px;
	margin: 32px 0;
}
.post-list-item {
	border-top: 1px solid var(--rule);
	padding-top: 24px;
}
.post-list-item h2 {
	font-family: var(--serif);
	font-size: 28px;
	line-height: 1.15;
	margin: 0 0 10px;
}
.post-list-item h2 a { color: var(--ink); }
.post-list-item h2 a:hover { color: var(--accent); }
.post-list-item h3 {
	font-family: var(--serif);
	font-size: 22px;
	margin: 0 0 8px;
}
.post-list-item h3 a { color: var(--ink); }
.post-list-item h3 a:hover { color: var(--accent); }
.post-list-item .post-excerpt {
	color: var(--ink-soft);
	margin: 0 0 10px;
}
.post-list-item .meta {
	font-size: 13px;
	color: var(--ink-faint);
}


/* ─────── SINGLE POST ─────── */
.single-post { max-width: 100%; }
.single-post .entry-header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--rule);
}
.single-post .entry-title {
	font-family: var(--serif);
	font-size: clamp(32px, 4.5vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 16px 0 20px;
}
.single-post .entry-byline { margin-bottom: 24px; }
.entry-featured {
	margin: 24px 0 0;
	border-radius: var(--radius);
	overflow: hidden;
}
.entry-featured img { width: 100%; }
.entry-featured figcaption {
	font-size: 13px;
	color: var(--ink-faint);
	font-style: italic;
	margin-top: 8px;
	text-align: center;
}

.entry-content {
	font-size: 18px;
	line-height: 1.7;
	color: var(--ink);
}
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2 {
	font-size: 30px;
	margin: 1.8em 0 0.5em;
}
.entry-content h3 {
	font-size: 24px;
	margin: 1.5em 0 0.4em;
}
.entry-content h4 {
	font-size: 20px;
	margin: 1.3em 0 0.4em;
}
.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.entry-content a:hover {
	color: var(--accent-hover);
	text-decoration-thickness: 2px;
}
.entry-content img { margin: 1.5em 0; border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin: 0 0 1em; }
.entry-content li { margin-bottom: 0.3em; }

.entry-content-intro {
	font-size: 16px;
	color: var(--ink-soft);
	font-style: italic;
	border-bottom: 1px solid var(--rule);
	padding-bottom: 24px;
	margin-bottom: 32px;
}


/* ─────── ENTRY FOOTER (taggar + next/prev) ─────── */
.entry-footer {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 2px solid var(--ink);
}

.post-topics {
	margin-bottom: 32px;
	font-size: 14px;
}
.post-topics .topics-label {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--ink-faint);
	margin-right: 6px;
}
.topic-pill {
	display: inline-block;
	background: var(--tag-bg);
	color: var(--ink);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	margin: 2px 2px;
	transition: background 0.15s, color 0.15s;
}
.topic-pill:hover {
	background: var(--accent);
	color: var(--bg);
}
.topic-pill .topic-count {
	opacity: 0.6;
	font-size: 12px;
	margin-left: 2px;
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 32px;
}
.post-nav a {
	display: block;
	padding: 20px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	transition: border-color 0.15s, background 0.15s;
}
.post-nav a:hover {
	border-color: var(--accent);
	background: var(--bg-elev);
}
.post-nav-label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 6px;
}
.post-nav-title {
	display: block;
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
}
.post-nav-next { text-align: right; }


/* ─────── STATISKA SIDOR ─────── */
.static-page .entry-title {
	font-family: var(--serif);
	font-size: clamp(32px, 4vw, 48px);
	margin: 0 0 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--ink);
}
.static-page .entry-content {
	font-size: 17px;
}


/* ─────── ARCHIVE TITLE ─────── */
.archive-title {
	font-family: var(--serif);
	font-size: clamp(32px, 4vw, 48px);
	margin: 0 0 16px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--ink);
}
.archive-title .title-kicker {
	display: block;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
	font-family: var(--sans);
	margin-bottom: 8px;
}
.archive-title em { color: var(--accent); font-style: italic; }
.archive-desc {
	color: var(--ink-soft);
	font-size: 15px;
	margin-bottom: 16px;
}

.archive-selection {
	font-family: var(--serif);
	font-size: 26px;
	margin: 32px 0 0;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rule);
}
.archive-selection-count {
	color: var(--ink-faint);
	font-weight: 400;
	font-size: 18px;
}
.archive-prompt {
	color: var(--ink-faint);
	font-style: italic;
	font-size: 17px;
	padding: 32px 0;
}


/* ─────── TOPIC HEADER ─────── */
.topic-header {
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--ink);
}
.topic-header .kicker { margin-bottom: 12px; }
.topic-title {
	font-family: var(--serif);
	font-size: clamp(36px, 5vw, 56px);
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}
.topic-desc {
	color: var(--ink-soft);
	font-size: 16px;
	max-width: 640px;
	margin: 0 0 8px;
}
.topic-count-line {
	font-size: 13px;
	color: var(--ink-faint);
	letter-spacing: 0.05em;
}


/* 6. ─────── SIDEBAR & WIDGETS ─────── */
.sidebar {
	display: flex; flex-direction: column;
	gap: 32px;
}
.widget {
	border-top: 2px solid var(--ink);
	padding-top: 16px;
}
.widget-title {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ink);
	font-weight: 600;
	margin: 0 0 12px;
}
.recent-posts {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 14px;
}
.recent-posts li { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.recent-posts li:last-child { border-bottom: none; padding-bottom: 0; }
.recent-posts a { display: block; color: var(--ink); }
.recent-posts a:hover .recent-title { color: var(--accent); }
.recent-title {
	font-family: var(--serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	display: block;
	margin-bottom: 4px;
	transition: color 0.15s;
}
.recent-date {
	font-size: 12px;
	color: var(--ink-faint);
}
.topic-list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px;
}
.widget-more {
	display: inline-block;
	margin-top: 16px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-faint);
}
.widget-more:hover { color: var(--accent); }


/* 7. ─────── ARKIVTRÄD (drill-down) ─────── */
.archive-tree {
	list-style: none; margin: 0; padding: 0;
	font-family: var(--sans);
	font-size: 15px;
}
.archive-tree li { margin: 0; }
.archive-year > .archive-year-link {
	display: flex;
	align-items: baseline;
	padding: 8px 0;
	color: var(--ink);
	font-weight: 500;
	border-bottom: 1px solid var(--rule-soft);
}
.archive-year > .archive-year-link:hover { color: var(--accent); }
.archive-toggle {
	display: inline-block;
	width: 18px;
	color: var(--ink-faint);
	font-size: 14px;
	flex-shrink: 0;
}
.archive-year.is-open > .archive-year-link {
	color: var(--accent);
	border-bottom-color: var(--accent);
	font-weight: 600;
}
.archive-year.is-open .archive-toggle {
	color: var(--accent);
}
.archive-label { flex: 1; }
.archive-count {
	color: var(--ink-faint);
	font-size: 12px;
	margin-left: 4px;
}
.archive-months {
	list-style: none;
	margin: 4px 0 12px 24px;
	padding: 0;
	font-size: 14px;
	border-left: 1px solid var(--rule);
	padding-left: 14px;
}
.archive-months li { margin: 0; }
.archive-months a {
	display: flex;
	align-items: baseline;
	padding: 5px 0;
	color: var(--ink-soft);
}
.archive-months a:hover { color: var(--accent); }
.archive-month.is-active > a {
	color: var(--accent);
	font-weight: 600;
}
.archive-month.is-active > a::before {
	content: "●";
	margin-right: 8px;
	color: var(--accent);
	font-size: 10px;
}
.archive-empty {
	color: var(--ink-faint);
	font-style: italic;
	font-size: 14px;
}


/* 8. ─────── ÄMNEN-SIDA ─────── */
.topics-alphabet {
	display: flex; flex-wrap: wrap; gap: 4px;
	margin: 24px 0 32px;
	padding: 16px 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	position: sticky;
	top: 0;
	background: var(--bg);
	z-index: 10;
}
.topics-alphabet a {
	display: inline-block;
	min-width: 32px;
	text-align: center;
	padding: 6px 10px;
	font-family: var(--serif);
	font-weight: 600;
	font-size: 16px;
	color: var(--ink);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	transition: background 0.15s, color 0.15s;
}
.topics-alphabet a:hover {
	background: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}
.topics-group {
	margin-bottom: 40px;
	scroll-margin-top: 80px;
}
.topics-group-letter {
	font-family: var(--serif);
	font-size: 40px;
	font-weight: 600;
	color: var(--accent);
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--rule);
}
.topic-list-big {
	gap: 10px;
}
.topic-list-big .topic-pill {
	font-size: 14px;
	padding: 6px 14px;
}


/* 9. ─────── PAGINERING & FORMULÄR ─────── */
.pagination {
	margin: 48px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--rule);
}
.pagination-inner {
	display: flex; flex-wrap: wrap; gap: 6px;
	justify-content: center;
	align-items: center;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center; justify-content: center;
	min-width: 40px;
	padding: 8px 14px;
	border: 1px solid var(--rule);
	color: var(--ink);
	font-size: 14px;
	border-radius: var(--radius);
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pagination .page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}
.pagination .page-numbers.current {
	background: var(--ink);
	color: var(--bg);
	border-color: var(--ink);
}
.pagination .page-numbers.dots {
	border: none;
}


/* Sökformulär */
.search-form {
	display: flex;
	gap: 0;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-raise);
}
.search-form:focus-within {
	border-color: var(--accent);
}
.search-input {
	flex: 1;
	border: none;
	padding: 10px 14px;
	background: transparent;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 14px;
	min-width: 0;
}
.search-input:focus { outline: none; }
.search-submit {
	border: none;
	background: var(--ink);
	color: var(--bg);
	padding: 10px 18px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
}
.search-submit:hover { background: var(--accent); }

.search-form-wrap {
	margin: 24px 0 32px;
	max-width: 560px;
}
.result-count {
	font-size: 14px;
	color: var(--ink-faint);
	margin: 0 0 24px;
}

/* Kommentarsformulär — grundstilar */
.comments-area { margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--ink); }
.comments-title {
	font-family: var(--serif);
	font-size: 24px;
	margin: 0 0 24px;
}
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .comment, .comment-list .pingback {
	padding: 16px 0;
	border-bottom: 1px solid var(--rule);
}
.comment-list .children {
	list-style: none;
	margin-left: 24px;
	padding-left: 16px;
	border-left: 2px solid var(--rule);
}
.comment-author { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.comment-metadata { font-size: 12px; color: var(--ink-faint); margin-bottom: 8px; }
.comment-content { font-size: 15px; color: var(--ink-soft); }
.comment-respond { margin-top: 32px; }
.comment-reply-title { font-family: var(--serif); font-size: 22px; margin: 0 0 16px; }
.comment-form label { display: block; font-size: 13px; margin-bottom: 4px; color: var(--ink-soft); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; padding: 10px 12px;
	border: 1px solid var(--rule);
	background: var(--bg-raise);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	margin-bottom: 16px;
	border-radius: var(--radius);
}
.comment-form textarea { min-height: 120px; }
.comment-form input:focus, .comment-form textarea:focus {
	outline: none; border-color: var(--accent);
}
.comment-form .submit, .form-submit input[type="submit"] {
	background: var(--ink);
	color: var(--bg);
	border: none;
	padding: 12px 24px;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	cursor: pointer;
	border-radius: var(--radius);
}
.comment-form .submit:hover, .form-submit input[type="submit"]:hover { background: var(--accent); }


/* 10. ─────── FOOTER ─────── */
.site-footer {
	margin-top: 64px;
	background: var(--bg);
	border-top: 3px double var(--rule);
}
.footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 48px var(--gutter);
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 32px;
	font-size: 13px;
	color: var(--ink-soft);
}
.footer-inner h5 {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ink);
	font-weight: 600;
	margin: 0 0 12px;
}
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner ul li { margin-bottom: 6px; }
.footer-inner ul a { color: var(--ink-soft); }
.footer-inner ul a:hover { color: var(--accent); }

.foot-brand .logo-sm {
	font-family: var(--serif);
	font-weight: 800;
	font-size: 22px;
	margin-bottom: 8px;
	color: var(--ink);
}
.foot-brand .logo-sm .dot { color: var(--accent); }
.foot-brand-text {
	color: var(--ink-faint);
	font-size: 13px;
	line-height: 1.6;
	max-width: 320px;
	margin: 0;
}

.footer-legal {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 16px var(--gutter) 32px;
	border-top: 1px solid var(--rule);
	font-size: 12px;
	color: var(--ink-faint);
	display: flex; justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}


/* 11. ─────── 404 ─────── */
.error-404 {
	text-align: center;
	padding: 80px 0;
}
.error-code {
	font-family: var(--serif);
	font-size: clamp(100px, 18vw, 180px);
	font-weight: 800;
	color: var(--accent);
	line-height: 1;
	margin: 0 0 16px;
	letter-spacing: -0.05em;
}
.error-title {
	font-size: clamp(28px, 4vw, 40px);
	margin: 0 0 16px;
}
.error-text {
	max-width: 520px;
	margin: 0 auto 32px;
	font-size: 16px;
	color: var(--ink-soft);
}
.error-search {
	max-width: 420px;
	margin: 0 auto 32px;
}
.error-links {
	display: flex; flex-wrap: wrap; gap: 12px;
	justify-content: center;
}
.btn {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	color: var(--ink);
	font-size: 14px;
	transition: border-color 0.15s, color 0.15s;
}
.btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}


/* 12. ─────── RESPONSIV ─────── */
@media (max-width: 1024px) {
	.hero { grid-template-columns: 1fr; }
	.hero-side {
		border-left: none;
		padding-left: 0;
		border-top: 1px solid var(--rule);
		padding-top: 32px;
	}
	.grid { grid-template-columns: repeat(2, 1fr); }
	.content-wrap,
	.content-wrap:has(.sidebar-left) {
		grid-template-columns: 1fr;
	}
	.sidebar { order: 2; }
	.sidebar-left { order: 0; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	:root { --gutter: 20px; }
	.topbar-inner { font-size: 12px; flex-wrap: wrap; gap: 12px; }
	.topbar-date { order: 2; flex: 1 1 100%; text-align: center; font-size: 12px; }
	.topbar-links { gap: 12px; font-size: 12px; }
	.theme-toggle-label { display: none; }
	.masthead { padding: 32px var(--gutter) 24px; }
	.grid { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr; gap: 24px; }
	.post-nav { grid-template-columns: 1fr; }
	.entry-content { font-size: 16px; }
}

@media print {
	.topbar, .main-nav, .sidebar, .site-footer, .post-nav, .theme-toggle, .skip-link,
	.action-sidebar, .article-hero, .sidebar-article, .comments-wrap {
		display: none !important;
	}
	body { background: white; color: black; }
	.content-wrap { grid-template-columns: 1fr; }
	.article-main { box-shadow: none; background: white; padding: 0; }
}


/* ============================================================
   V1.1 ADDITIONS — tvådelat flöde, kort, artikel-hero, actions
   ============================================================ */

/* ─────── DUAL FEED (startsida) ─────── */
.dual-feed {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 48px var(--gutter);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}
.feed-column { min-width: 0; }
.feed-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 3px solid var(--ink);
	gap: 16px;
}
.feed-header h2 {
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
	line-height: 1.1;
}
.feed-header .count {
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ink-faint);
	font-weight: 500;
	white-space: nowrap;
}

/* ─────── KORT med banner + badge + avatar ─────── */
.card {
	margin-bottom: 32px;
	background: transparent;
	border-top: none;
	padding-top: 0;
}
.card-banner-link {
	display: block;
	color: inherit;
}
.card-banner {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 16px;
	background: var(--bg-elev);
}
.card-banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.card-banner-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--bg-elev) 0%, var(--rule) 100%);
}
.card:hover .card-banner-img { transform: scale(1.03); }
.card-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.5) 100%);
	pointer-events: none;
}

/* Kategori-badge */
.cat-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	z-index: 2;
	font-family: var(--sans);
}
.cat-badge.cat-artikel,
.article-hero-cat.cat-artikel { background: var(--cat-artikel); }
.cat-badge.cat-bidrag,
.article-hero-cat.cat-bidrag { background: var(--cat-bidrag); }
.cat-badge.cat-nyheter,
.article-hero-cat.cat-nyheter { background: var(--cat-nyheter); }
.cat-badge.cat-default,
.article-hero-cat.cat-default { background: var(--cat-default); }

/* Avatar på banner-bilden */
.author-avatar {
	position: absolute;
	bottom: 12px;
	left: 12px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	z-index: 2;
	overflow: hidden;
	background: var(--bg);
}
.author-avatar .author-avatar-img,
.author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.card-body { }
.card h3 {
	font-family: var(--serif);
	font-size: 22px;
	line-height: 1.2;
	font-weight: 600;
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card .post-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0 0 12px;
}
.card-meta {
	font-size: 12px;
	color: var(--ink-faint);
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.card-meta .author { color: var(--ink); font-weight: 500; }
.card-meta .sep { color: var(--ink-faint); }

/* LARGE kort — hero-storlek, första i varje kolumn */
.card-large {
	margin-bottom: 40px;
	padding-bottom: 32px;
	border-bottom: 2px solid var(--rule);
}
.card-large .card-banner {
	aspect-ratio: 16 / 9;
	margin-bottom: 20px;
}
.card-large h3 {
	font-size: 28px;
	line-height: 1.15;
	margin-bottom: 12px;
}
.card-large .post-excerpt {
	font-size: 15px;
	margin-bottom: 14px;
}
.card-large .author-avatar {
	width: 56px;
	height: 56px;
	bottom: 14px;
	left: 14px;
	border-width: 3px;
}
.card-large .cat-badge {
	padding: 7px 16px;
	font-size: 12px;
	top: 14px;
	right: 14px;
}

/* SMALL kort — kompakt, utan excerpt */
.card-small { margin-bottom: 28px; }
.card-small .card-banner { aspect-ratio: 2 / 1; margin-bottom: 12px; }
.card-small h3 { font-size: 18px; margin-bottom: 6px; }
.card-small .post-excerpt { display: none; }
.card-small .author-avatar {
	width: 34px;
	height: 34px;
	bottom: 10px;
	left: 10px;
}
.card-small .cat-badge {
	padding: 4px 10px;
	font-size: 10px;
	top: 10px;
	right: 10px;
}


/* ─────── ARTIKEL-HERO (single.php) ─────── */
.article-hero {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 32px var(--gutter) 0;
}
.article-hero-card {
	position: relative;
	aspect-ratio: 21 / 8;
	min-height: 300px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--ink);
}
.article-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.55);
}
.article-hero-bg-placeholder {
	background: linear-gradient(135deg, #2a2520 0%, #0f0c0a 100%);
}
.article-hero-cat {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	z-index: 3;
	font-family: var(--sans);
}
.article-hero-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding: 32px 48px;
	z-index: 2;
	gap: 32px;
}
.article-hero-author {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	border: 4px solid #fff;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	background: var(--bg);
}
.article-hero-author .hero-avatar-img,
.article-hero-author img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.article-hero-text {
	flex: 1;
	min-width: 0;
	color: #fff;
}
.article-hero-date {
	display: inline-block;
	font-family: var(--serif);
	font-style: italic;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 8px;
}
.article-hero-title {
	font-family: var(--serif);
	font-size: clamp(26px, 3.5vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
	margin: 0;
}


/* ─────── ARTIKEL-LAYOUT (wrap med vänstersidebar) ─────── */
.content-wrap-article {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) 280px;
	gap: 32px;
	align-items: start;
}

/* VÄNSTER — action-knappar */
.action-sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 20px;
}
.action-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 6px;
	background: var(--bg-raise);
	border: 1px solid var(--rule);
	border-radius: 8px;
	text-align: center;
	color: var(--ink);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	transition: border-color 0.15s, transform 0.15s, background 0.15s;
	cursor: pointer;
}
.action-btn:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
	color: var(--accent);
}
.action-icon {
	font-size: 26px;
	margin-bottom: 8px;
	display: block;
	line-height: 1;
}

/* MITTEN — själva artikeln som kort */
.article-main {
	background: var(--bg-raise);
	padding: 40px 48px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	min-width: 0;
}
.article-main .entry-content {
	font-size: 17px;
	line-height: 1.75;
}
.article-main .entry-content p {
	margin: 0 0 1.2em;
}

/* Audio-block (mp3 i post_content) */
.article-main figure.wp-block-audio {
	margin: 24px 0;
}
.article-main figure.wp-block-audio audio {
	width: 100%;
	max-width: 500px;
}

/* HÖGER sidebar — artikel-specifik */
.sidebar-article {
	position: sticky;
	top: 20px;
}


/* ─────── RESPONSIV ─────── */
@media (max-width: 768px) {
	.dual-feed { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1024px) {
	.content-wrap-article {
		grid-template-columns: 1fr;
	}
	.action-sidebar {
		flex-direction: row;
		position: static;
		margin-bottom: 24px;
	}
	.action-btn {
		flex: 1;
		padding: 12px 8px;
	}
	.sidebar-article {
		position: static;
	}
	.article-hero-overlay {
		padding: 24px;
		gap: 20px;
	}
	.article-hero-author {
		width: 80px;
		height: 80px;
		border-width: 3px;
	}
}

@media (max-width: 640px) {
	.dual-feed { padding: 32px var(--gutter); }
	.article-hero { padding: 20px var(--gutter) 0; }
	.article-hero-card { aspect-ratio: 16 / 10; min-height: 240px; }
	.article-hero-overlay { padding: 16px; flex-direction: column; align-items: flex-start; }
	.article-hero-author { width: 60px; height: 60px; }
	.article-main { padding: 24px 20px; }
	.feed-header h2 { font-size: 24px; }
}


/* ============================================================
   V1.2 — sökruta i nav, live-search dropdown, snyggare söksida
   ============================================================ */

/* Justera main-nav så sökrutan kan ligga till höger */
.main-nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.main-nav-inner .nav-list {
	flex: 0 1 auto;
}

/* Sökruta i nav */
.nav-search {
	position: relative;
	flex: 1 1 280px;
	max-width: 360px;
	min-width: 200px;
}
.nav-search-form {
	display: flex;
	border: 1px solid var(--rule);
	border-radius: 999px;
	overflow: hidden;
	background: var(--bg-raise);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-search-form:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.nav-search-input {
	flex: 1;
	border: none;
	padding: 8px 14px;
	background: transparent;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 13px;
	min-width: 0;
}
.nav-search-input:focus { outline: none; }
.nav-search-input::placeholder { color: var(--ink-faint); }

.nav-search-btn {
	border: none;
	background: transparent;
	color: var(--ink-faint);
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color 0.15s;
}
.nav-search-btn:hover { color: var(--accent); }
.nav-search-btn svg { display: block; }

/* Dropdown med live-resultat */
.nav-search-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: var(--bg-raise);
	border: 1px solid var(--rule);
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	z-index: 200;
	max-height: 70vh;
	overflow-y: auto;
}
.nav-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-search-item {
	border-bottom: 1px solid var(--rule-soft);
}
.nav-search-item:last-child { border-bottom: none; }
.nav-search-item a {
	display: flex;
	gap: 12px;
	padding: 12px;
	color: var(--ink);
	transition: background 0.15s;
}
.nav-search-item a:hover {
	background: var(--bg-elev);
}
.nav-search-thumb {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	border-radius: 4px;
	object-fit: cover;
	background: var(--bg-elev);
}
.nav-search-thumb-placeholder {
	background: linear-gradient(135deg, var(--bg-elev), var(--rule));
}
.nav-search-text {
	flex: 1;
	min-width: 0;
}
.nav-search-title {
	font-family: var(--serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 4px;
	color: var(--ink);
}
.nav-search-excerpt {
	font-size: 12px;
	color: var(--ink-soft);
	line-height: 1.4;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nav-search-meta {
	font-size: 11px;
	color: var(--ink-faint);
}
.nav-search-cat {
	color: var(--accent);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.nav-search-empty {
	padding: 20px;
	text-align: center;
	color: var(--ink-faint);
	font-size: 14px;
}
.nav-search-more {
	display: block;
	padding: 12px;
	text-align: center;
	background: var(--bg-elev);
	border-top: 1px solid var(--rule);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
}
.nav-search-more:hover { background: var(--accent); color: var(--bg); }


/* ─────── SÖKSIDAN ─────── */
.search-page {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 64px var(--gutter);
}
.search-hero {
	text-align: center;
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--rule);
}
.search-hero-title {
	font-family: var(--serif);
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 12px;
	line-height: 1;
}
.search-hero-sub {
	font-family: var(--serif);
	font-style: italic;
	font-size: 17px;
	color: var(--ink-soft);
	max-width: 540px;
	margin: 0 auto 32px;
}
.search-hero-form {
	display: flex;
	max-width: 640px;
	margin: 0 auto;
	border: 2px solid var(--ink);
	border-radius: 999px;
	overflow: hidden;
	background: var(--bg-raise);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.search-hero-form:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-hero-input {
	flex: 1;
	border: none;
	padding: 16px 24px;
	background: transparent;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 19px;
	min-width: 0;
}
.search-hero-input:focus { outline: none; }
.search-hero-btn {
	border: none;
	background: var(--ink);
	color: var(--bg);
	padding: 0 32px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s;
}
.search-hero-btn:hover { background: var(--accent); }

.search-hero-meta {
	margin-top: 24px;
	font-size: 14px;
	color: var(--ink-soft);
}
.search-hero-meta em {
	font-style: normal;
	font-weight: 600;
	color: var(--accent);
}

.search-results-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.search-result {
	border-top: 2px solid var(--ink);
	padding-top: 16px;
}
.search-result-link {
	display: flex;
	gap: 16px;
	color: inherit;
}
.search-result-link:hover .search-result-title { color: var(--accent); }
.search-result-thumb {
	position: relative;
	flex: 0 0 140px;
	aspect-ratio: 4/3;
	overflow: hidden;
	border-radius: 4px;
	background: var(--bg-elev);
}
.search-result-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.search-result-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--bg-elev), var(--rule));
}
.search-result-thumb .cat-badge {
	top: 8px; right: 8px;
	font-size: 9px;
	padding: 4px 8px;
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-title {
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.2;
	margin: 0 0 8px;
	transition: color 0.15s;
}
.search-result-body .post-excerpt {
	font-size: 14px;
	margin-bottom: 8px;
}
.search-result-meta {
	font-size: 12px;
	color: var(--ink-faint);
}

.search-empty {
	text-align: center;
	padding: 60px 20px;
}
.search-empty-text {
	font-family: var(--serif);
	font-size: 18px;
	color: var(--ink-soft);
	line-height: 1.6;
}

@media (max-width: 900px) {
	.nav-search { max-width: 100%; flex-basis: 100%; order: 99; }
	.search-results-grid { grid-template-columns: 1fr; }
	.search-result-link { flex-direction: column; }
	.search-result-thumb { flex-basis: auto; aspect-ratio: 16/9; }
}


/* ============================================================
   V1.2.3 — Custom page hero + animations
   ============================================================ */

.page-hero {
	margin: 0 auto;
	padding: 32px 0 24px;
	text-align: center;
	width: 100%;
}
.page-hero-title {
	font-family: var(--serif);
	font-size: clamp(48px, 7vw, 88px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 14px;
	color: var(--ink);
	text-align: center;
	opacity: 0;
	transform: translateY(20px);
	animation: pp-fade-up 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.page-hero-tagline {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(16px, 2vw, 21px);
	color: var(--ink-soft);
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
	opacity: 0;
	transform: translateY(20px);
	animation: pp-fade-up 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.page-hero-divider {
	width: 80px;
	height: 3px;
	background: var(--accent);
	margin: 24px auto 0;
	opacity: 0;
	animation: pp-fade-in 1.0s ease 0.9s forwards;
}

@keyframes pp-fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes pp-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Respektera reduced-motion-preferens */
@media (prefers-reduced-motion: reduce) {
	.page-hero-title,
	.page-hero-tagline,
	.page-hero-divider {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* ─────── ÄMNESMOLN ─────── */
.topic-cloud {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; align-items: center;
	gap: 10px 8px;
}
.topic-cloud li { margin: 0; padding: 0; list-style: none; }
.topic-cloud .topic-pill {
	display: inline-flex; align-items: baseline; gap: 6px;
	background: var(--bg-raise, #ffffff); color: var(--ink);
	border: 1px solid var(--rule); border-radius: 999px;
	text-decoration: none; line-height: 1.2;
	box-shadow: 0 1px 2px rgba(26, 23, 21, 0.05), 0 2px 6px rgba(26, 23, 21, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s, color 0.15s, border-color 0.15s;
}
.topic-cloud .topic-pill:hover {
	background: var(--accent); color: var(--bg); border-color: var(--accent);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(140, 35, 24, 0.18), 0 10px 24px rgba(140, 35, 24, 0.14);
}
.topic-cloud .topic-pill .topic-name { font-family: var(--serif); font-weight: 600; }
.topic-cloud .topic-pill .topic-count {
	font-family: var(--sans); font-size: 0.72em; opacity: 0.55;
	font-weight: 500; letter-spacing: 0.02em;
}
.topic-cloud .topic-size-1 { font-size: 13px; padding: 4px 12px; }
.topic-cloud .topic-size-2 { font-size: 15px; padding: 5px 14px; }
.topic-cloud .topic-size-3 {
	font-size: 18px; padding: 6px 16px;
	box-shadow: 0 2px 4px rgba(26, 23, 21, 0.06), 0 6px 14px rgba(26, 23, 21, 0.08);
}
.topic-cloud .topic-size-4 {
	font-size: 22px; padding: 7px 18px;
	box-shadow: 0 3px 6px rgba(26, 23, 21, 0.07), 0 10px 22px rgba(26, 23, 21, 0.10);
}
.topic-cloud .topic-size-5 {
	font-size: 28px; padding: 9px 22px; font-weight: 700;
	box-shadow: 0 4px 8px rgba(26, 23, 21, 0.08), 0 14px 30px rgba(26, 23, 21, 0.12);
}
/* ─────── ANONYMT INLÄGG-FORMULÄR ─────── */
.pp-submit-form {
	max-width: 720px;
	margin: 0 auto;
	font-family: var(--sans);
	color: var(--ink);
}

.pp-submit-form .pp-form-intro {
	text-align: center;
	padding: 40px 24px 24px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--rule-soft);
}
.pp-submit-form .pp-form-intro h2 {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(28px, 4vw, 38px);
	margin: 0 0 16px;
	color: var(--ink);
}
.pp-submit-form .pp-form-intro p {
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: 540px;
	margin: 0 auto 12px;
}
.pp-submit-form .pp-form-trust {
	display: inline-block;
	background: var(--accent-soft);
	color: var(--accent);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	margin-top: 12px;
	font-style: italic;
}

.pp-submit-form .pp-section {
	padding: 28px 4px;
	border-bottom: 1px solid var(--rule-soft);
}
.pp-submit-form .pp-section:last-child { border-bottom: none; }
.pp-submit-form .pp-section h3 {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 22px;
	margin: 0 0 8px;
	color: var(--ink);
}
.pp-submit-form .pp-section-note {
	font-size: 14px;
	color: var(--ink-faint);
	margin: 0 0 16px;
	font-style: italic;
}
.pp-submit-form .pp-section-main {
	background: var(--bg-raise);
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 1px 2px rgba(26,23,21,0.04), 0 8px 24px rgba(26,23,21,0.05);
	border-bottom: none;
	margin: 16px 0;
}

.pp-submit-form .pp-field { margin: 18px 0; }
.pp-submit-form .pp-field label,
.pp-submit-form .pp-section h3 + label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 8px;
	letter-spacing: 0.01em;
}
.pp-submit-form .pp-field input[type="text"],
.pp-submit-form .pp-field input[type="email"],
.pp-submit-form .pp-field textarea,
.pp-submit-form .pp-field input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--rule);
	border-radius: 10px;
	font-family: var(--sans);
	font-size: 16px;
	color: var(--ink);
	background: var(--bg-raise);
	transition: border-color 0.18s, box-shadow 0.18s;
}
.pp-submit-form .pp-field textarea {
	resize: vertical;
	min-height: 200px;
	line-height: 1.6;
	font-family: var(--serif);
	font-size: 17px;
}
.pp-submit-form .pp-field input:focus,
.pp-submit-form .pp-field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.pp-submit-form .pp-field input::placeholder,
.pp-submit-form .pp-field textarea::placeholder {
	color: var(--ink-faint);
	font-style: italic;
}
.pp-submit-form .pp-field small {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--ink-faint);
	line-height: 1.5;
}

.pp-submit-form .pp-radio,
.pp-submit-form .pp-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 16px;
	margin: 6px 0;
	border: 1px solid var(--rule);
	border-radius: 10px;
	background: var(--bg-raise);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	line-height: 1.5;
}
.pp-submit-form .pp-radio:hover,
.pp-submit-form .pp-checkbox:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
}
.pp-submit-form .pp-radio input,
.pp-submit-form .pp-checkbox input {
	margin: 4px 0 0 0;
	accent-color: var(--accent);
	flex-shrink: 0;
}
.pp-submit-form .pp-radio span,
.pp-submit-form .pp-checkbox span {
	font-size: 15px;
	color: var(--ink);
}
.pp-submit-form .pp-radio:has(input:checked),
.pp-submit-form .pp-checkbox:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
	box-shadow: 0 1px 2px rgba(140,35,24,0.08);
}

.pp-submit-form .pp-villkor-link {
	color: var(--accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.pp-submit-form .pp-villkor-link:hover { color: var(--accent-hover); }

.pp-submit-form .pp-section-confirm {
	margin-top: 24px;
	padding-top: 32px;
}
.pp-submit-form .pp-recaptcha-wrap {
	margin: 24px 0;
	display: flex;
	justify-content: center;
}

.pp-submit-form .pp-submit-wrap {
	display: flex;
	gap: 12px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 24px;
}
.pp-submit-form .pp-reset {
	background: transparent;
	color: var(--ink-soft);
	border: 1px solid var(--rule);
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 500;
	font-family: var(--sans);
	border-radius: 999px;
	cursor: pointer;
	letter-spacing: 0.02em;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pp-submit-form .pp-reset:hover {
	border-color: var(--ink-soft);
	color: var(--ink);
	background: var(--bg-elev);
}
.pp-submit-form .usp_submit {
	background: var(--accent);
	color: var(--bg);
	border: none;
	padding: 16px 36px;
	font-size: 17px;
	font-weight: 600;
	font-family: var(--sans);
	border-radius: 999px;
	cursor: pointer;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 12px rgba(140,35,24,0.20), 0 8px 24px rgba(140,35,24,0.12);
	transition: transform 0.15s, box-shadow 0.18s, background 0.15s;
}
.pp-submit-form .usp_submit:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(140,35,24,0.25), 0 12px 30px rgba(140,35,24,0.18);
}
.pp-submit-form .usp_submit:active { transform: translateY(0); }

@media (max-width: 640px) {
	.pp-submit-form .pp-section-main { padding: 20px; }
	.pp-submit-form .pp-form-intro { padding: 24px 16px 16px; }
}

/* ─────── MODAL (villkor) ─────── */
.pp-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: pp-modal-fade 0.18s ease;
}
.pp-modal[hidden] { display: none; }
.pp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 23, 21, 0.55);
	backdrop-filter: blur(2px);
}
.pp-modal-dialog {
	position: relative;
	background: var(--bg, #f4f0e8);
	color: var(--ink);
	max-width: 720px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.25), 0 20px 80px rgba(0,0,0,0.15);
	padding: 48px 40px 40px;
	animation: pp-modal-slide 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.pp-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: var(--ink-soft);
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 8px;
	transition: background 0.15s, color 0.15s;
}
.pp-modal-close:hover {
	background: var(--bg-elev);
	color: var(--ink);
}
.pp-modal-content { font-family: var(--sans); line-height: 1.6; }
.pp-modal-content h1 {
	font-family: var(--serif);
	font-size: 28px;
	margin: 0 0 18px;
}
.pp-modal-content h2 {
	font-family: var(--serif);
	font-size: 20px;
	margin: 26px 0 10px;
	color: var(--ink);
}
.pp-modal-content p { margin: 0 0 14px; font-size: 15px; }
.pp-modal-content ul { padding-left: 1.4em; margin: 0 0 14px; }
.pp-modal-content ul li { margin-bottom: 8px; font-size: 15px; }
.pp-modal-content a { color: var(--accent); }
.pp-modal-loading,
.pp-modal-error {
	text-align: center;
	color: var(--ink-faint);
	font-style: italic;
	padding: 40px 0;
}
.pp-modal-error { color: var(--accent); }

@keyframes pp-modal-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes pp-modal-slide {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
	.pp-modal-dialog { padding: 40px 24px 24px; }
}

body.pp-modal-open {
	overflow: hidden;
}

/* ─────── FIX: tvinga statisk sida + hero till full bredd ─────── */
.content-wrap.content-wrap-narrow {
	width: 100%;
	box-sizing: border-box;
}
.content-wrap.content-wrap-narrow > .static-page,
.content-wrap.content-wrap-narrow > .static-page > .entry-content {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	display: block;
}
.entry-content > .page-hero {
	width: 100%;
	max-width: 100%;
}
.entry-content > .page-hero > .page-hero-tagline {
	margin-left: auto;
	margin-right: auto;
}

/* ─────── Dölj default entry-title på Anonymt inlägg ─────── */
.page-id-3427 .entry-title {
	display: none;
}

/* ─────── Dölj default entry-title på Kontakta oss ─────── */
.page-id-3429 .entry-title {
	display: none;
}

/* ─────── NYA SITE-HEADERN ─────── */

.site-header {
	background: var(--bg);
	border-bottom: 1px solid var(--rule-soft);
	position: relative;
	z-index: 50;
}
.site-header-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 14px var(--gutter);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
}

/* Vänster: ikon + datum */
.site-header-left {
	display: flex;
	align-items: center;
	gap: 14px;
}
.site-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--bg);
	text-decoration: none;
	font-size: 18px;
	flex-shrink: 0;
	transition: background 0.15s, transform 0.15s;
}
.site-header-icon:hover {
	background: var(--accent-hover);
	transform: scale(1.05);
}
.site-header-icon-placeholder {
	line-height: 1;
}
.site-header-date {
	font-family: var(--serif);
	font-style: italic;
	font-size: 14px;
	color: var(--ink-faint);
	white-space: nowrap;
}

/* Mitten: navigation */
.site-header-nav {
	display: flex;
	justify-content: center;
}
.site-header-nav-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 24px;
	flex-wrap: wrap;
}
.site-header-nav-list li {
	margin: 0;
	padding: 0;
}
.site-header-nav-list a {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}
.site-header-nav-list a:hover,
.site-header-nav-list .current-menu-item a,
.site-header-nav-list .current_page_item a {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

/* Hamburger (dold på desktop) */
.site-header-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
	align-items: center;
	justify-content: center;
}
.site-header-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}

/* Höger: sök + tema */
.site-header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}
.site-header-search .nav-search-form {
	display: flex;
	align-items: center;
	background: var(--bg-raise);
	border: 1px solid var(--rule);
	border-radius: 999px;
	padding: 4px 4px 4px 14px;
	transition: border-color 0.18s, box-shadow 0.18s;
}
.site-header-search .nav-search-form:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.site-header-search .nav-search-input {
	border: none;
	outline: none;
	background: transparent;
	padding: 4px 8px;
	font-size: 14px;
	width: 140px;
	color: var(--ink);
	font-family: var(--sans);
}
.site-header-search .nav-search-input::placeholder {
	color: var(--ink-faint);
}
.site-header-search .nav-search-btn {
	background: none;
	border: none;
	padding: 4px 10px;
	cursor: pointer;
	color: var(--ink-soft);
	display: flex;
	align-items: center;
}
.site-header-search .nav-search-btn:hover {
	color: var(--accent);
}
.site-header .theme-toggle {
	background: none;
	border: 1px solid var(--rule);
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 14px;
	color: var(--ink-soft);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}
.site-header .theme-toggle:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Stor logo bara på startsidan */
.site-hero {
	text-align: center;
	padding: 48px 24px 32px;
	background: var(--bg);
}
.site-hero-link {
	text-decoration: none;
	color: inherit;
}
.site-hero-logo {
	font-family: var(--serif);
	font-weight: 800;
	font-size: clamp(48px, 7vw, 88px);
	letter-spacing: -0.03em;
	margin: 0;
	color: var(--ink);
	line-height: 1;
}
.site-hero-logo .dot {
	color: var(--accent);
}
.site-hero-tagline {
	font-family: var(--serif);
	font-style: italic;
	font-size: 17px;
	color: var(--ink-soft);
	margin: 16px 0 0;
}

/* ─────── DÖLJ GAMLA HEADER-ELEMENT ─────── */
.topbar,
.masthead,
.main-nav {
	display: none !important;
}

/* ─────── MOBIL: HAMBURGER ─────── */
@media (max-width: 900px) {
	.site-header-inner {
		grid-template-columns: auto 1fr auto;
		gap: 12px;
	}
	.site-header-date {
		display: none;
	}
	.site-header-search .nav-search-input {
		width: 90px;
	}
	.site-header-nav {
		justify-content: flex-end;
		position: relative;
	}
	.site-header-toggle {
		display: flex;
	}
	.site-header-nav-list {
		display: none;
		position: absolute;
		top: calc(100% + 14px);
		right: 0;
		background: var(--bg-raise);
		border: 1px solid var(--rule);
		border-radius: 12px;
		padding: 16px 24px;
		flex-direction: column;
		gap: 14px;
		box-shadow: 0 8px 24px rgba(0,0,0,0.10);
		min-width: 220px;
		z-index: 60;
	}
	.site-header-nav.is-open .site-header-nav-list {
		display: flex;
	}
	.site-header-nav-list a {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.site-header-search .nav-search-input {
		width: 70px;
	}
	.theme-toggle-label {
		display: none;
	}
}

/* ─────── MOBIL HAMBURGER FIX ─────── */
@media (max-width: 900px) {
	.site-header {
		position: relative;
	}
	.site-header-nav-list {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		min-width: 0;
		border-radius: 0;
		border-left: none;
		border-right: none;
		border-top: 1px solid var(--rule);
		padding: 16px 24px;
		gap: 4px;
		margin: 0;
		box-sizing: border-box;
	}
	.site-header-nav-list li {
		width: 100%;
		white-space: normal;
	}
	.site-header-nav-list a {
		display: block;
		padding: 10px 0;
		font-size: 15px;
	}
}

/* ─────── MOBIL HAMBURGER FIX v2 ─────── */
@media (max-width: 900px) {
	.site-header {
		position: relative;
	}
	.site-header-nav {
		position: static;
	}
	.site-header-nav-list {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		min-width: 0;
		border-radius: 0;
		border-left: none;
		border-right: none;
		border-top: 1px solid var(--rule);
		padding: 8px 0;
		gap: 0;
		margin: 0;
		box-sizing: border-box;
		background: var(--bg-raise);
	}
	.site-header-nav-list li {
		width: 100%;
		display: block;
		border-bottom: 1px solid var(--rule-soft);
	}
	.site-header-nav-list li:last-child {
		border-bottom: none;
	}
	.site-header-nav-list a {
		display: block;
		padding: 14px 24px;
		font-size: 15px;
		border-bottom: none;
		width: 100%;
		box-sizing: border-box;
	}
}

/* ─────── HERO-LOGO (bild) ─────── */
.site-hero-logo-img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 200px;
	margin: 0 auto;
}

@media (max-width: 640px) {
	.site-hero-logo-img {
		max-height: 140px;
	}
}

/* ─────── HERO-LOGO STORLEK ─────── */
.site-hero {
	padding: 24px 24px 16px;
}
.site-hero-logo-img {
	max-height: 320px;
	max-width: 1100px;
	width: 100%;
}
.site-hero-tagline {
	margin-top: 8px;
}

@media (max-width: 900px) {
	.site-hero-logo-img {
		max-height: 220px;
	}
}
@media (max-width: 640px) {
	.site-hero-logo-img {
		max-height: 160px;
	}
}

/* ─────── HERO-LOGO STYLING ─────── */
/* Ta bort hårda linjen mellan header och hero på startsidan */
body.home .site-header {
	border-bottom: none;
}

/* Mjuk skugga under bilden så den "sitter" på sidan */
.site-hero-logo-img {
	border-radius: 12px;
	box-shadow:
		0 2px 6px rgba(26,23,21,0.06),
		0 12px 28px rgba(26,23,21,0.10),
		0 24px 60px rgba(26,23,21,0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.site-hero-link:hover .site-hero-logo-img {
	transform: translateY(-2px);
	box-shadow:
		0 4px 8px rgba(26,23,21,0.08),
		0 16px 36px rgba(26,23,21,0.12),
		0 32px 72px rgba(26,23,21,0.10);
}

/* Litet tagline-utseende */
.site-hero-tagline {
	font-family: var(--serif);
	font-style: italic;
	font-size: 15px;
	color: var(--ink-faint);
	margin-top: 16px;
}

/* ─────── Hero-bilden ska inte röra sig vid hover ─────── */
.site-hero-link:hover .site-hero-logo-img {
	transform: none;
	box-shadow:
		0 2px 6px rgba(26,23,21,0.06),
		0 12px 28px rgba(26,23,21,0.10),
		0 24px 60px rgba(26,23,21,0.08);
}

/* ─────── HERO: trust-chip + dölj kvarvarande form-intro ─────── */
.page-hero-trust {
	display: inline-block;
	background: var(--accent-soft);
	color: var(--accent);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	margin-top: 20px;
	font-style: italic;
	opacity: 0;
	animation: pp-fade-in 1.0s ease 1.1s forwards;
}

/* Säkerhetsnät: om form-intro slinker igenom (gamla cacher etc.) — dölj den */
.pp-form-intro {
	display: none;
}

/* ─────── Tack-sidans knapp ─────── */
a.pp-thanks-home {
	display: inline-block;
	text-decoration: none;
	background: var(--accent);
	color: var(--bg);
	padding: 16px 36px;
	font-size: 17px;
	font-weight: 600;
	font-family: var(--sans);
	border-radius: 999px;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 12px rgba(140,35,24,0.20), 0 8px 24px rgba(140,35,24,0.12);
	transition: transform 0.15s, box-shadow 0.18s, background 0.15s;
}
a.pp-thanks-home:hover {
	background: var(--accent-hover);
	color: var(--bg);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(140,35,24,0.25), 0 12px 30px rgba(140,35,24,0.18);
}
a.pp-thanks-home:active {
	transform: translateY(0);
}

/* ─────── Större header-ikon utan att menyraden växer ─────── */
.site-header-icon {
	width: 56px;
	height: 56px;
	margin: -8px 0;  /* "äter" sig in i header-paddingen utan att öka radhöjd */
}
.site-header-icon-img {
	width: 56px;
	height: 56px;
}

/* ─────── Mörkare skugga under hero-logon ─────── */
.site-hero-logo-img {
	box-shadow:
		0 4px 10px rgba(26,23,21,0.18),
		0 16px 38px rgba(26,23,21,0.28),
		0 32px 80px rgba(26,23,21,0.22);
}
.site-hero-link:hover .site-hero-logo-img {
	box-shadow:
		0 4px 10px rgba(26,23,21,0.18),
		0 16px 38px rgba(26,23,21,0.28),
		0 32px 80px rgba(26,23,21,0.22);
}

/* ─────── Invertera header-ikon i dark mode ─────── */
[data-theme="dark"] .site-header-icon-img {
	filter: invert(1) hue-rotate(180deg);
}

/* ─────── FOOTER: ikon + horisontell meny med punkter ─────── */

/* Brand: ikon + text bredvid varandra */
.foot-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.foot-brand-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: block;
	flex-shrink: 0;
}
[data-theme="dark"] .foot-brand-icon {
	filter: invert(1) hue-rotate(180deg);
}
.foot-brand .logo-sm {
	margin: 0;
}

/* Foot-menyn: horisontell med punkter mellan */
.foot-menu ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: flex-end;
}
.foot-menu ul li {
	margin: 0;
	padding: 0;
}
.foot-menu ul li + li::before {
	content: "·";
	color: var(--ink-faint);
	margin: 0 12px;
	font-weight: 700;
}
.foot-menu ul a {
	color: var(--ink-soft);
	text-decoration: none;
	font-size: 13px;
	white-space: nowrap;
}
.foot-menu ul a:hover {
	color: var(--accent);
}

/* Mobil: stapla brand och meny under varandra */
@media (max-width: 700px) {
	.footer-inner {
		grid-template-columns: 1fr;
		gap: 16px;
		text-align: center;
	}
	.foot-brand {
		justify-content: center;
	}
	.foot-menu ul {
		justify-content: center;
	}
}

/* ─────── FOOTER: större ikon, meny på en rad ─────── */
.foot-brand-icon {
	width: 44px;
	height: 44px;
}
.foot-brand .logo-sm {
	font-size: 28px;
}

/* Ge meny-kolumnen mer plats så allt får plats på en rad */
.footer-inner {
	grid-template-columns: 1fr 2fr;
}

@media (max-width: 700px) {
	.footer-inner {
		grid-template-columns: 1fr;
	}
}

/* ─────── FOOTER: stor ikon + vertikal centrering inom raden ─────── */
.foot-brand-icon {
	width: 256px;
	height: 256px;
}

/* Vertikal mittenjustering för båda kolumnerna */
.footer-inner {
	align-items: center;
}
.foot-brand {
	align-items: center;
}
.foot-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.foot-menu ul {
	margin: 0;
}

/* ─────── FOOTER: ikon 128 + skugga + ta bort text ─────── */
.foot-brand-icon {
	width: 128px;
	height: 128px;
	box-shadow:
		0 4px 12px rgba(26,23,21,0.15),
		0 12px 30px rgba(26,23,21,0.10);
}
[data-theme="dark"] .foot-brand-icon {
	box-shadow:
		0 4px 12px rgba(0,0,0,0.45),
		0 12px 30px rgba(0,0,0,0.35);
}

/* Dölj text-logon i footern */
.foot-brand .logo-sm {
	display: none;
}

/* ─────── FOOTER: minska vertikal padding ─────── */
.footer-inner {
	padding-top: 24px;
	padding-bottom: 24px;
}

/* ─────── Tema-toggle: sol/måne baserat på aktivt tema ─────── */
.theme-toggle-icon-light,
.theme-toggle-icon-dark {
	font-size: 16px;
	line-height: 1;
}
[data-theme="dark"] .theme-toggle-icon-light { display: inline-block; }
[data-theme="dark"] .theme-toggle-icon-dark  { display: none; }
[data-theme="light"] .theme-toggle-icon-light { display: none; }
[data-theme="light"] .theme-toggle-icon-dark  { display: inline-block; }
