@charset "utf-8";
/* =====================================================================
   Site 013 — anotherdomllain.com  (한들마을 포털)
   Archetype: "Midcentury Atomic"
   머스타드/틸/크림 미드센추리 · 기하 악센트 · 복고 모던
   Light theme only · radius 8px · hairline borders · soft shadow
   이 한 장이 홈 + 게시판목록 + 게시판본문 + 댓글 전부를 담당한다.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. 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;

  /* 보조 명도 */
  --accent-soft: #f4ead0;   /* 머스타드 틴트 */
  --accent2-soft: #dfeef2;  /* 틸 틴트 */
  --accent3-soft: #e7f2d4;  /* 그린 틴트 */
  --text-soft: #4d4636;

  /* fonts */
  --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 */
  --shell: 1180px;

  /* spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

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

  /* shadow (soft) */
  --sh-1: 0 1px 2px rgba(40, 36, 26, .05);
  --sh-2: 0 4px 14px rgba(40, 36, 26, .07);
  --sh-3: 0 10px 30px rgba(40, 36, 26, .10);

  /* timing */
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------------------------------------------------------------------
   2. GLOBAL / RESET
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  /* atomic geometric backdrop — 아주 은은한 기하 점/사선 */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(190, 146, 45, .05) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(66, 148, 169, .04) 1px, transparent 0);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  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;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
}
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(20px, 2.4vw, 26px); }
h3 { font-size: clamp(17px, 1.8vw, 21px); }

p { margin: 0 0 var(--sp-3); }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

hr { border: 0; border-top: 1px solid var(--hair); margin: var(--sp-5) 0; }

/* container */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

/* 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: 700;
  font-size: 14px;
}
.skip:focus {
  left: 0;
  color: var(--on-accent);
}

/* focus visibility */
:focus-visible {
  outline: 2.5px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* main */
main#main { display: block; }

/* ---------------------------------------------------------------------
   3. SHARED BUTTONS
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease),
              color .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent-dark); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-accent);
  box-shadow: var(--sh-2);
}

.btn-secondary {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--accent2-soft);
  border-color: var(--accent-2);
  color: var(--text);
}

/* ---------------------------------------------------------------------
   4. HEADER / NAV / FOOTER
   ------------------------------------------------------------------- */
header {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* top band — brand + utility */
.topband {
  background: var(--surface);
  border-bottom: 1px solid var(--hair);
}
.topband .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}
.brand .mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--accent);
  padding: 2px;
  box-shadow: var(--sh-1);
  /* 미드센추리 기하 악센트 ring */
  outline: 3px solid var(--accent-soft);
  outline-offset: -3px;
}
.brand .names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand .site {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand .tag {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* utility nav */
nav.util {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
nav.util a {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  transition: all .15s var(--ease);
}
nav.util a:hover {
  border-color: var(--accent-2);
  background: var(--accent2-soft);
  color: var(--text);
}
nav.util a:last-child {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: var(--on-accent);
}
nav.util a:last-child:hover {
  background: var(--accent-dark);
  color: var(--on-accent);
}

/* search band */
.searchband {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--hair);
  /* subtle teal hairline strip on top — atomic detail */
  box-shadow: inset 0 3px 0 var(--accent-2);
}
.searchband .shell { padding-block: var(--sp-5); }

.search-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.search-block {
  flex: 1 1 420px;
  min-width: 0;
}
.search-label {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--accent-dark);
  margin-bottom: var(--sp-2);
}
.search-form {
  display: flex;
  gap: var(--sp-2);
}
.search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 15px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-search {
  flex: 0 0 auto;
  padding-inline: 22px;
}
.search-hint {
  margin: var(--sp-2) 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* quick links */
nav.quick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  flex: 0 0 auto;
  align-self: flex-end;
}
nav.quick a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all .15s var(--ease);
}
nav.quick a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* GNB — main nav */
nav.gnb {
  background: var(--surface);
  border-top: 1px solid var(--hair);
}
nav.gnb .shell {
  position: relative;
  padding-block: 0;
}
.menu-toggle {
  display: none;
  width: 100%;
  margin: var(--sp-3) 0;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

#gnb-menu-013 {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2px;
}
#gnb-menu-013 > li { display: flex; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: -0.01em;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.nav-link:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--accent2-soft);
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--accent-2);
}

