/* The person page, dense (docs/phase0_core/06-app-layer.md section 7a, "As built (the person page layout)"). The header, a strip of facts, a wide main column beside a side column of compact
   panels, the way the Next edition's record page is laid out (a hairline, a small radius, small type, tight rows), built from Tessera's own tokens and components: PersonHeaderComponent,
   PersonStripComponent, PanelComponent and the panels that sit in it.

   WHY ONE FILE: it is the page's own stylesheet (41 to 59 are the pages', and test/styles/components_test.rb reads it for logical properties and for tokens that exist), and it comes after the
   panels' own (47 to 52) in the cascade only by selector: every rule here is scoped under `.person-page`, `.person-header` or `.person-strip`, so it wins by specificity and not by order.

   THE TYPE SCALE inside the page: data is 13px (`--person-data`), a small-caps label is 11px with tracked letters, meta is 12px, a row is padded 6 to 8px and has a line height of 1.35. Numbers are lining and
   tabular (`font-variant-numeric: lining-nums tabular-nums`), so a column of dates and counts lines up and a 3 is not a descender. Nothing is under 12px except an uppercase tracked label (11px, which
   is the floor the design brief sets for them), and every color is a token: this file writes none, so it reads in light and in dark, on the light shell and on the console, and in forced colors by
   the borders that are still there. Logical properties only, so a right-to-left language mirrors; no height in vh.

   THE GRID. One column on a phone, in the order the DOM has: the header, the strip, the week, the classes, the side panels, the timeline. From 56rem of the PAGE's own width (a container query, because the
   console's rail takes 258px of the screen and 64rem of the window is not 64rem of room) the main column (week, classes, then the timeline) is on the left and the side column (about 24rem) on the right,
   placed by the grid and never by `order`, so the reading order is the DOM's in both layouts. The timeline sits in the second row of the main column, and the side column spans both rows, so the
   timeline begins under the classes and not under the side column's end. With nothing in the main column (no week and no classes) the timeline is in the first row, level with the side column's first panel. */

