:root{
  --text:#1f2937;
  --muted:#4b5563;
  --bg:#ffffff;
  --card:#f8fafc;
  --border:#e5e7eb;

  --accent:#1d4ed8;
  --accent-soft:#eff6ff;
}

body{
  font-family: "Helvetica Neue", Arial, sans-serif;
  max-width: 920px;
  margin: 56px auto;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding: 0 16px;
}

h1,h2{ font-weight: 400; margin: 0 0 10px 0; }
h1{ margin-bottom: 6px; }

.namebar{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.rule{
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 10px 0 18px 0;
  border-radius: 2px;
}

.headline{
  color: var(--muted);
  margin-bottom: 22px;
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.section{ margin-top: 42px; }
.section h2{ margin-bottom: 8px; }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
}

.keywords{
  font-size: 14px;
  color: #6b7280;
  margin-top: 10px;
}

.controls{
  margin: 12px 0 10px 0;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}

input{
  padding: 9px 10px;
  font-size: 14px;
  width: 360px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  background: #fff;
}

input:focus{
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
}

button{
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
}
button:hover{ filter: brightness(0.98); }

.meta{ color:#6b7280; font-size: 14px; }

.item{ margin: 0 0 14px 0; }
.item:last-child{ margin-bottom: 0; }

.badge{
  display:inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-left: 8px;
  color:#6b7280;
  background:#fff;
  vertical-align: middle;
}

.links{
  font-size: 14px;
  margin-top: 2px;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}

.bibtex-btn{
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
}
.bibtex-btn:hover{ text-decoration: underline; }

.bibtex{
  display:none;
  margin-top: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
}

ul{ margin: 8px 0 0 20px; padding: 0; }
.contact-line{ margin-bottom:6px; }

/* Photo frame */
.photo-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.photo{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.social-links{
  margin-top: 8px;
  display:flex;
  gap:14px;
  align-items:center;
}

.social-links a{
  display:inline-flex;
  align-items:center;
  color: #6b7280;
  transition: color 0.2s ease;
}

.social-links a:hover{
  color: var(--accent);
}

.social-links img{
  width:20px;
  height:20px;
}
.title-row{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.title-row h1{
  margin:0;
}

.social-links{
  display:flex;
  gap:14px;
  align-items:center;
}

.social-links a{
  display:inline-flex;
  align-items:center;
  color:#6b7280;
  transition: color 0.2s ease;
}

.social-links a:hover{
  color: var(--accent);
}

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

