/* RelationshipsIQ — Folio III legacy compatibility neutralizer.
   This file contains no independent design language. It only gives Folio III
   enough specificity to beat old emergency contrast/layout patches. */

/* Shared V2 inverse/dark neutralization --------------------------------- */
body[data-content-v2="true"] .v2-section.dark .v2-section-title,
body[data-content-v2="true"] .v2-section.dark .v2-section-head h2,
body[data-content-v2="true"] .v2-section.dark .v2-section-head h3,
body[data-content-v2="true"] .v2-section.dark .v2-section-copy strong,
body[data-content-v2="true"] .v2-inverse h1,
body[data-content-v2="true"] .v2-inverse h2,
body[data-content-v2="true"] .v2-inverse h3,
body[data-content-v2="true"] .v2-inverse h4,
body[data-content-v2="true"] .v2-inverse strong,
body[data-content-v2="true"] .v2-inverse b,
body[data-content-v2="true"] .v2-inverse dd{color:var(--ink)!important}
body[data-content-v2="true"] .v2-section.dark .v2-section-copy,
body[data-content-v2="true"] .v2-section.dark .v2-section-head p,
body[data-content-v2="true"] .v2-inverse p,
body[data-content-v2="true"] .v2-inverse li,
body[data-content-v2="true"] .v2-inverse dt{color:var(--muted)!important}
body[data-content-v2="true"] .v2-section.dark .v2-eyebrow,
body[data-content-v2="true"] .v2-inverse .v2-eyebrow,
body[data-content-v2="true"] .v2-inverse small{color:var(--hot)!important}

/* Home ------------------------------------------------------------------ */
body.home-v2[data-content-v2="true"] .v2-section.dark .v2-section-title,
body.home-v2[data-content-v2="true"] .v2-section.dark .v2-section-head h2,
body.home-v2[data-content-v2="true"] .v2-section.dark .v2-section-head h3,
body.home-v2[data-content-v2="true"] .v2-section.dark .v2-section-copy strong{color:var(--ink)!important}
body.home-v2[data-content-v2="true"] .v2-section.dark .v2-section-copy,
body.home-v2[data-content-v2="true"] .v2-section.dark .v2-section-head p{color:var(--muted)!important}
body.home-v2[data-content-v2="true"] .v2-section.dark .v2-eyebrow{color:var(--hot)!important}

body.home-v2[data-content-v2="true"] .hero-funnel li:last-child{background:var(--app-surface)!important;color:var(--ink)!important}
body.home-v2[data-content-v2="true"] .hero-funnel li:last-child strong{color:var(--hot)!important}
body.home-v2[data-content-v2="true"] .hero-funnel li:last-child span{color:var(--muted)!important}

body.home-v2[data-content-v2="true"] #today .today-brief,
body.home-v2[data-content-v2="true"] #runway .runway-bars,
body.home-v2[data-content-v2="true"] #reciprocity .room-panel,
body.home-v2[data-content-v2="true"] #agent .agent-answer{background:var(--app-surface)!important;border-color:var(--rule)!important;box-shadow:none!important}
body.home-v2[data-content-v2="true"] #today .today-brief h3,
body.home-v2[data-content-v2="true"] #today .today-brief b,
body.home-v2[data-content-v2="true"] #today .today-brief strong,
body.home-v2[data-content-v2="true"] #reciprocity .room-panel h3,
body.home-v2[data-content-v2="true"] #reciprocity .room-panel .room-slot b,
body.home-v2[data-content-v2="true"] #agent .v2-section-title,
body.home-v2[data-content-v2="true"] #agent .agent-answer h3,
body.home-v2[data-content-v2="true"] #agent .agent-answer dd{color:var(--ink)!important}
body.home-v2[data-content-v2="true"] #today .today-brief .today-move span:not(.today-signal),
body.home-v2[data-content-v2="true"] #reciprocity .room-panel p,
body.home-v2[data-content-v2="true"] #agent .v2-section-copy{color:var(--muted)!important}
body.home-v2[data-content-v2="true"] #today .today-brief .today-move em,
body.home-v2[data-content-v2="true"] #agent .agent-answer dt{color:var(--hot)!important}

