.documents-intro { padding-bottom: 1.5rem; }
.documents-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; padding-top: 1rem; }
.documents-layout h2 { font-size: clamp(1.75rem, 2.2vw, 2.4rem); line-height: 1.2; margin: .5rem 0 1rem; }
.documents-layout p { max-width: 62ch; }
.documents-private { padding: clamp(1.25rem, 2vw, 2rem); background: var(--paper, #f5f5f1); border: 1px solid var(--line, #dedfd9); border-radius: 5px; min-width: 0; }
.documents-public { min-width: 0; }
.documents-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.documents-heading form { flex-shrink: 0; }
.documents-unlock { display: grid; gap: 1rem; margin: 1.5rem 0; max-width: 34rem; }
.documents-unlock .button { justify-self: start; }
.documents-unlock .error-summary { margin: 0; }
.documents-access-note, .documents-empty { color: var(--muted, #62665f); }
.document-list { padding: 0; margin: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--line, #dedfd9); }
.document-list li { border-bottom: 1px solid var(--line, #dedfd9); }
.document-download { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; text-decoration: none; }
.document-download > span:first-child { min-width: 0; }
.document-download strong { display: block; font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }
.document-download small { display: block; font-size: .9375rem; color: var(--muted, #62665f); margin-top: .3rem; line-height: 1.5; overflow-wrap: anywhere; }
.document-download > span:last-child { font-size: 1.5rem; color: var(--purple, #3d46c6); }
.document-download:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.document-cv-link .document-cv-label { min-width: 0; flex: 1; }
.document-person-photo { width: 80px; height: 100px; flex: 0 0 80px; object-fit: contain; object-position: center; background: #eceee9; border-radius: 3px; }
.document-person-initials { display: flex; align-items: center; justify-content: center; background: #e8eafb; color: var(--blue); font-family: var(--serif); font-size: 1.4rem; }
.document-browser { margin-top: 1.5rem; scroll-margin-top: 7rem; min-width: 0; }
.document-browser-navigation { border-top: 1px solid var(--line, #dedfd9); border-bottom: 1px solid var(--line, #dedfd9); padding: 1rem 0; margin-bottom: 1.25rem; }
.document-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 0; list-style: none; margin: 0; padding: 0; }
.document-breadcrumbs li { display: flex; align-items: baseline; min-width: 0; font-size: .9375rem; line-height: 1.5; }
.document-breadcrumbs li + li::before { content: "/"; margin-inline: .6rem; color: var(--muted, #62665f); flex: 0 0 auto; }
.document-breadcrumbs a, .document-breadcrumbs [aria-current] { overflow-wrap: anywhere; }
.document-breadcrumbs a { color: var(--purple, #3d46c6); text-underline-offset: .2em; }
.document-breadcrumbs [aria-current] { font-weight: 600; }
.document-parent-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted, #62665f); font-size: .875rem; line-height: 1.5; margin-top: .6rem; padding-block: .25rem; text-decoration: none; }
.document-parent-link:hover { color: var(--purple, #3d46c6); text-decoration: underline; text-underline-offset: .2em; }
.document-browser-label { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #62665f); margin: 1.5rem 0 .65rem; }
.document-folder-list { display: grid; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.document-folder-entry { display: flex; align-items: center; gap: .85rem; border: 1px solid var(--line, #dedfd9); border-radius: 3px; background: var(--white, #fff); padding: .85rem 1rem; color: inherit; text-decoration: none; transition: border-color .15s ease; }
.document-folder-entry:hover { border-color: var(--purple, #3d46c6); }
.document-entry-icon { flex: 0 0 24px; color: var(--purple, #3d46c6); }
.document-entry-label { flex: 1; min-width: 0; }
.document-folder-entry strong { display: block; font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.document-folder-entry small { display: block; margin-top: .2rem; color: var(--muted, #62665f); font-size: .8125rem; }
.document-entry-arrow { flex: 0 0 auto; font-size: 1.25rem; color: var(--purple, #3d46c6); }
.document-browser-files { margin-top: 0; }
.document-file-entry { gap: .85rem; }
.document-file-entry strong { font-size: 1rem; }
.document-file-entry small { font-size: .875rem; }
.document-browser-empty { margin: 1.25rem 0 0; padding-block: .5rem; line-height: 1.6; }
.document-browser-empty p { margin: 0; }
.document-browser-empty .documents-empty { margin-top: .3rem; }
.document-empty-title { font-weight: 500; }
@media (max-width: 850px) { .documents-layout { grid-template-columns: 1fr; } .documents-private { padding: 1.5rem; } }
@media (max-width: 480px) {
  .documents-private { padding: 1.1rem; }
  .document-folder-entry { padding: .85rem .75rem; gap: .65rem; }
  .document-file-entry { gap: .65rem; }
  .document-breadcrumbs li { font-size: .875rem; }
  .document-breadcrumbs li + li::before { margin-inline: .4rem; }
  .document-parent-link { min-height: 2.75rem; margin-top: .25rem; }
}

.cv-preview { padding-block: clamp(2rem, 4vw, 4rem); }
.cv-preview-header { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.cv-preview-header > div { min-width: 0; }
.cv-preview-header h1 { font-size: clamp(1.65rem, 2.7vw, 2.75rem); line-height: 1.2; overflow-wrap: anywhere; margin-top: .4rem; }
.cv-preview-header .text-link { flex-shrink: 0; }
.cv-document { padding: clamp(1.25rem, 3vw, 3rem); background: var(--white, #fff); border: 1px solid var(--line, #dedfd9); font-size: clamp(1rem, .94rem + .2vw, 1.125rem); line-height: 1.65; overflow-wrap: anywhere; }
.cv-document p { margin: 0 0 .75rem; }
.cv-document h2, .cv-document h3 { font-family: var(--sans); letter-spacing: -.02em; line-height: 1.3; margin: 1.5rem 0 .75rem; font-weight: 600; }
.cv-document h2 { font-size: clamp(1.4rem, 1.7vw, 1.8rem); }
.cv-document h3 { font-size: clamp(1.15rem, 1.4vw, 1.4rem); }
.cv-document > :first-child { margin-top: 0; }
.cv-list-item { position: relative; padding-left: 1.25rem; }
.cv-list-item::before { content: '\2022'; position: absolute; left: .2rem; color: var(--blue); }
.cv-plain-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cv-table-wrap { max-width: 100%; overflow-x: auto; margin-block: 1rem; }
.cv-table { border-collapse: collapse; table-layout: fixed; width: 100%; }
.cv-table td { border: 1px solid var(--line, #dedfd9); padding: .75rem; vertical-align: top; min-width: 0; }
.cv-table td p:last-child { margin-bottom: 0; }
.cv-table td h2:first-child, .cv-table td h3:first-child { margin-top: 0; }
.cv-preview-error { border: 1px solid var(--line, #dedfd9); padding: 1.5rem; }
@media (max-width: 600px) {
  .cv-preview-header { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .cv-table td { padding: .5rem; }
}
