/* CAQA ReservoirSilt: survey staff rail, headline above the water line, sounding log. */
:root{
  --mist:#eef5f4;--white:#fbfdfc;--ink:#18262b;--soft:#46585e;--line:#b9cdcc;
  --water:#c4e3e6;--deep:#0d5560;--silt:#e0ad4c;--earth:#cbbfae;--orange:#a8390f;--held:#a52f12;--ok:#0d5560;
  --disp:Cambria,Constantia,Georgia,serif;
  --text:Corbel,Candara,"Segoe UI",sans-serif;
  --rail:176px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--mist);color:var(--ink);font:18px/1.55 var(--text)}
img{max-width:100%}
a{color:var(--deep)}
h1,h2,h3{font-family:var(--disp);font-weight:400;line-height:1.14;margin:0 0 .55em}
h2{font-size:clamp(1.55rem,2.5vw,2.1rem)}
h3{font-size:1.3rem}
p{margin:0 0 1em}
fieldset{border:0;margin:0;padding:0;min-width:0}

/* rail shaped like a levelling staff */
.staff{position:fixed;z-index:5;inset:0 auto 0 0;width:var(--rail);display:flex;flex-direction:column;background:var(--white);border-right:1px solid var(--ink);padding:14px 0 14px;overflow-y:auto}
.staff .caqa-lockup{flex-direction:column;align-items:flex-start;gap:4px;padding:0 16px}
.staff .caqa-divider{display:none}
.word{font:italic 700 1.3rem var(--disp);color:var(--deep)}
.staff nav{margin-top:26px}
.staff ol{list-style:none;margin:0;padding:0;background:url(staff-mark.svg) left top/14px 56px repeat-y}
.staff li a{display:flex;align-items:center;min-height:56px;padding:0 10px 0 30px;color:var(--ink);text-decoration:none;font-size:1.08rem;border-top:1px solid var(--ink);position:relative}
.staff li:last-child a{border-bottom:1px solid var(--ink)}
.staff li a[aria-current=page]{background:var(--water);font-weight:700}
.staff li a[aria-current=page]::after{content:"";position:absolute;right:0;top:50%;margin-top:-8px;border:8px solid transparent;border-right-color:var(--orange)}
.ask{display:flex;align-items:center;justify-content:center;min-height:48px;margin:20px 14px 0;padding:6px 8px;background:var(--orange);color:#fff;text-decoration:none;font-weight:700;text-align:center;line-height:1.2;clip-path:polygon(0 0,100% 0,100% 72%,90% 100%,0 100%)}
.ask:focus-visible{clip-path:none}
.railnote{margin:auto 16px 0;font-size:.85rem;color:var(--soft);line-height:1.35}
.shift{margin-left:var(--rail)}

.tag{margin:0 0 4px;font-size:.92rem;color:var(--soft)}

/* first screen: headline sits in the sky, the drawing begins at the water */
.sounding{background:var(--white);border-bottom:1px solid var(--ink)}
.sky{text-align:right;padding:14px 34px 0}
.sky h1{margin:0;font-size:clamp(1.9rem,3.1vw,2.85rem);color:var(--ink)}
.drawing{padding:0 14px;overflow-x:auto}
.section{display:block;width:100%;height:auto;max-width:1120px;margin:0 auto}
.grid{stroke:#d5e3e2;stroke-width:1}
.blk.a{fill:var(--ink)}.blk.b{fill:var(--orange)}
.el{font:13px var(--text);fill:var(--soft)}
.tk{stroke:var(--ink)}
.water{fill:var(--water)}
.earth{fill:var(--earth)}
.fsl{stroke:var(--deep);stroke-width:2}
.wl{font:italic 16px var(--disp);fill:var(--deep)}
.bed{fill:none;stroke:var(--ink);stroke-width:4;stroke-linejoin:round}
.old{fill:none;stroke:#5c3b05;stroke-width:3;stroke-dasharray:11 6;stroke-linejoin:round}

.apparent{fill:url(#nogo);opacity:.75}
.siltfill{fill:url(#silt)}
.call line{stroke:var(--held);stroke-width:5}
.call rect{fill:#fff4ef;stroke:var(--held);stroke-width:2}
.call text{font:700 15px var(--text);fill:var(--held)}
.call .lead{fill:none;stroke:var(--held);stroke-width:1.5}
.note rect{fill:#fff;stroke:var(--deep);stroke-width:1.5}
.note text{font:15px var(--text);fill:var(--ink)}
.note .lead{fill:none;stroke:var(--ink);stroke-width:1.5}
.further line{stroke:var(--ink);stroke-width:4;stroke-dasharray:3 4}
.further text{font:italic 13px var(--disp);fill:var(--ink)}
.key{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:2px 24px;margin:0;padding:4px 20px 8px;font-size:.92rem}
.key li{display:flex;align-items:center;gap:8px}
.key i{display:inline-block;width:30px;height:12px}
.k-new{border-top:4px solid var(--ink);height:4px!important}
.k-old{border-top:3px dashed #5c3b05;height:3px!important}
.k-silt{background:radial-gradient(circle,#5c3b05 1.5px,transparent 2px) 0 0/6px 6px var(--silt);border:1px solid #5c3b05}
.k-no{background:repeating-linear-gradient(45deg,var(--held) 0 2px,#fff 2px 6px);border:1px solid var(--held)}
.hint{display:none;font-size:.9rem;color:var(--soft);padding:0 16px}

/* sounding log */
.log{display:grid;grid-template-columns:minmax(300px,5fr) minmax(360px,7fr);gap:26px;padding:22px 34px 40px;background:var(--mist)}
.choose{display:flex;flex-direction:column;gap:14px}
.choose legend{font:700 1.08rem var(--disp);padding:0 0 5px}
.choose fieldset label{display:flex;align-items:center;gap:12px;min-height:52px;padding:5px 12px;background:var(--white);border:1px solid var(--ink);margin-top:-1px;cursor:pointer}
.choose input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--deep)}
.choose span{display:block;line-height:1.25}
.choose fieldset small{display:block;color:var(--soft);font-size:.9rem}
.choose fieldset label:has(input:checked){background:var(--water)}
.choose fieldset:disabled label{background:transparent;border-style:dashed;cursor:default}
.reveal{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
.reveal:has(input:disabled){color:var(--soft);cursor:default}
.reveal:has(input:disabled) span::after{content:" (nothing to show while held)"}
.two{width:100%;border-collapse:collapse;background:var(--white)}
.two caption,.sheet caption{text-align:left;font:700 1.08rem var(--disp);padding-bottom:5px}
.two th,.two td{text-align:left;padding:8px 12px;border:1px solid var(--line)}
.two thead th{font-weight:400;color:var(--soft);font-size:.92rem}
.verdict{margin-top:14px;padding:14px 20px;background:var(--white);border:3px solid var(--ok)}
.verdict p{margin:0}
.vlabel{font-size:.95rem;color:var(--soft)}
.vfig{font:clamp(1.7rem,3.2vw,2.6rem)/1.2 var(--disp);margin:2px 0 6px!important}
.verdict.held{border:3px dashed var(--held);background:#fff4ef}
.verdict.held .vfig{color:var(--held)}
.verdict.soft{border:4px double #5c3b05;background:#fbf3df}
.nojs{font-size:.92rem;color:var(--soft);margin:10px 0 0}
.js .nojs{display:none}

.pad{max-width:1120px;margin:0 auto;padding:56px 34px 0}
.big{font:italic 1.55rem/1.35 var(--disp);color:var(--deep);max-width:48ch}
.why p{max-width:78ch}
.gates{list-style:none;padding:0;margin:24px 0 0;display:grid;grid-template-columns:repeat(4,1fr);counter-reset:g}
.gates li{counter-increment:g;background:var(--white);border:1px solid var(--ink);border-left-width:0;padding:14px 16px 16px;border-bottom:10px solid var(--water)}
.gates li:first-child{border-left-width:1px;border-bottom-color:var(--orange)}
.gates li::before{content:counter(g);display:block;font:italic 2rem var(--disp);color:var(--deep)}
.gates b,.gates span{display:block}
.records{display:grid;grid-template-columns:repeat(3,1fr);gap:0 28px;margin:0 0 34px}
.records div{border-top:2px solid var(--ink);padding:10px 0 16px}
.records dt{font:700 1.2rem var(--disp)}
.records dd{margin:4px 0 0}
.routes{list-style:none;margin:0;padding:0}
.routes a{display:grid;grid-template-columns:180px 1fr;gap:14px;align-items:center;min-height:60px;padding:8px 14px;border-top:1px solid var(--ink);text-decoration:none;color:var(--ink)}
.routes li:last-child a{border-bottom:1px solid var(--ink)}
.routes a:hover{background:var(--white)}
.routes b{font:1.45rem var(--disp);color:var(--deep);text-decoration:underline}

/* scope ladder */
.first{padding-top:30px}
.first h1{font-size:clamp(2rem,4vw,3.2rem);max-width:22ch}
.read{max-width:70ch}
.ladder{list-style:none;margin:20px 0 0;padding:0;border-left:8px solid var(--ink);border-right:8px solid var(--ink);background:var(--white)}
.ladder li{display:grid;grid-template-columns:80px 1fr;border-bottom:6px solid var(--ink);padding:16px 16px 12px 0}
.ladder li:first-child{border-top:6px solid var(--ink)}
.rung{font:italic 2.6rem var(--disp);color:var(--deep);text-align:center}
.ladder h2{font-size:1.4rem;margin-bottom:4px}
.ladder p{margin:0;max-width:76ch}
.ladder .gate{background:#fff4ef;outline:4px dashed var(--held);outline-offset:-10px;padding-top:22px;padding-bottom:20px}
.ladder .gate .rung{color:var(--held)}
.ladder .gate p{padding-right:12px}
.band{margin-top:60px;background:var(--water);border-top:1px solid var(--deep);border-bottom:1px solid var(--deep);padding-bottom:48px}
.band .pad{padding-top:40px}
.sheet{width:100%;border-collapse:collapse;background:var(--white)}
.sheet th,.sheet td{border:1px solid var(--line);padding:10px 13px;text-align:left;vertical-align:top}
.sheet thead th{background:var(--ink);color:#fff;font-weight:700}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:18px}
.pair>*{background:var(--white);border-top:6px solid var(--deep);padding:16px 22px}
.pair>.no{border-top:6px dashed var(--held)}
.pair ul{padding-left:20px;margin:0}
.pair li{margin-bottom:6px}
.pair p{margin:0}

/* workflow */
.soundings{list-style:none;margin:0;padding:0}
.soundings li{display:grid;grid-template-columns:70px 1fr;position:relative;padding-bottom:24px}
.soundings li:not(:last-child)::before{content:"";position:absolute;left:25px;top:54px;bottom:0;border-left:3px dashed var(--deep)}
.mark{width:54px;height:54px;display:grid;place-items:center;background:var(--water);clip-path:polygon(0 0,100% 0,50% 100%);font:700 1.25rem var(--disp);padding-bottom:16px}
.soundings div{background:var(--white);border:1px solid var(--line);padding:14px 20px}
.soundings p{margin:0}
.soundings .holdstep div{border:3px dashed var(--held);background:#fff4ef}
.soundings .holdstep .mark{background:var(--held);color:#fff}
.outs{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:18px}
.outs article{background:var(--white);padding:18px 20px}
.o-held{border:3px dashed var(--held)}
.o-ok{border:3px solid var(--ok)}
.o-soft{border:4px double #5c3b05}
.fig{font:1.7rem var(--disp)}
.o-held .fig{color:var(--held)}

/* demo field book */
.fieldbook{display:grid;grid-template-columns:1.2fr 1fr;border:1px solid var(--ink);background:var(--white);box-shadow:0 10px 0 var(--water)}
.page-l,.page-r{padding:24px 30px}
.page-r{border-left:6px double var(--orange);background:repeating-linear-gradient(to bottom,var(--white) 0 31px,#e3eeed 31px 32px)}
.page-l dl{margin:0}
.page-l dl div{border-top:1px solid var(--line);padding:12px 0}
.page-l dt{font:700 1.1rem var(--disp)}
.page-l dd{margin:3px 0 0}
.cta{display:inline-block;min-height:50px;padding:13px 22px;background:var(--deep);color:#fff;text-decoration:none;font-weight:700;margin-bottom:14px}
.small{font-size:.9rem;color:var(--soft)}
.notes{list-style:none;padding:0;margin:0;columns:2;column-gap:36px}
.notes li{break-inside:avoid;padding:11px 0 11px 30px;position:relative;border-bottom:1px solid var(--line)}
.notes li::before{content:"";position:absolute;left:2px;top:18px;border:7px solid transparent;border-top:12px solid var(--orange)}
.faq details{border-top:1px solid var(--ink);padding:0 4px}
.faq details:last-child{border-bottom:1px solid var(--ink)}
.faq summary{cursor:pointer;min-height:52px;padding:13px 0;font:1.25rem var(--disp)}
.faq p{max-width:76ch}

.foot{margin-top:70px;background:var(--white);border-top:6px solid var(--deep);padding:26px 34px}
.foot ul{list-style:none;margin:10px 0;padding:0;display:flex;flex-wrap:wrap;gap:0 24px}
.foot li a{display:inline-flex;align-items:center;min-height:44px}
.foot p{max-width:86ch;font-size:.95rem;color:var(--soft);margin:0}

@media (max-width:1180px){
  .log{grid-template-columns:1fr}
  .gates{grid-template-columns:1fr 1fr}
  .gates li{border-left-width:1px}
}
@media (max-width:900px){
  .staff{position:static;width:auto;display:grid;grid-template-columns:1fr auto;align-items:center;padding:6px 0 0;border-right:0;border-bottom:1px solid var(--ink);overflow:visible}
  .staff .caqa-lockup{flex-direction:row;align-items:center;gap:8px;padding:0 12px}
  .staff .caqa-divider{display:block}
  .staff .caqa-lockup img{height:28px;width:auto}
  .word{font-size:1.12rem}
  .ask{grid-column:2;grid-row:1;margin:0 10px 0 0;min-height:44px;font-size:.88rem;max-width:104px}
  .staff nav{grid-column:1/-1;margin-top:6px}
  .staff ol{display:grid;grid-template-columns:repeat(4,1fr);background:repeating-linear-gradient(90deg,var(--ink) 0 18px,var(--orange) 18px 36px) left top/100% 6px no-repeat}
  .staff li a{justify-content:center;min-height:50px;padding:6px 2px 0;font-size:1rem;border:0;border-left:1px solid var(--ink)}
  .staff li:last-child a{border-bottom:0}
  .staff li a[aria-current=page]::after{right:auto;left:50%;top:auto;bottom:0;margin:0 0 0 -7px;border-width:7px;border-color:transparent transparent var(--orange)}
  .railnote{display:none}
  .shift{margin-left:0}
}
@media (max-width:760px){
  body{font-size:17px}
  .sky{text-align:left;padding:12px 16px 4px}
  .sky h1{font-size:1.72rem}
  .drawing{padding:0}
  .section{width:760px;max-width:none}
  .hint{display:block}
  .key{justify-content:flex-start;flex-direction:column;padding:6px 16px}
  /* phone: the drawing, then the choices, then each survey and the verdict stacked */
  .log{padding:18px 16px 30px;gap:18px}
  .two th,.two td{padding:7px 8px;font-size:.95rem}
  .pad{padding:44px 16px 0}
  .first{padding-top:22px}
  .gates,.records,.pair,.outs,.fieldbook{grid-template-columns:1fr}
  .routes a{grid-template-columns:1fr;gap:2px}
  .ladder{border-left-width:5px;border-right-width:5px}
  .ladder li{grid-template-columns:46px 1fr;padding-right:10px}
  .rung{font-size:1.9rem}
  .page-l,.page-r{padding:18px 16px}
  .page-r{border-left:0;border-top:6px double var(--orange)}
  .notes{columns:1}
  .soundings li{grid-template-columns:46px 1fr}
  .soundings li:not(:last-child)::before{left:17px;top:40px}
  .mark{width:38px;height:40px;padding-bottom:12px}
  .soundings div{padding:12px 14px}
  .tablebox{position:relative}
  .stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .stack,.stack tbody,.stack tr,.stack th,.stack td,.stack caption{display:block;width:100%}
  .stack tr{margin-bottom:12px}
  .stack tbody th{background:var(--ink);color:#fff}
  .stack td::before{content:attr(data-l) ": ";font-weight:700}
  .cta{width:100%;text-align:center}
  .foot{padding:22px 16px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.tablebox+p{margin-top:12px}
