/*
Theme Name: Destruction (ds-pixel)
Theme URI: https://destruction.nu/
Author: Destruction
Description: Barntema till Twenty Twenty-Five för Destruction, en svensk sajt om retrospel och spelhistoria. Delad skärm som formspråk, Workbench-färger, pixeltypsnitt bara i rubriker och etiketter.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ds-pixel
*/

/* ---------- Grund ---------- */
:root {
	--ds-bla: #0055AA;
	--ds-bla-djup: #003C78;
	--ds-orange: #FF8800;
	--ds-vit: #FFFFFF;
	--ds-svart: #000000;
	--ds-blek: #EEF3F9;
	--ds-linje: #C9D6E6;
	--ds-dov: #3A4350;
	--ds-text: #0A0A0A;
	--ds-pixel: "Pixelify Sans", "Asap", system-ui, sans-serif;
	--ds-sans: "Asap", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ds-term: "VT323", ui-monospace, Menlo, monospace;
	--ds-focus: #000;
	--ds-gutter: clamp(1rem, 4vw, 2.5rem);
	--ds-scan: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .075) 0 1px, transparent 1px 4px);
	--ds-stairs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='12' shape-rendering='crispEdges'%3E%3Cpath fill='%230055AA' d='M0 0h8v12H0zM8 4h8v8H8zM16 8h8v4h-8zM24 4h8v8h-8z'/%3E%3C/svg%3E");
}

body {
	font-family: var(--ds-sans);
	font-weight: 400;
	color: var(--ds-text);
	background: var(--ds-vit);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
p, li, dd, td, th, figcaption, blockquote { font-weight: 400; }
strong, b { font-weight: 650; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ds-pixel); font-weight: 600; letter-spacing: 0; text-wrap: balance; }
img { image-rendering: auto; }

