/* =========================================
   RESPONSIVENESS (Mobile First -> Desktop)
   ========================================= */

@media (max-width: 1400px) {
.header-outer .header-inner{gap: 0.6rem;}
.header-outer .header-menu-ul-list{gap: 0.5rem;}
.header-outer .header-right-btns{gap: 0.5rem;}
/* .flow7 .step{width: 16%; } */
.docs-main{max-width: 100%;}

}


@media(max-width:1000px){
 /* .docs-shell{grid-template-columns:1fr} */
.docs-side{        position: static;
max-height: none;
flex-wrap: wrap;
gap: 0.375rem;
margin-bottom: 1rem;}
.docs-main{max-width: 100%;}
.flow7{flex-wrap: wrap;}
.hero-explore-grid{grid-template-columns:repeat(3,1fr)}
.qa-shell{grid-template-columns:16rem 1fr;gap:2rem}
.flow7 .step{max-width: 32%; flex: 0 0 auto;}
.docs-hero p{max-width: 100%;}
.docs-hero .docs-content{ max-width: 100%;}
.docs-hero h1 { font-size: 2rem; }
.docs-stats { gap: 0.75rem; }


.knowledge-docs-wrap .docs-side{position: static;
max-height: none;
flex-wrap: wrap;
gap: 0.375rem;
margin-bottom: 1rem; display: block;    padding: 1.5rem 1.25rem;
background: #fff;
border-radius: 1.25rem;
box-shadow: 0 0.875rem 1.875rem rgba(7, 24, 39, .05); display: block; }
.wrap .toc{position: static;
max-height: none;
flex-wrap: wrap;
gap: 0.375rem;
margin-bottom: 1rem;}

}



@media (max-width: 1199px) {

  /* Show hamburger, hide login btn */
  .header-outer .mob-nav-toggle { display: flex; align-items: center; justify-content: center; }
  .header-outer .header-right-btns { margin-left: auto; gap: 0.4rem; }
  .header-outer .header-right-btns .btn { display: none; }
  .header-outer .header-right-btns .search-icon-bx { display: flex; align-items: center; }


  /* Slide-in drawer */
  .header-outer .header-menu-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 100vh;
    height: 100dvh; /* dynamic viewport — prevents iOS address-bar push */
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 1050;
    overflow: hidden; /* drawer itself does NOT scroll */
    padding: 0;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.14);
    transform: translateX(-100%);
    transition: transform 0.35s ease-in-out;
    will-change: transform;
  }
  .header-outer .header-menu-wrap.mob-open {
    transform: translateX(0);
  }

  /* Mobile nav footer — login button always visible at bottom */
  .mob-nav-footer {
    display: block;
    padding: 1rem;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
  }

  /* Mobile nav header — always visible at top */
  .mob-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
  }
  .mob-nav-header .mob-nav-logo img { max-height: 36px; }
  .mob-nav-close {
    border: none;
    background: var(--PrimaryColor);
    color: var(--WhiteColor);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .mob-nav-close svg { width: 18px; height: 18px; }

  /* Nav list — only this area scrolls when dropdown expands */
  .header-outer .header-menu-ul-list {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
    overscroll-behavior: contain;
  }

  /* Each mega-menu item */
  .header-outer .mega-menu,
  .header-outer .mega-menu--full { position: static; }

  /* Nav link row */
  .header-outer .dropdown-hover {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f4f4f4;
    border-radius: 0;
    font-size: 0.92rem;
    font-weight: 500;
  }

  /* Panel: static, no float */
  .header-outer .mm-panel,
  .header-outer .mm-panel--councils,
  .header-outer .mm-panel--services,
  .header-outer .mm-panel--meetings,
  .header-outer .mm-panel--regions {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #f8fafc;
    padding: 4px 0 8px !important;
    top: auto !important;
    left: auto !important;
  }
.header-outer .mega-menu.mopen .mm-panel{padding: 1rem 0 !important;}
.header-outer .mm-panel h4{font-size: 1.2rem;}
  /* Links inside panel */
  .header-outer .mm-links { display: block; padding: 0; columns: 1 !important; }
  /* .header-outer .mm-links li { width: auto !important; break-inside: auto; } */
  .header-outer .mm-links.wid-30 li{width: 100%;}
  .header-outer .mm-links.wid-30{flex-direction: column; display: block;}
  .header-outer .mm-links a { padding: 8px 1.75rem; font-size: 0.88rem; white-space: normal; }
  .header-outer .mm-panel--meetings .mm-links-2col li{width: 50%;}

  /* Hide map in regions on mobile */
  .header-outer .mm-panel--regions .col-9 { display: none; }
  .header-outer .mm-panel--regions .col-3 { flex: 0 0 100%; max-width: 100%; }
  .header-outer .mm-phase { border-radius: 8px; margin: 8px 12px; }

  /* Login btn at bottom of drawer */
  .header-outer .header-menu-wrap::after {
    content: '';
    display: block;
    height: 1rem;
  }
.principles-section .principles-video-card .principles-video-thumb img{height: 300px;}
.header-outer .mm-phase .mm-flags li{width: 13.5%;}
.summitbanner-section .banner-content p{    font-size: 1rem;}
.header-outer .region-union-grid{    grid-template-columns: repeat(2, 1fr);}

    .hero-explore-grid{    grid-template-columns: repeat(2, 1fr);}
  .regional-grid {
        grid-template-columns: repeat(2, 1fr);
    }

  .docs-hero  .hero-explore-grid {
        grid-template-columns: repeat(3, 1fr);
    }


}




