/* Vinther Consulting — site styles. Consumes Brand design tokens (tokens.css).
   v2.0.0 · Redesign VIN-63 "Rolig selvsikkerhed". Restyler det eksisterende,
   tilgængelige markup (build.mjs) til et mere moderne, editorial udtryk:
   mørk hero, rav som handling, dybere evergreen, mere luft. */

/* Bridge: map semantic names used below to brand tokens (--vc-*). */
:root {
  --font-body: var(--vc-font-body);
  --font-display: var(--vc-font-display);
  --color-text-primary: var(--vc-text-primary);
  --color-text-secondary: var(--vc-text-secondary);
  --color-page-bg: var(--vc-page-bg);
  --color-surface: var(--vc-surface);
  --color-surface-alt: var(--vc-surface-alt);
  --color-brand-primary: var(--vc-brand-primary);
  --color-brand-primary-dark: var(--vc-brand-primary-dark);
  --color-accent: var(--vc-accent);
  --color-accent-hover: var(--vc-accent-hover);
  --color-accent-dark: var(--vc-accent-dark);
  --color-border: var(--vc-border);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body, "Inter", "Segoe UI", Arial, system-ui, sans-serif);
  color: var(--color-text-primary, #14201D);
  background: var(--color-page-bg, #FBF9F4);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display, "Schibsted Grotesk", "Inter", Arial, sans-serif);
  color: var(--color-brand-primary-dark, #0A1F1B);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--color-text-secondary, #54635E); }
a { color: var(--color-brand-primary, #10564A); text-underline-offset: 3px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--alt { background: var(--color-surface-alt, #EDF5F2); }
.section--brand {
  background: var(--color-brand-primary-dark, #0A1F1B);
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(28,130,112,0.35) 0%, rgba(10,31,27,0) 55%);
  color: #fff;
}
.section--brand h1, .section--brand h2, .section--brand h3 { color: #fff; }
.section--brand p { color: rgba(255,255,255,0.82); }
.section--brand .lead { color: rgba(255,255,255,0.9); }

/* Overline — amber eyebrow med lille markør */
.overline {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  font-size: 0.78rem; color: var(--color-brand-primary, #10564A); margin: 0 0 16px;
}
.overline::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--color-accent, #E6A23C);
}
.section--brand .overline { color: var(--color-accent, #E6A23C); }
.overline--muted { color: var(--color-text-secondary, #54635E); }
.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.7;
  max-width: 62ch; color: var(--color-text-secondary);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,244,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border, #E7E1D3);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo img { height: 44px; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--color-text-primary, #14201D); text-decoration: none;
  font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--color-accent, #E6A23C); transition: right .18s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after, .nav a.section-active:not(.btn)::after { right: 0; }
.nav a[aria-current="page"]:not(.btn), .nav a.section-active:not(.btn) { color: var(--color-brand-primary, #10564A); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  color: var(--color-brand-primary-dark); border-radius: var(--vc-radius-md);
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Metode-dropdown (VIN-3649 B1-10) */
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 2px; }
/* VIN-3698 P2-1: hele foraeldrepunktet er selv et 44px hoejt maal (aabner ved hover/fokus/tryk). */
.nav-item > a { min-height: 44px; display: inline-flex; align-items: center; }
.submenu-toggle {
  display: inline-flex; align-items: center; justify-content: center; line-height: 0;
  background: none; border: 0; cursor: pointer; margin: 0;
  min-width: 44px; min-height: 44px; padding: 4px;
  color: var(--color-text-primary, #14201D); border-radius: 6px;
}
.submenu-toggle svg { display: block; transition: transform .18s ease; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; z-index: 60;
  list-style: none; margin: 0; padding: 8px 0; display: none;
  background: var(--color-page-bg, #FBF9F4);
  border: 1px solid var(--color-border, #E7E1D3);
  border-radius: var(--vc-radius-md, 10px);
  box-shadow: var(--vc-shadow-md, 0 6px 20px rgba(10,31,27,0.08));
}
.nav-item.has-submenu:hover > .submenu,
.nav-item.has-submenu.is-open > .submenu,
.submenu-toggle[aria-expanded="true"] ~ .submenu { display: block; }
/* VIN-3698 P2-1: usynlig bro over 10px-gabet, saa musen kan naa submenuen uden at den lukker. */
.nav-item.has-submenu > .submenu::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.submenu li { margin: 0; }
.submenu a { display: flex; align-items: center; min-height: 44px; padding: 10px 20px; font-size: 0.95rem; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--color-text-primary, #14201D); }
.submenu a::after { display: none !important; }
.submenu a:hover, .submenu a[aria-current="page"] { color: var(--color-brand-primary, #10564A); background: rgba(16,86,74,0.06); }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--color-brand-primary-dark); color: #fff;
  padding: 10px 18px; border-radius: var(--vc-radius-md);
  text-decoration: none; font-weight: 600; transition: top .12s ease;
}
.skip-link:focus { top: 12px; }

/* Visible focus */
.btn:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible,
.submenu-toggle:focus-visible,
.submenu a:focus-visible,
.method a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--vc-focus-ring, #1C8270);
  outline-offset: 3px; border-radius: 6px;
}

/* Buttons — rav er den primære, varme handling. Grøn outline som sekundær. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 14px 26px; min-height: 48px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.975rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .1s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--color-accent, #E6A23C); color: var(--color-brand-primary-dark, #0A1F1B);
  box-shadow: 0 6px 18px rgba(230,162,60,0.28);
}
.btn--primary:hover { background: var(--color-accent-hover, #F2B454); box-shadow: 0 10px 26px rgba(230,162,60,0.36); }
.btn--ghost {
  background: transparent; border-color: var(--color-brand-primary, #10564A);
  color: var(--color-brand-primary, #10564A);
}
.btn--ghost:hover { background: var(--color-brand-primary, #10564A); color: #fff; }
.section--brand .btn--ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.section--brand .btn--ghost:hover { background: #fff; color: var(--color-brand-primary-dark, #0A1F1B); }
.hero .btn--ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--color-brand-primary-dark, #0A1F1B); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
/* Header CTA — lidt mere luft om teksten, så den ikke klistrer til pill-kanten */
.site-header .nav .btn--primary { padding: 13px 32px; letter-spacing: 0.01em; }

/* Hero — mørk, immersiv, editorial. Stort display + rav-markør. */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 12vw, 144px) 0 clamp(64px, 10vw, 128px);
  background: var(--color-brand-primary-dark, #0A1F1B);
  background-image:
    radial-gradient(110% 120% at 88% 8%, rgba(28,130,112,0.42) 0%, rgba(10,31,27,0) 52%),
    radial-gradient(90% 120% at 0% 100%, rgba(16,86,74,0.45) 0%, rgba(10,31,27,0) 50%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; top: 50%; right: -120px; transform: translateY(-50%);
  width: 520px; height: 520px;
  background: url('/assets/img/vinther-mark.svg') no-repeat center / contain;
  opacity: 0.10; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .overline { color: var(--color-accent, #E6A23C); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { max-width: 56ch; color: rgba(255,255,255,0.85); }
.hero-trust {
  margin-top: 36px; font-size: 0.9rem; color: rgba(255,255,255,0.72);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.hero-trust strong { color: #fff; font-weight: 600; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent, #E6A23C); display: inline-block; }
@media (max-width: 820px) { .hero::after { opacity: 0.07; right: -160px; } }

/* Section head */
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head .lead { margin-bottom: 0; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface, #fff); border: 1px solid var(--color-border, #E7E1D3);
  border-radius: 20px; padding: 32px; position: relative;
  box-shadow: var(--vc-shadow-sm, 0 1px 2px rgba(10,31,27,0.06));
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--vc-shadow-lg, 0 20px 48px rgba(10,31,27,0.14));
  border-color: var(--vc-green-300, #6FB9AB);
}
.card h3 { color: var(--color-brand-primary-dark, #0A1F1B); margin-bottom: 10px; }
.card p { font-size: 0.975rem; }
.card p:last-child { margin-bottom: 0; }

/* Numbered marker — rav, editorial */
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--color-brand-primary, #10564A);
  background: var(--vc-amber-100, #FBEFD8); border-radius: 14px;
}

/* Package cards */
.pkg { border-top: 3px solid var(--color-accent, #E6A23C); }
.pkg .price { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-brand-primary, #10564A); font-weight: 700; letter-spacing: -0.01em; }
.pkg .for { font-style: italic; color: var(--color-text-primary); margin: 8px 0; }
.pkg .format { font-size: 0.85rem; color: var(--color-text-secondary); margin-top: 14px; }

/* Logo wall */
.logo-wall { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.logo-wall span {
  background: var(--color-surface, #fff); border: 1px solid var(--color-border, #E7E1D3);
  border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.9rem;
  color: var(--color-brand-primary-dark, #0A1F1B);
  transition: border-color .16s ease, transform .16s ease;
}
.logo-wall span:hover { border-color: var(--vc-green-300, #6FB9AB); transform: translateY(-2px); }

/* Contact methods */
.methods { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.method {
  background: var(--color-surface, #fff); border: 1px solid var(--color-border, #E7E1D3);
  border-radius: 20px; padding: 24px 30px; min-width: 240px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.method:hover { transform: translateY(-3px); box-shadow: var(--vc-shadow-md, 0 6px 20px rgba(10,31,27,0.08)); border-color: var(--vc-green-300, #6FB9AB); }
.method .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-secondary); margin-bottom: 6px; }
.method a { font-weight: 600; text-decoration: none; font-size: 1.05rem; display: inline-block; color: var(--color-brand-primary, #10564A); }

/* Footer */
.site-footer {
  background: var(--color-brand-primary-dark, #0A1F1B); color: rgba(255,255,255,0.78);
  padding: 64px 0 48px;
}
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer a { color: #fff; }
/* VIN-3694/3698: footer-separatorernes " · " arvede #54635E (2,71:1) fra p-reglen.
   --vc-green-300 giver 7,51:1 paa den moerke footer -> WCAG 2.1 AA opfyldt. */
.site-footer .footer-links { color: var(--vc-green-300, #6FB9AB); }
.site-footer img { height: 30px; margin-bottom: 14px; }
.site-footer .note { max-width: 42ch; font-size: 0.9rem; color: rgba(255,255,255,0.62); }

@media (max-width: 820px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }

  .site-header .container { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-page-bg, #FBF9F4);
    border-bottom: 1px solid var(--color-border, #E7E1D3);
    box-shadow: var(--vc-shadow-md, 0 6px 20px rgba(10,31,27,0.08));
    padding: 8px 24px 20px; display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--color-border, #E7E1D3); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { text-align: center; margin-top: 14px; }

  /* Dropdown paa mobil: submenu foldes ind under Metode via knappen (ikke hover) */
  .nav-item { display: block; position: relative; }
  .nav-item.has-submenu > a { display: inline-block; border-bottom: 0; }
  .nav-item.has-submenu { border-bottom: 1px solid var(--color-border, #E7E1D3); }
  .submenu-toggle { position: absolute; right: 0; top: 6px; width: 44px; height: 44px; padding: 0; }
  .submenu {
    position: static; display: none; min-width: 0; padding: 0 0 10px 14px;
    background: transparent; border: 0; box-shadow: none;
  }
  .nav-item.has-submenu:hover > .submenu,
  .nav-item.has-submenu:focus-within > .submenu { display: none; }
  /* Højere specificitet end :focus-within ovenfor, så knappen styrer på mobil
     (ellers skjuler focus-within submenuen i samme øjeblik knappen får fokus). */
  .nav-item.has-submenu .submenu-toggle[aria-expanded="true"] ~ .submenu { display: block; }
  .submenu a { padding: 11px 0; border-bottom: 1px solid var(--color-border, #E7E1D3); white-space: normal; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
}

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

/* ===== Organisationen — agent-kort og org-diagram ===== */

.agent-squad { margin-bottom: 56px; }
.agent-squad__label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-brand-primary, #10564A);
  margin: 0 0 24px; padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent, #E6A23C);
}
.agent-squad__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}

.agent-card {
  background: var(--color-surface, #FBF9F4);
  border: 1px solid var(--color-border, #E7E1D3);
  border-radius: var(--vc-radius-md, 12px);
  padding: 24px; display: flex; gap: 20px; align-items: flex-start;
}
.agent-photo {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.agent-photo--placeholder {
  background: var(--color-brand-primary, #10564A);
  display: flex; align-items: center; justify-content: center;
}
.agent-photo--placeholder span {
  color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em;
}
.agent-card__body { flex: 1; min-width: 0; }
/* Rolle-overline i holdkort: lange ord (fx TRANSFORMATIONSEKSPERT) skal
   kunne brydes, saa teksten ikke lober ud over kortets kant. */
.agent-card__body .overline {
  display: flex; flex-wrap: wrap; max-width: 100%;
  letter-spacing: 0.1em; overflow-wrap: anywhere;
}
.agent-card__header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.agent-card__header strong { font-size: 1rem; font-weight: 600; color: var(--color-text-primary, #14201D); overflow-wrap: anywhere; }

.agent-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  padding: 1px 7px; border-radius: 20px; line-height: 1.5;
}
.agent-badge--human { background: #E6F4EF; color: var(--color-brand-primary, #10564A); }
.agent-badge--ai    {
  background: transparent; color: var(--color-brand-primary, #10564A);
  border: 1px solid var(--color-accent, #E6A23C);
}

.agent-tagline {
  font-size: 0.85rem; font-weight: 600; color: var(--color-text-primary, #14201D);
  margin: 0 0 6px; font-style: italic;
}
.agent-bio { font-size: 0.85rem; color: var(--color-text-secondary, #54635E); margin: 0; }

/* Kontakt: stifter-kort (VIN-1661) — genbruger holdkortets sprog i lidt stoerre format */
.founder-card {
  background: var(--color-surface, #FBF9F4);
  border: 1px solid var(--color-border, #E7E1D3);
  border-radius: var(--vc-radius-md, 12px);
  padding: 28px; display: flex; gap: 24px; align-items: center;
  max-width: 640px;
}
.founder-photo {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.founder-card__body { flex: 1; min-width: 0; }
.founder-card__header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.founder-card__header strong { font-size: 1.1rem; font-weight: 600; color: var(--color-text-primary, #14201D); }
.founder-bio { font-size: 0.92rem; color: var(--color-text-secondary, #54635E); margin: 0 0 12px; line-height: 1.55; }
@media (max-width: 560px) {
  .founder-card { flex-direction: column; text-align: center; align-items: center; }
  .founder-card__header { justify-content: center; }
}

/* org-diagram */
.org-chart-wrap { overflow-x: auto; }
.org-tree, .org-children { list-style: none; margin: 0; padding: 0; }
.org-tree { display: flex; flex-wrap: wrap; gap: 32px; }
.org-root { flex: 1 0 220px; }
.org-node {
  background: #fff; border: 2px solid var(--color-brand-primary, #10564A);
  border-radius: var(--vc-radius-md, 12px);
  padding: 14px 18px; margin-bottom: 8px; min-width: 0;
}
.org-node--root { border-color: var(--color-accent, #E6A23C); border-width: 3px; }
.org-name {
  display: block; font-weight: 700; font-size: 0.95rem;
  color: var(--color-text-primary, #14201D);
  overflow-wrap: anywhere; hyphens: auto;
}
.org-role {
  display: block; font-size: 0.78rem; color: var(--color-text-secondary, #54635E);
  margin-top: 2px; overflow-wrap: anywhere; hyphens: auto;
}
.org-badge {
  display: inline-block; font-size: 0.55rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
  padding: 0 5px; border-radius: 8px; margin-left: 7px; vertical-align: middle;
  line-height: 1.7;
}
.org-badge--human { background: #E6F4EF; color: var(--color-brand-primary, #10564A); }
.org-badge--ai    {
  background: transparent; color: var(--color-brand-primary, #10564A);
  border: 1px solid var(--color-accent, #E6A23C);
}
.org-children {
  padding-left: 20px;
  border-left: 2px dashed var(--color-border, #E7E1D3);
  margin-left: 18px;
}
.org-children > li { margin-top: 8px; }

@media (max-width: 600px) {
  .agent-card { flex-direction: column; }
  .agent-squad__grid { grid-template-columns: 1fr; }
}

/* ===== Viden — artikelindex og long-form artikel (VIN-1527, designretning §6) ===== */

/* Indexkort med topbillede */
.card--article { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--article .card-media { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; }
.card--article .card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.card--article .card-cat {
  font-size: var(--vc-small); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-brand-primary, #10564A);
}
.card--article h3 { margin: 0; color: var(--color-brand-primary-dark, #0A1F1B); }
.card--article .card-meta { margin-top: auto; font-size: var(--vc-small); color: var(--color-text-secondary, #54635E); }
.card--article a.card-link, .card--tool a.card-link, .card--link a.card-link { position: absolute; inset: 0; z-index: 1; }

/* Klikbare ydelseskort (VIN-2744): "Se ydelsen"-affordance + hover-accent */
.card--link { cursor: pointer; }
.card-more {
  margin-top: 18px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; color: var(--color-brand-primary, #10564A);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-more__arrow { font-size: 1.25rem; line-height: 1; transition: transform .16s ease; }
.card--link:hover .card-more__arrow { transform: translateX(4px); }

/* Ydelse-detalje: "Kort fortalt"-faktaraekke (VIN-2744) */
.service-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--color-border, #E7E1D3);
  border: 1px solid var(--color-border, #E7E1D3); border-radius: var(--vc-radius-md, 12px);
  overflow: hidden;
}
.service-fact { background: var(--color-surface, #fff); padding: 20px 24px; }
.service-fact__label {
  display: block; font-size: var(--vc-small); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-brand-primary, #10564A); margin-bottom: 6px;
}
.service-fact__value { display: block; font-size: 1.02rem; color: var(--color-text-primary, #14201D); font-weight: 600; }

/* Artikelhoved */
.article-head { padding: clamp(56px, 9vw, 96px) 0 0; }
.article-head .container { max-width: 720px; }
.article-cat {
  font-size: var(--vc-small); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-brand-primary, #10564A); margin-bottom: 12px;
}
.article-head h1 { color: var(--color-brand-primary-dark, #0A1F1B); max-width: 20ch; }
.article-dek { font-size: var(--vc-body-lg); line-height: var(--vc-body-lg-lh); color: var(--color-text-secondary, #54635E); margin-top: 16px; }
.article-meta { margin-top: 20px; font-size: var(--vc-small); color: var(--color-text-secondary, #54635E); }
.article-meta .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent, #E6A23C); margin: 0 10px; vertical-align: middle; }

/* Hero-billede */
.article-hero-img { max-width: 900px; margin: 40px auto 0; padding: 0 24px; }
.article-hero-img img { width: 100%; border-radius: var(--vc-radius-lg, 20px); box-shadow: var(--vc-shadow-md); display: block; }

/* Brødtekst */
.article-body { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 9vw, 96px); }
.article-body .container { max-width: 68ch; }
.article-body h2 { font-family: var(--font-display); color: var(--color-brand-primary-dark, #0A1F1B); margin: 48px 0 16px; }
.article-body p { font-size: var(--vc-body-lg); line-height: var(--vc-body-lg-lh); color: var(--color-text-primary, #14201D); margin-bottom: 20px; }
.article-body figure { margin: 40px 0; }
.article-body figure img { width: 100%; border-radius: var(--vc-radius-md, 12px); border: 1px solid var(--color-border, #E7E1D3); display: block; }
.article-body figcaption { font-size: var(--vc-small); color: var(--color-text-secondary, #54635E); margin-top: 10px; }
/* VIN-3684 B3-08/B3-11: landing-figur (havnekort F1 / F4) — inline SVG skal skaleres til container, saa den ikke overloeber paa mobil. */
.landing-figure { margin: 0 auto; max-width: 760px; }
.landing-figure svg, .landing-figure img { width: 100%; height: auto; display: block; }
.landing-figure figcaption { font-size: var(--vc-small); color: var(--color-text-secondary, #54635E); margin-top: 14px; text-align: center; max-width: 60ch; margin-left: auto; margin-right: auto; }
.article-quote {
  margin: 40px 0; padding: 8px 0 8px 24px; border-left: 4px solid var(--color-accent, #E6A23C);
  font-family: var(--font-display); font-size: 1.6rem; line-height: 2.1rem; font-weight: 600;
  color: var(--color-brand-primary, #10564A);
}

/* Kildeblok */
.article-sources { background: var(--color-surface-alt, #EDF5F2); }
.article-sources .container { max-width: 68ch; }
.article-sources h2 { margin-bottom: 16px; }
.article-sources ul { list-style: none; margin: 0; padding: 0; }
.article-sources li { font-size: var(--vc-small); line-height: var(--vc-small-lh); color: var(--color-text-secondary, #54635E); padding: 8px 0; border-bottom: 1px solid var(--color-border, #E7E1D3); }
.article-sources .source-note { font-style: italic; font-size: var(--vc-caption); color: var(--color-text-secondary, #54635E); margin-top: 16px; }

@media (max-width: 820px) { .article-quote { font-size: 1.35rem; line-height: 1.8rem; } }

/* Viden-index: artikelkort venstrestilles med fast bredde, saa ét enkelt kort
   staar paent alene i stedet for at efterlade et tomt 3-kolonne-gitter (spec §2/§8).
   Rammer kun gitre med artikelkort, aldrig cases-gitteret. */
.grid--3:has(> .card--article) {
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 360px));
  justify-content: start;
}

/* ===== Vaerktoejer — hub, skabelon, stepper, navigator (VIN-1820) ===== */
/* Ready-to-wire fra designretning §11 (Freja/CD), kun tokens. */

/* Hub-kort */
.tool-grid { align-items: stretch; }
.card--tool { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--tool .tool-icon {
  aspect-ratio: 16 / 7; display: grid; place-items: center;
  background: var(--vc-surface-alt); color: var(--vc-brand-primary);
}
.card--tool .tool-icon svg { width: 56px; height: 56px; }
.card--tool .card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.card--tool .card-cat {
  font-size: var(--vc-small); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--vc-brand-primary); display: flex; align-items: center; gap: 8px;
}
.card--tool h3 { margin: 0; color: var(--vc-brand-primary-dark); }
.card--tool .card-meta { margin-top: auto; font-size: var(--vc-small); color: var(--vc-text-secondary); }
.tool-badge {
  display: inline-block; font-size: var(--vc-caption); font-weight: 600; letter-spacing: 0.02em;
  padding: 2px 10px; border-radius: var(--vc-radius-pill);
  background: var(--vc-amber-100); color: var(--vc-brand-primary); text-transform: none;
}
.tool-badge--soon { background: var(--vc-green-50); color: var(--vc-text-secondary); }

/* "Saadan bruger du"-trin */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-step { display: flex; gap: 14px; align-items: flex-start; }
.how-step__num {
  flex: none; width: 32px; height: 32px; border-radius: var(--vc-radius-pill);
  display: grid; place-items: center; font-weight: 700;
  background: var(--vc-surface-alt); color: var(--vc-brand-primary);
}
.how-step strong { color: var(--vc-brand-primary-dark); }
.how-step p { margin: 4px 0 0; font-size: var(--vc-small); color: var(--vc-text-secondary); }
.tool-privacy { margin-top: 24px; font-size: var(--vc-small); color: var(--vc-text-secondary); }

/* Vaerktoejshoved (lyst) + meta-chips */
.tool-head { padding: clamp(56px, 9vw, 96px) 0 0; }
.tool-head .container { max-width: 760px; }
.tool-cat {
  font-size: var(--vc-small); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--vc-brand-primary); margin-bottom: 12px;
}
.tool-head h1 { color: var(--vc-brand-primary-dark); max-width: 22ch; }
.tool-dek { font-size: var(--vc-body-lg); line-height: var(--vc-body-lg-lh); color: var(--vc-text-secondary); margin-top: 16px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tool-chip {
  font-size: var(--vc-small); color: var(--vc-text-secondary);
  background: var(--vc-surface-alt); border: 1px solid var(--vc-border);
  padding: 4px 12px; border-radius: var(--vc-radius-pill);
}

/* Arbejdsflade */
.tool-app {
  max-width: 760px; margin: 0 auto; background: var(--vc-surface);
  border: 1px solid var(--vc-border); border-radius: var(--vc-radius-lg);
  box-shadow: var(--vc-shadow-md); padding: clamp(24px, 4vw, 40px);
  /* Kompensér for den sticky site-header (74px) ved scrollIntoView, så indholdets top ikke klippes. */
  scroll-margin-top: 90px;
}
.tool-step h2 { color: var(--vc-brand-primary-dark); margin: 0 0 12px; }
.tool-input {
  width: 100%; font: inherit; color: var(--vc-text-primary);
  padding: 12px 14px; border: 1.5px solid var(--vc-border); border-radius: var(--vc-radius-md);
  background: var(--vc-surface); box-sizing: border-box;
}
.tool-input:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; border-color: var(--vc-accent); }
textarea.tool-input { min-height: 90px; resize: vertical; }

/* Stepper: progress */
.tool-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.tool-progress-bar { flex: 1; height: 8px; border-radius: var(--vc-radius-pill); background: var(--vc-green-100); overflow: hidden; }
.tool-progress-fill { height: 100%; background: linear-gradient(90deg, var(--vc-green-500), var(--vc-amber-500)); border-radius: var(--vc-radius-pill); transition: width .3s ease; }
.tool-progress-label { font-size: var(--vc-small); color: var(--vc-text-secondary); white-space: nowrap; }

/* Spoergsmaal + valg-kort */
.tool-question { margin-bottom: 24px; }
.tool-question h3 { color: var(--vc-brand-primary-dark); margin: 0 0 8px; }
.tool-question .help { font-size: var(--vc-small); color: var(--vc-text-secondary); margin: 0 0 16px; }
.choice-grid { display: grid; gap: 12px; }
.choice-grid--inline { grid-template-columns: 1fr 1fr; }
.choice-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; cursor: pointer; text-align: left;
  background: var(--vc-surface); border: 1.5px solid var(--vc-border); border-radius: var(--vc-radius-md);
  transition: border-color .15s ease, background .15s ease; font: inherit; width: 100%;
}
.choice-card:hover { border-color: var(--vc-accent); }
.choice-card[aria-checked="true"], .choice-card.is-selected {
  border-color: var(--vc-accent); background: var(--vc-surface-alt);
}
.choice-card:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; }
.choice-body { display: flex; flex-direction: column; gap: 2px; }
.choice-title { font-weight: 600; color: var(--vc-text-primary); }
.choice-desc { font-size: var(--vc-small); color: var(--vc-text-secondary); }

/* VIN-1944: venligere spoergsmaals-flow (gruppe-ikon, afkrydsningsliste, luftigere resultat) */
/* Gruppe-eyebrow med roligt line-ikon (scoper kun inde i trinnet, ikke hero-eyebrow) */
.tool-step .tool-cat {
  display: flex; align-items: center; gap: 9px;
  color: var(--vc-green-500); font-weight: var(--vc-weight-semibold);
  text-transform: none; letter-spacing: .02em; font-size: var(--vc-small);
}
.tool-step .tool-cat-icon { display: inline-flex; color: var(--vc-green-500); }
.tool-step .tool-cat-icon svg { display: block; }
.tool-step > .help { font-size: var(--vc-body); color: var(--vc-text-secondary); margin-bottom: 20px; }

/* Afkrydsningsliste: ét toggle-kort pr. punkt, roligt i hvile, groent ved valg */
.choice-grid--checklist { grid-template-columns: 1fr; gap: 10px; }
.choice-grid--checklist .choice-card { gap: 14px; padding: 15px 18px; min-height: 44px; }
.choice-grid--checklist .choice-card:hover { border-color: var(--vc-green-300); background: var(--vc-green-50); }
.choice-grid--checklist .choice-card[aria-checked="true"] {
  border-color: var(--vc-green-500); background: var(--vc-green-50);
  box-shadow: inset 3px 0 0 var(--vc-green-500);
}
.choice-card .box {
  width: 22px; height: 22px; border-radius: 6px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--vc-border); display: grid; place-items: center;
  color: transparent; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.choice-card[aria-checked="true"] .box {
  background: var(--vc-green-500); border-color: var(--vc-green-500); color: #fff;
}
.choice-card .box svg { display: block; }
.choice-card--none { margin-top: 6px; border-style: dashed; }

/* Stepper-navigation */
.tool-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.tool-incomplete { color: var(--vc-danger); font-size: var(--vc-small); margin: 16px 0 0; }

/* Resultat-kort */
.result-level {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: var(--vc-radius-md); border: 1px solid var(--vc-border); margin-bottom: 20px;
  background: var(--vc-surface-alt);
}
.result-level .level-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--vc-radius-pill); }
.result-level .level-label { font-family: var(--vc-font-display); font-weight: 700; font-size: var(--vc-h3); }
/* VIN-1944: blOd baggrundstone pr. niveau, saa resultatet foeles roligt frem for et raat banner */
.result-level--danger  { border-left: 4px solid var(--vc-danger); background: var(--vc-danger-50); }
.result-level--danger .level-icon { color: var(--vc-danger); }
.result-level--warning { border-left: 4px solid var(--vc-warning); background: var(--vc-amber-100); }
.result-level--warning .level-icon { color: var(--vc-warning); }
.result-level--info    { border-left: 4px solid var(--vc-info); background: var(--vc-green-50); }
.result-level--info .level-icon { color: var(--vc-info); }
.result-level--success { border-left: 4px solid var(--vc-success); background: var(--vc-green-50); }
.result-level--success .level-icon { color: var(--vc-success); }
/* VIN-1944: pligter/naeste-skridt som luftige kort frem for én lang liste */
.result-section {
  margin: 16px 0; padding: 20px 22px;
  background: var(--vc-surface); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-md);
}
.result-section h4 { color: var(--vc-brand-primary-dark); margin: 0 0 10px; }
.tool-bullets { list-style: none; margin: 0; padding: 0; }
.tool-bullets li { font-size: var(--vc-body); color: var(--vc-text-primary); padding: 8px 0 8px 22px; border-bottom: 1px solid var(--vc-border); position: relative; }
.tool-bullets li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--vc-accent); }
.result-when { font-size: var(--vc-small); color: var(--vc-brand-primary); margin: 12px 0 0; }
.tool-note { background: var(--vc-surface-alt); border-radius: var(--vc-radius-md); padding: 14px 16px; font-size: var(--vc-small); color: var(--vc-text-secondary); margin: 16px 0; }
.tool-note--danger { border-left: 4px solid var(--vc-danger); }
.tool-asof { font-size: var(--vc-small); color: var(--vc-text-secondary); margin-top: 24px; font-style: italic; }
.tool-actions { flex-wrap: wrap; margin-top: 24px; }
.tool-bridge { border-top: 1px solid var(--vc-border); padding-top: 20px; }

/* KURS AI-strategi-selvtest (VIN-2605): mini-status + neutral tone + "Ved ikke"-kort + blOd paradoks-note.
   Kun eksisterende tokens (ingen ny hex), saa paritetsguarden forbliver groen. */
.tool-note--warning { border-left: 4px solid var(--vc-warning); background: var(--vc-amber-100); }
.result-level--neutral { border-left: 4px solid var(--vc-ink-400); background: var(--vc-surface-alt); }
.result-level--neutral .level-icon { color: var(--vc-text-secondary); }
/* "Ved ikke": roligt, tydeligt sekundaert til de tre svarkort, men altid synligt/vaelgbart */
.choice-card--vedikke { border-style: dashed; }
.choice-card--vedikke .choice-title { color: var(--vc-text-secondary); font-weight: var(--vc-weight-medium); }
/* Mini-status: fire linjer, farve ALTID ledsaget af tekst (WCAG farve-uafhaengighed) */
.kurs-ministatus { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kurs-ministatus .result-level { margin-bottom: 0; padding: 12px 16px; gap: 0; align-items: flex-start; }
.kurs-status__dim { display: block; font-weight: 600; color: var(--vc-text-primary); }
.kurs-status__text { display: block; margin-top: 2px; font-size: var(--vc-small); color: var(--vc-text-secondary); }

/* ===== Dialogbaseret risikoanalyse (VIN-2004) — samtale + live analyse-panel ===== */
/* Modulet monteres i .tool-app; her nulstiller vi kort-paddingen saa samtalen faar plads. */
.tool-app:has(.dialog-shell) { padding: 0; background: transparent; border: none; box-shadow: none; max-width: 1080px; }
.dialog-shell { display: grid; grid-template-columns: 1fr; gap: var(--vc-space-5, 20px); }
@media (min-width: 960px) {
  /* align-items: stretch (default) er bevidst: aside faar fuld raekkehoejde, saa det sticky
     panel har plads at rejse i, mens man scroller gennem den laengere samtale-kolonne. */
  .dialog-shell { grid-template-columns: minmax(0, 62fr) minmax(260px, 38fr); gap: var(--vc-space-7, 40px); }
}

/* Samtale-kolonne */
.dialog-convo {
  background: var(--vc-surface); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-lg); box-shadow: var(--vc-shadow-md);
  padding: clamp(20px, 3vw, 32px);
}
.dialog-log { display: flex; flex-direction: column; gap: 14px; }
.chat-msg { max-width: 88%; }
.chat-msg p { margin: 0; }
.chat-msg p + p { margin-top: 6px; }
.chat-msg--bot {
  align-self: flex-start; background: var(--vc-surface-alt); color: var(--vc-text-primary);
  border-radius: var(--vc-radius-lg); border-top-left-radius: 6px;
  padding: 14px 18px; font-size: var(--vc-body);
}
.chat-msg__intro { color: var(--vc-text-secondary); font-size: var(--vc-small); }
.chat-msg--ack { background: transparent; color: var(--vc-text-secondary); padding: 2px 4px; font-size: var(--vc-small); }
.chat-msg--user {
  align-self: flex-end; background: var(--vc-green-700); color: var(--vc-white);
  border-radius: var(--vc-radius-lg); border-top-right-radius: 6px;
  padding: 12px 18px; font-size: var(--vc-body); text-align: left; border: none; cursor: default;
}
.chat-msg--user p { color: var(--vc-text-on-brand); } /* a11y: laes eget svar paa moerk brand-boble (global p-farve ville faa 1.3:1) */
.chat-msg--editable { cursor: pointer; }
.chat-msg--editable:hover { background: var(--vc-green-800); }
.chat-msg--editable:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; }
.chat-msg--active { align-self: stretch; max-width: 100%; }

.chat-answer { margin: 4px 0 2px; }
.chat-q { margin-bottom: 14px; }
.chat-q:last-child { margin-bottom: 0; }
.chat-q__label { font-weight: 600; color: var(--vc-text-primary); margin: 0 0 8px; }
.choice-grid--chat { margin-top: 6px; }
.choice-grid--chat .choice-card { min-height: 44px; }
.chat-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.chat-actions .btn { min-height: 44px; }
.chat-incomplete { margin: 8px 0 0; }
.tool-incomplete {
  font-size: var(--vc-small); color: var(--vc-danger); font-weight: 600;
  background: var(--vc-danger-50); border-radius: var(--vc-radius-md); padding: 10px 14px;
}

/* Live analyse-panel */
.dialog-panel__inner { position: sticky; top: 88px; }
/* Desktop: bjaelken er skjult; kortet vises altid fuldt. */
.dialog-panel__toggle { display: none; }
@media (max-width: 959px) {
  /* Eksplicit grid-placering: panel-bjaelken oeverst, samtalen under. (order/flex-order
     reorderede ikke i denne motor; eksplicit grid-row er deterministisk.) */
  /* Bjaelken pinner UNDER den sticky site-header (74px), ikke bag den. */
  /* Sticky-omraadet skal vaere ugennemsigtigt, saa den vedvarende rude ikke
     faar samtalen til at skinne igennem under scroll. */
  .dialog-panel { grid-row: 1; position: sticky; top: 74px; z-index: 5; background: var(--color-page-bg); padding-bottom: 8px; }
  .dialog-panel__inner .dialog-panel__privacy { margin-top: 8px; }
  .dialog-convo { grid-row: 2; }
  .dialog-panel__inner { position: static; }

  /* Sticky sammenfoldelig bjaelke — niveau + emne-dots + chevron, altid synlig. */
  .dialog-panel__toggle {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px;
    font: inherit; text-align: left; cursor: pointer;
    background: var(--vc-surface); border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius-md); box-shadow: var(--vc-shadow-md); padding: 8px 14px;
  }
  .dialog-panel__toggle:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; }
  .dialog-panel__toggle-level { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
  .dialog-panel__toggle-level.panel-level--pending { color: var(--vc-text-secondary); }
  .dialog-panel__toggle-level.panel-level--tone-danger  .panel-level__icon { color: var(--vc-danger); background: var(--vc-danger-muted); }
  .dialog-panel__toggle-level.panel-level--tone-warning .panel-level__icon { color: var(--vc-warning); background: var(--vc-warning-muted); }
  .dialog-panel__toggle-level.panel-level--tone-info    .panel-level__icon { color: var(--vc-info); background: var(--vc-info-muted); }
  .dialog-panel__toggle-level.panel-level--tone-success .panel-level__icon { color: var(--vc-success); background: var(--vc-success-muted); }
  .dialog-panel__toggle-level .panel-level__icon { width: 26px; height: 26px; }
  .dialog-panel__toggle-level .panel-level__icon svg { width: 16px; height: 16px; }
  .dialog-panel__toggle-text {
    font-size: var(--vc-small); font-weight: 600; color: var(--vc-text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .dialog-panel__toggle-dots { display: flex; gap: 6px; flex: none; }
  .dialog-panel__chevron { flex: none; display: grid; place-items: center; color: var(--vc-text-secondary); transition: transform 150ms ease; }
  .dialog-panel__toggle[aria-expanded="true"] .dialog-panel__chevron { transform: rotate(180deg); }

  /* Kollapset som default paa mobil: kun bjaelken vises. Tap folder kortet ud.
     Hoejere specificitet (.dialog-panel__inner ...) saa den slaar base-reglens display:flex. */
  .dialog-panel__inner .dialog-panel__card { display: none; margin-top: 10px; box-shadow: var(--vc-shadow-md); }
  .dialog-panel__inner.is-open .dialog-panel__card { display: flex; }
  /* Niveau + fremdrift lever i bjaelken paa mobil — undgaa dublering i kortet. */
  .dialog-panel__inner.is-open .dialog-panel__card > .panel-level,
  .dialog-panel__inner.is-open .dialog-panel__card > .panel-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dialog-panel__chevron { transition: none; }
}
.dialog-panel__card {
  background: var(--vc-surface); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-md); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.dialog-panel__title {
  font-family: var(--vc-font-display); font-weight: 700; font-size: var(--vc-body);
  color: var(--vc-brand-primary-dark); margin: 0;
}
/* Vedvarende privatlivs-rude (VIN-2110): diskret, uden for kortet saa den bliver staaende
   hele samtalen — ogsaa naar mobil-kortet er kollapset. Kun eksisterende tokens. */
.dialog-panel__privacy {
  margin: 10px 0 0; padding: 0 2px;
  font-size: var(--vc-caption); line-height: var(--vc-caption-lh);
  color: var(--vc-text-secondary);
}

/* Foreloebigt niveau — daempet "ser ud til"-variant (aldrig falsk-endeligt) */
.panel-level { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--vc-radius-md); background: var(--vc-surface-alt); }
.panel-level--pending { color: var(--vc-text-secondary); font-size: var(--vc-small); }
.panel-level__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vc-ink-400); flex: none; }
.panel-level__icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: var(--vc-radius-pill); }
.panel-level__icon svg { width: 18px; height: 18px; }
.panel-level__body { display: flex; flex-direction: column; line-height: 1.2; }
.panel-level__prefix { font-size: var(--vc-caption); text-transform: uppercase; letter-spacing: 0.04em; color: var(--vc-text-secondary); }
.panel-level__label { font-family: var(--vc-font-display); font-weight: 700; font-size: var(--vc-body); color: var(--vc-text-primary); }
.panel-level--tone-danger  { background: var(--vc-danger-muted); }
.panel-level--tone-danger  .panel-level__icon { color: var(--vc-danger); }
.panel-level--tone-warning { background: var(--vc-warning-muted); }
.panel-level--tone-warning .panel-level__icon { color: var(--vc-warning); }
.panel-level--tone-info    { background: var(--vc-info-muted); }
.panel-level--tone-info    .panel-level__icon { color: var(--vc-info); }
.panel-level--tone-success { background: var(--vc-success-muted); }
.panel-level--tone-success .panel-level__icon { color: var(--vc-success); }
.panel-level.is-updated { animation: panelHighlight 180ms ease-out; }
@keyframes panelHighlight { from { box-shadow: 0 0 0 3px var(--vc-focus-ring); } to { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .panel-level.is-updated { animation: none; } }

/* Det I har fortalt */
.panel-facts__head, .panel-progress__head { font-size: var(--vc-caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--vc-text-secondary); margin: 0 0 8px; }
.panel-facts__empty { font-size: var(--vc-small); color: var(--vc-text-secondary); margin: 0; }
.panel-facts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.panel-fact {
  font: inherit; font-size: var(--vc-small); text-align: left; width: 100%; cursor: pointer;
  background: var(--vc-surface-alt); border: 1px solid var(--vc-border); border-radius: var(--vc-radius-md);
  color: var(--vc-text-primary); padding: 8px 12px; min-height: 44px;
  display: flex; align-items: center;
}
.panel-fact:hover { border-color: var(--vc-accent); }
.panel-fact:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; }

/* Emne-fremdrift */
.panel-progress__dots { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--vc-green-100); border: 1px solid var(--vc-border); }
.panel-dot.is-done { background: var(--vc-green-500); border-color: var(--vc-green-500); }
.panel-dot.is-active { background: var(--vc-accent); border-color: var(--vc-brand-primary); }

/* Navigator: rolle/filter-chips */
.nav-block { margin-bottom: 24px; }
.nav-label { font-size: var(--vc-small); font-weight: 700; color: var(--vc-brand-primary-dark); margin: 0 0 8px; }
.nav-heading { color: var(--vc-brand-primary-dark); margin: 0 0 12px; }
.filter-group { margin-bottom: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.filter-chip {
  font: inherit; font-size: var(--vc-small); font-weight: 500; padding: 6px 14px; cursor: pointer;
  background: var(--vc-surface); border: 1.5px solid var(--vc-border); border-radius: var(--vc-radius-pill);
  color: var(--vc-text-secondary);
}
.filter-chip[aria-pressed="true"], .filter-chip.is-active {
  background: var(--vc-accent); border-color: var(--vc-accent); color: var(--vc-green-900);
}
.filter-chip:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; }
.nav-clear { font: inherit; font-size: var(--vc-small); background: none; border: none; color: var(--vc-brand-primary); cursor: pointer; text-decoration: underline; padding: 4px 0; }

/* Navigator: tidslinje */
.aiact-timeline { position: relative; margin: 24px 0; padding-left: 28px; border-left: 2px solid var(--vc-green-100); }
.aiact-milestone { position: relative; padding: 0 0 24px; }
.aiact-milestone::before { content: ""; position: absolute; left: -35px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--vc-accent); box-shadow: 0 0 0 4px var(--vc-page-bg); }
.aiact-date { font-size: var(--vc-small); font-weight: 700; color: var(--vc-brand-primary); margin: 0; }
.aiact-milestone h4 { margin: 4px 0 4px; color: var(--vc-brand-primary-dark); }
.aiact-who { font-size: var(--vc-small); color: var(--vc-brand-primary); margin: 0 0 6px; }
.aiact-milestone p { font-size: var(--vc-small); color: var(--vc-text-secondary); margin: 0; }

/* Navigator: pligt-accordion */
.obligation { border: 1px solid var(--vc-border); border-radius: var(--vc-radius-md); margin-bottom: 10px; background: var(--vc-surface); }
.obligation summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.obligation summary::-webkit-details-marker { display: none; }
.obligation summary:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; }
.obligation .ob-title { font-weight: 600; color: var(--vc-text-primary); flex: 1; min-width: 180px; }
.ob-badge { font-size: var(--vc-caption); font-weight: 600; padding: 2px 10px; border-radius: var(--vc-radius-pill); }
.ob-badge--when { background: var(--vc-amber-100); color: var(--vc-brand-primary); }
.ob-badge--danger { background: var(--vc-surface-alt); color: var(--vc-danger); }
.ob-badge--warning { background: var(--vc-amber-100); color: var(--vc-brand-primary); box-shadow: inset 0 0 0 1px var(--vc-accent); } /* VIN-2997: rav-tekst var 3.04:1 (under AA); green.700-tekst + rav accent-ring bevarer varme+distinktion */
.ob-badge--info { background: var(--vc-slate-50); color: var(--vc-slate-700); } /* VIN-3440: kølig slate-informations-familie (CD-valg A, VIN-3439). slate-700/slate-50 = 8.20:1 AAA; adskilt fra grøn --success så transparency/GPAI-rækker ikke kolliderer med minimal-rækker. Slate STRENGT scopet hertil. */
.ob-badge--success { background: var(--vc-green-50); color: var(--vc-success); }
.obligation .ob-body { padding: 0 18px 18px; font-size: var(--vc-body); color: var(--vc-text-primary); }
.ob-essence { color: var(--vc-text-secondary); }
.ob-kv { margin: 8px 0; }
.ob-kv strong { color: var(--vc-brand-primary-dark); }
.obligation .ob-sources { font-size: var(--vc-small); color: var(--vc-text-secondary); margin-top: 12px; }
.nav-crosslink { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.nav-cross { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--vc-border); border-radius: var(--vc-radius-md); background: var(--vc-surface); text-decoration: none; }
.nav-cross:hover { border-color: var(--vc-accent); }
.nav-cross strong { color: var(--vc-brand-primary-dark); }
.nav-cross span { font-size: var(--vc-small); color: var(--vc-text-secondary); }

/* Ansvarsfraskrivelse */
.tool-disclaimer {
  max-width: 760px; margin: 0 auto; padding: 18px 20px;
  background: var(--vc-surface-alt); border-radius: var(--vc-radius-md);
  font-size: var(--vc-small); line-height: var(--vc-small-lh); color: var(--vc-text-secondary);
}
.tool-disclaimer--inline { max-width: none; margin: 28px 0 0; }

/* Fri-tekst-felt (fx ejer-navn i AI-politik-vaerktoejet, VIN-2882) */
.tool-field { margin-top: 8px; }
.tool-input {
  width: 100%; max-width: 460px; padding: 12px 14px; font: inherit;
  border: 1.5px solid var(--vc-border); border-radius: var(--vc-radius-md);
  background: var(--vc-surface); color: var(--vc-text-primary);
}
.tool-input:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; border-color: var(--vc-accent); }

/* AI-politik-udkast: laesbar forhaandsvisning af det genererede dokument (VIN-2882) */
.policy-doclabel { margin: 28px 0 10px; }
.policy-preview {
  border: 1px solid var(--vc-border); border-radius: var(--vc-radius-lg);
  background: var(--vc-surface); padding: 24px 26px; margin-top: 6px;
}
.policy-doc h1 { font-size: var(--vc-h3); color: var(--vc-green-700, var(--vc-green-500)); margin: 0 0 4px; }
.policy-version { color: var(--vc-text-secondary); font-size: var(--vc-small); margin: 0 0 14px; }
.policy-preamble {
  font-size: var(--vc-small); color: var(--vc-text-secondary);
  border-left: 3px solid var(--vc-border); padding: 8px 0 8px 14px; margin: 0 0 20px;
}
.policy-section { margin: 22px 0; }
.policy-section h2 {
  font-size: var(--vc-h5, 1.05rem); color: var(--vc-green-500);
  border-bottom: 1px solid var(--vc-border); padding-bottom: 6px; margin: 0 0 10px;
}
.policy-section p { margin: 0 0 10px; }
.policy-section ul { margin: 0 0 10px; padding-left: 20px; }
.policy-section li { margin: 4px 0; }
.policy-why {
  background: var(--vc-green-50); border-left: 4px solid var(--vc-green-500);
  border-radius: var(--vc-radius-md); padding: 12px 14px; margin: 0 0 12px;
  font-size: var(--vc-small); color: var(--vc-text-secondary);
}
.policy-note {
  background: var(--vc-amber-100, var(--vc-surface-alt)); border-left: 4px solid var(--vc-warning);
  border-radius: var(--vc-radius-md); padding: 10px 14px; font-size: var(--vc-small);
  color: var(--vc-text-secondary); margin: 0 0 10px;
}
.policy-source { font-size: var(--vc-small); color: var(--vc-text-secondary); font-style: italic; margin: 6px 0 0; }

/* Pladsholder-markering: det, brugeren selv skal udfylde (VIN-3458) */
.policy-fill {
  background: var(--vc-amber-100, #fdf3d7); color: var(--vc-green-700, #10564A);
  border-radius: 3px; padding: 0 3px; font-weight: 600; white-space: normal;
}
/* Resultatside-kort: opsummering, tjekliste og mangler-liste (VIN-3458) */
.policy-extras { margin-top: 24px; display: grid; gap: 16px; }
.policy-extras .policy-section {
  margin: 0; border: 1px solid var(--vc-border); border-radius: var(--vc-radius-lg);
  background: var(--vc-surface); padding: 18px 22px;
}
.policy-summary { border-left: 4px solid var(--vc-green-500) !important; }
.policy-checklist { border-left: 4px solid var(--vc-green-700, var(--vc-green-500)) !important; }
.policy-checklist ol { margin: 0; padding-left: 22px; }
.policy-checklist li { margin: 6px 0; }
.policy-fills { border-left: 4px solid var(--vc-warning) !important; }
.policy-fills ul { list-style: none; padding-left: 0; }
.policy-fills li { margin: 6px 0; }

/* Print-rapport: skjult paa skaerm, vist ved print */
.tool-print { display: none; }
@media print {
  .site-header, .site-footer, .tool-head, .tool-app, .tool-disclaimer, .section--brand, .skip-link { display: none !important; }
  .tool-print { display: block; }
  .tool-print h1 { font-size: 22pt; }
  .tool-print table { border-collapse: collapse; width: 100%; }
  .tool-print th, .tool-print td { text-align: left; padding: 4px 8px; border-bottom: 1px solid #ccc; vertical-align: top; }
  .tool-print .foot { color: #666; font-size: 9pt; margin-top: 24px; }
  .tool-print .policy-section h2 { font-size: 13pt; border-bottom: 1px solid #ccc; padding-bottom: 3px; margin: 16pt 0 6pt; }
  .tool-print .policy-why { border-left: 3px solid var(--vc-brand-primary); padding: 6pt 10pt; background: var(--vc-green-50); }
  .tool-print .policy-note { border-left: 3px solid var(--vc-amber-700); padding: 6pt 10pt; }
  .tool-print .policy-source, .tool-print .policy-version { color: #555; font-size: 9pt; }
  .tool-print .policy-preamble { font-style: italic; color: #555; }
  .tool-print .policy-fill { background: #fdf3d7; color: #10564A; font-weight: 600; padding: 0 2px; }
  .tool-print .policy-checklist ol { padding-left: 18pt; }
  .tool-print .policy-fills ul { padding-left: 0; list-style: none; }
}

@media (max-width: 820px) {
  .how-steps { grid-template-columns: 1fr; gap: 16px; }
  .nav-crosslink { grid-template-columns: 1fr; }
  .tool-nav { flex-direction: column-reverse; }
  .tool-nav .btn { width: 100%; }
}

/* ================================================================
   Fase 2 (VIN-2080): valgfri LLM-fritekst-genvej i dialog-vaerktoejet
   Aerlig, ligevaerdig framing; opt-in; ingen dark patterns.
   ================================================================ */
/* Aerlig privatlivs-linje under vaerktoejs-hovedet */
.tool-head__note {
  max-width: 640px; margin: 14px auto 0; font-size: var(--vc-small);
  line-height: var(--vc-small-lh); color: var(--vc-text-secondary);
}

/* To-vejs-valg ved samtalens start */
.dialog-start { max-width: 720px; }
.choice-grid--start { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
@media (min-width: 680px) { .choice-grid--start { grid-template-columns: 1fr 1fr; } }
.choice-card--start { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 44px; padding: 18px 20px; }
.choice-card--start .choice-body { display: flex; flex-direction: column; gap: 8px; }
.choice-card--start:hover { border-color: var(--vc-green-300); background: var(--vc-green-50); }
.choice-card--start:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; }
.dialog-start__foot { margin-top: 14px; }

/* Maerkat pr. kort: ligevaerdig visuel vaegt, farve staar aldrig alene (tekst baerer betydningen) */
.dialog-badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: var(--vc-caption); font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: var(--vc-radius-pill); border: 1px solid transparent;
}
.dialog-badge--local {
  background: var(--vc-success-muted); color: var(--vc-success);
  border-color: color-mix(in srgb, var(--vc-success) 34%, var(--vc-surface));
}
.dialog-badge--external {
  background: var(--vc-badge-external-bg); color: var(--vc-badge-external-fg);
  border-color: var(--vc-badge-external-border);
}

/* Samtykke-kort — roligt, crystal-clear, ikke begravet */
.dialog-consent { max-width: 680px; }
.dialog-consent__title { font-family: var(--vc-font-display); color: var(--vc-brand-primary-dark); margin: 0 0 10px; }
.dialog-consent__intro { color: var(--vc-text-primary); margin: 0 0 14px; }
.dialog-consent__list { margin: 0 0 20px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.dialog-consent__list li { line-height: 1.5; color: var(--vc-text-secondary); }
.dialog-consent__list strong { color: var(--vc-text-primary); }
.dialog-consent__actions { flex-wrap: wrap; gap: 12px; }
.dialog-consent__actions .btn { min-height: 44px; }

/* Fritekst-felt */
.dialog-freetext { max-width: 680px; }
.dialog-freetext__input { width: 100%; margin-top: 12px; resize: vertical; min-height: 120px; }
.dialog-freetext__msg { color: var(--vc-text-secondary); }
.dialog-freetext__actions { flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.dialog-freetext__actions .btn { min-height: 44px; }
.dialog-freetext.is-loading .dialog-freetext__input { opacity: 0.7; }

/* Evidence ("hvorfor") paa forudfyldte grupper */
.dialog-evidence {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 2px 0 4px; font-size: var(--vc-small);
}
.dialog-evidence__label { color: var(--vc-text-secondary); font-weight: 600; }
.dialog-evidence__quote {
  background: var(--vc-green-50); color: var(--vc-text-primary);
  border: 1px solid var(--vc-green-300); border-radius: var(--vc-radius-pill);
  padding: 3px 10px; font-style: italic;
}
.dialog-fallback-note { background: var(--vc-warning-muted); }

/* ============================================================
   VIN-2093: SAMTALE-FOERST — vedvarende komposer + hurtigsvar-chips
   Choice-cards er flyttet UD af boblerne og sidder nu som valgfrie
   pill-chips OVER en primaer tekst-komposer. Kun eksisterende tokens.
   ============================================================ */
.dialog-composer { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }

/* Hurtigsvar-chips: valgfri, offline-robuste, tolkes lokalt (intet AI-maerkat) */
.dialog-chips { display: flex; flex-direction: column; gap: 8px; }
.dialog-chips__label { font-weight: 600; color: var(--vc-text-primary); margin: 6px 0 0; font-size: var(--vc-small); }
.dialog-chips__help { margin: 0 0 2px; font-size: var(--vc-small); color: var(--vc-text-secondary); }
/* Enkelt/multi/boolean-valg -> kompakte pills. Checklists beholder toggle-listen. */
.choice-grid--chips:not(.choice-grid--checklist) { display: flex; flex-wrap: wrap; gap: 8px; grid-template-columns: none; margin-top: 0; }
.choice-grid--chips:not(.choice-grid--checklist) .choice-card {
  width: auto; flex: 0 1 auto; align-items: center; min-height: 44px;
  padding: 10px 15px; border-radius: var(--vc-radius-pill); gap: 8px;
}
.choice-grid--chips:not(.choice-grid--checklist) .choice-desc { display: none; } /* pill: kompakt, help staar over komposeren */
.choice-grid--chips.choice-grid--checklist { margin-top: 0; }

/* Tekst-komposer: den PRIMAERE affordance i hvert trin */
.dialog-composer__field {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--vc-surface); border: 1.5px solid var(--vc-border);
  border-radius: var(--vc-radius-md); padding: 8px 8px 8px 14px;
  transition: border-color .15s ease;
}
.dialog-composer__field:focus-within { border-color: var(--vc-accent); }
.dialog-composer__input {
  flex: 1 1 auto; min-width: 0; border: none; background: transparent; resize: none;
  min-height: 26px; max-height: 160px; padding: 8px 0; margin: 0;
  font: inherit; color: var(--vc-text-primary); line-height: 1.5; overflow-y: auto;
}
.dialog-composer__input:focus { outline: none; box-shadow: none; }
.dialog-composer__send { min-height: 44px; min-width: 92px; flex: 0 0 auto; align-self: stretch; }
.dialog-composer__aioff { margin: 0; font-size: var(--vc-small); color: var(--vc-text-secondary); }

/* "skriver..."-indikator (Doherty <400ms feedback), respekterer reduced-motion */
.chat-msg--typing { align-self: flex-start; }
.dialog-typing { display: inline-flex; gap: 5px; padding: 6px 4px; }
.dialog-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--vc-green-500); opacity: .35; animation: dialogTyping 1s infinite ease-in-out; }
.dialog-typing span:nth-child(2) { animation-delay: .15s; }
.dialog-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dialogTyping { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dialog-typing span { animation: none; opacity: .6; } }

/* Reflect-back: aerligt AI-maerkat KUN naar typet svar tolkes */
.chat-msg--reflect .dialog-badge { display: inline-block; margin-top: 10px; }
/* Jos §4-garanti-maerkat: diskret, men substantiel juridisk garanti under reflect-back */
.dialog-guarantee {
  margin: 8px 0 0; font-size: var(--vc-caption); line-height: 1.5;
  color: var(--vc-text-secondary);
}
/* Ligevaerdige reflect-back-veje (Jo §1.3): begge knapper samme neutrale vaegt */
.chat-actions--equal .btn { flex: 0 1 auto; }

/* In-line samtykke (ikke fuldskaerms-mur); "Laes hvordan" folder fuld tekst ud */
.dialog-consent-inline {
  border: 1px solid var(--vc-border-warm); background: var(--vc-surface-alt);
  border-radius: var(--vc-radius-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.dialog-consent-inline__text { margin: 0; font-size: var(--vc-small); color: var(--vc-text-secondary); line-height: 1.5; }
.dialog-consent-inline__full { margin: 0; }
.dialog-consent-inline__full > p { margin: 0 0 6px; font-size: var(--vc-small); color: var(--vc-text-secondary); }
.dialog-consent-inline__full ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.dialog-consent-inline__full li { font-size: var(--vc-small); color: var(--vc-text-secondary); line-height: 1.5; }
.dialog-consent-inline__actions { flex-wrap: wrap; gap: 10px; margin: 0; }
.dialog-consent-inline__actions .btn { min-height: 44px; }

/* Diskret tekst-knap (samtykke-link, revoke) */
.linklike {
  background: none; border: none; padding: 0; font: inherit; color: var(--vc-accent);
  text-decoration: underline; cursor: pointer;
}
.linklike:hover { color: var(--vc-accent-hover); }
.linklike:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; border-radius: 2px; }

/* ============================================================
   VIN-2130 C2: DIALOGBASERET konsekvensanalyse (LLM-ledt skind).
   Genbruger dialog-CSS ovenfor; kun disse faa tilfoejelser er nye:
   hurtigsvar-chips, panel-emnerraekker og "Derfor"-boblen.
   Kun eksisterende tokens; WCAG AA (44px targets, kontrast, focus).
   ============================================================ */
/* Hurtigsvar-chips under komposeren (genveje ved praecisionspunkter) */
.dialog-quickchips { display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-quickchip {
  font: inherit; font-size: var(--vc-small); font-weight: 500; cursor: pointer;
  min-height: 44px; padding: 8px 16px; display: inline-flex; align-items: center;
  background: var(--vc-surface); border: 1.5px solid var(--vc-border);
  border-radius: var(--vc-radius-pill); color: var(--vc-text-primary);
}
.dialog-quickchip:hover { border-color: var(--vc-accent); background: var(--vc-green-50); }
.dialog-quickchip:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; }

/* VIN-2698 P2: spejling/opsummering som egen daempet boble, adskilt fra spoergsmaalet.
   Dæmpet kort med tydelig "Kort opsummering"-etiket, saa bruger paa et blik ser hvad der
   er recap og hvad der er selve spoergsmaalet. */
.chat-msg--reflection {
  align-self: flex-start; max-width: 88%;
  background: var(--vc-surface-alt); color: var(--vc-text-secondary);
  border: 1px solid var(--vc-border); border-left: 3px solid var(--vc-border-strong, var(--vc-border));
  border-radius: var(--vc-radius-md);
  padding: 10px 14px; font-size: var(--vc-small); margin-bottom: -6px;
}
.chat-msg--reflection::before {
  content: "Kort opsummering"; display: block;
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--vc-text-tertiary, var(--vc-text-secondary)); margin-bottom: 4px;
}

/* "Derfor"-oejeblik: lovens intention som diskret, adskilt boble */
.chat-msg--lawintent {
  align-self: flex-start; border-left: 3px solid var(--vc-accent);
  padding-left: 12px; color: var(--vc-text-secondary); font-style: italic;
}

/* Analysepanel: emne-status (ikon + tekst, aldrig kun farve) — genaabnes ved klik */
.panel-topics { display: flex; flex-direction: column; gap: 6px; }
.panel-topic {
  font: inherit; text-align: left; width: 100%; cursor: pointer; min-height: 44px;
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--vc-surface-alt); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-md); color: var(--vc-text-secondary);
}
.panel-topic:hover { border-color: var(--vc-accent); }
.panel-topic:focus-visible { outline: 2px solid var(--vc-focus-ring); outline-offset: 2px; }
.panel-topic__icon { flex: none; display: grid; place-items: center; color: var(--vc-ink-400); }
.panel-topic.is-done { color: var(--vc-text-primary); }
.panel-topic.is-done .panel-topic__icon { color: var(--vc-success); }
.panel-topic.is-active { border-color: var(--vc-accent); color: var(--vc-text-primary); }
.panel-topic.is-active .panel-topic__icon { color: var(--vc-amber-700); } /* rav-accent, non-text ikon (parallel til .is-done=success) */
.panel-topic__body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.panel-topic__title { font-weight: 600; }
.panel-topic__state { font-size: var(--vc-caption); color: var(--vc-text-secondary); }

/* Privatlivs-intro-boble foer foerste input */
.dialog-privacy-intro { max-width: 100%; }

/* ---------- Ydelser: fiktive eksempel-resultater (VIN-2767) ---------- */
.example-cards { display: flex; flex-direction: column; gap: var(--vc-space-6, 32px); }
.example-card {
  background: var(--vc-surface, #fff);
  border: 1px solid var(--vc-border, #E2E8E4);
  border-radius: var(--vc-radius-lg, 16px);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--vc-shadow-sm);
}
.example-card__label {
  color: var(--vc-brand-primary-dark, #0A1F1B);
  margin: 0 0 6px;
}
.example-company {
  color: var(--vc-text-secondary, #54635E);
  font-size: 0.975rem;
  margin: 0 0 var(--vc-space-4, 24px);
}
.example-company strong { color: var(--vc-text-primary, #14201D); }
.example-card__body { display: flex; flex-direction: column; gap: var(--vc-space-4, 24px); }
.example-block__head {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--vc-brand-primary, #10564A); margin: 0 0 8px; font-weight: 600;
}
.example-block p { margin: 0 0 8px; }
.example-block p:last-child { margin-bottom: 0; }
.example-list-bullets { margin: 0; padding-left: 1.2em; }
.example-list-bullets li { margin-bottom: 6px; }
.example-list-bullets li:last-child { margin-bottom: 0; }
.example-table-wrap { overflow-x: auto; }
.example-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.example-table th, .example-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--vc-border, #E2E8E4); vertical-align: top;
}
.example-table thead th {
  color: var(--vc-brand-primary-dark, #0A1F1B); font-weight: 600;
  border-bottom: 2px solid var(--vc-border, #E2E8E4);
}
.example-block__note {
  margin: 8px 0 0; font-size: 0.82rem; font-style: italic;
  color: var(--vc-text-secondary, #54635E); line-height: 1.5;
}
.example-quote {
  margin: 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--vc-accent, #10564A);
}
.example-quote p { margin: 0 0 12px; }
.example-quote p:last-child { margin-bottom: 0; }
.example-disclaimer {
  margin: var(--vc-space-4, 24px) 0 0;
  padding: 14px 16px;
  background: var(--vc-amber-100, #FDF3E0);
  border: 1px solid var(--vc-amber-300, #F3D8A8);
  border-radius: var(--vc-radius-md, 10px);
  font-size: 0.9rem; color: var(--vc-text-secondary, #54635E); line-height: 1.5;
}
.example-badge {
  display: inline-block; margin-right: 6px;
  padding: 2px 10px; border-radius: var(--vc-radius-pill, 999px);
  background: var(--vc-amber-400, #E9A93B); color: #3A2A08;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  vertical-align: middle;
}

/* ---------- Metode: KOMPAS-hub (VIN-2827, docs/metode-omraade-visuel-retning.md §4-5) ---------- */
/* Ny CSS begraenset til .compass-* + .phase-* jf. retning §5. Kun brand-tokens. */

/* Kompas-sektion (§4): rose som visuel baerer + fire retning-kort */
.compass-layout {
  display: grid;
  grid-template-columns: minmax(340px, 440px) 1fr;
  gap: 48px;
  align-items: center;
}
.compass-rose { width: 100%; }
.compass-rose svg, .compass-rose img {
  display: block; width: 100%; height: auto; max-width: 440px; margin: 0 auto;
}
.compass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compass-card {
  background: var(--vc-surface);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-md);
  box-shadow: var(--vc-shadow-sm);
  padding: 24px 26px;
  transition: box-shadow .16s ease, transform .16s ease;
}
.compass-card:hover { box-shadow: var(--vc-shadow-md); transform: translateY(-2px); }
.compass-card .overline { margin: 0 0 6px; }
.compass-card .overline::before { display: none; } /* dot'en baerer retnings-farven i stedet */
.compass-card h3 { color: var(--vc-brand-primary-dark); margin: 0 0 8px; }
.compass-card p { color: var(--vc-text-secondary); font-size: 0.95rem; margin: 0; }
.compass-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: var(--vc-radius-pill); background: var(--vc-green-700); margin-bottom: 12px;
}
.compass-dot--north { background: var(--vc-accent); } /* Nord = rav (ledestjerne) */

/* Fase-baand K-O-M-P-A-S (§5): seks kort paa en vandret rejse-linje */
.phase-band {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative;
}
.phase-band::before { /* tynd forbindende rejse-linje bag medaljonerne (desktop) */
  content: ""; position: absolute; top: 24px; left: 8%; right: 8%;
  height: 2px; background: var(--vc-green-100); z-index: 0;
}
.phase-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.phase-medallion {
  width: 48px; height: 48px; flex: 0 0 auto;
  border-radius: var(--vc-radius-pill);
  background: var(--vc-green-900); color: var(--vc-amber-300);
  font-family: var(--vc-font-display); font-weight: var(--vc-weight-bold); font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
}
.phase-card h3 { font-size: 1.05rem; line-height: 1.4rem; margin: 0; color: var(--vc-green-700); }
.phase-rule { width: 28px; height: 2px; border-radius: 2px; background: var(--vc-accent); } /* rav-streg som skille */
.phase-card p { font-size: 0.9rem; line-height: 1.4rem; color: var(--vc-text-secondary); margin: 0; }

/* Tablet: 3+3 */
@media (max-width: 900px) {
  .compass-layout { grid-template-columns: 1fr; gap: 32px; }
  .compass-rose svg, .compass-rose img { max-width: 360px; }
  .phase-band { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .phase-band::before { display: none; }
}

/* Mobil: kompas-kort stakkes; fase-baand -> lodret tidslinje (medaljoner venstrestillet) */
@media (max-width: 560px) {
  .compass-grid { grid-template-columns: 1fr; }
  .phase-band { grid-template-columns: 1fr; row-gap: 0; }
  .phase-card {
    align-items: flex-start; text-align: left; padding-bottom: 28px; gap: 12px;
  }
  .phase-card::before { /* lodret rejse-linje gennem medaljon-centre */
    content: ""; position: absolute; left: 23px; top: 48px; bottom: 0;
    width: 2px; background: var(--vc-green-100);
  }
  .phase-card:last-child { padding-bottom: 0; }
  .phase-card:last-child::before { display: none; }
}

/* ---------- Boelge 5 (VIN-3690): Vaerktoejskassen ---------- */
/* Bloed slutlinje paa vaerktoejsresultater (book er aldrig det primaere naeste skridt). */
.tool-soft { margin-top: 18px; }
.tool-soft a { color: var(--vc-brand-primary-dark); }

/* "Vaerktoejer paa vej"-kort (ikke klikbare). */
.card--soon { opacity: 0.92; }
.card--soon .tool-badge--soon { margin-bottom: 10px; display: inline-block; }

/* Artikel 4-tjekliste: Del B (paa plads / delvist / mangler). */
.art4-checklist li { display: flex; align-items: baseline; gap: 10px; }
.art4-status {
  flex: none; font-size: var(--vc-small); font-weight: 600; border-radius: var(--vc-radius-pill);
  padding: 2px 10px; min-width: 74px; text-align: center; color: var(--vc-text-primary);
  background: var(--vc-surface-alt); border: 1px solid var(--vc-border);
}
.art4-status[data-status="ja"] { background: var(--vc-green-50); border-color: var(--vc-green-300); color: var(--vc-brand-primary-dark); }
.art4-status[data-status="delvist"] { background: var(--vc-amber-100); border-color: var(--vc-warning); }
.art4-status[data-status="nej"] { background: var(--vc-surface-alt); border-color: var(--vc-border); }
.art4-checklist li::before { display: none; }

/* Leverandoerspoergsmaal: grupperet liste. */
.leverandor-group { margin: 0 0 28px; }
.leverandor-group h3 { color: var(--vc-brand-primary-dark); margin: 0 0 12px; }
.leverandor-list { margin: 0; padding-left: 24px; }
.leverandor-list li { margin: 0 0 14px; }
.leverandor-q { display: block; color: var(--vc-text-primary); }
.leverandor-why { display: block; font-size: var(--vc-small); color: var(--vc-text-secondary); margin-top: 3px; }

@media print {
  .tool-print ol { padding-left: 18pt; }
  .tool-print li { margin: 4pt 0; }
  .tool-print .sub { color: #555; margin: 0 0 12pt; }
}

/* ===== Digital handlefrihed: vidensunivers (VIN-3751) ===== */
/* Breadcrumb + universets sekundaernav, faelles paa alle universets sider. */
.breadcrumb { border-bottom: 1px solid var(--vc-line, var(--vc-green-100)); background: #fff; }
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 0.85rem; }
.breadcrumb-list li { display: inline; margin: 0; }
.breadcrumb-list a { color: var(--vc-brand-primary); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list span { color: var(--vc-text-secondary); }
.breadcrumb-list [aria-current="page"] { color: var(--vc-text-primary); font-weight: 600; }
.breadcrumb-list .crumb-sep { color: var(--vc-ink-400); }

.uninav { border-bottom: 1px solid var(--vc-line, var(--vc-green-100)); background: var(--vc-surface-alt); }
.uninav .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.uninav-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.uninav-link { color: var(--vc-text-secondary); text-decoration: none; font-size: 0.92rem; padding: 4px 2px; border-bottom: 2px solid transparent; }
.uninav-link:hover { color: var(--vc-brand-primary); }
.uninav-link.is-active { color: var(--vc-brand-primary); font-weight: 600; border-bottom-color: var(--vc-brand-primary); }
.uninav-updated { color: var(--vc-text-secondary); font-size: 0.82rem; margin: 0; }

/* Hub: "Senest opdateret i universet"-liste */
.dh-changelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dh-changelog li { padding-left: 0; }
.dh-changelog__date { display: inline-block; min-width: 130px; font-weight: 600; color: var(--vc-brand-primary); }

/* Myter og fakta: FAQ-kort */
.faq-list { display: grid; gap: 20px; margin-top: 8px; }
.faq-item { border: 1px solid var(--vc-line, var(--vc-green-100)); border-left: 4px solid var(--vc-brand-primary); border-radius: var(--vc-radius, 10px); padding: 20px 24px; background: #fff; }
.faq-item .faq-q { font-size: var(--vc-h3, 1.25rem); margin: 0 0 8px; }
.faq-item .faq-short { margin: 0 0 8px; color: var(--vc-brand-primary); }
.faq-item .faq-long { margin: 0; }

/* Ordbog: definitionsliste med anker pr. begreb */
.glossary { display: grid; gap: 0; margin: 8px 0 0; }
.glossary-item { padding: 16px 0; border-bottom: 1px solid var(--vc-line, var(--vc-green-100)); scroll-margin-top: 96px; }
.glossary-item dt { font-family: var(--vc-font-display); font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; color: var(--vc-text-primary); }
.glossary-item dd { margin: 0; color: var(--vc-text-primary); }
.glossary-item:target dt { color: var(--vc-brand-primary); }

/* Handlefriheds-tjekket: point-linje + svarskala */
.result-total { font-family: var(--vc-font-display); font-weight: 700; font-size: 1.05rem; color: var(--vc-text-secondary); margin: 0 0 12px; }
.choice-grid--scale { grid-template-columns: 1fr; }
@media (min-width: 640px) { .choice-grid--scale { grid-template-columns: repeat(3, 1fr); } }
