/* Presentation-only accessibility adapter. No model, renderer or Worker changes. */
.masthead,
body.focus .masthead {
  height: auto;
  min-height: 80px;
  flex-wrap: wrap;
  padding-block: 12px;
}
.mast-actions { flex-wrap: wrap; gap: 12px; }
.executive-entry {
  min-height: 48px;
  padding: 12px 16px;
  background: var(--lime);
  color: #172b24;
  border: 1px solid var(--lime);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.presentation-tools { max-width: 100%; }
.presentation-tools summary {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}
.presentation-tools-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0;
}
.presentation-tools-content #notes-toggle { display: inline-block; }
.presentation-tools-content button { min-height: 44px; }
.presentation-tools-content .focus-button { font-size: 12px; }
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  /* A sticky bottom nav can cover a scrolled action without causing overflow.
     Keep all five chapters in normal flow, never in the action's hit area. */
  .chapter-nav {
    position: static;
    bottom: auto;
    backdrop-filter: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 12px;
  }
  .chapter-tabs {
    order: -1;
    flex: 1 0 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .chapter-tabs button {
    min-height: 52px;
    flex-direction: row;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
  }
  .chapter-tabs button b,
  .chapter-tabs button > span { font-size: 12px; }
  .chapter-tabs .long-label { display: inline; }
  .chapter-tabs .short-label { display: none; }
  .chapter-nav .arrow-button { width: 48px; height: 44px; }
  .chapter-nav #next { margin-left: auto; }
  .masthead { padding: 14px 18px; }
  .mast-actions { width: 100%; gap: 10px; align-items: start; }
  .mast-actions .executive-entry { flex: 1 0 100%; }
  .mast-actions > .private { align-self: center; font-size: 12px; }
  .mast-actions > .text-button,
  .mast-actions .presentation-tools { flex: 1 1 auto; }
  .mast-actions .text-button { font-size: 12px; min-height: 44px; }
  .presentation-tools[open] { flex-basis: 100%; }
  .presentation-tools-content { gap: 8px 16px; }
  .narrative-actions { align-items: stretch; gap: 12px; }
  #chapter-action {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 14px;
    white-space: normal;
  }
  .lab-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  .description { font-size: 14px; line-height: 1.7; }
  .action-note,
  .source-line,
  .units-note,
  .study-note { font-size: 12px; line-height: 1.7; }
  .scene-tools .camera-options { flex-wrap: wrap; gap: 6px; }
  .camera-options button { min-height: 44px; padding: 9px; font-size: 12px; }
  .scene-tools select,
  .transport select { min-height: 44px; font-size: 14px; }
  .transport-actions { flex-wrap: wrap; }
  .transport-actions button,
  .mode-switch button { min-height: 44px; font-size: 12px; }
  .transport-actions .reset-button { min-width: 44px; }
  .floor-stats span,
  .floor-stats small,
  .presentation-footer p { font-size: 11px; }
  .presentation-footer button { min-height: 44px; font-size: 11px; }
}
