.document-hero { padding: 44px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #f8f9fc 0%, #fff 70%); }
.document-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 34px; }
.back-link { font-size: 14px; color: var(--muted); }
.back-link:hover { color: var(--accent); }
.document-eyebrow { color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.document-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.document-hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.document-hero h1 span { color: var(--faint); font-size: .5em; font-weight: 300; display: inline-block; margin-left: 16px; letter-spacing: -.015em; }
.document-title { max-width: 900px; }
.document-avatar { width: 88px; height: 96px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.document-lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); margin-top: 16px; }
.document-intro { max-width: 850px; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.document-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 26px; font-size: 14px; }
.document-actions a { color: var(--accent); }
.document-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.print-button { cursor: pointer; font: inherit; color: var(--muted); padding: 7px 14px; background: white; border: 1px solid var(--line); border-radius: 999px; }
.print-button:hover { border-color: var(--faint); color: var(--ink); }
.document-content { padding: 64px 0 88px; }
.detail-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 60px; align-items: start; }
.contents-nav { position: sticky; top: 96px; padding-top: 5px; }
.contents-label { color: var(--faint); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 16px; }
.contents-nav nav { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); }
.contents-nav a { padding-left: 16px; font-size: 14px; color: var(--muted); }
.contents-nav a:hover { color: var(--accent); }
.document-body { min-width: 0; }
.detail-section + .detail-section { margin-top: 72px; }
.detail-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.detail-section-head h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.3; }
.section-index { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.career { border-top: 1px solid var(--line); padding-top: 26px; }
.career + .career { margin-top: 44px; }
.career-header { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.career-logo { display: grid; place-items: center; height: 58px; }
.career-logo img { max-width: 52px; max-height: 50px; width: auto; height: auto; object-fit: contain; }
.career-header h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.career-header .tl-when { padding-top: 5px; }
.career-intro { color: var(--faint); font-size: 14px; margin-top: 20px; }
.career-project { margin-top: 28px; }
.career-project + .career-project { padding-top: 25px; border-top: 1px solid #eef1f5; }
.career-project h4 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.detail-bullets { margin: 14px 0 0; padding-left: 18px; list-style: disc; }
.detail-bullets li { font-size: 14.5px; color: var(--muted); line-height: 1.9; padding-left: 3px; }
.detail-bullets li + li { margin-top: 11px; }
.detail-bullets li::marker { color: #acb7c7; font-size: 11px; }
.detail-page .tl-row { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 20px; }
.detail-page .tl-logo img { max-width: 52px; max-height: 50px; }
.resume-open-source { border-top: 1px solid var(--line); padding: 24px 0; }
.resume-open-source h3 { font-size: 22px; font-weight: 500; }
.detail-link { display: inline-block; margin-top: 18px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.skill-grid article { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--soft); }
.skill-grid h3 { font-size: 17px; font-weight: 500; }
.skill-grid p { font-size: 14px; color: var(--muted); margin-top: 9px; line-height: 1.85; }
.detail-note { color: var(--faint); font-size: 13px; margin-top: 24px; }
.repository-intro { border-top: 1px solid var(--line); padding-top: 22px; }
.repository-intro p { color: var(--muted); font-size: 15px; line-height: 1.85; margin: 12px 0 14px; }
.details-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.source-heading { font-size: 20px; font-weight: 500; margin: 40px 0 18px; letter-spacing: -.02em; }
.source-rows { border-top: 1px solid var(--line); }
.source-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.source-reference { display: flex; flex-wrap: wrap; flex-direction: column; gap: 7px; align-items: flex-start; }
.source-reference span { color: var(--faint); font-size: 10px; letter-spacing: .08em; }
.source-reference a { color: var(--accent); font-size: 19px; }
.source-reference a:hover { text-decoration: underline; text-underline-offset: 4px; }
.source-row h4 { font-size: 17px; font-weight: 500; line-height: 1.5; }
.source-row p { color: var(--muted); font-size: 14px; margin-top: 7px; line-height: 1.85; }
.detail-page .nav-links a[aria-current='page']::after { transform: scaleX(1); }
@media (max-width: 1000px) { .detail-layout { grid-template-columns: 130px minmax(0, 1fr); gap: 36px; } .career-header .tl-when { grid-column: 2; padding-top: 0; } .career-header { grid-template-columns: 60px minmax(0, 1fr); gap: 6px 16px; } }
@media (max-width: 860px) {
  .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .contents-nav { position: static; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .contents-nav nav { flex-direction: row; flex-wrap: wrap; border: 0; gap: 10px 22px; }
  .contents-nav a { padding-left: 0; }
  .contents-label { padding-bottom: 12px; }
  .detail-page .tl-row { grid-template-columns: 60px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .document-hero { padding: 28px 0 38px; }
  .document-topline { margin-bottom: 28px; }
  .document-heading { gap: 18px; }
  .document-hero h1 { font-size: 36px; }
  .document-hero h1 span { display: block; margin: 10px 0 0; font-size: 22px; }
  .document-avatar { width: 68px; height: 76px; border-radius: 12px; }
  .document-lead { font-size: 16px; }
  .document-intro { font-size: 14.5px; margin-top: 18px; }
  .document-actions { gap: 12px 20px; font-size: 13px; }
  .document-content { padding-top: 32px; }
  .career-header h3 { font-size: 20px; }
  .career-header .tl-role { font-size: 13px; }
  .career-project h4 { font-size: 17px; }
  .detail-bullets li { font-size: 14px; }
  .skill-grid { grid-template-columns: 1fr; }
  .source-row { grid-template-columns: 1fr; gap: 12px; }
  .source-reference { flex-direction: row; gap: 8px 14px; align-items: baseline; }
  .source-reference span { margin-right: auto; }
  .source-reference a { font-size: 17px; }
  .details-featured .featured-caption { font-size: 13px; }
  .detail-section + .detail-section { margin-top: 56px; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  .detail-page { color: #121317; font-size: 11px; }
  .detail-page .nav, .contents-nav, .document-topline, .document-avatar, .print-button, .footer { display: none !important; }
  .detail-page .container { width: 100%; }
  .document-hero { background: white; padding: 0 0 18px; }
  .document-hero h1 { font-size: 28px; }
  .document-hero h1 span { font-size: 18px; }
  .document-lead { font-size: 13px; margin-top: 8px; }
  .document-intro { font-size: 11px; line-height: 1.6; margin-top: 10px; }
  .document-content { padding: 20px 0 0; break-inside: auto; }
  .document-actions { display: flex; font-size: 10px; margin-top: 10px; gap: 10px 20px; }
  .document-actions a[href^="https://github.com/"]::after { content: " (" attr(href) ")"; }
  .detail-layout { display: block; }
  .detail-section + .detail-section { margin-top: 24px; }
  .detail-section-head { margin-bottom: 12px; break-after: avoid; }
  .detail-section-head h2 { font-size: 21px; }
  .career { padding-top: 14px; }
  .career + .career { margin-top: 24px; }
  .career-header { grid-template-columns: 40px minmax(0, 1fr) auto; break-after: avoid; }
  .career-header h3 { font-size: 17px; }
  .career-header .tl-when { grid-column: auto; }
  .career-logo { height: 36px; }
  .career-logo img { max-width: 34px; max-height: 34px; }
  .career-project { margin-top: 16px; }
  .career-project + .career-project { padding-top: 14px; }
  .career-project h4 { font-size: 13px; break-after: avoid; }
  .detail-bullets { margin-top: 8px; }
  .detail-bullets li, .career-intro { font-size: 11px; line-height: 1.65; }
  .detail-bullets li { break-inside: avoid; }
  .detail-bullets li + li { margin-top: 6px; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .skill-grid article { padding: 12px; background: white; break-inside: avoid; }
  .skill-grid h3 { font-size: 12px; }
  .skill-grid p, .detail-note, .project-body, .tl-role, .tl-detail, .tl-when { font-size: 11px; }
  .resume-open-source, .source-row { break-inside: avoid; }
  .detail-page h2[id], .detail-page h3[id] { scroll-margin-top: 0; }
}

.verified-summary { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.verified-count { color: var(--muted); font-size: 15px; }
.verified-count strong { color: var(--ink); font-size: 26px; margin-right: 5px; font-weight: 500; }
.verified-summary .detail-note { margin: 5px 0 10px; }
.contribution-status { display: inline-block; margin-bottom: 8px; font-size: 11px; line-height: 1.6; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.status-merged { color: #6841a5; background: #f5f1fb; border-color: #e9def8; }
.status-open { color: #286e4a; background: #eef7f1; border-color: #d7ecdf; }
.status-unmerged { color: #6d737e; background: #f4f5f7; }
