/* NCMHCE results: page-only styles. This sheet loads on this page alone and
   every rule sits under main.rs. Quiet on purpose: one purple, one light
   tint, grey, and room between blocks. */
.rs {
  --rs-ink: #172033;
  --rs-quiet: #5f6880;
  --rs-line: #d5d7da;
  --rs-wash: #eef0f5;
  --rs-tint: #eeecff;
  --rs-accent: #7f56d9;
}

/* Title block: the answer, one button, one line for people who did not pass. */
body.guide-page .rs .guide-hero .guide-lede {
  color: var(--rs-ink);
}
body.guide-page .rs .guide-hero .guide-lede strong {
  font-weight: 600;
}
.rs .rs-date {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin: 20px 0 0;
}
.rs .rs-date label {
  flex: 0 0 100%;
  color: var(--rs-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.rs .rs-date input {
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--rs-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rs-ink);
  font: inherit;
  font-size: 16px;
}
.rs .rs-date-out {
  margin: 12px 0 0;
  color: var(--rs-ink);
  font-size: 18px;
  line-height: 28px;
}
.rs .rs-date-out:empty {
  display: none;
}
.rs .rs-alt {
  margin: 4px 0 0;
  color: var(--rs-quiet);
  font-size: 16px;
  line-height: 24px;
}
.rs .rs-alt a {
  display: inline-block;
  padding: 10px 0;
  font-weight: 500;
}
body.guide-page .rs .guide-body {
  padding-top: 8px;
}
.rs .rs-nowrap {
  white-space: nowrap;
}

/* Links to the sections: one quiet row, each easy to tap. */
.rs .jump-list {
  gap: 0 20px;
  font-size: 15px;
}
body.guide-page .rs .guide-article .jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--rs-quiet);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--rs-line);
  text-underline-offset: 4px;
}

/* Body text: one size for sentences and bullets, more room between blocks. */
body.guide-page .rs .guide-article > p,
body.guide-page .rs .guide-article > ul > li,
body.guide-page .rs .guide-article > ol > li {
  font-size: 18px;
  line-height: 28px;
}
body.guide-page .rs .guide-article > * + * {
  margin-top: 20px;
}
body.guide-page .rs .guide-article > h2 {
  margin-top: 56px;
}
body.guide-page .rs .guide-article > h3 {
  margin-top: 32px;
  color: var(--rs-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  scroll-margin-top: 84px;
}
body.guide-page .rs .guide-article > h2 + *,
body.guide-page .rs .guide-article > h3 + * {
  margin-top: 12px;
}
body.guide-page .rs .guide-article > ul > li + li,
body.guide-page .rs .guide-article > ol > li + li {
  margin-top: 12px;
}
body.guide-page .rs .guide-article > p + ul,
body.guide-page .rs .guide-article > p + ol {
  margin-top: 12px;
}

/* The worry people bring from NBCC's other FAQ: body size, thin grey rule. */
body.guide-page .rs .guide-article > .rs-aside {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--rs-line);
}
body.guide-page .rs .guide-article > .rs-aside + p {
  margin-top: 28px;
}

/* Tables: larger cell text. Captions stay for screen readers; the heading
   above already names the table. */
body.guide-page .rs .guide-table {
  font-size: 16px;
  line-height: 24px;
}
body.guide-page .rs .guide-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.guide-page .rs .guide-table thead th {
  font-size: 13px;
}
body.guide-page .rs .rs-steps td a {
  display: inline-block;
  font-weight: 500;
}
body.guide-page .rs .rs-certs ul {
  margin: 0;
  padding-left: 18px;
}
body.guide-page .rs .rs-certs li {
  font-size: 16px;
  line-height: 24px;
}
body.guide-page .rs .rs-certs li + li {
  margin-top: 6px;
}

