* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: white;
  color: black;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.375;
}

body {
  margin: 0;
  padding: 2.5rem 0;
  min-height: 100vh;
  font-size: 11pt;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

ul {
  margin: 0 0 0 1.2rem;
  padding: 0;
  list-style-type: disc;
}

li {
  margin-bottom: 2px;
}

.cv {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cv-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid black;
}

.name-row,
.entry-title,
.grades {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1rem;
  margin-bottom: 0.25rem;
}

.name {
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hometown {
  font-size: 1.125rem;
  font-style: italic;
}

.contact {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-line {
  margin-bottom: 0.25rem;
}

.separator {
  margin: 0 0.5rem;
}

.detail,
.role,
.date,
.education-detail,
.course-list,
.community-detail,
.award-list {
  font-size: 0.875rem;
}

.bold,
.role-label {
  font-weight: bold;
}

.italic,
.location,
.date,
.role {
  font-style: italic;
}

.cv-section {
  margin-bottom: 1.25rem;
}

.section-title {
  margin-bottom: 0.75rem;
  padding-bottom: 4px;
  border-bottom: 1px solid black;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  break-after: avoid;
}

.entry {
  margin-bottom: 1rem;
}

.entry-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-bottom: 0.25rem;
}

.entry-title {
  gap: 0 0.75rem;
  margin-bottom: 0;
}

.entry-name {
  flex: 1 1 20rem;
  min-width: 0;
  font-size: 1.125rem;
  font-weight: bold;
}

.date {
  white-space: nowrap;
  font-weight: 500;
}

.education-detail {
  margin: 0.25rem 0 0.5rem;
  line-height: 1.625;
}

.grades {
  gap: 0 1.5rem;
}

.course-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.125rem 0.5rem;
  margin-top: 0.25rem;
  margin-left: 1.25rem;
}

.role {
  margin-bottom: 0.25rem;
}

.role-label {
  font-style: normal;
}

.publication {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  text-indent: -1rem;
}

.community-detail {
  margin-top: 0.25rem;
}

.report-link,
.award-year {
  font-weight: 500;
}

.community-summary {
  margin-top: 0.125rem;
}

.award-list {
  margin-left: 0;
  list-style: none;
}

.award {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.award-year {
  white-space: nowrap;
}

.cv-footer {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(0 0 0 / 20%);
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .cv {
    padding: 0 3rem;
  }

  .course-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@page {
  margin: 15mm;
}

@media print {
  body {
    min-height: auto;
    padding: 0;
  }

  .cv {
    max-width: none;
    padding: 0;
  }

  .course-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .entry-heading,
  .award,
  .publication {
    break-inside: avoid;
  }

  a {
    text-decoration: none;
  }

}
