/* The Field Guide. Cloth cover, paper plates, survey-map linework. */
:root{
  --cloth:#22302a; --cloth-2:#2c3d35; --cloth-line:#4a5d53; --on-cloth:#ece5d0; --on-cloth-2:#c3ccbb;
  --paper:#f2ecdb; --paper-2:#e9e1cb; --rule:#bfb394; --ink:#27221a; --ink-2:#554c3c;
  --rust:#8f3f1b; --rust-l:#f0c49a; --water:#4f7f8f; --green:#4c6a3a;
  --tax1:#f1e3b6; --tax2:#e2bd6c; --tax3:#c98a3a; --tax4:#9b5524;
  --rail1:#dbe6e2; --rail2:#b0c9c9; --rail3:#7ea3ab; --rail4:#517b89;
  --price1:#efdfd3; --price2:#dcb7a2; --price3:#be8873; --price4:#93595a;
  --sew4:#b7cbd2;
  --fell:"IM Fell English","Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --text:"Source Serif 4","Source Serif Pro",Charter,"Iowan Old Style",Georgia,serif;
  --fs-town:11.5px; --fs-val:10.5px; --fs-ctx:8px; --fs-feat:8.5px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{font-size:109.375%;scroll-behavior:smooth;scroll-padding-top:1rem}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--cloth);color:var(--on-cloth);font-family:var(--text);font-size:1rem;line-height:1.55;font-variant-numeric:lining-nums tabular-nums;-webkit-text-size-adjust:100%}
a{color:inherit}
h1,h2,h3,h4,p,ul,ol,dl,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:1rem;top:-4rem;background:var(--paper);color:var(--ink);padding:.6rem .9rem;z-index:20}
.skip:focus{top:.6rem}
:focus-visible{outline:3px solid var(--rust-l);outline-offset:2px}
.plate :focus-visible,.sheet :focus-visible,.write :focus-visible{outline-color:var(--rust)}

/* ---------- top bar */
.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem 1.5rem;border-bottom:1px solid var(--cloth-line)}
.brand{font-family:var(--fell);font-size:1.15rem;text-decoration:none;display:flex;align-items:center;gap:.55rem;min-height:2rem}
.brand-m{width:1.05rem;height:1.05rem;border:1.5px solid var(--on-cloth);transform:rotate(45deg);position:relative}
.brand-m::after{content:"";position:absolute;inset:3px;background:var(--on-cloth)}
.bar nav{display:flex;gap:.2rem;flex-wrap:wrap}
.bar nav a{font-size:.9rem;text-decoration:none;padding:.35rem .6rem;color:var(--on-cloth-2)}
.bar nav a:hover{color:var(--on-cloth);text-decoration:underline}

/* ---------- atlas layout */
.atlas{display:grid;gap:1.25rem 1.75rem;padding:1.25rem 1.5rem 3rem;max-width:1720px;margin:0 auto;
  grid-template-columns:16.5rem auto minmax(20rem,1fr);grid-template-rows:auto 1fr;grid-template-areas:"head map plate" "key map plate"}
.head{grid-area:head}.key{grid-area:key;align-self:start;position:sticky;top:1rem}
.mapfig{grid-area:map;align-self:start;position:sticky;top:1rem}
.platecol{grid-area:plate;container-type:inline-size;min-width:0}
.kicker{font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;color:var(--on-cloth-2);margin-bottom:.5rem}
.sheet .kicker,.write .kicker{color:var(--ink-2)}
h1{font-family:var(--fell);font-weight:400;font-size:1.9rem;line-height:1.08;letter-spacing:-.005em;text-wrap:balance}
.deck{margin-top:.8rem;font-size:1rem;color:var(--on-cloth-2);line-height:1.5}

