/* =========================================================
   버블대학 — Bubble University
   말풍선 · 종이 · 잉크. 만화의 리듬을 UI 규칙으로 옮겼습니다.
   ========================================================= */

/* ---------- 1. 토큰 ---------- */

/* 로고 옆 워드마크용 귀여운 손글씨체 (Jua, '버블대학' 4자만 서브셋 = 2.8KB) */
@font-face {
  font-family: 'BU Cute';
  src: url('/static/fonts/bu-cute.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+BC84, U+BE14, U+B300, U+D559;
}

:root {
  --paper: #fbfaf6;
  --paper-2: #f4f1e8;
  --paper-3: #ebe6d8;
  --ink: #15171c;
  --ink-2: #3d4148;
  --ink-3: #6b7076;
  --ink-4: #9aa0a6;
  --line: #ddd8ca;
  --line-strong: #15171c;

  --blue: #2f5bff;
  --violet: #7a4bff;
  --green: #0b8f6f;
  --orange: #d4632f;
  --teal: #127a92;
  --rose: #b03a7a;
  --red: #c9333a;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-soft: 0 12px 32px rgba(20, 20, 24, 0.1);

  --wrap: 1080px;
  --wrap-wide: 1220px;
  --wrap-narrow: 720px;

  --header-h: 68px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic',
    'Noto Sans KR', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
}

/* ---------- 2. 리셋 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-3);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 3. 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid var(--ink);
}

.site-header__inner {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 6px 0;
}

.brand__logo {
  display: block;
  height: 42px;
  width: auto;
  flex: 0 0 auto;
  /* 로고 잉크가 헤더 선보다 살짝 위로 떠 보이도록 */
  margin-top: -2px;
  transition: transform 0.16s ease;
}

.brand:hover .brand__logo,
.brand:focus-visible .brand__logo {
  transform: rotate(-2deg) scale(1.03);
}

.brand__name {
  font-family: 'BU Cute', var(--font);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  /* 손글씨체는 베이스라인이 살짝 내려가 보여 광학 보정한다 */
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  color: var(--ink-2);
  white-space: nowrap;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.site-nav__no {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-4);
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav a.is-active .site-nav__no {
  color: var(--blue);
}

.site-nav__ext {
  font-size: 0.62rem;
  line-height: 1;
  color: var(--ink-4);
  transform: translateY(-1px);
}

.site-nav a:hover .site-nav__ext {
  color: var(--blue);
}

.site-header__auth {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.15s ease;
}

.user-chip:hover {
  border-color: var(--ink);
}

.user-chip__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.user-chip__name {
  font-size: 0.86rem;
  font-weight: 700;
  max-width: 9ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge--admin {
  background: var(--ink);
  color: var(--paper);
}

.inline-form {
  display: inline;
  margin: 0;
}

.inline-form button {
  background: none;
  border: 0;
  padding: 0;
}

/* 모바일 메뉴 버튼 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 4. 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  text-align: center;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: #000;
}

.btn--ghost {
  background: transparent;
}

.btn--ghost:hover {
  background: var(--paper-2);
}

.btn--sm {
  padding: 7px 14px;
  font-size: 0.86rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--sm:hover {
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--block {
  width: 100%;
}


/* ---------- 5. 페이지 뼈대 ---------- */
.main {
  display: block;
  min-height: 60vh;
}

.page {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 96px;
}

.page--narrow {
  max-width: var(--wrap-narrow);
}

.page-head {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 24px;
}

.page-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-head__no {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-head__no span {
  color: var(--ink-4);
  margin-left: 6px;
}

.page-head h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.page-head__sub {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--ink-3);
  font-weight: 600;
}

.page-head__lead {
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--ink-2);
  max-width: 66ch;
}

.page-head__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.crumb a {
  color: var(--ink-2);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.crumb a:hover {
  border-color: var(--ink);
}

/* ---------- 6. 히어로 ---------- */
.hero {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
}

.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  /* 배너 이미지가 빠져 히어로가 곧 첫 화면이므로 위쪽 여백을 넉넉히 준다 */
  padding: 88px 24px 60px;
}

/* 메인 슬로건 — 배너 대신 큰 글자로 세운다.
   "만화/웹툰은 / 버블대학으로 통한다" 두 줄로 끊는다.
   둘째 줄의 검은 말풍선은 줄 박스보다 키가 크므로, 줄 간격을 말풍선 높이 이상으로
   확보해 윗줄 글자를 덮지 않게 한다 (아래 bubble 실측값 기준 line-height 1.28). */
.hero__title {
  font-size: clamp(2.3rem, 6.6vw, 4.9rem);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.hero__title-line {
  display: block;
}

/* "만화/웹툰" — 슬로건의 주어에 파란 강조를 준다 */
.hero__title-key {
  color: var(--blue);
}

.hero__bubble {
  display: inline-block;
  /* line-height:1 로 내부 여백을 최소화해야 줄 박스를 덜 밀어낸다 */
  line-height: 1;
  background: var(--ink);
  color: var(--paper);
  padding: 0.08em 0.4em 0.12em;
  margin-right: 0.06em;
  vertical-align: baseline;
  border-radius: 22px 22px 22px 4px;
  transform: rotate(-0.7deg);
}

.hero__lead {
  margin-top: 26px;
  max-width: 62ch;
  font-size: 1.06rem;
  color: var(--ink-2);
  line-height: 1.8;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__stat {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero__stat li {
  background: #fff;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero__stat span {
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 600;
}

/* ---------- 7. 섹션 ---------- */
.sec {
  margin-top: 64px;
  scroll-margin-top: 90px;
}

.sec:first-of-type {
  margin-top: 0;
}

.sec__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.sec__no {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
}

.sec__head h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sec__more {
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-2);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}

.sec__more:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.sec__lead {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 68ch;
  margin-bottom: 22px;
}

.note-line {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--ink-3);
  padding-left: 14px;
  border-left: 3px solid var(--line);
  line-height: 1.7;
}

.note-line--warn {
  border-left-color: var(--orange);
  color: var(--ink-2);
}

.empty-line {
  padding: 26px 0;
  color: var(--ink-3);
  font-size: 0.94rem;
}

.empty-line a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1.5px solid var(--ink);
}

/* ---------- 8. 문서형 콘텐츠 ---------- */
.def-list {
  border-top: 1.5px solid var(--line);
}

.def-list__row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1.5px solid var(--line);
}

