/*
 * Identiteten v2. Laddas bara när atdt_texty_v2() är sann, och allt är
 * avgränsat till body.texty-v2. Underlag: varumärkesduken för omgång 32.
 * Kopiepennviolett #5C00E6 bär understrykningen, knappar med vit text,
 * kategorietiketter och symbolen (på vitt 8,1:1, på ljus yta 7,2:1). Länkar i
 * löptext #4A00BA (10,5:1). Bläcksvart #1A1033 för text och sidfot. Kall
 * lavendelvit #F3F0FF som ljus yta. Korrekturkorall #F0654A bara i den vågiga
 * delen av understrykningen och i fel-exemplen, aldrig som text. Formspråket:
 * under h1 och under startsidans sektionsrubriker går en linje som börjar vågig
 * i korall och fortsätter rak i violett. Kort med 6 px hörn och tunn
 * lavendelgrå ram. Inga skuggor. Wittgenstein 700 i rubriker, Menbere 400 och
 * 700 i text och meny.
 */
body.texty-v2 {
	--txy-violett: #5C00E6;
	--txy-lank: #4A00BA;
	--txy-mork:    #1A1033;
	--txy-ljus:    #F3F0FF;
	--txy-korall:  #F0654A;
	--txy-sek:     #5B5670;
	--txy-dov:     #C9C3DD;
	--txy-linje:   #DCD6EE;
	--txy-bredd:   1200px;
	--txy-marg:    40px;
	--txy-rubrik:  "Wittgenstein", Georgia, serif;
	--txy-text:    "Menbere", "Helvetica Neue", Arial, sans-serif;

	--atdt-bg:        #FFFFFF;
	--atdt-surface:   #F3F0FF;
	--atdt-ink:       #1A1033;
	--atdt-muted:     #5B5670;
	--atdt-accent:    #5C00E6;
	--atdt-accent-2:  #5C00E6;
	--atdt-neutral:   #DCD6EE;
	--atdt-on-accent: #FFFFFF;
	--atdt-radius:    6px;
	--atdt-font-display: var(--txy-rubrik);
	--atdt-font-body:    var(--txy-text);
	--atdt-font-mono:    var(--txy-text);
	--accent:     #5C00E6;
	--contrast:   #1A1033;
	--contrast-2: #5B5670;
	--contrast-3: #DCD6EE;
	--base:       #F3F0FF;
	--base-2:     #FFFFFF;
	--base-3:     #FFFFFF;

	background: #FFFFFF;
	color: var(--txy-mork);
	font-family: var(--txy-text);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
}
.texty-v2 input,
.texty-v2 select,
.texty-v2 textarea,
.texty-v2 button:not(.cky-btn),
.texty-v2 code,
.texty-v2 pre,
.texty-v2 kbd { font-family: var(--txy-text); }
.texty-v2 .site,
.texty-v2 .site-content,
.texty-v2.separate-containers .inside-article,
.texty-v2.separate-containers .site-main:not(.txy-main) > *,
.texty-v2 .one-container .container { background: #FFFFFF; box-shadow: none; border-radius: 0; }

.texty-v2 a { color: var(--txy-lank); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.texty-v2 a:hover,
.texty-v2 a:focus { color: var(--txy-mork); text-decoration-color: var(--txy-violett); }
.texty-v2 :focus-visible { outline: 3px solid var(--txy-violett); outline-offset: 2px; }

.texty-v2 h1, .texty-v2 h2, .texty-v2 h3, .texty-v2 h4, .texty-v2 h5, .texty-v2 h6,
.texty-v2 .entry-title,
.texty-v2 .wp-block-heading {
	font-family: var(--txy-rubrik);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.16;
	text-transform: none;
	color: var(--txy-mork);
	hyphens: manual;
	-webkit-hyphens: manual;
	overflow-wrap: break-word;
}
.texty-v2 h1::before, .texty-v2 h1::after,
.texty-v2 .entry-content h2::before, .texty-v2 .entry-content h2::after,
.texty-v2 .entry-content h3::before, .texty-v2 .entry-content h3::after { content: none; display: none; }
.texty-v2 p,
.texty-v2 li { hyphens: manual; -webkit-hyphens: manual; }
.texty-v2 .entry-content h2 { border: 0; padding: 0; text-transform: none; letter-spacing: 0; }
.texty-v2 .entry-content h3 { text-transform: none; letter-spacing: 0; border: 0; padding: 0; }
.texty-v2 strong, .texty-v2 b { font-weight: 700; }

/* ---------- Formspråket: understrykningen som rätas ut, under rubriken ---------- */
.texty-v2 .entry-header .entry-title::after,
.texty-v2 .txy-linjerad::after {
	content: ""; display: block; width: 120px; height: 10px; margin-top: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 5q2-4 4 0t4 0t4 0t4 0t4 0t4 0t4 0t4 0t4 0t4 0' fill='none' stroke='%23F0654A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M42 5H118' stroke='%235C00E6' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 120px 10px;
}

/* Den gamla identitetens motiv visas inte i v2. */
.texty-v2 .atdt-road, .texty-v2 .atdt-ridge, .texty-v2 .atdt-swell, .texty-v2 .atdt-vine,
.texty-v2 .atdt-trail, .texty-v2 .atdt-sine, .texty-v2 .atdt-paws, .texty-v2 .atdt-vinerule,
.texty-v2 .atdt-drops, .texty-v2 .atdt-stage { display: none; }

/* ---------- Sektionsrubrik ---------- */
.texty-v2 .txy-h2 { margin: 0 0 28px; padding: 0; font-size: 34px; line-height: 1.12; border: 0; }

/* ---------- Kategorietiketten: violett text, tryckytan 44 px ---------- */
.texty-v2 .txy-tagg {
	display: inline-block; align-self: flex-start; color: var(--txy-violett);
	font-family: var(--txy-text); font-weight: 700; font-size: 15px; line-height: 20px;
	text-decoration: none; white-space: nowrap;
}
.texty-v2 a.txy-tagg { padding: 12px 0; margin: -12px 0; }
.texty-v2 a.txy-tagg:hover,
.texty-v2 a.txy-tagg:focus { color: var(--txy-mork); text-decoration: underline; }

/* ---------- Bilder, krediter och den typografiska reservytan ---------- */
.texty-v2 .txy-bildlank,
.texty-v2 .txy-reserv { display: block; text-decoration: none; }
.texty-v2 .txy-bildlank img,
.texty-v2 .txy-bildram img { display: block; width: 100%; height: auto; border-radius: 0; }
.texty-v2 .txy-reserv { display: flex; align-items: center; justify-content: center; background: var(--txy-ljus); }
.texty-v2 .txy-reserv svg { width: 120px; height: 40px; max-width: 80%; }
.texty-v2 .txy-kredit { display: block; padding: 8px 18px 0; font-size: 12px; line-height: 1.4; color: var(--txy-sek); }
.texty-v2 .txy-figurkredit { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--txy-sek); font-style: normal; text-align: left; }
.texty-v2 .txy-datum { font-size: 14px; line-height: 1.4; color: var(--txy-sek); }

/* ---------- Knappar och sökfält ---------- */
.texty-v2 button:not(.cky-btn),
.texty-v2 .button,
.texty-v2 .wp-block-button__link,
.texty-v2 input[type="submit"] {
	background: var(--txy-violett); color: #FFFFFF; border: 0; border-radius: 6px; box-shadow: none; font-weight: 700; font-size: 17px; letter-spacing: 0; text-transform: none; min-height: 44px; box-sizing: border-box;
}
.texty-v2 button:not(.cky-btn):hover,
.texty-v2 .wp-block-button__link:hover,
.texty-v2 input[type="submit"]:hover { background: var(--txy-mork); color: #FFFFFF; }
.texty-v2 input[type="search"],
.texty-v2 input[type="text"],
.texty-v2 input[type="email"] { font-size: 16px; border: 1px solid var(--txy-sek); border-radius: 6px; background: #FFFFFF; color: var(--txy-mork); min-height: 44px; box-sizing: border-box; }
.texty-v2 .txy-sokform { display: flex; gap: 8px; width: 100%; box-sizing: border-box; }
.texty-v2 .txy-sokfalt { flex: 1 1 auto; min-width: 0; padding: 0 14px; }
.texty-v2 .txy-sokform-knapp { flex: 0 0 auto; padding: 0 22px; cursor: pointer; }

/* ---------- Sidhuvud: vitt, ordmärket, menyn och sökknappen ---------- */
.texty-v2 .site-header { background: #FFFFFF; color: var(--txy-mork); border-bottom: 1px solid var(--txy-linje); }
.texty-v2 .inside-header { position: relative; max-width: var(--txy-bredd); margin: 0 auto; padding: 14px var(--txy-marg); display: flex; align-items: center; gap: 0 18px; box-sizing: border-box; }
.texty-v2 .inside-header::before,
.texty-v2 .inside-header::after { content: none; display: none; }
.texty-v2 .site-branding { order: 1; flex: 0 0 auto; min-width: 0; margin-right: auto; }
.texty-v2 .site-description { display: none; }
.texty-v2 .main-title { margin: 0; line-height: 1; font-size: 30px; }
.texty-v2 .txy-ordmarke { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--txy-mork); text-decoration: none; }
.texty-v2 .txy-ordmarke:hover,
.texty-v2 .txy-ordmarke:focus { color: var(--txy-mork); text-decoration: none; }
.texty-v2 .txy-symbol { display: block; flex: 0 0 auto; }
.texty-v2 .txy-ordmarke-namn { font-family: var(--txy-rubrik); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: 0; white-space: nowrap; }

.texty-v2 .main-navigation,
.texty-v2 .main-navigation .inside-navigation,
.texty-v2 .main-navigation ul ul { background: transparent !important; }
.texty-v2 #site-navigation { order: 2; flex: 0 1 auto; min-width: 0; float: none; margin: 0; border: 0; }
.texty-v2 #site-navigation .inside-navigation { max-width: none; margin: 0; padding: 0; display: block; }
.texty-v2 #site-navigation .main-nav { display: block !important; }
.texty-v2 #site-navigation .main-nav > ul { display: flex !important; align-items: center; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; }
.texty-v2 .main-navigation .main-nav ul li a {
	display: inline-flex; align-items: center; min-height: 48px; line-height: 1.2;
	font-family: var(--txy-text); font-weight: 700; font-size: 17px;
	text-transform: none; letter-spacing: 0; color: var(--txy-mork) !important; text-decoration: none;
	padding: 0 11px; background: transparent !important; white-space: nowrap;
}
.texty-v2 .main-navigation .main-nav ul li:hover > a,
.texty-v2 .main-navigation .main-nav ul li a:focus { color: var(--txy-violett) !important; text-decoration: underline; }
.texty-v2 .main-navigation .main-nav ul li.current-menu-item > a { color: var(--txy-violett) !important; box-shadow: inset 0 -3px 0 var(--txy-violett); }
.texty-v2 .mobile-menu-control-wrapper,
.texty-v2 #site-navigation .menu-toggle,
.texty-v2 #site-navigation .menu-bar-items { display: none !important; }

.texty-v2 .txy-sok { order: 3; flex: 0 0 auto; }
.texty-v2 .txy-sokknapp { list-style: none; width: 44px; height: 44px; border: 1px solid var(--txy-linje); border-radius: 6px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; box-sizing: border-box; }
.texty-v2 .txy-sokknapp::-webkit-details-marker { display: none; }
.texty-v2 .txy-sokknapp::marker { content: ""; }
.texty-v2 .txy-sok[open] .txy-sokknapp { background: var(--txy-violett); border-color: var(--txy-violett); }
.texty-v2 .txy-sok[open] .txy-sokknapp svg { stroke: #FFFFFF; }
.texty-v2 .txy-sok-panel { position: absolute; z-index: 50; top: 100%; right: var(--txy-marg); width: 420px; max-width: calc(100% - 2 * var(--txy-marg)); background: #FFFFFF; border: 1px solid var(--txy-linje); border-radius: 6px; padding: 14px; box-sizing: border-box; }

/* ---------- Ramverk ---------- */
.texty-v2 .site.grid-container { max-width: var(--txy-bredd); }
.texty-v2.txy-mall-start .site.grid-container,
.texty-v2.txy-mall-artikel .site.grid-container,
.texty-v2.txy-mall-lista .site.grid-container,
.texty-v2.txy-mall-404 .site.grid-container { max-width: none; padding: 0; }
.texty-v2 .site-content { display: block; }
.texty-v2 .txy-main { display: flow-root; width: 100%; min-width: 0; margin: 0; padding: 0; overflow-x: clip; }
.texty-v2 .txy-main p { margin-top: 0; }
.texty-v2.separate-containers .site-main { margin: 0; }
.texty-v2 img { max-width: 100%; }

/* Vanliga sidor (Om Texty.se, Integritetspolicy) i GeneratePress mall */
.texty-v2:not(.txy-mall-start):not(.txy-mall-artikel):not(.txy-mall-lista):not(.txy-mall-404) .site-content { padding: 48px var(--txy-marg) 40px; }
.texty-v2.separate-containers:not(.txy-mall-start) .inside-article { padding: 0; max-width: 780px; }
.texty-v2 .entry-header .entry-title { font-size: 46px; line-height: 1.1; margin: 0 0 28px; }
.texty-v2 .entry-content > p,
.texty-v2 .entry-content li { font-size: 18px; line-height: 1.7; }
.texty-v2 .entry-content .atdt-lead { font-size: 21px; line-height: 1.55; font-weight: 400; }
.texty-v2 .entry-content h2 { font-size: 30px; margin: 40px 0 12px; }
.texty-v2 .entry-content h3 { font-size: 22px; margin: 28px 0 8px; }
.texty-v2 .featured-image img,
.texty-v2 .entry-content .atdt-hero img { border: 0; border-radius: 6px; box-shadow: none; }
.texty-v2 .entry-content .atdt-hero figcaption,
.texty-v2 .atdt-fotocred,
.texty-v2 .atdt-fotokredit { display: block; font-family: var(--txy-text); text-transform: none; letter-spacing: 0; font-size: 13px; font-style: normal; text-align: left; color: var(--txy-sek); margin: 8px 0 24px; }

/* Sidornas egna kortrutnät (atdt-grid) på vanliga sidor */
.texty-v2 .entry-content .atdt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 32px; border: 0; }
.texty-v2 .entry-content .atdt-card { background: #FFFFFF; border: 1px solid var(--txy-linje); border-radius: 6px; padding: 18px 20px; box-shadow: none; transform: none; }
.texty-v2 .entry-content .atdt-card::before { content: none; display: none; }

/* Tabeller */
.texty-v2 .txy-tabell,
.texty-v2 .entry-content figure.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; max-width: 100%; }
.texty-v2 .txy-tabell table,
.texty-v2 .entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0; border: 0; table-layout: auto; font-family: var(--txy-text); }
.texty-v2 .txy-tabell th,
.texty-v2 .txy-tabell td,
.texty-v2 .entry-content th,
.texty-v2 .entry-content td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--txy-linje); text-align: left; vertical-align: top; background: transparent; word-break: normal; overflow-wrap: normal; }
.texty-v2 .txy-tabell thead th,
.texty-v2 .entry-content thead th { position: static; background: var(--txy-ljus); color: var(--txy-mork); border-bottom: 2px solid var(--txy-mork); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; font-family: var(--txy-text); }
.texty-v2 .txy-tabell tbody tr:nth-child(even),
.texty-v2 .entry-content tbody tr:nth-child(even) { background: transparent; }

/* Rätt och fel i guidernas tabeller: fel vågigt i korall, rätt rakt i violett. Texten i mörk ton. */
.texty-v2 .txy-ratt-fel td:first-child { text-decoration: underline wavy var(--txy-korall); text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.texty-v2 .txy-ratt-fel td:nth-child(2) { text-decoration: underline solid var(--txy-violett); text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-skip-ink: none; }

/* Friskrivningsrutor från mu-pluginen: ingen färgad vänsterkant (inline-stilen neutraliseras). */
.texty-v2 .atdt-fin-jur-granskning,
.texty-v2 .atdt-medicinsk-granskning { border: 0 !important; border-left: 0 !important; border-top: 2px solid var(--txy-mork) !important; border-radius: 0 !important; box-shadow: none !important; background: var(--txy-ljus) !important; color: var(--txy-mork) !important; }

/* Granskningsraden: samma plats som förut. */
.texty-v2 .atdt-granskad { color: var(--txy-sek) !important; font-size: 15px !important; }

/* ---------- Startsidan: den typografiska hjälten ---------- */
.texty-v2 .txy-hjalte { border-bottom: 1px solid var(--txy-linje); }
.texty-v2 .txy-hjalte-inre { max-width: var(--txy-bredd); margin: 0 auto; padding: 72px var(--txy-marg) 64px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; box-sizing: border-box; }
.texty-v2 .txy-hjalte-h1 { margin: 0; font-size: 62px; line-height: 1.04; }
.texty-v2 .txy-hjalte-h1::after { width: 180px; height: 15px; margin-top: 22px; background-size: 180px 15px; }
.texty-v2 .txy-hjalte-text p { margin: 0 0 6px; font-size: 19px; line-height: 1.6; color: var(--txy-mork); }
.texty-v2 .txy-hjalte-text .atdt-lead { font-size: 20px; line-height: 1.6; font-weight: 400; }

/* ---------- Startsidan: sektioner ---------- */
.texty-v2 .txy-sektion { max-width: var(--txy-bredd); margin: 0 auto; padding: 64px var(--txy-marg) 0; box-sizing: border-box; }

/* Sidans text, ordagrant. */
.texty-v2 .txy-text { padding-top: 36px; }
.texty-v2 .txy-text-brod { max-width: 780px; min-width: 0; }
.texty-v2 .txy-text-brod > p,
.texty-v2 .txy-text-brod li { font-size: 18px; line-height: 1.7; color: var(--txy-mork); }
.texty-v2 .txy-text-brod > p { margin: 0 0 16px; }

/* ---------- Kort: 6 px hörn, tunn lavendelgrå ram, bild 3:2 ---------- */
.texty-v2 .txy-rutnat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.texty-v2 .txy-guide-rutnat { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.texty-v2 .txy-kort { display: flex; flex-direction: column; min-width: 0; background: #FFFFFF; border: 1px solid var(--txy-linje); border-radius: 6px; overflow: hidden; }
.texty-v2 .txy-kort-media { min-width: 0; }
.texty-v2 .txy-kort-media img,
.texty-v2 .txy-kort-media .txy-reserv { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.texty-v2 .txy-kort-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 auto; padding: 16px 18px 18px; }
.texty-v2 .txy-kort-titel { margin: 0; font-size: 22px; line-height: 1.18; }
.texty-v2 .txy-kort-ingress { margin: 0; font-size: 16px; line-height: 1.5; color: var(--txy-mork); }
.texty-v2 .txy-las { margin: auto 0 0; font-weight: 700; font-size: 16px; }
.texty-v2 .txy-las a { display: inline-block; padding: 10px 0; margin: -6px 0 -10px; }
.texty-v2 .txy-kort-titel a,
.texty-v2 .txy-senast-titel a { color: var(--txy-mork); text-decoration: none; }
.texty-v2 .txy-kort-titel a:hover,
.texty-v2 .txy-senast-titel a:hover,
.texty-v2 .txy-kort-titel a:focus,
.texty-v2 .txy-senast-titel a:focus { color: var(--txy-lank); text-decoration: underline; }

/* Senaste: en rad textkort */
.texty-v2 .txy-senast-rad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.texty-v2 .txy-senast-kort { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 18px 20px; border: 1px solid var(--txy-linje); border-radius: 6px; background: #FFFFFF; }
.texty-v2 .txy-senast-titel { margin: 0; font-size: 21px; line-height: 1.22; }
.texty-v2 .txy-senast-meta { margin: auto 0 0; font-size: 14px; line-height: 1.4; color: var(--txy-sek); }

/* Rubriklänkar i kort: tryckytan minst 44 px utan att flytta texten. */
.texty-v2 .txy-kort-titel a,
.texty-v2 .txy-senast-titel a { display: inline-block; padding: 10px 0; margin: -10px 0; }

/* ---------- Annonsplatser ---------- */
.texty-v2 .annons { margin: 72px auto; padding: 6px 0 0; border-top: 1px solid var(--txy-linje); border-bottom: 1px solid var(--txy-linje); clear: both; box-sizing: border-box; }
.texty-v2 .txy-main > .annons { max-width: 970px; margin: 72px auto; }
.texty-v2 .txy-brod .annons { margin: 64px 0; }
.texty-v2 .annons-etikett { margin: 0 0 6px !important; font-size: 12px !important; font-weight: 400; line-height: 1.2 !important; color: var(--txy-sek); }
.texty-v2 .annons-yta { min-height: 250px; }
.texty-v2 .annons-prov .annons-yta { background: var(--txy-ljus); }

/* ---------- Artikeln ---------- */
.texty-v2 .txy-artikel { margin: 0; padding: 0; }
.texty-v2 .txy-artikel-huvud { max-width: 880px; margin: 0 auto; padding: 48px var(--txy-marg) 0; box-sizing: content-box; }
.texty-v2 .txy-artikel-titel { margin: 16px 0 18px; font-size: 48px; line-height: 1.1; }
.texty-v2 .txy-artikel-meta { margin: 0; font-size: 16px; color: var(--txy-sek); }
.texty-v2 .txy-artikel-bild { width: calc(100% - 2 * var(--txy-marg)); max-width: 960px; margin: 40px auto 0; }
.texty-v2 .txy-artikel-bild img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.texty-v2 .txy-artikel-bild.txy-bild-staende .txy-bildram { width: fit-content; max-width: 100%; }
.texty-v2 .txy-artikel-bild.txy-bild-staende img { width: auto; max-width: 100%; max-height: 720px; aspect-ratio: auto; object-fit: contain; }

.texty-v2 .txy-brod { max-width: 880px; margin: 40px auto 0; padding: 0 var(--txy-marg); box-sizing: content-box; }
.texty-v2 .txy-brod > * { max-width: 700px; }
.texty-v2 .txy-brod > p,
.texty-v2 .txy-brod li { font-size: 18px; line-height: 1.72; color: var(--txy-mork); }
.texty-v2 .txy-brod > p { margin: 0 0 18px; }
.texty-v2 .txy-brod > p:first-of-type,
.texty-v2 .txy-brod > .atdt-lead { font-size: 21px; line-height: 1.55; font-weight: 400; color: var(--txy-mork); }
.texty-v2 .txy-brod h2 { margin: 48px 0 12px; font-size: 31px; }
.texty-v2 .txy-brod h3 { margin: 30px 0 8px; font-size: 23px; }
.texty-v2 .txy-brod h4 { margin: 24px 0 8px; font-size: 20px; line-height: 1.2; }
.texty-v2 .txy-brod ul,
.texty-v2 .txy-brod ol { margin: 0 0 18px 22px; padding: 0; }
.texty-v2 .txy-brod li { margin: 0 0 8px; }
.texty-v2 .txy-brod li::marker { color: var(--txy-violett); }
.texty-v2 .txy-brod blockquote { margin: 28px 0; padding: 18px 24px; background: var(--txy-ljus); border: 0; border-left: 2px solid var(--txy-violett); border-radius: 0; font-style: normal; font-size: 18px; text-align: left; color: var(--txy-mork); box-shadow: none; }
.texty-v2 .txy-brod blockquote p { font-size: 18px; line-height: 1.6; color: var(--txy-mork); margin: 0 0 10px; }
.texty-v2 .txy-brod figure { margin: 28px 0; }
.texty-v2 .txy-brod figure img { display: block; height: auto; border: 0; border-radius: 6px; box-shadow: none; }
.texty-v2 .txy-brod figcaption { margin-top: 8px; font-family: var(--txy-text); font-size: 13px; line-height: 1.4; color: var(--txy-sek); text-align: left; font-style: normal; text-transform: none; letter-spacing: 0; }

/* Nätverkets Relaterat-ruta i sajtens formspråk. */
.texty-v2 .matcher-related { margin: 40px 0 0; padding: 22px 26px; border: 1px solid var(--txy-linje); border-radius: 6px; background: #FFFFFF; box-shadow: none; }
.texty-v2 .matcher-related__heading { font-family: var(--txy-rubrik); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--txy-mork); margin: 0 0 12px; }
.texty-v2 .matcher-related__heading::after { content: none; }
.texty-v2 .matcher-related__list { list-style: none; margin: 0 !important; padding: 0; }
.texty-v2 .txy-brod .matcher-related__item,
.texty-v2 .matcher-related__item { margin: 0; padding: 8px 0; font-size: 16px; line-height: 1.45; border-bottom: 1px solid var(--txy-linje); }
.texty-v2 .matcher-related__item:last-child { border-bottom: 0; }
.texty-v2 .matcher-related__item a { display: block; padding: 4px 0; }
.texty-v2 .matcher-related__domain,
.texty-v2 .matcher-related__attribution { color: var(--txy-sek); }

.texty-v2 .txy-mer { margin-top: 72px; border-top: 1px solid var(--txy-linje); background: var(--txy-ljus); }
.texty-v2 .txy-mer-inre { max-width: var(--txy-bredd); margin: 0 auto; padding: 48px var(--txy-marg) 60px; box-sizing: border-box; }

/* ---------- Listor, sök och 404 ---------- */
.texty-v2 .txy-lista { max-width: var(--txy-bredd); margin: 0 auto; padding: 56px var(--txy-marg) 80px; box-sizing: border-box; }
.texty-v2 .txy-lista-h1 { margin: 0 0 22px; font-size: 54px; line-height: 1.06; }
.texty-v2 .txy-lista-text { margin: 0 0 24px; max-width: 760px; font-size: 18px; line-height: 1.6; color: var(--txy-sek); }
.texty-v2 .txy-lista-sok { margin: 0 0 36px; max-width: 560px; }
.texty-v2 .txy-lista-rutnat { margin-top: 32px; }
.texty-v2 .txy-lista .txy-h2 { margin-top: 16px; }
.texty-v2 .txy-lista .nav-links { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.texty-v2 .txy-lista .nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; box-sizing: border-box; font-weight: 700; border-radius: 6px; }
.texty-v2 .txy-lista .nav-links .page-numbers.current { background: var(--txy-violett); color: #FFFFFF; }

/* ---------- Sidfot ---------- */
.texty-v2 .site-footer,
.texty-v2 .site-info { background: var(--txy-mork); color: var(--txy-dov); }
.texty-v2 .site-footer { margin-top: 0; }
.texty-v2.txy-mall-start .txy-main:not(:has(> .annons:last-child)),
.texty-v2.txy-mall-artikel .txy-main:not(:has(> .annons:last-child)) { padding-bottom: 80px; }
.texty-v2 .footer-bar { display: none; }
.texty-v2 .txy-fot-inre { max-width: var(--txy-bredd); margin: 0 auto; padding: 48px var(--txy-marg) 12px; display: flex; justify-content: space-between; align-items: center; gap: 20px 24px; flex-wrap: wrap; box-sizing: border-box; }
.texty-v2 .txy-fot .txy-ordmarke,
.texty-v2 .txy-fot .txy-ordmarke:hover,
.texty-v2 .txy-fot .txy-ordmarke:focus { color: #FFFFFF; }
.texty-v2 .txy-fot .txy-ordmarke-namn { font-size: 26px; }
.texty-v2 .txy-fot-nav { display: flex; gap: 0 24px; flex-wrap: wrap; }
.texty-v2 .txy-fot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; text-decoration: none; font-weight: 700; }
.texty-v2 .txy-fot-nav a:hover,
.texty-v2 .txy-fot-nav a:focus { color: #FFFFFF; text-decoration: underline; }
.texty-v2 .inside-site-info { max-width: var(--txy-bredd); margin: 0 auto; padding: 4px var(--txy-marg) 32px; box-sizing: border-box; justify-content: flex-start; }
.texty-v2 .site-info,
.texty-v2 .inside-site-info { text-align: left; }
.texty-v2 .copyright-bar { font-size: 15px; line-height: 1.6; color: var(--txy-dov); text-align: left; margin: 0; }
.texty-v2 .copyright-bar p { display: inline; margin: 0; }
.texty-v2 .copyright-bar a { color: #FFFFFF; display: inline-block; padding: 11px 0; }
.texty-v2 .copyright-bar a:hover,
.texty-v2 .copyright-bar a:focus { color: #FFFFFF; }

/* ---------- Mellanbredd: menyn i en egen rad under ordmärket ---------- */
@media (max-width: 1100px) {
	.texty-v2 .inside-header { flex-wrap: wrap; padding-bottom: 0; }
	.texty-v2 .site-branding { padding-bottom: 10px; }
	.texty-v2 .txy-sok { margin-bottom: 10px; }
	.texty-v2 #site-navigation { order: 5; flex: 0 0 100%; width: 100%; min-width: 0; border-top: 1px solid var(--txy-linje); }
	.texty-v2 #site-navigation .main-nav > ul { margin: 0 0 0 -11px; }
	.texty-v2 .txy-hjalte-h1 { font-size: 52px; }
	.texty-v2 .txy-guide-rutnat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	body.texty-v2 { --txy-marg: 24px; }
	.texty-v2 .txy-sok-panel { right: 0; left: 0; width: auto; max-width: none; padding: 12px 16px; }
	.texty-v2 .txy-hjalte-inre { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
	.texty-v2 .txy-guide-rutnat,
	.texty-v2 .txy-rutnat,
	.texty-v2 .txy-senast-rad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobil: menyn en svepbar rad under ordmärket, sökknappen på ordmärkets rad ---------- */
@media (max-width: 768px) {
	body.texty-v2 { --txy-marg: 16px; font-size: 17px; }
	.texty-v2 .inside-header { padding: 10px 0 0; gap: 0 10px; flex-wrap: wrap; }
	.texty-v2 .inside-header > .site-branding { order: 1; padding: 0 0 8px 16px; }
	.texty-v2 .inside-header > .txy-sok { order: 2; margin: 0 0 8px auto; padding-right: 16px; }
	.texty-v2 .inside-header > #site-navigation { order: 3; flex: 0 0 100%; width: 100%; min-width: 0; margin: 0; border-top: 1px solid var(--txy-linje); }
	.texty-v2 .main-title,
	.texty-v2 .txy-ordmarke-namn { font-size: 26px; }
	.texty-v2 .site-branding .txy-symbol { width: 36px; height: 36px; }
	.texty-v2 .txy-ordmarke { gap: 10px; }
	.texty-v2 .txy-sok-panel { padding: 12px 16px; }
	.texty-v2 #site-navigation .inside-navigation { padding: 0; }
	.texty-v2 #site-navigation .main-nav > ul {
		flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 0; margin: 0; padding: 0 16px 0 5px;
		-webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent);
	}
	.texty-v2 #site-navigation .main-nav > ul::-webkit-scrollbar { display: none; }
	.texty-v2 #site-navigation .main-nav > ul > li { flex: 0 0 auto; float: none; width: auto; position: static; }
	.texty-v2 #site-navigation .main-nav > ul > li:last-child { margin-right: 40px; }
	.texty-v2 #site-navigation .main-nav > ul > li > a { display: flex; align-items: center; min-height: 48px; padding: 0 11px !important; font-size: 16px; line-height: 20px; }
	.texty-v2 #site-navigation .menu-item-has-children,
	.texty-v2 #site-navigation .menu-item-has-children > .sub-menu { display: contents; }
	.texty-v2 #site-navigation .dropdown-menu-toggle { display: none !important; }

	.texty-v2 .txy-h2 { font-size: 28px; margin-bottom: 20px; }
	.texty-v2 .txy-linjerad::after { margin-top: 12px; }

	/* Hjälten: rubrik, understrykning och ingress. */
	.texty-v2 .txy-hjalte-inre { padding: 32px 16px 36px; gap: 20px; }
	.texty-v2 .txy-hjalte-h1 { font-size: 38px; line-height: 1.08; }
	.texty-v2 .txy-hjalte-h1::after { width: 140px; height: 12px; margin-top: 16px; background-size: 140px 12px; }
	.texty-v2 .txy-hjalte-text p,
	.texty-v2 .txy-hjalte-text .atdt-lead { font-size: 17px; }

	.texty-v2 .txy-sektion { padding-top: 44px; }
	.texty-v2 .txy-text { padding-top: 28px; }

	/* Kort som lista: miniatyren till vänster, krediten i textspalten i full kortbredd. */
	.texty-v2 .txy-guide-rutnat,
	.texty-v2 .txy-rutnat { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.texty-v2 .txy-kort { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 0; align-items: start; background: transparent; border: 0; border-radius: 0; overflow: visible; padding: 16px 0; border-bottom: 1px solid var(--txy-linje); }
	.texty-v2 .txy-kort:first-child { border-top: 1px solid var(--txy-linje); }
	.texty-v2 .txy-kort-media { display: contents; }
	.texty-v2 .txy-kort-media > .txy-bildlank,
	.texty-v2 .txy-kort-media > .txy-reserv { grid-column: 1; grid-row: 1 / span 3; }
	.texty-v2 .txy-kort-text { grid-column: 2; grid-row: 1; padding: 0; gap: 6px; }
	.texty-v2 .txy-kort-media .txy-kredit { grid-column: 2; grid-row: 2; display: block; margin: 0; padding: 6px 0 0; font-size: 12px; line-height: 1.4; }
	.texty-v2 .txy-kort-media img,
	.texty-v2 .txy-kort-media .txy-reserv { aspect-ratio: 1 / 1; border-radius: 6px; }
	.texty-v2 .txy-reserv svg { width: 72px; height: 24px; }
	.texty-v2 .txy-kort-titel { font-size: 20px; }
	.texty-v2 .txy-kort-ingress { font-size: 15px; }
	.texty-v2 .txy-las { font-size: 15px; }
	.texty-v2 .txy-datum { font-size: 13px; }

	.texty-v2 .txy-senast-rad { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.texty-v2 .txy-senast-titel { font-size: 20px; }

	.texty-v2 .txy-text-brod > p,
	.texty-v2 .txy-text-brod li { font-size: 17px; }
	.texty-v2 .txy-tabell table,
	.texty-v2 .entry-content table { font-size: 15px; }

	.texty-v2 .annons,
	.texty-v2 .txy-main > .annons { margin: 64px 16px; max-width: none; }
	.texty-v2 .txy-brod .annons { margin: 64px 0; }
	.texty-v2 .annons-yta { min-height: 280px; }

	/* Artikeln */
	.texty-v2 .txy-artikel-huvud { padding: 28px 16px 0; box-sizing: border-box; max-width: none; }
	.texty-v2 .txy-artikel-titel { font-size: 33px; line-height: 1.14; margin-top: 14px; }
	.texty-v2 .txy-artikel-meta { font-size: 14px; }
	.texty-v2 .txy-artikel-bild { width: calc(100% - 32px); margin-top: 26px; }
	.texty-v2 .txy-artikel-bild.txy-bild-staende img { max-height: 520px; }
	.texty-v2 .txy-brod { margin-top: 28px; padding: 0 16px; box-sizing: border-box; max-width: none; }
	.texty-v2 .txy-brod > p,
	.texty-v2 .txy-brod li { font-size: 17px; }
	.texty-v2 .txy-brod > p:first-of-type,
	.texty-v2 .txy-brod > .atdt-lead { font-size: 19px; }
	.texty-v2 .txy-brod h2 { font-size: 27px; margin-top: 40px; }
	.texty-v2 .txy-brod h3 { font-size: 21px; }

	.texty-v2 .txy-mer { margin-top: 52px; }
	.texty-v2 .txy-mer-inre { padding: 32px 16px 40px; }

	/* Listor och vanliga sidor */
	.texty-v2 .txy-lista { padding: 32px 16px 64px; }
	.texty-v2 .txy-lista-h1 { font-size: 38px; }
	.texty-v2 .txy-lista-sok .txy-sokform { flex-direction: column; gap: 8px; }
	.texty-v2 .txy-lista-sok .txy-sokform-knapp { width: 100%; }
	.texty-v2 .entry-header .entry-title { font-size: 34px; }
	.texty-v2:not(.txy-mall-start):not(.txy-mall-artikel):not(.txy-mall-lista):not(.txy-mall-404) .site-content { padding: 32px 16px 16px; }

	.texty-v2 .txy-fot-inre { padding: 36px 16px 8px; }
	.texty-v2 .txy-fot .txy-ordmarke-namn { font-size: 24px; }
	.texty-v2 .inside-site-info { padding: 4px 16px 28px; align-items: flex-start; }
}
