/* appwt.com cohesion layer (🔐 C.L.I.N.T. 🔐, 2026-12-05)
 * Tony 2026-12-05: "The home page is the style of theme cohesity we want for the entire site on the default template".
 * Each block below takes one component that paints a light panel (measured off the home page's look by
 * checks/appwt-theme-1205/cohesion/) and gives it the home page's own treatment: sections on --bg-secondary, cards on
 * --bg-card with a --border-color hairline and 16px corners, headings --text-primary, body --text-secondary, small print
 * --text-muted, links gold. Every value is a theme token, so a holiday theme restyles these too.
 * "html body" raises specificity above the page's own <style> blocks, which print after this file.
 * Loaded on appwt.com only (main.css is shared by about 500 subdomains and is never edited for this).
 * Undo: remove the one <link> to this file. Nothing else changes. */

/* ==== COMPONENT LAYER (🚨 Z.A.N.E. 🚨 for 🔐 C.L.I.N.T. 🔐, phase 3 stage, 2026-12-05) ====
 * Why it exists: the re-points at the end of this file darken the light panels, but many inks on those panels are
 * colours the home page itself shows (#0A0A0A, #1A1A1A, #222222 on its gold buttons), so they cannot be re-pointed
 * globally. Surfaces and inks move together here, per container: headings --text-primary, body --text-secondary,
 * links --accent-text, panels --bg-card (cards) or --bg-secondary (sections). Every value is a home knob.
 * Measured with zane/site-render.js --inject-at theme on the 536-URL sample at 1440 and 390 (cohesion/stage/runs/).
 * Buttons and CTAs keep their own colours: nothing whose class carries btn, button, cta, buy, badge, tag, pill or ico,
 * and nothing inside a btn, button or cta, is recoloured by the generic rules (B, C). Inks written in a style=""
 * attribute are reached by attribute in C. D names single components, E is one block per one-page design, F keeps
 * pages with their own design system exactly as served. */

/* A. Panel surfaces. Cards get --bg-card where the page paints them white (white is a home colour, so the re-points
 * leave it alone); pearl and cream panels already follow the re-points. */
html body :is(.faq-item:has(> .q), .mcbl-stat, .mcbl-lead, .mcbl-card, .gce-stat, .gce-lead, .gce-card, .conf-card,
  .conf-faq details, .conf-cta, .appwt-web-ai-solutions-txc-five dl, .appwt-web-ai-solutions-txc-stop,
  .ms-process .step, .ms-faq details, .aivo-audit-faq .body, .resources-bottom-cta, .package-card, .audit-form-card,
  .resource-section) {
  background: var(--bg-card); box-shadow: none;
}
/* Bands that stayed light around tiles that went dark (found by mixed-probe.js, not by the contrast count): the hub
 * template's services and trust bands paint an inline #f8f9fa that the home page also uses, so they are named here. */
html body :is(.hub-services, .hub-trust):is([style*="--appwt-p-surface-f8f9fa"]) { background: var(--bg-secondary) !important; }
html body :is(.hub-services, .hub-trust) h2 { color: var(--text-primary); }
html body .sa-wrap { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: none; }
html body .sa-trust { background: var(--bg-secondary); border-bottom-color: var(--border-color); }
html body :is(.sa-tony, .sa-faq details) { background: var(--bg-elevated); border-color: var(--border-color); }
html body .appwt-web-ai-solutions-localdeep { background: var(--bg-secondary); }
html body .appwt-web-ai-solutions-localdetails { background: var(--bg-card); border-color: var(--border-color); border-radius: 16px; }
html body .content-section { background: var(--bg-card) !important; border: 1px solid var(--border-color); border-radius: 16px; }

