/* 서울대학교 임상약리학 협동과정: 공개 사이트 공통 스타일 (2026-12-02 재설계, Django 템플릿용)
   검정과 흰색 바탕, 굵은 글자, 여섯 학문의 선 색. 모서리는 각지게, 본문 글자는 16px 아래로 내리지 않는다.
   첫 화면 전용 배치는 home.css 에 있다. */

:root {
  --k: #0a0a0a;
  --w: #ffffff;
  --g: #8c8c8c;
  --g2: #5c5c5c;
  --line: rgba(10, 10, 10, .16);
  --soft: #f1f1f1;
  --blue: #3d6bff;
  --red: #ff4b33;
  --green: #17c27a;
  --yellow: #ffd60a;
  --violet: #a066ff;
  --orange: #ff9a1f;
  --link: #2a55e8;
  --x: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --t-max: clamp(26px, 3vw, 44px);
  --t-title: clamp(24px, 2.5vw, 36px);
  --t-sub: clamp(20px, 1.7vw, 24px);
  --font: "Pretendard Variable", Pretendard, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); -webkit-text-size-adjust: 100%; }
html:has(.toc) { scroll-padding-top: calc(var(--topbar-h) + 72px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--w); color: var(--k);
  font-family: var(--font); font-size: 18px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--k); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
button { font: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.035em; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.sq { display: inline-block; width: 12px; height: 12px; flex: none; background: var(--c, var(--k)); }

.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--yellow); color: var(--k); padding: 10px 14px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; color: var(--k); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--x); }
.wrap--narrow { max-width: 1000px; }
main { position: relative; }

/* 색 선이 지나가며 드러내는 글자(scripts/motion-core.js). 스크립트가 못 돌면 5초 뒤 그냥 보인다.
   visibility 가 아니라 opacity 로 숨긴다. 화면 낭독기의 제목 목록에서 빠지지 않게 하기 위해서다. */
.fx-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
[data-rv] { animation: rv-fallback 1ms 5s both; }
@keyframes rv-fallback { from { opacity: 0; } to { opacity: 1; } }
.is-fx [data-rv] { animation: none; opacity: 0; }
/* 하위 페이지: 선 없이 천천히 떠오른다(static/js/page-motion.js). */
.is-calm [data-rv] { animation: none; opacity: 0; transform: translateY(14px); transition: opacity .7s ease var(--rv-delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--rv-delay, 0ms); }
.is-calm [data-rv].rv-on { opacity: 1; transform: none; }
.is-fx [data-rv].rv-on { opacity: 1; }

