/* ================================================================
   mobilen board skin — style.css
   Scope: #bo_list (list) | #bo_w (write)
   Dark premium gold theme. Font: Pretendard Variable (global).
   ================================================================ */

#bo_list,
#bo_w {
  --font:         "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --bg:           var(--color-bg,           #131316);
  --surface:      var(--color-surface,      #1a1a1f);
  --surface-2:    var(--color-surface-2,    #22222a);
  --border:       var(--color-border,       rgba(255,255,255,0.08));
  --border-light: var(--color-border-light, rgba(255,255,255,0.05));
  --text:         var(--color-text,         #f0f0f0);
  --muted:        var(--color-text-muted,   #888);
  --subtle:       #5c5c64;
  --gold:         var(--color-accent,       #C4A55A);
  --gold-dim:     #9A7D3D;
  --gold-bright:  #D4C080;
  --gold-glow:    rgba(196,165,90,0.10);
  --gold-glow-md: rgba(196,165,90,0.18);
  --danger:       #e05555;
  --danger-glow:  rgba(224,85,85,0.12);
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --ease:  cubic-bezier(0.16,1,0.3,1);

  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Shared Buttons ── */
.bl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 7px 13px;
  font-family: var(--font); font-size: .8125rem; font-weight: 600;
  line-height: 1; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  transition: background .17s var(--ease), border-color .17s, color .17s,
              transform .13s var(--ease), box-shadow .17s;
  white-space: nowrap; user-select: none;
}
.bl-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.bl-btn--gold { background: var(--gold); color: #0d0d0d; border-color: var(--gold); }
.bl-btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(196,165,90,.28); }
.bl-btn--gold:active { transform: translateY(0) scale(.98); box-shadow: none; }

.bl-btn--ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.bl-btn--ghost:hover { background: rgba(255,255,255,.05); color: var(--text); border-color: rgba(255,255,255,.14); }
.bl-btn--ghost:active { transform: scale(.98); }

.bl-btn--danger { background: transparent; color: var(--danger); border-color: rgba(224,85,85,.3); }
.bl-btn--danger:hover { background: var(--danger-glow); border-color: var(--danger); }

.bl-btn--sm { padding: 7px 13px; font-size: .8125rem; }

/* ── Shared checkbox ── */
.bl-chk { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; }

/* sound_only (screen-reader) */
.sound_only { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }


/* ================================================================
   LIST  (#bo_list)
   ================================================================ */

#bo_list {
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 120px 24px 60px;
}

/* ── Head ── */
.bl-head { margin-bottom: 24px; }

.bl-head__title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}

.bl-head__title-group { display: flex; flex-direction: column; gap: 0; }
.bl-head__title-group .t-headline { font-weight: 600; }

.bl-head__title {
  font-size: clamp(1.375rem,2.5vw,1.875rem); font-weight: 800;
  letter-spacing: -.025em; color: var(--text); margin: 0;
}

.bl-head__actions { display: flex; align-items: center; gap: 8px; padding-top: 8px; }

/* ── Category Tabs ── */
.bl-cate-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px;
}
.bl-cate-tab {
  display: inline-flex; align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.bl-cate-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.bl-cate-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Search ── */
.bl-search {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 14px 18px;
}
.bl-search__form { width: 100%; }
.bl-search__inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-search__field-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }

.bl-select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.04)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 7px 28px 7px 11px; font-size: .8125rem; font-family: var(--font);
  color: var(--text); cursor: pointer;
  transition: border-color .17s, box-shadow .17s; white-space: nowrap;
}
.bl-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.bl-select option { background: #1a1a1f; color: var(--text); }
.bl-select--sm { padding: 7px 28px 7px 10px; font-size: .8125rem; }

.bl-search__input-wrap { position: relative; flex: 1; min-width: 160px; }

.bl-search__icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--subtle); pointer-events: none;
}

.bl-search__input {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 7px 12px 7px 36px;
  font-size: .8125rem; font-family: var(--font); color: var(--text);
  transition: border-color .17s, box-shadow .17s;
}
.bl-search__input::placeholder { color: var(--subtle); }
.bl-search__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

