/* ==========================================================================
   ECR School pages — single-ecr_school.php + archive-ecr_school.php
   ========================================================================== */

.ecr-school {
  background: #f7f2ea;
}

.ecr-school-hero {
  padding: 74px 24px 42px;
  background: #243526;
  color: #f9f6f0;
}

.ecr-school-hero__inner,
.ecr-school-overview__inner,
.ecr-school-cta__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.ecr-school-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
}

.ecr-school-hero__copy {
  max-width: 820px;
}

.ecr-school-hero__back,
.ecr-school-hero__eyebrow,
.ecr-school-section-label {
  display: inline-block;
  color: #c7a76c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* On light/white backgrounds the same gold needs to be darker for AA
   contrast — #c7a76c is too light against #fff. */
.ecr-school-card-main .ecr-school-section-label {
  color: #8a6d1e;
}

.ecr-school-hero__back {
  margin-bottom: 14px;
  text-decoration: none;
}

.ecr-school-hero__back::before {
  content: "< ";
}

.ecr-school-hero__eyebrow {
  display: block;
  margin: 0 0 12px;
}

.ecr-school-hero h1 {
  color: inherit;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  margin: 0 0 16px;
}

.ecr-school-hero__intro {
  max-width: 720px;
  color: rgba(249, 246, 240, 0.82);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.ecr-school-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ecr-btn--outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(249, 246, 240, 0.4);
  border-radius: 6px;
  color: #f9f6f0;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 16px;
  text-decoration: none;
}

.ecr-btn--outline-light:hover {
  border-color: rgba(249, 246, 240, 0.7);
  background: rgba(249, 246, 240, 0.08);
}

.ecr-school-hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 300px;
}

.ecr-school-pill,
.ecr-school-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(249, 246, 240, 0.12);
  color: #f9f6f0;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 11px;
  text-transform: capitalize;
}

.ecr-school-pill--public,
.ecr-school-badge--public {
  background: rgba(125, 154, 114, 0.22);
  color: #e8f4df;
}

.ecr-school-pill--catholic,
.ecr-school-badge--catholic {
  background: rgba(176, 141, 46, 0.24);
  color: #fff1c5;
}

.ecr-school-pill--elementary,
.ecr-school-badge--elementary {
  background: rgba(255, 255, 255, 0.16);
}

.ecr-school-pill--secondary,
.ecr-school-badge--secondary {
  background: rgba(255, 255, 255, 0.16);
}

.ecr-school-overview {
  padding: 54px 24px 64px;
}

.ecr-school-overview__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.ecr-school-card-main,
.ecr-school-details {
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(44, 62, 45, 0.07);
}

.ecr-school-card-main {
  padding: 34px;
}

.ecr-school-card-main p,
.ecr-school-card-main li {
  color: #3f463f;
  font-size: 1rem;
  line-height: 1.75;
}

.ecr-school-card-main p {
  margin: 0 0 14px;
}

.ecr-school-card-main h2,
.ecr-school-card-main h3,
.ecr-school-details h2,
.ecr-school-cta h2 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-weight: 600;
  line-height: 1.2;
}

.ecr-school-card-main h2 {
  font-size: 1.55rem;
  margin: 28px 0 10px;
}

.ecr-school-card-main h2:first-child {
  margin-top: 0;
}

.ecr-school-card-main h3 {
  font-size: 1.25rem;
  margin: 24px 0 8px;
}

.ecr-school-verification {
  margin-top: 30px;
  padding: 22px;
  border-left: 4px solid #c7a76c;
  border-radius: 0 8px 8px 0;
  background: rgba(176, 141, 46, 0.09);
}

.ecr-school-verification h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.ecr-school-verification p {
  margin-bottom: 16px;
}

.ecr-school-verification__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ecr-school-details {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.ecr-school-details h2 {
  font-size: 1.25rem;
  margin: 0 0 20px;
}

.ecr-school-details dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.ecr-school-details dt {
  color: rgba(44, 62, 45, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ecr-school-details dd {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.ecr-school-details__note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(44, 62, 45, 0.1);
  color: rgba(74, 85, 104, 0.82);
  font-size: 0.82rem;
  line-height: 1.65;
}

.ecr-school-glance__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 0;
}

.ecr-school-glance__btn {
  width: 100%;
}

/* "How school assignment works" general-info paragraphs ------------------ */
.ecr-school-card-main h2 + p {
  color: #3f463f;
}

/* Homes-near-school section ------------------------------------------------ */
.ecr-school-homesnear {
  padding: clamp(48px, 7vw, 80px) 24px;
  background: #fff;
}

.ecr-school-homesnear__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.ecr-school-eyebrow-label {
  display: inline-block;
  margin: 0 0 8px;
  color: #8a6d1e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ecr-school-section-head h2 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
}

.ecr-school-homesnear__note {
  max-width: 820px;
  color: #3f463f;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 10px;
}

.ecr-school-homesnear__note a {
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 700;
}

.ecr-school-homesnear__disclaimer {
  color: rgba(74, 85, 104, 0.82);
  font-size: 0.82rem;
}

.ecr-school-homesnear__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 28px;
}

.ecr-school-street-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 10px;
  background: #f7f2ea;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ecr-school-street-card:hover {
  border-color: rgba(176, 141, 46, 0.5);
  box-shadow: 0 12px 30px rgba(44, 62, 45, 0.08);
  transform: translateY(-2px);
}

