/* ============================================================================
   Testblick — Design tokens & global styles
   ============================================================================ */

:root {
  /* Brand: Testgrön */
  --brand-900: #062B20;
  --brand-700: #0D4F3C;
  --brand-500: #168A6A;
  --brand-300: #7EC8A9;
  --brand-50:  #E8F5EF;

  /* Accent: Bärnstensgul */
  --accent-600: #E8A900;
  --accent-400: #FFC230;
  --accent-100: #FFF5CF;

  /* Semantic */
  --success-500: #10B981;
  --warning-500: #F59E0B;
  --danger-500:  #E11D48;

  /* Neutral (warm) */
  --gray-50:  #FAFAF9;
  --gray-100: #F0EFEB;
  --gray-200: #E5E3DE;
  --gray-300: #D6D3CE;
  --gray-500: #78756F;
  --gray-700: #404040;
  --gray-900: #0C0C0D;
  --white:    #FFFFFF;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(6,43,32,0.06);
  --shadow-lg: 0 12px 32px rgba(6,43,32,0.10);
  --shadow-xl: 0 24px 48px rgba(6,43,32,0.12);

  /* Spacing baseline (rem-based) */
  --s-1: 0.25rem;  /* 4 */
  --s-2: 0.5rem;   /* 8 */
  --s-3: 0.75rem;  /* 12 */
  --s-4: 1rem;     /* 16 */
  --s-6: 1.5rem;   /* 24 */
  --s-8: 2rem;     /* 32 */
  --s-12: 3rem;    /* 48 */
  --s-16: 4rem;    /* 64 */
  --s-24: 6rem;    /* 96 */

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Layout */
  --container: 1280px;
  --gutter-mobile: 16px;
  --gutter-tablet: 24px;
  --gutter-desktop: 32px;
  --header-h: 72px;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* ============================================================================
   Reset & base
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 0.5vw + 0.85rem, 17px);
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-500); text-decoration: none; text-underline-offset: 4px; transition: text-underline-offset 150ms; }
a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Headings — fluid typografi med clamp() */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--brand-900); letter-spacing: -0.01em; margin: 0; }
h4 { font-family: var(--font-body); font-weight: 600; line-height: 1.4; color: var(--gray-900); margin: 0; }
h1 { font-size: clamp(30px, 3.6vw + 1rem, 44px); line-height: 1.1; }
h2 { font-size: clamp(24px, 2.2vw + 0.9rem, 32px); line-height: 1.2; }
h3 { font-size: clamp(19px, 1vw + 1rem, 24px); line-height: 1.3; }
h4 { font-size: clamp(17px, 0.5vw + 1rem, 20px); }
h1.hero-h1 { font-size: clamp(34px, 5.5vw + 1rem, 64px); line-height: 1.05; letter-spacing: -0.02em; }

p { margin: 0 0 var(--s-6) 0; }

/* Utility */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); }
@media (min-width: 768px) { .container { padding-left: var(--gutter-tablet); padding-right: var(--gutter-tablet); } }
@media (min-width: 1024px) { .container { padding-left: var(--gutter-desktop); padding-right: var(--gutter-desktop); } }

.section { padding: var(--s-12) 0; }
@media (min-width: 1024px) { .section { padding: var(--s-16) 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--brand-50); color: var(--brand-700); border-radius: var(--r-full); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.caption { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ============================================================================
   Buttons
   ============================================================================ */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; height: 48px; font-family: var(--font-body); font-weight: 600; font-size: 16px; border-radius: var(--r-full); border: 2px solid transparent; cursor: pointer; transition: all 200ms ease-out; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent-600); color: var(--brand-900); }
.btn-primary:hover { background: var(--accent-400); box-shadow: var(--shadow-lg); }

.btn-secondary { background: transparent; color: var(--brand-700); border-color: var(--brand-700); }
.btn-secondary:hover { background: var(--brand-50); }

.btn-ghost { background: transparent; color: var(--brand-700); }
.btn-ghost:hover { background: var(--brand-50); }

.btn-buy { width: 100%; height: 56px; background: var(--accent-600); color: var(--brand-900); font-size: 18px; font-weight: 700; border-radius: var(--r-lg); }
.btn-buy:hover { background: var(--accent-400); box-shadow: var(--shadow-lg); }
.btn-buy span.arrow { display: inline-block; transition: transform 200ms; }
.btn-buy:hover span.arrow { transform: translateX(4px); }

.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ============================================================================
   Badges
   ============================================================================ */

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.badge-winner { background: var(--accent-400); color: var(--brand-900); }
.badge-update { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-300); }
.badge-danger { background: var(--danger-500); color: var(--white); }
.badge-success { background: var(--success-500); color: var(--white); }

/* ============================================================================
   Cards
   ============================================================================ */

.card { background: var(--white); border-radius: var(--r-2xl); border: 1px solid var(--gray-100); padding: var(--s-6); transition: all 200ms ease-out; }
.card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-xl); transform: translateY(-2px); }

.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }

/* ============================================================================
   Rating stars
   ============================================================================ */

.rating { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; }
.rating .stars { color: var(--accent-400); letter-spacing: 1px; }
.rating .value { color: var(--gray-900); font-size: 16px; }
.rating .count { color: var(--gray-500); font-family: var(--font-body); font-size: 13px; font-weight: 500; }

/* ============================================================================
   Input
   ============================================================================ */

.input { width: 100%; height: 56px; padding: 0 20px; border-radius: var(--r-lg); border: 1px solid var(--gray-300); background: var(--white); font-size: 17px; font-family: var(--font-body); transition: all 150ms; }
.input::placeholder { color: var(--gray-500); }
.input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(22,138,106,0.15); }

/* ============================================================================
   HEADER
   ============================================================================ */

.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255,255,255,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--gray-100); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s-8); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--brand-700); letter-spacing: -0.02em; }
.logo svg.logo-mark { width: 36px; height: 28px; flex-shrink: 0; transition: transform 0.2s ease; }
.logo:hover svg.logo-mark { transform: scale(1.06); }
.logo svg { width: 28px; height: 28px; }
.logo-text { line-height: 1; }
.logo:hover { text-decoration: none; }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: flex; align-items: center; gap: var(--s-6); } }
.nav a { color: var(--gray-700); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r-md); }
.nav a:hover { background: var(--gray-100); text-decoration: none; color: var(--brand-900); }
.nav a.has-drop::after { content: " ▾"; font-size: 10px; color: var(--gray-500); }

.header-right { display: flex; align-items: center; gap: 12px; }
.search-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--gray-100); border: none; border-radius: var(--r-full); cursor: pointer; color: var(--gray-700); transition: all 150ms; }
.search-icon-btn:hover { background: var(--brand-50); color: var(--brand-700); }
.mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--gray-100); border: none; border-radius: var(--r-full); cursor: pointer; color: var(--gray-700); }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* ============================================================================
   HERO (startsida)
   ============================================================================ */

.hero { padding: var(--s-12) 0 var(--s-8); text-align: center; }
@media (min-width: 768px) { .hero { padding: var(--s-16) 0 var(--s-12); } }
@media (min-width: 1024px) { .hero { padding: var(--s-24) 0 var(--s-16); } }
.hero .eyebrow { margin-bottom: var(--s-4); font-size: clamp(11px, 0.4vw + 0.7rem, 13px); }
@media (min-width: 768px) { .hero .eyebrow { margin-bottom: var(--s-6); } }
.hero h1 { margin: 0 0 var(--s-4) 0; max-width: 820px; margin-inline: auto; }
@media (min-width: 768px) { .hero h1 { margin-bottom: var(--s-6); } }
.hero .subhead { font-size: clamp(16px, 0.6vw + 0.9rem, 20px); color: var(--gray-700); max-width: 620px; margin: 0 auto var(--s-6); }
@media (min-width: 768px) { .hero .subhead { margin-bottom: var(--s-8); } }
.hero .search-wrap { max-width: 640px; margin: 0 auto; position: relative; }
.hero .search-wrap .input { height: 56px; padding-left: 48px; font-size: 16px; border-radius: var(--r-xl); border-width: 2px; }
@media (min-width: 768px) { .hero .search-wrap .input { height: 64px; padding-left: 56px; font-size: 17px; } }
.hero .search-wrap svg.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-500); width: 20px; height: 20px; }
@media (min-width: 768px) { .hero .search-wrap svg.search-icon { left: 20px; width: 22px; height: 22px; } }

/* Live search-resultat */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 50;
  max-height: 420px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--brand-50); text-decoration: none; color: var(--brand-700); }
.search-result .sr-arrow { color: var(--gray-500); font-size: 18px; }
.search-result:hover .sr-arrow { color: var(--brand-500); }
.hero .quick-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: var(--s-4); }
@media (min-width: 768px) { .hero .quick-chips { gap: 8px; margin-top: var(--s-6); } }
.hero .chip { padding: 5px 12px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-full); font-size: 13px; color: var(--gray-700); font-weight: 500; white-space: nowrap; }
@media (min-width: 768px) { .hero .chip { padding: 6px 14px; font-size: 14px; } }
.hero .chip:hover { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-700); text-decoration: none; }

/* ============================================================================
   Category grid
   ============================================================================ */

.grid-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (min-width: 768px) { .grid-cats { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
@media (min-width: 1024px) { .grid-cats { grid-template-columns: repeat(6, 1fr); } }

.cat-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--gray-100); border-radius: var(--r-xl); transition: all 200ms; min-height: 180px; }
.cat-card:hover { background: var(--brand-50); border: 1px solid var(--brand-300); transform: translateY(-2px); text-decoration: none; }
.cat-card .cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--brand-700);
  background: var(--white); border-radius: var(--r-md);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cat-card .cat-icon svg { width: 24px; height: 24px; }