/* ---------- map */
.frame{background:var(--paper);padding:7px;box-shadow:0 0 0 1px var(--ink),0 0 0 5px var(--paper),0 0 0 6px var(--ink);margin:6px;line-height:0}
.map{display:block;height:calc(100vh - 8.2rem);min-height:520px;max-height:1100px;width:auto;aspect-ratio:550/790;border:1px solid var(--ink);background:var(--paper);overflow:hidden}
.map text{font-family:var(--text);fill:var(--ink);paint-order:stroke;stroke:var(--paper);stroke-width:calc(2.6px/var(--z,1));stroke-linejoin:round;pointer-events:none}
.ctx use{fill:#ece6d3;stroke:#a89c80;stroke-width:calc(.7px/var(--z,1));stroke-dasharray:calc(3px/var(--z,1)) calc(2.5px/var(--z,1))}
.t use{fill:#f6f0dc;stroke:#3a3428;stroke-width:calc(1.15px/var(--z,1));transition:fill .25s}
.t{cursor:pointer;outline:none}
.t:hover use{fill:#fbf7e8}
.t:focus-visible use{stroke:var(--rust);stroke-width:calc(3.2px/var(--z,1))}
.selring{fill:none;stroke:var(--rust);stroke-width:calc(3px/var(--z,1));pointer-events:none}
.hovring{fill:none;stroke:var(--ink);stroke-width:calc(2.2px/var(--z,1));pointer-events:none;display:none}
.osp{fill:#b9cba0;opacity:.72;mix-blend-mode:multiply}.osp-t{opacity:.55}
.pond{fill:#a9c6cf;stroke:var(--water);stroke-width:calc(.9px/var(--z,1))}.pond-l{pointer-events:none}
.coast{fill:none;stroke:var(--water);stroke-width:calc(1.1px/var(--z,1))}
.mj{fill:none;stroke:#a8573f;stroke-width:calc(.8px/var(--z,1));opacity:.75}
.fw-case{fill:none;stroke:#8a3a26;stroke-width:calc(3.2px/var(--z,1));stroke-linecap:round}.fw-fill{fill:none;stroke:#f3e7cf;stroke-width:calc(1.2px/var(--z,1));stroke-linecap:round}
.shield rect{fill:var(--paper);stroke:#8a3a26;stroke-width:calc(1px/var(--z,1))}
.map .shield text{font-size:calc(8px/var(--z,1));font-weight:700;fill:#7a2f1c;stroke:none}
.rail2{fill:none;stroke:#7b7566;stroke-width:calc(1px/var(--z,1));stroke-dasharray:calc(5px/var(--z,1)) calc(2px/var(--z,1))}
.rail-l{fill:none;stroke:#1d1a15;stroke-width:calc(1.5px/var(--z,1))}.rail-t{fill:none;stroke:#1d1a15;stroke-width:calc(6px/var(--z,1));stroke-dasharray:calc(1.3px/var(--z,1)) calc(7px/var(--z,1))}
.st{fill:var(--paper);stroke:#1d1a15;stroke-width:calc(1.3px/var(--z,1))}.st.minor{stroke:#7b7566;stroke-width:calc(.9px/var(--z,1))}
.terminus circle{fill:var(--paper);stroke:#1d1a15;stroke-width:calc(1.4px/var(--z,1))}.terminus circle+circle{fill:#1d1a15}
.map .terminus text{font-family:var(--fell);font-style:italic;font-size:calc(11px/var(--z,1))}
.map .stm{display:none;font-size:calc(9.5px/var(--z,1));font-weight:700;fill:#12303a}
.map .lt{font-family:var(--fell);font-size:calc(var(--fs-town)/var(--z,1));letter-spacing:.09em}
.map .tv{display:none;font-family:var(--text);font-weight:700;letter-spacing:0;font-size:calc(var(--fs-val)/var(--z,1))}
.map .lc{font-size:calc(var(--fs-ctx)/var(--z,1));fill:#6c634f;font-style:italic;stroke-width:calc(2px/var(--z,1))}
.map .lb{font-family:var(--fell);font-size:calc(15px/var(--z,1));letter-spacing:.3em;fill:#5a5140}
.map .lr{font-family:var(--fell);font-size:10px;letter-spacing:.25em;fill:#6c634f}
.map .lw{font-family:var(--fell);font-style:italic;font-size:calc(var(--fs-feat)/var(--z,1));fill:#27576a}
.map .lo{font-family:var(--fell);font-style:italic;font-size:calc(var(--fs-feat)/var(--z,1));fill:#36522a}
.ly-corridor,.ly-halo,.ly-pins{display:none}
.ly-halo use{fill:none;stroke:var(--rust);stroke-width:calc(9px/var(--z,1));stroke-linejoin:round;opacity:.9}
.map .cor-l,.map .cor-s{font-family:var(--fell);font-style:italic;font-size:11px;fill:#27576a}
.map .cor-s{font-size:9px}
.cart{fill:var(--paper);stroke:var(--ink);stroke-width:calc(1px/var(--z,1))}
.map .cart-t{font-family:var(--fell);font-size:15px;stroke:none}.map .cart-s{font-size:7.6px;stroke:none;fill:var(--ink-2)}
.sb{fill:none;stroke:var(--ink);stroke-width:calc(1px/var(--z,1))}.sb-f{fill:var(--ink)}
.map .sb-n{font-size:8px;stroke:none}
.north path{fill:var(--paper);stroke:var(--ink);stroke-width:calc(1px/var(--z,1))}.north .n-h{fill:var(--ink)}
.map .north text{font-family:var(--fell);font-size:10px;stroke:none}
.pin circle{fill:var(--rust);stroke:var(--paper);stroke-width:.4px}
.map .pin text{font-size:4.2px;font-weight:700;fill:#fff;stroke:none}
.map .pin .pin-l{font-family:var(--fell);font-style:italic;font-size:5px;fill:var(--ink);stroke:var(--paper);stroke-width:1.1px}

/* layer switches */
.atlas[data-rail="off"] .ly-rail,.atlas[data-roads="off"] .ly-roads,.atlas[data-water="off"] .ly-water,.atlas[data-water="off"] .lw,.atlas[data-open="off"] .ly-open,.atlas[data-open="off"] .lo{display:none}
.atlas[data-corridor="on"] .ly-corridor,.atlas[data-corridor="on"] .ly-halo{display:inline}
.atlas[data-corridor="on"] .ctx{opacity:.5}
.atlas[data-corridor="on"] .t use{fill:#f3dcc0}
.atlas[data-zoom="sharon"] .ly-pins{display:inline}
.atlas[data-zoom="sharon"] .furn,.atlas[data-zoom="sharon"] .shield,.atlas[data-zoom="sharon"] .lw,.atlas[data-zoom="sharon"] .lo,.atlas[data-zoom="sharon"] .lr{display:none}
.atlas[data-zoom="sharon"] .st{r:1.4px}
/* tints */
.atlas[data-tint="tax"] .v-tax,.atlas[data-tint="sewer"] .v-sewer,.atlas[data-tint="rail"] .v-rail,.atlas[data-tint="price"] .v-price{display:inline}
.atlas[data-tint="rail"] .stm{display:inline}
.atlas[data-tint="tax"] .t[data-tax="1"] use{fill:var(--tax1)}.atlas[data-tint="tax"] .t[data-tax="2"] use{fill:var(--tax2)}.atlas[data-tint="tax"] .t[data-tax="3"] use{fill:var(--tax3)}.atlas[data-tint="tax"] .t[data-tax="4"] use{fill:var(--tax4)}
.atlas[data-tint="rail"] .t[data-rail="1"] use{fill:var(--rail1)}.atlas[data-tint="rail"] .t[data-rail="2"] use{fill:var(--rail2)}.atlas[data-tint="rail"] .t[data-rail="3"] use{fill:var(--rail3)}.atlas[data-tint="rail"] .t[data-rail="4"] use{fill:var(--rail4)}.atlas[data-tint="rail"] .t[data-rail="0"] use{fill:url(#p-none)}
.atlas[data-tint="price"] .t[data-price="1"] use{fill:var(--price1)}.atlas[data-tint="price"] .t[data-price="2"] use{fill:var(--price2)}.atlas[data-tint="price"] .t[data-price="3"] use{fill:var(--price3)}.atlas[data-tint="price"] .t[data-price="4"] use{fill:var(--price4)}.atlas[data-tint="price"] .t[data-price="0"] use{fill:url(#p-unknown)}
.atlas[data-tint="sewer"] .t[data-sewer="1"] use{fill:url(#p-sew1)}.atlas[data-tint="sewer"] .t[data-sewer="2"] use{fill:url(#p-sew2)}.atlas[data-tint="sewer"] .t[data-sewer="3"] use{fill:url(#p-sew3)}.atlas[data-tint="sewer"] .t[data-sewer="4"] use{fill:var(--sew4)}
.atlas:not([data-tint="none"]) .osp{opacity:.16}.atlas:not([data-tint="none"]) .osp-t{opacity:.4}
.atlas:not([data-tint="none"]) .lc{opacity:.7}

.mapfig figcaption{padding:.55rem 6px 0;width:0;min-width:100%}
.readout{font-size:1rem;display:flex;flex-wrap:wrap;gap:.2rem .7rem;align-items:baseline}
.ro-t{font-family:var(--fell);font-size:1.25rem}
.ro-v{color:var(--on-cloth-2)}
.ro-go{margin-left:auto;font-size:.95rem;padding:.2rem 0;min-height:1.5rem}
.attr{font-size:.8rem;color:var(--on-cloth-2);margin-top:.15rem;line-height:1.4}

/* ---------- key */
.key fieldset{border:0;padding:0;margin:0 0 1rem}
.key legend{font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;color:var(--on-cloth-2);padding:0;margin-bottom:.35rem}
.key label{display:flex;align-items:center;gap:.6rem;min-height:2.25rem;padding:.15rem .5rem;margin:0 -.5rem;cursor:pointer;font-size:1rem;border-radius:2px}
.key label:hover{background:var(--cloth-2)}
.key input{accent-color:var(--rust-l);width:1.05rem;height:1.05rem;margin:0;flex:none}
.k-tint label:has(input:checked){background:var(--paper);color:var(--ink)}
.k-tint input{accent-color:var(--rust)}
.sym{flex:none;width:1.7rem;height:.95rem;border:1px solid var(--on-cloth-2);background:var(--paper);position:relative;order:2;margin-left:auto}
.k-base label{gap:.6rem}
.sym-rail::after{content:"";position:absolute;left:2px;right:2px;top:50%;height:1.5px;background:#1d1a15}
.sym-rail::before{content:"";position:absolute;left:3px;right:3px;top:3px;bottom:3px;background:repeating-linear-gradient(90deg,#1d1a15 0 1.5px,transparent 1.5px 6px)}
.sym-road::after{content:"";position:absolute;left:2px;right:2px;top:calc(50% - 2px);height:4px;background:#f3e7cf;border-block:1.3px solid #8a3a26}
.sym-water{background:#a9c6cf repeating-linear-gradient(0deg,transparent 0 2.5px,rgba(79,127,143,.7) 2.5px 3.2px)}
.sym-open{background:#c5d3ae radial-gradient(circle,#55733f 1px,transparent 1.3px) 0 0/5px 5px}
.k-acts{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.kbtn{font:inherit;font-size:.95rem;color:var(--on-cloth);background:none;border:1px solid var(--on-cloth-2);border-radius:2px;padding:.4rem .7rem;min-height:2.5rem;cursor:pointer}
.kbtn:hover{background:var(--cloth-2)}
.kbtn[aria-pressed="true"]{background:var(--rust-l);color:var(--ink);border-color:var(--rust-l)}
.legend{border-top:1px solid var(--cloth-line);padding-top:.8rem;font-size:.92rem;line-height:1.45}
.legend h3{font-family:var(--fell);font-weight:400;font-size:1.2rem;margin-bottom:.3rem}
.lg-a{color:var(--on-cloth-2)}
.lg ul{margin:.6rem 0}
.lg li{display:grid;grid-template-columns:1.5rem 1fr;gap:.1rem .6rem;padding:.28rem 0;align-items:start}
.sw{width:1.5rem;height:1.05rem;border:1px solid var(--on-cloth);margin-top:.18rem;grid-row:span 2}
.lg-r{font-weight:600}.lg-t{grid-column:2;color:var(--on-cloth-2)}
.lg-t span.on{color:var(--rust-l);font-weight:600}
.lg-f{color:var(--on-cloth-2);font-style:italic}
.legend .fn{border-color:var(--cloth-line);color:var(--on-cloth-2)}
.sw.tax1{background:var(--tax1)}.sw.tax2{background:var(--tax2)}.sw.tax3{background:var(--tax3)}.sw.tax4{background:var(--tax4)}
.sw.rail1{background:var(--rail1)}.sw.rail2{background:var(--rail2)}.sw.rail3{background:var(--rail3)}.sw.rail4{background:var(--rail4)}
.sw.price1{background:var(--price1)}.sw.price2{background:var(--price2)}.sw.price3{background:var(--price3)}.sw.price4{background:var(--price4)}
.sw.none{background:#efe8d6 radial-gradient(circle,#6a6252 1.1px,transparent 1.4px) 0 0/6px 6px}
.sw.unknown{background:repeating-linear-gradient(45deg,#efe8d6 0 3px,#6a6252 3px 4.2px)}
.sw.sew1{background:repeating-linear-gradient(-45deg,#dcc39a 0 2.2px,#7a5324 2.2px 3.6px)}
.sw.sew2{background:repeating-linear-gradient(-45deg,#e6d6b4 0 5px,#7a5324 5px 6.2px)}
.sw.sew3{background:#dfe3cf radial-gradient(circle,#4c6b78 1.2px,transparent 1.5px) 0 0/6px 6px}
.sw.sew4{background:var(--sew4)}
.js .atlas .lg{display:none}
.js .atlas[data-tint="none"] .lg[data-lg="none"],.js .atlas[data-tint="tax"] .lg[data-lg="tax"],.js .atlas[data-tint="sewer"] .lg[data-lg="sewer"],.js .atlas[data-tint="rail"] .lg[data-lg="rail"],.js .atlas[data-tint="price"] .lg[data-lg="price"]{display:block}
html:not(.js) .lg{margin-bottom:1rem}
html:not(.js) .key{position:static}
html:not(.js) .k-base,html:not(.js) .k-tint,html:not(.js) .k-acts{display:none}

/* ---------- footnote marks */
.fn{display:inline-block;min-width:1.5rem;height:1.5rem;line-height:1.38rem;padding:0 .2rem;text-align:center;font-size:.72rem;font-style:normal;font-weight:400;border:1px solid var(--rule);border-radius:2px;text-decoration:none;color:var(--ink-2);vertical-align:.08em;margin-left:.12rem;letter-spacing:0}
.fn:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* ---------- plates */
.tabs ol{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.6rem,1fr));gap:.3rem;margin-bottom:.9rem}
.tabs a{display:flex;gap:.5rem;align-items:baseline;padding:.3rem .55rem;min-height:2.25rem;text-decoration:none;font-size:.95rem;border:1px solid var(--cloth-line);border-radius:2px}
.tabs a:hover{background:var(--cloth-2)}
.tabs a[aria-current="true"]{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.tl-n{font-family:var(--fell);font-size:.85rem;min-width:1.6rem;color:var(--on-cloth-2)}
.tabs a[aria-current="true"] .tl-n{color:var(--rust)}
.plate{background:var(--paper);color:var(--ink);padding:1.6rem 1.7rem 1.5rem;margin-bottom:1.5rem;position:relative;outline-offset:4px;box-shadow:inset 0 0 0 5px var(--paper),inset 0 0 0 6px var(--rule)}
.js .plate:not(.is-on){display:none}
.pl-h{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;border-bottom:1px solid var(--ink);padding-bottom:.7rem;margin-bottom:1rem}
.pl-n{font-size:.8rem;letter-spacing:.2em;text-transform:uppercase;color:var(--rust)}
.plate h2{font-family:var(--fell);font-weight:400;font-size:3rem;line-height:1;margin:.15rem 0 .3rem}
.pl-c{font-size:.88rem;color:var(--ink-2)}
.mini{width:4.6rem;flex:none;height:auto}
.mini use{fill:none;stroke:#8d8369;stroke-width:5}
.mini use.on{fill:var(--rust);stroke:var(--rust)}
.lead{font-size:1.16rem;line-height:1.48;text-wrap:pretty;max-width:38em}
.plate h3{font-family:var(--fell);font-weight:400;font-style:italic;font-size:1.45rem;margin:1.7rem 0 .55rem;display:flex;align-items:center;gap:.8rem}
.plate h3::after{content:"";flex:1;height:1px;background:var(--rule)}
.plate>p{max-width:38em;margin-bottom:.8rem}
.facts .fr{display:grid;grid-template-columns:8.4rem 1fr;gap:.2rem 1rem;padding:.5rem 0;border-bottom:1px solid var(--paper-2)}
.facts dt{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2);padding-top:.22rem}
.facts dd{margin:0}
.facts .v{font-weight:600}.facts .v.long{font-weight:400}
.facts .n{color:var(--ink-2);font-size:.94rem}
.facts .n::before{content:" "}
.gap,.gapline{background:repeating-linear-gradient(45deg,transparent 0 4px,rgba(106,98,82,.16) 4px 5.5px)}
.gap{padding:0 .3rem;font-weight:600}
.gapline{padding:.6rem .8rem;border:1px dashed var(--ink-2);font-size:.96rem}
.specs{display:grid;gap:0 1.6rem;grid-template-columns:1fr}
@container (min-width:40rem){.specs{grid-template-columns:1fr 1fr}}
.sp{padding:.9rem 0;border-top:1px solid var(--rule)}
.sp-h{display:flex;align-items:center;gap:.5rem;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.fig{font-family:var(--fell);font-style:italic;text-transform:none;letter-spacing:0;font-size:1rem;color:var(--rust)}
.gl{width:1.15rem;height:1.15rem;margin-left:auto;color:var(--ink-2)}
.kind{order:3}
.sp h4{font-family:var(--fell);font-weight:400;font-size:1.32rem;line-height:1.15;margin:.2rem 0 .45rem}
.sp p{font-size:.98rem}
.asof{font-size:.84rem;color:var(--ink-2)}
.ph{margin:.1rem 0 .55rem}
.ph img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border:1px solid var(--ink);padding:3px;background:#fbf8ee}
.ph figcaption{font-size:.84rem;color:var(--ink-2);margin-top:.3rem;line-height:1.4}
.cr{display:block;font-size:.8rem}
.rules li{padding:.5rem 0 .5rem 1.1rem;border-bottom:1px solid var(--paper-2);position:relative;font-size:.98rem;max-width:40em}
.rules li::before{content:"";position:absolute;left:0;top:1.1rem;width:.5rem;height:1px;background:var(--ink)}
.dn{border:1.5px dashed var(--rust);padding:.8rem 1rem;margin:1.2rem 0 .4rem;max-width:38em;background:repeating-linear-gradient(-45deg,transparent 0 7px,rgba(143,63,27,.05) 7px 8px)}
.dn-h{font-family:var(--fell);font-style:italic;font-size:1.2rem;color:var(--rust)}
.dn p+p{font-size:.96rem;color:var(--ink-2)}
.dq{border-left:3px solid var(--ink);padding:.1rem 0 .1rem 1rem;margin:.9rem 0;max-width:36em}
.dq p{font-family:var(--fell);font-size:1.3rem;line-height:1.3}
.dq footer{font-size:.86rem;color:var(--ink-2);margin-top:.35rem}
.dq.small p{font-size:1.15rem}
.detail{margin:1.2rem 0 0}
.detail svg{display:block;width:100%;height:auto;border:1px solid var(--ink);background:var(--paper)}
.d-bg{fill:#ece6d3}.d-ctx use{fill:#ece6d3;stroke:#a89c80;stroke-width:.8;stroke-dasharray:3 2.5}
.d-town{fill:#f8f3e2;stroke:var(--ink);stroke-width:1.5}
.dpin circle{fill:var(--rust);stroke:var(--paper);stroke-width:1.5}
.dpin text{font:700 6.4px var(--text);fill:#fff}
.dl{font:italic 7.6px var(--fell);fill:var(--ink);paint-order:stroke;stroke:#f8f3e2;stroke-width:2.2px}
.dt{font:8px var(--fell);letter-spacing:.3em;fill:var(--ink-2)}
.detail figcaption{font-size:.86rem;color:var(--ink-2);margin-top:.4rem;line-height:1.45}
.four{border-collapse:collapse;width:100%;font-size:.96rem;margin:.3rem 0 .6rem}
.four th,.four td{text-align:left;padding:.45rem .6rem .45rem 0;border-bottom:1px solid var(--paper-2);vertical-align:top}
.four th{font-weight:400}.four td:nth-child(2){font-weight:600;white-space:nowrap}.four td:last-child{color:var(--ink-2);font-size:.9rem}
.ask{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;align-items:center;margin-top:1.4rem;padding-top:1rem;border-top:1px solid var(--ink)}
.top{font-size:.95rem}

/* ---------- buttons */
.btn{display:inline-flex;align-items:center;font:inherit;font-size:1rem;font-weight:600;color:var(--ink);background:none;border:1.5px solid var(--ink);border-radius:2px;padding:.5rem .95rem;min-height:2.75rem;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--ink);color:var(--paper)}
.btn.solid{background:var(--ink);color:var(--paper)}.btn.solid:hover{background:var(--rust);border-color:var(--rust)}

/* ---------- sheets */
.sheet{padding:0 1.5rem;margin:0 auto 1.75rem;max-width:1720px}
.sheet-in{background:var(--paper);color:var(--ink);padding:2.6rem clamp(1.4rem,4vw,3.4rem);box-shadow:inset 0 0 0 5px var(--paper),inset 0 0 0 6px var(--rule)}
.sheet h2,.write h2{font-family:var(--fell);font-weight:400;font-size:clamp(1.9rem,3.1vw,2.6rem);line-height:1.08;text-wrap:balance;max-width:22em;margin-bottom:1rem}
.two{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:2.5rem 3.5rem;align-items:start}
.prose p,.lede{max-width:36em;margin-bottom:.95rem}
.widefig svg{display:block;width:100%;height:auto;border:1px solid var(--ink)}
.widefig figcaption{font-size:.86rem;color:var(--ink-2);margin-top:.45rem}
.fig-wide .grp use{fill:#e7c79a;stroke:#7d6540;stroke-width:.7}
.fig-wide .dot{fill:var(--ink)}
.fig-wide text{font-family:var(--fell);fill:var(--ink);paint-order:stroke;stroke:var(--paper);stroke-width:3px}
.fig-wide .wl{font-style:italic;font-size:17px}.fig-wide .wc{font-style:italic;font-size:15px;fill:#6c634f}
.fig-wide .wg{font-size:26px;letter-spacing:.22em;stroke:#e7c79a}.fig-wide .wg2{font-style:italic;font-size:18px;stroke:#e7c79a}
.fig-wide .wsea{font-style:italic;font-size:18px;fill:#27576a;stroke:#cddbd9}
.notegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));gap:0 3rem;margin-top:1.4rem}
.note{border-top:1px solid var(--ink);padding:1.1rem 0 1.6rem}
.note h3{font-family:var(--fell);font-weight:400;font-size:1.5rem;line-height:1.15;margin-bottom:.6rem;text-wrap:balance}
.note p{margin-bottom:.8rem;max-width:36em}
.tw{overflow-x:auto;border:1px solid var(--ink);background:#f8f3e3}
.ix{border-collapse:collapse;width:100%;min-width:62rem;font-size:.95rem}
.ix caption{caption-side:bottom;text-align:left;padding:.6rem .8rem;font-size:.86rem;color:var(--ink-2)}
.ix th,.ix td{padding:.55rem .8rem;border-bottom:1px solid var(--rule);text-align:left;vertical-align:top}
.ix thead th{font-size:.8rem;font-weight:600;line-height:1.3;vertical-align:bottom;border-bottom:1.5px solid var(--ink);max-width:9rem}
.ix .nm{text-align:right}.ix tbody td{white-space:nowrap}
.ix thead th:nth-child(2),.ix thead th:nth-child(3),.ix thead th:nth-child(6),.ix thead th:nth-child(7),.ix thead th:nth-child(8),.ix thead th:nth-child(9){text-align:right}
.ix tbody th{font-family:var(--fell);font-size:1.15rem;font-weight:400;position:sticky;left:0;background:#f8f3e3;white-space:nowrap}
.ix tbody th a{display:inline-block;min-height:1.6rem}
.ix tbody tr.on th,.ix tbody tr.on td{background:#efdcbd}
.ix tbody tr:last-child th,.ix tbody tr:last-child td{border-bottom:0}

/* ---------- video and form */
.pair{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1.75rem;padding:0 1.5rem;margin:0 auto 1.75rem;max-width:1720px;align-items:start}
.video{display:flex;flex-direction:column}
.poster{position:relative;aspect-ratio:5/5.4;max-height:40rem;width:100%;background:#17211d;border:1px solid var(--cloth-line);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:1.6rem}
.poster svg{position:absolute;inset:0;width:100%;height:100%}
.po-t use{fill:#1f2d27;stroke:#6f8377;stroke-width:1}
.po-f{fill:none;stroke:var(--rust-l);stroke-width:2;stroke-dasharray:7 6}
.po-tag{position:relative;align-self:flex-start;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;border:1px solid var(--rust-l);color:var(--rust-l);padding:.25rem .6rem;margin-bottom:.7rem;background:#17211d}
.po-title{position:relative;font-family:var(--fell);font-size:clamp(1.7rem,2.6vw,2.4rem);line-height:1.08;max-width:12em;text-shadow:0 0 12px #17211d,0 0 4px #17211d}
.video figcaption{font-size:.92rem;color:var(--on-cloth-2);margin-top:.6rem;max-width:36em}
.write{background:var(--paper);color:var(--ink);padding:2.2rem clamp(1.4rem,3vw,2.6rem);box-shadow:inset 0 0 0 5px var(--paper),inset 0 0 0 6px var(--rule)}
.write h2{font-size:clamp(1.6rem,2.4vw,2.1rem)}
form{display:grid;gap:.35rem;max-width:34rem}
.mode{border:0;padding:0;margin:0 0 .8rem;display:grid;gap:.35rem}
.mode label{display:flex;gap:.6rem;align-items:center;min-height:2.75rem;padding:.3rem .8rem;border:1.5px solid var(--rule);border-radius:2px;cursor:pointer;font-weight:600}
.mode label:has(input:checked){border-color:var(--ink);background:#fbf8ee}
.mode input{accent-color:var(--rust);width:1.1rem;height:1.1rem;margin:0}
form label[for]{font-size:.95rem;font-weight:600;margin-top:.55rem}
.opt{font-weight:400;color:var(--ink-2);font-size:.86rem}
form input[type=text],form input[type=email],select,textarea{font:inherit;color:var(--ink);background:#fbf8ee;border:1.5px solid var(--ink-2);border-radius:2px;padding:.55rem .7rem;min-height:3rem;width:100%}
.f-ask,.f-alert{display:grid;gap:.35rem}
.next{font-size:.95rem;color:var(--ink-2);margin:.8rem 0}
.err{color:#8a1f10;font-size:.95rem;font-weight:600}
.done{max-width:34rem}
.done-h{font-family:var(--fell);font-size:1.5rem;margin-bottom:.4rem}
.proto{font-size:.86rem;color:var(--ink-2);margin-bottom:.8rem}
.done summary{cursor:pointer;font-weight:600;min-height:1.6rem}
.done pre{font:.8rem/1.5 ui-monospace,Menlo,Consolas,monospace;background:#fbf8ee;border:1px solid var(--rule);padding:.8rem;overflow:auto;white-space:pre-wrap;margin:.5rem 0 1rem}
.who{font-size:.92rem;color:var(--ink-2);margin-top:1.4rem;padding-top:1rem;border-top:1px solid var(--rule);max-width:36em}

/* ---------- limits and sources */
.limits li{padding:.55rem 0;border-bottom:1px solid var(--paper-2);max-width:36em}
.limits{margin-bottom:1.2rem;columns:2 24rem;column-gap:3rem}.limits li{break-inside:avoid}
.credits{columns:3 20rem;column-gap:2.6rem}.credits li{break-inside:avoid}
.sheet h3{font-family:var(--fell);font-weight:400;font-style:italic;font-size:1.35rem;margin:1.6rem 0 .5rem}
.credits li{font-size:.86rem;color:var(--ink-2);padding:.22rem 0;max-width:40em}
.srclist{counter-reset:s;columns:3 22rem;column-gap:2.6rem;font-size:.88rem;line-height:1.4}
.srclist li{break-inside:avoid;counter-increment:s;padding:.32rem 0 .32rem 2.4rem;position:relative;border-bottom:1px solid var(--paper-2);overflow-wrap:anywhere;scroll-margin-top:4rem}
.srclist li::before{content:counter(s);position:absolute;left:0;top:.32rem;width:1.8rem;text-align:right;color:var(--rust);font-weight:600}
.srclist li:target{background:#efdcbd}
.srclist a{color:var(--ink-2)}

/* ---------- footer */
.foot{border-top:1px solid var(--cloth-line);margin-top:2.5rem}
.foot-in{max-width:46rem;padding:2rem 1.5rem 1.5rem;font-size:.95rem;color:var(--on-cloth-2)}
.f-brand{font-family:var(--fell);font-size:1.4rem;color:var(--on-cloth);margin-bottom:.4rem}
address{font-style:normal;margin:.9rem 0;color:var(--on-cloth)}
address a{display:inline-block;min-height:1.5rem}
.eho{font-size:.86rem}
.protostrip{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:.6rem 1.5rem;background:#18221e;font-size:.86rem;color:var(--on-cloth-2)}
.protostrip button{font:inherit;color:inherit;background:none;border:1px solid var(--cloth-line);border-radius:2px;padding:.3rem .7rem;min-height:2rem;cursor:pointer}

/* ---------- tablet: map left, everything else right */
@media (max-width:1180px){
  .atlas{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto 1fr;grid-template-areas:"map head" "map key" "map plate"}
  .key{position:static}
  .map{height:calc(100vh - 8.2rem);max-width:46vw;height:auto;max-height:calc(100vh - 8.2rem)}
  .two,.pair{grid-template-columns:1fr}
  .widefig{max-width:34rem}
}
@media (max-width:960px) and (min-width:760px){
  :root{--fs-town:14.5px;--fs-val:14px;--fs-feat:12px}
  .map .lc,.map .cart-s{display:none}
  .map .lb{font-size:19px}.map .terminus text{font-size:14px}.map .stm{font-size:13px}.map .cart-t{font-size:17px}.map .sb-n{font-size:11px}.map .north text{font-size:13px}
  .maplegend{position:static;width:auto;display:block;line-height:1.3;padding:0 .2rem}
  .ml{border:0;box-shadow:none;padding:.45rem 0 .1rem;background:none}
  .ml ul{display:flex;flex-wrap:wrap;gap:.05rem .9rem}
}
/* ---------- phone */
@media (max-width:759px){
  html{font-size:103.125%}
  :root{--fs-town:15px;--fs-val:14.5px;--fs-feat:12px}
  .bar{padding:.4rem 1rem}.bar nav{display:none}
  .atlas{display:block;padding:.9rem 1rem 2rem}
  h1{font-size:1.62rem}.deck{font-size:.97rem;margin:.5rem 0 .9rem}
  .mapfig{position:static;margin:0 -6px 1rem}
  .map{width:100%;max-width:none;height:auto;max-height:none;min-height:0}
  .map .lc,.map .cart-s{display:none}
  .map .lb{font-size:19px}.map .terminus text{font-size:14px}.map .stm{font-size:13.5px}.map .shield text{font-size:9px}
  .map .cart-t{font-size:17px}.map .sb-n{font-size:11px}.map .north text{font-size:13px}.map .lr{font-size:13px}
  .map .cor-l{font-size:14px}.map .cor-s{font-size:12px}
  .key{position:static;margin-bottom:1.2rem}
  .k-base{display:grid;grid-template-columns:1fr 1fr;gap:0 1.2rem}.k-base legend{grid-column:1/-1}
  .key label{min-height:2.75rem}
  .kbtn{min-height:2.75rem;flex:1}
  .tabs ol{grid-template-columns:repeat(3,1fr)}.tabs a{min-height:2.75rem;align-items:center;padding:.3rem .45rem;gap:.3rem;font-size:.9rem}.tl-n{min-width:1.3rem}
  .plate{padding:1.3rem 1.1rem 1.2rem;margin-inline:-.4rem}
  .plate h2{font-size:2.5rem}
  .facts .fr{grid-template-columns:1fr;gap:0}
  .sheet,.pair{padding:0 .6rem}
  .sheet-in{padding:1.8rem 1.1rem}
  .poster{aspect-ratio:4/5}
  .fig-wide .wl{font-size:27px}.fig-wide .wc{font-size:25px}.fig-wide .wg{font-size:34px}.fig-wide .wg2{font-size:27px}.fig-wide .wsea{font-size:27px}
  .protostrip{flex-direction:column;align-items:flex-start;padding:.7rem 1rem}
  .ro-go{margin-left:0}
}
.fig-wide .halo use{fill:none;stroke:var(--rust);stroke-width:7;stroke-linejoin:round}
.fig-wide .ctx use{fill:#ece6d3;stroke:#a89c80;stroke-width:.7;stroke-dasharray:3 2.5}
.fig-wide .rail-l{stroke-width:1.8}

/* compact legend inside the map frame (wide screens); the full legend with town names sits in the key */
.frame{position:relative}
.maplegend{position:absolute;left:calc(8px + .55rem);top:calc(8px + .55rem);width:11.6rem;display:flex;flex-direction:column;gap:.4rem;pointer-events:none}
.ml{display:none;background:var(--paper);color:var(--ink);border:1px solid var(--ink);padding:.5rem .6rem .45rem;font-size:.8rem;line-height:1.3;box-shadow:2px 2px 0 rgba(39,34,26,.18)}
.ml-t{font-family:var(--fell);font-size:1.05rem;margin-bottom:.3rem}
.ml li{display:flex;align-items:center;gap:.45rem;padding:.12rem 0}
.ml .sw{width:1.25rem;height:.8rem;border-color:var(--ink);margin:0;flex:none}
.ml-f{font-size:.8rem;color:var(--ink-2);margin-top:.3rem;line-height:1.3}
.atlas[data-tint="tax"] .ml[data-ml="tax"],.atlas[data-tint="sewer"] .ml[data-ml="sewer"],.atlas[data-tint="rail"] .ml[data-ml="rail"],.atlas[data-tint="price"] .ml[data-ml="price"],.atlas[data-corridor="on"] .ml[data-ml="corridor"]{display:block}
.atlas[data-zoom="sharon"] .ml{display:none!important}
@media (max-width:759px){
  .maplegend{position:static;width:auto;display:block;line-height:1.3;padding:0 .2rem}
  .ml{border:0;box-shadow:none;padding:.45rem 0 .1rem;background:none}
  .ml ul{display:flex;flex-wrap:wrap;gap:.05rem .9rem}
  .ml-t{font-size:1.1rem}
  .k-base .sym{display:none}
}
.detail,.widefig,.poster,.mini{--z:1}

.sheet h3.first{margin-top:2.2rem}

/* ---------- design fixes 2026-11-11 (critic pass) ---------- */
/* map: a heavier paper halo under every town name so rail lines break cleanly around the lettering */
.map .lt{stroke-width:calc(5.5px/var(--z,1))}
.map .lb{stroke-width:calc(5px/var(--z,1))}
.map .lw,.map .lo{stroke-width:calc(3.4px/var(--z,1))}
.map .terminus text{stroke-width:calc(4px/var(--z,1))}
.map .stm{stroke-width:calc(3.6px/var(--z,1))}
/* question headings: the roman cut reads better than the thin italic at this size */
.plate h3,.sheet h3{font-style:normal;font-size:1.5rem;line-height:1.25}
.mapfig figcaption,.fig figcaption,.photo figcaption{font-size:max(.86rem,14px)}
/* phones: minor labels off, town names at 11px or more on screen (the plate is drawn about 0.65x) */
@media (max-width:759px){
  :root{--fs-town:18.5px;--fs-val:17px;--fs-feat:14px}
  .map .lt{letter-spacing:.04em}
  .map .lo,.map .lw,.map .lr,.map .cor-l,.map .cor-s,.map .shield{display:none}
  .map .lb{font-size:22px;letter-spacing:.24em}
  .map .terminus text{font-size:18px}
  .map .stm{font-size:17px}
  .map .cart-t{font-size:20px}
  .map .sb-n{font-size:17px}
  .map .north text{font-size:17px}
  .fig-wide .wsea{font-size:24px}
}
/* Dianne's note placeholder: one slim margin line, not a dashed box */
.dn{border:0;border-left:3px solid var(--rust);padding:.1rem 0 .1rem .8rem;margin:1rem 0 .4rem;max-width:38em;background:none;font-size:.95rem;line-height:1.45}
.dn-h{display:inline;font-family:var(--text);font-style:normal;font-weight:700;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;margin:0 .4rem 0 0}
.dn p+p{display:inline;font-size:.95rem}
