.results {
  background: #f6fbfd;
  color: var(--ink);
  display: grid;
  min-height: calc(100vh - 76px);
  padding: 28px 18px 60px;
  place-items: start center;
}

.results-card {
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 59, 78, 0.12);
  max-width: 980px;
  padding: 24px 28px 34px;
  width: min(980px, 100%);
}

.results-share {
  align-items: center;
  color: #888;
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: flex-end;
}

.share-links {
  display: flex;
  gap: 8px;
}

.share-links a {
  align-items: center;
  background: #0099cc;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding: 0 8px;
  text-decoration: none;
}

.share-links a[href^="mailto"] {
  border-radius: 14px;
}

.separator {
  border-top: 2px dotted #366;
  height: 10px;
  margin: 24px 0 22px;
}

.study-intro {
  margin: 0 0 28px;
}

.study-intro h2 {
  color: #003b4e;
  font-size: 32px;
  line-height: 1.08;
  margin: 0 0 8px;
}

.study-intro p {
  color: #667085;
  line-height: 1.5;
  margin: 0;
  max-width: 680px;
}

.share-preview {
  background: #003b4e;
  color: #fff;
  margin: 0 0 28px;
  overflow: hidden;
}

.share-preview img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.results-loading {
  display: grid;
  gap: 10px;
  min-height: 280px;
  place-content: center;
  text-align: center;
}

.results-loading p,
.score-hero p,
.percentile-panel p,
.coach-card p {
  color: #0099cc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.results-loading h2 {
  color: #003b4e;
  font-size: 34px;
  margin: 0;
}

.results-loading span {
  color: #667085;
}

.score-hero {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.score-hero h2 {
  color: #003b4e;
  font-size: 42px;
  line-height: 1.05;
  margin: 8px 0 10px;
}

.score-hero span,
.percentile-panel span,
.goal-table span {
  color: #667085;
  line-height: 1.45;
}

.score-ring {
  align-items: baseline;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(#0099cc 0 270deg, #d8eef5 270deg 360deg);
  border-radius: 50%;
  color: #003b4e;
  display: flex;
  height: 152px;
  justify-content: center;
  padding-top: 50px;
  width: 152px;
}

.score-ring strong {
  font-size: 48px;
  line-height: 1;
}

.percentile-panel {
  align-items: end;
  background: #eef9fc;
  border: 1px solid #cfeaf2;
  display: grid;
  gap: 22px;
  grid-template-columns: 230px 1fr;
  margin-top: 28px;
  padding: 22px;
}

.percentile-panel strong {
  color: #003b4e;
  display: block;
  font-size: 54px;
  line-height: 1;
  margin: 4px 0;
}

.percentile-viz {
  align-items: end;
  border-bottom: 2px solid #003b4e;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(20, 1fr);
  min-height: 100px;
  position: relative;
}

.percentile-viz::after {
  background: #003b4e;
  bottom: -7px;
  content: "";
  height: 14px;
  left: var(--marker);
  position: absolute;
  transform: translateX(-50%);
  width: 3px;
}

.percentile-viz span {
  background: #d5e7ed;
  min-height: 16px;
}

.percentile-viz span.passed {
  background: #0099cc;
}

.coach-card {
  background: #003b4e;
  color: #fff;
  margin-top: 24px;
  padding: 24px;
}

.coach-card p {
  color: #9de8ff;
}

.coach-card blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.35;
  margin: 10px 0 0;
}

.results-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.results-grid section,
.goal-table {
  border: 1px solid #d6e8ee;
  padding: 20px;
}

.results-grid h3,
.goal-table h3 {
  color: #003b4e;
  font-size: 22px;
  margin: 0 0 6px;
}

.result-list-note {
  color: #667085;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 16px;
}

.feedback-list {
  color: #344054;
  display: grid;
  gap: 8px;
  line-height: 1.45;
  margin: 0;
  padding: 0;
}

.feedback-item {
  align-items: start;
  border-top: 1px solid #e4eef2;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  list-style: none;
  padding-top: 10px;
}

.feedback-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.feedback-number {
  color: #0099cc;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  padding-top: 2px;
}

.feedback-text {
  min-width: 0;
}

.goal-table {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.table-wrap {
  overflow-x: auto;
}

.goal-table table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.goal-table th {
  color: #003b4e;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.goal-table th,
.goal-table td {
  border-bottom: 1px solid #d6e8ee;
  padding: 10px 8px;
}

.goal-table td strong {
  color: #0099cc;
  display: block;
  font-size: 12px;
}

.goal-table td span {
  color: #222;
  display: block;
}

.share-banner {
  background: #f2fbfd;
  margin-top: 24px;
  padding: 22px 24px;
}

.share-banner h3 {
  color: #003b4e;
  font-size: 26px;
  margin: 0 0 8px;
}

.share-banner p {
  line-height: 1.45;
  margin: 8px 0;
}

.share-banner strong,
.share-banner b {
  color: #003b4e;
}

.result-share-action {
  background: #fff;
  border: 1px solid #d6e8ee;
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 16px;
}

.result-share-action > p {
  margin: 0;
}

.result-share-action > span {
  color: #344054;
  font-size: 18px;
}

.result-share-links {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .results-card {
    padding: 20px;
  }

  .results-share {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-hero,
  .percentile-panel,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .score-ring {
    height: 132px;
    padding-top: 42px;
    width: 132px;
  }

  .goal-table table {
    min-width: 0;
  }

  .goal-table thead {
    display: none;
  }

  .goal-table tbody,
  .goal-table tr,
  .goal-table td {
    display: block;
    width: 100%;
  }

  .goal-table tr {
    border-bottom: 1px solid #d6e8ee;
    padding: 10px 0;
  }

  .goal-table td {
    border: 0;
    padding: 4px 0;
  }

  .goal-table td:not(:first-child) {
    display: inline-block;
    margin-right: 18px;
    width: auto;
  }

.goal-table td:nth-child(2)::before {
    content: "Your answer ";
    color: #667085;
  }

  .goal-table td:nth-child(3)::before {
    content: "Benefit ";
    color: #667085;
  }

  .goal-table td:nth-child(4)::before {
    content: "Risk ";
    color: #667085;
  }

  .goal-table td:nth-child(5)::before {
    content: "Why ";
    color: #667085;
  }
}