.cat-card:hover .cat-icon { background: var(--brand-700); color: var(--white); }
.cat-card .name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--brand-900); line-height: 1.2; }
.cat-card .count { font-size: 13px; color: var(--gray-500); }

/* ============================================================================
   Test cards (article grid)
   ============================================================================ */

.bento { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .bento > .featured { grid-column: span 2; grid-row: span 2; }
}

.test-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: var(--r-2xl); border: 1px solid var(--gray-100); transition: all 200ms; color: inherit; }
.test-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-xl); transform: translateY(-2px); text-decoration: none; }
.test-card .img-wrap { aspect-ratio: 3/2; overflow: hidden; background: var(--gray-100); }
.test-card .img-wrap > div { width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-50), var(--gray-100)); display: flex; align-items: center; justify-content: center; font-size: 72px; color: var(--brand-300); transition: transform 300ms; }
.test-card:hover .img-wrap > div { transform: scale(1.04); }
.test-card .body { padding: var(--s-6); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.test-card .cat-tag { font-size: 12px; font-weight: 600; color: var(--brand-500); text-transform: uppercase; letter-spacing: 0.05em; }
.test-card h3 { font-size: 20px; }
.test-card.featured h3 { font-size: 28px; }
.test-card .winner { font-size: 14px; color: var(--gray-700); }
.test-card .meta { margin-top: auto; font-size: 13px; color: var(--gray-500); }

/* ============================================================================
   Popular list (numbered)
   ============================================================================ */

.pop-list { display: flex; flex-direction: column; }
.pop-item { display: flex; align-items: center; gap: var(--s-6); padding: var(--s-4) var(--s-6); border-top: 1px solid var(--gray-100); color: inherit; transition: background 150ms; }
.pop-item:first-child { border-top: none; }
.pop-item:hover { background: var(--gray-50); text-decoration: none; }
.pop-item .num { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--brand-500); min-width: 44px; }
.pop-item .title { flex: 1; font-size: 17px; font-weight: 500; color: var(--gray-900); }
.pop-item .arrow { color: var(--brand-500); }

/* ============================================================================
   Methodology split
   ============================================================================ */

.method-split { display: grid; grid-template-columns: 1fr; gap: var(--s-12); }
@media (min-width: 1024px) { .method-split { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.stat-card { padding: var(--s-6); background: var(--brand-50); border-radius: var(--r-xl); }
.stat-card .num { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--brand-700); line-height: 1; }
.stat-card .label { font-size: 14px; color: var(--gray-700); margin-top: 8px; }

/* ============================================================================
   Newsletter CTA bar
   ============================================================================ */

.newsletter-section { background: var(--brand-700); color: var(--white); text-align: center; padding: var(--s-16) 0; }
.newsletter-section h2 { color: var(--white); }
.newsletter-section .subhead { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto var(--s-8); font-size: 18px; }
.newsletter-section form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; }
@media (min-width: 640px) { .newsletter-section form { flex-direction: row; } }
.newsletter-section .input { flex: 1; }
.newsletter-section .fine { margin-top: var(--s-4); font-size: 13px; color: rgba(255,255,255,0.65); }

/* ============================================================================
   Footer
   ============================================================================ */

.disclosure-bar { background: var(--brand-50); color: var(--brand-900); padding: var(--s-4) 0; font-size: 14px; }
.disclosure-bar .container { display: flex; align-items: center; justify-content: center; gap: var(--s-4); flex-wrap: wrap; text-align: center; }
.disclosure-bar strong { color: var(--brand-900); }

.footer { background: var(--brand-900); color: rgba(255,255,255,0.7); padding: var(--s-16) 0 var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-8); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-12); } }
.footer h4 { font-family: var(--font-body); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: var(--s-4); }
.footer a { color: rgba(255,255,255,0.7); font-size: 15px; display: block; padding: 4px 0; }
.footer a:hover { color: var(--white); text-decoration: none; }
.footer .footer-brand .logo { color: var(--white); }
.footer .footer-brand p { font-size: 15px; max-width: 320px; margin-top: var(--s-2); }
.footer .social { display: flex; gap: 12px; margin-top: var(--s-4); }
.footer .social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border-radius: var(--r-full); padding: 0; color: rgba(255,255,255,0.7); }
.footer .social a:hover { background: var(--brand-500); color: var(--white); }
.footer-bottom { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: rgba(255,255,255,0.55); text-align: center; }
.footer-bottom p { margin: 0 0 6px 0; }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* ============================================================================
   Article page
   ============================================================================ */

.article-main { display: grid; grid-template-columns: 1fr; gap: var(--s-8); padding-top: var(--s-8); }
@media (min-width: 1024px) { .article-main { grid-template-columns: 8fr 4fr; gap: var(--s-12); padding-top: var(--s-12); } }

.breadcrumbs { font-size: 14px; color: var(--gray-500); margin-bottom: var(--s-4); }
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--brand-700); }
.breadcrumbs span.sep { margin: 0 8px; color: var(--gray-300); }

.article-head h1 { margin-bottom: var(--s-3); }
.article-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(17px, 1vw + 0.6rem, 22px); color: var(--gray-700); line-height: 1.45; margin: 0 0 var(--s-6) 0; max-width: 640px; }

/* Category eyebrow ovanför H1 */
.category-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-500);
  padding: 4px 10px;
  background: var(--brand-50);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-3);
}

/* MODERN BYLINE */
.byline-modern {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: var(--s-6) 0 var(--s-8);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  max-width: 100%;
  min-width: 0;
}
.byline-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-500));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
@media (min-width: 640px) { .byline-avatar { width: 52px; height: 52px; font-size: 17px; } }

.byline-meta { min-width: 0; flex: 1; overflow: hidden; }
.byline-main {
  font-size: 14px;
  color: var(--gray-900);
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
@media (min-width: 640px) { .byline-main { font-size: 15px; } }
.byline-main a {
  color: var(--brand-900);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--brand-300);
}
.byline-main a:hover {
  color: var(--brand-700);
  border-bottom-color: var(--brand-700);
}
.byline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 4px;
  line-height: 1.4;
}
@media (min-width: 640px) { .byline-stats { font-size: 13px; gap: 8px; } }
.byline-stats strong { color: var(--gray-700); font-weight: 600; }
.byline-stats .sep { color: var(--gray-300); font-weight: 400; }
.bl-stat { display: inline-flex; align-items: center; gap: 6px; }
.bl-stat svg { width: 14px; height: 14px; color: var(--gray-500); flex-shrink: 0; }

/* INGRESS (riktig brödtext, drop cap, flera stycken) */
.article-ingress {
  margin: 0 0 40px 0;
  max-width: 680px;
}
.article-ingress p {
  font-family: var(--font-body);
  font-size: clamp(16px, 0.6vw + 0.85rem, 19px);
  line-height: 1.65;
  color: var(--gray-900);
  margin: 0 0 var(--s-4) 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.article-ingress p.lead {
  font-size: clamp(17px, 0.7vw + 0.9rem, 20px);
  line-height: 1.55;
  color: var(--gray-900);
  position: relative;
  min-height: 64px;
}

/* DROP CAP */
.article-ingress .dropcap {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 6vw + 1.5rem, 72px);
  line-height: 0.85;
  margin: 8px 10px 0 0;
  color: var(--brand-700);
  padding: 0;
}
@media (max-width: 639px) {
  .article-ingress .dropcap {
    font-size: 52px;
    margin: 6px 8px -4px 0;
  }
}

/* Top-5 layout:
   Mobile: #1 full-bredd block, #2-5 horisontell scroll
   Desktop (≥1024): alla 5 i horisontell scroll (3 synliga åt gången) */
.top5 { display: block; margin: var(--s-6) 0; }
@media (min-width: 768px) { .top5 { margin: var(--s-8) 0; } }

/* Winner alltid full-bredd på mobil + tablet */
.top5 > .product-card.winner { width: 100%; max-width: 100%; margin-bottom: var(--s-4); }

/* Horizontal scroll-container för #2-5 */
.top5-scroll {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 var(--s-4);
  scrollbar-width: thin;
  scrollbar-color: var(--brand-300) transparent;
}
@media (min-width: 768px) {
  .top5-scroll { gap: var(--s-4); }
}
.top5-scroll::-webkit-scrollbar { height: 8px; }
.top5-scroll::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 4px; }
.top5-scroll::-webkit-scrollbar-thumb { background: var(--brand-300); border-radius: 4px; }

.top5-scroll > .product-card {
  flex: 0 0 86%;
  max-width: 400px;
  scroll-snap-align: start;
}
@media (min-width: 520px) { .top5-scroll > .product-card { flex: 0 0 55%; max-width: 440px; } }
@media (min-width: 768px) { .top5-scroll > .product-card { flex: 0 0 48%; max-width: 420px; } }

/* Scroll-hint under listan */
.top5-scroll-hint {
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
  font-style: italic;
}
@media (min-width: 1024px) { .top5-scroll-hint { display: none; } }

