/* ==========================================================================
   Liberalistene – profil på nettsiden (skrift, farger, fokus)
   Montserrat i titler, knapper og meny. Open Sans i brødtekst.
   ========================================================================== */
:root {
	--lib-tekst: #1f1a1f;
	--lib-tekst-dempet: #5f5862;
	--lib-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	--lib-tekstfont: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

/* Astras fargepalett mappes til profilfargene */
html:root {
	--ast-global-color-1: #2c0b2c;
	--ast-global-color-2: #2c0b2c;
	--ast-global-color-3: #1f1a1f;
	--ast-global-color-5: #f7f5f8;
	--ast-global-color-6: #2c0b2c;
	--ast-global-color-7: #e6e1e8;
	--ast-global-color-8: #1f1a1f;
}

/* ---------- Skrift ---------- */
body,
body :where(p, li, dd, dt, td, th, blockquote, figcaption, input, textarea, select, address) {
	font-family: var(--lib-tekstfont) !important;
}
body :where(h1, h2, h3, h4, h5, h6, .entry-title, .site-title, .main-header-menu, .menu-link, .ast-button, .ast-custom-button, .wp-block-button__link, .wp-element-button, button, .lib-btn, .lib-v2-knapp, .lib-kicker, .lib-v2-over, .lib-type-merke, .lib-tema-merke, .lib-category-label, label, legend, nav) {
	font-family: var(--lib-font) !important;
}
/* Egne sidemaler fra tidligere (innmelding, donasjoner, kalkulatorer): brødtekst i Open Sans */
:is(.lib-signup-outer-wrapper, .lib-donate-wrapper, .lib-tax-wrapper, .lib-shop-wrapper, .lib-wrapper-full, .lib-page-wrapper, .lib-klart-wrapper) :where(p, li, td, small, span:not([class*="badge"]):not([class*="kicker"]), input, textarea) {
	font-family: var(--lib-tekstfont) !important;
}
:is(.lib-signup-outer-wrapper, .lib-donate-wrapper, .lib-tax-wrapper, .lib-shop-wrapper, .lib-wrapper-full, .lib-page-wrapper, .lib-klart-wrapper) :where(h1, h2, h3, h4, button, .lib-badge, .lib-btn-primary) {
	font-family: var(--lib-font) !important;
}
.entry-content p, .entry-content li { line-height: 1.65; }

/* ---------- Tekstfarger: to toner ---------- */
body, .entry-content, .entry-content p, .entry-content li { color: var(--lib-tekst); }
.lib-author-name, .lib-category-label { color: var(--lib-tekst) !important; }
.lib-date, .entry-meta, .posted-on, .ast-blog-meta-container, .wp-block-post-date, figcaption, .lib-single-role { color: var(--lib-tekst-dempet) !important; }
.main-header-menu .menu-link { color: var(--lib-tekst); }
.main-header-menu .menu-link:hover, .main-header-menu .current-menu-item > .menu-link { color: var(--lib-lilla); }
.entry-content h4 { color: var(--lib-lilla-mork); }

/* ---------- Fokus: lilla på lys bunn, gul på lilla og mørke flater ---------- */
a:focus-visible, button:focus-visible, .wp-element-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--lib-lilla) !important;
	outline-offset: 2px;
}
:is(.wp-block-cover, .site-footer, .lib-v2-band, .lib-highlight-block, .has-ast-global-color-0-background-color, .has-ast-global-color-6-background-color, [data-theme="lilla"]) :is(a, button, input, select, textarea):focus-visible {
	outline-color: var(--lib-gul) !important;
}

/* ---------- Logo i bunnteksten ---------- */
.site-footer img.lib-bunn-logo { width: 220px; max-width: 100%; height: auto; float: none; margin: 0 0 12px; }

