/* ==========================================================================
   Snabblån Direkt, barntema till Blocksy
   1.  Typsnitt
   2.  Färger, typografi och grundmått
   3.  Sidhuvud, meny och knappen Jämför lån
   4.  Mobilmeny och sökrutan
   5.  Rubrikbandet: brödsmulor, H1, byline och utvald bild
   6.  Artikelytan: hoppknapp och innehållsförteckning i texten
   7.  Sidokolumnen: fast innehållsförteckning och ruta till topplistan
   8.  Profilrutan
   9.  Senaste nytt, arkiv och nyhetskort
   10. Etiketter, relaterade inlägg och kommentarer
   11. Sidfoten
   12. Mobilknappen till topplistan
   13. Långivarsidor (Snabblåndirekt Loan Compare)
   14. Formulär, knappar och tillbaka upp
   15. Surfplatta och mobil

   Blocksy skriver sina inställningar med väljare av typen
   [data-header*="type-1"] .ct-header ..., därför börjar temats väljare för
   sidhuvudet med [data-header] så att de väger lika tungt och vinner genom
   att laddas senare.
   ========================================================================== */

/* 1. Typsnitt (sajtens egna: Raleway och Rambla, på egen server) ---------- */

@font-face {
	font-family: "Raleway Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/raleway-latin-wght-normal.woff2) format("woff2-variations"),
		url(../fonts/raleway-latin-wght-normal.woff2) format("woff2");
}

@font-face {
	font-family: "Raleway Variable";
	font-style: italic;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/raleway-latin-wght-italic.woff2) format("woff2-variations"),
		url(../fonts/raleway-latin-wght-italic.woff2) format("woff2");
}

@font-face {
	font-family: "Rambla";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url(../fonts/rambla-latin-400-normal.woff2) format("woff2");
}

@font-face {
	font-family: "Rambla";
	font-style: normal;
	font-display: swap;
	font-weight: 700;
	src: url(../fonts/rambla-latin-700-normal.woff2) format("woff2");
}

/* 2. Färger, typografi och grundmått --------------------------------------- */

:root {
	--snb-navy: #1e3a5f;
	--snb-navy-deep: #152c4a;
	--snb-ink: #0f1f35;
	--snb-heading: #142a47;
	--snb-text: #33435a;
	--snb-muted: #5d6b80;
	--snb-blue: #2563eb;
	--snb-blue-ink: #1d4ed8;
	--snb-sky: #3b82f6;
	--snb-sky-soft: #eef4ff;
	--snb-sky-line: #d6e4fb;
	--snb-mint: #10b981;
	--snb-green: #047857;
	--snb-green-deep: #065f46;
	--snb-line: #e3e9f2;
	--snb-soft: #f5f8fc;
	--snb-radius: 14px;
	--snb-shadow: 0 1px 2px rgba(20, 42, 71, 0.05), 0 10px 28px rgba(20, 42, 71, 0.07);
	--snb-sans: "Raleway Variable", Raleway, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--snb-display: Rambla, "Raleway Variable", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--theme-font-family: var(--snb-sans);
	--theme-font-size: 17px;
	--theme-font-weight: 450;
	--theme-line-height: 1.72;
	--theme-text-color: var(--snb-text);
	--theme-headings-color: var(--snb-heading);
	--theme-heading-color: var(--snb-heading);
	--theme-link-initial-color: var(--snb-blue-ink);
	--theme-link-hover-color: var(--snb-navy);
	--theme-content-vertical-spacing: 44px;
	--theme-selection-background-color: #cfe0ff;
	--theme-selection-text-color: var(--snb-ink);
	--theme-button-font-family: var(--snb-display);
	--theme-button-font-weight: 700;
	--theme-button-font-size: 16px;
	--theme-button-text-transform: none;
	--theme-button-border-radius: 10px;
	--theme-form-field-border-radius: 10px;
}

body {
	background-color: #ffffff;
	font-family: var(--snb-sans);
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

b,
strong {
	font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	--theme-font-family: var(--snb-display);
	--theme-text-transform: none;
	font-family: var(--snb-display);
	letter-spacing: -0.005em;
}

h1 {
	--theme-font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
	--theme-line-height: 1.15;
	--theme-font-weight: 700;
}

h2 {
	--theme-font-size: clamp(1.55rem, 1.3rem + 0.95vw, 2rem);
	--theme-line-height: 1.22;
	--theme-font-weight: 700;
}

h3 {
	--theme-font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.45rem);
	--theme-line-height: 1.3;
	--theme-font-weight: 700;
}

h4 {
	--theme-font-size: 1.15rem;
	--theme-line-height: 1.35;
	--theme-font-weight: 700;
}

h5,
h6 {
	--theme-font-size: 1.02rem;
	--theme-line-height: 1.4;
	--theme-font-weight: 700;
}

