/* Responsive layout corrections; desktop design remains authoritative above each breakpoint. */
html body:is(.is-home,.daym-shared-inner-page) main,html body:is(.is-home,.daym-shared-inner-page) main :is(section,article,form,[class*="grid"]>*){min-width:0}
@media(max-width:1400px){
html body.is-home main #about.reference-about .reference-about-media .stat-box{width:42%!important;min-width:0!important;max-width:190px!important;}
html body.is-home main #about.reference-about .reference-about-media .completed{left:4%!important;right:auto!important;}
html body.is-home main #about.reference-about .reference-about-media .spend{left:auto!important;right:4%!important;}
html body.is-home main #about.reference-about .stat-box strong{font-size:clamp(22px,2.7vw,32px)!important;max-width:100%!important;overflow-wrap:anywhere;white-space:normal!important;}
}
@media(max-width:850px){
html body:is(.is-home,.daym-shared-inner-page) main :is(input,textarea,select){max-width:100%;font-size:16px;}
html body:is(.is-home,.daym-shared-inner-page) main table{display:block;max-width:100%;overflow-x:auto;}
html body.is-home .daym-fresh-header-logo{width:82px!important;height:92px!important;top:10px!important;left:12px!important;}
html body.is-home .daym-new-home-header.has-responsive-menu:not(.is-scroll-centered){width:calc(100% - 120px)!important;max-width:none!important;right:12px!important;left:auto!important;top:16px!important;transform:none!important;}
html body.is-home .daym-new-home-header.has-responsive-menu.is-scroll-centered{position:fixed!important;left:12px!important;right:12px!important;top:10px!important;width:calc(100% - 24px)!important;max-width:none!important;transform:none!important;}
html body.is-home .daym-new-home-header.has-responsive-menu nav.daym-new-nav{height:54px!important;min-height:54px!important;max-height:none!important;padding:0 8px!important;display:flex!important;justify-content:space-between!important;gap:4px!important;overflow:visible!important;}
html body.is-home .has-responsive-menu .daym-responsive-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:74px;min-height:44px;padding:0 8px;border:0;border-radius:24px;background:transparent;color:#fff;font-size:13px;font-weight:650;cursor:pointer;}
html body.is-home .has-responsive-menu .daym-new-language{margin:0!important;padding:0 3px 0 8px!important;height:50px!important;min-height:0!important;gap:2px!important;flex:0 0 auto!important;}
html body.is-home .has-responsive-menu .daym-new-language a{font-size:12px!important;padding:8px 2px!important;min-height:40px!important;gap:3px!important;}
html body.is-home .has-responsive-menu .daym-new-language svg{width:17px!important;height:12px!important;}
html body.is-home .has-responsive-menu .daym-responsive-links{display:none!important;position:absolute;right:0;left:auto;top:calc(100% + 8px);width:min(320px,calc(100vw - 24px));max-height:calc(100vh - 95px);max-height:calc(100dvh - 95px);overflow-y:auto;overscroll-behavior:contain;padding:8px;border:1px solid rgba(212,175,55,.5);border-radius:16px;background:#0d2b43;box-shadow:0 14px 30px #0003;z-index:10060;}
html body.is-home .has-responsive-menu.is-responsive-open .daym-responsive-links{display:flex!important;flex-direction:column!important;gap:2px!important;}
html body.is-home .has-responsive-menu .daym-responsive-links>a,html body.is-home .has-responsive-menu .daym-responsive-links>.daym-new-nav-item>button{display:flex!important;align-items:center;justify-content:space-between!important;width:100%!important;min-height:44px!important;height:auto!important;padding:12px!important;color:white!important;font-size:14px!important;text-align:start!important;white-space:normal!important;background:transparent;border:0;}
html body.is-home .has-responsive-menu .daym-responsive-links>.daym-new-nav-item{display:block!important;width:100%!important;min-height:0!important;height:auto!important;flex:none!important;}
html body.is-home .has-responsive-menu .daym-responsive-links .daym-new-dropdown{position:static!important;width:100%!important;min-width:0!important;max-width:none!important;transform:none!important;margin:0!important;padding:4px 8px!important;box-shadow:none!important;border:0!important;}
html body.is-home .has-responsive-menu .daym-responsive-links .daym-new-dropdown a{display:block!important;min-height:44px;padding:12px!important;font-size:13px!important;white-space:normal!important;}
html body.is-home main #home .daym-hero-bottom-text-v1,html body.is-home main #home .daym-hero-bottom-text-v1__line,html body.is-home main #home .daym-hero-bottom-text-v1__line>span,html body.is-home main #home .daym-hero-bottom-text-v1__since{font-size:clamp(20px,6vw,42px)!important;}
html body.is-home main #home .daym-hero-bottom-text-v1{max-width:calc(100% - 32px)!important;}
}
@media(max-width:650px){
html body.daym-shared-inner-page .daym-inner-nav-wrap:not(.is-floating){height:46px!important;}
html body.daym-shared-inner-page .daym-inner-nav-wrap:not(.is-floating) .daym-inner-nav{height:46px!important;min-height:46px!important;}
html body.daym-shared-inner-page .daym-inner-nav-wrap:not(.is-floating) .daym-inner-menu-toggle{height:44px!important;min-height:44px!important;font-size:12px!important;}
html body.daym-shared-inner-page .daym-inner-nav-wrap:not(.is-floating) .daym-inner-language{height:42px!important;min-height:42px!important;}
html body.daym-shared-inner-page .daym-inner-nav-wrap .daym-inner-language a{min-height:36px;}
html body:is(.is-home,.daym-shared-inner-page) main :is(button,.btn,.dt-button){touch-action:manipulation;}
}

html body:is(.is-home,.daym-shared-inner-page) main :is(h1,h2,h3,p,label){overflow-wrap:anywhere;}
@media(max-width:850px){html body.is-home .has-responsive-menu .daym-responsive-links .daym-new-nav-item.is-open>.daym-new-dropdown{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;max-height:none!important;}}
@media(max-width:850px){html body.daym-shared-inner-page:has(#daymProjectsPage) main #daymProjectsPage .daym-projects-search input{font-size:16px!important;min-width:0;}}
@media(max-width:850px){html body.is-home .has-responsive-menu .daym-responsive-links .daym-new-dropdown{display:none!important;}html body.is-home .has-responsive-menu .daym-responsive-links .daym-new-nav-item.is-open>.daym-new-dropdown{display:block!important;}}
@media(max-width:560px){html body.is-home main #about.reference-about .reference-about-media .stat-box{height:auto!important;min-height:190px!important;padding:16px!important;}html body.is-home main #about.reference-about .reference-about-media .stat-box strong{font-size:20px!important;}}
@media(max-width:650px){html body .daym-detail-lightbox button{width:44px!important;height:44px!important;}}

/* v58: stack sector content rather than squeezing desktop columns on phones. */
@media(max-width:850px){
html body.is-home main #sector.reference-sectors{padding:64px 20px!important;min-height:0!important;}
html body.is-home main #sector .sectors-reference-heading{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;margin:0 auto 30px!important;width:100%!important;}
html body.is-home main #sector .sectors-reference-heading h2{font-size:clamp(30px,7vw,48px)!important;line-height:1.15!important;overflow-wrap:normal!important;word-break:normal!important;}
html body.is-home main #sector .reference-sector-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;width:100%!important;}
html body.is-home main #sector .sector-v2-card{width:100%!important;min-width:0!important;min-height:0!important;transform:none!important;}
html body.is-home main #sector .sector-card-content{padding:82px 24px 28px!important;}
html body.is-home main #sector .sector-v2-card em{left:24px!important;}
html body.is-home main #sector .sector-v2-card h3{font-size:24px!important;line-height:1.25!important;overflow-wrap:normal!important;word-break:normal!important;}
html body.is-home main #sector .sector-v2-card p{min-height:0!important;line-height:1.65!important;overflow-wrap:normal!important;word-break:normal!important;margin-bottom:24px!important;}
html body.is-home main #home .daym-hero-bottom-text-v1{left:5%!important;width:90%!important;max-width:90%!important;bottom:12%!important;text-shadow:0 2px 4px #000,0 3px 14px #000b!important;}
html body.is-home main #home .daym-hero-bottom-text-v1__line{display:flex!important;flex-wrap:wrap!important;column-gap:.25em!important;row-gap:.1em!important;white-space:normal!important;}
html body.is-home main #home .daym-hero-bottom-text-v1__line>span{max-width:100%!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;}
html body.is-home main #home .daym-hero-bottom-text-v1__highlight{margin-left:0!important;color:#165ea1!important;}
html body.is-home main #home .daym-hero-bottom-text-v1__since{white-space:normal!important;}
}

/* v59: full-width phone navigation and a footer brand row in normal flow. */
@media(max-width:850px){
html body.is-home .daym-new-home-header.has-responsive-menu:not(.is-scroll-centered),html body.is-home .daym-new-home-header.has-responsive-menu.is-scroll-centered{left:12px!important;right:12px!important;width:calc(100% - 24px)!important;max-width:none!important;transform:none!important;}
html body.is-home .daym-new-home-header.has-responsive-menu nav.daym-new-nav{justify-content:space-between!important;}
html body .daym-new-footer .daym-new-footer__brand-logos{top:0!important;left:0!important;position:static!important;transform:none!important;align-items:center!important;justify-content:center!important;gap:20px!important;}
html body .daym-new-footer .daym-new-footer__panel--brand{min-height:0!important;align-items:center!important;justify-content:center!important;padding:0 0 12px!important;}
html body .daym-new-footer .daym-new-footer__vision-card,html body .daym-new-footer .daym-new-footer__logo-card{flex:1 1 0!important;width:calc((100% - 20px)/2)!important;max-width:190px!important;height:126px!important;min-width:0!important;}
html body .daym-new-footer .daym-new-footer__vision-card img,html body .daym-new-footer .daym-new-footer__logo-card img{position:static!important;top:0!important;transform:none!important;width:100%!important;max-width:100%!important;height:116px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important;}
}
@media(max-width:680px){
html body .daym-new-footer .daym-new-footer__main{width:calc(100% - 36px)!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:32px!important;padding-top:30px!important;}
html body .daym-new-footer .daym-new-footer__panel{min-width:0!important;}
html body .daym-new-footer .daym-new-footer__heading{margin-top:10px!important;}
html body .daym-new-footer .daym-new-footer__links a{min-height:44px!important;}
html body .daym-new-footer .daym-new-footer__bottom{width:calc(100% - 36px)!important;gap:16px!important;flex-wrap:wrap!important;}
}
