:root {
  color-scheme: light;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

.resume-page {
  --font-scale: 1;
  --line-height: 1.55;
  --accent: #3559a6;
  --page-margin-x: 14mm;
  --page-margin-y: 9mm;
  --density-space: 1;
  width: 210mm;
  height: 297mm;
  padding: var(--page-margin-y) var(--page-margin-x);
  overflow: hidden;
  display: flex;
  flex: none;
  flex-direction: column;
  position: relative;
  color: #1d2637;
  background: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: calc(9.6pt * var(--font-scale));
  line-height: var(--line-height);
  letter-spacing: 0.01em;
}

.resume-page[data-density="comfortable"] {
  --density-space: 1.42;
}

.resume-page-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.resume-page-footer {
  flex: none;
  height: 4.5mm;
  padding-top: 1mm;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  color: #8993a4;
  font-size: 7.3pt;
  letter-spacing: 0.08em;
}

.resume-page-footer.has-running-meta {
  height: 5mm;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8mm;
}

.resume-page-number {
  justify-self: end;
}

.resume-page-number:empty {
  display: none;
}

.resume-footer-tail {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2.8mm;
  white-space: nowrap;
}

.resume-footer-tail .resume-page-number {
  padding-left: 2.8mm;
  border-left: 0.12mm solid #d9dee7;
}

.resume-running-header {
  height: clamp(3.4mm, calc(var(--page-margin-y) * 0.54), 4.6mm);
  position: absolute;
  z-index: 1;
  top: max(0.9mm, calc(var(--page-margin-y) * 0.14));
  right: var(--page-margin-x);
  left: var(--page-margin-x);
  padding-bottom: 0.7mm;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5mm;
  border-bottom: 0.12mm solid color-mix(in srgb, var(--accent) 24%, #ffffff);
  color: #687489;
  font-size: calc(7.05pt * var(--font-scale));
  line-height: 1.15;
  letter-spacing: 0.015em;
}

.resume-running-header.is-site-only {
  justify-content: flex-end;
}

.running-meta-identity {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.running-meta-site {
  flex: none;
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.running-meta-site::after {
  content: " ↗";
  font-size: 0.84em;
}

.running-meta-site:hover {
  text-decoration: underline;
  text-underline-offset: 0.55mm;
}

.resume-header {
  min-height: 36mm;
  padding-bottom: 4mm;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  border-bottom: 0.55mm solid var(--accent);
}

.resume-brand-wrap {
  width: 59mm;
  height: 22mm;
  display: flex;
  position: absolute;
  left: 0;
  top: 50%;
  align-items: center;
  transform: translateY(-50%);
}

.resume-school-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.school-inline-logo {
  width: 4.6mm;
  height: 4.6mm;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
}

.school-inline-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.resume-wordmark {
  width: 15mm;
  height: 15mm;
  display: grid;
  place-items: center;
  border: 0.45mm solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font: 700 12pt/1 Georgia, serif;
  letter-spacing: -0.08em;
}

.resume-identity {
  width: 92mm;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}

.resume-name {
  margin: 0 0 1.3mm;
  font-size: calc(20pt * var(--font-scale));
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: #121927;
}

.resume-contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8mm 2.6mm;
  color: #505c70;
  font-size: calc(8.25pt * var(--font-scale));
}

.primary-contact-line {
  margin-top: 1.15mm;
}

.link-contact-line {
  margin-top: 0.65mm;
  gap: 0.55mm 1.7mm;
}

.resume-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.7mm;
}

.resume-contact + .resume-contact::before {
  content: "";
  width: 0.75mm;
  height: 0.75mm;
  margin-right: 1.1mm;
  border-radius: 50%;
  background: #a5afbe;
}

.resume-intent {
  margin: 1.05mm 0 0;
  color: #27354a;
  font-size: calc(9.2pt * var(--font-scale));
  font-weight: 650;
}

.contact-link,
.inline-link,
.entry-link,
.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 0;
}

.contact-link {
  color: #3c5f9e;
  font-weight: 560;
  text-decoration: none;
  transition: color 140ms ease;
}

.contact-link:hover {
  color: var(--accent);
}

.link-muted {
  color: #505c70;
}

.resume-photo-wrap {
  width: 23mm;
  height: 31mm;
  position: absolute;
  right: 0;
  top: 50%;
  overflow: hidden;
  border-radius: 1.2mm;
  background: #f2f4f8;
  transform: translateY(-50%);
}

.resume-header.legacy-wide-logo {
  display: grid;
  grid-template-columns: 59mm 1fr 23mm;
  column-gap: 6mm;
}

.resume-header.legacy-wide-logo .resume-brand-wrap,
.resume-header.legacy-wide-logo .resume-photo-wrap {
  position: static;
  transform: none;
}

.resume-header.legacy-wide-logo .resume-identity {
  width: auto;
  margin: 0;
}

.resume-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.resume-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0.35mm dashed #c6cedc;
  color: #9aa4b5;
  font-size: 8pt;
  letter-spacing: 0.18em;
}

