/* Resume page. Screen styles first, print rules at the bottom.
   The printed sheet is the deliverable: Chrome > Print > Save as PDF. */

.cv {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.cv-actions a,
.cv-actions button {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cv-actions a:hover,
.cv-actions button:hover { color: var(--signal); border-color: var(--signal); }

.cv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.cv-head h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cv-head .cv-title {
  display: block;
  margin-top: 0.4rem;
  color: var(--signal);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cv-contact {
  text-align: right;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cv-contact a { color: var(--signal); text-decoration: none; }
.cv-contact a:hover { text-decoration: underline; }
.cv-phone { display: none; }

.cv-summary {
  max-width: 72ch;
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.cv h2 {
  margin-top: 2.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
  color: var(--signal);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cv-org {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.15rem;
}
.cv-org h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.cv-org .place { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.cv-org .span {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cv-role { margin-top: 0.7rem; break-inside: avoid; }

.cv-role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
}
.cv-role-head h4 {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cv-role-head .span {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  white-space: nowrap;
}

.cv-role ul { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.cv-role li {
  position: relative;
  padding-left: 1rem;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cv-role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  background: var(--signal);
}

.cv-skills { margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.cv-skill {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}
.cv-skill dt {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cv-skill dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 640px) {
  .cv-contact { text-align: left; }
  .cv-skill { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

/* ------------------------------------------------------------------ print */

@page {
  size: letter;
  margin: 13mm 14mm;
}

@media print {
  html, body {
    background: #fff !important;
    color: #000;
    font-size: 10pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .site-footer,
  .cv-actions,
  .skip-link { display: none !important; }

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

  .cv-phone { display: inline; }

  .cv-head { padding-bottom: 6pt; border-bottom-width: 1.5pt; }
  .cv-head h1 { font-size: 22pt; }
  .cv-head .cv-title { margin-top: 3pt; font-size: 7.5pt; letter-spacing: 0.13em; }
  .cv-contact { font-size: 8.4pt; line-height: 1.45; }
  .cv-summary { margin-top: 7pt; font-size: 9pt; line-height: 1.4; max-width: none; }

  .cv h2 {
    margin-top: 11pt;
    padding-bottom: 2pt;
    font-size: 7.5pt;
    letter-spacing: 0.15em;
    break-after: avoid;
  }

  .cv-org { margin-top: 7pt; break-after: avoid; }
  .cv-org h3 { font-size: 10.5pt; }
  .cv-org .place { font-size: 8.5pt; }
  .cv-org .span { font-size: 8pt; }

  .cv-role { margin-top: 4pt; }
  .cv-role-head h4 { font-size: 8pt; }
  .cv-role-head .span { font-size: 7.6pt; }
  .cv-role li { font-size: 9pt; line-height: 1.34; margin-top: 1.5pt; padding-left: 9pt; }
  .cv-role li::before { top: 0.55em; width: 2.6pt; height: 2.6pt; }

  .cv-skills { margin-top: 4pt; gap: 2pt; }
  .cv-skill { grid-template-columns: 74pt minmax(0, 1fr); gap: 8pt; }
  .cv-skill dt { font-size: 7.6pt; }
  .cv-skill dd { font-size: 9pt; }

  a { color: #000 !important; text-decoration: none; }
  .cv-contact a { color: #000 !important; }
}
