/* Public mobile layout, loaded after the existing stylesheet. */
.public-body .btn,.auth-body .btn,.public-body .footer-demo-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:.35rem;line-height:1.35;min-height:44px;white-space:normal}
.guest-mobile-bar{display:none}
.back-to-top{position:fixed;right:18px;bottom:24px;width:46px;height:46px;border:0;border-radius:50%;background:#16345f;color:#fff;box-shadow:0 3px 14px #16345f30;z-index:1031;display:grid;place-items:center}
.back-to-top[hidden]{display:none!important}
.public-body :focus-visible{outline:3px solid #3183c4;outline-offset:3px}
.public-body [id]{scroll-margin-top:100px}
@media(max-width:991.98px){
 .has-guest-bar{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
 .guest-mobile-bar{position:fixed;inset:auto 0 0;z-index:1030;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #dce4eb;box-shadow:0 -3px 16px #16345f12}
 .guest-mobile-bar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;color:#16345f;text-decoration:none;font-size:12px;font-weight:600;text-align:center}
 .guest-mobile-bar i{font-size:21px}
 .has-guest-bar .back-to-top{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
 .public-body .cookie-banner-v2{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;max-height:60vh;max-height:60svh;overflow:auto;overscroll-behavior:contain;z-index:1055}
 .public-body .site-footer-v2 .row{display:flex!important;flex-direction:column!important;gap:22px!important;margin:0!important}
 .public-body .site-footer-v2 .row>div{width:100%!important;max-width:100%!important;flex:0 0 auto!important;padding:0!important}
 .public-body .footer-legal-links{display:flex!important;flex-direction:column!important;gap:8px!important}
 .public-body .site-footer-v2 .d-flex.gap-2.flex-wrap{display:flex!important;flex-direction:column!important;align-items:stretch!important}
 .public-body .site-footer-v2 .btn,.public-body .site-footer-v2 .footer-demo-button{display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;min-height:46px!important}
 .public-body .footer-bottom-v2{display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important;gap:10px!important}
 .public-body .footer-legal-links a,.public-body .footer-legal-links button{min-height:38px;display:flex;align-items:center;text-align:left}
 .public-body .form-control,.public-body .form-select,.auth-body .form-control,.auth-body .form-select{font-size:16px!important;min-height:46px}
 .public-body .public-nav-v2 .navbar-collapse:not(.show):not(.collapsing){display:none!important;max-height:0;overflow:hidden!important}
 .public-body .public-nav-v2 .navbar-collapse.show{max-height:calc(100svh - 160px);overflow-y:auto!important;overscroll-behavior:contain}
 .public-body .public-nav-v2 .navbar-collapse.collapsing{overflow:hidden!important}
 .public-body .public-nav-v2{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 .public-body .contact-actions{display:flex;flex-direction:column;align-items:stretch}
 .public-body .contact-quick-card a span{min-width:0;overflow-wrap:anywhere}
 .public-body .parent-reg-card{padding:20px 14px}
 .public-body .child-block-head{flex-wrap:wrap;gap:8px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.public-body *, .public-body *::before,.public-body *::after{animation:none!important;transition:none!important}}

@media(max-width:991.98px){.app-footer-polished,.app-footer-polished .app-footer-copy,.app-footer-polished .app-footer-legal-actions{display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important;gap:12px!important}.app-footer-polished .app-footer-legal-actions>a,.app-footer-polished .app-footer-legal-actions>button{min-height:40px;display:flex;align-items:center}}

/* Keep the document as the vertical scroller; clip is not a scroll container. */
@media(max-width:991.98px){
 @supports(overflow:clip){html{overflow-x:clip;overflow-y:visible}body{overflow-x:clip;overflow-y:visible}}
 html{scroll-behavior:auto}
 .topbar-v3,.public-body .public-nav-v2{background:#fff;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 .sidebar-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transition:opacity .2s ease!important}
 .public-body .cookie-banner-v2{max-height:60svh}
}

/* 1.0.10: Chrome iOS workaround; Safari and installed mode retain sticky headers. */
@media(max-width:991.98px){
 html.chrome-ios-browser{overflow:visible}
 .chrome-ios-browser .public-nav-v2,.chrome-ios-browser .topbar-v3{position:relative!important;top:auto!important}
 .chrome-ios-browser .guest-mobile-bar,.chrome-ios-browser .back-to-top{transform:translateZ(0);backface-visibility:hidden}
 .public-body .site-footer-v2 .d-flex.gap-2.flex-wrap{gap:14px!important}
 .public-body .site-footer-v2 .footer-demo-button,.public-body .site-footer-v2 .btn{min-height:44px!important;height:auto!important;padding:10px 14px!important;font-size:14px!important;line-height:22px!important;border-radius:10px!important}
 .public-body .site-footer-v2 .footer-legal-links{gap:12px!important}
 .public-body .site-footer-v2 .footer-legal-links a,.public-body .site-footer-v2 .footer-legal-links button{min-height:32px!important;margin:0!important;padding:5px 0!important;line-height:22px!important}
}

/* Header controls and date use separate rows on mobile, without a fixed height. */
.date-mobile,.year-mobile{display:none}
@media(max-width:991.98px){
 .topbar-v3{display:grid!important;grid-template-columns:44px minmax(0,1fr);gap:6px 8px;height:auto!important;min-height:70px;padding:8px 12px!important;align-items:center}
 .topbar-v3 .topbar-context{display:contents!important}
 .topbar-v3 .topbar-context>.mobile-menu{grid-column:1;grid-row:1;width:44px;height:44px;margin:0;padding:0}
 .topbar-v3 .top-account{grid-column:2;grid-row:1;justify-self:end;min-width:0;gap:8px}
 .topbar-v3 .top-user-name{display:none!important}
 .topbar-v3 .today-chip{grid-column:1/-1;grid-row:2;min-width:0;width:100%;display:flex;justify-content:space-between;gap:8px;border:0;border-radius:0;box-shadow:none;background:transparent;padding:3px 0;color:#53677c}
 .topbar-v3 .today-chip>i,.topbar-v3 .date-desktop,.topbar-v3 .year-desktop{display:none}
 .topbar-v3 .date-mobile,.topbar-v3 .year-mobile{display:inline}
 .topbar-v3 .today-chip span{font-size:12px;line-height:18px}
 .topbar-v3 .today-date{flex-shrink:0;white-space:nowrap}
 .topbar-v3 .today-year{text-align:right;min-width:0;overflow-wrap:anywhere}
}

/* DG+ 1.0.59: a centered brand remains visible with the sidebar closed. */
.topbar-mobile-brand{display:none}
@media(max-width:991.98px){
 .topbar-v3{grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)}
 .topbar-v3 .topbar-mobile-brand{display:flex;grid-column:2;grid-row:1;align-items:center;justify-content:center;justify-self:center;width:64px;height:44px;min-width:0}
 .topbar-mobile-brand img{display:block;width:100%;height:36px;object-fit:contain}
 .topbar-v3 .top-account{grid-column:3;gap:6px}
}
@media(max-width:359.98px){
 .topbar-v3{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr)}
 .topbar-v3 .topbar-mobile-brand{width:48px}
 .topbar-v3 .top-account{gap:4px}
 .topbar-v3 .top-icon-btn,.topbar-v3 .top-logout-btn{width:36px;height:38px;padding:0;flex-shrink:0}
 .topbar-v3 .top-icon-btn .avatar-img{width:28px;height:28px}
}
