/*
  ALIGNMENT LAB PROFILE STYLESHEET (dark navy)
  Layout inspired by academicpages.github.io,
  colors matched to the lab home page (#0a0e1c).
*/

:root {
  --bg: #0a0e1c;
  --panel-bg: rgba(15, 20, 38, 0.6);
  --text: #d1d5db;          /* gray-300 */
  --text-strong: #ffffff;
  --text-muted: #9ca3af;    /* gray-400 */
  --text-faint: #6b7280;    /* gray-500 */
  --accent: #22d3ee;        /* cyan-400 */
  --accent-hover: #67e8f9;  /* cyan-300 */
  --border: rgba(75, 85, 99, 0.4);   /* gray-600/40 */
  --border-strong: rgba(75, 85, 99, 0.6);
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("/bg.png");
  background-attachment: fixed;
  background-size: auto;
  background-repeat: repeat;
  background-position: top left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

em { font-style: italic; }
strong { font-weight: 700; color: var(--text-strong); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 32px 72px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 56px;
  align-items: start;
  background: rgba(10, 14, 28, 0.9);
  min-height: 100vh;
}

@media (max-width: 820px) {
  .container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px;
  }
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 48px;
  text-align: center;
  padding: 28px 22px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

@media (max-width: 820px) {
  .sidebar { position: static; }
}

.sidebar img.profile {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  display: block;
  border: 2px solid var(--border-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}
.sidebar img.profile:hover {
  border-color: var(--accent);
}

.sidebar .name {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-strong);
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.sidebar .role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-style: italic;
  line-height: 1.4;
}

.sidebar .info-list {
  list-style: none;
  text-align: left;
  display: inline-block;
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 100%;
}

.sidebar .info-list li {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  line-height: 1.4;
}

.sidebar .info-list li i {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.sidebar .info-list a {
  color: var(--text);
  word-break: break-word;
}
.sidebar .info-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── MAIN CONTENT ────────────────────────────────────── */
.main-content {
  min-width: 0;
}

.main-content h1.page-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-strong);
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.main-content .lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 22px;
  font-style: italic;
}

.main-content .section {
  margin-top: 38px;
}

.main-content .section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-strong);
  letter-spacing: 0.3px;
}

.main-content .subsection-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 12px;
  color: var(--text-strong);
  letter-spacing: 0.2px;
}
.main-content .subsection-title:first-child {
  margin-top: 0;
}

.main-content p {
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text);
}

/* Keywords */
.main-content .keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.main-content .keyword {
  background: rgba(34, 211, 238, 0.10);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  font-weight: 500;
}

/* Publications */
.main-content .paper-item {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.main-content .paper-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.main-content .paper-title {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 4px;
}

.main-content .paper-title a {
  color: var(--text-strong);
  border-bottom: 1px solid var(--border-strong);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-content .paper-title a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.main-content .paper-title a::after {
  content: "\f35d"; /* fa-external-link-alt */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.72em;
  margin-left: 6px;
  color: var(--accent);
  vertical-align: 1px;
  opacity: 0.75;
}

.main-content .paper-authors {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.main-content .paper-authors strong {
  color: var(--text);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.main-content .paper-venue {
  font-size: 0.88rem;
  color: var(--accent);
  font-style: italic;
}
.main-content .paper-venue .accept-rate {
  font-style: normal;
  color: var(--text-muted);
  margin-left: 6px;
}

/* Education */
.main-content .edu-item {
  margin-bottom: 16px;
}
.main-content .edu-item:last-child { margin-bottom: 0; }

.main-content .edu-school {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-strong);
}

.main-content .edu-degree {
  font-size: 0.93rem;
  color: var(--text);
  margin: 2px 0;
}

.main-content .edu-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Plain lists (reviewer, awards, etc.) */
.main-content ul.simple-list {
  padding-left: 22px;
  margin-bottom: 16px;
}
.main-content ul.simple-list li {
  margin-bottom: 7px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text);
}
.main-content ul.simple-list li::marker {
  color: var(--text-faint);
}
