/* Layout corrections kept separate from the original compact stylesheet. */
.info-section,
.info-body,
.frag-grid,
.frag-grid > * {
  min-width: 0;
}

.info-body {
  overflow: hidden;
}

.info-section .table-wrap {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: visible;
}

.info-section .info-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.info-section .info-table th,
.info-section .info-table td,
.info-section .info-table code {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

#vip .info-table th:first-child,
#vip .info-table td:first-child {
  width: 28%;
}

/* The VIP table closes at its longest description instead of filling the panel. */
#vip .table-wrap {
  display: flex;
  align-items: flex-start;
}

#vip .info-table {
  width: auto;
  max-width: 100%;
  table-layout: auto;
}

#vip .info-table th:first-child,
#vip .info-table td:first-child {
  width: auto;
  white-space: nowrap;
}

#vip .info-table th:last-child,
#vip .info-table td:last-child {
  width: auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

#casas .command-table th:first-child,
#casas .command-table td:first-child,
#comandos .command-table th:first-child,
#comandos .command-table td:first-child {
  width: 27%;
}

#stamina .stamina-table th:first-child,
#stamina .stamina-table td:first-child {
  width: 34%;
}

#frags .frag-grid > .table-wrap:first-child th,
#frags .frag-grid > .table-wrap:first-child td {
  width: 50%;
}

#frags .frag-grid > .table-wrap:last-child th:first-child,
#frags .frag-grid > .table-wrap:last-child td:first-child {
  width: 34%;
}

#frags .frag-grid > .table-wrap:last-child th:not(:first-child),
#frags .frag-grid > .table-wrap:last-child td:not(:first-child) {
  width: 22%;
}

/* Content-sized tables: the final column ends with its longest value. */
@media (min-width: 521px) {
  #casas .table-wrap,
  #comandos .table-wrap,
  #stamina .table-wrap,
  #frags .table-wrap {
    display: flex;
    align-items: flex-start;
  }

  #casas .info-table,
  #comandos .info-table,
  #stamina .info-table,
  #frags .info-table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
  }

  #casas .info-table th,
  #casas .info-table td,
  #comandos .info-table th,
  #comandos .info-table td,
  #stamina .info-table th,
  #stamina .info-table td,
  #frags .info-table th,
  #frags .info-table td {
    width: auto !important;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

.info-facts--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .info-facts--two {
    grid-template-columns: 1fr;
  }

  #vip .table-wrap {
    display: block;
  }

  #vip .info-table {
    width: 100%;
    table-layout: fixed;
  }

  #vip .info-table th:first-child,
  #vip .info-table td:first-child {
    width: 34%;
  }

  #vip .info-table th,
  #vip .info-table td {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.rate-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #a38355;
}

.rate-stages > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #ead8b4;
  border-right: 1px solid #b09164;
  border-bottom: 1px solid #b09164;
}

.rate-stages > div:nth-child(4n) {
  border-right: 0;
}

.rate-stages > div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.rate-stages span {
  font-size: 11px;
  color: #654b31;
}

.rate-stages strong {
  color: #7d251d;
  font: 700 18px Cinzel;
}

@media (max-width: 800px) {
  .rate-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rate-stages > div:nth-child(4n) {
    border-right: 1px solid #b09164;
  }

  .rate-stages > div:nth-child(2n) {
    border-right: 0;
  }

  .rate-stages > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid #b09164;
  }

  .rate-stages > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .rate-stages {
    grid-template-columns: 1fr;
  }

  .rate-stages > div,
  .rate-stages > div:nth-child(2n),
  .rate-stages > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #b09164;
  }

  .rate-stages > div:last-child {
    border-bottom: 0;
  }
}
