:root { --jatayu-navy: #0b2545; --jatayu-gold: #c99a2e; }
body { background: #f5f7fa; }
.navbar-jatayu { background: var(--jatayu-navy); }
.navbar-jatayu .navbar-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  line-height: 1.15;
}
.navbar-jatayu .brand-main {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.navbar-jatayu .brand-logo {
  height: 52px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: .4rem;
  padding: .3rem .65rem;
  box-sizing: content-box;
}
.navbar-jatayu .navbar-brand .brand-tagline-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  min-width: .55rem;
}
.navbar-jatayu .navbar-brand .brand-tagline {
  color: var(--jatayu-gold);
  font-weight: 400;
  letter-spacing: 0;
  font-size: .75rem;
}
.auth-logo {
  height: auto;
  width: min(100%, 19rem);
  max-height: none;
}
.hero-brand .hero-logo-plate {
  display: inline-block;
  background: #fff;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.hero-brand .hero-logo {
  display: block;
  width: min(100%, 18rem);
  height: auto;
}
@media (max-width: 575.98px) {
  .navbar-jatayu .brand-logo { height: 40px; padding: .2rem .45rem; }
  .auth-logo { width: min(100%, 14rem); max-height: 6rem; }
  .hero-brand .hero-logo { width: min(100%, 14rem); }
}
.llm-status {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #6c757d;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
.llm-status.is-checking { background: #6c757d; }
.llm-status.is-ok { background: #28a745; box-shadow: 0 0 0 1px rgba(40,167,69,.35); }
.llm-status.is-down { background: #dc3545; box-shadow: 0 0 0 1px rgba(220,53,69,.35); }
.hero .llm-status-row { min-height: .7rem; }
.hero .llm-status { width: .65rem; height: .65rem; }
.navbar-jatayu .nav-link {
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  padding-left: .65rem;
  padding-right: .65rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.navbar-jatayu .nav-link.active, .navbar-jatayu .nav-link:hover { color: #fff; }
.navbar-jatayu .nav-badge {
  font-size: .65rem;
  vertical-align: middle;
  line-height: 1;
  padding: .2em .45em;
}
.navbar-jatayu .nav-user {
  max-width: min(22rem, 36vw);
  overflow: hidden;
}
.navbar-jatayu .nav-org {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
@media (max-width: 1399.98px) {
  .navbar-jatayu .nav-org { max-width: 9rem; }
}
.stat-card .display-6 { font-weight: 600; }

/* —— Help centre —— */
.help-page .help-accordion .accordion-button {
  font-size: .95rem;
  font-weight: 600;
  color: var(--jatayu-navy);
}
.help-page .help-accordion .accordion-button:not(.collapsed) {
  background: #eef3f9;
  color: var(--jatayu-navy);
  box-shadow: none;
}
.help-page .help-accordion .accordion-body { line-height: 1.5; }

/* —— Ask JATAYU (enterprise, simple) —— */
.ask-layout > [class*="col-"] { min-width: 0; }
.ask-layout .btn-primary {
  --bs-btn-bg: var(--jatayu-navy);
  --bs-btn-border-color: var(--jatayu-navy);
  --bs-btn-hover-bg: #13315c;
  --bs-btn-hover-border-color: #13315c;
  --bs-btn-active-bg: #0a1f38;
  --bs-btn-active-border-color: #0a1f38;
  --bs-btn-disabled-bg: var(--jatayu-navy);
  --bs-btn-disabled-border-color: var(--jatayu-navy);
}

.ask-panel {
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: .5rem;
  padding: .85rem .9rem;
}
.ask-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}
.ask-panel-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6c757d;
}

.ask-history { max-width: 100%; }
.ask-history-panel { position: sticky; top: .75rem; }
.ask-history-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  max-height: min(58vh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c5ccd6 transparent;
}
.ask-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  column-gap: .25rem;
  align-items: start;
  padding: .45rem .5rem;
  border-radius: .35rem;
  border: 1px solid transparent;
}
.ask-history-row:hover { background: #f3f5f8; }
.ask-history-row.is-active {
  background: var(--jatayu-navy);
  border-color: var(--jatayu-navy);
}
.ask-history-link {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.ask-history-row.is-active .ask-history-link { color: #fff; }
.ask-history-row.is-active .ask-history-meta { color: rgba(255,255,255,.7); }
.ask-history-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 500;
}
.ask-history-meta {
  font-size: .72rem;
  color: #6c757d;
  margin-top: .1rem;
}
.ask-history-delete { margin: 0; display: flex; justify-content: center; }
.ask-history-x {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: none;
  border-radius: .25rem;
  background: transparent;
  color: #adb5bd;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.ask-history-x:hover { background: rgba(220,53,69,.12); color: #dc3545; }
.ask-history-row.is-active .ask-history-x { color: rgba(255,255,255,.55); }
.ask-history-row.is-active .ask-history-x:hover { background: rgba(255,255,255,.15); color: #fff; }
.ask-history-empty, .ask-history-note {
  font-size: .75rem;
  color: #6c757d;
}
.ask-history-note { margin-top: .65rem; padding-top: .5rem; border-top: 1px solid #eef0f3; }

.ask-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  margin-bottom: .85rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #e8ecf1;
}
.ask-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--jatayu-navy);
  letter-spacing: -.01em;
}
.ask-main-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.ask-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: .25rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid #ced4da;
  color: #495057;
  background: #fff;
}
.ask-mode-pill.is-ai {
  border-color: #b8c9de;
  background: #eef3f9;
  color: var(--jatayu-navy);
}
.ask-mode-pill.is-quote { color: #6c757d; }

.ask-chat {
  max-height: 58vh;
  overflow-y: auto;
  padding-right: .15rem;
  scrollbar-width: thin;
  scrollbar-color: #c5ccd6 transparent;
}
.ask-msg {
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: .5rem;
  padding: .9rem 1rem;
  margin-bottom: .75rem;
}
.ask-msg-user {
  border-left: 3px solid var(--jatayu-navy);
  background: #f7f9fc;
}
.ask-msg-assistant { border-left: 3px solid var(--jatayu-gold); }
.ask-msg-meta {
  font-size: .75rem;
  color: #6c757d;
  margin-bottom: .35rem;
}
.ask-msg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.ask-msg-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}
.ask-msg-body { font-size: .95rem; line-height: 1.55; color: #212529; }
.ask-sources summary {
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--jatayu-navy);
}
.ask-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}
.ask-feedback-comment { max-width: 16rem; }
.ask-research-pending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  margin-bottom: .75rem;
  background: #f7f9fc;
  border: 1px solid #e2e6ec;
  border-radius: .5rem;
}
.ask-empty {
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: .5rem;
  padding: 1.5rem 1.5rem;
}
.ask-empty-lead { color: #343a40; font-size: .95rem; line-height: 1.5; }
.ask-empty-examples { font-size: .85rem; color: #6c757d; line-height: 1.45; }

.ask-composer {
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: .5rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(11, 37, 69, .04);
}
.ask-composer-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: .35rem;
}
.ask-question {
  min-height: 5rem;
  resize: vertical;
  border-color: #ced4da;
  margin-bottom: .75rem;
}
.ask-question:focus,
.ask-composer .form-select:focus,
.ask-composer .form-control:focus {
  border-color: #8aa4c4;
  box-shadow: 0 0 0 .15rem rgba(11, 37, 69, .12);
}
.ask-composer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
}
.ask-composer-lang,
.ask-composer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.ask-lang-select {
  width: auto;
  min-width: 7.25rem;
  max-width: 100%;
}
.ask-kbd {
  font-size: .7rem;
  padding: .15rem .4rem;
  color: #6c757d;
  background: #f3f5f8;
  border: 1px solid #e2e6ec;
  border-radius: .25rem;
}
.ask-knowledge {
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px solid #eef0f3;
}
.ask-knowledge > summary {
  font-size: .8rem;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  list-style: none;
}
.ask-knowledge > summary::-webkit-details-marker { display: none; }
.ask-knowledge > summary::before {
  content: "▸ ";
  color: #adb5bd;
  font-size: .7rem;
}
.ask-knowledge[open] > summary::before { content: "▾ "; }
.ask-knowledge-body { margin-top: .55rem; }
.ask-knowledge-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
}
.ask-knowledge-check {
  font-size: .8rem;
  color: #495057;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
}
.ask-knowledge-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-top: .55rem;
}
.ask-knowledge-custom .form-control { max-width: 16rem; }
.ask-knowledge-hint {
  margin-top: .45rem;
  font-size: .75rem;
  color: #6c757d;
}

@media (max-width: 991.98px) {
  .ask-history-panel { position: static; }
  .ask-history-list { max-height: 12rem; }
  .ask-chat { max-height: none; }
  .ask-main-head { margin-bottom: .75rem; }
}

.source-card { font-size: .875rem; }
.source-card.highlight { outline: 2px solid var(--bs-primary); }
.passage { white-space: pre-wrap; font-size: .9rem; }
.mic-btn.listening { animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(11,37,69,.35); } 50% { box-shadow: 0 0 0 8px rgba(11,37,69,0); } }
.table td, .table th { vertical-align: middle; }
.hero { background: linear-gradient(135deg, var(--jatayu-navy), #13315c); color: #fff; }
.hero .tagline { color: var(--jatayu-gold); }

/* Marathi reference translation: RBI-style clickable index */
.mr-toc-list a { text-decoration: none; }
.mr-toc-list a:hover { text-decoration: underline; }
.mr-toc-l1 { margin-top: .35rem; font-weight: 600; }
.mr-toc-l2 { margin-left: 1.1rem; }
.mr-toc-l3 { margin-left: 2.2rem; }
.mr-doc { font-family: Georgia, "Noto Serif Devanagari", "Noto Serif", serif; line-height: 1.55; }
.mr-doc .mr-heading { scroll-margin-top: 1rem; margin-top: 1.25rem; }
.mr-doc .mr-heading:first-child { margin-top: 0; }
.mr-doc blockquote { border-left: 3px solid var(--jatayu-gold); padding-left: .75rem; margin: .75rem 0; }
