/* BWDepot resource layout. Every rule is scoped to the assigned resource template. */
body.bwd-resource-page{--bwd-ink:#342b23;--bwd-green:#526434;--bwd-line:#deded2;--bwd-sand:#f5f3ec;--bwd-header-offset:0px;--bwd-sidebar-width:248px}
body.bwd-resource-page .bwd-resource-shell{display:grid;grid-template-columns:var(--bwd-sidebar-width) minmax(0,1fr);align-items:stretch;width:100%;max-width:none;margin:0;clear:both}
body.bwd-resource-page .bwd-resource-sidebar{grid-column:1;border-right:1px solid var(--bwd-line);background:#fbfaf6;min-width:0;position:relative}
body.bwd-resource-page .bwd-resource-sidebar-inner{position:sticky;top:var(--bwd-header-offset);height:calc(100dvh - var(--bwd-header-offset) - 24px);max-height:calc(100dvh - var(--bwd-header-offset) - 24px);display:flex;flex-direction:column;overflow:hidden;padding:30px 20px 32px;scrollbar-width:thin}
body.bwd-resource-page .bwd-resource-brand{color:var(--bwd-green);font-size:11px;letter-spacing:.07em;text-transform:uppercase;font-weight:700;line-height:1.5;margin:0 0 9px}
body.bwd-resource-page .bwd-resource-sidebar-title{font-size:21px;line-height:1.35;font-weight:650;letter-spacing:-.02em;color:var(--bwd-ink);margin:0 0 24px}
body.bwd-resource-page .bwd-resource-toc{counter-reset:bwd-section;list-style:none;padding:0;margin:0}
body.bwd-resource-page .bwd-resource-toc li{counter-increment:bwd-section;padding:0;margin:0 0 5px;list-style:none}
body.bwd-resource-page .bwd-resource-toc a{position:relative;display:block;padding:12px 10px 12px 38px;min-height:44px;border-left:3px solid transparent;border-radius:5px;color:var(--bwd-ink);font-size:13px;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
body.bwd-resource-page .bwd-resource-toc a:before{content:counter(bwd-section,decimal-leading-zero);position:absolute;left:7px;top:12px;color:#879476;font-size:14px;font-weight:650}
body.bwd-resource-page .bwd-resource-toc a:hover,body.bwd-resource-page .bwd-resource-toc a[aria-current=location]{background:#edf0e5;border-left-color:var(--bwd-green)}
body.bwd-resource-page .bwd-resource-toc a[aria-current=location]{font-weight:650}
body.bwd-resource-page .bwd-resource-sidebar-extra{border-top:1px solid var(--bwd-line);margin-top:24px;padding-top:20px;font-size:13px;line-height:1.65;color:var(--bwd-ink)}
body.bwd-resource-page .bwd-resource-sidebar-extra img{max-width:100%;height:auto}
body.bwd-resource-page .bwd-resource-sidebar-button{display:block;background:var(--bwd-green);color:white;text-align:center;padding:12px 14px;border-radius:6px;font-size:13px;font-weight:650;line-height:1.5;text-decoration:none;margin-top:22px}
body.bwd-resource-page .bwd-resource-menu-toggle{display:none}
body.bwd-resource-page .bwd-resource-article{grid-column:2;min-width:0;display:flow-root;position:relative}
body.bwd-resource-page .bwd-resource-article>.container_wrap{box-sizing:border-box;width:100%;max-width:none;float:none;clear:both;margin-left:0;margin-right:0}
body.bwd-resource-page .bwd-resource-article .container{width:100%;max-width:100%;padding-left:clamp(22px,4vw,58px);padding-right:clamp(22px,4vw,58px);margin:0 auto}
body.bwd-resource-page .bwd-resource-article .content{float:none!important;width:100%!important;max-width:100%;border:0!important;margin:0!important;padding-left:0!important;padding-right:0!important}
body.bwd-resource-page .bwd-resource-article .content:before{display:none!important}
body.bwd-resource-page .bwd-resource-article .sidebar{display:none}
body.bwd-resource-page .bwd-resource-toc a:focus-visible,body.bwd-resource-page .bwd-resource-sidebar-button:focus-visible,body.bwd-resource-page .bwd-resource-menu-toggle:focus-visible{outline:3px solid #aa773b;outline-offset:3px}
body.bwd-resource-page .bwd-resource-noscript{font-size:12px;line-height:1.5;color:#666}
body.bwd-resource-page .bwd-resource-shell:has(>.bwd-resource-article:only-child){grid-template-columns:1fr}
body.bwd-resource-page .bwd-resource-shell>.bwd-resource-article:only-child{grid-column:1/-1}
@media(max-width:989px){body.bwd-resource-page{--bwd-sidebar-width:220px}body.bwd-resource-page .bwd-resource-sidebar-inner{padding:25px 14px}body.bwd-resource-page .bwd-resource-article .container{padding-left:26px;padding-right:26px}}
@media(max-width:767px){body.bwd-resource-page .bwd-resource-shell{display:block}body.bwd-resource-page .bwd-resource-sidebar{border:0;border-bottom:1px solid var(--bwd-line)}body.bwd-resource-page .bwd-resource-sidebar-inner{position:static;height:auto;max-height:none;padding:16px 22px}body.bwd-resource-page .bwd-resource-brand{font-size:10px;margin-bottom:4px}body.bwd-resource-page .bwd-resource-sidebar-title{font-size:19px;margin-bottom:12px}body.bwd-resource-page .bwd-resource-menu-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;border:1px solid #cdd1be;border-radius:6px;background:#fff;color:var(--bwd-ink);font:inherit;font-weight:600;font-size:14px;text-align:left;min-height:44px;padding:10px 13px;cursor:pointer}body.bwd-resource-page .bwd-resource-menu-toggle[aria-expanded=false]+#bwd-resource-sidebar-panel{display:none}body.bwd-resource-page .bwd-resource-toc{padding-top:12px}body.bwd-resource-page .bwd-resource-article .container{padding-left:22px;padding-right:22px}}
@media(prefers-reduced-motion:reduce){body.bwd-resource-page .bwd-resource-sidebar-inner{scroll-behavior:auto!important}}
body.bwd-resource-page .bwd-resource-menu-toggle[hidden]{display:none}

/* Sidebar-only interaction states; article typography and tables remain theme-controlled. */
body.bwd-resource-page .bwd-resource-sidebar-inner.bwd-resource-floating{position:fixed;z-index:30;background:#fbfaf6;box-sizing:border-box;border-right:1px solid var(--bwd-line)}
body.bwd-resource-page .bwd-resource-toc a[aria-current=location]{background:#e6ecdc;border-left-color:var(--bwd-green);color:#31461e;font-weight:700}
body.bwd-resource-page .bwd-resource-toc a[aria-current=location]:before{color:#31461e;font-weight:700}
@media print{body.bwd-resource-page .bwd-resource-shell{display:block}body.bwd-resource-page .bwd-resource-sidebar,body.bwd-resource-page .bwd-resource-floating{display:none!important}body.bwd-resource-page .bwd-resource-article{width:100%}}

/* Full-bleed section backgrounds inside the article column; gutters stay inside content containers. */
body.bwd-resource-page .bwd-resource-article>.avia-section,body.bwd-resource-page .bwd-resource-article>.container_wrap{justify-self:stretch;width:100%;max-width:none}

/* Fixed title and footer, with a separate scroll area for navigation and extra content. */
body.bwd-resource-page .bwd-resource-brand,body.bwd-resource-page .bwd-resource-sidebar-title,body.bwd-resource-page .bwd-resource-menu-toggle{flex-shrink:0}
body.bwd-resource-page #bwd-resource-sidebar-panel{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}
body.bwd-resource-page .bwd-resource-sidebar-footer{flex:0 0 auto;background:#fbfaf6;border-top:1px solid var(--bwd-line);padding-top:16px;margin-top:14px}
body.bwd-resource-page .bwd-resource-sidebar-footer .bwd-resource-sidebar-button{margin:0;background:#4d8564;border:1px solid #4d8564;color:#fff;text-decoration:none;transition:background-color .15s ease,border-color .15s ease}
body.bwd-resource-page .bwd-resource-sidebar-footer .bwd-resource-sidebar-button:hover,body.bwd-resource-page .bwd-resource-sidebar-footer .bwd-resource-sidebar-button:focus-visible{background:#3b6d50;border-color:#3b6d50;color:#fff;text-decoration:none}
@media(max-width:767px){body.bwd-resource-page #bwd-resource-sidebar-panel{flex:none;overflow:visible;scrollbar-gutter:auto}body.bwd-resource-page .bwd-resource-sidebar-footer{margin-top:14px}}
@media(prefers-reduced-motion:reduce){body.bwd-resource-page .bwd-resource-sidebar-button{transition:none}}

/* Mobile: title and CTA remain in normal flow; only the compact section menu pins. */
body.bwd-resource-page .bwd-resource-mobile-slot{min-width:0}
@media(max-width:767px){
body.bwd-resource-page .bwd-resource-mobile-dock{background:#fbfaf6;box-sizing:border-box}
body.bwd-resource-page .bwd-resource-mobile-dock.is-pinned{position:fixed;z-index:30;box-shadow:0 3px 8px #00000012}
body.bwd-resource-page .bwd-resource-mobile-dock.is-pinned #bwd-resource-sidebar-panel{position:absolute;top:100%;left:0;right:0;max-height:var(--bwd-mobile-panel-height,60dvh);overflow-y:auto;overscroll-behavior:contain;background:#fbfaf6;border:1px solid var(--bwd-line);border-top:0;padding:8px 12px 12px;box-shadow:0 6px 12px #00000012}
body.bwd-resource-page .bwd-resource-mobile-dock .bwd-resource-menu-toggle{margin:0}
}
@media print{body.bwd-resource-page .bwd-resource-mobile-dock{display:none!important}}

/* Optional sidebar widgets/content are desktop-only. */
@media(max-width:767px){body.bwd-resource-page .bwd-resource-sidebar-extra{display:none!important}}

body.bwd-resource-page .bwd-resource-toc ol.bwd-resource-sublist{list-style:none;padding:0;margin:0 0 0 14px}
body.bwd-resource-page .bwd-resource-toc li[hidden]{display:none!important}

body.bwd-resource-page .bwd-resource-toc .bwd-resource-missing-heading{counter-increment:none}
body.bwd-resource-page .bwd-resource-toc .bwd-resource-missing-heading>ol{margin-left:0}
