@charset "utf-8";
/* ============================================================================
   카네보 아카데미 · site_047 · vue-047
   Archetype: "Midcentury Atomic" — 머스타드/틸/크림 미드센추리 · 기하 악센트 · 복고 모던
   Light theme only · comfortable density · radius 8px · hairline borders · soft shadow
   이 한 장이 홈 + 게시판목록 + 게시판본문 + 댓글 전부 담당.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   :root tokens
   ------------------------------------------------------------------------- */
:root {
  /* core palette (지정값 그대로 유지) */
  --bg: #f5f3ef;
  --surface: #fdfdfc;
  --surface-alt: #f0ede5;
  --text: #28241a;
  --muted: #7d745e;
  --border: #e4e0d8;
  --hair: #eeece7;
  --accent: #be922d;
  --accent-dark: #9d7925;
  --accent-2: #4294a9;
  --accent-3: #91c23d;
  --on-accent: #1a1a1a;

  /* derived / soft tints (저채도 보조, 미드센추리 톤) */
  --accent-soft: #f4ead2;
  --accent-2-soft: #dcebef;
  --accent-3-soft: #e7f1d5;
  --text-soft: #4a4434;
  --shadow-soft: 0 1px 2px rgba(40, 36, 26, .05), 0 6px 18px rgba(40, 36, 26, .06);
  --shadow-card: 0 1px 2px rgba(40, 36, 26, .04), 0 10px 28px rgba(40, 36, 26, .08);
  --shadow-pop: 0 14px 40px rgba(40, 36, 26, .14);

  /* radius / spacing */
  --r: 8px;
  --r-sm: 6px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* fonts (head에서 로드됨) */
  --font-head: "DM Serif Display", "Gowun Batang", serif;
  --font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, Consolas, monospace;

  /* layout width */
  --shell: 1120px;

  /* transitions */
  --ease: cubic-bezier(.4, .14, .3, 1);
}

/* ---------------------------------------------------------------------------
   A) Global / reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 은은한 미드센추리 기하 점 패턴 (단색 면 분할 대용, 매우 옅게) */
  background-image: radial-gradient(var(--hair) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color .18s var(--ease);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  word-break: keep-all;
}
h1 { font-size: clamp(28px, 4.4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
hr { border: 0; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1em; color: var(--text); }

/* 컨테이너 */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 22px;
}
.shell > .col,
.col {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* skip link */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 18px;
  border-radius: 0 0 var(--r) 0;
  font-weight: 600;
  font-size: 14px;
}
.skip:focus { left: 0; }

/* focus-visible (AA 접근성) */
:focus-visible {
  outline: 2.5px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 3px;
}
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--accent-2);
  outline-offset: 2px;
}

.sound_only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

#main { display: block; }

/* ---------------------------------------------------------------------------
   B) Header / nav / footer
   ------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--hair);
  /* 상단 미드센추리 악센트 라인 (틸/머스타드/그린 단색 분할) */
  background-image: linear-gradient(
    90deg,
    var(--accent) 0 33.33%,
    var(--accent-2) 33.33% 66.66%,
    var(--accent-3) 66.66% 100%
  );
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: top left;
}

.masthead-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand .logo {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(40,36,26,.12));
}
.brand .name {
  font-family: var(--font-head);
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .name b {
  font-weight: 400;
  color: var(--accent-dark);
}

/* 카테고리 네비 (== .main-nav in spec) */
.cats {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.cats a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.cats a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.cats a.active,
.cats a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
}
.cats a.active:hover { background: var(--accent-dark); color: var(--on-accent); }

/* search */
.search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0 12px;
  height: 40px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.search:focus-within {
  background: var(--surface);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-2-soft);
}
.search .ico {
  width: 16px; height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}
.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 160px;
  padding: 0 8px;
  font-size: 14px;
  color: var(--text);
}
.search input::placeholder { color: var(--muted); }
.search kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  line-height: 1;
  flex-shrink: 0;
}

