/* ============================================================
   THE MULTIVERSE — resume (Christopher Clarke)
   Same design language as the portfolio: deep space, self-hosted
   fonts, card language — tuned to stay document-grade and
   print-friendly.
   ============================================================ */

/* self-hosted fonts (latin subset) — zero external requests */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/space-grotesk.woff2") format("woff2");
}

:root {
  --bg: #07070f;
  --bg-2: #0c0c1a;
  --ink: #eef0ff;
  --muted: #9aa0c6;
  --faint: #6a7099;
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.028);
  --card-hover: rgba(255, 255, 255, 0.055);
  --accent: #7a5cff;
  --accent-2: #35c4ff;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --radius: 20px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(122, 92, 255, 0.45); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
br { display: none; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ skip link ============ */

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.25s;
}
.skip-link:focus { top: 12px; }

/* ============ nav ============ */

#rnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 13px clamp(20px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-orb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #b3a1ff 0%, #7a5cff 42%, #1b1040 100%);
  position: relative;
  box-shadow: 0 0 18px rgba(122, 92, 255, 0.55);
  flex: none;
}
.brand-orb::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(122, 92, 255, 0.5);
  transform: rotate(-24deg) scaleY(0.42);
  animation: orbit 7s linear infinite;
}
@keyframes orbit {
  from { transform: rotate(0deg) scaleY(0.42); }
  to   { transform: rotate(360deg) scaleY(0.42); }
}
.rnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-left: auto;
}
.rnav-links a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.rnav-links a:hover { color: var(--ink); border-bottom-color: var(--accent-2); }

#rnav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 110;
}
#rnav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#rnav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#rnav-toggle.open span:nth-child(2) { opacity: 0; }
#rnav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  #rnav-toggle { display: flex; }
  #rnav-links {
    /* #rnav's backdrop-filter makes the nav bar the containing block
       for fixed children, so anchor to the viewport top-left manually
       (the sticky nav sits at the viewport's top-left corner) */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-left: 0;
    background: rgba(7, 7, 15, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  /* transition lives here (not on the base) so the menu never flash-fades
     when the viewport crosses this breakpoint */
  #rnav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s, visibility 0.3s;
  }
  #rnav-links a {
    font-size: 22px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    border-bottom: 0;
  }
  body.menu-open { overflow: hidden; }
}

/* ============ head ============ */

.rhead {
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 84px) clamp(20px, 4vw, 48px) 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}
.rhead-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.rhead h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.rhead-contact {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.rhead-contact span + span:not(.rhead-contact-line)::before {
  content: "|";
  margin: 0 12px;
  color: var(--faint);
}
.rhead-contact a { color: var(--accent-2); }
.rhead-contact a:hover { text-decoration: underline; }
/* contact block renders as two lines: address/phone/email, then links */
.rhead-contact .rhead-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}
.rhead-contact .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rhead-contact .cicon {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--accent-2);
}

/* print / save PDF button */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.print-btn:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--card-hover);
  box-shadow: 0 0 16px rgba(122, 92, 255, 0.18);
  transform: translateY(-2px);
}
.print-btn svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 720px) {
  .print-btn { width: 100%; justify-content: center; }
}

/* ============ sections ============ */

section {
  counter-increment: sec;
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 60px) clamp(20px, 4vw, 48px) 0;
}
section::before {
  content: counter(sec, decimal-leading-zero) " · " attr(data-label);
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.015em;
}
section > hr {
  border: 0;
  height: 1px;
  margin: 18px 0 26px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin: 28px 0 12px;
}

/* back to top (any #top link that isn't the nav brand) */
a[href="#top"]:not(.brand) {
  display: inline-block;
  margin: 28px 0 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.2s;
}
a[href="#top"]:not(.brand):hover { color: var(--accent-2); }

/* ============ education ============ */

#education > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
#education > ul > li {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 20px 22px;
  transition: border-color 0.3s, background 0.3s;
}
#education > ul > li:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--card-hover);
}
#education > ul > li h3 { margin: 0 0 10px; font-size: 18px; }
/* institution links only — exclude the section's Back to Top link so it
   keeps the shared a[href="#top"] styling (faint mono, colour-only hover) */
#education a:not([href="#top"]) { color: var(--accent-2); font-weight: 600; }
#education a:not([href="#top"]):hover { text-decoration: underline; }
#education li > ul > li > ul { margin-top: 6px; }
#education li > ul > li > ul > li {
  font-size: 13.5px;
  color: var(--muted);
  padding: 1px 0;
}
#education li > ul > li > ul > li:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
}