/* footer */
footer {
  margin-top: var(--sp-8);
  background: var(--surface);
  border-top: 4px solid var(--accent);
  /* atomic geometric foot strip */
  box-shadow: inset 0 -6px 0 var(--surface-alt);
}
footer .shell {
  padding-block: var(--sp-7) var(--sp-6);
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--hair);
}
.foot-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 4px 0;
}
.foot-nav a:hover { color: var(--accent-dark); }
.foot-meta {
  max-width: 70ch;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}
.foot-label {
  margin: var(--sp-3) 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------------------------------------------------------------------
   5. HOME (index.php + gb_webzine render functions)
   ------------------------------------------------------------------- */
.page-h1 {
  margin: var(--sp-7) 0 var(--sp-5);
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.14;
}
.page-h1 .sub {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.003em;
  line-height: 1.5;
}

/* portal grid (Naver-style 4-col → our comfortable 3-col base) */
.portal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.portal .span2 { grid-column: span 2; }

/* box card */
.box {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.box:hover { box-shadow: var(--sh-2); }

.box-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--hair);
}
/* atomic geometric "bar" marker — square chip */
.box-head .bar {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 2px var(--surface);
  outline: 1px solid var(--accent-dark);
}
.box-head .bar.red { background: var(--accent-2); outline-color: #2f6f80; }
.box-head .bar.green { background: var(--accent-3); outline-color: #6c9a26; }

.box-title {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.2;
  color: var(--text);
}
.box-head .more {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  transition: all .15s var(--ease);
}
.box-head .more:hover { background: var(--accent-soft); color: var(--accent-dark); }
.box-head .more::after { content: " ›"; }

.box-body {
  flex: 1 1 auto;
  padding: var(--sp-4);
}
/* support second head/body pair (rail render) */
.box .box-head + .box-body { padding-top: var(--sp-4); }
.box .box-body + .box-head { border-top: 1px solid var(--hair); }

/* news lead (featured top story) */
.news-lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-4);
  align-items: stretch;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--hair);
}
.news-lead .thumb { min-width: 0; }
.news-lead .lead-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.news-lead .lead-txt h3 {
  margin: 0 0 var(--sp-2);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.28;
}
.news-lead .lead-txt h3 a { color: var(--text); }
.news-lead .lead-txt h3 a:hover { color: var(--accent-dark); }
.excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* fixed-ratio image well */
.ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--hair);
}
.ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.box:hover .ratio img,
.gcard:hover .ratio img,
.bli-thumb:hover .ratio img { transform: scale(1.04); }

