/* Colors come from the shared gc-site format (--gc-* variables). The CV
   keeps its own serif document typography so the web CV matches the PDF. */
:root {
  --cv-text: var(--gc-ink);
  --cv-muted: var(--gc-muted);
  --cv-rule: var(--gc-rule);
  --cv-link: var(--gc-link);
}

/* Serif type for the CV itself; the shared navbar keeps the format's font. */
#quarto-content {
  color: var(--cv-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.4;
}

main,
.quarto-container,
.page-columns {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

p {
  margin: 0.2rem 0 0.45rem;
}

.cv-header {
  margin: 0 0 1rem;
  text-align: center;
}

.cv-name {
  font-size: 1.45rem;
  font-weight: 700;
}

.cv-title {
  font-weight: 700;
  margin: 0.15rem 0;
}

.cv-revised {
  color: var(--cv-muted);
  margin: 0.15rem 0;
}

.cv-pdf-float {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid var(--cv-rule);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  color: var(--cv-muted);
  display: inline-flex;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.35rem;
  line-height: 1.2;
  padding: 0.4rem 0.8rem;
  position: fixed;
  right: 1.25rem;
  text-decoration: none;
  top: 4.75rem;               /* below the shared navbar */
  transition: color 0.15s ease, border-color 0.15s ease;
  z-index: 1000;
}

.cv-pdf-float:hover,
.cv-pdf-float:focus-visible {
  border-color: var(--cv-link);
  color: var(--cv-link);
}

.cv-pdf-float:focus-visible {
  outline: 2px solid var(--cv-link);
  outline-offset: 2px;
}

.zh {
  font-family: "Microsoft YaHei", SimSun, "Noto Serif CJK SC", serif;
}

h1 {
  border-bottom: 1px solid var(--cv-rule);
  color: var(--cv-text);
  font-size: 1.25rem;
  letter-spacing: 0;
  margin-top: 1.5rem;
  padding-bottom: 0.2rem;
  text-transform: uppercase;
}

h2 {
  color: var(--cv-text);
  font-size: 1rem;
  margin-top: 1rem;
}

h3 {
  color: var(--cv-text);
  font-size: 0.98rem;
  margin-top: 0.8rem;
}

ol,
ul {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.35rem;
}

ol li {
  padding-left: 0.15rem;
}

a {
  color: var(--cv-link);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
}

blockquote {
  border-left: 0;
  color: var(--cv-muted);
  margin: -0.25rem 0 0.65rem 1.5rem;
  padding-left: 0;
}

/* The theme colors .blockquote; keep the CV's muted grey. */
.blockquote {
  color: var(--cv-muted);
}

.underline {
  text-decoration: underline;
}

@media print {
  #quarto-content {
    font-size: 11pt;
  }

  a {
    color: inherit;
  }

  .cv-pdf-float {
    display: none;
  }
}

@media (max-width: 640px) {
  #quarto-content {
    font-size: 15px;
  }

  main,
  .quarto-container,
  .page-columns {
    max-width: 100%;
  }
}