.def-list dt {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-top: 2px;
}

.def-list dt::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 2px;
}

.def-list dd {
  font-size: 0.98rem;
  color: var(--ink-2);
  line-height: 1.75;
}

/* 소개 섹션 — 초대총장 사진 + 이름 */
.president-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.president-line__photo {
  display: block;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 50% 30%;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
}

.president-line__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.president-line__name {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.35;
}

.president-line__role {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.president-line__text {
  margin-top: 5px;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* 초대총장 약력 목록 */
.president-line__career {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.president-line__career li {
  position: relative;
  padding-left: 14px;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.president-line__career li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.president-line__contact {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--ink-3);
  font-family: var(--mono);
  line-height: 1.6;
  word-break: break-all;
}

.president-line__contact a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.president-line__contact a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  counter-reset: prob;
}

.problem-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 3px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-sm);
}

.problem-card__no {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.problem-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* 표 */
.table-wrap {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow-x: auto;
  background: #fff;
}

.doc-table {
  font-size: 0.9rem;
  min-width: 460px;
}

.doc-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--ink-3);
  border-bottom: 1.5px solid var(--line);
}

.doc-table thead th {
  background: var(--paper-2);
  text-align: left;
  padding: 11px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}

.doc-table tbody th {
  text-align: left;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink);
  vertical-align: top;
  width: 26%;
  min-width: 110px;
  background: #fcfbf8;
}

.doc-table td {
  padding: 13px 16px;
  color: var(--ink-2);
  vertical-align: top;
  border-left: 1.5px solid var(--line);
  line-height: 1.65;
}

.doc-table tbody tr + tr th,
.doc-table tbody tr + tr td {
  border-top: 1.5px solid var(--line);
}

.doc-table__line {
  display: block;
}

.table-caveat {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.7;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
}

/* 칩 · 아바타 · 배지 */
.chip {
  display: inline-block;
  padding: 2px 9px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff;
  white-space: nowrap;
  line-height: 1.5;
}

.chip--dept {
  border-color: var(--dept, var(--ink));
  color: var(--dept, var(--ink));
}

