/* =============================================
   RESUME PAGE — Additional Layout & Components
   Extends styles.css — uses all design tokens
   ============================================= */

/* ---- Page shell ---- */
.resume-page {
  padding-top: var(--nav-h);
  background: var(--midnight);
  min-height: 100vh;
}

/* ---- Header bar ---- */
.resume-header-bar {
  background: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.resume-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.resume-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--warm-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.resume-title {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  color: var(--signal);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
}
.resume-contact span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--silver);
  letter-spacing: 0.04em;
}
.resume-contact a { color: var(--silver); transition: color 0.15s; }
.resume-contact a:hover { color: var(--signal); }

/* Active nav link */
.nav-active {
  color: var(--signal) !important;
}

/* ---- Body ---- */
.resume-body {
  padding: clamp(3rem, 6vw, 5rem) var(--gap);
  max-width: 900px;
}

/* ---- Section ---- */
.res-section {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.res-section-last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.res-section-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: 1.5rem;
}

/* ---- Summary ---- */
.res-summary-text {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--white);
  opacity: 0.88;
  line-height: 1.78;
  max-width: 72ch;
}

/* ---- Competencies ---- */
.comp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Employer block (wraps multiple nested roles) ---- */
.res-employer-block {
  margin-bottom: 2.75rem;
}
.res-employer-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--steel);
}
.res-employer-type {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--silver);
}

/* ---- Role ---- */
.res-role {
  margin-bottom: 2rem;
}
.res-role:last-child { margin-bottom: 0; }
.res-role-nested {
  padding-left: 1.25rem;
  border-left: 2px solid var(--steel);
  margin-bottom: 1.75rem;
}
.res-role-brief { margin-bottom: 1.25rem; }
.res-role-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.res-company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--warm-white);
  letter-spacing: -0.015em;
  margin: 0;
}
.res-location {
  font-size: 0.82rem;
  color: var(--silver);
  margin-top: 0.1rem;
}
.res-client {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--warm-white);
  margin: 0;
}
.res-jobtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-white);
  margin-bottom: 0.75rem;
}
.res-dates {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--signal);
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

/* ---- Bullet list ---- */
.res-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.res-bullets li {
  font-size: 0.875rem;
  color: var(--silver);
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
}
.res-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}
.res-bullets li strong { color: var(--warm-white); font-weight: 600; }

/* ---- Education ---- */
.res-edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .res-edu-grid { grid-template-columns: repeat(2, 1fr); }
}
.res-edu-degree {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--warm-white);
  margin-bottom: 0.25rem;
}
.res-edu-school {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--silver);
  letter-spacing: 0.04em;
}

/* =============================================
   PRINT STYLES — Clean white document output
   ============================================= */
@media print {

  @page {
    size: letter;
    margin: 0.7in 0.75in 0.7in 0.75in;
  }

  /* Override all dark tokens */
  :root {
    --midnight:   #ffffff;
    --slate:      #f5f6f8;
    --steel:      #d0d5dd;
    --silver:     #44546f;
    --white:      #1a2433;
    --signal:     #0055a5;
    --warm-white: #1a2433;
    --rule:       rgba(0,0,0,0.1);
    --font-display: 'Inter', Arial, sans-serif;
    --font-body:    'IBM Plex Sans', Arial, sans-serif;
    --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  }

  body {
    background: #fff;
    color: #1a2433;
    font-size: 9.5pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide chrome */
  .nav,
  .footer,
  .no-print,
  .rail {
    display: none !important;
  }

  .resume-page { padding-top: 0; background: #fff; }

  /* Header */
  .resume-header-bar {
    background: #fff;
    border-bottom: 2pt solid #1a2433;
    padding: 0 0 10pt;
  }
  .resume-name  { font-size: 22pt; color: #1a2433; }
  .resume-title { color: #0055a5; font-size: 8.5pt; }
  .resume-contact span { color: #44546f; }
  .resume-contact a    { color: #44546f; }

  /* Body */
  .resume-body { padding: 0.5rem 0 0; max-width: 100%; }

  /* Sections */
  .res-section {
    page-break-inside: avoid;
    border-bottom-color: #d0d5dd;
    margin-bottom: 14pt;
    padding-bottom: 14pt;
  }
  .res-section-title { color: #0055a5; font-size: 7.5pt; }

  /* Summary */
  .res-summary-text { opacity: 1; color: #1a2433; }

  /* Employer / role */
  .res-employer-block { page-break-inside: avoid; margin-bottom: 16pt; }
  .res-employer-hdr   { border-bottom-color: #d0d5dd; }
  .res-role           { page-break-inside: avoid; }
  .res-role-nested    { border-left-color: #d0d5dd; }

  /* Text */
  .res-company  { color: #1a2433; }
  .res-client   { color: #1a2433; }
  .res-jobtitle { color: #1a2433; }
  .res-dates    { color: #0055a5; }
  .res-location { color: #44546f; }
  .res-employer-type { color: #44546f; }

  /* Bullets */
  .res-bullets li        { color: #44546f; }
  .res-bullets li::before { background: #0055a5; }
  .res-bullets li strong  { color: #1a2433; }

  /* Tags */
  .tag { background: #f0f2f5; border-color: #c8cdd5; color: #44546f; }

  /* Education */
  .res-edu-degree { color: #1a2433; }
  .res-edu-school { color: #44546f; }
}
