/* Paleta da sala, definida no kit clivon-tokens.css. As famílias públicas
   mantêm a tipografia e os layouts, com aliases para seus tokens legados. */
html[data-public-theme] {
  --cv-bg: #f3f1ec;
  --cv-surface: #fbf8f1;
  --cv-card-a: #fffdf9;
  --cv-card-b: #f2eee4;
  --cv-raised: #fffdf8;
  --cv-text: #25342e;
  --cv-title: #1c2625;
  --cv-muted: #505d55;
  --cv-line: rgba(83,67,37,.16);
  --cv-line-strong: rgba(137,95,29,.42);
  --cv-gold: #aa7728;
  --cv-gold-ink: #795014;
  --cv-gold-soft: rgba(190,140,45,.14);
  --cv-primary-ink: #231806;
  --cv-bad: #a8452f;
  --cv-ok: #2f6b40;
  --cv-warn: #8a510c;
  --cv-r-card: 18px;
  --cv-r-control: 12px;
  --cv-shadow: inset 0 1px 0 #fff,0 14px 34px rgba(74,59,34,.08);
  --cv-action-fill: color-mix(in srgb, var(--cv-gold) 57%, var(--cv-raised));
}

html[data-public-theme="dark"] {
  --cv-bg: #071011;
  --cv-surface: #0d1718;
  --cv-card-a: #122021;
  --cv-card-b: #0b1617;
  --cv-raised: #132021;
  --cv-text: #e9e4d8;
  --cv-title: #f5efe5;
  --cv-muted: #b7b8ae;
  --cv-line: rgba(226,205,144,.17);
  --cv-line-strong: rgba(241,209,118,.46);
  --cv-gold: #d4af37;
  --cv-gold-ink: #f1d176;
  --cv-gold-soft: rgba(232,191,105,.13);
  --cv-primary-ink: #1a1307;
  --cv-bad: #d87c6a;
  --cv-ok: #89be90;
  --cv-warn: #efc27d;
  --cv-shadow: inset 0 1px 0 rgba(255,239,191,.06),0 18px 44px rgba(0,0,0,.25);
  --cv-action-fill: var(--cv-gold-ink);
}

.public-theme-controls {
  display: flex;
  justify-content: center;
  padding: 16px 20px;
  background: var(--cv-bg);
}

button.public-theme-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--cv-line-strong);
  border-radius: var(--cv-r-control);
  background: var(--cv-raised);
  color: var(--cv-gold-ink);
  font: 600 .875rem/1.25 system-ui, sans-serif;
  cursor: pointer;
}

button.public-theme-button:focus-visible {
  outline: 2px solid var(--cv-gold-ink);
  outline-offset: 3px;
}

html[data-public-theme="light"] {
  color-scheme: light;
  background: var(--cv-bg);
  --clivon-black: var(--cv-bg);
  --clivon-ink: var(--cv-card-b);
  --clivon-panel: var(--cv-surface);
  --clivon-panel-soft: var(--cv-card-b);
  --clivon-white: var(--cv-title);
  --clivon-muted: var(--cv-muted);
  --clivon-subtle: var(--cv-muted);
  --clivon-line: var(--cv-line);
  --clivon-line-strong: var(--cv-line-strong);
  --clivon-gold: var(--cv-gold-ink);
  --clivon-gold-soft: var(--cv-gold-ink);
  --clivon-gold-deep: var(--cv-gold-ink);

  --canon-black: var(--cv-bg);
  --canon-ink: var(--cv-card-b);
  --canon-panel: var(--cv-surface);
  --canon-panel-soft: var(--cv-card-b);
  --canon-ivory: var(--cv-title);
  --canon-muted: var(--cv-muted);
  --canon-subtle: var(--cv-muted);
  --canon-gold: var(--cv-gold-ink);
  --canon-gold-mid: var(--cv-gold-ink);
  --canon-gold-bright: var(--cv-gold-ink);
  --canon-gold-pale: var(--cv-gold-ink);
  --canon-metal: var(--cv-action-fill);
  --canon-metal-soft: linear-gradient(var(--cv-gold-ink), var(--cv-gold-ink));
  --canon-line: var(--cv-line);
  --canon-line-strong: var(--cv-line-strong);
  --canon-line-gold: var(--cv-line-strong);
  --canon-shadow: var(--cv-shadow);
  --public-veil: color-mix(in srgb, var(--cv-bg) 94%, transparent);
}

