/* exam.css — course/exam study pages (/cheat-sheets/<course>/<exam>).
   Linked only from those pages so the library sheet CSS hash stays put. */

.exam-scope {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.exam-scope li {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.exam-scope li:last-child {
  border-bottom: 0;
}
.exam-scope strong {
  display: block;
  margin-bottom: 4px;
}
.exam-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.exam-links li {
  margin: 0 0 8px;
}
/* Reading width: a long line of 15px text is hard to track back to the start of the next. */
.band .wrap > p,
.band .section-head p,
.exam-scope li,
.exam-sheet p,
.faq dd {
  max-width: 68ch;
}
/* A long course name must wrap inside the button, not run off a phone. */
.s-hero__ctas .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  padding-top: 10px;
  padding-bottom: 10px;
}
.exam-scope a,
.exam-sheet a,
.exam-links a {
  display: inline-block;
  padding: 4px 0;
}
/* "Also called a crib sheet, formula sheet…": the names students elsewhere search for. */
.s-hero__aka {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
}
@media (max-width: 860px) {
  .s-hero__aka {
    order: 7;
  }
}

/* ── Exam page layout (2026-10 overhaul): cards that use the full width ── */
.scope-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  counter-reset: none;
}
.scope-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--c, var(--pen));
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
}
.scope-card__n {
  font-size: 13px;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  color: var(--c, var(--pen));
  font-variant-numeric: tabular-nums;
}
.scope-card strong {
  font-size: 21px;
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.scope-card > span:last-child {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.later {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 22px 26px;
  border: 1.5px dashed var(--rule-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}
.later__title {
  margin: 0;
  font-size: 26px;
  transform: rotate(-1.5deg);
}
.later p {
  color: var(--ink-2);
  font-size: 16px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.split .band-head {
  margin-bottom: 0;
}
.split__aside {
  margin-top: 22px;
  font-size: 22px;
  transform: rotate(-1.5deg);
}
.band-head > p.split__aside {
  color: var(--red);
  font-size: 22px;
}
/* Ruled index card, as on the landing page's closing card. */
.ruled {
  padding: 62px 34px 34px;
  background-color: #fff;
  background-image: linear-gradient(to bottom, transparent 40px, rgba(207, 51, 39, 0.6) 40px,
      rgba(207, 51, 39, 0.6) 42px, transparent 42px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(35, 70, 216, 0.16) 31px 32px);
  background-position: 0 0, 0 62px;
  box-shadow: var(--shadow-lift);
}
.ruled p {
  max-width: none;
  font-size: 17px;
  line-height: 32px;
  color: var(--ink);
}
.match {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow-paper);
}
.match__paper {
  display: block;
  background: #fff;
  box-shadow: var(--shadow-paper);
  transform: rotate(-1.2deg);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.match__paper:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.match__paper img {
  width: 100%;
  height: auto;
}
.match__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.match__actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}
.match__actions li {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--pen);
  border-radius: 4px;
  background: var(--paper);
}
.match__actions p {
  max-width: none;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.match__actions a {
  font-weight: 700;
}
.match__how h3 {
  font-size: 22px;
  font-stretch: 80%;
  text-transform: uppercase;
  font-weight: 850;
  margin-bottom: 10px;
}
.match__how p {
  max-width: none;
  color: var(--ink-2);
  font-size: 16px;
}
.match__cta {
  margin-top: 18px !important;
}
.match__cta .btn {
  display: inline-flex;
  padding: 0 18px;
  white-space: normal;
}
@media (max-width: 1080px) {
  .match {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  }
  .match__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 720px) {
  .match {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px;
    gap: 28px;
  }
  .match__paper {
    max-width: 220px;
    margin: 0 auto;
  }
  .later {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
  .ruled {
    padding: 58px 20px 28px;
  }
  .ruled p {
    font-size: 16px;
  }
  .scope-card {
    padding: 18px 18px 20px;
  }
}
