/*
Theme Name: Bästa kreditkort
Theme URI: https://bastakreditkort.nu/
Description: Barntema för bastakreditkort.nu byggt på GeneratePress. Eget sidhuvud och sidfot, årskostnadskalkyl på startsidan och en smal läsyta för guiderna.
Author: Averdis AB
Template: generatepress
Version: 1.0.11
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: bkn-generatepress-child
*/

@font-face {
	font-family: "Schibsted Grotesk";
	src: url("assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Schibsted Grotesk";
	src: url("assets/fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--bkn-blak: #1d2357;
	--bkn-blak-mork: #141a45;
	--bkn-blak-ljus: #eceffa;
	--bkn-text: #1c2133;
	--bkn-dampad: #596079;
	--bkn-linje: #dde2ec;
	--bkn-yta: #ffffff;
	--bkn-papper: #f4f6fa;
	--bkn-gron: #0b7a5c;
	--bkn-gron-mork: #075e46;
	--bkn-gron-ljus: #e3f3ed;
	--bkn-chip: #c9a227;
	--bkn-lank: #2b3a9e;
	--bkn-las: 760px;
	--bkn-bred: 1180px;
	--bkn-kant: 24px;
	--bkn-typsnitt: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Grund ---------- */

body,
button,
input,
select,
textarea {
	font-family: var(--bkn-typsnitt);
}
body {
	background: var(--bkn-yta);
	color: var(--bkn-text);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--bkn-blak);
	font-family: var(--bkn-typsnitt);
	font-weight: 750;
	letter-spacing: -0.012em;
}
a {
	color: var(--bkn-lank);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
a:hover,
a:focus {
	color: var(--bkn-blak);
}
:focus-visible {
	outline: 3px solid var(--bkn-chip);
	outline-offset: 2px;
}
::selection {
	background: var(--bkn-blak-ljus);
	color: var(--bkn-blak);
}
.screen-reader-text:focus {
	background: var(--bkn-yta);
	color: var(--bkn-blak);
}

/* ---------- Sidhuvud ---------- */

.bkn-topp {
	position: relative;
	z-index: 50;
	background: var(--bkn-yta);
	border-bottom: 1px solid var(--bkn-linje);
}
.bkn-topp__inre {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: var(--bkn-bred);
	min-height: 74px;
	margin: 0 auto;
	padding: 0 var(--bkn-kant);
}
.bkn-logga {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--bkn-blak);
	text-decoration: none;
	flex-shrink: 0;
}
.bkn-logga:hover,
.bkn-logga:focus {
	color: var(--bkn-blak);
}
.bkn-logga__ikon {
	display: block;
	width: 44px;
	height: 30px;
}
.bkn-logga__namn {
	font-size: 1.28rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}
.bkn-logga--ljus,
.bkn-logga--ljus:hover,
.bkn-logga--ljus:focus {
	color: #fff;
}

.bkn-nav {
	margin-left: auto;
}
.bkn-nav__lista,
.bkn-nav__lista .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bkn-nav__lista {
	display: flex;
	align-items: center;
	gap: 2px;
}
.bkn-nav__lista > li {
	position: relative;
	margin: 0;
}
.bkn-nav__lista a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--bkn-blak);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}
.bkn-nav__lista > li > a:hover,
.bkn-nav__lista > li:focus-within > a {
	background: var(--bkn-blak-ljus);
}
.bkn-nav__lista > .current-menu-item > a,
.bkn-nav__lista > .current-menu-ancestor > a,
.bkn-nav__lista > .current-menu-parent > a {
	box-shadow: inset 0 -3px 0 var(--bkn-chip);
	border-radius: 8px 8px 0 0;
}
.bkn-nav__lista > .menu-item-has-children > a {
	padding-right: 28px;
}
.bkn-nav__lista > .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.6;
}
.bkn-nav__lista .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 260px;
	padding: 8px;
	background: var(--bkn-yta);
	border: 1px solid var(--bkn-linje);
	border-radius: 12px;
	box-shadow: 0 18px 40px -22px rgba(29, 35, 87, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
}
.bkn-nav__lista > li:nth-last-child(-n+2) > .sub-menu {
	left: auto;
	right: 0;
}
.bkn-nav__lista .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -8px;
	height: 8px;
}
.bkn-nav__lista > li:hover > .sub-menu,
.bkn-nav__lista > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.14s ease, transform 0.14s ease;
}
.bkn-nav__lista .sub-menu li {
	margin: 0;
}
.bkn-nav__lista .sub-menu a {
	padding: 9px 12px;
	font-weight: 550;
	font-size: 15.5px;
}
.bkn-nav__lista .sub-menu a:hover,
.bkn-nav__lista .sub-menu a:focus,
.bkn-nav__lista .sub-menu .current-menu-item > a {
	background: var(--bkn-papper);
}
.bkn-nav__vaxla {
	display: none;
}

