/* adi.css — 2026 졸전 아카이브 웹 (1012 아디 시안 → 그리드로 다시 세움, 11/12)
   그리드 (사용자 11/12 합의):
   · 단위 = 24px 한 칸(--b). 기본 글자 15px의 행간 = 베이스라인. 세로 간격은 전부 --b 배수.
   · 데스크톱(≥1024) = 16칸 A~P · 여백 = 거터 = 24px. 화면 가운데 선 = H|I 거터 한가운데.
     왼쪽 반 = A~H(사진·메뉴), 오른쪽 반 = I~P(내용). 오른쪽 반 안은 8칸 그리드(I~P).
   · 태블릿(640~1023) = 8칸 · 여백 = 거터 = 24px · 위아래로 쌓는다.
   · 폰(<640, 또는 높이 ≤500 가로 폰) = 8칸 · 여백 24px · 거터 12px.
   · 글 시작선 = I·K·M·O(2칸 단위).
   타입 = 화면 글자 전부 본문 섞어짜기 하나(사용자 11/13 「아예 모든거 똑같이. 예외 x」): 민부리 Std 500 16/24 · 국문 0.935em · 영문·숫자 Suisse Intl Mono 400 1em 0.1em 내림 · 자간·낱말 간격 티저 값.
   굵기 = 머리(.hd·dt·th·검색 라벨·위원회 역할)와 고른 것·마우스 올림만 700. shell.js가 .right·.menu·.ruler·.left .slot 글자를 ml-* 조각으로 감싼다. */

