/* pa-brand.css · partner marks, delivery rings and sparklines in the directories (30 Nov 2026). Screen only. */
.pa-bm, .pa-bm.pa-ini { background: var(--bi) !important; color: #fff; border-radius: 8px; }
.pa-bm svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.pa-bm:is(.sw--p1, .sw--p6, .sw--p7) { color: rgb(0 0 0 / .78); }
body:not(.rp-body) .pa-lead > .pa-bm { width: 34px; height: 34px; }
body:not(.rp-body) .pa-lead:has(> .pa-bm) { gap: 12px; }
body:not(.rp-body) .pa-lead--sel:has(> .pa-bm) > .pa-lead__tick { width: 34px; height: 34px; margin-top: -17px; }
.pa-bm svg path, .pa-ring path, .pa-spk path, .pa-spk circle { stroke: none; }
.pa-ring, .pa-spk { background: none !important; color: var(--bi); flex: none; display: block; }
.pa-ring { width: 30px; height: 30px; }
.pa-ring path { fill: var(--color-neutral-100); }
.pa-ring path.on { fill: currentColor; }
.pa-spk { width: 92px; height: 30px; overflow: visible; }
.pa-spk rect { fill: currentColor; stroke: none; }
/* one sparkline everywhere (pa-brand.js spark): the same 92 × 30 in every cell, card or table; tiles keep theirs hidden */
body:not(.rp-body) .pa-tbl .pa-spk, body:not(.rp-body) .pa-segsp .pa-spk { width: 92px; height: 30px; margin: 0; }
body:not(.rp-body) .pa-segsp { width: 92px; }
body:not(.rp-body) .pa-tiles .pa-tile :is(.pa-spk, .pa-spx) { display: none; }
/* Compare's small multiples keep their shared scale; the line takes the same colour rule and stroke */
body:not(.rp-body) .pa-sm__l[class*="sw--"] { background: none !important; color: var(--bi); }
body:not(.rp-body) .pa-sm__l .sksp__l { stroke: currentColor; stroke-width: 1.75; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.rp-body) .pa-sms.is-play .pa-sm__l { animation: pa-wipe 700ms cubic-bezier(0.23, 1, 0.32, 1) 120ms backwards; }
}
/* the sparkline (pa-brand.js spark): a dot per two days, a tip on hover and focus; dots land left to right once, on first view */
.pa-spx { display: block; flex: none; width: 92px; border-radius: 4px; cursor: default; }
.pa-spx:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.rp-body) :is(.pa-play, .pa-tw.is-play) .pa-spk rect { transform-box: fill-box; transform-origin: center; animation: pa-dot 240ms cubic-bezier(0.23, 1, 0.32, 1) calc(100ms + var(--n, 0) * 45ms + var(--i) * 28ms) backwards; }
  @keyframes pa-dot { from { opacity: 0; transform: scale(.5); } }
}
.pa-dlv { display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.pa-dlv b, .pa-imp b { display: block; font-weight: var(--font-weight-semibold); font-variant-numeric: tabular-nums; }
.pa-dlv small { display: block; font-size: 11px; line-height: 14px; color: var(--color-text-tertiary); white-space: nowrap; }
.pa-dlv small.is-slightly_behind { color: var(--color-amber-700); } .pa-dlv small.is-behind_pace { color: var(--color-red-700); } .pa-dlv small.is-on_pace { color: var(--color-green-700); }
.pa-imp { display: inline-flex; align-items: center; justify-content: flex-end; gap: 14px; }
.pa-imp b { font-size: 15px; line-height: 20px; }
.pa-imp small { display: block; font-size: 11px; line-height: 14px; }
.pa-imp small .pa-d { font-size: 11px; }
body:not(.rp-body) .pa-tbl--p tbody :is(td, .pa-td-1) { height: 64px; }
body:not(.rp-body) .pa-tbl--p .pa-lead__n { font-size: 14px; font-weight: var(--font-weight-semibold); }
/* nothing ran: the row steps back instead of printing seven zeros */
body:not(.rp-body) .pa-tbl tr.is-quiet :is(td, .pa-td-1) { height: 52px; color: var(--color-text-tertiary); }
body:not(.rp-body) .pa-tbl tr.is-quiet .pa-bm { opacity: .38; }
body:not(.rp-body) .pa-tbl tr.is-quiet .pa-lead__n { color: var(--color-text-secondary); font-weight: var(--font-weight-medium); }
body:not(.rp-body) .pa-tbl tr.is-quiet:hover .pa-bm { opacity: 1; }
body:not(.rp-body) .is-stack .pa-tbl tr.is-quiet td:empty { display: none; }
body:not(.rp-body) .pa-tbl .pa-bm { transition: opacity 120ms var(--motion-easing-out), transform 160ms var(--motion-easing-out); }
@media (hover: hover) and (pointer: fine) { body:not(.rp-body) .pa-tbl tbody tr:hover .pa-bm { transform: scale(1.04); } }
/* first time this list opens: rings fill, lines draw, once */
@media (prefers-reduced-motion: no-preference) {
  .pa-play .pa-ring path.on { animation: pa-seg 160ms var(--motion-easing-out) calc(160ms + var(--n, 0) * 45ms + var(--i) * 18ms) backwards; }
  .pa-play .pa-bm { animation: pa-pop 260ms cubic-bezier(0.23, 1, 0.32, 1) calc(var(--n, 0) * 35ms) backwards; }
  @keyframes pa-wipe { from { clip-path: inset(-4px 100% -4px 0); } to { clip-path: inset(-4px -4px -4px 0); } }
  @keyframes pa-seg { from { fill: var(--color-neutral-100); } }
  @keyframes pa-pop { from { opacity: 0; transform: scale(.85); } }
}
@media (prefers-reduced-motion: reduce) { body:not(.rp-body) .pa-tbl .pa-bm { transition: none; } body:not(.rp-body) .pa-tbl tbody tr:hover .pa-bm { transform: none; } }

/* Campaigns: delivered as one bar in the partner's colour, with a line where the time gone is: short of the line = behind */
body:not(.rp-body) .pa-tbl tr.is-done .pa-bm { opacity: .5; }
body:not(.rp-body) .pa-paper { display: none; }
body:not(.rp-body) .pad:has(> #card-dir-campaign) > .pa-ph .ppslot { display: none; }
body:not(.rp-body) .pa-tbl--p tbody :is(td, .pa-td-1) { height: 60px; }

.pa-imp > span { min-width: 64px; text-align: right; }
body:not(.rp-body) .pad:has(> #card-dir-campaign) .pa-ph__line .pa-ph__m { display: none; }
body:not(.rp-body) .pa-tbl .pa-tag--on_pace { background: var(--color-status-success-bg); color: var(--color-status-success-fg); }
/* phone cards: the line stays (same as Features), under its figure */
body:not(.rp-body) .is-stack .pa-imp { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
body:not(.rp-body) .is-stack .pa-imp > span { text-align: left; min-width: 0; }
body:not(.rp-body) .is-stack .pa-dlv { gap: 8px; } body:not(.rp-body) .is-stack .pa-dlv small { white-space: normal; }

/* pa-draw.js: a line waits for its turn to be traced */
.pa-lc.is-wait .pa-lc-g { opacity: 0; }

/* eight features: the headers sort; the button is only for the phone cards */
@media (min-width: 761px) { body:not(.rp-body) #card-dir-feature .pa-sortm { display: none; } }

/* neater (30 Nov): one figure per cell, the rate or frequency behind it in its tip; resting partners are one slim line */
body:not(.rp-body) .pa-tbl--p td .pa-under { display: none; }
body:not(.rp-body) .pa-tbl--p thead th:first-child { width: 22%; }
body:not(.rp-body) .pa-tbl--p tr.is-quiet :is(td, .pa-td-1) { height: 46px; font-size: var(--font-size-12); }
body:not(.rp-body) .pa-tbl--p tr.is-quiet .pa-lead > .pa-bm { width: 26px; height: 26px; margin: 0 4px; border-radius: 6px; }
body:not(.rp-body) .pa-tbl--p tr.is-quiet .pa-bm svg { width: 14px; height: 14px; }
body:not(.rp-body) .pa-tbl--p tr.is-quiet .pa-lead__n { font-size: 13px; }
body:not(.rp-body) .pa-tbl--p tr.is-quiet .pa-lead .pa-under { display: none; }
body:not(.rp-body) .pa-tbl--p td > .pa-main[data-ot] { cursor: default; }
/* outcomes: red failed, amber abandoned */
.pa-t--bad { --bi: var(--color-red-400); background: var(--color-red-400) !important; color: rgb(0 0 0 / .85) !important; }
.pa-t--warn { --bi: var(--color-amber-400); background: var(--color-amber-400) !important; color: rgb(0 0 0 / .85) !important; }
.sw--bad { --bi: var(--color-red-400); --bw: var(--color-red-50); background: var(--bi); } .sw--warn { --bi: var(--color-amber-400); --bw: var(--color-amber-50); background: var(--bi); }

/* simple (30 Nov): five columns on one grid, then one quiet line for everyone resting */
body:not(.rp-body) #card-dir-partner .pa-tbl--p { table-layout: fixed; width: 100%; }
body:not(.rp-body) #card-dir-partner .pa-tbl--p thead th:nth-child(1) { width: 30%; }
body:not(.rp-body) #card-dir-partner .pa-tbl--p thead th:nth-child(2) { width: 22%; }
body:not(.rp-body) #card-dir-partner .pa-tbl--p thead th:nth-child(3) { width: 24%; }
body:not(.rp-body) #card-dir-partner .pa-tbl--p tbody tr:not(.is-quiet) :is(td, .pa-td-1) { height: 68px; }
body:not(.rp-body) #card-dir-partner .pa-tbl--p tbody td { font-size: 14px; }
body:not(.rp-body) #card-dir-partner .pa-tbl--p :is(thead th, td):last-child { padding-right: 16px; }
body:not(.rp-body) #card-dir-partner .pa-tbl--p :is(thead th:first-child, .pa-td-1) { padding-left: 16px; }
.pa-rest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 56px; padding: 10px 16px; border-top: 1px solid var(--color-border-subtle); }
.pa-rest__h { font-size: var(--font-size-12); color: var(--color-text-tertiary); white-space: nowrap; }
.pa-rest__h b { margin-left: 2px; font-weight: var(--font-weight-medium); color: var(--color-text-secondary); }
.pa-rest ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pa-rest a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: var(--radius-sm); font-size: var(--font-size-13); color: var(--color-text-secondary); text-decoration: none; }
.pa-rest .pa-bm { width: 24px; height: 24px; margin: 0; border-radius: 6px; opacity: .45; transition: opacity 120ms var(--motion-easing-out); }
.pa-rest .pa-bm svg { width: 13px; height: 13px; }
.pa-rest a:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .pa-rest a:hover { background: var(--color-bg-surface); color: var(--color-text-primary); } .pa-rest a:hover .pa-bm { opacity: 1; } }
.pa-tw:has(+ .pa-rest) .pa-tbl tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 760px) { .pa-rest a { height: 44px; } .pa-rest__h { width: 100%; } }
body:not(.rp-body) .pa-dir:has(.pa-rest) + .pa-dirgrid { border-top: 1px solid var(--se-line) !important; }
body:not(.rp-body) .pad > .pa-dirgrid.pa-dirgrid--1 { grid-template-columns: minmax(0, 1fr); }

/* Campaigns on the Partners grid (30 Nov, "neat too"): name, dates, delivered, reach, conversions */
body:not(.rp-body) #card-dir-campaign .pa-tbl--p { table-layout: fixed; width: 100%; }
body:not(.rp-body) #card-dir-campaign .pa-tbl--p thead th:nth-child(1) { width: 26%; }
body:not(.rp-body) #card-dir-campaign .pa-tbl--p thead th:nth-child(2) { width: 20%; }
body:not(.rp-body) #card-dir-campaign .pa-tbl--p thead th:nth-child(3) { width: 30%; }
body:not(.rp-body) #card-dir-campaign .pa-tbl--p tbody td { font-size: 14px; }
body:not(.rp-body) #card-dir-campaign .pa-tbl--p :is(thead th, td):last-child { padding-right: 16px; }
/* outcomes as the Partnerships gauge */
.pa-outc .ovgg { max-width: 260px; }
body:not(.rp-body) .pa-outc .ovpb { margin-top: var(--space-4) !important; }
body:not(.rp-body) .pa-outc__f { display: none; }   /* the Success rate tile says it */
.lc .nb--down { fill: var(--color-red-400) !important; }

/* three or more views: one title, small tabs (kit .subtabs: 13px, 2px ink underline on one hairline) */
body:not(.rp-body) .pa-ph > .pa-subt { grid-row: 5; grid-column: 1 / -1; display: flex; gap: var(--space-5); margin-top: var(--space-2); border-bottom: 1px solid var(--color-border-subtle); }
.pa-subt a { position: relative; display: inline-flex; align-items: center; height: 40px; font-size: var(--font-size-13); font-weight: var(--font-weight-medium); color: var(--color-text-secondary); text-decoration: none; white-space: nowrap; }
.pa-subt a[aria-current="page"] { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }
.pa-subt a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-text-primary); }
.pa-subt a:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: -2px; border-radius: var(--radius-xs); }
@media (hover: hover) and (pointer: fine) { .pa-subt a:not([aria-current]):hover { color: var(--color-text-primary); } }
@media (max-width: 760px) { body:not(.rp-body) .pa-ph > .pa-subt { gap: 0; justify-content: space-between; } .pa-subt a { height: 44px; } }

