/* NiaziTV readable light view. The night view remains the default. */

html.theme-light,
html.theme-light body {
  --primary-color: #0b63ce;
  --primary-dark: #084a9e;
  --secondary-color: #64748b;
  --light-color: #0f172a;
  --surface-0: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border-color: rgba(15, 23, 42, 0.13);
  --text-main: #111827;
  --text-soft: #334155;
  --text-muted: #64748b;
  --success-color: #087f5b;
  background: #ffffff !important;
  color: var(--text-main) !important;
}

html.theme-light body {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

html.theme-light body,
html.theme-light body .uk-panel,
html.theme-light body .uk-panel-box,
html.theme-light body .uk-panel-hover,
html.theme-light body .uk-panel-title,
html.theme-light body .uk-block-default,
html.theme-light body .uk-block-muted,
html.theme-light body .uk-block-secondary,
html.theme-light body .pagebody,
html.theme-light body .pagebody p,
html.theme-light body .pagebody li {
  color: var(--text-main) !important;
}

html.theme-light a,
html.theme-light .pagebody a,
html.theme-light .article-content a {
  color: #075fba !important;
}

html.theme-light a:hover,
html.theme-light .pagebody a:hover,
html.theme-light .article-content a:hover,
html.theme-light .article-content a:focus {
  color: #043f7d !important;
}

html.theme-light hr,
html.theme-light .sidebar .divider,
html.theme-light #tm-divider,
html.theme-light .pagetitle,
html.theme-light #tm-right-section .title,
html.theme-light #tm-right-section .sectiontitle,
html.theme-light #tm-left-section .title-divider,
html.theme-light .uk-panel-header .uk-panel-title {
  border-color: var(--border-color) !important;
}

html.theme-light #tm-topbar {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html.theme-light #tm-header,
html.theme-light .tm-navbar,
html.theme-light .uk-navbar,
html.theme-light .uk-navbar-secondary {
  background: #ffffff !important;
  color: var(--text-main) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

html.theme-light #tm-footer,
html.theme-light .footer-bg,
html.theme-light .uk-block-secondary {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-soft) !important;
}

html.theme-light #tm-topbar .uk-navbar-nav > li > a,
html.theme-light #tm-header .uk-navbar-nav > li > a,
html.theme-light .uk-navbar-secondary .uk-navbar-nav > li > a,
html.theme-light .uk-navbar-toggle,
html.theme-light #tm-header .uk-button-link,
html.theme-light .tm-navbar-contrast .uk-navbar-nav > li > a,
html.theme-light .tm-navbar-contrast .uk-navbar-brand,
html.theme-light .tm-navbar-contrast .uk-navbar-toggle,
html.theme-light #tm-footer .copyright-text,
html.theme-light #tm-footer .uk-subnav > li > a,
html.theme-light .uk-text-muted {
  color: var(--text-soft) !important;
}

html.theme-light #tm-topbar .uk-navbar-nav > li > a:hover,
html.theme-light #tm-header .uk-navbar-nav > li > a:hover,
html.theme-light .uk-navbar-nav > li:hover > a,
html.theme-light .uk-navbar-nav > li > a:focus,
html.theme-light .uk-navbar-toggle:hover,
html.theme-light #tm-header .uk-button-link:hover,
html.theme-light .tm-navbar-contrast .uk-navbar-nav > li:hover > a,
html.theme-light .tm-navbar-contrast .uk-navbar-nav > li.uk-active > a,
html.theme-light #tm-footer .uk-subnav > li > a:hover {
  color: var(--text-main) !important;
}

html.theme-light .tm-header-search .uk-search-field,
html.theme-light .uk-form select,
html.theme-light .uk-form textarea,
html.theme-light .uk-form input:not([type]),
html.theme-light .uk-form input[type="text"],
html.theme-light .uk-form input[type="password"],
html.theme-light .uk-form input[type="email"],
html.theme-light .uk-form input[type="search"],
html.theme-light .uk-search-field,
html.theme-light .uk-input {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: var(--text-main) !important;
}

html.theme-light .tm-header-search:before,
html.theme-light .mobile-drawer__search:before {
  color: #64748b !important;
}

html.theme-light .tm-header-search .uk-search-field:focus,
html.theme-light .uk-form select:focus,
html.theme-light .uk-form textarea:focus,
html.theme-light .uk-form input:focus,
html.theme-light .uk-search-field:focus,
html.theme-light .uk-input:focus {
  background: #ffffff !important;
  border-color: rgba(11, 99, 206, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.12) !important;
}

html.theme-light .uk-search-field::placeholder,
html.theme-light .uk-form input::placeholder,
html.theme-light .uk-form textarea::placeholder {
  color: #64748b !important;
}

html.theme-light .uk-button,
html.theme-light .uk-button-default,
html.theme-light .share .uk-button-default {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  color: var(--text-main) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html.theme-light .uk-button:hover,
html.theme-light .uk-button:focus,
html.theme-light .uk-button-default:hover,
html.theme-light .share .uk-button-default:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: rgba(11, 99, 206, 0.3) !important;
}

html.theme-light .uk-button-primary,
html.theme-light .uk-button-danger {
  background: #0b63ce !important;
  border-color: #0b63ce !important;
  color: #ffffff !important;
}

/* Font-size parity only: keep light-card dimensions, spacing and colors untouched. */
html.theme-light #tm-right-section .uk-panel.home .uk-panel-title {
  font-size: 16px !important;
}

html.theme-light .genre-card-title {
  font-size: 20px !important;
}

html.theme-light .genre-card-count {
  font-size: 11px !important;
}

html.theme-light .article-hero__card-tag {
  font-size: 10px !important;
}

html.theme-light .article-hero__card-title {
  font-size: 13px !important;
}

html.theme-light #tm-left-section .sidebar .topitems .title {
  font-size: 14px !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__icon {
  font-size: 14px !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__badge {
  font-size: 10px !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__price {
  font-size: 26px !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__label,
html.theme-light #tm-left-section .sidebar .rates-highlight__meta,
html.theme-light #tm-left-section .sidebar .rates-highlight__link {
  font-size: 13px !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__value-label {
  font-size: 11px !important;
}

/* Use the exact night-view font family and weight on light-mode cards. */
html.theme-light #tm-right-section .uk-panel.home .uk-panel-title,
html.theme-light .genre-card-title,
html.theme-light .genre-card-count,
html.theme-light .article-hero__card-tag,
html.theme-light .article-hero__card-title,
html.theme-light #tm-left-section .sidebar .topitems .title,
html.theme-light #tm-left-section .sidebar .rates-highlight__icon,
html.theme-light #tm-left-section .sidebar .rates-highlight__badge,
html.theme-light #tm-left-section .sidebar .rates-highlight__price,
html.theme-light #tm-left-section .sidebar .rates-highlight__label,
html.theme-light #tm-left-section .sidebar .rates-highlight__meta,
html.theme-light #tm-left-section .sidebar .rates-highlight__value-label,
html.theme-light #tm-left-section .sidebar .rates-highlight__link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
  font-style: normal !important;
}

html.theme-light #tm-right-section .uk-panel.home .uk-panel-title {
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

html.theme-light #tm-left-section .sidebar .topitems .title {
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

/* Recent sidebar cards use the same dark-view text and Trending badge placement. */
html.theme-light #tm-left-section .sidebar .topitems .title {
  display: block !important;
  overflow: visible !important;
  padding-top: 26px !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

html.theme-light #tm-left-section .sidebar .topitems::before {
  top: 8px !important;
  right: 8px !important;
  bottom: auto !important;
  padding: 3px 7px !important;
  border-radius: 3px !important;
  background: rgba(255, 61, 61, 0.14) !important;
  color: #ff9d9d !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

@media (max-width: 767px) {
  html.theme-light .genre-card-title {
    font-size: 16px !important;
  }

  html.theme-light .genre-card-count {
    font-size: 10px !important;
  }

  html.theme-light .article-hero__card-tag {
    font-size: 9px !important;
  }

  html.theme-light .article-hero__card-title {
    font-size: 12px !important;
  }

  html.theme-light #tm-left-section .sidebar .topitems .title {
    font-size: 13px !important;
  }

  html.theme-light #tm-left-section .sidebar .rates-highlight__icon {
    font-size: 12px !important;
  }

  html.theme-light #tm-left-section .sidebar .rates-highlight__badge {
    font-size: 9px !important;
  }

  html.theme-light #tm-left-section .sidebar .rates-highlight__price {
    font-size: 24px !important;
  }

  html.theme-light #tm-left-section .sidebar .rates-highlight__label,
  html.theme-light #tm-left-section .sidebar .rates-highlight__meta,
  html.theme-light #tm-left-section .sidebar .rates-highlight__link {
    font-size: 11px !important;
  }

  html.theme-light #tm-left-section .sidebar .rates-highlight__value-label {
    font-size: 10px !important;
  }

}

