:root{--ink:#29251e;--muted:#584f42;--paper:#f9f5eb;--white:#fffcf5;--wash:#eee3ce;--line:#d1c4ad;--rust:#9e301a;--rust-dark:#752411;--green:#205c47;--sage:#e0ebe0;--serif:Georgia,"Times New Roman",serif;--sans:system-ui,-apple-system,"Segoe UI",sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:1rem}
body{margin:0;color:var(--ink);background:var(--paper);font:1rem/1.64 var(--sans)}
h1,h2,h3,p,figure,dl,dd,ul,ol{margin:0}
h1,h2,h3{line-height:1.09;color:var(--ink);font-family:var(--serif);letter-spacing:-.038em}
h2{font-size:clamp(1.55rem,3.2vw,2.54rem)}
h3{font-size:clamp(1.19rem,2vw,1.51rem)}
a{color:var(--rust-dark);text-underline-offset:.2em}
a:hover{color:#541a0d}
:where(a,summary,[tabindex]):focus-visible{outline:3px solid #1b765a;outline-offset:4px}
.frame{width:min(calc(100% - clamp(1.55rem,7vw,8rem)),79rem);margin-inline:auto}
.site-head{border-block-start:4px solid var(--rust);border-block-end:1px solid var(--line);background:#fff9ec}
.head-inner{min-height:4.7rem;display:flex;align-items:center;justify-content:space-between;gap:.36rem 1.13rem}
.wordmark{display:inline-flex;align-items:center;gap:.52rem;color:var(--ink);font:700 1.44rem/.98 var(--serif);text-decoration:none;white-space:nowrap;letter-spacing:-.055em}
.wordmark:hover{color:var(--rust)}
.wordmark small{display:block;letter-spacing:0;font:680 .78rem/1.22 var(--sans);color:var(--muted);margin-top:.22rem}
.mast-icon{width:2.08rem;height:2.08rem;flex:none}
.head-inner nav{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem 1.34rem}
.head-inner nav a{font-weight:690;font-size:.94rem;text-decoration:none}
.head-inner nav a:hover{text-decoration:underline}
.head-action{border:1px solid #a65d3f;color:var(--rust-dark);text-decoration:none;white-space:nowrap;font-size:.91rem;font-weight:750;padding:.39rem .68rem}
.head-action:hover{background:#f0ddd0}
.lead-sheet{background:#f1e7d3;border-bottom:1px solid #beac8c}
.lead-grid{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,.9fr);align-items:center;gap:clamp(1rem,3.55vw,3.25rem);padding:clamp(1.42rem,3.7vw,3.4rem) 0}
.lead-copy h1{font-size:clamp(2.54rem,5.37vw,5.15rem);max-width:17ch;line-height:1.01;letter-spacing:-.064em;overflow-wrap:anywhere}
.intro{max-width:64ch;color:var(--muted);font-size:clamp(1.03rem,1.54vw,1.22rem);margin-top:.72rem}
.lead-actions{display:flex;flex-wrap:wrap;gap:.48rem .61rem;margin-top:1.01rem}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:2.76rem;padding:.63rem .83rem;line-height:1.22;font-size:.93rem;font-weight:750;text-decoration:none}
.button.filled{background:var(--rust);color:#fff9ed;border:1px solid var(--rust)}
.button.filled:hover{background:var(--rust-dark);color:#fff9ed}
.button.unfilled{border:1px solid #976647;color:var(--rust-dark)}
.button.unfilled:hover{background:#ead7bc}
.byline{display:flex;align-items:baseline;flex-wrap:wrap;gap:.16rem .75rem;margin-top:.79rem;color:var(--muted);font-size:.88rem}
.byline a{font-weight:700}
.ledger-cover{max-width:37rem}
.ledger-cover svg{width:100%;height:auto;display:block}
.ledger-cover figcaption{font-size:.87rem;color:var(--muted);line-height:1.32;padding-left:.61rem}
.section-head{display:flex;gap:.38rem 1.05rem;justify-content:space-between;align-items:end;margin-bottom:.62rem}
.section-head p{color:var(--muted);max-width:40ch;font-size:.96rem}
.route-board{padding:1.2rem 0}
.route-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.53rem}
.route-card{display:block;padding:.70rem .73rem;text-decoration:none;background:var(--white);border:1px solid #cbbba1;border-top:4px solid #aa502e;color:var(--ink)}
.route-card:nth-child(2){border-top-color:var(--green)}
.route-card:nth-child(3){border-top-color:#ad6c17}
.route-card:nth-child(4){border-top-color:#68504b}
.route-card:hover{background:#f8e8d7;color:var(--ink)}
.route-card span{display:block;font:700 1.25rem/1.1 var(--serif);color:var(--rust-dark)}
.route-card p{line-height:1.45;font-size:.93rem;margin-top:.36rem}
.worksheet{background:#292821;color:#f9f2e3;padding:1.32rem 0 1.43rem}
.worksheet-layout{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.28fr);gap:.9rem 2rem}
.worksheet h2{color:#fff3d9;margin:.22rem 0 .46rem}
.worksheet-intro>p:last-child{color:#e8dbbf;max-width:43ch}
.worksheet-label{font-weight:760;font-size:.85rem;letter-spacing:.045em;color:#f4c98a}
.worksheet-rows{border-top:1px solid #98866a}
.worksheet details{border-bottom:1px solid #98866a}
.worksheet summary{padding:.60rem .15rem;cursor:pointer;color:#fff5df;font-weight:600}
.worksheet summary strong{margin-right:.36rem;color:#f2c783}
.worksheet :focus-visible,.endpaper :focus-visible{outline-color:#f8d78a}
.worksheet-body{margin:.03rem 0 .62rem;border-left:3px solid #eab96d;background:#3a382e;padding:.48rem .68rem;color:#fff5df}
.worksheet-body p+p{margin-top:.35rem}
.worksheet-body a{display:inline-block;margin-top:.31rem;color:#ffe0a2;font-weight:720}
.article-lead{border-bottom:1px solid #c4b79c;background:#f4ead7;padding:1.13rem 0 1.24rem}
.crumb{display:flex;flex-wrap:wrap;gap:.47rem;margin-bottom:.56rem;color:var(--muted);font-size:.9rem}
.article-lead h1{font-size:clamp(2.26rem,4.54vw,4.48rem);line-height:1.02;max-width:25ch;overflow-wrap:anywhere}
.three-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.48rem;margin-top:.85rem}
.three-notes>div{padding:.33rem .6rem;background:#fff8e8;border-left:3px solid var(--green)}
.three-notes dt{font-size:.91rem;font-weight:780;color:var(--green)}
.three-notes dd{font-size:.94rem;color:var(--muted);line-height:1.4}
.article-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(10.5rem,15rem);gap:clamp(1rem,3vw,2.63rem);align-items:start;padding:1.14rem 0 1.27rem}
.section-index{grid-area:1/2;position:sticky;top:.6rem;overflow:auto;max-height:calc(100vh - 1.2rem);background:#ede3cf;border-top:3px solid var(--rust);padding:.52rem .58rem}
.section-index p{font:700 1.15rem/1.17 var(--serif);margin-bottom:.27rem}
.section-index ol{list-style:none;padding:0}
.section-index a{display:block;line-height:1.33;font-size:.91rem;color:#433422;text-decoration:none;padding:.21rem 0 .23rem;border-bottom:1px solid #d1c4ac}
.section-index a:hover{text-decoration:underline}
.story{grid-area:1/1;min-width:0}
.abstract{background:var(--sage);border-left:4px solid var(--green);padding:.58rem .71rem;margin-bottom:.91rem}
.abstract strong{color:#214933;font-size:.92rem}
.abstract p{margin-top:.15rem}
.compare-section{margin-bottom:1.27rem}
.scroll-note{display:none;color:var(--muted);font-size:.86rem;margin:.43rem 0 .24rem}
.sheet-scroll{overflow:auto;max-width:100%;background:#fffaf1;border:1px solid #c9bca1}
.sheet-scroll table{width:100%;border-collapse:collapse;min-width:31rem}
.sheet-scroll .comparison-grid{min-width:52rem}
.sheet-scroll caption{text-align:left;font-size:.9rem;font-weight:720;color:#504530;padding:.43rem .62rem}
.sheet-scroll th,.sheet-scroll td{text-align:left;vertical-align:top;border-bottom:1px solid #d9cdb4;line-height:1.42;padding:.55rem .62rem;font-size:.94rem}
.sheet-scroll thead th{background:#2d2b24;color:#fff3d8}
.sheet-scroll thead th:first-child{width:19%;min-width:8.25rem}
.sheet-scroll tbody tr:nth-child(even){background:#f1e8d5}
.sheet-scroll tbody tr:last-child>*{border-bottom:none}
.comparison-grid small{display:block;font-size:.85rem;font-weight:550;color:var(--muted);margin-top:.23rem}
.compare-method{margin:.37rem 0 0;font-size:.91rem}
.firm-register>ol{list-style:none;padding:0;margin:.52rem 0 1.38rem}
.firm-entry{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,2.2fr);gap:.52rem .93rem;padding:.83rem 0;border-top:1px solid var(--line)}
.firm-entry:target{background:#f3e2ce}
.firm-entry header{border-left:3px solid #b4774a;padding-left:.52rem}
.firm-entry header h3{overflow-wrap:anywhere}
.firm-entry header a{font-size:.89rem}
.discipline{font-weight:690;font-size:.87rem;color:#62503d;margin:.25rem 0 .24rem}
.firm-description p+p{margin-top:.32rem}
.role-fit{font-weight:720}
.firm-evidence,.case-source{color:var(--muted);font-size:.92rem}
.firm-outcome{background:#f0e3ca;border-left:3px solid #a65b30;padding:.35rem .54rem}
.prose :where(h2){margin:1.47rem 0 .45rem}
.prose :where(h3){margin:1.03rem 0 .34rem}
.prose :where(p,ol,ul,blockquote,.faq,.sources,.editor-note){max-width:77ch}
.prose p+p,.prose ul,.prose ol{margin-top:.48rem}
.prose ul,.prose ol{padding-left:1.25rem}
.prose li+li{margin-top:.21rem}
.prose p,.prose li,.prose a,.prose td{overflow-wrap:break-word}
.prose blockquote,.prose .worked-example{background:#eee4cd;border-left:4px solid #a16339;margin:.69rem 0;padding:.51rem .68rem}
.prose .sheet-scroll{margin:.43rem 0 .59rem}
.topic-figure{margin:1.19rem 0 0;width:min(100%,37rem)}
.topic-figure img{display:block;width:100%;height:auto;border:1px solid var(--line)}
.faq details{border-top:1px solid #d3c3a5;padding:.52rem 0}
.faq summary{cursor:pointer;font-weight:720;color:var(--rust-dark)}
.faq details p{margin-top:.37rem}
.sources li a{overflow-wrap:anywhere}
.editor-note{border-top:1px solid var(--line);margin-top:1.14rem}
.resource-band{border-top:1px solid var(--line);background:#f0e4cc;padding:1.08rem 0 1.32rem}
.resource-list{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 .8rem;margin:.57rem 0 0;padding:0}
.resource-list li{border-top:1px solid #bead8d}
.resource-list a{display:block;padding:.5rem .32rem .62rem 0;text-decoration:none}
.resource-list a:hover strong{text-decoration:underline}
.resource-list strong{font:700 1.18rem/1.2 var(--serif)}
.resource-list span{display:block;font-size:.91rem;line-height:1.38;color:var(--muted);margin-top:.19rem}
.endpaper{background:#292821;color:#fff5df;padding:1.16rem 0 1.45rem}
.endpaper-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.72rem 1rem;border-bottom:1px solid #a08d6b;padding-bottom:.72rem}
.endpaper-banner>p{font:700 clamp(1.3rem,2.9vw,2.43rem)/1.12 var(--serif);letter-spacing:-.035em;color:#ffdf9e}
.endpaper .wordmark,.endpaper .wordmark small{color:#fff5df}
.endpaper-index{display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.32fr) minmax(0,.74fr);gap:.63rem 1.2rem;padding-top:.72rem}
.endpaper-index h2{font:780 .94rem/1.16 var(--sans);letter-spacing:0;color:#fbd196;margin-bottom:.31rem}
.endpaper-index ul{list-style:none;padding:0}
.endpaper-index li{font-size:.91rem;margin:.13rem 0;line-height:1.32}
.endpaper-index a{color:#fff5df}
.site-domain{font-size:.88rem;margin-top:.47rem;color:#eee0bb}
.page-404{padding:2rem 0;min-height:48vh}
.page-404 p{margin:.4rem 0 .74rem}
@media(max-width:1240px){.scroll-wide{display:block}}
@media(max-width:910px){.article-grid{grid-template-columns:minmax(0,1fr) minmax(9.5rem,12rem)}.scroll-note{display:block}.route-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:710px){
 .lead-grid,.worksheet-layout,.article-grid{grid-template-columns:minmax(0,1fr)}
 .ledger-cover{max-width:29rem}
 .section-index{grid-area:1/1;position:static;max-height:none;padding:.35rem .52rem}
 .section-index ol{display:flex;flex-wrap:wrap;gap:.06rem .59rem}
 .section-index a{border-bottom:0;text-decoration:underline}
 .story{grid-area:2/1}
 .section-head{display:block}.section-head p{margin-top:.26rem}
 .resource-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:465px){
 .frame{width:calc(100% - 1.48rem)}
 .head-inner{flex-wrap:wrap;min-height:0;padding:.51rem 0}
 .head-inner nav{order:3;width:100%;gap:.2rem .58rem}
 .head-action{padding:.29rem .41rem;font-size:.83rem}
 .lead-copy h1{font-size:clamp(2.18rem,9.7vw,3.06rem)}
 .article-lead h1{font-size:clamp(2.03rem,9.3vw,2.75rem)}
 .three-notes{gap:.3rem}.three-notes>div{padding:.26rem .32rem}.three-notes dd{font-size:.88rem}
 .firm-entry,.resource-list{grid-template-columns:1fr}
 .endpaper-index{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media print{
 .site-head,.endpaper,.lead-actions,.section-index,.scroll-note,.resource-band,.route-board,.worksheet{display:none}
 .frame{width:100%}.article-grid,.lead-grid{display:block}.ledger-cover,.topic-figure{display:none}
 .sheet-scroll{overflow:visible}.sheet-scroll table,.sheet-scroll .comparison-grid{min-width:0}
 .firm-entry,.abstract{break-inside:avoid}
}