@font-face { font-family: 'AG Choijeongho Minburi Screen'; src: url('fonts/ag-choijeongho-minburi-screen-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Suisse Intl Mono'; src: url('fonts/SuisseIntlMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Suisse Intl Mono'; src: url('fonts/SuisseIntlMono-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'AG Choijeongho Minburi Std'; src: url('fonts/ag-choijeongho-minburi-std-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'AG Choijeongho Minburi Std'; src: url('fonts/ag-choijeongho-minburi-std-medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'AG Choijeongho Minburi Std'; src: url('fonts/ag-choijeongho-minburi-std-bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Suisse Intl'; src: url('fonts/SuisseIntl-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Pretendard Variable'; src: url('fonts/PretendardVariable.woff2') format('woff2'); font-weight: 45 920; font-display: swap; }

:root {
  --paper: #fff;
  --panel: #f1f1f1;
  --ink: #0d0d0d;
  --ph: #dcdcdc;
  --line: rgba(13, 13, 13, .55);

  --f-body: 'AG Choijeongho Minburi Std', sans-serif;                                     /* 2단계 */
  --t-body: 14px;   /* 본문 한 단계 내림 16→14(사용자 11/15 「본문은 전부 하나씩 줄이자」) */
  --t-nav: 16px;    /* 메뉴·반 좌표 = 본문 내리기 전 크기 그대로 */

  --b: calc(24px * 14 / 16);        /* 베이스라인 = 한 칸 = 행간. 본문 16→14 내리며 행간도 같은 비율(24→21, 사용자 11/15 「행간도 비례해서」) — 세로 그리드 전체가 이 단위를 따른다 */
  --m: 24px;                        /* 화면 끝 여백 */
  --g: 24px;                        /* 거터 */
  --n: 16;                          /* 칸 수 */
  --c: calc((100vw - var(--m) * 2 - var(--g) * (var(--n) - 1)) / var(--n));   /* 한 칸 폭 */
  --cg: calc(var(--c) + var(--g));  /* 칸 + 거터 = 칸 피치 */
  --ruler-h: calc(var(--b) * 3);
  --ci: calc((50vw - var(--g) / 2 - var(--m) - var(--g) * 7) / 8);   /* 오른쪽 반 안 칸 = 가운데 선에서 12 띄운 뒤 8칸 (사용자 11/15 「12/12 나누기」, 이전 11/13 24) */
  --cig: calc(var(--ci) + var(--g));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }   /* 페이지 스크롤바 숨김 — 스크롤바(15px)가 생기면 50vw 칸과 화면 반쪽이 7.5px 어긋남(사용자 11/15 「반별 들어가면 또 바뀜」) */
html::-webkit-scrollbar { display: none; }
body {
  background: var(--paper); color: var(--ink);
  /* 모든 글자 = 본문 섞어짜기 값 그대로(사용자 11/13 「아예 모든거 똑같이. 예외 x」). shell.js가 화면 글자 전부를 ml-* 조각으로 감싼다 */
  font-family: var(--f-body); font-weight: 500; font-size: var(--t-body); line-height: var(--b); letter-spacing: 0.016em; word-spacing: -0.15em;
  text-transform: none; font-variant-numeric: normal; font-synthesis: none;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
/* 굵기 위계 = 머리만 700(사용자 11/13 「굵기만 적용」). 섞어짜기 값은 그대로, 조각(ml-*)까지 굵게 */
:is(b, strong, .hd, .info dt, .idx th, .idx .search label), :is(b, strong, .hd, .info dt, .idx th, .idx .search label) [class^="ml-"] { font-weight: 700; }
.committee li::first-line { font-weight: 700; }   /* 역할 국문 = 머리 */
u, .ul { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ── 왼쪽 반 = A~H ───────────────────────── */
.left { position: fixed; inset: 0 50% 0 0; background: var(--panel); overflow: hidden; }
.left.photo { background: #333 center / cover no-repeat; }
.left .slot { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; }
.left .slot::-webkit-scrollbar { display: none; }

.logo, .close { position: absolute; z-index: 3; top: var(--b); left: var(--m); width: var(--b); height: var(--b); display: block; }
.logo { background:
  linear-gradient(var(--ink), var(--ink)) 0 0 / 50% 50% no-repeat,
  linear-gradient(var(--ink), var(--ink)) 100% 100% / 50% 50% no-repeat, #fff; }
.left.light .logo { outline: 1px solid #fff; }
.close::before, .close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 120%; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* 세로 메뉴 = A칸. 로고 아래 3칸 띄우고, 아래 (A)~(P) 줄 위 1칸까지 */
.menu {
  position: absolute; z-index: 3; left: var(--m); top: calc(var(--b) * 4); bottom: calc(var(--ruler-h) + var(--b));
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu, .ruler { font-size: var(--t-nav); }   /* 메뉴·반 좌표는 본문 내림에서 뺌(사용자 11/15 「본문은」) */
.menu a { writing-mode: vertical-rl; text-orientation: sideways; white-space: nowrap; line-height: var(--b); }
.b4 { margin-left: .25em; }   /* 국문·영문 병기 사이 = 4분각, 띄어쓰기 없음 (사용자 11/13) */
.menu a .ko { margin-top: .25em; }
/* 메뉴 번호 = 티저 네모 숫자 SVG. 크기·바탕선 놓기 = 티저 .sq svg 값(한 변 .915em, 바탕선 아래 .165em) */
.menu .sq { display: inline-block; width: .915em; height: .915em; vertical-align: -.165em; margin-right: .25em; overflow: visible; }   /* 번호–낱말 = 4분각(띄어쓰기 대신) */
@media (min-width: 1024px) and (min-height: 501px) { .menu .sq { margin: 0 0 .25em; transform: rotate(90deg); } }
/* 테두리 네모(사용자 11/13 확정). 선은 안쪽으로 그린다(바깥 한 변 .915em) */
:root { --sq-line: 62; --sq-num: 1; }   /* 선 62/915 ≈ 16px 글자에서 1px · 숫자 크기 1 = 채운 네모 숫자와 같은 높이 */
.sq-box { fill: none; stroke: currentColor; stroke-width: calc(var(--sq-line) * 2); }
.sq-line .menu .sq { overflow: hidden; }   /* 선 바깥 반을 잘라 안쪽 선만 남김 */
.sq-n { transform-box: view-box; transform-origin: 50% 50%; transform: scale(var(--sq-num)); }
.sq .b, .sq-b .sq .r { display: none; } .sq-b .sq .b { display: inline; }
.tune { position: fixed; z-index: 20; right: var(--m); top: var(--b); background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: calc(var(--b) / 2); display: grid; gap: calc(var(--b) / 4); font-size: 13px; }
.tune input[type=range] { width: 160px; vertical-align: middle; }   /* 세로 메뉴 = 글자와 같이 시계 방향으로 눕힌다 */   /* 영문–국문 = 4분각, 낱말 띄어쓰기 없음 (사용자 11/13) */
@media (min-width: 1024px) and (min-height: 501px) and (max-height: 939px) { .menu a .ko { display: none; } }   /* 낮은 화면 = 영문만 (사용자 11/13 ①안). 국문 포함 메뉴 748px + 위아래 192 = 940부터 다 들어간다 */
.left.light .menu a { color: #fff; }
/* 고른 것·마우스 올림 = 굵게(상태 표시 — 티저 지시문의 고른 낱말 700과 같은 방식) */
:is(.menu a[aria-current], .menu a:hover, .ruler a:hover, .ruler a[aria-current], .list li:hover, .list li.on, .idx tbody tr:hover), :is(.menu a[aria-current], .menu a:hover, .ruler a:hover, .ruler a[aria-current], .list li:hover, .list li.on, .idx tbody tr:hover) [class^="ml-"] { font-weight: 700; }
/* 세로 메뉴: 글자가 시계 방향으로 누워 있어 「아래」= 화면 왼쪽. 영문·숫자 0.1em 내림을 왼쪽으로 옮긴다 */
@media (min-width: 1024px) and (min-height: 501px) { .menu .ml-en, .menu .ml-num { top: 0; left: -0.1em; } .menu .ml-punct { top: 0; left: -0.025em; } }   /* 폰 메뉴는 가로라 본문 그대로 */

/* ── 아래 (A)~(P) 줄 = 16칸 중심 ───────────── */
.ruler {
  position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; height: var(--ruler-h);
  display: grid; grid-template-columns: repeat(var(--n), auto); justify-content: space-between; column-gap: var(--g); padding: 0 var(--m) var(--b);
  align-items: end; pointer-events: none;
}   /* (A)·(P) = 여백 선, 사이는 같은 간격(글자 폭 칸 + space-between) — 칸 선과는 안 맞음(사용자 11/15 3안) */
.ruler a { pointer-events: auto; text-align: center; min-height: 44px; display: flex; align-items: flex-end; justify-content: center; transition: transform .2s ease; }
.ruler a:nth-child(-n+8) { color: #fff; }
body:not(.on-photo) .ruler a:nth-child(-n+8) { color: var(--ink); }
body .ruler { background: linear-gradient(var(--paper), var(--paper)) 100% 0 / 50% 100% no-repeat; }   /* 오른쪽 반 = 흰 띠 — 긴 글이 (I)~(P) 줄 밑으로 지나가며 겹치지 않게 */
.ruler a[aria-current] { transform: translateY(calc(var(--b) * -1)); }   /* 떠오름 = 고른 반만. 마우스 올림은 굵기만(사용자 11/14) */
@media (min-width: 1024px) and (min-height: 501px) {   /* 메뉴·반 좌표 옆 선(사용자 11/15, 참고 이미지 「|G |박치기!」) — 글자 앞에서 화면 끝까지. 떠오르면 선도 그만큼 길어진다 */
  .ruler a > span { position: relative; }
  .ruler a > span::before { content: ''; position: absolute; left: -.25em; top: var(--ln-in, .2em); bottom: calc(var(--b) * -3); width: 1px; background: currentColor; }   /* 글자 위끝 → 화면 아래 끝(넘친 부분은 화면 밖) */
  .menu a { position: relative; }
  .menu a::before { content: ''; position: absolute; top: -.25em; right: var(--ln-in, .2em); left: calc(var(--m) * -1 - var(--b) * 2); height: 1px; background: currentColor; }   /* 글자가 90° 돌아 있어 「글자 앞」 = 위, 「아래 끝」 = 화면 왼쪽 끝. 왼쪽 칸 overflow:hidden이 화면 끝에서 자른다 */
}
.fade { position: fixed; z-index: 3; left: 50%; right: 0; bottom: var(--ruler-h); height: var(--fade, 72px); background: linear-gradient(rgb(255 255 255 / 0), var(--paper)); pointer-events: none; opacity: 0; transition: opacity .3s ease; }   /* 스크롤 넘침 = 흰 띠 위로 아래로 빠지는 그라데이션(사용자 11/15) */
.fade.on { opacity: 1; }
.fade.l { left: 0; right: 50%; height: calc(var(--fade, 72px) + var(--ruler-h)); background: linear-gradient(rgb(241 241 241 / 0), var(--panel)); }   /* 작품 상세 왼쪽 사진 칸 = 회색 판으로 빠짐 */
@media (max-width: 1023px), (max-height: 500px) { .fade { left: 0; } }   /* 폰 = 전체 폭. 높이 위치는 shell.js가 반 줄 실제 높이로 맞춤 */
:is(.menu a, .ruler a), :is(.menu a, .ruler a) [class^="ml-"] { font-weight: 700; }   /* 메뉴·반 좌표 기본 = 700(사용자 11/15) */
@media (min-width: 1024px) and (min-height: 501px) { .menu a { transition: transform .2s ease; } .menu a[aria-current] { transform: translateX(var(--b)); } }   /* 메뉴도 고른 것 떠오름 — 글자가 90° 돌아 있어 글자 위쪽 = 화면 오른쪽(사용자 11/15). 폰 메뉴는 반 줄처럼 안 움직임 */

/* 반 미리보기 = J~K칸, 위 3칸 */
.peek { position: fixed; z-index: 2; left: calc(50% + var(--g) / 2 + var(--cig)); top: calc(var(--b) * 3); width: calc(var(--ci) * 2 + var(--g)); aspect-ratio: 3 / 2; background: var(--ph); display: none; align-items: flex-end; padding: calc(var(--b) / 4); }
.peek.on { display: flex; }

/* ── 오른쪽 반 = I~P, 안은 8칸 ───────────────── */
.right {
  margin-left: 50%; min-height: 100vh; min-height: 100svh;
  padding: var(--b) var(--m) calc(var(--ruler-h) + var(--b) * 2) calc(var(--g) / 2);   /* 사진–글 간격 = 12px — 가운데 선 양쪽 12/12, H–I = 24(사용자 11/15). 이전 11/13 24 */
}
.pair { display: grid; grid-template-columns: repeat(8, 1fr); column-gap: var(--g); }   /* I~P 8칸 — 시작선 I·K·M·O */
.pair > * { grid-column: span 2; }
.pair > .at-k { grid-column: 3 / span 3; }
.pair > .at-m { grid-column: 5 / span 4; }
.pair > .at-o { grid-column: 7 / span 2; }
.pair > .wide { grid-column: 1 / span 4; }
.gap { margin-top: calc(var(--b) * 4); }

/* 본문 = 2단계. 티저 섞어짜기 값 그대로, 행간만 베이스라인 24px(16px × 1.5) */
.prose { max-width: calc(var(--ci) * 6 + var(--g) * 5); }   /* 긴 글 = I~N 6칸 (사용자 11/13 「8단 넉넉하게」). 전시정보는 .pair 칸(I~L)이 먼저 막는다 */
.prose p {
  font-family: var(--f-body); font-weight: 500; font-size: var(--t-body); line-height: var(--b); letter-spacing: 0.016em; word-spacing: -0.15em;
  text-wrap: pretty; text-transform: none; font-variant-numeric: normal;
}
.prose p + p { margin-top: var(--b); }
.prose .en { word-spacing: 0.04em; }
[class^="ml-"] { position: relative; line-height: 1; letter-spacing: 0.016em; }
.ml-ko { font-size: 0.935em; top: 0em; letter-spacing: 0.032em; }
.ml-en { font-family: 'Suisse Intl Mono'; font-weight: 400; font-size: 1em; top: 0.1em; letter-spacing: -0.012em; text-transform: uppercase; }
.ml-num { font-family: 'Suisse Intl Mono'; font-weight: 400; font-size: 1em; top: 0.1em; letter-spacing: -0.012em; }
.ml-punct { font-family: 'Suisse Intl Mono'; font-weight: 400; font-size: 1em; top: 0.025em; letter-spacing: -0.043em; }
.ml-ens { word-spacing: 0.04em; }   /* 영문 낱말 사이 공백(shell.js) = 티저 영문 값 */
.ml-ko + .ml-punct { font-family: inherit; font-weight: inherit; top: 0; letter-spacing: 0; }
.ml-en + .ml-punct.ml-dot, .ml-en + .ml-punct > .ml-dot { margin-left: -0.19em; }
.ml-punct .ml-pp { letter-spacing: inherit; }
.indent { text-indent: 2.1em; display: block; }   /* 티저 기조문 국문 들여쓰기 */

/* 번호 목록 — 번호 I칸 · 제목 J~M · 작가 N~P */
.list li { display: grid; grid-template-columns: var(--ci) calc(var(--ci) * 4 + var(--g) * 3) 1fr; column-gap: var(--g); }   /* 번호 I · 제목 J~M · 작가 N~P */
.list li a { display: contents; }
.list.hd li:hover { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }   /* 이미 굵은 목록(기록) = 밑줄 */

/* 왼쪽 회색 판 위 썸네일 = F~G칸 */
.thumb { position: absolute; left: calc(var(--m) + var(--cg) * 5); top: calc(var(--b) * 3); width: calc(var(--c) * 2 + var(--g)); aspect-ratio: 3 / 2; background: var(--ph); display: none; align-items: flex-end; padding: calc(var(--b) / 4); }
.thumb.on { display: flex; }

/* 개인상세 — 왼쪽 반에 작품 이미지를 쌓는다. 사이 = 한 칸 */
.figs > div { background: var(--ph); aspect-ratio: 800 / 493; position: relative; }
.figs > div + div { margin-top: var(--b); }
.figs > div > span { position: absolute; right: var(--g); bottom: var(--b); line-height: var(--b); }
.figs > div.video { background: #c4c4c4; }
.people .p0, .people .p1 { grid-column: 6 / span 3; }   /* 작가 = N~P, 여럿이면 아래로 */
.people .p0 ~ div { margin-top: var(--b); }

.prog-page .ph-note { width: 100%; padding-inline: 0; }   /* 안쪽 좌우 6px 빼서 글 시작 = I 칸 선(덤블도어 11/15 ③) */   /* 프로그램 자리 = I~P. 회색 칸 없앰(사용자 11/13) */

/* 인덱스 — 표 = I~N칸, 한 줄 = 한 칸 */
.idx { padding-top: var(--b); }   /* 위 여백 = 24, 모든 페이지 같음 (사용자 11/13) */
.idx .search .q { display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: var(--b); }
.idx input { font: inherit; color: inherit; background: transparent; border: 0; outline: 0; width: 100%; height: calc(var(--b) * 2 - 2px); padding: 0; letter-spacing: inherit; }
.idx input::placeholder { color: var(--ink); opacity: .55; }
.idx table { width: 100%; border-collapse: collapse; }
.idx .scroll { margin-top: var(--b); }
.idx th { font-weight: inherit; text-align: left; padding: 0 0 var(--b); }
.idx th.r, .idx td.r { text-align: right; }
.idx td { padding: 0; vertical-align: top; }
.idx th + th, .idx td + td { padding-left: var(--g); }
.idx td a { display: block; }
.idx .search .q { display: flex; align-items: center; }
.idx input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }   /* 브라우저 기본 X 숨김 → 글자 「×」 버튼 */
.idx .clr { font: inherit; color: inherit; background: none; border: 0; padding: 0 0 0 var(--g); cursor: pointer; line-height: var(--b); }
.idx .clr[hidden] { display: none; }

@media (min-width: 1024px) and (min-height: 501px) {
  /* 아래 줄·칸 보기: A~H = 왼쪽 반 8칸(가운데 선 − 12까지), I~P = 오른쪽 반 8칸(가운데 선 + 12부터) */
  :root { --c: var(--ci); --t-body: 12px; --t-nav: 14px; --b: calc(24px * 12 / 14); }   /* 컴퓨터 행간·기준선 24 → 20.57(본문 14→12와 같은 비율, 사용자 11/15) */   /* 컴퓨터 본문 14→12(사용자 11/15 「본문은 전부 하나씩」), 메뉴·반 좌표는 14 그대로 */   /* 좌우 칸 폭 같음. H 끝 = 가운데 선 − 12, I 시작 = + 12, H–I = 24 (사용자 11/15 「12/12 나누기」) */   /* 컴퓨터 글자 14px = 티저 데스크톱과 같게(사용자 11/14). 폰은 16 그대로 */
  body .gridov { grid-template-columns: repeat(8, var(--c)) repeat(8, var(--ci)); }
  body .ruler { grid-template-columns: repeat(16, auto); }   /* 반 줄 = 가운데 선 기준 좌우 대칭: 왼쪽 8칸도 오른쪽과 같은 칸(--ci). (H)–가운데 = 가운데–(I) (사용자 11/14) */
  .idx-page .right { height: 100vh; height: 100svh; display: flex; flex-direction: column; padding-bottom: 0; }
  .idx .scroll { flex: 1; min-height: 0; overflow-y: auto; margin-bottom: calc(var(--ruler-h) + var(--b)); scrollbar-width: none; }
  .idx thead th { position: sticky; top: 0; z-index: 1; background: var(--paper); }   /* z 1 = 섞어짜기 조각(position relative)이 머리 위로 비치지 않게   /* 찾아보기 회색 칸 없앰(사용자 11/13) */
}

/* 전시정보 · 프로그램 */
.ph-note { background: var(--ph); width: calc(var(--ci) * 2 + var(--g)); aspect-ratio: 3 / 2; display: flex; align-items: flex-end; padding: calc(var(--b) / 4); }
.info { margin-top: calc(var(--b) * 4); }
.info dd + dt { margin-top: var(--b); }
.committee li + li { margin-top: var(--b); }

/* 로딩 — 첫 방문 한 번 */
body.loading .menu, body.loading .ruler, body.loading .right > * { opacity: 0; }
.menu, .ruler, .right > * { transition: opacity .5s ease; }

/* 칸 보기 (?grid) — 칸 = 붉은 띠, 베이스라인 = 하늘색 선 */
.gridov { position: fixed; inset: 0; z-index: 9; pointer-events: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); column-gap: var(--g); padding: 0 var(--m);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--b) - 1px), rgba(0, 140, 255, .35) calc(var(--b) - 1px) var(--b)); }
.gridov i { background: rgba(255, 0, 60, .09); }

/* ── 태블릿·폰 = 8칸, 위아래로 쌓는다 ───────── */
@media (max-width: 1023px), (max-height: 500px) {
  :root { --ci: var(--c); }   /* 태블릿·폰은 화면 전체 8칸 그대로 */
  :root { --n: 8; }
  body { display: flex; flex-direction: column; position: relative; }
  .left, .left.photo { display: contents; }
  .left .slot { position: static; overflow: visible; order: 2; padding: 0 var(--m) calc(var(--ruler-h) + var(--b)); }
  .left .slot:empty { display: none; }
  .right { order: 1; margin-left: 0; width: auto; min-height: 0; padding: var(--b) var(--m) calc(var(--b) * 2); }
  body:not([data-page="projects"]) .hero { display: none; }
  body[data-ban] .hero { display: none; }   /* 반 상세도 data-page="projects"라 홈 규칙에 걸림 → 사진은 홈에서만(덤블도어 11/15 ②) */
  body:not(:has(.slot:not(:empty))) .right { padding-bottom: calc(var(--ruler-h) + var(--b) * 2); }
  .logo, .close { position: absolute; top: var(--b); left: var(--m); }
  .menu {   /* C~H 6칸, 한 줄에 둘(C·F 시작), 줄 높이 2칸 */
    position: static; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--g); grid-auto-rows: calc(var(--b) * 2);
    padding: calc(var(--b) / 2) var(--m) calc(var(--b) / 2) calc(var(--m) + var(--cg) * 2);   /* 아래도 12 → 메뉴 높이가 24 배수, 그 아래 글이 줄 칸 위(사용자 11/15 「전시정보도 그리드맞춰서」) */
  }
  .menu a, .left.light .menu a { writing-mode: horizontal-tb; color: var(--ink); display: flex; align-items: center; white-space: nowrap; }
  .menu a .ko { display: none; }
  .hero { display: block; height: calc(var(--b) * 20); background: center / cover no-repeat; }
  body .ruler, body .ruler { background: var(--paper); }
  .ruler { grid-template-columns: repeat(8, auto); grid-auto-rows: var(--b); row-gap: calc(var(--b) / 2); height: auto; padding: calc(var(--b) / 2) var(--m) calc(var(--b) / 2 + env(safe-area-inset-bottom)); pointer-events: auto; }
  .ruler a, .ruler a:nth-child(-n+8), body:not(.on-photo) .ruler a:nth-child(-n+8) { color: var(--ink); min-height: var(--b); align-items: center; }
  .ruler a:hover, .ruler a[aria-current] { transform: none; }
  .ruler a[aria-current] > span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
  .peek, .thumb { display: none !important; }
  .pair > *, .pair > .at-k, .pair > .at-m, .pair > .at-o, .pair > .wide, .people > div { grid-column: 1 / -1; }
  .pair > * + * { margin-top: var(--b); }
  .people > .hd, .people .p0, .people .p1 { grid-column: 1 / -1 !important; grid-row: auto !important; }   /* 개인상세 작품명 칸의 인라인 4칸 지정을 폰에선 푼다 */
  .gap { margin-top: calc(var(--b) * 2); }
  .prose { max-width: none; }
  .list li { grid-template-columns: calc(var(--c) * 2 + var(--g)) 1fr; }   /* 번호 2칸 · 나머지 6칸 */
  .list li > :nth-child(3), .list li a > :nth-child(3) { grid-column: 2; }
  .figs { margin-top: var(--b); }
  .ph-note { width: 100%; margin: var(--b) 0 0; background: var(--panel); aspect-ratio: 3 / 2; }
  .idx { padding-top: var(--b); }
  .idx th:nth-child(3) { width: 1%; white-space: nowrap; }   /* 반 칸 = 머리 「반 CLASS」 폭만. 폰 표 넘침(390에서 400px)은 국문–영문 사이 꺾을 자리(<wbr>)가 없던 것 — search.html에서 고침(덤블도어 11/15 ①) */
}
@media (max-width: 639px), (max-height: 500px) { :root { --g: 12px; } }   /* 폰 거터 12 */
@media (max-height: 500px) and (min-width: 640px) {   /* 가로 폰 — 줄은 16칸 한 줄 */
  .ruler { grid-template-columns: repeat(16, auto); }   /* 가로 폰 = 한 줄 16개 */
  .menu { grid-template-columns: repeat(5, max-content); }   /* 메뉴 한 줄 */
}
@media (min-width: 1024px) and (min-height: 501px) { .hero { display: none; } }

/* 반별 머리 = 전시 제목·영문 병기를 타이틀 서체로 크게, 그 아래 반·지도교수(지금 굵기 700). 전부 가운데 정렬(사용자 11/14).
   타이틀 서체 = 영문 Suisse Intl + 국문 Pretendard(FACTS 2026-09-05 대체폰트). 크기 = 본문보다 세 단계 위(단계 2px: 컴퓨터 14→20·폰 16→22, 사용자 11/14). ?tune 막대로 조절 */
.ban-hd { display: grid; grid-template-columns: repeat(8, 1fr); column-gap: var(--g); align-items: start; text-align: left; }   /* 왼쪽 정렬, 뒤로 화살표 아래. 제목 = I칸부터 · 반·지도교수 = 같은 높이에서 4번째 칸(L)부터(사용자 11/14) */
.ban-hd .back { grid-column: 1 / -1; }
@media (min-width: 1024px) and (min-height: 501px) { .ban-hd + .prose.gap { margin-top: calc(var(--b) * var(--gap-1, 2)); } .prose + .tiles-wrap.gap { margin-top: calc(var(--b) * var(--gap-2, 2)); } }   /* 반 상세 제목–기조문·기조문–썸네일 = 4줄→2줄(사용자 11/15 「여백들 줄여도 될듯」), ?tune 막대로 1~4줄. 다른 페이지 .gap(4줄)은 그대로 */
.ban-hd .ttl { grid-column: 1 / 4; }
.ban-hd .hd { grid-column: 4 / -1; }
.ban-hd .back { display: block; width: .915em; height: .915em; margin: calc((var(--b) - .915em) / 2) 0 calc((var(--b) - .915em) / 2 + var(--b)); color: var(--ink); }   /* 뒤로 화살표 = 오른쪽 영역 왼쪽 위, 한 줄(24px) 차지 + 빈 줄 하나 — 그 아래 제목(사용자 11/14). 크기 = 본문 글자 네모(.915em). arrow-lab 기본값 w440·머리200·높이200·굵기70 */
.ban-hd .back svg { display: block; width: 100%; height: 100%; overflow: hidden; }   /* 네모 선 = 메뉴 번호와 같은 62/915 안쪽만 */
.ban-hd .ttl, .ban-hd .ttl [class^="ml-"] { font-size: inherit; line-height: inherit; font-weight: 700; }   /* 전시 제목 = 오른쪽 CLASS·지도교수와 같은 민부리 700(사용자 11/15) */
@media (max-width: 1023px), (max-height: 500px) { .ban-hd > * { grid-column: 1 / -1; } .ban-hd .ttl { margin-bottom: var(--b); } }   /* 폰은 나중에(사용자 11/14) — 지금은 위아래로 쌓아 둔다 */

/* 반별 작품 = 썸네일 격자(사용자 11/15 「인덱스랑 다르게 이미지 중심」). 오른쪽 8칸, 한 장 = --tile칸(기본 2 → 한 줄 4장). 사진 아래 작품명·작가.
   마우스 올림 = 글 굵게(다른 목록과 같은 규칙). 사진 자리 = 회색(더미). ?tune 막대로 칸 수·비율 조절 */
.tiles-wrap { display: grid; grid-template-columns: repeat(8, 1fr); column-gap: var(--g); align-items: start; }   /* 첫 두 칸(I·J) 비움 — I칸에 섞기 버튼, K~P에 썸네일 3열(사용자 11/15) */
.tiles-wrap .mix { grid-column: 1; display: block; width: .915em; height: .915em; margin: calc((var(--b) - .915em) / 2) 0; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; }   /* 뒤로 화살표와 같은 네모 버튼 */
.tiles-wrap .mix svg { display: block; width: 100%; height: 100%; overflow: hidden; }
@media (hover: hover) { :is(.ban-hd .back, .tiles-wrap .mix):hover .sq-box { fill: currentColor; } :is(.ban-hd .back, .tiles-wrap .mix):hover path { stroke: var(--paper); } }   /* 마우스 올림 = 검정 네모에 아이콘이 뚫린 모양(사용자 11/15). 터치 기기는 눌린 채 남지 않게 hover 기기만 */
.tiles { grid-column: 3 / -1; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; column-gap: var(--g); row-gap: var(--b); }   /* 줄 높이 = 가장 긴 캡션 줄에 맞춰 모두 같게 → 사진 간격 일정(사용자 11/15) */
.tiles li { grid-column: span var(--tile, 2); }
.tiles a { display: block; }
.tiles li { container-type: inline-size; }
.tiles .ph { display: block; height: round(nearest, 100cqi / (var(--tile-ar, 4 / 3)), var(--b)); background: var(--ph); }   /* 사진 높이 = 4:3에 가장 가까운 24px 배수 → 아래 작품명이 줄 칸(24) 위에 앉는다(사용자 11/15 「썸네일이 그리드에서 벗어나」) */
.tiles a:hover .cap, .tiles a:hover .cap [class^="ml-"] { font-weight: 700; }
.tiles .who { display: block; font-size: calc(var(--t-body) - 2px); }   /* 작업자 = 본문보다 한 단계(2px) 작게(사용자 11/15). 행간은 24 그대로 */
@media (max-width: 1023px), (max-height: 500px) { .tiles-wrap .mix { margin-bottom: calc((var(--b) - .915em) / 2 + var(--b)); } .tiles-wrap > * { grid-column: 1 / -1; } .tiles { grid-template-columns: repeat(8, 1fr); } .tiles li { grid-column: span 4; } }   /* 폰은 나중에(사용자 11/14) — 버튼 위, 한 줄 2장 */