/* Keep every light-mode card section in straight rows instead of masonry flow. */
html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

html.theme-light #tm-header .uk-button-link {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html.theme-light .uk-panel-box,
html.theme-light .uk-panel-box-secondary,
html.theme-light .uk-panel-hover,
html.theme-light .uk-comment,
html.theme-light .uk-box-border,
html.theme-light #tm-right-section .uk-comment,
html.theme-light .sidebar-profile,
html.theme-light .genre-overlay,
html.theme-light .sidebar .topitems,
html.theme-light .sidebar .mini-card,
html.theme-light .genre-card,
html.theme-light .auth-card,
html.theme-light .search-result-card,
html.theme-light .article-faq__item {
  background: #ffffff !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
}

html.theme-light .uk-panel-title,
html.theme-light .pagetitle,
html.theme-light #tm-right-section .title,
html.theme-light #tm-right-section .sectiontitle,
html.theme-light #tm-left-section .title-divider,
html.theme-light #tm-left-section h5.widget-header,
html.theme-light .mainNavBar,
html.theme-light .sidebar .uk-nav-side .uk-nav-header,
html.theme-light .article-seo__title,
html.theme-light .article-content h2,
html.theme-light .article-content h3,
html.theme-light .pagebody h1,
html.theme-light .pagebody h2,
html.theme-light .pagebody h3,
html.theme-light .pagebody h4 {
  color: #111827 !important;
}

html.theme-light .pagebody,
html.theme-light .pagebody p,
html.theme-light .pagebody li,
html.theme-light .article-content p,
html.theme-light .article-content li,
html.theme-light .article-intro p,
html.theme-light .article-conclusion p,
html.theme-light .article-faq p {
  color: #1f2937 !important;
}

html.theme-light .breadcrumb,
html.theme-light .article-meta,
html.theme-light .player-breadcrumb,
html.theme-light .search-page__summary-text,
html.theme-light .search-result-card__meta,
html.theme-light .search-result-card__excerpt,
html.theme-light .auth-meta,
html.theme-light .auth-note {
  color: #64748b !important;
}

html.theme-light .breadcrumb a,
html.theme-light .player-breadcrumb a {
  color: #075fba !important;
}

html.theme-light .article-breadcrumb-current,
html.theme-light .player-breadcrumb__current {
  color: #111827 !important;
}

html.theme-light .article-quick-facts {
  background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
  border-color: rgba(11, 99, 206, 0.24) !important;
  color: #111827 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

html.theme-light .article-quick-facts__eyebrow,
html.theme-light .article-resource-links__label,
html.theme-light .article-quick-fact__label {
  color: #64748b !important;
}

html.theme-light .article-quick-fact {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html.theme-light .article-quick-fact strong,
html.theme-light .article-faq__item summary,
html.theme-light .article-comment-dialog__title {
  color: #111827 !important;
}

html.theme-light .article-resource-links a {
  background: #eaf3ff !important;
  border-color: rgba(11, 99, 206, 0.2) !important;
  color: #075fba !important;
}

html.theme-light .article-faq__item summary {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html.theme-light .article-faq__item summary::after,
html.theme-light .article-toc-toggle::after {
  color: #0b63ce !important;
}

html.theme-light .article-faq__answer,
html.theme-light .article-toc-list,
html.theme-light .article-toc-toggle {
  color: #1f2937 !important;
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html.theme-light .article-content th {
  background: #eaf3ff !important;
  color: #111827 !important;
}

html.theme-light .article-content td,
html.theme-light .article-content th {
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #1f2937 !important;
}

html.theme-light .dropdown-content {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12) !important;
}

html.theme-light .dropdown-content ul.uk-nav li a {
  color: #334155 !important;
}

html.theme-light .dropdown-content ul.uk-nav li a:hover {
  background: #f1f5f9 !important;
  color: #111827 !important;
}

html.theme-light #tm-right-section .uk-panel.home,
html.theme-light #tm-right-section .home,
html.theme-light .article-recent-card .uk-panel {
  background: #ffffff !important;
  color: #111827 !important;
}

html.theme-light .mobile-drawer,
html.theme-light .uk-offcanvas-bar {
  background: #ffffff !important;
  color: #111827 !important;
}

html.theme-light .mobile-drawer__profile .uk-comment,
html.theme-light .mobile-drawer__nav,
html.theme-light .mobile-drawer__socials {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: none !important;
}

html.theme-light .mobile-drawer__section-title,
html.theme-light .mobile-drawer__nav > li > a,
html.theme-light .mobile-drawer__nav .uk-nav-sub > li > a {
  color: #111827 !important;
}

html.theme-light .mobile-drawer__nav > li > a:hover,
html.theme-light .mobile-drawer__nav .uk-nav-sub > li > a:hover,
html.theme-light .mobile-drawer__links > li > a:hover {
  background: #eaf3ff !important;
  color: #075fba !important;
}

html.theme-light table,
html.theme-light th,
html.theme-light td {
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html.theme-light tr:hover {
  background: #f8fafc !important;
  color: #111827 !important;
}

html.theme-light ::selection {
  background: rgba(11, 99, 206, 0.18);
  color: #111827;
}

/* The toggle is intentionally compact so it fits beside the existing nav. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e5edf6;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.tm-header-right .theme-toggle {
  order: 2;
  flex: 0 0 auto;
}

.tm-header-right .uk-button-group,
.tm-header-right .avatar-dropdown {
  order: 3;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(148, 163, 184, 0.5);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  font-size: 17px;
}

.theme-toggle--drawer {
  width: 100%;
  margin: 0 0 18px;
  min-height: 42px;
}

html.theme-light .theme-toggle {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.15);
  color: #334155;
}

html.theme-light .theme-toggle:hover,
html.theme-light .theme-toggle:focus-visible {
  background: #eaf3ff;
  border-color: rgba(11, 99, 206, 0.3);
  color: #075fba;
}

@media (max-width: 1199px) {
  .theme-toggle__label {
    display: none;
  }
}

@media (max-width: 767px) {
  html.theme-light #tm-header {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  }
}

/* Last word for the requested light-mode contrast direction. */
html.theme-light #tm-topbar,
html.theme-light #tm-header,
html.theme-light .tm-navbar,
html.theme-light .uk-navbar-secondary {
  background: linear-gradient(180deg, #172033 0%, #0b0f19 100%) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.18) !important;
}

html.theme-light #tm-topbar .uk-navbar-nav > li > a,
html.theme-light #tm-header .uk-navbar-nav > li > a,
html.theme-light #tm-header .uk-button-link,
html.theme-light #tm-header .uk-navbar-toggle,
html.theme-light .tm-navbar-contrast .uk-navbar-nav > li > a,
html.theme-light .tm-navbar-contrast .uk-navbar-brand,
html.theme-light .tm-navbar-contrast .uk-navbar-toggle {
  color: #c5d0df !important;
}

html.theme-light #tm-topbar .uk-navbar-nav > li > a:hover,
html.theme-light #tm-header .uk-navbar-nav > li > a:hover,
html.theme-light #tm-header .uk-button-link:hover,
html.theme-light #tm-header .uk-navbar-toggle:hover,
html.theme-light #tm-header .mainNavBar > li:hover > a,
html.theme-light #tm-header .mainNavBar > li.uk-active > a {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
}

html.theme-light .tm-header-search .uk-search-field {
  background: rgba(11, 15, 25, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #f8fafc !important;
}

html.theme-light .tm-header-search .uk-search-field::placeholder,
html.theme-light .tm-header-search:before {
  color: #9fb0c3 !important;
}

html.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: #e5edf6 !important;
  box-shadow: none !important;
}

html.theme-light .theme-toggle:hover,
html.theme-light .theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #ffffff !important;
}

html.theme-light .uk-button-primary,
html.theme-light .uk-button-danger {
  background: linear-gradient(135deg, #e50914, #b9060f) !important;
  border-color: transparent !important;
}

html.theme-light a,
html.theme-light .pagebody a,
html.theme-light .article-content a,
html.theme-light .breadcrumb a,
html.theme-light .player-breadcrumb a,
html.theme-light #tm-right-section .title .viewall,
html.theme-light #tm-right-section .sectiontitle .viewall,
html.theme-light .article-resource-links a,
html.theme-light .article-toc-list a {
  color: #1f2937 !important;
}

html.theme-light a:hover,
html.theme-light .pagebody a:hover,
html.theme-light .article-content a:hover,
html.theme-light .breadcrumb a:hover,
html.theme-light .player-breadcrumb a:hover,
html.theme-light #tm-right-section .title .viewall:hover,
html.theme-light #tm-right-section .sectiontitle .viewall:hover,
html.theme-light .article-toc-list a:hover {
  color: #000000 !important;
}

html.theme-light .article-content a,
html.theme-light .pagebody a {
  text-decoration: underline;
  text-decoration-color: rgba(31, 41, 55, 0.32);
  text-underline-offset: 2px;
}

html.theme-light #tm-right-section .title .viewall,
html.theme-light #tm-right-section .sectiontitle .viewall {
  text-decoration: none;
}

html.theme-light #tm-right-section .title::after,
html.theme-light #tm-right-section .sectiontitle::after,
html.theme-light #tm-left-section .title-divider::after,
html.theme-light .pagetitle::after {
  background: #9aa6b5 !important;
}

html.theme-light .article-quick-facts {
  border-color: #d5dbe3 !important;
  border-left-color: #6b7280 !important;
  background: linear-gradient(135deg, #f8fafc, #ffffff) !important;
}

html.theme-light .article-resource-links a,
html.theme-light .article-toc-toggle,
html.theme-light .article-toc-list {
  border-color: #d5dbe3 !important;
  background: #f1f3f5 !important;
}

html.theme-light .article-faq__item summary::after,
html.theme-light .article-toc-toggle::after {
  color: #4b5563 !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__link,
html.theme-light #tm-left-section .sidebar .topitems .title:hover {
  color: #1f2937 !important;
}

html.theme-light .genre-card-title,
html.theme-light .genre-card-count {
  color: #ffffff !important;
}

html.theme-light .article-content th {
  background: #f1f3f5 !important;
  color: #111827 !important;
}

html.theme-light .article-content td,
html.theme-light .article-content th {
  border-color: #d5dbe3 !important;
  color: #1f2937 !important;
}

/* Earlier article readability guard; final guard appears at the end of this file. */
html.theme-light .article-content,
html.theme-light .article-content p,
html.theme-light .article-content li,
html.theme-light .article-content ul,
html.theme-light .article-content ol,
html.theme-light .article-content blockquote,
html.theme-light .article-content span,
html.theme-light .article-content div,
html.theme-light .article-content td {
  color: #1f2937 !important;
}

html.theme-light .article-content h1,
html.theme-light .article-content h2,
html.theme-light .article-content h3,
html.theme-light .article-content h4,
html.theme-light .article-content h5,
html.theme-light .article-content h6,
html.theme-light .article-content strong,
html.theme-light .article-content b,
html.theme-light .article-content th {
  color: #111827 !important;
  font-weight: 750 !important;
}

html.theme-light .article-content a,
html.theme-light .article-content a:visited,
html.theme-light .article-content a:hover,
html.theme-light .article-content a:focus {
  color: #1f2937 !important;
}

/* Requested parity with the night view: retain the original type system and sidebar. */
html.theme-light body,
html.theme-light .pagebody,
html.theme-light #tm-left-section,
html.theme-light #tm-left-section .sidebar,
html.theme-light #tm-right-section {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
}

html.theme-light .pagebody,
html.theme-light .article-content {
  font-size: 18px !important;
  line-height: 2 !important;
}

html.theme-light .article-content p,
html.theme-light .article-content li,
html.theme-light .article-intro p,
html.theme-light .article-conclusion p {
  font-size: inherit !important;
  line-height: inherit !important;
}

html.theme-light .pagebody h1,
html.theme-light .article-content h1 {
  font-size: 24px !important;
  font-weight: bold !important;
}

html.theme-light .pagebody h2,
html.theme-light .article-content h2 {
  font-size: 20px !important;
  font-weight: bold !important;
}

html.theme-light .pagebody h3,
html.theme-light .article-content h3 {
  font-size: 17px !important;
  font-weight: bold !important;
}

html.theme-light .pagebody h4,
html.theme-light .article-content h4 {
  font-size: 15px !important;
  font-weight: bold !important;
}

/* Keep every sidebar panel/card in the same dark family as the night view. */
html.theme-light #tm-left-section .sidebar .uk-panel,
html.theme-light #tm-left-section .sidebar .sidebar-profile,
html.theme-light #tm-left-section .sidebar .mini-card {
  border: 1px solid rgba(148, 163, 184, 0.08) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(13, 19, 31, 0.98) 100%) !important;
  color: #e5e7eb !important;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22) !important;
}

html.theme-light #tm-left-section .sidebar .topitems {
  border: 1px solid rgba(148, 163, 184, 0.08) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%) !important;
  color: #f8fafc !important;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.16) !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__card {
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  border-radius: 7px !important;
  background: rgba(15, 23, 42, 0.58) !important;
  color: #e5e7eb !important;
  box-shadow: none !important;
}

