/* =========================================================
   XOVOS TTB 5.8.3 — FINAL STABILITY / RESPONSIVE LAYER
   Loaded LAST on every public page.
   Fixes: one underline, single-row desktop nav, per-item Admin nav sizing,
   full-width Tahlil, professional article/video detail responsive layout.
   ========================================================= */
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
img,video,iframe{max-width:100%}

/* Technical secure-context note is never a public visual element. */
.xovos-voice-command.warn,.xovos-voice-command[data-insecure="1"],.voice-command-warning,
[data-voice-secure-warning],.xovos-secure-context-note,[data-secure-context-note]{display:none!important}

/* ===== A. TOP HEADER — one stable desktop row ===== */
@media (min-width:981px){
  html body.xovos-final-583 .topbar{position:relative!important;z-index:1400!important;overflow:visible!important;background:#fff!important}
  html body.xovos-final-583 .topbar .container.topbar-inner{
    display:grid!important;
    grid-template-columns:minmax(230px,1.55fr) minmax(72px,.52fr) minmax(128px,.72fr) minmax(98px,.62fr) minmax(120px,.76fr) minmax(94px,.58fr) minmax(58px,.32fr)!important;
    grid-template-rows:1fr!important;align-items:center!important;align-content:center!important;
    gap:0 clamp(4px,var(--hl-gap,8px),14px)!important;
    width:min(calc(100% - 24px),var(--hl-max-width,1680px))!important;max-width:var(--hl-max-width,1680px)!important;
    height:var(--hl-header-height,108px)!important;min-height:var(--hl-header-height,108px)!important;max-height:var(--hl-header-height,108px)!important;
    margin:0 auto!important;padding:7px 0!important;overflow:visible!important
  }
  html body.xovos-final-583 .topbar .topbar-inner>.xovos-header-center,
  html body.xovos-final-583 .topbar .topbar-inner>.contact-items,
  html body.xovos-final-583 .topbar .contact-items>.weather-lang-inline{display:contents!important}
  html body.xovos-final-583 .topbar .brand,html body.xovos-final-583 .topbar .brand-link{grid-column:1!important;grid-row:1!important;min-width:0!important;width:100%!important;margin:0!important;overflow:hidden!important}
  html body.xovos-final-583 .topbar #topbarPromo,html body.xovos-final-583 .topbar .topbar-promo{grid-column:2!important;grid-row:1!important;min-width:0!important;justify-self:center!important;position:relative!important;inset:auto!important}
  html body.xovos-final-583 .topbar .xovos-top-socials{grid-column:3!important;grid-row:1!important;min-width:0!important;justify-self:center!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important}
  html body.xovos-final-583 .topbar .contact-items>.contact-card:nth-of-type(1){grid-column:4!important;grid-row:1!important}
  html body.xovos-final-583 .topbar .contact-items>.contact-card:nth-of-type(2){grid-column:5!important;grid-row:1!important}
  html body.xovos-final-583 .topbar #weatherWidget,html body.xovos-final-583 .topbar .top-weather{grid-column:6!important;grid-row:1!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;white-space:nowrap!important}
  html body.xovos-final-583 .topbar .lang-wrap{grid-column:7!important;grid-row:1!important;min-width:0!important;justify-self:end!important;position:relative!important}
  html body.xovos-final-583 .topbar .brand-title{font-size:clamp(12px,var(--hl-brand-title-size,17px),20px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body.xovos-final-583 .topbar .brand-subtitle{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body.xovos-final-583 .topbar .contact-card{min-width:0!important;overflow:hidden!important}
  html body.xovos-final-583 .topbar .contact-card .strong,html body.xovos-final-583 .topbar .contact-card .muted{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}
@media (min-width:981px) and (max-width:1240px){
  html body.xovos-final-583 .topbar .container.topbar-inner{grid-template-columns:minmax(190px,1.35fr) minmax(58px,.4fr) minmax(108px,.65fr) minmax(86px,.56fr) minmax(100px,.67fr) minmax(82px,.53fr) minmax(52px,.3fr)!important;gap:0 4px!important}
  html body.xovos-final-583 .topbar .brand-title{font-size:min(var(--hl-brand-title-size,17px),14px)!important}
  html body.xovos-final-583 .topbar .brand-subtitle{font-size:min(var(--hl-brand-subtitle-size,11px),9px)!important}
  html body.xovos-final-583 .topbar .xovos-top-social-link{width:min(var(--hl-social-size,32px),27px)!important;height:min(var(--hl-social-size,32px),27px)!important;min-width:min(var(--hl-social-size,32px),27px)!important;flex-basis:min(var(--hl-social-size,32px),27px)!important}
  html body.xovos-final-583 .topbar .contact-card .strong{font-size:min(var(--hl-contact-font-size,11px),9px)!important}
  html body.xovos-final-583 .topbar .weather-temp,html body.xovos-final-583 .topbar .weather-status{font-size:9px!important}
}

/* ===== B. NAV — always one row on desktop, exactly ONE underline ===== */
@media (min-width:981px){
  html body.xovos-final-583 .mainnav{height:var(--xovos-nav-height,48px)!important;min-height:var(--xovos-nav-height,48px)!important;max-height:var(--xovos-nav-height,48px)!important;overflow:hidden!important}
  html body.xovos-final-583 .mainnav .nav-inner{height:100%!important;min-height:0!important;width:min(100%,var(--xovos-nav-max-width,1920px))!important;max-width:var(--xovos-nav-max-width,1920px)!important;margin:0 auto!important;padding-left:var(--xovos-nav-left-pad,8px)!important;padding-right:8px!important;display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;align-items:center!important;gap:6px!important;overflow:hidden!important}
  html body.xovos-final-583 .mainnav .nav-links{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:var(--xovos-nav-justify,flex-start)!important;gap:var(--xovos-nav-effective-gap,var(--xovos-nav-gap,2px))!important;width:100%!important;min-width:0!important;height:100%!important;overflow:hidden!important;transform:translateX(var(--xovos-nav-offset-x,0px))!important;transform-origin:left center!important}
  html body.xovos-final-583 .mainnav .nav-links>a{
    position:relative!important;top:auto!important;bottom:auto!important;left:var(--xovos-item-offset,0px)!important;
    display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-width:0!important;max-width:none!important;height:100%!important;
    padding:0 var(--xovos-nav-effective-pad,var(--xovos-nav-pad-x,7px))!important;margin:0!important;
    font-size:var(--xovos-item-effective-font,var(--xovos-nav-effective-font,var(--xovos-item-font,var(--xovos-nav-font,16px))))!important;line-height:1!important;font-weight:800!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-decoration:none!important;border:0!important;border-bottom:0!important;outline-offset:-2px!important;
    box-shadow:none!important;background:transparent!important;transform:none!important;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease!important
  }
  html body.xovos-final-583 .mainnav .nav-links>a.xovos-nav-custom-width{width:var(--xovos-item-effective-width,var(--xovos-item-width))!important;flex-basis:var(--xovos-item-effective-width,var(--xovos-item-width))!important}
  /* Kill every legacy pseudo underline. */
  html body.xovos-final-583 .mainnav .nav-links>a::before,
  html body.xovos-final-583 .mainnav .nav-links>a::after{content:none!important;display:none!important;width:0!important;height:0!important;transform:none!important}
  /* One and only one underline: inset shadow. */
  html body.xovos-final-583 .mainnav .nav-links>a:hover,
  html body.xovos-final-583 .mainnav .nav-links>a:focus-visible,
  html body.xovos-final-583 .mainnav .nav-links>a.active,
  html body.xovos-final-583 .mainnav .nav-links>a[aria-current="page"]{box-shadow:inset 0 -3px 0 #8ee9ff!important;background:rgba(255,255,255,.045)!important;text-decoration:none!important}
  html body.xovos-final-583 .mainnav .nav-actions{width:max-content!important;min-width:0!important;max-width:170px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;overflow:hidden!important}
  html body.xovos-final-583 .mainnav .nav-actions>*{max-width:100%!important}
}
@media (min-width:981px) and (max-width:1180px){html body.xovos-final-583 .mainnav .live-date-text{display:none!important}html body.xovos-final-583 .mainnav .nav-actions{max-width:105px!important}}

/* ===== C. TAHLIL — true viewport shell; Admin values remain authoritative ===== */
@media (min-width:981px){
  html:has(body.overall-report-page.xovos-final-583),html body.overall-report-page.xovos-final-583{height:100dvh!important;min-height:0!important;overflow:hidden!important;background:#eef3f6!important}
  html body.overall-report-page.xovos-final-583 .or-main{width:100vw!important;max-width:100vw!important;min-width:0!important;height:calc(100dvh - var(--or583-shell-top,156px))!important;min-height:0!important;margin:0!important;padding:5px!important;overflow:hidden!important;transform:none!important}
  html body.overall-report-page.xovos-final-583 .or-workspace{width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;display:grid!important;grid-template-columns:var(--or583-sidebar-width,286px) minmax(0,1fr)!important;gap:var(--or583-workspace-gap,7px)!important;align-items:stretch!important;overflow:hidden!important;margin:0!important}
  html body.overall-report-page.xovos-final-583 .or-sidebar{width:100%!important;max-width:none!important;height:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;position:relative!important;inset:auto!important;margin:0!important;padding:var(--or583-sidebar-padding,8px)!important;border-radius:15px!important;background:#fff!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable!important;box-shadow:0 4px 18px rgba(15,45,66,.06)!important}
  html body.overall-report-page.xovos-final-583 .or-content{width:100%!important;max-width:none!important;height:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable!important}
  html body.overall-report-page.xovos-final-583 .or-main.or-sidebar-collapsed .or-workspace{grid-template-columns:76px minmax(0,1fr)!important;gap:6px!important}
  html body.overall-report-page.xovos-final-583 .or-hero{margin:0 0 6px!important;padding:10px 14px!important;border-radius:15px!important;min-height:0!important}
  html body.overall-report-page.xovos-final-583 .or-filter-panel{margin:0 0 6px!important;padding:8px!important;border-radius:14px!important}
  html body.overall-report-page.xovos-final-583 .or-filter-grid{grid-template-columns:repeat(5,minmax(100px,1fr))!important;gap:6px!important;min-width:0!important}
  html body.overall-report-page.xovos-final-583 .or-filter-actions{display:grid!important;grid-template-columns:repeat(3,minmax(96px,1fr))!important;gap:6px!important;min-width:0!important}
  html body.overall-report-page.xovos-final-583 .or-filter-actions .or-btn{min-width:0!important;width:100%!important;padding:0 7px!important;white-space:nowrap!important}
  html body.overall-report-page.xovos-final-583 .or-dashboard-head{margin:0 0 6px!important;padding:8px 10px!important;border-radius:14px!important}
  html body.overall-report-page.xovos-final-583 .or-executive{grid-template-columns:minmax(260px,.88fr) minmax(0,1.7fr)!important;gap:6px!important;margin-bottom:6px!important}
  html body.overall-report-page.xovos-final-583 .or-kpis{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;gap:6px!important;margin-bottom:6px!important}
  html body.overall-report-page.xovos-final-583 .or-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-bottom:7px!important}
  html body.overall-report-page.xovos-final-583 .or-card,html body.overall-report-page.xovos-final-583 .or-kpi,html body.overall-report-page.xovos-final-583 .or-exec-metrics>article{min-width:0!important;overflow:hidden!important}
  html body.overall-report-page.xovos-final-583 .or-tab{min-height:var(--or583-row-height,58px)!important;grid-template-columns:22px var(--or583-logo-size,40px) minmax(0,1fr) 12px!important;gap:var(--or583-menu-gap,6px)!important;padding:6px 7px!important}
  html body.overall-report-page.xovos-final-583 .or-side-visual{width:var(--or583-logo-size,40px)!important;height:var(--or583-logo-size,40px)!important;min-width:var(--or583-logo-size,40px)!important}
  html body.overall-report-page.xovos-final-583 .or-tab-copy b{font-size:var(--or583-title-size,12px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body.overall-report-page.xovos-final-583 .or-tab-copy small{font-size:var(--or583-subtitle-size,9px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important}
  html body.overall-report-page.xovos-final-583 .or-tab-num{font-size:var(--or583-number-size,10px)!important}
}
@media (min-width:981px) and (max-width:1280px){
  html body.overall-report-page.xovos-final-583 .or-workspace{grid-template-columns:var(--or583-sidebar-compact,242px) minmax(0,1fr)!important;gap:5px!important}
  html body.overall-report-page.xovos-final-583 .or-main.or-sidebar-collapsed .or-workspace{grid-template-columns:70px minmax(0,1fr)!important}
  html body.overall-report-page.xovos-final-583 .or-filter-grid{grid-template-columns:repeat(3,minmax(112px,1fr))!important}
  html body.overall-report-page.xovos-final-583 .or-executive{grid-template-columns:minmax(230px,.82fr) minmax(0,1.75fr)!important}
}
@media (max-width:980px){
  html body.overall-report-page.xovos-final-583{height:auto!important;min-height:100%!important;overflow-y:auto!important}
  html body.overall-report-page.xovos-final-583 .or-main{width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;padding:6px!important;overflow:visible!important}
  html body.overall-report-page.xovos-final-583 .or-workspace{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important;height:auto!important;overflow:visible!important}
  html body.overall-report-page.xovos-final-583 .or-sidebar,html body.overall-report-page.xovos-final-583 .or-content{width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:0!important;overflow:visible!important}
  html body.overall-report-page.xovos-final-583 .or-sidebar{padding:7px!important}
  html body.overall-report-page.xovos-final-583 .or-nav{display:flex!important;overflow-x:auto!important;gap:6px!important;padding-bottom:4px!important;scroll-snap-type:x proximity}
  html body.overall-report-page.xovos-final-583 .or-nav .or-tab{flex:0 0 min(280px,82vw)!important;scroll-snap-align:start!important}
  html body.overall-report-page.xovos-final-583 .or-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.overall-report-page.xovos-final-583 .or-filter-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body.overall-report-page.xovos-final-583 .or-executive,html body.overall-report-page.xovos-final-583 .or-chart-grid{grid-template-columns:1fr!important}
  html body.overall-report-page.xovos-final-583 .or-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:520px){
  html body.overall-report-page.xovos-final-583 .or-filter-grid{grid-template-columns:1fr!important}
  html body.overall-report-page.xovos-final-583 .or-filter-actions{grid-template-columns:1fr!important}
  html body.overall-report-page.xovos-final-583 .or-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ===== D. Professional news/video detail — clean editorial reading ===== */
.news-detail-page-body.xovos-final-583 .news-detail-main,.video-detail-page-body.xovos-final-583 .video-detail-main{background:#f4f7fa!important;padding:clamp(18px,3vw,42px) 0!important}
.news-detail-page-body.xovos-final-583 .news-detail-main>.container,.video-detail-page-body.xovos-final-583 .video-detail-main>.container{width:min(calc(100% - 32px),1480px)!important;max-width:1480px!important;margin:auto!important}
.news-detail-page-body.xovos-final-583 .news-detail-layout,.video-detail-page-body.xovos-final-583 .video-detail-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,320px)!important;gap:clamp(18px,2.2vw,34px)!important;align-items:start!important}
.news-detail-page-body.xovos-final-583 .news-detail-article,.video-detail-page-body.xovos-final-583 .video-detail-article{background:#fff!important;border:1px solid #e6edf3!important;border-radius:22px!important;padding:clamp(20px,3vw,42px)!important;box-shadow:0 16px 42px rgba(18,52,77,.07)!important;min-width:0!important}
.news-detail-page-body.xovos-final-583 .news-back-link,.video-detail-page-body.xovos-final-583 .news-back-link{display:inline-flex!important;margin-bottom:14px!important;text-decoration:none!important;font-weight:800!important;color:#0b5e95!important}
.news-pro-hero{position:relative!important;overflow:hidden!important;border-radius:20px!important;background:#092f54!important;min-height:clamp(280px,48vw,610px)!important;margin:0 0 24px!important}
.news-pro-hero .news-detail-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important;border-radius:0!important}
.news-pro-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,24,47,.04) 30%,rgba(4,24,47,.92) 100%);pointer-events:none}
.news-pro-hero-copy{position:absolute;z-index:2;left:clamp(18px,4vw,46px);right:clamp(18px,4vw,46px);bottom:clamp(20px,4vw,44px);color:#fff}
.news-pro-hero-copy .news-detail-meta-row{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:0 0 10px!important;color:#e8f2fb!important}
.news-pro-hero-copy .news-detail-date,.news-pro-hero-copy .news-detail-type{color:inherit!important;background:rgba(8,42,72,.46)!important;border:1px solid rgba(255,255,255,.18)!important;padding:6px 10px!important;border-radius:999px!important}
.news-pro-hero-copy .news-detail-title{color:#fff!important;font-size:clamp(30px,4vw,58px)!important;line-height:1.06!important;letter-spacing:-.025em!important;margin:0!important;max-width:1050px!important;text-shadow:0 2px 18px rgba(0,0,0,.35)!important}
.news-pro-byline{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin:-6px 0 18px;color:#607080;font-size:14px}
.news-pro-byline strong{color:#18344a}
.news-detail-page-body.xovos-final-583 .news-detail-lead,.video-detail-page-body.xovos-final-583 .news-detail-lead{font-size:clamp(20px,2.1vw,30px)!important;line-height:1.48!important;font-weight:800!important;color:#101d28!important;border-left:5px solid #0d75b7!important;padding:4px 0 4px 18px!important;margin:0 0 26px!important;background:transparent!important}
.news-detail-page-body.xovos-final-583 .news-detail-content,.video-detail-page-body.xovos-final-583 .news-detail-content{max-width:940px!important;margin:0 auto!important;color:#17212b!important}
.news-detail-page-body.xovos-final-583 .news-detail-content p,.video-detail-page-body.xovos-final-583 .news-detail-content p{font-size:clamp(17px,1.35vw,21px)!important;line-height:1.82!important;letter-spacing:0!important;margin:0 0 1.35em!important;text-align:left!important;word-spacing:normal!important;overflow-wrap:anywhere!important;hyphens:none!important}
.news-inline-figure{margin:28px 0 32px!important}
.news-inline-figure img{display:block;width:100%!important;height:auto!important;max-height:720px!important;object-fit:cover!important;border-radius:16px!important}
.news-inline-figure figcaption{font-size:13px;color:#6a7886;margin-top:8px;line-height:1.5}
.news-pro-tags{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0 6px}
.news-pro-tags span{border:1px solid #bed2e1;background:#f6fbff;color:#154f76;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:750}
.news-detail-page-body.xovos-final-583 .news-detail-sidebar-card,.video-detail-page-body.xovos-final-583 .news-detail-sidebar-card{border-radius:18px!important;border:1px solid #e3ebf2!important;box-shadow:0 12px 34px rgba(18,52,77,.06)!important}
.video-detail-page-body.xovos-final-583 .video-detail-player-wrap{margin:18px 0 28px!important;border-radius:18px!important;overflow:hidden!important}
.video-pro-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 18px;color:#607080;font-size:14px}

@media (max-width:900px){
 .news-detail-page-body.xovos-final-583 .news-detail-main>.container,.video-detail-page-body.xovos-final-583 .video-detail-main>.container{width:100%!important;padding:0!important}
 .news-detail-page-body.xovos-final-583 .news-detail-layout,.video-detail-page-body.xovos-final-583 .video-detail-layout{grid-template-columns:1fr!important;gap:14px!important}
 .news-detail-page-body.xovos-final-583 .news-detail-article,.video-detail-page-body.xovos-final-583 .video-detail-article{border-radius:0!important;border-left:0!important;border-right:0!important;padding:18px 16px 28px!important;box-shadow:none!important}
 .news-detail-page-body.xovos-final-583 .news-detail-sidebar,.video-detail-page-body.xovos-final-583 .video-detail-sidebar{padding:0 14px 24px!important}
 .news-pro-hero{margin-left:-16px!important;margin-right:-16px!important;border-radius:0!important;min-height:clamp(300px,78vw,540px)!important}
 .news-pro-hero-copy .news-detail-title{font-size:clamp(28px,8vw,43px)!important}
 .news-detail-page-body.xovos-final-583 .news-detail-lead,.video-detail-page-body.xovos-final-583 .news-detail-lead{font-size:20px!important;padding-left:14px!important}
 .news-detail-page-body.xovos-final-583 .news-detail-content p,.video-detail-page-body.xovos-final-583 .news-detail-content p{font-size:18px!important;line-height:1.72!important}
}
@media (max-width:480px){
 .news-detail-page-body.xovos-final-583 .news-detail-article,.video-detail-page-body.xovos-final-583 .video-detail-article{padding-left:14px!important;padding-right:14px!important}
 .news-pro-hero{margin-left:-14px!important;margin-right:-14px!important}
 .news-pro-hero-copy{left:18px!important;right:18px!important;bottom:22px!important}
 .news-pro-hero-copy .news-detail-title{font-size:31px!important}
 .news-detail-page-body.xovos-final-583 .news-detail-content p,.video-detail-page-body.xovos-final-583 .news-detail-content p{font-size:17px!important}
}

@media print{.xovos-voice-command{display:none!important}.mainnav .nav-links>a{box-shadow:none!important}}

/* All breakpoints: legacy underline generators stay disabled. */
html body.xovos-final-583 .mainnav .nav-links>a::before,html body.xovos-final-583 .mainnav .nav-links>a::after{content:none!important;display:none!important}
