/* One-pager case styling — overrides for short-form cases */

/* Kill the step number ghost */
#post-article .case-step::before {
  display: none;
}

/* Remove step padding/margin meant for multi-step cases */
#post-article .case-step {
  padding-left: 0;
  margin-left: 0;
  border-left: none;
}

/* Constrain article width for readability */
#post-article .case-content {
  max-width: 780px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

/* Section headings — clear visual separation */
#post-article .case-content h2 {
  margin-top: 2.8rem;
  margin-bottom: 0.8rem;
  padding-top: 1.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#post-article .case-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

#post-article .case-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
}

/* ── Table styling ── */
.case-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.2rem 0 2.8rem;
  font-size: 0.84rem;
  line-height: 1.5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.case-table thead th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(185, 28, 41, 0.1);
  border-bottom: 1px solid rgba(185, 28, 41, 0.2);
}

.case-table thead th:first-child {
  min-width: 200px;
}

.case-table tbody td {
  padding: 0.7rem 1rem;
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
}

.case-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.case-table tbody tr:last-child td {
  border-bottom: none;
}

.case-table tbody tr:hover td {
  background: rgba(185, 28, 41, 0.05);
}

/* First column (metric label) — brighter */
.case-table tbody td:first-child {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.82rem;
}

/* Number columns — right-align */
.case-table thead th:not(:first-child),
.case-table tbody td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
  padding-left: 1.2rem;
}

/* Tabular figures */
.case-table tbody td:not(:first-child) {
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.75);
}

/* On wide screens, widen content to fit tables comfortably */
@media (min-width: 701px) {
  #post-article .case-content {
    max-width: 960px;
  }
}

/* ── Responsive table ── */
@media (max-width: 700px) {
  .case-table {
    font-size: 0.78rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .case-table thead th,
  .case-table tbody td {
    padding: 0.55rem 0.65rem;
  }

  .case-table thead th:first-child {
    min-width: 130px;
  }
}

/* ── Disclaimer ── */
#post-article .data-disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: -0.5rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* ── "Wat dit verandert" section — slightly brighter text ── */
#post-article .case-content h2:last-of-type ~ p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

/* ── Question reframe block ── */
.question-reframe {
  border-left: 2px solid rgba(185, 28, 41, 0.5);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1.5rem;
  background: rgba(185, 28, 41, 0.04);
  border-radius: 0 6px 6px 0;
}
.question-reframe .q-from {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.4rem;
}
.question-reframe .q-to {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

/* ── Sources / Bronnen collapsible ── */
.case-sources {
  max-width: 780px;
  padding: 0 1.2rem;
}

.case-sources summary {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-sources summary:hover {
  color: rgba(255, 255, 255, 0.6);
}

.case-sources ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.case-sources li {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  padding: 0.25rem 0;
}

.case-sources li strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