.chip--pin {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* 구인·구직 글머리 칩 */
.chip--hire {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.chip--seek {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.chip--gig {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.chip--collab {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  flex: 0 0 auto;
  line-height: 1;
}

.avatar--sm {
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
}

.avatar--md {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

/* 알림 */
.alert {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.alert--error {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f5;
  box-shadow: 3px 3px 0 var(--red);
}

.alert--ok {
  border-color: var(--green);
  color: var(--green);
  background: #f2fbf8;
  box-shadow: 3px 3px 0 var(--green);
}

.alert--info {
  background: var(--paper-2);
}

/* 배너 */
.banner {
  margin: 0 0 32px;
  padding: 20px 22px;
  border: 2px solid var(--ink);
  border-left-width: 8px;
  border-radius: var(--radius);
  background: #fff;
}

.banner strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.banner p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.banner--key {
  background: var(--paper-2);
}

/* 본문 프로즈 */
.prose {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.85;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-top: 34px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.prose h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 24px;
}

.prose ul {
  padding-left: 2px;
}

.prose li {
  position: relative;
  padding-left: 18px;
  margin-top: 8px;
}

.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--ink-4);
  border-radius: 50%;
}

.prose strong {
  color: var(--ink);
  font-weight: 800;
}

/* ---------- 9. 학과 ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.dept-card {
  position: relative;
}

.dept-card__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px 20px 18px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 3px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.13s ease, box-shadow 0.13s ease;
  overflow: hidden;
}

.dept-card__link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.dept-card__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--dept, var(--ink));
}

.dept-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dept-card__top h2 {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.dept-card__what {
  font-size: 0.87rem;
  color: var(--ink-2);
  line-height: 1.65;
  min-height: 2.9em;
}

.dept-card__stats {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 600;
  padding-top: 2px;
}

.dept-card__stats strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

/* ── 메인페이지 학과 스트립 ── */
/* PC에서는 한 줄에 두 칸씩. 좁은 화면에서는 media query에서 1칸으로 떨어진다. */
.dept-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
}

.dept-strip__item {
  position: relative;
}

.dept-strip__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 3px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.13s ease, box-shadow 0.13s ease;
  overflow: hidden;
}

.dept-strip__link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* 이미지를 쓰지 않는 텍스트 카드.
   포스터를 없앴으므로 카드 전체를 텍스트가 채운다 — 여백을 넉넉히 주고,
   두 칸 그리드에서 카드 높이가 들쭉날쭉하지 않도록 최소 높이를 잡는다. */
.dept-strip__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 118px;
  padding: 16px 18px 18px;
  border-top: 5px solid var(--dept, var(--ink));
}

.dept-strip__name {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.dept-strip__what {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-3);
}

.dept-strip__goal {
  align-self: flex-start;
  margin-top: 3px;
  padding: 2px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dept, var(--ink));
  background: #fff;
  border: 1.5px solid var(--dept, var(--line));
  border-radius: 999px;
}

/* 학과 상세 히어로 */
.dept-hero {
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.dept-hero__badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border: 1.5px solid var(--dept, var(--ink));
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--dept, var(--ink));
  background: #fff;
}

.dept-hero__headline {
  margin-top: 12px;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.55;
}

/* 학과 핵심 항목 */
.dept-points {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  counter-reset: dp;
}

.dept-point {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 3px;
  box-shadow: var(--shadow-sm);
}

.dept-point__no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dept, var(--ink));
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.dept-point h3 {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.dept-point p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* 학과 마무리 카피 */
.dept-closing {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--paper-2);
  border-left: 5px solid var(--dept, var(--ink));
  border-radius: var(--radius);
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.85;
}

.dept-hero__bubble {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px 18px 18px 4px;
  padding: 28px 26px 24px;
  box-shadow: var(--shadow);
  border-top: 8px solid var(--dept, var(--ink));
}

.dept-hero__goal {
  position: absolute;
  top: -15px;
  right: 20px;
}

.dept-hero__goal .chip {
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.dept-hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.dept-hero__what {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.dept-hero__greeting {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border-left: 4px solid var(--dept, var(--ink));
}

.dept-hero__greeting p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.75;
}

.dept-hero__greeting cite {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--ink-3);
  font-weight: 700;
}