/* ---------- 상단 막대 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: #0a0a0a; color: #fff; }
.topbar__inner { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brandmark { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brandmark:hover { color: #fff; }
.brandmark img { width: 34px; height: auto; flex: none; filter: brightness(0) invert(1); }
.brandmark span { display: flex; flex-direction: column; min-width: 0; }
.brandmark b { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a, .mobilenav nav a { color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; padding: 8px 14px; white-space: nowrap; }
.mainnav a:hover { color: #ffd60a; }
.mainnav a[aria-current="page"] { color: #ffd60a; }
.mainnav a.is-cta { margin-left: 10px; background: #ffd60a; color: #0a0a0a; padding: 10px 18px; }
.mainnav a.is-cta:hover, .mainnav a.is-cta[aria-current="page"] { background: #fff; color: #0a0a0a; }
.mobilenav { display: none; position: relative; }
.mobilenav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.mobilenav summary::-webkit-details-marker { display: none; }
.mobilenav summary span { display: block; width: 24px; height: 3px; background: #fff; }
.mobilenav nav { position: fixed; left: 0; right: 0; top: var(--topbar-h); background: #0a0a0a; padding: 8px clamp(16px, 4vw, 48px) 32px; display: flex; flex-direction: column; }
.mobilenav nav a { padding: 14px 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; border-top: 1px solid rgba(255, 255, 255, .14); }
.mobilenav nav a[aria-current="page"] { color: #ffd60a; }
@media (max-width: 960px) { .mainnav { display: none; } .mobilenav { display: block; } }
@media (max-width: 420px) { .brandmark b { font-size: 16px; } }

/* ---------- 단추 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; font-weight: 800; font-size: 18px; text-decoration: none; border: 0; background: var(--k); color: var(--w); cursor: pointer; }
.btn:hover { background: var(--yellow); color: var(--k); }
.btn--light { background: var(--w); color: var(--k); }
.btn--ghost { background: transparent; color: var(--w); box-shadow: inset 0 0 0 2px var(--w); }
.btn--ghost:hover { background: var(--w); color: var(--k); }
.btn--line { min-height: 46px; padding: 0 20px; font-size: 17px; background: transparent; color: var(--k); box-shadow: inset 0 0 0 2px var(--k); }
.btn--line:hover { background: var(--k); color: var(--w); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vw, 40px); }

/* ---------- 페이지 머리: 검정 바탕, 두 줄 제목, 오른쪽에 여섯 선 ---------- */
.pagehero { background: var(--k); color: var(--w); padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.pagehero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.pagehero h1 { margin: 0; font-size: clamp(30px, 4vw, 56px); line-height: 1.16; letter-spacing: -0.045em; }
.pagehero h1 b, .pagehero h1 span { display: table; font-weight: inherit; }
.pagehero h1 span { color: var(--g); }
.pagehero__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(24px, 4vw, 40px); font-size: 18px; font-weight: 700; }
.pagehero__nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--w); text-decoration: none; }
.pagehero__nav a:hover { color: var(--w); text-decoration: underline; text-decoration-thickness: 2px; }
.pagehero__mark { display: block; width: clamp(150px, 18vw, 240px); height: auto; }
.pagehero__mark rect { animation: mark-in .8s ease both; animation-delay: calc(var(--i) * 80ms + 200ms); }
@keyframes mark-in { from { opacity: 0; } }
@media (max-width: 720px) { .pagehero__grid { grid-template-columns: 1fr; } .pagehero__mark { display: none; } .pagehero__nav { gap: 0 24px; } }

/* ---------- 본문 구역: 왼쪽 제목, 오른쪽 내용 ---------- */
.band { padding: clamp(48px, 7vw, 96px) 0; }
.toc { position: sticky; top: var(--topbar-h); z-index: 10; background: var(--w); border-bottom: 1px solid var(--line); }
.toc ol { list-style: none; margin: 0 auto; max-width: var(--max); padding: 0 var(--x); display: flex; gap: 0 28px; overflow-x: auto; scrollbar-width: none; }
.toc ol::-webkit-scrollbar { display: none; }
.toc a { display: flex; align-items: center; gap: 8px; padding: 16px 0; white-space: nowrap; font-size: 17px; font-weight: 700; color: var(--g2); text-decoration: none; }
.toc a:hover, .toc a[aria-current] { color: var(--k); }
.toc a[aria-current]::before { content: ""; width: 10px; height: 10px; background: var(--blue); }
.toc li:nth-child(6n + 2) a::before { background: var(--red); }
.toc li:nth-child(6n + 3) a::before { background: var(--green); }
.toc li:nth-child(6n + 4) a::before { background: var(--yellow); }
.toc li:nth-child(6n + 5) a::before { background: var(--violet); }
.toc li:nth-child(6n + 6) a::before { background: var(--orange); }