/* B. Container text: the container's own ink, then headings, body text and links inside it. */
html body :is(.sa-wrap, .sa-trust, .sa-tony, .sa-tony-quote, .sa-local-detail, .sa-faq details, section.content-section,
  .appwt-web-ai-solutions-localdeep, .appwt-web-ai-solutions-localdetails, .hub-faq .faq-item, .hub-trust li,
  .appwt-web-ai-solutions-rec, .appwt-web-ai-solutions-rec-row, .resource-card, .faq-item:has(> .q), .persona-card,
  .package-card .timeline, .network-block, .verifiable-wrap, .id-card, .callout, .aivo-stage, .aivo-audit-trust,
  .audit-deliverable, .aivo-audit-faq, .aivo-audit-what-you-get, .tripwire-section.alt,
  .mcbl-stat, .mcbl-lead, .mcbl-card, .gce-stat, .gce-lead, .gce-card, .conf-card, .conf-faq details,
  .appwt-web-ai-solutions-txc-client, .appwt-web-ai-solutions-txc-facts li, .appwt-web-ai-solutions-txc-five dl,
  .appwt-web-ai-solutions-txc-stop, .appwt-web-ai-solutions-txc-faq details, .ms-process .step, .ms-faq details,
  .package-card, .audit-form-card, .resource-section,
  [style*="var(--appwt-surface-pearl"], [style*="var(--appwt-surface-cream"], [style*="var(--appwt-surface-mist"]) {
  color: var(--text-secondary);
}
html body :is(.sa-wrap, .sa-trust, .sa-tony, .sa-tony-quote, .sa-local-detail, .sa-faq details, section.content-section,
  .appwt-web-ai-solutions-localdeep, .appwt-web-ai-solutions-localdetails, .hub-faq .faq-item, .hub-trust li,
  .appwt-web-ai-solutions-rec, .appwt-web-ai-solutions-rec-row, .resource-card, .faq-item:has(> .q), .persona-card,
  .package-card .timeline, .network-block, .verifiable-wrap, .id-card, .callout, .aivo-stage, .aivo-audit-trust,
  .audit-deliverable, .aivo-audit-faq, .aivo-audit-what-you-get, .tripwire-section.alt,
  .mcbl-stat, .mcbl-lead, .mcbl-card, .gce-stat, .gce-lead, .gce-card, .conf-card, .conf-faq details,
  .appwt-web-ai-solutions-txc-client, .appwt-web-ai-solutions-txc-facts li, .appwt-web-ai-solutions-txc-five dl,
  .appwt-web-ai-solutions-txc-stop, .appwt-web-ai-solutions-txc-faq details, .ms-process .step, .ms-faq details,
  .package-card, .audit-form-card, .resource-section,
  [style*="var(--appwt-surface-pearl"], [style*="var(--appwt-surface-cream"], [style*="var(--appwt-surface-mist"])
  :is(h1, h2, h3, h4, h5, h6, summary, dt, strong, b, th):not([class*="btn"], [class*="button"], [class*="cta"], [class*="buy"], [class*="badge"], [class*="tag"], [class*="pill"], [class*="ico"], [class*="cta"] *, [class*="btn"] *, [class*="button"] *) {
  color: var(--text-primary);
}
html body :is(.sa-wrap, .sa-trust, .sa-tony, .sa-tony-quote, .sa-local-detail, .sa-faq details, section.content-section,
  .appwt-web-ai-solutions-localdeep, .appwt-web-ai-solutions-localdetails, .hub-faq .faq-item, .hub-trust li,
  .appwt-web-ai-solutions-rec, .appwt-web-ai-solutions-rec-row, .resource-card, .faq-item:has(> .q), .persona-card,
  .package-card .timeline, .network-block, .verifiable-wrap, .id-card, .callout, .aivo-stage, .aivo-audit-trust,
  .audit-deliverable, .aivo-audit-faq, .aivo-audit-what-you-get, .tripwire-section.alt,
  .mcbl-stat, .mcbl-lead, .mcbl-card, .gce-stat, .gce-lead, .gce-card, .conf-card, .conf-faq details,
  .appwt-web-ai-solutions-txc-client, .appwt-web-ai-solutions-txc-facts li, .appwt-web-ai-solutions-txc-five dl,
  .appwt-web-ai-solutions-txc-stop, .appwt-web-ai-solutions-txc-faq details, .ms-process .step, .ms-faq details,
  .package-card, .audit-form-card, .resource-section,
  [style*="var(--appwt-surface-pearl"], [style*="var(--appwt-surface-cream"], [style*="var(--appwt-surface-mist"])
  :is(p, li, span, dd, blockquote, small, td, em, label, cite, div, figcaption, time):not([class*="btn"], [class*="button"], [class*="cta"], [class*="buy"], [class*="badge"], [class*="tag"], [class*="pill"], [class*="ico"], [class*="cta"] *, [class*="btn"] *, [class*="button"] *) {
  color: var(--text-secondary);
}
html body :is(.sa-wrap, .sa-trust, .sa-tony, .sa-tony-quote, .sa-local-detail, .sa-faq details, section.content-section,
  .appwt-web-ai-solutions-localdeep, .appwt-web-ai-solutions-localdetails, .hub-faq .faq-item, .hub-trust li,
  .appwt-web-ai-solutions-rec, .appwt-web-ai-solutions-rec-row, .resource-card, .faq-item:has(> .q), .persona-card,
  .package-card .timeline, .network-block, .verifiable-wrap, .id-card, .callout, .aivo-stage, .aivo-audit-trust,
  .audit-deliverable, .aivo-audit-faq, .aivo-audit-what-you-get, .tripwire-section.alt,
  .mcbl-stat, .mcbl-lead, .mcbl-card, .gce-stat, .gce-lead, .gce-card, .conf-card, .conf-faq details,
  .appwt-web-ai-solutions-txc-client, .appwt-web-ai-solutions-txc-facts li, .appwt-web-ai-solutions-txc-five dl,
  .appwt-web-ai-solutions-txc-stop, .appwt-web-ai-solutions-txc-faq details, .ms-process .step, .ms-faq details,
  .package-card, .audit-form-card, .resource-section,
  [style*="var(--appwt-surface-pearl"], [style*="var(--appwt-surface-cream"], [style*="var(--appwt-surface-mist"])
  a:not([class*="btn"], [class*="button"], [class*="cta"], [class*="buy"], [class*="badge"], [class*="tag"], [class*="pill"], [style*="background"], [class*="cta"] *, [class*="btn"] *, [class*="button"] *) {
  color: var(--accent-text);
}

/* C. Inline inks. Several includes write the ink in a style="" attribute (location-deep, best-* question panels, the
 * Tony quote, history cards, step and FAQ headings), which only !important can outrank. Same containers as B. Only the
 * dark inks are flipped (by name: ink-on-accent, ink-dark, bg-elevated, navy, shadow-navy, slate-soft, slate-deep),
 * never on a gold fill and never on a button or CTA. */
