:root {
  --community-blue: var(--hf-color-primary);
  --community-blue-dark: var(--hf-color-primary-hover);
  --community-blue-soft: var(--hf-color-primary-soft);
  --community-blue-soft-hover: var(--hf-color-primary-soft-hover);
  --community-soft: var(--hf-color-surface-soft);
  --community-line: var(--hf-color-line);
  --community-text: var(--hf-color-text-strong);
  --community-muted: var(--hf-color-muted);
  --community-danger: var(--hf-color-danger);
  --community-warm: #fff9ee;
  --community-warm-line: #f0dfb8;
  --community-shadow: 0 10px 30px rgba(27, 54, 72, 0.08);
}

* {
  box-sizing: border-box;
}
.community-page {
  margin: 0;
  color: var(--community-text);
  background: #fff;
}
.community-shell {
  width: min(
    var(--hf-site-max-width),
    calc(100% - var(--hf-site-inline-space))
  );
  min-height: calc(100vh - 117px); /* header + footer 높이 뺌 */
  margin: 0 auto;
  padding: 68px 0 92px;
}
.community-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--community-line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.community-page-header h1 {
  margin: 9px 0 0px;
  color: #26343c;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.community-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6c8491;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.community-feed-column,
.community-guide-column {
  min-width: 0;
}
.community-guide-column {
  align-self: stretch;
  position: relative;
}
.community-guide-card {
  position: static;
  padding: 22px;
  background: var(--hf-card-bg);
  border: 1px solid var(--hf-card-border);
  border-radius: 18px;
  box-shadow: var(--community-shadow);
}
.community-guide-card h2 {
  margin: 8px 0 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.035em;
}
.community-guide-card section {
  padding: 14px 0;
  border-top: 1px solid var(--community-line);
}
.community-guide-card section:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.community-guide-card section > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}
.community-guide-card strong i {
  width: 18px;
  color: var(--community-blue-dark);
}
.community-guide-card p {
  margin: 0;
  color: var(--community-muted);
  font-size: 10px;
  line-height: 1.72;
}

.community-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
}
.community-list-tools {
  display: contents;
}
.community-my-posts-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 6px 2px;
  color: var(--hf-color-text);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.community-my-posts-toggle .fa {
  font-size: 12px;
}

#community_notification_button {
  min-height: 38px;
  padding: 0 12px;
  color: #5c6c75;
  background: #fff;
  border: 1px solid var(--community-line);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
#community_notification_button.enabled {
  color: var(--community-blue-dark);
  background: var(--community-blue-soft);
  border-color: #bfe5f3;
}
#community_notification_button.denied {
  color: #9aa2a7;
  background: #f5f6f7;
  cursor: default;
}

#community_topic_filters {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#community_topic_filters::-webkit-scrollbar {
  display: none;
}
.community_topic_filter,
.post_topic_option {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: #5a6166;
  background: #fff;
  border: 1px solid var(--community-line);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  outline: 0;
}
.community_topic_filter:hover,
.community_topic_filter.active,
.post_topic_option.active {
  color: var(--community-blue-dark);
  background: var(--community-blue-soft);
  border-color: #bfe5f3;
}

.community_topic_filter[data-topic="all"] .fa {
  margin-right: 2px;
  font-size: 11px;
}

#notice_box {
  margin-bottom: 13px;
  display: none !important; // 이용 안내가 생겼으니 공지는 임시로 숨김 처리
}
.community-post-list {
  display: block;
  overflow: visible;
  background: #fff;
  border: 1px solid #e6ecef;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(29, 53, 73, 0.04);
}

.community_post:first-child {
  border-radius: 17px 17px 0 0;
}

.community_post:last-child {
  border-radius: 0 0 17px 17px;
}

