/* ==========================================================================
   Liberalistene – felles designspråk (lib-core)
   Design-tokens + rettelser på tvers av sider. Endre farger og typografi her.
   ========================================================================== */

:root {
	--lib-lilla: #2c0b2c;
	--lib-lilla-mork: #2c0b2c;
	--lib-gul: #fcb900;
	--lib-gul-hover: #e5a700;
	--lib-tekst: #1f1a1f;
	--lib-tekst-dempet: #5f5862;
	--lib-flate: #f7f5f8;
	--lib-kant: #e6e1e8;
	--lib-radius: 8px;
	--lib-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--lib-skygge: 0 8px 24px rgba(44, 11, 44, 0.08);
}

/* ---------- Typografi: samme skrift overalt ---------- */
/* Egne sider (innmelding, donasjoner, kalkulatorer) brukte Open Sans/Georgia/Arial
   uten at skriftene var lastet. Vi samler alt på Montserrat. */
:is(.lib-signup-outer-wrapper, .lib-donate-wrapper, .lib-tax-wrapper, .lib-shop-wrapper, .lib-wrapper-full)
	:where(*):not(i):not([class*="fa-"]):not(.fas):not(.fab):not(.far) {
	font-family: var(--lib-font) !important;
}

/* Responsiv overskriftsstørrelse – unngår at titler brekker i 4–5 linjer på mobil */
.single-post .entry-title,
.single-post h1.lib-centered-title,
.single-politikk .entry-title,
.page .entry-content h1 {
	font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem) !important;
	line-height: 1.12 !important;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.entry-content h2 {
	text-wrap: balance;
}

.entry-content p,
.entry-content li {
	text-wrap: pretty;
}

/* Artikkelbanner: lavere på mobil så tittelen synes uten å scrolle */
@media (max-width: 768px) {
	.lib-single-banner {
		height: 42vh !important;
		min-height: 220px !important;
		max-height: 340px !important;
	}
}

/* ---------- Forside-hero ---------- */
.wp-block-cover .lib-kicker {
	margin: 0 0 0.75rem !important;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.8rem !important;
	font-weight: 700;
	color: var(--lib-gul);
}

.home .wp-block-cover:first-child .wp-block-cover__background {
	opacity: 0.62 !important;
}

.wp-block-cover .lib-kicker,
.wp-block-cover h1.lib-hero-title,
.wp-block-cover .lib-hero-sub {
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.wp-block-cover .lib-hero-title + .lib-hero-sub,
.wp-block-cover .lib-kicker + .lib-hero-title {
	width: 100%;
}

.wp-block-cover .wp-block-buttons {
	justify-content: center;
}

.wp-block-cover h1.lib-hero-title {
	margin: 0 auto !important;
	width: 100%;
	max-width: none !important;
	text-align: center;
	color: #fff;
	font-size: clamp(2.6rem, 1.5rem + 5vw, 4.6rem) !important;
	line-height: 1.05 !important;
	font-weight: 800;
	text-wrap: balance;
}

.wp-block-cover .lib-hero-sub {
	max-width: 38rem;
	margin: 1rem auto 1.75rem !important;
	text-align: center;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem) !important;
	line-height: 1.5;
	color: #fff;
}

.wp-block-cover .wp-block-buttons {
	gap: 0.75rem;
}

.wp-block-cover .wp-block-button__link {
	font-size: 1rem !important;
	font-weight: 700;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
}

.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: #fff !important;
	border: 2px solid #fff !important;
}

.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff !important;
	color: var(--lib-lilla-mork) !important;
}

@media (max-width: 768px) {
	.home .wp-block-cover.alignfull:first-child {
		min-height: 78vh !important;
	}
}

/* ---------- Knapper: tydelig fokus og nok trykkflate ---------- */
.wp-element-button,
.wp-block-button__link,
.lib-btn,
.ast-button,
button,
input[type="submit"] {
	min-height: 44px;
}

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--lib-gul) !important;
	outline-offset: 2px;
}

/* ---------- Artikkel: del + bli medlem ---------- */
.lib-article-cta {
	margin: 3rem 0 1rem;
	display: grid;
	gap: 1.5rem;
}

