/* Small, safe overrides (no external fonts). */
:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Cookie consent UI */
.nec-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 14px 14px;
}

.nec-cookie-banner__row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nec-cookie-banner__text {
  font-size: 14px;
  line-height: 1.4;
  color: #111;
  margin: 0;
}

.nec-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nec-cookie-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
}

.nec-cookie-btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.nec-cookie-btn:focus {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

.nec-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.nec-cookie-modal[aria-hidden="false"] {
  display: block;
}

.nec-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.nec-cookie-modal__dialog {
  position: relative;
  max-width: 720px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.nec-cookie-modal__title {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 700;
}

.nec-cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nec-cookie-toggle:first-of-type {
  border-top: none;
}

.nec-cookie-toggle__meta {
  display: grid;
  gap: 2px;
}

.nec-cookie-toggle__name {
  font-weight: 600;
  font-size: 14px;
}

.nec-cookie-toggle__desc {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.72);
}

.nec-cookie-switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #e9e9e9;
  position: relative;
  flex: 0 0 auto;
}

.nec-cookie-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.nec-cookie-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.nec-cookie-switch input:checked + .nec-cookie-switch__knob {
  transform: translateX(20px);
}

.nec-cookie-switch--on {
  background: #111;
  border-color: #111;
}

.nec-cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}