.dept-hero__actions {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dept-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dept-chips a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.dept-chips a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--dept, var(--ink));
}

.dept-chips__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dept, var(--ink));
}

/* ---------- 10. 갤러리 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.gallery__item > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.13s ease, box-shadow 0.13s ease;
}

.gallery__item > a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.gallery__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item > a:hover .gallery__frame img {
  transform: scale(1.035);
}

.gallery__host {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  max-width: 78%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery__body {
  display: block;
  padding: 13px 15px 4px;
  flex: 1 1 auto;
}

.gallery__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery__sub {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 15px 13px;
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 600;
}

.gallery__author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery__counts {
  display: inline-flex;
  gap: 9px;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.gallery__meta,
.gallery__title + .gallery__meta {
  display: block;
  padding: 0 15px 13px;
  font-size: 0.76rem;
  color: var(--ink-4);
}

/* 학과 상세 등에서 쓰는 작은 갤러리 */
.gallery--mini {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.gallery--mini .gallery__body {
  padding-bottom: 13px;
}

.gallery--mini .gallery__title {
  font-size: 0.88rem;
  -webkit-line-clamp: 1;
}

/* 태그바 */
.tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 26px;
}

.tagbar li a {
  display: inline-block;
  padding: 4px 11px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tagbar li a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.tagbar li a.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.tagbar--static {
  margin: 22px 0 0;
}

/* 필터 */
.filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.filters__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.filters__field select {
  padding: 7px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  min-width: 130px;
}

.filters__field select:focus {
  border-color: var(--ink);
  outline-offset: 1px;
}

.filters__reset {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  margin-bottom: 6px;
}

.filters__reset:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.filter-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-bottom: 16px;
}

/* 빈 상태 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 52px 24px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-3);
  background: #fff;
}

.empty__art {
  color: var(--ink-4);
  margin-bottom: 4px;
}

.empty h3 {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.empty p {
  font-size: 0.88rem;
  max-width: 44ch;
  line-height: 1.7;
}

.empty .btn {
  margin-top: 12px;
}

/* 안내 접기 */
.guide {
  margin-top: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 18px;
}

.guide[open] {
  padding-bottom: 18px;
}

.guide summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide summary::-webkit-details-marker {
  display: none;
}

.guide summary::before {
  content: '+';
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink-3);
  width: 14px;
}

.guide[open] summary::before {
  content: '−';
}

.guide__list {
  display: grid;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--ink-2);
  line-height: 1.7;
  padding: 4px 0 6px;
}

.guide__list li {
  position: relative;
  padding-left: 15px;
}

.guide__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  background: var(--ink-4);
  border-radius: 50%;
}

.guide__list--plain {
  padding: 0;
}

.guide .table-wrap {
  margin-top: 14px;
}

/* ---------- 11. 폼 ---------- */
.form {
  display: grid;
  gap: 22px;
  padding: 28px 26px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 3px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.field > label,
.field > legend {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 0;
}

.field input[type='text'],
.field input[type='email'],
.field input[type='password'],
.field input[type='url'],
.field input[type='number'],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.94rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-4);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2315171c' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

.field__hint {
  font-size: 0.79rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.field input:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

/* 라디오 카드 */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 9px;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 13px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.1s ease;
  height: 100%;
}

.radio-card__body strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.radio-card__body span {
  font-size: 0.74rem;
  color: var(--ink-3);
  font-weight: 600;
}

.radio-card:hover .radio-card__body {
  border-color: var(--ink-4);
}

.radio-card input:checked + .radio-card__body {
  border-color: var(--dept, var(--ink));
  background: #fff;
  box-shadow: 3px 3px 0 var(--dept, var(--ink));
}

.radio-card input:focus-visible + .radio-card__body {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* 학과 다중 선택 (최대 3개) — 체크박스형 카드 */
.dept-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 9px;
  margin-top: 4px;
}

.dept-pick {
  position: relative;
  cursor: pointer;
  display: block;
}

.dept-pick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dept-pick__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 13px 11px 32px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.1s ease;
  height: 100%;
}

.dept-pick__body::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 14px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink-4);
  border-radius: 2px;
  background: #fff;
}

.dept-pick__body strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dept-pick__body span {
  font-size: 0.74rem;
  color: var(--ink-3);
  font-weight: 600;
}

