/* Shared editorial patterns. Keep layout policy here, not in per-page overrides. */
#main :is(h1, h2, h3).font-display { font-weight: 500; }
#main:not(.home-main) :is(h1, h2, h3).font-display { color: var(--display-accent); }
#main :is(h1, h2, h3) em { font-weight: 400; }
.home-personal-services .section-title { color: var(--color-personal); }
.home-main .hero-panel:is(:hover, :focus-within) .hero-title { color: var(--panel-active-ink, var(--panel-accent)); }

.theme-personal .dropdown-panel a:is(:hover, :focus-visible),
.contact-options label.theme-personal:is(:hover, :focus-within) { color: var(--surface-personal-solid-hover); }
@media (min-width: 900px) {
  #main .section-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--column-gap); }
}

/* Closing invitations: equal columns, heading and copy share a top edge. */
#main .next-step, .home-main .home-conversation-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--column-gap);
  row-gap: var(--intro-gap);
  align-items: start;
}
#main .next-step > *, .home-main .home-conversation-layout > * { min-width: 0; }
#main .next-step > div:first-child { display: contents; }
#main .next-step > div:first-child > .eyebrow,
.home-main .conversation-eyebrow { grid-column: 1; grid-row: 1; margin: 0; }
#main .next-step > div:first-child > h2,
.home-main #conversation-title { grid-column: 1; grid-row: 2; margin: 0; line-height: 1.18; align-self: start; }
#main .next-step > :is(h2,h3) { grid-column: 1; grid-row: 1; margin: 0; }
#main .next-step > div:last-child,
.home-main .home-conversation-copy {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--action-gap);
  padding: 0 0 0 var(--divider-inset);
  border-left: 2px solid var(--divider);
  text-align: left;
  margin: 0;
}
#main .next-step:has(> :is(h2,h3)) > div:last-child { grid-row: 1; }
#main .next-step > div:last-child > *, .home-main .home-conversation-copy > * { margin-block: 0; }
#main .next-step > div:last-child > p:first-child,
.home-main #conversation .home-conversation-copy > p:first-child { font-size: 16px; line-height: 1.8; }
#main .next-step > div:last-child > p:not(:first-child),
.home-main #conversation .home-conversation-copy > p:not(:first-child) { font-size: 12px; line-height: 1.8; color: var(--color-muted); }
.next-step { border-top: 1px solid var(--divider); }

/* FAQ introduction stays together regardless of the answer column's height. */
#main .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--intro-gap) var(--column-gap);
  align-items: start;
}
#main .faq-intro { display: contents; }
#main .faq-intro > .eyebrow { grid-column: 1; grid-row: 1; margin: 0; }
#main .faq-heading { grid-column: 1; grid-row: 2; min-width: 0; }
#main .faq-heading > h2 { margin: 0; line-height: 1.18; }
#main .faq-heading > p { margin-top: 24px; max-width: 360px; }
#main .faq-grid > .faq-list { grid-column: 2; grid-row: 2; min-width: 0; }
.faq-list summary:hover, .faq-list summary:focus-visible { color: var(--accent); }

/* Long biographies keep normal reading rhythm rather than sharing heading rows. */
.coach-profile .profile-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--column-gap); align-items: start; }
.profile-story > div:first-child { display: contents; }
.profile-story > div:first-child > .eyebrow { grid-column: 1; grid-row: 1; margin: 0; }
.profile-story > div:first-child > h2 { grid-column: 1; grid-row: 2; margin: 0; }
.profile-story > .profile-background { grid-column: 2; grid-row: 2; }
.coach-profile .profile-story { row-gap: var(--intro-gap); }
.profile-story .prose { display: block; max-width: 680px; }
.profile-story .prose > p:first-child { margin-top: 0; }
.profile-story .prose > p + p { margin-top: 18px; }

/* Coach previews share content rows; details expand independently. */
@media (min-width: 900px) {
  .about-coach-grid { grid-template-rows: repeat(5, auto); row-gap: 0; }
  .about-coach { display: grid; grid-template-rows: subgrid; grid-row: span 5; align-items: start; }
  .about-coach .about-coach-details { align-self: start; margin-bottom: 22px; }
  .about-coach .about-coach-contact { margin-top: 0; align-self: end; justify-self: start; }
}
.about-coach .about-coach-heading { grid-template-columns: minmax(130px, 1fr) min(58%, 344.736px); }
.about-coach .about-coach-heading .about-coach-portrait { max-width: 100%; }
@media (min-width: 900px) and (max-width: 1250px) {
  .about-coach .about-coach-heading { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .about-coach .about-coach-heading .about-coach-portrait { width: min(100%, 344.736px); }
}

/* Retain the family page's useful related link as a deliberate compact pattern. */
.related-band { padding-block: var(--compact-section-space); }

@media (max-width: 1100px) { :root { --column-gap: 40px; } }
@media (max-width: 899px) {
  #main .next-step, .home-main .home-conversation-layout,
  #main .faq-grid, .coach-profile .profile-story { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  #main .next-step > div:first-child, #main .faq-intro, .profile-story > div:first-child { display: block; }
  .profile-story > .profile-background { grid-column: 1; grid-row: auto; }
  .profile-story > div:first-child > h2 { margin-top: var(--intro-gap); }
  #main .next-step > div:first-child > h2, #main .faq-heading { margin-top: var(--intro-gap); }
  #main .next-step > *, #main .next-step > div:first-child > *,
  .home-main .home-conversation-layout > *, #main .faq-grid > * { grid-column: 1; grid-row: auto; }
  .home-main .home-conversation-layout { row-gap: var(--intro-gap); }
  #main .next-step > div:last-child, .home-main .home-conversation-copy {
    grid-column: 1;
    grid-row: auto;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 2px solid var(--divider);
  }
  #main .next-step:has(> :is(h2,h3)) > div:last-child, #main .faq-grid > .faq-list { grid-column: 1; grid-row: auto; }
  .home-main .home-conversation-copy { margin-top: 8px; }
}
@media (max-width: 540px) {
  .about-coach .about-coach-heading { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about-coach .about-coach-heading .about-coach-portrait { width: 100%; max-width: 344.736px; }
  /* Long words and contact addresses must not force a wider page. */
  .prose, .article-prose, .contact-alternative { overflow-wrap: anywhere; }
}

/* A lone opening action keeps its natural width; pairs remain equal-sized. */
.interior-hero :is(.business-hero-actions, .personal-hero-actions, .hero-actions):not(:has(> a + a)) { width: fit-content; }