@media (max-width: 991px) {
  .same-heading {
    margin-bottom: 2rem;
  }

  /* Global */
.same-section { padding: 3.5rem 0; }
.max-wid-50 { max-width: 100%; }
.max-wid-80{max-width: 100%;}
.section-bottom-btn { flex-wrap: wrap;}
.hero-section{min-height: inherit;    padding: 3rem 0rem ;}
.hero-section h1{font-size: 2.6rem;}
.same-heading h2{font-size: 2rem;}
.hero-tags{margin-top: 1rem;}
.why-digital-world-section .why-cards-row{flex-wrap: wrap;}
.why-digital-world-section .why-card{max-width: 48%; flex: 0 0 auto;}
.devdocs-section .network-details-card{padding: 1.5rem; margin-top: 2rem;}
.governance-section .live-schedule{margin-bottom: 1rem;}
.governance-section .governance-live-card{padding: 1.5rem;}

  .pricing-box { padding: 1.5rem 1rem 0; border-radius: 12px; }
    .pricing-box-header h2 { font-size: 1.5rem; }
    .pricing-table thead .t-plan-price { font-size: 1.6rem; }
.fuel-section .fuel-chart {margin: 3rem auto 0;}

.knowledge-docs-wrap .stack-head { gap: 0.75rem; }

.princ{    grid-template-columns: repeat(2, 1fr);}
.layer-sec .desc{font-size: 0.9rem;}
/* .flow7 .step{width: 48%;} */

.id-figure{max-width: 100%;}

.capgrid{grid-template-columns: repeat(2, 1fr);}
.hero-meta {
grid-template-columns: repeat(2, 1fr);
}
.meta-strip .meta-card{    grid-template-columns: repeat(3, 1fr);}
.docs-shell-wrap{padding: 2rem 0;}
.qa-shell{grid-template-columns:1fr;gap:1.75rem}
.qa-a{padding-left:3.25rem}
.docs-hero .section-bottom-btn{margin: 1.5rem 0 0.5rem;}


/* Stack rows — mobile */
.digital-stack-section .stack-list .stack-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
}
.digital-stack-section .stack-list .stack-row .stack-num {
    font-size: 1.6rem;
    min-width: auto;
}
.digital-stack-section .stack-list .stack-row .stack-info {
    width: 100%;
}
.digital-stack-section .stack-list .stack-row .stack-tags {
    width: 100%;
}
.digital-stack-section .stack-list .stack-row .stack-tags span {
    font-size: 0.75rem;
    padding: 0.18rem 0.6rem;
}
.digital-stack-section .layer-live-badge.stack-toggle-btn{margin-left: 0;}
.digital-stack-section .stack-apps-grid{grid-template-columns: repeat(2, 1fr);}

}


