/* Velin website preview — iframe layout and hidden desktop-only UI */

html {
  overflow-x: clip;
}

html, body {
  height: 100%;
  overflow-y: auto;
}

main[hidden] {
  display: none !important;
}

main {
  max-width: 50rem;
  padding: 1.25rem 1.25rem 2rem;
}

#nav-page {
  min-height: 100%;
  padding-top: 3rem;
}

.month-header {
  margin: 1rem 0 1.75rem;
}

.entry-header {
  margin-inline: calc(50% - 50vw);
  padding: 1rem calc(50vw - 50% + 1.25rem);
  margin-bottom: 3rem;
}

.entry-header::after {
  left: 0;
  right: 0;
}

#editor {
  padding-bottom: 40vh;
}

/* Hide auth, profiles, journals */
#auth-page,
#profiles-page,
#journals-page,
#nav-switch-journal,
#lang-footer,
.preview-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  main {
    padding: 1rem 0.75rem 1.5rem;
  }

  .month-header h1 {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
  }

  .week-row .day {
    min-width: 2rem;
    font-size: 0.85rem;
  }
}