.lib-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--lib-kant);
}

.lib-share-label {
	font-weight: 700;
	margin-right: 0.5rem;
	color: var(--lib-tekst);
}

.lib-share-btn {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 0.9rem;
	border: 1px solid var(--lib-kant);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--lib-lilla) !important;
	text-decoration: none !important;
	background: #fff;
}

.lib-share-btn:hover {
	background: var(--lib-flate);
	border-color: var(--lib-lilla);
}

.lib-join-box {
	padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
	border-radius: var(--lib-radius);
	background: var(--lib-lilla-mork);
	color: #fff;
	border-top: 4px solid var(--lib-gul);
}

.lib-join-box .lib-join-title {
	margin: 0 0 0.5rem !important;
	font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 800;
	color: #fff;
}

.lib-join-box .lib-join-text {
	margin: 0 0 1.25rem !important;
	color: rgba(255, 255, 255, 0.85);
}

.lib-join-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 !important;
}

.lib-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 1.4rem;
	border-radius: var(--lib-radius);
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color 0.15s, color 0.15s;
}

.lib-btn-primary {
	background: var(--lib-gul);
	color: #111 !important;
}

.lib-btn-primary:hover {
	background: var(--lib-gul-hover);
}

.lib-btn-ghost {
	border: 2px solid rgba(255, 255, 255, 0.7);
	color: #fff !important;
}

.lib-btn-ghost:hover {
	background: #fff;
	color: var(--lib-lilla-mork) !important;
}

/* ---------- Animasjoner: rolige og tilgjengelige ---------- */
/* Brødtekst og mellomtitler skal ikke tones inn – det gjør tekst blek og tung å lese. */
.entry-content p.lib-scroll-anim,
.entry-content h2.lib-scroll-anim,
.entry-content h3.lib-scroll-anim {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.lib-scroll-anim,
	.lib-scroll-anim.is-visible {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}

	html {
		scroll-behavior: auto !important;
	}
}

/* ---------- Skjemaer (CiviCRM / CF7) ---------- */
.crm-container input[type="text"],
.crm-container input[type="email"],
.crm-container select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	border-radius: 6px !important;
	min-height: 44px;
	font-family: var(--lib-font) !important;
}

.crm-container .crm-button,
.crm-container input.crm-form-submit,
.crm-container button.crm-button {
	background: var(--lib-gul) !important;
	color: #111 !important;
	border: 0 !important;
	border-radius: var(--lib-radius) !important;
	font-family: var(--lib-font) !important;
	font-weight: 700 !important;
	padding: 0.8rem 1.6rem !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.crm-container .crm-button:hover,
.crm-container input.crm-form-submit:hover {
	background: var(--lib-gul-hover) !important;
}

/* Utkast-merknad (personvern) */
.lib-utkast-merknad {
	padding: 1rem 1.25rem;
	border-left: 4px solid #c62828;
	background: #fdecea;
}

/* ---------- Nyhetsbrevskjema (CF7): navn på én linje ---------- */
.wpcf7-form:has([data-name="first_name"]):has([data-name="last_name"]) {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1rem;
}

.wpcf7-form:has([data-name="first_name"]) > * {
	grid-column: 1 / -1;
}

.wpcf7-form:has([data-name="first_name"]) > p:has([data-name="first_name"]),
.wpcf7-form:has([data-name="first_name"]) > p:has([data-name="last_name"]) {
	grid-column: auto;
}

.wpcf7-form h2 > br:first-child {
	display: none;
}

@media (max-width: 340px) {
	.wpcf7-form:has([data-name="first_name"]):has([data-name="last_name"]) {
		grid-template-columns: 1fr;
	}
}

/* ---------- Innmelding: snarvei til medlemskapene ---------- */
.lib-join-hero .lib-hero-cta {
	margin-top: 1.5rem;
	min-height: 52px;
	font-size: 1.05rem;
}

#velg-medlemskap {
	scroll-margin-top: 110px;
}

