/* UWR World — country pages (uwrworld.com/colombia/) and the list of countries (/paises/).
   They wear the tournament pages' styles (tournament-page.css, body.tournament-page); here is only what is theirs. */

/* ---------- Hero ---------- */
.cy-flag { width: clamp(96px, 13vw, 148px); height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-strong); box-shadow: 0 18px 50px -12px rgba(0,0,0,.7); }

/* ---------- Numbers ---------- */
/* Two to six numbers, depending on what the site knows: they share the row and wrap centred. */
.cy-facts .tp-facts-in { display: flex; flex-wrap: wrap; justify-content: center; }
.cy-facts .tp-facts-in > div { flex: 1 1 160px; max-width: 280px; border-left: 0; position: relative; }
.cy-facts .tp-facts-in > div + div::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.cy-facts dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--tp-line); }
.cy-facts dd a:hover { color: var(--tp); }
.cy-facts p { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; text-wrap: balance; }
.cy-mini { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); font: 600 .74rem/1 var(--font-mono); color: #021226; }
.cy-mini.is-gold { background: var(--gold); } .cy-mini.is-silver { background: var(--silver); } .cy-mini.is-bronze { background: var(--bronze); }

/* ---------- Section heads with a link on the right ---------- */
.cy-sec-head { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; justify-content: space-between; }
.cy-sec-head > .btn { flex: none; }
.cy-src { margin-top: 30px; }

/* ---------- National team: what the delegation keeps (photo, squads, staff) ---------- */
.cy-by { margin-top: 14px; color: var(--muted); }
.cy-socials { margin: 0; }
.cy-team-photo { margin: 28px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--navy); }
.cy-team-photo img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.cy-squad[hidden] { display: none; }
.cy-squad-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 22px 0 0; color: var(--text-2); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; }
.cy-squad-meta a { color: var(--tp); text-decoration: none; }
.cy-squad-meta a:hover { text-decoration: underline; }
.cy-players { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cy-player { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(8,27,49,.7); }
.cy-player.is-captain { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.cy-player.is-staff { background: transparent; }
.cy-face { position: relative; width: 58px; height: 58px; flex: none; }
.cy-face > img, .cy-face > span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: rgba(255,255,255,.06); border: 1px solid var(--line); font: 700 1.05rem/1 var(--font-display); color: var(--text); }
.cy-num { position: absolute; right: -6px; bottom: -4px; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--tp); color: #021226; font: 700 .86rem/1 var(--font-display); border: 2px solid var(--abyss); }
.cy-player-txt { display: grid; gap: 3px; min-width: 0; }
.cy-player-txt strong { font: 700 1.15rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--text); overflow-wrap: anywhere; }
.cy-player-txt span { color: var(--text-2); font-size: .86rem; }
.cy-player-txt a { justify-self: start; color: var(--tp); font: 600 .76rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.cy-player-txt a:hover { text-decoration: underline; }

/* ---------- National team: results ---------- */
.cy-tally { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cy-tally li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(8,27,49,.7); }
.cy-tally i { grid-row: span 2; font-size: 1.6rem; }
.cy-tally b { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/.9 var(--font-display); color: var(--text); }
.cy-tally span { color: var(--text-2); font: 500 var(--fs-mono)/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.cy-tally .is-world { border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 16%, transparent), rgba(8,27,49,.7)); }
.cy-tally .is-world i, .cy-tally .is-gold i { color: var(--gold); }
.cy-tally .is-silver i { color: var(--silver); } .cy-tally .is-bronze i { color: var(--bronze); }