.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > footer, footer.wp-block-template-part { margin-block-start: 0; }
main.wp-block-group { margin-block-start: 0; padding-bottom: clamp(3rem, 7vw, 6rem); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Fokus: svart ram på ljust, vit ram på mörkt. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--ds-focus);
	outline-offset: 3px;
	border-radius: 0;
}
.ds-head, .ds-hud, .ds-footer, .ds-screen.is-p1, .ds-quad-wrap, .ds-q.is-bla, .ds-q.is-svart, .ds-topics .is-bla, .ds-topics .is-svart { --ds-focus: #fff; }
.ds-screen.is-p2, .ds-q.is-orange, .ds-q.is-vit, .ds-topics .is-orange, .ds-topics .is-vit { --ds-focus: #000; }
body.ds-ruta-orange .ds-head.is-archive, body.ds-ruta-vit .ds-head.is-archive { --ds-focus: #000; }

.ds-skip {
	position: absolute; left: 1rem; top: 1rem; z-index: 1000;
	background: var(--ds-orange); color: #000; font-family: var(--ds-pixel); font-weight: 600;
	padding: .75rem 1rem; border: 3px solid #000; text-decoration: none;
	transform: translateY(-200%);
}
.ds-skip:focus { transform: none; }

.ds-arrow { display: inline-block; vertical-align: -1px; margin-left: .3em; }
.ds-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Sidhuvud: Workbenchs vita titelrad ---------- */
.ds-header { background: var(--ds-vit); border-bottom: 4px solid #000; position: relative; z-index: 20; }
.ds-header-row { padding-block: .7rem; gap: 1.5rem; }
.ds-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ds-bla); min-height: 44px; }
.ds-brand:hover { color: var(--ds-bla-djup); }
.ds-mark { width: 38px; height: 38px; flex: none; display: block; }
.ds-brand-text { display: flex; flex-direction: column; line-height: 1; }
.ds-wordmark { font-family: var(--ds-pixel); font-weight: 700; font-size: 1.75rem; letter-spacing: .01em; }
.ds-tagline { font-size: .8125rem; color: var(--ds-dov); margin-top: .3rem; letter-spacing: .01em; }
.ds-brand.is-light { color: #fff; }
.ds-brand.is-light .ds-tagline { color: #fff; }

.ds-nav { font-family: var(--ds-pixel); font-weight: 500; font-size: 1.0625rem; }
.ds-nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .7rem; color: #000; text-decoration: none; }
.ds-nav .wp-block-navigation-item__content:hover,
.ds-nav .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content { background: var(--ds-bla); color: #fff; }
.ds-nav .current-menu-item > .wp-block-navigation-item__content,
.ds-nav [aria-current="page"] { box-shadow: inset 0 -4px 0 var(--ds-orange); }
.ds-nav .wp-block-navigation__submenu-container {
	border: 3px solid #000 !important; background: #fff !important; padding: .35rem 0; min-width: 270px !important;
}
.ds-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { width: 100%; padding: .55rem 1rem; }
.ds-nav .wp-block-navigation-submenu__toggle { min-width: 24px; min-height: 44px; }
.ds-nav .wp-block-navigation__responsive-container-open,
.ds-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: #000; }
@media (max-width: 599px) { .ds-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-flex; } }
.ds-nav .wp-block-navigation__responsive-container-open { border: 2px solid #000; }
.ds-nav-search { margin-left: .5rem; }
.ds-nav-search .wp-block-search__inside-wrapper { border: 2px solid #000 !important; padding: 0 !important; background: #fff; }
.ds-nav-search .wp-block-search__input { border: 0; font-family: var(--ds-sans); font-size: 1rem; padding: .5rem .6rem; width: 8.5rem; min-height: 40px; background: #fff; color: #000; }
.ds-nav-search .wp-block-search__button { margin: 0; border-radius: 0; border: 0; border-left: 2px solid #000; background: var(--ds-orange); color: #000; font-family: var(--ds-pixel); font-weight: 600; padding: .4rem .8rem; min-height: 40px; }
.ds-nav-search .wp-block-search__input::placeholder { color: #555E6B; }

@media (max-width: 599px) {
	.ds-nav .wp-block-navigation__responsive-container.is-menu-open { background: #fff; padding: 1.25rem var(--ds-gutter); }
	.ds-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: .25rem; }
	.ds-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.375rem; }
	.ds-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; padding-left: 1rem !important; }
	.ds-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.125rem; }
	.ds-nav-search { margin: 1rem 0 0; width: 100%; }
	.ds-nav-search .wp-block-search__input { width: 100%; }
	.ds-tagline { display: none; }
	.ds-wordmark { font-size: 1.5rem; }
	.ds-mark { width: 32px; height: 32px; }
}
@media (min-width: 600px) and (max-width: 1180px) {
	.ds-header-row { flex-wrap: wrap !important; }
	.ds-nav { width: 100%; }
	.ds-nav .wp-block-navigation__container { justify-content: flex-start; flex-wrap: wrap; }
	.ds-tagline { display: none; }
}

/* ---------- Knappar och länkar ---------- */
.ds-btn {
	display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.15rem;
	font-family: var(--ds-pixel); font-weight: 600; font-size: 1.125rem; line-height: 1.1;
	background: var(--ds-orange); color: #000; border: 3px solid #000; text-decoration: none;
	box-shadow: 4px 4px 0 #000;
}
.ds-btn:hover { background: #fff; color: #000; }
.ds-btn.is-ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 #000; }
.ds-btn.is-ghost:hover { background: #fff; color: var(--ds-bla); }
.ds-link { font-family: var(--ds-pixel); font-weight: 600; font-size: 1.125rem; color: var(--ds-bla); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ds-link:hover { color: #000; text-decoration-color: var(--ds-orange); text-decoration-thickness: 4px; }

@media (prefers-reduced-motion: no-preference) {
	.ds-btn, .ds-disk, .ds-card-img img, .ds-topics a { transition: transform .16s steps(3), box-shadow .16s steps(3), background-color .12s linear, color .12s linear; }
	.ds-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
	.ds-disk:hover, .ds-disk:focus-within { transform: translateY(-4px); }
	.ds-topics a:hover { transform: translate(-2px, -2px); }
}

/* ---------- Spelartaggar (1P, 2P …) ---------- */
.ds-p {
	position: absolute; top: 1rem; left: var(--ds-gutter);
	font-family: var(--ds-term); font-size: 1.5rem; line-height: 1; padding: .15rem .45rem .1rem;
	background: #000; color: #fff;
}
.ds-p.is-inline { position: static; display: inline-block; margin-right: .6rem; }

/* ---------- Startsidan: två skärmar ---------- */
.ds-hero-wrap { margin-block-start: 0 !important; }
.ds-hero { background: #000; }
.ds-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.ds-screen { position: relative; padding: 4.5rem var(--ds-gutter) 3.25rem; }
.ds-screen.is-p1 { background-color: var(--ds-bla); background-image: var(--ds-scan); color: #fff; }
.ds-screen.is-p2 { background: var(--ds-orange); color: #000; }
.ds-split-bar { background: #000; height: 14px; position: relative; display: flex; justify-content: center; align-items: center; gap: 6px; }
.ds-split-bar span { width: 6px; height: 6px; background: var(--ds-orange); }
.ds-split-bar span:nth-child(2) { background: #fff; }
.ds-hero-t { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.25rem); line-height: 1; margin: 0; max-width: 11ch; font-weight: 700; }
.ds-hero-sub { font-family: var(--ds-pixel); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; margin: 1.25rem 0 0; max-width: 28ch; }
.ds-hero-lede { font-size: 1.125rem; line-height: 1.65; max-width: 46ch; margin: 1.25rem 0 0; }
.ds-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; margin: 2rem 0 0; }
.ds-screen.is-p1 a:not(.ds-btn) { color: #fff; }

.ds-feature { position: relative; max-width: 560px; }
.ds-feature-k { font-family: var(--ds-pixel); font-weight: 600; font-size: 1.0625rem; margin: 0 0 1rem; }
.ds-feature-img { border: 3px solid #000; margin-bottom: 1.25rem; background: #000; }
.ds-feature-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; height: auto; }
.ds-feature-t { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.08; margin: 0; color: #000; font-weight: 700; }
.ds-feature-t a { color: #000; text-decoration: none; }
.ds-feature-t a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.ds-feature-ex { font-size: 1.125rem; margin: 1rem 0 0; max-width: 46ch; }
.ds-feature-meta { font-family: var(--ds-term); font-size: 1.375rem; margin: 1rem 0 0; }

@media (min-width: 900px) {
	.ds-hero-grid { grid-template-columns: minmax(0, 1.08fr) 14px minmax(0, 1fr); min-height: clamp(560px, 72vh, 760px); }
	.ds-screen { padding: 5.5rem clamp(2rem, 4.5vw, 4.5rem) 4rem; display: flex; flex-direction: column; justify-content: center; }
	.ds-screen.is-p1 { padding-left: max(var(--ds-gutter), calc((100vw - 1280px) / 2)); }
	.ds-screen.is-p2 { padding-right: max(var(--ds-gutter), calc((100vw - 1280px) / 2)); }
	.ds-screen.is-p1 .ds-p { left: max(var(--ds-gutter), calc((100vw - 1280px) / 2)); }
	.ds-screen.is-p2 .ds-p { left: clamp(2rem, 4.5vw, 4.5rem); }
	.ds-split-bar { height: auto; flex-direction: column; }
}

/* ---------- Sektioner ---------- */
.ds-section { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.ds-section.is-first { padding-top: clamp(2.5rem, 5vw, 4rem); }
.ds-sec-head { display: grid; gap: .75rem 3rem; margin-bottom: 2.25rem; align-items: end; }
.ds-sec-t { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.05; margin: 0; max-width: 20ch; }
.ds-sec-lede { margin: 0; max-width: 52ch; color: var(--ds-dov); font-size: 1.125rem; }
.ds-sec-head.is-light .ds-sec-t, .ds-sec-head.is-light .ds-sec-lede { color: #fff; }
.ds-sec-more { margin: 2.25rem 0 0; }
@media (min-width: 900px) { .ds-sec-head { grid-template-columns: auto 1fr; } .ds-sec-lede { justify-self: end; } }

/* ---------- Disketterna (guiderna) ---------- */
.ds-disks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ds-disk {
	position: relative; background: var(--ds-bla); padding: 0 1.1rem 1.1rem; display: flex; flex-direction: column;
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
	min-height: 360px;
}
.ds-disk-shutter { display: block; align-self: center; width: 58%; height: 92px; background: #C9D6E6; position: relative; margin-bottom: 1.1rem; }
.ds-disk-shutter span { position: absolute; right: 18%; top: 14px; width: 18%; height: 52px; background: #1D2733; }
.ds-disk-label {
	background-color: #fff;
	background-image: repeating-linear-gradient(to bottom, transparent 0 27px, #D5E0EC 27px 28px);
	background-position: 0 3.4rem;
	padding: .85rem 1rem 1rem; flex: 1; border-top: 8px solid var(--ds-orange);
}
.ds-disk-no { font-family: var(--ds-term); font-size: 1.3rem; line-height: 1; margin: 0 0 .5rem; color: var(--ds-bla); }
.ds-disk-t { font-size: 1.4rem; line-height: 1.12; margin: 0 0 .6rem; }
.ds-disk-t a { color: #000; text-decoration: none; }
.ds-disk:hover .ds-disk-t a { text-decoration: underline; text-decoration-color: var(--ds-orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ds-disk-e { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ds-dov); }
.ds-disk:focus-within { outline: 3px solid #000; outline-offset: 4px; }
.ds-disk a:focus-visible { outline: none; }

/* ---------- Fyra rutor ---------- */
.ds-quad-wrap { background: #000; padding-block: clamp(3rem, 7vw, 5.5rem); margin-block-start: clamp(3rem, 7vw, 5.5rem) !important; }
.ds-quad { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); background: #000; }
@media (min-width: 760px) { .ds-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ds-q { position: relative; padding: 4rem clamp(1.25rem, 3vw, 2.25rem) 2rem; min-height: 330px; display: flex; flex-direction: column; }
.ds-q .ds-p { left: clamp(1.25rem, 3vw, 2.25rem); }
.ds-q-t { color: inherit; font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 .6rem; line-height: 1.05; }
.ds-q-t a { color: inherit; text-decoration: none; }
.ds-q-t a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ds-q-d { margin: 0 0 1.25rem; max-width: 52ch; }
.ds-q-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 2px solid currentColor; }
.ds-q-list li { border-bottom: 1px solid currentColor; }
.ds-q-list a { display: block; padding: .6rem 0; color: inherit; text-decoration: none; font-weight: 500; }
.ds-q-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ds-q-more { margin: auto 0 0; font-family: var(--ds-pixel); font-weight: 600; }
.ds-q-more a { color: inherit; text-decoration: underline; text-underline-offset: 5px; }
.ds-q.is-bla { background-color: var(--ds-bla); background-image: var(--ds-scan); color: #fff; }
.ds-q.is-vit { background: #fff; color: #000; }
.ds-q.is-orange { background: var(--ds-orange); color: #000; }
.ds-q.is-svart { background: #000; color: #fff; box-shadow: inset 0 0 0 3px var(--ds-orange); }
.ds-q.is-vit .ds-p { background: var(--ds-bla); }
.ds-q.is-svart .ds-p { background: var(--ds-orange); color: #000; }
.ds-q.is-bla .ds-q-list li, .ds-q.is-svart .ds-q-list li { border-bottom-color: rgba(255, 255, 255, .45); }

/* ---------- Kort ---------- */
.ds-cards { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
@media (min-width: 1000px) { .ds-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds-card { position: relative; border-top: 4px solid #000; padding-top: 1rem; display: flex; flex-direction: column; }
.ds-card-img { order: -1; margin: -1px 0 1rem; border: 2px solid #000; overflow: hidden; background: #000; }
.ds-card.has-img { border-top: 0; padding-top: 0; }
.ds-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ds-card:hover .ds-card-img img { transform: scale(1.02); }
.ds-tag { display: inline-block; align-self: flex-start; font-family: var(--ds-pixel); font-weight: 600; font-size: .875rem; line-height: 1; padding: .35rem .5rem; margin: 0 0 .75rem; border: 2px solid #000; }
.ds-tag.is-bla { background: var(--ds-bla); color: #fff; border-color: var(--ds-bla); }
.ds-tag.is-vit { background: #fff; color: #000; }
.ds-tag.is-orange { background: var(--ds-orange); color: #000; }
.ds-tag.is-svart { background: #000; color: #fff; }
.ds-card-t { font-size: 1.4rem; line-height: 1.15; margin: 0 0 .6rem; }
.ds-card-t a { color: #000; text-decoration: none; }
.ds-card:hover .ds-card-t a { color: var(--ds-bla); text-decoration: underline; text-decoration-color: var(--ds-orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ds-card-ex { margin: 0 0 .75rem; font-size: 1rem; line-height: 1.55; color: var(--ds-dov); }
.ds-card-meta { margin: auto 0 0; font-family: var(--ds-term); font-size: 1.25rem; line-height: 1.1; color: var(--ds-dov); }
.ds-card a:focus-visible { outline: none; }
.ds-card:focus-within { outline: 3px solid #000; outline-offset: 6px; }

/* ---------- Om-rutan på startsidan ---------- */
.ds-about { border-top: 0; }
.ds-about-text { max-width: 680px; border-left: 10px solid var(--ds-bla); padding-left: clamp(1rem, 3vw, 2rem); }
.ds-about-text .ds-sec-t { margin-bottom: 1rem; }
.ds-about-note { color: var(--ds-dov); }

/* ---------- Rubrikskärmen (artikel, sida, arkiv) ---------- */
.ds-head { background-color: var(--ds-bla); background-image: var(--ds-scan); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(2.25rem, 5vw, 3.75rem); }
.ds-head-inner > * { margin-block: 0; }
.ds-path { font-family: var(--ds-term); font-size: 1.375rem; line-height: 1.2; margin: 0 0 1.25rem !important; display: flex; flex-wrap: wrap; gap: 0 .1rem; }
.ds-path a { color: inherit; text-decoration: none; display: inline-block; padding-block: .15rem; }
.ds-path a:hover { text-decoration: underline; }
.ds-head-t { color: inherit; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.04; max-width: 22ch; font-weight: 700; }
.ds-head .ds-dek { margin-top: 1.25rem !important; max-width: 60ch; }
.ds-dek, .ds-dek p { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: inherit; }
.ds-dek p { margin: 0; }
.ds-head.is-page .ds-head-t { max-width: 26ch; }
.ds-cat-count { font-family: var(--ds-term); font-size: 1.375rem; margin: 0 0 1rem !important; display: flex; align-items: center; }
.ds-head .wp-block-search { margin-top: 1.75rem !important; max-width: 560px; }

body.ds-ruta-orange .ds-head.is-archive { background: var(--ds-orange); color: #000; }
body.ds-ruta-vit .ds-head.is-archive { background: #fff; color: #000; border-bottom: 0; }
body.ds-ruta-vit .ds-head.is-archive .ds-p { background: var(--ds-bla); }
body.ds-ruta-svart .ds-head.is-archive { background: #000; background-image: none; }
body.ds-ruta-svart .ds-head.is-archive .ds-p { background: var(--ds-orange); color: #000; }

/* Listen mellan skärmarna */
.ds-hud-wrap { margin-block-start: 0 !important; }
.ds-hud { background: #000; color: #fff; border-top: 4px solid var(--ds-orange); }
.ds-hud-in { max-width: 1280px; margin: 0 auto; padding: .55rem var(--ds-gutter) .5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; font-family: var(--ds-term); font-size: 1.375rem; line-height: 1.2; }
.ds-hud p { margin: 0; }
.ds-hud a { color: #fff; text-decoration: underline; text-decoration-color: var(--ds-orange); text-underline-offset: 3px; }
.ds-sep { color: var(--ds-orange); margin: 0 .55rem; }
.ds-split-line { height: 14px; background: #000; border-top: 4px solid var(--ds-orange); margin-block-start: 0 !important; }

/* ---------- Läsytan ---------- */
.ds-hero-img { margin-top: clamp(1.75rem, 4vw, 3rem) !important; }
.ds-hero-img:not(:has(img)) { display: none; }
.ds-hero-img .wp-block-post-featured-image { margin: 0; border: 3px solid #000; background: #000; }
.ds-hero-img img { display: block; width: 100%; height: auto; max-height: 620px; aspect-ratio: 16 / 9; object-fit: cover; }

.ds-read { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: clamp(2rem, 5vw, 3.5rem) !important; }
.ds-read-aside:not(:has(nav)) { display: none; }
@media (min-width: 1100px) {
	.ds-read { grid-template-columns: 230px minmax(0, 650px); justify-content: center; column-gap: 4.5rem; }
	.ds-read-aside { position: relative; }
	.ds-read-aside .ds-toc { position: sticky; top: 1.5rem; }
	.ds-read-aside:not(:has(nav)) { display: block; }
}
.ds-body { max-width: 650px; }
.ds-body > * { margin-block: 0 1.25rem; }
.ds-body p, .ds-body li { font-size: 1.125rem; line-height: 1.72; }
.ds-body > p:first-child { font-size: 1.25rem; line-height: 1.6; }
.ds-body h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.12; margin: 2.75rem 0 1rem; scroll-margin-top: 1.5rem; }
.ds-body h3 { font-size: 1.35rem; line-height: 1.2; margin: 2rem 0 .75rem; }
.ds-body a { color: var(--ds-bla); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ds-body a:hover { color: #000; text-decoration-color: var(--ds-orange); text-decoration-thickness: 3px; }
.ds-body ul, .ds-body ol { padding-left: 1.4rem; }
.ds-body ul { list-style: none; padding-left: 1.6rem; }
.ds-body ul > li { position: relative; }
.ds-body ul > li::before { content: ""; position: absolute; left: -1.25rem; top: .62em; width: 8px; height: 8px; background: var(--ds-bla); }
.ds-body li + li { margin-top: .4rem; }
.ds-body ol > li::marker { font-family: var(--ds-pixel); font-weight: 600; color: var(--ds-bla); }
.ds-body blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.4rem; border-left: 6px solid var(--ds-orange); font-size: 1.25rem; }
.ds-body table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; margin: 1.75rem 0; }
.ds-body th, .ds-body td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--ds-linje); vertical-align: top; }
.ds-body thead th { background: #000; color: #fff; font-family: var(--ds-pixel); font-weight: 600; border-bottom: 0; }
.ds-body .ds-table-wrap { overflow-x: auto; margin: 1.75rem 0; }
.ds-body .ds-table-wrap table { margin: 0; min-width: 520px; }
.ds-fakta { margin: 2rem 0 !important; background: var(--ds-blek); border-left: 10px solid var(--ds-bla); padding: 1.25rem 1.4rem; }
.ds-fakta > :last-child { margin-bottom: 0; }
.ds-fakta-t { font-family: var(--ds-pixel); font-weight: 600; font-size: 1.15rem !important; margin: 0 0 .6rem !important; }
.ds-fakta ul { margin: 0; }
.ds-ingress { font-size: 1.3rem !important; line-height: 1.6 !important; }

/* Innehållsförteckning */
.ds-toc { border: 3px solid #000; background: #fff; }
.ds-toc-t { margin: 0; padding: .55rem .9rem; background: var(--ds-orange); color: #000; font-family: var(--ds-pixel); font-weight: 600; font-size: 1.0625rem; border-bottom: 3px solid #000; }
.ds-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: .5rem 0; }
.ds-toc li { counter-increment: toc; }
.ds-toc a { display: grid; grid-template-columns: 2.1rem 1fr; padding: .4rem .9rem .4rem .6rem; color: #000; text-decoration: none; font-size: .975rem; line-height: 1.35; }
.ds-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--ds-term); font-size: 1.2rem; line-height: 1.1; color: var(--ds-bla); }
.ds-toc a:hover { background: var(--ds-bla); color: #fff; }
.ds-toc a:hover::before { color: #fff; }

/* Skribenten */
.ds-author { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; display: grid; grid-template-columns: minmax(0, 650px); justify-content: center; }
@media (min-width: 1100px) { .ds-author { grid-template-columns: 230px minmax(0, 650px); column-gap: 4.5rem; } .ds-author > * { grid-column: 2; } }
.ds-author > * { margin: 0; }
.ds-author-k { font-family: var(--ds-pixel); font-weight: 600; font-size: 1rem; border-top: 4px solid #000; padding-top: 1rem !important; }
.ds-author-name { font-family: var(--ds-pixel); font-weight: 700; font-size: 1.6rem; margin-top: .25rem !important; color: var(--ds-bla); }
.ds-author-bio { color: var(--ds-dov); margin-top: .5rem !important; max-width: 62ch; }
.ds-author-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .75rem !important; }
.ds-author-links a { color: var(--ds-bla); font-weight: 500; display: inline-block; padding-block: .25rem; }

/* ---------- Pelarsidan ---------- */
.ds-guide-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .ds-guide-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 4rem; } }
.ds-bigdisk {
	position: relative; width: min(280px, 72vw); aspect-ratio: 90 / 94; background: #000; padding: 0 22px 22px; display: flex; flex-direction: column;
	clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.ds-bigdisk .ds-disk-shutter { width: 60%; height: 34%; margin-bottom: 14px; }
.ds-bigdisk .ds-disk-shutter span { height: 62%; top: 16%; }
.ds-bigdisk-label { flex: 1; background: #fff; border-top: 10px solid var(--ds-orange); padding: .7rem .85rem; display: flex; flex-direction: column; background-image: repeating-linear-gradient(to bottom, transparent 0 21px, #D5E0EC 21px 22px); background-position: 0 2.6rem; }
.ds-bigdisk-t { font-family: var(--ds-pixel); font-weight: 600; font-size: 1.2rem; line-height: 1.12; color: #000; }
@media (max-width: 899px) { .ds-bigdisk { display: none; } }

/* ---------- Arkiv, sök, ämnen ---------- */
.ds-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.ds-topics a { display: flex; flex-direction: column; gap: .4rem; min-height: 120px; padding: 1.1rem 1.2rem; text-decoration: none; border: 3px solid #000; }
.ds-topics .is-bla a { background: var(--ds-bla); color: #fff; border-color: var(--ds-bla); }
.ds-topics .is-vit a { background: #fff; color: #000; }
.ds-topics .is-orange a { background: var(--ds-orange); color: #000; }
.ds-topics .is-svart a { background: #000; color: #fff; }
@media (min-width: 1000px) { .ds-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ds-topic-t { font-family: var(--ds-pixel); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.ds-topic-n { font-family: var(--ds-term); font-size: 1.25rem; margin-top: auto; }
.ds-topics a[aria-current="page"] { box-shadow: inset 0 -8px 0 var(--ds-orange); }
.ds-topics .is-orange a[aria-current="page"] { box-shadow: inset 0 -8px 0 #000; }

.ds-pager { margin-top: 3rem; }
.ds-pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.ds-pager a, .ds-pager span { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 .8rem; border: 2px solid #000; font-family: var(--ds-pixel); color: #000; text-decoration: none; }
.ds-pager .current { background: var(--ds-bla); color: #fff; border-color: var(--ds-bla); }
.ds-pager a:hover { background: #000; color: #fff; }
.ds-empty { font-size: 1.125rem; max-width: 60ch; }

.ds-search-form .wp-block-search__label { font-family: var(--ds-pixel); font-weight: 600; color: inherit; margin-bottom: .5rem; }
.ds-search-form .wp-block-search__inside-wrapper { gap: 0; }
.ds-search-form .wp-block-search__input { border: 3px solid #000; background: #fff; color: #000; font-size: 1.125rem; padding: .7rem .9rem; min-height: 52px; border-radius: 0; }
.ds-search-form .wp-block-search__input::placeholder { color: #555E6B; }
.ds-search-form .wp-block-search__button { margin: 0; border: 3px solid #000; border-left: 0; background: var(--ds-orange); color: #000; font-family: var(--ds-pixel); font-weight: 600; font-size: 1.125rem; padding: 0 1.25rem; border-radius: 0; }
.ds-search-form .wp-block-search__button:hover { background: #fff; }
.ds-head-t q { quotes: "”" "”"; }
.ds-404-code { font-family: var(--ds-term); font-size: clamp(4rem, 12vw, 8rem); line-height: .8; color: var(--ds-orange); margin: 0 0 1rem !important; }

/* Sidan Artiklar */
.ds-alla { margin: 0 0 2.75rem; }
.ds-alla h2 { display: flex; align-items: center; gap: .75rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 0 0 .75rem; }
.ds-alla h2::before { content: ""; width: 18px; height: 18px; flex: none; border: 2px solid #000; background: var(--ds-bla); }
.ds-alla.is-vit h2::before { background: #fff; }
.ds-alla.is-orange h2::before { background: var(--ds-orange); }
.ds-alla.is-svart h2::before { background: #000; }
.ds-alla h2 a { color: #000; text-decoration: none; }
.ds-alla h2 a:hover { text-decoration: underline; }
.ds-index { list-style: none !important; padding: 0 !important; margin: 0; border-top: 3px solid #000; }
.ds-index li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--ds-linje); margin: 0 !important; }
.ds-index li::before { display: none; }
.ds-index a { font-weight: 500; }
.ds-index-d { font-family: var(--ds-term); font-size: 1.2rem; color: var(--ds-dov); }

/* ---------- Sidfot ---------- */
.ds-footer { background-color: var(--ds-bla); background-image: var(--ds-scan); color: #fff; position: relative; margin-top: 12px; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.ds-footer-edge { position: absolute; left: 0; right: 0; top: -12px; height: 12px; background: var(--ds-stairs) repeat-x left bottom; margin: 0 !important; max-width: none !important; }
.ds-footer a { color: #fff; }
.ds-footer-cols { display: grid; gap: 2.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ds-footer-cols { grid-template-columns: 1fr 1fr 1fr; } .ds-footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .ds-footer-cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .ds-footer-brand { grid-column: auto; } }
.ds-footer-brand p { max-width: 42ch; margin: 1rem 0 0; font-size: 1rem; line-height: 1.6; }
.ds-footer-h { font-family: var(--ds-pixel); font-weight: 600; font-size: 1.2rem; margin: 0 0 .6rem; }
.ds-footer ul { list-style: none; margin: 0; padding: 0; }
.ds-footer li a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.ds-footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ds-friskrivning { margin-top: 2.5rem; padding: 1rem 1.2rem; background: #000; border-left: 8px solid var(--ds-orange); }
.ds-friskrivning p { margin: 0; font-size: .975rem; line-height: 1.55; max-width: 90ch; }
.ds-footer-legal { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 1.5rem 0 0; font-family: var(--ds-term); font-size: 1.2rem; }

/* ---------- Mindre skärmar ---------- */
@media (max-width: 599px) {
	.ds-screen { padding-top: 4rem; }
	.ds-hero-t { font-size: clamp(2.5rem, 12vw, 3.4rem); }
	.ds-hud-in { font-size: 1.25rem; }
	.ds-body > p:first-child { font-size: 1.1875rem; }
	.ds-disk { min-height: 0; }
	.ds-disk-shutter { height: 58px; width: 46%; }
	.ds-disk-shutter span { height: 32px; top: 12px; }
}

/* Utskrift */
@media print {
	.ds-header, .ds-footer, .ds-hud, .ds-split-line, .ds-more, .ds-read-aside { display: none !important; }
	.ds-head { background: none; color: #000; }
}

/* Knapp i brödtext (kontaktsidan) */
.ds-body a.ds-btn { color: #000; text-decoration: none; }
.ds-body a.ds-btn:hover { color: #000; }
