@charset "utf-8";
/* ====== MAIN CONTENT STYLES ====== */
.main-content {
  background: white;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.main-content h1 {
  font-size: 3em;
  color: var(--navy);
  margin-bottom: 20px;
  text-align: center;
}

.main-content h2 {
  font-size: 2em;
  color: var(--navy);
  margin-bottom: 15px;
}

.main-content h3 {
  font-size: 1.5em;
  color: var(--navy);
  margin-bottom: 10px;
}

.main-content p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

/* ====== CONTENT BLOCKS ====== */
.main-blurb {
  max-width: 1400px;
  margin: 0 auto 30px;
  padding: 10px 30px 20px;
  background: var(--gold);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.main-blurb p {
  color: white;
  font-size: 1.25rem;
}

.content-block {
  max-width: 800px;
  margin: 0 auto 30px;
  padding-bottom: 20px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.spaced-break {
  display: block;
  margin: 0.75rem 1rem;
  content: "";
  height: auto;
  font-size: 0.85rem;
  font-style: italic;
}

/* ====== PROGRESS BARS ====== */
/* SNACKBAR */
.global-progress-snackbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 40px);
  max-width: 420px;
  background: rgba(31,31,34,0.84);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  z-index: 1100;
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* visible state */
.global-progress-snackbar.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* progress bar fills along the bottom edge (behind text) */
.global-progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 6px;
  width: 0%;
  background: linear-gradient(to right, #4caf50, #2a7);
  border-radius: 6px 6px 0 0;
  z-index: 0;
}

/* text and close button on top */
#global-progress-text {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#close-global-snackbar {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Reopen button fixed bottom-right */
#reopen-global-snackbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* hidden initially */
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 1101;
  cursor: pointer;
}
#reopen-global-snackbar:hover { background: #2a7; }


.section-progress-container {
  background-color: #eee;
  height: 8px;
  margin: 10px 0;
  overflow: hidden;
}

.section-progress-container .progress-bar {
  height: 8px;
  background-color: #2196f3;
  width: 0%;
}

/* Generic progress bar */
.progress-container {
  background-color: #eee;
  height: 20px;
  border-radius: 10px;
  margin: 1rem 0;
  overflow: hidden;
  width: 100%;
}

.progress-bar {
  background-color: #4caf50;
  height: 100%;
  width: 0%;
  transition: width 0.4s ease-in-out;
}

/* ====== CHECKLIST STYLES ====== */
.checklist-section ul {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
  margin-top: 0.5rem;
}

.checklist-section.collapsed ul {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.toggle-collapse {
  background: var(--gold);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  user-select: none;
  padding: 0 10px;
  display: inherit;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  gap: 0.5rem;
  margin: 0.5rem 0;
  cursor: pointer;
  flex-wrap: nowrap;
}

.checklist-heading {
  display: flex;
  align-items: center;
}

.checklist-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.checklist-text {
  display: block;
}

ul {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0;
  max-width: 1200px;
}

li label {
  padding: 0.25rem 0;
  max-width: 1200px;
}

.checklist ul,
.checklist li {
  width: 100%;
}

.checklist li {
  display: list-item;
}

/* Info lists */
.info-list {
  background: var(--navy);
  padding: 1.75rem 2.75rem;
  margin: 1.5rem;
  border-radius: 8px;
  color: var(--gray);
  list-style: disc inside;
  line-height: 1.75;
}

.info-list-item {
  list-style: disc;
}

/* Hide native checkbox */
.checklist-section input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  cursor: pointer;
}

/* Visible checkmark box */
.checklist-section .checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  margin-right: 0.5rem;
  background-color: white;
  color: white; /* checkmark color */
  font-size: 1rem;
  border: 2px solid #555;
  border-radius: 4px; /* rectangle for subtasks by default */
  width: 1.25rem;
  height: 1.25rem;
}

/* Heading checkmark circle */
.checklist-heading .checkmark {
  width: 2rem;
  height: 2rem;
  border: 3px solid #333;
  border-radius: 50%;
}

/* Checked state — green background */
.checklist-section input[type="checkbox"]:checked + .checkmark {
  background-color: #2a7;
  border-color: #2a7;
}

/* White checkmark */
.checklist-section input[type="checkbox"]:checked + .checkmark::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem; /* scale if needed */
  color: white;
}


/* ====== MEDIA QUERIES ====== */
/* Mobile */
@media (max-width: 767px) {
  .main-content {
    padding: 40px 15px;
  }

  .main-content h1 {
    font-size: 2.2em;
  }

  .main-content h2 {
    font-size: 1.6em;
  }

  .main-content h3 {
    font-size: 1.3em;
  }

  .content-block {
    margin-bottom: 25px;
    padding-bottom: 15px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-content {
    padding: 50px 20px;
  }

  .main-content h1 {
    font-size: 2.6em;
  }

  .main-content h2 {
    font-size: 1.8em;
  }
}

@media (min-width: 769px) {
  .checklist-heading h2 {
    font-size: 1.4rem;
  }

  li label {
    padding: 0.4rem 0;
  }
	
  .global-progress-container {
  position: fixed;
  top: 133px; 

  }
}

/* Desktop */
@media (min-width: 1024px) {
  .checklist {
    max-width: 1200px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .main-content {
    padding: 80px 20px;
  }

  .content-block {
    max-width: 900px;
  }
}

/* ====== PRINT ====== */
@media print {
  .main-content {
    padding: 20px 0;
  }

}
