:root {
  --ink: #18212f;
  --muted: #667085;
  --line: #dbe3ea;
  --paper: #ffffff;
  --canvas: #eef3f1;
  --accent: #176b5b;
  --accent-dark: #0d5145;
  --accent-soft: #e6f2ef;
  --warm: #d99a42;
}

@font-face {
  font-family: "Glyphicons Halflings";
  src: url("../fonts/glyphicons-halflings-regular.woff") format("woff");
  font-style: normal;
  font-weight: normal;
}

.glyphicon {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: "Glyphicons Halflings";
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.glyphicon-envelope::before { content: "\2709"; }
.glyphicon-star::before { content: "\e006"; }
.glyphicon-time::before { content: "\e023"; }
.glyphicon-file::before,
.glyphicon-paste::before { content: "\e022"; }
.glyphicon-book::before { content: "\e043"; }
.glyphicon-bookmark::before { content: "\e044"; }
.glyphicon-map-marker::before { content: "\e062"; }
.glyphicon-chevron-up::before { content: "\e113"; }
.glyphicon-filter::before { content: "\e138"; }
.glyphicon-briefcase::before { content: "\e139"; }
.glyphicon-phone::before { content: "\e145"; }
.glyphicon-new-window::before { content: "\e164"; }

html {
  scroll-behavior: smooth;
}

html.theme-transitioning body,
html.theme-transitioning .container,
html.theme-transitioning .profile-header,
html.theme-transitioning .intro address,
html.theme-transitioning .intro blockquote,
html.theme-transitioning .skills-section,
html.theme-transitioning .skill-group,
html.theme-transitioning .strength-card,
html.theme-transitioning .community-copy,
html.theme-transitioning .profile-card,
html.theme-transitioning .profile-term,
html.theme-transitioning .timeline-panel,
html.theme-transitioning .timeline-badge,
html.theme-transitioning #bibtex_display ul,
html.theme-transitioning .bibtex_search,
html.theme-transitioning .publication-sort,
html.theme-transitioning .well,
html.theme-transitioning pre,
html.theme-transitioning .profile-tooltip {
  transition:
    color 420ms ease,
    background-color 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease,
    background 420ms ease;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(23, 107, 91, 0.12), transparent 28rem),
    linear-gradient(135deg, #f7f9f8 0%, var(--canvas) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 32px auto;
  padding: 0 56px 64px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(39, 58, 52, 0.12);
}

a {
  color: var(--accent);
  text-decoration-color: rgba(23, 107, 91, 0.35);
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--accent-dark);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 -56px 42px;
  padding: 48px 56px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(12, 73, 63, 0.97), rgba(24, 94, 82, 0.92)),
    url("../img/desk.jpg") center / cover;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 28px;
}

.profile-photo {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 50% 12%;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.eyebrow {
  margin: 0 0 4px;
  color: #bfe1d9;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1.title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.role {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.social {
  display: flex;
  gap: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: flex;
  width: 62px;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.18);
}

.theme-toggle-icon {
  z-index: 1;
  font-size: 0.78rem;
  line-height: 1;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(28px);
}

.theme-toggle:hover .theme-toggle-track {
  background: rgba(255, 255, 255, 0.13);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.theme-transitioning *,
  .theme-toggle-thumb {
    transition: none !important;
  }
}

.social > a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 1.15rem;
  transition: transform 160ms ease, background 160ms ease;
}

.social > a:hover,
.social > a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transform: translateY(-2px);
}

.intro {
  display: flex;
  align-items: stretch;
  margin-bottom: 54px;
}

.intro address,
.intro blockquote {
  height: 100%;
  margin: 0;
  border-radius: 16px;
}

.intro address {
  padding: 24px;
  color: var(--muted);
  background: #f5f8f7;
  border: 1px solid #e1e9e6;
  font-size: 0.94rem;
}

.intro address strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.intro blockquote {
  padding: 24px 28px;
  color: #344054;
  background: transparent;
  border: 0;
  border-left: 4px solid var(--accent);
  font-size: 1.05rem;
}

