/*
Theme Name: VA Branschen
Theme URI:
Author: Rmedia AB
Description: Ett snabbt och avskalat redaktionellt WordPress-tema för VA Branschen.se.
Version: 1.1.13
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: rulle
*/

:root {
  --vn-ink: #172033;
  --vn-black: #0d0c11;
  --vn-accent: #2455f5;
  --vn-muted: #696772;
  --vn-line: #e3e7ed;
  --vn-paper: #ffffff;
  --vn-soft: #f3f5f8;
  --vn-width: 1180px;
  --vn-reading: 700px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vn-ink);
  background: var(--vn-paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--vn-accent); }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; left: 1rem; top: 1rem; z-index: 9999;
  width: auto; height: auto; margin: 0; padding: .75rem 1rem;
  clip: auto; background: #fff; color: #000; border: 2px solid var(--vn-accent);
}
.vn-wrap { width: min(calc(100% - 40px), var(--vn-width)); margin-inline: auto; }

/* Header */
.vn-site-header {
  position: sticky; top: 0; z-index: 1000; background: #fff;
  border-bottom: 1px solid #c9c7c3; box-shadow: none;
}
.vn-site-header.is-compact { box-shadow: 0 5px 16px rgba(25,23,31,.08); }
.vn-brand-row {
  height: 112px; min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  overflow: hidden;
}
.vn-brand { display: flex; align-items: center; gap: 28px; min-width: 0; }
.vn-brand-tagline {
  max-width: 475px; margin: 0; padding-left: 25px; border-left: 2px solid var(--vn-accent);
  color: #5c5963; font-size: 14px; line-height: 1.42; font-weight: 500;
}
.vn-logo {
  display: inline-flex; align-items: center; color: var(--vn-ink);
  font-size: clamp(34px, 3.4vw, 48px); font-weight: 850; letter-spacing: -.06em; line-height: 1;
}
.vn-logo:hover { color: var(--vn-ink); }
.vn-logo-accent { color: var(--vn-accent); font-weight: 500; }
.custom-logo-link { display: inline-flex; flex: 0 0 auto; align-items: center; }
.custom-logo { max-height: 64px; width: auto; }
.vn-menu-toggle {
  display: none; padding: 8px; border: 0; background: transparent; color: var(--vn-ink); cursor: pointer;
}
.vn-menu-toggle svg { display: block; }
.vn-nav { background: #fff; border-top: 1px solid var(--vn-line); }
.vn-nav-inner { position: relative; display: flex; justify-content: flex-start; min-height: 54px; }
.vn-nav-brand {
  position: absolute; left: 0; top: 50%; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-50%); font-size: 25px; font-weight: 850;
  letter-spacing: -.06em; line-height: 1;
  transition: opacity .16s ease, visibility 0s linear .16s;
}
.vn-site-header.is-compact .vn-nav-brand {
  opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s;
}
.vn-menu { display: flex; align-items: stretch; gap: clamp(22px, 3vw, 42px); margin: 0; padding: 0; list-style: none; }
.vn-menu li { display: flex; align-items: stretch; }
.vn-menu a {
  display: flex; align-items: center; border-bottom: 2px solid transparent;
  font-size: 14px; font-weight: 800; white-space: nowrap;
}
.vn-menu a:hover, .vn-menu .current-menu-item > a, .vn-menu .current-category-ancestor > a {
  color: var(--vn-accent); border-bottom-color: var(--vn-accent);
}

/* Shared editorial elements */
.vn-main { padding-block: 30px 68px; }
.vn-kicker {
  color: var(--vn-accent); font-size: 11px; line-height: 1.2; font-weight: 850;
  letter-spacing: .065em; text-transform: uppercase;
}
.vn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--vn-muted); font-size: 12px; }
.vn-meta time { display: inline-flex; align-items: center; gap: 6px; }
.vn-meta time::before {
  content: ""; width: 14px; height: 14px; border: 1.7px solid currentColor; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) 50% 25% / 1.5px 4px no-repeat,
              linear-gradient(currentColor, currentColor) 65% 58% / 4px 1.5px no-repeat;
}
.vn-heading-rule { margin: 0 0 20px; padding-bottom: 9px; border-bottom: 4px solid var(--vn-ink); font-size: 22px; line-height: 1.12; }
.vn-empty { padding: 40px 0; color: var(--vn-muted); }

