/* Web resume and its print layout. The PDF is printed from this page (tools/build.js --pdf). */
.resume-page main { padding: 40px 24px 64px; max-width: 920px; }
.cv { padding: 40px 44px; }
.cv-head { border-bottom: 2px solid var(--text); padding-bottom: 16px; margin-bottom: 8px; }
.cv h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; line-height: 1; }
.cv .cv-role { font-family: var(--sans); margin: 6px 0 0; font-weight: 700; color: var(--accent-ink); letter-spacing: .04em; text-transform: uppercase; font-size: 0.875rem; }
.cv-contact { margin: 8px 0 0; font-size: 0.875rem; color: var(--body); }
.cv-contact a { color: inherit; text-underline-offset: 3px; }
.cv section { margin-top: 22px; }
.cv h2 { font-size: 0.8125rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 10px; }
.cv p, .cv li, .cv dd { font-family: var(--serif); font-size: 0.9688rem; line-height: 1.55; color: var(--body); }
.cv p { margin: 0; }
.cv-skills { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.cv-skills dt { font-weight: 700; font-size: 0.875rem; padding-top: 2px; }
.cv-skills dd { margin: 0; }
.cv-job { margin-bottom: 14px; }
.cv-line { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 4px; }
.cv-line h3 { font-size: 0.9688rem; font-weight: 800; }
.cv-line span { font-size: 0.8438rem; font-weight: 600; color: var(--muted); }
.cv ul { margin: 4px 0 0; padding-left: 18px; }
.cv li { margin-bottom: 3px; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 640px) {
  .cv { padding: 22px 18px; }
  .cv-skills { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cv-skills dd { margin-bottom: 8px; }
  .resume-page main { padding: 20px 16px 48px; }
}

@page { size: Letter; margin: 0.55in 0.6in; }
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --text: #111; --body: #222; --muted: #555; --line: #bbb;
    --accent-ink: #1F3C9E; color-scheme: light;
  }
  body { background: #fff; font-size: 10pt; }
  .band, .site-head, .skip, .cv-actions { display: none !important; }
  .resume-page main { padding: 0; max-width: none; }
  .cv { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .cv h1, .cv h2, .cv-role { letter-spacing: 0; }
  .cv h1 { font-size: 24pt; }
  .cv section { margin-top: 12pt; break-inside: auto; }
  .cv h2 { font-size: 9.5pt; margin-bottom: 5pt; padding-bottom: 3pt; break-after: avoid; }
  .cv p, .cv li, .cv dd { font-size: 10pt; line-height: 1.38; }
  .cv-line h3 { font-size: 10.5pt; }
  .cv-line span { font-size: 9pt; }
  .cv-job { margin-bottom: 7pt; break-inside: avoid; }
  .cv-skills { grid-template-columns: 1.15in minmax(0, 1fr); gap: 2pt 10pt; }
  .cv-skills dt { font-size: 9.5pt; }
  .cv a { text-decoration: none; }
}
