@layer components {
  .status-dot.-excellent,
  .status-dot.-verygood {
    background-color: var(--moss);
  }

  .status-dot.-passing {
    background-color: #9b7c3a;
  }

  .status-dot.-needswork {
    background-color: var(--warning);
  }

  .status-dot.-neutral {
    background-color: var(--linen);
  }

  .exam-card {
    overflow: clip;
    border: 1px solid var(--linen);
    border-radius: 16px;
  }

  .exam-card > .heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 34px 20px;
  }

  .exam-card > .heading > .summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .exam-card > .heading > .summary > .title {
    margin: 0;
    color: var(--ink);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 38px;
  }

  .exam-card > .heading > .summary > .count,
  .exam-card > .sections > .section > .copy > .detail,
  .exam-card > .empty {
    margin: 0;
    color: var(--muted);
  }

  .exam-card > .heading > .summary > .count {
    font-size: 15px;
    line-height: 18px;
  }

  .exam-card > .heading > .all {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
  }

  .exam-card > .sections {
    border-top: 1px solid var(--linen);
  }

  .exam-card > .sections > .section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 34px;
    color: inherit;
    text-decoration: none;
    transition: background-color 150ms ease;
  }

  .exam-card > .sections > .section + .section {
    border-top: 1px solid var(--linen);
  }

  .exam-card > .sections > .section:hover {
    background: rgb(73 100 73 / 8%);
  }

  .exam-card > .sections > .section > .copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
  }

  .exam-card > .sections > .section > .copy > .name {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
  }

  .exam-card > .sections > .section > .copy > .detail {
    font-size: 14px;
    line-height: 18px;
  }

  .exam-card > .sections > .section > .action {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--moss);
  }

  .exam-card > .sections > .section > .action > .action__icon {
    display: block;
    width: 14px;
    height: 14px;
  }

  .exam-card > .empty {
    padding: 16px 34px;
    border-top: 1px solid var(--linen);
    font-size: 14px;
    line-height: 18px;
  }

  @media (max-width: 1023px) {
    .exam-card {
      border-width: 1px 0;
      border-radius: 0;
    }

    .exam-card > .heading {
      padding: 18px 20px;
    }

    .exam-card > .heading > .summary > .title {
      font-size: 30px;
      line-height: 34px;
    }

    .exam-card > .heading > .all {
      display: none;
    }

    .exam-card > .sections > .section {
      gap: 12px;
      padding: 14px 20px;
    }

    .exam-card > .sections > .section > .action {
      flex: 0 0 44px;
      width: 44px;
      height: 44px;
    }

    .exam-card > .sections > .section > .action > .action__icon {
      width: 16px;
      height: 16px;
    }
  }

  .status-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
  }

  .status-dot.-excellent {
    background-color: #10b981;
  }

  .status-dot.-verygood {
    background-color: #22c55e;
  }

  .status-dot.-passing {
    background-color: #f59e0b;
  }

  .status-dot.-needswork {
    background-color: #f43f5e;
  }

  .status-dot.-neutral {
    background-color: #94a3b8;
  }
}
