/* Layout engine for pages rebuilt from the Squarespace layout data (see src/build/fe.py).
   Reproduces the original site's grid, section spacing, type scale and theme colors. */
:root {
  --white-hsl: 35,100%,93%;      /* cream */
  --black-hsl: 351,24%,59%;      /* dusty rose */
  --accent-hsl: 21,50%,56%;      /* terracotta */
  --lightAccent-hsl: 40,68%,73%; /* sand */
  --darkAccent-hsl: 60,17%,45%;  /* olive */
  --sqs-site-gutter: 3vw;
  --sqs-mobile-site-gutter: 6vw;
  --sqs-site-max-width: 1800px;
  --u: 1.2vw;
  --hh: 107.23px;                /* header height */
  --heading-ls: -.02em;
}
@media (max-width: 767px) and (orientation: portrait) {
  :root { --u: calc(.012 * min(100vh, 900px)); --hh: 116px; }
}

/* ---- type scale: size = (value - 1) * unit + 1rem ---- */
.ps h1, .ps h2, .ps h3, .ps h4 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: var(--heading-ls); margin: 2rem 0; }
.ps h1 { font-size: calc(4.8 * var(--u) + 1rem); line-height: calc(1.3em * (1 + (1 - 5.8) / 25)); }
.ps h2 { font-size: calc(3 * var(--u) + 1rem);   line-height: calc(1.3em * (1 + (1 - 4) / 25)); }
.ps h3 { font-size: calc(1.2 * var(--u) + 1rem); line-height: calc(1.3em * (1 + (1 - 2.2) / 25)); }
.ps h4 { font-size: calc(.6 * var(--u) + 1rem);  line-height: calc(1.3em * (1 + (1 - 1.6) / 25)); }
.ps p, .ps .txt li { font-size: calc(.5 * var(--u) + 1rem); line-height: 1.5em; margin: 1rem 0; }
.ps p.sqsrte-large { font-size: calc(1.5 * var(--u) + 1rem); }
.ps p.sqsrte-small { font-size: calc(.3 * var(--u) + 1rem); }
.ps .txt > :first-child { margin-top: 0; }
.ps .txt > :last-child { margin-bottom: 0; }
.ps .txt ul, .ps .txt ol { margin: 1rem 0; padding-left: 1.4em; }
.ps .txt li > p { margin: 0; }

/* ---- themes ---- */
.ps { --bgc: hsla(var(--white-hsl),1); --hxl: hsla(var(--white-hsl),1); --hl: hsla(var(--white-hsl),1); --hm: hsla(var(--black-hsl),1); --hs: hsla(var(--black-hsl),1);
      --pl: hsla(var(--black-hsl),1); --pm: hsla(var(--black-hsl),1); --ps: hsla(var(--black-hsl),1); --link: hsla(var(--accent-hsl),1);
      --btn-bg: hsla(var(--accent-hsl),1); --btn-fg: hsla(var(--white-hsl),1); --btn2-bg: hsla(var(--accent-hsl),1); --btn2-fg: hsla(var(--white-hsl),1);
      --acc-div: hsla(var(--black-hsl),1); --acc-icon: hsla(var(--white-hsl),1); --field: hsla(var(--white-hsl),1); --field-border: hsla(var(--black-hsl),1); --form-title: hsla(var(--black-hsl),1); }

.th-white-bold { --bgc: hsla(var(--white-hsl),1); --link: hsla(var(--accent-hsl),1); --btn2-bg: hsla(var(--accent-hsl),1); --field: hsla(var(--lightAccent-hsl),1); --field-border: hsla(var(--accent-hsl),1); }
.th-light-bold { --bgc: hsla(var(--lightAccent-hsl),1); --hxl: hsla(var(--accent-hsl),1); --hl: var(--hxl); --hm: var(--hxl); --hs: var(--hxl); --pl: hsla(var(--accent-hsl),1); --pm: var(--pl); --ps: var(--pl);
            --link: hsla(var(--accent-hsl),1); --acc-div: hsla(var(--black-hsl),1); --acc-icon: hsla(var(--black-hsl),1); --field: hsla(var(--white-hsl),1); }
