/*
 * BeaconWP Roadmap Board public structural CSS
 * v1.0.311-beta
 *
 * This stylesheet intentionally avoids forcing brand colors, page backgrounds,
 * typography families, or theme-pack palettes. It only improves spacing,
 * grouping, responsive layout, and form/card structure. Visual color should
 * inherit from the surrounding page, theme, or theme pack.
 */

.bwrb-public,
.bwrb-public * {
  box-sizing: border-box;
}

.bwrb-public {
  width: 100%;
}

.bwrb-public-header {
  margin: 0 0 1.5rem;
}

.bwrb-public-header > * {
  margin-top: 0;
}

.bwrb-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bwrb-public-header h2 {
  margin: 0;
  line-height: 1.08;
}

.bwrb-public-header p {
  margin: 0.65rem 0 0;
  max-width: 62rem;
}

.bwrb-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  margin: 0 0 1.7rem;
}

.bwrb-filters label,
.bwrb-feedback-form label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.bwrb-filters input,
.bwrb-filters select,
.bwrb-feedback-form input,
.bwrb-feedback-form textarea {
  width: 100%;
  min-height: 2.55rem;
}

.bwrb-filters button {
  min-height: 2.55rem;
  width: 100%;
}

.bwrb-public-columns {
  display: grid;
  gap: 1.1rem;
}

.bwrb-public-list {
  display: grid;
  gap: 1rem;
}

.bwrb-public-column {
  display: grid;
  gap: 0.95rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid currentColor;
  border-radius: 1.1rem;
}

.bwrb-column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 0.15rem;
}

.bwrb-column-title h3 {
  margin: 0;
  line-height: 1.18;
}

.bwrb-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.bwrb-card {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
}

.bwrb-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.bwrb-card-title-wrap {
  min-width: 0;
}

.bwrb-card h4 {
  margin: 0;
  line-height: 1.24;
}

.bwrb-card-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.83rem;
}

.bwrb-status-pill,
.bwrb-meta-pill,
.bwrb-vote-button,
.bwrb-vote-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  min-height: 1.9rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.bwrb-status-pill {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
}

.bwrb-description {
  display: grid;
  gap: 0.65rem;
  max-width: 68rem;
}

.bwrb-description p {
  margin: 0;
}

.bwrb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.bwrb-meta-pill {
  font-size: 0.78rem;
}

.bwrb-meta-pill strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bwrb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.bwrb-actions form {
  margin: 0;
}

.bwrb-vote-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.bwrb-vote-button {
  cursor: pointer;
  font-weight: 800;
  min-width: 3.25rem;
  justify-content: center;
}

.bwrb-vote-button.is-selected {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.bwrb-vote-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.bwrb-vote-count {
  font-variant-numeric: tabular-nums;
}

.bwrb-vote-note {
  font-size: 0.78rem;
  opacity: 0.84;
}

.bwrb-feedback-box {
  width: 100%;
}

.bwrb-feedback-box summary {
  cursor: pointer;
  font-weight: 800;
}

.bwrb-feedback-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.bwrb-feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.bwrb-feedback-message {
  grid-column: 1 / -1;
}

.bwrb-feedback-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.bwrb-feedback-form button {
  justify-self: start;
  min-height: 2.5rem;
}

.bwrb-empty {
  padding: 1rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
}

.bwrb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (min-width: 1180px) {
  .bwrb-layout-grouped .bwrb-public-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .bwrb-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bwrb-filters button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .bwrb-filters,
  .bwrb-feedback-grid {
    grid-template-columns: 1fr;
  }

  .bwrb-card-head,
  .bwrb-column-title {
    display: grid;
    justify-content: stretch;
  }

  .bwrb-status-pill,
  .bwrb-count {
    justify-self: start;
  }
}
