/* consent.css — floating cookie card + blurred backdrop. Built by /assets/js/cookies.js
   Palette matches the site: white, bright teal #20B2AA, silver #C0C8C8. */
.nk-layer,
.nk-layer * {
  box-sizing: border-box;
  font-family: "EBGaramond", Georgia, serif;
}
html.nk-open {
  overflow: hidden;
}

.nk-layer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.nk-layer > * {
  pointer-events: auto;
}

/* blurred backdrop */
.nk-veil {
  position: absolute;
  inset: 0;
  background: rgba(20, 60, 58, 0.28);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  opacity: 0;
  transition:
    opacity 0.5s ease,
    backdrop-filter 0.6s ease,
    -webkit-backdrop-filter 0.6s ease;
}
.nk-layer.is-in .nk-veil {
  opacity: 1;
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
  backdrop-filter: blur(9px) saturate(1.1);
}
.nk-layer.is-out .nk-veil {
  opacity: 0;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition-duration: 0.3s;
}

/* the floating card */
.nk-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 26px 28px 22px;
  background: #fff;
  color: #2a2a2a;
  border-radius: 22px;
  border: 2px solid #20b2aa;
  box-shadow:
    0 30px 70px rgba(10, 60, 58, 0.35),
    0 6px 18px rgba(10, 60, 58, 0.18);
  outline: none;
  opacity: 0;
  transform: translateY(34px) scale(0.93);
  transition:
    opacity 0.45s ease,
    transform 0.65s cubic-bezier(0.2, 0.9, 0.25, 1.18);
}
.nk-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #20b2aa, #c0c8c8 45%, #20b2aa);
}
.nk-layer.is-in .nk-box {
  opacity: 1;
  transform: none;
  animation: nkBob 7s ease-in-out 0.9s infinite;
}
.nk-layer.is-out .nk-box {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition-duration: 0.3s;
  animation: none;
}
@keyframes nkBob {
  0%,
  100% {
    box-shadow:
      0 30px 70px rgba(10, 60, 58, 0.35),
      0 6px 18px rgba(10, 60, 58, 0.18);
  }
  50% {
    box-shadow:
      0 42px 84px rgba(10, 60, 58, 0.28),
      0 12px 26px rgba(10, 60, 58, 0.14);
  }
}

.nk-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.nk-jar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  animation: nkSpin 18s linear infinite;
}
.nk-jar svg {
  display: block;
  width: 100%;
  height: 100%;
}
@keyframes nkSpin {
  to {
    transform: rotate(360deg);
  }
}
.nk-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #178a83;
  font-style: italic;
}
.nk-title {
  margin: 2px 0 0;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 600;
}
.nk-lead {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: #444;
}

.nk-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eef3f3;
  color: #2a2a2a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.nk-close:hover {
  background: #20b2aa;
  color: #fff;
}

/* choice cards */
.nk-picks {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.nk-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid #d6dede;
  border-radius: 14px;
  background: #f7fafa;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.nk-pick-core {
  cursor: default;
  background: #eef7f6;
  border-style: dashed;
  border-color: #9fd8d4;
}
.nk-pick input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.nk-pick-body {
  flex: 1;
  display: block;
}
.nk-pick-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.nk-pick-sub {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #5b6565;
}
.nk-tick {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid #b4c0c0;
  background: #fff;
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.nk-pick input:checked ~ .nk-tick {
  background: #20b2aa;
  border-color: #20b2aa;
}
.nk-pick input:checked ~ .nk-tick::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.nk-pick:has(input:checked) {
  border-color: #20b2aa;
  background: #effaf9;
}
.nk-pick:has(input:focus-visible) {
  outline: 3px solid #178a83;
  outline-offset: 2px;
}

/* buttons */
.nk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nk-btn {
  flex: 1 1 140px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #20b2aa;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}
.nk-btn:active {
  transform: scale(0.97);
}
.nk-main {
  background: #20b2aa;
  color: #fff;
}
.nk-main:hover {
  background: #178a83;
  border-color: #178a83;
}
.nk-alt {
  background: #fff;
  color: #178a83;
}
.nk-alt:hover {
  background: #eef7f6;
}
.nk-quiet {
  background: transparent;
  border-color: #c0c8c8;
  color: #4a5555;
}
.nk-quiet:hover {
  background: #eef3f3;
}
.nk-btn:focus-visible,
.nk-close:focus-visible,
.nk-foot a:focus-visible,
.nk-more summary:focus-visible {
  outline: 3px solid #178a83;
  outline-offset: 2px;
}

.nk-foot {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5b6565;
  text-align: center;
}
.nk-foot a {
  color: #178a83;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nk-more {
  margin-top: 10px;
  font-size: 13px;
}
.nk-more summary {
  cursor: pointer;
  text-align: center;
  color: #5b6565;
}
.nk-scroll {
  margin-top: 8px;
  overflow-x: auto;
}
.nk-more table {
  width: 100%;
  border-collapse: collapse;
}
.nk-more th,
.nk-more td {
  padding: 5px 6px;
  text-align: left;
  border-bottom: 1px solid #e3eaea;
  vertical-align: top;
}
.nk-more th {
  color: #178a83;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nk-more code {
  font-size: 12px;
  background: #eef3f3;
  padding: 1px 5px;
  border-radius: 4px;
}

/* legal pages: small card docked bottom-right, no blur, page stays readable */
.nk-layer.is-docked {
  inset: auto 16px 16px auto;
  padding: 0;
  width: min(440px, calc(100vw - 32px));
  align-items: flex-end;
  justify-content: flex-end;
}
.nk-layer.is-docked .nk-box {
  max-height: calc(100dvh - 32px);
}

@media (max-width: 520px) {
  .nk-box {
    padding: 22px 18px 18px;
    border-radius: 18px;
  }
  .nk-title {
    font-size: 22px;
  }
  .nk-actions .nk-btn {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nk-veil,
  .nk-box {
    transition: none;
  }
  .nk-layer.is-in .nk-box,
  .nk-jar {
    animation: none;
  }
  .nk-box {
    transform: none;
  }
}
