/* THE DECISIONS: the index of four, and each decision with the option turned down and the one picked. */

@media (prefers-reduced-motion: reduce) {
  .dec-idx a:hover .go svg {
    animation: none;
  }
}
/* the index: four rows you can click */
.dec-idx {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dec-idx a {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 32px;
  align-items: center;
  column-gap: 12px;
  margin: 0 -14px;
  padding: 20px 14px;
  border-radius: 8px;
  text-decoration: none;
  font: 500 18px/28px Inter;
  color: var(--primary);
  transition: background 0.15s;
}
.dec-idx a + a::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: var(--line);
}
.dec-idx a:hover {
  background: var(--well);
}
.dec-idx a:hover::before,
.dec-idx a:hover + a::before {
  opacity: 0;
}
.dec-idx i {
  font:
    500 13px/16px 'Geist Mono',
    monospace;
  font-style: normal;
  color: var(--tertiary);
}
.dec-idx .go {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.dec-idx .go svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s;
}
.dec-idx a:hover .go {
  box-shadow: inset 0 0 0 1px var(--primary);
}
.dec-idx a:hover .go svg {
  stroke: var(--primary);
  animation: go-drop 0.55s cubic-bezier(0.55, 0, 0.25, 1);
}
@keyframes go-drop {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(24px);
  }
  45.01% {
    transform: translateY(-24px);
  }
  100% {
    transform: translateY(0);
  }
}
/* a decision is a section like the rest: hairline, label, title, then the story */
.dec {
  scroll-margin-top: 24px;
}
.dec h3 {
  margin: 28px 0 0;
  font: 500 40px/46px Inter;
  letter-spacing: -0.02em;
  color: var(--primary);
}
/* the two options, in the details table's hairlines: what was turned down, and what was picked */
.ch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ch::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
}
.ch > div {
  padding: 22px 32px 26px 0;
}
.ch > div + div {
  padding: 22px 0 26px 32px;
}
.ch .k {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    500 11px/16px 'Geist Mono',
    monospace;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.ch .k svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ch .no .k svg {
  stroke: #ef4444;
}
.ch .yes .k svg {
  stroke: #22c55e;
}
.ch b {
  display: block;
  margin-top: 14px;
  font: 500 18px/28px Inter;
  color: var(--primary);
}
.ch p {
  margin-top: 6px;
  font: 400 16px/26px Inter;
  color: var(--secondary);
}
@media (max-width: 820px) {
  .dec-idx a {
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    font-size: 16px;
    line-height: 24px;
    padding: 16px 14px;
  }
  .dec-idx .go {
    width: 28px;
    height: 28px;
  }
  .dec h3 {
    font-size: 30px;
    line-height: 36px;
  }
  .ch {
    grid-template-columns: 1fr;
  }
  .ch::before {
    display: none;
  }
  .ch > div,
  .ch > div + div {
    padding: 20px 0 22px;
  }
  .ch > div + div {
    border-top: 1px solid var(--line);
  }
}