.entry-content :is(h2, h3, h4)[id] {
	scroll-margin-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Pluginets byline, innehållsförteckning och profilruta ersätts av temat.
   Om något av dem ändå skulle skrivas ut döljs det här. */
.entry-content .sld-eeat-byline,
.entry-content .sld-toc,
.entry-content .sld-eeat-author-bio {
	display: none !important;
}

/* 3. Sidhuvud, meny och knappen Jämför lån ---------------------------------- */

[data-header] .ct-header [data-row*="middle"] {
	--theme-border-bottom: 1px solid #dfe6f0;
	--theme-box-shadow: 0 2px 10px rgba(20, 42, 71, 0.04);
	background-color: #ffffff;
}

[data-header] .ct-header [data-id="logo"] .site-title-container {
	display: none;
}

[data-header] .ct-header [data-id="menu"] {
	--menu-items-spacing: 22px;
	--menu-item-height: 40px;
	--menu-item-radius: 999px;
}

[data-header] .ct-header [data-id="menu"] > ul {
	gap: 2px;
}

[data-header] .ct-header [data-id="menu"] > ul > li > a {
	--theme-font-family: var(--snb-display);
	--theme-font-size: 15.5px;
	--theme-font-weight: 700;
	--theme-text-transform: none;
	--theme-line-height: 1.2;
	--theme-link-initial-color: var(--snb-navy);
	--theme-link-hover-color: var(--snb-blue-ink);
	--theme-link-active-color: var(--snb-blue-ink);
	letter-spacing: 0.005em;
	transition: background-color 0.15s ease, color 0.15s ease;
}

[data-header] .ct-header [data-id="menu"] > ul > li > a:hover,
[data-header] .ct-header [data-id="menu"] > ul > li > a:focus-visible {
	background-color: var(--snb-sky-soft);
}

[data-header] .ct-header [data-id="menu"] > ul > li:is(.current-menu-item, .current-menu-ancestor) > a {
	background-color: var(--snb-sky-soft);
	box-shadow: inset 0 0 0 1px var(--snb-sky-line);
	color: var(--snb-blue-ink);
}

[data-header] .ct-header [data-id="menu"] .sub-menu {
	--dropdown-width: 260px;
	--dropdown-background-color: #ffffff;
	--dropdown-background-hover-color: var(--snb-sky-soft);
	--dropdown-divider: none;
	--theme-box-shadow: 0 18px 40px rgba(20, 42, 71, 0.14);
	--theme-border-radius: 12px;
	border: 1px solid var(--snb-line);
	padding: 6px 0;
}

[data-header] .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
	--theme-font-family: var(--snb-sans);
	--theme-font-size: 15px;
	--theme-font-weight: 600;
	--theme-text-transform: none;
	--theme-link-initial-color: var(--snb-navy);
	--theme-link-hover-color: var(--snb-blue-ink);
}

[data-header] .ct-header [data-id="search"],
[data-header] .ct-header [data-id="trigger"] {
	--theme-icon-color: var(--snb-navy);
	--theme-icon-hover-color: var(--snb-blue-ink);
	--theme-icon-size: 18px;
}

/* Knappen Jämför lån: grön som knapparna till topplistan */
[data-header] [data-id="button"] .ct-button {
	--theme-button-background-initial-color: var(--snb-green);
	--theme-button-background-hover-color: var(--snb-green-deep);
	--theme-button-text-initial-color: #ffffff;
	--theme-button-text-hover-color: #ffffff;
	--theme-button-border-radius: 999px;
	--theme-button-font-family: var(--snb-display);
	--theme-button-font-size: 16px;
	--theme-button-font-weight: 700;
	--theme-button-min-height: 42px;
	--theme-button-padding: 5px 22px;
	box-shadow: 0 6px 16px rgba(4, 120, 87, 0.22);
}


/* Mindre datorskärmar: menyn ska få plats på en rad utan Mer-knapp */
@media (min-width: 1200px) and (max-width: 1365.98px) {
	[data-header] .ct-header [data-id="menu"] {
		--menu-items-spacing: 18px;
	}

	[data-header] .ct-header [data-id="menu"] > ul > li > a {
		--theme-font-size: 15px;
	}

	[data-header] .ct-header [data-id="logo"] .site-logo-container {
		--logo-max-height: 32px;
	}

	[data-header] [data-id="button"] .ct-button {
		--theme-button-padding: 5px 18px;
		--theme-button-font-size: 15px;
	}
}