.ecr-school-street-card__name {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.15rem;
}

.ecr-school-street-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #4a5568;
  font-size: 0.85rem;
}

.ecr-school-street-card__meta .material-symbols-outlined {
  font-size: 17px;
  color: #8a6d1e;
}

.ecr-school-street-card__tag {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(125, 154, 114, 0.18);
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.7rem;
  font-weight: 700;
}

.ecr-school-street-card__cta {
  margin-top: 4px;
  color: #8a6d1e;
  font-size: 0.82rem;
  font-weight: 700;
}

.ecr-school-homesnear__cta {
  margin: 0;
}

/* FAQ ---------------------------------------------------------------------- */
.ecr-school-faq {
  padding: clamp(48px, 7vw, 80px) 24px;
  background: #f7f2ea;
}

.ecr-school-faq__inner {
  max-width: 920px;
  margin: 0 auto;
}

.ecr-school-faq__inner h2 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  margin: 0 0 24px;
}

.ecr-school-faq__list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.ecr-school-faq__item {
  padding: 20px 24px;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 10px;
  background: #fff;
}

.ecr-school-faq__item dt {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.ecr-school-faq__item dd {
  color: #3f463f;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

/* Other schools cross-link -------------------------------------------------- */
.ecr-school-others {
  padding: clamp(48px, 7vw, 80px) 24px;
  background: #fff;
}

.ecr-school-others__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.ecr-school-others__inner h2 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  margin: 0 0 24px;
}

.ecr-school-others__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ecr-school-other-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 10px;
  background: #f7f2ea;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ecr-school-other-card:hover {
  border-color: rgba(176, 141, 46, 0.5);
  box-shadow: 0 12px 30px rgba(44, 62, 45, 0.08);
  transform: translateY(-2px);
}

.ecr-school-other-card .material-symbols-outlined {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(125, 154, 114, 0.18);
  color: var(--ecr-forest, #2c3e2d);
  font-size: 20px;
}

.ecr-school-other-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ecr-school-other-card__name {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.02rem;
}

.ecr-school-other-card__meta {
  color: #4a5568;
  font-size: 0.8rem;
}

.ecr-school-others__all {
  margin: 24px 0 0;
}

.ecr-school-others__all a {
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 700;
}

.ecr-school-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ecr-school-cta {
  padding: 46px 24px;
  background: #243526;
  color: #f9f6f0;
}

.ecr-school-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.ecr-school-cta h2 {
  color: inherit;
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 8px 0 8px;
}

.ecr-school-cta p {
  max-width: 720px;
  color: rgba(249, 246, 240, 0.76);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.ecr-btn--outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(44, 62, 45, 0.26);
  border-radius: 6px;
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 16px;
  text-decoration: none;
}

@media (max-width: 960px) {
  .ecr-school-homesnear__grid,
  .ecr-school-others__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ecr-school-hero__inner,
  .ecr-school-overview__inner,
  .ecr-school-cta__inner {
    grid-template-columns: 1fr;
  }

  .ecr-school-hero__facts {
    justify-content: flex-start;
    max-width: none;
  }

  .ecr-school-details {
    position: static;
  }
}

@media (max-width: 640px) {
  .ecr-school-hero {
    padding: 56px 20px 34px;
  }

  .ecr-school-overview {
    padding: 34px 20px 44px;
  }

  .ecr-school-card-main,
  .ecr-school-details {
    padding: 22px;
  }

  .ecr-school-verification__actions,
  .ecr-school-cta__inner .ecr-btn,
  .ecr-school-cta__actions .ecr-btn {
    width: 100%;
  }

  .ecr-school-homesnear,
  .ecr-school-faq,
  .ecr-school-others {
    padding: 34px 18px 44px;
  }

  .ecr-school-homesnear__grid,
  .ecr-school-others__grid {
    grid-template-columns: 1fr;
  }

  .ecr-school-faq__item,
  .ecr-school-other-card {
    padding: 16px 18px;
  }
}

/* --------------------------------------------------------------------------
   Oct 2026 UX pass
   -------------------------------------------------------------------------- */

/* ecr-pages.css loads after this file and resets .ecr-btn borders and the
   gold fill (white on #b08d2e is 3.1:1). Re-assert with scoped selectors. */
.ecr-school .ecr-btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
}
.ecr-school .ecr-btn--outline-dark {
  border: 1px solid rgba(44, 62, 45, 0.45);
  color: var(--ecr-forest, #2c3e2d);
}
.ecr-school .ecr-btn--outline-dark:hover {
  background: var(--ecr-forest, #2c3e2d);
  border-color: var(--ecr-forest, #2c3e2d);
  color: #fff;
}
.ecr-school .ecr-btn--gold {
  background: #c7a76c;
  border-color: #c7a76c;
  color: #18231f;
}
.ecr-school .ecr-btn--gold:hover {
  background: #d4b87a;
  border-color: #d4b87a;
  color: #18231f;
}

/* "Schools Map" back link: a real tap target */
.ecr-school-hero__back {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

/* Ministry data sits directly under the hero, aligned with the overview */
.ecr-school .ecr-od__inner { max-width: 1180px; }

/* Phones: address, location and map links before the long read */
@media (max-width: 900px) {
  .ecr-school-glance { order: -1; }
}
