/* ============================================
   Academic Homepage Theme
   Warm minimal style inspired by Luka template
   ============================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
}

body.theme-academic,
body.theme-academic *,
body.theme-academic *::before,
body.theme-academic *::after {
  box-sizing: border-box;
}

:root {
  --bg: #faf9f7;
  --bg-raised: #ffffff;
  --text: #2f2c22;
  --text-soft: #57513f;
  --accent: #c2714f;
  --accent-soft: rgba(194, 113, 79, 0.1);
  --secondary: #8c8577;
  --border: rgba(194, 113, 79, 0.2);
  --rule: rgba(61, 57, 41, 0.1);
  --shadow: rgba(194, 113, 79, 0.15);
  --shadow-card: rgba(61, 57, 41, 0.07);
  --social-bg: #ffffff;
  --social-text: #8b7355;
  --footer-border: rgba(194, 113, 79, 0.15);
  --code-bg: #f3f0ec;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171614;
    --bg-raised: #201e1b;
    --text: #e2ded6;
    --text-soft: #b6b0a5;
    --accent: #e6957a;
    --accent-soft: rgba(230, 149, 122, 0.12);
    --secondary: #9b9488;
    --border: rgba(230, 149, 122, 0.22);
    --rule: rgba(226, 222, 214, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-card: rgba(0, 0, 0, 0.35);
    --social-bg: #24221e;
    --social-text: #e2ded6;
    --footer-border: rgba(230, 149, 122, 0.15);
    --code-bg: #232019;
  }
}

[data-theme="dark"] {
  --bg: #171614;
  --bg-raised: #201e1b;
  --text: #e2ded6;
  --text-soft: #b6b0a5;
  --accent: #e6957a;
  --accent-soft: rgba(230, 149, 122, 0.12);
  --secondary: #9b9488;
  --border: rgba(230, 149, 122, 0.22);
  --rule: rgba(226, 222, 214, 0.1);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-card: rgba(0, 0, 0, 0.35);
  --social-bg: #24221e;
  --social-text: #e2ded6;
  --footer-border: rgba(230, 149, 122, 0.15);
  --code-bg: #232019;
}

[data-theme="light"] {
  --bg: #faf9f7;
  --bg-raised: #ffffff;
  --text: #2f2c22;
  --text-soft: #57513f;
  --accent: #c2714f;
  --accent-soft: rgba(194, 113, 79, 0.1);
  --secondary: #8c8577;
  --border: rgba(194, 113, 79, 0.2);
  --rule: rgba(61, 57, 41, 0.1);
  --shadow: rgba(194, 113, 79, 0.15);
  --shadow-card: rgba(61, 57, 41, 0.07);
  --social-bg: #ffffff;
  --social-text: #8b7355;
  --footer-border: rgba(194, 113, 79, 0.15);
  --code-bg: #f3f0ec;
}

body.theme-academic {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.theme-academic a {
  color: var(--accent);
  text-decoration: none;
}

body.theme-academic a:hover {
  filter: brightness(1.15);
}

body.theme-academic ::selection {
  background: var(--accent-soft);
}

body.theme-academic :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Navigation ── */

body.theme-academic .top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--footer-border);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