/* Institutional, editorial, content and glossary share the same shell. */
html[data-public-theme="light"] :is(
  .clivon-header, .clivon-header--solid, .clivon-editorial-meta,
  .clivon-editorial-cta, .clivon-footer, .clivon-cta, .clivon-module,
  .clivon-faq, .clivon-faq-item, .clivon-article-aside, .clivon-article-index,
  .site-tier, .site-feature, .clivon-editorial-card
) {
  background: var(--cv-surface);
  border-color: var(--cv-line);
}

html[data-public-theme="light"] :is(body[data-canon-page], .clivon-editorial-body) {
  color: var(--cv-text);
  background: var(--cv-bg);
}

html[data-public-theme="light"] body[data-canon-page] .clivon-hero .clivon-hero-media::before {
  background: linear-gradient(90deg, var(--cv-bg) 10%, var(--public-veil) 58%, color-mix(in srgb, var(--cv-bg) 38%, transparent));
}

html[data-public-theme="light"] .clivon-hero-media::after {
  background: linear-gradient(0deg, var(--cv-bg), transparent 55%);
}

html[data-public-theme="light"] body[data-canon-family="editorial"] .clivon-editorial-hero::before {
  background:
    linear-gradient(90deg, var(--cv-bg) 10%, var(--public-veil) 62%, color-mix(in srgb, var(--cv-bg) 48%, transparent)),
    var(--canon-hero-image) center / cover no-repeat;
}

html[data-public-theme="light"] :is(
  .clivon-hero-lead, .clivon-editorial-lead, .clivon-editorial-answer, .clivon-editorial-summary,
  .clivon-nav a, .clivon-footer p, .clivon-footer a, .clivon-footer small,
  .clivon-article p, .clivon-faq-item p, .clivon-editorial-meta p,
  .clivon-editorial-breadcrumb, .clivon-editorial-breadcrumb a
) {
  color: var(--cv-muted);
}

html[data-public-theme="light"] :is(.clivon-button, .clivon-cta .clivon-button) {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
  border-color: var(--cv-line-strong);
  border-radius: var(--cv-r-control);
  box-shadow: none;
}

html[data-public-theme="light"] :is(.clivon-nav-primary, .clivon-button--ghost, .landing-whatsapp) {
  background: var(--cv-raised);
  color: var(--cv-gold-ink);
  border-color: var(--cv-line-strong);
  border-radius: var(--cv-r-control);
}

html[data-public-theme="light"] .clivon-menu-toggle {
  background: var(--cv-surface);
  border-color: var(--cv-line-strong);
}

html[data-public-theme="light"] .clivon-menu-toggle span {
  background: var(--cv-title);
}

@media (max-width: 960px) {
  html[data-public-theme="light"] .clivon-nav {
    background: var(--cv-surface);
    border-color: var(--cv-line);
  }
}

html[data-public-theme="light"] :is(
  .clivon-logo, .clivon-footer-brand, .home-footer__brand,
  .growth-hero-brand, .growth-legal-footer__brand, .launch-hero-brand, .launch-legal-footer__brand,
  .radar-logo, .brand__logo, .legal-brand, .thanks-brand, .status-brand
) img,
html[data-public-theme="light"] :is(img.clivo-logo, img.status-brand, img.thanks-brand)[src*="transparent-dark"],
html[data-public-theme="light"] img[src*="clivon-logo-gold-transparent-dark"] {
  content: url("/assets/brand/clivon/clivon-logo-gold-transparent-light-480.webp");
}

