/* Shared type roles and controls for the homepage and trial page. */
:is(.layout-home .hm-sheet, [data-site-page="trial.html"] .a2-trial,
  .layout-home .r4-final-band, [data-site-page="trial.html"] .r4-final-band) {
  --ui-font: "SF Pro HK", "SF Pro Text", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r5-display: "SF Pro HK", "SF Pro Display", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r5-body: clamp(1.125rem, 1.32vw, 1.25rem);
  --r5-h2: clamp(1.875rem, 3.4vw, 3rem);
  --r5-h3: clamp(1.5rem, 2.26vw, 2rem);
  --r5-separation: clamp(2.75rem, 5.2vw, 4.75rem);
  --r5-inset: clamp(1.125rem, 3vw, 2rem);
  font-family: var(--ui-font);
  font-size: var(--r5-body);
  line-height: 1.65;
}
:is(.layout-home .hm-sheet, [data-site-page="trial.html"] .a2-trial) :is(h1, h2, h3) {
  font-family: var(--r5-display);
  line-height: 1.22;
  letter-spacing: -.025em;
}
:is(.layout-home .hm-sheet, [data-site-page="trial.html"] .a2-trial) h2 { font-size: var(--r5-h2); }
:is(.layout-home .hm-sheet, [data-site-page="trial.html"] .a2-trial) h3 { font-size: var(--r5-h3); }
:is(.layout-home .hm-sheet, [data-site-page="trial.html"] .a2-trial) :is(button, summary) {
  min-block-size: 44px;
}
:is(body.layout-home, body[data-site-page="trial.html"]) .r4-final-band {
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}
:is(body.layout-home, body[data-site-page="trial.html"]) .r4-final-inner > p {
  font-family: var(--r5-display);
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  line-height: 1.21;
  text-wrap: balance;
}
:is(body.layout-home, body[data-site-page="trial.html"]) .r4-final-secondary { font-size: 1.0625rem; }

/* Homepage introduction and shortcuts. */
.layout-home .hm-sheet > .eplc-v8-hero {
  grid-template-areas: "copy" "media";
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.25rem);
  padding-block: clamp(1.5rem, 4.2vw, 4rem) clamp(1.5rem, 3.8vw, 3.5rem);
}
.layout-home .eplc-v8-copy { gap: clamp(.75rem, 1.3vw, 1.25rem); }
.layout-home #eplc-v8-title {
  font-size: clamp(1.9375rem, 9.15vw, 2.625rem);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.layout-home .eplc-hero-highlight { color: var(--green-ink); }
.layout-home .eplc-hero-highlight::before { background: var(--green-wash); }
.layout-home .eplc-hero-habits { gap: .375rem; }
.layout-home .eplc-hero-habits > li { padding: .3rem .6rem; font-size: .875rem; }
.layout-home .eplc-learning-audience { font-size: clamp(1.0625rem, 1.32vw, 1.1875rem); }
.layout-home .eplc-v8-summary {
  max-inline-size: 36em;
  margin: 0;
  padding: .8rem 1rem;
  border: 0;
  background: var(--green-wash);
  font-size: var(--r5-body);
  line-height: 1.55;
}
.layout-home .eplc-v8-summary strong { color: var(--green-ink); }
.layout-home .eplc-v8-copy .hm2-hero-actions {
  gap: .5rem;
  margin-inline-end: 0;
}
.layout-home .hm2-hero-actions > a {
  min-block-size: 50px;
  max-inline-size: 100%;
  font-size: clamp(1.0625rem, 1.32vw, 1.1875rem);
}
.layout-home .hm4-reassurance { font-size: 1rem; }
.layout-home .hm5-quick {
  gap: .5rem;
  margin-block: 0 clamp(1.5rem, 3vw, 2.5rem);
  padding-block: 0;
}
.layout-home .hm5-quick a {
  min-block-size: 48px;
  font-size: clamp(.875rem, 4.1vw, 1.0625rem);
}
.layout-home .r2-trust-line { font-size: clamp(1rem, 1.45vw, 1.3125rem); }
.layout-home .r2-trust-line > span { min-block-size: 62px; }
.layout-home .eplc-trust-experience strong { font-size: clamp(2.5rem, 5vw, 3.75rem); }

