/* ThatBioTutor shared design standard, loaded last on every page.
 *
 * One content width (--tbt-page, 1120px), one font (Poppins), one type scale, one
 * set of brand colours, one button, one section rhythm and one set of touch targets
 * across the homepage, IntensiveFix, programme, results, notes, about, causes and
 * contact pages. Page stylesheets keep only what is unique to a page.
 *
 * The homepage and IntensiveFix already follow these values through pages-home.css,
 * so this file normalises the other page families to match them.
 */
:root {
  --tbt-std-ink: #19221a;
  --tbt-std-body: #4e5950;
  --tbt-std-green: #2f8a27;
  --tbt-std-green-bright: #43b43a;
  --tbt-std-green-hover: #2f8a27;
  --tbt-std-forest: #0e371d;
  --tbt-std-soft: #f0f8ee;
  --tbt-std-line: #dbe6d6;
  --tbt-std-radius: 18px;
  --tbt-std-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Font family ---------- */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content,
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content *,
body.tbt-site .site-footer,
body.tbt-site .site-footer * {
  font-family: var(--tbt-font);
}

/* ---------- Type scale ---------- */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content h1 {
  font-size: clamp(2rem, 1.1rem + 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Our Causes: both numbered section bars read as equals, so its h1 bar uses the h2 size. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-institutional-title-bar h1 {
  font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.25rem);
  line-height: 1.25;
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content h2 {
  font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content h3 {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(p, li, blockquote, dd, summary) {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.7;
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(h1, h2, h3, h4) {
  overflow-wrap: break-word;
}

/* Small labels share one eyebrow style. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is([class*="kicker"], [class*="eyebrow"]) {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- Section rhythm ---------- */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-programme-section, .tbt-testimonials-year, .tbt-testimonials-featured, .tbt-resource-section, .tbt-institutional-section, .tbt-causes-section) {
  padding-block: var(--tbt-section);
}

@media (max-width: 768px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-programme-section, .tbt-testimonials-year, .tbt-testimonials-featured, .tbt-resource-section, .tbt-institutional-section, .tbt-causes-section) {
    padding-block: 48px;
  }
}

/* ---------- Brand button (one shape, one green, one type) ---------- */
body.tbt-site #main-content :is(.tbt-button, .tbt-programme-button, .tbt-testimonials-button, .tbt-resource-button, .tbt-institutional-button) {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border: 0;
  border-radius: 9999px;
  background: var(--tbt-std-green-bright);
  box-shadow: 0 10px 22px -8px rgba(14, 55, 29, 0.35);
  color: #fff;
  font-family: var(--tbt-font);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s var(--tbt-std-ease), box-shadow 0.25s var(--tbt-std-ease), transform 0.25s var(--tbt-std-ease);
}

body.tbt-site #main-content :is(.tbt-button, .tbt-programme-button, .tbt-testimonials-button, .tbt-resource-button, .tbt-institutional-button):is(:hover, :focus, :focus-visible) {
  background: var(--tbt-std-green-hover);
  box-shadow: 0 14px 28px -10px rgba(14, 55, 29, 0.45);
  color: #fff;
}

body.tbt-site #main-content :is(.tbt-button, .tbt-programme-button, .tbt-testimonials-button, .tbt-resource-button, .tbt-institutional-button):active {
  background: var(--tbt-std-green-hover);
  box-shadow: 0 6px 14px -8px rgba(14, 55, 29, 0.4);
  color: #fff;
  transform: translateY(1px);
}

@media (hover: hover) {
  body.tbt-site #main-content :is(.tbt-button, .tbt-programme-button, .tbt-testimonials-button, .tbt-resource-button, .tbt-institutional-button):hover {
    transform: translateY(-2px);
  }
}

/* ---------- Colour ---------- */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content {
  color: var(--tbt-std-ink);
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content a:not([class]) {
  color: var(--tbt-std-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Touch targets and carousels ---------- */
body.tbt-site #main-content :is([data-review-expand], [data-review-prev], [data-review-next], [data-faq-button], summary) {
  min-height: 44px;
}

body.tbt-site #main-content :is([data-review-prev], [data-review-next]) {
  min-width: 44px;
}

body.tbt-site #main-content [data-review-expand] {
  min-width: 44px;
  padding-inline: 12px;
}

/* Carousel dots stay small to look at but get a 44px touch area. */
body.tbt-site #main-content [data-carousel-dot] { position: relative; }
body.tbt-site #main-content [data-carousel-dot]::after { position: absolute; inset: -19px -8px; content: ""; }

body.tbt-site #main-content :is(.tbt-resource-carousel__control, .tbt-tutor__document-control, .tbt-carousel__control, [data-carousel-prev], [data-carousel-next]) {
  min-width: 44px;
  min-height: 44px;
}

body.tbt-site #main-content :is(.tbt-resource-carousel__control, .tbt-tutor__document-control, .tbt-carousel__control):is(:hover, :focus, :active) {
  background: rgba(14, 55, 29, 0.85);
  color: #fff;
}

body.tbt-site #main-content :is(.tbt-resource-carousel__control, .tbt-tutor__document-control, .tbt-carousel__control) {
  transition: background-color 0.25s var(--tbt-std-ease), transform 0.25s var(--tbt-std-ease);
}

/* ---------- Smooth effects ---------- */
/* Cards lift softly on devices that can hover; touch devices keep them still. */
@media (hover: hover) and (pointer: fine) {
  body.tbt-site #main-content :is(.tbt-inclusion-card, .tbt-notes-benefit, .tbt-cell-feature, .tbt-testimonial, .tbt-tutor, .tbt-programme-phase, .tbt-faq) {
    transition: transform 0.35s var(--tbt-std-ease), box-shadow 0.35s var(--tbt-std-ease);
  }

  body.tbt-site #main-content :is(.tbt-inclusion-card, .tbt-notes-benefit, .tbt-cell-feature, .tbt-testimonial, .tbt-tutor, .tbt-programme-phase):hover {
    box-shadow: 0 18px 36px -18px rgba(14, 55, 29, 0.35);
    transform: translateY(-4px);
  }
}

/* Menus open with a short fade and slide instead of snapping. */
@keyframes tbt-std-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

body.tbt-site .site-nav__submenu:not([hidden]),
body.tbt-site .site-nav:not([hidden]) {
  animation: tbt-std-menu-in 0.28s var(--tbt-std-ease);
}

@media (min-width: 981px) {
  body.tbt-site .site-nav:not([hidden]) { animation: none; }
}

/* Images settle in once loaded. */
@keyframes tbt-std-image-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.tbt-site #main-content img {
  animation: tbt-std-image-in 0.5s ease both;
}

/* Keyboard focus is visible and on-brand everywhere. */
body.tbt-site :is(a, button, summary, [role="button"]):focus-visible {
  outline: 3px solid var(--tbt-std-green-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body.tbt-site #main-content img,
  body.tbt-site .site-nav__submenu,
  body.tbt-site .site-nav { animation: none; }
}

/* ---------- Long review lists ---------- */
body.tbt-site #main-content .tbt-testimonial[hidden] { display: none; }

@keyframes tbt-std-review-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

body.tbt-site #main-content .tbt-testimonial.is-revealed { animation: tbt-std-review-in 0.5s var(--tbt-std-ease) both; }

.tbt-reviews-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin: 40px auto 0;
}

.tbt-reviews-controls button {
  min-height: 48px;
  padding: 12px 28px;
  border: 2px solid var(--tbt-std-forest); /* forest, so review buttons never look like the bright-green action buttons */
  border-radius: 9999px;
  background: transparent;
  color: var(--tbt-std-forest);
  font: 700 1rem/1.4 var(--tbt-font);
  cursor: pointer;
  transition: background-color 0.25s var(--tbt-std-ease), color 0.25s var(--tbt-std-ease), transform 0.25s var(--tbt-std-ease);
}

.tbt-reviews-controls button.tbt-reviews-controls__more {
  background: var(--tbt-std-forest);
  color: #fff;
}

.tbt-reviews-controls button:is(:hover, :focus, :active) { background: #0e371d; border-color: #0e371d; color: #fff; }
.tbt-reviews-controls[hidden], .tbt-reviews-controls button[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  body.tbt-site #main-content .tbt-testimonial.is-revealed { animation: none; }
}

/* ---------- Section heights follow their content ---------- */
/* The original Wix layout fixed every section at a pixel height; here each section is as tall as what it holds. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(
  .tbt-programme-section, .tbt-resource-section, .tbt-institutional-section, .tbt-causes-section,
  .tbt-testimonials-year, .tbt-testimonials-featured, .tbt-testimonials-results-band,
  .tbt-resource-reviews, .tbt-resource-reviews--lead, .tbt-notes-details, .tbt-notes-benefit,
  .tbt-cell-access, .tbt-cell-access__promise, .tbt-cell-access__instructions, .tbt-contact-content,
  .tbt-programme-testimonials .tbt-testimonial, .tbt-solution-list article, .tbt-programme-proof, .tbt-inclusion-card,
  .tbt-notes-hero, .tbt-notes-benefits, .tbt-notes-access-intro, .tbt-cell-important, .tbt-recommendations-page,
  .tbt-notes-page .tbt-notes-benefits article.tbt-notes-benefit
) {
  min-height: 0;
}

/* Spacing between items is a steady rhythm, not a share of a fixed height. */
body.tbt-site #main-content .tbt-resource-reviews--lead .tbt-testimonials { min-height: 0; justify-content: flex-start; gap: 8px; }
body.tbt-site #main-content .tbt-notes-benefits__grid { gap: 32px; }

/* Heroes keep a strong first screen without filling it. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-programme-hero, .tbt-resource-hero) {
  min-height: clamp(380px, 56vh, 560px);
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-cell-hero { min-height: 0; }

/* =====================================================================
 * Rounded, soft style: every card, picture, video and bar shares one
 * 18px radius, a soft green outline instead of black borders, and forest
 * green instead of near-black fills.
 * ===================================================================== */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content {
  --std-card-border: 1px solid var(--tbt-std-line);
  --std-card-shadow: 0 18px 38px -26px rgba(14, 55, 29, 0.4);
}

/* Pictures and video frames */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(img, video, iframe):not([class*="hero"]):not([class*="logo"]):not(.tbt-tutor__portrait):not([width="1"]):not(.tbt-inclusion-icon img):not(:is([class*="hero"], [class*="background"], [class*="banner"], [class*="shade"]) img) {
  border-radius: var(--tbt-std-radius);
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-video, .tbt-video--testimonial, .tbt-resource-carousel__viewport, .tbt-programme-testimonials .tbt-testimonial, .tbt-inclusion-card, .tbt-programme-topics, .tbt-programme-track, [class*="__media"], .tbt-founder-message__image, .tbt-about-beliefs__image, .tbt-about-quality__image) {
  border-radius: var(--tbt-std-radius);
  overflow: hidden;
}

/* Outlined boxes: soft green line, never black */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-programme-levels__grid a, .tbt-programme-options__grid article, .tbt-programme-proof, .tbt-programme-track, .tbt-programme-testimonials .tbt-testimonial, .tbt-testimonials-featured .tbt-video--testimonial, .tbt-testimonials-artwork img, #class-of-2023 .tbt-testimonials-artwork--landscape img, .tbt-testimonials-artwork-band--2022 .tbt-testimonials-artwork img) {
  border: var(--std-card-border);
  box-shadow: var(--std-card-shadow);
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-programme-levels__grid a, .tbt-programme-options__grid article, .tbt-programme-proof, .tbt-inclusion-card) {
  border-radius: var(--tbt-std-radius);
}

/* Section title bars become rounded forest bars inside the content width */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-institutional-title-bar {
  width: min(var(--tbt-page), calc(100% - 2 * var(--tbt-gutter)));
  margin-inline: auto;
  border-radius: var(--tbt-std-radius);
  background: var(--tbt-std-forest);
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content mark {
  padding: 0.05em 0.35em;
  border-radius: 8px;
  background: #d9f2d2;
  color: var(--tbt-std-forest);
}

/* ---------- Testimonials: clean cards ---------- */
body.tbt-site #main-content .tbt-testimonials-year .tbt-testimonial {
  align-items: stretch;
  gap: 18px;
  padding: 24px;
  border: var(--std-card-border, 1px solid var(--tbt-std-line));
  border-radius: var(--tbt-std-radius);
  background: #fff;
  box-shadow: 0 18px 38px -26px rgba(14, 55, 29, 0.4);
  text-align: left;
}

body.tbt-site #main-content .tbt-testimonials-year .tbt-testimonial .tbt-video--testimonial {
  width: 100%;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

body.tbt-site #main-content .tbt-testimonial blockquote {
  margin: 0;
  color: var(--tbt-std-ink);
  text-align: left;
}

body.tbt-site #main-content .tbt-testimonial blockquote p {
  margin: 0 0 0.9em;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
}

body.tbt-site #main-content .tbt-testimonial blockquote p:last-child { margin-bottom: 0; }

body.tbt-site #main-content .tbt-testimonial__name {
  margin: 0;
  color: var(--tbt-std-green);
  font-weight: 700;
}
/* Names on the dark green Cell Division review cards use the shared light green. */
body.tbt-site #main-content .tbt-cell-reviews .tbt-testimonial__name { color: var(--tbt-green-on-dark, #8fe17e); }

body.tbt-site #main-content .tbt-testimonial__stars {
  color: #f7a619;
  letter-spacing: 0.08em;
}

/* Two clean columns for text reviews on wide screens; videos keep one column. */
@media (min-width: 900px) {
  body.tbt-site #main-content .tbt-testimonials-year .tbt-testimonials {
    display: block;
    column-count: 2;
    column-gap: 28px;
  }

  body.tbt-site #main-content .tbt-testimonials-year .tbt-testimonials > .tbt-testimonial {
    break-inside: avoid;
    margin-bottom: 28px;
  }
}

body.tbt-site #main-content .tbt-testimonials-year .tbt-testimonials { gap: 28px; }
body.tbt-site #main-content #class-of-2025 .tbt-testimonials,
body.tbt-site #main-content #class-of-2024 .tbt-testimonials,
body.tbt-site #main-content #class-of-2023 .tbt-testimonials { gap: 28px; }

