/* Report an error: button, form, dialog and confirmation (demo, 14 Oct 2026). Owned by report.js. */
body.ux.cec .cec-rep-btn { min-height: 44px; gap: 0.5rem; white-space: nowrap; cursor: pointer; }
body.ux.cec .cec-rep-btn .cec-rep-ico { flex: none; color: var(--c-accent-ink); }
body.ux.cec .cec-rep-wrap { margin: 0.6rem 0 1rem; }
body.ux.cec .cec-ph-row:has(.cec-contact) .btn-row > .cec-rep-btn { margin-bottom: 0.7rem; }
body.ux.cec .cec-rep-col { max-width: 760px; padding-bottom: 36px; }
body.ux.cec .cec-rep-back { margin: 0.6rem 0 0; font-size: 0.9rem; }
body.ux.cec .cec-rep-back a { display: inline-block; padding: 0.7rem 0; }

body.ux.cec .cec-rep-form, .cec-rep-dlg-body .cec-rep-form { display: grid; gap: 18px; font-size: 0.95rem; }
.cec-rep-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cec-rep-form legend, .cec-rep-form label { font-weight: 700; color: #121314; }
.cec-rep-form legend { padding: 0; margin-bottom: 8px; }
.cec-rep-form .cec-rep-req, .cec-rep-form .cec-rep-opt { font-weight: 400; color: #5d5f63; font-size: 0.85rem; }
.cec-rep-form .cec-rep-hint, .cec-rep-form .cec-rep-count { margin: 2px 0 6px; font-size: 0.85rem; color: #5d5f63; line-height: 1.45; }
.cec-rep-form .cec-rep-count { margin: 4px 0 0; text-align: right; min-height: 1.2em; }
.cec-rep-form .cec-rep-field label { display: block; margin-bottom: 4px; }
.cec-rep-form input[type=text], .cec-rep-form input[type=url], .cec-rep-form input[type=email], .cec-rep-form select, .cec-rep-form textarea {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 14px; font: inherit; color: #121314; background: #fff;
  border: 1px solid rgba(18,19,20,.4); border-radius: 12px; }
.cec-rep-form textarea { resize: vertical; line-height: 1.5; }
.cec-rep-form input:focus-visible, .cec-rep-form select:focus-visible, .cec-rep-form textarea:focus-visible,
.cec-rep-form .cec-rep-choice:focus-within, .cec-rep-dialog button:focus-visible, .cec-rep-btn:focus-visible { outline: 3px solid var(--c-accent, #c8102e); outline-offset: 2px; }
.cec-rep-choices { display: grid; gap: 8px; }
.cec-rep-choice { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; box-sizing: border-box; padding: 10px 14px; border: 1px solid rgba(18,19,20,.2); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; }
.cec-rep-choice:has(input:checked) { border-color: var(--c-accent-ink, #9e0c24); background: var(--c-accent-tint, #fbe9eb); }
.cec-rep-choice input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-accent, #c8102e); }
.cec-rep-choice b { display: block; font-weight: 700; }
.cec-rep-choice small { display: block; color: #5d5f63; font-size: 0.85rem; line-height: 1.4; }
.cec-rep-tick { align-items: center; }
.cec-rep-tick span { font-weight: 700; }
.cec-rep-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cec-rep-err { margin: 4px 0 0; color: #9e0c24; font-weight: 700; font-size: 0.9rem; }
.cec-rep-form [aria-invalid=true] { border-color: #9e0c24; border-width: 2px; }
.cec-rep-summary { border: 2px solid #9e0c24; border-radius: 12px; padding: 12px 16px; background: #fff; }
.cec-rep-summary ul { margin: 6px 0 0; padding-left: 20px; }
.cec-rep-summary a { display: inline-block; padding: 8px 0; font-weight: 700; }
.cec-rep-note { margin: 0; font-size: 0.88rem; color: #3a3c40; line-height: 1.5; }
.cec-rep-warn { padding: 10px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #e0b34a; }
.cec-rep-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cec-rep-actions .btn { min-height: 44px; justify-content: center; }
.cec-rep-person[hidden] { display: none; }
.cec-rep-person { display: grid; gap: 14px; }
.cec-rep-done h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.cec-rep-done ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.55; }
.cec-rep-refl { margin: 0; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent, #c8102e); }
.cec-rep-ref { margin: 0 0 10px; font-size: 2rem; font-weight: 300; letter-spacing: 0.04em; color: #121314; font-variant-numeric: tabular-nums; }

/* dialog */
dialog.cec-rep-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: #121314; box-shadow: 0 8px 20px rgba(18,19,20,.2), 0 30px 70px rgba(18,19,20,.35); overflow: hidden; }
dialog.cec-rep-dialog::backdrop { background: rgba(18,19,20,.6); }
.cec-rep-dialog[open] { display: flex; flex-direction: column; }
.cec-rep-dlg-bar { display: flex; justify-content: flex-end; padding: 8px 8px 0; }
.cec-rep-close { min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #121314; }
.cec-rep-close:hover { background: #f1f1ef; }
.cec-rep-dlg-scroll { overflow-y: auto; padding: 0 22px 24px; -webkit-overflow-scrolling: touch; }
.cec-rep-dlg-head { margin: -6px 0 14px; }
.cec-rep-dlg-head .eyebrow { margin: 0 0 2px; }
.cec-rep-dlg-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.25; font-weight: 700; }
.cec-rep-dlg-head h2:focus { outline: none; }
.cec-rep-meta { margin: 4px 0 0; color: #5d5f63; font-size: 0.9rem; }
.cec-rep-loading { padding: 8px 0 24px; color: #5d5f63; }
/* verify 14 Oct: cec.css "body.ux.cec p" and the text-input rules out-rank the plain classes above, so errors showed grey,
   choice hints bold, the person-name box as a pill on the full page, and input borders under 3:1 */
body.ux.cec p.cec-rep-err { color: #9e0c24; }
body.ux.cec p.cec-rep-refl { color: var(--c-accent, #c8102e); }
body.ux.cec p.cec-rep-ref { color: #121314; }
body.ux.cec .cec-rep-form .cec-rep-choice { font-weight: 400; }
body.ux.cec .cec-rep-form input[type=text], body.ux.cec .cec-rep-form input[type=url], body.ux.cec .cec-rep-form input[type=email], body.ux.cec .cec-rep-form select, body.ux.cec .cec-rep-form textarea,
body.ux.cec .ux-main .cec-rep-form input[type=text] { border-radius: 12px; border: 1px solid rgba(18,19,20,.62); }
body.ux.cec .cec-rep-form input[aria-invalid=true], body.ux.cec .cec-rep-form textarea[aria-invalid=true], body.ux.cec .ux-main .cec-rep-form input[aria-invalid=true] { border: 2px solid #9e0c24; }
/* verify 14 Oct: on the full page "body.ux.cec .cec-page a" makes links plain ink with no underline; keep them recognisable as links.
   Summary links are blocks so the bullet sits by the first line when the text wraps. */
body.ux.cec .cec-rep-summary a, body.ux.cec .cec-page .cec-rep-summary a { display: block; color: #9e0c24; text-decoration: underline; text-underline-offset: 3px; }
body.ux.cec .cec-page .cec-rep-note a, body.ux.cec .cec-page .cec-rep-back a { color: var(--c-accent-ink, #9e0c24); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .cec-rep-dlg-scroll { padding: 0 16px 20px; }
  .cec-rep-actions .btn { flex: 1 1 100%; }
  body.ux.cec .cec-rep-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) { dialog.cec-rep-dialog[open] { animation: cecRepIn 160ms ease-out; } @keyframes cecRepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } }

/* Profile header (header.js, 15 Oct 2026): tools row top right (Report an error, Save, Share), the tiles straight under
   the title, one compact action row under the tiles. Scoped to header.cec-hdr so nothing else moves. Hyphens only. */

/* ---- tools row ---- */
body.ux.cec .cec-hdr .cec-hdr-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; min-width: 0; }
body.ux.cec .cec-hdr .cec-hdr-btns { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: nowrap; }
body.ux.cec .cec-hdr .cec-hdr-btns .cec-rep-btn { margin: 0 !important; }
body.ux.cec .cec-hdr .cec-hdr-btns a.cec-ib { text-decoration: none; }
body.ux.cec .cec-hdr .cec-hdr-btns .cec-rep-btn { width: 44px; }
body.ux.cec .cec-hdr .cec-hdr-btns .cec-ro-note { display: none; }
body.ux.cec .cec-hdr .cec-hdr-tools > .cec-ro-note { margin: 0; max-width: 340px; text-align: right; font-size: 0.8rem; }
body.ux.cec .cec-hdr-next > .ux-toast { flex: 1 1 100%; box-sizing: border-box; margin: 0; padding: 0.6rem 0.9rem; font-size: 0.85rem; line-height: 1.45; text-align: left;
  background: #fff; border: 1px solid var(--c-line); border-left: 4px solid #1d7a45; border-radius: 12px; box-shadow: var(--c-sh-sm); }
body.ux.cec .cec-hdr-next > .ux-toast a { color: var(--c-accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---- round icon buttons (secondary version of the red search circle) ---- */
body.ux.cec .cec-hdr .cec-ib-wrap { position: static; display: inline-flex; margin: 0; padding: 0; border: 0; }
body.ux.cec .cec-hdr .cec-ib { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
  width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; border: 1px solid var(--c-line-strong); background: #fff; color: var(--c-accent);
  box-shadow: var(--c-sh-sm); cursor: pointer; list-style: none; font: inherit; -webkit-tap-highlight-color: transparent;
  transition: background 200ms var(--c-ease), color 200ms var(--c-ease), border-color 200ms var(--c-ease), transform 200ms var(--c-ease), box-shadow 200ms var(--c-ease); }
body.ux.cec .cec-hdr summary.cec-ib::-webkit-details-marker { display: none; }
body.ux.cec .cec-hdr summary.cec-ib::marker { content: ""; }
body.ux.cec .cec-hdr .cec-ib-ico { display: block; flex: none; }
body.ux.cec .cec-hdr .cec-ib:hover, body.ux.cec .cec-hdr details[open] > summary.cec-ib, body.ux.cec .cec-hdr .cec-ib[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--c-accent), var(--c-accent-ink)); border-color: var(--c-accent-ink); color: #fff; }
body.ux.cec .cec-hdr .cec-ib:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.16), 0 10px 22px rgba(200,16,46,.26); }
body.ux.cec .cec-hdr .cec-ib:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
body.ux.cec .cec-hdr .cec-ib:disabled { cursor: not-allowed; opacity: 0.55; transform: none; background: #fff; color: var(--c-accent); border-color: var(--c-line-strong); box-shadow: none; }
/* saved: the floppy is filled */
body.ux.cec .cec-hdr .cec-ib[aria-pressed="true"] .fd-body { fill: currentColor; }
body.ux.cec .cec-hdr .cec-ib[aria-pressed="true"] .fd-in { stroke: var(--c-accent-ink); }

/* visible tooltip (hover and keyboard focus) */
body.ux.cec .cec-hdr .cec-ib-tip { position: absolute; top: calc(100% + 8px); right: 0; z-index: 41; white-space: nowrap; padding: 0.3rem 0.6rem;
  border-radius: 8px; background: var(--c-deep); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none;
  pointer-events: none; opacity: 0; transform: translateY(-3px); transition: opacity 150ms ease, transform 150ms ease; }
body.ux.cec .cec-hdr .cec-ib:hover .cec-ib-tip, body.ux.cec .cec-hdr .cec-ib:focus-visible .cec-ib-tip { opacity: 1; transform: none; }
body.ux.cec .cec-hdr details[open] > .cec-ib .cec-ib-tip { opacity: 0; }
@media (hover: none) { body.ux.cec .cec-hdr .cec-ib:hover .cec-ib-tip { opacity: 0; } body.ux.cec .cec-hdr .cec-ib:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { body.ux.cec .cec-hdr .cec-ib, body.ux.cec .cec-hdr .cec-ib-tip { transition: none; } body.ux.cec .cec-hdr .cec-ib:hover { transform: none; } }

/* popovers (Share, and the Saved menu) anchor to the tools row so they never run off a phone screen */
body.ux.cec .cec-hdr .cec-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; box-sizing: border-box; width: 250px; max-width: calc(100vw - 32px);
  margin: 0; padding: 0.4rem; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; box-shadow: var(--ux-shadow-pop); text-align: left; }
body.ux.cec .cec-hdr details:not([open]) > .cec-pop { display: none; }   /* followup 15 Oct: a closed popover takes no space (it was widening the page by 2px at 390) */
body.ux.cec .cec-hdr .cec-pop form { display: block; margin: 0; }
body.ux.cec .cec-hdr .cec-pop .cec-pop-item, body.ux.cec .cec-hdr .cec-pop a, body.ux.cec .cec-hdr .cec-pop button {
  display: flex; align-items: center; gap: 0.6rem; box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; padding: 0.55rem 0.75rem; border: 0; border-radius: 10px;
  background: transparent; color: var(--ux-ink); font: inherit; font-size: 0.9rem; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: left; cursor: pointer; box-shadow: none; }
body.ux.cec .cec-hdr .cec-pop .cec-pop-item[hidden] { display: none; }
body.ux.cec .cec-hdr .cec-pop a:hover, body.ux.cec .cec-hdr .cec-pop button:hover, body.ux.cec .cec-hdr .cec-pop a:focus-visible, body.ux.cec .cec-hdr .cec-pop button:focus-visible {
  background: var(--c-pale); color: var(--c-accent-ink); outline: none; transform: none; }
body.ux.cec .cec-hdr .cec-pop a:focus-visible, body.ux.cec .cec-hdr .cec-pop button:focus-visible { box-shadow: inset 0 0 0 2px var(--c-accent); }
body.ux.cec .cec-hdr .cec-pop svg { flex: none; color: var(--c-accent); }
body.ux.cec .cec-hdr .cec-pop-status { margin: 0.15rem 0.75rem 0.35rem; font-size: 0.82rem; font-weight: 700; color: #1d6b3a; }
body.ux.cec .cec-hdr .cec-pop-status:empty { margin: 0; }
.cec-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- action row: How am I connected?, the claim line and the other header links ---- */
body.ux.cec .cec-hdr-next { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin: 1.1rem 0 0; min-width: 0; }
body.ux.cec .cec-hdr-nextwrap .cec-hdr-next { margin: -0.2rem 0 1.25rem; }
body.ux.cec .cec-hdr-next .btn { min-height: 44px; }
body.ux.cec .cec-hdr-next .cec-hdr-primary svg { flex: none; }
body.ux.cec .cec-hdr-next form.ux-inline { display: inline-flex; margin: 0; }
body.ux.cec .cec-hdr-next .ux-menu { position: relative; }
body.ux.cec .cec-hdr-next .ux-menu-panel, body.ux.cec .cec-hdr-next .ux-invite-form { z-index: 30; }
body.ux.cec .cec-hdr-next details.ux-invite-btn { position: relative; }
body.ux.cec .cec-hdr-next .ux-invite-form { position: absolute; left: 0; top: calc(100% + 0.4rem); width: min(380px, 86vw); box-sizing: border-box; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; box-shadow: var(--ux-shadow-pop); padding: 0.9rem 1rem; }
@media (max-width: 600px) { body.ux.cec .cec-hdr-next .ux-invite-form { position: static; width: 100%; margin-top: 0.5rem; } }
body.ux.cec .cec-hdr-next .cec-hdr-claim { flex: 1 1 280px; margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--ux-muted, #5f6368); }
body.ux.cec .cec-hdr-next .cec-hdr-claim a { font-weight: 700; }

/* ---- layout with a contact box: one grid, so the tiles start level with the contact box and nothing floats ---- */
body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "title tools" "kpis side" "next side"; grid-template-rows: auto auto 1fr; column-gap: 1.25rem; row-gap: 0; align-items: start; }
body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) > .cec-ph-text,
body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) > .btn-row { display: contents; }
body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) .cec-hdr-title { grid-area: title; min-width: 0; padding-top: 0.2rem; }
body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) .cec-hdr-tools { grid-area: tools; justify-self: end; }
body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) .cec-ph-kpis { grid-area: kpis; margin: 1.25rem 0 0; padding: 0; }
body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) .cec-hdr-next { grid-area: next; }
body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) .cec-contact { grid-area: side; margin-top: 1.25rem; height: auto; align-self: start; }
body.ux.cec header.cec-hdr .cec-hdr-title > :last-child { margin-bottom: 0; }

/* ---- layout without a contact box: title left, tools top right ---- */
body.ux.cec header.cec-hdr .cec-ph-row:not(:has(.cec-contact)) { align-items: flex-start; }
body.ux.cec header.cec-hdr .cec-ph-row:not(:has(.cec-contact)) > .btn-row { align-self: flex-start; margin-left: auto; }

/* ---- tablets and phones: tools under the title, then tiles, actions, contact ---- */
@media (max-width: 980px) {
  body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "tools" "kpis" "next" "side"; grid-template-rows: none; }
  body.ux.cec header.cec-hdr .cec-ph-row:has(.cec-contact) .cec-hdr-tools { justify-self: start; margin-top: 1rem; }
}
@media (max-width: 980px) {
  body.ux.cec header.cec-hdr .cec-hdr-tools { align-items: flex-start; }
  body.ux.cec header.cec-hdr .cec-hdr-btns { justify-content: flex-start; }
  body.ux.cec header.cec-hdr .cec-pop { right: auto; left: 0; }
  body.ux.cec header.cec-hdr .cec-ib-tip { right: auto; left: 50%; transform: translate(-50%, -3px); }
  body.ux.cec header.cec-hdr .cec-ib:hover .cec-ib-tip, body.ux.cec header.cec-hdr .cec-ib:focus-visible .cec-ib-tip { transform: translate(-50%, 0); }
  body.ux.cec header.cec-hdr .cec-hdr-tools > .cec-ro-note { text-align: left; }
}
@media (max-width: 760px) {
  body.ux.cec header.cec-hdr .cec-ph-row:not(:has(.cec-contact)) > .btn-row { margin-left: 0; width: 100%; }
  body.ux.cec .cec-hdr-next .cec-hdr-claim { flex-basis: 100%; }
}
/* 18 Oct (Jason): "How am I connected?" leads the tools row, a slightly compact red pill before the round buttons */
body.ux.cec .cec-hdr .cec-hdr-btns .cec-hdr-route { flex: none; min-height: 44px; padding: 0 1rem; font-size: 0.9rem; white-space: nowrap; gap: 0.45rem; margin: 0 0.25rem 0 0; }
body.ux.cec .cec-hdr .cec-hdr-btns .cec-hdr-route svg { flex: none; }
@media (max-width: 600px) {
  body.ux.cec .cec-hdr .cec-hdr-btns { flex-wrap: wrap; justify-content: flex-start; }
  body.ux.cec .cec-hdr .cec-hdr-btns .cec-hdr-route { flex: 1 1 100%; justify-content: center; margin: 0 0 0.1rem; }
  body.ux.cec .cec-hdr .cec-hdr-tools { align-self: stretch; width: 100%; }
}
/* footer link */
.ux-ftr a.cec-rep-foot { white-space: nowrap; }

/* 16 Oct (Jason): gentle pulse on the unsaved Save button on person pages - starts after 5 s, three soft pulses, then rests */
@keyframes cecSavePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); transform: scale(1); } 40% { box-shadow: 0 0 0 7px rgba(200,16,46,.16); transform: scale(1.06); } }
body.ux.cec .cec-hdr .cec-save.cec-pulse > .cec-ib { animation: cecSavePulse 2.4s ease-in-out 5s 3; }
body.ux.cec .cec-hdr .cec-save.cec-pulse > .cec-ib:hover, body.ux.cec .cec-hdr .cec-save.cec-pulse > .cec-ib:focus-visible { animation: none; }
@media (prefers-reduced-motion: reduce) { body.ux.cec .cec-hdr .cec-save.cec-pulse > .cec-ib { animation: none; } }

/* The record-level source and licence (i) in the profile header (govreg-cec demo, 19 Oct 2026). Markup is the shared cec-info one (tpl-info.css). */
body.ux.cec .cec-ph .eyebrow .cec-srcinfo { margin-left: 0.55rem; vertical-align: middle; position: relative; top: -1px; }
body.ux.cec .cec-ph .cec-hdr-title .cec-srcinfo { margin-left: 0.5rem; }
body.ux.cec .cec-srcinfo .cec-info-pop { overflow-wrap: anywhere; white-space: normal; }
body.ux.cec .cec-srcinfo .cec-info-pop .cec-src-h { display: block; margin-bottom: 0.1rem; color: #1b1c1e; font-weight: 700; }
body.ux.cec .cec-srcinfo .cec-info-pop a { color: var(--c-red, #c8102e); text-decoration: underline; }
@media (min-width: 641px) {
  body.ux.cec .cec-srcinfo .cec-info-pop { left: -8px; right: auto; width: 360px; max-width: min(360px, 86vw); max-height: 60vh; overflow-y: auto; }
}

/* cec-info: a small circled "i" at the top right of a card; the explanation opens on hover, focus or tap (govreg-cec demo, 18 Oct 2026) */
body.ux.cec .cec-card-h:has(.cec-info) { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
body.ux.cec .cec-info { position: relative; z-index: 5; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border: 1.5px solid #8a8d91; border-radius: 50%; color: #55575b; font-size: 0.74rem; line-height: 1; cursor: help; background: #fff; }
body.ux.cec .cec-info:hover, body.ux.cec .cec-info:focus-visible, body.ux.cec .cec-info.open { border-color: var(--c-red, #c8102e); color: var(--c-red, #c8102e); outline: none; }
body.ux.cec .cec-info-pop { display: none; position: absolute; top: calc(100% + 8px); right: -6px; z-index: 1000; width: 280px; max-width: 78vw; padding: 0.7rem 0.85rem; background: #fff; border: 1px solid var(--c-line, #e3e3e3); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); color: #3d3f43; font-size: 0.8rem; line-height: 1.45; font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; text-align: left; cursor: auto; }
body.ux.cec .cec-info:hover .cec-info-pop, body.ux.cec .cec-info:focus-visible .cec-info-pop, body.ux.cec .cec-info.open .cec-info-pop { display: block; }
body.ux.cec .cec-info-h { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
body.ux.cec .cec-info-pop .cec-info-more { display: block; margin-top: 0.45rem; }
body.ux.cec .cec-info-i { font: italic 700 0.78rem/1 Georgia, serif; }
body.ux.cec .cec-info:hover, body.ux.cec .cec-info:focus-within, body.ux.cec .cec-info.open { z-index: 1001; }
body.ux.cec .cec-card-h:has(.cec-info) > h2 { margin-right: auto; }
body.ux.cec .cec-info.cec-info-inline { vertical-align: -5px; margin-left: 0.3rem; width: 20px; height: 20px; }

/* 19 Oct 2026: touch + narrow screens. The popup opens only on tap, as a sheet pinned inside the viewport; tap it, tap outside or press Esc to close. */
@media (hover: none) { body.ux.cec .cec-info:hover:not(.open) .cec-info-pop, body.ux.cec .cec-info:focus-within:not(.open) .cec-info-pop { display: none; } }
@media (max-width: 640px) {
  body.ux.cec .cec-info:hover:not(.open) .cec-info-pop, body.ux.cec .cec-info:focus-within:not(.open) .cec-info-pop, body.ux.cec .cec-info:focus-visible:not(.open) .cec-info-pop { display: none; }
  body.ux.cec .cec-info.open .cec-info-pop { display: block; position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; max-width: none; max-height: 65vh; overflow-y: auto; padding: 0.9rem 1rem 1rem; font-size: 0.88rem; box-shadow: 0 -4px 28px rgba(0,0,0,.22); z-index: 2147483000; overscroll-behavior: contain; }
  body.ux.cec .cec-info.open .cec-info-pop::after { content: "Tap to close"; display: block; margin-top: 0.6rem; font-size: 0.72rem; color: #8a8d91; text-align: right; }
  body.ux.cec .cec-info { width: 28px; height: 28px; }
}
/* 19 Oct 2026: on narrow screens a header (i) stays at the top right even when the header stacks (Board card) */
@media (max-width: 640px) { body.ux.cec .cec-card-h:has(> .cec-info) { position: relative; } body.ux.cec .cec-card-h:has(> .cec-info) > .cec-info { position: absolute; top: 0; right: 0; } body.ux.cec .cec-card-h:has(> .cec-info) > h2 { padding-right: 2.4rem; } }
