/* Table Tennis Groups only; keep other group pages and the approved Rankings intact. */
.tt-groups-page .tt-groups-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 24px 0 0; margin-bottom: 64px; text-align: left; }
.tt-groups-page .tt-groups-hero h1 { margin: 0; font-size: clamp(34px, 3.2vw, 40px); line-height: 1.15; text-wrap: balance; }
.tt-groups-page .tt-groups-hero p { margin: 20px 0 0; font-size: 18px; }
.tt-groups-page .detail-section { margin-bottom: 48px; }
.tt-groups-page .tt-group-walkthrough > h2 { margin-bottom: 32px; font-size: 32px; line-height: 1.3; text-wrap: balance; }
.tt-group-product { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: center; gap: 64px; }
.tt-group-product figure { width: min(280px, 100%); margin: 0; justify-self: center; }
.tt-group-screenshot-placeholder { aspect-ratio: 675 / 1380; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; border: 1px dashed var(--border); border-radius: 36px; background: var(--surface); text-align: center; }
.tt-group-screenshot-placeholder span { font-size: 18px; font-weight: 600; line-height: 1.5; }
.tt-groups-page .tt-group-screenshot-placeholder p { margin: 12px 0 0; font-size: 14px; }
.tt-group-product figure > img { display: block; width: 100%; height: auto; }
.tt-group-product figcaption { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
.tt-group-steps { list-style: none; counter-reset: tt-group-step; margin: 0; padding: 0; }
.tt-group-steps li { counter-increment: tt-group-step; position: relative; padding-left: 44px; }
.tt-group-steps li + li { margin-top: 28px; }
.tt-group-steps li::before { content: counter(tt-group-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--gold); font-size: 14px; font-weight: 600; }
.tt-group-steps h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.tt-groups-page .tt-group-steps p { margin: 0; font-size: 16px; line-height: 1.7; }
.tt-groups-page .tt-group-guide-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-size: 15px; line-height: 1.7; }
.tt-group-guide-links a { padding: 3px 0; }
.tt-groups-page .faq { margin-top: 48px; }
@media (max-width: 720px) {
  .tt-groups-page .tt-groups-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 56px; padding-top: 12px; }
  .tt-groups-hero .illustration-frame { width: min(340px, 100%); justify-self: center; }
  .tt-groups-page .tt-group-walkthrough > h2 { font-size: 28px; }
  .tt-group-product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tt-group-guide-links { gap: 8px 20px; }
  .tt-groups-page .detail-section { margin-bottom: 40px; }
  .tt-groups-page .faq { margin-top: 40px; }
}

/* Product tabs only. Without JS, both product views stay readable. */
.tt-group-tablist { display: flex; margin: 24px 0; border-bottom: 1px solid var(--border); }
.tt-group-tablist[hidden], .tt-group-tabpanel[hidden] { display: none; }
.tt-group-tablist button { flex: 1; min-width: 0; min-height: 48px; padding: 12px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer; }
.tt-group-tablist button:hover { color: var(--text); background: var(--surface); }
.tt-group-tablist button[aria-selected="true"] { border-bottom-color: var(--teal); color: var(--text); font-weight: 600; }
.tt-group-tablist button:focus-visible, .tt-group-tabpanel:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.tt-group-walkthrough > .tt-group-product + .tt-group-product { margin-top: 40px; }
.tt-group-walkthrough[data-tabs-ready] > .tt-group-product { margin-top: 0; }
.tt-group-benefits { padding: 0; margin: 0; list-style: none; }
.tt-group-benefits li + li { margin-top: 28px; }
.tt-group-benefits h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.tt-groups-page .tt-group-benefits p { margin: 0; font-size: 16px; line-height: 1.7; }
@media (max-width: 480px) {
  .tt-group-tablist button { padding: 10px 6px; font-size: 13px; }
}

/* A compact overview, from organized clubs to informal games. Labels are not controls. */
.tt-group-communities { text-align: left; }
.tt-groups-page .tt-group-communities { margin-bottom: 64px; }
.tt-groups-page .tt-communities-intro { width: min(720px, 100%); margin: 0; font-size: 17px; line-height: 1.7; }
.tt-community-labels { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tt-community-labels li { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 38px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15px; line-height: 1.2; }
@media (max-width: 720px) {
  .tt-groups-page .tt-group-communities { margin-bottom: 56px; }
}
@media (max-width: 520px) {
  .tt-community-labels { gap: 8px 6px; }
  .tt-community-labels li { padding: 6px 10px; }
}