/* ---------- Ikoner: lokale strekikoner i stedet for Font Awesome ---------- */
.entry-content i[class*="fa-"]{display:inline-block;width:1em;height:1em;background:currentColor;vertical-align:-.125em;-webkit-mask:var(--ik) center/contain no-repeat;mask:var(--ik) center/contain no-repeat;font-style:normal}
.entry-content i[class*="fa-"]::before{content:none!important}
.entry-content i.fa-balance-scale{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M5 21h14M4 7h16M7 7l-3 7a3 3 0 0 0 6 0zM17 7l-3 7a3 3 0 0 0 6 0z'/%3E%3C/svg%3E")}
.entry-content i.fa-bolt{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E")}
.entry-content i.fa-briefcase{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v13H3zM8 7V4h8v3M3 12h18'/%3E%3C/svg%3E")}
.entry-content i.fa-building{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V3h14v18M9 7h2M13 7h2M9 11h2M13 11h2M9 15h2M13 15h2M3 21h18'/%3E%3C/svg%3E")}
.entry-content i.fa-landmark, .entry-content i.fa-building-columns{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 18h14M6 10v8M10 10v8M14 10v8M18 10v8M12 3l9 5H3z'/%3E%3C/svg%3E")}
.entry-content i.fa-monument{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21l1-14 2-4 2 4 1 14zM6 21h12'/%3E%3C/svg%3E")}
.entry-content i.fa-bullseye{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E")}
.entry-content i.fa-chart-line{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M7 15l4-4 3 3 6-6'/%3E%3C/svg%3E")}
.entry-content i.fa-chevron-down{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
.entry-content i.fa-child{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Cpath d='M7 10h10M12 10v5M9 21l3-6 3 6'/%3E%3C/svg%3E")}
.entry-content i.fa-coins{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7c0-1.7 2.7-3 6-3s6 1.3 6 3-2.7 3-6 3-6-1.3-6-3zM2 7v4c0 1.7 2.7 3 6 3M10 14c0-1.7 2.7-3 6-3s6 1.3 6 3-2.7 3-6 3-6-1.3-6-3zM10 14v4c0 1.7 2.7 3 6 3s6-1.3 6-3v-4'/%3E%3C/svg%3E")}
.entry-content i.fa-fist-raised{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11V6a1.5 1.5 0 0 1 3 0v4M10 10V4.5a1.5 1.5 0 0 1 3 0V10M13 10V5.5a1.5 1.5 0 0 1 3 0V11M16 11V8a1.5 1.5 0 0 1 3 0v6a7 7 0 0 1-7 7h-1a6 6 0 0 1-5-3l-2-4a1.5 1.5 0 0 1 2.5-1.5L7 14'/%3E%3C/svg%3E")}
.entry-content i.fa-globe, .entry-content i.fa-globe-africa{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E")}
.entry-content i.fa-graduation-cap{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5zM6 11v5c3 2 9 2 12 0v-5M22 9v6'/%3E%3C/svg%3E")}
.entry-content i.fa-hammer{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4l6 6-3 3-6-6zM12 9l-9 9 3 3 9-9'/%3E%3C/svg%3E")}
.entry-content i.fa-hand-holding-usd{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15h4l5 2h5a2 2 0 0 0 0-4h-4M7 15v6M3 21h4M15 3v8M17.5 4.5h-3.5a1.5 1.5 0 0 0 0 3h2a1.5 1.5 0 0 1 0 3h-3.5'/%3E%3C/svg%3E")}
.entry-content i.fa-handshake, .entry-content i.fa-hands-helping{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12l4-4 4 2 3-2 3 1 6 3M2 12l5 5 2-1 2 2 2-1 2 2 4-4M10 10l3 3'/%3E%3C/svg%3E")}
.entry-content i.fa-heartbeat{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 5.6a5 5 0 0 0-7.1 0L12 7.3l-1.7-1.7a5 5 0 0 0-7.1 7.1L12 21.5l8.8-8.8a5 5 0 0 0 0-7.1zM3 12h4l2-3 3 6 2-3h7'/%3E%3C/svg%3E")}
.entry-content i.fa-home{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8M5 9v12h14V9M10 21v-6h4v6'/%3E%3C/svg%3E")}
.entry-content i.fa-industry{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V11l5 3v-3l5 3V6h4l1 15zM2 21h20'/%3E%3C/svg%3E")}
.entry-content i.fa-info-circle{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E")}
.entry-content i.fa-leaf{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21c0-9 5-15 15-16-1 10-7 15-15 16zM5 21l8-8'/%3E%3C/svg%3E")}
.entry-content i.fa-link{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E")}
.entry-content i.fa-list{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E")}
.entry-content i.fa-palette{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 0 0 0 18c1.5 0 2-1 2-2s-1-2 0-3 2-.5 3-.5a4 4 0 0 0 4-4c0-4.5-4-8.5-9-8.5zM7.5 11.5h.01M10 7.5h.01M15 7.5h.01'/%3E%3C/svg%3E")}
.entry-content i.fa-passport{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18H5zM9 17h6'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.entry-content i.fa-plus{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.entry-content i.fa-road{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3L4 21M17 3l3 18M12 4v3M12 10v3M12 16v3'/%3E%3C/svg%3E")}
.entry-content i.fa-running{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='4.5' r='1.5'/%3E%3Cpath d='M7 21l3-6 3 2v5M10 15l1-6 3 2 3 1M8 10l3-2'/%3E%3C/svg%3E")}
.entry-content i.fa-shield-alt{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E")}
.entry-content i.fa-theater-masks{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5c3 1 7 1 10 0v6a5 5 0 0 1-10 0zM7 9h.01M11 9h.01M8 13c1 1 2 1 3 0'/%3E%3C/svg%3E")}
.entry-content i.fa-train{--ik:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12a2 2 0 0 1 2 2v10a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V5a2 2 0 0 1 2-2zM4 11h16M8 21l2-3M16 21l-2-3M8 15h.01M16 15h.01'/%3E%3C/svg%3E")}

/* ---------- Sidehode på undersider ---------- */
html, body { overflow-x: clip; }
.lib-sidehode { position: relative; width: 100%; background: linear-gradient(160deg, #2c0b2c 0%, var(--lib-lilla-mork) 75%); color: #fff; }
.lib-sidehode-inner { max-width: 1200px; margin: 0 auto; padding: 170px 24px 64px; }
.lib-sidehode .lib-v2-over { color: var(--lib-gul); margin-bottom: 14px !important; }
.lib-sidehode-tittel { margin: 0 !important; color: #fff !important; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem) !important; font-weight: 800 !important; line-height: 1.08 !important; letter-spacing: -.01em; text-wrap: balance; max-width: 20ch; }
.lib-sidehode-ingress { margin: 18px 0 0 !important; max-width: 62ch; font-size: 1.2rem !important; line-height: 1.6 !important; color: #e3d3e4 !important; }
@media (max-width: 921px) { .lib-sidehode-inner { padding: 120px 20px 44px; } }
.lib-v2-knapp, .ast-custom-button, .ast-header-button-1 .ast-custom-button { white-space: nowrap; }

/* ---------- Forsidens hero: lilla tone bak teksten i stedet for tekstskygge ---------- */
.home .wp-block-cover.alignfull:first-child .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(44, 11, 44, .30) 0%, rgba(44, 11, 44, .62) 40%, rgba(44, 11, 44, .72) 60%, rgba(44, 11, 44, .45) 100%) !important;
	opacity: 1 !important;
}
.home .wp-block-cover.alignfull:first-child :is(.lib-kicker, .lib-hero-title, .lib-hero-sub) { text-shadow: none !important; }


/* Tidslinje (Hvem vi er) */
.lib-v2-tidslinje { list-style: none; margin: 32px 0 0; padding: 0 0 0 28px; border-left: 3px solid var(--lib-gul, #FCB900); }
.lib-v2-tidslinje li { position: relative; margin: 0 0 28px; padding: 0; }
.lib-v2-tidslinje li::before { content: ""; position: absolute; left: -37px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: #2C0B2C; border: 3px solid #FCB900; }
.lib-v2-tidslinje h3 { margin: 2px 0 6px; font-size: 1.2rem; }
.lib-v2-tidslinje p { margin: 0; }
.lib-v2-tidslinje li:last-child { margin-bottom: 0; }


/* Tillitsvalgte: fylke og «Jeg er med fordi …» */
.lib-tvp { margin: 0 0 24px; }
.lib-tvp-fylke { font-family: var(--lib-font); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #5F5862; margin: 0 0 8px; }
.lib-tvp-grunn { margin: 0; padding: 14px 18px; border-left: 4px solid #FCB900; background: #F7F5F8; border-radius: 0 8px 8px 0; }
.lib-tvp-grunn p { margin: 0; font-size: 1.05rem; line-height: 1.5; color: #1F1A1F; }
.lib-tvp-grunn span { font-weight: 700; color: #2C0B2C; }
.lib-tvp.kort { margin: -4px 0 12px; }
.lib-tvp.kort .lib-tvp-grunn { padding: 8px 12px; }
.lib-tvp.kort .lib-tvp-grunn p { font-size: .9rem; }
