@charset "utf-8";
/* SolCMS 기본 테마 프론트 디자인 시스템  */

:root {
  --color-white: #fff;

  --color-zinc-50:  oklch(0.985 0 0);
  --color-zinc-100: oklch(0.967 0.001 286.375);
  --color-zinc-200: oklch(0.92 0.004 286.32);
  --color-zinc-300: oklch(0.871 0.006 286.286);
  --color-zinc-400: oklch(0.705 0.015 286.067);
  --color-zinc-500: oklch(0.552 0.016 285.938);
  --color-zinc-600: oklch(0.442 0.017 285.786);
  --color-zinc-700: oklch(0.37 0.013 285.805);
  --color-zinc-800: oklch(0.274 0.006 286.033);
  --color-zinc-900: oklch(0.21 0.006 285.885);
  --color-zinc-950: oklch(0.141 0.005 285.823);

  --color-red-50:  oklch(0.971 0.013 17.38);
  --color-red-200: oklch(0.885 0.062 18.334);
  --color-red-600: oklch(0.577 0.245 27.325);
  --color-red-700: oklch(0.505 0.213 27.518);

  --color-green-50:  oklch(0.982 0.018 155.826);
  --color-green-200: oklch(0.925 0.084 155.995);
  --color-green-600: oklch(0.627 0.194 149.214);
  --color-green-700: oklch(0.527 0.154 150.069);

  --color-amber-50:  oklch(0.987 0.022 95.277);
  --color-amber-200: oklch(0.924 0.12 95.746);
  --color-amber-500: oklch(0.769 0.188 70.08);
  --color-amber-800: oklch(0.473 0.137 46.201);

  --color-blue-50:  oklch(0.97 0.014 254.604);
  --color-blue-200: oklch(0.882 0.059 254.128);
  --color-blue-600: oklch(0.546 0.245 262.881);
  --color-blue-700: oklch(0.488 0.243 264.376);

  /* 반경 · 타이포 스케일 */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  --font-sans: "Plus Jakarta Sans", "Noto Sans KR", ui-sans-serif, system-ui,
               -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
               Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;    --text-xs-lh: 1rem;
  --text-sm: 0.875rem;   --text-sm-lh: 1.25rem;
  --text-base: 1rem;     --text-base-lh: 1.5rem;
  --text-lg: 1.125rem;   --text-lg-lh: 1.75rem;
  --text-xl: 1.25rem;    --text-xl-lh: 1.75rem;
  --text-2xl: 1.5rem;    --text-2xl-lh: 2rem;
  --text-3xl: 1.875rem;  --text-3xl-lh: 2.25rem;

  --tracking-tight: -0.025em;
  --tracking-tighter: -0.05em;
}

/* ═══════════ TIER 2 — SEMANTIC (shadcn/ui new-york · zinc) ═══════════ */

:root {
  color-scheme: light;

  --background:           var(--color-white);
  --foreground:           var(--color-zinc-950);
  --card:                 var(--color-white);
  --card-foreground:      var(--color-zinc-950);

  --primary:              var(--color-zinc-900);
  --primary-foreground:   var(--color-zinc-50);

  --secondary:            var(--color-zinc-100);
  --secondary-foreground: var(--color-zinc-900);
  --muted:                var(--color-zinc-100);
  --muted-foreground:     var(--color-zinc-500);
  --accent:               var(--color-zinc-100);
  --accent-foreground:    var(--color-zinc-900);

  --destructive:            var(--color-red-600);
  --destructive-foreground: var(--color-zinc-50);
  --success:                var(--color-green-600);
  --info:                   var(--color-blue-600);

  --success-subtle:            var(--color-green-50);
  --success-subtle-foreground: var(--color-green-700);
  --success-subtle-border:     var(--color-green-200);
  --warning-subtle:            var(--color-amber-50);
  --warning-subtle-foreground: var(--color-amber-800);
  --warning-subtle-border:     var(--color-amber-200);
  --danger-subtle:             var(--color-red-50);
  --danger-subtle-foreground:  var(--color-red-700);
  --danger-subtle-border:      var(--color-red-200);
  --info-subtle:               var(--color-blue-50);
  --info-subtle-foreground:    var(--color-blue-700);
  --info-subtle-border:        var(--color-blue-200);

  --border:        var(--color-zinc-200);
  --border-subtle: var(--color-zinc-100);
  --input:         var(--color-zinc-200);
  --ring:          var(--color-zinc-400);

  --radius: 0.625rem;

  /* 레이아웃 */
  --site-max-width:    1280px;
  --content-max-width: 1280px;
  --header-height:     64px;
  --content-gutter-x:  16px;
  --content-gutter-y:  16px;
}

/* 다크 — Tier 2 만 remap */
:root[data-theme="dark"] {
  color-scheme: dark;

  --background:           var(--color-zinc-950);
  --foreground:           var(--color-zinc-50);
  --card:                 var(--color-zinc-900);
  --card-foreground:      var(--color-zinc-50);

  --primary:              var(--color-zinc-200);
  --primary-foreground:   var(--color-zinc-900);

  --secondary:            var(--color-zinc-800);
  --secondary-foreground: var(--color-zinc-50);
  --muted:                var(--color-zinc-800);
  --muted-foreground:     var(--color-zinc-400);
  --accent:               var(--color-zinc-800);
  --accent-foreground:    var(--color-zinc-50);

  --border:        var(--color-zinc-800);
  --border-subtle: var(--color-zinc-800);
  --input:         var(--color-zinc-800);
  --ring:          var(--color-zinc-600);

  --success-subtle:            oklch(0.26 0.06 152);
  --success-subtle-foreground: oklch(0.85 0.11 152);
  --success-subtle-border:     oklch(0.35 0.08 152);
  --warning-subtle:            oklch(0.27 0.06 60);
  --warning-subtle-foreground: oklch(0.87 0.13 88);
  --warning-subtle-border:     oklch(0.36 0.08 60);
  --danger-subtle:             oklch(0.26 0.08 26);
  --danger-subtle-foreground:  oklch(0.83 0.10 20);
  --danger-subtle-border:      oklch(0.35 0.11 26);
  --info-subtle:               oklch(0.26 0.08 264);
  --info-subtle-foreground:    oklch(0.84 0.09 258);
  --info-subtle-border:        oklch(0.35 0.11 264);
}

/* 테마를 "시스템" 으로 두면 data-theme 속성이 없다 —
   그때는 OS 설정을 따라야 하므로 같은 remap 을 한 번 더 낸다.
   [data-theme="light"] 를 명시한 경우에는 적용되지 않도록 제외한다. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;

    --background:           var(--color-zinc-950);
    --foreground:           var(--color-zinc-50);
    --card:                 var(--color-zinc-900);
    --card-foreground:      var(--color-zinc-50);

    --primary:              var(--color-zinc-200);
    --primary-foreground:   var(--color-zinc-900);

    --secondary:            var(--color-zinc-800);
    --secondary-foreground: var(--color-zinc-50);
    --muted:                var(--color-zinc-800);
    --muted-foreground:     var(--color-zinc-400);
    --accent:               var(--color-zinc-800);
    --accent-foreground:    var(--color-zinc-50);

    --border:        var(--color-zinc-800);
    --border-subtle: var(--color-zinc-800);
    --input:         var(--color-zinc-800);
    --ring:          var(--color-zinc-600);

    --success-subtle:            oklch(0.26 0.06 152);
    --success-subtle-foreground: oklch(0.85 0.11 152);
    --success-subtle-border:     oklch(0.35 0.08 152);
    --warning-subtle:            oklch(0.27 0.06 60);
    --warning-subtle-foreground: oklch(0.87 0.13 88);
    --warning-subtle-border:     oklch(0.36 0.08 60);
    --danger-subtle:             oklch(0.26 0.08 26);
    --danger-subtle-foreground:  oklch(0.83 0.10 20);
    --danger-subtle-border:      oklch(0.35 0.11 26);
    --info-subtle:               oklch(0.26 0.08 264);
    --info-subtle-foreground:    oklch(0.84 0.09 258);
    --info-subtle-border:        oklch(0.35 0.11 264);
  }
}

/* ═══════════ 기본 ═══════════ */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; letter-spacing: var(--tracking-tight); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
img, video { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
a:hover { color: var(--muted-foreground); }

code, .mono { font-family: var(--font-mono); font-size: .875em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: .6rem 1rem; background: var(--primary); color: var(--primary-foreground);
  border-radius: var(--radius-md);
}
.skip:focus { left: .5rem; top: .5rem; }

/* ═══════════ 레이아웃 ═══════════ */

.container {
  width: 100%; max-width: var(--site-max-width); margin: 0 auto;
  padding-inline: var(--content-gutter-x);
}

.site-main { flex: 1; padding: 0rem 0 4rem; }

.narrow { max-width: 48rem; margin-inline: auto; }

.page-head {
  display: flex; align-items: baseline; gap: .75rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.page-head h1 { margin: 0; font-size: var(--text-2xl); line-height: var(--text-2xl-lh); letter-spacing: var(--tracking-tight); }
.page-head .count { color: var(--muted-foreground); font-size: var(--text-sm); }
.page-head h1.connect-title { font-size: var(--text-lg); line-height: var(--text-lg-lh); }

.breadcrumb { font-size: var(--text-sm); color: var(--muted-foreground); margin-bottom: .75rem; }
.breadcrumb a { color: var(--muted-foreground); }
.breadcrumb a:hover { color: var(--foreground); }

/* 게시판관리 > 게시판 메타 에서 SEO 출력을 켜고 이미지를 넣었을 때 목록 위에 띄우는 배너 */
.board-meta-banner {
  margin: 0 0 1.25rem;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  max-height: 280px;
}
.board-meta-banner img {
  display: block; width: 100%; height: 100%;
  max-height: 280px; object-fit: cover;
}
.breadcrumb span { margin: 0 .35rem; opacity: .6; }

/* ═══════════ 헤더 ═══════════ */



.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--muted-foreground);
  cursor: pointer; font-size: .95rem; line-height: 1;
}
.icon-btn:hover { background: var(--muted); color: var(--foreground); }


/* ═══════════ 내비게이션 ═══════════ */



/* ═══════════ 카드 ═══════════ */

.card {
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.content-body-card { border: none; }
.example-include-card { border: none; }
.card + .card { margin-top: 1rem; }
.card-head {
  display: flex; align-items: center; gap: .625rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { margin: 0; font-size: var(--text-base); font-weight: 600; }
.card-head .more { margin-left: auto; font-size: var(--text-sm); color: var(--muted-foreground); }
.card-body { padding: 1.25rem; }

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

/* ═══════════ 버튼 ═══════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .5rem 1rem;
  font-size: var(--text-sm); font-weight: 500; line-height: 1.25rem;
  border: 1px solid transparent; border-radius: var(--radius-md);
  background: var(--secondary); color: var(--secondary-foreground);
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { color: var(--foreground); }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .9; color: var(--primary-foreground); }

.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }

.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }

.btn-danger { background: var(--destructive); color: var(--destructive-foreground); }
.btn-danger:hover { opacity: .9; color: var(--destructive-foreground); }

.btn-sm { padding: .3rem .75rem; font-size: .8125rem; }
.btn-lg { padding: .65rem 1.5rem; font-size: var(--text-base); }

/* 취소 같은 보통 버튼과 나란히 놓일 때는 높이를 맞춘다.
   (혼자 서는 .btn-block 큰 버튼은 그대로 크게 둔다) */
.btn-row .btn-lg:not(.btn-block) { padding-top: .5rem; padding-bottom: .5rem; }
.btn-block { display: flex; width: 100%; }

.btn.btn-sm.btn-primary,
.btn.btn-sm.btn-bch {
  gap: 8px; padding: 8px 14px; min-height: 40px;
  font-size: 14px; font-weight: 600; line-height: 1.2;
  background: var(--card); color: var(--foreground);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  transition: background-color .16s cubic-bezier(.4,0,.2,1),
              border-color .16s cubic-bezier(.4,0,.2,1),
              color .16s cubic-bezier(.4,0,.2,1);
  opacity: 1;
}
.btn.btn-sm.btn-primary:hover,
.btn.btn-sm.btn-bch:hover {
  background: var(--muted); color: var(--foreground);
  border-color: var(--border); opacity: 1;
}
.btn.btn-sm.btn-primary svg,
.btn.btn-sm.btn-bch svg { color: var(--muted-foreground); flex: none; }

.btn.btn-sm.btn-brand {
  gap: 8px; padding: 8px 14px; min-height: 40px;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  background: var(--brand); color: var(--brand-foreground);
  border: 1px solid transparent; border-radius: var(--radius-lg);
  transition: background-color .16s cubic-bezier(.4,0,.2,1),
              border-color .16s cubic-bezier(.4,0,.2,1),
              color .16s cubic-bezier(.4,0,.2,1);
  opacity: 1;
}
.btn.btn-sm.btn-brand:hover  { background: var(--brand-hover);  color: var(--brand-foreground); opacity: 1; }
.btn.btn-sm.btn-brand:active { background: var(--brand-active); color: var(--brand-foreground); }
/* 채워진 버튼이라 아이콘도 글자와 같은 색이어야 한다 */
.btn.btn-sm.btn-brand svg { color: currentColor; flex: none; }

.btn.btn-sm.btn-sec,
.btn.btn-sm.btn-ter {
  gap: 8px; padding: 8px 14px; min-height: 40px;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-lg);
  transition: background-color .16s cubic-bezier(.4,0,.2,1),
              border-color .16s cubic-bezier(.4,0,.2,1),
              color .16s cubic-bezier(.4,0,.2,1);
  opacity: 1;
}
.btn.btn-sm.btn-sec { background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn.btn-sm.btn-sec:hover { background: var(--muted); color: var(--foreground); border-color: var(--ring); opacity: 1; }

/* 헤더에서 버튼으로 읽히도록 헤어라인을 넣는다 */
.btn.btn-sm.btn-ter { background: var(--background); color: var(--foreground); border-color: var(--border); }
.btn.btn-sm.btn-ter:hover { background: var(--card); color: var(--foreground); border-color: var(--ring); opacity: 1; }

.btn.btn-sm.btn-sec svg,
.btn.btn-sm.btn-ter svg { color: var(--muted-foreground); flex: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.btn-row .right { margin-left: auto; }

/* ═══════════ 폼 ═══════════ */

.form-row { margin-bottom: 1rem; }
.form-row > label, .form-label {
  display: block; margin-bottom: .375rem;
  font-size: var(--text-sm); font-weight: 500; color: var(--foreground);
}
.required::after { content: " *"; color: var(--destructive); }

.input, input[type=text], input[type=password], input[type=email], input[type=url],
input[type=tel], input[type=number], input[type=date], input[type=datetime-local],
input[type=search], select, textarea {
  display: block; width: 100%;
  padding: .5rem .75rem;
  font-size: var(--text-sm); line-height: 1.25rem;
  color: var(--foreground); background: var(--background);
  border: 1px solid var(--input); border-radius: var(--radius-md);
  font-family: inherit; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent);
}
input:disabled, textarea:disabled, select:disabled {
  background: var(--muted); color: var(--muted-foreground);
}
textarea { min-height: 80px; resize: vertical; }
select { cursor: pointer; }

input[type=checkbox], input[type=radio] {
  display: inline-block; width: 1rem; height: 1rem;
  accent-color: var(--primary); cursor: pointer; vertical-align: -2px;
  padding: 0; margin-right: .25rem;
}

.check-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--text-sm); color: var(--foreground);
  cursor: pointer; margin-right: 1rem;
}

