/* Naija Records rebuild — HOUSES components (Phase 2 pour).
   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. */

/* expandable row internals (the kit's .xrow pattern, completed here) */
.xhead{display:flex;align-items:flex-start;gap:10px}
.xtext{flex:1;min-width:0}
.xtext .xt{display:block;font-weight:900;font-size:16px;line-height:1.3}
.xtext .xs{display:block;font-size:13px;color:var(--ink-2);font-weight:700;line-height:1.4;margin-top:2px}
.xrow .arr{color:var(--ink-2);font-weight:900;font-size:19px;line-height:1.2;flex:0 0 auto}
.xkv{display:flex;gap:12px;padding:7px 0;border-bottom:1px dashed var(--line)}
.xkv:last-child{border-bottom:0}
.xkv .xk{flex:0 0 118px;font-size:12px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-2);padding-top:2px}
.xkv .xv{flex:1;font-size:14px;color:var(--ink);line-height:1.55}
.layerh{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin:15px 0 4px}
.layerp{font-size:15px;color:var(--ink);line-height:1.6;margin:5px 0 0}
.layerp b{font-weight:900}
.layernote{font-size:13px;color:var(--ink-2);line-height:1.5;margin:4px 0 0}
.srcnote{font-size:12.5px}
.judgrid{display:grid;gap:11px}

/* chunked lists */
.chunkbox{margin-top:12px}
.chunklist{display:grid;gap:9px}
.chunklist .xrow{margin-top:0}
.showmore,.expander{display:block;width:100%;margin-top:11px;background:var(--surface);border:1.5px solid var(--line);color:var(--green);border-radius:999px;padding:12px 18px;font-weight:800;font-size:15px;min-height:50px;box-shadow:var(--shadow)}
:root[data-theme="dark"] .showmore,:root[data-theme="dark"] .expander{color:#57d992}

/* member rows (lighter than .prow: no portrait, built for long lists) */
.mrow{display:flex;align-items:center;gap:11px;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)}
.mrow.static{cursor:default}
.mrow .ptx,.prow .ptx{flex:1;min-width:0}
.mrow .nm,.prow .nm{display:block}
.mrow .of.det{display:block;margin-top:3px}
.mrow .arr{margin-left:auto;color:var(--ink-2);font-weight:900;flex:0 0 auto}
.pchip{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:900;letter-spacing:.02em;color:var(--ink-2);background:var(--grey-bg);border-radius:999px;padding:4px 10px;flex:0 0 auto;line-height:1.3}
.pdot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:0 0 auto}