.intro blockquote p {
  margin: 0;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 58px 0 24px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

h2 .glyphicon {
  color: var(--accent);
  font-size: 0.72em;
}

.skills-section {
  padding: 30px;
  background: #f8faf9;
  border: 1px solid #e3ebe8;
  border-radius: 18px;
}

.skills-section h2 {
  margin-top: 0;
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.skill-group {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #dfe8e5;
  border-radius: 12px;
}

.skill-group strong,
.skill-group span {
  display: block;
}

.skill-group strong {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-group span {
  color: #475467;
  line-height: 1.55;
}

.strengths-section {
  margin-top: 58px;
}

.strengths-section h2 {
  margin-top: 0;
}

.strength-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.strength-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(27, 47, 42, 0.05);
}

.strength-card::after {
  position: absolute;
  right: -24px;
  bottom: -36px;
  width: 110px;
  height: 110px;
  content: "";
  background: var(--accent-soft);
  border-radius: 50%;
  opacity: 0.65;
}

.card-number {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.strength-card h3,
.community-copy h3 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 750;
}

.strength-card p,
.community-copy p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: #475467;
}

.community-section {
  margin-top: 58px;
}

.community-section h2 {
  margin-top: 0;
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.community-copy {
  padding: 28px;
  background: #f8faf9;
  border: 1px solid #e3ebe8;
  border-radius: 18px;
}

.community-copy p + p {
  margin-top: 14px;
}

.profile-card {
  padding: 28px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(13, 81, 69, 0.18);
}

.profile-label {
  margin: 0 0 20px;
  color: #bfe1d9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-card dl,
.profile-card dd {
  margin: 0;
}

.profile-card dl > div + div {
  margin-top: 22px;
}

.profile-card dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-card dd {
  margin-top: 5px;
  font-size: 1.2rem;
  font-weight: 750;
}

.profile-term {
  position: relative;
  display: inline-block;
  margin: 5px 4px 0 0;
  padding: 4px 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: help;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: left;
}

.profile-term:hover,
.profile-term:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.profile-term-wide {
  margin-top: 6px;
  font-size: 1rem;
}

.profile-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 20;
  width: min(310px, 76vw);
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(10, 38, 33, 0.24);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
}

.profile-tooltip::after {
  position: absolute;
  top: 100%;
  right: 18px;
  content: "";
  border: 7px solid transparent;
  border-top-color: #fff;
}

.profile-term:hover .profile-tooltip,
.profile-term:focus .profile-tooltip,
.profile-term:focus-visible .profile-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
}

#bibtex_input {
  display: none;
}

#bibtex_display {
  margin-top: 24px;
}

.publication-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.publication-stats strong {
  margin-right: 4px;
  color: var(--accent-dark);
}

.publication-stats strong:not(:first-child) {
  margin-left: 14px;
}

.citation-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.citation-count {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

#bibtex_display ul {
  margin: 0 0 12px;
  padding: 18px 22px 18px 42px;
  background: #fafbfb;
  border: 1px solid #e5e9ec;
  border-radius: 12px;
}

#bibtex_display .year {
  font-weight: 700;
}

#bibtex_display .title {
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}

.bibtex_search,
.publication-sort {
  min-height: 42px;
  margin: 0 8px 10px 0;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccd6dd !important;
  border-radius: 9px !important;
  box-shadow: none;
}

#searchbar {
  min-width: 260px;
}

@media (max-width: 767px) {
  body {
    background: var(--paper);
  }

  .container {
    width: 100%;
    margin: 0;
    padding: 0 20px 44px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .profile-header {
    display: block;
    margin: 0 -20px 32px;
    padding: 34px 20px 30px;
  }

  .profile-identity {
    align-items: flex-start;
    gap: 18px;
  }

  .profile-photo {
    width: 88px;
    height: 88px;
  }

  h1.title {
    font-size: 2.65rem;
  }

  .role {
    font-size: 0.98rem;
  }

  .header-actions {
    margin-top: 24px;
  }

  .intro {
    display: block;
    margin-bottom: 38px;
  }

  .intro address {
    margin-bottom: 18px;
  }

  .intro blockquote {
    padding: 6px 0 6px 20px;
  }

  .skills-section {
    padding: 22px 18px;
  }

  .skills {
    grid-template-columns: 1fr;
  }

  .strength-cards,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .profile-tooltip {
    right: auto;
    left: 0;
  }

  .profile-tooltip::after {
    right: auto;
    left: 18px;
  }

  h2 {
    margin-top: 46px;
  }

  #searchbar {
    width: 100%;
    min-width: 0;
  }
}