/* DESKTOP (≥ 1024px): alla 5 i horizontal scroll, 2 hela + ~20% av det tredje synliga */
@media (min-width: 1024px) {
  .top5 { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 var(--s-4); scrollbar-width: thin; scrollbar-color: var(--brand-300) transparent; }
  .top5::-webkit-scrollbar { height: 10px; }
  .top5::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 5px; }
  .top5::-webkit-scrollbar-thumb { background: var(--brand-300); border-radius: 5px; }
  .top5::-webkit-scrollbar-thumb:hover { background: var(--brand-500); }

  /* Visa 2 hela kort + ~20% av det tredje.
     Layout: card + gap + card + gap + 20% av card
     => 2.2 * card_width + 2 * gap = 100%
     => card_width = (100% - 2*gap) / 2.2 */
  .top5 > .product-card {
    flex: 0 0 calc((100% - var(--s-4) * 2) / 2.2);
    max-width: none;
    scroll-snap-align: start;
    margin: 0;
  }
  .top5 > .product-card.winner { width: auto; margin: 0; }

  /* Gömda wrapper-div på desktop: låt dess barn bli direkta flex-children */
  .top5 > .top5-scroll {
    display: contents;
  }
  .top5 > .top5-scroll > .product-card {
    flex: 0 0 calc((100% - var(--s-4) * 2) / 2.2);
    max-width: none;
    scroll-snap-align: start;
  }
}

.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); position: relative; }
.product-card.winner { background: linear-gradient(180deg, var(--accent-100) 0%, var(--white) 60%); border: 2px solid var(--accent-400); }
.product-card .rank-pill { position: absolute; top: 12px; left: 12px; background: var(--brand-900); color: var(--white); padding: 4px 12px; border-radius: var(--r-full); font-size: 13px; font-weight: 700; }
.product-card.winner .rank-pill { background: var(--accent-400); color: var(--brand-900); }
.product-card .prod-img { aspect-ratio: 1/1; background: var(--gray-50); border-radius: var(--r-lg); margin-top: var(--s-6); display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--brand-300); }
.product-card .prod-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--brand-900); min-height: 56px; }
.product-card .features { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--gray-700); display: flex; flex-direction: column; gap: 6px; }
.product-card .features li { display: flex; align-items: start; gap: 6px; }
.product-card .features li::before { content: "✓"; color: var(--success-500); font-weight: 700; flex-shrink: 0; }
.product-card .price-row { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--s-3); border-top: 1px solid var(--gray-100); }
.product-card .price-row .from { font-size: 12px; color: var(--gray-500); }
.product-card .price-row .price { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--brand-900); }
.product-card .shop { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* Comparison table — sticky första kolumn på små skärmar */
.compare-wrap { margin: var(--s-8) 0; background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--gray-200); overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.compare-wrap::after { content: ""; position: absolute; top: 0; right: 0; width: 24px; height: 100%; background: linear-gradient(to left, var(--white), transparent); pointer-events: none; opacity: 0; transition: opacity 200ms; }
@media (max-width: 1023px) { .compare-wrap::after { opacity: 1; } }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--gray-100); white-space: nowrap; }
@media (min-width: 640px) { .compare-table th, .compare-table td { padding: 14px 16px; } }
.compare-table th { background: var(--gray-50); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-700); font-weight: 600; }
.compare-table .win-col { background: var(--accent-100); }
.compare-table th.win-col { background: var(--accent-400); color: var(--brand-900); }
.compare-table .criterion { font-weight: 600; color: var(--gray-700); position: sticky; left: 0; background: var(--white); z-index: 1; border-right: 1px solid var(--gray-100); }
.compare-table thead .criterion { background: var(--gray-50); z-index: 2; }
.compare-table .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.compare-table .check { color: var(--success-500); font-weight: 700; }
.compare-table .cross { color: var(--gray-300); font-weight: 700; }

/* Article body typography */
.article-body h2 { margin: var(--s-12) 0 var(--s-4); }
.article-body h3 { margin: var(--s-8) 0 var(--s-3); }
.article-body h4 { margin: var(--s-6) 0 var(--s-2); font-size: 18px; }
.article-body p { font-size: 17px; line-height: 1.7; color: var(--gray-900); }
.article-body ul { padding-left: 24px; margin: 0 0 var(--s-6) 0; }

/* Product review block in article */
.prod-review { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: var(--s-8); margin: var(--s-12) 0; }
.prod-review-head { display: grid; grid-template-columns: 1fr; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--gray-100); margin-bottom: var(--s-6); }
@media (min-width: 768px) { .prod-review-head { grid-template-columns: 200px 1fr; } }
.prod-review-head .img { aspect-ratio: 1/1; background: var(--gray-50); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--brand-300); }
.prod-review-head .meta h2 { font-size: 26px; margin: 0 0 8px 0; }
.prod-review-head .meta .specs-inline { font-family: var(--font-mono); font-size: 13px; color: var(--gray-700); margin-top: var(--s-3); }

.pros-cons { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin: var(--s-6) 0; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros, .cons { padding: var(--s-6); border-radius: var(--r-lg); background: var(--gray-50); }
.pros h4, .cons h4 { margin-bottom: 12px; font-size: 16px; }
.pros h4 { color: var(--success-500); }
.cons h4 { color: var(--danger-500); }
.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--gray-700); }
.pros li::before { content: "✓"; color: var(--success-500); font-weight: 700; margin-right: 8px; }
.cons li::before { content: "✗"; color: var(--danger-500); font-weight: 700; margin-right: 8px; }

.reviews-block { background: var(--brand-50); padding: var(--s-6); border-radius: var(--r-lg); margin: var(--s-6) 0; }
.reviews-block h4 { margin-bottom: var(--s-4); }
.review-item { padding: var(--s-4) 0; border-bottom: 1px solid rgba(13,79,60,0.12); }
.review-item:last-child { border-bottom: none; }
.review-item .r-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-item .r-name { font-weight: 600; color: var(--brand-900); }
.review-item .r-summary { font-style: italic; color: var(--gray-700); margin-bottom: 8px; font-size: 14px; }
.review-item .r-body { font-size: 14px; line-height: 1.6; color: var(--gray-700); }

.buy-row { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s-6); }
@media (min-width: 640px) { .buy-row { flex-direction: row; align-items: center; } }
.buy-row .price-big { font-family: var(--font-mono); font-weight: 700; font-size: 26px; color: var(--brand-900); }
.buy-row .btn-buy { flex: 1; }
.other-shops { font-size: 13px; color: var(--gray-500); margin-top: 8px; }
.other-shops a { margin-right: 12px; }

/* FAQ */
.faq-list { margin: var(--s-6) 0; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md); margin-bottom: 8px; overflow: hidden; }
.faq-item summary { padding: var(--s-4) var(--s-6); cursor: pointer; font-weight: 600; font-size: 16px; color: var(--gray-900); display: flex; align-items: center; justify-content: space-between; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--brand-500); font-weight: 300; transition: transform 200ms; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--brand-50); border-bottom: 1px solid var(--gray-100); }
.faq-item .answer { padding: var(--s-4) var(--s-6); color: var(--gray-700); font-size: 15px; line-height: 1.6; }

/* Sidebar */
.article-sidebar { display: none; }
@media (min-width: 1024px) { .article-sidebar { display: block; } }
.sidebar-inner { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: var(--s-6); }

.toc { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: var(--s-6); }
.toc h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: var(--s-3); }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.toc a { color: var(--gray-700); font-size: 14px; display: block; padding-left: 12px; border-left: 2px solid var(--gray-100); transition: all 150ms; }
.toc a:hover, .toc a.active { color: var(--brand-700); border-left-color: var(--brand-500); text-decoration: none; }

.side-buy { background: var(--white); border: 2px solid var(--accent-400); border-radius: var(--r-xl); padding: var(--s-6); text-align: center; }
.side-buy .cap { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--accent-600); letter-spacing: 0.08em; margin-bottom: 8px; }
.side-buy .prod-mini { aspect-ratio: 1/1; background: var(--gray-50); border-radius: var(--r-md); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--brand-300); }
.side-buy .prod-mini-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--brand-900); margin-bottom: 4px; }
.side-buy .price { font-family: var(--font-mono); font-weight: 700; font-size: 20px; color: var(--brand-900); margin-bottom: 12px; }

.side-author { background: var(--gray-50); border-radius: var(--r-xl); padding: var(--s-6); display: flex; gap: 12px; align-items: center; }
.side-author .avatar { width: 56px; height: 56px; background: var(--brand-300); border-radius: var(--r-full); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--brand-900); font-weight: 700; font-size: 20px; }
.side-author .name { font-weight: 600; font-size: 15px; color: var(--brand-900); }
.side-author .role { font-size: 13px; color: var(--gray-500); }

.side-news { background: var(--brand-700); color: var(--white); border-radius: var(--r-xl); padding: var(--s-6); }
.side-news h4 { color: var(--white); font-size: 16px; margin-bottom: 8px; }
.side-news p { color: rgba(255,255,255,0.8); font-size: 13px; margin-bottom: 12px; }
.side-news .input { height: 40px; padding: 0 12px; font-size: 14px; background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.15); }
.side-news .input::placeholder { color: rgba(255,255,255,0.5); }
.side-news .btn-primary { width: 100%; margin-top: 8px; height: 40px; font-size: 14px; }

/* Related tests */
.related-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin: var(--s-8) 0; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }
.related-card { padding: var(--s-4); background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg); transition: all 200ms; }
.related-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); text-decoration: none; }
.related-card .c { font-size: 11px; font-weight: 600; color: var(--brand-500); text-transform: uppercase; letter-spacing: 0.05em; }
.related-card h4 { font-family: var(--font-display); font-size: 16px; margin-top: 6px; color: var(--brand-900); }

/* Author disclosure */
.ai-disclosure { background: var(--gray-50); border-left: 4px solid var(--brand-500); padding: var(--s-4) var(--s-6); font-size: 14px; color: var(--gray-700); border-radius: 0 var(--r-md) var(--r-md) 0; margin: var(--s-8) 0; }

/* ============================================================================
   Generic article pages (Om oss, Metodik, Juridik)
   ============================================================================ */

