/* Later (subpage): "Tre måder at finde en sælger på", design/saved-sections/sammenligning-tre-maader.html
   (.compare, .cmp, .mk*, .us-mark, .aud-tag).
   Carved from design/style.css (concept approved 23 Oct 2026) in source order; see build/carve/LEDGER.md.
   Phase 5 (G2, 27 Oct): every selector is scoped under the section root (.compare), so the concept's generic class
   names (.toggle, .ok, .step-n, .ui-*, .mk …) can never style another page; nothing else changed. */

/* ---------- Compare ---------- */
.compare { padding: clamp(5rem, 10vw, 8rem) 0; }
.compare .sub { margin: 1rem 0 clamp(2rem, 4vw, 3rem); font-size: 1.1rem; }
.compare .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare .cmp { width: 100%; min-width: 720px; border-collapse: collapse; }
.compare .cmp th, .compare .cmp td { text-align: left; vertical-align: top; padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.compare .cmp thead th { font-weight: 500; font-size: .95rem; color: var(--muted); padding-bottom: 1rem; }
.compare .cmp tbody th { font-weight: 600; width: 20%; }
.compare .cmp td { color: var(--muted); width: 26%; }
.compare .cmp .us { color: var(--ink); padding-left: 1.25rem; background: color-mix(in srgb, var(--accent) 7%, transparent); border-left: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.compare .cmp thead .us { color: var(--accent-lit); font-family: var(--font-display); font-size: 1.6rem; letter-spacing: var(--display-track); }

@media (max-width: 700px) {
  .compare .cmp, .compare .cmp tbody, .compare .cmp tr, .compare .cmp th, .compare .cmp td { display: block; width: auto; min-width: 0; }
  .compare .cmp thead { display: none; }
  .compare .cmp tr { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
  .compare .cmp th, .compare .cmp td { border: 0; padding: .35rem 0; }
  .compare .cmp tbody th, .compare .cmp td { width: auto; }
  .compare .cmp tbody th { font-family: var(--font-display); font-size: 1.45rem; font-weight: var(--display-wght); margin-bottom: .35rem; }
  .compare .cmp td::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--muted); opacity: .75; }
  .compare .cmp td.us { margin-top: .5rem; padding: .75rem 1rem; border-left: 2px solid var(--accent); }
  .compare .cmp td.us::before { color: var(--accent); opacity: 1; }
}

/* =====================================================
   Compare v2: Bedri as a raised, framed column
   ===================================================== */
.compare .cmp { border-collapse: separate; border-spacing: 0; }
.compare .cmp th, .compare .cmp td { border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding: 1.2rem 1.25rem 1.2rem 0; }
.compare .cmp td { color: color-mix(in srgb, var(--muted) 85%, transparent); font-size: .98rem; }
.compare .cmp thead th { border-bottom: 0; padding-bottom: 1.1rem; vertical-align: bottom; }
.compare .cmp .us {
  position: relative; padding-left: 1.5rem; padding-right: 1.5rem;
  background: color-mix(in srgb, var(--accent) 9%, var(--bg));
  border-left: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-bottom-color: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--ink); font-weight: 500;
}
.compare .cmp thead .us {
  border-top: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 16px 16px 0 0; padding-top: 1.75rem;
  font-size: 1.7rem; color: var(--accent-lit);
}
.compare .cmp tbody tr:last-child .us { border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 0 0 16px 16px; }
.compare .us-mark { display: block; width: 18px; height: 38px; margin-bottom: .6rem; background: var(--accent-lit); -webkit-mask: url(../../img/logos/bedri-mark.png) center / contain no-repeat; mask: url(../../img/logos/bedri-mark.png) center / contain no-repeat; }
.compare .mk { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: .6rem; vertical-align: -4px; position: relative; flex: none; }
.compare .mk-no { border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); }
.compare .mk-no::before, .compare .mk-no::after { content: ""; position: absolute; width: 9px; height: 1.5px; background: color-mix(in srgb, var(--muted) 80%, transparent); transform: rotate(45deg); }
.compare .mk-no::after { transform: rotate(-45deg); }
.compare .mk-mid { border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); }
.compare .mk-mid::before { content: ""; width: 8px; height: 1.5px; background: color-mix(in srgb, var(--muted) 80%, transparent); }
.compare .mk-yes { background: var(--accent); }
.compare .mk-yes::before { content: ""; width: 8px; height: 4px; border-left: 1.8px solid var(--accent-ink); border-bottom: 1.8px solid var(--accent-ink); transform: translateY(-1px) rotate(-45deg); }
@media (max-width: 700px) {
  .compare .cmp thead .us { display: none; }
  .compare .cmp td.us { border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 12px; }
  .compare .cmp tbody tr:last-child .us { border-radius: 12px; }
  .compare .cmp td::before { margin-bottom: .2rem; }
}

/* Marks hang in a fixed gutter so text never wraps under them */
.compare .cmp td { position: relative; padding-left: 2rem; }
/* Centred on the first line of text (1lh: the cell's line height), not at a fixed 1.25rem that sat 1.7px high
   (Jannik, 6 Nov) */
.compare .cmp td .mk { position: absolute; left: 0; top: calc(1.2rem + (1lh - 20px) / 2); margin: 0; }
.compare .cmp td.us { padding-left: 3.1rem; }
.compare .cmp td.us .mk { left: 1.5rem; }
/* Phones: the label above, then the mark and the text side by side, so a wrapped line starts under the text and
   the mark is centred on the first line. Inline, the marks sat on their baselines: the "−" and "✓" (an in-flow
   ::before) ~9px lower than the "×" (Jannik, 6 Nov). The cell is a grid; its text is one anonymous item in the
   second column */
@media (max-width: 700px) {
  .compare .cmp td { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: .5rem; align-items: start; padding-left: 0; }
  .compare .cmp td::before { grid-column: 1 / -1; }
  .compare .cmp td .mk, .compare .cmp td.us .mk { position: static; margin-top: calc((1lh - 20px) / 2); }
  .compare .cmp td.us { padding-left: 1rem; }
}
@media (max-width: 700px) {
  .compare .cmp th, .compare .cmp td:not(.us) { border-bottom: 0; }
  .compare .cmp td.us { border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
}

:root .compare .us-mark { background: linear-gradient(180deg, #6FD6FF, #3D6BFF); }

.compare .cmp thead .us { border-radius: var(--card-r) var(--card-r) 0 0; }
.compare .cmp tbody tr:last-child .us { border-radius: 0 0 var(--card-r) var(--card-r); }

/* Flow revision: comparison now sits between positioning and process */
.compare .aud-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .85rem; margin: 0 0 1.1rem; border-radius: var(--card-r); font-size: .85rem; font-weight: 600; background: var(--accent); color: var(--accent-ink); }
.compare { background: var(--bg-2); border-block: 1px solid var(--line); }
