/* Calendar page: the calendar fills the screen in an iframe, with a back button on top. */

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b1a2e;
  touch-action: manipulation;
}

iframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  border: 0;
  display: block;
}

.exit {
  position: fixed;
  z-index: 10;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: calc(12px + env(safe-area-inset-left, 0px));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 26, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f6f2ea;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.exit:hover {
  background: rgba(29, 65, 115, 0.95);
}

.exit:active {
  transform: scale(0.92);
}

.exit:focus-visible {
  outline: 3px solid #e8b84a;
  outline-offset: 2px;
}

.exit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.noscript {
  position: relative;
  z-index: 5;
  margin: 5rem 1.5rem;
  color: #f6f2ea;
  font-family: system-ui, sans-serif;
  text-align: center;
}

.noscript a {
  color: #e8b84a;
}

@media (prefers-reduced-motion: reduce) {
  .exit {
    transition: none;
  }
}
