/* ============================================================
 * The C2 look: the middle ground Fred chose (2 Nov 2026, "C2 is the middle ground... across the site").
 * Plan: .claude/plans/c2-rollout-2026-11.md. Values copied from the drawing stylesheet the boards use, mapped to
 * tokens.css (every colour is a --pk-* token; the C2-only ones are declared there, beside the palette).
 *
 * NEW class names only (pk2-*): no existing .pk-* rule is retuned, so no page changes until it opts in, and a page
 * opts in only while LOOK_C2 is on for the viewer (static/js/c2/look.js). Kept out of tokens.css for its size
 * (file-organization.md). scripts/verify_c2_pages.py checks every converted page against these pieces.
 *
 * A page: .pk2-body > .pk2-head, .pk2-band, .pk2-facts, then .pk2-cols (main + .pk2-side) of .pk2-panel panels.
 *  - ONE-line head: title, grey context, chips, actions on the right (quiet, outline, at most ONE orange, last)
 *  - anything that needs you is an orange band, never a panel
 *  - key numbers in ONE facts band, a small label above each number
 *  - one light panel per working area, never a panel inside a panel
 *  - long lists grouped (.pk2-grp), ~36px rows (.pk2-row) on hairlines; number tables dense (.pk2-tb) in a panel
 *  - colour that means one thing: the view's own colour as a thin left accent (.pk2-accent, --pk-view), status,
 *    report type, filing family, up/down
 * Nothing under 12px. Breakpoint 768 only (the kit's).
 * ============================================================ */

.pk2-body { display: flex; flex-direction: column; gap: 14px; color: var(--pk-text); font: 400 13.5px/1.45 var(--pk-font); }
.pk2-body * { box-sizing: border-box; }

/* The view's own colour: set once on the page (or a panel), read by .pk2-accent. */
.pk2-v--navy { --pk-view: var(--pk-navy); }
.pk2-v--blue { --pk-view: var(--pk-type-weekly); }
.pk2-v--green { --pk-view: var(--pk-gain); }
.pk2-v--teal { --pk-view: var(--pk-type-ftd); }
.pk2-v--orange { --pk-view: var(--pk-orange); }
.pk2-v--violet { --pk-view: var(--pk-type-strategy); }
.pk2-v--research { --pk-view: var(--pk-door-research); }
.pk2-v--publish { --pk-view: var(--pk-door-publish); }
.pk2-v--finance { --pk-view: var(--pk-door-finance); }
.pk2-v--compliance { --pk-view: var(--pk-door-compliance); }
.pk2-v--admin { --pk-view: var(--pk-door-admin); }
.pk2-v--record { --pk-view: var(--pk-pod-record); }
.pk2-v--interactions { --pk-view: var(--pk-pod-interactions); }
.pk2-v--engagement { --pk-view: var(--pk-pod-engagement); }
.pk2-v--desk { --pk-view: var(--pk-pod-desk); }
.pk2-v--send { --pk-view: var(--pk-pod-send); }
.pk2-v--ideas { --pk-view: var(--pk-pod-ideas); }
.pk2-v--holdings { --pk-view: var(--pk-pod-holdings); }
.pk2-accent { box-shadow: inset 3px 0 0 var(--pk-view); }

