/* Light/dark palettes and selected editorial night sections. */
html[data-svhq-theme="light"] { color-scheme: light; }
body.svhq-editorial {
 --svhq-night: radial-gradient(ellipse at 85% 0%, #193553, transparent 55%), #0c1520;
}
body.svhq-editorial #main_header nav.top_menu > ul > li > a {
 font-size: 14px; line-height: 1.3; min-height: 44px; margin-inline: 8px; font-weight: 650;
}
body.svhq-editorial #main_header nav.top_menu > ul { flex-wrap: nowrap; white-space: nowrap; }

@media (min-width: 1201px) {
 body.svhq-editorial #main_header .logo-section { min-height: 84px; max-height: 92px; }
 body.svhq-editorial #main_header :is(.logo img,.logo_image img,.rh_logo img,.header-logo img,.logo_area img,.re_logo_inmenu img,header img.custom-logo) { max-width: 290px; max-height: 58px; }
}

@media (min-width: 1024px) and (max-width: 1200px) {
 body.svhq-editorial #main_header :is(.logo img,.logo_image img,.rh_logo img,.header-logo img,.logo_area img,.re_logo_inmenu img,header img.custom-logo) { max-width: 245px; max-height: 52px; }
}

/* Reuse the footer palette at deliberate intervals, retaining quiet reading areas. */
body.svhq-editorial :is(.svhq-section--categories, #comparisons, .svhq-newsletter, .svhq-related-posts-section) {
 --svhq-ink: #eaf1fb; --svhq-muted: #b9c9da; --svhq-line: #354d64; --svhq-accent: #9ac6ff;
 background: var(--svhq-night); color: #eaf1fb; border-color: #354d64;
}
body.svhq-editorial :is(.svhq-section--categories, #comparisons, .svhq-newsletter, .svhq-related-posts-section)
 :is(.svhq-section-header h2, .svhq-section-header p, .svhq-post-card h3 a, .svhq-post-card__body > p, .svhq-post-card__label, .svhq-post-card__link, .svhq-eyebrow, .svhq-newsletter-privacy) { color: #c5d9ee; }
body.svhq-editorial :is(.svhq-section--categories, #comparisons, .svhq-newsletter, .svhq-related-posts-section)
 :is(.svhq-section-header h2, .svhq-post-card h3 a) { color: #f1f6fc; }
body.svhq-editorial :is(#comparisons, .svhq-related-posts-section) .svhq-post-card__media { background: #edf2f7; border-color: #40576d; }
body.svhq-editorial .svhq-section--categories .svhq-category-card { background: #152638; border-color: #3c536a; }
body.svhq-editorial .svhq-section--categories .svhq-category-card > span { color: #f1f6fc; background: #142536; }
body.svhq-editorial .svhq-newsletter :is(h2, p) { color: #eaf1fb; opacity: 1; }
body.svhq-editorial .svhq-newsletter__form { background: #142638; border-color: #4a627b; }
body.svhq-editorial .svhq-home .svhq-newsletter form input[type="email"] { color: #20384e; background: #fff; }
body.svhq-editorial .svhq-newsletter button[type="submit"] { background: #d9e9ff; color: #142c46 !important; box-shadow: none; }
body.svhq-editorial .svhq-newsletter .svhq-form-message { color: #eaf1fb; }
body.svhq-editorial :is(#comparisons, .svhq-related-posts-section) .svhq-visual-placeholder { color: #29455e; }

/* Article repairs: readable headings, bounded media/tables, and clear contents hierarchy. */
body.svhq-editorial.single-post .svhq-article-content { overflow-wrap: anywhere; }
body.svhq-editorial.single-post .svhq-article-content > h2:first-child { margin-top: 0; }
body.svhq-editorial.single-post .svhq-article-content :is(figure, .wp-block-table, .wp-block-image) { max-width: 100%; margin-inline: 0; }
body.svhq-editorial.single-post .svhq-article-content :is(.alignwide, .alignfull) { width: 100%; max-width: 100%; left: auto; right: auto; margin-inline: 0; }
body.svhq-editorial.single-post .svhq-article-content .wp-block-table { overflow-x: auto; scrollbar-width: thin; }
body.svhq-editorial.single-post .svhq-article-content .wp-block-table table { display: table; min-width: 100%; overflow: visible; }
body.svhq-editorial.single-post .svhq-article-content :is(iframe, video) { max-width: 100%; }
body.svhq-editorial.single-post .svhq-article-content blockquote { margin-inline: 0; border-left: 3px solid #6b96c6; padding: 18px 24px; background: #f2f6fb; border-radius: 0 12px 12px 0; }
body.svhq-editorial.single-post .svhq-single-sidebar.svhq-sidebar-tall { position: static; max-height: none; overflow: visible; }
body.svhq-editorial .svhq-toc ol { scrollbar-gutter: stable; }
body.svhq-editorial .svhq-toc a { font-size: 13px; }
body.svhq-editorial #slide-menu-mobile a { font-size: 17px; min-height: 48px; }

@media (max-width: 1200px) and (min-width: 1025px) {
 body.svhq-editorial #main_header nav.top_menu > ul > li > a { font-size: 14px; margin-inline: 7px; }
}



/* Search and display controls form a separate utility group. */
body.svhq-editorial #main_header .header-actions-logo > .rh-flex-center-align { gap: 12px; }
body.svhq-editorial #main_header .header-actions-logo { margin-left: 20px; }
body.svhq-editorial #mobile-menu-icons { display: flex; align-items: center; gap: 8px; }
body.svhq-editorial .svhq-home .svhq-search { gap: 12px; padding: 0; border: 0; background: transparent; box-shadow: none; align-items: stretch; }
body.svhq-editorial .svhq-home .svhq-search input { flex: 1 1 0; width: 100%; min-width: 0; box-sizing: border-box; border-radius: 10px; }
body.svhq-editorial .svhq-home .svhq-search button { position: static; flex: 0 0 auto; border-radius: 10px; margin: 0; }
body.svhq-editorial .svhq-home-answers { max-width: 850px; }
body.svhq-editorial .svhq-home-answers article { padding-block: 24px; border-bottom: 1px solid var(--svhq-line); color: var(--svhq-ink); }
body.svhq-editorial .svhq-home-answers h3 { font-size: 21px; margin-bottom: 12px; }
body.svhq-editorial .svhq-home-answers p { margin: 0; color: var(--svhq-muted); }
body.svhq-editorial .svhq-affiliate-note { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--svhq-muted); }
