.resume-body { margin: 0; background: #e7e7e3; color: #202321; font-family: "Story Body", "Malgun Gothic", sans-serif; }
.resume-toolbar { width: min(900px, calc(100vw - 32px)); min-height: 54px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 18px; color: #444944; font-size: 12px; }
.resume-toolbar a, .resume-toolbar button { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.resume-toolbar a:hover, .resume-toolbar a:focus-visible, .resume-toolbar button:hover, .resume-toolbar button:focus-visible { color: #4f6d0a; }
.resume-document { width: min(900px, calc(100vw - 32px)); margin: 0 auto 70px; padding: 58px 62px 52px; background: #fff; box-shadow: 0 10px 35px rgba(0, 0, 0, .08); }
.document-title { padding-bottom: 22px; text-align: center; border-bottom: 3px double #303431; }
.document-title h1 { margin: 0; font-family: "Story Display", "Malgun Gothic", sans-serif; font-size: 34px; letter-spacing: .16em; }
.document-title p { margin: 8px 0 0; color: #626862; font-size: 12px; }
.table-scroll { overflow-x: auto; }
.resume-table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; font-size: 11.5px; line-height: 1.65; }
.resume-table th, .resume-table td { padding: 10px 12px; border: 1px solid #aeb2ad; vertical-align: top; }
.resume-table th { background: #f1f2ee; color: #333834; font-weight: 800; text-align: center; }
.resume-table td { color: #343a35; }
.resume-table a { color: #4f6d0a; text-decoration: underline; text-underline-offset: 3px; }
.identity-table { margin-top: 24px; }
.identity-table th { width: 105px; vertical-align: middle; }
.identity-table td { vertical-align: middle; }
.name-cell { font-size: 16px; font-weight: 800; }
.document-section { margin-top: 28px; }
.document-section h2 { margin: 0 0 9px; padding: 0 0 7px; border-bottom: 1px solid #c8cbc6; font-family: "Story Display", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.2; }
.summary-box { padding: 13px 15px; border: 1px solid #aeb2ad; color: #363b37; font-size: 11.5px; line-height: 1.75; }
.skill-category-column { width: 145px; }
.period-column { width: 92px; }
.project-column { width: 150px; }
.role-column { width: 92px; }
.project-table thead th, .career-table thead th, .education-table thead th { vertical-align: middle; }
.project-table td:first-child, .project-table td:nth-child(3), .career-table td:first-child, .education-table td:first-child { text-align: center; vertical-align: middle; }
.project-table strong, .career-table strong, .education-table strong { display: block; color: #202421; font-size: 12px; }
.project-table span, .career-table span, .education-table span { display: block; margin-top: 3px; color: #6b716c; font-size: 10px; }
.project-table a { display: inline-block; margin-top: 6px; font-size: 10px; }
.resume-table ul { margin: 0; padding-left: 16px; }
.resume-table li + li { margin-top: 3px; }
.career-period-column { width: 130px; }
.career-name-column { width: 190px; }
.school-column { width: 220px; }
@media (max-width: 720px) {
  .resume-toolbar { width: calc(100% - 24px); gap: 12px; }
  .resume-toolbar a:first-child { margin-right: auto; }
  .resume-document { width: 100%; margin-bottom: 0; padding: 38px 18px 42px; box-shadow: none; }
  .document-title h1 { font-size: 28px; }
  .table-scroll { margin-right: -18px; padding-right: 18px; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  .resume-body { background: white; }
  .resume-toolbar, .skip-link { display: none !important; }
  .resume-document { width: 100%; margin: 0; padding: 0; box-shadow: none; }
  .resume-table { min-width: 0; font-size: 8pt; }
  .resume-table th, .resume-table td { padding: 2.1mm 2.4mm; }
  .document-section { margin-top: 6mm; break-inside: avoid; }
  .document-section h2 { margin-bottom: 2mm; font-size: 12pt; }
  .document-title h1 { font-size: 23pt; }
  .summary-box { padding: 2.6mm 3mm; font-size: 8pt; }
}

@media screen {
  .resume-toolbar {
    min-height: 58px;
    padding-block: 8px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .resume-toolbar a,
  .resume-toolbar button {
    min-height: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #b4b7b1;
    background: #f4f5f1;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  }

  .resume-toolbar a:nth-child(3),
  .resume-toolbar button {
    border-color: #809b3c;
    background: #eef3df;
  }

  .resume-toolbar a:hover,
  .resume-toolbar a:focus-visible,
  .resume-toolbar button:hover,
  .resume-toolbar button:focus-visible {
    border-color: #4f6d0a;
    background: #4f6d0a;
    color: #fff;
  }

  .resume-body a:focus-visible,
  .resume-body button:focus-visible {
    outline: 2px solid #789d22;
    outline-offset: 2px;
  }

  .project-table a {
    min-height: 26px;
    padding: 2px 7px;
    border: 1px solid #9eb367;
    background: #f3f6e9;
    text-decoration: none;
  }

  .project-table a:hover,
  .project-table a:focus-visible {
    background: #e2eacb;
  }
}

@media screen and (max-width: 480px) {
  .resume-toolbar {
    width: calc(100% - 24px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .resume-toolbar a,
  .resume-toolbar button {
    width: 100%;
    margin: 0 !important;
    justify-content: center;
  }

  .table-scroll {
    overscroll-behavior-inline: contain;
    scrollbar-color: #789d22 #e5e6e1;
  }
}
