.cv-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.cv-download-button {
  gap: 10px;
  min-width: 132px;
  justify-content: center;
}

.cv-download-actions .cv-download-button {
  background: var(--ink);
  color: var(--paper-light);
  border: 1px solid var(--ink);
}

.cv-download-actions .cv-download-button:hover,
.cv-download-actions .cv-download-button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.cv-close .cv-download-actions .cv-download-button {
  background: var(--white-soft);
  color: var(--night);
  border-color: var(--white-soft);
}

.cv-close .cv-download-actions .cv-download-button:hover,
.cv-close .cv-download-actions .cv-download-button:focus-visible {
  background: transparent;
  color: var(--white-soft);
}

.cv-source-note {
  margin: 18px 0 0;
  color: var(--mineral);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv-source-shell {
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(84px, 10vw, 144px);
}

.cv-source-document {
  max-width: 1080px;
  margin: 0 auto;
}

.cv-source-document > * {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.cv-source-document .cv-source-header {
  display: none;
}

.cv-section-toggle {
  max-width: none;
  margin-top: clamp(76px, 9vw, 124px);
  border-top: 1px solid var(--line);
}

.cv-section-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 26px 0 34px;
  cursor: pointer;
  list-style: none;
}

.cv-section-summary::-webkit-details-marker {
  display: none;
}

.cv-section-summary-title {
  max-width: 940px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.cv-section-summary-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
  color: var(--mineral);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cv-section-chevron {
  width: 11px;
  height: 11px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.cv-section-toggle[open] .cv-section-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.cv-section-hide,
.cv-section-toggle[open] .cv-section-show {
  display: none;
}

.cv-section-toggle[open] .cv-section-hide {
  display: inline;
}

.cv-section-toggle-body {
  padding-bottom: 18px;
}

.cv-source-document h3 {
  margin-top: 48px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.08;
}

.cv-source-document h4 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cv-source-document p {
  margin-top: 0;
  margin-bottom: 17px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.cv-source-document p strong {
  color: var(--ink);
}

.cv-source-document p em {
  color: var(--mineral);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cv-source-document a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cv-source-list {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  margin-bottom: 38px;
  border-top: 1px solid var(--line);
}

.cv-source-list li {
  position: relative;
  padding: 18px 0 18px 31px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.58;
}

.cv-source-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 27px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--mineral);
  transform: rotate(45deg);
}

[data-cv-download][aria-busy='true'] {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 720px) {
  .cv-download-actions {
    align-items: stretch;
  }

  .cv-download-actions .button {
    flex: 1 1 132px;
    justify-content: center;
  }

  .cv-section-toggle {
    margin-top: 68px;
  }

  .cv-section-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cv-section-summary-control {
    padding-top: 0;
  }

  .cv-source-document h3 {
    margin-top: 38px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cv-hero,
  .cv-proof-strip,
  .cv-close,
  .cv-section-summary-control {
    display: none !important;
  }

  .cv-source-shell {
    padding: 0;
  }

  .cv-source-document {
    max-width: none;
  }

  .cv-source-document .cv-source-header {
    display: block;
  }

  .cv-section-toggle,
  .cv-section-toggle:not([open]) {
    display: block;
  }

  .cv-section-toggle-body {
    display: block !important;
  }
}