/* Abertura e catálogo. Conserva a fotografia, com a área de leitura em marfim. */
html[data-public-theme="light"]:has(.home-page) {
  --ink: var(--cv-card-b);
  --ink-soft: var(--cv-surface);
  --ink-deep: var(--cv-bg);
  --ivory: var(--cv-title);
  --ivory-dim: var(--cv-text);
  --muted: var(--cv-muted);
  --gold: var(--cv-gold-ink);
  --gold-light: var(--cv-gold-ink);
  --gold-bright: var(--cv-gold-ink);
  --line: var(--cv-line-strong);
  --line-soft: var(--cv-line);
  --on-metal: var(--cv-action-fill);
  --on-ink: var(--cv-primary-ink);
}

html[data-public-theme="light"] :is(.home-header, .home-footer) {
  background: var(--cv-surface);
  border-bottom: 1px solid var(--cv-line);
}

html[data-public-theme="light"] .home-hero__scene::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 3;
  background: linear-gradient(90deg, var(--cv-bg) 12%, var(--public-veil) 68%, color-mix(in srgb, var(--cv-bg) 65%, transparent));
}

html[data-public-theme="light"] :is(
  .home-hero__title, .home-hero__lede, .home-hero__arrive,
  .home-hero__arrive-label, .home-hero__scroll-cue, .home-hero__side, .home-footer__base small
) {
  color: var(--cv-title);
  text-shadow: none;
}

html[data-public-theme="light"] :is(.home-hero__title em, .home-section-title em, .home-card__cta, .home-card__eyebrow, .home-radar__eyebrow) {
  background: none;
  color: var(--cv-gold-ink);
  -webkit-text-fill-color: currentColor;
}

html[data-public-theme="light"] :is(.home-header-btn, .home-hero__arrive-arrow, .home-menu-toggle, .home-mobile-menu) {
  background: var(--cv-raised);
  color: var(--cv-gold-ink);
  border-color: var(--cv-line-strong);
}

html[data-public-theme="light"] :is(.home-card, .home-radar) {
  --card-bg: none;
  background: var(--cv-surface);
  color: var(--cv-title);
  border-color: var(--cv-line);
}

html[data-public-theme="light"] :is(.home-card, .home-radar)::before {
  opacity: .12;
}

@media (max-width: 768px) {
  html[data-public-theme="light"] .home-hero__scene::after {
    background: linear-gradient(180deg, var(--public-veil) 72%, color-mix(in srgb, var(--cv-bg) 80%, transparent));
  }

  html[data-public-theme="light"] body[data-canon-page] .clivon-hero .clivon-hero-media::before {
    background: var(--public-veil);
  }

  html[data-public-theme="light"] body[data-canon-family="editorial"] .clivon-editorial-hero::before {
    background: linear-gradient(var(--public-veil), var(--public-veil)), var(--canon-hero-image) center / cover no-repeat;
  }
}

/* Landing /imobiliaria, política por cliente e demonstração pública. */
html[data-public-theme]:has(.masthead .logo) {
  --ink: var(--cv-bg);
  --ink-2: var(--cv-surface);
  --ink-3: var(--cv-card-b);
  --ivory: var(--cv-title);
  --mist: var(--cv-muted);
  --line: var(--cv-line);
  --line-strong: var(--cv-line-strong);
  --gold: var(--cv-action-fill);
  --gold-light: var(--cv-gold-ink);
  --radius: var(--cv-r-card);
}

html[data-public-theme]:has(.masthead .logo) :is(.poster::after, #demo-placeholder::after) {
  background: linear-gradient(transparent, var(--cv-surface));
}

html[data-public-theme]:has(.masthead .logo) :is(.primary, .play) {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
}

html[data-public-theme]:has(.masthead .logo) :is(.fixed-cta, .discoveries button[aria-pressed="true"]) {
  background: var(--cv-surface);
}

html[data-public-theme]:has(.masthead .logo) :is(.eyebrow, .discoveries button span) {
  color: var(--cv-gold-ink);
}

