/*
 * Open Flight system: fonts, base elements and every shared component.
 * Load order on every page: tokens.css, system.css, then one page stylesheet for layout.
 * Uses semantic tokens only (see tokens.css). Component inventory and rules: DESIGN.md.
 */

/* ---------- Fonts: self-hosted, Latin + Spanish + Cyrillic subsets ---------- */
@font-face {
  font-family: 'Open Flight Text';
  src: url('./assets/fonts/OpenFlightText-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Flight Text';
  src: url('./assets/fonts/OpenFlightText-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Flight Text';
  src: url('./assets/fonts/OpenFlightText-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya';
  src: url('./assets/fonts/Alegreya-Bold.woff2') format('woff2');
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya';
  src: url('./assets/fonts/Alegreya-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Unbounded (SIL OFL): the editorial poster face for titles, numerals and labels. */
@font-face {
  font-family: 'Unbounded';
  src: url('./assets/fonts/Unbounded.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  text-wrap: balance;
}
h1 {
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
}
h2 {
  font-size: var(--text-xl);
}
h3 {
  font-size: var(--text-lg);
}
h4 {
  font-size: var(--text-md);
}
p {
  margin: 0;
  text-wrap: pretty;
}
img,
svg,
canvas,
video {
  max-width: 100%;
}
img {
  height: auto;
}
i,
em {
  font-style: italic;
}
b,
strong {
  font-weight: var(--weight-bold);
}
small {
  font-size: var(--text-xs);
}
hr {
  border: 0;
  border-top: var(--line-hair) dashed var(--color-rule);
  margin: var(--space-5) 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--color-surface-selected);
  color: var(--color-text);
}

/* Links: always underlined in running text; air-blue. */
a {
  color: var(--color-text-link);
  text-decoration-thickness: var(--line-hair);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: var(--line-strong);
}

/* Focus: one visible ring everywhere, never removed. */
:focus-visible {
  outline: var(--line-focus) solid var(--color-focus);
  outline-offset: var(--line-strong);
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  color: var(--color-text-link);
  border: var(--line-strong) solid var(--color-selected);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.wrap {
  width: min(100% - 2 * var(--size-gutter), var(--size-page));
  margin-inline: auto;
}

/* Inline SVG icons from editor-art.svg */
.icon {
  width: var(--size-icon);
  height: var(--size-icon);
  flex: none;
  vertical-align: middle;
}
.small-icon {
  width: var(--space-4);
  height: var(--space-4);
  flex: none;
  vertical-align: middle;
}

/* ---------- Type roles ---------- */
.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-text-accent);
  font-family: var(--font-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-snug);
  text-transform: uppercase;
}
.lede {
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  max-width: var(--measure);
}
.hint {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

/* ---------- Header (one header for every page) ---------- */
.mast {
  position: relative;
  z-index: 30;
  background: var(--color-page);
  border-bottom: var(--line-hair) solid var(--color-rule);
}
.mast-in {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(100% - 2 * var(--size-gutter), var(--size-page));
  min-height: calc(var(--size-target) + var(--space-4));
  margin-inline: auto;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: var(--size-target);
  margin-inline-end: auto;
  color: var(--color-text);
  text-decoration: none;
}
.wordmark img {
  display: block;
  width: auto;
  height: 2.25rem;
}
.primary-links {
  display: flex;
  gap: var(--space-1);
}
.primary-links a {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  min-height: var(--size-target);
  padding-inline: var(--space-3);
  color: var(--color-text);
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.primary-links a:hover {
  color: var(--color-text-link);
  text-decoration: underline;
}
.primary-links [aria-current],
.primary-links .current {
  color: var(--color-text-link);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-decoration-thickness: var(--line-strong);
  text-decoration-style: dashed;
}
/* Phones keep Print & Play in the header while there is room for it. */
@media (max-width: 900px) {
  .primary-links a:not(:first-child) {
    display: none;
  }
}
@media (max-width: 480px) {
  .primary-links {
    display: none;
  }
}
@media (max-width: 400px) {
  .mast-in {
    gap: var(--space-2);
  }
  .wordmark img {
    height: 1.75rem;
  }
}
/* The narrowest phones show the symbol alone: the lockup is cropped to its first 48 of 245 units,
   so the link keeps its accessible name "Open Flight". */
@media (max-width: 360px) {
  .mast-in {
    gap: var(--space-1);
  }
  .mast .wordmark img {
    width: calc(2rem * 48 / 59);
    height: 2rem;
    object-fit: cover;
    object-position: left center;
  }
}

/* Language switch: three links, always visible, one tap. */
.lang {
  display: flex;
  flex: none;
  border: var(--line-hair) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  overflow: hidden;
}
.lang a {
  display: grid;
  place-items: center;
  min-width: var(--size-target);
  min-height: var(--size-target);
  padding-inline: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-decoration: none;
}
.lang a + a {
  border-inline-start: var(--line-hair) solid var(--color-rule);
}
.lang a:hover {
  background: var(--color-surface-selected);
}
.lang a[aria-current] {
  background: var(--color-selected);
  color: var(--color-selected-text);
}
.lang a:focus-visible {
  outline-offset: calc(-1 * var(--line-focus));
}

/* Workshop menu */
.workshop-menu {
  position: relative;
  font-size: var(--text-sm);
}
.workshop-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--size-target);
  min-width: var(--size-target);
  padding-inline: var(--space-3);
  border: var(--line-hair) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: var(--weight-bold);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.workshop-menu summary::-webkit-details-marker {
  display: none;
}
.workshop-menu summary::before {
  content: '';
  width: var(--space-4);
  height: var(--space-3);
  border-block: var(--line-strong) solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% var(--line-strong) no-repeat;
}
.workshop-menu[open] summary {
  background: var(--color-selected);
  border-color: var(--color-selected);
  color: var(--color-selected-text);
}
.workshop-links {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + var(--space-2));
  z-index: 35;
  display: grid;
  width: max-content;
  min-width: 14rem;
  max-width: min(90vw, 20rem);
  max-height: calc(100dvh - var(--space-9));
  overflow-y: auto;
  padding: var(--space-2);
  background: var(--color-surface);
  border: var(--line-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}
.workshop-menu:not([open]) .workshop-links {
  display: none;
}
.workshop-links a {
  display: flex;
  align-items: center;
  min-height: var(--size-target);
  padding-inline: var(--space-3);
  color: var(--color-text);
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.workshop-links a:hover {
  background: var(--color-surface-selected);
  color: var(--color-text-link);
}
.workshop-links .menu-group {
  margin: var(--space-3) var(--space-3) var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.workshop-links .menu-group:first-child {
  margin-top: var(--space-1);
}
.workshop-links a[aria-current] {
  font-weight: var(--weight-bold);
  box-shadow: inset var(--line-focus) 0 0 var(--color-selected);
}
@media (max-width: 400px) {
  .workshop-menu summary span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
@media (max-width: 460px) {
  .mast-in,
  .mast .workshop-menu {
    position: static;
  }
  .workshop-links {
    inset-inline: var(--size-gutter);
    width: auto;
    max-width: none;
  }
}

/* Breadcrumb links wrap independently on narrow screens. */
.breadcrumbs {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-2);
  margin: 0;
  padding: var(--space-1) 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.breadcrumbs li + li::before {
  content: '';
  width: var(--space-1);
  height: var(--space-1);
  border: solid var(--color-border);
  border-width: var(--line-hair) var(--line-hair) 0 0;
  transform: rotate(45deg);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-width: var(--size-target);
  min-height: var(--size-target);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-8);
  padding-block: var(--space-6);
  border-top: var(--line-hair) dashed var(--color-rule);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.site-footer .wordmark img {
  height: 1.75rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--size-target);
  padding: var(--space-2) var(--space-5);
  border: var(--line-control) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-quick) var(--ease-standard),
    color var(--duration-quick) var(--ease-standard),
    transform var(--duration-quick) var(--ease-standard);
}
.button:hover {
  background: var(--color-surface-selected);
  text-decoration: none;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--color-action);
  border-color: var(--color-action);
  color: var(--color-action-text);
}
.button.primary:hover {
  background: var(--color-action-hover);
  border-color: var(--color-action-hover);
}
.button.secondary {
  background: var(--color-surface);
  border-color: var(--color-selected);
  color: var(--color-text-link);
}
.button.small {
  min-height: var(--size-target);
  padding-inline: var(--space-3);
  font-size: var(--text-xs);
}
.button:disabled,
.button[aria-disabled='true'] {
  background: var(--color-surface-sunken);
  border-color: var(--color-rule);
  color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
}
.button .icon,
.button svg {
  width: var(--size-icon);
  height: var(--size-icon);
  flex: none;
}
/* A link that reads as a next step: bold, underlined, never a box. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--size-target);
  color: var(--color-text-link);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-decoration-thickness: var(--line-hair);
  text-underline-offset: 0.2em;
}
.text-link:hover {
  text-decoration-thickness: var(--line-strong);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

/* ---------- Touch targets: every control is at least 44 x 44 px ---------- */
button,
select,
summary {
  min-height: var(--size-target);
}
button {
  min-width: var(--size-target);
}
summary {
  display: flex;
  align-items: center;
  cursor: pointer;
}
/* A link that stands on its own (not inside a sentence) is a control too. Zero specificity:
   page layouts keep their own display rules. */
:where(div, section, article, aside, nav, header, footer, figure, figcaption, form, li, dd, small, h1, h2, h3, h4) > a,
:where(.field-credit, .ref-rows p, .of-model-map__credits) > a,
#fold-reference {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
}

/* ---------- Form fields ---------- */
label {
  font-size: var(--text-sm);
}
input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}
input[type='text'],
input[type='number'],
input[type='url'],
input[type='search'],
input:not([type]),
select,
textarea {
  min-height: var(--size-target);
  padding: var(--space-2) var(--space-3);
  border: var(--line-hair) solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  max-width: 100%;
}
select {
  appearance: none;
  padding-inline-end: calc(var(--space-3) + var(--space-5));
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text) 50%),
    linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
  background-position:
    calc(100% - var(--space-4) - 5px) 52%,
    calc(100% - var(--space-4)) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-border-strong);
}
input[aria-invalid='true'],
select[aria-invalid='true'] {
  border-color: var(--color-text-danger);
  box-shadow: inset 0 0 0 var(--line-hair) var(--color-text-danger);
}
input:disabled,
select:disabled {
  background-color: var(--color-surface-sunken);
  color: var(--color-text-muted);
  cursor: not-allowed;
}
input[type='checkbox'],
input[type='radio'] {
  width: var(--size-icon);
  height: var(--size-icon);
  margin: 0;
  accent-color: var(--color-selected);
}
input[type='range'] {
  width: 100%;
  min-height: var(--size-target);
  margin: 0;
  accent-color: var(--color-selected);
  background: transparent;
  cursor: pointer;
}
.form-label {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}
output {
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-bold);
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  padding: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