/* Sidetittel i cover-blokk (f.eks. Vår politikk) */
.wp-block-cover h1.lib-cover-title {
	margin: 0 auto !important;
	font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.2rem) !important;
	font-weight: 800;
	line-height: 1.05 !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Visuell runde 2 (15.11): ett knappesystem, lesbar footer, tydeligere kort,
   bedre mobiltypografi og kontrast.
   ========================================================================== */

/* ---------- Skrift på skjema og menyer (var Arial) ---------- */
body :is(label, input, select, textarea, button, .menu-link, .wpcf7-list-item-label) {
	font-family: var(--lib-font) !important;
}

/* ---------- Ett knappesystem ---------- */
/* Primær: gul, 8 px hjørner, 48 px høy. Sekundær: lilla. */
:is(.wp-block-button__link, .lib-btn, .wpcf7-submit, .ast-custom-button, .lib-cta-link, .lib-acc-btn) {
	border-radius: var(--lib-radius) !important;
	font-family: var(--lib-font) !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

.wpcf7-submit {
	background: var(--lib-gul) !important;
	color: #111 !important;
	border: 0 !important;
	min-height: 48px !important;
	padding: 0 2rem !important;
	font-size: 1rem !important;
	cursor: pointer;
}

.wpcf7-submit:hover {
	background: var(--lib-gul-hover) !important;
}

.ast-custom-button {
	min-height: 44px;
	display: inline-flex !important;
	align-items: center;
	padding: 0 1.4rem !important;
}

:is(.wp-block-button__link, .lib-btn, .wpcf7-submit, .ast-custom-button):active {
	transform: translateY(1px);
}

/* ---------- Kort: tydeligere titler ---------- */
.lib-post-card h3,
.lib-post-card h3 a {
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.005em;
}

.lib-team-name,
.lib-team-name a {
	font-weight: 700 !important;
}

.lib-post-card,
.lib-team-card,
.lib-politikk-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
	.lib-post-card:hover,
	.lib-team-card:hover,
	.lib-politikk-card:hover {
		transform: translateY(-3px);
		box-shadow: 0 14px 30px rgba(44, 11, 44, 0.14);
	}
}

/* Alle sidetitler (H1) samme vekt */
.entry-content h1,
h1.lib-centered-title,
h1.lib-profile-name {
	font-weight: 800 !important;
}

/* ---------- Kontrast ---------- */
/* «Bli klokere på Liberalistene.» – gul tekst på hvit bunn var nesten uleselig (1,7:1) */
body .entry-content .lib-learn-title h2 {
	color: var(--lib-lilla-mork) !important;
	overflow-wrap: anywhere;
}

body .entry-content .lib-learn-title h2 span {
	color: var(--lib-lilla) !important;
	background: linear-gradient(transparent 62%, rgba(252, 185, 0, 0.55) 62%);
	padding: 0 0.1em;
}

body .entry-content .amount-desc {
	color: var(--lib-tekst-dempet) !important;
}