.dept-pick:hover .dept-pick__body {
  border-color: var(--ink-4);
}

.dept-pick input:checked + .dept-pick__body {
  border-color: var(--dept, var(--ink));
  background: #fff;
  box-shadow: 3px 3px 0 var(--dept, var(--ink));
}

.dept-pick input:checked + .dept-pick__body::before {
  background: var(--dept, var(--ink));
  border-color: var(--dept, var(--ink));
}

.dept-pick input:checked + .dept-pick__body::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 17px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.dept-pick input:focus-visible + .dept-pick__body {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.dept-pick input:disabled + .dept-pick__body {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 선택 카운터 */
.pick-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
}

.pick-count__n {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink);
}

.pick-count__n b {
  font-size: 0.82rem;
}

.pick-count.is-max {
  color: var(--ink);
}

/* 체크박스 */
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.6;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--ink);
  cursor: pointer;
}

.check a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1.5px solid var(--ink);
}

.form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.form__foot {
  font-size: 0.86rem;
  color: var(--ink-3);
  text-align: center;
  padding-top: 4px;
  border-top: 1.5px dashed var(--line);
  margin-top: 2px;
  padding-top: 18px;
}

.form__foot a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1.5px solid var(--ink);
}

/* 이미지 미리보기 */
.img-preview {
  margin-top: 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px;
}

.img-preview__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.img-preview img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 3px;
  background: #fff;
}

.img-preview__fail {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  line-height: 1.6;
  padding: 8px 0 2px;
}

/* 태그 미리보기 */
.tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.tag-preview:empty {
  display: none;
}

.tag-preview span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ---------- 12. 입학 절차 ---------- */
.steps {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--ink);
  margin-left: 12px;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0 18px 22px;
  position: relative;
  border-bottom: 1.5px dashed var(--line);
}

.step:last-child {
  border-bottom: 0;
}

.step__no {
  position: absolute;
  left: -13px;
  top: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
}

.step__body {
  grid-column: 2;
}

.step__body h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}

.step__body p {
  font-size: 0.89rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- 13. 게시판 ---------- */
.catbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.catbar a {
  padding: 6px 13px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  transition: all 0.14s ease;
}

.catbar a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.catbar a.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* 학과별 게시판 카테고리 탭 */
.dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
}

.dept-tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.dept-tabs__item:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--paper-2);
}

.dept-tabs__item.is-on {
  background: var(--dept, var(--ink));
  color: #fff;
}

.dept-tabs__item.is-on:hover {
  background: var(--dept, var(--ink));
}

.dept-tabs__count {
  display: inline-block;
  min-width: 1.35em;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
}

.dept-tabs__item.is-on .dept-tabs__count {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* 학과 게시판 상단 안내 */
.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 2px solid var(--ink);
  border-left: 6px solid var(--dept, var(--ink));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.board-head__body {
  min-width: 0;
}

.board-head__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.board-head__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dept, var(--ink));
  flex: 0 0 auto;
}

.board-head__desc {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.board-head__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.board {
  border-top: 2px solid var(--ink);
}

.board__row {
  border-bottom: 1.5px solid var(--line);
}

.board__row > a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: center;
  padding: 15px 6px;
  transition: background 0.14s ease;
}

.board__row > a:hover {
  background: var(--paper-2);
}

.board__row--pinned {
  background: #fdfcf6;
}

