/* =========================================================
   Yoon Lab website styles
   Cleaned single-file stylesheet
   ========================================================= */

:root {
  --navy-950: #071423;
  --navy-900: #0b1f33;
  --navy-800: #102a43;
  --slate-700: #2f3a45;
  --slate-500: #65717d;
  --gold-600: #c99a2e;
  --gold-500: #d6a21e;
  --gold-100: #f7ecd0;
  --cream-50: #faf8f2;
  --gray-50: #f7f8fa;
  --white: #ffffff;
  --border: #e7e1d3;
  --shadow: 0 18px 50px rgba(7, 20, 35, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1120px;
}

* ,
*::before,
*::after { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--navy-950);
  background: var(--cream-50);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-600); }
img, svg, video, canvas, iframe { max-width: 100%; }
img { display: block; }

/* =========================================================
   Header and navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 20, 35, 0.92);
  color: var(--white);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(214, 162, 30, 0.24);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 162, 30, 0.55);
  border-radius: 50%;
  color: var(--gold-500);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: radial-gradient(circle at 30% 20%, rgba(214,162,30,.25), transparent 50%);
}

.brand-text {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  color: var(--gold-500);
  letter-spacing: 0.12em;
  font-size: 0.98rem;
}

.brand-text small {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
}

.site-nav a {
  color: rgba(255,255,255,0.78);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold-500);
  transition: transform .2s ease;
}

.site-nav a:hover,
.site-nav a.active { color: var(--white); }
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

/* =========================================================
   Layout primitives and typography
   ========================================================= */

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section.alt { background: var(--gray-50); }

.section-title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--navy-900);
  letter-spacing: -0.005em;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gold-600);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: .76rem;
}

.section-kicker::before { content: ""; width: 38px; height: 1px; background: var(--gold-600); }
.section-lead { max-width: 780px; color: var(--slate-500); font-size: 1.06rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.split { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: start; }

.theme-card,
.highlight-card,
.news-card,
.member-card,
.contact-card,
.paper-card,
.join-card,
.join-steps-card,
.gallery-card,
.news-category-card,
.news-timeline-item,
.person-card-v2,
.alumni-block,
.research-publication-block,
.publication-entry,
.publication-theme-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(7,20,35,.07);
}

/* =========================================================
   Home: hero, about, themes, highlights, updates, callout
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(47,128,237,.22), transparent 28%),
    radial-gradient(circle at 88% 62%, rgba(214,162,30,.17), transparent 32%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  min-height: 720px;
  display: grid;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.hero::after {
  content: "Z(ω)   Rct   Cdl   ΔE   e⁻   Li⁺";
  position: absolute;
  right: -40px;
  top: 17%;
  color: rgba(255,255,255,.08);
  font-size: clamp(2.8rem, 8vw, 8rem);
  font-weight: 800;
  letter-spacing: .08em;
  transform: rotate(-8deg);
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 92px 24px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.hero p {
  margin: 28px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 760px;
}

.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-2px); color: inherit; }
.btn.primary { background: var(--gold-500); color: var(--navy-950); }
.btn.secondary { border-color: rgba(214,162,30,.55); color: var(--white); background: rgba(255,255,255,.05); }

.signal-card {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(214,162,30,.25);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  box-shadow: 0 35px 90px rgba(0,0,0,.25);
  overflow: hidden;
}

.signal-card svg { width: 100%; height: 100%; min-height: 360px; }

.about-panel {
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-panel p { color: var(--slate-700); font-size: 1.08rem; margin: 0; }

.theme-card { padding: 28px; display: grid; grid-template-columns: 58px 1fr; gap: 18px; }
.theme-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); }
.theme-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.theme-card h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; color: var(--navy-900); font-size: 1.35rem; line-height: 1.2; }
.theme-card p { margin: 0; color: var(--slate-500); }

.highlight-list { display: grid; gap: 14px; }
.highlight-card { display: grid; grid-template-columns: 96px 1fr; overflow: hidden; }
.highlight-year { display: grid; place-items: center; background: var(--navy-900); color: var(--gold-500); font-size: 1.35rem; font-weight: 900; }
.highlight-body { padding: 22px 24px; }
.highlight-body small { display: inline-block; color: var(--gold-600); font-weight: 800; margin-bottom: 5px; }
.highlight-body h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy-900); }
.highlight-body p { margin: 0; color: var(--slate-500); }

.news-card { padding: 24px; margin-bottom: 16px; }
.news-card .category { color: var(--gold-600); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { margin: 6px 0; color: var(--navy-900); line-height: 1.25; }
.news-card p { margin: 0 0 10px; color: var(--slate-500); }
.news-card time { color: var(--slate-500); font-size: .9rem; }

.callout {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.callout h2 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.callout p { margin: 0; color: rgba(255,255,255,.78); }

/* =========================================================
   Common inner pages
   ========================================================= */

