.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.teams-content { width: 100%; }
.teams-directory-intro h1 em { color: #16815c; }
.team-years, .team-history-meta, .team-best-finish h2, .team-total-stats dt, .team-tournament-goals > span, .team-match time, .team-match-context { font: 500 .72rem/1.5 var(--mono); letter-spacing: .055em; }
.team-list, .team-tournament-list, .team-match-list { margin: 0; padding: 0; list-style: none; }
.team-item { background: var(--blue-pale); border-bottom: 1px solid rgba(16, 41, 68, .12); }
.team-row { width: min(100%, var(--content-max)); min-height: 3.78rem; margin-inline: auto; padding: .3rem var(--content-gutter); display: grid; grid-template-columns: 30% 15% minmax(0,1fr) auto; align-items: center; gap: 1rem; border: 0; color: inherit; background: transparent; text-align: left; font: inherit; cursor: pointer; transition: background .3s ease, color .3s ease; }
.team-item:hover, .team-item:focus-within { background: #c3dadd; }
.team-item.is-open { color: var(--paper); background: var(--blue); }
.team-item.is-open:hover, .team-item.is-open:focus-within { background: var(--blue); }
.team-row:focus-visible, .team-match-disclosure summary:focus-visible { outline: 3px solid #c48a27; outline-offset: -3px; }
.team-item.is-open > .team-row { color: var(--paper); }
.team-item.is-open .team-finish { color: rgba(238,243,236,.78); }
.team-item.is-open .team-finish-count, .team-item.is-open .team-chevron { color: var(--mint); }
.team-item.is-open .team-years { color: rgba(238,243,236,.62); }
.team-identity { min-width: 0; display: block; }
.team-crest { width: 2.55rem; height: 2.8rem; flex: none; object-fit: contain; }
.team-crest-fallback { display: grid; place-items: center; width: 2.55rem; height: 2.8rem; color: var(--green); background: #d6e7dc; border: 1px solid #93baa4; border-radius: .35rem .35rem .75rem .75rem; font: 700 .8rem/1 var(--serif); }
.team-crest-flag { display: grid; place-items: center; padding: .35rem; background: #d6e7dc; border: 1px solid #93baa4; border-radius: .35rem .35rem .75rem .75rem; }
.team-crest-flag img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px rgba(16,45,63,.14); }
.team-national-flag { display: inline-block; width: 1.35rem; height: .96rem; object-fit: cover; vertical-align: -.05rem; box-shadow: 0 0 0 1px rgba(16,45,63,.18); }
.team-name { min-width: 0; margin-right: .65rem; font: 700 clamp(1.5rem,1.75vw,1.625rem)/1 var(--serif); letter-spacing: -.05em; overflow-wrap: anywhere; }
.team-finish { color: #103f55; font-size: .91rem; line-height: 1.4; }
.team-finish-count { display: inline-block; margin-left: .35rem; color: var(--green); font: 500 .75rem/1.4 var(--mono); white-space: nowrap; }
.team-years { justify-self: end; color: #56727c; text-align: right; letter-spacing: .025em; }
.team-year-with-trophy { display: inline-flex; align-items: center; gap: .1rem; white-space: nowrap; }
.team-year-trophy { font: .72rem/1 var(--sans); }
.team-chevron { justify-self: end; color: var(--green); font: 1.4rem/1 var(--sans); transform: rotate(0); transition: transform .2s ease; }
.team-row[aria-expanded="true"] .team-chevron { transform: rotate(180deg); }
.team-panel { padding: clamp(1.5rem,3.5vw,3rem) max(var(--content-gutter), calc((100vw - var(--content-max)) / 2)); color: var(--ink); background: #e5eee8; border-top: 1px solid #c4d8ca; }
.team-panel[hidden] { display: none; }
.team-detail-loading { margin: 0; color: #456571; }
.team-detail-overview { display: grid; gap: clamp(1.5rem,3vw,2.2rem); padding-bottom: clamp(2rem,4vw,3rem); border-bottom: 1px solid #abcab7; }
.team-profile-heading { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.team-detail-crest { width: 4.5rem; height: 5rem; }
.team-detail-crest.team-crest-fallback { font-size: 1.4rem; }
.team-best-finish { min-width: 0; }
.team-best-finish h2 { margin: 0 0 .7rem; color: var(--green); font-size: .75rem; text-transform: uppercase; }
.team-best-finish p { margin: 0 0 .5rem; color: var(--deep); font: 700 clamp(2rem,3.7vw,3.5rem)/1.08 var(--serif); letter-spacing: -.055em; }
.team-best-finish > span { color: #456571; font: 500 clamp(1rem,2vw,1.125rem)/1.6 var(--mono); }
.team-best-year { display: inline-flex; align-items: center; gap: .2rem; white-space: nowrap; }
.team-title-trophy { font: 1em/1 var(--sans); }
.team-total-stats { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .75rem; margin: 0; }
.team-total-stats > div { min-width: 0; padding-top: .7rem; border-top: 2px solid #7fb69a; }
.team-total-stats dt { color: #557078; font-size: .68rem; text-transform: uppercase; }
.team-total-stats dd { margin: .45rem 0 0; color: var(--deep); font: 700 clamp(1.55rem,2.5vw,2.25rem)/1 var(--serif); }
.team-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.78rem; margin-top: clamp(2rem,4vw,3rem); padding: .3rem 1rem; border-bottom: 1px solid #a9cbb6; color: #145a43; background: #d8eade; cursor: pointer; list-style: none; transition: background .3s ease, color .3s ease; }
.team-history-heading::-webkit-details-marker { display: none; }
.team-history-heading::marker { content: ''; }
.team-history-heading:hover { background: #c2dec9; }
.team-history-heading:focus-visible { outline: 3px solid #0c6046; outline-offset: -3px; }
.team-history-title { font: 700 clamp(1.5rem,1.75vw,1.625rem)/1 var(--serif); letter-spacing: -.05em; }
.team-history-meta { display: inline-flex; align-items: flex-end; gap: .75rem; color: var(--green); text-transform: uppercase; white-space: nowrap; }
.team-tournament-history[open] .team-history-heading, .team-tournament-history[open] .team-history-heading:hover { color: var(--paper); background: var(--green); }
.team-tournament-history[open] .team-history-heading:focus-visible { outline-color: var(--mint); }
.team-tournament-history[open] .team-history-prompt { display: none; }
.team-history-chevron { display: inline-block; color: var(--green); font: 1.5rem/1 var(--sans); transform: rotate(0); transition: transform .2s ease; }
.team-tournament-history[open] .team-history-chevron { color: var(--mint); transform: rotate(180deg); }
.team-tournament { border-top: 1px solid #b8cfbf; }
.team-tournament:first-child { border-top: 0; }
.team-tournament-main { display: grid; grid-template-columns: minmax(9rem,1.15fr) minmax(10rem,1.3fr) minmax(5rem,.55fr) auto; align-items: center; gap: 1.5rem; padding: 1.2rem .25rem; }
.team-tournament-edition, .team-tournament-result, .team-tournament-goals { display: grid; gap: .3rem; min-width: 0; }
.team-tournament-edition strong { color: var(--deep); font: 700 clamp(1.55rem,2.2vw,2rem)/1 var(--serif); }
.team-tournament-edition span, .team-tournament-result span { color: #537078; font-size: .8rem; line-height: 1.45; }
.team-tournament-result strong { color: var(--deep); font-size: .94rem; font-weight: 600; }
.team-tournament-goals > span { color: #557078; text-transform: uppercase; }
.team-tournament-goals strong { color: var(--deep); font: 600 1rem/1.2 var(--mono); }
.team-tournament-link { display: inline-flex; align-items: center; justify-content: center; justify-self: end; min-height: 2.5rem; padding: .55rem .85rem; border: 1px solid var(--green); color: var(--paper); background: var(--green); font-size: .8rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.team-tournament-link:hover { border-color: var(--deep); color: var(--paper); background: var(--deep); }
.team-tournament-link:focus-visible { outline: 3px solid #c48a27; outline-offset: 3px; }
.team-match-disclosure { margin: 0 .25rem 1.15rem; }
.team-match-disclosure summary { width: fit-content; padding: .15rem .2rem; color: var(--green); font-size: .8rem; font-weight: 700; cursor: pointer; }
.team-match-disclosure summary span { margin-left: .25rem; color: #54736c; font: .72rem var(--mono); }
.team-match-list { margin-top: .8rem; padding: .1rem 1rem .5rem; background: #f0f5ef; }
.team-match { display: grid; grid-template-columns: 4.25rem minmax(0,1fr) 3rem 3.6rem minmax(7rem,1.1fr); align-items: center; gap: .7rem; padding: .7rem .1rem; border-bottom: 1px solid #d3e1d6; }
.team-match:last-child { border-bottom: 0; }
.team-match time { color: #57747a; }
.team-match-opponent { font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.team-match-score { color: var(--deep); font: 700 .94rem/1 var(--mono); white-space: nowrap; }
.team-match-outcome { justify-self: start; padding: .25rem .4rem; font: 700 .64rem/1.2 var(--mono); text-transform: uppercase; }
.team-match-outcome--win { color: #145a43; background: #d6eade; }
.team-match-outcome--draw { color: #235a69; background: #dce9ec; }
.team-match-outcome--loss { color: #813d32; background: #f2e0da; }
.team-match-context { display: flex; flex-wrap: wrap; gap: .2rem .6rem; color: #59747a; font-size: .68rem; letter-spacing: 0; }
.team-match-penalties { color: var(--green); }
@media (min-width: 1441px) {
  .team-row { padding-inline: 0; }
}
@media (max-width: 760px) {
  .team-total-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .team-tournament-main { grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) auto; gap: 1rem; }
  .team-tournament-goals { grid-column: 2; }
  .team-tournament-link { grid-column: 3; grid-row: 1; }
}
@media (max-width: 780px) {
  .team-row { min-height: 4.06rem; grid-template-columns: minmax(0,1fr) auto; gap: .65rem; padding-inline: 5vw; }
  .team-panel { padding-inline: 5vw; }
  .team-finish, .team-years { display: none; }
  .team-name { font-size: clamp(1.25rem, 4.5vw, 2rem); }
}
@media (max-width: 650px) {
  .team-name { margin-right: .45rem; }
  .team-national-flag { width: 1.1rem; height: .8rem; }
  .team-panel { padding-block: 1.5rem 2rem; }
  .team-total-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem 1.5rem; }
  .team-tournament-main { grid-template-columns: minmax(0,1fr) auto; gap: .7rem; }
  .team-tournament-edition { grid-column: 1; }
  .team-tournament-result { grid-column: 1; }
  .team-tournament-goals { grid-column: 2; grid-row: 2; text-align: right; }
  .team-tournament-link { grid-column: 2; grid-row: 1; }
  .team-match { grid-template-columns: 3.6rem minmax(0,1fr) 2.7rem 3.6rem; gap: .4rem; }
  .team-match-context { grid-column: 2 / -1; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 4vw; }
  .site-nav { gap: .4rem; font-size: 11px; letter-spacing: .04em; }
  .team-name { margin-right: .3rem; }
  .team-national-flag { width: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .team-row, .team-chevron, .team-history-heading, .team-history-chevron, .team-tournament-link { transition: none; } }
