/* Forma recente do calendário público: superfície clara também no tema escuro. */
.cal-block-title--resultados { margin-bottom: 1rem; }

.cal-forma {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  color: #172b21;
  color-scheme: light;
  background: #f8faf9;
  border: 1px solid #e0e7e2;
  border-radius: 16px;
}

.cal-forma__cabecalho {
  flex: 0 0 auto;
}

.cal-forma__cabecalho h3 {
  margin: 0;
  color: #172b21;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cal-forma__conteudo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.cal-forma__partidas {
  display: flex;
  gap: .4rem;
  flex: 0 0 auto;
}

.cal-forma__partida {
  --cal-forma-acento: #0e7348;
  width: 66px;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .27rem;
  padding: .32rem .25rem;
  color: #293d32;
  background: #fff;
  border: 1px solid #e0e8e2;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cal-forma__partida--draw { --cal-forma-acento: #7a8582; }
.cal-forma__partida--loss { --cal-forma-acento: #c8333d; }
.cal-forma__partida:hover,
.cal-forma__partida:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cal-forma-acento);
  box-shadow: 0 8px 20px rgba(16, 57, 34, .11);
}
.cal-forma__partida:focus-visible {
  outline: 2px solid var(--cal-forma-acento);
  outline-offset: 2px;
}
.cal-forma__partida.is-selecionada {
  border-color: var(--cal-forma-acento);
  box-shadow: inset 0 0 0 1px var(--cal-forma-acento);
}

.cal-forma__placar {
  display: block;
  width: 100%;
  padding: .22rem .15rem;
  color: #173329;
  background: #e8edeb;
  border-radius: 7px;
  font-family: var(--font-heading);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.cal-forma__placar span { opacity: .6; }
.cal-forma__partida--win .cal-forma__placar { color: #062d1c; background: #39b57a; }
.cal-forma__partida--draw .cal-forma__placar { color: #4d5b58; background: #e8edeb; }
.cal-forma__partida--loss .cal-forma__placar { color: #a82431; background: #fae7e9; }

.cal-forma__escudo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.cal-forma__escudo--vazio {
  display: grid;
  place-items: center;
  color: #829589;
  background: #edf2ee;
  border-radius: 50%;
  font-size: 1.05rem;
}
.cal-forma__resumo {
  flex: 1;
  min-width: 0;
  padding: .45rem 0 .45rem 1rem;
  border-left: 1px solid #dce7df;
}
.cal-forma__resumo p {
  margin: 0;
  color: #5b6f60;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.cal-forma__resumo p::-webkit-scrollbar { display: none; }
.cal-forma__resumo p:focus-visible { outline: 2px solid #0e7348; outline-offset: 2px; }

.cal-forma__vazio {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 1;
  color: #65766a;
}
.cal-forma__vazio i { color: #0e7348; }
.cal-forma__vazio p { margin: 0; font-size: .84rem; }

@media (max-width: 1000px) {
  .cal-forma { display: block; }
  .cal-forma__cabecalho { margin-bottom: .65rem; }
  .cal-forma__conteudo { display: block; }
  .cal-forma__partidas { width: 100%; overflow-x: auto; }
  .cal-forma__resumo {
    margin-top: .65rem;
    padding: .6rem 0 0;
    border-left: 0;
    border-top: 1px solid #dce7df;
  }
}

@media (max-width: 575px) {
  .cal-forma { padding: .8rem; border-radius: 15px; }
  .cal-forma__cabecalho { margin-bottom: .5rem; }
  .cal-forma__partidas { gap: .3rem; }
  .cal-forma__partida { width: clamp(41px, 12.5vw, 52px); min-height: 62px; padding: .28rem .15rem; }
  .cal-forma__placar { font-size: .7rem; padding: .2rem .1rem; }
  .cal-forma__escudo { width: 26px; height: 26px; }
  .cal-forma__resumo { margin-top: .5rem; padding-top: .5rem; }
  .cal-forma__resumo p { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cal-forma__partida { transition: none; }
  .cal-forma__partida:hover,
  .cal-forma__partida:focus-visible { transform: none; }
}
