/* Arise Care International — rebuilt from the Squarespace original.
   Palette and type are lifted from the source site:
   cream hsl(38,81%,94%), sage hsl(104,11%,46%), deep teal hsl(200,98%,18%),
   mint hsl(166,20%,78%). Body: Nunito Sans. Headings: Manrope. */

:root {
  --cream: hsl(38.4, 80.65%, 93.92%);
  --cream-soft: hsl(38, 75%, 96.5%);
  --ink: hsl(0, 0%, 8%);
  --sage: hsl(103.85, 11.02%, 46.27%);
  --teal: hsl(199.55, 97.8%, 17.84%);
  --mint: hsl(166.36, 20%, 78.43%);
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6vw;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.25rem 0;
  opacity: 0.85;
}

.site-nav__link:hover, .site-nav__link.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.site-nav__folder { position: relative; }

.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  border: 1px solid hsla(0, 0%, 0%, 0.08);
  box-shadow: 0 12px 30px hsla(0, 0%, 0%, 0.12);
  padding: 0.75rem 0;
  min-width: 11rem;
  z-index: 50;
}

.site-nav__folder:hover .site-nav__dropdown,
.site-nav__folder:focus-within .site-nav__dropdown { display: block; }

.site-nav__dropdown a {
  display: block;
  padding: 0.45rem 1.4rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav__dropdown a:hover { background: hsla(0, 0%, 0%, 0.05); }

.nav-toggle { display: none; }

/* ---------- Flash ---------- */

.flash {
  background: var(--sage);
  color: #fff;
  text-align: center;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
}

.flash--alert { background: hsl(10, 60%, 45%); }

/* ---------- Shared sections ---------- */

.section { padding: 6rem 0; }
.section--tight { padding: 4rem 0; }

.kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.display {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
}

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }

/* ---------- Page hero (partner pages) ---------- */

.page-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 0%, 0.62), hsla(0, 0%, 0%, 0.18));
}

.page-hero .wrap { padding-bottom: 5rem; padding-top: 9rem; }

.page-hero p { font-size: 1.15rem; margin: 0 0 0.8rem; }

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  max-width: 18ch;
  margin: 0;
}

/* ---------- Home hero ---------- */

.home-hero {
  position: relative;
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  overflow: hidden;
}

.home-hero__map {
  position: absolute;
  inset: 0;
  background: url("/assets/untitleddesign10-e5fd71ab.webp") center / contain no-repeat;
  opacity: 0.9;
}

/* Scattered photo collage around the map (static — no motion needed) */
.home-hero__photos { position: absolute; inset: 0; pointer-events: none; }
.home-hero .hp {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}
.hp--tl { top: 11%;  left: 3.5%;  width: 27%; aspect-ratio: 16 / 10; }
.hp--tr { top: 13%;  right: 5%;   width: 25%; aspect-ratio: 16 / 10; }
.hp--r  { top: 38%;  right: -2%;  width: 12%; aspect-ratio: 3 / 4; }
.hp--l  { top: 62%;  left: -3%;   width: 12%; aspect-ratio: 4 / 3; }
.hp--bl { bottom: 4%; left: 9%;   width: 19%; aspect-ratio: 3 / 4; }
.hp--br { bottom: 5%; right: 11%; width: 17%; aspect-ratio: 3 / 4; }

.home-hero__content { position: relative; padding: 2rem; }

.home-hero h3 {
  font-weight: 600;
  letter-spacing: 0.6em;
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
  margin-bottom: 1rem;
}

.home-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 800;
  margin: 0;
}

.home-hero__cta {
  margin-top: 2.75rem;
  border-radius: 999px;
  padding: 1.05rem 2.8rem;
  font-size: 0.95rem;
}

/* Phone hero: keep the scattered collage (photos bleed off the left/right
   edges around the centred text), like the live site — just sized for narrow
   screens. The same arrangement is forced in the editor's phone-frame preview
   via body.force-mobile below. */
