/* BayesArc theme contrast v1 — explicit cross-theme readability for pilot + development arc. */

/* Full-width horizontal separators between major homepage sections. */
body.bayesarc-home-v2 .section {
  position: relative;
}
body.bayesarc-home-v2 .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(7,26,51,.08) 5%, rgba(7,26,51,.14) 18%, rgba(7,26,51,.14) 82%, rgba(7,26,51,.08) 95%, transparent 100%);
}
html[data-theme="dark"] body.bayesarc-home-v2 .section::before {
  background: linear-gradient(90deg, transparent 0%, rgba(226,236,248,.07) 5%, rgba(226,236,248,.14) 18%, rgba(226,236,248,.14) 82%, rgba(226,236,248,.07) 95%, transparent 100%);
}

/* Keep split headings clean: no vertical divider inside the heading itself. */
body.bayesarc-home-v2 .section-heading.split > p {
  border-left: 0 !important;
  padding-left: 0 !important;
}
body.bayesarc-home-v2 .section-heading.split > p::before {
  content: none !important;
  display: none !important;
}

/* Hero signature arc: deliberately visible in the default/light theme. */
body.bayesarc-home-v2 .hero.bayesarc-hero-v3 .hero-v3-arc {
  opacity: .42;
}
body.bayesarc-home-v2 .hero.bayesarc-hero-v3 .hero-v3-arc path {
  stroke: #B96F00;
  stroke-width: 2.6;
  stroke-dasharray: 8 11;
  filter: drop-shadow(0 1px 2px rgba(120,72,0,.16));
}
body.bayesarc-home-v2 .hero.bayesarc-hero-v3 .hero-v3-arc circle {
  fill: #C57F00;
  opacity: 1;
  filter: drop-shadow(0 1px 2px rgba(120,72,0,.18));
}
html[data-theme="dark"] body.bayesarc-home-v2 .hero.bayesarc-hero-v3 .hero-v3-arc { opacity: .28; }
html[data-theme="dark"] body.bayesarc-home-v2 .hero.bayesarc-hero-v3 .hero-v3-arc path {
  stroke: #F5B72D;
  stroke-width: 2.2;
  filter: drop-shadow(0 1px 4px rgba(245,168,0,.20));
}
html[data-theme="dark"] body.bayesarc-home-v2 .hero.bayesarc-hero-v3 .hero-v3-arc circle { fill: #F5B72D; }

/* Development Arc: the connector is a signature visual, so it must remain visible on pale surfaces. */
body.bayesarc-home-v2 .arc-signature-v3 .arc-track-line path.base {
  stroke: rgba(7, 26, 51, .22);
  stroke-width: 2;
}
body.bayesarc-home-v2 .arc-signature-v3 .arc-track-line path.live {
  stroke: #C57F00;
  stroke-width: 3.8;
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(184,121,0,.25));
}
html[data-theme="dark"] body.bayesarc-home-v2 .arc-signature-v3 .arc-track-line path.base { stroke: rgba(226, 236, 248, .20); }
html[data-theme="dark"] body.bayesarc-home-v2 .arc-signature-v3 .arc-track-line path.live {
  stroke: #F5B72D;
  stroke-width: 3.5;
  filter: drop-shadow(0 2px 7px rgba(245,168,0,.28));
}

/* Pilot Workspace: do not depend on light-mode fallback tokens inside the dark homepage. */
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-shell {
  --pilot-ink: #F4F7FB;
  --pilot-copy: #C6D2E1;
  --pilot-muted: #9EADC0;
  --pilot-line: rgba(213,226,242,.15);
  --pilot-surface: #0D1A2D;
  --pilot-surface-2: #12233A;
  border-color: var(--pilot-line);
  background:
    radial-gradient(circle at 8% 0%, rgba(91,91,214,.11), transparent 20rem),
    linear-gradient(155deg, #0D192B 0%, #0B1728 58%, #0C1B31 100%);
  box-shadow: 0 26px 72px rgba(0,0,0,.28);
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-kicker,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel-head > span,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-charter-head span { color: #9188FF; }
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-intro h2,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel-head h3,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel label,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel legend,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-readiness small,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-charter-head b,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-charter dd,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-check span,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-inline span { color: var(--pilot-ink); }
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-intro p,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel-head p,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-readiness ul,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-charter dt,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-security span { color: var(--pilot-copy); }
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-promises span,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-steps li,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-check,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-inline,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-readiness,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-charter {
  border-color: var(--pilot-line);
  background: var(--pilot-surface);
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-promises span {
  color: #E7EEF8;
  background: rgba(255,255,255,.025);
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-steps li { color: var(--pilot-muted); }
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-steps b,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-meter {
  background: var(--pilot-surface-2);
  color: #D7E2EF;
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-steps li.active {
  border-color: rgba(145,136,255,.48);
  background: rgba(91,91,214,.14);
  color: #BDB7FF;
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-check:has(input:checked),
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-inline.confirm {
  border-color: rgba(145,136,255,.38);
  background: rgba(91,91,214,.11);
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel input:not([type=checkbox]),
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel select,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel textarea {
  border-color: rgba(213,226,242,.17);
  background: #081424;
  color: #F4F7FB;
  color-scheme: dark;
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel input::placeholder,
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel textarea::placeholder {
  color: #75869C;
  opacity: 1;
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-security {
  border-color: rgba(56,189,248,.26);
  background: rgba(14,165,233,.08);
  color: #EAF4FF;
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-security i { color: #67C8F5; }
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-btn.primary {
  border-color: #E9F0F8;
  background: #E9F0F8;
  color: #071A33;
}
html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-btn.secondary {
  border-color: var(--pilot-line);
  background: var(--pilot-surface-2);
  color: #F4F7FB;
}

@media (prefers-contrast: more) {
  body.bayesarc-home-v2 .hero.bayesarc-hero-v3 .hero-v3-arc { opacity: .62; }
  body.bayesarc-home-v2 .hero.bayesarc-hero-v3 .hero-v3-arc path { stroke-width: 3.2; }
  body.bayesarc-home-v2 .arc-signature-v3 .arc-track-line path.live { stroke-width: 4.4; }
  html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-intro h2,
  html[data-theme="dark"] body.bayesarc-home-v2 .bp-pilot-panel-head h3 { color: #FFFFFF; }
}