/* Drawing: thin strokes, one purple, one tint, grey. */
.rs .rs-fig {
  margin-inline: 0;
  scroll-margin-top: 84px;
}
.rs .rs-fig svg {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  font-family: inherit;
  font-size: 15px;
}
.rs .rs-fig figcaption {
  margin-top: 10px;
  color: var(--rs-quiet);
  font-size: 16px;
  line-height: 24px;
}
.rs .rs-svg-ink { fill: var(--rs-ink); font-weight: 500; }
.rs .rs-svg-grey { fill: var(--rs-quiet); }
.rs .rs-svg-accent { fill: var(--rs-accent); font-weight: 600; }
.rs .rs-svg-tint { fill: var(--rs-tint); stroke: var(--rs-accent); stroke-width: 1; }
.rs .rs-svg-wash { fill: var(--rs-wash); stroke: var(--rs-line); stroke-width: 1; }
.rs .rs-svg-tick { stroke: var(--rs-accent); stroke-width: 2; stroke-linecap: round; }
.rs .rs-svg-rule { stroke: var(--rs-line); stroke-width: 2; stroke-linecap: round; }
.rs .rs-svg-dot { fill: #fff; stroke: var(--rs-quiet); stroke-width: 2; }
.rs .rs-svg-dot-on { fill: var(--rs-accent); stroke: var(--rs-accent); }

/* Sources fold. */
.rs .rs-fold > summary {
  min-height: 44px;
  color: var(--rs-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
}
.rs .rs-fold > summary + * {
  margin-top: 12px;
}
body.guide-page .rs .guide-sources li + li {
  margin-top: 10px;
}

/* FAQ: lighter questions. */
body.guide-page .rs .faq-list summary {
  min-height: 56px;
  padding-block: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

@media (max-width: 760px) {
  body.guide-page .rs .guide-hero h1 {
    font-size: 30px;
    line-height: 38px;
  }
  body.guide-page .rs .guide-meta {
    margin-top: 12px;
  }
  body.guide-page .rs .guide-article > h2 {
    margin-top: 48px;
  }
  .rs .rs-date input,
  .rs .rs-date .button {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 560px) {
  /* The timeline on a phone: a thin line with a dot for each step. */
  body.guide-page .rs .rs-steps-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  body.guide-page .rs .rs-steps tbody tr {
    position: relative;
    padding: 0 0 28px 28px;
    border-bottom: 0;
  }
  body.guide-page .rs .rs-steps tbody tr::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 2px solid var(--rs-accent);
    border-radius: 50%;
    background: #fff;
  }
  body.guide-page .rs .rs-steps tbody tr::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 24px;
    bottom: -2px;
    width: 2px;
    background: var(--rs-line);
  }
  body.guide-page .rs .rs-steps tbody tr:nth-last-child(2)::after,
  body.guide-page .rs .rs-steps tbody tr:last-child::after {
    content: none;
  }
  /* Not passing is a side branch, so it stands apart from the three steps. */
  body.guide-page .rs .rs-steps tbody tr.rs-branch {
    margin-top: 4px;
    padding-top: 24px;
    padding-bottom: 0;
    border-top: 1px solid var(--rs-line);
  }
  body.guide-page .rs .rs-steps tbody tr.rs-branch::before {
    top: 30px;
    border-color: var(--rs-quiet);
  }
  body.guide-page .rs .rs-steps tbody th[scope="row"] {
    padding: 0 0 4px;
    color: var(--rs-ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }
  body.guide-page .rs .rs-steps td {
    padding: 0;
  }
  body.guide-page .rs .rs-steps td[data-label]::before {
    content: none;
  }
  body.guide-page .rs .rs-steps td a {
    display: block;
    padding: 10px 0 0;
  }
  /* Certifications: one calm label above each cell. */
  body.guide-page .rs .rs-certs tbody th[scope="row"] {
    font-size: 16px;
    font-weight: 600;
  }
  body.guide-page .rs .rs-certs td[data-label]::before {
    margin: 8px 0 2px;
    font-size: 13px;
    font-weight: 500;
  }
}

/* Text inside a fold matches the body. */
body.guide-page .rs .rs-fold > p,
body.guide-page .rs .rs-fold > ul > li {
  font-size: 18px;
  line-height: 28px;
}
body.guide-page .rs .rs-fold > * + * {
  margin-top: 12px;
}
body.guide-page .rs .guide-sources {
  font-size: 15px;
  line-height: 24px;
}