/* footer */
footer.site {
  margin-top: 64px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  /* 하단 미드센추리 악센트 라인 */
  background-image: linear-gradient(
    90deg,
    var(--accent-3) 0 33.33%,
    var(--accent-2) 33.33% 66.66%,
    var(--accent) 66.66% 100%
  );
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: top left;
  padding: 40px 0 48px;
}
footer.site .col { max-width: 820px; }
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-bottom: 16px;
}
footer.site nav a {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
footer.site nav a:hover { border-color: var(--accent); color: var(--accent-dark); }
footer.site .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  margin: 0 0 4px;
}
footer.site .copy {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   C) Home + shared content (index.php / gb_webzine.php)
   ------------------------------------------------------------------------- */
.shell > .col { padding: 34px 0 8px; }

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--accent-dark); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }

/* LEAD / featured */
.lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 32px 34px;
  position: relative;
  overflow: hidden;
}
/* atomic 기하 악센트: 좌상단 사선 단색 칩 */
.lead::before {
  content: "";
  position: absolute;
  top: -42px; left: -42px;
  width: 110px; height: 110px;
  background: var(--accent-3-soft);
  border-radius: 0 0 70% 0;
  z-index: 0;
}
.lead > * { position: relative; z-index: 1; }
.lead .kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  margin: 0 0 14px;
}
.lead h1 {
  margin: 0 0 .35em;
  font-size: clamp(28px, 4.2vw, 42px);
}
.lead h1 a { color: inherit; }
.lead h1 a:hover { color: var(--accent-dark); }
.lead .byline {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 20px;
  font-family: var(--font-mono);
}
.lead .media {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 0 18px;
  background: var(--surface-alt);
}
.lead .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lead .excerpt {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0;
}

.dot { color: var(--border); margin: 0 2px; }

/* divider */
hr.divider {
  height: 1px;
  background: var(--hair);
  margin: 34px 0;
  position: relative;
}
hr.divider::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: -16px 0 0 var(--accent-2), 16px 0 0 var(--accent-3);
}

/* section heads */
section { margin: 0 0 6px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}
.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 28px);
}
.section-head .more {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}
.section-head .more:hover { color: var(--accent); }

/* article-block (alternating media + body) */
.article-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
}
.article-block:last-child { border-bottom: 0; }
.article-block.reverse { grid-template-columns: 1fr 280px; }
.article-block.reverse .ab-media { order: 2; }
.article-block.reverse .ab-body { order: 1; }

.ab-media .media,
.article-block .media {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: var(--shadow-soft);
}
.ab-media .media img,
.article-block .media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.article-block:hover .media img { transform: scale(1.035); }

.ab-body { min-width: 0; }
.ab-body h3 { margin: 0 0 .35em; font-size: clamp(18px, 2.2vw, 23px); }
.ab-body h3 a,
.ab-body .wz-title a { color: var(--text); }
.ab-body h3 a:hover,
.ab-body .wz-title a:hover { color: var(--accent-dark); }
.ab-body .wz-title { margin: 0 0 .35em; font-size: clamp(20px, 2.6vw, 27px); }
.ab-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 12px;
}
.ab-body .meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* badges */
.badge-row { margin-bottom: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #e9d9b3;
  border-radius: var(--r-sm);
  padding: 3px 9px;
  line-height: 1.3;
  white-space: nowrap;
}
.badge.tip {
  color: #2f6b7a;
  background: var(--accent-2-soft);
  border-color: #c2dbe2;
}

/* index list (compact rows) */
.index-list { margin: 0; }
.index-list li {
  border-bottom: 1px solid var(--hair);
}
.index-list li:last-child { border-bottom: 0; }
.index-list .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 6px;
  min-width: 0;
  transition: background .15s var(--ease);
  border-radius: var(--r-sm);
}
.index-list li:hover .row { background: var(--surface); }
.index-list .row .badge { flex-shrink: 0; }
.index-list .row .title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 15.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.index-list .row .title:hover { color: var(--accent-dark); }
.index-list .row .rmeta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.hm-comment-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* rail-index widget (gb_render_rail) */
.rail-index {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px;
  margin-top: 8px;
}
.rail-index .section-head { border-bottom-width: 2px; margin-bottom: 8px; }