@media (max-width: 820px) {
  .home-hero { min-height: 720px; }
  .home-hero .hp { width: 46%; aspect-ratio: 4 / 3; }
  .hp--tl { top: 12%; left: -4%; }
  .hp--tr { top: 25%; right: -4%; }
  .hp--bl { top: 55%; left: -4%; bottom: auto; }
  .hp--br { top: 68%; right: -4%; bottom: auto; }
  .hp--l, .hp--r { display: none; }
  .home-hero__content { z-index: 2; }
}

/* Layout editor — Mobile preview: a phone-width frame that forces the mobile
   hero arrangement so editors can place the phone layout on a desktop. */
body.force-mobile { background: #d6d4cd; }
body.force-mobile .site-header__inner,
body.force-mobile main { max-width: 440px; margin-inline: auto; }
body.force-mobile .home-hero { min-height: 720px; }
body.force-mobile .home-hero .hp { position: absolute; width: 46%; aspect-ratio: 4 / 3; }
body.force-mobile .hp--tl { top: 12%; left: -4%; right: auto; bottom: auto; }
body.force-mobile .hp--tr { top: 25%; right: -4%; left: auto; bottom: auto; }
body.force-mobile .hp--bl { top: 55%; left: -4%; right: auto; bottom: auto; }
body.force-mobile .hp--br { top: 68%; right: -4%; left: auto; bottom: auto; }
body.force-mobile .hp--l, body.force-mobile .hp--r { display: none; }
body.force-mobile .home-hero__content { z-index: 2; }

/* Web/Mobile toggle in the editor toolbar */
.layout-bar__hint { flex: 1; }
.layout-bar__devices { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; overflow: hidden; }
.layout-bar__device { background: transparent; color: #fff; border: 0; padding: 0.35rem 0.95rem; font: inherit; font-size: 0.82rem; cursor: pointer; }
.layout-bar__device.is-active { background: #fff; color: var(--ink); }

/* ---------- Photo strip ---------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Who we are ---------- */

.who {
  background: var(--teal);
  color: var(--cream);
}

.who .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.who h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

.who p { font-size: 1.2rem; max-width: 48ch; }

.who img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

/* ---------- Story cards ---------- */

.section-heading { text-align: center; margin-bottom: 3.5rem; }
.section-heading h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 0.4rem; }
.section-heading h4 { font-weight: 600; opacity: 0.75; margin: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 60rem; margin: 0 auto; }

.story-card { text-decoration: none; display: block; }

.story-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1.1rem;
}

.story-card h2 { font-size: 1.5rem; margin-bottom: 0.2rem; }

.story-card p {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin: 0;
  opacity: 0.7;
}

.story-card:hover img { opacity: 0.88; }

/* ---------- Quote ---------- */

.quote {
  background: var(--mint);
  text-align: center;
}

.quote blockquote {
  max-width: 56rem;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.45;
}

.quote cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1rem;
  font-weight: 700;
}

/* ---------- Partnerships intro (home) ---------- */

.partnerships-intro { text-align: center; }

.partnerships-intro h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

.partnerships-intro p {
  max-width: 62ch;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
}

.partnerships-intro p a { font-weight: 700; }

.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.image-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Prayer points ---------- */

.prayer { background: var(--cream-soft); }

.prayer .kicker { text-align: center; }

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
  margin-top: 3rem;
}

.prayer-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1.2rem;
}

.prayer-card h2 { font-size: 1.35rem; }

.prayer-card p { font-size: 0.98rem; }

.prayer-card .dateline {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

/* ---------- Stay connected ---------- */

.connect { background: var(--teal); color: var(--cream); text-align: center; }

.connect h2.connect-title { font-size: clamp(2rem, 4vw, 3rem); }

.connect > .wrap > p { max-width: 52ch; margin: 0 auto 3.5rem; }

.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.connect-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1.2rem;
}

.connect-card h2 { font-size: 1.2rem; min-height: 2.8em; }

.connect-card .btn { background: var(--cream); color: var(--teal); padding: 0.85rem 1.6rem; }

/* ---------- Partner pages ---------- */

.partner-intro .wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
}

.partner-intro__logo img { width: 100%; max-width: 280px; }

.partner-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

