/* ==========================================================================
   State Digital 1.8.2 — responsive layer
   Loads after every other stylesheet. Covers large desktops, laptops,
   tablets, phones and small phones, plus article/page content safety rules.
   ========================================================================== */

/* --- Variables that were referenced but never defined ------------------- */
:root{--blue2:#0a314a;--wrap-pad:40px}

/* --- Global safety ------------------------------------------------------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:clip}
img,svg,video,iframe,canvas,embed,object{max-width:100%}
img{height:auto}
h1,h2,h3,h4,p,a,li,strong,span,em,td,th{overflow-wrap:break-word}
.wrap,.card-copy,.compact-card,.section-title,.article-head,.sidebar,.page-content{min-width:0}

/* Keep the sticky newspaper toolbar clear of anchored jumps */
html{scroll-padding-top:70px}

/* --- Hero video / live stream ------------------------------------------- */
.hero-video-frame.is-live{box-shadow:inset 0 0 0 2px var(--orange)}
.hero-live-badge{position:absolute;top:12px;left:12px;z-index:3;padding:5px 10px;border-radius:3px;background:#e01f1f;color:#fff;font-size:11px;font-weight:800;letter-spacing:1px;pointer-events:none}
.sd-lang-ur .hero-live-badge{left:auto;right:12px}
.hero-video-fallback{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:260px;padding:30px 22px;background:#020f17;border:1px solid var(--line);text-align:center}
.hero-video-fallback p{margin:0;color:#c6d3d9;font-size:15px}
.hero-video-fallback.standalone-video{aspect-ratio:auto;margin:25px auto 0;width:min(900px,100%)}

/* --- Article and page content: stop every kind of overflow -------------- */
.article-content,.page-editor-content,.page-content{max-width:100%}
.article-content iframe,.page-editor-content iframe,
.article-content .wp-block-embed iframe,.page-editor-content .wp-block-embed iframe{width:100%;max-width:100%;aspect-ratio:16/9;height:auto;border:0}
.article-content .wp-block-embed__wrapper,.page-editor-content .wp-block-embed__wrapper{max-width:100%}
.article-content figure,.page-editor-content figure,
.article-content .wp-block-image,.page-editor-content .wp-block-image{max-width:100%;margin-inline:0}
.article-content figure img,.page-editor-content figure img{width:auto;max-width:100%;height:auto}
.article-content figcaption,.page-editor-content figcaption{font-family:Arial,Helvetica,sans-serif;font-size:13px;color:var(--muted);margin-top:8px}
.article-content table,.page-editor-content table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;-webkit-overflow-scrolling:touch}
.article-content table td,.article-content table th,
.page-editor-content table td,.page-editor-content table th{padding:9px 12px;border:1px solid var(--line)}
.article-content pre,.page-editor-content pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;word-break:break-word}
.article-content code,.page-editor-content code{overflow-wrap:break-word}
.article-content blockquote,.page-editor-content blockquote{margin-inline:0;padding-inline-start:18px;border-inline-start:3px solid var(--orange)}
.article-content ul,.article-content ol,.page-editor-content ul,.page-editor-content ol{padding-inline-start:1.35em;margin-inline:0}
.article-content a,.page-editor-content a{overflow-wrap:anywhere}
.article-content .alignfull,.article-content .alignwide{max-width:100%;margin-inline:0}
.article-content>*:first-child{margin-top:0}

/* Touch-friendly pagination and buttons everywhere */
.pagination .page-numbers a,.pagination .page-numbers span,.page-numbers{min-width:42px;text-align:center}

/* ==========================================================================
   LARGE SCREENS
   ========================================================================== */
@media(min-width:1500px){
 .wrap{width:min(1420px,calc(100% - 64px))}
 .ad-slot{width:min(1180px,calc(100% - 64px))}
 .single-layout{grid-template-columns:minmax(0,880px) 340px;gap:72px;justify-content:space-between}
 .article-content{font-size:20px}
 .article-head h1{font-size:clamp(38px,3.4vw,58px)}
 .hero-video-frame{min-height:580px}
 .lead-grid,.section-grid{gap:22px}
 .page-content{max-width:960px}
 .page-content.page-wide{max-width:none}
 .sd-page-intro{padding:38px}
 .footer-grid{gap:45px}
}
@media(min-width:1900px){
 .wrap{width:min(1600px,calc(100% - 80px))}
 .ad-slot{width:min(1280px,calc(100% - 80px))}
 .single-layout{grid-template-columns:minmax(0,920px) 360px;gap:90px}
 .article-content{font-size:21px;line-height:1.9}
 .hero-video-frame{min-height:660px}
 .hero-video-copy{padding:24px 28px}
 .section-grid{grid-template-columns:repeat(5,1fr)}
 .coverage-grid>a{min-height:220px}
}

/* ==========================================================================
   LAPTOP / SMALL DESKTOP
   ========================================================================== */
@media(max-width:1200px){
 :root{--wrap-pad:32px}
 .wrap{width:min(1240px,calc(100% - 32px))}
 .single-layout{grid-template-columns:minmax(0,1fr) 300px;gap:42px}
 .footer-grid{grid-template-columns:1.5fr 1fr 1fr 1fr;gap:28px}
 .footer-brand{padding-right:22px}
 .sd-lang-ur .footer-brand{padding-right:0;padding-left:22px}
 .footer-grid section:not(:first-child){padding-left:18px}
 .sd-lang-ur .footer-grid section:not(:first-child){padding-left:0;padding-right:18px}
 .nav-list a{padding:15px 11px;font-size:12px}
}
@media(min-width:901px) and (max-width:1200px){
 .hero-video-frame{min-height:430px}
}
@media(max-width:1100px){
 .section-grid{grid-template-columns:repeat(3,1fr)}
 .city-grid,.all-cities-grid{grid-template-columns:repeat(3,1fr)}
 .value-grid,.team-grid,.sd-content-grid{gap:15px}
 .coverage-grid{gap:14px}
 .coverage-grid>a{padding:20px;min-height:170px}
 .site-search{width:min(340px,32vw)}
}

/* ==========================================================================
   TABLET (landscape and portrait)
   ========================================================================== */
@media(max-width:900px){
 .utility-in{gap:14px}
 .brand-row{min-height:92px;gap:18px}
 .site-search{width:min(280px,34vw);height:40px}
 .nav-list a{padding:14px 10px}
 .coverage-nav .wrap{gap:7px}

 .lead-grid{gap:16px}
 .hero-video-copy{padding:16px 18px}
 .hero-video-copy h1{font-size:clamp(21px,3.2vw,28px)}

 .section-grid{grid-template-columns:repeat(2,1fr)}
 .city-grid{grid-template-columns:repeat(2,1fr)}
 .city-grid a{padding:20px;font-size:19px}
 .coverage-grid{grid-template-columns:repeat(2,1fr)}
 .coverage-grid>a{min-height:155px}
 .value-grid,.team-grid,.sd-content-grid{grid-template-columns:repeat(2,1fr)}
 .page-wide .team-grid{grid-template-columns:repeat(2,1fr)}

 /* Article */
 .single-layout{grid-template-columns:1fr;gap:34px;padding:40px 0}
 .article{min-width:0}
 .article-head h1{font-size:clamp(28px,4.6vw,42px);line-height:1.14}
 .article-content{font-size:18px;line-height:1.8}
 .article-content h2{font-size:25px;margin-top:30px}
 .article-content h3{font-size:21px;margin-top:26px}
 .article-image img{max-height:70vh}
 .page-content,.page-editor-content{max-width:none}
 .sd-policy{grid-template-columns:minmax(150px,.5fr) 1fr;gap:0 24px}
 .sd-page-intro{padding:26px}
 .sd-page-intro h2{font-size:clamp(24px,4.4vw,34px)}
 .sidebar{display:grid;grid-template-columns:repeat(2,1fr);gap:0 22px}
 .sidebar h2{grid-column:1/-1}
 .ad-slot{width:min(100% - 32px,970px)}
}

/* ==========================================================================
   LARGE PHONE / SMALL TABLET
   ========================================================================== */
@media(max-width:768px){
 .wrap{width:min(100% - 28px,1240px)}
 .lead-grid{grid-template-columns:repeat(2,1fr);gap:14px}
 .hero-video-card{grid-row:auto;grid-column:1/-1}
 .lead-card{grid-row:auto}
 .breaking .wrap{overflow-x:auto}
 .breaking span{white-space:normal}
 .single-layout{padding:32px 0}
 .footer-cta{gap:20px}
 .footer-cta-actions a{flex:1;text-align:center}
}

/* ==========================================================================
   PHONE
   ========================================================================== */
@media(max-width:640px){
 /* Header */
 .utility-in{height:auto;min-height:32px;padding:5px 0}
 .brand-row{min-height:70px;gap:10px;flex-wrap:nowrap}
 .menu-toggle{min-width:40px;min-height:40px;display:grid;place-items:center}
 .live-button{padding:9px 10px;font-size:10px;white-space:nowrap}
 .main-nav.open .nav-list{max-height:72vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
 .nav-list a{padding:14px 18px;font-size:14px}
 .coverage-nav .wrap{height:44px}
 .breaking .wrap{height:auto;min-height:40px;padding:8px 14px;align-items:flex-start}
 .breaking b{flex:0 0 auto}
 .breaking span{font-size:12px;line-height:1.5}

 /* Home */
 .home{padding-top:18px}
 .hero-video-copy{padding:14px}
 .hero-video-copy h1{font-size:20px}
 .hero-live-badge{top:9px;left:9px;padding:4px 8px;font-size:10px}
 .sd-lang-ur .hero-live-badge{left:auto;right:9px}
 .hero-video-fallback{min-height:200px;padding:24px 16px}
 .section-grid{grid-template-columns:repeat(2,1fr);gap:12px}
 .section-grid .card-copy{padding:11px}
 .section-grid .news-card h3{font-size:15px;line-height:1.28}
 .section-grid .meta{font-size:11px}
 .city-grid{grid-template-columns:repeat(2,1fr);gap:11px}
 .city-grid a{padding:16px;font-size:16px;border-bottom-width:3px}
 .city-grid span{font-size:11px;margin-top:5px}
 .all-cities-grid{grid-template-columns:repeat(2,1fr);gap:11px}
 .all-cities-grid a{min-height:120px;padding:16px}
 .all-cities-grid strong{font-size:17px}
 .coverage-grid>a{min-height:120px;padding:18px}
 .section-title{flex-wrap:wrap;gap:3px 12px}
 .section-title h2{font-size:19px}
 .section-title>a{font-size:11px}
 .latest-box{margin:22px 0}
 .home-section{padding:26px 0}

 /* Article page */
 .single-layout{padding:22px 0;gap:26px}
 .article-head .coverage-pill{padding:5px 8px;font-size:10px}
 .article-head .topic-pill{font-size:10px}
 .article-head h1{font-size:clamp(23px,6.4vw,31px);line-height:1.2;margin:11px 0}
 .article-meta{font-size:12px;line-height:1.75}
 .article-image{margin:16px 0}
 .article-image img{max-height:62vh}
 .article-content{font-size:17px;line-height:1.78}
 .article-content h2{font-size:21px;margin-top:26px}
 .article-content h3{font-size:18px;margin-top:22px}
 .article-content table{font-size:14px}
 .article-content table td,.article-content table th{padding:7px 9px}
 .article-content blockquote{padding-inline-start:14px}
 .sd-lang-ur .article-content{font-size:17px;line-height:2.05}
 .tags{font-size:12px;margin-top:24px;padding-top:15px}
 .article-share{margin-top:24px;padding-top:15px;gap:8px}
 .article-share strong{flex:0 0 100%;font-size:13px}
 .article-share a{flex:1 1 calc(50% - 4px);justify-content:center;padding:11px 10px}
 .sidebar{display:block;margin-top:4px}
 .sidebar h2{font-size:19px}

 /* Pages */
 .archive-layout,.page-layout,.not-found{padding:28px 0}
 .archive-header{padding-bottom:18px;margin-bottom:20px}
 .archive-header h1,.not-found h1{font-size:clamp(26px,7vw,36px)}
 .page-editor-content{font-size:16.5px;line-height:1.8}
 .page-content>p,.about-intro p{font-size:17px}
 .sd-page-intro{padding:20px}
 .sd-page-intro h2{font-size:clamp(21px,6.2vw,28px)}
 .sd-page-module{margin-top:26px}
 .sd-info-card{padding:20px}
 .sd-info-card h3{font-size:19px}
 .about-intro h2{font-size:clamp(24px,7vw,32px)}
 .value-grid,.team-grid{margin:24px 0}
 .value-grid>div{padding:18px}
 .team-area{margin-top:30px}
 .team-card>div{padding:15px}
 .standalone-video,.hero-video-fallback.standalone-video{margin-top:16px}
 .pagination .page-numbers a,.pagination .page-numbers span{padding:9px 13px}

 /* Ads */
 .ad-slot{width:min(100% - 28px,970px)}
 .sidebar .ad-slot{width:100%}

 /* Newspaper reader */
 .paper-pages{padding:7px}
 .paper-count,.paper-zoom{min-width:46px;font-size:12px}

 /* Footer */
 .footer-cta h3{font-size:22px}
 .footer-cta p{font-size:13px}
 .socials a{width:36px;height:36px}
}

/* ==========================================================================
   SMALL PHONE
   ========================================================================== */
@media(max-width:480px){
 .lead-grid{grid-template-columns:1fr}
 .section-grid,.section-grid.paper-grid{grid-template-columns:1fr;gap:14px}
 .section-grid .news-card h3{font-size:17px}
 .article-head h1{font-size:24px}
 .article-content{font-size:16.5px}
 .article-share a{flex:1 1 100%}
 .footer-cta-actions{flex-direction:column;width:100%}
 .footer-cta-actions a{width:100%;text-align:center}
 .paper-actions{flex-direction:column}
 .paper-actions a{width:100%;text-align:center}
 .compact-card{gap:11px}
 .compact-card h3{font-size:14px}
}
@media(max-width:380px){
 .wrap{width:min(100% - 20px,1240px)}
 .brand-row{gap:7px}
 .brand-logo{flex-basis:46px!important;width:46px!important;height:46px!important}
 .brand-logo img{width:46px!important;height:46px!important;max-width:46px!important}
 .language-switch a{padding:7px 5px;font-size:9px}
 .live-button{padding:8px 7px;font-size:9px;letter-spacing:0}
 .city-grid,.all-cities-grid{grid-template-columns:1fr}
 .article-head h1{font-size:22px}
 .article-content{font-size:16px}
 .section-title h2{font-size:17px}
 .ad-slot{width:min(100% - 20px,970px);padding:20px 10px}
}

/* Landscape phones: keep the hero video from filling the whole screen */
@media(max-width:900px) and (orientation:landscape){
 .hero-video-frame{max-height:78vh}
}
