/* Shared field-use layout. Loaded last on public, account, and admin pages. */
.header-account{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #9dc8de;border-radius:12px;background:#edf8fd;color:#102e4e;font:700 14px/1.25 'DM Sans',sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
.mobile-account-link{display:none}
:is(button,a,input,select,textarea):focus-visible{outline:3px solid #08a9f9;outline-offset:3px}
.modal-open{overflow:hidden}
.modal-backdrop{overflow-y:auto;overscroll-behavior:contain}
.modal{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.modal-close{position:sticky;top:0;float:right;z-index:2;background:#fff;border-radius:50%}
.modal h2{clear:both}
.gi-dialog-head,.gpj-thread-head{position:sticky;top:0;z-index:2}
html[data-gpj-admin-theme=dark] .header-account{background:#223246;color:#eaf2fc;border-color:#435d77}
@media(max-width:1100px){
 .site-header{height:auto;min-height:82px;padding:12px 20px;display:grid;grid-template-columns:minmax(0,1fr) auto auto 44px;grid-template-areas:'brand phone account menu';gap:10px}
 .site-header>.brand{grid-area:brand;min-width:0}
 .site-header .header-actions{display:contents}
 .site-header .header-actions>.outline-button{display:none}
 .site-header .header-account{grid-area:account;display:inline-flex}
 .site-header .phone-button{grid-area:phone;justify-content:center;min-height:44px;margin:0;font-size:13px;box-shadow:none}
 .site-header .phone-button span{display:inline}
 .site-header .menu-toggle{grid-area:menu;display:grid;place-content:center;margin:0;min-width:44px;min-height:44px;padding:0;border:1px solid #bed7ea;border-radius:10px;cursor:pointer}
 .menu-toggle span{margin:3px}
 .site-header .main-nav{display:none;position:absolute;inset:100% 0 auto;background:#fff;padding:12px 20px 20px;margin:0;flex-direction:column;align-items:stretch;gap:0;max-height:calc(100vh - 140px);max-height:calc(100dvh - 140px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 18px 30px #061c3c20}
 .site-header .main-nav.open{display:flex}
 .site-header .main-nav :is(a,button){display:flex!important;align-items:center;text-align:left;min-height:48px;padding:12px 4px;border:0;border-bottom:1px solid #d8e8f5;background:none;color:#173551;font:600 16px/1.4 'DM Sans',sans-serif;text-decoration:none;cursor:pointer}
 html[data-gpj-admin-theme=dark] .site-header .main-nav{background:#152332}
 html[data-gpj-admin-theme=dark] .site-header .main-nav :is(a,button){color:#eaf2fc;border-color:#435d77}
 .account-page .site-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'brand account'}
 .account-page .site-header #logoutButton{grid-area:account;display:inline-flex;align-items:center;min-height:44px;font-size:14px}
 .account-page .site-header .header-actions>a{display:none}
}
@media(max-width:700px){
 html{scroll-padding-top:132px}
 body{ -webkit-text-size-adjust:100% }
 .section{padding-inline:18px;scroll-margin-top:132px}
 :is(.hero-copy,.hero-visual,.booking-intro,.booking-form,.section-heading>*,.account-card,.dashboard-panel,.admin-demo-content,.admin-inline-form,.gi-editor>section,.gi-form-grid>*,.jws-card){min-width:0;max-width:100%}
 :is(input,select,textarea){font-size:16px!important;min-width:0;max-width:100%;scroll-margin:140px 0 24px}
 :is(input,select):not([type=checkbox]):not([type=radio]):not([type=hidden]){min-height:48px}
 :is(button,.small-button,.tiny-button,.outline-button,.card-link,.review-controls button,.footer-links a){min-height:44px}
 .tiny-button{font-size:13px!important;padding:10px 12px!important}
 .review-controls button{width:44px}
 :is(.admin-page-heading,.panel-heading,.inline-form-heading,.account-card-head){flex-wrap:wrap;gap:14px}
 :is(.admin-page-heading,.panel-heading,.inline-form-heading,.account-card-head)>div{min-width:0}
 .admin-dashboard-section{padding:36px 12px 60px}
 .admin-demo-content{padding:20px 12px;border-radius:0 0 14px 14px}
 .admin-page-heading h2{font-size:clamp(34px,8vw,48px);line-height:1.1}
 .admin-demo-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-inline:0;padding:0 0 8px;overflow:visible}
 .admin-demo-tabs>.admin-demo-tab,.admin-management-tabs .admin-demo-tab{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:10px 6px;font-size:13px;white-space:normal;line-height:1.35;border:1px solid #bed4e5;border-radius:9px}
 .admin-demo-tab.active{background:#e2f4fe}
 .admin-demo-tab.active:after{bottom:0}
 .admin-management-tabs{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 0 0;margin:4px 0 0}
 html[data-gpj-admin-theme=dark] .admin-demo-tabs .admin-demo-tab{border-color:#435d77}
 html[data-gpj-admin-theme=dark] .admin-demo-tab.active{background:#224159}
 .admin-demo-tab>.gpi-dot{width:9px;height:9px;flex-basis:9px;margin-inline-start:6px}
 .admin-demo-stats .stat{padding:15px 12px;min-width:0}
 .admin-demo-stats .stat :is(small,span){font-size:12px;overflow-wrap:anywhere}
 .admin-demo-review>div{min-width:0;overflow-wrap:anywhere}
 :is(.gi-tabs,.gi-pagination,.inline-form-actions){flex-wrap:wrap}
 .gi-tabs button{flex:1;min-width:0;white-space:normal}
 .gi-dialog-body{padding:14px}
 .gi-editor>section{padding:14px}
 :is(.gi-detail-grid strong,.gi-activity strong,.jws-invoice strong,.jws-ticket strong,.account-row strong,.account-row small,.footer-links a){overflow-wrap:anywhere}
 :is(.gi-toolbar,.gi-form-grid,.account-form-row,.admin-form-grid){grid-template-columns:minmax(0,1fr)}
 .gi-item{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gpj-invoice-dialog .gi-item>label{min-width:0}
 .gi-empty{padding:18px}
 .gi-line{flex-wrap:wrap}
 .gi-line>strong{margin-left:auto}
 .gpb-calendar-module{padding:14px 4px}
 .gpb-day{min-width:0;min-height:84px;padding:6px 3px}
 .gpb-day-agenda{padding-inline:6px}
 .gpb-agenda-item>span:nth-child(2){flex-basis:100%}
 .gpb-calendar-head .gi-button{flex:1 1 0;min-width:0;padding-inline:6px}
 .jws-card{padding:16px 12px}
 .jws-invoice{padding:15px 12px}
 .jws-stats{gap:10px}
 .jws-stats>div{flex:1 1 120px;min-width:0;padding:14px}
 .jws-actions .jws-button{flex:1 1 130px}
 .gpj-support-open{grid-template-columns:minmax(0,1fr)}
 .gpj-support-open>*{min-width:0;overflow-wrap:anywhere}
 .gpj-thread-messages{max-height:38vh;max-height:38dvh}
 .modal-backdrop{padding:8px;align-items:start}
 .modal{padding:16px 20px 24px;margin:auto;width:100%;max-width:480px;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:16px}
 .modal h2{font-size:30px;line-height:1.15}
 .account-auth-form label{font-size:14px;text-align:left}
 .account-auth-mode button{font-size:14px}
 .account-auth-note,.account-auth-error{font-size:13px}
 .account-content{padding-inline:12px}
 .account-card{padding:20px 16px}
 .account-form label{font-size:14px}
 .admin-auth-card{width:100%;min-width:0}
 #adminAuthGate{padding-inline:16px}
 .service-strip>div{flex-direction:column;align-items:flex-start;gap:12px}
 .service-strip strong{font-size:16px;line-height:1.3}
 .service-strip small{font-size:13px;line-height:1.45}
 .testimonial-card{padding:26px 22px}
 .testimonial-card blockquote{overflow-wrap:anywhere}
 .site-footer{padding-inline:20px}
 .footer-links{gap:24px;flex-wrap:wrap}
 /* Preserve a real table and its headers for assistive technology; stack labeled cells visually. */
 .gpj-mobile-table{display:block;width:100%;min-width:0!important;border-collapse:separate;background:transparent}
 .gpj-mobile-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
 .gpj-mobile-table tbody{display:grid;gap:14px;width:100%}
 .gpj-mobile-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--gi-line,#bed4e5);border-radius:12px;padding:14px;background:var(--gi-bg,#fff);box-shadow:0 5px 14px #0b23410a}
 .gpj-mobile-table tbody td{display:block;width:100%;min-width:0;padding:10px 0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere;font-size:15px}
 .gpj-mobile-table tbody td+td{border-top:1px solid var(--gi-line,#d8e8f5)!important}
 .gpj-mobile-table td:before{content:attr(data-mobile-label);display:block;margin-bottom:6px;font:700 12px/1.5 'DM Sans',sans-serif;color:var(--gi-muted,#526c82)}
 .gpj-mobile-table td:not([data-mobile-label]):before{display:none}
 .gpj-mobile-table td small{font-size:13px;max-width:none}
 .gpj-mobile-table .gi-actions{width:100%}
 :is(.admin-demo-table-wrap,.gi-table-wrap):has(>.gpj-mobile-table){border:0;border-radius:0;background:transparent;overflow:visible}
 html[data-gpj-admin-theme=dark] .gpj-mobile-table tbody tr{background:#192431;border-color:#435d77}
 html[data-gpj-admin-theme=dark] .gpj-mobile-table td:before{color:#b5c8dc}
}
@media(max-width:600px){
 .site-header{grid-template-columns:minmax(0,1fr) auto 44px;grid-template-areas:'brand account menu' 'phone phone phone';padding:10px 14px;gap:8px;height:auto}
 .site-header .brand-logo{width:42px;height:42px;flex-basis:42px}
 .site-header .brand{gap:8px}
 .site-header .brand-wordmark strong{font-size:11px}
 .site-header .brand-wordmark em{font-size:13px}
 .site-header .brand-wordmark small{font-size:5px}
 .site-header .header-account{font-size:14px;padding:10px 12px}
 .site-header .phone-button{min-height:40px;padding:8px;font-size:12px;border-radius:9px}
 .site-header .phone-button b{font-size:14px}
 .site-header .main-nav{padding-inline:18px}
 .account-page .site-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'brand account';min-height:76px}
 .hero h1{font-size:clamp(44px,12vw,64px)}
 .section-heading h2,.booking-intro h2{font-size:clamp(38px,10vw,52px)}
 .booking-form{padding:24px 18px}
 .form-row{grid-template-columns:minmax(0,1fr)}
}
@media(max-height:500px) and (max-width:1100px){.site-header{position:relative}.modal{max-height:calc(100dvh - 12px)}}
