/* v1.28.2: responsive correction only; existing visual design is preserved. */
.public-body,.admin-body{max-width:100%;}
.public-body .topbar,.admin-body .topbar{max-width:100%;}
.play-hero{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr)}
.play-hero-copy,.play-section,.play-club-card,.play-event-card,.play-news-card{min-width:0}
.play-club-card strong,.play-club-card small,.play-event-card h3{overflow-wrap:anywhere}
@media (min-width:1051px) and (max-width:1370px){
  .public-body .topbar,.admin-body .topbar{padding-left:24px;padding-right:24px;gap:12px}
  .public-body .topbar nav{gap:0}
  .public-body .topbar nav>a{padding:9px 10px;font-size:15px}
  .public-body .topbar nav>a[href="/lid-worden.php"]{padding:11px 15px}
  .public-body .brand{font-size:18px;gap:8px}
  .public-body .brandmark,.public-body .brand-logo{width:58px}
  .play-club-card{grid-template-columns:68px minmax(0,1fr) 32px;gap:10px;padding:16px}
  .play-club-art{width:66px;height:66px}
  .play-club-art img{width:46px;height:46px}
  .play-club-card strong{font-size:18px}
  .play-club-card>b{width:32px;height:32px}
}
/* Navigation switches to the existing accessible hamburger earlier, before it overflows. */
@media (min-width:1051px) and (max-width:1220px){
  .public-body .topbar,.admin-body .topbar{position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;background:#fff}
  .public-body .topbar .brand,.admin-body .topbar .brand{min-width:0;max-width:calc(100% - 126px)}
  .mobile-nav-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin-left:auto;padding:11px 17px;border:0;border-radius:999px;background:#07583d;color:#fff;font:800 14px 'DM Sans',sans-serif;cursor:pointer;flex:0 0 auto}
  .public-body .topbar nav#site-navigation,.admin-body .topbar nav#site-navigation{display:none;width:100%;flex:0 0 100%;margin:4px 0 10px;padding:12px;max-height:calc(100dvh - 105px);overflow-y:auto;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;border:1px solid #e1ecd6;border-radius:22px;background:#f1f9e4}
  .public-body .topbar nav#site-navigation.is-open,.admin-body .topbar nav#site-navigation.is-open{display:flex}
  .topbar nav#site-navigation>a{display:flex;align-items:center;min-height:44px;padding:12px 16px;border-radius:13px;background:transparent;color:#07583d}
  .public-body .topbar nav#site-navigation>a[href="/lid-worden.php"]{background:#07583d;color:#fff;justify-content:center}
}
@media (min-width:761px) and (max-width:1220px){
  .play-hero-copy{padding-left:clamp(26px,4vw,64px);padding-right:24px}
  .play-hero h1{font-size:clamp(37px,4vw,52px)}
  .play-section{padding-left:24px;padding-right:24px}
}
@media (min-width:761px) and (max-width:1100px){
  .play-club-grid,.play-event-grid,.play-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .play-hero h1{font-size:clamp(34px,8vw,47px)}
  .play-club-card{grid-template-columns:72px minmax(0,1fr) 34px;gap:12px;padding:16px}
  .play-club-art{width:68px;height:68px}
  .play-club-art img{width:48px;height:48px}
  .play-club-card strong{font-size:19px}
  .play-club-card>b{width:32px;height:32px}
}

/* v1.28.3: mobile hero must stack; override the v1.28.2 desktop grid rule. */
@media (max-width:760px){
  .public-body .play-hero{display:grid;grid-template-columns:minmax(0,1fr);height:auto;min-height:0;width:100%;max-width:100%;overflow:hidden}
  .public-body .play-hero-copy{min-width:0;width:100%;padding:30px 22px 26px;grid-column:1}
  .public-body .play-hero h1{font-size:clamp(32px,9vw,45px);line-height:1.12;max-width:100%;overflow-wrap:normal;word-break:normal}
  .public-body .play-hero-copy>p{font-size:clamp(16px,4.2vw,19px);line-height:1.55;max-width:100%;overflow-wrap:normal;word-break:normal}
  .public-body .play-actions{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:12px}
  .public-body .play-actions .play-button{display:flex;justify-content:center;align-items:center;width:100%;min-width:0;white-space:normal;text-align:center;padding:14px 16px}
  .public-body .play-hero-image{grid-column:1;position:relative;display:block;width:100%;height:auto;aspect-ratio:4/3;min-width:0;margin:0;border-radius:28px 28px 0 0}
  .public-body .play-hero-image img{width:100%;height:100%;object-fit:cover}
  .public-body .topbar{align-items:center;flex-wrap:wrap;gap:8px;padding:10px 14px}
  .public-body .topbar .brand{flex:1 1 0;min-width:0;max-width:none;gap:8px;font-size:clamp(13px,3.6vw,18px)}
  .public-body .topbar .brand span:last-child{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .public-body .topbar .brandmark,.public-body .topbar .brand-logo{flex:0 0 45px;width:45px;height:45px}
  .public-body .topbar .mobile-nav-toggle{flex:0 0 auto;margin-left:0;padding:10px 12px;font-size:13px}
  .public-body .play-club-grid,.public-body .play-event-grid,.public-body .play-news-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px){
  .public-body .topbar .mobile-nav-toggle{gap:6px;padding:9px 10px}
  .public-body .topbar .brandmark,.public-body .topbar .brand-logo{flex-basis:38px;width:38px;height:42px}
  .public-body .play-hero-copy{padding-left:18px;padding-right:18px}
}

/* v1.28.4: prevent mobile horizontal overflow at its layout sources. */
@media (max-width:760px){
  html,body.public-body{width:100%;min-width:0;margin:0}
  .public-body .site-shell,.public-body main,.public-body .play-hero,
  .public-body .play-section,.public-body .play-club-grid,
  .public-body .play-event-grid,.public-body .play-news-grid{
    width:100%;max-width:100%;min-width:0;
  }
  .public-body .topbar{width:100%;min-width:0;max-width:100%;padding-left:14px;padding-right:14px}
  .public-body .topbar .brand{min-width:0;flex:1 1 0;max-width:calc(100% - 100px)}
  .public-body .topbar .brand span:last-child{min-width:0;max-width:100%}
  .public-body .play-hero{grid-template-columns:minmax(0,1fr)}
  .public-body .play-hero-copy,.public-body .play-hero-image{min-width:0;max-width:100%;box-sizing:border-box}
  .public-body .play-hero-image img{max-width:100%}
  .public-body .play-section{padding-left:18px;padding-right:18px;box-sizing:border-box}
  .public-body .play-section-head,.public-body .play-actions{min-width:0;max-width:100%}
  .public-body .play-section-head>a{max-width:100%;white-space:normal}
  .public-body .play-club-card{grid-template-columns:68px minmax(0,1fr) 32px;min-width:0;max-width:100%;gap:10px;padding:14px}
  .public-body .play-club-art{width:64px;height:64px}
  .public-body .play-club-art img{width:44px;height:44px;max-width:100%}
  .public-body .play-club-card strong,.public-body .play-club-card small{min-width:0;overflow-wrap:break-word}
  .public-body .play-event-card{grid-template-columns:66px minmax(0,1fr);min-width:0;max-width:100%;gap:12px;padding:14px}
  .public-body .play-event-card time{width:66px;min-width:0}
  .public-body .play-event-card>div{min-width:0}
  .public-body .play-news-card,.public-body .play-extra-card{min-width:0;max-width:100%}
  .public-body img,.public-body video,.public-body iframe{max-width:100%}
  .public-body .content-card,.public-body .event-list,.public-body .hero.compact{max-width:100%;min-width:0}
  .public-body .page-layout,.public-body .builder-columns{min-width:0;max-width:100%}
  .public-body .table-wrap{max-width:100%;overflow-x:auto}
  .public-body footer{max-width:calc(100% - 36px);min-width:0;flex-wrap:wrap;gap:12px}
}
@media(max-width:360px){
  .public-body .play-section{padding-left:12px;padding-right:12px}
  .public-body .play-club-card{grid-template-columns:56px minmax(0,1fr) 28px;gap:8px;padding:12px}
  .public-body .play-club-art{width:54px;height:54px}
  .public-body .play-club-art img{width:38px;height:38px}
  .public-body .play-club-card strong{font-size:17px}
}

/* v1.28.5: hero is edge-to-edge, without white decorative gaps. */
.public-body .play-hero{max-width:none;width:100%;margin-left:0;margin-right:0;}
.public-body .play-hero::after{content:"";display:block;position:absolute;left:0;right:0;bottom:-1px;height:clamp(22px,3vw,40px);background:#fff;z-index:3;pointer-events:none;clip-path:polygon(0 44%,8% 27%,18% 51%,29% 30%,41% 58%,53% 34%,65% 56%,78% 29%,90% 52%,100% 35%,100% 100%,0 100%);}
.public-body .play-hero-image{background:var(--play-cream);}
.public-body .play-hero-image img{display:block;width:100%;height:100%;object-fit:cover;}
@media(max-width:1100px){
  .public-body .play-hero-image{border-radius:0;margin:0;}
}
@media(max-width:760px){
  .public-body .play-hero{gap:0;padding:0;}
  .public-body .play-hero-image{border-radius:0;aspect-ratio:4/3;overflow:hidden;}
}

/* v1.28.6: mobile navigation stays below the header; membership CTA last in menu. */
@media (max-width:1220px){
  .public-body .topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    column-gap:10px;
    row-gap:0;
    height:auto;
  }
  .public-body .topbar .brand{grid-column:1;grid-row:1;min-width:0;max-width:100%;}
  .public-body .topbar .mobile-nav-toggle{grid-column:2;grid-row:1;margin:0;justify-self:end;}
  .public-body .topbar nav#site-navigation{
    grid-column:1 / -1;
    grid-row:2;
    width:100%;min-width:0;max-width:100%;
    margin:0;padding:0;border:0;
    display:none;position:static;float:none;
    flex-direction:column;align-items:stretch;
    box-sizing:border-box;
  }
  .public-body .topbar nav#site-navigation.is-open{
    display:flex;
    margin-top:12px;padding:12px;
    border:1px solid #e1ecd6;
    border-radius:22px;
  }
  .public-body .topbar nav#site-navigation>a[href="/lid-worden.php"]{
    order:999;
    position:static;
    display:flex;
    width:100%;max-width:100%;
    margin:8px 0 0;
    justify-content:center;
    text-align:center;
    white-space:normal;
    box-sizing:border-box;
  }
}

