/* NEWS HDSPTV V44 — Dark mode readability + mobile article/trending hard fix
   Loaded after every older CSS layer. This file fixes unclear dark-mode text,
   white-card collisions, sidebar/trending mobile word breaks, and button contrast. */

:root{
  --v44-dark-bg:#050B18;
  --v44-dark-surface:#0B1730;
  --v44-dark-card:#101D37;
  --v44-dark-card-2:#132443;
  --v44-dark-border:#31476E;
  --v44-dark-text:#F8FAFC;
  --v44-dark-muted:#D8E5F7;
  --v44-dark-soft:#BFD0EA;
  --v44-yellow:#FACC15;
  --v44-red:#E50914;
  --v44-light-bg:#F5F7FB;
  --v44-light-card:#FFFFFF;
  --v44-light-text:#0F172A;
  --v44-light-muted:#334155;
  --v44-light-border:#CBD5E1;
}

/* Global text clarity: never allow vertical broken letters on public pages. */
html[data-theme] body.hs-public-body,
html[data-theme] body.hs-public-body *{
  box-sizing:border-box!important;
}
html[data-theme] body.hs-public-body h1,
html[data-theme] body.hs-public-body h2,
html[data-theme] body.hs-public-body h3,
html[data-theme] body.hs-public-body h4,
html[data-theme] body.hs-public-body h5,
html[data-theme] body.hs-public-body h6,
html[data-theme] body.hs-public-body p,
html[data-theme] body.hs-public-body a,
html[data-theme] body.hs-public-body li,
html[data-theme] body.hs-public-body span,
html[data-theme] body.hs-public-body small,
html[data-theme] body.hs-public-body strong,
html[data-theme] body.hs-public-body div{
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:none!important;
  text-shadow:none!important;
}
html[data-theme] body.hs-public-body a{
  text-decoration:none!important;
}

/* Dark mode must stay dark. Older CSS forced article pages to white, causing invisible text. */
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .article-main,
html[data-theme="dark"] .article-inner,
html[data-theme="dark"] .article-sidebar,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .related-card,
html[data-theme="dark"] .author-bio,
html[data-theme="dark"] .share-block,
html[data-theme="dark"] .article-media-gallery figure,
html[data-theme="dark"] .article-related-video{
  background:var(--v44-dark-card)!important;
  color:var(--v44-dark-text)!important;
  border-color:var(--v44-dark-border)!important;
}
html[data-theme="dark"] .article-main,
html[data-theme="dark"] .article-inner{
  background:linear-gradient(180deg,var(--v44-dark-card),var(--v44-dark-surface))!important;
}
html[data-theme="dark"] .article-sidebar{
  background:#0B162E!important;
  border-left:1px solid var(--v44-dark-border)!important;
}
html[data-theme="dark"] .sidebar-card{
  background:rgba(16,29,55,.96)!important;
  border:1px solid var(--v44-dark-border)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] .article-title,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .article-body p,