html body :is(.sa-wrap, .sa-trust, .sa-tony, .sa-tony-quote, .sa-local-detail, .sa-faq details, section.content-section,
  .appwt-web-ai-solutions-localdeep, .appwt-web-ai-solutions-localdetails, .hub-faq .faq-item, .hub-trust li,
  .appwt-web-ai-solutions-rec, .appwt-web-ai-solutions-rec-row, .resource-card, .faq-item:has(> .q), .persona-card,
  .package-card .timeline, .network-block, .verifiable-wrap, .id-card, .callout, .aivo-stage, .aivo-audit-trust,
  .audit-deliverable, .aivo-audit-faq, .aivo-audit-what-you-get, .tripwire-section.alt,
  .mcbl-stat, .mcbl-lead, .mcbl-card, .gce-stat, .gce-lead, .gce-card, .conf-card, .conf-faq details,
  .appwt-web-ai-solutions-txc-client, .appwt-web-ai-solutions-txc-facts li, .appwt-web-ai-solutions-txc-five dl,
  .appwt-web-ai-solutions-txc-stop, .appwt-web-ai-solutions-txc-faq details, .ms-process .step, .ms-faq details,
  .package-card, .audit-form-card, .resource-section,
  [style*="var(--appwt-surface-pearl"], [style*="var(--appwt-surface-cream"], [style*="var(--appwt-surface-mist"])
  :is(h1, h2, h3, h4, h5, h6, summary, dt, strong, b, th):is([style*="color: var(--appwt-ink-on-accent"], [style*="color:var(--appwt-ink-on-accent"],
    [style*="color: var(--appwt-ink-dark"], [style*="color:var(--appwt-ink-dark"], [style*="color: var(--appwt-bg-elevated"], [style*="color:var(--appwt-bg-elevated"],
    [style*="color: var(--appwt-navy"], [style*="color:var(--appwt-navy"], [style*="color: var(--appwt-shadow-navy"], [style*="color:var(--appwt-shadow-navy"],
    [style*="color: var(--appwt-p-text-0f2744"], [style*="color:var(--appwt-p-text-0f2744"]):not([style*="accent-surface"], [style*="--appwt-gold"], [class*="btn"], [class*="button"], [class*="cta"], [class*="cta"] *, [class*="btn"] *, [class*="button"] *) {
  color: var(--text-primary) !important;
}
html body :is(.sa-wrap, .sa-trust, .sa-tony, .sa-tony-quote, .sa-local-detail, .sa-faq details, section.content-section,
  .appwt-web-ai-solutions-localdeep, .appwt-web-ai-solutions-localdetails, .hub-faq .faq-item, .hub-trust li,
  .appwt-web-ai-solutions-rec, .appwt-web-ai-solutions-rec-row, .resource-card, .faq-item:has(> .q), .persona-card,
  .package-card .timeline, .network-block, .verifiable-wrap, .id-card, .callout, .aivo-stage, .aivo-audit-trust,
  .audit-deliverable, .aivo-audit-faq, .aivo-audit-what-you-get, .tripwire-section.alt,
  .mcbl-stat, .mcbl-lead, .mcbl-card, .gce-stat, .gce-lead, .gce-card, .conf-card, .conf-faq details,
  .appwt-web-ai-solutions-txc-client, .appwt-web-ai-solutions-txc-facts li, .appwt-web-ai-solutions-txc-five dl,
  .appwt-web-ai-solutions-txc-stop, .appwt-web-ai-solutions-txc-faq details, .ms-process .step, .ms-faq details,
  .package-card, .audit-form-card, .resource-section,
  [style*="var(--appwt-surface-pearl"], [style*="var(--appwt-surface-cream"], [style*="var(--appwt-surface-mist"])
  :is(p, li, span, dd, blockquote, small, td, em, label, cite, div, time):is([style*="color: var(--appwt-ink-on-accent"], [style*="color:var(--appwt-ink-on-accent"],
    [style*="color: var(--appwt-ink-dark"], [style*="color:var(--appwt-ink-dark"], [style*="color: var(--appwt-bg-elevated"], [style*="color:var(--appwt-bg-elevated"],
    [style*="color: var(--appwt-navy"], [style*="color:var(--appwt-navy"], [style*="color: var(--appwt-shadow-navy"], [style*="color:var(--appwt-shadow-navy"],
    [style*="color: var(--appwt-ink-slate-soft"], [style*="color:var(--appwt-ink-slate-soft"],
    [style*="color: var(--appwt-ink-slate-deep"], [style*="color:var(--appwt-ink-slate-deep"]):not([style*="accent-surface"], [style*="--appwt-gold"], [class*="btn"], [class*="button"], [class*="cta"], [class*="badge"], [class*="tag"], [class*="pill"], [class*="ico"], [class*="cta"] *, [class*="btn"] *, [class*="button"] *),
html body :is(.sa-tony-quote, .sa-local-detail, section.content-section, .appwt-web-ai-solutions-localdeep,
  [style*="var(--appwt-surface-pearl"], [style*="var(--appwt-surface-cream"], [style*="var(--appwt-surface-mist"]):is([style*="color: var(--appwt-ink-on-accent"],
    [style*="color:var(--appwt-ink-on-accent"], [style*="color: var(--appwt-ink-dark"], [style*="color:var(--appwt-ink-dark"],
    [style*="color: var(--appwt-bg-elevated"], [style*="color:var(--appwt-bg-elevated"]) {
  color: var(--text-secondary) !important;
}
html body :is(.sa-wrap, .sa-trust, .sa-tony, .sa-tony-quote, .sa-local-detail, .sa-faq details, section.content-section,
  .appwt-web-ai-solutions-localdeep, .appwt-web-ai-solutions-localdetails, .hub-faq .faq-item, .hub-trust li,
  .appwt-web-ai-solutions-rec, .appwt-web-ai-solutions-rec-row, .resource-card, .faq-item:has(> .q), .persona-card,
  .package-card .timeline, .network-block, .verifiable-wrap, .id-card, .callout, .aivo-stage, .aivo-audit-trust,
  .audit-deliverable, .aivo-audit-faq, .aivo-audit-what-you-get, .tripwire-section.alt,
  .mcbl-stat, .mcbl-lead, .mcbl-card, .gce-stat, .gce-lead, .gce-card, .conf-card, .conf-faq details,
  .appwt-web-ai-solutions-txc-client, .appwt-web-ai-solutions-txc-facts li, .appwt-web-ai-solutions-txc-five dl,
  .appwt-web-ai-solutions-txc-stop, .appwt-web-ai-solutions-txc-faq details, .ms-process .step, .ms-faq details,
  .package-card, .audit-form-card, .resource-section,
  [style*="var(--appwt-surface-pearl"], [style*="var(--appwt-surface-cream"], [style*="var(--appwt-surface-mist"])
  a:is([style*="color: var(--appwt-ink-on-accent"], [style*="color:var(--appwt-ink-on-accent"], [style*="color: var(--appwt-ink-dark"],
    [style*="color:var(--appwt-ink-dark"], [style*="color: var(--appwt-navy"], [style*="color:var(--appwt-navy"],
    [style*="color: var(--appwt-ink-slate-soft"], [style*="color:var(--appwt-ink-slate-soft"]):not([style*="background"], [class*="btn"], [class*="cta"], [class*="button"], [class*="buy"]) {
  color: var(--accent-text) !important;
}

