/* Backlog board, Requested Features, Shipped Requests, Release Notes. Loaded after styles.css on board pages only.
   Plain White / Off-White surfaces: no stud pattern, no brick shapes.
   Contrast (palette.md): White on Blue 6.88:1, White on Green 5.48:1, Black on Yellow 12.14:1,
   Black on Orange 7.93:1, Dark Purple on White 9.78:1, Pearl Dark Gray on Off-White 6.55:1. */

.board-main { padding: 1.5rem 0 3.5rem; background: var(--white); }
.board-wrap { max-width: 64rem; }
.board { display: grid; gap: 1.25rem; }
.board > * { margin-top: 0; margin-bottom: 0; }
.board h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.board h2 { font-size: 1.25rem; }
.board h3 { font-size: 1.05rem; }

/* Draft preview banner (same look as the dashboard previews) */
.board .draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  background: var(--white);
  border: 2px dashed var(--orange);
  border-left: 8px solid var(--orange);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}
.board .draft-banner p { margin: 0; }
.board .draft-states { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: 0; padding: 0; font-weight: 600; }

/* Board tabs */
.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
}
.board-tabs a { color: var(--ink); text-decoration: none; padding: 0.45rem 0.1rem; margin-bottom: -2px; border-bottom: 3px solid transparent; }
.board-tabs a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Page heading with the main call to action */
.bl-head { display: flex; flex-direction: column; gap: 1rem; }
.bl-head h1 { margin-bottom: 0.3em; }
.bl-head .lead { margin: 0; font-size: 1.05rem; }
.bl-head-cta { margin: 0; }
.bl-head-cta .button { white-space: nowrap; }
@media (min-width: 44rem) {
  .bl-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.bl-back { font-weight: 600; }
.bl-signin { margin: 0; font-weight: 600; }

/* Filters: label + chip links (works without JavaScript) */
.bl-filters { display: grid; gap: 0.6rem; background: var(--off-white); border-radius: 12px; padding: 0.85rem 1rem; }
.bl-filter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; }
.bl-filter-label { font-weight: 700; min-width: 5.5rem; }
.bl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.bl-chip {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
  min-height: 36px;
}
a.bl-chip:hover { border-color: var(--blue); }
.bl-chip.is-current { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

/* Idea list */
.bl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.bl-item {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}
.bl-item.is-pinned { border-left: 8px solid var(--orange); }
.bl-item-body { min-width: 0; }
.bl-item-title { font-size: 1.12rem; margin: 0.35rem 0 0.3rem; overflow-wrap: anywhere; }
.bl-item-title a { color: var(--ink); text-decoration: none; }
.bl-item-title a:hover { color: var(--blue); text-decoration: underline; }
.bl-excerpt { color: var(--ink-soft); margin: 0 0 0.6rem; font-size: 0.98rem; overflow-wrap: anywhere; }
.bl-empty { color: var(--ink-soft); }
.bl-pager { display: flex; justify-content: space-between; font-weight: 700; }

/* Vote control: link, button, or static count */
.bl-vote-form { margin: 0; }
.bl-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.75rem;
  font: inherit;
  color: var(--blue);
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 10px;
  padding: 0.35rem 0.25rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.15;
}
.bl-vote-count { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.bl-vote-label { font-weight: 700; font-size: 0.8rem; }
a.bl-vote:hover, button.bl-vote:hover:not([disabled]) { background: var(--blue); color: var(--white); }
a.bl-vote:hover .bl-vote-count, button.bl-vote:hover:not([disabled]) .bl-vote-count { color: var(--white); }
.bl-vote.is-voted { background: var(--yellow); border-color: var(--black); color: var(--black); }
.bl-vote.is-voted:hover:not([disabled]) { background: var(--yellow); color: var(--black); }
.bl-vote.is-voted:hover .bl-vote-count { color: var(--black); }
.bl-vote[disabled] { cursor: not-allowed; }
.bl-vote.is-static { border-color: var(--border); color: var(--ink-soft); cursor: default; }
.bl-vote-large { min-width: 5.5rem; min-height: 5rem; }
.bl-vote-large .bl-vote-count { font-size: 1.6rem; }

/* Tags and status chips */
.bl-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.bl-tags:empty { display: none; }
.bl-tag, .bl-status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--off-white);
  color: var(--black);
  white-space: nowrap;
}
.bl-tag-pinned { background: var(--orange); border-color: var(--orange); color: var(--black); }
.bl-tag-kind { background: var(--white); border-style: dashed; }
.bl-status-under_review { background: var(--white); border-color: var(--dark-purple); color: var(--dark-purple); }
.bl-status-planned { background: var(--blue); border-color: var(--blue); color: var(--white); }
.bl-status-in_progress { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.bl-status-shipped { background: var(--green); border-color: var(--green); color: var(--white); }
.bl-status-declined { background: var(--off-white); border-color: var(--pearl-dark-gray); color: var(--pearl-dark-gray); }

/* Author chip: name, badges, opted-in counts */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; }
.bl-meta-line { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.bl-author { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; font-size: 0.88rem; min-width: 0; }
.bl-author-name { font-weight: 700; }
.bl-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; }
.bl-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--dark-purple);
  color: var(--dark-purple);
  background: var(--white);
}
.bl-stats { display: flex; flex-wrap: wrap; gap: 0.15rem 0.7rem; margin: 0; color: var(--ink-soft); }
.bl-stats div { display: flex; gap: 0.25rem; }
.bl-stats dt { font-weight: 400; }
.bl-stats dd { margin: 0; font-weight: 700; color: var(--ink); }
.bl-stat-store dt { position: absolute; left: -10000px; }

