/*
 * 원페이 — 게시판 한 장짜리 스타일시트. 빌드 스텝 없음.
 *
 * 색·치수는 실측값이다. 임의로 바꾸지 말 것.
 * 다크모드는 두지 않는다 — 실측 대상 게시판 본문은 흰 배경 고정이다.
 * 그림자·그라데이션 없음. 스프라이트 이미지도 쓰지 않고 도형은 CSS 로 그린다.
 */

:root {
  --mini: #6f6dd9; /* 미니갤 주색: 선택된 탭 배경, 버튼 */
  --mini-line: #4f4dc6; /* 미니갤 테두리 */
  --mini-sh: #4d4cce; /* 버튼 text-shadow */
  --line: #ccc; /* 테이블·버튼 기본 테두리 */
  --tbl-bottom: #29367c; /* 테이블 하단 굵은 선 */
  --red: #d31900; /* 현재 페이지, 개념글, 전체 추천 */
  --blue: #1a5fb4; /* 고정닉 추천. 크롬의 --navy 와 용도가 다르다 */
  --dim: #999; /* 댓글수 */
  --fg: #333;
  --bg: #fff;
  --hair: #eee; /* 행 사이 얇은 선 */
  --sub: #f9fafc; /* 대댓글 배경 */
  --visited: #770088; /* 실측값. 예전 #6d459e 는 우리가 고른 보라였다 */

  --wrap: 1160px;
  --content: 840px;
  --dc-min: 1090px;
  --pad: 12px;
}

/* 폭 체계는 화면마다 다르다 (실측).
 *   게시판       1160 / 좌 840
 *   미니갤 메인  1050 (카테고리 섹션이 이 폭 전체를 쓴다)
 *   포털 메인    1000 / 좌 728 / 우 250   ← STEP 11
 * body 클래스로 그 페이지에서만 덮어쓴다. 크롬(헤더·GNB)도 같은 변수를 보므로 따라온다.
 * 2026-08-29 철회: 원래 «좁은 화면에서도 접지 않고 가로 스크롤로 둔다» 였다.
 * 지금은 768px 이하에서 디시 모바일 구성으로 접는다 — 이 파일 맨 아래 한 블록이다.
 * 769px 이상은 아래 규칙 그대로다. */
body.page-mini {
  --wrap: 1050px;
  --content: 728px;
}

body.page-mini .cols {
  gap: 22px;
}

body.page-mini .side {
  flex: 0 0 300px;
}

/* 실측 포털: .main_content 1000 / .left_content 728 / .right_content 250.
 * 728 + 22 + 250 = 1000. 썸네일 173×4 = 692 가 728 에 맞춰 설계된 값이다. */
body.page-portal {
  --wrap: 1000px;
  --content: 728px;
}

body.page-portal .cols {
  gap: 22px;
}

body.page-portal .side {
  flex: 0 0 250px;
}

body.page-form .cols {
  display: block;
}

body.page-form main {
  width: var(--wrap);
  flex: 0 0 var(--wrap);
}

* {
  box-sizing: border-box;
}

/*
 * 기본값은 실측을 따른다 (6-6 A-9 + 미세 2건).
 *   글자색  디시 reset.css:23 에 body color 가 없다 → 브라우저 기본 #000
 *   크기    디시 reset.css:23 `font-size:12px`
 *   행간    디시 reset.css:23 에 line-height 가 없다 → normal
 * 링크는 #000 이 아니다 — 디시 reset.css:28 `a{color:#333}` 라서 --fg 를 그대로 둔다.
 */
body {
  margin: 0;
  padding: 0 0 40px;
  min-width: var(--dc-min);
  background: var(--bg);
  color: #000;
  font: 12px/normal -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "맑은 고딕", arial, 굴림, Gulim, sans-serif;
  word-break: keep-all;
}

/* 숫자 컬럼은 폭이 흔들리지 않게 별도 폰트로 */
.num {
  font: 11px/1.4 tahoma, sans-serif;
  padding-top: 1px;
}