.hint { font-size: .8125rem; color: var(--muted-foreground); margin-top: .375rem; }
.error-text { font-size: .8125rem; color: var(--destructive); margin-top: .375rem; }

.inline-group { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-group .input { flex: 1; min-width: 0; }

fieldset {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem 1.25rem; margin: 0 0 1rem;
}
legend { padding: 0 .375rem; font-size: var(--text-sm); font-weight: 600; color: var(--muted-foreground); }

/* ═══════════ 테이블 ═══════════ */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.list {
  width: 100%; border-collapse: collapse;
  font-size: var(--text-sm); background: var(--card);
}
table.list thead th {
  padding: .75rem 1rem; text-align: left; white-space: nowrap;
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
table.list tbody td {
  padding: .875rem 1rem; border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
table.list tbody tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: var(--muted); }
table.list .num, table.list .center { text-align: center; white-space: nowrap; }
table.list .right { text-align: right; white-space: nowrap; }
table.list th.center { text-align: center; }
table.list th.right { text-align: right; }
table.list .subject { width: 100%; }
table.list .muted { color: var(--muted-foreground); font-size: .8125rem; white-space: nowrap; }

.empty { padding: 4rem 1rem; text-align: center; color: var(--muted-foreground); font-size: var(--text-sm); }

/* ═══════════ 배지 ═══════════ */

.badge {
  display: inline-flex; align-items: center;
  padding: .125rem .5rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; line-height: 1.5;
  background: var(--secondary); color: var(--secondary-foreground);
  vertical-align: 1px;
}
.badge-new     { background: var(--primary); color: var(--primary-foreground); }
.badge-notice  { background: var(--danger-subtle); color: var(--danger-subtle-foreground); }
.badge-hot     { background: var(--warning-subtle); color: var(--warning-subtle-foreground); }
.badge-cat     { background: var(--secondary); color: var(--secondary-foreground); }
.badge-secret  { background: var(--muted); color: var(--muted-foreground); }
.badge-level   { background: var(--muted); color: var(--muted-foreground); }
.comment-count { color: var(--muted-foreground); font-weight: 600; font-size: .8125rem; }

/* ═══════════ 페이지네이션 ═══════════ */

.pagination { margin: 1.5rem 0; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: .25rem; flex-wrap: wrap; }
.pagination a, .pagination strong {
  display: grid; place-items: center;
  min-width: 36px; height: 36px; padding: 0 .625rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--background); color: var(--muted-foreground);
  font-size: var(--text-sm); font-weight: 500;
}
.pagination a:hover { background: var(--muted); color: var(--foreground); }
.pagination strong { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

/* ═══════════ 검색 · 분류 ═══════════ */

.searchbar {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin: 1.25rem 0; justify-content: center;
}
.searchbar select { width: auto; min-width: 7rem; }
.searchbar input[type=search], .searchbar input[type=text] { width: auto; flex: 0 1 20rem; }

.category-tabs { display: flex; gap: .375rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.category-tabs a {
  padding: .375rem .875rem; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--background);
  color: var(--muted-foreground); font-size: var(--text-sm); font-weight: 500;
}
.category-tabs a:hover { background: var(--muted); color: var(--foreground); }
.category-tabs a.on { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

/* FAQ 페이지의 분류 탭만 각지게 — 게시판 category-tabs 는 그대로 둔다 */
.faq-cats a { border-radius: var(--radius-md); }

/* 내가 작성한 글 — 유형 버튼 + 검색을 한 줄에 좌측 정렬 */
.posts-filter {
  display: flex; align-items: center; gap: .75rem .5rem;
  flex-wrap: wrap; margin: 1.25rem 0;
}
.posts-filter .category-tabs { margin-bottom: 0; }

/* 탭·입력칸·버튼 세로 크기를 똑같이 (padding .5rem + line-height 1.25rem + 테두리) */
.posts-filter .category-tabs a {
  padding: .5rem .875rem; line-height: 1.25rem;
  border-radius: 6px;
}

/* 안쪽 줄바꿈을 막아야 '검색' 버튼이 입력칸 아래로 떨어지지 않는다 */
.searchbar-left {
  margin: 0; justify-content: flex-start; flex-wrap: nowrap;
  flex: 0 1 auto; min-width: 0;
}
.searchbar-left input[type=search] { flex: 1 1 16rem; min-width: 7rem; }

/* 내가 작성한 글 — 행 높이 50px 고정 (세로 여백 대신 높이로 잡아야 값이 그대로 나온다) */
table.list.posts-list tbody td {
  height: 50px; padding-top: 0; padding-bottom: 0;
}

@media (max-width: 640px) {
  .searchbar-left { flex: 1 1 100%; }
}

/* ═══════════ 게시물 ═══════════ */

.post-head { padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--border); }
.post-head h1 { margin: 0 0 .625rem; font-size: var(--text-xl); line-height: var(--text-xl-lh); }
.post-meta {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  font-size: .8125rem; color: var(--muted-foreground);
}
.post-meta strong { color: var(--foreground); font-weight: 600; }

.post-body {
  padding: 2rem 1.25rem; min-height: 8rem;
  font-size: var(--text-base); line-height: 1.75;
}
.post-body img { border-radius: var(--radius-lg); }
.post-body blockquote {
  margin: 1.25rem 0; padding: .5rem 0 .5rem 1.25rem;
  border-left: 3px solid var(--border); color: var(--muted-foreground);
}
.post-body pre {
  background: var(--muted); padding: 1rem; border-radius: var(--radius-lg);
  overflow-x: auto; font-size: var(--text-sm);
}
.post-body code { background: var(--muted); padding: .125rem .375rem; border-radius: var(--radius-sm); }
.post-body pre code { background: none; padding: 0; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: .625rem; }

.post-files { padding: 1.125rem 1.25rem; border-top: 1px solid var(--border); background: var(--muted); }
.post-files ul { display: grid; gap: .5rem; }
.post-files li { font-size: var(--text-sm); }
.post-files .size { color: var(--muted-foreground); font-size: var(--text-xs); margin-left: .375rem; }

/* ═══════════ 제품 상세 — 이미지 좌 + 정보 우 (egg.eworks.kr /product 스킨 참고) ═══════════
   그림칸은 download 스킨의 prog-gallery 컴포넌트(라이트박스 포함)를 그대로 재사용한다. */
.pv-card { border: none; }
.pv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem; }
.pv-no-img {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground); font-size: var(--text-sm);
}
.pv-title { margin: .5rem 0 .375rem; font-size: var(--text-xl); line-height: var(--text-xl-lh); }
.pv-summary { margin: 0 0 .75rem; color: var(--muted-foreground); font-size: var(--text-sm); }
.pv-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.pv-section-tit { margin: 0 0 .5rem; font-size: var(--text-sm); font-weight: 700; }
.pv-section-txt { margin: 0; font-size: var(--text-sm); color: var(--foreground); white-space: pre-wrap; }
.pv-feature-list { display: grid; gap: .4rem; }
.pv-feature-list li { display: flex; align-items: flex-start; gap: .4rem; font-size: var(--text-sm); }
.pv-feature-list li svg { flex: none; margin-top: .1rem; color: var(--brand); }
.pv-detail-tit { margin: 0 0 .75rem; font-size: var(--text-sm); font-weight: 700; color: var(--muted-foreground); }
.pv-buttons { display: flex; gap: .625rem; margin-top: 1.25rem; }
.pv-buttons .btn { flex: 1; text-align: center; }

@media (max-width: 640px) {
  .pv-wrap { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .pv-buttons { flex-direction: column; }
}

.post-actions {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
  padding: 1.125rem 1.25rem; border-top: 1px solid var(--border);
}

.report-form {
  display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap;
  padding: 0 1.25rem 1.125rem;
}
/* display 를 지정한 규칙이 브라우저 기본 [hidden] 을 이겨 버린다. */
.report-form[hidden] { display: none; }
.report-form select {
  flex: 0 0 auto; width: 100%;
  padding: .5rem .625rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: var(--text-sm); background: var(--background); color: var(--foreground);
}
.report-form textarea {
  flex: 1 1 16rem; min-width: 12rem; resize: vertical;
  padding: .5rem .625rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: var(--text-sm); background: var(--background); color: var(--foreground);
}
/* '기타'를 고르면 상세 사유가 필수라는 것을 눈에 띄게 알린다 */
.report-etc-hint { width: 100%; margin: -.15rem 0 0; font-size: var(--text-xs); font-weight: 600; color: var(--destructive); }
.report-form.is-etc textarea { border-color: var(--destructive); }
.report-form.is-etc textarea::placeholder { color: var(--destructive); }
/* 자료실(download) 스킨은 .prog-acts 가 위아래 여백·테두리를 이미 갖고 있어
   기본 padding 대신 그 리듬에 맞춘다 */
.prog-report-form { justify-content: center; padding: 0 0 20px; margin-top: -4px; }

.vote-row { display: flex; gap: .625rem; justify-content: center; padding: 1.5rem 0; }
.vote-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: .125rem;
  min-width: 5.5rem; padding: .75rem 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--background); color: var(--muted-foreground);
  cursor: pointer; font-family: inherit; font-size: .8125rem; font-weight: 500;
}
.vote-btn:hover { background: var(--muted); }
.vote-btn .n { font-size: var(--text-lg); font-weight: 700; color: var(--foreground); }
.vote-btn.on { border-color: var(--primary); color: var(--foreground); }

.sibling-nav { border-top: 1px solid var(--border); font-size: var(--text-sm); }
.sibling-nav > div {
  display: flex; gap: .75rem; padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.sibling-nav > div:last-child { border-bottom: 0; }
.sibling-nav .dir { color: var(--muted-foreground); flex: none; width: 3.5rem; }
.sibling-nav a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════ 댓글 ═══════════ */

.comments { margin-top: 1.25rem; }
.comment { padding: 1.125rem 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.comment:last-child { border-bottom: 0; }
.comment.depth-1 { padding-left: 2.75rem; background: var(--muted); }
.comment.depth-2 { padding-left: 4.25rem; background: var(--muted); }
.comment.depth-3 { padding-left: 5.75rem; background: var(--muted); }
.comment.depth-4 { padding-left: 7.25rem; background: var(--muted); }
.comment-head {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8125rem; margin-bottom: .375rem;
}
.comment-head .who { font-weight: 600; color: var(--foreground); }
.comment-head .when { color: var(--muted-foreground); }
.comment-head .acts { margin-left: auto; display: flex; gap: .5rem; }
.comment-head .acts button, .comment-head .acts a {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--muted-foreground); font-size: var(--text-xs); font-family: inherit;
}
.comment-head .acts button:hover, .comment-head .acts a:hover { color: var(--foreground); }
.comment-body { font-size: var(--text-sm); line-height: 1.7; white-space: pre-wrap; }
.comment-form { padding: 1.25rem; border-top: 1px solid var(--border); }

/* ═══════════ 갤러리 ═══════════ */

.gallery-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.gallery-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.gallery-item:hover { box-shadow: 0 10px 30px rgb(0 0 0 / .08); transform: translateY(-2px); }

/* 관리 모드 — 갤러리 카드 위 선택 체크박스 */
.gallery-item { position: relative; }
.gallery-pick {
  position: absolute; top: .5rem; left: .5rem; z-index: 2;
  display: flex; padding: .25rem; border-radius: 5px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgb(0 0 0 / .2); cursor: pointer;
}
.gallery-pick input { margin: 0; cursor: pointer; }
.gallery-thumb { display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--muted); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb .noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted-foreground); font-size: var(--text-xs); }
.gallery-info { padding: .875rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .375rem; }
.gallery-info .t {
  font-weight: 600; font-size: var(--text-sm); color: var(--foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gallery-info .m { margin-top: auto; font-size: var(--text-xs); color: var(--muted-foreground); display: flex; gap: .625rem; flex-wrap: wrap; }

/* ═══════════ 메인 ═══════════ */


.latest-list li {
  display: flex; align-items: center; gap: .625rem;
  padding: .625rem 0; border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}
.latest-list li:last-child { border-bottom: 0; }
.latest-list .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.latest-list .d { color: var(--muted-foreground); font-size: var(--text-xs); flex: none; }

/* ═══════════ 인증 화면 ═══════════ */


/* ═══════════ 알림 ═══════════ */

.alert {
  padding: .75rem 1rem; border: 1px solid transparent;
  border-radius: var(--radius-md); font-size: var(--text-sm); margin-bottom: 1.25rem;
  background: var(--muted); color: var(--foreground); border-color: var(--border);
}
.alert-info    { background: var(--info-subtle);    color: var(--info-subtle-foreground);    border-color: var(--info-subtle-border); }
.alert-danger  { background: var(--danger-subtle);  color: var(--danger-subtle-foreground);  border-color: var(--danger-subtle-border); }
.alert-success { background: var(--success-subtle); color: var(--success-subtle-foreground); border-color: var(--success-subtle-border); }

/* 약관 스크롤 박스 auth-terms 값 */
.terms-box {
  max-height: 160px; overflow-y: auto; margin-bottom: 8px;
  padding: 16px; background: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-size: 13px; line-height: 1.6; color: var(--muted-foreground);
}

.terms-box:focus { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.terms-box h3 { font-size: var(--text-sm); margin-top: 1rem; color: var(--foreground); }
.terms-box h3:first-child { margin-top: 0; }

.dl { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem 1rem; font-size: var(--text-sm); }
.dl dt { color: var(--muted-foreground); font-weight: 500; }
.dl dd { margin: 0; }

.stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.125rem 1.25rem;
}
.stat .k { font-size: var(--text-xs); color: var(--muted-foreground); font-weight: 500; }
.stat .v { font-size: var(--text-2xl); font-weight: 700; letter-spacing: var(--tracking-tight); margin-top: .25rem; }

/* ═══════════ 설문 · FAQ · Q&A ═══════════ */

.poll-result { display: grid; gap: .875rem; }
.poll-bar .poll-label {
  display: flex; justify-content: space-between; gap: .5rem;
  font-size: var(--text-sm); margin-bottom: .375rem;
}
.poll-track { height: 8px; border-radius: var(--radius-full); background: var(--muted); overflow: hidden; }
.poll-track i { display: block; height: 100%; border-radius: var(--radius-full); background: var(--primary); transition: width .3s; }

.poll-choices { display: grid; gap: .5rem; }
.poll-choice {
  display: flex; align-items: center; gap: .625rem;
  padding: .875rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; font-size: var(--text-sm);
}
.poll-choice:hover { background: var(--muted); }
.poll-choice:has(input:checked) { border-color: var(--primary); background: var(--muted); font-weight: 600; }

/* ==================== 설문조사 · rank 스킨 (skin/poll/rank) ====================
 * 결과를 순위표(리더보드)처럼 보여준다. 1위는 메달 + 강조 막대. */
.pr-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.25rem;
}
.pr-head h1 { margin: 0; font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }

.pr-card {
  border: 1px solid var(--border); border-radius: 16px; background: var(--card);
  overflow: hidden;
}
.pr-card-head { padding: 1.25rem 1.5rem 0; }
.pr-card-head h2 { margin: 0 0 .3rem; font-size: var(--text-lg); }
.pr-card-head h2 a { color: inherit; }
.pr-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.pr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 720px) { .pr-grid { grid-template-columns: 1fr; } }