/* D. Rules a page sets with !important or on a single component, named one by one. */
/* serves/: the trust-bar label and the quote's signature line were forced to #222222 !important for the light bar;
 * on the dark bar they take the home gold the page itself asked for (.sa-trust strong, inline span colour). */
html body .sa-trust strong, html body .sa-tony-quote span { color: var(--accent-text) !important; }
/* best-* hub template (includes/hub-page-template.php): FAQ buttons and the related / services link tiles. */
html body .hub-faq .faq-item .faq-question, html body .hub-faq .faq-item .faq-question span { color: var(--text-primary); }
html body :is(.hub-related, .hub-services) a:not([class*="btn"], [class*="cta"]) { color: var(--text-primary); border-left-color: var(--accent-line); }
html body .hub-trust li a { color: var(--accent-text); }
/* resources/: CTA box (gradient to white) and the two slate tags. */
html body .resources-bottom-cta { background: var(--bg-card); }
html body .resources-bottom-cta h2 { color: var(--text-primary); }
html body .resources-bottom-cta p { color: var(--text-secondary); }
html body .resource-card :is(.resource-cta) { color: var(--accent-text); }
html body .resource-tag:is(.tag-service, .tag-gov) { background: var(--bg-elevated); color: var(--text-primary); }
/* record/: the year headings sit on the page's own pearl <main>. */
html body .appwt-web-ai-solutions-rec h2 { color: var(--text-primary); }
/* stat numbers on the stat cards (michigan-counties, government-court-experience) and the sprint price: home gold
 * (!important only to outrank the generic B rule on these named elements). */
html body :is(.mcbl-stat, .gce-stat) .n, html body .package-card .pkg-price { color: var(--accent-text) !important; }
/* free-aivo-audit/: the form card is dark now, so its fields are too. */
html body .audit-form-card :is(input, select) { background: var(--bg-elevated); color: var(--text-primary); }
/* history/ (and any page that nests inline white cards in an inline pearl or mist band): the band goes dark through
 * the re-points, so the white cards inside it follow (inline, so !important). Their inks are flipped by C. */
html body :is([style*="var(--appwt-surface-pearl"], [style*="var(--appwt-surface-mist"]) :is([style*="background:var(--appwt-surface-white"],
  [style*="background: var(--appwt-surface-white"], [style*="background-color:var(--appwt-surface-white"], [style*="background-color: var(--appwt-surface-white"]) {
  background: var(--bg-card) !important;
}
/* not-our-network/: the impostor cards (inline #fef2f2, re-pointed) keep the red border and red pill; their dark
 * red and slate inks go light so the warning stays readable. */
html body [style*="var(--appwt-p-surface-fef2f2"] :is([style*="color:var(--appwt-p-text-991b1b"], [style*="color: var(--appwt-p-text-991b1b"]) { color: var(--text-primary) !important; }
html body [style*="var(--appwt-p-surface-fef2f2"] :is([style*="color:var(--appwt-p-text-7f1d1d"], [style*="color: var(--appwt-p-text-7f1d1d"], [style*="color:var(--appwt-ink-slate-deep"], [style*="color: var(--appwt-ink-slate-deep"]) { color: var(--text-secondary) !important; }
/* summer-search-sprint/: the network link tiles were white cards on the cream band (now dark); their text takes the
 * link and body inks from B (.network-block is in the list). */
html body .network-grid a { background: var(--bg-card); border-color: var(--border-color); }
/* aivo-methodology/: FAQ summaries paint their own cream bar (now dark); the open one stays on the warm accent. */
html body .aivo-faq summary { color: var(--text-primary); }
html body .aivo-faq details[open] summary { color: var(--ink-on-accent); }
/* confidentiality/: the CTA box (dark now; its heading ink is inline). The gold button inside keeps its colours. */
html body .conf-cta h2 { color: var(--text-primary) !important; }
html body .conf-cta p { color: var(--text-secondary) !important; }

/* E. ONE-PAGE DESIGNS (light pages or light app panels), each scoped to its own page. */
/* E1. /book-marketing/ (div.bm-hero is only on this page; one h3 sits outside .wrap, so the scope is .wrap plus every
 * section that is not site header or footer chrome). The green .charm band keeps its own colours. */
