:root {
  --academic-blue: #0B416F;
  --academic-blue-deep: #041E33;
  --academic-blue-dark: #073250;
  --academic-blue-light: #2F6F9F;
  --academic-blue-soft: #EAF2F8;
  --brand: var(--academic-blue);
  --brand-deep: var(--academic-blue-deep);
  --brand-hover: var(--academic-blue-dark);
  --brand-light: var(--academic-blue-light);
  --brand-soft: var(--academic-blue-soft);
  --navy-950: var(--academic-blue-deep);
  --navy-900: var(--academic-blue-dark);
  --navy-800: var(--academic-blue);
  --blue: var(--academic-blue);
  --blue-bright: var(--academic-blue-light);
  /* Former red brand aliases now resolve to the single Academic Blue system. */
  --red: var(--academic-blue);
  --red-dark: var(--academic-blue-dark);
  --ink: #13283b;
  --muted: #607083;
  --line: #dfe6ed;
  --line-soft: #edf1f4;
  --soft: #f3f6f9;
  --white: #ffffff;
  --status-success: #176B43;
  --status-success-soft: #E7F5ED;
  --status-warning: #8A5700;
  --status-warning-soft: #FFF3CF;
  --status-danger: #C5050C;
  --status-danger-soft: #FFF0F1;
  --status-danger-border: #E6A8AB;
  --status-info: var(--academic-blue);
  --status-info-soft: var(--academic-blue-soft);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 8px;
  --radius-control: 10px;
  --radius-card: 12px;
  --radius-lg: 16px;
  --radius-md: var(--radius-control);
  --shadow-sm: 0 4px 14px rgba(11, 65, 111, .06);
  --shadow-md: 0 8px 24px rgba(11, 65, 111, .08);
  --shadow: var(--shadow-md);
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-body: 16px;
  --text-title: clamp(32px, 4vw, 44px);
  --header-height: 76px;
  --header-height-mobile: 66px;
  --content: 1180px;
  --page-background: var(--white);
  /* Compatibility aliases retained from the former standalone pages. */
  --page-width: var(--content, 1180px);
  --radius-xl: var(--radius-lg, 28px);
  --surface: var(--white, #ffffff);
  --surface-soft: var(--soft, #f3f6f9);
  --surface-alt: #f8fafc;
  --yonsei: var(--blue, #0b416f);
  --yonsei-blue: var(--blue, #0b416f);
  --uw-red: var(--blue, #0b416f);
  --blue-100: var(--academic-blue-soft);
  --blue-600: var(--blue-bright, #2f6f9f);
  --red-100: var(--status-danger-soft);
  --skeleton: #e5ebf0;
  --skeleton-light: #f7f9fb;
  --avatar: var(--academic-blue-soft);
  --reveal-delay: 0ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page-background); }
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--page-background);
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.page-research { --page-background: var(--soft); }
a { color: inherit; }
button, input, textarea, select, a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
button { cursor: pointer; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
:focus-visible { outline: 3px solid rgba(11, 65, 111, .42); outline-offset: 3px; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 11px 15px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: var(--white);
  background: rgba(4, 30, 51, .16);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled,
.site-header.is-nav-open {
  background: rgba(4, 30, 51, .97);
  box-shadow: 0 8px 24px rgba(3, 15, 29, .16);
}
.header-inner, .footer-inner {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}
.header-inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo-shell {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(3, 15, 29, .18);
}
.brand-logo-fallback,
.brand-logo {
  grid-area: 1 / 1;
}
.brand-logo-fallback {
  color: var(--academic-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.05em;
}
.brand-logo {
  z-index: 1;
  display: block;
  width: 44px;
  height: 44px;
  padding: 3px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
}
.brand-logo-shell.is-fallback .brand-logo { display: none; }
.brand-copy {
  display: grid;
  align-content: center;
}
.brand-name {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.brand-affiliation {
  margin-top: 3px;
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link,
.nav-group > summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  color: rgba(255, 255, 255, .82);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 730;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover,
.nav-group > summary:hover,
.nav-link[aria-current="page"],
.nav-group.has-current > summary {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
}
.nav-link:focus-visible,
.nav-group > summary:focus-visible,
.nav-submenu a:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .72);
  outline-offset: 2px;
}
.nav-group {
  position: relative;
}
.nav-group > summary {
  list-style: none;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-chevron {
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
  transition: transform 160ms ease;
}
.nav-group[open] .nav-chevron {
  transform: rotate(45deg);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 172px;
  padding: 7px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(4, 20, 37, .18);
}
.nav-submenu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-submenu a:hover,
.nav-submenu a[aria-current="page"] {
  color: var(--blue);
  background: var(--soft);
}
.nav-submenu .member-only-link {
  display: grid;
  align-content: center;
  gap: 2px;
}
.member-only-title { display: block; }
.member-only-note {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: .03em;
  line-height: 1.2;
}
.member-only-link:hover .member-only-note,
.member-only-link[aria-current="page"] .member-only-note { color: inherit; }
.member-lock-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  vertical-align: -2px;
}
.member-lock-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.nav-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 4px 0 10px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 760;
}
.nav-toggle-icon {
  display: grid;
  width: 22px;
  gap: 4px;
}
.nav-toggle-icon > span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.site-header.is-nav-open .nav-toggle-icon > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.is-nav-open .nav-toggle-icon > span:nth-child(2) {
  opacity: 0;
}
.site-header.is-nav-open .nav-toggle-icon > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
#page-main { min-width: 0; }
html.is-rendering #page-main,
html.is-rendering .site-footer {
  visibility: hidden;
}
.site-footer {
  color: rgba(255, 255, 255, .72);
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-inner {
  display: grid;
  min-height: 132px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  gap: 28px;
  padding-block: 28px;
  font-size: 12px;
}
.footer-brand {
  max-width: 520px;
  margin: 0;
  color: var(--white);
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.4;
}
.footer-copy {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
  line-height: 1.65;
}
.footer-side { display: grid; justify-items: end; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-links a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.no-script-message {
  margin: 76px auto 0;
  padding: 14px 16px;
  color: var(--status-danger);
  background: var(--red-100);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-card);
  font-weight: 700;
  text-align: center;
}
.footer-keywords {
  margin: 0;
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

/* Restrained public-site treatment: content first, with fewer template-like effects. */
:is(.masthead, .partners-masthead, .gallery-masthead),
body.page-research .hero,
body.page-join .hero {
  min-height: 192px !important;
  background: var(--academic-blue) !important;
}
body .masthead::before,
body .masthead::after,
.partners-masthead::before,
.partners-masthead::after,
.gallery-masthead::before,
.gallery-masthead::after,
body.page-join .hero::before,
body.page-join .hero::after {
  display: none !important;
}
:is(.masthead-inner, .partners-masthead-inner, .gallery-masthead-inner),
body.page-research .hero-inner,
body.page-join .hero-inner {
  display: flex !important;
  min-height: 192px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 76px 0 0 !important;
}
:is(.masthead, .partners-masthead, .gallery-masthead) h1,
body.page-research .hero h1,
body.page-join .hero h1 {
  font-size: clamp(40px, 6vw, 58px) !important;
  font-weight: 820 !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}
.page-join .section-heading {
  display: block !important;
}

/* Keep compact public pages on one shared vertical rhythm. */
body:not(.page-home) :is(.page-inner, .page-content, .gallery-page, .partners-page) {
  padding: 32px 0 64px !important;
}
body.page-research .research-list {
  padding: 32px 0 64px !important;
}
body.page-join .content-section {
  padding-block: 56px !important;
}
body.page-join #openings {
  padding-top: 32px !important;
}
body:not(.page-home) :is(
  .section-title,
  h2.section-heading,
  .partners-heading-row h2,
  .gallery-heading-row h2,
  .content-section .section-heading h2
) {
  font-size: clamp(26px, 3vw, 34px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.035em !important;
}
body:not(.page-home) .section-title::after {
  display: none !important;
}
:is(.project-card, .highlight-card, .publication-list, .facility-card, .profile-card,
  .alumni-panel, .news-card, .partner-card, .sponsor-card, .gallery-card, .research-card,
  .updates-column, .join-card, .opening-card, .target-card, .benefit-card, .application-card,
  .skeleton-card, .gallery-skeleton span) {
  border-radius: var(--radius-card) !important;
  box-shadow: none !important;
}
:is(.project-card, .highlight-card)::before {
  display: none !important;
}
:is(.facility-card, .profile-card) {
  border-top-width: 1px !important;
}
:is(.project-card, .facility-card, .profile-card, .news-card, .partner-card, .gallery-card):hover {
  transform: none !important;
  box-shadow: 0 6px 18px rgba(11, 65, 111, .08) !important;
}
:is(.publication-load-more, .load-more, .gallery-more, .partners-actions a, .result-link) {
  border-radius: 6px !important;
}
:is(.topic, .topic-item, .tag, .type-badge, .scope-badge, .year-badge) {
  border-radius: 4px !important;
}
:is(.partner-name, .sponsor-name, .profile-name, .facility-name, .publication-title, .news-title) {
  overflow-wrap: anywhere;
}
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 560ms cubic-bezier(.22, 1, .36, 1),
    transform 620ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}
html.reveal-ready [data-reveal]:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}
@media (max-width: 1100px) {
  .site-header { height: var(--header-height); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: none;
    align-content: start;
    align-items: stretch;
    gap: 0;
    padding: 18px max(24px, calc((100vw - var(--content)) / 2));
    overflow-y: auto;
    color: var(--ink);
    background: var(--white);
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .site-header.is-nav-open .site-nav { display: grid; }
  html.nav-open,
  html.nav-open body { overflow: hidden; }
  .nav-link,
  .nav-group > summary {
    min-height: 52px;
    justify-content: space-between;
    padding: 0 4px;
    color: var(--ink);
    background: transparent;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 15px;
  }
  .nav-link:hover,
  .nav-group > summary:hover,
  .nav-link[aria-current="page"],
  .nav-group.has-current > summary {
    color: var(--blue);
    background: transparent;
  }
  .nav-group { position: static; }
  .nav-chevron { color: var(--muted); }
  .nav-submenu {
    position: static;
    min-width: 0;
    margin: 0 0 8px;
    padding: 6px;
    background: var(--soft);
    border: 0;
    border-radius: 6px;
    box-shadow: none;
  }
  .nav-submenu a {
    min-height: 44px;
    padding-inline: 12px;
  }
  .nav-link:focus-visible,
  .nav-group > summary:focus-visible,
  .nav-submenu a:focus-visible,
  .nav-toggle:focus-visible {
    outline-color: rgba(11, 65, 111, .46);
  }
}
@media (max-width: 720px) {
  .site-header { height: var(--header-height-mobile); }
  .header-inner, .footer-inner { width: min(calc(100% - 32px), var(--content)); }
  .site-nav {
    inset-block-start: var(--header-height-mobile);
    padding-inline: 16px;
  }
  .brand-name { font-size: 15px; }
  .brand-affiliation { font-size: 9px; }
  .brand { gap: 7px; }
  .brand-logo-shell { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-logo { width: 38px; height: 38px; }
  .nav-toggle-label { display: none; }
  .footer-inner {
    min-height: 112px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding-block: 30px;
  }
  .footer-side { justify-items: start; }
  .footer-links { justify-content: flex-start; }
  .footer-keywords { text-align: left; }
  :is(.masthead, .partners-masthead, .gallery-masthead),
  body.page-research .hero,
  body.page-join .hero,
  :is(.masthead-inner, .partners-masthead-inner, .gallery-masthead-inner),
  body.page-research .hero-inner,
  body.page-join .hero-inner {
    min-height: 160px !important;
  }
  :is(.masthead-inner, .partners-masthead-inner, .gallery-masthead-inner),
  body.page-research .hero-inner,
  body.page-join .hero-inner {
    padding-top: var(--header-height-mobile) !important;
  }
  body:not(.page-home) :is(.masthead-inner, .partners-masthead-inner, .gallery-masthead-inner, .page-inner, .page-content, .gallery-page, .partners-page) {
    width: min(calc(100% - 32px), var(--content)) !important;
    margin-inline: auto;
  }
  body.page-research :is(.hero-inner, .research-list) {
    width: min(calc(100% - 32px), var(--page-width)) !important;
    margin-inline: auto;
  }
  body:not(.page-home) :is(.page-inner, .page-content, .gallery-page, .partners-page),
  body.page-research .research-list {
    padding: 24px 0 48px !important;
  }
  body.page-join .content-section {
    padding-block: 44px !important;
  }
  body.page-join #openings {
    padding-top: 24px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