.community_post:only-child {
  border-radius: 17px;
}
.community-post-list:empty {
  display: none;
}
.community_post {
  position: relative;
  margin: 0;
  padding: 16px 20px 15px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  border-radius: 0;
  box-shadow: none;
  transition: background-color 0.15s ease;
}
.community_post.has-open-comment {
  padding-bottom: 0;
}
.community_post:last-child {
  border-bottom: 0;
}
.community_post:hover {
  background: #fcfdfe;
}
.community_post.notice_post {
  background: #f4fbfe;
}
.post_header {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #929ca3;
  font-size: 11px;
}
.post_meta_left {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}
.post_author {
  color: #252b30;
  font-size: 13px;
  font-weight: 600;
}
.post_date {
  color: #929ca3;
  white-space: nowrap;
}
.post_ip,
.comment_ip,
.comment_date {
  margin-left: 4px;
  color: #a8b0b5;
  font-size: 11px;
  font-weight: 300;
}
.post_meta_separator {
  color: #c2c8cc;
  font-size: 10px;
  font-weight: 700;
}
.post_topic_badge.free {
  color: #008fc5;
  background: #eef8fc;
}
.post_topic_badge.concern {
  color: #7453d4;
  background: #f3f0ff;
}
.post_topic_badge.love {
  color: #e64c7a;
  background: #fff0f4;
}
.post_topic_badge.hobby {
  color: #238a4b;
  background: #eef9f1;
}
.post_topic_badge.find_person {
  color: #d97706;
  background: #fff6e8;
}
.post_status_badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post_more_wrap {
  align-self: center;
}
.post_more_button {
  width: 30px;
  font-size: 16px;
}
.post_more_menu {
  min-width: 116px;
}
.post_more_delete_action:hover:not(:disabled),
.post_more_delete_action:focus:not(:disabled),
.post_more_report_action:hover:not(:disabled),
.post_more_report_action:focus:not(:disabled) {
  color: #bf4657;
  background: #fff3f5;
}
.post_more_action.reported {
  color: #a4acb1;
  cursor: default;
}
.notice_badge,
.hot_badge,
.post_topic_badge {
  align-self: center;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 400;
}
.notice_badge {
  color: #fff;
  background: var(--community-blue);
}
.hot_badge {
  gap: 3px;
  color: #b94154;
  background: #fff1f3;
  border: 1px solid #ebb2bb;
  font-weight: 800;
  line-height: 1;
}
.hot_badge_fire {
  font-size: 10px;
  line-height: 1;
}
.post_content {
  margin-top: 4px;
  padding: 0 10px 0 3px;
  color: #000000;
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
}
.reported_post_content {
  margin-top: 8px !important;
  padding: 13px;
  color: #8b5c49;
  background: #fff6f0;
  border-radius: 10px;
}
.post_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}
.post_action_btn {
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
  color: #7b858d;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  outline: 0;
}
.post_action_btn i {
  width: 18px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}
.comment_toggle_btn i {
  transform: translateY(-1px);
}
button.post_action_btn {
  font-family: inherit;
}
.post_action_btn:hover:not(.disabled):not(.reported):not(.community_note_btn) {
  color: #424a50;
  background: #f3f6f7;
  text-decoration: none;
}
.like_btn:hover:not(.disabled),
.like_btn.active {
  color: #df576c;
}
.like_btn.active i {
  color: #df576c;
}
.community_note_btn {
  margin-left: 0;
  padding: 0 3px;
  color: #7b858d;
  background: transparent;
  font-weight: 700;
}
.community_note_btn:hover {
  color: var(--community-blue-dark);
  background: #f3f8fa;
}
.community_post.focused_post {
  box-shadow: inset 0 0 0 2px #75c7e7;
}

