/* 펭귄위키 공통 스타일 — 청록 한옥 (2026-10)
   색·글꼴·크기 기준값은 바로 아래 :root 한 곳에서 바꾸면 전체에 반영됩니다.
   파일 구성: 기본 뼈대(헤더~반응형) → 관리·패치노트 등 기능별 → 맨 아래 "청록 한옥 디자인" 덮어쓰기 */
:root {
  --bg: #f4f0e5;
  --card: #fffcf3;
  --cream: #efead9;
  --line: #d9d1bc;
  --line-soft: #e3decd;
  --line-faint: #ebe7da;
  --ink: #34453d;
  --muted: #6c7263;
  --label: #636e60;
  --wood: #82654b;
  --wood-dark: #2f493e;
  --tile: #3b504e;
  --tile-light: #627571;
  --gold: #b99257;
  --accent: #4f715c;
  --blue: #587786;
  --green: #527365;
  --amber: #a6763e;
  --font-head: "Jua", sans-serif;
  --font-body: "Gowun Dodum", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-card: 18px;
  --radius-pill: 999px;
  --max: 1240px;
  --rose: #b37b63;
  --mint-wash: #e9efe4;
  --gold-wash: #f4ecd8;
  --paper-shadow: 0 4px 0 #e5dfce;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; margin: 0; line-height: 1.25; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 헤더 ---------- */
.site-header { display: flex; flex-direction: column; width: 100%; }
.site-header .tile-edge { display: block; width: 100%; }
.site-header .bar { display: flex; align-items: center; }
.plaque { display: flex; align-items: center; outline-offset: -5px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.plaque .name { font-family: var(--font-head); }
.seal { display: inline-block; width: 12px; height: 12px; background: var(--accent); border-radius: 4px; }
.seal.sm { width: 10px; height: 10px; border-radius: 3px; }
.nav { display: flex; flex-grow: 1; }
.nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.nav a { transition: background-color .18s, color .18s; }
.nav a:hover { background: var(--gold); color: var(--wood-dark); }
.nav a[aria-current="page"] { background: var(--cream); color: var(--wood-dark); }
.nav a.nav-admin { border: 1px solid var(--gold); }
.nav a.nav-admin[aria-current="page"] { background: var(--gold); color: var(--wood-dark); }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid #2A1A0E; }
.search input { flex-grow: 1; min-width: 0; border: 0; background: transparent; outline: none; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 6px 0 16px;
  background: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--wood-dark);
}
.user-chip .role {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  background: var(--wood-dark);
  color: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 11px;
}
.user-chip .logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 0;
  cursor: pointer;
  transition: background-color .15s;
}
.user-chip .logout:hover { background: var(--gold); }
.site-header .gold-line { height: 3px; background: var(--gold); }
.site-header .wood-line { height: 8px; background: var(--wood-dark); }

/* ---------- 레이아웃 ---------- */
main { flex-grow: 1; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 36px 24px 60px; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 22px; }

/* ---------- 카드 / 버튼 / 태그 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); outline-offset: -5px; }
.card.plain { outline: none; }
.card.pad { padding: 22px 24px; }

/* 버튼: 마우스를 올리면 색이 분명히 바뀝니다 (채움 ↔ 진한 색) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 22px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.xs { height: 30px; padding: 0 12px; font-size: 12px; }
.btn.primary { color: var(--card); }
.btn.primary:hover { background: var(--wood-dark); color: var(--cream); box-shadow: 0 6px 14px -8px rgba(59, 36, 20, 0.6); }
.btn.secondary { color: var(--wood-dark); }
.btn.secondary:hover { background: var(--wood); color: var(--cream); border-color: var(--wood); }
.btn.ghost { background: transparent; color: var(--wood); border-color: var(--line); }
.btn.ghost:hover { color: var(--wood-dark); }
.btn.dark { background: var(--wood-dark); color: var(--cream); }
.btn.dark:hover { background: var(--accent); color: var(--card); }
.btn.success { background: var(--green); color: var(--card); border-color: var(--green); }
.btn.success:hover { background: #2F5239; border-color: #2F5239; color: var(--card); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.icon { width: 32px; height: 32px; background: var(--cream); border-color: var(--line-soft); }
.btn.icon:hover { background: var(--wood); border-color: var(--wood); }
.btn.icon:hover svg { stroke: var(--cream); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  border: 1px solid var(--line);
  color: var(--wood);
}
.tag.accent { border-color: var(--accent); color: var(--accent); }
.tag.fill { background: var(--accent); color: var(--card); border-color: var(--accent); }
.tag.blue { background: var(--blue); color: var(--card); border-color: var(--blue); }
.tag.green { background: var(--green); color: var(--card); border-color: var(--green); }
.tag.gray { background: var(--line-faint); color: var(--label); border-color: var(--line-faint); }
.pill-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  color: var(--wood);
}
.notice-box { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border: 1px solid var(--line-soft); font-size: 13px; color: var(--wood); }

/* ---------- 섹션 제목 ---------- */
.section-head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-head .title { display: flex; align-items: center; }
.page-title { display: flex; align-items: center; gap: 12px; }
.page-title .seal { width: 14px; height: 14px; }
.subtitle { font-size: 14px; }

/* ---------- 폼 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--label); }
.input, .select, .textarea {
  height: 44px;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--line);
  outline: none;
  font-size: 14px;
  width: 100%;
}
.textarea { height: auto; min-height: 120px; padding: 12px 16px; border-radius: 14px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--wood) 50%), linear-gradient(135deg, var(--wood) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.form-error { font-size: 13px; color: var(--accent); }
.toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background: var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex-shrink: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--card);
  border-radius: 50%;
  transition: left .15s;
}
.toggle.on { background: var(--green); }
.toggle.on::after { left: 18px; }

/* ---------- 홈 ---------- */
.hero .copy { flex-grow: 1; flex-direction: column; min-width: 0; }
.hero .media {
  width: 520px;
  height: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  outline: 1px solid #E9DDBF;
  outline-offset: -6px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}