body.tbt-site #main-content .tbt-testimonials-artwork-band,
body.tbt-site #main-content .tbt-testimonials-results-band {
  background: var(--tbt-std-forest);
}

body.tbt-site #main-content .tbt-testimonials-artwork-band .tbt-testimonials-artwork img { border: 0; }

/* The homepage results graphic shares the rounded picture style. */
body.tbt-site .tbt-home-proof__results img { border-radius: var(--tbt-std-radius); }

/* Tutor portraits are always true circles. */
body.tbt-site #main-content .tbt-tutor__portrait { border-radius: 50%; object-fit: cover; aspect-ratio: 1; }

/* Photo frames fill their box instead of floating in blank space. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-programme-track {
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
  object-fit: cover;
}

body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-programme-proof {
  padding: 20px 14px;
  gap: 6px;
}

body.tbt-site #main-content .tbt-testimonial blockquote p { margin-bottom: 0.7em; }

/* Edge-to-edge pictures stay square where they meet the browser edge. */
body.tbt-site #main-content :is([class*="background"], [class*="shade"], [class*="hero"]:not(.tbt-intensivefix-hero__graphics):not(.tbt-home-hero__carousel)) :is(img, video):not(.tbt-intensivefix__graphic) { border-radius: 0; }

/* ---------- FAQ: hover keeps dark readable text ---------- */
body.tbt-site .tbt-home-faq__item button:is(:hover, :focus, :focus-visible, :active) { color: var(--tbt-std-ink); }

/* ---------- FastTrack pictures: compact, starting level with their phrase ---------- */
body.tbt-site .tbt-home-fasttrack__tbt-content { align-items: stretch; }
body.tbt-site .tbt-home-fasttrack__tbt-content img {
  width: 42px;
  height: auto;
  max-height: 48px;
  flex: 0 0 42px;
  align-self: flex-start;
  object-fit: contain;
  object-position: center top;
}

@media (max-width: 520px) {
  body.tbt-site .tbt-home-fasttrack__tbt-content img { width: 42px; flex-basis: 42px; max-height: 48px; }
}

/* ---------- Google reviews: equal cards, arrows in their own gutters ---------- */
body.tbt-site .tbt-google-reviews { padding-inline: 72px; }
body.tbt-site .tbt-google-reviews__track { align-items: stretch; }
body.tbt-site .tbt-google-review { display: flex; min-height: 340px; flex-direction: column; align-items: center; }
body.tbt-site .tbt-google-review__text { flex: 1 1 auto; }
body.tbt-site .tbt-google-reviews__controls button { width: 44px; height: 44px; top: calc(50% - 22px); }
body.tbt-site .tbt-google-reviews__controls [data-review-prev] { left: 14px; }
body.tbt-site .tbt-google-reviews__controls [data-review-next] { right: 14px; }

@media (max-width: 768px) {
  body.tbt-site .tbt-google-reviews { padding: 24px 16px 84px; }
  body.tbt-site .tbt-google-reviews__controls button { top: auto; bottom: 28px; }
  body.tbt-site .tbt-google-reviews__controls [data-review-prev] { left: calc(50% - 56px); }
  body.tbt-site .tbt-google-reviews__controls [data-review-next] { right: calc(50% - 56px); }
}

/* ---------- Closing: photo is as tall as the text beside it ---------- */
body.tbt-site .tbt-home-closing__inner { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: stretch; }
body.tbt-site .tbt-home-closing figure { width: 100%; height: auto; min-height: 100%; }
body.tbt-site .tbt-home-closing img { height: 100%; }

@media (max-width: 768px) {
  body.tbt-site .tbt-home-closing__inner { grid-template-columns: minmax(0, 1fr); }
  body.tbt-site .tbt-home-closing figure { width: min(100%, 420px); aspect-ratio: 1 / 1; min-height: 0; margin-inline: auto; }
}

/* Pictures that run edge to edge on a phone stay square at the browser edge. */
@media (max-width: 640px) {
  body.tbt-site #main-content .tbt-causes-section__media--square :is(img, video) { border-radius: 0 !important; }
  body.tbt-site #main-content .tbt-causes-section__media--square { border-radius: 0 !important; }
}

/* ---------- Hero headline: original 864px text measure inside the shared 1120px container ---------- */
body.tbt-site .tbt-home-hero h1 {
  padding-inline: clamp(0px, calc((100% - 864px) / 2), 128px);
  text-wrap: wrap;
}

