/* =========================================================
   The playbook document's devices, on the reading register (design
   system v2): the playbooks, the portal's OS sub-page and the privacy
   notices.
   The devices the playbook pages draw in their own inline blocks, one
   sheet for the family because they share them: the trio, pillars and
   four-up columns, the lifecycle ramp, the day, the decision flow, the
   disclosures, the steps, the branches, the aim, the keys, the systems
   grid, the isolation cards, the folder tree, the how-to blocks and the
   RACI matrix. The same devices at the same volume; AA in both themes;
   dark designed (the black cells become warm paper, the ramp keeps its
   orange steps); no capitals. Every rule starts with :root[data-v2] and
   reads only v2's tokens.
   ========================================================= */

/* ── columns: the trio (PB-01), the pillars (PB-04), the four (PB-06) ── */
:root[data-v2] .pb-detail :is(.pb-trio, .pb-pillars, .pb-pillars-4) { border-top-color: var(--z-line-strong); border-bottom-color: var(--z-line); }
:root[data-v2] .pb-detail :is(.pb-trio__col, .pb-pillars__col, .pb-pillars-4__col) { border-color: var(--z-line); }
:root[data-v2] .pb-detail :is(.pb-trio__num, .pb-trio__role, .pb-pillars__num, .pb-pillars__role, .pb-pillars-4__num, .pb-pillars-4__role) { text-transform: none; }
/* the list's dash bullet is drawn as a short rule, not a dash character */
:root[data-v2] .pb-detail :is(.pb-trio__list, .pb-pillars__list, .pb-list) li::before { content: ""; width: 10px; height: 2px; top: 0.7em; background: var(--z-accent); }

/* ── the lifecycle ramp (PB-01): the same orange steps, dark at its end ── */
:root[data-v2] .pb-detail .pb-lifecycle { border-top-color: var(--z-line-strong); }
:root[data-v2] .pb-detail .pb-lc { background: var(--z-panel); }
:root[data-v2] .pb-detail .pb-lc:nth-child(2) { background: var(--z-ramp-1); }
:root[data-v2] .pb-detail .pb-lc:nth-child(3) { background: var(--z-ramp-2); }
:root[data-v2] .pb-detail .pb-lc:nth-child(4) { background: var(--z-ramp-3); }
/* the deepest orange step: its number in ink (the accent's text shade was 4.3:1 on it) */
:root[data-v2] .pb-detail .pb-lc:nth-child(4) .pb-lc__num { color: var(--z-text); }
:root[data-v2] .pb-detail .pb-lc:nth-child(5) { background: var(--z-inv); color: var(--z-on-inv); }
:root[data-v2] .pb-detail .pb-lc:nth-child(5) .pb-lc__num { color: var(--z-inv-accent); }
:root[data-v2] .pb-detail .pb-lc:nth-child(5) .pb-lc__desc { color: var(--z-on-inv-2); }

/* ── the day (PB-04): the same three cells ── */
:root[data-v2] .pb-detail .pb-day { border-top-color: var(--z-line-strong); }
:root[data-v2] .pb-detail .pb-day__cell { background: var(--z-panel); }
:root[data-v2] .pb-detail .pb-day__cell:nth-child(2) { background: var(--z-ramp-2); }
:root[data-v2] .pb-detail .pb-day__cell:nth-child(3) { background: var(--z-inv); color: var(--z-on-inv); }
:root[data-v2] .pb-detail .pb-day__cell:nth-child(3) .pb-day__time { color: var(--z-inv-accent); }
:root[data-v2] .pb-detail .pb-day__cell:nth-child(3) .pb-day__desc { color: var(--z-on-inv-2); }

/* ── the decision flow (PB-01, PB-07, the portal) ── */
:root[data-v2] .pb-detail .pb-flow .fl--auto { background: var(--z-ramp-1); border-color: var(--z-accent); }
:root[data-v2] .pb-detail .pb-flow :is(.fl--route, .fl--branch) { background: var(--z-bg); border-color: var(--z-line-strong); }
:root[data-v2] .pb-detail .pb-flow .fl--branch { border-left-color: var(--z-accent); }
:root[data-v2] .pb-detail .pb-flow .fl--branch:nth-child(2) { border-left-color: var(--z-line-strong); }
:root[data-v2] .pb-detail .pb-flow .fl--final { background: var(--z-inv); color: var(--z-on-inv); border-color: var(--z-inv); }
:root[data-v2] .pb-detail .pb-flow .fl--final .fl__bot { color: var(--z-on-inv-2); }
/* the last step: orange stays orange; its words are small, so ink (white was 3.2:1) */
:root[data-v2] .pb-detail .pb-flow .fl--done { background: var(--z-accent); color: var(--z-on-accent); border-color: var(--z-accent); }
:root[data-v2] .pb-detail .pb-flow .fl--done .fl__bot { color: var(--z-on-accent); }