.page-hero {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 92px 0 72px;
}

.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.page-hero p { max-width: 760px; color: rgba(255,255,255,.78); font-size: 1.1rem; }

.paper-list { display: grid; gap: 16px; }
.paper-card { padding: 24px; }
.paper-meta { color: var(--gold-600); font-weight: 800; font-size: .92rem; margin-bottom: 7px; }
.paper-card h3 { margin: 0 0 6px; color: var(--navy-900); font-size: 1.12rem; }
.paper-card p { margin: 0; color: var(--slate-500); }

.member-group { margin-bottom: 44px; }
.member-group h2 { color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.member-card { padding: 22px; }
.member-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; background: var(--gold-100); }
.member-card h3 { margin: 0 0 4px; color: var(--navy-900); }
.member-card .role { color: var(--gold-600); font-weight: 800; margin: 0 0 10px; }
.member-card p { margin: 0; color: var(--slate-500); }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { padding: 28px; }
.contact-card h3 { margin-top: 0; color: var(--navy-900); }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: #071624;
  color: rgba(255, 255, 255, 0.74);
  padding: 3.6rem 0 1.7rem;
  border-top: 1px solid rgba(214, 162, 30, 0.28);
}

.site-footer .footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1fr;
  gap: 4rem;
  align-items: start;
}

.site-footer .footer-identity h2 {
  margin: 0 0 1.05rem;
  color: var(--gold-500);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer .footer-lab-name { margin: 0 0 0.55rem; color: rgba(255,255,255,0.86); font-size: 0.98rem; line-height: 1.55; font-weight: 500; }
.site-footer .footer-tagline { margin: 0; max-width: 360px; color: rgba(255,255,255,0.62); font-size: 0.94rem; line-height: 1.62; }
.site-footer .footer-contact h3,
.site-footer .footer-keywords h3 { margin: 0 0 0.95rem; color: var(--white); font-size: 1.02rem; line-height: 1.2; font-weight: 750; }
.site-footer .footer-contact p { margin: 0 0 0.72rem; color: rgba(255,255,255,0.72); font-size: 0.94rem; line-height: 1.62; }
.site-footer .footer-contact a { color: var(--white); border-bottom: 1px solid rgba(214, 162, 30, 0.45); }
.site-footer .footer-contact a:hover { color: var(--gold-500); }

.site-footer .keyword-list { display: flex; flex-wrap: wrap; gap: 0.55rem 0.6rem; max-width: 430px; }
.site-footer .keyword-list span { display: inline-flex; align-items: center; padding: 0.42rem 0.68rem; border: 1px solid rgba(214, 162, 30, 0.28); border-radius: 999px; color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.035); font-size: 0.84rem; line-height: 1.2; font-weight: 500; }
.site-footer .footer-bottom { max-width: var(--container); margin: 3rem auto 0; padding: 1.25rem 24px 0; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.48); font-size: 0.84rem; }

/* =========================================================
   Publications
   ========================================================= */

