/* CV page: a dense sheet to scan and print. Loaded after home.css, which carries the shared tokens,
   navigation, section heads, links and reveal classes. A rail holds identity and a section index;
   only the index and print button stay pinned, so the rail never outgrows a short screen. */
#robin-workshop .cv { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 64px; padding-block: 50px 64px; }

/* ---- Rail ---- */
#robin-workshop .cv-photo { width: 100%; aspect-ratio: 1.12; object-fit: cover; object-position: 50% 30%; border-radius: 3px; filter: grayscale(1); transition: filter .55s; }
#robin-workshop .cv-rail:hover .cv-photo { filter: grayscale(.2); }
#robin-workshop .cv-name { margin-top: 18px; font-size: 28px; font-weight: 600; letter-spacing: -.05em; line-height: 1.1; }
#robin-workshop .cv-role-line { margin-top: 6px; font-size: 15px; letter-spacing: -.03em; color: var(--rv-teal); }
#robin-workshop .cv-facts { display: grid; margin: 18px 0 0; border-bottom: 1px solid var(--rv-line); }
#robin-workshop .cv-facts > div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rv-line); font-size: 13px; }
#robin-workshop .cv-facts dt { color: var(--rv-gold); font: 500 10px/2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
#robin-workshop .cv-facts dd { margin: 0; }
#robin-workshop .cv-facts a, #robin-workshop .cv-link { border-bottom: 1px solid var(--rv-line); transition: color .25s, border-color .25s; }
#robin-workshop .cv-facts a:hover, #robin-workshop .cv-link:hover { color: var(--rv-teal); border-color: var(--rv-teal); }
#robin-workshop .cv-facts a + a { margin-left: 14px; }
#robin-workshop .cv-rail-nav { position: sticky; top: 92px; padding-top: 22px; }
#robin-workshop .cv-index { position: relative; margin: 0; padding: 0; border-left: 1px solid var(--rv-line); list-style: none; }
#robin-workshop .cv-index a { display: flex; gap: 10px; padding: 6px 0 6px 14px; font-size: 13px; color: var(--rv-muted); transition: color .25s; }
#robin-workshop .cv-index a .rv-mono { color: inherit; line-height: 2; }
#robin-workshop .cv-index a:hover, #robin-workshop .cv-index a[aria-current] { color: var(--rv-ink); }
/* cv.js sets --y to the current entry's offset; the marker glides there. */
#robin-workshop .cv-marker { position: absolute; top: 0; left: -1px; width: 2px; height: 32px; background: var(--rv-teal); transform: translateY(var(--y, 0px)); transition: transform .45s var(--rv-ease); }
#robin-workshop .cv-print { margin-top: 22px; border: 0; cursor: pointer; }

/* ---- Sheet ---- */
#robin-workshop .cv-main > section { padding-block: 34px; border-top: 1px solid var(--rv-line); scroll-margin-top: 8px; }
#robin-workshop .cv-main > section:first-child { padding-top: 0; border-top: 0; }
#robin-workshop .cv-main .rv-section-head { margin-bottom: 16px; }
#robin-workshop .cv-main .rv-section-index { margin-bottom: 6px; }
#robin-workshop .cv-main h2 { font-size: 27px; }
#robin-workshop .cv-profile p { max-width: 68ch; font-size: 15px; line-height: 1.8; color: var(--rv-muted); }
#robin-workshop .cv-profile p + p { margin-top: 12px; }
#robin-workshop .cv-row, #robin-workshop .cv-role summary { display: grid; grid-template-columns: 132px 1fr; gap: 22px; padding: 15px 0; border-top: 1px solid var(--rv-line); font-size: 14px; }
#robin-workshop .cv-row > .rv-mono, #robin-workshop .cv-role summary > .rv-mono { padding-top: 3px; color: var(--rv-muted); }
#robin-workshop .cv-row strong, #robin-workshop .cv-role strong { font-weight: 500; }
#robin-workshop .cv-row small, #robin-workshop .cv-role small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--rv-muted); }
#robin-workshop .cv-row p { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--rv-muted); }
#robin-workshop .cv-role summary { grid-template-columns: 132px 1fr 22px; list-style: none; cursor: pointer; transition: background-color .25s; }
#robin-workshop .cv-role summary::-webkit-details-marker { display: none; }
#robin-workshop .cv-role summary:hover { background: color-mix(in srgb, var(--rv-soft) 65%, transparent); }
#robin-workshop .cv-role summary i { color: var(--rv-teal); font: 400 20px/1.1 Inter, system-ui, sans-serif; text-align: right; transition: rotate .35s var(--rv-ease); }
#robin-workshop .cv-role[open] summary i { rotate: 45deg; }
#robin-workshop .cv-role[open] summary strong { color: var(--rv-teal); }
#robin-workshop .cv-role::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--rv-ease), content-visibility .45s allow-discrete; }
#robin-workshop .cv-role[open]::details-content { block-size: auto; }
#robin-workshop .cv-role-body { padding: 0 44px 18px 154px; }
#robin-workshop .cv-role-body > p { font-size: 13.5px; line-height: 1.7; color: var(--rv-muted); }
#robin-workshop .cv-points { margin: 10px 0 0; padding: 0; list-style: none; }
#robin-workshop .cv-points li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--rv-line); font-size: 13.5px; line-height: 1.6; }
#robin-workshop .cv-points li::before { content: '+'; position: absolute; left: 0; color: var(--rv-gold); font: 400 14px/1.5 ui-monospace, monospace; }
#robin-workshop .cv-project { grid-template-columns: 132px 120px 1fr auto; align-items: start; }
#robin-workshop .cv-thumb { overflow: hidden; aspect-ratio: 1.6; border: 1px solid var(--rv-line); border-radius: 4px; background: var(--rv-soft); }
#robin-workshop .cv-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
#robin-workshop .cv-thumb-portrait img { object-fit: contain; object-position: 50% 50%; }
#robin-workshop .cv-project .cv-link { font-size: 12.5px; white-space: nowrap; }
#robin-workshop .cv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@container rv (max-width: 1100px) {
  #robin-workshop .cv { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
}
@container rv (max-width: 760px) {
  #robin-workshop .cv { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  #robin-workshop .cv-photo { width: 120px; aspect-ratio: 1; }
  #robin-workshop .cv-rail-nav { position: static; padding-top: 4px; }
  #robin-workshop .cv-index { display: none; }
  #robin-workshop .cv-row, #robin-workshop .cv-role summary { grid-template-columns: 1fr; gap: 4px; }
  #robin-workshop .cv-role summary { grid-template-columns: 1fr 22px; }
  #robin-workshop .cv-role summary > .rv-mono { grid-column: 1 / -1; }
  #robin-workshop .cv-role-body { padding: 0 0 16px; }
  #robin-workshop .cv-project { grid-template-columns: 96px 1fr; }
  #robin-workshop .cv-project > .rv-mono, #robin-workshop .cv-project > .cv-link { grid-column: 1 / -1; justify-self: start; }
}
@media (pointer: coarse) {
  #robin-workshop .cv-facts a, #robin-workshop .cv-project .cv-link { display: inline-flex; align-items: center; min-height: 32px; }
  #robin-workshop .cv-index a { min-height: 40px; align-items: center; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Identity and index rise in one after another on load. */
  #robin-workshop.rv-motion-ready .cv-identity > *, #robin-workshop.rv-motion-ready .cv-rail-nav > * { animation: rv-rise-in .7s var(--rv-ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
}
@media (prefers-reduced-motion: reduce) {
  #robin-workshop .cv-photo, #robin-workshop .cv-marker, #robin-workshop .cv-role summary i { transition: none; }
  #robin-workshop .cv-role::details-content { transition: none; }
}

