/* Lifetime Supply · redesign 12 nov · P3 the briefs board · on top of briefs-1112.css (the sprint's briefs audit, which sits on el-E10 B and el-E7 C)
   Every value names its source. "no reference" where there is none. Sizes are on-screen px at 1440. */
:root { --bf-font: var(--ls-face-ui); --bf-page: var(--fr-panel); --bf-sheet: var(--fr-card); --bf-rim: var(--fr-card-edge); }          /* the sheets are P9's cards: white, 1 px #EBEBED, radius 14 */
[data-theme="dark"] { --bf-page: var(--fr-panel); --bf-sheet: var(--fr-card); --bf-rim: var(--fr-card-edge); --bf-head: #111113; --bf-rule: #1A1A1C; --bf-hover: #121214; }
.sheet, .bt-sheet { border-radius: var(--fr-card-r); }
.hx-card { border-radius: var(--fr-card-r); background: var(--fr-card); border-color: var(--fr-card-edge); }

/* the page title in the brand face (CONTEXT: type D, Albert Sans Medium 500 at -0.02em for headlines; the interface keeps the system face) */
.bd-h1 { font: 500 30px/34px var(--ls-face-brand); letter-spacing: -0.02em; }   /* live 28 semibold in SF; Albert runs a touch smaller on the cap, so 30 holds the same cap height (type-exact proof, portal preview) */
.bd-dek { max-width: 440px; }

/* the lane chips: el-E3 chip md (303's keyword chips), links that jump. The chip of the lane in view fills with its lane's shade (critic P7, 03:09: "the filter that is on fills with its lane's shade") */
.bd-anchors { gap: 8px; margin-top: 22px; }
.bd-chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 6px; border: 1px solid #E2E2E2; background: #F2F2F2;
  font: 500 14px/1 var(--bf-font); color: var(--bf-ink); text-decoration: none; white-space: nowrap; }           /* el-E3 md: 28 tall, 0 11, radius 6, 14/500 */