html.theme-light #tm-left-section .sidebar .title-divider,
html.theme-light #tm-left-section .sidebar .uk-nav-side .uk-nav-header,
html.theme-light #tm-left-section .sidebar .uk-text-muted,
html.theme-light #tm-left-section .sidebar .rates-highlight__label,
html.theme-light #tm-left-section .sidebar .rates-highlight__meta,
html.theme-light #tm-left-section .sidebar .topitems .title {
  color: #cbd5e1 !important;
}

html.theme-light #tm-left-section .sidebar .topitems .title,
html.theme-light #tm-left-section .sidebar .topitems .number,
html.theme-light #tm-left-section .sidebar .rates-highlight__price {
  font-family: inherit !important;
}

html.theme-light #tm-left-section .sidebar .topitems .title:hover,
html.theme-light #tm-left-section .sidebar .rates-highlight__link,
html.theme-light #tm-left-section .sidebar .rates-highlight__price {
  color: #f8fafc !important;
}

/* Compact switch in the same utility row as Privacy Policy and Contact Us. */
html.theme-light .tm-topbar-controls,
.tm-topbar-controls {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.tm-topbar-controls .theme-toggle--topbar {
  width: 24px;
  min-width: 24px;
  height: 20px;
  min-height: 20px;
  margin-left: 3px;
  padding: 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

.tm-topbar-controls .theme-toggle--topbar .theme-toggle__icon {
  width: auto;
  height: auto;
  font-size: 12px;
}

.tm-topbar-controls .theme-toggle--topbar .theme-toggle__label {
  display: none;
}

.tm-topbar-controls .theme-toggle--topbar:hover,
.tm-topbar-controls .theme-toggle--topbar:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

/* -------------------------------------------------------------------------
 * Mobile home layout
 * Desktop layout is intentionally untouched. Keep the mobile card system
 * predictable so image ratios, titles and section rows never drift apart.
 * ------------------------------------------------------------------------- */
@media (max-width: 767px) {
  html.theme-light,
  html.theme-light body {
    overflow-x: hidden !important;
  }

  html.theme-light body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
  }

  html.theme-light .uk-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Keep the category strip compact without making its cards unreadable. */
  html.theme-light .uk-slider > li {
    width: 33.333333% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  html.theme-light .genre-card {
    height: 142px !important;
    border-radius: 7px !important;
  }

  html.theme-light .genre-card-content {
    bottom: 8px !important;
    left: 7px !important;
    right: 7px !important;
    padding: 0 !important;
  }

  html.theme-light .genre-card-title {
    margin-bottom: 4px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  html.theme-light .genre-card-count {
    padding: 3px 6px !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
  }

  /* Homepage mobile bullion cards are outside the sidebar. */
  html.theme-light section.rates-highlight {
    padding: 0 0 10px !important;
    background: transparent !important;
  }

  html.theme-light section.rates-highlight .title {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__subtext {
    color: #64748b !important;
    font-size: 8px !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__grid {
    gap: 8px !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__card {
    min-height: 142px !important;
    padding: 9px !important;
    gap: 4px !important;
    border: 1px solid #dbe3ec !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #334155 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07) !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__top {
    gap: 7px !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__icon {
    width: 25px !important;
    height: 25px !important;
    flex-basis: 25px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__badge {
    padding: 3px 5px !important;
    border-radius: 3px !important;
    background: #eff6ff !important;
    color: #075fba !important;
    font-size: 8px !important;
    letter-spacing: 0.08em !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__label,
  html.theme-light section.rates-highlight .rates-highlight__meta {
    color: #64748b !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__price {
    margin-top: 5px !important;
    color: #111827 !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__value-label {
    color: #94a3b8 !important;
    font-size: 8px !important;
  }

  html.theme-light section.rates-highlight .rates-highlight__link {
    margin-top: auto !important;
    color: #1f2937 !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  /* Every content section is a real two-column grid on phones. */
  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 0 20px !important;
    padding: 8px 4px 2px !important;
    border: 1px solid #dbe3ec !important;
    border-radius: 9px !important;
    background: #e8edf3 !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05) !important;
  }

  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    width: 50% !important;
    margin: 0 0 8px !important;
    padding: 0 4px !important;
  }

  /* Games retain their denser three-column mobile layout. */
  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div.uk-width-1-3 {
    width: 33.333333% !important;
  }

  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div > .uk-overlay {
    flex: 0 0 auto !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: 6px 6px 0 0 !important;
  }

  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div > .uk-overlay > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div > .uk-panel.home {
    flex: 1 1 auto !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 7px 6px 8px !important;
    border: 1px solid #dfe5ec !important;
    border-top: 0 !important;
    border-radius: 0 0 6px 6px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.06) !important;
  }

  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div > .uk-panel.home .uk-panel-title {
    display: -webkit-box !important;
    min-height: 32px !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #1f2937 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div.uk-width-1-3 > .uk-panel.home {
    min-height: 38px !important;
    padding: 6px 4px 7px !important;
  }

  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div.uk-width-1-3 > .uk-panel.home .uk-panel-title {
    min-height: 26px !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
  }

  html.theme-light #tm-right-section > .title {
    min-height: 0 !important;
    margin: 0 0 8px !important;
    padding-bottom: 6px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  html.theme-light #tm-right-section > .title .viewall {
    font-size: 8px !important;
  }
}

/* Light view for the dedicated gold and silver rate pages. */
html.theme-light .rates-page__hero,
html.theme-light .rates-page__section {
  border-color: #dfe5ec !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07) !important;
}

html.theme-light .rates-page__hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
}

html.theme-light .rates-page__eyebrow {
  color: #b42318 !important;
}

html.theme-light .rates-page__title,
html.theme-light .rates-page__switch strong,
html.theme-light .rates-page .title {
  color: #111827 !important;
}

html.theme-light .rates-page__intro,
html.theme-light .rates-page__meta,
html.theme-light .rates-page__switch-label,
html.theme-light .rates-page__section-intro {
  color: #64748b !important;
}

html.theme-light .rates-page__switch {
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
  color: #111827 !important;
  box-shadow: none !important;
}

html.theme-light .rates-page__switch:hover {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09) !important;
}

html.theme-light .rates-page__switch-link {
  color: #b42318 !important;
}

html.theme-light .rates-page__stat,
html.theme-light .rates-page__card {
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
  color: #334155 !important;
}

html.theme-light .rates-page__stat-label,
html.theme-light .rates-page__table th {
  color: #64748b !important;
}

html.theme-light .rates-page__stat strong,
html.theme-light .rates-page__list strong {
  color: #111827 !important;
}

html.theme-light .rates-page__card p,
html.theme-light .rates-page__notes p {
  color: #334155 !important;
}

html.theme-light .rates-page__list li {
  border-bottom-color: #e2e8f0 !important;
  color: #334155 !important;
}

html.theme-light .rates-page__table {
  background: #ffffff !important;
}

html.theme-light .rates-page__table th,
html.theme-light .rates-page__table td {
  border-bottom-color: #e2e8f0 !important;
}

html.theme-light .rates-page__table th {
  background: #f1f5f9 !important;
}

html.theme-light .rates-page__table td {
  color: #334155 !important;
}

html.theme-light .rates-page__table tbody tr:hover {
  background: #f8fafc !important;
}

/* Override inline editor colors so no article text disappears on white. */
html.theme-light .article-content,
html.theme-light .article-content * {
  color: #1f2937 !important;
}

html.theme-light .article-content h1,
html.theme-light .article-content h2,
html.theme-light .article-content h3,
html.theme-light .article-content h4,
html.theme-light .article-content h5,
html.theme-light .article-content h6,
html.theme-light .article-content strong,
html.theme-light .article-content b {
  color: #111827 !important;
  font-weight: 750;
}

html.theme-light .article-content a,
html.theme-light .article-content a:hover,
html.theme-light .article-content a:focus {
  color: #1f2937 !important;
}

html.theme-light .article-content th {
  color: #111827 !important;
}

html.theme-light #tm-left-section .sidebar a,
html.theme-light #tm-left-section .sidebar .uk-nav-side > li > a,
html.theme-light #tm-left-section .sidebar .uk-nav-side ul a {
  color: #d5deea !important;
}

html.theme-light #tm-left-section .sidebar a:hover,
html.theme-light #tm-left-section .sidebar .uk-nav-side > li > a:hover,
html.theme-light #tm-left-section .sidebar .uk-nav-side ul a:hover {
  color: #ffffff !important;
}

html.theme-light #tm-left-section .sidebar .topitems a,
html.theme-light #tm-left-section .sidebar .topitems .title,
html.theme-light #tm-left-section .sidebar .rates-highlight__link {
  color: #1f2937 !important;
}

html.theme-light #tm-left-section .sidebar .topitems a:hover,
html.theme-light #tm-left-section .sidebar .topitems .title:hover,
html.theme-light #tm-left-section .sidebar .rates-highlight__link:hover {
  color: #000000 !important;
}