.comment_box {
  display: none;
  margin: 10px -20px 0;
  padding: 16px 20px 18px;
  background: var(--hf-color-surface-soft);
  border-top: 1px solid var(--hf-color-line);
}
@media (min-width: 769px) {
  .community-post-list > .community_post:last-child > .comment_box {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
}
.comment_thread_heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 5px;
}
.comment_thread_heading strong {
  color: var(--hf-color-text-strong);
  font-size: 13px;
  letter-spacing: -0.015em;
}
.comment_thread_heading > span {
  color: var(--hf-color-muted);
  font-size: 11px;
}
.comment_more_wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
  text-align: left;
}
.comment_more_wrap[hidden] {
  display: none !important;
}
.comment_more_button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--hf-button-secondary-text);
  background: var(--hf-button-secondary-bg);
  border: 1px solid var(--hf-button-secondary-border);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.comment_more_button:hover,
.comment_more_button:focus {
  color: var(--hf-control-selected-text);
  background: var(--hf-control-selected-hover-bg);
  border-color: var(--hf-control-selected-border);
}
.comment_more_button:disabled {
  opacity: 0.65;
}
.comment_list {
  display: block;
}
.comment_loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  color: var(--hf-color-muted);
  font-size: 16px;
}
.comment_item {
  position: relative;
  padding: 12px 0 8px 15px;
  border-bottom: 1px solid var(--hf-color-line);
}
.comment_item::before {
  position: absolute;
  top: 15px;
  bottom: 11px;
  left: 0;
  width: 2px;
  content: "";
  background: var(--hf-color-primary-border);
  border-radius: 2px;
}
.comment_item:last-child {
  border-bottom: 0;
}
.comment_item.comment_empty::before {
  top: 12px;
  bottom: 8px;
}
.comment_empty .comment_content {
  margin-top: 0;
}
.comment_item.is-reply {
  margin-left: 22px;
  padding-left: 14px;
}
.comment_item.is-reply::before {
  top: 16px;
  bottom: auto;
  left: 0;
  width: 8px;
  height: 8px;
  background: transparent;
  border-bottom: 1px solid var(--hf-color-primary-border);
  border-left: 1px solid var(--hf-color-primary-border);
  border-radius: 0 0 0 4px;
}
.comment_item.is-deleted .comment_header,
.comment_item.is-deleted .comment_content {
  color: var(--hf-color-muted);
}
.comment_item.is-deleted .comment_content {
  font-style: italic;
}
.comment_header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--hf-color-muted);
  font-size: 10px;
}
.comment_header .post_author {
  margin-right: 0;
}
.comment_content {
  margin-top: 5px;
  color: var(--hf-color-text);
  font-size: 13px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment_thread_actions {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
}
.comment_thread_action {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  color: var(--hf-color-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.comment_thread_action:hover:not(:disabled),
.comment_thread_action:focus:not(:disabled) {
  color: var(--hf-color-primary-hover);
  background: var(--hf-color-primary-soft);
  outline: none;
}
.comment_thread_action .fa {
  width: 11px;
  text-align: center;
  line-height: 1.5;
}
.comment_like_btn.is-liked {
  color: var(--hf-color-danger-hover);
}
.comment_thread_action:disabled {
  cursor: default;
  opacity: 0.65;
}
.comment_item.focused_comment {
  margin-left: 4px;
  padding-left: 11px;
  background: var(--hf-control-selected-bg);
  border-radius: 8px;
}
.comment_item.focused_comment::before {
  left: -4px;
  background: var(--hf-control-selected-border);
}
.comment_item.is-reply.focused_comment {
  margin-left: 22px;
  padding-left: 14px;
}
.comment_item.is-reply.focused_comment::before {
  left: 0;
  background: transparent;
}
.comment_write {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 12px 12px 8px;
  background: var(--hf-color-surface-elevated);
  border: 1px solid var(--hf-color-line);
  border-radius: 12px;
}
.comment_nickname,
.comment_input {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}
.comment_nickname {
  min-height: 25px;
  margin: 0 0 8px;
  padding: 0 0 8px;
  color: var(--hf-color-text);
  border-bottom: 1px solid var(--hf-color-line);
}
.comment_reply_target {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -1px 0 6px;
  padding: 4px 6px 4px 8px;
  color: var(--hf-color-primary-hover);
  background: var(--hf-color-primary-soft);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.comment_reply_target[hidden] {
  display: none;
}
.comment_reply_cancel {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--hf-color-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
}
.comment_reply_cancel:hover,
.comment_reply_cancel:focus {
  color: var(--hf-color-text);
  background: var(--hf-color-surface-soft);
  outline: none;
}
.comment_input {
  min-height: 34px;
  padding: 2px 0;
  color: var(--hf-color-text-strong);
  font-family: inherit;
  line-height: 1.55;
  resize: none;
}
.comment_nickname:focus,
.comment_input:focus {
  box-shadow: none;
}
.comment_write:focus-within {
  border-color: var(--hf-color-primary-border);
}
html[data-hf-theme="dark"] .comment_nickname:focus {
  border-color: transparent transparent var(--hf-color-line);
  box-shadow: none;
}
html[data-hf-theme="dark"] .comment_input:focus {
  border-color: transparent;
  box-shadow: none;
}
html[data-hf-theme="dark"] .comment_write:focus-within {
  border-color: var(--hf-color-line);
  box-shadow: none;
}
.comment_write_bottom {
  margin-top: 4px;
  text-align: right;
}
.comment_write_button.btn {
  min-height: 30px;
  padding: 0 12px;
  color: var(--hf-button-primary-text);
  background: var(--hf-button-primary-bg);
  border-color: var(--hf-button-primary-bg);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}
.comment_write_button.btn:hover,
.comment_write_button.btn:focus {
  color: var(--hf-button-primary-text);
  background: var(--hf-button-primary-hover-bg);
  border-color: var(--hf-button-primary-hover-bg);
}

.community-list-state,
#post_loading,
#post_empty,
#post_end {
  display: none;
  padding: 40px;
  color: #9ba3a8;
  text-align: center;
  font-size: 12px;
}

#post_write_fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  min-height: 48px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: var(--community-blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 9px 25px rgba(58, 167, 216, 0.3);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
#post_write_fab:hover {
  background: var(--community-blue-dark);
}

#post_write_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}
#post_write_header > span > strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.35;
}
.community-modal-dialog h2 {
  margin: 8px 34px 17px 0;
  font-size: 20px;
}
#post_topic_select {
  margin-bottom: 15px;
}
.post_topic_select_label,
.community-input-label {
  display: block;
  margin: 12px 0 6px;
  color: #4f5d65;
  font-size: 10px;
  font-weight: 800;
}
.post_topic_options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.community-write-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.community-write-field {
  min-width: 0;
}
.community-write-field .community-input-label {
  margin-top: 0;
}
#post_nickname,
#post_delete_password,
#post_content,
#community_note_content {
  width: 100%;
  padding: 10px 11px;
  background: #fff;
  border: 1px solid #d3dde2;
  border-radius: 10px;
  outline: 0;
  font-size: 13px;
}
#post_nickname,
#post_delete_password {
  min-height: 40px;
}
#post_content {
  min-height: 150px;
  resize: vertical;
}
#community_note_content {
  min-height: 120px;
  resize: vertical;
}
#post_nickname:focus,
#post_delete_password:focus,
#post_content:focus,
#community_note_content:focus {
  border-color: #7cc8e7;
  box-shadow: 0 0 0 3px rgba(58, 167, 216, 0.08);
}
#post_count {
  margin: 6px 0 10px;
  color: #9da5aa;
  text-align: right;
  font-size: 10px;
}
#post_write_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.community-write-note-toggle {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--hf-color-text);
  cursor: pointer;
  user-select: none;
}
.community-write-note-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.community-write-note-toggle strong {
  font-size: 11px;
  white-space: nowrap;
}
.community-toggle-ui {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  background: var(--hf-switch-off-bg);
  border: 1px solid var(--hf-switch-off-border);
  border-radius: 999px;
  transition: 0.18s ease;
}
.community-toggle-ui:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--hf-switch-knob-bg);
  border-radius: 50%;
  box-shadow: var(--hf-switch-knob-shadow);
  transition: 0.18s ease;
}
.community-write-note-toggle input:focus + .community-toggle-ui {
  box-shadow: 0 0 0 3px rgba(58, 167, 216, 0.12);
}
.community-write-note-toggle input:checked + .community-toggle-ui {
  background: var(--hf-switch-on-bg);
  border-color: var(--hf-switch-on-bg);
}
.community-write-note-toggle input:checked + .community-toggle-ui:after {
  transform: translateX(16px);
}

