/* Shared screen presentation for professional calculators, checklists and plan writers. */
@media screen{
body.stf-tool{--stf-ink:#1b4035;--stf-line:#ccd9cf;--stf-accent:#185740;font:1rem/1.55 Arial,Helvetica,sans-serif;color:var(--stf-ink);background:#f5f7f2}
.stf-tool-nav{box-sizing:border-box;position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:clamp(.65rem,2vw,1.5rem);height:48px;padding:0 clamp(.6rem,3vw,2rem);background:#173e34;color:white;font:600 .875rem/1.2 Arial,Helvetica,sans-serif}
.stf-tool-nav a{color:white;text-underline-offset:3px;text-decoration:none}.stf-tool-nav a:first-child{font-weight:750}.stf-tool-nav a:last-child{margin-left:auto}.stf-tool-nav a:hover{text-decoration:underline}
.stf-tool :is(.review-head,.page-heading,.page-head,.topbar,main) :is(h1,h2,h3){font-family:Arial,Helvetica,sans-serif;line-height:1.2;color:var(--stf-ink)}
.stf-tool :is(.review-head,.page-heading,.topbar,.hero,.page-header) h1,.stf-tool main h1{font-size:clamp(1.8rem,3.4vw,2.75rem);letter-spacing:-.035em;font-weight:650}
.stf-tool main h2,.stf-tool .review-shell h2{font-size:clamp(1.35rem,2.3vw,1.8rem);letter-spacing:-.02em;font-weight:650}
.stf-tool main h3,.stf-tool .review-shell h3{font-size:1.125rem;letter-spacing:-.01em;font-weight:650}
.stf-tool :is(.card,.panel,.review-shell>section,.topic){border-radius:8px;border-color:var(--stf-line)}
.stf-tool :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea){font-family:inherit;font-size:1rem;border-radius:5px;color:var(--stf-ink)}
.stf-tool :is(.primary-button,.button.primary,button.primary,.btn:not(.ghost):not(.danger)){background-color:var(--stf-accent);color:white;border-radius:5px}
.stf-tool :focus-visible{outline:3px solid #357ab4;outline-offset:2px}
.stf-tool :is(.app-shell,.writer-shell,.shell)>.sidebar{top:48px;max-height:calc(100dvh - 48px);overflow-y:auto}
.stf-tool .header.wrap,.stf-tool .topbar{top:48px;scroll-margin-top:48px}
@media(max-width:760px){.stf-tool-nav{font-size:.8125rem}.stf-tool :is(.app-shell,.writer-shell,.shell)>.sidebar{max-height:none}}
}
@media print{.stf-tool-nav{display:none!important}}

/* The same section rail also serves the form-based tools and their compact menus. */
@media screen {
 body.stf-tool{--rail-width:240px;--rail-bg:#173e34;--tool-font:Arial,Helvetica,sans-serif}
 body.stf-tool :where(h1,h2,h3,h4,h5,p,li,label,summary,small,strong,span,a,button,input,textarea,select,td,th,div,nav,aside,section){font-family:var(--tool-font)!important}
 .stf-tool .sections-toggle{display:none}
 .stf-tool :is(.sidebar,.review-layout>aside,.pit-rail){box-sizing:border-box;background:var(--rail-bg);color:#f4faf5;padding:20px 14px}
 .stf-tool .sidebar>:is(.brand,.workspace-label,.sidebar-caption,.hub-link,.side-divider,.sidebar-label){display:none}
 .stf-tool :is(.review-layout>aside,.pit-rail) .save{color:#d1e4d8}
 .stf-tool :is(.sidebar nav,.review-menu,.pit-menu){display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:0;padding:0}
 .stf-tool :is(.sidebar nav,.review-menu,.pit-menu)::before{content:attr(data-title);font-size:18px;line-height:1.25;font-weight:700;display:block;color:white;margin:0 8px 12px}
 body.stf-tool :is(.sidebar nav,.review-menu,.pit-menu)>:is(button,a){display:flex;align-items:center;gap:0;box-sizing:border-box;width:100%;min-height:42px;margin:0;padding:9px 12px;border:0;border-radius:5px;background:transparent;color:#e5f0e9;line-height:1.4;font-size:16px;font-weight:500;text-align:left;white-space:normal;text-decoration:none;letter-spacing:normal}
 .stf-tool :is(.sidebar nav,.review-menu,.pit-menu)>:is(button,a)>:is(svg,.step-number){display:none}
 .stf-tool #nav button>span:first-child{display:none}
 body.stf-tool :is(.sidebar nav,.review-menu,.pit-menu)>:is(button,a):hover{background:#2d5749;color:white}
 body.stf-tool :is(.sidebar nav,.review-menu,.pit-menu)>:is(button,a):is(.active,[aria-current]:not([aria-current=false])){background:#deebe1;color:#173e34;font-weight:700}
 body.stf-tool :is(.sidebar nav,.review-menu)>button:disabled{opacity:.55;cursor:default}
 .stf-tool .review-layout{display:block}
 .stf-tool .review-layout .mobile-nav{display:none}
 .stf-tool .review-shell>section[id]{scroll-margin-top:72px}
 @media(min-width:801px){
  body.stf-tool :is(.sidebar,.review-layout>aside,.pit-rail){position:fixed;inset:48px auto 0 0;width:var(--rail-width);height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto;z-index:15}
  .stf-tool .app-shell>main{margin-left:var(--rail-width);width:calc(100% - var(--rail-width))}
  .stf-tool .app-shell>.workspace,.stf-tool .shell>.workspace,.stf-tool>main:has(.review-shell),.stf-tool:has(.review-shell)>footer{margin-left:var(--rail-width)}
  .stf-tool .shell{display:block}
  .stf-tool:has(.review-shell)>.header.wrap{margin-left:var(--rail-width);width:calc(100% - var(--rail-width))}
 }
 @media(max-width:800px){
  .stf-tool.with-section-menu .sections-toggle{display:inline-block;padding:5px 9px;color:white;background:transparent;border:1px solid #97b4a5;border-radius:5px;font:600 14px/1.3 var(--tool-font)}
  .stf-tool .stf-tool-nav a:nth-child(3){margin-left:auto}
  .stf-tool .app-shell,.stf-tool .shell{display:block}
  body.stf-tool :is(.app-shell>main,.app-shell>.workspace,.shell>.workspace){width:100%;margin-left:0}
  body.stf-tool :is(.sidebar,.review-layout>aside,.pit-rail){width:auto;position:static;height:auto;max-height:none;padding:0;overflow:visible}
  .stf-tool .sidebar>.option-nav-heading,.stf-tool .sidebar>.option-nav,.stf-tool .sidebar>.sidebar-divider,.stf-tool .sidebar>.sidebar-bottom,.stf-tool .sidebar>.side-foot{display:none}
  .stf-tool .review-layout>aside .save{color:#486259;background:white}
  .stf-tool.with-section-menu :is(.sidebar nav,.review-menu,.pit-menu){display:none}
  .stf-tool.sections-open :is(.sidebar nav,.review-menu,.pit-menu){display:grid;position:fixed;inset:48px 0 auto;max-height:calc(100dvh - 48px);overflow:auto;background:var(--rail-bg);padding:14px;z-index:45}
  .stf-tool.sections-open .sidebar{z-index:auto}
 }
}
@media print{.pit-rail,.sections-toggle{display:none!important}}
