/* Ajeita AI V44 — correções globais do site público claro/escuro. */
body.g7-ref-public .g7-ref-header{
  background:linear-gradient(90deg,#071a3b,#0b2854)!important;
  border-bottom:1px solid rgba(255,255,255,.09)!important;
  box-shadow:0 10px 34px rgba(5,22,50,.12)!important;
}
body.g7-ref-public .g7-ref-header .ajeita-public-wordmark strong{color:#fff!important;visibility:visible!important;opacity:1!important}
body.g7-ref-public .g7-ref-header .ajeita-public-wordmark small{color:rgba(255,255,255,.68)!important;visibility:visible!important;opacity:1!important;display:block!important}
body.g7-ref-public .g7-ref-header .g7-ref-drop>a{color:#f5f8ff!important}
body.g7-ref-public .g7-ref-header-actions{display:flex!important;visibility:visible!important;opacity:1!important}
body.g7-ref-public .g7-ref-public-search,
body.g7-ref-public .g7-ref-public-theme,
body.g7-ref-public .g7-ref-login{
  visibility:visible!important;opacity:1!important;color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;background:rgba(255,255,255,.065)!important;
}
body.g7-ref-public .g7-ref-public-search i,
body.g7-ref-public .g7-ref-public-search svg,
body.g7-ref-public .g7-ref-public-theme i,
body.g7-ref-public .g7-ref-public-theme svg{color:currentColor!important;fill:currentColor!important;opacity:1!important}
body.g7-ref-public .g7-ref-login:hover,
body.g7-ref-public .g7-ref-public-search:hover,
body.g7-ref-public .g7-ref-public-theme:hover{background:rgba(255,255,255,.12)!important}

/* Alternador público: um único ícone sol/lua, sem estado visual ambíguo. */
body.g7-ref-public .g7-theme-switch-v24{width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;display:inline-grid!important;place-items:center!important;border-radius:999px!important}
body.g7-ref-public .g7-theme-switch-v24 .g7-theme-icon-v24{display:none!important;width:32px!important;height:32px!important;flex:0 0 32px!important;background:transparent!important;box-shadow:none!important;color:#fff!important}
body.g7-ref-public .g7-theme-switch-v24[data-resolved-theme="light"] .g7-theme-sun-v24{display:inline-flex!important;color:#ffd15c!important}
body.g7-ref-public .g7-theme-switch-v24[data-resolved-theme="dark"] .g7-theme-moon-v24{display:inline-flex!important;color:#dce9ff!important}

/* Usuário autenticado no header. */
body.g7-ref-public .g7-ref-user-access{padding:5px 10px 5px 6px!important;gap:7px!important;min-height:40px!important}
.g7-ref-user-access-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#2477f3,#5a8fff);color:#fff;font-size:9px;font-weight:850;letter-spacing:.02em;flex:0 0 28px}
.g7-ref-user-access-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:750;color:#fff!important}

/* Categorias sem o antigo cartão “Evidências do caso”. */
.g7-ref-category-hero-grid-single{grid-template-columns:minmax(0,820px)!important;justify-content:start!important}
.g7-ref-category-hero-grid-single .g7-ref-category-copy{max-width:820px!important}

/* Dark: títulos e textos nunca podem herdar cor escura sobre superfície escura. */
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-info-three h3,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-info-three strong,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-section-heading h1,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-section-heading h2,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-category-copy h1,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-common-grid h3,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-result-section h1,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-result-section h2,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-contact-card h2,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-contact-card h3,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-form-card h2,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-form-card h3,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-card h1,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-card h2,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-card h3,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-category-card h3,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-search-result h3{color:#f3f7ff!important}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-info-three p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-section-heading p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-category-copy p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-category-copy small,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-common-grid p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-result-section p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-contact-card p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-form-card p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-card p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-category-card p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-search-result p{color:#aebdd1!important}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-contact-card,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-form-card,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-category-card,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-search-result,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-card{background:#102139!important;border-color:#29415f!important;color:#eef4ff!important}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-form-card .form-control,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-form-card .form-select,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-form-card textarea{background:#0c1b30!important;border-color:#304765!important;color:#f1f6ff!important}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-form-card label{color:#dfe9f7!important}

@media(max-width:850px){body.g7-ref-public .g7-ref-user-access-name{display:none}.g7-ref-user-access{padding-right:6px!important}}
