/* Scoped to homepage additions; existing lesson and consultation flows keep their styles. */
#homeQuestionBankActivity {
  padding: 0 24px;
  background: #fff;
  color: #0a2344;
  border-bottom: 1px solid #edf0f4;
}
#homeQuestionBankActivity .home-qbank-activity-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
#homeQuestionBankActivity .home-qbank-live-dot {
  display: inline-flex;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a8b2bd;
  box-shadow: 0 0 0 4px #f0f3f6;
}
#homeQuestionBankActivity[data-connection="live"] .home-qbank-live-dot {
  background: #1aae72;
  box-shadow: 0 0 0 4px #e4f7ee;
  animation: home-qbank-presence-pulse 2.8s ease-in-out infinite;
}
#homeQuestionBankActivity .home-qbank-metric {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  line-height: 1.45;
}
#homeQuestionBankActivity .home-qbank-metric + .home-qbank-metric {
  border-left: 1px solid #e4e9ef;
  padding-left: 30px;
}
#homeQuestionBankActivity .home-qbank-metric dt { font-size: 14px; font-weight: 650; color: #566579; }
#homeQuestionBankActivity .home-qbank-metric dd { margin: 0; white-space: nowrap; font-weight: 800; }
#homeQuestionBankActivity .home-qbank-count { font-size: 27px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#homeQuestionBankActivity .home-qbank-unit { font-size: 14px; margin-left: 4px; }
dialog.home-qbank-promo {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(880px, calc(100vw - 32px), calc(150svh - 144px));
  max-width: none;
  max-height: none;
  height: fit-content;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: #102846;
  box-shadow: 0 24px 80px rgb(0 13 35 / 28%);
  font-family: inherit;
}
dialog.home-qbank-promo:not([open]) { display: none; }
dialog.home-qbank-promo::backdrop { background: rgb(5 20 40 / 56%); }
.home-qbank-poster-link { display: block; position: relative; color: inherit; line-height: 0; }
.home-qbank-poster-link picture { display: block; }
.home-qbank-poster-link img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.home-qbank-poster-link:focus-visible { outline: 4px solid #0067ff; outline-offset: -4px; }
.home-qbank-promo-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: rgb(8 28 52 / 86%);
  color: #fff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}
.home-qbank-promo-close:focus-visible { outline: 3px solid #0067ff; outline-offset: 3px; }
.home-qbank-promo-footer { display: flex; min-height: 54px; padding: 3px 18px; align-items: center; justify-content: flex-end; background: #fff; }
.home-qbank-promo-footer label { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.home-qbank-promo-footer input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: #0067ff; }
.home-qbank-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) and (orientation: portrait) {
  dialog.home-qbank-promo { width: min(480px, calc(100vw - 24px), calc(80svh - 88px)); border-radius: 15px; }
  .home-qbank-poster-link img { aspect-ratio: 1122 / 1402; }
  .home-qbank-promo-close { top: 7px; right: 7px; }
}
@media (max-width: 640px) {
  #homeQuestionBankActivity { padding: 0 16px; }
  #homeQuestionBankActivity .home-qbank-activity-inner { min-height: 90px; gap: 15px; }
  #homeQuestionBankActivity .home-qbank-metric { flex-direction: column; gap: 2px; }
  #homeQuestionBankActivity .home-qbank-metric + .home-qbank-metric { padding-left: 15px; }
  #homeQuestionBankActivity .home-qbank-metric dt { font-size: 12px; white-space: nowrap; letter-spacing: -.025em; }
  #homeQuestionBankActivity .home-qbank-count { font-size: 24px; }
  #homeQuestionBankActivity .home-qbank-unit { font-size: 12px; }
}


@keyframes home-qbank-presence-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgb(26 174 114 / 12%); }
  50% { opacity: .42; box-shadow: 0 0 0 7px rgb(26 174 114 / 3%); }
}
@media (prefers-reduced-motion: reduce) {
  #homeQuestionBankActivity .home-qbank-live-dot { animation: none; }
}
