/*
 * Styles for public section templates that have no Bootstrap equivalent (table2: plan and
 * feature comparison tables). Same palette as the home restyle, without its dark parts.
 */

.table2 {
  --t2-ink: #16132A;
  --t2-muted: #6B6785;
  --t2-line: #EEECF3;
  --t2-accent: #5B2EE0;
  --t2-soft: #F7F5FD;
}

.table2-title {
  color: var(--t2-ink);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.table2-intro {
  color: var(--t2-muted);
  font-size: 1.1rem;
}

.table2-card {
  border: 1px solid var(--t2-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 19, 42, .04), 0 8px 24px rgba(22, 19, 42, .05);
}

.table2-table {
  font-size: 1rem;
  color: var(--t2-ink);
}

.table2-table > :not(caption) > * > * {
  padding: .85rem 1rem;
  border-bottom-color: var(--t2-line);
  vertical-align: middle;
}

.table2-table tbody tr:last-child > * {
  border-bottom: 0;
}

.table2-table thead th {
  background: var(--t2-soft);
  color: var(--t2-ink);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}

.table2-table tbody th {
  font-weight: 600;
  width: 46%;
}

.table2-hint {
  display: block;
  color: var(--t2-muted);
  font-weight: 400;
  font-size: .875rem;
  margin-top: .15rem;
}

.table2-yes {
  color: var(--t2-accent);
  font-size: 1.35rem;
  line-height: 1;
}

.table2-no {
  color: #C3BFD3;
}

.table2-strong {
  color: var(--t2-accent);
  font-weight: 700;
}

/* Phones: fixed columns so four of them fit in 390px without scrolling sideways. */
@media (max-width: 575.98px) {
  .table2-table {
    table-layout: fixed;
    font-size: .85rem;
  }

  .table2-table > :not(caption) > * > * {
    padding: .65rem .4rem;
  }

  .table2-table tbody th {
    overflow-wrap: anywhere;
  }

  /* Long single words ("Unbegrenzt", "Obegränsat") hyphenate by the page's lang instead of spilling over. */
  .table2-table td {
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .table2-table thead th {
    white-space: normal;
    font-size: .68rem;
    letter-spacing: 0;
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .table2-table thead th:first-child,
  .table2-table tbody th {
    width: 40%;
  }

  .table2-hint {
    font-size: .78rem;
  }
}
