:root {
  --brand-ink: #14283c;
  --brand-blue: #075ba5;
  --brand-blue-deep: #06477f;
  --brand-cyan: #138ba5;
  --brand-paper: #f4f8fc;
  --brand-mist: #e8f1f8;
  --brand-line: #d3e0eb;
  --brand-copy: #30475d;
  --brand-muted: #52687c;
}

html { scroll-behavior: smooth; }
body, #root {
  font-family: "DM Sans", "Manrope", sans-serif;
  color: var(--brand-ink);
  background: var(--brand-paper);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
#root :is(h1,h2,h3,h4,h5,h6) {
  font-family: "Manrope", "DM Sans", sans-serif;
  line-height: 1.18;
}
#root main:not(.yu-home) { color: var(--brand-copy); }
#root main:not(.yu-home) p:not([class*="text-"]),
#root main:not(.yu-home) li:not([class*="text-"]) { font-size: 16px; line-height: 1.72; }
#root main:not(.yu-home) :is(.text-xs,[class*="text-[10px]"],[class*="text-[11px]"]) { font-size: 12px !important; line-height: 1.5; }
#root main:not(.yu-home) .text-sm { font-size: 14px !important; }
#root main:not(.yu-home) :is(input,select,textarea,button) { font-family: inherit; }
#root main:not(.yu-home) :is(input,select,textarea) { font-size: 16px; }
#root main:not(.yu-home) :is(button,a) { -webkit-tap-highlight-color: transparent; }

#root .yu-shared-header { font-family: "DM Sans", sans-serif; }
#root .yu-shared-header > div:first-child .container :is(a,span) {
  font-size: 14px !important;
  line-height: 1.45;
}
#root .yu-shared-header nav > a,
#root .yu-shared-header nav > div > button,
#root .yu-shared-header [data-testid="link-enquire"],
#root .yu-shared-header [data-testid="link-call-now"] {
  font-family: "DM Sans", sans-serif;
  font-size: 15px !important;
  font-weight: 600;
}
#root .yu-shared-header [data-testid="link-logo"] span:first-of-type,
#root .yu-shared-header [data-testid="link-logo"] p:first-of-type {
  font-family: "Manrope", sans-serif;
}
#root .yu-mobile-menu { font-family: "DM Sans", sans-serif; }
#root .yu-mobile-menu a { font-size: 16px !important; line-height: 1.45; }
#root .yu-mobile-menu > div:first-child p:nth-of-type(2) { font-size: 12px !important; }

#root footer.yu-shared-footer {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
#root footer.yu-shared-footer :is(p,a,span,li) {
  font-size: 14px;
  line-height: 1.65;
}
#root footer.yu-shared-footer :is(h1,h2,h3,h4) { font-family: "Manrope", sans-serif; }
#root footer.yu-shared-footer a[href^="https://wa.me"] { font-size: 14px !important; }

/* The home page has its own art-directed type system; bring its compact labels
   into the same readable scale as the rest of the site. */
.yu-home { font-family: "DM Sans", sans-serif !important; color: var(--brand-ink) !important; }
.yu-home h1,.yu-home h2,.yu-home h3 { font-family: "Manrope", sans-serif !important; }
.yu-home .yu-nav { font-size: 14px; }
.yu-home .yu-kicker { font-size: 14px; line-height: 1.5; letter-spacing: .09em; }
.yu-home .yu-eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .09em; }
.yu-home .yu-kicker { margin-bottom: 24px; }
.yu-home .yu-button,.yu-home .yu-text-link { font-size: 14px; }
.yu-home .yu-hero-foot,.yu-home .yu-hero-bottom,
.yu-home .yu-section-index,.yu-home .yu-art-label,
.yu-home .yu-data-tag,.yu-home .yu-course-no,.yu-home .yu-course-main>span,
.yu-home .yu-course-note,.yu-home .yu-course-price small,.yu-home .yu-fee-footnote,
.yu-home .yu-stat span,.yu-home .yu-method-aside>span,
.yu-home .yu-service-no,.yu-home .yu-service p,
.yu-home .yu-faculty-count,.yu-home .yu-faculty-meta>span,
.yu-home .yu-quote-top,.yu-home .yu-quote-by small,
.yu-home .yu-carousel-controls,.yu-home .yu-stories-bottom>p,
.yu-home .yu-policy-aside>span,.yu-home .yu-policy-lines small,
.yu-home .yu-contact-details,.yu-home .yu-contact-bottom {
  font-size: 12px;
  line-height: 1.55;
}
.yu-home .yu-course-main>strong { font-size: 18px; }
.yu-home .yu-service h3,.yu-home .yu-faq-item button strong { font-size: 14px; }
.yu-home .yu-faq-answer p,.yu-home .yu-about-body>p,
.yu-home .yu-method-intro,.yu-home .yu-section-heading>p,
.yu-home .yu-contact-intro { font-size: 16px; line-height: 1.7; }
.yu-home .yu-quote-top strong { font-size: 14px; }
.yu-home .yu-quote-by b { font-size: 13px; }
.yu-home .yu-policy-lines strong { font-size: 14px; }
.yu-home .yu-contact { font-family: "DM Sans", sans-serif; }
.yu-home .yu-contact h2 { font-family: "Manrope", sans-serif; }