.th-dark { --bgc: hsla(var(--darkAccent-hsl),1); --hxl: hsla(var(--white-hsl),1); --hl: var(--hxl); --hm: var(--hxl); --hs: var(--hxl); --pl: var(--hxl); --pm: var(--hxl); --ps: var(--hxl);
           --link: hsla(var(--white-hsl),1); --btn-bg: hsla(var(--white-hsl),1); --btn-fg: hsla(var(--black-hsl),1); --btn2-bg: var(--btn-bg); --btn2-fg: var(--btn-fg);
           --acc-div: hsla(var(--white-hsl),1); --acc-icon: hsla(var(--white-hsl),1); --field: hsla(var(--black-hsl),1); --field-border: hsla(var(--white-hsl),1); --form-title: hsla(var(--white-hsl),1); }
.th-dark-bold { --bgc: hsla(var(--darkAccent-hsl),1); --hxl: hsla(var(--white-hsl),1); --hl: var(--hxl); --hm: var(--hxl); --hs: var(--hxl); --pl: var(--hxl); --pm: var(--hxl); --ps: var(--hxl);
           --link: hsla(var(--white-hsl),1); --btn-bg: hsla(var(--white-hsl),1); --btn-fg: hsla(var(--black-hsl),1); --btn2-bg: var(--btn-bg); --btn2-fg: var(--btn-fg);
           --acc-div: hsla(var(--white-hsl),1); --acc-icon: hsla(var(--white-hsl),1); --field: hsla(var(--black-hsl),1); --field-border: hsla(var(--white-hsl),1); --form-title: hsla(var(--white-hsl),1); }

.th-bright { --bgc: hsla(var(--accent-hsl),1); --hxl: hsla(var(--white-hsl),1); --hl: var(--hxl); --hm: var(--hxl); --hs: var(--hxl); --pl: var(--hxl); --pm: var(--hxl); --ps: var(--hxl);
           --link: hsla(var(--white-hsl),1); --btn-bg: hsla(var(--white-hsl),1); --btn-fg: hsla(var(--accent-hsl),1); --btn2-bg: var(--btn-bg); --btn2-fg: var(--btn-fg);
           --acc-div: hsla(var(--white-hsl),1); --acc-icon: hsla(var(--white-hsl),1); --field: hsla(var(--white-hsl),1); --form-title: hsla(var(--white-hsl),1); }

.ps { background-color: var(--bgc); color: var(--pm); }
.ps h1 { color: var(--hxl); } .ps h2 { color: var(--hl); } .ps h3 { color: var(--hm); } .ps h4 { color: var(--hs); }
.ps p.sqsrte-large { color: var(--pl); } .ps p { color: var(--pm); } .ps p.sqsrte-small { color: var(--ps); }
.ps .txt a { color: var(--link); }
.sqsrte-text-color--white { color: hsla(var(--white-hsl),1) !important; }

.sqsrte-text-color--accent { color: hsla(var(--accent-hsl),1) !important; }
.sqsrte-text-color--lightAccent { color: hsla(var(--lightAccent-hsl),1) !important; }

/* ---- sections ---- */
.ps { position: relative; display: flex; align-items: center; box-sizing: border-box; }

.ps.h-small { min-height: 33vh; } .ps.h-medium { min-height: 66vh; }
.ps-cw { position: relative; width: 100%; box-sizing: content-box; display: flex; justify-content: center; padding-top: var(--pt, 6.6vmax); padding-bottom: var(--pb, 6.6vmax); }
.ps.h-small > .ps-cw { --pt: 3.3vmax; --pb: 3.3vmax; }

.ps.ps-first > .ps-cw { padding-top: calc(var(--pt, 6.6vmax) + var(--hh)); }
.ps.has-divider { padding-bottom: var(--divider-height); z-index: 6; }

