/* Table Tennis Tournaments only; preserve other activities and approved Table Tennis pages. */
.tt-tournaments-page .tt-tournament-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-tournaments-page .tt-tournament-hero h1 { margin: 0; font-size: clamp(34px, 3.2vw, 40px); line-height: 1.15; text-wrap: balance; }
.tt-tournaments-page .tt-tournament-hero p { margin: 20px 0 0; font-size: 18px; }
.tt-tournaments-page .detail-section { margin-bottom: 48px; }
.tt-tournaments-page .tt-event-walkthrough > h2 { margin-bottom: 32px; font-size: 32px; line-height: 1.3; text-wrap: balance; }
.tt-event-product { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: center; gap: 64px; }
.tt-event-product figure { width: min(280px, 100%); margin: 0; justify-self: center; }
.tt-event-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-event-screenshot-placeholder span { font-size: 18px; font-weight: 600; line-height: 1.5; }
.tt-tournaments-page .tt-event-screenshot-placeholder p { margin: 12px 0 0; font-size: 14px; }
.tt-event-product figure > img { display: block; width: 100%; height: auto; }
.tt-event-product figcaption { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
.tt-event-steps { list-style: none; counter-reset: tt-event-step; margin: 0; padding: 0; }
.tt-event-steps li { counter-increment: tt-event-step; position: relative; padding-left: 44px; }
.tt-event-steps li + li { margin-top: 28px; }
.tt-event-steps li::before { content: counter(tt-event-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-event-steps h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.tt-tournaments-page .tt-event-steps p { margin: 0; font-size: 16px; line-height: 1.7; }
.tt-tournaments-page .tt-event-guide-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-size: 15px; line-height: 1.7; }
.tt-event-guide-links a { padding: 3px 0; }
.tt-tournaments-page .faq { margin-top: 48px; }
@media (max-width: 720px) {
  .tt-tournaments-page .tt-tournament-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 56px; padding-top: 12px; }
  .tt-tournament-hero .illustration-frame { width: min(340px, 100%); justify-self: center; }
  .tt-tournaments-page .tt-event-walkthrough > h2 { font-size: 28px; }
  .tt-event-product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tt-event-guide-links { gap: 8px 20px; }
  .tt-tournaments-page .detail-section { margin-bottom: 40px; }
  .tt-tournaments-page .faq { margin-top: 40px; }
}

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


.tt-event-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 24px 0; }
.tt-event-options > div { border-top: 1px solid var(--border); padding-top: 18px; }
.tt-event-options h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.4; }
.tt-tournaments-page .tt-event-options p { margin: 0; font-size: 16px; line-height: 1.7; }
.tt-tournaments-page .tt-event-format-note { font-size: 15px; line-height: 1.7; margin-bottom: 0; }
@media (max-width: 720px) { .tt-event-options { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Slightly brighter supporting copy in the product demonstration only. */
.tt-tournaments-page .tt-event-steps p,
.tt-tournaments-page .tt-event-benefits p { color: #bdc5d3; }

/* A compact, sourced tt example within the format section. */
.tt-event-example { border: 1px solid #253047; border-radius: 12px; background: var(--surface); padding: 24px; margin: 28px 0 32px; }
.tt-event-example h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.5; }
.tt-tournaments-page .tt-event-example p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; }
.tt-tournaments-page .tt-event-example .tt-event-example-source { font-size: 13px; }
.tt-tournaments-page .tt-event-example .tt-event-example-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--text); font-size: 14px; font-weight: 600; }
.tt-event-example-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-top: 18px; }
.tt-event-example-footer > a { font-size: 14px; line-height: 1.7; }
.tt-event-example-source { color: var(--muted); font-size: 12px; }
.tt-event-example-flow span:not([aria-hidden]) { padding: 6px 10px; border-radius: 7px; background: var(--surface-raised); }
.tt-event-example-flow span[aria-hidden] { color: var(--teal); }
@media (max-width: 520px) { .tt-event-example { padding: 20px; } }

/* Final local spacing refinement; preserve the rest of the page rhythm. */
.tt-tournaments-page .tt-event-formats { margin-bottom: 58px; }
.tt-event-example > p:first-of-type { padding-bottom: 12px; }

.tt-event-walkthrough.activity-group-showcase { row-gap: 0; }