/* ---------- Choices: any button with aria-pressed, and radio cards ---------- */
button[aria-pressed] {
  min-height: var(--size-target);
  padding: var(--space-2) var(--space-4);
  border: var(--line-hair) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color var(--duration-quick) var(--ease-standard);
}
button[aria-pressed]:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-selected);
}
button[aria-pressed='true'] {
  border-color: var(--color-selected);
  background: var(--color-surface-selected);
  box-shadow: inset 0 0 0 var(--line-hair) var(--color-selected);
  font-weight: var(--weight-bold);
}
/* A row of mutually exclusive choices (tabs, presets, views). */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-md);
  background: var(--color-surface-sunken);
}
.segmented button[aria-pressed] {
  border-color: transparent;
  background: transparent;
}
.segmented button[aria-pressed='true'] {
  border-color: var(--color-selected);
  background: var(--color-surface);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-2);
  border: var(--line-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  background: var(--color-surface-sunken);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1.7;
}

/* ---------- Surfaces ---------- */
/* A panel is a printed sheet lying on the paper page. */
.panel {
  background: var(--color-surface);
  border: var(--line-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sheet);
}
/* The drawing stage: pale sky with a 5 mm notebook grid. */
.stage-grid {
  background-color: var(--color-surface-stage);
  background-image:
    linear-gradient(var(--color-grid) var(--line-hair), transparent var(--line-hair)),
    linear-gradient(90deg, var(--color-grid) var(--line-hair), transparent var(--line-hair));
  background-size: var(--space-5) var(--space-5);
  background-position: -1px -1px;
}