a {
  color: var(--fg);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── 레이아웃 ─────────────────────────────────────────
 * 전체 1160px 가운데 정렬. 좌측 콘텐츠 840px, 우측은 자리만 비워 둔다.
 */
.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.cols {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

main {
  width: var(--content);
  flex: 0 0 var(--content);
  min-width: 0;
}

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

body.page-list .side,
.listwrap .side {
  width: 300px;
  flex: 0 0 300px;
}

/* 상단 갤러리명 */
.gall-head {
  padding: 0;
}

.gall-head h2 {
  overflow: hidden;
  max-width: 420px;
  margin: 2px 8px 0 3px;
  font-size: 24px;
  font-family: "Nanum Gothic", sans-serif;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
 * 갤러리 종류 아이콘 (실측 div.pagehead_titicon).
 * 스프라이트를 안 가져오므로 알약 안에 글자를 그린다 — 목록 아이콘과 같은 방식이다.
 *   mgall = 마이너(m) · ngall = 미니(n) · pgall = 인물(p)
 *
 * 크기는 실측 그대로 **종류마다 다르다** (common.css:539-541):
 * mgall·pgall 22×22 · ngall 26×20. 예전에는 셋 다 16×16 원이었다.
 * ngall 색 #6961d2 는 캡처에서 뽑은 값이다 (docs/실측/아이콘_색.md).
 * mgall·pgall 은 그 종류가 찍힌 캡처가 없어 못 뽑았다 — 우리 색을 그대로 둔다.
 */
.pagehead_titicon {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 5px;
  border-radius: 4px;
  vertical-align: -4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: tahoma, sans-serif;
  line-height: 22px;
  text-align: center;
}

.pagehead_titicon::before { content: "n"; }
.pagehead_titicon.mgall { background: var(--navy); }
.pagehead_titicon.mgall::before { content: "m"; }
.pagehead_titicon.ngall {
  width: 26px;
  height: 20px;
  line-height: 20px;
  background: #6961d2;
}
.pagehead_titicon.pgall { background: #7a5ea8; }
.pagehead_titicon.pgall::before { content: "p"; }

.gall-head a {
  color: var(--mini-line);
}

/* ── 옵션바 ──────────────────────────────────────────
 * 좌: 탭 3개 / 중: 말머리 / 우: 페이지당 건수 + 글쓰기
 */
.option-bar {
  display: table;
  width: 100%;
  height: 32px;
  margin: 15px 0 5px;
  table-layout: fixed;
}

.ob-cell {
  display: table-cell;
  vertical-align: middle;
  white-space: nowrap;
}

.ob-tabs {
  width: 258px;
}

.ob-right {
  width: 190px;
  text-align: right;
}

.tab {
  display: inline-block;
  width: 82px;
  height: 32px;
  margin-left: 2px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

.ob-tabs .tab:first-child {
  margin-left: 0;
}

.tab:hover {
  border-color: var(--mini-line);
  text-decoration: none;
}

.tab.on {
  border-color: var(--mini-line);
  background: var(--mini);
  color: var(--bg);
  text-shadow: 0 -1px var(--mini-sh);
}

/* 실측 `.miniwrap .array_tab button:hover` — 테두리만 갤 색으로 바뀐다
 * (contents.css:219). 안 눌린 탭이 죽어 보이던 자리다 */
.tab:hover {
  border-color: var(--mini-line);
}

/* 말머리 목록 */
.ob-heads ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.ob-heads li {
  display: inline-block;
  padding-left: 14px;
}

.ob-heads .head {
  color: #444;
  font-size: 13px;
}

.ob-heads .head.on {
  font-weight: 700;
}

/* 페이지당 건수 + 글쓰기 */
.per-form {
  display: inline-block;
  margin-right: 4px;
}

.per-form select,
.per-apply {
  height: 26px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  vertical-align: middle;
}

.per-form select {
  padding: 0 4px;
}

.per-apply {
  padding: 0 7px;
  cursor: pointer;
}

.btn-write {
  display: inline-block;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--mini-line);
  border-radius: 2px;
  background: var(--mini);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-shadow: 0 -1px var(--mini-sh);
  vertical-align: middle;
}

.btn-write:hover {
  text-decoration: none;
}

/* ── 목록 테이블 ─────────────────────────────────────── */
.gall-list {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 1px solid var(--tbl-bottom);
  table-layout: fixed;
}

col.c-no { width: 7%; }
col.c-head { width: 51px; }
col.c-title { width: auto; }
col.c-nick { width: 18%; }
col.c-date { width: 6%; }
col.c-views { width: 6%; }
col.c-ups { width: 6%; }

.gall-list th,
.gall-list td {
  height: 25px;
  padding: 0 4px;
  border-bottom: 1px solid var(--hair);
  text-align: center;
  white-space: nowrap;
}

/* 표 머리 — 디시는 굵고 배경이 없다 (6-6 A-6. 03_게시판목록 캡처 측정: 700 / #333 / 배경 없음) */
.gall-list thead th {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #333;
  font-size: 12px;
  font-weight: 700;
}

/* 숫자 컬럼 */
.gall-list td.c-no,
.gall-list td.c-date,
.gall-list td.c-views,
.gall-list td.c-ups {
  padding-top: 1px;
  color: #6a6a6a;
  font: 11px/1.4 tahoma, sans-serif;
}

.gall-list td.c-head {
  color: #6a6a6a;
  font-size: 12px;
}

.gall-list td.c-head b {
  color: var(--fg);
}

/* 제목 셀 */
.gall-list th.c-title,
.gall-list td.c-title {
  padding-left: 4px;
  text-align: left;
  font-size: 13px;
}

.gall-list td.c-title .title {
  display: inline-block;
  max-width: 82%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--fg);
}

.gall-list td.c-title .title:visited {
  color: var(--visited);
}

/* 개념글 행은 배경과 굵기로 표시한다 (실측 `.tbt.bg{background:#edf1fa;font-weight:bold}`).
 * `.is-concept` 클래스는 그동안 마크업에만 있고 규칙이 아예 없었다 —
 * 아이콘(별)만으로 구분하던 자리다. 실측은 행까지 강조한다. */
.gall-list td.c-title .title.is-concept {
  font-weight: 700;
}

.gall-list tbody tr:has(.title.is-concept) {
  background: #edf1fa;
}

/* hover 는 개념글 행에서도 이긴다 — 안 그러면 그 행만 반응이 없다 */
.gall-list tbody tr:has(.title.is-concept):hover {
  background: #e2e8f8;
}

/*
 * 개념글 제목에 색을 주지 않는다 (6-6 A-4).
 * 실측 목록은 개념글도 일반글과 같은 #333 이다 — 전체글 탭에 개념글이 섞이지 않아
 * 색으로 구분할 일 자체가 없었다 (08_개념글탭 캡처 측정). 구분은 아이콘이 한다.
 */

.cmt {
  margin-left: 4px;
  color: var(--dim);
  font-size: 12px;
  vertical-align: middle;
}

/* 글쓴이 셀 — 닉만 줄이고 IP 는 그대로 둔다 */
.gall-list td.c-nick {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

/* 행에 마우스를 올리면 바탕이 바뀐다 (실측 `tbody tr:hover{background:#f3f3f3}`,
 * contents.css:284). 야간모드 쪽만 있고 주간에는 없었다 — 목록 25줄이
 * 아무 반응도 없는 표로 보이던 이유다 */
.gall-list tbody tr:hover {
  background: #f3f3f3;
}

/* ── 운영 행 (이벤트·설문) ────────────────────────────
 * 실측 목록의 「AD」·「설문」 자리다. 글이 아니라서 **작게·회색으로** 둔다 —
 * 일반 글과 같은 무게로 그리면 목록 맨 위 두 줄을 운영 안내가 차지한 것처럼 보인다.
 * 광고 행(「AD」)은 만들지 않는다: 광고를 팔지 않으므로 그 행은 거짓말이다. */
.gall-list tbody tr.is-op td {
  color: #999;
  font-size: 12px;
}

.gall-list tbody tr.is-op .title {
  color: #777;
}

.gall-list tbody tr.is-op b {
  color: var(--brand-accent-dark);
  font-weight: 700;
}

/* 운영 행 아이콘 — 앰버 말풍선. 다섯 종 아이콘 어디에도 안 겹친다 */
.ico-op {
  height: 13px;
  margin-top: 1px;
  border-radius: 6px 6px 6px 2px;
  background: var(--brand-accent);
}

.ico-op::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 7px;
  height: 3px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

/* 공지 행 — 굵게 하지 않는다. 실측은 400 이다 (6-6 A-5. 03_게시판목록 캡처 측정) */

tr.empty td {
  height: auto;
  padding: 40px 0;
  color: var(--dim);
}

/* ── 제목 앞 아이콘 5종 ───────────────────────────────
 * 실측은 icon_img.png 한 장에 세로로 쌓은 스프라이트다. 우리는 그 PNG 를
 * 가져오지 않고 도형으로 그린다 — 크기(15×15)와 **색**만 실측을 따른다.
 *
 * 2026-08-30 정정: 다섯이 전부 회색 도형(#b6b6b6)이었다. 실측은 그렇지 않다 —
 * 캡처에서 픽셀을 뽑아 보니 무채색은 텍스트글 하나뿐이고 나머지는 색이 있다
 * (docs/실측/아이콘_색.md). 모양도 달랐다: 개념글 둘은 **별**이고
 * 텍스트글은 **말풍선**이며, 셋(공지·이미지·개념 둘)은 원 안에 흰 도형이다.
 *
 *   공지         #ff6633  원 + 흰 !
 *   이미지글     #339966  원 + 흰 산·해
 *   텍스트글     #cecece  말풍선 + 흰 점 3개   ← 유일한 무채색
 *   텍스트 개념  #96a5cc  원 + 흰 별
 *   이미지 개념  #535ea9  원 + 흰 별          ← 개념 둘은 색으로만 갈린다
 *
 * 예전에는 개념 계열에 --red 를 얹어 구분했다. 실측에 빨강은 없다 —
 * 개념글의 색은 파랑 계열이고, 빨강은 공지의 주황-빨강이다.
 */
.ico {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  vertical-align: -3px;
}

/* 원 안에 흰 도형 — 공지·이미지·개념 둘이 공유하는 바탕 */
.ico-notic,
.ico-pic,
.ico-recomtxt,
.ico-recomimg {
  border-radius: 50%;
}

/* 텍스트글 — 말풍선 + 흰 점 3개. 다섯 중 유일한 무채색이다 */
.ico-txt {
  height: 13px;
  margin-top: 1px;
  border-radius: 6px 6px 6px 2px;
  background: #cecece;
}

.ico-txt::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 9px;
  height: 2px;
  background:
    radial-gradient(circle 1px at 1px 1px, #fff 100%, transparent 0) 0 0 / 4px 2px repeat-x;
}

/* 이미지글 — 녹색 원 + 흰 산·해 */
.ico-pic {
  overflow: hidden;
  background: #339966;
}

.ico-pic::before {
  content: "";
  position: absolute;
  top: 3.5px;
  right: 3.5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
}

.ico-pic::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 2px;
  border-left: 5.5px solid transparent;
  border-right: 5.5px solid transparent;
  border-bottom: 6px solid #fff;
}

/* 공지 — 주황-빨강 원 + 흰 느낌표 */
.ico-notic {
  background: #ff6633;
}

.ico-notic::before {
  content: "!";
  position: absolute;
  inset: 0;
  color: #fff;
  font: 700 10px/15px tahoma, sans-serif;
  text-align: center;
}

/* 개념글 별. 원 위에 흰 별을 오려 얹는다 —
 * 별 모양은 clip-path 하나로 끝난다(이미지도 SVG 도 안 가져온다) */
.ico-recomtxt::before,
.ico-recomimg::before {
  content: "";
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  width: 12px;
  height: 12px;
  background: #fff;
  clip-path: polygon(50% 2%, 61% 35%, 96% 35%, 68% 56%, 79% 90%, 50% 69%, 21% 90%, 32% 56%, 4% 35%, 39% 35%);
}

/* ── 하단 버튼 박스 ───────────────────────────────────
 * 아래 테두리만 3px 인 것은 오타가 아니다. 눌리는 입체감을 내는 실측값이다.
 */
.btn-box {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.bb-left,
.bb-right {
  display: flex;
  gap: 4px;
}

.btn {
  display: inline-block;
  width: 85px;
  height: 40px;
  border-style: solid;
  border-width: 1px 1px 3px 1px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-fill {
  border-color: var(--mini-line);
  background: var(--mini);
  color: var(--bg);
  text-shadow: 0 -1px var(--mini-sh);
}

.btn-line {
  border-color: var(--mini-line);
  background: var(--bg);
  color: var(--mini-line);
}

/* ── 페이지네이션 ─────────────────────────────────────── */
.pager {
  margin: 20px 0 0;
  text-align: center;
}

.pg {
  display: inline-block;
  margin-left: 9px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
}

.pager .pg:first-child {
  margin-left: 0;
}

em.pg {
  color: var(--red);
  font-style: normal;
  text-decoration: underline;
}

.bottom_paging_wrap {
  display: inline-block;
  width: 100%;
  min-height: 35px;
  margin-top: 5px;
  padding: 0 121px;
  position: relative;
  box-sizing: border-box;
}

.bottom_paging_box {
  position: relative;
  margin-top: 3px;
  padding-top: 6px;
  text-align: center;
  line-height: 20px;
}

.bottom_paging_box.iconpaging {
  font-size: 0;
}

.bottom_paging_box.iconpaging .pg {
  font-size: 14px;
}

.bottom_paging_box .page_prev {
  padding-right: 5px;
}

.bottom_paging_box .page_next {
  padding-left: 5px;
}

.bottom_movebox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: 7px;
  right: 0;
}

.page-move-input {
  width: 44px;
  height: 26px;
  padding: 0 4px;
  border: 1px solid var(--line);
  box-sizing: border-box;
  color: var(--fg);
  font: 12px Gulim, 굴림, sans-serif;
}

.btn_grey_roundbg.btn_schmove {
  height: 26px;
  padding: 0 9px 0 10px;
  border: 1px solid #b4b4b4;
  background: #f8f8f8;
  color: var(--soft);
  font: 12px/24px Gulim, 굴림, sans-serif;
  cursor: pointer;
}

.btn_grey_roundbg.btn_schmove:hover {
  text-decoration: underline;
}

.icon_schmove::before {
  content: ">";
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  line-height: 1;
}

/* ── 검색 ─────────────────────────────────────────────
 * 실측 순서상 테이블·페이지네이션 아래에 온다.
 */
.search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
}

.search .s-type,
.search input[type="search"],
.search button {
  height: 30px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.search .s-type {
  padding: 0 4px;
}

.search input[type="search"] {
  width: 220px;
  min-width: 0;
  padding: 4px 8px;
}

.search button {
  padding: 0 14px;
  background: #f4f4f4;
  cursor: pointer;
}

.search-reset {
  color: var(--dim);
  font-size: 12px;
}

.search-note {
  margin: 8px 0 0;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
}

.foot {
  margin-top: 30px;
  padding: 12px var(--pad) 0;
  border-top: 1px solid var(--hair);
  color: var(--dim);
  font-size: 12px;
}

/* ── 상세 (2026-08-29 브라우저 계측) ─────────────────────
 *
 * 헤더·제목/메타·본문·추천·버튼바·댓글·댓글 작성·하단 줄까지 **1160 전폭**이다.
 * 하단 목록부터 좌 840 + 우 300 으로 갈리고, 그 갈림은 `_view_below` 가 만든다.
 *
 * .viewwrap 은 <main> 이라 기본 규칙(width: var(--content) = 840)이 걸린다.
 * 여기서 반드시 풀어 준다 — 안 풀면 예전처럼 본문이 840 으로 눌린다.
 */
main.viewwrap {
  width: 100%;
  flex: none;
}

/* ── 상세 머리 (실측 .gallview_head) ─────────
 * 제목은 h3 다 — 페이지에 h1(크롬 로고) · h2(갤러리명)가 이미 있다.
 * 메타는 좌(닉·작성일) / 우(문서 아이콘·조회·추천·댓글·수정삭제)로 갈린다.
 */
.gallview_head {
  margin: 0;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--hair);
}

/* 실측 제목은 14px bold #333 이다. 16px 이 아니었다 */
.gallview_head .title {
  margin: 0 0 9px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

/* 말머리도 제목과 같은 굵기·색이다 (예전엔 회색 400 이었다) */
.gallview_head .title_headtext {
  margin-right: 3px;
  color: #333;
  font-weight: 700;
}

.gall_writer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #333;
  font-size: 13px;
}

.gall_writer .fl,
.gall_writer .fr {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gall_writer .nickname {
  overflow: hidden;
  color: #333;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gall_writer .nickname em {
  font-style: normal;
}

.gall_writer .fr span {
  white-space: nowrap;
}

.gall_writer .gall_comment a {
  color: inherit;
}

/* 우측 첫 칸의 문서 아이콘. 스프라이트를 안 가져오므로 도형으로 그린다 */
.gall_doc {
  display: inline-block;
  width: 9px;
  height: 11px;
  border: 1px solid #999;
  background:
    linear-gradient(#999, #999) 2px 3px / 5px 1px no-repeat,
    linear-gradient(#999, #999) 2px 6px / 5px 1px no-repeat;
}

/* 댓글 수는 회색 칩이다 */
.gall_writer .gall_comment {
  padding: 1px 6px;
  border-radius: 2px;
  background: #f0f0f0;
  color: #555;
  font-size: 12px;
}

/* 수정·삭제는 메타 줄 오른쪽 끝의 작은 글자 버튼이다 */
.gall_manage {
  display: inline-flex;
  gap: 6px;
  margin-left: 4px;
}

.gall_manage a {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #888;
  font-size: 11px;
}

.mark {
  display: inline-block;
  margin-right: 4px;
  padding: 0 5px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.concept-mark {
  color: var(--red);
}

.notice-mark {
  color: var(--mini-line);
}

/*
 * 본문. 저장된 원문을 이스케이프해서 뿌리고 줄바꿈은 pre-wrap 이 살린다.
 * <br> 을 만들어 끼우지 않는 이유 — 그러려면 raw 출력이 필요하고,
 * 그 순간 본문에 HTML 을 넣을 구멍이 생긴다. CSS 로 처리하면 그 구멍이 없다.
 *
 * 폭 900 은 실측값이다 (1160 안에서 가운데). 이미지도 900 을 넘지 않는다.
 */
.write_div.post-body {
  white-space: pre-wrap;
  width: 900px;
  margin: 0 auto;
  padding: 25px 0 30px;
  overflow-wrap: anywhere;
  color: #333;
  font-size: 13px;
  line-height: 1.6;
}

.write_div.post-body img {
  max-width: 900px;
}

/* 봇 글 끝의 앱 서명 */
.op_app {
  margin: 18px 0 0;
  color: #999;
  font-size: 12px;
}

/* ── 추천 박스 333×130 ─────────────────────────────────
 * 좌 추천수 · 원형 [개념] · 원형 [비추] · 우 비추수.
 */
.reco-area {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

/* 실측 288×130 테두리 박스 (#c4c4c4 · radius 2) 안에 원형 버튼 둘과 숫자다 (C8).
 * 폭이 333 이었는데 실측은 288 이다 — 그만큼 원 사이가 벌어져 박스가 헐거웠다. */
.reco_box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
  width: 288px;
  height: 130px;
  border: 1px solid #c4c4c4;
  border-radius: 2px;
  background: #fff;
}

.reco_box form {
  display: flex;
}

.reco_num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
}

.reco_num strong {
  font-size: 16px;
  font-weight: 700;
}

/* 실측: 전체 추천 .up_num.font_red / 비추천은 회색 */
.reco_num.up strong {
  color: var(--red);
}

.reco_num.down strong {
  color: #555;
}

/* 고정닉 추천은 따로 센다 (STEP 12). 크롬의 --navy 를 쓰지 않는다 */
.reco_num.up em {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.reco_btn {
  width: 56px;
  height: 59px;
  padding: 0;
  border: 1px solid var(--mini-line);
  border-radius: 50%;
  background: #fff;
  color: var(--mini-line);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.reco_btn.down {
  border-color: #bbb;
  color: #777;
}

/* ── 추천 아래 버튼바 한 줄 ─────────────────────────── */
.view_btnbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 22px;
}

.view_btnbox .vbtn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: #666;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
}

.view_btnbox .vbtn em {
  font-style: normal;
  font-weight: 700;
}

.ico_power {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #999;
  border-radius: 50%;
  border-top-color: transparent;
}

/* ── 자체 안내 배너 (「AD」 회색 박스를 대신한다) ──────
 * 그림은 `public/banners/` 에 미리 구운 PNG 다. 2배로 굽고 1배로 걸므로
 * width·height 속성이 붙어 있어도 CSS 가 실제 크기를 정한다 —
 * 그 두 속성은 **로딩 중 자리를 잡아 두는 용도**다 (안 적으면 배너가 뜰 때 화면이 튄다).
 *
 * `a` 다. 진짜 링크여야 JS 없이도 눌린다. */
.house_banner {
  display: block;
  margin: 0 0 12px;
  font-size: 0;
  line-height: 0;
}

.house_banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* 댓글 위 가로 배너. 본문 폭(840)이 728보다 넓으므로 가운데로 모은다 */
.ad_wide {
  max-width: 728px;
  margin: 0 auto 12px;
}

/* ── 댓글 (실측) ────────────────────────────────────── */
.comment-area {
  margin: 0;
  border-top: 0;
}

/* 헤더 38px */
.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 38px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.comment-head .cmt_fl,
.comment-head .cmt_fr {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-head h4 {
  margin: 0;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.comment-head strong {
  color: var(--red);
}

.comment-head .cmt_fr a,
.comment-head .cmt_fold {
  padding: 0;
  border: 0;
  background: none;
  color: #888;
  font-size: 12px;
  cursor: pointer;
}

.csort {
  display: flex;
  gap: 9px;
}

/* 체크 아이콘형. 선택된 것만 파랑이다 */
.cs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  color: #888;
  font-size: 12px;
}

.cs .ck {
  display: inline-block;
  width: 8px;
  height: 5px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

.cs.on {
  color: var(--blue);
  font-weight: 700;
}

.comment-lst {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 한 줄형 36px. 닉 152 고정 · 내용 · 우측 날짜 */
.comment {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0;
  border-bottom: 1px solid var(--hair);
}

/* 답글은 배경색이 아니라 위쪽 선과 안쪽 여백으로 구분한다 */
.comment-add {
  padding: 9px 12px;
  border-top: 1px solid #ddd;
  background: none;
}

.comment-add::before {
  content: none;
}

/*
 * 답글 폼이 옮겨 오는 자리. 서버가 `hidden` 으로 그려 두고 app.js 가 연다.
 * `.comment` 의 flex 한 줄 규칙을 물려받으면 안 되므로 별도 li 다 —
 * 실측(04 골격)도 답글 블록을 부모 댓글과 **다른 li** 에 담는다.
 */
.reply-slot {
  display: block;
  padding: 0 0 10px 24px;
  border-bottom: 1px solid var(--hair);
}

/* display 를 지정한 요소는 UA 의 [hidden] 을 이긴다. 이 저장소의 다른 레이어들과
 * 같은 방식으로 다시 숨긴다 (.rank-page[hidden] · .all_ranklist[hidden] …) */
.reply-slot[hidden] { display: none; }

/* 자리를 옮겨 온 폼은 댓글 목록 안쪽이라 위 여백을 줄인다 */
.reply-slot .comment-form { margin-top: 8px; }

.creply {
  margin-right: 4px;
  color: #999;
  font-style: normal;
}

.cnick {
  display: flex;
  flex: 0 0 152px;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  width: 152px;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
}

.nickmark {
  padding: 0 3px;
  border: 1px solid var(--mini-line);
  color: var(--mini-line);
  font-size: 10px;
  font-weight: 700;
}

.cdate {
  flex: 0 0 auto;
  margin-left: auto;
  color: #999;
  font: 12px/1.4 tahoma, sans-serif;
}

/* 본문과 같은 이유로 <br> 을 만들지 않는다. 줄바꿈은 CSS 가 살린다. */
.ctxt {
  flex: 1 1 auto;
  white-space: pre-wrap;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
}

.ctxt.gone {
  color: var(--dim);
}

.mention {
  color: var(--blue);
  font-weight: 700;
}

/* 답글·신고·삭제는 행에 올렸을 때만 나온다 */
.cactions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0;
  visibility: hidden;
}

.comment:hover .cactions,
.comment:focus-within .cactions {
  visibility: visible;
}

.cactions a {
  color: var(--dim);
  font-size: 11px;
}

.comment-empty {
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
  text-align: center;
  color: var(--dim);
}

/* ── 댓글 작성 박스 1160×173 ───────────────────────────
 * 테두리 2px 은 갤 색이다 (미니 보라 / 정식 남색).
 */
.comment-form {
  box-sizing: border-box;
  height: 173px;
  margin: 12px 0 0;
  padding: 12px;
  border: 2px solid var(--mini-line);
  background: #fafafa;
}

.comment-ids {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.comment-ids .lb {
  color: #555;
  font-size: 12px;
}

.comment-ids label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-ids input {
  width: 120px;
  height: 26px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
}

.nick-note {
  margin: 0 0 0 8px;
  color: #888;
  font-size: 12px;
}

.comment-write {
  position: relative;
  display: flex;
  gap: 8px;
}

.comment-form textarea {
  display: block;
  box-sizing: border-box;
  width: 984px;
  height: 106px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: none;
}

.comment-send {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-send .submit {
  width: 120px;
  height: 60px;
  margin: 0;
}

.comment-send .con-open {
  width: 120px;
  height: 40px;
}

.reply-to {
  margin: 0 0 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--sub);
  font-size: 12px;
}

.reply-to a {
  margin-left: 6px;
  color: var(--dim);
}

/* ── 상세 하단 줄 (전체글 · 개념글 · 글쓰기) 55px ────── */
.view_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 55px;
  margin: 0;
}

.view_bottom .fl {
  display: flex;
  gap: 6px;
}

.view_bottom .tab {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #555;
  font-size: 12px;
}

.view_bottom .btn_write {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 16px;
  border-radius: 2px;
  background: var(--mini-line);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ── 글쓰기 · 수정 · 확인 폼 ────────────────────────── */
.form-tit {
  margin: 0;
  padding: 16px 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -1px;
}

.form-alert {
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--sub);
  font-size: 12px;
}

.write,
.confirm {
  border-top: 1px solid var(--line);
}

.field {
  padding: 12px;
  border-bottom: 1px solid var(--hair);
}

.field.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: #6a6a6a;
  font-size: 12px;
}

.field input[type="text"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  max-width: 320px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.field input[name="subject"] {
  max-width: 702px;
}

.field textarea {
  max-width: 100%;
  min-height: 220px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.field input:disabled {
  background: var(--sub);
  color: var(--dim);
}

.hint {
  margin: 5px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.err {
  margin: 5px 0 0;
  color: var(--red);
  font-size: 12px;
}

/* 허니팟. 사람 눈에는 안 보이지만 display:none 은 아니어야 봇이 채운다 */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
}

.comment-form .actions {
  padding: 0;
}

.submit {
  min-height: 36px;
  padding: 8px 22px;
  border: 1px solid var(--mini-line);
  border-radius: 2px;
  background: var(--mini);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  text-shadow: 0 -1px var(--mini-sh);
  cursor: pointer;
}

.submit.danger {
  border-color: var(--red);
  background: var(--bg);
  color: var(--red);
  text-shadow: none;
}

.cancel {
  padding: 8px 12px;
  color: var(--dim);
}

.pw-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  background: var(--sub);
  color: #6a6a6a;
  font-size: 12px;
  line-height: 1.7;
}

/* ── DC 글쓰기 껍데기 ───────────────────────────────── */
.dc-write-wrap {
  width: var(--wrap);
  margin: 18px auto 0;
}

.write-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0 9px;
  border-bottom: 2px solid var(--mini-line);
}

.write-head h2 {
  margin: 0;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.write-gallery-link {
  color: var(--mini-line);
  font-size: 12px;
  line-height: 1.2;
}

.dc-write {
  border-top: 0;
}

.write-fields {
  margin: 0;
  padding: 11px 0 0;
  border: 0;
}

.write-fields legend {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.write_subject,
.write_identity {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}

.write_subject {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}

.write_identity {
  padding: 8px 0;
  border-bottom: 1px solid var(--hair);
}

.write_identity.member .hint {
  margin: 0 0 0 6px;
}

.write-label,
.txt_placeholder {
  flex: 0 0 auto;
  color: #666;
  font-size: 12px;
}

.subject-label {
  margin-left: 6px;
}

.dc-write .put_inquiry,
.write_identity.member input {
  height: 31px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  line-height: 29px;
}

.head-select {
  width: 112px;
}

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

.subject-count {
  flex: 0 0 50px;
  color: var(--dim);
  font: 11px/31px tahoma, sans-serif;
  text-align: right;
}

.subject-count em {
  color: var(--fg);
  font-style: normal;
}

.write_identity .input_box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.write_identity .input_box .put_inquiry {
  width: 156px;
}

.write-errors {
  padding: 4px 0 0;
}

.note-editor.note-frame {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.note-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 5px 7px;
  border-bottom: 1px solid var(--line);
  background: var(--sub);
}

.note-btn-group {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.note-btn {
  height: 26px;
  padding: 0 7px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: 12px/24px inherit;
  letter-spacing: 0;
  cursor: pointer;
}

.note-btn.wide {
  padding-right: 8px;
  padding-left: 8px;
}

.note-btn:hover,
.note-btn:focus {
  border-color: var(--mini-line);
  text-decoration: none;
}

.note-btn .u {
  text-decoration: underline;
}

.note-sep {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: var(--line);
}

.html-check {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--fg);
  font-size: 12px;
  white-space: nowrap;
}

.html-check input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.note-editing-area {
  background: var(--bg);
}

.note-editable {
  min-height: 400px;
  height: 850px;
  padding: 12px;
  border: 0;
  outline: 0;
  background: var(--bg);
  color: #000;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.note-editable:empty::before {
  content: attr(data-placeholder);
  color: var(--dim);
}

.write-body-source,
.write-file-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.body-err {
  margin-top: 6px;
}

.attach-row {
  margin-top: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}

.attach-row .label {
  display: block;
  margin-bottom: 6px;
  color: #666;
}

.write-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.write-bottom p {
  margin: 0;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.write-bottom .btn_box {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.btn_cancle,
.btn_apply {
  display: inline-block;
  min-width: 58px;
  height: 31px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: 12px/29px inherit;
  text-align: center;
  cursor: pointer;
}

.btn_apply {
  border-color: var(--mini-line);
  background: var(--mini);
  color: var(--bg);
  font-weight: 700;
}

.btn_cancle:hover,
.btn_apply:hover {
  text-decoration: none;
}

.confirm-target {
  padding: 10px 12px;
  border: 1px solid var(--hair);
  background: var(--sub);
}

.confirm-target .t {
  margin: 0;
  font-weight: 700;
}

.confirm-target .m {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 12px;
}

/* ── 신고 · 관리자 ───────────────────────────────────── */
.report-actions {
  margin: -24px 0 18px;
  text-align: center;
}

.report-actions a {
  display: inline-block;
  min-width: 62px;
  height: 27px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #6a6a6a;
  font-size: 12px;
  line-height: 25px;
}

.report-actions a:hover {
  border-color: var(--red);
  color: var(--red);
  text-decoration: none;
}

.report-form textarea {
  min-height: 120px;
}

body.page-admin {
  --content: 1160px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--mini-line);
  border-bottom: 1px solid var(--tbl-bottom);
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  padding: 8px 7px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #333;
  font-weight: 700;
}

.admin-table .urgent td:first-child {
  border-left: 3px solid var(--red);
}

.admin-title {
  display: block;
  overflow: hidden;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail {
  margin: 5px 0 0;
  color: #555;
  font-size: 12px;
  line-height: 1.5;
}

.admin-table .m {
  color: var(--dim);
  font-size: 11px;
}

.admin-actions {
  white-space: nowrap;
}

.btn-mini {
  display: inline-block;
  min-width: 58px;
  height: 26px;
  margin-right: 4px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #6a6a6a;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

.btn-mini:hover {
  text-decoration: none;
}

.btn-mini.danger {
  border-color: var(--red);
  color: var(--red);
}

/*
 * 닉·비번 칸은 placeholder 로 안내하되 라벨을 없애지는 않는다.
 * 화면 낭독기는 읽고, 눈으로는 입력칸만 보인다.
 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── 갤러리 메인 · 전체보기 ───────────────────────── */
.gall-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.to-main {
  color: var(--dim);
  font-size: 12px;
}

.mgall_info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 33px;
  margin: 14px 0 11px;
}

/* 실측 .mgall_info .txt — 33px 줄높이, 14px 굵게 */
.mgall_info .txt {
  margin: 0;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
  line-height: 33px;
}

.mgall_info .txt strong {
  color: var(--mini-line);
}

/* 미니갤 메인 버튼은 둥글다. 게시판의 각진 버튼과 다르다 */
.mgall_info .round {
  border-radius: 17px;
  height: 33px;
  line-height: 31px;
}

.mgall_info_btns {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

/* 하단 버튼 박스의 85px 고정폭을 여기서는 쓰지 않는다 (글자가 두 줄로 깨진다) */
.mgall_info .btn {
  width: auto;
  padding: 0 18px;
  white-space: nowrap;
}

/* 실측 .mgall_make_go 는 150px 고정이다 */
.mgall_make_go {
  width: 150px;
  padding: 0;
  text-align: center;
}

/* 미니갤 메인 전체를 감싸는 상자 */
.gallmain {
  padding-bottom: 0;
}

.mini_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 28px 0 0;
}

.mini_head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -1px;
}

/* ── 흥한 미니 갤러리 ────────────────────────────────
 * 실측 .mini_list_wrap 은 위쪽만 2px 보라선이다.
 */
.mini_list_wrap {
  margin-top: 11px;
  border: 1px solid #d5d5d5;
  border-width: 2px 1px 1px;
  border-top-color: var(--mini);
}

.allandrank {
  display: flex;
  align-items: center;
  height: 35px;
  margin-top: 18px;
  border-bottom: 2px solid var(--mini);
}

.allandrank .btn_gall_all {
  flex: 0 0 110px;
  width: 110px;
  height: 20px;
  padding: 0;
  border-color: var(--mini-line);
  border-radius: 10px;
  background: var(--mini);
  color: var(--bg);
  font-size: 12px;
  line-height: 18px;
  text-shadow: 0 -1px var(--mini-sh);
}

.allandrank .rank_listwrap {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 286px;
}

.allandrank .rank_listwrap .mini_head {
  flex: 0 0 auto;
  margin: 0;
}

.allandrank .rank_listwrap .mini_head h2 {
  height: 20px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--mini);
  color: var(--bg);
  font-size: 12px;
  line-height: 20px;
  text-shadow: 0 -1px var(--mini-sh);
}

.allandrank .btn_rank_all {
  margin-left: 6px;
}

.mini_list_wrap .mini_head {
  margin: 0;
  padding: 12px 12px 0;
}

/* 176px 열을 가로로 나열한다. 840px 안에서 4열 × 5행 */
.rank_list_box {
  display: flex;
  flex-wrap: wrap;
  margin: 23px 0 3px 20px;
}

.mini-rank-board {
  padding: 8px 12px 10px;
}

.mini-featured-list,
.mini-compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-featured-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
}

.mini-featured-list > li {
  position: relative;
  min-width: 0;
  border: 1px solid var(--hair);
}

.mini-featured-list a {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 62px;
  padding: 6px;
}

.mini-featured-list .rank_num {
  flex: 0 0 15px;
  margin-right: 5px;
}

.mini-rank-thumb {
  overflow: hidden;
  flex: 0 0 72px;
  width: 72px;
  height: 48px;
  border: 1px solid var(--hair);
  background: var(--sub);
}

.mini-rank-thumb img,
.mini-compact-thumb img,
.mini-cat-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-rank-thumb span,
.mini-compact-thumb span,
.mini-cat-thumb span {
  display: block;
  color: var(--mini-line);
  font-weight: 700;
  text-align: center;
}

.mini-rank-thumb span {
  font-size: 20px;
  line-height: 46px;
}

.mini-rank-text {
  display: block;
  min-width: 0;
  padding-left: 7px;
}

.mini-rank-text strong,
.mini-rank-text span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-rank-text strong {
  color: var(--fg);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.mini-rank-text span {
  height: 28px;
  margin-top: 2px;
  color: #555;
  font-size: 11px;
  line-height: 14px;
}

.mini-featured-list .icon_new {
  right: 5px;
  top: 5px;
}

.mini-compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--hair);
}

.mini-compact-list > li {
  position: relative;
  min-width: 0;
  height: 33px;
  border-bottom: 1px solid var(--hair);
}

.mini-compact-list a {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 32px;
  overflow: hidden;
}

.mini-compact-list .rank_num {
  flex: 0 0 15px;
  margin-right: 0;
}

.mini-compact-thumb {
  overflow: hidden;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--hair);
  background: var(--sub);
}

.mini-compact-thumb span {
  font-size: 13px;
  line-height: 26px;
}

.mini-compact-list .rank_txt {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding-right: 13px;
  font-size: 12px;
  line-height: 32px;
}

/* 실측 열은 176px 고정이다 (실측 상자가 702px 라 4열이 딱 맞는다).
 * 우리 상자는 840px 이라 그대로 두면 136px 이 남고, 그 여백에 icon_new 가
 * 다음 열 이름에 붙어 보인다. 최소 176px 만 지키고 남는 폭을 나눠 갖게 한다. */
.rank_list {
  flex: 1 1 176px;
  min-width: 176px;
  margin: 0;
  padding: 0 0 10px 0;
  list-style: none;
}

/* 열은 남는 폭을 나눠 갖지만, 줄 자체는 실측 176px 로 묶어 둔다.
 * 안 그러면 우측 상단 절대배치인 icon_new 가 이름에서 한참 떨어져 다음 열에 붙어 보인다. */
.rank_list li {
  position: relative;
  max-width: 176px;
  margin-bottom: 18px;
}

.rank_list a {
  display: block;
  overflow: hidden;
  height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 실측은 숫자가 아니라 보라 박스다 */
.rank_num {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  border: 1px solid var(--mini-line);
  background: var(--mini);
  color: var(--bg);
  font: 400 10px/13px tahoma, sans-serif;
  text-align: center;
  vertical-align: top;
}

.rank_txt {
  display: inline-block;
  overflow: hidden;
  max-width: 126px;
  padding-right: 9px;
  font-size: 13px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

/* 실측 icon_new 는 우측 상단 절대배치다 */
.icon_new {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0 3px;
  border-radius: 2px;
  background: var(--red);
  color: var(--bg);
  font: 700 9px/13px tahoma, sans-serif;
}

/* ── 실시간 북적 미니 갤러리 ──────────────────────────
 * 18px 한 줄만 보이고 세로로 돈다. JS 가 없으면 1위만 보인다.
 */
.busy_rolls {
  display: flex;
  margin-top: 11px;
  padding: 12px 0;
  border: 1px solid #d5d5d5;
}

.allandrank .busy_rolls {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 0 8px;
  padding: 0;
  border: 0;
}

.one_ranklist {
  overflow: hidden;
  width: 163px;
  height: 18px;
  margin-left: 16px;
}

.allandrank .one_ranklist {
  margin-left: 0;
}

.one_ranklist .rank_list {
  flex: none;
  min-width: 0;
  padding: 0;
}

.one_ranklist .rank_list li {
  height: 18px;
  margin-bottom: 0;
}

.one_ranklist .rank_txt {
  width: 124px;
  max-width: none;
}

.one_ranklist .rank_num {
  line-height: 13px;
}

/* ── 카테고리 섹션 ───────────────────────────────────── */
.mini_catebox {
  border-top: 1px solid var(--mini);
}

.mini_catebox:first-of-type {
  border-top: 3px solid var(--mini);
  margin-top: 28px;
}

.catehead {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 10px 0 9px;
  border-bottom: 1px solid var(--line);
  line-height: 38px;
}

.catehead h3 {
  margin: 0;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.catehead h3 em {
  margin-left: 5px;
  color: var(--dim);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

/* 카테고리명과 신설갤 목록 사이의 세로 구분선 */
.catehead h3::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 13px;
  margin: 0 10px 0 7px;
  background: #d5d5d5;
  vertical-align: -2px;
}

.mini_new {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
}

.mini_new .tit {
  flex: 0 0 26px;
  width: 26px;
  height: 14px;
  border-radius: 2px;
  background: #beb0d1;
  color: var(--bg);
  font-size: 11px;
  line-height: 13px;
  letter-spacing: -0.05em;
  text-align: center;
}

.mini_new .lists {
  display: flex;
  overflow: hidden;
  margin: 0 0 0 9px;
  padding: 0;
  list-style: none;
}

.mini_new .lists li {
  overflow: hidden;
  margin-left: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini_new .lists li:first-child {
  margin-left: 0;
}

.mini_new .lists a {
  color: #555;
}

.mini_new .empty {
  margin-left: 11px;
  color: var(--dim);
}

.btn_cate_more {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--mini-line);
  font-size: 12px;
}

/* 전체 폭 슬롯. 좌우 컬럼 밖이라 --content 를 그대로 쓰며 좁아져도 접지 않는다 */
.minicate_wrap {
  width: var(--content);
}

body.page-mini .minicate_wrap {
  width: var(--wrap);
}

/* 실측 그대로의 float 흐름.
 * 338×3 + 여백 15×3 − 10 = 1049 → 1050 에 딱 맞는다.
 * 디시처럼 좁은 화면에서도 같은 3열 폭을 유지한다. */
.mini_catelists {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  padding: 4px 8px 10px;
  list-style: none;
}

.mini_catelists > li {
  min-width: 0;
  border-bottom: 1px solid var(--hair);
}

.mini_catelists > li.empty {
  grid-column: 1 / -1;
  min-height: 52px;
  padding-top: 19px;
  color: var(--dim);
  text-align: center;
}

.mini-cat-item a {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 54px;
  padding: 7px 0;
}

.mini-cat-thumb {
  overflow: hidden;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hair);
  background: var(--sub);
}

.mini-cat-thumb span {
  font-size: 16px;
  line-height: 38px;
}

.mini-cat-body {
  display: block;
  min-width: 0;
  padding-left: 8px;
}

.mini-cat-name,
.mini-cat-intro,
.mini-cat-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-cat-name {
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
}

.mini-cat-intro {
  margin-top: 2px;
  color: #555;
  font-size: 11px;
  line-height: 14px;
}

.mini-cat-meta {
  margin-top: 2px;
  color: var(--dim);
  font: 11px/13px tahoma, sans-serif;
}

/* 순위 팝업을 여는 [전체] */
.btn_rank_all {
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: #555;
  font: 400 11px/16px inherit;
  cursor: pointer;
}

.btn_rank_all:hover {
  border-color: var(--mini-line);
  color: var(--mini-line);
  text-decoration: none;
}

/* 초성 바 */
.chosung-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.chosung-bar a {
  min-width: 26px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 12px;
  text-align: center;
}

.chosung-bar a:hover {
  border-color: var(--mini-line);
  color: var(--mini-line);
  text-decoration: none;
}

/* 갤러리 카드 */
/* 실측 .mini_catelists li 는 338px 고정이다. 실측 좌측 콘텐츠가 약 702px 라
 * 338 × 2 가 꽉 차기 때문인데, 우리 콘텐츠는 840px 이라 그대로 박으면 134px 이 뜬다.
 * 그래서 카드 폭만 유동으로 둔다 — 최소 338px, 남는 폭은 텍스트 칸이 가져간다.
 * 썸네일 105×70 · 소개 2줄 · 이름 14px 은 실측 그대로 고정이다. */
.card-grid {
  display: grid;
  /* minmax 의 아래쪽이 338px 이라 트랙이 min-content 로 밀리지 않는다 */
  grid-template-columns: repeat(auto-fill, minmax(338px, 1fr));
  gap: 10px 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* /all 도 같은 격자를 쓴다 */
.card-grid.wide {
  grid-template-columns: repeat(auto-fill, minmax(338px, 1fr));
}

/* 실측 가로형: 썸네일 105 + 여백 10 + 텍스트 223 = 338px.
 * 우리는 840px 2열이라 텍스트 쪽이 그보다 넓어진다. 썸네일 폭은 실측 그대로 고정. */
.gcard a {
  display: flex;
  gap: 10px;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.gcard a:hover {
  border-color: var(--mini-line);
  text-decoration: none;
}

/* 실측 .mini_infoimg — 갤마다 다른 색 타일이 아니라 공통 기본 배경이다.
 * 이미지를 가져오지 않으므로 도형으로 그린 중립 배경으로 대신한다.
 * STEP 10 에서 <img> 로 갈아끼워도 105×70 이라 레이아웃이 안 흔들린다. */
.gcard-thumb {
  /* 고정폭이다. flex:0 0 이 아니면 좁은 칸에서 썸네일이 찌그러진다 */
  flex: 0 0 105px;
  position: relative;
  height: 70px;
  border: 1px solid var(--hair);
  background: #f5f5f7;
}

/* 중립 배경 안의 산 모양 — "이미지가 들어올 자리" 라는 표시다 */
.gcard-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 26%;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 16px solid #d9d9de;
  transform: translateX(-50%);
}

/* min-width:0 이 없으면 안쪽의 nowrap 이름이 칸을 밀어 카드가 터진다 */
.gcard-body {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 6px;
}

.gcard-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
}

/* 실측 .mini_infotxt .txt — height 35px / line-height 18px 이라 2줄에서 잘린다.
 * -webkit-line-clamp 대신 높이로 자르는 게 지원 폭이 넓다. */
.gcard-intro {
  display: block;
  overflow: hidden;
  height: 35px;
  margin-top: 6px;
  color: #555;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.01em;
  white-space: normal;
  word-break: break-all;
}

/* 실측 .member_numinfo 자리. 우리에겐 회원 개념이 없어 같은 서식으로 글 수를 둔다 */
.gcard-meta {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font: 11px/1.4 tahoma, sans-serif;
}

/* 실측 .icon_membernum 12×13px. 스프라이트 대신 도형으로 그린다 */
.icon_membernum {
  display: inline-block;
  position: relative;
  width: 12px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
}

.icon_membernum::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 12px;
  height: 10px;
  border: 1px solid #b6b6b6;
}

.icon_membernum::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 8px;
  height: 1px;
  border-top: 1px solid #b6b6b6;
  border-bottom: 1px solid #b6b6b6;
  height: 4px;
}

/* /all 필터 */
.gall-filter {
  margin: 12px 0 16px;
  border: 1px solid var(--line);
}

.gf-row {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--hair);
}

.gf-row:last-child {
  border-bottom: 0;
}

.gf-label {
  flex: 0 0 52px;
  color: var(--dim);
  font-size: 12px;
  line-height: 18px;
}

.gf-items {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
}

.gf {
  color: #444;
  font-size: 12px;
  line-height: 18px;
}

.gf.on {
  color: var(--mini-line);
  font-weight: 700;
}

/* ── 공통 크롬 ───────────────────────────────────────
 * 최상단 헤더 · GNB · 통계 · 최근 방문 바 · 하단 사이트맵.
 * 마크업은 src/views/layout.eta 한 곳에만 있다.
 *
 * 크롬 색은 남색 고정이다. 미니갤 보라(--mini)는 갤러리 안쪽 전용이라
 * 여기서는 쓰지 않는다 — 실측 대상도 크롬은 갤러리 종류와 무관하게 남색이다.
 *
 * 폭: 실측은 .dchead / nav.gnb 가 1050px 인데, 같은 실측의
 * gnb_list 840 + gall_exposure 306 = 1146 이 1050 을 넘는다("1160 기준" 주석).
 * 그래서 크롬 안쪽 컨테이너는 1160(= --wrap)으로 맞춘다.
 * 840 은 --content 와 같아서 GNB 가 본문 컬럼과 정확히 정렬된다.
 */

:root {
  --navy: #3b4890; /* 크롬 주색: GNB 바, 검색 버튼 배경 */
  --navy-dark: #29367c; /* 크롬 보조: 테두리, 소제목 */
  --navy-sh: #1f2552; /* GNB 글자 text-shadow */
  --gnb-on: #ffed44; /* 현재 메뉴 */
}

/* 최상단 헤더 */
.dchead {
  position: relative;
  width: var(--wrap);
  height: 105px;
  margin: 0 auto;
}

.dc_logo {
  position: absolute;
  left: 0;
  top: 28px;
  margin: 0;
  font-size: 0;
  letter-spacing: 0;
}

.dc_logo a {
  display: block;
  position: relative;
  width: 285px;
  height: 54px;
  color: var(--fg);
  font-weight: 700;
}

/* 마크는 「기울어진 사각 테두리 + 두꺼운 오른쪽 변」이다.
 * 그 두꺼운 변만 앰버로 둔다 — 파비콘(build-brand.mjs)이 같은 도형이라
 * 탭 아이콘과 헤더 로고가 한 물건으로 읽힌다. */
.dc_logo_mark {
  position: absolute;
  left: 0;
  top: 12px;
  width: 44px;
  height: 30px;
  border: 4px solid var(--brand);
  border-right: 10px solid var(--brand-accent);
  color: var(--brand);
  font-size: 0;
  transform: skew(-12deg);
}

.dc_logo_word {
  position: absolute;
  left: 56px;
  top: 6px;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 900;
  line-height: 32px;
  letter-spacing: 0;
}

.dc_logo_slogan {
  position: absolute;
  left: 132px;
  top: 37px;
  color: var(--brand-accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 1px;
}

.wrap_search {
  position: absolute;
  left: 318px;
  top: 31px;
}

.top_search {
  overflow: hidden;
  width: 365px;
  height: 46px;
  background: var(--navy);
}

.inner_search {
  float: left;
  width: 312px;
  margin: 4px 0 0 4px;
  background: var(--bg);
}

.in_keyword {
  width: 295px;
  height: 38px;
  padding: 0 9px;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: 38px;
  color: var(--fg);
}

.in_keyword::placeholder {
  color: var(--dim);
  font-weight: normal;
}

.btn_search {
  float: right;
  position: relative;
  width: 45px;
  height: 38px;
  margin: 4px 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: transparent;
  font: inherit;
  font-size: 0;
  font-weight: bold;
  line-height: 38px;
  letter-spacing: 0;
  cursor: pointer;
}

.btn_search::before,
.btn_search::after {
  content: "";
  position: absolute;
  display: block;
}

.btn_search::before {
  left: 11px;
  top: 8px;
  width: 15px;
  height: 15px;
  border: 4px solid var(--bg);
  border-radius: 50%;
}

.btn_search::after {
  left: 28px;
  top: 25px;
  width: 13px;
  height: 4px;
  background: var(--bg);
  transform: rotate(45deg);
  transform-origin: left center;
}

/* GNB 바 */
.gnb_bar {
  border-style: solid;
  border-color: var(--navy-dark);
  border-width: 1px 0;
  background: var(--navy);
}

.gnb {
  width: var(--wrap);
  height: 44px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* 840(= --content) + 296 = 1136 = 1160 - 좌우 여백 12px 두 개. 딱 맞는다 */
.gnb_list {
  float: left;
  width: calc(100% - 296px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gnb_list > li {
  position: relative;
  float: left;
  margin-left: 20px;
}

.gnb_list > li:first-child {
  margin-left: 0;
}

.gnb_list > li > a {
  display: block;
  color: var(--bg);
  font-size: 14px;
  font-weight: bold;
  line-height: 44px;
  letter-spacing: 0.025em;
  text-shadow: 0 -1px var(--navy-sh);
}

.gnb_list > li > a.on {
  color: var(--gnb-on);
}

.gnb_has_sub > a::after {
  content: "\25BE";
  margin-left: 4px;
  font-size: 11px;
}

.gnb_separator {
  float: left;
  width: 1px;
  height: 12px;
  margin: 16px 2px 0 22px;
  background: var(--navy-dark);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.gnb_more {
  position: relative;
}

.gnb_more .btn_depth {
  display: block;
  position: relative;
  width: 24px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.gnb_more .btn_depth::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #d6d6d6;
}

.gnb_more .depth2 {
  display: none;
  position: absolute;
  left: -18px;
  top: 44px;
  z-index: 20;
  width: 116px;
  margin: 0;
  padding: 7px 0;
  border: 1px solid var(--navy-dark);
  background: var(--bg);
  list-style: none;
}

.gnb_more:hover .depth2,
.gnb_more:focus-within .depth2 {
  display: block;
}

.gnb_more .depth2 a {
  display: block;
  padding: 5px 11px;
  color: var(--fg);
  font-size: 12px;
  line-height: 16px;
  text-shadow: none;
}

/* 드롭다운. 클라이언트 JS 없이 :hover / :focus-within 으로만 연다 */
.gnb_sub {
  display: none;
  position: absolute;
  left: 0;
  top: 44px;
  z-index: 20;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  border: 1px solid var(--navy-dark);
  background: var(--bg);
  column-count: 2;
  list-style: none;
}

.gnb_has_sub:hover .gnb_sub,
.gnb_has_sub:focus-within .gnb_sub {
  display: block;
}

.gnb_sub a {
  display: block;
  padding: 4px 14px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.gnb_sub a:hover {
  background: #f3f3f3;
}

/* 통계. 문구 3종이 306px 안에 한 줄로 다 안 들어가서 실측 대상처럼 번갈아 보여 준다.
 * 세 문구 모두 DOM 에는 항상 있다 (낭독기·검색은 전부 읽는다). */
.gall_exposure {
  position: relative;
  float: right;
  overflow: hidden;
  width: 296px;
  height: 44px;
  color: var(--bg);
  font-size: 14px;
  line-height: 44px;
  text-align: center;
}

/* 자식 span 만 돌린다. 안쪽 .num 까지 집으면 숫자가 통째로 사라진다 */
.gall_exposure > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  white-space: nowrap;
  opacity: 0;
  animation: exposure-cycle 12s infinite;
}

.gall_exposure > span:nth-child(2) {
  animation-delay: 4s;
}

.gall_exposure > span:nth-child(3) {
  animation-delay: 8s;
}

/* 목록 숫자칸용 .num(11px tahoma)을 여기서만 되돌린다 */
.gall_exposure .num {
  font: inherit;
  font-weight: bold;
  padding: 0;
  letter-spacing: 0.7px;
}

@keyframes exposure-cycle {
  0%,
  30% {
    opacity: 1;
  }
  34%,
  100% {
    opacity: 0;
  }
}

/* 움직임을 줄이라고 한 사용자에겐 첫 문구만 고정으로 보여 준다 */
@media (prefers-reduced-motion: reduce) {
  .gall_exposure > span {
    animation: none;
  }

  .gall_exposure > span:first-child {
    opacity: 1;
  }
}

/* 최근 방문 바 */
.visit_bookmark {
  width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.newvisit_history {
  position: relative;
  height: 38px;
  margin: 14px 0 10px;
  padding: 0 66px 0 12px;
  background: #f3f3f3;
  color: #444;
  line-height: 38px;
  box-sizing: border-box;
}

/* 배경과 분리된 선. 배경색 위에 테두리만 얹는다 */
.newvisit_history::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #d5d5d5;
  pointer-events: none;
}

.newvisit_history .tit {
  float: left;
  font-size: 12px;
  color: var(--navy-dark);
  letter-spacing: -0.075em;
}

/* overflow:hidden 으로 BFC 를 만들어 .tit 플로트 옆에 앉힌다.
 * 이때 왼쪽 여백은 margin 이 아니라 padding 이어야 플로트와 안 겹친다 */
.newvisit_list {
  overflow: hidden;
  margin: 0;
  padding: 0 0 0 15px;
  list-style: none;
  white-space: nowrap;
}

.newvisit_list li {
  display: inline-block;
  margin-left: 15px;
  font-size: 12px;
}

.newvisit_list li:first-child {
  margin-left: 0;
}

.newvisit_list a {
  color: #444;
  letter-spacing: -0.075em;
}

.newvisit_none {
  overflow: hidden;
  margin: 0;
  padding-left: 15px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: -0.075em;
}

/* 하단 사이트맵 */
/* 실측 1158px. 폭을 좁게 쓰는 화면에서는 그 페이지 폭을 따라가되 줄어들지는 않는다
 * (헤더·GNB 와 같은 기준이라 셋이 어긋나 보이지 않는다) */
body.page-portal .dc_all,
body.page-mini .dc_all {
  width: var(--wrap);
}

.dc_all {
  overflow: hidden;
  width: 1158px;
  margin: 20px auto 0;
  padding: 16px 12px 4px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-top: 2px solid var(--navy-dark);
  border-bottom: 1px solid var(--navy-dark);
}

.dc_compact {
  overflow: hidden;
  width: 1158px;
  margin: 58px auto 0;
  padding: 16px 12px 13px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-top: 2px solid var(--navy-dark);
  border-bottom: 1px solid var(--line);
}

.dc_all dl {
  float: left;
  width: 20%;
  margin: 0 0 16px;
  padding-right: 8px;
  box-sizing: border-box;
}

.dc_compact dl {
  float: left;
  width: 16.666%;
  min-height: 142px;
  margin: 0;
  padding: 0 16px 0 0;
  border-right: 1px solid var(--hair);
  box-sizing: border-box;
}

.dc_compact dl:last-child {
  border-right: 0;
}

.dc_all dt {
  margin-bottom: 5px;
  color: var(--navy-dark);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: -0.05em;
}

.dc_compact dt {
  margin-bottom: 6px;
  color: var(--navy-dark);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: -0.05em;
}

.dc_all dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: -0.05em;
}

.dc_compact dd {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: -0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc_all dd a {
  color: #666;
}

.dc_compact dd a {
  color: #333;
}

.dc_notice_foot,
.dc_service_foot {
  width: var(--wrap);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 12px;
}

.dc_notice_foot {
  min-height: 31px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hair);
}

.dc_notice_foot strong {
  margin-right: 13px;
  color: var(--navy-dark);
}

.dc_notice_foot a {
  margin-right: 12px;
  font-weight: 700;
}

.dc_notice_foot span {
  color: var(--dim);
}

.dc_service_foot {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.dc_service_foot a {
  display: inline-block;
  position: relative;
  margin-left: 16px;
  color: #333;
  line-height: 13px;
}

.dc_service_foot a:first-child {
  margin-left: 0;
}

.dc_service_foot a + a::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 2px;
  width: 1px;
  height: 10px;
  background: #d7d7d7;
}

.dcfoot .foot {
  width: var(--wrap);
  margin: 0 auto;
  padding-top: 10px;
  text-align: center;
}

/* ── 갤러리 등급 아이콘 ───────────────────────────────
 * 실측 .rankingcon 은 20×17px, vertical-align -4px 스프라이트다.
 * 이미지를 가져오지 않고 원으로 그린다. 5종이 서로 구분되기만 하면 된다.
 * 흔한갤은 아이콘이 없다 (아래 grade-plain 에서 지운다).
 */
.grade-ico {
  display: inline-block;
  width: 20px;
  height: 17px;
  position: relative;
  vertical-align: -4px;
}

/* 가운데 정렬로 잡아 둔다. 배지 안에서는 아이콘 상자만 좁히면 점은 알아서 따라온다 */
.grade-ico::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
}

.grade-mega .grade-ico::before { background: var(--red); }
.grade-hot .grade-ico::before { background: var(--mini); }
.grade-dead .grade-ico::before { background: var(--dim); }

/* 신규갤만 속이 빈 원. box-sizing:border-box 라 테두리가 안쪽으로 그려진다 */
.grade-new .grade-ico::before {
  border: 2px solid var(--mini);
}

.grade-plain .grade-ico {
  display: none;
}

/* ── 접힌 갤러리 정보 라벨 ───────────────────────────── */
.mini_info {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
}

.mini_ranktxt {
  margin-left: 3px;
}

.mini_ranknum {
  margin-left: 5px;
  color: var(--dim);
  font-weight: 400;
}

.mini_desc {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  word-break: break-all;
}

.mini_desc.empty {
  color: var(--dim);
}

/* ── 레이어 · 팝업 ───────────────────────────────────
 * 서버가 마크업을 미리 그려 두고 public/app.js 가 hidden 만 여닫는다.
 * JS 가 없으면 hidden 인 채로 남고, 여는 쪽 <a> 가 원래 주소로 이동한다.
 */
.gall-layer,
.rank-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 50;
  width: 700px;
  max-height: 600px;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--mini-line);
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.gall-layer[hidden],
.rank-popup[hidden] {
  display: none;
}

.layer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--mini);
}

.layer-head h2 {
  margin: 0;
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.layer-close {
  padding: 2px 8px;
  border: 1px solid var(--mini-line);
  border-radius: 2px;
  background: var(--bg);
  color: #555;
  font: 400 12px/16px inherit;
  cursor: pointer;
}

.gall-layer .gall-filter {
  margin: 0;
  border: 0;
}

.rank-note {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hair);
  background: #fafbff;
  color: #555;
  font-size: 12px;
  line-height: 1.6;
}

.rank-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.rank-page[hidden] {
  display: none;
}

.rank-page li {
  overflow: hidden;
  padding: 4px 0;
  border-bottom: 1px solid var(--hair);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.rank-pager {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 12px 14px;
}

.rank-pager button {
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: 400 12px/16px tahoma, sans-serif;
  cursor: pointer;
}

.rank-pager button.on {
  border-color: var(--mini-line);
  background: var(--mini);
  color: var(--bg);
}

/* 필터 조각 안의 검색 폼 (/all 본문과 레이어가 함께 쓴다) */
.gf-search {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-top: 1px solid var(--hair);
}

.gf-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 26px;
  padding: 0 6px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 12px;
}

.gf-search button {
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--mini-line);
  background: var(--mini);
  color: var(--bg);
  font: 700 12px/24px inherit;
  cursor: pointer;
}

/* 실시간 북적 롤링은 transform 으로 움직인다. 줄이라고 하면 멈춘다 */
@media (prefers-reduced-motion: reduce) {
  .one_ranklist .rank_list {
    transition: none !important;
    transform: none !important;
  }
}

/* ── 카테고리 섹션 (실측 .minicate_wrap) ──────────────
 * STEP 9 에서 좌측 콘텐츠 안에 넣었는데, 실측은 좌우 컬럼이 모두 닫힌 뒤
 * 전체 폭으로 온다. layout.eta 의 전체 폭 슬롯이 그린다.
 */
.mini_catebox:first-of-type {
  margin-top: 0;
}

.minicate_wrap .mini_catebox:first-child {
  border-top: 3px solid var(--mini);
}

/* ── 실시간 북적 [전체] 펼침 (실측 .all_ranklist) ─────
 * 실측도 HTML 안에 display:none 으로 들어 있고 JS 가 토글만 한다.
 * 1~10 은 .rank_high, 11~20 은 .rank_low 두 ol 이다.
 */
.all_ranklist {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #d5d5d5;
  border-top: 2px solid var(--mini);
}

.all_ranklist[hidden] {
  display: none;
}

.all_ranklist .box_tit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 33px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid var(--hair);
}

.all_ranklist .box_tit .tit {
  margin: 0;
  color: #222;
  font-size: 13px;
  font-weight: 700;
}

.all_ranklist .rank_list {
  float: left;
  width: 50%;
  padding: 12px 0;
}

.all_ranklist .rank_list li {
  max-width: none;
  margin-bottom: 0;
  padding: 0 12px;
}

.all_ranklist .rank_list a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
}

.all_ranklist .rank_txt {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding-right: 0;
}

/* 순위 변동 — 유지면 rank_state 없이 아이콘 하나만 온다 */
.rank_state {
  color: var(--dim);
  font: 11px/1 tahoma, sans-serif;
}

.ico_ranking {
  display: inline-block;
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
}

.ico_ranking.up::before,
.ico_ranking.down::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
}

.ico_ranking.up::before {
  border-bottom: 7px solid #e8340c;
}

.ico_ranking.down::before {
  border-top: 7px solid #3b73d1;
}

/* 유지는 가로줄 하나 */
.ico_ranking.same::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 7px;
  height: 1px;
  background: #b6b6b6;
}

