/* ==========================================================================
   match-h2h.css — H2H (logo · handshake · logo + bilans last5)
   Wymaga: variables.css, analytical-match-card-3.css (--a3-row-h, --a3-row-gap)
   ========================================================================== */

.match-h2h {
  --h2h-mark: 28px;
  --h2h-icon-size: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: var(--a3-block-h, 54px);
  padding: 0 var(--space-0) 0 var(--space-10);
  border-left: 1px solid var(--border);
}

html[data-theme="dark"] .match-h2h {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.match-h2h__grid {
  display: grid;
  grid-template-columns: repeat(3, var(--h2h-mark));
  justify-content: center;
  align-items: start;
  column-gap: var(--space-10);
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

.match-h2h__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--a3-row-gap, var(--space-10));
  width: var(--h2h-mark);
  min-width: 0;
}

.match-h2h__mark,
.match-h2h__stat {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--h2h-mark);
  text-align: center;
}

.match-h2h__mark {
  height: var(--h2h-mark);
}

.match-h2h__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.match-h2h__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin-right: 4px;
  font-size: var(--h2h-icon-size);
  line-height: 1;
  color: #333333;
}

.match-h2h__icon::before {
  display: block;
  line-height: 1;
}

html[data-theme="dark"] .match-h2h__icon {
  color: #ffffff;
}

.match-h2h__stat {
  height: var(--a3-row-h, 22px);
  min-width: var(--h2h-mark);
  font-size: var(--fs-14);
  font-weight: var(--fw-500);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--fg);
}

.category-leagues[data-match-layout="analytical-3"] .analytical-match-card-3__cell--h2h {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--a3-block-h);
  min-width: 0;
  padding-left: 0;
}
