/* Site-wide section rhythm: shared content starts close to its heading and follows one spacing scale. */
main .jd-section-head,
main .section-heading,
main .section-head,
main .sectionhead,
main .apply-section-head,
main .partner-heading,
main .faq-group-head,
main .faq-head {
  margin-bottom: clamp(22px, 2.4vw, 34px) !important;
}

/* Turn the one-column Bahamas submission checklist into a compact, aligned guidance panel. */
main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) {
  display: block !important;
  margin-top: 0 !important;
}
main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) > .jd-copy {
  display: grid !important;
  grid-template-columns: minmax(190px, .62fr) minmax(0, 1.38fr) !important;
  align-items: start !important;
  gap: 18px clamp(24px, 4vw, 56px) !important;
  padding: clamp(24px, 3vw, 38px) !important;
  background: #fff !important;
  border: 1px solid #d8d6ce !important;
  box-shadow: 0 14px 36px rgba(7, 26, 45, .07) !important;
}
main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) > .jd-copy > h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  color: #071a2f;
  font: 400 clamp(24px, 2.5vw, 34px)/1.12 Georgia, 'Times New Roman', serif;
}
main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) > .jd-copy > ul {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0 !important;
  padding-left: 1.15em !important;
  color: #35465b;
  font-size: 15px;
  line-height: 1.55;
}
main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) > .jd-copy > p {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding-top: 16px;
  border-top: 1px solid #e7e4da;
  color: #596a7f;
  font-size: 14px;
  line-height: 1.65;
}

/* Reflow the general seaman-book FAQ into a full-width header and balanced two-column answers. */
main .faq-grid:has(> .faq-list) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(22px, 2.8vw, 36px) !important;
  align-items: start !important;
}
main .faq-grid:has(> .faq-list) > :first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 8px;
}
main .faq-grid:has(> .faq-list) > :first-child > .eyebrow,
main .faq-grid:has(> .faq-list) > :first-child > .section-title {
  grid-column: 1;
  margin-bottom: 0;
}
main .faq-grid:has(> .faq-list) > :first-child > .intro-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 !important;
  max-width: 58ch;
}
main .faq-grid:has(> .faq-list) > .faq-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 20px !important;
  align-items: start;
}
main .faq-grid:has(> .faq-list) > .faq-list > details {
  align-self: start;
  min-width: 0;
}

/* Keep editorial photo cards flush, top-aligned and uncropped instead of vertically floating. */
main .jd-role-grid:has(> figure.clsa-guide-photo) {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
}
main .jd-role-grid > figure.clsa-guide-photo {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr) !important;
  align-items: start !important;
  gap: clamp(22px, 3vw, 42px) !important;
  padding: clamp(22px, 3vw, 38px) !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid #d8d6ce;
  box-shadow: 0 14px 36px rgba(7, 26, 45, .07);
}
main .jd-role-grid > figure.clsa-guide-photo > img {
  display: block;
  align-self: start;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
}
main .jd-role-grid > figure.clsa-guide-photo > figcaption {
  align-self: start !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
main .jd-role-grid > figure.clsa-guide-photo > figcaption h3 {
  margin: 8px 0 14px;
  color: #071a2f;
  font: 400 clamp(25px, 2.7vw, 38px)/1.12 Georgia, 'Times New Roman', serif;
}
main .jd-role-grid > figure.clsa-guide-photo > figcaption p {
  margin: 0 0 14px;
  max-width: 58ch;
  line-height: 1.65;
}
main .jd-role-grid > figure.clsa-guide-photo > figcaption ul {
  margin: 12px 0 0;
  padding-left: 1.1em;
  line-height: 1.6;
}

@media (max-width: 760px) {
  main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) > .jd-copy {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 22px !important;
  }
  main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) > .jd-copy > h3,
  main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) > .jd-copy > ul,
  main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) > .jd-copy > p {
    grid-column: 1;
  }
  main .jd-feature-grid.clsa-photo-reflow:has(> .jd-copy > h3 + ul) > .jd-copy > ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  main .faq-grid:has(> .faq-list) > :first-child {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  main .faq-grid:has(> .faq-list) > :first-child > .intro-copy {
    grid-column: 1;
    grid-row: auto;
  }
  main .faq-grid:has(> .faq-list) > .faq-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  main .jd-role-grid > figure.clsa-guide-photo {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 18px !important;
  }
}

/* Let instructional photo cards use the full content grid instead of floating at a narrow fixed width. */
main .jd-role-grid > figure.clsa-guide-photo {
  width: 100% !important;
  max-width: none !important;
}

/* Four-step process cards were compressed into one row; use two readable, balanced rows. */
main .jd-steps {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
main .jd-steps > .jd-step {
  min-width: 0;
  height: 100%;
}
main .jd-steps:has(> .jd-step:nth-child(5)) > .jd-step:last-child {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  main .jd-steps {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  main .jd-steps:has(> .jd-step:nth-child(5)) > .jd-step:last-child {
    grid-column: auto;
  }
}
