/* FIX2833: Scoped redesign only. No global layout, entitlement or payment changes. */
body .nga2832-library{--nga-ink:#142d4d;--nga-line:#dce7f3}
body .nga2832-library>.wrap{max-width:1320px!important}
body .nga2832-library .nga2832-hero{padding:28px 32px!important;background:#f1f6fd!important;border-radius:14px!important;min-height:0!important;margin-bottom:22px!important;box-shadow:none!important}
body .nga2832-library .nga2832-hero h2{font-size:clamp(25px,2.3vw,34px)!important;line-height:1.2!important}
body .nga2832-library .nga2832-hero p{font-size:15px;line-height:1.6}
body .nga2832-library .resource-category-chip-nav{margin:8px 0 20px!important}
body .nga2832-library .cheat-category-list{display:block!important}
body .nga2832-library .cheat-category-section{padding:0!important;margin:22px 0 34px!important;background:transparent!important;border:0!important}
body .nga2832-library .labs-category-title{margin:0 0 15px!important;max-width:100%!important}
body .nga2832-library .labs-category-title h2{font-size:clamp(21px,2vw,28px)!important;margin:0 0 6px!important}
body .nga2832-library .labs-category-title p{font-size:14px!important;line-height:1.55!important;margin:0!important;max-width:95ch}
body .nga2832-library .nga2833-category-notes{margin:0 0 18px;font-size:14px;color:#466582}
body .nga2832-library .nga2833-category-notes>summary{cursor:pointer;display:inline-block;padding:8px 12px;border:1px solid #dbe8f6;border-radius:8px;background:#fff}
body .nga2832-library .nga2833-category-notes .resource-category-copy{margin:10px 0!important;max-width:100%!important}
body .nga2832-library .cheat-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important}
body .nga2832-library .cheat-sheet-card{display:flex!important;flex-direction:column!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0 0 18px!important;overflow:hidden!important;box-shadow:0 2px 7px rgba(15,43,73,.055)!important;background:#fff!important;border:1px solid #dce7f3!important;border-radius:14px!important}
body .nga2832-library .cheat-sheet-card .course-visual{width:100%!important;height:100px!important;min-height:100px!important;margin:0!important;padding:17px 19px!important;border-radius:0!important;background:linear-gradient(115deg,#102b4a,#24537b)!important;box-sizing:border-box!important}
body .nga2832-library .cheat-sheet-card .course-visual i{display:none!important}
body .nga2832-library .cheat-sheet-card .course-meta{padding:14px 18px 0!important;margin:0!important}
body .nga2832-library .cheat-sheet-card h3{padding:0 18px!important;margin:8px 0!important;font-size:18px!important;line-height:1.35!important;letter-spacing:-.01em!important}
body .nga2832-library .cheat-sheet-card>p{padding:0 18px!important;margin:0 0 14px!important;font-size:13px!important;line-height:1.6!important;flex:1!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important}
body .nga2832-library .cheat-sheet-card .course-footer{padding:12px 18px 0!important;margin:auto 0 0!important;border-top:1px solid #e7eef7!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
body .nga2832-library .cheat-sheet-card .course-footer span{font-size:12px!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-reader>.wrap{max-width:1400px!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-layout{grid-template-columns:minmax(0,1fr) 230px!important;gap:22px!important;align-items:start!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-main{width:100%!important;min-width:0!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body{box-sizing:border-box!important;width:100%!important;max-width:100%!important;padding:clamp(20px,2.8vw,34px)!important;border:1px solid #dce6f2!important;border-radius:14px!important;background:#fff!important;overflow-x:auto!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body :is(h2,h3){scroll-margin-top:105px;line-height:1.28!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body h2{font-size:clamp(21px,2vw,26px)!important;margin-top:28px!important;padding-top:12px!important;border-top:1px solid #edf1f6}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body h3{font-size:19px!important;margin-top:18px!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body table{display:table!important;width:100%!important;max-width:100%!important;border-collapse:collapse!important;font-size:14px!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body th{background:#eaf2fb!important;font-weight:700!important;text-align:left!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body td,body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body th{padding:10px 12px!important;vertical-align:top!important;border:1px solid #d7e2ef!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-sidebar>.content-block{padding:16px!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-cheat-tools{margin-top:14px!important;margin-bottom:10px!important;padding:16px 20px!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-index{background:#f3f7fd;border:1px solid #d6e5f6;border-radius:12px;padding:14px 18px;margin:0 0 17px}
body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-index summary{font-size:15px;font-weight:750;color:#18385d;cursor:pointer;list-style:revert}
body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-index nav{margin-top:13px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;max-height:270px;overflow:auto}
body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-index a{display:block;padding:8px 10px;border-radius:7px;background:#fff;color:#214c77;font-size:13px;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-index a:hover{background:#e3eefb}
body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-code{position:relative;margin:18px 0;min-width:0}
body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-code pre{overflow:auto!important;padding:44px 18px 18px!important;margin:0!important;border-radius:10px!important;max-width:100%!important;box-sizing:border-box!important}
body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-copy{position:absolute;top:8px;right:8px;border:1px solid #c2d5e8;background:#fff;color:#1a4770;padding:5px 12px;border-radius:6px;font-size:12px;cursor:pointer}
@media(max-width:1100px){body .nga2832-library .cheat-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:950px){body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-layout{grid-template-columns:minmax(0,1fr)!important}body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-sidebar{order:2}}
@media(max-width:680px){body .nga2832-library .cheat-card-grid{grid-template-columns:minmax(0,1fr)!important}body .nga2832-library .nga2832-hero{padding:20px!important}body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-index nav{grid-template-columns:1fr}body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body{padding:16px!important}}
@media print{body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-index,body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-cheat-tools,body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-sidebar{display:none!important}body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-layout{display:block!important}body.resource-topic-page:has(.nga2833-cheat-tools) .resource-topic-body{border:0!important;padding:0!important}body.resource-topic-page:has(.nga2833-cheat-tools) .nga2833-copy{display:none!important}}
