/* Evidence ladder — the four rungs, and a table that stays readable on a phone.
 *
 * Colour carries the rung, and so does the word beside it: a reader who cannot
 * distinguish the two ambers must not lose the distinction, and the portfolio's
 * own neuroinclusive standard says so.
 *
 * The rung colours are deliberately not a red-to-green gradient. "Not started"
 * is not a failure — it is an honest position, and colouring it like a fault
 * would push the next person to reclassify rather than to run the study. */

.rung-summaries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 3rem;
}

.rung-summary {
  border: 1px solid var(--line, #d9d2c4);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.45);
}
.rung-summary .rung-count {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.1rem;
  line-height: 1.1;
}
.rung-summary .rung-name {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.rung-summary p { margin: 0; font-size: 0.92rem; opacity: 0.85; }

.rung-literature-anchored { border-left-color: #2E6E4E; }
.rung-provisional         { border-left-color: #B8860B; }
.rung-under-study         { border-left-color: #3A6EA5; }
.rung-not-started         { border-left-color: #6B6357; }

.rung-pill {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.rung-pill.rung-literature-anchored { color: #2E6E4E; }
.rung-pill.rung-provisional         { color: #8A6508; }
.rung-pill.rung-under-study         { color: #2F5C89; }
.rung-pill.rung-not-started         { color: #5A5349; }

.evidence-product { margin: 0 0 2.75rem; }
.evidence-product h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.evidence-table th,
.evidence-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line, #d9d2c4);
}
.evidence-table thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.evidence-table td:first-child { font-weight: 600; }
.evidence-table .muted { opacity: 0.55; }

.evidence-source {
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.8;
  border-top: 1px solid var(--line, #d9d2c4);
  padding-top: 1.25rem;
}

/* A four-column table of prose does not fit a phone. Below 760px each row
 * becomes its own block with the column name in front of the value, which is
 * readable without horizontal scrolling and without dropping any column. */
@media (max-width: 760px) {
  .evidence-table thead { position: absolute; left: -9999px; }
  .evidence-table tr {
    display: block;
    border: 1px solid var(--line, #d9d2c4);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
  }
  .evidence-table td { display: block; border: 0; padding: 0.4rem 0; }
  .evidence-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.6;
  }
}

/* Link back to what the product actually is. Added 2026-09-23: the ladder and
 * the seventeen product pages had zero links between them in either direction,
 * so the page that makes a claim and the page that qualifies it were separate
 * publications. Set small and quiet — a reader here is auditing, and the
 * marketing page is a side trip, not the next step. */
.evidence-product-link {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--rust);
  margin-left: 10px;
  white-space: nowrap;
}
