/* Article figures. Semantic labels and diagrams share their reading order. */
.field-figure {
  --ff-ink: #172c33;
  --ff-green: #125253;
  --ff-soft: #dfe8dc;
  --ff-orange: #a9361b;
  --ff-line: #a1aea3;
  box-sizing: border-box;
  container-type: inline-size;
  margin: clamp(24px, 5vw, 46px) 0;
  color: var(--ff-ink);
  font-family: system-ui, -apple-system, sans-serif;
  text-align: left;
}
.field-figure *, .field-figure *::before, .field-figure *::after { box-sizing: border-box; }
.ff-area { border: 1px solid var(--ff-line); border-top: 4px solid var(--ff-green); background: #faf8f2; padding: clamp(16px, 3.5vw, 32px); }
.ff-heading { font-size: clamp(1.2rem, 4cqi, 1.75rem); line-height: 1.2; font-weight: 730; letter-spacing: -.035em; margin: 0 0 1em; }
.field-figure figcaption { margin: .65rem 0 0; color: #46564f; font: normal .9rem/1.5 system-ui, sans-serif; }
.ff-bag-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); align-items: center; gap: clamp(15px, 4cqi, 30px); }
.ff-illustration { display: flex; flex-direction: column; align-items: center; padding: 5px 10px 14px; background: #e9eadb; border: 1px solid #bfc6b4; }
.ff-illustration svg { display: block; max-width: 100%; width: 245px; height: auto; }
.ff-illustration span, .ff-event-label { color: #39554e; font-size: .77rem; line-height: 1.4; font-weight: 680; }
.ff-observations { display: grid; gap: 15px; }
.ff-evidence { border-left: 3px solid var(--ff-green); padding-left: .8rem; }
.ff-evidence.ff-unseen { border-left: 3px dashed var(--ff-orange); }
.ff-evidence strong { display: block; font-size: 1rem; line-height: 1.4; color: var(--ff-green); }
.ff-unseen strong { color: var(--ff-orange); }
.field-figure .ff-evidence ul { list-style: disc; margin: .35rem 0 0; padding: 0 0 0 1rem; }
.field-figure .ff-evidence li { padding: 0; margin: .15rem 0; font-size: .9rem; line-height: 1.4; }
.field-figure .ff-path { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.field-figure .ff-path li { min-width: 0; display: flex; flex-direction: column; position: relative; padding: .85rem; margin: 0; border: 1px solid #b7c5b8; background: #edf1e8; }
.field-figure .ff-path li:last-child { background: #f7ede1; border: 1px dashed var(--ff-orange); }
.ff-station svg { width: 65px; height: 54px; color: var(--ff-green); }
.ff-path li:last-child .ff-station svg { color: #7c3e26; }
.ff-path li > strong { font-size: clamp(1.05rem,3cqi,1.35rem); line-height: 1.25; letter-spacing: -.035em; margin: .15rem 0 .4rem; }
.ff-detail { font-size: .86rem; line-height: 1.42; }
.ff-price-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); gap: clamp(16px,5cqi,36px); }
.ff-ticket { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 1.75rem 1.4rem 1.7rem; min-height: 150px; background: var(--ff-green); color: #fffaf0; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.ff-tag-hole { position: absolute; right: 17px; top: calc(50% - 4px); width: 8px; height: 8px; background: #faf8f2; border-radius: 50%; }
.ff-ticket strong { font-size: clamp(2.5rem, 10cqi, 4.6rem); line-height: 1; letter-spacing: -.07em; }
.ff-ticket > span { max-width: calc(100% - 15px); margin-top: .55rem; font-size: .95rem; line-height: 1.3; }
.field-figure .ff-calculation dl { margin: 0; }
.ff-calculation dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .5rem; padding: .4rem 0; border-bottom: 1px solid #c8d1c5; font-size: .87rem; line-height: 1.4; }
.ff-calculation dt { color: #43564b; }
.ff-calculation dd { margin: 0; font-weight: 650; }
.ff-formula { display: block; margin: .7rem 0 .18rem; font-size: .88rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ff-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; }
.ff-total strong { color: var(--ff-orange); font-size: clamp(1.65rem,5cqi,2.5rem); line-height: 1; letter-spacing: -.055em; }
.ff-total span { font-size: .85rem; }
@container (max-width: 490px) {
  .ff-bag-layout, .ff-price-layout { grid-template-columns: 1fr; }
  .ff-illustration svg { width: 185px; }
  .ff-illustration { padding-bottom: 9px; }
  .ff-ticket { min-height: 100px; padding: 1.1rem 1.3rem; }
  .field-figure .ff-path { grid-template-columns: 1fr; gap: 6px; }
  .field-figure .ff-path li { display: grid; align-content: center; grid-template-columns: 58px minmax(0,1fr); column-gap: 10px; padding: .65rem; }
  .ff-station { grid-column: 1; grid-row: 1 / 4; align-self: center; }
  .ff-station svg { width: 56px; height: 49px; }
  .ff-path li > strong, .ff-event-label, .ff-detail { grid-column: 2; }
  .ff-path li > strong { margin: .05rem 0 .18rem; }
}

/* Opening exhibits quote the case records. Each can grow with the reader's font size. */
.exhibit.journal-record {
  --record-accent: #38536b;
  --record-ground: #e6eef4;
  --record-line: #b6c8d2;
  width: 100%; max-width: 100%; min-width: 0; min-height: 0; aspect-ratio: auto;
  display: block; position: relative; margin: 0; padding: clamp(16px, 3vw, 33px);
  overflow: visible; text-align: left; color: #172a37; background: var(--record-ground);
  border-top: 5px solid var(--record-accent); border-radius: 2px;
  font-family: var(--sans, system-ui, sans-serif); container-type: inline-size;
}
.journal-record *, .journal-record *::before { box-sizing: border-box; }
.journal-record figcaption {
  margin: 0 0 16px; padding: 0; color: var(--record-accent);
  font: 660 clamp(.92rem,2.4cqi,1.08rem)/1.3 var(--sans, system-ui, sans-serif);
}
.journal-record .journal-record-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0;
  background: #fffdf9; border: 1px solid var(--record-line);
}
.journal-record-pair > div { min-width: 0; padding: clamp(11px,3.8cqi,20px); }
.journal-record-pair > div + div { border-left: 1px solid var(--record-line); }
.journal-record dt { color: var(--record-accent); font-size: .79rem; font-weight: 690; line-height: 1.35; }
.journal-record dd { margin: .55rem 0 0; }
.journal-record dd strong {
  display: block; color: #142638; font: 690 clamp(1.13rem,5.6cqi,1.9rem)/1.12 var(--sans, system-ui, sans-serif);
  letter-spacing: -.035em; overflow-wrap: anywhere;
}
.journal-record .journal-record-note { display: block; margin-top: .55rem; font-size: .87rem; line-height: 1.45; }
.journal-record.record-done-evidence, .journal-record.record-benchmark {
  --record-accent: #3a3489; --record-ground: #edeaf9; --record-line: #c3bddb;
}
.journal-record.record-price-source { --record-accent: #70450a; --record-ground: #f9e6bf; --record-line: #d7bc91; }
.journal-record.record-french-flow, .journal-record.record-may-will { --record-accent: #844533; --record-ground: #f8e4d9; --record-line: #d7b6a7; }
.journal-record code { color: inherit; background: transparent; padding: 0; font: 650 clamp(2rem,10cqi,3.2rem)/1 ui-monospace, monospace; letter-spacing: -.065em; white-space: nowrap; }
.journal-record code em { color: #6452a9; font-style: normal; text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: .075em; }
.record-price-source dd strong { font-size: clamp(1.8rem,8.5cqi,3.1rem); }
.record-crm-consent dd strong { font: 500 clamp(1.08rem,4.7cqi,1.5rem)/1.18 var(--serif, Georgia, serif); letter-spacing: -.025em; }
.record-french-flow dd strong { font-size: clamp(1.15rem, 5.2cqi, 1.82rem); }
.record-benchmark table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fffdf9; font-size: .84rem; line-height: 1.3; }
.record-benchmark :is(th,td) { text-align: left; vertical-align: middle; padding: clamp(7px,2.6cqi,13px); border-bottom: 1px solid var(--record-line); overflow-wrap: anywhere; }
.record-benchmark thead th { color: var(--record-accent); font-weight: 680; }
.record-benchmark th:first-child { width: 38%; }
.record-benchmark tbody th { font-weight: 550; }
.record-benchmark td { font-variant-numeric: tabular-nums; }
.record-benchmark tbody b { display: block; }
.record-benchmark td svg { display: block; width: 100%; height: 5px; margin-top: 6px; }
.journal-meter-track { fill: #dedbe9; }
.journal-meter-fill { fill: #443990; }
.record-benchmark tfoot { font-weight: 700; }
.journal-record .journal-record-summary { margin: .75rem 0 0; font-size: .87rem; line-height: 1.4; }
@container (max-width: 380px) {
  .journal-record .journal-record-pair { grid-template-columns: minmax(0, 1fr); }
  .journal-record-pair > div + div { border-left: 0; border-top: 1px solid var(--record-line); }
}
@media print {
  .exhibit.journal-record { max-width: 100%; break-inside: avoid; }
}
