/* Shared consent surface. Scoped to avoid homepage and Next resets.
 * Instrument Serif is an existing self-hosted font; no remote font request. */
@font-face {
  font-family: "Eden Consent Serif";
  src: url("/assets/eden/fonts/google/instrumentserif-jizBRFtNs2ka5fXjeivQ4LroWlx-6zsTjmbI.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
}
#eden-consent {
  box-sizing: border-box;
  position: fixed;
  left: max(24px, env(safe-area-inset-left, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 2147483646;
  width: min(420px, calc(100% - max(24px, env(safe-area-inset-left, 0px)) - max(24px, env(safe-area-inset-right, 0px))));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 24px;
  border: 1px solid #d9dfd7;
  border-radius: 24px;
  background: #faf9f4;
  color: #132a2b;
  box-shadow: 0 16px 64px #072a2e26, 0 2px 8px #072a2e0d;
  font: 400 15px/1.5 "Instrument Sans", system-ui, sans-serif;
  text-align: left;
  isolation: isolate;
}
#eden-consent[hidden] { display: none !important; }
#eden-consent *, #eden-consent-settings { box-sizing: border-box; }
#eden-consent h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: #132a2b;
  font: 400 30px/1.06 "Teodor", "Eden Consent Serif", Georgia, serif;
  letter-spacing: -.025em;
  text-transform: none;
}
#eden-consent p { grid-column: 1 / -1; margin: 0; color: #425b59; font: inherit; }
#eden-consent .eden-consent-details { grid-column: 1 / -1; margin: 0; }
#eden-consent summary {
  width: fit-content;
  min-height: 44px;
  padding: 10px 2px;
  color: #175f64;
  cursor: pointer;
  font: 600 14px/24px "Instrument Sans", system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#eden-consent details p { padding: 2px 0 8px; font-size: 14px; }
#eden-consent a { display: inline-block; min-height: 44px; padding: 10px 2px; color: #175f64; text-decoration: underline; text-underline-offset: 3px; }
#eden-consent button.eden-consent-choice {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 11px 10px;
  border: 1px solid #146b72;
  border-radius: 12px;
  background: #146b72;
  color: #fff;
  font: 600 14px/1.35 "Instrument Sans", system-ui, sans-serif;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background-color .15s ease;
}
#eden-consent button.eden-consent-choice:hover { background: #0e5157; border-color: #0e5157; transform: none; }
#eden-consent :is(button, a, summary):focus-visible, #eden-consent-settings:focus-visible {
  outline: 3px solid #146b72; outline-offset: 4px;
}
#eden-consent-settings {
  appearance: none;
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 2147483645;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  min-width: 48px; min-height: 48px;
  margin: 0; padding: 0;
  border: 1px solid #a9bbb5; border-radius: 50%;
  background: #faf9f4; color: #175f64;
  font: 400 24px/1 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 18px #072a2e14;
  transform: none;
}
#eden-consent-settings .eden-consent-cookie {
  display: block;
  width: 24px; height: 24px;
  flex: 0 0 24px;
  line-height: 24px;
  pointer-events: none;
}
@media (max-width: 600px) {
  #eden-consent {
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: calc(100% - max(12px, env(safe-area-inset-left, 0px)) - max(12px, env(safe-area-inset-right, 0px)));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px; gap: 10px; border-radius: 22px;
  }
  #eden-consent h2 { font-size: 28px; }
  #eden-consent button.eden-consent-choice { padding-inline: 6px; }
  #eden-consent-settings { right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  #eden-consent button.eden-consent-choice { transition: none; }
}
@media (forced-colors: active) {
  #eden-consent, #eden-consent button.eden-consent-choice, #eden-consent-settings { border: 1px solid ButtonText; }
}
