/* Custom Styles */
/* The Joyful Trader: Kajabi theme overrides (paste into Settings > Custom Code > CSS code) */

:root {
  --jt-midnight: #1a1d2e; --jt-navy: #22253a; --jt-cream: #f5f0e8;
  --jt-amber: #d4a43a; --jt-teal: #17706f; --jt-steel: #8a9bb5;
}

/* Type */
body, p, li, input, select, textarea, button, .btn, .link-list__link, .dropdown__item {
  font-family: 'Outfit', system-ui, sans-serif !important;
}
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
}
h5, h6, .h5, .h6 { font-family: 'Outfit', system-ui, sans-serif !important; font-weight: 600 !important; }
body { color: var(--jt-midnight); -webkit-font-smoothing: antialiased; }
a { color: var(--jt-teal); }

/* Header */
.header, .header__content, .header__content--desktop, .header__content--mobile {
  background: var(--jt-midnight) !important;
  border-bottom: 1px solid rgba(245,240,232,.10);
  box-shadow: none !important;
}
.header .link-list__link, .header .dropdown__trigger, .header .user__login a, .header .logo__text {
  color: rgba(245,240,232,.78) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  transition: color .3s ease;
}
.header .link-list__link:hover, .header .dropdown__trigger:hover { color: var(--jt-cream) !important; }
.header .logo img { max-height: 30px !important; width: auto !important; }
.hamburger__slice { background: var(--jt-cream) !important; }
.header .btn {
  background: transparent !important;
  color: var(--jt-amber) !important;
  border: 1px solid rgba(212,164,58,.6) !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
}
.header .btn:hover { background: var(--jt-amber) !important; color: var(--jt-midnight) !important; }
.dropdown__menu { border-radius: 12px !important; border: 1px solid rgba(26,29,46,.08) !important; box-shadow: 0 12px 32px rgba(26,29,46,.12) !important; }

/* Buttons */
.btn, button[type="submit"], input[type="submit"] {
  background: var(--jt-amber) !important;
  border-color: var(--jt-amber) !important;
  color: var(--jt-midnight) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background .3s ease, transform .3s ease;
}
.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: #e0b34a !important; }
.btn--outline { background: transparent !important; color: var(--jt-midnight) !important; border: 1px solid rgba(26,29,46,.25) !important; }

/* Forms */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea, .form-control {
  border-radius: 12px !important;
  border: 1px solid rgba(26,29,46,.18) !important;
  min-height: 48px;
  padding: 0 14px;
  font-size: 16px !important;
  box-shadow: none !important;
}
input:focus, select:focus, textarea:focus, .form-control:focus { border-color: var(--jt-teal) !important; outline: none !important; }

/* Cards and panels (library, coaching sessions, offers) */
.card, .panel, .coaching-session, .product-card {
  border-radius: 16px !important;
  border: 1px solid rgba(26,29,46,.08) !important;
  box-shadow: 0 1px 2px rgba(26,29,46,.04) !important;
}

/* Footer */
.footer, .footer__content, .footer__container {
  background: var(--jt-midnight) !important;
  color: var(--jt-steel) !important;
}
.footer a, .footer .link-list__link { color: rgba(245,240,232,.72) !important; }
.footer a:hover, .footer .link-list__link:hover { color: var(--jt-cream) !important; }
.footer .logo img { max-height: 40px !important; width: auto !important; }