/* Panels (detail sections, forms) */
.bl-panel { background: var(--white); border: 2px solid var(--border); border-radius: 12px; padding: 1.1rem 1rem; }
@media (min-width: 40rem) { .bl-panel { padding: 1.4rem 1.5rem; } }
.bl-panel ul { padding-left: 1.2rem; }

/* Idea detail */
.bl-idea { display: grid; gap: 1rem; background: var(--white); border: 2px solid var(--border); border-radius: 12px; padding: 1.1rem 1rem; }
@media (min-width: 40rem) {
  .bl-idea { grid-template-columns: 1fr auto; padding: 1.4rem 1.5rem; }
  .bl-idea-vote { order: 2; }
}
.bl-idea h1 { margin: 0.5rem 0; overflow-wrap: anywhere; }
.bl-idea-body { margin-top: 1rem; overflow-wrap: anywhere; }
.bl-idea-vote .fine-print { margin-top: 0.5rem; }
.bl-merged { border-color: var(--orange); }
.bl-merged p { margin: 0; }
.bl-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.bl-history time { font-weight: 700; margin-right: 0.35rem; }
.bl-history p { margin: 0.25rem 0 0; color: var(--ink-soft); }

/* Comments: two levels */
.bl-comment-list, .bl-replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.bl-comment-list { margin-bottom: 1.5rem; }
.bl-comment { border-top: 2px solid var(--off-white); padding-top: 0.85rem; }
.bl-comment:first-child { border-top: 0; padding-top: 0; }
.bl-comment-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; }
.bl-comment-head time { font-size: 0.85rem; color: var(--ink-soft); }
.bl-comment-body { margin-top: 0.4rem; overflow-wrap: anywhere; }
.bl-comment-body p:last-child { margin-bottom: 0.4rem; }
.bl-replies { margin-top: 0.75rem; padding-left: 0.9rem; border-left: 3px solid var(--border); }
.is-reply { border-top: 0; padding-top: 0; }
.bl-reply summary { cursor: pointer; font-weight: 700; color: var(--blue); width: max-content; min-height: 32px; }
.bl-reply[open] summary { margin-bottom: 0.5rem; }

/* Forms */
.board textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--pearl-dark-gray);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}
.board textarea[disabled], .board input[disabled], .board select[disabled] { background: var(--off-white); }
.board .button[disabled] { opacity: 0.6; cursor: not-allowed; }
/* The preview's main CTA keeps full Brand Red (styles.css dims aria-disabled buttons). */
.bl-head-cta .button[aria-disabled="true"] { opacity: 1; cursor: not-allowed; }
.bl-comment-form { display: grid; gap: 0.5rem; justify-items: start; }
.bl-comment-form label { margin: 0; }
.bl-comment-form .form-status { justify-self: stretch; margin: 0; }
.bl-field-pair { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .bl-field-pair { grid-template-columns: 1fr 1fr; } }
.bl-mod { border-style: dashed; border-color: var(--dark-purple); }
.bl-mod-form { margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--off-white); }
.bl-mod-form:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.bl-similar { border-color: var(--yellow); border-left-width: 8px; }
.bl-similar li { margin-bottom: 0.35rem; }

/* Roadmap */
.bl-roadmap { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .bl-roadmap { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.bl-col { background: var(--off-white); border-radius: 12px; padding: 1rem; border-top: 6px solid var(--border); }
.bl-col-planned { border-top-color: var(--blue); }
.bl-col-in_progress { border-top-color: var(--yellow); }
.bl-col-shipped { border-top-color: var(--green); }
.bl-col h2 { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; }
.bl-col-count { font-size: 0.95rem; color: var(--ink-soft); }
.bl-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.bl-card { background: var(--white); border: 2px solid var(--border); border-radius: 10px; padding: 0.7rem 0.8rem; }
.bl-card > a { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.bl-card > a:hover { color: var(--blue); text-decoration: underline; }
.bl-card .bl-meta-line { margin-top: 0.35rem; }

/* Changelog */
.bl-changelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.bl-change { border-left: 6px solid var(--green); background: var(--white); border-radius: 0 12px 12px 0; padding: 0.4rem 0 0.4rem 1rem; }
.bl-change h2 { font-size: 1.15rem; margin: 0.3rem 0; }
.bl-change h2 a { color: var(--ink); }
.bl-change-date { margin: 0; font-weight: 700; display: flex; gap: 0.5rem; align-items: center; }

/* Notifications */
.bl-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bl-note { padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 10px; background: var(--white); }
.bl-note.is-unread { border-left: 8px solid var(--yellow); }
.bl-note time { display: block; font-size: 0.85rem; color: var(--ink-soft); }

/* Release notes use the board's plain, responsive cards and palette. */
.release-hero { border-top: .3rem solid #0055BF; margin-block: 1.5rem 2rem; }
.release-hero h2 { margin-top: .5rem; }
.release-hero li, .bl-change li { margin-block: .45rem; overflow-wrap: anywhere; }

.board-main { overflow-wrap: anywhere; }
body:has(.board-main) .site-nav { flex-wrap: wrap; }