/* col actions */
.col-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* buttons (shared) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }

.btn.primary,
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-soft);
}
.btn.primary:hover,
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-accent);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------------------------------------------------------------------------
   D) Board list (list.skin.php)
   ------------------------------------------------------------------------- */
.board-layout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 28px 28px;
  margin-bottom: 26px;
}
.board-layout .section-head { margin-bottom: 4px; }
.board-h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.board-layout .index-list { margin-top: 6px; }

/* pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 26px 0 6px;
}
.pager a,
.pager strong,
.pager span,
.pager .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.pager a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.pager .current,
.pager strong,
.pager [aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* board actions + search */
.board-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.board-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.board-search select,
.board-search input[type="text"] {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 0 12px;
  font-size: 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.board-search select { cursor: pointer; }
.board-search input[type="text"] { min-width: 180px; }
.board-search select:focus,
.board-search input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-2-soft);
}
.board-search input[type="text"]::placeholder { color: var(--muted); }
.board-search .btn { height: 42px; }
.board-actions > .btn-primary { height: 42px; }

/* ---------------------------------------------------------------------------
   E) Board view (view.skin.php)
   ------------------------------------------------------------------------- */
.hm-board-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 34px 36px 30px;
  margin-bottom: 26px;
}
.hm-view-head {
  border-bottom: 2px solid var(--text);
  padding-bottom: 20px;
  margin-bottom: 26px;
}
.hm-board-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  margin: 0 0 14px;
}
.hm-view-head h1 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3.6vw, 38px);
}
.hm-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.hm-view-meta span { display: inline-flex; align-items: center; }
.hm-view-meta span + span { position: relative; padding-left: 18px; }
.hm-view-meta span + span::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* attachments */
.hm-view-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.hm-view-files a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.hm-view-files a::before {
  content: "↓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-weight: 700;
}
.hm-view-files a:hover { color: var(--accent-dark); }
.hm-view-files a span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* content body — 가독성 최우선 line-height >= 1.8 */
.hm-view-content {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding: 4px 0 8px;
}
.hm-view-content p { margin: 0 0 1.3em; }
.hm-view-content img {
  border-radius: var(--r);
  margin: 1.2em auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.hm-view-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #d9b86c;
}
.hm-view-content a:hover { color: var(--accent); }
.hm-view-content h1,
.hm-view-content h2,
.hm-view-content h3 { margin-top: 1.4em; }
.hm-view-content ul,
.hm-view-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.hm-view-content ul li { list-style: disc; margin-bottom: .4em; }
.hm-view-content ol li { list-style: decimal; margin-bottom: .4em; }
.hm-view-content blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
  font-style: italic;
}
.hm-view-content pre,
.hm-view-content code {
  font-family: var(--font-mono);
  font-size: .9em;
}
.hm-view-content pre {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.6;
}
.hm-view-content code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
.hm-view-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.3em 0;
  font-size: 14.5px;
}
.hm-view-content th,
.hm-view-content td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
}
.hm-view-content th { background: var(--surface-alt); font-weight: 600; }

/* vote */
.hm-view-vote {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 6px;
}
.hm-view-vote a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.hm-view-vote a:first-child:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.hm-view-vote a:last-child:hover {
  border-color: var(--accent-2);
  background: var(--accent-2-soft);
  color: #2f6b7a;
}