.hero .media img, .hero .media iframe, .hero .media video { width: 100%; height: 100%; object-fit: cover; border: 0; }
.info-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
}
.info-pill .k { font-size: 13px; color: var(--label); }
.info-pill .v { font-size: 15px; color: var(--ink); }
.info-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.info-pill.has-btn { padding-right: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* 홈 가이드 타일: 이름 + 한 줄 설명 + 문서 수. 섹션이 많아도 한 줄에 4개씩 가지런히 */
.tile-grid { display: grid; }
.g-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .25s;
}
.g-tile:hover { color: inherit; }
.g-tile .row { display: flex; }
.g-tile h3 { overflow: hidden; text-overflow: ellipsis; }
.g-tile .n { flex-shrink: 0; color: var(--muted); }
.g-tile p { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.g-tile .arrow { margin-top: auto; transition: opacity .2s, transform .2s; }
.g-tile:hover .arrow { opacity: 1; transform: none; }
.community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.community .item { display: flex; align-items: center; outline-offset: -6px; }
.community .icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.community p { margin: 6px 0 0; }
.community .grow { flex-grow: 1; min-width: 0; }

/* ---------- 가이드 문서 ---------- */

/* 가이드는 본문 폭을 넉넉히: 넓은 컨테이너 + 목차 폭 축소 */
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 190px; gap: 36px; align-items: start; }
.guide-layout > article { min-width: 0; max-width: 960px; }
.tree { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.tree .head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 12px;
  border-bottom: 1px solid var(--line-faint);
  font-family: var(--font-head);
  font-size: 18px;
}
.tree .sec {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--wood-dark);
  cursor: pointer;
  user-select: none;
}
.tree .sec:hover { background: var(--cream); color: var(--wood-dark); }
.tree .sec .chev { width: 12px; height: 12px; transition: transform .15s; }
.tree .sec.open .chev { transform: rotate(90deg); }
.tree .children { display: flex; flex-direction: column; gap: 2px; }
.tree .children[hidden] { display: none; }
.tree .children .sec { padding-left: 22px; font-size: 13px; }
.tree .children .children .page { padding-left: 42px; }
.tree .page {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px 0 28px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}
.tree .page, .tree .sec { transition: background-color .15s, color .15s; }
.tree .page:hover { background: var(--wood); color: var(--cream); }
.tree .page.active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: -14px; margin-right: 0; }
.tree .page .draft { margin-left: auto; }
.tree .empty { padding: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb .cur { color: var(--ink); }
.article-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.article-head h1 { font-size: 36px; line-height: 1.25; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.toc { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; position: sticky; top: 16px; }
.toc .label { font-size: 12px; color: var(--label); letter-spacing: 1px; margin-bottom: 4px; }
.toc a { font-size: 13px; text-decoration: none; color: var(--wood-dark); }
.toc a.h3 { padding-left: 12px; color: var(--muted); }
.toc a:hover { color: var(--accent); }
.page-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.page-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  max-width: 48%;
}
.page-nav a:hover { background: var(--card); color: var(--ink); }
.page-nav .k { font-size: 12px; color: var(--muted); }
.page-nav .next { text-align: right; margin-left: auto; }

/* 본문 마크다운 */
.prose > :first-child { margin-top: 0; }
.prose h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin: 34px 0 14px; }
.prose h2::before { content: ""; border-radius: 3px; flex-shrink: 0; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; color: var(--wood-dark); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose img { border: 1px solid var(--line); }
.prose img[data-pw-img]:not([src]) { display: block; width: 100%; max-width: 480px; height: 120px; background: var(--cream); border-style: dashed; }
.prose img[data-pw-img].missing { width: auto; height: auto; min-height: 0; padding: 12px 16px; font-size: 13px; color: var(--muted); }
.prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 7px;
}
.prose pre { background: var(--cream); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; overflow: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { margin: 0 0 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--wood); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .callout {
  display: flex;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 14px;
}
.prose .callout::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--accent); border-radius: 3px; flex-shrink: 0; }
.prose .callout .callout-title { display: block; font-size: 12px; color: var(--accent); letter-spacing: 1px; margin-bottom: 4px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
.prose th {
  text-align: left;
  padding: 10px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  color: var(--label);
  font-size: 12px;
  letter-spacing: 1px;
}
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--line-faint); }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose .cmd { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.prose .cmd:hover { border-color: var(--wood); }
.prose .cmd svg { width: 12px; height: 12px; }

/* ---------- 관리 ---------- */

/* 관리 화면은 표가 많아 공개 페이지보다 넓게 씁니다 */
.container.admin-layout { max-width: 1480px; }
.admin-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-main { min-width: 0; container-type: inline-size; }

/* 표 + 오른쪽 입력 폼 두 단 배치. 자리가 모자라면 한 단으로 내려갑니다 (아래 @container) */
.admin-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.admin-split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-split > * { min-width: 0; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; position: sticky; top: 16px; }
.admin-nav .label { font-size: 12px; color: var(--label); letter-spacing: 1px; padding: 4px 12px 10px; }
.admin-nav a, .admin-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  text-decoration: none;
  color: var(--wood-dark);
  font-size: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.admin-nav a, .admin-nav button { transition: background-color .15s, color .15s; }
.admin-nav a:hover, .admin-nav button:hover { background: var(--wood); color: var(--cream); }
.admin-nav [aria-current="page"] { background: var(--cream); }
.admin-nav .soon { margin-left: auto; font-size: 11px; color: var(--muted); }
.admin-nav hr { border: 0; border-top: 1px solid var(--line-faint); margin: 8px 6px; }

/* 표: 칸이 모자라도 글자를 한 자씩 꺾지 않습니다.
   - 각 표는 --tmin(최소 폭)을 갖고, 그보다 좁아지면 표 안에서 가로 스크롤
   - 글자 칸은 한 줄 + 말줄임(…), 여러 줄이 필요한 칸은 .wrap */
.table { display: flex; flex-direction: column; overflow: hidden; overflow-x: auto; }
.table .thead, .table .tr { display: grid; gap: 12px; align-items: center; padding: 0 20px; min-width: var(--tmin, 0); }
.table .thead { height: 42px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--label); letter-spacing: 1px; }
.table .tr { border-bottom: 1px solid var(--line-faint); font-size: 14px; }
.table .tr:last-child { border-bottom: 0; }
.table .thead > *, .table .tr > * { min-width: 0; }
.table .thead > span, .table .tr > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .tr > span.wrap { white-space: normal; }
.table .tr > .tag { justify-self: start; }
.table .cmd-chip { display: block; max-width: 100%; line-height: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .actions { display: flex; gap: 4px; flex-shrink: 0; }
.table .empty { padding: 28px 20px; color: var(--muted); font-size: 14px; text-align: center; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.icon-btn { transition: background-color .15s, color .15s, border-color .15s; }
.icon-btn:hover { background: var(--wood); color: var(--cream); border-color: var(--wood); }
.icon-btn.danger { color: var(--accent); }
.icon-btn.move { width: 24px; height: 24px; font-size: 9px; color: var(--wood); }
.icon-btn[disabled] { opacity: 0.3; cursor: default; }
.icon-btn[disabled]:hover { background: transparent; }
.form-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 24px; border: 1px solid var(--accent); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-row.cat-row { grid-template-columns: minmax(120px, 1fr) 120px 84px; }

/* ---------- 편집기 ---------- */
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.editor-title {
  width: 560px;
  max-width: 100%;
  height: 46px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-head);
  font-size: 30px;
  outline: none;
}
.editor-title:focus { border-color: var(--wood); }
.editor-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--wood);
  flex-wrap: wrap;
}
.editor-meta .input, .editor-meta .select { height: 32px; width: auto; font-size: 13px; background: var(--cream); border-color: var(--line-soft); }
.editor-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-height: 560px; }
.pane { display: flex; flex-direction: column; overflow: hidden; }
.pane .pane-head {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 12px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--label);
  letter-spacing: 1px;
}
.pane .pane-head .lbl { margin-right: 8px; }
.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  color: var(--wood-dark);
  letter-spacing: 0;
}
.tool { transition: background-color .15s, color .15s; }
.tool:hover { background: var(--wood); color: var(--cream); }
.editor-textarea {
  flex-grow: 1;
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  background: var(--card);
  color: var(--ink);
  min-height: 500px;
}
.editor-textarea.drop { background: var(--cream); box-shadow: inset 0 0 0 2px var(--wood); }
.pane .prose { padding: 20px 24px; flex-grow: 1; overflow: auto; }
.editor-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--label);
}
.editor-bottom .input { height: 34px; background: var(--cream); border-color: var(--line-soft); font-size: 13px; }

