@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

/* ══════════════════════════════════
   DESIGN TOKENS — Nordic Precision Lab
   ══════════════════════════════════ */
:root {
  --kd-navy: #0C1222;
  --kd-navy-light: #141C30;
  --kd-navy-mid: #1B2640;
  --kd-slate: #2A3652;
  --kd-cyan: #00D4FF;
  --kd-cyan-dim: rgba(0, 212, 255, 0.12);
  --kd-cyan-glow: rgba(0, 212, 255, 0.25);
  --kd-orange: #FF6B35;
  --kd-green: #34D399;
  --kd-surface: #FAFBFD;
  --kd-white: #FFFFFF;
  --kd-text: #1A1F2E;
  --kd-text-secondary: #5A6478;
  --kd-border: rgba(26, 31, 46, 0.08);
  --kd-border-strong: rgba(26, 31, 46, 0.14);
  --kd-shadow-sm: 0 1px 3px rgba(12, 18, 34, 0.04), 0 1px 2px rgba(12, 18, 34, 0.06);
  --kd-shadow-md: 0 4px 16px rgba(12, 18, 34, 0.06), 0 2px 4px rgba(12, 18, 34, 0.04);
  --kd-shadow-lg: 0 12px 40px rgba(12, 18, 34, 0.08), 0 4px 12px rgba(12, 18, 34, 0.04);
  --kd-shadow-card-hover: 0 16px 48px rgba(12, 18, 34, 0.1), 0 6px 16px rgba(12, 18, 34, 0.06);
  --kd-radius: 10px;
  --kd-radius-sm: 6px;
  --kd-radius-lg: 14px;
  --kd-font-display: 'Outfit', system-ui, sans-serif;
  --kd-font-body: 'Source Serif 4', 'Georgia', serif;
  --kd-font-ui: 'Outfit', system-ui, sans-serif;
  --kd-transition: cubic-bezier(0.22, 1, 0.36, 1);
  /* Legacy aliases for backward compat with generated content */
  --brand-primary: #00D4FF;
  --brand-secondary: #0C1222;
  --brand-accent: #FF6B35;
  --bg: #FAFBFD;
  --text: #1A1F2E;
  --muted: #5A6478;
  --card: #FFFFFF;
}

/* ── ACCENT BAR ── */
.kd-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--kd-cyan) 0%, var(--kd-orange) 50%, var(--kd-cyan) 100%);
  background-size: 200% 100%;
  animation: kd-accent-sweep 8s ease-in-out infinite alternate;
}
@keyframes kd-accent-sweep {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ══════════════════════════════════
   GLOBAL TYPOGRAPHY
   ══════════════════════════════════ */
body {
  background: var(--kd-surface);
  color: var(--kd-text);
  font-family: var(--kd-font-body);
  font-size: 1.05rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--kd-font-display);
  color: var(--kd-text);
  line-height: 1.25;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; font-size: 2.1rem; }
h2 { font-weight: 700; font-size: 1.55rem; border-bottom: 2px solid var(--kd-border); padding-bottom: 0.4em; margin-top: 2.2rem; }
h3 { font-weight: 600; font-size: 1.25rem; color: var(--kd-slate); margin-top: 1.8rem; }
h4 { font-weight: 600; font-size: 1.1rem; }

@media (min-width: 992px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
}

p { margin-bottom: 1.15em; }

a {
  color: var(--kd-navy);
  text-decoration: underline;
  text-decoration-color: var(--kd-cyan);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color 0.25s var(--kd-transition), text-decoration-color 0.25s var(--kd-transition);
}
a:hover {
  color: var(--kd-navy);
  text-decoration-color: var(--kd-orange);
}

.container { max-width: 1200px; }

/* ══════════════════════════════════
   NAVBAR — Dark, substantial
   ══════════════════════════════════ */
.navbar {
  background: var(--kd-navy) !important;
  border-bottom: 1px solid var(--kd-navy-mid);
  padding: 0.6rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.navbar .navbar-brand {
  padding: 0.2rem 0;
}
.navbar .navbar-brand img {
  height: 34px;
  width: auto;
  filter: brightness(1.1);
}
.navbar .navbar-brand span {
  color: #fff !important;
}
.navbar .nav-link {
  font-family: var(--kd-font-ui);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72) !important;
  padding: 0.55rem 0.85rem !important;
  border-radius: var(--kd-radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  position: relative;
}
.navbar .nav-link:hover {
  color: #fff !important;
  background: var(--kd-navy-mid);
  text-decoration: none;
}
.navbar .nav-link.active {
  color: var(--kd-cyan) !important;
  background: var(--kd-navy-light);
}
.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--kd-cyan);
  border-radius: 2px;
}

/* Hamburger icon override for dark bg */
.navbar-toggler {
  border-color: var(--kd-navy-mid) !important;
  padding: 0.35rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile nav dropdown */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--kd-navy-light);
    border-radius: 0 0 var(--kd-radius) var(--kd-radius);
    padding: 0.5rem;
    margin-top: 0.4rem;
  }
  .navbar .nav-link {
    padding: 0.65rem 1rem !important;
  }
}

/* ══════════════════════════════════
   CARDS — Tactile, elevated
   ══════════════════════════════════ */
.card {
  background: var(--kd-white);
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius-lg);
  box-shadow: var(--kd-shadow-sm);
  transition: box-shadow 0.35s var(--kd-transition), transform 0.35s var(--kd-transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--kd-shadow-card-hover);
  transform: translateY(-2px);
}
.card .card-body { padding: 1.4rem; }
.card .card-title {
  font-family: var(--kd-font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.card .card-text {
  color: var(--kd-text-secondary);
  font-size: 0.95rem;
}
.card-img-top {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ══════════════════════════════════
   TABLES — Clean scannable rows
   ══════════════════════════════════ */
.table {
  font-family: var(--kd-font-ui);
  font-size: 0.92rem;
  border-color: var(--kd-border);
}
.table thead th {
  background: var(--kd-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  padding: 0.75rem 1rem;
}
.table thead th:first-child { border-radius: var(--kd-radius-sm) 0 0 0; }
.table thead th:last-child  { border-radius: 0 var(--kd-radius-sm) 0 0; }
.table tbody td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--kd-border);
}
.table tbody tr:hover td {
  background: rgba(0, 212, 255, 0.03);
}
.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(26, 31, 46, 0.015);
}

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */
.btn {
  font-family: var(--kd-font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-radius: var(--kd-radius);
  padding: 0.55rem 1.3rem;
  transition: all 0.25s var(--kd-transition);
}
.btn-primary {
  background: var(--kd-navy);
  border-color: var(--kd-navy);
  color: #fff;
  box-shadow: var(--kd-shadow-sm);
}
.btn-primary:hover {
  background: var(--kd-navy-light);
  border-color: var(--kd-navy-light);
  box-shadow: var(--kd-shadow-md);
  transform: translateY(-1px);
}
.btn-outline-primary {
  color: var(--kd-navy);
  border-color: var(--kd-navy);
}
.btn-outline-primary:hover {
  background: var(--kd-navy);
  color: #fff;
}
.btn-outline-secondary {
  color: var(--kd-text-secondary);
  border-color: var(--kd-border-strong);
}

/* ══════════════════════════════════
   BADGES
   ══════════════════════════════════ */
.badge {
  font-family: var(--kd-font-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.35em 0.75em;
}
.badge-affiliate, .badge.bg-primary {
  background: var(--kd-navy) !important;
  color: var(--kd-cyan);
}

/* ══════════════════════════════════
   BREADCRUMBS — Refined strip
   ══════════════════════════════════ */
/* Outer breadcrumb bar (above article card) */
article.card > nav[aria-label="Brödsmulor"],
article.card > div > nav[aria-label="Brödsmulor"],
main.container > nav[aria-label="Brödsmulor"] {
  background: var(--kd-navy);
  margin: 0 0 0;
  padding: 0;
  border-radius: var(--kd-radius-lg) var(--kd-radius-lg) 0 0;
}
article.card > nav .breadcrumb,
article.card > div .breadcrumb {
  background: var(--kd-navy);
  padding: 0.85rem 2rem !important;
  margin: 0;
  border-radius: var(--kd-radius-lg) var(--kd-radius-lg) 0 0;
  border-bottom: none;
}
article.card > nav .breadcrumb-item a,
article.card > div .breadcrumb-item a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
article.card > nav .breadcrumb-item a:hover,
article.card > div .breadcrumb-item a:hover {
  color: var(--kd-cyan);
  text-decoration: none;
}
article.card > nav .breadcrumb-item.active,
article.card > div .breadcrumb-item.active {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
article.card > nav .breadcrumb-item + .breadcrumb-item::before,
article.card > div .breadcrumb-item + .breadcrumb-item::before {
  content: '\203A';
  color: rgba(255,255,255,0.3);
}
article.card > nav .breadcrumb-item i,
article.card > div .breadcrumb-item i {
  opacity: 0.7;
}

/* Mobile breadcrumb toggle */
article.card > .d-sm-none {
  background: var(--kd-navy);
  border-radius: var(--kd-radius-lg) var(--kd-radius-lg) 0 0;
  padding: 0.5rem 1rem !important;
  color: rgba(255,255,255,0.8);
}
article.card > .d-sm-none .text-truncate { color: rgba(255,255,255,0.85); }
article.card > .d-sm-none strong { font-weight: 600; }
article.card > .d-sm-none .btn-outline-secondary {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
}
article.card > .d-sm-none .btn-outline-secondary:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
article.card > .d-sm-none .collapse .breadcrumb {
  background: transparent;
  padding: 0.4rem 0;
}
article.card > .d-sm-none .collapse .breadcrumb-item a { color: rgba(255,255,255,0.5); }
article.card > .d-sm-none .collapse .breadcrumb-item a:hover { color: var(--kd-cyan); }
article.card > .d-sm-none .collapse .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.25); }

/* Inner breadcrumb (inside card-body) — subtle, secondary */
.breadcrumb {
  font-family: var(--kd-font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  background: transparent;
  padding: 0.5rem 0 0.3rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--kd-border);
}
.breadcrumb-item a {
  color: var(--kd-text-secondary);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: var(--kd-text);
  text-decoration: underline;
  text-decoration-color: var(--kd-cyan);
}
.breadcrumb-item.active {
  color: var(--kd-text);
  font-weight: 600;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '\203A';
  color: var(--kd-text-secondary);
  opacity: 0.5;
}

/* ══════════════════════════════════
   ALERTS
   ══════════════════════════════════ */
.alert {
  font-family: var(--kd-font-ui);
  font-size: 0.92rem;
  border-radius: var(--kd-radius);
  border-left: 4px solid;
  box-shadow: var(--kd-shadow-sm);
}
.alert-warning {
  background: #FFF9EF;
  border-left-color: var(--kd-orange);
  color: #7A4A0A;
}
.alert-success {
  background: #F0FDF9;
  border-left-color: var(--kd-green);
  color: #0A5E3F;
}
.alert-danger {
  background: #FEF2F2;
  border-left-color: #EF4444;
  color: #7A1A1A;
}
.alert-info {
  background: #F0FAFF;
  border-left-color: var(--kd-cyan);
  color: var(--kd-navy);
}

/* ══════════════════════════════════
   AFFILIATE BOX
   ══════════════════════════════════ */
.affiliate-box {
  background: linear-gradient(135deg, var(--kd-navy) 0%, var(--kd-navy-mid) 100%);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--kd-radius-lg);
  padding: 1.6rem 2rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.affiliate-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--kd-cyan), var(--kd-orange));
}
.affiliate-box a {
  color: var(--kd-cyan);
  text-decoration-color: rgba(0, 212, 255, 0.3);
}
.affiliate-box a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* ══════════════════════════════════
   LIST GROUPS
   ══════════════════════════════════ */
.list-group-item {
  font-family: var(--kd-font-ui);
  border-color: var(--kd-border);
  padding: 0.85rem 1.1rem;
  transition: background 0.15s ease;
}
.list-group-item:hover {
  background: rgba(0, 212, 255, 0.025);
}

/* ══════════════════════════════════
   IMAGES
   ══════════════════════════════════ */