@media (min-width: 1000px) and (max-width: 1199.98px) {
	[data-header] .ct-header [data-id="menu"] {
		--menu-items-spacing: 16px;
	}

	[data-header] .ct-header [data-id="menu"] > ul > li > a {
		--theme-font-size: 14.5px;
	}

	[data-header] .ct-header [data-id="logo"] .site-logo-container {
		--logo-max-height: 28px;
	}

	[data-header] .ct-header [data-device="desktop"] [data-id="button"] {
		display: none;
	}
}

/* 4. Mobilmenyn och sökrutan ------------------------------------------------ */

[data-header] #offcanvas {
	--side-panel-width: 420px;
	--theme-box-shadow: -20px 0 60px rgba(15, 31, 53, 0.25);
}

[data-header] #offcanvas .ct-panel-inner {
	background-color: #ffffff;
}

[data-header] #offcanvas .ct-toggle-close {
	--theme-icon-color: var(--snb-navy);
	--theme-icon-hover-color: var(--snb-blue-ink);
	--toggle-button-background: var(--snb-sky-soft);
	--toggle-button-radius: 999px;
}

[data-header] [data-id="mobile-menu"] {
	--theme-font-family: var(--snb-display);
	--theme-font-size: 20px;
	--theme-font-weight: 700;
	--theme-text-transform: none;
	--theme-link-initial-color: var(--snb-navy);
	--theme-link-hover-color: var(--snb-blue-ink);
	--theme-link-active-color: var(--snb-blue-ink);
	--mobile-menu-divider: 1px solid var(--snb-line);
	--items-vertical-spacing: 14px;
}

[data-header] [data-id="mobile-menu"] .sub-menu {
	--theme-font-family: var(--snb-sans);
	--theme-font-size: 16px;
	--theme-font-weight: 600;
	--theme-link-initial-color: var(--snb-text);
}

[data-header] [data-id="mobile-menu"] .current-menu-item > a {
	color: var(--snb-blue-ink);
}

[data-header] #offcanvas [data-id="button"] {
	width: 100%;
	margin-top: 22px;
}

[data-header] #offcanvas [data-id="button"] .ct-button {
	display: flex;
	width: 100%;
	--theme-button-min-height: 50px;
	--theme-button-font-size: 17px;
}

[data-header] #search-modal {
	background-color: rgba(21, 44, 74, 0.97);
}

[data-header] #search-modal .ct-search-form {
	--theme-button-background-initial-color: var(--snb-green);
	--theme-button-background-hover-color: var(--snb-green-deep);
}

/* 5. Rubrikbandet ------------------------------------------------------------ */

.snb-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #e9f1ff 0%, #f4f8ff 100%);
	border-bottom: 1px solid var(--snb-sky-line);
}

/* Fartlinjerna från logotypen, svagt i bandets högra kant */
.snb-hero::before {
	content: "";
	position: absolute;
	top: 26px;
	right: -40px;
	width: 300px;
	height: 120px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 120'%3E%3Cg stroke-linecap='round' stroke-width='14' fill='none'%3E%3Cpath d='M70 22h230' stroke='%233b82f6' stroke-opacity='.13'/%3E%3Cpath d='M20 60h280' stroke='%2310b981' stroke-opacity='.14'/%3E%3Cpath d='M110 98h190' stroke='%233b82f6' stroke-opacity='.1'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
}

.snb-hero__inner {
	position: relative;
	width: var(--theme-container-width);
	max-width: var(--theme-normal-container-max-width);
	margin: 0 auto;
	padding: 30px 0 32px;
}

.snb-hero--narrow .snb-hero__inner {
	max-width: var(--theme-narrow-container-max-width);
}

.snb-hero__text {
	min-width: 0;
}

.snb-hero__title {
	margin: 0 0 18px;
	color: var(--snb-ink);
	max-width: 22em;
	text-wrap: balance;
}

.snb-hero__media {
	display: none;
	margin: 0;
}

.snb-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(20, 42, 71, 0.08), 0 18px 40px rgba(20, 42, 71, 0.16);
}

/* Brödsmulor */
.snb-crumbs {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--snb-muted);
}

.snb-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snb-crumbs__item {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.snb-crumbs__item + .snb-crumbs__item::before {
	content: "/";
	margin: 0 9px;
	color: #9db0c9;
	font-weight: 400;
}

.snb-crumbs a {
	color: var(--snb-navy);
	font-weight: 600;
	text-decoration: none;
}

.snb-crumbs a:hover,
.snb-crumbs a:focus-visible {
	color: var(--snb-blue-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.snb-crumbs [aria-current="page"] span {
	color: var(--snb-muted);
}

/* Byline: bild, skribent och datum på en rad */
.snb-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--snb-muted);
}

.snb-byline__avatar {
	flex: 0 0 auto;
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px var(--snb-sky-line);
}

.snb-byline__img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 50%;
}

.snb-byline__body {
	min-width: 0;
}

.snb-byline p {
	margin: 0;
}

