/* ============================================================
   LAYOUT.CSS — Grid, Spacing, Positioning
   Passberg.org Research Domain System
   ============================================================ */

/* --- Content Container --- */

.container {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Header container is wider to accommodate logo + nav */
header .container {
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* --- Standard Page Main --- */

main {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 7rem;
}

/* --- Landing: centered layout below header --- */

main.centered {
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

main.centered .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

/* --- Paper View --- */

main.paper {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
}

/* --- Page Section Header (label above content) --- */

.page-header {
  margin-bottom: 3.5rem;
}

/* --- Volume List (Research page) --- */

.volume-list {
  display: flex;
  flex-direction: column;
}

/* --- Timeline List --- */

.timeline-list {
  display: flex;
  flex-direction: column;
}

/* --- Responsive Scaling --- */

@media (max-width: 640px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  main {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
  }

  main.paper {
    padding-top: calc(var(--header-height) + 2.5rem);
  }
}