:root{--film:#f6f7f3;--white:#fff;--graphite:#1d231f;--ink2:#474f48;--rule:#b9beb3;--pole-red:#a8231b;--umber:#6f5540;--ochre:#b89368;--sand:#ead9ae;--ok:#1d5c46;--ok-bg:#e3efe7;--bad-bg:#f8e4e0;
--disp:Constantia,Cambria,Georgia,serif;--text:Calibri,Candara,"Segoe UI",sans-serif;--label:Bahnschrift,"Arial Narrow","Segoe UI",sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--film);color:var(--graphite);font:18px/1.55 var(--text)}
img{max-width:100%}
.wrap{width:min(1392px,100% - 48px);margin-inline:auto}
a{color:#7a1a14;text-underline-offset:3px}
h1,h2,h3{font-family:var(--disp);line-height:1.12;margin:0 0 .5em;font-weight:400}
h2{font-size:clamp(1.65rem,3vw,2.4rem)}
h3{font-size:1.25rem;font-weight:700}
.over{font:600 .82rem/1.3 var(--label);font-stretch:85%;letter-spacing:.14em;text-transform:uppercase;color:var(--pole-red);margin:0 0 .6em}

/* header: page links sit on a survey datum line */
.top{background:var(--white);border-bottom:1px solid var(--rule)}
.top .wrap{display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:40px;min-height:76px}
.word{font:italic 700 1.45rem var(--disp)}
.datum{grid-column:2;grid-row:1;display:flex;justify-content:space-between;max-width:700px;width:100%;justify-self:center;background:linear-gradient(var(--graphite),var(--graphite)) 0 30px/100% 1px no-repeat}
.datum a{display:flex;flex-direction:column;align-items:center;gap:0;min-height:60px;min-width:64px;padding:6px 8px 0;color:var(--ink2);text-decoration:none;font:500 .95rem var(--label);letter-spacing:.04em}
.datum svg{margin:11px 0 7px;fill:var(--white);stroke:var(--graphite);stroke-width:1.4}
.datum a[aria-current]{color:var(--graphite);font-weight:700}
.datum a[aria-current] svg{fill:var(--pole-red);stroke:var(--pole-red)}
.datum a:hover{text-decoration:underline}
.ask{grid-column:3;grid-row:1;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:2px solid var(--graphite);color:var(--graphite);text-decoration:none;font:600 .95rem var(--label);letter-spacing:.03em}
.ask:hover{background:var(--graphite);color:#fff}

/* figure plate: drawing first, headline set as its caption */
.plate{display:flex;flex-direction:column;margin-top:10px}
.drawing{order:1;margin:0;background:var(--white);border:1px solid var(--graphite);outline:4px double var(--graphite);outline-offset:-9px;padding:14px 14px 12px}
.drawing figcaption{font:.82rem var(--label);letter-spacing:.04em;color:var(--ink2);padding:2px 4px}
.hint{display:none;margin:4px 0;font:600 .85rem var(--label);color:var(--pole-red)}
.scroller{overflow-x:auto}
.sect{display:block;width:100%;height:auto;max-height:46vh;min-height:300px}
.sect text{font-family:var(--label);fill:var(--graphite)}
.sect .grid{stroke:var(--graphite);stroke-width:1}
.sect .gl,.sect .end{font-size:14px}
.sect .end{font-size:18px;font-weight:700}
.sect .datumline path{stroke:var(--pole-red);stroke-dasharray:10 4 2 4;fill:none}
.sect .soil{stroke:var(--graphite);stroke-width:1.4;stroke-linejoin:round}
.sect .cut{fill:none;stroke:var(--graphite);stroke-width:4.5;stroke-dasharray:11 5}
.sect .ctx{cursor:pointer}
.sect .tag rect{fill:var(--white);stroke:var(--graphite);stroke-width:1.6}
.sect .tag text{font-size:18px;font-weight:700}
.sect .lead{stroke:var(--graphite);stroke-width:1.3;fill:none}
.sect .is-sel .soil{stroke:var(--pole-red);stroke-width:5}
.sect .is-sel .cut{stroke:var(--pole-red);stroke-width:7}
.sect .is-sel .tag rect{fill:var(--pole-red);stroke:var(--pole-red)}
.sect .is-sel .tag text{fill:#fff}
.sect .find path:first-child{fill:#fff;stroke:var(--graphite);stroke-width:2}
.sect .find text{font-size:15px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:5px}
.sect .scale rect{stroke:var(--graphite);stroke-width:1}
.sect .scale .r{fill:var(--pole-red)}.sect .scale .w{fill:#fff}
.sect .scale text{font-size:13px;paint-order:stroke;stroke:#fff;stroke-width:4px}
.keys{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(8,1fr);gap:6px}
.key{width:100%;min-height:46px;display:flex;align-items:center;gap:7px;padding:5px 8px;background:var(--white);border:1px solid var(--rule);font:.92rem/1.15 var(--label);font-stretch:85%;color:var(--graphite);text-align:left;cursor:pointer}
.key[aria-pressed="true"]{border:2px solid var(--pole-red);background:var(--bad-bg);box-shadow:inset 0 -4px 0 var(--pole-red)}
.sw{flex:none;width:12px;height:28px;border:1px solid var(--graphite)}
.s101{background:#6f5540}.s102{background:#b89368}.s103{background:#c9c4b8}.s104{background:#9d9488}.s105{background:#fff;border-style:dashed;border-width:2px}.s106{background:#c08258}.s107{background:#ead9ae}.s108{background:#8b7765}
.caption{order:2;display:grid;grid-template-columns:auto minmax(0,1.5fr) minmax(0,1fr);gap:0 28px;align-items:start;padding:20px 0 34px;border-bottom:1px solid var(--graphite)}
.figno{margin:0;font:italic 1.15rem var(--disp);color:var(--pole-red);padding-top:36px;white-space:nowrap}
.caption h1{font-size:clamp(2rem,3.5vw,3.1rem);font-style:italic;margin:0}
.capnote{margin:34px 0 0;border-left:1px solid var(--rule);padding-left:22px}
.capnote a{display:inline-block;font-weight:700;padding:10px 0}
.tags{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin:0 0 8px}
.tag{font:600 .74rem/1 var(--label);letter-spacing:.1em;text-transform:uppercase;border:1px solid var(--graphite);padding:6px 8px;background:var(--white)}
.tag.dsg{background:var(--graphite);color:#fff}
.for{font:.9rem var(--label);color:var(--ink2);margin-left:4px}

section{padding:62px 0;border-bottom:1px solid var(--rule)}
.two{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:start}

/* context sheet */
.sheet{background:var(--white);border:2px solid var(--graphite);box-shadow:10px 10px 0 var(--sand)}
.sheet header{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:2px solid var(--graphite);padding:14px 20px}
.sheet h3{margin:0;font-size:1.45rem}
#sh-no{font-family:var(--label)}
#sh-type{font-style:italic;font-weight:400;margin-left:8px}
.syn{font:600 .72rem var(--label);letter-spacing:.1em;text-transform:uppercase;color:var(--pole-red)}
.sheet>p{margin:0;padding:14px 20px}
.sheet dl{margin:0}
.sheet dl div{display:grid;grid-template-columns:170px 1fr;border-top:1px solid var(--rule)}
.sheet dt{font:600 .8rem var(--label);letter-spacing:.08em;text-transform:uppercase;padding:13px 20px;background:#eef0ea}
.sheet dd{margin:0;padding:10px 18px}

/* matrix bench */
.bench{background:var(--white)}
.intro{max-width:70ch}
.benchgrid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,4fr) minmax(0,3fr);gap:28px;align-items:start;margin-top:26px}
.relform fieldset{border:1px solid var(--graphite);margin:0 0 12px;padding:10px 16px 16px}
.relform legend{font:700 1.15rem var(--disp);padding:0 6px}
.relform label{display:block;font:600 .8rem var(--label);letter-spacing:.08em;text-transform:uppercase;margin:10px 0 4px}
select{width:100%;min-height:46px;font:1.05rem var(--text);padding:6px 10px;border:1px solid var(--graphite);background:var(--white);color:var(--graphite)}
button{font:600 .98rem var(--label);cursor:pointer;min-height:46px;padding:8px 14px;border:1px solid var(--graphite);background:var(--white);color:var(--graphite)}
.primary{width:100%;background:var(--graphite);color:#fff}
.presets{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.nojs{font-size:.92rem;color:var(--ink2)}
.js .nojs{display:none}
.verdict{border:2px solid var(--ok);background:var(--ok-bg);padding:14px 16px}
.verdict strong{display:block;font:700 1.2rem var(--disp)}
.verdict.bad{border:2px dashed var(--pole-red);background:var(--bad-bg)}
.verdict.bad strong{color:#7a1a14}
.mxfig{margin:0;border:1px solid var(--rule);background:var(--film);padding:12px}
.mxfig figcaption{font:.84rem/1.35 var(--label);color:var(--ink2);margin-bottom:8px}
.mx{display:block;width:100%;max-width:460px;margin-inline:auto;height:auto}
.mx .edge{fill:none;stroke:var(--graphite);stroke-width:2}
.mx .edge.new{stroke:var(--ok);stroke-width:4}
.mx .edge.bad{stroke:var(--pole-red);stroke-width:3.5;stroke-dasharray:8 6}
.mx .node rect{fill:var(--white);stroke:var(--graphite);stroke-width:1.6}
.mx .node text{font:700 17px var(--label);fill:var(--graphite)}
.mx .node.free rect{stroke-dasharray:4 3}
.mx .node.loop rect{stroke:var(--pole-red);stroke-width:5;fill:var(--bad-bg)}
.mx .node.fresh rect{stroke:var(--ok);stroke-width:4;fill:var(--ok-bg)}
.mx .xmark circle{fill:var(--pole-red)}
.mx .xmark path{stroke:#fff;stroke-width:3}
.mx .el{font:italic 14px var(--disp);fill:var(--ink2)}
.mx .el.bad{fill:#7a1a14;font-weight:700}
.rels h3{margin-bottom:2px}
.count{margin:0 0 10px;font:600 .9rem var(--label)}
.rels ol{list-style:none;margin:0;padding:0;border-top:1px solid var(--graphite)}
.rels li{padding:9px 2px;border-bottom:1px solid var(--rule);font-size:1rem}
.rels li.new{background:var(--ok-bg);font-weight:700;padding-left:8px}

/* six records drawn as stacked bands */
.strata{list-style:none;margin:26px 0 0;padding:0;border:2px solid var(--graphite)}
.strata li{display:grid;grid-template-columns:70px 250px 1fr;align-items:center;border-top:1.5px solid var(--graphite);min-height:62px}
.strata li:first-child{border-top:0}
.strata li::before{content:"";align-self:stretch;border-right:1.5px solid var(--graphite)}
.strata b{font:700 1.3rem var(--disp);padding:8px 22px}
.strata span{padding:8px 22px 8px 0}
.strata .b1::before{background:#6f5540}.strata .b2::before{background:#b89368}.strata .b3::before{background:#c9c4b8}.strata .b4::before{background:#9d9488}.strata .b5::before{background:#c08258}.strata .b6::before{background:#ead9ae}

.roles{margin:0}
.roles div{border-top:2px solid var(--graphite);padding:14px 0 8px}
.roles dt{font:italic 700 1.35rem var(--disp)}
.roles dd{margin:4px 0 8px}
.routes ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.routes a{display:block;height:100%;padding:18px 20px 22px;background:var(--white);border:1px solid var(--graphite);border-top:10px solid var(--umber);color:var(--graphite);text-decoration:none}
.routes li:nth-child(2) a{border-top-color:var(--ochre)}.routes li:nth-child(3) a{border-top-color:var(--pole-red)}
.routes b{display:block;font:700 1.5rem var(--disp);text-decoration:underline}

/* sub pages */
.head{display:grid;grid-template-columns:22px 1fr;gap:30px;padding:40px 0 30px;border-bottom:1px solid var(--graphite)}
.head h1{font-size:clamp(2rem,4.2vw,3.4rem);font-style:italic;max-width:22ch;margin-bottom:.35em}
.lede{font-size:1.22rem;max-width:66ch;margin-top:0}
.pole{background:repeating-linear-gradient(var(--pole-red) 0 34px,#fff 34px 68px);border:1px solid var(--graphite)}
.foot .pole{height:12px;border-width:1px 0;background:repeating-linear-gradient(90deg,var(--pole-red) 0 60px,#fff 60px 120px)}
.tbl{overflow-x:auto;background:var(--white);border:1px solid var(--graphite)}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--rule);vertical-align:top}
thead th{font:600 .8rem var(--label);letter-spacing:.08em;text-transform:uppercase;background:#eef0ea;border-bottom:2px solid var(--graphite)}
tbody th{font-family:var(--disp);font-size:1.1rem}
.rule{background:var(--white)}
.rule h2{max-width:30ch}
.outcomes{list-style:none;margin:24px 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.outcomes li{padding:16px 18px}
.outcomes .ok{border:2px solid var(--ok);background:var(--ok-bg)}
.outcomes .no-loop{border:2px dashed var(--pole-red);background:var(--bad-bg)}
.outcomes b{font:700 1.2rem var(--disp)}
.outcomes p{margin:6px 0 0}
.cols3{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--graphite);background:var(--white)}
.cols3>div{padding:20px 24px;border-left:1px solid var(--graphite)}
.cols3>div:first-child{border-left:0}
.cols3 ul{padding-left:20px;margin:0}
.cols3 li{margin-bottom:8px}
.supply{margin:0;padding:0;list-style:none;counter-reset:s;border-top:2px solid var(--graphite)}
.supply li{counter-increment:s;display:grid;grid-template-columns:48px 1fr;padding:13px 0;border-bottom:1px solid var(--rule)}
.supply li::before{content:counter(s);font:700 1.25rem var(--label);color:var(--pole-red)}
.next{border:0;padding:30px 0}
.go{display:inline-flex;align-items:center;min-height:46px;padding:0 20px;margin:0 10px 10px 0;background:var(--graphite);color:#fff;text-decoration:none;font:600 1rem var(--label)}
.go.alt{background:var(--white);color:var(--graphite);border:2px solid var(--graphite)}
.steps{list-style:none;margin:0;padding:0}
.steps>li{display:grid;grid-template-columns:150px minmax(0,1fr);border-top:2px solid var(--graphite)}
.lvl{font:700 1rem var(--label);padding:20px 16px;background:repeating-linear-gradient(45deg,#e7dfc9 0 6px,#f2ecda 6px 12px);border-right:2px solid var(--graphite);overflow-wrap:anywhere}
.steps .body{padding:18px 0 22px 30px;max-width:860px;min-width:0}
.steps .exc .lvl{background:var(--bad-bg);box-shadow:inset 8px 0 0 var(--pole-red)}
.result{padding:12px 16px;border-left:6px solid var(--ok);background:var(--ok-bg)}
.result.bad{border-left:6px dashed var(--pole-red);background:var(--bad-bg)}
.export{margin:18px 0 0}
.export figcaption{font:.85rem var(--label);color:var(--ink2);margin-bottom:6px}
pre{margin:0;background:var(--graphite);color:#f2f1e8;padding:18px;overflow-x:auto;font:.92rem/1.7 "Cascadia Mono",Consolas,monospace}
.avail dl{margin:0;background:var(--white);border:2px solid var(--graphite)}
.avail dl div{display:grid;grid-template-columns:160px 1fr;border-bottom:1px solid var(--rule);padding:12px 18px}
.avail dt{font:600 .8rem var(--label);letter-spacing:.08em;text-transform:uppercase;padding-top:4px}
.avail dd{margin:0}
.faq details{border-top:1px solid var(--graphite);background:var(--white);padding:0 18px}
.faq summary{min-height:54px;display:list-item;padding:14px 0;cursor:pointer;font:700 1.15rem var(--disp)}
.faq p{margin-top:0}
.enq{background:var(--sand);border-bottom:0}
.enqbtn{display:inline-flex;align-items:center;min-height:52px;padding:10px 24px;background:var(--pole-red);color:#fff;text-decoration:none;font:600 1.1rem var(--label)}
.foot{background:var(--white);border-top:1px solid var(--graphite)}
.foot .wrap{padding:26px 0 34px}
.foot nav{display:flex;flex-wrap:wrap;gap:0 24px;margin:12px 0}
.foot nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--graphite)}
.foot p{margin:0;font-size:.95rem;color:var(--ink2)}

@media (min-width:1500px){.sect{max-height:440px}}
@media (max-width:1100px){
 .keys{grid-template-columns:repeat(4,1fr)}
 .benchgrid{grid-template-columns:1fr 1fr}
 .rels{grid-column:1/-1}
}
@media (max-width:820px){
 body{font-size:17px}
 .wrap{width:calc(100% - 32px)}
 .top .wrap{grid-template-columns:1fr auto;column-gap:10px;min-height:0;padding-top:8px}
 .ask{grid-column:2}
 .datum{grid-column:1/-1;grid-row:2;max-width:none}
 .datum a{min-width:60px}
 .word{font-size:1.2rem}
 /* phone order: headline, context list, then the drawing */
 .plate{margin-top:0}
 .caption{order:1;display:block;padding:18px 0 14px;border:0}
 .figno{display:none}
 .capnote{margin:10px 0 0;border:0;padding:0}
 .for{width:100%;margin:2px 0 0}
 .drawing{order:2;display:flex;flex-direction:column;outline:0;padding:10px}
 .keys{order:1;grid-template-columns:1fr 1fr;margin:8px 0 12px}
 .hint{display:block;order:2}
 .scroller{order:3}
 .sect{width:880px;max-height:none;min-height:0}
 .two,.benchgrid,.cols3,.outcomes,.routes ul{grid-template-columns:1fr;gap:20px}
 .cols3{gap:0}
 .cols3>div{border-left:0;border-top:1px solid var(--graphite)}
 .cols3>div:first-child{border-top:0}
 section{padding:40px 0}
 .sheet dl div,.avail dl div{grid-template-columns:1fr}
 .sheet dt{padding:6px 20px}
 .strata li{grid-template-columns:30px 1fr;grid-template-rows:auto auto}
 .strata li::before{grid-row:1/3}
 .strata b{padding:10px 14px 0}
 .strata span{grid-column:2;padding:2px 14px 12px}
 .head{grid-template-columns:10px 1fr;gap:16px;padding-top:24px}
 .steps>li{grid-template-columns:1fr}
 .lvl{padding:8px 14px;border-right:0}
 .steps .body{padding:14px 0 18px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