.bl-search__btn {
  flex-shrink: 0; background: var(--gold) !important; color: #0d0d0d !important;
  border: none !important; border-radius: var(--r-sm) !important; padding: 7px 13px !important;
  font-size: .8125rem !important; font-weight: 700 !important; font-family: var(--font) !important;
  cursor: pointer; transition: background .17s, transform .13s; white-space: nowrap;
}
.bl-search__btn:hover { background: var(--gold-bright); transform: translateY(-1px); }
.bl-search__btn:active { transform: translateY(0); }

/* ── Meta row ── */
.bl-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px 10px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap;
}
.bl-total-count { font-size: .8125rem; color: var(--muted); }
.bl-total-count strong { font-weight: 700; color: var(--gold); }

/* ── Sort links (generated by subject_sort_link()) ── */
.bl-col--date a, .bl-col--hit a,
#bo_list .bl-col--date a, #bo_list .bl-col--hit a {
  color: var(--subtle); font-size: .71875rem; font-weight: 600;
  text-decoration: none; letter-spacing: .04em;
  transition: color .15s;
}
.bl-col--date a:hover, .bl-col--hit a:hover { color: var(--text); }

/* ── Column headers ── */
.bl-cols {
  display: grid;
  grid-template-columns: 64px 1fr 80px 96px 52px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.bl-cols.bl-cols--chk { grid-template-columns: 36px 64px 1fr 80px 96px 52px; }

.bl-col {
  padding: 10px 8px; font-size: .6875rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--subtle);
  text-align: center;
}
.bl-col--subj { text-align: left; }
.bl-col--num  { text-align: center; }

/* ── Post rows ── */
.bl-rows { display: flex; flex-direction: column; }

.bl-row {
  display: grid; grid-template-columns: 64px 1fr 80px 96px 52px;
  align-items: center; padding: 0 12px;
  border-bottom: 1px solid var(--border-light);
  min-height: 52px; position: relative;
  transition: background .14s var(--ease);
}
.bl-row.bl-row--chk { grid-template-columns: 36px 64px 1fr 80px 96px 52px; }
.bl-row:hover { background: rgba(255,255,255,.025); }
.bl-row--notice { background: rgba(196,165,90,.035); }
.bl-row--notice:hover { background: rgba(196,165,90,.065); }

.bl-cell { padding: 12px 8px; font-size: .875rem; text-align: center; }
.bl-cell--chk    { padding-right: 4px; }
.bl-cell--num    { text-align: center; }
.bl-cell--subj   { text-align: left; }
.bl-cell--author { color: var(--muted); font-size: .8125rem; }
.bl-cell--date   { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.bl-cell--hit    { color: var(--subtle); font-size: .8125rem; }
.bl-cell--good   { color: var(--gold);   font-size: .8125rem; }
.bl-cell--nogood { color: var(--muted);  font-size: .8125rem; }

.bl-num { font-size: .8125rem; color: var(--subtle); font-variant-numeric: tabular-nums; }

/* ── Badges ── */
.bl-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 7px; border-radius: 4px; font-size: .625rem;
  font-weight: 800; letter-spacing: .05em; line-height: 1.4;
  vertical-align: middle;
}
.bl-badge--notice  { background: var(--gold-glow-md); color: var(--gold); border: 1px solid rgba(196,165,90,.3); }
.bl-badge--current { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); }
.bl-badge--new     { background: rgba(80,200,120,.15); color: #50c878; border: 1px solid rgba(80,200,120,.3); margin-left: 5px; }
.bl-badge--hot     { background: rgba(224,85,85,.15);  color: var(--danger); border: 1px solid rgba(224,85,85,.3); margin-left: 5px; }

/* ── Reply icon ── */
.bl-reply-icon { color: var(--text-muted); flex-shrink: 0; }

/* ── Subject ── */
.bl-subj-wrap {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}

.bl-subj-link {
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s; min-width: 0;
}
.bl-subj-link:hover { color: var(--gold); }

.bl-comment-count { color: var(--gold); font-size: .8125rem; font-weight: 700; margin-left: 2px; flex-shrink: 0; }

/* ── Category pill ── */
.bl-cat-link {
  display: inline-flex; padding: 2px 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 4px; font-size: .75rem; font-weight: 600;
  color: var(--muted); text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.bl-cat-link:hover { background: var(--gold-glow); border-color: rgba(196,165,90,.3); color: var(--gold); }

/* ── Author / Date / Hit ── */
.bl-author { display: inline-block; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--muted); }
.bl-date   { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-hit    { font-size: .8125rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
.bl-good   { font-size: .8125rem; color: var(--gold); }
.bl-nogood { font-size: .8125rem; color: var(--muted); }

/* ── Empty state ── */
.bl-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 72px 20px; text-align: center;
}
.bl-empty__icon { width: 48px; height: 48px; color: var(--subtle); }
.bl-empty__msg  { font-size: .9375rem; color: var(--muted); }

/* ── Bulk bar ── */
.bl-bulk-bar { display: flex; align-items: center; gap: 8px; padding: 12px 0; justify-content: flex-end; }

/* ── Pagination ── */
.bl-paging { margin-top: 36px; display: flex; justify-content: center; }

/* G5 pagination classes */
.bl-paging .pg_wrap,
#bo_list .pg_wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0;
}

.bl-paging a, .bl-paging strong,
#bo_list .pg_wrap a, #bo_list .pg_wrap strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600; font-family: var(--font);
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--border-light); background: var(--surface);
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.bl-paging a:hover, #bo_list .pg_wrap a:hover {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12);
  color: var(--text); transform: translateY(-1px);
}
.bl-paging strong, #bo_list .pg_wrap strong {
  background: var(--gold); border-color: var(--gold); color: #0d0d0d; cursor: default;
}
.bl-paging .pg_prev a, .bl-paging .pg_next a,
.bl-paging .pg_first a, .bl-paging .pg_last a,
#bo_list .pg_wrap .pg_prev a, #bo_list .pg_wrap .pg_next a,
#bo_list .pg_wrap .pg_first a, #bo_list .pg_wrap .pg_last a {
  font-size: .75rem;
}

