/* ── Profile image ─────────────────────────────── */
.profile-img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center 15%;  /* show face, not mid-body */
  box-shadow: 0 4px 16px rgba(29, 52, 97, 0.18);
  border: 3px solid #e8edf5;
}

/* ── Section headings ──────────────────────────── */
h2 {
  border-bottom: 2px solid #C61935;
  padding-bottom: 0.35rem;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  color: #1D2524;
  margin-top: 1.8rem;
}

/* ── Links ─────────────────────────────────────── */
a {
  transition: color 0.15s;
}

/* ── Press release badge ───────────────────────── */
.press-release {
  color: #b03a2e;
  font-style: italic;
  font-size: 0.88em;
}

/* ── Profile icon links ────────────────────────── */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 0.6rem;
  font-size: 0.92em;
}

.profile-links a {
  color: #1D2524;
  text-decoration: none;
  white-space: nowrap;
}

.profile-links a:hover {
  color: #C61935;
  text-decoration: underline;
}

.profile-links i,
.profile-links .ai {
  width: 1.1em;
  text-align: center;
  margin-right: 0.2em;
}

/* ── Navbar icon sizing ─────────────────────────── */
.navbar .bi {
  font-size: 1.05rem;
  vertical-align: middle;
}

/* ── News list ─────────────────────────────────── */
.news-list {
  list-style: none;
  padding-left: 0;
}

.news-item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef0f4;
  font-size: 0.93em;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  min-width: 72px;
  color: #888;
  font-size: 0.86em;
  white-space: nowrap;
  padding-top: 0.1em;
  font-variant-numeric: tabular-nums;
}

/* ── CV tables ─────────────────────────────────── */
table.cv-table {
  width: 100%;
  border-collapse: collapse;
}
table.cv-table td {
  padding: 0.45rem 0.6rem;
  vertical-align: top;
}
table.cv-table td:first-child {
  white-space: nowrap;
  color: #6c757d;
  width: 160px;
}

/* ── Publication entries (legacy) ─────────────── */
.pub-entry {
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid #d0d8e8;
}

/* ── Research card grid ─────────────────────────── */
.research-areas-header {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .research-grid { grid-template-columns: 1fr; }
}

.research-card {
  border: 1px solid #e0e4ea;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.research-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.research-card-img {
  width: 100%;
  height: 158px;
  overflow: hidden;
  background: #1D2524;
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.research-card-img-placeholder {
  color: rgba(255,255,255,0.35);
}

.research-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.research-card-body h3 {
  font-size: 0.97rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  border-bottom: none;
  line-height: 1.35;
}

.research-card-body h3 a {
  color: #1D2524;
  text-decoration: none;
}

.research-card-body h3 a:hover {
  color: #C61935;
}

.research-card-body p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.65;
}

/* ── Publication new layout ──────────────────────── */
.pub-filter-bar {
  margin-bottom: 1.8rem;
}

/* Pandoc wraps all inline elements in a single <p> */
.pub-filter-bar p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pub-filter-bar .pub-filter-label {
  font-size: 0.82rem;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.pub-filter-input {
  border: 1px solid #d0d8e8;
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  width: 200px;
  outline: none;
  color: #1D2524;
  transition: border-color 0.15s;
}

.pub-filter-input:focus {
  border-color: #C61935;
}

.pub-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid #eef0f4;
  align-items: flex-start;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-meta-col {
  min-width: 56px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  padding-top: 0.1rem;
}

/* Pandoc wraps contents in <p>; make it a flex column too */
.pub-meta-col p {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  width: 100%;
}

.pub-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: #c8d0dc;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pub-journal-btn {
  font-size: 0.72rem;
  color: #C61935;
  border: 1px solid #C61935;
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  line-height: 1.5;
}

.pub-journal-btn:hover {
  background: #C61935;
  color: #fff;
  text-decoration: none;
}

.pub-content {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.45;
  margin-bottom: 0.25rem;
  color: #1D2524;
}

.pub-authors {
  font-size: 0.83rem;
  color: #555;
  margin-bottom: 0.2rem;
}

.pub-journal-name {
  font-size: 0.83rem;
  color: #888;
  font-style: italic;
}

.pub-badges {
  margin-top: 0.3rem;
}

/* ── Publication thumbnail layout ───────────────── */
.pub-with-thumb {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.2rem;
}

.pub-with-thumb .pub-text {
  flex: 1;
  min-width: 0;
}

.pub-with-thumb .pub-thumb {
  width: 110px;
  flex-shrink: 0;
}

.pub-with-thumb .pub-thumb img {
  width: 100%;
  border: 1px solid #e0e4ea;
  border-radius: 4px;
  display: block;
}

/* ── Research topic titles ─────────────────────── */
.topic-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #C61935;
  border-left: 4px solid #C61935;
  padding-left: 0.65rem;
  margin: 1.4rem 0 0.4rem;
  line-height: 1.35;
}

/* ── Language blocks ───────────────────────────── */
/* Visibility controlled by html[data-lang] in lang-init.html */

/* ── Research highlight cards ──────────────────── */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin: 1.5rem 0 2.5rem;
}
@media (max-width: 768px) {
  .highlight-grid { grid-template-columns: 1fr; }
}

.highlight-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.10);
  transition: box-shadow 0.22s, transform 0.22s;
  background: #fff;
  border: 1px solid #e0e4ea;
  display: flex;
  flex-direction: column;
}
.highlight-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.17);
  transform: translateY(-3px);
}
.highlight-card .hc-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}
.hc-body {
  padding: 1.1rem 1.3rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hc-badges {
  margin-bottom: 0.5rem;
}
.hc-journal {
  display: inline-block;
  background: #1D2524;
  color: #fff;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 0.15rem 0.52rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  margin-right: 0.3rem;
}
.hc-pr {
  display: inline-block;
  background: #C61935;
  color: #fff;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 0.15rem 0.52rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.hc-title {
  font-size: 1.00rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.4rem 0 0.5rem;
  color: #1D2524;
}
.hc-desc {
  font-size: 0.862rem;
  line-height: 1.65;
  color: #4a5568;
  margin-bottom: 0.75rem;
  flex: 1;
}
.hc-links {
  font-size: 0.82rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.hc-links a {
  color: #C61935;
  text-decoration: none;
}
.hc-links a:hover {
  text-decoration: underline;
}