/* ── The head: ONE line ── */
.pk2-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.pk2-av { width: 40px; height: 40px; border-radius: 50%; background: var(--pk-navy); color: var(--pk-white); font: 700 15px/40px var(--pk-font); text-align: center; flex: none; }
.pk2-code { font: 600 12.5px var(--pk-font-mono); background: var(--pk-navy); color: var(--pk-white); border-radius: 6px; padding: 4px 8px; flex: none; }
.pk2-title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--pk-navy); letter-spacing: -.01em; white-space: nowrap; }
.pk2-ctx { font-size: 14px; color: var(--pk-muted); white-space: nowrap; }
.pk2-link { font-size: 14px; font-weight: 500; color: var(--pk-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pk-link-line); cursor: pointer; }
.pk2-chip { font-size: 12.5px; font-weight: 500; background: var(--pk-sunken); color: var(--pk-text); border-radius: 12px; padding: 3px 10px; white-space: nowrap; }
.pk2-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pk2-ib { width: 32px; height: 32px; border: 1px solid var(--pk-border); border-radius: 7px; background: var(--pk-white); display: grid; place-items: center; color: var(--pk-muted); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.pk2-q { height: 32px; display: inline-flex; align-items: center; padding: 0 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--pk-text); background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.pk2-btn { height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 7px; font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid var(--pk-border); background: var(--pk-white); color: var(--pk-text); white-space: nowrap; cursor: pointer; text-decoration: none; }
.pk2-btn--primary { background: var(--pk-orange); border-color: var(--pk-orange); color: var(--pk-white); }
.pk2-btn--primary:hover:not(:disabled) { background: var(--pk-orange-hover); border-color: var(--pk-orange-hover); }
.pk2-btn:disabled { opacity: .5; cursor: not-allowed; }
.pk2-btn:focus-visible, .pk2-ib:focus-visible, .pk2-q:focus-visible, .pk2-f:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── A note, or what needs you: an orange band, never a panel ── */
.pk2-band { display: flex; align-items: baseline; gap: 14px; background: var(--pk-orange-soft); border-left: 3px solid var(--pk-orange); border-radius: 0 8px 8px 0; padding: 9px 14px; font-size: 14px; }
.pk2-band-when, .pk2-nw { font-size: 12.5px; color: var(--pk-muted); white-space: nowrap; }
.pk2-band-acts { margin-left: auto; display: flex; gap: 14px; white-space: nowrap; }
.pk2-band a, .pk2-go { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--pk-orange-text); text-decoration: none; white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; }

/* ── Facts: ONE white band, a label above each number (3 to 6 facts) ── */
.pk2-facts { display: flex; background: var(--pk-white); border: 1px solid var(--pk-border); border-radius: 10px; padding: 9px 0; }
.pk2-fact { flex: 1 1 0; padding: 0 18px; border-left: 1px solid var(--pk-rule); min-width: 0; }
.pk2-fact--wide { flex: 1.5 1 0; }
.pk2-fact:first-child { border-left: 0; }
.pk2-fl { font-size: 12px; color: var(--pk-muted); white-space: nowrap; }
.pk2-fv { display: flex; align-items: baseline; gap: 8px; margin-top: 1px; white-space: nowrap; overflow: hidden; }
.pk2-fv b { font-size: 18px; font-weight: 700; color: var(--pk-navy); line-height: 1.3; font-variant-numeric: tabular-nums; }
.pk2-fv b.pk2-hot { color: var(--pk-orange-text); }
.pk2-fv span { font-size: 12.5px; color: var(--pk-muted); }
.pk2-fv em { font-style: normal; color: var(--pk-orange-text); font-weight: 600; }
.pk2-up, .pk2-fv span.pk2-up { color: var(--pk-gain); font-weight: 600; }
.pk2-dn, .pk2-fv span.pk2-dn { color: var(--pk-loss); font-weight: 600; }
.pk2-fv span.pk2-hot { color: var(--pk-orange-text); }

/* ── Layout ── */
.pk2-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.pk2-cols--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pk2-cols--one { grid-template-columns: minmax(0, 1fr); }
.pk2-side, .pk2-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ── A panel: light white, one per working area, never a panel inside a panel ── */
.pk2-panel { background: var(--pk-white); border: 1px solid var(--pk-border); border-radius: 10px; padding: 14px 16px 12px; min-width: 0; }
.pk2-ph { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--pk-rule); }
.pk2-ph-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--pk-navy); }
.pk2-count { font: 600 13px var(--pk-font-mono); color: var(--pk-orange-text); }
.pk2-ph-note { margin-left: auto; font-size: 12px; color: var(--pk-muted); }

/* ── Filter chips ── */
.pk2-flt { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.pk2-f { font: inherit; font-size: 12.5px; font-weight: 500; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--pk-border); background: var(--pk-white); color: var(--pk-text); white-space: nowrap; cursor: pointer; }
.pk2-f em { font-style: normal; color: var(--pk-muted); margin-left: 4px; }
.pk2-f.pk2-on { background: var(--pk-navy); border-color: var(--pk-navy); color: var(--pk-white); }
.pk2-f.pk2-on em { color: var(--pk-on-navy-mut); }

