/*
Theme Name:   Newspaper Modern (child)
Description:  Tema filho do Newspaper: apenas camada visual (cores, bordas, sombras, raios). Não altera fontes, tamanhos, espaçamentos ou estrutura.
Template:     Newspaper
Version:      1.0.0
Text Domain:  newspaper-modern-child
*/
/*!
 * Newspaper Modern — camada visual isolada e reversível
 * Apenas propriedades visuais: cores, bordas (cor), sombras, raios, transições de cor.
 * NÃO altera: fontes, tamanhos, espaçamentos, dimensões, posição, estrutura ou comportamento.
 * Para reverter: remova este CSS do local onde foi colado (Theme Panel > Custom CSS).
 */

html:root {
  --tdm-mode: light;
  --tdm-bg: #ffffff;
  --tdm-surface: #ffffff;
  --tdm-surface-2: #f5f8fc;
  --tdm-surface-3: #eaf0f8;
  --tdm-ink: #0b1220;
  --tdm-text: #1a2538;
  --tdm-muted: #5a6679;
  --tdm-line: #e3e8f0;
  --tdm-line-strong: #cdd7e6;
  --tdm-accent: #1f5eff;
  --tdm-accent-strong: #1747c9;
  --tdm-accent-soft: #e8f0ff;
  --tdm-on-accent: #ffffff;
  --tdm-ring: rgba(31, 94, 255, 0.30);
  --tdm-footer: #0b1220;
  --tdm-footer-2: #070d19;
  --tdm-footer-text: rgba(255, 255, 255, 0.74);
  --tdm-shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --tdm-shadow-md: 0 1px 2px rgba(11, 18, 32, 0.05), 0 12px 32px -14px rgba(11, 18, 32, 0.28);
  --tdm-shadow-lg: 0 2px 6px rgba(11, 18, 32, 0.06), 0 24px 48px -18px rgba(11, 18, 32, 0.35);
  --tdm-radius: 10px;
  --tdm-radius-sm: 6px;

  /* variáveis nativas do tema (somente cores) */
  --td_theme_color: #1f5eff;
  --td_text_color: #0b1220;
  --td_black: #0b1220;
  --td_header_color: #0b1220;
  --td_text_header_color: #ffffff;
  --td_grid_border_color: #e3e8f0;
  --td_page_title_color: #0b1220;
  --td_page_h_color: #0b1220;
  --td_page_content_color: #1a2538;
  --td_mobile_gradient_one_mob: #060c1b;
  --td_mobile_gradient_two_mob: #0d2a73;
  --td_mobile_text_color: #ffffff;
  --td_mobile_text_active_color: #8fb4ff;
  --td_mobile_icons_color: #ffffff;
  --td_mobile_menu_color: #0b1220;
  --td_mobile_button_background_mob: #ffffff;
  --td_mobile_button_color_mob: #0b1220;
}