img { max-width: 100%; height: auto; }
main img:not(.navbar-brand img) {
  border-radius: var(--kd-radius);
}
figure {
  margin: 1.8rem 0;
}
figcaption {
  font-family: var(--kd-font-ui);
  font-size: 0.82rem;
  color: var(--kd-text-secondary);
  margin-top: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--kd-cyan);
}

/* ══════════════════════════════════
   TOC / SIDE NAVIGATION
   ══════════════════════════════════ */
.toc, nav[aria-label*="Innehåll"] {
  background: var(--kd-white);
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--kd-shadow-sm);
}
.toc a {
  text-decoration: none;
  color: var(--kd-text-secondary);
  font-family: var(--kd-font-ui);
  font-size: 0.88rem;
}
.toc a:hover {
  color: var(--kd-text);
}

/* ══════════════════════════════════
   FOOTER — Trust section
   ══════════════════════════════════ */
.kd-footer {
  background: var(--kd-navy);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4rem;
  position: relative;
}
.kd-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kd-cyan), var(--kd-orange), var(--kd-cyan));
}
.kd-footer .container {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}
.kd-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  text-decoration-color: transparent;
  transition: color 0.25s var(--kd-transition);
}
.kd-footer a:hover {
  color: var(--kd-cyan);
  text-decoration: none;
}

.kd-footer-main {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.kd-footer-brand {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.kd-footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(1.2) saturate(0.9);
  margin-bottom: 1rem;
  display: inline-block;
}
.kd-footer-brand p {
  font-family: var(--kd-font-ui);
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* Footer nav links */
.footer-nav-links-wrap {
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-nav-links-wrap nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.footer-nav-link {
  position: relative;
  display: inline-block;
  padding: 0.45rem 1.05rem;
  font-family: var(--kd-font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
  transition: color 0.3s var(--kd-transition);
}
.footer-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 1.05rem;
  right: 1.05rem;
  height: 1.5px;
  background: var(--kd-cyan);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--kd-transition);
}
.footer-nav-link:hover {
  color: var(--kd-cyan) !important;
}
.footer-nav-link:hover::after {
  transform: scaleX(1);
}
.footer-nav-link + .footer-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.kd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.3rem;
  font-family: var(--kd-font-ui);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}
.kd-back-to-top {
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}
.kd-back-to-top:hover {
  color: var(--kd-cyan) !important;
}
.kd-back-to-top i {
  font-size: 0.7rem;
  vertical-align: 1px;
}

/* ══════════════════════════════════
   UTILITY & MISC
   ══════════════════════════════════ */
.text-muted { color: var(--kd-text-secondary) !important; }

hr {
  border-color: var(--kd-border);
  opacity: 1;
}

blockquote, .blockquote {
  border-left: 3px solid var(--kd-cyan);
  padding: 0.8rem 1.2rem;
  background: rgba(0, 212, 255, 0.03);
  border-radius: 0 var(--kd-radius-sm) var(--kd-radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--kd-text-secondary);
}

code {
  background: rgba(12, 18, 34, 0.06);
  color: var(--kd-navy);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}
pre code {
  background: var(--kd-navy);
  color: #E2E8F0;
  display: block;
  padding: 1.2rem;
  border-radius: var(--kd-radius);
  overflow-x: auto;
}

/* Forms */
.form-control, .form-select {
  font-family: var(--kd-font-ui);
  border-color: var(--kd-border-strong);
  border-radius: var(--kd-radius);
  padding: 0.55rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--kd-cyan);
  box-shadow: 0 0 0 3px var(--kd-cyan-dim);
}

/* Accordion */
.accordion-button {
  font-family: var(--kd-font-display);
  font-weight: 600;
  font-size: 1rem;
}
.accordion-button:not(.collapsed) {
  background: rgba(0, 212, 255, 0.04);
  color: var(--kd-text);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 3px var(--kd-cyan-dim);
}

/* Pagination */
.page-link {
  font-family: var(--kd-font-ui);
  font-weight: 500;
  color: var(--kd-text);
  border-color: var(--kd-border);
  border-radius: var(--kd-radius-sm) !important;
}
.page-item.active .page-link {
  background: var(--kd-navy);
  border-color: var(--kd-navy);
}

/* Accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--kd-cyan-glow);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Admin link bar */
.admin-edit-link {
  font-family: var(--kd-font-ui);
  font-size: 0.85rem;
}

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  .kd-footer .container { padding-top: 2rem; }
  .kd-footer-brand { text-align: center; }
  .footer-nav-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
  .affiliate-box { padding: 1.2rem 1.4rem; }
  .card .card-body { padding: 1.1rem; }
  .table { font-size: 0.85rem; }
  .table thead th, .table tbody td { padding: 0.6rem 0.7rem; }
}

/* ══════════════════════════════════
   ARTICLE — Precision Editorial
   ══════════════════════════════════ */

/* ── Outer card: invisible wrapper, white content plane ── */
article.card {
  border: none;
  border-radius: var(--kd-radius-lg);
  box-shadow: 0 1px 4px rgba(12, 18, 34, 0.03);
  overflow: visible;
}
article.card > .card-body {
  
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-family: var(--kd-font-body);
  font-size: 1.08rem;
  line-height: 1.78;
}
@media (min-width: 768px) {
  article.card > .card-body { padding: 2.5rem 2.5rem 3.5rem; }
}
/* Allow product grids and tables to break out of the reading width */


/* ── Article byline ── */
.article-byline {
  font-family: var(--kd-font-ui);
  font-size: 0.82rem !important;
  color: var(--kd-text-secondary);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--kd-border);
  margin-bottom: 1.5rem !important;
  letter-spacing: 0.01em;
}
.article-byline a {
  font-weight: 500;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}
.article-byline a:hover { color: var(--kd-text) !important; }

/* ── Hero image ── */
figure.hero-image {
  position: relative;
  margin: 0 -1.5rem 2rem !important;
  border-radius: var(--kd-radius-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  figure.hero-image { margin: 0 -2.5rem 2.5rem !important; }
}
figure.hero-image img {
  width: 100% !important;
  height: auto;
  display: block;
  border-radius: 0 !important;
}
figure.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(12, 18, 34, 0.12), transparent);
  pointer-events: none;
}

/* ── TLDR / Snabba svaret — dark statement box ── */
aside.tldr-box {
  background: linear-gradient(135deg, #0C1222 0%, #1B2640 60%, #141C30 100%) !important;
  color: #F5F8FC !important;
  border: none !important;
  border-radius: var(--kd-radius-lg) !important;
  padding: 1.75rem 2rem 1.55rem !important;
  margin: 1rem 0 2.2rem !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(12, 18, 34, 0.18), 0 6px 14px rgba(12, 18, 34, 0.12);
}
aside.tldr-box::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(0, 212, 255, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(255, 107, 53, 0.1) 0%, transparent 42%);
  pointer-events: none;
}
aside.tldr-box::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--kd-cyan) 20%, var(--kd-cyan) 80%, transparent);
}
aside.tldr-box > * { position: relative; z-index: 1; }
aside.tldr-box .text-uppercase {
  font-family: var(--kd-font-display);
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--kd-cyan) !important;
  opacity: 1 !important;
  margin-bottom: 0.7rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
aside.tldr-box .text-uppercase .bi { color: var(--kd-cyan); font-size: 1rem; }
aside.tldr-box p {
  font-family: var(--kd-font-body);
  font-size: 1.05rem;
  line-height: 1.72;
  color: #F5F8FC;
  margin-bottom: 0.85rem;
}
aside.tldr-box p:last-child { margin-bottom: 0; }
aside.tldr-box a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--kd-cyan) !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
aside.tldr-box a:hover { text-decoration-color: var(--kd-orange) !important; }
aside.tldr-box strong { color: #fff; font-weight: 700; }
aside.tldr-box .text-body-secondary,
aside.tldr-box .fst-italic {
  color: rgba(245, 248, 252, 0.55) !important;
  font-size: 0.85rem;
  border-top: 1px solid rgba(245, 248, 252, 0.08);
  padding-top: 0.7rem;
  margin-top: 0.4rem;
}
aside.tldr-box .text-info-emphasis { color: var(--kd-cyan) !important; }

/* ── List bullet-fix: bort överflödig radbrytning ── */
article.card ul li,
article.card ol li { margin-bottom: 0.3rem; }
article.card ul li:empty,
article.card ol li:empty { display: none; }
article.card ul.list-group,
article.card ol.list-group { padding-left: 0; }


/* ── Table of Contents ── */
nav#toc {
  border: 1px solid var(--kd-border) !important;
  border-radius: var(--kd-radius) !important;
  overflow: hidden;
  box-shadow: none !important;
  margin-bottom: 2.5rem !important;
}
nav#toc .card-header {
  background: var(--kd-navy);
  color: #fff;
  font-family: var(--kd-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border-bottom: 2px solid var(--kd-cyan);
}
nav#toc .list-group-item {
  font-family: var(--kd-font-ui);
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-color: var(--kd-border);
  transition: background 0.2s ease, padding-left 0.25s var(--kd-transition);
}
nav#toc .list-group-item a {
  text-decoration: none;
  color: var(--kd-text-secondary);
  display: block;
  transition: color 0.2s ease;
}
nav#toc .list-group-item:hover {
  background: rgba(0, 212, 255, 0.04);
  padding-left: 1.5rem;
}
nav#toc .list-group-item:hover a { color: var(--kd-text); }

/* ── Product cards ── */
article.card .card .card-body {
  font-family: var(--kd-font-ui);
}
article.card .card .badge.text-bg-dark {
  background: var(--kd-navy) !important;
  font-family: var(--kd-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4em 0.8em;
  border-radius: var(--kd-radius-sm);
}
article.card .card h3 a {
  color: var(--kd-text);
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  transition: color 0.2s ease;
}
article.card .card h3 a:hover { color: var(--kd-cyan); }

/* Star ratings */
.bi-star-fill.text-warning,
.bi-star-half.text-warning {
  color: #E8A817 !important;
  font-size: 1.05em;
  filter: drop-shadow(0 1px 2px rgba(232, 168, 23, 0.25));
}

/* ── Pros & Cons ── */
.pros-cons {
  font-family: var(--kd-font-ui);
  font-size: 0.88rem;
  display: grid;
  gap: 0.75rem;
}
.pros-cons .pros,
.pros-cons .cons {
  padding: 0.75rem 1rem;
  border-radius: var(--kd-radius-sm);
  position: relative;
}
.pros-cons .pros {
  background: rgba(52, 211, 153, 0.06);
  border-left: 3px solid var(--kd-green);
}
.pros-cons .cons {
  background: rgba(255, 107, 53, 0.05);
  border-left: 3px solid var(--kd-orange);
}
.pros-cons h4 {
  font-family: var(--kd-font-display) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem !important;
  margin-top: 0 !important;
  border: none !important;
  padding: 0 !important;
}
.pros h4 { color: #0A7B52 !important; }
.cons h4 { color: #C84A1A !important; }
.pros-cons ul {
  margin: 0; padding-left: 1.1rem;
  list-style: none;
}
.pros-cons ul li {
  position: relative;
  padding-left: 0.2rem;
  margin-bottom: 0.2rem;
  line-height: 1.5;
}
.pros ul li::before { content: '+'; position: absolute; left: -1rem; color: var(--kd-green); font-weight: 700; }
.cons ul li::before { content: '−'; position: absolute; left: -1rem; color: var(--kd-orange); font-weight: 700; }

/* ── Deal / Price area ── */
.deal-info:not(:empty) {
  display: inline-block;
  margin-bottom: 0.4rem;
}
.savings-info:not(:empty) {
  display: inline-block;
  font-family: var(--kd-font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--kd-green);
}
article.card .card .btn-link {
  font-family: var(--kd-font-ui);
  font-weight: 600;
  color: var(--kd-navy) !important;
  background: rgba(0, 212, 255, 0.08);
  border-radius: var(--kd-radius-sm);
  padding: 0.4rem 1rem !important;
  transition: all 0.25s var(--kd-transition);
  text-decoration: none !important;
}
article.card .card .btn-link:hover {
  background: var(--kd-navy);
  color: #fff !important;
}

/* ── Scenarios block ── */
.scenarios-block .list-group {
  border: none;
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
}
.scenarios-block .list-group-item {
  border: 1px solid var(--kd-border) !important;
  border-radius: var(--kd-radius) !important;
  background: var(--kd-white);
  box-shadow: var(--kd-shadow-sm);
  transition: box-shadow 0.25s var(--kd-transition), transform 0.25s var(--kd-transition);
  padding: 1rem 1.2rem;
}
.scenarios-block .list-group-item:hover {
  box-shadow: var(--kd-shadow-md);
  transform: translateY(-1px);
}
.scenarios-block .fw-semibold.text-primary {
  font-family: var(--kd-font-display);
  color: var(--kd-navy) !important;
  font-size: 0.95rem;
}

/* ── Methodology block ── */
.methodology-block {
  background: linear-gradient(135deg, rgba(12, 18, 34, 0.02), rgba(0, 212, 255, 0.02));
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.methodology-block h2 {
  font-size: 1.1rem !important;
  border-bottom: none !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}
.methodology-block .list-group-numbered {
  border: none;
}
.methodology-block .list-group-item {
  border: none;
  border-bottom: 1px dashed var(--kd-border);
  background: transparent;
  font-size: 0.9rem;
}
.methodology-block .list-group-item:last-child { border-bottom: none; }

/* ── Comparison tables ── */
.table-responsive {
  border-radius: var(--kd-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
article.card .table {
  font-family: var(--kd-font-ui);
  font-size: 0.88rem;
  margin-bottom: 0;
}
article.card .table thead th {
  background: var(--kd-navy) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.85rem;
  border: none !important;
  white-space: nowrap;
}
article.card .table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(0, 212, 255, 0.02);
}
article.card .table-striped > tbody > tr:nth-of-type(even) > td {
  background-color: var(--kd-white);
}
article.card .table tbody tr:hover td {
  background-color: rgba(0, 212, 255, 0.05) !important;
}
article.card .table td {
  vertical-align: middle;
  padding: 0.6rem 0.85rem;
  border-color: var(--kd-border) !important;
}

/* ── FAQ section ── */
#faq h2 {
  position: relative;
  padding-left: 1.8rem !important;
}
#faq h2::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--kd-font-display);
  font-weight: 800;
  font-size: 1.2rem;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kd-navy);
  color: var(--kd-cyan);
  border-radius: 50%;
  line-height: 1;
}
#faq h3 {
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--kd-text);
  margin-top: 1.2rem !important;
  margin-bottom: 0.5rem !important;
  padding-left: 0;
}

