/* Surcharge Loads / Point Load — approved interface styling, supplied with the
   implementation brief (Surcharge Loads/Point Load/geocalc-surcharge-loads-point-load-
   theory-complete.css) and reproduced here unchanged, plus a few small additions marked
   below for DOM this tool's own wiring needed that the static mockup did not have to
   (a drag hint line, and disabling text selection while dragging). */
body{background:#eef6fb}
.run-head .rh-section button{cursor:default}
.studio{grid-template-columns:minmax(0,1.18fr) minmax(410px,.82fr)}
.studio-title .method{max-width:760px}
.studio-title .scope-line{font-size:12.5px;color:#617887;margin:7px 0 0;line-height:1.45}
.viewbar{position:relative;z-index:3;margin:0 0 8px;padding:7px;background:#edf6fc;border:1px solid #d6e5ef;border-radius:10px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:48px}
.viewbar button{border:0;background:transparent;color:#5b7281;font:650 11.5px var(--font-text);letter-spacing:.045em;text-transform:uppercase;padding:8px 12px;border-radius:7px;cursor:pointer}
.viewbar button:hover{background:#fff;color:#0b609e}
.viewbar button.active{color:#fff;background:linear-gradient(145deg,#0d8bea,#0872c6);box-shadow:0 5px 14px rgba(8,114,198,.20)}
.viewbar .spacer{flex:1}
.viewbar .view-hint{font:11px var(--font-mono);color:#738793;padding-right:4px}
.diagram-pane{display:none}
.diagram-pane.active{display:block}
.studio-readout.readoutbar{
  position:static; display:flex; align-items:center; flex-wrap:wrap; gap:7px 8px;
  width:100%; margin:0 0 10px; padding:7px 9px;
  background:#f7fbfe; border:1px solid #d9e7ef; border-radius:9px;
}
.readoutbar .ro{display:inline-flex;align-items:center;gap:5px;min-width:0;padding:4px 8px;border:1px solid #d8e6ef;border-radius:999px;background:#fff}
.readoutbar .ro-sym{font:600 11px var(--font-math);color:#718591}
.readoutbar .ro-val{font:600 11.5px var(--font-mono);color:#0872c6;white-space:nowrap}
.readoutbar .ro-val.muted{color:#7f919c;font-weight:500}
#studioFig{position:relative;clear:both}
#studioFig svg{display:block;width:100%;height:auto}
#studioFig [data-drag]{touch-action:none}
.studioFig.dragging,#studioFig.dragging{cursor:grabbing}
#studioFig.dragging [data-drag]{cursor:grabbing}
.drag-hint{margin:6px 2px 0;font-size:11.5px;color:#7f919c;text-align:center}
.input-section{margin-bottom:18px}
.input-section:first-child{margin-top:2px}
.input-title{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#607784;font-weight:750;margin:0 0 9px;padding-bottom:6px;border-bottom:1px solid #e1ebf1}
.gc-input-grid{display:grid;grid-template-columns:1fr;gap:4px}
.gc-input-row{display:grid;grid-template-columns:70px minmax(0,1fr) 112px 62px;align-items:center;gap:10px;padding:5px 0}
.gc-input-row .sym{font-family:var(--font-math);font-size:15px;color:#173447}
.gc-input-row .desc{font-size:13px;color:#4f6674}
.gc-input-row input{width:100%;height:36px;text-align:right;font:14px var(--font-mono);font-variant-numeric:tabular-nums;color:#17262b;background:#fff;border:1px solid #d5e1e8;border-radius:6px;padding:0 9px}
.gc-input-row input:focus{border-color:#1685de;outline:none;box-shadow:0 0 0 3px rgba(20,135,232,.12)}
.gc-input-row .unit{font-size:12px;color:#718591}
.placeholder-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.placeholder-card{position:relative;padding:12px 14px;border:1px solid #d8e5ed;border-radius:10px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 4px 13px rgba(23,63,91,.055)}
.placeholder-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;border-radius:10px 0 0 10px;background:#8cc9ee}
.placeholder-card .lab{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#6b8190;font-weight:750}
.placeholder-card .val{margin-top:5px;font:600 20px var(--font-mono);color:#173447}
.placeholder-card .unit{font-size:11px;color:#80919a;margin-left:4px}

/* Theory page */
.theory-rich{color:#4f6674;line-height:1.68;padding:0 2px 8px}
.theory-rich .theory-kicker{font:700 10.5px/1.2 var(--font-text);letter-spacing:.11em;color:#0b6fca;margin:2px 0 8px;text-transform:uppercase}
.theory-rich h3{font-size:15.5px;color:#173447;margin:20px 0 8px;font-weight:700}
.theory-rich h3:first-of-type{font-size:18px;margin-top:0}
.theory-rich p{margin:0 0 11px}
.theory-caption{font-size:11.5px;color:#617887;line-height:1.5;padding:7px 4px 1px;border-top:1px solid #edf2f5}
.theory-caption .mono{font-family:var(--font-mono);color:#36586b}
.theory-callout{margin:12px 0 16px;padding:10px 12px;border-left:3px solid #1487e8;background:#f5faff;border-radius:0 8px 8px 0;color:#4c6676;font-size:12.5px}
.theory-callout b{color:#173447}
.theory-vars{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;margin-top:8px}
.theory-vars>div{display:grid;grid-template-columns:58px 1fr;align-items:start;gap:8px;padding:8px 9px;border:1px solid #e0ebf1;border-radius:8px;background:#fff}
.theory-vars span{font:700 12px var(--font-math);color:#0b6fca}
.theory-vars b{font-size:11.5px;font-weight:500;color:#5d7482;line-height:1.4}
@media(max-width:560px){
  .readoutbar{gap:5px;padding:6px}
  .readoutbar .ro{padding:3px 6px}
  .theory-vars{grid-template-columns:1fr}
}

/* Extended educational theory manual */
.theory-manual{max-width:980px}
.theory-source-figure{margin:14px 0 20px;padding:12px;border:1px solid #d6e4ec;border-radius:11px;background:#fff;box-shadow:0 4px 14px rgba(23,63,91,.055)}
.theory-figure-pair{display:grid;grid-template-columns:1fr;gap:10px}
.theory-figure-pair svg{display:block;width:100%;height:auto;max-height:300px;border:1px solid #e7eef3;border-radius:8px;background:#fff}
.formula-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 14px;padding:11px 13px;border:1px solid #d6e7f2;border-radius:9px;background:#f3f9fd}
.formula-box.single{grid-template-columns:1fr}
.formula-line{display:grid;grid-template-columns:auto 22px 1fr;align-items:center;gap:7px;font:600 16px/1.55 var(--font-math);color:#0a5f9d}
.formula-line.wide{font-size:17px}
.theory-case-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 14px}
.theory-case{border:1px solid #d7e5ee;border-radius:10px;background:#fff;overflow:hidden}
.case-head{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:9px 11px;background:#f5faff;border-bottom:1px solid #dfeaf1;color:#173447}
.case-head b{font-size:12.5px}
.case-head em{font:700 12px var(--font-math);font-style:normal;color:#0b6fca}
.case-tag{font:700 9.5px/1 var(--font-text);letter-spacing:.08em;color:#fff;background:#0b6fca;border-radius:4px;padding:5px 6px}
.formula-display{padding:16px 12px 13px;text-align:center;font:600 17px/1.8 var(--font-math);color:#173447}
.frac{display:inline-grid;grid-template-rows:auto auto;vertical-align:middle;text-align:center;line-height:1.15;margin:0 3px}
.frac>span:first-child{border-bottom:1px solid #486273;padding:0 4px 2px}
.frac>span:last-child{padding:2px 4px 0}
.formula-subgrid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e5eef3}
.formula-subgrid>div{padding:9px 10px}
.formula-subgrid>div+div{border-left:1px solid #e5eef3}
.formula-subgrid span{display:block;font-size:9.5px;letter-spacing:.07em;text-transform:uppercase;color:#758b98;margin-bottom:3px}
.formula-subgrid b{font:600 12.5px/1.4 var(--font-math);color:#0b6fca}
.manual-steps{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin:9px 0 17px}
.manual-step{display:grid;grid-template-columns:34px 1fr;gap:9px;padding:9px 10px;border:1px solid #e0eaf0;border-radius:8px;background:#fff}
.manual-step>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eaf5ff;color:#0b6fca;font:700 10px var(--font-mono)}
.manual-step b{font-size:12.5px;color:#173447}
.manual-step p{font-size:11.5px;line-height:1.45;margin:2px 0 0;color:#667c89}
.worked-data{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 10px}
.worked-data span{padding:6px 9px;border:1px solid #d8e7f0;border-radius:7px;background:#f7fbfe;font:12px var(--font-mono);color:#4c6878}
.worked-example{border:1px solid #d8e6ee;border-radius:10px;background:#fff;overflow:hidden;margin-bottom:18px}
.worked-row{display:grid;grid-template-columns:38px 1fr;gap:10px;padding:11px 12px}
.worked-row+.worked-row{border-top:1px solid #e5edf2}
.worked-no{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;background:#0b6fca;color:#fff;font:700 11px var(--font-mono)}
.worked-row b{font-size:12.5px;color:#173447}
.worked-row p{font-size:11.5px;margin:3px 0;color:#6a7f8c}
.worked-eq{margin:5px 0;padding:6px 8px;border-left:3px solid #1487e8;background:#f6fbff;font:12.5px/1.5 var(--font-mono);color:#31576c}
.worked-eq strong{color:#0b6fca}
.resultant-sketch{margin:8px 0 16px;padding:8px;border:1px solid #dce8ef;border-radius:10px;background:#fff}
.resultant-sketch svg{display:block;width:100%;height:auto;max-height:265px}

/* additions for this tool's wiring (not in the static mockup): a flagged input, and the
   Qp handle lighting up under the pointer so it reads as draggable */
.gc-input-row input.invalid{border-color:#b3261e;color:#b3261e;box-shadow:0 0 0 3px rgba(179,38,30,.12)}
#studioFig [data-drag]:hover{filter:drop-shadow(0 0 5px rgba(20,135,232,.7))}

/* several point loads: one card per load in the Model tab (the shared studio list item),
   with a colour chip matching that load's arrow in the drawings */
.load-item{margin-bottom:8px;padding:8px 10px 2px}
.load-item .st-item-head{margin-bottom:0}
.load-item .st-del{margin-left:auto}
.load-chip{display:inline-block;flex:none;width:10px;height:10px;border-radius:50%}
.load-note{margin:8px 2px 0;font-size:11.5px;color:#7f919c;line-height:1.45}
/* method choice (elastic rigid wall / Terzaghi–NAVFAC chart) and the Theory comparison table */
.method-seg{flex-wrap:wrap}
.theory-table-wrap{overflow-x:auto;margin:10px 0 16px}
.theory-table{border-collapse:collapse;width:100%;min-width:460px;font-size:12.5px;font-variant-numeric:tabular-nums}
.theory-table th,.theory-table td{border:1px solid #e1eaf0;padding:5px 8px;text-align:right}
.theory-table th{background:#f3f8fc;color:#33576c;font-weight:600;text-align:center}
.theory-table td:first-child,.theory-table td:nth-child(2){color:#33576c}
.theory-table td:last-child{text-align:center;color:#607784}
.theory-source-figure > svg{display:block;width:100%;height:auto;max-height:300px;border:1px solid #e7eef3;border-radius:8px;background:#fff}
.placeholder-card .sub{margin-top:3px;font-size:11px;color:#6b8190;font-family:var(--font-mono)}
.placeholder-card.load-card::before{background:var(--chip,#8cc9ee)}
@media(max-width:980px){
  .studio{grid-template-columns:1fr}
  .gc-input-row{grid-template-columns:58px minmax(0,1fr) 100px 56px}
}
@media(max-width:760px){.theory-case-grid,.manual-steps{grid-template-columns:1fr}.formula-box{grid-template-columns:1fr}}
@media(max-width:560px){
  .gc-input-row{grid-template-columns:54px 1fr}
  .gc-input-row input,.gc-input-row .unit{grid-column:2}
  .placeholder-grid{grid-template-columns:1fr}
  .viewbar .view-hint{display:none}
}

/* Strip Load: the strip's near and far edges resize, its body moves the whole strip */
.strip-drag-note{font-size:11px;color:#6b8290;margin-top:6px}
#studioFig [data-drag="x1"],#studioFig [data-drag="x2"]{cursor:ew-resize}
#studioFig [data-drag="body"]{cursor:grab}
#studioFig.dragging [data-drag]{cursor:grabbing}
.gc-input-row input.invalid-pair{border-color:#b3261e;color:#b3261e}