/* generic list */
.box-list {
  display: flex;
  flex-direction: column;
}
.box-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 0;
  border-bottom: 1px dashed var(--hair);
  font-size: 14.5px;
  line-height: 1.5;
}
.box-item:last-child { border-bottom: 0; }
.box-item > a {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.box-item > a:hover { color: var(--accent-dark); }
.box-item .meta {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* badges — flat, low-key (no toy hard shadow) */
.badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  border: 1px solid transparent;
}
.badge.notice {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: #e3cf9a;
}
.badge.new {
  background: var(--accent3-soft);
  color: #56751f;
  border-color: #cbe0a3;
}
.badge.civic {
  background: var(--accent2-soft);
  color: #2c6373;
  border-color: #b5dae3;
}

/* ranking */
ol.rank {
  display: flex;
  flex-direction: column;
}
ol.rank li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px 0;
  border-bottom: 1px dashed var(--hair);
  font-size: 14.5px;
}
ol.rank li:last-child { border-bottom: 0; }
ol.rank .num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--hair);
}
ol.rank li.top .num {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent-dark);
}
ol.rank li a {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
ol.rank li a:hover { color: var(--accent-dark); }
ol.rank .delta {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
}

/* gallery 2x2 */
.gal2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}
.gcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.gcard .ratio { aspect-ratio: 1 / 1; }
.gcard > a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gcard > a:hover { color: var(--accent-dark); }
.gcard .gm {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* tags / keyword strip */
nav.tags,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all .15s var(--ease);
}
.tag::before { content: "#"; color: var(--accent-2); margin-right: 3px; font-weight: 700; }
.tag:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* keyword strip (responsive scroll mode hook) */
.kw-strip { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   6. BOARD LIST (list.skin.php)
   ------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin: var(--sp-7) 0 var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--text);
}
.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
}
.section-head .mono,
.section-head .more {
  flex: 0 0 auto;
}
.section-head .mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  padding: 4px 10px;
  border: 1px solid var(--accent2-soft);
  border-radius: var(--r-pill);
  background: var(--accent2-soft);
}
.section-head .more {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.section-head .more:hover { color: var(--accent-dark); }
.section-head .more::after { content: " ›"; }

.mono { font-family: var(--font-mono); }

/* board list — card rows */
.board-list-portal {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.board-list-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.board-list-item:hover {
  box-shadow: var(--sh-2);
  border-color: #d8d2c4;
  transform: translateY(-2px);
}
.bli-thumb { min-width: 0; }
.bli-thumb .ratio { aspect-ratio: 4 / 3; height: 100%; }
.bli-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bli-cat {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.bli-title {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
}
.bli-title a { color: var(--text); }
.bli-title a:hover { color: var(--accent-dark); }
.bli-title em { font-family: var(--font-mono); font-style: normal; }
.bli-excerpt {
  margin: 0 0 var(--sp-3);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bli-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.bli-meta span { position: relative; }
.bli-meta span + span::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-3) / 2 - 1px);
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: var(--sp-6) 0 var(--sp-5);
}
.pager a,
.pager strong,
.pager .pg_page,
.pager .pg_current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all .15s var(--ease);
}
.pager a:hover,
.pager .pg_page:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.pager strong,
.pager .pg_current {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: var(--on-accent);
}

/* board actions (search + write) */
.board-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hair);
}
.board-search {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
.board-search select,
.board-search input[type="text"] {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14px;
}
.board-search select { flex: 0 0 auto; cursor: pointer; }
.board-search input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
}
.board-search select:focus,
.board-search input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.board-actions .btn { flex: 0 0 auto; }

/* ---------------------------------------------------------------------
   7. BOARD VIEW (view.skin.php)
   ------------------------------------------------------------------- */
.hm-board-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
  margin: var(--sp-6) 0 var(--sp-7);
}

.hm-view-head {
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 2px solid var(--text);
}
.hm-board-kicker {
  margin: 0 0 var(--sp-2);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-dark);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
}
.hm-view-head h1 {
  margin: 0 0 var(--sp-3);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.22;
}
.hm-view-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.hm-view-meta span { position: relative; }
.hm-view-meta span + span::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-4) / 2 - 1px);
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* attached files */
.hm-view-files {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  background: var(--surface-alt);
  border: 1px solid var(--hair);
  border-radius: var(--r);
}
.hm-view-files a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.hm-view-files a::before { content: "📎"; }
.hm-view-files a:hover { color: var(--accent-dark); }
.hm-view-files a span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* content body */
.hm-view-content {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-soft);
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: var(--sp-5);
}
.hm-view-content p { margin: 0 0 1.1em; }
.hm-view-content h1,
.hm-view-content h2,
.hm-view-content h3 { margin-top: 1.4em; margin-bottom: .5em; }
.hm-view-content img {
  border-radius: var(--r);
  margin: var(--sp-4) auto;
  box-shadow: var(--sh-1);
}
.hm-view-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}
.hm-view-content a:hover { text-decoration-color: var(--accent); }
.hm-view-content blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  border-left: 4px solid var(--accent-2);
  background: var(--accent2-soft);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--text);
}
.hm-view-content ul,
.hm-view-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.hm-view-content ul { list-style: disc; }
.hm-view-content ol { list-style: decimal; }
.hm-view-content li { margin-bottom: .35em; }
.hm-view-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 14px;
}
.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: 700; }

