/* One shared footer finish across the homepage, story, and educator pages. */
.site-bottom-bar {
  border-top: 8px solid #ffd21c;
  background: #071742 !important;
  color: #fff;
}

.site-bottom-bar .bottom-brand strong { color: #fff; }
.site-bottom-bar .bottom-brand span,
.site-bottom-bar small { color: #cbd5f5; }
/* The centre mission line is the footer's yellow focal point on every page. */
footer.site-bottom-bar > p {
  color: #ffd21c !important;
}

/* English mission copy is longer, but the footer lockup itself remains shared
   with Chinese so the brand and copyright do not shift between languages. */
.footer-branches {
  display: grid !important;
  grid-template-columns: max-content max-content;
  column-gap: 0;
  row-gap: 3px;
  margin-top: 6px !important;
  letter-spacing: 0 !important;
}

/* Story and Educators load a legacy text rule that spaces every nested span.
   Reset each branch name explicitly so their left lockup is pixel-consistent
   with the Home footer, including PJ SS2 and PJ SS3. */
footer.site-bottom-bar .footer-branches > span {
  display: block !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

/* Each branch is a clear bullet item while the requested two-row grid stays aligned. */
footer.site-bottom-bar .footer-branches > span::before {
  content: "•";
  display: inline-block;
  margin-right: 7px;
  color: #cbd5f5;
}

/* The second item in each row needs air on both sides of its bullet. */
footer.site-bottom-bar .footer-branches > span:nth-child(even)::before {
  margin-left: 18px;
}

html[lang="en"] footer.site-bottom-bar > p {
  font-size: clamp(18px, 1.65vw, 26px);
  line-height: 1.12;
  letter-spacing: -.025em;
  white-space: normal;
}

/* The assistant sits at the lower-right corner on desktop. Keep the copyright
   in a shared safe area so every page footer finishes cleanly beside it. */
@media (min-width: 1101px) {
  footer.site-bottom-bar small {
    margin-right: clamp(80px, 7vw, 150px);
  }
}

/* Branch names are the same proper nouns in Chinese and English. Give them
   one explicit metric instead of allowing page-specific or OS fallback rules
   to change PJ SS2 / PJ SS3 between Home, Story and Educators. */
footer.site-bottom-bar .bottom-brand .footer-branches {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

footer.site-bottom-bar .bottom-brand .footer-branches > span {
  font: inherit !important;
}

/* Copyright uses one position and text metric in both languages and across
   every page. This prevents English from sitting higher, smaller or farther
   left than the Chinese footer. */
footer.site-bottom-bar small {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: .025em !important;
  white-space: nowrap !important;
}

/* MyGuru Education 补习专家 is one brand name, never two lines. The name
   shares a measured responsive size with every page rather than inheriting
   the older Chinese/English size split. */
footer.site-bottom-bar .bottom-brand {
  min-width: 0;
}

footer.site-bottom-bar .bottom-brand > div {
  min-width: 0;
}

footer.site-bottom-bar .bottom-brand strong {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: clamp(18px, 1.45vw, 24px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

@media (max-width: 1100px) {
  footer.site-bottom-bar .bottom-brand strong {
    font-size: clamp(17px, 2.5vw, 22px) !important;
  }
}

@media (max-width: 600px) {
  footer.site-bottom-bar .bottom-brand {
    width: 100%;
  }

  footer.site-bottom-bar .bottom-brand strong {
    font-size: clamp(15px, 4.2vw, 18px) !important;
  }
}