.snb-byline__who {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 10px;
	row-gap: 2px;
	color: var(--snb-text);
}

.snb-byline__name {
	color: var(--snb-ink);
	font-weight: 700;
	text-decoration: none;
}

.snb-byline__name:hover,
.snb-byline__name:focus-visible {
	color: var(--snb-blue-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.snb-byline__role {
	position: relative;
	padding-left: 11px;
	font-size: 14px;
	color: var(--snb-muted);
}

.snb-byline__role::before,
.snb-byline__item + .snb-byline__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	border-radius: 50%;
	background: #9db0c9;
}

.snb-byline__reviewer {
	flex-basis: 100%;
	font-size: 14px;
}

.snb-byline__reviewer a {
	color: var(--snb-ink);
	font-weight: 700;
}

.snb-byline__meta {
	display: flex;
	flex-wrap: wrap;
	column-gap: 0;
	row-gap: 2px;
	margin-top: 3px !important;
	font-size: 14px;
}

.snb-byline__item {
	position: relative;
	white-space: nowrap;
}

.snb-byline__item + .snb-byline__item {
	margin-left: 10px;
	padding-left: 11px;
}

.snb-byline time,
.snb-byline__read strong {
	color: var(--snb-text);
	font-weight: 650;
}

/* Kontrollerade villkor (sidor med topplista) */
.snb-hero__verified {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	padding: 7px 14px 7px 11px;
	border: 1px solid #bfe8d6;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	color: var(--snb-green-deep);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.snb-hero__verified svg {
	flex: 0 0 auto;
	color: var(--snb-mint);
}

/* 6. Artikelytan ------------------------------------------------------------- */

.entry-content > :first-child {
	margin-top: 0;
}

/* Knappen under ingressen som hoppar till topplistan */
.entry-content .snb-jump {
	margin: 6px 0 26px;
}

.entry-content .snb-jump__btn,
.snb-side-cta__btn,
.snb-mobile-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--snb-green);
	color: #ffffff !important;
	font-family: var(--snb-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(4, 120, 87, 0.22);
	transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.entry-content .snb-jump__btn:hover,
.entry-content .snb-jump__btn:focus-visible,
.snb-side-cta__btn:hover,
.snb-side-cta__btn:focus-visible,
.snb-mobile-cta__btn:hover,
.snb-mobile-cta__btn:focus-visible {
	background: var(--snb-green-deep);
	box-shadow: 0 8px 20px rgba(6, 95, 70, 0.28);
	transform: translateY(-1px);
}

.snb-jump__btn svg,
.snb-side-cta__btn svg,
.snb-mobile-cta__btn svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.entry-content #jamfor,
.entry-content #jamfor-lista {
	scroll-margin-top: 20px;
}

/* Innehållsförteckningen i texten (mobil och surfplatta) */
.entry-content .snb-toc--inline {
	margin: 4px 0 30px;
	border: 1px solid var(--snb-line);
	border-radius: var(--snb-radius);
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(20, 42, 71, 0.04);
	overflow: hidden;
}

.snb-toc__details {
	margin: 0;
}

.snb-toc__summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 18px;
	cursor: pointer;
	list-style: none;
	font-family: var(--snb-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--snb-ink);
	user-select: none;
}

.snb-toc__summary::-webkit-details-marker {
	display: none;
}

.snb-toc__summary::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin: -4px 4px 0 0;
	border-right: 2px solid var(--snb-blue);
	border-bottom: 2px solid var(--snb-blue);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.snb-toc__details[open] > .snb-toc__summary::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.snb-toc__count {
	margin-left: auto;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--snb-sky-soft);
	color: var(--snb-navy);
	font-family: var(--snb-sans);
	font-size: 13px;
	font-weight: 600;
}

.entry-content .snb-toc__list {
	counter-reset: snb-toc;
	margin: 0;
	padding: 6px 18px 14px;
	border-top: 1px solid var(--snb-line);
	list-style: none;
}

.entry-content .snb-toc__list li {
	counter-increment: snb-toc;
	position: relative;
	margin: 0;
	padding: 8px 0 8px 38px;
	border-bottom: 1px dashed var(--snb-line);
	font-size: 16px;
	line-height: 1.4;
	list-style: none;
}

.entry-content .snb-toc__list li:last-child {
	border-bottom: 0;
}

.entry-content .snb-toc__list li::before {
	content: counter(snb-toc, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 9px;
	color: var(--snb-blue);
	font-family: var(--snb-display);
	font-size: 15px;
	font-weight: 700;
}

.entry-content .snb-toc__list a {
	color: var(--snb-navy);
	font-weight: 600;
	text-decoration: none;
}

.entry-content .snb-toc__list a:hover,
.entry-content .snb-toc__list a:focus-visible {
	color: var(--snb-blue-ink);
	text-decoration: underline;
}

/* 7. Sidokolumnen ------------------------------------------------------------ */

#sidebar .ct-sidebar {
	--theme-font-size: 15px;
}

