:root{--ink:#172f49;--muted:#52657b;--blue:#185fad;--blue-hover:#104b8d;--paper:#fff;--line:#d7e2ee;--ice:#eef5fc;--surface:#f5f7fa;--control-border:#758ba5;--focus:#236ad0;--danger:#b4233b}
*{box-sizing:border-box}
body{margin:0;background:var(--surface);color:var(--ink);font:16px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
a{color:inherit;text-underline-offset:4px}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{touch-action:manipulation}
button{cursor:pointer}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
[hidden]{display:none!important}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;padding:8px;background:#fff;z-index:20}
header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner,main,.footer-inner{max-width:1180px;margin:auto;padding-left:40px;padding-right:40px}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:100px}
.brand{font-size:14px;line-height:1.35;text-decoration:none;letter-spacing:-.3px;flex-shrink:0}
.brand strong{font-size:20px;font-weight:750}
nav{display:flex;gap:28px;flex-wrap:wrap}
nav a{text-decoration:none;font-size:14px;padding:12px 0;border-bottom:2px solid transparent;color:var(--muted)}
nav a:hover,nav a.active{border-color:var(--blue);color:var(--blue)}
nav a.active{font-weight:650}
main{padding-top:56px;padding-bottom:72px;min-height:70vh}
.view{min-width:0}
h1,h2,h3{font-weight:700;line-height:1.18;letter-spacing:-.035em}
h1{font-size:clamp(34px,4.4vw,54px);margin:14px 0 20px}
h2{font-size:28px;margin:24px 0 16px}
h3{font-size:19px}
p{margin:0 0 20px}
.lead{font-size:19px;color:var(--muted);line-height:1.6}
.short{max-width:760px}
.eyebrow,.small-label{font-size:11px;letter-spacing:.12em;font-weight:700;color:var(--blue)}
.eyebrow{margin:0}
.hero{padding:4px 0 44px;max-width:840px}
.hero h1{font-size:clamp(39px,5.8vw,68px);line-height:1.07;margin:18px 0 22px;letter-spacing:-.055em}
.hero .lead{font-size:20px;margin-bottom:22px}
.status-label{display:inline-block;color:var(--muted);font-size:12px;line-height:1.5;margin:0}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin:0 0 20px}
.section-heading h2{font-size:26px;margin:0}
.home-grid,.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.home-card,.resource{background:#fff;border:1px solid var(--line);border-radius:5px;padding:28px;display:flex;flex-direction:column;align-items:start;min-width:0}
.home-card h3,.resource h2{font-size:23px;line-height:1.25;margin:16px 0 10px}
.home-card p,.resource p{font-size:15px;color:var(--muted);line-height:1.6;margin:0 0 22px}
.home-card .textlink,.resource>.textlink{margin-top:auto}
.home-card:hover{border-color:#9bb7d4}
.textlink{font-size:14px;color:var(--blue);font-weight:650;text-decoration:none}
.textlink:hover{text-decoration:underline}
.section-note{margin:20px 0 0}
.fine{font-size:12px;color:var(--muted);line-height:1.6}
footer{border-top:1px solid var(--line);background:#fff}
.footer-inner{display:flex;justify-content:space-between;gap:30px;padding-top:28px;padding-bottom:28px;font-size:12px;color:var(--muted)}
footer strong{font-weight:650;color:var(--ink)}
footer p{font-size:11px;margin:6px 0 0}
.footer-links{text-align:right}
.footer-links a{font-size:12px;color:var(--blue)}
.filters{display:flex;gap:20px;align-items:end;margin:28px 0 6px}
.search{flex:1}
.filters label{margin:0}
.filters select{min-width:200px}
#result-count{margin:12px 0 18px}
.resource-details{margin-top:20px;width:100%;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}
.resource-details summary{cursor:pointer;width:fit-content}
.resource .meta{font-size:12px;margin:10px 0 0}
label{display:block;font-size:14px;font-weight:600;margin:20px 0}
input,textarea,select{display:block;width:100%;border:1px solid var(--control-border);background:#fff;border-radius:4px;padding:11px;margin-top:7px;color:var(--ink);font-size:15px}
textarea{min-height:100px;resize:vertical}
input::placeholder,textarea::placeholder{color:#617388;font-weight:400}
.notice{border-left:3px solid var(--blue);padding:16px 20px;background:var(--ice);font-size:13px;margin:26px 0;max-width:100%}
.buttons{display:flex;gap:12px;margin:24px 0}
.button{background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:4px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;font-size:14px;font-weight:600;min-height:44px}
.button:hover{background:var(--blue-hover)}
.button.secondary{background:#fff;color:var(--ink);border-color:var(--control-border)}
.button.secondary:hover{background:var(--ice)}
.button.small{padding:10px 13px;font-size:12px}
.planner-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;margin-top:30px}
.steps{align-self:start}
.steps button{display:flex;gap:12px;width:100%;border:0;border-radius:4px;background:transparent;color:var(--muted);text-align:left;padding:14px 12px;font-size:13px;min-height:44px}
.steps button.current{background:#e1ebf8;color:var(--blue);font-weight:700}
.steps .linkbutton{padding:9px 0;text-decoration:underline;text-underline-offset:3px;font-size:12px}
.steps hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.workspace{background:#fff;border:1px solid var(--line);border-radius:5px;padding:30px;min-width:0}
.workspace h2{font-size:26px;margin-top:12px}
.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}
.sheet-heading h2{font-size:24px;margin:0}
.draft-stamp{font-size:10px;color:var(--muted);white-space:nowrap;font-weight:600;letter-spacing:.04em}
.req{color:var(--blue);font-size:11px;margin-left:8px;font-weight:500}
.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.stepnav{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:22px;margin-top:25px}
.error{color:var(--danger);font-size:13px}
.error:empty{display:none}
.action{background:var(--surface);padding:16px;margin:14px 0;border:1px solid var(--line);border-radius:4px}
.action label{margin:6px 0}
.action button{font-size:12px;border:0;background:transparent;text-decoration:underline;color:var(--danger);margin-top:8px;min-height:36px;padding:0}
.wrap{flex-wrap:wrap}
#report{border-top:1px solid var(--line);margin-top:25px;padding:24px 0}
#report h2{font-size:24px}
#report h3{font-size:14px;color:var(--blue);margin:24px 0 6px;letter-spacing:0}
#report p{white-space:pre-wrap;font-size:14px;margin:0;overflow-wrap:anywhere}
#report .report-action{border-left:2px solid var(--line);padding-left:12px;margin:14px 0}
.ask-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:32px;margin-top:30px}
.boundary{align-self:start;font-size:14px;color:var(--muted);padding:8px 0}
.boundary h2{font-size:22px;color:var(--ink);margin-top:0}
.boundary ul{padding-left:20px}
.boundary li{margin:10px 0}
.about-copy{max-width:760px;color:var(--muted)}
.about-copy h2{font-size:25px;color:var(--ink);margin-top:36px}
#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:5px;font-size:13px;display:none;max-width:90vw;z-index:10}
#toast.show{display:block}
@media(max-width:900px){.header-inner{align-items:start;flex-direction:column;gap:15px;padding-top:22px;padding-bottom:12px}nav{gap:26px}.planner-layout{grid-template-columns:180px minmax(0,1fr);gap:24px}.workspace{padding:24px}.ask-layout{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:24px}.sheet-heading{align-items:start;flex-direction:column;gap:8px}.footer-inner{flex-direction:column;gap:18px}.footer-links{text-align:left}}
@media(max-width:700px){.header-inner,main,.footer-inner{padding-left:24px;padding-right:24px}main{padding-top:38px;padding-bottom:48px}.hero{padding-bottom:36px}.hero h1{font-size:50px}.hero .lead{font-size:18px}.home-card,.resource{padding:24px}.home-card h3,.resource h2{font-size:21px}.home-grid,.resource-grid,.ask-layout{grid-template-columns:1fr}.planner-layout{grid-template-columns:1fr;gap:20px}.steps{display:grid;grid-template-columns:1fr 1fr;gap:4px}.steps hr{display:none}.steps .fine{grid-column:1/-1;margin:12px 0 0}.steps button{font-size:12px}.steps .linkbutton{padding:8px 12px}.pair{grid-template-columns:1fr;gap:0}.boundary{padding:6px 0}.sheet-heading{flex-direction:row;align-items:center}.filters{align-items:stretch;flex-direction:column;gap:14px}.section-heading h2{font-size:24px}.section-heading .textlink{font-size:12px}}
@media(max-width:420px){.header-inner,main,.footer-inner{padding-left:20px;padding-right:20px}nav{gap:18px}nav a{font-size:12px}.hero h1{font-size:42px}.hero .lead{font-size:17px}.home-card,.resource,.workspace{padding:22px}.section-heading{gap:12px}.section-heading h2{font-size:22px}.section-heading .textlink{white-space:nowrap}.sheet-heading{align-items:start;flex-direction:column}.workspace h2{font-size:24px}.buttons{gap:8px}.notice{padding:14px 16px}.lead{font-size:17px}h1{font-size:34px;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:white;font-family:Arial,sans-serif}body>*{display:none!important}body>main{display:block!important;max-width:none;padding:0}main>.view{display:none!important}main>#planner{display:block!important}#planner>*{display:none!important}#planner>.planner-layout{display:block!important}.planner-layout>.steps{display:none!important}.planner-layout>.workspace{display:block!important;border:0;padding:0}.stepnav,#planner-error{display:none!important}.step{display:none!important}.step[data-panel="3"]{display:block!important}.step[data-panel="3"]>*{display:none!important}.step[data-panel="3"]>#report{display:block!important;border:0;padding:0;margin:0}#report h2,#report h3{break-after:avoid}#report p{font-size:11px}.report-action{break-inside:avoid}footer{display:none!important}}

@media(max-width:640px){input,select,textarea{font-size:16px}}

/* Keep the tools on the same paper-and-navy desk as the notebook. */
:root{--ink:#21354b;--muted:#596571;--blue:#1f3e5b;--blue-hover:#315d82;--paper:#fffefa;--line:#d1d7da;--ice:#edf2f5;--surface:#fafaf8;--control-border:#748597;--focus:#315d82}
body{font-family:Arial,Helvetica,sans-serif}
header{background:var(--blue);color:var(--paper);border-color:var(--blue)}
nav a,nav a:hover,nav a.active{color:var(--paper)}
nav a:hover,nav a.active{border-color:var(--paper)}
header a:focus-visible{outline-color:var(--paper)}
.brand strong{font-weight:400}.brand{font-family:Georgia,'Times New Roman',serif}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}
.workspace,.home-card,.resource{background:var(--paper);border-radius:0}
.eyebrow,.small-label{font-family:'Courier New',monospace;font-weight:400}
.prompt-note{font-size:15px;color:var(--muted);max-width:560px}
.tool-name{margin-top:-7px}.tool-name a{white-space:nowrap}
.question-preview{margin-top:32px;border-top:3px double var(--line);padding-top:26px}
.question-preview .sheet-heading{margin-bottom:16px}
#question-output{font:14px/1.65 Arial,Helvetica,sans-serif;min-height:300px;background:#fafaf8;white-space:pre-wrap}
.preview-label{margin-bottom:0}.email-handoff{padding:22px;background:var(--ice);border:1px solid var(--line);margin-top:25px}
.email-handoff h3{font-size:24px;margin:0 0 15px}
.email-handoff>p{font-size:14px;overflow-wrap:anywhere}
.email-handoff>p.fine{font-size:12px}
.check-label{display:flex;align-items:flex-start;gap:12px;font-size:13px;font-weight:400;cursor:pointer;line-height:1.55}
.check-label input{flex:0 0 20px;width:20px;height:20px;margin:0;accent-color:var(--blue)}
#email-status{margin:16px 0 0;white-space:pre-wrap}#email-status:empty{display:none}
#email-long{margin-top:18px;border-top:1px solid var(--control-border);padding-top:18px}
#email-long .fine{margin-bottom:14px}
a{overflow-wrap:anywhere}.button{white-space:normal;text-align:center}.boundary{overflow-wrap:anywhere}
@media(max-width:700px){.steps>p{grid-column:1/-1}.question-preview .sheet-heading{align-items:flex-start;flex-direction:column}.email-handoff{padding:18px}.button{max-width:100%}.ask-layout{gap:20px}}
@media(max-width:420px){.buttons>.button{flex:1 1 140px}.email-handoff{padding:16px}.workspace{padding:20px}}
@media(max-width:700px){#question-output{font-size:16px}.action button{min-height:44px}}