body.theme-academic .nav-container {
  width: 100%;
  max-width: 1120px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.theme-academic .nav-left a {
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.theme-academic .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.theme-academic .nav-links {
  display: flex;
  gap: 4px;
  margin-right: 12px;
}

body.theme-academic .nav-links a {
  position: relative;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

body.theme-academic .nav-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  filter: none;
}

body.theme-academic .nav-links a.active {
  color: var(--accent);
  filter: none;
}

body.theme-academic .nav-links a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

body.theme-academic .theme-toggle {
  border: none;
  background: transparent;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.theme-academic .theme-toggle:hover {
  background: var(--border);
  color: var(--accent);
}

/* ── Layout ── */

body.theme-academic .wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  min-height: 100vh;
}

body.theme-academic .sidebar {
  width: 320px;
  flex-shrink: 0;
  position: fixed;
  top: 60px;
  left: calc(50% - 560px);
  height: calc(100vh - 60px);
  overflow-y: auto;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 32px;
  z-index: 100;
  scrollbar-width: thin;
}

body.theme-academic .sidebar::-webkit-scrollbar {
  width: 6px;
}

body.theme-academic .sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

body.theme-academic .profile-card {
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

body.theme-academic .image.avatar {
  display: block;
  margin: 0 auto 26px;
  position: relative;
  width: 208px;
  height: 208px;
}

body.theme-academic .image.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 28px var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.theme-academic .image.avatar::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}

body.theme-academic .image.avatar:hover img {
  transform: scale(1.02);
}

body.theme-academic .site-name {
  margin: 0 0 6px;
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

body.theme-academic .site-description {
  margin: 0 0 2px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}

body.theme-academic .site-affiliation {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 13px;
}

body.theme-academic .site-email {
  margin: 0 0 20px;
  color: var(--secondary);
  font-size: 12.5px;
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
  word-break: break-all;
}

body.theme-academic .social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.theme-academic .social-icons a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--social-bg);
  color: var(--social-text) !important;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 8px var(--shadow-card);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.theme-academic .social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
  transform: translateY(-2px);
  filter: none;
}

/* ── Content ── */

body.theme-academic .content {
  flex: 1;
  min-width: 0;
  margin-left: 320px;
  padding: 116px 40px 72px 60px;
}

body.theme-academic .section {
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.theme-academic .section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.theme-academic .section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.theme-academic .section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.theme-academic .section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

body.theme-academic .section-body p {
  margin: 0 0 14px;
}

body.theme-academic .lead {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

body.theme-academic .lead strong {
  color: var(--text);
}

body.theme-academic .section-note {
  margin-top: 4px;
  color: var(--secondary);
  font-size: 14px;
}

/* ── News ── */

body.theme-academic .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 268px;
  overflow-y: auto;
  scrollbar-width: thin;
}

body.theme-academic .news-list::-webkit-scrollbar {
  width: 6px;
}

body.theme-academic .news-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

body.theme-academic .news-list li {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14.5px;
}

body.theme-academic .news-list li:last-child {
  border-bottom: none;
}

body.theme-academic .news-date {
  flex-shrink: 0;
  width: 66px;
  color: var(--accent);
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 600;
  padding-top: 1px;
}

body.theme-academic .news-text {
  color: var(--text-soft);
}

body.theme-academic .news-text strong {
  color: var(--text);
}

/* ── Cards & Experience ── */

body.theme-academic .card {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

body.theme-academic .timeline {
  position: relative;
  margin-left: 26px;
  padding-left: 26px;
  border-left: 1px solid var(--border);
}

body.theme-academic .timeline-item {
  position: relative;
  padding-bottom: 22px;
}

body.theme-academic .timeline-item:last-child {
  padding-bottom: 0;
}

body.theme-academic .timeline-item::after {
  content: "";
  position: absolute;
  left: -31px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

body.theme-academic .experience-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

body.theme-academic .institution-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  padding: 2px;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
}

body.theme-academic .experience-content {
  flex: 1;
  min-width: 0;
}

body.theme-academic .experience-content p {
  margin: 0 0 2px;
}

body.theme-academic .exp-title {
  font-size: 15.5px;
  color: var(--text);
}

body.theme-academic .exp-detail {
  font-size: 14px;
  color: var(--text-soft);
}

body.theme-academic .exp-period {
  font-size: 12.5px;
  color: var(--accent);
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
  font-weight: 600;
}

/* ── Publications ── */

body.theme-academic .publications ol.bibliography {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pub;
}

body.theme-academic .publications ol.bibliography li {
  position: relative;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--bg-raised);
  box-shadow: 0 1px 3px var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.theme-academic .publications ol.bibliography li:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  border-left-color: var(--accent);
  box-shadow: 0 6px 20px var(--shadow-card);
}

body.theme-academic .pub-venue {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.theme-academic .pub-content .title {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}

body.theme-academic .pub-content .author {
  margin-bottom: 4px;
  color: var(--secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

body.theme-academic .pub-content .author strong {
  color: var(--text);
}

body.theme-academic .pub-content .periodical {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 13.5px;
}

body.theme-academic .pub-content .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.theme-academic .pub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent) !important;
  font-size: 12.5px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.18s ease, color 0.18s ease;
}

body.theme-academic .pub-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
  filter: none;
}

body.theme-academic .pub-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--secondary);
  font-size: 12.5px;
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
}

body.theme-academic .pub-coauthor-note {
  margin-top: 6px;
  color: var(--secondary);
  font-size: 12.5px;
}

/* ── Talks ── */

body.theme-academic .talk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.theme-academic .talk-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

body.theme-academic .talk-list li:last-child {
  border-bottom: none;
}

body.theme-academic .talk-date {
  flex-shrink: 0;
  width: 66px;
  color: var(--accent);
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 600;
  padding-top: 2px;
}

body.theme-academic .talk-title {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
}

body.theme-academic .talk-host {
  color: var(--secondary);
  font-size: 13.5px;
}

/* ── Teaching ── */

body.theme-academic .teaching-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.theme-academic .teaching-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}

body.theme-academic .teaching-list li:last-child {
  border-bottom: none;
}

body.theme-academic .teaching-course {
  color: var(--text);
  font-weight: 500;
}

body.theme-academic .teaching-course a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.theme-academic .teaching-course a:hover {
  color: var(--accent);
  border-color: var(--accent);
  filter: none;
}

body.theme-academic .teaching-role {
  color: var(--secondary);
  font-size: 13.5px;
}

body.theme-academic .teaching-period {
  flex-shrink: 0;
  width: 132px;
  color: var(--accent);
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 600;
  padding-top: 2px;
}

/* ── Awards ── */

body.theme-academic .awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

body.theme-academic .award-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-raised);
  transition: border-color 0.2s ease;
}

body.theme-academic .award-item:hover {
  border-color: var(--border);
}

body.theme-academic .award-icon {
  flex-shrink: 0;
  font-size: 17px;
  color: var(--accent);
}