.bkn-menyknapp {
	display: none;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 10px 14px;
	border: 1px solid var(--bkn-linje);
	border-radius: 10px;
	background: var(--bkn-yta);
	color: var(--bkn-blak);
	font-size: 16px;
	font-weight: 650;
	line-height: 1;
	cursor: pointer;
}
.bkn-menyknapp:hover,
.bkn-menyknapp:focus {
	background: var(--bkn-papper);
	color: var(--bkn-blak);
}
.bkn-menyknapp__streck,
.bkn-menyknapp__streck::before,
.bkn-menyknapp__streck::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.15s ease;
}
.bkn-menyknapp__streck {
	position: relative;
}
.bkn-menyknapp__streck::before,
.bkn-menyknapp__streck::after {
	content: "";
	position: absolute;
	left: 0;
}
.bkn-menyknapp__streck::before {
	top: -6px;
}
.bkn-menyknapp__streck::after {
	top: 6px;
}
.bkn-topp.ar-oppen .bkn-menyknapp__streck {
	background: transparent;
}
.bkn-topp.ar-oppen .bkn-menyknapp__streck::before {
	transform: translateY(6px) rotate(45deg);
}
.bkn-topp.ar-oppen .bkn-menyknapp__streck::after {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1020px) {
	.bkn-menyknapp {
		display: inline-flex;
	}
	.bkn-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - 74px);
		overflow-y: auto;
		background: var(--bkn-yta);
		border-bottom: 1px solid var(--bkn-linje);
		box-shadow: 0 24px 40px -30px rgba(29, 35, 87, 0.6);
	}
	.bkn-topp.ar-oppen .bkn-nav {
		display: block;
	}
	.bkn-nav__lista {
		display: block;
		padding: 8px var(--bkn-kant) 18px;
	}
	.bkn-nav__lista > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid var(--bkn-linje);
	}
	.bkn-nav__lista > li:last-child {
		border-bottom: 0;
	}
	.bkn-nav__lista > li > a {
		flex: 1 1 auto;
		padding: 14px 4px;
		font-size: 17px;
	}
	.bkn-nav__lista > li > a:hover,
	.bkn-nav__lista > li:focus-within > a {
		background: none;
	}
	.bkn-nav__lista > .menu-item-has-children > a {
		padding-right: 4px;
	}
	.bkn-nav__lista > .menu-item-has-children > a::after {
		display: none;
	}
	.bkn-nav__lista > .current-menu-item > a,
	.bkn-nav__lista > .current-menu-ancestor > a,
	.bkn-nav__lista > .current-menu-parent > a {
		box-shadow: none;
		text-decoration: underline;
		text-decoration-color: var(--bkn-chip);
		text-decoration-thickness: 3px;
		text-underline-offset: 6px;
	}
	.bkn-nav__vaxla {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: transparent;
		color: var(--bkn-blak);
		cursor: pointer;
	}
	.bkn-nav__vaxla:hover,
	.bkn-nav__vaxla:focus {
		background: var(--bkn-papper);
		color: var(--bkn-blak);
	}
	.bkn-nav__vaxla::before {
		content: "";
		width: 9px;
		height: 9px;
		margin-top: -4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.15s ease;
	}
	.bkn-nav__vaxla[aria-expanded="true"]::before {
		margin-top: 4px;
		transform: rotate(225deg);
	}
	.bkn-nav__lista .sub-menu {
		position: static;
		display: none;
		flex: 1 1 100%;
		min-width: 0;
		margin: 0 0 12px;
		padding: 4px 0 4px 12px;
		border: 0;
		border-left: 2px solid var(--bkn-blak-ljus);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}
	.bkn-nav__lista .sub-menu.ar-oppen {
		display: block;
	}
	.bkn-nav__lista .sub-menu a {
		padding: 10px 8px;
		font-size: 16px;
	}
}

/* ---------- Startsidans hjältedel ---------- */

.bkn-hjalte {
	background: var(--bkn-blak);
	color: #fff;
}
.bkn-hjalte__inre {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: 56px;
	align-items: center;
	max-width: var(--bkn-bred);
	margin: 0 auto;
	padding: 60px var(--bkn-kant) 68px;
}
.bkn-hjalte__rubrik {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(2.05rem, 3.7vw, 3.1rem);
	font-weight: 800;
	line-height: 1.07;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.bkn-hjalte__ingress {
	max-width: 36em;
	margin: 0 0 22px;
	color: #d7dbf3;
	font-size: 1.14rem;
	line-height: 1.6;
}
.bkn-hjalte__lofte {
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}
.bkn-hjalte__lofte li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 28px;
	color: #eef0fb;
	font-size: 16.5px;
	line-height: 1.5;
}
.bkn-hjalte__lofte li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.32em;
	width: 14px;
	height: 9px;
	border-radius: 2px;
	background: var(--bkn-chip);
}