/* ---------- 로그인 ---------- */
.login-wrap { display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.login-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 440px;
  max-width: 100%;
  padding: 36px 40px 32px;
  border-radius: 20px;
  outline-offset: -6px;
}
.login-card .head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-card .head .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}
.login-card h1 { font-size: 28px; }

/* ---------- 푸터 ---------- */
.site-footer { display: flex; flex-direction: column; position: relative; z-index: 1; }
.site-footer .body { display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.site-footer .logo { font-family: var(--font-head); color: var(--cream); margin-bottom: 6px; }
.site-footer p { margin: 0 0 6px; color: #A6957A; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer .links { display: flex; gap: 20px; margin-top: 8px; }
.site-footer .links a { text-decoration: none; }
.site-footer .copy { color: #A6957A; margin-top: 4px; }

/* ---------- 토스트 / 팝업 ---------- */
.toast-stack {
  position: fixed;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 380px;
  max-width: calc(100vw - 32px);
  z-index: 50;
}
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 12px 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 1px solid #E9DDBF;
  outline-offset: -5px;
  font-size: 14px;
}
.toast .grow { flex-grow: 1; min-width: 0; }
.toast .sub { font-size: 12px; color: var(--muted); }
.toast .count { font-family: var(--font-head); font-size: 24px; color: var(--accent); }
.toast .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
}
.toast.simple { justify-content: center; text-align: center; }

main { position: relative; z-index: 1; }


/* ---------- 마우스 커서 (사이트 설정에서 올린 캐릭터) ---------- */
html.pw-cursor, html.pw-cursor * { cursor: var(--pw-cursor), auto !important; }
html.pw-cursor input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="file"]), html.pw-cursor textarea { cursor: text !important; }