/* ---------- Disclosure ---------- */
.fold-physics {
  border: var(--line-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.fold-physics > summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--size-target);
  padding: var(--space-2) var(--space-4);
  font-weight: var(--weight-bold);
  cursor: pointer;
  list-style: none;
}
.fold-physics > summary::-webkit-details-marker {
  display: none;
}
.fold-physics > summary::before {
  content: '';
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-inline-end: var(--line-strong) solid currentColor;
  border-bottom: var(--line-strong) solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--duration-quick) var(--ease-standard);
}
.fold-physics[open] > summary::before {
  transform: rotate(45deg);
}
.fold-physics > :not(summary) {
  margin: 0 var(--space-4) var(--space-4);
  max-width: var(--measure);
}
.fold-physics {
  margin-block: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}


/* Print-at-actual-size reminder, shown beside every download. */
.print-reminder {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: var(--line-hair) dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
}
/* A drawn 50 mm-style ruler: end stops and a line, as on the sheet. */
.print-reminder::before {
  content: '';
  width: 3rem;
  height: var(--space-3);
  border-inline: var(--line-strong) solid var(--color-text);
  background: linear-gradient(var(--color-text), var(--color-text)) center / 100% var(--line-strong) no-repeat;
}
.print-reminder strong {
  display: block;
}