/* Homepage results, courses, proof and FAQ. */
.layout-home .hm-sheet > :is(section, .eplc-section, .hm-faq-section):not(.eplc-v8-hero) {
  margin-block-start: var(--r5-separation);
  padding-block: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-block-start: 1px solid var(--rule);
}
.layout-home .hm-sheet > :is(section, .eplc-section, .hm-faq-section) > h2 { margin-block-end: .65em; }
.layout-home .hm2-results-strip { gap: .75rem; }
.layout-home .hm2-results-strip > p {
  padding: clamp(1rem, 2vw, 1.375rem);
  background: var(--green-wash);
  color: var(--green-ink);
  font-size: clamp(1.1875rem, 1.8vw, 1.625rem);
}
@media (max-width: 767px) {
  .layout-home .hm5-posters { gap: .75rem; }
  .layout-home .hm5-poster { margin-block: .75rem; }
}
.layout-home .eplc-benefit-cards {
  gap: clamp(.875rem, 2vw, 1.5rem);
  margin-block-end: 0;
}
.layout-home .eplc-benefit-card {
  grid-template-columns: auto minmax(0, 1fr);
  gap: .625rem clamp(.75rem, 2vw, 1.125rem);
  padding: 3rem var(--r5-inset) var(--r5-inset);
}
.layout-home .eplc-benefit-icon {
  border-color: var(--green-wash);
  border-radius: .75rem;
  background: var(--green-wash);
  color: #4ade80;
  box-shadow: none;
}
.layout-home .eplc-benefit-card p { line-height: 1.6; }
.layout-home .eplc-section-availability { margin-inline-end: 0; }
.layout-home .eplc-admissions-title .eplc-section-eyebrow {
  font-size: clamp(1.5rem, 2.55vw, 2.1875rem);
}
.layout-home .eplc-availability-grid { gap: 1rem; }
.layout-home .hm5-tabs [role="tab"] { padding-inline: .9rem; font-size: 1rem; }
.layout-home .hm2-class-list { gap: .45rem; }
.layout-home .hm2-class-list li {
  padding: .3rem .65rem;
  background: var(--white);
  font-size: var(--r5-body);
}
.layout-home .hm-sheet :is(td, th, .hm2-comparison-row, .hm2-comparison-header) {
  font-size: var(--r5-body);
  line-height: 1.52;
}
.layout-home .hm-sheet :is(.r2-method-details, #hm5-faq details) > summary {
  padding-block: .85rem;
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.45;
}
.layout-home #hm5-faq details + details { margin-block-start: .625rem; }
.layout-home .r4-final-primary {
  min-block-size: clamp(64px, 6.1vw, 86px);
  font-size: clamp(1.3125rem, 2.45vw, 2.125rem);
}

@media (max-width: 359px) {
  .layout-home .hm5-quick a { padding-inline: .25rem; }
}
@media (min-width: 380px) and (max-width: 600px) {
  .layout-home .eplc-v8-copy .hm2-hero-actions { display: flex; }
  .layout-home .hm2-hero-actions > a { flex: 1 1 auto; padding-inline: .75rem; }
}
@media (min-width: 360px) and (max-width: 767px) {
  .layout-home .hm5-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 800px) {
  .layout-home .hm-sheet > .eplc-v8-hero {
    grid-template-areas: "copy media";
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  }
  .layout-home #eplc-v8-title { font-size: clamp(2.25rem, 4.22vw, 3.875rem); }
}
@media (prefers-reduced-motion: no-preference) {
  html:where(.r5-js) .layout-home .eplc-hero-highlight::before { animation-duration: 1100ms; }
  html:where(.r5-js) .layout-home #eplc-v8-title > span:nth-child(2) .eplc-hero-highlight::before { animation-delay: 300ms; }
  .layout-home :is(.eplc-benefit-card, .eplc-learning-lead, .r4-final-band):where(.is-home-visible),
  .layout-home .eplc-hero-habits:where(.is-home-visible) > li { animation-duration: 720ms; }
}

/* Trial introduction, booking controls and original course poster. */
[data-site-page="trial.html"] .a2-trial {
  padding-block-start: clamp(1.25rem, 3.4vw, 3.125rem);
}
.a2-trial .Breadcrumb { margin-block-end: clamp(.875rem, 2vw, 1.5rem); }
.a2-trial #r4-trial-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.25rem);
  padding-block: .5rem clamp(1rem, 2.5vw, 2rem);
}
.a2-trial #r4-trial-hero .r2-inner-copy {
  padding: 0;
  border: 0;
  box-shadow: none;
}
.a2-trial #r4-trial-hero .eplc-inner-title {
  margin-block-end: .38em;
  padding-block-end: .27em;
  font-size: clamp(2.25rem, 10.26vw, 2.75rem);
  line-height: 1.14;
  text-wrap: balance;
}
.a2-trial .r4-trial-summary {
  color: var(--green-ink);
  font-weight: 700;
  line-height: 1.5;
}
.a2-trial .r2-inner-copy > p {
  max-inline-size: 35em;
  font-size: var(--r5-body);
}
.a2-trial .r2-inner-copy > p + p { margin-block-start: .65em; }
.a2-trial .r4-trial-actions {
  gap: .625rem;
  margin-block: 1.125rem 0;
  margin-inline-end: 0;
}
.a2-trial :is(.r4-trial-actions > a, .eplc-course-action) {
  min-block-size: 50px;
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
}
.a2-trial .r4-trial-subject-link {
  justify-content: center;
  padding-inline: .875rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green-ink);
  text-decoration: none;
}
.a2-trial .r4-trial-subject-link:hover { background: var(--green-wash); }
.a2-trial .r4-trial-poster {
  inline-size: min(100%, 520px);
  justify-self: center;
  border-radius: var(--round);
}
.a2-trial .r4-trial-poster img { aspect-ratio: 1; }
.a2-trial .a2-former-table div:has(> .eplc-course-action) { padding-inline-end: 0; }