.pr-rank-list { display: grid; gap: .7rem; }
.pr-rank {
  display: grid; grid-template-columns: 1.75rem 1fr auto; align-items: center; gap: .7rem;
}
.pr-medal {
  width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--text-xs); font-weight: 800; color: var(--muted-foreground);
  background: var(--muted);
}
.pr-rank.is-1 .pr-medal { background: #f6c343; color: #4a3300; }
.pr-rank.is-2 .pr-medal { background: #cfd6de; color: #33393e; }
.pr-rank.is-3 .pr-medal { background: #e0ad82; color: #4a2a10; }
.pr-rank-main { min-width: 0; }
.pr-rank-top { display: flex; justify-content: space-between; gap: .5rem; font-size: var(--text-sm); margin-bottom: .35rem; }
.pr-rank-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-rank.is-1 .pr-rank-label { color: var(--brand); }
.pr-rank-meta { color: var(--muted-foreground); font-size: var(--text-xs); flex: none; }
.pr-rank-track { height: 10px; border-radius: var(--radius-full); background: var(--muted); overflow: hidden; }
.pr-rank-track i {
  display: block; height: 100%; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--muted-foreground) 55%, transparent);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.pr-rank.is-1 .pr-rank-track i { background: var(--brand); }
.pr-rank-pct { font-weight: 800; font-size: var(--text-base); min-width: 3.2rem; text-align: right; }
.pr-rank.is-1 .pr-rank-pct { color: var(--brand); }

.pr-choices { display: grid; gap: .6rem; }
.pr-choice {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.1rem; border: 2px solid var(--border); border-radius: 14px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.pr-choice:hover { border-color: var(--ring); background: var(--muted); }
.pr-choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.pr-choice input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.pr-choice .t { font-size: var(--text-sm); font-weight: 600; }

.pr-stats { display: flex; gap: 1.5rem; padding: 0 1.5rem 1.25rem; flex-wrap: wrap; }
.pr-stat { display: flex; flex-direction: column; }
.pr-stat .k { font-size: var(--text-xs); color: var(--muted-foreground); }
.pr-stat .v { font-size: var(--text-xl); font-weight: 800; letter-spacing: var(--tracking-tight); }

.faq-list { display: grid; gap: .5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.faq-q {
  display: flex; align-items: flex-start; gap: .625rem; width: 100%;
  padding: 1rem 1.125rem; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: var(--text-sm); font-weight: 600; text-align: left;
  color: var(--foreground); line-height: 1.6;
}
.faq-q:hover { background: var(--muted); }
.faq-q .mark { color: var(--muted-foreground); font-weight: 700; flex: none; }
.faq-q .arrow { margin-left: auto; color: var(--muted-foreground); transition: transform .2s; flex: none; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 1rem 1.125rem 1.25rem 2.5rem; font-size: var(--text-sm); line-height: 1.8;
  border-top: 1px solid var(--border-subtle);
}

/* ==================== FAQ · cards 스킨 (skin/faq/cards) ====================
 * 아코디언 목록 대신 질문을 카드 그리드로 늘어놓는다. 토글 동작은 basic 과
 * 똑같이 .faq-item/.faq-q/.faq-a 를 그대로 쓰므로(카드는 그 위에 덧붙는
 * 모디파이어일 뿐) 별도 JS 없이도 열고 닫을 수 있지만, 이 스킨은 완전히
 * 독립적으로 동작하도록 파일 안에 자체 스크립트를 둔다. */
.faqc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.25rem;
}
.faqc-head h1 { margin: 0; font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.faqc-head .count { color: var(--muted-foreground); font-size: var(--text-sm); }

.faqc-search {
  display: flex; gap: .5rem; margin-bottom: 1.5rem;
}
.faqc-search input {
  flex: 1; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--card); font-size: var(--text-sm); color: var(--foreground);
}
.faqc-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.faqc-search button {
  border-radius: var(--radius-full); padding-left: 1.25rem; padding-right: 1.25rem;
}

.faqc-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.faqc-cat {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--card);
  font-size: var(--text-sm); font-weight: 500; color: var(--muted-foreground);
  transition: all .15s;
}
.faqc-cat:hover { border-color: var(--brand); color: var(--foreground); }
.faqc-cat.on { background: var(--brand); border-color: var(--brand); color: var(--brand-foreground); }

.faqc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 720px) { .faqc-grid { grid-template-columns: 1fr; } }

/* basic 의 .faq-item/.faq-q/.faq-a 는 app.js 의 전역 아코디언 스크립트가
 * 클래스명으로 찾아 붙잡는다. 이 스킨은 자기 스크립트로 따로 동작하므로,
 * 겹치는 클래스를 쓰면 두 스크립트가 같은 버튼에 이중으로 붙어 토글이
 * 꼬인다 — 그래서 faqc- 전용 이름을 쓴다. */
.faqc-item {
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  overflow: hidden; transition: border-color .18s, box-shadow .18s;
}
.faqc-item:hover { border-color: var(--ring); box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.faqc-item.open { border-color: var(--brand); }

.faqc-q {
  display: flex; align-items: flex-start; gap: .8rem; width: 100%;
  padding: 1.1rem 1.25rem; border: 0; background: none; cursor: pointer;
  font-family: inherit; text-align: left; color: var(--foreground);
}
.faqc-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--text-xs); font-weight: 700;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
}
.faqc-item.open .faqc-num { background: var(--brand); color: var(--brand-foreground); }
.faqc-qtext { flex: 1; font-size: var(--text-sm); font-weight: 600; line-height: 1.55; padding-top: .2rem; }
.faqc-q .faqc-arrow {
  flex: none; margin-left: auto; color: var(--muted-foreground);
  transition: transform .2s; margin-top: .2rem;
}
.faqc-item.open .faqc-arrow { transform: rotate(180deg); color: var(--brand); }
.faqc-a {
  padding: 0 1.25rem 1.25rem calc(28px + 1.25rem + .8rem);
  font-size: var(--text-sm); line-height: 1.8; color: var(--muted-foreground);
  border-top: 1px dashed var(--border-subtle); margin-top: -.1rem; padding-top: 1rem;
}
.faqc-empty {
  grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted-foreground);
  border: 1px dashed var(--border); border-radius: 14px;
}
.faqc-cta {
  grid-column: 1 / -1; margin-top: .5rem; text-align: center; padding: 1.75rem;
  border-radius: 14px; background: color-mix(in srgb, var(--brand) 6%, var(--card));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
}
.faqc-cta p { margin: 0 0 .8rem; color: var(--muted-foreground); }

.qa-answer {
  border-left: 3px solid var(--primary); background: var(--muted);
  padding: 1.125rem 1.25rem; margin-top: 1.25rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.qa-answer .head {
  font-size: .8125rem; color: var(--muted-foreground); margin-bottom: .5rem;
  display: flex; gap: .625rem; flex-wrap: wrap;
}

/* ==================== 1:1문의 · timeline 스킨 (skin/qa/timeline) ====================
 * 표 목록 대신 티켓형 카드 목록, 상세는 문의→답변을 세로 타임라인으로 잇는다. */
.qat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.1rem;
}
.qat-head h1 { margin: 0; font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }

.qat-list { display: flex; flex-direction: column; gap: .6rem; }
.qat-row {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  transition: border-color .15s, background .15s; color: inherit;
}
.qat-row:hover { border-color: var(--ring); background: var(--muted); color: inherit; }
.qat-status {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-foreground);
}
.qat-row.is-done .qat-status { background: var(--success); }
.qat-main { flex: 1; min-width: 0; }
.qat-subject {
  font-size: var(--text-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qat-meta { display: flex; gap: .5rem; align-items: center; margin-top: .25rem; font-size: var(--text-xs); color: var(--muted-foreground); }
.qat-pill {
  flex: none; font-size: var(--text-xs); font-weight: 700; padding: .25rem .6rem; border-radius: var(--radius-full);
  background: var(--muted); color: var(--muted-foreground);
}
.qat-row.is-done .qat-pill { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.qat-empty { padding: 3.5rem 1rem; text-align: center; color: var(--muted-foreground); border: 1px dashed var(--border); border-radius: 12px; }

/* 상세 — 세로 타임라인 */
.qat-thread { position: relative; padding-left: 2rem; }
.qat-thread::before {
  content: ''; position: absolute; left: .5rem; top: .6rem; bottom: .6rem; width: 2px;
  background: var(--border);
}
.qat-node { position: relative; margin-bottom: 1.25rem; }
.qat-node::before {
  content: ''; position: absolute; left: -1.72rem; top: .35rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--card); border: 3px solid var(--muted-foreground);
}
.qat-node.is-q::before { border-color: var(--brand); }
.qat-node.is-a::before { border-color: var(--success); }
.qat-node-card { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 1.25rem 1.4rem; }
.qat-node.is-a .qat-node-card { background: color-mix(in srgb, var(--success) 5%, var(--card)); border-color: color-mix(in srgb, var(--success) 25%, var(--border)); }
.qat-node-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.qat-node-tag {
  font-size: var(--text-xs); font-weight: 800; padding: .2rem .55rem; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
}
.qat-node.is-a .qat-node-tag { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.qat-node-who { font-weight: 700; font-size: var(--text-sm); }
.qat-node-when { font-size: var(--text-xs); color: var(--muted-foreground); margin-left: auto; }
.qat-node-body { font-size: var(--text-sm); line-height: 1.85; }

/* ═══════════ 소셜 로그인 ═══════════ */

.social-login { margin-top: 1.25rem; display: grid; gap: .5rem; }
.social-divider {
  display: flex; align-items: center; gap: .75rem;
  color: var(--muted-foreground); font-size: var(--text-xs); margin-bottom: .375rem;
}
.social-divider::before, .social-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-btn {
  display: block; padding: .625rem 1rem; border-radius: var(--radius-md);
  text-align: center; font-size: var(--text-sm); font-weight: 600;
  border: 1px solid transparent;
}
.social-btn:hover { opacity: .9; }
.social-naver  { background: #03c75a; color: #fff; }
.social-kakao  { background: #fee500; color: #191600; }
.social-google { background: #fff; color: #1f1f1f; border-color: var(--border); }
:root[data-theme="dark"] .social-google { background: var(--color-zinc-100); }

/* ═══════════ 언어 · 쪽지 ═══════════ */


.memo-badge {
  display: inline-block; min-width: 1.125rem; padding: 0 .25rem;
  border-radius: var(--radius-full); background: var(--destructive); color: var(--destructive-foreground);
  font-size: .6875rem; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: 2px;
}

/* ==================== 쪽지 · inbox 스킨 (skin/memo/inbox) ====================
 * 표 대신 메일함처럼 아바타 원형 + 발신자/미리보기/시간을 한 줄에 늘어놓는다. */
.mi-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.1rem;
}
.mi-head h1 { margin: 0; font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.mi-head .count { color: var(--muted-foreground); font-size: var(--text-sm); }

.mi-tabs { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.mi-tab {
  padding: .5rem 1rem; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600;
  color: var(--muted-foreground); position: relative;
}
.mi-tab:hover { background: var(--muted); color: var(--foreground); }
.mi-tab.on { background: var(--brand); color: var(--brand-foreground); }
.mi-tab .n {
  margin-left: .35rem; font-size: .7rem; padding: 0 .35rem; border-radius: var(--radius-full);
  background: color-mix(in srgb, currentColor 20%, transparent);
}
.mi-compose { margin-left: auto; }

.mi-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); }
.mi-row {
  position: relative;
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem;
  border-top: 1px solid var(--border-subtle); transition: background .15s;
}
.mi-row:first-child { border-top: none; }
.mi-row:hover { background: var(--muted); }
.mi-row.is-unread { background: color-mix(in srgb, var(--brand) 4%, var(--card)); }
/* <a> 안에는 <form> 을 넣을 수 없으므로(HTML 에서 금지), 삭제 폼은 링크의
 * 형제로 두고 링크 쪽만 아바타 · 내용 · 시각을 감싸 눌리는 영역으로 삼는다. */
.mi-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .9rem;
  color: inherit; text-decoration: none;
}

.mi-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--text-sm); font-weight: 700;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand);
}
.mi-row.is-unread .mi-avatar { background: var(--brand); color: var(--brand-foreground); }

.mi-main { flex: 1; min-width: 0; }
.mi-line1 { display: flex; align-items: baseline; gap: .5rem; }
.mi-peer { font-size: var(--text-sm); font-weight: 600; color: var(--foreground); flex: none; }
.mi-row.is-unread .mi-peer { font-weight: 800; }
.mi-snippet {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-sm); color: var(--muted-foreground);
}
.mi-row.is-unread .mi-snippet { color: var(--foreground); font-weight: 500; }
.mi-dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.mi-time { flex: none; font-size: var(--text-xs); color: var(--muted-foreground); min-width: 3.6rem; text-align: right; }
.mi-del { flex: none; }
.mi-del button {
  border: none; background: none; color: var(--muted-foreground); cursor: pointer;
  padding: .3rem; border-radius: 6px; line-height: 1;
}
.mi-del button:hover { background: var(--destructive); color: var(--destructive-foreground); }
.mi-empty { padding: 3.5rem 1rem; text-align: center; color: var(--muted-foreground); }