/* ---------- Byline och brödsmulor ---------- */

.bkn-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 12px 0 0;
	color: var(--bkn-dampad);
	font-size: 14.5px;
	line-height: 1.5;
}
.bkn-byline a {
	color: var(--bkn-blak);
	font-weight: 650;
	text-decoration: none;
	border-bottom: 1px solid var(--bkn-linje);
}
.bkn-byline a:hover,
.bkn-byline a:focus {
	border-bottom-color: currentColor;
}
.bkn-byline--ljus {
	margin-top: 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: #b9bfe3;
}
.bkn-byline--ljus a {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.3);
}
.bkn-smulor {
	max-width: var(--bkn-las);
	margin: 0 auto 14px;
	color: var(--bkn-dampad);
	font-size: 14px;
	line-height: 1.5;
}
.bkn-smulor p {
	margin: 0;
}
.bkn-smulor a {
	color: var(--bkn-dampad);
}

/* ---------- Innehållsytan ---------- */

.one-container .site-content,
.separate-containers .site-content {
	padding: 34px var(--bkn-kant) 64px;
}
.site-content {
	max-width: var(--bkn-bred);
}
.one-container.no-sidebar .site-main,
.separate-containers .site-main {
	margin: 0;
}
.separate-containers .inside-article,
.one-container .inside-article {
	padding: 0;
	background: transparent;
}
.single .inside-article,
.page .inside-article {
	max-width: var(--bkn-las);
	margin: 0 auto;
}
.entry-header {
	margin-bottom: 0;
}
.entry-title {
	margin-bottom: 0;
	font-size: clamp(1.95rem, 3.6vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.022em;
	text-wrap: balance;
}
.bkn-startsida .entry-header {
	display: none;
}
.bkn-startsida .one-container .site-content,
.bkn-startsida.one-container .site-content {
	padding-top: 44px;
}
.entry-content:not(:first-child) {
	margin-top: 1.6em;
}
.bkn-utvald {
	margin: 24px 0 0;
}
.bkn-utvald__bild {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.bkn-utvald figcaption {
	margin-top: 8px;
	color: var(--bkn-dampad);
	font-size: 14px;
	line-height: 1.5;
}

.entry-content {
	font-size: 18px;
}
.entry-content p {
	margin-bottom: 1.15em;
}
.entry-content h2 {
	margin: 2.1em 0 0.55em;
	font-size: 1.72rem;
	line-height: 1.2;
}
.entry-content h3 {
	margin: 1.7em 0 0.5em;
	font-size: 1.28rem;
	line-height: 1.3;
}
.entry-content h4 {
	margin: 1.5em 0 0.4em;
	font-size: 1.08rem;
}
.entry-content > h2:first-child,
.entry-content > h3:first-child {
	margin-top: 0.4em;
}
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.3em 1.25em;
}
.entry-content li {
	margin-bottom: 0.4em;
}
.entry-content li::marker {
	color: var(--bkn-blak);
}
.entry-content strong {
	font-weight: 700;
}
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--bkn-chip);
	color: var(--bkn-text);
	font-style: normal;
	font-size: 1em;
}
.entry-content img {
	border-radius: 10px;
}
.entry-content figure,
.entry-content .wp-caption {
	max-width: 100%;
	margin: 1.6em 0;
}
.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 8px;
	color: var(--bkn-dampad);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}
.entry-content table:not([class*="bak-"]):not([class*="bkn-"]) {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
	border: 0;
	font-size: 16px;
}
.entry-content table:not([class*="bak-"]):not([class*="bkn-"]) th,
.entry-content table:not([class*="bak-"]):not([class*="bkn-"]) td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--bkn-linje);
	text-align: left;
	vertical-align: top;
}
.entry-content table:not([class*="bak-"]):not([class*="bkn-"]) thead th {
	border-bottom: 2px solid var(--bkn-blak);
	color: var(--bkn-blak);
	font-weight: 700;
}

