/* Cursus Office — banner e preferenze del consenso (cfr. consent.js). Solo classi: nessuno stile inline (CSP). */
.co-banner, .co-panel, .co-overlay { --co-bg: #fff; --co-fg: #1f2937; --co-mute: #6b7280; --co-line: #e5e7eb; --co-brand: #059669; --co-brand-fg: #fff; --co-soft: #f3f4f6; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--co-fg); box-sizing: border-box; }
.co-banner *, .co-panel *, .co-overlay * { box-sizing: border-box; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-bs-theme="light"]) .co-banner, :root:not([data-theme="light"]):not([data-bs-theme="light"]) .co-panel, :root:not([data-theme="light"]):not([data-bs-theme="light"]) .co-overlay { --co-bg: #1c2230; --co-fg: #e5e7eb; --co-mute: #9ca3af; --co-line: #2f3a4d; --co-soft: #263043; }
}
:root[data-theme="dark"] .co-banner, :root[data-theme="dark"] .co-panel, :root[data-theme="dark"] .co-overlay,
:root[data-bs-theme="dark"] .co-banner, :root[data-bs-theme="dark"] .co-panel, :root[data-bs-theme="dark"] .co-overlay { --co-bg: #1c2230; --co-fg: #e5e7eb; --co-mute: #9ca3af; --co-line: #2f3a4d; --co-soft: #263043; }

.co-banner { position: fixed; z-index: 2147483000; left: 16px; bottom: 16px; width: min(460px, calc(100vw - 32px)); background: var(--co-bg); border: 1px solid var(--co-line); border-radius: 14px; padding: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }
.co-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.co-logo { height: 26px; width: auto; max-width: 140px; object-fit: contain; flex: none; }
.co-title { font-size: 15px; flex: 1 1 auto; }
.co-text { margin: 0 0 14px; color: var(--co-mute); }
.co-link { color: var(--co-brand); text-decoration: underline; white-space: nowrap; }
.co-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.co-btn { appearance: none; cursor: pointer; font: inherit; font-weight: 600; border-radius: 10px; padding: 9px 14px; border: 1px solid var(--co-brand); line-height: 1.2; flex: 1 1 auto; text-align: center; }
/* «Rifiuta tutti» e «Accetta tutti» hanno lo STESSO peso visivo (non si deve spingere verso l'accettazione) */
.co-solid { background: var(--co-brand); color: var(--co-brand-fg); }
.co-ghost { background: transparent; color: var(--co-brand); flex-basis: 100%; }
.co-btn:hover { filter: brightness(.95); }
.co-btn:focus-visible, .co-link:focus-visible, .co-x:focus-visible, .co-switch input:focus-visible + .co-slider { outline: 3px solid color-mix(in srgb, var(--co-brand) 55%, transparent); outline-offset: 2px; }

.co-overlay { position: fixed; z-index: 2147483001; inset: 0; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.co-panel { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--co-bg); border: 1px solid var(--co-line); border-radius: 14px; padding: 20px; box-shadow: 0 16px 50px rgba(0, 0, 0, .3); }
.co-x { appearance: none; border: 0; background: transparent; color: var(--co-mute); font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.co-list { display: grid; gap: 10px; margin: 0 0 16px; }
.co-cat { background: var(--co-soft); border-radius: 10px; padding: 12px 14px; }
.co-cat-top { display: flex; align-items: center; gap: 10px; }
.co-cat-top strong { flex: 1 1 auto; }
.co-cat-text { margin: 6px 0 0; color: var(--co-mute); font-size: 13px; }
.co-badge { font-size: 12px; color: var(--co-brand); background: color-mix(in srgb, var(--co-brand) 14%, transparent); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.co-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.co-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.co-slider { position: absolute; inset: 0; background: #9ca3af; border-radius: 999px; transition: background .15s; pointer-events: none; }
.co-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.co-switch input:checked + .co-slider { background: var(--co-brand); }
.co-switch input:checked + .co-slider::after { transform: translateX(20px); }
.co-switch input:disabled { cursor: not-allowed; }
.co-switch input:disabled + .co-slider { opacity: .45; }
.co-lock { overflow: hidden; }
@media (max-width: 520px) {
  .co-banner { left: 8px; right: 8px; bottom: 8px; width: auto; border-radius: 12px; }
  .co-actions .co-btn { flex-basis: calc(50% - 4px); }
  .co-ghost { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .co-slider, .co-slider::after { transition: none; } }