@media screen {
  html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #edf4f2;
    --muted: #aab9b5;
    --line: #334942;
    --paper: #14201d;
    --canvas: #0b1210;
    --accent: #67c9b5;
    --accent-dark: #8cddcc;
    --accent-soft: #203d37;
    --warm: #d9a65b;
  }

  html[data-theme="dark"] body {
    background:
      radial-gradient(circle at 10% 0%, rgba(76, 186, 162, 0.12), transparent 28rem),
      linear-gradient(135deg, #101916 0%, var(--canvas) 100%);
    color: var(--ink);
  }

  html[data-theme="dark"] .container {
    background: var(--paper);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }

  html[data-theme="dark"] .profile-header {
    background:
      linear-gradient(110deg, rgba(8, 55, 48, 0.97), rgba(18, 83, 71, 0.94)),
      url("../img/desk.jpg") center / cover;
  }

  html[data-theme="dark"] .intro address,
  html[data-theme="dark"] .skills-section,
  html[data-theme="dark"] .community-copy {
    color: var(--muted);
    background: #192824;
    border-color: var(--line);
  }

  html[data-theme="dark"] .intro address strong,
  html[data-theme="dark"] .intro blockquote,
  html[data-theme="dark"] .strength-card h3,
  html[data-theme="dark"] .community-copy h3,
  html[data-theme="dark"] .timeline-title,
  html[data-theme="dark"] #bibtex_display .title {
    color: var(--ink);
  }

  html[data-theme="dark"] .intro blockquote,
  html[data-theme="dark"] .skill-group span,
  html[data-theme="dark"] .strength-card p,
  html[data-theme="dark"] .community-copy p,
  html[data-theme="dark"] .timeline-body {
    color: #bdc9c6;
  }

  html[data-theme="dark"] .skill-group,
  html[data-theme="dark"] .strength-card,
  html[data-theme="dark"] .timeline > li > .timeline-panel,
  html[data-theme="dark"] .timeline > li.timeline-inverted > .timeline-panel {
    background: #192824;
    border-color: var(--line);
  }

  html[data-theme="dark"] .strength-card::after {
    background: #24453e;
  }

  html[data-theme="dark"] .timeline > li > .timeline-panel:hover {
    border-color: #52736a;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  }

  html[data-theme="dark"] .profile-card {
    color: #dce9e5;
    background: linear-gradient(145deg, #17352f, #1e473f);
    border: 1px solid #365b52;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  }

  html[data-theme="dark"] .profile-label {
    color: #94c8bc;
  }

  html[data-theme="dark"] .profile-card dt {
    color: #a8bab5;
  }

  html[data-theme="dark"] .profile-card dd {
    color: #edf4f2;
  }

  html[data-theme="dark"] .profile-term {
    color: #e2eeeb;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(190, 225, 216, 0.16);
  }

  html[data-theme="dark"] .profile-term:hover,
  html[data-theme="dark"] .profile-term:focus-visible {
    background: rgba(255, 255, 255, 0.11);
    outline-color: rgba(185, 222, 213, 0.55);
  }

  html[data-theme="dark"] .timeline > li > .timeline-badge {
    border-color: var(--paper);
  }

  html[data-theme="dark"] .text-muted,
  html[data-theme="dark"] .timeline-heading small,
  html[data-theme="dark"] .citation-note {
    color: var(--muted) !important;
  }

  html[data-theme="dark"] #bibtex_display ul {
    background: #192824;
    border-color: var(--line);
  }

  html[data-theme="dark"] .bibtex_search,
  html[data-theme="dark"] .publication-sort {
    color: var(--ink);
    background: #192824;
    border-color: #496058 !important;
  }

  html[data-theme="dark"] .bibtex_search::placeholder {
    color: #869994;
  }

  html[data-theme="dark"] .well,
  html[data-theme="dark"] pre {
    color: #d8e3e0;
    background: #0e1715;
    border-color: var(--line);
  }

  html[data-theme="dark"] .profile-tooltip {
    color: var(--ink);
    background: #20302c;
    border-color: #496058;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  }

  html[data-theme="dark"] .profile-tooltip::after {
    border-top-color: #20302c;
  }

  @media (max-width: 767px) {
    html[data-theme="dark"] body {
      background: var(--paper);
    }
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm 15mm 16mm;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
  }

  html {
    font-size: 9.5pt;
  }

  body {
    background: #fff;
    color: #17212b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9.5pt;
    line-height: 1.42;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .profile-header {
    display: flex;
    min-height: 30mm;
    margin: 0 0 7mm;
    padding: 6mm 7mm;
    color: #fff;
    background: #0d5145 !important;
    border-radius: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .profile-identity {
    gap: 5mm;
  }

  .profile-photo {
    width: 25mm;
    height: 25mm;
    border-width: 1mm;
  }

  .eyebrow {
    margin-bottom: 1mm;
    font-size: 6.5pt;
  }

  h1.title {
    font-size: 29pt;
    letter-spacing: -0.04em;
  }

  .role {
    margin-top: 2mm;
    font-size: 10pt;
  }

  .social,
  .theme-toggle,
  iframe,
  .bibtex_search,
  .publication-sort,
  .glyphicon-filter,
  #bibtex_display .collapse,
  #bibtex_display a[role="button"] {
    display: none;
  }

  a,
  a:visited {
    color: inherit;
    text-decoration: none;
  }

  .intro {
    display: grid;
    grid-template-columns: 31% 1fr;
    gap: 5mm;
    margin: 0 0 7mm;
  }

  .intro > div {
    width: auto;
    max-width: none;
    padding: 0;
  }

  .intro address {
    padding: 4mm;
    background: #f1f5f3 !important;
    border-radius: 0;
    font-size: 8.5pt;
  }

  .intro blockquote {
    padding: 1mm 0 1mm 4mm;
    border-left-width: 1mm;
    border-radius: 0;
    font-size: 9.2pt;
    line-height: 1.48;
  }

  h2 {
    margin: 8mm 0 4mm;
    padding-bottom: 1.5mm;
    color: #0d5145;
    border-bottom: 0.4mm solid #b9cec8;
    font-size: 15pt;
    letter-spacing: -0.02em;
    break-after: avoid-page;
  }

  h2 .glyphicon {
    display: none;
  }

  .skills-section,
  .community-copy {
    padding: 5mm;
    background: #f7f9f8 !important;
    border-radius: 0;
  }

  .skills {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5mm 4mm;
  }

  .skill-group {
    padding: 2.5mm 3mm;
    border-radius: 0;
    break-inside: avoid;
  }

  .skill-group strong {
    font-size: 6.5pt;
  }

  .skill-group span {
    font-size: 8.2pt;
    line-height: 1.35;
  }

  .strengths-section,
  .community-section {
    margin-top: 8mm;
  }

  .strength-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 3mm;
  }

  .strength-card {
    padding: 4mm;
    border-radius: 0;
    break-inside: avoid;
  }

  .strength-card::after {
    display: none;
  }

  .strength-card h3,
  .community-copy h3 {
    margin: 1mm 0 1.5mm;
    font-size: 10pt;
  }

  .strength-card p,
  .community-copy p {
    font-size: 8.3pt;
    line-height: 1.4;
  }

  .community-grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 4mm;
  }

  .community-copy,
  .profile-card {
    padding: 5mm;
    border-radius: 0;
    break-inside: avoid;
  }

  .profile-card {
    background: #176b5b !important;
  }

  .profile-label {
    margin-bottom: 3mm;
    font-size: 6.5pt;
  }

  .profile-card dl > div + div {
    margin-top: 3mm;
  }

  .profile-card dt {
    font-size: 7pt;
  }

  .profile-card dd {
    font-size: 9.5pt;
  }

  .profile-term {
    padding: 1mm 2mm;
    border-radius: 0;
    font-size: 7pt;
  }

  .profile-tooltip {
    display: none !important;
  }

  .timeline {
    padding-left: 10mm;
  }

  .timeline::before {
    left: 3.2mm;
    width: 0.4mm;
    background: #b9cec8 !important;
  }

  .timeline > li {
    margin-bottom: 3mm;
    break-inside: avoid;
  }

  .timeline > li > .timeline-badge {
    top: 4mm;
    left: -10mm;
    width: 6.5mm;
    height: 6.5mm;
    border-width: 0.8mm;
    font-size: 6pt;
    line-height: 4.9mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .timeline > li > .timeline-panel,
  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 4mm 5mm;
    border-radius: 0;
  }

  .timeline-title {
    margin-bottom: 1mm;
    font-size: 10pt;
  }

  .timeline-heading small {
    font-size: 7.4pt;
  }

  .timeline-body {
    margin-top: 2mm;
    font-size: 8.3pt;
    line-height: 1.4;
  }

  .publication-stats {
    margin-bottom: 1.5mm;
    font-size: 8.5pt;
  }

  .citation-note {
    margin-bottom: 4mm;
    font-size: 7.5pt;
  }

  #bibtex_display {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5mm 5mm;
    margin-top: 0;
  }

  #bibtex_display .bibtexentry {
    break-inside: avoid;
  }

  #bibtex_display ul {
    height: 100%;
    margin: 0;
    padding: 3mm 3mm 3mm 6mm;
    background: transparent !important;
    border: 0;
    border-bottom: 0.25mm solid #dbe3ea;
    border-radius: 0;
    font-size: 7.4pt;
    line-height: 1.35;
  }

  #bibtex_display .title {
    font-size: 8pt;
  }

  .citation-count {
    margin-left: 1mm;
    padding: 0;
    color: #0d5145 !important;
    background: transparent !important;
    font-size: 7pt;
  }

  .profile-header,
  .intro,
  .skills-section,
  .strength-card,
  .community-grid {
    break-inside: avoid;
  }
}
