/* stocksonar v3: pages outside the five trust pages (cookie policy, 404, research).
   Loaded after ss-v3.css, uses its tokens. Built with build_extra.py. Flat: no shadows. */

/* ---------- cookie policy: the Complianz document in the doc-page type ---------- */
.ss3 .cp-doc #cmplz-document { max-width: none; margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink-2); text-align: left; }
.ss3 .cp-doc #cmplz-document > p:first-child { margin: 0 0 8px; font: 500 14px/20px var(--font); color: var(--brand-800); }
.ss3 .cp-doc #cmplz-document > p:first-child i { font-style: normal; }
.ss3 .cp-doc #cmplz-document > p:first-child br { display: none; }
.ss3 .cp-doc #cmplz-document h2 {
  scroll-margin-top: 96px; margin: 40px 0 16px; padding: 40px 0 0; border: 0; border-top: 1px solid var(--border);
  font: 800 clamp(24px, 2.3vw, 30px)/1.15 var(--font); letter-spacing: -0.015em; color: var(--ink); text-transform: none;
}
.ss3 .cp-doc #cmplz-document h3 { margin: 28px 0 10px; padding: 0; border: 0; font: 700 19px/1.3 var(--font); color: var(--ink); text-transform: none; }
.ss3 .cp-doc #cmplz-document p, .ss3 .cp-doc #cmplz-document li, .ss3 .cp-doc #cmplz-document td { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.ss3 .cp-doc #cmplz-document p + p { margin-top: 16px; }
.ss3 .cp-doc #cmplz-document ul { margin: 16px 0; padding-left: 22px; list-style: disc; }
.ss3 .cp-doc #cmplz-document li + li { margin-top: 8px; }
.ss3 .cp-doc #cmplz-document li::marker { color: var(--brand-600); }
.ss3 .cp-doc #cmplz-document a { color: var(--brand-800); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ss3 .cp-doc #cmplz-document a:hover { color: var(--brand-950); }
.ss3 .cp-doc #cmplz-document a[target=_blank]::after { content: none; }
.ss3 .cp-doc #cmplz-document a:focus { border: 0; padding: 0; }
.ss3 .cp-doc #cmplz-document a:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }
.ss3 .cp-doc #cmplz-document [class^="cmplz-contact-"] { color: var(--ink); }

