/**
 * Nanban Landing World — hero ALWAYS visible (loads last, wins all conflicts)
 */

/* ═══ Force landing hero readable — no invisible gradient / reveal traps ═══ */
html.nanban-ready #loginScreen .nb-hero-content,
html.nanban-ready #loginScreen .nb-hero-sub,
html.nanban-ready #loginScreen .nb-hero-glass-cta,
html.nanban-ready #loginScreen .nb-hero-stats,
html.nanban-ready #loginScreen .nb-hero-trust,
html.nanban-ready #loginScreen .nb-nav,
html.nanban-ready #loginScreen .nb-nav-links,
html.nanban-ready #loginScreen .nb-hero-cta,
html.nanban-ready #loginScreen .nb-hero-cta .nb-btn {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

html.nanban-ready #loginScreen .nb-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* School name — SOLID ink (gradient optional enhancement only) */
html.nb-ivory-theme #loginScreen .nb-hero-title,
html.nb-ivory-theme #loginScreen.nb-ultra .nb-hero-title {
  max-width: none !important;
  width: 100% !important;
  line-height: 1.08 !important;
  color: #0c0a09 !important;
}

html.nb-ivory-theme #loginScreen .nb-hero-title-main {
  display: block !important;
  font-size: clamp(0.9rem, 2.2vw, 1.1rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #57534e !important;
  margin-bottom: 0.35em !important;
}

/* School name — Nanban brand red, always visible (no gradient clip) */
html.nb-ivory-theme #loginScreen #nbHeroSchoolName,
html.nb-ivory-theme #loginScreen .nb-hero-school-name,
html.nb-ivory-theme #publicPortal #nbHeroSchoolName,
html.nb-ivory-theme #loginScreen #nbNavSchoolName {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  font-family: "Noto Sans Tamil", "Plus Jakarta Sans", "Inter", sans-serif !important;
  font-size: clamp(2.5rem, 9vw, 5rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  word-break: keep-all !important;
  color: #991b1b !important;
  -webkit-text-fill-color: #991b1b !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 16px rgba(153, 27, 27, 0.12) !important;
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html.nb-ivory-theme #loginScreen #nbNavSchoolName {
  display: inline !important;
  width: auto !important;
  font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

html.nb-ivory-theme #loginScreen .nb-hero-title .nb-line-accent {
  display: block !important;
  margin-top: 0.4em !important;
  font-size: clamp(0.9rem, 2.3vw, 1.15rem) !important;
  font-weight: 600 !important;
  color: #57534e !important;
  line-height: 1.45 !important;
}

html.nb-ivory-theme #loginScreen .nb-hero-kicker {
  color: #57534e !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

html.nb-ivory-theme #loginScreen .nb-nav-title .nb-nav-ta,
html.nb-ivory-theme #loginScreen #nbNavSchoolName {
  font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
  font-weight: 800 !important;
  color: #991b1b !important;
  -webkit-text-fill-color: #991b1b !important;
  background: none !important;
  line-height: 1.2 !important;
}

html.nb-ivory-theme #loginScreen .nb-nav-title small {
  color: #78716c !important;
}

html.nb-ivory-theme #loginScreen .nb-hero-sub {
  color: #44403c !important;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem) !important;
  line-height: 1.6 !important;
  max-width: 42ch !important;
}

/* CTA buttons — always visible, premium hover */
html.nb-ivory-theme #loginScreen .nb-hero-glass-cta {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(28, 25, 23, 0.1) !important;
  border-radius: 18px !important;
  padding: 18px 20px !important;
  box-shadow: 0 16px 48px rgba(28, 25, 23, 0.08) !important;
}

html.nb-ivory-theme #loginScreen .nb-btn-primary {
  background: linear-gradient(135deg, #14b8a6, #0d9488, #0f766e) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: none !important;
  min-height: 48px !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.32) !important;
}

html.nb-ivory-theme #loginScreen .nb-btn-outline {
  background: #ffffff !important;
  color: #0c0a09 !important;
  border: 1px solid rgba(28, 25, 23, 0.14) !important;
  font-weight: 600 !important;
  min-height: 48px !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
}

html.nb-ivory-theme #loginScreen .nb-nav-btn {
  opacity: 1 !important;
  visibility: visible !important;
}

html.nb-ivory-theme #loginScreen .nb-nav-btn--primary {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  color: #fff !important;
}

/* Stats row */
html.nb-ivory-theme #loginScreen .nb-hero-stat strong {
  color: #0c0a09 !important;
  font-size: 1.25rem !important;
}

html.nb-ivory-theme #loginScreen .nb-hero-stat span {
  color: #78716c !important;
  font-size: 0.75rem !important;
}

/* Subtle motion only on bento (below fold) — not hero */
@media (prefers-reduced-motion: no-preference) {
  html.nb-ivory-theme #loginScreen .nb-bento-cell:hover,
  html.nb-ivory-theme #loginScreen .nb-public-bento-card:hover {
    transform: translateY(-4px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  html.nb-ivory-theme #loginScreen .nb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.35) !important;
  }
}

@media (max-width: 768px) {
  html.nb-ivory-theme #loginScreen .nb-nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  html.nb-ivory-theme #loginScreen .nb-hero-cta {
    flex-direction: column !important;
  }

  html.nb-ivory-theme #loginScreen .nb-hero-cta .nb-btn {
    width: 100% !important;
    text-align: center !important;
  }
}