.page-hero { padding: var(--s-16) 0 var(--s-8); text-align: center; }
.page-hero .eyebrow { margin-bottom: var(--s-4); }
.page-hero h1 { max-width: 640px; margin: 0 auto var(--s-4); font-size: 48px; }
.page-hero .subhead { font-size: 18px; color: var(--gray-700); max-width: 560px; margin: 0 auto; }

.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin: var(--s-12) 0 var(--s-4); }
.prose h3 { margin: var(--s-8) 0 var(--s-3); }
.prose p { font-size: 17px; line-height: 1.7; }

.team-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); margin: var(--s-8) 0; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { padding: var(--s-6); background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-xl); display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-card .avatar { width: 96px; height: 96px; border-radius: var(--r-full); background: linear-gradient(135deg, var(--brand-300), var(--brand-500)); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-bottom: var(--s-3); }
.team-card .name { font-weight: 600; color: var(--brand-900); }
.team-card .role { font-size: 14px; color: var(--gray-500); margin-bottom: 8px; }

.timeline { border-left: 2px solid var(--gray-200); padding-left: var(--s-6); margin: var(--s-8) 0; display: flex; flex-direction: column; gap: var(--s-6); }
.timeline-item .year { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand-500); }
.timeline-item .desc { font-size: 15px; color: var(--gray-700); margin-top: 4px; }

/* Category page */
.cat-hero { padding: var(--s-12) 0 var(--s-8); }
.cat-hero h1 { font-size: 40px; margin-bottom: var(--s-3); }
.cat-hero .intro { font-size: 17px; color: var(--gray-700); max-width: 720px; margin-bottom: var(--s-4); }
.filter-bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) 0; margin-bottom: var(--s-4); border-bottom: 1px solid var(--gray-100); }
.filter-bar .label { font-size: 13px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.filter-bar .chip { padding: 6px 14px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-full); font-size: 14px; color: var(--gray-700); cursor: pointer; }
.filter-bar .chip.active { background: var(--brand-700); color: var(--white); border-color: var(--brand-700); }
.filter-bar .chip:hover:not(.active) { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-700); text-decoration: none; }

/* 404 */
.not-found { text-align: center; padding: var(--s-24) 0; }
.not-found .big { font-family: var(--font-display); font-weight: 700; font-size: 140px; color: var(--brand-300); line-height: 1; margin: 0; }
.not-found h1 { margin: 0 0 var(--s-4) 0; }
.not-found p { color: var(--gray-700); margin-bottom: var(--s-8); font-size: 18px; }
.not-found-options { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-8); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 1fr; gap: var(--s-12); } }
.contact-form { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--gray-700); display: block; margin-bottom: 6px; }
.contact-form textarea { width: 100%; padding: 12px 20px; border-radius: var(--r-lg); border: 1px solid var(--gray-300); background: var(--white); font-family: var(--font-body); font-size: 16px; min-height: 140px; resize: vertical; }
.contact-form textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(22,138,106,0.15); }

/* ============================================================================
   RESPONSIVA FÖRBÄTTRINGAR
   ============================================================================ */

/* Komprimera sektionspadding på små skärmar */
@media (max-width: 767px) {
  .section { padding: 40px 0; }
  .page-hero { padding: 48px 0 24px; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 38px); }
  .page-hero .subhead { font-size: 16px; }
}

/* Header — bättre mobilbeteende */
.header { --_h: var(--header-h); }
@media (max-width: 767px) { .header { --_h: 64px; height: 64px; } }
.header-inner { gap: var(--s-4); }
@media (min-width: 1024px) { .header-inner { gap: var(--s-8); } }
.logo { font-size: clamp(18px, 1.5vw + 0.9rem, 22px); }
@media (max-width: 767px) { .logo svg.logo-mark { width: 30px; height: 24px; } .logo svg { width: 24px; height: 24px; } }
.header-right .btn-primary { display: none; }
@media (min-width: 1024px) { .header-right .btn-primary { display: inline-flex; } }

/* Mobil drawer-meny */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden;
}
.mobile-drawer.is-open { pointer-events: auto; visibility: visible; }
.mobile-drawer .backdrop {
  position: absolute; inset: 0; background: rgba(6,43,32,0.45);
  opacity: 0; transition: opacity 240ms ease;
}
.mobile-drawer.is-open .backdrop { opacity: 1; }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
  background: var(--white); padding: var(--s-6);
  transform: translateX(100%); transition: transform 280ms cubic-bezier(.2,.8,.2,1);
  overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-4);
}
.mobile-drawer.is-open .panel { transform: translateX(0); }
.mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }
.mobile-drawer .close-btn { width: 40px; height: 40px; background: var(--gray-100); border: none; border-radius: var(--r-full); font-size: 20px; cursor: pointer; color: var(--gray-700); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a { padding: 14px 16px; font-size: 18px; font-weight: 500; color: var(--gray-900); border-radius: var(--r-md); }
.mobile-drawer nav a:hover { background: var(--brand-50); text-decoration: none; }
.mobile-drawer .cat-group { padding: 12px 16px; background: var(--gray-50); border-radius: var(--r-md); }
.mobile-drawer .cat-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 8px; }
.mobile-drawer .cat-group a { padding: 6px 0; font-size: 15px; color: var(--gray-700); display: block; }
.mobile-drawer .drawer-cta { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--gray-200); }
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer .panel, .mobile-drawer .backdrop { transition: none !important; }
}
body.no-scroll { overflow: hidden; }

/* Mobile buy-bar (artikel) — sticky nederst */
.mobile-buy-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  padding: 10px 14px; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gray-200); box-shadow: 0 -6px 24px rgba(6,43,32,0.08);
  align-items: center; gap: 10px;
}
@media (max-width: 1023px) {
  .mobile-buy-bar.is-enabled { display: flex; }
  body.has-mobile-buy-bar { padding-bottom: 84px; }
}
.mobile-buy-bar .mb-thumb { width: 44px; height: 44px; background: var(--brand-50); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.mobile-buy-bar .mb-info { flex: 1; min-width: 0; }
.mobile-buy-bar .mb-name { font-size: 12px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-buy-bar .mb-price { font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--brand-900); }
.mobile-buy-bar .btn-buy-sm { background: var(--accent-600); color: var(--brand-900); padding: 10px 16px; border-radius: var(--r-lg); font-weight: 700; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.mobile-buy-bar .btn-buy-sm:hover { background: var(--accent-400); text-decoration: none; }

/* TOC Floating Action Button på mobil */
.toc-fab {
  display: none;
  position: fixed; right: 16px; bottom: 96px; z-index: 35;
  width: 48px; height: 48px; background: var(--brand-700); color: var(--white);
  border-radius: var(--r-full); border: none; cursor: pointer;
  box-shadow: var(--shadow-lg); align-items: center; justify-content: center;
}
@media (max-width: 1023px) { .toc-fab.is-enabled { display: flex; } }

/* Mobile TOC bottom sheet */
.mobile-toc {
  position: fixed; inset: 0; z-index: 55; pointer-events: none; visibility: hidden;
}
.mobile-toc.is-open { pointer-events: auto; visibility: visible; }
.mobile-toc .backdrop { position: absolute; inset: 0; background: rgba(6,43,32,0.45); opacity: 0; transition: opacity 220ms; }
.mobile-toc.is-open .backdrop { opacity: 1; }
.mobile-toc .sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--white);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0; padding: var(--s-6);
  max-height: 70vh; overflow-y: auto;
  transform: translateY(100%); transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}
.mobile-toc.is-open .sheet { transform: translateY(0); }
.mobile-toc .sheet h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 16px; }
.mobile-toc .sheet ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mobile-toc .sheet a { padding: 12px 14px; display: block; color: var(--gray-700); border-radius: var(--r-md); }
.mobile-toc .sheet a:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.mobile-toc .sheet .grabber { width: 44px; height: 4px; background: var(--gray-300); border-radius: 2px; margin: -8px auto 16px; }

/* Artikelns huvudkolumn lite tajtare padding på mobil */
@media (max-width: 767px) {
  .article-main { padding-top: var(--s-4); gap: var(--s-6); }
  .article-head h1 { margin-bottom: var(--s-3); }
  .article-tagline { font-size: 18px; margin-bottom: var(--s-4); }
  .byline { flex-direction: column; gap: 6px; margin-bottom: var(--s-6); padding-bottom: var(--s-4); }
  .prod-review { padding: var(--s-4); margin: var(--s-8) 0; }
  .prod-review-head .img { max-width: 160px; margin: 0 auto; }
  .reviews-block { padding: var(--s-4); }
  .buy-row { gap: 12px; }
  .buy-row .price-big { font-size: 22px; }
  .buy-row .btn-buy { height: 50px; font-size: 16px; }
  .other-shops { font-size: 12px; }
  .other-shops a { display: inline-block; margin-right: 8px; margin-bottom: 4px; }
}

/* Newsletter på mobil */
.newsletter-section { padding: var(--s-12) 0; }
@media (min-width: 768px) { .newsletter-section { padding: var(--s-16) 0; } }
.newsletter-section .subhead { font-size: clamp(15px, 0.5vw + 0.85rem, 18px); }
.newsletter-section .btn-primary { height: 52px !important; }
@media (min-width: 640px) { .newsletter-section .btn-primary { height: 56px !important; } }