html[data-theme="dark"] .article-body li,
html[data-theme="dark"] .article-body h2,
html[data-theme="dark"] .article-body h3,
html[data-theme="dark"] .article-excerpt,
html[data-theme="dark"] .article-card h1,
html[data-theme="dark"] .article-card h2,
html[data-theme="dark"] .article-card h3,
html[data-theme="dark"] .sidebar-title,
html[data-theme="dark"] .sidebar-card h2,
html[data-theme="dark"] .sidebar-card h3,
html[data-theme="dark"] .related-card strong,
html[data-theme="dark"] .share-block span{
  color:var(--v44-dark-text)!important;
}
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .article-excerpt,
html[data-theme="dark"] .sidebar-list small,
html[data-theme="dark"] .related-card small,
html[data-theme="dark"] .hs-empty,
html[data-theme="dark"] .article-gallery-grid figcaption,
html[data-theme="dark"] .article-body figcaption{
  color:var(--v44-dark-muted)!important;
}
html[data-theme="dark"] .article-kicker,
html[data-theme="dark"] .breadcrumb a,
html[data-theme="dark"] .article-tags a,
html[data-theme="dark"] .sidebar-list a,
html[data-theme="dark"] .related-card:hover strong,
html[data-theme="dark"] .hs-back-link{
  color:var(--v44-yellow)!important;
}
html[data-theme="dark"] .article-body a{
  color:#FFE45C!important;
  font-weight:850!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
html[data-theme="dark"] .article-body blockquote{
  background:#0A1429!important;
  border-left:4px solid var(--v44-yellow)!important;
  color:var(--v44-dark-text)!important;
}

/* Light mode article pages remain clear and readable. */
html[data-theme="light"] .article-card,
html[data-theme="light"] .article-main,
html[data-theme="light"] .article-inner,
html[data-theme="light"] .sidebar-card,
html[data-theme="light"] .related-card,
html[data-theme="light"] .author-bio{
  background:var(--v44-light-card)!important;
  color:var(--v44-light-text)!important;
  border-color:var(--v44-light-border)!important;
}
html[data-theme="light"] .article-title,
html[data-theme="light"] .article-body,
html[data-theme="light"] .article-body p,
html[data-theme="light"] .article-body li,
html[data-theme="light"] .article-card h1,
html[data-theme="light"] .article-card h2,
html[data-theme="light"] .article-card h3,
html[data-theme="light"] .sidebar-title,
html[data-theme="light"] .related-card strong{
  color:var(--v44-light-text)!important;
}
html[data-theme="light"] .article-meta,
html[data-theme="light"] .article-excerpt,
html[data-theme="light"] .sidebar-list small,
html[data-theme="light"] .related-card small,
html[data-theme="light"] .hs-empty{
  color:var(--v44-light-muted)!important;
}
html[data-theme="light"] .article-sidebar{
  background:#F1F5F9!important;
  color:var(--v44-light-text)!important;
  border-color:var(--v44-light-border)!important;
}

/* Article spacing and text sizes. */
html[data-theme] .article-inner{
  min-width:0!important;
}
html[data-theme] .article-title{
  margin:8px 0 12px!important;
  line-height:1.12!important;
  font-weight:950!important;
}
html[data-theme] .article-body,
html[data-theme] .article-body p,
html[data-theme] .article-body li{
  font-size:18px!important;
  line-height:1.82!important;
  letter-spacing:0!important;
}
html[data-theme] .article-body img,
html[data-theme] .article-hero-image img,
html[data-theme] .article-gallery-grid img{
  max-width:100%!important;
  height:auto!important;
}
html[data-theme] .article-tags,
html[data-theme] .share-links{
  min-width:0!important;
  max-width:100%!important;
}

/* Professional buttons: social/share/back/category buttons must look tappable and readable. */
html[data-theme] .share-links .share-btn,
html[data-theme] .share-links a.share-btn,
html[data-theme] .share-links button.share-btn,
html[data-theme] .hs-back-link,
html[data-theme] .article-tags a,
html[data-theme] .tag-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:40px!important;
  padding:10px 14px!important;
  border-radius:999px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#FFFFFF!important;
  background:#1D4ED8!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  box-shadow:0 10px 24px rgba(2,6,23,.20)!important;
}
html[data-theme] .share-links .share-whatsapp{background:#128C7E!important;color:#fff!important;}
html[data-theme] .share-links .share-facebook{background:#1877F2!important;color:#fff!important;}
html[data-theme] .share-links .share-x{background:#111827!important;color:#fff!important;}
html[data-theme] .share-links .share-telegram{background:#229ED9!important;color:#fff!important;}
html[data-theme] .share-links .share-copy{background:var(--v44-yellow)!important;color:#111827!important;border-color:#FDE68A!important;}
html[data-theme] .hs-back-link,
html[data-theme] .article-tags a{background:rgba(250,204,21,.14)!important;color:var(--v44-yellow)!important;border-color:rgba(250,204,21,.42)!important;}
html[data-theme="light"] .hs-back-link,
html[data-theme="light"] .article-tags a{background:#FFF7D6!important;color:#991B1B!important;border-color:#FACC15!important;}

/* Trending sidebar: image/placeholder + content must always have a real text column. */
html[data-theme] .sidebar-list-media{
  width:100%!important;
  min-width:0!important;
  list-style:none!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  gap:10px!important;
}
html[data-theme] .sidebar-list-media li{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  gap:11px!important;
  align-items:center!important;
  padding:10px 0!important;
  border-bottom:1px solid rgba(148,163,184,.24)!important;
}
html[data-theme] .sidebar-list-media li:last-child{border-bottom:0!important;}
html[data-theme] .sidebar-list-media img,
html[data-theme] .hs-sidebar-thumb-placeholder{
  grid-column:1!important;
  width:64px!important;
  height:50px!important;
  min-width:64px!important;
  max-width:64px!important;
  border-radius:14px!important;
  object-fit:cover!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg,#1E3A8A,#0F172A)!important;
  color:var(--v44-yellow)!important;
  border:1px solid rgba(148,163,184,.32)!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
html[data-theme] .sidebar-list-media li > span:not(.hs-sidebar-thumb-placeholder){
  grid-column:2!important;
  min-width:0!important;
  max-width:100%!important;
  display:grid!important;
  gap:4px!important;
}
html[data-theme] .sidebar-list-media a{
  display:block!important;
  max-width:100%!important;
  min-width:0!important;
  color:var(--v44-dark-text)!important;
  font-size:15px!important;
  line-height:1.28!important;
  font-weight:950!important;
  letter-spacing:0!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}
html[data-theme] .sidebar-list-media small{
  display:block!important;
  max-width:100%!important;
  font-size:12px!important;
  line-height:1.25!important;
  white-space:normal!important;
}
html[data-theme="light"] .sidebar-list-media a{color:var(--v44-light-text)!important;}

/* Homepage side/trending lists get the same mobile-safe readable treatment. */
html[data-theme] .hs-side-list,
html[data-theme] .hs-side-list li{
  min-width:0!important;
  max-width:100%!important;
}
html[data-theme] .hs-side-list li{
  display:block!important;
  padding:10px 0!important;
}
html[data-theme] .hs-side-list a{
  display:block!important;
  font-size:15px!important;
  line-height:1.28!important;
  font-weight:950!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}

/* Related cards: stop tight two-column text compression on phones. */
html[data-theme] .related-card-grid{
  width:100%!important;
  min-width:0!important;
}
html[data-theme] .related-card{
  min-width:0!important;
  max-width:100%!important;
}
html[data-theme] .related-card strong,
html[data-theme] .related-card small{
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}

/* Mobile app mode: compact article, sidebar and text. */
@media (max-width:820px), (max-device-width:820px){
  html[data-theme] body.hs-public-body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  html[data-theme] .page,
  html[data-theme] .layout-article{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:10px 10px 32px!important;
    margin:0!important;
  }
  html[data-theme] .breadcrumb{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    margin:8px 0 12px!important;
    font-size:13px!important;
    line-height:1.35!important;
  }
  html[data-theme] .article-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:block!important;
    grid-template-columns:1fr!important;
    padding:0!important;
    margin:0!important;
    border-radius:22px!important;
    overflow:hidden!important;
  }
  html[data-theme] .article-main,
  html[data-theme] .article-sidebar{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:block!important;
    padding:0!important;
    border-left:0!important;
  }
  html[data-theme] .article-sidebar{
    padding:12px!important;
    border-top:1px solid var(--v44-dark-border)!important;
  }
  html[data-theme="light"] .article-sidebar{border-top:1px solid var(--v44-light-border)!important;}
  html[data-theme] .article-inner{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:16px!important;
  }
  html[data-theme] .article-hero-image{
    width:100%!important;
    max-height:none!important;
    aspect-ratio:16/9!important;
    background:#0F172A!important;
  }
  html[data-theme] .article-hero-image img{
    width:100%!important;
    height:100%!important;
    max-height:none!important;
    object-fit:cover!important;
    display:block!important;
  }
  html[data-theme] .article-kicker{
    display:block!important;
    font-size:11px!important;
    line-height:1.25!important;
    letter-spacing:.16em!important;
    margin:0 0 8px!important;
  }
  html[data-theme] .article-title{
    font-size:26px!important;
    line-height:1.18!important;
    letter-spacing:-.025em!important;
    margin:8px 0!important;
  }
  html[data-theme] .article-meta{
    font-size:13px!important;
    line-height:1.35!important;
    margin:0 0 10px!important;
  }
  html[data-theme] .article-excerpt{
    font-size:16px!important;
    line-height:1.55!important;
    margin:10px 0 14px!important;
  }
  html[data-theme] .article-body,
  html[data-theme] .article-body p,
  html[data-theme] .article-body li{
    font-size:16px!important;
    line-height:1.75!important;
  }
  html[data-theme] .article-body h2{font-size:22px!important;line-height:1.2!important;}
  html[data-theme] .article-body h3{font-size:19px!important;line-height:1.25!important;}
  html[data-theme] .sidebar-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:14px!important;
    margin:0 0 12px!important;
    border-radius:20px!important;
  }
  html[data-theme] .sidebar-title,
  html[data-theme] .sidebar-card h2{
    font-size:16px!important;
    line-height:1.2!important;
    letter-spacing:.06em!important;
    text-transform:uppercase!important;
    margin:0 0 12px!important;
  }
  html[data-theme] .sidebar-list-media li{
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:10px!important;
    padding:9px 0!important;
  }
  html[data-theme] .sidebar-list-media img,
  html[data-theme] .hs-sidebar-thumb-placeholder{
    width:56px!important;
    height:46px!important;
    min-width:56px!important;
    max-width:56px!important;
    border-radius:13px!important;
  }
  html[data-theme] .sidebar-list-media a{
    font-size:15px!important;
    line-height:1.25!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  html[data-theme] .sidebar-list-media small{font-size:12px!important;line-height:1.25!important;}
  html[data-theme] .related-card{
    grid-template-columns:72px minmax(0,1fr)!important;
    gap:10px!important;
    padding:10px!important;
    border-radius:17px!important;
  }
  html[data-theme] .related-card img,
  html[data-theme] .related-card-placeholder{
    width:72px!important;
    height:58px!important;
    font-size:10px!important;
    border-radius:13px!important;
  }
  html[data-theme] .related-card strong{
    font-size:14px!important;
    line-height:1.25!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  html[data-theme] .share-block{
    margin-top:18px!important;
    padding-top:16px!important;
  }
  html[data-theme] .share-links{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  html[data-theme] .share-links .share-btn,
  html[data-theme] .share-links a.share-btn,
  html[data-theme] .share-links button.share-btn{
    width:100%!important;
    min-width:0!important;
    min-height:42px!important;
    padding:10px 8px!important;
    font-size:12px!important;
  }
  html[data-theme] .hs-side .hs-panel,
  html[data-theme] .hs-side-list li{
    width:100%!important;
    min-width:0!important;
  }
  html[data-theme] .hs-side-list a{
    font-size:15px!important;
    line-height:1.28!important;
  }
}

@media (max-width:390px), (max-device-width:390px){
  html[data-theme] .article-title{font-size:24px!important;}
  html[data-theme] .article-inner{padding:14px!important;}
  html[data-theme] .article-sidebar{padding:10px!important;}
  html[data-theme] .sidebar-card{padding:12px!important;border-radius:18px!important;}
  html[data-theme] .sidebar-list-media li{grid-template-columns:50px minmax(0,1fr)!important;gap:9px!important;}
  html[data-theme] .sidebar-list-media img,
  html[data-theme] .hs-sidebar-thumb-placeholder{width:50px!important;height:42px!important;min-width:50px!important;max-width:50px!important;}
  html[data-theme] .sidebar-list-media a{font-size:14px!important;line-height:1.25!important;}
  html[data-theme] .related-card{grid-template-columns:64px minmax(0,1fr)!important;}
  html[data-theme] .related-card img,
  html[data-theme] .related-card-placeholder{width:64px!important;height:52px!important;}
}