/* prev / next neighbor */
.hm-view-neighbor {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 30px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--hair);
}
.hm-view-neighbor a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}
.hm-view-neighbor a:hover { background: var(--surface-alt); }
.hm-view-neighbor a span {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  width: 54px;
}
.hm-view-neighbor a strong {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-view-neighbor a:hover strong { color: var(--accent-dark); }

/* view actions footer */
.hm-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.hm-view-actions a {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.hm-view-actions a:hover { border-color: var(--accent); color: var(--accent-dark); }
.hm-view-actions a[href*="delete"]:hover { border-color: #c0563f; color: #c0563f; }
.hm-view-actions a.is-primary {
  margin-left: auto;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-soft);
}
.hm-view-actions a.is-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-accent);
}

/* ---------------------------------------------------------------------------
   F) Comments (view_comment.skin.php + core #bo_vc / #bo_vc_w)
   ------------------------------------------------------------------------- */
.cmt_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 16px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.cmt_btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.cmt_btn.cmt_btn_op { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.cmt_btn .total b { font-family: var(--font-head); font-weight: 400; }
.cmt_btn .cmt_more::after {
  content: "▾";
  font-size: 12px;
  color: var(--muted);
}

/* comment list container */
#bo_vc {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}
#bo_vc > h2 {
  font-size: 19px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}
#bo_vc article {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
}
#bo_vc article:first-of-type { border-top: 0; padding-top: 0; }

.pf_img { flex-shrink: 0; }
.pf_img img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.cm_wrap { flex: 1 1 auto; min-width: 0; }
.cm_wrap > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.cm_wrap > header h2 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.cm_wrap > header > span,
.bo_vc_hdinfo {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.bo_vc_hdinfo .fa { margin-right: 3px; color: var(--accent); }
.bo_vc_hdinfo time { color: var(--muted); }

.cmt_contents {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.cmt_contents p { margin: 0; }
.cmt_contents img { display: inline-block; vertical-align: middle; margin-right: 5px; }

/* comment option menu */
.bo_vl_opt { position: relative; flex-shrink: 0; align-self: flex-start; }
.btn_cm_opt {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.btn_cm_opt:hover { background: var(--surface-alt); border-color: var(--border); color: var(--text); }
.bo_vc_act {
  display: none;
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 10;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  overflow: hidden;
}
.bo_vc_act li { border: 0; }
.bo_vc_act li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
}
.bo_vc_act li a:hover { background: var(--surface-alt); color: var(--accent-dark); }

#bo_vc_empty {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  padding: 24px 0;
  margin: 0;
}

/* comment write form */
#bo_vc_w,
aside.bo_vc_w {
  max-width: 820px;
  margin: 18px auto 0;
}
aside#bo_vc_w {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 28px 26px;
}
aside#bo_vc_w > h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
/* inline edit/reply slots inside comment article */
span.bo_vc_w { display: block; }

#fviewcomment { display: block; }
#fviewcomment textarea#wr_content {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 13px 15px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
#fviewcomment textarea#wr_content:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-2-soft);
}
#fviewcomment textarea#wr_content::placeholder { color: var(--muted); }

#char_cnt {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 4px;
  font-weight: 400;
}
#char_cnt #char_count { color: var(--accent-dark); font-weight: 600; }

.bo_vc_w_wr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.bo_vc_w_info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bo_vc_w_info .frm_input {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 0 12px;
  font-size: 14px;
  max-width: 170px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.bo_vc_w_info .frm_input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-2-soft);
}

.btn_confirm {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.secret_cm,
.chk_box {
  display: inline-flex;
  align-items: center;
}
.secret_cm label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}
.secret_cm .selec_chk { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.btn_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: background .18s var(--ease), transform .12s var(--ease);
}
.btn_submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn_submit:active { transform: translateY(1px); }
.btn_submit:disabled { opacity: .6; cursor: not-allowed; }

/* generic gnuboard captcha tidy */
#captcha, .captcha { margin: 4px 0; }

/* ---------------------------------------------------------------------------
   RESPONSIVE — 5 단계 + reduced-motion
   ------------------------------------------------------------------------- */

/* FHD */
@media (min-width: 1600px) {
  :root { --shell: 1320px; }
  .shell > .col,
  .col,
  footer.site .col,
  #bo_vc,
  #bo_vc_w,
  aside.bo_vc_w { max-width: 880px; }
  h1 { font-size: clamp(32px, 4vw, 50px); }
  .lead h1 { font-size: clamp(32px, 4vw, 48px); }
}

