/* =========================================================
   Resume page — screen + print
   ========================================================= */

.resume-toolbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 16px 0;
}
.resume-toolbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.resume-toolbar-hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.resume-toolbar-actions { display: flex; gap: 10px; }

.resume {
  max-width: 820px;
  margin: 48px auto 96px;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.resume-head { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 28px; }
.resume-name {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.025em;
  font-weight: 700;
}
.resume-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.resume-contact {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.resume-contact a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.resume-section { margin-bottom: 28px; }
.resume-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.resume-section p { margin: 0 0 10px; color: var(--text); }
.resume-bullets {
  margin: 0; padding-left: 20px;
  color: var(--text);
}
.resume-bullets li { margin-bottom: 6px; line-height: 1.55; }
.resume-bullets li::marker { color: var(--text-muted); }
.resume-bullets strong { color: var(--text); }

.resume-stack {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.resume-job { margin-bottom: 20px; }
.resume-job-head {
  display: flex; flex-direction: column;
  margin-bottom: 8px;
}
.resume-job-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.resume-job-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 700px) {
  .resume { margin: 24px 16px 64px; padding: 28px 22px; }
  .resume-toolbar-inner { gap: 8px; }
}

/* =========================================================
   Print — clean one-page-ish PDF, always black on white
   ========================================================= */

@media print {
  @page { size: A4; margin: 14mm 14mm; }

  /* Force B/W for the printed output regardless of selected theme */
  :root, :root[data-theme="dark"], :root[data-theme="light"] {
    --bg: #ffffff;
    --bg-elev: #ffffff;
    --bg-elev-2: #ffffff;
    --surface: #ffffff;
    --border: #c8c8c8;
    --border-strong: #888888;
    --text: #000000;
    --text-muted: #3a3a3a;
    --text-dim: #555555;
    --accent: #000000;
    --accent-2: #000000;
    --on-accent: #ffffff;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 9.6pt;
    line-height: 1.38;
  }
  .no-print { display: none !important; }

  .resume {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .resume-head { padding-bottom: 10px; margin-bottom: 14px; }
  .resume-name { font-size: 23px; margin: 0 0 4px; line-height: 1.1; }
  .resume-title { font-size: 10pt; margin: 0 0 6px; }
  .resume-contact { font-size: 9.4pt; line-height: 1.4; }

  .resume-section { margin-bottom: 14px; }
  .resume-section h2 {
    font-size: 8.8pt;
    padding-bottom: 4px;
    margin: 0 0 8px;
    letter-spacing: 0.16em;
  }
  .resume-section p { margin: 0 0 6px; font-size: 9.6pt; }

  .resume-stack { font-size: 9.6pt; line-height: 1.4; }

  .resume-job { margin-bottom: 12px; }
  .resume-job-head { margin-bottom: 4px; }
  .resume-job-head h3 { font-size: 10.8pt; margin: 0; line-height: 1.2; }
  .resume-job-meta { font-size: 9pt; margin-top: 2px; }

  .resume-bullets {
    margin: 0;
    padding-left: 16px;
  }
  .resume-bullets li {
    margin-bottom: 3px;
    font-size: 9.4pt;
    line-height: 1.4;
  }

  /* Color all links and inline accents black for print */
  a, .resume-title, .resume-job-meta, .resume-contact a { color: #000 !important; text-decoration: none !important; }

  /* Keep each job block together; let sections flow naturally so they
     don't get pushed wholesale to page 2 and leave huge whitespace. */
  .resume-job { break-inside: avoid; page-break-inside: avoid; }
  .resume-section h2 { break-after: avoid; page-break-after: avoid; }
}
