/* Facts list inside spec cards */
.facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facts-list li {
  padding: .25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.facts-list li:last-child {
  border-bottom: none;
}

/* Wide variant for a single-row card */
.acc-card.wide {
  width: 100%;
}

/* Token chips (text pills for mods) */
.token-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.token {
  display: inline-flex;
  align-items: center;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: var(--readability);
  color: var(--fg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
}

.token-circles {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .9rem;
}

.token-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .08);
  user-select: none;
}

/* Responsive: stack the spec cards */
@media (max-width: 1000px) {
  .card-container.two-up {
    flex-direction: column;
  }
}

.radio-inputs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.5rem;
  background-color: var(--card);
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  width: 300px;
  font-size: 14px;
}

.radio-inputs .radio {
  flex: 1 1 auto;
  text-align: center;
  width: 50px;
}

.radio-inputs .radio input {
  display: none;
}

.radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  padding: .5rem 0;
  color: var(--fg);
  transition: all .15s ease-in-out;
  font-family: var(--font-family);
}

.radio-inputs .radio input:checked+.name {
  background-color: var(--acc-card);
  font-weight: 600;
}

.facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  width: 100%;
  background: var(--readability);
  padding: .5rem;
  border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.facts-list li {
  display: contents;
}

.facts-list strong {
  text-align: left;
  font-weight: 600;
}

.facts-list span {
  text-align: right;
  justify-self: end;
}

.token-wrap {
  display: flex;
  align-items: center;
  justify-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.spec-card {
  font-family: var(--font-family);
  color: var(--fg);
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--acc-card);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  text-decoration: none;
  transition: transform var(--hover-duration) var(--hover-ease), filter var(--hover-duration) var(--hover-ease);
  width: 90%;
  max-width: 500px;
}

.spec-card:hover {
  transform: translateY(var(--hover-lift-card));
  filter: brightness(1.03);
}

@media (max-width: 900px) {
  .page-section .card-container {
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0.75rem;
  }

  .spec-card {
    width: 100% !important;
    max-width: none;
  }

  .facts-list {
    grid-template-columns: 1fr;
  }

  .facts-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .facts-list li:last-child {
    border-bottom: none;
  }

  .facts-list span {
    text-align: left;
    justify-self: start;
  }

  .radio-inputs {
    width: min(100%, 340px);
  }
}

@media (max-width: 768px) {
    .token-wrap {
        gap: 0.4rem;
        margin-top: 0.4rem;
    }
    
    .token {
        padding: 0.35rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .token-circles {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .token-round {
        width: 42px;
        height: 42px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .token-wrap {
        gap: 0.3rem;
        margin-top: 0.3rem;
    }
    
    .token {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .token-circles {
        gap: 0.4rem;
        margin-top: 0.6rem;
    }
    
    .token-round {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
    
    .radio-inputs {
        flex-direction: column;
    }
}