/* Navigation and mobile usability refinements, loaded on every page after
   the shared styles. Keeps the existing palette, type and motion. */

/* Readable minimum sizes for small labels on phones. */
@media (max-width: 767px) {
  .path-band span,
  .journey-footnote .eyebrow,
  .community-board .eyebrow {
    font-size: 11px;
  }
  .hero-bottom p {
    font-size: 13px;
  }
  .hero-verse {
    font-size: 11px;
  }
  .footer-bottom {
    font-size: 12px;
  }
  /* Comfortable 44px tap targets for footer links. */
  .footer-grid > div > a:not(.brand) {
    font-size: 15px;
    padding-block: 11px;
  }
}

/* Long stage bullet points read better in one column on narrow phones. */
@media (max-width: 480px) {
  .stage-content ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-content li {
    font-size: 14px;
  }
}

/* On single-column layouts, show the form straight after the page title;
   the supporting notes and links follow it. */
@media (max-width: 1099px) {
  .community-form-layout > .community-form-panel {
    order: -1;
  }
}

/* Step labels in the homepage journey tabs. */
.pathway-tabs button span {
  white-space: nowrap;
}

/* Contact details that are not yet published. */
.contact-pending {
  margin-block: 24px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
  font-size: 14px;
  color: var(--color-brown);
}

/* Desktop alignment fixes. */

/* Keep the "Parent or guardian" heading inside its box instead of sitting on
   the border (the browser's default for fieldset legends). */
.preview-form .guardian-fields > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
}
.preview-form .guardian-fields > legend + * {
  clear: both;
}

@media (min-width: 1100px) {
  /* The intro column stays beside the form while scrolling, instead of
     ending early and leaving a tall empty column. */
  .community-form-intro {
    position: sticky;
    top: 150px;
  }
}

/* "(required)"-style notes inside testimony labels match the other forms. */
.testimony-page .form-field label span {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-brown);
}

/* Homepage board: Events and Stories boxes share a top edge and height now
   that the full-width News row sits beneath them. */
.community-board .community-story {
  margin-top: 0;
}

/* Stories hero: even spacing between intro, button and its note. */
.stories-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 32px;
}
.stories-cta .small {
  margin: 0;
  max-width: 380px;
  color: var(--color-brown);
}

/* iPhones draw some arrows (↗ ↘) as colourful emoji; keep them as plain text. */
body {
  font-variant-emoji: text;
}

/* Join: heads-up for volunteers and churches above the form. */
.join-headsup {
  margin-bottom: 28px;
}
.join-headsup .text-link {
  display: inline-flex;
  margin-top: 10px;
}

/* Whole cards are clickable: the title link stretches over the card, so
   tapping anywhere opens it (keyboard and screen readers use the title). */
.catalog-card,
.story-card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.catalog-card:hover,
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgb(89 70 64 / 14%);
  border-color: var(--color-brown);
}
.catalog-card:hover .card-link,
.story-card:hover .card-link {
  color: var(--coral-ink, #a84250);
}
.catalog-card:focus-within,
.story-card:focus-within {
  outline: 3px solid var(--color-brown);
  outline-offset: 3px;
}
.card-link:focus-visible {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .catalog-card:hover,
  .story-card:hover {
    transform: none;
  }
}

/* "To add" template spots for information not confirmed yet
   (config/site-info.php). Hidden automatically once show_placeholders is off. */
.fill-in {
  display: inline-block;
  border: 1px dashed var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 7%, var(--color-cream));
  color: var(--color-brown);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.5;
}
.fill-in b {
  color: var(--coral-ink, #a84250);
  font-weight: 600;
}
.footer-grid .fill-in {
  margin-top: 8px;
}
.footer-location {
  margin-top: 8px !important;
}
.footer-bottom a:hover {
  color: var(--color-brown);
}

/* Leadership */
.leader-list {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
.leader-card {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.leader-photo {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-blush);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader-card h3 {
  font-size: clamp(26px, 3vw, 34px);
}
.leader-role {
  color: var(--color-muted);
  margin-top: 6px;
}
.leader-card .leader-bio {
  margin-top: 20px;
}
.leader-quote {
  margin-top: 22px;
  border-left: 3px solid var(--color-primary);
  padding-left: 18px;
  font-style: italic;
}
@media (max-width: 767px) {
  .leader-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .leader-photo {
    max-width: 240px;
  }
}

/* Homepage founder card */
.founder-home {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--surface-warm);
  border-radius: 10px;
  padding: 28px;
}
.founder-home .leader-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
}
.founder-home .leader-photo .fill-in {
  font-size: 11px;
  padding: 2px 6px;
}
.founder-home h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-top: 6px;
}
.founder-home p {
  margin-top: 8px;
}
@media (max-width: 600px) {
  .founder-home {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
  .founder-home .leader-photo {
    width: 110px;
  }
}

/* Contact details list */
.contact-details {
  list-style: none;
  padding: 0;
  margin: 18px 0 6px;
  display: grid;
  gap: 10px;
}
.contact-details li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 15px;
}
.contact-details strong {
  min-width: 90px;
  font-weight: 600;
}
.contact-details a {
  color: var(--color-brown);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Policy and Q&A pages */
.prose-page {
  max-width: 760px;
}
.prose-page h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-top: 48px;
}
.prose-page h3 {
  font-size: 19px;
  margin-top: 28px;
}
.prose-page p,
.prose-page ul {
  margin-top: 12px;
}
.prose-page ul {
  padding-left: 20px;
}
.prose-page li {
  margin-top: 6px;
}
.prose-page a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-page .muted {
  color: var(--color-muted);
  font-size: 14px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style-position: inside;
  padding-right: 8px;
}
.faq-list details p {
  margin-top: 10px;
}
.next-steps {
  margin: 12px 0 0;
  padding-left: 20px;
}
.next-steps li {
  margin-top: 6px;
}
.founder-section {
  margin-block: 10px 70px;
}

/* Long footer items (e.g. the email address) wrap instead of widening the page. */
.footer-grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.footer-grid > div > a {
  overflow-wrap: anywhere;
}

/* Contact: WhatsApp chat button */
.whatsapp-button {
  margin-top: 18px;
  align-self: flex-start;
}
