/*
 * NewsiumDigital v10.9.0 Identity Studio
 * Header variants, palette-aware presentation and frontend typography skins.
 * Admin Sindhi typography remains AMBILE through NewsiumDigital Core/theme admin CSS.
 * Product by Indusian Technologies — https://indusiantech.org/
 */

/* ---------- Balanced (safe default) ---------- */
body.sp-header-balanced .sp-brand-row{align-items:center}

/* ---------- Newspaper masthead ---------- */
body.sp-header-masthead .sp-brand-row{
  flex-direction:column!important;
  justify-content:center!important;
  text-align:center!important;
  gap:16px!important;
  padding-block:30px!important;
  border-block:1px solid color-mix(in srgb,var(--sp-primary) 18%,transparent);
}
body.sp-header-masthead .sp-logo{align-items:center!important;text-align:center!important}
body.sp-header-masthead .sp-logo .sp-logo-text-link{font-size:58px!important}
body.sp-header-masthead .sp-logo small{font-size:15px!important;letter-spacing:.03em}
body.sp-header-masthead .sp-ad-top{width:min(728px,100%)!important}
body.sp-header-masthead .sp-mainnav{
  border-top:3px double rgba(255,255,255,.35)!important;
  border-bottom:3px double rgba(255,255,255,.22)!important;
  box-shadow:none!important;
}
body.sp-header-masthead .sp-nav-inner{justify-content:center}

/* ---------- Compact news header ---------- */
body.sp-header-compact .sp-topbar-inner{min-height:32px!important;height:32px!important}
body.sp-header-compact .sp-brand-row{padding-block:12px!important;gap:18px!important}
body.sp-header-compact .sp-logo .sp-logo-text-link{font-size:36px!important}
body.sp-header-compact .sp-logo small{margin-top:3px!important;font-size:12px!important}
body.sp-header-compact .sp-logo-image-link img,
body.sp-header-compact .custom-logo-link img{max-height:58px!important}
body.sp-header-compact .sp-ad-top{min-height:58px!important;font-size:15px!important}
body.sp-header-compact .sp-nav-inner{min-height:46px!important}
body.sp-header-compact .sp-menu li a{padding-block:13px!important;font-size:14px!important}

/* ---------- Broadcast header ---------- */
body.sp-header-broadcast .sp-site-header{border-bottom:4px solid var(--sp-primary)!important}
body.sp-header-broadcast .sp-topbar{background:#070b12!important;color:#fff!important}
body.sp-header-broadcast .sp-breaking-label{border-radius:2px!important;font-weight:700}
body.sp-header-broadcast .sp-brand-row{padding-block:18px!important}
body.sp-header-broadcast .sp-logo .sp-logo-text-link{font-size:48px!important}
body.sp-header-broadcast .sp-mainnav{
  background:linear-gradient(135deg,#08111f,#172033)!important;
  border-bottom:4px solid var(--sp-primary)!important;
  box-shadow:0 12px 28px rgba(2,6,23,.22)!important;
}
body.sp-header-broadcast .sp-menu li:first-child>a,
body.sp-header-broadcast .sp-menu li a:hover,
body.sp-header-broadcast .sp-menu li.current-menu-item>a{background:var(--sp-primary)!important}
body.sp-header-broadcast .sp-search input{border-radius:2px!important}

/* ---------- Centered brand / magazine ---------- */
body.sp-header-centered .sp-brand-row{
  display:grid!important;
  grid-template-columns:1fr!important;
  justify-items:center!important;
  text-align:center!important;
  gap:20px!important;
  padding-block:32px!important;
}
body.sp-header-centered .sp-logo{align-items:center!important;text-align:center!important}
body.sp-header-centered .sp-logo .sp-logo-text-link{font-size:54px!important}
body.sp-header-centered .sp-ad-top{width:min(728px,100%)!important}
body.sp-header-centered .sp-nav-inner{justify-content:center}

/* Palette-aware accents without coupling layout to a specific colour. */
body[class*="sp-palette-"] .sp-section-title:after,
body[class*="sp-palette-"] .sp-widget-title:after{background:var(--sp-primary)!important}
body[class*="sp-palette-"] a.sp-readmore,
body[class*="sp-palette-"] .sp-breaking-label{background:var(--sp-primary)!important}
body[class*="sp-palette-"] .sp-logo a{color:var(--sp-primary)!important}

/* Typography pairing helpers */
body[class*="sp-type-"] .sp-entry,
body[class*="sp-type-"] .sp-entry p{font-family:var(--sp-body-font),'AMBILE',sans-serif!important}
body[class*="sp-type-"] h1,
body[class*="sp-type-"] h2,
body[class*="sp-type-"] h3,
body[class*="sp-type-"] .sp-logo .sp-logo-text-link,
body[class*="sp-type-"] .sp-section-title,
body[class*="sp-type-"] .sp-widget-title{font-family:var(--sp-heading-font),'AMBILE Shadow','AMBILE',sans-serif!important}
body[class*="sp-type-"] .sp-logo .sp-logo-text-link{font-family:var(--sp-title-font),'AMBILE Shadow','AMBILE',sans-serif!important}

@media (max-width:900px){
  body.sp-header-masthead .sp-logo .sp-logo-text-link,
  body.sp-header-centered .sp-logo .sp-logo-text-link,
  body.sp-header-broadcast .sp-logo .sp-logo-text-link{font-size:38px!important}
  body.sp-header-masthead .sp-brand-row,
  body.sp-header-centered .sp-brand-row{padding-block:20px!important}
  body.sp-header-compact .sp-topbar-inner{height:auto!important;min-height:36px!important}
  body.sp-header-compact .sp-logo .sp-logo-text-link{font-size:32px!important}
}

@media (max-width:600px){
  body.sp-header-masthead .sp-logo .sp-logo-text-link,
  body.sp-header-centered .sp-logo .sp-logo-text-link,
  body.sp-header-broadcast .sp-logo .sp-logo-text-link{font-size:32px!important}
  body.sp-header-masthead .sp-ad-top,
  body.sp-header-centered .sp-ad-top{min-height:64px!important}
}
