.rd-community {
  color: var(--rd-ink, #17211d);
  max-width: 1120px;
  margin: auto;
  padding: 0 0 40px;
}
.rd-community * {
  box-sizing: border-box;
}
.rd-community [hidden] {
  display: none !important;
}
.rd-community a {
  color: inherit;
  text-decoration: none;
}
.rd-community button,
.rd-community-primary {
  border: 1px solid var(--rd-line, #d8e2db);
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--rd-surface, #f7f9f6);
  color: var(--rd-ink, #17211d);
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.rd-community button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rd-community .rd-community-primary {
  background: var(--rd-accent, #1d5e44);
  border-color: transparent;
  color: #fff;
}
.rd-community :is(input, textarea, select):focus-visible,
.rd-community :is(a, button):focus-visible {
  outline: 2px solid var(--rd-accent, #1d5e44);
  outline-offset: 3px;
}
.rd-community-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 12px 0 36px;
}
.rd-community-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.25;
  margin: 10px 0;
}
.rd-community-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--rd-muted, #68736b);
}
.rd-community-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rd-line, #d8e2db);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.rd-community-tabs a {
  padding: 9px 20px;
  border-radius: 999px;
}
.rd-community-tabs a[aria-current] {
  background: var(--rd-accent-soft, #e5eee8);
  color: var(--rd-accent, #1d5e44);
  font-weight: 600;
}
.rd-community-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
}
.rd-community label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--rd-muted, #68736b);
}
.rd-community :is(input, textarea, select) {
  width: 100%;
  border: 1px solid var(--rd-line, #d8e2db);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--rd-surface-solid, #fff);
  color: var(--rd-ink, #17211d);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  min-width: 0;
}
.rd-community textarea {
  resize: vertical;
}
.rd-community-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.rd-community-card,
.rd-community-detail,
.rd-community-compose,
.rd-community-comments {
  border: 1px solid var(--rd-line, #d8e2db);
  background: var(--rd-surface, #f7f9f6);
  border-radius: 18px;
  padding: 24px;
  min-width: 0;
}
.rd-community-card h3 {
  font-size: 1.15rem;
  margin: 14px 0 10px;
  line-height: 1.5;
}
.rd-community-author {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
}
.rd-community-author img {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.rd-community-author time {
  font-size: 0.75rem;
  color: var(--rd-muted, #68736b);
}
.rd-community-author-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rd-community-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.rd-community-post-tools {
  position: relative;
}
.rd-community-post-tools summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  cursor: pointer;
  list-style: none;
  color: var(--rd-muted, #68736b);
  font-size: 0.8rem;
}
.rd-community-post-tools summary::-webkit-details-marker {
  display: none;
}
.rd-community-post-tools summary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rd-community-post-tools summary:focus-visible {
  outline: 2px solid var(--rd-accent, #1d5e44);
  outline-offset: 3px;
}
.rd-community-post-tools[open] summary {
  color: var(--rd-accent, #1d5e44);
}
.rd-community-post-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 144px;
  padding: 6px;
  border: 1px solid var(--rd-line, #d8e2db);
  border-radius: 12px;
  background: var(--rd-surface-solid, #fff);
  box-shadow: 0 8px 24px #00000014;
}
.rd-community .rd-community-post-menu :is(a, button) {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.85rem;
}
.rd-community .rd-community-post-menu :is(a, button):hover {
  background: var(--rd-accent-soft, #e5eee8);
}
.rd-community .rd-community-post-menu [data-delete] {
  color: var(--rd-danger, #b32d2e);
}
.rd-community .rd-community-like {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0;
  min-width: 44px;
  min-height: 44px;
  justify-content: flex-start;
  gap: 8px;
  color: var(--rd-muted, #68736b);
}
.rd-community-like svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.rd-community .rd-community-like:is(:hover, [aria-pressed="true"]) {
  color: var(--rd-accent, #1d5e44);
}
.rd-community-like[aria-pressed="true"] svg {
  fill: currentColor;
}
.rd-community-like [data-like-count] {
  font-variant-numeric: tabular-nums;
}
.rd-community-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.75rem;
}
.rd-community-badges span {
  background: var(--rd-accent-soft, #e5eee8);
  padding: 4px 9px;
  border-radius: 5px;
}
.rd-community-excerpt {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.rd-community-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0;
}
.rd-community-images img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.rd-community-images.count-1 {
  grid-template-columns: minmax(0, 380px);
}
.rd-community-images.count-1 img {
  aspect-ratio: 4/3;
}
.rd-community-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--rd-accent, #1d5e44);
  font-size: 0.8rem;
  margin: 18px 0;
}
.rd-community-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  border-top: 1px solid var(--rd-line, #d8e2db);
  padding-top: 16px;
  color: var(--rd-muted, #68736b);
}
.rd-community-empty {
  padding: 48px 20px;
  text-align: center;
  grid-column: 1/-1;
}
.rd-community-empty p,
.rd-community-muted {
  color: var(--rd-muted, #68736b);
}
.rd-community-pagination {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 30px 0;
  font-size: 0.85rem;
}
.rd-community-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.rd-community-detail h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.4;
  margin: 22px 0;
}
.rd-community-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
.rd-community-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.rd-community-actions a {
  padding: 10px;
}
.rd-community-contact {
  white-space: pre-wrap;
  line-height: 1.8;
  margin-top: 20px;
}
.rd-community-comments {
  margin-top: 24px;
}
.rd-community-comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--rd-line, #d8e2db);
}
.rd-community-comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.rd-community-comment button {
  font-size: 0.8rem;
  padding: 5px 14px;
  margin-right: 8px;
}
.rd-community-comments form {
  margin-top: 22px;
}
.rd-community-comments form button {
  margin-top: 12px;
}
.rd-community-compose {
  padding: clamp(20px, 4vw, 38px);
}
.rd-community-compose h2 {
  margin-top: 0;
}
.rd-community-compose h3 {
  font-size: 1.1rem;
  margin: 30px 0 18px;
}
.rd-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.rd-community-ai {
  border: 1px solid var(--rd-line, #d8e2db);
  padding: 20px;
  border-radius: 14px;
  background: var(--rd-accent-soft, #e5eee8);
  margin-bottom: 26px;
}
.rd-community-ai button {
  margin-top: 12px;
}
.rd-community-ai small {
  display: inline-block;
  margin: 10px;
  color: var(--rd-muted, #68736b);
  font-size: 0.8rem;
}
.rd-community-time {
  border: 0;
  padding: 0;
  margin: 22px 0;
}
.rd-community-time legend {
  font-size: 0.9rem;
}
.rd-community .rd-community-checkbox {
  flex-direction: row;
  align-items: center;
  margin: 14px 0;
}
.rd-community input[type="checkbox"] {
  width: auto;
  accent-color: var(--rd-accent, #1d5e44);
}
.rd-community-private {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed var(--rd-line, #a5b8aa);
  border-radius: 12px;
}
.rd-community-private p {
  font-size: 0.83rem;
  color: var(--rd-muted, #68736b);
}
.rd-community-upload {
  margin: 24px 0;
}
.rd-community-upload small {
  display: block;
  margin-top: 8px;
  color: var(--rd-muted, #68736b);
}
.rd-community-edit-images {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.rd-community-edit-images > div {
  position: relative;
}
.rd-community-edit-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.rd-community-edit-images button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--rd-surface-solid, #fff);
}
.rd-community-notice {
  position: relative;
  border-left: 3px solid var(--rd-accent, #1d5e44);
  background: var(--rd-accent-soft, #e5eee8);
  padding: 14px 18px;
  margin: 20px 0;
  line-height: 1.6;
}
.rd-community-notice.is-error {
  border-left-color: #be633e;
}
.rd-community-preview {
  width: min(720px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  border: 1px solid var(--rd-line, #d8e2db);
  border-radius: 18px;
  padding: 28px;
  background: var(--rd-surface-solid, #fff);
  color: var(--rd-ink, #17211d);
}
.rd-community-preview::backdrop {
  background: rgb(0 0 0 / 0.5);
}
.rd-community-preview h2 {
  margin-top: 0;
}
.rd-community-report-dialog label {
  display: grid;
  gap: 8px;
  margin-block: 16px;
}
.rd-community-report-dialog [role="alert"] {
  overflow-wrap: anywhere;
}
.rd-community-preview .rd-community-private {
  white-space: pre-wrap;
}
.rd-community-profile-link {
  margin: 24px 0;
}
.rd-community-profile-link a {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--rd-line, #d8e2db);
  border-radius: 12px;
}
@media (max-width: 700px) {
  .rd-community-heading {
    align-items: flex-start;
    gap: 16px;
  }
  .rd-community-heading > .rd-community-primary {
    font-size: 0.8rem;
    padding: 10px 14px;
    white-space: nowrap;
    margin-top: 12px;
  }
  .rd-community-heading h2 {
    font-size: 1.7rem;
  }
  .rd-community-feed {
    grid-template-columns: 1fr;
  }
  .rd-community-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rd-community-card,
  .rd-community-detail,
  .rd-community-comments {
    padding: 18px;
  }
  .rd-community-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rd-community-tabs {
    gap: 3px;
  }
  .rd-community-tabs a {
    padding: 8px 13px;
  }
  .rd-community-edit-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rd-community-preview {
    padding: 20px;
  }
  .rd-community-author time {
    font-size: 0.7rem;
  }
}
/* The composer is a post editor; board details stay optional. */
.rd-community-filters {
  grid-template-columns: minmax(0, 1fr) auto;
}
.rd-community.is-composing {
  max-width: 760px;
}
.rd-community.is-composing > .rd-community-heading {
  display: none;
}
.rd-community-compose {
  border: 0;
  background: transparent;
  padding: 0;
}
.rd-community-compose-heading {
  margin: 0 0 24px;
}
.rd-community-compose-heading h2 {
  margin: 8px 0;
  font-size: 1.85rem;
}
.rd-community-compose-card {
  background: var(--rd-surface-solid, #fff);
  border: 1px solid var(--rd-line, #e9e7e8);
  border-radius: 18px;
  padding: 22px;
  margin: 0 0 16px;
}
.rd-community-compose-card h3 {
  margin: 0 0 18px;
  font-size: 1rem;
}
.rd-community-compose-card h3 small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--rd-muted, #777);
  margin-left: 8px;
}
.rd-community-board-picker {
  display: grid;
  grid-template-columns: auto minmax(120px, 220px) 1fr;
  gap: 16px;
  align-items: center;
}
.rd-community-board-picker label {
  margin: 0;
}
.rd-community-board-picker small {
  color: var(--rd-muted, #777);
}
.rd-community-title-label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rd-community-title-label small {
  font-size: 0.75rem;
  font-weight: 400;
}
.rd-community-title-label input {
  font-size: 1.1rem;
}
.rd-community-compose .rd-community-grid {
  margin-bottom: 0;
}
.rd-community-compose .rd-community-upload {
  margin: 16px 0 0;
}
.rd-community .rd-community-upload-button {
  display: inline-flex;
  cursor: pointer;
  border: 1px dashed var(--rd-line, #e2ced5);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--rd-accent, #bf4b72);
  position: relative;
}
.rd-community-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rd-community-upload-button:focus-within {
  outline: 2px solid var(--rd-accent, #bf4b72);
}
.rd-community-upload-button:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
.rd-community-edit-images:empty {
  display: none;
}
.rd-community-ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.rd-community-ai [data-ai-progress] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rd-muted, #777);
  font-size: 0.85rem;
}
.rd-community-ai [data-ai-progress][hidden] {
  display: none;
}
.rd-community-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--rd-line, #ddd);
  border-top-color: var(--rd-accent, #bf4b72);
  border-radius: 50%;
  animation: rd-community-spin 0.8s linear infinite;
}
@keyframes rd-community-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rd-community-spinner {
    animation: none;
  }
}
.rd-community-ai [data-ai-status].is-error {
  color: var(--rd-danger, #b32d2e);
}
.rd-community-ai > p {
  font-size: 0.82rem;
  line-height: 1.7;
}
.rd-community-ai [data-ai-result] {
  border-top: 1px solid var(--rd-line, #eee);
  margin-top: 20px;
  padding-top: 20px;
  font-size: 0.9rem;
}
.rd-community-ai [data-name-sources] {
  font-size: 0.8rem;
}
.rd-community-ai [data-name-sources] a {
  text-decoration: underline;
}
.rd-community-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 20px;
}
.rd-community-compose-footer p {
  color: var(--rd-muted, #777);
  font-size: 0.75rem;
}
.rd-community-compose-footer button {
  min-width: 160px;
}
.rd-community-edit-state {
  max-width: 240px;
  margin: 16px 0;
}
@media (max-width: 700px) {
  .rd-community-compose-card {
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 12px;
  }
  .rd-community-board-picker {
    gap: 12px;
  }
  .rd-community-board-picker {
    grid-template-columns: auto 1fr;
  }
  .rd-community-board-picker small {
    grid-column: 1 / -1;
  }
  .rd-community-compose-heading {
    margin-bottom: 20px;
  }
  .rd-community-compose-footer {
    flex-direction: column;
    gap: 8px;
  }
  .rd-community-compose-footer button {
    width: 100%;
  }
  .rd-community-compose-footer p {
    margin: 4px 0;
  }
  .rd-community-compose .rd-community-grid {
    gap: 14px;
  }
}
/* The community supplies its own page heading. */
.rd-section:has(#rd-community) > .wp-block-post-title {
  display: none;
}
.rd-section:has(#rd-community) > .wp-block-post-content {
  margin-block-start: 0;
}
.rd-comment-focused { background:rgba(0,112,230,.08);outline:2px solid rgba(0,112,230,.35);outline-offset:6px;scroll-margin-top:120px; }
