#day .ref-format-tabs button {
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  gap: 5px 16px;
  min-height: 116px;
  padding: 22px 24px;
  border: 1px solid rgba(244, 241, 237, 0.16);
  border-radius: 24px;
  background: #17181c;
  box-shadow: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

#day .ref-format-tabs button:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 241, 237, 0.36);
  background: #24252a;
}

#day .ref-format-tabs button.is-active {
  border-color: var(--ref-orange);
  background: var(--ref-orange);
  color: #fff;
}

#day .ref-format-tabs button.is-active:hover {
  border-color: #ff6a1f;
  background: #ff6a1f;
}

#day .ref-format-tabs button > .ref-format-icon,
#day .ref-format-tabs button.is-active > .ref-format-icon {
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ref-orange);
  font-size: 20px;
}

#day .ref-format-tabs button.is-active > .ref-format-icon {
  color: #fff;
}

#day .ref-format-tabs button[data-format-tab="ctf"] > .ref-format-icon {
  color: #35c7d8;
}

#day .ref-format-tabs button[data-format-tab="physical"] > .ref-format-icon {
  color: #f6cf63;
}

#day .ref-format-tabs button.is-active strong,
#day .ref-format-tabs button.is-active small,
#day .ref-format-tabs button.is-active > i {
  color: #fff;
}

#day .ref-format-tabs strong {
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 650;
}

#day .ref-format-tabs small {
  color: rgba(244, 241, 237, 0.64);
  font-size: 13px;
}

#day .ref-format-tabs button > i {
  color: rgba(244, 241, 237, 0.48);
  font-size: 14px;
  opacity: 1;
}

#day .ref-format-tabs button.is-active > i {
  color: #fff;
  opacity: 1;
}

#day .ref-format-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: clamp(34px, 3.8vw, 54px);
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}

#day .ref-format-panel[data-format="talks"] {
  border-color: rgba(244, 241, 237, 0.82);
  background: #f4f1ed;
  color: #111216;
}

#day .ref-format-panel[data-format="ctf"] {
  border-color: #35c7d8;
  background: #35c7d8;
  color: #071316;
}

#day .ref-format-panel[data-format="physical"] {
  border-color: #f6ad68;
  background: #f6ad68;
  color: #17100a;
}

#day .ref-format-panel > span {
  color: currentColor;
  font-weight: 700;
  
  opacity: 0.68;
}

#day .ref-format-panel h3 {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 650;
}

#day .ref-format-panel p {
  color: currentColor;
  opacity: 0.78;
}

#day .ref-format-panel > a {
  color: currentColor;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 999px) {
  #day .ref-format-tabs button {
    min-height: 110px;
    padding: 20px 22px;
  }
}

@media (max-width: 767px) {
  #day .ref-format-tabs button {
    min-height: 86px;
    padding: 18px 20px;
  }

  #day .ref-format-tabs strong {
    font-size: 22px;
  }

  #day .ref-format-panel {
    min-height: 340px;
    border-radius: 24px;
  }
}
