/* ============================================================
   Board Portal — Question and response tracker.

   Scoped under .bp-scope like the rest of the board portal, and
   sharing its variables. The one visual decision worth stating: an
   answered question and a resolved one are never the same colour.
   The whole point of the page is that a board can see the gap.
============================================================ */

#v2-board-portal-questions.v2-tool-pane.active{
  overflow-y:auto;padding:28px 32px 64px}
#v2-board-portal-questions.v2-tool-pane.active::-webkit-scrollbar{width:9px}
#v2-board-portal-questions.v2-tool-pane.active::-webkit-scrollbar-thumb{
  background:#d3dae4;border-radius:5px}
#v2-board-portal-questions.v2-tool-pane.active::-webkit-scrollbar-thumb:hover{background:#b9c3d1}

.bp-scope .brd-q{max-width:1180px;margin:0 auto}

/* ── Header ─────────────────────────────────────────────── */

.bp-scope .brd-q-head{margin-bottom:22px}
.bp-scope .brd-q-headrow{
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.bp-scope .brd-q-headrow h1{font-size:23px;font-weight:700;color:var(--navy);margin:0 0 4px}
.bp-scope .brd-q-cycle{font-size:13px;color:var(--muted);margin:0}
.bp-scope .brd-q-headacts{display:flex;align-items:center;gap:9px;flex-wrap:wrap}

.bp-scope .brd-q-stats{
  display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.bp-scope .brd-q-stat{
  flex:1 1 150px;min-width:130px;padding:12px 14px;border:1px solid var(--line);
  border-radius:9px;background:var(--surface)}
.bp-scope .brd-q-stat b{display:block;font-size:22px;font-weight:700;color:var(--navy);line-height:1.1}
.bp-scope .brd-q-stat span{font-size:11px;color:var(--muted);line-height:1.35;display:block;margin-top:3px}
/* Amber, not red. These are counts that need attention, not failures. */
.bp-scope .brd-q-stat.warn{border-color:#e8d6a8;background:#fdf9ef}
.bp-scope .brd-q-stat.warn b{color:#8a6410}

.bp-scope .brd-q-notices{
  list-style:none;margin:0 0 18px;padding:12px 14px;border:1px solid #e3ddc4;
  border-radius:9px;background:#fdfbf3}
.bp-scope .brd-q-notices li{
  display:flex;gap:9px;font-size:12px;line-height:1.55;color:#6b5a2a}
.bp-scope .brd-q-notices li + li{margin-top:7px}
.bp-scope .brd-q-notices i{margin-top:2px;color:#a8892f}

/* ── Filters ────────────────────────────────────────────── */

.bp-scope .brd-q-filters{
  display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px;
  border-bottom:1px solid var(--line);padding-bottom:12px}
.bp-scope .brd-q-filter{
  display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:20px;
  border:1px solid var(--line);background:var(--surface);cursor:pointer;
  font-size:12px;font-weight:600;color:var(--muted);transition:all .12s}
.bp-scope .brd-q-filter:hover{border-color:#b9c3d1;color:var(--navy)}
.bp-scope .brd-q-filter.on{background:var(--navy);border-color:var(--navy);color:#fff}
.bp-scope .brd-q-filter span{
  font-size:10px;font-weight:700;padding:1px 6px;border-radius:9px;
  background:rgba(0,0,0,.07)}
.bp-scope .brd-q-filter.on span{background:rgba(255,255,255,.22)}

.bp-scope .brd-q-empty{
  padding:36px 20px;text-align:center;font-size:13px;color:var(--muted);
  border:1px dashed var(--line);border-radius:10px}

/* ── The list ───────────────────────────────────────────── */

.bp-scope .brd-q-list{list-style:none;margin:0;padding:0}
.bp-scope .brd-q-item{
  border:1px solid var(--line);border-radius:10px;background:var(--surface);
  margin-bottom:9px;overflow:hidden}
/* The left edge carries the state, so a scan down the list reads as a status
   column without spending a column on it. */
.bp-scope .brd-q-item{border-left-width:3px}
.bp-scope .brd-q-item.st-draft{border-left-color:#c3ccd8}
.bp-scope .brd-q-item.st-approved{border-left-color:#8fa8c6}
.bp-scope .brd-q-item.st-sent{border-left-color:#3f7fd4}
.bp-scope .brd-q-item.st-answered{border-left-color:#7a9c3f}
.bp-scope .brd-q-item.st-resolved{border-left-color:#4f9c5a}
.bp-scope .brd-q-item.st-open{border-left-color:#d68b1f}
.bp-scope .brd-q-item.st-withdrawn{border-left-color:#d8dde4;opacity:.66}
.bp-scope .brd-q-item.overdue{border-left-color:#c0392b}

.bp-scope .brd-q-row{
  display:flex;align-items:flex-start;gap:14px;padding:14px 16px;cursor:pointer}
.bp-scope .brd-q-row:hover{background:#fafbfd}

.bp-scope .brd-q-marks{
  display:flex;flex-direction:column;gap:5px;align-items:flex-start;min-width:96px}
.bp-scope .brd-q-pri{
  font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;
  padding:2px 7px;border-radius:4px;background:#eef1f5;color:var(--muted)}
.bp-scope .brd-q-pri.high{background:var(--poor-bg);color:#a82424}
.bp-scope .brd-q-pri.med{background:#fdf3e0;color:#8a6410}
.bp-scope .brd-q-status{
  font-size:10px;font-weight:600;padding:2px 8px;border-radius:11px;
  background:#eef1f5;color:var(--muted);white-space:nowrap}
.bp-scope .brd-q-status.sent{background:#e8f0fb;color:#2c5f9e}
.bp-scope .brd-q-status.answered{background:#eef4e4;color:#5c7a2c}
.bp-scope .brd-q-status.resolved{background:#e6f4e9;color:#356b3f}
/* Amber and named in full. "Open" alone reads like "not started", which is the
   one reading this state must never have. */
.bp-scope .brd-q-status.open{background:#fdf1dd;color:#8a5a10}

.bp-scope .brd-q-main{flex:1;min-width:0}
.bp-scope .brd-q-text{
  font-size:13.5px;line-height:1.55;color:var(--navy);margin:0 0 5px;max-width:92ch}
.bp-scope .brd-q-meta{font-size:11.5px;color:var(--muted);margin:0}
.bp-scope .brd-q-meta b{color:var(--navy);font-weight:600}
.bp-scope .brd-q-carry{
  display:inline-flex;align-items:center;gap:6px;margin:7px 0 0;font-size:11px;
  font-weight:600;color:#8a5a10;background:#fdf1dd;padding:3px 9px;border-radius:5px}

.bp-scope .brd-q-right{display:flex;align-items:center;gap:11px}
.bp-scope .brd-q-caret{font-size:11px;color:var(--faint)}
.bp-scope .brd-q-chip{
  font-size:10px;font-weight:700;padding:3px 9px;border-radius:5px;white-space:nowrap}
.bp-scope .brd-q-chip.none{background:#f2f4f7;color:var(--faint)}
.bp-scope .brd-q-chip.pend{background:#eef1f5;color:var(--muted)}
.bp-scope .brd-q-chip.ok{background:#e6f4e9;color:#356b3f}
.bp-scope .brd-q-chip.part{background:#fdf3e0;color:#8a6410}
.bp-scope .brd-q-chip.bad{background:var(--poor-bg);color:#a82424}

/* ── One question, expanded ─────────────────────────────── */

.bp-scope .brd-q-detail{
  padding:4px 16px 16px 126px;border-top:1px solid var(--line);background:#fbfcfd}
.bp-scope .brd-q-detail h4{
  font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;
  color:var(--faint);margin:16px 0 7px}
.bp-scope .brd-q-context{
  font-size:12.5px;line-height:1.6;color:var(--muted);margin:12px 0 0;max-width:88ch}

.bp-scope .brd-q-noevidence,.bp-scope .brd-q-noanswer{
  font-size:11.5px;color:var(--faint);font-style:italic;margin:14px 0 0}

.bp-scope .brd-q-evidence ul{list-style:none;margin:0;padding:0}
.bp-scope .brd-q-evidence li{
  display:flex;align-items:center;gap:8px;font-size:12px;color:var(--navy);
  padding:6px 0;border-bottom:1px dotted #e5e9ef}
.bp-scope .brd-q-evtype{
  font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;
  padding:2px 6px;border-radius:4px;background:#eef1f5;color:var(--muted)}
.bp-scope .brd-q-evpage{font-size:10px;color:var(--faint)}
.bp-scope .brd-q-evnote{font-size:11px;color:var(--muted);font-style:italic}
.bp-scope .brd-q-unlink{
  margin-left:auto;border:none;background:none;cursor:pointer;
  font-size:15px;line-height:1;color:var(--faint);padding:0 4px}
.bp-scope .brd-q-unlink:hover{color:#c0392b}

.bp-scope .brd-q-answer{
  border:1px solid var(--line);border-left-width:3px;border-radius:8px;
  padding:11px 13px;background:var(--surface)}
.bp-scope .brd-q-answer + .brd-q-answer{margin-top:8px}
.bp-scope .brd-q-answer.adq-not_assessed{border-left-color:#c3ccd8}
.bp-scope .brd-q-answer.adq-adequate{border-left-color:#4f9c5a}
.bp-scope .brd-q-answer.adq-partial{border-left-color:#d68b1f}
.bp-scope .brd-q-answer.adq-inadequate{border-left-color:#c0392b}
.bp-scope .brd-q-answer.accepted{background:#f8fcf9}

.bp-scope .brd-q-ahead{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11px;color:var(--muted)}
.bp-scope .brd-q-ahead b{font-size:12px;color:var(--navy)}
.bp-scope .brd-q-adq{
  font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;
  padding:2px 6px;border-radius:4px;background:#eef1f5;color:var(--muted)}
.bp-scope .brd-q-adq.adequate{background:#e6f4e9;color:#356b3f}
.bp-scope .brd-q-adq.partial{background:#fdf3e0;color:#8a6410}
.bp-scope .brd-q-adq.inadequate{background:var(--poor-bg);color:#a82424}
.bp-scope .brd-q-atext{
  font-size:12.5px;line-height:1.6;color:var(--navy);margin:8px 0 0;
  white-space:pre-wrap;max-width:88ch}
.bp-scope .brd-q-anote{
  font-size:11.5px;line-height:1.55;color:var(--muted);margin:8px 0 0;max-width:88ch}
.bp-scope .brd-q-asrc{
  display:flex;align-items:center;gap:6px;font-size:10.5px;color:var(--muted);margin:8px 0 0}
/* An answer with nothing behind it is not an error, but it is worth seeing. */
.bp-scope .brd-q-asrc.none{color:var(--faint);font-style:italic}

.bp-scope .brd-q-assess{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:11px;
  padding-top:10px;border-top:1px dotted #e5e9ef}
.bp-scope .brd-q-assess span{font-size:11px;font-weight:600;color:var(--muted)}

.bp-scope .brd-q-resolution{
  margin-top:16px;padding:11px 13px;border-radius:8px;background:#f2f8f4;
  border:1px solid #d6e8db}
.bp-scope .brd-q-resolution h4{margin-top:0;color:#356b3f}
.bp-scope .brd-q-resolution p{font-size:12.5px;line-height:1.6;color:#2f5a38;margin:0}

/* ── The multi-year thread ──────────────────────────────── */

.bp-scope .brd-q-thread{margin-top:16px}
.bp-scope .brd-q-threadnote{
  font-size:12px;font-weight:600;color:#8a5a10;background:#fdf1dd;
  padding:8px 11px;border-radius:7px;margin:0 0 11px;line-height:1.55}
.bp-scope .brd-q-timeline{list-style:none;margin:0;padding:0 0 0 18px;
  border-left:2px solid #e0e6ee}
.bp-scope .brd-q-timeline li{position:relative;padding-bottom:16px}
.bp-scope .brd-q-timeline li::before{
  content:'';position:absolute;left:-24px;top:5px;width:9px;height:9px;
  border-radius:50%;background:#fff;border:2px solid #b9c3d1}
.bp-scope .brd-q-tlhead{display:flex;align-items:center;gap:9px;margin-bottom:5px}
.bp-scope .brd-q-tlhead b{font-size:12px;color:var(--navy)}
.bp-scope .brd-q-tlq{font-size:12.5px;line-height:1.55;color:var(--navy);margin:0;max-width:88ch}
.bp-scope .brd-q-tla{
  font-size:12px;line-height:1.6;color:var(--muted);margin:6px 0 0;max-width:88ch}
.bp-scope .brd-q-tla b{color:var(--navy)}
.bp-scope .brd-q-tla.none{font-style:italic;color:var(--faint)}
.bp-scope .brd-q-tlr{
  font-size:11.5px;line-height:1.55;color:#356b3f;margin:6px 0 0;max-width:88ch}

.bp-scope .brd-q-actions{
  display:flex;gap:7px;flex-wrap:wrap;margin-top:18px;padding-top:14px;
  border-top:1px solid var(--line)}

/* ── Modal form ─────────────────────────────────────────── */

.bp-scope .brd-q-scrim,.brd-q-scrim{
  position:fixed;inset:0;background:rgba(16,26,40,.42);z-index:1400}
.bp-scope .brd-q-modal,.brd-q-modal{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1401;
  width:min(680px,92vw);max-height:88vh;overflow-y:auto;background:#fff;
  border-radius:12px;box-shadow:0 18px 48px rgba(16,26,40,.26)}
.brd-q-modal header{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 22px;border-bottom:1px solid #e5e9ef}
.brd-q-modal h2{font-size:17px;font-weight:700;color:#16233a;margin:0}
.brd-q-x{border:none;background:none;font-size:24px;line-height:1;cursor:pointer;color:#98a3b3}
.brd-q-modal form{padding:20px 22px}
.brd-q-modal footer{
  display:flex;justify-content:flex-end;gap:9px;margin-top:20px;
  padding-top:16px;border-top:1px solid #e5e9ef}

.brd-q-field{display:block;margin-bottom:14px}
.brd-q-field > span{
  display:block;font-size:10px;font-weight:700;text-transform:uppercase;
  letter-spacing:.5px;color:#98a3b3;margin-bottom:5px}
.brd-q-field input,.brd-q-field select,.brd-q-field textarea{
  width:100%;padding:8px 11px;border:1px solid #d8dde4;border-radius:7px;
  font-size:13px;font-family:inherit;color:#16233a;background:#fff}
.brd-q-field textarea{resize:vertical;line-height:1.55}
.brd-q-field input:focus,.brd-q-field select:focus,.brd-q-field textarea:focus{
  outline:none;border-color:#3f7fd4;box-shadow:0 0 0 3px rgba(63,127,212,.12)}
.brd-q-frow{display:flex;gap:12px;flex-wrap:wrap}
.brd-q-frow .brd-q-field{flex:1 1 170px}
.brd-q-fnote{
  font-size:11.5px;line-height:1.55;color:#7b8695;margin:0;
  padding:10px 12px;background:#f6f8fa;border-radius:7px}

/* ── Buttons shared with the rest of the portal ─────────── */

.bp-scope .brd-btn.tiny{padding:4px 10px;font-size:11px}
.bp-scope .brd-btn.tiny.warn{border-color:#e8d6a8;color:#8a6410;background:#fdf9ef}
.bp-scope .brd-btn.tiny.bad{border-color:#eccfcb;color:#a82424;background:#fdf5f4}

@media (max-width:900px){
  .bp-scope .brd-q-detail{padding-left:16px}
  .bp-scope .brd-q-marks{flex-direction:row;min-width:0}
  .bp-scope .brd-q-row{flex-wrap:wrap}
}
