/* Cookie consent banner */
.ns-consent {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px 22px;
}

.ns-consent.is-visible { display: flex; }

.ns-consent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ns-consent-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg1);
}

.ns-consent-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg2);
  margin: 6px 0 0;
}

.ns-consent-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg3);
  flex: none;
  padding: 2px;
  line-height: 1;
}

.ns-consent-dismiss:hover { color: var(--fg1); }

.ns-consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Accept and Decline are deliberately identical in visual weight so the
   choice is not nudged. */
.ns-consent-btn {
  background: var(--surface);
  color: var(--fg1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  min-width: 104px;
  cursor: pointer;
  transition: background var(--dur-fast);
}

.ns-consent-btn:hover { background: var(--surface-2); }

.ns-consent :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