html[data-public-theme] .public-demo-page,
html[data-public-theme]:has(.public-demo-page),
html[data-public-theme] .client-privacy-page {
  background: var(--cv-bg);
  color: var(--cv-text);
}

html[data-public-theme] .client-privacy-page :is(a, .eyebrow) {
  color: var(--cv-gold-ink);
}

/* Páginas de retorno e onboarding. Preenchimentos e botões de ação são sólidos. */
html[data-public-theme="light"]:has(:is(.public-v3-body, .meta-connect-body, .checkout-return, .checkout-intake)) {
  --page: var(--cv-bg);
  --page-soft: var(--cv-card-b);
  --surface: var(--cv-surface);
  --surface-raised: var(--cv-raised);
  --surface-quiet: var(--cv-card-b);
  --text: var(--cv-text);
  --text-soft: var(--cv-muted);
  --ink: var(--cv-title);
  --ink-soft: var(--cv-text);
  --muted: var(--cv-muted);
  --muted-strong: var(--cv-muted);
  --line: var(--cv-line);
  --line-strong: var(--cv-line-strong);
  --accent: var(--cv-gold-ink);
  --accent-strong: var(--cv-gold-ink);
  --accent-ink: var(--cv-primary-ink);
  --glass-fill-default: var(--cv-surface);
  --glass-fill-strong: var(--cv-raised);
  --glass-fill-subtle: var(--cv-card-b);
  --glass-border-color: var(--cv-line);
  --glass-border-strong: var(--cv-line-strong);
  --glass-shadow: var(--cv-shadow);
  --glass-shadow-strong: var(--cv-shadow);
  --glass-gradient: none;
  --bg-950: var(--cv-bg);
  --bg-900: var(--cv-card-b);
  --bg-1: var(--cv-bg);
  --bg-2: var(--cv-card-b);
  --card: var(--cv-surface);
  --panel: var(--cv-surface);
  --panel-strong: var(--cv-raised);
  --warning: var(--cv-warn);
  --danger: var(--cv-bad);
  --success: var(--cv-ok);
}

html[data-public-theme="light"] :is(body.public-v3-body, body.checkout-return, body.meta-connect-body) {
  background: var(--cv-bg);
  color: var(--cv-text);
  color-scheme: light;
}

html[data-public-theme="light"] :is(.public-v3-card, .public-v3-panel, .public-v3-header, .public-v3-note, .checkout-return .checkout-card) {
  background: var(--cv-surface);
  border-color: var(--cv-line);
}

html[data-public-theme="light"] :is(.public-v3-button, .checkout-return .btn--primary, .meta-connect-body .primary-cta) {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
  border-radius: var(--cv-r-control);
}

html[data-public-theme="light"] :is(.public-v3-body, .checkout-return, .meta-connect-body) :is(input:not([type="checkbox"],[type="radio"]), select, textarea) {
  background: var(--cv-raised);
  color: var(--cv-title);
  border-color: var(--cv-line-strong);
}

html[data-public-theme="light"] .meta-connect-body[data-theme="light"] {
  --ink: var(--cv-bg);
  --ink-2: var(--cv-surface);
  --ink-3: var(--cv-card-b);
  --ivory: var(--cv-title);
  --mist: var(--cv-muted);
  --gold: var(--cv-gold-ink);
  --green: var(--cv-ok);
  --red: var(--cv-bad);
  --line: var(--cv-line);
  --line-strong: var(--cv-line-strong);
}

/* Jurídico mantém a marcação e os textos. */
html[data-public-theme="light"]:has(.brand-lockup) {
  --ink: var(--cv-bg);
  --ink-deep: var(--cv-bg);
  --ink-soft: var(--cv-card-b);
  --ivory: var(--cv-title);
  --muted: var(--cv-muted);
  --subtle: var(--cv-muted);
  --gold: var(--cv-gold-ink);
  --gold-soft: var(--cv-gold-ink);
  --line: var(--cv-line);
  --line-strong: var(--cv-line-strong);
  --line-gold: var(--cv-line-strong);
}