/* 상세 보기 — 대화창처럼 */
.mi-thread { max-width: 42rem; margin: 0 auto; }
.mi-bubble-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.mi-bubble-head .mi-avatar { width: 44px; height: 44px; font-size: var(--text-base); }
.mi-bubble-head .who { font-weight: 700; font-size: var(--text-base); }
.mi-bubble-head .when { font-size: var(--text-xs); color: var(--muted-foreground); }
.mi-bubble {
  background: var(--muted); border-radius: 18px 18px 18px 4px;
  padding: 1.1rem 1.25rem; font-size: var(--text-sm); line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
}
.mi-actions { display: flex; gap: .5rem; margin-top: 1.25rem; }
.mi-actions form:last-child { margin-left: auto; }

/* 쓰기 폼 */
.mi-compose-card { max-width: 34rem; margin: 0 auto; }

@media (max-width: 560px) {
  .mi-time { display: none; }
  .mi-row { gap: .6rem; padding: .8rem .9rem; }
}

/* ═══════════ 푸터 ═══════════ */


/* ═══════════ 팝업 ═══════════ */

.popup-layer {
  position: fixed; z-index: 200;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 20px 50px rgb(0 0 0 / .18);
  overflow: hidden; max-width: calc(100vw - 2rem);
}
.popup-layer .p-body { padding: 1.25rem; overflow: auto; }
.popup-layer .p-foot {
  display: flex; align-items: center; gap: .5rem;
  padding: .625rem .875rem; border-top: 1px solid var(--border);
  background: var(--muted); font-size: var(--text-xs);
}
.popup-layer .p-foot button {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  color: var(--muted-foreground); font-family: inherit; font-size: var(--text-xs);
}

/* ═══════════ 반응형 ═══════════ */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { --cols: 3 !important; }
}

@media (max-width: 768px) {

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { --cols: 2 !important; }

  .page-head h1 { font-size: var(--text-xl); }
  .post-head h1 { font-size: var(--text-lg); }

  .dl { grid-template-columns: 5.5rem 1fr; }
  table.list .hide-sm { display: none; }
  table.list thead th, table.list tbody td { padding: .75rem .625rem; }
  .searchbar input[type=search], .searchbar input[type=text] { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .gallery-grid { --cols: 1 !important; }
  .comment.depth-1 { padding-left: 1.75rem; }
  .comment.depth-2 { padding-left: 2.5rem; }
  .comment.depth-3, .comment.depth-4 { padding-left: 3.25rem; }
}

@media print {
  .site-header, .site-footer, .sol-tabbar, #top-btn, .post-actions, .comment-form,
  .vote-row, .pagination, .searchbar { display: none !important; }
  body { background: #fff; }
}

/* ═══════════ 글쓰기 첨부파일 목록 ═══════════ */

.file-list { display: flex; flex-direction: column; gap: .5rem; }
.file-list:empty { display: none; }

.file-item {
  display: flex; align-items: center; gap: .625rem; flex-wrap: wrap;
  padding: .5rem .75rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm, .375rem);
  background: var(--card);
}
.file-item.is-deleted { opacity: .45; text-decoration: line-through; }

.file-item .file-name {
  flex: 1 1 10rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .875rem; font-weight: 500;
}
.file-item .file-size { flex: none; font-size: .75rem; color: var(--muted-foreground); }
.file-item .file-caption { flex: 1 1 12rem; min-width: 0; max-width: 18rem; }

.file-item .file-remove {
  flex: none; display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .5rem; border: 0; border-radius: .375rem;
  background: transparent; color: var(--muted-foreground);
  font: inherit; font-size: .8125rem; cursor: pointer;
}
.file-item .file-remove:hover { background: var(--muted); color: var(--destructive); }

.file-add { display: flex; align-items: center; gap: .625rem; margin-top: .5rem; }

/* 에디터가 붙은 자리 — 라이브러리 CSS 위에 테마 경계만 맞춘다 */
.mublo-editor-container {
  border: 1px solid var(--input); border-radius: var(--radius-sm, .375rem); overflow: hidden;
}

:root {
  --brand: #5e6ad2;
  --brand-foreground: #ffffff;
  --brand-hover: #828fff;    /* primary-hover */
  --brand-active: #5e69d1;   /* primary-focus */
  --header-height: 68px;
}

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--background) 84%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .hd-main {
  display: flex; align-items: center;
  height: var(--header-height); gap: 1.5rem;
}

/* ── 로고 ── */
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand .mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-lg);   /* --r-md = 8px */
  background: var(--brand); color: var(--brand-foreground);
  font-weight: 700; font-size: 16px; line-height: 1;
}
.brand .wordmark {
  font-size: 22px; font-weight: 600;
  letter-spacing: -.4px; color: var(--foreground); line-height: 1;
}
.brand:hover { color: var(--foreground); }

/* ── GNB (헤더 안에 들어간다) ── */
.gnb { flex: 1 1 auto; min-width: 0; }
.gnb-1d { display: flex; align-items: center; gap: 2px; }
.gnb-1li { position: relative; }
.gnb-1a {
  display: block; padding: 8px 13px; border-radius: var(--radius-lg);   /* --r-md = 8px */
  font-size: 14px; font-weight: 500; color: var(--muted-foreground); white-space: nowrap;
  transition: background-color .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1);
}
.gnb-1li:hover > .gnb-1a { color: var(--foreground); background: var(--muted); }
.gnb-1li.is-active > .gnb-1a { color: var(--foreground); font-weight: 600; }

.gnb-2d {
  position: absolute; top: 100%; left: -14px; z-index: 50;
  min-width: 208px; padding: 10px; margin-top: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: 0 10px 30px rgb(0 0 0 / .08);   /* --r-lg = 12px */
  opacity: 0; visibility: hidden; transform: translateY(-2px);
  transition: opacity .16s cubic-bezier(.4,0,.2,1), transform .16s cubic-bezier(.4,0,.2,1), visibility .16s;
}
.gnb-1li:hover > .gnb-2d, .gnb-1li:focus-within > .gnb-2d {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.gnb-2d a {
  display: block; padding: 10px 12px; font-size: 14px;
  color: var(--muted-foreground); border-radius: var(--radius-lg);
}
.gnb-2d a:hover, .gnb-2d a:focus { background: var(--muted); color: var(--foreground); }

/* ── 도구줄 ── */
.hd-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }

/* search-btn 그대로 — 값 하나까지 원본과 맞춘다 */
.hd-search {
  display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 14px;
  background: var(--card); color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans); font-size: 14px; cursor: pointer;
  transition: border-color .16s cubic-bezier(.4,0,.2,1);
}
.hd-search:hover, .hd-search:focus-visible { border-color: var(--ring); color: var(--muted-foreground); }
.hd-search svg { flex: none; }
.hd-search .kbd {
  margin-left: 14px; flex: none;
  font-family: var(--font-mono); background: var(--muted); color: var(--muted-foreground);
  border-radius: 4px; padding: 3px 6px; font-size: 11px; font-weight: 600; line-height: 1.3;
}
/* 드로어 안에서는 전체 폭 ( .drawer-search .search-btn) */
.drawer-search .hd-search { justify-content: flex-start; }

/* 도구줄 버튼 높이는 35px 로 통일한다 (.btn.btn-sm.btn-* 의 min-height:40px 을 덮는다) */
.hd-tools .hd-search,
.hd-tools .mhd-btn,
.hd-tools .btn.btn-sm {
  height: 35px; min-height: 35px;
  padding-top: 0; padding-bottom: 0;
}
.hd-tools .theme-group { height: 35px; }
.hd-tools .theme-opt { height: 27px; }
.hd-tools .mhd-btn { width: 35px; }

.hd-user { display: flex; align-items: center; gap: 10px; }
.hd-user .btn.btn-sm { font-size: 12px; font-weight: 500; }

/* ── 테마 세그먼트 (시스템 / 라이트 / 다크) ── */
.theme-group {
  display: flex; align-items: center; gap: 2px; padding: 3px; flex: 0 0 auto;
  background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-xl);
}
.theme-opt {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius-lg);
  color: var(--muted-foreground); cursor: pointer;
  transition: background-color .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1);
}
.theme-opt:hover { color: var(--foreground); }
.theme-opt[aria-pressed="true"] { background: var(--card); color: var(--foreground); }

/* ── 좁은 화면 ── */



/* ═══════════ 모바일 (drawer / modal / chips 이식) ═══════════ */

/* 화면에서만 숨기고 스크린리더에는 남긴다 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 헤더의 아이콘 버튼 — .mhd-btn */
.mhd-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border); color: var(--muted-foreground);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: background-color .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1),
              border-color .16s cubic-bezier(.4,0,.2,1);
}
.mhd-btn:hover, .mhd-btn:focus { background: var(--muted); color: var(--foreground); border-color: var(--ring); }

/* 좁은 화면 전용 — .mhd-btn 의 display:flex 를 덮어야 하므로 반드시 뒤에 온다 */
.mob-only { display: none; }

/* 배경 스크롤 잠금 */
body.drawer-open { overflow: hidden; }

/* ── 드로어 ── */
.sol-drawer { position: fixed; inset: 0; z-index: 1000; display: none; }
.sol-drawer.is-open { display: block; }

.drawer-backdrop {
  position: absolute; inset: 0; background: #000;
  opacity: 0; transition: opacity .16s cubic-bezier(.4,0,.2,1);
}
.sol-drawer.is-open .drawer-backdrop { opacity: .6; }

.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: var(--card); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  padding-top: calc(16px + env(safe-area-inset-top));
  transform: translateX(100%);
  transition: transform .16s cubic-bezier(.4,0,.2,1);
  box-shadow: -16px 0 40px rgb(0 0 0 / .4);
}
.sol-drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border); flex: 0 0 auto;
}
.drawer-hd .brand { margin-right: auto; }
.drawer-hd .mhd-btn { width: 34px; height: 34px; }

.drawer-body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px;
}
.drawer-auth { display: flex; gap: 8px; }
.drawer-auth .btn { flex: 1 1 0; min-height: 44px; }
.drawer-search .hd-search { width: 100%; height: 44px; background: var(--muted); }

.drawer-online {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--radius-xl);
  background: var(--muted); color: var(--muted-foreground);
  font-size: 13px;
  transition: background-color .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1);
}
.drawer-online strong { color: var(--foreground); font-weight: 700; }
.drawer-online:hover, .drawer-online:focus { background: var(--card); color: var(--foreground); }

.drawer-nav { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.drawer-row { display: flex; align-items: center; min-height: 48px; border-radius: var(--radius-xl); }
.drawer-row > a {
  flex: 1 1 auto; min-height: 48px; display: flex; align-items: center;
  padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--foreground);
}
.drawer-nav > li.is-open > .drawer-row, .drawer-row:hover { background: var(--muted); }
.drawer-nav > li.is-open > .drawer-row > a { color: var(--brand); font-weight: 600; }

.drawer-toggle {
  flex: 0 0 auto; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--muted-foreground); cursor: pointer;
  transition: transform .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1);
}
.drawer-nav > li.is-open .drawer-toggle { color: var(--brand); transform: rotate(180deg); }

.drawer-sub { display: none; padding: 2px 0 4px; }
.drawer-nav > li.is-open .drawer-sub { display: block; }
.drawer-sub a {
  display: flex; align-items: center; min-height: 40px;
  padding: 8px 12px 8px 30px; border-radius: var(--radius-xl);
  font-size: 14px; color: var(--muted-foreground);
}
.drawer-sub a:hover, .drawer-sub a:focus { color: var(--foreground); background: var(--muted); }

.drawer-util {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.drawer-util-label { font-size: 13px; font-weight: 500; color: var(--muted-foreground); }

/* ── 검색 모달 ── */
.sol-modal { position: fixed; inset: 0; z-index: 1100; display: none; }
.sol-modal.is-open { display: block; }

.modal-backdrop {
  position: absolute; inset: 0; background: #000;
  opacity: 0; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: opacity .16s cubic-bezier(.4,0,.2,1);
}
.sol-modal.is-open .modal-backdrop { opacity: .6; }

/* 한 장의 카드 안에 줄을 나눠 쌓는다 — 안쪽 여백 대신 구역마다 경계선 */
.modal-panel {
  position: relative; margin: 13vh auto 0;
  max-width: 600px; width: calc(100% - 32px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 0; overflow: hidden;
  box-shadow: 0 20px 60px rgb(0 0 0 / .4);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .16s cubic-bezier(.4,0,.2,1), transform .16s cubic-bezier(.4,0,.2,1);
}
.sol-modal.is-open .modal-panel { opacity: 1; transform: translateY(0); }

/* 입력줄 */
.modal-field {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: transparent; border-radius: 0;
}
.modal-field > svg { flex: 0 0 auto; color: var(--muted-foreground); }
.modal-field:focus-within > svg { color: var(--brand); }
.modal-field input[type=text] {
  flex: 1 1 auto; min-width: 0; height: auto; padding: 0;
  border: 0; background: transparent; outline: 0; box-shadow: none;
  color: var(--foreground); font-size: 15px; font-weight: 500; line-height: 1.6;
}
.modal-field input:focus { border: 0; box-shadow: none; }

.modal-x {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  background: none; border: 0; color: var(--muted-foreground);
  border-radius: 6px; cursor: pointer;
  transition: color .16s, background-color .16s;
}
.modal-x:hover { color: var(--foreground); background: var(--muted); }

/* 고급 검색 */
.modal-adv { padding: 10px 20px; border-bottom: 1px solid var(--border); }
.modal-adv-t {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; background: none; border: 0;
  font-size: 12px; color: var(--muted-foreground); cursor: pointer;
}
.modal-adv-t:hover { color: var(--foreground); }
.modal-adv-caret { display: inline-block; transition: transform .16s cubic-bezier(.4,0,.2,1); }
.modal-adv.is-open .modal-adv-caret { transform: rotate(90deg); }
.modal-adv-body { margin-top: 10px; }
.modal-adv-body .modal-sec-t { margin: 0 0 6px; }
.modal-adv-body .modal-chips + .modal-sec-t { margin-top: 12px; }

.modal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-chip {
  padding: 4px 10px;
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted-foreground); font-size: 12px; font-weight: 400; line-height: 1.6;
  font-family: inherit; cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s;
}
.modal-chip:hover { background: var(--muted); color: var(--foreground); }
.modal-chip.on {
  background: var(--brand); border-color: var(--brand); color: var(--brand-foreground);
}
.modal-chip:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }

/* 구역 (최근 검색 · 추천 검색어) */
.modal-sec { padding: 10px 20px 14px; border-bottom: 1px solid var(--border); }
.modal-sec-t {
  margin-bottom: 6px;
  font-size: 11px; font-weight: 400; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.modal-sec ul { list-style: none; margin: 0; padding: 0; }

/* 최근 검색 — 한 줄씩, 오른쪽에 지우기 */
.modal-recent-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: 6px;
}
.modal-recent-list li:hover { background: var(--muted); }
.modal-recent-list a {
  flex: 1 1 auto; min-width: 0; padding: 6px 8px;
  font-size: 13px; color: var(--muted-foreground);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal-recent-list li:hover a { color: var(--foreground); }
.modal-recent-del {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-right: 4px; padding: 0;
  font-size: 14px; line-height: 1;
  background: none; border: 0; border-radius: 4px;
  color: var(--muted-foreground); cursor: pointer;
}
.modal-recent-del:hover { color: var(--foreground); background: var(--background); }

/* 추천 검색어 — 칩 */
.modal-pop ul { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-pop a {
  display: inline-flex; align-items: center; padding: 4px 10px;
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted-foreground); font-size: 12px; font-weight: 400; line-height: 1.6;
}
.modal-pop a:hover, .modal-pop a:focus {
  background: var(--muted); border-color: var(--ring); color: var(--foreground);
}

/* 아래 안내 */
.modal-hint {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin: 0; padding: 10px 20px;
  font-size: 12px; line-height: 1.4; color: var(--muted-foreground);
}
.modal-hint kbd {
  display: inline-block; padding: 2px 6px;
  font-family: inherit; font-size: 11px; line-height: 1.4;
  background: var(--muted); border: 1px solid var(--border);
  border-radius: 4px; color: var(--foreground);
}
.modal-hint b { color: var(--foreground); font-weight: 500; }

/* ═══════════ 전체 메뉴 (넓은 화면 전용 — site_map 전체화면 오버레이 이식) ═══════════
   sol-drawer 는 좁은 화면에서 옆으로 여는 패널이고, 이건 넓은 화면에서 화면 전체를
   덮는 사이트맵 그리드다. 열고닫기 규칙(is-open 토글, 포커스 트랩)은 드로어·모달과 같다. */
.sol-menu-all { position: fixed; inset: 0; z-index: 1050; display: none; }
.sol-menu-all.is-open { display: block; }

.menu-all-panel {
  position: absolute; inset: 0; overflow-y: auto;
  background: var(--background);
  opacity: 0; transition: opacity .2s cubic-bezier(.4,0,.2,1);
}
.sol-menu-all.is-open .menu-all-panel { opacity: 1; }

.menu-all-top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1248px; margin: 0 auto; padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.menu-all-close {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--muted-foreground); border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1),
              transform .3s cubic-bezier(.4,0,.2,1);
}
.menu-all-close:hover { background: var(--muted); color: var(--foreground); transform: rotate(90deg); }

.menu-all-grid {
  max-width: 1248px; margin: 0 auto; padding: 40px 24px 60px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
  counter-reset: menuall;
}
.menu-all-card {
  position: relative; counter-increment: menuall;
  padding: 32px 18px 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color .2s cubic-bezier(.4,0,.2,1), box-shadow .2s cubic-bezier(.4,0,.2,1),
              transform .2s cubic-bezier(.4,0,.2,1);
}
.menu-all-card:hover { border-color: var(--ring); box-shadow: 0 14px 32px rgb(0 0 0 / .08); transform: translateY(-4px); }
.menu-all-card::before {
  content: counter(menuall, decimal-leading-zero);
  position: absolute; top: 18px; right: 20px;
  font-size: 12px; font-weight: 700; color: var(--border); letter-spacing: .05em;
}
.menu-all-card-t {
  display: block; font-size: 17px; font-weight: 700; color: var(--foreground);
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
  transition: color .2s cubic-bezier(.4,0,.2,1);
}
.menu-all-card:hover .menu-all-card-t { color: var(--brand); }
.menu-all-sub { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu-all-sub a {
  display: block; padding: 8px 6px; border-radius: var(--radius-lg);
  font-size: 13.5px; color: var(--muted-foreground);
}
.menu-all-sub a:hover, .menu-all-sub a:focus { background: var(--muted); color: var(--foreground); }

.menu-all-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  max-width: 1248px; margin: 0 auto; padding: 20px 24px 40px; border-top: 1px solid var(--border);
}
.menu-all-foot a {
  padding: 8px 14px; border-radius: var(--radius-lg); font-size: 13px; font-weight: 500;
  color: var(--muted-foreground);
}
.menu-all-foot a:hover, .menu-all-foot a:focus { background: var(--muted); color: var(--foreground); }

@media (max-width: 768px) {
  .mob-only { display: flex; }
  .gnb, .hd-tools { display: none; }
  .site-header .hd-main { height: 56px; gap: 4px; }
  .site-header .brand { margin-right: auto; }
  .site-header { border-bottom: 0; }
  .brand .wordmark { font-size: 19px; }
  .modal-field input[type=text] { font-size: 16px; }
  .modal-hint { justify-content: flex-start; }
  /* 좁은 화면에서는 전체메뉴 대신 sol-drawer 를 쓴다 (버튼 자체가 hd-tools 안이라 이미 안 보이지만, 안전하게 한 번 더 막는다) */
  .sol-menu-all { display: none !important; }
}

/* ═══════════ 푸터 ( footer.php 이식) ═══════════
    푸터는 가운데 정렬된 링크 한 줄이 전부다.
   저작권·통계·언어는  가 사업자정보용으로 남겨 둔 보조 줄에 얹었다. */

.site-footer {
  background: var(--background); border-top: 1px solid var(--border);
  margin-top: 48px; position: relative;
}
.ft-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 16px; padding: 24px 0;
}
.ft-links a { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.ft-links a:hover, .ft-links a:focus { color: var(--foreground); text-decoration: underline; }
.ft-links .sep { color: var(--muted-foreground); opacity: .5; font-size: 14px; line-height: 1.5; user-select: none; }

.ft-biz {
  margin: 0 0 24px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 1.6; color: var(--muted-foreground); text-align: center;
}
.ft-biz p { margin: 0; }
.ft-biz .ft-stats { margin-left: 8px; opacity: .8; }

.ft-biz .lang-switch {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 6px;
}
.ft-biz .lang-switch a { padding: 2px 8px; border-radius: 4px; color: var(--muted-foreground); }
.ft-biz .lang-switch a.on { background: var(--primary); color: var(--primary-foreground); }

/* ── 상단으로 ── */
#top-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 800;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-lg);
  background: var(--muted); color: var(--foreground);
  border: 1px solid var(--ring); cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .16s cubic-bezier(.4,0,.2,1), visibility .16s;
}
#top-btn.is-on { opacity: 1; visibility: visible; }
#top-btn:hover { background: var(--card); }

/* ── 모바일 하단 탭바 ── */
.sol-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
  display: none; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.sol-tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 56px; font-size: 11px; color: var(--muted-foreground);
}
.sol-tabbar a.is-active { color: var(--foreground); font-weight: 500; }
.sol-tabbar a.is-active svg { color: var(--brand); }

@media (max-width: 768px) {
  .sol-tabbar { display: grid; }
  body.has-tabbar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  /* 탭바에 가리지 않도록 상단버튼을 올린다 */
  #top-btn { bottom: calc(56px + 16px + env(safe-area-inset-bottom)); right: 16px; }
}
@media (max-width: 400px) {
  .sol-tabbar a { font-size: 10px; }
}

/* 나머지 인증 계열 화면(비밀번호 찾기·확인·탈퇴 등)이 쓰는 기존 레이아웃.
   로그인만  구조로 바꿨으므로 이 규칙은 그대로 남겨 둔다. */
.auth-wrap { max-width: 26rem; margin: 3rem auto; }
.auth-wrap .card-body { padding: 2rem; }
.auth-wrap h1 { font-size: var(--text-xl); text-align: center; margin-bottom: 1.5rem; }
.auth-links {
  display: flex; justify-content: center; gap: .75rem;
  margin-top: 1.25rem; font-size: var(--text-sm); color: var(--muted-foreground);
}

/* ═══════════ 로그인·회원 인증 카드 ( login.skin.php 이식) ═══════════ */

.auth { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 48px 0; }

.auth-card {
  width: 100%; max-width: 420px; position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
}
/*  카드 상단의 얇은 하이라이트 선 */
.auth-card::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0;
  height: 1px; background: var(--ring); opacity: .5;
}

.auth-brand { justify-content: center; margin-bottom: 24px; }

.auth-title {
  margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4;
  letter-spacing: -.2px; color: var(--foreground); text-align: center;
}
.auth-lead {
  margin: 8px 0 24px; font-size: 14px; line-height: 1.5;
  color: var(--muted-foreground); text-align: center;
}

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.field input[type=text], .field input[type=password], .field input[type=email] {
  width: 100%; height: 44px; padding: 8px 12px;
  background: var(--muted); color: var(--foreground);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-size: 16px; letter-spacing: -.05px;
}
.field input::placeholder { color: var(--muted-foreground); opacity: .7; }
.field input:focus {
  border-color: var(--ring);
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 0;
  box-shadow: none;
}

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 0 0 24px;
}
.check {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  font-size: 14px; color: var(--muted-foreground); cursor: pointer;
}
.check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.auth-find { font-size: 13px; color: var(--muted-foreground); }
.auth-find:hover { color: var(--foreground); text-decoration: underline; }

.auth-submit { width: 100%; min-height: 44px; }

.auth-foot {
  margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted-foreground); text-align: center;
}
.auth-foot a { color: var(--brand); font-weight: 500; margin-left: 4px; }
.auth-foot a:hover { color: var(--brand); text-decoration: underline; }

/* 소셜 로그인 —  는 카드 안에서 세로로 쌓는다 */
.auth-card .social-login { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.auth-card .social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: var(--radius-lg);
  font-size: 14px; font-weight: 500;
}

/* 회원가입 — 단계 표시 · 약관 블록 · 전체 동의 ( register.skin.php) */
.auth-wide { max-width: 480px; }

.steps {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 0 0 24px; padding: 0; list-style: none;
}
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); }
.steps li span {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: var(--radius-full);
  background: var(--muted); color: var(--muted-foreground);
  font-size: 12px; font-weight: 600;
}
.steps li.is-on { color: var(--foreground); }
.steps li.is-on span { background: var(--brand); color: var(--brand-foreground); }

.terms-block { margin-bottom: 24px; }
.terms-block h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--foreground); }
.terms-block h2 em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--brand); }

.check-all {
  width: 100%; justify-content: center; margin-bottom: 16px; padding: 8px;
  background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.check-all span { font-weight: 500; color: var(--foreground); }

@media (max-width: 480px) {
  .auth { padding: 24px 0; }
  .auth-card { padding: 24px; }
}

/* ═══════════ 프로모션 캐러셀 ( home-promo 이식) ═══════════
   원본: /home/project1/www/theme//css/.css (.home-promo 계열)
    --r-xl 은 16px 로 SolCMS 반경 스케일에 없는 값이라 숫자로 적는다. */

.promo { --promo-dur: 260ms; padding-top: 32px; margin-bottom: 32px; }

.promo-viewport {
  position: relative; overflow: hidden;
  border-radius: 16px;                        /*  --r-xl */
  background: var(--card); border: 1px solid var(--border);
}
.promo-viewport::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0;
  height: 1px; background: var(--ring); opacity: .5; z-index: 1;
}

.promo-track {
  display: flex; margin: 0; padding: 0;
  transition: transform var(--promo-dur) cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.promo-slide {
  flex: 0 0 100%; min-width: 0;
  display: flex; align-items: center; gap: 32px;
  padding: 32px 48px;
}
.promo.has-dots .promo-slide { padding-bottom: 64px; }

.promo-media {
  flex: 0 0 240px; display: block; overflow: hidden;
  border-radius: var(--radius-xl); background: var(--muted); border: 1px solid var(--border);
}
.promo-media img { display: block; width: 100%; height: auto; }

/* 좌우로 30px 씩 들여 폭을 줄인다 — 화살표와 겹치던 첫 글자도 함께 비켜난다 */
.promo-body { flex: 1 1 auto; min-width: 0; margin-left: 30px; margin-right: 30px; }

.promo-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; margin-bottom: 12px;
  border-radius: var(--radius-full); background: var(--muted); border: 1px solid var(--ring);
  color: var(--muted-foreground); font-size: 11px; font-weight: 500;
}
.promo-title {
  margin: 0 0 8px; font-size: 28px; font-weight: 600;
  line-height: 1.2; letter-spacing: -.6px; color: var(--foreground);
}
.promo-desc {
  margin: 0 0 24px; font-size: 16px; line-height: 1.5;
  color: var(--muted-foreground); max-width: 52ch;
}
.promo-cta { min-height: 44px; }

.promo-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--muted); color: var(--muted-foreground);
  border: 1px solid var(--ring); border-radius: var(--radius-full); cursor: pointer;
  transition: background-color .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1);
}
.promo-nav:hover { background: var(--card); color: var(--foreground); }
.promo-prev { left: 16px; }
.promo-next { right: 16px; }

.promo-dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 4px 6px; background: var(--muted);
  border: 1px solid var(--ring); border-radius: var(--radius-full);
}
.promo-dots button {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius-full);
}
.promo-dots button::after {
  content: ""; width: 6px; height: 6px; border-radius: var(--radius-full);
  background: var(--ring); transition: background-color .16s cubic-bezier(.4,0,.2,1);
}
.promo-dots button:hover::after { background: var(--muted-foreground); }
.promo-dots button.is-active::after { background: var(--brand); }