.resume-summary {
  margin: calc(2.1mm * var(--density-space)) 0 calc(1.6mm * var(--density-space));
  padding: 0;
  color: #3f4a5d;
  font-size: calc(8.9pt * var(--font-scale));
}

.rich-text {
  white-space: pre-wrap;
}

.resume-summary .rich-text {
  margin: 0;
}

.resume-section {
  margin: 0 0 calc(2.9mm * var(--density-space));
}

.resume-section-heading {
  min-height: 6.2mm;
  margin: 0 0 calc(0.8mm * var(--density-space));
  display: flex;
  align-items: center;
  gap: 2mm;
  border-bottom: 0.16mm solid color-mix(in srgb, var(--accent) 42%, #ffffff);
}

.resume-section-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: calc(11pt * var(--font-scale));
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: 0.025em;
}

.continued-label {
  padding: 0.2mm 1.3mm;
  border: 0.2mm solid color-mix(in srgb, var(--accent) 38%, #ffffff);
  border-radius: 99px;
  color: var(--accent);
  font-size: 6.8pt;
}

.resume-entry {
  padding: calc(1.25mm * var(--density-space)) 0 calc(1.45mm * var(--density-space));
  break-inside: avoid;
}

.resume-entry:last-child {
  padding-bottom: 0;
}

.education-entry {
  display: block;
}

.entry-body {
  min-width: 0;
}

.entry-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4mm;
}

.entry-title-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1mm 1.5mm;
  color: #182235;
}