/* Kolumnen följer med när läsaren scrollar */
#sidebar .ct-sidebar[data-sticky-sidebar] {
	top: 24px;
}

.snb-side {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.snb-toc--side {
	padding: 18px 8px 10px 18px;
	border: 1px solid var(--snb-line);
	border-radius: var(--snb-radius);
	background: #ffffff;
	box-shadow: var(--snb-shadow);
}

.snb-toc__heading {
	margin: 0 10px 8px 0;
	font-family: var(--snb-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--snb-ink);
}

.snb-toc--side .snb-toc__list {
	max-height: calc(100vh - 330px);
	min-height: 120px;
	margin: 0;
	padding: 0 10px 6px 0;
	overflow-y: auto;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: var(--snb-sky-line) transparent;
}

.snb-toc--side .snb-toc__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.snb-toc--side .snb-toc__list a {
	display: block;
	padding: 7px 10px 7px 12px;
	border-left: 2px solid var(--snb-line);
	color: var(--snb-text);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.snb-toc--side .snb-toc__list a:hover,
.snb-toc--side .snb-toc__list a:focus-visible {
	color: var(--snb-blue-ink);
	border-left-color: var(--snb-sky);
}

.snb-toc--side .snb-toc__list a[aria-current] {
	color: var(--snb-navy);
	font-weight: 700;
	border-left-color: var(--snb-blue);
	background: linear-gradient(90deg, var(--snb-sky-soft), rgba(238, 244, 255, 0));
}

/* Rutan som leder till topplistan */
.snb-side-cta {
	position: relative;
	overflow: hidden;
	padding: 20px;
	border-radius: var(--snb-radius);
	background: linear-gradient(150deg, var(--snb-navy) 0%, var(--snb-navy-deep) 100%);
	color: #dbe6f5;
}

.snb-side-cta::after {
	content: "";
	position: absolute;
	top: 16px;
	right: -46px;
	width: 130px;
	height: 52px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 60'%3E%3Cg stroke-linecap='round' stroke-width='8' fill='none'%3E%3Cpath d='M40 10h110' stroke='%233b82f6' stroke-opacity='.35'/%3E%3Cpath d='M10 30h140' stroke='%2310b981' stroke-opacity='.35'/%3E%3Cpath d='M60 50h90' stroke='%233b82f6' stroke-opacity='.25'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
}

.snb-side-cta__title {
	position: relative;
	margin: 0 0 6px;
	font-family: var(--snb-display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}

.snb-side-cta__text {
	position: relative;
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.55;
}

.snb-side-cta__btn {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 11px 18px;
	font-size: 16px;
	background: var(--snb-mint);
	color: var(--snb-ink) !important;
	box-shadow: none;
}

.snb-side-cta__btn:hover,
.snb-side-cta__btn:focus-visible {
	background: #34d399;
	box-shadow: none;
}

/* 8. Profilrutan ------------------------------------------------------------- */

.snb-author {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	margin: 48px 0 0;
	padding: 22px 24px;
	border: 1px solid var(--snb-line);
	border-radius: var(--snb-radius);
	background: linear-gradient(180deg, #ffffff 0%, var(--snb-soft) 100%);
}

.snb-author__avatar {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px var(--snb-sky-line);
}

.snb-author__img {
	display: block;
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 50%;
}

.snb-author__body p {
	margin: 0;
}

.snb-author__eyebrow {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--snb-blue);
}

.snb-author__name {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 10px;
	margin: 2px 0 8px !important;
	font-family: var(--snb-display);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.snb-author__name a {
	color: var(--snb-ink);
	text-decoration: none;
}

.snb-author__name a:hover {
	color: var(--snb-blue-ink);
}

.snb-author__role {
	font-family: var(--snb-sans);
	font-size: 14px;
	font-weight: 500;
	color: var(--snb-muted);
}

.snb-author__bio {
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--snb-text);
}

.snb-author__bio p + p {
	margin-top: 8px;
}

.snb-author__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	color: var(--snb-blue-ink);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}

.snb-author__more::after {
	content: "";
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.snb-author__more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 9. Senaste nytt, arkiv och nyhetskort -------------------------------------- */

.snb-news {
	padding: 56px 0 64px;
	background: var(--snb-soft);
	border-top: 1px solid var(--snb-line);
}

.snb-news__inner {
	width: var(--theme-container-width);
	max-width: var(--theme-normal-container-max-width);
	margin: 0 auto;
}

.snb-news__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.snb-news__heading {
	margin: 0;
	color: var(--snb-ink);
}

.snb-news__all {
	color: var(--snb-blue-ink);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.snb-news__all:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.snb-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.snb-news__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--snb-line);
	border-radius: var(--snb-radius);
	background: #ffffff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.snb-news__card:hover {
	box-shadow: var(--snb-shadow);
	transform: translateY(-2px);
}

.snb-news__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--snb-sky-soft);
}

