/* v3.7.8.0 encyclopedia-wide visual normalization. Encyclopedia only. */
.fke-encyclopedia{--fke-v378-content:1080px;--fke-v378-gap:16px;--fke-v378-line:#e7ddcd;--fke-v378-cream:#f8f4ec;--fke-v378-navy:#09233f;--fke-v378-gold:#a97828}

/* One content track for every encyclopedia detail page. */
.fke-encyclopedia :is(.fke-kit-reconstruction,.fke-player-profile,.fke-team-profile,.fke-national-team-profile,.fke-country-profile-v3760__layout,.fke-brand-archive,.fke-competition-profile,.fke-story-profile,.fke-sponsor-profile,.fke-collection-profile,.fke-event-profile){width:min(var(--fke-v378-content),calc(100% - 32px));max-width:var(--fke-v378-content);margin-left:auto!important;margin-right:auto!important}
.fke-encyclopedia :is(.fke-country-profile-v3760__layout,.fke-national-team-profile,.fke-team-profile,.fke-player-profile,.fke-brand-archive,.fke-competition-profile,.fke-story-profile){gap:var(--fke-v378-gap)}

/* Detail sections should read like a compact reference database, not landing-page billboards. */
.fke-encyclopedia :is(.fke-country-profile-v3760__panel,.fke-national-team-profile__section,.fke-team-profile__section,.fke-player-profile__section,.fke-brand-archive__panel,.fke-competition-profile__panel,.fke-story-profile__section,.fke-v377-panel,.fke-related-entities,.fke-kit-timeline,.fke-story-list,.fke-source-record){padding:18px!important;border-radius:12px!important;margin-top:0!important;margin-bottom:0!important}
.fke-encyclopedia :is(.fke-country-profile-v3760__panel,.fke-national-team-profile__section,.fke-team-profile__section,.fke-player-profile__section,.fke-brand-archive__panel,.fke-competition-profile__panel,.fke-story-profile__section) h2{font-size:clamp(24px,2.3vw,34px)!important;line-height:1.08!important;margin:2px 0 0!important}
.fke-encyclopedia .fke-eyebrow{font-size:10px!important;letter-spacing:.12em!important}

/* Shared compact entity-card mode used inside relation/detail modules. */
.fke-encyclopedia .fke-entity-card.is-compact{min-height:0!important;height:auto!important;border:1px solid var(--fke-v378-line)!important;border-radius:12px!important;background:#fff!important;overflow:hidden!important}
.fke-encyclopedia .fke-entity-card.is-compact .fke-entity-card__link{display:flex!important;align-items:center!important;gap:12px!important;min-height:96px!important;height:auto!important;padding:12px!important;color:inherit!important;text-decoration:none!important}
.fke-encyclopedia .fke-entity-card.is-compact .fke-entity-card__body{display:grid!important;align-content:center!important;gap:3px!important;min-width:0!important;padding:0!important}
.fke-encyclopedia .fke-entity-card.is-compact .fke-entity-card__type{font-size:9px!important;letter-spacing:.11em!important}
.fke-encyclopedia .fke-entity-card.is-compact h3{margin:0!important;font-size:18px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.fke-encyclopedia .fke-entity-card.is-compact p,
.fke-encyclopedia .fke-entity-card.is-compact small{margin:0!important;font-size:11px!important;line-height:1.35!important;color:#647286!important}
.fke-encyclopedia .fke-entity-card.is-compact strong{margin-top:3px!important;font-size:11px!important;color:#07508a!important}

/* Player portrait: 72px in relation contexts instead of a giant poster. */
.fke-encyclopedia .fke-player-card.is-compact .fke-player-card__media{width:72px!important;height:72px!important;min-height:72px!important;flex:0 0 72px!important;border-radius:12px!important;overflow:hidden!important;background:#f3eee4!important}
.fke-encyclopedia .fke-player-card.is-compact .fke-player-card__media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 18%!important}
.fke-encyclopedia .fke-player-card.is-compact .fke-player-card__placeholder{width:100%!important;height:100%!important;display:grid!important;place-items:center!important;font:700 24px Georgia,serif!important;color:#9c793d!important;background:#f3eee4!important}
.fke-encyclopedia .fke-player-card.is-compact .fke-player-card__number{right:3px!important;bottom:3px!important;top:auto!important;font-size:9px!important;padding:3px 5px!important}
.fke-encyclopedia .fke-player-card.is-compact .fke-player-card__meta-line{display:flex!important;flex-wrap:wrap!important;gap:5px 8px!important;font-size:11px!important}
.fke-encyclopedia .fke-player-card.is-compact .fke-player-card__country img{width:18px!important;height:12px!important;object-fit:cover!important}

/* Logos/flags in compact relation cards. */
.fke-encyclopedia :is(.fke-team-card,.fke-country-card,.fke-brand-card,.fke-competition-card,.fke-sponsor-card).is-compact :is(.fke-team-card__mark,.fke-brand-card__mark,.fke-sponsor-card__mark,.fke-entity-card__image){width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important;flex:0 0 64px!important;object-fit:contain!important;border-radius:12px!important}
.fke-encyclopedia .fke-country-card.is-compact>a>.fke-entity-card__image,
.fke-encyclopedia .fke-competition-card.is-compact>a>.fke-entity-card__image{padding:6px!important;background:#faf7f1!important;border:1px solid var(--fke-v378-line)!important}

/* Generic relation grids: three compact columns, never billboard cards. */
.fke-encyclopedia :is(.fke-related-entities__grid,.fke-national-team-profile__relation-grid,.fke-player-profile__relation-grid){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important}
.fke-encyclopedia .fke-related-entities__grid>.fke-entity-card{min-width:0!important}

/* Country detail: remove the oversized dark national-team banner. */
.fke-encyclopedia .fke-country-profile-v3760__national{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;gap:16px!important;align-items:center!important;padding:16px!important;border:1px solid var(--fke-v378-line)!important;border-radius:12px!important;background:#fff!important;color:inherit!important}
.fke-encyclopedia .fke-country-profile-v3760__national .fke-country-profile-v3760__section-copy{padding:0!important}
.fke-encyclopedia .fke-country-profile-v3760__national .fke-country-profile-v3760__section-copy h2{font-size:25px!important;color:#26384a!important}
.fke-encyclopedia .fke-country-profile-v3760__national .fke-country-profile-v3760__section-copy p:not(.fke-eyebrow){display:none!important}
.fke-encyclopedia .fke-country-profile-v3760__national-card{padding:0!important;background:transparent!important}
.fke-encyclopedia .fke-country-profile-v3760__national-card .fke-team-card{max-width:none!important}

/* Country and national-team player sections stay useful even with many people. */
.fke-encyclopedia :is(.fke-country-profile-v3760__player-grid,.fke-national-team-profile__player-grid){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.fke-encyclopedia :is(.fke-country-profile-v3760__players,.fke-national-team-profile__players){overflow:visible!important}

/* Kit/entity grids inside detail pages use moderate heights. */
.fke-encyclopedia :is(.fke-country-profile-v3760__kit-grid,.fke-national-team-profile__kit-grid,.fke-team-profile__kit-grid,.fke-player-profile__kit-grid,.fke-brand-archive__featured-grid,.fke-competition-profile__featured-grid,.fke-story-profile__kit-grid,.fke-v377-kit-grid){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.fke-encyclopedia :is(.fke-country-profile-v3760__kit-grid,.fke-national-team-profile__kit-grid,.fke-team-profile__kit-grid,.fke-player-profile__kit-grid,.fke-brand-archive__featured-grid,.fke-competition-profile__featured-grid,.fke-story-profile__kit-grid,.fke-v377-kit-grid) .fke-kit-card__image{aspect-ratio:1.15/1!important;min-height:0!important;padding:10px!important}
.fke-encyclopedia :is(.fke-country-profile-v3760__kit-grid,.fke-national-team-profile__kit-grid,.fke-team-profile__kit-grid,.fke-player-profile__kit-grid,.fke-brand-archive__featured-grid,.fke-competition-profile__featured-grid,.fke-story-profile__kit-grid,.fke-v377-kit-grid) .fke-kit-card__body{padding:11px 12px 12px!important}

/* Archive/search cards: balanced, not giant. */
.fke-encyclopedia :is(.fke-v377-entity-grid,.fke-search-v377__grid,.fke-player-archive__grid,.fke-country-archive-v3751__grid){gap:12px!important}
.fke-encyclopedia .fke-search-v377__grid .fke-player-card__media,
.fke-encyclopedia .fke-player-archive__grid .fke-player-card__media{aspect-ratio:4/3!important;min-height:0!important;max-height:190px!important}
.fke-encyclopedia .fke-search-v377__grid .fke-player-card__media img,
.fke-encyclopedia .fke-player-archive__grid .fke-player-card__media img{object-position:50% 18%!important}

/* Story/collection/event imagery remains visual without swallowing the page. */
.fke-encyclopedia :is(.fke-collection-card__media,.fke-event-card__media){height:150px!important}
.fke-encyclopedia .fke-story-card__media{max-height:180px!important;overflow:hidden!important}
.fke-encyclopedia .fke-story-card__media img{width:100%!important;height:180px!important;object-fit:cover!important}

/* Empty image states should stay small. */
.fke-encyclopedia :is(.fke-player-card,.fke-team-card,.fke-brand-card,.fke-country-card,.fke-competition-card,.fke-sponsor-card).no-photo .fke-player-card__media{max-height:190px!important}

/* Mobile/tablet normalization. */
@media(max-width:980px){
 .fke-encyclopedia :is(.fke-related-entities__grid,.fke-national-team-profile__relation-grid,.fke-player-profile__relation-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .fke-encyclopedia :is(.fke-country-profile-v3760__player-grid,.fke-national-team-profile__player-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .fke-encyclopedia :is(.fke-country-profile-v3760__kit-grid,.fke-national-team-profile__kit-grid,.fke-team-profile__kit-grid,.fke-player-profile__kit-grid,.fke-brand-archive__featured-grid,.fke-competition-profile__featured-grid,.fke-story-profile__kit-grid,.fke-v377-kit-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
 .fke-encyclopedia :is(.fke-kit-reconstruction,.fke-player-profile,.fke-team-profile,.fke-national-team-profile,.fke-country-profile-v3760__layout,.fke-brand-archive,.fke-competition-profile,.fke-story-profile,.fke-sponsor-profile,.fke-collection-profile,.fke-event-profile){width:calc(100% - 24px)!important}
 .fke-encyclopedia .fke-country-profile-v3760__national{grid-template-columns:1fr!important}
 .fke-encyclopedia :is(.fke-related-entities__grid,.fke-national-team-profile__relation-grid,.fke-player-profile__relation-grid,.fke-country-profile-v3760__player-grid,.fke-national-team-profile__player-grid){grid-template-columns:1fr!important}
 .fke-encyclopedia .fke-entity-card.is-compact .fke-entity-card__link{min-height:86px!important;padding:10px!important}
 .fke-encyclopedia .fke-player-card.is-compact .fke-player-card__media{width:64px!important;height:64px!important;flex-basis:64px!important}
}

/* Country networks use a dense four-column matrix on desktop. */
.fke-encyclopedia .fke-country-profile-v3760__players>.fke-related-entities__grid,
.fke-encyclopedia .fke-country-profile-v3760__clubs>.fke-related-entities__grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:980px){
 .fke-encyclopedia .fke-country-profile-v3760__players>.fke-related-entities__grid,
 .fke-encyclopedia .fke-country-profile-v3760__clubs>.fke-related-entities__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
 .fke-encyclopedia .fke-country-profile-v3760__players>.fke-related-entities__grid,
 .fke-encyclopedia .fke-country-profile-v3760__clubs>.fke-related-entities__grid{grid-template-columns:1fr!important}
}


/* v3.7.8.7 — Competition detail width normalization.
 * One responsive viewport track only: the main owns the width and the inner
 * profile fills it. This prevents nested 1080px tracks from overflowing at
 * browser zoom / high-DPI layouts and keeps all four summary cells visible.
 */
body.single-competition .fke-main.fke-competition-page{
  width:min(960px,calc(100vw - 64px))!important;
  max-width:960px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:32px 0 52px!important;
  overflow:visible!important;
}
body.single-competition .fke-main.fke-competition-page .fke-competition-profile{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  min-width:0!important;
}
body.single-competition .fke-competition-profile__hero.no-facts{
  grid-template-columns:minmax(0,1fr)!important;
}
body.single-competition .fke-competition-profile__hero.has-facts{
  grid-template-columns:minmax(0,1fr) 270px!important;
}
body.single-competition .fke-competition-profile__summary{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  min-width:0!important;
}
body.single-competition .fke-competition-profile__summary>div{
  min-width:0!important;
}
body.single-competition .fke-competition-profile__panel,
body.single-competition .fke-competition-profile__lower-grid,
body.single-competition .fke-competition-profile__aside{
  min-width:0!important;
}
@media(max-width:1040px){
  body.single-competition .fke-main.fke-competition-page{
    width:calc(100vw - 40px)!important;
    max-width:960px!important;
    padding-top:26px!important;
  }
  body.single-competition .fke-competition-profile__hero.has-facts{
    grid-template-columns:1fr!important;
  }
  body.single-competition .fke-competition-profile__facts{
    border-left:0!important;
    border-top:1px solid #d9c8a6!important;
  }
}
@media(max-width:700px){
  body.single-competition .fke-main.fke-competition-page{
    width:100%!important;
    max-width:none!important;
    padding:18px 12px 72px!important;
  }
  body.single-competition .fke-competition-profile__hero{
    margin:0!important;
    padding:17px!important;
    border-left:1px solid var(--fke-line)!important;
    border-right:1px solid var(--fke-line)!important;
    border-radius:12px!important;
  }
  body.single-competition .fke-competition-profile__summary{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.single-competition .fke-competition-profile__summary>div:nth-child(2n){border-right:0!important}
  body.single-competition .fke-competition-profile__summary>div:nth-child(-n+2){border-bottom:1px solid var(--fke-line)!important}
}
@media(max-width:430px){
  body.single-competition .fke-competition-profile__summary{
    grid-template-columns:1fr 1fr!important;
  }
  body.single-competition .fke-competition-profile__summary strong{font-size:22px!important}
  body.single-competition .fke-competition-profile__summary span{font-size:9px!important}
}