/* Store, library and coaching cards */
.store-card, .product, .kjb-coaching-scheduling-widget { border-radius: 16px !important; overflow: hidden; }
.store-card__title, .card__title, .product__title, .products__title { font-family: 'Fraunces', Georgia, serif !important; font-weight: 500 !important; }
.store-card__price, .card__price, .coaching-scheduling-widget__price { color: var(--jt-midnight) !important; font-weight: 600 !important; }
.coaching-scheduling-widget__duration, .coaching-scheduling-widget__details { color: #5b6478 !important; }

/* Win over Kajabi's per-button colour settings */
.btn:not(#jt-a):not(#jt-b), a.btn:not(#jt-a):not(#jt-b), .btn--solid:not(#jt-a):not(#jt-b) {
  background: #d4a43a !important; border-color: #d4a43a !important; color: #1a1d2e !important;
  border-radius: 12px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
}
.btn:not(#jt-a):not(#jt-b):hover { background: #e0b34a !important; color: #1a1d2e !important; }
.btn--outline:not(#jt-a):not(#jt-b) { background: transparent !important; color: #1a1d2e !important; border: 1px solid rgba(26,29,46,.25) !important; }
.section--hero .btn--outline:not(#jt-a):not(#jt-b), .header .btn:not(#jt-a):not(#jt-b) { color: #d4a43a !important; border-color: rgba(212,164,58,.6) !important; background: transparent !important; }

/* Balanced line breaks for headings: no single-word orphans */
h1, h2, h3, .h1, .h2, .h3, .syllabus__heading, .panel__heading { text-wrap: balance; }
.section--hero h1, .section--hero h2 { max-width: 18ch; margin-left: auto !important; margin-right: auto !important; }
p { text-wrap: pretty; }

/* ===== Sign-in and password pages ===== */
section[data-jt-auth], body:has(.auth__content) .section {
  background: #f3eee4 !important; background-image: none !important;
}
section[data-jt-auth] .section__overlay, body:has(.auth__content) .section__overlay { display: none !important; }
.auth__image { display: none !important; }
section[data-jt-auth] .sizer { padding-top: clamp(40px, 7vw, 96px) !important; padding-bottom: clamp(40px, 7vw, 96px) !important; }
.jt-auth {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  max-width: 980px; margin: 0 auto; border-radius: 24px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 80px -40px rgba(26,29,46,.45), 0 1px 2px rgba(26,29,46,.06);
}
.jt-auth__brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 44px 44px 48px; color: #f5f0e8;
  background: radial-gradient(520px 380px at 0% 0%, rgba(212,164,58,.18), transparent 60%),
              radial-gradient(560px 420px at 100% 100%, rgba(62,207,207,.16), transparent 62%),
              linear-gradient(150deg, #1a1d2e 0%, #1c2236 55%, #143844 100%);
}
.jt-auth__brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(138,155,181,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(138,155,181,.08) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%); mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}
.jt-auth__logo { position: relative; z-index: 1; width: 210px; height: auto; }
.jt-auth__copy { position: relative; z-index: 1; }
.jt-auth__k { margin: 0 0 14px !important; font-family: 'Outfit', sans-serif !important; font-size: 14px !important; color: #3ecfcf !important; }
.jt-auth__h { margin: 0 !important; font-family: 'Fraunces', Georgia, serif !important; font-weight: 500; font-size: clamp(30px, 3vw, 40px) !important; line-height: 1.08 !important; letter-spacing: -.02em; color: #f5f0e8 !important; text-wrap: balance; font-variation-settings: "opsz" 144; }
.jt-auth__h em { color: #d4a43a; font-weight: 400; }
.jt-auth__p { margin: 18px 0 0 !important; font-family: 'Outfit', sans-serif !important; font-size: 16px !important; font-weight: 300; line-height: 1.6 !important; color: rgba(245,240,232,.74) !important; max-width: 34ch; }
.jt-auth__form { display: flex; flex-direction: column; justify-content: center; padding: 44px 48px; }
.jt-auth__form > .col-6 { flex: none !important; max-width: 100% !important; width: 100% !important; padding: 0 !important; }
.jt-auth__form .auth__content { text-align: left !important; }
.jt-auth__form .auth__title, .auth__title {
  font-family: 'Fraunces', Georgia, serif !important; font-weight: 500 !important; font-size: 34px !important; line-height: 1.1 !important;
  letter-spacing: -.02em; color: #1a1d2e !important; margin: 0 0 26px !important; text-align: left; font-variation-settings: "opsz" 144;
}
.auth__label { font-family: 'Outfit', sans-serif !important; font-size: 14px !important; color: #5b6478 !important; font-weight: 400 !important; }
.auth__field, .auth__content .form-control {
  height: 50px !important; border-radius: 12px !important; border: 1px solid rgba(26,29,46,.16) !important;
  background: #faf8f4 !important; font-size: 16px !important; color: #1a1d2e !important; box-shadow: none !important;
}
.auth__field:focus, .auth__content .form-control:focus { border-color: #17706f !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(23,112,111,.12) !important; }
.auth__content .form-group { margin-bottom: 18px !important; }
.auth__content input[type=checkbox] { accent-color: #17706f; width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; }
.auth__content .form-btn:not(#jt-a) {
  width: 100% !important; height: 52px; margin-top: 6px; border-radius: 12px !important;
  border: 0 !important; background: #d4a43a !important; color: #1a1d2e !important; font: 600 16px 'Outfit', sans-serif !important;
}
.auth__content .form-btn:not(#jt-a):hover { background: #e0b34a !important; }
.auth__content .divider { color: #5b6478 !important; font-family: 'Outfit', sans-serif !important; font-size: 13px !important; margin: 22px 0 16px !important; }
.auth__content .divider::before, .auth__content .divider::after { background: rgba(26,29,46,.12) !important; border-color: rgba(26,29,46,.12) !important; }
.auth__content .gsi-material-button { width: 100% !important; max-width: none !important; border-radius: 12px !important; height: 48px !important; }
.auth__link, .auth__content a { color: #17706f !important; font-family: 'Outfit', sans-serif !important; font-size: 14px !important; text-decoration: none; }
.auth__link:hover, .auth__content a:hover { text-decoration: underline; }
.jt-auth__help { margin: 26px 0 0 !important; padding-top: 18px; border-top: 1px solid rgba(26,29,46,.08); font: 400 13px/1.6 'Outfit', sans-serif !important; color: #5b6478 !important; }
.jt-auth__help a { color: #17706f !important; text-decoration: none; }
/* Forgot / reset password pages share the auth card look */
body:has(.auth__content) .section .row { justify-content: center; }
body:has(.auth__content) .section .col-6:not(.jt-auth__form .col-6) {
  max-width: 480px !important; flex: none !important; width: 100% !important; background: #fff; border-radius: 24px;
  padding: 44px 40px !important; box-shadow: 0 30px 80px -40px rgba(26,29,46,.45), 0 1px 2px rgba(26,29,46,.06);
}
@media (max-width: 820px) {
  .jt-auth { grid-template-columns: 1fr; border-radius: 20px; }
  .jt-auth__brand { padding: 32px 28px; gap: 28px; }
  .jt-auth__brand::after { display: none; }
  .jt-auth__logo { width: 180px; }
  .jt-auth__h { font-size: 28px !important; }
  .jt-auth__form { padding: 32px 26px 36px; }
  .jt-auth__form .auth__title, .auth__title { font-size: 28px !important; }
}