/* Trial section rhythm, step cards and disclosures. */
.a2-trial .BodyContent { margin-block-start: clamp(1.25rem, 3vw, 2.5rem); }
.a2-trial .BodyContent > * + * { margin-block-start: clamp(1.25rem, 3.1vw, 2.75rem); }
.a2-trial .BodyContent > details + details { margin-block-start: .625rem; }
.a2-trial .BodyContent > .v1-card {
  padding: var(--r5-inset);
  box-shadow: none;
}
.a2-trial .BodyContent > .a2-details { padding: 0; }
.a2-trial .a2-trial-section :is(p, li) { line-height: 1.64; }
.a2-trial .a2-trial-section h2 { margin-block-end: .45em; }
.a2-trial .a2-trial-section .eplc-section-eyebrow {
  font-size: clamp(1.5rem, 2.55vw, 2.1875rem);
  line-height: 1.3;
}
.a2-trial .r4-trial-intro {
  border-color: transparent;
  background: var(--green-wash);
}
.a2-trial .r4-trial-intro li + li { margin-block-start: .45rem; }
.a2-trial .a2-details > summary {
  padding: .9rem var(--r5-inset);
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.45;
}
.a2-trial .a2-details > summary:hover { color: var(--green-ink); }
.a2-trial .a2-details > section { margin-inline: var(--r5-inset); }
.a2-trial .a2-trial-sequence .eplc-course-layout-3f96890ece7b17 > div > div {
  display: grid;
  gap: .75rem;
  margin-block-start: 1rem;
}
.a2-trial .a2-trial-sequence .eplc-course-layout-ecd1722a3618b9 {
  height: 100%;
  padding: clamp(.875rem, 1.6vw, 1.25rem);
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--mist);
}
.a2-trial .a2-trial-sequence h3:not(.eplc-howto-title) { margin-block-end: .35em; }

/* Trial comparison cells and the four existing FAQ entries. */
.a2-trial .a2-comparison :is(th, td) {
  padding: .65em .75em;
  font-size: var(--r5-body);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.a2-trial .a2-comparison td[data-a2-label]::before {
  color: var(--green-ink);
  font-size: .9375rem;
}
.a2-trial .a2-comparison tbody td:last-child { background: var(--green-wash); }
.a2-trial [data-a2-section="12"] :is(.eplc-course-layout-171d074efade72, .eplc-course-layout-a2366ddb83890c) {
  padding-block: .75em;
  border-block-end: 1px solid var(--rule);
}
.a2-trial [data-a2-section="12"] :is(.eplc-course-layout-171d074efade72, .eplc-course-layout-a2366ddb83890c) > strong {
  color: var(--navy);
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  line-height: 1.4;
}
.a2-trial [data-a2-section="12"] .eplc-course-layout-6b5fdc898a3807 { margin-block-start: .35em; }
.a2-trial .v1-dark-cta .eplc-section-eyebrow-dark { color: var(--light-gold); }
[data-site-page="trial.html"] .r4-final-primary { font-size: clamp(1.125rem, 1.65vw, 1.5rem); }

@media (min-width: 380px) and (max-width: 767px) {
  .a2-trial .a2-comparison tbody tr { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .a2-trial .a2-comparison tbody th { grid-column: 1 / -1; }
}
@media (min-width: 800px) {
  .a2-trial #r4-trial-hero {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  }
  .a2-trial #r4-trial-hero .eplc-inner-title {
    font-size: clamp(2.875rem, 5.25vw, 4.625rem);
  }
  .a2-trial .a2-trial-sequence .eplc-course-layout-3f96890ece7b17 > div > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .a2-trial .r4-trial-intro ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
  }
  .a2-trial .r4-trial-intro li + li { margin-block-start: 0; }
  .a2-trial .a2-comparison { table-layout: fixed; }
  .a2-trial .a2-comparison thead th:first-child { inline-size: 23%; }
  .a2-trial [data-a2-section="12"] .eplc-course-layout-3f96890ece7b17 > div > div {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}
