/* R31 focused alignment, booking heading and accessible responsive refinements.
   The site-wide --pad and 1240px container are the source of truth. */
/* R32: one shared outer grid; total available width includes responsive padding.
   This replaces R31's content-box-only override on two homepage sections. */
:root { --site-content-max: 1240px; --site-gutter: var(--pad); }
.container {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--site-content-max) + 2 * var(--site-gutter));
  padding-inline: var(--site-gutter);
  margin-inline: auto;
}
.home-page #testimonials > .container,
.home-page #availability > .container {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--site-content-max) + 2 * var(--site-gutter)) !important;
}
.home-page #testimonials .section-lead,
.home-page #availability .section-lead {
  max-width: 100%;
}
.home-page #testimonials .review-grid,
.home-page #availability .booking-calendar-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  min-width: 0;
  margin-inline: 0 !important;
}
.home-page #availability iframe {
  box-sizing: border-box;
  max-width: 100%;
}
/* Match the other main page titles: one semantic H1, same size and spacing. */
body main.site-booking-page > h1.booking-page-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem) !important;
  font-weight: 750;
  line-height: 1.18 !important;
  letter-spacing: -.025em;
  margin: 0 0 14px !important;
}
body main.site-booking-page > #booking-loading {
  margin: 0 0 18px;
}
.story-filters button:focus-visible,
.story-full summary:focus-visible,
.site-nav-consistent a:focus-visible {
  outline: 3px solid #1764a6;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .home-page #testimonials .review-grid { grid-template-columns: minmax(0, 1fr); }
  .home-page #availability .booking-calendar-wrap { overflow: visible; }
  body main.site-booking-page > h1.booking-page-heading {
    font-size: clamp(1.85rem, 6.2vw, 2.2rem) !important;
  }
}

/* R32-002: compact, outcome-led A-Level proof rather than an almost empty section. */
.a-level-results-section .a-level-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 18px;
}
.a-level-results-section .a-level-result-card {
  padding: 21px;
  min-width: 0;
}
.a-level-results-section .a-level-result-card h3 { margin: 5px 0 10px; font-size: 1.15rem; line-height: 1.35; }
.a-level-results-section .a-level-result-card p { margin: 0 0 12px; }
.a-level-results-section .a-level-result-card a { font-weight: 650; }
.a-level-results-section .a-level-results-links { margin: 4px 0 0; }
@media (max-width: 850px) {
  .a-level-results-section .a-level-results-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* R33: short, genuine anonymous excerpts, styled in the existing navy/blue palette. */
.story-quotation, .a-level-proof-quote {
  margin: 16px 0 0;
  padding: 13px 16px;
  border-left: 3px solid #1471b8;
  border-radius: 0 8px 8px 0;
  background: #f2f7fb;
  color: #273e56;
}
.story-quotation p, .a-level-proof-quote p { margin: 0 0 7px; line-height: 1.5; font-style: italic; }
.story-quotation cite, .a-level-proof-quote cite { display: block; font-style: normal; font-size: .86rem; color: #50647b; font-weight: 650; }
.story-quotation-compact { padding: 10px 12px; margin: 10px 0; font-size: .92rem; }
.story-article .story-full { margin-top: 14px; }
.a-level-proof-quote { max-width: 760px; margin: 10px 0 18px; }
@media (max-width:760px) {
  .story-quotation, .a-level-proof-quote { padding: 12px 13px; }
  .story-quotation-compact { font-size: .9rem; }
}
