/* Fieldcraft — shared stylesheet for every sample CV in this folder.

   One file so the samples read as a single, consistent product and a design
   change lands on all of them at once. The document itself stays single
   column with real text and real <li> bullets, so it still parses the way an
   applicant tracking system expects; the colour and chips are screen polish.

   Retheme from the :root block. */

:root {
  --ink:        #14171C;
  --ink-2:      #3B4250;
  --muted:      #6B7280;
  --line:       #E4E7EC;
  --accent:     #0F766E;   /* deep teal, the site's aurora darkened for paper */
  --accent-2:   #115E59;
  --tint:       #F0F9F7;
  --tint-line:  #CBE9E3;
  --soft:       #F6F7F9;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', 'Segoe UI', Arial, Helvetica, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- the page around the paper ---------- */

body {
  min-height: 100vh;
  padding: 36px 20px 88px;
  background:
    radial-gradient(900px 620px at 10% -10%, rgba(72, 58, 168, 0.38), transparent 62%),
    radial-gradient(760px 560px at 95% 4%,   rgba(20, 108, 130, 0.32), transparent 60%),
    linear-gradient(180deg, #060916 0%, #0A1024 50%, #060916 100%);
  background-attachment: fixed;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.page-shell { max-width: 820px; margin: 0 auto; }

.back-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px;
}
.back-bar a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(160, 178, 235, 0.22);
  border-radius: 999px;
  background: rgba(19, 26, 51, 0.6);
  color: #C3CAE2;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.back-bar a:hover { border-color: #5EEAD4; color: #5EEAD4; }

.notice {
  margin-bottom: 22px;
  color: #97A0BE;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; line-height: 1.6;
}

/* ---------- the paper ---------- */

.cv {
  position: relative;
  overflow: hidden;
  padding: 58px 62px 54px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset,
              0 24px 60px -18px rgba(0, 0, 0, .75),
              0 0 0 1px rgba(160, 178, 235, .14);
  font-size: 11pt;
  line-height: 1.55;
  color: var(--ink);
}
/* a thin band of the site's aurora across the head of the page */
.cv::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, #0F766E 0%, #2DD4BF 45%, #815AE6 100%);
}

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* ---------- header ---------- */

.cv-header {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.cv-name {
  font-family: var(--serif);
  font-size: 29pt; font-weight: 600;
  letter-spacing: -.02em; line-height: 1.05;
  color: var(--ink);
}
.cv-title {
  margin-top: 8px;
  font-size: 12pt; font-weight: 500;
  color: var(--accent);
}
.cv-contact {
  display: flex; flex-wrap: wrap; gap: 4px 0;
  margin-top: 14px;
  font-size: 9.5pt; color: var(--ink-2);
}
.cv-contact span { white-space: nowrap; }
.cv-contact span:not(:last-child)::after {
  content: "·";
  margin: 0 11px;
  color: var(--accent); font-weight: 700;
}

/* ---------- sections ---------- */

.cv-section { margin-bottom: 24px; }
.cv-section:last-child { margin-bottom: 0; }
.cv-section-title {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 13px;
  font-size: 8.5pt; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.cv-section-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--tint-line), var(--line) 60%, transparent);
}

.cv-summary { font-size: 10.5pt; line-height: 1.68; color: var(--ink-2); }

/* ---------- experience ---------- */

.cv-job {
  position: relative;
  margin-bottom: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--tint-line);
}
.cv-job:last-child { margin-bottom: 0; }
.cv-job::before {
  content: "";
  position: absolute; left: -6px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
}
.cv-job-header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 4px 12px;
}
.cv-job-title { font-size: 11pt; font-weight: 600; color: var(--ink); }
.cv-job-dates,
.cv-edu-date {
  padding: 2px 9px;
  background: var(--tint);
  border-radius: 999px;
  font-family: var(--mono); font-size: 8pt; letter-spacing: .02em;
  color: var(--accent-2);
  white-space: nowrap;
}
.cv-job-org { margin: 2px 0 7px; font-size: 10pt; font-weight: 500; color: var(--muted); }
.cv-job-scope { margin-bottom: 7px; font-size: 9.5pt; font-style: italic; color: var(--muted); }

.cv ul { padding-left: 17px; }
.cv-job li,
.cv-section > ul:not([class]) > li {
  margin-bottom: 5px;
  font-size: 10pt; line-height: 1.55;
  color: var(--ink);
}
.cv li::marker { color: var(--accent); }

/* ---------- figure strips: deals, metrics, impact, highlights ---------- */

.deal-strip, .metrics-strip, .metric-strip, .impact-strip, .cv-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}
.deal-item, .metric-item, .metrics-item, .impact-item, .cv-achievement-item {
  padding: 13px 14px 12px;
  background: linear-gradient(160deg, #F4FBF9 0%, #EAF6F3 100%);
  border: 1px solid var(--tint-line);
  border-radius: 8px;
  font-size: 9pt;
}
.d-val, .m-val, .i-val, .a-val {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 17pt; font-weight: 600; line-height: 1.1;
  color: var(--accent-2);
}
.d-lbl, .m-lbl, .i-lbl, .a-lbl {
  display: block;
  font-size: 8.5pt; line-height: 1.4;
  color: var(--ink-2);
}

/* ---------- licences, admissions, certifications ---------- */

.cv-licenses, .cv-licence-block, .licence-block, .admissions, .cv-certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  font-size: 9.5pt;
}
.cv-licenses > span, .cv-licence-block > span, .licence-block > span,
.admissions > span, .cv-certs > span {
  padding: 8px 12px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  line-height: 1.45;
  color: var(--ink-2);
}

