/* CV download link, scoped to CV pages */
.cv-download {display:inline-flex;align-items:center;gap:.7rem;margin-top:1.25rem;padding:.7rem 1.1rem;border:1px solid currentColor;color:#111;text-decoration:none;font-size:14px;line-height:1.2;transition:background .18s,color .18s;}
.cv-download:hover,.cv-download:focus-visible {background:#111;color:#fff;}

/* A denser, readable CV on desktop; leave the mobile layout unchanged. */
@media (min-width: 901px) {
  .cv-page {padding-top: 1.5rem;}
  .cv-page .cv-top {margin-bottom: 1.2rem;}
  .cv-page .cv-top h1 {font-size: clamp(32px, 3.2vw, 48px); line-height: 1.12; margin-bottom: .35rem;}
  .cv-page .cv-role {margin-top: .35rem;}
  .cv-page .cv-portrait {width: clamp(175px, 16vw, 230px) !important;}
  .cv-page .cv-download {margin-top: .7rem; padding: .55rem .9rem;}
  .cv-page .cv-section {max-width: min(72rem, calc(100% - clamp(175px, 16vw, 230px) - 2rem)) !important; grid-template-columns: minmax(155px, 23%) minmax(0, 1fr); column-gap: 1.4rem; padding-block: 1.15rem !important;}
  .cv-page .cv-section + .cv-section {padding-top: 1.15rem !important;}
  .cv-page .cv-section > h2 {font-size: clamp(18px, 1.45vw, 23px) !important; line-height: 1.25;}
  .cv-page .cv-entry {margin-bottom: .68rem !important;}
  .cv-page .cv-entry:last-child {margin-bottom: 0 !important;}
  .cv-page .cv-entry h3 {font-size: clamp(15px, 1.05vw, 17px); font-weight: 500 !important; line-height: 1.35; margin-bottom: .15rem;}
  .cv-page .cv-entry p, .cv-page .cv-list li, .cv-page .cv-section > p {font-size: clamp(14px, 1vw, 16px); line-height: 1.45;}
  .cv-page .cv-entry p + p {margin-top: .1rem;}
  .cv-page .cv-list li {margin-bottom: .3rem;}
  .cv-page .cv-section:first-of-type .cv-entry p {display: inline; margin: 0;}
  .cv-page .cv-section:first-of-type .cv-entry p + p::before {content: ' · ';}
}

/* Portrait: preserve the full width and crop the lower edge only. */
.cv-page .cv-portrait {aspect-ratio: 4 / 5; overflow: hidden;}
.cv-page .cv-portrait img {display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center top;}
