/* Resource detail composition adapted from the approved pilot implementation guide. */
[data-bc-resource-rewrite]{padding-top:80px;background:#fff;color:#334155;overflow-wrap:anywhere}[data-bc-resource-rewrite] .rewrite-hero{background:#F8FAFC;border-bottom:1px solid #E2E8F0;padding:72px 24px}[data-bc-resource-rewrite] .hero-shell{max-width:1100px;margin:auto;text-align:center}[data-bc-resource-rewrite] .hero-shell h1{max-width:1000px;margin:18px auto 24px;color:#0A0F1E;line-height:1.3;font-size:48px;font-weight:700;letter-spacing:0}[data-bc-resource-rewrite] .rewrite-category{color:#2563EB;font-size:14px;font-weight:600;text-transform:capitalize}[data-bc-resource-rewrite] .rewrite-lead{font-size:18px!important;line-height:1.8!important;max-width:850px;margin:0 auto!important;color:#334155!important;font-weight:400!important}[data-bc-resource-rewrite] .rewrite-meta{margin-top:20px!important;color:#64748B!important;font-size:13px!important}[data-bc-resource-rewrite] .rewrite-grid{display:grid;grid-template-columns:250px minmax(0,1fr);gap:48px;max-width:1280px;margin:auto;padding:56px 24px 80px}[data-bc-resource-rewrite] .sticky-aside{align-self:start;position:sticky;top:110px}[data-bc-resource-rewrite] .rewrite-toc-shell{padding:22px;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:16px}[data-bc-resource-rewrite] summary{cursor:pointer;font-weight:600;color:#0A0F1E}[data-bc-resource-rewrite] .toc{margin-top:14px}[data-bc-resource-rewrite] .toc a{display:block;padding:6px 0;font-size:14px;line-height:1.6;color:#475569}[data-bc-resource-rewrite] .toc a:hover{color:#1D4ED8}[data-bc-resource-rewrite] .article-body{font-size:18px;line-height:1.85;min-width:0}[data-bc-resource-rewrite] .article-body section{scroll-margin-top:110px}[data-bc-resource-rewrite] .article-body h2{font-size:28px;line-height:1.4;margin:46px 0 18px;color:#0A0F1E;font-weight:700}[data-bc-resource-rewrite] .article-body section:first-child h2{margin-top:0}[data-bc-resource-rewrite] .article-body p,[data-bc-resource-rewrite] .article-body ul,[data-bc-resource-rewrite] .article-body ol{margin:18px 0;color:#334155}[data-bc-resource-rewrite] .article-body ul,[data-bc-resource-rewrite] .article-body ol{padding-left:24px;list-style:revert}[data-bc-resource-rewrite] li{margin:8px 0}[data-bc-resource-rewrite] a{color:#2563EB;text-underline-offset:3px}[data-bc-resource-rewrite] .article-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:24px 0;background:#fff;line-height:1.65;font-size:15px}[data-bc-resource-rewrite] th,[data-bc-resource-rewrite] td{padding:14px;border:1px solid #E2E8F0;text-align:left;vertical-align:top;min-width:145px}[data-bc-resource-rewrite] th{background:#F1F5F9;color:#0A0F1E;font-weight:600}[data-bc-resource-rewrite] .rewrite-faq{padding:18px 0;border-bottom:1px solid #E2E8F0}[data-bc-resource-rewrite] .rewrite-faq p{margin-bottom:0}[data-bc-resource-rewrite] .rewrite-related{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}[data-bc-resource-rewrite] .resource-card{padding:18px;border:1px solid #E2E8F0;border-radius:12px;text-decoration:none}[data-bc-resource-rewrite] .rewrite-cta{padding:24px;background:#EFF6FF;border-radius:16px;margin-top:40px}[data-bc-resource-rewrite] .rewrite-cta h2{margin:0}[data-bc-resource-rewrite] .resource-cta-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;border-radius:8px;background:#2563EB;color:#fff!important;font-size:16px;font-weight:600;text-decoration:none}[data-bc-resource-rewrite] .resource-cta-primary:hover,[data-bc-resource-rewrite] .resource-cta-primary:focus{background:#1D4ED8}[data-bc-resource-rewrite] .resource-cta-primary:focus-visible{outline:3px solid #93C5FD;outline-offset:3px}@media(max-width:1000px){[data-bc-resource-rewrite] .rewrite-grid{grid-template-columns:1fr;gap:32px}[data-bc-resource-rewrite] .sticky-aside{position:static}}@media(max-width:600px){[data-bc-resource-rewrite] .rewrite-hero{padding:48px 20px}[data-bc-resource-rewrite] .hero-shell h1{font-size:32px}[data-bc-resource-rewrite] .rewrite-lead{font-size:16px!important}[data-bc-resource-rewrite] .rewrite-grid{padding:32px 20px 56px}[data-bc-resource-rewrite] .article-body{font-size:17px}[data-bc-resource-rewrite] .article-body h2{font-size:24px}[data-bc-resource-rewrite] .rewrite-related{grid-template-columns:1fr}}

/* Expanded long-form guides use reading headings instead of inherited display locks. */
body[data-bc-vi] [data-bc-resource-expansion] .article-body h2{font-size:28px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:0!important}
@media(max-width:600px){body[data-bc-vi] [data-bc-resource-expansion] .article-body h2{font-size:24px!important}}

/* Existing complete articles retain their markup and adopt the same reading scale. */
body[data-bc-resource-retained] .article-body h2{font-size:28px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:0!important}
body[data-bc-resource-retained] .article-body p{line-height:1.8!important}
@media(max-width:600px){body[data-bc-resource-retained] .article-body h2{font-size:24px!important}}

/* Legacy FAQ answers are reading content; is-open is their existing JS state. */
body[data-bc-resource-retained] .article-body .faq-answer p{font-size:18px!important;line-height:1.8!important}
body[data-bc-resource-retained] .faq-item.is-open .faq-answer{max-height:none!important;overflow:visible!important}

/* Retained native hidden/aria-expanded FAQ variant keeps its original handler. */
body[data-bc-resource-retained] .article-body .faq-answer{font-size:18px!important;line-height:1.8!important}
body[data-bc-resource-retained] .faq-item > button[aria-expanded="true"] + .faq-answer{max-height:none!important;overflow:visible!important}

/* Plain retained reading paragraphs use the shared18px text role; UI labels keep classes. */
body[data-bc-resource-retained] .article-body p:not([class]),body[data-bc-resource-retained] .article-body p.boundary-note{font-size:18px!important}

/* Native article disclosures use the same VI44px interactive target floor. */
[data-bc-resource-rewrite] .rewrite-faq > summary,[data-bc-resource-rewrite] .rewrite-toc-shell > summary{box-sizing:border-box;min-height:44px;padding-block:6px}
[data-bc-resource-rewrite] .rewrite-faq > summary:focus-visible,[data-bc-resource-rewrite] .rewrite-toc-shell > summary:focus-visible{outline:3px solid #93C5FD;outline-offset:3px}

/* Reading-table headers must not inherit legacy overline/caption styling. */
body[data-bc-vi] [data-bc-resource-rewrite] .article-body th{font-size:15px;font-weight:600;line-height:1.65;letter-spacing:0;text-transform:none}

/* Existing rich article layouts retain their content-stack markup and use the reading role. */
body[data-bc-resource-retained-rich] main .content-stack{min-width:0}
body[data-bc-resource-retained-rich] main .content-stack h2{font-size:28px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:0!important}
body[data-bc-resource-retained-rich] main .content-stack p:not(.text-sm):not(.text-xs){font-size:18px!important;line-height:1.8!important}
body[data-bc-resource-retained-rich] main .content-stack th{font-size:15px!important;font-weight:600!important;line-height:1.65!important;letter-spacing:0!important;text-transform:none!important}
body[data-bc-resource-retained-rich] main :is([data-faq-button],details>summary){box-sizing:border-box;min-height:44px}
@media(max-width:600px){body[data-bc-resource-retained-rich] main .content-stack h2{font-size:24px!important}}

/* Rich retained articles reuse their original practical content as semantic lists and matrices. */
body[data-bc-resource-retained-rich] .resource-practical-group{padding-left:0;list-style:none}
body[data-bc-resource-retained-rich] .resource-decision-table{max-width:100%;overflow-x:auto;margin:24px 0;border:1px solid #E2E8F0;border-radius:12px}
body[data-bc-resource-retained-rich] .resource-decision-table:focus-visible{outline:3px solid #2563EB;outline-offset:3px}
body[data-bc-resource-retained-rich] .resource-decision-table table{width:100%;min-width:760px;border-collapse:collapse;font-size:15px;line-height:1.65}
body[data-bc-resource-retained-rich] .resource-decision-table caption{padding:14px;text-align:left;color:#475569;background:#F8FAFC}
body[data-bc-resource-retained-rich] .resource-decision-table :is(th,td){padding:14px;vertical-align:top;text-align:left;border:1px solid #E2E8F0;color:#334155}
body[data-bc-resource-retained-rich] .resource-decision-table thead th{background:#F1F5F9}
body[data-bc-resource-retained-rich] .resource-decision-table tbody th{width:100px;background:#F8FAFC}
body[data-bc-resource-retained-rich] .resource-inline-link{color:#2563EB!important;text-decoration:underline;text-underline-offset:3px}
body[data-bc-resource-retained-rich] main .content-stack section{scroll-margin-top:110px}
body[data-bc-resource-retained-rich] .resource-retained-toc{display:block;min-width:0}
body[data-bc-resource-retained-rich] .resource-retained-toc summary{min-height:44px;box-sizing:border-box;padding:12px 16px;font-size:16px;font-weight:600;cursor:pointer;border:1px solid #E2E8F0;border-radius:12px;background:#F8FAFC}
body[data-bc-resource-retained-rich] .resource-retained-toc summary:focus-visible{outline:3px solid #2563EB;outline-offset:3px}

/* Reserve space for the complete native focus ring when Chrome scrolls FAQ controls into view. */
body[data-bc-vi] [data-bc-resource-rewrite] .rewrite-faq>summary,body[data-bc-resource-retained-rich] main [data-faq-button],body[data-bc-resource-retained-rich] main details>summary{scroll-margin-top:110px;scroll-margin-bottom:16px}

/* Numbered reading steps use the VI primary surface and an opaque white label. */
body[data-bc-resource-retained-rich] main [data-bc-reading-step-number]{background:#2563EB!important;color:#fff!important}

/* Explicit wide reading tables keep prose columns readable inside the existing scroll region. */
body[data-bc-resource-retained-rich] main table[data-bc-reading-table="wide"]{width:100%;min-width:1000px;table-layout:fixed}
body[data-bc-resource-retained-rich] main table[data-bc-reading-table="wide"] :is(th,td){min-width:200px}
body[data-bc-resource-retained-rich] main table[data-bc-reading-table="wide"] :is(th,td):first-child{min-width:120px}

/* Stacked reading steps do not need a connector through the following heading. */
@media(max-width:767px){body[data-bc-resource-retained-rich] .bc-step-line:has(>[data-bc-reading-step-number])::before{display:none}}

/* Large wide-table controls keep their full native focus ring below the sticky navigation. */
body[data-bc-resource-retained-rich] main .bc-vi-table-scroll:has(>table[data-bc-reading-table="wide"]){scroll-margin-top:96px;scroll-margin-bottom:12px}

/* A single labelled native scroller owns ordinary rewritten tables and its full focus ring. */
body[data-bc-vi] [data-bc-resource-rewrite] .rewrite-toc-shell>summary{scroll-margin-top:110px;scroll-margin-bottom:16px}
body[data-bc-vi] [data-bc-resource-rewrite] .bc-resource-table-scroll{overflow:auto;max-height:calc(100svh - 160px);margin:24px 0;scroll-margin-top:96px;scroll-margin-bottom:16px}
body[data-bc-vi] [data-bc-resource-rewrite] .bc-resource-table-scroll>table{display:table!important;max-width:none!important;min-width:100%;overflow:visible!important;margin:0}
body[data-bc-vi] [data-bc-resource-rewrite] .bc-resource-table-scroll:focus-visible{outline:3px solid #2563EB;outline-offset:3px}