/* ---------- Mobil: overskrifter som passer skjermen ---------- */
@media (max-width: 768px) {
	body .entry-content :is(.lib-signup-outer-wrapper, .lib-donate-outer-wrapper, .lib-tax-wrapper) :is(h2, h2.lib-scroll-anim) {
		font-size: clamp(1.55rem, 1.1rem + 2.4vw, 2.2rem) !important;
		line-height: 1.15 !important;
	}

	body .entry-content .lib-donate-outer-wrapper h3 {
		font-size: 1.35rem !important;
		white-space: nowrap;
	}

	.lib-benefits-section {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.lib-benefit-item p {
		max-width: none !important;
	}

	.single-post .entry-content h3 {
		font-size: 1.3rem !important;
		line-height: 1.25 !important;
	}
}

/* ---------- Footer ---------- */
.site-footer .widget_nav_menu .menu-item a,
.site-footer .widget_nav_menu .menu-link {
	font-size: 15px !important;
	line-height: 1.4 !important;
	padding-top: 0.35rem !important;
	padding-bottom: 0.35rem !important;
	opacity: 0.9;
}

.site-footer .widget_nav_menu .menu-item a:hover {
	opacity: 1;
	color: var(--lib-gul) !important;
}

.site-footer .widget_nav_menu > nav > ul > li > a,
.site-footer .widget_nav_menu > nav > ul > li > .menu-link {
	font-size: 16px !important;
	font-weight: 700 !important;
	opacity: 1;
}

@media (max-width: 768px) {
	.site-footer .widget_nav_menu .menu-item a {
		min-height: 40px;
		display: flex !important;
		align-items: center;
	}
}

/* Nyhetsbrevskjemaet i footer: luftigere og ikke 1100 px brede felt */
@media (min-width: 1000px) {
	.site-footer .wpcf7 {
		max-width: 760px;
	}
}

.wpcf7-form .samtykke-boks,
.wpcf7-form .wpcf7-list-item-label {
	font-size: 14px !important;
	line-height: 1.5 !important;
}

/* Bunnlinje med copyright og snarveier */
.lib-bottom-bar {
	background: var(--lib-lilla-mork);
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lib-bottom-bar .lib-bottom-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 1rem 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
	align-items: center;
}

.lib-bottom-bar nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

.lib-bottom-bar a {
	color: rgba(255, 255, 255, 0.85) !important;
	text-decoration: none;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
}

.lib-bottom-bar a:hover {
	color: var(--lib-gul) !important;
}

/* ==========================================================================
   Runde 3 (15.11): luft under headeren, Kuttforslag og Skattekalkulator
   ========================================================================== */

/* ---------- Luft mellom fast header og første overskrift ---------- */
/* Headeren ligger fast over innholdet (ca. 120 px inkl. marg). Sider som starter
   med egen hero uten bilde fikk overskriften klemt opp under/bak headeren. */
body .entry-content :is(.lib-kutt-hero, .lib-vision-hero, .lib-bil-wrapper > .lib-hero, .lib-brand-hero) {
	padding-top: 168px !important;
}

body.page .entry-content > h1.wp-block-heading:first-child {
	margin-top: 168px !important;
}

@media (max-width: 921px) {
	body .entry-content :is(.lib-kutt-hero, .lib-vision-hero, .lib-bil-wrapper > .lib-hero, .lib-brand-hero) {
		padding-top: 156px !important;
	}

	body.page .entry-content > h1.wp-block-heading:first-child {
		margin-top: 156px !important;
	}
}

/* Politikk-sider: titler med fast 60–64 px skaleres på mobil */
body.single-politikk .entry-content h1.wp-block-heading {
	font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem) !important;
	line-height: 1.1 !important;
}

/* ---------- Felles skrift i alle egne sidemaler ---------- */
body .entry-content [class*="lib-"][class*="wrapper"] :where(p, li, td, th, span, div, a, label, button, small, strong):not(i):not([class*="fa-"]) {
	font-family: var(--lib-font) !important;
}

/* ==========================================================================
   KUTTFORSLAG 2026
   ========================================================================== */
.lib-kutt-wrapper {
	--kutt-flate: #f7f5f8;
}

.lib-kutt-hero {
	background: var(--kutt-flate) !important;
	padding-bottom: 72px !important;
}

.lib-kutt-hero h1 {
	font-size: clamp(2.2rem, 1.2rem + 4.5vw, 4.4rem) !important;
	letter-spacing: -0.02em !important;
	line-height: 1 !important;
	color: var(--lib-lilla-mork) !important;
	margin-bottom: 0.75rem !important;
}

.lib-kutt-hero h1::after {
	content: "";
	display: block;
	width: 64px;
	height: 5px;
	margin: 1.1rem auto 0;
	border-radius: 3px;
	background: var(--lib-gul);
}

.lib-kutt-hero p {
	font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem) !important;
	color: var(--lib-tekst-dempet) !important;
	max-width: 34ch;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Nøkkeltall: like kort, gult tall + hvit tekst, side om side på desktop */
.lib-stat-section {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px !important;
	max-width: 960px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 20px !important;
	position: relative;
	z-index: 2;
	margin-top: -44px !important;
}

.lib-stat-section::before {
	display: none !important;
}

