:root {
  --print-brand: #174f59;
  --print-ink: #202b2c;
  --print-muted: #5f6d6e;
  --print-line: #ccd8d6;
  --print-soft: #f1f6f5;
}

* {
  box-sizing: border-box;
}

body {
  background: #eef2f1;
  color: var(--print-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.print-toolbar {
  display: flex;
  gap: .6rem;
  justify-content: center;
  padding: 1rem;
}

.print-toolbar button {
  background: var(--print-brand);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: .65rem 1rem;
}

.print-page {
  background: #fff;
  box-shadow: 0 8px 30px rgba(27, 54, 56, .1);
  margin: 0 auto 2rem;
  max-width: 900px;
  padding: 3rem 3.5rem;
}

.print-header {
  border-bottom: 2px solid var(--print-brand);
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
}

.print-header__school {
  color: var(--print-brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  margin: 0 0 .55rem;
  text-transform: uppercase;
}

.print-header h1 {
  color: var(--print-brand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1.12;
  margin: 0;
}

.print-header h1 small {
  color: var(--print-muted);
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-top: .45rem;
}

.print-header__url {
  color: var(--print-muted);
  font-size: .76rem;
  margin: .75rem 0 0;
}

.study-facts {
  border-collapse: collapse;
  margin: 0 0 1.8rem;
  width: 100%;
}

.study-facts th,
.study-facts td {
  border-bottom: 1px solid var(--print-line);
  padding: .6rem .75rem;
  text-align: left;
  vertical-align: top;
}

.study-facts th {
  background: var(--print-soft);
  font-weight: 700;
  width: 34%;
}

h2 {
  border-bottom: 1px solid var(--print-line);
  color: var(--print-brand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  margin: 2rem 0 .8rem;
  padding-bottom: .3rem;
  break-after: avoid;
  page-break-after: avoid;
}

.print-content {
  margin-bottom: 1.25rem;
}

.print-content img {
  height: auto;
  max-width: 100%;
}

.print-content table {
  border-collapse: collapse;
  max-width: 100%;
  width: 100%;
}

.print-content td,
.print-content th {
  border: 1px solid var(--print-line);
  padding: .4rem .5rem;
  text-align: left;
  vertical-align: top;
}

a {
  color: var(--print-brand);
}

.print-footer {
  border-top: 1px solid var(--print-line);
  color: var(--print-muted);
  font-size: .75rem;
  margin-top: 2.5rem;
  padding-top: .8rem;
}

.print-footer p {
  margin: .2rem 0;
}

@page {
  margin: 16mm 15mm 18mm;
  size: A4;
}

@media print {
  body {
    background: #fff;
    font-size: 10.5pt;
  }

  .print-toolbar {
    display: none;
  }

  .print-page {
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 0;
  }

  .print-header h1 {
    font-size: 24pt;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  img,
  table,
  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media screen and (max-width: 700px) {
  .print-page {
    margin-bottom: 0;
    padding: 1.5rem 1.1rem;
  }

  .study-facts th {
    width: 40%;
  }
}
