:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5b5b5b;
  --border: #e6e6e6;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --radius: 14px;
  --max: 1040px;
}

html[data-theme="stanford"] {
  --accent: #8b1f1f;
  --accent-weak: rgba(139,31,31,0.10);
  --font-head: ui-serif, Georgia, serif;
  --font-body: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  color: var(--text);
}

.nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav a.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.hero {
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 42px;
  margin: 0 0 10px;
}

.lead {
  font-size: 20px;   /* ← 이 숫자 조정 가능 */
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.4;
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;          /* ✅ 버튼 글씨 크기 복구 */
  line-height: 1.1;         /* ✅ 버튼 높이 안정 */
  display: inline-flex;     /* ✅ 텍스트 수직 정렬 */
  align-items: center;
  gap: 6px;
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.section { padding: 30px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

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

.contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin-top: 30px;
}

/* Publications */

.pub-year {
  font-size: 28px;
  font-family: var(--font-head);
  margin-top: 25px;
}

.pub-list {
  list-style: none !important;   /* 🔥 점 완전 제거 */
  padding: 0;
  margin: 0;
}

.pub-list li {
  display: flex;
  align-items: flex-start;
  margin: 18px 0;
}

/* 왼쪽 번호 영역 */
.pub-left {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 오른쪽 텍스트 영역 */
.pub-content {
  flex: 1;
  line-height: 1.8;
}

/* 번호 */
.pub-no {
  font-weight: 800;
}

/* J / C 원형 */
.pub-type {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: var(--accent-weak);
  color: var(--accent);
}

/* INT / DOM */
.pub-region {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.pub-int {
  background: rgba(0,80,200,0.1);
  color: #1a4fb5;
}

.pub-dom {
  background: rgba(0,130,60,0.1);
  color: #137a3a;
}

.pub-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
}

/* ==============================
   MEMBERS LIST PAGE
============================== */

.member-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-list li {
  margin: 14px 0;
}

.member-list a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.member-list a:hover {
  color: var(--accent);
}

.back-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
}

.member-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}


/* ==============================
   PROFESSOR DETAIL PAGE
============================== */

.professor-card {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* 사진 크기 제한 */
.professor-card img {
  width: 260px;          /* ← 원하는 크기 */
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;        /* 줄어들지 않게 */
}

/* 오른쪽 텍스트 영역 */
.prof-info {
  flex: 1;
}

.prof-info h3 {
  font-size: 42px;
  margin-top: 0;
}

/* ==============================
   MEMBER CARD (Vertical List)
============================== */

.member-card-vertical {
  display: flex;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card-vertical:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.08);
}

.member-card-vertical img {
  width: 150px;
  border-radius: 8px;
  flex-shrink: 0;
}

.member-card-vertical h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
}

.member-card-vertical p {
  margin: 4px 0;
}

.member-email {
  color: var(--muted);
  font-size: 15px;
}

/* ==============================
   NEWS SECTION
============================== */

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin: 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.news-date {
  font-weight: 700;
  color: var(--accent);
  margin-right: 10px;
}

.news-title {
  font-weight: 500;
}

.btn-small {
  display: inline-block;
  font-size: 12px;          /* ← 뉴스 텍스트 정도 */
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  background: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-small:hover {
  background: var(--accent-weak);
  transform: translateY(-2px);
}