@media (hover: hover) and (pointer: fine) {
  .community-write-note-toggle:hover .community-toggle-ui {
    background: var(--hf-color-line-strong);
    border-color: var(--hf-color-muted-light);
  }

  .community-write-note-toggle:hover input:checked + .community-toggle-ui {
    background: var(--hf-switch-on-hover-bg);
    border-color: var(--hf-switch-on-hover-bg);
  }
}
#post_write_button,
.community-primary-button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--community-blue);
  border: 1px solid var(--community-blue);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}
#post_write_button {
  min-width: 110px;
}
.community-primary-button {
  width: 100%;
  margin-top: 4px;
}
.community-primary-button:hover,
#post_write_button:hover {
  background: var(--community-blue-dark);
}
.community-field-message {
  min-height: 20px;
  margin-top: 8px;
  color: var(--community-muted);
  font-size: 10px;
  line-height: 1.5;
}
.community-field-message.is-error {
  color: var(--community-danger);
}

.community-rules-header > span {
  min-width: 0;
}
.community-rules-header strong {
  display: block;
  margin-top: 7px;
  margin-bottom: 12px;
  color: var(--community-text);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}
.community-rules-list {
  overflow: hidden;
  margin-top: 12px;
  background: var(--hf-card-bg);
  border: 1px solid var(--community-line);
  border-radius: 14px;
}
.community-rules-item {
  padding: 14px 15px;
  border-top: 1px solid var(--community-line);
}
.community-rules-item:first-child {
  border-top: 0;
}
.community-rules-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--community-text);
  font-size: 12px;
  line-height: 1.45;
}
.community-rules-item p {
  margin: 0;
  color: var(--community-muted);
  font-size: 11px;
  line-height: 1.65;
}
.community-rules-agreement {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 13px;
  color: var(--community-text);
  background: var(--community-blue-soft);
  border: 1px solid var(--hf-color-primary-border, #c9e8f4);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}
.community-rules-agreement input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.community-rules-check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: var(--hf-card-bg);
  border: 1px solid var(--community-line);
  border-radius: 6px;
  transition: 0.16s ease;
}
.community-rules-check i {
  font-size: 10px;
}
.community-rules-agreement strong {
  font-size: 11px;
  line-height: 1.45;
}
.community-rules-agreement input:focus + .community-rules-check {
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.14);
}
.community-rules-agreement input:checked + .community-rules-check {
  color: #fff;
  background: var(--community-blue);
  border-color: var(--community-blue);
}
.community-rules-accept {
  margin-top: 12px;
}
.community-rules-accept:disabled {
  color: var(--hf-color-muted);
  background: var(--hf-color-surface-soft);
  border-color: var(--community-line);
  cursor: default;
}


