
/* ARK Connect dark theme. Light theme remains entirely controlled by ark-connect.css. */
.ac-theme-toggle{appearance:none;border:1px solid #d6dce3;background:#fff;color:#101828;width:42px;height:34px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:3px;cursor:pointer;transition:background .2s,border-color .2s,color .2s}.ac-theme-toggle span{font-family:Arial,sans-serif;line-height:1;font-size:15px}.ac-theme-toggle .ac-theme-moon{opacity:.38}.ac-theme-toggle[data-theme="dark"] .ac-theme-sun{opacity:.35}.ac-theme-toggle[data-theme="dark"] .ac-theme-moon{opacity:1}
html[data-ac-theme="dark"]{color-scheme:dark;background:#07090b}html[data-ac-theme="dark"] body.ark-connect-body{background:#07090b;color:#f3f5f7}html[data-ac-theme="dark"] .ac-header{background:rgba(7,9,11,.95);border-color:#20262d}html[data-ac-theme="dark"] .ac-header.is-compact{box-shadow:0 14px 40px rgba(0,0,0,.28)}html[data-ac-theme="dark"] .ac-nav a,html[data-ac-theme="dark"] .ac-search-link,html[data-ac-theme="dark"] .ac-global-link,html[data-ac-theme="dark"] .ac-menu-button,html[data-ac-theme="dark"] .ac-brand strong{color:#e8edf2}html[data-ac-theme="dark"] .ac-mobile-menu{background:#0a0d10;border-color:#222a32}html[data-ac-theme="dark"] .ac-mobile-menu a{color:#e8edf2;border-color:#20262d}html[data-ac-theme="dark"] .ac-theme-toggle{background:#11161b;border-color:#2b343e;color:#f4f6f8}
html[data-ac-theme="dark"] .ac-main,html[data-ac-theme="dark"] .ac-section,html[data-ac-theme="dark"] .ac-page-hero,html[data-ac-theme="dark"] .ac-hero{background-color:transparent;color:#f3f5f7}html[data-ac-theme="dark"] h1,html[data-ac-theme="dark"] h2,html[data-ac-theme="dark"] h3,html[data-ac-theme="dark"] h4,html[data-ac-theme="dark"] strong{color:#f4f6f8}html[data-ac-theme="dark"] p,html[data-ac-theme="dark"] .ac-page-hero p,html[data-ac-theme="dark"] .ac-section-head p,html[data-ac-theme="dark"] .ac-card p,html[data-ac-theme="dark"] .ac-article-header p{color:#b9c1ca}html[data-ac-theme="dark"] small,html[data-ac-theme="dark"] time,html[data-ac-theme="dark"] .ac-meta,html[data-ac-theme="dark"] .ac-card-footer,html[data-ac-theme="dark"] .ac-breadcrumb{color:#87919c}html[data-ac-theme="dark"] a{color:inherit}html[data-ac-theme="dark"] .ac-kicker,html[data-ac-theme="dark"] .ac-meta a,html[data-ac-theme="dark"] .ac-text-link,html[data-ac-theme="dark"] .ac-primary-link{color:#8eb1cf}
html[data-ac-theme="dark"] .ac-card,html[data-ac-theme="dark"] .ac-category-feature article,html[data-ac-theme="dark"] .ac-brief-row,html[data-ac-theme="dark"] .ac-sidebar-module,html[data-ac-theme="dark"] .ac-sidebar-product,html[data-ac-theme="dark"] .ac-data-placeholder,html[data-ac-theme="dark"] .ac-search-box,html[data-ac-theme="dark"] .ac-filter-bar,html[data-ac-theme="dark"] .ac-agenda-preview article,html[data-ac-theme="dark"] .ac-ai-grid article,html[data-ac-theme="dark"] .ac-newsletter,html[data-ac-theme="dark"] .ac-article-source,html[data-ac-theme="dark"] .ac-share-bar{background:#0d1115;border-color:#20262d;box-shadow:none}html[data-ac-theme="dark"] .ac-soft-blue,html[data-ac-theme="dark"] .ac-soft-gold,html[data-ac-theme="dark"] .ac-category-block{background:#090c0f}html[data-ac-theme="dark"] .ac-card-content,html[data-ac-theme="dark"] .ac-article-content-layout{color:#e9edf1}html[data-ac-theme="dark"] .ac-image-placeholder{background:#11171c;border-color:#20262d}html[data-ac-theme="dark"] .ac-ark-reading{background:#0f171e;border-color:#31526c}html[data-ac-theme="dark"] .ac-editorial-notice{background:#0b0f12;border-color:#20262d}html[data-ac-theme="dark"] .ac-read-also{border-color:#27313a;background:#0c1115}html[data-ac-theme="dark"] .ac-market-bar{background:#0a0d10;border-color:#20262d}html[data-ac-theme="dark"] .ac-market-strip-item{border-color:#27313a}html[data-ac-theme="dark"] .ac-footer{background:#050708;border-color:#1c2228}html[data-ac-theme="dark"] .ac-footer p,html[data-ac-theme="dark"] .ac-footer a,html[data-ac-theme="dark"] .ac-footer-bottom{color:#98a3ae}html[data-ac-theme="dark"] input,html[data-ac-theme="dark"] select{background:#0b0f12;color:#eef2f5;border-color:#2a333c}html[data-ac-theme="dark"] .ac-search-suggestions{background:#0d1115;border-color:#27313a}html[data-ac-theme="dark"] .ac-search-suggestions button{color:#e8edf2;border-color:#20262d}html[data-ac-theme="dark"] .ac-empty-state{color:#b9c1ca}html[data-ac-theme="dark"] .ac-brief-button{color:#fff}
@media(max-width:860px){.ac-theme-toggle{width:38px;height:32px}.ac-theme-toggle span{font-size:14px}}

/* V2 — cobertura completa do tema escuro do portal público ARK Connect.
   Somente cores e superfícies. Não altera tipografia, espaçamento ou layout. */
html[data-ac-theme="dark"]{
  --ac-bg:#07090b;
  --ac-card:#0d1115;
  --ac-text:#f3f5f7;
  --ac-muted:#aeb8c2;
  --ac-border:#242c34;
  --ac-blue:#8eb1cf;
  --ac-deep:#f3f5f7;
  --ac-soft:#0f151a;
  --ac-shadow:none;
}

/* Marca */
html[data-ac-theme="dark"] .ac-header .ac-brand img,
html[data-ac-theme="dark"] .ac-mobile-menu .ac-brand img{filter:brightness(0) invert(1)!important}
html[data-ac-theme="dark"] .ac-brand>span{background:#3a444e}

/* Superfícies claras que ainda existiam no CSS aprovado */
html[data-ac-theme="dark"] .ac-lead,
html[data-ac-theme="dark"] .ac-side-stories article,
html[data-ac-theme="dark"] .ac-brief-section,
html[data-ac-theme="dark"] .ac-agenda-home,
html[data-ac-theme="dark"] .ac-card,
html[data-ac-theme="dark"] .ac-institutional-banner,
html[data-ac-theme="dark"] .ac-intelligence-main,
html[data-ac-theme="dark"] .ac-intelligence-grid>div article,
html[data-ac-theme="dark"] .ac-data-placeholder,
html[data-ac-theme="dark"] .ac-agenda-preview article,
html[data-ac-theme="dark"] .ac-ai-grid article,
html[data-ac-theme="dark"] .ac-newsletter,
html[data-ac-theme="dark"] .ac-category-feature article,
html[data-ac-theme="dark"] .ac-product-module,
html[data-ac-theme="dark"] .ac-search-box,
html[data-ac-theme="dark"] .ac-search-suggestions,
html[data-ac-theme="dark"] .ac-search-suggestions button,
html[data-ac-theme="dark"] .ac-agenda-page>article,
html[data-ac-theme="dark"] .ac-policy-page section,
html[data-ac-theme="dark"] .ac-market-now-panel,
html[data-ac-theme="dark"] .ac-watch-today,
html[data-ac-theme="dark"] .ac-home-highlights article,
html[data-ac-theme="dark"] .ac-sidebar-module,
html[data-ac-theme="dark"] .ac-tv-widget-shell,
html[data-ac-theme="dark"] .ac-tv-widget-placeholder,
html[data-ac-theme="dark"] .ac-tv-widget-heading,
html[data-ac-theme="dark"] .ac-tv-focus-intro,
html[data-ac-theme="dark"] .ac-tv-symbol-overview,
html[data-ac-theme="dark"] .tradingview-widget-copyright{
  background:#0d1115!important;
  border-color:#242c34!important;
  box-shadow:none!important;
  color:#e7ecf1!important;
}

/* Blocos de apoio */
html[data-ac-theme="dark"] .ac-product-module>div,
html[data-ac-theme="dark"] .ac-data-visual-image,
html[data-ac-theme="dark"] .ac-ai-brief-page>aside,
html[data-ac-theme="dark"] .ac-sidebar-product,
html[data-ac-theme="dark"] .ac-panel-heading>b,
html[data-ac-theme="dark"] .ac-institutional-points span{
  background:#10161b!important;
  border-color:#29343e!important;
  color:#c9d4dd!important;
}
html[data-ac-theme="dark"] .ac-read-also,
html[data-ac-theme="dark"] .ac-agenda-note,
html[data-ac-theme="dark"] .ac-ai-brief-page>.ac-ai-disclosure{
  background:#17140c!important;
  border-color:#4a3d1e!important;
  color:#dccb94!important;
}
html[data-ac-theme="dark"] .ac-analysis-badge{
  background:#1d190d!important;
  border-color:#5a481b!important;
  color:#e0bd62!important;
}
html[data-ac-theme="dark"] [data-impact="alto"],
html[data-ac-theme="dark"] [data-impact="médio a alto"]{
  background:#25120d!important;
  border-color:#6a3125!important;
  color:#f3a18b!important;
}
html[data-ac-theme="dark"] [data-impact="médio"]{
  background:#211a09!important;
  border-color:#66501c!important;
  color:#e8c76d!important;
}

/* Textos que tinham cores hardcoded do tema claro */
html[data-ac-theme="dark"] .ac-panel-heading h2,
html[data-ac-theme="dark"] .ac-search-status strong,
html[data-ac-theme="dark"] .ac-archive-list h3,
html[data-ac-theme="dark"] .ac-agenda-page h2,
html[data-ac-theme="dark"] .ac-ai-brief-list p,
html[data-ac-theme="dark"] .ac-ai-brief-page>aside p,
html[data-ac-theme="dark"] .ac-product-module h2,
html[data-ac-theme="dark"] .ac-reading-column h2,
html[data-ac-theme="dark"] .ac-read-also a,
html[data-ac-theme="dark"] .ac-sidebar-most-read li a,
html[data-ac-theme="dark"] .ac-sidebar-related>a strong,
html[data-ac-theme="dark"] .ac-sidebar-product h2,
html[data-ac-theme="dark"] .ac-agenda-date strong,
html[data-ac-theme="dark"] .ac-category-feature h2,
html[data-ac-theme="dark"] .ac-category-feature h2 a{
  color:#f3f5f7!important;
}
html[data-ac-theme="dark"] .ac-reading-column p,
html[data-ac-theme="dark"] .ac-product-module p,
html[data-ac-theme="dark"] .ac-ai-brief-page>aside p,
html[data-ac-theme="dark"] .ac-agenda-page p,
html[data-ac-theme="dark"] .ac-policy-page p,
html[data-ac-theme="dark"] .ac-tv-widget-heading p,
html[data-ac-theme="dark"] .ac-tv-focus-intro p,
html[data-ac-theme="dark"] .ac-sidebar-product p{
  color:#b8c2cc!important;
}
html[data-ac-theme="dark"] .ac-article-intro{color:#c9d4dd!important;border-bottom-color:#2a333c!important}
html[data-ac-theme="dark"] .ac-article-source strong,
html[data-ac-theme="dark"] .ac-share-bar>strong,
html[data-ac-theme="dark"] .ac-sidebar-market-list strong,
html[data-ac-theme="dark"] .ac-sidebar-agenda article strong{color:#e9edf1!important}
html[data-ac-theme="dark"] .ac-sidebar-heading>span,
html[data-ac-theme="dark"] .ac-tv-focus-intro span,
html[data-ac-theme="dark"] .ac-sidebar-heading>a,
html[data-ac-theme="dark"] .ac-sidebar-product>span,
html[data-ac-theme="dark"] .tradingview-widget-copyright a{color:#8eb1cf!important}
html[data-ac-theme="dark"] .ac-sidebar-heading>b,
html[data-ac-theme="dark"] .ac-panel-heading>b{background:#13202a!important;border-color:#29465b!important;color:#9ec0db!important}
html[data-ac-theme="dark"] .ac-sidebar-market-list span,
html[data-ac-theme="dark"] .ac-sidebar-most-read li span,
html[data-ac-theme="dark"] .ac-sidebar-most-read>small,
html[data-ac-theme="dark"] .ac-sidebar-agenda article span,
html[data-ac-theme="dark"] .ac-sidebar-related>a span,
html[data-ac-theme="dark"] .ac-search-status span,
html[data-ac-theme="dark"] .ac-archive-list time,
html[data-ac-theme="dark"] .ac-archive-list small{color:#909ba6!important}

/* Busca */
html[data-ac-theme="dark"] .ac-search-box input{background:transparent!important;color:#f3f5f7!important}
html[data-ac-theme="dark"] .ac-search-box input::placeholder{color:#7f8a95}
html[data-ac-theme="dark"] .ac-search-suggestions button:hover,
html[data-ac-theme="dark"] .ac-search-suggestions button:focus-visible{background:#151b21!important;color:#fff!important}

/* Compartilhamento */
html[data-ac-theme="dark"] .ac-share-actions button{
  background:#11171c!important;
  color:#dce4ea!important;
  border-color:#303a44!important;
}
html[data-ac-theme="dark"] .ac-share-actions button:hover,
html[data-ac-theme="dark"] .ac-share-actions button:focus-visible{
  background:#17232d!important;
  color:#a8cae5!important;
  border-color:#4d7796!important;
}

/* Linhas e divisores */
html[data-ac-theme="dark"] .ac-panel-heading,
html[data-ac-theme="dark"] .ac-market-now-list article,
html[data-ac-theme="dark"] .ac-sidebar-heading,
html[data-ac-theme="dark"] .ac-sidebar-market-list>div,
html[data-ac-theme="dark"] .ac-sidebar-most-read li,
html[data-ac-theme="dark"] .ac-sidebar-agenda article,
html[data-ac-theme="dark"] .ac-sidebar-related>a,
html[data-ac-theme="dark"] .ac-archive-list,
html[data-ac-theme="dark"] .ac-archive-list article,
html[data-ac-theme="dark"] .ac-ai-brief-list,
html[data-ac-theme="dark"] .ac-ai-brief-list article,
html[data-ac-theme="dark"] .ac-article-source,
html[data-ac-theme="dark"] .ac-share-bar{border-color:#242c34!important}

/* TradingView: casca e máscaras acompanham o modo ativo. O JS também passa o tema correto ao widget. */
html[data-ac-theme="dark"] .ac-tv-ticker-shell,
html[data-ac-theme="dark"] .ac-tv-ticker-shell .ac-tv-widget-host,
html[data-ac-theme="dark"] .ac-tv-ticker-shell tv-ticker-tape{
  background:#0a0d10!important;
  color:#e9edf1!important;
  color-scheme:dark!important;
}
html[data-ac-theme="dark"] .ac-tv-calendar-mask,
html[data-ac-theme="dark"] .ac-tv-calendar .tradingview-widget-copyright{
  background:#0d1115!important;
  border-color:#242c34!important;
}
html[data-ac-theme="dark"] .ac-tv-calendar-mask::after{color:#9aa5af!important}

/* Mensagens de formulário */
html[data-ac-theme="dark"] .ac-newsletter [data-ac-form-message].is-success{
  color:#8fd2a9!important;
  background:#0d1b13!important;
  border-color:#214a31!important;
}

/* Cobertura residual identificada na auditoria visual */
html[data-ac-theme="dark"] .ac-skip-link{background:#11171c!important;color:#f3f5f7!important;border-color:#303a44!important}
html[data-ac-theme="dark"] .ac-search-link:hover,
html[data-ac-theme="dark"] .ac-global-link:hover{background:#121a20!important;color:#eaf0f5!important}
html[data-ac-theme="dark"] .ac-market-bar{color:#c0cad3!important}
html[data-ac-theme="dark"] .ac-market-bar small{color:#88949f!important}
html[data-ac-theme="dark"] .ac-image-placeholder,
html[data-ac-theme="dark"] .ac-image-placeholder.ac-image-ready,
html[data-ac-theme="dark"] .ac-banner-placeholder{
  background:#11171c!important;
  border-color:#29323b!important;
  color:#98a4af!important;
}
html[data-ac-theme="dark"] .ac-soft-blue,
html[data-ac-theme="dark"] .ac-soft-gold{border-color:#202830!important}
html[data-ac-theme="dark"] .ac-newsletter label,
html[data-ac-theme="dark"] .ac-filter-bar label{color:#a7b1bb!important}
html[data-ac-theme="dark"] [data-impact="baixo"]{
  background:#0d1d15!important;
  border-color:#275d3d!important;
  color:#82d5a3!important;
}
html[data-ac-theme="dark"] [data-impact="variável"]{
  background:#0c1724!important;
  border-color:#2d527b!important;
  color:#8dbbf0!important;
}


/* V3 — correção visual dos CTAs no tema escuro e ticker idêntico ao da Home. */
html[data-ac-theme="dark"] .ac-brief-button,
html[data-ac-theme="dark"] .ac-primary-link,
html[data-ac-theme="dark"] .ac-newsletter button{
  background:#17324d!important;
  color:#fff!important;
  border-color:#17324d!important;
}
html[data-ac-theme="dark"] .ac-brief-button:hover,
html[data-ac-theme="dark"] .ac-brief-button:focus-visible,
html[data-ac-theme="dark"] .ac-primary-link:hover,
html[data-ac-theme="dark"] .ac-primary-link:focus-visible,
html[data-ac-theme="dark"] .ac-newsletter button:hover,
html[data-ac-theme="dark"] .ac-newsletter button:focus-visible{
  background:#244661!important;
  color:#fff!important;
  border-color:#244661!important;
}

/* O ticker do ARK Connect passa a usar a mesma apresentação escura e compacta da Home. */
.ac-tv-ticker-shell,
.ac-tv-ticker-shell .ac-tv-widget-host,
.ac-tv-ticker-shell tv-ticker-tape,
html[data-ac-theme="dark"] .ac-tv-ticker-shell,
html[data-ac-theme="dark"] .ac-tv-ticker-shell .ac-tv-widget-host,
html[data-ac-theme="dark"] .ac-tv-ticker-shell tv-ticker-tape{
  background:#000!important;
  color:#fff!important;
  color-scheme:dark!important;
}
.ac-tv-ticker-shell{
  border-color:#20262d!important;
  overflow:hidden!important;
}
.ac-tv-ticker-shell tv-ticker-tape{
  display:block!important;
  width:100%!important;
  height:100%!important;
}

/* V4 — auditoria residual do dark mode.
   Corrige superfícies que ainda herdavam !important do tema claro e integra
   os componentes de mercado sem alterar tipografia, dimensões ou composição. */
html[data-ac-theme="dark"] .ac-soft-gold,
html[data-ac-theme="dark"] .ac-category-block,
html[data-ac-theme="dark"] .ac-section.ac-soft-gold,
html[data-ac-theme="dark"] .ac-section.ac-category-block{
  background:#090c0f!important;
  border-color:#202830!important;
}
html[data-ac-theme="dark"] .ac-category-main,
html[data-ac-theme="dark"] .ac-category-secondary,
html[data-ac-theme="dark"] .ac-category-secondary article{
  background:transparent!important;
  border-color:#242c34!important;
}
html[data-ac-theme="dark"] .ac-category-main h3,
html[data-ac-theme="dark"] .ac-category-main h3 a,
html[data-ac-theme="dark"] .ac-category-secondary h3,
html[data-ac-theme="dark"] .ac-category-secondary h3 a{
  color:#f3f5f7!important;
}
html[data-ac-theme="dark"] .ac-category-main p,
html[data-ac-theme="dark"] .ac-category-secondary p{
  color:#b8c2cc!important;
}
html[data-ac-theme="dark"] .ac-category-secondary small{color:#909ba6!important}
html[data-ac-theme="dark"] .ac-data-canvas,
html[data-ac-theme="dark"] .ac-banner-placeholder{
  background:#10161b!important;
  color:#aeb8c2!important;
  border-color:#29343e!important;
}
html[data-ac-theme="dark"] .ac-filter-bar,
html[data-ac-theme="dark"] .ac-filter-bar select{
  background:#0d1115!important;
  color:#e7ecf1!important;
  border-color:#29343e!important;
}

/* Calendário: a moldura acompanha o tema. O conteúdo interno é forçado pelo JS
   a usar o tema escuro do próprio widget. */
html[data-ac-theme="dark"] .ac-tv-calendar,
html[data-ac-theme="dark"] .ac-tv-calendar .tradingview-widget-container,
html[data-ac-theme="dark"] .ac-tv-calendar .tradingview-widget-container__widget{
  background:#0d1115!important;
  border-color:#242c34!important;
  color-scheme:dark!important;
}

/* Mercados Agora nos artigos: lista de Single Tickers em vez do painel
   "Markets today", preservando os dados de mercado sem o bloco editorial externo. */
.ac-tv-single-ticker-list{
  display:grid;
  grid-template-columns:1fr;
  gap:1px;
  width:100%;
  min-width:0;
  background:#e4e7ec;
  overflow:hidden;
}
.ac-tv-single-ticker-list tv-single-ticker{
  display:block;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
}
html[data-ac-theme="dark"] .ac-tv-single-ticker-list{background:#242c34!important}
html[data-ac-theme="dark"] .ac-tv-single-ticker-list tv-single-ticker{color-scheme:dark!important}