@media (max-width: 767px) {

.border-radius-20 { border-radius: 10px; }
.same-heading h2 br{display: none;}
.section-bottom-btn{gap: 0.6rem;}
.same-heading h3 br{display: none;}
.same-heading h2 br{display: none;}


.footer .footer-top{padding: 2rem 0;}
.regions-section .regions-map{margin-top: -3rem;}


.judge-panel { grid-template-columns: repeat(3, 1fr); }
.page-hero{ padding:3rem 0 2.5rem; }
.blue-cta-card{ min-height:auto; }
.council-card .council-photo { width: 8rem; height: 8rem; }
.page-hero .hero-meta{margin-top: 2rem;}
.pdf-card .pdf-title{padding-right: 0;}
:is( .max-wid-50, .max-wid-60, .max-wid-80){max-width: 100%;}
.same-heading h2 br{display: none;}
.fuel-section .fuel-chart {max-width: 100%; margin-top: 3rem;}
.fuel-section .fuel-chart-live-wrap { height: 260px; }
.fuel-section .fuel-content-row { align-items: flex-start; }


.fuel-section .fuel-timeframe-btns { overflow-x: auto; max-width: 100%; padding-bottom: 2px; margin: 0.5rem 0; }

.pricing-box { padding: 1.25rem 0.75rem 0; border-radius: 10px; }
.pricing-box-header h2 { font-size: 1.25rem; }
.pricing-box-header h3 { font-size: 0.9rem; }
.pricing-box-header p { font-size: 0.78rem; }
.pricing-table-wrap { -webkit-overflow-scrolling: touch; border-radius: 0 0 10px 10px; }
.pricing-table { min-width: 560px; }
.pricing-table thead th { padding: 1rem 0.6rem; }
.pricing-table thead .t-plan-price { font-size: 1.35rem; }
.pricing-table thead .t-plan-title { font-size: 0.85rem; }
.pricing-table tbody td, .pricing-table tbody th { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
.pricing-table .plan-btn-row td { padding: 0.9rem 0.6rem; }
.plan-toggle-row { gap: 0.5rem; }
.plan-toggle-row span { font-size: 0.8rem; }
.header-outer .region-union-grid{    grid-template-columns: repeat(1, 1fr);}

  .docs-hero  .hero-explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 767px) {

.why-digital-world-section .why-card{max-width: 100%;}
.principles-section .principles-video-card{padding: 1rem;}
.page-events-wrapper :is(.event-2026-hero, .event-2025-hero,.event-2024-hero,.event-2023-hero,.event-2022-hero,.event-2021-hero) {
    padding: 4rem 0;
}

.page-events-wrapper .date-price-section .table{width: 930px;}

.hero-chips{justify-content: center;}
.hero-section .hero-meta{justify-content: center;}
.filter-video { flex-direction: column; align-items: flex-start; }
.sortListBx { width: 100%; justify-content: space-between; }
.video-copyright-section { padding: 1.5rem; }
.forensics-step + .forensics-step{margin-top: 2rem; padding-top: 2rem;}
.forensics-step-num{font-size: 1.5rem;}


}



@media(max-width:576px){
  .wrap{padding:2.5rem 0 3.5rem}
  .wrap .panel{padding:1.5rem 1.375rem}
  .wrap .panel h2{gap:0.625rem}
  .wrap .panel h2 .num{width:2.25rem;height:2.25rem;font-size:0.8125rem}
  .wrap .stack .layer{padding:0.875rem}
  .wrap .stack .layer .acts{margin-left:0}
  .hero-section .hero-meta{gap:1.25rem 1.75rem}
  .digital-engineering-banner .section-bottom-btn{flex-wrap: wrap; justify-content: center;}

  .Downloads__hero { padding: 3rem 0; }
    .Downloads__app-card__content { flex-wrap: wrap; }
    .Downloads__app-card__action { flex-direction: column; }

       .regional-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .flow7 .step{ max-width: 47%;}

  .docs-stats .st { min-width: 8rem; }
 .hero-meta {
        grid-template-columns: repeat(1, 1fr);
    }
.hero-explore-grid{grid-template-columns:repeat(2,1fr)}


}

@media (max-width: 480px) {
.header-outer .header-menu-wrap{width: 100%;}
 .townhall-video-grid  .sortListBx { flex-direction: column; align-items: flex-start; gap: .75rem; }
 .blue-cta-card{padding: 1.5rem;}

  .flow7 .step{        max-width: 100%; display: flex; width: 100%;}
    .lawlist{display: block;}
    .lawlist li{padding: 0.5rem 0;}
    .law-primary{padding: 1rem;}
    .law-regions{ grid-template-columns: repeat(1, 1fr);}
    /* .docs-main{padding: 1rem 15px;} */
    .princ{  grid-template-columns: repeat(1, 1fr);}
    /* .hero-explore-grid{grid-template-columns:repeat(1,1fr)} */
    .qa-q{padding:1rem;gap:0.75rem}
    .qa-n{width:1.75rem;height:1.75rem;font-size:0.75rem}
    .qa-q-text{font-size:0.875rem}
    .qa-a{padding-left:1rem;padding-right:1rem}


.knowledge-docs-wrap .lrow { flex-wrap: wrap; }

    .docs-stats .st{width: 100%;}
      .capgrid {
        grid-template-columns: repeat(1, 1fr);
    }
    .meta-strip .meta-card{        grid-template-columns: repeat(2, 1fr);}
.hero-chips{margin: 1rem 0;}


}

