/* Structure, type, stage navigation and practice cards come from the sulfate workshop. */
.process-tour #work { scroll-margin-top: 12px; }
.process-tour .as-route { max-width:100%; }
.process-tour .as-route span { min-width:0; }
.process-tour .as-options { flex-wrap:wrap; }
.process-tour .as-options button { min-width:min(90px,100%); }
.process-tour .bench-pair { display:contents; }
.process-tour .as-figure { grid-column:1; grid-row:1 / span 2; }
.process-tour .as-controls { grid-column:2; grid-row:1; }
.process-tour .as-question { grid-column:2; grid-row:2; }
.process-tour .as-equation { grid-column:1/-1; grid-row:3; }
.process-tour .as-controls h3 { line-height:1.3; }
.process-tour .as-controls .dial-hint { margin:0 0 12px; line-height:1.5; }
.process-tour .as-heading h2:focus, .process-tour .as-exam-card h2:focus { outline:none; }
.process-tour #drawing { overflow:hidden; background:radial-gradient(ellipse at 42% 42%,#fbfcf8 0%,#f3f7f3 72%,#eaf1ed 100%); }
.process-tour #drawing svg { display:block; width:100%; height:auto; max-height:410px; min-height:0; }
.process-tour .as-figure svg .tag { font-size:18px; font-weight:650; }
.process-tour .as-figure svg .minor { font-size:15px; font-weight:550; }
.process-tour .as-figure svg .chem,.process-tour .as-figure svg .ion { font-size:22px; font-weight:800; fill:#624971; }
.process-tour .as-figure svg .ion { font-size:17px; stroke:none; }
.process-tour .as-figure svg .atom { font-size:14px; font-weight:750; fill:#38493f; stroke:none; }
.process-tour .as-figure svg .tiny { font-size:11px; stroke:none; }
.process-tour .stream { stroke-dasharray:2 17; animation:tour-flow 1.8s linear infinite; }
@keyframes tour-flow { to {stroke-dashoffset:-57;} }
.process-tour .proton-handle { cursor:grab; touch-action:none; }
.process-tour .proton-handle:active { cursor:grabbing; }
.process-tour #drawing:has([data-proton]) { touch-action:pan-y; }
.process-tour .exterior { position:relative; aspect-ratio:680/330; overflow:hidden; max-height:410px; background:#c8cbc8; }
.process-tour .exterior img { position:absolute; left:-100%; width:200%; max-width:none; height:100%; object-fit:fill; }
.process-tour .as-figure figcaption { flex-wrap:wrap; }
.process-tour .figure-tools,.process-tour .release,.process-tour .round-tools,.process-tour .range-ends,.process-tour .range-line { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.process-tour .figure-tools { gap:5px; }
.process-tour .range-line,.process-tour .range-ends { justify-content:space-between; gap:5px; }
.process-tour .range-line { margin:9px 0 4px; font-size:13px; font-weight:700; }
.process-tour .range-line output { font-weight:800; color:#6e4884; }
.process-tour input[type=range] { display:block; width:100%; min-height:27px; margin:0; accent-color:#8055a2; cursor:pointer; touch-action:pan-y; }
.process-tour .range-ends,.process-tour .round-tools button { font-size:12px; color:#72637b; }
.process-tour .release { margin-top:10px; }
.process-tour .release button { flex:1; padding:9px 10px; font-size:13px; }
.process-tour .round-tools { margin-top:7px; }
.process-tour .round-tools button { padding:5px 8px; }
.process-tour .sample-line { min-height:1.3em; }
.process-tour .as-controls button:disabled,.process-tour .as-next button:disabled { cursor:default; opacity:.60; }
.process-tour .as-display strong { margin-bottom:3px; }
.process-tour .as-source { width:fit-content; }
.process-tour .as-equation .condition { display:block; }
.process-tour .as-question .miss,.process-tour .feedback.warn { background:#fff4e5; border-color:#d7b78d; color:#68472a; }
.process-tour .feedback.ok { background:#edf4ea; color:#364e3e; }
.process-tour .grain-track { display:flex; gap:5px; margin-top:10px; }
.process-tour .grain-track i { width:23px; height:5px; border-radius:5px; background:#e1d9e6; }
.process-tour .grain-track i.filled { background:#9271a7; }
.process-tour .as-exam-card li { margin-bottom:.55em; }
.process-tour .as-exam-card .feedback { margin:12px 0; }
.process-tour .exam-link { margin:0 0 8px; }
.process-tour button:focus-visible,.process-tour input:focus-visible,.process-tour select:focus-visible { outline:3px solid #855aa4; outline-offset:2px; }
@media(max-width:760px) {
  .process-tour .as-route { flex-wrap:nowrap; }
  .process-tour .as-route b { font-size:clamp(12px,3.8vw,16px); }
  .process-tour .as-figure { position:static; margin:0; }
  .process-tour .as-figure figcaption { justify-content:flex-end; }
  .process-tour #drawing svg { max-height:none; }
  .process-tour .as-rig { grid-template-columns:minmax(0,1fr); gap:9px; }
  .process-tour .as-rig { display:flex; flex-direction:column; align-items:stretch; }
  .process-tour .bench-pair { display:grid; position:relative; grid-template-columns:minmax(0,1fr); gap:8px; }
  .process-tour .as-controls { grid-column:1; }
  
  .process-tour .as-display { line-height:1.35; padding:7px 10px; }
  .process-tour .as-display strong { font-size:13px; }
  .process-tour .as-display span { font-size:12px; }
  .process-tour .as-options button,.process-tour .release button,.process-tour .as-question button,.process-tour .round-tools button { min-height:36px; }
  .process-tour .as-legend { gap:4px 9px; }
  .process-tour .as-figure figcaption button { min-height:29px; }
  .process-tour #as-stages button { overflow-wrap:anywhere; }
}
@media(prefers-reduced-motion:reduce) {
  .process-tour .stream { animation:none; }
}

.process-tour .bin-target { cursor:pointer; }
.process-tour .bin-target:hover rect,.process-tour .bin-target:focus-visible rect { fill:#e9eee9; fill-opacity:.6; stroke:#8d769d; }
.process-tour .bin-target[aria-disabled=true] { cursor:default; }
.process-tour #guess-result:not(:empty) { color:#3e6049; font-weight:750; }

.process-tour #drawing.enlarged { overflow-x:auto; overscroll-behavior-x:contain; }
.process-tour #drawing.enlarged svg,.process-tour #drawing.enlarged .exterior { min-width:max(100%,950px); max-height:none; }
@media(max-width:760px) {
  .process-tour .as-figure { display:contents; }
  .process-tour #drawing { grid-row:1; border:1px solid #dce4dd; border-radius:11px; }
  .process-tour .as-figure figcaption { grid-row:2; border:0; padding:0; }
  .process-tour .as-controls { grid-row:3; }
  .process-tour .as-display { grid-row:4; border:1px solid #d5e1ce; border-radius:9px; }
  .process-tour .as-legend { grid-row:5; padding:1px 4px 4px; }
  .process-tour .as-question { grid-row:6; }
  .process-tour .as-equation { grid-row:7; }
  .process-tour #drawing.enlarged svg,.process-tour #drawing.enlarged .exterior { min-width:610px; }
}

@media(max-width:760px) and (min-height:570px) {
  .process-tour .bench-pair #drawing:not(.enlarged) {
    position:sticky;
    top:4px;
    z-index:3;
    background:#f4f8f4;
    box-shadow:0 3px 9px #384c4420;
  }
  .process-tour input[type=range],.process-tour .release button,.process-tour .as-options button { scroll-margin-top:210px; }
}