/* ---------- chips: stack, tools, certificates, tickets ---------- */

.stack-strip, .tool-strip, .cert-strip, .ticket-strip {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.stack-chip, .tool-chip, .cert, .ticket {
  display: inline-flex; align-items: center;
  padding: 4px 11px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  font-size: 9pt; font-weight: 500;
  color: var(--accent-2);
}

/* ---------- skills ---------- */

.cv-skills {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-left: 0 !important;
  list-style: none;
}
.cv-skills li {
  padding: 4px 11px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9.5pt;
  color: var(--ink-2);
}

/* ---------- education ---------- */

.cv-edu {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 4px 12px;
}
.cv-edu-deg { font-size: 10.5pt; font-weight: 600; color: var(--ink); }
.cv-edu-school { margin-top: 2px; font-size: 10pt; color: var(--ink-2); }
.cv-edu-detail { margin-top: 2px; font-size: 9.5pt; color: var(--muted); }

/* ---------- projects, publications, clips ---------- */

.cv-project { margin-bottom: 12px; }
.cv-project-title { font-size: 10.5pt; font-weight: 600; }
.cv-project-desc { margin-top: 2px; font-size: 10pt; color: var(--ink-2); }

.pub-entry, .cv-pub {
  margin-bottom: 10px;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--tint-line);
}
.pub-title { font-family: var(--serif); font-size: 11pt; font-style: italic; color: var(--ink); }
.pub-meta { margin-top: 2px; font-size: 9pt; color: var(--muted); }
.cv-pub { font-size: 10pt; line-height: 1.6; color: var(--ink-2); }

.clips-list { list-style: none; padding-left: 0 !important; }
.clips-list li {
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 2px solid var(--tint-line);
  font-size: 10pt; line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- tables: credits, rotations, timelines ---------- */

.credit-table, .cv-rotations, .cv-timeline {
  width: 100%;
  border-collapse: collapse;
  font-size: 10pt;
}
.credit-table th, .cv-rotations th {
  padding: 7px 10px;
  background: var(--tint);
  text-align: left;
  font-size: 8pt; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2);
}
.credit-table td, .cv-rotations td, .cv-timeline td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
.credit-table td:first-child, .cv-rotations td:first-child, .cv-timeline td:first-child {
  font-weight: 600; color: var(--ink);
}
.cv-timeline td:first-child { white-space: nowrap; }

/* ---------- template switcher (templates.js) ---------- */
/* fonts are named outright: a template may point --sans at a serif */

.tpl-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 18px; }
.tpl-switch-label {
  margin-right: 4px;
  font: 11px 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase;
  color: #97A0BE;
}
.tpl-switch a {
  padding: 6px 13px;
  background: rgba(19, 26, 51, .6);
  border: 1px solid rgba(160, 178, 235, .22); border-radius: 999px;
  color: #C3CAE2; text-decoration: none;
  font: 500 13px 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  transition: border-color .15s ease, color .15s ease;
}
.tpl-switch a:hover { border-color: #5EEAD4; color: #5EEAD4; }
.tpl-switch select {
  min-height: 34px; padding: 5px 34px 5px 13px;
  background: rgba(19, 26, 51, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235EEAD4' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 11px 8px;
  border: 1px solid rgba(94, 234, 212, .45); border-radius: 999px;
  color: #F2F4FC; font: 500 13px 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.tpl-switch select option, .tpl-switch select optgroup { background: #131A33; color: #F2F4FC; }
.tpl-switch a[aria-current] { background: linear-gradient(180deg, #5EEAD4 0%, #34C9B4 100%); border-color: transparent; color: #04221E; font-weight: 600; }
.tpl-switch .tpl-use { margin-left: auto; border-color: rgba(94, 234, 212, .45); color: #5EEAD4; }

/* ---------- inside the site's quick-view dialog ---------- */

html.embedded body { padding: 22px 18px 40px; background: #0A1024; }
html.embedded .back-bar, html.embedded .notice, html.embedded .tpl-switch { display: none; }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  body { padding: 18px 12px 56px; }
  .cv { padding: 38px 22px 32px; border-radius: 8px; }
  .cv-name { font-size: 22pt; }
  .cv-contact span { white-space: normal; }
  .cv-job { padding-left: 14px; }
  .credit-table, .cv-rotations, .cv-timeline { display: block; overflow-x: auto; }
}

/* ---------- print: plain paper, system fonts ---------- */

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

@media print {
  body { background: #fff !important; padding: 0 !important; }
  .back-bar, .notice, .tpl-switch { display: none !important; }
  .page-shell { max-width: none; }
  .cv {
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif;
  }
  .cv::before { display: none; }
  .cv-name, .d-val, .m-val, .i-val, .a-val, .pub-title { font-family: Georgia, 'Times New Roman', serif; }
  .cv-job, .cv-edu, .pub-entry, .deal-item, .metric-item, .metrics-item,
  .impact-item, .cv-achievement-item { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
}
