/* Stroykalk Portal Template System v672
   Presentation contract only: no calculator geometry, A4, ad-slot sizing or export logic. */
:root{
  --portal-v672-content-max:1240px;
  --portal-v672-reading-max:860px;
  --portal-v672-section-gap:clamp(28px,4vw,56px);
  --portal-v672-focus-offset:3px;
  --portal-v672-radius:16px;
  --portal-v672-touch:44px;
}
body[data-portal-template-version="672"]{min-width:0}
body[data-portal-template-version="672"] > main,
body[data-portal-template-version="672"] [data-portal-zone-v672="main"]{min-width:0}
body[data-portal-template-version="672"] :is(h1,h2,h3){overflow-wrap:anywhere}
@supports(text-wrap:balance){body[data-portal-template-version="672"] :is(h1,h2){text-wrap:balance}}
body[data-portal-template-version="672"] :is(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid currentColor;outline-offset:var(--portal-v672-focus-offset)
}
body[data-portal-template-version="672"] [data-portal-component-v672]{scroll-margin-top:88px}
body[data-portal-template-version="672"] [data-portal-component-v672="breadcrumbs"]{
  -webkit-overflow-scrolling:touch;scrollbar-width:thin
}
body[data-portal-template-version="672"] [data-portal-component-v672="workspace"]{min-width:0}
body[data-portal-template-version="672"] [data-portal-component-v672="actions"] :is(a,button){min-height:var(--portal-v672-touch)}
body[data-portal-template-version="672"] .portal-skip-v666[data-portal-skip-v672="true"]{
  border:1px solid rgba(15,23,42,.12)
}
/* Keep reading content comfortable without forcing calculator/document layouts. */
body[data-portal-template-family-v672="knowledge"] [data-portal-zone-v672="main"] :is(article,.article-content,.guide-content,.compare-content){max-width:100%}
/* Family markers are intentionally conservative: existing visual systems remain authoritative. */
body[data-portal-template-family-v672="calculator"] [data-portal-component-v672="workspace"],
body[data-portal-template-family-v672="document"] [data-portal-component-v672="workspace"],
body[data-portal-template-family-v672="pto-tool"] [data-portal-component-v672="workspace"]{isolation:isolate}
@media(max-width:720px){
  body[data-portal-template-version="672"] [data-portal-component-v672="breadcrumbs"]{
    overflow-x:auto;overscroll-behavior-x:contain;padding-block:.25rem
  }
  body[data-portal-template-version="672"] [data-portal-component-v672="actions"]{
    max-width:100%
  }
}
@media print{
  body[data-portal-template-version="672"] .portal-skip-v666[data-portal-skip-v672="true"]{display:none!important}
}
