/* ============================================================
   AIM Lab — Analytics & Information Management Lab, POSTECH
   ============================================================ */

:root {
  --red: #c5135e;
  --red-dark: #9c0f4a;
  --red-soft: #fdf2f6;
  --ink: #14161a;
  --ink-2: #3a4049;
  --muted: #6b7280;
  --line: #e6e8ec;
  --line-2: #f0f2f5;
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --bg-dark: #101216;
  --max: 1140px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .04), 0 8px 24px rgba(16, 18, 22, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px; flex: none;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: .82rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; color: var(--ink); font-size: 1.02rem; letter-spacing: -.02em; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.brand-short { display: none; }
.brand-name { white-space: nowrap; }

/* Two dropdowns make the nav wide — drop the strapline before the brand wraps. */
@media (max-width: 1220px) { .brand-sub { display: none; } }
@media (max-width: 1040px) { .brand-full { display: none; } .brand-short { display: inline; } }

@media (max-width: 600px) {
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .brand-sub { font-size: .66rem; }
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav .nav-link {
  display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 6px;
  color: var(--ink-2); font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav .nav-link:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav .nav-link.active { color: var(--red); font-weight: 600; }
.nav .caret { flex: none; opacity: .55; transition: transform .15s ease; }

/* The whole header row is the hover target, so the pointer never crosses a
   dead gap on its way from "Members" down into the menu. */
.nav-item { position: relative; padding: 18px 0; margin: -18px 0; }
.subnav {
  position: absolute; top: 100%; left: 0; min-width: 208px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }
.subnav a {
  display: block; padding: 9px 12px; border-radius: 6px; white-space: nowrap;
  color: var(--ink-2); font-size: .89rem; font-weight: 500; text-decoration: none;
}
.subnav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.subnav a.current { color: var(--red); font-weight: 600; background: var(--red-soft); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav .nav-link { padding: 12px 8px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav-item { position: static; padding: 0; margin: 0; }
  .nav .caret { display: none; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; background: transparent;
  }
  .subnav a { padding: 10px 8px; border-bottom: 1px solid var(--line-2); border-radius: 0; font-size: .88rem; }
  .subnav a.current { background: transparent; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 88% -8%, rgba(197,19,94,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
  padding: 76px 0 68px;
}
.hero .eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.hero h1 { max-width: 20ch; margin-bottom: .5em; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }

/* Facts sized like the buttons beneath them */
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-stat {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255,255,255,.72); color: var(--muted);
  font-size: .94rem; font-weight: 500; white-space: nowrap;
}
.hero-stat b { color: var(--ink); font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
@media (max-width: 520px) { .hero-stat { font-size: .86rem; padding: 9px 14px; } }

/* Screen-reader-only page title: pages open straight into their content. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; font-size: .94rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; transition: .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
main > .section:first-child { padding-top: 48px; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 36px; max-width: 70ch; }
.section-head h2 { margin-bottom: .4em; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 26px 22px; }
.stat b { display: block; font-size: 1.85rem; color: var(--ink); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: .18s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: #d8dbe1; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card .kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 10px; }

/* ---------- Research page ---------- */
.research-intro { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .research-intro { grid-template-columns: 1fr; gap: 8px; } }
.lede-head { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .5em; }
.research-intro .lede-head { margin-bottom: 0; }
.lede { font-size: 1.02rem; color: var(--ink-2); margin-bottom: .85em; }
.lede:last-child { margin-bottom: 0; }

.area-card { display: flex; flex-direction: column; padding: 20px 20px 18px; }
.area-card h3 { font-size: 1.08rem; margin-bottom: .45em; }
.area-card > p { margin-bottom: .75em; font-size: .91rem; line-height: 1.5; }
.area-card .topics { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line-2); }

ul.topics { list-style: none; padding-left: 0; margin: 0; font-size: .88rem; color: var(--muted); }
ul.topics li { position: relative; padding-left: 17px; margin-bottom: .3em; line-height: 1.45; font-size: .845rem; }
ul.topics li:last-child { margin-bottom: 0; }
ul.topics li::before {
  content: ""; position: absolute; left: 2px; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--red); opacity: .6;
}
ul.topics strong { color: var(--ink-2); }

/* The source art is 1536px wide, so cap the display width at half of that:
   on a 2x screen it then renders close to 1:1 instead of being upscaled. */
.lab-figure { margin: 0 0 40px; max-width: 768px; }
.lab-figure a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.lab-figure a:hover { border-color: #d0d3da; box-shadow: var(--shadow); }
.lab-figure img { width: 100%; height: auto; display: block; }

/* ---------- Prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: start; }
.news-item .news-main { min-width: 0; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--red); text-decoration: none; }
.news-item h3 .ko, .news-title .ko {
  display: block; font-weight: 500; color: var(--muted); margin-top: 2px;
}
.news-item h3 .ko { font-size: .88rem; }
.news-title .ko { font-size: .58em; margin-top: 8px; }

.news-thumb { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; background: #eef0f4; }
.news-item time { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-item .tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
  background: var(--red-soft); color: var(--red); margin-right: 10px; vertical-align: 2px;
}
.news-item h3 { font-size: 1rem; margin: 0 0 .25em; font-weight: 600; }
.news-item p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .news-item { grid-template-columns: 1fr auto; gap: 6px 16px; } .news-item time { grid-column: 1 / -1; } }
@media (max-width: 520px) { .news-item { grid-template-columns: 1fr; } .news-thumb { display: none; } }

/* ---------- News article ---------- */
.back-link { display: inline-block; font-size: .88rem; font-weight: 550; margin-bottom: 22px; }
.news-meta {
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); margin: 0 0 10px;
}
.news-title { font-size: clamp(1.7rem, 3.2vw, 2.25rem); margin-bottom: .8em; }

.news-article { max-width: 74ch; }
.news-article p { font-size: 1.02rem; line-height: 1.75; }
.news-more a { font-weight: 600; }

.news-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0 8px; }
.news-gallery.single { grid-template-columns: 1fr; }
.news-figure { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.news-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; transition: .25s ease; }
.news-gallery.single .news-figure img { aspect-ratio: auto; object-fit: contain; max-height: 620px; }
.news-figure:hover img { transform: scale(1.02); }
@media (max-width: 560px) { .news-gallery { grid-template-columns: 1fr; } }

.news-ko {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.news-ko h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.news-ko h3 { font-size: 1.06rem; margin-bottom: .6em; }
.news-ko p { font-size: .96rem; color: var(--ink-2); line-height: 1.75; }
.news-ko p.small { margin-top: 18px; }

.news-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line);
}
.news-nav-item {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-size: .92rem; font-weight: 550; text-decoration: none; background: #fff;
}
.news-nav-item:hover { border-color: var(--ink); text-decoration: none; }
.news-nav-item span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.news-nav-item.align-right { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .news-nav { grid-template-columns: 1fr; } .news-nav-item.align-right { text-align: left; grid-column: 1; } }

/* ---------- People ---------- */
.pi-card {
  display: grid; grid-template-columns: 156px 1fr; gap: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.pi-photo {
  width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius); background: #eef0f4;
}

.emeritus-card { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; }
.emeritus-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #eef0f4; }
.emeritus-card h3 { margin-bottom: .35em; }
.emeritus-card p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 560px) { .emeritus-card { grid-template-columns: 1fr; gap: 16px; } }
.pi-card h2, .pi-card h3 { font-size: 1.45rem; margin-bottom: .15em; }
.pi-affil { color: var(--muted); font-size: .93rem; margin-bottom: 1.2em; }
.role-list { list-style: none; padding: 0; margin: 0 0 1.4em; font-size: .92rem; }
.role-list li { position: relative; padding-left: 16px; margin-bottom: .3em; color: var(--ink-2); }
.role-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--red); opacity: .6;
}

