/* tpl-charfin.css - charity Finances tab, purposes card and the Charity Commission lines in the contact box (charfin.js, 14 Oct 2026).
   CEC3 tokens from cec.css (works in the black and red themes). Series colours live in charfin.js; text never takes a series colour. */
body.ux.cec .cf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* lead row: jump links + years held */
body.ux.cec .cf-lead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
body.ux.cec .cf-jump { display: flex; flex-wrap: wrap; gap: 0.4rem; }
body.ux.cec .cf-jump a { padding: 0.42rem 0.85rem; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--c-sh-sm); font-size: 0.82rem; font-weight: 700; color: var(--ux-ink); text-decoration: none; transition: border-color 160ms var(--c-ease), color 160ms var(--c-ease); }
body.ux.cec .cf-jump a:hover { border-color: var(--c-accent); color: var(--c-accent-ink); }
body.ux.cec .cf-intro { margin: 0; font-size: 0.85rem; color: var(--ux-muted); }
body.ux.cec .cf-card { scroll-margin-top: 1rem; }
body.ux.cec .cf-card-quiet .cec-card-h { margin-bottom: 0.4rem; }

/* chart controls: view switch (radios) and series chips (checkboxes) */
body.ux.cec .cf-views { display: inline-flex; flex-wrap: wrap; gap: 0.2rem; padding: 0.22rem; background: var(--c-pale); border-radius: 999px; margin: 0 0 0.75rem; max-width: 100%; }
body.ux.cec .cf-seg { position: relative; }
body.ux.cec .cf-seg input, body.ux.cec .cf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
body.ux.cec .cf-seg span { display: block; padding: 0.42rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #44464a; cursor: pointer; transition: background 160ms var(--c-ease); }
body.ux.cec .cf-seg input:checked + span { background: #fff; color: var(--ux-ink); box-shadow: var(--c-sh-sm); }
body.ux.cec .cf-seg input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
body.ux.cec .cf-chips { border: 0; padding: 0; margin: 0 0 0.7rem; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
body.ux.cec .cf-chips[hidden] { display: none; }
body.ux.cec .cf-chip { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 32px; padding: 0.3rem 0.75rem 0.3rem 0.6rem; border: 1px solid var(--c-line-strong); border-radius: 999px; background: #fff; font-size: 0.8rem; font-weight: 700; color: var(--ux-ink); cursor: pointer; user-select: none; transition: background 160ms var(--c-ease), color 160ms var(--c-ease); }
body.ux.cec .cf-chip:hover { border-color: rgba(18,19,20,.32); }
body.ux.cec .cf-chip:has(input:not(:checked)) { background: var(--c-pale); color: var(--ux-muted); border-style: dashed; }
body.ux.cec .cf-chip:has(input:not(:checked)) .cf-key { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
body.ux.cec .cf-chip:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }
body.ux.cec .cf-key { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--c); vertical-align: middle; }
body.ux.cec .cf-key.is-line { width: 16px; height: 3px; border-radius: 2px; }
body.ux.cec .cf-chip:has(input:not(:checked)) .cf-key.is-line { height: 3px; box-shadow: none; background: repeating-linear-gradient(90deg, var(--c) 0 3px, transparent 3px 6px); }
body.ux.cec .cf-key.is-none { background: transparent; }
body.ux.cec .cf-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 700; color: #3a3c40; }
body.ux.cec .cf-legend-i { display: inline-flex; align-items: center; gap: 0.4rem; }

/* plot, tooltip */
body.ux.cec .cf-plotwrap { position: relative; }
body.ux.cec .cf-plot { min-height: 292px; border-radius: 10px; outline: none; touch-action: pan-y; }
body.ux.cec .cf-plot:focus-visible { box-shadow: 0 0 0 2px var(--c-accent); }
body.ux.cec .cf-svg { display: block; overflow: visible; }
body.ux.cec .cf-svg .cf-ax { font-size: 11px; fill: #66686d; font-family: var(--ux-font); font-variant-numeric: tabular-nums; }
body.ux.cec .cf-svg .cf-endlab { font-size: 11.5px; font-weight: 700; fill: var(--ux-ink); font-family: var(--ux-font); font-variant-numeric: tabular-nums; }
body.ux.cec .cf-tip { position: absolute; z-index: 5; min-width: 190px; max-width: 270px; padding: 0.6rem 0.75rem; background: #fff; border: 1px solid var(--c-line-strong); border-radius: 12px; box-shadow: var(--ux-shadow-pop); pointer-events: none; font-size: 0.8rem; }
body.ux.cec .cf-tip[hidden] { display: none; }
body.ux.cec .cf-tip-h { font-size: 0.66rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ux-muted); margin: 0 0 0.35rem; }
body.ux.cec .cf-tip-r { display: flex; align-items: center; gap: 0.45rem; line-height: 1.55; }
body.ux.cec .cf-tip-r b { min-width: 4.8em; color: var(--ux-ink); font-variant-numeric: tabular-nums; }
body.ux.cec .cf-tip-r b.is-na { font-weight: 400; color: var(--ux-muted); }
body.ux.cec .cf-tip-l { color: #55575b; }
body.ux.cec .cf-tip-k { flex: none; width: 10px; height: 10px; border-radius: 2px; }
body.ux.cec .cf-tip-k.is-line { width: 12px; height: 3px; }
body.ux.cec .cf-tip-tot { border-top: 1px solid var(--c-line); margin-top: 0.3rem; padding-top: 0.3rem; padding-left: calc(10px + 0.45rem); }
body.ux.cec .cf-help { margin: 0.35rem 0 0; font-size: 0.74rem; color: var(--ux-muted); }

/* year tables: years as columns, newest on the right, sticky row labels */
body.ux.cec .cf-scrollhint { margin: 1rem 0 0.3rem; font-size: 0.74rem; color: var(--ux-muted); text-align: right; }
body.ux.cec .cf-scrollhint[hidden] { display: none; }
body.ux.cec .cf-tablewrap { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--c-line); border-radius: 12px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
body.ux.cec .cf-scrollhint:not([hidden]) + .cf-tablewrap { margin-top: 0; }
body.ux.cec .cf-tablewrap:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
body.ux.cec .cf-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
body.ux.cec .cf-table th, body.ux.cec .cf-table td { padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--c-line); text-align: right; white-space: nowrap; background: #fff; }
body.ux.cec .cf-table thead th { background: #fafaf8; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-accent); vertical-align: bottom; }
body.ux.cec .cf-table .cf-rowh { position: sticky; left: 0; z-index: 1; text-align: left; white-space: normal; min-width: 11.5rem; width: 14rem; font-weight: 400; color: var(--ux-ink); box-shadow: 1px 0 0 var(--c-line); }
body.ux.cec .cf-table thead .cf-rowh { z-index: 2; background: #fafaf8; color: var(--ux-muted); }
body.ux.cec .cf-tablewrap.is-over:not(.at-start) .cf-rowh { box-shadow: 1px 0 0 var(--c-line), 8px 0 10px -8px rgba(18,19,20,.28); }
body.ux.cec .cf-table .cf-rowh .cf-key { margin-right: 0.55rem; position: relative; top: -1px; }
body.ux.cec .cf-rl { display: inline; }
body.ux.cec .cf-rsub { display: block; padding-left: calc(16px + 0.55rem); font-size: 0.72rem; color: var(--ux-muted); line-height: 1.35; }
body.ux.cec .cf-table .cf-grp th { text-align: left; background: #fafaf8; padding-top: 0.75rem; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ux-muted); }
body.ux.cec .cf-table .cf-grp th span { position: sticky; left: 0.85rem; }
body.ux.cec .cf-table td.cf-na { color: #66686d; font-size: 0.76rem; }
body.ux.cec .cf-table tr.cf-strong > * { font-weight: 700; }
body.ux.cec .cf-table tbody tr:last-child > * { border-bottom: 0; }
body.ux.cec .cf-table tbody tr:hover > td, body.ux.cec .cf-table tbody tr:hover > th { background: #fbfbfa; }
body.ux.cec .cf-yr { display: block; }
body.ux.cec .cf-yr-sub { display: block; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ux-muted); font-size: 0.7rem; }

/* notes, definitions, sources */
body.ux.cec .cf-note { margin: 0.9rem 0 0; padding: 0.65rem 0.85rem; background: var(--c-pale); border-radius: 12px; font-size: 0.83rem; color: #3a3c40; }
body.ux.cec .cf-note-plain { margin-top: 0; }
body.ux.cec .cf-defs { margin-top: 1.1rem; padding-top: 0.75rem; border-top: 1px solid var(--c-line); }
body.ux.cec .cf-defs summary { cursor: pointer; font-weight: 700; font-size: 0.86rem; color: var(--ux-ink); width: max-content; max-width: 100%; }
body.ux.cec .cf-defs summary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
body.ux.cec .cf-defs dl { display: grid; grid-template-columns: 14rem 1fr; gap: 0.45rem 1rem; margin: 0.8rem 0 0; font-size: 0.84rem; }
body.ux.cec .cf-defs dt { font-weight: 700; color: var(--ux-ink); }
body.ux.cec .cf-defs dd { margin: 0; color: #4a4c50; }
body.ux.cec .cf-src { margin: 0.85rem 0 0; font-size: 0.74rem; line-height: 1.5; color: var(--ux-muted); }
body.ux.cec .cf-small { margin: 0.6rem 0 0; font-size: 0.82rem; color: #4a4c50; }
body.ux.cec .cf-card h3.cf-h3 { margin: 1.7rem 0 0.35rem; font-size: 1rem; }
body.ux.cec .cf-card h3.cf-h3-first { margin-top: 0.1rem; }
body.ux.cec .cf-lead { margin-top: 0; }

/* accounts and annual returns */
body.ux.cec .cf-status { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.9rem 1rem; border-radius: 14px; }
body.ux.cec .cf-status-i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
body.ux.cec .cf-status-i svg { width: 16px; height: 16px; }
body.ux.cec .cf-status-ok { background: #eaf5ee; } body.ux.cec .cf-status-ok .cf-status-i { background: #0e7a43; }
body.ux.cec .cf-status-late { background: #fdf4e3; } body.ux.cec .cf-status-late .cf-status-i { background: #9a6200; }
body.ux.cec .cf-status-bad { background: #fbe9eb; } body.ux.cec .cf-status-bad .cf-status-i { background: #9e0c24; }
body.ux.cec .cf-status-wait { background: var(--c-pale); } body.ux.cec .cf-status-wait .cf-status-i { background: #55575b; }
body.ux.cec .cf-status-h { margin: 0.15rem 0 0; font-size: 1.02rem; font-weight: 900; color: var(--ux-ink); }
body.ux.cec .cf-status-s { margin: 0.15rem 0 0; font-size: 0.86rem; color: #3a3c40; }
body.ux.cec .cf-st { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem 0.2rem 0.45rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
body.ux.cec .cf-st-ok { background: #e4f1e9; color: #0e5a38; }
body.ux.cec .cf-st-late { background: #fdf0d5; color: #6e4600; }
body.ux.cec .cf-st-bad { background: #fbe9eb; color: #9e0c24; }
body.ux.cec .cf-st-wait { background: #ececea; color: #4f5156; }
body.ux.cec .cf-ftable { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.86rem; }
body.ux.cec .cf-ftable th, body.ux.cec .cf-ftable td { padding: 0.65rem 0.7rem; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; }
body.ux.cec .cf-ftable th:first-child { padding-left: 0; }
body.ux.cec .cf-ftable thead th { border-top: 0; padding-bottom: 0.5rem; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-accent); white-space: nowrap; }
body.ux.cec .cf-ftable tbody th { font-weight: 700; color: var(--ux-ink); }
body.ux.cec .cf-date { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.ux.cec .cf-sub { display: block; font-size: 0.76rem; color: var(--ux-muted); }
body.ux.cec .cf-ftable tbody th .cf-sub { font-weight: 400; max-width: 16rem; }
body.ux.cec .cf-sub-bad { color: #9e0c24; font-weight: 700; }
body.ux.cec .cf-qual { display: inline-block; margin-top: 0.3rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #fdf0d5; color: #6e4600; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
body.ux.cec .cf-doc { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; }
body.ux.cec .cf-docsrc { display: block; margin-bottom: 0.35rem; font-size: 0.72rem; color: var(--ux-muted); }
body.ux.cec .cf-filing.is-collapsed .cf-extra { display: none; }
body.ux.cec .cf-morebtn { margin-top: 0.75rem; display: inline-flex; align-items: center; min-height: 36px; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--c-line-strong); background: #fff; box-shadow: var(--c-sh-sm); font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--ux-ink); cursor: pointer; }
body.ux.cec .cf-morebtn:hover { border-color: var(--c-accent); color: var(--c-accent-ink); }
body.ux.cec .cf-morebtn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
body.ux.cec .cf-morebtn[hidden] { display: none; }

/* purposes and governing document */
body.ux.cec .cf-objects { position: relative; font-size: 0.88rem; line-height: 1.62; letter-spacing: 0.012em; color: #2c2e32; overflow-wrap: anywhere; }
body.ux.cec .cf-objects p { margin: 0 0 0.5rem; color: inherit; }
body.ux.cec .cf-objects.is-clamped { max-height: 9.8em; overflow: hidden; }
body.ux.cec .cf-objects.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(rgba(255,255,255,0), #fff 85%); }
body.ux.cec .cf-obj-list { list-style: none; margin: 0.15rem 0 0.4rem; padding: 0; }
body.ux.cec .cf-obj-list li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 0.2rem; margin: 0 0 0.45rem; color: inherit; }
body.ux.cec .cf-obj-list .cf-obj-list li { grid-template-columns: 2.8em minmax(0, 1fr); }
body.ux.cec .cf-obj-m { font-weight: 700; color: var(--ux-muted); white-space: nowrap; }
body.ux.cec .cf-obj-t p { margin: 0; }
body.ux.cec .cf-asfiled { margin-top: 0.4rem; font-size: 0.74rem; color: var(--ux-muted); }
body.ux.cec .cf-www { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.2rem; margin: 1.3rem 0 0; }
body.ux.cec .cf-www h4, body.ux.cec .cf-h4 { margin: 0 0 0.45rem; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ux-muted); }
body.ux.cec .cf-h4 { margin-top: 1.3rem; }
body.ux.cec .cf-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
body.ux.cec .cf-tags li { padding: 0.26rem 0.68rem; border-radius: 999px; background: var(--c-accent-tint); color: var(--c-accent-ink); font-size: 0.78rem; font-weight: 700; line-height: 1.35; }
body.ux.cec .cf-tags-quiet li { background: var(--c-pale); color: #3a3c40; }
body.ux.cec .cf-facts { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 0.65rem 1rem; margin: 1.3rem 0 0; font-size: 0.88rem; }
body.ux.cec .cf-facts dt { padding-top: 0.2rem; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ux-muted); }
body.ux.cec .cf-facts dd { margin: 0; color: var(--ux-ink); overflow-wrap: anywhere; }
body.ux.cec .cf-line { display: block; }
body.ux.cec .cf-k2 { color: var(--ux-muted); }
body.ux.cec .cf-asf { font-size: 0.74rem; color: var(--ux-muted); }
body.ux.cec .cf-inline { display: inline; }
body.ux.cec .cf-inline summary { display: inline; cursor: pointer; color: var(--c-accent-ink); font-weight: 700; }
body.ux.cec .cf-events, body.ux.cec .cf-arts { list-style: none; margin: 0; padding: 0; }
body.ux.cec .cf-events li, body.ux.cec .cf-arts li { display: flex; gap: 0.8rem; margin: 0 0 0.3rem; color: var(--ux-ink); font-size: 0.88rem; }
body.ux.cec .cf-ev-d { flex: none; min-width: 8.6rem; color: var(--ux-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* contact box: Charity Commission lines on a charitable company's page */
body.ux.cec .cec-contact .cf-csub { margin: 0.85rem 0 0.15rem; padding-top: 0.7rem; border-top: 1px solid var(--c-line); font-size: 0.72rem; color: var(--ux-muted); }
body.ux.cec .cec-contact .cf-csub a { color: var(--c-accent-ink); font-weight: 700; }
body.ux.cec .cec-contact .cf-asf { display: block; }

@media (max-width: 760px) {
  body.ux.cec .cf-www { grid-template-columns: minmax(0, 1fr); }
  body.ux.cec .cf-facts, body.ux.cec .cf-defs dl { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  body.ux.cec .cf-facts dd, body.ux.cec .cf-defs dd { margin-bottom: 0.6rem; }
  body.ux.cec .cf-events li, body.ux.cec .cf-arts li { flex-direction: column; gap: 0; margin-bottom: 0.5rem; }
  body.ux.cec .cf-table .cf-rowh { min-width: 9.5rem; width: 9.5rem; }
  body.ux.cec .cf-table th, body.ux.cec .cf-table td { padding: 0.5rem 0.65rem; }
  /* the filing table becomes one block per year */
  body.ux.cec .cf-ftable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.ux.cec .cf-ftable, body.ux.cec .cf-ftable tbody { display: block; }
  body.ux.cec .cf-ftable tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem 0.9rem; padding: 0.85rem 0; border-top: 1px solid var(--c-line); }
  body.ux.cec .cf-filing.is-collapsed .cf-extra { display: none; }
  body.ux.cec .cf-ftable th, body.ux.cec .cf-ftable td { display: block; padding: 0; border: 0; }
  body.ux.cec .cf-ftable tbody th { grid-column: 1 / -1; font-size: 0.98rem; }
  body.ux.cec .cf-ftable td::before { content: attr(data-l); display: block; margin-bottom: 0.1rem; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ux-muted); }
  body.ux.cec .cf-date { white-space: normal; }
}
@media (max-width: 519px) {
  body.ux.cec .cf-plot { min-height: 236px; }
  body.ux.cec .cf-views { display: flex; border-radius: 16px; }
  body.ux.cec .cf-seg { flex: 1 1 auto; }
  body.ux.cec .cf-seg span { text-align: center; padding: 0.4rem 0.6rem; }
  body.ux.cec .cf-chip { font-size: 0.76rem; }
  body.ux.cec .cf-help { display: none; }
}
@media (forced-colors: active) {
  body.ux.cec .cf-key { forced-color-adjust: none; }
  body.ux.cec .cf-chip:has(input:not(:checked)) { text-decoration: line-through; }
}

/* fixes after the first screenshot pass: cec.css styles every table th as an upper-case accent header */
body.ux.cec .cf-table tbody th, body.ux.cec .cf-ftable tbody th { text-transform: none; letter-spacing: 0; font-size: 0.86rem; color: var(--ux-ink); border-bottom-color: var(--c-line); }
body.ux.cec .cf-table tbody th { font-weight: 400; }
body.ux.cec .cf-table tbody tr.cf-strong th { font-weight: 700; }
body.ux.cec .cf-table .cf-grp th { text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.66rem; font-weight: 900; color: var(--ux-muted); }
body.ux.cec .cf-ftable th, body.ux.cec .cf-ftable td { border-bottom: 0; }
body.ux.cec .cf-ftable tbody th { font-weight: 700; }
body.ux.cec .cf-table.is-narrow { width: auto; min-width: min(100%, 34rem); }
body.ux.cec .cf-table.is-narrow td, body.ux.cec .cf-table.is-narrow thead th:not(.cf-rowh) { min-width: 8rem; }
@media (max-width: 519px) {
  body.ux.cec .cf-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
  body.ux.cec .cf-seg span { height: 100%; display: flex; align-items: center; justify-content: center; line-height: 1.25; }
  body.ux.cec .cf-table .cf-rowh { min-width: 8.5rem; width: 8.5rem; }
}
body.ux.cec .cf-facts dd a, body.ux.cec .cf-events a { color: var(--c-accent-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
body.ux.cec .cf-obj-list li, body.ux.cec .cf-obj-list .cf-obj-list li { grid-template-columns: minmax(2.2em, max-content) minmax(0, 1fr); gap: 0.2rem 0.55rem; }
