/* import font here for weasyprint */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* all formats */

.print-only {
  display: none;
}

.skills-table table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
}
.skills-table td {
  vertical-align: top;
}
.skills-table td:first-child {
  font-weight: 600;
  margin-left: 0;
  padding-left: 0;
  padding-right: 10px;
}

.degree {
  font-weight: 600;
}

.employer {
  font-weight: 600;
}

/*
* first rule removes space after all paragraphs so pdf looks right, but now the html is wrong, so
* the second rule adds it back where needed; handled this way because weasyprint does not seem to
* understand # feature of css
*/
p {
  margin-top: 0.5em;
  margin-bottom: 0;
}
section#education p {
  margin-top: 1em;
  margin-bottom: 1em;
}

.employment-date {
  float: right;
  font-style: italic;
}

.publication {
  display: block;
  text-indent: -2em;
  padding-left: 2em;
  margin-bottom: 0.4em;
}

/* adapt stylesheet for print
from: https://github.com/quarto-dev/quarto-cli/discussions/2538#discussioncomment-4081842 */

/* for page-breaks use style spans
  page-break-before: always;
  page-break-after: always;
*/

@media print {
  @page {
    size: Letter;
    margin: 1in;
    counter-increment: page;
    @bottom-left {
      content: "December 9, 2024";
      font-size: 0.7em;
      padding-bottom: 0.5in;
    }
    @bottom-center {
      content: counter(page);
      font-size: 0.7em;
      padding-bottom: 0.5in;
    }
    @bottom-right {
      content: "Stephen V. Brown, Ph.D.";
      font-size: 0.7em;
      padding-bottom: 0.5in;
    }
  }
  .print-only {
    display: block;
  }
  header .title {
    display: none;
  }
  header .author {
    display: none;
  }

  html {
    font-family: "Montserrat";
    font-size: 10pt;
  }
  body {
    overflow: auto; /* seems to help with printing problem, although not completely */
  }
  /* div.columns > * { */
  /*   margin-right: min(4vw, 1.5em); */
  /* } */
  /* div.columns > *:last-child { */
  /*   margin-right: 0; */
  /* } */

  .name {
    display: block;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
    padding: 0;
  }
  .contact {
    display: block;
    text-align: center;
    margin-top: 0;
    padding: 0;
  }

  .summary {
    display: block;
    margin-top: 2em;
    margin-bottom: 3em;
  }

  .employer {
    font-style: italic;
    font-weight: 500;
  }

  h2 {
    font-size: 1.2em;
    font-weight: 800;
    text-transform: uppercase;
  }
  h4 {
    font-size: 1.1em;
    margin-bottom: 0;
    margin-top: 0.5em;
  }

  ul {
    padding-left: 10px;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0.5em;
  }
}
