/* Model-first weather experiments. Loaded after the publication stylesheet. */
.lab-workbench {
  --lab-focus: var(--accent, #006f80);
  --lab-parcel-line: #b24e32;
  --lab-dew-line: #23778b;
  --lab-cloud-zone: #e4eff5;
  --lab-cloud-line: #597e94;
  --lab-grid: #d9e5ed;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line, #d6e3e9);
  border-radius: 18px;
  background: var(--surface, #fff);
  color: var(--ink, #112d46);
  margin: 0 0 36px;
}
.lab-workbench [hidden] { display: none !important; }
.lab-workbench button,
.lab-workbench input,
.lab-workbench select,
.lab-workbench summary { font-family: inherit; }
.lab-workbench button,
.lab-workbench select,
.lab-workbench summary { touch-action: manipulation; }
.lab-workbench :is(button, input, select, summary, a):focus-visible {
  outline: 3px solid var(--lab-focus);
  outline-offset: 4px;
}
.lab-kicker {
  display: block;
  color: var(--accent, #006f80);
  font: 700 11px/1.5 Arial, Helvetica, system-ui, sans-serif;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.lab-guide { padding: 30px 34px; background: var(--wash, #e8f4f6); }
.lab-guide-intro { max-width: 860px; }
.lab-guide h2,
.lab-static h2 {
  font-family: inherit;
  font-size: clamp(24px, 2.5vw, 33px);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 0 14px;
  text-wrap: balance;
}
.lab-guide-intro > p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 820px; }
.lab-prediction { margin: 22px 0 18px; padding: 0; border: 0; min-width: 0; }
.lab-prediction legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.lab-prediction legend span { font-weight: 400; color: var(--muted, #4a6274); }
.lab-choice-list { display: flex; flex-wrap: wrap; gap: 9px; }
.lab-choice-list label { display: block; position: relative; flex: 1 1 180px; max-width: 360px; cursor: pointer; }
.lab-choice-list input {
  appearance: none;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.lab-choice-list span {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line, #d6e3e9);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--ink, #112d46);
  font-size: 14px;
  line-height: 1.4;
}
.lab-choice-list span::before { content: ''; width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%; border: 1.5px solid var(--muted, #4a6274); }
.lab-choice-list input:checked + span { border-color: var(--accent, #006f80); box-shadow: inset 0 0 0 1px var(--accent, #006f80); }
.lab-choice-list input:checked + span::before { background: var(--accent, #006f80); border-color: var(--accent, #006f80); box-shadow: inset 0 0 0 3px var(--surface, #fff); }
.lab-choice-list input:focus-visible + span { outline: 3px solid var(--lab-focus); outline-offset: 4px; }
.lab-guide-action { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.lab-workbench .lab-run { background: #104a68; color: #fff; border-color: #104a68; min-height: 50px; border-radius: 9px; padding: 13px 20px; font-size: 14px; font-weight: 700; gap: 15px; text-align: left; }
.lab-workbench .lab-run:hover { background: #112d46; border-color: #112d46; color: #fff; }
.lab-hypothetical { font-size: 11px; color: var(--muted, #4a6274); line-height: 1.6; }
.lab-feedback { margin-top: 26px; padding-top: 25px; border-top: 1px solid var(--line, #d6e3e9); }
.lab-feedback-heading h3 { scroll-margin-top: 24px; margin: 0 0 10px; font: 700 21px/1.3 Arial, Helvetica, system-ui, sans-serif; letter-spacing: -.02em; }
.lab-feedback-heading p { max-width: 900px; font-size: 15px; line-height: 1.75; margin-bottom: 20px; }
.lab-comparison h4 { font-size: 12px; margin: 0 0 9px; font-weight: 700; }
.lab-workbench .table-wrap { border-radius: 9px; overflow: auto; overscroll-behavior-x: contain; }
.lab-workbench table { min-width: 430px; font: 13px/1.6 Arial, Helvetica, system-ui, sans-serif; }
.lab-workbench th, .lab-workbench td { padding: 13px 15px; min-width: 125px; font-size: 13px; vertical-align: top; }
.lab-workbench thead th { font-size: 12px; font-weight: 700; }
.lab-workbench tbody th { font-weight: 500; }
.lab-stage-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.lab-stage-switch button { flex: 0 1 auto; min-height: 46px; padding: 11px 17px; border: 1px solid var(--line, #d6e3e9); border-radius: 8px; color: var(--ink, #112d46); background: var(--surface, #fff); font-size: 13px; line-height: 1.4; }
.lab-stage-switch button[aria-pressed=true] { border-color: var(--accent, #006f80); box-shadow: inset 0 0 0 1px var(--accent, #006f80); font-weight: 700; }
.lab-stage-switch button[aria-pressed=true]::before { content: '● '; color: var(--accent, #006f80); }
.lab-next { font-size: 13px; line-height: 1.75; margin: 17px 0 0; max-width: 850px; }
.lab-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(306px, 31%); align-items: start; }
.lab-workbench .lab-controls { min-width: 0; padding: clamp(16px, 2.1vw, 26px); border-inline-start: 1px solid var(--line); }
.lab-prompt { margin: 0 0 1rem; color: var(--ink); font-size: .94rem; line-height: 1.5; font-weight: 570; }
.lab-workbench .control { margin: 0 0 16px; min-width: 0; }
.lab-workbench .lab-control label { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.lab-workbench .lab-control > label { margin-bottom: 9px; }
.lab-control-line { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.lab-stepper { display: grid; flex: 0 0 146px; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.lab-step { min-height: 44px; color: var(--accent); background: transparent; border: 0; border-radius: 9px; padding: 4px; font-size: 21px; line-height: 1; }
.lab-step:hover:not(:disabled) { background: var(--wash, #e8f4f6); }
.lab-step:disabled { color: var(--muted, #4a6274); opacity: .4; cursor: default; }
.lab-number-field { min-width: 0; text-align: center; padding: 3px 0; }
.lab-workbench .lab-number-field input { appearance: textfield; display: block; width: 100%; min-height: 24px; padding: 0 2px; margin: 0; background: transparent; color: var(--ink); border: 0; border-radius: 3px; text-align: center; font: 700 18px/1.15 var(--sans); font-variant-numeric: tabular-nums; }
.lab-number-field input::-webkit-inner-spin-button, .lab-number-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.lab-number-field input[aria-invalid=true] { outline: 2px solid #aa4630; }
.lab-unit { display: block; color: var(--muted, #4a6274); font-size: 11px; line-height: 1.4; padding: 1px 2px; overflow-wrap: anywhere; }
.lab-workbench .lab-control input[type=range] { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 42px; margin: 4px 0 0; background: transparent; cursor: pointer; }
.lab-control input[type=range]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(to right, var(--accent, #006f80) 0%, var(--accent, #006f80) var(--range-fill, 50%), var(--line, #d6e3e9) var(--range-fill, 50%), var(--line, #d6e3e9) 100%); border-radius: 10px; }
.lab-control input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 27px; height: 27px; border: 3px solid var(--surface, #fff); border-radius: 50%; background: var(--accent, #006f80); box-shadow: 0 0 0 1px var(--accent, #006f80); margin-top: -10px; }
.lab-control input[type=range]::-moz-range-track { height: 6px; background: var(--line, #d6e3e9); border-radius: 10px; }
.lab-control input[type=range]::-moz-range-progress { height: 6px; background: var(--accent, #006f80); border-radius: 10px; }
.lab-control input[type=range]::-moz-range-thumb { width: 23px; height: 23px; border: 3px solid var(--surface, #fff); border-radius: 50%; background: var(--accent, #006f80); }
.lab-range-ends { display: flex; justify-content: space-between; gap: 10px; color: var(--muted, #4a6274); font-size: 10px; line-height: 1.4; margin-top: -2px; }
.lab-range-ends span:last-child { text-align: right; }
.lab-control-help { font-size: 11px; line-height: 1.6; color: var(--muted, #4a6274); margin: 8px 0 0; }
.lab-workbench .lab-control select { width: 100%; min-height: 50px; border: 1px solid var(--line, #d6e3e9); border-radius: 10px; background: var(--surface, #fff); color: var(--ink, #112d46); padding: 11px 12px; font-size: 15px; margin: 0; }
.lab-extra-controls, .lab-save-tools { border-top: 1px solid var(--line, #d6e3e9); }
.lab-workbench summary { min-height: 48px; padding: 14px 1px; cursor: pointer; font-size: 13px; line-height: 1.5; font-weight: 700; }
.lab-extra-controls > div { padding-top: 10px; }
.lab-play-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 15px; }
.lab-workbench .lab-play { gap: 8px; min-height: 44px; padding: .6rem .9rem; font-size: .85rem; border-radius: 9px; }
.lab-play [data-play-symbol] { font-size: .73em; line-height: 1; }
.lab-reset { min-height: 44px; background: transparent; border: 0; padding-inline: 7px; color: var(--accent); font-size: .83rem; font-weight: 650; }
.lab-reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.lab-save-actions { display: grid; gap: 8px; padding: 4px 0 12px; }
.lab-save-actions > div { display: grid; gap: 8px; }
.lab-workbench .lab-save-actions .button { border-radius: 8px; font-size: 12px; font-weight: 600; padding: 11px; min-height: 46px; }
.lab-remove-save { border: 0; background: transparent; color: var(--muted, #4a6274); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; font-size: 11px; }
.lab-storage-note, .lab-action-status { color: var(--muted, #4a6274); font-size: 11px; line-height: 1.6; margin: 0; }
.lab-action-status:not(:empty) { margin-top: 14px; padding: 10px 12px; background: var(--wash, #e8f4f6); border-radius: 7px; }
.lab-copy-fallback { display: block; font-size: 12px; margin: 3px 0 12px; }
.lab-copy-fallback input { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 5px; padding: 9px; border: 1px solid var(--line, #d6e3e9); border-radius: 7px; background: var(--surface, #fff); color: var(--ink, #112d46); font-size: 12px; }
.lab-workbench .lab-output { min-width: 0; }
.lab-figure { margin: 0; overflow: clip; }
.lab-view-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; background: #112f3c; color: #e5f1f1; }
.lab-view-switch { display: flex; gap: 2px; border: 1px solid #62838c75; border-radius: 10px; padding: 2px; }
.lab-view-switch button { min-height: 38px; padding: 6px 13px; border: 0; border-radius: 7px; background: transparent; color: #e5f1f1; font-size: .78rem; font-weight: 650; }
.lab-view-switch button[aria-pressed="true"] { background: #dceced; color: #132f38; }
.lab-view-switch button:hover:not([aria-pressed="true"]) { background: #254d5c; }
.lab-workbench .lab-view-bar :is(button, a):focus-visible { outline-color: #ffcf85; outline-offset: 2px; }
.lab-legend { display: flex; flex-wrap: wrap; gap: 5px 20px; list-style: none; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .76rem; line-height: 1.4; }
.lab-legend li { display: flex; align-items: center; gap: 6px; }
.lab-legend li::before { content: ''; display: block; width: 15px; border-top: 3px solid var(--lab-parcel-line); }
.lab-legend .lab-legend-dew::before { border-top: 3px dashed var(--lab-dew-line); }
.lab-legend .lab-legend-cloud::before { height: 10px; border: 1px solid var(--lab-cloud-line); background: var(--lab-cloud-zone); border-radius: 2px; }
.lab-workbench .lab-results { display: flex; flex-wrap: wrap; gap: 1px; padding: 0; margin: 0; border-top: 1px solid var(--line); background: var(--line); }
.lab-results .stat { flex: 1 1 120px; min-width: 0; background: var(--surface); padding: 13px 16px; }
.lab-results .stat strong { display: block; font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.025em; overflow-wrap: anywhere; }
.lab-results .stat--phrase { flex-basis: 100%; }
.lab-results .stat--phrase strong { font-size: 1.22rem; line-height: 1.25; }
.lab-results .stat span { display: block; font-size: .76rem; line-height: 1.35; color: var(--muted); margin-top: 4px; }
.lab-workbench .lab-explanation { font-size: 14px; line-height: 1.75; margin: 0 0 20px; }
.lab-workbench .lab-visual { background: #f7fafb; color: #112d46; padding: 0; margin: 0; border: 1px solid #d6e3e9; border-radius: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #6d99a7 #e8f1f4; }
.lab-workbench .lab-figure .lab-visual { border: 0; border-radius: 0; }
.lab-workbench .lab-figure[data-current-view="scene"] .lab-visual { background: #123846; color: #f4f7f2; }
[data-theme="dark"] .lab-workbench :is(.lab-visual, .lab-legend) {
  --lab-parcel-line: #fcad8e;
  --lab-dew-line: #76c8da;
  --lab-cloud-zone: #223743;
  --lab-cloud-line: #94b4ca;
  --lab-grid: #344953;
}
[data-theme="dark"] .lab-workbench[data-lab="rising-air"] .lab-visual { background: #152832; color: #e9f4f9; }
.lab-workbench .lab-visual:focus-visible { outline: 3px solid var(--lab-focus); outline-offset: 3px; }
.lab-workbench .lab-visual svg { display: block; width: 100%; min-width: 0; max-width: none; height: auto; overflow: hidden; }
.lab-workbench .lab-visual svg text { font-family: var(--sans); }
.lab-workbench .lab-visual--expanded svg { min-width: 600px; }
.lab-pan-hint { color: var(--muted, #4a6274); font-size: 11px; line-height: 1.6; margin: 8px 0 15px; }
.lab-workbench .lab-data, .lab-workbench .lab-method { padding: 0; margin-top: 0; border-top: 1px solid var(--line, #d6e3e9); }
.lab-workbench .lab-data summary, .lab-workbench .lab-method summary { margin: 0; font-size: 13px; }
.lab-workbench .lab-data .table-wrap { margin: 4px 0 18px; }
.lab-workbench .lab-note { font-size: 12px; line-height: 1.8; margin: 4px 0 16px; }
.lab-method a { display: inline-block; color: var(--accent, #006f80); font-size: 12px; padding: 4px 0; margin-bottom: 12px; }
.lab-static { padding: 28px; }
.lab-static > p { font-size: 15px; line-height: 1.75; }
.lab-static .lab-visual { margin: 20px 0; }
.lab-static .lab-static-note { font-size: 12px; color: var(--muted, #4a6274); }
.lab-static-reveal { margin: 18px 0; padding: 3px 18px 18px; border-radius: 12px; background: var(--wash, #e8f4f6); }
.lab-static-reveal h3 { font: 700 20px/1.4 Arial, Helvetica, system-ui, sans-serif; margin: 10px 0 12px; }
.lab-static-reveal p { font-size: 14px; line-height: 1.75; margin: 14px 0; }
@media (max-width: 760px) {
  .lab-layout { grid-template-columns: 1fr; }
  .lab-workbench .lab-controls { border-inline-start: 0; border-top: 1px solid var(--line); }
  .lab-primary-controls { display: block; }
  .lab-primary-controls > :only-child { max-width: 440px; }
  .lab-extra-controls > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .lab-save-actions { max-width: 440px; }
}
@media (max-width: 600px) {
  .lab-workbench { border-radius: 14px; }
  .lab-workbench[data-lab="rising-air"] [data-current-view="graph"] .lab-visual:not(.lab-visual--expanded) svg text { font-size: 19px; }
  .lab-workbench[data-lab="rising-air"] [data-current-view="graph"] .lab-visual:not(.lab-visual--expanded) .lab-cloud-caption { display: none; }
  .lab-guide { padding: 24px 20px; }
  .lab-guide h2, .lab-static h2 { font-size: 25px; line-height: 1.2; }
  .lab-guide-intro > p { font-size: 14px; line-height: 1.75; }
  .lab-prediction { margin-top: 18px; }
  .lab-choice-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .lab-choice-list label { max-width: none; }
  .lab-choice-list span { min-height: 48px; padding: 11px 13px; font-size: 13px; }
  .lab-guide-action { gap: 10px; }
  .lab-workbench .lab-run { width: 100%; justify-content: space-between; font-size: 13px; min-height: 50px; }
  .lab-hypothetical { font-size: 10px; }
  .lab-feedback { padding-top: 21px; margin-top: 21px; }
  .lab-feedback-heading h3 { scroll-margin-top: 24px; font-size: 20px; }
  .lab-feedback-heading p { font-size: 14px; }
  .lab-workbench th, .lab-workbench td { padding: 11px 12px; font-size: 12px; }
  .lab-stage-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .lab-stage-switch button { padding: 10px; font-size: 12px; min-width: 0; }
  .lab-workbench .lab-controls { padding: 16px 15px 6px; }
  .lab-primary-controls, .lab-extra-controls > div { grid-template-columns: 1fr; gap: 0; }
  .lab-primary-controls > :only-child { max-width: none; }
  .lab-control-help { font-size: 12px; }
  .lab-results .stat { flex-basis: 83px; padding: 10px; }
  .lab-results .stat--phrase { flex-basis: 100%; }
  .lab-results .stat span { font-size: .72rem; }
  .lab-workbench .lab-explanation { font-size: 14px; }
  .lab-pan-hint { font-size: 11px; }
  .lab-static { padding: 23px 20px; }
  .lab-static-reveal { padding-left: 13px; padding-right: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-workbench, .lab-workbench * { scroll-behavior: auto; animation: none; transition: none; }
}
@media (forced-colors: active) {
  .lab-choice-list span::before, .lab-stepper, .lab-stage-switch button { border-color: ButtonText; }
  .lab-choice-list input:checked + span { outline: 2px solid Highlight; }
  .lab-choice-list input:checked + span::before { background: Highlight; }
  .lab-step { color: ButtonText; }
}
@media print {
  .lab-workbench { overflow: visible; border: 0; }
  .lab-guide { background: none; padding: 15px 0; }
  .lab-prediction, .lab-guide-action, .lab-stage-switch, .lab-save-tools, .lab-reset, .lab-controls, .lab-pan-hint { display: none; }
  .lab-layout { display: block; }
  .lab-workbench .lab-output { padding: 0; border: 0; }
  .lab-workbench .lab-visual { overflow: visible; border: 0; }
  .lab-workbench .lab-visual svg { min-width: 0; }
  .lab-feedback { break-inside: avoid; }
}

@media (max-width: 600px) {
  .lab-comparison table { min-width: 0; table-layout: fixed; }
  .lab-workbench .lab-comparison :is(th,td) {
    min-width: 0; overflow-wrap: anywhere; padding: .6rem .45rem; font-size: .79rem;
  }
}


.lab-zoom { flex-shrink: 0; min-height: 44px; padding: 0 4px; color: #e1eff2; border: 0; background: transparent; font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.lab-scene-handle { cursor: grab; touch-action: none; outline: none; }
.lab-scene-hit { pointer-events: all; }
.lab-scene-ring { pointer-events: none; fill: #ffd18b; stroke: #132e39; stroke-width: 2.5; }
.lab-scene-grip { pointer-events: none; stroke: #183441; }
.lab-scene-handle:hover .lab-scene-ring { fill: #ffdfa4; }
.lab-scene-handle:focus-visible .lab-scene-ring { stroke: #fff; stroke-width: 3; }
.lab-visual[data-dragging=true] .lab-scene-handle { cursor: grabbing; }
.lab-goal { padding: 15px 17px; border: 1px solid var(--line, #d6e3e9); border-radius: 11px; margin: 0 0 16px; background: var(--surface, #fff); }
.lab-goal[data-complete=true] { border-color: var(--accent, #006f80); background: var(--wash, #e8f4f6); }
.lab-goal strong { display: block; font-size: 1rem; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; }
.lab-goal-track { height: 4px; border-radius: 3px; background: var(--line, #d6e3e9); overflow: hidden; margin: 11px 0; }
.lab-goal-track span { display: block; height: 100%; background: var(--accent, #006f80); }
.lab-goal p { margin: 0; color: var(--muted, #4a6274); font-size: 12px; line-height: 1.6; }
.lab-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lab-comparison-guide { border-top: 1px solid var(--line, #d6e3e9); }
.lab-comparison-guide > summary { padding: 18px 28px; font-size: 14px; }
.lab-comparison-guide .lab-guide { padding: 24px 28px; }
.lab-comparison-guide .lab-guide h2 { font-size: 24px; }
.lab-context { padding: 0 28px 12px; }
@media (max-width: 600px) {
 .lab-goal { padding: 13px; }
 .lab-goal p { font-size: 12px; }
 .lab-comparison-guide > summary { padding: 17px 20px; }
 .lab-comparison-guide .lab-guide { padding: 22px 20px; }
 .lab-context { padding: 0 20px 8px; }
}
@media (forced-colors: active) {
 .lab-scene-ring { fill: ButtonText; stroke: Canvas; }
 .lab-scene-handle path { stroke: Canvas; }
 .lab-scene-handle:focus-visible .lab-scene-ring { stroke: Highlight; }
 .lab-goal-track span { background: Highlight; }
}
@media print {
 .lab-view-bar, .lab-play-actions, .lab-scene-handle { display: none; }
 .lab-context { padding-left: 0; padding-right: 0; }
}
