/* Kings Funding — responsive layer. Overrides the inline desktop styles below 900px. */
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; }
.nav-burger { display: none; }
.nav-mobile { display: none; }

@media (max-width: 900px) {
  /* Sections */
  .sec { padding-left: 20px !important; padding-right: 20px !important; padding-top: 64px !important; padding-bottom: 64px !important; }
  .sec.marq { padding-left: 0 !important; padding-right: 0 !important; padding-top: 22px !important; padding-bottom: 22px !important; }
  .sec.hero { padding-top: 56px !important; padding-bottom: 64px !important; }

  /* Rows that become columns */
  .stack { flex-direction: column !important; gap: 36px !important; align-items: stretch !important; }
  .stack > * { flex: none !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }

  /* Grids */
  .g1 { grid-template-columns: 1fr !important; }
  .g2 { grid-template-columns: 1fr 1fr !important; }
  .g2 p:first-child { font-size: 34px !important; }
  .g2 > div:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Type */
  h1 { font-size: clamp(32px, 9.5vw, 40px) !important; line-height: 1.1 !important; }
  h2 { font-size: clamp(28px, 7.5vw, 32px) !important; line-height: 1.15 !important; }
  h3 { font-size: 21px !important; }
  p { overflow-wrap: anywhere; }

  /* Cards */
  .card { padding: 26px 20px !important; }
  .tcard { padding: 28px 20px !important; gap: 24px !important; }
  .tcard > div > p:first-child { font-size: 20px !important; line-height: 1.5 !important; margin-bottom: 18px !important; }
  .tcard > div:last-child { min-height: 240px !important; }

  /* Home hero visual */
  .hero-vis { min-height: 0 !important; margin: 8px 0 0 !important; perspective: none !important; }
  .hero-card { transform: none !important; padding: 20px 18px !important; }
  .hero-back { display: none !important; }
  .chip { position: relative !important; inset: auto !important; z-index: 2; margin-top: 12px !important; animation: none !important; width: 100%; box-sizing: border-box; justify-content: flex-start; }
  .unstick { position: static !important; }

  /* Product hero cards, buttons */
  .btnrow { flex-wrap: wrap !important; gap: 12px !important; }
  .btnrow > a { display: inline-block; text-align: center; }

  /* Timeline (About) */
  .tl > * { padding: 0 0 8px !important; margin-bottom: 8px; }
  .tl > * > div:first-child { display: none !important; }

  /* Footer */
  .fstack { flex-direction: column !important; gap: 36px !important; }
  .fcols { gap: 28px 40px !important; }

  /* Nav */
  .nav-inner { padding: 0 20px !important; height: 64px !important; }
  .nav-inner img { height: 32px !important; }
  .nav-desktop { display: none !important; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(143,180,220,0.45); border-radius: 8px; background: transparent; color: #fff; font-size: 20px; cursor: pointer; padding: 0; }
  .nav-mobile { display: block; position: absolute; top: 64px; left: 0; right: 0; background: #020E24; border-top: 1px solid rgba(86,128,171,0.35); box-shadow: 0 24px 48px rgba(2,14,36,0.5); padding: 8px 20px 24px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-mobile a.nm-link { display: block; padding: 14px 0; border-bottom: 1px solid rgba(86,128,171,0.25); color: #fff; font-size: 17px; font-weight: 600; }
  .nav-mobile a.nm-sub { display: block; padding: 11px 0 11px 16px; border-bottom: 1px solid rgba(86,128,171,0.18); color: #C6D6E8; font-size: 15px; font-weight: 500; }
  .nav-mobile .nm-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #8FB4DC; font-weight: 700; margin: 18px 0 4px; }
  .nav-mobile a.nm-cta { display: block; margin-top: 20px; background: #5680AB; color: #fff; text-align: center; font-weight: 700; font-size: 16px; padding: 15px; border-radius: 8px; }
  .nav-mobile .nm-help { margin: 16px 0 0; color: #7E97B8; font-size: 14px; }
  .nav-mobile .nm-help a { color: #C6D6E8; font-weight: 600; }
}