/* ── the disclosures (PB-04, the portal) ── */
:root[data-v2] .pb-detail details.pb-disc { border-top-color: var(--z-line-strong); }
:root[data-v2] .pb-detail details.pb-disc + details.pb-disc { border-top-color: var(--z-line); }
:root[data-v2] .pb-detail :is(.pb-disc__title small, .pb-disc__meta, .pb-disc__row dt, .pb-disc__sub) { text-transform: none; }
:root[data-v2] .pb-detail .pb-disc__chev::before { border-color: var(--z-text); }
:root[data-v2] .pb-detail details.pb-disc[open] .pb-disc__chev { background: var(--z-accent); border-color: var(--z-accent); }
:root[data-v2] .pb-detail details.pb-disc[open] .pb-disc__chev::before { border-color: var(--z-on-accent); }

/* ── the steps, the branches, the aim and the keys (PB-04, the portal) ── */
:root[data-v2] .pb-detail .pb-branch__card { border-color: var(--z-line-strong); }
:root[data-v2] .pb-detail .pb-branch__card.alt { background: var(--z-panel); border-color: var(--z-line-2); }
:root[data-v2] .pb-detail :is(.pb-branch__top, .pb-aim__lbl, .pb-keys__num, .pb-keys__to) { text-transform: none; }
:root[data-v2] .pb-detail .pb-aim { background: var(--z-panel); border-left-color: var(--z-accent); }
:root[data-v2] .pb-detail .pb-keys { border-color: var(--z-line-strong); }

/* ── the systems grid, the isolation cards and the folder tree (PB-01) ── */
:root[data-v2] .pb-detail .pb-sys { border-top-color: var(--z-line-strong); }
:root[data-v2] .pb-detail :is(.pb-sys__role, .pb-sys__owns b, .pb-sys__not b, .pb-iso__lbl, .pb-tree__hd) { text-transform: none; }
:root[data-v2] .pb-detail .pb-iso__card { background: var(--z-bg); border-color: var(--z-line-strong); }
:root[data-v2] .pb-detail .pb-iso__card.alt { background: var(--z-inv); color: var(--z-on-inv); border-color: var(--z-inv); }
:root[data-v2] .pb-detail .pb-iso__card.alt .pb-iso__lbl { color: var(--z-inv-accent); }
:root[data-v2] .pb-detail .pb-iso__card.alt :is(.pb-iso__desc, .pb-iso__list li) { color: var(--z-on-inv-2); }

/* ── the RACI matrix (PB-01): each cell's letter keeps its mark ── */
:root[data-v2] .pb-detail .pb-raci th { text-transform: none; border-bottom-color: var(--z-line-strong); }
:root[data-v2] .pb-detail .pb-raci :is(.pill, .pb-raci__mark).r,
:root[data-v2] .pb-detail .pb-raci :is(.pill, .pb-raci__mark).ar { background: var(--z-accent); color: var(--z-on-accent); }
:root[data-v2] .pb-detail .pb-raci :is(.pill, .pb-raci__mark).a { background: var(--z-inv); color: var(--z-on-inv); }
:root[data-v2] .pb-detail .pb-raci :is(.pill, .pb-raci__mark).c { background: var(--z-panel); color: var(--z-text); border-color: var(--z-line-2); }
:root[data-v2] .pb-detail .pb-raci :is(.pill, .pb-raci__mark).i { color: var(--z-text-2); border-color: var(--z-line); }
/* the matrix's small words at the 12px floor */
:root[data-v2] .pb-detail .pb-raci th,
:root[data-v2] .pb-detail .pb-raci :is(.pill, .pb-raci__mark),
:root[data-v2] .pb-detail .pb-raci__legend { font-size: 12px; }
