/* Public palette: brand accents, readable actions and semantic card surfaces. */
@media screen {
  :root {
    --o360-action-blue: #125edb;
    --o360-link-blue: #1259bf;
    --o360-copy-muted: #52647b;
    --o360-card-surface: #ffffff;
    --o360-card-tint: #f5f8fc;
    --o360-card-border: #cbd7e5;
    --o360-status-success: #126344;
    --o360-status-warning: #885000;
  }

  :is(.public-marketing-shell main, main.home-rebuild) a:not(.button) { color: var(--o360-link-blue); }
  :is(.public-marketing-shell main, main.home-rebuild) .button:not(.ghost) {
    background: var(--o360-action-blue);
    border-color: var(--o360-action-blue);
    color: #fff;
  }
  :is(.public-marketing-shell main, main.home-rebuild) .button.ghost {
    background: transparent;
    border-color: #7b8da5;
    color: #173a71;
    box-shadow: none;
  }
  :is(.public-marketing-shell main, main.home-rebuild) .button:not(.ghost):hover {
    background: #0e4fb9;
    border-color: #0e4fb9;
  }
  header.nav.nav .nav-actions .button { background: var(--o360-action-blue); border-color: var(--o360-action-blue); color: #fff; }
  header.nav.nav .nav-actions .button:hover { background: #0e4fb9; border-color: #0e4fb9; }
  :is(.public-marketing-shell main, main.home-rebuild) .button.ghost:hover {
    background: #eaf1fb;
    border-color: var(--o360-link-blue);
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    .article-status dt, .article-credibility dt, .case-study-summary dt,
    .home-structured-record dt, .internal-product-evidence ol li > span,
    .kpi-group dt, .home-problem-list article > span, .preview-bar small,
    .demo-preview-stats small, .demo-preview-stats span, .subrental-checklist > small,
    .availability-evidence header small, .intelligence-demo > footer span,
    .demo-form .privacy
  ) { color: var(--o360-copy-muted); }
  :is(.public-marketing-shell main, main.home-rebuild) .kpi-group > header p { color: #9c3e18; }
  :is(.public-marketing-shell main, main.home-rebuild) .kpi-group > div > article > span { color: var(--o360-copy-muted); }
  main.home-rebuild .home-section-heading > p { color: var(--o360-link-blue); }
  main.home-rebuild .stage.active > span,
  main.home-rebuild .intelligence-user { background: var(--o360-action-blue); color: #fff; }
  main.home-rebuild :is(.readiness, .preview-list .ready) { color: var(--o360-status-success); }
  main.home-rebuild .preview-list .warning { color: var(--o360-status-warning); }
  :is(.public-marketing-shell main, main.home-rebuild) :is(input, textarea)::placeholder { color: var(--o360-copy-muted); opacity: 1; }
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea
  ) { border-color: #7b8da5; }
  .public-marketing-shell main .weekly-review-header input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) { border-color: #c9d6e7; }
  .public-marketing-shell main .weekly-review-header :is(input, textarea)::placeholder { color: #dbe8f5; }
  .public-marketing-shell main .internal-product-evidence ol li > b { color: var(--o360-copy-muted); }
  .public-marketing-shell main .internal-product-evidence ol li.is-complete > span {
    color: #fff;
    background: var(--o360-action-blue);
    border-color: var(--o360-action-blue);
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    .cluster-guide-list span, .implementation-principles article > span,
    .damage-workflow > article > span, .case-study-feature > span
  ) { color: var(--o360-link-blue); }
  .public-marketing-shell main :is(.weekly-review-sections header p, .weekly-review-header > p) { color: #9c3e18; }
  .public-marketing-shell main :is(.qc-progress span, .qc-worksheet > small) { color: var(--o360-copy-muted); }
  main.home-rebuild .window-bar b { color: var(--o360-status-success); }
  main.home-rebuild .intelligence-actions button { color: var(--o360-link-blue); }
  main.home-rebuild .intelligence-actions button:first-child { color: #fff; background: var(--o360-action-blue); }
  .public-marketing-shell main .demo-preview-bar b { color: var(--o360-copy-muted); }
  .public-marketing-shell main .benchmark-method > div > article > span { color: #9c3e18; }
  .public-marketing-shell main .benchmark-share > small { color: var(--o360-copy-muted); }
  .public-marketing-shell main .weekly-review-header small { color: #dbe8f5; }
  .public-marketing-shell main .trust-contact-layout > div:first-child a { color: #a9ceff; }

  /* Consistent containers; editorial column dividers and operational data stay distinct. */
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    .search-grid > article, .home-connected-card, .conversion-proof > article,
    .plan-option, .workflow-card, .benefit-card, .proof-card, .case-study-card,
    .weekly-review-sections > article, .kpi-group > div > article,
    .benchmark-method > div > article, .subrental-stages > section, .qc-groups > section
  ) {
    background: var(--o360-card-surface);
    border: 1px solid var(--o360-card-border);
    border-radius: 0;
    box-shadow: none;
  }
  .public-marketing-shell main :is(.article-opening, .article-definition, .article-tool, .article-status) {
    background: var(--o360-card-tint);
    border-color: var(--o360-card-border);
    border-radius: 0;
    box-shadow: none;
  }
  .public-marketing-shell main :is(.article-opening, .article-definition) {
    border-left: 3px solid #176fff;
  }
  /* Dark surfaces need their own copy and link palette. */
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    .home-intelligence, .signal.action, .kpi-governance, .security-contact-cta,
    .subrental-close, .qc-release, .demo-intro, .dark, .dark-section, [data-theme="dark"]
  ) :is(.eyebrow, .kicker, small, dt) { color: #c9d6e7; }
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    .home-intelligence, .kpi-governance, .security-contact-cta,
    .subrental-close, .qc-release, .demo-intro, .dark, .dark-section, [data-theme="dark"]
  ) a:not(.button) { color: #a9ceff; }
  main.home-rebuild .home-intelligence .home-structured-record :is(small, dt) { color: var(--o360-copy-muted); }
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    .home-intelligence, .security-contact-cta, .demo-intro, .dark, .dark-section, [data-theme="dark"]
  ) .button.ghost { color: #f7faff; border-color: #a9bfdc; }
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    .home-intelligence, .security-contact-cta, .demo-intro, .dark, .dark-section, [data-theme="dark"]
  ) .button.ghost:hover { background: #173a61; }
  @media (hover: hover) and (pointer: fine) {
    header.nav.nav nav[aria-label="Primary navigation"] a:hover,
    footer.marketing-footer nav a:hover,
    footer.marketing-footer > div a:hover { background: var(--o360-action-blue); color: #fff; }
  }
}

/* Legacy important annotations live in this layer; retain their priority explicitly. */
@layer o360-contract {
  @media screen {
    main :where(.section-number) { color: #1259bf !important; }
    main .kpi-governance > .eyebrow { color: #c9d6e7 !important; }
    main .weekly-review-header .eyebrow { color: #dbe8f5 !important; }
    main.home-rebuild .home-section-heading > p { color: #1259bf !important; }
    main.home-rebuild .home-structured-record :is(small, dt) { color: #52647b !important; }
  }
}
