/* Article-only reading and archive improvements. Project templates are unaffected. */
.npo-articles.npo-reader-page,.npo-articles.npo-article-index-page{overflow-x:visible}
.npo-reader-page main>.row>div,.npo-article-index-page main>.row>div{min-width:0}
.npo-reader-page .npo-reader-toc{margin:0 0 24px;background:#fff;border:1px solid #dbe4ec;border-radius:14px;box-shadow:0 2px 8px #142b4308;overflow:hidden}
.npo-reader-page .npo-reader-toc[hidden]{display:none!important}
.npo-reader-page .npo-reader-toc summary{display:flex;align-items:center;gap:10px;padding:18px 20px;cursor:pointer;color:#142b43;font-size:17px;font-weight:700;min-height:56px;list-style:none}
.npo-reader-page .npo-reader-toc summary::-webkit-details-marker{display:none}
.npo-reader-page .npo-reader-toc summary::after{content:"+";font-size:22px;font-weight:400;margin-left:auto}
.npo-reader-page .npo-reader-toc[open] summary::after{content:"−"}
.npo-reader-page .npo-reader-toc-count{color:#526778;font-size:12px;font-weight:500}
.npo-reader-page .npo-reader-toc nav{max-height:min(48vh,420px);overflow:auto;overscroll-behavior:contain;padding:0 18px 18px;scrollbar-gutter:stable}
.npo-reader-page .npo-reader-toc ol{margin:0;padding-left:22px}
.npo-reader-page .npo-reader-toc li{padding:0 0 2px 3px}
.npo-reader-page .npo-reader-toc a{display:block;padding:9px 4px;color:#245775;line-height:1.45;font-size:14px;text-underline-offset:3px;overflow-wrap:anywhere}
.npo-reader-page .npo-reader-toc a:focus-visible,.npo-reader-page .npo-article-table:focus-visible{outline:3px solid #ec751d;outline-offset:2px;border-radius:4px}
.npo-reader-page #table-of-contents{display:none}
.npo-reader-page .npo-authored-article{container-type:inline-size;container-name:article-reading;min-width:0}
.npo-reader-page .article-content{padding:28px;line-height:1.8}
.npo-reader-page .npo-authored-article *{box-sizing:border-box}
.npo-reader-page .npo-authored-article :is(.container,.container-fluid){width:auto;max-width:100%;padding-inline:0!important}
.npo-reader-page .npo-authored-article :is(.container,.container-fluid)>.row{margin-inline:0}
.npo-reader-page .npo-authored-article [style*="width"]:not(table):not(th):not(td){max-width:100%!important}
.npo-reader-page .npo-authored-article [style*="min-width"]:not(table):not(th):not(td){min-width:0!important}
.npo-reader-page .npo-authored-article :is(img,video){max-width:100%!important;height:auto!important}
.npo-reader-page .npo-authored-article iframe{max-width:100%}
.npo-reader-page .npo-authored-article :is(p,li,.paragraph){font-size:inherit!important;line-height:1.8!important;overflow-wrap:anywhere}
.npo-reader-page .npo-authored-article :is(h2,h3,h4,section[id]){scroll-margin-top:100px;overflow-wrap:anywhere}
.npo-reader-page .npo-authored-article h2{font-size:clamp(23px,2.2vw,29px)!important;line-height:1.35!important;margin:30px 0 16px!important}
.npo-reader-page .npo-authored-article h3{font-size:clamp(19px,1.8vw,23px);line-height:1.4}
.npo-reader-page .npo-authored-article a:not(.btn):not(.cta-button){color:#175d84;text-decoration:underline;text-underline-offset:3px}
.npo-reader-page .npo-fragment-alias{display:block;height:0;scroll-margin-top:100px}
.npo-reader-page .npo-authored-article [hidden]{display:none!important}
.npo-reader-page .npo-authored-article .sticky-top{position:static!important;top:auto!important}
.npo-reader-page .npo-authored-article .card-body{padding:clamp(14px,2vw,24px)}
.npo-reader-page .npo-article-table{max-width:100%;width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border:1px solid #d9e3ec;border-radius:10px;margin:18px 0 6px;background:#fff;scrollbar-gutter:stable}
.npo-reader-page .npo-article-table table{display:table!important;width:100%!important;min-width:var(--npo-table-width,32rem)!important;max-width:none!important;margin:0!important;border-collapse:collapse;font-size:15px}
.npo-reader-page .npo-article-table :is(th,td){padding:12px 14px;line-height:1.55;vertical-align:top;word-break:normal;overflow-wrap:normal}
.npo-reader-page .npo-table-hint{margin:0 0 20px!important;font-size:13px!important;color:#526778;line-height:1.5!important}
.npo-reader-page .npo-table-hint[hidden]{display:none!important}
.npo-reader-page .whatsapp-chat{display:none!important}
@container article-reading (max-width:700px){
 .npo-authored-article .row>:is(.col-lg-4,.col-lg-8){flex:0 0 100%;width:100%;max-width:100%}
}
.npo-articles.npo-article-index-page #categories{display:grid!important;grid-template-columns:minmax(0,1fr);gap:18px;margin-bottom:28px!important;scroll-margin-top:100px}
.npo-article-index-page #categories .search-box{grid-row:1;margin:0!important;max-width:560px;width:100%}
.npo-article-index-page #categories .category-filter{grid-row:2;min-width:0;margin-bottom:0!important}
.npo-article-index-page #categories .filter-header{margin-bottom:10px!important}
.npo-article-index-page #categories .category-tags{flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;gap:8px!important;padding:2px 2px 12px;scroll-snap-type:x proximity}
.npo-article-index-page #categories .category-tag{flex:0 0 auto;white-space:nowrap;margin:0;scroll-snap-align:start;min-height:42px;align-items:center}
.npo-article-index-page #categories .category-tag.active{background:#e8f2f8;border-color:#2a709a;color:#134e70}
.npo-article-index-page .search-btn{width:44px;min-height:44px}
.npo-articles.npo-article-index-page :is(.hero-section,.category-header) .btn{border-color:#9eb2c4;background:#fff!important;color:#174b6f!important}
.npo-article-index-page #articles{scroll-margin-top:100px}
@media(max-width:991px){
 .npo-reader-page #table-of-contents{display:block}
 .npo-reader-page .sidebar{display:none}
 .npo-article-index-page main>.row>.col-lg-4{display:none}
 .npo-reader-page .npo-reader-toc nav{max-height:42vh}
 .npo-reader-page .npo-authored-article :is(h2,h3,h4){scroll-margin-top:90px}
}
@media(max-width:575px){
 .npo-reader-page .article-content{padding:16px;font-size:16px;border-radius:12px}
 .npo-reader-page .article-header{padding:24px 0!important}
 .npo-reader-page .article-header h1{font-size:26px!important;line-height:1.25!important}
 .npo-reader-page .article-meta{line-height:1.65;row-gap:8px;margin-top:16px}
 .npo-reader-page .npo-reader-toc summary{padding:14px 16px;font-size:16px}
 .npo-reader-page .npo-reader-toc-count{font-size:11px}
 .npo-reader-page .npo-authored-article .card-body{padding:14px}
 .npo-articles.npo-article-index-page :is(.hero-section,.category-header){padding:20px 0!important}
 .npo-articles.npo-article-index-page :is(.hero-section,.category-header) p{font-size:16px!important;line-height:1.6!important;margin-bottom:16px!important}
 .npo-articles.npo-article-index-page :is(.hero-section,.category-header) h1{font-size:28px!important;margin-bottom:16px!important}
 .npo-articles.npo-article-index-page :is(.hero-section,.category-header) .btn{padding:9px 12px!important}
 .npo-article-index-page .category-header .mt-4{margin-top:16px!important}
 .npo-article-index-page main{margin-top:24px!important}
 .npo-article-index-page .breadcrumb-wrapper{padding:10px 0}
 .npo-article-index-page #categories{gap:14px}
}
@media(prefers-reduced-motion:no-preference){html:has(.npo-reader-page){scroll-behavior:smooth}}
@media(min-width:768px) and (max-width:1399px){
 body:has(.npo-reader-page,.npo-article-index-page){padding-bottom:72px!important}
 body:has(.npo-reader-page,.npo-article-index-page) .npo-action-rail{position:fixed!important;inset:auto 0 0!important;transform:none!important;width:auto!important;height:auto!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0!important;padding:0 0 env(safe-area-inset-bottom)!important;background:#fff;border-top:1px solid #dbe4ec;border-radius:0;box-shadow:0 -3px 14px #142b4310}
 body:has(.npo-reader-page,.npo-article-index-page) .npo-action-rail a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%!important;max-width:none;min-width:0;min-height:62px;margin:0;border:0;border-right:1px solid #e4eaf0;border-radius:0;box-shadow:none!important}
}
@media print{.npo-reader-page .npo-reader-toc,.npo-reader-page .sidebar,.npo-reader-page .npo-table-hint{display:none!important}.npo-reader-page .npo-article-table{overflow:visible;border:0}.npo-reader-page .npo-article-table table{min-width:0!important}}

