/* MissionaryConnect Help — official navy/blue brand overrides (compiled Tailwind left intact). */

:root {
  --mc-navy: #050b18;
  --mc-navy-2: #0a1628;
  --mc-deep: #0B3FA8;
  --mc-blue: #1656c9;
  --mc-light: #5AB0F5;
  --mc-ice: #c8e6ff;
  --mc-text: #f3f7ff;
  --mc-muted: #b7c7dc;
  --mc-border: rgba(90, 176, 245, 0.22);
}

html.dark {
  color-scheme: dark;
  background-color: var(--mc-navy);
}

html.dark body {
  background-color: var(--mc-navy);
  color: var(--mc-text);
}

html:not(.dark) body {
  background-color: #f3f6fb;
  color: #0a1628;
}

/* Header is always navy with a white wordmark */
header.sticky {
  background-color: rgba(5, 11, 24, 0.94) !important;
  border-bottom: 1px solid var(--mc-border) !important;
  color: #fff;
  backdrop-filter: blur(10px);
}

header.sticky .brand-wordmark {
  color: #fff !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 0.95rem;
  line-height: 1.15;
}

header.sticky img.brand-mark {
  height: 2rem;
  width: 2rem;
  border-radius: 0;
  background: transparent;
}

header.sticky #menu-btn,
header.sticky #theme-btn,
header.sticky #menu-btn svg,
header.sticky #theme-btn svg {
  color: #e8f2ff;
}

header.sticky #menu-btn:hover,
header.sticky #theme-btn:hover {
  background-color: rgba(90, 176, 245, 0.14);
}

.header-docs-link {
  color: var(--mc-ice) !important;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.35rem 0.15rem;
}

.header-docs-link:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Search field in the navy header */
header #search-input {
  background-color: rgba(10, 22, 40, 0.9) !important;
  border-color: rgba(90, 176, 245, 0.28) !important;
  color: #f3f7ff !important;
}

header #search-input::placeholder {
  color: #93a9c2;
}

header #search-input:focus {
  border-color: var(--mc-light) !important;
  box-shadow: 0 0 0 2px rgba(90, 176, 245, 0.35);
}

/* Brand buttons */
#ask-ai,
.bg-brand-600,
button.bg-brand-600,
a.bg-brand-600 {
  background-color: var(--mc-deep) !important;
}

#ask-ai:hover,
.hover\:bg-brand-700:hover,
button.bg-brand-600:hover {
  background-color: var(--mc-blue) !important;
}

html.dark .text-brand-600,
html.dark .ask-ai-trigger,
html.dark a.text-brand-600,
html.dark .hover\:text-brand-600:hover {
  color: var(--mc-light) !important;
}

html:not(.dark) .text-brand-600,
html:not(.dark) .ask-ai-trigger,
html:not(.dark) a.text-brand-600 {
  color: var(--mc-deep);
}

/* Homepage hero: official wave artwork, darkened for contrast */
.hero-banner {
  position: relative;
  isolation: isolate;
  background-color: var(--mc-navy);
  background-image: linear-gradient(180deg, rgba(5, 11, 24, 0.35) 0%, rgba(5, 11, 24, 0.78) 100%),
    url("/assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--mc-border) !important;
  color: #fff;
}

@supports (background-image: image-set(url("/assets/hero-bg.webp") type("image/webp"))) {
  .hero-banner {
    background-image: linear-gradient(180deg, rgba(5, 11, 24, 0.35) 0%, rgba(5, 11, 24, 0.78) 100%),
      image-set(url("/assets/hero-bg.webp") type("image/webp"), url("/assets/hero-bg.jpg") type("image/jpeg"));
  }
}

.hero-banner h1 {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-banner p,
.hero-banner .hero-sub,
.hero-banner .text-slate-600,
.hero-banner .text-slate-500,
.hero-banner .dark\:text-slate-300 {
  color: #d7e6f8 !important;
}

.hero-banner #hero-search {
  background-color: rgba(5, 11, 24, 0.72) !important;
  border-color: rgba(90, 176, 245, 0.35) !important;
  color: #fff !important;
}

.hero-banner #hero-search:focus {
  border-color: var(--mc-light) !important;
  box-shadow: 0 0 0 3px rgba(90, 176, 245, 0.3);
}

/* Topic cards */
html.dark .card {
  background-color: var(--mc-navy-2);
  border: 1px solid rgba(90, 176, 245, 0.14);
  box-shadow: none;
}

html.dark .card:hover {
  border-color: var(--mc-light);
}

html.dark .card .bg-brand-50,
html.dark .card .dark\:bg-brand-900\/40 {
  background-color: rgba(11, 63, 168, 0.35);
}

/* Sidebar / chat / footer contrast */
html.dark #sidebar,
html.dark #chat-panel,
html.dark aside#chat-panel {
  background-color: #070f1e !important;
  border-color: var(--mc-border) !important;
}

html.dark footer {
  border-top-color: var(--mc-border) !important;
  color: var(--mc-muted);
}

html.dark .doc-prose,
html.dark article {
  color: #e8eef7;
}

html.dark .doc-prose a {
  color: var(--mc-light);
}

html.dark #search-results {
  background-color: #0a1628 !important;
  border-color: var(--mc-border) !important;
}

/* Focus rings for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mc-light);
  outline-offset: 2px;
}

/* Do not let the M mark pick up a white/rounded tile */
img.brand-mark {
  background: transparent !important;
  border-radius: 0 !important;
}

@media (max-width: 639px) {
  header.sticky .brand-wordmark {
    display: none;
  }
}