.board__cat {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.board__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.board__title {
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.board__row > a:hover .board__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.board__dept,
.board__work {
  font-size: 0.76rem;
  color: var(--ink-3);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board__work {
  color: var(--blue);
}

/* 마감일 배지 */
.deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.deadline__label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.deadline__date {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.deadline__dday {
  padding: 1px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.deadline--urgent .deadline__dday {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.deadline--soon .deadline__dday {
  background: var(--paper-3);
  border-color: var(--ink);
}

.deadline--open .deadline__dday {
  background: #fff;
  border-color: var(--ink-4);
  color: var(--ink-3);
}

.deadline--off {
  opacity: 0.55;
}

.deadline--off .deadline__dday {
  text-decoration: line-through;
}

.post__head .deadline {
  margin-top: 11px;
}

.post__head .deadline__dday {
  font-size: 0.72rem;
  padding: 2px 9px;
}

.board__side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
  text-align: right;
}

.board__author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board__meta {
  font-size: 0.74rem;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

/* 게시글 상세 */
.post,
.work,
.issue {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-soft);
}

.post__head,
.work__head,
.issue__head {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.post__head h1,
.work__head h1,
.issue__head h1 {
  font-size: clamp(1.4rem, 4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
  margin: 10px 0 0;
}

.post__byline,
.work__byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.post__byline div,
.work__byline div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.post__byline strong,
.work__byline strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.post__byline span,
.work__byline span {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.work-ref {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-color 0.15s ease;
}

.work-ref:hover {
  border-color: var(--ink);
}

.work-ref img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  flex: 0 0 auto;
}

.work-ref span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.work-ref small {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.work-ref strong {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 작품 상세 */
.work__figure {
  margin: 0 0 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}

.work__figure img {
  width: 100%;
  height: auto;
}

.work__figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-top: 1.5px solid var(--ink);
  background: #fff;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.work__figure figcaption a {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.work__figure figcaption a:hover {
  border-color: var(--ink);
}

.work__host {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.7rem;
}

/* ---------- 14. 댓글 ---------- */
.comments {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}

.comments h2 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.comments__count {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 1px 8px;
}

.comment-list {
  display: grid;
  gap: 2px;
  margin-bottom: 20px;
}

.comment {
  display: flex;
  gap: 11px;
  padding: 13px 12px;
  border-radius: var(--radius);
  transition: background 0.14s ease;
}

.comment:hover {
  background: var(--paper-2);
}

.comment + .comment {
  border-top: 1.5px dashed var(--line);
}

.comment__body {
  min-width: 0;
  flex: 1 1 auto;
}

.comment__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.comment__head strong {
  font-size: 0.86rem;
  font-weight: 800;
}

.comment__head span {
  font-size: 0.72rem;
  color: var(--ink-4);
}

.comment__body p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-form {
  display: grid;
  gap: 9px;
  justify-items: end;
}

.comment-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 74px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- 15. 매거진 ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}

.shelf__item > a {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shelf__frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 3px 3px 3px 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.shelf__item > a:hover .shelf__frame {
  transform: translate(-3px, -3px) rotate(-0.6deg);
  box-shadow: 7px 7px 0 var(--ink);
}

.shelf__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf__noart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 16px;
  text-align: center;
  background: repeating-linear-gradient(45deg, #fff, #fff 10px, var(--paper-2) 10px, var(--paper-2) 20px);
}

.shelf__noart strong {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
}

.shelf__noart small {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 700;
}

.shelf__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}

.shelf__issue {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.shelf__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.shelf__sub {
  font-size: 0.81rem;
  color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shelf__date {
  font-size: 0.75rem;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* 기사 상세 */
.issue__vol {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--ink);
  border-radius: 3px;
  padding: 3px 9px;
}

.issue__sub {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.issue__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-4);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line);
}

.issue__cover {
  margin: 0 0 28px;
  max-width: 340px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.issue__cover img {
  width: 100%;
  height: auto;
}

.issue-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.issue-nav a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease;
}

.issue-nav a:hover {
  border-color: var(--ink);
}

.issue-nav small {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.issue-nav strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.issue-nav__next {
  text-align: right;
  grid-column: 2;
}

/* ---------- 16. 내 활동 ---------- */
.profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 24px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 3px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.profile__avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.6rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.profile__body {
  flex: 1 1 220px;
  min-width: 0;
}

.profile__body h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile__meta {
  font-size: 0.82rem;
  color: var(--ink-4);
  font-family: var(--mono);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.profile__bio {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 8px;
  line-height: 1.6;
}

.profile__stats {
  display: flex;
  gap: 18px;
  padding-left: 20px;
  border-left: 1.5px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 600;
}

.profile__stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.profile__stats strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

/* ---------- 17. 메뉴 카드 · 마무리 ---------- */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}

.menu-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 14px 14px 13px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.menu-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--ink);
}

.menu-card__no {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}

.menu-card strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.menu-card__en {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
}

.closing {
  margin-top: 64px;
}

.closing__bubble {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px 22px 22px 4px;
  padding: 36px 32px 32px;
}

.closing__bubble h2 {
  font-size: clamp(1.3rem, 3.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.closing__bubble p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(251, 250, 246, 0.82);
  max-width: 62ch;
}

.closing__bubble p + p {
  margin-top: 10px;
}

.closing__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.closing__bubble .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 3px 3px 0 rgba(251, 250, 246, 0.32);
}

.closing__bubble .btn:hover {
  box-shadow: 4px 4px 0 rgba(251, 250, 246, 0.45);
}

.closing__bubble .btn--ghost {
  background: transparent;
  color: var(--paper);
}

/* ---------- 18. 약관 · 404 ---------- */
.terms {
  display: grid;
  gap: 0;
  counter-reset: t;
  margin-bottom: 28px;
  border-top: 2px solid var(--ink);
}

.terms li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 4px;
  border-bottom: 1.5px solid var(--line);
  align-items: baseline;
}

.terms__no {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}

.terms p {
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.notfound {
  text-align: center;
  padding: 40px 0 20px;
}

.notfound__code {
  display: block;
  font-family: var(--mono);
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--line);
  margin-bottom: 6px;
}

.notfound h1 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.notfound p {
  font-size: 0.93rem;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 auto;
}

.notfound .cta-row {
  justify-content: center;
}

/* ---------- 19. 푸터 ---------- */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  margin-top: 40px;
}

.site-footer__inner {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 40px 24px 26px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer__brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.site-footer__note {
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 44ch;
}

.site-footer__note + .site-footer__note {
  margin-top: 5px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-content: flex-start;
  max-width: 340px;
}

.site-footer__nav a {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
}

.site-footer__nav a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.site-footer__bottom {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 14px 24px 26px;
  border-top: 1.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--ink-4);
  font-family: var(--mono);
}

.site-footer__bottom a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* 푸터 연락처 · 주소 */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  text-align: right;
  line-height: 1.6;
}

.site-footer__address {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--ink-4);
}

.site-footer__map {
  margin-top: 3px;
  align-self: flex-end;
  font-weight: 700;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.site-footer__map:hover {
  color: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
}

/* ---------- 20. 반응형 ---------- */
@media (max-width: 1120px) {
  .site-nav a {
    padding: 8px 7px;
    font-size: 0.86rem;
  }
  .site-nav__no {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 62px;
  }

  .site-header__inner {
    padding: 0 18px;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* 모바일: [로고] … [로그인][입학하기][메뉴] 순서.
     메뉴 버튼을 입학하기 오른쪽(맨 끝)으로 보낸다.
     왼쪽 여백은 .site-header__auth 의 margin-left:auto 가 흡수한다. */
  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: 0;
  }

  .site-nav {
    display: none;
    order: 5;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0 0 10px;
    border-top: 1.5px solid var(--line);
    padding-top: 6px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 4px;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a.is-active::after {
    display: none;
  }

  .site-nav a.is-active .site-nav__label {
    color: var(--blue);
  }

  .site-nav__no {
    display: inline;
  }

  /* 인증 버튼 묶음이 남는 왼쪽 여백을 흡수해 오른쪽으로 붙고,
     메뉴 버튼은 그 오른쪽 끝에 나란히 선다. */
  .site-header__auth {
    order: 2;
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }

  .page {
    padding: 34px 18px 72px;
  }

  .hero__inner {
    padding: 44px 18px 40px;
  }

  .hero__stat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sec {
    margin-top: 48px;
  }

  .board__row > a {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'cat side'
      'main main';
    gap: 6px 12px;
    align-items: start;
    padding: 14px 4px;
  }

  .board__cat {
    grid-area: cat;
  }

  .board__main {
    grid-area: main;
  }

  .board__side {
    grid-area: side;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .board__title {
    -webkit-line-clamp: 2;
  }

  .post,
  .work,
  .issue {
    padding: 24px 20px;
  }

  .profile__stats {
    padding-left: 0;
    border-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 26px;
    padding-top: 16px;
    border-top: 1.5px dashed var(--line);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15.5px;
  }

  .brand__logo {
    height: 36px;
  }

  .brand__name {
    font-size: 1.06rem;
  }

  .user-chip__name {
    max-width: 6ch;
  }

  /* 모바일에서도 로그인 진입점은 유지한다 (숨기면 재방문 회원이 길을 잃는다) */
  .auth-links {
    gap: 6px;
  }

  .auth-links .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* 두 줄 슬로건이 모바일 폭에서 한 줄씩 들어오도록 크기를 낮춘다.
     "버블대학으로 통한다" = 글자 10개 + 배지 좌우 여백이므로 8vw 가 상한이다. */
  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.9rem);
    letter-spacing: -0.05em;
  }

  .hero__lead {
    font-size: 0.98rem;
  }

  .hero__actions .btn,
  .closing__actions .btn {
    flex: 1 1 auto;
  }

  .page-head__row {
    align-items: flex-start;
  }

  .def-list__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 2px;
  }

  .dept-grid,
  .dept-strip,
  .gallery,
  .shelf {
    grid-template-columns: 1fr;
  }

  .gallery--mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dept-card__what {
    min-height: 0;
  }

  .dept-tabs {
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .dept-tabs__item {
    gap: 5px;
    padding: 7px 11px;
    font-size: 0.8rem;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .dept-tabs__count {
    font-size: 0.68rem;
    padding: 0 4px;
  }

  .board-head {
    gap: 12px;
    padding: 14px;
  }

  .board-head__actions {
    width: 100%;
  }

  .board-head__actions .btn {
    flex: 1 1 auto;
  }

  .dept-hero__bubble {
    padding: 24px 18px 20px;
  }

  .form {
    padding: 22px 18px;
  }

  .radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    padding: 12px;
  }

  .filters__field {
    flex: 1 1 120px;
  }

  .filters__field select {
    min-width: 0;
    width: 100%;
  }

  .issue-nav {
    grid-template-columns: 1fr;
  }

  .issue-nav__next {
    grid-column: 1;
    text-align: left;
  }

  .issue__cover {
    max-width: 100%;
  }

  .site-footer__inner {
    padding: 30px 18px 22px;
    gap: 24px;
  }

  .site-footer__bottom {
    padding: 14px 18px 24px;
  }

  .step {
    grid-template-columns: 1fr;
    padding-left: 18px;
  }

  .step__body {
    grid-column: 1;
  }

  .closing__bubble {
    padding: 26px 20px 24px;
  }

  .comments h2 {
    font-size: 1rem;
  }

  .table-caveat,
  .note-line {
    font-size: 0.82rem;
  }

  .doc-table {
    font-size: 0.84rem;
    min-width: 380px;
  }

  .doc-table thead th,
  .doc-table tbody th,
  .doc-table td {
    padding: 10px 11px;
  }

  .menu-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  /* 좁은 화면에서도 로고 + "버블대학" + 인증 버튼이 한 줄에 남도록 압축한다 */
  .site-header__inner {
    padding: 0 12px;
    gap: 8px;
  }

  .brand {
    gap: 6px;
    padding: 4px 0;
  }

  .brand__logo {
    height: 30px;
    margin-top: 0;
  }

  .brand__name {
    font-size: 0.94rem;
    letter-spacing: -0.05em;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .auth-links {
    gap: 5px;
  }

  .auth-links .btn {
    padding: 6px 8px;
    font-size: 0.74rem;
    letter-spacing: -0.02em;
  }

  .radio-grid {
    grid-template-columns: 1fr;
  }

  .gallery--mini {
    grid-template-columns: 1fr;
  }

  .hero__stat strong {
    font-size: 1.25rem;
  }

  .profile {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 21. 인쇄 ---------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero__actions,
  .cta-row,
  .comment-form,
  .filters,
  .tagbar,
  .catbar,
  .sec__more,
  .menu-cards,
  .guide {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .page,
  .hero__inner {
    max-width: none;
    padding: 0;
  }

  .hero {
    background: none;
    border-bottom: 1px solid #000;
    padding-bottom: 12pt;
  }

  .hero__bubble {
    background: none;
    color: #000;
    padding: 0;
    transform: none;
    border: 2px solid #000;
    padding: 6pt 10pt;
  }

  .sec,
  .closing {
    break-inside: avoid;
  }

  .problem-card,
  .doc-table,
  .table-wrap,
  .post,
  .work,
  .issue,
  .dept-card__link {
    box-shadow: none !important;
  }

  .shelf__frame,
  .gallery__frame {
    box-shadow: none;
  }

  a[href^='http']::after {
    content: '';
  }
}
