/* === Global Box-Sizing & Overflow Fix === */
*, *::before, *::after {
  box-sizing: border-box;
}
/* Alwaysreserve scrollbar space to stop horizontal shifts */
html{
  overflow-y: scroll;
}
body {
  margin: 0;
  padding: 2rem 0;           /* added vertical padding on all pages */
  font-family: Arial, sans-serif;
  background: #386A83;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === Header & Logo (all pages) === */
header {
  text-align: center;
  padding: 1rem 0;
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
}

img.logo {
  width: 120px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

/* === Navigation === */
nav a {
  margin: 0 0.75rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}
nav a.active {
  border-bottom: 2px solid #4EC3E0;
}

/* === Main Content (centered by default) === */
main {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  padding: 0 1rem;
}

/* Homepage splash container */
body.homepage main.splash {
  width: 80%;
  max-width: 600px;
  margin: 1rem auto;
  text-align: center;
}

/* Sub-page container, left-justified copy */
body:not(.homepage) main {
  width: 80%;
  max-width: 600px;
  margin: 1rem auto 2rem;
  text-align: left;
}
body:not(.homepage) main h1 {
  text-align: center;
}
main p.highlight {
  text-align: center;
}

/* === Buttons (global) === */
a.button {
  display: inline-block;
  margin: 2rem auto;
  padding: 0.75rem 1.5rem;
  background: #4EC3E0;
  color: #1F2D2D;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease;
}
a.button:hover {
  background: #3bb5d3;
}

/* === Footer (all pages) === */
footer {
  text-align: center;
  margin-top: auto;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #cccccc;
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
}
/* Footer policy links */
footer .footer-nav {
  margin-bottom: 0.5rem;
}
footer .footer-nav a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 0.5rem;
}
footer .footer-nav span {
  color: #777777;
}

/* === Homepage root padding (no horizontal) === */
body.homepage {
  justify-content: flex-start;
  align-items: center;
  /* padding removed—now inherited from body */
}
/* ===== Checklist Download CTA ===== */
.download-cta {
  text-align: center;
  margin-bottom: 1.5rem;
}
.download-cta .button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #4EC3E0;
  color: #1F2D2D;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.download-cta .button:hover {
  background: #3bb5d3;
}

/* ===== Print Styles ===== */
@media print {
  header,
  footer,
  .download-cta {
    display: none !important;
  }
  body {
    background: none !important;
    color: #000 !important;
  }
  main {
    padding: 0 !important;
  }
}
/* ===== Checklist Page Overrides ===== */
body.checklist-page main {
  /* make sure the content area is left-aligned */
  text-align: left;
  /* reset any unexpected padding */
  padding-left: 1rem;
  padding-right: 1rem;
}

body.checklist-page main h1,
body.checklist-page main ul {
  /* zero out any margins so title & list items share the same left edge */
  margin-left: 0 !important;
  padding-left: 0 !important;
}

body.checklist-page main label {
  /* ensure your label block doesn’t get nudged */
  margin-left: 0 !important;
}

body.checklist-page input[type="checkbox"] {
  /* align the box inline with the label text */
  vertical-align: middle;
  margin-left: 0 !important;
}
