/* Privacy notice (assets/js/consent.js) for the /demos pages, which do not load style.css.
   Same look as the main-site notice (style.css "Privacy notice" block), but standalone:
   every property is set here so each demo's own resets and element styles cannot change it. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

.consent {
  --c-accent: #ffc247; --c-bg: #050505; --c-white: #ffffff; --c-muted: rgba(255, 255, 255, .6);
  --c-ease: cubic-bezier(.44, 0, .56, 1); --c-ease-out: cubic-bezier(.16, 1, .3, 1);
  --c-sans: "Geist", ui-sans-serif, system-ui, sans-serif; --c-mono: "Geist Mono", ui-monospace, monospace;
  /* Above every demo layer (Halden page cover 95, Palmview modal 100) */
  position: fixed; z-index: 1000; left: calc(20px + env(safe-area-inset-left)); bottom: calc(20px + env(safe-area-inset-bottom));
  box-sizing: border-box; width: min(400px, calc(100vw - 40px)); margin: 0; padding: 20px; border-radius: 20px;
  background: rgba(16, 16, 16, .85); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); outline: 0; text-align: left; color: var(--c-white);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px);
  transition: opacity .35s var(--c-ease), transform .5s var(--c-ease-out), visibility 0s .5s;
}
.consent.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .35s var(--c-ease), transform .5s var(--c-ease-out), visibility 0s; }
.consent .consent__title { margin: 0 0 10px; padding: 0; max-width: none; font-family: var(--c-mono); font-size: 10px; font-weight: 500; line-height: 1.3; letter-spacing: .5px; text-transform: uppercase; color: var(--c-white); }
.consent .consent__text { margin: 0; padding: 0; max-width: none; font-family: var(--c-sans); font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; text-transform: none; color: var(--c-muted); }
.consent .consent__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 0; padding: 0; }
.consent .consent__link { font-family: var(--c-sans); font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--c-white); background: none; text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; transition: color .2s var(--c-ease); }
.consent .consent__btns { display: flex; gap: 8px; margin: 0; padding: 0; }
/* Decline and Accept share size, weight and fill style so neither choice is favoured */
.consent .consent__btn { box-sizing: border-box; height: 32px; margin: 0; padding: 0 14px; border-radius: 999px; font-family: var(--c-sans); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: -.01em; text-transform: none; color: var(--c-bg); background: var(--c-white); border: 1px solid var(--c-white); cursor: pointer; transition: background .2s var(--c-ease), border-color .2s var(--c-ease), transform .2s var(--c-ease-out); }
.consent .consent__btn--yes { background: var(--c-accent); border-color: var(--c-accent); }
.consent .consent__btn:active { transform: scale(.96); }
@media (hover: hover) {
  .consent .consent__link:hover { color: var(--c-accent); }
  .consent .consent__btn:hover { background: #e4e4e4; border-color: #e4e4e4; }
  .consent .consent__btn--yes:hover { background: #ffd070; border-color: #ffd070; }
}
.consent .consent__btn:focus-visible, .consent .consent__link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (max-width: 809px) {
  .consent { left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
}