/* Category grid gap-tweaks */
.grid-cats { gap: 12px; }
@media (min-width: 640px) { .grid-cats { gap: 16px; } }
@media (min-width: 1024px) { .grid-cats { gap: 20px; } }
.cat-card { padding: 20px 16px; min-height: 160px; }
@media (min-width: 768px) { .cat-card { padding: 24px; min-height: 180px; } }
.cat-card .emoji { font-size: 32px; }
@media (min-width: 768px) { .cat-card .emoji { font-size: 36px; } }
.cat-card .name { font-size: 17px; }
@media (min-width: 768px) { .cat-card .name { font-size: 20px; } }

/* Bento-grid justering på olika breakpoints */
@media (min-width: 640px) and (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > .featured { grid-column: span 2; }
}

/* Footer accordion på mobil */
@media (max-width: 767px) {
  .footer-grid { gap: 0; }
  .footer-grid > div:not(.footer-brand) { border-top: 1px solid rgba(255,255,255,0.1); }
  .footer-grid > div:not(.footer-brand) h4 { position: relative; cursor: pointer; padding: var(--s-4) 0; margin-bottom: 0; user-select: none; }
  .footer-grid > div:not(.footer-brand) h4::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: rgba(255,255,255,0.5); transition: transform 200ms; }
  .footer-grid > div:not(.footer-brand).is-open h4::after { transform: translateY(-50%) rotate(45deg); }
  .footer-grid > div:not(.footer-brand) .f-links { max-height: 0; overflow: hidden; transition: max-height 280ms ease-out, padding 280ms ease-out; padding-bottom: 0; }
  .footer-grid > div:not(.footer-brand).is-open .f-links { max-height: 400px; padding-bottom: var(--s-4); }
}

/* Produktkort på artikel — stor text på mobilen */
@media (max-width: 519px) {
  .product-card { padding: var(--s-5); }
  .product-card .prod-name { font-size: 17px; min-height: auto; }
  .product-card .prod-img { aspect-ratio: 16/10; max-height: 200px; }
  .product-card .features li { font-size: 13px; }
  .product-card .price-row .price { font-size: 20px; }
}

/* Jämförelsetabell — förbättra scroll-indikator på mobil */
@media (max-width: 1023px) {
  .compare-wrap { border-radius: var(--r-lg); }
  .compare-table th.criterion, .compare-table td.criterion { min-width: 140px; }
}

/* Filter bar på mobil — horizontell scroll */
@media (max-width: 639px) {
  .filter-bar { overflow-x: auto; white-space: nowrap; padding-bottom: var(--s-3); gap: 8px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar .label { flex-shrink: 0; }
  .filter-bar .chip { flex-shrink: 0; padding: 8px 14px; }
}

/* Team grid på mobil */
@media (max-width: 639px) {
  .team-card { padding: var(--s-4); }
  .team-card .avatar { width: 72px; height: 72px; font-size: 28px; }
}

/* 404 responsiv */
@media (max-width: 639px) {
  .not-found { padding: var(--s-16) 0; }
  .not-found .big { font-size: 96px; }
  .not-found p { font-size: 16px; }
  .not-found-options { flex-direction: column; align-items: stretch; }
  .not-found-options .btn { width: 100%; }
}

/* Container sidopadding säker zone */
.container { padding-left: max(var(--gutter-mobile), env(safe-area-inset-left)); padding-right: max(var(--gutter-mobile), env(safe-area-inset-right)); }
@media (min-width: 768px) { .container { padding-left: var(--gutter-tablet); padding-right: var(--gutter-tablet); } }
@media (min-width: 1024px) { .container { padding-left: var(--gutter-desktop); padding-right: var(--gutter-desktop); } }

/* Popular list på mobil — större touch-target */
@media (max-width: 639px) {
  .pop-item { padding: var(--s-4); gap: var(--s-3); }
  .pop-item .num { font-size: 22px; min-width: 32px; }
  .pop-item .title { font-size: 15px; line-height: 1.4; }
}

/* Metodik-split mobilt — stats först eller efter */
@media (max-width: 1023px) {
  .method-split { gap: var(--s-8); }
  .stats-grid { order: 2; }
}

/* Contact grid mobile first */
@media (max-width: 1023px) {
  .contact-grid aside { order: -1; }
}

/* Accessibility & motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* Focus visible */
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: var(--r-sm); }

/* Long sokord / model names bryter inte layout */
.product-card, .test-card, .related-card, .pop-item { overflow-wrap: anywhere; word-break: break-word; }
.prod-name, .prod-mini-name { overflow-wrap: anywhere; }

/* ============================================================================
   ARTIKEL — mobil-finslip (gäller alla /artiklar/*.html)
   ============================================================================ */

/* Alla textblock i artikel bryter långa ord/modellnamn */
.article-body h2, .article-body h3, .article-body h4, .article-body p, .article-body li,
.article-head h1, .article-tagline, .specs-inline, .prod-review .meta h2,
.reviews-block, .r-body, .r-summary, .buy-row, .other-shops {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Article-main: mindre gap och padding på mobil */
.article-main { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); gap: var(--s-6); }
@media (min-width: 768px) { .article-main { padding-left: var(--gutter-tablet); padding-right: var(--gutter-tablet); gap: var(--s-8); } }
@media (min-width: 1024px) { .article-main { padding-left: var(--gutter-desktop); padding-right: var(--gutter-desktop); gap: var(--s-12); } }

/* Article-head: kompaktare metadata-rad på mobil */
.article-head h1 { word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }
.article-tagline { font-size: clamp(16px, 1vw + 0.9rem, 22px); }
.byline { font-size: 13px; gap: 10px; }
@media (max-width: 639px) {
  .byline { flex-direction: column; gap: 4px; font-size: 12px; padding-bottom: var(--s-4); margin-bottom: var(--s-6); }
  .byline > span { font-size: 12px; }
}

/* Breadcrumbs kan wrappa */
.breadcrumbs { flex-wrap: wrap; white-space: normal; font-size: 13px; line-height: 1.5; }
.breadcrumbs span.sep { margin: 0 6px; }

/* Produktkort (topp-5): tightare på mobil */
.product-card { padding: var(--s-4); gap: var(--s-3); overflow: hidden; }
@media (min-width: 640px) { .product-card { padding: var(--s-5); } }
@media (min-width: 1024px) { .product-card { padding: var(--s-6); } }
.product-card .rank-pill { top: 8px; left: 8px; padding: 3px 10px; font-size: 11px; }
@media (min-width: 640px) { .product-card .rank-pill { top: 12px; left: 12px; padding: 4px 12px; font-size: 13px; } }
.product-card .prod-img { aspect-ratio: 16/10; max-height: 180px; margin-top: var(--s-4); font-size: clamp(40px, 8vw, 60px); }
@media (min-width: 520px) { .product-card .prod-img { aspect-ratio: 1/1; max-height: none; margin-top: var(--s-6); } }
.product-card .prod-name { font-size: clamp(15px, 1vw + 0.6rem, 18px); min-height: auto; line-height: 1.35; }
@media (min-width: 640px) { .product-card .prod-name { min-height: 44px; } }
.product-card .features li { font-size: clamp(12px, 0.4vw + 0.7rem, 14px); line-height: 1.45; }
.product-card .price-row .price { font-size: clamp(18px, 1vw + 0.7rem, 22px); }
.product-card .btn-buy { height: 46px; font-size: 15px; }
@media (min-width: 640px) { .product-card .btn-buy { height: 52px; font-size: 17px; } }

/* Jämförelsetabell: tighter + mindre font + full-bredd scroll */
.compare-wrap { margin: var(--s-6) 0; border-radius: var(--r-lg); }
@media (min-width: 768px) { .compare-wrap { margin: var(--s-8) 0; border-radius: var(--r-xl); } }
.compare-table { min-width: 600px; font-size: 13px; }
@media (min-width: 768px) { .compare-table { min-width: 720px; font-size: 14px; } }
.compare-table th, .compare-table td { padding: 10px 10px; }
@media (min-width: 640px) { .compare-table th, .compare-table td { padding: 12px 14px; } }
@media (min-width: 1024px) { .compare-table th, .compare-table td { padding: 14px 16px; } }
.compare-table th { font-size: 10px; letter-spacing: 0.06em; }
@media (min-width: 768px) { .compare-table th { font-size: 12px; letter-spacing: 0.08em; } }