@media (max-width: 1024px) {
  .promo-slide { padding: 24px 32px; gap: 24px; }
  .promo.has-dots .promo-slide { padding-bottom: 48px; }
  .promo-media { flex-basis: 180px; }
  .promo-title { font-size: 24px; letter-spacing: -.4px; }
}
@media (max-width: 768px) {
  .promo-slide { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
  .promo.has-dots .promo-slide { padding-bottom: 56px; }
  .promo-media { flex-basis: auto; width: 100%; }
  .promo-title { font-size: 20px; letter-spacing: -.2px; }
  .promo-desc { font-size: 15px; margin-bottom: 16px; }
  .promo-body { margin-left: 0; margin-right: 0; }   /* 좁은 화면은 원래 여백 유지 */
  .promo-nav { display: none; }   /* 모바일은 스와이프 + 점으로 */
  .promo-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-track { transition: none; }
}

/* ── 주소 검색 (카카오 우편번호) ──────────────────────────
   위젯이 흰 배경으로 그려지므로 다크 테마에서도 바탕을 흰색으로 둔다. */
.addr-box {
  position: relative;
  height: 420px; margin: 0 0 .4rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.addr-box-embed { width: 100%; height: 100%; }
.addr-box-close {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #d4d4d8; border-radius: 6px;
  background: #fff; color: #52525b; cursor: pointer; line-height: 1;
}
.addr-box-close:hover { background: #f4f4f5; color: #18181b; }

/* ── 자동등록방지 (캡챠) ──────────────────────────────── */
.captcha-box { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.captcha-img {
  display: block; width: 160px; height: 50px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #f5f5f7;
}
.captcha-input { flex: 1 1 8rem; min-width: 0; max-width: 12rem; letter-spacing: .12em; text-transform: uppercase; }
.captcha-row .g-recaptcha { margin-top: .25rem; }

/* 목록 하단 작업줄 — 새글모음 선택 삭제 */
.list-foot {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .875rem 1rem; border-top: 1px solid var(--border);
}
.list-foot .hint { margin: 0; }

/* ═══════════ 본문 원본이미지 ═══════════ */

.img-original { display: inline-block; cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 3.5rem;
  background: rgb(0 0 0 / .82);
}
/* display:flex 가 브라우저 기본 [hidden] 규칙을 이겨서 닫아도 사라지지 않는다.
   숨김을 여기서 다시 못박는다. */
.lightbox[hidden] { display: none; }
.lightbox-body { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox-body img {
  max-width: 100%; max-height: calc(100vh - 6rem);
  object-fit: contain; border-radius: var(--radius);
}
.lightbox-body figcaption {
  margin-top: .6rem; color: #e5e7eb; font-size: var(--text-sm);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; line-height: 1;
  color: #fff; background: rgb(255 255 255 / .12);
  border: 0; border-radius: var(--radius-full); cursor: pointer;
}
.lightbox-close:hover { background: rgb(255 255 255 / .24); }
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 이전 / 다음 */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; line-height: 1;
  color: #fff; background: rgb(255 255 255 / .12);
  border: 0; border-radius: 6px; cursor: pointer;
}
.lightbox-nav:hover { background: rgb(255 255 255 / .24); }
.lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }

.lightbox-count {
  margin: .35rem 0 0; color: #9ca3af; font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

/* 좁은 화면에서는 화살표가 사진을 덮는다. 아래쪽으로 내려 사진을 가리지 않게 한다. */
@media (max-width: 640px) {
  .lightbox { padding: 3.5rem .75rem 4.5rem; }
  .lightbox-nav {
    top: auto; bottom: .75rem; transform: none;
    width: 2.75rem; height: 2.75rem; font-size: 1.5rem;
  }
  .lightbox-prev { left: 25%; }
  .lightbox-next { right: 25%; }
}

/* 비밀번호 찾기 — 방법 선택 탭 */
.auth-tabs { justify-content: center; margin-bottom: 1.1rem; }
.auth-tabs a { border-radius: 6px; }

/* ==================== 회원 · dashboard 스킨 (skin/member/dashboard) ====================
 * 로그인/가입 등 인증 화면은 좌: 브랜드 패널 · 우: 폼 의 분할 화면으로,
 * 마이페이지 쪽은 좌측 탭 사이드바가 있는 계정 대시보드 모양으로 바꾼다. */

/* ---- 인증 분할 화면 (login · register · password 등) ---- */
/* 뷰포트 전체 폭으로 뺄 수도 있지만(음수 마진 트릭) 스크롤바 유무에 따라
 * 가로 스크롤이 생기는 경우가 있어, 안전하게 .container 폭 안에 담은
 * 큰 분할 카드로 만든다. */
.ax-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 32rem;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  margin: 1rem 0 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
@media (max-width: 880px) { .ax-wrap { grid-template-columns: 1fr; min-height: 0; border-radius: 16px; } }

.ax-brand-panel {
  position: relative; overflow: hidden; padding: 3rem;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 55%),
    radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 55%),
    var(--brand);
  color: var(--brand-foreground);
}
@media (max-width: 880px) { .ax-brand-panel { display: none; } }
.ax-brand-panel .mark {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 2rem;
  background: color-mix(in srgb, var(--brand-foreground) 18%, transparent);
  display: grid; place-items: center; font-weight: 800; font-size: var(--text-lg);
}
.ax-brand-panel h2 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: var(--tracking-tight); margin: 0 0 .9rem; max-width: 22rem; }
.ax-brand-panel p { font-size: var(--text-base); opacity: .88; max-width: 24rem; line-height: 1.7; margin: 0 0 1.75rem; }
.ax-points { display: grid; gap: .8rem; }
.ax-point { display: flex; align-items: center; gap: .7rem; font-size: var(--text-sm); opacity: .95; }
.ax-point .ic {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-foreground) 20%, transparent);
  display: grid; place-items: center; font-size: .7rem;
}

.ax-form-panel { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.ax-form {
  width: 100%; max-width: 24rem;
}
.ax-form.ax-wide { max-width: 34rem; }
.ax-form-head { margin-bottom: 1.75rem; }
.ax-form-head h1 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: var(--tracking-tight); margin: 0 0 .4rem; }
.ax-form-head p { color: var(--muted-foreground); font-size: var(--text-sm); margin: 0; }

.ax-field { margin-bottom: 1.1rem; }
.ax-field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: .4rem; }
.ax-field input[type="text"], .ax-field input[type="password"],
.ax-field input[type="email"], .ax-field input[type="tel"] {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--foreground); font-size: var(--text-sm); font-family: inherit;
}
.ax-field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.ax-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; font-size: var(--text-sm); }
.ax-row a { color: var(--muted-foreground); }
.ax-row a:hover { color: var(--foreground); text-decoration: underline; }
.ax-submit { width: 100%; min-height: 46px; border-radius: 10px; }
.ax-foot { text-align: center; margin-top: 1.5rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.ax-foot a { color: var(--brand); font-weight: 700; margin-left: .3rem; }

.ax-steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.ax-steps li {
  flex: 1; list-style: none; text-align: center; font-size: var(--text-xs); font-weight: 700;
  padding-bottom: .6rem; border-bottom: 3px solid var(--border); color: var(--muted-foreground);
}
.ax-steps li.is-on { border-color: var(--brand); color: var(--brand); }

.ax-terms { margin-bottom: 1.1rem; }
.ax-terms h2 { font-size: var(--text-sm); font-weight: 700; margin: 0 0 .5rem; }
.ax-terms h2 em { color: var(--destructive); font-style: normal; font-weight: 600; font-size: var(--text-xs); margin-left: .3rem; }
.ax-terms-box {
  max-height: 8rem; overflow: auto; font-size: var(--text-xs); line-height: 1.7; color: var(--muted-foreground);
  border: 1px solid var(--border); border-radius: 10px; padding: .8rem .9rem; margin-bottom: .6rem;
}
.ax-check { display: flex; align-items: center; gap: .5rem; font-size: var(--text-sm); }
.ax-check-all {
  display: flex; align-items: center; gap: .5rem; font-size: var(--text-sm); font-weight: 700;
  padding: .8rem 0; margin: .5rem 0 1.25rem; border-top: 1px solid var(--border);
}

.ax-social { margin-top: 1.25rem; display: grid; gap: .5rem; }

/* ---- 계정 대시보드 (mypage · edit · posts · scrap · point · social) ---- */
.ad-shell { display: grid; grid-template-columns: 15rem 1fr; gap: 1.75rem; align-items: start; }
@media (max-width: 820px) { .ad-shell { grid-template-columns: 1fr; } }

.ad-side {
  border: 1px solid var(--border); border-radius: 16px; background: var(--card);
  padding: 1.5rem 1.25rem; position: sticky; top: calc(var(--header-height) + 1rem);
}
@media (max-width: 820px) { .ad-side { position: static; } }
.ad-id-card { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.ad-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: var(--text-base);
}
.ad-id-card .nick { font-weight: 700; font-size: var(--text-sm); }
.ad-id-card .lv { font-size: var(--text-xs); color: var(--muted-foreground); }
.ad-nav { display: grid; gap: .15rem; }
.ad-nav a {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 9px;
  font-size: var(--text-sm); font-weight: 600; color: var(--muted-foreground); position: relative;
}
.ad-nav a:hover { background: var(--muted); color: var(--foreground); }
.ad-nav a.on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.ad-nav a .n {
  margin-left: auto; font-size: .7rem; font-weight: 800; padding: .05rem .4rem; border-radius: var(--radius-full);
  background: var(--destructive); color: var(--destructive-foreground);
}
.ad-nav hr { border: none; border-top: 1px solid var(--border); margin: .6rem 0; }

.ad-main { min-width: 0; }
.ad-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.4rem; }
@media (max-width: 560px) { .ad-stats { grid-template-columns: repeat(2, 1fr); } }
.ad-stat {
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  padding: 1.1rem 1.2rem;
}
.ad-stat .k { font-size: var(--text-xs); color: var(--muted-foreground); margin-bottom: .3rem; }
.ad-stat .v { font-size: var(--text-xl); font-weight: 800; letter-spacing: var(--tracking-tight); }

.ad-card { border: 1px solid var(--border); border-radius: 16px; background: var(--card); overflow: hidden; }
.ad-card-head { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.ad-card-head h2 { margin: 0; font-size: var(--text-base); }
.ad-card-body { padding: 1.2rem 1.4rem; }

/* ═══════════ 태그 ═══════════ */

.post-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: 0; padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.post-tags a {
  display: inline-flex; align-items: center; padding: .25rem .6rem;
  background: var(--muted); color: var(--muted-foreground);
  border-radius: 6px; font-size: var(--text-sm);
}
.post-tags a:hover { background: var(--secondary); color: var(--foreground); }

/* 글쓰기 태그 입력 */
.tag-field {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  padding: .35rem .5rem;
  background: var(--background); border: 1px solid var(--input);
  border-radius: var(--radius-md);
}
.tag-field:focus-within { border-color: var(--ring); }
.tag-list { display: contents; list-style: none; margin: 0; padding: 0; }
.tag-chip {
  display: inline-flex; align-items: center; gap: .15rem;
  padding: .15rem .2rem .15rem .5rem;
  background: var(--muted); border-radius: 6px;
  font-size: var(--text-sm); color: var(--foreground);
}
.tag-chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; padding: 0;
  font-size: 1rem; line-height: 1;
  background: none; border: 0; border-radius: 4px;
  color: var(--muted-foreground); cursor: pointer;
}
.tag-chip-x:hover { color: var(--destructive); background: var(--background); }
.tag-field input[data-tag-input] {
  flex: 1 1 8rem; min-width: 6rem; width: auto;
  padding: .25rem 0; border: 0; background: transparent; box-shadow: none;
}
.tag-field input[data-tag-input]:focus { border: 0; box-shadow: none; }
.tag-field input[data-tag-input]:disabled { background: transparent; }

/* ═══════════ 통합검색 ═══════════ */

.search-page { width: 100%; margin: 0 auto; }

/* 큰 입력칸 하나. 버튼 없이 Enter 로 실행한다 */
.search-hero { margin-bottom: 1rem; }
/* 전역 input 규칙(input[type=search])보다 특정도가 높아야 여백이 먹는다 */
input[type=search].search-hero-input {
  /* 높이를 값으로 못박는다 — 글꼴이 바뀌어도 56px 를 유지한다 */
  box-sizing: border-box;
  width: 100%; height: 56px; padding: 0 20px;
  font-size: 16px; line-height: 1.6;
  color: var(--foreground); background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
}
input[type=search].search-hero-input:focus { border-color: var(--ring); box-shadow: none; }

.search-info {
  margin: 1rem 0; text-align: center;
  font-size: var(--text-sm); color: var(--muted-foreground);
}
.search-info b { color: var(--brand); font-weight: 600; }

/* 게시판 · 정렬 칩 */
.search-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 60px 0 .5rem; }
/* 이어지는 줄(정렬)은 첫 줄만큼 띄우지 않고 20px 만 둔다 */
.search-tabs + .search-tabs { margin-top: 20px; }
.search-sorts { margin-bottom: 1.25rem; }
.search-tab {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: 6px 14px;
  font-size: 13px; font-weight: 600; line-height: 1.7;
  color: var(--muted-foreground); background: transparent;
  border: 1px solid var(--border); border-radius: 8px;
}
.search-tab span { font-weight: 400; opacity: .8; }
.search-tab:hover { background: var(--muted); color: var(--foreground); }
.search-tab.on {
  background: var(--brand); border-color: var(--brand); color: var(--brand-foreground);
}
.search-tab.on:hover { color: var(--brand-foreground); }
/* 결과가 없는 게시판 — 눌러 볼 수는 있지만 한눈에 구분되게 흐리게 */
.search-tab.is-empty { opacity: .5; }
.search-tab.is-empty:hover { opacity: 1; }

/* 결과 0건 — 카드 없이 가운데로 (youngsam.net search-empty) */
.search-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted-foreground);
}
.search-empty h3 {
  margin: 0 0 8px;
  font-size: 18px; font-weight: 400; line-height: 1.7;
  color: var(--foreground);
}
.search-empty p { margin: 0; font-size: 14px; line-height: 1.7; }
.search-empty p.search-empty-hint { margin-top: 8px; font-size: 13px; }
/* 눌러 볼 만한 다른 검색어 */
.search-suggestions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin-top: 16px;
}

/* 결과 한 건 = 카드 하나 (제목만이 아니라 카드 전체가 링크다) */
.search-hit {
  display: block; padding: 16px 20px; margin-bottom: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  color: inherit;
  transition: border-color .16s ease, background-color .16s ease;
}
.search-hit:hover { border-color: var(--ring); background: var(--muted); color: inherit; }

.search-hit-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px; font-size: 12px; color: var(--muted-foreground);
}
.search-hit-badge {
  padding: 2px 8px; border-radius: 5px;
  font-size: 11px; font-weight: 700;
  color: var(--foreground); background: var(--muted);
}
.search-hit-date { margin-left: auto; }

.search-hit-title {
  margin-bottom: 4px;
  font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--foreground);
}
.search-hit-excerpt {
  font-size: 13px; line-height: 1.6; color: var(--muted-foreground);
  overflow-wrap: anywhere;
}
.search-hit-excerpt mark {
  padding: 0 1px; border-radius: 2px;
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--brand); font-weight: 600;
}

@media (max-width: 640px) {
  .search-hit-date { margin-left: 0; }
}

/* ═══════════ 게시판 카드형 목록 (youngsam.net /news · /community) ═══════════
   news · community 두 스킨이 함께 쓴다. 값은 원본 페이지에서 실측해 옮겼다. */

/* ── 머리말: 영문 라벨 · 제목 · 한 줄 설명 ── */
.bd-head { padding: 26px 0 24px; text-align: center; }
.bd-label {
  margin: 0 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--brand); text-transform: uppercase;
}
.bd-title { margin: 0 0 8px; font-size: 30px; font-weight: 700; line-height: 1.7; }
.bd-desc  { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--muted-foreground); }

/* ── 분류 칩 ── */
.bd-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin: 0 0 20px;
}
.bd-filter {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  font-size: 13px; font-weight: 600; line-height: 1.7;
  color: var(--muted-foreground); background: transparent;
  border: 1px solid var(--border); border-radius: 7px;
}
.bd-filter:hover { background: var(--muted); color: var(--foreground); }
.bd-filter.on {
  background: var(--brand); border-color: var(--brand); color: var(--brand-foreground);
}
.bd-filter.on:hover { color: var(--brand-foreground); }