.cy-table { margin-top: 22px; }
.cy-table .tp-pal-t { min-width: 560px; }
.cy-table .tp-pal-t td { min-width: 0; color: var(--text-2); }
.cy-table .tp-pal-t td:nth-child(2) { color: var(--text); font-weight: 500; }
.cy-table td a { color: inherit; text-decoration: none; }
.cy-table td a:hover { color: var(--tp); text-decoration: underline; }
.cy-table td small { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); font-size: .8rem; font-weight: 400; }
.cy-table td small .flag { width: 18px; height: 12px; }
.cy-table tr[hidden] { display: none; }
.cy-place { display: inline-flex; align-items: center; gap: 8px; font: 700 1.15rem/1 var(--font-display); color: var(--text); white-space: nowrap; }
.cy-place.is-gold { color: var(--gold); } .cy-place.is-silver { color: var(--silver); } .cy-place.is-bronze { color: var(--bronze); }
.cy-place.is-none { font: 400 .86rem/1.2 var(--font-body); color: var(--muted); }
.cy-table .tp-tc { display: inline-flex; align-items: center; gap: 10px; }
.cy-table .tp-tc-mark { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.cy-table .tp-tc-mark .tp-team-mono { font-size: .7rem; }

/* «Ver los N resultados»: the rows beyond the first ones. A category filter shows all its rows. */
.cy-more:not(.is-open):not(.is-filtered) .is-extra { display: none; }
.cy-more.is-filtered .tp-more-wrap { display: none; }

/* ---------- Clubs ---------- */
.cy-city { display: block; margin: 24px 0 0; max-width: 280px; }
.cy-city select { appearance: none; -webkit-appearance: none; width: 100%; padding: 10px 34px 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text); font: 500 .92rem/1.2 var(--font-body);
  background: rgba(8,27,49,.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239fb3c8' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px; }
.cy-city select:focus-visible { outline: 2px solid var(--tp); outline-offset: 2px; }
.cy-city + .tp-teams { margin-top: 14px; }

/* ---------- Tournaments in the country ---------- */
.country-page .tp-month-h small { margin-left: 8px; color: var(--muted); font-size: .8rem; letter-spacing: .1em; vertical-align: middle; }
.country-page h3.tp-month-h { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.country-page .tp-cal-day small { white-space: nowrap; }

/* ---------- Other countries ---------- */
.cy-countries { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cy-countries a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: rgba(8,27,49,.55); color: var(--text); text-decoration: none; font: 600 .9rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; transition: border-color var(--t-fast), background var(--t-fast); }
.cy-countries a:hover { border-color: var(--tp); background: var(--tp-soft); }
.cy-countries .flag { width: 22px; height: 15px; border-radius: 2px; }
.cy-countries small { color: var(--muted); font: 500 .74rem/1 var(--font-mono); letter-spacing: 0; }

/* ---------- The list of countries ---------- */
.cy-cards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.cy-cards a { height: 100%; display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--navy); color: var(--text); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast); }
.cy-cards a:hover { border-color: var(--tp); transform: translateY(-2px); }
.cy-card-flag { width: 56px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.cy-cards strong { font: 700 1.35rem/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.cy-card-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--text-2); font-size: .86rem; }
.cy-card-meta .is-gold { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.cy-dot { font-style: normal; color: var(--muted); }

.cy-cat-inline { display: none; }

@media (max-width: 640px) {
  .cy-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The tables fit the phone: the category goes under the tournament's name, so the place is always in sight. */
  .cy-table .tp-pal-t { min-width: 0; }
  .cy-table .tp-pal-t th, .cy-table .tp-pal-t td { padding: 12px 10px; }
  .cy-team th:nth-child(3), .cy-team td:nth-child(3) { display: none; }
  .cy-cat-inline { display: inline; }
  .cy-table td small { align-items: flex-start; }
  .cy-table td small .flag { margin-top: 3px; flex: none; }
  .cy-sec-head > .btn { width: 100%; justify-content: center; }
  .country-page .tp-cal li > a, .country-page .tp-cal li > div { grid-template-columns: 64px minmax(0, 1fr); }
  .country-page .tp-cal-tags { grid-column: 2; justify-content: flex-start; }
}