body.home-v2[data-content-v2="true"] #opportunities .portfolio-card:first-child,
body.home-v2[data-content-v2="true"] #assets .asset-card:nth-child(2),
body.home-v2[data-content-v2="true"] #assets .asset-card:nth-child(5){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--rule)!important}
body.home-v2[data-content-v2="true"] #opportunities .portfolio-card:first-child strong{color:var(--hot)!important}
body.home-v2[data-content-v2="true"] #opportunities .portfolio-card:first-child p,
body.home-v2[data-content-v2="true"] #assets .asset-card:nth-child(2) p,
body.home-v2[data-content-v2="true"] #assets .asset-card:nth-child(5) p{color:var(--muted)!important}
body.home-v2[data-content-v2="true"] #opportunities .portfolio-card:first-child small,
body.home-v2[data-content-v2="true"] #assets .asset-card:nth-child(2) .asset-symbol,
body.home-v2[data-content-v2="true"] #assets .asset-card:nth-child(5) .asset-symbol{color:var(--hot)!important}
body.home-v2[data-content-v2="true"] #assets .asset-card:nth-child(2) h3,
body.home-v2[data-content-v2="true"] #assets .asset-card:nth-child(5) h3{color:var(--ink)!important}

body.home-v2[data-content-v2="true"] #runway .runway-summary,
body.home-v2[data-content-v2="true"] #runway .runway-summary h3{color:var(--ink)!important}
body.home-v2[data-content-v2="true"] #runway .runway-summary .runway-big{color:var(--hot)!important}
body.home-v2[data-content-v2="true"] #runway .runway-summary p,
body.home-v2[data-content-v2="true"] #runway .runway-bars .v2-note{color:var(--muted)!important}
body.home-v2[data-content-v2="true"] #runway .runway-bars .runway-row>span{color:var(--warm)!important}
body.home-v2[data-content-v2="true"] #runway .runway-bars .runway-row>b{color:var(--hot)!important}

body.home-v2[data-content-v2="true"] .v2-inverse h1,
body.home-v2[data-content-v2="true"] .v2-inverse h2,
body.home-v2[data-content-v2="true"] .v2-inverse h3,
body.home-v2[data-content-v2="true"] .v2-inverse h4,
body.home-v2[data-content-v2="true"] .v2-inverse b,
body.home-v2[data-content-v2="true"] .v2-inverse strong{color:var(--ink)!important}
body.home-v2[data-content-v2="true"] .v2-inverse p,
body.home-v2[data-content-v2="true"] .v2-inverse li{color:var(--muted)!important}

/* Home status scale: ink density replaces rainbow status colors. */
body.home-v2[data-content-v2="true"] .weather-line:nth-of-type(1) i{background:var(--warm)!important}
body.home-v2[data-content-v2="true"] .weather-line:nth-of-type(2) i{background:var(--cool)!important}
body.home-v2[data-content-v2="true"] .weather-line:nth-of-type(3) i{background:var(--hot)!important}
body.home-v2[data-content-v2="true"] .weather-line:nth-of-type(4) i{background:var(--deep)!important}

/* Free Analysis ---------------------------------------------------------- */
body.product-v2[data-content-v2="true"] #request .runway-summary,
body.product-v2[data-content-v2="true"] #request .form-shell{background:var(--surface)!important;border:1px solid var(--rule)!important;box-shadow:none!important;border-radius:var(--radius)!important}
body.product-v2[data-content-v2="true"] #request .runway-summary h3{color:var(--ink)!important;font-family:var(--font-display)!important}
body.product-v2[data-content-v2="true"] #request .runway-summary p{color:var(--muted)!important}
body.product-v2[data-content-v2="true"] #request .stage-pills span{background:transparent!important;border-color:var(--rule)!important;color:var(--warm)!important;border-radius:2px!important;font-family:var(--font-data)!important;text-transform:uppercase!important;letter-spacing:.10em!important}
body.product-v2[data-content-v2="true"] #request .field label{color:var(--muted)!important;font-family:var(--font-data)!important;text-transform:uppercase!important;letter-spacing:.10em!important}
body.product-v2[data-content-v2="true"] #request .field input,
body.product-v2[data-content-v2="true"] #request .field select,
body.product-v2[data-content-v2="true"] #request .field textarea{background:transparent!important;color:var(--ink)!important;border-color:var(--rule)!important;border-radius:var(--radius)!important;box-shadow:none!important;font-family:var(--font-ui)!important}
body.product-v2[data-content-v2="true"] #request .field input:focus,
body.product-v2[data-content-v2="true"] #request .field select:focus,
body.product-v2[data-content-v2="true"] #request .field textarea:focus{border-color:var(--hot)!important;box-shadow:none!important}
body.product-v2[data-content-v2="true"] #request .form-note{color:var(--muted)!important}