/* ── Footer ── */
.bl-foot {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; padding-top: 20px;
}


/* ================================================================
   WRITE  (#bo_w)
   ================================================================ */

#bo_w {
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 120px 24px 80px;
}

/* ── Write head ── */
.bw-head { margin-bottom: 24px; }

.bw-head__label {
  font-size: .6875rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.bw-head__label::after {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); opacity: .4;
}

.bw-head__title {
  font-size: clamp(1.375rem,2.5vw,1.875rem); font-weight: 800;
  letter-spacing: -.025em; color: var(--text); margin: 0;
}

/* ── Card ── */
.bw-card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 32px 32px 36px;
  position: relative; overflow: hidden; margin-bottom: 0;
}
.bw-card::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 140px;
  background: radial-gradient(ellipse, rgba(196,165,90,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Meta row ── */
.bw-meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bw-meta-row .bw-field { flex: 1; min-width: 160px; margin-bottom: 0; }
.bw-field--name { flex: 1.2; }
.bw-field--pw   { flex: 1; }

/* ── Field ── */
.bw-field { margin-bottom: 20px; }
.bw-field:last-child { margin-bottom: 0; }

/* ── Labels ── */
.bw-label {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 8px; text-transform: uppercase;
}
.bw-required { color: var(--gold); margin-left: 2px; }

/* ── Inputs ── */
.bw-input {
  display: block; width: 100%;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 14px;
  font-size: .9375rem; font-family: var(--font); color: var(--text);
  transition: border-color .17s, box-shadow .17s, background .17s;
  outline: none; -webkit-appearance: none;
}
.bw-input::placeholder { color: var(--subtle); }
.bw-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); background: rgba(255,255,255,.05); }
.bw-input--title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; padding: 13px 15px; }
.bw-input--sm { padding: 9px 12px; font-size: .875rem; }

/* ── Select ── */
.bw-select {
  display: block; width: 100%; appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.03)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 38px 12px 14px; font-size: .9375rem; font-family: var(--font);
  color: var(--text); cursor: pointer; outline: none;
  transition: border-color .17s, box-shadow .17s;
}
.bw-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.bw-select option { background: #1a1a1f; color: var(--text); }

/* ── Options (checkboxes) ── */
.bw-options-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  list-style: none; padding: 12px 15px; margin: 0;
  background: rgba(255,255,255,.02); border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
}
.bw-chk-item { list-style: none; }
.bw-check-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .875rem; font-weight: 500; color: var(--muted);
  cursor: pointer; user-select: none; transition: color .15s;
}
.bw-check-label:hover { color: var(--text); }
.bw-chk { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; }
.bw-check-box { display: none; }
/* hide G5's default selec_chk reset */
.selec_chk { position: static; width: 15px; height: 15px; opacity: 1; outline: revert; z-index: auto; overflow: visible; }

