/* The family setup guide. One US Letter page when printed, a readable
   white sheet on screen. Ink only, so it holds up on a black and white
   clinic printer. */

.handout-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 32px;
}

.handout-tools .button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.handout-tools .button.secondary {
  border: 3px solid var(--gold);
}

.handout-wrap {
  padding-bottom: 64px;
}

.handout {
  --ink: #17123a;
  --ink-soft: #46415f;
  --rule: #d4d0e4;
  max-width: 8.5in;
  margin: 0 auto;
  padding: 0.5in;
  background: #ffffff;
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 28px 70px rgba(4, 2, 18, 0.65);
  font-size: 12pt;
  line-height: 1.35;
}

/* tight spacing keeps it to one printed page */
.handout p,
.handout ul,
.handout ol {
  margin: 0 0 7pt;
}

.handout h2,
.handout h3 {
  color: var(--ink);
  margin: 0 0 6pt;
}

.handout h2 {
  font-size: 15pt;
}

.handout a {
  color: var(--ink);
}

.handout-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20pt;
  align-items: start;
  padding-bottom: 10pt;
  border-bottom: 3pt solid var(--ink);
  margin-bottom: 12pt;
}

.handout-brand {
  display: flex;
  align-items: center;
  gap: 10pt;
  margin-bottom: 6pt;
}

.handout-brand img {
  width: 34pt;
  height: 34pt;
  border-radius: 9pt;
}

.handout-brand p {
  margin: 0;
  font-size: 12pt;
  font-weight: 700;
  line-height: 1.15;
}

.handout h1 {
  font-size: 24pt;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 6pt;
  max-width: none;
}

.handout-sub {
  font-size: 12.5pt;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 0;
}

.handout-qr {
  width: 1.25in;
  text-align: center;
  font-size: 9.5pt;
  line-height: 1.3;
  color: var(--ink-soft);
}

.handout-qr img {
  width: 1.25in;
  height: 1.25in;
  margin-bottom: 4pt;
}

.handout-cols {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22pt;
}

.handout-list {
  padding-left: 14pt;
}

.handout-list li {
  margin-bottom: 3pt;
}

.handout-steps {
  list-style: none;
  counter-reset: hstep;
  padding: 0;
}

.handout-steps li {
  counter-increment: hstep;
  display: grid;
  grid-template-columns: 22pt 1fr;
  gap: 8pt;
  margin-bottom: 5pt;
}

.handout-steps li::before {
  content: counter(hstep);
  width: 20pt;
  height: 20pt;
  border: 1.5pt solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11pt;
}

.handout-box {
  border: 1.5pt solid var(--ink);
  border-radius: 8pt;
  padding: 8pt 12pt 2pt;
  margin: 4pt 0 10pt;
}

.handout-box h2 {
  font-size: 13pt;
}

.handout-box ul {
  padding-left: 14pt;
}

.handout-box li {
  margin-bottom: 3pt;
}

.handout-warning {
  font-weight: 700;
  font-size: 12pt;
  padding: 6pt 0;
  border-top: 1pt solid var(--rule);
  border-bottom: 1pt solid var(--rule);
}

.handout-foot {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22pt;
  margin-top: 14pt;
  align-items: end;
}

.handout-fill p {
  margin: 0 0 12pt;
  display: flex;
  gap: 8pt;
  align-items: flex-end;
  font-weight: 700;
}

.handout-fill span {
  flex: 1;
  border-bottom: 1pt solid var(--ink);
  min-height: 16pt;
}

.handout-help {
  font-size: 11pt;
  color: var(--ink-soft);
}

.handout-help p {
  margin: 0 0 3pt;
}

.handout-help strong {
  color: var(--ink);
}

/* On a phone the sheet reflows into one column instead of shrinking */
@media screen and (max-width: 760px) {
  .handout {
    padding: 24px 20px;
    font-size: 1rem;
  }
  .handout-head,
  .handout-cols,
  .handout-foot {
    grid-template-columns: 1fr;
  }
  .handout h1 {
    font-size: 1.8rem;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.45in;
  }
  html {
    font-size: 100%;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  .skip-link,
  .site-header,
  .site-footer,
  .handout-intro,
  .handout-tools {
    display: none !important;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  .handout-wrap {
    padding: 0;
  }
  .handout {
    max-width: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
}
