/* ── Profile / Homepage layout ─────────────────────────────────── */
.profile-wrapper {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  width: 100%;
  padding: 2rem 5%;
  box-sizing: border-box;
  align-items: flex-start;
}

/* Left column — fixed narrow width */
.profile-left {
  flex: 0 0 200px;
  text-align: center;
}

/* Right column — fills all remaining space */
.profile-right {
  flex: 1 1 0;
  min-width: 0;
}

.profile-right h2:first-of-type {
  margin-top: 0;
}

/* Photo */
.profile-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ddd;
  background-color: #eee;
  display: block;
  margin: 0 auto 0.8rem auto;
}

/* Name + affiliation text */
.profile-left p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #444;
  margin: 0.2rem 0;
}

.profile-left a {
  font-size: 0.83rem;
  color: #555;
}

/* CV download link */
.cv-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: #2c6b2f;
  border: 1px solid #2c6b2f;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cv-link:hover {
  background: #2c6b2f;
  color: #fff;
  text-decoration: none;
}

/* Icon-only social row */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #444;
  font-size: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.social-icons a:hover {
  color: #2c6b2f;
  border-color: #2c6b2f;
  text-decoration: none;
}

.social-icons .icon-img {
  width: 20px;
  height: 20px;
}

/* Responsive — stack on mobile */
@media (max-width: 640px) {
  .profile-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .profile-left { flex: none; width: 100%; }
}

/* ── Typography & Base ─────────────────────────────────────────── */
body {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
}

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  background-color: #fff !important;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.6rem 1.5rem;
}

.navbar-brand {
  font-family: "Georgia", serif;
  font-weight: normal;
  font-size: 1.1rem;
  color: #222 !important;
  letter-spacing: 0.01em;
}

.navbar .nav-link {
  color: #333 !important;
  font-size: 0.92rem;
}

.navbar .nav-link:hover {
  color: #2c6b2f !important;
}

/* ── Page headings ─────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: "Georgia", serif;
  font-weight: normal;
}

h1 { font-size: 2rem; margin-bottom: 0.2rem; }
h2 { font-size: 1.3rem; color: #2c6b2f; margin-top: 2rem; border-bottom: 1px solid #e8e8e8; padding-bottom: 0.25rem; }
h3 { font-size: 1.1rem; color: #444; margin-top: 1.5rem; }

/* ── Home header block ─────────────────────────────────────────── */
.home-header {
  padding: 2rem 0 1.5rem 0;
}

.home-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* ── Content width ─────────────────────────────────────────────── */
.quarto-container {
  max-width: 860px;
}

/* ── Tables ────────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
  margin: 1rem 0;
}

th {
  background-color: #f5f5f5;
  border-bottom: 2px solid #ccc;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: bold;
}

td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #eee;
}

tr:hover td {
  background-color: #fafafa;
}

/* ── Horizontal rule ───────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 1.8rem 0;
}

/* ── Links ─────────────────────────────────────────────────────── */
a {
  color: #2c6b2f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Tabset panels ─────────────────────────────────────────────── */
.panel-tabset .nav-tabs .nav-link {
  color: #444;
  font-size: 0.93rem;
}

.panel-tabset .nav-tabs .nav-link.active {
  color: #2c6b2f;
  border-bottom: 2px solid #2c6b2f;
  font-weight: bold;
}

/* ── Blockquotes / callout notes ───────────────────────────────── */
blockquote {
  border-left: 3px solid #2c6b2f;
  background: #f7fbf7;
  padding: 0.7rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.92rem;
  color: #333;
}

/* ── Footer ────────────────────────────────────────────────────── */
.nav-footer {
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
  color: #888;
}