/* ---------- FastTrack heading colours (shared by the homepage and IntensiveFix) ---------- */
body.tbt-site .tbt-home-fasttrack .tbt-home-eyebrow { color: var(--tbt-green-on-dark, #8fe17e); }
body.tbt-site .tbt-home-fasttrack h2 span { color: var(--tbt-green-on-dark, #8fe17e); }

/* ---------- Pictures cannot be dragged on any page ---------- */
body.tbt-site img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

/* ---------- Tablet and phone fit ---------- */
/* FAQ questions wrap inside their row (the parent theme's buttons never wrap) and keep the plus icon on screen. */
body.tbt-site .tbt-home-faq__item button {
  grid-template-columns: minmax(0, 1fr) 24px;
  white-space: normal;
  text-align: left;
}
body.tbt-site .tbt-home-faq__item button > span:first-child { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  body.tbt-site .tbt-home-faq__item button { gap: 12px; padding: 16px 18px; font-size: 16px; line-height: 24px; }
  body.tbt-site .tbt-home-faq__answer p { padding: 18px; font-size: 16px; }
  body.tbt-site .tbt-landing-header__cta { font-size: 14px; }
  body.tbt-site .tbt-home-fasttrack__comparison strong { font-size: 13px; }
}

/* Comfortable touch targets for the small text links. */
body.tbt-site .tbt-google-reviews__source { padding-block: 12px; font-size: 13px; }

@media (max-width: 768px) {
  body.tbt-site .tbt-home-closing figure { margin-bottom: 28px; }
}

/* ---------- Classes page: readable labels, centred headings, visible practical photos ---------- */
body.tbt-site .tbt-classes-page .tbt-programme-struggles .tbt-programme-kicker,
body.tbt-site .tbt-classes-page .tbt-programme-results .tbt-programme-kicker { color: var(--tbt-green-on-dark, #8fe17e); }

body.tbt-site .tbt-classes-page .tbt-programme-section > .tbt-programme-container > .tbt-programme-kicker { display: flex; justify-content: center; }
body.tbt-site .tbt-classes-page .tbt-programme-section > .tbt-programme-container > h2,
body.tbt-site .tbt-classes-page .tbt-programme-levels > .tbt-programme-container > p { margin-inline: auto; text-align: center; }
body.tbt-site .tbt-classes-page .tbt-programme-difference > .tbt-programme-container > h2 { justify-content: center; }
body.tbt-site #main-content .tbt-classes-page .tbt-programme-levels__button { display: flex; width: max-content; max-width: 100%; margin-inline: auto; }
body.tbt-site .tbt-classes-page .tbt-programme-levels__grid { margin-inline: 0; }

/* The three practical-session photos show instead of leaving a blank gap. */
body.tbt-site .tbt-classes-page .tbt-practical-grid { visibility: visible; height: auto; margin-top: 32px; }
body.tbt-site .tbt-classes-page .tbt-practical-photo { height: 280px; border-radius: 18px; }
@media (max-width: 768px) {
  body.tbt-site .tbt-classes-page .tbt-practical-photo { height: 220px; }
}

/* ---------- Classes page: lighter hero, struggle list, shared widths, white results, clearer level cards ---------- */
body.tbt-site .tbt-classes-page .tbt-programme-hero__shade { background: rgba(0, 0, 0, .3); }

/* The topic lists are as wide as the paragraph above them. */
body.tbt-site .tbt-classes-page .tbt-topic-columns { width: min(100%, 920px); gap: 58px; }

/* "Why students struggle" is its own near-black block, so it reads apart from the green "How TBT solves" block. */
body.tbt-site .tbt-classes-page .tbt-programme-struggles { background: var(--tbt-std-forest); }
body.tbt-site .tbt-classes-page .tbt-programme-struggles > .tbt-programme-container > .tbt-programme-kicker { display: flex; justify-content: center; }
body.tbt-site .tbt-classes-page .tbt-programme-struggles > .tbt-programme-container > h2 { width: 100%; max-width: none; margin-inline: auto; text-align: center; }
body.tbt-site .tbt-classes-page .tbt-struggle-list { gap: 40px; margin-top: 36px; }
body.tbt-site .tbt-classes-page .tbt-struggle-list h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-style: italic; font-weight: 700; line-height: 1.25; }
body.tbt-site .tbt-classes-page .tbt-struggle-list h3 span { color: var(--tbt-green-on-dark, #8fe17e); }
body.tbt-site .tbt-classes-page .tbt-struggle-list article:last-child h3 span { color: var(--tbt-green-on-dark, #8fe17e); }
body.tbt-site .tbt-classes-page .tbt-struggle-list p { max-width: none; font-size: 18px; }

/* "How TBT solves each one" and "What makes our classes unlike any other" use the shared content width. */
body.tbt-site .tbt-classes-page .tbt-solution-list { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.tbt-site .tbt-classes-page .tbt-practical-feature > p { max-width: 920px; }

/* Results numbers are white. */
body.tbt-site .tbt-classes-page .tbt-programme-stats strong { color: #fff; }

/* Level cards: pale-green card, dark text, green title and link. */
body.tbt-site #main-content .tbt-classes-page .tbt-programme-levels__grid a { border: 1px solid #dbe6d6; background: #edf5e8; color: #263029; }
body.tbt-site #main-content .tbt-classes-page .tbt-programme-levels__grid a span { color: #3a463d; }

@media (max-width: 768px) {
  body.tbt-site .tbt-classes-page .tbt-solution-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Classes page: tighter rhythm, white FAQ, difference section in normal flow ---------- */
body.tbt-site:not(.home) #main-content .tbt-classes-page .tbt-programme-section { min-height: 0; padding-block: 52px; }
body.tbt-site:not(.home) #main-content .tbt-classes-page .tbt-programme-faq { background: #fff; } /* Shared white FAQ background. */

body.tbt-site .tbt-classes-page .tbt-programme-copy > p { margin-bottom: 36px; }
body.tbt-site .tbt-classes-page .tbt-programme-definition__grid { gap: 24px; }
body.tbt-site .tbt-classes-page .tbt-programme-levels__grid { margin-block: 36px 28px; }

/* The difference section flows top to bottom instead of being positioned inside a tall fixed box. */
body.tbt-site .tbt-classes-page .tbt-difference-layout { display: grid; min-height: 0; gap: 36px; padding-top: 24px; }
body.tbt-site .tbt-classes-page .tbt-difference-layout > .tbt-programme-artwork { order: -1; position: static; justify-self: center; width: min(100%, 440px); max-height: none; transform: none; }
body.tbt-site .tbt-classes-page .tbt-difference-list { position: static; gap: 36px 56px; }
body.tbt-site .tbt-classes-page .tbt-practical-feature { margin-top: 28px; }
body.tbt-site .tbt-classes-page .tbt-programme-levels__help a { display: inline-block; padding-block: 10px; }

@media (max-width: 768px) {
  body.tbt-site:not(.home) #main-content .tbt-classes-page .tbt-programme-section { padding-block: 40px; }
  body.tbt-site .tbt-classes-page .tbt-difference-layout { padding-top: 12px; }
  body.tbt-site .tbt-classes-page .tbt-difference-list { gap: 28px; }
}

/* ---------- Programme FAQ (Classes, Sec 3, Sec 4): questions wrap, plus icon, no pink hover ---------- */
body.tbt-site .tbt-programme-faq .tbt-faq [data-faq-button] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
body.tbt-site .tbt-programme-faq .tbt-faq [data-faq-button]::after {
  flex: 0 0 auto;
  color: var(--tbt-std-green);
  content: "+";
  font-size: 1.6em;
  font-weight: 500;
  line-height: 1;
}
body.tbt-site .tbt-programme-faq .tbt-faq [data-faq-button][aria-expanded="true"]::after { content: "\2212"; }
body.tbt-site .tbt-programme-faq .tbt-faq [data-faq-button]:is(:hover, :focus, :focus-visible, :active) {
  background: transparent;
  color: var(--tbt-std-ink);
}

/* "What makes our classes unlike any other": big heading with green keywords, tight spacing to the picture. */
body.tbt-site #main-content .tbt-classes-page .tbt-programme-difference > .tbt-programme-container > h2 { display: block; margin-bottom: 0; text-align: center; font-size: clamp(1.75rem, 4.2vw, 3rem); line-height: 1.15; }
body.tbt-site .tbt-classes-page .tbt-programme-difference > .tbt-programme-container > h2 span { color: var(--tbt-green-text, #2f8a27); }
body.tbt-site .tbt-classes-page .tbt-difference-layout { padding-top: 24px; gap: 28px; }
body.tbt-site .tbt-classes-page .tbt-programme-difference .tbt-programme-kicker { margin-bottom: 12px; }
body.tbt-site #main-content .tbt-classes-page .tbt-practical-feature > h3 { margin-bottom: 14px; font-size: clamp(1.625rem, 3.2vw, 2.5rem); line-height: 1.2; }

/* ---------- Sec 3 page: original hero type and colours, class options, cover, Hall of Fame, lesson video ---------- */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero__shade { background: rgba(0, 0, 0, .3); }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero :is(.tbt-programme-hero__eyebrow, h1, .tbt-programme-hero__lead) { font-family: "Montserrat", Poppins, Arial, sans-serif; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero h1 { font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero h1 span,
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero h1 .tbt-programme-hero__highlight,
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero__lead span { color: var(--tbt-green-on-dark, #8fe17e); }

/* Class options: teal header bars, check marks with bold keywords. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__grid article { background: linear-gradient(var(--tbt-std-forest) 0 80px, #fff 80px); }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__grid li { position: relative; padding-left: 24px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__grid li::first-letter { color: inherit; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__grid li::before { position: absolute; left: 0; color: #2f8a27; content: "\2713"; font-weight: 700; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__grid li strong { color: #19221a; font-weight: 700; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included { background: var(--tbt-std-forest); }

/* What we cover and Everything your child gets use the original teal. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-cover,
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-inclusions-section { background: var(--tbt-std-forest); }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-phase strong,
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-exam strong { color: #19221a; font-weight: 700; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics { grid-auto-flow: column; grid-template-rows: repeat(5, auto); }

/* Hall of Fame: the two result tables, uncropped, side by side. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hall__grid { width: min(100%, 940px); margin-inline: auto; align-items: start; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-track { width: 100%; border: 1px solid #dbe6d6; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }

/* Numbers: let the classroom photo show. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-numbers__shade { background: rgba(14, 55, 29, .55); }

/* Lesson: the original YouTube video sits under the heading, then the four points and the practical photos. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson__video { width: min(100%, 960px); margin: 28px auto 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #000; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson__video iframe { display: block; width: 100%; height: 100%; border: 0; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson__grid { margin-top: 44px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson .tbt-practical-grid { visibility: visible; height: auto; margin-top: 32px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson .tbt-practical-photo { height: 280px; border-radius: 18px; }
@media (max-width: 768px) {
  body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson .tbt-practical-photo { height: 220px; }
}
@media (max-width: 520px) {
  body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics { grid-auto-flow: row; grid-template-rows: none; }
}

/* Sec 3 hero label and heading wrap like the original. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero__eyebrow { font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero :is(h1, .tbt-programme-hero__lead) span { font-family: inherit; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero__content { width: min(calc(100% - 40px), 1100px); }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero h1 { max-width: 980px; padding-inline: 0; text-wrap: wrap; }
@media (max-width: 768px) {
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
}

/* Sec 3: light green headings on dark sections, topics list joined to its title. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-programme-lesson, .tbt-programme-inclusions-section) h2 span { color: var(--tbt-green-on-dark, #8fe17e); }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson__grid h3 { color: var(--tbt-green-on-dark, #8fe17e); }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics { border-radius: 0 0 18px 18px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-cover > .tbt-programme-container > h2:nth-of-type(2) { margin-bottom: 0; }

/* ---------- Sec 3 page, round 2: centred headings, tick icons, containers, numbers, reviews, icons, team, FAQ slider ---------- */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-programme-options, .tbt-programme-cover, .tbt-programme-faq) > .tbt-programme-container > .tbt-programme-kicker { display: flex; justify-content: center; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-programme-options, .tbt-programme-cover, .tbt-programme-faq) > .tbt-programme-container > h2 { margin-inline: auto; text-align: center; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options > .tbt-programme-container > p:not(.tbt-programme-kicker) { margin-inline: auto; text-align: center; }

/* Tick icon (replaces the text check glyph everywhere on this page). */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-tick, .tbt-programme-options__grid li, .tbt-programme-exam li) { position: relative; padding-left: 28px; list-style: none; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-tick, .tbt-programme-options__grid li, .tbt-programme-exam li)::before {
  position: absolute;
  top: .32em;
  left: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8a27' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  font-size: 0;
}
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238de15e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick { display: block; }

/* Phase 2 note inside its card; topics title and list in one card; exam card with ticks. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-phase .tbt-programme-join-note { margin: 26px 0 0; padding: 4px 0 4px 18px; border-left: 4px solid #2f8a27; background: none; color: #19221a; font-size: 15px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics-card { margin: 0 0 42px; padding: 34px 40px 38px; border-radius: 18px; background: #f0f8ee; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics-card > h2 { margin: 0 0 14px; padding: 0; border-radius: 0; background: none; color: #2f8a27; font-size: 25px; text-align: left; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics { margin: 0; padding: 0 0 0 30px; border-radius: 0; background: transparent; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-exam ul { margin: 0 0 20px; padding: 0; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-exam li { margin: 8px 0; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-exam > p { margin: 24px 0 0; padding: 4px 0 4px 18px; border-left: 4px solid #2f8a27; font-size: 15px; }

/* By the numbers: the original class photo, light overlay, light-green numbers in a 3 x 2 grid. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-numbers { padding-block: 72px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-numbers__shade { background: rgba(0, 0, 0, .28); }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-stats strong { color: var(--tbt-green-on-dark, #8fe17e); }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-stats span { color: #fff; }

/* Reviews: profile picture on top. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-testimonial__portrait { display: block; width: 62px; height: 62px; margin: 0 auto 6px; border-radius: 50%; object-fit: cover; }

/* Lesson and card titles use the original Montserrat. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-programme-lesson__grid h3, .tbt-practical-feature > h3, .tbt-inclusion-card h3) { font-family: "Montserrat", Poppins, Arial, sans-serif; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson__grid p { font-size: 15px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson .tbt-practical-feature > h3 { color: var(--tbt-green-on-dark, #8fe17e); }

/* "Everything your child gets" icons, cut out of the original icon sheet. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-inclusion-icon { position: relative; display: block; width: calc(var(--sw) / var(--sh) * 72px); height: 72px; margin: 0 auto 8px; overflow: hidden; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-inclusion-icon img { position: absolute; top: calc(var(--sy) / var(--sh) * -100%); left: calc(var(--sx) / var(--sw) * -100%); width: calc(1920 / var(--sw) * 100%); max-width: none; height: calc(1080 / var(--sh) * 100%); border-radius: 0; object-fit: fill; }

/* Team: name, then a round photo; no role or bio lines. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor { display: flex; min-height: 0; flex-direction: column; align-items: center; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor h3 { order: 0; margin: 12px 0 0; font-family: "Montserrat", Poppins, Arial, sans-serif; font-size: 22px; text-align: center; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor > p { display: none; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor img { border-radius: 50%; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-quality { padding: 28px 32px; border-radius: 18px; text-align: left; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-quality strong { display: block; margin-bottom: 14px; font-size: 20px; font-style: italic; font-weight: 800; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-quality p { margin: 10px 0; font-size: 16px; }

/* FAQ image slider. */
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider { position: relative; width: min(100%, 420px); margin: 0 auto 36px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__viewport { position: relative; aspect-ratio: 4 / 5; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider figure.is-active { opacity: 1; pointer-events: auto; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__image { width: 100%; height: 100%; border-radius: 24px; object-fit: cover; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__control { position: absolute; top: calc(50% - 22px); display: grid; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 34px; line-height: 1; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__control:is(:hover, :focus, :active) { background: transparent; color: #fff; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__control--previous { left: 4px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__control--next { right: 4px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__dots button { width: 8px; height: 8px; min-width: 8px; min-height: 8px; padding: 0; border: 0; border-radius: 50%; background: #dbe6d6; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__dots button[aria-current="true"] { width: 24px; border-radius: 8px; background: #2f8a27; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__grid b { text-decoration: underline; text-underline-offset: 2px; }
body.tbt-site :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial { justify-content: flex-start; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics-card { margin-top: 42px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-programme-topics-card > h2, .tbt-programme-exam > h2) { margin: 0 0 14px; color: #2f8a27; font-size: 25px; line-height: 1.3; text-align: left; }

/* Sec 3 screenshot refinements: natural-height option headers and shared content edges. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__grid article { padding: 0 30px 28px; overflow: hidden; background: #fff; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-option-heading { margin-inline: -30px; padding: 24px 30px; background: var(--tbt-std-forest); }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-option-heading h3 { margin: 0 0 8px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-option-heading b { display: block; line-height: 1.5; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included { grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: 18px 12px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick { white-space: nowrap; font-size: 14px; line-height: 1.6; padding-left: 24px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-programme-hall__grid, .tbt-programme-proofs, .tbt-programme-lesson__video, .tbt-programme-inclusions, .tbt-programme-quality, .tbt-programme-faq .tbt-faqs) { width: 100%; max-width: none; margin-inline: 0; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-practical-feature > p { max-width: none; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson__grid h3 { font-size: 20px; line-height: 1.35; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-practical-feature > h3 { margin: 0 0 24px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; }

/* Exact requested review treatment: small black outlines, aligned portraits, quote mark and author at foot. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 580px; padding: 20px 30px 32px; border: 1px solid #e3e6d2; border-radius: 24px; background: #fff; box-shadow: 0 24px 48px -28px rgba(14, 55, 29, .45); }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonials { gap: 24px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial::before { position: absolute; top: 12px; left: 14px; content: "❝"; color: #2f8a27; font: 700 40px/1 Georgia, serif; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials img.tbt-testimonial__portrait { clip-path: circle(42%); transform: scale(1.2); flex: 0 0 60px; width: 60px; height: 60px; margin: 0 auto 4px; border-radius: 50%; object-fit: cover; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial__stars { margin: 0; font-size: 26px; line-height: 1; letter-spacing: -2px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial__result { margin: 3px 0 0; color: var(--tbt-std-ink); font-size: 26px; line-height: 1.2; font-weight: 700; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials blockquote { width: 100%; margin: 20px 0 28px; padding: 0; border: 0; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials blockquote p { margin: 0 0 20px; color: var(--tbt-std-ink); font-size: 15px; line-height: 1.4; text-align: center; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials blockquote p:last-child { margin-bottom: 0; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial__name { margin: auto 0 0; color: var(--tbt-green-text); font-size: 15px; line-height: 1.4; font-style: italic; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider { width: min(100%, 490px); margin: 48px auto 0; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__viewport { aspect-ratio: 4 / 5; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__control { width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; background: #0e371d; color: #fff; font-size: 30px; line-height: 1; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__dots { gap: 4px; flex-wrap: wrap; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__dots button { position: relative; width: 20px; height: 32px; background: transparent; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__dots button::after { position: absolute; inset: 12px 6px; border-radius: 50%; background: #dbe6d6; content: ""; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__dots button[aria-current="true"]::after { background: #2f8a27; }
@media (max-width: 980px) {
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 640px) {
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included { grid-template-columns: minmax(0, 1fr); }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick { font-size: 14px; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial { min-height: 0; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial__name { margin-top: 12px; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-lesson__grid h3 { font-size: 18px; }
}

/* Sec 3 follow-up: spacious practical heading, four tutor columns, unobscured carousel artwork. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-practical-feature { margin-top: 40px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutors { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 24px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor h3 { min-height: 78px; display: flex; align-items: flex-start; justify-content: center; margin: 16px 0 0; font-size: 20px; line-height: 1.3; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor img { width: min(100%, 220px); height: auto; aspect-ratio: 1; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider { width: min(100%, 602px); padding-inline: 56px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__control--previous { left: 0; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__control--next { right: 0; }
@media (max-width: 980px) {
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-practical-feature { margin-top: 32px; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor h3 { min-height: 62px; font-size: 16px; margin: 10px 0 0; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor img { width: min(100%, 132px); }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider { padding-inline: 0; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__control { top: auto; bottom: 0; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__dots { display: grid; grid-template-columns: repeat(6, 20px); min-height: 64px; padding-inline: 48px; align-content: center; }
}

body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__control:is(:hover, :focus-visible) { background: #062612; color: #fff; }

/* Sec 3: warm reference FAQ background and static tutor profiles. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-faq { background: #fff; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor,
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-tutors .tbt-tutor:hover { transform: none; box-shadow: none; transition: none; }

body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__counter { display: none; }
@media (max-width: 640px) {
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__dots { display: none; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-faq-slider__counter { display: flex; height: 44px; align-items: center; justify-content: center; margin: 16px 56px 0; color: #0e371d; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
}

/* Sec 4 keeps its own original content within the shared programme presentation. */
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-topics { grid-auto-flow: row; grid-template-rows: none; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-hero__shade { background: transparent; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-hero__background img { object-position: center top !important; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-hero__content { width: min(var(--tbt-page), calc(100% - 2 * var(--tbt-gutter))); gap: 32px; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-hero__lead { max-width: 1000px; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-testimonials { background: #faf9f5; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-testimonials .tbt-testimonial { min-height: 500px; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-testimonials img.tbt-testimonial__portrait { clip-path: none; transform: none; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-testimonials .tbt-testimonial__result { font-size: 24px; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-tutors .tbt-tutor:nth-child(1) { order: 1; }
body.tbt-site #main-content .tbt-sec4-page .tbt-programme-tutors .tbt-tutor:nth-child(2) { order: 2; }
@media (max-width: 640px) {
  body.tbt-site #main-content .tbt-sec4-page .tbt-programme-testimonials .tbt-testimonial { min-height: 0; }
}

/* Classes definition: infographic left, introduction and two topic lists right. */
body.tbt-site .tbt-classes-page .tbt-programme-definition__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr); gap: 32px; align-items: start; justify-items: stretch; text-align: left; }
body.tbt-site .tbt-classes-page .tbt-programme-definition__grid > .tbt-programme-artwork { width: 100%; margin: 0; }
body.tbt-site .tbt-classes-page .tbt-programme-copy { min-width: 0; width: 100%; }
body.tbt-site .tbt-classes-page .tbt-programme-copy > p { max-width: none; margin: 0 0 28px; }
body.tbt-site .tbt-classes-page .tbt-topic-columns { width: 100%; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tbt-site .tbt-classes-page .tbt-topic-columns > div { min-width: 0; }
@media (max-width: 980px) { body.tbt-site .tbt-classes-page .tbt-programme-definition__grid { grid-template-columns: minmax(0, 1fr); } body.tbt-site .tbt-classes-page .tbt-programme-definition__grid > .tbt-programme-artwork { width: min(100%, 380px); margin-inline: auto; } }
@media (max-width: 559px) { body.tbt-site .tbt-classes-page .tbt-topic-columns { grid-template-columns: minmax(0, 1fr); } }

/* Programme polish: quiet interaction feedback. */
body.tbt-site #main-content ::selection { background: #d9f2d2; color: #0e371d; }
/* The hero's green phrases are plain coloured words (no underline or marker stroke). */
body.tbt-site #main-content .tbt-programme-button { transition: background-color 180ms ease-out, box-shadow 180ms ease-out, transform 120ms ease-out; }
body.tbt-site #main-content .tbt-programme-button:active { transform: scale(.98); }
body.tbt-site #main-content :is(a, button):focus-visible { outline: 3px solid #2f8a27; outline-offset: 5px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero :is(a, button):focus-visible { outline-color: #8fe17e; }
body.tbt-site #main-content .tbt-programme-option-heading a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
body.tbt-site #main-content .tbt-programme-option-heading a:hover { text-decoration-thickness: 2px; }
body.tbt-site #main-content .tbt-faq { transition: background-color 180ms ease-out; }
body.tbt-site #main-content .tbt-faq:has([aria-expanded="true"]) { background-color: #edf5e8; }
body.tbt-site #main-content .tbt-faq [data-faq-button] { padding-inline: 16px; }
body.tbt-site #main-content .tbt-faq__answer { padding-inline: 16px; }
body.tbt-site #main-content .tbt-faq [data-faq-button]::after { content: ""; width: 24px; height: 24px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 180ms ease-out; }
body.tbt-site #main-content .tbt-faq [data-faq-button][aria-expanded="true"]::after { content: ""; transform: rotate(180deg); }
body.tbt-site #main-content .tbt-faq-slider__control { transition: background-color 180ms ease-out, transform 120ms ease-out; }
body.tbt-site #main-content .tbt-faq-slider__control:active { scale: .95; }
body.tbt-site #main-content .tbt-faq-slider__counter { font-variant-numeric: tabular-nums; }
@media (hover: hover) {
 body.tbt-site #main-content .tbt-programme-button:hover { box-shadow: 0 6px 16px rgba(14, 55, 29, .18); }
 body.tbt-site #main-content .tbt-faq [data-faq-button]:hover { color: #19221a; }
 body.tbt-site #main-content .tbt-faq-slider__control:hover { background-color: #0e371d; }
}
@media (prefers-reduced-motion: reduce) {
 body.tbt-site #main-content .tbt-programme-button:active { transform: none; }
 body.tbt-site #main-content .tbt-faq-slider__control:active { scale: none; }
 body.tbt-site #main-content .tbt-faq [data-faq-button]::after { transition: none; }
}

/* Site-wide interaction language; geometry and page-specific presentation stay intact. */
body.tbt-site::selection, body.tbt-site ::selection { background: #d9f2d2; color: #0e371d; }
body.tbt-site :is(a[href], button, input, select, textarea, summary):focus-visible { outline: 3px solid #2f8a27; outline-offset: 5px; }
body.tbt-site .site-footer :is(a, button):focus-visible { outline-color: #8fe17e; }
body.tbt-site .site-nav__link { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 7px; transition: color 180ms ease-out, text-decoration-color 180ms ease-out; }
body.tbt-site .site-nav__link:is(:hover, :focus-visible, [aria-current="page"]) { text-decoration-color: currentColor; }
body.tbt-site #main-content :is(.tbt-home-button, .tbt-button, .tbt-programme-button, .tbt-testimonials-button, .tbt-resource-button, .tbt-institutional-button, .wpcf7-submit) { transition: background-color 180ms ease-out, box-shadow 180ms ease-out, transform 120ms ease-out; }
body.tbt-site #main-content :is(.tbt-home-button, .tbt-button, .tbt-programme-button, .tbt-testimonials-button, .tbt-resource-button, .tbt-institutional-button, .wpcf7-submit):active { transform: scale(.98); }
body.tbt-site #main-content :is(input, textarea, select) { caret-color: #2f8a27; accent-color: #2f8a27; transition: border-color 180ms ease-out, background-color 180ms ease-out; }
body.tbt-site #main-content :is(input[type="text"], input[type="email"], textarea, select):focus { background-color: #f0f8ee; }
body.tbt-site #main-content :is(button, input):disabled { cursor: not-allowed; opacity: .6; }
body.tbt-site .tbt-home-faq__item:has([aria-expanded="true"]) { background-color: #edf5e8; }
body.tbt-site .tbt-home-faq__item { transition: background-color 180ms ease-out; }
body.tbt-site #main-content :is([data-carousel-prev], [data-carousel-next], [data-review-prev], [data-review-next]) { transition: background-color 180ms ease-out, box-shadow 180ms ease-out; }
body.tbt-site #main-content :is([data-carousel-prev], [data-carousel-next], [data-review-prev], [data-review-next]):active { box-shadow: inset 0 2px 5px rgba(14,55,29,.25); }
@media (hover: hover) {
 body.tbt-site #main-content :is(.tbt-home-button, .tbt-button, .tbt-programme-button, .tbt-testimonials-button, .tbt-resource-button, .tbt-institutional-button, .wpcf7-submit):hover { transform: none; box-shadow: 0 6px 16px rgba(14, 55, 29, .18); }
}
@media (prefers-reduced-motion: reduce) {
 body.tbt-site #main-content :is(.tbt-home-button, .tbt-button, .tbt-programme-button, .tbt-testimonials-button, .tbt-resource-button, .tbt-institutional-button, .wpcf7-submit):active { transform: none; }
 body.tbt-site .site-nav__link { transition: color 100ms linear; }
}

/* ======================================================================
 * Unified design: the homepage and IntensiveFix are the template.
 * Every other page uses the same font family (Poppins), the same page-title
 * and section-heading style, the same text colours, the same dark green for
 * dark bands, and the same page-title treatment (green eyebrow, centred
 * title, green accent word). Declared with !important on purpose so the
 * older per-page "original look" rules (Montserrat, 45-65px titles, teal
 * panels, dark title bars) can no longer drift from the template.
 * ====================================================================== */
:root { --tbt-u-h1: 60px; --tbt-u-h2: 36px; }
@media (max-width: 520px) { :root { --tbt-u-h1: 36px; --tbt-u-h2: 30px; } }

/* One font family. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content,
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content *,
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content *::before,
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content *::after { font-family: var(--tbt-font) !important; }

/* One page-title and section-heading style (same size, weight and colour on every page). */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content h1 {
  font-size: var(--tbt-u-h1) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content h2:not(.tbt-programme-topics-card h2):not(.tbt-programme-exam h2) {
  font-size: var(--tbt-u-h2) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
}
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content h3 { font-weight: 800 !important; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-story-heading h3 { font-size: var(--tbt-u-h2) !important; }

/* Accent words in the new page and section titles: brand green on light backgrounds, the light green on the dark photo heroes. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-institutional-title-bar > h1, .tbt-contact-content h1) span { color: var(--tbt-green-text); }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-institutional-title-bar > h2 span { color: var(--tbt-green-on-dark); }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-programme-hero h1 em, .tbt-programme-hero h1 .tbt-programme-hero__line--green, .tbt-about-hero h1 strong) { color: var(--tbt-green-on-dark); }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-hero h1 span { color: #fff; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page h3 { color: var(--tbt-ink); }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page :is(h3, h4) a, body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-beliefs h3 { color: var(--tbt-green-text); }

/* Dark panels and the "Class of ..." bands use the same heading style as the template. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-notes-details, .tbt-testimonials-artwork-band--2022, .tbt-testimonials-results-band) h2 { color: #fff !important; text-align: center; }

/* Page titles on Contact, Tuition Recommendations and Our Causes: a centred title with a green accent word, no dark bar.
 * The smaller section titles on About and Our Causes keep their rounded dark-green bar (white text, light-green accent). */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-institutional-title-bar:has(> h1):not(.tbt-causes-page *) {
  display: block;
  width: min(var(--tbt-page), calc(100% - 2 * var(--tbt-gutter)));
  min-height: 0;
  margin: 0 auto;
  padding: 0 0 28px;
  border-radius: 0;
  background: transparent;
  color: var(--tbt-ink);
  text-align: center;
}
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-institutional-page:not(.tbt-causes-page) .tbt-institutional-title-bar > h1 {
  margin: 0 auto;
  padding: 0;
  color: var(--tbt-ink) !important;
  text-align: center;
  text-wrap: balance;
}
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-institutional-title-bar > h2 { color: #fff !important; text-align: center; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-contact-content h1 {
  margin: 0 0 24px;
  color: var(--tbt-ink);
  text-align: center;
}
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-contact-content { padding-top: 56px; }

/* Short pages: the footer sits at the bottom of the screen (no white strip beneath it). */
body.tbt-site { display: flex; flex-direction: column; min-height: 100vh; }
body.tbt-site .site-main { flex: 1 0 auto; }
body.tbt-site .site-footer { flex-shrink: 0; }

/* Space above the first title of a page (the title has no bar). */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-institutional-page > section:first-child > .tbt-institutional-title-bar:has(> h1):first-child:not(.tbt-causes-page *) { margin-top: 56px; }


/* Free Bio Notes: the title now uses the shared 60px size, so the preview slider is a little shorter to keep the title and tablet in the first screen. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-hero .tbt-resource-carousel--notes { --notes-slider-height: clamp(160px, calc(100svh - 250px), 760px); }
@media (max-width: 1199px) { body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-hero .tbt-resource-carousel--notes { --notes-slider-height: clamp(160px, calc(100svh - 345px), 760px); } }

/* Free Bio Notes: DOWNLOAD buttons scroll to the email form, leaving room for the sticky header. */
#notes-form { scroll-margin-top: 96px; }

/* "Real Practical Sessions. Real Practice.": full content width and compact spacing, the same on Classes, Sec 3 and Sec 4. */
body.tbt-site #main-content :is(.tbt-classes-page, .tbt-sec3-page, .tbt-sec4-page) .tbt-practical-feature { margin-top: 40px; }
body.tbt-site #main-content :is(.tbt-classes-page, .tbt-sec3-page, .tbt-sec4-page) .tbt-practical-feature > p { max-width: none; }
@media (max-width: 520px) { body.tbt-site #main-content :is(.tbt-classes-page, .tbt-sec3-page, .tbt-sec4-page) .tbt-practical-feature { margin-top: 32px; } }

/* Our Causes: "1. Planting Trees!" is a section title like "2. SG Environmental Causes" - the same rounded dark-green bar and the same size. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-institutional-title-bar > h1 { color: #fff !important; font-size: var(--tbt-u-h2) !important; line-height: 1.25 !important; text-align: center; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-institutional-title-bar > h1 span { color: var(--tbt-green-on-dark); }

/* Sec 3 / Sec 4 FAQ: the same numbered accordion as the Home page (list frame, plus/minus icon, answer panel). */
body.tbt-site .tbt-programme-faq .tbt-home-faq__list { max-width: none; margin: 0 auto; overflow: hidden; border: 1px solid #d9dcd9; border-radius: 18px; background: #fff; text-align: left; }
body.tbt-site .tbt-programme-faq .tbt-home-faq__item + .tbt-home-faq__item { border-top: 1px solid #dcdfdc; }
body.tbt-site .tbt-programme-faq .tbt-home-faq__item h3 { margin: 0; }
body.tbt-site .tbt-programme-faq .tbt-home-faq__item button { display: grid; width: 100%; padding: 18px 26px; border: 0; background: transparent; color: #19221a; cursor: pointer; font-size: 18px; font-weight: 600; line-height: 28px; align-items: center; gap: 16px; text-align: left; box-shadow: none; }
body.tbt-site .tbt-programme-faq .tbt-home-faq__item button:is(:hover, :focus-visible) { background: #edf5e8; }
body.tbt-site .tbt-programme-faq .tbt-home-faq__icon { position: relative; display: block; width: 18px; height: 18px; justify-self: center; }
body.tbt-site .tbt-programme-faq .tbt-home-faq__icon::before,
body.tbt-site .tbt-programme-faq .tbt-home-faq__icon::after { position: absolute; top: 50%; left: 0; width: 100%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: #2f8a27; content: ""; transition: transform .3s ease, background-color .3s ease, opacity .3s ease; }
body.tbt-site .tbt-programme-faq .tbt-home-faq__icon::after { transform: rotate(90deg); }
body.tbt-site .tbt-programme-faq .tbt-home-faq__item button[aria-expanded="true"] .tbt-home-faq__icon::before { background: #19221a; }
body.tbt-site .tbt-programme-faq .tbt-home-faq__item button[aria-expanded="true"] .tbt-home-faq__icon::after { background: #19221a; opacity: 0; transform: rotate(0deg) scaleX(0); }
body.tbt-site .tbt-programme-faq .tbt-home-faq__answer { padding: 0; border-top: 2px solid #e3e6e3; }
body.tbt-site .tbt-programme-faq .tbt-home-faq__answer p { margin: 0; padding: 24px 26px; color: #19221a; font-size: 18px; line-height: 1.65; text-align: left; }
@media (max-width: 640px) { body.tbt-site .tbt-programme-faq .tbt-home-faq__answer p { padding: 18px; font-size: 16px; } }

/* =====================================================================
 * Client feedback, 19 November: Sec 3 and Sec 4 programme pages.
 * ===================================================================== */
/* The page title was too big for its long sentence. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero h1 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.22; }

/* Less empty space under the title; the options section now follows its content. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options { min-height: 0; padding-block: 44px 56px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options > .tbt-programme-container > .tbt-programme-kicker { margin-bottom: 10px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options > .tbt-programme-container > h2 { margin-bottom: 10px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options > .tbt-programme-container > p:not(.tbt-programme-kicker) { margin-block: 0; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__grid { margin-top: 32px; }

/* The same four classroom photos as the Home page's track record, above the Face-to-Face card. */
.tbt-programme-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.tbt-programme-photos figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 15px; background: #edf5e8; }
body.tbt-site #main-content .tbt-programme-photos img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.tbt-programme-photos figure:nth-child(1) img { object-position: 50% 45%; }
.tbt-programme-photos figure:nth-child(2) img { object-position: 50% 49%; }
@media (max-width: 700px) { .tbt-programme-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* "BOTH FORMATS INCLUDE" strip: larger text, easier to read on the dark green. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included { padding: 34px 32px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included strong { font-size: 24px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick { font-size: 18px; line-height: 1.5; padding-left: 28px; }
@media (max-width: 1279px) { body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick { font-size: 17px; } }
@media (max-width: 1099px) {
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included { padding-inline: 22px; column-gap: 8px; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick { padding-left: 24px; font-size: 16px; }
}
@media (max-width: 1023px) { body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included { grid-template-columns: repeat(2, max-content); } }
@media (max-width: 640px) { body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included { grid-template-columns: minmax(0, 1fr); } body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick { font-size: 15px; } }

/* The grade a student ended on is green. */
body.tbt-site #main-content .tbt-programme-proof .tbt-programme-grade { color: #2f8a27; font-style: normal; }

/* Testimonial cards (rule above) match the premium proof cards: rounded, soft cream outline, deep shadow, real gaps. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial::before { top: 22px; left: 26px; }

/* =====================================================================
 * Client feedback, 19 November: Free Bio Notes.
 * Split hero, icon download buttons, "Is this you?" checklist, a light-green
 * form info box and the "Your Questions, Answered" cards.
 * ===================================================================== */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-resource-button { align-items: center; justify-content: center; gap: 10px; }
body.tbt-site #main-content .tbt-notes-page .tbt-resource-button__icon { flex: none; }

/* Hero */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero {
  min-height: 0;
  padding: 56px 0;
  background:
    radial-gradient(circle at 90% 6%, rgba(143, 225, 126, .14), transparent 34%),
    linear-gradient(135deg, #0e371d 0%, #17502b 58%, #0e371d 100%);
  text-align: left;
}
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero h1 { margin: 0 0 14px; font-family: Poppins, Arial, sans-serif; font-size: 60px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-align: left; }
@media (max-width: 520px) { body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero h1 { font-size: 36px; } }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero h1 span { color: #8fe17e; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero .tbt-notes-hero__audience { margin: 0 0 22px; color: #ece6c9; font-family: Poppins, Arial, sans-serif; font-size: clamp(22px, 2.4vw, 32px) !important; font-style: normal; font-weight: 400; text-align: left; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__lead { max-width: 540px; margin: 0 0 30px; color: #f1f4ea; font-size: 18px; line-height: 1.55; text-align: left; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__lead strong { color: #8fe17e; font-weight: 700; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero .tbt-notes-hero__download { margin: 0; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-proof { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #dbe6d6; font-family: Poppins, Arial, sans-serif; font-size: 15px; font-weight: 400; text-align: left; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-proof svg { flex: none; color: #8fe17e; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { --notes-slider-height: clamp(360px, calc(100svh - 190px), 620px); width: min(100%, calc(var(--notes-slider-height) * 500 / 640)); max-width: 485px; justify-self: end; margin: 0; }
@media (max-width: 900px) {
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero :is(h1, .tbt-notes-hero__audience, .tbt-notes-hero__lead, .tbt-resource-proof) { text-align: center; margin-inline: auto; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-proof { justify-content: center; font-size: 15px; font-weight: 400; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { --notes-slider-height: 520px; justify-self: center; }
}

/* Form information box */
body.tbt-site #main-content .tbt-notes-page .tbt-resource-access-instructions { margin-top: 30px; padding: 12px 28px; border: 1px solid #dbe6d6; border-radius: 20px; background: #edf5e8; box-shadow: 0 16px 32px -24px rgba(14, 55, 29, .55); text-align: left; }
body.tbt-site #main-content .tbt-notes-page .tbt-access-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; }
body.tbt-site #main-content .tbt-notes-page .tbt-access-row__icon svg { display: block; width: 30px; height: 30px; color: #0e371d; }
body.tbt-site #main-content .tbt-notes-page .tbt-access-row p { margin: 0; color: #19221a; font-size: 16px; line-height: 1.5; }
body.tbt-site #main-content .tbt-notes-page .tbt-access-row a { color: #2f8a27; text-decoration: underline; }

/* "Is this you?" */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-fit { padding: 56px 0 36px; background: #f5f8f0; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-fit h2 { width: auto; max-width: 720px; min-height: 0; margin: 0 auto 36px; padding: 16px 32px; justify-content: center; border-radius: 18px; background: #0e371d; color: #fff; font-size: clamp(24px, 3vw, 34px); text-align: center; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-pain-list { max-width: 640px; margin: 0 auto; padding: 0; list-style: none; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-pain-list li { position: relative; margin: 0 0 16px; padding: 0 0 0 38px; font-size: 19px; line-height: 1.45; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-pain-list li::before { position: absolute; left: 4px; top: 0; color: #2f8a27; content: "\2713"; font-size: 20px; font-weight: 700; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-fit__answer { max-width: 640px; margin: 36px auto 0; font-style: normal; text-align: center; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-fit__answer strong { display: block; margin-bottom: 4px; font-size: 20px; font-weight: 700; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-fit__answer span { display: block; font-size: 18px; line-height: 1.5; }

/* "Your Questions, Answered" */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-details { min-height: 0; padding: 72px 0 80px; background: linear-gradient(180deg, #0e371d 0%, #13421f 100%); }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-details__intro { margin-bottom: 40px; text-align: center; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-details__intro h2 { margin: 0 0 12px; color: #fff !important; font-size: 36px; font-weight: 800; line-height: 1.2; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-details__intro h2 span { color: #8fe17e; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-details__intro p { margin: 0; color: #dbe6d6; font-size: 19px; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-details__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 22px; align-content: start; padding: 36px; border-radius: 28px; background: #edf5e8; color: #19221a; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6); text-align: left; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card--wide { grid-column: 1 / -1; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__icon { display: grid; grid-row: 1; width: 76px; height: 76px; place-items: center; border-radius: 20px; background: #edf5e8; color: #2f8a27; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__icon svg { width: 44px; height: 44px; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card h3 { align-self: center; margin: 0; color: var(--tbt-std-ink); font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.2; text-align: left; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card h3 span { color: #2f8a27; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card > :is(ul, ol) { grid-column: 1 / -1; margin: 22px 0 0; padding-left: 22px; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-details .tbt-notes-card li { margin-bottom: 10px; color: #1f2a21; font-size: 17px; line-height: 1.55; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card--wide { align-items: start; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__body { grid-column: 2; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__body ul { margin: 14px 0 0; padding-left: 22px; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-download > .tbt-resource-button { display: flex; grid-column: 1 / -1; justify-self: center; width: fit-content; margin: 26px auto 0; }
@media (max-width: 860px) {
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-details__grid { grid-template-columns: 1fr; gap: 20px; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-card { grid-template-columns: 60px minmax(0, 1fr); padding: 26px 22px; gap: 0 16px; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__icon { width: 60px; height: 60px; border-radius: 16px; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__icon svg { width: 34px; height: 34px; }
}

/* =====================================================================
 * Client feedback, 19 November: Our Causes, "1. Planting Trees!" text in a soft green panel.
 * ===================================================================== */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-causes-section[data-section="planting"] .tbt-causes-copy {
  margin: 32px 0 0;
  padding: 40px 48px 44px;
  border-radius: 28px;
  background: linear-gradient(180deg, #edf5e8 0%, #edf5e8 100%);
  text-align: center;
}
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-causes-section[data-section="planting"] .tbt-causes-copy h2 { margin: 0 0 22px; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; text-align: center; }
body.tbt-site #main-content .tbt-causes-page .tbt-causes-section[data-section="planting"] .tbt-causes-copy h2 em { font-style: normal; font-weight: 800; }
body.tbt-site #main-content .tbt-causes-page .tbt-causes-section[data-section="planting"] .tbt-causes-copy p { max-width: 860px; margin-inline: auto; text-align: center; }
body.tbt-site #main-content .tbt-causes-page .tbt-causes-section[data-section="planting"] .tbt-causes-copy p a { color: #2f8a27; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-causes-section[data-section="planting"] .tbt-causes-copy { margin-bottom: 0; padding: 28px 20px 30px; border-radius: 22px; }
}

/* Free Bio Notes "Is this you?": a wider banner and answer so nothing wraps awkwardly. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-fit h2 { max-width: 840px; font-size: 36px; }
@media (max-width: 520px) { body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-fit h2, body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-details__intro h2 { font-size: 30px; } }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-fit__answer { max-width: 760px; }

/* Footer: from 1000px the HOURS column is wider so "(open for online enquiries all 7 days)" stays on one line and the footer stays compact.
   Below that it may take one more line (tablet footers are about 207px instead of 187px). */
@media (min-width: 1000px) {
  body.tbt-site .site-footer__inner { grid-template-columns: minmax(180px, 1.2fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1.6fr); }
}
@media (max-width: 768px) {
  /* Phones: the three columns share the width by need, so the longer HOURS line wraps once instead of five times. */
  body.tbt-site .site-footer__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .75fr) minmax(0, 1.5fr); column-gap: 14px; }
}

/* =====================================================================
 * Client feedback, 19 November (second round).
 * ===================================================================== */
/* Classes: the "By the numbers" panel uses the site's own green on a light card, not the teal. */
body.tbt-site .tbt-classes-page .tbt-programme-stats { border: 0; border-radius: 24px; background: #edf5e8; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6); }
body.tbt-site .tbt-classes-page .tbt-programme-stats strong { color: #2f8a27; }
body.tbt-site .tbt-classes-page .tbt-programme-stats span { color: var(--tbt-std-ink); }

/* Sec 3 / Sec 4 title: "Start of Sec 3." stays together on one line, so "Sec 3." is never alone on a row. */
/* The shared page-title rule is !important, so the Sec 3 / Sec 4 override has to be as well (the client asked for a smaller title here). */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero h1 { max-width: 1100px; font-size: clamp(27px, 2.9vw, 38px) !important; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero__highlight { white-space: nowrap; }

/* The grade a student ended on is green in the testimonial cards too. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-testimonials .tbt-testimonial__after { color: #2f8a27; }

/* Results & Testimonials hero: a bigger photo so the banner does not feel empty. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero { padding: 48px 0; }
@media (min-width: 861px) { body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__photo { width: min(100%, 540px); aspect-ratio: 1.22 / 1; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__photo img { object-position: 62% 40%; }
@media (max-width: 860px) { body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__photo { width: min(100%, 420px); aspect-ratio: 1.15 / 1; } }

/* Free Bio Notes hero: a bigger tablet on a soft glow, tighter padding. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero { padding: 44px 0; }
@media (min-width: 901px) { body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__lead { max-width: 560px; font-size: 20px; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { --notes-slider-height: clamp(380px, calc(100svh - 150px), 700px); width: min(100%, calc(var(--notes-slider-height) * 500 / 640)); max-width: 547px; background: radial-gradient(ellipse at 50% 50%, rgba(143, 225, 126, .22), transparent 66%); }

/* "Is this you?" uses the standard content width, like every other section. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-fit h2 { width: 100%; max-width: none; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-pain-list, body.tbt-site #main-content .tbt-notes-page .tbt-notes-fit__answer { max-width: none; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-pain-list { padding-inline: 24px; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-fit__answer { padding-inline: 24px; text-align: left; }

/* "Your Questions, Answered": white cards and dark-green icon tiles, so the greens no longer blur together. */
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card { background: #fff; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__icon { background: #0e371d; color: #8fe17e; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__icon img { display: block; width: 46px; height: 46px; object-fit: contain; }
@media (max-width: 860px) { body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__icon img { width: 36px; height: 36px; } }

/* About: founder question cards use the same premium card as the testimonials (rounded, cream outline and soft shadow). */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page .tbt-founder-card { position: relative; padding: 36px; border: 1px solid #e3e6d2; border-radius: 24px; background: #fff; box-shadow: 0 24px 48px -28px rgba(14, 55, 29, .45); }
@media (max-width: 640px) { body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page .tbt-founder-card { padding: 24px 20px; } }

/* Our Causes: the panel text uses the full panel width. */
body.tbt-site #main-content .tbt-causes-page .tbt-causes-section[data-section="planting"] .tbt-causes-copy p { max-width: none; }
@media (max-width: 768px) { body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-fit { padding-bottom: 16px; } }

/* Screenshot feedback: white level-selection section and matching Sec 3 and Sec 4 heroes. */
body.tbt-site #main-content .tbt-classes-page .tbt-programme-levels { background: #fff; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero h1 { font-size: clamp(32px, 4.2vw, 55px) !important; line-height: 1.15; }

/* Founder answers: coloured emphasis replaces underlining. */
body.tbt-site #main-content .tbt-about-page .tbt-founder-card u { color: #2f8a27; text-decoration: none; font-weight: 600; }

/* Both programme formats: keep every tick attached to and centred on its phrase. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick { display: flex; align-items: center; gap: 8px; padding-left: 0; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included .tbt-tick::before { position: static; flex: 0 0 18px; }

/* Shared image carousel crossfade; slides keep their existing stacked geometry. */
body.tbt-site #main-content [data-carousel-fade] [data-carousel-slide] { opacity: 0; pointer-events: none; transition: opacity .6s ease-in-out; }
body.tbt-site #main-content [data-carousel-fade] [data-carousel-slide].is-active { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  body.tbt-site #main-content [data-carousel-fade] [data-carousel-slide] { transition-duration: 0s !important; }
}

/* Ticked phrases: align the icon with the first line, keeping wrapped text together. */
body.tbt-site #main-content :is(.tbt-tick:not(.tbt-programme-options__included .tbt-tick), .tbt-programme-options__grid li, .tbt-programme-exam li, .tbt-home-fit li, .tbt-notes-pain-list li) { position: relative; padding-left: 26px; }
body.tbt-site #main-content :is(.tbt-tick:not(.tbt-programme-options__included .tbt-tick), .tbt-programme-options__grid li, .tbt-programme-exam li, .tbt-home-fit li, .tbt-notes-pain-list li)::before {
  position: absolute; left: 0; top: calc(.5lh - 9px); width: 18px; height: 18px; font-size: inherit; line-height: inherit;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8a27' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* The home quality cards use a separate circular tick next to a paragraph. */
body.tbt-site #main-content .tbt-home-quality li { column-gap: 8px; }
body.tbt-site #main-content .tbt-home-quality li p { margin-top: 0; }
body.tbt-site #main-content .tbt-home-quality li > span { margin-top: calc((1.65em - 24px) / 2); }

/* Phone Notes hero stacks with contained controls. */
@media (max-width: 768px) {
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero :is(h1, .tbt-notes-hero__audience, .tbt-notes-hero__lead, .tbt-resource-proof) { text-align: center; margin-inline: auto; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-proof { justify-content: center; font-size: 16px; font-weight: 400; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { width: min(100%, 440px); justify-self: center; margin-inline: auto; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__copy { text-align: center; }
}
/* Keep arrows and dots below the preview, away from the notes and adjacent copy. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-hero .tbt-resource-carousel--notes { padding-bottom: 52px; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-hero .tbt-resource-carousel--notes .tbt-resource-carousel__control { top: auto; bottom: 0; transform: none; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-hero .tbt-resource-carousel--notes .tbt-resource-carousel__control--previous { left: calc(50% - 114px); }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-hero .tbt-resource-carousel--notes .tbt-resource-carousel__control--next { right: calc(50% - 114px); }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-hero .tbt-resource-carousel--notes .tbt-resource-carousel__dots { bottom: 6px; }
/* Fit the whole Causes graphic on every phone width, not only <=390px. */
body.tbt-site #main-content .tbt-causes-section__media--square { max-width: 100%; height: auto; aspect-ratio: 1; }
body.tbt-site #main-content .tbt-causes-section__media--square img { object-fit: contain; }
/* Long headings may wrap inside narrow tablets without clipping. */
body.tbt-site #main-content .tbt-recommendations-page h1 { overflow-wrap: anywhere; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-hero .tbt-resource-carousel--notes .tbt-resource-carousel__dots { left: 50%; right: auto; width: max-content; transform: translateX(-50%); }
@media (min-width: 1181px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { --notes-slider-height: clamp(300px, calc(100svh - 240px), 640px); }
}
@media (min-width: 521px) and (max-width: 700px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-recommendations-page h1 { font-size: clamp(36px, 6vw, 42px) !important; }
}

/* Touch layouts expose Notes controls without requiring hover. */
@media (max-width: 1180px), (hover: none) {
  body.tbt-site #main-content .tbt-notes-hero .tbt-resource-carousel--notes :is(.tbt-resource-carousel__control, .tbt-resource-carousel__dots) { opacity: 1; }
}

/* Small-screen Causes sections share title, green text panel, then pictures. */
@media (max-width: 980px) {
  body.tbt-site #main-content .tbt-causes-page .tbt-causes-feature { display: flex; flex-direction: column; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-causes-section[data-section] .tbt-causes-copy { order: -1; margin: 32px 0 0; padding: 28px 20px 30px; border-radius: 22px; background: linear-gradient(180deg, #edf5e8 0%, #edf5e8 100%); text-align: center; }
  body.tbt-site #main-content .tbt-causes-page .tbt-causes-section .tbt-causes-copy p { text-align: center; }
  body.tbt-site #main-content .tbt-causes-page .tbt-causes-section .tbt-causes-copy p:last-child { margin-bottom: 0; }
}
@media (max-width: 860px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero :is(.tbt-testimonials-hero__content, h1, .tbt-testimonials-hero__lead) { text-align: center; }
  body.tbt-site #main-content .tbt-testimonials-page .tbt-testimonials-hero__lead { margin-inline: auto; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__rating { justify-content: center; }
}

/* Tablet Notes hero keeps the desktop split with sizes suited to its columns. */
@media (min-width: 768px) and (max-width: 1180px) {
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero { padding-block: 32px; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero h1 { font-size: clamp(32px, 4.3vw, 48px) !important; text-align: left; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero :is(.tbt-notes-hero__copy, .tbt-notes-hero__audience, .tbt-notes-hero__lead) { text-align: left; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__lead { font-size: 17px; line-height: 1.6; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-proof { font-size: 15px; font-weight: 400; justify-content: flex-start; text-align: left; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { --notes-slider-height: clamp(280px, calc(100svh - 240px), 540px); width: min(100%, calc(var(--notes-slider-height) * 500 / 640)); justify-self: center; }
}

/* Match the SG giving panel to the soft green Causes cards on larger devices. */
@media (min-width: 981px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-causes-section[data-section="sg-causes"] .tbt-causes-copy { padding: 28px 24px; border-radius: 28px; background: linear-gradient(180deg, #edf5e8 0%, #edf5e8 100%); text-align: center; }
  body.tbt-site #main-content .tbt-causes-page .tbt-causes-section[data-section="sg-causes"] .tbt-causes-copy p { text-align: center; }
  body.tbt-site #main-content .tbt-causes-page .tbt-causes-section[data-section="sg-causes"] .tbt-causes-copy p:last-child { margin-bottom: 0; }
}
@media (max-width: 640px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-causes-section .tbt-institutional-title-bar :is(h1, h2) { font-size: 26px !important; line-height: 1.25; }
}

/* Vision, Mission and Values use the standard body-copy scale. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page .tbt-about-beliefs .tbt-beliefs-grid p { font-size: 18px; line-height: 1.6; font-weight: 400; }

/* Notes: compact mobile spacing and full-width download instructions. */
@media (max-width: 640px) {
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__lead { margin-bottom: 0; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-button { margin-top: 20px; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__inner { gap: 20px; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-benefit__media img { width: 100px; height: 100px; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__body { display: contents; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__body h3 { grid-column: 2; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-card__body ul { grid-column: 1 / -1; margin-top: 22px; }
  body.tbt-site #main-content .tbt-cell-feature img { width: 100px; height: 100px; }
  body.tbt-site #main-content .tbt-about-page .tbt-tutor__frame { width: 132px; height: 132px; margin-inline: auto; }
  body.tbt-site #main-content .tbt-home-founder figure { width: min(100%, 220px); margin-inline: auto; }
  body.tbt-site #main-content .tbt-home-founder img { min-height: 0; height: auto; max-height: 330px; object-fit: contain; }
  body.tbt-site #main-content .tbt-home-classroom__grid figure { width: 100%; max-height: none; aspect-ratio: 4 / 3; }
  body.tbt-site #main-content .tbt-about-page .tbt-about-beliefs__image { width: auto; max-width: 100%; height: 300px; aspect-ratio: auto; object-fit: contain; margin-inline: auto; }
}
@media (min-width: 641px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-details { padding-bottom: 32px; }
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-card--wide { padding-bottom: 24px; }
}

/* Matching SG Causes columns and a smaller Notes benefit-icon scale. */
@media (min-width: 981px) {
  body.tbt-site #main-content .tbt-causes-section[data-section="sg-causes"] .tbt-causes-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-causes-page .tbt-causes-section[data-section="sg-causes"] .tbt-causes-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
}
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-benefit__media img { width: 120px; height: 120px; }
@media (max-width: 640px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-benefit__media img { width: 80px; height: 80px; }
}

/* The source practical photo has a black left strip: crop it out on phones. */
@media (max-width: 640px) {
  body.tbt-site #main-content .tbt-practical-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  body.tbt-site #main-content img[src*="35ad6135826a6626379208fe8e6eefe5"] { object-fit: cover; object-position: right center; }
}

/* Give every tablet page more breathing room inside the shared content track. */
@media (min-width: 768px) and (max-width: 1180px) {
  body.tbt-site { --tbt-gutter: 32px; }
}
/* Keep the full floating contact control clear of browser/device edges. */
body.tbt-site .whatsapp-float { right: calc(24px + env(safe-area-inset-right, 0px) + var(--tbt-visible-right, 0px)); bottom: calc(var(--tbt-contact-clearance, 32px) + env(safe-area-inset-bottom, 0px) + var(--tbt-visible-bottom, 0px)); }

/* Causes copy alignment and compact mobile photo groups. */
body.tbt-site #main-content .tbt-causes-page .tbt-causes-section[data-section="sg-causes"] .tbt-causes-copy p { text-align: left; }
@media (max-width: 640px) {
  body.tbt-site #main-content .tbt-causes-page .tbt-causes-section[data-section="planting"] .tbt-causes-copy p { text-align: left; }
  body.tbt-site #main-content .tbt-about-page .tbt-about-beliefs__image { width: 100%; height: auto; aspect-ratio: auto; }
  body.tbt-site #main-content :is(.tbt-practical-grid, .tbt-home-practical__grid) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.tbt-site #main-content :is(.tbt-practical-grid, .tbt-home-practical__grid) > * { grid-column: auto; width: 100%; aspect-ratio: 4 / 3; }
  body.tbt-site #main-content :is(.tbt-practical-grid, .tbt-home-practical__grid) > :last-child { grid-column: 1 / -1; width: 100%; justify-self: center; }
}

/* Leave room for rounded screen corners and mobile browser controls. */
@media (pointer: coarse) {
  body.tbt-site .whatsapp-float { --tbt-contact-clearance: 48px; }
}

/* Give the Notes questions title the requested stronger visual prominence. */
body.tbt-site #main-content .tbt-notes-details__intro h2 { --tbt-u-h2: 48px; }
@media (max-width: 768px) { body.tbt-site #main-content .tbt-notes-details__intro h2 { --tbt-u-h2: 36px; } }
@media (max-width: 520px) { body.tbt-site #main-content .tbt-notes-details__intro h2 { --tbt-u-h2: 32px; } }

/* ---------- Client feedback 23 November ---------- */
/* Feedback 23 Nov: hero crops — on phones and tablets the centre of the classroom photos is the whiteboard; move towards the teacher and students. */
@media (max-width: 1024px) {
  body.tbt-site #main-content :is(.tbt-classes-page, .tbt-sec4-page) .tbt-programme-hero__background img { object-position: 5% center !important; }
  body.tbt-site #main-content .tbt-sec3-page .tbt-programme-hero__background img { object-position: 22% center !important; }
}

/* Testimonials year selector reads "Class of 2026": room for the longer label. */
@media (min-width: 1181px) { body.tbt-site #main-content .tbt-year-nav__toggle { width: 172px; } }

/* Classes numbers: four figures, 4 across on desktop and 2 × 2 below. */
body.tbt-site #main-content .tbt-classes-page .tbt-programme-stats--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { body.tbt-site #main-content .tbt-classes-page .tbt-programme-stats--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* One programme button size per page: 335 × 56 on tablets and desktops, the full content width on phones. */
body.tbt-site #main-content :is(.tbt-classes-page, .tbt-sec3-page, .tbt-sec4-page) a:is(.tbt-programme-button, .tbt-programme-text-link) { width: 335px; min-width: 0; max-width: 100%; min-height: 56px; }
body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__actions { width: auto; grid-template-columns: repeat(2, 335px); justify-content: center; }
@media (max-width: 768px) { body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__actions { grid-template-columns: 335px; } }
@media (max-width: 480px) {
  body.tbt-site #main-content :is(.tbt-classes-page, .tbt-sec3-page, .tbt-sec4-page) a:is(.tbt-programme-button, .tbt-programme-text-link) { width: 100%; }
  body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__actions { width: 100%; grid-template-columns: minmax(0, 1fr); }
  body.tbt-site #main-content :is(.tbt-classes-page, .tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hall__actions { align-items: stretch; }
}

/* Notes: every DOWNLOAD button is the same 272 × 56 pill with room around it. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page a.tbt-resource-button { width: 272px; min-width: 0; max-width: 100%; min-height: 56px; padding: 14px 28px; font-size: 1.125rem; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-download > a.tbt-resource-button { margin-top: 32px; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page a.tbt-notes-end-button { margin: 40px auto 0; }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card--wide { padding-bottom: 32px; }

/* Notes: "ThatBioTutor's Notes" sits apart from the section above and close to its cards. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-benefits { padding-top: 56px; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-benefits h2 { margin-bottom: 32px; }
@media (max-width: 640px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-benefits { padding-top: 44px; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-benefits h2 { margin-bottom: 24px; }
}

/* Notes signup: GetResponse draws a dark footer strip under its Submit button that we cannot restyle (cross-origin).
   Each height = the Submit button's bottom edge at that form width + 36px of white space; the dark strip starts 42-46px below Submit (measured 25 Nov 2026), so it never shows.
   Measured on the live provider form every 6px from 250 to 634px wide, 25 Nov 2026: Submit bottom is
   403px (form 616px+), 422 (430-615), 442 (364-429), 481 (352-363), 501 (304-351), 521 (292-303), 541 (269-291), 561 (256-268).
   The breakpoints below are box widths: on tablets/phones the frame is 40px wider than its box (see below),
   and on desktop the box is always 720px. Re-measure if the form is edited in GetResponse. */
body.tbt-site #main-content .tbt-notes-form--getresponse { container-type: inline-size; container-name: tbt-notes-form; margin-bottom: 0; overflow: hidden; }
body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed { height: 441px; }
@container tbt-notes-form (max-width: 575px) { body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed { height: 458px; } }
@container tbt-notes-form (max-width: 389px) { body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed { height: 478px; } }
@container tbt-notes-form (max-width: 323px) { body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed { height: 517px; } }
@container tbt-notes-form (max-width: 311px) { body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed { height: 537px; } }
@container tbt-notes-form (max-width: 263px) { body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed { height: 557px; } }
@container tbt-notes-form (max-width: 251px) { body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed { height: 577px; } }
@container tbt-notes-form (max-width: 228px) { body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed { height: 597px; } }
body.tbt-site #main-content .tbt-notes-page .tbt-notes-form--getresponse + .tbt-resource-access-instructions { margin-top: 24px; }
/* Sec 3 hero uses the same phone gutter as Sec 4, so its button matches the page's other buttons. */
@media (max-width: 768px) { body.tbt-site #main-content .tbt-sec3-page .tbt-programme-hero__content { width: min(var(--tbt-page), calc(100% - 2 * var(--tbt-gutter))); } }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-download > a.tbt-resource-button { width: 272px; max-width: 100%; }
@media (max-width: 360px) { body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page a.tbt-resource-button { width: 244px; } }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page [data-section="reviews-bottom"] { padding-bottom: 64px; }
@media (max-width: 640px) { body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page [data-section="reviews-bottom"] { padding-bottom: 56px; } }

/* ---------- Site standard (23 Nov): every page follows the Home / IntensiveFix template ----------
   Section rhythm 56px desktop, 40px up to 768px, 32px up to 390px.
   Eyebrows, buttons and section titles copy the home styles. Heroes keep their own layout. */
body.tbt-site:not(.home) #main-content > :is(.tbt-programme-page, .tbt-resource-page, .tbt-institutional-page, .tbt-testimonials-page) > section:not(.tbt-testimonials-year) { padding-block: 56px !important; }
@media (max-width: 768px) {
  body.tbt-site:not(.home) #main-content > :is(.tbt-programme-page, .tbt-resource-page, .tbt-institutional-page, .tbt-testimonials-page) > section:not(.tbt-testimonials-year) { padding-block: 40px !important; }
}
@media (max-width: 390px) {
  body.tbt-site:not(.home) #main-content > :is(.tbt-programme-page, .tbt-resource-page, .tbt-institutional-page, .tbt-testimonials-page) > section:not(.tbt-testimonials-year) { padding-block: 32px !important; }
}

/* Eyebrow: home style — upright, semibold, uppercase, brand green (light green on dark), no dash. */
body.tbt-site #main-content .tbt-programme-kicker { gap: 0 !important; margin-bottom: 16px !important; color: #2f8a27; /* home eyebrow green */ font-size: 16px !important; font-style: normal !important; font-weight: 600 !important; letter-spacing: .025em !important; line-height: 24px !important; text-transform: uppercase; }
body.tbt-site #main-content .tbt-programme-kicker::before { content: none; display: none; }
body.tbt-site #main-content :is(.tbt-programme-struggles, .tbt-programme-results, .tbt-programme-cover, .tbt-programme-solutions, .tbt-programme-lesson, .tbt-programme-inclusions) .tbt-programme-kicker { color: var(--tbt-green-on-dark, #8fe17e) !important; }

/* Buttons: the home pill — 60px tall, 18/28 type, soft shadow. */
body.tbt-site #main-content a:is(.tbt-programme-button, .tbt-programme-text-link, .tbt-programme-hall__action, .tbt-resource-button, .tbt-testimonials-button, .tbt-institutional-button) { min-height: 60px !important; line-height: 28px !important; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); }

/* Section titles: home line height (36/40 desktop, 30/36 phone). */
body.tbt-site:not(.home) #main-content > :is(.tbt-programme-page, .tbt-resource-page, .tbt-institutional-page, .tbt-testimonials-page) > section h2 { line-height: 1.12; }
@media (max-width: 768px) {
  body.tbt-site:not(.home) #main-content > :is(.tbt-programme-page, .tbt-resource-page, .tbt-institutional-page, .tbt-testimonials-page) > section h2 { line-height: 1.2; }
}
/* Sections that already space their own blocks: keep the section flush and give the inner blocks the standard rhythm. */
body.tbt-site:not(.home) #main-content > .tbt-resource-page > section.tbt-cell-access,
body.tbt-site:not(.home) #main-content > .tbt-institutional-page > section[data-section="recommendations"] { padding-block: 0 !important; }
body.tbt-site #main-content .tbt-cell-access > .tbt-resource-section { padding-block: 56px !important; }
@media (max-width: 768px) { body.tbt-site #main-content .tbt-cell-access > .tbt-resource-section { padding-block: 40px !important; } }
@media (max-width: 390px) { body.tbt-site #main-content .tbt-cell-access > .tbt-resource-section { padding-block: 32px !important; } }
body.tbt-site:not(.home) #main-content > .tbt-notes-page > .tbt-notes-details { padding-block: 56px !important; }
@media (max-width: 768px) { body.tbt-site:not(.home) #main-content > .tbt-notes-page > .tbt-notes-details { padding-block: 40px !important; } }
@media (max-width: 390px) { body.tbt-site:not(.home) #main-content > .tbt-notes-page > .tbt-notes-details { padding-block: 32px !important; } }
/* Testimonials: the featured block flows straight into the compact year list (earlier client request), so only its top follows the rhythm. */
body.tbt-site:not(.home) #main-content > .tbt-testimonials-page > section[data-section="featured"] { padding-bottom: 12px !important; }

/* Home uses the compact section rhythm; scope this to Home because IntensiveFix shares its classes. */
body.tbt-site.home #main-content .tbt-home-section { padding-block: 56px; }
@media (max-width: 768px) {
  body.tbt-site.home #main-content .tbt-home-section { padding-block: 40px; }
}
@media (max-width: 390px) {
  body.tbt-site.home #main-content .tbt-home-section { padding-block: 32px; }
}

/* Preserve transitions that were already tighter than the shared section rhythm. */
body.tbt-site.home #main-content .tbt-home-stats { padding-top: 16px; }
@media (max-width: 640px) {
  body.tbt-site.home #main-content :is(.tbt-home-faq, .tbt-home-quality) { padding-bottom: 16px; }
  body.tbt-site.home #main-content :is(.tbt-home-classroom, .tbt-home-practical) { padding-top: 24px; }
}

/* About and Our Causes: let the following section provide the gap above its
   title bar, instead of adding both neighbouring sections' padding together. */
body.tbt-site:not(.home) #main-content > .tbt-institutional-page:is(.tbt-about-page, .tbt-causes-page) > section:has(+ section) {
  padding-bottom: 0 !important;
}

/* Keep the split hero images close to their copy rather than at the far edge. */
@media (min-width: 768px) {
  body.tbt-site #main-content .tbt-notes-page .tbt-notes-hero__inner { column-gap: 24px; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { justify-self: start; }
}
@media (min-width: 861px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__photo { justify-self: start; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__content { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 24px; }
}
/* Use one section gap before the Notes signup portrait, not two stacked gaps. */
body.tbt-site:not(.home) #main-content > .tbt-notes-page > section.tbt-resource-reviews--lead { padding-bottom: 0 !important; }
/* Compact the download instructions while preserving the shared button size. */
body.tbt-site #main-content .tbt-notes-page .tbt-notes-card--wide { padding-block: 24px; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-download > a.tbt-resource-button { margin-top: 16px; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-download li:last-child { margin-bottom: 0; }

/* One tutor scale across Home and the Sec 3 / Sec 4 team sections. */
body.tbt-site #main-content :is(.tbt-home-tutors, .tbt-sec3-page .tbt-programme-tutors, .tbt-sec4-page .tbt-programme-tutors) {
  --tbt-team-portrait-size: 180px;
}
body.tbt-site #main-content :is(.tbt-home-tutors .tbt-home-tutors__grid, .tbt-sec3-page .tbt-programme-tutors .tbt-tutors, .tbt-sec4-page .tbt-programme-tutors .tbt-tutors) :is(article, .tbt-tutor) img {
  width: min(100%, var(--tbt-team-portrait-size));
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
body.tbt-site #main-content :is(.tbt-home-tutors .tbt-home-tutors__grid, .tbt-sec3-page .tbt-programme-tutors .tbt-tutors, .tbt-sec4-page .tbt-programme-tutors .tbt-tutors) :is(article, .tbt-tutor) h3 {
  margin-top: 16px;
  font-family: Poppins, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}
@media (max-width: 640px) {
  body.tbt-site #main-content :is(.tbt-home-tutors, .tbt-sec3-page .tbt-programme-tutors, .tbt-sec4-page .tbt-programme-tutors) { --tbt-team-portrait-size: 144px; }
}

/* Homepage Google reviews: compact the card and its transition into tutors. */
body.tbt-site.home #main-content .tbt-google-reviews { margin-top: 28px; padding-top: 24px; padding-bottom: 20px; }
body.tbt-site.home #main-content .tbt-google-reviews__track { padding-top: 44px; }
body.tbt-site.home #main-content .tbt-google-review { min-height: 300px; }
body.tbt-site.home #main-content .tbt-google-reviews__source { margin-top: 16px; padding-block: 8px; }
body.tbt-site.home #main-content .tbt-home-proof { padding-bottom: 24px; }
body.tbt-site.home #main-content .tbt-home-tutors { padding-top: 32px; }
@media (max-width: 768px) {
  body.tbt-site.home #main-content .tbt-google-reviews { margin-top: 24px; padding-bottom: 72px; }
  body.tbt-site.home #main-content .tbt-google-reviews__controls button { bottom: 20px; }
  body.tbt-site.home #main-content .tbt-home-proof { padding-bottom: 16px; }
  body.tbt-site.home #main-content .tbt-home-tutors { padding-top: 24px; }
}

/* Give the homepage team more visual presence within its four-column row. */
body.tbt-site.home #main-content .tbt-home-tutors { --tbt-team-portrait-size: 220px; padding-bottom: 32px; }
body.tbt-site.home #main-content .tbt-home-tutors__grid { margin-top: 24px; }
@media (max-width: 640px) {
  body.tbt-site.home #main-content .tbt-home-tutors { --tbt-team-portrait-size: 160px; padding-bottom: 24px; }
}

/* Keep the class-selection help and its WhatsApp action together. */
body.tbt-site #main-content .tbt-classes-page .tbt-programme-levels__grid { margin-bottom: 16px; }
body.tbt-site #main-content .tbt-classes-page .tbt-programme-levels__help a { padding-block: 2px; }
body.tbt-site #main-content .tbt-classes-page .tbt-programme-levels__button { margin-top: 16px; }
body.tbt-site:not(.home) #main-content > .tbt-classes-page > section.tbt-programme-levels { padding-bottom: 32px !important; }
@media (max-width: 768px) {
  body.tbt-site:not(.home) #main-content > .tbt-classes-page > section.tbt-programme-levels { padding-bottom: 24px !important; }
}

/* Match the plain green check marks used in the programme lists. */
body.tbt-site.home #main-content .tbt-home-quality li > span {
  border-radius: 0;
  color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8a27' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

/* About uses the shared Poppins body and subheading scale throughout. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page :is(.tbt-reading-width p, .tbt-reading-width li, .tbt-tutor li, .tbt-founder-message .tbt-founder-card p) {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page :is(.tbt-about-mission h3, .tbt-beliefs-grid h3, .tbt-founder-message .tbt-founder-card .tbt-founder-question) {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
}

/* Keep tablet hero titles inside their banners without desktop-size wrapping. */
@media (max-width: 1024px) {
  body.tbt-site #main-content .tbt-about-hero__title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 16px 0;
  }
}
@media (min-width: 521px) and (max-width: 1024px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content :is(.tbt-about-hero, .tbt-programme-hero--classes) h1 {
    font-size: clamp(32px, 5vw, 52px) !important;
    text-wrap: wrap;
  }
}

/* About body content follows the section-bar edges, without legacy offsets. */
body.tbt-site #main-content .tbt-about-page .tbt-about-mission .tbt-reading-width > :is(p, h3) {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
body.tbt-site #main-content .tbt-about-page .tbt-beliefs-grid { text-align: left; }
@media (max-width: 980px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page .tbt-about-quality ul { padding-left: 24px; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page .tbt-about-quality li { text-align: left; }
  body.tbt-site #main-content .tbt-about-page :is(.tbt-about-quality__image, .tbt-about-beliefs__image) {
    width: 100%;
    height: auto;
    margin-inline: 0;
  }
}

/* The 2021 cohort leads straight into stories, without a results poster. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page #class-of-2021 { padding-top: 32px; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page #class-of-2021 .tbt-testimonials-year-panel { margin-bottom: 0; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page #class-of-2021 .tbt-story-heading { padding-top: 24px; }
@media (max-width: 768px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page #class-of-2021 { padding-top: 24px; }
}
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page #class-of-2022 .tbt-testimonials-button--archive { margin-bottom: 0; }

/* Tablet heroes keep compact, balanced desktop arrangements. */
@media (min-width: 768px) and (max-width: 1180px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    text-align: left !important;
  }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero h1 {
    font-size: clamp(32px, 4.2vw, 48px) !important;
    text-align: left !important;
  }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__lead { margin: 24px 0 0; text-align: left !important; font-size: 20px; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__rating { margin-top: 24px; justify-content: flex-start; font-size: 16px; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-testimonials-page .tbt-testimonials-hero__photo { width: 100%; justify-self: start; }
  body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__actions { width: min(100%, 694px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__actions a { width: 100%; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero { min-height: 480px !important; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hero__content { padding-block: 32px; gap: 24px; }
}

/* Signup frame on tablets and phones: 20px wider than its clipping box on each side (the form stays centred and gets a
   little more room), never scrolls; the height table above is measured for this width so Submit always shows in full.
   Narrow phones (<=351px) get 360px of internal width so the Submit label stays on one line. */
@media (max-width: 1180px) {
  body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed { width: calc(100% + 40px); max-width: none; margin-left: -20px; }
}
@media (max-width: 351px) {
  body.tbt-site #main-content .tbt-notes-form--getresponse .tbt-notes-form__embed {
    width: 360px;
    max-width: none;
    margin-left: calc((100% - 360px) / 2);
    height: 517px; /* 360px-wide form: Submit bottom 481px + 36px */
  }
}

/* Keep the Classes problem and solution sections visually connected. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-classes-page .tbt-programme-struggles { padding-bottom: 28px !important; }
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-classes-page .tbt-programme-solutions { padding-top: 28px !important; }
@media (max-width: 768px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-classes-page .tbt-programme-struggles { padding-bottom: 24px !important; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-classes-page .tbt-programme-solutions { padding-top: 24px !important; }
}

/* Bring Home practical sessions closer to the preceding quality cards. */
body.tbt-site.home #main-content .tbt-home-quality { padding-bottom: 20px; }
body.tbt-site.home #main-content .tbt-home-practical { padding-top: 20px; }
@media (max-width: 640px) {
  body.tbt-site.home #main-content .tbt-home-quality { padding-bottom: 16px; }
  body.tbt-site.home #main-content .tbt-home-practical { padding-top: 16px; }
}

/* Center the About mission statement within the shared reading width. */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-about-page .tbt-about-mission h3 { width: 100%; margin-inline: 0; text-align: center; }

/* Give the closing message more room and let words fill each line naturally. */
body.tbt-site.home #main-content .tbt-home-closing h2 { width: 100%; max-width: none; text-wrap: wrap; overflow-wrap: normal; }
@media (min-width: 769px) {
  body.tbt-site.home #main-content .tbt-home-closing__inner { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
}
/* Keep the tablet hero photo closer to its trial button. */
@media (min-width: 641px) and (max-width: 1024px) {
  body.tbt-site.home #main-content .tbt-home-hero__copy { padding-bottom: 28px; }
  body.tbt-site.home #main-content .tbt-home-hero .tbt-home-button { margin-top: 28px; }
}

/* Keep the classroom heading close to the preceding FAQ accordion. */
body.tbt-site.home #main-content .tbt-home-faq { padding-bottom: 20px; }
body.tbt-site.home #main-content .tbt-home-classroom { padding-top: 20px; }
@media (max-width: 640px) {
  body.tbt-site.home #main-content .tbt-home-faq { padding-bottom: 16px; }
  body.tbt-site.home #main-content .tbt-home-classroom { padding-top: 16px; }
}

/* Phone Classes title uses the available width instead of desktop line breaks. */
@media (max-width: 480px) {
  body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__content { width: calc(100% - 24px); }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-classes-page .tbt-programme-hero h1 { width: 100%; max-width: none; text-wrap: wrap; overflow-wrap: normal; }
  body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__line:not(.tbt-programme-hero__line--green) { display: inline; }
  body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__line:not(.tbt-programme-hero__line--green)::after { content: " "; }
}
/* Tablet hero choices retain the shared pill style without stretching. */
@media (min-width: 768px) and (max-width: 1180px) {
  body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__actions { width: auto; grid-template-columns: repeat(2, 240px); }
}
/* Ratio counters stay together, including while their digits animate. */
body.tbt-site #main-content [data-count-display="1 in 2"] { white-space: nowrap; }
@media (max-width: 480px) {
  body.tbt-site #main-content [data-count-display="1 in 2"] { font-size: clamp(24px, 8vw, 36px); }
}

/* Keep every result label directly below the same-height number row. */
body.tbt-site #main-content .tbt-classes-page .tbt-programme-stats--four > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; }
@media (max-width: 480px) {
  body.tbt-site #main-content .tbt-classes-page .tbt-programme-stats--four strong { font-size: clamp(24px, 8vw, 36px); }
}

/* Shared content CTA dimensions across all public page families. */
body.tbt-site { --tbt-cta-width: 272px; --tbt-cta-font-size: 18px; }
@media (max-width: 1180px) {
  body.tbt-site { --tbt-cta-width: 240px; --tbt-cta-font-size: 16px; }
}
body.tbt-site #main-content :is(.tbt-home-button, .tbt-button, .tbt-programme-button, .tbt-programme-text-link, .tbt-programme-hall__action, .tbt-testimonials-button, .tbt-resource-button, .tbt-institutional-button, .tbt-reviews-controls__more) {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--tbt-cta-width) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  font-size: var(--tbt-cta-font-size) !important;
  line-height: 22px !important;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
}
body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__actions {
  width: auto;
  grid-template-columns: repeat(2, var(--tbt-cta-width));
  justify-content: center;
}
@media (max-width: 768px) {
  body.tbt-site #main-content .tbt-classes-page .tbt-programme-hero__actions { grid-template-columns: minmax(0, var(--tbt-cta-width)); }
}

/* Phone topic lists need one readable column, with breaks between words. */
@media (max-width: 640px) {
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; column-gap: 0; row-gap: 12px; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics li { overflow-wrap: normal; word-break: normal; hyphens: none; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics-card { padding-inline: 24px; }
}

/* One compact transition into Student Stories for every cohort. */
body.tbt-site #main-content .tbt-testimonials-page { --tbt-story-gap-half: 16px; }
body.tbt-site #main-content .tbt-testimonials-page .tbt-story-heading { padding-top: var(--tbt-story-gap-half) !important; }
body.tbt-site #main-content .tbt-testimonials-page .tbt-testimonials-artwork-band { padding-bottom: 0 !important; margin-bottom: var(--tbt-story-gap-half) !important; }
body.tbt-site #main-content .tbt-testimonials-page .tbt-testimonials-artwork--portrait:has(+ .tbt-story-heading) { margin-bottom: var(--tbt-story-gap-half) !important; }
@media (max-width: 768px) {
  body.tbt-site #main-content .tbt-testimonials-page { --tbt-story-gap-half: 12px; }
}

/* Stacked tablet planting images share one width and centered edges. */
@media (min-width: 641px) and (max-width: 980px) {
  body.tbt-site #main-content .tbt-causes-feature > :is(.tbt-causes-section__media--square, .tbt-causes-section__media--record) { width: 100%; margin-inline: auto; }
}

/* Mobile signup uses the measured container-width crops above; site.js keeps
   scrolling available when provider text grows beyond those bounds. */

/* Emphasize the closing invitation and keep tablet photo/copy side by side. */
body.tbt-site.home #main-content .tbt-home-closing__inner > div > p:last-of-type { font-weight: 700; }
@media (min-width: 769px) and (max-width: 1180px) {
  body.tbt-site.home #main-content .tbt-home-closing__inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: 24px; align-items: stretch; }
  body.tbt-site.home #main-content .tbt-home-closing figure { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; margin: 0; }
  body.tbt-site.home #main-content .tbt-home-closing img { width: 100%; height: 100%; object-fit: cover; }
}

/* Compact class options and the tutor-to-FAQ transition on both programmes. */
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__grid { row-gap: 24px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-options__included { margin-top: 24px; }
body.tbt-site:not(.home) #main-content > :is(.tbt-sec3-page, .tbt-sec4-page) > section.tbt-programme-options { padding-bottom: 24px !important; }
body.tbt-site:not(.home) #main-content > :is(.tbt-sec3-page, .tbt-sec4-page) > section.tbt-programme-tutors { padding-bottom: 32px !important; }
body.tbt-site:not(.home) #main-content > :is(.tbt-sec3-page, .tbt-sec4-page) > section.tbt-programme-faq { padding-top: 32px !important; }
@media (max-width: 640px) {
  body.tbt-site:not(.home) #main-content > :is(.tbt-sec3-page, .tbt-sec4-page) > section.tbt-programme-tutors { padding-bottom: 24px !important; }
  body.tbt-site:not(.home) #main-content > :is(.tbt-sec3-page, .tbt-sec4-page) > section.tbt-programme-faq { padding-top: 24px !important; }
}

/* Compact the complete What We Cover section on Sec 3 and Sec 4. */
body.tbt-site:not(.home) #main-content > :is(.tbt-sec3-page, .tbt-sec4-page) > section.tbt-programme-cover { padding-block: 32px !important; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-cover > .tbt-programme-container > h2 { margin-bottom: 24px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-phases { gap: 24px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-programme-phase, .tbt-programme-topics-card, .tbt-programme-exam) { padding-block: 24px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-topics-card { margin-block: 24px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-phase h3 { margin-bottom: 16px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-phase p { margin-block: 8px; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-programme-phase .tbt-programme-join-note, .tbt-programme-exam > p) { margin-top: 16px; margin-bottom: 0; }
body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-exam ul { margin-bottom: 0; }
@media (max-width: 640px) {
  body.tbt-site:not(.home) #main-content > :is(.tbt-sec3-page, .tbt-sec4-page) > section.tbt-programme-cover { padding-block: 24px !important; }
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) :is(.tbt-programme-phase, .tbt-programme-topics-card, .tbt-programme-exam) { padding-block: 20px; }
}

/* Fixed-width programme CTAs remain centered in the mobile hall layout. */
@media (max-width: 640px) {
  body.tbt-site #main-content :is(.tbt-sec3-page, .tbt-sec4-page) .tbt-programme-hall__actions { align-items: center; }
}

/* Crop the black strip baked into the practical photo while retaining its tablet frame. */
@media (min-width: 641px) and (max-width: 1180px) {
  body.tbt-site #main-content .tbt-practical-crop { width: 100%; height: 280px; overflow: hidden; border-radius: 18px; }
  body.tbt-site #main-content .tbt-practical-crop > img.tbt-practical-photo { position: relative; left: -13.5%; width: 113.5% !important; max-width: none !important; height: 100% !important; object-fit: cover; object-position: right center; border-radius: 0 !important; }
}
@media (min-width: 641px) and (max-width: 768px) {
  body.tbt-site #main-content .tbt-practical-crop { height: 220px; }
}

/* Keep the longer testimonial CTA on one line at the shared tablet/phone size. */
@media (max-width: 1180px) {
  body.tbt-site #main-content .tbt-testimonials-button { padding-inline: 12px !important; white-space: nowrap; }
}

/* Home closing: on phones and iPad mini (single column, photo above text) the "Book My Trial Lesson" button is centred. */
@media (max-width: 768px) {
  body.tbt-site.home #main-content .tbt-home-closing__cta-wrap { display: flex; justify-content: center; }
}

/* Footer wraps naturally on every phone/tablet: titles never split mid-word, address lines break only between words.
   Phones: VISIT + WHATSAPP side by side, HOURS on its own full-width row. 541-768px: three columns sized to their content. */
body.tbt-site .site-footer__column h2 { white-space: nowrap; overflow-wrap: normal; word-break: normal; hyphens: none; }
body.tbt-site .site-footer__column :is(p, address, a) { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (min-width: 541px) and (max-width: 768px) {
  body.tbt-site .site-footer__inner { grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: 32px; }
}
@media (max-width: 540px) {
  body.tbt-site .site-footer__inner { grid-template-columns: max-content minmax(0, 1fr); gap: 24px 32px; }
  body.tbt-site .site-footer__hours { grid-column: 1 / -1; }
}

/* IntensiveFix: one section rhythm for white and dark green sections alike: 40px desktop / 32px tablet / 24px phone.
   The quotes sit 16px under the hero carousel and the track record 16px under the video. */
body.tbt-site.page-template-page-intensivefix #main-content .tbt-intensivefix-page > .tbt-home-section { padding-block: 40px; }
body.tbt-site.page-template-page-intensivefix #main-content .tbt-intensivefix-page > :is(.tbt-home-problem, .tbt-home-stats) { padding-top: 16px; }
@media (max-width: 768px) {
  body.tbt-site.page-template-page-intensivefix #main-content .tbt-intensivefix-page > .tbt-home-section { padding-block: 32px; }
  body.tbt-site.page-template-page-intensivefix #main-content .tbt-intensivefix-page > :is(.tbt-home-problem, .tbt-home-stats) { padding-top: 16px; }
}
@media (max-width: 390px) {
  body.tbt-site.page-template-page-intensivefix #main-content .tbt-intensivefix-page > .tbt-home-section { padding-block: 24px; }
  body.tbt-site.page-template-page-intensivefix #main-content .tbt-intensivefix-page > :is(.tbt-home-problem, .tbt-home-stats) { padding-top: 16px; }
}

/* IntensiveFix closing button: the site-standard pill (272x60 desktop, 240x60 tablet/phone, see --tbt-cta-width),
   centred under its text on tablets and phones. */
@media (max-width: 1180px) {
  body.tbt-site.page-template-page-intensivefix #main-content .tbt-intensivefix-page .tbt-home-closing__cta-wrap { display: flex; justify-content: center; }
}

/* Testimonials (phones/tablets): the "Class of ..." bar appears only once the reader scrolls down to the first year,
   so the hero starts right under the header with no reserved gap. Desktop keeps its floating button. */
@media (max-width: 1180px) {
  body.tbt-site #main-content .tbt-testimonials-page { padding-top: 0; }
  body.tbt-site #main-content .tbt-year-nav { transition: opacity 180ms ease-out, visibility 180ms; }
  body.tbt-site #main-content .tbt-year-nav[data-before-years] { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 1180px) and (prefers-reduced-motion: reduce) {
  body.tbt-site #main-content .tbt-year-nav { transition: none; }
}

/* IntensiveFix: both buttons are the standard 60px pill, wide enough that "Fix My Sec 3 Foundation Now" stays on one line
   (340px desktop, 300px tablet/phone, never wider than the screen). */
body.tbt-site.page-template-page-intensivefix { --tbt-cta-width: 340px; }
@media (max-width: 1180px) { body.tbt-site.page-template-page-intensivefix { --tbt-cta-width: 300px; } }
body.tbt-site.page-template-page-intensivefix #main-content .tbt-intensivefix-page a.tbt-home-button { white-space: nowrap; }

/* IntensiveFix hero: the button has the same 32px above (to "Limited time") and below (to the programme carousel). */
body.tbt-site.page-template-page-intensivefix #main-content .tbt-intensivefix-page .tbt-home-hero__copy { padding-bottom: 32px; }

/* Notes: the closing DOWNLOAD button has the same 40px above (to the reviews panel) and below (to the footer) on every
   device. The footer already starts 24px below the page content, so the last section adds only 16px. */
body.tbt-site:not(.home) #main-content > .tbt-resource-page.tbt-notes-page > section[data-section="reviews-bottom"] { padding-bottom: 40px !important; }

/* Notes hero on stacked phones/small tablets: tighter. The tablet picture has ~7% empty space at its top, so the slider
   moves up into the grid gap (visible gap to "Join over 10,000+..." becomes ~20-30px), and the hero ends 24px under
   the arrows instead of 44px. */
@media (max-width: 767px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero { padding-bottom: 24px; }
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { margin-top: -20px; }
}
@media (max-width: 480px) {
  body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { margin-top: -32px; }
}

/* Notes hero slider: the arrows and dots sit closer to the tablet picture (they rise 20px into the empty space under it). */
body.tbt-site:not(.home):not(.page-template-page-intensivefix) #main-content .tbt-notes-page .tbt-notes-hero .tbt-resource-carousel--notes { padding-bottom: 32px; }

/* Results & Testimonials: "Transform My Grade Now" fills its pill almost exactly; keep it on one line on every system font renderer. */
body.tbt-site #main-content .tbt-testimonials-page a.tbt-testimonials-button { white-space: nowrap; }
