/*
Theme Name: Vilken Vikt
Theme URI: https://www.vilkenvikt.se/
Author: Jalin Film AB / OpenAI
Description: Fristående tema för Vilkenvikt.se. Byggt för att ersätta Newspaper utan att ändra befintligt innehåll, URL:er eller shortcodes.
Version: 11
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vilkenvikt
*/

:root{
  --vv-bg:#F3F8FD;
  --vv-surface:#ffffff;
  --vv-text:#202b36;
  --vv-muted:#647689;
  --vv-line:#d7e4ef;
  --vv-accent:#377BB6;
  --vv-accent-dark:#225B90;
  --vv-accent-soft:#DAEAF9;
  --vv-blue:#225B90;
  --vv-radius:18px;
  --vv-shadow:0 10px 32px rgba(31,64,100,.07);
  --vv-max:1160px;
  --vv-article:780px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--vv-text);
  background:var(--vv-bg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--vv-blue);text-decoration-thickness:.08em;text-underline-offset:.15em}
a:hover{color:#194c77}
img{max-width:100%;height:auto}

.vv-shell{width:min(calc(100% - 32px),var(--vv-max));margin-inline:auto}
.vv-site-header{
  position:sticky;top:0;z-index:1000;
  background:rgba(250,251,248,.94);
  border-bottom:1px solid rgba(101,121,98,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.vv-header-inner{min-height:72px;display:flex;align-items:center;gap:28px}
.vv-brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--vv-text);white-space:nowrap}
.vv-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#5897cc,#225B90);display:grid;place-items:center;color:#fff;font-weight:800;font-size:18px;box-shadow:0 4px 12px rgba(34,91,144,.2)}
.vv-brand-text{font-weight:760;font-size:20px;letter-spacing:-.025em}
.vv-brand-text small{display:block;color:var(--vv-muted);font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;margin-top:-2px}
.vv-nav{margin-left:auto;display:flex;align-items:center;gap:20px;font-size:14px;font-weight:650}
.vv-nav a{color:#36485b;text-decoration:none}.vv-nav a:hover{color:var(--vv-accent-dark)}
.vv-search-toggle{appearance:none;border:1px solid var(--vv-line);background:#fff;border-radius:999px;padding:9px 14px;cursor:pointer;font:inherit;font-size:14px;color:#42586d}

.vv-mobile-nav{display:none}

.vv-main{padding:34px 0 64px}
.vv-content-card{background:var(--vv-surface);border:1px solid var(--vv-line);border-radius:var(--vv-radius);box-shadow:var(--vv-shadow)}

/* Front page */
.vv-hero{padding:56px 0 30px}
.vv-hero-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:36px;align-items:end}
.vv-kicker{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--vv-accent-dark)}
.vv-hero h1{font-size:clamp(42px,7vw,78px);line-height:.98;letter-spacing:-.055em;margin:12px 0 18px;max-width:760px}
.vv-hero p{font-size:20px;line-height:1.55;color:#51687e;max-width:720px;margin:0}
.vv-hero-search{background:#fff;border:1px solid var(--vv-line);border-radius:18px;padding:12px;box-shadow:var(--vv-shadow)}
.vv-hero-search form{display:flex;gap:8px}
.vv-hero-search input{min-width:0;flex:1;border:0;background:#f3f8fd;border-radius:12px;padding:14px 15px;font:inherit;outline:none}
.vv-hero-search button{border:0;background:var(--vv-accent-dark);color:#fff;border-radius:12px;padding:0 18px;font-weight:700;cursor:pointer}
.vv-hero-search small{display:block;color:var(--vv-muted);font-size:12px;margin:8px 4px 0}

.vv-section{margin-top:34px}
.vv-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:14px}
.vv-section-head h2{font-size:25px;letter-spacing:-.03em;margin:0}.vv-section-head p{margin:0;color:var(--vv-muted);font-size:14px}
.vv-card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.vv-topic-card{display:block;text-decoration:none;color:var(--vv-text);background:#fff;border:1px solid var(--vv-line);border-radius:16px;padding:19px;min-height:146px;transition:.18s ease;box-shadow:0 3px 14px rgba(31,43,30,.035)}
.vv-topic-card:hover{transform:translateY(-2px);border-color:#b3cfe5;box-shadow:0 10px 24px rgba(31,64,100,.08);color:var(--vv-text)}
.vv-topic-card .vv-card-cat{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--vv-accent-dark)}
.vv-topic-card h3{font-size:17px;line-height:1.25;letter-spacing:-.02em;margin:7px 0 7px}
.vv-topic-card p{font-size:13px;line-height:1.45;color:var(--vv-muted);margin:0}
.vv-cat-chips{display:flex;flex-wrap:wrap;gap:9px}
.vv-cat-chips a{background:#fff;border:1px solid var(--vv-line);border-radius:999px;color:#485e72;text-decoration:none;padding:8px 13px;font-size:13px;font-weight:650}
.vv-cat-chips a:hover{background:var(--vv-accent-soft);border-color:#accde9;color:var(--vv-accent-dark)}
.vv-home-about{padding:26px 28px}.vv-home-about h2{margin-top:0;font-size:26px}.vv-home-about p:last-child{margin-bottom:0}

/* Single / page */
.vv-entry-hero{
  margin:-1px -1px 0;
  padding:clamp(28px,5vw,48px) clamp(24px,5vw,52px) clamp(30px,5vw,46px);
  border-radius:calc(var(--vv-radius) - 1px) calc(var(--vv-radius) - 1px) 0 0;
  background:
    radial-gradient(circle at 88% 18%,rgba(255,255,255,.62),transparent 31%),
    linear-gradient(135deg,#d0e5f7 0%,#e4f0fb 55%,#c9e0f5 100%);
  border-bottom:1px solid rgba(83,128,67,.20);
}
.vv-entry-hero .vv-breadcrumbs{margin-bottom:22px}
.vv-entry-hero .vv-entry-header h1{max-width:720px}
.vv-entry-hero .vv-entry-meta{margin-bottom:0}
.vv-entry-content-inner{padding:clamp(22px,3vw,28px) clamp(24px,5vw,52px) clamp(28px,5vw,52px)}
.vv-article.vv-article--hero{padding:0;overflow:hidden}
.vv-article-wrap{width:min(calc(100% - 32px),var(--vv-article));margin-inline:auto}
.vv-article{padding:clamp(25px,5vw,52px)}
.vv-breadcrumbs{font-size:12px;color:var(--vv-muted);margin-bottom:18px}.vv-breadcrumbs a{color:inherit;text-decoration:none}.vv-breadcrumbs a:hover{text-decoration:underline}
.vv-entry-header h1{font-size:clamp(34px,5.5vw,55px);line-height:1.04;letter-spacing:-.048em;margin:0 0 16px}
.vv-entry-meta{color:var(--vv-muted);font-size:13px;margin-bottom:30px}
.vv-entry-content{font-size:18px;line-height:1.72;overflow-wrap:anywhere}
.vv-entry-content h2{font-size:31px;line-height:1.08!important;letter-spacing:-.035em;margin:50px 0 16px}
.vv-entry-content h3{font-size:23px;line-height:1.25;letter-spacing:-.025em;margin:36px 0 12px}
.vv-entry-content h4{font-size:18px;margin:30px 0 10px}
.vv-entry-content p{margin:0 0 22px}.vv-entry-content ul,.vv-entry-content ol{padding-left:1.3em;margin:0 0 24px}.vv-entry-content li{margin:7px 0}
.vv-entry-content blockquote{border-left:4px solid var(--vv-accent);margin:30px 0;padding:3px 0 3px 22px;color:#51687e;font-size:20px}
.vv-entry-content iframe{max-width:100%}
.vv-entry-content hr{border:0;border-top:1px solid var(--vv-line);margin:40px 0}

/* Legacy boxes – new visual language, same classes */
.textbox-white-line,.textbox-gray-line,.textbox-grey-line,.textbox-lightgrey-line,.textbox-green-line,.textbox-orange-line{
  border:1px solid var(--vv-line)!important;border-radius:14px!important;padding:20px 22px!important;margin:24px 0!important;color:var(--vv-text)!important;box-shadow:none!important
}
.textbox-white-line{background:#fff!important}.textbox-gray-line,.textbox-grey-line{background:#f2f7fc!important}.textbox-lightgrey-line{background:var(--vv-accent-soft)!important}.textbox-green-line{background:#fff!important;border-color:#a6c8e5!important}.textbox-orange-line{background:#fff!important;border-left:5px solid var(--vv-accent)!important}
.textbox-none{width:100%!important;margin:0!important}

/* TablePress */
.tablepress{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid var(--vv-line)!important;border-radius:13px!important;overflow:hidden!important;margin:24px 0 32px!important;font-size:15px!important;background:#fff!important}
.tablepress thead th,.tablepress tfoot th{background:#DAEAF9!important;color:#225B90!important;font-weight:750!important;border:0!important;padding:12px 13px!important}
.tablepress td{padding:11px 13px!important;border:0!important;border-top:1px solid #e3edf6!important;vertical-align:top!important}.tablepress tbody tr:nth-child(even) td{background:#f8fbff!important}.tablepress tbody tr:hover td{background:#edf6ff!important}
.tablepress caption{font-size:12px;color:var(--vv-muted);text-align:left;padding:6px 0}

/* Forms / calculators – generic compatibility */
.vv-entry-content input[type="text"],.vv-entry-content input[type="number"],.vv-entry-content input[type="email"],.vv-entry-content select,.vv-entry-content textarea{
  max-width:100%;border:1px solid #c5d7e6;background:#fff;border-radius:10px;padding:11px 12px;font:inherit;color:var(--vv-text)
}
.vv-entry-content button,.vv-entry-content input[type="submit"]{border:0;border-radius:10px;background:var(--vv-accent-dark);color:#fff;padding:11px 16px;font:inherit;font-weight:700;cursor:pointer}

/* Old ad helpers */
.ad-small-font{font-size:9px!important;color:#899db0!important;margin:0!important;padding:4px 0!important}.text-adframe{background:#377BB6!important;border-radius:4px!important}.text-link-color{color:#225B90!important}

/* Archive / search */
.vv-list-header{
  margin:0 0 24px;
  padding:26px 30px;
  border:1px solid rgba(83,128,67,.16);
  border-radius:18px;
  background:
    radial-gradient(circle at 92% 18%,rgba(255,255,255,.58),transparent 30%),
    linear-gradient(135deg,#d0e5f7 0%,#e4f0fb 55%,#c9e0f5 100%);
}
.vv-list-header h1{font-size:clamp(30px,4vw,42px);line-height:1.08;letter-spacing:-.04em;margin:0 0 6px}
.vv-list-header p{color:#647689;margin:0}

.vv-post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.vv-post-item{
  position:relative;
  min-height:210px;
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 40%);
  border:1px solid var(--vv-line);
  border-radius:17px;
  overflow:hidden;
  box-shadow:0 3px 14px rgba(31,43,30,.035);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.vv-post-item::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:5px;
  background:linear-gradient(90deg,#377BB6,#81b0d7);
  opacity:.72;
}
.vv-post-item:hover{
  transform:translateY(-3px);
  border-color:#a6c8e5;
  box-shadow:0 14px 30px rgba(31,43,30,.09);
  background:linear-gradient(180deg,#f4f9ff 0%,#ffffff 44%);
}
.vv-post-card-link{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:210px;
  height:100%;
  padding:22px 22px 20px;
  color:var(--vv-text);
  text-decoration:none;
}
.vv-post-card-link:hover{color:var(--vv-text)}
.vv-post-item .vv-card-cat{
  font-size:10px;
  line-height:1.2;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-weight:800;
  color:var(--vv-accent-dark);
  margin:0 0 9px;
}
.vv-post-item h2{
  font-size:20px;
  line-height:1.23;
  letter-spacing:-.025em;
  margin:0 0 10px;
  transition:color .18s ease;
}
.vv-post-item:hover h2{color:#225B90}
.vv-post-item p{
  font-size:14px;
  line-height:1.5;
  color:var(--vv-muted);
  margin:0 0 22px;
}
.vv-post-arrow{
  margin-top:auto;
  align-self:flex-end;
  width:30px;
  height:30px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#e6f1fb;
  color:var(--vv-accent-dark);
  font-size:18px;
  line-height:1;
  transition:transform .18s ease,background .18s ease;
}
.vv-post-item:hover .vv-post-arrow{
  transform:translateX(3px);
  background:#d0e5f7;
}
.vv-pagination{margin-top:28px}.vv-pagination .page-numbers{display:inline-block;padding:7px 10px;border-radius:8px;background:#fff;border:1px solid var(--vv-line);text-decoration:none;color:var(--vv-text)}.vv-pagination .current{background:var(--vv-accent-dark);color:#fff;border-color:var(--vv-accent-dark)}

/* Search overlay */
.vv-search-panel{display:none;position:fixed;inset:0;z-index:2000;background:rgba(20,26,20,.45);backdrop-filter:blur(5px);padding:80px 16px 16px}.vv-search-panel.is-open{display:block}.vv-search-box{max-width:680px;margin:auto;background:#fff;border-radius:18px;padding:18px;box-shadow:0 25px 70px rgba(0,0,0,.18)}.vv-search-box form{display:flex;gap:8px}.vv-search-box input{flex:1;min-width:0;border:1px solid var(--vv-line);border-radius:12px;padding:14px;font:inherit}.vv-search-box button{border:0;border-radius:12px;padding:0 18px;background:var(--vv-accent-dark);color:#fff;font-weight:700}.vv-search-close{display:block;margin:12px auto 0;border:0;background:none;color:var(--vv-muted);cursor:pointer}

.vv-site-footer{border-top:1px solid var(--vv-line);background:#eaf3fb;padding:36px 0 44px;color:#5c7185;font-size:13px}.vv-footer-inner{display:flex;justify-content:space-between;gap:30px;align-items:flex-start}.vv-footer-links{display:flex;flex-wrap:wrap;gap:16px}.vv-footer-links a{color:#4f687e;text-decoration:none}.vv-footer-links a:hover{text-decoration:underline}.vv-footer-copy{max-width:480px}

@media(max-width:900px){
  .vv-nav{display:none}.vv-mobile-nav{display:block;margin-left:auto}.vv-search-toggle{padding:8px 11px}
  .vv-hero-grid{grid-template-columns:1fr}.vv-card-grid{grid-template-columns:repeat(2,1fr)}.vv-post-list{grid-template-columns:repeat(2,1fr)}
}


/* Vilkenvikt – manuella AdSense-zoner */
.vv-ad-zone{margin:34px auto;text-align:center;clear:both;min-height:0}
.vv-ad-zone ins.adsbygoogle{max-width:100%}
.vv-ad-zone--after{margin-top:42px;margin-bottom:8px}
.vv-ad-label{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#899db0;margin-bottom:7px}
@media(max-width:620px){
  body{font-size:16px}.vv-shell,.vv-article-wrap{width:min(calc(100% - 20px),var(--vv-max))}.vv-main{padding-top:18px}.vv-header-inner{min-height:62px}.vv-brand-text{font-size:18px}.vv-brand-text small{display:none}
  .vv-hero{padding-top:28px}.vv-hero h1{font-size:46px}.vv-hero p{font-size:18px}.vv-card-grid,.vv-post-list{grid-template-columns:1fr}.vv-topic-card{min-height:0}.vv-article{padding:26px 20px}.vv-entry-content{font-size:17px}.vv-entry-content h2{font-size:27px;margin-top:42px;line-height:1.08!important}.vv-entry-header h1{font-size:38px}.vv-footer-inner{display:block}.vv-footer-links{margin-top:20px}
  .vv-entry-hero{margin:-1px -1px 0;padding:24px 20px 28px;border-radius:17px 17px 0 0}.vv-entry-content-inner{padding:22px 20px 26px}
  .vv-list-header{padding:22px 20px;border-radius:16px}.vv-list-header h1{font-size:32px}
  .vv-post-item,.vv-post-card-link{min-height:0}.vv-post-card-link{padding:20px}
  .tablepress{display:block!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;white-space:normal!important}
}


/* =========================
   VERSION 6
   Grönt toppstreck även på startsidans kort
   ========================= */
.vv-topic-card{
  position:relative;
  overflow:hidden;
}

.vv-topic-card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:5px;
  background:linear-gradient(90deg,#377BB6,#81b0d7);
  opacity:.72;
}


/* =========================
   VERSION 7
   "Andra läser just nu" under artiklar
   ========================= */
.vv-related{
  margin-top:22px;
  margin-bottom:6px;
}
.vv-related-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin:0 2px 14px;
}
.vv-related-head h2{
  margin:0;
  font-size:clamp(25px,3vw,32px);
  line-height:1.08;
  letter-spacing:-.035em;
}
.vv-related-head p{
  margin:0;
  color:var(--vv-muted);
  font-size:13px;
}
.vv-related-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.vv-related-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:175px;
  padding:20px 19px 18px;
  overflow:hidden;
  text-decoration:none;
  color:var(--vv-text);
  background:linear-gradient(180deg,#f8fbff 0%,#fff 38%);
  border:1px solid var(--vv-line);
  border-radius:16px;
  box-shadow:0 3px 14px rgba(31,43,30,.035);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.vv-related-card::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:5px;
  background:linear-gradient(90deg,#377BB6,#81b0d7);
  opacity:.72;
}
.vv-related-card:hover{
  transform:translateY(-3px);
  border-color:#a6c8e5;
  box-shadow:0 14px 30px rgba(31,43,30,.09);
  color:var(--vv-text);
}
.vv-related-cat{
  margin:3px 0 8px;
  color:var(--vv-accent-dark);
  font-size:10px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.vv-related-card h3{
  margin:0 0 8px;
  font-size:17px;
  line-height:1.25;
  letter-spacing:-.022em;
}
.vv-related-card p{
  margin:0 0 18px;
  color:var(--vv-muted);
  font-size:13px;
  line-height:1.45;
}
.vv-related-arrow{
  margin-top:auto;
  align-self:flex-end;
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#e6f1fb;
  color:var(--vv-accent-dark);
  font-size:18px;
  transition:transform .18s ease,background .18s ease;
}
.vv-related-card:hover .vv-related-arrow{
  transform:translateX(3px);
  background:#d0e5f7;
}
@media(max-width:980px){
  .vv-related-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .vv-related-head{display:block}
  .vv-related-head p{margin-top:5px}
  .vv-related-grid{grid-template-columns:1fr}
  .vv-related-card{min-height:0}
}


/* =========================
   Manuella AdSense-zoner
   ========================= */
.vv-ad-zone{
  clear:both;
  width:100%;
  margin:32px auto;
  padding:12px 0 8px;
  text-align:center;
  overflow:visible;
}
.vv-ad-zone--intro{
  margin-top:30px;
  margin-bottom:34px;
}
.vv-ad-zone--middle{
  margin-top:38px;
  margin-bottom:38px;
}
.vv-ad-zone--after{
  margin-top:44px;
  margin-bottom:4px;
}
.vv-ad-label{
  margin:0 0 7px;
  color:#8597a7;
  font-size:9px;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.vv-ad-zone .adsbygoogle{
  margin-left:auto;
  margin-right:auto;
}
@media(max-width:620px){
  .vv-ad-zone{margin-top:26px;margin-bottom:28px;padding-top:8px}
  .vv-ad-zone--after{margin-top:34px;margin-bottom:0}
}


/* =========================
   VERSION 11
   Mobil: en sökknapp + robustare tabeller
   ========================= */
.vv-mobile-nav{display:none!important}

/* Alla artikel-tabeller får samma lugna grundstil, även äldre råa HTML-tabeller. */
.vv-entry-content table{
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  border:1px solid var(--vv-line);
  border-radius:13px;
}
.vv-entry-content table th{
  background:#DAEAF9!important;
  color:#225B90!important;
  font-weight:750!important;
}
.vv-entry-content table th,
.vv-entry-content table td{
  vertical-align:top;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
.vv-entry-content table .vv-empty-col{
  display:none!important;
}

/* Wrapper för tabeller. På desktop märks den knappt. */
.vv-table-scroll{
  width:100%;
  margin:24px 0 32px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  border-radius:13px;
  scrollbar-width:thin;
}
.vv-table-scroll > table{
  margin:0!important;
}

/* Smala tabeller får fylla artikelbredden. */
.vv-table-scroll.is-compact > table{
  width:100%!important;
  min-width:0!important;
  table-layout:auto!important;
}

/* Breda tabeller behåller läsbara kolumner och scrollas i sidled på mobil. */
.vv-table-scroll.is-wide > table{
  width:var(--vv-table-min,680px)!important;
  min-width:var(--vv-table-min,680px)!important;
  max-width:none!important;
  table-layout:auto!important;
}

@media(max-width:620px){
  .vv-header-inner{
    gap:12px;
  }
  .vv-search-toggle{
    margin-left:auto;
    flex:0 0 auto;
  }

  /* Återställ den äldre TablePress-regeln som tryckte ihop breda tabeller. */
  .tablepress{
    display:table!important;
    overflow:visible!important;
    width:100%!important;
  }

  .vv-table-scroll{
    position:relative;
    margin-left:0;
    margin-right:0;
  }

  .vv-table-scroll.is-wide{
    padding-top:24px;
  }

  .vv-table-scroll.is-wide::before{
    content:"Svep åt sidan →";
    position:absolute;
    top:0;
    right:2px;
    color:#71869a;
    font-size:11px;
    line-height:1;
    letter-spacing:.02em;
  }

  .vv-table-scroll.is-wide > table th,
  .vv-table-scroll.is-wide > table td{
    min-width:105px;
  }

  .vv-table-scroll.is-wide > table th:first-child,
  .vv-table-scroll.is-wide > table td:first-child{
    min-width:125px;
  }
}




/* =========================
   VERSION 14
   Tajtare flerradiga artikelrubriker
   ========================= */
.vv-entry-content h1,
.vv-entry-content h2{
  line-height:1.08!important;
}

@media(max-width:620px){
  .vv-entry-content h1,
  .vv-entry-content h2{
    line-height:1.08!important;
  }
}

/* Theme 3 – tabeller ska visuellt ligga närmare Vilkenstorlek. */
.vv-entry-content table:not(.wp-block-table table) th,
.vv-entry-content table:not(.wp-block-table table) td,
.vv-entry-content .tablepress th,
.vv-entry-content .tablepress td,
.vv-entry-content .wp-block-table table th,
.vv-entry-content .wp-block-table table td{
  padding:12px 16px!important;
  text-align:left;
  vertical-align:middle;
  box-sizing:border-box;
}
.vv-entry-content table th:first-child,
.vv-entry-content table td:first-child{padding-left:18px!important}
.vv-entry-content table th:last-child,
.vv-entry-content table td:last-child{padding-right:18px!important}

/* Ge även äldre HTML-tabeller samma lugna struktur som på Vilkenstorlek. */
.vv-entry-content table:not(.tablepress) tbody th,
.vv-entry-content table:not(.tablepress) tbody td,
.vv-entry-content .wp-block-table table tbody th,
.vv-entry-content .wp-block-table table tbody td{
  background:#fff!important;
  border-top:1px solid #e3edf6!important;
}
.vv-entry-content table:not(.tablepress) tbody tr:nth-child(even) th,
.vv-entry-content table:not(.tablepress) tbody tr:nth-child(even) td,
.vv-entry-content .wp-block-table table tbody tr:nth-child(even) th,
.vv-entry-content .wp-block-table table tbody tr:nth-child(even) td{
  background:#f8fbff!important;
}
.vv-entry-content table:not(.tablepress) tbody tr:hover th,
.vv-entry-content table:not(.tablepress) tbody tr:hover td,
.vv-entry-content .wp-block-table table tbody tr:hover th,
.vv-entry-content .wp-block-table table tbody tr:hover td{
  background:#edf6ff!important;
}

/* Vit/ljust blå våg, aldrig systememoji som kan bli orange. */
.vv-mark svg{width:23px;height:23px;display:block;stroke:#DAEAF9;fill:none;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.vv-nav--topics{gap:clamp(12px,2vw,25px)}
@media(max-width:920px){.vv-nav--topics{gap:12px}.vv-nav--topics a{font-size:13px}}

/* Theme 4: kompakta manuella annonsformat. Google får hela sin annonshöjd. */
.vv-ad-zone .adsbygoogle{
  display:inline-block;
  width:300px;
  height:250px;
  max-width:100%;
}
/* På smala telefoner ryms en kvadratisk 250x250-annons bättre. */
@media(max-width:390px){
  .vv-ad-zone .adsbygoogle{width:250px;height:250px}
}
/* Ofyllda annonser: ta bort hela zonen, inklusive etikett och marginaler. */
.vv-ad-zone:has(> .adsbygoogle[data-ad-status="unfilled"]){display:none!important}

/* Theme 5: sammanhållen, centrerad annonsplacering i artikelkolumnen. */
.vv-entry-content .vv-ad-zone,
.vv-entry-content .vv-ad-zone--intro,
.vv-entry-content .vv-ad-zone--middle,
.vv-entry-content .vv-ad-zone--after{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;max-width:100%;
  margin:32px auto!important;
  padding:0!important;
  clear:both;float:none;
  text-align:center;
}
.vv-entry-content .vv-ad-zone .adsbygoogle{
  flex:none;
  margin-left:auto!important;
  margin-right:auto!important;
}
.vv-entry-content .vv-ad-zone:has(> .adsbygoogle[data-ad-status="unfilled"]){display:none!important}
@media(max-width:620px){
  .vv-entry-content .vv-ad-zone,
  .vv-entry-content .vv-ad-zone--intro,
  .vv-entry-content .vv-ad-zone--middle,
  .vv-entry-content .vv-ad-zone--after{margin:26px auto!important}
}

/* Theme 6: diskret historiskt visningsantal under artikelrubriken. */
.vv-entry-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px}
.vv-view-counter{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.vv-view-counter svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vv-meta-dot{opacity:.6}


/* Theme 7 – live-sökresultat direkt under sökfältet */
.vv-live-wrap{position:relative;min-width:0;flex:1}
.vv-live-wrap > form{width:100%}
.vv-live-results{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:2100;background:#fff;border:1px solid var(--vv-line);border-radius:13px;box-shadow:0 15px 36px rgba(31,64,100,.17);overflow:hidden;text-align:left}
.vv-live-results[hidden]{display:none!important}
.vv-live-results a{display:block;padding:11px 15px;border-bottom:1px solid #e3edf6;text-decoration:none;font-size:15px;line-height:1.35;color:var(--vv-accent-dark);font-weight:650}
.vv-live-results a:last-child{border-bottom:0}
.vv-live-results a:hover,.vv-live-results a:focus-visible,.vv-live-results a.is-active{background:#F3F8FD}
.vv-live-results .vv-live-empty{padding:12px 15px;color:var(--vv-muted);font-size:14px}
.vv-hero-search .vv-live-wrap{width:100%}
.vv-hero-search .vv-live-wrap form{display:flex;gap:8px}
.vv-search-box .vv-live-wrap{width:100%}
.vv-search-box .vv-live-wrap form{display:flex;gap:8px}


/* Theme 11: full artikelbredd men styrd annonshöjd.
   Inget autoformat: AdSense väljer inte höga stående format.
   Den faktiska annonsen beskärs aldrig med overflow:hidden. */
.vv-entry-content .vv-ad-zone .adsbygoogle{
  display:block;
  width:100%;
  max-width:100%;
  height:280px;
  box-sizing:border-box;
}
@media(max-width:620px){
  .vv-entry-content .vv-ad-zone .adsbygoogle{height:250px}
}
