/* Skew-T simulator — clear sky palette */
:root{
  --bg:#edf2f7; --panel:#ffffff; --ink:#172433; --ink2:#3a4a5c; --muted:#66778a; --line:#d5dee8;
  --accent:#2457a6; --accent-ink:#ffffff; --accent-text:#1f4f99; --btn:#f6f8fb; --q-bg:#e4ecf8; --hot:#c8452f;
  --top-bg:#ffffff; --top-line:#d5dee8; --top-ink:#172433; --top-muted:#66778a; --top-hover:#eef3fa;
  --stat-bg:#15263d; --stat-line:#15263d; --stat-ink:#ffffff; --stat-muted:#a3b5cc;
  --tip-bg:#15263d; --tip-ink:#e7eef7; --tip-head:#8fc1ff; --foot:#66778a; --intro-bg:#0f1c2e;
  --ck-dial-hi:#eef2f7; --ck-dial-lo:#b9c6d6; --ck-dial-rim:#26364c; --ck-dial-tick:#2e3e54; --ck-dial-arm:#1d2b3e; --ck-knob:#2457a6;
}
.sk-app{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.sk-inputs,.sk-results{display:flex;flex-direction:column}
.sk-diag{width:100%;height:clamp(330px,47vh,560px);display:block;touch-action:none}
#pLev{margin-top:auto;border-top:1px solid var(--line);padding-top:8px}
.sk-stage{position:relative;flex:1;min-height:clamp(280px,40vh,520px)}
.sk-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;border-radius:8px}
#pScene{display:flex;flex-direction:column;flex:1}
.sk-verdict{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;margin-bottom:6px;font-size:.92rem;background:var(--q-bg)}
.sk-verdict b{font-size:1rem}
.sk-verdict .chip{display:inline-block;padding:2px 10px;border-radius:20px;color:#fff;font-weight:700;font-size:.82rem}
.sk-legend{gap:10px;font-size:.76rem;color:var(--muted)}
.sk-legend .lg::before{content:"";display:inline-block;width:18px;height:3px;border-radius:2px;margin-right:5px;vertical-align:3px}
.sk-legend .t::before{background:#c8452f}.sk-legend .d::before{background:#2f8a4c}.sk-legend .p::before{background:#172433}
/* diagram */
.iso{stroke:#d9e2ec;stroke-width:1}
.iso0{stroke:#7fa6d6;stroke-width:1.2}
.isob{stroke:#c3cfdc;stroke-width:1}
.dry{stroke:#e2a77e;stroke-width:.9;fill:none;opacity:.75}
.moist{stroke:#7cb98e;stroke-width:.9;fill:none;stroke-dasharray:5 3;opacity:.8}
.mix{stroke:#b49ad6;stroke-width:.8;fill:none;stroke-dasharray:2 3;opacity:.8}
.ax{fill:var(--muted);font-size:11px}
.axb{fill:var(--ink2);font-size:11px;font-weight:600}
.envT{fill:none;stroke:#c8452f;stroke-width:2.8}
.envD{fill:none;stroke:#2f8a4c;stroke-width:2.8}
.parc{fill:none;stroke:#172433;stroke-width:2;stroke-dasharray:6 4}
.cape{fill:#e8873a;opacity:.32}
.cin{fill:#4a7fd0;opacity:.28}
.ptT{fill:#fff;stroke:#c8452f;stroke-width:2.4;cursor:ew-resize}
.ptD{fill:#fff;stroke:#2f8a4c;stroke-width:2.4;cursor:ew-resize}
.ptT:focus,.ptD:focus{outline:none;stroke:#000;stroke-width:3}
.hit{fill:transparent;cursor:ew-resize}
.mk{stroke:#172433;stroke-width:1.2}
.mklab{font-size:11px;font-weight:700;fill:#172433}
.guides-off .dry,.guides-off .moist,.guides-off .mix{display:none}
@media (max-width:1100px){ .sk-app{grid-template-columns:minmax(0,1fr)} }
