/*
 * CV page.
 *
 * The layout is the original two-column CV (year column + content column)
 * scoped to .cv-content so the site header keeps the same navigation styles
 * as every other page.
 */

.cv-page {
  background: #fff;
}

.cv-content {
  box-sizing: border-box;
  max-width: 1130px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  font: normal normal 400 80%/1.5em Verdana, sans-serif;
}

.cv-content *,
.cv-content *::before,
.cv-content *::after {
  box-sizing: border-box;
}

.cv-content p {
  position: relative;
  left: 33%;
  width: 65%;
  margin: 0 0 0.7em;
  font-family: 'Open Sans'
  font-weight: 400;
}

.cv-content code {
  font: normal normal 60% Menlo, monospace, sans-serif;
  color: #aaa;
}

.cv-content p code {
  position: absolute;
  left: -14%;
}

.cv-content ul {
  position: relative;
  left: 33%;
  width: 65%;
  margin: -0.5em 0 1.5em;
  padding: 0;
  list-style: none;
}

.cv-content li {
  padding-left: 1.25em;
  text-indent: -1.25em;
}

.cv-content li ul {
  position: relative;
  left: 0;
  width: 100%;
  margin-top: 0.25em;
}

.cv-content h1,
.cv-content h2,
.cv-content h3,
.cv-content h4 {
  font-weight: 400;
  font-family: 'Open Sans';
  text-decoration: none;
}

.cv-content h1 {
  position: relative;
  left: 33%;
  width: 65%;
  margin: 0 0 0.2em;
  font-size: 3em;
  line-height: 1em;
  text-align: left;
}

.cv-content h1 + p {
  font-style: italic;
  font-size: 110%;
}

.cv-content h2 {
  position: relative;
  top: 1.4em;
  width: 20%;
  margin: 1em 0 0;
  font-size: 1.1em;
  line-height: 1.5em;
  color: var(--primary);
  text-align: right;
}

.cv-content h3 {
  position: relative;
  top: 1.7em;
  width: 20%;
  margin: 0;
  font-size: 1em;
  line-height: 2em;
  text-align: right;
}

.cv-content a {
  color: inherit;
  text-decoration: none;
}

.cv-content a:hover {
  color: #39f;
}

.cv-content #webaddress {
  position: relative;
  left: 33%;
  width: 65%;
  margin-top: 1em;
  color: #aaa;
  font-family: monospace;
  font-size: 80%;
}

.cv-content #webaddress a {
  text-decoration: none;
}

.cv-content em {
  font-weight: bold;
  font-style: italic;
}

.cv-content strong {
  font-weight: bold;
}

.cv-content .cv-item {
  position: relative;
  left: 23%;
  display: flex;
  align-items: baseline;
  width: 64%;
}

.cv-content .cv-item-year {
  flex: 0 0 4.5em;
  font-family: monospace;
}

.cv-content .cv-item-content {
  flex: 1 1 auto;
  min-width: 0;
}

.cv-content .cv-item-content p {
  left: 0;
  width: 100%;
  margin-bottom: 4px;
  padding-left: 15px;
  font-family: 'Open Sans';
  font-size: 1em;
  hyphens: none;
}

.cv-content .cv-item-content ul {
  position: static;
  left: auto;
  width: 100%;
  margin: 0 0 4px;
}

@media (max-width: 768px) {
  .cv-content {
    padding: 1.5rem 1rem 3rem;
    font-size: 100%;
  }

  .cv-content h1,
  .cv-content h2,
  .cv-content h3,
  .cv-content p,
  .cv-content ul,
  .cv-content #webaddress,
  .cv-content .cv-item {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    text-align: left;
  }

  .cv-content h2 {
    margin-top: 1.5em;
  }

  .cv-content .cv-item {
    gap: 0.75em;
  }
}

@media print {
  .cv-page header {
    display: none;
  }

  .cv-content {
    max-width: none;
    padding: 0;
    font-size: 10pt;
  }

  .cv-content p {
    left: 28%;
    width: 70%;
    margin-bottom: 0.2em;
  }

  .cv-content ul {
    left: 28%;
    width: 65%;
    margin-bottom: 1em;
  }

  .cv-content h1 {
    left: 28%;
    font-size: 3em;
  }

  .cv-content h2 {
    top: 1.2em;
    width: 18%;
    margin-top: 2em;
  }

  .cv-content h3 {
    top: 1.6em;
    width: 18%;
  }

  .cv-content #webaddress {
    left: 28%;
    width: 65%;
  }

  .cv-content .cv-item {
    left: 28%;
    width: 70%;
  }

  .cv-content .cv-item-content p {
    margin-bottom: 0.2em;
  }

  .cv-content em {
    font-style: normal;
    color: #2d4e5e;
  }
}
