/* The examples keep their local chart palettes and share the editorial masthead. */
body.lab {
  --bg: var(--paper);
  --surface: var(--panel);
  --ink: var(--type);
  --muted: var(--subtype);
  --line: var(--rule);
  --accent: var(--brand);
  background: var(--paper);
}
.lab .event-intro::before, .lab .workspace-heading::before { display: none; }
.lab .event-intro h1, .lab .workspace-heading h1 {
  font: 400 clamp(3.1rem, 5.5vw, 5.3rem)/1.05 var(--serif);
  letter-spacing: -.035em;
}
.lab .event-intro > p, .lab .workspace-subtitle { max-width: 55ch; }
.lab .matrix-mobile-date { display: none; }
.lab pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.lab .chart-text { font-family: var(--sans); }
@media (max-width: 1080px) {
  .lab .matrix-scroll { overflow: visible; padding: 0; }
  .lab #reliability-matrix { min-width: 0; }
  .lab .matrix-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(3rem, 1fr)); gap: .3rem; margin-bottom: 1rem; }
  .lab .matrix-row.matrix-dates { display: none; }
  .lab .matrix-service { grid-column: 1 / -1; width: fit-content; position: static; padding-inline: 0; font-weight: 600; }
  .lab .matrix-mobile-date { display: inline; font-size: 1rem; }
  .lab .matrix-cell { min-height: 44px; height: auto; display: inline-flex; align-items: center; justify-content: center; gap: .1em; padding: .2em; color: var(--ink); }
  .lab .matrix-cell[data-level="2"] { color: var(--surface); }
}
@media (max-width: 700px) and (orientation: portrait) {
  .lab { --label-size: .8rem; }
  .lab .public-head .brand { font-size: 1.08rem; }
  .lab .public-head .header nav a, .lab .public-head .nav-toggle,
  .lab .public-foot nav a, .lab #telemetry-choice :is(button,a,p) { font-size: .9rem; }
  .lab .public-foot small, .lab .matrix-mobile-date { font-size: .8rem; }
  .lab #chart-unit, .lab .matrix-cell > span, .lab #inspect-date,
  .lab .journey-node-top > span, .lab #product-status, .lab #journey-page,
  .lab main th, .lab .service-monogram { font-size: .8rem; }
  .lab #chart-summary, .lab #journey-scope, .lab .journey-product .chart-note { font-size: .9rem; line-height: 1.5; }
  .lab .scenario-bar .scenario-pill { font-size: .95rem; min-height: 44px; }
  .lab .scenario-pill small { font-size: .85rem; }
  .lab .study-context summary, .lab .event-paging button { font-size: .95rem; }
  .lab .event-intro > p, .lab .workspace-subtitle { font-size: 1.05rem; }
  .lab .event-intro, .lab .workspace-heading { padding-top: 1rem; }
  .lab .event-intro h1, .lab .workspace-heading h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .lab .command-in-title .workspace-heading > div { grid-template-columns: minmax(0,1fr); }
  .lab .command-in-title .workspace-heading .command-trigger { grid-row: 3; grid-column: 1; justify-self: start; }
  .lab .workspace-subtitle { margin: .5rem 0; }
  .lab .public-foot.wrap { width: calc(100% - 2 * var(--gutter)); }
}