/* the consent controls Complianz renders in "Manage your consent settings" */
.ss3 .cp-doc #cmplz-manage-consent-container-nojavascript { font-size: 15px; color: var(--ink-3); }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories { margin-top: 16px; display: grid; gap: 8px; }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category { margin: 0; background: var(--subtle); border-radius: 20px; overflow: hidden; }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category:not(:last-child) { margin-bottom: 0; }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header { padding: 14px 18px 14px 22px; gap: 14px; background: transparent; }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-category-title { font: 600 16px/1.3 var(--font); color: var(--ink); }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-always-active { font: 500 14px/1.3 var(--font); color: var(--brand-800); }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-description { padding: 0 22px 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-category-toggle { width: 28px; height: 28px; border-radius: 999px; color: var(--ink-2); }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-category-toggle:hover { background: var(--muted); }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-category-toggle:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.ss3 .cp-doc #cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-icon svg { width: 14px; height: 14px; fill: currentColor; }
/* the on/off switch, same as the banner's */
.ss3 .cp-doc .cmplz-banner-checkbox { position: relative; display: flex; align-items: center; }
.ss3 .cp-doc .cmplz-banner-checkbox input.cmplz-consent-checkbox { position: absolute; inset: 0; width: 42px; height: 24px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ss3 .cp-doc .cmplz-banner-checkbox .cmplz-label { position: relative; display: block; width: 42px; height: 24px; margin: 0; padding: 0; border-radius: 999px; background: #636363; cursor: pointer; transition: background-color 160ms ease; }
.ss3 .cp-doc .cmplz-banner-checkbox .cmplz-label::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; transition: transform 160ms ease; }
.ss3 .cp-doc .cmplz-banner-checkbox input:checked + .cmplz-label { background: var(--brand-800); }
.ss3 .cp-doc .cmplz-banner-checkbox input:checked + .cmplz-label::before { transform: translateX(18px); }
.ss3 .cp-doc .cmplz-banner-checkbox input:focus-visible + .cmplz-label { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.ss3 .cp-doc .cmplz-banner-checkbox .cmplz-label .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ss3 .cp-doc .cmplz-always-active .cmplz-banner-checkbox { display: none; }

/* our cookie table, moved into "Placed cookies" by the page script */
.ss3 .cp-cookies { margin: 8px 0 0; }
.ss3 .cp-cookies .matrix td:first-child { white-space: normal; min-width: 180px; }
.ss3 .cp-cookies .matrix code { font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); word-break: break-word; }
.ss3 .cp-cookies .cp-note { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ss3 .cp-table-w:empty { display: none; }
.ss3 .doc-body > .cp-table-w { margin-top: 40px; }

/* ---------- 404 ---------- */
.ss3 .e4 { padding: clamp(40px, 6vw, 88px) 0 var(--section-y); }
.ss3 .e4-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ss3 .e4-copy .chip { margin-bottom: 20px; }
.ss3 .e4-copy .d-lg { max-width: 760px; }
.ss3 .e4-copy .lede { margin-top: 20px; max-width: 620px; }
.ss3 .e4-links { margin: 36px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 720px; }
.ss3 .e4-link {
  position: relative; display: grid; gap: 4px; height: 100%; padding: 18px 52px 18px 22px; border-radius: 20px;
  background: var(--subtle); text-decoration: none; color: var(--ink); transition: background-color 160ms ease;
}
.ss3 .e4-link:hover { background: var(--brand-50); }
.ss3 .e4-link:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.ss3 .e4-link-t { font: 700 17px/1.3 var(--font); }
.ss3 .e4-link-d { font: 400 15px/1.45 var(--font); color: var(--ink-2); }
.ss3 .e4-link .arrow { position: absolute; top: 20px; right: 20px; width: 16px; height: 16px; background: var(--brand-800); -webkit-mask: url("https://stocksonar.ai/stocksonar/v3/arrow-right.svg") center / contain no-repeat; mask: url("https://stocksonar.ai/stocksonar/v3/arrow-right.svg") center / contain no-repeat; transition: transform 160ms ease; }
.ss3 .e4-link:hover .arrow { transform: translateX(3px); }
.ss3 .e4-visual { display: flex; justify-content: center; }
.ss3 .e4-art { width: 100%; max-width: 520px; height: auto; overflow: visible; }

/* art colours: the app's ea-* roles on the site's brand ramp */
.ss3 .e4-art .ea-back { fill: var(--subtle); }
.ss3 .e4-art .ea-line { stroke: var(--border-strong); }
.ss3 .e4-art .ea-mark { stroke: var(--brand-600); }
.ss3 .e4-art .ea-dot { fill: var(--brand-600); }
.ss3 .e4-art .ea-halo { fill: var(--brand-200); }
.ss3 .e4-art .ea-badge { fill: var(--brand-50); }
.ss3 .e4-art .ea-stop { stop-color: var(--brand-500); }

/* motion, from the app's spec: 5 s sweep; the reticle tightens as the beam passes (1.49 s) */
.ss3 .e4-art .sweep, .ss3 .e4-art .wave, .ss3 .e4-art .emitter-halo { transform-box: view-box; transform-origin: 180px 120px; }
.ss3 .e4-art .reticle { transform-box: view-box; transform-origin: 230.883px 151.795px; }
.ss3 .e4-art .lost-pulse, .ss3 .e4-art .lost-core { transform-box: view-box; transform-origin: 304px 60px; }
@media (prefers-reduced-motion: no-preference) {
  .ss3 .e4-art .sweep { animation: e4-sweep 5s linear infinite; }
  .ss3 .e4-art .reticle { animation: e4-reticle 5s ease-in-out infinite; }
  .ss3 .e4-art .wave-1 { animation: e4-wave-1 3s cubic-bezier(.33, 1, .68, 1) infinite; }
  .ss3 .e4-art .wave-2 { animation: e4-wave-2 3s cubic-bezier(.33, 1, .68, 1) 1.5s infinite backwards; }
  .ss3 .e4-art .lost-blip { animation: e4-drift 4s ease-in-out infinite; }
  .ss3 .e4-art .lost-pulse { animation: e4-pulse 2.4s cubic-bezier(.33, 1, .68, 1) infinite; }
  .ss3 .e4-art .lost-core { animation: e4-sweep 8s linear infinite; }
  .ss3 .e4-art .drift-trail { animation: e4-trail 1.2s linear infinite; }
  .ss3 .e4-art .emitter-halo { animation: e4-halo 1.5s cubic-bezier(.33, 1, .68, 1) infinite; }
}
@keyframes e4-sweep { to { transform: rotate(360deg); } }
@keyframes e4-reticle { 0%, 29.8% { transform: scale(1); opacity: .5; } 38.8% { transform: scale(.85); opacity: 1; } 47.8%, 100% { transform: scale(1); opacity: .5; } }
@keyframes e4-wave-1 { from { transform: scale(.85); opacity: .45; } to { transform: scale(1.15); opacity: 0; } }
@keyframes e4-wave-2 { from { transform: scale(.85); opacity: .22; } to { transform: scale(1.15); opacity: 0; } }
@keyframes e4-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -2px); } }
@keyframes e4-pulse { from { transform: scale(1); opacity: .3; } to { transform: scale(1.6); opacity: 0; } }
@keyframes e4-trail { to { stroke-dashoffset: -12; } }
@keyframes e4-halo { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

@media (max-width: 960px) {
  .ss3 .e4-grid { grid-template-columns: minmax(0, 1fr); }
  .ss3 .e4-visual { order: -1; justify-content: flex-start; }
  .ss3 .e4-art { max-width: 340px; }
}
@media (max-width: 600px) {
  .ss3 .e4-links { grid-template-columns: minmax(0, 1fr); }
  .ss3 .e4-art { max-width: 260px; margin-left: -20px; }
}
/* Complianz's "synchronized with cookiedatabase.org (not synced yet)" line: the sync is off */
.ss3 .cp-doc #cmplz-document p:has(> a[href*="cookiedatabase.org"]) { display: none; }
.ss3 .cp-doc #cmplz-document > p:first-child + h2 { margin-top: 28px; padding-top: 0; border-top: 0; }
.ss3 .cp-cookies .matrix td:first-child { min-width: 0; width: 34%; }
.ss3 .cp-cookies .matrix td:nth-child(3), .ss3 .cp-cookies .matrix td:nth-child(4) { white-space: nowrap; }
.ss3 .cp-cookies .cp-by { display: block; font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) {
  .ss3 .cp-cookies .matrix td:first-child { width: auto; }
  .ss3 .cp-cookies .matrix td { flex-wrap: wrap; }
  .ss3 .cp-cookies .cp-by { flex-basis: 100%; margin-top: 2px; }
  .ss3 .cp-cookies .matrix code { word-break: normal; overflow-wrap: anywhere; }
}

/* ---------- Theme Builder header/footer (non-canvas pages: 404, research, posts) ---------- */
.elementor-location-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 30; }
.elementor-location-header .ss3 .nav { position: static; }
.elementor-location-header .elementor-element, .elementor-location-footer .elementor-element { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }

/* ---------- blog: single post ---------- */
.ss3 .e-con.post-page, .ss3 .e-con.archive-page { width: 100%; }
.ss3 .e-con.post-head, .ss3 .e-con.archive-body { display: block !important; }
.ss3 .post-head { padding-top: clamp(28px, 4vw, 56px); }
.ss3 .crumbs { margin-bottom: 18px; font: 600 12px/16px var(--font); letter-spacing: .06em; text-transform: uppercase; }
.ss3 .crumbs a { color: var(--brand-800); text-decoration: none; }
.ss3 .crumbs a:hover { color: var(--brand-950); }
.ss3 .post-title .elementor-heading-title, .ss3 .archive-title .elementor-heading-title {
  max-width: 980px; margin: 0; font: 800 clamp(34px, 4.6vw, 60px)/1.04 var(--font); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance;
}
.ss3 .post-lede .elementor-heading-title { max-width: 820px; margin: 20px 0 0; font: 400 clamp(18px, 1.6vw, 22px)/1.5 var(--font); color: var(--ink-2); }
.ss3 .e-con.post-meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); max-width: 980px; }
.ss3 .post-meta, .ss3 .post-meta .elementor-heading-title { font: 500 14px/20px var(--font); color: var(--brand-800); }
.ss3 .post-meta .elementor-widget-html, .ss3 .post-meta .elementor-widget-heading { width: auto; }
.ss3 .post-meta a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ss3 .post-meta a:hover { color: var(--brand-800); }
.ss3 .post-updated .elementor-heading-title { color: var(--ink-2); }
.ss3 .post-page .doc { padding-top: clamp(40px, 5vw, 72px); }
.ss3 .toc-w.is-empty { visibility: hidden; }

