/* books-prelim.css: the FY2026 preliminary balance sheet on The Books (js/books-prelim.js, docs/BALANCE_PRELIM.md).
   Since the v11 rebuild the preliminary lines are drawn by js/books-home.js inside What he owes / What he owns, with the same
   flat bars as the audited lines (owner, Nov 14: no patterns, keep it simple; css/books-deep.css). This file styles the text
   badges and the "How we estimated this" sheet. Tokens only (--pk-*, which flip for dark mode by themselves); sizes in rem;
   tap targets >= var(--pk-tap) (44px). */

/* R4 (rough pass, Nov 16): the Books lane's tags are the one certainty tag, R2's .bb-tag (css/tokens-ext.css): caption size, weight 600,
   muted ink, no box, a leading 8px dot (filled = Close, hollow = Estimate); Actual and Audited carry no tag. The same rule is repeated
   here, scoped to the Books screens' own classes, so these screens read right on a build where R2's file hasn't landed yet; once it
   has, the two rules agree. The old .bkp-badge (still used by other lanes' files until they swap) takes the same look. */
.bb-tag,.bkp-badge{display:inline-flex;align-items:center;gap:5px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--bb-muted);
  font:600 var(--bb-fs-caption)/1.3 var(--bb-font-body);letter-spacing:0;text-transform:none;white-space:nowrap;vertical-align:baseline;cursor:inherit;user-select:none;-webkit-user-select:none}
.bb-tag::before,.bkp-badge::before{content:"";flex:none;width:8px;height:8px;box-sizing:border-box;border:1.5px solid currentColor;border-radius:var(--bb-radius-pill);background:currentColor}
.bb-tag--estimate::before,.bkp-badge--estimate::before{background:transparent}
.bb-tag--actual,.bb-tag--audited,.bkp-badge--actual,.bkp-badge--audited{display:none}
@media (forced-colors: active){ .bb-tag::before,.bkp-badge::before{border-color:CanvasText} }
.bkp-how__word{font-weight:600}

.bkp-howbtn{display:inline-flex;align-items:center;align-self:flex-start;min-height:var(--pk-tap);padding:0 0.25rem;border:0;background:none;color:var(--pk-link);
  font:600 var(--pk-fs-body)/1.3 var(--pk-font-body);text-decoration:underline;text-underline-offset:0.2em;cursor:pointer}
.bkp-howbtn:focus-visible{outline:0.1875rem solid var(--pk-focus);outline-offset:0.125rem}

/* the "How we estimated this" sheet */
.bkp-how{display:flex;flex-direction:column;gap:0.75rem;color:var(--pk-text);font:400 var(--pk-fs-small)/1.5 var(--pk-font-body)}
.bkp-how p{margin:0}
.bkp-how__lead{font-size:var(--pk-fs-body)}
.bkp-how__meta,.bkp-how__tot{color:var(--pk-muted)}
.bkp-how__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.75rem}
.bkp-how__item{padding:0.75rem 0 0;border-top:var(--pk-hair);scroll-margin-top:1rem}
.bkp-how__item:focus{outline:0}
.bkp-how__item:focus-visible{outline:0.1875rem solid var(--pk-focus);outline-offset:0.25rem}
.bkp-how__h{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;margin:0 0 0.25rem;font:700 var(--pk-fs-body)/1.3 var(--pk-font-body)}
.bkp-how__v b{font-size:var(--pk-fs-body);color:var(--pk-key)}
.bkp-how__k{font-weight:700}
.bkp-how__sure{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem}
.bkp-how__src ul{margin:0.25rem 0 0;padding-left:1.25rem}
.bkp-how__src li{overflow-wrap:anywhere}
.bkp-how a{color:var(--pk-link);text-underline-offset:0.2em}
.bkp-how__src a{display:flex;align-items:center;min-height:var(--pk-tap);padding:0.25rem 0;line-height:1.35}
.bkp-how__src li{padding:0 0 0.25rem}
.bkp-how__q{display:grid;grid-template-columns:auto 1fr;gap:0.5rem 0.75rem;align-items:center;margin:0}
.bkp-how__q dd{margin:0}
.bkp-how__q dt{font-weight:600}
/* "The math": a disclosure row, closed until asked for (R4) */
.bkp-how__math > summary{display:flex;align-items:center;gap:.375rem;min-height:var(--pk-tap);cursor:pointer;font-weight:600;color:var(--pk-link);list-style:none}
.bkp-how__math > summary::-webkit-details-marker{display:none}
.bkp-how__math > summary::after{content:"›";content:"›" / "";font-size:var(--bb-fs-title3);line-height:1;transition:none}
.bkp-how__math[open] > summary::after{transform:rotate(90deg)}
.bkp-how__math > p{margin:0 0 .25rem}
.bkp-howinline > summary{min-height:var(--pk-tap);display:flex;align-items:center;cursor:pointer;font-weight:700}
.bkp-how__srcmeta{display:block;color:var(--pk-muted)}

/* BB-424 and BB-427 (Nov 20): The Books' home (the federal report in its order, the auditor's verdict, the year row, the receipt card)
   and This year's money's two cards and three groups. Tokens only, so Light and Night follow the theme. */
.bkv-stm .bkv-stm__h { margin-top: 1.5rem; }
.bkv-arm--books > .bkv-cards + .bkv-cards, .bkv-arm--books > .bkv-stm + .bkv-cards { margin-top: .625rem; }
.bkv-verdicts { margin-top: .625rem; }
button.bkv-verdict { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.bkv-verdict-sheet .bkv-verdict__p { margin: 0 0 .75rem; font: 400 var(--bb-fs-body, 1rem)/1.45 var(--bb-font-body); color: var(--bb-ink); }
.bkv-verdict-sheet .bkv-src a { color: var(--bb-green); }
.bkv-yearpick .bkv-card__t { color: var(--bb-ink); }
.bkv-receipt { position: relative; display: grid; gap: .25rem; margin-top: .875rem; padding: 1rem 2.5rem 1rem 1.0625rem; border: 1px solid var(--bb-gold-text);
  border-radius: var(--bb-radius-card); background: var(--bb-card); color: var(--bb-ink); text-decoration: none; }
.bkv-receipt .bkv-chev { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
.bkv-receipt__t { font: 700 var(--bb-fs-title3)/1.2 var(--bb-font-display); }
.bkv-receipt__s { font: 400 var(--bb-fs-footnote)/1.35 var(--bb-font-body); color: var(--bb-muted); }
.bkv-receipt:focus-visible { outline: 3px solid var(--bb-gold); outline-offset: 2px; }
.bkv-bigcard { border-color: var(--bb-gold-text); min-height: 5rem; }
.bkv-bigcard__k { font: 600 .75rem/1.3 var(--bb-font-body); letter-spacing: .08em; text-transform: uppercase; }
.bkv-groups { margin-top: .625rem; }
.bkv-group > summary { list-style: none; cursor: pointer; }
.bkv-group > summary::-webkit-details-marker { display: none; }
.bkv-group[open] > summary .bkv-group__chev { transform: rotate(90deg); }
.bkv-group__list { margin: .5rem 0 0 .75rem; }
