/* EthicsComputer consent banner + preference centre (12 Nov 2026). Scoped .ecc-*; no framework. */
.ecc-banner, .ecc-center { --ecc-ink:#0F172A; --ecc-muted:#475569; --ecc-line:#CBD5E1; --ecc-bg:#FFFFFF; --ecc-tint:#F1F5F9; --ecc-brand:#1D4ED8; --ecc-focus:#F59E0B;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ecc-ink); line-height: 1.5; box-sizing: border-box; }
.ecc-banner *, .ecc-center * { box-sizing: border-box; }
.ecc-banner[hidden], .ecc-center[hidden] { display: none !important; }

.ecc-banner { position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 980px; margin: 0 auto; background: var(--ecc-bg); border: 1px solid var(--ecc-line); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(15,23,42,.45); padding: 18px 20px; display: grid; gap: 14px; }
@media (min-width: 860px) { .ecc-banner { grid-template-columns: 1fr auto; align-items: center; } }
.ecc-banner h2 { font-size: 1rem; font-weight: 800; margin: 0 0 4px; color: var(--ecc-ink); }
.ecc-banner p { margin: 0; font-size: .9rem; color: var(--ecc-muted); }
.ecc-banner a, .ecc-center a { color: var(--ecc-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.ecc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ecc-btn { appearance: none; font: inherit; font-size: .9rem; font-weight: 700; min-height: 44px; padding: 10px 18px; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--ecc-brand); background: var(--ecc-brand); color: #fff; flex: 1 1 auto; text-align: center; }
/* Accept and Reject are deliberately identical in size, colour and weight (no nudging). */
.ecc-btn--choice { background: var(--ecc-brand); color: #fff; }
.ecc-btn--ghost { background: #fff; color: var(--ecc-brand); }
.ecc-btn:hover { filter: brightness(1.08); }
.ecc-btn:focus-visible, .ecc-switch input:focus-visible + .ecc-slider, .ecc-close:focus-visible, .ecc-banner a:focus-visible, .ecc-center a:focus-visible {
  outline: 3px solid var(--ecc-focus); outline-offset: 2px; }

.ecc-center { position: fixed; inset: 0; z-index: 2147483001; background: rgba(15,23,42,.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
@media (min-width: 640px) { .ecc-center { align-items: center; } }
.ecc-panel { background: var(--ecc-bg); width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.ecc-panel h2 { font-size: 1.2rem; font-weight: 800; margin: 0; color: var(--ecc-ink); }
.ecc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ecc-close { appearance: none; border: 1px solid var(--ecc-line); background: #fff; border-radius: 10px; width: 40px; height: 40px; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ecc-ink); }
.ecc-intro { font-size: .9rem; color: var(--ecc-muted); margin: 0 0 14px; }
.ecc-cat { border: 1px solid var(--ecc-line); border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; }
.ecc-cat-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ecc-cat h3 { font-size: .98rem; font-weight: 700; margin: 0; color: var(--ecc-ink); }
.ecc-cat p { font-size: .85rem; color: var(--ecc-muted); margin: 6px 0 0; }
.ecc-cat details { margin-top: 6px; font-size: .82rem; color: var(--ecc-muted); }
.ecc-cat summary { cursor: pointer; font-weight: 600; color: var(--ecc-ink); }
.ecc-cat ul { margin: 6px 0 0; padding-left: 18px; }
.ecc-always { font-size: .8rem; font-weight: 700; color: #047857; white-space: nowrap; }
.ecc-note { background: var(--ecc-tint); border-radius: 10px; padding: 10px 12px; font-size: .84rem; color: var(--ecc-ink); margin: 0 0 12px; }

.ecc-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.ecc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ecc-slider { width: 48px; height: 28px; border-radius: 999px; background: #94A3B8; position: relative; transition: background .2s; }
.ecc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ecc-switch input:checked + .ecc-slider { background: var(--ecc-brand); }
.ecc-switch input:checked + .ecc-slider::after { transform: translateX(20px); }
.ecc-switch input:disabled + .ecc-slider { opacity: .5; cursor: not-allowed; }
.ecc-state { font-size: .8rem; font-weight: 700; min-width: 2.2em; color: var(--ecc-ink); }
.ecc-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ecc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.ecc-lock { overflow: hidden; }

.ecc-embed-ph { display: grid; place-items: center; text-align: center; gap: 10px; padding: 24px; min-height: 220px; border: 1px dashed #94A3B8; border-radius: 14px; background: #F8FAFC; color: #334155; font-size: .9rem; }
.ecc-embed-ph button { appearance: none; font: inherit; font-weight: 700; padding: 10px 16px; min-height: 44px; border-radius: 10px; border: 2px solid #1D4ED8; background: #fff; color: #1D4ED8; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .ecc-slider, .ecc-slider::after { transition: none; } }
@media print { .ecc-banner, .ecc-center { display: none !important; } }