/* ── 포털 메인 ───────────────────────────────────────
 * 실측 좌측 728px. 썸네일 173×4 = 692 가 이 폭에 맞춰 설계된 값이다.
 */
.con_head {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  height: 31px;
  margin-bottom: 12px;
  padding-top: 1px;
  border-bottom: 2px solid var(--navy-dark);
  line-height: 20px;
}

.con_head .head_tit,
.con_head .tablist {
  margin: 0;
  color: var(--navy-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.tab_btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy-dark);
  font: 700 14px/20px inherit;
  letter-spacing: 0.025em;
  cursor: pointer;
}

.btn_rank {
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: #555;
  font: 400 11px/17px inherit;
  cursor: pointer;
}

.btn_rank:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* 페이징 — 위아래 두 곳에 같은 것이 온다 */
.pageing {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #555;
  font: 11px/1 tahoma, sans-serif;
}

.time_best > .pageing,
.concept_con > .pageing {
  justify-content: flex-end;
  margin-top: 10px;
}

.page_num .now_num {
  color: var(--navy-dark);
}

.pageing .btn_box {
  display: flex;
  gap: 4px;
}

.pageing .btn_prev,
.pageing .btn_next {
  min-width: 20px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
  text-align: center;
}

.pageing a.btn_prev,
.pageing a.btn_next {
  color: var(--fg);
}