/* ============ employment ============ */

/* combined date for multi-period entries (Brick Barn): hidden on screen
   because the periods sit inline with the locations; the print styles
   (higher specificity) bring it back for the top-right date slot */
.print-date { display: none; }

#employment > ul { display: grid; gap: 14px; }
#employment > ul > li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 18px 22px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
#employment > ul > li::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
#employment > ul > li:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--card-hover);
}
#employment > ul > li:hover::after { opacity: 1; }
#employment h3 { font-size: 18px; margin: 0 0 6px; }
#employment li > ul > li > p { margin-bottom: 4px; }
#employment li > ul > li > p a { color: var(--accent-2); font-weight: 600; }
#employment li > ul > li > p a:hover { text-decoration: underline; }
/* institution names without a link (Various Schools) keep the link look */
#employment li > ul > li > p b.eb-org { color: var(--accent-2); font-weight: 600; }
#employment li > ul > li > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
#employment li > ul > li > ul li {
  font-size: 13.5px;
  color: var(--muted);
}
#employment li > ul > li > ul li + li::before {
  content: "·";
  margin: 0 10px;
  color: var(--faint);
}
#employment li > ul > li > ul li:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
/* multi-period entry (Brick Barn): each location carries its period in the
   same faint mono style as the other entries' dates; the two location/date
   pairs are divided by a "/" in normal text tone */
.eb-dsep { color: var(--faint); margin: 0 10px; }
.eb-date { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
#employment li > ul > li > ul li.eb-pair::before {
  content: "/";
  margin: 0 10px;
  color: var(--muted);
}

/* ============ expertise ============ */

/* pill lists — skills, publications, conferences, interests, certificates, honours */
/* all pill lists stack full-width, one pill per row, spanning the content column */
.pill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pill-list > li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--card);
  font-size: 13.5px;
  color: var(--muted);
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.pill-list > li b { color: var(--accent-2); font-weight: 600; }
/* certificates & honours: item name recedes to the year's tone, institution stays light blue */
#certificates .pill-list > li b,
#honours .pill-list > li b { color: var(--faint); }
.pill-list > li em { color: var(--ink); }
.pill-list > li a { color: var(--accent-2); }
.pill-list > li a:hover { text-decoration: underline; }
/* certificates & honours: name left / organisation middle / year right */
#certificates .pill-list > li,
#honours .pill-list > li {
  display: flex;
  align-items: baseline;
}
#certificates .pill-list > li b,
#honours .pill-list > li b { flex: 1; }
#certificates .pill-list > li .pill-org,
#honours .pill-list > li .pill-org {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: left;
  white-space: nowrap;
}
/* desktop: name owns the full left half of the pill (so it doesn't wrap
   early); the org column starts exactly on the page's centre line; year right */
@media (min-width: 721px) {
  #certificates .pill-list > li,
  #honours .pill-list > li { --org-w: 270px; }
  #certificates .pill-list > li b,
  #honours .pill-list > li b { flex: 0 0 50%; }
  #certificates .pill-list > li .pill-org,
  #honours .pill-list > li .pill-org {
    width: var(--org-w);
    flex: none;
  }
}
#certificates .pill-list > li .pill-year,
#honours .pill-list > li .pill-year {
  flex: 1;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}
@media (max-width: 720px) {
  #certificates .pill-list > li,
  #honours .pill-list > li { flex-wrap: wrap; }
  #certificates .pill-list > li b,
  #honours .pill-list > li b { flex: 1 1 100%; }
}
.pill-list.purple > li:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--card-hover);
  box-shadow: 0 0 16px rgba(122, 92, 255, 0.18);
  transform: translateY(-2px);
}

/* publications, conferences & recreation use .pill-list */

/* certificates & honours use .pill-list (tables removed) */

/* ============ footer ============ */

.rfoot {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  padding: 26px clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 14px;
  color: var(--faint);
  font-size: 13.5px;
}
.rfoot-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}
.rfoot-badge:hover {
  opacity: 1;
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 0 20px rgba(53, 196, 255, 0.3);
}
@media (max-width: 720px) {
  .rfoot { grid-template-columns: 1fr; justify-items: center; row-gap: 14px; }
}

