/* =========================================================
   Godparent Requirements Toggle
   ========================================================= */

.gp-requirements-toggle {
  position: relative;
  margin: 0 0 1rem;
}

.gp-requirements-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.gp-requirements-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #f7f9fc;
  color: #253044;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gp-requirements-label:hover {
  border-color: var(--ios-primary, #2463a9);
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(31, 41, 55, 0.08);
}

.gp-requirements-checkbox:focus-visible
  + .gp-requirements-label {
  outline: 3px solid rgba(36, 99, 169, 0.25);
  outline-offset: 2px;
}

.gp-requirements-checkbox:checked
  + .gp-requirements-label {
  border-color: var(--ios-primary, #2463a9);
  background: rgba(36, 99, 169, 0.07);
}

.gp-checkbox-icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #98a2b3;
  border-radius: 0.35rem;
  background: #ffffff;
  box-sizing: border-box;
}

.gp-requirements-checkbox:checked
  + .gp-requirements-label
  .gp-checkbox-icon {
  border-color: var(--ios-primary, #2463a9);
  background: var(--ios-primary, #2463a9);
}

.gp-requirements-checkbox:checked
  + .gp-requirements-label
  .gp-checkbox-icon::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.08rem;
  width: 0.3rem;
  height: 0.65rem;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.gp-requirements-label-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.gp-requirements-label-text strong {
  font-size: 1rem;
  line-height: 1.35;
}

.gp-requirements-label-text small {
  color: #667085;
  font-size: 0.85rem;
  line-height: 1.4;
}

.gp-requirements-arrow {
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.gp-requirements-checkbox:checked
  + .gp-requirements-label
  .gp-requirements-arrow {
  transform: rotate(180deg);
}

/* =========================================================
   Godparent Requirements Panel
   ========================================================= */

.gp-requirements-panel {
  display: none;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: clamp(0.5rem, 2vw, 1.25rem);
  border-radius: 10px;
  background-color: #eef1f5;
  box-sizing: border-box;
}

.gp-requirements-panel.gp-panel-open {
  display: block;
  animation: gpDocumentOpen 0.25s ease;
}


/* =========================================================
   Printable Document Appearance
   ========================================================= */

.gp-requirements-document {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background-color: #ffffff;
  color: #222222;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;

  /* font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif; */
}


/* Main document title */

.gp-document-title {
  margin: 0 0 1.1rem;
  color: #222222;
  /* font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif; */
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}


/* Canon Law heading */

.gp-document-section-title {
  margin: 1.3rem 0 0.8rem;
  color: #222222;
  /* font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif; */
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}


/* Main paragraphs */

.gp-document-paragraph {
  margin: 0 0 1rem;
  color: #222222;
  font-size: 1rem;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


/* Primary requirements list */

.gp-document-list {
  margin: 1rem 0 0;
  padding-left: 2rem;
  color: #222222;
  font-size: 1rem;
  line-height: 1.45;
}

.gp-document-list > li {
  margin-bottom: 0.45rem;
  padding-left: 0.35rem;
}

.gp-document-list > li::marker {
  color: #222222;
  font-size: 0.9em;
}


/* Indented secondary list */

.gp-document-sublist {
  margin: 0.55rem 0 0.25rem;
  padding-left: 2rem;
  font-style: italic;
}

.gp-document-sublist > li {
  margin-bottom: 0.5rem;
  padding-left: 0.35rem;
}

.gp-document-sublist > li::marker {
  color: #222222;
}


/* Opening animation */

@keyframes gpDocumentOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .gp-requirements-document {
    padding: 1.25rem 1rem;
    border-radius: 8px;
  }

  .gp-document-title {
    margin-bottom: 1rem;
    font-size: 1.45rem;
  }

  .gp-document-section-title {
    font-size: 1.3rem;
  }

  .gp-document-paragraph,
  .gp-document-list {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .gp-document-paragraph {
    text-align: left;
    hyphens: none;
  }

  .gp-document-list {
    padding-left: 1.4rem;
  }

  .gp-document-sublist {
    padding-left: 1.25rem;
  }
}

@media (max-width: 420px) {
  .gp-requirements-document {
    padding: 1rem 0.85rem;
  }

  .gp-document-title {
    font-size: 1.3rem;
  }

  .gp-document-paragraph,
  .gp-document-list {
    font-size: 0.92rem;
  }
}