/* vote / recommend */
.hm-view-vote {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--hair);
}
.hm-view-vote a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: all .15s 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(--accent2-soft);
  color: #2c6373;
}

/* prev/next neighbor */
.hm-view-neighbor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.hm-view-neighbor a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-alt);
  transition: all .15s var(--ease);
  min-width: 0;
}
.hm-view-neighbor a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.hm-view-neighbor a span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.hm-view-neighbor a strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* view actions */
.hm-view-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hair);
}
.hm-view-actions a {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all .15s var(--ease);
}
.hm-view-actions a:hover {
  border-color: var(--accent-2);
  background: var(--accent2-soft);
  color: var(--text);
}
.hm-view-actions a:first-child { margin-right: auto; }
.hm-view-actions a.is-primary {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: var(--on-accent);
  margin-left: 0;
}
.hm-view-actions a.is-primary:hover {
  background: var(--accent-dark);
  color: var(--on-accent);
}

/* ---------------------------------------------------------------------
   8. COMMENTS (view_comment.skin.php + core #bo_vc / #bo_vc_w)
   ------------------------------------------------------------------- */
.cmt_btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  padding: 11px 20px;
  border: 1.5px solid var(--accent-dark);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  transition: all .15s var(--ease);
}
.cmt_btn:hover { background: var(--accent); color: var(--on-accent); }
.cmt_btn .total b { font-weight: 800; }
.cmt_btn .cmt_more::after { content: "▾"; margin-left: 6px; font-size: 11px; }
.cmt_btn.cmt_btn_op .cmt_more::after { content: "▴"; }

/* comments container — sits inside .shell area; give it the same width frame */
#bo_vc,
#bo_vc_w {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
#bo_vc {
  margin-bottom: var(--sp-5);
}
#bo_vc > h2 {
  font-size: 19px;
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--text);
}

/* comment article */
#bo_vc article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--hair);
}
#bo_vc article:first-of-type { border-top: 0; }
#bo_vc .pf_img { flex: 0 0 auto; }
#bo_vc .pf_img img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.cm_wrap { min-width: 0; }
#bo_vc article header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
}
#bo_vc article header h2 {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.bo_vc_hdinfo {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.bo_vc_hdinfo .fa { margin-right: 3px; color: var(--accent-2); }

.cmt_contents {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}
.cmt_contents p { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.cmt_contents img { max-width: 100%; }

/* comment option menu */
.bo_vl_opt { position: relative; align-self: start; }
.btn_cm_opt,
.btn_b01 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  transition: all .15s var(--ease);
}
.btn_cm_opt:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.bo_vc_act {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 5;
  display: none;
  min-width: 100px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
}
.bo_vc_act li { display: block; }
.bo_vc_act a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.bo_vc_act a:hover { background: var(--accent-soft); color: var(--accent-dark); }

#bo_vc_empty {
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--r);
}

/* comment write form */
#bo_vc_w {
  margin-bottom: var(--sp-7);
}
.bo_vc_w { width: 100%; }
#bo_vc_w > h2 {
  font-size: 17px;
  margin: 0 0 var(--sp-3);
}
#fviewcomment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: var(--sp-4);
}
#fviewcomment textarea,
#wr_content {
  width: 100%;
  min-height: 110px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
#fviewcomment textarea:focus,
#wr_content:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
#char_cnt {
  display: block;
  margin: var(--sp-2) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
#char_cnt #char_count { color: var(--accent-2); font-weight: 700; }

.bo_vc_w_wr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
}
.bo_vc_w_info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  flex: 1 1 auto;
  min-width: 0;
}
.frm_input,
.bo_vc_w_info input[type="text"],
.bo_vc_w_info input[type="password"] {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14px;
  max-width: 180px;
}
.frm_input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn_confirm {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 0 0 auto;
}
.secret_cm,
.chk_box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-soft);
}
.chk_box label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.selec_chk { accent-color: var(--accent); width: 16px; height: 16px; }

