/* Ginástica Acrobática (POC) — páginas /acrobatica/* . Só usa as variáveis do portal. */

.acro-lead { max-width: 720px; color: var(--gp-text-secondary); font-size: 14px; line-height: 1.55; margin: -12px 0 24px; }

.acro-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.acro-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  color: var(--gp-text); background: var(--gp-surface); border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius, 8px); text-decoration: none; transition: background .12s ease, border-color .12s ease;
}
.acro-btn:hover { background: var(--gp-bg); border-color: var(--gp-text-muted); }

.acro-crumb { font-size: 13px; margin: 0 0 6px; }
.acro-meta { color: var(--gp-text-secondary); font-size: 14px; margin: 0 0 20px; }

.acro-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.acro-stat {
  min-width: 120px; padding: 14px 18px; background: var(--gp-surface); border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg, 12px);
}
.acro-stat__n { font-size: 24px; font-weight: 700; letter-spacing: -.3px; color: var(--gp-text); }
.acro-stat__l { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gp-text-muted); }

.acro-filters { display: grid; gap: 12px; margin: 0 0 24px; min-width: 0; }
.acro-filters > *, .acro-filter-row > * { min-width: 0; max-width: 100%; }
.acro-filter-row .gp-segmented-control { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.acro-filter-row .gp-segmented-control::-webkit-scrollbar { display: none; }
.acro-filters .gp-search-wrap { max-width: 480px; }
.acro-filter-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }

.acro-comp { margin: 0 0 32px; }
.acro-comp__title { margin: 0 0 8px; }   /* tipografia: .gp-section-title */
.acro-comp__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.acro-cls { margin: 0 0 16px; }
.acro-cls__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; }
.acro-cls__name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gp-text-secondary); }

.acro-table tbody tr { height: auto; }
.acro-table tbody td { padding: 10px 16px; font-size: 14px; vertical-align: top; }
.acro-table thead th { padding: 12px 16px; }
.acro-col-rank { width: 72px; }
/* Larguras fixas: as várias tabelas de uma competição (WP, MXP, WG…) ficam com as colunas alinhadas entre si */
.acro-cls .acro-table { table-layout: fixed; width: 100%; }
.acro-cls .acro-table th:nth-child(n+3), .acro-cls .acro-table td:nth-child(n+3) { width: 200px; }