/* ---------- 움직임: 페이지 진입 · 스크롤 리빌 ---------- */
@keyframes pw-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
main > .container { animation: pw-enter .45s cubic-bezier(.22, 1, .36, 1) both; }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(min(var(--i, 0), 8) * 55ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main > .container { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .g-tile, .g-tile .arrow { transition: none; }
}

/* ---------- 상태 ---------- */
.loading { color: var(--muted); font-size: 14px; padding: 24px 0; }
.skeleton { background: var(--line-faint); border-radius: var(--radius-pill); height: 14px; }

/* ---------- 반응형 (최소 대응) ---------- */
.search-link, .menu-btn { display: none; }
.tree-toggle { display: none; }
@media (max-width: 1024px) {
  .site-header .bar { padding: 0 20px; gap: 14px; flex-wrap: wrap; height: auto; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
  .search { width: 160px; }
  .hero { flex-direction: column; align-items: stretch; }
  .hero .media { width: 100%; height: 240px; }
  .card-grid, .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .tree, .toc { position: static; }
  .toc { display: none; }
  .admin-layout { grid-template-columns: 1fr; gap: 20px; }
  .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .admin-nav .label, .admin-nav hr { display: none; }
  .admin-nav a, .admin-nav button { width: auto; height: 36px; padding: 0 14px; font-size: 13px; background: var(--cream); }
  .admin-nav a[aria-current="page"], .admin-nav a[aria-current="page"]:hover { background: var(--wood-dark); color: var(--cream); }
  .editor-panes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header .bar { padding: 10px 16px; gap: 10px; }
  .plaque { height: 42px; padding: 0 14px; }
  .plaque .name { font-size: 20px; }
  .search { display: none; }
  .search-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--cream);
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--cream);
    cursor: pointer;
  }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 2px; order: 10; padding-top: 6px; border-top: 1px solid rgba(243, 228, 196, 0.25); }
  .bar.open .nav { display: flex; }
  .nav a { height: 42px; }
  .user-chip { order: 11; flex-basis: 100%; justify-content: space-between; }
  .bar:not(.open) .user-chip { display: none; }
  .hero h1 { font-size: 40px; }
  .hero .media { height: 200px; }
  .card-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr; }
  .container { padding: 24px 16px 48px; }
  .site-footer .body { padding: 28px 20px 24px; }
  .row-between { align-items: flex-start; }
  .page-title h1 { font-size: 30px; }
  .section-head h2 { font-size: 24px; }
  .tree-toggle { display: inline-flex; margin-bottom: 4px; }
  .tree { display: none; }
  .tree.open { display: flex; }
  .table .thead, .table .tr { min-width: max(var(--tmin, 0px), 560px); }
  .form-row.cat-row { grid-template-columns: minmax(0, 1fr) 104px 72px; gap: 8px; }
  .article-head { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
  .toast-stack { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .editor-title { font-size: 24px; }
}

/* ---------- 2차: 필터 · 패치노트 · 이벤트 · 명령어 ---------- */
.filter-row { display: flex; flex-wrap: wrap; }
.filter-row .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.pn-month { font-family: var(--font-head); font-size: 18px; color: var(--wood); margin-top: 8px; }
.pn-card.draft { border-style: dashed; }
.pn-head { display: flex; flex-direction: column; padding-bottom: 14px; border-bottom: 1px solid var(--line-faint); margin-bottom: 8px; }
.pn-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pn-head time { font-size: 13px; color: var(--muted); }
.pn-body { font-size: 14px; line-height: 1.75; }
.pn-body .pn-cat { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 15px; margin: 14px 0 6px; }
.pn-body ul { margin: 0 0 6px; padding-left: 4px; list-style: none; }
.pn-body ul ul { padding-left: 18px; }
.pn-body li { position: relative; padding-left: 16px; margin: 2px 0; }
.pn-body li::before { content: "ㆍ"; position: absolute; left: 0; color: var(--muted); }
.pn-body ul ul li::before { content: "–"; }
.pn-body p { margin: 6px 0; }
.pn-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0 6px;
}
.pn-body strong { color: var(--wood-dark); }
.ev-row { min-height: 64px; }
.icon-btn.heart.on { background: var(--card); }
.icon-btn.heart:hover { background: var(--accent); border-color: var(--accent); }
.icon-btn.heart:hover svg { stroke: var(--card); }
.icon-btn.heart.on:hover svg { fill: var(--card); }
.cmd-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--wood-dark);
}
.home-patch { display: flex; align-items: center; gap: 16px; }
.home-patch .list { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.home-patch a.item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-size: 14px; min-width: 0; }
.home-patch a.item .d { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.home-patch a.item .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 관리 본문이 표 + 폼을 나란히 두기엔 좁으면 한 단으로 */
@container (max-width: 1080px) {
  .admin-split, .admin-split.even { grid-template-columns: 1fr; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 1360px) {
    .admin-split, .admin-split.even { grid-template-columns: 1fr; }
  }
}

/* ---------- 3차: 통계 · 검색 결과 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; }
.stat .k { font-size: 12px; color: var(--label); letter-spacing: 1px; }
.stat .v { font-family: var(--font-head); font-size: 26px; color: var(--wood-dark); }
.sr-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-faint);
  text-decoration: none;
  color: inherit;
}
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: #F8F1E3; color: inherit; }
.sr-title { font-size: 16px; color: var(--wood-dark); }
.sr-meta { font-size: 12px; color: var(--muted); }
.sr-snip { font-size: 13px; color: var(--ink); line-height: 1.6; }
mark { background: #F5D98A; color: var(--wood-dark); border-radius: 3px; padding: 0 2px; }

/* ===================== 청록 한옥 디자인 (운영자 리디자인 · 2026-09-30) =====================
   위쪽 기본 스타일을 덮어씁니다. 선택자·인증 표시·DB 연결은 그대로입니다. */
a { color: var(--wood-dark); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
::selection { background: var(--cream); color: var(--wood-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  padding: 12px 24px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.site-header .tile-band { height: 7px; background: repeating-linear-gradient(90deg,var(--tile) 0 32px,var(--tile-light) 33px 34px,var(--tile) 35px 40px); }
.site-header .tile-edge { height: 5px; background: var(--card); opacity: .7; }
.site-header .bar { width: 100%; background: transparent; }
.site-header .gold-line, .site-header .wood-line { display: none; }
.plaque { padding: 0; height: auto; gap: 10px; border: 0; outline: 0; background: transparent; border-radius: 0; }
.penguin-mark { display: block; }
.penguin-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.plaque .name { color: var(--wood-dark); }
.nav { justify-content: center; }
.nav a { color: var(--label); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mint-wash); color: var(--wood-dark); }
.search { border-color: var(--line-faint); width: 184px; }
.search input { font-size: 12px; }
.container { padding-top: 44px; padding-bottom: 80px; }
.card { border-color: var(--line); outline: none; box-shadow: var(--paper-shadow); }
.btn { font-weight: 600; }
.btn.primary:hover, .btn.secondary:hover { background: var(--wood-dark); color: var(--card); }
.btn.ghost:hover { background: var(--mint-wash); border-color: var(--accent); }
.btn.icon { border-radius: 9px; }
.pill-info { border-color: var(--line-soft); background: var(--gold-wash); font-size: 12px; }
.hero { position: relative; gap: 38px; align-items: center; }
.hero .copy { flex: 1 1 44%; }
.hero h1 em { font-style: normal; position: relative; }
.hero #season-tag { color: var(--accent); }
.hero .info-pill { gap: 7px; }
.hero .info-pill .k { font-size: 12px; }
.hero .info-pill .v { font-size: 12px; font-weight: 600; }
.hero .info-pill.has-btn { padding-right: 5px; }
.hero .info-pill .btn.icon { width: 26px; height: 26px; border: 0; }
.hero-scene { flex: 1 1 53%; min-width: 0; margin: 0; background: var(--card); }
.hero-scene img { display: block; }
.hero-scene figcaption { position: absolute; color: var(--wood-dark); }
.scene-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 6px; }
.welcome-path { display: grid; grid-template-columns: 1.2fr repeat(3,1fr); align-items: center; }
.welcome-label { display: flex; align-items: center; gap: 14px; }
.welcome-label strong { display: block; font-family: var(--font-head); font-weight: 400; }
.welcome-label div > span { display: block; font-size: 12px; color: var(--muted); }
.mini-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  border: 1.5px solid var(--rose);
  padding: 5px;
  letter-spacing: 2px;
  transform: rotate(-5deg);
}
.welcome-path > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  border-left: 1px solid var(--line-faint);
  padding: 14px 16px;
  border-radius: 6px;
}
.welcome-path > a:hover { background: var(--mint-wash); }
.step-num { font-family: var(--font-head); }
.section-head { border: 0; padding: 0 0 4px; align-items: center; }
.section-head .title { gap: 12px; }
.section-kicker { display: block; color: var(--label); }
.section-head h2 { color: var(--wood-dark); }
.section-head > a { color: var(--label); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.g-tile { position: relative; }
.g-tile .row { align-items: center; }
.g-tile h3 { white-space: normal; }
.g-tile .n { font-size: 12px; background: var(--bg); border-radius: 6px; padding: 2px 6px; }
.g-tile p { white-space: normal; }
.g-tile .arrow { opacity: 1; transform: none; padding-top: 5px; }
.g-tile .guide-mark { display: grid; place-items: center; }
.g-tile:nth-child(4n/**/+2) .guide-mark { color: var(--amber); }
.g-tile:nth-child(4n/**/+3) .guide-mark { color: var(--wood); }
.g-tile:nth-child(4n/**/+4) .guide-mark { background: var(--mint-wash); color: var(--blue); }
.community .item { gap: 18px; }
.community .icon { border: 0; }
.home-patch { border-style: dashed; border-radius: 12px; box-shadow: none; padding: 15px 20px; background: transparent; }
.server-tour .media { border: 1px solid var(--line); background: var(--cream); border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; }
.server-tour .media > * { width: 100%; height: 100%; object-fit: cover; border: 0; }
.page-title { padding: 12px 0 0; }
.page-title h1 { font-size: 38px; color: var(--wood-dark); }
.page-title .seal { border-radius: 3px; background: var(--gold); transform: rotate(-8deg); }
.container.narrow { max-width: 1160px; }
.subtitle { color: var(--muted); line-height: 1.8; }
.input, .select, .textarea { border-radius: 11px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--mint-wash); }
.filter-row { gap: 9px; }
.filter-row .btn { min-height: 36px; }
.table .thead { background: var(--mint-wash); }
.table .tr { min-height: 68px; }
.table .tr:hover { background: var(--bg); }
.table .empty, .loading { padding: 32px 24px; line-height: 1.8; }
.notice-box { background: var(--gold-wash); border-color: var(--line-soft); border-radius: 12px; }
.container.guide-layout { max-width: 1440px; grid-template-columns: 232px minmax(0,1fr) 164px; gap: 28px; }
.guide-layout > article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 38px; box-shadow: var(--paper-shadow); }
.tree { padding: 19px 13px; }
.tree .head { color: var(--wood-dark); padding-bottom: 16px; margin-bottom: 10px; }
.tree .page, .tree .sec { border-radius: 8px; min-height: 35px; height: auto; padding-top: 6px; padding-bottom: 6px; }
.tree .page.active { background: var(--mint-wash); color: var(--accent); }
.toc { border-left: 2px solid var(--line); }
.article-head h1 { color: var(--wood-dark); }
.prose { line-height: 1.95; font-size: 16px; overflow-wrap: anywhere; }
.prose h2 { margin-top: 38px; color: var(--wood-dark); }
.prose h2::before { width: 5px; height: 23px; background: var(--gold); }
.prose blockquote { background: var(--mint-wash); border-color: var(--accent); }
.prose pre { max-width: 100%; overflow-x: auto; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 18px; }
.prose .table-wrap > table { margin: 0; min-width: 480px; }
.pn-card { padding: 27px 30px 16px; }
.pn-head { gap: 12px; }
.pn-head h2 { font-size: 26px; color: var(--wood-dark); }
.site-footer { margin-top: 28px; }
.site-footer .body { padding: 36px max(24px,calc((100vw - 1192px)/2)); color: var(--line); font-size: 12px; }
.site-footer .logo small { font-family: var(--font-body); font-size: 12px; margin-left: 12px; color: var(--line); }
.site-footer p, .site-footer .copy { color: var(--line); }
.site-footer .links a { color: var(--card); }
/* 개인정보 처리방침은 다른 고지와 구분되게 (굵게·색) — 국내 작성지침 관례 */
.site-footer .links a.privacy { color: #f0d49a; font-weight: 700; }
.admin-nav { box-shadow: none; }
.admin-nav a, .admin-nav button { border-radius: 9px; }
.form-card { border-color: var(--line); }
.login-card { box-shadow: var(--paper-shadow); }
@media (min-width:761px) and (max-width:1200px) {
  .site-header .bar { padding: 18px 24px; }
  .site-header .search { margin-left: auto; width: 220px; }
  .hero { gap: 24px; }
  .hero .copy { flex-basis: 48%; }
  .welcome-path > a { padding: 10px; gap: 7px; }
}
@media (max-width:1024px) {
  .hero { flex-direction: row; }
  .hero h1 { font-size: 38px; }
  .hero .copy { gap: 16px; }
  .hero-scene img { aspect-ratio: 1; }
  .welcome-path { grid-template-columns: repeat(3,1fr); }
  .welcome-label { grid-column: 1/-1; padding: 0 8px 8px; }
  .welcome-path > a { border: 0; background: var(--bg); }
  .container.guide-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:760px) {
  .site-header .bar { min-height: 76px; }
  .search-link, .menu-btn { border: 1px solid var(--line); border-radius: 11px; color: var(--wood-dark); background: var(--bg); }
  .site-header .nav { padding-top: 12px; margin-top: 10px; border-color: var(--line); justify-content: flex-start; }
  .site-header .nav a { height: 44px; }
  main .search { display: flex; max-width: 100%; }
  .container { padding: 26px 20px 48px; }
  .hero { flex-direction: column; padding-top: 0; gap: 26px; }
  .hero .copy { padding: 4px 0 0; }
  .hero-scene { padding: 7px; border-radius: 56px 20px 20px 20px; transform: none; }
  .hero-scene img { border-radius: 50px 15px 15px 15px; }
  .hero-scene figcaption { transform: none; }
  .welcome-label { padding-bottom: 8px; }
  .welcome-path > a { padding: 13px; justify-content: flex-start; }
  .welcome-path > a > :last-child { margin-left: auto; }
  .section-head > a { white-space: nowrap; font-size: 12px !important; }
  .g-tile .row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .g-tile .n { display: none; }
  .g-tile .guide-mark { border-radius: 11px; }
  .community .item { flex-wrap: wrap; gap: 14px; }
  .home-patch { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .home-patch .list { flex-basis: 100%; order: 3; }
  .home-patch > a { margin-left: auto; }
  .home-patch a.item .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .guide-layout > article { padding: 24px 20px; }
  .article-head h1, .page-title h1 { font-size: 30px; }
  .prose { font-size: 15px; }
  .pn-card { padding: 22px 20px; }
  .site-footer .logo small { display: block; margin: 6px 0 0; }
}
@media (max-width:360px) {
  .brand-sub { display: none; }
  .container { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* 삭제 등 위험한 동작은 초록 기본색과 구분되는 장밋빛 */
.icon-btn.danger, .form-error { color: var(--rose); }
.icon-btn.danger:hover { background: var(--rose); border-color: var(--rose); color: var(--card); }
#st-up { color: var(--rose) !important; }
.tile-grid > .loading { grid-column: 1 / -1; }

/* ---------- 홈: 마을 풍경 · 첫걸음 안내판 · 안내서 카드 · 사랑방 / 헤더 · 푸터 ---------- */
body { background: var(--bg); background-image: radial-gradient(#82654b0c .7px,transparent .7px); background-size: 5px 5px; color: var(--ink); }
.site-header { background: #fffcf5; position: relative; border-bottom: 1px solid var(--line); }
.site-header .tile-band, .site-header .tile-edge { display: none; }
.site-header .bar { max-width: 1360px; margin: auto; height: 94px; padding: 16px 36px; gap: 30px; }
.brand-sub { font-size: 11px; letter-spacing: .2px; color: #737866; }
.plaque .name { font-size: 28px; letter-spacing: -.7px; }
.penguin-mark { background: #eee8d8; border-radius: 50%; width: 49px; height: 49px; padding: 5px; }
.nav { gap: 8px; }
.nav a { border-radius: 0; padding: 0 10px; font-size: 14px; height: 48px; position: relative; font-weight: 600; }
.nav a:hover, .nav a[aria-current=page] { background: transparent; color: var(--wood-dark); }
.nav a[aria-current=page]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 35%;
  right: 35%;
  height: 3px;
  background: var(--gold);
  border-radius: 4px;
}
.search { border-radius: 6px; background: #f2eee3; }
.home-content { padding-top: 24px; gap: 64px; }
.hero {
  display: block;
  isolation: isolate;
  min-height: 615px;
  padding: 80px 54px 64px;
  width: calc(100vw - 48px);
  max-width: 1536px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #d9d1bc;
  border-radius: 8px;
  background: #eae9d9;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 12px; border: 1px solid #fff9e485; z-index: -1; pointer-events: none; }
.hero-edition { position: absolute; top: 25px; left: 54px; font-size: 11px; color: #626f5d; letter-spacing: 2px; z-index: 2; }
.hero .copy { display: flex; position: relative; z-index: 1; width: 520px; max-width: 50%; padding: 0; gap: 22px; align-items: flex-start; }
.hero #season-tag {
  padding: 0 10px;
  height: 25px;
  border: 1px solid #80907966;
  border-radius: 3px;
  background: transparent;
  letter-spacing: 1px;
  font-size: 12px;
}
.hero-eyebrow { font-size: 13px; color: #66745e; margin-bottom: -12px; letter-spacing: 3px; }
.hero h1 { font-size: clamp(48px,5vw,72px); line-height: 1.13; letter-spacing: -3px; color: #2d463b; }
.hero h1 em { color: #557356; }
.hero #tagline { color: #53604e; font-size: 16px !important; line-height: 1.9; }
.hero-scene {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 76%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  overflow: hidden;
}
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#eae9d9 0%,#eae9d9e8 15%,#eae9d95e 36%,transparent 57%),linear-gradient(0deg,#273e3a33,transparent 35%);
}
.hero-scene img { height: 100%; width: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; object-position: 66% 52%; }
.hero-scene figcaption {
  z-index: 2;
  background: #fffaf0e8;
  border: 1px solid #f5eed8;
  border-radius: 4px;
  left: auto;
  right: 30px;
  bottom: 25px;
  font-size: 12px;
  padding: 10px 15px;
  box-shadow: none;
  transform: none;
}
.hero .info-pill { border: 0; background: #fffdf2b8; height: 34px; padding: 0 8px; border-radius: 4px; }
.hero .info-pills { margin: 0; gap: 6px; }
.btn { border-radius: 5px; font-size: 14px; height: 47px; padding-left: 24px; padding-right: 24px; }
.btn.primary { background: var(--wood-dark); box-shadow: inset 0 0 0 3px #ffffff0f,0 3px 0 #21392f; }
.btn.secondary { background: #fffaf0b8; border-color: #b9b69e; }
.welcome-path {
  margin-top: -92px;
  position: relative;
  z-index: 3;
  background: #fffcf4;
  border-radius: 6px;
  border: 1px solid #cec5af;
  box-shadow: 0 7px 0 #ded6c3,0 18px 25px #3a46200a;
  min-height: 110px;
  padding: 22px 28px;
  gap: 16px;
}
.welcome-label strong { font-size: 21px; }
.welcome-label div>span { font-size: 12px; margin-top: 4px; }
.mini-stamp { background: #a96e5210; border-color: #aa6e52; color: #aa6e52; border-radius: 3px; font-size: 12px; }
.welcome-path>a { border-left: 1px solid #e3ddce; border-radius: 0; font-size: 14px; font-weight: 600; padding: 18px 16px; }
.step-num { font-size: 19px; color: #a99160; }
.section-head h2 { font-size: 34px; letter-spacing: -.8px; }
.section-head .seal { height: 42px; width: 3px; background: var(--gold); border-radius: 0; }
.section-kicker { font-size: 12px; letter-spacing: 1px; margin-bottom: 8px; }
.section-head>a { font-size: 13px !important; background: #e9e4d5; border: 0; padding: 10px 15px; border-radius: 5px; }
.tile-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; counter-reset: guidecard; }
.g-tile {
  counter-increment: guidecard;
  min-height: 210px;
  padding: 28px;
  border-radius: 6px;
  background: linear-gradient(120deg,#fffdf7,#f7f1e2);
  border: 1px solid #d9d1bc;
  box-shadow: 0 4px 0 #e4ddca;
  overflow: hidden;
  gap: 11px;
}
.g-tile::before {
  content: "안내서 / " counter(guidecard,decimal-leading-zero);
  display: block;
  font-size: 11px;
  color: #8a856f;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.g-tile::after { content: ""; position: absolute; right: -14px; bottom: -18px; border: 1px solid #a5996d26; border-radius: 50%; pointer-events: none; }
.g-tile .guide-mark {
  position: absolute;
  right: 24px;
  bottom: 25px;
  width: 65px;
  height: 65px;
  background: #e7ead9;
  border: 1px solid #b5c1a666;
  border-radius: 50%;
  color: #5a7454;
  box-shadow: inset 0 0 0 5px #ffffff70;
}
.g-tile:nth-child(4n/**/+2) .guide-mark { background: #efe2c6; }
.g-tile:nth-child(4n/**/+3) .guide-mark { background: #e0e9e5; }
.g-tile h3 { font-size: 24px; }
.g-tile p { font-size: 13px; color: #6a715f; line-height: 1.8; }
.g-tile .row { justify-content: flex-start; gap: 12px; }
.g-tile .arrow { font-size: 12px; color: #7c775b; letter-spacing: .2px; }
.g-tile:hover { transform: translateY(-4px); border-color: #8f9f80; box-shadow: 0 7px 0 #dad6c2; }
.community { gap: 18px; }
.community .item { border-radius: 6px; padding: 30px; background: #e3e8db; border-color: #cbd3bb; box-shadow: none; }
.community .item:nth-child(2) { background: #eae2cb; border-color: #d5c8a8; }
.community h3 { font-size: 25px; }
.community p { font-size: 13px; color: #626e59; }
.community .btn { font-size: 12px; border-radius: 5px; padding: 0 18px; }
.site-footer { border-top: 0; }
.site-footer .gold-line { height: 7px; background: repeating-linear-gradient(90deg,#70846c 0 15px,#536b56 15px 17px); }
.site-footer .body { background: #30463c; padding-top: 45px; padding-bottom: 42px; }
.site-footer .logo { font-size: 27px; }
@media (min-width:761px) and (max-width:1200px) {
  .site-header .bar { height: auto; flex-wrap: wrap; gap: 12px; }
  .site-header .nav { order: 5; flex-basis: 100%; justify-content: center; }
  .hero { padding-left: 36px; min-height: 590px; }
  .hero-edition { left: 36px; }
  .hero .copy { max-width: 55%; }
  .hero h1 { font-size: 58px; }
  .hero-scene { width: 80%; }
  .hero-scene figcaption { max-width: 36%; font-size: 12px; }
  .welcome-path { gap: 8px; padding: 20px; }
  .welcome-path>a { font-size: 12px; padding: 10px; }
  .tile-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .g-tile { padding: 22px; }
  .g-tile h3 { font-size: 22px; }
  .g-tile .guide-mark { right: 15px; bottom: 20px; width: 50px; height: 50px; }
  .g-tile p { max-width: 72%; }
}
@media (max-width:760px) {
  .site-header .bar { height: 78px; padding: 12px 20px; gap: 8px; flex-wrap: wrap; }
  .site-header .bar.open { height: auto; }
  .plaque .name { font-size: 24px; }
  .brand-sub { font-size: 11px; }
  .penguin-mark { width: 40px; height: 40px; }
  .nav a[aria-current=page]::after { display: none; }
  .site-header .nav a[aria-current=page] { background: #e5eadc; border-radius: 4px; }
  .home-content { padding: 14px 18px 42px; gap: 38px; }
  .hero { width: 100%; max-width: none; min-height: 740px; padding: 63px 25px 290px; border-radius: 5px; overflow: hidden; }
  .hero-edition { left: 25px; top: 24px; font-size: 11px; letter-spacing: 1.3px; }
  .hero .copy { width: 100%; max-width: none; gap: 18px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: 2px; }
  .hero h1 { font-size: 51px; line-height: 1.12; letter-spacing: -2px; }
  .hero #tagline { font-size: 13px !important; }
  .hero #season-tag { font-size: 12px; }
  .hero-scene { width: 100%; height: 370px; top: auto; bottom: 0; }
  .hero-scene img { object-position: 55% 60%; aspect-ratio: auto; }
  .hero-scene::after { background: linear-gradient(180deg,#eae9d9 0%,#eae9d94d 27%,transparent 52%); }
  .hero-scene figcaption { bottom: 17px; left: 18px; right: auto; padding: 7px 9px; font-size: 12px; }
  .hero .btn { height: 41px; padding: 0 18px; font-size: 12px; }
  .hero .info-pills { flex-wrap: wrap; }
  .hero .info-pill { height: 30px; }
  .hero .info-pill .v { font-size: 12px; }
  .hero .info-pill .k { font-size: 12px; }
  .welcome-path { margin-top: 0; grid-template-columns: 1fr; padding: 23px; gap: 8px; min-height: 0; }
  .welcome-label { padding: 0 0 13px; }
  .welcome-path>a { border: 0; background: #f1edde; padding: 13px; font-size: 13px; border-radius: 3px; }
  .welcome-label strong { font-size: 21px; }
  .section-head h2 { font-size: 25px; }
  .section-head .seal { height: 35px; }
  .section-kicker { font-size: 12px; letter-spacing: .3px; }
  .section-head>a { padding: 7px 9px; font-size: 12px !important; }
  .tile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .g-tile { padding: 17px; gap: 9px; }
  .g-tile::before { font-size: 11px; margin-bottom: 1px; }
  .g-tile h3 { font-size: 20px; }
  .g-tile p { font-size: 12px; }
  .g-tile .guide-mark { right: 14px; bottom: 16px; width: 47px; height: 47px; }
  .g-tile .arrow { font-size: 12px; margin-top: auto; padding-bottom: 17px; }
  .g-tile::after { width: 92px; height: 92px; }
  .community .item { padding: 24px; }
  .community h3 { font-size: 23px; }
  .community .btn { margin-left: 66px; }
  .site-footer .body { padding: 30px 24px; }
  .btn { height: 44px; }
}
@media (max-width:360px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 44px; }
  .hero-edition { left: 20px; }
  .g-tile { padding: 14px; }
  .g-tile h3 { font-size: 18px; }
  .section-head h2 { font-size: 22px; }
}
.btn.icon { padding: 0; flex-shrink: 0; }
@media (max-width:760px) {
  .g-tile { min-height: 205px; }
}

/* 첫 화면 그림: 설정을 읽은 뒤 부드럽게 나타남 */
#hero-img { opacity: 0; transition: opacity .5s ease; }
#hero-img.loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #hero-img { transition: none; } }

/* ---------- 컬러 소품 아이콘 (illustrations.js) ---------- */
.g-tile .guide-mark, .g-tile:nth-child(n) .guide-mark {
  width: 86px;
  height: 86px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  right: 18px;
  bottom: 17px;
}
.g-tile .guide-mark svg { width: 82px; height: 82px; filter: drop-shadow(0 3px 1px #534d2b12); }
.g-tile::after { width: 120px; height: 120px; background: #d5d4b918; border-color: #b7b18e26; }
.g-tile p { max-width: 67%; }
.community .icon { width: 66px; height: 66px; background: transparent; box-shadow: none; border-radius: 0; }
.community .icon svg { width: 62px; height: 62px; }
@media (max-width:760px) {
  .g-tile .guide-mark, .g-tile:nth-child(n) .guide-mark { width: 62px; height: 62px; right: 10px; bottom: 11px; }
  .g-tile .guide-mark svg { width: 60px; height: 60px; }
  .g-tile p { max-width: 100%; }
  .community .icon { width: 56px; height: 56px; }
  .community .icon svg { width: 54px; height: 54px; }
  .community .grow { flex-basis: calc(100% - 74px); }
}
.nav-illustration { display: inline-flex; width: 24px; height: 26px; align-items: center; margin-right: 5px; vertical-align: middle; }
.nav-illustration svg { width: 24px; height: 24px; }
.site-header .nav a { display: inline-flex; align-items: center; padding-left: 7px; padding-right: 7px; }
@media (min-width:1201px) and (max-width:1350px) {
  .site-header .bar { gap: 15px; }
  .site-header .search { width: 150px; }
  .brand-sub { font-size: 11px; }
}

/* ---------- 글 속 그림: 글줄 그림(아이콘)·표 칸 ---------- */
/* 표 칸의 한글은 단어 중간에서 끊지 않음 (예: "1등급"이 "1등/급"으로 갈라지지 않게) */
.prose th, .prose td { word-break: keep-all; overflow-wrap: break-word; }
/* 글 사이·표 칸 안의 그림: 글줄 가운데에 맞춰 놓고, 불러오는 동안은 작은 자리만 */
.prose img.pw-inline { display: inline-block; vertical-align: middle; margin: 2px 3px 2px 0; }
.prose img.pw-inline:not([src]) { width: 24px; height: 24px; max-width: none; border: 1px dashed var(--line); border-radius: 4px; background: var(--cream); }
/* 64px 이하 작은 그림(아이템 아이콘): 테두리·둥근 모서리 없이 또렷하게, 최대 32px */
.prose img.pw-icon { border: 0; border-radius: 0; background: none; image-rendering: pixelated; max-height: 32px; width: auto; }
/* 아이콘과 바로 뒤 이름은 한 줄에 */
.prose .pw-pair { white-space: nowrap; }
