/* Shared design tokens and section styles for the website and the A4 print page.
   Colours and proportions come from the owner's Word template (PROGRESS.md, M1). */

@font-face { font-family: "Carlito"; src: url("/assets/fonts/carlito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("/assets/fonts/carlito-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("/assets/fonts/carlito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("/assets/fonts/carlito-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --navy: #153e64;
  --navy-ink: #153d63;
  --grey: #d9d9d9;
  --ink: #262622;
  --muted: #747474;
  --rule: rgba(0, 0, 0, 0.14);
  --band-text: #f2f2f2;
  --linkedin: #0a66c2;
  --font: "Carlito", "Calibri", "Segoe UI", Arial, sans-serif;

  /* timeline geometry; overridden per context */
  --tl: 30px;          /* distance from content edge to the timeline centre */
  --dot-big: 14px;
  --dot-small: 9px;
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must win over component display rules (.btn, .reveal-out, ...) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); }
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

/* ---------- headings and timeline ---------- */
.sec-h {
  position: relative;
  color: var(--navy-ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
/* Dots are vertically centred on what they mark: the section heading, or the
   employer logo itself (the logo box is exactly the logo's height). v0.4.1 */
.timeline .sec-h::before,
.timeline .exp-org::before {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 50%;
  background: var(--navy);
  transform: translateY(-50%);
}
.timeline .sec-h::before { width: var(--dot-big); height: var(--dot-big); left: calc(-1 * var(--tl) - var(--dot-big) / 2); }
.timeline .exp-org { position: relative; }
.timeline .exp-org::before { width: var(--dot-small); height: var(--dot-small); left: calc(-1 * var(--tl) - var(--dot-small) / 2); }

/* ---------- experience ---------- */
.exp { display: flow-root; }
.exp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; }
.exp-org { line-height: 1; font-size: 1em; }
.exp-org .logo { display: block; width: auto; max-width: none; }
.exp-dates { white-space: nowrap; text-align: right; color: #5c5c5c; }
/* role title and client heading: bold, so each entry reads logo -> title -> text (v0.4.0) */
.exp-role { margin-top: 0.3em; font-weight: 700; color: var(--navy-ink); }
.exp-client { margin-top: 0.7em; font-weight: 700; color: var(--ink); }
.exp-p { margin-top: 0.55em; }
.exp-p--after-client { margin-top: 0.15em; }
.exp-line { margin-top: 0.15em; }
.exp-p .client { float: right; width: auto; max-width: none; margin: 0.15em 0 0.3em 0.9em; }
.grade { color: var(--muted); }
.unit { font-style: italic; font-weight: 700; color: var(--navy-ink); }

.logo--valcon { height: 1.45em; }
.logo--volkerwessels { height: 1.2em; }
.logo--capgemini { height: 1.65em; }
.logo--vodafoneziggo { height: 1.35em; }
.logo--ordina { height: 1.05em; }
.client--stedin { height: 1.5em; }
.client--bayer { height: 1.9em; }
.client--klm { height: 1.15em; }

/* ---------- sidebar sections ---------- */
.tagline { font-style: italic; }
.tagline-note { margin-top: 0.5em; font-weight: 700; color: var(--navy-ink); }
.edu { list-style: none; margin: 0; padding: 0; }
.edu-item { padding: 0.2em 0 0.25em; border-bottom: 1px solid var(--rule); }
.edu-item:last-child { border-bottom: 0; }
.edu-head { display: flow-root; }
.edu-dates { float: right; margin-left: 0.8em; white-space: nowrap; }
.edu-title { display: inline; }
.placeholder-note { font-style: italic; color: var(--muted); }
.bullets { margin: 0; padding-left: 1.35em; }
.bullets li { padding-left: 0.2em; }

.skills { width: 100%; border-collapse: collapse; }
.skills th { text-align: left; font-weight: 400; padding: 0.05em 0.6em 0.05em 0; vertical-align: top; }
.skills td { white-space: nowrap; vertical-align: top; padding: 0.05em 0; width: 4.6em; }
.skills tr { border-bottom: 1px solid var(--rule); }
.stars { display: inline-flex; gap: 0.08em; color: var(--ink); vertical-align: -0.05em; }
.icon.star { width: 0.78em; height: 0.78em; }
.legend-h { margin-top: 1.2em; }
.legend dl { margin: 0.5em 0 0; }
.legend-row { display: grid; grid-template-columns: 4.6em 1fr; gap: 0.4em; margin-bottom: 0.1em; }
.legend dt { padding-top: 0.05em; }
.legend dd { margin: 0; }

.icon .cut { stroke: var(--icon-cut, var(--navy)); }
.icon .cut-fill { fill: var(--icon-cut, #fff); }

/* ---------- QR ---------- */
.qr-box { display: block; background: #fff; }
.qr-box svg { display: block; width: 100%; height: auto; }