/* ── Editor ── */
.bw-editor-wrap {
  width: 100%; border-radius: var(--r-sm); overflow: hidden;
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  transition: border-color .17s, box-shadow .17s;
}
.bw-editor-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

/* textarea fallback (no DHTML editor) */
.bw-editor-wrap textarea,
#bo_w .bw-editor-wrap textarea {
  display: block !important; width: 100% !important; height: 150px !important; min-height: 150px !important;
  background: transparent !important; border: none !important; outline: none !important;
  padding: 16px !important; font-size: .9375rem !important; font-family: var(--font) !important;
  color: var(--text) !important; line-height: 1.75 !important; resize: vertical !important;
  box-sizing: border-box !important;
}
.bw-editor-wrap textarea::placeholder { color: var(--subtle) !important; }

/* ── Char count ── */
.bw-charcount { font-size: .75rem; color: var(--subtle); padding-top: 6px; text-align: right; }

/* ── Limit notice ── */
.bw-limit-notice {
  font-size: .8125rem; color: var(--muted); margin-top: 12px; padding: 10px 14px;
  background: rgba(255,255,255,.025); border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ── File zone ── */
.bw-file-zone {
  background: rgba(255,255,255,.02); border: 1px dashed var(--border);
  border-radius: var(--r-md); padding: 18px; display: flex;
  flex-direction: column; gap: 12px;
  transition: border-color .17s;
}
.bw-file-zone:hover { border-color: rgba(196,165,90,.3); }

.bw-file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.bw-file-label {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: .8125rem; font-weight: 600;
  color: var(--muted); cursor: pointer; flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.bw-file-label:hover { background: var(--gold-glow); border-color: rgba(196,165,90,.3); color: var(--gold); }

.bw-file-input {
  /* visually hidden; label triggers it */
  position: absolute; opacity: 0; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.bw-file-existing { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bw-file-name { font-size: .8125rem; color: var(--text); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-file-size { font-size: .75rem; color: var(--subtle); white-space: nowrap; }
.bw-file-del-label { margin-left: 4px; }
.bw-file-limit-note { font-size: .75rem; color: var(--subtle); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── Captcha ── */
.bw-field--captcha { border-top: 1px solid var(--border-light); padding-top: 20px; margin-top: 4px; }
.bw-captcha-wrap { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

/* ── Autosave pop (inherit from G5) ── */
#autosave_pop {
  position: absolute; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px; z-index: 9999;
  font-size: .875rem; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
#autosave_pop strong { display: block; margin-bottom: 10px; color: var(--text); font-weight: 700; }

/* ── Submit footer ── */
.bw-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 28px; flex-wrap: wrap;
}
.bw-foot__left, .bw-foot__right { display: flex; align-items: center; gap: 8px; }

.bw-submit-btn { padding: 7px 13px !important; font-size: .8125rem !important; }


/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── List tablet ── */
@media (max-width: 900px) {
  .bl-cols, .bl-row { grid-template-columns: 60px 1fr 72px 88px; }
  .bl-cols.bl-cols--chk, .bl-row.bl-row--chk { grid-template-columns: 34px 60px 1fr 72px 88px; }
  .bl-col--hit, .bl-cell--hit { display: none; }
}

@media (max-width: 680px) {
  #bo_list { padding: 20px 0 40px; }
  .bl-head__title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bl-search__inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .bl-search__field-wrap { flex-wrap: nowrap; }
  .bl-cols, .bl-row { grid-template-columns: 52px 1fr 72px; }
  .bl-cols.bl-cols--chk, .bl-row.bl-row--chk { grid-template-columns: 30px 52px 1fr 72px; }
  .bl-col--author, .bl-cell--author,
  .bl-col--hit, .bl-cell--hit { display: none; }
}

@media (max-width: 480px) {
  .bl-cols { display: none; }
  .bl-row, .bl-row.bl-row--chk { grid-template-columns: 44px 1fr; }
  .bl-cell--date, .bl-cell--author, .bl-cell--hit { display: none; }
}

/* ── Write tablet / mobile ── */
@media (max-width: 700px) {
  #bo_w { padding: 24px 0 60px; }
  .bw-card { padding: 20px 16px 24px; border-radius: var(--r-md); }
  .bw-meta-row { flex-direction: column; gap: 0; margin-bottom: 0; }
  .bw-meta-row .bw-field { min-width: 100%; margin-bottom: 16px; }
  .bw-options-row { gap: 14px; }
  .bw-foot { flex-direction: column-reverse; align-items: stretch; }
  .bw-foot__left, .bw-foot__right { width: 100%; }
  .bw-submit-btn, .bw-foot__left .bl-btn { width: 100%; justify-content: center; }
}


/* ================================================================
   VIEW  (#bo_v)
   ================================================================ */

#bo_v {
  width: 100%; max-width: 860px; margin: 0 auto;
  padding: 120px 0 80px;
}

/* ── View head ── */
.bv-head {
  padding-bottom: 20px;
  border-bottom: none;
  margin-bottom: 0;
}

.bv-category {
  display: inline-flex; align-items: center; padding: 3px 10px;
  background: var(--gold-glow-md); border: 1px solid rgba(196,165,90,.3);
  border-radius: 4px; font-size: .75rem; font-weight: 700; color: var(--gold);
  letter-spacing: .04em; margin-bottom: 12px;
}

.bv-title {
  font-size: clamp(1.375rem, 2.8vw, 2rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.3; color: var(--text);
  margin: 0 0 18px; word-break: break-word;
}

/* ── Meta row ── */
.bv-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}

.bv-meta__author {
  display: flex; align-items: center; gap: 10px;
}

.bv-avatar { display: flex; flex-shrink: 0; }
.bv-avatar img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); object-fit: cover;
}
/* Fallback if get_member_profile_img returns empty */
.bv-avatar:empty { display: none; }

.bv-name {
  font-size: .9rem; font-weight: 700; color: var(--text);
}
.bv-ip { font-size: .75rem; color: var(--subtle); font-weight: 400; }

.bv-meta__stats {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

.bv-stat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8125rem; color: var(--muted);
}

/* ── Toolbar ── */
.bv-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.bv-toolbar__left,
.bv-toolbar__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.bv-delete-btn { color: var(--danger) !important; border-color: rgba(224,85,85,.3) !important; }
.bv-delete-btn:hover { background: var(--danger-glow) !important; border-color: var(--danger) !important; }

/* ── Content ── */
.bv-content-wrap {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border-light);
}

.bv-img-thumbs {
  margin-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bv-img-thumbs img {
  max-width: 100%; border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
}

#bo_v_con.bv-content {
  font-size: 1rem; line-height: 1.85; color: var(--text);
  word-break: break-word;
}
#bo_v_con.bv-content img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
#bo_v_con.bv-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
#bo_v_con.bv-content a:hover { color: var(--gold-bright); }
#bo_v_con.bv-content p { margin: 0 0 1em; }
#bo_v_con.bv-content blockquote {
  margin: 1.5em 0; padding: 16px 20px;
  border-left: 3px solid var(--gold); background: rgba(196,165,90,.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted);
}
#bo_v_con.bv-content pre, #bo_v_con.bv-content code {
  font-family: "Fira Code", "JetBrains Mono", monospace;
  font-size: .875rem; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
#bo_v_con.bv-content pre { padding: 16px; overflow-x: auto; }
#bo_v_con.bv-content code { padding: 2px 6px; }

/* ── Signature ── */
.bv-signature {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px dashed var(--border);
  font-size: .875rem; color: var(--subtle);
}

/* ── Share / Scrap ── */
.bv-share {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-light);
}

