:root {
  --resume-max-width: 800px;
}

body.resume-body {
  background: #ffffff;
  color: #17212b;
  font-family: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
}

.resume-doc {
  max-width: var(--resume-max-width);
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.resume-print-bar {
  max-width: var(--resume-max-width);
  margin: 0 auto;
  padding: 14px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.resume-print-bar a {
  color: #1f1b16;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
}

.resume-print-bar a:hover {
  text-decoration: underline;
}

.resume-print-bar button {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border: 1px solid #1f1b16;
  border-radius: 8px;
  background: #1f1b16;
  color: #fff;
  cursor: pointer;
}

.resume-print-bar button:hover {
  background: #3a352c;
}

.resume-header {
  border-bottom: 2px solid #1f1b16;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.resume-header h1 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.resume-header .resume-role {
  margin: 0 0 10px;
  color: #5d6873;
  font-weight: 600;
  font-size: 0.85rem;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.72rem;
  color: #5d6873;
}

.resume-section {
  margin-bottom: 16px;
  break-inside: avoid;
}

.resume-section h2 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f1b16;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 4px;
}

.resume-entry {
  margin-bottom: 10px;
  break-inside: avoid;
}

.resume-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.resume-entry-meta {
  font-size: 0.72rem;
  color: #5d6873;
  margin: 1px 0 4px;
}

.resume-entry ul {
  margin: 0;
  padding-left: 16px;
  color: #344050;
}

.resume-entry ul li {
  margin-bottom: 2px;
}

.resume-degree {
  border: 1px solid #1f1b16;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #f5f1e9;
}

.resume-degree .resume-degree-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #1f1b16;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.resume-subheading {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #5d6873;
}

.resume-cert-list {
  margin: 0;
  padding-left: 16px;
  color: #344050;
}

.resume-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.resume-cert-card {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.72rem;
}

.resume-cert-card strong {
  display: block;
  font-size: 0.74rem;
  margin-bottom: 2px;
}

.resume-cert-card span {
  color: #5d6873;
  font-size: 0.68rem;
}

.resume-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resume-pill-grid span {
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
}

.resume-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .resume-two-col,
  .resume-subheading {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #5d6873;
}

.resume-cert-list {
  margin: 0;
  padding-left: 16px;
  color: #344050;
}

.resume-cert-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .resume-print-bar {
    display: none;
  }

  body.resume-body {
    font-size: 10.5px;
  }

  .resume-doc {
    max-width: none;
    padding: 0;
  }

  @page {
    size: A4;
    margin: 12mm;
  }

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