html.theme-light .pagebody strong,
html.theme-light .pagebody b,
html.theme-light .article-content strong,
html.theme-light .article-content b {
  color: #111827 !important;
  font-weight: 750;
}

/* -------------------------------------------------------------------------
 * Final contrast direction: dark branded header, neutral editorial body
 * ------------------------------------------------------------------------- */

html.theme-light #tm-topbar,
html.theme-light #tm-header,
html.theme-light .tm-navbar,
html.theme-light .uk-navbar-secondary {
  background: linear-gradient(180deg, #172033 0%, #0b0f19 100%) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.18) !important;
}

html.theme-light #tm-topbar .uk-navbar-nav > li > a,
html.theme-light #tm-header .uk-navbar-nav > li > a,
html.theme-light #tm-header .uk-button-link,
html.theme-light #tm-header .uk-navbar-toggle,
html.theme-light .tm-navbar-contrast .uk-navbar-nav > li > a,
html.theme-light .tm-navbar-contrast .uk-navbar-brand,
html.theme-light .tm-navbar-contrast .uk-navbar-toggle {
  color: #b7c3d4 !important;
}

html.theme-light #tm-topbar .uk-navbar-nav > li > a:hover,
html.theme-light #tm-header .uk-navbar-nav > li > a:hover,
html.theme-light #tm-header .uk-button-link:hover,
html.theme-light #tm-header .uk-navbar-toggle:hover,
html.theme-light #tm-header .mainNavBar > li:hover > a,
html.theme-light #tm-header .mainNavBar > li.uk-active > a {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
}

html.theme-light #tm-header .mainNavBar > li > a {
  color: #c5d0df !important;
}

html.theme-light #tm-header .mainNavBar > li > a:hover,
html.theme-light #tm-header .mainNavBar > li:hover > a,
html.theme-light #tm-header .mainNavBar > li.uk-active > a {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

html.theme-light .tm-header-search .uk-search-field {
  background: rgba(11, 15, 25, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #f8fafc !important;
}

html.theme-light .tm-header-search .uk-search-field::placeholder {
  color: #9fb0c3 !important;
}

html.theme-light .tm-header-search:before {
  color: #9fb0c3 !important;
}

html.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: #e5edf6 !important;
  box-shadow: none;
}

html.theme-light .theme-toggle:hover,
html.theme-light .theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #ffffff !important;
}

