/* gooi.io — comparison pages (/vergelijk, /compare) in the "Avondgracht" style.
   Loaded after pages.css. Only the comparison table lives here. */

.cmp-block { scroll-margin-top: 1.5rem; }
.cmp-block > h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cmp-block > .cmp-intro { margin-top: 0.6rem; max-width: 68ch; line-height: 1.7; color: #26354f; }

/* Card around the table */
.cmp-card {
  margin-top: 1.25rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.cmp-swipe {
  display: none;
  padding: 0.75rem 1rem 0;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.cmp-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.cmp-table th,
.cmp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: none; }

/* Column heads */
.cmp-table thead th {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}
.cmp-table thead th:first-child { color: var(--ink-2); font-weight: 500; }

/* Row labels: first column, sticky when the table scrolls sideways */
.cmp-table tbody th {
  font-weight: 500;
  color: var(--ink);
  width: 28%;
}
.cmp-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

/* gooi.io column */
.cmp-table .is-us { background: var(--delft-soft); }
.cmp-table thead .is-us {
  color: var(--delft-deep);
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: inset 0 3px 0 var(--delft);
}
.cmp-table tbody .is-us { font-weight: 600; border-bottom-color: #d3e1f8; }

.cmp-table tbody tr:hover th,
.cmp-table tbody tr:hover td:not(.is-us) { background: #f8fafd; }

/* Drawn yes / no / partial marks (no emoji, no glyphs) */
.cm {
  display: inline-grid;
  grid-template-columns: 20px auto;
  gap: 0.5rem;
  align-items: center;
}
.cm::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}
.cm-yes::before {
  background-color: #e3f4ec;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a5f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7.5'/%3E%3C/svg%3E");
}
.cm-no::before {
  background-color: #fbe9e1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E");
}
.cm-part::before {
  background-color: #fbf0d9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5650a' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6.5 12h11'/%3E%3C/svg%3E");
}
.is-us .cm-yes::before { background-color: #fff; }

/* Small print under the table */
.cmp-note {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-2);
  background: #fbfcfe;
}
.cmp-note p + p { margin-top: 0.35rem; }

.cmp-after { margin-top: clamp(2.5rem, 7vh, 4rem); }

/* Aside list sits a little tighter than in the article */
.pg-box .pg-check { gap: 0.6rem; }
.pg-box .pg-check li { font-size: 0.95rem; line-height: 1.45; color: #26354f; }

@media (max-width: 800px) {
  .cmp-swipe { display: block; }
  .cmp-table { font-size: 0.9rem; min-width: 0; }
  .cmp-table th, .cmp-table td { padding: 0.75rem 0.8rem; }
  .cmp-table td, .cmp-table thead th { white-space: nowrap; }
  .cmp-table tbody th { width: 150px; min-width: 150px; }
  .cmp-table th:first-child { box-shadow: 6px 0 10px -8px rgba(16, 32, 58, 0.35); }
}
