/* Resume styles. Used by the on-screen preview and by the PDF print page, so
   every rule here must behave the same on screen and on paper. Sizes are in
   pt and em so the page looks identical at any preview zoom. */

@font-face { font-family: "RO Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "RO Source Serif"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: block; }
@font-face { font-family: "RO Garamond"; src: url("../fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 800; font-display: block; }

.resume {
  --accent: #1f4e79;
  --fs: 10.5pt;
  --ink: #1a1a1a;
  --soft: #4a4a4a;
  --rule: #c9c9c9;
  --gap: 1.05em;
  font-size: var(--fs);
  line-height: 1.38;
  color: var(--ink);
  font-family: "RO Source Serif", Georgia, serif;
  text-align: left;
  overflow-wrap: anywhere;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.resume.f-inter { font-family: "RO Inter", Arial, sans-serif; }
.resume.f-source-serif { font-family: "RO Source Serif", Georgia, serif; }
.resume.f-garamond { font-family: "RO Garamond", Garamond, serif; font-size: calc(var(--fs) * 1.08); }

.resume * { box-sizing: border-box; margin: 0; padding: 0; }
.resume a { color: inherit; text-decoration: none; }
.resume h1 { font-size: 2.2em; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
.resume .r-title { font-size: 1.12em; color: var(--soft); margin-top: 0.2em; }
.resume .r-contact { list-style: none; display: flex; flex-wrap: wrap; gap: 0.15em 1.1em; margin-top: 0.55em; font-size: 0.93em; color: var(--soft); }
.resume .r-head { margin-bottom: var(--gap); }

.resume .r-body { display: flex; flex-direction: column; }
.resume .r-main, .resume .r-side { display: contents; }
.resume .r-sec { margin-bottom: var(--gap); }
.resume.edu-first .s-summary { order: -2; }
.resume.edu-first .s-education { order: -1; }

.resume h2 {
  font-size: 0.95em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent); border-bottom: 0.75pt solid var(--rule); padding-bottom: 0.22em; margin-bottom: 0.55em;
  break-after: avoid; page-break-after: avoid;
}
.resume .r-item { margin-bottom: 0.7em; }
.resume .r-item:last-child { margin-bottom: 0; }
.resume .r-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; break-inside: avoid; page-break-inside: avoid; break-after: avoid; page-break-after: avoid; }
.resume .r-item-title { min-width: 0; }
.resume .r-role { font-weight: 700; }
.resume .r-org::before { content: ", "; }
.resume .r-role:empty + .r-org::before, .resume .r-org:first-child::before { content: ""; }
.resume .r-meta { flex: none; text-align: right; color: var(--soft); font-size: 0.93em; white-space: nowrap; }
.resume .r-loc::before { content: " | "; }
.resume .r-loc:first-child::before { content: ""; }
.resume .r-bullets { margin: 0.28em 0 0 1.45em; }
.resume .r-bullets li { margin-bottom: 0.16em; padding-left: 0.1em; break-inside: avoid; page-break-inside: avoid; }
.resume .r-summary, .resume .r-note { color: var(--ink); }
.resume .r-skill { margin-bottom: 0.2em; }
.resume .r-skill strong { font-weight: 700; }

/* ---------- Classic: centred header, serif, thin rules ---------- */
.resume.t-classic .r-head { text-align: center; }
.resume.t-classic .r-contact { justify-content: center; }
.resume.t-classic h2 { color: var(--ink); border-bottom-color: var(--ink); }
.resume.t-classic h1 { color: var(--accent); }

/* ---------- Modern: accent bar, sans headings ---------- */
.resume.t-modern .r-head { border-left: 4pt solid var(--accent); padding-left: 0.85em; }
.resume.t-modern h1 { font-weight: 800; }
.resume.t-modern h2 { border-bottom: 0; padding-bottom: 0; letter-spacing: 0.12em; }
.resume.t-modern h2::after { content: ""; display: block; width: 2.4em; height: 1.5pt; background: var(--accent); margin-top: 0.3em; }
.resume.t-modern .r-org { color: var(--accent); }

/* ---------- Compact: dense, fits more on one page ---------- */
.resume.t-compact { --gap: 0.72em; line-height: 1.27; font-size: calc(var(--fs) * 0.94); }
.resume.t-compact h1 { font-size: 1.8em; }
.resume.t-compact .r-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5em; border-bottom: 1.5pt solid var(--accent); padding-bottom: 0.45em; }
.resume.t-compact .r-contact { margin-top: 0; justify-content: flex-end; text-align: right; max-width: 55%; }
.resume.t-compact .r-title { margin-top: 0.1em; }
.resume.t-compact .r-head { flex-wrap: wrap; }
.resume.t-compact h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 0.3em; }
.resume.t-compact .r-item { margin-bottom: 0.45em; }

/* ---------- Executive: formal, small caps, double rule ---------- */
.resume.t-executive h1 { font-variant-caps: small-caps; letter-spacing: 0.04em; font-weight: 600; font-size: 2.35em; }
.resume.t-executive .r-head { border-bottom: 2.25pt double var(--accent); padding-bottom: 0.7em; }
.resume.t-executive h2 { font-variant-caps: small-caps; text-transform: none; font-size: 1.15em; letter-spacing: 0.06em; color: var(--ink); border-bottom: 0.75pt solid var(--accent); }
.resume.t-executive .r-role { font-style: normal; }
.resume.t-executive .r-org { font-style: italic; }

/* ---------- Minimal: airy, no rules ---------- */
.resume.t-minimal { --gap: 1.35em; }
.resume.t-minimal h1 { font-weight: 500; letter-spacing: 0; font-size: 2.05em; }
.resume.t-minimal h2 { border-bottom: 0; color: var(--soft); font-weight: 600; font-size: 0.82em; letter-spacing: 0.16em; margin-bottom: 0.7em; }
.resume.t-minimal .r-role { font-weight: 600; }
.resume.t-minimal .r-contact { gap: 0.15em 1.5em; }
.resume.t-minimal .r-title { color: var(--accent); }

/* ---------- Sidebar: two columns, details on the left ---------- */
.resume.t-sidebar .r-head { border-bottom: 1.5pt solid var(--accent); padding-bottom: 0.6em; }
.resume.t-sidebar .r-body { display: grid; grid-template-columns: 31% 1fr; column-gap: 1.6em; }
.resume.t-sidebar .r-main { display: block; grid-column: 2; grid-row: 1; }
.resume.t-sidebar .r-side { display: block; grid-column: 1; grid-row: 1; border-right: 0.75pt solid var(--rule); padding-right: 1.2em; }
.resume.t-sidebar .r-side .r-item-head { display: block; }
.resume.t-sidebar .r-side .r-meta { text-align: left; white-space: normal; }
.resume.t-sidebar .r-side .r-org { display: block; }
.resume.t-sidebar .r-side .r-org::before { content: ""; }
.resume.t-sidebar .r-side .r-skill strong { display: block; }
.resume.t-sidebar h2 { border-bottom: 0; padding-bottom: 0; }
.resume.t-sidebar .r-sec { margin-bottom: var(--gap); }

/* ---------- Print page (used by the PDF renderer) ---------- */
@page { margin: 0.55in 0.62in; }
html.print-letter { --page-w: 8.5in; }
html.print-a4 { --page-w: 210mm; }
html.print-doc, html.print-doc body { margin: 0; padding: 0; background: #fff; }