/* ============ print: clean paper-resume look ============
   The on-screen page is a stylized portfolio piece; when printed or
   saved as PDF it should read like a plain document resume — white
   page, black Times text, no cards, pills, orbs or web chrome.
   This block is the SINGLE source of truth for both the browser
   Print / Save PDF and the downloadable Christopher_Clarke_Resume.pdf
   (regenerate the downloadable copy with make-resume-pdf.cmd). */

@media print {
  @page {
    size: letter;
    margin: 16mm 15mm;
    /* page numbers centred at the bottom of pages 2+ (page 1 stays clean) */
    @bottom-center {
      content: counter(page);
      font-family: "Times New Roman", Times, serif;
      font-size: 9pt;
    }
  }
  @page :first {
    @bottom-center { content: none; }
  }

  /* hide every bit of web chrome */
  #rnav,
  .skip-link,
  .print-btn,
  .download-btn,
  canvas,
  .rfoot,
  .rhead-kicker,
  section > hr,
  a[href="#top"]:not(.brand) { display: none !important; }
  section::before { display: none !important; }

  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body {
    background: #fff !important;
    color: #000;
    font-family: "Times New Roman", Times, serif;
    font-size: 10pt;
    /* tight rhythm — keeps the full employment section on page 1 even in
       slightly looser renderings (1.35 orphaned the last entry; the old
       downloadable PDF matched 1.25, but is now generated from this layout) */
    line-height: 1.2;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a { color: #000 !important; text-decoration: none !important; }
  address { font-style: normal; }

  /* ---- header: name centred, contact line under it ---- */
  .rhead {
    max-width: none;
    padding: 0 0 10pt;
    display: block;
    border-bottom: 1pt solid #000;
  }
  .rhead h1 {
    font-family: inherit;
    font-size: 20pt;
    font-weight: bold;
    letter-spacing: 0;
    text-align: center;
  }
  .rhead-contact {
    margin-top: 6pt;
    font-family: inherit;
    font-size: 9.5pt;
    color: #000;
    text-align: center;
    display: block;
  }
  .rhead-contact span { display: inline; }
  .rhead-contact span + span:not(.rhead-contact-line)::before {
    content: " |";
    margin: 0 6pt;
    color: #000;
  }
  /* two centred contact lines: address/phone/email, then linked-in / web.
     Icons stay plain inline with vertical-align: middle — the inline-flex
     boxes rendered with a baseline quirk in print (LinkedIn line sat ~1pt
     above the website line) */
  .rhead-contact .rhead-contact-line { display: block; }
  .rhead-contact .contact-link { display: inline; }
  .rhead-contact .cicon {
    width: 8.5pt;
    height: 8.5pt;
    margin-right: 4pt;
    vertical-align: middle;
    color: #000;
  }

  /* ---- section headings: bold caps with a rule under ---- */
  section {
    max-width: none;
    padding: 8pt 0 0;
  }
  section h2 {
    font-family: inherit;
    font-size: 11pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.4pt;
    margin: 0 0 6pt;
    padding-bottom: 2.5pt;
    border-bottom: 0.75pt solid #000;
    break-after: avoid;
  }
  section h3 {
    font-family: inherit;
    font-size: 10.5pt;
    font-weight: bold;
    margin: 8pt 0 4pt;
    break-after: avoid;
  }
  /* skill subsections stand out in print: small caps — screen theme stays untouched */
  #expertise > h3 {
    font-size: 12pt;
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: 0.3pt;
    margin: 12pt 0 6pt;
    break-after: avoid;
  }

  /* ---- entries: title left / date right, org line under ---- */
  #education > ul {
    display: block;
    grid-template-columns: none;
  }
  #education > ul > li,
  #employment > ul > li {
    position: relative;
    display: flow-root; /* contain the floated institution line for clean page breaks */
    border: 0;
    background: none;
    /* the on-screen card styles must not survive printing: overflow:hidden +
       border-radius would clip the first letter of each entry */
    overflow: visible;
    border-radius: 0;
    padding: 0 0 6pt;
    break-inside: avoid;
  }
  #employment > ul { display: block; }
  #employment > ul > li::after { display: none !important; }

  #education > ul > li h3,
  #employment > ul > li h3 {
    font-family: inherit;
    font-size: 10.5pt;
    font-weight: bold;
    margin: 0;
    float: left;
    max-width: 72%;
  }
  /* the date item (last in the inner list) jumps to the top-right */
  #education li > ul > li > ul > li:last-child,
  #employment li > ul > li > ul > li:last-child {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    font-family: inherit;
    font-size: 10pt;
    color: #000;
  }

  /* education: degree on line 1 (date top-right), institution line 2, details line 3 */
  #education li > ul > li > p {
    float: left;
    clear: left;
    margin: 1.5pt 0 0;
    font-size: 9pt;
  }
  /* sub-lines are not bold and run 1pt smaller than the title line */
  #education li > ul > li > p b { font-weight: normal; }
  #education li > ul > li > ul { display: block; clear: left; margin: 0; }
  #education li > ul > li > ul > li { display: inline; color: #000; font-size: 9pt; }
  /* separator between detail items — skip the date (last child, floated right) */
  #education li > ul > li > ul > li + li:not(:last-child)::before {
    content: " · ";
    margin: 0;
    color: #000;
  }

  /* employment: title on line 1 (date top-right), "institution — location" line 2.
     The middle li is a full-width float cleared below the title; inside it the
     institution p is floated shrink-to-fit so the inline location continues on
     the same line. */
  #employment > ul > li > ul > li {
    float: left;
    width: 100%;
    clear: left;
  }
  #employment li > ul > li > p {
    float: left;
    margin: 1.5pt 8pt 0 0;
    font-size: 9pt;
  }
  /* sub-lines are not bold and run 1pt smaller than the title line */
  #employment li > ul > li > p a,
  #employment li > ul > li > p b.eb-org { font-weight: normal; color: #000; }
  #employment li > ul > li > ul { display: inline; margin: 0; }
  #employment li > ul > li > ul > li { display: inline; color: #000; font-size: 9pt; }
  #employment li > ul > li > ul > li:first-child::before {
    content: "— ";
    margin: 0;
  }
  /* locations separated by "·" (entries can have several);
     the date — the last item — gets no separator, it floats top-right */
  #employment li > ul > li > ul > li + li:not(:last-child)::before {
    content: " · ";
    margin: 0;
  }
  #employment li > ul > li > ul > li:last-child::before { content: none; }
  /* multi-period entry (Brick Barn): the per-location dates are a screen
     detail — print shows one combined date in the top-right slot */
  .eb-dsep, .eb-date { display: none; }

  /* ---- pill lists become plain black text ---- */
  .pill-list { display: block; }
  .pill-list > li {
    display: block;
    border: 0;
    background: none;
    padding: 0 0 2.5pt;
    color: #000;
    font-size: 10pt;
    font-family: inherit;
    text-align: left;
    break-inside: avoid; /* no item may split across a page break */
  }
  .pill-list > li b { color: #000; font-weight: bold; }
  .pill-list > li em { color: #000; }
  .pill-list > li a { color: #000; }

  /* breathing room between items in the body sections — matches the entry
     spacing in education/employment. #highlights gets a slightly smaller
     step: page 1 is packed (the last employment entry sits close to the
     bottom margin) and more than ~4.5pt here risks pushing it to page 2. */
  #highlights .pill-list > li { padding: 0 0 4.5pt; }
  #expertise .pill-list > li,
  #publications .pill-list > li,
  #conferences .pill-list > li,
  #recreation .pill-list > li,
  #certificates .pill-list > li,
  #honours .pill-list > li { padding: 0 0 6pt; }

  /* conferences start on their own page (page 3) */
  #conferences { break-before: page; }

  /* publications: plain left-aligned lines like every other section
     (no indent; the list markers are never rendered because
     .pill-list > li uses display:block, which suppresses the marker box) */

  /* certificates & honours: name / issuer / year on one line */
  #certificates .pill-list > li,
  #honours .pill-list > li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
  }
  #certificates .pill-list > li b,
  #honours .pill-list > li b { flex: 1 1 40%; color: #000; }
  #certificates .pill-list > li .pill-org,
  #honours .pill-list > li .pill-org {
    flex: 1 1 40%;
    text-align: left;
    font-family: inherit;
    font-size: 10pt;
    color: #000;
    white-space: normal;
  }
  #certificates .pill-list > li .pill-year,
  #honours .pill-list > li .pill-year {
    flex: 0 0 auto;
    text-align: right;
    font-family: inherit;
    font-size: 10pt;
    color: #000;
    margin-left: 10pt;
  }
}