html[data-public-theme="light"] :is(.legal-header, .legal-footer, .legal-card) {
  background: var(--cv-surface);
  border-color: var(--cv-line);
}

/* As peças Growth e Launch incluem arte fechada com texto. A foto e os
   mockups preservam os pixels, com o texto HTML e as ações no tema da página. */
html[data-public-theme="light"] :is(.launch-header, .launch-legal-footer, .growth-legal-footer, .growth-site-nav),
html[data-public-theme="light"] :is(.launch-mobile-menu, .growth-mobile-menu) {
  background: var(--cv-surface);
  color: var(--cv-text);
}

html[data-public-theme="light"] :is(.launch-header, .launch-legal-footer, .growth-legal-footer, .growth-site-nav) :is(a, small, p, button) {
  color: var(--cv-text);
}

html[data-public-theme="light"] :is(.launch-nav button, .launch-login-link, .growth-site-nav a, .growth-site-nav button) {
  background: transparent;
  color: var(--cv-text);
}

html[data-public-theme="light"] :is(.launch-header-cta, .growth-nav-cta, .launch-hero-cta--primary) {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
  box-shadow: none;
}

html[data-public-theme="light"] .launch-hero::before {
  z-index: 1;
  background: linear-gradient(90deg, var(--cv-bg) 42.3%, transparent 42.3%);
  mix-blend-mode: normal;
}

html[data-public-theme="light"] .launch-hero :is(.launch-hero-title, .launch-hero-eyebrow, .launch-hero-sub, .launch-hero-actions) {
  z-index: 2;
  color: var(--cv-title);
}

html[data-public-theme="light"] :is(.launch-hero-cta--ghost, .launch-hero-caption) {
  background: var(--cv-surface);
  color: var(--cv-gold-ink);
}

html[data-public-theme="light"] .growth-hero-copy { color: var(--cv-title); }

html[data-public-theme="light"] .growth-hero-copy :is(h1, .growth-hero-title-mobile, p) {
  color: var(--cv-title);
}

html[data-public-theme="light"] :is(.growth-hero-partner, .growth-hero-partner__label) {
  background: transparent;
  color: var(--cv-muted);
}

html[data-public-theme="light"] :is(.growth-diagnosis-dialog, .launch-dialog) {
  background: var(--cv-surface);
  color: var(--cv-text);
}

html[data-public-theme="light"] :is(.growth-diagnosis-dialog, .launch-dialog) :is(label, p, h2, a) {
  color: var(--cv-text);
}

html[data-public-theme="light"] :is(.growth-diagnosis-dialog, .launch-dialog) :is(input:not([type="checkbox"]), select, textarea) {
  background: var(--cv-raised);
  color: var(--cv-title);
  border-color: var(--cv-line-strong);
}

@media (max-width: 760px) {
  html[data-public-theme="light"] .launch-hero {
    background: var(--cv-bg);
  }
}

html[data-public-theme="light"] :is(.home-hero__content, .home-hero__arrive)::before {
  background: none;
}

html[data-public-theme="light"] .home-hero__eyebrow {
  text-shadow: none;
}

html[data-public-theme="light"] .home-menu-toggle span {
  background: var(--cv-title);
}

html[data-public-theme="light"] body[data-canon-family="editorial"] :is(.clivon-archive, .clivon-article-layout) {
  background: var(--cv-bg);
}

html[data-public-theme="light"] body[data-canon-family="editorial"] :is(.clivon-archive-card, .clivon-answer, .clivon-definition),
html[data-public-theme="light"] body[data-canon-page] :is(
  .clivon-hero-signature, .clivon-method-rail, .clivon-principle,
  .clivon-process-step, .clivon-rhythm
) {
  background: var(--cv-surface);
  color: var(--cv-text);
  border-color: var(--cv-line);
  box-shadow: var(--cv-shadow);
}

