/* NEWS HDSPTV V40 - high readability colors, typography and professional buttons
   Loaded last. This file intentionally overrides older dark/light/mobile CSS. */
:root{
  --v40-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --v40-radius: 20px;
  --v40-radius-sm: 14px;
  --v40-shadow: 0 20px 50px rgba(2,6,23,.24);
  --v40-shadow-soft: 0 10px 28px rgba(2,6,23,.16);
}
html[data-theme="dark"]{
  --v40-bg:#050B18;
  --v40-bg-2:#081225;
  --v40-surface:#0F1B33;
  --v40-surface-2:#132341;
  --v40-card:#101D37;
  --v40-card-soft:#142543;
  --v40-text:#F8FAFC;
  --v40-heading:#FFFFFF;
  --v40-muted:#D7E3F4;
  --v40-muted-2:#B9C7DC;
  --v40-border:#2A3B5F;
  --v40-border-strong:#47628E;
  --v40-link:#FFE45C;
  --v40-link-hover:#FFFFFF;
  --v40-primary:#FFDA1A;
  --v40-primary-text:#111827;
  --v40-danger:#E50914;
  --v40-danger-text:#FFFFFF;
  --v40-good:#21C55D;
  --v40-input:#FFFFFF;
  --v40-input-text:#0F172A;
}
html[data-theme="light"]{
  --v40-bg:#F3F6FB;
  --v40-bg-2:#FFFFFF;
  --v40-surface:#FFFFFF;
  --v40-surface-2:#F8FAFC;
  --v40-card:#FFFFFF;
  --v40-card-soft:#F8FAFC;
  --v40-text:#0F172A;
  --v40-heading:#020617;
  --v40-muted:#334155;
  --v40-muted-2:#475569;
  --v40-border:#CBD5E1;
  --v40-border-strong:#94A3B8;
  --v40-link:#B91C1C;
  --v40-link-hover:#7F1D1D;
  --v40-primary:#FFD91A;
  --v40-primary-text:#111827;
  --v40-danger:#D60000;
  --v40-danger-text:#FFFFFF;
  --v40-good:#15803D;
  --v40-input:#FFFFFF;
  --v40-input-text:#0F172A;
}
html[data-theme]{font-size:16px!important;}
html[data-theme] body{
  font-family:var(--v40-font)!important;
  background:var(--v40-bg)!important;
  color:var(--v40-text)!important;
  line-height:1.65!important;
  letter-spacing:0!important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden!important;
}
html[data-theme] body.hs-public-body{
  background:radial-gradient(circle at 10% 0%,rgba(30,64,175,.34),transparent 38%),var(--v40-bg)!important;
}
html[data-theme="light"] body.hs-public-body{
  background:linear-gradient(180deg,#FFFFFF 0%,#F3F6FB 42%,#EEF2F7 100%)!important;
}
html[data-theme] h1,
html[data-theme] h2,
html[data-theme] h3,
html[data-theme] h4,
html[data-theme] h5,
html[data-theme] h6,
html[data-theme] .article-title,
html[data-theme] .category-title,
html[data-theme] .news-title,
html[data-theme] .hs-section-title h2,
html[data-theme] .sidebar-title{
  color:var(--v40-heading)!important;
  font-weight:900!important;
  letter-spacing:-.025em!important;
  line-height:1.18!important;
  text-wrap:balance;
}
html[data-theme] p,
html[data-theme] li,
html[data-theme] .hs-muted,
html[data-theme] .hs-meta,
html[data-theme] .news-meta,
html[data-theme] .article-meta,
html[data-theme] .category-sub,
html[data-theme] .news-excerpt,
html[data-theme] .article-excerpt,
html[data-theme] .hs-empty,
html[data-theme] small{
  color:var(--v40-muted)!important;
  line-height:1.65!important;
}
html[data-theme] .hs-meta,
html[data-theme] .news-meta,
html[data-theme] .article-meta,
html[data-theme] small{font-weight:600!important;}
html[data-theme] a{
  color:var(--v40-link)!important;
  font-weight:750;
  text-decoration:none!important;
}
html[data-theme] a:hover{color:var(--v40-link-hover)!important;text-decoration:underline!important;text-underline-offset:3px;}
html[data-theme] a:focus-visible,
html[data-theme] button:focus-visible,
html[data-theme] input:focus-visible,
html[data-theme] textarea:focus-visible,
html[data-theme] select:focus-visible{
  outline:3px solid var(--v40-primary)!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 6px rgba(250,204,21,.22)!important;
}
html[data-theme] img{image-rendering:auto;}

/* Header and navigation clarity */
html[data-theme] .hs-site-header{
  background:rgba(8,18,37,.97)!important;
  backdrop-filter:blur(18px)!important;
  border-bottom:1px solid var(--v40-border)!important;
  box-shadow:0 10px 30px rgba(2,6,23,.28)!important;
}
html[data-theme="light"] .hs-site-header{background:rgba(255,255,255,.98)!important;box-shadow:0 8px 24px rgba(15,23,42,.08)!important;}
html[data-theme] .hs-header-inner{width:min(1380px,calc(100vw - 28px))!important;}
html[data-theme] .logo-text-main{color:var(--v40-heading)!important;font-size:24px!important;letter-spacing:.09em!important;text-shadow:none!important;}
html[data-theme] .logo-text-tag{color:var(--v40-primary)!important;font-size:13px!important;font-weight:900!important;letter-spacing:.12em!important;}
html[data-theme] .logo-mark{background:#0B1530!important;border:1px solid var(--v40-border)!important;box-shadow:0 12px 24px rgba(2,6,23,.28)!important;}
html[data-theme="light"] .logo-mark{background:#111827!important;}
html[data-theme] .nav-main{gap:10px!important;}
html[data-theme] .nav-main a{
  background:var(--v40-card-soft)!important;
  border:1px solid var(--v40-border)!important;
  color:var(--v40-text)!important;
  font-size:13px!important;
  font-weight:900!important;
  letter-spacing:.075em!important;
  box-shadow:0 6px 16px rgba(2,6,23,.12)!important;
}
html[data-theme] .nav-main a:hover,
html[data-theme] .nav-main a.is-active{
  background:var(--v40-primary)!important;
  color:var(--v40-primary-text)!important;
  border-color:var(--v40-primary)!important;
  text-decoration:none!important;
}
html[data-theme] .user-bar a,
html[data-theme] .hs-theme-toggle,
html[data-theme] .hs-theme-toggle-admin{
  min-height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:9px 14px!important;
  border-radius:999px!important;
  border:1px solid var(--v40-border-strong)!important;
  background:var(--v40-card-soft)!important;
  color:var(--v40-text)!important;
  font-size:14px!important;
  font-weight:900!important;
  box-shadow:0 10px 20px rgba(2,6,23,.14)!important;
  text-decoration:none!important;
}
html[data-theme] .user-bar a:hover,
html[data-theme] .hs-theme-toggle:hover{background:var(--v40-primary)!important;color:var(--v40-primary-text)!important;}
html[data-theme] .nav-search input,
html[data-theme] input[type="text"],
html[data-theme] input[type="email"],
html[data-theme] input[type="password"],
html[data-theme] input[type="url"],
html[data-theme] input[type="number"],
html[data-theme] textarea,
html[data-theme] select{
  background:var(--v40-input)!important;
  color:var(--v40-input-text)!important;
  border:2px solid var(--v40-border-strong)!important;
  border-radius:16px!important;
  font-size:16px!important;
  font-weight:600!important;
  min-height:46px!important;
}
html[data-theme] .nav-search input{border-radius:999px!important;padding:0 18px!important;}
html[data-theme] .nav-search input::placeholder{color:#64748B!important;opacity:1!important;}
html[data-theme] .nav-search button,
html[data-theme] button[type="submit"],
html[data-theme] input[type="submit"],
html[data-theme] .hs-btn,
html[data-theme] .hs-auth-submit,
html[data-theme] #installPwaBtn,
html[data-theme] .hs-cookie-warning button{
  min-height:46px!important;
  border-radius:999px!important;
  border:0!important;
  background:var(--v40-danger)!important;
  color:var(--v40-danger-text)!important;
  padding:0 22px!important;
  font-size:15px!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  box-shadow:0 12px 22px rgba(214,0,0,.22)!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
html[data-theme] .nav-search button:hover,
html[data-theme] button[type="submit"]:hover,
html[data-theme] .hs-btn:hover,
html[data-theme] .hs-auth-submit:hover,
html[data-theme] #installPwaBtn:hover{filter:brightness(1.06)!important;transform:translateY(-1px);}

/* Clear cards and content blocks */
html[data-theme] .hs-panel,
html[data-theme] .category-header,
html[data-theme] .tag-header,
html[data-theme] .search-header,
html[data-theme] .article-card,
html[data-theme] .news-card,
html[data-theme] .result-card,
html[data-theme] .sidebar-card,
html[data-theme] .hs-story,
html[data-theme] .hs-news-card,
html[data-theme] .hs-region,
html[data-theme] .hs-category-chip,
html[data-theme] .hs-install-hint{
  background:var(--v40-card)!important;
  color:var(--v40-text)!important;
  border:1px solid var(--v40-border)!important;
  box-shadow:var(--v40-shadow-soft)!important;
}
html[data-theme] .hs-panel,
html[data-theme] .category-header,
html[data-theme] .tag-header,
html[data-theme] .search-header,
html[data-theme] .article-card,
html[data-theme] .sidebar-card{border-radius:24px!important;}
html[data-theme] .hs-kicker,
html[data-theme] .news-kicker,
html[data-theme] .article-kicker,
html[data-theme] .hs-region-head span:first-child,
html[data-theme] .hs-breaking-ticker strong{
  color:var(--v40-primary)!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
html[data-theme] .hs-lead{
  background:linear-gradient(135deg,#172B52,#071126)!important;
  border:1px solid var(--v40-border)!important;
  color:#FFFFFF!important;
}
html[data-theme] .hs-lead.has-image{background-size:cover!important;background-position:center!important;}
html[data-theme] .hs-lead h1 a,
html[data-theme] .hs-lead .hs-meta,
html[data-theme] .hs-lead p{color:#FFFFFF!important;text-shadow:0 2px 12px rgba(0,0,0,.55)!important;}
html[data-theme="light"] .hs-lead:not(.has-image) h1 a,
html[data-theme="light"] .hs-lead:not(.has-image) .hs-meta,
html[data-theme="light"] .hs-lead:not(.has-image) p{color:#FFFFFF!important;}
html[data-theme] .hs-story h3 a,
html[data-theme] .hs-news-card h3 a,
html[data-theme] .news-title a,
html[data-theme] .result-card h2 a,
html[data-theme] .sidebar-list a,
html[data-theme] .hs-side-list a,
html[data-theme] .related-card strong{
  color:var(--v40-heading)!important;
  font-weight:900!important;
}
html[data-theme] .hs-story h3 a:hover,
html[data-theme] .hs-news-card h3 a:hover,
html[data-theme] .news-title a:hover,
html[data-theme] .result-card h2 a:hover,
html[data-theme] .sidebar-list a:hover,
html[data-theme] .hs-side-list a:hover{color:var(--v40-link)!important;}
html[data-theme] .hs-thumb,
html[data-theme] .related-card-placeholder{background:#1E3A8A!important;color:#FFE45C!important;}
html[data-theme] .hs-section-title a,
html[data-theme] .hs-region-head a,
html[data-theme] .hs-back-link,
html[data-theme] .subcategory-pills a,
html[data-theme] .article-tags a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:8px 13px!important;
  border-radius:999px!important;
  background:var(--v40-primary)!important;
  color:var(--v40-primary-text)!important;
  border:1px solid var(--v40-primary)!important;
  font-size:13px!important;
  font-weight:950!important;
  text-decoration:none!important;
}
html[data-theme] .hs-category-chip:hover,
html[data-theme] .related-card:hover,
html[data-theme] .news-card:hover,
html[data-theme] .hs-news-card:hover{transform:translateY(-2px);border-color:var(--v40-primary)!important;text-decoration:none!important;}

/* Breaking ticker with readable letters */
html[data-theme] .hs-breaking-ticker{
  background:linear-gradient(90deg,#7F1D1D,#0F1B33)!important;
  border-top:1px solid var(--v40-border-strong)!important;
  border-bottom:1px solid var(--v40-border-strong)!important;
}
html[data-theme="light"] .hs-breaking-ticker{background:linear-gradient(90deg,#FFF3CD,#FFFFFF)!important;}
html[data-theme] .hs-ticker-track a{color:var(--v40-heading)!important;font-size:15px!important;font-weight:900!important;}
html[data-theme="light"] .hs-ticker-track a{color:#7F1D1D!important;}

/* Article readability */
html[data-theme] .article-main,
html[data-theme] .article-inner{
  color:var(--v40-text)!important;
}
html[data-theme] .article-title{font-size:clamp(30px,4vw,56px)!important;}
html[data-theme] .article-excerpt{font-size:clamp(17px,2vw,22px)!important;font-weight:650!important;color:var(--v40-muted)!important;}
html[data-theme] .article-body{
  color:var(--v40-text)!important;
  font-size:18px!important;
  line-height:1.82!important;
  word-break:normal!important;
}
html[data-theme] .article-body p,
html[data-theme] .article-body li{
  color:var(--v40-text)!important;
  font-size:18px!important;
  line-height:1.82!important;
  margin-bottom:1.1em!important;
}
html[data-theme] .article-body h2,
html[data-theme] .article-body h3{margin-top:1.5em!important;}
html[data-theme] .article-body a{color:var(--v40-link)!important;text-decoration:underline!important;text-underline-offset:3px;}
html[data-theme="light"] .article-body a{color:#B91C1C!important;}
html[data-theme] .article-hero-image img,
html[data-theme] .news-thumb img,
html[data-theme] .hs-news-img img{border-radius:18px!important;}

/* Social share buttons and official social links */
html[data-theme] .share-block{
  margin-top:30px!important;
  padding:20px!important;
  border-radius:22px!important;
  background:var(--v40-card-soft)!important;
  border:1px solid var(--v40-border)!important;
}
html[data-theme] .share-block>span{
  display:block!important;
  color:var(--v40-heading)!important;
  font-weight:950!important;
  font-size:17px!important;
  margin-bottom:12px!important;
}
html[data-theme] .share-links,
html[data-theme] .hs-social-links{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
}
html[data-theme] .share-links a,
html[data-theme] .share-links button,
html[data-theme] .hs-social-links a{
  min-height:44px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:10px 16px!important;
  border-radius:999px!important;
  border:2px solid transparent!important;
  font-size:14px!important;
  font-weight:950!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 10px 20px rgba(2,6,23,.14)!important;
  cursor:pointer!important;
}
html[data-theme] .share-whatsapp,
html[data-theme] .share-links a[href*="wa.me"]{background:#DCFCE7!important;color:#14532D!important;border-color:#22C55E!important;}
html[data-theme] .share-facebook,
html[data-theme] .share-links a[href*="facebook.com"]{background:#DBEAFE!important;color:#1E3A8A!important;border-color:#3B82F6!important;}
html[data-theme] .share-x,
html[data-theme] .share-links a[href*="twitter.com"]{background:#111827!important;color:#FFFFFF!important;border-color:#64748B!important;}
html[data-theme] .share-telegram,
html[data-theme] .share-links a[href*="t.me"]{background:#E0F2FE!important;color:#075985!important;border-color:#38BDF8!important;}
html[data-theme] .share-copy{background:#FEF3C7!important;color:#78350F!important;border-color:#F59E0B!important;}
html[data-theme] .hs-social-links a{background:var(--v40-primary)!important;color:var(--v40-primary-text)!important;border-color:var(--v40-primary)!important;}
html[data-theme] .share-links a:hover,
html[data-theme] .share-links button:hover,
html[data-theme] .hs-social-links a:hover{transform:translateY(-1px);filter:brightness(1.04);text-decoration:none!important;}

/* Auth pages */
html[data-theme] .hs-auth-body{
  min-height:100vh!important;
  background:linear-gradient(135deg,#050B18,#132341)!important;
  color:var(--v40-text)!important;
  padding:24px!important;
}
html[data-theme="light"] .hs-auth-body{background:linear-gradient(135deg,#FFFFFF,#EAF0F8)!important;}
html[data-theme] .hs-auth-card,
html[data-theme] .hs-auth-aside{
  background:var(--v40-card)!important;
  border:1px solid var(--v40-border)!important;
  color:var(--v40-text)!important;
  box-shadow:var(--v40-shadow)!important;
}
html[data-theme] .hs-auth-card h2,
html[data-theme] .hs-auth-aside h1{color:var(--v40-heading)!important;}
html[data-theme] .hs-auth-field label{color:var(--v40-heading)!important;font-weight:900!important;font-size:15px!important;}
html[data-theme] .hs-auth-links{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:16px!important;}
html[data-theme] .hs-auth-links a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:40px!important;padding:8px 13px!important;border-radius:999px!important;
  background:var(--v40-card-soft)!important;border:1px solid var(--v40-border)!important;color:var(--v40-link)!important;font-weight:900!important;
}
html[data-theme] .hs-auth-alert{border-radius:14px!important;padding:12px 14px!important;font-weight:800!important;}
html[data-theme] .hs-auth-alert.error{background:#FEE2E2!important;color:#7F1D1D!important;border:1px solid #FCA5A5!important;}
html[data-theme] .hs-auth-alert.success{background:#DCFCE7!important;color:#14532D!important;border:1px solid #86EFAC!important;}

/* Admin and general tables/buttons clarity */
html[data-theme] .hs-admin-body{background:var(--v40-bg)!important;color:var(--v40-text)!important;}
html[data-theme] .hs-admin-card,
html[data-theme] .hs-stat-card,
html[data-theme] .hs-guide-card,
html[data-theme] .hs-mini-card,
html[data-theme] .hs-table-wrap{background:var(--v40-card)!important;color:var(--v40-text)!important;border-color:var(--v40-border)!important;}
html[data-theme] .hs-admin-card h2,
html[data-theme] .hs-admin-card h3,
html[data-theme] .hs-stat-card strong{color:var(--v40-heading)!important;}
html[data-theme] .hs-btn-light{background:var(--v40-primary)!important;color:var(--v40-primary-text)!important;border-color:var(--v40-primary)!important;}
html[data-theme] .hs-table th{color:var(--v40-heading)!important;background:var(--v40-card-soft)!important;}
html[data-theme] .hs-table td{color:var(--v40-text)!important;border-color:var(--v40-border)!important;}

/* Cookie bar */
html[data-theme] .hs-cookie-warning{
  position:fixed!important;left:16px!important;right:16px!important;bottom:16px!important;z-index:9999!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  background:var(--v40-card)!important;color:var(--v40-text)!important;border:1px solid var(--v40-border-strong)!important;border-radius:18px!important;padding:14px!important;box-shadow:var(--v40-shadow)!important;
}

@media (max-width:760px){
  html[data-theme]{font-size:15.5px!important;}
  html[data-theme] .hs-header-inner{width:calc(100vw - 20px)!important;padding:12px 0!important;}
  html[data-theme] .logo-text-main{font-size:18px!important;letter-spacing:.07em!important;max-width:calc(100vw - 136px)!important;}
  html[data-theme] .logo-text-tag{font-size:10px!important;max-width:calc(100vw - 136px)!important;}
  html[data-theme] .logo-mark{width:70px!important;height:54px!important;min-width:70px!important;}
  html[data-theme] .user-bar{gap:8px!important;justify-content:flex-start!important;}
  html[data-theme] .user-bar a{min-height:40px!important;padding:8px 12px!important;font-size:13px!important;}
  html[data-theme] .hs-theme-toggle{min-height:40px!important;padding:8px 11px!important;font-size:13px!important;}
  html[data-theme] .nav-main{gap:8px!important;padding:3px 1px 10px!important;}
  html[data-theme] .nav-main a{font-size:12px!important;min-height:36px!important;padding:9px 12px!important;max-width:none!important;}
  html[data-theme] .nav-search{grid-template-columns:minmax(0,1fr) 96px!important;gap:8px!important;}
  html[data-theme] .nav-search input{min-height:44px!important;font-size:14px!important;padding:0 14px!important;}
  html[data-theme] .nav-search button{min-height:44px!important;width:96px!important;padding:0!important;font-size:14px!important;}
  html[data-theme] .hs-home,
  html[data-theme] .page,
  html[data-theme] .layout-category,
  html[data-theme] .layout-tag,
  html[data-theme] .layout-search,
  html[data-theme] .layout-article{width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;}
  html[data-theme] .hs-panel,
  html[data-theme] .category-header,
  html[data-theme] .tag-header,
  html[data-theme] .search-header,
  html[data-theme] .article-card,
  html[data-theme] .sidebar-card{border-radius:20px!important;padding:16px!important;}
  html[data-theme] .hs-hero,
  html[data-theme] .hs-grid-main,
  html[data-theme] .card-grid,
  html[data-theme] .hs-card-grid,
  html[data-theme] .hs-region-grid,
  html[data-theme] .article-card{grid-template-columns:1fr!important;gap:14px!important;}
  html[data-theme] .hs-lead{min-height:220px!important;padding:18px!important;}
  html[data-theme] .hs-lead h1{font-size:28px!important;line-height:1.16!important;word-break:normal!important;}
  html[data-theme] .hs-section-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;}
  html[data-theme] .hs-section-title h2{font-size:22px!important;}
  html[data-theme] .hs-story{grid-template-columns:76px minmax(0,1fr)!important;gap:12px!important;padding:12px!important;}
  html[data-theme] .hs-story h3{font-size:16px!important;line-height:1.25!important;}
  html[data-theme] .article-title{font-size:31px!important;line-height:1.15!important;}
  html[data-theme] .article-body,
  html[data-theme] .article-body p,
  html[data-theme] .article-body li{font-size:17px!important;line-height:1.78!important;}
  html[data-theme] .share-links{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
  html[data-theme] .share-links a,
  html[data-theme] .share-links button{width:100%!important;font-size:13px!important;padding:10px 8px!important;}
  html[data-theme] .hs-social-links{display:grid!important;grid-template-columns:1fr 1fr!important;}
  html[data-theme] .hs-cookie-warning{left:10px!important;right:10px!important;bottom:10px!important;align-items:flex-start!important;flex-direction:column!important;}
  html[data-theme] .hs-cookie-warning button{width:100%!important;}
}
@media (max-width:380px){
  html[data-theme] .logo-text-main{font-size:16px!important;}
  html[data-theme] .logo-text-tag{font-size:9px!important;}
  html[data-theme] .nav-search{grid-template-columns:1fr!important;}
  html[data-theme] .nav-search button{width:100%!important;}
  html[data-theme] .share-links{grid-template-columns:1fr!important;}
}
