.page-board {
  background: #f7f9fc;
}

.board-filterbar__inner .board-chips {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}

.board-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.board-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e4eaf2;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.board-pill:hover {
  border-color: #c9d6ea;
  color: var(--blue);
}

.board-pill.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.board-pill__ico {
  font-size: 12px;
  line-height: 1;
  opacity: 0.9;
}

.board-nav {
  display: block;
}

.board-nav__list {
  display: grid;
  gap: 2px;
}

.board-nav__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #4b5563;
}

.bn-ico {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: #8b93a0;
}

.bn-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.board-nav__list a:hover .bn-ico,
.board-nav__list a.is-on .bn-ico {
  color: var(--blue);
}

.board-table .col-cat {
  width: 48px;
  color: #8b93a0;
  font-size: 12px;
  white-space: nowrap;
}

.board-table .col-title .b-tag {
  margin-right: 0;
  vertical-align: middle;
}

.board-table .col-title .pin {
  margin-right: 0;
}

.board-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.board-write,
.board-myposts {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
}

.board-write {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.22);
}

.board-write:hover {
  background: var(--blue-deep);
}

.board-myposts {
  background: #fff;
  color: #334155;
  border: 1px solid #dbe3ee;
}

.board-myposts:hover {
  border-color: #9cbcff;
  color: var(--blue);
  background: #f5f8ff;
}

.board-nav__list a:hover {
  background: #f5f8fc;
  color: var(--blue);
}

.board-nav__list a.is-on {
  background: #eaf1ff;
  color: var(--blue);
  font-weight: 700;
}

.board-list-panel__head {
  /* shared via .list-panel-head in common.css */
}

.board-sort {
  display: flex;
  gap: 4px;
}

.board-sort button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font-size: 13px;
  color: #8b93a0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}

.board-sort button.is-on {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.board-table-wrap {
  width: 100%;
  min-width: 0;
  position: relative;
}

.board-table-wrap:has(#board-tbody:empty) .board-table {
  display: none;
}

.board-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 280px;
  padding: 36px 16px;
  text-align: center;
}

.board-empty[hidden] {
  display: none;
}

.board-empty p {
  margin: 0;
  color: #5d6673;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.board-empty p:first-child {
  font-size: 15.5px;
  font-weight: 700;
  color: #334155;
}

.board-empty .board-write {
  margin-top: 10px;
  width: 140px;
}

.top-dl__empty {
  list-style: none;
  padding: 8px 0 4px;
  font-size: 13px;
  color: #8b93a0;
}

.board-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.board-table th,
.board-table td {
  padding: 11px 6px;
  border-bottom: 1px solid #eef1f5;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.board-table th {
  color: #8b93a0;
  font-weight: 600;
  background: #fafbfd;
  white-space: nowrap;
}

.board-table tbody tr:hover {
  background: #f8fafc;
}

.board-table tbody tr.is-pin {
  background: #fffaf5;
}

.board-table .col-check {
  width: 32px;
  padding-left: 4px;
  padding-right: 2px;
}

.board-table .col-title {
  width: auto;
}

.board-table .col-author {
  width: 128px;
  overflow: hidden;
}

.board-table .col-date {
  width: 76px;
  color: #8b93a0;
  white-space: nowrap;
}

.board-table .col-view,
.board-table .col-like,
.board-table .col-reply {
  width: 42px;
  text-align: center;
  color: #6b7480;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.board-table th.col-view,
.board-table th.col-like,
.board-table th.col-reply {
  text-align: center;
  font-size: 12px;
  position: relative;
}

.board-col-ico {
  font-size: 13px;
  line-height: 1;
}

.board-table .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.board-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.board-title-row .pin,
.board-title-row .b-tag {
  flex-shrink: 0;
}

.board-table .col-title a,
.board-title-row a {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #243044;
  font-weight: 600;
}

.board-table .col-title a:hover,
.board-title-row a:hover {
  color: var(--blue);
}


.board-table .pin {
  margin-right: 0;
  font-size: 12px;
}

.b-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.b-tag--red { background: #ffe8e8; color: #e03131; }
.b-tag--blue { background: #eaf1ff; color: var(--blue); }
.b-tag--orange { background: #fff0e4; color: #d97706; }
.b-tag--green { background: #e8f8ea; color: #2f9e44; }
.b-tag--violet { background: #efe8ff; color: #6d4aff; }
.b-tag--teal { background: #e4f7f2; color: #0f8f74; }
.b-tag--navy { background: #e8eefc; color: #163a73; }
.b-tag--slate { background: #eef1f5; color: #64748b; }
.b-tag--pink { background: #ffe8f1; color: #d6336c; }
.b-tag--lime { background: #eef8df; color: #5c940d; }

.board-side {
  display: grid;
  gap: 12px;
  align-self: start;
}

.board-top .side-box__head {
  margin-bottom: 4px;
}

.board-top .top-dl {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: board-top;
  display: grid;
  gap: 2px;
}

.board-top .top-dl li {
  counter-increment: board-top;
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid #f1f4f8;
  align-items: start;
}

.board-top .top-dl li:first-child {
  border-top: 0;
  padding-top: 8px;
}

.board-top .top-dl a {
  position: relative;
  display: block;
  padding-left: 28px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.45;
  color: var(--navy-deep);
}

.board-top .top-dl a::before {
  content: counter(board-top);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #eef2f8;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.board-top .top-dl li:nth-child(-n + 3) a::before {
  background: #e8f0ff;
  color: var(--blue);
}

.board-top .top-dl a:hover {
  color: var(--blue);
}

.board-top .top-dl em {
  display: block;
  padding-left: 28px;
  font-style: normal;
  font-size: 12px;
  color: #93a0ae;
}

.board-top .top-dl__empty {
  border: 0;
  padding: 24px 8px;
  text-align: center;
  color: #8b93a0;
  font-size: 13px;
  counter-increment: none;
}

@media (max-width: 1199px) {
  .board-main__inner {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .board-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .board-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .board-main__inner,
  .board-filterbar__inner,
  .board-side {
    grid-template-columns: 1fr;
  }

  .board-filterbar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .board-table .col-date {
    width: 70px;
  }

  .board-table .col-view,
  .board-table .col-like,
  .board-table .col-reply {
    width: 36px;
  }
}

@media (max-width: 480px) {
  .board-main__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}
