/* Shared Light/Dark Theme Tokens & Overrides for mandooyat.com */

/* =========================================================
   1. Theme Toggle Button Styles (Light & Dark)
   ========================================================= */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.theme-toggle-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.theme-toggle-icon {
  font-size: 0.98rem;
  line-height: 1;
}

.theme-toggle-btn.is-icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
}

.theme-toggle-btn.is-hero-glass {
  padding: 6px 12px;
  min-height: 34px;
  border: 1px solid rgba(255, 248, 232, 0.24);
  border-radius: 12px;
  background: rgba(255, 252, 245, 0.14);
  color: #fffdf8;
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.theme-toggle-btn.is-hero-glass:hover {
  background: rgba(255, 252, 245, 0.24);
  border-color: rgba(255, 248, 232, 0.4);
  color: #ffffff;
}

.theme-toggle-btn.theme-toggle-floating {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 9500;
  padding: 9px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

@media (max-width: 768px) {
  .theme-toggle-btn:not(.is-hero-glass):not(.theme-toggle-floating) .theme-toggle-label {
    display: none;
  }
  .theme-toggle-btn:not(.is-hero-glass):not(.theme-toggle-floating) {
    padding: 8px 10px;
  }
}

/* Keep navbar pill labels single-line cleanly across viewports */
.navbar .nav-links {
  gap: 8px;
}

.navbar .nav-btn {
  white-space: nowrap;
  padding: 7px 13px;
  font-size: 0.86rem;
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 0.94rem !important;
  }
  .nav-mobile-actions {
    gap: 6px !important;
  }
  .theme-toggle-btn.is-icon-only {
    width: 34px;
    height: 34px;
  }
}

html[data-theme="dark"] .theme-toggle-btn:not(.is-hero-glass) {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

html[data-theme="dark"] .theme-toggle-btn:not(.is-hero-glass):hover {
  background: #273549;
  border-color: #475569;
  color: #ffffff;
}

html[data-theme="dark"] .theme-toggle-btn.theme-toggle-floating {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.52);
}

/* =========================================================
   2. Dark Mode CSS Custom Properties (Slate Default & Editorial)
   ========================================================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #131c2e;
  --surface-strong: #182338;
  --surface-soft: #1b273d;
  --card-bg: #131c2e;
  --border: #26344b;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.3);
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --dark: #f1f5f9;
  --dark-light: #e2e8f0;
  --primary-soft: rgba(255, 71, 87, 0.17);
  --accent-soft: rgba(245, 158, 11, 0.17);
  --good-bg: rgba(16, 185, 129, 0.16);
  --good-ink: #6ee7b7;
  --warn-bg: rgba(245, 158, 11, 0.16);
  --warn-ink: #fcd34d;
  --warn-border: rgba(245, 158, 11, 0.38);
  --brand: #0f766e;
  --brand-2: #0d9488;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 18px 36px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 24px 54px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"][data-palette="editorial"] {
  --bg: #12110f;
  --surface: rgba(28, 27, 25, 0.92);
  --surface-strong: #23211d;
  --surface-soft: #2b2823;
  --line: rgba(245, 235, 220, 0.12);
  --line-strong: rgba(245, 235, 220, 0.22);
  --ink: #f4efe6;
  --muted: #afa698;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-warm: #f59e0b;
  --accent-soft: rgba(217, 119, 6, 0.18);
  --danger: #f87171;
  --good: #34d399;
  --good-soft: rgba(16, 185, 129, 0.16);
  --warn: #fbbf24;
  --warm-soft: rgba(245, 158, 11, 0.17);
  --shadow-soft: 0 18px 38px rgba(0, 0, 0, 0.46);
  --shadow-card: 0 24px 52px rgba(0, 0, 0, 0.52);
}

html[data-theme="dark"] body {
  background-color: var(--bg);
  color: var(--text-main);
}

/* Editorial Warm-Dark Body Backdrops (productList & benchCheck) */
html[data-theme="dark"][data-palette="editorial"] body {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 22%),
    var(--bg);
  color: var(--ink);
}