.snb-news__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.snb-news__body {
	padding: 16px 18px 20px;
}

.snb-news__body p {
	margin: 0;
}

.snb-news__date {
	font-size: 13.5px;
	color: var(--snb-muted);
}

.snb-news__title {
	margin: 6px 0 8px;
	font-size: 1.2rem;
	line-height: 1.3;
}

.snb-news__title a {
	color: var(--snb-ink);
	text-decoration: none;
}

.snb-news__title a:hover {
	color: var(--snb-blue-ink);
}

.snb-news__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: var(--snb-text);
}

/* Arkiv (Tips, kategorier, skribentens sida) */
.hero-section {
	--theme-heading-color: var(--snb-ink);
}

[data-prefix] .hero-section[data-type="type-2"] {
	--min-height: 0px;
	background: linear-gradient(180deg, #e9f1ff 0%, #f4f8ff 100%);
	border-bottom: 1px solid var(--snb-sky-line);
}

[data-prefix] .hero-section[data-type="type-2"] > .ct-container {
	padding-top: 46px;
	padding-bottom: 46px;
}

.hero-section .page-title {
	color: var(--snb-ink);
}

.hero-section .page-description {
	color: var(--snb-muted);
}

[data-prefix] .entries .entry-card {
	border: 1px solid var(--snb-line);
	border-radius: var(--snb-radius);
	background-color: #ffffff;
	box-shadow: none;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

[data-prefix] .entries .entry-card:hover {
	box-shadow: var(--snb-shadow);
	transform: translateY(-2px);
}

.entries .entry-card .entry-title {
	--theme-font-size: 1.25rem;
	--theme-line-height: 1.3;
	color: var(--snb-ink);
}

.entries .entry-card .entry-title a {
	color: var(--snb-ink);
}

.entries .entry-card .entry-title a:hover {
	color: var(--snb-blue-ink);
}

.entries .entry-card .entry-excerpt {
	color: var(--snb-text);
	font-size: 15.5px;
	line-height: 1.6;
}

.entries .entry-card .entry-meta {
	--theme-text-transform: none;
	--theme-font-size: 13.5px;
	--theme-font-weight: 500;
	color: var(--snb-muted);
}

.entries .entry-card .entry-meta a {
	color: var(--snb-blue-ink);
	font-weight: 700;
}

.entries .entry-card .ct-media-container,
.entries .entry-card img {
	border-radius: 0;
}

.ct-pagination {
	--theme-link-initial-color: var(--snb-navy);
	--theme-link-hover-color: var(--snb-blue-ink);
}

.ct-pagination .page-numbers.current {
	background: var(--snb-navy);
	color: #ffffff;
}

/* Skribentens sida */
.hero-section .ct-author-name,
.hero-section [data-field="title"] {
	color: var(--snb-ink);
}

[data-prefix] .hero-section .entry-meta {
	--theme-text-transform: none;
	--theme-font-size: 14px;
	--theme-font-weight: 500;
}

/* 10. Etiketter, relaterade inlägg och kommentarer --------------------------- */

.entry-tags {
	margin-top: 36px;
}

.entry-tags .ct-module-title {
	font-family: var(--snb-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--snb-ink);
	text-transform: none;
}

.entry-tags-items a {
	--theme-link-initial-color: var(--snb-navy);
	--theme-link-hover-color: var(--snb-blue-ink);
	border-radius: 999px !important;
	background: var(--snb-sky-soft) !important;
	border: 1px solid var(--snb-sky-line) !important;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
}

.entry-tags-items a > span {
	display: none;
}

.ct-related-posts-container {
	background: var(--snb-soft);
	border-top: 1px solid var(--snb-line);
}

.ct-related-posts .ct-module-title {
	margin-top: 0;
	color: var(--snb-ink);
	--theme-font-size: 1.55rem;
}

.ct-related-posts .related-entry-title {
	--theme-font-size: 1.1rem;
	--theme-line-height: 1.35;
	margin-top: 12px;
}

.ct-related-posts .related-entry-title a {
	color: var(--snb-ink);
}

.ct-related-posts .related-entry-title a:hover {
	color: var(--snb-blue-ink);
}

.ct-related-posts .ct-media-container,
.ct-related-posts .ct-media-container img {
	border-radius: 12px;
}

.ct-comments :is(.ct-comments-title, .comment-reply-title) {
	color: var(--snb-ink);
}

/* 11. Sidfoten --------------------------------------------------------------- */

#footer {
	background: #ffffff;
}

.snb-footer {
	font-size: 15px;
	line-height: 1.55;
	color: var(--snb-text);
}

.snb-footer__top {
	padding: 56px 0 36px;
	background: linear-gradient(180deg, var(--snb-soft) 0%, #eef3fa 100%);
	border-top: 1px solid var(--snb-line);
}

.snb-footer__inner {
	width: var(--theme-container-width);
	max-width: var(--theme-normal-container-max-width);
	margin: 0 auto;
}

.snb-footer__top > .snb-footer__inner:first-child {
	display: grid;
	grid-template-columns: minmax(240px, 1.1fr) 3fr;
	gap: 48px;
}

.snb-footer p {
	margin: 0;
}

.snb-footer a {
	color: var(--snb-navy);
	text-decoration: none;
	transition: color 0.15s ease;
}

.snb-footer a:hover,
.snb-footer a:focus-visible {
	color: var(--snb-blue-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.snb-footer__logo {
	display: inline-block;
	margin-bottom: 16px;
}

.snb-footer__logo-img {
	display: block;
	width: auto;
	height: 36px;
}

.snb-footer__logo--text {
	font-family: var(--snb-display);
	font-size: 22px;
	font-weight: 700;
}

.snb-footer__about {
	max-width: 30em;
	color: var(--snb-text);
}

.snb-footer__company {
	margin-top: 14px !important;
	padding-top: 14px;
	border-top: 1px solid var(--snb-line);
	font-size: 14px;
	color: var(--snb-muted);
}

.snb-footer__company a {
	color: var(--snb-navy);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--snb-sky-line);
	text-underline-offset: 3px;
}

.snb-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}

.snb-footer__col {
	min-width: 0;
}

.snb-footer__title {
	display: block;
	margin: 0 0 12px;
	font-family: var(--snb-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--snb-ink);
	list-style: none;
	cursor: default;
}

.snb-footer__title::-webkit-details-marker {
	display: none;
}

.snb-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.snb-footer__links li {
	margin: 0;
	padding: 4px 0;
}

/* Lånebeloppen som knappar */
.snb-footer__amounts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--snb-line);
}

