/* Greg's content rhythm and Long Island shoreline hero. */
.hero {
  background: linear-gradient(90deg, rgba(3, 9, 17, .64), rgba(3, 9, 17, .42) 45%, rgba(3, 9, 17, .06) 80%),
    url('/images/greg-long-island-ocean-hero-day.webp') center 55% / cover no-repeat, #4b92bd;
}

.profile-page-hero {
  padding-block: clamp(38px, 4.3vw, 62px);
}

.profile-article {
  width: min(calc(100% - 48px), 850px);
  margin-inline: auto;
}

.profile-content {
  padding-block: clamp(50px, 5vw, 70px);
}

.profile-article > section {
  padding-block: 24px;
}

.profile-article > section:first-child {
  padding-top: 0;
}

.greg-article > p:first-child {
  margin-top: 0;
}

.greg-article > p {
  margin-bottom: 18px;
  line-height: 1.65;
}

.greg-article > h2 + p { margin-top: 14px; }

.profile-article .article-faq .service-faq {
  display: grid;
  gap: 0;
  margin-top: 22px;
  text-align: left;
}
.profile-article .article-faq details {
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, .2);
}
.profile-article .article-faq details:last-child { border-bottom: 1px solid rgba(0, 0, 0, .2); }
.profile-article .article-faq summary {
  cursor: pointer;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.4;
}
.profile-article .article-faq details p {
  margin: 10px 0 0;
  font-size: .95rem;
  line-height: 1.65;
}

.greg-article h2 {
  margin-top: 28px;
}

.greg-blog-grid {
  gap: clamp(18px, 2.2vw, 26px);
}

.greg-blog-card {
  min-height: 0;
  padding: clamp(24px, 2.6vw, 32px);
}

.greg-blog-card > p:not(.section-label):not(.greg-byline) {
  margin-bottom: 26px;
}

.greg-blog-card > a:last-child {
  width: min(100%, 270px);
  min-width: 0;
  margin: auto auto 0 !important;
  padding: 11px 18px !important;
  font-size: .76rem;
  font-weight: 900;
}
.greg-blog-card > p:not(.section-label):not(.greg-byline) { margin-bottom: 24px; }
.greg-blog-card h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.08; }
.greg-blog-card .greg-byline { margin-top: 12px !important; }

.greg-author {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding: 24px;
  border: 0;
  text-align: left;
}

.greg-author > div { min-width:0; }
.greg-author img { width: 104px; }
.greg-author h2 { margin: 3px 0 8px; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.1; text-align:left; }
.greg-author p { font-size: .95rem; line-height: 1.55; }
.greg-author .eyebrow, .greg-author .section-label { letter-spacing: .11em; font-size: .68rem; }

/* Keep the services action centered at portrait and landscape phone widths. */
.all-services-link {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 28px auto 0;
  text-align: center;
}
.all-services-link > .button {
  width: max-content;
  max-width: 100%;
  flex: 0 1 auto;
  margin-inline: auto;
  white-space: normal;
}
.greg-author a {
  display:inline-block;
  max-width:100%;
  margin:12px 0 0;
  padding:0 0 2px;
  border:0;
  border-bottom:0;
  background:transparent;
  color:#005a92;
  text-align:left;
  font-size:.7rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
}

.contact-grid a {
  min-height: 78px;
  padding: 12px 15px;
  border-width: 1px;
}

.contact-grid strong {
  margin-top: 3px;
  font-size: clamp(.95rem, 1.45vw, 1.1rem);
}

.profile-article aside { text-align:center; }
.article-actions { margin: 27px 0 32px; }
.profile-article aside .button,
.article-actions .button {
  width:min(100%,340px);
  max-width:100%;
  justify-content:center;
  margin:0 auto;
  text-align:center;
}

@media (max-width: 620px) {
  .container,
  .profile-article {
    width: calc(100% - 36px);
  }
  .hero {
    background-image: linear-gradient(rgba(3, 9, 17, .57), rgba(3, 9, 17, .42)),
      url('/images/greg-long-island-ocean-hero-day.webp');
    background-position: center, 56% center;
  }

  .hero-grid {
    padding-block: 44px 26px;
    gap: 30px;
  }

  .portrait-card figcaption {
    margin-top: 14px;
  }

  .profile-page-hero {
    padding-block: 36px;
  }

  .profile-content {
    padding-block: 48px 54px;
  }

  .profile-article > section {
    padding-block: 22px;
  }

  .greg-blog-card {
    padding: 25px 22px;
  }
  .greg-blog-card > a:last-child { margin: 0 auto !important; }
  .greg-author { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 22px 20px; text-align: center; }
  .greg-author img { width: 88px; margin-inline: auto; }
  .greg-author h2, .greg-author a { text-align: center; }
  .greg-author a { margin-top: 12px; }
  .article-actions { gap: 12px; }

  .contact-grid {
    width: min(100%, 420px);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid a {
    min-height: 72px;
  }
}

/* High-contrast labels on light sections. */
.section-light .section-label {
  color: #005a92;
}