html body:has(.bm-hero) { background: var(--bg-primary); }
html body:has(.bm-hero) :is(.wrap, section:not(header *, footer *)) :is(h2, h3, summary):not(.charm *) { color: var(--text-primary); }
html body:has(.bm-hero) :is(.wrap, section:not(header *, footer *)) a:not(.cta, .charm *) { color: var(--accent-text); }
html body:has(.bm-hero) .wrap h3:is([style*="color:var(--navy)"], [style*="color: var(--navy)"]) { color: var(--text-primary) !important; }
html body:has(.bm-hero) .wrap :is(.d, .phase, .tier, details.q) { background: var(--bg-card); border-color: var(--border-color); }
html body:has(.bm-hero) .wrap .d { border-left-color: var(--accent-line); }
html body:has(.bm-hero) .wrap .phase { border-top-color: var(--accent-line); }
html body:has(.bm-hero) .wrap .tier.pop { border-color: var(--accent-line); }
html body:has(.bm-hero) .wrap .tier .pr { color: var(--accent-text); }
html body:has(.bm-hero) .wrap .tier .pr span { color: var(--text-muted); }
html body:has(.bm-hero) .wrap .proof { border-left-color: var(--accent-line); }
/* E2. /book-marketing/charm-city-romanticon/ (div.hero > .kick is only on this page; its later sections sit outside
 * .wrap, so the scope is .wrap plus every section that is not site header or footer chrome). */
html body:has(div.hero > .kick) { background: var(--bg-primary); }
html body:has(div.hero > .kick) :is(.wrap, section:not(header *, footer *)) :is(h2, h3, summary) { color: var(--text-primary); }
html body:has(div.hero > .kick) :is(.wrap, section:not(header *, footer *)) a:not(.cta) { color: var(--accent-text); }
html body:has(div.hero > .kick) :is(.wrap, section:not(header *, footer *)) .note { color: var(--text-secondary); }
html body:has(div.hero > .kick) .wrap details.q { background: var(--bg-card); border-color: var(--border-color); }
html body:has(div.hero > .kick) .wrap .facts { background: var(--bg-card); }
html body:has(div.hero > .kick) .wrap .facts b { color: var(--text-primary); }
html body:has(div.hero > .kick) .wrap .facts .note { color: var(--text-secondary); }
html body:has(div.hero > .kick) .wrap .proof { border-left-color: var(--accent-line); }
/* E3. /quote/ (the quote builder: .appwt-q-header is only on this page). */
html body:has(.appwt-q-header) { background: var(--bg-primary); }
html body:has(.appwt-q-header) :is(.cat, .tally) { background: var(--bg-card); border-color: var(--border-color); box-shadow: none; }
html body:has(.appwt-q-header) :is(.cat h2, .tally h3, .tally .row.total) { color: var(--text-primary); }
html body:has(.appwt-q-header) .cat h2 .count { color: var(--text-secondary); }
html body:has(.appwt-q-header) .opt { border-top-color: var(--border-color); }
html body:has(.appwt-q-header) .opt-price { color: var(--accent-text); }
html body:has(.appwt-q-header) .opt-qty { border-color: var(--border-color); }
html body:has(.appwt-q-header) .tally .row { color: var(--text-secondary); }
html body:has(.appwt-q-header) .tally .row.subtotal { border-top-color: var(--border-color); }
html body:has(.appwt-q-header) .tally .row.total { border-top-color: var(--accent-line); }
html body:has(.appwt-q-header) .tally :is(label, .label-monthly) { color: var(--text-secondary); }
html body:has(.appwt-q-header) .tally .cta { background: var(--accent-surface); color: var(--ink-on-accent); }
html body:has(.appwt-q-header) .tally input { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-color); }
html body:has(.appwt-q-header) .opt-label input:is([type="checkbox"], [type="radio"])::before { border-color: var(--accent-line); }
html body:has(.appwt-q-header) .opt-label input[type="radio"]:checked::after { background: var(--accent-surface); }
html body:has(.appwt-q-header) .tally .tally-close:not(:hover) { color: var(--text-secondary) !important; }
/* E4. /michigan-counties/ hub and county pages (.mcbl-*): cards are dark, inks in B; the region chip and seats. */
html body .mcbl-region { background: var(--bg-elevated); border-color: var(--border-color); }
/* E5. /government-court-experience/ (.gce-*): cards are dark, inks in B. */
/* E6. /confidentiality/ (.conf-*): cards and FAQ are dark, inks in B; the answer text. */
html body .conf-faq details .faq-answer { color: var(--text-secondary); }
/* E7. /case-studies/texas-client-work/ (.appwt-web-ai-solutions-txc-*): client panels follow the re-points; the dates,
 * the five-client grid and the stop notes. */
html body .appwt-web-ai-solutions-txc-client .appwt-web-ai-solutions-txc-date { color: var(--text-primary); }
html body .appwt-web-ai-solutions-txc-stop { border-color: var(--border-color); }
/* E8. /services/memorial-songs/ (.ms-*): the process steps and FAQ are dark, inks in B. */
/* E9. /free-guide-schema-mistakes/ landing (index.php, .appwt-web-ai-solutions-fg; its page background is --pearl,
 * which the page maps to --appwt-text-primary). The /guide/ page under it is static HTML that loads no theme file,
 * so this layer cannot reach it. */
html body .appwt-web-ai-solutions-fg { background: var(--bg-primary); }
html body .appwt-web-ai-solutions-fg :is(h1, h2, h3, label) { color: var(--text-primary); }
html body .appwt-web-ai-solutions-fg form { background: var(--bg-card); box-shadow: none; border: 1px solid var(--border-color); }
html body .appwt-web-ai-solutions-fg :is(input[type=text], input[type=email]) { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-color); }
html body .appwt-web-ai-solutions-fg :is(.small, .fg-foot) { color: var(--text-muted); }
html body .appwt-web-ai-solutions-fg hr { border-top-color: var(--border-color); }
html body .appwt-web-ai-solutions-fg :is([style*="color:#64748b"], [style*="color: #64748b"]) { color: var(--text-muted) !important; }

/* F. KEPT AS SERVED: pages with their own design system. The re-points below would otherwise reach a few of their
 * tokens and leave a half-dark page, so each keeps today's value inside its own wrapper (the literal is the page's own
 * fallback, byte for byte). Listed for Tony, not restyled. */