.snb-footer__amounts-title {
	font-family: var(--snb-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--snb-ink);
}

.snb-footer__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snb-footer__chips li {
	margin: 0;
	padding: 0;
}

.snb-footer__chips a {
	display: inline-block;
	padding: 6px 13px;
	border: 1px solid var(--snb-sky-line);
	border-radius: 999px;
	background: #ffffff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.snb-footer__chips a:hover,
.snb-footer__chips a:focus-visible {
	border-color: var(--snb-blue);
	background: var(--snb-sky-soft);
	text-decoration: none;
}

/* Nedre raden */
.snb-footer__bottom {
	padding: 18px 0 20px;
	background: var(--snb-navy-deep);
	color: #c4d3e8;
	font-size: 14px;
}

.snb-footer__bottom .snb-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
}

.snb-footer__copy {
	color: #c4d3e8;
}

.snb-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snb-footer__legal li {
	margin: 0;
	padding: 0;
}

.snb-footer__bottom a {
	color: #e6eef9;
}

.snb-footer__bottom a:hover,
.snb-footer__bottom a:focus-visible {
	color: #ffffff;
}

/* 12. Mobilknappen till topplistan ------------------------------------------- */

.snb-mobile-cta {
	display: none;
}

/* 13. Långivarsidor (egen mall från Snabblåndirekt Loan Compare) ------------- */

.snb-company-crumbs {
	width: var(--theme-container-width);
	max-width: 900px;
	margin: 0 auto;
	padding: 26px 0 0;
}

.snb-company-crumbs .snb-crumbs {
	margin: 0;
}

.single-companies_post_type #main .skkc-single-main {
	width: var(--theme-container-width);
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	padding: 22px 0 64px;
}

/* Logotypen räcker som rubrik på långivarsidorna, annars står namnet två
   gånger. H1 finns kvar i koden för Google och skärmläsare men visas inte. */
.single-companies_post_type .skkc-single-header .skkc-single-title {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* 14. Formulär, knappar och tillbaka upp ------------------------------------- */

.ct-back-to-top {
	--theme-icon-color: #ffffff;
	--theme-icon-hover-color: #ffffff;
	--top-button-background-color: var(--snb-navy);
	--top-button-background-hover-color: var(--snb-blue-ink);
	--theme-border-radius: 999px;
	box-shadow: 0 6px 18px rgba(15, 31, 53, 0.22);
}

/* 15. Surfplatta och mobil --------------------------------------------------- */

@media (min-width: 1000px) {
	.snb-hero.has-media .snb-hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 29%;
		column-gap: 56px;
		align-items: center;
		padding: 34px 0 36px;
	}

	.snb-hero.has-media .snb-hero__media {
		display: block;
	}

	.snb-hero.has-media::before {
		display: none;
	}

	/* Förteckningen i texten behövs inte när sidokolumnen visas */
	[data-sidebar] .entry-content .snb-toc--inline {
		display: none;
	}
}

