.portal-subpage--community {
  padding-top: 58px;
  padding-bottom: 86px;
}

.portal-subpage--community .portal-section-title {
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 800;
}

.community-list__head,
.community-detail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.community-list__head {
  margin-bottom: 18px;
}

.community-action-button,
.community-list-button,
.community-cancel-button,
.community-comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.community-action-button:hover,
.community-action-button:focus-visible,
.community-list-button:hover,
.community-list-button:focus-visible,
.community-cancel-button:hover,
.community-cancel-button:focus-visible,
.community-comment-submit:hover,
.community-comment-submit:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.community-action-button {
  background: linear-gradient(180deg, #353535 0%, #171717 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

.community-list__head .community-action-button {
  min-width: 88px;
}

.community-compose {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.06);
}

.community-compose input,
.community-compose textarea,
.community-comments__textarea {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #ffffff;
  color: #1a1a1a;
  font: inherit;
}

.community-compose input {
  height: 48px;
  padding: 0 16px;
}

.community-compose textarea {
  min-height: 220px;
  padding: 16px;
  line-height: 1.8;
  resize: vertical;
}

.community-compose__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.community-compose__status,
.community-comments__status {
  color: #7b7b7b;
  font-size: 13px;
}

.community-compose__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-cancel-button {
  background: #f1f1f1;
  color: #4d4d4d;
}

.portal-subpage--community .portal-table {
  border-top: 0;
}

.portal-subpage--community .portal-table__head,
.portal-subpage--community .portal-table__row {
  grid-template-columns: 96px minmax(0, 1fr) 150px;
  gap: 18px;
  padding: 0 24px;
}

.portal-subpage--community .portal-table__head {
  min-height: 56px;
  border: 1px solid #ececec;
  border-bottom: 0;
  background: #f3f3f3;
}

.portal-subpage--community .portal-table__row {
  min-height: 80px;
  border: 1px solid #ececec;
  border-top: 0;
  background: #ffffff;
}

.portal-subpage--community .portal-table__title {
  color: #181818;
  font-size: 15px;
}

.portal-subpage--community .portal-table__index,
.portal-subpage--community .portal-table__date {
  font-size: 14px;
  color: #1f1f1f;
}

.community-list__empty {
  padding: 52px 20px;
  border: 1px solid #ececec;
  border-top: 0;
  color: #8c8c8c;
  font-size: 14px;
  text-align: center;
}

.community-detail {
  color: #181818;
}

.community-detail__top {
  margin-bottom: 28px;
}

.community-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8e95a3;
  font-size: 14px;
}

.community-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.community-breadcrumb strong {
  color: #2b2f36;
  font-weight: 500;
}

.community-list-button {
  min-width: 88px;
  border: 1px solid #e3e3e3;
  background: #ffffff;
  color: #343434;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.community-detail__title-box {
  padding: 26px 20px;
  background: #f2f2f2;
}

.community-detail__title-box h2 {
  margin: 0;
  color: #161616;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.community-detail__meta {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 6px 18px;
  border-bottom: 1px solid #e9e9e9;
  color: #6f7480;
  font-size: 14px;
}

.community-detail__body {
  min-height: 340px;
  padding: 54px 10px 80px;
  color: #252525;
  font-size: 16px;
  line-height: 2;
}

.community-detail__actions {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 22px;
  border-bottom: 1px solid #ececec;
}

.community-delete-button {
  border: 0;
  background: transparent;
  color: #ff1d1d;
  font-size: 15px;
  cursor: pointer;
}

.community-comments {
  padding-top: 40px;
}

.community-comments h3 {
  margin: 0 0 18px;
  color: #161616;
  font-size: 24px;
  font-weight: 800;
}

.community-comments__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 16px;
  align-items: stretch;
}

.community-comments__textarea {
  min-height: 112px;
  padding: 16px 18px;
  line-height: 1.7;
  resize: vertical;
}

.community-comment-submit {
  min-height: 112px;
  background: #242424;
  color: #ffffff;
}

.community-comments__guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fbfbfb;
}

.community-comments__guest p {
  margin: 0;
  color: #6d7481;
  font-size: 14px;
}

.community-comments__list {
  margin-top: 26px;
}

.community-comments__empty {
  margin: 0;
  padding: 16px 0 0;
  color: #7f8796;
  font-size: 15px;
  text-align: center;
}

.community-comment {
  padding: 18px 4px;
  border-top: 1px solid #ececec;
}

.community-comment__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #7a7f89;
  font-size: 13px;
}

.community-comment__meta strong {
  color: #1d2129;
  font-size: 15px;
}

.community-comment p {
  margin: 0;
  color: #2e2e2e;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .community-compose__footer,
  .community-comments__guest {
    flex-direction: column;
    align-items: stretch;
  }

  .community-compose__actions {
    justify-content: flex-end;
  }

  .community-comments__form {
    grid-template-columns: 1fr;
  }

  .community-comment-submit {
    min-height: 52px;
  }
}

@media (max-width: 640px) {
  .portal-subpage--community {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .portal-subpage--community .portal-section-title {
    font-size: 25px;
  }

  .community-list__head,
  .community-detail__top {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-subpage--community .portal-table__head,
  .portal-subpage--community .portal-table__row {
    grid-template-columns: 72px minmax(0, 1fr) 104px;
    gap: 12px;
    padding: 0 14px;
  }

  .community-breadcrumb {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
  }

  .community-detail__title-box {
    padding: 20px 16px;
  }

  .community-detail__title-box h2 {
    font-size: 22px;
  }

  .community-detail__meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-left: 2px;
    padding-right: 2px;
  }

  .community-detail__body {
    min-height: 240px;
    padding: 34px 2px 48px;
    font-size: 15px;
  }
}