/* ── React (good/nogood) ── */
.bv-react {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--border-light);
}

.bv-react-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 28px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  text-decoration: none; cursor: pointer;
  transition: background .17s, border-color .17s, transform .13s;
  position: relative;
}
.bv-react-btn--static { cursor: default; }

.bv-react-btn--good { color: var(--gold); }
.bv-react-btn--good:hover:not(.bv-react-btn--static) {
  background: var(--gold-glow-md); border-color: rgba(196,165,90,.4);
  transform: translateY(-2px);
}
.bv-react-btn--nogood { color: var(--muted); }
.bv-react-btn--nogood:hover:not(.bv-react-btn--static) {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14);
  transform: translateY(-2px);
}
.bv-react-btn strong { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.bv-react-msg {
  position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: .75rem; color: var(--gold);
  display: none;
}

/* ── Section titles ── */
.bv-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}

/* ── Attached files ── */
.bv-files {
  margin-top: 24px; padding: 24px 0;
  border-top: 1px solid var(--border-light);
}

.bv-file-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.bv-file-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.bv-file-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  text-decoration: none; transition: background .15s, border-color .15s;
  flex: 1; min-width: 0;
}
.bv-file-link:hover { background: var(--gold-glow); border-color: rgba(196,165,90,.3); }
.bv-file-link svg { flex-shrink: 0; color: var(--gold); }
.bv-file-name { font-size: .875rem; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bv-file-desc { font-size: .8125rem; color: var(--muted); flex-shrink: 0; }
.bv-file-size { font-size: .8125rem; color: var(--subtle); flex-shrink: 0; white-space: nowrap; }
.bv-file-dl-cnt { font-size: .75rem; color: var(--subtle); flex-shrink: 0; }

/* ── Related links ── */
.bv-links {
  margin-top: 0; padding: 24px 0;
  border-top: 1px solid var(--border-light);
}
.bv-link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.bv-link-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bv-link-a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; color: var(--gold); text-decoration: none;
  transition: color .15s;
}
.bv-link-a:hover { color: var(--gold-bright); }
.bv-link-a svg { flex-shrink: 0; opacity: .7; }
.bv-link-hit { font-size: .75rem; color: var(--subtle); }

