/* ==========================================================================
   r40: portfolio index, company pages and case studies only.
   Loaded last on those pages. Readability pass (Joseph's r39 item 12):
   fewer, larger text sizes; labels no smaller than 13px; more row spacing.
   Investment History list (item 2): every row the same height, so a name
   that wraps does not break the grid.
   ========================================================================== */

/* ---------- small labels: one size, 13px ---------- */
.tag,
.sec-eyebrow,
.reg dt,
.pf-tile-place,
.pager .pg-dir,
.voy-release-kind,
.voy-release-fmt {
  font-size: 13px;
  letter-spacing: 0.1em;
}
.reg dt { line-height: 1.4; padding-top: 4px; }

/* ---------- body text: 17px ---------- */
.reg dd,
.pf-tile-desc,
.co-case .stage p,
.co-case > p,
.hist-note,
.pager .pg-place,
.back {
  font-size: 17px;
}
.reg dd { line-height: 1.55; color: var(--slate); }
.co-text p { font-size: 17px; line-height: 1.75; margin-bottom: 20px; }
.co-case .stage p + p { margin-top: 14px; }
.co-case .stage { padding-bottom: 32px; }
.hist-note, .co-case > p, .pager .pg-place { color: var(--slate); }

/* ---------- fact register: more room per row ---------- */
.reg > div { padding: 16px 0 15px; gap: 6px 20px; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); }
@media (max-width: 420px) { .reg > div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- active investment cards ---------- */
.pf-tile-place { color: var(--slate); font-weight: 600; }
.pf-tile-desc { line-height: 1.6; }
.pf-tile-more { font-size: 16px; }

/* ---------- Investment History list ---------- */
.hist { gap: 44px 64px; }
.hist-note { margin-bottom: 20px; }
.hist-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  box-sizing: border-box;
  height: 100%;
  min-height: 86px;
  padding: 16px 0;
}
.hist-list li { display: flex; flex-direction: column; }
.hist-list li > a { flex: 1; }
.hist-list .hl-name { font: 400 19px/1.3 var(--serif); }
.hist-list .hl-place { color: var(--slate); font-size: 16px; line-height: 1.4; }
.hist-list .hl-kind {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* two columns read down, alphabetically; rows are one height across the list */
@media (min-width: 640px) {
  .hist-list--2 {
    display: grid;
    columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(8, 1fr);
    grid-auto-flow: column;
    column-gap: 36px;
  }
}

/* ---------- pager ---------- */
.pager .pg-name { font-size: 21px; }

/* the two history columns share heading, note and list rows, so the lists
   start on one line even when one note wraps */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1000px) {
    .hist { grid-template-rows: auto auto auto; row-gap: 0; }
    .hist > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .hist > div > .hist-list { align-self: start; }
  }
}
