/*
 * SeedChange type and spacing refresh (staging trial, added 2026-11-23)
 * Scope: page content only (banners and <main>). The header, main navigation
 * and footer are deliberately left unchanged.
 *
 * Loaded last on the front end by inc/seedchange-native-blocks.php.
 * To compare with the current look, add ?sc_classic=1 to any page address.
 * To remove: delete css/refresh.css (the loader skips a missing file).
 *
 * Root size stays at 10px (1rem = 10px), so every value below is in theme units.
 * Before → after (desktop): body 16 → 18px, H1 48 → 56px, H2 30 → 42px,
 * H3 24 → 28px, H4 18 → 21px, buttons 14 → 16px, page width 1200 → 1280px.
 */

/* ---------- Page width ---------- */

main .grid-container:not(.full):not(.fluid),
.banner .grid-container:not(.full):not(.fluid),
.page-banner .grid-container:not(.full):not(.fluid) {
  max-width: 128rem;
}

/* ---------- Body text ---------- */

main,
.banner,
.page-banner {
  font-size: 1.7rem;
}

main p,
main li,
.banner p,
.page-banner p {
  line-height: 1.7;
}

main p,
.banner p,
.page-banner p {
  margin-bottom: 1.6rem;
}

main ul li,
main ol li {
  margin-bottom: 0.6rem;
}

@media screen and (min-width: 64em) {
  main,
  .banner,
  .page-banner {
    font-size: 1.8rem;
  }
}

