/* Only loaded on canonical team pages; preserve editorial sidebar content below the profile. */
#content #con:has(.team-profile) { display: block; }
#content #con:has(.team-profile) > main { display: block; width: 100%; padding-right: 0; }
#content #con:has(.team-profile) > aside { display: block; width: 100%; padding: 20px 0 0; border-top: 1px solid #c8d3d9; }
.team-profile {
    margin: 0 0 32px;
    color: #122333;
    font-family: 'open_sansregular', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    container-type: inline-size;
}
.team-profile *, .team-profile *::before, .team-profile *::after { box-sizing: border-box; }
.team-profile .team-profile__panel {
    padding: 20px;
    border: 1px solid #c8d3d9;
    border-radius: 4px;
    background: #fff;
    min-width: 0;
}
.team-profile h2, .team-profile h3, .team-profile p { margin: 0; padding: 0; }
.team-profile h2 { font-size: 20px; line-height: 1.3; text-transform: none; }
.team-profile h3 { font-size: 17px; line-height: 1.4; text-transform: none; }
.team-profile p { margin-top: 12px; }
.team-profile .team-profile__heading { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.team-profile__heading > span, .team-profile small, .team-profile .team-profile__muted { font-size: 12px; color: #51616d; }
.team-profile .team-profile__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; }
.team-profile dt, .team-profile dd { padding: 0; margin: 0; }
.team-profile .team-profile__stats dd { font-family: 'open_sansextrabold', Arial, sans-serif; font-size: 32px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.team-profile .team-profile__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 20px; }
.team-profile .team-profile__form ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.team-profile .team-profile__form small { flex-basis: 100%; }
.team-profile .team-profile__result { list-style: none; margin: 0; padding: 0; background: #edf0f3; color: #344958; border-radius: 3px; }
.team-profile .team-profile__result--S { color: #185b3d; background: #e4f1e9; }
.team-profile .team-profile__result--N { color: #a52737; background: #f9e9ec; }
.team-profile .team-profile__result a, .team-profile .team-profile__result > span { display: grid; place-items: center; min-width: 36px; min-height: 36px; color: inherit; font-weight: bold; text-decoration: none; }
.team-profile .team-profile__columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 18px; margin-top: 18px; }
.team-profile .team-profile__duel { border-top: 3px solid #08579e; }
.team-profile .team-profile__eyebrow { color: #08579e; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.team-profile .team-profile__versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; text-align: center; margin-top: 22px; }
.team-profile .team-profile__versus strong { font-size: 16px; overflow-wrap: break-word; }
.team-profile .team-profile__fixture-meta { text-align: center; }
.team-profile .team-profile__fixture-meta > span { display: block; font-size: 12px; margin-top: 5px; }
.team-profile .team-profile__match-link { display: block; padding: 10px 12px; margin-top: 16px; text-align: center; background: #08579e; color: #fff; text-decoration: none; border-radius: 3px; }
.team-profile .team-profile__match-link:hover { background: #122333; }
.team-profile a:focus-visible, .team-profile summary:focus-visible { outline: 2px solid #08579e; outline-offset: 3px; }
.team-profile .team-profile__balance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #c8d3d9; text-align: center; }
.team-profile .team-profile__balance > div { display: flex; flex-direction: column-reverse; }
.team-profile .team-profile__balance dt { font-size: 12px; }
.team-profile .team-profile__balance dd { font-size: 25px; font-variant-numeric: tabular-nums; }
.team-profile .team-profile__history { margin-top: 16px; border-top: 1px solid #c8d3d9; }
.team-profile .team-profile__history summary { padding: 12px 0; cursor: pointer; color: #08579e; font-weight: bold; }
.team-profile .team-profile__history ol { padding: 0; margin: 0; list-style: none; }
.team-profile .team-profile__history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #e1e6ea; list-style: none; }
.team-profile .team-profile__history li > div { min-width: 0; }
.team-profile .team-profile__history small { display: block; margin-bottom: 4px; }
.team-profile .team-profile__history li > a, .team-profile .team-profile__history li > strong { font-weight: bold; white-space: nowrap; font-variant-numeric: tabular-nums; }
.team-profile .team-profile__venues { list-style: none; padding: 0; margin: 16px 0 0; }
.team-profile .team-profile__venues li { padding: 0 0 16px; margin: 0; list-style: none; }
.team-profile .team-profile__venues li + li { padding-top: 16px; border-top: 1px solid #c8d3d9; }
.team-profile .team-profile__venues p { margin-top: 4px; }
.team-profile .team-profile__audience { border-top: 1px solid #c8d3d9; padding-top: 16px; margin: 0; }
.team-profile .team-profile__audience > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 8px; }
.team-profile .team-profile__audience dd { font-weight: bold; font-variant-numeric: tabular-nums; }
.team-profile .team-profile__teamstats { border-top: 1px solid #e1e6ea; margin-top: 20px; padding-top: 18px; }
.team-profile .team-profile__teamstats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; }
.team-profile .team-profile__teamstats dd { font-size: 25px; font-weight: bold; font-variant-numeric: tabular-nums; }
.team-profile .team-profile__players { margin-top: 18px; }
.team-profile .team-profile__player-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 22px; }
.team-profile .team-profile__leaders { padding: 0; margin: 10px 0 0; list-style: none; }
.team-profile .team-profile__leaders li { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 12px 0; border-bottom: 1px solid #e1e6ea; }
.team-profile .team-profile__leaders li > div { min-width: 0; overflow-wrap: break-word; }
.team-profile .team-profile__leaders li > span { flex-shrink: 0; white-space: nowrap; font-size: 12px; }
.team-profile .team-profile__leaders li > span strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.team-profile .team-profile__leaders small, .team-profile .team-profile__roster small { display: block; }
.team-profile .team-profile__roster { margin-top: 20px; border-top: 1px solid #c8d3d9; }
.team-profile .team-profile__roster summary { cursor: pointer; padding: 14px 0; color: #08579e; font-weight: bold; }
.team-profile .team-profile__roster > p { margin: 0 0 12px; }
.team-profile .team-profile__roster ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.team-profile .team-profile__roster li { display: flex; align-items: center; gap: 12px; border-top: 1px solid #e1e6ea; padding: 12px 0; list-style: none; margin: 0; min-width: 0; }
.team-profile .team-profile__roster li > div { min-width: 0; overflow-wrap: break-word; }
.team-profile .team-profile__shirt { flex: 0 0 32px; text-align: center; color: #51616d; font-variant-numeric: tabular-nums; }
.team-profile .team-profile__sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 620px) {
    .team-profile .team-profile__columns { grid-template-columns: minmax(0, 1fr); }
    .team-profile .team-profile__teamstats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-profile .team-profile__player-highlights, .team-profile .team-profile__roster ul { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 360px) {
    .team-profile .team-profile__panel { padding: 16px; }
    .team-profile .team-profile__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-profile .team-profile__balance { grid-template-columns: 1fr; text-align: left; }
    .team-profile .team-profile__balance > div { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 12px; }
    .team-profile .team-profile__balance dd { min-width: 32px; }
    .team-profile .team-profile__versus strong { font-size: 14px; }
}
@media (pointer: coarse) {
    .team-profile .team-profile__result a, .team-profile .team-profile__result > span { min-width: 40px; min-height: 44px; }
    .team-profile .team-profile__history li > a { padding: 12px 0; }
}
@media (max-width: 680px) {
    .team-profile .team-profile__columns { grid-template-columns: minmax(0, 1fr); }
}
