/* ==========================================================
   RelogioDigital site-wide color scheme.
   Does not override the clock widget's independent theme.
   ========================================================== */

html[data-rd-theme="dark"] {
	color-scheme: dark;
	--rd-site-bg: #0b1422;
	--rd-site-surface: #132033;
	--rd-site-surface-soft: #1a2a40;
	--rd-site-text: #e8eef7;
	--rd-site-muted: #b4c1d2;
	--rd-site-border: #2c4059;
	--rd-site-link: #86beff;
	--rd-site-primary: #70b4ff;
	--rd-site-accent: #ff9d32;
	--rd-site-input: #182940;
	--rd-site-shadow: rgba(0, 0, 0, .22);
	/* GeneratePress global palette tokens. */
	--contrast: #e8eef7;
	--contrast-2: #b4c1d2;
	--contrast-3: #899bb2;
	--base: #1a2a40;
	--base-2: #0b1422;
	--base-3: #132033;
	--accent: #70b4ff;
}

/* Page canvas and native theme containers. */
html[data-rd-theme="dark"] body {
	background: var(--rd-site-bg) !important;
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] #page,
html[data-rd-theme="dark"] #content,
html[data-rd-theme="dark"] .site-content,
html[data-rd-theme="dark"] .site-main,
html[data-rd-theme="dark"] .content-area,
html[data-rd-theme="dark"] .inside-article,
html[data-rd-theme="dark"] .entry-content {
	background-color: transparent !important;
	color: var(--rd-site-text) !important;
}

/* Re-map the plugin's design tokens for every site component except chrome. */
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) {
	--rd-primary: var(--rd-site-primary);
	--rd-accent: var(--rd-site-accent);
	--rd-ink: var(--rd-site-text);
	--rd-muted: var(--rd-site-muted);
	--rd-line: var(--rd-site-border);
	--rd-surface: var(--rd-site-surface);
	--rd-soft: var(--rd-site-surface-soft);
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) h1,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) h2,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) h3,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) h4,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) strong,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) label {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) p,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) li,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) small,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) .rd-muted,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) .rd-feature-note,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) .rd-tool-note,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) .rd-small-note {
	color: var(--rd-site-muted) !important;
}

html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) a:not(.rd-button),
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) .rd-text-link,
html[data-rd-theme="dark"] .rd-site:not(.rd-site-chrome) .rd-article-content a {
	color: var(--rd-site-link);
}

/* Main content cards, tool panels, directories and article surfaces. */
html[data-rd-theme="dark"] .rd-site .rd-tool-card,
html[data-rd-theme="dark"] .rd-site .rd-city-group,
html[data-rd-theme="dark"] .rd-site .rd-educational,
html[data-rd-theme="dark"] .rd-site .rd-feature-list > div,
html[data-rd-theme="dark"] .rd-site .rd-world-card,
html[data-rd-theme="dark"] .rd-site .rd-tool-panel,
html[data-rd-theme="dark"] .rd-site .rd-date-calc-block,
html[data-rd-theme="dark"] .rd-site .rd-country-facts > div,
html[data-rd-theme="dark"] .rd-site .rd-country-card,
html[data-rd-theme="dark"] .rd-site .rd-post-card,
html[data-rd-theme="dark"] .rd-site .rd-empty-articles,
html[data-rd-theme="dark"] .rd-site .rd-article-content,
html[data-rd-theme="dark"] .rd-site .rd-related-searches,
html[data-rd-theme="dark"] .rd-site .rd-contact-email-line,
html[data-rd-theme="dark"] .rd-site .rd-feature-tool,
html[data-rd-theme="dark"] .rd-site .rd-feature-page,
html[data-rd-theme="dark"] .rd-site .rd-time-entry,
html[data-rd-theme="dark"] .rd-site .rd-work-entry,
html[data-rd-theme="dark"] .rd-site .rd-calculator-result,
html[data-rd-theme="dark"] .rd-site .rd-flip-tool,
html[data-rd-theme="dark"] .rd-site .rd-chess-tool,
html[data-rd-theme="dark"] .rd-site .rd-emoji-tile,
html[data-rd-theme="dark"] .rd-site .rd-emoji-empty,
html[data-rd-theme="dark"] .rd-site .rd-error-page,
html[data-rd-theme="dark"] .rd-site .rd-error-links a,
html[data-rd-theme="dark"] .rd-site .rd-related-tools,
html[data-rd-theme="dark"] .rd-site .rd-home-disclaimer,
html[data-rd-theme="dark"] .rd-site .rd-tool-seo-copy,
html[data-rd-theme="dark"] .rd-site .rd-faq-block,
html[data-rd-theme="dark"] .rd-site .rd-emoji-seo-copy {
	background-color: var(--rd-site-surface) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
	box-shadow: 0 8px 26px var(--rd-site-shadow);
}

