/* LiveEdit global navbar */

.le-navbar {
  --brand: #2563eb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  font-family: "Fredoka", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.le-navbar .le-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.le-navbar .le-brand {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-family: "Fredoka", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand);
  text-decoration: none;
}

.le-navbar .le-brand h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.le-navbar .le-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.le-navbar .le-nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.le-navbar .le-nav-links a:hover { color: var(--brand); }

.le-navbar .le-nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.le-navbar .le-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .5rem 1.1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}

.le-navbar .le-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.le-navbar .le-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.le-navbar .le-btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.le-navbar .le-btn-primary:hover { background: #1d4ed8; }

.le-navbar .le-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: .4rem;
}

@media (max-width: 900px) {
  .le-navbar .le-nav-links,
  .le-navbar .le-nav-cta { display: none; }
  .le-navbar .le-menu-toggle { display: block; }
  .le-navbar.is-open { background: #fff; }
  .le-navbar.is-open .le-nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: .75rem;
    padding-bottom: .75rem;
  }
  .le-navbar.is-open .le-nav-links,
  .le-navbar.is-open .le-nav-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    gap: .75rem;
    background: #fff;
  }
  .le-navbar.is-open .le-nav-links {
    order: 3;
    border-top: 1px solid var(--line);
    margin-top: .75rem;
  }
  .le-navbar.is-open .le-nav-cta { order: 4; }
  .le-navbar.is-open .le-nav-cta .le-btn { width: 100%; }
}

/* Footer */
.le-footer {
  border-top: 1px solid var(--line);
  padding: 0;
  background: #fff;
  color: var(--text);
}
.le-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.le-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: "Fredoka", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #2563eb;
  text-decoration: none;
}
.le-footer-links {
  display: flex;
  gap: 1.5rem;
}
.le-footer-links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
}
.le-footer-links a:hover { color: #111827; }
.le-footer-copy {
  color: #6b7280;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .le-footer-inner { flex-direction: column; text-align: center; }
}

/* Remove default focus rings from text fields */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  border-color: #d1d5db !important;
}

/* Suppress browser autofill background color on text fields */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
  color: #000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Dark mode */
.dark .le-navbar {
  --text: #f9fafb;
  --muted: #9ca3af;
  --line: #374151;
  background: rgba(17,24,39,0.95);
}
.dark .le-navbar .le-nav-links a { color: var(--text); }
.dark .le-navbar .le-nav-links a:hover { color: var(--brand); }
.dark .le-navbar .le-menu-toggle { color: var(--text); }
.dark .le-navbar .le-btn-ghost {
  color: var(--text);
  border-color: var(--line);
}
.dark .le-navbar .le-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.dark .le-navbar.is-open,
.dark .le-navbar.is-open .le-nav-links,
.dark .le-navbar.is-open .le-nav-cta { background: #111827; }

.dark .le-footer {
  background: #111827;
  border-top-color: #374151;
  color: #f9fafb;
}
.dark .le-footer-brand { color: #2563eb; }
.dark .le-footer-links a { color: #9ca3af; }
.dark .le-footer-links a:hover { color: #f9fafb; }
.dark .le-footer-copy { color: #9ca3af; }

.dark input:-webkit-autofill,
.dark input:-webkit-autofill:hover,
.dark input:-webkit-autofill:focus,
.dark input:-webkit-autofill:active,
.dark textarea:-webkit-autofill,
.dark textarea:-webkit-autofill:hover,
.dark textarea:-webkit-autofill:focus,
.dark textarea:-webkit-autofill:active,
.dark select:-webkit-autofill,
.dark select:-webkit-autofill:hover,
.dark select:-webkit-autofill:focus,
.dark select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #1f2937 inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}
