/* Work overview: readable user journeys, with source values in semantic HTML. */
.user-stories {
  border-top: 1px solid var(--line);
}
.user-stories-heading {
  max-width: 780px;
  margin-bottom: 35px;
}
.user-stories-heading .eyebrow {
  margin-bottom: 16px;
}
.user-stories-heading h2 {
  font-size: clamp(31px, 3.5vw, 45px);
}
.user-stories-heading > p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
}
.user-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.user-story {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.user-story .user-story-persona {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.user-story-visual {
  min-height: 365px;
  padding: 25px 23px 23px;
  border: 1px solid #d6dfeb;
  border-radius: 15px;
  background: #edf2fb;
}
.user-story-visual h3 {
  margin: 0;
  font-size: clamp(23px, 2.05vw, 28px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.user-story-visual .user-story-status {
  margin: 13px 0 19px;
  color: #526370;
  font-size: 10px;
  line-height: 1.6;
}
.user-story-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.user-story-sheet thead th {
  padding: 0 9px 9px;
  color: #536576;
  font-size: 10px;
  font-weight: 500;
}
.user-story-sheet tbody th,
.user-story-sheet td {
  padding: 8px 9px;
  border-top: 1px solid #dce3ed;
  background: rgba(255, 255, 255, .82);
  font-weight: 500;
}
.user-story-sheet th:not(:first-child),
.user-story-sheet td {
  text-align: right;
}
.user-story-sheet td {
  font-size: 14px;
  font-weight: 600;
}
.user-story-sheet .user-story-shortfall > * {
  border-color: #ead8b1;
  background: #fff4dd;
}
.user-story-difference {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-top: 11px;
  color: #775116;
  line-height: 1.3;
}
.user-story-difference > span {
  font-size: 12px;
}
.user-story-difference > strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.user-story-visual .user-story-review {
  margin: 10px 0 0;
  color: #586571;
  font-size: 10px;
  line-height: 1.65;
}
.user-story-newcomer {
  background: #eef2e8;
  border-color: #d7dfce;
}
.user-story-activity {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 15px;
  background: #fffef9;
  border: 1px solid #d7dfcd;
  border-radius: 9px;
  color: #355c40;
}
.user-story-activity svg {
  flex: 0 0 28px;
}
.user-story-activity strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.user-story-activity span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.7;
}
.user-story-choice {
  margin-top: 15px;
  padding: 0 0 0 15px;
  border-left: 2px solid #b2c6a3;
}
.user-story-choice > span {
  color: #536c49;
  font-size: 10px;
  font-weight: 600;
}
.user-story-choice ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}
.user-story-choice li {
  font-size: 12px;
  line-height: 1.5;
}
.user-story-team {
  background: #f5f0e7;
  border-color: #e2dccc;
}
.user-story-plan {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.user-story-plan li {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 37px;
  padding: 9px 12px;
  border: 1px solid #e0ddcf;
  border-radius: 6px;
  background: #fffef9;
}
.user-story-plan li > span {
  font-size: 9px;
  color: #7b776a;
}
.user-story-plan strong {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
.user-story-plan small {
  display: inline-block;
  margin-left: 5px;
  border-radius: 3px;
  padding: 0 5px;
  color: #355c40;
  background: #eaf0e5;
  font-size: 10px;
  font-weight: 600;
}
.user-story-plan li:last-child {
  border-color: #c9d5bd;
  background: #eaf0e5;
}
.user-story .user-story-copy {
  margin: 20px 0 21px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.user-story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 19px;
  margin-top: auto;
}
.user-story-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.user-story-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.user-story-links svg {
  flex: 0 0 16px;
}
.user-stories .user-stories-note {
  margin: 31px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  max-width: 860px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}
@media (max-width: 1100px) {
  .user-stories-grid {
    gap: 19px;
  }
  .user-story-visual {
    min-height: 365px;
    padding: 23px 18px 20px;
  }
  .user-story-sheet tbody th,
  .user-story-sheet td,
  .user-story-sheet thead th {
    padding-inline: 6px;
  }
  .user-story-activity {
    gap: 10px;
    padding-inline: 11px;
  }
}
@media (max-width: 900px) {
  .user-stories-heading {
    max-width: 620px;
  }
  .user-stories-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 620px;
  }
  .user-story-visual {
    min-height: 0;
    padding: 27px;
  }
  .user-story-visual h3 {
    font-size: 29px;
  }
  .user-story-visual .user-story-status {
    font-size: 11px;
  }
  .user-story-sheet,
  .user-story-choice li,
  .user-story-plan strong {
    font-size: 14px;
  }
  .user-story-sheet tbody th,
  .user-story-sheet td {
    padding-block: 12px;
  }
  .user-story-sheet thead th,
  .user-story-activity span,
  .user-story-choice > span,
  .user-story-visual .user-story-review {
    font-size: 11px;
  }
  .user-story-activity strong {
    font-size: 15px;
  }
  .user-story-plan li {
    min-height: 43px;
  }
  .user-story .user-story-copy {
    font-size: 15px;
    margin-bottom: 13px;
  }
  .user-story-links a {
    min-height: 44px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .user-stories-heading {
    margin-bottom: 28px;
  }
  .user-stories-heading h2 {
    max-width: 300px;
  }
  .user-stories-heading > p {
    font-size: 15px;
  }
  .user-story-visual {
    padding: 24px 21px;
  }
  .user-story-visual h3 {
    font-size: 27px;
  }
  .user-stories .user-stories-note {
    margin-top: 25px;
  }
}
@media print {
  .user-stories-grid {
    display: block;
  }
  .user-story {
    break-inside: avoid;
    margin-bottom: 25px;
  }
  .user-story-visual {
    min-height: 0;
  }
}