/* executive: leader doors + ministry cards */
.leaderdoors{display:grid;gap:11px;margin-top:12px}
.ministries{display:grid;gap:12px;margin-top:12px}
.mincard .rt{margin-bottom:4px}
.mdoor{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:var(--surface-soft);border:1px solid var(--line);border-radius:14px;padding:10px 13px;margin-top:9px;color:var(--ink)}
.mdoor .ptx{flex:1;min-width:0}
.mdoor .nm{display:block;font-weight:900;font-size:15.5px;line-height:1.25}
.mdoor .of{display:block;font-size:12.5px;color:var(--ink-2);font-weight:700;line-height:1.4}
.mdoor .arr{color:var(--green);font-weight:900;flex:0 0 auto}
:root[data-theme="dark"] .mdoor .arr{color:#57d992}
.otherrows{margin-top:11px}
.otherrows .mdoor{background:var(--surface)}

/* legislature: hemicycle (production chambers.js geometry) */
.chamcard{margin-top:12px}
.chamchart{width:100%;height:auto;display:block;margin-top:8px}
.chamcentre{font-family:"Nunito",sans-serif;font-weight:900;font-size:15px;fill:var(--ink-2)}
.chamseat{cursor:pointer}
.chamseat:focus-visible{outline:none}
.chamseat:focus-visible circle:last-child{stroke:var(--amber-dot);stroke-width:3}
.chamlegend{display:grid;gap:5px;margin-top:10px;border-top:1px solid var(--line);padding-top:11px}
.chamlegrow{display:flex;align-items:center;gap:8px;font-size:13.5px}
.chamlegname{font-weight:700;color:var(--ink-2);flex:1;min-width:0}
.chamlegcount{font-weight:900}

/* profile identity block */
.ident{display:flex;gap:14px;align-items:flex-start;margin-top:16px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:var(--shadow)}
.ident-img{width:76px;height:76px;border-radius:50%;object-fit:cover;border:2px solid var(--line);flex:0 0 auto}
.ident .avatar.ident-img{background:var(--green-soft);color:var(--green-deep);font-weight:900;font-size:24px;display:flex;align-items:center;justify-content:center}
.ident-tx{flex:1;min-width:0}
.ident-name{font-size:20px;font-weight:900;line-height:1.2}
.ident-of{font-size:14.5px;font-weight:800;color:var(--ink-2);line-height:1.4;margin-top:3px}
.ident-meta{font-size:13px;font-weight:700;color:var(--ink-2);margin-top:4px;line-height:1.45}
.ident-tx .pchip{margin-top:8px}

/* rights furniture on profiles */
.oathstrip{margin-top:14px;background:var(--amber-bg);border:1px solid var(--line);border-radius:18px;padding:13px 15px}
.oath-k{font-size:11.5px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#7a5203;margin-bottom:7px}
:root[data-theme="dark"] .oathstrip .oath-k{color:#facc15}
.oath-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.oath-t{font-size:14.5px;font-weight:800;line-height:1.4}
.oath-note,.oath-small{font-size:12.5px;color:var(--ink-2);line-height:1.5;margin:7px 0 0}
.limitbox{margin-top:14px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:13px 15px;box-shadow:var(--shadow)}
.limitbox .oath-k{color:var(--ink-2)}
/* a quoteless limit row (nothing behind it to open) sits in the SAME card
   shell as its collapsible siblings — same border, radius, padding and
   spacing (owner restructure pass, §6.47); it stays non tappable, with no
   chevron, but it must look like family, never loose bare text */
.limitrow{display:block;margin-top:9px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:11px 13px}
.limit-t{font-size:14px;font-weight:600;color:var(--ink);line-height:1.5}
.limit-proof{font-size:12px;color:var(--ink-2);line-height:1.55;margin:5px 0 0}
.limit-job{font-size:12.5px;color:var(--ink-2);line-height:1.5;margin:0 0 5px}
/* collapsible limit rows: the kit's .xrow card seated inside the limits
   card — its own border and radius, no second shadow, and the headline
   keeps the limits card's type (a full sentence, not a short title) */
.limitbox .xrow{margin-top:9px;border-radius:14px;box-shadow:none;padding:11px 13px}
.limitbox .xrow .xt{font-size:14px;font-weight:600;line-height:1.5}
.limitbox .xrow .limit-proof{margin:0}
/* the people's-power part of the limits card (§6.46): a quiet sub-head in
   the card heading's own type, opening the card's second part */
.limit-sub{font-size:11.5px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin:17px 0 2px;padding-top:13px;border-top:1px solid var(--line)}
/* the assets block on person profiles (§6.48): the limits card's own shell
   (.limitbox, .limitrow, .limit-t, .limit-proof above) with the mock's
   title, state chip and record strip kicker in the app's tokens */
.asset-title{font-size:17px;font-weight:900;line-height:1.25;margin:1px 0 0}
.asset-chip{display:inline-block;font-size:12.5px;font-weight:900;border-radius:999px;padding:4px 11px;margin-top:9px}
.asset-chip.a{background:var(--green-soft);color:var(--green-deep)}
.asset-chip.b{background:var(--jud-soft);color:var(--jud)}
.asset-chip.c{background:var(--amber-bg);color:#7a5203}
:root[data-theme="dark"] .asset-chip.b{color:#a5a0e0}
:root[data-theme="dark"] .asset-chip.c{color:#facc15}
.asset-job{font-size:14.5px;color:var(--ink);line-height:1.55;margin:10px 0 0}
.asset-k2{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin-bottom:3px}
.asset-check{font-size:12px;color:var(--ink-2);line-height:1.55;margin:10px 0 0}
.courtdoor{display:block;width:100%;margin-top:14px;background:var(--jud-soft);color:var(--jud);border:1.5px solid var(--line);border-radius:16px;padding:13px 16px;font-weight:800;font-size:14.5px;line-height:1.45;text-align:left}
:root[data-theme="dark"] .courtdoor{color:#a5a0e0}
.lrow .ld.big{font-size:14.5px;color:var(--ink);line-height:1.55}
.lrow>span:first-child{min-width:0}
/* record rows stack their fields — degree over institution, case over
   court over summary — never run together on one line (owner, 2026-11-13:
   "the school is appended to the degree right in front, shouldn't be").
   Only the lt/ld spans nested in the row's text wrapper are affected;
   a lone .ld flex child (career lines) was already blockified by flex. */
.lrow>span .lt,.lrow>span .ld{display:block}
.lrow>span .ld{margin-top:1px}
.lrow>span .lt + .ld.big{margin-top:3px}

/* arrow inks on the houses screens — the kit's quiet --ink-3 and the deep
   house inks fall under 4.5 as small glyphs on these surfaces (light prow
   arrows 2.96; dark door arrows 3.06, judiciary 1.27), so on these screens
   only they take the readable ink of the same family (the skin's own
   deepened/brightened pattern). Frame screens outside the pour untouched. */
:is(#s-exec,#s-leg,#s-judiciary,#s-cjs,#s-judgeshow,#s-profile,#s-judgeprofile) .prow .arr{color:var(--ink-2)}
:root[data-theme="dark"] :is(#s-exec,#s-leg,#s-judiciary,#s-cjs,#s-judgeshow,#s-profile,#s-judgeprofile) .door .dt .arr{color:#57d992}
:root[data-theme="dark"] :is(#s-exec,#s-leg,#s-judiciary,#s-cjs,#s-judgeshow,#s-profile,#s-judgeprofile) .door.leg .dt .arr{color:#facc15}
:root[data-theme="dark"] :is(#s-exec,#s-leg,#s-judiciary,#s-cjs,#s-judgeshow,#s-profile,#s-judgeprofile) .door.jud .dt .arr{color:#a5a0e0}