html.theme-light .uk-button-primary,
html.theme-light .uk-button-danger {
  background: linear-gradient(135deg, #e50914, #b9060f) !important;
  border-color: transparent !important;
}

/* Keep the body deliberately neutral: no blue links or blue accent pills. */
html.theme-light #tm-right-section .title::after,
html.theme-light #tm-right-section .sectiontitle::after,
html.theme-light #tm-left-section .title-divider::after,
html.theme-light .pagetitle::after {
  background: #9aa6b5 !important;
}

html.theme-light a,
html.theme-light .pagebody a,
html.theme-light .article-content a,
html.theme-light .breadcrumb a,
html.theme-light .player-breadcrumb a,
html.theme-light #tm-right-section .title .viewall,
html.theme-light #tm-right-section .sectiontitle .viewall,
html.theme-light .article-resource-links a,
html.theme-light .article-toc-list a {
  color: #1f2937 !important;
}

html.theme-light a:hover,
html.theme-light .pagebody a:hover,
html.theme-light .article-content a:hover,
html.theme-light .breadcrumb a:hover,
html.theme-light .player-breadcrumb a:hover,
html.theme-light #tm-right-section .title .viewall:hover,
html.theme-light #tm-right-section .sectiontitle .viewall:hover,
html.theme-light .article-toc-list a:hover {
  color: #000000 !important;
}

html.theme-light .article-content a,
html.theme-light .pagebody a {
  text-decoration: underline;
  text-decoration-color: rgba(31, 41, 55, 0.32);
  text-underline-offset: 2px;
}

html.theme-light #tm-right-section .title .viewall,
html.theme-light #tm-right-section .sectiontitle .viewall {
  text-decoration: none;
}

html.theme-light .article-quick-facts {
  border-left-color: #6b7280 !important;
  border-color: #d5dbe3 !important;
  background: linear-gradient(135deg, #f8fafc, #ffffff) !important;
}

html.theme-light .article-resource-links a {
  border-color: #d5dbe3 !important;
  background: #f1f3f5 !important;
}

html.theme-light .article-faq__item summary::after,
html.theme-light .article-toc-toggle::after {
  color: #4b5563 !important;
}

html.theme-light .article-toc-toggle,
html.theme-light .article-toc-list {
  border-color: #d5dbe3 !important;
  background: #f8fafc !important;
}

html.theme-light #tm-left-section .sidebar .title-divider::after {
  background: #9aa6b5 !important;
}

html.theme-light #tm-left-section .sidebar .uk-nav-side > li > a:hover,
html.theme-light #tm-left-section .sidebar .uk-nav-side ul a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__link,
html.theme-light #tm-left-section .sidebar .topitems .title:hover {
  color: #1f2937 !important;
}

html.theme-light .genre-card-title,
html.theme-light .genre-card-count {
  color: #ffffff !important;
}

html.theme-light .article-content th {
  background: #f1f3f5 !important;
  color: #111827 !important;
}

html.theme-light .article-content td,
html.theme-light .article-content th {
  border-color: #d5dbe3 !important;
  color: #1f2937 !important;
}

/* -------------------------------------------------------------------------
 * Premium light layout pass: navigation, sidebar and content cards
 * ------------------------------------------------------------------------- */

html.theme-light #tm-topbar {
  min-height: 32px;
  background: #f8fafc !important;
  color: #64748b !important;
}

html.theme-light #tm-header .tm-header-shell {
  min-height: 78px;
  gap: 26px;
}

html.theme-light #tm-header .uk-navbar-brand {
  display: inline-flex;
  align-items: center;
  max-width: 164px;
}

html.theme-light .tm-header-search {
  flex-basis: 270px;
}

html.theme-light .tm-header-search .uk-search-field {
  height: 40px;
  border-radius: 9px;
  background: #f8fafc !important;
}

html.theme-light #tm-header .mainNavBar {
  gap: 2px;
}

html.theme-light #tm-header .mainNavBar > li > a {
  min-height: 40px;
  padding: 0 11px;
  border-radius: 8px;
  color: #475569 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
}

html.theme-light #tm-header .mainNavBar > li > a:hover,
html.theme-light #tm-header .mainNavBar > li:hover > a,
html.theme-light #tm-header .mainNavBar > li.uk-active > a {
  background: #eef6ff !important;
  color: #075fba !important;
  box-shadow: inset 0 0 0 1px rgba(11, 99, 206, 0.1);
}

html.theme-light .theme-toggle {
  min-height: 38px;
  border-color: #d6e0eb;
  background: #ffffff;
  color: #475569;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html.theme-light .theme-toggle:hover,
html.theme-light .theme-toggle:focus-visible {
  background: #eef6ff;
  color: #075fba;
  box-shadow: 0 7px 16px rgba(11, 99, 206, 0.12);
}

html.theme-light #tm-left-section .sidebar {
  position: sticky;
  top: 16px;
}

html.theme-light #tm-left-section .sidebar .uk-panel {
  padding: 17px 16px;
  border: 1px solid #29384f !important;
  border-radius: 12px;
  background: linear-gradient(180deg, #202b3d 0%, #172235 100%) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16) !important;
}

html.theme-light #tm-left-section .sidebar .uk-panel + .uk-panel {
  margin-top: 16px;
}

html.theme-light #tm-left-section .sidebar .title-divider {
  margin: 0 0 13px;
  padding-bottom: 11px;
  border-bottom-color: rgba(255, 255, 255, 0.13) !important;
  color: #f8fafc !important;
  font-size: 10px;
  letter-spacing: 0.13em;
}

html.theme-light #tm-left-section .sidebar .title-divider::after {
  background: #4ea1f4 !important;
  width: 34px;
}

html.theme-light #tm-left-section .sidebar .uk-nav-side > li > a,
html.theme-light #tm-left-section .sidebar .uk-nav-side ul a {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #b9c7d8 !important;
  font-size: 12px;
}

html.theme-light #tm-left-section .sidebar .uk-nav-side > li > a:hover,
html.theme-light #tm-left-section .sidebar .uk-nav-side ul a:hover {
  background: rgba(78, 161, 244, 0.12) !important;
  color: #ffffff !important;
}

html.theme-light #tm-left-section .sidebar .topitems {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 82px;
  margin: 0 0 10px !important;
  padding: 10px !important;
  border: 1px solid #e4eaf1 !important;
  border-radius: 9px;
  background: #ffffff !important;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08) !important;
}

html.theme-light #tm-left-section .sidebar .topitems img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

html.theme-light #tm-left-section .sidebar .topitems .title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  padding: 0 0 14px;
  color: #1f2937 !important;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html.theme-light #tm-left-section .sidebar .topitems .title:hover {
  color: #075fba !important;
}

