/* Frontend preview, based on the live site's existing blue/white identity. */
:root {
  --bg: #f5f7fb;
  --text: #152b46;
  --text2: #465a73;
  --text3: #60738b;
  --border: #e1e7ef;
  --border2: #cbd6e3;
  --sans: 'IBM Plex Sans', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
}
[hidden] { display: none !important; }
body { padding-top: 136px; }
button, input, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible { outline: 3px solid #4b86d4; outline-offset: 3px; }
.header-inner, .inst-banner-inner, .page-wrap, .page-hero-inner, .footer-inner, .footer-bottom { max-width: 1200px; }
.inst-banner-inner { height: 72px; }
.inst-combined-logo { height: 62px; }
header { top: 72px; }
.header-inner, .nav-link { height: 64px; }
.logo-sub { font-family: var(--sans); letter-spacing: 0; font-size: .76rem; }
.lang-toggle { cursor: default; }
.lang-opt { border: 0; background: transparent; cursor: pointer; min-width: 38px; min-height: 32px; }
.hero { padding: 64px 2rem 68px; }
h1.hero-title { font-family: var(--sans); font-size: clamp(3rem, 6vw, 4.4rem); letter-spacing: -.04em; margin-bottom: 1rem; }
.hero-eyebrow { font-family: var(--sans); letter-spacing: .07em; white-space: normal; }
.hero-expand { font-size: .84rem; margin-bottom: 1.25rem; }
.hero-desc { font-size: 1.03rem; }
.hero-btns a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: .9rem; letter-spacing: 0; }
.page-hero { padding: 34px 2rem 38px; }
.page-hero-inner { padding: 0; }
.page-hero p { font-family: var(--sans); color: #d2dff2; font-size: .95rem; }
.page-hero-tag { color: #b7cbe7; }
.page-wrap { padding-top: 32px; }
.section { padding: 2.5rem 0; }
.section-title { font-size: 1.5rem; }
.more-link { color: var(--accent); font-family: var(--sans); font-size: .86rem; }
.pub-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.pub-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 25px 26px; margin: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
.pub-item:first-child { padding-top: 25px; }
.pub-item:hover { box-shadow: none; background: #fbfcfe; }
.pub-item:last-child { border-bottom: 0; }
.pub-item > div { min-width: 0; }
.pub-venue-badge { padding-top: 3px; }
.venue-pill { display: inline-flex; align-items: baseline; flex-wrap: wrap; max-width: 100%; gap: 1px 3px; font-family: var(--sans); white-space: normal; overflow-wrap: normal; word-break: normal; font-size: .72rem; line-height: 1.5; padding: 5px 8px; border-radius: 5px; font-weight: 600; }
.venue-name { min-width: 0; overflow-wrap: normal; word-break: normal; }
.venue-year { white-space: nowrap; flex-shrink: 0; }
.pub-title { display: block; color: #173f74; font-size: 1.04rem; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
a.pub-title { color: #173f74; }
a.pub-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pub-authors { font-family: var(--sans); font-size: .9rem; line-height: 1.6; color: var(--text2); letter-spacing: 0; margin-top: 7px; overflow-wrap: anywhere; }
.pub-year { font-family: var(--sans); font-size: .83rem; line-height: 1.6; color: var(--text3); letter-spacing: 0; margin-top: 4px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.pub-link-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 12px; border: 1px solid #cbd7e6; border-radius: 6px; background: #f7faff; color: #255384; font-family: var(--sans); font-size: .79rem; font-weight: 500; line-height: 1.3; transition: background .15s, border-color .15s; }
.pub-link-btn:hover { background: #e9f1fc; border-color: #87a9d5; }
.pub-link-btn.pub-link-arxiv { color: #1d58a5; background: #edf4ff; border-color: #bfd3f0; }
.pub-link-btn.pub-link-arxiv:hover { background: #deebff; border-color: #86abe0; }
.pub-link-btn.pub-link-code { color: #157044; background: #edf8f1; border-color: #b6ddc5; }
.pub-link-btn.pub-link-code:hover { background: #daf0e3; border-color: #79bb95; }
.pub-link-btn.pub-link-dataset { color: #7041a7; background: #f5effc; border-color: #d8c4ee; }
.pub-link-btn.pub-link-dataset:hover { background: #eadcf8; border-color: #b491d8; }
.pub-abstract { font-size: .9rem; margin-top: 10px; color: var(--text2); }
.pub-abstract summary { color: var(--accent); font-size: .82rem; cursor: pointer; width: fit-content; padding: 4px 0; }
.pub-abstract p { margin: 6px 0; line-height: 1.8; }
.paper-tools { margin-bottom: 24px; padding: 22px 24px 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.paper-tools-main { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 20px; }
.paper-search, .paper-year-select { display: grid; gap: 7px; }
.control-label { font-family: var(--sans); color: var(--text2); font-size: .82rem; font-weight: 500; }
.paper-tools input, .paper-tools select { width: 100%; min-width: 0; height: 46px; border: 1px solid var(--border2); border-radius: 7px; background: #fff; color: var(--text); padding: 0 13px; font-size: .93rem; }
.paper-tools input::placeholder { color: #6b7c90; }
.paper-topic-row { display: flex; align-items: flex-start; gap: 18px; margin: 20px 0; }
.paper-topic-row > .control-label { padding-top: 9px; flex-shrink: 0; }
.paper-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.paper-topics .filter-btn { margin: 0; min-height: 36px; padding: 6px 13px; font-family: var(--sans); font-size: .83rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text2); background: #f6f8fb; cursor: pointer; }
.paper-topics .filter-btn.active { background: #eaf2ff; color: #1755a1; border-color: #a5c1e8; font-weight: 600; }
.paper-topics .filter-btn:hover { border-color: #87a9d5; }
.paper-tools-footer { border-top: 1px solid var(--border); padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#paper-results { color: var(--text3); font-size: .83rem; }
.filter-reset { color: var(--accent); background: transparent; border: 0; padding: 6px 0 6px 10px; font-size: .83rem; cursor: pointer; }
.filter-reset:disabled { color: #728197; cursor: default; }
.paper-empty { text-align: center; padding: 48px 20px; border: 1px solid var(--border); background: #fff; border-radius: 12px; }
.paper-empty h3 { font-size: 1.12rem; }
.paper-empty p { margin: 10px 0 22px; color: var(--text2); }
.platforms-shell { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.platforms-shell::before { display: none; }
.platforms-intro { max-width: 48rem; }
.platform-showcases { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; align-items: start; }
.platform-row, .platform-row--reverse { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; min-width: 0; }
.platform-row--reverse .platform-shot, .platform-row--reverse .platform-copy { grid-column: auto; grid-row: auto; }
.platform-shot { width: 100%; padding: 18px; background: #eef3f9; }
.platform-shot-frame { border-radius: 7px; aspect-ratio: 2 / 1; box-shadow: none; transform: none !important; }
.platform-shot-frame img { width: 100%; height: 100%; object-fit: contain; }
.platform-copy { width: 100%; padding: 22px; border: 0; border-radius: 0; box-shadow: none; }
.platform-tile-top { margin-bottom: 10px; }
.platform-tile-cat { color: #24568e; }
.platform-copy h3 { font-size: 1.13rem; line-height: 1.5; }
.platform-tile-lead { font-family: var(--sans); font-size: .9rem; color: var(--text2); line-height: 1.75; margin-top: 9px; }
.platform-details { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.platform-details summary { color: var(--accent); font-size: .86rem; cursor: pointer; padding: 4px 0; }
.platform-details .platform-tile-body, .platform-details .platform-highlights { margin-top: 12px; font-size: .85rem; }
.platform-tile-chips { margin-top: 14px; }
.news-title { font-size: .98rem; line-height: 1.65; }
.news-date { font-size: .79rem; color: var(--text3); }
.faculty-list .member-card { padding: 26px; grid-template-columns: 128px minmax(0,1fr); gap: 26px; box-shadow: none; background: #fff; }
.faculty-content { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 26px; }
.faculty-main { align-self: start; }
.faculty-meta-label { font-family: var(--sans); font-size: .8rem; }
.faculty-meta-row { margin-bottom: 7px; overflow-wrap: anywhere; }
.faculty-papers-title { font-family: var(--sans); font-size: .84rem; font-weight: 500; margin-bottom: 10px; }
.faculty-papers { max-width: none; gap: 8px; }
.faculty-paper-item { background: #f7f9fc; padding: 10px 12px; }
.faculty-paper-title { font-size: .86rem; line-height: 1.6; }
.faculty-paper-venue { font-family: var(--sans); font-size: .77rem; line-height: 1.55; margin-top: 4px; }
.member-card:hover { transform: none; }
@media (max-width: 1100px) {
  .faculty-content { grid-template-columns: minmax(0,1fr); gap: 18px; }
}
@media (max-width: 1000px) {
  .logo-sub { display: none; }
  .nav-toggle { display: inline-flex; order: 3; flex-shrink: 0; margin-left: 6px; }
  .header-right { order: 2; margin-left: auto; }
  nav#main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0; padding: 10px 16px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md); max-height: 70vh; overflow-y: auto; }
  body.nav-open #main-nav { display: flex; }
  nav#main-nav .nav-link { height: auto; min-height: 44px; padding: 10px 12px; border-bottom: 1px solid var(--border); border-radius: 0; white-space: normal; }
  nav#main-nav .nav-link.active { border-left: 3px solid var(--accent); background: #eef4fd; }
}
@media (max-width: 800px) {
  .platform-showcases { grid-template-columns: minmax(0,1fr); }
  .pub-item { grid-template-columns: 94px minmax(0,1fr); gap: 18px; padding: 22px; }
}
@media (max-width: 640px) {
  .inst-combined-logo { height: 52px; }
  .header-inner { padding: 0 16px; gap: 8px; }
  .header-right { margin-left: auto; }
  .logo-sub { display: none; }
  .hero { padding: 40px 20px 48px; }
  .hero-expand { white-space: normal; font-family: var(--sans); font-size: .82rem; }
  .hero-eyebrow { font-size: .75rem; letter-spacing: .02em; }
  .page-hero { padding: 28px 20px; }
  .page-wrap { padding: 24px 16px 40px; }
  .section { padding: 28px 0; }
  .section-title { font-size: 1.3rem; }
  .paper-tools { padding: 16px 16px 0; }
  .paper-tools-main { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .paper-tools input, .paper-tools select { font-size: 16px; }
  .paper-topic-row { flex-direction: column; gap: 8px; margin: 14px 0; }
  .paper-topics .filter-btn { min-height: 40px; }
  .pub-item { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 20px 18px; }
  .pub-item:first-child { padding-top: 20px; }
  .pub-venue-badge { padding-top: 0; }
  .pub-title { font-size: 1rem; }
  .pub-link-btn { min-height: 40px; padding: 7px 14px; }
  .faculty-list .member-card { grid-template-columns: 80px minmax(0,1fr); gap: 16px; padding: 18px; }
  .faculty-list .member-avatar { align-self: start; }
  .faculty-list .member-name { font-size: 1.1rem; }
  .faculty-meta { font-size: .83rem; }
  .platform-copy { padding: 20px; }
  .section-head { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
