/* Keep the type over a frosted surface while reflecting the page at the rim. */
:root {
  --popup-tint: rgb(21 21 21 / .88);
  --popup-sheen: linear-gradient(128deg, #ffffff1f, transparent 34%, #ffffff0c);
  --popup-rim: rgb(190 190 190 / .49);
  --popup-edge: #ffffff47;
}
:root[data-theme=light] {
  --popup-tint: rgb(253 253 253 / .82);
  --popup-sheen: linear-gradient(128deg, #ffffffe0, transparent 37%, #ffffff5e);
  --popup-rim: rgb(83 83 83 / .36);
  --popup-edge: #fffffff0;
}
dialog:is(.contact-popup,.publication-calendar,.member-popup) {
  background: var(--popup-sheen), var(--popup-tint);
  border: 1px solid var(--popup-rim); border-radius: 14px;
  -webkit-backdrop-filter: blur(12px) saturate(112%);
  backdrop-filter: blur(12px) saturate(112%);
  box-shadow: inset 1px 1px 1px var(--popup-edge), inset -1px -1px 2px var(--popup-edge), 0 12px 42px -12px #0005;
}
dialog:is(.contact-popup,.member-popup)::backdrop {background:rgb(0 0 0 / .48);backdrop-filter:none;}
:root[data-theme=light] dialog:is(.contact-popup,.member-popup)::backdrop {background:rgb(0 0 0 / .19);}
dialog.contact-popup .contact-widget :is(input,textarea) {background-color:color-mix(in srgb,var(--journey-paper) 74%,transparent);}
@media(prefers-reduced-transparency:reduce) {
  dialog:is(.contact-popup,.publication-calendar,.member-popup) {background:var(--journey-paper,var(--panel));backdrop-filter:none;-webkit-backdrop-filter:none;}
}
