.dilemma {
  --dilemma-ink: #244337;
  --dilemma-dark: #28503e;
  --dilemma-paper: #fffdf5;
  --dilemma-muted: #4d6456;
  --dilemma-rule: #aebfac;
  color: var(--dilemma-ink);
  background: #e8eddf;
  border: 1px solid #c8d5c3;
  border-inline-start: 4px solid var(--dilemma-dark);
  border-radius: 7px;
  padding: clamp(16px, 3.6vw, 38px);
}

.dilemma-title {
  font: 400 clamp(1.68rem, 4vw, 2.45rem)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  margin: 0;
  max-width: 26ch;
  text-wrap: balance;
}

.dilemma-lead,
.dilemma-context,
.dilemma-condition {
  max-width: 61ch;
  line-height: 1.55;
  margin: .65rem 0 0;
}

.dilemma-entry-actions,
.dilemma-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 1rem;
}

.dilemma-entry-profile { display: grid; align-items: start; justify-items: start; }
.dilemma-entry-profile small { color: var(--dilemma-muted); font-size: .83rem; }

.dilemma-primary,
.dilemma-secondary {
  border: 1px solid var(--dilemma-dark);
  border-radius: 5px;
  font: inherit;
  font-weight: 650;
  min-height: 44px;
  padding: .6rem .9rem;
  cursor: pointer;
}

.dilemma-primary { background: var(--dilemma-dark); color: var(--dilemma-paper); }
.dilemma-primary:not(:disabled):hover { background: #1b3d2e; }
.dilemma-primary:disabled { background: #c8d2c4; border-color: #a4b1a2; color: #3d5245; cursor: default; }
.dilemma-secondary { background: transparent; color: var(--dilemma-dark); }
.dilemma-secondary:hover { background: #dbe5d6; }

.dilemma-profile {
  color: var(--dilemma-dark);
  font-weight: 650;
  display: inline-block;
  padding-block: .28rem;
  text-underline-offset: .17em;
}

.dilemma :is(button, a, input):focus-visible,
.dilemma-question:focus-visible {
  outline: 3px solid #80542f;
  outline-offset: 3px;
}

.dilemma-panel { margin-top: 1rem; max-width: 710px; }

.dilemma-progress {
  color: var(--dilemma-muted);
  font-size: .88rem;
  font-weight: 650;
  margin: 0 0 .45rem;
}

.dilemma-question {
  font-size: clamp(1.08rem, 3vw, 1.38rem);
  line-height: 1.35;
  margin: 0;
  scroll-margin: 1.25rem;
}

.dilemma-condition {
  background: var(--dilemma-paper);
  border-inline-start: 3px solid var(--dilemma-rule);
  padding: .55rem .75rem;
  border-radius: 4px;
}

.dilemma-form { margin-top: .85rem; }
.dilemma-options { border: 0; margin: 0; padding: 0; min-width: 0; }
.dilemma-options legend { font-weight: 650; margin-bottom: .4rem; padding: 0; }

.dilemma-option {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: .65rem;
  background: var(--dilemma-paper);
  border: 1px solid var(--dilemma-rule);
  border-radius: 5px;
  padding: .55rem .7rem;
  line-height: 1.35;
  cursor: pointer;
}

.dilemma-option + .dilemma-option { margin-top: .42rem; }
.dilemma-option:has(input:checked) { border-color: var(--dilemma-dark); background: #dbe7d7; }
.dilemma-option input { margin: 0; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--dilemma-dark); }

.dilemma-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: .75rem 0;
  padding: 0;
}

.dilemma-answer {
  background: var(--dilemma-paper);
  border: 1px solid var(--dilemma-rule);
  border-radius: 5px;
  padding: .65rem .75rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.dilemma-answer :is(dt, dd, p) { margin: 0; }
.dilemma-answer :is(dt, strong) { font-weight: 650; }
.dilemma-answer :is(dd, p) { line-height: 1.4; }
.dilemma-answer .dilemma-condition { padding: .3rem 0; border: 0; }
.dilemma-answer-value { font-weight: 700; }
.dilemma-outcome { font-weight: 650; margin: .35rem 0; }
.dilemma-reason-prompt { font-size: 1.08rem; margin: 0 0 .55rem; }
.dilemma-picked-reason,
.dilemma-profile-note { line-height: 1.5; }
.dilemma-profile-note { color: var(--dilemma-muted); font-size: .9rem; margin: .6rem 0 0; }
.dilemma-change { line-height: 1.45; margin: .7rem 0; }
.dilemma-other-title { margin: 1.45rem 0 .55rem; font-size: 1rem; font-weight: 650; }

@media (max-width: 420px) {
  .dilemma-entry-actions { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .dilemma-comparison { grid-template-columns: 1fr; }
  .dilemma-title { max-width: 20ch; }
}
