
/* Home page structural layout based on a sports team listing, retaining ChWL branding */
body.home .wp-site-blocks{background:#f0ede4}
body.home .wp-site-blocks > header .wp-block-group:has(.wp-block-site-logo){flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:14px!important}
body.home .wp-site-blocks > header .wp-block-site-logo{order:1}
body.home .wp-site-blocks > header .wp-block-site-title{order:2}
body.home .wp-site-blocks > header .wp-block-navigation{order:3;justify-content:center!important}
body.home .wp-site-blocks > main{margin-top:0!important}
body.home .wp-site-blocks > main .entry-content{max-width:none!important}
body.home .wp-site-blocks > main .entry-content > :not(.chwl-home-layout){max-width:1100px;margin-inline:auto}
.chwl-home-layout{max-width:1420px;margin:0 auto 60px;background:#f0ede4;color:#123f2c}
.chwl-home-hero{background:#006b3f;min-height:190px;display:flex;align-items:center;justify-content:center;padding:32px 18px;text-align:center}
.chwl-home-hero-inner{width:100%}
.chwl-home-kicker{display:block;color:#d9e9df;font-size:13px;font-weight:700;letter-spacing:.18em}
.chwl-home-hero h2{color:white!important;font-size:clamp(30px,5vw,58px)!important;line-height:1.1;margin:0;text-transform:none;letter-spacing:.07em;font-weight:900}
.chwl-home-hero p{color:white;margin:0;font-size:16px}
.chwl-home-body{padding:clamp(24px,4vw,58px) clamp(18px,3vw,38px)}
.chwl-home-section-title{text-align:center;margin:0 0 44px}
.chwl-home-section-title h2{font-size:clamp(28px,3.5vw,43px)!important;font-weight:900!important;color:#123f2c!important;margin:0 0 12px}
.chwl-home-section-title p{margin:0;color:#355a4a}
.chwl-home-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,4vw,58px)}
.chwl-home-column{min-width:0;display:flex;flex-direction:column}
.chwl-home-column-head{display:flex;align-items:center;gap:12px;border-bottom:3px solid #006b3f;padding-bottom:16px;margin-bottom:12px}
.chwl-home-column-head span{font-size:32px;color:#006b3f}
.chwl-home-column-head h3{margin:0!important;text-transform:uppercase;font-size:clamp(20px,2.1vw,30px)!important;color:#123f2c!important;font-weight:900!important}
.chwl-home-list-item{padding:15px 0;border-bottom:1px solid #d7d7ce;display:flex;flex-direction:column;gap:5px}
.chwl-home-list-item a,.chwl-home-list-item strong{color:#123f2c;font-size:19px;font-weight:800;text-decoration:none}
.chwl-home-list-item small{color:#4c6b5e}
.chwl-home-empty{color:#526b60;min-height:48px}
.chwl-home-more{display:inline-block;align-self:flex-start;background:#006b3f;color:#fff!important;text-decoration:none;padding:12px 19px;margin-top:auto;font-weight:700;border-radius:3px}
@media(max-width:760px){.chwl-home-columns{grid-template-columns:1fr;gap:38px}.chwl-home-hero{min-height:160px}}

/* v1.0.65: site-wide header layout; retain theme's existing ChWL colors. */
.wp-site-blocks > header .wp-block-group:has(.wp-block-site-logo){
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:14px!important;width:100%!important;
}
.wp-site-blocks > header .wp-block-site-logo{margin:0 auto!important;align-self:center!important}
.wp-site-blocks > header .wp-block-navigation{
 width:100%!important;max-width:1200px!important;margin:0 auto!important;
 justify-content:space-between!important;
}
.wp-site-blocks > header .wp-block-navigation__container{
 display:flex!important;width:100%!important;justify-content:space-evenly!important;
 align-items:center!important;gap:clamp(12px,3vw,45px)!important;
}
.wp-site-blocks > header .wp-block-site-title{text-align:center!important}
.chwl-public-clubs{margin:30px auto 42px;max-width:1120px}
.chwl-public-clubs h2{text-align:center}
.chwl-public-clubs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.chwl-public-club{background:#f0ede4;border-bottom:3px solid #006b3f;padding:24px 18px}
.chwl-public-club h3{font-size:20px;margin:0;color:#123f2c}
@media(max-width:760px){
 .wp-site-blocks > header .wp-block-navigation__container{justify-content:center!important}
 .chwl-public-clubs-grid{grid-template-columns:1fr}
}


/* v1.0.68: enforce the same header palette on the front page as all inner pages.
   Covers WP block template parts, nested groups and non-home front-page templates. */
body:is(.home,.front-page) .wp-site-blocks > header,
body:is(.home,.front-page) .wp-site-blocks > header > .wp-block-group,
body:is(.home,.front-page) .wp-site-blocks > header .wp-block-group,
body:is(.home,.front-page) .wp-site-blocks > header .wp-block-template-part,
body:is(.home,.front-page) .wp-site-blocks > header .wp-block-navigation {
 background-color:#006b3f!important;color:#fff!important;
}
body:is(.home,.front-page) .wp-site-blocks > header :is(a,.wp-block-navigation-item__content,.wp-block-site-title,.wp-block-navigation__responsive-container-open){color:#fff!important}
body:is(.home,.front-page) .wp-site-blocks > header .wp-block-navigation__responsive-container-open svg{fill:#fff!important}

/* v1.0.72: Match the homepage title panel to all inner-page title panels. */
body.home .chwl-home-layout{width:min(calc(100% - 40px),1472px)!important;max-width:1472px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
body.home .chwl-home-hero{width:100%!important;box-sizing:border-box!important;min-height:280px!important}
@media(max-width:600px){body.home .chwl-home-layout{width:calc(100% - 24px)!important}body.home .chwl-home-hero{min-height:180px!important}}

/* v1.0.101: visible home sign-in, independent from registration. */
.chwl-home-signin{box-sizing:border-box;width:min(100%,380px);margin:0 0 28px auto;padding:20px 22px;background:#fff;border:1px solid #d9e2dc;border-radius:10px;color:#15372c}
.chwl-home-signin h3{font-size:25px!important;margin:0 0 14px!important;color:#15372c!important}
.chwl-home-signin form{display:flex;flex-direction:column;gap:12px}
.chwl-home-signin label{display:flex;flex-direction:column;gap:5px;font-size:16px}
.chwl-home-signin input[type=email],.chwl-home-signin input[type=password]{width:100%;height:43px;box-sizing:border-box;border:1px solid #bacdc2;border-radius:5px;padding:8px 10px;background:#fff;color:#17221c;font-size:16px}
.chwl-home-signin label.chwl-home-remember{flex-direction:row;align-items:center;font-size:14px;gap:8px}
.chwl-home-signin .chwl-home-remember input{width:17px;height:17px;margin:0}
.chwl-home-signin button,.chwl-home-signin-link{display:inline-block;align-self:flex-start;background:#006b3f!important;color:#fff!important;border:0;border-radius:5px;padding:10px 20px;cursor:pointer;text-decoration:none}
.chwl-home-signin .chwl-home-create{display:inline-block;margin-top:13px;color:#006b3f;text-decoration:underline}
@media(max-width:700px){.chwl-home-signin{margin:0 auto 24px}}

/* v1.0.106: compact account panel at right of the green header, same vertical band as logo. */
@media(min-width:1200px){
 body .wp-site-blocks > header.chwl-header-has-signin{position:relative!important;isolation:isolate}
 body .wp-site-blocks > header.chwl-header-has-signin > .chwl-home-signin{
  position:absolute!important;right:clamp(18px,3vw,64px)!important;top:50%!important;
  transform:translateY(-50%)!important;z-index:10!important;
  width:clamp(225px,16vw,280px)!important;max-width:280px!important;
  margin:0!important;padding:11px 13px!important;border-radius:7px!important;
  box-shadow:none!important;background:#fff!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin h3{font-size:19px!important;margin:0 0 6px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin form{gap:5px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin label{font-size:12px!important;gap:2px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin input[type=email],
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin input[type=password]{height:30px!important;font-size:13px!important;padding:3px 7px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-remember{font-size:11px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin button{padding:5px 12px!important;font-size:12px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-create{margin-top:5px!important;font-size:12px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation{transform:translateX(-140px)!important;max-width:calc(100% - 380px)!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation__container{gap:clamp(8px,1.2vw,22px)!important;justify-content:center!important}
}
@media(min-width:1200px) and (max-width:1450px){
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation{transform:translateX(-105px)!important;max-width:calc(100% - 320px)!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation__container{gap:9px!important}
}

/* v1.0.107: Desktop header: logo left, navigation in a single horizontal row,
   compact sign-in at right. Override earlier centered/column navigation rules. */
@media (min-width:1200px){
 body .wp-site-blocks > header.chwl-header-has-signin{position:relative!important;min-height:300px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-site-logo{
  transform:translateX(-25px)!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation{
  position:absolute!important;
  left:25%!important;right:21%!important;top:50%!important;
  transform:translateY(-50%)!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  margin:0!important;display:flex!important;flex-direction:row!important;
  justify-content:center!important;align-items:center!important;
  z-index:8!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation__container{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  width:100%!important;max-width:none!important;
  justify-content:space-between!important;align-items:center!important;
  gap:clamp(8px,1.1vw,20px)!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation-item{
  width:auto!important;flex:0 0 auto!important;white-space:nowrap!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation-item__content{
  white-space:nowrap!important;
 }
}
@media (min-width:1200px) and (max-width:1450px){
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation{left:23%!important;right:22%!important;transform:translateY(-50%)!important;max-width:none!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation__container{gap:8px!important}
}

/* v1.0.108: reserve enough horizontal room for all six links including About ChWL.
   The previous centered navigation pushed the final link underneath the sign-in card. */
@media (min-width:1200px){
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation{
  left:23%!important;right:21%!important;justify-content:flex-start!important;
  transform:translateY(-50%)!important;overflow:visible!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation__container{
  justify-content:space-between!important;gap:10px!important;
  flex-wrap:nowrap!important;overflow:visible!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation-item{
  flex-shrink:0!important;white-space:nowrap!important;
 }
}
@media (min-width:1200px) and (max-width:1450px){
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation{left:21%!important;right:22%!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation__container{gap:6px!important}
}

/* v1.0.109: shift navigation farther left while keeping logo and sign-in unchanged.
   Leave the full six-item menu visible between the logo and sign-in panel. */
@media (min-width:1200px){
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation{
  left:clamp(365px,22vw,405px)!important;
  right:clamp(310px,19vw,350px)!important;
  width:auto!important;max-width:none!important;
  transform:translateY(-50%)!important;
  justify-content:flex-start!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation__container{
  display:flex!important;flex-flow:row nowrap!important;
  justify-content:space-between!important;gap:8px!important;
  width:100%!important;
 }
}

/* v1.0.110: correct the actual navigation shift to the LEFT.
   Earlier absolute left/right offsets were overridden by theme centering. */
@media(min-width:1200px){
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation{
  transform:translate(-190px,-50%)!important;
 }
}

/* v1.0.111: Match the sign-in card's outer dimensions to the unchanged 250px logo. */
@media(min-width:1200px){
 body .wp-site-blocks > header.chwl-header-has-signin > .chwl-home-signin{
  width:250px!important;max-width:250px!important;min-width:250px!important;
  height:250px!important;min-height:250px!important;max-height:250px!important;
  box-sizing:border-box!important;overflow:hidden!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  padding:12px 14px!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin form{margin:0!important}
}

/* v1.0.112: shared desktop header layout on all pages. */
@media(min-width:1200px){
 body .wp-site-blocks > header.chwl-header-has-signin{position:relative!important;min-height:300px!important;isolation:isolate!important}
 body .wp-site-blocks > header.chwl-header-has-signin > .chwl-home-signin{position:absolute!important;right:clamp(18px,3vw,64px)!important;top:50%!important;transform:translateY(-50%)!important;z-index:10!important;width:250px!important;min-width:250px!important;max-width:250px!important;height:250px!important;min-height:250px!important;max-height:250px!important;box-sizing:border-box!important;overflow:hidden!important;margin:0!important;padding:12px 14px!important;background:#fff!important;border-radius:7px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation{position:absolute!important;left:clamp(365px,22vw,405px)!important;right:clamp(310px,19vw,350px)!important;top:50%!important;transform:translate(-190px,-50%)!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;z-index:8!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation__container{display:flex!important;flex-flow:row nowrap!important;justify-content:space-between!important;gap:8px!important;width:100%!important;max-width:none!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-navigation-item{flex:0 0 auto!important;white-space:nowrap!important}
 body .wp-site-blocks > header.chwl-header-has-signin .wp-block-site-logo{transform:translateX(-25px)!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin h3{font-size:19px!important;margin:0 0 6px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin form{gap:5px!important;margin:0!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin label{font-size:12px!important;gap:2px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin input[type=email],body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin input[type=password]{height:30px!important;font-size:13px!important;padding:3px 7px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-remember{font-size:11px!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-home-signin button{padding:5px 12px!important;font-size:12px!important}
}

/* v1.0.113: equal-sized action buttons in the three homepage columns. */
.chwl-home-columns .chwl-home-column > a.chwl-home-more{
 box-sizing:border-box!important;display:inline-flex!important;
 width:260px!important;max-width:100%!important;min-height:62px!important;
 align-items:center!important;justify-content:center!important;
 text-align:center!important;padding:12px 16px!important;
 white-space:normal!important;
}
@media(max-width:600px){.chwl-home-columns .chwl-home-column > a.chwl-home-more{width:100%!important}}

/* v1.0.114: enforce identical button dimensions with equal-width grid tracks. */
body.home .chwl-home-columns .chwl-home-column a.chwl-home-more,
body.home .chwl-home-columns a.chwl-home-more {
 width:260px!important; min-width:260px!important; max-width:100%!important;
 height:62px!important; min-height:62px!important; max-height:62px!important;
 display:inline-flex!important; box-sizing:border-box!important;
 justify-content:center!important; align-items:center!important; text-align:center!important;
 padding:10px 12px!important; line-height:1.2!important;
}
@media(max-width:600px){body.home .chwl-home-columns a.chwl-home-more{min-width:0!important;width:100%!important}}

/* v1.0.115: registration form only; compact, comfortably wide fields. */
body.page .chwl-account-portal .chwl-account-register input:not([type=radio]):not([type=checkbox]):not([type=hidden]),
body.page .chwl-account-portal .chwl-account-register select{
 box-sizing:border-box!important;width:min(100%,360px)!important;max-width:360px!important;
 height:46px!important;min-height:46px!important;padding:8px 12px!important;
 font-size:17px!important;line-height:1.35!important;
}
body.page .chwl-account-portal .chwl-account-register .chwl-register-as{max-width:680px!important;box-sizing:border-box!important;}
body.page .chwl-account-portal .chwl-account-register .chwl-register-as-options{display:flex!important;flex-wrap:wrap!important;gap:22px!important;align-items:center!important;}
@media(max-width:480px){body.page .chwl-account-portal .chwl-account-register input:not([type=radio]):not([type=checkbox]):not([type=hidden]){width:100%!important;}}

/* v1.0.116: clear, compact registration inputs and required-field labels. */
body.page .chwl-account-register input:not([type=radio]):not([type=checkbox]){box-sizing:border-box!important;width:min(100%,450px)!important;max-width:450px!important;min-height:48px!important;padding:8px 12px!important}
.chwl-account-register .chwl-required{color:#c32626;font-weight:700}
.chwl-account-register .chwl-required-note{font-size:14px;color:#666}
.chwl-account-register .chwl-password-error{color:#b42318;font-size:15px}
.chwl-account-register .chwl-registration-birth[hidden],.chwl-account-register .chwl-registration-club[hidden]{display:none!important}

/* v1.0.117: individual optional club selector and conditional fields */
.chwl-account-register .chwl-registration-individual[hidden]{display:none!important}
.chwl-account-register .chwl-registration-individual select{box-sizing:border-box;width:min(100%,450px);max-width:450px;min-height:48px}
.chwl-account-register .chwl-club-pending-note{font-size:14px;color:#4c6156;max-width:520px}

/* v1.0.121: compact authenticated account panel; preserve guest sign-in layout. */
@media (min-width:1200px){
 body .wp-site-blocks > header.chwl-header-has-signin > .chwl-home-signin.chwl-account-authenticated{
  height:250px!important;min-height:250px!important;max-height:250px!important;
  padding:18px 15px!important;display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:stretch!important;gap:12px!important;
  overflow:visible!important;
 }
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-account-authenticated h3{margin:0!important;font-size:19px!important;line-height:1.3!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-account-authenticated .chwl-account-actions{display:flex!important;flex-direction:column!important;gap:9px!important;margin:0!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-account-authenticated .chwl-account-actions a,
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-account-authenticated .chwl-account-actions button{display:block!important;width:100%!important;box-sizing:border-box!important;text-align:center!important;margin:0!important;padding:9px 8px!important;line-height:1.3!important;font-size:14px!important;border-radius:5px!important;background:#006b3f!important;color:#fff!important;text-decoration:none!important}
 body .wp-site-blocks > header.chwl-header-has-signin .chwl-account-authenticated .chwl-account-actions form{margin:0!important;width:100%!important}
}
