:root{--bg:#F5F0E6;--ink:#1A1A1A;--teal:#0B3C49;--teal-light:#1A5A6A;--muted:#4A4A4A;--border:#D8D0C0;--white:#fff;--serif:Georgia,'Times New Roman',serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--measure:68ch;--maxw:1200px;--pad:clamp(1rem,4vw,3rem)}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:19px;line-height:1.6;min-width:0;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--teal);text-decoration:underline;text-underline-offset:2px;overflow-wrap:break-word;word-break:break-word}
a:hover{color:var(--teal-light)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
h1,h2,h3,h4{font-family:var(--serif);line-height:1.2;font-weight:700;color:var(--ink)}
h1{font-size:clamp(28px,4vw,44px);margin-bottom:1rem}
h2{font-size:clamp(24px,3vw,36px);margin-bottom:.75rem}
h3{font-size:clamp(20px,2.5vw,28px);margin-bottom:.5rem}
p{max-width:var(--measure);margin-bottom:1rem}
ul,ol{margin-left:1.5rem;margin-bottom:1rem}
li{margin-bottom:.5rem}
.site-header{background:var(--bg);border-bottom:1px solid var(--border);padding:1rem 0}
.header-inner{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}
.brand{font-family:var(--serif);font-size:1.4rem;font-weight:700;color:var(--ink);text-decoration:none}
.brand:hover{color:var(--teal)}
.site-nav ul{list-style:none;display:flex;gap:1.5rem;margin:0;padding:0;flex-wrap:wrap}
.site-nav a{color:var(--teal);text-decoration:none;font-weight:600;font-size:.95rem;letter-spacing:.02em}
.site-nav a:hover{color:var(--teal-light);text-decoration:underline}
.site-footer{background:var(--ink);color:var(--bg);padding:2rem 0;margin-top:3rem}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad);display:flex;flex-wrap:wrap;gap:2rem;justify-content:space-between;align-items:flex-start}
.footer-nav ul{list-style:none;display:flex;gap:1.5rem;margin:0;padding:0;flex-wrap:wrap}
.footer-nav a{color:var(--bg);text-decoration:underline;text-underline-offset:2px}
.footer-nav a:hover{color:var(--teal-light)}
.footer-note{font-size:.9rem;color:var(--bg);opacity:.8;max-width:40ch}
.outermain{min-height:60vh}
.page{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad) 3rem}
.page.home,.page.tool.tool-page{min-width:0}
.home-inner{display:grid;gap:3rem}
.home-intro,.home-guides,.home-worksheet,.home-sources{padding-top:2rem;border-top:1px solid var(--border)}
.section-kicker{font-family:var(--sans);font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:.5rem}
.guide-list{list-style:none;margin:0;padding:0;counter-reset:guide}
.guide-list li{counter-increment:guide;margin-bottom:1.5rem;padding-left:2.5rem;position:relative;max-width:var(--measure)}
.guide-list li::before{content:counter(guide,decimal-leading-zero);position:absolute;left:0;top:.2rem;font-family:var(--serif);font-size:1.2rem;color:var(--teal);font-weight:700}
.guide-list a{font-weight:600}
.home-worksheet p,.home-sources p{max-width:var(--measure)}
.tool-page{max-width:800px;margin:0 auto}
.tool-page h1{margin-bottom:.5rem}
.tool-page .intro{font-size:1.1rem;color:var(--muted);max-width:var(--measure)}
#worksheet-form{background:var(--white);border:1px solid var(--border);padding:2rem;margin-top:2rem}
fieldset{border:0;padding:0;margin:0}
legend{font-family:var(--serif);font-size:1.2rem;font-weight:700;margin-bottom:1rem}
.field{margin-bottom:1.5rem}
.field label{display:block;font-weight:600;margin-bottom:.25rem;font-size:.95rem}
.field input,.field select,.field textarea{width:100%;padding:.75rem;border:1px solid var(--border);background:var(--bg);font-family:var(--sans);font-size:1rem;color:var(--ink);border-radius:0}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--teal);outline:3px solid rgba(11,60,73,.2)}
.field textarea{resize:vertical;min-height:80px}
.field .help{font-size:.85rem;color:var(--muted);margin-top:.25rem;line-height:1.4}
.actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem}
.actions button{background:var(--teal);color:var(--white);border:0;padding:.75rem 1.5rem;font-family:var(--sans);font-size:1rem;font-weight:600;cursor:pointer;transition:background .2s}
.actions button:hover{background:var(--teal-light)}
.actions button:disabled{background:var(--border);color:var(--muted);cursor:not-allowed}
#results{margin-top:2rem;padding:1rem;border-left:4px solid var(--teal);background:var(--white)}
#status{font-size:.9rem;color:var(--muted);margin-top:1rem}
noscript p{background:var(--white);border:1px solid var(--border);padding:1rem;margin-top:1rem}
.article{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad) 3rem}
.article-header{margin-bottom:2rem}
.article-header .section-kicker{margin-bottom:.5rem}
.article-header h1{max-width:var(--measure)}
.article-body{max-width:var(--measure);margin:0 auto}
.article-body p{line-height:1.6}
.article-figure{margin:2rem 0}
.article-figure img{width:100%;height:auto}
figcaption.media-caption{font-size:.85rem;color:var(--muted);margin-top:.5rem;line-height:1.4;max-width:var(--measure)}
aside.professional-review{background:var(--white);border:1px solid var(--border);padding:1.5rem;margin-top:2rem;max-width:var(--measure)}
aside.professional-review h3{font-size:1.1rem;margin-bottom:.5rem}
aside.professional-review p{font-size:.9rem;color:var(--muted)}
.program-list{list-style:none;margin:0;padding:0}
.program-row{border-bottom:1px solid var(--border);padding:1.5rem 0}
.program-title{font-family:var(--serif);font-size:1.3rem;font-weight:700;margin-bottom:.25rem}
.program-meta{font-size:.85rem;color:var(--muted);margin-bottom:.5rem}
.program-summary{max-width:var(--measure)}
@media (max-width:600px){
.header-inner{flex-direction:column;align-items:flex-start}
.site-nav ul{flex-direction:column;gap:.75rem}
.footer-inner{flex-direction:column}
.footer-nav ul{flex-direction:column;gap:.75rem}
.actions{flex-direction:column}
.actions button{width:100%}
}
@media (prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
*,*::before,*::after{transition:none!important;animation:none!important}
}

/* Keep the publication masthead legible on its actual dark header. */
.site-header .brand,.site-header .brand:visited{color:#0b3c49}
.site-header .brand:hover,.site-header .brand:focus-visible{color:#092e38}
.site-footer a,.site-footer a:visited{color:#faf7ef}
.site-footer a:hover,.site-footer a:focus-visible{color:#fff}
