/* Resume page. Loaded after site.css. The resume wording lives in resume/index.html. */

.resume-wrap { max-width: calc(880px + 2 * var(--gutter)); margin-inline: auto; padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(56px, 8vw, 96px); }

.resume-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: clamp(28px, 5vw, 48px); }
.resume-actions .cs-back { color: var(--muted); font-size: 0.95rem; text-underline-offset: 4px; }
.resume-actions .cs-back:hover { color: var(--ink); }
.resume-actions-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.resume-actions .btn { min-height: 46px; padding: 0 22px; font-size: 0.95rem; font-family: inherit; cursor: pointer; background: none; color: inherit; }
.resume-actions .btn-primary { background: var(--btn-bg); color: var(--btn-ink); }

.resume-paper { font-size: 1rem; line-height: 1.55; }

.r-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 3px solid var(--ink); }
.r-name { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.03; }
.r-headline { margin-top: 12px; font-weight: 600; }
.r-contact-line { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.r-contact-line a { text-underline-offset: 4px; }
.r-header-photo { flex: none; width: 104px; }
.r-photo-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 4px 40px 4px; }

.r-section { margin-top: clamp(32px, 5vw, 48px); margin-bottom: 0 !important; }
.r-sec-title { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.r-prose { max-width: 78ch; }

.r-competencies-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.r-comp-item { padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 0.97rem; }

.r-role-item { margin-bottom: 30px; }
.r-role-item:last-child { margin-bottom: 0; }
.r-role-header { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.r-role-title { font-family: var(--display); font-weight: 650; font-size: 1.15rem; line-height: 1.3; }
.r-role-period { flex: none; color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; text-align: right; }
.r-role-meta { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.r-project-subhead { margin-top: 18px; font-weight: 600; padding-left: 12px; border-left: 3px solid var(--mark); line-height: 1.35; }
.r-bullets { margin-top: 8px; padding-left: 20px; list-style: disc; }
.r-bullets li { margin-top: 6px; max-width: 80ch; }
.r-bullets li::marker { color: var(--muted); }
.r-skills-list > div { padding-block: 9px; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .r-competencies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-role-header { flex-direction: column; }
  .r-role-period { text-align: left; }
  .r-header { flex-direction: column-reverse; gap: 18px; }
  .r-header-photo { width: 76px; }
}
@media (max-width: 460px) {
  .r-competencies-grid { grid-template-columns: minmax(0, 1fr); }
  .resume-actions-buttons, .resume-actions .btn { width: 100%; }
}

/* Print: plain black on white, document only, desktop layout */
@media print {
  :root, :root[data-theme="dark"] { --paper: #fff; --surface: #fff; --ink: #000; --muted: #333; --line: #bbb; --mark: #000; }
  body { background: #fff; color: #000; font-size: 9.2pt; line-height: 1.34; }
  .site-header, .site-footer, .resume-actions, .skip-link { display: none !important; }
  .resume-wrap { max-width: none; padding: 0; }
  .resume-paper { font-size: 9.2pt; line-height: 1.34; }
  .r-header { flex-direction: row; padding-bottom: 8pt; border-bottom-width: 1.5pt; }
  .r-name { font-size: 22pt; }
  .r-headline, .r-contact-line { margin-top: 5pt; font-size: 9.5pt; }
  .r-header-photo { width: 54pt; }
  .r-section { margin-top: 9pt; }
  .r-sec-title { font-size: 11.5pt; margin-bottom: 6pt; padding-bottom: 3pt; break-after: avoid; }
  .r-competencies-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .r-comp-item, .r-skills-list > div { padding-block: 3pt; font-size: 9.5pt; }
  .r-role-item { margin-bottom: 7pt; }
  .r-role-header { flex-direction: row; }
  .r-role-title { font-size: 10.5pt; }
  .r-role-period { text-align: right; font-size: 9.5pt; }
  .r-role-meta { font-size: 9.5pt; margin-top: 1pt; }
  .r-project-subhead { margin-top: 7pt; padding-left: 6pt; border-left-width: 1.5pt; }
  .r-bullets { margin-top: 3pt; padding-left: 14pt; }
  .r-bullets li { margin-top: 2pt; max-width: none; break-inside: avoid; }
  .r-prose { max-width: none; }
  a { color: #000; text-decoration: none; }
  @page { margin: 12mm; }
}

/* Resume built from the master file: second headline line, title under employer, compact items */
.r-headline-2 { margin-top: 2px; }
.r-role-sub { margin-top: 2px; font-weight: 600; }
.r-role-item.r-compact { margin-bottom: 14px; }
@media print { .r-role-item.r-compact { margin-bottom: 5pt; } .r-headline-2 { margin-top: 1pt; } }