/* =========================================================
   3. Slate Portal Pages (index, recommend, blog_*, best_laptops, 404)
   ========================================================= */
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .topbar {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .brand-tag,
html[data-theme="dark"] .theme-tag-badge {
  background: #1e293b;
  color: #cbd5e1;
}

html[data-theme="dark"] .nav-btn-outline {
  background: #162033;
  color: #e2e8f0;
  border-color: var(--border);
}

html[data-theme="dark"] .nav-btn-outline:hover {
  background: #1e293b;
  border-color: var(--primary);
  color: #ff8590;
}

html[data-theme="dark"] .hero-badge,
html[data-theme="dark"] .blog-hero-badge {
  color: #ff8590;
}

/* index.html cards & sections */
html[data-theme="dark"] .hero-stats-card {
  background: rgba(19, 28, 46, 0.88);
  border-color: var(--border);
}

html[data-theme="dark"] .stat-pill {
  background: #182338;
  border-color: var(--border);
}

html[data-theme="dark"] .stat-pill:hover {
  border-color: #3b4f70;
}

html[data-theme="dark"] .stat-icon.red,
html[data-theme="dark"] .icon-red,
html[data-theme="dark"] .mobile-menu-item .item-icon.red {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

html[data-theme="dark"] .stat-icon.blue,
html[data-theme="dark"] .icon-blue,
html[data-theme="dark"] .mobile-menu-item .item-icon.blue {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

html[data-theme="dark"] .stat-icon.green,
html[data-theme="dark"] .icon-green,
html[data-theme="dark"] .mobile-menu-item .item-icon.green {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

html[data-theme="dark"] .icon-amber,
html[data-theme="dark"] .mobile-menu-item .item-icon.amber {
  background: rgba(245, 158, 11, 0.17);
  color: #fcd34d;
}

html[data-theme="dark"] .icon-purple,
html[data-theme="dark"] .mobile-menu-item .item-icon.purple {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
}

html[data-theme="dark"] .badge-hot,
html[data-theme="dark"] .mobile-menu-item .item-badge.hot {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

html[data-theme="dark"] .badge-data {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

html[data-theme="dark"] .badge-green {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html[data-theme="dark"] .badge-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

html[data-theme="dark"] .badge-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .extensions-section,
html[data-theme="dark"] .philosophy-section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .theme-tag-card {
  background: var(--card-bg);
  border-color: var(--border);
}

html[data-theme="dark"] .service-card.featured {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.18) 0%, #131c2e 100%) !important;
  border-color: #0284c7 !important;
}

html[data-theme="dark"] .service-card:hover {
  border-color: #3b4f70;
}

html[data-theme="dark"] .card-footer {
  border-top-color: var(--border);
}

html[data-theme="dark"] .ext-card,
html[data-theme="dark"] .faq-item {
  background: var(--surface-soft);
  border-color: var(--border);
}

html[data-theme="dark"] .ext-card:hover,
html[data-theme="dark"] .faq-item[open] {
  background: #172338;
  border-color: #3b4f70;
}

html[data-theme="dark"] .faq-answer {
  border-top-color: var(--border);
}

html[data-theme="dark"] .affiliate-notice {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

html[data-theme="dark"] .btn-dark {
  background: #2563eb;
  color: #ffffff;
}

html[data-theme="dark"] .btn-dark:hover {
  background: #1d4ed8;
}

/* Business inquiry inline white section on index.html */
html[data-theme="dark"] section[style*="background:#ffffff"] {
  background: var(--card-bg) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .theme-tag-card [style*="background:#fff1f2"] {
  background: rgba(244, 63, 94, 0.16) !important;
}
html[data-theme="dark"] .theme-tag-card [style*="background:#e6fffa"] {
  background: rgba(20, 184, 166, 0.16) !important;
}
html[data-theme="dark"] .theme-tag-card [style*="background:#ebf5ff"] {
  background: rgba(59, 130, 246, 0.16) !important;
}
html[data-theme="dark"] .theme-tag-card [style*="background:#fef9e7"],
html[data-theme="dark"] .theme-tag-card [style*="background:#fef3c7"] {
  background: rgba(245, 158, 11, 0.16) !important;
}
html[data-theme="dark"] .theme-tag-card [style*="background:#f3f0ff"] {
  background: rgba(139, 92, 246, 0.18) !important;
}
html[data-theme="dark"] .theme-tag-card [style*="background:#f1f5f9"] {
  background: rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .theme-tag-badge[style*="background:#ffe4e6"] {
  background: rgba(225, 29, 72, 0.24) !important;
  color: #fda4af !important;
}
html[data-theme="dark"] .theme-tag-badge[style*="background:#ccfbf1"] {
  background: rgba(13, 148, 136, 0.24) !important;
  color: #5eead4 !important;
}
html[data-theme="dark"] .theme-tag-badge[style*="background:#fee2e2"] {
  background: rgba(239, 68, 68, 0.24) !important;
  color: #fca5a5 !important;
}

/* Mobile drawer & bottom bar (index.html) */
html[data-theme="dark"] .nav-toggle-btn,
html[data-theme="dark"] .mobile-menu-close {
  background: #1e293b;
  color: #f1f5f9;
  border-color: var(--border);
}

html[data-theme="dark"] .mobile-menu-drawer,
html[data-theme="dark"] .mobile-menu-header {
  background: #111827;
  border-color: var(--border);
}

html[data-theme="dark"] .mobile-menu-item {
  background: #1a2438;
  border-color: var(--border);
}

html[data-theme="dark"] .mobile-menu-item:active {
  background: #23314c;
}

html[data-theme="dark"] .mobile-bottom-bar {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: var(--border);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}

/* Footer across slate pages */
html[data-theme="dark"] footer {
  background: #0d1424;
  border-top-color: var(--border);
  color: var(--text-muted);
}

/* recommend.html */
html[data-theme="dark"] .wizard-card,
html[data-theme="dark"] .option-card,
html[data-theme="dark"] .btn-prev,
html[data-theme="dark"] .summary-pill,
html[data-theme="dark"] .btn-result-copy,
html[data-theme="dark"] .alt-card {
  background: var(--card-bg);
  border-color: var(--border);
  color: var(--text-main);
}

html[data-theme="dark"] .option-card:hover {
  background: #19243a;
  border-color: #475569;
}

html[data-theme="dark"] .option-card.selected {
  background: rgba(255, 71, 87, 0.14);
  border-color: var(--primary);
}

html[data-theme="dark"] .wizard-progress-bar,
html[data-theme="dark"] .option-badge {
  background: #1e293b;
  color: #cbd5e1;
}

html[data-theme="dark"] .option-card.selected .option-badge {
  background: rgba(255, 71, 87, 0.25);
  color: #fda4af;
}

html[data-theme="dark"] .wizard-steps-header,
html[data-theme="dark"] .wizard-footer,
html[data-theme="dark"] .summary-card {
  background: #172136;
  border-color: var(--border);
}

html[data-theme="dark"] .btn-prev:hover:not(:disabled),
html[data-theme="dark"] .btn-result-copy:hover {
  background: #1e293b;
  border-color: #475569;
}

html[data-theme="dark"] .alt-card:hover {
  background: #182640;
  border-color: #3b82f6;
}

html[data-theme="dark"] .alt-icon-box {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

html[data-theme="dark"] .alt-header {
  color: #f1f5f9;
}

html[data-theme="dark"] .alt-title {
  color: #f8fafc;
}

html[data-theme="dark"] .alt-desc,
html[data-theme="dark"] .alt-sub,
html[data-theme="dark"] .result-loading-box p {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .alt-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html[data-theme="dark"] .alt-btn-arrow,
html[data-theme="dark"] .btn-restart-quiz-alt {
  background: #1e293b;
  border-color: var(--border);
  color: #cbd5e1;
}

/* best_laptops.html */
html[data-theme="dark"] .brand-link {
  color: #5eead4;
}

html[data-theme="dark"] .nav-pill {
  background: #172236;
  border-color: var(--border);
  color: #e2e8f0;
}

html[data-theme="dark"] .nav-pill:hover {
  background: #1e293b;
  border-color: #3b4f70;
}

html[data-theme="dark"] .nav-pill.primary {
  background: linear-gradient(135deg, #0d5c63, #0f766e);
  color: #ffffff;
  border-color: transparent;
}

html[data-theme="dark"] .hero-card {
  background: linear-gradient(135deg, #131c2e 0%, #0f2930 100%);
  border-color: rgba(20, 184, 166, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .badge-chip {
  background: rgba(20, 184, 166, 0.18);
  color: #5eead4;
}

html[data-theme="dark"] .update-chip,
html[data-theme="dark"] .stat-box,
html[data-theme="dark"] .segment-tab,
html[data-theme="dark"] .section-card,
html[data-theme="dark"] .btn-sm,
html[data-theme="dark"] .laptop-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

html[data-theme="dark"] .segment-tab.active {
  background: var(--brand);
  color: #ffffff;
  border-color: transparent;
}

html[data-theme="dark"] .ad-disclosure {
  background: rgba(19, 28, 46, 0.85);
  border-color: var(--border);
  color: var(--muted);
}

html[data-theme="dark"] .geo-table th {
  background: #1a2438;
  color: #e2e8f0;
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .geo-table td {
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .geo-table tbody tr:hover {
  background: #172338;
}

html[data-theme="dark"] .rank-badge {
  background: #1e293b;
  color: #cbd5e1;
}

html[data-theme="dark"] .price-index-pill {
  background: rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
}

html[data-theme="dark"] .site-tag {
  background: #1e293b;
  color: #cbd5e1;
}

html[data-theme="dark"] .breadcrumbs a,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .stat-box strong {
  color: #5eead4;
}

html[data-theme="dark"] .geo-table [style*="color:#0f766e"],
html[data-theme="dark"] .laptop-card [style*="color:#0f766e"] {
  color: #2dd4bf !important;
}

html[data-theme="dark"] .geo-table [style*="color:#475569"],
html[data-theme="dark"] .geo-table [style*="color:#64748b"],
html[data-theme="dark"] .laptop-card [style*="color:#475569"],
html[data-theme="dark"] .laptop-card [style*="color:#64748b"],
html[data-theme="dark"] main p[style*="color:#475569"],
html[data-theme="dark"] .section-card span[style*="color:#64748b"] {
  color: #94a3b8 !important;
}

/* Preserve soft bright backdrop behind shopping product thumbnails */
html[data-theme="dark"] .table-thumb,
html[data-theme="dark"] .card-thumb {
  background: #f1f5f9;
  border-color: #334155;
}

/* blog_list.html & blog_detail.html */
html[data-theme="dark"] .blog-search-form,
html[data-theme="dark"] .cat-btn,
html[data-theme="dark"] .empty-state-card,
html[data-theme="dark"] .page-btn,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .sidebar-widget,
html[data-theme="dark"] .article-header,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .author-card,
html[data-theme="dark"] .nav-card,
html[data-theme="dark"] .cta-btn-secondary {
  background: var(--card-bg);
  border-color: var(--border);
  color: var(--text-main);
}

html[data-theme="dark"] .blog-search-btn {
  background: #2563eb;
  color: #ffffff;
}

html[data-theme="dark"] .blog-search-btn:hover {
  background: var(--primary);
}

html[data-theme="dark"] .cat-btn:hover,
html[data-theme="dark"] .cat-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

html[data-theme="dark"] .page-btn:hover {
  border-color: var(--primary);
  color: #ff8590;
}

html[data-theme="dark"] .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

html[data-theme="dark"] .post-card:hover,
html[data-theme="dark"] .nav-card:hover {
  border-color: #3b4f70;
}

html[data-theme="dark"] .post-footer {
  border-top-color: var(--border);
}

html[data-theme="dark"] .post-thumb-wrap {
  background: #1e293b;
}

html[data-theme="dark"] .sidebar-widget[style*="linear-gradient"] {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.22) 0%, #131c2e 100%) !important;
  border-color: #0284c7 !important;
}

html[data-theme="dark"] .widget-btn-primary {
  background: #0284c7;
  color: #ffffff;
}

html[data-theme="dark"] .widget-btn[style*="background:#1e272e"] {
  background: #26344b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .tag-badge {
  background: #1e293b;
  color: #cbd5e1;
}

html[data-theme="dark"] .article-meta-row,
html[data-theme="dark"] .breadcrumbs {
  color: #94a3b8;
}

html[data-theme="dark"] .article-body {
  color: #cbd5e1;
}

html[data-theme="dark"] .article-body h2 {
  border-bottom-color: var(--border);
  color: #f8fafc;
}

html[data-theme="dark"] .article-body h3,
html[data-theme="dark"] .article-body strong,
html[data-theme="dark"] .article-body th {
  color: #f1f5f9;
}

html[data-theme="dark"] .article-body blockquote {
  background: #172236;
  color: #cbd5e1;
}

html[data-theme="dark"] .article-body code {
  background: #1e293b;
  color: #fda4af;
}

html[data-theme="dark"] .article-body th {
  background: #1a263d;
  border-color: var(--border);
}

html[data-theme="dark"] .article-body td {
  border-color: var(--border);
}

html[data-theme="dark"] .article-body tr:nth-child(even) td {
  background: #172134;
}

html[data-theme="dark"] .article-cta-box {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.14) 0%, rgba(249, 115, 22, 0.12) 100%);
  border-color: rgba(251, 146, 60, 0.35);
}

html[data-theme="dark"] .cta-btn-secondary:hover {
  background: #1e293b;
}

html[data-theme="dark"] .btn-back-list {
  background: #1e293b;
  border: 1px solid var(--border);
  color: #f8fafc;
}

html[data-theme="dark"] .btn-back-list:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* 404.html */
html[data-theme="dark"] .error-card {
  background: var(--card-bg);
  border-color: var(--border);
}

html[data-theme="dark"] .error-desc {
  color: #cbd5e1;
}

html[data-theme="dark"] .btn-outline {
  background: #172236;
  color: #e2e8f0;
  border-color: var(--border);
}

html[data-theme="dark"] .error-card div[style*="background:#f8fafc"] {
  background: #172236 !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .error-card a[style*="background:#ffffff"] {
  background: #131c2e !important;
  border-color: var(--border) !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .error-card [style*="color:#0f766e"] {
  color: #2dd4bf !important;
}

/* =========================================================
   4. Editorial Pages: productList.html & cpCssNote-20240724.css
   ========================================================= */
html[data-theme="dark"][data-palette="editorial"] .price-input-wrap,
html[data-theme="dark"][data-palette="editorial"] .price-slider-inline,
html[data-theme="dark"][data-palette="editorial"] .search-top input[type="text"],
html[data-theme="dark"][data-palette="editorial"] .search-bottom select,
html[data-theme="dark"][data-palette="editorial"] .search-bottom input[type="number"],
html[data-theme="dark"][data-palette="editorial"] .weight-dropdown-trigger,
html[data-theme="dark"][data-palette="editorial"] .search-toggle {
  background: #181715;
  border-color: var(--line-strong);
  color: var(--ink);
}

html[data-theme="dark"][data-palette="editorial"] .search-top input[type="text"]::placeholder,
html[data-theme="dark"][data-palette="editorial"] .price-input-wrap input::placeholder {
  color: #847d72;
}

html[data-theme="dark"][data-palette="editorial"] .weight-dropdown-menu {
  background: rgba(28, 27, 25, 0.98);
  border-color: var(--line-strong);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"][data-palette="editorial"] .weight-option + .weight-option {
  border-top-color: var(--line);
}

html[data-theme="dark"][data-palette="editorial"] .slider-track-bg {
  background: rgba(245, 235, 220, 0.14);
}

html[data-theme="dark"][data-palette="editorial"] .dual-range-wrap input[type="range"]::-webkit-slider-thumb,
html[data-theme="dark"][data-palette="editorial"] .dual-range-wrap input[type="range"]::-moz-range-thumb {
  background: #23211d;
  border-color: #2dd4bf;
}

html[data-theme="dark"][data-palette="editorial"] .slider-inline-title,
html[data-theme="dark"][data-palette="editorial"] .search-title-compact i {
  color: #2dd4bf !important;
}

html[data-theme="dark"][data-palette="editorial"] .min-badge {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
}

html[data-theme="dark"][data-palette="editorial"] .max-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.38);
}

html[data-theme="dark"][data-palette="editorial"] .price-kor-pill {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.3);
}

html[data-theme="dark"][data-palette="editorial"] .search-reset {
  background: var(--accent-soft);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

html[data-theme="dark"][data-palette="editorial"] .results-chip {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(45, 212, 191, 0.26);
  color: #5eead4;
}

html[data-theme="dark"][data-palette="editorial"] .results-compare-btn,
html[data-theme="dark"][data-palette="editorial"] .compare-toggle-btn {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(45, 212, 191, 0.34);
  color: #5eead4;
}

html[data-theme="dark"][data-palette="editorial"] .results-compare-btn:hover,
html[data-theme="dark"][data-palette="editorial"] .compare-toggle-btn:hover {
  background: rgba(20, 184, 166, 0.24);
  border-color: #2dd4bf;
}

html[data-theme="dark"][data-palette="editorial"] .results-compare-btn.has-items,
html[data-theme="dark"][data-palette="editorial"] .compare-toggle-btn.is-compared {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #ffffff;
  border-color: #14b8a6;
}

html[data-theme="dark"][data-palette="editorial"] .results-compare-count {
  background: rgba(45, 212, 191, 0.18);
  color: #5eead4;
}

html[data-theme="dark"][data-palette="editorial"] .pagination-inner {
  background: rgba(28, 27, 25, 0.88);
  border-color: var(--line);
}

html[data-theme="dark"][data-palette="editorial"] .pagination-link {
  background: #23211d;
  color: #5eead4;
  border: 1px solid var(--line);
}

html[data-theme="dark"][data-palette="editorial"] .product-card,
html[data-theme="dark"][data-palette="editorial"] .phone_slide {
  background: rgba(28, 27, 25, 0.94);
  border-color: var(--line);
}

html[data-theme="dark"][data-palette="editorial"] .product-card:hover {
  border-color: rgba(45, 212, 191, 0.34);
}

html[data-theme="dark"][data-palette="editorial"] .product-card.is-compared {
  background: linear-gradient(180deg, #1f2927 0%, #182321 100%) !important;
  border-color: #14b8a6 !important;
}

/* Keep shopping image canvas bright/neutral */
html[data-theme="dark"][data-palette="editorial"] .phone_img {
  background: linear-gradient(135deg, #f3efe6, #f8fafc);
}

html[data-theme="dark"][data-palette="editorial"] .phone_name,
html[data-theme="dark"][data-palette="editorial"] .specification,
html[data-theme="dark"][data-palette="editorial"] .origPrice,
html[data-theme="dark"][data-palette="editorial"] .cpPrice,
html[data-theme="dark"][data-palette="editorial"] .cardDiscountPercent,
html[data-theme="dark"][data-palette="editorial"] .refer,
html[data-theme="dark"][data-palette="editorial"] .coupon {
  color: var(--ink);
}

html[data-theme="dark"][data-palette="editorial"] .price {
  color: var(--muted);
}

html[data-theme="dark"][data-palette="editorial"] .discPrice,
html[data-theme="dark"][data-palette="editorial"] .sale_price {
  color: #fb7185;
}

html[data-theme="dark"][data-palette="editorial"] .pricePerSpec {
  color: #e879f9;
}

html[data-theme="dark"][data-palette="editorial"] .lowestPrice {
  color: #d6cfc3;
}

html[data-theme="dark"][data-palette="editorial"] .product-price-panel {
  background: var(--surface-soft);
  border-color: var(--line);
}

html[data-theme="dark"][data-palette="editorial"] .recommScore {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.28), rgba(245, 158, 11, 0.22));
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

html[data-theme="dark"][data-palette="editorial"] .metric-chip {
  background: #23211d;
  border-color: var(--line);
  color: #d6cfc3;
}

html[data-theme="dark"][data-palette="editorial"] .returnProduct {
  border-top-color: var(--line);
  color: #cbd5e1;
}

html[data-theme="dark"][data-palette="editorial"] .empty-state {
  background: rgba(28, 27, 25, 0.85);
  border-color: var(--line-strong);
  color: var(--muted);
}

html[data-theme="dark"][data-palette="editorial"] .empty-state strong {
  color: var(--ink) !important;
}

html[data-theme="dark"][data-palette="editorial"] .empty-state p {
  color: var(--muted) !important;
}

html[data-theme="dark"][data-palette="editorial"] .empty-state .btn-filter-tag[style*="#f8fafc"],
html[data-theme="dark"][data-palette="editorial"] .empty-state .btn-filter-tag[style*="#f1f5f9"],
html[data-theme="dark"][data-palette="editorial"] .empty-state .btn-filter-tag[style*="#eff6ff"] {
  background: #23211d !important;
  color: #e2e8f0 !important;
  border-color: var(--line-strong) !important;
}

/* Compare Dock & Modal (productList.html) */
html[data-theme="dark"][data-palette="editorial"] .compare-dock {
  background: rgba(22, 21, 19, 0.96);
  border-top-color: rgba(45, 212, 191, 0.28);
}

html[data-theme="dark"][data-palette="editorial"] .compare-dock-title,
html[data-theme="dark"][data-palette="editorial"] .compare-slot-title,
html[data-theme="dark"][data-palette="editorial"] .compare-modal-title,
html[data-theme="dark"][data-palette="editorial"] .compare-winner-product,
html[data-theme="dark"][data-palette="editorial"] .compare-corner-title,
html[data-theme="dark"][data-palette="editorial"] .compare-col-price,
html[data-theme="dark"][data-palette="editorial"] .compare-col-title,
html[data-theme="dark"][data-palette="editorial"] .compare-section-title,
html[data-theme="dark"][data-palette="editorial"] .compare-cell-val {
  color: var(--ink);
}

html[data-theme="dark"][data-palette="editorial"] .compare-dock-hint,
html[data-theme="dark"][data-palette="editorial"] .compare-modal-sub,
html[data-theme="dark"][data-palette="editorial"] .compare-corner-note,
html[data-theme="dark"][data-palette="editorial"] .compare-section-sub,
html[data-theme="dark"][data-palette="editorial"] .compare-row-hint,
html[data-theme="dark"][data-palette="editorial"] .compare-cell-sub {
  color: var(--muted);
}

html[data-theme="dark"][data-palette="editorial"] .compare-dock-badge,
html[data-theme="dark"][data-palette="editorial"] .compare-winner-info {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
}

html[data-theme="dark"][data-palette="editorial"] .compare-slot-sub,
html[data-theme="dark"][data-palette="editorial"] .compare-winner-label,
html[data-theme="dark"][data-palette="editorial"] .compare-cell-plain,
html[data-theme="dark"][data-palette="editorial"] .compare-corner-mobile-hint {
  color: #2dd4bf;
}

html[data-theme="dark"][data-palette="editorial"] .compare-slot.is-filled,
html[data-theme="dark"][data-palette="editorial"] .compare-dock-btn.is-subtle,
html[data-theme="dark"][data-palette="editorial"] .compare-modal-dialog,
html[data-theme="dark"][data-palette="editorial"] .compare-diff-toggle,
html[data-theme="dark"][data-palette="editorial"] .compare-modal-action-btn,
html[data-theme="dark"][data-palette="editorial"] .compare-winner-card,
html[data-theme="dark"][data-palette="editorial"] .compare-table-scroll,
html[data-theme="dark"][data-palette="editorial"] .compare-col-th,
html[data-theme="dark"][data-palette="editorial"] .compare-matrix-table tbody td {
  background: #1d1c1a;
  border-color: var(--line-strong);
  color: var(--ink);
}

html[data-theme="dark"][data-palette="editorial"] .compare-slot.is-empty {
  background: rgba(35, 33, 29, 0.72);
  border-color: var(--line-strong);
}

html[data-theme="dark"][data-palette="editorial"] .compare-slot-thumb,
html[data-theme="dark"][data-palette="editorial"] .compare-col-thumb {
  background: #f1f5f9;
  border-color: var(--line-strong);
}

html[data-theme="dark"][data-palette="editorial"] .compare-slot-remove,
html[data-theme="dark"][data-palette="editorial"] .compare-move-btn,
html[data-theme="dark"][data-palette="editorial"] .compare-col-remove,
html[data-theme="dark"][data-palette="editorial"] .compare-col-site,
html[data-theme="dark"][data-palette="editorial"] .compare-inline-tabs,
html[data-theme="dark"][data-palette="editorial"] .compare-mini-tag.is-muted,
html[data-theme="dark"][data-palette="editorial"] .compare-warn-item.is-muted {
  background: #2b2823;
  color: #d6cfc3;
  border-color: var(--line);
}

html[data-theme="dark"][data-palette="editorial"] .compare-modal-header {
  background: linear-gradient(135deg, #21201d 0%, #172725 100%);
  border-bottom-color: var(--line-strong);
}

html[data-theme="dark"][data-palette="editorial"] .compare-winner-strip,
html[data-theme="dark"][data-palette="editorial"] .compare-metric-corner,
html[data-theme="dark"][data-palette="editorial"] .compare-section-row th,
html[data-theme="dark"][data-palette="editorial"] .compare-matrix-table tbody th.compare-row-label {
  background: #24221e;
  border-color: var(--line-strong);
  color: #e6dfd3;
}

html[data-theme="dark"][data-palette="editorial"] .compare-col-link.is-bench {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.35);
}

html[data-theme="dark"][data-palette="editorial"] .compare-pill-btn {
  color: #cbd5e1;
}

html[data-theme="dark"][data-palette="editorial"] .compare-matrix-table tbody td.is-best-cell {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(13, 148, 136, 0.14) 100%);
}

html[data-theme="dark"][data-palette="editorial"] .compare-bar-track {
  background: #33302a;
}

html[data-theme="dark"][data-palette="editorial"] .compare-score-badge.is-great,
html[data-theme="dark"][data-palette="editorial"] .compare-mini-tag.is-good,
html[data-theme="dark"][data-palette="editorial"] .compare-warn-item.is-good {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html[data-theme="dark"][data-palette="editorial"] .compare-score-badge.is-ok,
html[data-theme="dark"][data-palette="editorial"] .compare-mini-tag.is-warn,
html[data-theme="dark"][data-palette="editorial"] .compare-warn-item.is-warn {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

html[data-theme="dark"][data-palette="editorial"] .compare-score-badge.is-low,
html[data-theme="dark"][data-palette="editorial"] .compare-mini-tag.is-bad,
html[data-theme="dark"][data-palette="editorial"] .compare-warn-item.is-bad {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* =========================================================
   5. Editorial Page: benchCheck.html
   ========================================================= */
html[data-theme="dark"][data-palette="editorial"] .topbar {
  background: rgba(28, 27, 25, 0.94);
  border-bottom-color: var(--line);
}

html[data-theme="dark"][data-palette="editorial"] .price-main-won {
  color: #fb7185;
}

html[data-theme="dark"][data-palette="editorial"] .nav-pill {
  background: #23211d;
  border-color: var(--line-strong);
  color: var(--ink);
}

html[data-theme="dark"][data-palette="editorial"] .nav-pill.is-primary {
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #ffffff;
  border-color: transparent;
}

html[data-theme="dark"][data-palette="editorial"] .nav-pill.is-danawa,
html[data-theme="dark"][data-palette="editorial"] .cta-danawa-mobile {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

html[data-theme="dark"][data-palette="editorial"] .title-mode-btn {
  background: var(--accent-soft);
  color: #fcd34d;
}

html[data-theme="dark"][data-palette="editorial"] .brand-link,
html[data-theme="dark"][data-palette="editorial"] .spec-chip,
html[data-theme="dark"][data-palette="editorial"] .eff-pill,
html[data-theme="dark"][data-palette="editorial"] #ssrEfficiencySummary {
  color: #5eead4 !important;
}

html[data-theme="dark"][data-palette="editorial"] .eff-pill {
  background: rgba(14, 165, 233, 0.16);
}

html[data-theme="dark"][data-palette="editorial"] .guide-banner {
  background: linear-gradient(135deg, #24211b 0%, #2c2416 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

html[data-theme="dark"][data-palette="editorial"] .guide-demo-card,
html[data-theme="dark"][data-palette="editorial"] .warnings-box,
html[data-theme="dark"][data-palette="editorial"] .raw-spec-body,
html[data-theme="dark"][data-palette="editorial"] .v-pill,
html[data-theme="dark"][data-palette="editorial"] .part-tier-badge,
html[data-theme="dark"][data-palette="editorial"] .ram-preset-btn,
html[data-theme="dark"][data-palette="editorial"] .ram-input,
html[data-theme="dark"][data-palette="editorial"] .spec-tile,
html[data-theme="dark"][data-palette="editorial"] .price-metric-card.is-current,
html[data-theme="dark"][data-palette="editorial"] .chart-card-inner,
html[data-theme="dark"][data-palette="editorial"] .bench-card,
html[data-theme="dark"][data-palette="editorial"] .danawa-frame {
  background: #1e1c19;
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"][data-palette="editorial"] .ram-preset-btn.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: #14b8a6;
}

html[data-theme="dark"][data-palette="editorial"] .price-hero-box {
  background: linear-gradient(135deg, #23211d 0%, #2b261f 100%);
  border-color: var(--line-strong);
}

html[data-theme="dark"][data-palette="editorial"] .verdict-summary-box {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14) 0%, #1e1c19 100%);
  border-color: rgba(45, 212, 191, 0.28);
}

html[data-theme="dark"][data-palette="editorial"] .cta-ai {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.32);
}

html[data-theme="dark"][data-palette="editorial"] .cta-ai:hover {
  background: rgba(37, 99, 235, 0.28);
}

html[data-theme="dark"][data-palette="editorial"] .cta-sns {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(234, 88, 12, 0.22) 100%);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.35);
}

html[data-theme="dark"][data-palette="editorial"] .cta-sns:hover {
  background: rgba(234, 88, 12, 0.3);
}

html[data-theme="dark"][data-palette="editorial"] .suit-tile.is-good,
html[data-theme="dark"][data-palette="editorial"] .warning-item.tone-good,
html[data-theme="dark"][data-palette="editorial"] .spec-tile.is-good,
html[data-theme="dark"][data-palette="editorial"] .price-metric-card.is-low,
html[data-theme="dark"][data-palette="editorial"] .bench-badge.status-good {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.32);
}

html[data-theme="dark"][data-palette="editorial"] .suit-tile.is-warn,
html[data-theme="dark"][data-palette="editorial"] .warning-item.tone-warn,
html[data-theme="dark"][data-palette="editorial"] .spec-tile.is-warn,
html[data-theme="dark"][data-palette="editorial"] .bench-badge.status-warn {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.32);
}

html[data-theme="dark"][data-palette="editorial"] .suit-tile.is-bad,
html[data-theme="dark"][data-palette="editorial"] .warning-item.tone-bad,
html[data-theme="dark"][data-palette="editorial"] .bench-badge.status-bad {
  background: rgba(244, 63, 94, 0.17);
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.34);
}

html[data-theme="dark"][data-palette="editorial"] .bench-card.card-state-good {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, #1e1c19 46%);
}

html[data-theme="dark"][data-palette="editorial"] .bench-card.card-state-warn {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14) 0%, #1e1c19 46%);
}

html[data-theme="dark"][data-palette="editorial"] .bench-card.card-state-bad {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.15) 0%, #1e1c19 46%);
}

html[data-theme="dark"][data-palette="editorial"] .bench-reason {
  background: rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"][data-palette="editorial"] .tier-meter-track,
html[data-theme="dark"][data-palette="editorial"] .bench-bar-track {
  background: rgba(245, 235, 220, 0.12);
}

html[data-theme="dark"][data-palette="editorial"] .details-panel {
  background: #1a1815;
  border-color: var(--line);
}

/* Preserve bright neutral box around product photo thumbnails */
html[data-theme="dark"][data-palette="editorial"] .product-photo-box,
html[data-theme="dark"][data-palette="editorial"] .related-laptop-thumb {
  background: #f1f5f9;
  border-color: var(--line-strong);
}

html[data-theme="dark"][data-palette="editorial"] .related-laptop-badge {
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
}

/* D3 Price Chart readability in Dark Mode */
html[data-theme="dark"][data-palette="editorial"] .axis path,
html[data-theme="dark"][data-palette="editorial"] .axis line {
  stroke: rgba(245, 235, 220, 0.24);
}

html[data-theme="dark"][data-palette="editorial"] .axis text {
  fill: #b8b0a2;
}

html[data-theme="dark"][data-palette="editorial"] .line {
  stroke: #fb7185 !important;
}

html[data-theme="dark"][data-palette="editorial"] .regression-line {
  stroke: #fbbf24 !important;
}

html[data-theme="dark"][data-palette="editorial"] .tooltip {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(245, 235, 220, 0.22);
  color: #f8fafc;
}

/* SNS Modal Dialog UI adopts dark mode while preview card PNG stays original light editorial */
html[data-theme="dark"][data-palette="editorial"] .sns-modal-dialog {
  background: #1d1b18;
  border-color: var(--line-strong);
  color: var(--ink);
}

html[data-theme="dark"][data-palette="editorial"] .sns-card-item {
  background: #24211d;
  border-color: var(--line);
}

html[data-theme="dark"][data-palette="editorial"] .sns-card-img-wrap {
  background: #2d2924;
  border-color: var(--line-strong);
}

html[data-theme="dark"][data-palette="editorial"] .sns-btn-single:hover {
  background: rgba(20, 184, 166, 0.28);
}

/* =========================================================
   6. Tailwind Home Appliances Pages (/homeappliances*)
   ========================================================= */
html.dark:not([data-palette="editorial"]) body,
html.dark body.bg-slate-50 {
  background-color: #0b1120 !important;
  color: #e2e8f0 !important;
}

html.dark .bg-white {
  background-color: #131c2e !important;
}

html.dark .bg-slate-50 {
  background-color: #1a2438 !important;
}

html.dark .bg-slate-100 {
  background-color: #1e293b !important;
}

html.dark .bg-slate-900 {
  background-color: #2563eb !important;
}

html.dark .bg-amber-50 {
  background-color: rgba(245, 158, 11, 0.14) !important;
}

html.dark .border-amber-200 {
  border-color: rgba(245, 158, 11, 0.34) !important;
}

html.dark .text-amber-900,
html.dark .text-amber-800 {
  color: #fde68a !important;
}

html.dark .bg-emerald-50 {
  background-color: rgba(16, 185, 129, 0.16) !important;
}

html.dark .border-emerald-200 {
  border-color: rgba(52, 211, 153, 0.34) !important;
}

html.dark .text-emerald-700 {
  color: #6ee7b7 !important;
}

html.dark h1 span.bg-clip-text {
  background-image: linear-gradient(to right, #f8fafc, #60a5fa, #a5b4fc) !important;
}

html.dark a.relative.bg-slate-100 {
  background-color: #f1f5f9 !important;
}

html.dark .border-slate-200,
html.dark .border-slate-300 {
  border-color: #2b3b55 !important;
}

html.dark .text-slate-900 {
  color: #f8fafc !important;
}

html.dark .text-slate-800,
html.dark .text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark .text-slate-600,
html.dark .text-slate-500 {
  color: #94a3b8 !important;
}

html.dark:not([data-palette="editorial"]) input,
html.dark:not([data-palette="editorial"]) select {
  background-color: #172236 !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

html.dark .disclaimer {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fde68a !important;
}

html.dark .hover\:bg-slate-100:hover {
  background-color: #26344b !important;
}
