/* Shared public catalogue surfaces. All identities reserve their image space. */
.football-flag {
  display: inline-block;
  width: 24px;
  height: 16px;
  object-fit: contain;
  vertical-align: -2px;
  border-radius: 2px;
  flex: none;
  margin-inline-end: 5px;
}
.entity-hero-logo .football-flag {
  width: 64px;
  height: 44px;
  margin: 0;
}
.hub-card-hero--flag .football-flag {
  width: 96px;
  height: 64px;
  margin: 0;
}
.football-crest {
  display: inline-block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  flex: none;
  margin: 0;
}
.football-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  vertical-align: middle;
  line-height: 1.35;
  color: inherit;
}
.football-identity span {
  min-width: 0;
  overflow-wrap: normal;
}
.post-body .football-identity {
  color: var(--text, #202621);
  text-decoration: none;
  border-bottom: 0;
}
.post-body a.football-identity:hover {
  color: var(--green, #0d6e3f);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.football-inline-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  vertical-align: middle;
}
a[data-football-identity]:not(.football-identity):not(.hub-card)
  > .football-crest {
  width: 1.15em;
  height: 1.15em;
  margin-inline-end: 8px;
  vertical-align: -0.18em;
}
a.football-inline-identity > .football-crest {
  margin-inline-end: 0 !important;
}

/* Editorial lists have their own indentation and row margins. These data
   components must not inherit either from the article stylesheet. */
.post-body ul.football-matches,
.post-body ul.football-entity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-body .football-entity-list > li {
  margin: 0;
}

/* Match geometry also applies to archived and unavailable-source rows. */
.football-matches:has(.football-ticket-action) {
  --football-action-width: 144px;
}
.entity-matches.football-matches li {
  display: grid;
  grid-template-columns: 88px 32px minmax(0, 1fr) var(
      --football-action-width,
      58px
    );
  gap: 16px;
  min-height: 80px;
  margin: 0;
  padding: 14px 0;
  align-items: center;
}
.football-matches .match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  font-size: 15px;
}
.football-matches .football-versus {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary, #67716b);
  text-align: center;
}
.football-matches .match-score {
  justify-self: end;
  white-space: nowrap;
  background: #edf4ef;
  color: #0d6e3f;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 14px;
  line-height: 1.2;
}
.football-matches .match-date {
  font-size: 12px;
  line-height: 1.5;
}
.entity-matches.football-matches .match-comp {
  padding: 0;
  background: transparent;
  min-width: 0;
  letter-spacing: normal;
}
.football-matches .match-comp .football-identity {
  display: flex;
  justify-content: center;
}
.football-matches .match-comp .football-crest {
  width: 26px;
  height: 26px;
}
.football-matches .match-comp .football-identity > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  display: block;
}
.entity-fixture-provenance {
  font-size: 12px !important;
  line-height: 1.6 !important;
  max-width: 65ch;
  margin: 0 0 16px;
  color: var(--text-secondary, #67716b);
}
.football-retry {
  font: inherit;
  color: var(--green, #16864b);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.football-retry:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.football-entity-list > li > a,
.football-entity-list > li > span {
  gap: 14px;
  min-height: 64px;
}
.football-entity-list .football-crest {
  width: 32px;
  height: 32px;
}
.football-stadium-thumb {
  width: 64px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
}
.football-stadium-thumb.football-image-fallback {
  object-fit: contain;
  background: #eaf1ec;
}
.football-archive {
  margin-top: 12px;
}
.football-archive > summary {
  padding: 12px 0;
  color: var(--text-secondary, #67716b);
  font-size: 14px;
  cursor: pointer;
}
.football-archive .entity-list-name {
  font-size: 15px;
}

/* Put the entity identity before the photograph, within one bounded overview. */
.football-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 36px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 32px;
}
.football-overview > .entity-hero {
  padding: 20px 0;
  border: 0;
  background: none;
  min-width: 0;
}
.football-overview .entity-hero .container {
  padding: 0;
  max-width: none;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
}
.football-overview .entity-hero-logo {
  width: 68px;
  height: 68px;
  padding: 8px;
  border-radius: 12px;
}
.football-overview .entity-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}
.football-overview .entity-hero-sub {
  font-size: 14px;
  line-height: 1.8;
}
.football-cover {
  margin: 0;
  min-width: 0;
}
.football-cover .entity-banner {
  max-width: none;
  max-height: 250px;
  border-radius: 10px;
}
.football-cover .entity-banner img {
  width: 100%;
  height: 240px;
  max-height: 250px;
  object-fit: cover;
}
.football-cover .entity-media-credit {
  padding: 0;
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.5;
}
.entity-facts {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border: 1px solid var(--border, #dde2dc);
  border-radius: 10px;
  overflow: hidden;
}
.entity-facts > li {
  padding: 16px;
  border: 0;
  min-width: 0;
}
.entity-facts dt {
  font-size: 10px;
  margin-bottom: 8px;
}
.entity-facts dd {
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.entity-facts .football-crest {
  width: 22px;
  height: 22px;
  vertical-align: -5px;
  margin-inline-end: 5px;
}

.football-ticket-disclosure {
  font-size: 11px !important;
  line-height: 1.6 !important;
  color: var(--text-secondary, #67716b);
  margin-top: 12px !important;
}
.football-ticket-action,
.post-body .football-ticket-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d6e3f;
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  padding: 10px 12px;
  white-space: nowrap;
}
.football-ticket-action:hover,
.post-body .football-ticket-action:hover {
  background: #09542e;
  color: white;
  text-decoration: none;
}
.football-ticket-action:focus-visible,
.football-ticket-jump:focus-visible {
  outline: 3px solid #d5a53d;
  outline-offset: 3px;
}
.football-matches .football-ticket-action {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.football-ticket-action svg {
  flex: 0 0 14px;
}
.football-ticket-jump {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #0d6e3f;
  border-radius: 7px;
  padding: 9px 14px;
  color: #0d6e3f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 18px;
}
#football-tickets {
  scroll-margin-top: 90px;
}

@media (max-width: 720px) {
  .entity-matches.football-matches li {
    grid-template-columns: 28px minmax(0, 1fr) 54px;
    gap: 8px 12px;
    padding: 14px 0;
  }
  .football-matches .match-date {
    grid-row: 1;
    grid-column: 2/4;
    font-size: 11px;
  }
  .football-matches .match-comp {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
  }
  .football-matches .match-teams {
    grid-row: 2;
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    font-size: 14px;
  }
  .football-matches .football-identity {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .football-matches .football-identity > span {
    overflow-wrap: anywhere;
  }
  .football-matches .football-versus {
    display: none;
  }
  .football-matches .match-score {
    grid-row: 2;
    grid-column: 3;
    font-size: 13px;
  }
  .football-matches .football-crest {
    width: 25px;
    height: 25px;
  }
  .football-has-ticket .football-ticket-action {
    grid-column: 2/4;
    grid-row: 3;
    justify-self: start;
    margin-top: 2px;
    width: auto;
    min-width: 144px;
  }
  .football-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .football-overview > .entity-hero {
    padding: 0;
  }
  .football-overview .entity-hero h1 {
    font-size: 29px;
  }
  .football-cover .entity-banner img {
    height: 185px;
  }
  .entity-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .entity-facts > li {
    padding: 14px;
  }
  .football-entity-list .entity-list-meta {
    font-size: 11px;
  }
}
/* The approved France crest is white artwork and needs a contrasting plate. */
.football-crest[src*="/france-national-team/"] {
  background: #1c3553;
  border-radius: 4px;
  padding: 2px;
}
.football-cover .entity-banner .football-image-fallback {
  object-fit: contain;
  padding: 40px;
  background: #eaf1ec;
}