/* Prod-review block: mindre padding och bättre stack på mobil */
.prod-review { padding: var(--s-4); margin: var(--s-8) 0; border-radius: var(--r-lg); }
@media (min-width: 640px) { .prod-review { padding: var(--s-6); margin: var(--s-12) 0; border-radius: var(--r-xl); } }
@media (min-width: 1024px) { .prod-review { padding: var(--s-8); } }
.prod-review-head { grid-template-columns: 1fr; gap: var(--s-4); padding-bottom: var(--s-4); margin-bottom: var(--s-4); align-items: center; }
@media (min-width: 640px) { .prod-review-head { gap: var(--s-6); padding-bottom: var(--s-6); margin-bottom: var(--s-6); } }
@media (min-width: 768px) { .prod-review-head { grid-template-columns: 160px 1fr; } }
@media (min-width: 1024px) { .prod-review-head { grid-template-columns: 200px 1fr; } }
.prod-review-head .img { max-width: 140px; margin: 0 auto; aspect-ratio: 1/1; font-size: 48px; }
@media (min-width: 768px) { .prod-review-head .img { max-width: none; margin: 0; font-size: 60px; } }
.prod-review-head .meta h2 { font-size: clamp(19px, 1.8vw + 0.7rem, 26px); line-height: 1.25; margin: 0 0 8px 0; }
.prod-review-head .meta .specs-inline { font-size: clamp(11px, 0.3vw + 0.65rem, 13px); line-height: 1.5; margin-top: var(--s-3); color: var(--gray-600, #666); max-width: 100%; }

/* H2 + H3 inside prod-review/article-body: skala + bryt långa brand+modell */
.prod-review .article-body h2 { font-size: clamp(19px, 1.5vw + 0.8rem, 26px); line-height: 1.25; margin: var(--s-8) 0 var(--s-4); }
.prod-review .article-body h3 { font-size: clamp(17px, 0.8vw + 0.85rem, 22px); margin: var(--s-6) 0 var(--s-3); }
.prod-review .article-body h4 { font-size: clamp(15px, 0.4vw + 0.85rem, 18px); margin: var(--s-5) 0 var(--s-2); }
.prod-review .article-body p { font-size: clamp(15px, 0.4vw + 0.85rem, 17px); line-height: 1.65; }

/* Pros/Cons block: kompaktare mobil */
.pros-cons { gap: var(--s-3); margin: var(--s-4) 0; }
@media (min-width: 640px) { .pros-cons { gap: var(--s-4); margin: var(--s-6) 0; } }
.pros, .cons { padding: var(--s-4); border-radius: var(--r-md); }
@media (min-width: 640px) { .pros, .cons { padding: var(--s-6); border-radius: var(--r-lg); } }
.pros ul, .cons ul { font-size: 13px; gap: 8px; }
@media (min-width: 640px) { .pros ul, .cons ul { font-size: 14px; gap: 10px; } }
.pros li, .cons li { line-height: 1.5; }

/* Reviews block: kompaktare */
.reviews-block { padding: var(--s-4); margin: var(--s-4) 0; border-radius: var(--r-md); }
@media (min-width: 640px) { .reviews-block { padding: var(--s-6); margin: var(--s-6) 0; border-radius: var(--r-lg); } }
.reviews-block h4 { font-size: 15px; margin-bottom: var(--s-3); }
.review-item { padding: var(--s-3) 0; }
@media (min-width: 640px) { .review-item { padding: var(--s-4) 0; } }
.review-item .r-head { flex-wrap: wrap; gap: 8px; }
.review-item .r-name { font-size: 14px; }
.review-item .r-summary { font-size: 13px; }
.review-item .r-body { font-size: 13px; line-height: 1.55; }
@media (min-width: 640px) { .review-item .r-body { font-size: 14px; line-height: 1.6; } }

/* Buy-row inside prod-review: stack cleanly på mobil */
.buy-row { flex-direction: column; gap: 12px; margin-top: var(--s-4); align-items: stretch; }
@media (min-width: 640px) { .buy-row { flex-direction: row; align-items: center; gap: var(--s-4); margin-top: var(--s-6); } }
.buy-row > div:first-child { text-align: left; }
.buy-row .price-big { font-size: clamp(20px, 1vw + 0.9rem, 26px); }
.buy-row .btn-buy { height: 48px; font-size: 16px; width: 100%; }
@media (min-width: 640px) { .buy-row .btn-buy { height: 56px; font-size: 18px; width: auto; flex: 1; } }
.other-shops { font-size: 12px; margin-top: 10px; }
.other-shops a { display: inline-block; margin-right: 10px; margin-bottom: 4px; white-space: nowrap; }

/* Article body: tighter lead paragraphs on mobil + bättre radhöjd */
.article-body h2 { font-size: clamp(22px, 2vw + 0.8rem, 32px); line-height: 1.2; margin: var(--s-8) 0 var(--s-3); }
.article-body h3 { font-size: clamp(18px, 1vw + 0.9rem, 24px); line-height: 1.3; margin: var(--s-6) 0 var(--s-3); }
.article-body h4 { font-size: clamp(16px, 0.5vw + 0.85rem, 20px); margin: var(--s-4) 0 var(--s-2); }
.article-body p { font-size: clamp(15px, 0.5vw + 0.85rem, 17px); line-height: 1.65; margin-bottom: var(--s-4); }
@media (min-width: 640px) { .article-body p { margin-bottom: var(--s-6); } }

/* FAQ på mobil: tightare */
.faq-item summary { padding: 14px 16px; font-size: 14px; gap: 12px; }
@media (min-width: 640px) { .faq-item summary { padding: var(--s-4) var(--s-6); font-size: 16px; } }
.faq-item .answer { padding: 14px 16px; font-size: 14px; }
@media (min-width: 640px) { .faq-item .answer { padding: var(--s-4) var(--s-6); font-size: 15px; } }

/* AI-disclosure-box */
.ai-disclosure { padding: var(--s-3) var(--s-4); font-size: 13px; }
@media (min-width: 640px) { .ai-disclosure { padding: var(--s-4) var(--s-6); font-size: 14px; } }

/* Related-grid: bättre mobil-stack */
.related-grid { gap: 10px; margin: var(--s-6) 0; }
@media (min-width: 640px) { .related-grid { gap: var(--s-4); margin: var(--s-8) 0; } }
.related-card { padding: var(--s-3) var(--s-4); }
@media (min-width: 640px) { .related-card { padding: var(--s-4); } }
.related-card h4 { font-size: 15px; line-height: 1.35; }

/* Container padding på riktigt små skärmar */
@media (max-width: 380px) {
  .container, .article-main { padding-left: 12px; padding-right: 12px; }
  .section { padding: 32px 0; }
}

/* Horizontell overflow-skydd på hela sidan */
html, body { max-width: 100%; overflow-x: hidden; }
main, section, article { max-width: 100%; }
img, svg, iframe { max-width: 100%; height: auto; }
pre, code { white-space: pre-wrap; word-break: break-word; }

/* KRITISK FIX: grid- och flex-items har default min-width: auto som får
   dem att expandera till innehållets bredd. Detta gör att t.ex. en tabell
   med min-width: 600px pressar ut grid-cellen även på små skärmar. */
.article-main > *,
.article-main > div > *,
.top5 > *,
.bento > *,
.grid-cats > *,
.pros-cons > *,
.compare-wrap,
.product-card,
.test-card,
.related-card,
.prod-review,
.pop-item,
.byline,
.buy-row,
.review-item .r-head,
.stats-grid > *,
.footer-grid > *,
.method-split > *,
.contact-grid > * { min-width: 0; }

/* GRID- och FLEX-items default min-width-reset för ALLA children */
.article-main, .top5, .bento, .grid-cats, .pros-cons,
.method-split, .stats-grid, .footer-grid, .contact-grid,
.related-grid, .team-grid {
  min-width: 0;
}
.article-main > *, .top5 > *, .bento > *, .grid-cats > *, .pros-cons > *,
.method-split > *, .stats-grid > *, .footer-grid > *, .contact-grid > *,
.related-grid > *, .team-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* Tabell-containers: STRIKT kapa tabellens bredd vid skärmbredd */
.compare-wrap {
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.compare-table { display: table; }

/* Artikel-huvudkolumn på mobil: hård cap */
.article-main > div:first-child { max-width: 100%; overflow-x: hidden; }

/* Per-produkt-block: constrain inuti */
.prod-review { max-width: 100%; overflow-x: hidden; }
.prod-review .article-body { max-width: 100%; overflow-x: hidden; }
.prod-review-head .meta { min-width: 0; max-width: 100%; }
.specs-inline { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }

/* Reviews - constrain */
.reviews-block { max-width: 100%; overflow: hidden; }
.review-item { max-width: 100%; }
.review-item .r-body, .review-item .r-summary { max-width: 100%; overflow-wrap: anywhere; }

/* Pros/cons tight */
.pros, .cons { max-width: 100%; overflow: hidden; }
.pros ul, .cons ul { max-width: 100%; }
.pros li, .cons li { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }

/* Säkerhetsnät: kapa alla images + videos inuti artikel-body */
.article-body img, .article-body video { max-width: 100%; height: auto; }

/* Long text in all article paragraphs breaks properly */
.article-body p, .article-body li, .article-body h2, .article-body h3, .article-body h4,
.article-head h1, .article-tagline, .byline span {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

/* Mobile buy-bar items */
.mobile-buy-bar .mb-info { min-width: 0; max-width: 100%; overflow: hidden; }
.mobile-buy-bar .mb-name, .mobile-buy-bar .mb-price { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buy-row price + button på mobil */
.buy-row { max-width: 100%; }
.buy-row > * { min-width: 0; max-width: 100%; }
.buy-row .btn-buy { max-width: 100%; }

/* other-shops får inte pusha ut */
.other-shops { max-width: 100%; overflow: hidden; }
.other-shops a { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* Mobile buy-bar: säker layout på små skärmar */
@media (max-width: 420px) {
  .mobile-buy-bar { padding: 8px 10px; gap: 8px; }
  .mobile-buy-bar .mb-thumb { width: 36px; height: 36px; font-size: 18px; }
  .mobile-buy-bar .mb-name { font-size: 11px; }
  .mobile-buy-bar .mb-price { font-size: 15px; }
  .mobile-buy-bar .btn-buy-sm { padding: 8px 12px; font-size: 13px; }
}

/* Ingress-wrap på artikel */
.article-tagline { margin: var(--s-6) 0; }
@media (max-width: 639px) {
  .article-tagline { margin: var(--s-4) 0; font-size: 16px; line-height: 1.5; }
}

/* ============================================================================
   PRODUKTBILDER (riktiga bilder från Testblick)
   ============================================================================ */

.prod-img.has-image { background: #ffffff; padding: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 0; }
.prod-img.has-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-card .prod-img.has-image { aspect-ratio: 1/1; border-radius: var(--r-md); border: 1px solid var(--gray-100); }
@media (max-width: 519px) {
  .product-card .prod-img.has-image { aspect-ratio: 4/3; max-height: 200px; }
}

.prod-review-head .img-col { display: flex; justify-content: center; }
.prod-review-head .img-col .prod-img { width: 100%; max-width: 200px; aspect-ratio: 1/1; background: var(--gray-50); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--brand-300); }
.prod-review-head .img-col .prod-img.has-image { background: #ffffff; padding: 16px; border: 1px solid var(--gray-200); font-size: 0; }
.prod-review-head .img-col .prod-img.has-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

.test-card .img-wrap .img-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-family: var(--font-display); font-weight: 700;
  color: var(--brand-500); font-size: 64px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--gray-100) 100%);
}
.test-card .img-wrap.has-image { aspect-ratio: 3/2; background: #ffffff; padding: 16px; display: flex; align-items: center; justify-content: center; }
.test-card .img-wrap.has-image img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 300ms; }
.test-card:hover .img-wrap.has-image img { transform: scale(1.04); }

.mobile-buy-bar .mb-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mobile-buy-bar .mb-thumb { background: #ffffff; padding: 4px; border: 1px solid var(--gray-200); }
.side-buy .prod-mini { background: #ffffff; padding: 12px; border: 1px solid var(--gray-200); }
.side-buy .prod-mini img { max-width: 100%; max-height: 100%; object-fit: contain; }
.side-buy .side-price { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--brand-900); margin: 8px 0 12px; }

.pr-widget-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Score / pris-badge på top-5-kort */
.product-card .price-row { align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-card .price-row .score-badge {
  background: var(--brand-700);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.rating-small { font-size: 13px; }
.rating-small .stars { font-size: 14px; }
.rating-small .value { font-size: 14px; }

/* Pitch (one-liner under produktnamn) */
.prod-review-head .meta .pitch {
  font-style: italic; color: var(--gray-700); font-size: clamp(14px, 0.5vw + 0.8rem, 15px);
  margin: var(--s-2) 0; line-height: 1.5; max-width: 100%;
}
.prod-review-head .meta .score-row { margin: var(--s-2) 0; }
.prod-review-head .meta .score-row .score-text { font-size: 13px; color: var(--gray-500); margin-left: 8px; font-family: var(--font-body); font-weight: 500; }

/* ============================================================================
   PRICERUNNER-WIDGET
   ============================================================================ */

.pr-widget {
  background: var(--white);
  border: 2px solid var(--accent-400);
  border-radius: var(--r-xl);
  padding: var(--s-4);
  margin: var(--s-6) 0;
  overflow: hidden;
  max-width: 100%;
}
@media (min-width: 640px) { .pr-widget { padding: var(--s-6); } }

.pr-widget-header {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--gray-200);
}
@media (min-width: 640px) { .pr-widget-header { grid-template-columns: 64px 1fr auto; gap: 16px; } }

.pr-widget-thumb {
  width: 48px; height: 48px;
  background: var(--gray-50);
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
@media (min-width: 640px) { .pr-widget-thumb { width: 64px; height: 64px; } }
.pr-widget-thumb .emoji { font-size: 28px; }

.pr-widget-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-600);
}
.pr-widget-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(15px, 0.8vw + 0.8rem, 18px);
  color: var(--brand-900); line-height: 1.3;
  overflow-wrap: anywhere;
}

.pr-widget-best {
  grid-column: 1 / -1;
  text-align: right;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-200);
}
@media (min-width: 640px) {
  .pr-widget-best { grid-column: auto; border-top: none; padding-top: 0; }
}
.pr-widget-best-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.pr-widget-best-price { font-family: var(--font-mono); font-weight: 700; font-size: clamp(18px, 1vw + 0.8rem, 24px); color: var(--brand-900); }

.pr-stores { display: flex; flex-direction: column; gap: 8px; }
.pr-store {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: var(--r-md);
  border: 1px solid var(--gray-100);
  transition: all 150ms;
}
@media (min-width: 640px) { .pr-store { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 12px 16px; } }
.pr-store:hover { background: var(--white); border-color: var(--brand-300); }
.pr-store-logo {
  width: 40px; height: 40px;
  background: var(--brand-700);
  color: var(--white);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; letter-spacing: 0.05em;
}
@media (min-width: 640px) { .pr-store-logo { width: 48px; height: 48px; font-size: 12px; } }
.pr-store-info { min-width: 0; }
.pr-store-name { font-weight: 600; font-size: clamp(13px, 0.4vw + 0.7rem, 15px); color: var(--gray-900); }
.pr-store-price { font-family: var(--font-mono); font-weight: 700; font-size: clamp(14px, 0.5vw + 0.75rem, 16px); color: var(--brand-700); margin-top: 2px; }
.pr-store-btn {
  padding: 8px 14px;
  background: var(--accent-600);
  color: var(--brand-900);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: all 150ms;
}
@media (min-width: 640px) { .pr-store-btn { padding: 10px 18px; font-size: 14px; } }
.pr-store-btn:hover { background: var(--accent-400); text-decoration: none; box-shadow: var(--shadow-md); }

.pr-widget-footer {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-500);
}
@media (min-width: 640px) { .pr-widget-footer { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; } }
.pr-widget-footer a { color: var(--brand-500); font-weight: 600; }

/* Score-badge på pris-rad */
.product-card .price-row .from { font-size: 11px; color: var(--gray-500); }
.product-card .price-row .price { font-family: var(--font-mono); font-weight: 700; }

/* ============================================================================
   WINNER SHOWCASE — visuellt "Testvinnare"-kort mellan tabell och recensioner
   ============================================================================ */

.winner-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin: var(--s-12) 0 var(--s-8);
  padding: var(--s-6) var(--s-4);
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-900) 100%);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
@media (min-width: 768px) {
  .winner-showcase {
    grid-template-columns: 240px 1fr;
    gap: var(--s-8);
    padding: var(--s-8);
    margin: var(--s-16) 0 var(--s-12);
  }
}
@media (min-width: 1024px) {
  .winner-showcase {
    grid-template-columns: 300px 1fr;
    padding: 48px;
    gap: var(--s-12);
  }
}