/* Intelligence ----------------------------------------------------------- */
body.intelligence-v2[data-content-v2="true"] .v2-section.dark .intel-cluster__copy h2{color:var(--ink)!important}
body.intelligence-v2[data-content-v2="true"] .v2-section.dark .intel-cluster__copy p{color:var(--muted)!important}
body.intelligence-v2[data-content-v2="true"] .v2-section.dark .intel-cluster__copy .v2-eyebrow{color:var(--hot)!important}
body.intelligence-v2[data-content-v2="true"] .intel-instrument:nth-child(3n+2){background:var(--surface)!important;border-color:var(--rule)!important;color:var(--ink)!important}
body.intelligence-v2[data-content-v2="true"] .intel-instrument:nth-child(3n+2) h3,
body.intelligence-v2[data-content-v2="true"] .intel-instrument:nth-child(3n+2) strong,
body.intelligence-v2[data-content-v2="true"] .intel-instrument:nth-child(3n+2) b{color:var(--ink)!important}
body.intelligence-v2[data-content-v2="true"] .intel-instrument:nth-child(3n+2) p,
body.intelligence-v2[data-content-v2="true"] .intel-instrument:nth-child(3n+2) .instrument-proof span{color:var(--muted)!important}
body.intelligence-v2[data-content-v2="true"] .intel-instrument:nth-child(3n+2) small{color:var(--hot)!important}
body.intelligence-v2[data-content-v2="true"] .intel-instrument:nth-child(3n+2) .instrument-proof b{color:var(--hot)!important}

/* Resources -------------------------------------------------------------- */
body.resources-v2[data-content-v2="true"] .v2-section.dark .v2-section-head .v2-section-title{color:var(--ink)!important}
body.resources-v2[data-content-v2="true"] .v2-section.dark .v2-section-head .v2-section-copy{color:var(--muted)!important}
body.resources-v2[data-content-v2="true"] .v2-section.dark .v2-section-head .v2-eyebrow{color:var(--hot)!important}
body.resources-v2[data-content-v2="true"] .resource-guide.v2-inverse{background:var(--app-surface)!important}
body.resources-v2[data-content-v2="true"] .resource-guide.v2-inverse h3,
body.resources-v2[data-content-v2="true"] .resource-guide.v2-inverse strong,
body.resources-v2[data-content-v2="true"] .resource-guide.v2-inverse b{color:var(--ink)!important}
body.resources-v2[data-content-v2="true"] .resource-guide.v2-inverse p{color:var(--muted)!important}
body.resources-v2[data-content-v2="true"] .resource-guide.v2-inverse .v2-eyebrow{color:var(--hot)!important}
body.resources-v2[data-content-v2="true"] .atlas-col:nth-child(2) .atlas-link:nth-of-type(even),
body.resources-v2[data-content-v2="true"] .atlas-col:nth-child(4) .atlas-link:nth-of-type(odd){background:transparent!important;color:var(--ink)!important}
body.resources-v2[data-content-v2="true"] .atlas-col:nth-child(2) .atlas-link:nth-of-type(even) strong,
body.resources-v2[data-content-v2="true"] .atlas-col:nth-child(4) .atlas-link:nth-of-type(odd) strong{color:var(--ink)!important}
body.resources-v2[data-content-v2="true"] .atlas-col:nth-child(2) .atlas-link:nth-of-type(even) span,
body.resources-v2[data-content-v2="true"] .atlas-col:nth-child(4) .atlas-link:nth-of-type(odd) span{color:var(--muted)!important}