/* ── 건수 · 정렬 · 검색 줄 ── */
.bd-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin: 0 0 16px;
}
.bd-toolbar-l, .bd-toolbar-r { display: flex; align-items: center; gap: 8px; }
.bd-count { font-size: 13px; color: var(--muted-foreground); }
.bd-count strong { font-weight: 700; color: var(--foreground); }

.bd-sorts { display: flex; gap: 2px; }
.bd-sort {
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; line-height: 1.7;
  color: var(--muted-foreground); background: transparent;
}
.bd-sort:hover { color: var(--foreground); }
.bd-sort.on {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

/* 아이콘 하나 + 입력칸 하나짜리 검색 상자 */
.bd-search {
  display: flex; align-items: center; gap: 6px;
  width: 220px; padding: 7px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
.bd-search > svg { flex: none; color: var(--muted-foreground); }
.bd-search:focus-within { border-color: var(--ring); }
/* 전역 input[type=search] 규칙보다 특정도가 높아야 테두리가 사라진다 */
.bd-search input[type=search] {
  flex: 1 1 auto; min-width: 0; height: auto; padding: 0;
  font-size: 13px; line-height: 1.7; color: var(--foreground);
  background: transparent; border: 0; box-shadow: none; outline: 0;
}
.bd-write { flex: none; }

/* ── 분류·상태 꼬리표 ── */
.bd-tag {
  display: inline-block; flex: none;
  padding: 2px 8px; border-radius: 5px;
  font-size: 11px; font-weight: 700; line-height: 1.7;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.bd-tag-green  { color: #22c08a; background: color-mix(in srgb, #22c08a 12%, transparent); }
.bd-tag-orange { color: #d98315; background: color-mix(in srgb, #d98315 12%, transparent); }
.bd-tag-red    { color: #ef4444; background: color-mix(in srgb, #ef4444 12%, transparent); }
:root:not([data-theme=light]) .bd-tag-green { color: #63e6be; }
:root:not([data-theme=light]) .bd-tag-orange { color: #ffa94d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .bd-tag-green  { color: #63e6be; }
  :root:not([data-theme=light]) .bd-tag-orange { color: #ffa94d; }
}
:root[data-theme=dark] .bd-tag-green  { color: #63e6be; }
:root[data-theme=dark] .bd-tag-orange { color: #ffa94d; }

/* ── 카드 목록 공통 ── */
.bd-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.bd-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 22px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  color: inherit;
  transition: border-color .18s cubic-bezier(.4,0,.2,1), background-color .18s cubic-bezier(.4,0,.2,1);
}
.bd-item:hover { border-color: var(--ring); background: var(--muted); color: inherit; }
/* 카드 테두리 안에서 링크가 차지하는 영역. 체크박스는 이 밖에 있어야 눌러도 글로 안 넘어간다 */
.bd-item-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: flex-start; gap: 16px;
  color: inherit;
}
.bd-item-body:hover { color: inherit; }
/* 관리 모드 체크박스 — 첫 줄 높이에 맞춰 세운다 */
.bd-row-check { flex: none; margin-top: 3px; }
.bd-item.is-notice { background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
.bd-info { flex: 1 1 auto; min-width: 0; }
.bd-item-title {
  margin-bottom: 4px;
  font-size: 15px; font-weight: 700; line-height: 1.7; color: var(--foreground);
  overflow-wrap: anywhere;
}
.bd-item-desc {
  font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── news 스킨: 왼쪽 날짜 + 분류 + 제목 + 발췌 ── */
/* 날짜는 카드 오른쪽 끝 (bd-info 가 남는 폭을 다 먹고 날짜가 밀려난다) */
.bd-news-date {
  flex: none; padding-top: 2px; white-space: nowrap; text-align: right;
  font-size: 12px; font-weight: 600; line-height: 1.7; color: var(--muted-foreground);
}
.bd-news-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }

/* ── community 스킨: 번호칸 + 분류줄 + 제목 + 메타, 오른쪽 날짜 ── */
/* 글번호 칸. 폭을 못박으면 글이 많은 게시판에서 "3,000,020" 같은 번호가
   상자 밖으로 삐져나온다. 최소 24px(공지 압정·한 자리 번호가 정사각으로 보이게)만
   지키고 번호 길이에 따라 늘어나게 둔다. */
.bd-notes-num {
  flex: none; display: grid; place-items: center;
  min-width: 24px; height: 24px; padding: 0 7px;
  margin-top: 2px; border-radius: 6px;
  font-size: 11px; font-weight: 700; line-height: 1;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--muted) 70%, transparent);
}
/* community 카드는 원본이 위아래 2px 더 넉넉하다 */
.bd-list-notes .bd-item { padding: 20px 22px; }
.bd-notes-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.bd-notes-meta { font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--muted-foreground); }
.bd-notes-side { flex: none; display: flex; align-items: flex-start; }
.bd-notes-date { font-size: 12px; line-height: 1.7; color: var(--muted-foreground); }

/* ── 글이 하나도 없을 때 ── */
.bd-empty { padding: 60px 20px; text-align: center; color: var(--muted-foreground); font-size: 14px; }

/* ── 관리 모드 일괄 작업 줄 ── */
.bd-manage-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px; padding: 10px 14px;
  background: var(--muted); border: 1px solid var(--border); border-radius: 10px;
}
.bd-manage-bar select { width: auto; }
.bd-manage-bar label,
.bd-manage-bar select { font-size: 11px; font-weight: 200; }
.bd-manage-bar button.btn-sm { font-size: 11px; }

@media (max-width: 640px) {
  .bd-head { padding: 32px 0 20px; }
  .bd-title { font-size: 24px; }
  .bd-toolbar-r { width: 100%; }
  .bd-search { width: auto; flex: 1 1 auto; }
  .bd-item { padding: 16px; gap: 12px; }
  .bd-notes-side { display: none; }
}

/* ═══════════ 게시물 읽기 — 카드 없는 문서형 (youngsam.net /community/{글}) ═══════════
   news 스킨이 쓴다. 값은 원본 페이지에서 실측해 옮겼다. */

/* 목록의 .bd-head 와 첫 여백을 맞춘다 (레이아웃이 이미 24px 을 준다) */
.view-page { padding: 56px 0 40px; }

.view-page > .breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 24px; font-size: 13px; line-height: 1.7;
}
.view-page > .breadcrumb span { margin: 0; opacity: .6; }

.view-header { margin-bottom: 32px; }
.view-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.view-title {
  margin: 0 0 16px;
  font-size: 28px; font-weight: 700; line-height: 1.4; color: var(--foreground);
  overflow-wrap: anywhere;
}

/* 글쓴이 줄 — 위아래 실선 사이에 아바타·이름·날짜, 오른쪽에 조회/댓글 */
.view-author {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.view-author-avatar {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--brand-foreground);
  font-size: 15px; font-weight: 700;
}
.view-author-info { min-width: 0; }
.view-author-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--foreground); }
.view-author-name a { color: inherit; }
.view-author-date { display: block; font-size: 12px; line-height: 1.7; color: var(--muted-foreground); }
.view-stats {
  margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; line-height: 1.7; color: var(--muted-foreground);
}

/* 본문 — 읽기 폭을 760px 로 묶는다 */
.article-content {
  max-width: 760px;
  font-size: 15px; font-weight: 300; line-height: 2; color: var(--foreground);
  overflow-wrap: anywhere;
}
.article-content p { margin: 0 0 16px; }
.article-content h2 { font-size: 20px; font-weight: 700; line-height: 2; margin: 28px 0 14px; }
.article-content h3 { font-size: 17px; font-weight: 700; line-height: 1.9; margin: 24px 0 12px; }
.article-content img { border-radius: 8px; }
.article-content hr { margin: 24px 0; border: 0; border-top: 1px solid var(--border); }

/* 태그 — 본문과 실선으로 나눈다 */
.view-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}

/* 목록·스크랩·수정 같은 조작 버튼 (원본에는 없다 — 우리 기능이라 태그 아래에 둔다) */
.view-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.view-actions .right { margin-left: auto; }
.view-actions form { display: inline; }

/* 이전 글 · 다음 글 */
.view-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.view-nav-item {
  padding: 16px 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  color: inherit;
  transition: border-color .18s cubic-bezier(.4,0,.2,1), background-color .18s cubic-bezier(.4,0,.2,1);
}
.view-nav-item:hover { border-color: var(--ring); background: var(--muted); color: inherit; }
.view-nav-next { text-align: right; grid-column: 2; }
.view-nav-label { margin-bottom: 6px; font-size: 11px; line-height: 1.7; color: var(--muted-foreground); }
.view-nav-title {
  font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--foreground);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── 댓글 ── */
.comments-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-title { margin: 0 0 20px; font-size: 16px; font-weight: 700; line-height: 1.7; }
.comments-list { display: flex; flex-direction: column; }
.comments-section .comment-item {
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}
.comments-section .comment-item:last-child { border-bottom: 0; }
.comments-section .comment-item.depth-1 { padding-left: 32px; }
.comments-section .comment-item.depth-2 { padding-left: 64px; }
.comments-section .comment-item.depth-3 { padding-left: 96px; }
.comments-section .comment-item.depth-4 { padding-left: 128px; }
.comments-section .comment-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px;
}
.comments-section .comment-author {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--foreground);
}
.comments-section .comment-author a { color: inherit; }
.comment-avatar-placeholder {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: var(--brand-foreground);
  font-size: 11px; font-weight: 700;
}
.comments-section .comment-date {
  margin-left: auto; font-size: 12px; line-height: 1.7; color: var(--muted-foreground);
}
.comments-section .comment-body {
  font-size: 14px; line-height: 1.7; color: var(--muted-foreground); white-space: pre-wrap;
}
.comments-section .comment-actions {
  display: flex; gap: 8px; margin-top: 8px;
  font-size: 12px; color: var(--muted-foreground);
}
.comments-section .comment-actions button {
  padding: 0; background: none; border: 0; cursor: pointer;
  font-size: 12px; color: var(--muted-foreground);
}
.comments-section .comment-actions button:hover { color: var(--foreground); }
.comments-section .comment-form {
  margin-top: 20px; padding: 0; border-top: 0;
}
.comments-section .comment-empty { padding: 32px 0; color: var(--muted-foreground); font-size: 14px; }

@media (max-width: 768px) {
  .view-page { padding: 32px 0 32px; }
  .view-title { font-size: 22px; }
  .view-stats { width: 100%; margin-left: 0; }
  .view-nav { grid-template-columns: 1fr; }
  .view-nav-next { grid-column: 1; text-align: left; }
  .comments-section .comment-item.depth-1 { padding-left: 16px; }
  .comments-section .comment-item.depth-2 { padding-left: 32px; }
  .comments-section .comment-item.depth-3 { padding-left: 48px; }
  .comments-section .comment-item.depth-4 { padding-left: 64px; }
}

/* ═══════════ 자료실 카드 목록 (youngsam.net /programs) ═══════════
   download 스킨이 쓴다. 값은 원본 스타일시트에서 그대로 옮겼다.
   머리말·분류칩·툴바는 위의 .bd-* 를 함께 쓴다. */

.prog-list { display: flex; flex-direction: column; gap: 16px; }

.prog-card {
  display: flex; align-items: stretch;
  height: 230px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  color: inherit; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.prog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
  color: inherit;
}

/* 왼쪽 그림칸 — 썸네일이 있으면 채우고, 없으면 점무늬 바탕에 아이콘 하나 */
.prog-img {
  display: block; flex: none; width: 280px; aspect-ratio: 16 / 10;
  overflow: hidden; background: var(--background);
}
.prog-img img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.prog-card:hover .prog-img img { transform: scale(1.03); }

.prog-noimg {
  flex: none; width: 280px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--muted),
              color-mix(in srgb, var(--brand) 5%, var(--background)));
}
.prog-noimg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--border) 40%, transparent) 1px, transparent 1px);
  background-size: 14px 14px;
}
.prog-noimg-icon {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent);
  backdrop-filter: blur(4px);
}
.prog-noimg-icon svg { color: var(--brand); opacity: .7; }

.prog-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 22px 26px; color: inherit; }
.prog-body:hover { color: inherit; }
.prog-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.prog-name {
  font-size: 18px; font-weight: 700; color: var(--foreground);
  transition: color .15s; overflow-wrap: anywhere;
}
.prog-card:hover .prog-name { color: var(--brand); }
.prog-sub {
  margin-left: 6px; font-size: 13px; font-weight: 500; letter-spacing: -.2px;
  color: var(--muted-foreground);
}
.prog-meta { margin-bottom: 8px; font-size: 12px; color: var(--muted-foreground); }
.prog-desc {
  flex: 1;
  font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.prog-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
/* 태그는 넘쳐도 줄바꿈하지 않고 잘라 낸다 (카드 높이를 고정으로 두려고) */
.prog-tags { display: flex; flex-wrap: nowrap; gap: 5px; overflow: hidden; }
.prog-tags span {
  flex: none; white-space: nowrap;
  padding: 3px 10px; border-radius: 6px;
  font-size: 11px; color: var(--muted-foreground);
  background: color-mix(in srgb, var(--border) 40%, transparent);
  transition: color .15s;
}
.prog-card:hover .prog-tags span { color: var(--foreground); }
.prog-dl {
  flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted-foreground);
}
.prog-dl span { display: inline-flex; align-items: center; gap: 4px; }
.prog-dl svg { color: var(--brand); }

/* 관리 모드 체크박스는 카드 테두리 안, 그림칸 왼쪽에 */
.prog-card > .bd-row-check { margin: 22px 0 0 18px; }

@media (max-width: 768px) {
  .prog-card { flex-direction: column; height: auto; }
  .prog-img, .prog-img img { width: 100%; height: 160px; }
  .prog-img { border-radius: 12px 12px 0 0; }
  .prog-noimg { display: none; }
  .prog-body { width: 100%; padding: 16px 18px; }
  .prog-name { font-size: 16px; }
  .prog-desc { font-size: 13px; }
  .prog-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .prog-tags { flex-wrap: wrap; overflow: visible; }
  .prog-card > .bd-row-check { margin: 16px 0 0 18px; }
}

/* ═══════════ 자료실 글 읽기 (youngsam.net /programs/{글}) ═══════════
   download 스킨이 쓴다. 값은 원본 스타일시트에서 그대로 옮겼다.
   빵부스러기·조작버튼·댓글은 위의 .view-* / .comments-* 를 함께 쓴다. */

