/* ==========================================================================
   CLUB PAGES: Pelham, Yorktown, Somers, Thornwood, Port Chester  (clubs/*.html, not the Locations page)
   Loaded after styles.css by those five pages only. Stamp: club.css?v=20261112a

   2026-11-11 (Nick: "Pelham's page is the new structure to follow"): Valeria's Pelham redesign (2026-11-10) kept
   everything Pelham-only in a <style> block in clubs/pelham.html. Those rules now live here, in the same order
   and with the same values, under neutral names (pelham-tour -> club-tour, pelham-court -> club-duo__tile,
   pelham-cards -> club-cards--detail ...), so all five club pages are built from the same parts:

     1. hero            .hero--clubs.hero--club, .club-hero__title, .club-hero__addr
     2. Inside <club>   .club-tour, .club-tour__item (clip or picture), .club-tour__copy
     3. Featured        .club-duo (two tiles side by side), .club-cards--detail (detail cards)
     4. classes band    .classes-try (styles.css), .club-classes__line
     5. recovery        .club-recovery
     6. hours + contact .club-visit
     7. map             .club-map (styles.css) on navy

   The pickleball panel (.pelham-pickle, .pickle) exists on Pelham only and keeps its name.
   ========================================================================== */

/* ---------- from the Pelham redesign, unchanged ---------- */
.hero--club .hero__pills{justify-content:center;margin-top:28px}
.club-hero__title{color:#fff !important}
.club-hero__title em{font-style:normal !important;color:#fff !important}
@media (max-width:700px){.club-hero__title{white-space:normal !important;font-size:44px !important;line-height:1.08 !important}}
.club-hero__addr{margin-top:26px;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.62)}
.club-tour{background:var(--ink-900,#0A0E1A);padding:90px 20px 1px;margin:0}
.club-tour .classes-featured__title{margin-bottom:44px}
.club-tour__item{position:relative;max-width:1240px;margin:0 auto 20px;aspect-ratio:16/7;border-radius:6px;overflow:hidden;background:#0A0E1A}
.club-tour__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.club-tour__copy{position:absolute;left:44px;bottom:38px;right:44px;color:#fff;text-shadow:0 1px 16px rgba(0,0,0,.45)}
.club-tour__copy h3{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;font-size:40px;line-height:1.1;margin:0 0 10px}
.club-tour__copy p{font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;line-height:1.5;margin:0;color:#fff}
@media (max-width:700px){.club-tour{padding:64px 16px 1px}.club-tour__item{aspect-ratio:4/3;margin-bottom:14px}.club-tour__copy{left:20px;right:20px;bottom:20px}.club-tour__copy h3{font-size:28px;margin-bottom:6px}.club-tour__copy p{font-size:10px}}
.club-duo{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:1240px;margin:0 auto 16px;align-items:stretch}
.club-duo .club-duo__tile{aspect-ratio:auto;height:100%;min-height:520px;margin:0;max-width:none}
.club-duo .pelham-pickle{margin:0;height:100%}
.club-duo .pickle{height:100%;margin:0}
.club-duo .pickle__overlay{grid-template-columns:1fr !important;gap:28px !important}
.club-duo .pickle--video{padding:40px 36px !important}
.club-duo .club-duo__tile .club-tour__copy{left:36px;right:36px;top:40px;bottom:auto}
.club-duo .club-duo__tile .club-tour__copy h3{font-size:40px;line-height:1.1;margin:0 0 14px}
.club-duo .club-duo__tile::after{top:0;bottom:auto;height:45%;background:linear-gradient(180deg,rgba(10,14,26,.8) 0%,rgba(10,14,26,.4) 50%,rgba(10,14,26,0) 100%)}
@media (max-width:900px){.club-duo{grid-template-columns:1fr}.club-duo .club-duo__tile{min-height:0;aspect-ratio:4/3}}
.pelham-pickle__title{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;font-size:40px;line-height:1.1;color:#fff;margin:0 0 28px;text-shadow:0 1px 16px rgba(0,0,0,.45)}
.club-cards--detail{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;max-width:1240px;margin:0 auto}
.club-duo__tile{margin-bottom:16px}
/* dark fade behind the text only (bottom of the photo), so it reads on the bright floor */
.club-tour__item::after{content:'';position:absolute;left:0;right:0;bottom:0;height:55%;background:linear-gradient(0deg,rgba(10,14,26,.82) 0%,rgba(10,14,26,.45) 45%,rgba(10,14,26,0) 100%);pointer-events:none;z-index:1}
.club-tour__copy{z-index:2}
@media (max-width:1000px){.club-cards--detail{grid-template-columns:1fr}}
@media (max-width:640px){.club-cards--detail{grid-template-columns:1fr}}
.club-cards--detail .club-card{min-height:0;height:auto;justify-content:space-between}
.club-card__list{display:flex;flex-direction:column;margin-top:22px;border-top:1px solid rgba(255,255,255,.1)}
.club-card__list span{font-size:13px;line-height:1.45;color:rgba(255,255,255,.78);padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.club-cards--detail a.club-card__arrow{margin-top:22px;text-decoration:none}
.club-recovery{position:relative;overflow:hidden;background:#0A0E1A;text-align:center;padding:110px 24px 120px}
.club-recovery__bg{position:absolute;inset:0;z-index:0}
.club-recovery__bg img{width:100%;height:100%;object-fit:cover;opacity:.14;filter:saturate(.7)}
.club-recovery__bg::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0A0E1A 0%,rgba(10,14,26,0) 30%,rgba(10,14,26,0) 70%,#0A0E1A 100%)}
.club-recovery__inner{position:relative;z-index:1;max-width:1240px;margin:0 auto}
.club-recovery .classes-featured__title{margin-bottom:48px}
.club-recovery__list{list-style:none;margin:0 0 52px;padding:0;display:flex;justify-content:center;flex-wrap:wrap}
.club-recovery__list li{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;font-size:30px;color:#fff;padding:6px 34px;border-left:1px solid rgba(255,255,255,.22);line-height:1.2}
.club-recovery__list li:first-child{border-left:0}
@media (max-width:900px){.club-recovery{padding:72px 16px 80px}.club-recovery__list{flex-direction:column;align-items:center;gap:0}.club-recovery__list li{border-left:0;border-top:1px solid rgba(255,255,255,.14);padding:14px 0;width:100%;max-width:320px;font-size:26px}.club-recovery__list li:first-child{border-top:0}}
.club-visit{background:#0A0E1A;color:#fff;padding:90px 20px 100px}
.club-visit__panel{max-width:1240px;margin:0 auto;background:#141B2D;border-radius:16px;padding:40px 48px;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.06);display:grid;grid-template-columns:1fr 1.15fr 1.25fr;gap:48px;align-items:center;text-align:left}
.club-visit__panel::before{content:'';position:absolute;left:0;right:0;top:0;height:4px;background:var(--light-blue,#9AB4D4)}
.club-visit__title{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;font-size:44px;line-height:1.05;color:#fff;margin:10px 0 0}
.club-visit__hours{list-style:none;margin:0;padding:0}
.club-visit__hours li{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.14);font-size:15px;color:rgba(255,255,255,.8)}
.club-visit__hours li:first-child{border-top:1px solid rgba(255,255,255,.14)}
.club-visit__hours li span{color:#fff;letter-spacing:.04em}
.club-visit__addr{margin:0;font-size:14px;line-height:1.8;color:rgba(255,255,255,.8)}
.club-visit__addr a{color:#fff;text-decoration:none}
.club-visit__links{display:flex;gap:24px;margin:12px 0 0}
.club-visit__links a{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:6px;border:0 !important;padding:0}
.club-visit__links a::after,.club-visit__links a::before{display:none !important}
@media (max-width:1000px){.club-visit__panel{grid-template-columns:1fr;gap:28px;text-align:center;max-width:480px}.club-visit__links{justify-content:center}}
@media (max-width:700px){.club-visit{padding:56px 16px 64px}.club-visit__panel{padding:38px 22px 32px}.club-visit__title{font-size:34px;margin-bottom:24px}.club-visit__hours li{font-size:14px}.club-visit__links{gap:20px}}
.club-map{background:#0A0E1A !important;color:#fff}
.club-map__embed{border:1px solid rgba(255,255,255,.14) !important}
.club-map .eyebrow{color:rgba(255,255,255,.6) !important}
.club-map__title{color:#fff !important}
.club-map__title em{color:var(--light-blue,#9AB4D4) !important}
.club-map__directions a{color:#fff !important;border-bottom-color:rgba(255,255,255,.45) !important}
.club-map__directions a:hover{color:var(--light-blue,#9AB4D4) !important}

/* ---------- 2026-11-11, contrast on phones (WCAG 1.4.3) ---------- */
/* Measured on the Pelham court tile at phone widths: "Contact the club with questions" was 2.8:1 against the
   light wall of the court at 390px and 1.5:1 at 320px, where the title wraps and pushes the line below the
   fade (small text needs 4.5:1; on a computer it measures 5.3:1 and is unchanged). On a phone the same soft
   fade now runs the height of the tile and is a little deeper where the words sit. */
@media (max-width:700px){.club-duo .club-duo__tile::after{height:100%;background:linear-gradient(180deg,rgba(10,14,26,.86) 0%,rgba(10,14,26,.7) 45%,rgba(10,14,26,.34) 78%,rgba(10,14,26,0) 100%)}}
/* On the narrowest phones (320px) the 40px title wrapped to two lines and pushed the line under it further down. */
@media (max-width:360px){.club-duo .club-duo__tile .club-tour__copy h3{font-size:30px}}

/* ---------- 2026-11-11, hours panel on a tablet ---------- */
/* Between 1001 and about 1100px wide (an iPad on its side) "Directions" and "Contact the Club" did not fit
   side by side in the third column and each arrow dropped onto a line of its own, with its own underline. A link
   now stays in one piece, the two sit a little closer at those widths so they still share a line, and if they
   ever do not fit, the second moves under the first. */
.club-visit__links{flex-wrap:wrap;row-gap:0}
.club-visit__links a{white-space:nowrap}
@media (min-width:1001px) and (max-width:1160px){.club-visit__links{column-gap:16px}.club-visit__links a{letter-spacing:.15em}}

/* ---------- added 2026-11-11 for the other clubs ---------- */

/* The address line under the hero buttons wraps on a phone. The part in a <span> (zip code and phone number)
   stays together, so the dot between them never ends a line. */
.club-hero__addr span{white-space:nowrap}

/* Photos and renderings use the same tiles as the clips (Thornwood, Port Chester). */
.club-tour__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* A hero that is a still picture (Port Chester's lobby rendering) is brighter near the top than the gym clips:
   the "Coming Soon" line measured 4.1:1 at tablet widths with a ceiling lamp behind it. A little more of the
   same navy at the top of the picture. */
.hero--club .hero__bg--photo::before{background:linear-gradient(180deg,rgba(10,14,26,.52) 0%,rgba(10,14,26,.88) 100%)}

/* Two picture tiles side by side (.club-duo--pair), where Pelham has the court beside the pickleball panel.
   Renderings and brighter clips need a deeper, taller fade behind the words than the court does, and on a
   phone the title is a size smaller so it stays on one line and the line under it stays inside the fade. */
.club-duo--pair .club-duo__tile::after{height:64%;background:linear-gradient(180deg,rgba(10,14,26,.9) 0%,rgba(10,14,26,.74) 38%,rgba(10,14,26,.32) 72%,rgba(10,14,26,0) 100%)}
@media (max-width:700px){
  .club-duo--pair .club-duo__tile .club-tour__copy{left:20px;right:20px;top:24px}
  .club-duo--pair .club-duo__tile .club-tour__copy h3{font-size:30px;margin-bottom:8px}
  .club-duo--pair .club-duo__tile::after{height:80%}
}

/* Stacked tiles with longer titles than Pelham's (.club-tour--wrap on the section): on a phone the title
   wraps to two or three lines and climbs above the fade, so there the fade reaches higher. Computers unchanged. */
@media (max-width:700px){.club-tour--wrap .club-tour__item::after{height:90%;background:linear-gradient(0deg,rgba(10,14,26,.88) 0%,rgba(10,14,26,.7) 50%,rgba(10,14,26,.3) 82%,rgba(10,14,26,0) 100%)}}

/* Stacked tiles whose picture is bright where the words sit (Port Chester's renderings): the same fade as the
   other tiles, deeper and taller. On a phone the title wraps to two lines, so the fade reaches higher still. */
.club-tour__item--bright::after{height:66%;background:linear-gradient(0deg,rgba(10,14,26,.86) 0%,rgba(10,14,26,.58) 46%,rgba(10,14,26,.16) 80%,rgba(10,14,26,0) 100%)}
@media (max-width:700px){.club-tour__item--bright::after{height:90%;background:linear-gradient(0deg,rgba(10,14,26,.88) 0%,rgba(10,14,26,.68) 52%,rgba(10,14,26,.24) 84%,rgba(10,14,26,0) 100%)}}

/* Detail cards written as a heading, a line and a real list (the cards themselves are not links). */
.club-cards--detail .club-card{cursor:default}
.club-cards--detail .club-card a{cursor:pointer}
ul.club-card__list{list-style:none;padding:0}
.club-card__list li{font-size:13px;line-height:1.45;color:rgba(255,255,255,.78);padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08)}
/* On a phone the shared card puts its link beside the text (made for the Locations cards). A card with a list
   and a longer link keeps the list at full width and the link under it (.club-card--stack). */
@media (max-width:520px){
  .club-cards--detail .club-card--stack{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0}
}

/* One line under the title of the classes band (Port Chester, where there is no schedule to link to yet). */
.club-classes__line{max-width:44ch;margin:-14px auto 34px;font-size:16px;line-height:1.6;color:rgba(255,255,255,.86)}
@media (max-width:700px){.club-classes__line{font-size:15px;margin:-8px auto 26px}}

/* A longer recovery list (Port Chester has six): three to a row with the dividers lined up, instead of
   wrapping wherever the words run out. Phones keep the one-column list above. */
@media (min-width:901px){
  .club-recovery__list--long{display:grid;grid-template-columns:repeat(3,auto);justify-content:center;row-gap:16px}
  .club-recovery__list--long li{font-size:26px;padding:6px 30px}
  .club-recovery__list--long li:nth-child(3n+1){border-left:0}
}

/* ---------- 2026-11-12, hero buttons on phones ---------- */
/* Measured on Pelham, Yorktown, Somers and Thornwood: on a phone the two hero buttons stack in a 320px column,
   but both are as wide as the longer label ("Redeem a Complimentary Day Pass", 344px). So they sat 24px to the
   right of centre (35px of space on the left, 11px on the right at 390px), ran 4px past the edge of a 360px
   screen and lost their last 40px on a 320px one. Port Chester's shorter second button was fine.
   The column is now as wide as the buttons, so they are centred. From 389px down the lettering is a little
   tighter so the long label still fits on one line (375px and 360px phones), and on the narrowest phones it
   may wrap onto two lines instead of being cut off. Nothing changes above 600px. */
@media (max-width:600px){.hero--club .hero__pills{max-width:344px}}
@media (max-width:389px){.hero--club .hero__pills .pill{letter-spacing:.16em;padding:0 16px}}
@media (max-width:354px){.hero--club .hero__pills .pill{max-width:100%;height:auto;min-height:40px;padding:8px 16px;white-space:normal;text-align:center;line-height:1.35}}
