/* Feature requests board, shared by index.html (top 5) and features.html (all).
 * Every selector is prefixed .fr- so page styles can't reach in and these can't leak out.
 * Expects the pages' colour tokens: --surface --border --cyan --purple --text --text-2.
 * A page can restyle request titles with --fr-title-font / --fr-title-size / --fr-title-weight. */

.fr-callout {
  background: rgba(0, 229, 204, 0.06);
  border: 1px solid rgba(0, 229, 204, 0.35);
  border-radius: 16px;
  padding: 18px 20px;
}
.fr-callout-title {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.fr-callout p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.fr-callout strong { color: var(--text); font-weight: 600; }

.fr-list { list-style: none; margin: 0; padding: 0; }
.fr-req {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}
.fr-vote {
  flex: none;
  width: 56px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.fr-arrow { font-size: 12px; line-height: 1; }
/* Hover only where a pointer can hover: on touch it would stick after a tap and make an unvoted button look voted. */
@media (hover: hover) {
  .fr-vote:hover { border-color: var(--cyan); color: var(--cyan); }
}
.fr-vote:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.fr-vote[aria-pressed="true"] {
  background: rgba(0, 229, 204, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}
.fr-vote[aria-busy="true"] { opacity: 0.6; cursor: progress; }

.fr-body { min-width: 0; }
.fr-title {
  font-family: var(--fr-title-font, inherit);
  font-size: var(--fr-title-size, 18px);
  font-weight: var(--fr-title-weight, 600);
  line-height: 1.35;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.fr-summary {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.fr-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.fr-planned { color: #9B87FF; }   /* lighter than --purple: 12px text on the card needs 4.5:1 */
.fr-shipped { color: var(--cyan); }

.fr-note {
  color: var(--text-2);
  font-size: 15px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
}
.fr-note button {
  margin-top: 12px;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  padding: 8px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.fr-note button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
/* Stays in the layout (zero height while empty) so the role="status" live region exists before its text arrives and is announced. */
.fr-msg { color: #FFB4A8; font-size: 14px; }
.fr-msg:not(:empty) { margin-top: 8px; }

@media (max-width: 480px) {
  .fr-req { padding: 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fr-vote { transition: none; }
}