@media (max-width: 900px) {
  .community-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .community-shell {
    width: min(
      var(--hf-site-max-width),
      calc(100% - var(--hf-site-inline-space))
    );
    padding: 13px 0 88px;
  }
  .community-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 17px;
    display: none;
  }
  .community-page-header h1 {
    font-size: 26px;
  }
  #community_notification_button {
    display: none;
  }
  .community-layout {
    display: block;
  }
  .community-guide-column {
    display: none;
  }
  .community-rules-header strong {
    font-size: 18px;
  }
  .community-rules-item {
    padding: 12px 13px;
  }
  .community-rules-item strong,
  .community-rules-agreement strong {
    font-size: 12px;
  }
  .community-rules-item p {
    font-size: 11px;
  }
  .community-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
    margin-bottom: 8px;
    padding: 0px 4px;
  }
  #community_topic_filters {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin-right: -12px;
    padding: 2px 12px 3px 0;

    -webkit-mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - 24px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - 24px),
      transparent 100%
    );
  }
  #post_empty {
    border: 1px solid #e6ecef;
  }
  .community-post-list, #post_empty {
    width: calc(100% + var(--hf-site-inline-space));
    margin-left: calc(var(--hf-site-inline-space) / -2);
    margin-right: calc(var(--hf-site-inline-space) / -2);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .community-list-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
  }
  .community-my-posts-toggle {
    min-height: 32px;
    padding: 0;
  }
  .community_post {
    padding: 14px 14px 13px;
    border-radius: 0;
  }
  .community-post-list > .community_post:first-child,
  .community-post-list > .community_post:last-child,
  .community-post-list > .community_post:only-child {
    border-radius: 0;
  }
  .post_header {
    gap: 6px;
  }
  .post_meta_left {
    gap: 4px;
  }
  .post_author {
    font-size: 12px;
  }
  .post_content {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.62;
  }
  .post_actions {
    align-items: center;
    gap: 10px;
    margin-top: 9px;
  }
  .post_action_btn {
    min-width: 30px;
    min-height: 30px;
    padding: 0 5px;
    white-space: nowrap;
  }
  .post_action_btn i {
    width: 15px;
    font-size: 15px;
  }
  .post_more_button {
    width: 28px;
    height: 28px;
  }
  .post_more_menu {
    min-width: 112px;
  }
  .comment_box {
    margin-top: 10px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 14px 16px 18px;
  }
  .comment_item.is-reply {
    margin-left: 16px;
  }
  .comment_item.is-reply.focused_comment {
    margin-left: 16px;
  }

  .community_note_btn {
    width: auto;
    margin-top: 0;
    margin-left: 0;
    flex: 0 0 auto;
  }
  #post_write_fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 0;
    justify-content: center;
  }

  #post_write_fab .post-write-fab-label {
    display: none;
  }

  #post_write_fab .fa-pencil {
    font-size: 20px;
  }
  .community-write-meta-grid {
    gap: 8px;
  }
  #post_write_bottom {
    gap: 10px;
  }
  .community-write-note-toggle {
    gap: 7px;
  }
}