.ps-bg { position: absolute; inset: 0; overflow: hidden; }
.ps-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-ov { position: absolute; inset: 0; background: var(--bgc); }
.ps-clipdef { position: absolute; width: 0; height: 0; }

/* ---- grid blocks ---- */
.fe { width: 100%; }
.feb { position: relative; }
.blk { display: flex; flex-direction: column; height: 100%; width: 100%; box-sizing: border-box; }
.blk > * { width: 100%; }

/* image blocks fill their grid cell */
.k-image .blk .img-wrap { position: relative; height: 100%; width: 100%; display: flex; justify-content: center; }
.k-image .blk .img-box { position: relative; height: 100%; width: 100%; overflow: hidden; }
.k-image .blk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-image .blk .img-box.fit img { object-fit: contain; }

/* scaled (fit-to-width) headings */
.sqsrte-scaled-text-container { width: 100%; }
.sqsrte-scaled-text { display: block; white-space: nowrap; }

/* accordion blocks (footer, menu, doctrine) */
.accordion-items-container { list-style: none; margin: 0; padding: 0; }
.accordion-item { margin: 0; padding: 0; position: relative; }
.accordion-divider { background-color: var(--acc-div); height: var(--accordion-divider-thickness); opacity: var(--accordion-divider-opacity); }
.accordion-divider--top { display: none; }
[data-is-first-divider-visible="true"] .accordion-item:first-of-type .accordion-divider--top { display: block; }
[data-is-divider-enabled="false"] .accordion-divider { display: none !important; }
.accordion-item__click-target { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; width: 100%;
  padding: var(--accordion-item-padding-top) var(--accordion-item-padding-right) var(--accordion-item-padding-bottom) var(--accordion-item-padding-left); }