/* ── Alternative products (3-col grid) ── */
.row-cols-lg-3 .card.border-0 {
  border: 1px solid var(--kd-border) !important;
  border-radius: var(--kd-radius) !important;
  transition: box-shadow 0.3s var(--kd-transition), transform 0.3s var(--kd-transition);
}
.row-cols-lg-3 .card.border-0:hover {
  box-shadow: var(--kd-shadow-md);
  transform: translateY(-2px);
}
.row-cols-lg-3 h3 {
  font-size: 0.92rem !important;
  margin-top: 0.5rem !important;
  border: none !important;
  padding: 0 !important;
}

/* ── Internal links at bottom ── */
section:last-of-type .list-group a.list-group-item-action {
  font-family: var(--kd-font-ui);
  font-size: 0.9rem;
  border-color: var(--kd-border);
  transition: all 0.2s ease;
  text-decoration: none;
}
section:last-of-type .list-group a.list-group-item-action:hover {
  background: rgba(0, 212, 255, 0.04);
  padding-left: 1.4rem;
  color: var(--kd-text);
}

/* ── Section dividers — the "scan line" motif ── */
article.card > .card-body > section + section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--kd-border);
  position: relative;
}
article.card > .card-body > section + section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--kd-cyan), transparent);
  border-radius: 2px;
}

/* ── Responsive refinements ── */
@media (max-width: 767.98px) {
  article.card > .card-body { font-size: 1rem; padding: 1.25rem 1rem 2rem; }
  figure.hero-image { margin: 0 -1rem 1.5rem !important; }
  .pros-cons { gap: 0.5rem; }
  .tldr-box { padding: 1.1rem 1.2rem !important; }
  nav#toc .list-group-item { font-size: 0.82rem; padding: 0.5rem 1rem; }
}

/* ══════════════════════════════════
   ARTICLE — Full-width Editorial
   ══════════════════════════════════ */

/* ── Outer card: clean white plane, use full container width ── */
article.card {
  border: none;
  border-radius: var(--kd-radius-lg);
  box-shadow: 0 1px 4px rgba(12, 18, 34, 0.03);
  overflow: visible;
}
article.card > .card-body {
  padding: 2rem 2rem 3rem;
  font-family: var(--kd-font-body);
  font-size: 1.06rem;
  line-height: 1.75;
}
@media (min-width: 992px) {
  article.card > .card-body { padding: 2.5rem 3rem 3.5rem; }
}

/* All content uses full container width */

/* ── Article byline ── */
.article-byline {
  font-family: var(--kd-font-ui);
  font-size: 0.84rem !important;
  color: var(--kd-text-secondary);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--kd-border);
  margin-bottom: 1.2rem !important;
}
.article-byline a {
  font-weight: 500;
  text-decoration: none !important;
}
.article-byline a:hover { color: var(--kd-text) !important; }

/* ── Hero image — full-bleed ── */
figure.hero-image {
  position: relative;
  margin: 0 0 2rem !important;
  border-radius: var(--kd-radius-lg);
  overflow: hidden;
}
figure.hero-image img {
  max-width: 100%;
  width: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
  border-radius: var(--kd-radius-lg) !important;
}
figure.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(12,18,34,0.10), transparent);
  pointer-events: none;
  border-radius: 0 0 var(--kd-radius-lg) var(--kd-radius-lg);
}

/* ── TLDR / "Snabba svaret" ── */
aside.tldr-box {
  background: linear-gradient(135deg, #EFF9FF 0%, #F6FCFF 100%) !important;
  border: 1px solid rgba(0,212,255,0.15) !important;
  border-left: 4px solid var(--kd-cyan) !important;
  border-radius: var(--kd-radius) !important;
  padding: 1.3rem 1.5rem !important;
  margin-bottom: 1.8rem !important;
  box-shadow: 0 2px 10px rgba(0,212,255,0.06);
}
aside.tldr-box .text-uppercase {
  font-family: var(--kd-font-display);
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--kd-navy) !important;
}
aside.tldr-box p {
  font-family: var(--kd-font-ui);
  font-size: 0.93rem;
  line-height: 1.6;
}
aside.tldr-box a {
  color: var(--kd-navy);
  font-weight: 600;
  text-decoration-color: var(--kd-cyan) !important;
}

/* ── Table of Contents ── */
nav#toc {
  border: 1px solid var(--kd-border) !important;
  border-radius: var(--kd-radius) !important;
  overflow: hidden;
  box-shadow: none !important;
  margin-bottom: 2rem !important;
}
nav#toc .card-header {
  background: var(--kd-navy);
  color: #fff;
  font-family: var(--kd-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-bottom: 2px solid var(--kd-cyan);
}
nav#toc .list-group-item {
  font-family: var(--kd-font-ui);
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
  border-color: var(--kd-border);
  transition: background 0.15s ease, padding-left 0.2s var(--kd-transition);
}
nav#toc .list-group-item a {
  text-decoration: none;
  color: var(--kd-text-secondary);
  display: block;
}
nav#toc .list-group-item:hover {
  background: rgba(0,212,255,0.04);
  padding-left: 1.4rem;
}
nav#toc .list-group-item:hover a { color: var(--kd-text); }

/* ── Product cards inside article ── */
article.card .row.g-4,
article.card .row.g-3 {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}
article.card .card .card-body {
  font-family: var(--kd-font-ui);
  line-height: 1.55;
}
article.card .card .badge.text-bg-dark {
  background: var(--kd-navy) !important;
  font-family: var(--kd-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4em 0.8em;
  border-radius: var(--kd-radius-sm);
}
article.card .card h3 a {
  color: var(--kd-text);
  text-decoration: none !important;
  transition: color 0.2s ease;
}
article.card .card h3 a:hover { color: var(--kd-cyan); }

/* Stars */
.bi-star-fill.text-warning,
.bi-star-half.text-warning {
  color: #E8A817 !important;
  font-size: 1.05em;
  filter: drop-shadow(0 1px 1px rgba(232,168,23,0.2));
}

/* ── Pros & Cons ── */
.pros-cons {
  font-family: var(--kd-font-ui);
  font-size: 0.88rem;
  display: grid;
  gap: 0.6rem;
}
.pros-cons .pros,
.pros-cons .cons {
  padding: 0.65rem 0.9rem;
  border-radius: var(--kd-radius-sm);
}
.pros-cons .pros {
  background: rgba(52,211,153,0.07);
  border-left: 3px solid var(--kd-green);
}
.pros-cons .cons {
  background: rgba(255,107,53,0.06);
  border-left: 3px solid var(--kd-orange);
}
.pros-cons h4 {
  font-family: var(--kd-font-display) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem !important;
  margin-top: 0 !important;
  border: none !important;
  padding: 0 !important;
}
.pros h4 { color: #0A7B52 !important; }
.cons h4 { color: #C84A1A !important; }
.pros-cons ul { margin: 0; padding-left: 1rem; list-style: none; }
.pros-cons ul li {
  position: relative;
  padding-left: 0.2rem;
  margin-bottom: 0.15rem;
  line-height: 1.5;
}
.pros ul li::before { content: '+'; position: absolute; left: -0.9rem; color: var(--kd-green); font-weight: 700; }
.cons ul li::before { content: '−'; position: absolute; left: -0.9rem; color: var(--kd-orange); font-weight: 700; }

/* ── CTA / Price area ── */
.deal-info:not(:empty) { display: inline-block; margin-bottom: 0.3rem; }
.savings-info:not(:empty) {
  display: inline-block;
  font-family: var(--kd-font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--kd-green);
}
article.card .card .btn-link {
  font-family: var(--kd-font-ui);
  font-weight: 600;
  color: var(--kd-navy) !important;
  background: rgba(0,212,255,0.08);
  border-radius: var(--kd-radius-sm);
  padding: 0.4rem 1rem !important;
  transition: all 0.25s var(--kd-transition);
  text-decoration: none !important;
}
article.card .card .btn-link:hover {
  background: var(--kd-navy);
  color: #fff !important;
}

/* ── Scenarios block ── */
.scenarios-block .list-group { border: none; gap: 0.4rem; display: flex; flex-direction: column; }
.scenarios-block .list-group-item {
  border: 1px solid var(--kd-border) !important;
  border-radius: var(--kd-radius) !important;
  background: var(--kd-white);
  box-shadow: var(--kd-shadow-sm);
  transition: box-shadow 0.2s var(--kd-transition), transform 0.2s var(--kd-transition);
  padding: 0.9rem 1.1rem;
}
.scenarios-block .list-group-item:hover {
  box-shadow: var(--kd-shadow-md);
  transform: translateY(-1px);
}
.scenarios-block .fw-semibold.text-primary {
  font-family: var(--kd-font-display);
  color: var(--kd-navy) !important;
}

/* ── Methodology block ── */
.methodology-block {
  background: linear-gradient(135deg, rgba(12,18,34,0.015), rgba(0,212,255,0.015));
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius-lg);
  padding: 1.4rem;
  margin-bottom: 2rem;
}
.methodology-block h2 {
  font-size: 1.1rem !important;
  border-bottom: none !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}
.methodology-block .list-group-numbered { border: none; }
.methodology-block .list-group-item {
  border: none;
  border-bottom: 1px dashed var(--kd-border);
  background: transparent;
  font-size: 0.9rem;
}
.methodology-block .list-group-item:last-child { border-bottom: none; }

/* ── Comparison tables ── */
.table-responsive {
  border-radius: var(--kd-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
article.card .table { font-family: var(--kd-font-ui); font-size: 0.88rem; margin-bottom: 0; }
article.card .table thead th {
  font-family: var(--kd-font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  border: none !important;
  vertical-align: middle;
}
/* Dark header (default, no .table-light) */
article.card .table:not(.table-bordered) thead th {
  background: var(--kd-navy) !important;
  color: #fff !important;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
article.card .table:not(.table-bordered) thead th a {
  color: #fff !important;
  text-decoration: underline;
  text-decoration-color: var(--kd-cyan) !important;
}
/* Comparison table (table-bordered with product names in header) */
article.card .table.table-bordered thead th {
  background: var(--kd-surface) !important;
  color: var(--kd-text) !important;
  border: 1px solid var(--kd-border-strong) !important;
  border-bottom: 3px solid var(--kd-cyan) !important;
  white-space: normal;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
}
article.card .table.table-bordered thead th a {
  color: var(--kd-text) !important;
  text-decoration: underline;
  text-decoration-color: var(--kd-cyan) !important;
  text-underline-offset: 2px;
}
article.card .table.table-bordered thead th a:hover {
  color: var(--kd-cyan) !important;
}
article.card .table.table-bordered td,
article.card .table.table-bordered th {
  border-color: var(--kd-border-strong) !important;
}
article.card .table-striped > tbody > tr:nth-of-type(odd) > td { background-color: rgba(0,212,255,0.02); }
article.card .table-striped > tbody > tr:nth-of-type(even) > td { background-color: var(--kd-white); }
article.card .table tbody tr:hover td { background-color: rgba(0,212,255,0.05) !important; }
article.card .table td { padding: 0.55rem 0.8rem; border-color: var(--kd-border) !important; }

/* ── FAQ ── */
#faq h3 {
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--kd-text);
  margin-top: 1rem !important;
  margin-bottom: 0.4rem !important;
}

/* ── Alt product cards (3-col) ── */
.row-cols-lg-3 .card.border-0 {
  border: 1px solid var(--kd-border) !important;
  border-radius: var(--kd-radius) !important;
  transition: box-shadow 0.25s var(--kd-transition), transform 0.25s var(--kd-transition);
}
.row-cols-lg-3 .card.border-0:hover {
  box-shadow: var(--kd-shadow-md);
  transform: translateY(-2px);
}
.row-cols-lg-3 h3 {
  font-size: 0.9rem !important;
  border: none !important;
  padding: 0 !important;
}

/* ── Internal link list ── */
section:last-of-type .list-group a.list-group-item-action {
  font-family: var(--kd-font-ui);
  font-size: 0.9rem;
  border-color: var(--kd-border);
  transition: all 0.15s ease;
  text-decoration: none;
}
section:last-of-type .list-group a.list-group-item-action:hover {
  background: rgba(0,212,255,0.04);
  padding-left: 1.3rem;
}

/* ── Section dividers ── */
article.card > .card-body > section + section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--kd-border);
  position: relative;
}
article.card > .card-body > section + section::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--kd-cyan), transparent);
}