.publication-theme-list { display: grid; gap: 34px; margin-top: 34px; }
.publication-theme-block { padding: 32px; border-radius: var(--radius-lg); }
.publication-theme-head { display: grid; gap: 8px; margin-bottom: 22px; }
.publication-theme-head h3 { margin: 0; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.18; }
.publication-theme-head p { margin: 0; max-width: 860px; color: var(--slate-500); }
.theme-publication-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.featured-paper-card { padding: 22px; border: 1px solid rgba(231, 225, 211, 0.9); border-radius: var(--radius-md); background: linear-gradient(180deg, #ffffff, rgba(250, 248, 242, 0.72)); }
.featured-paper-card .paper-meta,
.paper-meta { color: var(--gold-600); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.featured-paper-card h4 { margin: 8px 0; color: var(--navy-900); font-size: 1.05rem; line-height: 1.35; }
.paper-highlight { margin: 0 0 9px; color: var(--slate-700); font-size: 0.95rem; }
.paper-authors { margin: 0; color: var(--slate-500); font-size: 0.88rem; }
.full-publication-list { display: grid; gap: 42px; margin-top: 34px; }
.publication-year-group h3 { margin: 0 0 16px; color: var(--gold-600); font-size: 1.2rem; letter-spacing: 0.08em; }
.publication-entry-list { display: grid; gap: 12px; }
.publication-entry { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 20px 22px; box-shadow: 0 8px 22px rgba(7, 20, 35, 0.055); }
.publication-entry-number { color: var(--gold-600); font-weight: 900; font-size: 0.95rem; }
.publication-entry h4 { margin: 0 0 6px; color: var(--navy-900); font-size: 1rem; line-height: 1.36; }
.publication-authors,
.publication-journal { margin: 0 0 6px; color: var(--slate-500); font-size: 0.92rem; line-height: 1.5; }
.publication-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.publication-tags span { display: inline-flex; padding: 0.24rem 0.52rem; border-radius: 999px; border: 1px solid rgba(201, 154, 46, 0.26); color: var(--gold-600); background: rgba(247, 236, 208, 0.35); font-size: 0.74rem; font-weight: 800; }

.research-publication-list { display: grid; gap: 24px; margin-top: 34px; }
.research-publication-block { padding: 28px; border-radius: var(--radius-lg); }
.research-publication-head { margin-bottom: 18px; }
.research-publication-head h3 { margin: 0 0 6px; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.research-publication-head p { margin: 0; color: var(--slate-500); }
.research-paper-list { display: grid; gap: 10px; }
.research-paper-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-top: 12px; border-top: 1px solid rgba(231, 225, 211, 0.86); }
.research-paper-item span { color: var(--gold-600); font-weight: 900; }
.research-paper-item h4 { margin: 0 0 2px; color: var(--navy-900); font-size: 0.98rem; line-height: 1.35; }
.research-paper-item p { margin: 0; color: var(--slate-500); font-size: 0.9rem; }

.compact-page-hero { padding: 78px 0 60px; }
.publication-list-section { padding-top: 72px; }
.publication-list-head { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 30px; }
.publication-list-head p { max-width: 520px; margin: 0 0 0.25rem; color: var(--slate-500); font-size: 0.98rem; line-height: 1.6; }
.slim-publication-list { gap: 38px; margin-top: 0; }
.slim-publication-entry { grid-template-columns: 60px 1fr; padding: 16px 18px; box-shadow: none; border-radius: 14px; }
.slim-publication-entry .publication-entry-number { font-size: 0.85rem; }
.slim-publication-entry h4 { font-size: 0.98rem; margin-bottom: 4px; }
.slim-publication-entry .publication-authors,
.slim-publication-entry .publication-journal { font-size: 0.88rem; line-height: 1.45; margin-bottom: 4px; }
.slim-publication-entry .publication-tags { display: none; }

/* =========================================================
   Gallery
   ========================================================= */

.gallery-intro { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.4rem; align-items: end; margin-bottom: 2.4rem; }
.gallery-intro .section-title { margin-bottom: 0; }
.gallery-intro code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.9em; color: var(--navy-900); background: rgba(214, 162, 30, 0.12); padding: 0.08rem 0.28rem; border-radius: 6px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.gallery-card { overflow: hidden; }
.gallery-image,
.gallery-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 75% 30%, rgba(214, 162, 30, 0.22), transparent 34%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: rgba(255,255,255,0.78); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.86rem; }
.gallery-card-body { padding: 1.35rem 1.45rem 1.55rem; }
.gallery-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.55rem; color: var(--gold-600); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.gallery-meta time { color: var(--slate-500); font-weight: 650; letter-spacing: 0.02em; }
.gallery-card h3 { margin: 0 0 0.45rem; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.22; }
.gallery-card p { margin: 0; color: var(--slate-500); line-height: 1.62; }

/* =========================================================
   People
   ========================================================= */

.people-section-head { margin-bottom: 28px; }
.pi-profile-card { display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding: 34px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pi-photo-block { display: flex; justify-content: center; align-items: flex-start; }
.pi-photo,
.pi-photo-placeholder { width: 180px; height: 180px; border-radius: 28px; object-fit: cover; }
.pi-photo-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(214, 162, 30, 0.28), transparent 45%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: var(--gold-500); font-size: 3rem; font-weight: 900; letter-spacing: 0.08em; }
.pi-profile-main h3 { margin: 0 0 4px; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.12; }
.pi-title { margin: 0 0 8px; color: var(--gold-600); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; }
.pi-affiliation { margin: 0 0 12px; color: var(--slate-500); }
.people-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.people-tag-list span { display: inline-flex; padding: 0.42rem 0.72rem; border-radius: 999px; border: 1px solid rgba(201, 154, 46, 0.25); color: var(--gold-600); background: rgba(247, 236, 208, 0.42); font-size: 0.8rem; font-weight: 800; }
.pi-profile-details { grid-column: 1 / -1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; padding-top: 26px; border-top: 1px solid var(--border); }
.pi-profile-details h4,
.member-group-block h3,
.alumni-block h3 { margin: 0 0 12px; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.compact-list { margin: 0; padding-left: 1.1rem; color: var(--slate-500); }
.compact-list li { margin-bottom: 0.7rem; }
.compact-list span { color: var(--slate-500); }
.text-link { color: var(--navy-900); border-bottom: 1px solid rgba(201, 154, 46, 0.55); }
.text-link:hover { color: var(--gold-600); }
.member-group-block { margin-top: 36px; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.compact-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.person-card-v2 { display: grid; grid-template-columns: 82px 1fr; gap: 18px; align-items: start; padding: 22px; }
.person-photo-v2,
.person-photo-placeholder { width: 82px; height: 82px; border-radius: 22px; object-fit: cover; }
.person-photo-placeholder { display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); font-size: 1.9rem; font-weight: 900; }
.person-role { margin: 0 0 4px; color: var(--gold-600); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.person-card-v2 h4 { margin: 0 0 6px; color: var(--navy-900); font-size: 1.1rem; }
.person-card-v2 p:not(.person-role) { margin: 0 0 8px; color: var(--slate-500); font-size: 0.92rem; }
.alumni-block-list { display: grid; gap: 28px; margin-top: 34px; }
.alumni-block { padding: 28px; border-radius: var(--radius-lg); }
.alumni-table-wrap { overflow-x: auto; }
.alumni-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.92rem; }
.alumni-table th,
.alumni-table td { padding: 12px 10px; text-align: left; border-top: 1px solid rgba(231, 225, 211, 0.9); vertical-align: top; }
.alumni-table th { color: var(--gold-600); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.alumni-table td { color: var(--slate-500); }
.alumni-table td strong { color: var(--navy-900); }
.alumni-table a { color: var(--navy-900); border-bottom: 1px solid rgba(201, 154, 46, 0.45); }

/* =========================================================
   Join Us
   ========================================================= */

.join-section { padding-bottom: 72px; }
.join-intro,
.join-two-column { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 3rem; align-items: start; margin-bottom: 2.4rem; }
.join-two-column { margin-bottom: 0; align-items: center; }
.join-two-column.reverse { grid-template-columns: 1.05fr 0.95fr; }
.join-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.join-card { padding: 1.65rem; }
.join-card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 1.1rem; border-radius: 18px; background: var(--gold-100); color: var(--gold-600); font-weight: 900; letter-spacing: 0.04em; }
.join-card h3,
.join-steps-card h3 { margin: 0 0 0.65rem; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.18; }
.join-card p { margin: 0; color: var(--slate-500); line-height: 1.62; }
.join-topic-list { display: grid; gap: 0.75rem; }
.join-topic { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--navy-900); font-weight: 750; box-shadow: 0 8px 22px rgba(7, 20, 35, 0.045); }
.join-steps-card { padding: 1.8rem; }
.join-steps { margin: 1rem 0 0; padding-left: 1.25rem; color: var(--slate-500); }
.join-steps li { margin-bottom: 1rem; padding-left: 0.25rem; }
.join-steps li:last-child { margin-bottom: 0; }
.join-steps strong { color: var(--navy-900); }
.join-steps a { color: var(--navy-900); font-weight: 800; border-bottom: 1px solid rgba(201, 154, 46, 0.52); }
.join-steps a:hover { color: var(--gold-600); }
.join-callout { align-items: center; }

/* =========================================================
   News
   ========================================================= */

.news-page-section { padding-top: 74px; }
.news-page-intro { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2.4rem; align-items: end; margin-bottom: 2rem; }
.news-page-intro p { margin: 0 0 0.25rem; color: var(--slate-500); line-height: 1.65; }
.news-page-intro code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.9em; color: var(--navy-900); background: rgba(214, 162, 30, 0.12); padding: 0.08rem 0.28rem; border-radius: 6px; }
.news-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.news-category-card { padding: 1.35rem 1.45rem; }
.news-category-card span { display: inline-flex; margin-bottom: 0.7rem; color: var(--gold-600); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; }
.news-category-card h3 { margin: 0 0 0.4rem; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.2; }
.news-category-card p { margin: 0; color: var(--slate-500); line-height: 1.55; }
.news-timeline { display: grid; gap: 1rem; }
.news-timeline-item { display: grid; grid-template-columns: 190px 1fr; gap: 1.4rem; padding: 1.35rem 1.45rem; }
.news-date-block { display: grid; align-content: start; gap: 0.45rem; }
.news-date-block time { color: var(--navy-900); font-weight: 850; line-height: 1.2; }
.news-date-block span { display: inline-flex; width: fit-content; padding: 0.28rem 0.58rem; border-radius: 999px; background: var(--gold-100); color: var(--gold-600); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.news-content-block h3 { margin: 0 0 0.45rem; color: var(--navy-900); font-size: 1.08rem; line-height: 1.35; }
.news-content-block h3 a { border-bottom: 1px solid rgba(201, 154, 46, 0.45); }
.news-content-block p { margin: 0; color: var(--slate-500); line-height: 1.58; }
.news-tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.news-tag-list span { display: inline-flex; padding: 0.26rem 0.55rem; border: 1px solid rgba(201, 154, 46, 0.25); border-radius: 999px; background: rgba(247, 236, 208, 0.38); color: var(--gold-600); font-size: 0.72rem; font-weight: 800; }

/* =========================================================
   Responsive rules
   ========================================================= */

@media (max-width: 1100px) {
  .grid-2,
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .site-footer .footer-grid,
  .pi-profile-card,
  .pi-profile-details,
  .people-grid,
  .compact-people-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .site-footer .footer-bottom { flex-direction: column; gap: 0.6rem; }
  .site-footer .footer-grid { gap: 2.2rem; }
  .pi-photo-block { justify-content: flex-start; }
  .person-card-v2 { grid-template-columns: 70px 1fr; }
  .person-photo-v2,
  .person-photo-placeholder { width: 70px; height: 70px; border-radius: 18px; }
}

@media (max-width: 900px) {
  .join-intro,
  .join-two-column,
  .join-two-column.reverse,
  .join-card-grid,
  .news-page-intro,
  .news-category-grid,
  .news-timeline-item { grid-template-columns: 1fr; }

  .join-intro,
  .join-two-column,
  .join-two-column.reverse,
  .news-page-intro { gap: 1.5rem; }

  .join-topic { border-radius: var(--radius-md); }
  .join-callout,
  .callout { grid-template-columns: 1fr; }
  .news-timeline-item { gap: 0.8rem; }
}

@media (max-width: 820px) {
  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 22px 20px 14px;
    overflow: hidden;
  }

  .brand {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 14px;
  }

  .brand-mark {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    max-width: 58px;
    max-height: 58px;
  }

  .brand-text { flex: 1 1 auto; min-width: 0; max-width: 100%; }
  .brand-text strong { display: block; font-size: 1rem; line-height: 1.05; letter-spacing: 0.14em; }
  .brand-text small { display: block; font-size: 0.82rem; line-height: 1.25; white-space: normal; }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 2px 0 8px;
    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; white-space: nowrap; padding: 6px 0 10px; font-size: 0.98rem; }
  .site-nav a::after { bottom: 2px; }

  .hero { min-height: auto; overflow: hidden; }
  .hero-inner { grid-template-columns: 1fr; max-width: 100%; padding: 68px 22px 64px; gap: 28px; }
  .hero h1 { max-width: 100%; font-size: clamp(2.65rem, 11vw, 3.55rem); line-height: 1.03; letter-spacing: -0.018em; }
  .hero p { max-width: 100%; font-size: 1rem; }
  .signal-card { display: none; }

  .theme-publication-grid,
  .publication-entry,
  .research-paper-item,
  .publication-list-head,
  .gallery-intro,
  .gallery-grid { grid-template-columns: 1fr; }

  .publication-list-head { display: block; }
  .publication-list-head p { margin-top: 14px; }
  .slim-publication-entry { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding: 68px 0; }
  .section-title { font-size: clamp(2.1rem, 12vw, 3.1rem); }
  .page-hero { padding: 76px 0 60px; }
  .theme-card,
  .highlight-card { grid-template-columns: 1fr; }
  .highlight-year { min-height: 72px; }
  .about-panel,
  .callout,
  .pi-profile-card,
  .alumni-block { padding: 22px; }
  .pi-photo,
  .pi-photo-placeholder { width: 150px; height: 150px; }
  .person-card-v2 { grid-template-columns: 1fr; }
}

