/* =====================================================================
   SBET iframe type system  -  ONE shared file for all five iframe pages.
   html[data-sbet-type="home"]   = index-iframe.html  (keeps its bold weights)
   html[data-sbet-type="inner"]  = About, Developers, Indicators, Microdata
   Change a value here and every page follows.
   ===================================================================== */
html[data-sbet-type]{--sbet-font:Gotham,"Gotham SSm A","Gotham SSm B",Arial,sans-serif;--sbet-blurb:#405057;--sbet-title:#111;--sbet-eyebrow:#007a38}
/* Dark mode: titles are white, body/blurb text is light, small green labels use the lighter brand green */
html[data-sbet-type][data-nv-theme="dark"]{--sbet-blurb:#c5d4d1;--sbet-title:#ffffff;--sbet-eyebrow:#4dd68a}

/* 1) FONT - Gotham everywhere (code stays monospace; icon fonts and chart graphics untouched) */
html[data-sbet-type] body,
html[data-sbet-type] body *:not(code):not(pre):not(kbd):not(samp):not(.glyphicon):not(.fa):not(.k-icon){font-family:var(--sbet-font)!important}
html[data-sbet-type] body svg text{font-family:var(--sbet-font)!important}

/* 2) SIZES - the same on every page */
html[data-sbet-type] h1{font-size:39px!important;line-height:39.78px!important;letter-spacing:-1.25px!important}
html[data-sbet-type] .nv-updated-tag,
html[data-sbet-type] .last-updated,
html[data-sbet-type] .eyebrow{font-size:11px!important;letter-spacing:1.3px!important;text-transform:uppercase!important}
/* hero blurb: 15px on all five pages */
html[data-sbet-type] .nv-top-copy > p:not(.nv-updated-tag),
html[data-sbet-type] .mock-hero .hero-inner p,
html[data-sbet-type] .hero-copy > p:not(.last-updated),
html[data-sbet-type] .sbet-hero .subtitle{font-size:15px!important;line-height:23.25px!important;color:var(--sbet-blurb)!important}
/* body copy inside About cards: 14px */
html[data-sbet-type] .about-main p,
html[data-sbet-type] .about-main dd{font-size:14px!important;line-height:1.6!important}

/* 3) WEIGHTS - inner pages are never bold: 400 text, 500 for headings / labels / buttons (home keeps its bold) */
html[data-sbet-type="inner"] body,
html[data-sbet-type="inner"] body *{font-weight:400!important}
html[data-sbet-type="inner"] h1,html[data-sbet-type="inner"] h2,html[data-sbet-type="inner"] h3,
html[data-sbet-type="inner"] h4,html[data-sbet-type="inner"] h5,html[data-sbet-type="inner"] h6,
html[data-sbet-type="inner"] strong,html[data-sbet-type="inner"] b,html[data-sbet-type="inner"] th,
html[data-sbet-type="inner"] label,html[data-sbet-type="inner"] button,html[data-sbet-type="inner"] summary,
html[data-sbet-type="inner"] .btn-show,html[data-sbet-type="inner"] .btn-download,html[data-sbet-type="inner"] .btn-exp,
html[data-sbet-type="inner"] .step-kicker,html[data-sbet-type="inner"] .step-lbl,
html[data-sbet-type="inner"] .step-title,html[data-sbet-type="inner"] .step-ttl,
html[data-sbet-type="inner"] .last-updated,html[data-sbet-type="inner"] .eyebrow,
html[data-sbet-type="inner"] .stat-number,html[data-sbet-type="inner"] .stat-copy,
html[data-sbet-type="inner"] .skip-nav,html[data-sbet-type="inner"] .chart-title{font-weight:500!important}

/* 4) SAME ROLE = SAME SIZE on every inner page */
html[data-sbet-type] .step-title,html[data-sbet-type] .step-ttl{font-size:14px!important}
html[data-sbet-type] .about-main h2,html[data-sbet-type] .chart-title{font-size:14px!important}
html[data-sbet-type] body #showResults.btn-show,html[data-sbet-type] .btn-show,
html[data-sbet-type] .btn-download,html[data-sbet-type] .btn-exp{font-size:12px!important}
html[data-sbet-type] body #showResults.btn-show,html[data-sbet-type] .btn-exp{font-weight:500!important}
html[data-sbet-type] .k-input,html[data-sbet-type] .k-dropdown-wrap .k-input,html[data-sbet-type] .k-multiselect-wrap li{font-size:13px!important}
html[data-sbet-type="inner"] .k-input,html[data-sbet-type="inner"] .k-dropdown-wrap .k-input{font-weight:400!important}
html[data-sbet-type] .notice-pill,html[data-sbet-type] .notice-pill *{font-size:12px!important}
html[data-sbet-type] .stat-copy{font-size:11px!important}
html[data-sbet-type] .callout,html[data-sbet-type] .callout *{font-size:14px!important}
html[data-sbet-type="inner"] .hero-copy ~ *,html[data-sbet-type="inner"] main strong{font-size:inherit}
html[data-sbet-type] body #showResults.btn-show{font-family:var(--sbet-font)!important}
html[data-sbet-type="inner"] h3{font-size:14px!important}
html[data-sbet-type] h1{color:var(--sbet-title)!important}

/* 5) STANDALONE PAGES: header and footer are identical on every page (home included) */
html[data-sbet-type] body .nv-sbet-word{font-weight:700!important}                 /* SBET logo lockup */
html[data-sbet-type] body .nv-sbet-sub,
html[data-sbet-type] body .nv-main-nav a,
html[data-sbet-type] body .nv-header-actions a,html[data-sbet-type] body .nv-header-actions button,
html[data-sbet-type] body .nv-theme-toggle-text,
html[data-sbet-type] body .nv-sbet-footer h2,
html[data-sbet-type] body .nv-fbold,html[data-sbet-type] body .nv-fjoin,
html[data-sbet-type] body .back-btn,html[data-sbet-type] body .small-action{font-weight:500!important}
html[data-sbet-type] body .nv-sbet-footer a:not(.nv-fbold):not(.nv-fjoin),
html[data-sbet-type] body .nv-sbet-footer p,html[data-sbet-type] body .nv-sbet-footer li{font-weight:400!important}
html[data-sbet-type] body .small-action{font-size:11px!important}

/* 6) STANDALONE inner pages: same role = same size and colour as the iframe pages */
html[data-sbet-type="inner"] main h2[style*="font-size:22px"]{font-size:21px!important;color:var(--sbet-title)!important}
html[data-sbet-type="inner"] main p[style*="font-size:13px"],html[data-sbet-type="inner"] main div[style*="font-size:13px"]{font-size:14px!important}
html[data-sbet-type="inner"] .ind-info-body h2,html[data-sbet-type="inner"] .ind-info-body h3{font-size:14px!important;color:var(--sbet-title)!important}
html[data-sbet-type="inner"] .card h2,html[data-sbet-type="inner"] .step-title,html[data-sbet-type="inner"] .step-ttl,html[data-sbet-type="inner"] .chart-title{color:var(--sbet-title)!important}
html[data-sbet-type="inner"] .feature-green h2{color:#fff!important}
html[data-sbet-type] body .back-btn{font-size:13px!important}

/* 7) STANDALONE HOME hero: same size as every other page (stronger selector to beat the home page's own hero rules) */
html[data-sbet-type="home"] body #main-content .nv-top-copy h1{font-size:39px!important;line-height:39.78px!important;letter-spacing:-1.25px!important}
html[data-sbet-type="home"] body #main-content .nv-top-copy .nv-updated-tag{font-size:11px!important;letter-spacing:1.3px!important}
html[data-sbet-type="home"] body #main-content .nv-top-copy > p:not(.nv-updated-tag){font-size:15px!important;line-height:23.25px!important;color:var(--sbet-blurb)!important}

/* 8) DARK MODE: small green labels and kickers stay readable (AA contrast on dark cards) */
html[data-sbet-type][data-nv-theme="dark"] .nv-updated-tag,
html[data-sbet-type][data-nv-theme="dark"] .last-updated,
html[data-sbet-type][data-nv-theme="dark"] .eyebrow,
html[data-sbet-type][data-nv-theme="dark"] .step-kicker,
html[data-sbet-type][data-nv-theme="dark"] .step-lbl{color:var(--sbet-eyebrow)!important}
/* dark: the About "Regional Index" green card keeps white title */
html[data-sbet-type] .feature-green h2{color:#fff!important}
html[data-sbet-type="home"][data-nv-theme="dark"] body #main-content .nv-top-copy .nv-updated-tag{color:var(--sbet-eyebrow)!important}

/* 9) PHONE + DARK POLISH, shared by every page */
@media(max-width:700px){ html[data-sbet-type] br.nv-br{display:none} }           /* hero blurb flows naturally on phones */
html[data-sbet-type] body .nv-fbold{color:var(--sbet-eyebrow)!important}           /* footer "Partner with NFIB" = same green on every page */
html[data-sbet-type][data-nv-theme="dark"] body .back-btn{background:#142126!important;border-color:#314247!important;color:#fff!important}
html[data-sbet-type][data-nv-theme="dark"] body .back-btn:hover{background:#1b2d33!important}
html[data-sbet-type] body .nv-sbet-footer .nv-fbold,html[data-sbet-type] body .nv-sbet-footer a.nv-fbold,html[data-sbet-type] body .nv-sbet-footer span.nv-fbold{color:var(--sbet-eyebrow)!important}

/* 10) DARK MODE: every title is the same pure white on every page (beats each page's own off-white shades) */
html[data-sbet-type][data-nv-theme="dark"][data-sbet-type] body :is(h1,h2,h3,.step-title,.step-ttl,.chart-title,.stat-number,.nv-faq h2):not(.info *){color:#ffffff!important}
html[data-sbet-type][data-nv-theme="dark"][data-sbet-type] body :is(.nv-faq-item summary){color:#ffffff!important}
html[data-sbet-type="home"][data-nv-theme="dark"] body #main-content .nv-top-copy h1{color:#ffffff!important}

/* 11) HOW-TO GUIDE + CHART CAPTIONS (Indicators and Microdata) and slightly larger small labels */
html[data-sbet-type] .sbet-guide{margin:0 0 14px;background:#fff;border:1px solid #e0e0e0;border-radius:10px}
html[data-sbet-type] .sbet-guide > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 18px}
html[data-sbet-type] .sbet-guide > summary::-webkit-details-marker{display:none}
html[data-sbet-type] .sbet-guide > summary::after{content:"";margin-left:auto;flex:0 0 auto;width:9px;height:9px;border-right:2px solid #007a38;border-bottom:2px solid #007a38;transform:rotate(45deg);margin-top:-3px}
html[data-sbet-type] .sbet-guide[open] > summary::after{transform:rotate(-135deg);margin-top:3px}
html[data-sbet-type] .sbet-guide > summary:focus-visible{outline:3px solid #007a38;outline-offset:2px;border-radius:10px}
html[data-sbet-type] .sbet-guide-icon{flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:#00AD50;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:500}
html[data-sbet-type] .sbet-guide-title{font-size:14px;font-weight:500;color:var(--sbet-title)}
html[data-sbet-type] .sbet-guide-hint{font-size:12px;font-weight:400;color:#53666d}
html[data-sbet-type] .sbet-guide-body{padding:2px 22px 16px 58px;color:var(--sbet-blurb);font-size:14px;line-height:1.6}
html[data-sbet-type] .sbet-guide-body ol{margin:0;padding-left:18px}
html[data-sbet-type] .sbet-guide-body li{margin:0 0 8px;padding-left:4px}
html[data-sbet-type] .sbet-guide-body li:last-child{margin-bottom:0}
html[data-sbet-type] .sbet-guide-body strong{font-weight:500;color:var(--sbet-title)}
html[data-sbet-type] .sbet-chart-caption{margin:0 0 8px;text-align:center;font-size:12px;line-height:1.5;font-weight:400;color:#53666d}
@media(max-width:820px),(hover:none){html[data-sbet-type] .sbet-hover-only{display:none}}
@media(max-width:700px){
  html[data-sbet-type] .sbet-guide-hint{display:none}
  html[data-sbet-type] .sbet-guide-body{padding:2px 16px 14px 16px}
  html[data-sbet-type] .step-kicker,html[data-sbet-type] .step-lbl{font-size:11px!important}
  html[data-sbet-type] .f-col label,html[data-sbet-type] .filter-field label,html[data-sbet-type] .filters-card label:not(.sr-only){font-size:12px!important}
}
html[data-sbet-type] .step-kicker,html[data-sbet-type] .step-lbl{font-size:11px!important}
html[data-sbet-type][data-nv-theme="dark"] .sbet-guide{background:#172225;border-color:#314247}
html[data-sbet-type][data-nv-theme="dark"] .sbet-guide-hint,html[data-sbet-type][data-nv-theme="dark"] .sbet-chart-caption{color:#b7c8c4}
html[data-sbet-type][data-nv-theme="dark"] .sbet-guide > summary::after{border-color:#4dd68a}
html[data-sbet-type][data-nv-theme="dark"] .sbet-guide > summary:focus-visible{outline-color:#4dd68a}
html[data-sbet-type][data-nv-theme="dark"][data-sbet-type] body .sbet-guide-title,html[data-sbet-type][data-nv-theme="dark"][data-sbet-type] body .sbet-guide-body strong{color:#ffffff!important}
html[data-sbet-type="inner"] .ind-info-body h2,html[data-sbet-type="inner"] .ind-info-body h3{margin:0 0 5px!important;padding:0!important;line-height:1.15!important}

/* 12) EMBEDDED PAGES: the how-to guide opens as an overlay panel, so opening it never changes the page height (no new scrollbar in the embed) */
html[data-sbet-type] .sbet-guide-overlay{position:relative}
html[data-sbet-type] .sbet-guide-overlay[open]{border-bottom-left-radius:0;border-bottom-right-radius:0}
html[data-sbet-type] .sbet-guide-overlay[open] > .sbet-guide-body{position:absolute;left:-1px;right:-1px;top:100%;z-index:60;background:#fff;border:1px solid #e0e0e0;border-top:0;border-radius:0 0 10px 10px;box-shadow:0 16px 32px rgba(12,34,36,.18);padding-top:8px}

/* 13) RESET FILTERS link and code-block COPY buttons (same brand colours as the rest of the site) */
html[data-sbet-type] .sbet-reset{background:none;border:0;padding:6px 4px;font:inherit;font-size:12px;font-weight:500;color:#007a38;text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}
html[data-sbet-type] .sbet-reset:hover{color:#005a2a}
html[data-sbet-type] .sbet-reset:focus-visible{outline:3px solid #007a38;outline-offset:2px;border-radius:4px}
html[data-sbet-type] .sbet-reset-row{display:flex;justify-content:flex-end;margin:0 0 6px}
html[data-sbet-type][data-nv-theme="dark"] .sbet-reset{color:#4dd68a}
html[data-sbet-type][data-nv-theme="dark"] .sbet-reset:hover{color:#9ff0c1}
html[data-sbet-type][data-nv-theme="dark"] .sbet-reset:focus-visible{outline-color:#4dd68a}
@media(min-width:821px){html[data-sbet-type] body .show-row{display:flex!important;align-items:center;justify-content:center;gap:22px}}
@media(max-width:820px){html[data-sbet-type] body .show-row .sbet-reset{display:block;margin:10px auto 0}}
html[data-sbet-type] .sbet-code-wrap{position:relative}
html[data-sbet-type] .sbet-code-wrap pre{padding-right:84px!important}
html[data-sbet-type] .sbet-copy{position:absolute;top:8px;right:8px;z-index:2;font:inherit;font-size:12px;font-weight:500;line-height:1;padding:7px 11px;border:1px solid #c9d6d2;border-radius:6px;background:#fff;color:#007a38;cursor:pointer}
html[data-sbet-type] .sbet-copy:hover{background:#f0faf5}
html[data-sbet-type] .sbet-copy:focus-visible{outline:3px solid #007a38;outline-offset:2px}
html[data-sbet-type] pre[style*="#1c2a2e"] + .sbet-copy{background:#2a3b40;color:#e8f1ef;border-color:#41575d}
html[data-sbet-type] pre[style*="#1c2a2e"] + .sbet-copy:hover{background:#33474d}
