/* Naija Records rebuild — PROJECTS + HISTORY components (pour package).
   Skin tokens only (the skin of record lives in app.css); every component
   is theme-paired by construction — grounds and inks come from the token
   pairs that flip with [data-theme], never from light-only literals.
   Shared kit pieces (.xrow/.xkv/.expander/.showmore/.chunkbox) come from
   houses.css; this file carries only the ph- family classes. */

/* record-count card + first-open search */
.ph-countline{font-size:17.5px;font-weight:900;line-height:1.35}
.ph-tiles{margin-top:13px}
.ph-search{margin-top:16px}

/* shelf expanders */
.ph-expwrap{margin-top:12px}
.ph-exp{display:flex;align-items:center;gap:10px;text-align:left}
.ph-expt{flex:1;min-width:0;font-weight:900}
.ph-expc{font-weight:800;color:var(--ink-2);font-size:14px}
.ph-exp .arr{color:var(--ink-2);font-weight:900;font-size:19px;line-height:1.2;flex:0 0 auto;transition:transform .2s ease}
.ph-exp.open .arr{transform:rotate(90deg)}
.ph-panel{margin-top:11px}
.ph-seclbl{font-size:13px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-2);margin:14px 2px 0}

/* filter chips (sector families, budget years) */
.ph-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.ph-chip{background:var(--surface);border:1.5px solid var(--line);color:var(--ink-2);border-radius:999px;padding:9px 15px;font-weight:800;font-size:14px;min-height:44px;box-shadow:var(--shadow)}
.ph-chip.on{background:var(--green);border-color:var(--green);color:#fff}

/* flagship cards */
.ph-flags{display:grid;gap:12px;margin-top:12px}
.ph-flag .chip{margin-top:9px}
.ph-frows{margin-top:9px}
.pill.idle{background:var(--grey-bg);color:var(--ink-2)}
.ph-nophoto{background:var(--surface-soft);border:1.5px dashed var(--line);border-radius:14px;padding:13px 15px}

/* progress bars — published status only; a money % is never a figure here.
   .done takes the stated/completed share exactly as published; .stripes is
   the indeterminate in-progress bar (no published figure exists). */
.ph-prog{margin-top:11px}
.ph-track{height:9px;border-radius:99px;background:var(--grey-bg);overflow:hidden}
.ph-fill{display:block;height:100%;background:var(--green-bright);border-radius:99px}
.ph-fill.stripes{background:repeating-linear-gradient(45deg,var(--green-bright) 0 10px,var(--green-soft) 10px 20px)}
.ph-plabel{font-size:14px;font-weight:800;line-height:1.45;margin:7px 0 0}
.ph-pcap{font-size:12.5px;color:var(--ink-2);line-height:1.45;margin:2px 0 0}
.ph-src{margin-top:11px}
.ph-src a{color:var(--green);font-weight:800}
:root[data-theme="dark"] .ph-src a{color:#57d992}
.ph-cite{margin-top:4px}

/* figures — shown ONLY where a verified photo is wired in the data */
.ph-fig{margin:12px 0 0}
.ph-fig img{width:100%;height:auto;display:block;border-radius:14px;border:1px solid var(--line)}
.ph-fig figcaption{margin-top:7px;line-height:1.5}
.ph-cap{display:block;font-size:13px;color:var(--ink-2)}
.ph-credit{display:block;font-size:12px;color:var(--ink-2);margin-top:2px}
.ph-lead{margin-top:14px}
.ph-gal{display:grid;gap:12px}

/* constituency lines shelf — the honesty lines ride on its face */
.ph-linescount{font-weight:800;color:var(--ink)}
.ph-honest{background:var(--amber-bg);border:1px solid var(--line);border-radius:14px;padding:11px 14px}
.ph-longnote{margin-top:16px}

/* history shelf */
.ph-histline{font-size:16.5px;font-weight:800;line-height:1.5;margin:14px 2px 0}
.ph-nomatch{margin-top:12px}
.ph-hrow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:11px 14px;box-shadow:var(--shadow);color:var(--ink)}
.ph-thumb{width:52px;height:52px;border-radius:12px;object-fit:cover;border:1px solid var(--line);flex:0 0 auto}
.ph-htx{flex:1;min-width:0}
.ph-ht{display:block;font-weight:900;font-size:15.5px;line-height:1.3}
.ph-hspan{display:block;font-size:13px;color:var(--ink-2);font-weight:700;line-height:1.4;margin-top:2px}
.ph-hrow .arr{margin-left:auto;color:var(--ink-2);font-weight:900;flex:0 0 auto}

/* one story (histent) */
.ph-histtitle{font-size:24px;font-weight:900;line-height:1.2;margin-top:16px}
.ph-eraline{font-size:13.5px;font-weight:700;color:var(--ink-2);margin:7px 2px 0;line-height:1.45}
.ph-body{margin-top:12px}
.ph-body p{font-size:16.5px;line-height:1.65;margin:0 0 13px}
.ph-sech{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin:20px 2px 6px}
.ph-tl{margin:0;padding-left:20px}
.ph-tl li{font-size:15px;line-height:1.55;margin-bottom:8px}
.ph-tl li b{font-weight:900}
.ph-flags{background:var(--surface-soft);border:1px solid var(--line);border-radius:14px;padding:11px 14px}
.ph-chunkfoot{margin-top:6px}
.ph-chunkcount{font-size:13.5px;color:var(--ink-2);margin:10px 2px 0;line-height:1.5}

/* arrow inks on this family's screens (same deepened/brightened pattern
   as houses.css: the quiet --ink-3 falls under 4.5 as a small glyph) */
:is(#s-projects,#s-history,#s-histent) .xrow .arr{color:var(--ink-2)}
:root[data-theme="dark"] :is(#s-projects,#s-history) .door .dt .arr{color:#57d992}