.pageing a.btn_prev:hover,
.pageing a.btn_next:hover {
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}

/* [랭킹] 토글. 서버가 미리 그리고 app.js 가 hidden 만 여닫는다 */
.rank_top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fafbff;
}

.rank_top[hidden] {
  display: none;
}

.rank_top .tit {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 700;
}

/*
 * 위쪽 .tab 은 다른 컴포넌트의 버튼(82×32 상자)이다. 같은 클래스 이름을 쓰므로
 * 여기서 상자 값을 전부 되돌린다 — 안 그러면 링크 셋이 82px 안에서 넘친다.
 */
.rank_top .tab {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

.rank_top .tab a {
  color: #555;
}

.rank_top .tab a.on {
  color: var(--navy-dark);
  font-weight: 700;
}

.time_best {
  margin-top: 15px;
}

.typet_list {
  display: block;
  margin: 0;
  padding: 0 0 1px;
  border-bottom: 1px solid var(--navy-dark);
  list-style: none;
}

.typet_list > li {
  position: relative;
  width: 728px;
  min-height: 45px;
  padding: 0;
  border-top: 1px solid #e4e4e4;
}

.typet_list > li.typet_list_inr,
.typet_list > li.typet_list_inr + li {
  border-top: 0;
}

.typet_list > li > a {
  display: flex;
  align-items: center;
  width: 728px;
  min-width: 0;
  height: 44px;
}

.typet_list .box {
  display: block;
}

.typet_list .box:first-child {
  margin-left: 0;
}

.bestimg {
  overflow: hidden;
  flex: 0 0 75px;
  width: 75px;
  height: 40px;
  background: var(--sub);
}

.bestimg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.best-initial {
  display: block;
  color: var(--navy-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
}

.best-initial.top {
  font-size: 22px;
  line-height: 116px;
}

.besttxt {
  display: flex;
  align-items: center;
  flex: 1 1 475px;
  min-width: 0;
  height: 44px;
  padding-left: 13px;
}

.besttxt p {
  overflow: hidden;
  max-width: 475px;
  margin: 0;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 댓글 수는 제목과 같은 <p> 안에 들어간다 (실측은 형제였지만 표기 규칙을 제목에 묶었다) */
.besttxt .reply_num {
  margin-left: 5px;
  color: var(--red);
  font: 12px/1.4 tahoma, sans-serif;
}

.best_info {
  display: flex;
  justify-content: space-between;
  flex: 0 0 142px;
  overflow: hidden;
  width: 142px;
  height: 44px;
  color: #555;
  font-size: 0;
  line-height: 44px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.best_info span {
  font-size: 12px;
}

.best_info .name {
  display: inline-block;
  overflow: hidden;
  max-width: 86px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.best_info .time {
  flex: 0 0 auto;
}

.typet_list_inr {
  height: 134px;
  min-height: 134px;
  padding-top: 8px;
  box-sizing: border-box;
}

.typet_list_inr .con_list {
  margin-left: -12px;
}

.typet_list_inr .con_list.img > li {
  width: 173px;
  height: 116px;
  margin-left: 12px;
}

/* 썸네일 4장 — 목록의 첫 항목 안에 중첩된다 (별도 섹션이 아니다) */
.con_list {
  margin: 0 0 0 -12px;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.con_list.img > li {
  position: relative;
  float: left;
  margin-left: 12px;
}

.img_box {
  position: relative;
  display: block;
  overflow: hidden;
  width: 173px;
  height: 116px;
  border: 1px solid var(--line);
  background: #f5f5f7;
}

/* 실베 배지 (실측 `icon_bestime` 28×27). 스프라이트를 안 가져오므로
 * 리본 도형으로 그린다 — 아래 모서리를 V 로 파낸 것이 리본의 전부다. */
.ico_bestime {
  position: absolute;
  left: 6px;
  top: 0;
  z-index: 1;
  width: 28px;
  height: 27px;
  padding-top: 4px;
  box-sizing: border-box;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: -0.05em;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.img_box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.txt_box {
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 171px;
  height: 46px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.con_list.img .tit {
  display: block;
  overflow: hidden;
  color: var(--bg);
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.con_list.img .tit .reply_num {
  margin-left: 4px;
  color: #ff8a7a;
  font: 11px/1 tahoma, sans-serif;
}

/* 카드 두 번째 줄 — 갤러리명(좌) · 작성 시각(우) */
.con_list.img .card_info {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  color: #ccc;
  font-size: 11px;
  line-height: 16px;
}

.con_list.img .card_info .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.con_list.img .card_info .time {
  flex: 0 0 auto;
}

/* ── 개념글 ─────────────────────────────────────────── */
.concept_con {
  margin-top: 17px;
}

.tab_comm {
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.concept_con .tab_comm {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.concept_con .pageing {
  flex: 0 0 auto;
}

.tab_comm li a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 0 10px;
  background: #d7d7d7;
  vertical-align: -1px;
}

.tab_comm li:first-child a::before {
  opacity: 0;
}

.tab_comm li a.on {
  color: var(--navy-dark);
  font-weight: 700;
  letter-spacing: 0.025em;
}

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

.tab_content {
  margin: 17px 12px 0 0;
}

.tab_header .tit {
  margin: 0 0 6px;
  color: var(--fg);
  font-size: 13px;
  line-height: 100%;
  letter-spacing: 0.025em;
}

.tab_header .tit a::after {
  content: "\203A";
  margin-left: 4px;
  color: var(--dim);
}

.con_list.txt {
  margin: 0;
  padding: 4px 0 0;
  border-top: 1px dashed #aaa;
}

.con_list.txt li {
  max-width: 357px;
}

.con_list.txt a {
  display: block;
  overflow: hidden;
  width: 100%;
  font-size: 12px;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 빈 상태 ─────────────────────────────────────────
 * 0건이면 빈 상자를 남기지 않고 문구를 넣는다.
 */
.portal-empty,
.side-empty {
  margin: 0;
  padding: 28px 12px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

.side-empty {
  padding: 20px 10px;
}

.side-depth {
  display: flex;
  align-items: center;
  height: 26px;
  margin-top: 8px;
  border: 1px solid #d5d5d5;
  border-top: 2px solid var(--navy-dark);
  background: #fafafa;
}

.side-depth a {
  position: relative;
  flex: 1 1 0;
  color: #555;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

.side-depth a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 1px;
  height: 10px;
  background: #d7d7d7;
}

.side-depth a.on {
  color: var(--navy-dark);
  font-weight: 700;
}

/* ── 우측 사이드바 ───────────────────────────────────
 * 포털 전용이 아니다. 게시판·상세에서도 같은 자리에 뜬다.
 */
/* 테두리는 **네 변이 같다**. 위만 2px 남색이던 것은 우리가 넣은 것이고
 * 실측은 균일 1px #ccc 다 (C5②). */
.side .content_box {
  margin-top: 15px;
  border: 1px solid #ccc;
}

.side .content_box:first-child {
  margin-top: 17px;
}

body.page-portal .side .content_box:first-child {
  margin-top: 0;
}

.side-depth + .content_box {
  margin-top: 8px;
}

body.page-portal .side-depth {
  display: none;
}

/* 제목줄 아래는 **점선**이다 (실측 `border-bottom:1px dashed #ccc`).
 * solid #eee 로 두면 선이 거의 안 보여서 제목과 목록이 한 덩어리로 뭉갠다. */
/* 제목과 페이저가 양끝으로 갈리게 한다 (실측 `pageing_box` 는 absolute right) */
.side .box_tit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 10px;
  border-bottom: 1px dashed #ccc;
  line-height: 32px;
}

.side .box_tit .tit {
  margin: 0;
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.side .side-tab-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side .side-tab-head .tit {
  flex: 0 0 auto;
}

.side-tabs {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-tabs a {
  color: #555;
  font-size: 11px;
  line-height: 32px;
}

.side-tabs a.on {
  color: var(--red);
  font-weight: 700;
}

.side .rank_list {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.side .rank_list li {
  max-width: none;
  height: 22px;
  margin: 0;
  padding: 0 10px;
}

.side .rank_list a {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  overflow: hidden;
}

.side .rank_txt {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding-right: 0;
  font-size: 12px;
  line-height: 22px;
}

.side .box_bottom {
  border-top: 1px solid var(--hair);
  text-align: center;
}

.side .box_bottom a {
  display: block;
  padding: 6px 0;
  color: #555;
  font-size: 11px;
}

.side .grade-ico {
  flex: 0 0 20px;
}

.portal-media-list {
  margin: 0;
  padding: 8px 10px;
  list-style: none;
}

.portal-media-list li {
  height: 22px;
  border-bottom: 1px solid var(--hair);
}

.portal-media-list li:last-child {
  border-bottom: 0;
}

.portal-media-list a {
  display: block;
  overflow: hidden;
  color: #555;
  font-size: 12px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 포털 사이드 순위 상자 (2026-08-29 계측) ──────────────────
 *
 * 박스 높이가 실측값이다: 실북갤 362 · 흥한갤 360 · 신설갤 227 · 소식/이슈 281.
 * 안쪽 줄 수로 높이가 「대충 비슷해지게」 두면 계측이 매번 달라진다 —
 * 그래서 박스에 높이를 못 박고 내용이 그 안에 들어가게 맞춘다.
 *
 * 탭 네 벌은 서버가 다 그려 두고 app.js 가 hidden 만 바꾼다.
 */
body.page-portal .side .gall_rank { height: 362px; }
body.page-portal .side .gall_hot { height: 360px; }
body.page-portal .side .gall_fresh { height: 227px; }
body.page-portal .side .side_news { height: 281px; }

.side .content_box .box_tit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  line-height: 40px;
}

/* 실측 상자 제목은 13 이 아니라 14 다 */
.side .content_box .box_tit .tit {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

/* 제목 앞 뱃지 — HOT(빨강) · NEW(빨강) 라운드 */
.tit_badge {
  display: inline-block;
  height: 15px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0;
}

/* 상자 헤더 우측 탭 — 11px 회색, 선택은 파랑 밑줄 */
.rank_tab {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.rank_tab .rt {
  padding: 0;
  border: 0;
  background: none;
  color: #999;
  font-size: 11px;
  line-height: 40px;
  cursor: pointer;
}

.rank_tab .rt.on {
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
}

.side .rank_list li {
  height: 28px;
  padding: 0 10px;
}

.side .rank_list a {
  height: 28px;
}

/* 번호 뱃지 14×14. 실북갤은 파랑, 흥한갤은 초록 */
.side .rank_list .rank_num {
  display: inline-flex;
  flex: 0 0 14px;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 14px;
}

.side .rank_hot .rank_num {
  background: #2f9e5f;
}

/* 흥한갤 행의 카테고리 꼬리표 */
.side .rank_cate {
  flex: 0 0 auto;
  color: #999;
  font-size: 11px;
}

/* 순위 변동 `3▲`. 상승 빨강 · 하락 파랑 · 유지 회색 대시 */
.side .rank_move {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  color: #999;
  font-size: 11px;
}

.side .rank_move.up { color: var(--red); }
.side .rank_move.down { color: var(--navy); }

.side .rank_move i {
  display: inline-block;
  width: 0;
  height: 0;
  border-right: 3px solid transparent;
  border-left: 3px solid transparent;
}

.side .rank_move.up i { border-bottom: 4px solid var(--red); }
.side .rank_move.down i { border-top: 4px solid var(--navy); }

/* 하단 줄 38px, 회색 바탕 */
.side .box_bottom {
  height: 38px;
  background: #f3f3f3;
  line-height: 38px;
}

.side .box_bottom a {
  padding: 0;
  line-height: 38px;
}

.side .box_bottom.two {
  display: flex;
}

.side .box_bottom.two a {
  flex: 1 1 50%;
}

.side .box_bottom.two a + a {
  border-left: 1px solid var(--hair);
}

/* `1/N ◀▶` 넘김 — 신설갤 하단과 소식·이슈 헤더 우측이 같은 모양이다 */
.side_pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #999;
  font-size: 11px;
}

.side .box_bottom.side_pager {
  height: 38px;
}

.side_pager .pg em {
  font-style: normal;
  font-weight: 700;
}

.side_pager button {
  padding: 0 2px;
  border: 0;
  background: none;
  color: #999;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

/* 실측 페이저 화살표는 **파랑**이다. 회색이면 눌리는 것인 줄 모른다 */
.side_pager button {
  color: var(--navy);
}

.side_pager button:hover {
  color: var(--navy-dark);
}

/* `display` 를 지정한 요소는 hidden 속성만으로 안 숨는다 (배너 슬라이드와 같은 함정) */
.side_pager[hidden] {
  display: none;
}

/* ── 목록 사이드 위젯 (실베·개념글·추천) ────────────────
 * 실측 `r_timebest` 는 텍스트 줄만이 아니라 이미지 카드 2개로 시작한다.
 * 소식 상자(.news_cards)와 규격이 달라 이름을 나눈다 — 칼럼 폭이 다르다.
 */
.side_cards {
  display: flex;
  gap: 7px;
  padding: 8px 10px 4px;
}

.side_card {
  display: block;
  flex: 1 1 0;
  min-width: 0;
}

.side_card_thumb {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 62px;
  border: 1px solid var(--hair);
  background-color: #ececec;
}

.side_card_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side_card_tit {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  max-height: 32px;
  color: var(--fg);
  font-size: 12px;
  line-height: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side_card:hover .side_card_tit {
  text-decoration: underline;
}

.side_page[hidden] {
  display: none;
}

/* 소식·이슈 상자 — 이미지 카드 2개 + 텍스트 줄 */
.news_cards {
  display: flex;
  gap: 8px;
  padding: 8px 10px 6px;
}

.news_card {
  display: block;
  width: 118px;
}

.news_card .thumb {
  display: block;
  overflow: hidden;
  width: 118px;
  height: 80px;
  background-color: #ececec;
}

.news_card .thumb img {
  width: 118px;
  height: 80px;
  object-fit: cover;
}

.news_card .cap {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #333;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news_list {
  margin: 0;
  padding: 0 10px;
  list-style: none;
}

.news_list li {
  height: 21px;
}

.news_list a {
  display: block;
  overflow: hidden;
  color: #555;
  font-size: 12px;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 로그인 박스 아래 알림 종 — 기능이 없으므로 링크가 아니라 표시다 */
.login_alarm {
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
}

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

.side .house_banner {
  width: 100%;
  max-width: 300px;
  margin-top: 15px;
}

.side .side-post-list,
.side .side-concept-list,
.side .side-fresh-list {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.side .side-post-list li,
.side .side-fresh-list li {
  height: 22px;
  margin: 0;
  padding: 0 10px;
}

.side .side-post-list a,
.side .side-fresh-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.side .side-post-list a {
  height: 22px;
  overflow: hidden;
}

.side-post-title,
.side-fresh-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--fg);
  font-size: 12px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-post-gallery,
.side-fresh-date {
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--dim);
  font-size: 11px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-post-list .side-post-gallery {
  max-width: 72px;
}

.side .side-concept-list li {
  margin: 6px 0 0;
  padding: 0 10px;
}

.side .side-concept-list li:first-child {
  margin-top: 0;
}

.side .side-concept-list a {
  display: flex;
  gap: 8px;
  min-height: 40px;
  overflow: hidden;
}

.side-thumb {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--hair);
  background-color: var(--sub);
  object-fit: cover;
}

.side-concept-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.side-concept-title {
  display: -webkit-box;
  overflow: hidden;
  max-height: 32px;
  color: var(--fg);
  font-size: 12px;
  line-height: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-concept-copy .side-post-gallery {
  display: block;
  max-width: 100%;
  margin-top: 1px;
  line-height: 13px;
}

.side-fresh-list a {
  flex: 1 1 auto;
  min-width: 0;
}

/* ── 미니갤 메인 우측 칼럼 ─────────────────────────── */
.mini_login_box {
  height: 82px;
  margin-top: 17px;
  padding: 14px 18px 0;
  border: 1px solid var(--navy-dark);
  background: var(--bg);
}

.mini_login_box strong {
  display: block;
  color: var(--navy-dark);
  font-size: 14px;
  line-height: 20px;
}

.mini_login_box strong a {
  color: var(--navy-dark);
}

.mini_login_box form {
  float: right;
  margin-top: -20px;
}

.mini_login_box button {
  height: 23px;
  padding: 0 10px;
  border: 1px solid var(--navy-dark);
  background: var(--navy);
  color: var(--bg);
  font: 700 12px/21px inherit;
  cursor: pointer;
}

.mini_user_option {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 17px;
  color: #555;
  font-size: 12px;
  line-height: 18px;
}

.mini_user_option a {
  position: relative;
  padding: 0 16px;
  color: #333;
}

.mini_user_option a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 1px;
  height: 10px;
  background: #d5d5d5;
}

.mini_bell {
  display: inline-block;
  position: relative;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -2px;
}

.mini_bell::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 8px;
  height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: #222;
}

.mini_bell::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #222;
}

.mini_adbox {
  display: block;
  height: 250px;
  margin-top: 14px;
  padding: 28px 24px;
  border: 1px solid #d5d5d5;
  border-top: 4px solid var(--mini);
  background: #f5f4fb;
  color: #333;
}

.mini_adbox:hover {
  text-decoration: none;
}

.mini_adbox .mini_adtag {
  display: inline-block;
  height: 22px;
  padding: 0 8px;
  background: var(--navy-dark);
  color: var(--bg);
  font: 700 11px/22px tahoma, sans-serif;
}

.mini_adbox strong {
  display: block;
  margin-top: 48px;
  color: var(--mini-line);
  font-size: 24px;
  line-height: 1.2;
}

.mini_adbox span:last-child {
  display: block;
  margin-top: 10px;
  color: #555;
  font-size: 13px;
  line-height: 20px;
}

/* ── 본문 이미지 (자리만) ─────────────────────────────
 * 실측은 .img_area.noN > .imgwrap.noN > img 로 이미지마다 번호를 매긴다.
 * 첨부는 STEP 13 이라 지금은 이 구조가 들어와도 깨지지 않게 규칙만 둔다.
 * 실제 이미지는 아직 없다.
 */
.write_div .img_area {
  position: relative;
  margin: 10px 0;
}

.write_div .imgwrap {
  display: block;
}

.write_div .imgwrap img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 마우스를 올리면 몇 번째 이미지인지 뜬다 (실측 img_numbering_toggle) */
.write_div .img_area::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--bg);
  font: 11px/1.4 tahoma, sans-serif;
  opacity: 0;
  transition: opacity 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.write_div .img_area:hover::before {
  opacity: 1;
}

/* 개념글 아이콘 — 별의 바탕색. 텍스트 개념과 이미지 개념은
 * 모양이 같고 **색으로만** 갈린다 (실측 icon_recomtxt · icon_recomimg) */
.ico-recomtxt {
  background: #96a5cc;
}

.ico-recomimg {
  background: #535ea9;
}


/* ── 첨부 · 미리보기 ─────────────────────────────────── */
.attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attach-list li {
  width: 105px;
  font-size: 11px;
  text-align: center;
}

.attach-list img {
  display: block;
  width: 105px;
  height: 70px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.attach-list code {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font: 10px/1.4 tahoma, sans-serif;
}

.attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.attach-preview[hidden] {
  display: none;
}

.attach-preview figure {
  width: 105px;
  margin: 0;
  text-align: center;
}

.attach-preview img {
  display: block;
  width: 105px;
  height: 70px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.attach-preview button {
  width: 105px;
  margin-top: 4px;
  padding: 2px 0;
  border: 1px solid var(--mini-line);
  background: var(--bg);
  color: var(--mini-line);
  font: 11px/1.4 inherit;
  cursor: pointer;
}

/* 대표 이미지가 있으면 중립 배경 대신 사진을 깐다 */
.gcard-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gcard-thumb:has(img)::after {
  display: none;
}

/* ── 로그인 박스 (실측 #login .login_wrap) ─────────────
 * 포털 우측 사이드바 최상단. STEP 11 에서 비워 둔 자리다.
 */
.login_wrap .log_inr {
  padding: 10px;
}

/* 실측 마크업이 쓰는 이름이다. 우리 `.sr-only` 와 하는 일이 같다 —
 * 이름을 하나로 합치지 않는 이유는 실측 골격을 그대로 옮긴 자리가 있어서다
 * (`.pagehead_titicon > .blind` 가 그 예다).
 *
 * **전역이어야 한다.** 예전엔 `.login_wrap` 안에서만 걸려 있어서, 갤 종류 아이콘
 * 안의 `<span class="blind">미니</span>` 가 아이콘 옆에 글자로 새어 나왔다
 * (「m마」 처럼 보였다). */
.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.login_inp .input_box {
  position: relative;
  margin-bottom: 4px;
}

/* 라벨이 입력칸 위에 겹쳐 있다가 focus 하면 사라진다 (placeholder 대신).
 * JS 가 없으면 그대로 보이고 입력에는 지장이 없다 — 클릭이 입력칸으로 통과한다. */
.lab_login {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 12px;
  pointer-events: none;
}

.input_box.filled .lab_login {
  display: none;
}

.inp_txt {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 12px;
}

.login_set {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
}

.login_set .chk_id label {
  color: #555;
}

.login_set .chk_ip {
  color: var(--dim);
}

.btn_inout {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--navy-dark);
  background: var(--navy);
  color: var(--bg);
  font: 700 12px/1.4 inherit;
  cursor: pointer;
}

.login_link {
  margin: 8px 0 0;
  font-size: 11px;
  text-align: center;
}

.login_link a {
  color: #555;
}

.log_in .me {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  font-size: 13px;
}

.log_in form {
  display: flex;
}

/* ── 작성자 셀 (실측) ─────────────────────────────────
 * 고정닉은 .nickname 에 in 이 붙고 갤로그 아이콘이 따라붙는다. IP 는 안 나온다.
 */
.addbox {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  font-weight: 400;
}

.addbox .nickname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.addbox .nickname em {
  font-style: normal;
}

/* 고정닉 */
.addbox .nickname.in em {
  color: var(--mini-line);
  font-weight: 700;
}

.addbox .ip {
  color: var(--dim);
  font: 11px/1.4 tahoma, sans-serif;
}

/* 실측 아이콘 12×11. 스프라이트 대신 도형으로 그린다 */
.writer_nikcon {
  display: inline-block;
  flex: 0 0 12px;
  width: 12px;
  height: 11px;
  position: relative;
}

/* 실측 12×11 은 사람마다 다른 **배지 이미지**(`<img>`)라 색이 하나가 아니다 —
 * 매니저는 주황·노랑, 일반 고정닉은 무채색 변형이었다 (docs/실측/아이콘_색.md).
 * 우리는 그 그림을 가져오지 않으므로 도형으로 그리되 **세 종류로 나눈다**:
 *
 *   .nikcon-fixed    남색 카드 + 앰버 띠   일반 고정닉
 *   .nikcon-manager  앰버 카드 + 남색 왕관 매니저
 *   .nikcon-sub      남색 카드 + 앰버 왕관 부매니저
 *
 * 유동닉은 아이콘이 아예 없다(넷째). 예전에는 고정닉 하나뿐이라
 * 작성자 칸이 늘 같은 그림이었다. */
.writer_nikcon span {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--brand);
}

.writer_nikcon span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--brand-accent);
}

/* 매니저·부매니저는 카드가 아니라 **왕관**이다 — 목록에서 한눈에 갈린다.
 * 왕관은 clip-path 하나로 그린다 (이미지도 SVG 도 안 가져온다). */
.writer_nikcon.nikcon-manager span,
.writer_nikcon.nikcon-sub span {
  border-radius: 0;
  background: none;
}

.writer_nikcon.nikcon-manager span::before,
.writer_nikcon.nikcon-sub span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 9px;
  border-radius: 0;
  clip-path: polygon(0 100%, 0 0, 25% 45%, 50% 0, 75% 45%, 100% 0, 100% 100%);
}

.writer_nikcon.nikcon-manager span::before {
  background: #ff8a00; /* 실측 매니저 배지의 주황 (docs/실측/아이콘_색.md) */
}

.writer_nikcon.nikcon-sub span::before {
  background: var(--brand);
}

/* 매니저 계열은 아래 흰 줄(카드 안쪽 선)이 필요 없다 */
.writer_nikcon.nikcon-manager span::after,
.writer_nikcon.nikcon-sub span::after {
  content: none;
}

.writer_nikcon span::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 4px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 1px no-repeat,
    linear-gradient(#fff, #fff) 0 3px / 60% 1px no-repeat;
}

.gall-list td.c-nick {
  padding: 0 4px;
}

/* ── 갤 헤더 버튼줄 (실측 .gall_issuebox) ──────────────
 * 실측은 넷이지만 [설정]·[연관 갤러리]는 우리에게 기능이 없어 안 만든다.
 * 구분자 | 는 문자가 아니라 ::before 다. 첫 버튼에는 안 붙는다.
 */
.page_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  height: 37px;
  margin-bottom: 3px;
  padding: 4px 0 0;
}

.page_head .fl {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.page_head .favorite {
  margin-top: 4px;
}

.gall_issuebox {
  flex: 0 0 auto;
  padding-top: 12px;
  white-space: nowrap;
}

.gall_issuebox button,
.gall_issuebox summary {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: 12px/1.4 inherit;
  vertical-align: top;
  cursor: pointer;
}

.gall_issuebox button:hover,
.gall_issuebox summary:hover {
  text-decoration: underline;
}

.gall_issuebox button::before,
.gall_issuebox summary::before {
  content: "|";
  padding: 0 7px 0 3px;
  color: var(--line);
  font-size: 12px;
  line-height: 12px;
  vertical-align: 1px;
}

.gall_issuebox button:first-child::before {
  display: none;
}

/* 복사 버튼이 감춰졌을 때(JS 없음)도 첫 자리 구분자가 없어야 한다 */
.gall_issuebox button[hidden] + .use-info summary::before {
  display: none;
}

/*
 * 이용안내 — 여는 장치가 <summary> 자체라 JS 없이 열린다.
 * 버튼줄 안에 있으므로 details 는 자리만 잡고, 펼쳐지는 내용은 아래로 띄운다.
 */
.use-info {
  display: inline-block;
  position: relative;
  vertical-align: top;
}

.use-info summary {
  list-style: none;
}

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

.use-info-body {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  width: 420px;
  margin: 4px 0 0;
  padding: 10px 14px 10px 30px;
  border: 1px solid var(--line);
  background: #fafbff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 12%);
  font-size: 12px;
  line-height: 1.8;
  color: #555;
  white-space: normal;
  text-align: left;
}

.use-info-gallery {
  margin: 0 0 8px -16px;
  padding: 0 0 8px;
  border-bottom: 1px solid #e3e6f3;
  list-style: none;
}

.use-info-gallery .mini_info {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
  color: var(--mini-line);
  line-height: 17px;
}

.use-info-gallery .mini_ranktxt,
.use-info-gallery .mini_ranknum {
  margin-left: 0;
}

.use-info-gallery .btn_rank_all {
  margin-left: 4px;
  color: var(--mini-line);
  text-decoration: underline;
}

.use-info-gallery .mini_desc {
  overflow: hidden;
  height: auto;
  max-height: 54px;
  margin: 0 0 6px;
  line-height: 18px;
  letter-spacing: 0;
}

.use-info-stats {
  display: grid;
  grid-template-columns: 48px 1fr 36px 1fr 48px 1fr;
  gap: 2px 6px;
  margin: 0;
  font-size: 11px;
  line-height: 16px;
}

.use-info-stats dt {
  color: var(--dim);
}

.use-info-stats dd {
  margin: 0;
  color: #333;
}

/* ── 즐겨찾기 ☆ (실측 .favorite / .icon_favorite 23×24) ── */
.favorite_form {
  display: inline-flex;
}

.favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.icon_favorite {
  display: block;
  width: 15px;
  height: 15px;
  /* 별을 도형으로 그린다. 스프라이트를 가져오지 않는다 */
  background: var(--line);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.favorite.on .icon_favorite {
  background: var(--gnb-on);
}

.favorite:hover .icon_favorite {
  background: var(--mini);
}

/* ── 최근 방문 바 — 삭제 · 스크롤 · 레이어 ─────────────── */
.newvisit_history .vst_title {
  float: left;
  margin: 0;
  color: var(--navy-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.075em;
}

.newvisit_box {
  overflow: hidden;
  margin-left: 15px;
}

.newvisit_list li {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.newvisit_list form {
  display: inline-flex;
}

.btn_visit_del {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* × 를 문자가 아니라 선 두 개로 그린다 */
.icon_visit_del {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.icon_visit_del::before,
.icon_visit_del::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 9px;
  height: 1px;
  background: #999;
}

.icon_visit_del::before { transform: rotate(45deg); }
.icon_visit_del::after { transform: rotate(-45deg); }

.btn_visit_del:hover .icon_visit_del::before,
.btn_visit_del:hover .icon_visit_del::after {
  background: var(--red);
}

.bnt_visit_prev,
.bnt_visit_next {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}

.bnt_visit_prev[hidden],
.bnt_visit_next[hidden] {
  display: none;
}

.icon_prev,
.icon_next {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.icon_prev { border-right: 5px solid #777; }
.icon_next { border-left: 5px solid #777; }

.bnt_newvisit_more {
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  color: #555;
  font-size: 11px;
}

.bnt_newvisit_more:hover {
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}

/* [전체] 레이어 */
.pop_wrap {
  position: absolute;
  left: 0;
  top: 37px;
  z-index: 30;
  width: 320px;
  border: 1px solid var(--navy-dark);
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.pop_wrap[hidden] {
  display: none;
}

.newvisit_layer .tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.tabslist {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tabslist button {
  padding: 7px 12px;
  border: 0;
  background: none;
  color: #555;
  font: 12px/1.4 inherit;
  cursor: pointer;
}

.tabslist button.on {
  color: var(--navy-dark);
  font-weight: 700;
}

.newvisit_layer .layer-close {
  margin: 0 8px 0 auto;
}

.under_listbox {
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.under_listbox li {
  padding: 3px 12px;
  font-size: 12px;
}

.newvisit_history {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.newvisit_history .vst_title {
  float: none;
  flex: 0 0 auto;
}

.listwrap {
  margin-top: 20px;
}

/* 상세 안의 아래 목록도 list 본문 폭(840)을 그대로 따른다. */
.listwrap > .cols > .list-col {
  width: var(--content);
  flex: 0 0 var(--content);
  min-width: 0;
}


/* ── 최상단 유틸바 ───────────────────────────────────
 * .dchead 위의 얇은 줄. 로그인 상태와 야간모드 토글만 있다.
 * 안쪽 폭은 페이지별 --wrap 을 그대로 따른다 (크롬의 다른 줄과 정렬된다).
 */
.util_bar {
  border-bottom: 1px solid var(--hair);
  background: var(--sub);
}

.util_inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: var(--wrap);
  height: 26px;
  margin: 0 auto;
}

.util_form {
  display: inline;
  margin: 0;
}

.util_link {
  padding: 0;
  border: 0;
  background: none;
  color: #555;
  font: 11px/26px inherit;
  cursor: pointer;
}

.util_link:hover {
  color: var(--navy-dark);
  text-decoration: underline;
}

.util_me {
  color: var(--navy-dark);
  font-size: 11px;
  font-weight: 700;
}

/* 구분자는 문자가 아니라 ::before 다. 첫 자리에는 안 붙는다 */
.util_inner > * + *::before {
  content: "|";
  margin-right: 12px;
  color: var(--line);
  font-weight: 400;
}

/* ── 야간모드 ────────────────────────────────────────
 * body.dark 하나로 뒤집는다. app.js 가 localStorage 값을 읽어 붙인다 —
 * 서버는 이 값을 모르고 쿠키도 늘리지 않는다.
 *
 * 토큰만 갈아 끼우고, 토큰을 안 쓰고 색을 박아 둔 자리(크롬 남색·목록 표·
 * 사이드 상자·푸터)만 따로 덮는다. 새 색을 만들지 않고 명도만 뒤집는다.
 */
body.dark {
  --line: #3a3d44;
  --red: #ff6b57;
  --blue: #6fa8e8;
  --dim: #8b8f98;
  --fg: #d5d7dc;
  --bg: #1c1e22;
  --hair: #2c2f35;
  --sub: #24272c;
  --visited: #b18fd8;
  --navy: #2b3468;
  --navy-dark: #8f9ad6;
  --navy-sh: #12162e;
  --tbl-bottom: #4b5697;
  --mini: #5b59b8;
  --mini-line: #4a48a0;
  --mini-sh: #35348a;

  background: var(--bg);
  color: var(--fg);
}

body.dark a,
body.dark .util_link,
body.dark .tab_btn,
body.dark .btn_rank {
  color: var(--fg);
}

/* 헤더 · GNB */
body.dark .util_bar {
  background: var(--sub);
}

body.dark .dchead,
body.dark .visit_bookmark,
body.dark .newvisit_box,
body.dark .pop_wrap {
  background: var(--bg);
}

body.dark .dc_logo a,
body.dark .dc_logo_word {
  color: var(--navy-dark);
}

/* 마크는 이제 테두리 색을 명시하므로 color 만 뒤집어선 안 바뀐다.
 * 앰버는 어두운 바탕에서도 그대로 읽히므로 남색 쪽만 밝힌다. */
body.dark .dc_logo_mark {
  border-color: var(--navy-dark);
  border-right-color: var(--brand-accent);
  color: var(--navy-dark);
}

body.dark .gnb_bar {
  background: var(--navy);
}

body.dark .gnb_sub,
body.dark .depth2 {
  border-color: var(--line);
  background: var(--sub);
}

/* 목록 · 표 */
body.dark .gall_list,
body.dark table,
body.dark .list-table,
body.dark .write_div,
body.dark .content,
body.dark .listwrap {
  background: var(--bg);
  color: var(--fg);
}

body.dark th,
body.dark td {
  border-color: var(--hair);
  color: var(--fg);
}

body.dark thead th,
body.dark .gall_list thead {
  background: var(--sub);
}

body.dark tbody tr:hover {
  background: var(--sub);
}

/* 카드 · 사이드 상자 */
body.dark .content_box,
/* 자체 배너는 흰 바탕에 굽힌 PNG 다. 야간 화면에서 그것만 형광등처럼 튄다 —
 * 색을 바꿀 수는 없으니(그림이다) 밝기만 낮춘다. 마우스를 올리면 원래대로 돌아온다. */
body.dark .house_banner img {
  filter: brightness(0.86);
}

body.dark .house_banner:hover img {
  filter: none;
}

body.dark .side-module,
body.dark .rank_top,
body.dark .gall_cate,
body.dark .minicate_wrap,
body.dark .mini_login_box {
  border-color: var(--line);
  background: var(--sub);
  color: var(--fg);
}

body.dark .box_tit,
body.dark .con_head {
  border-color: var(--line);
}

body.dark .box_tit .tit,
body.dark .con_head .head_tit,
body.dark .con_head .tablist,
body.dark .page_num .now_num {
  color: var(--navy-dark);
}

body.dark .bestimg,
body.dark .img_box,
/* 기본 썸네일이 붙은 것(thumimg*)은 제 그림을 쓴다 — background-color 만 덮는다 */
body.dark .side-thumb:not([class*="thumimg"]),
body.dark .card_thumb:not([class*="thumimg"]) {
  background: #2b2e34;
}

body.dark input,
body.dark textarea,
body.dark select,
body.dark .inp_txt {
  border-color: var(--line);
  background: #2b2e34;
  color: var(--fg);
}

/* 푸터 */
body.dark .dcfoot,
body.dark .dc_all,
body.dark .dc_compact,
body.dark .dc_notice_foot,
body.dark .dc_service_foot,
body.dark .foot,
body.dark .foot_policy {
  border-color: var(--line);
  background: var(--bg);
  color: var(--dim);
}

body.dark .dc_all dt a,
body.dark .dc_compact dt a {
  color: var(--navy-dark);
}

body.dark .dc_all dd a,
body.dark .dc_compact dd a,
body.dark .dc_service_foot a,
body.dark .foot_policy a {
  color: var(--fg);
}

/* 로그인 박스 아래 두 링크 — 구분자는 ::before 다 (첫 자리에는 안 붙는다) */
.login_link a + a::before {
  content: "|";
  margin: 0 5px;
  color: var(--line);
}

/* 푸터 정책 링크 */
.foot_policy {
  width: var(--wrap);
  margin: 0 auto;
  padding: 10px 0 0;
  text-align: center;
  font-size: 12px;
}

.foot_policy a {
  color: #555;
}

.foot_policy a + a::before {
  content: "|";
  margin: 0 8px;
  color: var(--line);
}

/* 안내 페이지 (about · terms · find …) */
.static_page {
  max-width: 720px;
  line-height: 1.7;
}

.static_page p {
  margin: 0 0 12px;
}

.static_note {
  color: var(--dim);
}

/* 사이드 안내 배너 — 실측 광고 자리와 같은 300×250.
 * 250px 칼럼에서는 폭에 맞춰 줄어든다 (img 가 width:100% 라 비율이 유지된다) */
.side .house_banner {
  width: 100%;
  max-width: 300px;
  margin-bottom: 10px;
}

/* 자동 생성 고지 — 푸터. 눈에 띄되 본문을 가리지 않는 크기로 */
.foot_notice {
  width: var(--wrap);
  margin: 8px auto 0;
  color: var(--dim);
  font-size: 11px;
  text-align: center;
}

/* 관리자에게만 보이는 봇 표시 */
.bot_mark {
  margin-left: 3px;
  padding: 0 3px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--sub);
  color: var(--dim);
  font: 700 9px/13px tahoma, sans-serif;
  vertical-align: middle;
}

body.dark .foot_notice { color: var(--dim); }
body.dark .bot_mark { border-color: var(--line); background: #2b2e34; }

/* ── 콘텐츠 엔진 관리 화면 ───────────────────────── */
.engine_state dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0 0 16px; }
.engine_state dt { color: #555; font-size: 12px; }
.engine_state dd { margin: 0; font-size: 12px; }
.engine_state dd.on { color: var(--navy-dark); font-weight: 700; }
.engine_state dd.off, .engine_state .off { color: var(--red); font-weight: 700; }
.engine_state .hint { color: var(--dim); font-weight: 400; }

.engine_actions { display: flex; gap: 8px; margin-bottom: 20px; }
.engine_actions form { margin: 0; }
.engine_actions button {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--bg); color: var(--fg); font-size: 12px; cursor: pointer;
}
.engine_actions button:hover { border-color: var(--navy); color: var(--navy); }

.form-sub { margin: 20px 0 8px; color: var(--navy-dark); font-size: 13px; }

.engine_log { width: 100%; border-collapse: collapse; font-size: 11px; }
.engine_log th, .engine_log td { padding: 4px 6px; border-bottom: 1px solid var(--hair); text-align: left; }
.engine_log th { background: var(--sub); color: #555; }
.engine_log .detail { word-break: break-all; }
.engine_log .kind-error td { color: var(--red); }
.engine_log .kind-skip td { color: var(--dim); }

/* ── 에디터 주소 입력 줄 (STEP: 글쓰기 에디터) ─────────────
 * prompt() 가 금지라 이 줄이 그 자리를 대신한다.
 * 서버가 미리 그려 두고 app.js 가 hidden 만 여닫는다.
 */
.note-url {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 8px 10px; border-bottom: 1px solid #e5e5e5; background: #fafafa;
}
.note-url label { font-size: 12px; color: #555; }
.note-url-input { flex: 1 1 240px; min-width: 160px; height: 26px; padding: 0 6px; border: 1px solid #ccc; font-size: 12px; }
.note-url-text { flex: 0 1 160px; height: 26px; padding: 0 6px; border: 1px solid #ccc; font-size: 12px; }
.note-url-ok, .note-url-cancel { height: 26px; padding: 0 10px; border: 1px solid #ccc; background: #fff; font-size: 12px; cursor: pointer; }
.note-url-ok { background: #3b4890; color: #fff; border-color: #3b4890; }
.note-url-msg { flex: 1 0 100%; margin: 2px 0 0; font-size: 12px; color: #c33; }
.note-url-msg:empty { display: none; }

/* 임베드 — 유튜브/동영상 */
.embed_area { margin: 10px 0; max-width: 640px; }
.embed_area.youtube { position: relative; padding-bottom: 56.25%; height: 0; }
.embed_area.youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed_area.video video { width: 100%; max-width: 640px; background: #000; }

/* ── 갤로그 (/gallog/{uid}) ────────────────────────────── */
.gallog-wrap { width: var(--wrap); margin: 0 auto; padding: 16px 0 40px; }
.gallog-head { border: 1px solid #d8d8d8; background: #fafafa; padding: 14px 16px; }
.gallog-nick { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.gallog-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; font-size: 12px; color: #555; }
.gallog-meta div { display: flex; gap: 6px; }
.gallog-meta dt { color: #888; }
.gallog-meta dd { margin: 0; font-weight: 700; color: #333; }
.gallog-meta code { font-family: inherit; }

.gallog-tabs { display: flex; gap: 4px; margin: 14px 0 0; border-bottom: 2px solid var(--navy); }
.gallog-tabs a {
  padding: 7px 16px; font-size: 13px; color: #555; text-decoration: none;
  border: 1px solid #d8d8d8; border-bottom: 0; background: #f4f4f4;
}
.gallog-tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.gallog-tabs .num { margin-left: 4px; font-size: 11px; opacity: .8; }

.gallog-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #e5e5e5; }
.gallog-list li {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 6px; border-bottom: 1px solid #f0f0f0; font-size: 13px;
}
.gallog-list .gl-gall { color: #888; font-size: 12px; text-decoration: none; }
.gallog-list .gl-gall:hover { text-decoration: underline; }
.gallog-list .gl-title { color: #333; text-decoration: none; }
.gallog-list .gl-title:hover { text-decoration: underline; }
.gallog-list .gl-origin { grid-column: 2; font-size: 11px; color: #999; }
.gallog-list .gl-date { color: #999; font-size: 12px; }
.gallog-empty { padding: 40px 0; text-align: center; color: #888; font-size: 13px; }

.paging { display: flex; gap: 4px; justify-content: center; padding: 16px 0; }
.paging .pg {
  min-width: 26px; padding: 4px 7px; text-align: center; font-size: 12px;
  border: 1px solid #d8d8d8; color: #555; text-decoration: none; background: #fff;
}
.paging .pg.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── 실베 게시판 (/best) ───────────────────────────────── */
.best-board { width: var(--wrap); margin: 0 auto; padding: 16px 0 40px; }
.best-board-head { display: flex; align-items: baseline; gap: 12px; }
.best-board-head h2 { margin: 0; font-size: 18px; color: var(--navy); }
.best-board-head .bb-note { margin: 0; font-size: 12px; color: #888; }
.best-sorts { display: flex; gap: 4px; margin: 12px 0 8px; }
.best-sorts a {
  padding: 5px 14px; font-size: 12px; color: #555; text-decoration: none;
  border: 1px solid #d8d8d8; background: #f7f7f7;
}
.best-sorts a.on { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.gall-list .c-gall { width: 110px; }
.gall-list td.c-gall { text-align: center; }
.gall-list td.c-gall a { color: #777; font-size: 12px; text-decoration: none; }
.gall-list td.c-gall a:hover { text-decoration: underline; }
.time_best .best_more { margin-left: auto; font-size: 12px; color: #666; text-decoration: none; }
.time_best .best_more:hover { text-decoration: underline; }
._list_sidebar .box_tit a, .content_box .box_tit a { color: inherit; text-decoration: none; }
.content_box .box_tit a:hover { text-decoration: underline; }

/* ── 원페이콘 ─────────────────────────────────────────── */
.con-bar { position: relative; margin: 6px 0 0; }
.con-open {
  padding: 4px 12px; font-size: 12px; border: 1px solid #ccc; background: #fff;
  color: #555; cursor: pointer;
}
.con-open[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.con-layer {
  position: absolute; z-index: 30; left: 0; top: 28px; width: 320px;
  border: 1px solid #bbb; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.con-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; border-bottom: 1px solid #eee; font-size: 12px;
}
.con-close { border: 0; background: none; font-size: 12px; color: #777; cursor: pointer; }
.con-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  padding: 8px; max-height: 220px; overflow-y: auto;
}
.con-grid button { border: 1px solid transparent; background: none; padding: 2px; cursor: pointer; }
.con-grid button:hover { border-color: var(--navy); background: #f2f4ff; }
.con-grid img { width: 100%; height: auto; display: block; }
/* 댓글 안의 콘 */
.ctxt .dccon { max-width: 100px; max-height: 100px; vertical-align: middle; }

/* ── 통합검색 (/search) ────────────────────────────────── */
.search-page { width: var(--wrap); margin: 0 auto; padding: 16px 0 40px; }
.search-top { display: flex; gap: 6px; margin-bottom: 14px; }
.search-top input { flex: 1 1 auto; height: 34px; padding: 0 10px; border: 2px solid var(--navy); font-size: 14px; }
.search-top button { padding: 0 18px; border: 0; background: var(--navy); color: #fff; font-size: 14px; cursor: pointer; }
.search-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--navy); }
.search-tabs a {
  padding: 7px 18px; font-size: 13px; color: #555; text-decoration: none;
  border: 1px solid #d8d8d8; border-bottom: 0; background: #f4f4f4;
}
.search-tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.search-sum { margin: 12px 0; font-size: 13px; color: #555; }
.search-sum strong { color: var(--navy); }
.search-block { margin: 0 0 22px; }
.search-block h3 { margin: 0 0 8px; font-size: 14px; color: #333; border-left: 3px solid var(--navy); padding-left: 8px; }
.search-block h3 .num { color: #999; font-weight: 400; font-size: 12px; }
.search-sorts { display: flex; gap: 4px; margin: 10px 0; }
.search-sorts a { padding: 4px 12px; font-size: 12px; border: 1px solid #d8d8d8; color: #555; text-decoration: none; }
.search-sorts a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sr-gall, .sr-post { margin: 0; padding: 0; list-style: none; }
.sr-gall li { display: flex; gap: 10px; align-items: baseline; padding: 7px 6px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.sr-gall .name { color: var(--navy); text-decoration: none; font-weight: 700; }
.sr-gall .cate, .sr-gall .cnt { color: #999; font-size: 12px; }
.sr-post li { padding: 10px 6px; border-bottom: 1px solid #f0f0f0; }
.sr-post .tit { display: block; color: #333; text-decoration: none; font-size: 14px; }
.sr-post .tit:hover { text-decoration: underline; }
.sr-post .prev { margin: 4px 0; font-size: 12px; color: #777; line-height: 1.5; }
.sr-post .meta { display: flex; gap: 10px; font-size: 12px; color: #999; }
.sr-post .meta .gall { color: #777; text-decoration: none; }
.search-empty { padding: 50px 0; text-align: center; color: #888; font-size: 13px; }

/* ══════════════════════════════════════════════════════════
 * 반응형 — 폰 폭에서 디시 모바일(m.dcinside.com) 구성으로
 * ══════════════════════════════════════════════════════════
 *
 * 별도 모바일 사이트를 만들지 않는다. **같은 URL·같은 템플릿**이고
 * 여기 아래 미디어쿼리 하나가 골격만 바꾼다.
 *
 * 경계는 768px 이다. 769px 이상은 이 파일 위쪽 규칙 그대로라 1px도 안 바뀐다 —
 * 아래 블록은 전부 `@media (max-width: 768px)` 안에 있고, 밖에 있는 것은
 * .m_only 를 숨기는 한 줄뿐이다 (그 요소는 PC 에 원래 없던 것들이다).
 *
 * 위쪽 폭 주석의 «좁은 화면에서도 데스크톱 골격을 접지 않고 가로 스크롤로 둔다» 는
 * 이 블록으로 철회됐다. 이제 폰 폭에서는 접는다.
 */

/* 모바일 전용 요소는 PC 에서 없는 셈 친다. PC 전용(.pc_only)은 기본이 보이는 것이라
 * 여기서 규칙을 주지 않는다 — 숨기는 쪽만 미디어쿼리 안에 있다. */
.m_only { display: none; }


/* ── 목록 (2026-08-29 브라우저 계측) ────────────────────
 *
 * 「갤 색」 이 이 절의 열쇠다. 실측 미니갤은 #6f6dd9 이고 정식갤은 #29367c 다.
 * 우리 갤 종류는 mini·minor 둘뿐이라(정식갤이 없다) 지금은 늘 보라다 —
 * 나중에 정식갤이 생기면 body 클래스로 --gall 만 덮으면 된다.
 *
 * 예전에는 테두리에 --mini-line(#4f4dc6) 을 썼는데 그건 우리가 고른 값이었다.
 */
:root {
  --gall: #6f6dd9;
}

/* ── 브랜드 2색 ──────────────────────────────────────
 * 남색 #29367c + 앰버 #ffb300. 로고 마크 · 파비콘 · 자체 배너 · 아이콘 강조가
 * 전부 이 둘을 본다. `scripts/build-brand.mjs` 와 `scripts/build-banners.mjs`
 * 안에도 같은 값이 있다 — CSS 와 PNG 는 서로 import 할 수 없어서다.
 * 한쪽만 고치면 로고와 파비콘 색이 갈린다. 고칠 땐 셋을 같이 고친다.
 *
 * --brand 는 --navy-dark 와 같은 값이지만 이름을 나눈다. 용도가 다르면
 * 변수를 나눈다는 규칙 그대로다 (STEP 12 의 추천 색과 같은 판단).
 */
:root {
  --brand: #29367c;
  --brand-accent: #ffb300;
  --brand-accent-dark: #d99400; /* 흰 바탕 위 글자로 쓸 때. 앰버는 그대로 두면 안 읽힌다 */
}

/* 갤러리 제목은 갤 색이 아니라 남색이다 (실측 #29367c) */
.gall-head a {
  color: var(--navy-dark);
}

/* ── 갤 헤더 우측 버튼줄 ─────────────────────────────── */
.gall_setting,
.related_box > summary {
  color: #666;
  font-size: 12px;
  cursor: pointer;
}

.related_box {
  position: relative;
  display: inline-block;
}

.related_box > summary {
  list-style: none;
}

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

.related_box > summary::after {
  content: "▾";
  margin-left: 2px;
  font-size: 10px;
}

.related_layer {
  position: absolute;
  z-index: 30;
  top: 100%;
  right: 0;
  min-width: 160px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.related_layer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related_layer li a {
  display: block;
  padding: 3px 0;
  font-size: 12px;
}

.related_empty {
  margin: 0;
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}

/* ── 갤러리 정보 블록 840×155 ────────────────────────── */
.gall_info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-sizing: border-box;
  height: 155px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--hair);
}

.gi_left {
  display: flex;
  gap: 14px;
  min-width: 0;
}

/* 갤 대표 이미지 자리. 우리에게 대표 이미지가 없는 갤이 대부분이라
 * 이 자리가 모든 갤 화면 맨 위의 **빈 회색 상자**였다.
 * 사진이 없으면 브랜드 타일 + 갤 이름 첫 글자를 그린다 (data-initial). */
.gi_thumb {
  position: relative;
  display: block;
  overflow: hidden;
  flex: 0 0 90px;
  width: 90px;
  height: 70px;
  border-radius: 2px;
  background: var(--brand);
}

.gi_thumb::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 70px;
  text-align: center;
}

/* 앰버 띠 — 로고 마크의 두꺼운 오른쪽 변과 같은 자리다 */
.gi_thumb::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--brand-accent);
}

/* 실제 사진이 있으면 타일도 띠도 덮는다 */
.gi_thumb:has(img)::before,
.gi_thumb:has(img)::after {
  content: none;
}

.gi_thumb img {
  width: 90px;
  height: 70px;
  object-fit: cover;
}

.gi_rank {
  margin: 0 0 8px;
  color: #555;
  font-size: 12px;
}

.gi_rank strong {
  color: var(--red);
}

.gi_all {
  margin-left: 6px;
  color: #888;
  font-size: 11px;
}

.gi_intro {
  overflow: hidden;
  margin: 0;
  color: #666;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gi_right {
  flex: 0 0 auto;
  text-align: left;
}

.gi_right p {
  margin: 0 0 4px;
  color: #666;
  font-size: 12px;
}

/* ── 상단 글쓰기 버튼: 아웃라인형 66×21 + ✎ ──────────── */
.btn-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
  width: 66px;
  height: 21px;
  padding: 0;
  border: 1px solid var(--gall);
  border-radius: 2px;
  background: #fff;
  color: var(--gall);
  font-size: 12px;
  font-weight: 400;
  line-height: 19px;
  text-shadow: none;
  vertical-align: middle;
}

.ico_pen {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}

/* ── 목록 표 ─────────────────────────────────────────── */
.gall-list {
  border-bottom: 1px solid var(--gall);
}

.gall-list th,
.gall-list td {
  height: 28px;
}

/* th 39px · 위 2px + 아래 1px 갤 색 */
.gall-list thead th {
  height: 39px;
  border-top: 2px solid var(--gall);
  border-bottom: 1px solid var(--gall);
}

/* 글쓴이·작성일은 회색이 아니라 #333 이다 */
.gall-list td.c-no,
.gall-list td.c-date,
.gall-list td.c-views,
.gall-list td.c-ups {
  color: #333;
}

.gall-list td.c-nick {
  color: #333;
}

/* `.ico_notice`(말머리 앞 빨간 ! 원)는 지웠다 — 우리가 만든 것이었다 (C5①).
 * 공지 표시는 말머리 칸의 <b>공지</b> 와 제목 앞 `.ico-notic` 둘뿐이다.
 * 제목 앞 아이콘은 실측이다 (`icon_notic` #ff6633, common.css:336). */

/* ── 검색: 320×38 갤 색 박스 가운데 ──────────────────── */
.search_box {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.search_box .search {
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  width: 320px;
  height: 38px;
  margin: 0;
  padding: 0 6px;
  background: var(--gall);
}

.search_box .search .s-type {
  height: 26px;
  border: 0;
  background: #fff;
  font-size: 12px;
}

.search_box .search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 26px;
  padding: 0 6px;
  border: 0;
  background: #fff;
  font-size: 12px;
}

/* 돋보기는 **도형**이다 (C6). 예전에는 이모지 🔍 였는데, 이모지는 기계마다
 * 글꼴이 달라 색·굵기·크기가 우리 손을 벗어난다 — 상단 검색(.btn_search)은
 * 처음부터 도형이었고 하단만 이모지라 둘이 다른 아이콘으로 보였다.
 * 상단과 같은 방식(원 + 손잡이)이고 색만 갤 색으로 바꾼다. */
.search_box .search button {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: #fff;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.search_box .search button::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--gall);
  border-radius: 50%;
}

.search_box .search button::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 7px;
  height: 2px;
  background: var(--gall);
  transform: rotate(45deg);
  transform-origin: left center;
}

.search_box .search-reset {
  color: #fff;
  font-size: 11px;
}

/* 페이지네이션 줄 38px */
.pager.bottom_paging_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}


/* ── 실시간 베스트 행 (2026-08-29 브라우저 계측) ────────
 *
 * 행 48px · 썸네일 75×75 정사각. 예전에는 45px 행에 75×40 썸네일 + 글자 박스였다.
 *
 * 75 짜리 정사각이 48 짜리 행에 들어가는 방법은 **가운데를 잘라 보여 주는 것**뿐이다.
 * 그래서 링크가 overflow: hidden 이고 썸네일은 그 안에서 세로 가운데로 온다 —
 * 실측 목록도 사진 위아래가 잘려 있다.
 */
.typet_list > li {
  min-height: 48px;
}

.typet_list > li > a {
  overflow: hidden;
  height: 48px;
}

.bestimg {
  flex: 0 0 75px;
  width: 75px;
  height: 75px;
}

.besttxt {
  height: 48px;
}

/* 이미지가 없는 글의 자리. 배경 그림은 `.thumimg1~5` 가 깐다 —
 * 여기서는 상자 크기만 잡는다. 예전에 있던 회색 바탕 + 문서 모양 글리프는
 * 지웠다 (그림이 깔리면 그 위에 겹쳐 보인다). */
.best_noimg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ececec;
}


/* ── 메인 상단 배너 슬라이드 ─────────────────────────
 * 서버가 세 장을 겹치지 않고 순서대로 그리고 hidden 으로 한 장만 남긴다.
 * position:absolute 로 겹쳐 놓지 않는 이유는 JS 없이 볼 때다 —
 * 겹쳐 두면 JS 가 없을 때 세 장이 한 자리에 포개진다. */
.banner_slide {
  position: relative;
  margin-bottom: 12px;
}

.banner_slide .slide_item {
  margin: 0;
}

/* `display` 를 지정한 요소는 `hidden` 속성만으로는 안 숨는다 —
 * 브라우저 기본 시트의 `[hidden]{display:none}` 보다 우리 규칙이 이긴다.
 * 저장소의 다른 자리(.rank-popup[hidden] 등)와 같은 방식으로 명시한다.
 * 이걸 빼면 서버가 hidden 을 붙여 둔 배너 두 장이 JS 가 뜨기 전까지 같이 보인다. */
.house_banner[hidden],
.slide_dots[hidden] {
  display: none;
}

/* 오른쪽 **위**다. 배너 PNG 의 오른쪽 아래에는 「원페이 안내」 고지가 굽혀 있고,
 * 오른쪽 가운데에는 CTA 알약이 있다. 남는 자리는 위쪽뿐이다. */
.slide_dots {
  position: absolute;
  right: 10px;
  top: 7px;
  display: flex;
  gap: 5px;
}

.slide_dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.slide_dot.on {
  background: var(--brand-accent);
}

/* ── 사진 없는 자리의 기본 썸네일 5종 ────────────────
 * 실측 `thumimg1~5` 와 같은 기계장치다 — 디자인된 그림 다섯 장을 돌려 쓴다.
 * 그림은 `scripts/build-thumbs.mjs` 가 굽고 `public/thumbs/` 에 커밋한다.
 *
 * `background-image` 로 거는 것이 요점이다. `<img>` 로 걸면 목록 25줄마다
 * 요청이 하나씩 더 생기는데, 다섯 장짜리 돌려쓰기는 브라우저가 한 번만
 * 받으면 되는 쪽이 맞다.
 *
 * 어느 그림인지는 **글 주소**로 정한다(`defaultThumb`). 위치(:nth-child)로 주면
 * 페이지를 넘길 때 같은 글의 그림이 바뀌고, 목록이 하나 늘면 아래가 전부 밀린다.
 * 개수는 `DEFAULT_THUMBS`(domain/list.js) 와 같아야 한다.
 */
.thumimg1,
.thumimg2,
.thumimg3,
.thumimg4,
.thumimg5 {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.thumimg1 { background-image: url("/thumbs/default-1.png"); }
.thumimg2 { background-image: url("/thumbs/default-2.png"); }
.thumimg3 { background-image: url("/thumbs/default-3.png"); }
.thumimg4 { background-image: url("/thumbs/default-4.png"); }
.thumimg5 { background-image: url("/thumbs/default-5.png"); }

/* 야간. 그림이라 색을 바꿀 수 없으므로 밝기만 크게 낮춘다 —
 * 다섯 장이 다 옅은 바탕이라 0.78 정도로는 야간 화면에서 흰 사각형이 스물여섯 개 뜬다.
 * 색조 차이는 낮춰도 남는다(다섯이 서로 다른 색이라 같은 비율로 어두워진다). */
body.dark .thumimg1,
body.dark .thumimg2,
body.dark .thumimg3,
body.dark .thumimg4,
body.dark .thumimg5 {
  filter: brightness(0.3) saturate(1.6);
}

/* 개념글 위 가로 배너. 좌측 칼럼이 728px 이라 그대로 꽉 찬다 */
.ad_banner {
  max-width: 728px;
  margin: 0 auto 12px;
}

/* 목록 하단 가로 배너 (실측 `ad_bottom_list`). 표와 검색줄 사이다 */
.ad_bottom_list {
  max-width: 728px;
  margin: 16px auto;
}

/* 목록·글보기 사이드는 300×600 이다. 폭이 300 을 넘지 않게만 잡고
 * 비율은 img 가 지킨다 (width:100% · height:auto) */
.side .house_banner img {
  height: auto;
}

/* 개념글 블록 — 갤명 뒤 ▸ · 글 앞 · (실측) */
.tab_header .arw {
  margin-left: 3px;
  color: #999;
  font-size: 10px;
  font-style: normal;
}

.con_list.txt .dot {
  margin-right: 4px;
  color: #bbb;
  font-style: normal;
}

@media (max-width: 768px) {

/* ── 뼈대 ────────────────────────────────────────────────
 * body 의 min-width:1090px 이 폰에서 가로 스크롤을 만드는 주범이다.
 * 폭 변수도 전부 100% 로 눕힌다 — page-mini·page-portal 이 덮어쓴 값까지.
 */
body,
body.page-mini,
body.page-portal,
body.page-list,
body.page-best,
body.page-gallog,
body.page-form {
  --wrap: 100%;
  --content: 100%;
  --dc-min: 0;
  min-width: 0;
  font-size: 14px;
  /* 하단 고정 바(48px)에 본문 끝이 가리지 않게 */
  padding-bottom: 60px;
}

.wrap { width: auto; max-width: 100%; padding: 0 10px; box-sizing: border-box; }
.cols { display: block; gap: 0; }
main, .side,
body.page-list .side, .listwrap .side { width: auto; max-width: 100%; flex: none; }

/* 가로 스크롤 최후 방어. 넘칠 만한 것은 스스로 줄이거나 자기 안에서 스크롤한다 */
img, video, canvas { max-width: 100%; height: auto; }
pre { overflow-x: auto; }

.m_only { display: block; }
.pc_only { display: none; }

/* ── 헤더 한 줄 ──────────────────────────────────────────
 * 유틸바는 통째로 숨기고, 거기 있던 로그인·닉을 헤더 오른쪽으로 옮긴다.
 * 검색은 아이콘만 두고 탭하면 아래로 펼친다 (app.js 의 mobileBits).
 */
.util_bar { display: none; }

.dchead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 48px;
  padding: 0 10px;
  box-sizing: border-box;
}

/* PC 로고는 .dc_logo 부터 자식까지 전부 절대배치(285x54)다.
 * 그대로 두면 48px 머리 밖으로 삐져나오고 x 도 음수가 된다 — 전부 흐름으로 되돌린다. */
.dc_logo { position: static; flex: 0 0 auto; margin: 0; padding: 0; font-size: 14px; }
.dc_logo a { display: flex; align-items: center; width: auto; height: 48px; }
.dc_logo_mark {
  position: static;
  width: 26px; height: 18px;
  margin-right: 6px;
  border-width: 2px; border-right-width: 5px;
  font-size: 0;
}
.dc_logo_word { position: static; font-size: 17px; line-height: 48px; }
.dc_logo_slogan { display: none; }

.m_head_side { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.m_search_btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  padding: 0; border: 0; background: none; cursor: pointer;
}

/* 돋보기는 스프라이트를 가져오지 않고 CSS 도형으로 그린다 (목록 아이콘과 같은 방식) */
/* 머리 배경은 흰색이다 — 흰 돋보기·흰 글씨를 그리면 아무것도 안 보인다 */
.m_search_ico {
  position: relative;
  display: block; width: 15px; height: 15px;
  border: 2px solid var(--navy-dark); border-radius: 50%;
}
.m_search_ico::after {
  content: ""; position: absolute; right: -5px; bottom: -4px;
  width: 7px; height: 2px; background: var(--navy-dark); transform: rotate(45deg);
}

.m_head_me {
  min-height: 44px; display: flex; align-items: center;
  padding: 0 8px; color: var(--navy-dark); font-size: 13px; font-weight: 700;
  text-decoration: none;
}

/* 검색창: JS 가 붙으면 접히고(.is-collapsible), 버튼으로 편다(.is-open).
 * JS 가 없으면 두 클래스가 다 없으므로 지금까지처럼 펼쳐진 채다. */
.wrap_search {
  order: 9;
  flex: 1 1 100%;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 0 8px;
}
.wrap_search.is-collapsible { display: none; }
.wrap_search.is-collapsible.is-open { display: block; }

.top_search { display: flex; width: auto; height: 40px; border: 0; }
.inner_search { flex: 1 1 auto; min-width: 0; }
.in_keyword {
  width: 100%; height: 40px; box-sizing: border-box;
  padding: 0 10px; border: 0; font-size: 14px;
}
.btn_search { flex: 0 0 56px; width: 56px; height: 40px; }

/* ── GNB: 가로 스크롤 탭 + 그 아래 서브메뉴 한 줄 ───────────
 * 서브메뉴는 hover 드롭다운을 버리고 늘 보이는 두 번째 줄이 된다 —
 * 폰에는 hover 가 없어서 드롭다운은 열 방법이 아예 없다.
 */
/* .gnb_bar 가 서브메뉴 줄의 기준이 된다. 아래 padding 은 그 줄이 앉을 자리다 */
.gnb_bar { position: relative; height: auto; }
.gnb { display: block; width: auto; height: auto; padding: 0; }

/* PC 는 `float:left; width:calc(100% - 296px)` 다. float 를 안 풀고 width:auto 만 주면
 * 떠 있는 상자가 내용만큼 늘어나서(shrink-to-fit) overflow-x 가 아무것도 안 자른다 —
 * 실제로 375 폭에서 639px 까지 벌어졌다. float 를 먼저 푼다. */
.gnb_list {
  float: none;
  display: flex;
  width: auto;
  height: 44px;
  margin: 0;
  padding: 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gnb_list::-webkit-scrollbar { display: none; }
.gnb_list > li { float: none; flex: 0 0 auto; height: 44px; margin: 0; }
.gnb_list > li > a {
  display: flex; align-items: center;
  height: 44px; padding: 0 12px; font-size: 14px;
}

/* 탭 줄은 가로 스크롤 상자(overflow-x:auto)다. 그 안의 절대배치 요소는
 * **담는 블록이 상자 밖일 때만** 잘리지 않는다 — 그래서 서브메뉴와 더보기
 * 드롭다운 둘 다 .gnb_bar 를 기준으로 잡는다. li 는 static 이어야 한다. */
.gnb_list > li.gnb_has_sub, .gnb_more { position: static; }

/* 순서: 갤러리 · 마이너갤 · 미니갤 | 갤로그 ▼(더보기).
 * 구분선과 더보기를 숨겼더니 폰에서 갤로그 옆이 허전하고 이벤트로 갈 길이 없었다. */
.gnb_separator {
  flex: 0 0 auto;
  width: 1px; height: 16px;
  margin: 14px 6px;
  background: rgba(255, 255, 255, .35);
}
.gnb_more .btn_depth { height: 44px; }
.gnb_more .depth2 {
  left: auto;
  right: 6px;
  /* 탭 줄(44) + 서브메뉴 줄(40) 아래로 내려 서브메뉴를 가리지 않게 한다 */
  top: 84px;
  width: 140px;
}

/* 서브메뉴 6종은 탭 줄 아래 붙는 두 번째 가로 스크롤 줄이다.
 *
 * 탭 줄(.gnb_list) 안의 li 에 그대로 두면 그 li 폭에 갇혀서 한 줄이 안 된다.
 * .gnb_bar 를 기준으로 띄워 바 전체 폭을 쓰게 하고, 그 자리는 위에서
 * padding-bottom:40px 로 미리 비워 뒀다. */
.gnb_sub {
  position: absolute;
  left: 0; right: 0;
  top: 44px;
  display: flex;
  visibility: visible;
  opacity: 1;
  width: auto;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  background: rgba(0, 0, 0, .15);
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: none;
  scrollbar-width: none;
  box-sizing: border-box;
}
.gnb_sub::-webkit-scrollbar { display: none; }
.gnb_sub li { float: none; flex: 0 0 auto; }
.gnb_sub a {
  display: flex; align-items: center;
  height: 40px; padding: 0 10px; font-size: 13px; color: #fff;
}

/* ── 통계 줄: 「게시글 N · 댓글 N · 갤러리 N」 한 줄 ────────
 *
 * PC 는 세 문장을 12초 주기로 «돌려 가며» 한 줄에 보여 준다 —
 * span 이 전부 position:absolute + opacity:0 이고 애니메이션이 차례로 켠다.
 * 폰에서는 문구를 줄였으니 셋이 동시에 들어간다. 돌릴 이유가 없어졌으므로
 * 절대배치와 애니메이션을 함께 끈다 (둘 중 하나만 끄면 겹쳐서 한 글자만 보인다).
 */
.gall_exposure {
  position: static;
  float: none;
  /* 서브메뉴 줄(.gnb_sub)이 top:44px 에 절대배치돼 있다. 그만큼 내려앉지 않으면
     통계 글씨가 서브메뉴 위에 그대로 겹쳐 찍힌다 — 실제로 그랬다. */
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 0;
  width: auto;
  height: 30px;
  padding: 0 10px;
  overflow: visible;
  font-size: 12px;
  line-height: 30px;
}
/* 라벨 끝의 공백은 요소 경계에서 접힌다. 「게시글102」로 붙지 않게 여백을 준다 */
.gall_exposure .m_only { display: inline; margin-right: 3px; }

/* 갤 제목은 PC 에서 max-width:420px + nowrap + ellipsis 라 폰에서는 늘 잘린다.
 * 폭이 좁을수록 이름은 온전히 보여야 하므로 줄바꿈을 허용한다. */
.gall-head h2 { max-width: none; white-space: normal; font-size: 19px; }

/* .page_head 는 height:37px 로 못박힌 한 줄이다. 폰에서는 갤 이름이 접히고
 * 버튼줄이 아래로 내려가므로 그 높이를 넘긴다 — 실제로 다음 블록과 겹쳤다.
 * 한 줄 가정을 풀고 세로로 쌓는다. */
.gall-head, .page_head {
  display: block;
  height: auto;
  align-items: initial;
}
.gall-head .fl, .page_head .fl {
  float: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
}
.gall_issuebox { float: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.gall_issuebox > * { min-height: 32px; }
.gall_exposure > span {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  opacity: 1;
  animation: none;
}
.gall_exposure > span + span::before { content: "·"; margin: 0 6px; opacity: .6; }

/* ── 최근 방문: 가로 스크롤 칩 ───────────────────────────── */
.visit_bookmark { width: auto; }
.newvisit_history { display: flex; align-items: center; gap: 6px; width: auto; height: auto; padding: 6px 10px; }
.vst_title, .bnt_visit_prev, .bnt_visit_next { display: none; }
.newvisit_box { flex: 1 1 auto; min-width: 0; width: auto; margin: 0; }
.newvisit_list {
  display: flex; gap: 6px;
  width: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.newvisit_list::-webkit-scrollbar { display: none; }
.newvisit_list li {
  flex: 0 0 auto;
  height: 30px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  line-height: 28px;
}
.bnt_newvisit_more { position: static; flex: 0 0 auto; }

/* ── 사이드바: 본문 아래로 ───────────────────────────────
 * **포털 메인(_sidebar.eta) 기준**이다: 실북갤 → 흥한갤 → 신설갤.
 * 마크업이 이미 그 순서라 order 를 안 준다.
 * 목록·글보기는 조각이 다르다 (_list_sidebar.eta — 실시간베스트 → 개념글 → 추천).
 * 실측 03·04 골격의 우측 컬럼에는 갤러리 순위 위젯이 아예 없다.
 * 로그인 박스와 광고는 폰에서 뺀다 — 로그인은 헤더에 이미 있고,
 * 광고 자리는 폰에서 본문보다 먼저 눈에 들어와서 방해만 된다.
 */
.side { margin-top: 20px; }
/* 클래스 이름은 _login.eta(.login_wrap) · _ad_slot.eta(.ad_box) 가 원본이다.
 * 로그인은 헤더에 이미 있고, 광고는 폰에서 본문보다 먼저 눈에 들어와 방해만 된다. */
/* 클래스 이름은 _login.eta(.login_wrap) · _ad_slot.eta(.ad_box) ·
 * _mini_side.eta(.mini_login_box · .mini_adbox) 가 각각 원본이다.
 * 미니갤은 사이드 조각이 따로라 이름이 다르다 — 한쪽만 적으면 /mini 에만 로그인 상자가 남는다. */
.side .login_wrap, .side .ad_box, .side .gall_media,
.side .mini_login_box, .side .mini_adbox { display: none; }
.content_box { width: auto; }

/* ── 하단 고정 바 ────────────────────────────────────────── */
.m_bottom_bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  height: 48px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.m_bottom_bar .mb_btn {
  flex: 1 1 0;
  display: flex; align-items: center; justify-content: center;
  height: 48px;
  border: 0; border-left: 1px solid var(--hair);
  background: none;
  color: var(--fg); font-size: 13px; text-decoration: none;
  cursor: pointer;
}
.m_bottom_bar .mb_btn:first-child { border-left: 0; }
.m_bottom_bar .mb_write { background: var(--navy); color: #fff; font-weight: 700; }

/* 글쓰기 화면에는 폼의 [등록] 줄이 그 자리에 앉으므로 일반 바를 뺀다.
 * :has() 를 쓰는 이유: 라우트에 새 플래그를 만들지 않고 화면을 알아보기 위해서다. */
body:has(.dc-write) .m_bottom_bar { display: none; }

/* ── 푸터 ───────────────────────────────────────────────── */
.dc_all, .dc_compact { width: auto; margin: 16px 0 0; }
.dc_all dl, .dc_compact dl { float: none; width: auto; }
.dc_notice_foot { width: auto; height: auto; padding: 10px; text-align: center; }
.dc_service_foot, .foot_policy {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 12px;
  width: auto; height: auto;
  padding: 10px;
}
.dc_service_foot a, .foot_policy a { min-height: 24px; line-height: 24px; }
.foot_notice, .foot { text-align: center; padding: 0 10px; }
.foot p { text-align: center; }

/* ══ 메인(/) ═══════════════════════════════════════════════ */

/* 실베 상단 4카드 → 2열 그리드.
 *
 * 감싸는 li 가 PC 에서 width:728px 로 못박혀 있다 — 그걸 안 풀면 그리드가
 * 728 폭 안에서 2열이 되어 화면을 그대로 밀어낸다 (375 폭에서 738px 까지 넘쳤다).
 * .con_list 의 margin-left:-12px 도 같이 되돌린다. */
/* PC 는 `.typet_list > li` 에 width:728px 이 박혀 있다. 자식 선택자라
 * `.typet_list_inr` 한 줄로는 못 이긴다 — 같은 모양으로 눌러야 한다. */
.typet_list > li, .typet_list > li > a { width: auto; }
.typet_list_inr { width: auto; height: auto; min-height: 0; }
.typet_list_inr .con_list, .con_list { margin-left: 0; }
.con_list.img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: auto;
  height: auto;
}
.con_list.img li { float: none; width: auto; height: auto; margin: 0; }
.con_list.img .img_box { display: block; width: 100%; height: 96px; overflow: hidden; }
.con_list.img .img_box img { width: 100%; height: 96px; object-fit: cover; }

/* 이미지 없는 글이 카드에 섞였을 때.
 *
 * 카드 4장은 서버가 고른다 (pickBestCards) — 썸네일 있는 글을 **먼저** 넣고
 * 모자란 만큼만 없는 글로 채운다. 모바일도 같은 라우트라 선정 규칙이 같다.
 * 최근 24시간에 이미지 글이 4개가 안 되는 날은 그래도 빈자리가 남는다.
 *
 * 그 자리에 글자(갤 이름 첫 글자)를 크게 박으면 카드 넷 중 하나만 튄다.
 * 목록 아이콘(.ico-pic)과 같은 방식으로 «그림 없음» 을 도형으로 그린다 —
 * 이 프로젝트는 스프라이트 이미지를 쓰지 않는다. */
.con_list.img .best-initial.top {
  position: relative;
  width: 100%; height: 96px;
  background: #eceef5;
  font-size: 0;          /* 첫 글자를 감춘다 (읽는 사람에게는 의미가 없다) */
  line-height: 0;
}
/* 해 */
.con_list.img .best-initial.top::before {
  content: "";
  position: absolute;
  top: 30px; right: 34%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #b9bfd4;
}
/* 산 */
.con_list.img .best-initial.top::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 24px;
  margin-left: -26px;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 26px solid #b9bfd4;
}
.con_list.img .txt_box { display: block; padding: 4px 0; }
.con_list.img .tit { display: block; font-size: 13px; line-height: 1.35; }

/* 나머지 행: [썸네일 60×60] [제목 [N] / 갤러리명 · 시간] */
.typet_list { width: auto; height: auto; }
.typet_list > li:not(.typet_list_inr) { float: none; width: auto; height: auto; margin: 0; }
/* 한 행 70px 안에 들어간다: 썸네일 60 + 위아래 여백 5씩.
 * 글 칸도 60px 안이다 — 제목 두 줄(약 38) + 여백 2 + 갤러리명·시간 한 줄(약 17).
 * 여백을 4px 로 잡는 이유: 아래 1px 선까지 세어 60+4+4+1 = 69px 이라야 70 안에 든다. */
.typet_list > li:not(.typet_list_inr) > a {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  width: auto;
  height: auto;
  padding: 4px 0;
  border-bottom: 1px solid var(--hair);
}
.typet_list .box.bestimg {
  grid-row: 1 / span 2;
  width: 60px; height: 60px;
  overflow: hidden;
  border-radius: 3px;
}
.typet_list .box.bestimg img { width: 60px; height: 60px; object-fit: cover; }

/* 목록 행의 빈자리도 카드와 같은 도형이다 — 한 화면에 글자 박스와 도형이
 * 섞이면 둘 중 하나가 고장 난 것처럼 보인다.
 *
 * 카드(96px) 규칙과 합치지 않고 따로 적는 이유: 삼각형은 border 로, 해는 width 로
 * 그려서 % 로 줄어들지 않는다. 상자가 60px 이면 도형 치수도 그만큼 다시 적어야 한다.
 * (96 → 60 이라 0.625 를 곱한 값이다) */
.typet_list .box.bestimg .best-initial {
  position: relative;
  display: block;
  width: 60px; height: 60px;
  background: #eceef5;
  font-size: 0;          /* 첫 글자를 감춘다 */
  line-height: 0;
}
/* 해 */
.typet_list .box.bestimg .best-initial::before {
  content: "";
  position: absolute;
  top: 18px; right: 32%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #b9bfd4;
}
/* 산 */
.typet_list .box.bestimg .best-initial::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 15px;
  margin-left: -16px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 16px solid #b9bfd4;
}
.typet_list .box.besttxt { width: auto; height: auto; align-self: end; }
.typet_list .box.besttxt p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0; font-size: 14px; line-height: 1.35;
}

/* 갤러리명 · 시간은 **한 줄**이다.
 *
 * PC 규칙이 .name 을 inline-block(높이 44px, line-height 44px)으로 두는데,
 * 그 상자가 베이스라인에 앉으면서 아래로 삐져나와 줄 높이가 44 → 61px 로 부푼다.
 * 그래서 시간이 셋째 줄로 밀리고 행 전체가 103px 이 됐다.
 * flex 로 바꾸면 베이스라인 계산이 사라지고 둘이 같은 줄에 앉는다.
 */
.typet_list .box.best_info {
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto; height: auto;
  align-self: start;
  overflow: hidden;
  font-size: 12px; line-height: 1.4; color: #888;
}
/* 8자쯤에서 자른다. 한글은 글자 하나가 대략 1em 이라 em 으로 잡는 편이 정확하다 */
.typet_list .box.best_info .name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 8em;
  height: auto;
  overflow: hidden;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.typet_list .box.best_info .time { flex: 0 0 auto; height: auto; line-height: 1.4; }
.typet_list .box.best_info .time::before { content: "·"; margin-right: 4px; }

/* 개념글: 카테고리 탭 가로 스크롤, 갤러리 박스 세로 쌓기 */
.tablist, .tab_header {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.tablist::-webkit-scrollbar, .tab_header::-webkit-scrollbar { display: none; }
.tab_header .tab_btn, .tablist .tab_btn { flex: 0 0 auto; min-height: 40px; }
.tab_container, .tab_content { display: block; width: auto; }
.tab_content .wraping { float: none; width: auto; margin: 0 0 14px; }

/* ══ /all · /mini — 필터 칩 + 목록 1열 ═════════════════════ */
.gall-filter { width: auto; }
.gf-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: auto;
  padding: 6px 0;
}
.gf-label { flex: 0 0 auto; padding-top: 6px; }
.gf-items {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.gf-items::-webkit-scrollbar { display: none; }
.gf-items .gf {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  line-height: 30px;
}

/* 초성 41개는 접었다 편다. app.js 가 .is-collapsed 를 걸 때만 접힌다 */
.gf-more {
  flex: 0 0 auto; order: 9;
  min-height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 16px;
  background: #fff; font-size: 12px; cursor: pointer;
}
.gf-chosung.is-collapsed .gf-items { flex-wrap: wrap; max-height: 32px; overflow: hidden; }
.gf-chosung:not(.is-collapsed) .gf-items { flex-wrap: wrap; overflow: visible; }

.gf-search { display: flex; gap: 6px; width: auto; padding: 6px 0; }
.gf-search input { flex: 1 1 auto; min-width: 0; height: 40px; box-sizing: border-box; }
.gf-search button { flex: 0 0 64px; height: 40px; }

/* 갤러리 목록 한 줄에 하나 */
.card-grid { display: block; width: auto; }
.gcard { float: none; width: auto; height: auto; margin: 0 0 8px; }
.gcard a { display: flex; gap: 10px; align-items: flex-start; width: auto; height: auto; padding: 10px 0; }
.gcard-thumb { flex: 0 0 60px; width: 60px; height: 60px; }
.gcard-body { flex: 1 1 auto; min-width: 0; }
.gcard-intro { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 미니갤 메인 — 소개 블록
 *
 * PC 는 안내문과 [미니 갤러리 만들기] 를 한 줄에 놓고 그 줄 높이를 33px 로 못박는다
 * (.mgall_info { height: 33px } · .txt { line-height: 33px }).
 * 폰에서는 안내문이 3줄(99px)이 되는데 상자는 33px 그대로라, 글이 위아래로 33px 씩
 * 흘러넘쳐 앞뒤 블록 위에 겹쳐 그려졌다. 높이를 풀고 세로로 쌓는다.
 */
.mgall_info {
  flex-direction: column;
  align-items: stretch;
  height: auto;
  gap: 10px;
  margin: 12px 0;
}
.mgall_info .txt { height: auto; line-height: 1.5; }
.mgall_info .round { height: 44px; line-height: 42px; }
.mgall_info_btns { flex-wrap: wrap; }

/* 나머지 미니갤 블록도 고정 높이를 푼다 — 폰에서는 글이 한 줄에 안 들어간다 */
.mini_list_wrap, .hot_mini_box, .hot_minigall,
.mini_head, .catehead, .mini_catebox { height: auto; min-height: 0; }
.catehead { padding: 8px 0; }
/* 「실시간 북적 미니 갤러리」는 알약 모양 배지다. 폭이 좁아 글이 두 줄로 감기면
 * 알약이 40px 로 부풀어 그 줄이 통째로 어긋난다. 한 줄로 묶고 줄바꿈은 바깥이 한다. */
.allandrank .rank_listwrap .mini_head h2 {
  height: auto; min-height: 20px; line-height: 20px;
  flex: 0 0 auto;
  white-space: nowrap;
}
/* 터치 높이를 넓히는 것은 «흥한 미니 갤러리» 목록뿐이다.
 * .rank_list 전부에 주면 사이드바(li 22px)와 실시간 북적 롤링(li 18px)의
 * li 를 a 가 뚫고 나간다 — 실제로 그렇게 만들었다가 겹침 검사에 걸렸다.
 * 롤링은 «한 줄만 보인다» 가 동작의 일부라 높이를 건드리면 안 된다. */
.hot_minigall .rank_list li { height: auto; }
.hot_minigall .rank_list a { height: auto; min-height: 36px; display: flex; align-items: center; }

/* 미니갤 메인
 *
 * 흥한갤 20개는 PC 에서 176px 열 4개로 끊어 나열한다 —
 * `.rank_list { flex: 1 1 176px; min-width: 176px }` 이다.
 * 폭만 auto 로 줘도 min-width 가 남아 4×176=704px 로 화면을 민다.
 * 폰에서는 열을 접고 한 줄에 하나로 쌓는다. */
.mini_list_wrap, .minicate_wrap, .gallmain, .hot_mini_box, .mgall_info { width: auto; }

/* 갤 정보 블록 — PC 는 좌우 두 칸에 높이 155 고정이다.
 * 매니저 두 줄이 붙으면서 폰에서는 그 폭에 안 들어간다. 아래로 접는다. */
.gall_info { height: auto; flex-wrap: wrap; gap: 10px; padding: 12px; }
.gi_right { flex: 1 1 100%; }
/* .allandrank 는 두 칸이 아니라 35px 짜리 «한 줄 바»다 —
 * [갤러리 전체보기] 버튼과 [실시간 북적] 제목이 한 줄에 있고,
 * 둘 사이를 `margin-left: 286px` 로 벌려 놓았다. 폰에서는 그 286px 이
 * 그대로 화면 밖으로 나가므로 여백을 지우고 줄바꿈을 허용한다. */
.allandrank { display: flex; flex-wrap: wrap; align-items: center; height: auto; width: auto; row-gap: 6px; }
.allandrank .rank_listwrap { margin-left: 0; min-width: 0; flex: 1 1 100%; flex-wrap: wrap; row-gap: 6px; }

/* 제목 알약 + [전체] 가 한 줄, 롤링이 그 다음 줄이다.
 * 셋을 한 줄에 두면 375px 에서 알약(144px)이 자기 칸을 넘어가고
 * [전체] 버튼이 롤링 위에 그대로 올라탔다. */
.allandrank .rank_listwrap .mini_head {
  flex: 1 1 100%;
  justify-content: space-between;
  min-width: 0;
}
.allandrank .busy_rolls { flex: 1 1 100%; min-width: 0; }
.rank_listwrap { display: block; width: auto; }
.rank_list_box { display: flex; flex-wrap: wrap; width: auto; }
.rank_list, .one_ranklist .rank_list {
  float: none;
  flex: 1 1 100%;
  width: auto;
  min-width: 0;
}
.rank_list li { width: auto; }
.busy_rolls, .one_ranklist, .all_ranklist { width: auto; min-width: 0; }
.minicate_wrap .mgall_list, .minicate_wrap li { float: none; width: auto; }

/* ══ 목록 표 → 2줄 카드 (갤 목록 · /best · /search 게시물) ══
 *
 * DOM 은 그대로 <table> 이다. 표를 카드로 만드는 것은 CSS 뿐이고,
 * 셀 클래스(c-title · c-nick …)가 이미 의미를 갖고 있어 순서만 다시 준다.
 *
 *   1행  [말머리] 아이콘 제목 [댓글수]
 *   2행  (갤러리명) 글쓴이 · 시간 · 조회 N · 추천 N
 *
 * 줄바꿈은 ::before 를 flex 아이템으로 끼워 만든다 — 요소를 새로 넣지 않는다.
 */
.gall-list { display: block; width: auto; border: 0; }
.gall-list colgroup, .gall-list thead { display: none; }
.gall-list tbody { display: block; }

.gall-list tbody tr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hair);
}
.gall-list tbody tr::before {
  content: "";
  order: 3;
  flex-basis: 100%;
  height: 0;
}
/* 공지 행에 배경을 깔지 않는다 (C5①). 실측 공지 행은 일반 행과 같고,
 * 다른 것은 말머리 칸의 <b>공지</b> 와 제목 앞 아이콘뿐이다.
 * 배경 + 말머리 앞 빨간 원은 우리가 만든 것이었다. */
.gall-list tbody tr.is-notice { background: none; }
.gall-list tbody td {
  display: block; width: auto; height: auto;
  padding: 0; border: 0; text-align: left;
}

.gall-list tbody .c-no { display: none; }
.gall-list tbody .c-head { order: 1; margin-right: 4px; color: #888; font-size: 12px; }
.gall-list tbody .c-title {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
}
.gall-list tbody .c-title .title { display: inline; white-space: normal; }

.gall-list tbody .c-gall { order: 4; margin-top: 5px; font-size: 12px; }
.gall-list tbody .c-nick { order: 5; margin-top: 5px; font-size: 12px; }
.gall-list tbody .c-date { order: 6; margin-top: 5px; font-size: 12px; color: #999; }
.gall-list tbody .c-views { order: 7; margin-top: 5px; font-size: 12px; color: #999; }
.gall-list tbody .c-ups { order: 8; margin-top: 5px; font-size: 12px; color: #999; }

/* 2행의 칸 사이를 가운뎃점으로 잇는다. 숫자만 있는 칸은 무엇의 숫자인지 적어 준다 */
.gall-list tbody .c-gall + .c-nick::before,
.gall-list tbody .c-date::before { content: "·"; margin: 0 5px; }
.gall-list tbody .c-views::before { content: "· 조회 "; margin-left: 5px; }
.gall-list tbody .c-ups::before { content: "· 추천 "; margin-left: 5px; }
.gall-list tbody tr.empty td { text-align: center; padding: 40px 0; }

/* ── 옵션바: 탭·말머리 칩 / 페이지당 select 숨김 ──────────── */
.option-bar { display: flex; flex-wrap: wrap; gap: 6px; width: auto; height: auto; margin: 10px 0 6px; }
.ob-cell { display: block; width: auto; }
.ob-tabs, .ob-heads {
  flex: 1 1 100%;
  display: flex; gap: 4px;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.ob-tabs::-webkit-scrollbar, .ob-heads::-webkit-scrollbar { display: none; }
.ob-tabs .tab, .ob-heads a {
  flex: 0 0 auto; width: auto; min-height: 36px; padding: 0 12px; line-height: 34px;
}
.ob-right { display: none; }

/* 글쓰기 버튼은 하단 고정 바가 맡는다 */
.btn-box { display: flex; }
.btn-box .bb-right { display: none; }
.btn-box .bb-left { display: flex; gap: 6px; }
.btn-box .btn { min-height: 40px; padding: 0 14px; line-height: 38px; }

/* ── 페이지네이션: 이전 · 현재/전체 · 다음 + 이동 입력 ────── */
.pager, .bottom_paging_wrap { width: auto; }
.bottom_paging_box { display: flex; align-items: center; justify-content: center; gap: 4px; }
/* 가운데 숫자 나열은 접고 앞뒤 버튼만 크게 남긴다 */
.bottom_paging_box .pg:not(.prev):not(.next) { display: none; }
.bottom_paging_box .pg.prev, .bottom_paging_box .pg.next {
  display: flex; align-items: center; justify-content: center;
  min-width: 72px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 3px;
}
.bottom_movebox { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 8px; }
.bottom_movebox .page-move-input { width: 64px; height: 44px; box-sizing: border-box; }
.bottom_movebox .btn_schmove { min-height: 44px; padding: 0 12px; }

/* 검색 폼 세로 쌓기 */
.search { display: flex; flex-wrap: wrap; gap: 6px; width: auto; }
.search .s-type { flex: 1 1 100%; height: 44px; }
.search input[type="text"], .search input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 44px; box-sizing: border-box;
}
.search button { flex: 0 0 64px; height: 44px; }

/* /best · /search · 갤로그의 탭·정렬 줄도 칩으로 */
.best-sorts, .search-tabs, .search-sorts, .gallog-tabs {
  display: flex; gap: 6px;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.best-sorts::-webkit-scrollbar, .search-tabs::-webkit-scrollbar,
.search-sorts::-webkit-scrollbar, .gallog-tabs::-webkit-scrollbar { display: none; }
.best-sorts a, .search-tabs a, .search-sorts a, .gallog-tabs a {
  flex: 0 0 auto; min-height: 40px; padding: 0 12px; line-height: 38px;
}
.best-board-head, .search-top { display: block; width: auto; }
.best-board, .search-block, .search-page { width: auto; }

/* ══ 글보기 ════════════════════════════════════════════════ */
.gallview, .gallview_head, .write_div, .post-body { width: auto; }
.gallview_head .title_subject { font-size: 17px; line-height: 1.4; white-space: normal; }
.gallview_head .gall_writer { font-size: 12px; }
.gallview_head .fl, .gallview_head .fr {
  float: none; display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.write_div img, .post-body img { max-width: 100%; height: auto; }

/* 추천·비추천은 화면 폭을 반씩 나눠 쓰는 두 버튼.
 *
 * PC 는 288px 짜리 상자 하나 안에 두 버튼이 들어간다 (테두리·안쪽 여백이 그 상자 것).
 * 폰에서는 상자를 없애고 버튼 둘이 그 자리를 반씩 갖는다 —
 * 테두리·여백·가운데 정렬을 다 풀지 않으면 가운데 작은 상자로 남는다. */
.reco-area {
  display: flex;
  justify-content: stretch;
  gap: 8px;
  width: auto;
  margin: 16px 0;
  padding: 0;
  border: 0;
  background: none;
}
.reco-area form { flex: 1 1 0; min-width: 0; margin: 0; }
.reco-area .reco {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
  width: 100%; min-width: 0; height: 56px;
  border-radius: 3px;
}
/* 추천은 보라 채움, 비추천은 회색 테두리 */
.reco-area .reco.up {
  border: 1px solid var(--mini-line);
  background: var(--mini);
  color: var(--bg);
}
.reco-area .reco.down {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}
/* 채운 배경 위에서는 PC 의 빨강·파랑 숫자가 안 읽힌다 */
.reco-area .reco.up .label,
.reco-area .reco.up .count,
.reco-area .reco.up .sub,
.reco-area .reco.up .sub strong { color: var(--bg); }
.reco-area .reco.down .label { color: #6a6a6a; }
.reco-area .reco .label { font-size: 12px; }
.reco-area .reco .count { font-size: 17px; line-height: 1.2; }
.reco-area .reco .sub { font-size: 11px; }

/* [공유][신고] 는 추천 버튼 **아래 별도 줄**이다.
 * PC 는 margin-top:-24px 로 추천 상자 안쪽에 끌어올려 놓는데,
 * 폰에서는 추천이 폭을 꽉 채운 두 버튼이라 그 위에 그대로 겹쳐 앉았다. */
.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 18px;
  text-align: right;
}
.report-actions a, .report-actions .share-copy {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; min-height: 40px; height: auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: #6a6a6a;
  font-size: 13px;
  cursor: pointer;
}

/* ── /best ──────────────────────────────────────────────
 * 크롬이 그리는 페이지 제목과 섹션 제목이 둘 다 «실시간 베스트» 라 두 번 나온다.
 * 폰에서는 섹션 제목만 남긴다 (그쪽에 «최근 24시간 N건» 설명이 붙어 있다). */
body.page-best .gall-head { display: none; }

/* 행 메타는 갤러리명 · 시간 두 줄이면 된다.
 * 글쓴이·조회·추천까지 넣으면 375px 에서 세 줄로 늘어져 제목보다 길어진다. */
body.page-best .gall-list tbody .c-nick,
body.page-best .gall-list tbody .c-views,
body.page-best .gall-list tbody .c-ups { display: none; }
body.page-best .gall-list tbody .c-date::before { content: "·"; margin: 0 5px; }

/* 댓글: 닉·시간 한 줄 → 내용 → [답글][신고] 우측 */
.comment-lst { width: auto; }
.comment-lst > li { padding: 10px 4px; border-bottom: 1px solid var(--hair); }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12px; }
.comment-lst .ctxt { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.cactions { display: flex; justify-content: flex-end; gap: 8px; }
.cactions button, .cactions a { min-height: 32px; padding: 0 8px; }
.comment-lst > li.sub { margin-left: 12px; }

/* 댓글 폼: 닉·비번 한 줄 / 내용 / [콘][등록] 한 줄 */
.comment-form { display: flex; flex-wrap: wrap; gap: 6px; width: auto; }
.comment-form input[name="nick"], .comment-form input[name="password"] {
  flex: 1 1 0; min-width: 0; height: 44px; box-sizing: border-box;
}
.comment-form textarea { flex: 1 1 100%; min-height: 80px; box-sizing: border-box; }
.comment-form .con-bar { flex: 1 1 100%; display: flex; gap: 6px; }
.comment-form .con-open { flex: 0 0 auto; min-height: 44px; padding: 0 14px; }
.comment-form .submit { flex: 1 1 auto; min-height: 44px; }
.con-grid { grid-template-columns: repeat(4, 1fr); }

/* ══ 글쓰기 ════════════════════════════════════════════════ */
.dc-write, .dc-write-wrap, .write { width: auto; }
/* PC 는 fieldset 폭이 417px 로 못박혀 있다. 폰에서는 그것만으로 화면이 넘친다 */
/* fieldset 은 기본값이 min-inline-size:min-content 라 내용보다 작아지지 않는다.
 * 폭을 auto 로 줘도 안 줄어들어서 min-width 를 직접 0 으로 눌러야 한다. */
.write-fields, .write_subject, .write_identity { width: auto; min-width: 0; box-sizing: border-box; }
.write-fields { display: flex; flex-wrap: wrap; gap: 6px; }
/* 말머리·제목 한 줄 */
.write-head, .head-select { flex: 0 0 96px; height: 44px; box-sizing: border-box; }
.subject-input { flex: 1 1 auto; min-width: 0; height: 44px; box-sizing: border-box; }
/* 닉·비밀번호 한 줄 */
.write_identity { flex: 1 1 100%; display: flex; gap: 6px; }
.write_identity input { flex: 1 1 0; min-width: 0; height: 44px; box-sizing: border-box; }
/* 닉·비번을 감싼 상자가 PC 폭(210px)을 그대로 갖고 있다 */
.write_identity .input_box { flex: 1 1 0; width: auto; min-width: 0; }
.write_identity .input_box input { width: 100%; box-sizing: border-box; }

.note-toolbar {
  display: flex; gap: 2px;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.note-toolbar::-webkit-scrollbar { display: none; }
.note-btn-group { flex: 0 0 auto; }
.note-btn { min-width: 36px; min-height: 36px; }
.note-editable, .write-body-source { min-height: 240px; box-sizing: border-box; }
.note-editor, .note-frame { width: auto; }

/* 등록 줄에서 **버튼만** 하단에 고정한다.
 *
 * .write-bottom 통째로 고정하면 그 안의 비밀번호 안내문("보안 수단이 아닙니다")이
 * 바를 다 차지해서 [등록] 이 화면 밖으로 밀린다. 그 문구는 프로젝트가 반드시
 * 보여 주기로 한 안내라 숨길 수도 없다 — 문구는 흐름에 두고 버튼만 내린다.
 * 버튼은 여전히 form 안에 있으므로 submit 은 그대로 동작한다. */
.write-bottom { position: static; display: block; margin: 0 0 8px; }
.write-bottom p { margin: 8px 0; font-size: 12px; line-height: 1.5; }
.write-bottom .btn_box {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex; gap: 8px;
  width: auto; min-width: 0;
  padding: 4px 10px;
  border-top: 1px solid var(--line);
  background: #fff;
  box-sizing: border-box;
}
.write-bottom .btn_apply, .write-bottom .btn_cancle {
  flex: 1 1 0; width: auto; min-width: 0; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}

/* ══ 갤로그 — 프로필 카드 → 탭 → 목록 ══════════════════════ */
.gallog-wrap { width: auto; }
.gallog-head { display: block; width: auto; }
.gallog-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.gl-title { display: block; font-size: 14px; line-height: 1.4; }
.gl-gall, .gl-date, .gl-origin { font-size: 12px; }

} /* @media (max-width: 768px) */