html[data-public-theme="light"] :is(.clivon-answer, .clivon-definition, .clivon-editorial-summary) {
  color: var(--cv-text);
}

html[data-public-theme="light"] body[data-canon-family="legal"] :is(.site-header, .index-card, .contact-card, .site-footer),
html[data-public-theme="light"] .site-header:has(.brand-lockup) {
  background: var(--cv-surface);
  color: var(--cv-text);
}

html[data-public-theme] .header-actions .theme-toggle {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 0 .8rem;
  border: 1px solid var(--cv-line-strong);
  border-radius: var(--cv-r-control);
  background: var(--cv-raised);
  color: var(--cv-gold-ink);
  font: inherit;
  cursor: pointer;
}

html[data-public-theme] .header-actions .theme-toggle:focus-visible {
  outline: 2px solid var(--cv-gold-ink);
  outline-offset: 3px;
}

html[data-public-theme="light"] body[data-canon-family="legal"] :is(.hero-copy, .brand-context, .breadcrumb, .doc-nav a, .content-card p) {
  color: var(--cv-muted);
}

html[data-public-theme="light"] :is(.header-actions .top-link, .header-actions .lang-link) {
  color: var(--cv-gold-ink);
}

html[data-public-theme="light"] body[data-canon-family="legal"] .hero::before {
  background:
    linear-gradient(90deg, var(--cv-bg) 14%, var(--public-veil) 75%, var(--public-veil)),
    url("/shared/assets/clivon-gold-canonical-v1/trust-material.webp") center / cover no-repeat;
}

html[data-public-theme="light"] body[data-canon-family="legal"] .doc-layout::before {
  opacity: .12;
}

html[data-public-theme="light"] .radar-page[data-canon-page] {
  --radar-black: var(--cv-bg);
  --radar-panel: var(--cv-surface);
  --radar-ivory: var(--cv-title);
  --radar-muted: var(--cv-muted);
  --radar-faint: var(--cv-muted);
  --radar-gold: var(--cv-gold-ink);
  --radar-gold-bright: var(--cv-gold-ink);
  --radar-gold-soft: var(--cv-gold-ink);
  --radar-line: var(--cv-line-strong);
  background: var(--cv-bg);
}

html[data-public-theme="light"] .radar-page::after {
  background: none;
}

html[data-public-theme="light"] .radar-page[data-canon-page] :is(
  .radar-hero, .radar-question-panel, .radar-visual-panel, .radar-progress-wrap, .radar-footer, .radar-option
) {
  border-color: var(--cv-line);
  background: var(--cv-surface);
  color: var(--cv-text);
}

html[data-public-theme="light"] .radar-page[data-canon-page] .radar-option[aria-checked="true"] {
  background: var(--cv-card-b);
  border-color: var(--cv-gold-ink);
}

html[data-public-theme="light"] .radar-page :is(.radar-progress-copy, .radar-footer-note p, .radar-option-copy strong, .radar-option-copy span) {
  color: var(--cv-text);
}

html[data-public-theme="light"] .growth-gold-page .growth-hero-overrides::before {
  background: var(--cv-surface);
}

html[data-public-theme="light"] .growth-gold-page .growth-artwork > picture::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(var(--cv-bg), var(--cv-bg)) left top / 42% 14.8% no-repeat;
}

html[data-public-theme="light"] .growth-gold-page :is(.growth-semantic-section--hero, .growth-hero-action-mask) {
  background: var(--cv-bg);
}

html[data-public-theme="light"] .growth-gold-page .growth-topbar-actions .growth-hotspot:not(.growth-hotspot--header) {
  color: var(--cv-text);
}

html[data-public-theme="light"] .growth-gold-page :is(.growth-hotspot--header, .growth-hotspot--hero-primary) {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
  border-radius: var(--cv-r-control);
}

