.board-link.active {
  color: var(--accent);
}

.board-page {
  min-height: calc(100vh - 74px);
  padding: 68px 44px 96px;
}

.board-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 38px 0 28px;
  text-align: left;
}

.board-hero p {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.board-hero h1 {
  margin: 0;
  font-family: "Bodoni 72", Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 400;
  line-height: 0.95;
}

.board-hero span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.board-hero-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 140px;
}

.board-section {
  max-width: 1180px;
  margin: 0 auto;
}

.board-write-button {
  display: inline-grid;
  min-width: 104px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.board-list {
  display: grid;
  border-top: 1px solid var(--hairline);
}

.board-row {
  display: grid;
  grid-template-columns: 100px 142px minmax(0, 1fr) 70px 132px;
  gap: 13px;
  align-items: center;
  box-sizing: border-box;
  min-height: 42px;
  padding-inline: 10px;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

.board-row:not(.board-row-head):hover {
  background: rgba(197, 86, 57, 0.035);
}

.board-row-empty {
  grid-template-columns: 1fr;
  min-height: 92px;
  text-align: center;
}

.board-row-empty:hover {
  background: transparent;
}

.board-row-head {
  min-height: 38px;
  color: #2a2824;
  font-size: 11px;
  font-weight: 700;
}

.board-title-cell {
  min-width: 0;
  overflow: hidden;
  color: #1b1916;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-title-cell a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-title-cell a:hover,
.board-title-cell a:focus-visible {
  color: var(--accent);
}

.board-nickname {
  color: #1b1916;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.board-profile,
.board-comments,
.board-date {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.board-comments,
.board-row-head span:nth-child(4) {
  text-align: center;
}

.board-date,
.board-row-head span:nth-child(5) {
  text-align: right;
}

.board-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 6px;
  margin-top: 28px;
}

.board-pagination:empty {
  display: none;
}

.board-page-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.board-page-button:hover,
.board-page-button:focus-visible,
.board-page-button.active {
  color: var(--accent);
}

.board-page-button.active {
  border-bottom: 1px solid var(--accent);
}

@media (max-width: 760px) {
  .board-page {
    padding: 44px 22px 72px;
  }

  .board-hero {
    display: grid;
    gap: 22px;
    padding-top: 28px;
  }

  .board-hero-action {
    justify-content: flex-start;
  }

  .board-row {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px;
    min-height: 46px;
  }

  .board-nickname,
  .board-profile,
  .board-date,
  .board-row-head span:nth-child(1),
  .board-row-head span:nth-child(2),
  .board-row-head span:nth-child(4),
  .board-row-head span:nth-child(5) {
    display: none;
  }

  .board-title-cell {
    grid-column: 1;
  }

  .board-comments {
    grid-column: 2;
  }
}