.partner-intro p { font-size: 1.1rem; }

.feature {
  background: var(--teal);
  color: var(--cream);
}

.feature .wrap { max-width: 56rem; text-align: center; }

.feature h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

.feature p { font-size: 1.12rem; text-align: left; }

.feature .note { font-style: italic; text-align: center; opacity: 0.8; }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 62rem;
  margin: 3rem auto 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.triptych figure { margin: 0; }

.triptych img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 1rem;
}

.triptych h2 { text-align: center; font-size: 1.6rem; }

.gallery-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-4 img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.advocacy .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.advocacy img { width: 100%; object-fit: cover; }

.advocacy h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* ---------- Missionary / people cards ---------- */

.people-card { text-align: center; }

.people-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1.2rem;
}

.people-card h2 { font-size: 1.5rem; margin-bottom: 0.2rem; }

.people-card p { margin: 0; opacity: 0.75; }

/* ---------- Partnerships overview ---------- */

.partner-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
}

.partner-row:last-child { border-bottom: none; }

.partner-row__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.partner-row__logo {
  max-width: 180px;
  margin-bottom: 1.4rem;
}

.partner-row h4 { font-size: 1.45rem; }

.partner-row:nth-child(even) .partner-row__photo { order: 2; }

/* ---------- About ---------- */

.about-hero {
  background: var(--mint);
  text-align: center;
  padding: 8rem 6vw;
}

.about-hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); margin: 0; }

.mandate .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.mandate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.mandate h2 { font-size: clamp(2rem, 4vw, 3rem); }

.mandate p { font-size: 1.12rem; }

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.about-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Contact form ---------- */

.contact { background: var(--teal); color: var(--cream); }

.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1.4rem;
  border: 1px solid hsla(38, 80%, 94%, 0.4);
  background: hsla(38, 80%, 94%, 0.08);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--mint);
  background: hsla(38, 80%, 94%, 0.14);
}

.contact-form .btn { background: var(--cream); color: var(--teal); }

/* Sign-in page reuses .contact-form, but on a light background — so the
   inputs need dark text (not the cream used on the dark contact section). */
.auth-wrap .contact-form input,
.auth-wrap .contact-form textarea {
  color: var(--ink);
  background: #fff;
  border-color: rgba(35, 39, 43, 0.25);
}
.auth-wrap .contact-form .btn { background: var(--teal); color: var(--cream); }

/* ---------- Stories index ---------- */

.stories-hero {
  text-align: center;
  padding: 6rem 6vw 4rem;
}

.stories-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin: 0; }

.story-list { max-width: 54rem; margin: 0 auto; padding: 0 6vw 6rem; }

.story-entry { padding: 3rem 0; border-bottom: 1px solid hsla(0, 0%, 0%, 0.1); }

.story-entry:last-child { border-bottom: none; }

.story-entry img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1.6rem;
}

.story-entry h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.story-entry h1 a { text-decoration: none; }

.story-entry h1 a:hover { text-decoration: underline; text-underline-offset: 6px; }

.story-entry .meta {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.6rem;
}

.story-entry .more {
  font-weight: 700;
  font-family: var(--font-heading);
}

/* ---------- Story article ---------- */

.article { max-width: 46rem; margin: 0 auto; padding: 5rem 6vw; }

.article-header { text-align: center; margin-bottom: 3rem; }

.article-header h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