.acro-rank { white-space: nowrap; font-weight: 700; color: var(--gp-text-secondary); font-variant-numeric: tabular-nums; }
.acro-medal {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; font-weight: 700; color: #fff;
}
.acro-podium--1 .acro-medal { background: var(--gp-gold); color: #78350f; }
.acro-podium--2 .acro-medal { background: var(--gp-silver); }
.acro-podium--3 .acro-medal { background: var(--gp-bronze); }
.acro-table tbody tr.acro-podium--1 { background: #FFFBEB; }
.acro-table tbody tr.acro-podium--2 { background: #F3F4F6; }
.acro-table tbody tr.acro-podium--3 { background: #FEF3E2; }
.acro-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--gp-text-secondary); }
.acro-counts b { color: var(--gp-text); }
.acro-field { font-weight: 400; }
.acro-mark { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.acro-names { line-height: 1.45; }
.acro-member { display: block; white-space: nowrap; }
.acro-sep { color: var(--gp-text-muted); }
.acro-routines { font-size: 12px; color: var(--gp-text-secondary); line-height: 1.7; }
.acro-routines span { display: block; white-space: nowrap; }
.acro-routines b { color: var(--gp-text); font-variant-numeric: tabular-nums; }

.acro-score span { display: block; }
.acro-score { font-variant-numeric: tabular-nums; color: var(--gp-text-secondary); white-space: nowrap; }
.acro-col-routines { font-size: 12px; }

.acro-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.acro-link:hover { border-bottom-color: currentColor; }
.acro-strong { font-weight: 600; color: var(--gp-text); }
.acro-muted { font-size: 12px; color: var(--gp-text-muted); }
.acro-nowrap { white-space: nowrap; }

.acro-tag {
  display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 600; line-height: 1.5;
  color: var(--gp-text-secondary); background: var(--gp-surface-2); border: 1px solid var(--gp-border); border-radius: 999px;
}
.acro-tag--warn { color: #92400e; background: #fef3c7; border-color: #fde68a; }

.acro-note {
  margin: 0 0 20px; padding: 10px 14px; font-size: 13px; color: var(--gp-text-secondary);
  background: var(--gp-surface-2); border: 1px solid var(--gp-border); border-radius: var(--gp-radius, 8px);
}
.acro-note[hidden] { display: none; }
.acro-empty { padding: 32px 16px; text-align: center; color: var(--gp-text-muted); font-size: 14px; }

@media (max-width: 720px) {
  .acro-filters .gp-search-wrap { width: 100%; max-width: 100%; }
    /* O cartão faz scroll horizontal; larguras fixas para as tabelas ficarem alinhadas entre si */
  .gp-table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .acro-cls .acro-table { min-width: 100%; }
  .acro-col-rank { width: 56px; }
  .acro-cls .acro-table th:nth-child(2) { width: 190px; }
  .acro-cls .acro-table th:nth-child(n+3), .acro-cls .acro-table td:nth-child(n+3) { width: 170px; }
  .acro-table tbody td, .acro-table thead th { padding: 10px 12px; }
  /* alinhadas à esquerda para a nota ficar visível sem scroll */
  .acro-cls .acro-table th:nth-child(n+3), .acro-cls .acro-table td:nth-child(n+3) { text-align: left; }
  .acro-table .gp-score-details { justify-content: flex-start; }
  .acro-stat { flex: 1 1 100px; }
}

/* Tab ativa de competições mistas/mistas — neutro (F usa .wag-active e M .mag-active do portal) */
.stage-tab.acro-x-active { border-bottom-color: var(--gp-text); }
.stage-tab.acro-x-active .tab-title { color: var(--gp-text); }
.stage-tab.acro-x-active .tab-subtitle { color: var(--gp-text-secondary); opacity: .85; }

.gender-badge.gender-badge-acro-x { background: var(--gp-surface-3) !important; color: var(--gp-text-secondary) !important; border: 1px solid var(--gp-border) !important; }

/* Secções por género: 2 colunas em ecrãs largos; a 3.ª passa para a linha de baixo com a largura de uma coluna */
.acro-gender-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
@media (min-width: 1024px) {
  .acro-gender-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
}

/* Opção de filtro sem resultados com a combinação atual: visível mas inativa */
.gp-tab.acro-tab--off, .gp-tab.acro-tab--off:hover { opacity: .4; cursor: not-allowed; background: transparent; box-shadow: none; }

.gp-score-detail-a { color: #7C3AED; }
.acro-club-line { margin-top: 2px; font-size: 12px; }
.acro-table .gp-table-cell--score { width: auto; white-space: nowrap; }
.acro-table .gp-score-details { margin-top: 3px; }
.acro-tag[hidden] { display: none; }

/* Detalhes A/D/E/B/P por baixo da nota: ligeiramente maiores do que na Artística (9px) */
.acro-table .gp-score-details { opacity: 1; gap: 2px; }
.acro-table .gp-score-details > span { font-size: 11px; line-height: 1.25; padding: 3px 6px; min-width: 38px; }

/* Filtros da prova: mesmo cartão da Artística (.event-filters); a pesquisa ocupa a linha toda
   e os controlos segmentados mantêm-se visíveis em mobile (com scroll horizontal) */
.acro-event-filters .gp-search-wrap { flex: 1 1 100%; }
@media (max-width: 640px) {
  .acro-event-filters .gp-segmented-control { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .acro-event-filters .gp-segmented-control::-webkit-scrollbar { display: none; }
}

.acro-cls-tabs { margin-bottom: 20px; }