/* Use Cases + Consultants ------------------------------------------------ */
body.usecases-v2[data-content-v2="true"] .v2-section.dark .v2-section-title,
body.usecases-v2[data-content-v2="true"] .v2-section.dark .v2-section-head h2,
body.usecases-v2[data-content-v2="true"] .v2-section.dark .v2-section-head h3{color:var(--ink)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .v2-section-copy,
body.usecases-v2[data-content-v2="true"] .v2-section.dark .v2-section-head p{color:var(--muted)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .v2-eyebrow{color:var(--hot)!important}
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(1),
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(4){background:var(--surface)!important;border-color:var(--rule)!important;color:var(--ink)!important}
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(1) h3,
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(4) h3,
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(1) .usecase-output b,
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(4) .usecase-output b{color:var(--ink)!important}
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(1) p,
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(4) p,
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(1) .usecase-output,
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(4) .usecase-output{color:var(--muted)!important}
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(1) small,
body.usecases-v2[data-content-v2="true"] .usecase-card:nth-child(4) small{color:var(--hot)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .portfolio-card strong,
body.usecases-v2[data-content-v2="true"] .v2-section.dark .portfolio-card b{color:var(--ink)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .portfolio-card p{color:var(--muted)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .portfolio-card small{color:var(--hot)!important}
body.usecases-v2[data-content-v2="true"] #teams .asset-card:nth-child(2),
body.usecases-v2[data-content-v2="true"] #teams .asset-card:nth-child(5){background:var(--surface)!important;color:var(--ink)!important}
body.usecases-v2[data-content-v2="true"] #teams .asset-card:nth-child(2) h3,
body.usecases-v2[data-content-v2="true"] #teams .asset-card:nth-child(5) h3{color:var(--ink)!important}
body.usecases-v2[data-content-v2="true"] #teams .asset-card:nth-child(2) p,
body.usecases-v2[data-content-v2="true"] #teams .asset-card:nth-child(5) p{color:var(--muted)!important}
body.usecases-v2[data-content-v2="true"] #teams .asset-card:nth-child(2) .asset-symbol,
body.usecases-v2[data-content-v2="true"] #teams .asset-card:nth-child(5) .asset-symbol{color:var(--hot)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .runway-summary,
body.usecases-v2[data-content-v2="true"] .v2-section.dark .runway-summary h3{color:var(--ink)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .runway-summary .runway-big{color:var(--hot)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .runway-summary p,
body.usecases-v2[data-content-v2="true"] .v2-section.dark .v2-note{color:var(--muted)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .runway-bars .runway-row>span{color:var(--warm)!important}
body.usecases-v2[data-content-v2="true"] .v2-section.dark .runway-bars .runway-row>b{color:var(--hot)!important}

/* Plans ------------------------------------------------------------------ */
body.plans-v2[data-content-v2="true"] .plan-tier:nth-child(3){background:transparent!important;color:var(--ink)!important;border-color:var(--rule)!important}
body.plans-v2[data-content-v2="true"] .plan-tier:nth-child(3) h3,
body.plans-v2[data-content-v2="true"] .plan-tier:nth-child(3) strong,
body.plans-v2[data-content-v2="true"] .plan-tier:nth-child(3) b{color:var(--ink)!important}
body.plans-v2[data-content-v2="true"] .plan-tier:nth-child(3) p,
body.plans-v2[data-content-v2="true"] .plan-tier:nth-child(3) li{color:var(--muted)!important}
body.plans-v2[data-content-v2="true"] .plan-tier:nth-child(3) small{color:var(--hot)!important}
body.plans-v2[data-content-v2="true"] .v2-section.dark .v2-section-title{color:var(--ink)!important}
body.plans-v2[data-content-v2="true"] .v2-section.dark .v2-section-copy{color:var(--muted)!important}
body.plans-v2[data-content-v2="true"] .v2-section.dark .v2-eyebrow{color:var(--hot)!important}
body.plans-v2[data-content-v2="true"] .v2-section.dark .portfolio-card strong{color:var(--ink)!important}
body.plans-v2[data-content-v2="true"] .v2-section.dark .portfolio-card p{color:var(--muted)!important}
body.plans-v2[data-content-v2="true"] .v2-section.dark .portfolio-card small{color:var(--hot)!important}

/* Integrations / HighLevel ---------------------------------------------- */
body.integrations-v2[data-content-v2="true"] .v2-section.dark .runway-summary,
body.integrations-v2[data-content-v2="true"] .v2-section.dark .runway-bars{background:var(--surface)!important;border-color:var(--rule)!important;box-shadow:none!important}
body.integrations-v2[data-content-v2="true"] .v2-section.dark .runway-summary h3,
body.integrations-v2[data-content-v2="true"] .v2-section.dark .runway-row>span{color:var(--ink)!important}
body.integrations-v2[data-content-v2="true"] .v2-section.dark .runway-summary p,
body.integrations-v2[data-content-v2="true"] .v2-section.dark .runway-row>div{color:var(--muted)!important}
body.integrations-v2[data-content-v2="true"] .v2-section.dark .runway-row>b{color:var(--hot)!important}

/* Inline legacy color residues -> Folio ink density --------------------- */
[style*="#22c55e" i]{background:var(--warm)!important;color:var(--warm)!important}
[style*="#f4b942" i]{background:var(--cool)!important;color:var(--cool)!important}
[style*="#ef4444" i]{background:var(--hot)!important;color:var(--hot)!important}
[style*="#64748b" i]{background:var(--deep)!important;color:var(--deep)!important}
[style*="#19d3e6" i],[style*="#00d4ff" i]{background:var(--hot)!important;color:var(--hot)!important}
[style*="#968ac0" i]{background:var(--cool)!important;color:var(--cool)!important}
[style*="#cf8c7d" i]{background:var(--warm)!important;color:var(--warm)!important}

/* Motion accents become engraved hairlines. */
.usecases-v2 .usecase-output:after,
.usecases-v2 .today-move:after,
.integrations-v2 .source-chip:after,
.integrations-v2 .activation-item:after,
.plans-v2 .plan-stair:before,
.plans-v2 .plan-tier:after,
.alternatives-v2 .shift-arrow:before,
.alternatives-v2 .chain-step:after,
.product-v2 form.v2-glass:before{background:var(--hot)!important;height:1px!important;box-shadow:none!important}