.lib-stat-box {
	margin: 0 !important;
	width: auto !important;
	max-width: none !important;
	padding: 32px 24px !important;
	border-radius: 14px !important;
	background: linear-gradient(160deg, #2c0b2c 0%, var(--lib-lilla-mork) 70%) !important;
	border: 0 !important;
	border-bottom: 5px solid var(--lib-gul) !important;
	box-shadow: 0 18px 40px rgba(44, 11, 44, 0.22) !important;
	text-align: center;
}

.lib-stat-box .lib-stat-number {
	color: var(--lib-gul) !important;
	font-size: clamp(2.6rem, 2rem + 3vw, 4rem) !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em;
	margin-bottom: 0.6rem !important;
	font-variant-numeric: tabular-nums;
}

.lib-stat-box > div:not(.lib-stat-number) {
	color: #fff !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	opacity: 0.92;
}

/* Introtekst: venstrejustert og passe linjelengde */
.lib-teaser-intro p,
.lib-content-container > p {
	text-align: left !important;
	max-width: 62ch;
	margin-left: auto !important;
	margin-right: auto !important;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem) !important;
	line-height: 1.7 !important;
	color: var(--lib-tekst) !important;
}

.lib-teaser-intro h2,
.lib-content-container > h2 {
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	color: var(--lib-lilla-mork) !important;
	text-align: center;
}

/* Smakebit-kortene */
.lib-kutt-grid {
	gap: 20px !important;
}

.lib-card {
	border-left: 0 !important;
	border-top: 4px solid var(--lib-gul) !important;
	border-radius: 14px !important;
	padding: 28px !important;
	background: #fff !important;
	box-shadow: 0 6px 22px rgba(44, 11, 44, 0.08) !important;
}

.lib-card h3 {
	display: flex !important;
	align-items: center;
	gap: 14px;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem) !important;
	font-weight: 800 !important;
	color: var(--lib-lilla-mork) !important;
	line-height: 1.2 !important;
	margin-bottom: 14px !important;
}

.lib-card h3 i {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--lib-lilla-mork);
	color: var(--lib-gul) !important;
	font-size: 1.15rem !important;
	margin: 0 !important;
}

.lib-card-sum {
	display: inline-block !important;
	background: #fff4cc !important;
	color: var(--lib-lilla-mork) !important;
	border: 1px solid rgba(252, 185, 0, 0.7) !important;
	border-radius: 999px !important;
	padding: 6px 14px !important;
	font-size: 0.95rem !important;
	font-weight: 800 !important;
	margin-bottom: 14px !important;
}

.lib-card p {
	font-size: 1rem !important;
	line-height: 1.65 !important;
	color: var(--lib-tekst) !important;
	margin: 0 !important;
}

/* Tabeller: lesbare og rullbare på mobil */
.lib-table-section h3 {
	color: var(--lib-lilla-mork) !important;
	font-weight: 800 !important;
}

.lib-table {
	border-radius: 10px;
	overflow: hidden;
	font-variant-numeric: tabular-nums;
}

.lib-table th {
	background: var(--lib-lilla-mork) !important;
	color: #fff !important;
	font-weight: 700 !important;
}

.lib-table tbody tr:nth-child(even) td {
	background: #faf8fb;
}

.lib-table td:nth-child(2),
.lib-table td:nth-child(3),
.lib-table th:nth-child(2),
.lib-table th:nth-child(3) {
	text-align: right !important;
	white-space: nowrap;
}

.lib-table .sum-row td {
	background: #fff4cc !important;
	color: var(--lib-lilla-mork) !important;
	font-weight: 800 !important;
	border-top: 2px solid var(--lib-gul) !important;
}