/* ---- Print: a compact sheet on white paper; cv.js opens every role first. The printable width of A4
   is narrow, so these rules also undo the small-screen layout the container queries would apply:
   identity becomes a header, dates sit beside titles, and project thumbnails are left out. ---- */
@media print {
  @page { margin: 14mm; }
  .skip-link, #robin-workshop .rv-nav, #robin-workshop .rv-scroll-progress, #robin-workshop .rv-footer,
  #robin-workshop .cv-rail-nav, #robin-workshop .cv-role summary i, #robin-workshop .cv-thumb { display: none !important; }
  html, body { background: #fff !important; }
  #robin-workshop { color-scheme: light !important; background: #fff; }
  #robin-workshop .rv-wrap { padding-inline: 0; }
  #robin-workshop .cv, #robin-workshop .cv * { opacity: 1 !important; translate: none !important; animation: none !important; transition: none !important; clip-path: none !important; }
  #robin-workshop .cv { display: block; padding: 0; }
  #robin-workshop .cv-identity { display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; margin-bottom: 18px; }
  #robin-workshop .cv-photo { grid-row: 1 / 3; width: 76px; aspect-ratio: 1; filter: none; }
  #robin-workshop .cv-name { align-self: end; margin-top: 0; font-size: 24px; }
  #robin-workshop .cv-role-line { align-self: start; margin-top: 2px; }
  #robin-workshop .cv-facts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 14px; }
  #robin-workshop .cv-facts > div { padding: 5px 0; font-size: 12px; }
  #robin-workshop .cv-main > section, #robin-workshop .cv-main > section:first-child { padding-block: 14px 6px; border-top: 1px solid var(--rv-line); }
  #robin-workshop .cv-main .rv-section-head { margin-bottom: 8px; break-after: avoid; }
  #robin-workshop .cv-main h2 { font-size: 19px; }
  #robin-workshop .cv-profile p { max-width: none; font-size: 13px; line-height: 1.6; }
  #robin-workshop .cv-row, #robin-workshop .cv-role summary { grid-template-columns: 104px 1fr; gap: 16px; padding: 8px 0; font-size: 13px; break-inside: avoid; }
  #robin-workshop .cv-role summary > .rv-mono, #robin-workshop .cv-project > .rv-mono, #robin-workshop .cv-project > .cv-link { grid-column: auto; }
  #robin-workshop .cv-row p { margin-top: 3px; font-size: 12px; line-height: 1.55; }
  #robin-workshop .cv-role { break-inside: avoid; }
  #robin-workshop .cv-role::details-content { block-size: auto; }
  #robin-workshop .cv-role-body { padding: 0 0 8px 120px; }
  #robin-workshop .cv-role-body > p { font-size: 12px; line-height: 1.55; }
  #robin-workshop .cv-points { margin-top: 4px; }
  #robin-workshop .cv-points li { padding: 4px 0 4px 18px; border-top: 0; font-size: 12px; line-height: 1.5; }
  #robin-workshop .cv-project { grid-template-columns: 104px 1fr auto; }
  #robin-workshop .cv a { border: 0; }
}