.bd-chip .n { font: 400 13px/1 var(--bf-font); color: var(--bf-meta); font-variant-numeric: tabular-nums; }      /* the map's own count, beside the word (el-E3: counts only where the portal already counts) */
.bd-chip[aria-current="true"] { background: var(--tg); color: var(--tg-ink); border-color: transparent; box-shadow: inset 0 0 0 1px var(--tg-rim); }
.bd-chip[aria-current="true"] .n { color: inherit; opacity: .78; }
.bd-chip[data-tone="urgent"] { --tg: var(--tone-urgent); --tg-ink: var(--tone-urgent-ink); --tg-rim: var(--tone-urgent-rim); }
.bd-chip[data-tone="hot"]    { --tg: var(--tone-hot);    --tg-ink: var(--tone-hot-ink);    --tg-rim: var(--tone-hot-rim); }
.bd-chip[data-tone="warm"]   { --tg: var(--tone-warm);   --tg-ink: var(--tone-warm-ink);   --tg-rim: var(--tone-warm-rim); }
.bd-chip[data-tone="cold"]   { --tg: var(--tone-cold);   --tg-ink: var(--tone-cold-ink);   --tg-rim: var(--tone-cold-rim); }
[data-theme="dark"] .bd-chip { background: #181818; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .bd-chip[aria-current="true"] { background: var(--tg); color: var(--tg-ink); border-color: transparent; }

/* option A at density: the chips ride under the top bar once the page scrolls past them (no reference: his 5 Nov call keeps every brief on one page,
   so at 161 briefs the lane you are in has to stay named). Same chips, same fill rule. */
.bd-stick { position: fixed; z-index: 14; left: calc(var(--fr-side) + 1px); right: calc(var(--fr-inset) + 1px); top: calc(var(--fr-inset) + var(--fr-top)); height: 52px; display: flex; align-items: center; gap: 8px;
  padding: 0 var(--fr-pad); background: var(--fr-panel); border-bottom: 1px solid var(--fr-panel-edge); }
.bd-stick .t { margin-right: 8px; font: 500 15px/1 var(--ls-face-brand); letter-spacing: -0.02em; }

/* the sheets at 161 briefs: E10 B unchanged; the gap between full-width sheets 24 (E10 B: 20; one step more so a sheet's foot and the next head read apart at length) */
.bd { gap: var(--fr-gutter); margin-top: 24px; }
.sheet-h { position: relative; }

/* ───────── option B: the lanes as 303's tabs (a real filter), each sheet as 298's table (el-E11 rows) ───────── */
.bt-tabs { display: inline-flex; align-items: center; border-radius: 8px; background: #F7F7F7; margin-top: 22px; }       /* el-E3 tabs md: 303 track */
.bt-tab { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 8px;
  font: 500 15px/1 var(--bf-font); color: #646464; text-decoration: none; white-space: nowrap; }                                 /* el-E3: 36 tall, 0 18 (16 here: five tabs), 15/500 */
.bt-tab + .bt-tab::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: #DCDCDC; } /* 303 separators */
.bt-tab[aria-selected="true"] { color: var(--bf-ink); background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06); }
.bt-tab[aria-selected="true"]::before, .bt-tab[aria-selected="true"] + .bt-tab::before { display: none; }
.bt-tab .c { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: #E4E4E4; color: #424242;
  font: 500 13px/1 var(--bf-font); font-variant-numeric: tabular-nums; }                                                           /* 303 "Activity 16" */
.bt-tab[aria-selected="true"] .c { background: #F0F0F0; color: var(--bf-ink); }
.bt-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--tg); box-shadow: inset 0 0 0 1px var(--tg-rim); }                   /* no reference: the lane's shade as a small square key, as the map's legend dash */
[data-theme="dark"] .bt-tabs { background: #0F0F0F; }
[data-theme="dark"] .bt-tab { color: #8A8A8A; } [data-theme="dark"] .bt-tab + .bt-tab::before { background: rgba(255,255,255,.12); }
[data-theme="dark"] .bt-tab[aria-selected="true"] { background: #202020; color: #FFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
[data-theme="dark"] .bt-tab .c { background: #202020; color: #B5B5B5; } [data-theme="dark"] .bt-tab[aria-selected="true"] .c { background: #2E2E2E; color: #FFF; }

.bt { display: grid; gap: var(--fr-gutter); margin-top: 24px; }
.bt-sheet { background: var(--bf-sheet); border: 1px solid var(--bf-rim); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); }   /* E10 B sheet */
[data-theme="dark"] .bt-sheet { box-shadow: none; }
.bt-h { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px; }                                    /* 298: the card's title row on white, "Projects (44 projects)" */
.bt-h h2 { margin: 0; font: 600 16px/20px var(--bf-font); letter-spacing: -0.01em; }
.bt-h .sheet-line { margin-left: auto; }
.bt-cols { display: grid; grid-template-columns: 180px minmax(0, 1fr) 92px 112px 150px 64px 92px 60px; column-gap: 16px; align-items: center; padding: 0 18px; }
.bt-head { height: 32px; background: var(--bf-head); border-top: 1px solid var(--bf-rule); border-bottom: 1px solid var(--bf-rule);
  font: 500 12px/16px var(--bf-font); color: var(--bf-meta); }                                                            /* 298 header band #F7F7F7 (el-E11: 32 tall, 12/500 meta) */
.bt-head .r, .bt-row .r { text-align: right; justify-self: end; }
.bt-head svg { width: 11px; height: 11px; margin-left: 3px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }  /* 298 "Project ↓": the sorted column */
.bt-row { min-height: 52px; padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--bf-rule); color: var(--bf-ink); text-decoration: none; }  /* el-E11 row 48, plus 4 so a two-line ask fits */
.bt-row:last-child { border-bottom: 0; }
.bt-row:hover, .bt-row.is-hover { background: var(--bf-hover); }
.bt-name { font: 500 15px/20px var(--bf-font); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* el-E11 strong 15/20 */
.bt-ask { font: 400 13px/18px var(--bf-font); color: var(--bf-ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bt-ask.none { color: var(--bf-meta); }
.bt-lane { font: 500 13px/18px var(--bf-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }          /* the lane is what a producer scans for: ink (briefs audit) */
.bt-num { font: 400 13px/18px var(--bf-font); color: var(--bf-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-num b { font-weight: 600; color: var(--bf-ink); }
.bt-tier { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bt-tier .via { font: 400 12px/16px var(--bf-font); color: var(--bf-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-when { font: 400 13px/18px var(--bf-font); color: var(--bf-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-when.is-soon { color: var(--bf-ink); font-weight: 500; }

/* phone: B's rows become two-line list rows (298 on a phone: the title, then the facts under it) */
@media (max-width: 759.98px) {
  .bd-h1 { font-size: 26px; line-height: 30px; }
  .bt-tabs { display: flex; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .bt-head { display: none; }
  .bt-h { height: auto; padding: 14px 16px; flex-wrap: wrap; } .bt-h .sheet-line { margin: 4px 0 0; flex-basis: 100%; padding-left: 0; }
  .bt-cols { grid-template-columns: minmax(0,1fr) auto; row-gap: 3px; padding: 0 16px; }
  .bt-row > :nth-child(3), .bt-row > :nth-child(4), .bt-row > :nth-child(5) { display: none; }
  .bt-row > .bt-when:empty { display: none; }
  .bt-row .bt-name { grid-column: 1; grid-row: 1; } .bt-row .bt-tagcell { grid-column: 2; grid-row: 1; }
  .bt-row .bt-ask { grid-column: 1 / -1; grid-row: 2; } .bt-row .bt-when { grid-column: 1 / -1; grid-row: 3; justify-self: start; text-align: left; }
  .bt-row .bt-ask.none { display: none; }
  .bd-stick { left: 0; right: 0; top: 56px; padding: 0 16px; overflow-x: auto; background: var(--fr-ground); }
  .sheet, .bt-sheet, .hx-card { border-radius: 18px; }
}
.bd-top > .bt-tabs { grid-column: 1; grid-row: 2; align-self: end; justify-self: start; }
@media (max-width: 759.98px) {
  .bd-page > .bd-top > .bt-tabs { order: 2; margin-top: 16px; }
  .bt { order: 3; margin-top: 16px; gap: 12px; }
  .bt-row { padding-top: 12px; padding-bottom: 12px; row-gap: 4px; }
  .bt-row .bt-lane { display: block !important; grid-column: 1; grid-row: 3; font-weight: 500; }
  .bt-row > .bt-when { grid-column: 2; grid-row: 3; justify-self: end; text-align: right; }
  .bt-row > .bt-when:not(:empty):not(.bt-whencell)::before { content: "closes "; }
}

/* ── 14:05 · A1's portal audit (VERDICTS.md, the live board 6.7: "cut the card to its content", "a 100 px hole between the intro and the filters") ── */
.bd-top { align-items: start; }
.bd-anchors { grid-row: 2; align-self: start; margin-top: 20px; }                 /* the chips sit on the intro's edge, right under it (A1) */
.bd-top > .bt-tabs { align-self: start; margin-top: 20px; }
.hx-card { padding: 16px 18px; }
.hx { width: 88px; margin-top: 10px; }                                             /* the map card one step smaller, so it no longer opens a hole under the intro (A1); its construction unchanged */
.hx-key { margin-top: 10px; }
.tile-ask { -webkit-line-clamp: 1; }                                               /* one line of what they're after: the tile cut to its content (A1 "about 100 px") while keeping the audit's ask */
.tile-chips { padding-top: 12px; }