/* Decorative gold glow i övre högra hörnet */
.winner-showcase::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,194,48,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.winner-showcase .ws-image {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  max-height: 280px;
}
@media (min-width: 768px) {
  .winner-showcase .ws-image { max-height: none; }
}
.winner-showcase .ws-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.winner-showcase .ws-emoji { font-size: 100px; }

.winner-showcase .ws-content {
  color: var(--white);
  position: relative;
  min-width: 0;
}
.winner-showcase .ws-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-400);
  color: var(--brand-900);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.winner-showcase .ws-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw + 0.9rem, 32px);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 var(--s-3) 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.winner-showcase .ws-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s-4);
}
.winner-showcase .ws-rating .stars {
  color: var(--accent-400);
  font-size: 20px;
  letter-spacing: 2px;
}
.winner-showcase .ws-rating .ws-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-400);
  padding: 3px 10px;
  background: rgba(255,194,48,0.12);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,194,48,0.3);
}
.winner-showcase .ws-pitch {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 0.6vw + 0.8rem, 18px);
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin: 0 0 var(--s-4) 0;
  overflow-wrap: anywhere;
}
.winner-showcase .ws-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.winner-showcase .ws-features li {
  padding-left: 26px;
  position: relative;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.winner-showcase .ws-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 18px;
  height: 18px;
  background: var(--success-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.winner-showcase .ws-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--s-2);
}
@media (min-width: 520px) {
  .winner-showcase .ws-cta-row { flex-direction: row; flex-wrap: wrap; gap: 12px; }
}
.winner-showcase .btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}
.winner-showcase .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

/* ============================================================================
   SECTION EDITORIAL — stylar "Vilken är bästa" + "Hur fungerar"-sektioner
   ============================================================================ */

.section-editorial {
  position: relative;
  margin: var(--s-12) 0;
  max-width: 100%;
}
.section-editorial:first-of-type { margin-top: var(--s-8); }

/* "Vilken är bästa" — dämpad accent, vänster-border för editorial-känsla */
.section-editorial.is-best {
  background: var(--brand-50);
  border-left: 4px solid var(--brand-500);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: var(--s-6) var(--s-5);
}
@media (min-width: 768px) {
  .section-editorial.is-best { padding: var(--s-8) var(--s-8); }
}
.section-editorial.is-best h2 {
  margin-top: 0;
  margin-bottom: var(--s-4);
  color: var(--brand-900);
  font-size: clamp(22px, 1.8vw + 0.8rem, 30px);
}
.section-editorial.is-best::before {
  content: "VÅR REKOMMENDATION";
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-500);
  margin-bottom: 10px;
}
.section-editorial.is-best p:first-of-type {
  font-family: var(--font-display);
  font-size: clamp(17px, 0.6vw + 0.9rem, 21px);
  line-height: 1.55;
  color: var(--brand-900);
  font-weight: 500;
}
.section-editorial.is-best p {
  color: var(--gray-900);
}