@media (max-width: 768px) {
	.lib-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.lib-card {
		padding: 22px !important;
	}

	.lib-stat-section {
		margin-top: -32px !important;
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   SKATTEKALKULATOR
   ========================================================================== */
/* Resultatet i merkevarens farger i stedet for alarmrødt */
.lib-tax-wrapper .lib-result-area {
	background: linear-gradient(160deg, #2c0b2c 0%, var(--lib-lilla-mork) 70%) !important;
	border: 0 !important;
	border-bottom: 5px solid var(--lib-gul) !important;
	border-radius: 16px !important;
	color: #fff !important;
	box-shadow: 0 18px 40px rgba(44, 11, 44, 0.22);
}

.lib-tax-wrapper .lib-result-area h3 {
	color: #fff !important;
	font-weight: 800 !important;
}

.lib-tax-wrapper .lib-result-area > p,
.lib-tax-wrapper .lib-result-area > p[style] {
	color: rgba(255, 255, 255, 0.9) !important;
}

.lib-tax-wrapper .lib-result-area > p strong {
	color: #fff !important;
}

.lib-tax-wrapper .lib-real-tax-rate {
	color: var(--lib-gul) !important;
	font-size: clamp(3.4rem, 2.4rem + 5vw, 5.2rem) !important;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.lib-tax-wrapper .lib-breakdown-item {
	background: rgba(255, 255, 255, 0.07) !important;
	border-left-color: var(--lib-gul) !important;
	box-shadow: none !important;
	border-radius: 10px !important;
}

.lib-tax-wrapper .lib-breakdown-item span {
	color: rgba(255, 255, 255, 0.75) !important;
}

.lib-tax-wrapper .lib-breakdown-item strong {
	color: #fff !important;
	font-variant-numeric: tabular-nums;
}

.lib-tax-wrapper .lib-breakdown-item.deduction {
	background: rgba(129, 199, 132, 0.12) !important;
	border-left-color: #81c784 !important;
}

.lib-tax-wrapper .lib-breakdown-item.deduction strong {
	color: #a5d6a7 !important;
}

.lib-tax-wrapper .lib-result-area .lib-acc-btn {
	background: var(--lib-gul) !important;
	color: #111 !important;
}

.lib-tax-wrapper .lib-result-area .lib-acc-btn:hover {
	background: var(--lib-gul-hover) !important;
}

.lib-tax-wrapper .lib-acc-table-wrapper {
	color: var(--lib-tekst);
}

/* «Stemmer ikke snittet for deg?» som tydelig sekundærknapp */
.lib-tax-wrapper .lib-advanced-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0 1.4rem !important;
	border: 2px solid var(--lib-lilla) !important;
	border-radius: var(--lib-radius) !important;
	color: var(--lib-lilla) !important;
	background: #fff !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	line-height: 1.3 !important;
}

.lib-tax-wrapper .lib-advanced-btn:hover {
	background: var(--lib-lilla) !important;
	color: #fff !important;
}

/* Kalkulatorkortene: litt strammere og mer luft mellom gruppene */
.lib-tax-wrapper .lib-input-group {
	border-radius: 12px !important;
	border-color: var(--lib-kant) !important;
}

.lib-tax-wrapper .lib-input-group label {
	color: var(--lib-lilla-mork) !important;
	font-weight: 800 !important;
}

.lib-tax-wrapper .lib-btn-toggle {
	border-radius: var(--lib-radius) !important;
	min-height: 48px;
}

.lib-tax-wrapper .lib-btn-toggle.active {
	background: var(--lib-lilla-mork) !important;
	border-color: var(--lib-lilla-mork) !important;
}

.lib-tax-wrapper .lib-calc-hero {
	padding-top: 168px !important;
}

@media (max-width: 921px) {
	.lib-tax-wrapper .lib-calc-hero {
		padding-top: 150px !important;
	}
}

/* ==========================================================================
   Versjon 2.0 – seksjoner på forsiden og nøkkelsider (profil: «Liberalistene»)
   ========================================================================== */
.lib-v2 { --v2-lilla: var(--lib-lilla); --v2-dyp: var(--lib-lilla-mork); --v2-gul: var(--lib-gul); }
.lib-v2-seksjon { max-width: 1200px; margin: 0 auto !important; padding: 72px 24px !important; }
.lib-v2-seksjon.tett { padding-top: 48px !important; padding-bottom: 24px !important; }
.lib-v2-hode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 48px; align-items: end; margin-bottom: 32px; }
.lib-v2-over { margin: 0 0 10px !important; font-size: 13px !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lib-lilla); }
.lib-v2-hode h2, .lib-v2 h2.lib-v2-tittel { margin: 0 !important; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem) !important; font-weight: 800 !important; line-height: 1.1 !important; letter-spacing: -.01em; color: var(--lib-lilla); text-wrap: balance; }
.lib-v2-hode p { margin: 0 !important; font-size: 1.15rem; line-height: 1.6; color: var(--lib-tekst-dempet); }
.lib-v2-tre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lib-v2-kort { background: #fff; border-radius: 8px; padding: 28px 28px 24px; box-shadow: var(--lib-skygge); display: flex; flex-direction: column; gap: 10px; }
.lib-v2-kort .nr { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--lib-gul-hover); }
.lib-v2-kort h3 { margin: 0 !important; font-size: 1.35rem !important; line-height: 1.25 !important; font-weight: 800 !important; color: var(--lib-lilla); }
.lib-v2-kort p { margin: 0 !important; line-height: 1.6; color: var(--lib-tekst); flex: 1; }
.lib-v2-lenke { align-self: flex-start; font-weight: 700; color: var(--lib-lilla) !important; text-decoration: underline !important; text-decoration-color: var(--lib-gul) !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
.lib-v2-lenke:hover { text-decoration-color: var(--lib-lilla) !important; }
.lib-v2-flate { background: var(--lib-flate); }
.lib-v2-band { background: linear-gradient(160deg, #2c0b2c 0%, var(--lib-lilla-mork) 70%); color: #fff; }
.lib-v2-band .lib-v2-seksjon { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.lib-v2-band .lib-v2-over { color: var(--lib-gul); }
.lib-v2-band h2 { margin: 0 0 12px !important; color: #fff !important; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem) !important; font-weight: 800 !important; line-height: 1.1 !important; text-wrap: balance; }
.lib-v2-band p { margin: 0 !important; color: #e3d3e4; font-size: 1.1rem; line-height: 1.6; }
.lib-v2-band .lib-v2-knapper { justify-content: flex-end; }
.lib-v2-knapper { display: flex; flex-wrap: wrap; gap: 12px; }
.lib-v2-knapp { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 700; text-decoration: none !important; background: var(--lib-gul); color: var(--lib-lilla-mork) !important; }
.lib-v2-knapp:hover { background: var(--lib-gul-hover); }
.lib-v2-knapp.sek { background: var(--lib-lilla); color: #fff !important; }
.lib-v2-knapp.sek:hover { background: var(--lib-lilla-mork); }
.lib-v2-knapp.omriss { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px #fff; }
.lib-v2-knapp.omriss:hover { background: #fff; color: var(--lib-lilla-mork) !important; }
.lib-v2-kort .lib-v2-knapp { align-self: flex-start; margin-top: 6px; }
.lib-v2-sitat { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 700; line-height: 1.3; color: #fff; }
.lib-v2-sitat cite { display: block; margin-top: 12px; font-size: .95rem; font-style: normal; font-weight: 600; color: var(--lib-gul); }
.lib-v2-tekst { max-width: 720px; margin: 0 auto !important; padding: 56px 24px !important; }
.lib-v2-tekst h2 { color: var(--lib-lilla); font-weight: 800 !important; margin-top: 2.2em !important; }
.lib-v2-tekst p, .lib-v2-tekst li { font-size: 1.1rem; line-height: 1.7; }
.lib-v2-ingress { font-size: 1.3rem !important; line-height: 1.55 !important; color: var(--lib-tekst) !important; }
.lib-v2-tall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 !important; }
.lib-v2-tall div { background: var(--lib-flate); border-radius: 8px; padding: 20px; }
.lib-v2-tall b { display: block; font-size: 2rem; font-weight: 800; color: var(--lib-lilla); line-height: 1.1; }
.lib-v2-tall span { font-size: .95rem; color: var(--lib-tekst-dempet); }
@media (max-width: 900px) {
	.lib-v2-hode, .lib-v2-band .lib-v2-seksjon { grid-template-columns: 1fr; }
	.lib-v2-band .lib-v2-knapper { justify-content: flex-start; }
	.lib-v2-tre { grid-template-columns: 1fr; }
	.lib-v2-seksjon { padding: 48px 20px !important; }
	.lib-v2-tall { grid-template-columns: 1fr; }
}


/* Meny og bunntekst i mørk lilla, som resten av nettstedet (19.11.2026).
   Overstyrer eldre Ekstra CSS og Astra-innstillinger som brukte lysere #2c0b2c. */
body .main-header-menu .sub-menu{background-color:var(--lib-lilla-mork,#2c0b2c)!important;border-top-color:var(--lib-gul,#fcb900)!important}
body .site-footer .site-above-footer-wrap,body .site-footer .site-below-footer-wrap{background-color:var(--lib-lilla-mork,#2c0b2c)!important}

/* Lesbar tekst på mørk lilla flate (19.11.2026). lib-profil.css setter mørk tekstfarge på alle avsnitt,
   som gjorde brødteksten nesten usynlig i mørke bokser. */
body .entry-content :is(.lib-callout:not(.yellow-theme),.lib-cta-section,.lib-v2-band,.lib-join-box,.lib-sidehode,.lib-result-area,.lib-pbelte-full) :is(p,li,dd,dt):not(.lib-v2-over):not(.lib-kicker){color:rgba(255,255,255,.9)}

/* «Bli klokere på Liberalistene»-feltet: bakgrunnsbåndet i samme mørke lilla som bunnteksten (19.11.2026). */
body .lib-learn-more-section::after{background-color:var(--lib-lilla-mork,#2c0b2c)!important}

/* Rettelser fra gjennomgangen 19.11.2026 */
/* Omriss-knapper er hvite for mørke bånd; på lys bunn ble de usynlige (Lær mer, Hvem vi er, Saker vi har vedtatt). */
.lib-v2:not(.lib-v2-band) .lib-v2-knapp.omriss{box-shadow:inset 0 0 0 2px var(--lib-lilla-mork,#2c0b2c);color:var(--lib-lilla-mork,#2c0b2c)!important}
.lib-v2:not(.lib-v2-band) .lib-v2-knapp.omriss:hover{background:var(--lib-lilla-mork,#2c0b2c);color:#fff!important}
/* Sebrastriper skal ikke dekke over røde og grønne summeringsrader (Bilavgifter 2025). */
.lib-table tbody tr:is(.sum-row-red,.sum-row-green) td{background:transparent}
/* Libflix: titler på mørke videokort. */
body .entry-content .lf-item-title{color:#fff}

/* Felles knapper (designmanualen): 8 px hjørner, gul hovedknapp med lilla tekst (19.11.2026) */
body .ast-header-button-1 .ast-custom-button,body .entry-content .wp-block-button__link,body .entry-content a[class*="btn"],body .entry-content a[class*="knapp"],body .lib-v2-knapp{border-radius:8px!important}
body .wpcf7 input[type=submit],body .lib-team-grid .lib-team-btn{background:#fcb900!important;color:#2c0b2c!important;border-radius:8px!important;font-family:Montserrat,Arial,sans-serif!important;font-weight:700!important;min-height:48px;padding:12px 24px!important;border:0!important}
body .wpcf7 input[type=submit]:hover,body .lib-team-grid .lib-team-btn:hover{background:#e5a700!important}

/* Libflix: ingress i heroen lys som overskriften */
body .lf-hero .lf-hero-desc, body .entry-content .lf-hero-desc{color:rgba(255,255,255,.88)!important}

/* Mobilgjennomgang 2.9.7 */
@media (max-width:600px){
 body .lib-v2-knapp{white-space:normal!important;max-width:100%!important;height:auto!important;text-align:center;line-height:1.3}
 body .lib-kutt-wrapper h3{overflow-wrap:anywhere;hyphens:auto}
 body .lib-category-label,body .lib-type-merke{font-size:12px!important}
 body .lib-date{font-size:12.5px!important}
 body .lib-v2-flate{flex-direction:column!important;align-items:flex-start!important;gap:18px}
 body .lib-v2-flate>*{min-width:0;max-width:100%}
}
html,body{overflow-x:clip}
