:root {
  --dark-blue: #003366;
  --medium-gray: #666666;
  --font: "Times New Roman", Georgia, "Times", serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 11pt;
  line-height: 1.35;
  color: #111;
  max-width: 8.5in;
  margin: 0 auto;
  padding: 0.5in 0.65in;
  background: #fff;
}

/* ── Header ── */
header {
  text-align: center;
  margin-bottom: 10px;
}

h1 {
  font-size: 20pt;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.contact {
  font-size: 10.5pt;
  color: #111;
}

.contact .sep {
  margin: 0 6px;
  color: var(--medium-gray);
}

/* ── Section headings ── */
h2 {
  font-size: 12pt;
  font-weight: bold;
  color: var(--dark-blue);
  border-bottom: 1.5px solid var(--dark-blue);
  padding-bottom: 1px;
  margin-top: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Entry blocks ── */
.entry {
  margin-bottom: 6px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dotted var(--medium-gray);
  padding-bottom: 1px;
  margin-bottom: 2px;
  font-size: 10.5pt;
}

.date {
  color: var(--medium-gray);
  white-space: nowrap;
  margin-left: 12px;
  flex-shrink: 0;
}

.course {
  color: var(--medium-gray);
  font-size: 10pt;
}

/* ── Lists ── */
ul {
  margin: 2px 0 0 0;
  padding-left: 18px;
}

li {
  margin-bottom: 2px;
  font-size: 10.5pt;
}

li:last-child {
  margin-bottom: 0;
}

/* ── Skills table ── */
.skills {
  border-collapse: collapse;
  width: 100%;
  font-size: 10.5pt;
  margin-top: 2px;
}

.skills td {
  padding: 1px 8px 1px 0;
  vertical-align: top;
}

.skills td:first-child {
  white-space: nowrap;
  padding-right: 12px;
  width: 130px;
}

/* ── Links ── */
a {
  color: var(--dark-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Inline code ── */
code {
  font-family: "Courier New", Courier, monospace;
  font-size: 9.5pt;
}

/* ── Print button ── */
#print-btn {
  position: fixed;
  top: 16px;
  right: 20px;
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 10pt;
  background: var(--dark-blue);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s;
  z-index: 100;
}

#print-btn:hover {
  opacity: 1;
}

/* ── Print styles ── */
@media print {
  body {
    padding: 0;
    font-size: 10.5pt;
  }

  #print-btn {
    display: none;
  }

  h2 {
    margin-top: 8px;
  }

  .entry {
    page-break-inside: avoid;
  }

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