.resum-classificacions {
  --resum-vermell: #c8102e;
  --resum-text: #14213d;
  --resum-secundari: #475569;
  --resum-vora: #e2e8f0;
  background: #f5f7fb;
}

.resum-contingut {
  padding-block: 22px 44px;
}

.resum-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--resum-vora);
}

.resum-contingut [hidden] {
  display: none;
}

.resum-contingut button {
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  color: var(--resum-text);
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 7px;
  padding: 7px 11px;
  cursor: pointer;
}

.resum-filtres button[aria-pressed="true"] {
  background: var(--resum-vermell);
  border-color: var(--resum-vermell);
  color: #fff;
}

.resum-contingut :is(button, a):focus-visible {
  outline: 3px solid var(--resum-vermell);
  outline-offset: 2px;
}

.resum-grup h2 {
  margin: 24px 0 12px;
  border-inline-start: 4px solid var(--resum-vermell);
  padding-inline-start: 9px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.resum-targetes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resum-targeta {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.resum-targeta-capcalera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
}

.resum-targeta h3 {
  margin: 0;
  font-size: 1.18rem;
}

.resum-competicio,
.resum-posicio,
.resum-missatge {
  font-size: .86rem;
  color: var(--resum-secundari);
}

.resum-competicio {
  margin: 3px 0 0;
}

.resum-posicio {
  flex: none;
  padding: 4px 8px;
  background: #f1f5f9;
  border-radius: 6px;
  font-weight: 750;
}

.resum-missatge {
  margin: 0;
  padding: 8px 15px 15px;
}

.resum-classificacions .resum-taula {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}

.resum-classificacions .resum-taula thead {
  background: #f8fafc;
  color: #334155;
  font-size: .8rem;
}

.resum-taula :is(th, td) {
  padding: 6px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: right;
}

.resum-taula :is(th, td):first-child {
  width: 52px;
  text-align: center;
}

.resum-taula :is(th, td):nth-child(2) {
  text-align: left;
  overflow-wrap: anywhere;
}

.resum-taula :is(th, td):last-child {
  padding-inline-end: 15px;
}

.resum-parets {
  background: #fff5f6;
  font-weight: 750;
}

.resum-parets td:first-child {
  box-shadow: inset 3px 0 var(--resum-vermell);
}

.resum-nom-equip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.resum-nom-equip img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex: none;
}

.resum-posicio-color {
  display: inline-block;
  min-width: 2ch;
  padding-inline: 2px;
  border-bottom: 3px solid var(--resum-color-fcf);
  line-height: 1.15;
}

.resum-enllac {
  display: block;
  margin-top: auto;
  padding: 10px 15px;
  color: var(--resum-vermell);
  font-size: .88rem;
  font-weight: 750;
}

.resum-enllac:hover {
  text-decoration: underline;
}

@media (max-width: 650px) {
  .resum-targetes { grid-template-columns: minmax(0, 1fr); }
  .resum-taula :is(th, td) { padding-inline: 6px; }
  .resum-taula :is(th, td):first-child { width: 39px; }
}
