/* LIVE-RENDERED FINAL CORRECTIONS */

/* Homepage desktop CTA: force a readable default state. */
#englishire-service-situations .section-footer-action > a.button.button--text {
  color: #071a35 !important;
  background: #e2ca8b !important;
  border-color: #c7a052 !important;
}

#englishire-service-situations .section-footer-action > a.button.button--text:hover,
#englishire-service-situations .section-footer-action > a.button.button--text:focus-visible {
  color: #ffffff !important;
  background: #9f1528 !important;
  border-color: #9f1528 !important;
}

/* Journal desktop: keep the editorial-desk identity inside its own column. */
@media (min-width: 64rem) {
  #englishire-editorial-desk .about-englishire__layout {
    grid-template-columns: minmax(12rem, 0.62fr) minmax(0, 1.38fr) !important;
    gap: clamp(2rem, 5vw, 5rem) !important;
    align-items: start !important;
  }

  #englishire-editorial-desk .about-englishire__identity {
    min-width: 0 !important;
    max-width: 18rem !important;
  }

  #englishire-editorial-desk .about-englishire__wordmark {
    max-width: 100% !important;
    font-size: clamp(1.8rem, 2.5vw, 2.8rem) !important;
    line-height: 1.05 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  #englishire-editorial-desk .about-englishire__descriptor {
    max-width: 22ch !important;
    line-height: 1.5 !important;
  }
}

/* About page: replace low-contrast gold text on the pale-blue Standard card. */
#englishire-standard .about-standard-card {
  color: #071a35 !important;
}

#englishire-standard .about-standard-card .section-label,
#englishire-standard .about-standard-card h2,
#englishire-standard .about-standard-card p,
#englishire-standard .about-standard-card strong,
#englishire-standard .about-standard-card span,
#englishire-standard .about-standard-card li::before {
  color: #071a35 !important;
  opacity: 1 !important;
}

/* Site-wide Englishire Standard CTA: readable before hover on every page. */
a.button[href="englishire-standard.html"] {
  color: #071a35 !important;
  background: #e2ca8b !important;
  border-color: #c7a052 !important;
}

a.button[href="englishire-standard.html"]:hover,
a.button[href="englishire-standard.html"]:focus-visible {
  color: #ffffff !important;
  background: #9f1528 !important;
  border-color: #9f1528 !important;
}

/* Questions page: restore a clear, balanced reference directory. */
#englishire-question-sections {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: #fbf8f1;
  border-bottom: 1px solid rgba(7, 26, 53, 0.18);
}

#englishire-question-sections .section-heading {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

#englishire-question-sections .section-heading__summary {
  max-width: 34rem;
  line-height: 1.65;
}

#englishire-question-sections .questions-directory__links {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  background: transparent !important;
  border: 0 !important;
}

#englishire-question-sections .questions-directory__links a {
  display: grid !important;
  align-content: start !important;
  gap: 0.65rem !important;
  min-width: 0 !important;
  min-height: 7.5rem !important;
  padding: 1.35rem 1.4rem !important;
  color: #071a35 !important;
  background: #ffffff !important;
  border: 1px solid rgba(7, 26, 53, 0.18) !important;
  border-top: 3px solid #c7a052 !important;
  box-shadow: 0 0.55rem 1.4rem rgba(7, 26, 53, 0.06) !important;
  text-decoration: none !important;
}

#englishire-question-sections .questions-directory__links a span {
  display: block !important;
  max-width: none !important;
  color: #071a35 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.18 !important;
}

#englishire-question-sections .questions-directory__links a small {
  display: block !important;
  max-width: 30ch !important;
  color: #596473 !important;
  font-family: inherit !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.45 !important;
  text-transform: none !important;
}

#englishire-question-sections .questions-directory__links a:hover,
#englishire-question-sections .questions-directory__links a:focus-visible {
  color: #071a35 !important;
  background: #f6f2e8 !important;
  border-color: #c7a052 !important;
  transform: translateY(-2px);
}

@media (max-width: 68.75rem) {
  #englishire-question-sections .questions-directory__links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 42.5rem) {
  #englishire-question-sections .questions-directory__links {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #englishire-question-sections .questions-directory__links a {
    min-height: 0 !important;
    padding: 1.2rem !important;
  }
}

/* Homepage Journal cards: strong royal frame for closely related thumbnails. */
#englishire-school-media .homepage-publication__media {
  position: relative;
  border-bottom: 1px solid rgba(17, 34, 51, 0.22);
}

#englishire-school-media .homepage-publication__media img {
  display: block;
}

#englishire-school-media .homepage-publication__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 4px solid #071a35;
  box-shadow:
    inset 0 0 0 2px #e2ca8b,
    inset 0 0 0 5px #071a35,
    inset 0 0 0 7px #9f1528;
}

/* Legal pages: correct low-contrast labels, links and contact actions only. */
#englishire-privacy-policy .legal-content__navigation .section-label,
#englishire-cookie-policy .legal-content__navigation .section-label {
  color: #e2ca8b !important;
}

#englishire-privacy-policy .legal-content__body a,
#englishire-cookie-policy .legal-content__body a,
.legal-content > .site-shell:not(.legal-content__layout) > a,
.legal-content > .site-shell:not(.legal-content__layout) p > a {
  color: #6f0d1b !important;
  text-decoration: underline;
  text-decoration-color: rgba(111, 13, 27, 0.45);
  text-underline-offset: 0.18em;
}