.comment_note_btn {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
  padding: 0 8px;
  color: var(--community-blue);
  background: transparent;
  border: 1px solid var(--hf-color-primary-border);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.comment_note_btn .fa {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}
.comment_note_btn:hover,
.comment_note_btn:focus {
  color: var(--hf-color-primary-hover);
  background: var(--community-blue-soft);
  border-color: var(--hf-control-selected-border);
  outline: none;
}

/* Community moderation actions */
.comment_header_actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.comment_header_actions .comment_note_btn {
  margin-left: 0;
}
.comment_moderation_btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--hf-color-muted);
  background: transparent;
  border: 1px solid var(--hf-color-line-strong);
  border-radius: 999px;
  font-size: 10px;
}
.comment_moderation_btn:hover:not(:disabled),
.comment_moderation_btn:focus:not(:disabled) {
  color: var(--community-blue);
  background: var(--community-blue-soft);
  border-color: var(--hf-control-selected-border);
  outline: none;
}
.comment_moderation_btn.is-delete:hover:not(:disabled),
.comment_moderation_btn.is-delete:focus:not(:disabled) {
  color: var(--hf-color-danger-hover);
  background: var(--hf-color-danger-soft);
  border-color: var(--hf-control-selected-border);
}
.comment_moderation_btn.reported {
  color: var(--hf-control-disabled-text);
  background: var(--hf-control-disabled-bg);
  opacity: 0.72;
}
.comment_item.reported_comment .comment_content {
  color: var(--hf-color-muted);
  font-style: italic;
}