/* === Kyung Hee University affiliation additions === */
.brand-affiliation {
  display: block;
  margin-top: 2px;
  color: rgba(214, 162, 30, 0.86) !important;
  font-size: 0.70rem !important;
  line-height: 1.15 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-affiliation-mark {
  width: min(100%, 300px);
  margin-top: 1.25rem;
  padding: 0.65rem 0.78rem;
  border: 1px solid rgba(214, 162, 30, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.footer-affiliation-mark img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 820px) {
  .brand-affiliation {
    font-size: 0.70rem !important;
    line-height: 1.12 !important;
    letter-spacing: 0.07em !important;
  }

  .footer-affiliation-mark {
    width: min(100%, 260px);
  }
}


/* === Refine Kyung Hee University footer mark === */
.footer-affiliation-mark {
  width: min(100%, 255px) !important;
  margin-top: 1rem !important;
  padding: 0.48rem 0.58rem !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
}

.footer-affiliation-mark img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 820px) {
  .footer-affiliation-mark {
    width: min(100%, 230px) !important;
    padding: 0.44rem 0.54rem !important;
    border-radius: 9px !important;
  }
}

/* === PI academic profile links === */
.pi-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0.2rem;
}

.pi-link-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.46rem 0.88rem;
  border: 1px solid rgba(201, 154, 46, 0.36);
  border-radius: 999px;
  color: var(--navy-900);
  background: rgba(247, 236, 208, 0.42);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pi-link-buttons a:hover {
  color: var(--navy-950);
  background: var(--gold-100);
  border-color: rgba(201, 154, 46, 0.72);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .pi-link-buttons {
    gap: 0.55rem;
  }

  .pi-link-buttons a {
    width: 100%;
  }
}

