/* v885.2 — unified Stroykalk shell for document tools.
   Use the existing catalog card and portal ad components, not a second UI system. */
html.portal-section-stable-rail-v685-html{scroll-padding-top:78px}
body.doc-portal-unified-v2{background:#f7f9f9;color:#152c31;overflow-x:clip}
body.doc-portal-unified-v2 .doc-page-shell{margin:0;padding:0;max-width:none;min-width:0;min-height:65vh;background:#f7f9f9}
body.doc-portal-unified-v2 .portal-section-shell-v685{margin-bottom:34px}
body.doc-portal-unified-v2 .doc-page-shell .doc-hero{box-sizing:border-box;width:100%;max-width:none;margin:0;border-radius:0;min-height:380px;background-position:center center;background-size:cover;background-color:#eff6f4}
body.doc-portal-unified-v2 .doc-page-shell .doc-hero-body{max-width:none;width:min(100% - 44px,1500px);margin:0 auto;padding:46px 0 45px}
body.doc-portal-unified-v2 .doc-page-shell .doc-hero-body>p{max-width:650px;font-size:clamp(15px,1.2vw,18px);line-height:1.55;margin-bottom:22px}
body.doc-portal-unified-v2 .doc-page-shell .doc-hero h1{max-width:670px;font-size:clamp(32px,3.2vw,51px);line-height:1.12;margin:10px 0 15px}
body.doc-portal-unified-v2 .doc-page-shell .doc-hero::after{background:linear-gradient(90deg,rgba(249,251,250,.97) 0%,rgba(249,251,250,.90) 24%,rgba(249,251,250,.69) 39%,rgba(249,251,250,.2) 62%,transparent 80%)}
body.doc-portal-unified-v2 .doc-page-shell .doc-crumb{font-size:13px;gap:9px;margin:0 0 26px;padding:0;align-items:center}
body.doc-portal-unified-v2 .doc-page-shell .doc-kicker{color:#0c786b;font-size:12px}
body.doc-portal-unified-v2 .doc-page-shell .doc-benefits{margin:12px 0 0}
body.doc-portal-unified-v2 .doc-page-shell .doc-benefits span{border:1px solid #d6eae2}
body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685{min-width:0}
body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-section,
body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-panel,
body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-result,
body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-bottom-links,
body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-small{
 width:min(100% - 44px,1160px);max-width:1160px;margin-left:auto;margin-right:auto;
}
body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-section{margin-block:34px 45px}
body.doc-portal-unified-v2 .doc-page-shell .doc-section>h2{color:#142d33;font-weight:800}
body.doc-portal-unified-v2 .doc-page-shell .doc-rich{max-width:1160px;overflow-wrap:anywhere}
body.doc-portal-unified-v2 .doc-page-shell .doc-panel{background:#fff;box-shadow:0 14px 34px rgba(16,47,44,.06)}
body.doc-portal-unified-v2 .doc-page-shell .doc-panel h2{font-size:clamp(22px,2.1vw,28px)}
body.doc-portal-unified-v2 .doc-page-shell .doc-safety-note{margin-top:0;margin-bottom:16px}
body.doc-portal-unified-v2 .doc-page-shell .doc-aside-guide{max-width:100%;border:1px solid #d7eae2}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls,
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-results{width:100%;max-width:none!important;margin:0}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls{padding:22px 0 7px;background:transparent}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-wrap,
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-results .catalog-wrap{width:min(100% - 44px,1500px);margin-inline:auto}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-controls{margin:0;border:0;background:transparent;padding:0;box-shadow:none}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-category-tabs{display:flex;gap:8px;flex-wrap:wrap;overflow:visible}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-category-tabs button{white-space:nowrap;min-height:38px}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-results{padding:25px 0 40px}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-results .catalog-section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;flex-wrap:wrap;margin-bottom:20px}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-results .catalog-section-head h2{margin:3px 0 0}
body.doc-portal-unified-v2 .doc-page-shell .doc-result-count{border:1px solid #d8e9e3;background:#edf8f4;border-radius:9px;padding:7px 12px;color:#267867;font-size:13px;font-weight:800}
body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch;margin-bottom:18px}
body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card{min-width:0;min-height:100%;text-decoration:none}
body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card[hidden]{display:none!important}
body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card-title{line-height:1.22;overflow-wrap:anywhere}
body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card-desc{overflow-wrap:anywhere}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-empty{background:#fff7eb;border:1px solid #e8d3ac;border-radius:12px;padding:19px;color:#634b24}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-empty[hidden]{display:none}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-search-shell{max-width:590px;margin:24px 0 12px;background:rgba(255,255,255,.92)}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-chips{max-width:620px;margin:4px 0 10px;gap:7px}
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-chips button{background:rgba(237,249,245,.94)}
body.doc-portal-unified-v2 .doc-page-shell .catalog-card-media img{max-width:100%}
body.doc-portal-unified-v2 .doc-page-shell .doc-process-hero{min-height:175px!important;background-image:none!important}
body.doc-portal-unified-v2 .doc-page-shell .doc-process-hero .doc-hero-body{padding:22px 0 20px}
body.doc-portal-unified-v2 .doc-page-shell .doc-process-hero .doc-crumb{margin-bottom:12px}
body.doc-portal-unified-v2 .doc-page-shell .doc-process-hero h1{font-size:clamp(26px,3vw,36px);margin:4px 0}
body.doc-portal-unified-v2 .doc-page-shell .doc-process-hero p{margin:3px 0}
body.doc-portal-unified-v2 .doc-page-shell .doc-safety-note{padding:0}
body.doc-portal-unified-v2 .doc-page-shell #doc-result{margin-top:22px;margin-bottom:28px}
body.doc-portal-unified-v2 .doc-page-shell #doc-result[hidden],
body.doc-portal-unified-v2 .doc-page-shell #doc-process-error[hidden],
body.doc-portal-unified-v2 .doc-page-shell #doc-progress-panel[hidden]{display:none}
body.doc-portal-unified-v2 .doc-page-shell .doc-action{min-height:46px}
body.doc-portal-unified-v2 .doc-page-shell .doc-action:focus-visible{outline:3px solid #75bcae;outline-offset:3px}
body.doc-portal-unified-v2 .doc-page-shell .doc-rowfields{min-width:0}
body.doc-portal-unified-v2 .doc-page-shell .doc-output-area,body.doc-portal-unified-v2 .doc-page-shell .doc-output-stack{min-width:0}
body.doc-portal-unified-v2 .doc-page-shell .doc-steps{min-width:0}
body.doc-portal-unified-v2 .doc-page-shell .site-ad-v259--after-hero{margin:22px auto 28px}
body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.site-ad-v259{width:min(100% - 44px,1160px);margin:32px auto}
body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.site-ad-v259 .site-ad-v259__frame{min-height:160px}
body.doc-portal-unified-v2 .doc-page-shell .doc-faq details{margin-block:0}
body.doc-portal-unified-v2 .doc-page-shell .doc-faq summary{padding:4px 0}
body.doc-portal-unified-v2 .portal-footer-v692{margin-top:0}
@media(min-width:1200px){
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-shell-v685{margin-top:18px}
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-section,
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-panel,
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-result{width:min(100% - 25px,1160px)}
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-results .catalog-wrap,
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-wrap{width:min(100% - 30px,1500px)}
}
@media(max-width:1199px){
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.doc-portal-unified-v2 .doc-page-shell .doc-hero-body{width:calc(100% - 32px)}
}
@media(max-width:680px){
 body.doc-portal-unified-v2 .doc-page-shell .doc-hero{min-height:350px;background-position:74% center}
 body.doc-portal-unified-v2 .doc-page-shell .doc-hero::after{background:linear-gradient(90deg,rgba(249,251,250,.98) 0%,rgba(249,251,250,.94) 48%,rgba(249,251,250,.76) 100%)}
 body.doc-portal-unified-v2 .doc-page-shell .doc-hero-body{padding:24px 0 30px;width:calc(100% - 26px)}
 body.doc-portal-unified-v2 .doc-page-shell .doc-hero h1{font-size:clamp(28px,7vw,35px)}
 body.doc-portal-unified-v2 .doc-page-shell .doc-crumb{margin-bottom:16px}
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-search-shell{margin:20px 0 9px}
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid{grid-template-columns:1fr}
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-wrap,
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-results .catalog-wrap{width:calc(100% - 24px)}
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-section,
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-panel,
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-result,
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-bottom-links,
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-small{width:calc(100% - 24px)}
}
@media(max-width:420px){
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card{display:grid;grid-template-columns:112px minmax(0,1fr)}
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card-media{min-width:0}
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card-title{font-size:15px}
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card-desc{font-size:11px}
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-category-tabs button{font-size:12px}
}
@media print{
 body.doc-portal-unified-v2 .doc-page-shell .doc-hero{background:none!important}
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-ad-rail-v685,
 body.doc-portal-unified-v2 .doc-page-shell .site-ad-v259,
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls{display:none!important}
}
/* v885.2 final QA: mobile tabs must be fully visible, not clipped by catalog's swipe preset. */
@media(max-width:680px){
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-controls{overflow:visible!important;max-width:100%}
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-category-tabs{
   display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
   justify-content:flex-start!important;overflow:visible!important;
   width:100%!important;max-width:100%!important;white-space:normal!important;
 }
 body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls .catalog-category-tabs button{
   flex:0 1 auto!important;min-width:0;white-space:normal!important;overflow-wrap:anywhere;
 }
}
/* v887: use one mobile gutter; leave enough room for titles and card badges. */
@media(max-width:680px){
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-hub-results,
 body.doc-portal-unified-v2 .doc-page-shell .portal-section-main-v685>.doc-hub-controls{width:100%;max-width:none}
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card-body,
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card-badges{min-width:0}
}
@media(max-width:420px){
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card{grid-template-columns:96px minmax(0,1fr)}
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card-foot{gap:6px}
 body.doc-portal-unified-v2 .doc-page-shell .doc-catalog-grid .catalog-card-badges span{max-width:100%;overflow-wrap:anywhere}
}

/* v885.3: the document hub category filter follows normal page scrolling.
   Keep the general calculators catalog sticky behavior unchanged. */
body.doc-portal-unified-v2 .doc-page-shell .doc-hub-controls.catalog-control-wrap{
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  z-index:auto!important;
}