/* v1.28.7: single mobile menu layout at all widths <= 1220px.
   Keep the membership link INSIDE the opened menu, never beside the toggle. */
@media (max-width:1220px) {
  body.public-body > header.topbar {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto auto;
    height:auto !important;
    min-height:0;
    align-items:center;
    column-gap:10px;
    row-gap:0;
  }
  body.public-body > header.topbar > a.brand {
    grid-column:1;grid-row:1;min-width:0;max-width:100%;
  }
  body.public-body > header.topbar > button.mobile-nav-toggle {
    display:inline-flex !important;
    grid-column:2;grid-row:1;
    justify-self:end;position:static;margin:0;
  }
  body.public-body > header.topbar > nav#site-navigation {
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    display:none !important;
    position:static !important;
    float:none !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    flex:initial !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    gap:5px;
    overflow-x:hidden;
    box-sizing:border-box;
  }
  body.public-body > header.topbar > nav#site-navigation.is-open {
    display:flex !important;
    margin-top:12px !important;
    padding:12px !important;
    border:1px solid #e1ecd6;
    border-radius:22px;
  }
  body.public-body > header.topbar > nav#site-navigation > a[href="/lid-worden.php"] {
    display:flex !important;
    position:static !important;
    order:999;
    align-self:stretch;
    width:100% !important;
    max-width:100% !important;
    margin:8px 0 0 !important;
    padding:13px 18px !important;
    box-sizing:border-box;
    text-align:center;
    justify-content:center;
  }
}

/* v1.28.8: preserve playful scalloped bottom edge on narrow screens. */
@media(max-width:760px){.public-body .play-hero::after{height:25px;clip-path:polygon(0 40%,10% 23%,20% 48%,30% 28%,40% 54%,50% 31%,60% 51%,70% 25%,80% 52%,90% 30%,100% 43%,100% 100%,0 100%)}}