#englishire-privacy-policy .legal-content__body a:hover,
#englishire-privacy-policy .legal-content__body a:focus-visible,
#englishire-cookie-policy .legal-content__body a:hover,
#englishire-cookie-policy .legal-content__body a:focus-visible,
.legal-content > .site-shell:not(.legal-content__layout) p > a:hover,
.legal-content > .site-shell:not(.legal-content__layout) p > a:focus-visible {
  color: #071a35 !important;
  text-decoration-color: #c7a052;
}

#englishire-privacy-reassurance .button.button--text,
#englishire-cookies-reassurance .button.button--text,
.legal-content > .site-shell:not(.legal-content__layout) > .about-englishire .button.button--text {
  color: #071a35 !important;
  background: #e2ca8b !important;
  border-color: #c7a052 !important;
}

#englishire-privacy-reassurance .button.button--text:hover,
#englishire-privacy-reassurance .button.button--text:focus-visible,
#englishire-cookies-reassurance .button.button--text:hover,
#englishire-cookies-reassurance .button.button--text:focus-visible,
.legal-content > .site-shell:not(.legal-content__layout) > .about-englishire .button.button--text:hover,
.legal-content > .site-shell:not(.legal-content__layout) > .about-englishire .button.button--text:focus-visible {
  color: #ffffff !important;
  background: #9f1528 !important;
  border-color: #9f1528 !important;
}

.site-footer__legal a[aria-current="page"] {
  color: #e2ca8b !important;
  border-bottom: 1px solid #c7a052;
}

/* Legal pages: force a fully legible default state for the final contact action. */
#englishire-privacy-reassurance a.button[href="contact.html"],
#englishire-cookies-reassurance a.button[href="contact.html"],
.legal-content > .site-shell:not(.legal-content__layout) .about-englishire a.button[href="contact.html"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: #9f1528 !important;
  border-color: #c7a052 !important;
  opacity: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 0.55rem 1.3rem rgba(159, 21, 40, 0.28) !important;
}

#englishire-privacy-reassurance a.button[href="contact.html"]::after,
#englishire-cookies-reassurance a.button[href="contact.html"]::after,
.legal-content > .site-shell:not(.legal-content__layout) .about-englishire a.button[href="contact.html"]::after {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#englishire-privacy-reassurance a.button[href="contact.html"]:hover,
#englishire-privacy-reassurance a.button[href="contact.html"]:focus-visible,
#englishire-cookies-reassurance a.button[href="contact.html"]:hover,
#englishire-cookies-reassurance a.button[href="contact.html"]:focus-visible,
.legal-content > .site-shell:not(.legal-content__layout) .about-englishire a.button[href="contact.html"]:hover,
.legal-content > .site-shell:not(.legal-content__layout) .about-englishire a.button[href="contact.html"]:focus-visible {
  color: #071a35 !important;
  -webkit-text-fill-color: #071a35 !important;
  background-color: #e2ca8b !important;
  border-color: #e2ca8b !important;
}

#englishire-privacy-reassurance a.button[href="contact.html"]:hover::after,
#englishire-privacy-reassurance a.button[href="contact.html"]:focus-visible::after,
#englishire-cookies-reassurance a.button[href="contact.html"]:hover::after,
#englishire-cookies-reassurance a.button[href="contact.html"]:focus-visible::after,
.legal-content > .site-shell:not(.legal-content__layout) .about-englishire a.button[href="contact.html"]:hover::after,
.legal-content > .site-shell:not(.legal-content__layout) .about-englishire a.button[href="contact.html"]:focus-visible::after {
  color: #071a35 !important;
  -webkit-text-fill-color: #071a35 !important;
}

/* Terms page: restore the missing inner spacing in the final principle panel. */
.legal-content > .site-shell:not(.legal-content__layout) > .about-englishire {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.legal-content > .site-shell:not(.legal-content__layout) > .about-englishire > h2,
.legal-content > .site-shell:not(.legal-content__layout) > .about-englishire > p {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.legal-content > .site-shell:not(.legal-content__layout) > .about-englishire > h2 {
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
}

.legal-content > .site-shell:not(.legal-content__layout) > .about-englishire > p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.legal-content > .site-shell:not(.legal-content__layout) > .about-englishire > p:last-child {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

/* Journal articles: preserve each hero image's complete composition. */
.journal-article-hero img {
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}


/* Enquiry flow and confirmation page */
.email-enquiry-form__email-fallback {
  margin-top: 0.8rem;
  color: var(--muted);
}

.email-enquiry-form__email-fallback a,
.thank-you-page .enquiry-strip a {
  color: inherit;
  border-bottom: 1px solid currentColor;
}

.thank-you-page .service-hero__summary {
  max-width: 58rem;
}

.thank-you-page .about-englishire .service-hero__actions {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.thank-you-page .about-englishire .button--light {
  color: var(--royal-navy-deep);
  background: var(--ivory-light);
  border-color: var(--crown-gold-light);
}

.thank-you-page .about-englishire .button--light:hover,
.thank-you-page .about-englishire .button--light:focus-visible {
  color: var(--white);
  background: var(--crimson);
  border-color: var(--crimson);
}

.thank-you-page .about-englishire .button--primary {
  border-color: var(--crown-gold-light);
}

.thank-you-page .enquiry-strip__content p {
  color: rgba(255, 255, 255, 0.84);
}