.company-logo {
  width: 13mm;
  height: 7mm;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.company-logo--small {
  width: 10mm;
  height: 5.5mm;
}

.company-logo--large {
  width: 16mm;
  height: 9mm;
}

.company-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.entry-title-line strong {
  font-size: calc(9.8pt * var(--font-scale));
  font-weight: 720;
}

.company-alias {
  padding: 0.2mm 1.1mm;
  border: 0.16mm solid color-mix(in srgb, var(--accent) 46%, #ffffff);
  border-radius: 0.7mm;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, #ffffff);
  font-size: calc(6.9pt * var(--font-scale));
  font-weight: 650;
  line-height: 1.2;
}

.project-tech {
  padding: 0.15mm 1mm;
  color: #4d617f;
  background: #f3f6fa;
  border: 0.14mm solid #dbe2ec;
  border-radius: 0.65mm;
  font-size: calc(6.7pt * var(--font-scale));
  font-weight: 600;
  line-height: 1.15;
}

.education-major {
  color: #3d4b61;
  font-size: calc(9.1pt * var(--font-scale));
  font-weight: 560;
}

.role-separator {
  color: #8d98aa;
}

.entry-role {
  color: #3d4b61;
  font-size: calc(9pt * var(--font-scale));
  font-weight: 600;
}

.entry-date {
  flex: none;
  color: #3f4b5f;
  font-size: calc(8.2pt * var(--font-scale));
  font-variant-numeric: tabular-nums;
}

.entry-subtitle {
  margin: 0.4mm 0 0;
  color: #596579;
  font-size: calc(8.5pt * var(--font-scale));
}

.entry-summary {
  margin-top: 0.7mm;
  color: #344054;
}

.school-badge {
  padding: 0.3mm 1.25mm;
  border-radius: 0.65mm;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 82%, #8fa8d8);
  font-size: calc(7.05pt * var(--font-scale));
  font-weight: 650;
  line-height: 1.25;
}

.resume-bullets {
  margin: calc(0.55mm * var(--density-space)) 0 0;
  padding-left: 3.8mm;
  list-style: none;
}

.resume-bullets li {
  position: relative;
  margin: calc(0.3mm * var(--density-space)) 0;
}

.resume-bullets li::before {
  width: 1.15mm;
  height: 1.15mm;
  position: absolute;
  left: -2.8mm;
  top: 0.68em;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.resume-bullets.is-ordered {
  padding-left: 5mm;
  list-style: decimal;
}

.resume-bullets.is-ordered li {
  padding-left: 0.5mm;
}

.resume-bullets.is-ordered li::before {
  display: none;
}

.resume-bullets.is-ordered li::marker {
  color: var(--accent);
  font-weight: 700;
}

.resume-rich-bullets {
  margin-top: calc(0.55mm * var(--density-space));
}

.resume-rich-bullets ul,
.resume-rich-bullets ol {
  margin: 0;
}

.resume-rich-bullets ul {
  padding-left: 3.8mm;
  list-style: none;
}

.resume-rich-bullets ol {
  padding-left: 5mm;
  list-style: decimal;
}

.resume-rich-bullets li {
  position: relative;
  margin: calc(0.3mm * var(--density-space)) 0;
}

.resume-rich-bullets ul > li::before {
  width: 1.15mm;
  height: 1.15mm;
  position: absolute;
  left: -2.8mm;
  top: 0.68em;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.resume-rich-bullets ol > li::marker {
  color: var(--accent);
  font-weight: 700;
}

.resume-rich-bullets ul ul {
  margin: 0.15mm 0;
  padding-left: 4mm;
}

.resume-rich-bullets ol ol,
.resume-rich-bullets ul ol,
.resume-rich-bullets ol ul {
  margin: 0.15mm 0;
  padding-left: 4.8mm;
}

.bullet-copy {
  display: inline;
}

.rich-strong {
  color: inherit;
  font-weight: 750;
}

.entry-links,
.inline-links {
  margin-top: 0.75mm;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8mm 2.4mm;
  font-size: calc(7.75pt * var(--font-scale));
}

.entry-link::after {
  content: " ↗";
  font-size: 0.82em;
}

.award-copy {
  min-width: 0;
}

.award-copy span {
  color: #4e5b6e;
}

.skill-row {
  padding: calc(0.48mm * var(--density-space)) 0;
  display: grid;
  grid-template-columns: 36mm minmax(0, 1fr);
  column-gap: 3mm;
  align-items: start;
}

.skill-rows {
  padding-left: 0;
  list-style: none;
}

.skill-rows > li::before {
  display: none;
}

.skill-row.is-title-only {
  grid-template-columns: 1fr;
}

.skill-row-title {
  color: #1c2739;
  font-weight: 720;
}

.skill-row-summary {
  color: inherit;
}

.skill-row .inline-links {
  grid-column: 2;
}

.skill-list {
  padding-left: 4.2mm;
}

.skill-list li {
  padding: calc(0.24mm * var(--density-space)) 0;
}

.skill-list-title {
  color: #1c2739;
  font-weight: 720;
}

.skill-list-separator {
  color: #8993a4;
}

.skill-list-copy {
  display: inline;
  color: inherit;
}

.skill-list .inline-links {
  margin-left: 1.2mm;
  display: inline-flex;
  vertical-align: baseline;
}

.skill-groups {
  padding-left: 0;
  list-style: none;
}

.skill-group {
  margin: calc(0.8mm * var(--density-space)) 0;
  padding-left: 2.8mm;
  border-left: 0.45mm solid color-mix(in srgb, var(--accent) 34%, #ffffff);
}

.skill-group::before {
  display: none;
}

.skill-group-title {
  color: #1c2739;
  font-weight: 720;
}

.skill-group-copy {
  margin-top: 0.35mm;
  color: inherit;
}

.skill-group .inline-links {
  margin-top: 0.45mm;
}

.page-overflow {
  outline: 2mm solid rgba(191, 55, 55, 0.2);
}

@media (max-width: 800px) {
  .resume-page {
    margin: 0 auto;
  }
}