/* Homepage top */
.vn-top-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .85fr); gap: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--vn-line); }
.vn-lead { border-left: 6px solid var(--vn-accent); }
.vn-lead-image { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--vn-soft); }
.vn-lead-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.vn-lead:hover .vn-lead-image img { transform: scale(1.012); }
.vn-lead-content { padding: 14px 24px 0; }
.vn-lead--no-image {
  display: flex; min-height: 360px; align-items: flex-end;
  border-top: 5px solid var(--vn-ink); border-left: 0; background: var(--vn-soft);
}
.vn-lead--no-image .vn-lead-content { width: 100%; padding: 34px 38px 38px; }
.vn-lead--no-image .vn-lead-title { max-width: 720px; font-size: clamp(32px, 3.25vw, 46px); }
.vn-lead--no-image .vn-lead-excerpt { max-width: 650px; font-size: 16px; }
.vn-lead-content > .vn-kicker { display: inline-block; }
.vn-lead-title { max-width: 760px; margin: 7px 0 9px; font-size: clamp(28px, 2.65vw, 40px); line-height: 1.07; letter-spacing: -.032em; font-weight: 850; text-wrap: balance; }
.vn-lead-title, .vn-quick-title, .vn-card-title, .vn-article-title {
  max-width: 100%; overflow-wrap: break-word; word-break: normal; hyphens: auto;
}
.vn-lead-title a { text-decoration: none; }
.vn-lead-excerpt { max-width: 680px; margin: 0; color: #4d4b53; font-size: 15px; line-height: 1.5; }
.vn-quick-list { min-width: 0; }
.vn-quick-item { padding: 0 0 17px; margin-bottom: 17px; border-bottom: 1px solid var(--vn-line); }
.vn-quick-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.vn-quick-title { margin: 5px 0 0; font-size: 17px; line-height: 1.12; letter-spacing: -.02em; font-weight: 850; }
.vn-quick-excerpt { margin: 5px 0 0; color: var(--vn-muted); font-size: 12px; line-height: 1.4; }
.vn-mobile-quick-feed { display: none; }

/* Continuous feed */
.vn-feed-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(220px, 1fr); gap: 54px; padding-top: 26px; }
.vn-feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.vn-card { display: grid; grid-template-columns: minmax(220px, 38%) 1fr; gap: 24px; padding-block: 22px; border-top: 1px solid var(--vn-line); }
.vn-card:first-of-type { border-top: 4px solid var(--vn-ink); }
.vn-card--home { display: block; min-width: 0; padding: 7px 0 26px; border-top: 1px solid var(--vn-line); }
.vn-feed-grid > .vn-card--home:first-child { border-top: 0; }
.vn-card--home .vn-card-image { margin-bottom: 14px; }
.vn-card--home .vn-card-title { font-size: clamp(21px, 1.85vw, 25px); }
.vn-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--vn-soft); }
.vn-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.vn-card:hover .vn-card-image img { transform: scale(1.018); }
.vn-card-content { min-width: 0; align-self: center; }
.vn-card--no-image { display: block; }
.vn-card--no-image .vn-card-content { max-width: 760px; }
.vn-card--home.vn-card--no-image { padding-top: 17px; }
.vn-card--home.vn-card--no-image .vn-card-content { padding-right: 12px; }
.vn-card--home.vn-card--large {
  grid-column: 1 / -1; display: block;
  padding: 8px 0 32px; border-top-width: 1px;
}
.vn-card--home.vn-card--large .vn-card-image { width: 100%; aspect-ratio: 2 / 1; margin-bottom: 0; }
.vn-card--home.vn-card--large .vn-card-content { max-width: 760px; padding: 14px 0 0; }
.vn-card--home.vn-card--large .vn-card-title { font-size: clamp(27px, 2.5vw, 34px); }
.vn-card--home.vn-card--large.vn-card--no-image {
  display: block; padding: 28px 30px 31px; background: var(--vn-soft);
}
.vn-card--home.vn-card--large.vn-card--no-image .vn-card-content { max-width: 720px; padding: 0; }
.vn-card--home.vn-card--brief {
  grid-column: 1 / -1; padding: 16px 0 21px;
}
.vn-card--home.vn-card--brief .vn-card-content { max-width: 760px; }
.vn-card--home.vn-card--brief .vn-card-title { margin-bottom: 0; font-size: clamp(21px, 1.85vw, 25px); line-height: 1.13; }
.vn-card--home.vn-card--wide {
  grid-column: 1 / -1; display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr); gap: 26px;
  padding: 10px 0 27px;
}
.vn-card--home.vn-card--wide .vn-card-image { margin-bottom: 0; }
.vn-card--home.vn-card--wide .vn-card-content { align-self: center; }
.vn-card--home.vn-card--wide .vn-card-title { font-size: clamp(23px, 2.15vw, 29px); }
.vn-card--home.vn-card--wide.vn-card--no-image { display: block; padding-top: 17px; }
.vn-card--home:not(.vn-card--no-image) { padding-top: 15px; }
.vn-card-title { margin: 7px 0 7px; font-size: clamp(21px, 2vw, 27px); line-height: 1.09; letter-spacing: -.025em; font-weight: 850; text-wrap: balance; }
.vn-card-excerpt { margin: 0; color: #53515a; font-size: 14px; line-height: 1.48; }
.vn-sidebar {
  align-self: start;
  position: static;
  padding-top: 0;
}
.vn-most-read { position: static; }
.vn-most-read h2 { margin: 0; padding: 0 0 11px; border-bottom: 4px solid var(--vn-ink); font-size: 21px; line-height: 1.15; }
.vn-most-read-list { margin: 0; padding: 0; list-style: none; }
.vn-most-read-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--vn-line); }
.vn-most-read-rank { color: var(--vn-accent); font-size: 22px; line-height: 1; font-weight: 850; }
.vn-most-read-list a { font-size: 15px; line-height: 1.22; font-weight: 850; letter-spacing: -.015em; }
.nav-links, .vn-pagination { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--vn-line); font-weight: 750; }
.page-numbers.current, .page-numbers:hover { color: #fff; border-color: var(--vn-ink); background: var(--vn-ink); }

/* Archive */
.vn-archive-head { max-width: 760px; padding: 10px 0 22px; }
.vn-archive-label { margin-bottom: 8px; }
.vn-archive-title { margin: 0; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.vn-archive-description { max-width: 680px; color: var(--vn-muted); }
.vn-archive-list { max-width: 920px; }

/* Single article */
.vn-article { margin-inline: auto; }
.vn-article-header { width: min(100%, 820px); min-width: 0; margin-inline: auto; }
.vn-article-title { margin: 9px 0 14px; font-size: clamp(36px, 4vw, 52px); line-height: 1.035; letter-spacing: -.038em; font-weight: 850; text-wrap: balance; }
.vn-article-deck { max-width: 720px; margin: 0 0 18px; color: #4f4d56; font-size: clamp(18px, 1.55vw, 20px); line-height: 1.42; }
.vn-article-byline { display: flex; align-items: center; gap: 11px; margin: 20px 0; font-size: 13px; }
.vn-article-byline img { border-radius: 50%; }
.vn-article-hero { width: min(100%, 980px); margin: 24px auto 8px; }
.vn-article-hero img { width: 100%; max-height: 680px; object-fit: cover; }
.vn-caption { margin: 6px 0 0; color: var(--vn-muted); font-size: 12px; }
.vn-article-body { width: min(100%, var(--vn-reading)); margin: 32px auto 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1.68; }
.vn-article-body > *:first-child { margin-top: 0; }
.vn-article-body h2, .vn-article-body h3 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.15; letter-spacing: -.025em; }
.vn-article-body h2 { margin: 1.9em 0 .55em; font-size: 28px; }
.vn-article-body h3 { margin: 1.65em 0 .45em; font-size: 22px; }
.vn-article-body a { color: var(--vn-accent); text-decoration: underline; }
.vn-page .vn-article-body { margin-inline: 0; }
.vn-page .vn-article-body ul,
.vn-page .vn-article-body ol { padding-left: 1.3em; }
.vn-page .vn-article-body li + li { margin-top: .42em; }
.vn-article-body blockquote { margin: 1.6em 0; padding: .2em 0 .2em 24px; border-left: 5px solid var(--vn-accent); font-size: 1.15em; line-height: 1.55; }
.vn-article-body figure { margin: 2em 0; }
.vn-article-body figcaption { color: var(--vn-muted); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; }
.vn-article-tags { width: min(100%, var(--vn-reading)); margin: 30px auto 0; font-size: 13px; }
.vn-article-tags a { display: inline-block; margin: 0 5px 5px 0; padding: 6px 10px; background: var(--vn-soft); }
.vn-related { width: min(100%, 980px); margin: 64px auto 0; padding-top: 24px; border-top: 4px solid var(--vn-ink); }
.vn-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vn-related-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 11px; background: var(--vn-soft); }
.vn-related-item img { width: 100%; height: 100%; object-fit: cover; }
.vn-related-item--no-image { padding-top: 13px; border-top: 2px solid var(--vn-ink); }
.vn-related-item h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.15; letter-spacing: -.015em; }
.vn-related-excerpt { margin: 7px 0 0; color: var(--vn-muted); font-size: 14px; line-height: 1.4; }

