:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #16232b;
  --muted: #5b6b73;
  --line: #e6e1d6;
  --blue: #005aa0;
  --blue-dark: #00436f;
  --gold: #f2c230;
  --gold-soft: #fdf3d2;
  --green: #1e7a5a;
  --green-soft: #e7f3ee;
  --red-soft: #fbeaea;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(22, 35, 43, 0.05), 0 8px 24px rgba(22, 35, 43, 0.07);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo { font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--blue); }
.nav { display: flex; gap: 20px; font-size: 0.92rem; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--blue); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15; letter-spacing: -0.03em; font-weight: 800;
  max-width: 780px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead { margin-top: 16px; font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 13px 22px; font-weight: 700; font-size: 0.98rem;
  cursor: pointer; border: none; transition: transform 0.06s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 10px; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section h2 { font-size: 1.6rem; letter-spacing: -0.02em; font-weight: 800; }
.section .sub { color: var(--muted); font-size: 0.95rem; }

/* ---------- Clinic card ---------- */
.clinic-list { display: flex; flex-direction: column; gap: 18px; }
.clinic-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; position: relative;
}
.clinic-card.top { border: 2px solid var(--gold); }
.rank-flag {
  position: absolute; top: -12px; left: 20px;
  background: var(--gold); color: #4a3a00;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 12px; border-radius: 999px; text-transform: uppercase;
}
.clinic-grid { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: start; }
.rank-num {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; color: var(--muted);
}
.clinic-card.top .rank-num { background: var(--gold-soft); color: #7a5c00; border-color: var(--gold); }
.clinic-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.clinic-meta { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.clinic-desc { margin-top: 10px; font-size: 0.96rem; color: var(--ink); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.chip.method { background: #eaf2f9; border-color: #cfe2f0; color: var(--blue-dark); }
.chip.price { background: var(--green-soft); border-color: #cbe5da; color: var(--green); }

/* Score panel */
.score-panel { text-align: right; min-width: 170px; }
.score-big {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: var(--green); color: #fff; border-radius: 14px;
  padding: 10px 16px; font-weight: 800; font-size: 1.6rem; line-height: 1;
}
.score-big small { font-size: 0.8rem; font-weight: 600; opacity: 0.85; }
.score-stars { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.score-stars b { color: var(--ink); }
.unranked {
  display: inline-block; background: var(--bg); border: 1px dashed var(--line);
  border-radius: 12px; padding: 10px 14px; font-size: 0.85rem; color: var(--muted); max-width: 190px;
}

/* Breakdown bars */
.breakdown { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bd-item .bd-label { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.bd-item .bd-val { font-weight: 800; font-size: 0.95rem; margin-top: 2px; }
.bd-bar { height: 6px; border-radius: 4px; background: var(--bg); margin-top: 6px; overflow: hidden; }
.bd-bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }

.card-cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.source-note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.source-note a { color: var(--muted); text-decoration: underline; }

/* ---------- City cards ---------- */
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.city-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: block; color: var(--ink);
}
.city-card:hover { text-decoration: none; border-color: var(--blue); }
.city-card h3 { font-size: 1.15rem; font-weight: 800; }
.city-card p { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.city-card .count { color: var(--blue); font-weight: 700; font-size: 0.85rem; margin-top: 10px; display: inline-block; }

/* ---------- Method box ---------- */
.method-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.weights { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; }
.weight {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.weight .pct { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.weight .name { font-weight: 700; font-size: 0.95rem; margin-top: 2px; }
.weight p { font-size: 0.83rem; color: var(--muted); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--blue); font-weight: 600; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding: 0 20px 16px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Trust / EEAT strip ---------- */
.trust-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 28px 20px; }
.trust-item h4 { font-size: 0.95rem; font-weight: 800; }
.trust-item p { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8c4ca; margin-top: 56px; }
.site-footer .container { padding: 40px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.site-footer a { color: #b8c4ca; display: block; font-size: 0.9rem; margin-bottom: 6px; }
.site-footer .disclaimer { font-size: 0.8rem; margin-top: 24px; border-top: 1px solid #2b3b45; padding-top: 16px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.85rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- Prose (metod/om oss) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 32px; margin-bottom: 10px; font-size: 1.35rem; }
.prose p { margin-bottom: 14px; color: #2c3e48; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; color: #2c3e48; }
.prose code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.88em; }

table.formula { width: 100%; border-collapse: collapse; margin: 14px 0; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
table.formula th, table.formula td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
table.formula th { background: var(--bg); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

@media (max-width: 760px) {
  .clinic-grid { grid-template-columns: 40px 1fr; }
  .rank-num { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
  .score-panel { grid-column: 2; text-align: left; margin-top: 4px; }
  .breakdown { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .sticky-cta {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px;
  }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 70px; }
}

/* ============================= BLOGG / KUNSKAPSBANKEN ===================== */
.post-kat{
  display:inline-block;background:#eaf2f9;border:1px solid #cfe2f0;color:var(--blue-dark);
  font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  padding:3px 10px;border-radius:8px;
}
.post-feature{
  display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:30px;color:var(--ink);border-left:4px solid var(--blue);
}
.post-feature:hover{text-decoration:none;border-color:var(--blue)}
.post-feature h2{font-size:1.65rem;letter-spacing:-.02em;margin-top:12px;font-weight:800}
.post-feature p{color:var(--muted);margin-top:8px;max-width:62ch}
.post-meta{display:block;margin-top:14px;font-size:.85rem;color:var(--blue);font-weight:700}

.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.post-card{
  display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:22px;color:var(--ink);
}
.post-card:hover{text-decoration:none;border-color:var(--blue)}
.post-card h3{font-size:1.08rem;font-weight:800;letter-spacing:-.01em;margin-top:10px;line-height:1.35}
.post-card p{color:var(--muted);font-size:.9rem;margin-top:6px}
.post-card .post-meta{font-size:.8rem;color:var(--muted);font-weight:600;margin-top:12px}

/* --- Artikel --- */
.artikel{max-width:760px;margin:0 auto;padding-bottom:20px}
.artikel-head{padding:18px 0 22px}
.artikel-head h1{font-size:clamp(1.7rem,3.6vw,2.4rem);line-height:1.18;letter-spacing:-.03em;font-weight:800;margin-top:12px}
.artikel-meta{color:var(--muted);font-size:.88rem;margin-top:12px}

.toc{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px 24px;margin-bottom:28px}
.toc h2{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}
.toc ol{margin:10px 0 0 20px;padding:0}
.toc li{margin-bottom:5px;font-size:.93rem}

.artikel-brod{font-size:1.04rem;line-height:1.72;color:#2c3e48}
.artikel-brod p{margin-bottom:16px}
.artikel-brod h2{font-size:1.4rem;font-weight:800;letter-spacing:-.02em;color:var(--ink);margin:34px 0 12px;scroll-margin-top:80px}
.artikel-brod h3{font-size:1.12rem;font-weight:800;color:var(--ink);margin:24px 0 8px}
.artikel-brod ul,.artikel-brod ol{margin:0 0 16px 24px}
.artikel-brod li{margin-bottom:8px}
.artikel-brod a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.artikel-brod strong{color:var(--ink);font-weight:700}

/* Direktsvar överst — viktigt för svarsmotorer (AEO/GEO) */
.artikel-brod .lead-answer{
  font-size:1.1rem;line-height:1.62;color:var(--ink);background:var(--green-soft);
  border-left:4px solid var(--green);border-radius:0 12px 12px 0;padding:18px 22px;margin-bottom:26px;
}
/* Faktaruta */
.artikel-brod .fakta{
  background:var(--gold-soft);border:1px solid #f0dda0;border-radius:14px;padding:22px 26px;margin:30px 0;
}
.artikel-brod .fakta h2{margin:0 0 10px;font-size:1.05rem;letter-spacing:0;text-transform:uppercase;
  letter-spacing:.04em;color:#7a5c00;font-weight:800}
.artikel-brod .fakta ul{margin:0 0 0 20px}
.artikel-brod .fakta li{margin-bottom:6px;font-size:.95rem;color:#4a3a00}

.artikel-brod table{width:100%;border-collapse:collapse;margin:20px 0;background:var(--surface);
  border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:.93rem;display:table}
.artikel-brod th,.artikel-brod td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.artikel-brod th{background:var(--bg);font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:800}
.artikel-brod tr:last-child td{border-bottom:none}

/* Källor sist i artikeln */
.artikel-brod h2:last-of-type + ul{font-size:.9rem}

.forfattare{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;margin-top:36px}
.forfattare h2{font-size:1.05rem;font-weight:800}
.forfattare p{color:var(--muted);font-size:.92rem;margin-top:8px}
.medicinsk-disclaimer{border-top:1px solid var(--line);padding-top:12px;margin-top:14px;font-size:.86rem}
.medicinsk-disclaimer strong{color:var(--ink)}

.artikel-cta{background:var(--surface);border:2px solid var(--blue);border-radius:14px;padding:26px;margin-top:20px}
.artikel-cta h2{font-size:1.2rem;font-weight:800}
.artikel-cta p{color:var(--muted);font-size:.93rem;margin-top:6px}

@media(max-width:760px){
  .artikel-brod table{display:block;overflow-x:auto}
  .post-feature{padding:22px}
  .post-feature h2{font-size:1.3rem}
}

/* ---------------------------- Bilder i bloggen --------------------------- */
.artikel-topbild{margin:0 0 28px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--surface)}
.artikel-topbild img{display:block;width:100%;height:auto}

.artikel-bild{margin:30px 0;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--surface)}
.artikel-bild img{display:block;width:100%;height:auto}
.artikel-bild figcaption{padding:12px 18px;font-size:.86rem;color:var(--muted);border-top:1px solid var(--line);background:var(--bg);line-height:1.5}

.post-thumb-lg{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);margin-bottom:16px;background:var(--bg)}
.post-thumb{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--line);margin-bottom:14px;background:var(--bg)}


/* ---------------- Tillgänglighet & granskningsfixar ---------------- */
/* Rubrik som finns för skärmläsare men inte syns visuellt */
.visuellt-dold{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
/* Länkar måste gå att skilja från text (WCAG 1.4.1) */
.crumbs a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.site-footer a{color:#dbe4e8;text-decoration:underline;text-underline-offset:2px}
.site-footer a:hover{color:#fff}

/* Utfällbar motivering av redaktionella poäng */
.motivering{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.motivering summary{
  cursor:pointer;font-size:.85rem;font-weight:700;color:var(--blue);list-style:none;
  display:inline-flex;align-items:center;gap:6px;
}
.motivering summary::-webkit-details-marker{display:none}
.motivering summary::after{content:'▾';font-size:.8rem}
.motivering[open] summary::after{content:'▴'}
.motivering p{font-size:.86rem;color:var(--muted);margin-top:8px;max-width:70ch}
.motivering p b{color:var(--ink)}
