/* Résumé. Screen styling follows the portfolio theme; print stays a single document. */

.resume h1 {
  font-size: 2.45rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.resume .role-title {
  margin-top: 0.35rem;
  color: var(--forest);
  font-size: 1.02rem;
  font-weight: 650;
}

.resume-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.75rem;
  color: var(--text-lo);
  font-size: 0.9rem;
}

.contact-line a {
  color: var(--text-lo);
  text-decoration: none;
}

.contact-line a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.print-btn {
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.summary {
  max-width: 46rem;
  margin-bottom: 0.25rem;
  color: var(--text-hi);
  font-size: 1.03rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.75rem 0 2.75rem;
  border-block: 1px solid var(--line-soft);
}

.metric-row > div {
  padding: 1.05rem 1.25rem 1.15rem 1.15rem;
  border-right: 1px solid var(--line-soft);
}

.metric-row > div:last-child {
  border-right: 0;
}

.metric-row strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.metric-row span {
  display: block;
  color: var(--text-lo);
  font-size: 0.83rem;
  font-weight: 400;
  line-height: 1.45;
  text-wrap: pretty;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 3rem;
  align-items: start;
}

.resume h2 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.entry {
  position: relative;
  margin-bottom: 1.85rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--line);
}

.entry:last-child {
  margin-bottom: 0;
}

.entry::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lake);
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.entry-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.entry-org {
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 650;
}

.entry-meta {
  color: var(--text-lo);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.entry-context {
  margin-top: 0.35rem;
  color: var(--text-lo);
  font-size: 0.9rem;
}

.entry ul {
  margin: 0.65rem 0 0 1.15rem;
  color: var(--text-hi);
  font-size: 0.94rem;
}

.entry li {
  margin-bottom: 0.4rem;
}

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

.skill-group {
  margin-bottom: 1.35rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-label {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.skill-group-desc {
  color: var(--text-lo);
  font-size: 0.86rem;
  line-height: 1.5;
}

.cert-entry,
.edu-entry {
  margin-bottom: 1rem;
}

.cert-entry:last-child,
.edu-entry:last-child {
  margin-bottom: 0;
}

.cert-title,
.edu-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.cert-org,
.edu-org {
  color: var(--text-lo);
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  .metric-row,
  .resume-grid {
    grid-template-columns: 1fr 1fr;
  }

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .metric-row > div:nth-child(2) {
    border-right: 0;
  }

  .metric-row > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 560px) {
  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-row > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .metric-row > div:last-child {
    border-bottom: 0;
  }
}

@page {
  size: letter;
  margin: 0.55in 0.6in;
}

@media print {
  html {
    font-size: 11.5px;
  }

  body.resume {
    line-height: 1.4;
    background: #fff !important;
  }

  .print-btn {
    display: none !important;
  }

  .resume h1 {
    font-size: 26px;
  }

  .resume .role-title {
    margin-top: 0.2rem;
    font-size: 12.5px;
  }

  .resume-head {
    gap: 0.6rem;
    margin-bottom: 2.4rem !important;
  }

  .contact-line {
    margin-top: 0.4rem;
    font-size: 11px;
  }

  .summary {
    max-width: none;
    margin-bottom: 0;
    font-size: 11.5px;
  }

  .metric-row {
    margin: 2rem 0 2.4rem;
  }

  .metric-row > div {
    padding: 0.5rem 0.6rem 0.55rem;
  }

  .metric-row strong {
    margin-bottom: 0.2rem;
    font-size: 10.5px;
  }

  .metric-row span {
    font-size: 9.5px;
    line-height: 1.35;
  }

  .resume h2 {
    margin-bottom: 0.85rem;
    padding-bottom: 0.32rem;
    font-size: 10px;
  }

  .resume-section {
    margin-bottom: 1.7rem;
  }

  .entry {
    margin-bottom: 1.45rem;
    padding-left: 0.85rem;
  }

  .entry::before {
    top: 0.32rem;
    width: 8px;
    height: 8px;
  }

  .entry-title {
    font-size: 12px;
  }

  .entry-org,
  .entry-context {
    font-size: 10.5px;
  }

  .entry-meta {
    font-size: 9.5px;
  }

  .entry-context {
    margin-top: 0.4rem;
  }

  .entry ul {
    margin: 0.55rem 0 0 1rem;
  }

  .entry li {
    margin-bottom: 0.48rem;
    font-size: 11px;
  }

  .skill-group {
    margin-bottom: 0.95rem;
  }

  .skill-group-label {
    margin-bottom: 0.12rem;
    font-size: 11px;
  }

  .skill-group-desc,
  .cert-org,
  .edu-org {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .cert-title,
  .edu-title {
    font-size: 11px;
  }

  .cert-entry,
  .edu-entry {
    margin-bottom: 0.5rem;
  }

  html[data-theme="harbor"] .resume-head {
    margin: 0 0 2.4rem !important;
    padding: 0 !important;
    background: none !important;
    color: #14282d !important;
  }

  html[data-theme="harbor"] .resume-head h1,
  html[data-theme="harbor"] .resume-head .contact-line,
  html[data-theme="harbor"] .resume-head .contact-line a {
    color: #14282d !important;
  }

  html[data-theme="harbor"] .resume-head .role-title {
    color: #17616a !important;
  }

  .resume-grid {
    grid-template-columns: 1.7fr 1fr !important;
    gap: 1.5rem !important;
  }

  .metric-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .metric-row > div {
    border-bottom: 0 !important;
  }

  .metric-row > div:nth-child(2) {
    border-right: 1px solid var(--line-soft) !important;
  }

  .resume h2,
  .entry-head,
  .entry-org,
  .entry-context {
    break-after: avoid;
  }

  .entry-head,
  .entry-context,
  .entry li,
  .skill-group,
  .metric-row > div,
  .cert-entry,
  .edu-entry {
    break-inside: avoid;
  }
}