/* ---------- Tables ---------- */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--line-hair) solid var(--color-rule);
  text-align: start;
  vertical-align: top;
}
th {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ---------- Dialog ---------- */
dialog {
  width: min(100% - 2 * var(--size-gutter), 40rem);
  max-height: 85vh;
  padding: 0;
  border: var(--line-hair) solid var(--color-rule);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-float);
}
dialog::backdrop {
  background: var(--color-scrim);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* A 50 mm line printed on documents so a reader can check the printer scale. */
.print-calibration {
  display: none;
  align-items: center;
  gap: 2mm;
  margin-top: 4mm;
  font-size: var(--print-text-min);
}
.print-calibration svg {
  width: var(--print-calibration);
  height: 3mm;
  overflow: visible;
}

/* ---------- Print (every page) ---------- */
@page {
  margin: var(--print-margin);
}
@media print {
  body {
    background: var(--print-paper);
    color: var(--print-ink);
    font-size: var(--print-text-body);
    line-height: var(--print-leading);
  }
  .mast,
  .breadcrumbs,
  .site-footer,
  .skip-link,
  .workshop-menu,
  .actions {
    display: none !important;
  }
  a {
    color: var(--print-ink);
  }
  h1 {
    font-size: var(--print-text-title);
  }
  h2 {
    font-size: var(--print-text-step);
  }
  h3,
  h4 {
    font-size: var(--print-text-body);
  }
  small,
  .hint,
  th {
    font-size: var(--print-text-min);
  }
  /* Low ink: no fills, no shadows. Rules are at least 0.3 mm. */
  body *,
  body *::before,
  body *::after {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  .panel {
    border: 0;
    break-inside: avoid;
  }
  th,
  td {
    border-bottom: var(--print-line-css) solid var(--print-muted);
  }
  input,
  select,
  textarea,
  button {
    border-width: var(--print-line-css) !important;
  }
  .print-reminder {
    display: none;
  }
  .print-calibration {
    display: flex;
  }
}

/* ---------- Fold-step presenter (fold-lesson.js: studio, airplanes, worktable) ---------- */
.fold-lesson-figure {
  min-width: 0;
  overflow: hidden;
  border: var(--line-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.fold-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.fold-lesson-actions > button {
  min-height: var(--size-target);
}