/* ── 머리 카드: 분류 · 제목 · 정보 · 태그 · 첨부 ── */
.prog-hero {
  margin-bottom: 32px; padding: 32px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
}
.prog-hero-name {
  margin: 8px 0 4px;
  font-size: 26px; font-weight: 700; line-height: 1.4; color: var(--foreground);
  overflow-wrap: anywhere;
}
.prog-hero-subname {
  margin: 0 0 12px;
  font-size: 15px; font-weight: 500; letter-spacing: -.3px; color: var(--muted-foreground);
}
.prog-hero-desc {
  margin-bottom: 12px;
  font-size: 15px; line-height: 1.8; color: var(--muted-foreground);
}
.prog-hero-meta {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px;
  font-size: 13px; color: var(--muted-foreground);
}
.prog-hero-sep { opacity: .4; }
.prog-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; }
.prog-tag {
  padding: 3px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent);
}
a.prog-tag:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 18%, transparent); }

/* ── 첨부파일 ── */
.prog-dl-section { padding-top: 20px; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.prog-dl-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.prog-dl-title { font-size: 15px; font-weight: 700; color: var(--foreground); }
.prog-dl-ver {
  padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.prog-dl-files { display: flex; flex-direction: column; gap: 8px; }
.prog-dl-file-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 18px;
  background: var(--background); border: 1px solid var(--border); border-radius: 12px;
  color: inherit; text-align: left; transition: border-color .15s, background-color .15s;
}
.prog-dl-file-btn:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: inherit;
}
.prog-dl-file-btn.is-off { cursor: not-allowed; opacity: .6; }
.prog-dl-file-btn.is-off:hover { border-color: var(--border); background: var(--background); }
.prog-dl-file-info { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--foreground); }
.prog-dl-file-info > svg { flex: none; color: var(--brand); }
.prog-dl-file-label { font-size: 14px; font-weight: 600; color: var(--foreground); overflow-wrap: anywhere; }
.prog-dl-file-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; font-size: 12px; color: var(--muted-foreground); }
.prog-dl-file-action {
  flex: none; padding: 6px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.prog-dl-empty {
  padding: 16px; border-radius: 10px; text-align: center;
  font-size: 13px; color: var(--muted-foreground); background: var(--background);
}

/* ── 이미지 갤러리 ── */
.prog-gallery-frame {
  margin-bottom: 24px; padding: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 30px rgba(0,0,0,.07);
}
/* 한 장짜리 */
.prog-gallery-solo {
  overflow: hidden; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: var(--muted); box-shadow: inset 0 0 40px rgba(0,0,0,.05);
}
.prog-gallery-solo img {
  display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 468px; object-fit: contain;
}
/* 여러 장 — 왼쪽 썸네일 줄 + 오른쪽 큰 그림 */
.prog-gallery { display: flex; align-items: flex-start; gap: 12px; }
.prog-gallery-side-wrap { display: flex; flex-direction: column; flex: none; align-self: stretch; align-items: center; gap: 6px; }
.prog-gallery-side {
  display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 8px;
  padding: 2px; overflow-y: auto; scrollbar-width: none;
}
.prog-gallery-side::-webkit-scrollbar { display: none; }
.prog-gallery-thumb {
  flex: none; width: 96px; aspect-ratio: 1 / 1; padding: 0; overflow: hidden;
  border: 2px solid var(--border); border-radius: 10px;
  background: var(--background); opacity: .5; cursor: pointer;
  transition: transform .16s cubic-bezier(.4,0,.2,1), border-color .16s, opacity .16s, box-shadow .16s;
}
.prog-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prog-gallery-thumb:hover {
  opacity: 1; transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.prog-gallery-thumb.active {
  opacity: 1; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent);
}
.prog-gallery-counter {
  margin-top: 2px; padding: 3px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center;
  color: var(--muted-foreground); background: var(--card); border: 1px solid var(--border);
}
.prog-gallery-main {
  position: relative; flex: 1; min-width: 0; aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: 12px;
  background: var(--muted); box-shadow: inset 0 0 40px rgba(0,0,0,.05);
}
.prog-gallery-main img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.prog-gallery-main::after {
  content: "⤢ 확대"; position: absolute; right: 10px; bottom: 10px; z-index: 2;
  padding: 5px 11px; border-radius: 8px;
  font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px); pointer-events: none; opacity: 0; transition: opacity .2s;
}
.prog-gallery-main:hover::after { opacity: 1; }
.prog-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  color: #fff; background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  cursor: pointer; opacity: 0; transition: opacity .2s, background-color .2s;
}
.prog-gallery-main:hover .prog-gallery-nav { opacity: 1; }
.prog-gallery-nav:hover { background: var(--brand); }
.prog-gallery-nav.prev { left: 10px; }
.prog-gallery-nav.next { right: 10px; }

/* ── 본문 카드 ── */
.prog-article {
  margin-bottom: 24px; padding: 26px 30px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
}
.prog-article .article-content { max-width: 100%; margin: 0; }
.prog-article .article-content table { margin-left: auto; margin-right: auto; }

/* ── 관련 글 ── */
.view-related { margin-top: 40px; }
.view-related-title { margin-bottom: 16px; font-size: 16px; font-weight: 700; color: var(--foreground); }
.view-related-list { display: flex; flex-direction: column; gap: 8px; }
.view-related-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s, border-color .18s, background-color .18s;
}
.view-related-item:hover {
  transform: translateY(-2px); background: var(--muted); color: inherit;
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.view-related-item .vr-title {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--foreground); transition: color .15s;
}
.view-related-item:hover .vr-title { color: var(--brand); }
.vr-subname { margin-left: 2px; font-size: 11px; font-weight: 400; color: var(--muted-foreground); }
.view-related-item .vr-date { flex: none; font-size: 12px; color: var(--muted-foreground); }

@media (max-width: 768px) {
  .prog-hero { padding: 20px; margin-bottom: 20px; }
  .prog-hero-name { font-size: 21px; }
  .prog-article { padding: 18px 16px; }
  .prog-gallery { flex-direction: column; }
  .prog-gallery-side { flex-direction: row; max-height: none; overflow-x: auto; }
  .prog-gallery-side-wrap { order: 2; align-items: stretch; }
  .prog-dl-file-btn { padding: 12px 14px; }
}

/* ── 본문 아래 추천 · 스크랩 · URL복사 (youngsam.net /programs/{글}) ── */
.prog-acts {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin: 24px 0; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.prog-act {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--muted-foreground);
  font-family: inherit; font-size: 14px; cursor: pointer; outline: none;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.prog-act > span { font-weight: 700; }
.prog-act > svg { flex: none; }
.prog-act:hover {
  border-color: var(--brand); color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}
/* 이미 누른 상태 — 추천·스크랩이 켜지면 브랜드색으로 굳는다 */
.prog-act.on {
  border-color: var(--brand); color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.prog-act.on > svg { fill: currentColor; }
.prog-act[disabled] { cursor: default; }
.prog-act[disabled]:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
/* 복사했다고 잠깐 알려 준다 */
.prog-act.is-done { border-color: var(--brand); color: var(--brand); }

/* ── 접었다 펴는 댓글 (youngsam.net /programs/{글} prog-reviews) ── */
.prog-reviews { margin: 32px 0; }
.prog-reviews-head {
  display: flex; align-items: center; width: 100%;
  padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--foreground);
  text-align: left; cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.prog-reviews-head:hover { border-color: var(--ring); background: var(--muted); }
.prog-reviews-count {
  margin-left: 12px; font-size: 14px; font-weight: 400; color: var(--muted-foreground);
}
.prog-reviews-count b { font-weight: 700; color: var(--foreground); }
.prog-reviews-caret {
  margin-left: auto; font-size: 12px; color: var(--muted-foreground);
  transform: rotate(0); transition: transform .2s;
}
.prog-reviews-head[aria-expanded="true"] .prog-reviews-caret { transform: rotate(180deg); }
/* 펼친 뒤에는 머리와 몸이 한 덩어리로 보이게 모서리를 맞춘다 */
.prog-reviews-head[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.prog-reviews-body {
  padding: 4px 16px 16px;
  background: var(--card);
  border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 10px 10px;
}
/* 접이식 안에서는 댓글 영역이 스스로 실선·여백을 그리지 않는다 */
.prog-reviews-body .comments-section { margin-top: 0; padding-top: 12px; border-top: 0; }
/* 건수는 머리줄이 이미 보여 준다 */
.prog-reviews-body .comments-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── 사용자 리뷰 펼친 화면 (youngsam.net /programs/{글} 리뷰 컴포넌트) ──
   값은 원본 컴포넌트의 인라인 스타일에서 그대로 옮겼다. */

.rv-body { margin-top: 12px; }

/* 공용 버튼 — 원본의 base/primary/ghost */
.rv-btn {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px; border-radius: 8px;
  font-family: inherit; font-size: 13px; line-height: 1; white-space: nowrap; cursor: pointer;
}
.rv-btn-primary { background: var(--brand); border: 1px solid var(--brand); color: var(--brand-foreground); }
.rv-btn-primary:hover { background: var(--brand-hover, var(--brand)); color: var(--brand-foreground); }
.rv-btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--muted-foreground); }
.rv-btn-ghost:hover { background: var(--muted); color: var(--foreground); }

/* '리뷰 작성하기' 는 조금 작은 버튼이다 */
.rv-open {
  padding: 8px 14px; border-radius: 8px;
  background: var(--brand); border: 1px solid var(--brand); color: var(--brand-foreground);
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.rv-open-wrap { margin-bottom: 12px; }

/* 쓰기 상자 */
.rv-form {
  margin-bottom: 16px; padding: 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
}
.rv-input {
  box-sizing: border-box; flex: 1;
  padding: 8px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--background); color: var(--foreground);
  font-family: inherit; font-size: 13px;
}
.rv-input:focus { border-color: var(--ring); box-shadow: none; outline: 0; }
textarea.rv-input { width: 100%; min-height: 80px; resize: vertical; margin-bottom: 8px; }
.rv-guest { display: flex; gap: 8px; margin-bottom: 8px; }

/* 별점 고르기 */
.rv-stars-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
/* display 를 지정한 규칙이 브라우저 기본 [hidden] 을 이겨 버린다.
   답글을 쓸 때 별점 줄이 사라지지 않던 원인이라 따로 눌러 준다. */
.rv-stars-row[hidden] { display: none; }
.rv-btn[hidden] { display: none; }
.rv-stars-label { font-size: 13px; color: var(--muted-foreground); }
.rv-stars { display: inline-flex; gap: 2px; }
.rv-star {
  padding: 0 2px; background: none; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--border);
}
.rv-star.on { color: #f5a623; }
.rv-stars-num { margin-left: 4px; font-size: 13px; color: var(--muted-foreground); }

.rv-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.rv-actions .check-label { margin-right: auto; }
.rv-note { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); }

/* 리뷰 목록 */
.rv-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rv-item {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card);
}
/* 답글은 원본의 '운영자 답변' 처럼 왼쪽에 굵은 선을 두른 얕은 상자로 (원본 값 그대로).
   테두리는 왼쪽만 남긴다 — 원본 블록에는 나머지 세 변이 없다. */
.rv-item.depth-1,
.rv-item.depth-2,
.rv-item.depth-3,
.rv-item.depth-4 {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--background);
  border: 0;
  border-left: 3px solid var(--brand);
}
.rv-item.depth-1 { margin-left: 24px; }
.rv-item.depth-2 { margin-left: 48px; }
.rv-item.depth-3 { margin-left: 72px; }
.rv-item.depth-4 { margin-left: 96px; }
.rv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.rv-author { font-size: 14px; color: var(--foreground); }
.rv-score { font-size: 13px; letter-spacing: 1px; color: #f5a623; }
.rv-score i { font-style: normal; color: var(--border); }
.rv-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); white-space: pre-wrap; }
.rv-acts { display: flex; gap: 8px; margin-top: 10px; font-size: 12px; }
.rv-acts button {
  padding: 0; background: none; border: 0; cursor: pointer;
  font-size: 12px; color: var(--muted-foreground);
}
.rv-acts button:hover { color: var(--foreground); }
.rv-acts form { display: inline; }
.rv-empty { padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted-foreground); }
.rv-more { margin-top: 16px; text-align: center; }

/* 리뷰가 아직 없을 때의 머리줄 — 건수 대신 안내를 오른쪽에 둔다 */
.prog-reviews-invite { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted-foreground); }

@media (max-width: 640px) {
  .rv-guest { flex-direction: column; }
  .rv-item.depth-1, .rv-item.depth-2, .rv-item.depth-3, .rv-item.depth-4 { margin-left: 12px; }
}
.rv-star-mark { color: #f5a623; }
.prog-reviews-sub { margin-left: 6px; color: var(--muted-foreground); }
/* 답글을 쓰는 동안에는 폼이 그 리뷰 카드 안으로 들어온다 */
.rv-item > .comment-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
/**
 * 테마: company — 각지고 단정한 기업용
 *
 * basic 의 style.css 를 다 불러온 뒤 이 파일이 얹힌다.
 * 그래서 여기에는 "바꾸고 싶은 값"만 적는다. 적지 않은 것은 basic 그대로다.
 * 색은 라이트/다크 두 벌을 모두 적어야 한다 — 한쪽만 적으면 다른 쪽에서 어긋난다.
 */

:root {
  /* 브랜드 — 감청 */
  --brand:            #14476b;
  --brand-foreground: #ffffff;
  --brand-hover:      #1b5a87;
  --brand-active:     #0f3853;

  /* 모서리를 각지게 */
  --radius-sm:   0;
  --radius-md:   2px;
  --radius-lg:   2px;
  --radius-xl:   4px;
  --radius:      2px;

  /* 차분한 회청 바탕 */
  --background:    #ffffff;
  --card:          #ffffff;
  --muted:         #eef2f5;
  --secondary:     #eef2f5;
  --accent:        #eef2f5;
  --border:        #d6dee5;
  --border-subtle: #e7edf1;
  --input:         #d6dee5;
  --ring:          #14476b;

  --header-height: 84px;
}

/* 다크 */
:root[data-theme="dark"] {
  --brand:        #4dabf7;
  --brand-hover:  #74c0fc;
  --brand-active: #339af0;
  --brand-foreground: #06202f;

  --background:    #0e1520;
  --card:          #151d2a;
  --muted:         #1c2634;
  --secondary:     #1c2634;
  --accent:        #1c2634;
  --border:        #26313f;
  --border-subtle: #1c2634;
  --input:         #26313f;
  --ring:          #4dabf7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --brand:        #4dabf7;
    --brand-hover:  #74c0fc;
    --brand-active: #339af0;
    --brand-foreground: #06202f;

    --background:    #0e1520;
    --card:          #151d2a;
    --muted:         #1c2634;
    --secondary:     #1c2634;
    --accent:        #1c2634;
    --border:        #26313f;
    --border-subtle: #1c2634;
    --input:         #26313f;
    --ring:          #4dabf7;
  }
}

/* 로고 마크와 버튼을 각지게, 제목은 조금 더 조인다 */
.brand .mark { border-radius: 2px; }
.brand .wordmark { letter-spacing: -.6px; }