ul.timeline { list-style: none; padding: 0; margin: 0; }
ul.timeline li {
  display: grid; grid-template-columns: 168px 1fr; gap: 20px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem;
}
ul.timeline li:last-child { border-bottom: 0; }
ul.timeline .when { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.timeline .what { color: var(--ink-2); }
ul.timeline.grants li { align-items: start; padding: 13px 0; }
.grant-meta { display: block; font-size: .84rem; color: var(--muted); margin-top: 3px; }
ul.timeline .what a { color: var(--ink-2); text-decoration: none; box-shadow: inset 0 -1px 0 var(--line); }
ul.timeline .what a:hover { color: var(--red); box-shadow: inset 0 -1px 0 var(--red); text-decoration: none; }
@media (max-width: 640px) {
  ul.timeline li { grid-template-columns: 1fr; gap: 2px; }
  ul.timeline .when { font-size: .82rem; }
}
.pi-role { color: var(--red); font-weight: 600; font-size: .95rem; margin-bottom: 1em; }
.meta-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.meta-list li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 5px 0; }
.meta-list dt, .meta-list .k { color: var(--muted); }
@media (max-width: 760px) { .pi-card { grid-template-columns: 1fr; gap: 24px; } .pi-photo { max-width: 160px; } }

.person {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px; transition: .18s ease;
}
.person:hover { box-shadow: var(--shadow); border-color: #d8dbe1; }
.person .photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  display: block; background: #eef0f4; margin-bottom: 14px;
}
.person-body { padding: 0; }
.person h4 { margin: 0 0 3px; font-size: 1rem; color: var(--ink); font-weight: 650; }
.person .role { font-size: .82rem; color: var(--muted); margin: 0 0 8px; line-height: 1.45; }
.person .mail { font-size: .8rem; word-break: break-word; color: var(--muted); margin: 0; }

