/* Widget 53: story deck, part two (see 52-story-deck.css): the help lines, the closing question
   and its results, the summary, the phone layout and motion. Split from 52 to keep each file short. */

/* Help lines: on the deck from the start */
.hc-sd .sd-help {
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--sd-help-bg);
  box-shadow: inset 0 0 0 1px var(--sd-help-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hc-sd .sd-help p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--hc-body);
}
.hc-sd .sd-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hc-sd .sd-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--hc-text);
  white-space: nowrap;
}
.hc-sd .sd-contact::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--sd-indigo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.hc-sd .sd-cl {
  font-size: 14px;
  color: var(--hc-body);
}
.hc-sd .sd-cn {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hc-text);
}
.hc-sd .sd-cnote {
  font-size: 13px;
  color: var(--hc-muted);
}

/* Closing question, its results, the summary */
.hc-sd .sd-closing {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--hc-line);
}
.hc-sd .sd-cbody {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hc-sd .sd-cbody:empty {
  display: none;
}
.hc-sd .sd-q {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--hc-text);
  text-wrap: balance;
}
.hc-sd .sd-plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hc-sd .sd-plain li {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hc-line);
  font-size: 15px;
  color: var(--hc-body);
}
.hc-sd .sd-q2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: sd-in 0.35s ease-out both;
}
.hc-sd .sd-c {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--hc-card);
  box-shadow: inset 0 0 0 1px var(--hc-line);
  color: var(--hc-text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.hc-sd .sd-c.on {
  background: var(--hc-text);
  color: var(--hc-band);
  box-shadow: inset 0 0 0 1px var(--hc-text);
}
.hc-sd .sd-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hc-sd .sd-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hc-sd .sd-row-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--hc-body);
}
.hc-sd .sd-mine {
  color: var(--hc-text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hc-sd .sd-mine::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--hc-text);
  flex-shrink: 0;
}
.hc-sd .sd-n {
  font-variant-numeric: tabular-nums;
  color: var(--hc-text);
  font-weight: 500;
}
.hc-sd .sd-track2 {
  height: 8px;
  border-radius: 4px;
  background: var(--hc-hair);
  overflow: hidden;
}
.hc-sd .sd-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--hc-muted);
  transition: width 0.7s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.hc-sd .sd-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.hc-sd .sd-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hc-sd .sd-gh {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--hc-text);
  min-height: 2.9em;
}
.hc-sd .sd-summary {
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--hc-card);
  box-shadow: inset 0 0 0 1px var(--hc-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: sd-in 0.35s ease-out both;
}
.hc-sd .sd-summary p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--hc-text);
}
.hc-sd .sd-summary .sd-hl {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--hc-body);
}
.hc-sd .sd-hl .sd-loop {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sd-indigo);
}
.hc-sd .sd-caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--hc-muted);
}
.hc-sd .sd-bot:empty {
  display: none;
}

/* Phone */
@media (max-width: 600px) {
  .hc-sd {
    --sd-pad: 18px;
    border-radius: 20px;
    padding: 24px var(--sd-pad) 20px;
    gap: 18px;
  }
  .hc-sd .sd-title {
    font-size: 25px;
  }
  .hc-sd .sd-intro {
    font-size: 16px;
  }
  .hc-sd .sd-scroller {
    gap: 10px;
  }
  .hc-sd .sd-card {
    width: calc(100% - 30px);
    padding: 22px 18px 20px;
    border-radius: 18px;
  }
  .hc-sd .sd-line {
    font-size: 21px;
  }
  .hc-sd .sd-story p {
    font-size: 16px;
  }
  .hc-sd .sd-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .hc-sd .sd-gh {
    min-height: 0;
  }
  .hc-sd .sd-help {
    padding: 16px;
  }
}

@keyframes sd-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sd-spin {
  from {
    transform: rotate(-200deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hc-sd .sd-res,
  .hc-sd .sd-q2,
  .hc-sd .sd-summary,
  .hc-sd .sd-seg .sd-loop {
    animation: none !important;
  }
  .hc-sd .sd-seg,
  .hc-sd .sd-fill,
  .hc-sd .sd-o {
    transition: none !important;
  }
  .hc-sd .sd-scroller {
    scroll-behavior: auto;
  }
}