::selection { background-color: var(--tdm-accent); color: #ffffff; }
::-moz-selection { background-color: var(--tdm-accent); color: #ffffff; }

/* ---------- Base ---------- */
html body {
  background-color: #ffffff;
}
html body #td-outer-wrap,
html body .td-theme-wrap,
html body .td-container-wrap,
html body .td-main-content-wrap,
html body .td-main-page-wrap {
  background-color: var(--tdm-bg);
}
html body { color: var(--tdm-text); }

html body .td-post-content a:not(.wp-block-button__link):not(.td-button):not(.btn),
html body .td-page-content a:not(.wp-block-button__link):not(.td-button):not(.btn),
html body .comment-content a {
  color: var(--tdm-accent);
}
html body .td-post-content a:not(.wp-block-button__link):not(.td-button):not(.btn):hover,
html body .td-page-content a:not(.wp-block-button__link):not(.td-button):not(.btn):hover,
html body .comment-content a:hover {
  color: var(--tdm-accent-strong);
}

html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body textarea:focus-visible,
html body select:focus-visible {
  outline: 2px solid var(--tdm-accent) !important;
  outline-offset: 2px;
}

/* ---------- Cabeçalho ---------- */
html body .td-header-wrap,
html body .td-banner-wrap-full,
html body .td-logo-wrap-full,
html body .td-header-menu-wrap-full,
html body .td-header-menu-wrap,
html body .td-header-main-menu,
html body .td-header-style-1 .td-header-main-menu {
  background-color: var(--tdm-surface) !important;
}
html body .td-header-menu-wrap-full,
html body .td-header-main-menu {
  box-shadow: 0 1px 0 var(--tdm-line), var(--tdm-shadow-sm);
}
html body .td-header-gradient:before { opacity: 0.35; }

html body .td-header-sp-top-menu,
html body .td-header-top-menu-full,
html body .td-header-top-menu {
  background-color: #ffffff !important;
}
html body .td-header-sp-top-menu a,
html body .td-header-top-menu a { color: var(--tdm-muted); }
html body .td-header-sp-top-menu a:hover,
html body .td-header-top-menu a:hover { color: var(--tdm-accent); }

html body .td-logo-text-container .td-logo-text,
html body .td-logo-text-wrap .td-logo-text { color: var(--tdm-ink) !important; }
html body .td-logo-text-wrap .td-tagline-text { color: var(--tdm-muted) !important; }

html body .sf-menu > li > a { color: var(--tdm-ink); }
html body .sf-menu > li > a:hover,
html body .sf-menu > .current-menu-item > a,
html body .sf-menu > .current-menu-ancestor > a,
html body .sf-menu > .current-category-ancestor > a,
html body .sf-menu > .sfHover > a { color: var(--tdm-accent); }
html body .sf-menu > li > a:after { border-radius: 3px 3px 0 0; }
html body .sf-menu > .current-menu-item > a:after,
html body .sf-menu > .current-menu-ancestor > a:after,
html body .sf-menu > .current-category-ancestor > a:after,
html body .sf-menu > li:hover > a:after,
html body .sf-menu > .sfHover > a:after { background-color: var(--tdm-accent); }

html body .sf-menu ul,
html body .td-normal-menu ul {
  background-color: var(--tdm-surface) !important;
  border-radius: var(--tdm-radius);
  box-shadow: var(--tdm-shadow-md);
}
html body .sf-menu ul .td-menu-item > a { color: var(--tdm-text); }
html body .sf-menu ul .td-menu-item > a:hover,
html body .sf-menu ul .sfHover > a,
html body .sf-menu ul .current-menu-ancestor > a,
html body .sf-menu ul .current-category-ancestor > a,
html body .sf-menu ul .current-menu-item > a {
  color: var(--tdm-accent);
  background-color: var(--tdm-accent-soft);
}

/* Busca (desktop e mobile) */
html body #td-header-search-button .td-icon-search,
html body #td-header-search-button-mob .td-icon-search { color: var(--tdm-ink); }
html body .td-drop-down-search {
  background-color: var(--tdm-surface) !important;
  border-radius: var(--tdm-radius);
  box-shadow: var(--tdm-shadow-lg);
}
html body .td-search-form-widget .wpb_button,
html body .td-search-form .td-search-input input { border-radius: var(--tdm-radius-sm); }

/* ---------- Títulos de bloco ---------- */
html body .block-title { border-bottom-color: var(--tdm-ink); }
html body .block-title > a,
html body .block-title > span,
html body .block-title > label,
html body .block-title > span > a {
  background-color: var(--tdm-ink);
  color: #ffffff;
  border-radius: var(--tdm-radius-sm) var(--tdm-radius-sm) 0 0;
}

/* ---------- Módulos / cartões ---------- */
html body .td_module_wrap .entry-thumb,
html body .td_module_wrap .td-image-wrap,
html body .td-module-image,
html body .td-post-featured-image img,
html body .td-post-content img,
html body .wp-block-image img {
  border-radius: var(--tdm-radius);
}
html body .td_module_wrap .td-module-thumb {
  border-radius: var(--tdm-radius);
  box-shadow: var(--tdm-shadow-sm);
  transition: box-shadow 0.25s ease;
}
html body .td_module_wrap:hover .td-module-thumb { box-shadow: var(--tdm-shadow-md); }

html body .td_module_wrap .entry-title a,
html body .td-module-title a { color: var(--tdm-ink); }
html body .td_module_wrap:hover .entry-title a,
html body .td_module_wrap:hover .td-module-title a { color: var(--tdm-accent); }

html body .td-module-meta-info,
html body .td-post-date,
html body .td-post-date time,
html body .td-module-comments a,
html body .td-post-author-name,
html body .td-post-author-name a,
html body .td-post-views,
html body .td-post-views span { color: var(--tdm-muted); }
html body .td-post-author-name a:hover { color: var(--tdm-accent); }
html body .td_module_wrap .td-excerpt,
html body .td_module_wrap .td-excerpt p { color: var(--tdm-text); }

html body .td-post-category,
html body .td-category a {
  background-color: var(--tdm-ink);
  color: #ffffff;
  border-radius: var(--tdm-radius-sm);
}
html body .td-post-category:hover,
html body .td-category a:hover { background-color: var(--tdm-accent); color: #ffffff; opacity: 1; }

html body .td-module-comments a { background-color: var(--tdm-surface-3); border-radius: var(--tdm-radius-sm); }
html body .td-module-comments a:after { border-top-color: var(--tdm-surface-3); }

html body .td-read-more a { color: var(--tdm-accent); }
html body .td-read-more a:hover { color: var(--tdm-accent-strong); }

/* ---------- Botões ---------- */
html body input[type="submit"],
html body input[type="button"],
html body .wp-block-button__link,
html body .td-button,
html body .td_default_btn,
html body .td_shadow_btn,
html body .td_round_btn,
html body .td_3D_btn,
html body .td-search-form-widget .wpb_button,
html body .comment-form .submit {
  background-color: var(--tdm-accent);
  color: #ffffff;
  border-color: var(--tdm-accent);
  border-radius: var(--tdm-radius-sm);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.12), 0 6px 14px -6px rgba(31, 94, 255, 0.55);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
html body input[type="submit"]:hover,
html body input[type="button"]:hover,
html body .wp-block-button__link:hover,
html body .td-button:hover,
html body .td_default_btn:hover,
html body .td_shadow_btn:hover,
html body .td_round_btn:hover,
html body .td_3D_btn:hover,
html body .td-search-form-widget .wpb_button:hover,
html body .comment-form .submit:hover {
  background-color: var(--tdm-accent-strong);
  border-color: var(--tdm-accent-strong);
  color: #ffffff;
}
html body .td_outlined_btn {
  background-color: transparent;
  color: var(--tdm-accent);
  border-color: var(--tdm-accent);
  border-radius: var(--tdm-radius-sm);
}
html body .td_outlined_btn:hover { background-color: var(--tdm-accent); color: #ffffff; }

/* ---------- Campos de formulário ---------- */
html body input[type="text"],
html body input[type="email"],
html body input[type="url"],
html body input[type="password"],
html body input[type="search"],
html body input[type="tel"],
html body input[type="number"],
html body textarea,
html body select {
  background-color: var(--tdm-surface);
  color: var(--tdm-text);
  border-color: var(--tdm-line-strong);
  border-radius: var(--tdm-radius-sm);
  box-shadow: var(--tdm-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
html body input[type="text"]:focus,
html body input[type="email"]:focus,
html body input[type="url"]:focus,
html body input[type="password"]:focus,
html body input[type="search"]:focus,
html body input[type="tel"]:focus,
html body input[type="number"]:focus,
html body textarea:focus,
html body select:focus {
  border-color: var(--tdm-accent);
  box-shadow: 0 0 0 3px var(--tdm-ring);
}
html body ::placeholder { color: var(--tdm-muted); opacity: 1; }

/* Campos dentro do menu mobile (fundo escuro próprio do tema) */
html body #td-mobile-nav input[type="text"],
html body #td-mobile-nav input[type="email"],
html body #td-mobile-nav input[type="password"] {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

/* ---------- Paginação ---------- */
html body .page-nav a,
html body .page-nav span {
  background-color: var(--tdm-surface);
  border-color: var(--tdm-line-strong);
  color: var(--tdm-muted);
  border-radius: var(--tdm-radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
html body .page-nav a:hover {
  background-color: var(--tdm-ink);
  border-color: var(--tdm-ink);
  color: #ffffff;
}
html body .page-nav .current {
  background-color: var(--tdm-accent);
  border-color: var(--tdm-accent);
  color: #ffffff;
}
html body .page-nav .pages { background-color: transparent; border-color: transparent; }

/* ---------- Post, página e conteúdo ---------- */
html body .td-page-title,
html body .td-page-title h1,
html body .td-post-title .entry-title { color: var(--tdm-ink); }
html body .td-post-sub-title { color: var(--tdm-muted); }
html body .td-post-content,
html body .td-page-content { color: var(--tdm-text); }
html body .td-post-content h1, html body .td-post-content h2, html body .td-post-content h3,
html body .td-post-content h4, html body .td-post-content h5, html body .td-post-content h6,
html body .td-page-content h1, html body .td-page-content h2, html body .td-page-content h3,
html body .td-page-content h4, html body .td-page-content h5, html body .td-page-content h6 { color: var(--tdm-ink); }

html body .td-post-content blockquote,
html body .td-page-content blockquote,
html body .wp-block-quote,
html body .wp-block-pullquote {
  border-color: var(--tdm-accent);
  border-radius: 0 var(--tdm-radius-sm) var(--tdm-radius-sm) 0;
}
html body .td-post-content pre,
html body .td-page-content pre,
html body .td-post-content code {
  background-color: var(--tdm-surface-2);
  color: var(--tdm-ink);
  border-color: var(--tdm-line);
  border-radius: var(--tdm-radius-sm);
}
html body hr,
html body .wp-block-separator,
html body .td_module_15,
html body .comment,
html body .comment .children,
html body .wp-block-latest-posts:not(.is-grid) li,
html body .widget_recent_entries li,
html body .widget_rss li { border-color: var(--tdm-line); }

html body .entry-crumbs,
html body .entry-crumbs a,
html body .entry-crumbs span,
html body .td-crumb-container .entry-crumbs a { color: var(--tdm-muted); }
html body .entry-crumbs a:hover { color: var(--tdm-accent); }

html body .td-tags li a,
html body .td-tags li span,
html body .td-post-source-tags li a {
  background-color: var(--tdm-surface-2);
  color: var(--tdm-text);
  border-color: var(--tdm-line);
  border-radius: var(--tdm-radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
html body .td-tags li a:hover,
html body .td-post-source-tags li a:hover {
  background-color: var(--tdm-accent);
  border-color: var(--tdm-accent);
  color: #ffffff;
}

html body .td-post-next-prev-content a { color: var(--tdm-ink); }
html body .td-post-next-prev-content a:hover { color: var(--tdm-accent); }
html body .td-post-next-prev-content span { color: var(--tdm-muted); }
html body .td-post-next-prev,
html body .td-post-next-prev .td-post-next-post,
html body .td-post-next-prev .td-post-prev-post { border-color: var(--tdm-line); }

html body .author-box-wrap {
  background-color: var(--tdm-surface-2);
  border-color: var(--tdm-line);
  border-radius: var(--tdm-radius);
}
html body .author-box-wrap .avatar { border-radius: 50%; }

html body .td-more-articles-box {
  background-color: var(--tdm-surface);
  border-color: var(--tdm-line);
  border-radius: var(--tdm-radius);
  box-shadow: var(--tdm-shadow-md);
}

/* ---------- Comentários ---------- */
html body .comment-respond,
html body .comment-list .comment { border-color: var(--tdm-line); }
html body .comment-meta,
html body .comment-meta a,
html body .comment-edit-link,
html body .logged-in-as,
html body .logged-in-as a { color: var(--tdm-muted); }
html body .comment-reply-link,
html body .comment-link { color: var(--tdm-accent); }
html body .comment .avatar { border-radius: 50%; }
html body .td-warning-comment,
html body .td-warning-author,
html body .td-warning-email,
html body .td-warning-email-error {
  background-color: var(--tdm-accent-soft);
  color: var(--tdm-accent-strong);
  border-radius: var(--tdm-radius-sm);
}

/* ---------- Widgets e sidebar ---------- */
html body .widget a { color: var(--tdm-text); }
html body .widget a:hover { color: var(--tdm-accent); }
html body .widget li,
html body .widget ul,
html body .widget_calendar table,
html body .widget_calendar th,
html body .widget_calendar td,
html body .widget_search form,
html body .td_wp_recentcomments li { border-color: var(--tdm-line); }
html body .widget_tag_cloud a {
  background-color: var(--tdm-surface-2);
  border-color: var(--tdm-line);
  border-radius: var(--tdm-radius-sm);
}
html body .widget_tag_cloud a:hover {
  background-color: var(--tdm-accent);
  border-color: var(--tdm-accent);
  color: #ffffff;
}
html body .widget img { border-radius: var(--tdm-radius-sm); }

/* ---------- Tabelas ---------- */
html body table th,
html body table td { border-color: var(--tdm-line); }
html body table th { background-color: var(--tdm-surface-2); color: var(--tdm-ink); }
html body table .odd td { background-color: var(--tdm-surface-2); }

/* ---------- Galerias / mídia ---------- */
html body .wp-caption-text,
html body .wp-block-image figcaption,
html body .gallery-caption { color: var(--tdm-muted); }
html body .td-gallery-slide-prev-next-but { border-radius: var(--tdm-radius-sm); }
html body .td-video-play-ico,
html body .td-icon-video-thumb-play,
html body .td-icon-audio-thumb-play { border-radius: 50%; }

/* ---------- Menu mobile (cores via variáveis) ---------- */
html body .td-mobile-content li a { color: var(--td_mobile_text_color, #ffffff); }
html body .td-mobile-content .current-menu-item > a,
html body .td-mobile-content .current-menu-ancestor > a,
html body .td-mobile-content .current-category-ancestor > a { color: var(--td_mobile_text_active_color, #8fb4ff); }
html body .td-mobile-content .sub-menu { border-color: rgba(255, 255, 255, 0.12); }
html body .td-search-wrap-mob .td-drop-down-search { border-radius: 0; box-shadow: none; }

/* ---------- Rodapé ---------- */
html body .td-footer-page,
html body .td-footer-container,
html body .td-footer-wrapper,
html body .td-footer-template-wrap {
  background-color: var(--tdm-footer) !important;
  color: var(--tdm-footer-text);
}
html body .td-sub-footer-container {
  background-color: var(--tdm-footer-2) !important;
  color: var(--tdm-footer-text);
}
html body .td-footer-page a,
html body .td-footer-container a,
html body .td-footer-wrapper a,
html body .td-sub-footer-container a { color: var(--tdm-footer-text); }
html body .td-footer-page a:hover,
html body .td-footer-container a:hover,
html body .td-footer-wrapper a:hover,
html body .td-sub-footer-container a:hover { color: #ffffff; }
html body .td-footer-page .block-title,
html body .td-footer-wrapper .block-title { border-bottom-color: rgba(255, 255, 255, 0.18); }
html body .td-footer-page .block-title > span,
html body .td-footer-wrapper .block-title > span { background-color: var(--tdm-accent); color: #ffffff; }
html body .td-footer-page .widget li,
html body .td-footer-wrapper .widget li { border-color: rgba(255, 255, 255, 0.10); }
html body .td-sub-footer-container .td-pb-row { border-color: rgba(255, 255, 255, 0.10); }

/* ---------- Voltar ao topo ---------- */
html body .td-scroll-up {
  background-color: var(--tdm-accent);
  border-radius: var(--tdm-radius-sm);
  box-shadow: var(--tdm-shadow-md);
}
html body .td-scroll-up .td-icon-menu-up { color: #ffffff; }

/* ---------- 404 / busca ---------- */
html body .td-404-title,
html body .td-404-sub-title { color: var(--tdm-ink); }
html body .td-404-sub-sub-title { color: var(--tdm-muted); }
html body .td_search_subtitle { color: var(--tdm-muted); }

/* ---------- WooCommerce / bbPress / BuddyPress (apenas raio e cor de botão) ---------- */
html body .woocommerce a.button,
html body .woocommerce button.button,
html body .woocommerce input.button,
html body #bbpress-forums button,
html body #buddypress button,
html body #buddypress a.button {
  border-radius: var(--tdm-radius-sm);
}

/* ---------- Botão opcional de alternância (só existe se o JS opcional for usado) ---------- */
html body .tdm-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--tdm-surface);
  color: var(--tdm-ink);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--tdm-line-strong), var(--tdm-shadow-md);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
html body .tdm-toggle:hover { color: var(--tdm-accent); }
html body .tdm-toggle svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html body .tdm-toggle .tdm-i-sun { display: none; }
html:root[data-tdm-theme="dark"] body .tdm-toggle .tdm-i-moon { display: none; }
html:root[data-tdm-theme="dark"] body .tdm-toggle .tdm-i-sun { display: block; }

/* ======================  MODO NOTURNO (opt-in via data-tdm-theme="dark")  ====================== */

html:root[data-tdm-theme="dark"] {
  --tdm-mode: dark;
  --tdm-bg: #070d1a;
  --tdm-surface: #0d1628;
  --tdm-surface-2: #111c33;
  --tdm-surface-3: #172544;
  --tdm-ink: #f1f5fc;
  --tdm-text: #d3dcee;
  --tdm-muted: #8fa0bd;
  --tdm-line: #1d2b48;
  --tdm-line-strong: #2a3c61;
  --tdm-accent: #5b95ff;
  --tdm-accent-strong: #86b0ff;
  --tdm-accent-soft: rgba(91, 149, 255, 0.14);
  --tdm-ring: rgba(91, 149, 255, 0.38);
  --tdm-footer: #050a14;
  --tdm-footer-2: #03060d;
  --tdm-footer-text: rgba(222, 230, 245, 0.70);
  --tdm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.40);
  --tdm-shadow-md: 0 1px 2px rgba(0, 0, 0, 0.40), 0 14px 34px -14px rgba(0, 0, 0, 0.75);
  --tdm-shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.45), 0 26px 52px -18px rgba(0, 0, 0, 0.85);

  --td_theme_color: #5b95ff;
  --td_text_color: #f1f5fc;
  --td_black: #f1f5fc;
  --td_header_color: #1747c9;
  --td_text_header_color: #ffffff;
  --td_grid_border_color: #1d2b48;
  --td_page_title_color: #f1f5fc;
  --td_page_h_color: #f1f5fc;
  --td_page_content_color: #d3dcee;
  --td_container_transparent: #070d1a;
  --td_mobile_gradient_one_mob: #03060d;
  --td_mobile_gradient_two_mob: #0a1d52;
}

html:root[data-tdm-theme="dark"] body,
html:root[data-tdm-theme="dark"] body #td-outer-wrap,
html:root[data-tdm-theme="dark"] body .td-theme-wrap,
html:root[data-tdm-theme="dark"] body .td-container-wrap,
html:root[data-tdm-theme="dark"] body .td-main-content-wrap,
html:root[data-tdm-theme="dark"] body .td-main-page-wrap,
html:root[data-tdm-theme="dark"] body .td-main-content,
html:root[data-tdm-theme="dark"] body .td-ss-main-content,
html:root[data-tdm-theme="dark"] body .tdc-row,
html:root[data-tdm-theme="dark"] body .td-page-content,
html:root[data-tdm-theme="dark"] body .td-post-content,
html:root[data-tdm-theme="dark"] body .td-post-header,
html:root[data-tdm-theme="dark"] body .td-crumb-container {
  background-color: var(--tdm-bg) !important;
  color: var(--tdm-text);
}

/* Contêineres internos transparentes (o fundo vem da superfície externa) */
html:root[data-tdm-theme="dark"] body .td-container,
html:root[data-tdm-theme="dark"] body .td-pb-row,
html:root[data-tdm-theme="dark"] body .tdc-column,
html:root[data-tdm-theme="dark"] body .td_block_wrap,
html:root[data-tdm-theme="dark"] body .td-header-wrap .tdc-row,
html:root[data-tdm-theme="dark"] body .td-header-wrap .td-container,
html:root[data-tdm-theme="dark"] body .td-footer-page .td-container,
html:root[data-tdm-theme="dark"] body .td-footer-page .tdc-row,
html:root[data-tdm-theme="dark"] body .td-footer-wrapper .td-container,
html:root[data-tdm-theme="dark"] body .td-footer-wrapper .tdc-row,
html:root[data-tdm-theme="dark"] body .td-sub-footer-container .td-container,
html:root[data-tdm-theme="dark"] body .td-sub-footer-container .td-pb-row { background-color: transparent !important; }

/* Cabeçalho */
html:root[data-tdm-theme="dark"] body .td-header-wrap,
html:root[data-tdm-theme="dark"] body .td-banner-wrap-full,
html:root[data-tdm-theme="dark"] body .td-logo-wrap-full,
html:root[data-tdm-theme="dark"] body .td-header-menu-wrap-full,
html:root[data-tdm-theme="dark"] body .td-header-menu-wrap,
html:root[data-tdm-theme="dark"] body .td-header-main-menu,
html:root[data-tdm-theme="dark"] body .td-header-style-1 .td-header-main-menu,
html:root[data-tdm-theme="dark"] body .sf-menu ul,
html:root[data-tdm-theme="dark"] body .td-normal-menu ul,
html:root[data-tdm-theme="dark"] body .td-drop-down-search {
  background-color: var(--tdm-surface) !important;
}
html:root[data-tdm-theme="dark"] body .td-header-sp-top-menu,
html:root[data-tdm-theme="dark"] body .td-header-top-menu-full,
html:root[data-tdm-theme="dark"] body .td-header-top-menu { background-color: var(--tdm-bg) !important; }

html:root[data-tdm-theme="dark"] body .td-header-menu-wrap-full,
html:root[data-tdm-theme="dark"] body .td-header-main-menu { box-shadow: 0 1px 0 var(--tdm-line); }

html:root[data-tdm-theme="dark"] body .sf-menu > li > a,
html:root[data-tdm-theme="dark"] body .sf-menu ul .td-menu-item > a,
html:root[data-tdm-theme="dark"] body #td-header-search-button .td-icon-search,
html:root[data-tdm-theme="dark"] body #td-header-search-button-mob .td-icon-search,
html:root[data-tdm-theme="dark"] body .td-logo-text-container .td-logo-text { color: var(--tdm-ink) !important; }
html:root[data-tdm-theme="dark"] body .sf-menu > li > a:hover,
html:root[data-tdm-theme="dark"] body .sf-menu > .current-menu-item > a,
html:root[data-tdm-theme="dark"] body .sf-menu > .current-menu-ancestor > a,
html:root[data-tdm-theme="dark"] body .sf-menu > .sfHover > a,
html:root[data-tdm-theme="dark"] body .sf-menu ul .td-menu-item > a:hover,
html:root[data-tdm-theme="dark"] body .sf-menu ul .current-menu-item > a { color: var(--tdm-accent) !important; }

/* Texto */
html:root[data-tdm-theme="dark"] body h1, html:root[data-tdm-theme="dark"] body h2, html:root[data-tdm-theme="dark"] body h3, html:root[data-tdm-theme="dark"] body h4, html:root[data-tdm-theme="dark"] body h5, html:root[data-tdm-theme="dark"] body h6,
html:root[data-tdm-theme="dark"] body h1 a, html:root[data-tdm-theme="dark"] body h2 a, html:root[data-tdm-theme="dark"] body h3 a, html:root[data-tdm-theme="dark"] body h4 a, html:root[data-tdm-theme="dark"] body h5 a, html:root[data-tdm-theme="dark"] body h6 a,
html:root[data-tdm-theme="dark"] body .entry-title a,
html:root[data-tdm-theme="dark"] body .td-module-title a,
html:root[data-tdm-theme="dark"] body .td-page-title,
html:root[data-tdm-theme="dark"] body .td-page-title h1,
html:root[data-tdm-theme="dark"] body .td-post-title .entry-title,
html:root[data-tdm-theme="dark"] body .td-post-next-prev-content a { color: var(--tdm-ink) !important; }
html:root[data-tdm-theme="dark"] body .td-post-content,
html:root[data-tdm-theme="dark"] body .td-page-content,
html:root[data-tdm-theme="dark"] body .td-excerpt,
html:root[data-tdm-theme="dark"] body .comment-content,
html:root[data-tdm-theme="dark"] body .wp-block-quote,
html:root[data-tdm-theme="dark"] body .td-post-content p,
html:root[data-tdm-theme="dark"] body .td-page-content p { color: var(--tdm-text); }
html:root[data-tdm-theme="dark"] body .td-module-meta-info,
html:root[data-tdm-theme="dark"] body .td-post-date,
html:root[data-tdm-theme="dark"] body .td-post-date time,
html:root[data-tdm-theme="dark"] body .td-module-comments a,
html:root[data-tdm-theme="dark"] body .td-post-author-name,
html:root[data-tdm-theme="dark"] body .td-post-author-name a,
html:root[data-tdm-theme="dark"] body .td-post-views,
html:root[data-tdm-theme="dark"] body .td-post-views span,
html:root[data-tdm-theme="dark"] body .td-post-sub-title,
html:root[data-tdm-theme="dark"] body .entry-crumbs,
html:root[data-tdm-theme="dark"] body .entry-crumbs a,
html:root[data-tdm-theme="dark"] body .entry-crumbs span,
html:root[data-tdm-theme="dark"] body .comment-meta,
html:root[data-tdm-theme="dark"] body .comment-meta a,
html:root[data-tdm-theme="dark"] body .wp-caption-text { color: var(--tdm-muted) !important; }
html:root[data-tdm-theme="dark"] body .td_module_wrap:hover .entry-title a,
html:root[data-tdm-theme="dark"] body .td_module_wrap:hover .td-module-title a,
html:root[data-tdm-theme="dark"] body .entry-crumbs a:hover { color: var(--tdm-accent) !important; }

/* Cartões, miniaturas e blocos */
html:root[data-tdm-theme="dark"] body .td-post-category,
html:root[data-tdm-theme="dark"] body .td-category a { background-color: var(--tdm-accent-strong); color: #07101f; }
html:root[data-tdm-theme="dark"] body .td-post-category:hover,
html:root[data-tdm-theme="dark"] body .td-category a:hover { background-color: var(--tdm-accent); color: #07101f; }
html:root[data-tdm-theme="dark"] body .td-module-comments a { background-color: var(--tdm-surface-3); }
html:root[data-tdm-theme="dark"] body .td-module-comments a:after { border-top-color: var(--tdm-surface-3); }
html:root[data-tdm-theme="dark"] body .block-title { border-bottom-color: #1747c9; }
html:root[data-tdm-theme="dark"] body .block-title > a,
html:root[data-tdm-theme="dark"] body .block-title > span,
html:root[data-tdm-theme="dark"] body .block-title > label,
html:root[data-tdm-theme="dark"] body .block-title > span > a { background-color: #1747c9; color: #ffffff; }
html:root[data-tdm-theme="dark"] body .td_module_wrap .entry-thumb,
html:root[data-tdm-theme="dark"] body .td-post-featured-image img,
html:root[data-tdm-theme="dark"] body .td-post-content img,
html:root[data-tdm-theme="dark"] body .wp-block-image img { filter: brightness(0.92) contrast(1.02); }

/* Links no conteúdo */
html:root[data-tdm-theme="dark"] body .td-post-content a:not(.wp-block-button__link):not(.td-button):not(.btn),
html:root[data-tdm-theme="dark"] body .td-page-content a:not(.wp-block-button__link):not(.td-button):not(.btn),
html:root[data-tdm-theme="dark"] body .comment-content a { color: var(--tdm-accent); }

/* Botões */
html:root[data-tdm-theme="dark"] body input[type="submit"],
html:root[data-tdm-theme="dark"] body input[type="button"],
html:root[data-tdm-theme="dark"] body .wp-block-button__link,
html:root[data-tdm-theme="dark"] body .td-button,
html:root[data-tdm-theme="dark"] body .td_default_btn,
html:root[data-tdm-theme="dark"] body .td_shadow_btn,
html:root[data-tdm-theme="dark"] body .td_round_btn,
html:root[data-tdm-theme="dark"] body .td_3D_btn,
html:root[data-tdm-theme="dark"] body .comment-form .submit {
  background-color: #2f6bff;
  border-color: #2f6bff;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 18px -8px rgba(47, 107, 255, 0.7);
}
html:root[data-tdm-theme="dark"] body input[type="submit"]:hover,
html:root[data-tdm-theme="dark"] body input[type="button"]:hover,
html:root[data-tdm-theme="dark"] body .wp-block-button__link:hover,
html:root[data-tdm-theme="dark"] body .td-button:hover,
html:root[data-tdm-theme="dark"] body .td_default_btn:hover,
html:root[data-tdm-theme="dark"] body .td_shadow_btn:hover,
html:root[data-tdm-theme="dark"] body .td_round_btn:hover,
html:root[data-tdm-theme="dark"] body .td_3D_btn:hover,
html:root[data-tdm-theme="dark"] body .comment-form .submit:hover { background-color: #5b95ff; border-color: #5b95ff; color: #07101f; }
html:root[data-tdm-theme="dark"] body .td_outlined_btn { color: var(--tdm-accent); border-color: var(--tdm-accent); }
html:root[data-tdm-theme="dark"] body .td_outlined_btn:hover { background-color: var(--tdm-accent); color: #07101f; }

/* Campos */
html:root[data-tdm-theme="dark"] body input[type="text"],
html:root[data-tdm-theme="dark"] body input[type="email"],
html:root[data-tdm-theme="dark"] body input[type="url"],
html:root[data-tdm-theme="dark"] body input[type="password"],
html:root[data-tdm-theme="dark"] body input[type="search"],
html:root[data-tdm-theme="dark"] body input[type="tel"],
html:root[data-tdm-theme="dark"] body input[type="number"],
html:root[data-tdm-theme="dark"] body textarea,
html:root[data-tdm-theme="dark"] body select {
  background-color: var(--tdm-surface-2) !important;
  color: var(--tdm-ink) !important;
  border-color: var(--tdm-line-strong) !important;
}
html:root[data-tdm-theme="dark"] body input:focus,
html:root[data-tdm-theme="dark"] body textarea:focus,
html:root[data-tdm-theme="dark"] body select:focus { border-color: var(--tdm-accent) !important; }
html:root[data-tdm-theme="dark"] body #td-mobile-nav input[type="text"],
html:root[data-tdm-theme="dark"] body #td-mobile-nav input[type="email"],
html:root[data-tdm-theme="dark"] body #td-mobile-nav input[type="password"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Paginação */
html:root[data-tdm-theme="dark"] body .page-nav a,
html:root[data-tdm-theme="dark"] body .page-nav span {
  background-color: var(--tdm-surface);
  border-color: var(--tdm-line-strong);
  color: var(--tdm-text);
}
html:root[data-tdm-theme="dark"] body .page-nav a:hover { background-color: var(--tdm-accent); border-color: var(--tdm-accent); color: #07101f; }
html:root[data-tdm-theme="dark"] body .page-nav .current { background-color: #2f6bff; border-color: #2f6bff; color: #ffffff; }
html:root[data-tdm-theme="dark"] body .page-nav .pages { background-color: transparent; border-color: transparent; }

/* Conteúdo */
html:root[data-tdm-theme="dark"] body .td-post-content blockquote,
html:root[data-tdm-theme="dark"] body .td-page-content blockquote,
html:root[data-tdm-theme="dark"] body .wp-block-quote,
html:root[data-tdm-theme="dark"] body .wp-block-pullquote { border-color: var(--tdm-accent); }
html:root[data-tdm-theme="dark"] body .td-post-content pre,
html:root[data-tdm-theme="dark"] body .td-page-content pre,
html:root[data-tdm-theme="dark"] body .td-post-content code { background-color: var(--tdm-surface-2); color: var(--tdm-ink); border-color: var(--tdm-line); }
html:root[data-tdm-theme="dark"] body .td-tags li a,
html:root[data-tdm-theme="dark"] body .td-tags li span,
html:root[data-tdm-theme="dark"] body .td-post-source-tags li a,
html:root[data-tdm-theme="dark"] body .widget_tag_cloud a { background-color: var(--tdm-surface-2); color: var(--tdm-text); border-color: var(--tdm-line); }
html:root[data-tdm-theme="dark"] body .td-tags li a:hover,
html:root[data-tdm-theme="dark"] body .td-post-source-tags li a:hover,
html:root[data-tdm-theme="dark"] body .widget_tag_cloud a:hover { background-color: var(--tdm-accent); border-color: var(--tdm-accent); color: #07101f; }
html:root[data-tdm-theme="dark"] body .author-box-wrap { background-color: var(--tdm-surface); border-color: var(--tdm-line); }
html:root[data-tdm-theme="dark"] body .td-more-articles-box { background-color: var(--tdm-surface); border-color: var(--tdm-line); }
html:root[data-tdm-theme="dark"] body .comment-respond,
html:root[data-tdm-theme="dark"] body .comment-list .comment,
html:root[data-tdm-theme="dark"] body .td-post-next-prev,
html:root[data-tdm-theme="dark"] body .td-post-next-prev .td-post-next-post,
html:root[data-tdm-theme="dark"] body .td-post-next-prev .td-post-prev-post,
html:root[data-tdm-theme="dark"] body hr,
html:root[data-tdm-theme="dark"] body .wp-block-separator,
html:root[data-tdm-theme="dark"] body .td_module_15,
html:root[data-tdm-theme="dark"] body .comment,
html:root[data-tdm-theme="dark"] body .comment .children,
html:root[data-tdm-theme="dark"] body .wp-block-latest-posts:not(.is-grid) li,
html:root[data-tdm-theme="dark"] body .widget_recent_entries li,
html:root[data-tdm-theme="dark"] body .widget_rss li { border-color: var(--tdm-line) !important; }
html:root[data-tdm-theme="dark"] body .td-warning-comment,
html:root[data-tdm-theme="dark"] body .td-warning-author,
html:root[data-tdm-theme="dark"] body .td-warning-email,
html:root[data-tdm-theme="dark"] body .td-warning-email-error { background-color: var(--tdm-accent-soft); color: var(--tdm-accent-strong); }

/* Widgets e tabelas */
html:root[data-tdm-theme="dark"] body .widget a { color: var(--tdm-text); }
html:root[data-tdm-theme="dark"] body .widget a:hover { color: var(--tdm-accent); }
html:root[data-tdm-theme="dark"] body table th { background-color: var(--tdm-surface-2); color: var(--tdm-ink); }
html:root[data-tdm-theme="dark"] body table td { color: var(--tdm-text); }
html:root[data-tdm-theme="dark"] body table .odd td { background-color: var(--tdm-surface-2); }
html:root[data-tdm-theme="dark"] body table th,
html:root[data-tdm-theme="dark"] body table td { border-color: var(--tdm-line); }

/* Rodapé e elementos fixos */
html:root[data-tdm-theme="dark"] body .td-footer-page,
html:root[data-tdm-theme="dark"] body .td-footer-container,
html:root[data-tdm-theme="dark"] body .td-footer-wrapper,
html:root[data-tdm-theme="dark"] body .td-footer-template-wrap { background-color: var(--tdm-footer) !important; }
html:root[data-tdm-theme="dark"] body .td-sub-footer-container { background-color: var(--tdm-footer-2) !important; }
html:root[data-tdm-theme="dark"] body .td-footer-page .block-title > span,
html:root[data-tdm-theme="dark"] body .td-footer-wrapper .block-title > span { background-color: #1747c9; }
html:root[data-tdm-theme="dark"] body .td-scroll-up { background-color: #2f6bff; }
html:root[data-tdm-theme="dark"] body .td-404-title,
html:root[data-tdm-theme="dark"] body .td-404-sub-title { color: var(--tdm-ink) !important; }
html:root[data-tdm-theme="dark"] body .td-404-sub-sub-title,
html:root[data-tdm-theme="dark"] body .td_search_subtitle { color: var(--tdm-muted) !important; }