/* Pages and footer */
.vn-page { width: min(100%, var(--vn-reading)); margin-inline: auto; }
.vn-page-title { font-size: clamp(34px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.vn-site-footer { border-top: 1px solid var(--vn-line); background: var(--vn-ink); color: #fff; }
.vn-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 46px; padding-block: 48px; }
.vn-footer-logo { font-size: 30px; font-weight: 850; letter-spacing: -.05em; }
.vn-footer-copy { max-width: 440px; color: #cbc9ce; font-size: 14px; }
.vn-footer-title { margin: 0 0 12px; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.vn-footer-menu { margin: 0; padding: 0; list-style: none; }
.vn-footer-menu li { margin: 6px 0; }
.vn-footer-menu a { color: #d7d5da; font-size: 14px; }
.vn-footer-bottom { padding: 18px 0; border-top: 1px solid #45424d; color: #aaa7b0; font-size: 12px; }
.vn-footer-bottom a { color: #d7d5da; }
.vn-footer-bottom a:hover { color: var(--vn-accent); }

@media (max-width: 900px) {
  .vn-brand-row { height: 82px; min-height: 82px; }
  .vn-brand-tagline { display: none; }
  .vn-menu-toggle { display: block; }
  .vn-nav {
    position: absolute; top: 100%; right: 0; left: 0; display: none;
    max-height: calc(100vh - 82px); overflow-y: auto;
    border-top: 1px solid var(--vn-line); border-bottom: 1px solid #c9c7c3; box-shadow: 0 14px 28px rgba(0,0,0,.12);
  }
  .vn-nav.is-open { display: block; }
  .vn-nav-inner { display: block; min-height: 0; }
  .vn-nav-brand { display: none; }
  .vn-site-header.is-compact .vn-menu { margin-left: 0; }
  .vn-menu { display: block; padding: 8px 0 18px; }
  .vn-menu li, .vn-menu a { display: block; }
  .vn-menu a { padding: 11px 0; border-bottom: 1px solid var(--vn-line); }
  .vn-top-grid { grid-template-columns: 1fr; gap: 26px; }
  .vn-lead-image { aspect-ratio: 16 / 9; }
  .vn-quick-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .vn-quick-list .vn-heading-rule { grid-column: 1 / -1; }
  .vn-feed-layout { grid-template-columns: 1fr; }
  .vn-sidebar { display: none; }
  .vn-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .vn-wrap { width: min(calc(100% - 28px), var(--vn-width)); }
  .vn-brand-row { height: 74px; min-height: 74px; }
  .vn-logo { font-size: 30px; }
  .custom-logo { max-height: 42px; }
  .vn-menu-toggle { margin-right: -7px; }
  .vn-menu-toggle svg { width: 32px; height: 32px; }
  .vn-nav { max-height: calc(100vh - 74px); }
  .vn-main { padding-block: 16px 48px; }
  .vn-top-grid { display: block; padding-bottom: 30px; border-bottom: 0; }
  .vn-lead { padding-top: 6px; border-top: 4px solid var(--vn-accent); border-left: 0; }
  .vn-lead-image { aspect-ratio: 16 / 10; }
  .vn-lead-content { padding: 12px 0 0; }
  .vn-lead--no-image {
    display: block; min-height: 0; padding-top: 0;
    border-top: 4px solid var(--vn-ink); background: var(--vn-soft);
  }
  .vn-lead--no-image .vn-lead-content { padding: 24px 20px 26px; }
  .vn-lead--no-image .vn-lead-title { font-size: clamp(27px, 7.5vw, 31px); }
  .vn-lead--no-image .vn-lead-excerpt { font-size: 16px; }
  .vn-lead-title { margin-top: 7px; font-size: clamp(27px, 7.5vw, 31px); line-height: 1.07; letter-spacing: -.03em; }
  .vn-lead-title a { text-decoration: none; }
  .vn-lead-excerpt { display: block; font-size: 16px; line-height: 1.42; }
  .vn-quick-list { display: none; }
  .vn-mobile-quick-feed { display: block; }
  .vn-feed-layout { display: block; padding-top: 0; }
  .vn-feed-grid { display: block; }
  .vn-card { display: block; padding-block: 19px 23px; }
  .vn-card--home { padding-top: 6px; }
  .vn-card:first-of-type { padding-top: 6px; border-top: 1px solid var(--vn-line); }
  .vn-card-image { aspect-ratio: 16 / 10; margin-bottom: 14px; }
  .vn-card--home.vn-card--no-image { padding-top: 17px; }
  .vn-card--home.vn-card--no-image .vn-card-content { padding-right: 0; }
  .vn-card--home.vn-card--large {
    display: block; padding: 6px 0 25px; border-top-width: 1px;
  }
  .vn-card--home.vn-card--large .vn-card-image { aspect-ratio: 16 / 10; margin-bottom: 14px; }
  .vn-card--home.vn-card--large .vn-card-content { padding: 0; }
  .vn-card--home.vn-card--large .vn-card-title { font-size: clamp(25px, 7vw, 29px); }
  .vn-card--home.vn-card--large.vn-card--no-image { padding: 22px 20px 24px; }
  .vn-card--home.vn-card--brief { padding: 15px 0 19px; }
  .vn-card--home.vn-card--brief .vn-card-title { font-size: clamp(20px, 5.7vw, 23px); }
  .vn-card--home.vn-card--wide { display: block; padding: 6px 0 23px; }
  .vn-card--home.vn-card--wide .vn-card-image { margin-bottom: 14px; }
  .vn-card--home:not(.vn-card--no-image) { padding-top: 9px; }
  .vn-card-title, .vn-card--home .vn-card-title { margin: 7px 0 6px; font-size: clamp(22px, 6.1vw, 25px); line-height: 1.09; letter-spacing: -.025em; }
  .vn-card-excerpt { display: block; font-size: 16px; line-height: 1.42; }
  .vn-archive-head { padding: 7px 0 18px; }
  .vn-archive-title { font-size: clamp(29px, 8vw, 33px); line-height: 1.07; letter-spacing: -.03em; }
  .vn-article-header { width: 100%; }
  .vn-article-title { margin: 9px 0 13px; font-size: clamp(29px, 7.8vw, 33px); line-height: 1.07; letter-spacing: -.032em; }
  .vn-article-deck { margin-bottom: 16px; font-size: 18px; line-height: 1.4; }
  .vn-article-byline { margin: 16px 0 18px; font-size: 13px; }
  .vn-article-hero { margin-top: 18px; }
  .vn-article-body { margin-top: 24px; font-size: 17px; line-height: 1.64; }
  .vn-article-body h2 { margin-top: 1.65em; font-size: 23px; }
  .vn-article-body h3 { font-size: 20px; }
  .vn-related-grid { grid-template-columns: 1fr; }
  .vn-related {
    width: min(calc(100% - 28px), 980px); margin-top: 44px;
    padding-top: 0; border-top: 0;
  }
  .vn-related .vn-heading-rule { margin-bottom: 17px; padding-bottom: 10px; font-size: 22px; }
  .vn-related-grid { gap: 28px; }
  .vn-related-item { padding-bottom: 25px; border-bottom: 1px solid var(--vn-line); }
  .vn-related-item--no-image { padding-top: 13px; border-top: 2px solid var(--vn-ink); }
  .vn-related-item:last-child { padding-bottom: 0; border-bottom: 0; }
  .vn-related-image { aspect-ratio: 16 / 9; margin-bottom: 12px; }
  .vn-related-item .vn-kicker { display: block; margin-top: 0; }
  .vn-related-item h3 { margin-top: 7px; font-size: clamp(21px, 5.8vw, 24px); line-height: 1.1; letter-spacing: -.025em; }
  .vn-related-excerpt { margin-top: 7px; font-size: 15px; line-height: 1.44; }
  .vn-page-title { font-size: clamp(29px, 8.5vw, 35px); line-height: 1.07; }
  .vn-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

body.admin-bar .vn-site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .vn-site-header { top: 46px; }
}

@media (min-width: 901px) {
  .vn-site-header { top: -112px; }
  body.admin-bar .vn-site-header { top: calc(32px - 112px); }
  .vn-nav-inner { padding-inline: 0; }
  .vn-menu { gap: clamp(18px, 2.25vw, 34px); }
  .vn-site-header.is-compact .vn-menu { margin-left: 106px; }
  body.admin-bar .vn-most-read { top: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Rulle 1.1 — approved consumer magazine direction. */
@font-face {
  font-family: 'Outfit'; src: url('assets/fonts/Outfit.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: optional;
}
:root { --vn-muted: #596579; --vn-sun: #ffe45c; }
body, .vn-article-body, .vn-article-body h2, .vn-article-body h3,
.vn-article-body figcaption { font-family: 'Outfit', Arial, sans-serif; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--vn-accent); outline-offset: 5px; border-radius: 3px; }
.vn-site-header { top: 0; border-color: var(--vn-line); }
.rulle-wordmark { display: block; width: 250px; height: auto; flex-shrink: 0; }
.vn-brand { gap: 20px; }
.vn-brand-tagline { padding: 0; border: 0; font-size: 16px; color: var(--vn-muted); white-space: nowrap; }
.vn-brand-row { height: 88px; min-height: 88px; overflow: visible; }
.vn-logo, .vn-logo:hover { color: var(--vn-accent); }
.vn-nav-brand { display: none; }
.vn-menu { gap: 24px; }
.vn-menu a { font-size: 15px; font-weight: 500; min-height: 48px; }
.vn-menu a[aria-current="page"] { color: var(--vn-accent); border-bottom-color: var(--vn-accent); }
.vn-main { padding-top: 24px; }
.vn-top-grid, .vn-feed-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.vn-top-grid { border: 0; padding-bottom: 32px; }
.vn-lead, .vn-lead--no-image { border: 0; padding-top: 0; }
.vn-lead-image { aspect-ratio: 3 / 2; border-radius: 8px; }
.vn-lead-content { padding: 16px 0 0; }
.vn-kicker { font-size: 12px; font-weight: 700; letter-spacing: .055em; }
.vn-lead-content > .vn-kicker { padding: 5px 10px; background: var(--vn-sun); color: var(--vn-ink); border-radius: 4px; }
.vn-lead-title { font-size: clamp(30px, 3.25vw, 44px); line-height: 1.1; font-weight: 750; letter-spacing: -.035em; margin: 12px 0; }
.vn-lead-excerpt { color: var(--vn-muted); font-size: 20px; line-height: 1.45; }
.vn-lead--no-image { min-height: 300px; border-radius: 8px; }
.vn-lead--no-image .vn-lead-content { padding: 28px; }
.vn-heading-rule { font-size: 28px; font-weight: 750; border: 0; padding: 0; margin-bottom: 24px; letter-spacing: -.025em; }
.vn-quick-item { display: flex; gap: 16px; padding-bottom: 24px; margin-bottom: 24px; }
.vn-quick-image { display: block; width: 30%; flex: 0 0 30%; align-self: flex-start; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--vn-soft); }
.vn-quick-image img { width: 100%; height: 100%; object-fit: cover; }
.vn-quick-content { min-width: 0; flex: 1; }
.vn-quick-title { font-size: 20px; font-weight: 700; line-height: 1.18; margin-top: 6px; }
.vn-quick-excerpt { font-size: 16px; line-height: 1.42; margin-top: 8px; }
.vn-feed-layout { padding-top: 0; }
.vn-card-image, .vn-related-image, .vn-article-hero img { border-radius: 8px; }
.vn-feed-grid { gap: 0 24px; }
.vn-feed-grid > .vn-card--home:nth-child(2) { border-top: 0; }
.vn-card:first-of-type { border-top-width: 1px; }
.vn-card--home { padding-bottom: 30px; }
.vn-feed-grid > .vn-card--home:nth-child(-n+2):not(.vn-card--no-image) { padding-top: 0; }
.vn-card-title, .vn-card--home .vn-card-title { font-weight: 700; line-height: 1.18; }
.vn-card-excerpt { color: var(--vn-muted); font-size: 16px; line-height: 1.45; }
.vn-most-read { background: var(--vn-soft); border-radius: 8px; padding: 26px; top: 112px; }
.vn-most-read h2 { border: 0; font-size: 27px; font-weight: 750; letter-spacing: -.03em; padding-bottom: 12px; }
.vn-most-read-list li { grid-template-columns: 35px minmax(0,1fr); gap: 16px; padding: 22px 0; align-items: start; }
.vn-most-read-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.vn-most-read-rank { font-size: 42px; font-weight: 600; }
.vn-most-read-list a { font-size: 18px; font-weight: 650; line-height: 1.3; }
.vn-article-title { font-weight: 750; line-height: 1.1; }
.vn-article-deck { color: var(--vn-muted); }
.vn-related { border-top-width: 1px; }
.vn-site-footer { background: #fff; color: var(--vn-ink); }
.vn-footer-grid { padding-block: 32px; }
.vn-footer-logo { display: inline-block; }
.vn-footer-logo .rulle-wordmark { width: 190px; }
.vn-footer-title { color: var(--vn-ink); }
.vn-footer-copy, .vn-footer-menu a, .vn-footer-bottom, .vn-footer-bottom a { color: var(--vn-muted); }
.vn-footer-menu a:hover { color: var(--vn-accent); }
.vn-footer-bottom { border-color: var(--vn-line); }
.page-numbers { border-radius: 5px; }
.page-numbers.current { background: var(--vn-accent); border-color: var(--vn-accent); }
@media (min-width: 1101px) {
  .vn-site-header { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-inline: max(20px, calc((100% - var(--vn-width)) / 2)); }
  .vn-brand-row { width: auto; margin: 0; flex: 0 0 auto; }
  .vn-nav { border-top: 0; }
  .vn-nav-inner { width: auto; margin: 0; min-height: 88px; }
  .vn-menu { flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; }
  .vn-menu a { font-size: 15px; }
  .vn-site-header.is-compact .vn-menu { margin-left: 0; }
}
@media (min-width: 901px) {
  .vn-site-header { top: 0; }
  body.admin-bar .vn-site-header { top: 32px; }
  .vn-site-header.is-compact .vn-menu { margin-left: 0; }
  .vn-site-header.is-compact .vn-nav-brand { display: none; }
  body.admin-bar .vn-most-read { top: 144px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .vn-brand-row { height: 76px; min-height: 76px; }
  .vn-nav-inner { min-height: 48px; }
  .vn-most-read { top: 150px; }
  .vn-brand-tagline { display: block; }
  .vn-quick-excerpt { font-size: 15px; }
  .vn-quick-title { font-size: 18px; }
}
@media (max-width: 900px) {
  .vn-top-grid, .vn-feed-layout { grid-template-columns: 1fr; }
  .vn-brand-row { height: 76px; min-height: 76px; }
  .rulle-wordmark { width: 210px; }
  .vn-brand-tagline { display: block; font-size: 15px; }
  .vn-top-grid { gap: 28px; }
  .vn-quick-title { font-size: 20px; }
  .vn-quick-list { gap: 0 24px; }
  .vn-nav { max-height: calc(100dvh - 76px); }
  .vn-quick-image { aspect-ratio: 1; }
  .vn-lead-title { font-size: 36px; }
}
@media (max-width: 620px) {
  .vn-main { padding-top: 16px; }
  .vn-brand { gap: 14px; }
  .rulle-wordmark { width: 190px; }
  .vn-brand-tagline { font-size: 14px; }
  .vn-lead { border: 0; padding-top: 0; }
  .vn-lead-image { aspect-ratio: 3 / 2; }
  .vn-lead-title { font-size: clamp(28px, 7.5vw, 34px); line-height: 1.12; }
  .vn-lead-excerpt { font-size: 18px; }
  .vn-lead--no-image { min-height: 0; }
  .vn-lead--no-image .vn-lead-content { padding: 22px; }
  .vn-quick-list { display: none; }
  .vn-card--home .vn-card-title { line-height: 1.18; }
  .vn-feed-grid > .vn-card--home:nth-child(2) { border-top: 1px solid var(--vn-line); }
  .vn-feed-grid > .vn-card--home:nth-child(-n+2):not(.vn-card--no-image) { padding-top: 16px; }
  .vn-article-title { line-height: 1.12; }
  .vn-footer-grid { gap: 24px; }
}
@media (max-width: 360px) { .vn-brand-tagline { display: none; } }


/* 1.1.5: two image-first latest-news cards, with complete teaser titles. */
.vn-quick-list { align-self: start; }
.vn-quick-list .vn-heading-rule { margin-bottom: 24px; }
.vn-quick-item { display: block; padding-bottom: 24px; margin-bottom: 24px; }
.vn-quick-image {
  display: block; width: 100%; max-width: none; flex: none;
  aspect-ratio: 16 / 9; margin-bottom: 14px; border-radius: 8px;
}
.vn-quick-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vn-quick-title {
  font-size: clamp(20px, 1.7vw, 24px); line-height: 1.22;
  margin-top: 8px; letter-spacing: -.02em;
  text-wrap: pretty; hyphens: none; overflow-wrap: anywhere;
}
@media (min-width: 621px) and (max-width: 900px) {
  .vn-quick-item { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
}

/* 1.1.3: longer editorial description next to the wordmark. */
.vn-brand-tagline {
  display: block; white-space: normal; max-width: 250px;
  font-size: 14px; line-height: 1.4; text-wrap: pretty;
}
.vn-brand-row { height: auto; padding-block: 12px; }
.vn-menu-toggle { flex-shrink: 0; }
@media (max-width: 620px) {
  .vn-brand { flex-direction: column; align-items: flex-start; gap: 5px; }
  .vn-brand-tagline { max-width: 250px; margin: 0; font-size: 14px; }
  .vn-nav { max-height: calc(100dvh - 140px); }
}

/* Rulle Top Banner — responsive GAM placement.
   Slot lives outside .vn-site-header so it cannot disturb the desktop header flex layout. */
.rulle-top-ad {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  background: #fff;
}

.rulle-top-ad > #div-gpt-ad-1789651738749-0:not(:empty) {
  margin: 20px auto;
}

#div-gpt-ad-1789651738749-0 {
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 1023px) {
  .rulle-top-ad > #div-gpt-ad-1789651738749-0:not(:empty) {
    margin: 14px auto;
  }
}


/* VA Branschen: unified yellow category labels */
.vn-kicker {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  background: var(--vn-sun);
  color: var(--vn-ink);
  border-radius: 4px;
  line-height: 1.2;
}
.vn-kicker:hover { color: var(--vn-ink); }

/* VA Branschen approved wordmark */
.rulle-wordmark { display:block; width:290px; max-width:100%; height:auto; }
.vn-footer-logo .rulle-wordmark { width:260px; }
@media (max-width: 720px) { .rulle-wordmark { width:235px; } .vn-footer-logo .rulle-wordmark { width:220px; } }


/* VA Branschen v4: corrected clean wordmark + mobile header */
.rulle-wordmark { width: 330px; max-width: 100%; height: auto; }
.vn-brand-tagline { max-width: 255px; }
.vn-footer-logo .rulle-wordmark { width: 280px; }
@media (max-width: 620px) {
  .vn-brand { flex-direction: row; align-items: center; gap: 0; }
  .vn-brand-tagline { display: none !important; }
  .rulle-wordmark { width: 245px; }
  .vn-brand-row { height: 72px; min-height: 72px; padding-block: 8px; }
  .vn-nav { max-height: calc(100dvh - 72px); }
}
@media (max-width: 380px) { .rulle-wordmark { width: 220px; } }


/* Performance: skip layout/paint work for below-the-fold editorial blocks until needed. */
@supports (content-visibility: auto) {
  .vn-feed-grid > .vn-card:nth-child(n+7),
  .vn-related,
  .vn-footer { content-visibility: auto; contain-intrinsic-size: auto 420px; }
}

/* VA Branschen v6: refined editorial footer */
.vn-site-footer {
  position: relative;
  margin-top: 64px;
  border-top: 0;
  background: #0b1f33;
  color: #fff;
}
.vn-site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #2455f5 0 58%, #f2c94c 58% 72%, #36a9e1 72% 100%);
}
.vn-footer-grid {
  grid-template-columns: minmax(300px, 1.55fr) minmax(150px, .7fr) minmax(210px, .9fr);
  gap: 64px;
  padding-block: 58px 48px;
}
.vn-footer-logo { display: inline-block; }
.vn-footer-logo .rulle-wordmark { width: 285px; }
.vn-footer-copy {
  max-width: 430px;
  margin: 16px 0 0;
  color: #b9c7d5;
  font-size: 15px;
  line-height: 1.65;
}
.vn-footer-title {
  margin: 5px 0 17px;
  color: #f2c94c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.vn-footer-menu li { margin: 0; }
.vn-footer-menu a {
  display: inline-block;
  padding: 5px 0;
  color: #e8eef4;
  font-size: 14px;
  line-height: 1.45;
  transition: color .15s ease, transform .15s ease;
}
.vn-footer-menu a:hover { color: #fff; transform: translateX(2px); }
.vn-footer-bottom {
  padding: 19px 0 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #91a3b5;
  font-size: 12px;
}
.vn-footer-bottom a { color: #cbd7e2; }
.vn-footer-bottom a:hover { color: #fff; }
@media (max-width: 760px) {
  .vn-site-footer { margin-top: 44px; }
  .vn-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 26px; padding-block: 44px 36px; }
  .vn-footer-grid > div:first-child { grid-column: 1 / -1; }
  .vn-footer-logo .rulle-wordmark { width: 245px; }
  .vn-footer-copy { max-width: 360px; margin-top: 12px; }
}
@media (max-width: 480px) {
  .vn-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .vn-footer-grid > div:first-child { grid-column: auto; }
  .vn-footer-logo .rulle-wordmark { width: 230px; }
  .vn-footer-bottom { line-height: 1.7; }
}


/* VA Branschen v8: unified premium header built from the stable v6 theme */
.vn-site-header {
  display: block !important;
  padding: 0 !important;
  background: #0b1f33;
  border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.vn-site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #2455f5 0 58%, #f2c94c 58% 72%, #36a9e1 72% 100%);
}
.vn-brand-row {
  width: min(calc(100% - 40px), var(--vn-width)) !important;
  height: 82px !important;
  min-height: 82px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}
.vn-brand { gap: 34px; }
.vn-logo { flex: 0 0 auto; }
.vn-logo:hover { opacity: .96; }
.vn-brand-row .rulle-wordmark { width: 300px; max-width: 100%; }
.vn-brand-tagline {
  position: relative;
  max-width: 360px;
  margin: 0;
  padding-left: 22px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}
.vn-brand-tagline::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 2px;
  border-radius: 2px;
  background: #f2c94c;
}
.vn-nav {
  position: static;
  background: #10283f;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.vn-nav-inner {
  width: min(calc(100% - 40px), var(--vn-width)) !important;
  min-height: 48px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}
.vn-menu { gap: 30px; }
.vn-menu a {
  min-height: 48px;
  color: #eaf0f5;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 600;
}
.vn-menu a:hover,
.vn-menu .current-menu-item > a,
.vn-menu .current-category-ancestor > a,
.vn-menu a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #f2c94c;
}
.vn-menu-toggle { color: #fff; }
.vn-site-header.is-compact { box-shadow: 0 7px 20px rgba(5,20,33,.18); }

@media (max-width: 900px) {
  .vn-brand-row {
    width: min(calc(100% - 28px), var(--vn-width)) !important;
    height: 70px !important;
    min-height: 70px !important;
  }
  .vn-brand { flex-direction: row; align-items: center; gap: 0; }
  .vn-brand-tagline { display: none !important; }
  .vn-brand-row .rulle-wordmark { width: 250px; }
  .vn-menu-toggle { display: block; margin-right: -7px; }
  .vn-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    background: #10283f;
    border-top: 1px solid rgba(255,255,255,.09);
    border-bottom: 0;
    box-shadow: 0 18px 30px rgba(5,20,33,.22);
  }
  .vn-nav.is-open { display: block; }
  .vn-nav-inner { width: min(calc(100% - 28px), var(--vn-width)) !important; display: block; }
  .vn-menu { display: block; padding: 8px 0 14px; }
  .vn-menu li, .vn-menu a { display: block; }
  .vn-menu a {
    min-height: 0;
    padding: 13px 0;
    color: #eef4f8;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .vn-menu a:hover,
  .vn-menu .current-menu-item > a,
  .vn-menu .current-category-ancestor > a,
  .vn-menu a[aria-current="page"] { color: #f2c94c; border-bottom-color: rgba(255,255,255,.10); }
}
@media (max-width: 420px) {
  .vn-brand-row .rulle-wordmark { width: 220px; }
}
@media (max-width: 360px) {
  .vn-brand-row .rulle-wordmark { width: 200px; }
}

/* VA Branschen v9: desktop header mirrors the successful mobile/footer treatment.
   Mobile rules from v8 are intentionally left untouched. */
@media (min-width: 901px) {
  .vn-site-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    min-height: 92px;
    padding-inline: max(24px, calc((100% - var(--vn-width)) / 2)) !important;
    background: #0b1f33;
  }
  .vn-site-header::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .vn-brand-row {
    width: auto !important;
    height: 92px !important;
    min-height: 92px !important;
    margin: 0 !important;
    flex: 1 1 auto;
    overflow: visible;
  }
  .vn-brand {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .vn-logo {
    flex: 0 0 auto;
    min-width: 0;
  }
  .vn-brand-row .rulle-wordmark {
    display: block;
    width: 285px;
    max-width: none;
    height: auto;
  }
  .vn-brand-tagline {
    display: block;
    flex: 0 1 320px;
    max-width: 320px;
    padding-left: 20px;
    color: #ffffff;
    white-space: normal;
  }
  .vn-nav {
    position: static;
    display: block;
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .vn-nav-inner {
    width: auto !important;
    min-height: 92px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: stretch;
  }
  .vn-menu {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 24px;
    padding: 0;
  }
  .vn-menu li { display: flex; align-items: stretch; }
  .vn-menu a {
    display: flex;
    align-items: center;
    min-height: 92px;
    padding-top: 3px;
    border-bottom: 3px solid transparent;
    color: #eef4f8;
    font-size: 14px;
    font-weight: 650;
  }
  .vn-menu a:hover,
  .vn-menu .current-menu-item > a,
  .vn-menu .current-category-ancestor > a,
  .vn-menu a[aria-current="page"] {
    color: #fff;
    border-bottom-color: #f2c94c;
  }
  .vn-nav-brand { display: none !important; }
  .vn-menu-toggle { display: none !important; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .vn-site-header { gap: 22px; }
  .vn-brand { gap: 18px; }
  .vn-brand-row .rulle-wordmark { width: 245px; }
  .vn-brand-tagline { flex-basis: 245px; max-width: 245px; font-size: 13px; padding-left: 15px; }
  .vn-menu { gap: 16px; }
  .vn-menu a { font-size: 13px; }
}
