/* OpenData landing page — app-specific styles only.
   The hero, feature cards, and CTA are styled by the aecs4u-theme
   landing.css (hero-section / feature-card / cta-card, etc.), which the
   page also links. The single component the theme does not provide is the
   hero "code-sample window", styled here and scoped under .landing-page so
   it never bleeds into other pages. */

.landing-page .code-window {
  max-width: 520px;
}

.landing-page .traffic-dot {
  width: 12px;
  height: 12px;
}

.landing-page .code-sample {
  background: var(--bs-body-bg);
  border-radius: 0 0 0.5rem 0.5rem;
  font-size: 0.85rem;
}

/* Mobile: keep the sample inside the card (scroll instead of overflowing the page)
   and give it AA contrast in light mode (Bootstrap's text-success/info are too pale). */
.landing-page .code-window { width: 100%; }
.landing-page .code-sample { overflow-x: auto; max-width: 100%; }
.landing-page .code-sample code { white-space: pre; }
[data-bs-theme="light"] .landing-page .code-sample .text-success { color: #0f6b3a !important; }
[data-bs-theme="light"] .landing-page .code-sample .text-info { color: #0b6a8a !important; }
[data-bs-theme="light"] .landing-page .code-sample .text-secondary { color: #565e66 !important; }
.landing-page .cta-card .btn { max-width: 100%; white-space: normal; }
