/* Sport My Fitness Community: consolidated updates and native platform links. */
.community-connect { padding-block: clamp(42px, 4.8vw, 70px) clamp(48px, 5.2vw, 78px); border-top: 1px solid var(--line); }
.community-connect-inner { text-align: center; }
.community-connect .eyebrow { color: var(--accent-ink, var(--teal)); margin-bottom: 12px; font-size: 13px; letter-spacing: .16em; }
.community-connect h2 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.05; }
.community-icon-row { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2.4vw, 28px); margin-top: 26px; }
.community-icon-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 9px; transition: transform 160ms ease, background-color 160ms ease; }
.community-icon-link img { display: block; width: 30px; height: 30px; max-width: none; object-fit: contain; }
.community-icon-link--youtube img { width: 37px; }
.community-icon-link--tmj4 { flex-basis: 72px; width: 72px; }
.community-icon-link--tmj4 img { width: 55px; height: 35px; }
.community-icon-link--dot img { width: 44px; height: auto; }
.community-icon-link:hover { transform: translateY(-3px); background-color: #ffffff0c; }
:root[data-theme="light"] .community-icon-link:hover { background-color: #122c3610; }
@media (max-width: 600px) {
 .community-connect .eyebrow { font-size: 12px; }
 .community-icon-link { flex-basis: 44px; width: 44px; height: 44px; }
 .community-icon-link img { width: 28px; height: 28px; }
 .community-icon-link--youtube img { width: 33px; }
 .community-icon-link--tmj4 { flex-basis: 52px; width: 52px; }
 .community-icon-link--tmj4 img { width: 46px; height: 30px; }
 .community-icon-link--dot img { width: 40px; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .community-icon-link { transition: none; } }

:root:not([data-theme="light"]) .community-icon-link--instagram img { filter: invert(1); }
:root:not([data-theme="light"]) .community-icon-link--dot img { filter: invert(1); }

/* One Facebook disclosure keeps both existing account links in a compact row. */
.community-icon-row { align-items: flex-start; }
.community-facebook { flex: 0 0 68px; width: 68px; position: relative; text-align: left; }
.community-facebook summary { display: flex; align-items: center; justify-content: center; width: 68px; height: 56px; border-radius: 9px; cursor: pointer; list-style: none; }
.community-facebook summary::-webkit-details-marker { display: none; }
.community-facebook summary::marker { content: ''; }
.community-facebook summary img { width: 30px; height: 30px; }
.community-facebook summary:hover { background: #ffffff0c; }
.community-facebook[open]::after { content: ''; display: block; height: 130px; }
.community-facebook-options { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); z-index: 4; width: 226px; padding: 6px; border: 1px solid #486b76; border-radius: 12px; background: #0b1b22; box-shadow: 0 12px 32px #0005; }
.community-facebook-options a { display: flex; align-items: center; padding: 13px 14px; min-height: 48px; border-radius: 7px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.community-facebook-options a:hover, .community-facebook-options a:focus-visible { background: #ffffff0c; }
:root[data-theme="light"] .community-facebook-options { background: #f8fbfb; border-color: #92afb7; }
:root[data-theme="light"] .community-facebook-options a:hover { background: #122c3610; }
/* One update list holds camps, events, fliers and future gym notices. */
.community-events { padding-block: clamp(36px, 4vw, 56px); }
.community-events-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 7%; margin-bottom: 36px; }
.community-events-heading .eyebrow { color: var(--accent-ink, var(--teal)); margin-bottom: 16px; }
.community-events-heading > p { color: var(--muted); max-width: 42ch; font-size: 18px; line-height: 1.7; }
.community-events-list { display: grid; gap: 48px; }
.community-updates .community-events-heading { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
/* CMS entries can repeat without reserving empty cards, rows or image space. */
.community-updates-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); align-items: start; gap: 28px 36px; }
.community-updates .community-program { display: block; border-bottom: 0; padding-block: 24px 0; }
.community-updates .community-program .button { margin-top: 20px; min-width: 0; }
.community-updates .community-program h3, .community-updates .community-event h3 { font-size: clamp(30px, 2.6vw, 36px); }
.community-event { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.event-flyer-preview { display: block; width: min(100%, 180px); justify-self: start; padding: 0; border: 0; background: transparent; color: #f4f7f7; text-align: left; cursor: zoom-in; }
.event-sample-poster { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; padding: 24px; border: 1px solid #527781; border-radius: 10px; color: #f4f7f7; background: linear-gradient(135deg, #18363f, #0a1a22 58%, #16424b); box-shadow: 0 10px 28px #0002; }
.event-poster-label { font: 700 10px/1.3 var(--body); letter-spacing: .15em; color: #b5cbd1; }
.event-poster-logo { width: 164px; height: auto; margin-top: 18px; }
.event-poster-title { display: block; margin-block: 20px; font: italic 900 45px/.96 var(--display); }
.event-poster-title > span { color: #03d6df; }
.event-poster-footer { font: 700 13px/1.5 var(--label); letter-spacing: .08em; color: #03d6df; }
.event-poster-footer small { display: block; margin-top: 4px; font: 400 11px/1.5 var(--body); letter-spacing: 0; color: #c6d7dd; }
.event-flyer-preview .event-sample-poster { padding: 14px; border-radius: 8px; }
.event-flyer-preview .event-poster-label { font-size: 9px; }
.event-flyer-preview .event-poster-logo { width: min(100%, 140px); margin-top: 8px; }
.event-flyer-preview .event-poster-title { margin-block: 10px; font-size: 30px; }
.event-flyer-preview .event-poster-footer { font-size: 10px; }
.event-flyer-preview .event-poster-footer small { font-size: 10px; }
.community-event-copy { max-width: 540px; }
.event-preview-tag { margin-bottom: 12px; color: var(--accent-ink, var(--teal)); font: 700 12px/1.4 var(--label); letter-spacing: .12em; }
.community-event-copy h3 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 14px; }
.community-event-copy > p:not(.event-preview-tag) { font-size: 18px; line-height: 1.7; color: var(--muted); }
.community-event-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 18px 0 0; }
.community-event-meta dt { color: var(--muted); font-size: 12px; line-height: 1.5; }
.community-event-meta dd { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.event-flyer-dialog { width: min(430px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 18px; border: 1px solid #527781; border-radius: 16px; background: #0b1b22; color: #f4f7f7; overflow: auto; }
.event-flyer-dialog::backdrop { background: #000b; }
.event-flyer-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.event-flyer-dialog-heading h2 { font: 700 17px/1.4 var(--body); text-transform: none; }
.event-flyer-dialog-heading button { width: 40px; height: 40px; padding: 0; border: 1px solid #527781; border-radius: 8px; color: #f4f7f7; background: transparent; font-size: 28px; }
.event-flyer-dialog .event-poster-title { font-size: clamp(45px, 12vw, 65px); }
@media (max-width: 800px) { .community-events-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 24px; } .community-events-heading > p { font-size: 17px; } .community-event { grid-template-columns: minmax(130px, 180px) minmax(0, 1fr); gap: 24px; } .community-event-copy > p:not(.event-preview-tag) { font-size: 17px; } }
@media (max-width: 500px) { .community-event { grid-template-columns: 1fr; gap: 20px; } .event-flyer-preview { width: min(100%, 240px); } .event-flyer-preview .event-poster-title { font-size: 38px; } }
@media (max-width: 600px) { .community-facebook { flex-basis: 56px; width: 56px; } .community-facebook summary { width: 56px; height: 44px; gap: 5px; } .community-facebook summary img { width: 28px; height: 28px; } .community-facebook-options { top: 54px; left: 0; transform: none; width: 220px; } .community-facebook[open]::after { height: 132px; } }

/* Original community photographs, restored ahead of the social icon row. */
.community-photos .media-photo-pair {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 800px) {
  .community-photos .media-photo-pair { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