body.theme-academic .award-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

body.theme-academic .award-year {
  color: var(--secondary);
  font-size: 12.5px;
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
}

/* ── Footer ── */

body.theme-academic .site-footer {
  width: 100%;
  flex-basis: 100%;
  padding: 28px 24px 40px 380px;
  text-align: center;
}

body.theme-academic .site-footer p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--footer-border);
  color: var(--secondary);
  font-size: 13px;
}

body.theme-academic .template-credit {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
}

body.theme-academic h1,
body.theme-academic h2,
body.theme-academic h3,
body.theme-academic h4,
body.theme-academic strong {
  color: var(--text);
}

/* ── Back to top ── */

body.theme-academic .back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--accent);
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 4px 16px var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 900;
}

body.theme-academic .back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.theme-academic .back-to-top:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Blog ── */

body.theme-academic .page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 116px 24px 72px;
}

body.theme-academic .page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

body.theme-academic .page-title {
  margin: 0 0 8px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.theme-academic .page-subtitle {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

body.theme-academic .post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-academic .post-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

body.theme-academic .post-list li:last-child {
  border-bottom: none;
}

body.theme-academic .post-date {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
  font-size: 12.5px;
  font-weight: 600;
}

body.theme-academic .post-title {
  display: inline-block;
  color: var(--text) !important;
  font-family: "Newsreader", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

body.theme-academic a.post-title:hover {
  color: var(--accent) !important;
  filter: none;
}

/* Draft: title shown, not yet linked */
body.theme-academic .post-title.is-draft {
  color: var(--secondary) !important;
  cursor: default;
}

body.theme-academic .post-tag-draft {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--secondary);
  font-weight: 500;
}

body.theme-academic .post-excerpt {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

body.theme-academic .post-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.theme-academic .post-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

body.theme-academic .post-empty {
  padding: 32px 0;
  color: var(--secondary);
  font-size: 15px;
}

/* Blog article body */

body.theme-academic .prose {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

body.theme-academic .prose h2 {
  margin: 36px 0 12px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.theme-academic .prose h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

body.theme-academic .prose p {
  margin: 0 0 18px;
}

body.theme-academic .prose ul,
body.theme-academic .prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

body.theme-academic .prose li {
  margin-bottom: 7px;
}

body.theme-academic .prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--code-bg);
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
  font-size: 0.92em;
}

body.theme-academic .prose pre {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--code-bg);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}

body.theme-academic .prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

body.theme-academic .prose blockquote {
  margin: 0 0 18px;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--secondary);
  font-style: italic;
}

body.theme-academic .prose img {
  max-width: 100%;
  border-radius: 10px;
}

body.theme-academic .back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 500;
}

/* ── Responsive ── */

@media (max-width: 1080px) {
  body.theme-academic .nav-container {
    padding: 0 20px;
  }

  body.theme-academic .nav-links {
    display: none;
  }

  body.theme-academic .wrapper {
    flex-direction: column;
    padding: 0 20px;
  }

  body.theme-academic .sidebar {
    position: static;
    left: auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    height: auto;
    padding-top: 92px;
    padding-bottom: 0;
    overflow: visible;
  }

  body.theme-academic .profile-card {
    padding: 0;
  }

  body.theme-academic .content {
    margin-left: 0;
    padding: 36px 0 48px;
  }

  body.theme-academic .news-list {
    max-height: none;
  }

  body.theme-academic .site-footer {
    padding: 32px 0;
  }

  body.theme-academic .site-footer p {
    padding-top: 0;
    border-top: none;
  }

  body.theme-academic .page {
    padding-top: 92px;
  }
}

@media (max-width: 640px) {
  body.theme-academic .image.avatar {
    width: 152px;
    height: 152px;
    margin-bottom: 22px;
  }

  body.theme-academic .site-name {
    font-size: 26px;
  }

  body.theme-academic .section-title {
    font-size: 21px;
  }

  body.theme-academic .page-title {
    font-size: 29px;
  }

  body.theme-academic .experience-item {
    gap: 12px;
  }

  body.theme-academic .institution-logo {
    width: 42px;
    height: 42px;
  }

  body.theme-academic .timeline {
    margin-left: 8px;
    padding-left: 20px;
  }

  body.theme-academic .timeline-item::after {
    left: -25px;
  }

  body.theme-academic .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  body.theme-academic .section {
    margin-bottom: 38px;
  }

  body.theme-academic .news-list li,
  body.theme-academic .talk-list li,
  body.theme-academic .teaching-list li {
    flex-direction: column;
    gap: 2px;
  }

  body.theme-academic .news-date,
  body.theme-academic .talk-date,
  body.theme-academic .teaching-period {
    width: auto;
  }

  body.theme-academic .exp-detail,
  body.theme-academic .award-text,
  body.theme-academic .pub-content .author,
  body.theme-academic .pub-content .periodical {
    font-size: 13px;
  }

  body.theme-academic .prose,
  body.theme-academic .lead {
    font-size: 16px;
  }
}
