/* Cookie consent's banner and Cookie Settings manager (2026-11-07), identical on the docs and
   landing sites. A site sets the --ncc-* colours to its palette; these defaults are the NC dark
   tokens. */
.ncc-banner,
.ncc-scrim {
  --ncc-bg: var(--ncc-site-bg, #1f1d19);
  --ncc-fg: var(--ncc-site-fg, #f2efe9);
  --ncc-muted: var(--ncc-site-muted, #b8b2a7);
  --ncc-border: var(--ncc-site-border, #4a4640);
  --ncc-accent: var(--ncc-site-accent, #6ea8fe);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ncc-fg);
}
.ncc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--ncc-bg);
  border: 1px solid var(--ncc-border);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
}
.ncc-banner-text {
  flex: 1 1 420px;
  min-width: 0;
}
.ncc-banner-text p,
.ncc-dialog p {
  margin: 0 0 10px;
  color: var(--ncc-muted);
}
.ncc-banner-text p {
  margin: 0;
}
.ncc-banner a,
.ncc-dialog a {
  color: var(--ncc-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ncc-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ncc-fg);
}
.ncc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.ncc-btn {
  font: inherit;
  font-weight: 500;
  color: var(--ncc-fg);
  background: transparent;
  border: 1px solid var(--ncc-border);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
}
.ncc-btn:hover,
.ncc-btn:focus-visible {
  border-color: var(--ncc-accent);
}
/* the banner's two answers carry equal weight: the same dress and the same width */
.ncc-answer {
  min-width: 150px;
}
.ncc-ghost {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ncc-primary {
  background: var(--ncc-fg);
  border-color: var(--ncc-fg);
  color: var(--ncc-bg);
}
.ncc-scrim {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ncc-dialog {
  background: var(--ncc-bg);
  border: 1px solid var(--ncc-border);
  border-radius: 10px;
  padding: 18px 22px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}
.ncc-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ncc-close {
  font: inherit;
  font-size: 20px;
  line-height: 1;
  color: var(--ncc-muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.ncc-category {
  border: 1px solid var(--ncc-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.ncc-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.ncc-category-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ncc-fg);
}
.ncc-always {
  font-size: 12px;
  color: var(--ncc-muted);
}
.ncc-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ncc-muted);
}
.ncc-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ncc-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
}
.ncc-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--ncc-accent);
}
.ncc-dialog code {
  font-size: 12px;
  color: var(--ncc-fg);
}
.ncc-dialog-actions {
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .ncc-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .ncc-actions {
    width: 100%;
  }
  .ncc-answer {
    flex: 1 1 0;
    min-width: 0;
  }
  .ncc-scrim {
    align-items: flex-end;
    padding: 8px;
  }
}
/* the docs site's palette (stylesheets/nc.css maps the NC tokens onto both schemes). On the
   element that carries the scheme (Material's <body data-md-color-scheme>), where the tokens are
   defined: declared on :root these resolved to nothing, and the banner stayed light in the dark
   scheme. The banner and the manager are children of <body>, so they inherit these values. */
[data-md-color-scheme] {
  --ncc-site-bg: var(--surface-primary, var(--md-default-bg-color));
  --ncc-site-fg: var(--text-primary, var(--md-default-fg-color));
  --ncc-site-muted: var(--text-secondary, var(--md-default-fg-color--light));
  --ncc-site-border: var(--border-strong, var(--md-default-fg-color--lightest));
  --ncc-site-accent: var(--accent-blue, var(--md-accent-fg-color));
}
