/* ==========================================================================
   SCIS Lab — site styles
   Colors are defined once here. Change a value to restyle the whole site.
   ========================================================================== */
:root {
  --bg: #FAFBFC; --surface: #FFFFFF; --ink: #10233F; --muted: #56657A; --line: #DDE3EA;
  --accent: #0B8577; --accent-ink: #FFFFFF; --tint: #E3F2EF;
  --sun: #DE9B0E; --alert: #D64545; --ev: #6B5BD6; --ev-soft: #ECE9FB;
  --radius: 10px; --wrap: 1200px;
  --font: "IBM Plex Sans", "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1620; --surface: #16202C; --ink: #E4EBF3; --muted: #9AA8B8; --line: #2A3748;
    --accent: #3CC2B1; --accent-ink: #06201C; --tint: #12302E;
    --sun: #F1B940; --alert: #F07070; --ev: #A597FF; --ev-soft: #28244A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1620; --surface: #16202C; --ink: #E4EBF3; --muted: #9AA8B8; --line: #2A3748;
  --accent: #3CC2B1; --accent-ink: #06201C; --tint: #12302E;
  --sun: #F1B940; --alert: #F07070; --ev: #A597FF; --ev-soft: #28244A;
  color-scheme: dark;
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[lang="ko"] body { word-break: keep-all; }
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { position: relative; display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.15; min-width: 0; }
.brand.has-logo { flex: none; }
.brand strong { font-weight: 600; font-size: 1.05rem; display: block; }
.brand small { display: block; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { height: 40px; width: auto; display: block; }
.brand img.logo { height: 52px; }
.brand .knu { display: flex; align-items: center; padding-left: 12px; border-left: 1px solid var(--line); height: 32px; }
.brand .knu img { height: 20px; width: auto; max-width: none; flex: none; }
.brand img, .brand .knu { flex: none; max-width: none; }
.brand .knu .knu-dark { display: none; }
:root[data-theme="dark"] .brand .knu .knu-light { display: none; }
:root[data-theme="dark"] .brand .knu .knu-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .knu .knu-light { display: none; } :root:not([data-theme="light"]) .brand .knu .knu-dark { display: block; } }
@media (max-width: 760px) { .brand img.logo { height: 40px; } }
.bar.no-knu .brand .knu { display: none; }
@media (max-width: 460px) { .brand .knu { display: none; } }
.contact-list .wide { grid-column: 1 / -1; }
.bio .rich-h { font-size: 1.02rem; font-weight: 600; margin: 22px 0 6px; }
.bio .rich-list { margin: 8px 0 14px; padding-left: 1.2em; list-style: disc; }
.bio .rich-list li { margin: 0 0 8px; }
.bio .rich-list b { font-weight: 600; }
.mark { flex: none; width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.mark svg { width: 26px; height: 26px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.site-header .wrap { max-width: 1440px; }
.nav a:hover { color: var(--ink); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .lang { margin-left: 8px; border: 1px solid var(--line); border-radius: 6px; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
/* The header switches to the menu button whenever the links don't fit (set by fitHeader in app.js). */
.bar.collapsed .menu-btn { display: inline-flex; }
.bar.collapsed .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(16,35,63,.12); }
.bar.collapsed .nav.open { display: flex; }
.bar.collapsed .nav a { padding: 14px 12px; font-size: 1.05rem; }
.bar.collapsed .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
.bar.collapsed .nav .lang { margin: 8px 0 0; text-align: center; }
.bar.collapsed .theme-btn { margin-left: auto; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .9rem; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.badge { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--ink); white-space: nowrap; }
.badge.alt { background: var(--ev-soft); }
.badge.warn { background: color-mix(in srgb, var(--sun) 22%, transparent); }
.more { color: var(--accent); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- page sections ---------- */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 64ch; margin: 0; font-size: 1.08rem; }
.sec { padding: 72px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h2 { font-size: 1.7rem; font-weight: 600; letter-spacing: -.01em; }
.sec-head p { margin: 0; color: var(--muted); max-width: 58ch; }
.sub-h { font-size: 1.2rem; font-weight: 600; margin: 40px 0 12px; }
.status { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ---------- home hero ---------- */
.hero { padding: 64px 0 0; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; max-width: 30ch; margin-bottom: 20px; text-wrap: balance; }
html[lang="ko"] .hero h1 { max-width: 26ch; line-height: 1.2; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; margin-bottom: 28px; }
.stage { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0 16px; }
.stage-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.tabs button { font-weight: 600; font-size: .95rem; border: 0; background: transparent; color: var(--muted); min-height: 40px; padding: 0 18px; border-radius: 7px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.stage-note { margin: 0; color: var(--muted); max-width: 62ch; }
.il-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.il-scroll .il { min-width: 760px; }
.swipe { display: none; font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 760px) { .swipe { display: block; } }
@media (max-width: 600px) { .tabs { display: flex; width: 100%; } .tabs button { flex: 1; } .hero { padding-top: 40px; } }

/* ---------- illustrations ---------- */
.il { display: block; width: 100%; height: auto; }
.il text { font-family: var(--font); }
.il .t-h { font-size: 20px; font-weight: 600; fill: var(--ink); }
.il .t-s { font-size: 15px; fill: var(--muted); }
.il .t-ink { fill: var(--ink); }
.il .t-m { font-size: 14px; fill: var(--muted); font-family: var(--mono); }
.il .t-xs { font-size: 12px; }
.il .t-acc { fill: var(--accent); }
.il .o { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.il .ln { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.il .ln.thin { stroke-width: 1.4; } .il .ln.w2 { stroke-width: 2.4; } .il .ln.w3 { stroke-width: 3; } .il .ln.w4 { stroke-width: 4; }
.il .fill-ink { fill: var(--ink); }
.il .soft { fill: none; stroke: var(--line); stroke-width: 1.5; }
.il .dot { fill: var(--line); }
.il .windows { fill: none; stroke: var(--line); stroke-width: 8; stroke-dasharray: 8 6; }
.il .agent { fill: var(--tint); stroke: var(--accent); stroke-width: 1.6; }
.il .ctl { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il .obs { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 3 4; }
.il .curve { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
.il .flow { fill: none; stroke: var(--sun); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 1 11; animation: il-flow 1.1s linear infinite; }
.il .flow.v2g { stroke: var(--ev); }
.il .sun { fill: var(--sun); }
.il .soc { fill: var(--accent); opacity: .8; }
.il .cell { fill: none; stroke: var(--line); stroke-width: 1.2; }
.il .car { fill: var(--surface); stroke: var(--ink); stroke-width: 1.3; }
.il .car.c { fill: var(--tint); stroke: var(--accent); }
.il .car.v { fill: var(--ev-soft); stroke: var(--ev); }
.il .wheel { fill: var(--ink); }
.il .part { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.il .bad { fill: var(--surface); stroke: var(--alert); stroke-width: 2.4; }
.il .crack { fill: none; stroke: var(--alert); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.il .crack.thin { stroke-width: 1.8; }
.il .alert-d { fill: none; stroke: var(--alert); stroke-width: 1.6; stroke-dasharray: 5 4; }
.il .ring { fill: none; stroke: var(--alert); stroke-width: 2; }
.il .heat { fill: var(--alert); opacity: .16; }
.il .signal { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; }
.il .signal.ink { stroke: var(--ink); }
.il .scan { fill: var(--accent); opacity: .1; animation: il-pulse 2.4s ease-in-out infinite; }
.il .blades { transform-box: view-box; transform-origin: 210px 330px; animation: il-spin 9s linear infinite; }
.il .arm-o { fill: none; stroke: var(--ink); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.il .arm-i { fill: none; stroke: var(--surface); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.il .tag { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
@keyframes il-flow { to { stroke-dashoffset: -24; } }
@keyframes il-spin { to { transform: rotate(360deg); } }
@keyframes il-pulse { 50% { opacity: .26; } }
@media (prefers-reduced-motion: reduce) { .il .flow, .il .scan, .il .blades { animation: none; } }
.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; }
.legend i.box { width: 14px; height: 10px; border: 1.3px solid; }
.k-flow { background: var(--sun); } .k-v2g { background: var(--ev); } .k-act { background: var(--accent); } .k-anom { background: var(--alert); }
.k-charge { background: var(--tint); border-color: var(--accent); } .k-discharge { background: var(--ev-soft); border-color: var(--ev); } .k-vlm { background: var(--tint); border-color: var(--accent); }

/* ---------- pillars & research ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.pillar h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.pillar > p { color: var(--muted); margin-bottom: 14px; }
.topic-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.topic-list b { display: block; font-weight: 600; }
.topic-list span { color: var(--muted); font-size: .94rem; }
.pillar-block { padding: 56px 0 0; }
.pillar-block > h2 { font-size: 1.9rem; font-weight: 600; margin-bottom: 8px; }
.pillar-block > p { color: var(--muted); max-width: 64ch; margin-bottom: 20px; }
.fig-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.topic-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.topic-card img { width: 100%; border-radius: 6px; margin-bottom: 12px; aspect-ratio: 16/10; object-fit: cover; }
.topic-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.topic-card p { color: var(--muted); font-size: .94rem; margin-bottom: 8px; }
.kw { font-size: .82rem; color: var(--muted); }
.timeline li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline b { font-weight: 600; display: block; }
.timeline span { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- publications ---------- */
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.stats div { font-size: .95rem; color: var(--muted); }
.stats b { display: block; font-size: 1.8rem; color: var(--ink); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 0; }
.filters .wrap { display: grid; gap: 10px; }
.filter-top { display: flex; gap: 10px; flex-wrap: wrap; }
.search { flex: 1 1 260px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.select { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.count { font-size: .9rem; color: var(--muted); }
.year-h { font-size: 1.25rem; font-weight: 600; margin: 36px 0 4px; color: var(--accent); font-variant-numeric: tabular-nums; }
.pub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.pub.has-thumb { grid-template-columns: 150px minmax(0, 1fr); }
.pub .thumb { width: 150px; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.pub h3 { font-size: 1.04rem; line-height: 1.42; font-weight: 600; margin-bottom: 4px; }
.pub .authors { color: var(--muted); font-size: .94rem; margin: 0 0 2px; }
.pub .authors b { color: var(--ink); font-weight: 600; }
.pub .venue { font-size: .94rem; margin: 0 0 8px; }
.pub .venue i { font-style: italic; }
.pub-foot { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; }
.pub-foot a, .pub-foot button { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; font-size: .84rem; text-decoration: none; background: var(--surface); color: var(--ink); cursor: pointer; }
.pub-foot a:hover, .pub-foot button:hover { border-color: var(--accent); color: var(--accent); }
.pub .label, .patent .label { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.pub .alt-title { color: var(--muted); font-size: .92rem; margin: -2px 0 4px; }
.pub .metrics { font-size: .86rem; color: var(--muted); margin: -4px 0 8px; }
.pub .metrics b { color: var(--ink); font-weight: 600; }
.pub .mts { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-right: 8px; vertical-align: 1px; }
.pub .mt { font-size: .76rem; font-weight: 600; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }
.pub .mt.idx { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pub .mt.t-esci, .pub .mt.t-kci { background: var(--muted); border-color: var(--muted); }
.pub .mt.t-other, .pub .mt.t-intl_conf, .pub .mt.t-domestic_conf { background: transparent; color: var(--ink); border-color: var(--muted); }
.year-h .yc { font-size: .85rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.pub .mt.q1 { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.pub .mt.corr { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.album { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.album h3 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.album .muted { font-size: .85rem; margin: 0 0 10px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs button { padding: 0; border: 0; background: var(--tint); border-radius: 6px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.thumbs button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { display: block; max-width: 92vw; max-height: 82vh; margin: 0 auto; border-radius: 6px; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; font-size: .95rem; }
.lightbox button { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }
.lightbox .lb-close { top: 32px; right: 16px; transform: none; }
.type-block { margin-top: 12px; }
.type-h { font-size: 1.5rem; font-weight: 600; margin: 48px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.type-h span { color: var(--muted); font-weight: 400; font-size: 1rem; margin-left: 6px; }
.type-block .year-h { font-size: 1.08rem; margin-top: 24px; }
.timeline .role { display: block; font-size: .82rem; color: var(--accent); font-weight: 600; }
.timeline time .badge { display: block; width: max-content; margin-top: 6px; }
.country-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.country-list .country { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: .95rem; color: var(--muted); }
.country-list button.country { color: var(--ink); border-color: var(--accent); cursor: pointer; }
.country-list button.country::after { content: " ▾"; color: var(--accent); }
.country-list button.country[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }
.country-list button.country[aria-expanded="true"]::after { content: " ▴"; color: inherit; }
.country-panel { margin-top: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 560px; }
.country-panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.country-panel li { padding: 4px 0; font-size: .95rem; }
.collab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.collab { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.collab h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.collab h3 span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.collab li { font-size: .92rem; padding: 4px 0; }
.collab li span { display: block; color: var(--accent); font-size: .84rem; }
.patent { padding: 16px 0; border-top: 1px solid var(--line); }
.patent h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.patent p { margin: 0 0 4px; color: var(--muted); font-size: .92rem; }
@media (max-width: 600px) {
  .pub.has-thumb { grid-template-columns: 1fr; }
  .pub .thumb { width: 100%; max-width: 320px; }
  .filters { position: static; }
}

/* ---------- featured pubs on home ---------- */
.fpub { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.fpub .thumb, .fpub .glyph { width: 168px; aspect-ratio: 16/10; border-radius: 6px; border: 1px solid var(--line); object-fit: cover; background: var(--surface); }
.fpub h3 { font-size: 1.06rem; line-height: 1.4; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 600px) { .fpub { grid-template-columns: 1fr; gap: 12px; } .fpub .thumb, .fpub .glyph { width: 100%; max-width: 320px; } }
.glyph .g-soft { fill: none; stroke: var(--line); stroke-width: 1.5; }
.glyph .g-ink { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; }
.glyph .g-acc { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.glyph .g-sun { fill: none; stroke: var(--sun); stroke-width: 2.4; }
.glyph .g-alert { fill: none; stroke: var(--alert); stroke-width: 2; }
.glyph .g-tint { fill: var(--tint); }

/* ---------- news ---------- */
.news-list > li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.news-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.news-list h3 { font-size: 1.05rem; font-weight: 600; margin: 4px 0 4px; line-height: 1.45; }
.news-list p { margin: 0; color: var(--muted); }
.news-list img { margin-top: 12px; border-radius: 8px; max-height: 280px; object-fit: cover; }
.news-list a.more { display: inline-block; margin-top: 6px; }
.news-more summary { list-style: none; cursor: pointer; }
.news-more summary::-webkit-details-marker { display: none; }
.news-more summary:hover h3 { color: var(--accent); }
.news-toggle { display: inline-block; margin-top: 6px; font-size: .88rem; color: var(--accent); font-weight: 600; }
.news-toggle::after { content: " +"; }
.news-more[open] .news-toggle::after { content: " −"; }
.news-more[open] summary > p { display: none; }
.news-detail { margin-top: 10px; }
.news-detail p { margin: 0 0 10px; color: var(--ink); }
.news-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 6px; }
.news-imgs img { margin: 0; width: 100%; max-height: none; border: 1px solid var(--line); }
@media (max-width: 600px) { .news-list > li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- people ---------- */
.prof { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 36px; padding-top: 48px; }
.prof .photo, .avatar { background: var(--tint); color: var(--accent); display: grid; place-items: center; font-weight: 600; overflow: hidden; }
.prof .photo { width: 170px; aspect-ratio: 3/4; border-radius: 12px; font-size: 2.4rem; }
.prof .photo img, .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.prof h2 { font-size: 1.9rem; font-weight: 600; margin-bottom: 4px; }
.prof .title { color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.prof .depts { color: var(--muted); margin-bottom: 16px; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; font-size: .95rem; }
.contact-list dt { font-size: .8rem; color: var(--muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.bio p { max-width: 70ch; }
details.more-box { border-top: 1px solid var(--line); padding: 14px 0; }
details.more-box summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
details.more-box summary::-webkit-details-marker { display: none; }
details.more-box summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; }
details.more-box[open] summary::after { content: "−"; }
details.more-box li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
details.more-box li:last-child { border-bottom: 0; }
details.more-box li span { color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.avatar { width: 72px; height: 96px; border-radius: 8px; font-size: 1.3rem; margin-bottom: 12px; }
.person h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 2px; }
.person .ko { color: var(--muted); font-weight: 400; font-size: .92rem; }
.person p { margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.person a { font-size: .88rem; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 600px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .person { padding: 12px; } .person h3 { font-size: .95rem; } .person p, .person a { font-size: .8rem; } .avatar { width: 60px; height: 80px; margin-bottom: 8px; } }
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; }
.alumni-grid li { padding: 10px 0; border-top: 1px solid var(--line); }
.alumni-grid b { font-weight: 600; display: block; }
.alumni-grid span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .prof { grid-template-columns: 1fr; gap: 24px; } .prof .photo { width: 130px; } .contact-list { grid-template-columns: 1fr; } }

/* ---------- join & footer ---------- */
.join { margin-top: 80px; background: var(--tint); border-radius: 14px; padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.join h2 { font-size: 1.7rem; font-weight: 600; margin-bottom: 10px; }
.join p { margin: 0; color: var(--muted); max-width: 56ch; }
.join .actions { justify-content: flex-end; }
@media (max-width: 760px) { .join { grid-template-columns: 1fr; padding: 28px; } .join .actions { justify-content: flex-start; } }
.site-footer { margin-top: 88px; border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site-footer strong { color: var(--ink); display: block; margin-bottom: 6px; font-weight: 600; }
.site-footer p { margin: 0; white-space: pre-line; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .fine { margin-top: 28px; font-size: .82rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; gap: 20px; } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: .92rem; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
