.kndsb-team-match {
  background: var(--kndsb-color-blue-white);
  border: 1px solid rgba(6, 60, 120, .14);
  border-bottom: 1px solid var(--kndsb-color-border);
  border-radius: 0;
  box-sizing: border-box;
  color: #20252a;
  font-family: "basic-sans", sans-serif;
  padding: 44px 30px 0;
  position: relative;
}

.kndsb-team-match__competition {
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  left: 50%;
  min-width: 230px;
  padding: 12px 26px;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  top: 0;
  transform: translate(-50%, -50%);
}

.kndsb-team-match__competition > * { transform: none; }

.kndsb-team-match__main {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  min-height: 170px;
  text-align: center;
}

.kndsb-team-match__team {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.kndsb-team-match__team p {
  color: #303030;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.kndsb-team-match__logo,
.kndsb-team-match__logo-button img {
  height: 72px;
  object-fit: contain;
  width: 72px;
}

.kndsb-team-match__logo-button {
  align-items: center;
  background: #fff;
  border: 1px dashed #aebdca;
  color: var(--kndsb-color-blue);
  display: inline-flex;
  font-size: 11px;
  height: 72px;
  justify-content: center;
  padding: 0;
  width: 72px;
}

.kndsb-team-match__date {
  color: var(--kndsb-color-orange);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.kndsb-team-match__value {
  color: #000;
  font-size: clamp(2.5rem, 5vw, 3.7rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  margin: 0;
}

.kndsb-match-list--program .kndsb-team-match__value--score,
.kndsb-match-list--results .kndsb-team-match__value--time { display: none; }

.kndsb-team-match__footer {
  align-items: center;
  border-top: 1px solid #cddad5;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 74px;
}

.kndsb-team-match__footer p {
  color: #20252a;
  font-size: 16px;
  margin: 0;
}

.kndsb-team-match__pin {
  color: var(--kndsb-color-orange);
  font-size: 15px;
}

.kndsb-team-match__button {
  background: var(--kndsb-color-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 18px;
  text-decoration: none;
}

.kndsb-team-match__button:hover,
.kndsb-team-match__button:focus-visible { background: var(--kndsb-color-blue); }

@media (max-width: 700px) {
  .kndsb-team-match { padding: 52px 18px 0; }
  .kndsb-team-match__main { grid-template-columns: 1fr 110px 1fr; }
  .kndsb-team-match__team p { font-size: 16px; }
  .kndsb-team-match__logo,
  .kndsb-team-match__logo-button img { height: 54px; width: 54px; }
  .kndsb-team-match__logo-button { height: 54px; width: 54px; }
  .kndsb-team-match__footer { grid-template-columns: auto 1fr; padding: 14px 0; }
  .kndsb-team-match__button { grid-column: 1 / -1; text-align: center; }
}
/* Original match composition, with straight edges. */
.kndsb-team-match { border-radius: 0; border: 0; background: #e4efeb; }
.kndsb-team-match__meta { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.kndsb-team-match__date { display: block; margin: 0; }
.kndsb-team-match__competition { box-sizing: border-box; min-width: 0; max-width: calc(100% - 32px); width: max-content; transform: translate(-50%, -50%); }
.kndsb-team-match__footer { grid-template-columns: auto minmax(0, 1fr); }
.kndsb-team-match__footer a { color: inherit; text-decoration: none; }
.kndsb-team-match__footer a:hover, .kndsb-team-match__footer a:focus-visible { text-decoration: underline; }
.kndsb-team-match__location-icon { color: var(--kndsb-color-orange); }
@media (max-width: 480px) {
 .kndsb-team-match__main { grid-template-columns: minmax(0,1fr) 94px minmax(0,1fr); gap: 10px; }
 .kndsb-team-match__date { font-size: 12px; }
 .kndsb-team-match__value { font-size: 2rem; }
 .kndsb-team-match__team p { font-size: 14px; overflow-wrap: anywhere; }
}
/* Separate rows keep the score aligned with the logos, regardless of name length. */
.kndsb-team-match__main { grid-template-rows: auto auto auto; column-gap: 24px; row-gap: 12px; padding-block: 12px 24px; }
.kndsb-team-match__team, .kndsb-team-match__meta, .kndsb-team-match__center { display: contents; }
.kndsb-team-match__main .kndsb-team-match__date { grid-column: 2; grid-row: 1; justify-self: center; }
.kndsb-team-match__main .kndsb-team-match__value { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; }
.kndsb-team-match__team > :is(img, button) { grid-row: 2; align-self: center; justify-self: center; }
.kndsb-team-match__team > p { grid-row: 3; align-self: start; }
.kndsb-team-match__team:first-child > * { grid-column: 1; }
.kndsb-team-match__team:last-child > * { grid-column: 3; }
@media (max-width: 480px) { .kndsb-team-match__main { column-gap: 10px; } }
/* Basic Sans numerals sit above the visual centre of their line box. */
.kndsb-team-match__main .kndsb-team-match__value { transform: translateY(.08em); }