.person-page {
  container: person-page / inline-size;
  display: block;
  min-inline-size: 0;
  margin-block-start: var(--density-block);
  font-variant-numeric: lining-nums tabular-nums;
}
/* The page's type scale: it is the page's and each of its panels' (a panel is looked at alone in its preview). */
.person-page,
.person-panel {
  --person-data: 0.8125rem;
  --person-meta: 0.75rem;
  --person-label: 0.6875rem;
  --person-row-y: 0.4rem;
}
.person-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--density-block);
  align-items: start;
  min-inline-size: 0;
}
.person-main,
.person-side,
.person-timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--density-block);
  align-content: start;
  min-inline-size: 0;
}
.person-main:not(:has(*)),
.person-side:not(:has(*)) {
  display: none;
}
@container person-page (min-width: 56rem) {
  .person-grid {
    grid-template-columns: minmax(0, 1fr) clamp(18rem, 33cqi, 24rem);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .person-main {
    grid-column: 1;
    grid-row: 1;
  }
  .person-side {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .person-timeline {
    grid-column: 1;
    grid-row: 2;
  }
  .person-main:not(:has(*)) {
    display: block;
  }
  /* A person with no week and no classes has nothing in the main column's first row, and the timeline, which is in the second, sat one row gap lower than the side column's first panel. With
     nothing above it the timeline is the first thing in its column, level with the side column's first panel. */
  .person-main:not(:has(*)) ~ .person-timeline {
    grid-row: 1;
  }
}

/* ── The header ──────────────────────────────────────────────────────────
   An avatar, the name large with its badges, one line of what else is known (the class, the student id, the roles and the address), and the primary action at the end. */

/* The room above the name is the room above every console page's title (`.page-header` in 35-components.css: `--space-4` of its own on top of the page's `--space-4`), so the title does not
   jump when a person goes from the Directory to a person. It is the header's margin and not its padding: the header itself stays the name and a line or two under it, as the layout test measures it. */
.person-header {
  gap: 0.35rem;
  margin-block-start: var(--space-3);
  padding-block: 0.25rem 0;
  font-variant-numeric: lining-nums tabular-nums;
}
/* The way back above the person in a Hotwire Native shell (NativeBackComponent, drawn by 95-native-shell.css); no box anywhere else. */
.person-header-top {
  display: contents;
}
.person-header-row {
  align-items: center;
  gap: 0.5rem 1rem;
}
.person-header-who {
  flex: 1 1 20rem;
  align-items: center;
  gap: 0.75rem;
}
.person-header .avatar-lg {
  inline-size: 3rem;
  block-size: 3rem;
  font-size: 1.05rem;
}
.person-header-text {
  gap: 0.1rem;
}
.person-header-crumb {
  font-size: var(--person-meta, var(--text-xs));
  line-height: 1.2;
}
/* The way back is a link on a line of its own, so it is a target of at least 24px (WCAG 2.5.8): its padding makes the room and the negative margin gives it back, so the header is no taller.
   The room is all above the words, in the header's own padding: padding under them would lie over the name, and at 200% zoom the link covered the top of the h1 (WCAG 1.4.10). */
.person-header-crumb a {
  display: inline-block;
  padding-block-start: 0.6rem;
  margin-block-start: -0.6rem;
}
.person-header-name {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.9rem);
  line-height: 1.1;
  gap: 0.2rem 0.6rem;
}
.person-header-name .pill {
  font-size: var(--person-meta, var(--text-xs));
}
.person-header-goes-by {
  font-size: 0.8125rem;
  line-height: 1.35;
}
.person-header-meta {
  gap: 0.1rem 0.9rem;
  line-height: 1.35;
}
.person-header-facts {
  font-size: 0.8125rem;
}
.person-header-facts li + li {
  padding-inline-start: 0.6rem;
}
.person-header-identifiers {
  gap: 0.1rem 0.9rem;
  font-size: 0.8125rem;
  color: var(--fg2);
}
.person-header-identifier {
  gap: 0 0.3rem;
}
.person-header-identifier dt {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}
/* The actions keep to their size beside the name, and shrink (and wrap, button under button) when they have a line of their own that is narrower than they are, as at 200% zoom (WCAG 1.4.10). */
.person-header-actions {
  flex: 0 1 auto;
}
@media (max-width: 36rem) {
  .person-header-actions {
    flex: 1 1 100%;
  }
  .person-header-actions .btn {
    inline-size: 100%;
    justify-content: center;
  }
}

/* ── The strip ───────────────────────────────────────────────────────────
   Facts, each a small-caps label over its value, in one framed band. It wraps to more rows on a phone, and a cell is only there when the viewer may read it and the data exists.
   The rules between cells are each cell's own start and top border, pulled one pixel over its neighbour and cut off where the band ends (`overflow: hidden`), so a cell that starts a row has
   no rule hanging off it and a short last row has no empty box: the cells grow to fill it. */

.person-strip {
  margin-block-start: 0.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  overflow: hidden;
  font-variant-numeric: lining-nums tabular-nums;
}
.person-strip-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}
.person-strip-cell {
  display: grid;
  flex: 1 1 6.5rem;
  gap: 0.15rem;
  align-content: start;
  min-inline-size: 0;
  margin-block-start: -1px;
  margin-inline-start: -1px;
  padding: 0.5rem 0.75rem 0.55rem;
  border-block-start: 1px solid var(--rule);
  border-inline-start: 1px solid var(--rule);
}
.person-strip-cell[data-long] {
  flex-grow: 2;
  flex-basis: 9rem;
}
.person-strip-label {
  color: var(--fg3);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.person-strip-value {
  display: grid;
  gap: 0.05rem;
  min-inline-size: 0;
  margin: 0;
}
.person-strip-text {
  color: var(--fg1);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.person-strip-note {
  color: var(--fg2);
  font-size: var(--text-xs);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* ── Jump to ─────────────────────────────────────────────────────────────
   A phone's way down a long page: a row of links to the sections that are there. Only under the width where the two columns begin, and never a count. */

.person-jump {
  display: none;
  margin-block-start: 0.5rem;
}
.person-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.person-jump-list a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--density-chip);
  padding-inline: 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--fg1);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.person-jump-list a:hover {
  background: var(--surface-tint);
}
@media (pointer: coarse) {
  .person-jump-list a {
    min-block-size: var(--target-min);
  }
}
@container person-page (max-width: 55.99rem) {
  .person-jump {
    display: block;
  }
}
@media (max-width: 55.99rem) {
  .person-jump {
    display: block;
  }
}

/* ── A panel ─────────────────────────────────────────────────────────────
   The hairline box every section of the page is: a head with the title (small caps, as the prototype's panel titles are), a note at its end, the body, and a foot that says where it came from
   and how old that is. The global `.panel` (10-globals.css) gives the surface, the edge and the radius; this gives it the Next edition's tight head and body. */

.panel.person-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-inline-size: none;
  min-inline-size: 0;
  gap: 0;
  box-shadow: none;
  overflow: clip;
  font-size: var(--person-data);
  line-height: 1.35;
}
.person-panel .person-panel-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
  padding: 0.45rem 0.75rem;
  border-block-end: 1px solid var(--rule);
  background: var(--surface-sunken);
}
.person-panel .person-panel-title {
  margin: 0;
  color: var(--fg2);
  font-family: var(--font-sans);
  font-size: var(--person-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.person-panel .person-panel-note {
  margin-inline-start: auto;
  color: var(--fg2);
  font-size: var(--person-meta);
  text-align: end;
}
.person-panel .person-panel-body {
  container: panel / inline-size;
  overflow-wrap: anywhere;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--density-gap);
  min-inline-size: 0;
  padding: 0.5rem 0.75rem 0.6rem;
}
.person-panel .person-panel-body:has(> .data-table-region:only-child) {
  padding: 0;
}
.person-panel .person-panel-foot {
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.75rem;
  border-block-start: 1px solid var(--rule);
  color: var(--fg2);
  font-size: var(--person-meta);
  line-height: 1.35;
}
.person-panel .person-panel-foot > p {
  margin: 0;
  color: var(--fg2);
  font-size: var(--person-meta);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.person-panel .person-panel-body > p,
.person-panel .person-panel-body > .teams-freshness {
  margin: 0;
  color: var(--fg2);
  font-size: var(--person-meta);
}
/* A sentence that explains what a panel's lines are and are not is small and quiet, and the headings inside a body are small caps. */
.person-panel .eyebrow {
  font-size: var(--person-label);
  letter-spacing: 0.09em;
}
.person-panel .callout {
  margin: 0;
}

/* What a panel says when there is nothing on record is one quiet line of its own size, in the panel's words and not a box: a dashed frame and a 1.25rem padding are for a page with nothing on it. */
.person-panel .empty-state[data-kind="nothing"] {
  gap: 0.15rem;
  padding: 0.1rem 0;
  border: 0;
  background: none;
}
.person-panel .empty-state[data-kind="nothing"] .empty-state-message {
  color: var(--fg2);
  font-family: var(--font-sans);
  font-size: var(--person-data);
  line-height: 1.35;
}
.person-panel .empty-state[data-kind="nothing"] .empty-state-detail {
  font-size: var(--person-meta);
}

/* ── Facts, grouped by source ────────────────────────────────────────────
   Small-caps group headings, and under each a row for each fact: its label, its value and the day it was true as of at the end. With less than 21rem the day moves to the label's line. */

.person-panel .fact-groups {
  container-type: inline-size;
  display: grid;
  gap: 0.5rem;
  min-inline-size: 0;
  margin: -0.5rem -0.75rem -0.6rem;
}
.person-panel .fact-group {
  display: grid;
  min-inline-size: 0;
}
.person-panel .fact-group + .fact-group {
  border-block-start: 1px solid var(--rule);
}
.person-panel .fact-group-heading {
  margin: 0;
  padding: 0.45rem 0.75rem 0.15rem;
  color: var(--fg3);
  font-family: var(--font-sans);
  font-size: var(--person-label);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.person-panel .fact-rows {
  display: grid;
  margin: 0;
}
.person-panel .fact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 0.6rem;
  align-items: baseline;
  min-inline-size: 0;
  padding: 0.3rem 0.75rem;
  border-block-start: 1px solid var(--rule);
}
.person-panel .fact-rows > .fact-row:first-child {
  border-block-start: 0;
}
.person-panel .fact-row-label {
  grid-column: 1;
  grid-row: 1;
  color: var(--fg2);
  font-size: var(--person-data);
  overflow-wrap: anywhere;
}
.person-panel .fact-row-asof {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--fg3);
  font-size: var(--person-meta);
  text-align: end;
  white-space: nowrap;
}
.person-panel .fact-row-value {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--fg1);
  font-size: var(--person-data);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.person-panel .fact-row-contested {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.15rem;
  margin: 0.15rem 0 0;
}
.person-panel .fact-row-contested .fact-dissent {
  margin: 0;
  font-size: var(--person-meta);
}
@container (min-width: 21rem) {
  .person-panel .fact-row {
    grid-template-columns: minmax(4.5rem, 7rem) minmax(0, 1fr) auto;
  }
  .person-panel .fact-row-label,
  .person-panel .fact-row-value,
  .person-panel .fact-row-asof {
    grid-row: 1;
  }
  .person-panel .fact-row-label {
    grid-column: 1;
  }
  .person-panel .fact-row-value {
    grid-column: 2;
  }
  .person-panel .fact-row-asof {
    grid-column: 3;
  }
}

/* ── Label over value, two to a row ──────────────────────────────────────
   Where something has a few facts that belong together (a room: the hall, the room, the term, the dates), each is a small-caps label over its value and two sit side by side. */

.person-panel .kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.9rem;
  margin: 0;
}
.person-panel .kv-item {
  display: grid;
  gap: 0.1rem;
  align-content: start;
  min-inline-size: 0;
}
.person-panel .kv-item[data-wide] {
  grid-column: 1 / -1;
}
.person-panel .kv dt {
  color: var(--fg3);
  font-size: var(--person-label);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}
