/* ==========================================================================
   S · CV (/cv), text only, on About's thirds: Download PDF in the first,
   sticky; the CV in the other two. Labels grey, words black.
   ========================================================================== */

/* Download PDF in the first third, sticky where About has its photos. Text only. */
.cv-sheet p { max-width: 300px; text-wrap: pretty; }
.cv-download { margin-top: 20px; }
.cv-note { margin-top: 10px; font-size: var(--t-sm); }
.page-s .cv-sheet .ab-cta { background: rgb(0 0 0 / 0.8); color: #fff; }
.page-s .cv-sheet a.pill:active { scale: 0.97; }

@media (hover: hover) {
  .page-s .cv-sheet .ab-cta:hover { background: rgb(0 0 0 / 0.92); }
}

/* No line ends with a word or two left over. Chrome's `pretty` only saves a last word on its own,
   so the short lines under a role or a project are balanced into even lines. Words like AI-native and
   spans of dates never break (`text-wrap` resets the nowrap, so it comes after, more specific). */
.cv-main p, .cv-main span { text-wrap: pretty; }
.cv-main .cv-row > span:nth-child(2), .cv-main .cv-job p:last-child { text-wrap: balance; }
.cv-main .cv-nw { white-space: nowrap; }

/* About spaces its sections 112px apart; the CV has more of them, so they sit closer. */
.ab-main.cv-main > * { margin-top: 56px; }
.ab-main.cv-main > :first-child { margin-top: 72px; }
.cv-main p { max-width: 720px; }

.cv-rows > * + * { margin-top: 16px; }

/* Name, what it was, year. */
.cv-row { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr auto; column-gap: var(--gap); }

/* Role and place, the dates on the right, the line under them. */
.cv-job { display: grid; grid-template-columns: 1fr auto; column-gap: var(--gap); }
.cv-job p:last-child { grid-column: 1 / -1; }

.cv-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.cv-split--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .ab-main.cv-main > * { margin-top: 44px; }
  .ab-main.cv-main > :first-child { margin-top: 48px; }
  .cv-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cv-row > span:nth-child(2) { grid-row: 2; grid-column: 1 / -1; color: var(--muted); }
  .cv-job { grid-template-columns: minmax(0, 1fr); }
  .cv-split, .cv-split--3 { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
}

/* The intro under "Pablo González, CV" breaks into even lines too. */
.cv .ab-intro p { text-wrap: balance; }
