/* Site-level extras (layout helpers). Visual system remains in tailwind.min.css */
html {
  scroll-behavior: smooth;
}

/* Accordion answer panels: readable text on light cards */
[id^="content-"] {
  color: #111827 !important;
  background: #ffffff;
}

[id^="content-"] p,
[id^="content-"] li,
[id^="content-"] span,
[id^="content-"] a {
  color: #111827 !important;
}

/*
  Light black-theme panels keep dark text.
  Do NOT target bare .bg-white — many dark cards keep that base class
  and only switch via black:bg-* (timer digits, review cards).
*/
[data-theme="black"] .black\:bg-white,
[data-theme="black"] .black\:bg-grey-dark {
  color: #111827;
}

[data-theme="black"] .black\:bg-white > p,
[data-theme="black"] .black\:bg-grey-dark > p,
[data-theme="black"] .black\:bg-grey-dark > .font-semibold {
  color: #111827 !important;
}

/* Dark surfaces must stay light text (background/contrast only) */
[data-theme="black"] .black\:bg-black,
[data-theme="black"] .black\:bg-dark,
[data-theme="black"] [data-timer-digit] {
  color: #ffffff !important;
}

[data-theme="black"] .black\:bg-dark p,
[data-theme="black"] .black\:bg-dark span:not(.black\:text-black) {
  color: #ffffff !important;
}

/* White badges inside dark review cards keep dark text */
[data-theme="black"] .black\:bg-dark .black\:bg-white,
[data-theme="black"] .black\:bg-dark .black\:text-black,
[data-theme="black"] .black\:bg-dark .black\:bg-white span,
[data-theme="black"] .black\:bg-dark .black\:text-black span {
  color: #111827 !important;
}

/* Decorative banners must never stretch into tall garbage */
img[src*="unique-banner"],
img[src*="statistics-banner"] {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
  display: block;
}