.member-group {
  font-size: 1.15rem; padding-bottom: 12px; margin-bottom: 24px;
  border-bottom: 2px solid var(--line); display: flex; align-items: baseline; gap: 10px;
}
.member-group span {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--red);
  background: var(--red-soft); border-radius: 999px; padding: 3px 9px;
}

a.member-card { display: block; text-decoration: none; }
a.member-card:hover { text-decoration: none; }
a.member-card h3 { color: var(--ink); }
a.member-card:hover h3 { color: var(--red); }
a.member-card p { color: var(--muted); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--bg-soft); }
tbody tr:hover { background: var(--bg-soft); }

/* ---------- Publications ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; font-size: .86rem; font-weight: 550; padding: 7px 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; cursor: pointer; transition: .15s ease;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.pub-year { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--red); margin: 36px 0 10px; }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub {
  padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line-2);
  border-left: 2px solid transparent; font-size: .94rem;
}
.pub:hover { border-left-color: var(--red); background: var(--bg-soft); }
.pub .t { color: var(--ink); font-weight: 600; display: block; margin-bottom: 3px; }
.pub .a { color: var(--muted); font-size: .88rem; }
.pub .v { color: var(--ink-2); font-style: italic; }

.pub-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); text-decoration: none; cursor: pointer;
  line-height: 1.6;
}
.pill:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.pill-pdf { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.pill-pdf:hover { background: var(--red); color: #fff; border-color: var(--red); }

details.bib { display: inline-block; }
details.bib summary { list-style: none; }
details.bib summary::-webkit-details-marker { display: none; }
details.bib[open] summary.pill { background: var(--ink); border-color: var(--ink); color: #fff; }
.bib-body { position: relative; margin-top: 10px; width: 100%; }
.bib-body pre {
  background: #0f1115; color: #e6e8ec; border-radius: 8px; padding: 16px 18px; margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem; line-height: 1.65; overflow-x: auto; white-space: pre;
}
.bib-copy {
  position: absolute; top: 8px; right: 8px; font: inherit; font-size: .7rem; font-weight: 650;
  padding: 3px 10px; border-radius: 6px; border: 1px solid #3a4049;
  background: #1c1f26; color: #cfd3da; cursor: pointer;
}
.bib-copy:hover { background: #2a2e37; color: #fff; }
details.bib[open] { display: block; width: 100%; }
.count-note { font-size: .86rem; color: var(--muted); margin-bottom: 0; }

/* ---------- Logos / partners ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos span {
  font-size: .85rem; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--ink-2);
}

/* ---------- Callout ---------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  background: var(--bg-soft); border-radius: 8px; padding: 20px 22px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }

.code-block {
  background: #0f1115; color: #e6e8ec; border-radius: 8px; padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem; line-height: 1.7; overflow-x: auto; white-space: pre-wrap;
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--bg-dark); color: #e9eaee; border-radius: var(--radius);
  padding: 44px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #a7acb6; margin: 0; max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #a7acb6; padding: 56px 0 32px; margin-top: 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { color: #cfd3da; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #24272e; padding-top: 22px; font-size: .82rem; color: #7c828d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-mark { background: var(--red); }
.footer-brand strong { color: #fff; font-size: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Admission programme list (Join Us) ---------- */
.prose ul.prog-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.prog-list > li {
  border-left: 3px solid var(--red); background: #fbfbfc; border-radius: 0 6px 6px 0;
  padding: 14px 18px; margin-bottom: 12px;
}
.prog-list > li > a { font-weight: 650; display: block; margin-bottom: 4px; }
.prog-list > li > span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.prose h2 .h2-en { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.prose p.prog-en { color: var(--muted); font-size: .9rem; }
.prog-list > li > .en-name { display: block; color: var(--muted); font-size: .84rem; margin-bottom: 6px; }
@media (min-width: 900px) { .callout.join-aside { position: sticky; top: 96px; } }
.rights-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line, #e6e8ec); max-width: 78ch; }

/* ---------- POSTECH mark ---------- */
.footer-logo { display: inline-block; margin-top: 26px; }
.footer-logo img { height: 22px; width: auto; opacity: .8; transition: opacity .15s ease; }
.footer-logo:hover img { opacity: 1; }
.contact-logo {
  display: block; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.contact-logo img { height: 23px; width: auto; }
