/* Base */
:root{
  --ink:#111827;
  --muted:#6b7280;
  --bg:#ffffff;
  --soft:#f6f7fb;
  --border:#e5e7eb;
  --brand:#0b5ed7;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

a{ color: var(--brand); }
a:hover{ color: #084bb3; }

/* Hero */
.hero{
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border-bottom: 1px solid var(--border);
}

.profile{
  width: 260px;            /* bigger */
  height: 260px;           /* bigger */
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Sections / cards */
.section{
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.section:last-child{ border-bottom: none; }

.card-soft{
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

/* Pills */
.pill-row .pill{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color:#1d4ed8;
  font-size: 0.9rem;
  margin: 4px 6px 0 0;
}

/* Timeline */
.timeline{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.timeline-item{
  display:grid;
  grid-template-columns: 110px 44px 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.timeline-date{ font-size: 0.9rem; color: var(--muted); }

.timeline-dot{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
}

/* Publications */
.pub-card{
  display:grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.pub-title{
  color: var(--ink);
  text-decoration: none;
}
.pub-title:hover{ text-decoration: underline; }

.pub-status{
  display:inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background:#f3f4f6;
  border:1px solid var(--border);
  color:#111827;
  margin-bottom: 8px;
}

.tag{
  display:inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background:#f9fafb;
  border:1px solid var(--border);
  color:#374151;
}

.pub-thumb img{
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--soft);
}

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  background: #fff;
}

/* Visitors: keep ClustrMaps globe inside the card (safe version) */
.map-frame{
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  position: relative;
}
#mmvst_container{
  width: 100%;
  height: 100%;
  min-height: 340px; /* important on some layouts */
}
/* Ensure injected content fills the frame */
.map-frame iframe,
.map-frame canvas,
.map-frame svg{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
}


/* Responsive */
@media (max-width: 768px){
  .pub-card{ grid-template-columns: 1fr; }
  .pub-thumb img{ height: 160px; }
  .timeline-item{ grid-template-columns: 90px 44px 1fr; }
  .profile{ width: 220px; height: 220px; }  /* keep it reasonable on phones */
}