/* "Hur fungerar" — mer pedagogisk ton, olika accent */
.section-editorial.is-how {
  padding: var(--s-6) 0 var(--s-6) var(--s-6);
  border-left: 2px dashed var(--gray-300);
  margin-left: var(--s-3);
}
@media (min-width: 768px) {
  .section-editorial.is-how {
    padding: var(--s-8) 0 var(--s-8) var(--s-8);
    margin-left: var(--s-4);
  }
}
.section-editorial.is-how::before {
  content: "Lär dig mer";
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.section-editorial.is-how h2 {
  margin-top: 0;
  margin-bottom: var(--s-4);
}

/* ============================================================================
   INTERLINKS (interna länkar till andra test-artiklar)
   ============================================================================ */

a.interlink {
  color: var(--brand-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--brand-300);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a.interlink:hover {
  color: var(--brand-500);
  text-decoration-color: var(--brand-500);
  text-decoration-thickness: 2px;
}

/* Inline "Läs även"-paragraf */
.related-inline {
  padding: var(--s-4) var(--s-5);
  background: var(--brand-50);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15px;
  color: var(--gray-900);
  line-height: 1.6;
  margin: var(--s-6) 0;
  overflow-wrap: anywhere;
}
.related-inline strong { color: var(--brand-700); margin-right: 4px; }
.related-inline .interlink { font-weight: 600; }

/* ============================================================================
   AUTHORITY BLOCK (myndighetslänkar i Källor-sektionen för E-E-A-T)
   ============================================================================ */

.authority-block {
  margin-top: var(--s-6);
  padding: var(--s-5) var(--s-5);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  max-width: 100%;
}
@media (min-width: 768px) { .authority-block { padding: var(--s-6); } }

.authority-block h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 0.8vw + 0.85rem, 20px);
  color: var(--brand-900);
  margin: 0 0 var(--s-3) 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.authority-block h3::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: currentColor;
  color: var(--brand-500);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 22h18'/><path d='M5 22V11'/><path d='M19 22V11'/><path d='M12 4L2 9h20L12 4z'/><path d='M9 22v-9'/><path d='M15 22v-9'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 22h18'/><path d='M5 22V11'/><path d='M19 22V11'/><path d='M12 4L2 9h20L12 4z'/><path d='M9 22v-9'/><path d='M15 22v-9'/></svg>") center/contain no-repeat;
  flex-shrink: 0;
}

.authority-block p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.55;
  margin-bottom: var(--s-3);
}

.authority-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.authority-list li { margin: 0; }
.authority-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--brand-300);
  border-radius: var(--r-full);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms;
}
.authority-list a::after {
  content: "↗";
  font-size: 11px;
  opacity: 0.6;
}
.authority-list a:hover {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-900);
  text-decoration: none;
}

/* ============================================================================
   MINI-STORES widget (inline multi-butik i produktkort + sidebar)
   ============================================================================ */

.mini-stores {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--gray-100);
}
.mini-stores-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.mini-store {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-md);
  color: var(--gray-900);
  transition: all 150ms;
  min-width: 0;
}
.mini-store:hover { background: var(--brand-50); border-color: var(--brand-300); text-decoration: none; }

.mini-store .ms-logo {
  width: 32px; height: 32px;
  background: var(--brand-700);
  color: var(--white);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 10px; letter-spacing: 0.04em;
}
.mini-store .ms-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow: hidden; }
.mini-store .ms-name { font-size: 13px; font-weight: 600; color: var(--gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-store .ms-price { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--brand-700); }
.mini-store .ms-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-600);
  padding: 4px 8px;
  white-space: nowrap;
  background: var(--accent-100);
  border-radius: var(--r-sm);
}
.mini-store:hover .ms-btn { background: var(--accent-400); color: var(--brand-900); }

/* Side-buy sidebar mini-stores: tajtare */
.side-buy .mini-stores { margin-top: var(--s-2); }
.side-buy .mini-store { padding: 6px 8px; }
.side-buy .mini-store .ms-logo { width: 28px; height: 28px; font-size: 9px; }
.side-buy .mini-store .ms-name { font-size: 12px; }
.side-buy .mini-store .ms-price { font-size: 12px; }
.side-buy .mini-store .ms-btn { font-size: 11px; padding: 3px 6px; }

/* Card-score-row (rating + score-badge på samma rad ovanför features) */
.card-score-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* ============================================================================
   STORES BOTTOM-SHEET (mobil sticky-bar tap)
   ============================================================================ */

.stores-sheet {
  position: fixed; inset: 0; z-index: 55;
  pointer-events: none; visibility: hidden;
}
.stores-sheet.is-open { pointer-events: auto; visibility: visible; }
.stores-sheet .backdrop {
  position: absolute; inset: 0;
  background: rgba(6,43,32,0.45);
  opacity: 0;
  transition: opacity 240ms ease;
}
.stores-sheet.is-open .backdrop { opacity: 1; }
.stores-sheet .sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: var(--s-4) var(--s-4) var(--s-6);
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}
.stores-sheet.is-open .sheet { transform: translateY(0); }
.stores-sheet .sheet h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--brand-900);
  margin: var(--s-2) 0 var(--s-4);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.stores-sheet .sheet .grabber {
  width: 44px; height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  margin: 0 auto var(--s-3);
}
.stores-sheet .sheet-footer {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--gray-100);
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

.sheet-store {
  display: grid;
  grid-template-columns: 44px 1fr auto 24px;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  color: var(--gray-900);
}
.sheet-store:hover, .sheet-store:active { background: var(--brand-50); border-color: var(--brand-300); text-decoration: none; }
.sheet-store-logo {
  width: 44px; height: 44px;
  background: var(--brand-700);
  color: var(--white);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; letter-spacing: 0.04em;
}
.sheet-store-info { min-width: 0; overflow: hidden; }
.sheet-store-name { font-weight: 700; font-size: 15px; color: var(--gray-900); }
.sheet-store-eta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.sheet-store-price { font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--brand-700); }
.sheet-store-btn {
  width: 24px; height: 24px;
  background: var(--accent-400);
  color: var(--brand-900);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Mobile buy-bar som button (tap opens sheet) */
button.mobile-buy-bar {
  background: rgba(255,255,255,0.96);
  border: none;
  border-top: 1px solid var(--gray-200);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  color: inherit;
}
button.mobile-buy-bar:hover { background: #fff; }

/* ============================================================================
   BEST-IN-TEST OL LIST (rich snippets + quick-scan)
   ============================================================================ */

.best-in-test-wrapper {
  margin: var(--s-6) 0 var(--s-4);
  max-width: 100%;
}
@media (min-width: 768px) { .best-in-test-wrapper { margin: var(--s-8) 0 var(--s-6); } }

.best-in-test {
  background: var(--brand-50);
  border: 1px solid var(--brand-300);
  border-left: 4px solid var(--brand-700);
  border-radius: var(--r-lg);
  padding: 20px 16px 20px 20px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
@media (min-width: 640px) { .best-in-test { padding: var(--s-6); } }
@media (min-width: 1024px) { .best-in-test { padding: 28px 32px; } }

.best-in-test h2 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1vw + 0.8rem, 22px);
  color: var(--brand-900);
  margin: 0 0 var(--s-4) 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.best-in-test ol {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: bit-counter;
  list-style: none;
}
@media (min-width: 640px) { .best-in-test ol { gap: 12px; } }

.best-in-test li {
  counter-increment: bit-counter;
  position: relative;
  padding-left: 32px;
  font-size: clamp(13px, 0.4vw + 0.7rem, 15px);
  line-height: 1.55;
  color: var(--gray-900);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-height: 24px;
}
@media (min-width: 640px) { .best-in-test li { padding-left: 36px; } }

.best-in-test li::before {
  content: counter(bit-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background: var(--brand-700);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .best-in-test li::before { width: 24px; height: 24px; font-size: 12px; }
}
.best-in-test li:first-child::before {
  background: var(--accent-400);
  color: var(--brand-900);
}

.best-in-test li strong {
  color: var(--brand-700);
  font-weight: 700;
  margin-right: 4px;
  display: inline-block;
}
.best-in-test li:first-child strong { color: var(--brand-900); }
.best-in-test li a {
  color: var(--gray-900);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand-300);
}
.best-in-test li a:hover {
  color: var(--brand-700);
  text-decoration-color: var(--brand-500);
}

/* Liten betyg-del efter länken — dämpad, mindre */
.best-in-test li {
  color: var(--gray-700);
}
.best-in-test li strong, .best-in-test li a {
  color: var(--gray-900);
}

/* ============ COOKIE CONSENT ============ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 20px 24px;
  z-index: 100;
  display: none;
  animation: cookieSlideUp 0.3s ease-out;
}
.cookie-banner.is-visible { display: block; }
@keyframes cookieSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text strong { display: block; font-size: 15px; color: var(--brand-900); margin-bottom: 4px; }
.cookie-text p { font-size: 13px; color: var(--gray-700); margin: 0; line-height: 1.5; }
.cookie-text a { color: var(--brand-500); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .cookie-banner { bottom: 12px; left: 12px; right: 12px; padding: 16px; border-radius: var(--r-xl); }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; min-width: 0; padding: 10px 12px; font-size: 13px; }
}

.cookie-settings {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-settings[hidden] { display: none; }
.cookie-settings-backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 12, 13, 0.5);
  opacity: 0; transition: opacity 0.2s;
}
.cookie-settings.is-open .cookie-settings-backdrop { opacity: 1; }
.cookie-settings-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--r-2xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
}
.cookie-settings.is-open .cookie-settings-panel { transform: scale(1); opacity: 1; }
.cs-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
}
.cs-head h2 { margin: 0; font-size: 20px; }
.cs-head .close-btn {
  background: transparent; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: var(--r-full);
  font-size: 16px; color: var(--gray-700);
}
.cs-head .close-btn:hover { background: var(--gray-100); }
.cs-body { padding: 20px 24px; }
.cs-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cs-row:last-of-type { border-bottom: none; }
.cs-row strong { display: block; font-size: 14px; color: var(--gray-900); margin-bottom: 4px; }
.cs-row p { font-size: 13px; color: var(--gray-700); margin: 0; line-height: 1.45; }
.cs-row input[type="checkbox"] {
  flex-shrink: 0; width: 20px; height: 20px; cursor: pointer;
  accent-color: var(--brand-500);
}
.cs-foot {
  padding: 16px 24px; border-top: 1px solid var(--gray-100);
  text-align: right;
}
