/* App/B2B readability only. No palette, navigation geometry or business state overrides. */
body.readability-app :is(main,.account-page,#signupPage,#forgotPage,#checkEmailPage) :is(p,li,dd){line-height:1.55;overflow-wrap:anywhere}
body.readability-app :is(main,.account-page)>h1,body.readability-app main>section.card>h1{line-height:1.15!important;font-size:clamp(28px,2.3vw,36px)!important;overflow-wrap:anywhere}
body.readability-app :is(main,.account-page) form :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select){box-sizing:border-box;min-width:0;max-width:100%;font-size:16px!important;line-height:1.4;min-height:44px}
body.readability-app :is(main,.account-page) form textarea{box-sizing:border-box;max-width:100%;font-size:16px!important;line-height:1.5;resize:vertical}
body.readability-app:where([data-jh-su]):not(#jh-z):not(.jh-z) .wrap{box-sizing:border-box;width:100%!important;max-width:1120px!important;margin-inline:auto!important;padding-inline:24px!important}
body.readability-app:where([data-jh-su]):not(#jh-z):not(.jh-z) .wrap>.header .exp-app-logo img{width:140px!important;height:auto!important}
:root:not([data-theme=dark]) body.readability-app:where([data-jh-su]):not(#jh-z):not(.jh-z) .wrap>.header :is(.exp-app-logo,.brand) img{filter:brightness(0) saturate(100%)}
:root[data-theme=dark] body.readability-app:where([data-jh-su]):not(#jh-z):not(.jh-z) .wrap>.header :is(.exp-app-logo,.brand) img{filter:none}
body.readability-app :is(.rest-panel,.pm-card,.profile-edit-section,.settings-section,.action-group) :is(h2,h3){line-height:1.25;margin-block:0 16px}
body.readability-app :is(#signupPage,#forgotPage,#checkEmailPage,#invitePage,#newPlayerbasePage){box-sizing:border-box;width:100%;max-width:560px!important;margin-inline:auto!important;padding:28px!important}
body.readability-app :is(#signupPage,#forgotPage,#checkEmailPage,#invitePage,#newPlayerbasePage)>h1{font-size:32px!important;line-height:1.15;margin-block:0 20px!important}
/* Promotional kickers repeat the page title; preserve their DOM contracts. */
body.readability-app :is(#signupPage,#newPlayerbasePage,#settingsPage,#profilePage,#accountPage) .section-kicker{display:none}
body.readability-app #signupPage .signup-layout{display:block!important}
body.readability-app #signupPage .signup-intro{padding:0!important;margin-bottom:20px}
body.readability-app #signupPage .signup-intro h1{font-size:32px!important;line-height:1.15!important;margin-block:0 12px!important}
body.readability-app :is(#profilePage,#accountPage,#settingsPage,#privacyPage,#signupPage,#forgotPage,#invitePage,#newPlayerbasePage) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select){box-sizing:border-box;min-width:0;max-width:100%;min-height:48px!important;font-size:16px!important;line-height:1.4;padding:10px 12px!important}
body.readability-app :is(#profilePage,#accountPage,#settingsPage,#privacyPage,#signupPage,#forgotPage,#invitePage,#newPlayerbasePage) textarea{box-sizing:border-box;max-width:100%;min-height:112px;font-size:16px!important;line-height:1.5;padding:12px!important;resize:vertical}
body.readability-app :is(#profilePage,#accountPage,#settingsPage,#privacyPage,#signupPage,#forgotPage,#invitePage,#newPlayerbasePage) label{line-height:1.4}
body.readability-app :is(#signupPage,#forgotPage,#invitePage,#newPlayerbasePage) button{min-height:44px;white-space:normal}
body.readability-app :is(#signupPage,#forgotPage,#invitePage,#newPlayerbasePage) .password-field{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
body.readability-app :is(#signupPage,#forgotPage,#invitePage,#newPlayerbasePage) .password-field :is(input,button){height:48px!important;margin:0!important;box-sizing:border-box}
body.readability-app :is(.rest-controls,.pf-save-bar,.invite-actions){flex-wrap:wrap;gap:12px}
body.readability-app :is(.pages-v2,.p2-page,.v34-bookings,.v34-hub) :is(p,li){line-height:1.55;overflow-wrap:anywhere}
/* Staff pages share head()/field templates. Keep calendar geometry and status colours unchanged. */
body.readability-b2b .page>.head{align-items:flex-start;gap:16px;margin-bottom:24px}
body.readability-b2b .head .t{min-width:0}
body.readability-b2b .head h1{font-size:clamp(28px,2.3vw,36px)!important;line-height:1.15!important;overflow-wrap:anywhere;margin-block:4px 12px!important}
body.readability-b2b .head p{font-size:16px!important;line-height:1.55!important;max-width:70ch;margin:0}
body.readability-b2b :is(.card,.drawer,.banner) :is(p,li){line-height:1.55;overflow-wrap:anywhere}
body.readability-b2b :is(.card,.drawer) :is(h2,h3){line-height:1.25}
body.readability-b2b .field{min-width:0;gap:8px}
body.readability-b2b .field>span:first-child{font-size:14px!important;line-height:1.4!important;font-weight:600}
body.readability-b2b .field :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select){box-sizing:border-box;min-width:0;max-width:100%;min-height:48px!important;font-size:16px!important;line-height:1.4;padding:10px 12px!important}
body.readability-b2b .field textarea{box-sizing:border-box;max-width:100%;min-height:112px;font-size:16px!important;line-height:1.5;padding:12px!important;resize:vertical}
body.readability-b2b :is(.btns,.ract){flex-wrap:wrap;gap:10px}
body.readability-b2b .btn{white-space:normal;line-height:1.35!important}
body.readability-b2b .drawer .btns .btn{min-height:44px}
body:is(.readability-app,.readability-b2b) :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #008554!important;outline-offset:3px!important}
:root[data-theme=dark] body:is(.readability-app,.readability-b2b) :is(button,a,input,select,textarea,summary):focus-visible{outline-color:#00D987!important}
@media(max-width:600px){
 body.readability-app:where([data-jh-su]):not(#jh-z):not(.jh-z) .wrap{padding-inline:16px!important}
 body.readability-app :is(#signupPage,#forgotPage,#checkEmailPage,#invitePage,#newPlayerbasePage){padding:24px 20px!important}
 body.readability-app :is(#signupPage,#forgotPage,#checkEmailPage,#invitePage,#newPlayerbasePage)>h1{font-size:28px!important}
 body.readability-b2b .page>.head{flex-wrap:wrap;gap:12px}
 body.readability-b2b .head .t{width:100%}
 body.readability-b2b .drawer .grid2{grid-template-columns:minmax(0,1fr)}
 body.readability-b2b .drawer .btns>.btn{flex:1 1 140px}
}