/* PI profile title balance */
.pi-profile-main h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem) !important;
  line-height: 1.16 !important;
}

/* People page balance: make student cards more prominent */
.people-grid {
  gap: 24px !important;
}

.person-card-v2 {
  padding: 28px !important;
  grid-template-columns: 96px 1fr !important;
  gap: 22px !important;
  min-height: 170px !important;
}

.person-photo-v2,
.person-photo-placeholder {
  width: 96px !important;
  height: 96px !important;
  border-radius: 24px !important;
}

.person-card-v2 h4 {
  font-size: 1.22rem !important;
  margin-bottom: 8px !important;
}

.person-role {
  font-size: 0.82rem !important;
  margin-bottom: 7px !important;
}

.person-card-v2 p:not(.person-role) {
  font-size: 0.98rem !important;
  line-height: 1.58 !important;
}

.person-card-v2 .text-link {
  font-size: 0.96rem !important;
}

.compact-people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 920px) {
  .compact-people-grid {
    grid-template-columns: 1fr !important;
  }
}

/* People page: show student cards as two per row on desktop */
.people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.person-card-v2 {
  padding: 28px !important;
  grid-template-columns: 96px 1fr !important;
  gap: 22px !important;
  min-height: 170px !important;
}

.person-photo-v2,
.person-photo-placeholder {
  width: 96px !important;
  height: 96px !important;
  border-radius: 24px !important;
}

