/* Company comparison page (/sammenlign). Scoped under .cmp so the page's
   Schibsted Grotesk / Instrument Serif fonts and colour tokens (from the
   Sammenligning.dc.html design) don't leak into the rest of the site, which
   uses Inter. */
.cmp {
  font-family: 'Schibsted Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #14273B;
}
.cmp a { color: inherit; text-decoration: none; }
.cmp ::placeholder { color: #9AA6B2; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.cmp-hero {
  position: relative;
  background: linear-gradient(180deg, #F4F8FF 0%, #fff 78%);
}
/* Clipped to just the decorative network graphic — NOT the whole hero — so
   the autosuggest dropdown (positioned absolute, also a hero descendant) can
   overflow the hero's bottom edge instead of being cut off at it. */
.cmp-hero-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cmp-hero-net {
  position: absolute;
  top: -20px;
  right: -40px;
  opacity: 0.7;
  max-width: 56%;
  width: 640px;
  height: 360px;
}
.cmp-hero-inner {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) var(--page-px) clamp(26px, 3vw, 34px);
}
.cmp-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2563EB;
  font-weight: 700;
  margin-bottom: 12px;
}
.cmp-h1 {
  font-weight: 800;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: #0B1F33;
  margin: 0 0 14px;
  max-width: 16em;
}
.cmp-lead {
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.6;
  color: #5C6B7A;
  margin: 0;
  max-width: 40em;
}