/* ══════════════════════════════════
   MOBILE — full-width, no squeeze
   ══════════════════════════════════ */
@media (max-width: 767.98px) {
  .container { padding-left: 12px; padding-right: 12px; }
  article.card { border-radius: 0; }
  article.card > .card-body {
    padding: 1.2rem 1rem 2rem;
    font-size: 1rem;
  }
  article.card > .card-body h1 { font-size: 1.6rem; }
  article.card > .card-body h2 { font-size: 1.25rem; }

  /* Hero full-bleed on mobile */
  figure.hero-image {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    border-radius: 0;
  }
  figure.hero-image img { border-radius: 0 !important; }

  /* TLDR box full-bleed */
  aside.tldr-box {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
    border-radius: var(--kd-radius-sm) !important;
  }

  /* Product cards: single column, full width */
  article.card .row.row-cols-md-2 { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
  article.card .card .card-body { padding: 1rem !important; }
  article.card .card h3 { font-size: 1.1rem !important; }

  /* Pros/cons tighter */
  .pros-cons .pros, .pros-cons .cons { padding: 0.5rem 0.75rem; }

  /* TOC compact */
  nav#toc .list-group-item { padding: 0.5rem 0.9rem; font-size: 0.84rem; }

  /* Tables scroll hint */
  .table-responsive { margin-left: -0.5rem; margin-right: -0.5rem; }
}

/* ══════════════════════════════════
   OVERFLOW PREVENTION — global
   ══════════════════════════════════ */
html, body { overflow-x: hidden; }
main, main.container, article.card, article.card > .card-body {
  overflow-wrap: break-word;
  word-break: break-word;
}
article.card > .card-body { overflow: hidden; }

/* ══════════════════════════════════
   MOBILE — full-width, no sidescroll
   ══════════════════════════════════ */
@media (max-width: 767.98px) {
  .container { padding-left: 14px; padding-right: 14px; }
  article.card { border-radius: 0; }
  article.card > .card-body {
    padding: 1.2rem 0.75rem 2rem;
    font-size: 1rem;
  }
  article.card > .card-body h1 { font-size: 1.55rem; }
  article.card > .card-body h2 { font-size: 1.2rem; }

  /* Hero full-bleed on mobile */
  figure.hero-image {
    margin-left: -0.75rem !important;
    margin-right: -0.75rem !important;
    border-radius: 0;
  }
  figure.hero-image img { border-radius: 0 !important; }

  /* TLDR box */
  aside.tldr-box {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1rem 1rem !important;
    border-radius: var(--kd-radius-sm) !important;
  }

  /* Product cards: full width, no overflow */
  article.card .row { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
  article.card .card .card-body { padding: 0.9rem !important; }
  article.card .card h3 { font-size: 1.05rem !important; }
  article.card .card .badge { font-size: 0.65rem; max-width: 100%; white-space: normal; }

  /* Pros/cons — prevent overflow */
  .pros-cons .pros, .pros-cons .cons {
    padding: 0.5rem 0.7rem;
    overflow: hidden;
  }
  .pros-cons ul { padding-left: 0.9rem; }

  /* TOC compact */
  nav#toc { margin-bottom: 1.5rem !important; }
  nav#toc .list-group-item { padding: 0.45rem 0.8rem; font-size: 0.84rem; }

  /* Tables scroll within their wrapper only */
  .table-responsive {
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Scenarios/methodology */
  .scenarios-block .list-group-item { padding: 0.7rem 0.9rem; }
  .methodology-block { padding: 1rem; }

  /* CTA buttons */
  article.card .card .btn-link { font-size: 0.85rem; padding: 0.35rem 0.8rem !important; }

  /* Footer nav */
  .footer-nav-link { padding: 0.35rem 0.55rem; font-size: 0.7rem; }
}

/* ══════════════════════════════════
   OVERFLOW & MOBILE
   ══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; max-width: 100vw; }
body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, table, pre, code, svg { max-width: 100%; }
main.container { overflow: hidden; }

@media (max-width: 767.98px) {
  .container { padding-left: 14px; padding-right: 14px; max-width: 100%; }
  article.card { border-radius: 0; max-width: 100%; }
  article.card > .card-body {
    padding: 1.1rem 0.85rem 2rem;
    font-size: 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Typography */
  article.card > .card-body h1 { font-size: 1.5rem; word-break: break-word; }
  article.card > .card-body h2 { font-size: 1.15rem; word-break: break-word; }
  article.card > .card-body h3 { font-size: 1rem; }

  /* Hero image */
  figure.hero-image {
    margin-left: -0.85rem !important;
    margin-right: -0.85rem !important;
    border-radius: 0;
  }
  figure.hero-image img {
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
  }

  /* TLDR box */
  aside.tldr-box { padding: 0.9rem 1rem !important; }

  /* Product cards */
  article.card .row { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.75rem; }
  article.card .card .card-body { padding: 0.85rem !important; }
  article.card .card h3 { font-size: 1rem !important; }
  article.card .card .badge { font-size: 0.65rem; white-space: normal; word-break: break-word; }

  /* Pros/cons */
  .pros-cons .pros, .pros-cons .cons { padding: 0.5rem 0.65rem; }
  .pros-cons ul { padding-left: 0.85rem; }

  /* TOC */
  nav#toc .list-group-item { padding: 0.4rem 0.8rem; font-size: 0.84rem; }

  /* Tables: horizontal scroll WITHIN wrapper only */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Breadcrumbs */
  .breadcrumb { flex-wrap: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem; }
  .breadcrumb-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

  /* Scenarios/methodology */
  .scenarios-block .list-group-item { padding: 0.65rem 0.8rem; }
  .methodology-block { padding: 0.9rem; }

  /* CTA */
  article.card .card .btn-link { font-size: 0.84rem; padding: 0.35rem 0.75rem !important; }

  /* Footer nav */
  .footer-nav-link { padding: 0.3rem 0.5rem; font-size: 0.68rem; }

  /* Byline */
  .article-byline { font-size: 0.78rem !important; word-break: break-word; }

  /* Navbar */
  .navbar .navbar-brand img { height: 28px; }
}
/* Inner breadcrumb (in card-body) — reset to light style, not navy */
.card-body nav[aria-label="Breadcrumb"] .breadcrumb {
  background: transparent !important;
  padding: 0.4rem 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--kd-border);
}
.card-body nav[aria-label="Breadcrumb"] .breadcrumb-item a {
  color: var(--kd-text-secondary) !important;
}
.card-body nav[aria-label="Breadcrumb"] .breadcrumb-item a:hover {
  color: var(--kd-text) !important;
}
.card-body nav[aria-label="Breadcrumb"] .breadcrumb-item.active {
  color: var(--kd-text) !important;
}
.card-body nav[aria-label="Breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
  color: var(--kd-text-secondary) !important;
}

/* =========================================================
   PRODUCT CARD OVERRIDES — toplist + "Fler produkter"
   ========================================================= */

/* ---- Toplist-kort (.card.h-100.shadow-sm) ---- */

.card.h-100.shadow-sm > picture {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 0;
}
.card.h-100.shadow-sm > picture img {
    margin: 0 auto;
    display: block;
}

.card.h-100.shadow-sm,
.card.h-100.shadow-sm:hover {
    transform: none !important;
    transition: none !important;
}
.card.h-100.shadow-sm:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.card.h-100.shadow-sm .card-body {
    display: flex;
    flex-direction: column;
}

.card.h-100.shadow-sm .pros-cons {
    margin-bottom: 1rem !important;
}

.card.h-100.shadow-sm .mt-auto {
    margin-top: auto !important;
    padding-top: 0.25rem !important;
}
.card.h-100.shadow-sm .mt-auto p.small {
    margin-bottom: 0.75rem !important;
}

/* ---- "Fler produkter"-kort (.card.h-100.border-0.shadow-sm) ---- */

.card.h-100.border-0.shadow-sm > picture {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem 0;
}
.card.h-100.border-0.shadow-sm > picture img {
    margin: 0 auto;
    display: block;
}

.card.h-100.border-0.shadow-sm .card-body {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.5rem 1.25rem;
}

.card.h-100.border-0.shadow-sm .card-body .h6,
.card.h-100.border-0.shadow-sm .card-body p.h6 {
    text-align: center;
    margin-bottom: 0 !important;
}

.card.h-100.border-0.shadow-sm .card-body p.small {
    text-align: center;
    margin-top: auto !important;
    margin-bottom: 0.75rem !important;
    padding-top: 1.5rem;
}

.card.h-100.border-0.shadow-sm .card-body .mt-auto {
    margin-top: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0;
}
.card.h-100.border-0.shadow-sm .card-body .mt-auto .btn {
    margin: 0 auto;
}


/* ── Equal-size product image boxes (desktop ≥md, comparison 2-col grid) ── */
@media (min-width: 768px) {
  .row.row-cols-md-2 > .col > .card > picture {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--kd-border);
    overflow: hidden;
  }
  /* Eventuell span-wrapper (t.ex. data-claim) ska också fylla hela bildrutan */
  .row.row-cols-md-2 > .col > .card > picture > * {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .row.row-cols-md-2 > .col > .card > picture .card-img-top {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
  }
}

/* ── TL;DR box (nedtonad editorial, hög läsbarhet) ── */
article aside.tldr-box,
aside.tldr-box {
    background: #f4f6f9 !important;
    color: #1a2335 !important;
    border: 1px solid #d9dfe7 !important;
    border-left: 4px solid #0d2e4f !important;
    border-radius: 6px !important;
    padding: 1.4rem 1.7rem 1.25rem !important;
    margin: 1rem 0 1.8rem !important;
    box-shadow: none !important;
    position: relative !important;
}
article aside.tldr-box > *,
aside.tldr-box > * { position: relative; z-index: 1; }
article aside.tldr-box .text-uppercase,
aside.tldr-box .text-uppercase {
    font-family: var(--kd-font-display, system-ui, sans-serif) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    color: #0d2e4f !important;
    opacity: 1 !important;
    margin-bottom: 0.7rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    text-transform: uppercase !important;
}
article aside.tldr-box .text-uppercase .bi,
aside.tldr-box .text-uppercase .bi {
    color: #0d2e4f !important;
    font-size: 0.95rem !important;
}
article aside.tldr-box p,
aside.tldr-box p {
    font-family: var(--kd-font-body, Georgia, serif) !important;
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    color: #1a2335 !important;
    margin-bottom: 0.55rem !important;
}
article aside.tldr-box p:last-child,
aside.tldr-box p:last-child { margin-bottom: 0 !important; }
article aside.tldr-box a,
article aside.tldr-box a:link,
article aside.tldr-box a:visited,
aside.tldr-box a,
aside.tldr-box a:link,
aside.tldr-box a:visited {
    color: #0d2e4f !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}
article aside.tldr-box a:hover,
aside.tldr-box a:hover {
    color: #c65f24 !important;
    text-decoration-thickness: 2px !important;
}
article aside.tldr-box strong,
aside.tldr-box strong { color: #0d2e4f !important; font-weight: 700 !important; }
article aside.tldr-box cite,
aside.tldr-box cite { color: #1a2335 !important; font-style: normal !important; }
article aside.tldr-box .citation-ref a,
aside.tldr-box .citation-ref a { color: #c65f24 !important; }
article aside.tldr-box .text-body-secondary,
article aside.tldr-box .fst-italic,
aside.tldr-box .text-body-secondary,
aside.tldr-box .fst-italic {
    color: #5a6b7e !important;
    font-size: 0.8rem !important;
    border-top: 1px solid #d9dfe7 !important;
    padding-top: 0.6rem !important;
    margin-top: 0.75rem !important;
    font-style: italic !important;
}
article aside.tldr-box .text-info-emphasis,
aside.tldr-box .text-info-emphasis { color: #0d2e4f !important; }


/* ── FIX: center + scale product images in card grids (desktop + mobile) ── */
.card.h-100.shadow-sm > picture,
.card.h-100.border-0.shadow-sm > picture,
.row.row-cols-md-2 > .col > .card > picture,
.row.row-cols-lg-3 > .col > .card > picture {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 260px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #fff !important;
}

/* Mobile: single-column cards are much wider, so let picture grow with aspect-ratio */
@media (max-width: 767.98px) {
    .card.h-100.shadow-sm > picture,
    .card.h-100.border-0.shadow-sm > picture,
    .row.row-cols-md-2 > .col > .card > picture,
    .row.row-cols-lg-3 > .col > .card > picture {
        aspect-ratio: 4 / 3 !important;
        height: auto !important;
        min-height: 220px !important;
    }
}

.card.h-100.shadow-sm > picture > img,
.card.h-100.border-0.shadow-sm > picture > img,
.row.row-cols-md-2 > .col > .card > picture > img,
.row.row-cols-lg-3 > .col > .card > picture > img,
.card.h-100.shadow-sm > picture > img.card-img-top,
.card.h-100.border-0.shadow-sm > picture > img.card-img-top,
.row.row-cols-md-2 > .col > .card > picture > img.card-img-top {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 1rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
    display: block !important;
    transform: none !important;
    max-width: none !important;
    max-height: none !important;
}


/* ══════════════════════════════════
   2026-04-18 — Readability & layout polish
   Goals: constrain reading width, sticky TOC
   on desktop, smoother hero, refined spacing.
   ══════════════════════════════════ */

/* Reading column width cap for prose — keeps 55–75 chars/line.
   Product rows, figures, navs, full-width sections stay edge-to-edge
   via grid full-bleed trick.
   Applied on ≥992px so mobile uses full width. */
@media (min-width: 992px) {
  article.card > .card-body {
    display: grid;
    grid-template-columns:
      minmax(1rem, 1fr)
      minmax(0, 72ch)
      minmax(1rem, 1fr);
    padding-left: 0;
    padding-right: 0;
    row-gap: 0;
  }
  /* Default: every direct child is centered reading column */
  article.card > .card-body > * {
    grid-column: 2;
    min-width: 0;
  }
  /* Full-bleed blocks: grids, hero, sections, TOC, tables, figures, video */
  article.card > .card-body > figure,
  article.card > .card-body > section,
  article.card > .card-body > .row,
  article.card > .card-body > table,
  article.card > .card-body > nav[aria-label="Brödsmulor"],
  article.card > .card-body > div[class*="row"],
  article.card > .card-body > aside.tldr-box,
  article.card > .card-body > nav#toc {
    grid-column: 1 / -1;
  }
  /* But keep inner content of full-bleed blocks readable where appropriate */
  article.card > .card-body > aside.tldr-box {
    max-width: 860px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  article.card > .card-body > nav#toc {
    max-width: 820px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Section internals keep reading width inside */
  article.card > .card-body > section > p,
  article.card > .card-body > section > h2,
  article.card > .card-body > section > h3,
  article.card > .card-body > section > h4,
  article.card > .card-body > section > ul:not(.list-group),
  article.card > .card-body > section > ol,
  article.card > .card-body > section > blockquote,
  article.card > .card-body > section > details,
  article.card > .card-body > section > aside {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
  }
  /* Restore horizontal padding for the outer card-body */
  article.card > .card-body {
    padding-left: 0;
    padding-right: 0;
  }
  /* Section backgrounds / separators stay full width but their text center */
  article.card > .card-body > section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ── Sticky TOC on large screens (optional compact summary inside) ── */
@media (min-width: 1200px) {
  /* TOC becomes a "floating summary" that sticks to the top while scrolling */
  article.card > .card-body > nav#toc {
    position: sticky;
    top: 90px;
    z-index: 5;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  article.card > .card-body > nav#toc::-webkit-scrollbar { width: 6px; }
  article.card > .card-body > nav#toc::-webkit-scrollbar-thumb {
    background: var(--kd-border-strong);
    border-radius: 3px;
  }
}

/* ── Anchor offset so sticky/floating headers don't cover jumped-to sections ── */
:is(h1, h2, h3, h4)[id] {
  scroll-margin-top: 100px;
}

/* ── Prose tightening: prose elements get comfortable vertical rhythm ── */
article.card > .card-body p + p { margin-top: 0.2rem; }
article.card > .card-body h2 { margin-top: 2.6rem; }
article.card > .card-body h3 { margin-top: 2rem; }

/* ── Hero refinements: aspect, softer edges, attention-focused ── */
article.card > .card-body > figure.hero-image {
  margin-top: 0.5rem;
  margin-bottom: 1.75rem !important;
}
article.card > .card-body > figure.hero-image > picture,
article.card > .card-body > figure.hero-image > picture > img {
  border-radius: var(--kd-radius-lg);
  box-shadow: var(--kd-shadow-sm);
}
article.card > .card-body > figure.hero-image > picture > img {
  width: 100% !important;
  max-height: 440px;
  object-fit: cover;
}

/* ── FAQ section: nicer details/summary interaction ── */
.faq-section details {
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius);
  padding: 0.2rem 0;
  margin-bottom: 0.65rem;
  transition: border-color 0.2s var(--kd-transition), box-shadow 0.2s var(--kd-transition);
}
.faq-section details[open] {
  border-color: var(--kd-border-strong);
  box-shadow: var(--kd-shadow-sm);
}
.faq-section details summary {
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-family: var(--kd-font-ui);
  font-weight: 600;
  color: var(--kd-text);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.faq-section details summary::-webkit-details-marker { display: none; }
.faq-section details summary::after {
  content: '+';
  position: absolute;
  right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.45rem;
  color: var(--kd-cyan);
  font-weight: 400;
  transition: transform 0.2s var(--kd-transition);
  line-height: 1;
}
.faq-section details[open] summary::after { content: '−'; }
.faq-section details .px-3.pb-3 {
  padding-top: 0 !important;
  padding-left: 1.1rem !important;
  padding-right: 1.1rem !important;
}

/* ── Ingress "Senast uppdaterad" pill: subtle, scannable ── */
.article-byline time {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  background: var(--kd-cyan-dim);
  border-radius: 999px;
  color: var(--kd-navy) !important;
  font-weight: 500;
  font-size: 0.78rem;
  margin-right: 0.3rem;
}
.article-byline time i { margin-right: 0.3rem; }

/* ── Lead paragraph strong intro ── */
article.card > .card-body p.lead {
  font-family: var(--kd-font-body);
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--kd-text);
  font-weight: 500;
  border-left: 3px solid var(--kd-cyan);
  padding-left: 1.1rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 767.98px) {
  article.card > .card-body p.lead {
    font-size: 1.15rem;
    padding-left: 0.8rem;
  }
}

/* ── Inline <cite> styling for GEO citations (Perplexity, Gemini) ── */
cite {
  font-style: normal;
}
cite a.source-citation {
  color: var(--kd-navy);
  background: rgba(0, 212, 255, 0.06);
  padding: 0.05em 0.25em;
  border-radius: 4px;
  text-decoration: none;
  border-bottom: 1.5px dotted var(--kd-cyan);
  transition: background 0.15s var(--kd-transition);
}
cite a.source-citation:hover {
  background: rgba(0, 212, 255, 0.14);
  color: var(--kd-navy);
}

/* ── Citation references [1][2] style ── */
sup.citation-ref {
  font-size: 0.7em;
  margin-left: 0.1em;
}
sup.citation-ref a {
  color: var(--kd-cyan);
  text-decoration: none;
  font-weight: 700;
}

/* ── Sources list at bottom: clean, scannable ── */
section.sources {
  border-top: 1px solid var(--kd-border);
  padding-top: 1.25rem !important;
  margin-top: 2.75rem !important;
  font-size: 0.9rem;
}
section.sources h2,
section.sources h3 {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--kd-text-secondary) !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0.75rem !important;
}
section.sources ul,
section.sources ol {
  padding-left: 0;
  list-style: none;
}
section.sources li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(26,31,46,0.06);
  font-family: var(--kd-font-ui);
}
section.sources a { color: var(--kd-navy); }

/* ── Affiliate-box: less shouty, editorial tone ── */
.affiliate-box {
  margin-top: 3rem !important;
  margin-bottom: 1.5rem !important;
}
.affiliate-box .card {
  border: 1px solid var(--kd-border) !important;
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  transition: box-shadow 0.25s var(--kd-transition), transform 0.25s var(--kd-transition);
}
.affiliate-box .card:hover {
  box-shadow: var(--kd-shadow-md);
  transform: translateY(-2px);
}

/* ── Mobile safety: don't break prose under 767px ── */
@media (max-width: 991.98px) {
  article.card > .card-body > figure.hero-image > picture > img {
    max-height: 340px;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Fix: center constrained full-bleed children
   ══════════════════════════════════ */
@media (min-width: 992px) {
  article.card > .card-body > nav#toc,
  article.card > .card-body > aside.tldr-box {
    justify-self: center;
    width: 100%;
  }
  /* Keep the hero truly full-bleed, no container width fight */
  article.card > .card-body > figure.hero-image {
    width: 100%;
  }
  /* Ensure section internal max-width still has horizontal padding on sides */
  article.card > .card-body > section {
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-right: clamp(1rem, 4vw, 2.5rem);
  }
  /* For prose NOT at card-body top-level (nested in sections/articles), keep 72ch column */
  article.card > .card-body > section > *:not(.row):not(figure):not(table):not([class*="row"]) {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
  }
  /* Admin edit link bar — not prose, full width */
  article.card > .card-body > div.admin-edit-link { grid-column: 1 / -1; }
}


/* ══════════════════════════════════
   2026-04-18 — Cosmetic: hide empty prose, tighten spacing
   ══════════════════════════════════ */
article.card > .card-body p:empty,
article.card > .card-body li:empty,
article.card > .card-body div:empty:not([class*="spacer"]):not([class*="divider"]) {
  display: none;
}

/* Prevent weird gaps in rendered nav+time stacking (byline is <p> + inline <time>) */
article.card > .card-body > address.d-inline,
article.card > .card-body > time {
  display: inline !important;
}

/* Table of contents: mild cyan left rail on active anchor target (progressive enhancement) */
:is(h2, h3)[id]:target {
  scroll-margin-top: 110px;
  position: relative;
}
:is(h2, h3)[id]:target::before {
  content: '';
  position: absolute;
  left: -12px; top: 0.2em; bottom: 0.2em;
  width: 3px;
  background: var(--kd-cyan);
  border-radius: 2px;
}

/* Improve inline image of hero-image to never be broken-alt-icon */
article.card > .card-body figure.hero-image:not(:has(img)) {
  display: none;
}


/* ══════════════════════════════════
   2026-04-18 — Fix3: stabilize prose width to 650px absolute
   (ch-based max-width + large H2 font = unexpected wide headings)
   ══════════════════════════════════ */
@media (min-width: 992px) {
  article.card > .card-body {
    grid-template-columns:
      minmax(1rem, 1fr)
      minmax(0, 650px)
      minmax(1rem, 1fr);
  }
  /* Override ch-based limits with absolute pixel for stable H2/H3/prose widths */
  article.card > .card-body > section > *:not(.row):not(figure):not(table):not([class*="row"]) {
    max-width: 650px !important;
  }
  /* But don't override tight-layout blocks (TOC, TLDR) */
  article.card > .card-body > section > .toc,
  article.card > .card-body > section > nav {
    max-width: none !important;
  }
}


/* ══════════════════════════════════
   2026-04-18 — User preference: använd hela bredden för artikeln
   Överskriver tidigare 650px reading column. Allt innehåll får full bredd.
   ══════════════════════════════════ */
@media (min-width: 992px) {
  /* Återställ block-layout: ingen grid, full bredd */
  article.card > .card-body {
    display: block !important;
    grid-template-columns: none !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    max-width: none !important;
  }
  article.card > .card-body > *,
  article.card > .card-body > section > * {
    grid-column: auto !important;
    max-width: none !important;
    margin-left: initial !important;
    margin-right: initial !important;
  }
  /* Section-padding kan tas bort eftersom parent har padding */
  article.card > .card-body > section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Men behåll TOC lite smalare (820px max) om önskat centered — men som user
     vill hela bredden, låt TOC också bli full */
  article.card > .card-body > nav#toc {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  article.card > .card-body > aside.tldr-box {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Sticky TOC kvar om önskat, men full bredd */
}

/* Tablet/mobile behåller padding men utan max-width */
@media (max-width: 991.98px) {
  article.card > .card-body > * {
    max-width: none !important;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Fullwidth v2: higher-specificity override
   ══════════════════════════════════ */
@media (min-width: 992px) {
  body article.card > .card-body,
  article.card > .card-body.card-body {
    display: block !important;
    grid-template-columns: none !important;
    max-width: none !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
  body article.card > .card-body > *:not(.row):not(figure):not(table):not([class*="row"]),
  body article.card > .card-body > section > *:not(.row):not(figure):not(table):not([class*="row"]) {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body article.card > .card-body > section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body article.card > .card-body > nav#toc,
  body article.card > .card-body > aside.tldr-box {
    max-width: none !important;
    width: 100%;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Mobil byline: date no-wrap + mindre font
   ══════════════════════════════════ */
/* Hela bylinen i en horisontell rad där elementen kan omflödas,
   men enskilda datum-pills förblir odelbara ("2026-04-18" aldrig brutet) */
.article-byline time {
  white-space: nowrap;
  display: inline-block;
}
.article-byline span {
  white-space: nowrap;
  display: inline-block;
}
@media (max-width: 767.98px) {
  .article-byline {
    font-size: 0.76rem !important;
    letter-spacing: 0;
  }
  .article-byline time {
    font-size: 0.72rem;
    padding: 0.05rem 0.35rem;
  }
  .article-byline time i {
    margin-right: 0.2rem;
    font-size: 0.7rem;
  }
  /* Ta bort separatoreffekt mellan span-block (dot) som riskerar
     skapa konstiga radbrytningar */
  .article-byline {
    line-height: 1.55;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Mer luft mellan byline/profilbild och hero-bild
   ══════════════════════════════════ */
.article-byline,
div.article-byline {
  margin-bottom: 1.8rem !important;
  padding-bottom: 1.2rem !important;
}
@media (min-width: 992px) {
  article.card > .card-body > figure.hero-image {
    margin-top: 1.25rem !important;
  }
}
@media (max-width: 991.98px) {
  article.card > .card-body > figure.hero-image {
    margin-top: 1rem !important;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Mer luft: profilbild (byline-avatar) → hero-bild
   ══════════════════════════════════ */
@media (min-width: 992px) {
  article.card > .card-body > figure.hero-image {
    margin-top: 2.5rem !important;
  }
}
@media (max-width: 991.98px) {
  article.card > .card-body > figure.hero-image {
    margin-top: 1.75rem !important;
  }
}
/* Även separation innan byline (efter H1) */
article.card > .card-body > h1 {
  margin-bottom: 1.5rem !important;
}


/* ══════════════════════════════════
   2026-04-18 — Fix: ta bort tomma byline-p och dess gap
   HTML5-parsern auto-stänger <p> när <address> kommer → byline <p> blir tom
   men lämnar kvar border-bottom/padding. Städa upp genom att nolla dessa
   på tomma p.article-byline och flytta separatorn till address istället.
   ══════════════════════════════════ */
article.card > .card-body > p.article-byline:empty,
article.card > .card-body > p.article-byline {
  display: none !important;
}

/* Istället: gruppera address+time som en byline-rad med pre-line separator */
article.card > .card-body > address,
article.card > .card-body > time {
  display: inline-block;
  vertical-align: middle;
}
article.card > .card-body > address {
  font-family: var(--kd-font-ui);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--kd-text-secondary);
}
article.card > .card-body > address + time::before,
article.card > .card-body > time + time::before {
  content: ' · ';
  margin: 0 0.25rem;
  color: var(--kd-text-secondary);
}
article.card > .card-body > address {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Sätt en "byline-rad" spacing runt address+time-blocket via H1 mb + hero mt */
article.card > .card-body > h1 {
  margin-bottom: 1rem !important;
}
article.card > .card-body > time:last-of-type {
  margin-bottom: 0 !important;
}
/* Mindre gap mellan h1 och author/address på desktop */
@media (min-width: 992px) {
  article.card > .card-body > figure.hero-image {
    margin-top: 1.75rem !important;
  }
}
@media (max-width: 991.98px) {
  article.card > .card-body > figure.hero-image {
    margin-top: 1.25rem !important;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Mobil byline fix v2: time är promoterade till card-body-syskon
   (pga HTML5-parser stängde <p>-byline vid <address>), så rikta direkt.
   ══════════════════════════════════ */
article.card > .card-body > time,
article.card > .card-body > address,
article.card > .card-body > address + time,
article.card > .card-body > time + time {
  white-space: nowrap !important;
  display: inline-block;
}
@media (max-width: 767.98px) {
  article.card > .card-body > time,
  article.card > .card-body > address {
    font-size: 0.78rem !important;
    line-height: 1.55;
  }
  article.card > .card-body > time i,
  article.card > .card-body > address i {
    font-size: 0.72rem;
    margin-right: 0.2rem;
  }
  article.card > .card-body > address a {
    font-size: 0.82rem;
  }
  /* Tighter separator margin on mobile */
  article.card > .card-body > address + time::before,
  article.card > .card-body > time + time::before {
    margin: 0 0.18rem !important;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Byline mobile layout: avatar+namn på rad 1, datum på rad 2
   Text " · " kommer redan från HTML (implode separator), så INGA ::before-prickar.
   ══════════════════════════════════ */
/* Ta bort tidigare ::before-duplicated-prickar — HTML har redan " · " textnoder */
article.card > .card-body > address + time::before,
article.card > .card-body > time + time::before,
.article-byline time::before,
.article-byline span::before {
  content: none !important;
  margin: 0 !important;
}

@media (max-width: 767.98px) {
  /* Author på egen rad */
  article.card > .card-body > address,
  article.card > .card-body > p.article-byline > address {
    display: block !important;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
  }
  /* Dölj " · " text-node (som kommer från HTML implode) DIREKT efter address
     på mobil så vi inte får " · " lose inline innan times */
  article.card > .card-body > address + time,
  article.card > .card-body > address + p.article-byline {
    position: relative;
  }
  /* Times kompaktt på rad 2 */
  article.card > .card-body > time {
    font-size: 0.78rem !important;
    white-space: nowrap;
  }
  article.card > .card-body > time i {
    margin-right: 0.2rem;
    font-size: 0.7rem;
  }
}

/* Desktop: behåll inline på en rad med " · " från HTML */
@media (min-width: 768px) {
  article.card > .card-body > address {
    display: inline;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Override mobile: matcha address.d-inline specifikt så det vinner
   ══════════════════════════════════ */
@media (max-width: 767.98px) {
  article.card > .card-body > address.d-inline,
  article.card > .card-body > address {
    display: block !important;
    margin-bottom: 0.3rem !important;
    font-size: 0.9rem !important;
  }
  article.card > .card-body > time.text-body-secondary {
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }
  article.card > .card-body > time.text-body-secondary i {
    font-size: 0.66rem !important;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Scenarios-block (Vilket X passar dig?): kompakt, ljusare länkar
   Långa produkttitlar med 2px cyan underline blir tunga — dämpa till 1px
   och ge mer luft mellan scenariorader.
   ══════════════════════════════════ */
section.scenarios-block {
  margin-bottom: 2rem !important;
}
section.scenarios-block > div,
section.scenarios-block article,
section.scenarios-block .scenario-item {
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--kd-surface);
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius);
}
section.scenarios-block p {
  margin-bottom: 0.35rem;
}
section.scenarios-block a {
  text-decoration: underline;
  text-decoration-thickness: 1px !important;
  text-decoration-color: rgba(0, 212, 255, 0.55) !important;
  text-underline-offset: 2px !important;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}
section.scenarios-block a:hover {
  text-decoration-color: var(--kd-cyan) !important;
  text-decoration-thickness: 2px !important;
}
section.scenarios-block strong,
section.scenarios-block p:first-child {
  font-size: 0.95rem;
}
/* Price-tag badge efter länken om finns */
section.scenarios-block .price-tag,
section.scenarios-block [class*="price"] {
  font-weight: 600;
  font-size: 0.85rem;
}


/* ══════════════════════════════════
   2026-04-18 — Externa länkar (Fördjupning-sektion) styling
   ══════════════════════════════════ */
section.external-links {
  margin-top: 2.5rem !important;
  padding: 1.5rem;
  background: var(--kd-surface);
  border: 1px solid var(--kd-border);
  border-radius: var(--kd-radius);
}
section.external-links h2 {
  font-size: 1.25rem !important;
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  color: var(--kd-text) !important;
}
section.external-links h2 i {
  color: var(--kd-cyan);
}
section.external-links .list-group-item {
  background: transparent;
  border-color: var(--kd-border);
  padding: 0.65rem 0;
  font-family: var(--kd-font-ui);
  font-size: 0.92rem;
}
section.external-links a {
  color: var(--kd-navy);
  text-decoration-thickness: 1px !important;
  text-decoration-color: rgba(0, 212, 255, 0.55) !important;
}
section.external-links a:hover {
  text-decoration-color: var(--kd-cyan) !important;
}


/* ══════════════════════════════════
   2026-04-18 — Fix: FAQ details-innehåll ska gömmas när closed
   Vissa kaskad-regler tvingar display: block även på stängda details.
   Explicit rule återställer default-beteendet.
   ══════════════════════════════════ */
.faq-section details > *:not(summary) {
  display: none;
}
.faq-section details[open] > *:not(summary) {
  display: block;
}
/* Säkerställ att summary alltid är klickbar */
.faq-section details > summary {
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
}
/* Skydda mot att andra block-regler träffar content-divven */
.faq-section details:not([open]) .px-3.pb-3,
.faq-section details:not([open]) [itemscope] {
  display: none !important;
}
.faq-section details[open] .px-3.pb-3,
.faq-section details[open] [itemscope] {
  display: block !important;
}


/* ══════════════════════════════════
   2026-04-18 — Visa "Senast " på mobile (override tidigare d-none/d-md-inline)
   ══════════════════════════════════ */
article.card > .card-body > time span.d-none.d-md-inline,
.article-byline time span.d-none.d-md-inline {
  display: inline !important;
}


/* ══════════════════════════════════
   2026-04-18 — Ta bort streck mellan byline och hero-bild
   ══════════════════════════════════ */
.article-byline,
div.article-byline,
article.card > .card-body > .article-byline {
  border-bottom: none !important;
  padding-bottom: 0.25rem !important;
  margin-bottom: 0.75rem !important;
}
@media (min-width: 992px) {
  article.card > .card-body > figure.hero-image {
    margin-top: 1rem !important;
  }
}
@media (max-width: 991.98px) {
  article.card > .card-body > figure.hero-image {
    margin-top: 0.75rem !important;
  }
}


/* ══════════════════════════════════
   2026-04-18 — Extern länk host via data-attr (skyddar mot grammar polish)
   ══════════════════════════════════ */
.external-link-host::before {
  content: attr(data-host);
}
/* Topplist-kort: säkerställ samma beteende på "Läs mer & köp"-knappen */
.card[data-protected="product-card"] .card-body .mt-auto .btn {
  margin-left: auto !important;
}
.card[data-protected="product-card"] .card-body > h3 {
  margin-bottom: 1.5rem !important;
}


/* ══════════════════════════════════
   2026-04-22 — Fler produkter + topplista kort-layout
   Höger-floatad knapp + margin under produktnamn.
   Specificitet-bump via data-protected så befintliga `.card.h-100.border-0.shadow-sm`-regler
   inte blockerar via !important.
   ══════════════════════════════════ */
.extra-products .card[data-protected="fler-produkter"] .card-body p.h6,
.extra-products .card[data-protected="fler-produkter"] .card-body .h6,
.extra-products .card.h-100.border-0.shadow-sm .card-body p.h6 {
  margin-bottom: 1.5rem !important;
  display: block !important;
}
.extra-products .card[data-protected="fler-produkter"] .card-body > div.d-flex.justify-content-between {
  padding-top: 0.75rem !important;
}
.extra-products .card[data-protected="fler-produkter"] .card-body .btn,
.extra-products .card.h-100.border-0.shadow-sm .card-body .mt-auto .btn {
  margin-left: auto !important;
  margin-right: 0 !important;
}
.article.card .card[data-protected="product-card"] .card-body .mt-auto .btn,
.card[data-protected="product-card"] .card-body .mt-auto .btn {
  margin-left: auto !important;
  margin-right: 0 !important;
}
.card[data-protected="product-card"] .card-body > h3.h4 {
  margin-bottom: 1.5rem !important;
}
/* Fix border-top ovanför Snabba svaret header */
aside.tldr-box .text-uppercase.small, aside.tldr-box .text-uppercase, aside.tldr-box .small.fw-semibold { border-top: none !important; padding-top: 0 !important; margin-top: 0 !important; }

/* V5 visual paritet med V4 — kopdator.se website=45. Saved 2026-05-04 v2. */

/* === LAYOUT: matcha V4 full container-width (1096px max @ 1200 viewport) === */
.v5-article {
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    line-height: 1.65;
    font-size: 1.0625rem;
    font-family: "Source Serif 4", Georgia, serif;
}

/* V4 wraps in <article class="card"> with padding:8px — inherit. V5 needs same wrap. */
main.container > article.v5-article,
main > article.v5-article {
    max-width: none !important;
    width: 100% !important;
    background: #fff;
    border-radius: 1rem;
    padding: 0.5rem !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* V5 inner blocks should fill 1096px (1200 - 12 - 40 - 40 = 1108 close enough) */
.v5-article > *:not(figure):not(h1):not(.article-byline) {
    margin-left: 2rem;
    margin-right: 2rem;
}
.v5-article > h1.v5-title,
.v5-article > .article-byline,
.v5-article > .v5-lead,
.v5-article > figure.hero-image {
    margin-left: 2rem;
    margin-right: 2rem;
}

/* === TYPOGRAPHY: matcha V4 sizes === */
.v5-article h1.v5-title {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 2.6rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: .5rem 0 1rem;
    color: #0c1222;
}
.v5-article h2 {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    letter-spacing: -.005em;
    color: #0c1222;
}
.v5-article h3, .v5-article h4 {
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 700;
    color: #0c1222;
}
.v5-article p { margin: 0 0 1.1rem; line-height: 1.65; }
.v5-article .v5-lead p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    color: #1d2125;
}

/* === HERO IMAGE: matcha V4 (440px tall, full-width, rounded) === */
.v5-article figure.hero-image {
    margin: 0 2rem 1.5rem !important;
}
.v5-article figure.hero-image img,
.v5-article figure.hero-image picture img {
    width: 100% !important;
    max-width: none !important;
    height: 440px;
    object-fit: cover;
    border-radius: .75rem;
}

/* === BYLINE: matcha V4 placement === */
.v5-article .article-byline {
    padding: 1rem 2rem .5rem;
    margin: 0 !important;
    color: #6c757d;
    font-size: .95rem;
    border-bottom: 1px solid #f0f2f5;
}
.v5-article .article-byline img.rounded-circle {
    width: 36px !important;
    height: 36px !important;
}

/* === DECISION-STAGE WIDGET: V4-paritet (subtle accent border) === */
.v5-article .decision-stage-widget,
.v5-article .decision-stage {
    border-left: 4px solid #0d6efd;
    background: #f3f7ff;
    border-radius: .75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 2rem !important;
}
.v5-article .decision-stage-widget h2,
.v5-article .decision-stage h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    margin: 0 0 .75rem;
    font-weight: 600;
}

/* === TLDR: V4-paritet (light bg + 27px padding) === */
.v5-article .tldr-box {
    background: #f3f6fb;
    border: 1px solid #e1e8f0;
    border-radius: .9rem;
    padding: 1.4rem 1.7rem 1.25rem !important;
    margin: 1rem 2rem 2rem !important;
}
.v5-article .tldr-box ul { margin-bottom: .5rem; padding-left: 1.25rem; }
.v5-article .tldr-box ul li { margin-bottom: .35rem; }

/* === EDITORIAL PERSPECTIVE / PROPRIETARY: V4-paritet === */
.v5-article aside.editorial-perspective {
    margin: 1.5rem 2rem !important;
    padding: 1rem 1.25rem;
    border-radius: .75rem;
}
.v5-article aside.proprietary-data {
    margin: 1.5rem 2rem !important;
    border-radius: .9rem;
}

/* === TOC: V4-paritet === */
.v5-article nav#toc.card {
    margin: 1.5rem 2rem !important;
    border-radius: .75rem;
    border: 1px solid #e1e8f0;
}
.v5-article nav#toc .card-header {
    background: #f8f9fb;
    font-weight: 600;
    font-size: .95rem;
}

/* === TOPLIST: 2-column grid på desktop, full bredd === */
.v5-article section.toplist-section,
.v5-article section.v5-toplist {
    margin: 2rem 2rem !important;
}
.v5-article section.toplist-section h2 {
    margin: 0 0 1.25rem;
}
.v5-article .row.row-cols-1.row-cols-md-2 {
    --bs-gutter-x: 1.5rem;
}

/* Toplist product-card V4-paritet: rounded-1rem hover-lift */
.v5-article .card[data-protected="product-card"] {
    border-radius: 1rem;
    border: 1px solid #e1e8f0;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.v5-article .card[data-protected="product-card"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
.v5-article .card[data-protected="product-card"] .card-body {
    padding: 1.25rem 1.5rem !important;
}

/* === COMPARISON TABLE: light header (FIX för osynliga länkar i dark) === */
.v5-article section.comparison,
.v5-article section.v5-comparison {
    margin: 2rem 2rem !important;
}
.v5-article table.table {
    border-radius: .75rem;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.v5-article table.table thead {
    background: #f8f9fb !important;
}
.v5-article table.table thead th,
.v5-article table.table thead tr th {
    background: #f8f9fb !important;
    color: #0c1222 !important;
    border-bottom: 2px solid #dee2e6 !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem .75rem;
    text-align: center;
    vertical-align: middle;
}
.v5-article table.table thead th:first-child {
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .04em;
    color: #6c757d !important;
    text-align: left;
}
.v5-article table.table thead a {
    color: #0d6efd !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}
.v5-article table.table tbody th[scope="row"] {
    font-weight: 700;
    color: #0c1222;
    background: #fff;
    text-align: left;
    width: 18%;
}
.v5-article table.table tbody td {
    padding: .9rem .75rem;
    text-align: center;
    vertical-align: middle;
}

/* === SCENARIOS-BLOCK: V4-paritet (numbered list + light bg) === */
.v5-article section.scenarios-block,
.v5-article section.v5-scenarios {
    margin: 2rem 2rem !important;
}
.v5-article .scenarios-block .list-group-item,
.v5-article .v5-scenarios .list-group-item {
    padding: 1rem 1.25rem;
    border-left: none;
    border-right: none;
}

/* === EXTRA PRODUCTS: V4-paritet === */
.v5-article section.extra-products {
    margin: 2.5rem 2rem !important;
}

/* === FAQ: V4-paritet === */
.v5-article .v5-faq {
    margin: 2rem 2rem !important;
}
.v5-article .v5-faq details {
    border: 1px solid #e1e8f0;
    border-radius: .75rem;
    padding: .75rem 1.25rem;
    margin: .5rem 0;
    background: #fff;
}
.v5-article .v5-faq summary {
    font-weight: 700;
    cursor: pointer;
    padding: .5rem 0;
    font-size: 1.05rem;
    color: #0c1222;
}
.v5-article .v5-faq details[open] summary { margin-bottom: .75rem; }

/* === SECTIONS (article body) === */
.v5-article section.v5-section {
    margin: 2rem 2rem !important;
    scroll-margin-top: 80px;
}
.v5-article section.v5-section h2 {
    margin-top: 0;
}

/* === SOURCES BLOCK: V4-paritet === */
.v5-article section.v5-sources,
.v5-article section#sources,
.v5-article .v5-sources {
    margin: 2.5rem 2rem !important;
    border-top: 2px solid #f0f2f5;
    padding-top: 1.5rem;
}
.v5-article .v5-sources ol,
.v5-article #sources ol {
    padding-left: 1.5rem;
    font-size: .95rem;
}
.v5-article .v5-sources ol li,
.v5-article #sources ol li {
    margin-bottom: .65rem;
    line-height: 1.5;
}
.v5-article .v5-tier,
.v5-article #sources .source-tier {
    display: inline-block;
    font-size: .7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: .5rem;
    padding: .15rem .45rem;
    background: #f0f2f5;
    border-radius: .25rem;
    font-weight: 600;
}

/* === SUP CITATIONS: V4-paritet (smaller + blue) === */
.v5-article sup.v5-cite a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
    font-size: .7em;
    padding: 0 .15em;
}
.v5-article sup.v5-cite a:hover { text-decoration: underline; }

/* === NEXT-STEPS BLOCK === */
.v5-article section.next-steps-block {
    margin: 2rem 2rem !important;
}

/* === ALTERNATIVES BLOCK === */
.v5-article section.v5-alternatives {
    margin: 2rem 2rem !important;
}

/* === METHODOLOGY-NOTE: subtle === */
.v5-article aside.methodology-note {
    margin: 1.5rem 2rem !important;
    padding: 1rem 1.25rem;
    background: #fafbfc;
    border-radius: .5rem;
    font-size: .9rem;
    color: #6c757d;
}

/* === RESPONSIVE: stack on mobile === */
@media (max-width: 768px) {
    .v5-article > *,
    .v5-article > h1.v5-title,
    .v5-article > .article-byline,
    .v5-article > .v5-lead,
    .v5-article > figure.hero-image,
    .v5-article section,
    .v5-article aside,
    .v5-article nav,
    .v5-article .tldr-box,
    .v5-article .decision-stage-widget {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }
    .v5-article h1.v5-title { font-size: 1.85rem; }
    .v5-article h2 { font-size: 1.4rem; }
    .v5-article figure.hero-image img { height: 220px; }
    .v5-article table.table { font-size: .85rem; }
}

/* === Iter#16 visual paritet v3 (2026-05-04) === */

/* TOC: light header (V4-paritet, fix dark-blue ugly) */
.v5-article nav#toc.card,
.v5-article nav.card {
    border-radius: .75rem;
    border: 1px solid #e1e8f0;
    overflow: hidden;
}
.v5-article nav#toc .card-header,
.v5-article nav.card .card-header {
    background: #f8f9fb !important;
    color: #0c1222 !important;
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e1e8f0;
    padding: .9rem 1.25rem;
}
.v5-article nav#toc ol,
.v5-article nav#toc ul,
.v5-article nav.card ol,
.v5-article nav.card ul {
    margin: 0;
    padding: .75rem 1.5rem;
    list-style: decimal;
}
.v5-article nav#toc li,
.v5-article nav.card li {
    border-bottom: none !important;
    padding: .35rem 0;
    font-size: 1rem;
    background: transparent !important;
}
.v5-article nav#toc a,
.v5-article nav.card a {
    color: #0c1222;
    text-decoration: none;
}
.v5-article nav#toc a:hover {
    text-decoration: underline;
    color: #0d6efd;
}

/* FAQ open by default + clean V4-style */
.v5-article .v5-faq details,
.v5-article #faq details {
    border: 1px solid #e1e8f0;
    border-radius: .75rem;
    padding: .85rem 1.25rem;
    margin: .65rem 0;
    background: #fff;
}
.v5-article .v5-faq summary,
.v5-article #faq summary {
    font-weight: 700;
    cursor: pointer;
    padding: .35rem 0;
    font-size: 1.05rem;
    color: #0d6efd;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
.v5-article .v5-faq summary::-webkit-details-marker,
.v5-article #faq summary::-webkit-details-marker { display: none; }
.v5-article .v5-faq summary::after,
.v5-article #faq summary::after {
    content: "−";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
    color: #6c757d;
}
.v5-article .v5-faq details:not([open]) summary::after,
.v5-article #faq details:not([open]) summary::after { content: "+"; }
.v5-article .v5-faq details[open] summary {
    margin-bottom: .65rem;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: .5rem;
}
.v5-article .v5-faq details p,
.v5-article #faq details p {
    margin: 0;
    color: #1f2630;
    line-height: 1.65;
}

/* SOURCES: clean numbered list V4-paritet */
.v5-article section.v5-sources,
.v5-article section#sources,
.v5-article .v5-sources {
    margin: 2.5rem 2rem !important;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f2f5;
}
.v5-article .v5-sources h2,
.v5-article #sources h2 {
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: .04em;
    margin: 0 0 1rem;
}
.v5-article .v5-sources ol,
.v5-article #sources ol {
    padding-left: 1.5rem;
    list-style-type: none;
    counter-reset: src;
    font-size: .95rem;
}
.v5-article .v5-sources ol li,
.v5-article #sources ol li {
    counter-increment: src;
    margin-bottom: .65rem;
    line-height: 1.5;
    padding-left: 2.25rem;
    position: relative;
    border-bottom: 1px dashed #e8ebf0;
    padding-bottom: .65rem;
}
.v5-article .v5-sources ol li::before,
.v5-article #sources ol li::before {
    content: "[" counter(src) "]";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #0c1222;
    font-family: "Outfit", system-ui, sans-serif;
}
.v5-article .v5-sources .v5-tier,
.v5-article #sources .source-tier,
.v5-article .v5-sources small.v5-tier,
.v5-article #sources small.source-tier {
    display: none !important;
}
.v5-article .v5-sources ol li a,
.v5-article #sources ol li a {
    color: #0d6efd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* DECISION-STAGE WIDGET: tighter V4 look */
.v5-article .decision-stage-widget,
.v5-article aside.decision-stage-widget {
    border-left: 4px solid #0d6efd;
    background: #f3f7ff;
    border-radius: .75rem;
    padding: 1.25rem 1.5rem !important;
    margin: 1rem 2rem 2rem !important;
}
.v5-article .decision-stage-widget h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d !important;
    margin: 0 0 .9rem !important;
    font-weight: 700;
}
.v5-article .decision-stage-widget ul,
.v5-article .decision-stage-widget ol,
.v5-article .decision-stage-widget .list-group {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
}
.v5-article .decision-stage-widget li,
.v5-article .decision-stage-widget .list-group-item {
    padding: .85rem 0;
    border-bottom: 1px solid #d8e3f4;
    background: transparent;
    border-left: none;
    border-right: none;
}
.v5-article .decision-stage-widget li:last-child,
.v5-article .decision-stage-widget .list-group-item:last-child {
    border-bottom: none;
}
.v5-article .decision-stage-widget a {
    color: #0c1222;
    text-decoration: none;
    display: block;
    font-size: 1rem;
}
.v5-article .decision-stage-widget a strong {
    font-size: 1.1rem;
    margin-right: .5rem;
    font-weight: 800;
    color: #0c1222;
}
.v5-article .decision-stage-widget a:hover strong { color: #0d6efd; }

/* SIMILAR ARTICLES: V4-paritet card grid */
.v5-article section.similar-articles,
.v5-article section.v5-similar-articles,
.v5-article aside.similar-articles {
    margin: 2.5rem 2rem !important;
}
.v5-article .similar-articles h2,
.v5-article .v5-similar-articles h2 {
    margin-bottom: 1.25rem;
}
.v5-article .similar-articles .card,
.v5-article .v5-similar-articles .card {
    border-radius: .75rem;
    border: 1px solid #e1e8f0;
    transition: transform .2s, box-shadow .2s;
}
.v5-article .similar-articles .card:hover,
.v5-article .v5-similar-articles .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}


/* === Iter#17 visual paritet v4 (2026-05-04) === */

/* TOC: V4-paritet — 3-column scannable card grid (NOT vertical list).
   Mirror site.css `.toc` styling for V5 nav#toc.card markup. */
.v5-article nav#toc.card,
.v5-article nav.card {
    background: #fff !important;
    border: 1px solid #e8ebef !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}
.v5-article nav#toc .card-header,
.v5-article nav.card .card-header {
    background: #fff !important;
    color: #0c1222 !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-bottom: 1px solid #e6eaee !important;
    padding: 1rem 1.25rem !important;
    margin: 0 1.25rem !important;
}
.v5-article nav#toc ul.list-group,
.v5-article nav#toc ol.list-group,
.v5-article nav.card ul.list-group,
.v5-article nav.card ol.list-group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 1.25rem !important;
    margin: 0 !important;
    list-style: none !important;
    background: transparent !important;
}
@media (min-width: 768px) {
    .v5-article nav#toc ul.list-group,
    .v5-article nav#toc ol.list-group,
    .v5-article nav.card ul.list-group,
    .v5-article nav.card ol.list-group {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (min-width: 992px) {
    .v5-article nav#toc ul.list-group,
    .v5-article nav#toc ol.list-group,
    .v5-article nav.card ul.list-group,
    .v5-article nav.card ol.list-group {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}
.v5-article nav#toc .list-group-item,
.v5-article nav.card .list-group-item {
    margin: 0 !important;
    border: 1px solid #e3e8ee !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04) !important;
    transition: transform .06s ease, box-shadow .12s ease, border-color .12s ease;
    list-style: none !important;
}
.v5-article nav#toc .list-group-item:hover,
.v5-article nav.card .list-group-item:hover {
    transform: translateY(-1px);
    border-color: #d8e0e7 !important;
    box-shadow: 0 4px 10px rgba(15,23,42,0.06) !important;
}
.v5-article nav#toc .list-group-item > a,
.v5-article nav.card .list-group-item > a {
    display: block !important;
    width: 100% !important;
    color: #0c1222 !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    hyphens: auto !important;
    text-decoration: none !important;
}
.v5-article nav#toc .list-group-item > a:hover,
.v5-article nav.card .list-group-item > a:hover {
    text-decoration: none !important;
    color: #0d6efd !important;
}

/* PROPRIETARY DATA ("Vårt Index"): now after toplist — give it a clear
   "behind-the-ranking-data" treatment + matching V4 minimal-card look */
.v5-article aside.proprietary-data,
.v5-article aside.proprietary-facts {
    background: #f6f8fa !important;
    border: 1px solid #e1e8f0 !important;
    border-left: 4px solid #6c757d !important;
    border-radius: .75rem !important;
    padding: 1.25rem 1.5rem !important;
    margin: 1.5rem 2rem 2.5rem !important;
}
.v5-article aside.proprietary-data h2,
.v5-article aside.proprietary-facts h2 {
    font-size: .9rem !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d !important;
    margin: 0 0 .9rem !important;
    font-weight: 700;
}

/* EDITORIAL PERSPECTIVE: now after comparison — quote-style refined block */
.v5-article aside.editorial-perspective {
    background: #fffbf3 !important;
    border-left: 4px solid #d4a72c !important;
    border-radius: .75rem !important;
    padding: 1.25rem 1.5rem 1rem !important;
    margin: 2rem 2rem !important;
    font-style: italic;
    color: #3f3623;
}
.v5-article aside.editorial-perspective h2 {
    font-size: .9rem !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c5a1a !important;
    margin: 0 0 .75rem !important;
    font-weight: 700;
    font-style: normal;
}
.v5-article aside.editorial-perspective p {
    margin: 0 0 .65rem !important;
    line-height: 1.65;
}

/* === Iter#19 (2026-05-04): comparison winner cell highlight === */
.v5-article #x-vs-y td.comparison-winner {
    background: #fff8e1 !important;
    box-shadow: inset 0 0 0 2px #f0c45a;
    font-weight: 600;
    position: relative;
}
.v5-article #x-vs-y .comparison-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #b07d18;
    margin-right: .25rem;
}
.v5-article #x-vs-y .comparison-winner-badge .bi {
    font-size: 1rem;
    vertical-align: -0.125em;
}
/* === Iter#19-Φ (2026-05-04): align H1 with body paragraphs === */
.v5-article > h1.v5-title{
    margin-left: 2rem;
    margin-right: 2rem;
    padding-left: 0;
    padding-right: 0;
}
@media (max-width: 575.98px){
    .v5-article > h1.v5-title{
        margin-left: 1rem;
        margin-right: 1rem;
    }
}
/* === Iter#19-AE (2026-05-05): subtle citation styling === */
/* Mindre + dämpad färg + kvarstående klick + EEAT-ankare. */
.v5-article sup.v5-cite{
    font-size: 0.65em;
    line-height: 1;
    color: #94a3b8;
    margin-left: 1px;
    font-weight: 400;
}
.v5-article sup.v5-cite a{
    color: inherit;
    text-decoration: none;
}
.v5-article sup.v5-cite a:hover{
    color: #475569;
    text-decoration: underline;
}

/* Iter#19-CG v5-alternatives mobile card-stack */
.v5-alternatives-table { width: 100%; }
.v5-alternatives-table tbody td[data-label] { vertical-align: middle; }
@media (max-width: 767.98px) {
  .v5-alternatives-table thead { display: none; }
  .v5-alternatives-table tbody tr {
    display: block;
    margin-bottom: 0.85rem;
    border: 1px solid var(--kd-border, #e2e8f0);
    border-radius: var(--kd-radius-sm, 6px);
    padding: 0.65rem 0.85rem;
    background: var(--kd-white, #fff);
  }
  .v5-alternatives-table tbody tr:hover td { background: transparent !important; }
  .v5-alternatives-table tbody td {
    display: block;
    border: none !important;
    padding: 0.2rem 0 !important;
    text-align: left !important;
    background: transparent !important;
  }
  .v5-alternatives-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kd-text-muted, #6b7280);
    font-weight: 600;
    margin-bottom: 0.15rem;
  }
  .v5-alternatives-table tbody td:nth-child(2) { font-weight: 600; padding-top: 0.55rem !important; }
  .v5-alternatives-table tbody td:nth-child(3) { font-weight: 600; color: var(--kd-text); padding-top: 0.4rem !important; padding-bottom: 0.2rem !important; }
  .v5-alternatives-table .table-responsive { padding: 0; }
}