/* F1. /personal-ai-agent-blueprint/ (own --pa-* palette: a pearl document with black and gold bands, 2026-10-21). */
html body .appwt-web-ai-solutions-pa { --appwt-p-surface-f4f1e8: #F4F1E8; --appwt-p-text-4a4a4a: #4A4A4A; --appwt-p-text-6b551f: #6B551F; }
/* F2. /careers/ job-scam warning box (#jobscam-box): a cream alert box whose heading ink is an inline !important, which
 * no stylesheet can outrank, so the box cannot go dark without hiding its heading. Kept cream, as served. */
html body #jobscam-box { --appwt-p-surface-fff8ec: #fff8ec; --appwt-ink-navy: #1E2432; }
/* F3. The service configurator (.svc, assets/css/svc-config.css: /find-your-match/, /products/, /portfolio/,
 * /services/): a light multi-screen app whose later screens, selected-services panel and drawer only open on a click,
 * which the emulation does not do. mixed-probe.js found its white drawer left inside a darkened app. Kept as served
 * (its own 14 re-pointed tokens, today's values) until it gets its own design with a clicked-through check. */
html body .svc { --appwt-ink-slate: #334155; --appwt-p-line-c9cfdb: #c9cfdb; --appwt-p-line-cdd3de: #cdd3de;
  --appwt-p-surface-eaf3ee: #eaf3ee; --appwt-p-surface-eef5f0: #eef5f0; --appwt-p-surface-f1ecfd: #f1ecfd;
  --appwt-p-surface-f1f3f7: #f1f3f7; --appwt-p-surface-f5f6f9: #f5f6f9; --appwt-p-surface-f7f8fb: #f7f8fb;
  --appwt-p-text-3b4351: #3b4351; --appwt-p-text-5b6470: #5b6470; --appwt-p-text-5c4410: #5c4410;
  --appwt-p-text-6b7480: #6b7480; --appwt-p-text-7a5b16: #7a5b16; }

/* ==== BEGIN COHESION RE-POINTS (generated by zane/draft-tokens.py cohesion; edit zane/draft.json, not this block) ==== */
/* 5. TOKEN RE-POINTS (97 re-points + 1 rgb twin), moved here from signature/tokens.css on 2026-12-05.
 * Every token below is a colour the home page never loads (proof: cohesion/COHESION-DRAFT.md); it now follows
 * the home knob for its role: light panels -> --bg-secondary (sections) or --bg-card (cards), slate/navy inks
 * -> --text-primary / --text-secondary / --text-muted, dark-gold link inks -> --accent-text, light hairlines
 * -> --border-color. Each target is var() of a home knob, so ANY theme that sets a knob restyles these too.
 * The engine writes var(--appwt-<token>, <literal>) and _base.css defines --appwt-<token>: var(<token>, ...),
 * so a re-point here reaches every rewritten literal through its alias. ":root:root" outranks the ":root"
 * in _base.css. LOAD ORDER: _base.css, <theme>/tokens.css, THEN this file: 5 re-pointed tokens are knobs
 * that _template/tokens.css carries with their light values (--surface-pearl, --surface-cream, --surface-mist, --ink-slate, --ink-navy),
 * so a theme printed after this file would undo them (measured: zane/ns/check-run*.json).
 * The rgb twin below points at --rgb-bg-card (added to _base.css and the theme template on
 * 2026-12-05), so it follows a theme like the colour it pairs with.
 * Each line: token, was, why. */
:root:root {
    /* ---- LIGHT PANELS -> home section and card surfaces ---- */
    --surface-pearl: var(--bg-secondary);  /* was #fafafa; 673 literals in the palette scan; surface|#fafafa */
    --surface-cream: var(--bg-card);  /* was #fff8f0; 268 literals in the palette scan; surface|#fff8f0 */
    --rgb-surface-cream: var(--rgb-bg-card, 26, 26, 26);  /* rgb twin of --surface-cream, follows --bg-card through --rgb-bg-card */
    --surface-mist: var(--bg-card);  /* was #f6f7f9; 109 literals in the palette scan; surface|#f6f7f9 */
    --p-surface-f6f8fb: var(--bg-secondary);  /* was #f6f8fb; 4 literals in the palette scan; surface|#f6f8fb */
    --p-surface-f4f4f4: var(--bg-secondary);  /* was #f4f4f4; 3 literals in the palette scan; surface|#f4f4f4 */
    --p-surface-fef2f2: var(--bg-secondary);  /* was #fef2f2; 3 literals in the palette scan; surface|#fef2f2 */
    --p-surface-e9edf3: var(--bg-secondary);  /* was #e9edf3; 2 literals in the palette scan; surface|#e9edf3 */
    --p-surface-eef4fb: var(--bg-secondary);  /* was #eef4fb; 2 literals in the palette scan; surface|#eef4fb */
    --p-surface-eef6ff: var(--bg-secondary);  /* was #eef6ff; 2 literals in the palette scan; surface|#eef6ff */
    --p-surface-f0ede6: var(--bg-secondary);  /* was #f0ede6; 2 literals in the palette scan; surface|#f0ede6 */
    --p-surface-f5f0e8: var(--bg-secondary);  /* was #f5f0e8; 2 literals in the palette scan; surface|#f5f0e8 */
    --p-surface-f5f1ea: var(--bg-secondary);  /* was #f5f1ea; 2 literals in the palette scan; surface|#f5f1ea */
    --p-surface-f5f6f9: var(--bg-secondary);  /* was #f5f6f9; 2 literals in the palette scan; surface|#f5f6f9 */
    --p-surface-e6ebf2: var(--bg-secondary);  /* was #e6ebf2; 1 literals in the palette scan; surface|#e6ebf2 */
    --p-surface-e8efe5: var(--bg-secondary);  /* was #e8efe5; 1 literals in the palette scan; surface|#e8efe5 */
    --p-surface-e8f5e9: var(--bg-secondary);  /* was #e8f5e9; 1 literals in the palette scan; surface|#e8f5e9 */
    --p-surface-eaf3ee: var(--bg-secondary);  /* was #eaf3ee; 1 literals in the palette scan; surface|#eaf3ee */
    --p-surface-eeeeee: var(--bg-secondary);  /* was #eeeeee; 1 literals in the palette scan; surface|#eeeeee */
    --p-surface-eef4ef: var(--bg-secondary);  /* was #eef4ef; 1 literals in the palette scan; surface|#eef4ef */
    --p-surface-eef5f0: var(--bg-secondary);  /* was #eef5f0; 1 literals in the palette scan; surface|#eef5f0 */
    --p-surface-eff6ff: var(--bg-secondary);  /* was #eff6ff; 1 literals in the palette scan; surface|#eff6ff */
    --p-surface-f0f0f0: var(--bg-secondary);  /* was #f0f0f0; 1 literals in the palette scan; surface|#f0f0f0 */
    --p-surface-f1ecfd: var(--bg-secondary);  /* was #f1ecfd; 1 literals in the palette scan; surface|#f1ecfd */
    --p-surface-f1f3f7: var(--bg-secondary);  /* was #f1f3f7; 1 literals in the palette scan; surface|#f1f3f7 */
    --p-surface-f1f4f8: var(--bg-secondary);  /* was #f1f4f8; 1 literals in the palette scan; surface|#f1f4f8 */
    --p-surface-f1f5f9: var(--bg-secondary);  /* was #f1f5f9; 1 literals in the palette scan; surface|#f1f5f9 */
    --p-surface-f4f1e8: var(--bg-secondary);  /* was #f4f1e8; 1 literals in the palette scan; surface|#f4f1e8 */
    --p-surface-f4f6f9: var(--bg-secondary);  /* was #f4f6f9; 1 literals in the palette scan; surface|#f4f6f9 */
    --p-surface-f5f0e0: var(--bg-secondary);  /* was #f5f0e0; 1 literals in the palette scan; surface|#f5f0e0 */
    --p-surface-f7f8fb: var(--bg-secondary);  /* was #f7f8fb; 1 literals in the palette scan; surface|#f7f8fb */
    --p-surface-faf5e6: var(--bg-secondary);  /* was #faf5e6; 1 literals in the palette scan; surface|#faf5e6 */
    --p-surface-faf7f0: var(--bg-secondary);  /* was #faf7f0; 1 literals in the palette scan; surface|#faf7f0 */
    --p-surface-fbf3f6: var(--bg-card);  /* was #fbf3f6; 1 literals in the palette scan; surface|#fbf3f6 */
    --p-surface-fef3f2: var(--bg-secondary);  /* was #fef3f2; 1 literals in the palette scan; surface|#fef3f2 */
    --p-surface-fef9e7: var(--bg-secondary);  /* was #fef9e7; 1 literals in the palette scan; surface|#fef9e7 */
    --p-surface-ffeeee: var(--bg-secondary);  /* was #ffeeee; 1 literals in the palette scan; surface|#ffeeee */
    --p-surface-fff7e8: var(--bg-secondary);  /* was #fff7e8; 1 literals in the palette scan; surface|#fff7e8 */
    --p-surface-fff8ec: var(--bg-card);  /* was #fff8ec; 1 literals in the palette scan; surface|#fff8ec */
    --p-surface-f5f5f0: var(--bg-secondary);  /* was #f5f5f0; added by palette-aligned; surface|#f5f5f0 */
    /* ---- SLATE AND NAVY INKS -> home text ---- */
    --ink-slate: var(--text-secondary);  /* was #334155; 1207 literals in the palette scan; custom|#334155, surface|#334155, text|#334155 */
    --ink-navy: var(--text-primary);  /* was #1e2432; 136 literals in the palette scan; custom|#1e2432, text|#1e2432 */
    --p-text-54707f: var(--text-muted);  /* was #54707f; 6 literals in the palette scan; text|#54707f */
    --p-text-5a6b86: var(--text-muted);  /* was #5a6b86; 6 literals in the palette scan; text|#5a6b86 */
    --p-text-5b6675: var(--text-muted);  /* was #5b6675; 5 literals in the palette scan; text|#5b6675 */
    --p-text-4a4f57: var(--text-secondary);  /* was #4a4f57; 4 literals in the palette scan; text|#4a4f57 */
    --p-text-1a2847: var(--text-primary);  /* was #1a2847; 3 literals in the palette scan; text|#1a2847 */
    --p-text-6b7480: var(--text-muted);  /* was #6b7480; 3 literals in the palette scan; text|#6b7480 */
    --p-text-8b949e: var(--text-muted);  /* was #8b949e; 3 literals in the palette scan; text|#8b949e */
    --p-text-1a2b4a: var(--text-primary);  /* was #1a2b4a; 2 literals in the palette scan; text|#1a2b4a */
    --p-text-2b2f36: var(--text-primary);  /* was #2b2f36; 2 literals in the palette scan; text|#2b2f36 */
    --p-text-4a5560: var(--text-secondary);  /* was #4a5560; 2 literals in the palette scan; text|#4a5560 */
    --p-text-4a5568: var(--text-secondary);  /* was #4a5568; 2 literals in the palette scan; text|#4a5568 */
    --p-text-4a6577: var(--text-muted);  /* was #4a6577; 2 literals in the palette scan; text|#4a6577 */
    --p-text-5b6470: var(--text-muted);  /* was #5b6470; 2 literals in the palette scan; text|#5b6470 */
    --p-text-5b6672: var(--text-muted);  /* was #5b6672; 2 literals in the palette scan; text|#5b6672 */
    --p-text-5e5e5e: var(--text-secondary);  /* was #5e5e5e; 2 literals in the palette scan; text|#5e5e5e */
    --p-text-666677: var(--text-muted);  /* was #666677; 2 literals in the palette scan; text|#666677 */
    --p-text-6b6b6b: var(--text-muted);  /* was #6b6b6b; 2 literals in the palette scan; text|#6b6b6b */
    --p-text-6b7688: var(--text-muted);  /* was #6b7688; 2 literals in the palette scan; text|#6b7688 */
    --p-text-7f93b0: var(--text-muted);  /* was #7f93b0; 2 literals in the palette scan; text|#7f93b0 */
    --p-text-8a94a3: var(--text-muted);  /* was #8a94a3; 2 literals in the palette scan; text|#8a94a3 */
    --p-text-3b4351: var(--text-secondary);  /* was #3b4351; 1 literals in the palette scan; text|#3b4351 */
    --p-text-444444: var(--text-secondary);  /* was #444444; 1 literals in the palette scan; text|#444444 */
    --p-text-4a4a4a: var(--text-secondary);  /* was #4a4a4a; 1 literals in the palette scan; text|#4a4a4a */
    --p-text-556677: var(--text-muted);  /* was #556677; 1 literals in the palette scan; text|#556677 */
    --p-text-5b6472: var(--text-muted);  /* was #5b6472; 1 literals in the palette scan; text|#5b6472 */
    --p-text-5b6676: var(--text-muted);  /* was #5b6676; 1 literals in the palette scan; text|#5b6676 */
    --p-text-5f8496: var(--text-muted);  /* was #5f8496; 1 literals in the palette scan; text|#5f8496 */
    --p-text-718096: var(--text-muted);  /* was #718096; 1 literals in the palette scan; text|#718096 */
    --p-text-8a94a6: var(--text-muted);  /* was #8a94a6; 1 literals in the palette scan; text|#8a94a6 */
    /* ---- DARK-GOLD LINK INKS -> home gold ---- */
    --p-text-6b551f: var(--accent-text);  /* was #6b551f; 4 literals in the palette scan; text|#6b551f */
    --p-text-806224: var(--accent-text);  /* was #806224; 3 literals in the palette scan; text|#806224 */
    --p-text-5c4410: var(--accent-text);  /* was #5c4410; 1 literals in the palette scan; text|#5c4410 */
    --p-text-7a5b16: var(--accent-text);  /* was #7a5b16; 1 literals in the palette scan; text|#7a5b16 */
    --p-text-7a5d1c: var(--accent-text);  /* was #7a5d1c; 1 literals in the palette scan; text|#7a5d1c */
    --p-text-854d0e: var(--accent-text);  /* was #854d0e; 1 literals in the palette scan; text|#854d0e */
    /* ---- LIGHT HAIRLINES -> home gold hairline ---- */
    --p-line-e6ebf0: var(--border-color);  /* was #e6ebf0; 10 literals in the palette scan; line|#e6ebf0 */
    --p-line-e4e2da: var(--border-color);  /* was #e4e2da; 8 literals in the palette scan; line|#e4e2da */
    --p-line-dddddd: var(--border-color);  /* was #dddddd; 6 literals in the palette scan; line|#dddddd */
    --p-line-c9cfdb: var(--border-color);  /* was #c9cfdb; 3 literals in the palette scan; line|#c9cfdb */
    --p-line-e3e8f0: var(--border-color);  /* was #e3e8f0; 3 literals in the palette scan; line|#e3e8f0 */
    --p-line-eef2f5: var(--border-color);  /* was #eef2f5; 3 literals in the palette scan; line|#eef2f5 */
    --p-line-e5e5e0: var(--border-color);  /* was #e5e5e0; 2 literals in the palette scan; line|#e5e5e0 */
    --p-line-f1f5f9: var(--border-color);  /* was #f1f5f9; 2 literals in the palette scan; line|#f1f5f9 */
    --p-line-cbd5e1: var(--border-color);  /* was #cbd5e1; 1 literals in the palette scan; line|#cbd5e1 */
    --p-line-cdd3de: var(--border-color);  /* was #cdd3de; 1 literals in the palette scan; line|#cdd3de */
    --p-line-d5dce6: var(--border-color);  /* was #d5dce6; 1 literals in the palette scan; line|#d5dce6 */
    --p-line-d5e5da: var(--border-color);  /* was #d5e5da; 1 literals in the palette scan; line|#d5e5da */
    --p-line-e3e3e3: var(--border-color);  /* was #e3e3e3; 1 literals in the palette scan; line|#e3e3e3 */
    --p-line-e8e4dc: var(--border-color);  /* was #e8e4dc; 1 literals in the palette scan; line|#e8e4dc */
    --p-line-e8e4f0: var(--border-color);  /* was #e8e4f0; 1 literals in the palette scan; line|#e8e4f0 */
    --p-line-ececec: var(--border-color);  /* was #ececec; 1 literals in the palette scan; line|#ececec */
    --p-line-eeeeee: var(--border-color);  /* was #eeeeee; 1 literals in the palette scan; line|#eeeeee */
    --p-line-eeeeff: var(--border-color);  /* was #eeeeff; 1 literals in the palette scan; line|#eeeeff */
    --p-line-eef1f5: var(--border-color);  /* was #eef1f5; 1 literals in the palette scan; line|#eef1f5 */
    --p-line-efd9e2: var(--border-color);  /* was #efd9e2; 1 literals in the palette scan; line|#efd9e2 */
    --p-line-f0e6ea: var(--border-color);  /* was #f0e6ea; 1 literals in the palette scan; line|#f0e6ea */
}
/* ==== END COHESION RE-POINTS ==== */
