#presentStart {
  background: #a3ead9;
  border-color: #a3ead9;
  color: #0c2625;
  font-weight: 700;
  white-space: nowrap;
}
#presentStart:hover, #presentNext:hover { background: #c8f7ea; }
.intro h1 { max-width: 28ch; text-wrap: balance; }
.map-panel { box-sizing: border-box; }
#productShortcut { border-color: #457871; color: #afe8db; }

.presentation {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(18px, 2vw, 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.presentation-top, .presentation-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.presentation-top { justify-content: space-between; }
.presentation button { min-height: 40px; }
.presentation-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.presentation-steps button { width: 100%; text-align: left; }
.presentation-steps button span { margin-left: 3px; }
.presentation-steps [aria-current="step"] {
  background: #21443e;
  border-color: #78cbb7;
  color: #c3f5e8;
}
.presentation-story h2 {
  margin: 5px 0 13px;
  font-size: clamp(25px, 2.6vw, 40px);
  letter-spacing: -.035em;
  line-height: 1.1;
  text-wrap: balance;
}
#presentCount { margin: 0; }
#presentMetric {
  margin: 0;
  color: var(--mint);
  font-weight: 650;
  font-size: clamp(25px, 2.5vw, 36px);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
#presentText { margin: 16px 0 8px; font-size: clamp(15px, 1.2vw, 18px); }
#presentNote { margin: 0; color: var(--muted); }
.presentation-controls { margin-top: 20px; }
#presentNext { background: #a3ead9; border-color: #a3ead9; color: #0c2625; font-weight: 700; }
#presentComparison label { display: block; margin: 16px 0 5px; }
#presentComparison input { width: 100%; }
.presentation-tip, #presentStatus { font-size: 12px; color: var(--muted); margin-bottom: 0; }
#presentStatus:empty { display: none; }

.presenting header, .presenting .intro, .presenting .notice,
.presenting .scope-label, .presenting .metrics, .presenting .bottom,
.presenting footer, .presenting .sidebar, .presenting .results-charts,
.presenting .basemap-tabs, .presenting .quick-actions, .presenting .view-status,
.presenting .map-footer, .presenting .map-actions, .presenting .context-source,
.presenting #layerDescription, .presenting #insight { display: none; }
.presenting main { max-width: 1920px; padding: 16px; }
.presenting .workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 29%);
  align-items: start;
  gap: 14px;
}
.presenting .map-stage { height: clamp(280px, calc(100dvh - 186px), 900px); }
.presenting .map-heading { padding: 14px 16px; }
.presenting .legend { padding: 10px 16px; }
.presenting #classLegend { font-size: 13px; }
.presenting #continuousLegend { max-width: 320px; }
.presenting .base-credit { padding: 5px 16px; }
.presenting #imageryChoice { display: none !important; }

@media (max-width: 850px) {
  .presenting .workspace { grid-template-columns: minmax(0, 1fr); }
  .presenting .map-stage { height: clamp(244px, 52vw, 450px); }
  .presentation { grid-row: 1; }
  .presentation-steps { margin: 12px 0; }
  #presentText { margin-top: 10px; }
  .presentation-controls { margin-top: 12px; }
  .presentation-tip { display: none; }
}
@media (max-width: 800px) {
  header { height: auto; min-height: 62px; gap: 8px; padding: 8px 12px; }
  header .brand { min-width: 0; gap: 7px; line-height: 1.25; }
  header .brand small { display: none; }
  header nav { gap: 6px; }
  header nav a[href="#workspace"], header nav a[href="#results"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 5px;
    color: var(--text);
  }
  header nav button, .basemap-tabs button, .quick-actions button { min-height: 44px; }
  main { padding: 14px 10px 0; }
  .intro h1 { font-size: clamp(24px, 5.5vw, 32px); line-height: 1.13; }
  .intro p { margin: 8px 0; }
  .intro .date { margin-top: 8px; min-width: 0; }
  .notice { margin-top: 12px; }
  .scope-label { margin-top: 14px; }
  .metrics { gap: 6px; margin-bottom: 12px; }
  .metrics article { padding: 9px; min-width: 0; }
  .metrics strong { font-size: clamp(19px, 5vw, 27px); }
  .metrics article>span { font-size: 10px; letter-spacing: .4px; }
  .map-panel { min-width: 0; }
  .map-heading { align-items: flex-start; gap: 6px; }
  .map-heading .pill { align-self: flex-start; white-space: normal; }
  .map-stage { height: clamp(244px, 60vw, 420px); }
  #terrainCanvas { height: clamp(290px, 65vw, 430px); }
  #canvas { touch-action: pan-y pinch-zoom; }
  .map-focused #canvas { touch-action: none; }
  .map-top { top: 8px; left: 8px; right: 66px; max-width: none; gap: 5px; }
  .map-top span { max-width: 100%; padding: 4px 6px; line-height: 1.3; font-size: 10px; }
  body .direction-key { top: 8px; right: 8px; width: 48px; }
  body .direction-key svg { height: 39px; }
  body .direction-key text { font-size: 17px; }
  body .direction-key small { display: none; }
  body #stage .zoom { top: auto; bottom: 6px; right: 6px; grid-auto-flow: column; gap: 3px; }
  #stage .zoom button { width: 44px; height: 44px; border-radius: 6px; }
  .scale { bottom: 8px; left: 8px; }
  .swipe-hint { display: none; }
  #classLegend, .presenting #classLegend { gap: 7px 12px; font-size: 12px; }
  .legend { overflow-wrap: anywhere; }
  .chart-table table { min-width: 0; font-size: 11px; }
  .chart-table th, .chart-table td { padding: 7px 4px; }

  .presenting main { padding: 8px; }
  .presenting .workspace { gap: 8px; }
  .presentation { padding: 12px; }
  .presentation button { min-height: 44px; }
  .presentation-top { gap: 4px; }
  .presentation-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 8px 0; }
  .presentation-steps button { padding: 6px 2px; text-align: center; font-size: 12px; line-height: 1.15; }
  .presentation-steps button span { display: block; margin-left: 0; }
  .presentation-story h2 { margin: 4px 0 6px; font-size: clamp(20px, 5vw, 27px); }
  #presentMetric { font-size: clamp(20px, 5vw, 27px); }
  #presentText { margin: 6px 0; font-size: 14px; }
  #presentNote { font-size: 13px; }
  #presentComparison label { margin-top: 8px; }
  #presentComparison input { min-height: 26px; }
  .presentation-controls { gap: 5px; margin-top: 8px; }
  .presentation-controls button { flex: 1 0 auto; padding: 6px; }
  .presenting .map-heading { padding: 8px 10px; }
  .presenting .legend { padding: 8px 10px; }
}
@media (max-width: 520px) {
  header nav { flex-shrink: 0; gap: 4px; }
  header #help { width: 32px; padding: 0; font-size: 16px; }
  header #help .help-label { display: none; }
  header #help .help-icon { display: inline; }
}
.help-icon { display: none; }
@media (prefers-reduced-motion: reduce) {
  .presenting .map-stage.loading::after { animation: none; }
}