/* the article body: Gutenberg blocks in the doc-page type */
.ss3 .post-body { font: 400 17px/1.65 var(--font); color: var(--ink-2); }
.ss3 .post-body > * + * { margin-top: 18px; }
.ss3 .post-body h2 { scroll-margin-top: 110px; margin: 48px 0 16px; padding-top: 40px; border-top: 1px solid var(--border); font: 800 clamp(24px, 2.3vw, 30px)/1.15 var(--font); letter-spacing: -0.015em; color: var(--ink); }
.ss3 .post-body h3 { margin: 32px 0 10px; font: 700 19px/1.3 var(--font); color: var(--ink); }
.ss3 .post-body p, .ss3 .post-body li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.ss3 .post-body p.has-small-font-size { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ss3 .post-body strong, .ss3 .post-body b { color: var(--ink); font-weight: 600; }
.ss3 .post-body a { color: var(--brand-800); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ss3 .post-body a:hover { color: var(--brand-950); }
.ss3 .post-body ul, .ss3 .post-body ol { margin: 16px 0 0; padding-left: 22px; }
.ss3 .post-body li + li { margin-top: 8px; }
.ss3 .post-body li::marker { color: var(--brand-600); }
.ss3 .post-body figure { margin: 24px 0 0; }
.ss3 .post-body .wp-block-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; }
.ss3 .post-body .wp-block-table table { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.ss3 .post-body .wp-block-table th { padding: 12px 18px; background: var(--subtle); border: 0; font: 600 12px/16px var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); text-align: left; }
.ss3 .post-body .wp-block-table td { padding: 13px 18px; border: 0; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.5; color: var(--ink-2); vertical-align: top; background: transparent; }
.ss3 .post-body .wp-block-table td:first-child { color: var(--ink); font-weight: 600; }
.ss3 .post-body .wp-block-table tr:hover > td { background: transparent; }
.ss3 .post-body figure.wp-block-video video, .ss3 .post-body img { display: block; width: 100%; height: auto; border-radius: 20px; }
.ss3 .post-body figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.ss3 .post-body .wp-block-buttons { display: flex; gap: 12px; margin-top: 28px; }
.ss3 .post-body .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--pill);
  background: var(--brand-500); color: var(--brand-950); font: 600 16px/1 var(--font); text-decoration: none; transition: background-color 160ms ease;
}
.ss3 .post-body .wp-block-button__link:hover { background: var(--brand-400); color: var(--brand-950); }
.ss3 .post-body details { padding: 16px 20px; border-radius: 20px; background: var(--subtle); }
.ss3 .post-body details + details { margin-top: 8px; }
.ss3 .post-body summary { cursor: pointer; font: 600 16px/1.4 var(--font); color: var(--ink); }

