.ring-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  border: 0;
  margin: 1rem 0 0;
  padding: 0;
}

.ring-methods legend {
  font-weight: 650;
  margin-bottom: 0.5rem;
}

#ring-hint {
  margin-top: 0.7rem;
}

.ring-methods label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid #8c7b90;
  border-radius: 0.6rem;
  cursor: pointer;
}

.ring-methods label:has(:checked) {
  background: #f2eaf6;
  border-color: #664b71;
}

.ring-methods input {
  accent-color: #664b71;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}

.ring-result {
  margin-block: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-inline-start: 3px solid #664b71;
  background: #f5eff7;
  border-radius: 0.25rem;
  overflow-wrap: anywhere;
}

.ring-print {
  border-top: 1px solid #ded9e1;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
}

.ring-chart {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
  text-align: right;
  background: #fff;
  font-size: 0.925rem;
}

.ring-chart th,
.ring-chart td {
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid #e2dce5;
  overflow-wrap: anywhere;
}

.ring-chart th:first-child {
  width: 21%;
  text-align: left;
}

.ring-chart thead {
  background: #f2eaf6;
}

.ring-chart [data-match] {
  background: #efe3f4;
  box-shadow: inset 3px 0 #664b71;
  font-weight: 700;
}