.accordion-item__click-target::-webkit-details-marker { display: none; }
.ps .accordion-item__title-wrapper { margin: 0; flex: 1; overflow: hidden; }
[data-accordion-icon-placement="right"] .accordion-item__title { padding-right: var(--accordion-icon-size); }
.accordion-icon-container { height: var(--accordion-icon-size); width: var(--accordion-icon-size); position: relative; flex: none; color: var(--acc-icon); }
.accordion-icon-container > * { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.plus__horizontal-line, .plus__vertical-line { background-color: currentColor; display: block; height: var(--accordion-icon-thickness); position: absolute; width: 100%; transition: transform .25s; }
.plus__vertical-line { transform: rotate(90deg); }
details[open]:not(.closing) .plus__vertical-line { transform: rotate(0deg); }

.accordion-item__description { box-sizing: border-box; min-width: var(--accordion-description-width); max-width: 300px;
  padding: var(--accordion-description-padding-top) var(--accordion-description-padding-right) var(--accordion-description-padding-bottom) var(--accordion-description-padding-left); }
.accordion-item__description > :first-child { margin-top: 0; } .accordion-item__description > :last-child { margin-bottom: 0; }
.ps .accordion-item__description.sqsrte-large p { font-size: calc(1.5 * var(--u) + 1rem); }
.ps .accordion-item__description.sqsrte-small p { font-size: calc(.3 * var(--u) + 1rem); }
.ps .accordion-item__description a { color: inherit; }
.ps .accordion-item h1, .ps .accordion-item h2, .ps .accordion-item h3, .ps .accordion-item h4 { color: inherit; }
.feb.k-accordion .blk { color: var(--hs); }

/* timeline line on the History page (desktop) */
@media (min-width: 768px) {
  .ps:has(.timeline-section-marker)::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; transform: translateX(-50%); background: #fff0db; pointer-events: none; z-index: 1; }
  .ps:has(.timeline-section-marker) > .ps-cw { z-index: 2; }
}

/* fit images: box keeps the photo's own shape inside the grid cell */
.k-image .img-wrap { container-type: size; }
.k-image .img-box.fit { width: min(100cqw, 100cqh * (var(--ar))); height: min(100cqh, 100cqw / (var(--ar))); }
.k-image .img-link { display: contents; }
.k-image .img-wrap { align-items: center; }
.icon-img { display: block; width: 100%; height: 100%; }
.icon-img svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.logo-fill { width: 100%; height: 100%; }

/* newsletter block (as on the live site: cream card, terracotta border) */
.feb.k-newsletter .blk { background: hsla(var(--white-hsl),1); border: 6px solid hsla(var(--accent-hsl),1); border-radius: 40px; color: hsla(var(--black-hsl),1); justify-content: flex-start; }
.ps .nl h2 { color: #1a1a1a; margin: 0 0 16px; line-height: 1.2em; }
.ps .nl-desc p { color: #1a1a1a; margin: 16px 0; }
.nl-body { padding-bottom: 16px; }
.nl-fields { display: flex; flex-wrap: wrap; margin-top: 16px; }
.nl-f { box-sizing: border-box; width: 31.13%; margin-right: .59%; padding: 8px 4px 8px 0; }
.nl-f input { box-sizing: border-box; width: 100%; font: inherit; font-size: calc(.5 * var(--u) + 1rem); line-height: 1.2; color: #000; background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 0; padding: 1.4rem 2rem; margin: 0; -webkit-appearance: none; }
.nl-btn { margin-top: 16px; padding: 8px 4px 8px 0; }
.nl-btn button { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.2; text-transform: uppercase; color: hsla(var(--white-hsl),1); background: hsla(var(--accent-hsl),1); border: 0; border-radius: 10px; padding: 1.4rem 2rem; cursor: pointer; }
.ps .sqsrte-scaled-text > :is(h1,h2,h3,h4,p) { margin: 0; }
@media (max-width: 767px) { .nl-f { width: 100%; margin-right: 0; } }
/* divider: only the section's background (color + image) is cut by the curve; the next section shows below it */
.ps.has-divider.has-bg { background-color: transparent; }
.ps.has-divider.has-bg > .ps-bg { background-color: var(--bgc); }
.ps.after-divider::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--prev-dh)); height: var(--prev-dh); background: var(--bgc); }
.ps.after-divider > .ps-bg { top: calc(-1 * var(--prev-dh)); }
/* video blocks keep YouTube's 16:9 shape */
.feb.k-video .video-embed { width: 100%; height: auto; margin: 0; aspect-ratio: 1 / .565; }
/* social icons placed as image blocks (e.g. under Meet Pastor John): a bit larger, grow on hover like the others */
.icon-img { transform: scale(1.35); transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
.img-link:hover .icon-img, .img-link:focus-visible .icon-img { transform: scale(1.55); }
@media (prefers-reduced-motion: reduce) { .icon-img { transition: none; } }
/* text blocks with a background (e.g. the year "pills" on the History timeline) */
.ps { --tbg: hsla(var(--white-hsl),1); }
.th-white-bold { --tbg: hsla(var(--lightAccent-hsl),1); }
.feb .blk.bg-on { background: var(--tbg); }
/* History timeline: years follow each other closely (no tall empty bands between years) */
.ps:has(.timeline-section-marker) { min-height: 0 !important; }
@media (max-width: 767px) {
  /* top photo section on phones: fills the screen, words centered in it */
  .ps.ps-first.has-bg { min-height: 100vh !important; min-height: calc(100lvh + var(--divider-height, 0px)) !important; }
  .ps.ps-first.has-bg > .ps-cw { padding-bottom: calc(var(--divider-height, 0px) + 24px); }
}
/* Home: former Heading 1 texts, now second-level headings that look the same (one main heading per page) */
.ps h2.as-h1 { font-size: calc(4.8 * var(--u) + 1rem); line-height: calc(1.3em * (1 + (1 - 5.8) / 25)); color: var(--hxl); }
@media (min-width: 768px) { .ps h2.as-h1 { font-size: min(calc(4.8 * var(--u) + 1rem), 7rem); } }