/* Secondary panels, badges and soft icon backgrounds. */
html[data-rd-theme="dark"] .rd-site .rd-tool-icon,
html[data-rd-theme="dark"] .rd-site .rd-arrow,
html[data-rd-theme="dark"] .rd-site .rd-feature-list > div > span,
html[data-rd-theme="dark"] .rd-site .rd-country-flag,
html[data-rd-theme="dark"] .rd-site .rd-emoji-categories button,
html[data-rd-theme="dark"] .rd-site .rd-format-switch,
html[data-rd-theme="dark"] .rd-site .rd-text-button,
html[data-rd-theme="dark"] .rd-site .rd-tool-quiet,
html[data-rd-theme="dark"] .rd-site .rd-emoji-copy-hint,
html[data-rd-theme="dark"] .rd-site .rd-error-links a span {
	background-color: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

/* Site title, page intro and section labels. */
html[data-rd-theme="dark"] .rd-site.rd-page-title h1,
html[data-rd-theme="dark"] .rd-site .rd-home-title,
html[data-rd-theme="dark"] .rd-site .rd-home-title a,
html[data-rd-theme="dark"] .rd-site .rd-brand-mark,
html[data-rd-theme="dark"] .rd-site .rd-article-content blockquote {
	color: var(--rd-site-text) !important;
}

/* Timer, alarm, calculator and form fields. */
html[data-rd-theme="dark"] .rd-site input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html[data-rd-theme="dark"] .rd-site textarea,
html[data-rd-theme="dark"] .rd-site select {
	background-color: var(--rd-site-input) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
	color-scheme: dark;
}

html[data-rd-theme="dark"] .rd-site input::placeholder,
html[data-rd-theme="dark"] .rd-site textarea::placeholder {
	color: #91a3ba !important;
}

html[data-rd-theme="dark"] .rd-site select option {
	background: var(--rd-site-input) !important;
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-button-secondary,
html[data-rd-theme="dark"] .rd-site .rd-timer-presets button,
html[data-rd-theme="dark"] .rd-site .rd-pagination a,
html[data-rd-theme="dark"] .rd-site .rd-pagination span {
	background: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-button-primary {
	background: #1565c0 !important;
	color: #ffffff !important;
}

html[data-rd-theme="dark"] .rd-site table,
html[data-rd-theme="dark"] .rd-site th,
html[data-rd-theme="dark"] .rd-site td,
html[data-rd-theme="dark"] .rd-site .rd-work-breakdown-table {
	background: var(--rd-site-surface) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site details,
html[data-rd-theme="dark"] .rd-site .rd-faq-block details,
html[data-rd-theme="dark"] .rd-site .rd-tool-seo-copy details {
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site summary {
	color: var(--rd-site-text) !important;
}

/* Managed custom header. */
html[data-rd-theme="dark"] .rd-site-chrome-header,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-site-header {
	background: var(--rd-site-surface) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site-chrome-header .rd-brand-word,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-brand-word small,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-primary-nav a {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site-chrome-header .rd-primary-nav {
	background: var(--rd-site-surface) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site-chrome-header .rd-mobile-nav-toggle,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-chrome-language summary,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-header-search-button {
	background: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site-chrome-header .rd-chrome-language-menu,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-search-panel {
	background: var(--rd-site-surface) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site-chrome-header .rd-chrome-language-menu a,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-search-panel label,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-search-panel p {
	color: var(--rd-site-text) !important;
}

/* Managed custom footer. */
html[data-rd-theme="dark"] .rd-site-chrome-footer,
html[data-rd-theme="dark"] .rd-site-chrome-footer .rd-site-footer {
	background: var(--rd-site-surface) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site-chrome-footer p,
html[data-rd-theme="dark"] .rd-site-chrome-footer strong,
html[data-rd-theme="dark"] .rd-site-chrome-footer a,
html[data-rd-theme="dark"] .rd-site-chrome-footer .rd-footer-bottom {
	color: var(--rd-site-muted) !important;
}

/* Search dialog. */
html[data-rd-theme="dark"] .rd-site .rd-search-panel {
	background: var(--rd-site-surface) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-search-panel form > label,
html[data-rd-theme="dark"] .rd-site .rd-search-panel p {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-search-close {
	background: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

/* The site-wide toggle button. */
.rd-site-chrome-header .rd-theme-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 40px !important;
	width: 40px !important;
	min-width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #dce5f0 !important;
	border-radius: 11px !important;
	background: #f0f6ff !important;
	color: #1565c0 !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.rd-site-chrome-header .rd-theme-toggle svg {
	display: block;
	width: 21px;
	height: 21px;
}

.rd-site-chrome-header .rd-theme-toggle:hover,
.rd-site-chrome-header .rd-theme-toggle:focus-visible {
	background: #e1edff !important;
	color: #0d4f9b !important;
	outline: 2px solid #1565c0;
	outline-offset: 2px;
}

html[data-rd-theme="dark"] .rd-site-chrome-header .rd-theme-toggle {
	background: #243750 !important;
	color: #ffd166 !important;
	border-color: #3c526e !important;
}

html[data-rd-theme="dark"] .rd-site-chrome-header .rd-theme-toggle:hover,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-theme-toggle:focus-visible {
	background: #304863 !important;
	color: #ffe09a !important;
}

/* Desktop/tablet header: theme icon sits between language and search. */
@media (min-width: 901px) {
	body.rd-site-chrome-active .rd-site.rd-site-chrome-header > .rd-site-header {
		grid-template-columns: max-content minmax(0, 1fr) max-content 40px 40px !important;
	}

	body.rd-site-chrome-active .rd-site-chrome-header .rd-theme-toggle {
		grid-column: 4;
		grid-row: 1;
		justify-self: end;
		align-self: center;
	}

	body.rd-site-chrome-active .rd-site-chrome-header .rd-header-search-button {
		grid-column: 5 !important;
		grid-row: 1;
	}
}

/* Mobile header: preserve the menu's closed/open behaviour. */
@media (max-width: 900px) {
	body.rd-site-chrome-active .rd-site.rd-site-chrome-header > .rd-site-header {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: .45rem !important;
	}

	body.rd-site-chrome-active .rd-site-chrome-header .rd-site-brand {
		order: 1;
		flex: 1 1 100px;
		min-width: 0;
		margin-right: 0 !important;
	}

	body.rd-site-chrome-active .rd-site-chrome-header .rd-mobile-nav-toggle {
		order: 2;
	}

	body.rd-site-chrome-active .rd-site-chrome-header .rd-chrome-language {
		order: 3;
	}

	body.rd-site-chrome-active .rd-site-chrome-header .rd-theme-toggle {
		order: 4;
	}

	body.rd-site-chrome-active .rd-site-chrome-header .rd-header-search-button {
		order: 5;
	}

	body.rd-site-chrome-active .rd-site-chrome-header .rd-primary-nav {
		display: none;
		order: 6;
		flex: 0 0 100%;
		width: 100%;
	}

	body.rd-site-chrome-active .rd-site-chrome-header .rd-primary-nav.is-open {
		display: flex !important;
	}
}

@media (max-width: 380px) {
	.rd-site-chrome-header .rd-theme-toggle {
		flex-basis: 36px !important;
		width: 36px !important;
		min-width: 36px !important;
		height: 36px !important;
	}

	.rd-site-chrome-header .rd-theme-toggle svg {
		width: 19px;
		height: 19px;
	}
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: no-preference) {
	html[data-rd-theme] body,
	html[data-rd-theme] .rd-site,
	html[data-rd-theme] .rd-site-chrome-header,
	html[data-rd-theme] .rd-site-chrome-footer {
		transition: background-color .22s ease, color .22s ease, border-color .22s ease;
	}
}

/* Higher-specificity layout rules keep the new theme button compatible
   with previously added WordPress Additional CSS header adjustments. */
@media (min-width: 901px) {
	html[data-rd-theme] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header > .rd-site-header,
	html[data-rd-theme] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header > .rd-site-header {
		grid-template-columns: max-content minmax(0, 1fr) max-content 40px 40px !important;
	}
}

@media (max-width: 900px) {
	html[data-rd-theme] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header > .rd-site-header,
	html[data-rd-theme] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header > .rd-site-header {
		display: flex !important;
		grid-template-columns: none !important;
		grid-template-areas: none !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: .45rem !important;
	}

	html[data-rd-theme] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-site-brand,
	html[data-rd-theme] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-site-brand {
		order: 1 !important;
		flex: 1 1 100px !important;
		min-width: 0 !important;
		margin-right: 0 !important;
	}

	html[data-rd-theme] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-mobile-nav-toggle,
	html[data-rd-theme] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-mobile-nav-toggle {
		order: 2 !important;
	}

	html[data-rd-theme] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-chrome-language,
	html[data-rd-theme] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-chrome-language {
		order: 3 !important;
	}

	html[data-rd-theme] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-theme-toggle,
	html[data-rd-theme] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-theme-toggle {
		order: 4 !important;
	}

	html[data-rd-theme] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-header-search-button,
	html[data-rd-theme] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-header-search-button {
		order: 5 !important;
	}

	html[data-rd-theme] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-primary-nav,
	html[data-rd-theme] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-primary-nav {
		order: 6 !important;
		flex: 0 0 100% !important;
		width: 100% !important;
	}
}


/* Standard WordPress content outside plugin-specific components. */
html[data-rd-theme="dark"] .entry-title,
html[data-rd-theme="dark"] .entry-title a,
html[data-rd-theme="dark"] .entry-content h1,
html[data-rd-theme="dark"] .entry-content h2,
html[data-rd-theme="dark"] .entry-content h3,
html[data-rd-theme="dark"] .entry-content h4,
html[data-rd-theme="dark"] .page-header,
html[data-rd-theme="dark"] .page-header h1 {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .entry-content p,
html[data-rd-theme="dark"] .entry-content li,
html[data-rd-theme="dark"] .entry-meta,
html[data-rd-theme="dark"] .archive-description,
html[data-rd-theme="dark"] .comment-content {
	color: var(--rd-site-muted) !important;
}

html[data-rd-theme="dark"] .entry-content a,
html[data-rd-theme="dark"] .entry-title a:hover,
html[data-rd-theme="dark"] .main-navigation a {
	color: var(--rd-site-link) !important;
}

/* ==========================================================
   DARK THEME COMPLETION — ALL RELOGIODIGITAL PAGE COMPONENTS
   Additive overrides for hard-coded light surfaces in the
   original component stylesheet. The clock display itself
   keeps its independent user-selected clock theme.
   ========================================================== */

/* Keep the whole WordPress/Elementor canvas on the dark page background. */
html[data-rd-theme="dark"] body,
html[data-rd-theme="dark"] body.rd-site-chrome-active,
html[data-rd-theme="dark"] body.rd-managed-page,
html[data-rd-theme="dark"] #page,
html[data-rd-theme="dark"] #content,
html[data-rd-theme="dark"] .site,
html[data-rd-theme="dark"] .site-content,
html[data-rd-theme="dark"] .content-area,
html[data-rd-theme="dark"] .site-main,
html[data-rd-theme="dark"] .inside-article,
html[data-rd-theme="dark"] .entry-content,
html[data-rd-theme="dark"] .elementor,
html[data-rd-theme="dark"] .elementor-section,
html[data-rd-theme="dark"] .elementor-container,
html[data-rd-theme="dark"] .e-con,
html[data-rd-theme="dark"] .e-con-inner,
html[data-rd-theme="dark"] .elementor-widget-wrap,
html[data-rd-theme="dark"] .elementor-widget-container {
	background-color: transparent !important;
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] body {
	background-color: var(--rd-site-bg) !important;
}

/* Page headings and ordinary WordPress/Elementor copy. */
html[data-rd-theme="dark"] .entry-content h1,
html[data-rd-theme="dark"] .entry-content h2,
html[data-rd-theme="dark"] .entry-content h3,
html[data-rd-theme="dark"] .entry-content h4,
html[data-rd-theme="dark"] .entry-content h5,
html[data-rd-theme="dark"] .entry-content h6,
html[data-rd-theme="dark"] .elementor-heading-title,
html[data-rd-theme="dark"] .elementor-widget-text-editor,
html[data-rd-theme="dark"] .entry-content strong,
html[data-rd-theme="dark"] .entry-content b {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .entry-content p,
html[data-rd-theme="dark"] .entry-content li,
html[data-rd-theme="dark"] .elementor-widget-text-editor,
html[data-rd-theme="dark"] .entry-content blockquote,
html[data-rd-theme="dark"] .entry-content figcaption,
html[data-rd-theme="dark"] .entry-meta,
html[data-rd-theme="dark"] .archive-description,
html[data-rd-theme="dark"] .comment-content {
	color: var(--rd-site-muted) !important;
}

/* Restore dark surfaces to every reusable plugin card/section type. */
html[data-rd-theme="dark"] .rd-site .rd-tool-card,
html[data-rd-theme="dark"] .rd-site .rd-city-group,
html[data-rd-theme="dark"] .rd-site .rd-educational,
html[data-rd-theme="dark"] .rd-site .rd-feature-list > div,
html[data-rd-theme="dark"] .rd-site .rd-world-card,
html[data-rd-theme="dark"] .rd-site .rd-tool-panel,
html[data-rd-theme="dark"] .rd-site .rd-date-calc-block,
html[data-rd-theme="dark"] .rd-site .rd-country-facts > div,
html[data-rd-theme="dark"] .rd-site .rd-country-card,
html[data-rd-theme="dark"] .rd-site .rd-post-card,
html[data-rd-theme="dark"] .rd-site .rd-empty-articles,
html[data-rd-theme="dark"] .rd-site .rd-article-content,
html[data-rd-theme="dark"] .rd-site .rd-related-searches,
html[data-rd-theme="dark"] .rd-site .rd-contact-email-line,
html[data-rd-theme="dark"] .rd-site .rd-feature-tool,
html[data-rd-theme="dark"] .rd-site .rd-feature-page,
html[data-rd-theme="dark"] .rd-site .rd-feature-tool-head,
html[data-rd-theme="dark"] .rd-site .rd-time-entry,
html[data-rd-theme="dark"] .rd-site .rd-work-entry,
html[data-rd-theme="dark"] .rd-site .rd-work-results,
html[data-rd-theme="dark"] .rd-site .rd-calculator-result,
html[data-rd-theme="dark"] .rd-site .rd-flip-tool,
html[data-rd-theme="dark"] .rd-site .rd-chess-tool,
html[data-rd-theme="dark"] .rd-site .rd-emoji-tile,
html[data-rd-theme="dark"] .rd-site .rd-emoji-empty,
html[data-rd-theme="dark"] .rd-site .rd-emoji-intro,
html[data-rd-theme="dark"] .rd-site .rd-emoji-multi-control,
html[data-rd-theme="dark"] .rd-site .rd-error-page,
html[data-rd-theme="dark"] .rd-site .rd-error-links a,
html[data-rd-theme="dark"] .rd-site .rd-related-tools,
html[data-rd-theme="dark"] .rd-related-tools,
html[data-rd-theme="dark"] .rd-site .rd-home-disclaimer,
html[data-rd-theme="dark"] .rd-site .rd-tool-seo-copy,
html[data-rd-theme="dark"] .rd-site .rd-faq-block,
html[data-rd-theme="dark"] .rd-site .rd-emoji-seo-copy {
	background-color: var(--rd-site-surface) !important;
	background-image: none;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
	box-shadow: 0 8px 26px var(--rd-site-shadow);
}

/* Sections that are meant to be subtle rather than raised cards. */
html[data-rd-theme="dark"] .rd-site .rd-home-disclaimer,
html[data-rd-theme="dark"] .rd-site .rd-tool-note,
html[data-rd-theme="dark"] .rd-site .rd-calculator-intro,
html[data-rd-theme="dark"] .rd-site .rd-calculator-description,
html[data-rd-theme="dark"] .rd-site .rd-feature-note,
html[data-rd-theme="dark"] .rd-site .rd-tool-note {
	background-color: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-muted) !important;
	border-color: var(--rd-site-border) !important;
}

/* Time-zone converter: these hard-coded light surfaces were visible in mobile. */
html[data-rd-theme="dark"] .rd-site .rd-converter-swap button {
	background: var(--rd-site-surface-soft) !important;
	background-image: none !important;
	color: var(--rd-site-primary) !important;
	border: 1px solid var(--rd-site-border) !important;
	box-shadow: none !important;
}

html[data-rd-theme="dark"] .rd-site .rd-converter-result {
	background: var(--rd-site-surface-soft) !important;
	background-image: none !important;
	color: var(--rd-site-text) !important;
	border: 1px solid var(--rd-site-border) !important;
	box-shadow: none !important;
}

html[data-rd-theme="dark"] .rd-site .rd-converter-result span {
	color: var(--rd-site-muted) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-converter-result strong {
	color: #d8e9ff !important;
}

html[data-rd-theme="dark"] .rd-site .rd-converter-result.is-error {
	background: #321f2a !important;
	border-color: #70404e !important;
}

html[data-rd-theme="dark"] .rd-site .rd-converter-result.is-error strong {
	color: #ffd5dc !important;
}

/* Tool notes, warnings and status messages. */
html[data-rd-theme="dark"] .rd-site .rd-tool-note {
	border-left-color: var(--rd-site-accent) !important;
	color: #d4deeb !important;
}

html[data-rd-theme="dark"] .rd-site[dir="rtl"] .rd-tool-note {
	border-right-color: var(--rd-site-accent) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-status-message,
html[data-rd-theme="dark"] .rd-site .rd-small-note,
html[data-rd-theme="dark"] .rd-site .rd-feature-note,
html[data-rd-theme="dark"] .rd-site .rd-calculator-description,
html[data-rd-theme="dark"] .rd-site .rd-calculator-intro > p,
html[data-rd-theme="dark"] .rd-site .rd-emoji-results-meta,
html[data-rd-theme="dark"] .rd-site .rd-post-meta,
html[data-rd-theme="dark"] .rd-site .rd-world-country,
html[data-rd-theme="dark"] .rd-site .rd-world-date,
html[data-rd-theme="dark"] .rd-site .rd-world-zone,
html[data-rd-theme="dark"] .rd-site .rd-country-facts span,
html[data-rd-theme="dark"] .rd-site .rd-country-card-main small,
html[data-rd-theme="dark"] .rd-site .rd-emoji-name,
html[data-rd-theme="dark"] .rd-site .rd-emoji-empty,
html[data-rd-theme="dark"] .rd-site .rd-error-description,
html[data-rd-theme="dark"] .rd-site .rd-contact-form-wrap p {
	color: var(--rd-site-muted) !important;
}

/* Calculator, date, work-hours and alarm components. */
html[data-rd-theme="dark"] .rd-site .rd-calculator-fields,
html[data-rd-theme="dark"] .rd-site .rd-calculator-actions,
html[data-rd-theme="dark"] .rd-site .rd-time-entries,
html[data-rd-theme="dark"] .rd-site .rd-work-entries,
html[data-rd-theme="dark"] .rd-site .rd-alarm-form,
html[data-rd-theme="dark"] .rd-site .rd-contact-form,
html[data-rd-theme="dark"] .rd-site .rd-contact-form-wrap,
html[data-rd-theme="dark"] .rd-site .rd-date-calc-grid {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-feature-control-row > label,
html[data-rd-theme="dark"] .rd-site .rd-calculator-fields > label,
html[data-rd-theme="dark"] .rd-site .rd-chess-config > label,
html[data-rd-theme="dark"] .rd-site .rd-time-entry > label,
html[data-rd-theme="dark"] .rd-site .rd-work-entry > label,
html[data-rd-theme="dark"] .rd-site .rd-contact-form label,
html[data-rd-theme="dark"] .rd-site .rd-timer-inputs label,
html[data-rd-theme="dark"] .rd-site .rd-alarm-form label,
html[data-rd-theme="dark"] .rd-site .rd-converter-fields label,
html[data-rd-theme="dark"] .rd-site .rd-date-calc-block label {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-date-result,
html[data-rd-theme="dark"] .rd-site .rd-calculator-result {
	color: #d8e9ff !important;
}

html[data-rd-theme="dark"] .rd-site .rd-work-breakdown-table,
html[data-rd-theme="dark"] .rd-site .rd-work-breakdown-table tbody,
html[data-rd-theme="dark"] .rd-site .rd-work-breakdown-table tr,
html[data-rd-theme="dark"] .rd-site .rd-work-breakdown-table td {
	background: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-form-success {
	background: #153526 !important;
	color: #b8f0cf !important;
	border-color: #286446 !important;
}

html[data-rd-theme="dark"] .rd-site .rd-form-error {
	background: #3a2027 !important;
	color: #ffd5dc !important;
	border-color: #75424c !important;
}

/* Search, language menus and all native form controls. */
html[data-rd-theme="dark"] .rd-site .rd-search-field,
html[data-rd-theme="dark"] .rd-site .rd-language-switcher summary,
html[data-rd-theme="dark"] .rd-site .rd-language-menu,
html[data-rd-theme="dark"] .rd-site .rd-search-panel,
html[data-rd-theme="dark"] .rd-site .rd-search-close,
html[data-rd-theme="dark"] .rd-site .rd-tool-quiet,
html[data-rd-theme="dark"] .rd-site .rd-format-switch,
html[data-rd-theme="dark"] .rd-site .rd-text-button,
html[data-rd-theme="dark"] .rd-site .rd-emoji-categories button,
html[data-rd-theme="dark"] .rd-site .rd-emoji-search-row,
html[data-rd-theme="dark"] .rd-site .rd-emoji-search-label {
	background-color: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-language-menu a,
html[data-rd-theme="dark"] .rd-site .rd-search-panel form > label,
html[data-rd-theme="dark"] .rd-site .rd-search-panel p,
html[data-rd-theme="dark"] .rd-site .rd-search-close {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html[data-rd-theme="dark"] .rd-site textarea,
html[data-rd-theme="dark"] .rd-site select,
html[data-rd-theme="dark"] .rd-site .rd-error-search input,
html[data-rd-theme="dark"] .rd-site .rd-feature-control-row select,
html[data-rd-theme="dark"] .rd-site .rd-calculator-fields input,
html[data-rd-theme="dark"] .rd-site .rd-calculator-fields select,
html[data-rd-theme="dark"] .rd-site .rd-chess-config input,
html[data-rd-theme="dark"] .rd-site .rd-chess-config select,
html[data-rd-theme="dark"] .rd-site .rd-time-entry input,
html[data-rd-theme="dark"] .rd-site .rd-time-entry select,
html[data-rd-theme="dark"] .rd-site .rd-work-entry input,
html[data-rd-theme="dark"] .rd-site .rd-work-entry select {
	background-color: var(--rd-site-input) !important;
	background-image: none;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
	color-scheme: dark;
}

html[data-rd-theme="dark"] .rd-site input::placeholder,
html[data-rd-theme="dark"] .rd-site textarea::placeholder {
	color: #91a3ba !important;
	opacity: 1;
}

html[data-rd-theme="dark"] .rd-site select option {
	background: var(--rd-site-input) !important;
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site input[type="checkbox"],
html[data-rd-theme="dark"] .rd-site input[type="radio"] {
	accent-color: var(--rd-site-primary);
}

/* All remaining secondary/quiet buttons and interactive tiles. */
html[data-rd-theme="dark"] .rd-site .rd-button-secondary,
html[data-rd-theme="dark"] .rd-site .rd-timer-presets button,
html[data-rd-theme="dark"] .rd-site .rd-pagination a,
html[data-rd-theme="dark"] .rd-site .rd-pagination span:not(.current),
html[data-rd-theme="dark"] .rd-site .rd-tool-quiet,
html[data-rd-theme="dark"] .rd-site .rd-emoji-tile,
html[data-rd-theme="dark"] .rd-site .rd-emoji-categories button,
html[data-rd-theme="dark"] .rd-site .rd-emoji-copy-hint,
html[data-rd-theme="dark"] .rd-site .rd-format-switch button,
html[data-rd-theme="dark"] .rd-site .rd-text-button {
	background-color: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-button-primary,
html[data-rd-theme="dark"] .rd-site .rd-pagination .current {
	background-color: #1565c0 !important;
	color: #ffffff !important;
	border-color: #367fce !important;
}

/* Feature pages: analog clock, error panel, flip tool and chess labels. */
html[data-rd-theme="dark"] .rd-site .rd-feature-page,
html[data-rd-theme="dark"] .rd-site .rd-feature-page h1,
html[data-rd-theme="dark"] .rd-site .rd-feature-page h2,
html[data-rd-theme="dark"] .rd-site .rd-feature-page h3,
html[data-rd-theme="dark"] .rd-site .rd-feature-tool h1,
html[data-rd-theme="dark"] .rd-site .rd-feature-tool h2,
html[data-rd-theme="dark"] .rd-site .rd-feature-tool h3,
html[data-rd-theme="dark"] .rd-site .rd-error-page h1,
html[data-rd-theme="dark"] .rd-site .rd-error-page h2,
html[data-rd-theme="dark"] .rd-site .rd-error-links h2 {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-analog-rim {
	fill: #14243a !important;
	stroke: #70b4ff !important;
}

html[data-rd-theme="dark"] .rd-site .rd-analog-inner {
	fill: #0f1d30 !important;
	stroke: #2c4059 !important;
}

html[data-rd-theme="dark"] .rd-site .rd-analog-ticks {
	stroke: #9fb2ca !important;
}

html[data-rd-theme="dark"] .rd-site .rd-analog-face text {
	fill: #c8d7e9 !important;
}

html[data-rd-theme="dark"] .rd-site .rd-analog-hour-hand line {
	stroke: #e8eef7 !important;
}

html[data-rd-theme="dark"] .rd-site .rd-analog-live-time {
	color: #d8e9ff !important;
}

html[data-rd-theme="dark"] .rd-site .rd-analog-live-date {
	color: var(--rd-site-muted) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-error-clock-face {
	background: #17283e !important;
}

html[data-rd-theme="dark"] .rd-site .rd-error-clock-hour {
	background: #e8eef7 !important;
}

html[data-rd-theme="dark"] .rd-site .rd-flip-tool {
	background: radial-gradient(circle at 50% 0%, #22344f 0, #101a2a 64%) !important;
	color: #f5f7fb !important;
}

/* Related-tools nav is emitted outside the .rd-site wrapper. */
html[data-rd-theme="dark"] .rd-related-tools {
	background: var(--rd-site-surface) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .rd-related-tools h2 {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .rd-related-tools a {
	background: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-link) !important;
	border-color: var(--rd-site-border) !important;
}

/* WordPress content blocks used on regular pages and posts. */
html[data-rd-theme="dark"] .entry-content .wp-block-group,
html[data-rd-theme="dark"] .entry-content .wp-block-column,
html[data-rd-theme="dark"] .entry-content .wp-block-media-text,
html[data-rd-theme="dark"] .entry-content .wp-block-table,
html[data-rd-theme="dark"] .entry-content .wp-block-quote,
html[data-rd-theme="dark"] .entry-content .wp-block-pullquote,
html[data-rd-theme="dark"] .entry-content .wp-block-code,
html[data-rd-theme="dark"] .entry-content .wp-block-preformatted,
html[data-rd-theme="dark"] .entry-content .wp-block-details {
	background-color: var(--rd-site-surface) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .entry-content .wp-block-table table,
html[data-rd-theme="dark"] .entry-content .wp-block-table td,
html[data-rd-theme="dark"] .entry-content .wp-block-table th {
	background-color: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] .entry-content .wp-block-quote,
html[data-rd-theme="dark"] .entry-content blockquote {
	border-color: var(--rd-site-accent) !important;
}

html[data-rd-theme="dark"] .entry-content code,
html[data-rd-theme="dark"] .entry-content pre {
	background: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

/* Elementor cards/containers that explicitly declared a light background. */
html[data-rd-theme="dark"] .elementor-element.e-con,
html[data-rd-theme="dark"] .elementor-element.elementor-widget-container,
html[data-rd-theme="dark"] .elementor-widget-text-editor,
html[data-rd-theme="dark"] .elementor-widget-heading {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] .elementor-widget-text-editor p,
html[data-rd-theme="dark"] .elementor-widget-text-editor li {
	color: var(--rd-site-muted) !important;
}

/* Mobile/tablet parity: keep these surfaces dark at every viewport width. */
@media (max-width: 900px) {
	html[data-rd-theme="dark"] .rd-site .rd-converter-swap button,
	html[data-rd-theme="dark"] .rd-site .rd-converter-result,
	html[data-rd-theme="dark"] .rd-site .rd-tool-note,
	html[data-rd-theme="dark"] .rd-site .rd-date-calc-block,
	html[data-rd-theme="dark"] .rd-site .rd-calculator-result,
	html[data-rd-theme="dark"] .rd-site .rd-time-entry,
	html[data-rd-theme="dark"] .rd-site .rd-work-entry,
	html[data-rd-theme="dark"] .rd-related-tools {
		background-color: var(--rd-site-surface-soft) !important;
		color: var(--rd-site-text) !important;
		border-color: var(--rd-site-border) !important;
	}

	html[data-rd-theme="dark"] .rd-site .rd-converter-result strong,
	html[data-rd-theme="dark"] .rd-site .rd-calculator-result,
	html[data-rd-theme="dark"] .rd-site .rd-date-result {
		color: #d8e9ff !important;
	}
}

/* Keep reduced-motion users comfortable when changing themes. */
@media (prefers-reduced-motion: reduce) {
	html[data-rd-theme] body,
	html[data-rd-theme] .rd-site,
	html[data-rd-theme] .rd-site-chrome-header,
	html[data-rd-theme] .rd-site-chrome-footer {
		transition: none !important;
	}
}

/* Finish small light accents that are separate from the main cards. */
html[data-rd-theme="dark"] .rd-site .rd-post-image {
	background: #17283e !important;
}

html[data-rd-theme="dark"] .rd-site .rd-article-content blockquote {
	background: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-muted) !important;
	border-color: var(--rd-site-accent) !important;
}

html[data-rd-theme="dark"] .rd-site[dir="rtl"] .rd-article-content blockquote {
	border-right-color: var(--rd-site-accent) !important;
}

html[data-rd-theme="dark"] .rd-site .rd-language-menu a:hover,
html[data-rd-theme="dark"] .rd-site .rd-language-menu a[aria-current="page"],
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-primary-nav a:hover,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-primary-nav a:focus-visible,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-chrome-language-menu a:hover,
html[data-rd-theme="dark"] .rd-site-chrome-header .rd-chrome-language-menu a[aria-current="page"] {
	background: #243b57 !important;
	color: #d8e9ff !important;
}

html[data-rd-theme="dark"] .rd-site .rd-emoji-categories button.is-active {
	background: #1565c0 !important;
	color: #ffffff !important;
	border-color: #367fce !important;
}

html[data-rd-theme="dark"] .rd-site .rd-tool-icon,
html[data-rd-theme="dark"] .rd-site .rd-arrow,
html[data-rd-theme="dark"] .rd-site .rd-feature-list > div > span,
html[data-rd-theme="dark"] .rd-site .rd-country-flag,
html[data-rd-theme="dark"] .rd-site .rd-error-links a span {
	background-color: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-primary) !important;
	border-color: var(--rd-site-border) !important;
}

/* ==========================================================
   DARK MODE PATCH 1.3 — MOBILE HEADER + OUTSIDE-WRAPPER SECTIONS
   Fixes standalone SEO/FAQ markup and custom header rules that
   are emitted outside .rd-site or overridden by site CSS.
   ========================================================== */

/* High-specificity custom header override (including Additional CSS). */
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header > .rd-site-header,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header > .rd-site-header {
	background: var(--rd-site-surface) !important;
	background-color: var(--rd-site-surface) !important;
	background-image: none !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-site-brand,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-site-brand,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-brand-word,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-brand-word,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-brand-word small,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-brand-word small,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-primary-nav a,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-primary-nav a {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-mobile-nav-toggle,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-mobile-nav-toggle,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-chrome-language summary,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-chrome-language summary,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-header-search-button,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-header-search-button,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-theme-toggle,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-theme-toggle {
	background-color: var(--rd-site-surface-soft) !important;
	background-image: none !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-primary-nav,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-primary-nav,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-chrome-language-menu,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-chrome-language-menu,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-search-panel,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-search-panel {
	background: var(--rd-site-surface) !important;
	background-color: var(--rd-site-surface) !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-primary-nav a:hover,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-primary-nav a:hover,
html[data-rd-theme="dark"] body.rd-managed-page .rd-site.rd-site-chrome.rd-site-chrome-header .rd-chrome-language-menu a:hover,
html[data-rd-theme="dark"] body.rd-site-chrome-active .rd-site.rd-site-chrome.rd-site-chrome-header .rd-chrome-language-menu a:hover {
	background: #243b57 !important;
	color: #d8e9ff !important;
}

/* Standalone SEO/FAQ sections: these are sometimes emitted outside .rd-site. */
html[data-rd-theme="dark"] body .rd-tool-seo-copy,
html[data-rd-theme="dark"] body .rd-faq-block,
html[data-rd-theme="dark"] body .rd-emoji-seo-copy,
html[data-rd-theme="dark"] body .rd-related-searches,
html[data-rd-theme="dark"] body .rd-home-disclaimer,
html[data-rd-theme="dark"] body .rd-related-tools,
html[data-rd-theme="dark"] body .rd-timer-seo__inner,
html[data-rd-theme="dark"] body .rd-timer-seo__faq,
html[data-rd-theme="dark"] body .rd-timer-seo__related {
	background: var(--rd-site-surface) !important;
	background-color: var(--rd-site-surface) !important;
	background-image: none !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
	box-shadow: 0 8px 26px var(--rd-site-shadow) !important;
}

/* SEO/FAQ typography outside the plugin wrapper. */
html[data-rd-theme="dark"] body .rd-tool-seo-copy h1,
html[data-rd-theme="dark"] body .rd-tool-seo-copy h2,
html[data-rd-theme="dark"] body .rd-tool-seo-copy h3,
html[data-rd-theme="dark"] body .rd-tool-seo-copy h4,
html[data-rd-theme="dark"] body .rd-tool-seo-copy strong,
html[data-rd-theme="dark"] body .rd-faq-block h1,
html[data-rd-theme="dark"] body .rd-faq-block h2,
html[data-rd-theme="dark"] body .rd-faq-block h3,
html[data-rd-theme="dark"] body .rd-faq-block strong,
html[data-rd-theme="dark"] body .rd-emoji-seo-copy h1,
html[data-rd-theme="dark"] body .rd-emoji-seo-copy h2,
html[data-rd-theme="dark"] body .rd-emoji-seo-copy h3,
html[data-rd-theme="dark"] body .rd-timer-seo__inner h1,
html[data-rd-theme="dark"] body .rd-timer-seo__inner h2,
html[data-rd-theme="dark"] body .rd-timer-seo__inner h3,
html[data-rd-theme="dark"] body .rd-timer-seo__inner strong {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] body .rd-tool-seo-copy p,
html[data-rd-theme="dark"] body .rd-tool-seo-copy li,
html[data-rd-theme="dark"] body .rd-tool-seo-copy small,
html[data-rd-theme="dark"] body .rd-faq-block p,
html[data-rd-theme="dark"] body .rd-faq-block li,
html[data-rd-theme="dark"] body .rd-emoji-seo-copy p,
html[data-rd-theme="dark"] body .rd-emoji-seo-copy li,
html[data-rd-theme="dark"] body .rd-related-searches p,
html[data-rd-theme="dark"] body .rd-home-disclaimer p,
html[data-rd-theme="dark"] body .rd-timer-seo__inner p,
html[data-rd-theme="dark"] body .rd-timer-seo__inner li,
html[data-rd-theme="dark"] body .rd-timer-seo__faq p,
html[data-rd-theme="dark"] body .rd-timer-seo__related p {
	color: var(--rd-site-muted) !important;
}

html[data-rd-theme="dark"] body .rd-tool-seo-copy a,
html[data-rd-theme="dark"] body .rd-faq-block a,
html[data-rd-theme="dark"] body .rd-emoji-seo-copy a,
html[data-rd-theme="dark"] body .rd-timer-seo__inner a {
	color: var(--rd-site-link) !important;
}

html[data-rd-theme="dark"] body .rd-tool-seo-copy details,
html[data-rd-theme="dark"] body .rd-faq-block details,
html[data-rd-theme="dark"] body .rd-emoji-seo-copy details,
html[data-rd-theme="dark"] body .rd-timer-seo__faq details {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--rd-site-text) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] body .rd-tool-seo-copy summary,
html[data-rd-theme="dark"] body .rd-faq-block summary,
html[data-rd-theme="dark"] body .rd-emoji-seo-copy summary,
html[data-rd-theme="dark"] body .rd-timer-seo__faq summary {
	background: transparent !important;
	color: var(--rd-site-text) !important;
}

/* Soft cards inside the standalone SEO content section. */
html[data-rd-theme="dark"] body .rd-timer-seo__card,
html[data-rd-theme="dark"] body .rd-timer-seo__use,
html[data-rd-theme="dark"] body .rd-timer-seo__related-grid a,
html[data-rd-theme="dark"] body .rd-related-tools a {
	background: var(--rd-site-surface-soft) !important;
	background-color: var(--rd-site-surface-soft) !important;
	color: var(--rd-site-link) !important;
	border-color: var(--rd-site-border) !important;
}

html[data-rd-theme="dark"] body .rd-timer-seo__time {
	color: var(--rd-site-primary) !important;
}

/* Standalone section heading and general text colours. */
html[data-rd-theme="dark"] body .rd-related-tools h1,
html[data-rd-theme="dark"] body .rd-related-tools h2,
html[data-rd-theme="dark"] body .rd-related-tools h3,
html[data-rd-theme="dark"] body .rd-related-tools strong,
html[data-rd-theme="dark"] body .rd-related-searches h1,
html[data-rd-theme="dark"] body .rd-related-searches h2,
html[data-rd-theme="dark"] body .rd-related-searches h3 {
	color: var(--rd-site-text) !important;
}

/* Elementor containers/widgets: override inline light fills without
   forcing image backgrounds or changing layout. */
html[data-rd-theme="dark"] body .elementor-element.e-con,
html[data-rd-theme="dark"] body .elementor-widget-container,
html[data-rd-theme="dark"] body .elementor-widget-text-editor,
html[data-rd-theme="dark"] body .elementor-widget-heading {
	color: var(--rd-site-text) !important;
}

html[data-rd-theme="dark"] body .elementor-widget-text-editor p,
html[data-rd-theme="dark"] body .elementor-widget-text-editor li {
	color: var(--rd-site-muted) !important;
}

/* Keep dark-mode form controls consistent on every viewport. */
html[data-rd-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html[data-rd-theme="dark"] body textarea,
html[data-rd-theme="dark"] body select {
	color-scheme: dark;
}

/* Do not alter the clock widget's independent card theme or inline clock colours. */
html[data-rd-theme="dark"] body .rd-clock-card {
	color: var(--rd-clock-text, #e3f2fd);
	background-color: var(--rd-clock-bg, #101827);
}
