
:root{
  --navy:#071521;
  --navy-soft:#0b1d2b;
  --navy-deep:#05111a;
  --surface:#0d2232;
  --surface-2:#102738;
  --surface-3:#132d40;
  --ink:#edf3f8;
  --muted:#b5c5d2;
  --line:rgba(255,255,255,.12);
  --accent:#dce8f1;
  --accent-soft:#8fc8ef;
  --red:#b63b3b;
  --max:1260px;
  --shadow:0 20px 45px rgba(0,0,0,.24);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--navy);color:var(--ink);font:16px/1.65 Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;display:block}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:2px solid #fff;outline-offset:4px}
p{margin-top:0;color:var(--muted)}
h1,h2,h3,h4{margin-top:0;line-height:1.05;letter-spacing:-.055em}
h1{font-size:clamp(3rem,7vw,6.1rem);font-weight:800}
h2{font-size:clamp(2rem,4vw,3.8rem);font-weight:780}
h3{font-size:1.35rem;font-weight:750}
small{font:inherit}
.wrap{width:min(var(--max),calc(100% - 48px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(7,21,33,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.header-inner{height:92px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;min-width:0;white-space:nowrap}
.brand img{width:58px;height:58px;object-fit:cover;border-radius:50%;border:2px solid rgba(255,255,255,.72);padding:3px;background:#05101a;box-shadow:0 0 0 6px rgba(255,255,255,.07), 0 18px 30px rgba(0,0,0,.28)}
.brand-title{font-weight:800;letter-spacing:.045em;font-size:1.05rem;line-height:1.2;min-width:0}
.brand-title small{display:block;font-size:.76rem;letter-spacing:.19em;color:#d7e4ed;margin-top:5px;font-weight:500}
.site-nav{display:flex;align-items:center;gap:28px}
.site-nav a{text-decoration:none;color:#c7d5df;font-size:1.02rem;font-weight:500;padding:14px 0;position:relative}
.site-nav a::after{content:'';position:absolute;left:0;right:0;bottom:8px;height:2px;background:transparent;transition:background .2s,transform .2s;transform:scaleX(.6)}
.site-nav a:hover{color:#fff}.site-nav a[aria-current=page]{color:#fff}.site-nav a[aria-current=page]::after{background:#fff;transform:scaleX(1)}
.menu-toggle{display:none;background:transparent;border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:0;padding:10px 13px;font:inherit;cursor:pointer}
.eyebrow{display:inline-block;color:#c7d8e4;text-transform:uppercase;letter-spacing:.18em;font-size:.8rem;font-weight:700}
.lead{font-size:clamp(1.1rem,1.8vw,1.42rem);line-height:1.7;color:#d7e4ed}
.section{padding:84px 0}
.section + .section{border-top:1px solid var(--line)}
.section-header{margin-bottom:30px}
.section-header p{max-width:760px}
.button-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;text-decoration:none;border:1px solid rgba(255,255,255,.28);font-weight:700;border-radius:0;transition:transform .18s,background .18s,color .18s}
.btn:hover{transform:translateY(-2px)}
.btn.primary{background:#edf4f8;color:#06111b;border-color:#edf4f8}
.btn.primary:hover{background:#fff}
.btn.secondary{background:transparent;color:#fff}
.btn.secondary:hover{background:#152838}
.note-card,.info-card,.card,.membership-item,.team-board,.event-card,.news-card,.shop-panel,.special-card{background:var(--surface);border:1px solid var(--line);box-shadow:none}
.home-intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:42px;align-items:end;padding:36px 0 10px}
.home-intro h1{margin:12px 0 0;max-width:720px}
.home-intro-copy .lead{max-width:760px;margin:18px 0 0}
.home-note{padding:26px;background:linear-gradient(180deg,#0a1d2b,#091823);border:1px solid var(--line);align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end}
.home-note h3{font-size:1.2rem;margin-bottom:12px}
.home-note p{margin-bottom:0}
.chip-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.chip{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid rgba(255,255,255,.18);font-size:.83rem;color:#d9e5ee;background:rgba(255,255,255,.03)}
.tile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,1fr);aspect-ratio:1.98;gap:6px;margin:20px 0 78px}
.tile{display:flex;align-items:flex-end;position:relative;overflow:hidden;text-decoration:none;padding:22px;isolation:isolate;background:#122333}
.tile::before{content:'';position:absolute;inset:0;background-image:linear-gradient(0deg,rgba(4,12,19,.9),rgba(4,12,19,.18) 68%),var(--photo);background-size:cover;background-position:center;z-index:-2;transition:transform .45s ease}
.tile::after{content:'';position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(0deg,rgba(4,12,19,.92),rgba(4,12,19,0));z-index:-1}
.tile:hover::before{transform:scale(1.035)}
.tile .arrow{position:absolute;top:14px;right:14px;border:1px solid rgba(255,255,255,.55);width:34px;height:34px;display:grid;place-items:center;color:#fff;font-size:1.12rem}
.tile h2,.tile h3{margin:0;color:#fff}
.tile h2{font-size:clamp(2.1rem,4.2vw,4.2rem)}
.tile h3{font-size:clamp(1.08rem,1.5vw,1.55rem)}
.tile p{margin:5px 0 0;color:#eff4f8;font-size:.84rem}
.tile.feature{grid-column:1 / span 2;grid-row:1 / span 3;padding:36px}
.tile-membership{grid-column:3 / span 2;grid-row:1}
.tile-teams{grid-column:3;grid-row:2}
.tile-news{grid-column:4;grid-row:2}
.tile-sponsors{grid-column:3;grid-row:3}
.tile-shop{grid-column:4;grid-row:3}
.tile-welcome::before{background-position:center 54%}
.tile-membership::before{background-position:center 72%}
.tile-teams::before{background-position:center 18%}
.tile-news::before{background-position:center}
.tile-sponsors::before{background-position:center}
.tile-shop::before{background-position:center 55%}
.home-values{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);gap:46px;align-items:center}
.home-values h2{margin:14px 0 16px;max-width:760px}
.fact-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:28px}
.fact{padding:16px 18px;background:#0a1925;border:1px solid var(--line)}
.fact strong{display:block;color:#fff;font-size:1rem;margin-bottom:5px}
.fact span{color:var(--muted);font-size:.92rem}
.affiliation-card{display:grid;gap:22px;padding:30px;background:linear-gradient(180deg,#0c1d2b,#0a1620);border:1px solid var(--line)}
.affiliation-logo{background:#f3f5f7;display:grid;place-items:center;padding:24px;min-height:200px}
.affiliation-logo img{max-width:200px;object-fit:contain}
.affiliation-copy h3{margin-bottom:10px}
.page-banner{height:clamp(310px,38vw,520px);display:flex;align-items:flex-end;background-image:linear-gradient(0deg,rgba(7,21,33,.92),rgba(7,21,33,.10) 82%),var(--banner);background-size:cover;background-position:center;padding:38px 0}
.page-banner h1{margin:0}
.page-banner.team-banner{background-position:center 22%}
.split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:60px;align-items:center}
.full-image{width:100%;height:100%;min-height:340px;object-fit:cover}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:44px}
.stat{padding:18px 0 0;border-top:1px solid rgba(255,255,255,.6);text-align:center}
.stat strong{display:block;font-size:clamp(2.6rem,5vw,4rem);line-height:1;color:#fff}
.stat span{display:block;color:var(--muted);margin-top:8px}
.special-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.special-card{padding:24px;display:flex;gap:18px;flex-direction:column}
.special-card .eyebrow{font-size:.72rem;color:#a9cae0}
.special-card p{margin:0}
.visit-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:26px;align-items:start}
.notice-panel{padding:22px;background:#0b1b27;border-left:3px solid #fff}
.notice-panel p{margin-bottom:0}
.location-block{padding:26px;background:#0d2232;border:1px solid var(--line)}
.location-list{display:grid;gap:12px;margin:18px 0 0}
.location-item{padding-top:12px;border-top:1px solid rgba(255,255,255,.1)}
.location-item strong{display:block;color:#fff;margin-bottom:4px}
.membership-intro{max-width:900px}
.membership-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:38px 0 22px}
.membership-item{padding:26px 24px;background:linear-gradient(180deg,#0e2130,#0a1a26);display:flex;flex-direction:column;gap:8px;border-top:2px solid rgba(255,255,255,.55)}
.membership-item .plan{font-size:1rem;color:#cdd9e3;font-weight:700;text-transform:uppercase;letter-spacing:.11em}
.membership-item .price{font-size:clamp(2rem,4vw,3.3rem);font-weight:800;line-height:1;color:#fff}
.membership-item .price small{font-size:1rem;letter-spacing:normal;color:#dbe7ef}
.membership-item p{margin:4px 0 0}
.membership-benefit{padding:18px 20px;background:#0e2434;border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0 0}
.membership-benefit strong{font-size:1rem;color:#fff}
.feature-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:26px}
.feature-mini{padding:20px;background:#0b1c29;border:1px solid var(--line)}
.feature-mini h3{font-size:1.06rem;margin-bottom:8px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.grid.two,.current-sponsors,.sponsor-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.card,.news-card,.shop-panel{padding:26px}
.card.large{padding:30px}
.current-sponsor-card{align-items:center;text-align:center}.current-sponsor-logo{height:230px;object-fit:contain;background:#fff;padding:22px}
.news-feature{display:grid;grid-template-columns:1fr 1.1fr;gap:28px;align-items:center}.news-feature-media img{height:285px;object-fit:cover}
.news-feature-content{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.news-tag,.sponsor-level{color:#a8d4ed;text-transform:uppercase;font-weight:700;font-size:.72rem;letter-spacing:.12em}
.event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.event-card{padding:0;overflow:hidden;display:flex;flex-direction:column;position:relative}
.event-image{height:190px;object-fit:cover;width:100%;background:#f2f4f5}
.event-body{padding:22px 22px 24px}
.event-meta{font-size:.9rem;color:#d7e4ed;margin-bottom:8px;font-weight:600}
.event-status{position:absolute;top:14px;left:14px;background:rgba(7,21,33,.88);color:#fff;padding:7px 10px;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;border:1px solid rgba(255,255,255,.22)}
.event-card.is-past{opacity:.58;filter:saturate(.7)}
.event-card.is-past .event-status{background:rgba(80,90,99,.9)}
.event-card.is-past .btn.primary{background:#d7dfe6;color:#071521;border-color:#d7dfe6}
.shop-panel{display:grid;grid-template-rows:auto 1fr auto;gap:18px}
.shop-panel img{width:100%;height:240px;object-fit:cover;border:1px solid var(--line)}
.code-chip{display:inline-flex;align-items:center;padding:8px 12px;background:#0a1925;border:1px solid rgba(255,255,255,.17);font-weight:800;letter-spacing:.08em;margin-top:4px}
.notice{padding:18px 20px;border-left:3px solid #fff;background:#102738;color:#dbe6ef}
.notice p{margin:0}
.league-lockup{display:flex;align-items:center;gap:18px;margin:24px 0 10px}.league-lockup img{width:72px;height:72px;object-fit:contain}
.teams-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.team-board{padding:24px;display:grid;gap:16px;align-content:start}
.team-board h3{margin-bottom:0}
.team-division{color:#b8d5e7;text-transform:uppercase;letter-spacing:.11em;font-size:.78rem;font-weight:700}
.team-board .fixture-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.fixture-item{padding:14px 0;border-top:1px solid rgba(255,255,255,.1)}
.fixture-item:first-child{border-top:0;padding-top:0}
.fixture-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}
.fixture-date{font-size:.78rem;color:#a8bbca;text-transform:uppercase;letter-spacing:.09em}
.fixture-result{font-weight:800;font-size:.86rem}
.fixture-result.win{color:#b9e5bd}.fixture-result.loss{color:#f1c3c3}.fixture-result.draw{color:#f2e3b8}
.fixture-item h4{font-size:1rem;letter-spacing:-.02em;margin:0;color:#fff}
.fixture-meta{font-size:.88rem;color:var(--muted)}
.fixture-empty{padding:18px 0 0;border-top:1px solid rgba(255,255,255,.1);color:#c3d0da}
.public-note{margin-top:24px;padding:18px 20px;background:#0e2434;border:1px solid var(--line)}
.footer-inner{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}.site-footer{background:#06111b;border-top:1px solid var(--line);padding:44px 0;margin-top:48px}
.footer-inner a{display:block;text-decoration:none;color:var(--muted);margin:6px 0;font-size:.92rem}.footer-inner a:hover{color:#fff}
.footer-inner h4{color:#fff;font-size:.9rem;letter-spacing:.07em;margin-bottom:10px}.fine-print{border-top:1px solid var(--line);margin-top:30px;padding-top:18px;color:#93a5b3;font-size:.82rem}

@media (max-width:1100px){
  .site-nav{gap:18px}.site-nav a{font-size:.96rem}
  .tile-grid{aspect-ratio:1.72}
}
@media (max-width:920px){
  .home-intro,.home-values,.split,.visit-layout,.news-feature,.grid.two,.current-sponsors,.sponsor-section{grid-template-columns:1fr;gap:28px}
  .tile-grid{aspect-ratio:1.4}
  .grid,.event-grid,.feature-mini-grid,.membership-list,.teams-board,.stats,.special-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-note{align-self:auto}
}
@media (max-width:830px){
  .header-inner{height:78px}.brand-title{font-size:.95rem}.brand-title small{font-size:.67rem}
  .menu-toggle{display:block}
  .site-nav{display:none;position:absolute;left:0;right:0;top:77px;background:#081521;border-bottom:1px solid var(--line);padding:16px 24px;flex-direction:column;align-items:stretch;gap:0}
  .site-nav.open{display:flex}
  .site-nav a{padding:12px 6px}.site-nav a::after{display:none}.site-nav a[aria-current=page]{background:#132536}
}
@media (max-width:640px){
  .wrap{width:calc(100% - 30px)}
  .brand img{width:52px;height:52px}.brand-title{font-size:.86rem}.brand-title small{font-size:.62rem;letter-spacing:.15em}
  .home-intro{padding-top:22px}.home-intro h1{font-size:clamp(2.75rem,13vw,4rem)}
  .tile-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:280px 160px 165px 165px;aspect-ratio:auto;margin:22px 0 56px}
  .tile.feature{grid-column:1 / span 2;grid-row:1;padding:24px}
  .tile-membership{grid-column:1 / span 2;grid-row:2}
  .tile-teams{grid-column:1;grid-row:3}
  .tile-news{grid-column:2;grid-row:3}
  .tile-sponsors{grid-column:1;grid-row:4}
  .tile-shop{grid-column:2;grid-row:4}
  .tile{padding:16px}.tile .arrow{width:28px;height:28px;top:9px;right:9px}.tile h2{font-size:2.25rem}
  .fact-list,.grid,.event-grid,.feature-mini-grid,.membership-list,.teams-board,.stats,.special-grid,.footer-inner{grid-template-columns:1fr}
  .membership-benefit{display:block}.page-banner{height:260px}
  .button-row{flex-direction:column}.btn{width:100%}
  .section{padding:58px 0}
}
@media (prefers-reduced-motion: reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* v4: interaction, balance and accessibility refinements */
:root{color-scheme:dark}
body{overflow-x:hidden}
.wrap > *{min-width:0}
.site-header .brand:focus-visible{outline-offset:8px}
.site-nav a:not([aria-current=page]):hover::after{background:rgba(255,255,255,.42);transform:scaleX(1)}
.tile-grid{overflow:hidden}
.tile{min-height:0}
.tile:focus-visible{outline:3px solid #fff;outline-offset:-4px}
.tile h2,.tile h3,.tile p{position:relative;z-index:1;text-shadow:0 2px 16px rgba(0,0,0,.48)}
.home-intro{gap:26px;padding-top:28px}
.home-intro h1{font-size:clamp(2.9rem,5.7vw,5.25rem)}
.home-intro-copy .lead{font-size:clamp(1.04rem,1.5vw,1.22rem)}
.home-note{padding:22px}
.home-note h3{font-size:clamp(1.35rem,2vw,1.9rem);line-height:1.12}
.home-note p{font-size:.95rem}
.section-header{max-width:850px}
.special-card{position:relative;min-height:220px;padding:28px 30px;border-top:2px solid rgba(255,255,255,.42)}
.special-card h3{font-size:clamp(1.38rem,2vw,1.85rem)}
.special-card p{max-width:65ch}
.stat{min-width:0}
.stat span{font-size:.93rem}
.visit-layout .full-image{max-height:520px}
.news-feature{margin-top:22px}
.news-feature img{display:block;width:100%}
.news-feature-content h3{line-height:1.15}
.event-card.is-past{filter:grayscale(.7);opacity:.62}
.event-card.is-past .event-body .button-row:has(a[href*="forms.gle"]){display:none}
.shop-panel img{object-position:center 45%}
.shop-panel h3{margin-bottom:10px}
.shop-panel .button-row{margin-top:0}
.team-board h3{font-size:1.75rem}
.fixture-item{overflow-wrap:anywhere}
@media(max-width:1100px){.brand-title{font-size:.9rem}.site-nav{gap:16px}.site-nav a{font-size:.92rem}}
@media(max-width:920px){.home-intro{grid-template-columns:1fr}.home-note{max-width:none}.special-card{min-height:0}}
@media(max-width:640px){.site-header .brand-title{font-size:.72rem}.brand-title small{font-size:.55rem}.home-intro{padding-top:26px}.tile-grid{gap:5px}.tile h3{line-height:1.13}.tile p{line-height:1.3}.home-values .fact-list{grid-template-columns:1fr}.page-banner h1{font-size:clamp(2.4rem,10vw,4.5rem)}.special-card{padding:23px}.site-footer{margin-top:25px}}

/* Version 5 revisions */
.home-intro-simple{display:block;padding:22px 0 0;margin:0 0 14px}
.home-intro-simple h1{max-width:none;margin:0;font-size:clamp(2.5rem,5vw,5.6rem);line-height:1.08}
.affiliation-logo-refined{background:transparent;min-height:0;padding:0;justify-content:start}
.affiliation-logo-refined img{display:block;width:min(100%,245px);max-width:245px;aspect-ratio:1/1;object-fit:contain;border-radius:50%;mix-blend-mode:normal}
.affiliation-card{gap:16px;background:transparent;border:0;border-left:1px solid rgba(255,255,255,.25);padding:12px 14px 12px 32px}
.map-card{border:1px solid var(--line);overflow:hidden;background:#0e2231}
.map-card-header{color:#fff;font-weight:700;font-size:1rem;padding:14px 20px}
.map-frame{width:100%;height:100%;min-height:435px;display:block;border:0}
.visit-layout{grid-template-columns:1fr 1fr;align-items:stretch}
.visit-layout .location-block{height:100%}
#past-events-header{margin-top:58px}
.event-card.is-past{opacity:.55;filter:grayscale(.55)}
.shop-panel img{object-fit:contain;background:#e9ebef;height:300px}
.shop-panel{overflow:hidden}
.teams-board{align-items:start}
.team-board{min-height:300px}
.fixture-list{display:grid;gap:0!important}
.fixture-item{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.fixture-item:last-child{border-bottom:0}
.fixture-row{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:8px 0}
.fixture-opponent{display:flex;align-items:center;gap:10px;min-width:0;font-size:1rem;font-weight:700}
.fixture-opponent img{width:40px;height:40px;object-fit:contain;background:#fff;padding:4px;border-radius:50%;flex:none}
.fixture-result{font-weight:800;white-space:nowrap;flex:none}
.fixture-result.win{color:#9be4ba}.fixture-result.loss{color:#f0b4b4}.fixture-result.draw{color:#f3db97}
.fixture-result.pending{font-weight:500;color:#b0c1cf}
.fixture-meta{color:#b8cbd8;font-size:.8rem}
@media(max-width:920px){.visit-layout{grid-template-columns:1fr}.map-frame{height:390px;min-height:390px}}
@media(max-width:640px){.home-intro-simple h1{font-size:clamp(2.25rem,11vw,3.7rem)}.affiliation-card{border-left:0;border-top:1px solid var(--line);padding:24px 0}.shop-panel img{height:210px}.map-frame{height:330px;min-height:330px}}

/* Membership: three consistent, stacked club photographs */
.membership-photo-stack{display:grid;grid-template-columns:1fr;gap:10px;min-width:0;align-self:start}
.membership-photo-stack img{width:100%;height:180px;object-fit:cover;object-position:center 42%;border:1px solid rgba(255,255,255,.12)}
.membership-photo-stack img:nth-child(2){object-position:center 55%}
.membership-photo-stack img:nth-child(3){object-position:center 37%}
@media(min-width:1100px){.membership-photo-stack img{height:200px}}
@media(max-width:920px){.membership-photo-stack img{height:clamp(170px,26vw,260px)}}

/* V9 news and community refinements */
.news-custom-banner{background-size:cover;background-position:center center; background-color:#081521;}
.news-custom-banner h1{position:relative;text-shadow:0 3px 18px rgba(0,0,0,.65)}
.social-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.social-feature{display:grid;grid-template-columns:45% 55%;overflow:hidden;text-decoration:none;background:#0d2232;border:1px solid rgba(255,255,255,.14);min-height:285px;transition:border-color .2s,transform .2s}
.social-feature:hover{border-color:rgba(255,255,255,.5);transform:translateY(-3px)}
.social-feature img{height:100%;width:100%;object-fit:cover}
.instagram-feature img{object-position:50% 30%}
.social-feature-body{padding:24px;align-self:center}
.social-feature-body h3{font-size:clamp(1.35rem,2vw,2.1rem);margin:15px 0}
.social-feature-body p{font-size:.94rem}
.social-kicker{font-size:.72rem;letter-spacing:.13em;color:#bbd9ea;font-weight:750}
.social-cta{font-size:.85rem;font-weight:700;color:white;border-bottom:1px solid rgba(255,255,255,.5);padding-bottom:4px}
.social-disclaimer{font-size:.8rem;margin-top:16px}
@media(max-width:900px){.social-grid{grid-template-columns:1fr}}
@media(max-width:550px){.social-feature{grid-template-columns:1fr}.social-feature img{height:195px}.news-custom-banner{background-position:center}}

/* Social platform marks in header and news features */
.header-inner{gap:16px}
.header-social{display:flex;align-items:center;flex-shrink:0;gap:8px}
.header-social-link{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.035);transition:border-color .2s,background .2s}
.header-social-link:hover{background:#17344a;border-color:rgba(255,255,255,.75)}
.header-social-link img{width:17px;height:17px;object-fit:contain}
.social-feature .social-brand-image{height:100%;width:100%;min-height:285px;display:flex;align-items:center;justify-content:center;position:relative}
.social-feature .social-brand-image img{width:min(42%,130px);height:auto;max-height:140px;object-fit:contain;filter:drop-shadow(0 10px 22px rgba(0,0,0,.18))}
.social-brand-image.instagram-brand{background:linear-gradient(135deg,#833AB4 0%,#C13584 35%,#E1306C 60%,#FCAF45 100%)}
.social-brand-image.facebook-brand{background:linear-gradient(135deg,#0866FF,#154ca5)}
@media(max-width:1200px){.header-inner{gap:12px}.site-nav{gap:15px}}
@media(max-width:950px) and (min-width:831px){.brand-title small{font-size:.56rem}.brand-title{font-size:.8rem}.site-nav{gap:10px}.site-nav a{font-size:.82rem}}
@media(max-width:640px){.header-social{gap:5px}.header-social-link{width:30px;height:30px}.header-social-link img{width:16px;height:16px}.header-inner{gap:9px}.brand{gap:8px}.brand-title{max-width:150px;white-space:normal}.brand-title small{line-height:1.3}}
@media(max-width:550px){.social-feature .social-brand-image{height:195px;min-height:195px}.social-feature .social-brand-image img{max-height:100px}}

/* Version 13 final refinement */
.header-social-link:focus-visible,.social-feature:focus-visible{outline:2px solid #fff;outline-offset:3px}
.site-nav a,.header-social-link{touch-action:manipulation}
.news-feature-media img{object-fit:cover}
.event-card .event-body{overflow-wrap:break-word}
.event-card .button-row .btn{white-space:normal;text-align:center}
.event-card img.event-image[src*="womens-squash-taster"]{background:#f8b8b4;object-fit:contain;padding:0}
@media(min-width:831px) and (max-width:1050px){.header-inner{gap:8px}.site-nav{gap:10px}.site-nav a{font-size:.82rem}.brand-title{font-size:.76rem}.brand-title small{font-size:.57rem}.brand img{width:48px;height:48px}}
@media(max-width:830px){.header-inner{gap:10px}.site-nav{max-height:calc(100dvh - 78px);overflow-y:auto}.menu-toggle{margin-left:auto}.header-social{gap:7px}}
@media(max-width:400px){.brand-title{font-size:.69rem!important}.brand-title small{font-size:.51rem!important}.brand img{width:44px;height:44px}.header-social-link{width:28px;height:28px}.menu-toggle{padding:8px 9px;font-size:.82rem}}

/* v14: respect original News & Events artwork without obscuring or doubling its title */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.page-banner.news-custom-banner{display:block;width:100%;height:auto;min-height:0;aspect-ratio:1672/941;padding:0;background-image:url('assets/news-events-banner.webp');background-size:100% 100%;background-position:center;background-repeat:no-repeat}
/* Avoid cramped navigation and overlapping social buttons on medium screens. */
@media (max-width:1120px){.menu-toggle{display:block}.site-nav{display:none;position:absolute;left:0;right:0;top:calc(100% - 1px);background:#081521;border-bottom:1px solid var(--line);padding:16px 24px;flex-direction:column;align-items:stretch;gap:0;max-height:calc(100dvh - 78px);overflow-y:auto}.site-nav.open{display:flex}.site-nav a{padding:12px 6px}.site-nav a::after{display:none}.site-nav a[aria-current=page]{background:#132536}.menu-toggle{margin-left:auto}}

/* v15 mobile hardening — desktop rules unchanged */
@media (max-width: 640px) {
  html,body {max-width:100%;overflow-x:clip}
  .header-inner{min-width:0;gap:7px}
  .brand{min-width:0;flex:1 1 auto;gap:7px}
  .brand-title{min-width:0;max-width:none;overflow-wrap:normal;line-height:1.15;font-size:.72rem!important}
  .brand-title small{font-size:.52rem!important;letter-spacing:.09em}
  .brand img{width:43px;height:43px;flex-shrink:0}
  .menu-toggle{flex-shrink:0;white-space:nowrap;padding:8px 10px}
  .header-social{flex-shrink:0;gap:5px}
  .header-social-link{width:30px;height:32px;flex-shrink:0}
  .tile h3{overflow-wrap:break-word;font-size:clamp(1rem,4.1vw,1.35rem)}
  .tile p{font-size:.75rem}
  .tile-grid{grid-template-rows:280px 155px 170px 170px}
  .team-board,.event-card,.social-feature,.shop-panel{min-width:0}
  .membership-photo-stack img{width:100%;object-fit:cover}
  .page-banner.news-custom-banner{background-size:contain;aspect-ratio:1672/941;height:auto;min-height:0}
  .event-card .event-body{overflow-wrap:anywhere}
  .site-nav.open{box-shadow:0 18px 35px rgba(0,0,0,.42)}
}
@media (max-width: 375px) {
  .header-inner{gap:5px}
  .brand-title{font-size:.65rem!important}
  .brand-title small{font-size:.47rem!important;letter-spacing:.055em}
  .brand img{width:39px;height:39px}
  .header-social-link{width:28px;height:30px}
  .menu-toggle{padding:7px 8px;font-size:.8rem}
  .tile{padding:12px}
}


/* v16: Match-week view — all three club teams under the same fixture date. */
.matchweeks-board{display:grid;gap:20px;margin-top:28px}
.matchweek{background:var(--surface);border:1px solid var(--line);padding:22px;min-width:0}
.matchweek.is-past{border-color:rgba(255,255,255,.08)}
.matchweek-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-bottom:17px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:18px}
.matchweek-number{font-size:.7rem;color:#a6c6e0;letter-spacing:.14em;font-weight:800;margin-bottom:7px}
.matchweek-heading h3{font-size:1.35rem;margin:0;color:#fff;text-transform:capitalize}
.matchweek-status{white-space:nowrap;color:#bacbd8;font-size:.7rem;letter-spacing:.08em;font-weight:800}
.matchweek-fixtures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.matchweek-fixture{min-width:0;display:flex;flex-direction:column;gap:17px;background:rgba(3,15,27,.44);border:1px solid rgba(255,255,255,.1);padding:18px}
.matchweek-teamline{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.matchweek-teamline strong{color:#fff;font-size:1.02rem}
.matchweek-teamline span{color:#acc3d3;font-size:.75rem}
.matchweek-fixture .fixture-opponent{display:flex;align-items:center;gap:12px;color:#fff;font-weight:700;font-size:1rem;overflow-wrap:anywhere}
.matchweek-fixture .opponent-badge{height:44px;width:44px;object-fit:contain;background:#fff;border-radius:50%;padding:4px;flex:none}
.matchweek-fixture .opponent-monogram{width:44px;height:44px;border-radius:50%;background:#fff;color:#12283a;display:grid;place-items:center;font-weight:800;font-size:.85rem;flex:none}
.matchweek-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-top:auto}
.venue-home,.venue-away{font-size:.68rem;letter-spacing:.09em;font-weight:800;padding:5px 8px;border:1px solid #456b8c;color:#c6e5ff}
.venue-away{border-color:#7d8090;color:#c8c6d2}
.matchweek-fixture .fixture-result{font-size:.82rem}
@media(max-width:900px){.matchweek-fixtures{grid-template-columns:1fr}.matchweek-fixture{gap:12px}.matchweek-heading{align-items:flex-start}.matchweek-status{font-size:.65rem}}
@media(max-width:520px){.matchweek{padding:15px}.matchweek-heading{flex-direction:column;gap:9px}.matchweek-fixture{padding:14px}.matchweek-heading h3{font-size:1.2rem}}

/* v17 — membership value made prominent following committee feedback */
.membership-value{margin:30px 0 34px;padding:30px;border:1px solid #31516a;background:linear-gradient(135deg,#122e45,#0b2031);border-radius:10px}
.membership-value-title h3{margin:9px 0 9px;font-size:clamp(1.55rem,3vw,2.25rem);color:#fff;line-height:1.18}
.membership-value-title p{margin:0 0 23px;color:#d3e4ef}
.membership-value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.membership-value-item{border:1px solid #33516a;background:rgba(4,15,26,.48);padding:19px 17px;display:flex;align-items:flex-start;gap:12px;border-radius:6px}
.membership-value-symbol{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;background:#e2eef6;color:#0a2235;font-weight:800;border-radius:50%}
.membership-value-item strong{display:block;color:white;line-height:1.35;margin-bottom:7px}
.membership-value-item p{margin:0;color:#bfced9;font-size:.9rem;line-height:1.55}
.membership-pricing-heading{font-size:1.3rem;margin:8px 0 0;color:#fff}
.membership-pricing-heading + .membership-list{margin-top:18px}
.membership-price-note{color:#bccdda;margin:-1px 0 22px;font-size:.9rem}
@media(max-width:800px){.membership-value-grid{grid-template-columns:1fr}.membership-value{padding:22px 17px}.membership-value-item{padding:16px}}

/* v19: concise membership value proposition */
.membership-value--compact{margin:20px 0 24px;padding:22px 24px;border-color:#2b4d65;background:#0b2031}
.membership-value--compact .membership-value-title .eyebrow{font-size:.73rem;letter-spacing:.13em;color:#b9d4e8}
.membership-value--compact .membership-value-title h3{font-size:clamp(1.45rem,3.1vw,2.35rem);line-height:1.14;text-transform:uppercase;letter-spacing:.01em;margin:8px 0 7px;color:#fff}
.membership-value--compact .membership-value-title p{font-size:.96rem;line-height:1.5;margin:0 0 16px;color:#d5e4ef}
.membership-value--compact .membership-value-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.membership-value--compact .membership-value-item{padding:12px 14px;gap:11px;align-items:center;background:#112a3e;border-color:#29465b}
.membership-value--compact .membership-value-item strong{margin:0 0 3px;font-size:.96rem}
.membership-value--compact .membership-value-item p{font-size:.83rem;line-height:1.4}
.membership-value-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid #557c98;border-radius:7px;font-size:.85rem;font-weight:750;color:#d6e9f6}
.membership-value-icon--family{font-size:1.45rem;font-weight:400}
.membership-value--compact + .membership-pricing-heading{margin-top:0}
@media(max-width:600px){.membership-value--compact{padding:18px 16px;margin:17px 0 23px}.membership-value--compact .membership-value-grid{grid-template-columns:1fr}.membership-value--compact .membership-value-title h3{font-size:1.55rem}.membership-value--compact .membership-value-item{padding:11px 12px}}

/* v20: compact editorial membership statement - no check icons or benefit cards */
.membership-statement{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(245px,.85fr);gap:clamp(24px,4vw,54px);align-items:center;margin:20px 0 28px;padding:clamp(22px,3vw,36px);border-radius:10px;background:linear-gradient(110deg,#122f46 0%,#0d2335 70%);border:1px solid #35556d}
.membership-statement-main .eyebrow{font-size:.71rem;letter-spacing:.15em;color:#b2cfe4}
.membership-statement-main h3{color:#fff;font-size:clamp(1.8rem,3.3vw,3.1rem);letter-spacing:-.04em;line-height:1.08;margin:10px 0 13px;font-weight:800}
.membership-statement-main h3 em{font-style:normal;color:#a6d9f6}
.membership-statement-main p{margin:0;color:#d1e3ef;line-height:1.5;max-width:40ch;font-size:.98rem}
.membership-statement-facts{border-left:1px solid #406078;padding-left:clamp(20px,3vw,35px);display:grid;gap:18px}
.membership-statement-fact{display:flex;flex-direction:column;gap:4px}
.membership-statement-kicker{font-size:.67rem;letter-spacing:.15em;font-weight:750;color:#94b8d0}
.membership-statement-fact strong{font-size:1.05rem;color:#fff;line-height:1.3}
.membership-statement-fact>span:last-child{color:#c5d8e5;font-size:.87rem;line-height:1.45}
@media(max-width:700px){.membership-statement{grid-template-columns:1fr;gap:21px;padding:21px 19px}.membership-statement-main h3{font-size:2rem}.membership-statement-facts{border-left:0;border-top:1px solid #406078;padding-left:0;padding-top:17px;gap:14px;grid-template-columns:1fr 1fr}}
@media(max-width:420px){.membership-statement-facts{grid-template-columns:1fr;gap:13px}.membership-statement-main h3{font-size:1.85rem}}


/* v21: shared site content on all breakpoints; responsive presentation only. */
@media(max-width:640px){
  /* Make photographic links quicker to browse, without hiding any tiles. */
  .tile-grid{grid-template-rows:245px 135px 158px 158px;margin-bottom:28px}
  .tile.feature{padding:20px}
  .tile{padding:14px}
  .tile h2{font-size:clamp(1.8rem,8vw,2.15rem);line-height:1.08}
  .tile h3{font-size:clamp(.98rem,4vw,1.2rem)}
  .tile p{font-size:.78rem;line-height:1.3}
  /* Keep header controls clickable and prevent label from squeezing them out. */
  .header-inner{gap:7px}
  .brand{flex:1;min-width:0;gap:7px}
  .brand-title{min-width:0;max-width:145px;white-space:normal;font-size:.74rem}
  .brand-title small{font-size:.52rem;letter-spacing:.075em}
  .brand img{width:42px;height:42px;flex-shrink:0}
  .menu-toggle{white-space:nowrap;padding:8px 10px;font-size:.87rem}
  .header-social{gap:5px}
  .header-social-link{width:32px;height:36px}
  /* Mobile homepage: restore useful next-match information from published fixtures. */
  .mobile-next-matches{margin:0 0 36px;padding:18px 16px;border:1px solid #31516a;border-radius:14px;background:#112a3e}
  .mobile-next-top{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:14px}
  .mobile-next-top h2{font-size:1.6rem;margin:5px 0 0;line-height:1.1}
  .mobile-next-top .eyebrow{font-size:.63rem;letter-spacing:.10em}
  .mobile-next-top a{color:#d3e8fa;text-align:right;font-size:.74rem;text-decoration:underline;line-height:1.3}
  .mobile-next-date{margin:0 0 9px;font-weight:700;font-size:.86rem;color:#bfdaeb}
  .mobile-next-list{display:grid;gap:7px}
  .mobile-next-game{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px 12px;background:#071b2b;border-radius:7px;border:1px solid #28445a}
  .mobile-next-game-main{display:grid;gap:4px;min-width:0}
  .mobile-next-game-main strong{font-size:.91rem}
  .mobile-next-game-main span{font-size:.82rem;color:#e2ebf3;overflow-wrap:anywhere}
  .mobile-next-game-meta{font-size:.69rem;color:#c5d7e4;white-space:nowrap;text-align:right}
  /* Make enquiry visibly accessible before users scroll past pricing. */
  .mobile-membership-contact{align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;margin:14px 0;background:#122d41;border:1px solid #38546a;border-radius:8px}
  .mobile-membership-contact span{font-size:.81rem;color:#d5e5f1}
  .mobile-membership-contact a{font-size:.85rem;font-weight:700;color:white;white-space:nowrap}
  /* Tighten existing weekly fixture cards without affecting JS, scores or badges. */
  .matchweek{padding:13px}
  .matchweek-fixtures{gap:8px}
  .matchweek-fixture{gap:9px;padding:12px}
  .matchweek-fixture .opponent-badge,.matchweek-fixture .opponent-monogram{width:36px;height:36px}
  .matchweek-fixture .fixture-opponent{gap:9px}
  .matchweek-heading{margin-bottom:13px}
  /* Limit only typography and gaps; don't hide any membership content. */
  .membership-intro h2{font-size:clamp(1.9rem,8vw,2.5rem)}
  .membership-statement{padding:17px 16px}
  .membership-statement-main h3{font-size:1.8rem}
}
@media(max-width:365px){
  .brand-title small{display:none}
  .header-social-link{width:29px}
  .mobile-next-game{align-items:start;flex-direction:column}
  .mobile-next-game-meta{white-space:normal;text-align:left}
}

/* V21 — one content experience, responsive across desktop, tablet and phone. */
.mobile-next-matches{display:block;margin:0 0 clamp(34px,4vw,64px);padding:clamp(20px,2.7vw,30px);background:#112a3e;border:1px solid #31516a;border-radius:12px}
.mobile-next-top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.mobile-next-top h2{font-size:clamp(1.5rem,2.6vw,2.1rem);line-height:1.15;margin:6px 0 0}
.mobile-next-top a{color:#d3e8fa;text-decoration:underline;text-underline-offset:3px;font-weight:650}
.mobile-next-date{color:#bfdaeb;font-weight:750;margin:0 0 12px}
.mobile-next-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mobile-next-game{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;background:#071b2b;border:1px solid #28445a;border-radius:8px;padding:17px}
.mobile-next-game-main{display:grid;gap:6px;min-width:0}
.mobile-next-game-main strong{font-size:1rem;color:#fff}
.mobile-next-game-main span{font-size:.93rem;color:#e2ebf3;overflow-wrap:anywhere}
.mobile-next-game-meta{font-size:.8rem;color:#c5d7e4;text-align:right;white-space:normal}
.mobile-membership-contact{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;margin:20px 0 22px;border:1px solid #38546a;background:#122d41;border-radius:8px}
.mobile-membership-contact span{color:#d5e5f1;font-size:.96rem}
.mobile-membership-contact a{color:#fff;font-weight:750;text-decoration:underline;text-underline-offset:3px}
/* Readability and predictability across all seven pages. */
:where(.tile,.btn,.site-nav a,.menu-toggle,.header-social-link,.mobile-next-top a,.mobile-membership-contact a):focus-visible{outline:3px solid #8fd4ff;outline-offset:3px}
:where(.tile,.membership-item,.matchweek-fixture,.event-card,.news-card,.shop-panel){min-width:0}
:where(.lead,.event-body p,.shop-panel p,.membership-item p){overflow-wrap:break-word}
@media(min-width:921px){
  .home-intro-simple{padding-bottom:4px}
  .tile-grid{margin-bottom:30px}
  .membership-intro{max-width:1100px}
}
@media(min-width:641px) and (max-width:1040px){
  .mobile-next-list{grid-template-columns:1fr}
  .mobile-next-game{align-items:center}
  .tile-grid{margin-bottom:30px}
}
@media(max-width:900px){
  .section{padding-top:clamp(35px,6vw,60px);padding-bottom:clamp(35px,6vw,60px)}
  .mobile-next-list{grid-template-columns:1fr}
  .membership-list{gap:12px}
}
@media(max-width:640px){
  .mobile-next-matches{margin-bottom:32px;padding:17px 15px}
  .mobile-next-list{gap:8px}
  .mobile-next-top{gap:12px;align-items:flex-end}
  .mobile-next-game{padding:12px;align-items:center}
  .mobile-membership-contact{padding:13px 14px;margin:14px 0 20px;gap:10px}
  .mobile-membership-contact span{font-size:.85rem}
  .mobile-membership-contact a{font-size:.88rem}
  .page-banner{height:clamp(220px,55vw,310px);padding-bottom:26px}
  .button-row .btn{flex:1 1 185px;text-align:center}
  .event-card,.news-card,.shop-panel{max-width:100%}
}
@media(max-width:390px){
  .mobile-next-top{flex-wrap:wrap}
  .mobile-next-game{flex-wrap:wrap}
  .mobile-membership-contact{flex-wrap:wrap}
  .mobile-next-game-meta{white-space:normal;text-align:left}
}

/* v22: membership enquiry, desktop and mobile */
.membership-enquiry-section{padding-top:8px}
.membership-enquiry-card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,0.8fr);align-items:center;gap:32px;border:1px solid #416179;border-radius:14px;background:linear-gradient(120deg,#12324a,#0b2031);padding:clamp(24px,4vw,48px)}
.membership-enquiry-card h2{font-size:clamp(1.85rem,3.4vw,2.65rem);margin:.35em 0}
.membership-enquiry-card p{max-width:62ch}
.membership-enquiry-email{overflow-wrap:anywhere;font-weight:700}
.membership-enquiry-email a{text-decoration:underline;text-underline-offset:4px;color:#fff}
.membership-enquiry-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.membership-enquiry-actions .btn{text-align:center;width:100%;white-space:normal}
.membership-enquiry-actions small{color:#c2d3df;line-height:1.5}
@media(max-width:760px){.membership-enquiry-card{grid-template-columns:1fr;gap:20px;padding:22px}.membership-enquiry-section{padding-top:4px}.membership-enquiry-card h2{font-size:clamp(1.7rem,7vw,2.2rem)}}

/* v23 accessibility refinements */
.skip-link{position:absolute;left:12px;top:-100px;z-index:10000;background:#fff;color:#071521;padding:12px 18px;border-radius:6px;font-weight:700}
.skip-link:focus{top:12px}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:3px solid #f4bd58;outline-offset:3px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.townend-consent{position:fixed;bottom:16px;left:16px;right:16px;max-width:580px;margin:0 auto;z-index:9999;color:#fff;background:#102b3e;border:1px solid #79a0b5;border-radius:12px;padding:18px;box-shadow:0 8px 28px #0007;font-size:14px;line-height:1.5}
.townend-consent p{margin:0 0 12px}.townend-consent-actions{display:flex;gap:10px;flex-wrap:wrap}.townend-consent button{border:1px solid #bcd4e2;border-radius:7px;color:#fff;background:transparent;padding:9px 15px;font:inherit;cursor:pointer}.townend-consent button:first-child{background:#fff;color:#102b3e}

/* v23.1 – keep affiliation artwork and copy together; fit shop art to cards */
.affiliation-card{align-content:start;align-self:start;grid-template-rows:max-content max-content}
.affiliation-logo-refined{align-self:start}
.affiliation-logo-refined img{width:min(100%,190px);max-width:190px;height:auto;aspect-ratio:1/1}
.shop-panel img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;object-position:center;background:transparent;border:0}
@media(max-width:640px){.shop-panel img{height:auto;aspect-ratio:2/1}}

/* v24: news manager and Instagram-only feed */
.managed-news{margin-bottom:32px}.managed-news .section-header{margin-bottom:14px}.news-feed-status{color:var(--muted);font-size:.9rem}.managed-news-card{overflow:hidden}.managed-news-image{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;margin-bottom:14px;border-radius:8px}.managed-news-image.is-portrait{aspect-ratio:auto;height:auto;max-height:560px;object-fit:contain;background:#071521}.managed-event-grid:empty{display:none}.managed-event-grid:not(:empty){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}.instagram-feed{display:grid;gap:20px}.instagram-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.instagram-post{display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:inherit;text-decoration:none}.instagram-post img{width:100%;aspect-ratio:1;object-fit:cover;display:block}.instagram-post span{padding:10px 12px}.instagram-post:focus-visible{outline:3px solid #9bd3ff;outline-offset:3px}@media(max-width:900px){.managed-event-grid:not(:empty){grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.managed-event-grid:not(:empty){grid-template-columns:1fr}.instagram-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v24.1: single Instagram preview beside preserved Facebook card */
.social-feature .social-brand-image img.instagram-live-image{width:100%;height:100%;max-height:none;object-fit:cover;filter:none}
.social-feature .social-brand-image:has(.instagram-live-image){background:#071521}
#instagram-latest-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
@media(max-width:640px){.social-feature .social-brand-image img.instagram-live-image{height:195px}}

/* News Manager is authoritative when the public feed successfully loads.
   Retain legacy cards in HTML as outage fallback only. */
body.managed-news-ready #news .wrap > .grid,
body.managed-news-ready #news .wrap > .news-feature,
body.managed-news-ready #events #upcoming-events-grid,
body.managed-news-ready #events #past-events-grid { display: none !important; }

/* Affiliation partners — clear, responsive badge row */
.affiliation-card{display:flex;flex-direction:column;gap:22px;min-width:0}
.affiliation-card .affiliation-copy{min-width:0}
.affiliation-card .affiliation-copy h3{display:block;position:static;transform:none;margin:7px 0 12px;font-size:clamp(1.3rem,2.1vw,1.7rem);line-height:1.24;letter-spacing:-.02em;white-space:normal;overflow-wrap:normal;text-shadow:none}
.affiliation-card .affiliation-copy .eyebrow{display:block;position:static;margin:0;line-height:1.45}
.affiliation-card .affiliation-copy p{margin:0;line-height:1.65}
.affiliation-badges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.affiliation-badge{min-width:0;display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;color:#fff;text-decoration:none;font-weight:700;font-size:.78rem;line-height:1.3;border-radius:10px;padding:8px 3px}
.affiliation-badge img{width:100%;max-width:108px;aspect-ratio:1;object-fit:contain;border-radius:50%;background:#f1f4f6;display:block;transition:transform .2s ease}
.affiliation-badge[href]:hover img,.affiliation-badge[href]:focus-visible img{transform:scale(1.045)}
.affiliation-badge[href]:focus-visible{outline:2px solid #8fd0f5;outline-offset:3px}
.affiliation-badge-unlinked{cursor:default}
.affiliation-activity{align-self:flex-start}
@media(max-width:420px){.affiliation-badges{gap:5px}.affiliation-badge{font-size:.7rem;padding:6px 0}.affiliation-badge img{max-width:88px}}


/* Affiliation badge optical alignment: keep the three circles equally sized. */
.affiliation-badge[href="https://www.scottishsquash.org/"] img {
  object-fit: cover;
  object-position: center;
  padding: 0;
  /* Enlarges the art inside its existing circular frame. */
  transform: scale(1.13);
}
.affiliation-badge[href="https://west-squash.org/"] img {
  object-position: center center;
  transform: translateX(3px);
}
.affiliation-badge[href="https://www.scottishsquash.org/"]:hover img,
.affiliation-badge[href="https://www.scottishsquash.org/"]:focus-visible img {
  transform: scale(1.17);
}
.affiliation-badge[href="https://west-squash.org/"]:hover img,
.affiliation-badge[href="https://west-squash.org/"]:focus-visible img {
  transform: translateX(3px) scale(1.045);
}

/* Badge artwork corrections: separate the fixed white disc from image scaling. */
.affiliation-badge-disc{display:grid;place-items:center;width:108px;max-width:100%;aspect-ratio:1;border-radius:50%;background:#f1f4f6;overflow:hidden;isolation:isolate}
.affiliation-badge .affiliation-badge-disc img{width:100%;height:100%;max-width:none;max-height:none;border-radius:0;background:transparent;object-fit:contain;transition:transform .2s ease}
.affiliation-badge[href="https://www.scottishsquash.org/"] .affiliation-badge-disc img{transform:scale(1.53)}
.affiliation-badge[href="https://west-squash.org/"] .affiliation-badge-disc img{transform:translateX(2px) scale(.74)}
.affiliation-badge[href="https://www.scottishsquash.org/"]:is(:hover,:focus-visible) .affiliation-badge-disc img{transform:scale(1.59)}
.affiliation-badge[href="https://west-squash.org/"]:is(:hover,:focus-visible) .affiliation-badge-disc img{transform:translateX(2px) scale(.77)}
@media(max-width:420px){.affiliation-badge-disc{width:88px}}

/* Consistent legal footer links on desktop and mobile. */
.fine-print{display:flex;align-items:center;justify-content:space-between;gap:12px 28px;flex-wrap:wrap}
.footer-legal-links{display:inline-flex;gap:18px;align-items:center;flex-wrap:wrap}
.footer-legal-links a{color:#b5c5d2;text-decoration:none;font-size:.82rem}
.footer-legal-links a:hover,.footer-legal-links a:focus-visible{color:#fff;text-decoration:underline}
@media(max-width:640px){.fine-print{align-items:flex-start;flex-direction:column;gap:10px}.footer-legal-links{gap:14px}}

.news-share-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px;max-width:100%}
.news-share-actions .news-share-open,.news-share-actions .news-share-copy{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto!important;height:auto;min-height:38px;padding:8px 13px;font:inherit;font-size:.88rem;line-height:1.35;font-weight:650;text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.06);border-radius:8px;cursor:pointer;box-shadow:none;transform:none}
.news-share-actions .news-share-copy{background:transparent}
.news-share-actions .news-share-open:hover,.news-share-actions .news-share-copy:hover{background:#203a51}
#news .news-feature>.news-share-actions,#news .news-featured>.news-share-actions{grid-column:1/-1}
@media(max-width:640px){.news-share-actions{flex-direction:row;gap:8px}.news-share-actions .news-share-open,.news-share-actions .news-share-copy{width:auto!important;min-height:38px;padding:8px 11px}}

/* Managed news archive: only shown when published items have passed their expiry date. */
.managed-past-news{margin-top:48px}
.managed-past-news[hidden],#past-events-header[hidden]{display:none!important}
.managed-past-news .section-header{margin-bottom:18px}

/* Keep the wide Christmas Pudding banner fully visible in its event card. */
.event-card img.event-image[src*="townend-christmas-pudding-2026-event-banner"]{object-fit:contain;background:#071521;padding:0}
