/* Personal styling layered over the original Luka Homepage template. */
:root, [data-theme="light"] { --luka-secondary: #736b60; --luka-accent: #a85435; }
[data-theme="dark"] { --luka-secondary: #b0a99d; --luka-accent: #e69a7b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --luka-secondary: #b0a99d; --luka-accent: #e69a7b; }
}
body.theme-luka { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.65; }
body.theme-luka a { text-underline-offset: 3px; }
body.theme-luka a:hover { text-decoration: underline; filter: none; }
body.theme-luka a:focus-visible, body.theme-luka button:focus-visible { outline: 2px solid var(--luka-accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 2000; padding: 8px 16px; background: var(--luka-bg); }
.skip-link:focus { top: 8px; }
body.theme-luka .nav-left { display: flex; align-items: center; gap: 28px; }
body.theme-luka .nav-left a { font-size: 15px; font-weight: 500; }
body.theme-luka .nav-left .home-link { font-size: 18px; font-weight: 650; margin-right: 12px; }
.home-dot { color: var(--luka-accent); }
body.theme-luka .theme-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .moon-icon { display: none; } :root:not([data-theme="light"]) .sun-icon { display: block; } }
body.theme-luka .sidebar { padding-top: 56px; }
body.theme-luka .image.avatar { margin-bottom: 24px; }
body.theme-luka .image.avatar img { width: 188px; height: 188px; display: block; margin: auto; border: 5px solid var(--luka-social-bg); }
body.theme-luka .site-name { font-size: 28px; font-weight: 650; letter-spacing: -.6px; }
.chinese-name { display: block; margin-top: 10px; font-size: 19px; font-weight: 450; letter-spacing: 4px; }
.profile-role { margin: 22px 0 3px; font-size: 14px; line-height: 1.6; color: var(--luka-secondary); }
.profile-affiliation { margin: 0; font-size: 15px; font-weight: 600; }
.visiting-role { margin-top: 14px; }
body.theme-luka .site-email { display: inline-block; margin: 22px 0 18px; color: var(--luka-accent); font-family: inherit; font-size: 13px; }
body.theme-luka .social-icons { gap: 11px; }
.social-icons svg { width: 18px; height: 18px; }
body.theme-luka .social-icons a { width: 36px; height: 36px; }
.profile-note { margin: 26px auto 0; padding-top: 20px; max-width: 225px; border-top: 1px solid var(--luka-border); color: var(--luka-secondary); font-size: 12px; line-height: 1.9; letter-spacing: .15px; }
body.theme-luka .content { padding-top: 110px; padding-bottom: 0; }
body.theme-luka .section { opacity: 1; transform: none; scroll-margin-top: 90px; margin-bottom: 42px; }
body.theme-luka .section-title { font-size: 19px; margin-bottom: 17px; padding-bottom: 7px; }
.research-interests { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.research-interests span { padding: 3px 10px; font-size: 13px; line-height: 1.7; border: 1px solid var(--luka-border); border-radius: 5px; color: var(--luka-accent); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 16px; margin-bottom: 11px; font-size: 15px; line-height: 1.75; }
.news-list time { color: var(--luka-secondary); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.section-caption { margin: -7px 0 13px; color: var(--luka-secondary); font-size: 13px; }
body.theme-luka .publications ol.bibliography li { padding: 3px 0 3px 18px; }
.publication-label { margin: 0 0 8px; font-weight: 650; font-size: 14px; color: var(--luka-accent); }
.publication-label span { font-size: 13px; font-weight: 400; }
body.theme-luka .pub-content .title { margin: 0 0 9px; font-size: 16px; font-weight: 650; line-height: 1.6; }
body.theme-luka .pub-content .author { margin: 0 0 6px; font-size: 14px; }
body.theme-luka .pub-content .periodical { margin: 0; color: var(--luka-secondary); font-size: 14px; }
body.theme-luka .institution-logo { display: block; width: 64px; height: 64px; flex-shrink: 0; object-fit: contain; background: #fff; padding: 5px; border-radius: 8px; }
body.theme-luka .exp-title { font-size: 16px; margin: 0 0 3px; line-height: 1.6; font-weight: 650; }
body.theme-luka .exp-detail { font-size: 14px; line-height: 1.75; }
body.theme-luka .exp-role { margin: 6px 0 3px; font-size: 14px; font-weight: 500; }
body.theme-luka .exp-period { margin: 7px 0 8px; font-size: 13px; }
body.theme-luka .exp-summary { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: var(--luka-secondary); }
body.theme-luka .timeline-item { padding-bottom: 27px; }
body.theme-luka .timeline-item:last-child { padding-bottom: 0; }
.institution-chinese { font-size: 14px; font-weight: 400; margin-left: 6px; color: var(--luka-secondary); }
.research-project { padding: 0 0 24px; margin-bottom: 22px; border-bottom: 1px solid var(--luka-border); }
.research-project:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.project-index { color: var(--luka-accent); font-size: 13px; font-weight: 600; }
.project-status { font-size: 13px; color: var(--luka-secondary); }
.project-status.under-review { color: var(--luka-accent); }
.research-project h3 { font-size: 16px; line-height: 1.65; margin: 0 0 8px; font-weight: 650; }
.research-project p { font-size: 15px; margin: 0 0 8px; line-height: 1.8; }
.research-project .project-contribution { color: var(--luka-secondary); font-size: 14px; }
body.theme-luka .site-footer { padding-top: 0; padding-right: 40px; }
body.theme-luka .site-footer p { font-size: 13px; }
body.theme-luka .template-credit { font-size: 12px; }
@media (min-width: 1081px) and (max-width: 1120px) { body.theme-luka .sidebar { left: 0; } }
@media (max-width: 1080px) {
  body.theme-luka .wrapper { max-width: 760px; padding: 0 32px; }
  body.theme-luka .sidebar { padding-top: 100px; }
  body.theme-luka .content { width: 100%; padding-top: 38px; }
  .profile-note { display: none; }
  body.theme-luka .site-footer { padding: 0 0 30px; }
  body.theme-luka .site-footer p { border-top: 1px solid var(--luka-footer-border); padding-top: 20px; }
}
@media (max-width: 640px) {
  body.theme-luka .nav-container { padding: 0 18px; }
  body.theme-luka .nav-left { gap: 14px; }
  body.theme-luka .nav-left a { font-size: 13px; }
  body.theme-luka .nav-left .home-link { font-size: 16px; margin-right: 0; }
  body.theme-luka .wrapper { padding: 0 23px; }
  body.theme-luka .sidebar { padding-top: 91px; }
  body.theme-luka .image.avatar img { width: 158px; height: 158px; }
  body.theme-luka .site-name { font-size: 26px; }
  .chinese-name { display: inline-block; margin: 0 0 0 9px; font-size: 17px; letter-spacing: 2px; vertical-align: 2px; }
  body.theme-luka .content { padding-top: 36px; }
  body.theme-luka .section { margin-bottom: 35px; }
  body.theme-luka .section-body > p { font-size: 16px; }
  .news-list li { grid-template-columns: 78px minmax(0,1fr); gap: 11px; font-size: 15px; }
  .news-list time { font-size: 13px; }
  .research-interests span { font-size: 12px; }
  body.theme-luka .institution-logo { width: 48px; height: 48px; padding: 3px; }
  body.theme-luka .experience-item { gap: 11px; }
  body.theme-luka .timeline-item { margin-left: 10px; padding-left: 7px; }
  body.theme-luka .timeline-item::before { left: -10px; }
  body.theme-luka .timeline-item::after { left: -15px; }
  .desktop-break { display: none; }
  body.theme-luka .pub-content .title { font-size: 16px; }
}
@media (max-width: 360px) {
  body.theme-luka .nav-left { gap: 8px; }
  body.theme-luka .nav-left a { font-size: 12px; }
  body.theme-luka .nav-left .home-link { font-size: 16px; }
  body.theme-luka .nav-container { padding: 0 12px; }
  body.theme-luka .wrapper { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body.theme-luka .top-nav, .social-icons, .skip-link { display: none; }
  body.theme-luka .sidebar { position: static; width: 100%; height: auto; padding-top: 0; }
  body.theme-luka .image.avatar img { width: 100px; height: 100px; }
  body.theme-luka .profile-note { display: none; }
  body.theme-luka .content { margin-left: 0; padding: 25px 0 0; }
  body.theme-luka .site-footer { padding: 0; }
  .section, .research-project, .timeline-item { break-inside: avoid; }
}