.docsec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 80px); padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); --c: var(--blue); }
.docsec:first-child { border-top: 0; }
.docsec:nth-of-type(6n + 2) { --c: var(--red); }
.docsec:nth-of-type(6n + 3) { --c: var(--green); }
.docsec:nth-of-type(6n + 4) { --c: var(--yellow); }
.docsec:nth-of-type(6n + 5) { --c: var(--violet); }
.docsec:nth-of-type(6n + 6) { --c: var(--orange); }
.docsec__head { position: sticky; top: calc(var(--topbar-h) + 32px); align-self: start; }
.toc ~ .doc .docsec__head { top: calc(var(--topbar-h) + 88px); }
.docsec__head h2 { margin: 0; font-size: var(--t-title); display: flex; align-items: baseline; gap: 14px; }
.docsec__head h2::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--c); }
.docsec__head p { margin: 8px 0 0 28px; font-size: 18px; font-weight: 700; color: var(--g2); }
.docsec__body { min-width: 0; }
.docsec__body > :first-child { margin-top: 0; }
.docsec__body > :last-child { margin-bottom: 0; }
.docsec__body p, .docsec__body li { color: #222; }
.docsec__body strong { color: var(--k); }
.docsec__body :is(ol, ul):not([class]) { padding-left: 1.3em; }
.docsec__body li { margin: 6px 0; }
.h-sub, .subhead { font-size: var(--t-sub); margin: 44px 0 12px; }
.h-sub:first-child, .subhead:first-child { margin-top: 0; }
.subhead small { font-size: 18px; font-weight: 700; color: var(--g2); margin-left: 8px; }
.lede { margin: 0 0 1em; font-size: var(--t-sub); font-weight: 700; line-height: 1.55; letter-spacing: -0.02em; color: var(--k) !important; }
.note { color: var(--g2); }
.more { margin: 20px 0 0; font-weight: 800; }
.more a { color: var(--k); text-decoration: none; border-bottom: 2px solid currentColor; }
@media (max-width: 900px) {
  .docsec { grid-template-columns: 1fr; }
  .docsec__head { position: static; }
}

.table-wrap { overflow-x: auto; margin: 12px 0 16px; border-top: 1px solid var(--k); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 17px; }
.table-wrap th, .table-wrap td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.table-wrap th { font-weight: 800; }

.hubcard { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); background: var(--k); color: var(--w); text-decoration: none; }
.hubcard:hover { background: var(--yellow); color: var(--k); }
.hubcard b { font-size: var(--t-title); letter-spacing: -0.04em; line-height: 1.2; }
.hubcard span { font-size: 18px; font-weight: 700; }

/* ---------- 펼침 목록(교과목, FAQ) ---------- */
.course-list { border-top: 1px solid var(--k); }
.course-item { border-bottom: 1px solid var(--line); }
.course-item summary { list-style: none; cursor: pointer; padding: 18px 48px 18px 0; position: relative; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1.4; }
.course-item summary::-webkit-details-marker { display: none; }
.course-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; line-height: 1; }
.course-item[open] summary::after { content: "\2212"; }
.course-item summary:hover { color: var(--link); }
.course-body { padding: 0 0 24px; }
.course-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; margin: 0 0 14px; font-size: 16px; }
.course-meta div { display: flex; gap: 10px; }
.course-meta dt { color: var(--g2); font-weight: 600; flex: none; }
.course-meta dd { margin: 0; }
.course-desc { margin: 0; }
@media (max-width: 640px) { .course-meta { grid-template-columns: 1fr; } }

