@charset "utf-8";

/* ==========================================================================
   이즈마인드(ISMind) Gnuboard5 Skin Compatibility Layer
   - Non-invasive overrides for standard member/board skins
   - Preserves web/skin/* core files untouched
   ========================================================================== */

/* Member Login & Registration Skins */
#mb_login,
.mbskin,
#fregister {
  max-width: 560px;
  margin: 40px auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  color: var(--ink-primary);
}

#mb_login h1,
.mbskin h1,
#fregister h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.mbskin .frm_input,
#mb_login .frm_input,
#bo_w .frm_input,
#bo_sch .sch_input,
.frm_input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-size: 0.9375rem;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.mbskin .frm_input:focus,
#mb_login .frm_input:focus,
#bo_w .frm_input:focus,
#bo_sch .sch_input:focus,
.frm_input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(27, 77, 137, 0.14);
}

#bo_w textarea,
#bo_w #wr_content,
#bo_w .wr_content textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

#bo_w textarea:focus,
#bo_w #wr_content:focus,
#bo_w .wr_content textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(27, 77, 137, 0.14);
}

#fregister .fregister_agree,
#fregister section {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
}

#fregister textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Board List, View, Write Wrappers */
#bo_list,
#bo_v,
#bo_w {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  color: var(--ink-primary);
}

#bo_v_title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

#bo_v_info {
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

#bo_v_con {
  padding: 28px 0;
  color: var(--ink-primary);
  line-height: 1.75;
}

/* Gnuboard5 Standard Tables */
.tbl_head01 table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  border-top: 2px solid var(--ink-primary);
}

.tbl_head01 thead th {
  background-color: var(--bg-subtle);
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-default);
}

.tbl_head01 tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.tbl_head01 tbody tr:hover td {
  background-color: var(--bg-canvas);
}

.tbl_head01 .td_subject a {
  color: var(--ink-primary);
  font-weight: 600;
}

.tbl_head01 .td_subject a:hover {
  color: var(--brand-primary);
}

/* Gnuboard5 Standard Buttons */
.btn_submit,
.btn_write_act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 22px;
  background-color: var(--btn-primary-bg) !important;
  color: var(--btn-primary-ink) !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}

.btn_submit:hover,
.btn_write_act:hover {
  background-color: var(--btn-primary-hover) !important;
}

.btn_submit:active,
.btn_write_act:active {
  transform: scale(0.97);
}

.btn_b01,
.btn_b02 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 140ms var(--ease-out);
}

.btn_b01 {
  background-color: var(--bg-surface) !important;
  color: var(--ink-primary) !important;
  border: 1px solid var(--border-default) !important;
}

.btn_b01:hover {
  background-color: var(--bg-subtle) !important;
}

.btn_b02 {
  background-color: var(--brand-soft) !important;
  color: var(--brand-primary) !important;
  border: 1px solid rgba(27, 77, 137, 0.2) !important;
}

.btn_b02:hover {
  background-color: var(--btn-primary-bg) !important;
  color: var(--btn-primary-ink) !important;
}

.btn_b01:active,
.btn_b02:active {
  transform: scale(0.97);
}

/* Pagination */
.pg_wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pg_page,
.pg_current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  margin: 0 3px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pg_page {
  background-color: var(--bg-surface);
  color: var(--ink-secondary);
  border: 1px solid var(--border-subtle);
}

.pg_page:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.pg_current {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  border: 1px solid var(--btn-primary-bg);
}

/* Dark Mode Gnuboard5 Skin Compatibility */
html[data-theme="dark"] #mb_login,
html[data-theme="dark"] .mbskin,
html[data-theme="dark"] #fregister,
html[data-theme="dark"] #bo_list,
html[data-theme="dark"] #bo_v,
html[data-theme="dark"] #bo_w {
  background-color: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--ink-primary);
}

html[data-theme="dark"] .mbskin .frm_input,
html[data-theme="dark"] #mb_login .frm_input,
html[data-theme="dark"] #bo_w .frm_input,
html[data-theme="dark"] #bo_sch .sch_input,
html[data-theme="dark"] .frm_input,
html[data-theme="dark"] #bo_list select:not(.inquiry-status-select),
html[data-theme="dark"] #bo_w select:not(.inquiry-status-select),
html[data-theme="dark"] #bo_w textarea,
html[data-theme="dark"] #bo_w #wr_content,
html[data-theme="dark"] #bo_w .wr_content textarea,
html[data-theme="dark"] #bo_sch select,
html[data-theme="dark"] .mbskin input[type="text"],
html[data-theme="dark"] .mbskin input[type="password"],
html[data-theme="dark"] .mbskin select,
html[data-theme="dark"] .mbskin textarea {
  background-color: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--ink-primary);
}

html[data-theme="dark"] .mbskin select option,
html[data-theme="dark"] #bo_list select option,
html[data-theme="dark"] #bo_w select option,
html[data-theme="dark"] #bo_sch select option {
  background-color: var(--bg-surface);
  color: var(--ink-primary);
}

html[data-theme="dark"] .mbskin .frm_input:focus,
html[data-theme="dark"] #mb_login .frm_input:focus,
html[data-theme="dark"] #bo_w .frm_input:focus,
html[data-theme="dark"] #bo_w textarea:focus,
html[data-theme="dark"] #bo_w #wr_content:focus,
html[data-theme="dark"] #bo_w .wr_content textarea:focus,
html[data-theme="dark"] #bo_sch .sch_input:focus,
html[data-theme="dark"] .frm_input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(109, 168, 235, 0.22);
}

html[data-theme="dark"] #bo_sch {
  background-color: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--ink-primary);
}

html[data-theme="dark"] #bo_sch .sch_btn {
  color: var(--ink-primary);
}

html[data-theme="dark"] .tbl_head01 table {
  background-color: var(--bg-surface);
  border-top-color: var(--border-default);
}

html[data-theme="dark"] .tbl_head01 thead th {
  background-color: var(--bg-subtle);
  color: var(--ink-primary);
  border-bottom-color: var(--border-default);
}

html[data-theme="dark"] .tbl_head01 tbody td {
  color: var(--ink-secondary);
  border-bottom-color: var(--border-subtle);
}

html[data-theme="dark"] .tbl_head01 tbody tr:hover td {
  background-color: var(--bg-subtle);
}

html[data-theme="dark"] .btn_b02 {
  border-color: rgba(109, 168, 235, 0.3) !important;
}

html[data-theme="dark"] .pg_page {
  background-color: var(--bg-subtle);
  color: var(--ink-secondary);
  border-color: var(--border-default);
}

html[data-theme="dark"] #fregister textarea {
  background-color: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--ink-secondary);
}

@media (max-width: 768px) {
  #mb_login,
  .mbskin,
  #fregister,
  #bo_list,
  #bo_v,
  #bo_w {
    padding: 24px 18px;
    margin: 20px auto;
  }

  #bo_w textarea,
  #bo_w #wr_content,
  #bo_w .wr_content textarea {
    font-size: 16px;
    min-height: 200px;
  }
}
