/* Readability and softer geometry pass. Loaded after all Art v2 layers. */
:root{--ink:#17130f!important;--ink-2:#3d3730!important;--ink-3:#625a50!important;--card:#fffaf0!important;--surface:#fffaf0!important;--radius:18px!important;--radius-lg:28px!important}
body{font-size:16px!important;line-height:1.58!important;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
p,.hero-desc,.service-text,.side-news-text,.hpc-desc,.sc-pj,.sc-ds,.hm-cat-n,.hsr-lbl{color:var(--ink-2)!important;opacity:1!important}
.hero-desc,.service-text,.hpc-desc{font-size:max(.92rem,14px)!important;line-height:1.55!important}
.b-sub,.hero-ey,.hm-sub,.hpc-label,.hsr-lbl,.side-label,.ann,.sh-s{font-size:max(.7rem,11px)!important;opacity:1!important}
.topbar,.hero-panel,.hpc,.ad-strip,.block,.scard,.card,.site-card,.tariff-strip,.main-card,.faq-item,.stat-block,.ai-panel,.legal-card,.cat,.new,.mate,.inf,.panel,.widget-card{border-radius:var(--radius-lg)!important;overflow:hidden}
.hm-cat-card,.service-card,.side-news-item,.chip,.btn,.btn-sm,.svc-btn,.submit-btn,.hero-btn,.nav-btn,.lang-btn,input,textarea,select,.hero-stats-row,.cat-hd-ico,.hm-avatar,.hpc-btn{border-radius:var(--radius)!important}
.b-em,.hm-cat-ico,.sc-av{border-radius:50%!important}
.ad-strip{background:linear-gradient(135deg,#6430ce,#8f51ef)!important}.ad-strip .as-title,.ad-strip .as-sub{color:#fff!important}.ad-strip .as-title{font-size:clamp(1.35rem,2.4vw,2.4rem)!important}.ad-strip .as-sub{opacity:1!important}
.hpc,.hpc *{text-shadow:none!important}.hpc-rank,.hpc-rates,.hpc-reg{color:#fff!important}.hpc .hpc-desc,.hpc .hpc-link,.hpc .hpc-label,.hpc .hr-note{color:#fff!important;opacity:1!important}.hpc-field{color:#17130f!important;background:#fffdf7!important;border-color:rgba(23,19,15,.45)!important}.hpc-field::placeholder{color:#625a50!important;opacity:1!important}.hpc-field-label{color:#fff!important;opacity:1!important}
.hpc-rank{background:linear-gradient(140deg,#00266f 0%,#103d8c 48%,#1f55b7 100%)!important}.hpc-rates{background:linear-gradient(140deg,#720019 0%,#a80d2b 48%,#c8102e 100%)!important}.hpc-reg{background:linear-gradient(140deg,#082116 0%,#0c4128 48%,#14623d 100%)!important}
.rank-jump-card{background:linear-gradient(140deg,#00266f 0%,#103d8c 48%,#1f55b7 100%)!important}
.hpc .hpc-title{font-size:15px!important;line-height:1.18!important}.hpc .hpc-desc{font-size:13px!important;line-height:1.35!important;-webkit-line-clamp:2!important}.hpc .hpc-field-label{font-size:9.5px!important}.hpc .hpc-field{font-size:12px!important}.hpc .hpc-btn{font-size:12px!important;background:#ffc300!important;color:#17130f!important;border-color:#17130f!important;box-shadow:3px 3px 0 #17130f!important}.hpc .hpc-link{font-size:11px!important}.hpc-reg .hpc-desc{-webkit-line-clamp:2!important}.hpc-register-open{min-height:38px!important;margin-top:auto!important}
.hero-panel--brand .hero-desc,.hero-panel--brand .hero-tagline-text{color:#17130f!important}
.hm-top .hm-title,.hm-top .hm-sub{color:#fff!important}.hm-cat-name{color:#17130f!important;font-weight:800!important}.hm-cat-n{color:#51483e!important}
.rt td{color:#17130f!important}.rt .sc-pj,.rt .sc-ds{color:#4a433b!important}.table-link{color:#17130f!important;background:#fffaf0!important}.table-link:first-child{background:#ffc300!important}
.metric-now{display:block;font-size:1rem!important;font-weight:800}.metric-total{display:block;margin-top:3px;color:#625a50!important;font:700 9px/1.2 var(--mono)!important;white-space:nowrap;text-transform:uppercase}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:4px solid #23b5e8!important;outline-offset:3px!important}
[data-theme="dark"]{--ink:#fff8e9!important;--ink-2:#e8dfcf!important;--ink-3:#c5baa8!important;--card:#211d19!important;--surface:#211d19!important}
[data-theme="dark"] body{background-color:#131110!important}[data-theme="dark"] p,[data-theme="dark"] .service-text,[data-theme="dark"] .side-news-text,[data-theme="dark"] .sc-pj,[data-theme="dark"] .sc-ds{color:#e8dfcf!important}

/* Cross-page contrast guarantees. These selectors intentionally load last and
   neutralize fixed Art-v2 colors that conflict with the active palette. */
[data-theme="dark"] .topbar,
[data-theme="dark"] .svc-topbar,
[data-theme="dark"] header.topbar{
  background:rgba(28,25,23,.97)!important;
  color:#fff8e9!important;
}
[data-theme="dark"] .topbar a,
[data-theme="dark"] .svc-topbar a,
[data-theme="dark"] .topbar .brand,
[data-theme="dark"] .topbar .b-name,
[data-theme="dark"] .svc-topbar .b-name{color:#fff8e9!important}
[data-theme="dark"] .ss,
[data-theme="dark"] .lcur,
[data-theme="dark"] .thb,
[data-theme="dark"] .chat-icon-nav{background:#292522!important;color:#fff8e9!important;border-color:#c5baa8!important}

/* Yellow and pastel art cards are light surfaces in both modes. */
.hero-panel--brand,
.hero-panel--brand .hero-h1,
.hero-panel--brand .hero-tagline-text,
.hero-panel--brand .hero-desc,
.hero-panel--brand .hero-ey{color:#fff!important;background:#17130f!important;border-color:#fffaf0!important}
.hero-panel--brand .hero-h1 em{-webkit-text-stroke-color:#17130f!important}
.hm-cat-card,
.hm-cat-card *,
.service-card,
.service-card *,
.side-news-item,
.side-news-item *{color:#17130f!important}
.hm-top,.hm-top *,.cat-hd,.cat-hd *{color:#fff!important}
.hm-top .hm-avatar,.hm-top .hm-avatar *,.cat-hd .cat-hd-ico,.cat-hd .cat-hd-ico *{color:#17130f!important}

/* Dark surfaces must keep light copy even when a global paragraph rule wins. */
.reg-shell p.alert[style*="var(--black)"],
.reg-shell p.alert[style*="var(--black)"] * ,
.terminal,.terminal *{color:#fff!important}
.terminal{color:#7dff9b!important}
[data-theme="dark"] .input-group label[style*="position:static"],
[data-theme="dark"] .input-group label[style*="position: static"]{color:#fff8e9!important}

/* Form, statistics and utility surfaces. */
.input-group,.svc-card,.stat-block,.ai-panel,.access-note,.side-card,.top10-item,.catalog-side-link{
  background:var(--surface)!important;
  color:var(--ink)!important;
}
.input-group input,.input-group textarea,.input-group select{color:var(--ink)!important}
.input-group input::placeholder,.input-group textarea::placeholder{color:var(--ink-3)!important;opacity:1!important}
.stat-row span,.ai-panel p,.access-note p,.side-card p,.top10-name,.top10-meta{color:var(--ink-2)!important}
.side-card h3,.top10-domain,.catalog-side-name{color:var(--ink)!important}
.alert.error{background:#fff0f0!important;color:#9f1224!important;border-color:#c8102e!important}
.alert.success{background:#eaf9f2!important;color:#075b3c!important;border-color:#0e7f57!important}
[data-theme="dark"] .alert.error{background:#3a171b!important;color:#ffb8c0!important}
[data-theme="dark"] .alert.success{background:#102d24!important;color:#9df0ce!important}
.legal-hero h1,.legal-hero p,.legal-hero .legal-eyebrow{color:#fff!important;opacity:1!important;text-shadow:0 1px 2px rgba(0,0,0,.28)!important}
.faq-hero h1,.faq-hero p,.highlight-box h3,.highlight-box p{color:#fff!important;opacity:1!important;text-shadow:0 1px 2px rgba(0,0,0,.22)!important}
.registration-modal-head h2,.registration-modal-head p,.registration-modal-kicker,.registration-modal-actions a{color:#17130f!important;opacity:1!important;text-shadow:none!important}
.registration-modal-close{border-radius:50%!important;border-color:#17130f!important;color:#17130f!important;background:#fffaf0!important;box-shadow:3px 3px 0 #17130f!important}
a.svc-home-btn,.legal-home-link{background:#ffc300!important;color:#17130f!important;border-color:#17130f!important}
[data-theme="dark"] .legal-nav-link{background:#292522!important;color:#fff8e9!important;border-color:#625a50!important}
[data-theme="dark"] .legal-nav-link:hover,[data-theme="dark"] .legal-nav-link.active{background:#c8102e!important;color:#fff!important;border-color:#c8102e!important}
[data-theme="dark"] .hero-card.sidebox,[data-theme="dark"] .note{background:#211d19!important;color:#fff8e9!important;border-color:#625a50!important}
[data-theme="dark"] .sidebox h2,[data-theme="dark"] .card h2,[data-theme="dark"] .ticker,[data-theme="dark"] .section-source a{color:#9fc2ff!important}
[data-theme="dark"] .sidebox p,[data-theme="dark"] .card p,[data-theme="dark"] .section-source,[data-theme="dark"] .market-name,[data-theme="dark"] .value-sub,[data-theme="dark"] .value-unit,[data-theme="dark"] .time,[data-theme="dark"] .status-line,[data-theme="dark"] .note{color:#d6ccbd!important}
[data-theme="dark"] .link-item{background:#302a25!important;color:#fff8e9!important;border-color:#625a50!important}
[data-theme="dark"] .bnews-nav a{background:#292522!important;color:#fff8e9!important;border-color:#c5baa8!important;box-shadow:3px 3px 0 #0b0908!important}[data-theme="dark"] .bnews-nav a:first-child{background:#ffc300!important;color:#17130f!important;border-color:#17130f!important}
[data-theme="dark"] .market-table td,[data-theme="dark"] .market-table .value{color:#fff8e9!important;border-color:#51483e!important}
[data-theme="dark"] .svc-h1,[data-theme="dark"] .success-card .title,[data-theme="dark"] .wrapper>h1,[data-theme="dark"] .faq-section h2{color:#fff8e9!important}
[data-theme="dark"] .msg-block strong,[data-theme="dark"] .tariff-card .t-price{color:#9fc2ff!important}
[data-theme="dark"] main h1,[data-theme="dark"] main h2,[data-theme="dark"] main h3,[data-theme="dark"] main h4{color:#fff8e9!important}

/* Home/catalog dark-mode repair. The art layer deliberately keeps category,
   service and chip cards pastel, while rows and news cards use dark surfaces. */
[data-theme="dark"] .chip{color:#17130f!important}
[data-theme="dark"] .chip .cn{color:#17130f!important;background:rgba(255,255,255,.58)!important}
[data-theme="dark"] .chip.on{background:#17130f!important;color:#fff8e9!important;border-color:#fff8e9!important}
[data-theme="dark"] .chip.on .cn{background:#ffc300!important;color:#17130f!important}
[data-theme="dark"] .hm-cat-card,
[data-theme="dark"] .hm-cat-card *,
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-card *{color:#17130f!important}
[data-theme="dark"] .service-card .service-badge{color:#8f172b!important}
[data-theme="dark"] .service-card .service-link{color:#003087!important;text-decoration-thickness:2px}
[data-theme="dark"] .sh .sh-s,
[data-theme="dark"] .wid-sec .sh .sh-s{color:#3d3730!important}

[data-theme="dark"] .rt td{color:#fff8e9!important}
[data-theme="dark"] .rt .sc-pj,[data-theme="dark"] .rt .sc-ds{color:#e8dfcf!important}
[data-theme="dark"] .rt .sc-dn{color:#9fc2ff!important}
[data-theme="dark"] .rt .metric-now{color:#fff8e9!important}
[data-theme="dark"] .rt .metric-total{color:#c5baa8!important}
[data-theme="dark"] .rt .tag-s{background:#27324a!important;color:#dce8ff!important;border-color:#9fc2ff!important}
[data-theme="dark"] .rt .rp1{color:#9fc2ff!important;border-color:#dce8ff!important}

[data-theme="dark"] .side-news-item{background:#292522!important;color:#fff8e9!important;border-color:#c5baa8!important}
[data-theme="dark"] .side-news-item .side-news-title{color:#fff8e9!important}
[data-theme="dark"] .side-news-item .side-news-excerpt{color:#ddd2c2!important}
[data-theme="dark"] .side-news-item .side-news-num{color:#fff!important}
[data-theme="dark"] .side-news-item .ntag{background:#d8e4ff!important;color:#17130f!important}
[data-theme="dark"] .side-news-item .ndate{background:#ffd9d3!important;color:#721326!important}
[data-theme="dark"] .scard-news>h3{color:#9fc2ff!important}
[data-theme="dark"] .scard-news>p{color:#e8dfcf!important}

[data-theme="dark"] .wc,[data-theme="dark"] .wframe{color:#fff8e9!important}
[data-theme="dark"] .wc .wlbl{color:#dce8ff!important}
[data-theme="dark"] .wc .wframe>div[style*="var(--blue)"]{color:#9fc2ff!important}
[data-theme="dark"] .wc .wframe>div[style*="var(--ink-2)"]{color:#e8dfcf!important}
.global-home-return{position:fixed;left:18px;bottom:18px;z-index:120;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border:2px solid #17130f;border-radius:999px;background:#ffc300;color:#17130f!important;box-shadow:4px 4px 0 #17130f;font:800 12px/1 var(--body);text-decoration:none;letter-spacing:.01em;transition:transform .16s,box-shadow .16s}
.global-home-return:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 #17130f}
.global-home-return:focus-visible{outline:4px solid #23b5e8!important;outline-offset:3px!important}
@media(max-width:760px){body{font-size:15px!important}.topbar,.hero-panel,.hpc,.ad-strip,.block,.scard{border-radius:20px!important}}
@media(max-width:820px){.svc-tbi{height:auto!important;min-height:60px;flex-wrap:wrap;padding-top:8px!important;padding-bottom:8px!important}.svc-nav{width:100%;margin-left:0!important;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}.svc-nav>a,.svc-nav>button,.svc-nav>.lsw{flex:0 0 auto}}
@media(max-width:760px){.global-home-return{left:10px;bottom:76px;min-height:38px;padding:0 12px;font-size:11px}}