/* ── Prev / Next nav ── */
.bv-nav {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 24px 0 0;
}

.bv-nav-item {
  display: grid; grid-template-columns: 72px 1fr auto;
  align-items: center; gap: 12px;
  padding: 14px 0; text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: background .14s;
}
.bv-nav-item:last-child { border-bottom: none; }
.bv-nav-item:hover { background: rgba(255,255,255,.025); }

.bv-nav-label {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--subtle); flex-shrink: 0; white-space: nowrap;
}
.bv-nav-subject {
  font-size: .9rem; color: var(--text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
  transition: color .15s;
}
.bv-nav-item:hover .bv-nav-subject { color: var(--gold); }
.bv-nav-date { font-size: .8125rem; color: var(--subtle); white-space: nowrap; }

/* ── Footer ── */
.bv-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 32px 0 24px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.bv-foot .bl-btn { min-width: 100px; justify-content: center; }

/* ── Comment area (G5 appends its own comment HTML) ── */
#bo_vc { margin-top: 40px; }

/* G5 default comment container resets / overrides */
#bo_vc .vc_w { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
#bo_vc .vc_img { border-radius: 50%; }
#bo_vc .vc_name strong { color: var(--text); font-weight: 700; }
#bo_vc .vc_con { color: var(--text); font-size: .9375rem; line-height: 1.7; }
#bo_vc .vc_date { color: var(--subtle); font-size: .8125rem; }
#bo_vc .vc_reply { color: var(--gold); }

/* View responsive */
@media (max-width: 680px) {
  #bo_v { padding: 24px 0 60px; }
  .bv-title { font-size: 1.375rem; }
  .bv-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bv-actions { flex-direction: column; align-items: flex-start; }
  .bv-react-btn { padding: 14px 20px; }
  .bv-nav-item { grid-template-columns: 64px 1fr; }
  .bv-nav-date { display: none; }
}


.bv-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:32px 0 24px;flex-wrap:wrap;border-top:1px solid var(--border);}
.bv-foot .bl-btn{min-width:100px;justify-content:center;}

/* ── 라이트모드 버튼 텍스트 흰색 ── */
[data-theme="light"] .bl-btn--gold       { color: #ffffff; }
[data-theme="light"] .bl-btn--gold:hover { color: #ffffff; }
[data-theme="light"] .bl-search__btn     { color: #ffffff !important; }
[data-theme="light"] .bl-btn--ghost {
  background: #2a2a2e;
  border-color: #2a2a2e;
  color: #ffffff;
}
[data-theme="light"] .bl-btn--ghost:hover {
  background: #3a3a3e;
  border-color: #3a3a3e;
  color: #ffffff;
}
