/*
 * NewsiumDigital v11.2.0 Visual Controls
 * Product by Indusian Technologies — https://indusiantech.org/
 */

/* Header and logo */
.sp-logo-image-link img,.custom-logo-link img{max-width:min(100%,var(--sp-logo-max-width,260px))!important;height:auto!important}
body.sp-header-density-compact .sp-brand-row{padding-block:14px!important}
body.sp-header-density-balanced .sp-brand-row{padding-block:26px!important}
body.sp-header-density-airy .sp-brand-row{padding-block:38px!important}
body.sp-header-density-compact .sp-logo small{margin-top:3px!important;font-size:12px!important}
body.sp-header-density-airy .sp-logo small{margin-top:8px!important;font-size:15px!important}

body.sp-nav-density-compact .sp-nav-inner{min-height:46px!important}
body.sp-nav-density-compact .sp-menu li a{padding:12px 11px!important;font-size:14px!important}
body.sp-nav-density-standard .sp-nav-inner{min-height:56px!important}
body.sp-nav-density-spacious .sp-nav-inner{min-height:66px!important}
body.sp-nav-density-spacious .sp-menu li a{padding:21px 18px!important;font-size:16px!important}

@media(min-width:901px){
  body.sp-nav-align-center .sp-menu{flex:1 1 auto!important;justify-content:center!important}
  body.sp-nav-align-spread .sp-menu{flex:1 1 auto!important;justify-content:space-between!important}
  body.sp-nav-align-spread .sp-menu>li>a{padding-inline:10px!important}
  body.sp-nav-align-start .sp-menu{justify-content:flex-start!important}
  body .sp-layout{grid-template-columns:minmax(0,1fr) var(--sp-sidebar-width,320px)!important}
  body.sp-sidebar-behavior-sticky .sp-sidebar{position:sticky!important;top:86px!important;align-self:start!important;max-height:calc(100vh - 104px);overflow:auto;scrollbar-width:thin}
}

/* Homepage rhythm */
body .sp-home-module-shell + .sp-home-module-shell{margin-top:var(--sp-section-gap,28px)!important}
body .sp-home-module-shell>section{margin-block-end:0!important}

/* Card image ratio — only card/grid-oriented modules; list/headline/timeline keep their own geometry. */
body .sp-home-module-shell:not(.sp-section-style-list):not(.sp-section-style-headlines):not(.sp-section-style-leaderboard):not(.sp-section-style-timeline):not(.sp-section-style-lead_list) .sp9-thumb,
body .sp-home-module-editor:not(.sp-section-style-list):not(.sp-section-style-headlines):not(.sp-section-style-lead_list) .sp-editor-thumb{aspect-ratio:var(--sp-card-image-ratio,16 / 9)!important;height:auto!important;min-height:0!important;overflow:hidden}
body .sp-home-module-shell .sp9-thumb img,body .sp-home-module-editor .sp-editor-thumb img{width:100%!important;height:100%!important;object-fit:cover!important}

/* Sidebar */
body.sp-sidebar-density-compact .sp-sidebar{gap:14px!important}
body.sp-sidebar-density-compact .sp-widget{padding:13px!important}
body.sp-sidebar-density-compact .sp-widget-title{font-size:18px!important;margin-bottom:10px!important;padding-bottom:8px!important}
body.sp-sidebar-density-comfortable .sp-sidebar{gap:22px!important}

@media(max-width:900px){
  body .sp-layout{grid-template-columns:1fr!important}
  body.sp-sidebar-behavior-sticky .sp-sidebar{position:static!important;max-height:none!important;overflow:visible!important}
}

/* Mobile-specific controls */
@media(max-width:760px){
  body .sp-home-module-shell + .sp-home-module-shell{margin-top:var(--sp-mobile-section-gap,20px)!important}

  body.sp-mobile-topbar-hide .sp-topbar{display:none!important}
  body.sp-mobile-topbar-compact .sp-topbar-inner{min-height:34px!important;padding-block:5px!important}
  body.sp-mobile-topbar-compact .sp-today{display:none!important}
  body.sp-mobile-topbar-compact .sp-breaking-label{padding:3px 7px!important;font-size:12px!important}

  body.sp-mobile-header-compact .sp-brand-row{padding:11px 0!important;gap:8px!important}
  body.sp-mobile-header-compact .sp-logo-image-link img,body.sp-mobile-header-compact .custom-logo-link img{max-height:52px!important}
  body.sp-mobile-header-compact .sp-logo a,body.sp-mobile-header-compact .sp-logo .sp-logo-text-link{font-size:30px!important}
  body.sp-mobile-header-compact .sp-logo small{display:none!important}
  body.sp-mobile-header-compact .sp-ad-top{min-height:50px!important;font-size:14px!important}
  body.sp-mobile-header-compact .sp-nav-inner{padding-block:7px!important}

  body.sp-mobile-header-brand_first .sp-brand-row{padding:18px 0!important;gap:14px!important}
  body.sp-mobile-header-brand_first .sp-logo{order:1!important}
  body.sp-mobile-header-brand_first .sp-ad-top{order:2!important;width:100%!important}

  body.sp-mobile-density-compact .sp-home-module-shell .sp9-body,
  body.sp-mobile-density-compact .sp-home-module-shell .sp-editor-body{padding:10px!important}
  body.sp-mobile-density-compact .sp-home-module-shell h3{font-size:16px!important;line-height:1.38!important}
  body.sp-mobile-density-compact .sp-meta{font-size:11px!important}

  body:not(.sp-mobile-ratio-auto) .sp-home-module-shell:not(.sp-section-style-list):not(.sp-section-style-headlines):not(.sp-section-style-leaderboard):not(.sp-section-style-timeline):not(.sp-section-style-lead_list) .sp9-thumb,
  body:not(.sp-mobile-ratio-auto) .sp-home-module-editor:not(.sp-section-style-list):not(.sp-section-style-headlines):not(.sp-section-style-lead_list) .sp-editor-thumb{aspect-ratio:var(--sp-mobile-card-image-ratio,16 / 9)!important}

  body.sp-mobile-sidebar-hide .sp-sidebar{display:none!important}
  body.sp-mobile-sidebar-below .sp-sidebar{display:flex!important;margin-top:24px!important}
}
