/* Consent banner and settings dialog (assets/consent.js). Shared by the marketing site and the portal (the
   Analytics extension inlines its identical copy). Always the navy of the site header and footer, with the
   brand colours of site-shell.css written out (the portal keeps --color-primary as an HSL triplet), so it reads
   the same on both sites and in the portal light and dark modes. */
.sc-consent,.sc-consent-dialog{--consent-bg:#121937;--consent-text:#f4f7fc;--consent-muted:#c9d3e6;--consent-line:rgba(255,255,255,.14);--consent-accent:#73e9ff;--consent-accent-hover:#a6f2ff;--consent-on-accent:#07192b;color:var(--consent-text);font-family:Geist,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.55;text-align:left}
.sc-consent *,.sc-consent-dialog *{box-sizing:border-box}
html.sc-consent-open{scroll-padding-bottom:var(--sc-consent-space,0px)}
html.sc-consent-open body{padding-bottom:var(--sc-consent-space,0px)}
.sc-consent{position:fixed;z-index:70;left:16px;right:16px;bottom:16px;margin-inline:auto;max-width:1120px;background:var(--consent-bg);border:1px solid var(--consent-line);border-radius:20px;box-shadow:0 18px 48px rgba(4,9,30,.45)}
.sc-consent-inner{display:flex;align-items:center;gap:28px;padding:20px 24px}
.sc-consent-copy{flex:1 1 auto;min-width:0}
.sc-consent-title,.sc-consent-dialog h2{margin:0 0 4px;font-size:16px;font-weight:600;letter-spacing:-.01em;color:var(--consent-text)}
.sc-consent-text{margin:0;color:var(--consent-muted)}
.sc-consent-policy{color:var(--consent-accent);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.sc-consent-policy:hover{color:var(--consent-accent-hover)}
.sc-consent-actions{display:flex;flex-wrap:wrap;gap:10px;flex:0 0 auto}
.sc-consent-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:10px 20px;border-radius:999px;font:inherit;font-size:14px;font-weight:500;line-height:1.2;cursor:pointer;white-space:nowrap;border:1px solid transparent}
/* Accept and reject look the same: refusing is as easy as accepting. */
.sc-consent-button.is-choice{background:var(--consent-accent);color:var(--consent-on-accent)}
.sc-consent-button.is-choice:hover{background:var(--consent-accent-hover)}
.sc-consent-button.is-quiet{background:transparent;color:var(--consent-text);border-color:rgba(255,255,255,.4)}
.sc-consent-button.is-quiet:hover{border-color:var(--consent-text)}
.sc-consent :is(a,button):focus-visible,.sc-consent-dialog :is(a,button,input):focus-visible{outline:2px solid var(--consent-accent);outline-offset:3px}
.sc-consent-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;margin:auto;padding:24px;background:var(--consent-bg);border:1px solid var(--consent-line);border-radius:20px;box-shadow:0 24px 64px rgba(4,9,30,.55)}
.sc-consent-dialog::backdrop{background:rgba(5,9,25,.72)}
.sc-consent-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}
.sc-consent-dialog h2{font-size:18px;margin:6px 0 0}
.sc-consent-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-6px -10px 0 0;border:0;border-radius:999px;background:transparent;color:var(--consent-text);cursor:pointer}
.sc-consent-close:hover{background:rgba(255,255,255,.08)}
.sc-consent-close svg{width:22px;height:22px}
.sc-consent-option{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-top:16px;padding-top:16px;border-top:1px solid var(--consent-line)}
.sc-consent-option h3{margin:0 0 2px;font-size:14px;font-weight:600;color:var(--consent-text)}
.sc-consent-option label{cursor:pointer}
.sc-consent-option p{margin:0;color:var(--consent-muted);font-size:13px}
.sc-consent-always{flex:0 0 auto;padding-top:2px;color:var(--consent-muted);font-size:13px;white-space:nowrap}
.sc-consent-switch{position:relative;flex:0 0 auto;width:52px;height:30px;margin-top:2px}
.sc-consent-switch input{position:absolute;inset:-7px;width:calc(100% + 14px);height:calc(100% + 14px);margin:0;opacity:0;cursor:pointer;z-index:1}
.sc-consent-track{position:absolute;inset:0;border-radius:999px;background:#3a4570;border:1px solid rgba(255,255,255,.45);transition:background-color .15s}
.sc-consent-track::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#f4f7fc;transition:transform .15s}
.sc-consent-switch input:checked+.sc-consent-track{background:var(--consent-accent);border-color:var(--consent-accent)}
.sc-consent-switch input:checked+.sc-consent-track::after{transform:translateX(22px);background:var(--consent-on-accent)}
.sc-consent-switch input:focus-visible+.sc-consent-track{outline:2px solid var(--consent-accent);outline-offset:3px}
.sc-consent-dialog .sc-consent-text{margin-top:12px}
.sc-consent-dialog .sc-consent-actions{margin-top:20px;justify-content:flex-end}
.sc-consent-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Footer link that reopens the settings (rendered hidden; consent.js shows it when analytics is configured). */
.site-consent-link[hidden]{display:none!important}
.site-footer .site-consent-link{display:flex;align-items:center;min-height:28px;padding:0;border:0;background:none;color:var(--site-muted,#c9d3e6);font:inherit;font-size:12.5px;line-height:1.5;cursor:pointer;text-align:left}
.site-footer .site-consent-link:hover{text-decoration:underline;text-underline-offset:4px}
.site-footer .site-consent-link:focus-visible{outline:2px solid var(--sc-accent,#73e9ff);outline-offset:4px}
@media (max-width:1023px){.site-footer .site-consent-link{min-width:44px;min-height:44px;padding-block:8px}}
@media (max-width:860px){
  .sc-consent-inner{flex-direction:column;align-items:stretch;gap:16px;padding:18px}
  .sc-consent-actions{display:grid;grid-template-columns:1fr 1fr}
  .sc-consent-actions .is-quiet{grid-column:1/-1}
}
@media (max-width:420px){.sc-consent{left:8px;right:8px;bottom:8px}.sc-consent-text{font-size:13.5px}}
@media (prefers-reduced-motion:no-preference){.sc-consent{animation:sc-consent-in .25s ease-out}@keyframes sc-consent-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}}
@media print{.sc-consent{display:none}}