/* Jämförelsetabeller med flera kolumner. Under 700 px blir varje rad ett eget kort. */
.entry-content table.bkn-tabell {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
	border: 0;
	font-size: 16px;
}
.entry-content table.bkn-tabell th,
.entry-content table.bkn-tabell td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--bkn-linje);
	text-align: left;
	vertical-align: top;
}
.entry-content table.bkn-tabell thead th {
	background: var(--bkn-blak);
	color: #fff;
	font-weight: 700;
	border-bottom: 0;
}
.entry-content table.bkn-tabell thead th:first-child {
	border-radius: 8px 0 0 0;
}
.entry-content table.bkn-tabell thead th:last-child {
	border-radius: 0 8px 0 0;
}
.entry-content table.bkn-tabell tbody tr:nth-child(even) td {
	background: var(--bkn-papper);
}
.entry-content table.bkn-tabell tbody td:first-child {
	color: var(--bkn-blak);
	font-weight: 700;
}
@media (max-width: 700px) {
	.entry-content table.bkn-tabell thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.entry-content table.bkn-tabell,
	.entry-content table.bkn-tabell tbody,
	.entry-content table.bkn-tabell tr,
	.entry-content table.bkn-tabell td {
		display: block;
		width: 100%;
	}
	.entry-content table.bkn-tabell tr {
		margin: 0 0 12px;
		padding: 4px 14px;
		border: 1px solid var(--bkn-linje);
		border-radius: 12px;
		background: var(--bkn-yta);
	}
	.entry-content table.bkn-tabell tbody tr:nth-child(even) td {
		background: transparent;
	}
	.entry-content table.bkn-tabell td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 9px 0;
		text-align: right;
	}
	.entry-content table.bkn-tabell td:last-child {
		border-bottom: 0;
	}
	.entry-content table.bkn-tabell td::before {
		content: attr(data-label);
		color: var(--bkn-dampad);
		font-weight: 500;
		text-align: left;
	}
	.entry-content table.bkn-tabell td:first-child {
		display: block;
		text-align: left;
		font-size: 17px;
	}
	.entry-content table.bkn-tabell td:first-child::before {
		display: none;
	}
}

/* Breda element bryter ut ur läsytan på stora skärmar. */
.entry-content > ol.bkn-lista[class][class][class] {
	width: min(1040px, calc(100vw - 2 * var(--bkn-kant)));
	max-width: none;
	margin-left: calc((100% - min(1040px, calc(100vw - 2 * var(--bkn-kant)))) / 2);
}

/* Arkiv och sökresultat */
.blog .site-main,
.archive .site-main,
.search .site-main {
	max-width: var(--bkn-las);
	margin: 0 auto;
}
.blog .inside-article,
.archive .inside-article,
.search .inside-article {
	padding: 22px 0;
	border-bottom: 1px solid var(--bkn-linje);
}
.blog .entry-title,
.archive .entry-title,
.search .entry-title {
	font-size: 1.45rem;
}
.blog .entry-title a,
.archive .entry-title a,
.search .entry-title a {
	color: var(--bkn-blak);
	text-decoration: none;
}
.page-header {
	max-width: var(--bkn-las);
	margin: 0 auto 10px;
}

/* ---------- Sidfot ---------- */

.site-footer {
	background: transparent;
}
.bkn-fot {
	background: var(--bkn-blak-mork);
	color: #c4c9e6;
	font-size: 15.5px;
	line-height: 1.6;
}
.bkn-fot__inre {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	max-width: var(--bkn-bred);
	margin: 0 auto;
	padding: 56px var(--bkn-kant) 36px;
}
.bkn-fot__om p {
	max-width: 30em;
	margin: 16px 0 0;
}
.bkn-fot__agare {
	color: #fff;
	font-weight: 600;
}
.bkn-fot__rubrik {
	margin: 0 0 12px;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}
.bkn-fot__meny ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bkn-fot__meny li {
	margin: 0 0 7px;
}
.bkn-fot a {
	color: #e6e8f7;
	text-decoration: none;
}
.bkn-fot a:hover,
.bkn-fot a:focus {
	color: #fff;
	text-decoration: underline;
}
.bkn-fot__botten {
	max-width: var(--bkn-bred);
	margin: 0 auto;
	padding: 20px var(--bkn-kant) 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #9ea4cb;
	font-size: 13.5px;
}
.bkn-fot__botten p {
	max-width: 62em;
	margin: 0 0 6px;
}

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
	.bkn-hjalte__inre {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 40px var(--bkn-kant) 44px;
	}
	.bkn-fot__inre {
		grid-template-columns: 1fr 1fr;
	}
	.bkn-fot__om {
		grid-column: 1 / -1;
	}
}
@media (max-width: 768px) {
	:root {
		--bkn-kant: 16px;
	}
	body,
	.entry-content {
		font-size: 17px;
	}
	.bkn-topp__inre {
		min-height: 64px;
		gap: 12px;
	}
	.bkn-nav {
		max-height: calc(100vh - 64px);
	}
	.bkn-logga__namn {
		font-size: 1.12rem;
	}
	.bkn-logga__ikon {
		width: 38px;
		height: 26px;
	}
	.one-container .site-content,
	.separate-containers .site-content {
		padding: 22px var(--bkn-kant) 48px;
	}
	.entry-content h2 {
		font-size: 1.5rem;
	}
	.entry-content h3 {
		font-size: 1.2rem;
	}
	.bkn-hjalte__ingress {
		font-size: 1.06rem;
	}
}
@media (max-width: 560px) {
	.bkn-fot__inre {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-top: 44px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