/* ── 30 Nov: delivered of booked, the ring cell (Mikky picked C). Screen only. The shortfall against the time gone (or, ended, against the
   booking) is amber when slightly behind, red when behind or under-delivered; no tick, no pace word on the row. ── */
body:not(.rp-body) .pa-dlx { display: inline-flex; align-items: center; gap: 12px; border-radius: 4px; cursor: default; font-variant-numeric: tabular-nums; }
body:not(.rp-body) .pa-dlx:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 4px; }
body:not(.rp-body) .pa-dlx > b { min-width: 4ch; font-weight: var(--font-weight-semibold); }
body:not(.rp-body) .pa-dlx .is-warn { --lag: var(--color-amber-400); } body:not(.rp-body) .pa-dlx .is-bad { --lag: var(--color-red-400); }
body:not(.rp-body) .pa-dlc { gap: 8px; }
body:not(.rp-body) .pa-dlc .pa-ring { width: 28px; height: 28px; }
body:not(.rp-body) .pa-dlc .pa-ring path.lag { fill: var(--lag); }
body:not(.rp-body) .pa-dlc > b { min-width: 0; font-size: var(--font-size-16); }
body:not(.rp-body) .pa-dlc small { font-size: var(--font-size-12); font-weight: var(--font-weight-medium); }
body:not(.rp-body) .pa-dlc small.is-warn { color: var(--color-amber-700); } body:not(.rp-body) .pa-dlc small.is-bad { color: var(--color-red-700); }
body:not(.rp-body) .is-stack .pa-tbl td:has(> .pa-dlx) { grid-column: 1 / -1; }
/* the cell keeps the room the old bar had, so a narrow table still stacks into cards (pa-charts fitPanes) */
body:not(.rp-body) .pa-tbl .pa-dlx { min-width: 200px; }
/* draw once, on the list's first visit (.pa-play), as the rings and sparklines do */
@media (prefers-reduced-motion: no-preference) {
  body:not(.rp-body) .pa-play .pa-ring path.lag { animation: pa-seg 160ms var(--motion-easing-out) calc(160ms + var(--n, 0) * 45ms + var(--i) * 18ms) backwards; }
}