.person-panel .kv dd {
  margin: 0;
  color: var(--fg1);
  font-size: var(--person-data);
  font-weight: 600;
  overflow-wrap: anywhere;
}
@container panel (max-width: 17rem) {
  .person-panel .kv {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Rows ────────────────────────────────────────────────────────────────
   A short list of what is on record, each a row between hairlines: what it is and what else the source says of it on the left, and a day at the end. */

.person-panel .person-rows {
  display: grid;
  margin: -0.5rem -0.75rem -0.6rem;
  padding: 0;
  list-style: none;
}
.person-panel .person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.05rem 0.6rem;
  align-items: baseline;
  min-inline-size: 0;
  padding: 0.35rem 0.75rem;
  border-block-start: 1px solid var(--rule);
}
.person-panel .person-rows > .person-row:first-child {
  border-block-start: 0;
}
.person-panel .person-row-main {
  display: grid;
  min-inline-size: 0;
}
.person-panel .person-row-name {
  color: var(--fg1);
  font-size: var(--person-data);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.person-panel .person-row-detail {
  color: var(--fg2);
  font-size: var(--person-meta);
  overflow-wrap: anywhere;
}
/* What a source says of a row besides its name runs on in one flow and wraps, so a row is as many lines as it has to be and no more. */
.person-panel .person-row-flow {
  display: block;
  min-inline-size: 0;
}
.person-panel .person-row-flow > .person-row-detail {
  display: inline;
}
.person-panel .person-row-flow > .person-row-detail + .person-row-detail {
  margin-inline-start: 0.4rem;
  padding-inline-start: 0.5rem;
  border-inline-start: 1px solid var(--rule-strong);
}
.person-panel .person-row-end {
  color: var(--fg3);
  font-size: var(--person-meta);
  text-align: end;
  overflow-wrap: anywhere;
}
.person-panel .person-row-badges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
/* A disclosure runs to the edges of its panel's body, so its rows (and a table) do the same under its summary: the box is the one that bleeds, and nothing inside it pulls out of it, which a
   box that scrolls or spills would show as a width it does not have. The summary is padded back in. */
.person-panel details.person-fold {
  margin: 0 -0.75rem;
}
.person-panel details.person-fold:last-child {
  margin-block-end: -0.6rem;
}
.person-panel details.person-fold .person-rows {
  margin: 0;
}
.person-panel details.person-fold .person-rows > .person-row:first-child {
  border-block-start: 1px solid var(--rule);
}
.person-panel details.person-fold > summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 0.75rem;
  min-block-size: 1.5rem;
  color: var(--fg2);
  font-size: var(--person-label);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}
/* The disclosure's mark is a small triangle drawn in the border, so it follows the text color and turns when the section is open. */
.person-panel details.person-fold > summary::-webkit-details-marker {
  display: none;
}
.person-panel details.person-fold > summary::before {
  content: "";
  flex: none;
  border-block: 0.25rem solid transparent;
  border-inline-start: 0.4rem solid currentColor;
}
.person-panel details.person-fold[open] > summary::before {
  transform: rotate(90deg);
}
.person-panel details.person-fold:dir(rtl) > summary::before {
  transform: scaleX(-1);
}
.person-panel details.person-fold[open]:dir(rtl) > summary::before {
  transform: rotate(90deg);
}
@media (pointer: coarse) {
  .person-panel details.person-fold > summary {
    min-block-size: var(--target-min);
  }
}

/* ── Tables inside the page ──────────────────────────────────────────────
   The Next edition's `table.dtable`: 13px, small tracked headers, tight cells, hairlines; a row about 30px with one line in it. They are real tables in their own scroll region
   (data-table-region), and a wide one scrolls inside it and never the page. */

.person-panel table.data.data-table {
  font-size: var(--person-data);
  line-height: 1.35;
}
.person-panel table.data.data-table thead th {
  padding: 0.35rem 0.5rem;
  background: var(--surface-sunken);
  font-size: var(--person-label);
  letter-spacing: 0.08em;
}
.person-panel table.data.data-table td,
.person-panel table.data.data-table tbody th[scope="row"] {
  padding: var(--person-row-y) 0.5rem;
}
.person-panel table.data.data-table :is(th, td):first-child {
  padding-inline-start: 0.75rem;
}
.person-panel table.data.data-table :is(th, td):last-child {
  padding-inline-end: 0.75rem;
}
.person-panel table.data.data-table tbody th[scope="row"] {
  font-weight: 650;
}
.person-panel table.data.data-table td .pill {
  font-size: var(--person-meta);
}
/* The Cases table has five columns in the side column, which is a quarter of the page. The case's label may break a word anywhere (53-case-pages.css: `overflow-wrap: anywhere`), which lowers its
   column's minimum to nothing, and the columns that cannot wrap (a badge, a day) took the room: "Threa / t / asses / smen / t / matt / er". It wraps at spaces and breaks a word only when the word
   has no room, like every other cell of a table (37-table-and-empty-state.css), and the table scrolls inside its own region for the rest, as the Classes table does. */
.person-panel .cases-link,
.person-panel .cases-type {
  overflow-wrap: break-word;
}

/* The Classes panel is its tables edge to edge, so its body has no padding of its own, and a warning that leads it has the page's. */
.classes-panel.person-panel .person-panel-body {
  gap: 0;
  padding: 0;
}
.classes-panel.person-panel .person-panel-body > .empty-state {
  padding: 0.5rem 0.75rem;
}
.classes-panel.person-panel .person-panel-body > .callout {
  margin: 0.5rem 0.75rem;
}
/* The region's edge cue covers itself with the page's color; in a panel that is the panel's. */
.person-panel .data-table-region {
  --region-cover: var(--surface-raised);
}
/* A table in a disclosure runs edge to edge in its panel too. */
.person-panel details.person-fold .data-table-region {
  margin-block-start: 0.35rem;
}

/* The Classes table: one row for each class, the class and its section in the work face as an identifier, the title beneath it. */
.person-panel .classes-table td {
  vertical-align: top;
}
.person-panel .classes-code {
  color: var(--fg1);
  font-weight: 650;
}
.person-panel .classes-time {
  white-space: nowrap;
}
.person-panel .classes-title,
.person-panel .classes-provenance,
.person-panel .classes-unknown {
  font-size: var(--person-meta);
}
.person-panel .classes-title {
  color: var(--fg2);
}
.person-panel .classes-term {
  gap: 0;
  padding-block-start: 0;
  border-block-start: 0;
}
.person-panel .classes-term + .classes-term {
  margin-block-start: var(--density-block);
  border-block-start: 1px solid var(--rule);
}
.person-panel .classes-term-heading {
  padding: 0.4rem 0.75rem;
  border-block-end: 1px solid var(--rule);
  background: var(--surface-sunken);
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: var(--person-data);
  font-weight: 650;
  letter-spacing: 0;
}
/* The source and the moment of a term's classes, said once under its heading when they are the same for every class of it. */
.person-panel .classes-term-provenance {
  margin: 0;
  padding: 0.3rem 0.75rem;
  border-block-end: 1px solid var(--rule);
}
.person-panel .classes-note,
.person-panel .housing-note {
  font-size: var(--person-meta);
}

/* Anything wide in the main column folds its least needed columns under 40rem of its own region, and says them under the class in words, so a phone reads a class and not a scrolling table. */
.person-panel .classes-table .classes-fold {
  display: none;
}
@container (max-width: 34rem) {
  .person-panel .classes-table :is(th, td)[data-fold] {
    display: none;
  }
  .person-panel .classes-table .classes-fold {
    display: grid;
    gap: 0.1rem;
    margin: 0.2rem 0 0;
    color: var(--fg2);
    font-size: var(--person-meta);
  }
  .person-panel .classes-table .classes-fold div {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.35rem;
  }
  .person-panel .classes-table .classes-fold dt {
    color: var(--fg3);
    font-size: var(--person-label);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .person-panel .classes-table .classes-fold dd {
    margin: 0;
    color: var(--fg1);
  }
}

/* The timeline keeps its own entries and takes the main column's width, and on this page it is a panel like the others: the same hairline, the same small-caps title in a sunken head, its figures in a
   row under it, its entries and its empty line in the page's own padding. */
.person-timeline > * {
  min-inline-size: 0;
}
.person-timeline .spine {
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  overflow: clip;
  font-size: var(--person-data);
  line-height: 1.35;
}
.person-timeline .spine-header {
  padding: 0.45rem 0.75rem;
  border-block-end: 1px solid var(--rule);
  background: var(--surface-sunken);
}
.person-timeline .spine-heading {
  margin: 0;
  color: var(--fg2);
  font-family: var(--font-sans);
  font-size: var(--person-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.person-timeline .figure-strip {
  border-block: 0;
  border-block-end: 1px solid var(--rule);
}
.person-timeline .figure {
  padding: 0.4rem 0.75rem;
}
.person-timeline .figure-value {
  font-size: var(--person-data);
}
.person-timeline .spine > :is(.empty-state, .spine-years, .filter-bar, .pagination) {
  margin: 0.5rem 0.75rem;
}
.person-timeline .empty-state[data-kind="nothing"] {
  padding: 0.1rem 0;
  border: 0;
}
.person-timeline .empty-state[data-kind="nothing"] .empty-state-message {
  font-family: var(--font-sans);
  font-size: var(--person-data);
  line-height: 1.35;
}
