/* E-Citizen — Foldable / Phone Fit-to-Viewport Stabilization — ADS 43.2 patch
   Keeps desktop design intact; only prevents narrow-screen clipping/oversizing. */
html,body{width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:hidden!important;-webkit-text-size-adjust:100%}
.ec-header-wrap,.ec-shell,main,section,article,nav,div{min-width:0;max-width:100%}
img,picture,video,canvas,svg,iframe{max-width:100%;height:auto}
pre,code{max-width:100%;overflow-wrap:anywhere}
h1,h2,h3,h4,h5,h6,p,li,a,span{overflow-wrap:break-word}
@supports(padding:max(0px)){body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}}
@media(max-width:1100px){
  .ads-site-header{width:100%!important;max-width:100%!important;min-width:0!important;padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))!important;grid-template-columns:minmax(0,1fr) max-content!important;grid-template-areas:"brand contact" "search search" "nav nav"!important;column-gap:10px!important;row-gap:9px!important}
  .ads-brand{min-width:0!important;max-width:100%!important}
  .ads-brand-text{min-width:0!important}.ads-brand-text strong,.ads-brand-text span{white-space:normal!important;overflow-wrap:anywhere!important}
  .ads-header-search{width:100%!important;max-width:none!important;min-width:0!important}.ads-header-search input{width:100%!important;min-width:0!important;max-width:none!important}
  .ads-contact-btn{justify-self:end!important}
  .ads-nav{width:100%!important;max-width:100%!important;min-width:0!important;justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-inline:contain!important;scrollbar-width:thin!important}
  .ads-nav a{flex:0 0 auto!important}
  .ec-shell{width:calc(100% - 20px)!important;max-width:100%!important;margin-inline:auto!important;padding-left:0!important;padding-right:0!important}
  .hero,.series-hero,.book-hero,.content-hero{grid-template-columns:minmax(0,1fr)!important}
  .hero-left,.hero-media,.series-hero-copy,.series-panorama,.book-cover-card,.book-main-card,.book-buy-card,.content-hero-copy{min-width:0!important;max-width:100%!important}
  .content-grid,.content-grid.two,.content-grid.four,.content-links,.icon-strip,.info-grid,.books-grid,.lower-grid,.updates-grid,.metric-row,.book-series-grid,.bottom-six,.book-meta-icons,.feature-row,.book-lower,.more-books{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .book-card{grid-template-columns:120px minmax(0,1fr)!important}
}
@media(max-width:760px){
  .ads-site-header{position:relative!important;padding:10px 10px!important;grid-template-columns:minmax(0,1fr) max-content!important}
  .ads-brand-mark{width:48px!important;height:42px!important;min-width:48px!important}.ads-brand-mark img{width:48px!important;height:42px!important}
  .ads-brand-text strong{font-size:17px!important;line-height:1.02!important;letter-spacing:1.6px!important}.ads-brand-text span{font-size:8px!important;line-height:1.15!important;letter-spacing:1px!important}
  .ads-contact-btn{min-width:82px!important;width:auto!important;padding-inline:11px!important}
  .ec-shell{width:calc(100% - 16px)!important}
  .hero-left,.series-hero-copy,.content-hero-copy{padding:22px 18px!important}
  .hero-title,.content-hero h1,.book-main-card h1{font-size:clamp(2.25rem,12vw,3.7rem)!important;line-height:.98!important}
  .hero-media,.content-hero img{min-height:0!important;height:auto!important}
  .content-grid,.content-grid.two,.content-grid.four,.content-links,.icon-strip,.info-grid,.books-grid,.lower-grid,.updates-grid,.metric-row,.book-series-grid,.bottom-six,.book-meta-icons,.feature-row,.book-lower,.more-books{grid-template-columns:minmax(0,1fr)!important}
  .book-card{grid-template-columns:84px minmax(0,1fr)!important;gap:12px!important;padding:12px!important}.book-card h4{font-size:1.35rem!important}
  .topic-card{grid-template-columns:54px minmax(0,1fr)!important}.topic-card img{width:54px!important;height:54px!important}
  .pt-shell{width:100%!important;max-width:100%!important;padding:18px 10px 52px!important}.pt-grid{grid-template-columns:1fr!important}
  .section-title{align-items:flex-start!important;gap:8px!important;flex-direction:column!important}
}
@media(max-width:430px){
  .ec-shell{width:calc(100% - 12px)!important}.ads-site-header{padding-inline:8px!important}
  .ads-brand{gap:8px!important}.ads-brand-text strong{font-size:15px!important;letter-spacing:1.2px!important}.ads-brand-text span{font-size:7.5px!important}
  .ads-contact-btn{font-size:12px!important;min-width:74px!important}
  .hero-left,.series-hero-copy,.content-hero-copy{padding:20px 15px!important}
  .book-card{grid-template-columns:76px minmax(0,1fr)!important}
}
