/* Who does more housework quiz (/tools/who-does-more-housework-quiz): chore rows and the 7-option answer scale. */
[data-housework-quiz] [hidden] { display: none !important; }
.hw-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  container-type: inline-size;
}
.hw-group-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b5e3c;
}
.hw-chores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.hw-chore {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #e5ddd2;
  min-width: 0;
}
.hw-chore:last-child {
  border-bottom: 0;
}
.hw-chore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hw-chore-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2e2018;
  line-height: 1.35;
}
.hw-chore-hint {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #7a6a5c;
}
.hw-mins {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 13px;
  color: #7a6a5c;
}
.hw-mins .nk-input {
  width: 64px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
[data-mode='count'] .hw-mins {
  display: none;
}

/* Answer scale: one row of 7 when there is room, else the 5-step scale on top and "Nobody / N/A" below. */
.hw-scale {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: #ede5d8;
}
.hw-scale label {
  position: relative;
  cursor: pointer;
  grid-column: span 2;
  min-width: 0;
}
.hw-scale label:nth-child(6),
.hw-scale label:nth-child(7) {
  grid-column: span 5;
}
.hw-scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hw-scale span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 2px 4px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: #7a6a5c;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.hw-scale label:hover span {
  color: #2e2018;
}
.hw-scale input:checked + span {
  background: #fffdf9;
  color: #2e2018;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(59, 48, 43, 0.08);
}
.hw-scale input[value='1']:checked + span,
.hw-scale input[value='2']:checked + span {
  box-shadow:
    inset 0 -3px 0 #deae96,
    0 0 0 1px rgba(59, 48, 43, 0.08);
}
.hw-scale input[value='4']:checked + span,
.hw-scale input[value='5']:checked + span {
  box-shadow:
    inset 0 -3px 0 #8fa98c,
    0 0 0 1px rgba(59, 48, 43, 0.08);
}
.hw-scale input:focus-visible + span {
  outline: 2px solid #8b5e3c;
  outline-offset: 1px;
}
@container (min-width: 440px) {
  .hw-scale {
    grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, 0.8fr));
    border-radius: 999px;
  }
  .hw-scale label,
  .hw-scale label:nth-child(6),
  .hw-scale label:nth-child(7) {
    grid-column: auto;
  }
  .hw-scale span {
    border-radius: 999px;
  }
}

/* Result: small labelled split bars for visible chores and mental load. */
.hw-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7f1e8;
  border-radius: 18px;
  padding: 16px 18px;
  min-width: 0;
}
.hw-mini .nk-split-bar {
  height: 12px;
}
.hw-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: tip;
}
.hw-tips li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.45;
  color: #3b302b;
}
.hw-tips li::before {
  counter-increment: tip;
  content: counter(tip);
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f4e9e1;
  color: #8b5e3c;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
}
.hw-banner {
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fbf3df;
  font-size: 15px;
  line-height: 1.5;
  color: #3b302b;
}
@media (prefers-reduced-motion: reduce) {
  .hw-scale span {
    transition: none;
  }
}