/* ---------- 도식(협동과정 소개) ---------- */
/* 본문 사이에 들어가는 검정 판. 글자는 모두 실제 글자이고(그림 파일이 아니다), 색은 여섯 선 색만 쓴다. */
.fig { margin: 40px 0; padding: clamp(20px, 3.6vw, 44px); background: var(--k); color: var(--w); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fig ul, .fig ol { list-style: none; margin: 0; padding: 0; }
.fig li, .fig p { margin: 0; color: inherit; }

/* 흐름: 왼쪽 항목 → 곡선 → 가운데 블록 → 곡선 → 오른쪽 항목. 선은 칸 크기에 맞춰 늘어나고 굵기는 그대로다. */
.flow { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto minmax(40px, 1fr) auto; grid-template-areas: "src in hub out dst"; font-size: 17px; font-weight: 700; line-height: 1.35; }
.flow--out { grid-template-columns: auto minmax(40px, 1fr) auto; grid-template-areas: "hub out dst"; }
.flow__src { grid-area: src; }
.flow__in { grid-area: in; }
.flow__hub { grid-area: hub; }
.flow__out { grid-area: out; }
.flow__dst { grid-area: dst; }
.flow__col { display: grid; grid-auto-rows: 1fr; }
.flow__col li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 0; }
.flow__src li { justify-content: flex-end; text-align: right; }
.flow__link { position: relative; }
.flow__link svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow__link path { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.flow__v { display: none; }
.flow__hub { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 24px; background: var(--w); color: var(--k); }
.flow__hub b { font-size: var(--t-sub); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.flow__hub b span { display: block; }
.flow__hub small { font-size: 16px; font-weight: 700; color: var(--g2); }
.flow--goal .flow__hub b { font-size: 20px; }
.flow--goal .flow__dst li { max-width: 8.2em; font-size: var(--t-sub); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
/* 도식이 나타난 뒤 곡선이 흐르는 방향으로 드러난다. */
.is-calm .flow__link svg { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.5, 0, .2, 1) .35s; }
.is-calm .flow__out svg { transition-delay: 1s; }
.is-calm .flow__out .flow__v { clip-path: inset(0 0 100% 0); }
.is-calm .rv-on .flow__link svg { clip-path: inset(0 0 0 0); }

/* 층: 아래의 바탕 위에 위층이 쌓인다. */
.tiers { display: grid; gap: 20px; }
.tiers__row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px 20px; align-items: center; }
.fig .tiers__label { font-size: 16px; font-weight: 700; line-height: 1.4; color: #bdbdbd; }
.tiers__label b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--w); }
.tiers__cells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; }
.tiers__cells li { display: grid; place-items: center; min-height: 64px; padding: 8px 6px; text-align: center; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.tiers__cells--top li { background: var(--w); color: var(--k); }
.tiers__cells--mid li { background: #333; color: var(--w); }
.tiers__cells--base li { background: var(--c); color: var(--k); }

/* 연표 */
.tl__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tl__list b { display: block; padding-bottom: 20px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.tl__list span { display: block; position: relative; padding: 24px 18px 0 0; border-top: 2px solid var(--w); font-size: 17px; font-weight: 600; line-height: 1.45; color: #d6d6d6; }
.tl__list span::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; background: var(--c); }

/* 수량: 네모 하나가 하나를 뜻한다. 켜진 네모는 구역 색을 쓴다. */
.units { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px clamp(20px, 3vw, 40px); align-items: start; }
.units__sq { display: grid; grid-template-columns: repeat(auto-fill, 16px); gap: 4px; max-width: 216px; margin-bottom: 14px; }
.units__sq i { aspect-ratio: 1; background: #444; }
.units__sq i.on { background: var(--c); }
.units__sq i.half { background: var(--c); opacity: .45; }
.units__sq i.w { background: var(--w); }
.fig .units__stat { margin-bottom: 26px; font-size: 17px; font-weight: 600; line-height: 1.45; color: #d6d6d6; }
.fig .units__stat:last-child { margin-bottom: 0; }
.units__stat b { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-size: var(--t-max); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; color: var(--w); font-variant-numeric: tabular-nums; }
.units__stat b .sq { align-self: center; }
.units__stat small { margin-left: -4px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.sq--off { background: #444; }
.sq--w { background: var(--w); }

@media (max-width: 720px) {
  .flow { grid-template-columns: auto minmax(28px, 1fr) 132px; grid-template-areas: "src in hub" "dst dst out"; font-size: 16px; }
  .flow__h { display: none; }
  .flow__v { display: block; }
  .flow__dst li { flex-direction: row-reverse; text-align: right; }
  .flow__hub { padding: 14px 12px; }
  .flow__hub b { font-size: 18px; }
  .flow--goal .flow__dst li { max-width: none; font-size: 18px; }
  .flow--out { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "hub hub" "out dst"; }
  .flow--out .flow__dst li { flex-direction: row; text-align: left; }
  .tiers__row { grid-template-columns: minmax(0, 1fr); }
  .tiers__label b { display: inline; margin-right: 10px; }
  .tiers__cells { grid-template-columns: repeat(var(--m, var(--n)), minmax(0, 1fr)); }
  .tiers__cells li { min-height: 56px; font-size: 16px; }
  .tl__list { grid-template-columns: minmax(0, 1fr); }
  .tl__list li { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 0 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid #333; }
  .tl__list li:first-child { border-top: 0; padding-top: 0; }
  .tl__list li:last-child { padding-bottom: 0; }
  .tl__list b { padding: 0; font-size: 18px; }
  .tl__list b::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; background: var(--c); }
  .tl__list span { padding: 0; border-top: 0; font-size: 16px; }
  .tl__list span::before { content: none; }
}

/* ---------- 구성원 ---------- */
.person { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "photo head" "photo bio"; grid-template-rows: auto 1fr; gap: 14px 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; padding-top: 0; }
.person__photo { grid-area: photo; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 18%; background: #ececec; display: block; }
.person__head { grid-area: head; }
.person__name { display: table; margin: 0; font-size: var(--t-sub); border-bottom: 2px solid currentColor; }
.person__name small { font-size: 17px; font-weight: 600; color: var(--g2); margin-left: 8px; letter-spacing: 0; }
.person__dept { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 17px; font-weight: 700; }
.person__role { font-size: 16px; color: var(--g2); }
.person__bio { grid-area: bio; }
.person__summary { margin: 0 0 20px; font-size: 17px; line-height: 1.75; color: #222; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .person { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "photo head" "bio bio"; gap: 16px 18px; align-items: start; }
}

/* ---------- 교수 상세(모달과 단독 페이지) ---------- */
/* 모달은 dialog 요소다. 여닫을 때 천천히 밝아지며 조금 올라온다. 닫힐 때도 같은 효과가 나도록 display 와 overlay 를 함께 전환한다. */
.profile { color: var(--k); }
dialog.profile {
  width: min(1120px, calc(100vw - 2 * var(--x))); max-width: none; max-height: none; padding: 0; border: 0; background: var(--w); overflow: hidden;
  opacity: 0; transform: translateY(14px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.2, .7, .2, 1), overlay .32s allow-discrete, display .32s allow-discrete;
}
dialog.profile[open] { opacity: 1; transform: none; }
dialog.profile::backdrop { background: rgba(10, 10, 10, 0); transition: background .32s ease, overlay .32s allow-discrete, display .32s allow-discrete; }
dialog.profile[open]::backdrop { background: rgba(10, 10, 10, .64); }
@starting-style {
  dialog.profile[open] { opacity: 0; transform: translateY(14px); }
  dialog.profile[open]::backdrop { background: rgba(10, 10, 10, 0); }
}
/* 모달이 떠 있는 동안 뒤 화면이 따라 움직이지 않게 한다. 스크롤바 자리는 남겨 화면이 옆으로 밀리지 않게 한다. */
html:has(dialog.profile[open]) { overflow: hidden; scrollbar-gutter: stable; }
.profile__close { position: absolute; top: 0; right: 0; z-index: 2; width: 56px; height: 56px; display: grid; place-content: center; border: 0; background: var(--k); color: var(--w); cursor: pointer; }
.profile__close:hover { background: var(--yellow); color: var(--k); }
.profile__close:focus-visible { outline-offset: -5px; outline-color: var(--yellow); }
.profile__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.profile__side { display: flex; flex-direction: column; gap: 24px; }
.profile__photo { display: block; width: 100%; max-width: 240px; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 18%; background: #ececec; }
.profile__name { margin: 0 0 14px; font-size: var(--t-title); }
.profile__name small { display: block; margin-top: 6px; font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--g); }
.profile__dept { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.profile__role { margin-top: 2px; font-size: 17px; color: var(--g2); }
.profile__link { display: inline-block; margin-top: 18px; font-size: 17px; font-weight: 800; color: inherit; text-decoration: none; border-bottom: 2px solid currentColor; }
.profile__link::after { content: " \2197"; }
.profile__link:hover { color: var(--yellow); }
.profile__body { min-width: 0; }
dialog.profile .profile__side { background: var(--k); color: var(--w); padding: 40px; max-height: calc(100dvh - 64px); overflow-y: auto; }
dialog.profile .profile__role { color: #bdbdbd; }
dialog.profile .profile__body { padding: 64px 72px 56px 56px; max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.profile--page .profile__grid { gap: clamp(32px, 5vw, 80px); padding-top: clamp(48px, 7vw, 88px); }
.profile--page .profile__link:hover { color: var(--link); }
.psec { margin-top: 44px; }
.psec:first-child { margin-top: 0; }
.psec h3 { margin: 0 0 12px; font-size: var(--t-sub); }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--k); }
.plist li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.6; color: #222; overflow-wrap: anywhere; }
.plist--labeled li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 0 20px; }
.plist__label { font-weight: 800; color: var(--k); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.psec__fold summary { list-style: none; cursor: pointer; position: relative; display: flex; align-items: baseline; gap: 12px; padding: 0 44px 12px 0; }
.psec__fold summary::-webkit-details-marker { display: none; }
.psec__fold summary h3 { margin: 0; }
.psec__fold summary span { font-size: 18px; font-weight: 700; color: var(--g2); }
.psec__fold summary::after { content: "+"; position: absolute; right: 4px; top: 0; font-size: 28px; font-weight: 400; line-height: 1; }
.psec__fold[open] summary::after { content: "\2212"; }
.psec__fold summary:hover h3 { color: var(--link); }
.psec__fold:not([open]) summary { border-bottom: 1px solid var(--k); }
@media (max-width: 860px) {
  /* 좁은 화면에서는 모달이 화면을 다 채우고, 사진과 이름이 위에, 내용이 아래에 온다. 안쪽 전체가 함께 스크롤된다. */
  dialog.profile { width: 100vw; height: 100dvh; margin: 0; }
  .profile__grid { grid-template-columns: minmax(0, 1fr); }
  dialog.profile .profile__grid { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; align-content: start; }
  .profile__side { flex-direction: row; align-items: flex-start; gap: 18px; }
  .profile__photo { width: 104px; flex: none; }
  dialog.profile .profile__side { padding: 28px 72px 28px var(--x); max-height: none; overflow: visible; }
  dialog.profile .profile__body { padding: 32px var(--x) 48px; max-height: none; overflow: visible; }
  .profile--page .profile__grid { gap: 32px; }
  .plist--labeled li { grid-template-columns: minmax(0, 1fr); }
  .plist__label:empty { display: none; }
}
.namegrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 32px; border-top: 1px solid var(--k); }
.namegrid li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 18px; line-height: 1.45; margin: 0; }
.namegrid li span { display: block; font-weight: 500; font-size: 16px; color: var(--g2); }
@media (max-width: 640px) { .namegrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 20px; } }

/* 관련 사이트 카드. 카드는 정사각형이고 칸 너비가 같아서 모든 카드의 가로세로가 같다. */
.sitegrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sitegrid li { margin: 0; min-width: 0; }
.site { display: flex; flex-direction: column; aspect-ratio: 1; min-height: 0; overflow: hidden; background: var(--w); border: 1px solid var(--line); color: var(--k); text-decoration: none; transition: border-color .25s ease; }
a.site:hover, a.site:focus-visible { border-color: var(--k); }
.site__logo { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 15% 14%; background: var(--w); }
.site__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
/* 이름 칸은 세 줄 높이를 기본으로 해서 로고 칸의 높이가 카드마다 같다. 이름이 더 길면 네 줄까지 늘어나고 그만큼 로고 칸이 줄어든다. */
.site__name { flex: none; margin: 12px 16px 14px; min-height: 3.9em; font-size: 16px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
a.site .site__name::after { content: " \2197"; color: var(--g); }
/* 로고가 없는 카드는 이름을 크게, 아래쪽에 둔다. */
.site__name:first-child { margin-top: auto; min-height: 0; font-size: var(--t-sub); -webkit-line-clamp: 5; line-clamp: 5; }
.site:has(> .site__name:first-child) { background: var(--soft); border-color: transparent; }
a.site:has(> .site__name:first-child):hover, a.site:has(> .site__name:first-child):focus-visible { border-color: var(--k); }
@media (max-width: 640px) {
  .sitegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .site__name { margin: 8px 12px 10px; }
  .site__logo { padding: 12% 12%; }
  .site__name:first-child { font-size: 18px; }
}

/* ---------- 게시판 ---------- */
.board-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg__btn { display: inline-flex; align-items: center; background: var(--soft); color: var(--k); padding: 0 16px; min-height: 44px; font-size: 17px; font-weight: 700; text-decoration: none; }
.seg__btn:hover { background: var(--yellow); color: var(--k); }
.seg__btn[aria-current] { background: var(--k); color: var(--w); }
.search { flex: 0 1 340px; }
.search label { display: block; }
.search input { width: 100%; min-height: 48px; border: 0; border-bottom: 2px solid var(--k); border-radius: 0; padding: 8px 2px; font: inherit; font-size: 18px; background: transparent; }
.search input:focus { outline: none; border-bottom-color: var(--blue); }
.board-count { margin: 0 0 10px; font-size: 16px; color: var(--g2); }
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--k); }
.board__head, .board__row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 124px 112px 72px; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.board__head { font-size: 16px; font-weight: 700; color: var(--g2); }
.board__row { font-size: 18px; }
.board__empty { padding: 40px 0; border-bottom: 1px solid var(--line); color: var(--g2); }
.board__no, .board__views, .board__date, .board__author { color: var(--g2); font-size: 16px; font-variant-numeric: tabular-nums; }
.board__title { color: var(--k); text-decoration: none; font-weight: 700; min-width: 0; letter-spacing: -0.01em; }
.board__title:hover { color: var(--k); text-decoration: underline; text-decoration-thickness: 2px; }
.board__author { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat { font-size: 16px; font-weight: 800; color: var(--link); margin-right: 8px; text-decoration: none; }
.badge { display: inline-block; font-size: 16px; font-weight: 800; line-height: 1.4; color: var(--w); background: var(--k); padding: 0 8px; }
.clip { font-size: 16px; color: var(--g2); margin-left: 8px; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .board__head { display: none; }
  .board__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "a d"; gap: 4px 12px; }
  .board__no, .board__views { display: none; }
  .board__title { grid-area: t; }
  .board__author { grid-area: a; }
  .board__date { grid-area: d; }
  .search, .search input { width: 100%; }
}
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 32px; }
.pager__btn { min-width: 44px; min-height: 44px; background: var(--soft); color: var(--k); font-size: 17px; font-weight: 700; text-decoration: none; display: inline-grid; place-content: center; }
a.pager__btn:hover { background: var(--yellow); color: var(--k); }
.pager__btn[aria-current="page"] { background: var(--k); color: var(--w); }
.pager__btn[aria-disabled="true"] { opacity: .4; cursor: default; background: var(--soft); }
.pager__gap { min-width: 24px; display: inline-grid; place-content: center; color: var(--g2); }

/* ---------- 게시글 ---------- */
.crumbs { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.crumbs a { color: var(--k); text-decoration: none; }
.crumbs a::before { content: "\2190  "; }
.crumbs a:hover { text-decoration: underline; }
.post__head { border-bottom: 1px solid var(--k); padding-bottom: 24px; margin-bottom: 36px; }
.post__head h1 { font-size: var(--t-title); margin: 12px 0 14px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 16px; color: var(--g2); }
.prose { font-size: 18px; line-height: 1.8; color: #222; overflow-wrap: anywhere; }
.prose--small { font-size: 17px; line-height: 1.75; }
.prose--plain { white-space: pre-line; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; font-size: 16px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-size: 1.1em; margin: 1.4em 0 .5em; }
.files { margin-top: 48px; border-top: 1px solid var(--k); }
.files h2 { font-size: 20px; margin: 18px 0 6px; }
.files ul { list-style: none; margin: 0; padding: 0; }
.files li { border-bottom: 1px solid var(--line); }
.files a { display: block; padding: 12px 0; color: var(--k); font-weight: 700; text-decoration: none; }
.files a::before { content: "\2193  "; color: var(--link); }
.files a:hover { text-decoration: underline; }
.postnav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.postnav a:not(.btn) { color: var(--k); text-decoration: none; font-size: 17px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.postnav a:not(.btn):last-child { text-align: right; }
.postnav a:not(.btn):hover { text-decoration: underline; }
.postnav small { display: block; color: var(--g2); font-weight: 600; font-size: 16px; }
@media (max-width: 560px) { .postnav { grid-template-columns: 1fr 1fr; } .postnav .btn { grid-column: 1 / -1; grid-row: 2; } }

/* 공지 목록(입학 안내) */
.newslist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--k); }
.newslist li { margin: 0; }
.newslist a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--k); font-weight: 700; }
.newslist a:hover span { text-decoration: underline; text-decoration-thickness: 2px; }
.newslist time { flex: none; color: var(--g2); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- 바닥글 ---------- */
.footer { background: #0a0a0a; color: #fff; padding: clamp(56px, 7vw, 96px) 0 32px; border-top: 1px solid rgba(255, 255, 255, .18); }
.footer__inner { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.footer__brand { display: flex; align-items: flex-start; gap: 14px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: -0.03em; }
.footer__brand:hover { color: #fff; }
.footer__brand img { width: 48px; height: auto; filter: brightness(0) invert(1); }
.footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; align-content: start; }
.footer__links a { color: #fff; text-decoration: none; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.footer__links a:hover { color: #ffd60a; }
.footer__addr { font-style: normal; font-size: 16px; line-height: 1.7; color: #bdbdbd; }
.footer__meta { margin-top: 56px; font-size: 15px; color: #8c8c8c; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }

@media print {
  .topbar, .footer, .toc, .board-tools, .pager, .postnav, .hero__actions, .fx-layer, .pagehero__mark { display: none !important; }
  .pagehero { background: none; color: var(--k); }
  [data-rv] { opacity: 1 !important; animation: none !important; }
  .docsec { display: block; }
  .person__summary { display: block; }
}

/* 색과 순번을 주는 클래스. style 속성을 쓰지 않으려고 둔다(CSP 가 인라인 스타일을 막는다).
   c-* 는 --c 변수, bg-* 는 바탕색, st-* 는 선 색, i-* 는 차례로 나타나는 순번, n-* 와 m-* 는 칸 수다. */
.c-blue { --c: var(--blue) !important; } .c-red { --c: var(--red) !important; } .c-green { --c: var(--green) !important; } .c-yellow { --c: var(--yellow) !important; } .c-violet { --c: var(--violet) !important; } .c-orange { --c: var(--orange) !important; } .c-w { --c: var(--w) !important; } .c-g { --c: var(--g) !important; }
.bg-blue { background: var(--blue) !important; } .bg-red { background: var(--red) !important; } .bg-green { background: var(--green) !important; } .bg-yellow { background: var(--yellow) !important; } .bg-violet { background: var(--violet) !important; } .bg-orange { background: var(--orange) !important; } .bg-w { background: var(--w) !important; } .bg-g { background: var(--g) !important; }
.st-blue { stroke: var(--blue) !important; } .st-red { stroke: var(--red) !important; } .st-green { stroke: var(--green) !important; } .st-yellow { stroke: var(--yellow) !important; } .st-violet { stroke: var(--violet) !important; } .st-orange { stroke: var(--orange) !important; } .st-w { stroke: var(--w) !important; } .st-g { stroke: var(--g) !important; }
.i-0 { --i: 0; } .i-1 { --i: 1; } .i-2 { --i: 2; } .i-3 { --i: 3; } .i-4 { --i: 4; } .i-5 { --i: 5; } .i-6 { --i: 6; } .i-7 { --i: 7; } .i-8 { --i: 8; } .i-9 { --i: 9; } .i-10 { --i: 10; } .i-11 { --i: 11; } .i-12 { --i: 12; } .i-13 { --i: 13; } .i-14 { --i: 14; } .i-15 { --i: 15; } .i-16 { --i: 16; } .i-17 { --i: 17; } .i-18 { --i: 18; } .i-19 { --i: 19; } .i-20 { --i: 20; } .i-21 { --i: 21; } .i-22 { --i: 22; } .i-23 { --i: 23; } .i-24 { --i: 24; } .i-25 { --i: 25; } .i-26 { --i: 26; } .i-27 { --i: 27; } .i-28 { --i: 28; } .i-29 { --i: 29; } .i-30 { --i: 30; } .i-31 { --i: 31; } .i-32 { --i: 32; } .i-33 { --i: 33; } .i-34 { --i: 34; } .i-35 { --i: 35; } .i-36 { --i: 36; } .i-37 { --i: 37; } .i-38 { --i: 38; } .i-39 { --i: 39; } .i-40 { --i: 40; } .i-41 { --i: 41; } .i-42 { --i: 42; } .i-43 { --i: 43; } .i-44 { --i: 44; } .i-45 { --i: 45; } .i-46 { --i: 46; } .i-47 { --i: 47; } .i-48 { --i: 48; } .i-49 { --i: 49; } .i-50 { --i: 50; } .i-51 { --i: 51; } .i-52 { --i: 52; } .i-53 { --i: 53; } .i-54 { --i: 54; } .i-55 { --i: 55; } .i-56 { --i: 56; } .i-57 { --i: 57; } .i-58 { --i: 58; } .i-59 { --i: 59; } .i-60 { --i: 60; }
.n-3 { --n: 3; } .n-4 { --n: 4; } .n-6 { --n: 6; } .m-2 { --m: 2; } .m-3 { --m: 3; }