html.theme-light #tm-left-section .sidebar .topitems::before {
  top: auto;
  right: 8px;
  bottom: 8px;
  padding: 2px 5px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 8px;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__card {
  display: block;
  min-height: 166px;
  padding: 14px !important;
  border: 1px solid #e1e7ee !important;
  border-radius: 10px;
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08) !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__card + .rates-highlight__card {
  margin-top: 10px;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__top {
  gap: 10px;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 8px;
  font-size: 11px;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__heading {
  gap: 3px;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__badge {
  padding: 4px 7px;
  border-radius: 5px;
  background: #eff6ff !important;
  color: #075fba !important;
  font-size: 9px;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__label,
html.theme-light #tm-left-section .sidebar .rates-highlight__meta {
  color: #64748b !important;
  font-size: 11px;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__price {
  margin-top: 12px;
  color: #172033 !important;
  font-size: 21px;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__value-label {
  color: #94a3b8 !important;
  font-size: 9px;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__link {
  display: block;
  margin-top: 8px;
  color: #0b63ce !important;
  font-size: 11px;
}

html.theme-light #tm-left-section .sidebar .uk-nav-side {
  margin-bottom: 0;
}

html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom {
  display: flow-root;
  padding: 14px 12px 5px;
  border: 1px solid #dce4ed !important;
  border-radius: 14px;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div {
  padding-left: 8px;
  padding-right: 8px;
}

html.theme-light #tm-right-section .uk-overlay,
html.theme-light #tm-right-section .uk-panel.home {
  border-color: #e1e7ee !important;
}

html.theme-light #tm-right-section .uk-overlay {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

html.theme-light #tm-right-section .uk-panel.home {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06) !important;
}

html.theme-light #tm-right-section .uk-panel.home .uk-panel-title {
  min-height: 38px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html.theme-light .genre-card {
  border: 1px solid #d8e1eb !important;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

html.theme-light .genre-card:hover {
  border-color: rgba(11, 99, 206, 0.44) !important;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
}

html.theme-light .genre-card-content {
  padding: 14px;
}

html.theme-light .genre-card-title {
  font-size: 15px;
  font-weight: 800;
}

html.theme-light .genre-card-count {
  font-size: 10px;
}

@media (max-width: 767px) {
  html.theme-light #tm-left-section .sidebar {
    position: static;
  }

  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom {
    border-radius: 10px;
    padding: 10px 7px 3px;
  }

  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* -------------------------------------------------------------------------
 * Editorial refinement
 * ------------------------------------------------------------------------- */

html.theme-light body {
  background: #f3f6fa !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

html.theme-light .uk-container {
  max-width: 1400px;
}

html.theme-light #tm-header {
  border-bottom: 1px solid #e5eaf0;
}

html.theme-light #tm-header .uk-navbar-brand img,
html.theme-light .mobile-drawer__brand img {
  max-height: 40px;
  width: auto;
}

html.theme-light #tm-right-section .title,
html.theme-light #tm-right-section .sectiontitle,
html.theme-light #tm-left-section .title-divider {
  min-height: 24px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9e1ea !important;
  color: #1e293b !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

html.theme-light #tm-right-section .title::after,
html.theme-light #tm-right-section .sectiontitle::after,
html.theme-light #tm-left-section .title-divider::after {
  background: linear-gradient(90deg, #0b63ce, #57a3f5) !important;
  bottom: -1px;
  height: 2px;
  width: 44px;
}

html.theme-light #tm-right-section .title .viewall,
html.theme-light #tm-right-section .sectiontitle .viewall {
  color: #0b63ce !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom {
  margin-bottom: 30px !important;
  padding: 14px 10px 4px;
  border: 1px solid #d9e1ea !important;
  border-radius: 10px;
  background: #e5e9ee !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 22px rgba(15, 23, 42, 0.05);
}

html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom > div {
  margin-bottom: 12px;
}

html.theme-light #tm-right-section .uk-overlay {
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

html.theme-light #tm-right-section .uk-overlay img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

html.theme-light #tm-right-section .uk-panel.home,
html.theme-light #tm-right-section .uk-panel.home:hover {
  min-height: 58px;
  margin-bottom: 0 !important;
  padding: 11px 12px 12px !important;
  border: 0 !important;
  border-radius: 0 0 7px 7px;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  transform: none;
}

html.theme-light #tm-right-section .uk-panel.home .uk-panel-title {
  margin: 0;
  padding: 0;
  color: #1f2937 !important;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

html.theme-light #tm-left-section .sidebar .uk-panel,
html.theme-light #tm-left-section .sidebar .sidebar-profile,
html.theme-light #tm-left-section .sidebar .topitems,
html.theme-light #tm-left-section .sidebar .mini-card {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(180deg, #2b3444 0%, #202938 100%) !important;
  color: #e6edf5 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.17) !important;
}

html.theme-light #tm-left-section .sidebar .title-divider,
html.theme-light #tm-left-section .sidebar .uk-nav-side .uk-nav-header {
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

html.theme-light #tm-left-section .sidebar .uk-nav-side > li > a,
html.theme-light #tm-left-section .sidebar .uk-nav-side ul a,
html.theme-light #tm-left-section .sidebar .topitems .title,
html.theme-light #tm-left-section .sidebar .uk-text-muted,
html.theme-light #tm-left-section .sidebar .rates-highlight__label,
html.theme-light #tm-left-section .sidebar .rates-highlight__meta {
  color: #d5deea !important;
}

html.theme-light #tm-left-section .sidebar .uk-nav-side > li > a:hover,
html.theme-light #tm-left-section .sidebar .uk-nav-side ul a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html.theme-light #tm-left-section .sidebar .topitems {
  border-radius: 7px;
}

html.theme-light #tm-left-section .sidebar .topitems:hover {
  border-color: rgba(87, 163, 245, 0.45) !important;
  transform: translateY(-2px);
}

html.theme-light #tm-left-section .sidebar .topitems .title:hover,
html.theme-light #tm-left-section .sidebar .rates-highlight__link {
  color: #ffffff !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__card {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(15, 23, 42, 0.28) !important;
  box-shadow: none !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__badge {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__price {
  color: #ffffff;
}

html.theme-light .article-hero {
  padding: 20px 0 24px;
  background: linear-gradient(180deg, #edf2f7 0%, #f3f6fa 100%);
}

html.theme-light .article-hero__stage {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
}

html.theme-light .article-hero__rail {
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

html.theme-light .article-hero__card {
  border-color: #e1e7ee;
  background: #f8fafc;
  box-shadow: none;
}

html.theme-light .article-hero__card-title {
  color: #1e293b;
}

html.theme-light .article-hero__card:hover,
html.theme-light .article-hero__card.is-active {
  border-color: rgba(11, 99, 206, 0.42);
  background: #eff6ff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
}

html.theme-light .article-seo__header {
  padding: 22px 24px 20px;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html.theme-light .article-seo__title {
  margin-bottom: 10px !important;
  color: #111827 !important;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

html.theme-light .article-seo__figure {
  overflow: hidden;
  margin-top: 18px !important;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

html.theme-light .article-meta {
  color: #64748b !important;
  font-size: 12px;
}

html.theme-light .article-content {
  max-width: 920px;
  padding: 6px 4px 0;
}

html.theme-light .article-content p,
html.theme-light .article-content li,
html.theme-light .article-intro p,
html.theme-light .article-conclusion p {
  color: #334155 !important;
  font-size: 16px;
  line-height: 1.82;
}

html.theme-light .article-content h2,
html.theme-light .article-content h3 {
  color: #172033 !important;
  font-weight: 800;
  letter-spacing: -0.012em;
}

html.theme-light .article-quick-facts {
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07) !important;
}

html.theme-light .article-faq__item {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

html.theme-light #tm-footer {
  margin-top: 18px;
  background: #ffffff !important;
}

@media (max-width: 767px) {
  html.theme-light #tm-right-section .uk-grid.uk-margin-large-bottom {
    padding: 10px 8px 2px;
  }

  html.theme-light #tm-right-section .uk-panel.home .uk-panel-title {
    font-size: 12px;
  }

  html.theme-light .article-seo__header {
    padding: 16px 14px 14px;
    border-radius: 9px;
  }

  html.theme-light .article-content p,
  html.theme-light .article-content li,
  html.theme-light .article-intro p,
  html.theme-light .article-conclusion p {
    font-size: 16px;
    line-height: 1.75;
  }
}

/* Final cascade overrides. */
html.theme-light #tm-topbar,
html.theme-light #tm-header,
html.theme-light .tm-navbar,
html.theme-light .uk-navbar-secondary {
  background: linear-gradient(180deg, #172033 0%, #0b0f19 100%) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.18) !important;
}

html.theme-light #tm-topbar .uk-navbar-nav > li > a,
html.theme-light #tm-header .uk-navbar-nav > li > a,
html.theme-light #tm-header .uk-button-link,
html.theme-light #tm-header .uk-navbar-toggle,
html.theme-light .tm-navbar-contrast .uk-navbar-nav > li > a,
html.theme-light .tm-navbar-contrast .uk-navbar-brand,
html.theme-light .tm-navbar-contrast .uk-navbar-toggle {
  color: #c5d0df !important;
}

html.theme-light #tm-topbar .uk-navbar-nav > li > a:hover,
html.theme-light #tm-header .uk-navbar-nav > li > a:hover,
html.theme-light #tm-header .uk-button-link:hover,
html.theme-light #tm-header .uk-navbar-toggle:hover,
html.theme-light #tm-header .mainNavBar > li:hover > a,
html.theme-light #tm-header .mainNavBar > li.uk-active > a {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
}

html.theme-light .tm-header-search .uk-search-field {
  background: rgba(11, 15, 25, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #f8fafc !important;
}

html.theme-light .tm-header-search .uk-search-field::placeholder,
html.theme-light .tm-header-search:before {
  color: #9fb0c3 !important;
}

html.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: #e5edf6 !important;
  box-shadow: none !important;
}

html.theme-light .theme-toggle:hover,
html.theme-light .theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #ffffff !important;
}

html.theme-light .uk-button-primary,
html.theme-light .uk-button-danger {
  background: linear-gradient(135deg, #e50914, #b9060f) !important;
  border-color: transparent !important;
}

html.theme-light a,
html.theme-light .pagebody a,
html.theme-light .article-content a,
html.theme-light .breadcrumb a,
html.theme-light .player-breadcrumb a,
html.theme-light #tm-right-section .title .viewall,
html.theme-light #tm-right-section .sectiontitle .viewall,
html.theme-light .article-resource-links a,
html.theme-light .article-toc-list a,
html.theme-light #tm-left-section .sidebar .rates-highlight__link,
html.theme-light #tm-left-section .sidebar .topitems .title:hover {
  color: #1f2937 !important;
}

html.theme-light a:hover,
html.theme-light .pagebody a:hover,
html.theme-light .article-content a:hover,
html.theme-light .breadcrumb a:hover,
html.theme-light .player-breadcrumb a:hover,
html.theme-light #tm-right-section .title .viewall:hover,
html.theme-light #tm-right-section .sectiontitle .viewall:hover,
html.theme-light .article-toc-list a:hover {
  color: #000000 !important;
}

html.theme-light .article-content a,
html.theme-light .pagebody a {
  text-decoration: underline;
  text-decoration-color: rgba(31, 41, 55, 0.32);
  text-underline-offset: 2px;
}

html.theme-light #tm-right-section .title .viewall,
html.theme-light #tm-right-section .sectiontitle .viewall {
  text-decoration: none;
}

html.theme-light #tm-right-section .title::after,
html.theme-light #tm-right-section .sectiontitle::after,
html.theme-light #tm-left-section .title-divider::after,
html.theme-light .pagetitle::after {
  background: #9aa6b5 !important;
}

html.theme-light .article-quick-facts {
  border-color: #d5dbe3 !important;
  border-left-color: #6b7280 !important;
  background: linear-gradient(135deg, #f8fafc, #ffffff) !important;
}

html.theme-light .article-resource-links a,
html.theme-light .article-toc-toggle,
html.theme-light .article-toc-list {
  border-color: #d5dbe3 !important;
  background: #f1f3f5 !important;
}

html.theme-light .article-faq__item summary::after,
html.theme-light .article-toc-toggle::after {
  color: #4b5563 !important;
}

html.theme-light .article-content th {
  background: #f1f3f5 !important;
  color: #111827 !important;
}

html.theme-light .article-content td,
html.theme-light .article-content th {
  border-color: #d5dbe3 !important;
  color: #1f2937 !important;
}

/* Last-word readability guard: article HTML can contain editor inline colors. */
html.theme-light .article-content,
html.theme-light .article-content p,
html.theme-light .article-content li,
html.theme-light .article-content ul,
html.theme-light .article-content ol,
html.theme-light .article-content blockquote,
html.theme-light .article-content span,
html.theme-light .article-content div,
html.theme-light .article-content td {
  color: #1f2937 !important;
}

html.theme-light .article-content h1,
html.theme-light .article-content h2,
html.theme-light .article-content h3,
html.theme-light .article-content h4,
html.theme-light .article-content h5,
html.theme-light .article-content h6,
html.theme-light .article-content strong,
html.theme-light .article-content b,
html.theme-light .article-content th {
  color: #111827 !important;
  font-weight: 750 !important;
}

html.theme-light .article-content a,
html.theme-light .article-content a:visited,
html.theme-light .article-content a:hover,
html.theme-light .article-content a:focus {
  color: #1f2937 !important;
}

/* Final parity pass: keep the night-view type system and dark sidebar in light mode. */
/* Fixed top utility frame: the theme switch must never change navbar height or flow. */
html.theme-light #tm-topbar,
#tm-topbar {
  height: 40px !important;
  min-height: 40px !important;
}

#tm-topbar > .uk-container {
  position: relative !important;
  height: 40px !important;
  min-height: 40px !important;
}

