/* Shared content geometry, loaded after page-family presentation.
 * Inquire's wide sections use a 1152px box with 16px padding: 1120px content.
 * Section backgrounds remain full bleed; inner text/media may be narrower.
 */
body.tbt-site :where(.tbt-home-container),
body.tbt-site .tbt-programme-container,
body.tbt-site .tbt-programme-hero__content,
body.tbt-site .tbt-testimonials-container,
body.tbt-site .tbt-testimonials-hero__content,
body.tbt-site .tbt-resource-shell,
body.tbt-site .tbt-institutional-shell,
body.tbt-site .tbt-reading-width,
body.tbt-site .tbt-about-tutors .tbt-tutors,
body.tbt-site .site-header .site-header__inner {
  width: min(var(--tbt-page), calc(100% - 2 * var(--tbt-gutter)));
  margin-inline: auto;
}

body.tbt-site .tbt-section {
  padding-inline: max(var(--tbt-gutter), calc((100% - var(--tbt-page)) / 2));
}

body.tbt-site .site-footer {
  padding-inline: var(--tbt-gutter);
}

body.tbt-site .site-footer__inner {
  width: min(100%, var(--tbt-page));
  margin-inline: auto;
}

body.tbt-site .site-header .site-header__inner {
  padding-inline: 0;
}

/* Every Inquire-design section follows the shared content width (--tbt-page), including the header and footer tracks. */

body.tbt-site .tbt-home-inquire .tbt-home-container,
body.tbt-site .tbt-home-inquire .tbt-home-hero__carousel {
  width: min(var(--tbt-page), calc(100% - 2 * var(--tbt-gutter)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

body.tbt-site:is(.home, .page-template-page-intensivefix) .site-footer__inner {
  width: min(100%, var(--tbt-page));
}

/* Shared navigation spans the content track: logo left, menu centred, Contact Us right; IntensiveFix uses the same header. */
body.tbt-site .site-header:not(.tbt-landing-header) .site-brand { justify-self: start; }
@media (min-width: 981px) {
  body.tbt-site .site-header:not(.tbt-landing-header) .site-header__inner { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); justify-content: stretch; column-gap: 8px; }
  body.tbt-site .site-header:not(.tbt-landing-header) .site-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  body.tbt-site .site-header:not(.tbt-landing-header) .site-nav { grid-column: 2; grid-row: 1; justify-self: center; align-self: center; }
  body.tbt-site .site-header:not(.tbt-landing-header) .site-header__cta { grid-column: 3; grid-row: 1; justify-self: end; }
}