/* Keep long text at a readable line length (about 70–75 characters). */
.centred-text .cell > p,
.centred-text .cell > ul,
.centred-text .cell > ol {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.justified-text .cell > p,
.justified-text .cell > ul,
.justified-text .cell > ol,
.sc-core-section > p,
.sc-core-section > ul {
  max-width: 75ch;
}

/* ---------- Headings ----------
 * Sizes scale with the screen width between a phone minimum and a desktop
 * maximum, so the 550px phone overrides in style.css are no longer needed.
 */

main h1 {
  font-size: clamp(3.4rem, 2.2rem + 3vw, 5.6rem);
  line-height: 1.12;
}

main h2 {
  font-size: clamp(2.8rem, 2rem + 2vw, 4.2rem);
  line-height: 1.18;
  margin-bottom: 2.4rem;
}

main h3 {
  font-size: clamp(2.2rem, 1.8rem + 1vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 2rem;
}

main h4 {
  font-size: clamp(1.9rem, 1.7rem + 0.4vw, 2.1rem);
  line-height: 1.35;
  margin-bottom: 1.2rem;
}

main h5 {
  font-size: 1.6rem;
  line-height: 1.4;
}

@media (max-width: 550px) {
  main h1,
  main h2,
  main h3,
  main h4,
  main h5 {
    line-height: 1.2;
  }
}

/* Banner titles (home and page banners) and news article titles,
   which the theme sizes separately from the global headings. */
.banner h1,
.page-banner h1 {
  font-size: clamp(3.6rem, 2.4rem + 2.8vw, 5.6rem);
  line-height: 1.1;
}

.news-article h1 {
  font-size: clamp(3rem, 2.2rem + 1.8vw, 4.4rem);
  line-height: 1.15;
}

/* ---------- Buttons ---------- */

main .btn,
.banner .btn,
.page-banner .btn {
  font-size: 1.6rem;
  line-height: 1.6rem;
  padding: 2.2rem 3.2rem 2.1rem;
  letter-spacing: 0.04em;
}

.wp-block-button.sc-btn .wp-block-button__link {
  font-size: 1.6rem;
  line-height: 1.6rem;
  padding: 2.2rem 3.2rem 2.1rem;
  letter-spacing: 0.04em;
}

/* ---------- Section spacing ---------- */

main > section,
main > .acfblock {
  margin-bottom: 14.4rem;
}

main > section.snap-to-footer {
  margin-bottom: 0;
}

@media screen and (max-width: 39.99875em) {
  main > section,
  main > .acfblock {
    margin-bottom: 8rem;
  }
  main > section.snap-to-footer {
    margin-bottom: 0;
  }
}

/* ---------- Existing ACF blocks ---------- */

/* Image and text: give the text a little more room from the image. */
.multiple .flex {
  align-items: center;
}

.multiple h3,
.video h3,
.info h3 {
  margin-top: 0;
}

/* Three columns and cards: slightly larger card text. */
.three-col .col-content h4,
.cards h4 {
  font-size: 2rem;
}

.three-col p,
.cards p {
  font-size: 1.7rem;
  line-height: 1.65;
}

/* Numbered columns */
.twc .bold {
  font-size: 2rem;
}

/* Pull quotes */
.wp-block-pullquote p {
  font-size: clamp(2.2rem, 1.8rem + 0.8vw, 2.6rem);
  line-height: 1.5;
}

/* ---------- New blocks (sc-*) at the refreshed scale ---------- */

.sc-donation-hero h1.sc-dh-heading {
  font-size: clamp(3.6rem, 2.4rem + 3vw, 5.6rem);
}

.sc-donation-hero h2.sc-dh-heading {
  font-size: clamp(3rem, 2.2rem + 2vw, 4.4rem);
}

.sc-eyebrow {
  font-size: 1.5rem;
}

.sc-testimonials .sc-tm-quote {
  font-size: 2rem;
}

.sc-stats .sc-st-number {
  font-size: clamp(4.4rem, 3rem + 3vw, 6.4rem);
}

.sc-stats .sc-st-label,
.sc-profile-cards .sc-pc-text {
  font-size: 1.7rem;
}

.sc-milestones .sc-ms-title {
  font-size: 2.1rem;
}

/* ------------------------------------------------------------------
   Moved from Customizer > Additional CSS on 2026-11-23 (Banfield).
   These rules apply site-wide (not scoped to banners or main).
   To undo: delete this section and paste the rules back into
   Additional CSS (WordPress keeps revisions of it).
   ------------------------------------------------------------------ */

/* Block editor columns: limit width and centre */
.wp-block-columns {
  max-width: 120rem;
  margin: auto;
}

/* Staff photos: centre at all widths */
.staff.three-col .icon { margin-left: auto; margin-right: auto; max-width: 100%; }
.staff.three-col .icon img { max-width: 100%; height: auto; aspect-ratio: 1 / 1; }

/* ---------- Page banner: text in a solid colour panel (staging trial, added 2026-11-23) ----------
 * Applies to every page that uses the "Banner Page" fields (.page-banner).
 * The home page banner (.banner) is not affected.
 * Keeps the existing fields: Headline, Content, Background color and the featured image.
 * The Background color choice now colours the text panel. The arches image is hidden
 * and the dark gradient over the photo is removed.
 * To undo: delete this section. ?sc_classic=1 also shows the old banner.
 */

.page-banner {
  height: auto;
}

.page-banner > .grid-container.full {
  display: flex;
  align-items: stretch;
  min-height: 42rem;
}

/* The photo fills the banner and runs 4rem up under the fixed header,
   so no white gap shows between the header and the banner at any width. */
.page-banner .page-banner-image {
  position: absolute;
  top: -4rem;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  z-index: 1;
}

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

.page-banner .gradient,
.page-banner .banner-furrow {
  display: none;
}

/* The text panel. Its left padding lines the text up with the page content. */
.page-banner .page-banner-content {
  --sc-banner-rgb: 9, 24, 61;
  --sc-banner-alpha: 0.82;
  --sc-banner-text: #fff;
  --sc-edge: max(4rem, calc((100vw - 128rem) / 2 + 1.5rem));
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 3;
  width: clamp(46%, calc(var(--sc-edge) + 52rem), 60%);
  max-width: none;
  margin-top: -4rem;
  padding: 10rem 5rem 6rem var(--sc-edge);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(var(--sc-banner-rgb), var(--sc-banner-alpha));
}

.page-banner .page-banner-content > * {
  max-width: 52rem;
}

.page-banner .page-banner-content h1,
.page-banner .page-banner-content p {
  color: var(--sc-banner-text);
}

.page-banner .page-banner-content h1 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.page-banner .page-banner-content p {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Colours from the Background color field (exact brand colours, white text on all). */
.page-banner .banner-furrow.light-pink ~ .page-banner-content,
.page-banner .banner-furrow.pink ~ .page-banner-content {
  --sc-banner-rgb: 200, 62, 133;
}

.page-banner .banner-furrow.light-aquamarine ~ .page-banner-content,
.page-banner .banner-furrow.aquamarine ~ .page-banner-content {
  --sc-banner-rgb: 0, 116, 113;
}

.page-banner .banner-furrow.light-red ~ .page-banner-content,
.page-banner .banner-furrow.red ~ .page-banner-content {
  --sc-banner-rgb: 230, 90, 62;
}

.page-banner .banner-furrow.light-butterscotch ~ .page-banner-content,
.page-banner .banner-furrow.butter ~ .page-banner-content {
  --sc-banner-rgb: 251, 176, 64;
}

.page-banner .banner-furrow.light-teal ~ .page-banner-content,
.page-banner .banner-furrow.teal ~ .page-banner-content {
  --sc-banner-rgb: 39, 189, 190;
}

.page-banner .banner-furrow.light-mint ~ .page-banner-content,
.page-banner .banner-furrow.mint ~ .page-banner-content {
  --sc-banner-rgb: 71, 185, 114;
}

.page-banner .banner-furrow.light-yellow ~ .page-banner-content,
.page-banner .banner-furrow.yellow ~ .page-banner-content {
  --sc-banner-rgb: 255, 222, 47;
}

/* Tablets and phones: text panel first, photo below it. */
@media (max-width: 768px) {
  .page-banner > .grid-container.full {
    flex-direction: column;
    min-height: 0;
  }

  .page-banner .page-banner-content {
    order: 1;
    width: auto;
    --sc-banner-alpha: 1;
    padding: 7.2rem 1.5rem 3.2rem;
  }

  .page-banner .page-banner-image {
    order: 2;
    position: relative;
    top: auto;
    height: 24rem;
  }

  .page-banner .page-banner-image img {
    height: 24rem;
  }

  .page-banner .page-banner-content p {
    font-size: 1.8rem;
  }
}

@media (max-width: 550px) {
  .page-banner .page-banner-content {
    padding-top: 8rem;
  }

  .page-banner .page-banner-image,
  .page-banner .page-banner-image img {
    height: 20rem;
  }
}

/* Breadcrumbs in the page banner (printed by template_parts/partials/banner-page.php). */
.page-banner .sc-breadcrumbs {
  margin-bottom: 1.6rem;
}

.page-banner .sc-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-family: motiva-sans, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--sc-banner-text);
}

.page-banner .sc-breadcrumbs li {
  margin: 0;
}

.page-banner .sc-breadcrumbs li + li::before {
  content: "/";
  margin: 0 0.8rem;
}

.page-banner .sc-breadcrumbs a {
  color: var(--sc-banner-text);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.page-banner .sc-breadcrumbs a:hover,
.page-banner .sc-breadcrumbs a:focus {
  text-decoration-thickness: 0.2rem;
}

@media (max-width: 550px) {
  .page-banner .sc-breadcrumbs ol {
    font-size: 1.4rem;
  }
}

/* Who we are (EN page 1860, FR page 5274): the map is hidden in Additional CSS, but the newer
   MapSVG container (.mapsvg-shadow-root) still left about 1000px of empty space. Hide it too. (2026-11-23) */
.page-id-1860 .mapsvg-shadow-root,
.page-id-5274 .mapsvg-shadow-root {
  display: none;
}
