@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3.ttf') format('truetype'); font-style: normal; font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-light.ttf') format('truetype'); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-medium.ttf') format('truetype'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-extrabold.ttf') format('truetype'); font-style: normal; font-weight: 800; font-display: swap; }
:root {
  --black: #000; --panel: #101010; --raised: #171717; --white: #fff;
  --gold: #aba346; --gold-light: #d1c976; --muted: #b7b7b0; --line: #2c2c29;
  --sans: 'Proxima Nova', 'Source Sans 3', Arial, sans-serif;
  --display: 'Proxima Nova Extra Condensed Thin', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --label: 'Dax Condensed', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  color-scheme: dark; color: var(--white); background: var(--black); font-family: var(--sans); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
.app-shell { display: flex; min-height: 100dvh; }
.sidebar { width: 270px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 28px 24px; background: var(--black); border-right: 1px solid var(--line); overflow: auto; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 0 0 12px; }
.brand img { object-fit: contain; width: 80px; height: 84px; }
.brand-name { font-family: var(--display); font-weight: 300; font-size: 29px; white-space: nowrap; line-height: 1.15; letter-spacing: .25px; margin-top: 4px; }
.brand-the { font-size: 20px; }
.brand-rule { height: 1px; width: 100%; background: var(--gold); margin: 10px 0 8px; }
.brand-tagline { font-family: var(--label); font-size: 20px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.new-study { width: 100%; margin: 34px 0 35px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid #57532d; border-radius: 4px; font-size: 15px; text-align: left; }
.new-study:hover { background: #1e1d13; border-color: var(--gold); }
.new-study > span:first-child { font-size: 24px; color: var(--gold-light); font-weight: 300; }
.new-study-arrow { margin-left: auto; font-size: 0; }
.new-study-arrow::after, .starter-arrow::after { content: ''; display: block; width: 9px; height: 9px; border-right: 1px solid var(--gold); border-top: 1px solid var(--gold); transform: rotate(0deg); }
.nav-label { font-family: var(--label); font-weight: 500; letter-spacing: 2px; font-size: 12px; color: #a9a99f; margin: 0 12px 14px; }
.nav-current { padding: 14px 12px; display: flex; align-items: center; gap: 10px; border-left: 2px solid var(--gold); background: #16160f; font-size: 14px; }
.nav-dot { height: 5px; width: 5px; border-radius: 50%; background: var(--gold); margin-left: auto; }
.sidebar-note { margin: 55px 12px 30px; }
.note-rule { display: block; width: 28px; height: 1px; background: var(--gold); }
.sidebar-note h2 { font-family: var(--display); font-weight: 300; font-size: 30px; margin: 20px 0 12px; }
.sidebar-note p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.sidebar-bottom { margin-top: auto; padding: 30px 12px 0; font-size: 12px; line-height: 1.8; color: #a2a299; }
.sidebar-line { display: block; height: 1px; background: var(--line); margin-bottom: 21px; }
.sidebar-bottom strong { font-weight: 500; color: #deded7; font-size: 14px; }
.text-link { border: 0; padding: 0; background: none; color: var(--gold-light); font-size: 13px; }
.text-link span { margin-left: 20px; }
.main-panel { margin-left: 270px; width: calc(100% - 270px); height: 100dvh; min-height: 480px; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(ellipse at 72% 18%, #17160f 0, #090909 35%, #000 70%); }
.topbar, .mode-notice, .composer-wrap, .footer { flex-shrink: 0; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 42px; border-bottom: 1px solid var(--line); background: #050505; }
.breadcrumb { display: flex; gap: 14px; align-items: center; font-size: 13px; color: #a9a99f; }
.breadcrumb > span { color: #6c6b5f; }
.breadcrumb strong { font-weight: 500; color: var(--white); }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.scripture-first { display: flex; gap: 8px; align-items: center; color: var(--gold-light); font-size: 12px; }
.scripture-first > span { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.mobile-brand, .mobile-new { display: none; }
.mode-notice { padding: 12px 24px; border-bottom: 1px solid #36331e; background: #15140e; color: #d0c991; text-align: center; font-size: 12px; line-height: 1.6; }
.mode-notice.live { color: var(--gold-light); }
.study-body { flex: 1; min-height: 0; width: 100%; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-color: #5d5832 #090909; scrollbar-width: thin; }
.welcome { max-width: 920px; padding: 59px 46px 28px; margin: 0 auto; animation: arrive .35s ease; }
.welcome-rule { width: 44px; height: 2px; background: var(--gold); margin-bottom: 25px; }
.eyebrow { font-family: var(--label); font-weight: 500; font-size: 13px; letter-spacing: 2.5px; color: var(--gold-light); margin: 0 0 17px; }
h1 { font-family: var(--display); font-size: clamp(56px, 5.5vw, 78px); line-height: 1.04; font-weight: 300; margin: 0; letter-spacing: -.8px; }
h1 em { font-style: normal; font-weight: 300; color: var(--gold-light); }
.welcome-description { font-size: 17px; line-height: 1.75; color: #c6c6bf; margin: 24px 0 36px; }
.starter-heading { display: flex; gap: 15px; align-items: center; font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: 2px; color: #b8b8ac; margin-bottom: 16px; }
.starter-heading span { height: 1px; width: 28px; background: #555136; }
.starter-heading span:last-child { flex: 1; }
.starter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.starter { position: relative; padding: 20px 18px 23px; border: 1px solid #35352c; background: linear-gradient(130deg, #1a1a17, #101010 80%); color: var(--white); border-radius: 4px; text-align: left; transition: border-color .18s, transform .18s, background .18s; }
.starter:hover { transform: translateY(-3px); border-color: var(--gold); background: #202018; }
.starter-icon { display: block; font-family: var(--label); font-size: 20px; font-weight: 300; color: var(--gold); line-height: 1; }
.starter-type { display: block; font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: 1px; color: #bdbdb1; margin: 24px 0 9px; }
.starter strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 300; line-height: 1.15; }
.starter-description { display: block; font-size: 13px; color: #bcbcb2; line-height: 1.6; margin-top: 9px; }
.starter-arrow { position: absolute; right: 20px; top: 21px; }
.welcome-caption { font-size: 12px; color: #a9a99e; line-height: 1.7; margin: 21px 0 0; }
.composer-wrap { width: 100%; max-width: 920px; padding: 0 46px 16px; margin: 8px auto 0; }
.composer { padding: 19px 19px 12px; border: 1px solid #67613b; background: #111110; border-radius: 5px; box-shadow: 0 8px 32px #0006; }
.composer:focus-within { border-color: var(--gold-light); outline: 1px solid #aba34633; }
textarea { width: 100%; min-height: 40px; max-height: 140px; padding: 0 0 9px; background: transparent; color: var(--white); border: 0; outline: none; resize: none; font-family: var(--sans); font-size: 16px; line-height: 1.65; border-radius: 0; }
textarea::placeholder { color: #a9a99e; }
.composer-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.composer-hint { color: #b0b0a5; font-size: 12px; }
.send-button { width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold); color: #000; border: 1px solid var(--gold); border-radius: 3px; }
.send-button:hover:not(:disabled) { background: var(--gold-light); }
.send-button svg { width: 20px; height: 20px; }
.composer-caption { text-align: center; font-size: 11px; line-height: 1.8; color: #a2a298; margin: 14px 0 0; }
.inline-link { background: none; border: 0; border-bottom: 1px solid #716c46; color: var(--gold-light); font-size: inherit; padding: 0; margin-left: 5px; }
.mobile-break { display: none; }
.footer { padding: 22px 42px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-family: var(--label); font-weight: 500; font-size: 12px; letter-spacing: 1.7px; color: #aaa99c; text-transform: uppercase; }
.footer > span:first-child { color: var(--gold-light); }
.conversation { max-width: 920px; padding: 36px 46px 10px; margin: 0 auto; }
.turn { margin-bottom: 40px; animation: arrive .25s ease; }
.question-bubble { max-width: 85%; margin: 0 0 30px auto; padding: 15px 19px; white-space: pre-wrap; overflow-wrap: anywhere; width: fit-content; background: #22221a; border: 1px solid #4a4730; border-radius: 8px 8px 0 8px; color: var(--white); font-size: 16px; line-height: 1.7; }
.assistant-label { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 500; font-size: 13px; letter-spacing: 2px; color: var(--gold-light); }
.assistant-label::before { content: ''; height: 1px; width: 22px; background: var(--gold); }
.answer-card { margin: 18px 0 0; padding: 0 0 8px 23px; border-left: 1px solid #454127; }
.answer-card h2 { font-family: var(--display); font-size: 44px; font-weight: 300; line-height: 1.15; margin: 8px 0 17px; }
.answer-meta { font-family: var(--label); font-size: 13px; font-weight: 500; line-height: 1.8; color: #c5bd7b; letter-spacing: 1px; margin: 0 0 17px; }
.answer-section { margin: 27px 0; }
.answer-section h3 { font-family: var(--label); font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.3px; color: var(--gold-light); margin: 0 0 12px; }
.answer-section p, .answer-section li, .answer-message { font-size: 17px; line-height: 1.85; color: #e3e3dc; margin: 0 0 15px; }
.answer-section ul, .answer-section ol { padding-left: 22px; }
.evidence-link { border: 1px solid #605b34; background: #1e1d13; color: var(--gold-light); border-radius: 3px; font-size: 12px; padding: 3px 7px; margin: 0 0 0 6px; vertical-align: middle; }
.evidence-link:hover { border-color: var(--gold-light); }
.study-caveat { margin: 24px 0; padding: 17px 20px; background: #19180f; border-left: 2px solid var(--gold); color: #d8d1a3; font-size: 14px; line-height: 1.9; }
.source-list { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.source-list > h3 { font-family: var(--label); font-weight: 500; font-size: 13px; letter-spacing: 1.6px; color: var(--gold-light); margin: 0 0 16px; }
.source-card { border: 1px solid #3b3b30; border-radius: 4px; margin: 11px 0; background: #101010; }
.source-card summary { padding: 15px 17px; cursor: pointer; font-size: 15px; line-height: 1.7; color: var(--white); }
.source-card summary strong { font-weight: 500; }
.source-tag { display: inline-block; font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: 1px; color: #bcb68b; margin-left: 9px; }
.source-content { padding: 0 19px 18px; }
.scripture-text { color: var(--white); font-size: 18px; line-height: 1.95; white-space: pre-wrap; margin: 9px 0 18px; }
.copyright { font-size: 12px; line-height: 1.8; color: #b5b5aa; overflow-wrap: anywhere; }
.source-link { color: var(--gold-light); font-size: 14px; text-underline-offset: 5px; line-height: 1.9; }
.source-disclosure { font-size: 13px; line-height: 1.8; color: #b3b3a6; margin: 18px 0; }
.followup-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 0; }
.followup-chips button { font-size: 13px; color: #e1dbad; padding: 10px 15px; background: #16160f; border: 1px solid #514d2f; border-radius: 4px; }
.followup-chips button:hover { border-color: var(--gold); background: #232116; }
.request-status { color: #d0c991; font-size: 13px; line-height: 1.7; min-height: 23px; padding: 0 4px 7px; }
.request-status.error { color: #fff; border-left: 2px solid var(--gold); padding-left: 10px; }
.loading { display: flex; gap: 6px; align-items: center; margin: 16px 0; color: #c6c6b9; font-size: 14px; }
.loading span { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; animation: pulse 1.2s infinite; }
.loading span:nth-child(2) { animation-delay: .2s; }
.loading span:nth-child(3) { animation-delay: .4s; }
.loading p { margin: 0 0 0 8px; }
.retry-button { padding: 9px 13px; margin-top: 9px; color: var(--gold-light); font-size: 14px; background: #19180f; border: 1px solid #6c6535; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 15px; top: -80px; padding: 12px; background: #000; color: #fff; z-index: 20; }
.skip-link:focus { top: 10px; }
dialog { width: calc(100% - 40px); max-width: 570px; padding: 40px; color: var(--white); background: #101010; border: 1px solid #635d34; border-radius: 5px; box-shadow: 0 20px 90px #000a; }
dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
dialog h2 { font-family: var(--display); font-weight: 300; font-size: 40px; margin: 0 0 20px; }
dialog p { font-size: 16px; line-height: 1.85; color: #deded6; }
dialog .eyebrow { font-size: 12px; color: var(--gold-light); }
.dialog-close { position: absolute; right: 14px; top: 9px; background: none; border: 0; font-size: 29px; color: var(--gold-light); }
.reconnect { margin-left: 10px; padding: 0; background: none; border: 0; text-decoration: underline; color: inherit; font-size: inherit; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,80%,100% { opacity: .4; } 40% { opacity: 1; } }
@media (min-width: 1550px) { .welcome { padding-top: 80px; padding-bottom: 45px; } }
@media (max-width: 1100px) {
  .sidebar { width: 240px; padding-left: 20px; padding-right: 20px; }
  .main-panel { margin-left: 240px; width: calc(100% - 240px); }
  .brand-name { font-size: 26px; } .brand-tagline { font-size: 18px; }
  .topbar, .footer { padding-left: 30px; padding-right: 30px; }
  .welcome, .conversation, .composer-wrap { padding-left: 30px; padding-right: 30px; }
  .starter { padding: 18px 14px 21px; } .starter-type { font-size: 10px; letter-spacing: .8px; }
  .starter strong { font-size: 28px; } .starter-description { font-size: 12px; }
}
@media (max-width: 850px) {
  .sidebar { display: none; } .main-panel { width: 100%; margin-left: 0; }
  .topbar { min-height: 86px; padding: 12px 24px; } .breadcrumb { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 300; font-size: 22px; }
  .mobile-brand img { object-fit: contain; }
  .mobile-brand small { display: block; font-family: var(--label); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; margin-top: 3px; }
  .mobile-new { display: block; background: #101010; border: 1px solid #605b34; border-radius: 3px; color: var(--gold-light); width: 34px; height: 34px; font-size: 22px; }
  .topbar-right { gap: 16px; } .scripture-first { font-size: 12px; }
  .welcome, .conversation, .composer-wrap { max-width: 760px; }
  .welcome { padding-top: 42px; } h1 { font-size: 68px; }
}
@media (max-width: 560px) {
  .topbar { min-height: 80px; padding: 12px 18px; }
  .mobile-brand { font-size: 20px; gap: 4px; } .mobile-brand small { font-size: 10px; letter-spacing: 1.4px; }
  .scripture-first { display: none; } .mode-notice { padding: 11px 20px; font-size: 11px; }
  .welcome { padding: 34px 23px 22px; } .welcome-rule { margin-bottom: 20px; width: 32px; }
  .eyebrow { font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; }
  h1 { font-size: 46px; letter-spacing: -.5px; }
  .welcome-description { font-size: 16px; margin: 21px 0 30px; }
  .starter-heading { font-size: 11px; letter-spacing: 1.8px; }
  .starter-grid { grid-template-columns: 1fr; gap: 10px; }
  .starter { min-height: 112px; padding: 16px 44px 16px 56px; }
  .starter-icon { position: absolute; left: 18px; top: 20px; font-size: 18px; }
  .starter-type { margin: 0 0 6px; font-size: 10px; letter-spacing: 1px; }
  .starter strong { font-size: 28px; } .starter-description { margin-top: 4px; font-size: 13px; }
  .starter-arrow { right: 18px; top: 20px; } .welcome-caption { font-size: 12px; }
  .composer-wrap { padding: 0 20px 15px; margin-top: 5px; }
  .composer { padding: 16px 15px 12px; } .composer-hint { font-size: 11px; }
  .composer-caption { font-size: 11px; } .mobile-break { display: block; }
  .footer { padding: 19px 22px; font-size: 10px; letter-spacing: 1.2px; }
  .conversation { padding: 29px 21px 10px; } .answer-card { padding-left: 17px; }
  .answer-card h2 { font-size: 37px; } .answer-section p, .answer-section li { font-size: 16px; }
  .question-bubble { max-width: 92%; font-size: 15px; } .source-tag { display: block; margin: 4px 0 0; }
  .source-card summary { padding: 13px 14px; } .source-content { padding: 0 15px 16px; }
  .scripture-text { font-size: 17px; } dialog { padding: 31px 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