.person-card-v2 h4 {
  font-size: 1.22rem !important;
  margin-bottom: 8px !important;
}

.person-role {
  font-size: 0.82rem !important;
  margin-bottom: 7px !important;
}

.person-card-v2 p:not(.person-role) {
  font-size: 0.98rem !important;
  line-height: 1.58 !important;
}

.person-card-v2 .text-link {
  font-size: 0.96rem !important;
}

/* Mobile: one card per row */
@media (max-width: 760px) {
  .people-grid,
  .compact-people-grid {
    grid-template-columns: 1fr !important;
  }

  .person-card-v2 {
    grid-template-columns: 82px 1fr !important;
    padding: 22px !important;
  }

  .person-photo-v2,
  .person-photo-placeholder {
    width: 82px !important;
    height: 82px !important;
  }
}

.pi-profile-main h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}


/* People page: slightly larger student photos in two-column layout */
@media (min-width: 761px) {
  .person-card-v2 {
    grid-template-columns: 108px 1fr !important;
  }

  .person-photo-v2,
  .person-photo-placeholder {
    width: 108px !important;
    height: 108px !important;
    border-radius: 26px !important;
  }
}

/* People page: enlarge student photos for better balance with PI profile */
@media (min-width: 761px) {
  .person-card-v2 {
    grid-template-columns: 128px 1fr !important;
    gap: 26px !important;
    padding: 30px !important;
    min-height: 190px !important;
    align-items: center !important;
  }

  .person-photo-v2,
  .person-photo-placeholder {
    width: 128px !important;
    height: 128px !important;
    border-radius: 28px !important;
  }
}

