/*
 * 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;
}