/* QHD */
@media (min-width: 2400px) {
  :root { --shell: 1720px; }
  body { font-size: 17px; }
  .shell > .col,
  .col,
  footer.site .col,
  #bo_vc,
  #bo_vc_w,
  aside.bo_vc_w { max-width: 940px; }
}

/* 태블릿 가로 이하 */
@media (max-width: 1024px) {
  .article-block,
  .article-block.reverse {
    grid-template-columns: 240px 1fr;
  }
  .article-block.reverse .ab-media { order: 1; }
  .article-block.reverse .ab-body { order: 2; }
  .masthead-inner { gap: 16px; }
  .search input { width: 130px; }
}

/* 태블릿 세로 / 모바일 */
@media (max-width: 768px) {
  h1 { font-size: clamp(24px, 7vw, 32px); }

  .masthead { background-size: 100% 3px; }
  .masthead-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }
  .brand { order: 1; }

  /* nav-toggle 자리: head.php JS는 .cats를 직접 토글하지 않음.
     모바일에서 카테고리 가로 스크롤 칩으로 처리(가로 스크롤 금지 위배 없음 — 컨테이너 내부 스크롤). */
  .cats {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }
  .cats::-webkit-scrollbar { height: 4px; }
  .cats::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  .search {
    order: 2;
    flex: 1 1 auto;
    width: auto;
  }
  .search input { width: 100%; }

  .shell { padding: 0 16px; }
  .shell > .col { padding: 22px 0 4px; }

  .lead { padding: 24px 22px 26px; }
  .lead::before { width: 78px; height: 78px; top: -30px; left: -30px; }

  .article-block,
  .article-block.reverse {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ab-media .media img,
  .article-block .media img { aspect-ratio: 16 / 9; }

  .board-layout { padding: 20px 18px 22px; }
  .hm-board-view { padding: 24px 20px 22px; }
  .hm-view-content { font-size: 16px; }

  .board-actions { flex-direction: column; align-items: stretch; }
  .board-search { width: 100%; }
  .board-search input[type="text"] { flex: 1 1 auto; min-width: 0; }
  .board-actions > .btn-primary { width: 100%; }

  #bo_vc { padding: 20px 18px; }
  aside#bo_vc_w { padding: 20px 18px; }
  .bo_vc_w_wr { flex-direction: column; align-items: stretch; }
  .btn_confirm { justify-content: space-between; }
  .btn_submit { flex: 1 1 auto; }
}

/* 모바일 소형 */
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .brand .name { font-size: 20px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head .more { align-self: flex-end; }

  .index-list .row {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 12px 4px;
  }
  .index-list .row .title {
    flex: 1 1 100%;
    order: 2;
    white-space: normal;
  }
  .index-list .row .badge { order: 1; }
  .index-list .row .rmeta { order: 3; }

  .lead h1 { font-size: clamp(22px, 8vw, 30px); }

  .hm-view-actions { gap: 6px; }
  .hm-view-actions a { padding: 8px 14px; font-size: 13px; }
  .hm-view-actions a.is-primary { margin-left: 0; width: 100%; justify-content: center; }

  .hm-view-neighbor a { flex-direction: column; align-items: flex-start; gap: 3px; }
  .hm-view-neighbor a span { width: auto; }
  .hm-view-neighbor a strong { white-space: normal; }

  .hm-board-view,
  .board-layout,
  #bo_vc,
  aside#bo_vc_w { padding-left: 14px; padding-right: 14px; }

  #bo_vc article { gap: 10px; }
  .pf_img img { width: 38px; height: 38px; }

  .bo_vc_w_info .frm_input { max-width: none; flex: 1 1 100%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .article-block:hover .media img { transform: none; }
  .btn:active,
  .btn_submit:active { transform: none; }
}