html[data-public-theme="light"] .growth-gold-page :is(.growth-login-link, .growth-hotspot--hero-secondary) {
  background: var(--cv-raised);
  color: var(--cv-gold-ink);
  border-color: var(--cv-line-strong);
  border-radius: var(--cv-r-control);
}

html[data-public-theme="light"] .launch-hero-caption {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 12px;
}

html[data-public-theme="light"] :is(.launch-hero-brand, .launch-hero-cta--ghost) {
  background: var(--cv-surface);
  box-shadow: none;
}

html[data-public-theme="light"] .launch-hero-cta--ghost {
  padding-inline: .75rem;
  text-align: center;
}

@media (max-width: 760px) {
  html[data-public-theme="light"] .growth-gold-page .growth-artwork > picture::after {
    background-size: 73% 7.6%;
  }
  html[data-public-theme="light"] .launch-hero {
    padding-top: 16px;
  }
}

html[data-public-theme="light"] :is(.home-page .skip-link, .home-page .home-text-link, .home-page .home-kicker, .realtor-illustrative, .landing-consent-open) {
  color: var(--cv-gold-ink);
}

html[data-public-theme="light"] .home-page .skip-link {
  background: var(--cv-raised);
}

html[data-public-theme="light"] :is(.home-library__item, .home-pillars, .home-choice) {
  background: var(--cv-bg);
}

html[data-public-theme="light"] .home-page :is(.home-kicker, .home-text-link, .home-choice__title em) {
  background: none;
  color: var(--cv-gold-ink);
  -webkit-text-fill-color: currentColor;
}

html[data-public-theme="light"] .realtor-device {
  --rd-bg: var(--cv-surface);
  --rd-ink: var(--cv-title);
  --rd-gold: var(--cv-gold-ink);
  --rd-line: var(--cv-line);
}

html[data-public-theme="light"] .realtor-device :is(.realtor-device__screen, .realtor-mock-lead, .realtor-mock-lead--new) {
  background: var(--cv-surface);
  color: var(--cv-text);
}

html[data-public-theme="light"] .realtor-device :is(
  .realtor-device__count, .realtor-mock-lead__meta, .realtor-mock-lead__answers,
  .realtor-mock-status, .realtor-mock-funnel__label, .realtor-mock-funnel__row em
) {
  color: var(--cv-muted);
}

html[data-public-theme="light"] .realtor-device .realtor-mock-lead__badge {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
}

html[data-public-theme="light"] .thank-you-page :is(h1, h2, h3),
html[data-public-theme="light"] body[data-canon-family="legal"] .content-card h3 {
  color: var(--cv-title);
}

html[data-public-theme] .thank-you-shell {
  min-width: 0;
}

html[data-public-theme] .thank-you-shell img {
  max-inline-size: 100%;
}

html[data-public-theme="light"] .growth-gold-page .growth-topbar-actions a.growth-hotspot:not(.growth-hotspot--header) {
  background: var(--cv-surface);
  color: var(--cv-title);
}

html[data-public-theme="light"] .growth-gold-page :is(.growth-hero-copy em, .growth-legal-footer strong) {
  color: var(--cv-gold-ink);
}

html[data-public-theme="light"] .growth-gold-page .growth-hero-action-mask {
  background: var(--cv-bg);
}

html[data-public-theme="light"] :is(.launch-hero-cta, .launch-mobile-menu button) {
  border-radius: var(--cv-r-control);
}

html[data-public-theme="light"] .launch-menu-toggle span {
  background: var(--cv-gold-ink);
}

/* Portfólio e apresentação usam tokens locais, pois são páginas independentes. */
html[data-public-theme="light"]:has(.filters .chip) {
  --ink: var(--cv-bg);
  --panel: var(--cv-surface);
  --ivory: var(--cv-title);
  --muted: var(--cv-muted);
  --line: var(--cv-line);
  --gold: var(--cv-gold-ink);
  --gold-pale: var(--cv-gold-ink);
  --metal: var(--cv-action-fill);
}

html[data-public-theme="light"] .filters .chip[aria-pressed="true"] {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
}