/* ── A group inside a list (a week, a day, a kind), with its count ── */
.pk2-grp { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding: 2px 0 5px; border-bottom: 1px solid var(--pk-border); }
.pk2-grp b { font-size: 13px; font-weight: 700; color: var(--pk-navy); }
.pk2-grp span { font-size: 12px; color: var(--pk-muted); }
.pk2-grp span:last-child:not(:nth-child(2)) { margin-left: auto; }

/* ── A row: date/code, one bold thing (+ grey bits), status/action right. 36px, hairline ── */
.pk2-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 36px; border-bottom: 1px solid var(--pk-hair); font-size: 13.5px; }
.pk2-row--2 { grid-template-columns: minmax(0, 1fr) auto; }
.pk2-row--4 { grid-template-columns: 66px minmax(0, 1fr) auto auto; }
.pk2-d { font: 12px var(--pk-font-mono); color: var(--pk-muted); white-space: nowrap; }
.pk2-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pk2-t b { font-weight: 600; }
.pk2-t code { font: 12px var(--pk-font-mono); color: var(--pk-muted); margin: 0 6px 0 4px; }
.pk2-t small { font-size: 12.5px; color: var(--pk-muted); margin-left: 6px; }
.pk2-sub { display: block; font-size: 12.5px; color: var(--pk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk2-s { font-size: 12.5px; white-space: nowrap; text-align: right; color: var(--pk-muted); }
.pk2-s--ok { color: var(--pk-gain); }
.pk2-s--no { color: var(--pk-orange-text); font-weight: 500; }
.pk2-s--rd { color: var(--pk-text); }
.pk2-more { display: block; padding: 10px 0 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--pk-orange-text); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }

/* ── Label : value pairs ── */
.pk2-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 36px; border-bottom: 1px solid var(--pk-hair); font-size: 13.5px; }
.pk2-kv > span:first-child { font-size: 12.5px; color: var(--pk-muted); }
.pk2-kv .pk2-v { min-width: 0; padding: 4px 0; }
.pk2-kv .pk2-v i { font-style: normal; color: var(--pk-muted); }
.pk2-kv a { font-size: 12.5px; font-weight: 600; color: var(--pk-orange-text); text-decoration: none; }

/* ── A dense table of numbers inside a panel: mono grey head, hairline rows, right-aligned figures.
      Wrap it in .pk2-tbl-box so a wide one scrolls in its own box, never the page. ── */
.pk2-tbl-box { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; max-width: 100%; }
.pk2-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.pk2-tb th { font: 600 12px var(--pk-font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--pk-muted); text-align: left; padding: 8px 10px 6px 0; border-bottom: 1px solid var(--pk-border); white-space: nowrap; background: transparent; }
.pk2-tb td { padding: 0 10px 0 0; height: 34px; border-bottom: 1px solid var(--pk-hair); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 380px; }
.pk2-tb .pk2-n { text-align: right; font: 12.5px var(--pk-font-mono); font-variant-numeric: tabular-nums; }
.pk2-tb tr.pk2-gr td { height: 30px; font: 700 12.5px var(--pk-font); color: var(--pk-navy); border-bottom: 1px solid var(--pk-border); padding-top: 8px; }
.pk2-tb tr.pk2-sel td { background: var(--pk-cream); }
.pk2-tb tr.pk2-sel td:first-child { box-shadow: inset 3px 0 0 var(--pk-orange); }

/* ── A row opened in place: the one lifted thing ── */
.pk2-open { margin: 4px 0 8px; padding: 14px 16px; border: 1px solid var(--pk-border); border-left: 3px solid var(--pk-orange); border-radius: 0 10px 10px 0; background: var(--pk-white); display: flex; flex-direction: column; gap: 10px; }

