/* Blueport site theme (Nov 2026). Loaded AFTER a page's own styles on every page
   except the homepage, which has the same look built in (css/home.css).
   It brings the older pages into line with the homepage: geometric display type
   (Outfit) over Inter, centred section heads, 4px rounded-rectangle buttons,
   16px rounded cards on a light blue tint. Brand colours are unchanged.
   Needs the Outfit + Inter font link that scripts/apply-theme.mjs adds with it. */
:root { --bp-display: "Outfit", "Avant Garde", "Century Gothic", ui-sans-serif, system-ui, sans-serif; --bp-tint: #EAF5FE; }

body { font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* display type */
h1, h2, h3, .pc-h2, .pc-card-head h3, .stat .v, .post-head h1 {
  font-family: var(--bp-display) !important; font-weight: 600 !important; letter-spacing: -.018em !important;
}
h1 { line-height: 1.08 !important; }
h2, .pc-h2 { line-height: 1.14 !important; }
h3 { line-height: 1.22 !important; letter-spacing: -.01em !important; }
header.site .brand .wm, .fo-brand .wm { font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important; font-weight: 800 !important; }

/* the marker-pen highlight and mono eyebrows belong to the old look */
.hl { background: none !important; box-shadow: none !important; }
.hl::before, .hl::after { display: none !important; }
.eyebrow, .hero-eyebrow {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important; font-size: 14px !important; font-weight: 600 !important;
  letter-spacing: 0 !important; text-transform: none !important;
}

/* buttons: rounded rectangles */
.btn, a.btn, button.btn, .fo-cta, .nav-cta, .switch, .switch a, .ins-tabs a, .post-cta .btn {
  border-radius: 4px !important;
}
.btn { font-weight: 600 !important; letter-spacing: 0 !important; }
.btn .arrow { display: none !important; }

/* section heads: centred */
.sec-head { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head .sec-sub, .sec-head p { margin-left: auto; margin-right: auto; }
.sec-head .eyebrow { justify-content: center; }
.why-grid .sec-head, .why-grid h2 { text-align: left; }

/* cards: one radius, soft navy shadow, no hairline boxes */
.prod, .pf, .ind, .wp, .step, .term, .credit, .practice, .pc-item, .pc-map, .pc-sent, .tip-facts, .ins-empty, .take, .card, .linkcard, .plan {
  border-radius: 16px !important;
}
.pc-card { border-radius: 16px !important; }
.cert { border-radius: 12px !important; }
.xsell, .band { border-radius: 24px !important; }
.pc-form input, .pc-form textarea, input[type="text"], input[type="email"], input[type="tel"], textarea { border-radius: 4px !important; }

/* light blue tint instead of grey canvas */
body { background-color: #fff; }
.logos, .ins-hero, .post-hero { background-color: var(--bp-tint); }

/* ---------- the homepage hero, as a band, on product and Insights pages ---------- */
html { overflow-x: clip; }
main > .hero, .ins-head, .post-head { position: relative; isolation: isolate; color: #fff !important; background: none !important; border: 0 !important; }
main > .hero::before, .ins-head::before, .post-head::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--bl, calc(50% - 50vw)); width: var(--bw, 100vw); z-index: -2; background: linear-gradient(180deg, #040A17 0%, #06122A 60%, #050E20 100%); }
main > .hero { padding-top: 72px !important; padding-bottom: 170px !important; }
.ins-head, .post-head { padding: 64px 0 170px !important; margin: 0 0 44px !important; max-width: none !important; }
main.post-wrap { padding-top: 0 !important; }
.crumbs { padding: 18px 0 !important; margin: 0 !important; }
img.post-hero { display: none !important; }
#scene.in-band { position: absolute; top: 0; bottom: 0; left: var(--bl, calc(50% - 50vw)); width: var(--bw, 100vw); z-index: -1; overflow: hidden; pointer-events: none; }
#scene.in-band canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease .1s; }
.scene-on #scene.in-band canvas { opacity: 1; }
main > .hero h1, main > .hero h2, .ins-head h1, .post-head h1 { color: #fff !important; }
main > .hero .lead, main > .hero p, .ins-head .lead, .ins-head p, .post-head p, .post-head .post-sub, .post-head .post-meta, .post-head .post-meta * { color: rgba(255, 255, 255, .76) !important; }
main > .hero .lead b, main > .hero .lead strong, .ins-head strong { color: #fff !important; }
main > .hero .eyebrow, .ins-head .eyebrow, .post-head .eyebrow, main > .hero .hero-eyebrow { color: #9AD4FF !important; background: none !important; border: 0 !important; padding-left: 0 !important; }
main > .hero .hero-proof, main > .hero .hero-proof span { color: rgba(255, 255, 255, .7) !important; }
main > .hero .btn-secondary { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .4) !important; box-shadow: none !important; }
.post-head .tag, .post-head .mpill { background: rgba(255, 255, 255, .1) !important; color: #fff !important; border-color: rgba(255, 255, 255, .22) !important; }

/* sections: white and light blue only; dark navy for feature bands */
main > section:nth-of-type(even):not(.agents):not(.pc), .band-tint { background-color: var(--bp-tint) !important; border-color: transparent !important; }
.prod, .pf, .wp, .ind, .linkcard, .plan, .take { border-color: transparent !important; background-color: var(--bp-tint); }
main > section:nth-of-type(even) .prod, main > section:nth-of-type(even) .pf, main > section:nth-of-type(even) .linkcard, main > section:nth-of-type(even) .plan { background-color: #fff; }
.eyebrow { color: #1E8ED6; }

/* ---------- same header as the homepage: fixed, clear over the dark hero, white once scrolled ---------- */
:root { --navy: #0A1931; --orange: #FE9900; --line: #DCE3ED; --gut: 32px; --head: 76px; --sans: "Inter", ui-sans-serif, system-ui, sans-serif; }
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--head); color: #fff; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
header.site > .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
header.site.solid { background: rgba(255, 255, 255, .94); color: var(--navy); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .wm { font-family: "Inter", var(--sans); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
nav.top { display: flex; gap: 34px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
nav.top a { position: relative; padding: 8px 0; opacity: .78; transition: opacity .2s ease; }
nav.top a:hover, nav.top a.on { opacity: 1; }
nav.top a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1.5px; background: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-login { font-size: 14px; font-weight: 500; opacity: .78; }
#nav-actions { display: flex; align-items: center; }
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; cursor: pointer; opacity: .85; }
.mobile-menu { display: none; background: #fff; color: var(--navy); border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(10, 25, 49, .35); padding: 8px var(--gut) 18px; }
.mobile-menu a { display: block; padding: 13px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.open { display: block; }

header.site { background: transparent; border: 0 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
header.site > .wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); justify-content: flex-start; }
header.site:not(.solid):not(.solid-always), header.site:not(.solid):not(.solid-always) nav.top a, header.site:not(.solid):not(.solid-always) .brand, header.site:not(.solid):not(.solid-always) .nav-login { color: #fff !important; }
header.site.solid nav.top a, header.site.solid-always nav.top a, header.site.solid .brand, header.site.solid-always .brand { color: var(--navy) !important; }
header.site.solid-always { background: rgba(255, 255, 255, .94); color: var(--navy); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
header.site nav.top a { text-decoration: none; }
main > .hero { padding-top: calc(var(--head) + 72px) !important; }
main.post-wrap { padding-top: 0 !important; }
main.post-wrap .ins-head { padding-top: calc(var(--head) + 64px) !important; }
main.post-wrap .crumbs { padding-top: calc(var(--head) + 18px) !important; }
@media (max-width: 860px) { :root { --gut: 22px; --head: 66px; } nav.top, .nav-login { display: none !important; } .nav-right { margin-left: auto; } .burger { display: inline-flex !important; } }

header.site:not(.solid):not(.solid-always) .brand .wm { color: #fff !important; }
header.site.solid .brand .wm, header.site.solid-always .brand .wm { color: var(--navy) !important; }

/* ---------- Insights: category tree beside the listings ---------- */
.ins-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.ins-tree { position: sticky; top: calc(var(--head) + 20px); max-height: calc(100vh - var(--head) - 40px); overflow-y: auto; padding: 4px 6px 20px 0; font-size: 14.5px; }
.ins-tree summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.ins-tree summary::-webkit-details-marker { display: none; }
.ins-tree summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; opacity: .7; }
.ins-tree details[open] > summary::before { transform: rotate(45deg); }
.ins-tree summary span { margin-left: auto; font-size: 12.5px; font-weight: 500; color: #6B7A93; background: var(--bp-tint); border-radius: 4px; padding: 2px 7px; }
.tree-group { border-top: 1px solid var(--line); padding: 14px 0 10px; }
.tree-group:last-child { border-bottom: 1px solid var(--line); }
.tree-group > summary { font-family: var(--bp-display); font-size: 19px; font-weight: 600; color: var(--navy); padding: 2px 0 8px; }
.tree-platform { margin-left: 15px; }
.tree-platform > summary { font-weight: 600; color: var(--navy); padding: 7px 0; }
.tree-platform ul { list-style: none; margin: 2px 0 10px 15px; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.tree-platform li { margin: 0; }
.tree-platform a { display: block; padding: 6px 0; line-height: 1.4; color: #43526B; text-decoration: none; }
.tree-platform a:hover { color: #1E8ED6; }
.ins-main .ins-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
@media (max-width: 1000px) { .ins-layout { grid-template-columns: 1fr; gap: 28px; } .ins-tree { position: static; max-height: none; } }

/* ---------- Insights articles: documentation layout (tree left, article right, no hero band) ---------- */
.tree-filter { display: block; margin: 0; padding: 0 0 14px; position: sticky; top: 0; z-index: 1; background: #fff; }
.tree-filter span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tree-filter input { width: 100%; height: 42px; padding: 0 12px; font: 400 14.5px/1 "Inter", sans-serif; color: var(--navy); background: #fff; border: 1px solid #C9D3E0; border-radius: 4px !important; }
.tree-filter input:focus { outline: none; border-color: #1E8ED6; box-shadow: 0 0 0 3px rgba(30, 142, 214, .18); }
.tree-none { font-size: 14px; color: #6B7A93; margin: 0 0 12px; }
.tree-group > summary a { color: inherit; text-decoration: none; }
.tree-platform a.current { color: #1E8ED6 !important; font-weight: 600; margin-left: -15px; padding-left: 13px; border-left: 2px solid #1E8ED6; }
.tree-platform li[hidden], .tree-platform[hidden] { display: none; }
main.doc-mode .crumbs { padding-bottom: 22px !important; border-bottom: 1px solid var(--line); margin-bottom: 34px !important; }
main.doc-mode .post-head { color: var(--navy) !important; padding: 0 0 26px !important; margin: 0 0 26px !important; border-bottom: 1px solid var(--line) !important; isolation: auto; }
main.doc-mode .post-head::before { display: none !important; }
main.doc-mode .post-head h1 { color: var(--navy) !important; font-size: clamp(28px, 2.9vw, 40px) !important; }
main.doc-mode .post-head p, main.doc-mode .post-head .post-sub { color: #43526B !important; }
main.doc-mode .post-head .post-meta, main.doc-mode .post-head .post-meta * { color: #43526B !important; }
main.doc-mode .post-head .tag, main.doc-mode .post-head .mpill { background: var(--bp-tint) !important; color: var(--navy) !important; border-color: transparent !important; }
main.doc-mode .post { max-width: 820px; margin: 0 !important; }
main.doc-mode .ins-layout { padding-bottom: 80px; }


/* ---------- Insights pages run the full width of the window, like Salesforce Help ---------- */
main.post-wrap > .wrap { max-width: none !important; width: 100% !important; padding-left: var(--gut) !important; padding-right: var(--gut) !important; }
main.doc-mode .post { max-width: none !important; width: 100% !important; }
main.doc-mode .post > *, main.doc-mode .post-body, main.doc-mode .post-toc { max-width: none !important; }
body:has(main.post-wrap) header.site > .wrap { max-width: none; }