html[data-public-theme="light"] .tile .tile-caption,
html[data-public-theme="light"] .vplay :is(.pbtn, .dur) {
  color: var(--cv-card-a);
}

html[data-public-theme="light"]:has(.clivon-not-found) .clivon-hero-media::before {
  background: var(--public-veil);
}

html[data-public-theme="dark"]:has(.masthead .logo) .masthead .logo {
  content: url("/assets/brand/clivon/clivon-logo-gold-transparent-dark-480.webp");
}

html[data-public-theme="light"]:has(.presentation-page) {
  --black: var(--cv-bg);
  --panel: var(--cv-surface);
  --white: var(--cv-title);
  --muted: var(--cv-muted);
  --gold: var(--cv-gold-ink);
  --line: var(--cv-line);
}

html[data-public-theme="light"] .presentation-page :is(.navigation, button:hover) {
  background: var(--cv-surface);
}

html[data-public-theme="light"] .presentation-page :is(button.primary, a.primary) {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
}

html[data-public-theme="light"] body.clivon-answer-body[data-canon-family="editorial"] .clivon-editorial-meta {
  background: var(--cv-surface);
  border-color: var(--cv-line);
}

html[data-public-theme="light"] body.clivon-answer-body[data-canon-family="editorial"] .clivon-editorial-summary {
  background: var(--cv-surface);
  color: var(--cv-text);
}

html[data-public-theme="light"] :is(.clivon-text-link, .clivon-article a, .clivon-article-index a, .support-copy a) {
  color: var(--cv-gold-ink);
}

html[data-public-theme="light"] .clivon-editorial-meta :is(time, .clivon-editorial-meta-label) {
  color: var(--cv-muted);
}

html[data-public-theme="light"] .public-v3-body :is(.skip-link, .onboarding-progress .is-current span) {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
}

html[data-public-theme="light"] .public-v3-body :is(.onboarding-progress strong, .hero-note strong) {
  color: var(--cv-title);
}

html[data-public-theme="light"] :is(.page-shell .breadcrumb, .page-shell .brand-context, .page-shell .kicker, .page-shell .section-label) {
  color: var(--cv-gold-ink);
}

html[data-public-theme="light"] .page-shell :is(.badge, .doc-nav, .page-footer, .trust-grid .legal-card) {
  background: var(--cv-surface);
  color: var(--cv-text);
}

html[data-public-theme="light"] .home-pillars :is(.home-pillars__title, .home-pillar__index, em) {
  color: var(--cv-gold-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

html[data-public-theme="light"] .page-footer :is(strong, a),
html[data-public-theme="light"] .public-v3-body :is(.hero-note span, .onboarding-progress .is-complete span) {
  color: var(--cv-muted);
}

html[data-public-theme="light"] .public-v3-body .public-v3-button--secondary {
  background: var(--cv-raised);
  color: var(--cv-gold-ink);
  border-color: var(--cv-line-strong);
}

html[data-public-theme="light"]:has(.filters .chip) h1 em {
  background: none;
  color: var(--cv-gold-ink);
}

html[data-public-theme="light"] :is(.home-section-title em, .home-pillar__index) {
  color: var(--cv-gold-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

html[data-public-theme="light"] .home-quote__title em {
  background: none;
  color: var(--cv-gold-ink);
  -webkit-text-fill-color: currentColor;
}

html[data-public-theme="light"]:has(.filters .chip) .cta a,
html[data-public-theme="light"] .contact-card > .top-link,
html[data-public-theme="light"] .checkout-intake :is(.skip-link, .intake-form button[type="submit"]) {
  background: var(--cv-action-fill);
  color: var(--cv-primary-ink);
  border-radius: var(--cv-r-control);
}

html[data-public-theme="light"] .intake-page .onboarding-progress li {
  background: var(--cv-surface);
  color: var(--cv-text);
}

html[data-public-theme="light"] .clivon-method-rail li {
  color: var(--cv-text);
  border-color: var(--cv-line);
}
