/* ════════════════════════════════════════════════════════════════════════
   Résumé — the same room, tidied for paper.
   Screen keeps the house white and serif; print drops to plain black on
   white and takes every section (placeholders excepted).
   ═══════════════════════════════════════════════════════════════════════ */

.resume-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) clamp(3rem, 8vw, 5rem);
}

/* ── Print button ───────────────────────────────────────────────────── */
.print-bar {
  position: relative;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.resume-header {
  padding-bottom: 1.6rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink);
}
.resume-header h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.resume-role { margin: 0.7rem 0 0; color: var(--accent); }
.resume-contact {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-mid);
  overflow-wrap: anywhere;
}
.resume-contact a { color: inherit; text-decoration: none; }
.resume-contact a:hover { color: var(--accent); }
.resume-contact span { margin: 0 0.45rem; color: var(--ink-dim); }

/* ── Sections & entries ─────────────────────────────────────────────── */
.resume-section { margin-bottom: 2.4rem; }
.resume-section h2 {
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.resume-summary { margin: 0; color: var(--ink-mid); font-size: 1.05rem; }

.resume-list { margin: 0; padding: 0; list-style: none; }
.resume-list li {
  padding: 0.25rem 0;
  font-size: 0.97rem;
  color: var(--ink-mid);
  break-inside: avoid;
}
.resume-list .rl-title { color: var(--ink); }
.resume-list .rl-year { color: var(--ink-dim); font-variant-numeric: oldstyle-nums; }
@media (min-width: 640px) {
  .resume-list--cols { columns: 2; column-gap: 2.5rem; }
}

.resume-entry { margin-bottom: 1.5rem; }
.resume-entry:last-child { margin-bottom: 0; }
.resume-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.resume-entry-head h3 { font-size: 1.16rem; }
.resume-dates {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-variant-numeric: oldstyle-nums;
  white-space: nowrap;
}
.resume-org { margin: 0.15rem 0 0.6rem; font-size: 0.93rem; font-style: italic; color: var(--ink-mid); }
.resume-loc { color: var(--ink-dim); }
.resume-loc::before { content: "\00b7"; margin: 0 0.45em; }
.resume-entry ul { margin: 0; padding-left: 1.1rem; color: var(--ink-mid); font-size: 0.95rem; }
.resume-entry li { margin-bottom: 0.3rem; }
.resume-entry li::marker { color: var(--ink-dim); }

.is-placeholder { outline: 1px dashed var(--accent); outline-offset: 0.8rem; }
.placeholder-flag {
  margin-left: 0.6rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

@media (max-width: 420px) {
  .print-bar .btn { flex: 1; text-align: center; padding-inline: 0.6rem; }
}

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
  .no-print,
  .is-placeholder { display: none !important; }

  body { background: #fff; color: #111; font-size: 11.5pt; line-height: 1.5; }
  ::selection { background: transparent; }

  .resume-page { max-width: none; padding: 0; }

  .resume-header { border-bottom-color: #111; }
  .resume-role { color: #444; }
  .resume-contact,
  .resume-summary,
  .resume-org,
  .resume-dates,
  .resume-list li,
  .resume-entry ul { color: #222; }
  .resume-list .rl-title { color: #111; }
  .resume-section h2 { border-bottom-color: #888; }
  a { color: #111 !important; text-decoration: none; }

  .resume-list--cols { columns: 2; column-gap: 2rem; }

  .resume-entry { break-inside: avoid; }
  .resume-section h2,
  .resume-entry-head { break-after: avoid; }

  @page { margin: 14mm; }
}