@media (max-width: 999.98px) {
	:root {
		--theme-content-vertical-spacing: 34px;
	}

	.snb-footer__top > .snb-footer__inner:first-child {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.snb-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 32px;
	}

	.snb-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.snb-news__grid > :nth-child(3) {
		display: none;
	}

	/* Nyheter: bilden visas under bylinen även på mobil och surfplatta */
	.snb-hero--post.has-media .snb-hero__media {
		display: block;
		margin-top: 22px;
	}

	.snb-hero--post .snb-hero__img {
		aspect-ratio: 16 / 9;
	}

	/* Fast knapp längst ner, visas bara när topplistan inte syns */
	.snb-mobile-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 -8px 24px rgba(15, 31, 53, 0.12);
		border-top: 1px solid var(--snb-line);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	.snb-mobile-cta[hidden] {
		display: none;
	}

	.snb-mobile-cta.is-visible {
		transform: translateY(0);
		visibility: visible;
		transition: transform 0.25s ease;
	}

	.snb-mobile-cta__btn {
		display: flex;
		width: 100%;
		max-width: 520px;
		margin: 0 auto;
		padding: 13px 20px;
	}
}

@media (max-width: 689.98px) {
	:root {
		--theme-font-size: 16.5px;
		--theme-content-vertical-spacing: 26px;
	}

	.snb-hero__inner {
		padding: 20px 0 22px;
	}

	.snb-hero::before {
		display: none;
	}

	.snb-hero__title {
		margin-bottom: 14px;
	}

	/* Brödsmulorna hålls på en rad, sista ledet kortas med ... */
	.snb-crumbs {
		margin-bottom: 10px;
		font-size: 13.5px;
	}

	.snb-crumbs__list {
		flex-wrap: nowrap;
		white-space: nowrap;
	}

	.snb-crumbs__item {
		flex: 0 0 auto;
	}

	.snb-crumbs__item[aria-current="page"] {
		flex: 0 1 auto;
		overflow: hidden;
	}

	.snb-crumbs [aria-current="page"] span {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.snb-byline {
		align-items: flex-start;
		gap: 12px;
	}

	.snb-byline__avatar,
	.snb-byline__img {
		width: 42px;
		height: 42px;
	}

	/* Datum och lästid radbryts utan punkter i början av raden */
	.snb-byline__meta {
		column-gap: 14px;
		font-size: 13.5px;
	}

	.snb-byline__item + .snb-byline__item {
		margin-left: 0;
		padding-left: 0;
	}

	.snb-byline__item + .snb-byline__item::before {
		content: none;
	}

	.snb-hero__verified {
		margin-top: 14px;
		font-size: 13.5px;
		border-radius: 12px;
	}

	.entry-content .snb-jump__btn {
		display: flex;
		width: 100%;
	}

	.entry-content > h2 {
		margin-top: 42px;
	}

	.snb-author {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 18px;
	}

	.snb-author__avatar,
	.snb-author__img {
		width: 64px;
		height: 64px;
	}

	.snb-news {
		padding: 40px 0 44px;
	}

	.snb-news__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.snb-news__grid > :nth-child(3) {
		display: flex;
	}

	/* Sidfotens länkgrupper fälls ihop, rubriken öppnar listan */
	.snb-footer__top {
		padding: 40px 0 28px;
	}

	.snb-footer__cols {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.snb-footer__col {
		border-bottom: 1px solid var(--snb-line);
	}

	.snb-footer__col:first-child {
		border-top: 1px solid var(--snb-line);
	}

	.snb-footer__title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 15px 2px;
		cursor: pointer;
	}

	.snb-footer__title::after {
		content: "";
		width: 8px;
		height: 8px;
		margin: -4px 4px 0 0;
		border-right: 2px solid var(--snb-navy);
		border-bottom: 2px solid var(--snb-navy);
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	.snb-footer__col[open] > .snb-footer__title::after {
		margin-top: 4px;
		transform: rotate(-135deg);
	}

	.snb-footer__links {
		padding-bottom: 12px;
	}

	.snb-footer__links li {
		padding: 6px 2px;
	}

	.snb-footer__amounts {
		margin-top: 26px;
		padding-top: 0;
		border-top: 0;
	}

	.snb-footer__bottom .snb-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.snb-company-crumbs {
		padding-top: 18px;
	}

	.single-companies_post_type #main .skkc-single-main {
		padding: 16px 0 40px;
	}
}
