.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.topic-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-left: 3px solid #178447;
  border-radius: 3px;
  padding: 0 9px;
  color: #47504b;
  background: #eef3f0;
  font-size: 11px;
  font-weight: 900;
}

.take-action-button {
  color: #ffffff;
  background: #202421;
}

.initiative-organization,
.initiative-forum {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  border-top: 2px solid #202421;
  padding: 26px 2px 0;
}

.community-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.community-section-head > div {
  display: grid;
  gap: 7px;
}

.community-section-head .kicker {
  margin: 0;
}

.community-section-head h2 {
  max-width: 20ch;
  margin: 0;
  color: #202421;
  font-size: 29px;
  line-height: 1.02;
}

.community-primary-button,
.community-secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid #202421;
  border-radius: 6px;
  padding: 0 14px;
  color: #ffffff;
  background: #178447;
  font: 900 13px/1 Archivo, system-ui, sans-serif;
  cursor: pointer;
}

.community-secondary-button {
  flex: 0 0 auto;
  color: #202421;
  background: #ffffff;
}

.community-primary-button:focus-visible,
.community-secondary-button:focus-visible,
.community-dialog button:focus-visible,
.community-dialog a:focus-visible,
.community-dialog input:focus-visible,
.community-dialog textarea:focus-visible,
.forum-topic-form input:focus-visible,
.forum-topic-form textarea:focus-visible,
.forum-reply-form textarea:focus-visible {
  outline: 3px solid #178447;
  outline-offset: 2px;
}

.community-loading {
  margin: 0;
  color: #626864;
  font-size: 14px;
  font-weight: 700;
}

.organization-profile {
  display: grid;
  gap: 12px;
  border-left: 5px solid #178447;
  padding: 4px 0 4px 16px;
}

.organization-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.organization-profile h3 {
  margin: 0;
  font-size: 22px;
}

.organization-status {
  border: 1px solid #cbd2ce;
  border-radius: 999px;
  padding: 5px 8px;
  color: #626864;
  background: #f6f8f7;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.organization-profile p,
.organization-empty p {
  max-width: 62ch;
  margin: 0;
  color: #4d5550;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.organization-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.organization-links a,
.organization-links button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1.5px solid #202421;
  border-radius: 6px;
  padding: 0 12px;
  color: #202421;
  background: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.organization-empty {
  display: grid;
  gap: 9px;
  border-left: 4px solid #cbd2ce;
  padding-left: 14px;
}

.organization-empty strong {
  font-size: 17px;
}

.forum-count {
  flex: 0 0 auto;
  padding-top: 8px;
  color: #626864;
  font: 700 10px/1.3 "Space Mono", monospace;
  text-transform: uppercase;
}

.forum-locked {
  display: grid;
  justify-items: start;
  gap: 9px;
  border: 1.5px solid #cbd2ce;
  border-radius: 8px;
  padding: 18px;
  background: #f6f8f7;
}

.forum-locked strong {
  font-size: 19px;
}

.forum-locked p {
  max-width: 58ch;
  margin: 0;
  color: #59615c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.forum-member {
  display: grid;
  gap: 20px;
}

.forum-member-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #cbd2ce;
  padding-bottom: 10px;
  color: #59615c;
  font-size: 12px;
  font-weight: 700;
}

.forum-member-bar button {
  border: 0;
  padding: 8px;
  color: #202421;
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.forum-topic-form {
  display: grid;
  gap: 11px;
  border: 1.5px solid #cbd2ce;
  border-radius: 8px;
  padding: 16px;
  background: #f6f8f7;
}

.forum-topic-form label,
.forum-reply-form label,
.community-form label {
  display: grid;
  gap: 6px;
  color: #202421;
  font-size: 12px;
  font-weight: 900;
}

.forum-topic-form input,
.forum-topic-form textarea,
.forum-reply-form textarea,
.community-form input,
.community-form textarea {
  width: 100%;
  min-width: 0;
  border: 1.5px solid #aeb6b1;
  border-radius: 6px;
  padding: 11px 12px;
  color: #202421;
  background: #ffffff;
  font: 700 16px/1.35 Archivo, system-ui, sans-serif;
}

.forum-topic-form input,
.community-form input {
  min-height: 48px;
}

.forum-topic-form textarea {
  min-height: 105px;
  resize: vertical;
}

.forum-topic-form > p,
.forum-reply-form > p,
.community-form-status {
  min-height: 17px;
  margin: 0;
  color: #a12929;
  font-size: 12px;
  font-weight: 800;
}

.forum-topic-form .community-primary-button {
  justify-self: start;
}

.forum-list {
  display: grid;
  gap: 12px;
}

.forum-empty {
  margin: 0;
  color: #626864;
  font-size: 14px;
  font-weight: 700;
}

.forum-topic {
  border: 1.5px solid #aeb6b1;
  border-radius: 8px;
  background: #ffffff;
}

.forum-topic summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px;
  cursor: pointer;
  list-style: none;
}

.forum-topic summary::-webkit-details-marker {
  display: none;
}

.forum-topic summary > span:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.forum-topic summary strong {
  font-size: 16px;
  line-height: 1.2;
}

.forum-topic-meta,
.forum-topic summary > b {
  color: #626864;
  font-size: 10px;
  font-weight: 800;
}

.forum-topic-body {
  display: grid;
  gap: 14px;
  border-top: 1px solid #d9dedb;
  padding: 15px;
}

.forum-topic-copy,
.forum-reply p {
  margin: 0;
  white-space: pre-line;
  color: #343a36;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.forum-replies {
  display: grid;
  gap: 8px;
}

.forum-reply {
  display: grid;
  gap: 5px;
  border-left: 3px solid #cbd2ce;
  padding: 8px 10px;
  background: #f6f8f7;
}

.forum-reply span {
  color: #626864;
  font-size: 10px;
  font-weight: 800;
}

.forum-reply-form {
  display: grid;
  gap: 8px;
}

.forum-reply-form textarea {
  min-height: 76px;
  resize: vertical;
}

.forum-reply-form .community-secondary-button {
  justify-self: start;
}

.community-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: auto;
  border: 2.5px solid #202421;
  border-radius: 8px;
  padding: 0;
  color: #202421;
  background: #ffffff;
  box-shadow: 7px 7px 0 #202421;
}

