/* Board (자료실) shared styles */
.board-page { padding: 32px 0 64px; }

.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}
.board-count { font-size: 14px; color: var(--prism-text-muted); }
.board-count strong { color: var(--prism-primary); }
.board-search { display: flex; gap: 6px; align-items: center; }
.board-search input {
  padding: 9px 12px;
  border: 1px solid var(--prism-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}
.board-search button {
  padding: 9px 16px;
  background: var(--prism-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.board-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border-collapse: collapse;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.04);
}
.board-table thead { background: #f8fafc; border-bottom: 2px solid #e2e8f0; }
.board-table th {
  padding: 15px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.board-table tbody tr { border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background 0.12s; }
.board-table tbody tr:hover { background: #f8fafc; }
.board-table tbody tr:last-child { border-bottom: none; }
.board-table td { padding: 16px; font-size: 14px; }
.board-table .col-num { width: 70px; text-align: center; color: var(--prism-text-muted); font-size: 13px; }
.board-table .col-date { width: 120px; color: var(--prism-text-muted); font-size: 13px; }
.board-table .col-file { width: 60px; text-align: center; }
.board-table .col-views { width: 80px; text-align: center; color: var(--prism-text-muted); font-size: 13px; }

.board-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: var(--prism-primary);
}
.board-title-cell { font-weight: 500; color: var(--prism-text); }
.board-table tbody tr:hover .board-title-cell { color: var(--prism-primary); }
.board-title-cell .new-badge {
  background: var(--prism-danger);
  color: white;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
}

.board-empty {
  background: white;
  border-radius: 12px;
  padding: 80px 20px;
  text-align: center;
  color: var(--prism-text-muted);
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.04);
}
.board-empty i { font-size: 44px; color: #cbd5e1; margin-bottom: 16px; }
.board-empty p { margin: 0; font-size: 15px; }

/* Detail */
.board-detail {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.04);
}
.board-detail-head { padding: 30px 36px 24px; border-bottom: 1px solid #f1f5f9; }
.board-detail-head .meta-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.board-detail-head h1 { font-size: 24px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.5px; line-height: 1.4; }
.board-detail-head .meta-bottom { display: flex; gap: 20px; font-size: 13px; color: var(--prism-text-muted); flex-wrap: wrap; }
.board-detail-head .meta-bottom span { display: inline-flex; align-items: center; gap: 6px; }
.board-detail-body { padding: 36px; font-size: 15px; line-height: 1.9; color: #374151; min-height: 180px; }
.board-detail-body p { margin: 0 0 18px; }
.board-detail-body strong { color: var(--prism-text); font-weight: 700; }
.board-detail-body ul { padding-left: 20px; margin: 0 0 18px; }
.board-detail-body ul li { padding: 4px 0; }
.board-detail-attach {
  margin: 0 36px 24px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.board-detail-attach a { color: var(--prism-danger); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.board-detail-foot { padding: 20px 36px; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }

.pagination { display: flex; justify-content: center; gap: 4px; padding: 30px 0 0; }
.pagination button {
  width: 36px; height: 36px;
  border: 1px solid var(--prism-border);
  background: white; border-radius: 6px;
  cursor: pointer; font-size: 13px; font-family: inherit;
}
.pagination button.active { background: var(--prism-primary); color: white; border-color: var(--prism-primary); font-weight: 700; }