#tm-topbar .tm-topbar-controls {
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  z-index: 5;
  display: flex !important;
  align-items: center;
  gap: 6px;
  float: none !important;
  height: 24px;
  margin: 0 !important;
  transform: translateY(-50%);
  white-space: nowrap;
}

#tm-topbar .tm-topbar-controls .theme-toggle--topbar {
  flex: 0 0 24px;
  position: relative;
  top: 0;
  transform: none;
}

/* One immutable button frame in both themes; only the icon glyph changes. */
#tm-topbar .tm-topbar-controls .theme-toggle--topbar,
html.theme-light #tm-topbar .tm-topbar-controls .theme-toggle--topbar {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 0 0 0 6px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e5edf6 !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transform: none !important;
}

#tm-topbar .tm-topbar-controls .theme-toggle--topbar .theme-toggle__icon,
html.theme-light #tm-topbar .tm-topbar-controls .theme-toggle--topbar .theme-toggle__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 14px !important;
}

#tm-topbar .tm-topbar-controls .theme-toggle--topbar:hover,
#tm-topbar .tm-topbar-controls .theme-toggle--topbar:focus-visible,
html.theme-light #tm-topbar .tm-topbar-controls .theme-toggle--topbar:hover,
html.theme-light #tm-topbar .tm-topbar-controls .theme-toggle--topbar:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  color: #ffffff !important;
  outline: none !important;
}

/* Header typography and spacing stay identical to the night view. */
html.theme-light #tm-topbar .uk-navbar-nav > li > a {
  box-sizing: border-box !important;
  height: 40px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 40px !important;
}

html.theme-light #tm-header {
  padding: 0 !important;
}

html.theme-light #tm-header .tm-header-shell {
  min-height: 72px !important;
  gap: 22px !important;
}

html.theme-light #tm-header .uk-navbar-brand {
  max-width: 160px !important;
  padding: 0 !important;
}

html.theme-light #tm-header .uk-navbar-brand img,
html.theme-light .mobile-drawer__brand img {
  max-height: none !important;
}

html.theme-light .tm-header-search {
  flex: 0 0 250px !important;
}

html.theme-light .tm-header-search .uk-search-field {
  height: 42px !important;
  border-radius: 6px !important;
  font: inherit !important;
}

html.theme-light .tm-header-right {
  gap: 18px !important;
}

html.theme-light #tm-header .mainNavBar {
  gap: 6px !important;
}

html.theme-light #tm-header .mainNavBar > li > a {
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: normal !important;
}

html.theme-light #tm-header .uk-button-link,
html.theme-light #tm-header .uk-button-large {
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Keep hero/banner copy white over the dark image in light mode as well. */
html.theme-light .article-hero__title,
html.theme-light .article-hero__title a,
html.theme-light .article-hero__title a:hover,
html.theme-light .article-hero__title a:focus,
html.theme-light .article-hero__text,
html.theme-light .article-hero__tag {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

html.theme-light .article-hero__button,
html.theme-light .article-hero__button:hover,
html.theme-light .article-hero__button:focus {
  color: #06261f !important;
}

/* Sidebar typography and preview geometry match the dark view exactly. */
html.theme-light #tm-left-section .sidebar .uk-panel {
  padding: 16px 18px !important;
  border-radius: 8px !important;
}

html.theme-light #tm-left-section .sidebar .title-divider {
  min-height: 0 !important;
  margin: 0 0 22px !important;
  padding: 0 0 14px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  letter-spacing: 0.04em !important;
  line-height: 1.4 !important;
}

html.theme-light #tm-left-section .sidebar .title-divider::after {
  width: 40px !important;
  height: 1px !important;
  background: var(--primary-color) !important;
}

html.theme-light #tm-left-section .sidebar .uk-nav-side > li > a,
html.theme-light #tm-left-section .sidebar .uk-nav-side ul a {
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

html.theme-light #tm-left-section .sidebar .topitems {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: 0 !important;
  margin: 0 0 12px !important;
  padding: 12px !important;
  border-radius: 8px !important;
}

html.theme-light #tm-left-section .sidebar .topitems img {
  width: 100% !important;
  height: 64px !important;
  border-radius: 6px !important;
}