/* author box, CTA band and disclaimer under the article */
.ss3 .author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; margin-top: 56px; padding: 24px; border-radius: 20px; background: var(--subtle); }
.ss3 .author-box img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; }
.ss3 .author-name { font: 700 17px/1.3 var(--font); color: var(--ink); }
.ss3 .author-name a { color: inherit; text-decoration: none; }
.ss3 .author-name a:hover { color: var(--brand-800); }
.ss3 .author-role { margin-top: 2px; font: 500 14px/20px var(--font); color: var(--brand-800); }
.ss3 .author-bio { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ss3 .author-links { margin-top: 10px; font: 600 14px/20px var(--font); }
.ss3 .author-links a { color: var(--brand-800); text-decoration: underline; text-underline-offset: 3px; }
.ss3 .post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 16px; padding: 28px; border-radius: 20px; background: var(--brand-950); color: var(--brand-100); }
.ss3 .post-cta h2 { font: 800 clamp(22px, 2vw, 26px)/1.15 var(--font); letter-spacing: -0.01em; color: var(--brand-50); }
.ss3 .post-cta p { margin-top: 8px; max-width: 460px; font-size: 15px; line-height: 1.5; color: var(--brand-300); }
.ss3 .post-disclaimer { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ss3 .post-disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- blog: archive (/research/, categories, author) ---------- */
.ss3 .archive-head { padding-bottom: clamp(32px, 4vw, 56px); }
.ss3 .archive-head .chip { margin-bottom: 18px; }
.ss3 .archive-head .lede { margin-top: 20px; max-width: 760px; }
.ss3 .archive-body { padding-bottom: var(--section-y); }
.ss3 .post-list .elementor-posts-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ss3 .post-list .elementor-post { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 20px; background: var(--subtle); transition: background-color 160ms ease; }
.ss3 .post-list .elementor-post:hover { background: var(--brand-50); }
.ss3 .post-list .elementor-post__text { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.ss3 .post-list .elementor-post__title { order: 1; margin: 0; font: 700 20px/1.25 var(--font); letter-spacing: -0.01em; }
.ss3 .post-list .elementor-post__title a { color: var(--ink); text-decoration: none; }
.ss3 .post-list .elementor-post__title a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.ss3 .post-list .elementor-post__meta-data { order: 0; font: 500 13px/18px var(--font); color: var(--brand-800); border: 0; padding: 0; margin: 0; }
.ss3 .post-list .elementor-post__excerpt { order: 2; }
.ss3 .post-list .elementor-post__excerpt p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ss3 .post-list .elementor-post__read-more { order: 3; margin-top: auto; padding-top: 6px; font: 600 14px/20px var(--font); color: var(--brand-800); text-decoration: none; }
.ss3 .post-list .elementor-post__thumbnail__link { display: none; }
.ss3 .post-list .elementor-posts-nothing-found { padding: 28px; border-radius: 20px; background: var(--subtle); font-size: 17px; color: var(--ink-2); }
.ss3 .post-list .elementor-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; font: 600 15px/1 var(--font); }
.ss3 .post-list .elementor-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.ss3 .post-list .elementor-pagination .page-numbers.current { background: var(--ink); color: var(--surface); }
@media (max-width: 960px) { .ss3 .post-list .elementor-posts-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ss3 .post-list .elementor-posts-container { grid-template-columns: minmax(0, 1fr); }
  .ss3 .author-box { grid-template-columns: 56px minmax(0, 1fr); padding: 20px; }
  .ss3 .author-box img { width: 56px; height: 56px; }
  .ss3 .post-cta { padding: 24px; }
  .ss3 .post-cta .btn { width: 100%; justify-content: center; }
}
