/* Additions on top of Minimal Light */

h3.pub-group {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.4rem;
}

.publications { margin-top: 0.5rem; }

.pub-body { padding-left: 0 !important; }

.publications ol.bibliography li { min-height: 0; margin-bottom: 1.1rem; }

.pub-status {
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--global-text-color-light);
}

.pub-summary {
  font-size: 0.92em;
  line-height: 1.45;
  margin-top: 4px;
}

.pub-note { color: #e74d3c; }

.pub-footnote {
  font-size: 0.85em;
  color: var(--global-text-color-light);
  margin-top: -0.5rem;
}

.cv-list { margin-bottom: 1.5rem; }

.cv-entry { margin-bottom: 0.9rem; }

.cv-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.cv-date {
  flex-shrink: 0;
  font-size: 0.9em;
  color: var(--global-text-color-light);
  white-space: nowrap;
}

.cv-sub {
  font-size: 0.95em;
  font-style: italic;
}

.cv-desc {
  font-size: 0.93em;
  line-height: 1.45;
  margin-top: 2px;
}

@media print, screen and (max-width: 480px) {
  .cv-head { flex-direction: column; gap: 0; }
}

/* Keep up to six profile icons on one centered row */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.social-icons a {
  margin: 0 !important;
  width: 2.2rem;
}

/* Section navigation under the profile icons */
.section-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin: 0.9rem auto 0;
  padding-top: 0.8rem;
  width: 60%;
  border-top: 1px solid #e5e5e5;
  font-size: 0.95rem;
}

.section-nav a {
  color: #595959;
  padding: 1px 8px;
  line-height: 1.6;
}

.section-nav a:hover,
.section-nav a.active {
  color: #043361;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .section-nav { border-top-color: #3a3b45; }
  .section-nav a { color: #dadbdf; }
  .section-nav a:hover,
  .section-nav a.active { color: rgb(62, 183, 240); }
}

section h2[id] { scroll-margin-top: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print, screen and (max-width: 960px) {
  .section-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 6px;
    width: auto;
    max-width: 420px;
  }
}

/* Desktop: the left column is fixed, so on short windows (e.g. laptops at
   125-150% display scaling) tighten its top spacing and let it scroll, so the
   whole section menu stays reachable. */
@media screen and (min-width: 961px) {
  header {
    box-sizing: border-box;
    max-height: 100vh;
    overflow-y: auto;
    padding-bottom: 1rem;
  }
}

@media screen and (min-width: 961px) and (max-height: 660px) {
  header { padding-top: 1.5em; }
  .image.avatar img { padding: 10px 20px; }
}
