/* Open public person pages and relationship links (openperson.js, demo-open agent, 13 Oct 2026) */
/* relationship links: every role, organisation and person link reads as a link */
body.ux.cec .cec-page a.cec-reclink, body.ux.cec .cec-page .cec-table td a.cec-strong { color: var(--c-accent-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.ux.cec .cec-page a.cec-reclink:hover, body.ux.cec .cec-page .cec-table td a.cec-strong:hover { text-decoration-thickness: 2px; }

/* head extras */
body.ux.cec .cec-op-sub { margin: 0.55rem 0 0; }
body.ux.cec .cec-ph .cec-source { margin-top: 0.7rem; }

/* roles */
body.ux.cec .cec-ogroup-h { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-accent-ink); margin: 1.1rem 0 0.2rem; }
body.ux.cec .cec-card .cec-ogroup-h:first-child, body.ux.cec .cec-likelynote + .cec-ogroup-h { margin-top: 0.4rem; }
body.ux.cec .cec-orole-list { list-style: none; margin: 0; padding: 0; }
body.ux.cec .cec-orole { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.35rem 1rem; padding: 0.7rem 0; border-top: 1px solid var(--c-line); }
body.ux.cec .cec-orole-main { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; flex: 1 1 auto; }
body.ux.cec .cec-orole-main > a { overflow-wrap: anywhere; }
body.ux.cec .cec-orole-what { font-size: 0.88rem; color: var(--ux-ink-2); }
body.ux.cec .cec-orole-src { font-size: 0.76rem; color: var(--ux-muted); }
body.ux.cec .cec-orole-side { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.35rem; flex: 0 0 auto; max-width: 48%; padding-top: 0.1rem; }

/* "Likely the same person" and "dates incomplete": shown where the live page shows them, with their explanation */
body.ux.cec .cec-likely, body.ux.cec .cec-low { display: inline-block; border-radius: 999px; font-size: 0.7rem; font-weight: 700; line-height: 1.35; padding: 0.12rem 0.55rem; white-space: nowrap; cursor: help; vertical-align: baseline; }
body.ux.cec .cec-likely { background: #fdf3e1; color: #774a00; border: 1px solid #efd7a6; }
body.ux.cec .cec-low { background: var(--c-pale); color: #55575b; border: 1px solid var(--c-line-strong); }
body.ux.cec .cec-swhen .cec-likely, body.ux.cec .cec-swhen .cec-low { margin-left: 0.35rem; }
body.ux.cec .cec-likelynote { font-size: 0.8rem; color: var(--ux-muted); margin: 0 0 0.6rem; padding: 0.55rem 0.75rem; background: #fdf8ee; border-left: 3px solid #efd7a6; border-radius: 0 10px 10px 0; }
body.ux.cec .cec-card .cec-likelynote:not(:first-child) { margin: 0.9rem 0 0; }

/* served alongside, grouped by organisation */
body.ux.cec .cec-sintro { margin: 0 0 0.4rem; }
body.ux.cec .cec-sgroup { padding: 1rem 0 0.1rem; }
body.ux.cec .cec-sgroup-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; margin: 0 0 0.35rem; font-size: 0.98rem; }
body.ux.cec .cec-sgroup-h .muted { font-size: 0.78rem; font-weight: 400; }
body.ux.cec .cec-speople { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 1.25rem; }
body.ux.cec .cec-speople li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.45rem 0; border-top: 1px solid var(--c-line); min-width: 0; font-size: 0.9rem; }
body.ux.cec .cec-speople a { overflow-wrap: anywhere; }
body.ux.cec .cec-swhen { font-size: 0.78rem; color: var(--ux-muted); }

/* ?rp= / ?sp= pages */
body.ux.cec .cec-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 1.1rem 0 0; font-size: 0.85rem; }
body.ux.cec .cec-pager a { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--c-line-strong); border-radius: 999px; background: #fff; font-weight: 700; color: var(--ux-ink); text-decoration: none; }
body.ux.cec .cec-pager a:hover { border-color: var(--c-accent); color: var(--c-accent-ink); }
body.ux.cec .cec-pager span { color: var(--ux-muted); }

/* side card and report line */
body.ux.cec .cec-op-btn { margin: 0.4rem 0 0; }
body.ux.cec .cec-op-btn .btn { display: inline-block; }
body.ux.cec .cec-op-report { margin: 0.2rem 0 0; }

/* search: people results */
body.ux.cec .cec-presults td { vertical-align: top; }
body.ux.cec .cec-presults td:first-child { width: 42%; }

@media (max-width: 620px) {
  body.ux.cec .cec-orole { flex-direction: column; }
  body.ux.cec .cec-orole-side { justify-content: flex-start; max-width: none; padding-top: 0.15rem; }
  body.ux.cec .cec-speople { grid-template-columns: minmax(0, 1fr); }
  body.ux.cec .cec-card-h:has(> h2 + .muted) { flex-direction: column; gap: 0.2rem; }
  body.ux.cec .cec-card-h > .muted { white-space: normal; }
}

/* object or ask for removal (/privacy/request, tpl/privreq.js) */
body.ux.cec .cec-pralert { margin: 0 0 14px; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--c-accent-tint); color: var(--c-accent-ink); font-weight: 700; font-size: 0.9rem; }
body.ux.cec .cec-prform .ux-btn-primary { justify-self: start; }