/* ── Search ───────────────────────────────────────────────────────────── */
.cmp-searchwrap {
  position: relative;
  margin-top: clamp(24px, 3vw, 32px);
  max-width: 560px;
  z-index: 20;
}
.cmp-searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #DCE3EB;
  border-radius: 14px;
  background: #fff;
  padding: 4px 4px 4px 16px;
  box-shadow: 0 10px 30px -14px rgba(11, 31, 51, 0.18);
  transition: border-color 0.15s ease;
}
.cmp-searchbox:focus-within { border-color: #2563EB; }
.cmp-search {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: #14273B;
  padding: 11px 0;
  min-width: 0;
}
.cmp-search:focus { outline: none; }
.cmp-search-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: #2563EB;
  border-radius: 10px;
  padding: 10px 18px;
  white-space: nowrap;
}
.cmp-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E4E9EF;
  border-radius: 14px;
  box-shadow: 0 24px 50px -18px rgba(11, 31, 51, 0.28);
  overflow: hidden;
}
.cmp-suggest-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #F1F4F7;
}
.cmp-suggest-item:last-child { border-bottom: none; }
.cmp-suggest-item:hover { background: #F5F8FE; }
.cmp-suggest-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #2563EB;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmp-suggest-info { flex: 1; min-width: 0; }
.cmp-suggest-name {
  font-size: 14px;
  font-weight: 700;
  color: #0B1F33;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmp-suggest-meta { font-size: 12px; color: #8A97A4; }
.cmp-suggest-add { font-size: 12.5px; font-weight: 700; color: #2563EB; flex-shrink: 0; }
.cmp-suggest-empty { padding: 20px 16px; font-size: 13.5px; color: #8A97A4; }

/* ── Quick-add chips ──────────────────────────────────────────────────── */
.cmp-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cmp-chips-label { font-size: 12px; color: #9AA6B2; }
.cmp-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: #2C3E50;
  background: #fff;
  border: 1px solid #DCE3EB;
  border-radius: 100px;
  padding: 6px 13px;
  cursor: pointer;
}
.cmp-chip:hover { border-color: #2563EB; color: #2563EB; }

/* ── Comparison body ──────────────────────────────────────────────────── */
.cmp-body { background: #fff; }
.cmp-body-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 44px) var(--page-px) clamp(52px, 6vw, 80px);
}
.cmp-notice {
  font-size: 13.5px;
  color: #9A6A12;
  background: #FCF6E8;
  border: 1px solid #F0E0B8;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
}

.cmp-empty {
  border: 1.5px dashed #D4DDE7;
  border-radius: 20px;
  background: #FBFCFD;
  padding: clamp(44px, 6vw, 72px) 24px;
  text-align: center;
}
.cmp-empty svg { margin-bottom: 16px; }
.cmp-empty-title { font-weight: 800; font-size: 19px; color: #0B1F33; letter-spacing: -0.02em; }
.cmp-empty-text { font-size: 14px; color: #5C6B7A; margin: 8px auto 0; max-width: 34em; }

/* ── Grid ─────────────────────────────────────────────────────────────── */
.cmp-grid {
  border: 1px solid #E4E9EF;
  border-radius: 20px;
  overflow: hidden;
  overflow-x: auto;
}
.cmp-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) repeat(var(--cmp-cols), minmax(150px, 1fr));
  align-items: stretch;
}
.cmp-row:nth-of-type(odd) { background: #fff; }
.cmp-row-head, .cmp-row-links { background: #fff; }
.cmp-row-val { background: #F8FAFC; }
.cmp-cell {
  padding: 15px 20px;
  border-left: 1px solid #EDF0F3;
  border-bottom: 1px solid #F0F3F6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cmp-cell-label { border-left: none; padding: 15px 22px; }
.cmp-row-head .cmp-cell { padding-top: 20px; padding-bottom: 18px; justify-content: flex-end; }
.cmp-row-head .cmp-cell-label { justify-content: flex-end; }

.cmp-row-section { background: #F8FAFC; }
.cmp-section-label {
  grid-column: 1 / -1;
  border-left: none;
  padding: 10px 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5C6B7A;
  border-bottom: 1px solid #E4E9EF;
}

.cmp-count { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A97A4; font-weight: 700; }
.cmp-count-sub { font-size: 12.5px; color: #B3BCC6; margin-top: 3px; }

.cmp-cell-company { position: relative; }
.cmp-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EEF1F5;
  color: #7A8794;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.cmp-remove:hover { background: #F5D9D9; color: #C0392B; }
.cmp-company-name { font-weight: 800; font-size: 15.5px; color: #0B1F33; letter-spacing: -0.02em; line-height: 1.2; padding-right: 24px; }
.cmp-company-meta { font-size: 11.5px; color: #8A97A4; margin-top: 2px; }

.cmp-val-label { font-size: 13px; font-weight: 700; color: #14273B; }
.cmp-val-num { display: flex; align-items: baseline; gap: 6px; }
.cmp-val-main { font-size: var(--t-3xl); font-weight: var(--w-bold); letter-spacing: var(--tr-tight); color: #0B1F33; line-height: 1; }
.cmp-val-main.cmp-dim { color: #B3BCC6; }
.cmp-val-unit { font-size: 12px; color: #8A97A4; }
.cmp-val-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0F7A50;
  background: #E3F1EC;
  padding: 3px 8px;
  border-radius: 100px;
  margin-left: 2px;
}
.cmp-val-bar { height: 8px; border-radius: 100px; background: #E9EEF4; margin-top: 12px; overflow: hidden; }
.cmp-val-bar-fill { height: 100%; border-radius: 100px; }

.cmp-metric-label { font-size: 13px; font-weight: 600; color: #2C3E50; }
.cmp-metric-hint { font-size: 11px; color: #9AA6B2; margin-top: 1px; display: block; }
.cmp-metric-cell { flex-direction: row; align-items: center; gap: 8px; }
.cmp-metric-cell span:first-child { font-size: 13.5px; font-variant-numeric: tabular-nums; color: #14273B; font-weight: 600; }
.cmp-metric-cell .cmp-best { font-weight: 700; }
.cmp-best-dot { width: 6px; height: 6px; border-radius: 50%; background: #159A6A; flex-shrink: 0; }

.cmp-row-links .cmp-cell { padding-top: 16px; padding-bottom: 16px; }
.cmp-open-link { font-size: 12.5px; font-weight: 700; color: #2563EB; }

.cmp-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.cmp-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #8A97A4; }
.cmp-legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #159A6A; }
.cmp-clear { font-size: 12.5px; font-weight: 600; color: #C0392B; cursor: pointer; }

.cmp-disclaimer { font-size: 12px; line-height: 1.6; color: #9AA6B2; margin: 26px 0 0; max-width: 52em; }

@media (max-width: 720px) {
  .cmp-row { grid-template-columns: 140px repeat(var(--cmp-cols), minmax(130px, 1fr)); }
  .cmp-cell { padding: 12px 14px; }
  .cmp-cell-label { padding: 12px 16px; }
}
