/* Match footer background and text treatment to the site header navbar. */
.footer,
.nav-footer {
  background-color: var(--quarto-scss-export-navbar-bg);
  color: var(--quarto-scss-export-navbar-fg);
}

.nav-footer a {
  color: var(--quarto-scss-export-navbar-hl);
}

.nav-footer a:hover,
.nav-footer a:focus {
  color: var(--quarto-scss-export-navbar-hl);
}

/* Me page */
.me-hero,
.me-focus-grid {
  font-family: inherit;
}

.me-hero {
  margin: 1rem 0 2rem 0;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border-radius: 1.15rem;
  border: 1px solid #dfd5c4;
  background: linear-gradient(135deg, #fbf6ec 0%, #ffffff 45%, #eaf2f7 100%);
  box-shadow: 0 18px 42px rgba(46, 54, 63, 0.12);
}

.me-hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(1.1rem, 3vw, 2.3rem);
  align-items: center;
}

.me-photo-panel {
  text-align: center;
}

.me-photo {
  width: min(260px, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #ffffff;
  box-shadow: 0 12px 28px rgba(30, 40, 50, 0.24);
}

.me-photo-caption {
  margin: 0.9rem 0 0 0;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: #1f3b63;
}

.me-kicker {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: #1f3b63;
}

.me-name {
  margin: 0.35rem 0 0.7rem 0;
  font-family: inherit;
  font-size: clamp(1.8rem, 2.9vw, 2.2rem);
  line-height: 1.25;
}

.me-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: #21384a;
}

.me-text {
  margin: 0.9rem 0 0 0;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: #2d4457;
}

.me-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.me-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid #8dbab6;
  background: #ffffffcc;
  text-decoration: none;
  color: #1f3b63;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.me-action-link:hover,
.me-action-link:focus {
  border-color: #0f766e;
  color: #0a5f58;
}

.me-track {
  margin: 0.2rem 0 1.2rem 0;
  padding: 0.95rem 1rem 0.8rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid #d7e5e3;
  background: #ffffff;
}

.me-track h2 {
  margin: 0 0 0.55rem 0;
  color: #1f3b63;
  font-size: 1.08rem;
  font-weight: 700;
}

.me-track .mermaid {
  max-width: 100%;
  overflow-x: auto;
}

.me-track-note {
  margin: 0.45rem 0 0 0;
  color: #486173;
  font-size: 0.88rem;
}

.me-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0.6rem 0 0.4rem 0;
}

.me-focus-card {
  border: 1px solid #dfdfdf;
  border-top: 4px solid #0f766e;
  border-radius: 0.8rem;
  padding: 1rem 1rem 0.9rem 1rem;
  background: #fff;
}

.me-focus-card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.me-focus-card p {
  margin: 0;
  color: #355067;
  font-size: 1rem;
  font-weight: 400;
}

@media (max-width: 900px) {
  .me-hero-grid {
    grid-template-columns: 1fr;
  }

  .me-intro {
    text-align: left;
  }

  .me-focus-grid {
    grid-template-columns: 1fr;
  }
}

body.quarto-dark .me-hero {
  border-color: #2e5362;
  background: linear-gradient(135deg, #122a34 0%, #102430 52%, #0d1d27 100%);
  box-shadow: none;
}

body.quarto-dark .me-photo {
  border-color: #2a3a47;
}

body.quarto-dark .me-kicker,
body.quarto-dark .me-photo-caption {
  color: #b6c9d8;
}

body.quarto-dark .me-lead {
  color: #d4e2ee;
}

body.quarto-dark .me-text {
  color: #c2d4e2;
}

body.quarto-dark .me-action-link {
  background: #20303a;
  border-color: #4d677b;
  color: #d9e6f0;
}

body.quarto-dark .me-action-link:hover,
body.quarto-dark .me-action-link:focus {
  border-color: #83a0b7;
  color: #ffffff;
}

body.quarto-dark .me-track {
  background: #1f2a33;
  border-color: #2f5563;
}

body.quarto-dark .me-track h2 {
  color: #d7e7f0;
}

body.quarto-dark .me-track-note {
  color: #b6c9d8;
}

body.quarto-dark .me-focus-card {
  background: #1f2a33;
  border-color: #2f5563;
}

body.quarto-dark .me-focus-card p {
  color: #c9dbe4;
}

/* Resume page */
.resume-page {
  color: #111111;
  font-size: 1rem;
  line-height: 1.55;
}

.resume-page p,
.resume-page li,
.resume-page a {
  color: #111111;
  font-size: 1rem;
  font-weight: 400;
}

.resume-page h1,
.resume-page h2,
.resume-page h3,
.resume-page h4,
.resume-page h5,
.resume-page h6 {
  color: #1f3b63;
  font-weight: 700;
  line-height: 1.3;
}

.resume-page h2 {
  font-size: 1.2rem;
}

.resume-page h3 {
  margin-top: 0.95rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.resume-page h4 {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.resume-head {
  margin: 0.2rem 0 1.2rem 0;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #d9e0e6;
}

.resume-name {
  margin: 0 0 0.25rem 0;
  font-size: clamp(1.65rem, 2.3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.resume-ribbon {
  margin: 1.4rem 0 0.6rem 0;
  padding-left: 0.72rem;
  border-left: 4px solid #0f766e;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-transform: none;
  color: #1f3b63;
}

.resume-ribbon + p,
.resume-ribbon + ul,
.resume-ribbon + ol {
  margin-top: 0.2rem;
}

.resume-page #refs {
  margin-top: 0.35rem;
}

.resume-page #refs .csl-entry {
  color: #111111;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
}

.resume-page #refs .csl-entry a,
.resume-page #refs .csl-entry span,
.resume-page #refs .csl-entry strong {
  font-weight: 400;
}

body.quarto-dark .resume-head {
  border-bottom-color: #435667;
}

body.quarto-dark .resume-page,
body.quarto-dark .resume-page p,
body.quarto-dark .resume-page li,
body.quarto-dark .resume-page a {
  color: #d7e1e8;
}

body.quarto-dark .resume-ribbon {
  border-left-color: #5ec1b5;
  color: #d7e7f0;
}

body.quarto-dark .resume-page h1,
body.quarto-dark .resume-page h2,
body.quarto-dark .resume-page h3,
body.quarto-dark .resume-page h4,
body.quarto-dark .resume-page h5,
body.quarto-dark .resume-page h6 {
  color: #d7e7f0;
}

body.quarto-dark .resume-page #refs .csl-entry {
  color: #d7e1e8;
}
