:root {
  --board-bg: #ffffff;
  --board-text: #111214;
  --board-muted: rgba(17, 18, 20, 0.62);
  --board-line: #e9ebf1;
  --board-accent: #111214;
  --board-danger: #c11919;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--board-bg);
  color: var(--board-text);
  font-family: "Pretendard", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.board-shell {
  width: min(980px, calc(100% - 28px));
  margin: 24px auto 36px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.board-head h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.board-home-link,
.board-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--board-line);
  color: var(--board-text);
  text-decoration: none;
}

.board-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.board-search input {
  flex: 1 1 auto;
  min-height: 42px;
  border: 1px solid var(--board-line);
  padding: 0 12px;
}

.board-search button,
.board-admin-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  background: var(--board-accent);
  color: #fff;
  cursor: pointer;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--board-text);
}

.board-table th,
.board-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--board-line);
  font-size: 14px;
}

.board-table th {
  background: #f7f8fb;
  text-align: left;
}

.col-id,
.col-view {
  width: 76px;
  text-align: center;
}

.col-author { width: 120px; }
.col-date { width: 150px; }

.board-title-link {
  color: inherit;
  text-decoration: none;
}

.board-title-link:hover {
  text-decoration: underline;
}

.notice-badge {
  display: inline-flex;
  padding: 2px 6px;
  margin-right: 8px;
  font-size: 11px;
  color: #fff;
  background: #d91f26;
}

.board-empty {
  padding: 28px 8px;
  color: var(--board-muted);
  text-align: center;
}

.board-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.board-pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--board-line);
  background: #fff;
  cursor: pointer;
}

.board-pagination button.active {
  background: #111214;
  border-color: #111214;
  color: #fff;
}

.board-admin-link-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.board-view-meta {
  padding: 12px 0;
  border-top: 2px solid var(--board-text);
  border-bottom: 1px solid var(--board-line);
  color: var(--board-muted);
  font-size: 14px;
}

.board-view-body {
  padding: 18px 0;
  line-height: 1.7;
}

.board-view-body img,
.board-view-body iframe,
.board-view-body table {
  max-width: 100%;
}

.board-view-actions {
  display: flex;
  gap: 8px;
}

.board-admin-form {
  display: grid;
  gap: 12px;
}

.board-admin-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.board-admin-form input,
.board-admin-form textarea {
  border: 1px solid var(--board-line);
  padding: 10px 12px;
  font: inherit;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.board-admin-actions {
  display: flex;
  gap: 8px;
}

.board-admin-actions .danger {
  background: var(--board-danger);
}

.board-admin-log {
  margin-top: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f8fb;
  border: 1px solid var(--board-line);
  padding: 12px;
  min-height: 70px;
}

@media (max-width: 768px) {
  .col-author,
  .col-date,
  .col-view {
    display: none;
  }

  .board-table th.col-author,
  .board-table th.col-date,
  .board-table th.col-view,
  .board-table td.col-author,
  .board-table td.col-date,
  .board-table td.col-view {
    display: none;
  }
}
