/* Rico – generated style */
:root {
  --primary: #0a66c2;
  --primary-dark: #004182;
  --bg-main: #ffffff;
  --text-main: #333333;
  --text-heading: #111111;
  --text-muted: #666666;
  --border-color: #eeeeee;
  --placeholder-bg: #e8e8e8;
  --footer-bg: #1a1a1a;
  --footer-text: #818181;
  --btn-hover-text: #ffffff;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow-color: rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

html {
  background-color: var(--bg-main);
}

@media (max-width: 768px) {
  :root { font-size: 18px; }
}

/* Dark mode adjustment for shadow */
[data-theme^="theme-dark"] { --shadow-color: rgba(0, 0, 0, 0.4); }

body {
  /* 한글은 어절 단위로, 공백 없는 긴 문자열은 강제로 줄바꿈한다 */
  overflow-wrap: anywhere;
  word-break: keep-all;
  font-family: var(--font-stack);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
}
b { font-weight: 600; }

/* ── Navbar ── */
.navbar {
  background: var(--bg-main) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px var(--shadow-color);
}
.navbar-brand { min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar-brand {
  color: var(--text-heading) !important;
  font-weight: 600;
}

/* ── Layout ── */
.main-content { padding: 2.5rem 0; }
.container { max-width: 1000px; }

/* ── Profile ── */
.profile { text-align: center; padding: 1rem 0.5rem; }
.profile img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--bg-main);
  box-shadow: 0 2px 8px var(--shadow-color);
}
.avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 4rem;
  color: var(--text-muted);
  border: 4px solid var(--bg-main);
  box-shadow: 0 2px 8px var(--shadow-color);
}
.profile h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-heading);
}
.profile .affiliation {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.social { margin-top: 0.75rem; display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.social a {
  color: var(--primary);
  font-size: 1.2rem;
  transition: color .2s;
}
.social a:hover { color: var(--primary-dark); }

/* ── Bio ── */
.bio-section { margin-bottom: 2rem; }
.bio-section h2, .news-section h2,
.publications-section h2, .projects-section h2, .custom-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}
.bio-section p { font-size: 0.95rem; line-height: 1.75; margin-bottom: 0.75rem; padding: 0 0.5rem; }

/* ── News ── */
.news-section { margin-top: 2rem; }
.news-table { width: 100%; font-size: 0.9rem; }
.news-table tr { border-bottom: 1px solid var(--border-color); }
.news-table tr:last-child { border-bottom: none; }
.news-date { width: 6.5rem; color: var(--text-muted); font-weight: 600; padding: 0.45rem 1rem 0.45rem 0.5rem; vertical-align: top; }
.news-table td { padding: 0.45rem 0.5rem 0.45rem 0; line-height: 1.55; }

/* ── Publications ── */
.publications-section { margin-top: 2.5rem; }
.pub-entry {
  display: flex;
  gap: 1.25rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.pub-entry:last-child { border-bottom: none; }
.pub-info { flex: 1; min-width: 0; }
.pub-title { font-weight: 600; font-size: 1rem; line-height: 1.4; margin-bottom: 0.3rem; color: var(--text-heading); }
.pub-authors { font-size: 0.9rem; margin-bottom: 0.2rem; }
.pub-venue { font-size: 0.88rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.4rem; }
.pub-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pub-links a {
  font-size: 0.88rem;
  padding: 0.1rem 0.75rem;
  border: 1px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  text-decoration: none;
  transition: all .2s;
}
.pub-links a:hover { background: var(--primary); color: var(--btn-hover-text); }

/* ── Projects ── */
.projects-section { margin-top: 2.5rem; }
.project-entry {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.project-entry:last-child { border-bottom: none; }
.project-header { margin-bottom: 0.5rem; }
.project-title { font-weight: 600; font-size: 1rem; color: var(--text-heading); margin-bottom: 0.1rem; }
.project-meta { font-size: 0.9rem; color: var(--text-muted); }

/* ── Custom sections ── */
.custom-section { margin-top: 2.5rem; }
.custom-item {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.custom-item:last-child { border-bottom: none; }
.custom-item-header { margin-bottom: 0.4rem; }
.custom-item-title { font-weight: 600; font-size: 1rem; color: var(--text-heading); margin-bottom: 0.1rem; }
.custom-item-detail { font-size: 0.9rem; color: var(--text-muted); }
.custom-item-body { font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 4rem;
  font-size: 0.85rem;
}
.site-footer a { color: var(--footer-text); text-decoration: none; }

/* ── Added sections (education / experience / skills / awards) ── */
.item-list { margin: 0.3rem 0 0; padding-left: 1.2rem; font-size: 0.92rem; line-height: 1.6; }