.article-header .meta {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

.article-body p { margin: 0 0 1.5em; }

.article-body img { margin: 2.5rem auto; }

.article-body figure { margin: 2.5rem 0; }

.article-body figcaption,
.article-body .caption {
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.7;
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

.article-body h4 { font-size: 1.25rem; margin-top: 2.2em; }

.article-body .story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

.article-body .story-grid img {
  margin: 0;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 6vw 5rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.article-nav a { text-decoration: none; max-width: 45%; }

.article-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.article-nav .next { text-align: right; margin-left: auto; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  border-top: 1px solid hsla(0, 0%, 0%, 0.08);
  padding: 4.5rem 6vw;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
}

.site-footer__title { font-size: 1.5rem; margin: 0; }

.site-footer__logos { display: flex; gap: 1.5rem; align-items: center; }

.site-footer__logos img { width: 90px; height: 90px; object-fit: contain; mix-blend-mode: multiply; }

.site-footer__contact { text-align: right; }

.site-footer__contact h4 { margin-bottom: 0.3rem; }

.site-footer__contact p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .section { padding: 4rem 0; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 6vw 2rem;
    gap: 1rem;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
  }

  .site-nav.is-open { display: flex; }

  .site-nav__dropdown {
    display: block;
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0 0 0 1rem;
  }

  .photo-strip { grid-template-columns: repeat(3, 1fr); }

  .who .wrap,
  .partner-intro .wrap,
  .advocacy .wrap,
  .mandate .wrap,
  .contact .wrap,
  .partner-row { grid-template-columns: 1fr; gap: 2.5rem; }

  .partner-intro__logo img { max-width: 180px; }

  .partner-row:nth-child(even) .partner-row__photo { order: 0; }

  .card-grid, .prayer-grid, .connect-grid { grid-template-columns: repeat(2, 1fr); }

  .card-grid--3, .triptych, .image-row, .about-gallery { grid-template-columns: 1fr 1fr; }

  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }

  .site-footer__logos { justify-content: center; }

  .site-footer__contact { text-align: center; }
}

@media (max-width: 560px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }

  .card-grid, .prayer-grid, .connect-grid,
  .card-grid--3, .triptych, .image-row,
  .about-gallery, .gallery-4,
  .article-body .story-grid { grid-template-columns: 1fr; }

  .page-hero { min-height: 64vh; }
}

/* Cover image atop rich-text stories, and the missionary "Read Bio" link */
.article-cover {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  height: auto;
  border-radius: 12px;
  margin: 0 auto 2rem;
}
.people-card .more { display: inline-block; margin-top: 0.5rem; }

/* Centered section call-to-action links (home "See All" / "Learn More") */
.section-cta { text-align: center; margin-top: 2.5rem; }

/* About: centered text-only "Our Mandate" block (matches live site) */
.mandate-text { text-align: center; }
.mandate-text .wrap { max-width: 60rem; }
.mandate-text h2 { margin-bottom: 1rem; }

/* ---------- Carousel (home stories + prayer points) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 30%, 340px);
}
.carousel__nav { display: flex; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.carousel__btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.carousel__btn:hover { background: var(--ink); color: var(--cream); }
.carousel__btn:disabled { opacity: 0.25; cursor: default; }
.carousel__btn:disabled:hover { background: transparent; color: var(--ink); }

/* Boxed story card (home carousel) — matches the live card with a button */
.story-card--boxed {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(35, 39, 43, 0.14);
}
.story-card--boxed img { margin-bottom: 1.25rem; }
.story-card--boxed h2 { padding: 0 1rem; }
.story-card--boxed p { padding: 0 1rem; }
.story-card--boxed .btn--outline { margin: 1.3rem auto 1.8rem; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); opacity: 1; }

/* Prayer cards inside a carousel keep their look, drop the grid margin */
.carousel .prayer-card { margin: 0; }

@media (max-width: 700px) {
  .carousel__track > * { flex-basis: 82%; }
}

/* ---------- Layout editor (signed-in editors only) ---------- */
.layout-toggle {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 50;
  background: var(--teal); color: var(--cream);
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.06em; text-decoration: none;
  padding: 0.7rem 1.2rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.layout-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1.25rem; font-size: 0.88rem;
}
.layout-bar__done {
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 700;
  padding: 0.4rem 1.1rem; border-radius: 999px; white-space: nowrap;
}
.is-editing .editable-img {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: 2px dashed rgba(44, 95, 99, 0.5);
  outline-offset: 2px;
}
.is-editing .editable-img:hover { outline-color: rgba(44, 95, 99, 0.9); }
.is-editing .editable-img--active { outline: 2px solid var(--teal); }

/* Don't show drag affordances on full-bleed hero backgrounds */
.is-editing .page-hero__bg .editable-img { outline: none; cursor: default; }