html.theme-light #tm-left-section .sidebar .topitems .title {
  padding-top: 26px !important;
  padding-right: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__card {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-height: 0 !important;
  padding: 18px 20px !important;
  border-radius: 6px !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__card + .rates-highlight__card {
  margin-top: 12px !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__top {
  gap: 14px !important;
  margin-bottom: 2px !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__icon {
  width: 34px !important;
  height: 34px !important;
  flex-basis: 34px !important;
  font-size: 14px !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__badge {
  padding: 5px 9px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__price {
  margin-top: 0 !important;
  font-size: 26px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__label,
html.theme-light #tm-left-section .sidebar .rates-highlight__meta {
  font-size: 13px !important;
  line-height: 1.4 !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__value-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__link {
  margin-top: 4px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html.theme-light body,
html.theme-light .pagebody,
html.theme-light #tm-left-section,
html.theme-light #tm-left-section .sidebar,
html.theme-light #tm-right-section {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
}

html.theme-light .pagebody,
html.theme-light .article-content {
  font-size: 18px !important;
  line-height: 2 !important;
}

html.theme-light .article-content p,
html.theme-light .article-content li,
html.theme-light .article-intro p,
html.theme-light .article-conclusion p {
  font-size: inherit !important;
  line-height: inherit !important;
}

html.theme-light .pagebody h1,
html.theme-light .article-content h1 {
  font-size: 24px !important;
  font-weight: bold !important;
}

html.theme-light .pagebody h2,
html.theme-light .article-content h2 {
  font-size: 20px !important;
  font-weight: bold !important;
}

html.theme-light .pagebody h3,
html.theme-light .article-content h3 {
  font-size: 17px !important;
  font-weight: bold !important;
}

html.theme-light .pagebody h4,
html.theme-light .article-content h4 {
  font-size: 15px !important;
  font-weight: bold !important;
}

html.theme-light #tm-left-section .sidebar .uk-panel,
html.theme-light #tm-left-section .sidebar .sidebar-profile,
html.theme-light #tm-left-section .sidebar .mini-card {
  border: 1px solid rgba(148, 163, 184, 0.08) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(13, 19, 31, 0.98) 100%) !important;
  color: #e5e7eb !important;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22) !important;
}

html.theme-light #tm-left-section .sidebar .topitems {
  border: 1px solid rgba(148, 163, 184, 0.08) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%) !important;
  color: #f8fafc !important;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.16) !important;
}

html.theme-light #tm-left-section .sidebar .rates-highlight__card {
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  border-radius: 7px !important;
  background: rgba(15, 23, 42, 0.58) !important;
  color: #e5e7eb !important;
  box-shadow: none !important;
}

html.theme-light #tm-left-section .sidebar .title-divider,
html.theme-light #tm-left-section .sidebar .uk-nav-side .uk-nav-header,
html.theme-light #tm-left-section .sidebar .uk-text-muted,
html.theme-light #tm-left-section .sidebar .rates-highlight__label,
html.theme-light #tm-left-section .sidebar .rates-highlight__meta,
html.theme-light #tm-left-section .sidebar .topitems .title {
  color: #cbd5e1 !important;
}

html.theme-light #tm-left-section .sidebar .topitems .title:hover,
html.theme-light #tm-left-section .sidebar .rates-highlight__link,
html.theme-light #tm-left-section .sidebar .rates-highlight__price {
  color: #f8fafc !important;
}

/* Category archive contrast: keep the light layout, but make every text layer readable. */
html.theme-light #tm-right-section .genre-overlay .pagetitle {
  color: #111827 !important;
  text-shadow: none !important;
}

html.theme-light #tm-right-section .genre-overlay .genre-description {
  color: #475569 !important;
  opacity: 1 !important;
}

html.theme-light #tm-right-section .uk-panel-box > .uk-panel > .uk-panel-title,
html.theme-light #tm-right-section .uk-panel-box > .uk-panel > .uk-panel-title a {
  color: #111827 !important;
}

html.theme-light #tm-right-section .uk-panel-box > .uk-panel > p {
  color: #475569 !important;
  opacity: 1 !important;
}

/* Category cards: one dependable frame, one image crop, and aligned actions. */
html.theme-light #tm-right-section .category-article-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

html.theme-light #tm-right-section .category-article-column {
  display: flex !important;
  align-items: stretch !important;
}

html.theme-light #tm-right-section .category-article-card {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 420px !important;
  min-height: 420px !important;
  padding: 15px !important;
  background: #ffffff !important;
  border: 1px solid #dfe5ec !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

html.theme-light #tm-right-section .category-article-card__media {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  border-radius: 6px !important;
}

html.theme-light #tm-right-section .category-article-card__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
}

html.theme-light #tm-right-section .category-article-card__body {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  gap: 10px !important;
  padding: 15px 0 0 !important;
}

html.theme-light #tm-right-section .category-article-card__title {
  display: -webkit-box !important;
  min-height: 67px !important;
  margin: 0 !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  white-space: normal !important;
  text-overflow: clip !important;
  color: #111827 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

html.theme-light #tm-right-section .category-article-card__title a {
  color: inherit !important;
}

html.theme-light #tm-right-section .category-article-card__excerpt {
  display: -webkit-box !important;
  min-height: 61px !important;
  margin: 0 !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  opacity: 1 !important;
}

html.theme-light #tm-right-section .category-article-card__actions {
  margin-top: auto !important;
  text-align: right !important;
}

@media (max-width: 767px) {
  html.theme-light #tm-right-section .category-article-card {
    height: auto !important;
    min-height: 0 !important;
  }

  html.theme-light #tm-right-section .category-article-card__media {
    flex-basis: auto !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }

  html.theme-light #tm-right-section .category-article-card__image {
    aspect-ratio: 16 / 9 !important;
  }

  html.theme-light #tm-right-section .category-article-card__body {
    min-height: 225px !important;
  }
}

html.theme-light .tm-topbar-controls,
.tm-topbar-controls {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.tm-topbar-controls .theme-toggle--topbar {
  width: 24px;
  min-width: 24px;
  height: 20px;
  min-height: 20px;
  margin-left: 3px;
  padding: 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

.tm-topbar-controls .theme-toggle--topbar .theme-toggle__icon {
  width: auto;
  height: auto;
  font-size: 12px;
}

.tm-topbar-controls .theme-toggle--topbar .theme-toggle__label {
  display: none;
}

.tm-topbar-controls .theme-toggle--topbar:hover,
.tm-topbar-controls .theme-toggle--topbar:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

/* Final mobile-only parity overrides at the end of the cascade. */
html.theme-light .mobile-drawer,
html.theme-light .uk-offcanvas-bar {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.99) 0%, rgba(11, 15, 25, 0.99) 100%) !important;
  color: #e5e7eb !important;
}

html.theme-light .mobile-drawer__profile .uk-comment,
html.theme-light .mobile-drawer__nav,
html.theme-light .mobile-drawer__socials {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18) !important;
}

html.theme-light .mobile-drawer__section-title,
html.theme-light .mobile-drawer__nav > li > a,
html.theme-light .mobile-drawer__nav .uk-nav-sub > li > a,
html.theme-light .mobile-drawer__links > li > a {
  color: #e5e7eb !important;
}

html.theme-light .mobile-drawer__nav > li > a:hover,
html.theme-light .mobile-drawer__nav .uk-nav-sub > li > a:hover,
html.theme-light .mobile-drawer__links > li > a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

html.theme-light .mobile-drawer__search .uk-search-field {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f8fafc !important;
}

html.theme-light .mobile-drawer__search .uk-search-field::placeholder {
  color: #94a3b8 !important;
}

html.theme-light .theme-toggle--drawer {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e5edf6 !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  #tm-topbar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  html.theme-light #tm-header {
    margin-top: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}

/* Light-theme favourite action: keep the control readable and make the heart the visual cue. */
html.theme-light .article-favorite-btn--add,
html.theme-light .article-favorite-btn--signin {
  background: #ffffff !important;
  border-color: #d7e1ec !important;
  color: #162337 !important;
  box-shadow: 0 10px 24px rgba(15, 35, 58, 0.12) !important;
}

html.theme-light .article-favorite-btn--add i,
html.theme-light .article-favorite-btn--signin i {
  color: #e11d48 !important;
}

html.theme-light .article-favorite-btn--add:hover,
html.theme-light .article-favorite-btn--add:focus,
html.theme-light .article-favorite-btn--signin:hover,
html.theme-light .article-favorite-btn--signin:focus {
  background: #fff5f7 !important;
  border-color: #e11d48 !important;
  color: #162337 !important;
}

html.theme-light .article-favorite-btn--remove {
  color: #b91c1c !important;
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}

html.theme-light .article-favorite-btn--remove i {
  color: #dc2626 !important;
}

/* Keep the light mobile category strip visible as a stable horizontal row. */
@media (max-width: 767px) {
  html.theme-light .home-categories-slider .uk-slider-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 5px !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
  }

  html.theme-light .home-categories-slider ul.uk-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    position: relative !important;
    width: max-content !important;
    min-height: 142px !important;
    margin: 0 !important;
    padding: 0 !important;
    touch-action: pan-x pan-y !important;
  }

  html.theme-light .home-categories-slider ul.uk-slider > li {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    float: none !important;
    flex: 0 0 calc((100vw - 40px) / 3) !important;
    width: calc((100vw - 40px) / 3) !important;
    min-width: calc((100vw - 40px) / 3) !important;
    margin: 0 !important;
    padding: 0 4px !important;
  }

  html.theme-light .home-categories-slider .genre-card {
    width: 100% !important;
    height: 142px !important;
    margin: 0 !important;
  }

  html.theme-light .home-categories-slider .genre-card-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