.btn_submit {
  padding: 11px 26px;
  border: 1px solid var(--accent-dark);
  border-radius: var(--r);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
  transition: background .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);
}
.btn_submit:hover { background: var(--accent-dark); box-shadow: var(--sh-2); }
.btn_submit:active { transform: translateY(1px); }
.btn_submit:disabled { opacity: .55; cursor: not-allowed; }

.bo_vc_w {
  display: block;
}
span.bo_vc_w:empty { display: none; }

/* ---------------------------------------------------------------------
   9. RESPONSIVE — 5 breakpoints + reduced motion
   ------------------------------------------------------------------- */

/* FHD widen */
@media (min-width: 1600px) {
  :root { --shell: 1380px; }
  .page-h1 { font-size: clamp(32px, 4vw, 50px); }
  body { font-size: 16.5px; }
}

/* QHD widen */
@media (min-width: 2400px) {
  :root { --shell: 1720px; }
  body { font-size: 17px; }
  .portal { gap: var(--sp-6); }
}

/* tablet landscape — collapse to 2 cols */
@media (max-width: 1024px) {
  .portal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal .span2 { grid-column: span 2; }
  .board-list-item { grid-template-columns: 150px 1fr; }
  .hm-view-neighbor { grid-template-columns: 1fr; }
}

/* tablet portrait / mobile nav */
@media (max-width: 768px) {
  .shell { padding-inline: var(--sp-4); }

  h1 { font-size: clamp(24px, 6vw, 32px); }
  .page-h1 { margin-top: var(--sp-5); }

  /* header stacks */
  .topband .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
  nav.util { width: 100%; }

  .search-wrap { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .search-block { flex: 1 1 auto; }
  .search-form { width: 100%; }
  nav.quick { align-self: stretch; }

  /* mobile menu toggle */
  .menu-toggle { display: block; }
  #gnb-menu-013 {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: var(--sp-3);
  }
  #gnb-menu-013.open { display: flex; }
  #gnb-menu-013 > li { width: 100%; }
  .nav-link {
    width: 100%;
    padding: 13px var(--sp-3);
    border-radius: var(--r);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { background: var(--accent-soft); }

  /* portal collapse */
  .portal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .portal .span2 { grid-column: span 2; }

  /* news lead stacks */
  .news-lead { grid-template-columns: 1fr; }

  /* board list stack thumb-on-top */
  .board-list-item { grid-template-columns: 1fr; }
  .bli-thumb .ratio { aspect-ratio: 16 / 9; }

  .board-actions { flex-direction: column; align-items: stretch; }
  .board-search { width: 100%; }

  .hm-board-view { padding: var(--sp-5); }
}

/* small mobile */
@media (max-width: 480px) {
  .portal { grid-template-columns: 1fr; }
  .portal .span2 { grid-column: span 1; }

  .gal2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }

  /* keyword strip horizontal scroll */
  .kw-strip,
  nav.tags,
  nav.quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  nav.tags .tag,
  nav.quick a { flex: 0 0 auto; }

  .hm-board-view { padding: var(--sp-4); border-radius: var(--r); }
  .hm-view-content { font-size: 15.5px; }

  #bo_vc,
  #bo_vc_w { padding-inline: var(--sp-4); }
  #bo_vc article { grid-template-columns: 36px 1fr; gap: var(--sp-2); }
  #bo_vc .pf_img img { width: 32px; height: 32px; }

  .bo_vc_w_wr { flex-direction: column; align-items: stretch; }
  .btn_confirm { justify-content: space-between; }
  .btn_submit { flex: 1 1 auto; }
  .frm_input,
  .bo_vc_w_info input[type="text"],
  .bo_vc_w_info input[type="password"] { max-width: none; flex: 1 1 140px; }

  .hm-view-actions a:first-child { margin-right: 0; }
  .hm-view-actions { gap: 6px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ratio img,
  .board-list-item:hover,
  .btn:active,
  .btn_submit:active { transform: none !important; }
}