/* ── Colour that means one thing ── */
.pk2-tk { display: inline-block; width: 4px; height: 14px; border-radius: 2px; vertical-align: -2px; background: var(--pk-orange); margin-right: 8px; }
.pk2-tk--daily { background: var(--pk-gain); }
.pk2-tk--weekly { background: var(--pk-type-weekly); }
.pk2-tk--strategy { background: var(--pk-type-strategy); }
.pk2-fam { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 4px; margin-right: 6px; white-space: nowrap; }
.pk2-fam--results { background: var(--pk-fam-results-bg); color: var(--pk-fam-results); }
.pk2-fam--guidance { background: var(--pk-fam-guidance-bg); color: var(--pk-fam-guidance); }
.pk2-fam--capital { background: var(--pk-fam-capital-bg); color: var(--pk-fam-capital); }
.pk2-fam--ownership { background: var(--pk-fam-ownership-bg); color: var(--pk-fam-ownership); }
.pk2-fam--material { background: var(--pk-fam-material-bg); color: var(--pk-fam-material); }
.pk2-fam--governance { background: var(--pk-fam-governance-bg); color: var(--pk-fam-governance); }
.pk2-fam--mna { background: var(--pk-fam-mna-bg); color: var(--pk-fam-mna); }
.pk2-kd { display: inline-block; font-size: 12px; font-weight: 600; border: 1px solid currentColor; border-radius: 4px; padding: 0 6px; margin-right: 8px; background: var(--pk-white); white-space: nowrap; }
.pk2-kd--ib { color: var(--pk-fam-capital); }
.pk2-kd--em { color: var(--pk-fam-guidance); }
.pk2-kd--cl { color: var(--pk-fam-results); }
.pk2-hold { font-size: 12px; font-weight: 600; color: var(--pk-fam-ownership); background: var(--pk-fam-ownership-bg); border-radius: 4px; padding: 1px 6px; margin-left: 8px; }
.pk2-hot { color: var(--pk-orange-text); }
.pk2-mute { color: var(--pk-muted); }
.pk2-mono { font: 12.5px var(--pk-font-mono); font-variant-numeric: tabular-nums; }
.pk2-bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--pk-rule); vertical-align: middle; position: relative; overflow: hidden; }
.pk2-bar i { display: block; height: 100%; background: var(--pk-view); }
.pk2-foot { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12.5px; color: var(--pk-muted); padding: 0 2px; }
.pk2-lst { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 2px; }
.pk2-add { display: block; padding: 8px 0 0; font: inherit; font-size: 12.5px; color: var(--pk-muted); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.pk2-add b { color: var(--pk-orange-text); font-weight: 600; }

/* ── The header toggle, New look / Classic (shown only to people the switch lets in) ── */
.pk2-look-btn { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 14px; border: 1px solid var(--pk-on-navy-fill); background: transparent; color: var(--pk-on-navy-mut); font: 600 12px var(--pk-font); cursor: pointer; white-space: nowrap; }
.pk2-look-btn:hover { color: var(--pk-on-navy); background: var(--pk-on-navy-fill); }
.pk2-look-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── Phone (the kit's 768 breakpoint): one column, the head wraps, facts two across, panels flat edge to edge,
      every control keeps its drawn size and gains an invisible 40px tap ── */
@media (max-width: 767px) {
  .pk2-head { flex-wrap: wrap; row-gap: 8px; }
  .pk2-title, .pk2-ctx { white-space: normal; }
  .pk2-title { font-size: 18px; }
  .pk2-acts { margin-left: 0; flex-wrap: wrap; width: 100%; }
  .pk2-band { flex-wrap: wrap; row-gap: 4px; }
  .pk2-band-acts { margin-left: 0; flex-wrap: wrap; }
  .pk2-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 10px; }
  .pk2-fact { padding: 0 14px; }
  .pk2-fact:nth-child(odd) { border-left: 0; }
  .pk2-cols, .pk2-cols--even { grid-template-columns: minmax(0, 1fr); }
  .pk2-panel { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 12px 16px 10px; }
  .pk2-ph { flex-wrap: wrap; }
  .pk2-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .pk2-row--4 { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .pk2-row--4 > :last-child { grid-column: 2 / -1; justify-self: start; }
  .pk2-row--2 { grid-template-columns: minmax(0, 1fr) auto; }  /* after .pk2-row in this block, so two-column rows stay two columns on a phone */
  .pk2-kv { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .pk2-btn, .pk2-ib, .pk2-q, .pk2-f, .pk2-go, .pk2-more, .pk2-look-btn { position: relative; }
  .pk2-btn::before, .pk2-ib::before, .pk2-q::before, .pk2-f::before, .pk2-go::before, .pk2-more::before, .pk2-look-btn::before {
    content: ""; position: absolute; left: 0; right: 0; top: min(0px, calc((100% - 40px) / 2)); bottom: min(0px, calc((100% - 40px) / 2)); }
}
