/* === Crypto Exchange Light Theme Overrides === */
/* Style: 浅色科技风 (Light Tech) — Clean, modern, light theme inspired by CoinGecko/CoinMarketCap */

/* --- Base & Typography --- */
body {
    background: #f8fafc;
    color: #334155;
}

#page.site {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.skip-link.screen-reader-text:not(:focus):not(:active) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
}

a {
    color: #2563eb;
}
a:hover {
    color: #0d9488;
}

/* --- Header --- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.site-header.is-sticky.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.site-title a {
    color: #0f172a;
}

.site-description {
    color: #64748b;
}

.main-nav a {
    color: #475569;
}
.main-nav a:hover {
    color: #2563eb;
}

.main-nav .sub-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.main-nav .sub-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.main-nav .sub-menu a {
    color: #475569 !important;
}

.menu-toggle span {
    background: #334155;
}

.search-toggle {
    color: #64748b;
}

.lang-toggle {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.lang-toggle:hover {
    background: #e2e8f0;
}

.lang-dropdown {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.lang-dropdown a {
    color: #475569;
}
.lang-dropdown a:hover {
    background: #f1f5f9;
    color: #2563eb;
}
.lang-dropdown .active a {
    color: #2563eb;
}

.header-search-form {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

/* --- Top Announcement Bar --- */
.top-announcement-bar {
    background: linear-gradient(90deg, #f1f5f9, #f8fafc) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

/* --- Market Data Strip --- */
.market-data-strip {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.market-data-strip .market-strip-item {
    color: #64748b !important;
}

.market-data-strip strong {
    color: #0f172a !important;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 50%, #f8fafc 100%);
}

.hero-section .hero-title,
.hero-section h1 {
    color: #0f172a;
}

.hero-section .hero-subtitle,
.hero-section p {
    color: #475569;
}

.hero-shapes .hero-shape {
    opacity: .04;
}

/* --- Buttons --- */
.btn-primary {
    background: #2563eb;
    color: #ffffff;
}
.btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(37,99,235,.25);
}

.btn-outline {
    border: 1px solid #cbd5e1;
    color: #475569;
}
.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* --- Section Backgrounds --- */
.section-bg-dark {
    background: #f8fafc;
}

.section-bg-darker {
    background: #f1f5f9;
}

.section-title {
    color: #0f172a;
}

.section-title::after {
    background: #2563eb;
}

.section-subtitle {
    color: #64748b;
}

/* --- Price Ticker --- */
.price-ticker {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.ticker-item {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.ticker-item:hover {
    background: #f8fafc;
}

.ticker-pair {
    color: #0f172a;
}

.ticker-price {
    color: #0f172a;
}

.ticker-change.up {
    color: #059669;
    background: rgba(5,150,105,.08);
}

.ticker-change.down {
    color: #dc2626;
    background: rgba(220,38,38,.08);
}

.ticker-volume {
    color: #94a3b8;
}

.ticker-updating {
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
}

/* --- Exchange Cards --- */
.exchange-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.exchange-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    border-color: #2563eb;
}

.exchange-card.featured {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.exchange-badge {
    background: #2563eb;
    color: #ffffff;
}

.exchange-logo {
    background: #f1f5f9;
}

.exchange-name {
    color: #0f172a;
}

.exchange-desc {
    color: #64748b;
}

.exchange-fee {
    color: #64748b;
}

.exchange-fee strong {
    color: #059669;
}

.exchange-rating {
    color: #f59e0b;
}

.exchange-rating span {
    color: #94a3b8;
}

.exchange-features li {
    color: #475569;
}

.exchange-features li::before {
    color: #0d9488;
}

.exchange-actions {
    border-top: 1px solid #e2e8f0;
}

.exchange-actions .btn-text {
    color: #64748b;
}

/* --- Feature Cards --- */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37,99,235,.08);
}

.feature-title {
    color: #0f172a;
}

.feature-desc {
    color: #64748b;
}

/* --- FAQ --- */
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.faq-question {
    color: #0f172a;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-icon {
    color: #2563eb;
}

.faq-answer {
    color: #475569;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #eff6ff, #f0fdfa);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.cta-title {
    color: #0f172a;
}

.cta-desc {
    color: #475569;
}

/* --- Stats Counter --- */
.stats-section {
    background: #ffffff;
}

.stat-number {
    color: #2563eb;
}

.stat-label {
    color: #64748b;
}

/* --- How It Works --- */
.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.step-number {
    background: #2563eb;
    color: #ffffff;
}

.step-title {
    color: #0f172a;
}

.step-desc {
    color: #64748b;
}

/* --- Testimonials --- */
.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.testimonial-text {
    color: #475569;
}

.testimonial-name {
    color: #0f172a;
}

.testimonial-role {
    color: #64748b;
}

/* --- Post Cards --- */
.post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.post-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.post-title a {
    color: #0f172a;
}

.post-title a:hover {
    color: #2563eb;
}

.post-meta {
    color: #94a3b8;
}

.post-meta a {
    color: #64748b;
}

.post-excerpt {
    color: #475569;
}

.read-more {
    color: #2563eb;
}

/* --- Sidebar & Widgets --- */
.widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.widget-title {
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.widget ul li {
    border-bottom: 1px solid #f1f5f9;
}

.widget ul li a {
    color: #475569;
}

.widget ul li:hover a {
    color: #2563eb;
}

.widget select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.widget_tag_cloud .tagcloud a {
    background: #f1f5f9;
    color: #475569;
}

.widget_tag_cloud .tagcloud a:hover {
    background: #2563eb;
    color: #ffffff;
}

.widget_search .search-field {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.widget_search .search-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* --- Footer --- */
.site-footer {
    background: #1e293b;
    border-top: 1px solid #334155;
}

/* Keep footer dark for contrast - it looks better */
.site-footer .footer-col-title {
    color: #f1f5f9;
}

.site-footer .footer-about-text {
    color: rgba(255,255,255,.6);
}

.site-footer a {
    color: rgba(255,255,255,.55);
}

.site-footer a:hover {
    color: #60a5fa;
}

.footer-widgets .widget-title {
    color: rgba(255,255,255,.8);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-widgets .widget {
    background: transparent !important;
    border: none !important;
}

.footer-widgets .widget ul li {
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-social .social-link {
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.65);
}

.footer-social .social-link:hover {
    border-color: #60a5fa;
    color: #60a5fa;
    background: rgba(96,165,250,.08);
}

.footer-disclaimer p {
    color: rgba(255,255,255,.35);
}

.footer-copyright {
    background: #0f172a;
}

.footer-copyright p,
.footer-copyright a {
    color: rgba(255,255,255,.4);
}

.footer-copyright a:hover {
    color: #60a5fa;
}

.footer-newsletter {
    background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(13,148,136,.04)) !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.footer-newsletter h3 {
    color: #0f172a !important;
}

.footer-newsletter p {
    color: #64748b !important;
}

.footer-newsletter input[type="email"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

.footer-badges span {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: rgba(255,255,255,.5) !important;
}

/* --- Archive / Blog Pages --- */
.archive-hero {
    background: #f1f5f9;
}

.archive-hero-title {
    color: #0f172a;
}

.archive-hero-desc {
    color: #475569;
}

.archive-hero-meta {
    color: #64748b;
}

.breadcrumb {
    color: #64748b;
}

.breadcrumb a {
    color: #2563eb;
}

.breadcrumb .sep {
    color: #cbd5e1;
}

.breadcrumb .current {
    color: #334155;
}

/* --- Single Post --- */
.post-detail .post-title {
    color: #0f172a;
}

.post-detail .post-meta {
    border-bottom: 1px solid #e2e8f0;
}

.post-content {
    color: #334155;
}

.post-content h2 {
    border-bottom: 1px solid #e2e8f0;
}

.post-content blockquote {
    border-left: 3px solid #2563eb;
    background: #f8fafc;
    color: #475569;
}

.post-content code {
    background: #f1f5f9;
    color: #334155;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
}

/* --- Comments --- */
.comments-area {
    border-top: 1px solid #e2e8f0;
}

.comment-body {
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.comment-author .fn {
    color: #0f172a;
}

.comment-metadata a {
    color: #94a3b8;
}

.comment-content {
    color: #475569;
}

/* --- Search --- */
.search-form .search-field {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.search-form .search-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* --- 404 --- */
.error-404 .page-title {
    color: #0f172a;
}

/* --- Pagination --- */
.navigation .nav-links a,
.pagination .page-numbers {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.navigation .nav-links a:hover,
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* --- Forms --- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

input:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    outline: none;
}

/* --- Header Auth Buttons (Light theme) --- */
.btn-outline-sm {
    border: 1px solid rgba(37,99,235,.4) !important;
    color: #2563eb !important;
}

.btn-primary-sm {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* --- Back to Top --- */
.back-to-top {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* --- Selection --- */
::selection {
    background: rgba(37,99,235,.15);
    color: #0f172a;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === Light clarity hardening: readable, high-contrast, fully light UI === */
:root {
    --primary: #1d4ed8;
    --secondary: #0f172a;
    --accent: #0f766e;
    --dark: #f8fafc;
    --darker: #edf3fb;
    --light: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #d8e2ee;
    --white: #ffffff;
    --black: #0f172a;
    --shadow: 0 1px 3px rgba(15,23,42,.08);
    --shadow-md: 0 14px 32px rgba(15,23,42,.10);
    --shadow-lg: 0 28px 70px rgba(15,23,42,.13);
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(37,99,235,.08), transparent 30rem),
        radial-gradient(circle at 92% 10%, rgba(13,148,136,.08), transparent 28rem),
        #f6f9fd !important;
    color: #1e293b !important;
    -webkit-font-smoothing: antialiased;
}

.site-header,
.main-nav .sub-menu,
.lang-dropdown,
.header-search-form,
.price-ticker,
.market-summary-bar,
.summary-stat,
.ticker-item,
.exchange-card,
.exchange-metric,
.feature-card,
.faq-item,
.step-card,
.testimonial-card,
.post-card,
.widget,
.comment-body,
.search-form .search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #d8e2ee !important;
}

.site-header {
    box-shadow: 0 8px 30px rgba(15,23,42,.08) !important;
}

.top-announcement-bar,
.market-data-strip,
.section-bg-dark,
.section-bg-darker,
.archive-hero {
    background: #edf3fb !important;
    color: #475569 !important;
    border-color: #d8e2ee !important;
}

.hero-section {
    background:
        linear-gradient(135deg, rgba(219,234,254,.95), rgba(204,251,241,.86)),
        radial-gradient(circle at 30% 30%, rgba(37,99,235,.16), transparent 26rem) !important;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.archive-hero-title,
.ticker-price,
.ticker-pair-label,
.exchange-name,
.feature-title,
.faq-question,
.step-title,
.testimonial-name,
.post-title a,
.widget-title,
.footer-col-title {
    color: #0f172a !important;
}

p,
.section-subtitle,
.hero-subtitle,
.exchange-desc,
.feature-desc,
.faq-answer,
.step-desc,
.testimonial-text,
.post-excerpt,
.post-content,
.widget ul li a,
.market-data-strip .market-strip-item,
.ticker-volume,
.ticker-hl-row,
.summary-help,
.summary-label,
.summary-label-sm {
    color: #475569 !important;
}

a,
.read-more,
.breadcrumb a,
.post-title a:hover {
    color: #1d4ed8 !important;
}

a:hover,
.main-nav a:hover,
.lang-dropdown a:hover,
.widget ul li:hover a,
.exchange-actions .btn-text:hover {
    color: #0f766e !important;
}

.main-nav a,
.lang-toggle,
.lang-dropdown a,
.btn-outline,
.btn-outline-sm,
.navigation .nav-links a,
.pagination .page-numbers,
.widget_tag_cloud .tagcloud a {
    border-radius: 12px;
}

.main-nav a:hover,
.main-nav .sub-menu a:hover,
.lang-dropdown a:hover,
.ticker-item:hover,
.exchange-card:hover,
.feature-card:hover,
.faq-question:hover,
.post-card:hover,
.widget_tag_cloud .tagcloud a:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    box-shadow: 0 14px 32px rgba(37,99,235,.12) !important;
}

.exchange-card:hover *,
.feature-card:hover *,
.post-card:hover *,
.ticker-item:hover * {
    text-shadow: none !important;
}

.btn-primary,
.btn-primary-sm,
.crypto-nl-btn,
button,
input[type="submit"],
.navigation .nav-links a:hover,
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
}

.btn-primary:hover,
.btn-primary-sm:hover,
.crypto-nl-btn:hover,
button:hover,
input[type="submit"]:hover {
    background: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(29,78,216,.22) !important;
}

.btn-outline,
.btn-outline-sm {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
}

.btn-outline:hover,
.btn-outline-sm:hover {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-color: #1d4ed8 !important;
}

.ticker-change.up,
.summary-change.up,
.market-data-strip .up {
    background: rgba(5,150,105,.10) !important;
    color: #047857 !important;
}

.ticker-change.down,
.summary-change.down,
.market-data-strip .down {
    background: rgba(220,38,38,.10) !important;
    color: #b91c1c !important;
}

.site-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
    border-top: 1px solid #d8e2ee !important;
}

.footer-newsletter {
    background: linear-gradient(135deg, #dbeafe, #ccfbf1) !important;
    border-color: #bfdbfe !important;
}

.site-footer,
.site-footer p,
.site-footer a,
.site-footer .footer-about-text,
.footer-disclaimer p,
.footer-copyright p,
.footer-copyright a,
.footer-badges span {
    color: #475569 !important;
}

.footer-copyright {
    background: #e8eef6 !important;
    border-top: 1px solid #d8e2ee !important;
}

.footer-social .social-link,
.footer-badges span {
    background: #ffffff !important;
    border-color: #d8e2ee !important;
}

.footer-social .social-link:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Final readability pass: keep light theme bright without low-contrast hover states. */
.lang-dropdown,
.main-nav .sub-menu,
.header-search-form,
.exchange-compare-table-wrap,
.exchange-compare-table,
.crypto-newsletter-form input,
.newsletter-form input {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.exchange-compare-table th,
.exchange-compare-table td {
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

.exchange-compare-table tbody tr:hover,
.market-summary-bar:hover,
.summary-stat:hover,
.faq-item:hover,
.comment-body:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    box-shadow: 0 14px 30px rgba(15,23,42,.08) !important;
}

.exchange-compare-table tbody tr:hover *,
.market-summary-bar:hover *,
.summary-stat:hover *,
.faq-item:hover *,
.comment-body:hover * {
    color: inherit !important;
}

.site-footer .footer-col-title,
.site-footer strong,
.footer-newsletter h2,
.footer-newsletter h3 {
    color: #0f172a !important;
}

.footer-social .social-link:hover svg,
.footer-social .social-link:hover span {
    color: #ffffff !important;
}

/* Light final audit layer: visible before hover, especially exchange cards/posts. */
.crypto-exchange-light,
body {
    color-scheme: light;
}

.exchange-card,
.exchange-card-modern,
.exchange-card *,
.exchange-metric,
.exchange-metric *,
.exchange-features,
.exchange-features *,
.post-card,
.post-card *,
.featured-posts,
.featured-posts *,
.market-section,
.market-section *,
.widget,
.widget *,
.site-footer,
.site-footer * {
    text-shadow: none !important;
}

.exchange-card,
.exchange-card-modern {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08) !important;
    color: #0f172a !important;
}

.exchange-card:hover,
.exchange-card-modern:hover {
    background:
        linear-gradient(180deg, #ffffff 0%, #eef6ff 100%) !important;
    border-color: #2563eb !important;
    box-shadow: 0 22px 54px rgba(37, 99, 235, .14) !important;
}

.exchange-eyebrow,
.exchange-card .exchange-eyebrow {
    color: #2563eb !important;
    background: rgba(37, 99, 235, .08) !important;
    border: 1px solid rgba(37, 99, 235, .18) !important;
    border-radius: 999px;
    padding: 3px 9px;
    display: inline-flex;
    width: fit-content;
}

.exchange-name,
.exchange-card .exchange-name,
.exchange-card h3,
.exchange-card h3 a {
    color: #0f172a !important;
}

.exchange-desc,
.exchange-card .exchange-desc,
.exchange-card p {
    color: #334155 !important;
}

.exchange-logo,
.exchange-logo-placeholder {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

.exchange-badge {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
}

.exchange-metrics {
    gap: 10px !important;
}

.exchange-metric {
    background: #f1f5f9 !important;
    border: 1px solid #dbe4ef !important;
    color: #334155 !important;
}

.exchange-metric span {
    color: #64748b !important;
}

.exchange-metric strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.exchange-features li {
    color: #334155 !important;
    background: rgba(15, 118, 110, .06) !important;
    border: 1px solid rgba(15, 118, 110, .12) !important;
    border-radius: 10px;
    padding: 6px 10px 6px 28px;
    margin-bottom: 7px;
    position: relative;
}

.exchange-features li::before {
    color: #0f766e !important;
    left: 10px !important;
}

.exchange-actions {
    border-top-color: #dbe4ef !important;
}

.exchange-actions .btn-text {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.exchange-actions .btn-text:hover {
    color: #0f766e !important;
}

.exchange-card:hover .exchange-name,
.exchange-card:hover .exchange-desc,
.exchange-card:hover .exchange-metric span,
.exchange-card:hover .exchange-metric strong,
.exchange-card:hover .exchange-features li,
.exchange-card:hover p,
.exchange-card:hover h3 {
    color: inherit !important;
}

.exchange-card:hover .exchange-name,
.exchange-card:hover h3 {
    color: #0f172a !important;
}

.exchange-card:hover .exchange-desc,
.exchange-card:hover p {
    color: #334155 !important;
}

.featured-posts {
    background: #f8fafc !important;
    border-top: 1px solid #d8e2ee !important;
    padding-top: 56px !important;
    padding-bottom: 64px !important;
}

.featured-posts .container {
    position: relative;
}

.featured-posts .section-header-row,
.featured-posts .section-header {
    align-items: center !important;
    margin-bottom: 26px !important;
}

.featured-posts .section-title,
.featured-posts h2,
.featured-posts h3,
.post-card .post-title,
.post-card .post-title a {
    color: #0f172a !important;
}

.featured-posts .section-more,
.post-card .read-more {
    color: #1d4ed8 !important;
}

.post-card {
    background: #ffffff !important;
    border: 1px solid #d8e2ee !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .07) !important;
    color: #1e293b !important;
}

.post-card:hover {
    background: #ffffff !important;
    border-color: #93c5fd !important;
    box-shadow: 0 20px 48px rgba(37, 99, 235, .12) !important;
}

.post-card .post-body,
.post-card .post-content {
    color: #334155 !important;
}

.post-card .post-excerpt,
.post-card p {
    color: #475569 !important;
}

.post-card .post-meta,
.post-card .post-meta a,
.post-card .post-date,
.post-card .post-author,
.post-card .post-read-time,
.featured-post-card .post-read-time {
    color: #64748b !important;
    opacity: 1 !important;
    border-color: #e2e8f0 !important;
}

.post-card .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    min-width: 0;
    line-height: 1.45;
}

.post-card .post-meta .post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

.post-card .post-meta .post-author {
    flex: 1 1 118px;
}

.post-card .post-meta .post-author a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.post-card .post-meta .post-meta-sep {
    flex: 0 0 auto;
    opacity: .38 !important;
}

.post-card .post-cat,
.post-cat,
.post-cat-tag {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
}

.post-thumb-initial,
.post-thumb-placeholder {
    color: #94a3b8 !important;
    background: linear-gradient(135deg, #dbeafe, #f0fdfa) !important;
}

.post-card:hover .post-title a {
    color: #1d4ed8 !important;
}

.post-card:hover .post-excerpt,
.post-card:hover .post-meta,
.post-card:hover .post-meta *,
.post-card:hover p {
    color: #475569 !important;
}

.market-summary-bar,
.summary-stat,
.ticker-item,
.price-ticker,
.exchange-compare-table-wrap {
    background: #ffffff !important;
    border-color: #d8e2ee !important;
    color: #1e293b !important;
}

.summary-value,
.market-data-strip strong,
.ticker-price,
.ticker-pair,
.ticker-pair-label,
.exchange-compare-table strong {
    color: #0f172a !important;
}

.summary-label,
.summary-label-sm,
.summary-help,
.ticker-volume,
.ticker-hl-row,
.exchange-compare-table td,
.exchange-compare-table th {
    color: #475569 !important;
}

.exchange-compare-table tbody tr:hover td,
.exchange-compare-table tbody tr:hover th,
.exchange-compare-table tbody tr:hover strong {
    color: #0f172a !important;
}

.site-footer {
    background: #f8fafc !important;
}

.site-footer .footer-col-title,
.site-footer .widget-title,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: #0f172a !important;
}

.site-footer,
.site-footer p,
.site-footer li,
.site-footer .footer-about-text,
.site-footer .footer-disclaimer p,
.site-footer .footer-copyright p {
    color: #475569 !important;
}

.site-footer a {
    color: #1d4ed8 !important;
}

.site-footer a:hover {
    color: #0f766e !important;
}

@media (max-width: 768px) {
    .featured-posts {
        padding-top: 36px !important;
        padding-bottom: 44px !important;
    }

    .featured-posts .section-header-row {
        gap: 12px;
        align-items: flex-start !important;
    }

    .exchange-metrics {
        grid-template-columns: 1fr !important;
    }

    .exchange-card,
    .post-card {
        box-shadow: 0 10px 28px rgba(15, 23, 42, .07) !important;
    }
}

/* Light final contrast fix: remove inherited dark panels and make borders visible before hover. */
body,
.site,
.site-main,
.content-area,
.section,
.stats-section,
.exchanges-section,
.exchange-section,
.ticker-section,
.market-section,
.features-section,
.faq-section,
.how-it-works-section,
.testimonials-section,
.cta-section,
.featured-posts,
.blog-section {
    background-color: #f6f9fd !important;
    color: #1e293b !important;
}

.hero-section,
.stats-section,
.exchanges-section,
.exchange-section,
.ticker-section,
.market-section,
.features-section,
.faq-section,
.how-it-works-section,
.testimonials-section,
.featured-posts {
    border-top: 1px solid #cbd5e1 !important;
}

.section-header,
.section-header-row,
.stats-grid,
.exchanges-grid,
.ticker-grid,
.market-grid,
.features-grid,
.faq-list,
.steps-grid,
.testimonials-grid,
.posts-grid {
    color: #1e293b !important;
}

.stat-item,
.exchange-card,
.exchange-card-modern,
.post-card,
.summary-stat,
.ticker-item,
.exchange-metric,
.feature-card,
.faq-item,
.step-card,
.testimonial-card,
.widget,
.market-summary-bar,
.price-ticker,
.exchange-compare-table-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border: 2px solid #94a3b8 !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10) !important;
    color: #1e293b !important;
}

.stat-item:hover,
.exchange-card:hover,
.exchange-card-modern:hover,
.post-card:hover,
.summary-stat:hover,
.ticker-item:hover,
.feature-card:hover,
.faq-item:hover,
.step-card:hover,
.testimonial-card:hover,
.widget:hover {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 20px 54px rgba(37, 99, 235, .18) !important;
}

.stat-item *,
.exchange-card *,
.exchange-card-modern *,
.post-card *,
.summary-stat *,
.ticker-item *,
.exchange-metric *,
.feature-card *,
.faq-item *,
.step-card *,
.testimonial-card *,
.widget *,
.market-summary-bar *,
.price-ticker * {
    text-shadow: none !important;
}

.stat-number,
.stat-item .stat-number {
    color: #1d4ed8 !important;
    font-weight: 900 !important;
}

.stat-label,
.stat-item .stat-label {
    color: #334155 !important;
    font-weight: 800 !important;
}

.stat-icon,
.stat-item .stat-icon {
    color: #1d4ed8 !important;
    opacity: 1 !important;
}

.section-title,
.section-title a,
.section-header h2,
.section-header-row h2,
.exchange-name,
.ticker-pair,
.ticker-pair-label,
.ticker-price,
.summary-value,
.feature-title,
.faq-question,
.step-title,
.testimonial-name,
.post-title,
.post-title a,
.widget-title {
    color: #0f172a !important;
}

.section-subtitle,
.exchange-desc,
.ticker-volume,
.ticker-hl-row,
.summary-label,
.summary-label-sm,
.summary-help,
.feature-desc,
.faq-answer,
.step-desc,
.testimonial-text,
.post-excerpt,
.widget li,
.widget p {
    color: #475569 !important;
}

.exchange-card .btn,
.exchange-card .btn-primary,
.exchange-card .btn-outline,
.exchange-actions a,
.post-card .read-more,
.widget a {
    opacity: 1 !important;
}

.exchange-card .btn-primary,
.exchange-card a.btn-primary,
.exchange-card .btn:first-child {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.exchange-card .btn-outline,
.exchange-card .btn-text,
.exchange-card a.btn-outline {
    background: #ffffff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
}

.exchange-card .btn-outline:hover,
.exchange-card .btn-text:hover,
.exchange-card a.btn-outline:hover {
    background: #eff6ff !important;
    color: #1e40af !important;
}

.section-bg-dark,
.section-bg-darker,
.has-dark-background,
.dark-card,
.dark-panel {
    background: #edf3fb !important;
    color: #1e293b !important;
}

.section-bg-dark *,
.section-bg-darker *,
.has-dark-background *,
.dark-card *,
.dark-panel * {
    color: inherit !important;
}

/* Light market lists: no oversized outer frames; keep rows readable. */
.market-summary-bar,
.price-ticker,
.gainers-losers-container {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

.gainers-losers-section,
.exchange-compare,
.trending-coins {
    margin-top: 32px !important;
}

.section-sub-title,
.gainers-losers-section .section-sub-title,
.exchange-compare .section-sub-title,
.trending-coins .section-sub-title {
    color: #0f172a !important;
    font-size: 1.08rem !important;
    font-weight: 850 !important;
    letter-spacing: -.01em !important;
    margin: 0 0 16px !important;
    text-align: left !important;
}

.gainers-losers-container .gl-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.gainers-losers-container .gl-column {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08) !important;
    padding: 16px !important;
}

.gainers-losers-container .gl-column h4 {
    color: #0f172a !important;
    font-size: .96rem !important;
    font-weight: 850 !important;
    margin: 0 0 12px !important;
}

.gainers-losers-container .gl-item {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    margin-bottom: 8px !important;
    padding: 11px 12px !important;
}

.gainers-losers-container .gl-item.loser {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
}

.gainers-losers-container .gl-item:last-child {
    margin-bottom: 0 !important;
}

.gainers-losers-container .gl-symbol,
.gainers-losers-container .gl-price {
    color: #0f172a !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}

.gainers-losers-container .gl-price {
    color: #334155 !important;
    font-variant-numeric: tabular-nums !important;
}

.gainers-losers-container .gl-change.up {
    background: rgba(5, 150, 105, .12) !important;
    color: #047857 !important;
    border: 1px solid rgba(5, 150, 105, .18) !important;
    border-radius: 999px !important;
    font-weight: 850 !important;
    padding: 3px 8px !important;
}

.gainers-losers-container .gl-change.down {
    background: rgba(220, 38, 38, .12) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(220, 38, 38, .18) !important;
    border-radius: 999px !important;
    font-weight: 850 !important;
    padding: 3px 8px !important;
}

.gainers-losers-container .gl-loading {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    color: #475569 !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07) !important;
}

@media (max-width: 768px) {
    .gainers-losers-container .gl-grid {
        grid-template-columns: 1fr !important;
    }

    .gainers-losers-container .gl-column {
        padding: 14px !important;
    }
}

/* Light final market/exchange layout: no container frames around card groups. */
.trending-grid,
.exchange-grid,
.exchange-grid-modern {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.trending-item {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08) !important;
    color: #0f172a !important;
}

.trending-item::before {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .08), transparent 42%) !important;
    opacity: 1 !important;
}

.trending-item.up {
    border-color: #bbf7d0 !important;
}

.trending-item.down {
    border-color: #fecdd3 !important;
}

.trending-item:hover {
    border-color: #2563eb !important;
    box-shadow: 0 18px 42px rgba(37, 99, 235, .14) !important;
    transform: translateY(-2px) !important;
}

.trending-rank {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
}

.trending-icon {
    background: linear-gradient(135deg, #dbeafe, #ccfbf1) !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

.trending-item {
    grid-template-columns: 42px minmax(0, 1fr) !important;
}

.trending-info {
    grid-column: 2 !important;
}

.trending-symbol,
.trending-price-main {
    color: #0f172a !important;
    font-weight: 850 !important;
}

.trending-meta {
    color: #475569 !important;
    opacity: 1 !important;
}

.trending-direction.up {
    background: rgba(5, 150, 105, .12) !important;
    border: 1px solid rgba(5, 150, 105, .18) !important;
    border-radius: 999px !important;
    color: #047857 !important;
    padding: 3px 8px !important;
}

.trending-direction.down {
    background: rgba(220, 38, 38, .12) !important;
    border: 1px solid rgba(220, 38, 38, .18) !important;
    border-radius: 999px !important;
    color: #b91c1c !important;
    padding: 3px 8px !important;
}

.trending-spark {
    background: #e2e8f0 !important;
}

.trending-loading {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07) !important;
    color: #475569 !important;
}

.exchanges-section,
.exchanges-section .container {
    background: transparent !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
}

.exchange-card,
.exchange-card-modern {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .09) !important;
}

.exchange-card.featured,
.exchange-card-modern.featured {
    border: 1px solid #2563eb !important;
    box-shadow: 0 16px 40px rgba(37, 99, 235, .13) !important;
}

.exchange-card:hover,
.exchange-card-modern:hover {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 20px 48px rgba(37, 99, 235, .16) !important;
}

.exchange-metric {
    background: #f8fafc !important;
    border: 1px solid #d8e2ee !important;
    box-shadow: none !important;
}

.exchange-features li {
    background: #f8fafc !important;
    border-color: #d8e2ee !important;
}

/* Light header/search and compare CTA final contrast fixes. */
.search-toggle,
.search-toggle:hover,
.search-toggle:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #334155 !important;
    padding: 8px !important;
}

.exchange-compare-table .ex-reg-btn,
.exchange-compare-table a.ex-reg-btn {
    background: #1d4ed8 !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 850 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.exchange-compare-table .ex-reg-btn:hover,
.exchange-compare-table a.ex-reg-btn:hover {
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}

.exchange-compare-table .exchange-row:hover .ex-reg-btn,
.exchange-compare-table .exchange-row:hover a.ex-reg-btn {
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}

.exchange-compare-table .ex-name,
.exchange-compare-table .ex-price,
.exchange-compare-table .ex-fee {
    color: #0f172a !important;
}

.exchange-compare-table .ex-source {
    color: #64748b !important;
}

.gl-empty {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    color: #64748b !important;
}

.exchange-logo {
    background: #f8fafc !important;
    border: 1px solid #d8e2ee !important;
}

.exchange-logo-okx span {
    background: #0f172a !important;
}

.exchange-logo-okx-word {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
    text-shadow: none !important;
}

/* Sync parent native language switcher and final exchange contrast fixes. */
.lang-switcher-native,
.lang-switcher {
    display: inline-flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1300 !important;
}

.lang-summary,
.lang-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.lang-summary:hover,
.lang-toggle:hover,
.lang-switcher[open] .lang-summary {
    background: #e0f2fe !important;
    border-color: #38bdf8 !important;
    color: #0f172a !important;
}

.lang-dropdown {
    z-index: 1500 !important;
}

.exchange-badge,
.exchange-card:hover .exchange-badge,
.exchange-card-modern:hover .exchange-badge {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

.exchange-actions .btn-primary,
.exchange-actions .btn-primary:hover {
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
}

.exchange-compare-table .exchange-row:hover {
    background: #eff6ff !important;
}

.page-content,
.post-content,
.entry-content,
.page-content p,
.page-content li,
.post-content p,
.post-content li,
.entry-content p,
.entry-content li {
    color: #1e293b !important;
}

.post-meta-bar,
.meta-item,
.author-bio-desc,
.post-nav-link .nav-label,
.breadcrumb,
.breadcrumb a,
.section-subtitle,
.summary-help {
    color: #475569 !important;
}

@media (max-width: 1024px) {
    .main-nav {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 20px 48px rgba(15,23,42,.16) !important;
    }

    .main-nav a {
        color: #0f172a !important;
    }

    .main-nav a:hover {
        color: #1d4ed8 !important;
        background: #eff6ff !important;
    }
}

.section-subtitle,
.archive-hero-desc,
.archive-hero-meta,
.post-excerpt,
.post-meta,
.post-meta a,
.featured-excerpt,
.featured-meta,
.related-card-date,
.summary-label,
.summary-label-sm,
.summary-help,
.ticker-period,
.ticker-hl-row,
.ticker-volume,
.exchange-desc,
.exchange-metric span,
.exchange-features li,
.feature-desc,
.step-card p,
.testimonial-role,
.footer-about,
.footer-about p,
.footer-disclaimer p,
.footer-copyright p,
.footer-bottom-links a,
.widget,
.widget p,
.widget li,
.widget ul li a,
.breadcrumb,
.breadcrumb a {
    color: #334155 !important;
}

.site-footer .footer-disclaimer p,
.site-footer .footer-bottom-links a,
.site-footer .footer-copyright p {
    color: #475569 !important;
}

/* Light category archive header: compact breadcrumb and readable single-panel hero. */
.category .breadcrumb,
.archive.category .breadcrumb {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
}

.category .breadcrumb a,
.archive.category .breadcrumb a {
    color: #1d4ed8 !important;
}

.category .breadcrumb .current,
.archive.category .breadcrumb .current {
    color: #0f172a !important;
}

.category-hero-card {
    background:
        radial-gradient(circle at 0 0, rgba(37, 99, 235, .10), transparent 24rem),
        linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08) !important;
}

.category-hero-card::before {
    background: linear-gradient(180deg, #1d4ed8, #0f766e) !important;
}

.category-hero-card .archive-hero-title {
    color: #0f172a !important;
}

.category-hero-card .archive-hero-desc,
.category-hero-date {
    color: #475569 !important;
}

.category-hero-pill,
.category-hero-date {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05) !important;
}

.category-hero-pill {
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
    background: #eff6ff !important;
}

/* Light contrast audit: keep archive/footer/sidebar text readable before hover. */
.archive-section-header h2,
.related-categories h3,
.comments-title,
.comment-reply-title,
.widget-title,
.page-title,
.no-results-title,
.error-search h3,
.post-nav-link .nav-title,
.related-category-link .cat-name,
.related-category-link:hover .cat-name {
    color: #0f172a !important;
}

.related-categories {
    border-top-color: #cbd5e1 !important;
}

.related-category-link {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07) !important;
    color: #1e293b !important;
}

.related-category-link:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    box-shadow: 0 16px 38px rgba(37, 99, 235, .13) !important;
}

.category-bottom-widgets {
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    border: 1px solid #dbeafe !important;
    border-radius: 24px !important;
    padding: 22px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07) !important;
}

.category-bottom-widgets .widget-title {
    color: #0f172a !important;
    font-size: 1.2rem !important;
    margin-bottom: 16px !important;
}

.category-bottom-widgets .widget-related-category-link {
    background: linear-gradient(135deg, #ffffff, #f1f7ff) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .07) !important;
    color: #1e293b !important;
}

.category-bottom-widgets .widget-related-category-link::after {
    background: rgba(37, 99, 235, .08) !important;
}

.category-bottom-widgets .widget-related-category-link:hover {
    background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
    border-color: #2563eb !important;
    box-shadow: 0 18px 34px rgba(37, 99, 235, .14) !important;
}

.category-bottom-widgets .widget-related-category-index {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.category-bottom-widgets .widget-related-category-name {
    color: #0f172a !important;
}

.category-bottom-widgets .widget-related-category-count {
    color: #475569 !important;
}

.category-bottom-widgets .widget-related-category-arrow {
    color: #1d4ed8 !important;
}

.related-category-link .cat-count,
.related-card-date,
.featured-post-meta,
.popular-post-meta,
.comment-meta,
.comment-form label,
.error-desc,
.error-sub,
.no-results-desc,
.pagination .dots,
.post-tags .tags-label,
.activity-location,
.activity-time,
.post-nav-link .nav-label,
.view-btn,
.subcat-chip,
.page-links a,
.page-links span {
    color: #334155 !important;
    opacity: 1 !important;
}

.post-tags a,
.widget_tag_cloud .tagcloud a,
.pagination a,
.pagination .page-numbers {
    color: #1e293b !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

.post-tags a:hover,
.widget_tag_cloud .tagcloud a:hover,
.pagination a:hover,
.pagination .page-numbers:hover,
.view-btn:hover,
.subcat-chip:hover {
    color: #ffffff !important;
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

/* Light single-news page: force a true light article surface and visible dark/overlay text. */
.single .post-detail,
.single-post .post-detail {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .08) !important;
    color: #1e293b !important;
}

.single .post-detail .featured-image-wrap,
.single-post .post-detail .featured-image-wrap {
    background: #0f172a !important;
}

.single .post-detail .featured-image-overlay,
.single-post .post-detail .featured-image-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, .10) 0%, rgba(15, 23, 42, .78) 100%) !important;
}

.single .post-detail .featured-image-content,
.single .post-detail .featured-image-content *,
.single-post .post-detail .featured-image-content,
.single-post .post-detail .featured-image-content * {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45) !important;
}

.single .post-detail .category-badge-link,
.single-post .post-detail .category-badge-link {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    text-shadow: none !important;
}

.single .post-meta-bar,
.single-post .post-meta-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

.single .post-meta-bar .meta-item,
.single .post-meta-bar .meta-item strong,
.single .post-meta-bar .meta-item a,
.single-post .post-meta-bar .meta-item,
.single-post .post-meta-bar .meta-item strong,
.single-post .post-meta-bar .meta-item a {
    color: #1e293b !important;
    opacity: 1 !important;
}

.single .post-meta-bar a:hover,
.single-post .post-meta-bar a:hover {
    color: #1d4ed8 !important;
}

.single .post-meta-bar .meta-author-name,
.single-post .post-meta-bar .meta-author-name {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.single .author-bio,
.single-post .author-bio {
    display: none !important;
}

.single .post-content,
.single .entry-content,
.single-post .post-content,
.single-post .entry-content {
    background: #ffffff !important;
    color: #1e293b !important;
}

.single .post-content h1,
.single .post-content h2,
.single .post-content h3,
.single .post-content h4,
.single .post-content h5,
.single .post-content h6,
.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 {
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.single .post-content p,
.single .post-content li,
.single .post-content td,
.single .post-content th,
.single .post-content blockquote,
.single-post .post-content p,
.single-post .post-content li,
.single-post .post-content td,
.single-post .post-content th,
.single-post .post-content blockquote {
    color: #1e293b !important;
}

.single .post-content blockquote,
.single-post .post-content blockquote {
    background: #f8fafc !important;
    border-left-color: #1d4ed8 !important;
}

.single .post-content pre,
.single .post-content pre code,
.single-post .post-content pre,
.single-post .post-content pre code {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

.single .post-content code:not(pre code),
.single-post .post-content code:not(pre code) {
    background: #eff6ff !important;
    color: #1e293b !important;
}

.single .post-content .has-background,
.single-post .post-content .has-background {
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
}

.single .post-content .has-black-background-color,
.single .post-content .has-very-dark-gray-background-color,
.single .post-content .has-dark-background,
.single .post-content .dark-card,
.single .post-content .dark-panel,
.single-post .post-content .has-black-background-color,
.single-post .post-content .has-very-dark-gray-background-color,
.single-post .post-content .has-dark-background,
.single-post .post-content .dark-card,
.single-post .post-content .dark-panel {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

.single .post-content .has-black-background-color *,
.single .post-content .has-very-dark-gray-background-color *,
.single .post-content .has-dark-background *,
.single .post-content .dark-card *,
.single .post-content .dark-panel *,
.single-post .post-content .has-black-background-color *,
.single-post .post-content .has-very-dark-gray-background-color *,
.single-post .post-content .has-dark-background *,
.single-post .post-content .dark-card *,
.single-post .post-content .dark-panel * {
    color: #f8fafc !important;
}

.single .author-bio,
.single-post .author-bio {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

.single .author-bio-name,
.single-post .author-bio-name {
    color: #0f172a !important;
}

.single .author-bio-desc,
.single-post .author-bio-desc {
    color: #334155 !important;
}

.single .author-bio a,
.single-post .author-bio a {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}

.single .post-share,
.single-post .post-share {
    border-top-color: #e2e8f0 !important;
}

.single .share-label,
.single-post .share-label {
    color: #334155 !important;
}

.single .section-bg-darker.related-posts-section,
.single-post .section-bg-darker.related-posts-section {
    background: transparent !important;
    border-top: 1px solid #cbd5e1 !important;
    border-bottom: 0 !important;
}

.single .related-posts-heading,
.single-post .related-posts-heading {
    color: #0f172a !important;
}

.menu-toggle {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08) !important;
}

.menu-toggle:hover,
.menu-toggle.active {
    background: #e0f2fe !important;
    border-color: #2563eb !important;
}

.menu-toggle span {
    background: #0f172a !important;
}

/* Stable comment cookie checkbox alignment on single posts. */
.single .comment-form .comment-form-cookies-consent,
.single-post .comment-form .comment-form-cookies-consent {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    margin: 12px 0 18px !important;
}

.single .comment-form .comment-form-cookies-consent input[type="checkbox"],
.single-post .comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    flex: none !important;
    appearance: auto !important;
}

.single .comment-form .comment-form-cookies-consent label,
.single-post .comment-form .comment-form-cookies-consent label {
    display: block !important;
    margin: 0 !important;
    color: #334155 !important;
    line-height: 1.55 !important;
}

.single .post-share-collapsible .share-summary,
.single-post .post-share-collapsible .share-summary {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06) !important;
}

.single .post-share-collapsible .share-summary .share-label,
.single-post .post-share-collapsible .share-summary .share-label {
    color: #0f172a !important;
}

.single .post-share-collapsible .share-summary-caret,
.single-post .post-share-collapsible .share-summary-caret {
    color: #2563eb !important;
}

.single .post-share-collapsible .share-buttons-row,
.single-post .post-share-collapsible .share-buttons-row {
    background: transparent !important;
}

/* Light single comments: keep the bottom discussion area readable on light pages. */
.single .comments-section,
.single-post .comments-section {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

.single .comments-area,
.single-post .comments-area {
    background: #ffffff !important;
    border-top: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

.single .comments-title,
.single .comment-reply-title,
.single-post .comments-title,
.single-post .comment-reply-title {
    color: #0f172a !important;
}

.single .comments-count,
.single-post .comments-count {
    color: #334155 !important;
}

.single .comment-list,
.single-post .comment-list {
    color: #1e293b !important;
}

.single .comment,
.single-post .comment {
    border-bottom: 1px solid #e2e8f0 !important;
}

.single .comment-body,
.single-post .comment-body {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 18px !important;
    color: #1e293b !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
}

.single .comment-author,
.single .comment-author .fn,
.single .comment-author .fn a,
.single-post .comment-author,
.single-post .comment-author .fn,
.single-post .comment-author .fn a {
    color: #0f172a !important;
}

.single .comment-author .says,
.single .comment-meta,
.single .comment-metadata,
.single .comment-metadata a,
.single .comment-meta a,
.single .comment-awaiting-moderation,
.single-post .comment-author .says,
.single-post .comment-meta,
.single-post .comment-metadata,
.single-post .comment-metadata a,
.single-post .comment-meta a,
.single-post .comment-awaiting-moderation {
    color: #334155 !important;
    opacity: 1 !important;
}

.single .comment-content,
.single .comment-content p,
.single .comment-content li,
.single-post .comment-content,
.single-post .comment-content p,
.single-post .comment-content li {
    color: #1e293b !important;
}

.single .comment-content a,
.single-post .comment-content a {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.single .reply a,
.single-post .reply a {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}

.single .reply a:hover,
.single-post .reply a:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.single .comment-respond,
.single-post .comment-respond {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07) !important;
}

.single .comment-form label,
.single .logged-in-as,
.single .logged-in-as a,
.single .comment-notes,
.single .form-allowed-tags,
.single .comment-form-cookies-consent,
.single .comment-form-cookies-consent label,
.single-post .comment-form label,
.single-post .logged-in-as,
.single-post .logged-in-as a,
.single-post .comment-notes,
.single-post .form-allowed-tags,
.single-post .comment-form-cookies-consent,
.single-post .comment-form-cookies-consent label {
    color: #334155 !important;
    opacity: 1 !important;
}

.single .comment-form input,
.single .comment-form textarea,
.single-post .comment-form input,
.single-post .comment-form textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.single .comment-form input::placeholder,
.single .comment-form textarea::placeholder,
.single-post .comment-form input::placeholder,
.single-post .comment-form textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.single .comment-form input:focus,
.single .comment-form textarea:focus,
.single-post .comment-form input:focus,
.single-post .comment-form textarea:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12) !important;
    outline: none !important;
}

.single .comment-form .submit,
.single-post .comment-form .submit {
    background: #1d4ed8 !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
}

.single .comment-form .submit:hover,
.single-post .comment-form .submit:hover {
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}

.single .comments-closed,
.single .comment-nav a,
.single-post .comments-closed,
.single-post .comment-nav a {
    color: #1d4ed8 !important;
}

/* Light news layout final guard: readable text and safe page gutters. */
.single .container.main-layout,
.single-post .container.main-layout,
.category .container.main-layout,
.archive .container.main-layout,
.search .container.main-layout,
.blog .container.main-layout,
.home.blog .container.main-layout {
    padding-left: 48px !important;
    padding-right: 40px !important;
}

.single .content-area,
.single-post .content-area,
.category .content-area,
.archive .content-area,
.search .content-area,
.blog .content-area,
.home.blog .content-area {
    color: #1e293b !important;
}

.widget-area-news,
.widget-area-news .widget {
    color: #1e293b !important;
}

.widget-area-news .widget {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08) !important;
}

.widget-area-news .widget:hover {
    border-color: #94a3b8 !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .11) !important;
}

.widget-area-news .widget-title,
.widget-area-news h1,
.widget-area-news h2,
.widget-area-news h3,
.widget-area-news h4,
.widget-area-news h5,
.widget-area-news h6,
.widget-area-news .widget-price-symbol,
.widget-area-news .widget-price-data .wprice,
.widget-area-news .featured-post-title,
.widget-area-news .featured-post-title a,
.widget-area-news .popular-post-title,
.widget-area-news .popular-post-title a {
    color: #0f172a !important;
    opacity: 1 !important;
}

.widget-area-news p,
.widget-area-news li,
.widget-area-news span,
.widget-area-news div,
.widget-area-news label,
.widget-area-news small,
.widget-area-news .featured-post-meta,
.widget-area-news .popular-post-meta {
    color: #334155 !important;
    opacity: 1 !important;
}

.widget-area-news a,
.widget-area-news .widget ul li a {
    color: #1d4ed8 !important;
    opacity: 1 !important;
}

.widget-area-news a:hover,
.widget-area-news .widget ul li:hover a {
    color: #1e40af !important;
}

.widget-area-news [style*="color:#fff"],
.widget-area-news [style*="color: #fff"],
.widget-area-news [style*="color:white"],
.widget-area-news [style*="rgba(255,255,255"],
.widget-area-news [style*="rgba(255, 255, 255"] {
    color: #1e293b !important;
}

.widget-area-news [style*="background:rgba(255,255,255,.03"],
.widget-area-news [style*="background:rgba(255, 255, 255, .03"],
.widget-area-news [style*="background:rgba(255,255,255,.05"],
.widget-area-news [style*="background:rgba(255, 255, 255, .05"],
.widget-area-news [style*="background:transparent"] {
    background: #f8fafc !important;
}

.widget-area-news [style*="border:1px solid rgba(255,255,255"],
.widget-area-news [style*="border:1px solid rgba(255, 255, 255"],
.widget-area-news [style*="border-bottom:1px solid rgba(255,255,255"],
.widget-area-news [style*="border-bottom:1px solid rgba(255, 255, 255"] {
    border-color: #e2e8f0 !important;
}

.widget-area-news .widget-price-item,
.widget-area-news .widget-gl-col,
.widget-area-news .widget-exchange-compare > div,
.widget-area-news .widget-quick-links > div,
.widget-area-news .widget-mktov-card,
.widget-area-news .widget-cat-list a {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

.widget-area-news .widget-price-icon {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.widget-area-news .widget-price-data .wchange,
.widget-area-news [style*="#0ecb81"],
.widget-area-news [style*="#f6465d"] {
    opacity: 1 !important;
}

.widget-area-news [style*="#0ecb81"],
.widget-area-news .wchange[style*="#0ecb81"] {
    color: #047857 !important;
}

.widget-area-news [style*="#f6465d"],
.widget-area-news .wchange[style*="#f6465d"] {
    color: #b91c1c !important;
}

.widget-area-news .widget-cat-list span:last-child,
.widget-area-news .post-count,
.widget-area-news .cat-count {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

.widget-area-news .widget-exchange-compare a,
.widget-area-news .widget-quick-links a,
.widget-area-news a[rel*="sponsored"] {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.widget-area-news .widget-exchange-compare a:hover,
.widget-area-news .widget-quick-links a:hover,
.widget-area-news a[rel*="sponsored"]:hover {
    background: #1e40af !important;
    color: #ffffff !important;
}

.widget-area-news .widget-price-list,
.widget-area-news .widget-gl-wrap,
.widget-area-news .widget-exchange-compare {
    gap: 10px !important;
}

.widget-area-news .widget-price-item,
.widget-area-news .widget-gl-col,
.widget-area-news .widget-exchange-compare > div {
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.widget-area-news .widget-price-item {
    padding: 11px 12px !important;
}

.widget-area-news .widget-gl-col {
    padding: 10px !important;
}

.widget-area-news .widget-gl-wrap [style*="padding:6px 0"] {
    padding: 7px 0 !important;
}

.widget-area-news .widget-exchange-compare > div {
    padding: 12px !important;
    margin-bottom: 0 !important;
}

.widget-area-news .featured-post-link {
    align-items: flex-start !important;
    min-height: 84px !important;
    padding: 10px !important;
    border: 1px solid transparent !important;
    transform: none !important;
}

.widget-area-news .featured-post-link:hover {
    padding: 10px !important;
    transform: none !important;
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

.widget-area-news .featured-post-title {
    line-height: 1.45 !important;
}

.widget-area-news .featured-post-date {
    color: #64748b !important;
    margin-top: 5px !important;
}

.single-latest-posts-section {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

.single-latest-header h2,
.single-latest-body h3 a {
    color: #0f172a !important;
}

.single-latest-card {
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    color: #1e293b !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05) !important;
}

.single-latest-card:hover {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
}

.single-latest-body h3 a:hover {
    color: #1d4ed8 !important;
}

.single-latest-meta {
    color: #64748b !important;
}

.post-card,
.archive-featured-post,
.category-hero-card,
.related-categories,
.no-results {
    color: #1e293b !important;
}

.post-card .post-title a,
.archive-featured-post .featured-title,
.archive-section-header h2,
.related-categories h3 {
    color: #0f172a !important;
}

.post-card .post-excerpt,
.post-card .post-meta,
.post-card .post-meta a,
.featured-excerpt,
.featured-meta,
.archive-hero-desc,
.related-category-link .cat-count {
    color: #334155 !important;
    opacity: 1 !important;
}

.popular-post-title,
.popular-post-meta,
.popular-post-meta a,
.popular-post-excerpt,
.widget-empty-state,
.widget-cat-link,
.widget-tag-link,
.related-grid .post-meta,
.related-grid .post-meta a {
    color: #334155 !important;
    opacity: 1 !important;
}

.popular-post-title,
.widget-cat-link:hover,
.widget-cat-link.is-active,
.widget-tag-link:hover,
.related-grid .post-title a {
    color: #0f172a !important;
}

.widget-cat-link,
.widget-tag-link {
    background: #ffffff !important;
    border-color: #dbe3ee !important;
}

.widget-cat-link:hover,
.widget-cat-link.is-active,
.widget-tag-link:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
}

.widget-cat-count,
.widget-tag-count,
.popular-post-views,
.popular-post-date {
    color: #64748b !important;
}

@media (max-width: 768px) {
    .single .container.main-layout,
    .single-post .container.main-layout,
    .category .container.main-layout,
    .archive .container.main-layout,
    .search .container.main-layout,
    .blog .container.main-layout,
    .home.blog .container.main-layout {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    .widget-area-news .widget,
    .post-detail,
    .post-card,
    .category-hero-card,
    .archive-featured-post {
        border-radius: 18px !important;
    }

    .single-latest-grid {
        grid-template-columns: 1fr !important;
    }

    .single-latest-card {
        grid-template-columns: 86px minmax(0, 1fr) !important;
    }
}

/* Final light-theme contrast override: light panels use dark text, dark inline widgets use light text. */
.widget,
.post-card,
.archive-featured-post,
.category-hero-card,
.related-categories,
.comment-body,
.single-latest-card {
    color: #1e293b !important;
}

.widget *,
.post-card *,
.archive-featured-post *,
.category-hero-card *,
.related-categories *,
.comment-body *,
.single-latest-card * {
    color: inherit;
}

.widget-area-news .widget-price-item,
.widget-area-news .widget-gl-col,
.widget-area-news .widget-exchange-compare > div,
.widget-area-news .widget-mktov-card,
.widget [style*="background:#1"],
.widget [style*="background: #1"],
.widget [style*="background:rgba(15"],
.widget [style*="background: rgba(15"],
.widget [style*="background:linear-gradient"],
.widget [style*="background: linear-gradient"] {
    color: #f8fafc !important;
}

.widget-area-news .widget-price-item *,
.widget-area-news .widget-gl-col *,
.widget-area-news .widget-exchange-compare > div *,
.widget-area-news .widget-mktov-card *,
.widget [style*="background:#1"] *,
.widget [style*="background: #1"] *,
.widget [style*="background:rgba(15"] *,
.widget [style*="background: rgba(15"] *,
.widget [style*="background:linear-gradient"] *,
.widget [style*="background: linear-gradient"] * {
    color: inherit !important;
}

.widget-area-news .widget-price-item,
.widget-area-news .widget-gl-col,
.widget-area-news .widget-exchange-compare > div,
.widget-area-news .widget-mktov-card {
    background: #0f172a !important;
    border-color: #334155 !important;
}

.widget a[style*="background:var(--primary"],
.exchange-card .btn-primary-sm,
.btn-primary,
.btn-primary-sm,
.search-form .search-submit,
.comment-form .submit {
    color: #ffffff !important;
}

/* Light theme adaptive widget polish */
.widget,
.footer-widgets .widget,
.category-bottom-widgets .widget,
.widget-area-news .widget {
    border-color: #dbe3ef !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08) !important;
}

.footer-widgets,
.footer-widget-area,
.category-bottom-widgets {
    gap: 18px !important;
}

.footer-widgets .widget-title,
.footer-widget-area .widget-title,
.category-bottom-widgets .widget-title,
.widget-area-news .widget-title {
    color: #0f172a !important;
}

.footer-widgets .widget ul li:hover,
.widget-area .widget ul li:hover,
.widget-area-news .widget ul li:hover {
    background: rgba(37, 99, 235, .06) !important;
}

.widget-related-category-link,
.widget-tag-link,
.widget-social-icon,
.widget-exchange-compare > div,
.widget-exchange-cards > div {
    border-color: #dbe3ef !important;
}

/* Light final widget layout guard */
.main-layout,
.container.main-layout { align-items: flex-start; }
.main-layout > *,
.content-area,
.site-main,
.widget-area,
.widget,
.footer-widgets,
.footer-widget-area,
.category-bottom-widgets,
.widget-area-news,
.single-latest-grid,
.related-posts-grid { min-width: 0; }
.content-area { flex: 1 1 min(100%, calc(100% - 360px)); }
.widget-area {
    flex: 0 0 clamp(280px, 26vw, 340px);
    width: clamp(280px, 26vw, 340px);
    max-width: 100%;
}
.widget,
.footer-widget-area,
.category-bottom-widgets .widget,
.widget-area-news .widget { overflow: hidden; }
.widget *,
.footer-widgets *,
.category-bottom-widgets *,
.widget-area-news * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.footer-widgets,
.footer-widget-area {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    align-items: start;
}
.category-bottom-widgets {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
    gap: 18px !important;
    align-items: start;
}
.widget-tag-cloud,
.tagcloud,
.widget-social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.widget-tag-link,
.widget-social-icon,
.widget-related-category-link,
.widget-price-item,
.widget-exchange-compare > div,
.widget-exchange-cards > div,
.widget-gl-col,
.featured-post-link,
.popular-post-link { min-width: 0; }
.widget-price-info,
.widget-related-category-body,
.featured-post-title,
.popular-post-title {
    min-width: 0;
    flex: 1 1 auto;
}
.widget-price-data {
    flex: 0 0 auto;
    min-width: max-content;
}
.widget ul li:hover {
    padding-left: 0;
    transform: translateX(3px);
}
@media (max-width: 900px) {
    .main-layout,
    .container.main-layout { flex-direction: column; }
    .content-area,
    .widget-area {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* Comment cookie consent checkbox alignment */
.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 18px;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    min-width: 16px;
    height: 16px;
    margin: 3px 0 0;
    padding: 0;
    flex: 0 0 auto;
    appearance: auto;
}

.comment-form .comment-form-cookies-consent label {
    display: inline;
    margin: 0;
    line-height: 1.5;
    font-size: .85rem;
}
