/* insighttestbench.com shared layer: header, buttons, inner-page banner, footer, cookie notice and palette fixes.
   Loaded after style.css on every page (site_meta.py adds the link). */
:root {
    --tb-ink: #0b1020;
    --tb-ink-2: #1c2240;
    --tb-body: #3d4663;
    --tb-muted: #5b6482;
    --tb-violet: #7334c9;
    --tb-violet-deep: #43249a;
    --tb-cyan: #c4b5fd;
    --tb-cyan-deep: #7334c9;
    --tb-mist: #f5f7ff;
    --tb-line: #e2e6f3;
    --tb-grad: linear-gradient(135deg, #43249a 0%, #43249a 45%, #7334c9 100%);
    --tb-radius: 16px;
    --tb-shadow: 0 10px 30px rgba(11, 16, 32, .08);
    --tb-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
    /* the copied template's coral accent becomes the product's violet */
    --theme-primary: #7334c9;
    --theme-primary-dark: #43249a;
    --theme-heading: #0b1020;
}
html { scroll-behavior: smooth; }
body { color: var(--tb-body); overflow-x: clip; }
html { overflow-x: clip; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }
#preloader-active { display: none !important; }

/* ---------- buttons ---------- */
.tb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 46px; padding: 11px 22px; border-radius: 12px; border: 1px solid transparent;
    font: 600 15px/1.2 "Poppins", sans-serif; text-decoration: none !important; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.tb-btn i { font-size: 13px; }
.tb-btn--primary { background: var(--tb-violet-deep); color: #fff !important; box-shadow: 0 8px 20px rgba(67, 36, 154, .28); }
.tb-btn--primary:hover { background: #371d80; color: #fff !important; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(67, 36, 154, .34); }
.tb-btn--ghost { background: #fff; color: var(--tb-ink) !important; border-color: #cfd5ea; }
.tb-btn--ghost:hover { border-color: var(--tb-violet); color: var(--tb-violet-deep) !important; }
.tb-btn--dark { background: rgba(255, 255, 255, .08); color: #fff !important; border-color: rgba(255, 255, 255, .28); }
.tb-btn--dark:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff !important; }
/* Hero primary CTA: brand-gradient pill, same as the other product sites. White text on #43249a is 7.9:1, on #7334c9 7.1:1. */
.tb-btn--grad { background: linear-gradient(135deg, #43249a 0%, #7334c9 100%); color: #fff !important; border-radius: 999px; box-shadow: 0 10px 30px rgba(115, 52, 201, .35); }
.tb-btn--grad:hover { color: #fff !important; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(115, 52, 201, .5); }
.tb-btn--light { background: #fff; color: var(--tb-violet-deep) !important; }
.tb-btn--light:hover { background: #eef0ff; color: #371d80 !important; transform: translateY(-1px); }

/* ---------- header: the shared kit (assets/css/site-header.css, unchanged). Only its palette is set here. ---------- */
:root { --sh-brand: #43249a; --sh-brand-2: #7334c9; --sh-ink: #0b1020; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; color: #43249a; padding: 10px 14px; border-radius: 8px; z-index: 1100; font-weight: 600; }
.skip-link:focus { left: 12px; }

/* ---------- inner-page banner (replaces the stock-photo banner) ---------- */
.slider-area { margin: 0 !important; padding: 0 !important; background: none !important; }
.slider-area .single-slider,
.slider-area .slider-height2 {
    position: relative; min-height: 0 !important; height: auto !important; padding: 72px 0 64px !important;
    background: radial-gradient(900px 380px at 88% -10%, rgba(115, 52, 201, .22), transparent 60%),
                radial-gradient(760px 420px at 4% 110%, rgba(67, 36, 154, .42), transparent 62%),
                linear-gradient(180deg, #0b1020 0%, #141a3c 100%) !important;
    background-image: radial-gradient(900px 380px at 88% -10%, rgba(115, 52, 201, .22), transparent 60%),
                radial-gradient(760px 420px at 4% 110%, rgba(67, 36, 154, .42), transparent 62%),
                linear-gradient(180deg, #0b1020 0%, #141a3c 100%) !important;
}
.slider-area .single-slider::before, .slider-area .overlay::before { display: none !important; }
.slider-area .hero-cap, .slider-area .hero-cap-wrapper, .slider-area .hero-text-wrapper { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; backdrop-filter: none !important; max-width: 860px; margin: 0 auto !important; opacity: 1 !important; transform: none !important; }
.slider-area .hero-cap h1, .slider-area .hero-cap h2 {
    color: #fff !important; font: 700 clamp(30px, 4.4vw, 46px)/1.14 "Poppins", sans-serif !important; letter-spacing: -.02em; margin: 0 !important; text-shadow: none !important;
    -webkit-text-fill-color: #fff; background: none !important; text-transform: none !important;
}
.slider-area .hero-cap p { color: #c9d0ee !important; font-size: 17px !important; line-height: 1.6 !important; margin: 16px auto 0 !important; max-width: 720px; }
@media (max-width: 600px) { .slider-area .single-slider, .slider-area .slider-height2 { padding: 48px 0 44px !important; } .slider-area .hero-cap p { font-size: 16px !important; } }

/* ---------- footer ---------- */
.tb-ft { padding-top: 64px; }
.tb-ft__cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 34px; margin-bottom: 56px; border-radius: 20px; background: linear-gradient(120deg, #43249a 0%, #43249a 55%, #9b6ee0 100%); }
.tb-ft__cta h2 { color: #fff; font: 700 24px/1.25 "Poppins", sans-serif; margin: 0 0 6px; letter-spacing: -.01em; }
.tb-ft .tb-ft__cta p { color: #eef0ff !important; margin: 0 !important; font-size: 15px; line-height: 1.55; max-width: 640px; }
.tb-ft__cta .tb-btn { flex-shrink: 0; }
.tb-ft .tb-ft__cols { grid-template-columns: 1.7fr 1fr 1fr 1fr 1.25fr; }
.tb-ft .vs-footer__col h3 { color: #fff; font: 600 13px/1 "Poppins", sans-serif; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
.tb-ft .vs-footer__col ul { list-style: none; margin: 0; padding: 0; }
.tb-ft .vs-footer__col li { color: #b6bee0; font-size: 14.5px; line-height: 1.45; margin: 0 0 4px; padding: 5px 0; }
.tb-ft .vs-footer__col li a { color: #cdd3f0; display: inline-block; padding: 5px 0; margin: -5px 0; text-decoration: none; }
.tb-ft .vs-footer__col li a:hover { color: #fff; text-decoration: underline; }
.tb-ft p.tagline { color: #b6bee0 !important; font-size: 14.5px; line-height: 1.6; max-width: 330px; }
.tb-ft .tagline a { color: #ddd6fe; }
.tb-ft .vs-footer__social a { width: 42px; height: 42px; }
.tb-ft .vs-footer__bottom, .tb-ft .vs-footer__bottom a { color: #a9b2d6; font-size: 13.5px; }
.tb-ft .vs-footer__bottom a:hover { color: #fff; }
.tb-ft .vs-footer__legal a { display: inline-block; padding: 10px 0; }
@media (max-width: 1100px) { .tb-ft .tb-ft__cols { grid-template-columns: 1fr 1fr 1fr; } .tb-ft .vs-footer__brand-col { grid-column: 1 / -1; } }
@media (max-width: 760px) { .tb-ft__cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; } .tb-ft .tb-ft__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .tb-ft .tb-ft__cols { grid-template-columns: 1fr; } }

/* ---------- cookie notice ---------- */
.cookie-banner { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; max-width: 880px; margin: 0 auto; background: #0f1530; color: #dfe4fa; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; box-shadow: 0 24px 60px rgba(11, 16, 32, .4); padding: 16px 18px; }
.cookie-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.cookie-banner__msg { display: flex; gap: 12px; align-items: flex-start; }
.cookie-banner__msg .icon { color: #ddd6fe; font-size: 18px; margin-top: 2px; }
.cookie-banner__msg p { margin: 0; color: #dfe4fa; font-size: 14px; line-height: 1.55; }
.cookie-banner__msg a { color: #ddd6fe; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn { min-height: 42px; padding: 9px 18px; border-radius: 10px; font: 600 14px/1 "Poppins", sans-serif; cursor: pointer; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.cookie-banner__btn--accept { background: #fff; color: #43249a; border-color: #fff; }
.cookie-banner__btn:hover { border-color: #fff; }
@media (max-width: 680px) { .cookie-banner-inner { flex-direction: column; align-items: stretch; } .cookie-banner__actions { justify-content: flex-end; } }

#scrollUp { background: var(--tb-violet-deep) !important; border-radius: 12px !important; right: 18px !important; bottom: 18px !important; }

/* ---------- privacy policy ---------- */
.tb-legal { padding: 64px 0 72px; }
.tb-legal .container { max-width: 880px; }
.tb-legal, .tb-legal span, .tb-legal p, .tb-legal li { font-family: "Poppins", sans-serif !important; color: var(--tb-body); font-size: 16px; line-height: 1.7; }
.tb-legal h2, .tb-legal h3, .tb-legal h2 span, .tb-legal h3 span, .tb-legal h2 b, .tb-legal h3 b { font-family: "Poppins", sans-serif !important; color: var(--tb-ink) !important; font-weight: 700 !important; }
.tb-legal h2 { font-size: 26px; margin: 0 0 14px; }
.tb-legal h3 { font-size: 19px; margin: 30px 0 10px; }
.tb-legal a { color: var(--tb-violet-deep); text-decoration: underline; }
.tb-legal__box { background: var(--tb-mist); border: 1px solid var(--tb-line); border-radius: 18px; padding: 28px 28px 20px; margin-bottom: 44px; }
.tb-legal__box ul { margin: 0 0 14px; padding-left: 22px; }
.tb-legal__box li { list-style: disc; margin-bottom: 10px; }
.tb-legal__box code { font-family: var(--tb-mono); font-size: .9em; background: #e9ecfa; color: #371d80; padding: 2px 6px; border-radius: 6px; }

/* ---------- legacy inner pages: readable sizes and tap targets ---------- */
.iw-card-eyebrow, .iw-eyebrow, .case-eyebrow { font-size: 12px !important; }
.iw-card-link, a.iw-card-link { display: inline-flex !important; align-items: center; min-height: 40px; }
.iw-copy-btn { min-height: 40px; min-width: 40px; }
.tb-ft .vs-brand { min-height: 40px; }
@media (max-width: 760px) {
    .tb-ft .vs-footer__col li { padding: 0; margin: 0; }
    .tb-ft .vs-footer__col li a { display: flex; align-items: center; min-height: 40px; margin: 0; padding: 0; }
    .tb-ft .vs-footer__col li:not(:has(a)) { min-height: 32px; display: flex; align-items: center; }
    .tb-ft .vs-footer__legal a { min-height: 40px; display: inline-flex; align-items: center; padding: 0; }
}
.iw-tag, .step-tool, code.step-tool { font-size: 12px !important; }
[style*="font-size:11px"], [style*="font-size: 11px"], [style*="font-size:10px"], [style*="font-size: 10px"] { font-size: 12px !important; }
main code, section code, .iw-info-box code { font-size: max(12px, .875em); }
table th { font-size: max(12px, 1em); }
.iw-filter-btn { min-height: 40px; }
a[href$="use-cases.html"][style*="font-size:13px"], a[href$="blogs.html"][style*="font-size:13px"] { display: inline-flex !important; align-items: center; min-height: 40px; font-size: 14px !important; }
a[style*="padding:11px 28px"] { display: inline-flex !important; align-items: center; min-height: 46px; border-radius: 12px !important; }
.tb-ft .vs-footer__bottom a { display: inline-block; padding: 10px 0; }

/* ---------- docs pages: no sideways scroll on phones ---------- */
.doc-layout { grid-template-columns: 240px minmax(0, 1fr) !important; }
.doc-body, .doc-sidebar { min-width: 0; }
.doc-body code, .step-body code, code.inline, .mode-meta, .mode-meta code { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.doc-body pre.doc-code, .doc-body pre { max-width: 100%; overflow-x: auto; }
.doc-body pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.doc-body img { max-width: 100%; height: auto; }
.doc-sidebar h6 { font-size: 12px !important; }
.doc-body h1 { font-size: clamp(26px, 3.4vw, 32px) !important; line-height: 1.2; }
@media (max-width: 992px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr) !important; }
    .doc-sidebar { order: 2; border-top: 1px solid var(--tb-line); padding-top: 20px; margin-top: 12px; font-size: 14.5px !important; }
    .doc-sidebar li { padding: 0 !important; }
    .doc-sidebar a { display: flex; align-items: center; min-height: 40px; }
    .doc-breadcrumb a, .doc-section-card li a { display: inline-flex; align-items: center; min-height: 40px; }
    .doc-section-card li { margin-bottom: 0 !important; }
}
.num, .card-eyebrow, .mode-eyebrow, .ent-eyebrow { font-size: 12px !important; }
[style*="font-size:11.5px"], [style*="font-size: 11.5px"] { font-size: 12px !important; }
.ent-cta-btn, .btn-iw-primary, .btn-iw-outline { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; }
.mode-meta, .step-body, .mode-card, .step-card { min-width: 0; max-width: 100%; }
pre.dark-block, .dark-block { max-width: 100%; overflow-x: auto; }
.inline-code, code.inline-code { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.mode-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
@media (max-width: 760px) {
    .mode-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .mode-card { padding: 20px !important; }
    [style*="padding:36px 40px"] { padding: 24px 20px !important; }
    [style*="padding:36px 40px"] > * { min-width: 0 !important; max-width: 100%; }
    [style*="padding:36px 40px"] a { white-space: normal !important; text-align: center; }
}
.iw-table th { font-size: 12px !important; }
.sh__mark svg { display: block; }
.vs-brand__mark svg { position: relative; z-index: 1; }

/* ---------- InsightTestBench palette (Platform violet: #43249a -> #7334c9; hero light pair #c4b5fd -> #ddd6fe) ---------- */
:root {
    --sh-brand: #43249a; --sh-brand-2: #7334c9; --sh-ink: #0b1020;
    --vs-violet: #7334c9; --vs-violet-deep: #43249a; --vs-cyan: #ddd6fe;
    --vs-grad: linear-gradient(135deg, #43249a 0%, #7334c9 100%);
    --vs-grad-soft: linear-gradient(135deg, rgba(67, 36, 154, .08) 0%, rgba(115, 52, 201, .08) 100%);
    --theme-primary: #43249a; --theme-primary-dark: #371d80;
}

/* ---------- footer newsletter (shared contact service, assets/js/forms.js) ---------- */
.tb-ft__news { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 28px; margin: -24px 0 52px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.tb-ft__news h3 { color: #fff; font: 700 19px/1.3 "Poppins", sans-serif; margin: 0 0 4px; }
.tb-ft .tb-ft__news p { color: #b6bee0 !important; margin: 0 !important; font-size: 14.5px; }
.tb-ft__form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; width: 100%; }
.tb-ft__form input { flex: 1 1 220px; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: 400 15px/1.3 "Poppins", sans-serif; }
.tb-ft__form input::placeholder { color: #a9b2d6; }
.tb-ft__form button { min-height: 46px; padding: 10px 20px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #43249a, #7334c9); color: #fff; font: 600 15px/1 "Poppins", sans-serif; cursor: pointer; }
.tb-ft__form button[disabled] { opacity: .75; cursor: default; }
.tb-ft .tb-ft__status { flex-basis: 100%; min-height: 0; font-size: 14px !important; }
.tb-ft .tb-ft__status:empty { display: none; }
.tb-ft__status[style*="0d9488"] { color: #6ee7b7 !important; }
.tb-ft__status[style*="e5484d"] { color: #fecaca !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) { .tb-ft__news { flex-direction: column; align-items: stretch; padding: 22px 20px; } .tb-ft__form { max-width: none; } }

/* privacy page: share rail buttons match the links; cookie box inside the article */
.post-share button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--tb-line); background: #fff; color: var(--tb-body); cursor: pointer; margin-bottom: 8px; }
.post-share button:hover { color: var(--tb-violet-deep); border-color: #c9b5f0; }
.tb-legal--inline { padding: 0; margin: 8px 0 36px; }
.tb-legal--inline .tb-legal__box { margin-bottom: 0; }
.tb-ft .vs-brand__accent { color: #c4b5fd !important; -webkit-text-fill-color: #c4b5fd !important; background: none !important; }
.pod-card__badge { font-size: 12px !important; }

/* ---------- contrast and size fixes found by the audit ---------- */
main code, section code { color: #9d174d; }
.code-block .comment, .dark-block .comment, .quickstart-block .comment, pre .comment { color: #9aa3bd !important; }
.code-block .prompt, .dark-block .prompt, .quickstart-block .prompt { color: #c4b5fd !important; }
.code-block code, .dark-block code, pre code { color: inherit; }
.post-tldr strong, .post-tldr b { color: #fff !important; }
.post-tldr a { color: #ddd6fe !important; }
.post-tldr .lbl, .post-share .lbl { font-size: 12px !important; }
#contactForm input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; }
#contactForm label[for="cf-consent"] { font-size: 14px !important; line-height: 1.5; }
#contactForm label[for="cf-consent"] a { display: inline-block; padding: 8px 0; margin: -8px 0; }