.community-dialog::backdrop {
  background: rgba(18, 22, 19, .7);
  backdrop-filter: blur(2px);
}

.community-dialog-shell {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.community-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #202421;
  border-radius: 50%;
  padding: 0 0 2px;
  color: #202421;
  background: #ffffff;
  font: 500 27px/1 Arial, sans-serif;
  cursor: pointer;
}

.community-dialog-head {
  display: grid;
  gap: 8px;
  padding-right: 42px;
}

.community-dialog-head .kicker,
.community-dialog-head p {
  margin: 0;
}

.community-dialog-head h2 {
  max-width: 15ch;
  margin: 0;
  font-size: 36px;
  line-height: .98;
}

.community-dialog-head > p:last-child {
  max-width: 48ch;
  color: #59615c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.community-form {
  display: grid;
  gap: 12px;
}

.community-form textarea {
  min-height: 120px;
  resize: vertical;
}

.community-form-help {
  margin: -4px 0 0;
  color: #626864;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.community-code-input {
  font-size: 24px !important;
  font-weight: 900 !important;
}

.community-text-button {
  justify-self: start;
  border: 0;
  padding: 7px 0;
  color: #202421;
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.action-options {
  display: grid;
  gap: 9px;
}

.action-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border: 1.5px solid #aeb6b1;
  border-radius: 7px;
  padding: 12px 14px;
  color: #202421;
  background: #ffffff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.action-option > span:first-child {
  display: grid;
  gap: 4px;
}

.action-option strong {
  font-size: 16px;
}

.action-option small {
  color: #626864;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.action-option > b {
  color: #178447;
  font-size: 19px;
}

.action-option:disabled,
.action-option[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 560px) {
  .hero-badges {
    justify-content: flex-start;
  }

  .community-section-head {
    display: grid;
  }

  .community-section-head h2 {
    font-size: 26px;
  }

  .community-secondary-button {
    width: 100%;
  }

  .forum-member-bar {
    align-items: flex-start;
  }

  .forum-topic-form .community-primary-button,
  .forum-reply-form .community-secondary-button {
    width: 100%;
  }

  .community-dialog-shell {
    padding: 20px 16px;
  }

  .community-dialog-head h2 {
    font-size: 31px;
  }

  .organization-links {
    display: grid;
  }

  .organization-links a,
  .organization-links button {
    width: 100%;
    justify-content: center;
  }
}
