/*
 * The public Trust page (R8).
 *
 * Its own file because Propshaft's `stylesheet_link_tag :app` includes every
 * stylesheet in this directory; application.css holds what every page shares.
 *
 * This page is mostly prose, and the layout's one job is to keep the caveats
 * legible. They are set slightly quieter than the claims they qualify but at
 * the same size, because a qualification typeset as fine print is a
 * qualification nobody reads -- and on this page in particular, the caveats are
 * the honest half.
 */

.trust {
  max-width: 48rem;
}

.trust__header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
}

.trust__eyebrow {
  color: var(--ink-muted);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

.trust__section {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
}

.trust__section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.trust__section > h2 {
  font-size: 1.35rem;
}

.trust__claim {
  margin-bottom: 1.75rem;
}

.trust__claim:last-child {
  margin-bottom: 0;
}

.trust__claim-heading {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

/* Same type size as the claim it qualifies, one step down in contrast, and
   labelled as a note rather than ruled down the left: on a legal page a
   left-ruled grey paragraph reads as text quoted from the instrument, and
   these are the site's own words (audit, 2026-10-04). */
.trust__caveat {
  color: var(--ink-muted);
  margin: 1rem 0 0;
}

.trust__caveat::before {
  content: "Note: ";
  color: var(--sand);
  font-weight: 600;
}

/* The page in four lines, under the lede. */
.trust__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.trust__summary-item {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
}

.trust__summary-item dt {
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust__summary-item dd {
  margin: 0.3rem 0 0;
  font-weight: 600;
  line-height: 1.35;
}

.trust__aside {
  color: var(--ink-muted);
  margin-bottom: 0;
}

.trust__balance {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}

.trust__balance-label {
  color: var(--ink-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

/* `clamp` rather than a fixed size: this is the largest string on the page and
   a phone is where it would be the first thing to overflow. */
.trust__balance-figure {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-variant-numeric: tabular-nums;
  margin: 0.3rem 0 0;
  overflow-wrap: anywhere;
}

.trust__balance-date {
  color: var(--ink-muted);
  margin: 0.2rem 0 0;
}

.trust__distributions {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust__distribution {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.trust__distribution p {
  margin: 0;
}

.trust__distribution-amount {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.trust__distribution-recipient {
  font-weight: 600;
}

.trust__distribution-date,
.trust__distribution-description {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.trust__section--scope p {
  color: var(--ink-muted);
}

/* The catalog's way in to this page. */
.catalog__trust {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.catalog__trust-heading {
  font-size: 1.15rem;
}

.catalog__trust p {
  color: var(--ink-muted);
  max-width: 46rem;
}