@media (max-width: 760px) {
  #root .yu-shared-header > div:first-child .container :is(a,span) { font-size: 14px !important; }
  #root .yu-shared-header nav > a,
  #root .yu-shared-header nav > div > button,
  #root .yu-shared-header [data-testid="link-enquire"],
  #root .yu-shared-header [data-testid="link-call-now"] { font-size: 14px !important; }
  #root footer.yu-shared-footer { font-size: 14px; }
  .yu-home .yu-nav { font-size: 16px; }
  .yu-home .yu-hero { padding-top: 116px; }
  .yu-home .yu-hero-foot,.yu-home .yu-hero-bottom { font-size: 12px; }
  .yu-home .yu-course-main>span { font-size: 12px; }
}
@media (max-width: 390px) {
  #root main:not(.yu-home) { overflow-wrap: anywhere; }
  .yu-home .yu-hero { padding-left: 18px; padding-right: 18px; }
  .yu-home .yu-hero-foot { gap: 8px; flex-wrap: wrap; }
  .yu-home .yu-hero-bottom { letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.yu-injected-fee-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #c5d9ec;
  border-radius: 10px;
  background: #eaf3fb;
  color: var(--brand-blue) !important;
  font-family: "DM Sans", sans-serif;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.yu-injected-fee-link:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff !important;
}
#root .yu-mobile-menu .yu-injected-fee-link {
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  margin-top: 10px;
  padding-inline: 14px;
}
.yu-home .yu-nav .yu-injected-fee-link {
  margin-inline: 2px;
}
#root .yu-shared-header [data-yu-mobile-fee-link] { display: none; }

.yu-fee-policy-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 1px solid #c8dced;
  border-radius: 16px;
  background: linear-gradient(125deg, #f1f7fc, #e6f1fa);
  color: var(--brand-ink);
  box-shadow: 0 12px 30px rgb(20 40 60 / 7%);
}
.yu-fee-policy-note h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--brand-ink);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}
.yu-fee-policy-note p {
  margin: 0;
  color: var(--brand-copy);
  font-size: 15px;
  line-height: 1.55;
}
.yu-fee-policy-note strong { color: var(--brand-blue-deep); }

#root footer.yu-shared-footer {
  margin-top: 32px !important;
}
#root footer.yu-shared-footer > div:first-child > div {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
#root footer.yu-shared-footer > div:nth-child(2) {
  padding-top: 34px !important;
  padding-bottom: 26px !important;
}
#root footer.yu-shared-footer > div:nth-child(2) > div:first-child {
  gap: 26px !important;
  margin-bottom: 22px !important;
}
#root footer.yu-shared-footer > div:last-child > div {
  padding-top: 15px !important;
}
#root footer.yu-shared-footer a[href^="https://wa.me"] { display: none !important; }

@media (max-width: 760px) {
  .yu-fee-policy-note {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 17px;
  }
  .yu-fee-policy-note h2 { font-size: 17px; }
  #root footer.yu-shared-footer > div:nth-child(2) {
    padding-top: 24px !important;
    padding-bottom: 18px !important;
  }
  #root footer.yu-shared-footer > div:nth-child(2) > div:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 16px !important;
    margin-bottom: 16px !important;
  }
  #root footer.yu-shared-footer > div:nth-child(2) > div:first-child > div:first-child,
  #root footer.yu-shared-footer > div:nth-child(2) > div:first-child > div:last-child {
    grid-column: 1 / -1;
  }
  .yu-home .yu-nav.is-open .yu-injected-fee-link {
    width: 100%;
    justify-content: space-between;
    margin: 12px 0 0;
  }
}

@media (max-width: 1023px) {
  #root .yu-shared-header [data-yu-mobile-fee-link] {
    display: inline-flex;
    min-height: 38px;
    margin-left: auto;
    padding: 8px 12px;
    font-size: 13px !important;
  }
}
