/* ============================================================
   CV page — light, standardised, print-to-PDF ready (A4).
   ============================================================ */

:root {
  --ink: #1a1d21;
  --ink-soft: #3c434b;
  --muted: #6b7178;
  --line: #d9dde1;
  --accent: #0d7a6e;      /* darker teal: readable when printed */
  --sheet: #ffffff;
  --bg: #eef0f2;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.2px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 240, 242, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toolbar .back {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.toolbar .back:hover { color: var(--ink); }
.toolbar .print-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(13, 122, 110, 0.55);
  transition: transform 0.15s;
}
.toolbar .print-btn:hover { transform: translateY(-1px); }
.toolbar .print-btn svg { width: 16px; height: 16px; }
.toolbar .hint {
  display: none;
  font-size: 12.5px;
  color: var(--muted);
}
@media (min-width: 760px) {
  .toolbar .hint { display: block; }
}

/* ---------- sheet ---------- */
.sheet {
  background: var(--sheet);
  max-width: 210mm;
  min-height: 297mm;
  margin: 28px auto 56px;
  padding: 15mm 16mm;
  box-shadow: 0 24px 70px -30px rgba(20, 30, 40, 0.35);
  border-radius: 4px;
}

/* ---------- header ---------- */
.cv-header { margin-bottom: 20px; }
.cv-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
}
.cv-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 10px;
}
.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 13px;
  color: var(--muted);
}
.cv-contact span { display: inline-flex; align-items: center; }
.cv-contact span + span::before {
  content: "·";
  margin: 0 9px;
  color: var(--line);
}
.cv-contact a { color: var(--muted); text-decoration: none; }
.cv-contact a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- sections ---------- */
.cv-section { margin-top: 22px; }
.cv-section h2 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin: 0 0 14px;
}
.cv-item { margin-bottom: 16px; }
.cv-item:last-child { margin-bottom: 0; }
.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.item-title { font-weight: 600; font-size: 15px; }
.item-title small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.item-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.item-place { color: var(--muted); font-size: 13px; margin-top: 1px; }
.item-notes { margin-top: 6px; }
.item-notes li {
  margin: 0 0 4px;
  padding-left: 14px;
  position: relative;
  color: var(--ink-soft);
  font-size: 13.8px;
}
.item-notes li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--line);
}
.cv-summary { color: var(--ink-soft); font-size: 14px; }

/* skills */
.skill-row { display: flex; gap: 12px; margin-bottom: 8px; font-size: 13.8px; }
.skill-row:last-child { margin-bottom: 0; }
.skill-row .skill-cat {
  flex: 0 0 170px;
  font-weight: 600;
  color: var(--ink);
}
.skill-row .skill-list { color: var(--ink-soft); }

/* awards & languages */
.flat-list { list-style: none; margin: 0; padding: 0; }
.flat-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13.8px;
}
.flat-list li:last-child { border-bottom: 0; }
.flat-list .when { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.cv-footer-note {
  margin-top: 26px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- print ---------- */
@page {
  size: A4;
  margin: 12mm;
}
@media print {
  body { background: #fff; font-size: 12.5px; }
  .toolbar { display: none !important; }
  .sheet {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    max-width: none;
    min-height: auto;
    padding: 0;
  }
  .cv-section { break-inside: avoid; }
  .cv-item { break-inside: avoid; }
  a { color: var(--ink); text-decoration: none; }
}
