/* CyberLab analytics consent banner. Plain same-origin CSS so it works under the blog CSP.
 * Dark by default; light when <html> has no .dark class (same switch as the rest of the site). */
.cl-ac-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #1b2333;
  border-radius: 0.75rem;
  background: #0d111a;
  color: #e2e8f0;
  font: 400 0.8125rem/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.cl-ac-text { margin: 0; flex: 1 1 18rem; }
.cl-ac-link { color: #00f0ff; text-decoration: underline; white-space: nowrap; }
.cl-ac-actions { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.cl-ac-btn {
  appearance: none;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border: 1px solid #00f0ff;
  border-radius: 0.5rem;
  background: transparent;
  color: #00f0ff;
  font: 700 0.75rem/1 "Fira Code", ui-monospace, Consolas, monospace;
  letter-spacing: 0.02em;
}
.cl-ac-btn:hover { background: #00f0ff; color: #06080d; }
.cl-ac-btn:focus-visible, .cl-ac-link:focus-visible { outline: 2px solid #00f0ff; outline-offset: 2px; }
html:not(.dark) .cl-ac-banner {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}
html:not(.dark) .cl-ac-link { color: #0e7490; }
html:not(.dark) .cl-ac-btn { color: #0e7490; border-color: #0e7490; }
html:not(.dark) .cl-ac-btn:hover { background: #0e7490; color: #ffffff; }
html:not(.dark) .cl-ac-btn:focus-visible, html:not(.dark) .cl-ac-link:focus-visible { outline-color: #0e7490; }
/* While the banner is open, leave room at the very bottom of the page so the footer can be scrolled clear of it.
   Only the end of the document grows; nothing above it moves. */
html.cl-ac-open body { padding-bottom: 6.5rem; }
@media (max-width: 480px) {
  html.cl-ac-open body { padding-bottom: 10rem; }
  .cl-ac-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .cl-ac-actions { width: 100%; }
  .cl-ac-btn { flex: 1 1 0; padding: 0.7rem 0.5rem; }
}
