/*
 * Bostadslån GP – temats CSS.
 * Struktur: 1 tokens · 2 bas · 3 layout · 4 header/meny · 5 innehåll · 6 komponenter · 7 sidor · 8 footer · 9 modaler · 10 plugin-ankare · 11 responsivt · 12 print
 */

/* ---------- 1. Tokens (gamla variabler behålls – tabell-CSS och Component-markup använder dem) ---------- */
:root {
  --app-height: 100vh;
  --font-family-custom: 'Quicksand';
  --primary-color: #222;
  --secondary-color: #4a4e69;
  --page-section-color: #f8f8f8;
  --primary-button-color: #f4646f;
  --primary-button-hover-color: #dc5a64;
  --primary-button-text-color: #fff;
  --category-button-color: #206280;
  --hero-color: #f8f8f8;
  --hero-text-color: #222;
  --bg-footer-section-first: #1D408C;
  --bg-footer-section-second: #1D408C;
  --footer-links-color: #B7B8C3;
  --bg-footer-social-icon: #B7B8C3;
  --bg-footer-social-icon-hover: #808396;
  --bg-news-section: #F6F7FD;
  --bg-gradient: #F6F7FD;
  --bg-gradient-table: linear-gradient(180deg, #e5eefe 0%, #F6F7FD 100%);
  --bg-header: #fff;
  --bg-gray: #F6F7FD;
  --bg-border-button-hover: #E8F1FF;
  --bg-category-buttons-section: #F6F7FD;
  --border-button-color: var(--blue500);
  --product-counter-color: #4a4e69;
  --bg-front-page-container: #e7e9ef;
  --default-box-shadow: 0px 1px 3px rgba(16, 80, 145, 0.15);
  --table-box-shadow: 0 1px 3px rgba(16, 80, 145, 0.15);
  --header-text-color: var(--primary-color);
  --bg-ordered-list: var(--primary-color);
  --top-border-sidebar: #2E54B6;
  --campaign-price-text-color: #e1311b;
  --input-field-button-width: 84px;
  --bg-svg-wave: var(--bg-gray);
  --teaser-button-text-and-border-color: #4A4E69;
  --bg-block-recommended-top-border: #d2d3da;
  --bg-overlay: #4A4E69;
  --bg-404: var(--bg-gradient);

  --blue50: #f6f6f8;
  --blue100: #ededf0;
  --blue200: #d2d3da;
  --blue300: #b7b8c3;
  --blue400: #808396;
  --blue500: #306BEA;
  --blue600: #43465f;
  --blue700: #383b4f;
  --blue800: #2c2f3f;
  --blue900: #242633;

  --green50: #f3faf3;
  --green100: #e7f6e8;
  --green200: #c3e7c4;
  --green300: #9ed9a1;
  --green400: #56bd5b;
  --green500: #0da014;
  --green600: #0c9012;
  --green700: #0a780f;
  --green800: #08600c;
  --green900: #064e0a;

  --grey50: #f5f5f5;
  --grey100: #ececeb;
  --grey200: #cecfce;
  --grey300: #b1b2b0;
  --grey400: #777874;
  --grey500: #3c3e39;
  --grey600: #363833;
  --grey700: #2d2f2b;
  --grey800: #242522;
  --grey900: #1d1e1c;
}

:root {
  --bl-blue: #306BEA;
  --bl-blue-dark: #2552bd;
  --bl-navy: #1D408C;
  --bl-cta: #f4646f;
  --bl-cta-hover: #dc5a64;
  --bl-text: #1f2937;
  --bl-muted: #5b6475;
  --bl-border: #dfe4ee;
  --bl-soft: #f4f7fd;
  --bl-radius: 12px;
  --bl-radius-sm: 8px;
  --bl-shadow-sm: 0 1px 2px rgba(16, 40, 90, .06), 0 1px 3px rgba(16, 80, 145, .10);
  --bl-shadow: 0 4px 16px rgba(16, 40, 90, .08);
  --bl-wrap: 1160px;
  --bl-sidebar: 350px;
  --bl-gap: 40px;
  --bl-head-font: 'Quicksand', 'Open Sans', sans-serif;
  --bl-body-font: 'Open Sans', 'Open Sans-fallback', Arial, sans-serif;
  --font-family-custom: 'Quicksand';
  --primary-color: var(--bl-text);
  --bg-header: #fff;
}

/* ---------- 2. Bas ---------- */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: #fff;
  color: var(--bl-text);
  font-family: var(--bl-body-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bl-head-font) !important;
  color: var(--bl-text);
  line-height: 1.25;
  font-weight: 700;
  margin: 1.6em 0 .5em;
}
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin-top: .4em; line-height: 1.18; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }
a { color: var(--bl-blue); text-decoration: none; }
a:hover, a:focus { color: var(--bl-blue-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid rgba(48, 107, 234, .45);
  outline-offset: 2px;
  border-radius: 4px;
}
img { max-width: 100%; height: auto; border-radius: 6px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 10000; border-radius: 6px; box-shadow: var(--bl-shadow); }
.skip-link:focus { left: 8px; }
.clearfix::after { content: ""; display: table; clear: both; }
.txt-center { text-align: center; }
.bg-white { background: #fff; }
.bg-gray { background: var(--bg-gray, #F6F7FD); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Buttons */
.btn-primary { display: inline-block; }
.btn-primary__link, .btn, .btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 10px 22px;
  background: var(--bl-cta); color: #fff !important; border: 1px solid var(--bl-cta);
  border-radius: 999px; font-family: var(--bl-body-font); font-weight: 700; font-size: 15px; line-height: 1.2;
  text-align: center; text-decoration: none !important; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary__link:hover, .btn-primary__link:focus { background: var(--bl-cta-hover); border-color: var(--bl-cta-hover); box-shadow: 0 4px 12px rgba(244, 100, 111, .35); color: #fff; }
.btn { background: #fff; color: var(--bl-blue) !important; border-color: var(--bl-blue); }
.btn:hover { background: var(--bg-border-button-hover, #E8F1FF); }
.btn-primary__link[disabled] { opacity: .45; pointer-events: none; }

/* USP-lista */
.usp-container { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.usp-container__item { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; }
.usp-container__item::before { content: ""; position: absolute; left: 0; top: .1em; width: 18px; height: 18px; border-radius: 50%; background: #e6f6e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%230da014' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- 3. Layout ---------- */
.wrapper { width: 94%; max-width: var(--bl-wrap); margin: 0 auto; }
.full-width { width: 100%; padding: 24px 0 48px; }
.footer-push { flex: 1 0 auto; width: 100%; } /* sticky footer via body-flex i stället för vh-min-height (gav tom yta före footern) */
.site-main { display: block; }
.news-single { padding-top: 8px; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) var(--bl-sidebar); gap: 0 var(--bl-gap); align-items: start; }
.content > .main-content { grid-column: 1; grid-row: 1; min-width: 0; width: auto; float: none; }
.content > .table-of-contents,
.content > .bl-nl-col,
.content > .sidebar-content,
.content > .profile-sidebar { grid-column: 2; grid-row: 1; width: auto; float: none; min-width: 0; }
.content > .category-dropdown { display: none; }
.position-page-content { position: relative; }
.table-of-contents, .sidebar-content { position: sticky; top: 80px; align-self: start; }
.news-single-content > *:first-child { margin-top: 0; }
.breadcrumbs { font-size: 13px; color: var(--bl-muted); margin: 8px 0 0; }
.breadcrumbs p { margin: 0; }
.breadcrumbs a { color: var(--bl-muted); }
.breadcrumbs .sep { margin: 0 4px; opacity: .6; }

/* ---------- 4. Header & meny ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--bl-border); box-shadow: 0 1px 0 rgba(16, 40, 90, .02); }
.header-wrapper { width: 94%; max-width: var(--bl-wrap); margin: 0 auto; min-height: 72px; display: flex; align-items: center; gap: 28px; }
.site-logo-link { display: inline-flex; align-items: center; }
.site-logo img { display: block; width: auto; height: 30px; border-radius: 0; }
.main-nav { flex: 1 1 auto; }
#menu-header, .main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav li { position: relative; list-style: none; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--bl-text); font-family: var(--bl-head-font); font-weight: 700; font-size: 16px; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--bl-soft); color: var(--bl-blue); }
.main-nav .menu-item-has-children > a::after, .main-nav .has-sub > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.main-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--bl-border); border-radius: var(--bl-radius); box-shadow: var(--bl-shadow); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu, .main-nav .has-sub.open > .sub-menu { display: block; }
.main-nav .sub-menu a { font-weight: 600; font-size: 15px; padding: 9px 12px; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-search, .side-nav-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 50%; color: var(--bl-text); font-size: 18px; cursor: pointer; }
.header-search:hover, .side-nav-button:hover { background: var(--bl-soft); color: var(--bl-blue); }
.side-nav-button { display: none; }
.side-nav-button .bars { width: 22px; display: grid; gap: 5px; }
.side-nav-button .bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.side-nav-button.menu-opened .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.side-nav-button.menu-opened .bars span:nth-child(2) { opacity: 0; }
.side-nav-button.menu-opened .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header .container { display: none; border-top: 1px solid var(--bl-border); background: #fff; }
.site-header .container.active { display: block; }
#search-form { width: 94%; max-width: var(--bl-wrap); margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 0; }
#search-form .search-box { flex: 1; }
.search-input { width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid #b9c2d3; border-radius: 999px; font: inherit; background: #fff; }
.search-input:focus { border-color: var(--bl-blue); outline: none; box-shadow: 0 0 0 3px rgba(48, 107, 234, .2); }
.search-close { background: none; border: 0; font-size: 20px; color: var(--bl-muted); cursor: pointer; width: 40px; height: 40px; }
#search-input-icon { color: var(--bl-muted); }

/* ---------- 5. Innehåll ---------- */
.main-content, .news-single-content { font-size: 17px; }
.main-content ul, .main-content ol, .news-single-content ul, .news-single-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.main-content li { margin-bottom: .4em; }
.main-content h2, .news-single-content h2 { padding-bottom: .25em; border-bottom: 1px solid var(--bl-border); }
.main-content img { border-radius: var(--bl-radius-sm); }
.main-content table, .news-single-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.main-content th, .main-content td { padding: 10px 12px; border-bottom: 1px solid var(--bl-border); text-align: left; vertical-align: top; }
.main-content thead th { background: var(--bl-soft); font-family: var(--bl-head-font); }
.main-content blockquote { margin: 1.5em 0; padding: 20px 24px; background: #fff; border: 1px solid var(--bl-border); border-left: 4px solid var(--bl-blue); border-radius: 5px 10px 10px 5px; box-shadow: var(--bl-shadow-sm); }
.main-content blockquote p:last-child { margin: 0; }
.news-header { margin-bottom: 4px; }
.publish-date { color: var(--bl-muted); font-size: 14px; }
.article-figure { margin: 0 0 16px; }
.article-figure img { width: 100%; height: auto; border-radius: var(--bl-radius); }
.bildtext { display: block; font-size: 13px; color: var(--bl-muted); padding-top: 6px; }
.artikel-kategori { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.artikel-kategori a, .artikel-kategori span { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--bl-blue); background: #e8f0fe; padding: 3px 10px; border-radius: 999px; }
.artikel-kategori a:hover { text-decoration: none; background: #d8e5fd; }

/* Trovärdighetsrad */
.trust-bar { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 4px 0 24px; padding: 10px 0; border-top: 1px solid var(--bl-border); border-bottom: 1px solid var(--bl-border); font-size: 14px; color: var(--bl-muted); }
.trust-bar__item { display: inline-flex; align-items: center; gap: 8px; }
.trust-bar__item i { color: var(--bl-blue); }
.trust-bar__avatar { border-radius: 50%; width: 28px; height: 28px; object-fit: cover; }
.trust-bar a { color: var(--bl-text); font-weight: 600; }

/* ---------- 6. Komponenter ---------- */
/* Easy TOC / sidebar-1 */
.table-of-contents .widget, .table-of-contents li.widget { display: block; list-style: none; }
.widget.ez-toc, .table-of-contents .widget { background: #fff; border: 1px solid var(--bl-border); border-top: 3px solid var(--bl-blue); border-radius: var(--bl-radius); box-shadow: var(--bl-shadow-sm); padding: 18px 20px; }
.widget.ez-toc h2.widgettitle, .table-of-contents h2.widgettitle { margin: 0 0 8px; padding: 0; border: 0; font-size: 17px; display: flex; align-items: center; justify-content: space-between; }
.widget.ez-toc ul, .table-of-contents ul { list-style: none; margin: 0; padding: 0; }
.widget.ez-toc ul li { border-bottom: 1px solid var(--bl-border); padding: 9px 0; font-size: 14px; line-height: 1.35; margin: 0; }
.widget.ez-toc ul li:last-child { border-bottom: 0; }
.ez-toc-widget-container li > a { font-family: var(--bl-body-font); font-weight: 400; color: var(--bl-text); }
.ez-toc-widget-container li.active > a, .ez-toc-widget-container li > a:hover { color: var(--bl-blue); font-weight: 600; text-decoration: none; }
.main-content > #ez-toc-container { display: none; }

/* Skribent/granskare */
.extra-page-info { margin: 48px 0 32px; padding-top: 28px; border-top: 1px solid var(--bl-border); }
.main-details-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.skribent-outer-container, .granskare-outer-container { background: var(--bl-soft); border: 1px solid var(--bl-border); border-radius: var(--bl-radius); padding: 18px 20px; }
.skribent-headline, .granskare-headline { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bl-muted); margin-bottom: 10px; }
.skribent-info { display: flex; align-items: center; gap: 14px; }
.skribent-img img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.skribent-detaljer { display: flex; flex-direction: column; }
.skribent-namn { font-family: var(--bl-head-font); font-weight: 700; font-size: 17px; color: var(--bl-text); }
.skribent-titel { font-size: 14px; color: var(--bl-muted); }

/* Dela */
.share-buttons { margin: 8px 0 16px; }
.expand-share-button { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.single-share-button a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--bl-border); border-radius: 999px; color: var(--bl-text); font-weight: 600; font-size: 14px; background: #fff; text-decoration: none; }
.single-share-button a:hover { border-color: var(--bl-blue); color: var(--bl-blue); }

/* Lär dig mer */
.sidebar-faq-container { margin-bottom: 24px; }
.sidebar-faq-container h4 { margin: 0 0 12px; }
.sidebar-faq { border: 1px solid var(--bl-border); border-radius: var(--bl-radius-sm); margin-bottom: 8px; background: #fff; }
.sidebar-faq-headline { margin: 0; padding: 12px 16px; font-size: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.sidebar-faq-headline::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--bl-muted); border-bottom: 2px solid var(--bl-muted); transform: rotate(45deg); transition: transform .2s; }
.sidebar-faq-headline.active::after { transform: rotate(-135deg); }
.sidebar-faq-linklist { display: none; list-style: none; margin: 0; padding: 0 16px 12px; }
.sidebar-faq-linklist li { padding: 6px 0; border-top: 1px solid var(--bl-border); font-size: 15px; }
.sidebar-faq-linklist li:first-child { border-top: 0; }

/* Kort / populära */
.card { background: #fff; border: 1px solid var(--bl-border); border-radius: var(--bl-radius); box-shadow: var(--bl-shadow-sm); }
.popular-company-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 24px; }
.popular-company { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.popular-company__logo { display: flex; justify-content: center; align-items: center; min-height: 72px; }
.popular-company .btn-primary { margin-top: auto; }
.popular-company .btn-primary__link { width: 100%; }

/* Sektioner startsida */
.hero { background: linear-gradient(180deg, #e9f0fe 0%, #F6F7FD 100%); padding: 40px 0 32px; }
.hero .wrapper.col2 { display: flex; align-items: center; gap: 40px; justify-content: space-between; }
.hero-content h1 { margin-top: 0; }
.c-tagline { font-size: 18px; color: var(--bl-muted); max-width: 640px; }
.hero-content-image-container img { max-width: 400px; width: 100%; height: auto; border-radius: 0; }
.law-text-link { background: none; border: 0; padding: 0; color: var(--bl-blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.hero-top-container { display: flex; gap: 32px; justify-content: space-between; align-items: center; }
.hero #container { margin-top: 24px; }
.how-to-use-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 24px; }
.how-to-use img { max-width: 160px; height: auto; border-radius: 0; }
.c-main-teaser-flex { display: flex; gap: 40px; align-items: center; }
.image-section-txt { flex: 1; }
.category-links-container { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.category-link-button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: #fff; border: 1px solid var(--bl-border); border-radius: 999px; box-shadow: var(--bl-shadow-sm); color: var(--bl-text); font-weight: 600; text-decoration: none; }
.category-link-button:hover { border-color: var(--bl-blue); color: var(--bl-blue); text-decoration: none; }
.front-page-news { background: var(--bg-gray, #F6F7FD); }
.logolist-container { padding: 24px 0 8px; }
.logolist-container__headline { text-align: center; color: var(--bl-muted); font-weight: 600; }
.logolist { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: center; margin: 12px 0 0; padding: 0; }
.logolist img { filter: grayscale(.2); border-radius: 0; }
.campaign-container { margin-top: 20px; padding: 18px 22px; background: #fff; border: 1px solid var(--bl-border); border-radius: var(--bl-radius); box-shadow: var(--bl-shadow-sm); }
.campaign-headline { font-family: var(--bl-head-font); font-weight: 700; display: block; margin-bottom: 10px; }
.campaign-container-inner { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; }
.campaign-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* Senaste nyheter */
.latest-news__headline { margin: 0 0 16px; font-size: 1.3rem; }
.news--latest ul, .news-list { list-style: none; margin: 0; padding: 0; }
.news--latest ul { display: grid; gap: 12px; }
.news--latest .news-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--bl-border); border-radius: var(--bl-radius); padding: 12px; color: var(--bl-text); text-decoration: none; box-shadow: var(--bl-shadow-sm); transition: box-shadow .15s; }
.news--latest .news-card:hover { box-shadow: var(--bl-shadow); }
.news-card .news-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.news-txt { display: flex; flex-direction: column; gap: 2px; }
.news-titel { font-family: var(--bl-head-font); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--bl-text); }
.news-date { font-size: 13px; color: var(--bl-muted); }
.news--latest .artikel-kategori { margin-bottom: 4px; }
.sidebar-news .news--latest ul { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.news-list li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--bl-border); }
.news-list li.fadein { display: none; }
.news-list .news-thumb { width: 180px; height: 120px; object-fit: cover; border-radius: var(--bl-radius-sm); flex: none; }
.news-list a { text-decoration: none; }
.news-list a:hover .news-titel { color: var(--bl-blue); }
.wp-prev-next ul { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 24px 0; }
.wp-prev-next a { font-weight: 700; }
.box-border { background: #fff; border: 1px solid var(--bl-border); border-radius: var(--bl-radius); padding: 18px 20px; box-shadow: var(--bl-shadow-sm); }
.box-border ul { list-style: none; margin: 0; padding: 0; }
.box-border li { padding: 6px 0; }
.box-border a.active { color: var(--bl-text); font-weight: 700; }

/* Kategorimeny mobil */
.category-dropdown__button { display: none; }

/* ---------- 7. Sidor ---------- */
.faq-hero { background: var(--bg-gradient, #F6F7FD); padding: 40px 0; text-align: center; }
.faq-hero h1 { margin: 0 0 12px; }
.faq-hero .c-tagline { margin: 0 auto; }
.faq-page { column-count: 2; column-gap: 2em; margin-top: 24px; }
.faq-page .col { display: inline-block; width: 100%; margin: 0 0 24px; break-inside: avoid; }
.simple-faq { list-style: none; padding: 0; margin: 0; }
.simple-faq li { padding: 8px 0; border-bottom: 1px solid var(--bl-border); }
.faq-glossary { background: var(--bl-soft); padding: 48px 0; }
.faq-glossary h2 { margin: 0 0 24px; }
.faq-glossary ul { list-style: none; padding: 0; margin: 0; }
.faq-glossary ul.faq-multi-col { column-count: 3; column-gap: 24px; }
.faq-glossary li { margin-bottom: 12px; break-inside: avoid; }
.searchresult { padding: 18px 0; border-bottom: 1px solid var(--bl-border); }
.searchresult h2 { margin: 0 0 4px; font-size: 1.25rem; border: 0; padding: 0; }
.author-archive .profile-image { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.profile-image img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.profile-name { font-size: 1.25rem; margin: 0; display: block; }
.profile-title { display: block; color: var(--bl-muted); font-size: 14px; }
.profile-description { display: block; margin-bottom: 14px; font-size: 15px; }
.profile-expertise { display: block; font-weight: 700; margin-bottom: 6px; }
.expertise-category { list-style: none; padding: 0; margin: 0; }
.expertise-category li { padding: 3px 0; }
#tabs { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; border-bottom: 1px solid var(--bl-border); flex-wrap: wrap; }
#tabs a { display: block; padding: 10px 16px; border-bottom: 3px solid transparent; color: var(--bl-muted); font-weight: 600; cursor: pointer; text-decoration: none; }
#tabs a[aria-selected="true"] { color: var(--bl-blue); border-bottom-color: var(--bl-blue); }
.js .tab-container { display: none; }
.js .tab-container.is-active { display: block; }
.published-work-list { list-style: none; padding: 0; margin: 0; }
.published-work-list li { padding: 12px 0; border-bottom: 1px solid var(--bl-border); }
.published-work-list a { display: block; text-decoration: none; color: var(--bl-text); }
.domain-in-numbers { margin: 32px 0; }
.domain-in-numbers ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.domain-in-numbers li { background: var(--bl-soft); border: 1px solid var(--bl-border); border-radius: var(--bl-radius); padding: 18px; text-align: center; display: flex; flex-direction: column; }
.domain-in-numbers strong { font-family: var(--bl-head-font); font-size: 1.8rem; color: var(--bl-blue); }
.redaktionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.redaktionen-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.redaktionen-box img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.redaktionen-box-namn, .tidigare_skribenter-box-namn { font-weight: 700; display: block; }
.redaktionen-box-titel, .tidigare_skribenter-box-titel { color: var(--bl-muted); font-size: 14px; display: block; }
.tidigare_skribenter { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tidigare_skribenter-box { display: flex; gap: 12px; align-items: center; }
.tidigare_skribenter-box img { width: 48px; height: 48px; border-radius: 50%; }
.presskontakt { display: flex; gap: 20px; align-items: center; }
.presskontakt ul { list-style: none; padding: 0; margin: 0; }
.presskontakt-namn { font-weight: 700; }
.page-404 { display: flex; align-items: center; justify-content: center; gap: 40px; min-height: 0; padding: 48px 0; background: var(--bg-gradient, #F6F7FD); flex-wrap: wrap; }
.notfound-404 { max-width: 434px; margin: 0; }
.notfound-404 ul { list-style: none; padding: 0; margin: 0 0 24px; }
.notfound-404 li { margin-top: 12px; }
.notfound-404 form { display: flex; box-shadow: var(--bl-shadow-sm); border-radius: 999px; }
.notfound-404 .search-input { border-radius: 999px 0 0 999px; }
.notfound-404 .search-btn { background: var(--bl-blue); color: #fff; border: 0; border-radius: 0 999px 999px 0; padding: 0 22px; font-weight: 700; cursor: pointer; }
.notfound-404-illustration img { max-width: 420px; border-radius: 0; }
.form-submit-message { text-align: center; padding: 48px 16px; }

/* ---------- 8. Footer ---------- */
.footer { background: var(--bl-navy); color: #E8F1FF; padding: 48px 0 32px; margin-top: 0; }
.footer a { color: #B7B8C3; }
.footer a:hover { color: #fff; }
.footer-container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-company-info { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; line-height: 1.7; }
.footer-company-info li { margin: 0; }
.footer .site-logo img { height: 32px; width: auto; border-radius: 0; }
.footer-heading { display: block; font-family: var(--bl-head-font); font-weight: 700; font-size: 17px; color: #fff; margin-bottom: 12px; }
.footer .menu { list-style: none; padding: 0; margin: 0; }
.footer .menu li { margin: 0 0 8px; }
.footer-menu { background: #16336f; color: #B7B8C3; padding: 16px 0; font-size: 14px; }
.footer-menu a { color: #B7B8C3; }
.footer-policy-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- 9. Overlays & modaler ---------- */
.overlay, .menu-overlay, .search-overlay, .multi-purpose-overlay, .law-text-overlay { display: none; position: fixed; inset: 0; background: rgba(36, 38, 51, .55); z-index: 1000; }
.menu-overlay { z-index: 940; }
.search-overlay { z-index: 800; background: rgba(36, 38, 51, .35); }
.modal { display: none; }
.stop-scrolling { overflow: hidden; width: 100%; }
.page-review-outer-container { background: var(--bl-soft); border-top: 1px solid var(--bl-border); padding: 22px 0; }
.page-review-inner-container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.page-review-text-container { font-family: var(--bl-head-font); font-weight: 700; font-size: 18px; }
.page-review-button-container { display: flex; gap: 12px; }
.modal-button { min-height: 44px; padding: 8px 28px; border-radius: 999px; background: #fff; font: 700 15px var(--bl-body-font); cursor: pointer; }
.button-yes .modal-button { color: #0DA014; border: 1px solid #0DA014; }
.button-yes .modal-button:hover { background: #e7f6e8; }
.button-no .modal-button { color: var(--bl-cta); border: 1px solid var(--bl-cta); }
.button-no .modal-button:hover { background: #fdecee; }
.modal-container { position: fixed; z-index: 1001; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 92vw); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--bl-radius); box-shadow: 0 20px 60px rgba(16, 40, 90, .35); }
.modal-container[hidden], .thank-you-modal[hidden] { display: none; }
.modal-close-icon { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--bl-muted); }
.modal-box { display: flex; flex-direction: column; padding-bottom: 24px; }
.modal-box-headline { font-size: 20px; margin: 0; padding: 28px 24px 12px; }
.modal-box-text { padding: 0 24px; display: block; }
.modal-box .share-buttons, .modal-box .form-container, #copy-link-input { padding: 0 24px; }
.modal-textarea { width: 100%; height: 110px; margin: 10px 0 4px; padding: 12px; border: 1px solid #b9c2d3; border-radius: 10px; font: inherit; resize: none; }
.form-container { position: relative; }
#word-count { position: absolute; right: 34px; bottom: 14px; font-size: 12px; color: var(--bl-muted); }
.send-feedback-button-container { display: flex; align-items: center; gap: 16px; padding: 8px 24px 0; }
.info-text { font-size: 12px; margin: 0; color: var(--bl-muted); }
.input-container-headline { display: block; margin: 20px 0 6px; font-weight: 600; }
.input-container { display: flex; border: 1px solid #b9c2d3; border-radius: 999px; padding: 4px 6px 4px 14px; align-items: center; }
.input-container input { flex: 1; border: 0; min-width: 0; background: transparent; outline: none; font: inherit; color: var(--bl-muted); }
#copy-link-button { background: none; border: 0; color: var(--bl-blue); font-weight: 700; cursor: pointer; padding: 8px 12px; }
.thank-you-modal { display: flex; flex-direction: column; align-items: center; padding: 36px 24px; gap: 18px; }
.thank-you-text { font-family: var(--bl-head-font); font-size: 20px; font-weight: 700; color: var(--bl-navy); }
.law-text-outer-container { display: none; position: fixed; inset: 0; z-index: 1002; align-items: center; justify-content: center; padding: 16px; }
.law-text-container { background: #fff; border-radius: var(--bl-radius); max-width: 640px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(16, 40, 90, .35); }
.law-text { padding: 24px; overflow: auto; }
.law-text-button-container { padding: 16px 24px 24px; }

/* ---------- 10. Plugin-ankare ---------- */
/* bl-newsletter wrappar .table-of-contents i .bl-nl-col (float/33%/sticky i pluginets CSS) – här görs den till ett gridbarn i sidokolumnen. */
.content > .bl-nl-col { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; grid-column: 2; grid-row: 1; position: sticky !important; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.bl-nl-col > .table-of-contents { position: static; }
.sidebar-content .bl-nl--inside { margin-bottom: 16px; }
.wrapper.bl-nl--bottom, .bl-nl--bottom { margin-top: 32px; }
.sidebar-content .bl-nl--inside { margin-top: 0; }

/* ---------- 11. Responsivt ---------- */
@media (max-width: 1024px) {
  .side-nav-button { display: inline-flex; }
  .main-nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(88vw, 380px); background: #fff; z-index: 950; padding: 76px 16px 24px; overflow-y: auto; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--bl-shadow); }
  .main-nav.open, .main-nav:has(#menu-header.open) { transform: none; }
  #menu-header, .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .sub-menu { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 0 12px; }
  .main-nav li:hover > .sub-menu { display: none; }
  .main-nav .has-sub.open > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
  .header-wrapper { gap: 8px; }
  .header-actions { margin-left: auto; }
  .site-logo { order: -1; }
  .side-nav-button { z-index: 960; position: relative; }
}
@media (max-width: 860px) {
  .content { display: block; }
  .table-of-contents, .sidebar-content, .content > .bl-nl-col { position: static !important; margin-bottom: 24px !important; }
  .content > .main-content { margin-bottom: 24px; }
  .table-of-contents h2.widgettitle { cursor: pointer; }
  .table-of-contents h2.widgettitle::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--bl-muted); border-bottom: 2px solid var(--bl-muted); transform: rotate(45deg); transition: transform .2s; margin-left: 8px; }
  .table-of-contents h2.widgettitle.open::after { transform: rotate(-135deg); }
  .hero .wrapper.col2, .hero-top-container, .c-main-teaser-flex { flex-direction: column; align-items: flex-start; }
  .hero-content-image-container { display: none; }
  .footer-container { grid-template-columns: 1fr; gap: 28px; }
  .faq-page { column-count: 1; }
  .faq-glossary ul.faq-multi-col { column-count: 1; }
  .campaign-container-inner { grid-template-columns: 1fr; }
  .news-list .news-thumb { width: 110px; height: 80px; }
  .category-dropdown { display: block !important; margin-bottom: 16px; }
  .category-dropdown__button { display: inline-flex; padding: 10px 18px; border: 1px solid var(--bl-border); border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; }
  .category-dropdown__item-container { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; background: #fff; border-radius: 16px 16px 0 0; padding: 20px; max-height: 80vh; overflow: auto; }
  .category-dropdown__item-container.open { display: block; }
  .category-dropdown__item-container ul { list-style: none; padding: 0; margin: 0; }
  .category-dropdown__item-container li { padding: 10px 0; border-bottom: 1px solid var(--bl-border); }
  .category-dropdown__item-container__headline { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
  .close-category-modal { background: none; border: 0; font-size: 20px; }
  .content > .sidebar-content:not(.single-news) { display: none; }
  .content > .sidebar-content:has(.bl-nl) { display: block; } /* nyhetsbrevsrutan ska synas även på arkiv */
}
@media (max-width: 560px) {
  .page-review-inner-container { flex-direction: column; align-items: flex-start; }
  .news-list li { gap: 12px; }
  .trust-bar { gap: 6px 14px; font-size: 13px; }
  .send-feedback-button-container { flex-direction: column; align-items: stretch; }
  .main-content, .news-single-content { font-size: 16px; }
}

/* ---------- 12. Print ---------- */
@media print {
  .site-header, .footer, .footer-menu, .page-review-outer-container, .table-of-contents, .sidebar-content, .bl-nl-col, .bl-nl, .share-buttons, .overlay, .menu-overlay { display: none !important; }
  .content { display: block; }
  body { color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}


/* ---------- 13. Rättningar efter verifiering ---------- */
/* Sticky footer: body som flex-kolumn. */
body { display: flex; flex-direction: column; min-height: 100vh; }

/* Cookiebanner (WebToffee) ligger fast i botten: JS (theme.js) sätter --bl-cc-h-bottom (bannerns höjd) så footern inte döljs. */
body { padding-bottom: var(--bl-cc-h-bottom, 0px); }
.wcc-consent-container.wcc-hide, .wcc-consent-container[hidden] { display: none !important; }

/* Tabeller: horisontellt scrollbara, inget ordbrott mitt i ord, årtal bryts aldrig. */
.main-content table, .news-single-content table { -webkit-overflow-scrolling: touch; max-width: 100%; }
.main-content th, .main-content td, .news-single-content th, .news-single-content td { word-break: normal; overflow-wrap: normal; hyphens: manual; }
.main-content td a, .main-content th a { overflow-wrap: anywhere; } /* bara länkar/URL:er får brytas vid behov */
.main-content td:first-child, .main-content th:first-child, .news-single-content td:first-child, .news-single-content th:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .main-content table, .news-single-content table { font-size: 14px; }
  .main-content th, .main-content td, .news-single-content th, .news-single-content td { padding: 8px 10px; min-width: 6.5em; white-space: nowrap; }
  .main-content th:first-child, .main-content td:first-child { min-width: 0; }
}

/* Tom paginering (inga länkar) ska inte ge en tom ruta. */
.wp-prev-next:empty, .wp-prev-next li:empty { display: none; }

/* Overflow på mobil: långa URL:er i brödtext (bryts bara när de annars inte ryms) och 404-illustrationen. */
.main-content a, .news-single-content a { overflow-wrap: anywhere; }
.notfound-404-illustration { max-width: 100%; }
.notfound-404-illustration img { max-width: 100%; height: auto; }