@media (max-width: 760px) {
  .person-card-v2 {
    grid-template-columns: 96px 1fr !important;
    gap: 18px !important;
  }

  .person-photo-v2,
  .person-photo-placeholder {
    width: 96px !important;
    height: 96px !important;
    border-radius: 24px !important;
  }
}



/* === Home page refinement: hero signal card + about panel === */
@media (min-width: 901px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.72fr) !important;
    gap: clamp(48px, 6vw, 84px) !important;
  }

  .signal-card {
    width: min(100%, 420px) !important;
    min-height: 420px !important;
    justify-self: center !important;
    border-radius: 26px !important;
  }

  .signal-card svg {
    min-height: 420px !important;
  }
}@media (min-width: 900px) {
  .signal-card {
    transform: scale(1.08) translateX(-18px);
    transform-origin: center;
  }
}

@media (max-width: 900px) {
  .signal-card {
    max-width: 420px !important;
    margin: 0 auto !important;
  }
}

.about-panel {
  padding: clamp(34px, 4.5vw, 54px) !important;
}

.about-panel p {
  max-width: 980px !important;
}


/* =========================================================
   Home hero softening
   Purpose: reduce visual crowding in the desktop hero section.
   Add this block to the very bottom of assets/css/style.css.
   ========================================================= */

@media (min-width: 901px) {
  .hero {
    min-height: 670px !important;
  }

  .hero-inner {
    grid-template-columns: 1.02fr 0.78fr !important;
    gap: 72px !important;
    padding-top: 76px !important;
    padding-bottom: 82px !important;
  }

  .hero h1 {
    max-width: 760px !important;
    font-size: clamp(3.8rem, 5.15vw, 5.15rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.016em !important;
  }

  .hero p {
    max-width: 680px !important;
    font-size: 1.05rem !important;
    line-height: 1.64 !important;
  }

  .signal-card {
    opacity: 0.74 !important;
    transform: scale(0.94) translateX(-10px) !important;
    transform-origin: center !important;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.18) !important;
  }

  .hero::after {
    color: rgba(255, 255, 255, 0.045) !important;
  }
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: clamp(4rem, 4.7vw, 5.05rem) !important;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.35rem) !important;
    line-height: 1.05 !important;
  }
}

/* Final hero visual balance */
@media (min-width: 900px) {
  .signal-card {
    opacity: 0.72 !important;
    transform: none !important;
  }

  .hero::after {
    opacity: 0.65 !important;
  }
}


/* === Header logo mark update ===
   Use with:
   <div class="brand-mark brand-logo">
     <img src="{{ '/assets/images/logo-yoonlab-mark.png' | relative_url }}" alt="Yoon Lab logo">
   </div>
*/

.brand-mark.brand-logo {
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 1px solid rgba(214, 162, 30, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(214, 162, 30, 0.08);
}

.brand-mark.brand-logo img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
}

/* Keep the new detailed logo readable enough in the header. */
@media (min-width: 821px) {
  .brand-mark.brand-logo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
}

/* Mobile header already uses a larger mark; keep that size. */
@media (max-width: 820px) {
  .brand-mark.brand-logo {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }
}

