
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0; padding: 0;
  font-family: Charter, Georgia, "Times New Roman", Times, serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.4rem 1.4rem 4rem;
}
.site-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
  margin-bottom: 2.4rem;
}
.site-title {
  font-family: Charter, Georgia, "Times New Roman", Times, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem 0;
  color: #1a1a1a;
}
.site-tagline {
  font-style: italic;
  color: #6e6e6e;
  font-size: 0.95rem;
  margin: 0;
}
.site-nav {
  margin-top: 0.8rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  margin-right: 1.2rem;
}
.site-nav a:hover { color: #525252; border-bottom-color: #525252; }
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 2.2rem 0 0.8rem 0;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; border-bottom: 1px solid #e0e0e0; padding-bottom: 0.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; color: #525252; }
p { margin: 0.9rem 0; }
p.meta { font-size: 0.82rem; color: #8a8a8a; margin-top: -0.4rem; }
p.meta strong { font-weight: 400; color: #8a8a8a; }
a { color: #1a1a1a; text-decoration: underline; text-decoration-color: #9a9a9a; text-underline-offset: 2px; }
a:hover { text-decoration-color: #1a1a1a; }
strong { font-weight: 700; color: #1a1a1a; }
em { font-style: italic; }
hr { border: none; border-top: 1px solid #e0e0e0; margin: 2.4rem 0; }
ul, ol { margin: 0.9rem 0; padding-left: 1.6rem; }
li { margin: 0.3rem 0; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  background: #f4f4f4;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid #e0e0e0;
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
th {
  background: #f7f7f7;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
tbody tr:nth-child(even) td { background: #fafafa; }
blockquote {
  border-left: 3px solid #d0d0d0;
  padding: 0.2rem 1rem;
  margin: 1rem 0;
  color: #525252;
  font-style: italic;
}
.lead {
  font-size: 1.05rem;
  color: #2a2a2a;
}
.note {
  background: #f7f7f7;
  border-left: 3px solid #b0b0b0;
  padding: 0.8rem 1rem;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.2rem 0 1.6rem 0;
}
.tracks .track {
  border: 1px solid #d6d6d6;
  padding: 1rem 1.1rem;
  background: #fbfbfb;
}
.tracks .track h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tracks .track p { margin: 0.4rem 0; font-size: 0.95rem; }
@media (max-width: 560px) {
  .tracks { grid-template-columns: 1fr; }
}
.site-footer {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.2rem;
  margin-top: 3.5rem;
  color: #6e6e6e;
  font-size: 0.85rem;
}
.site-footer a { color: #6e6e6e; text-decoration-color: #c0c0c0; }

/* ── FAQ navigation/findability ─────────────────────────────────────── */
/* Per-question anchor link, hidden until heading is hovered. */
h2 a.anchor, summary a.anchor {
  font-weight: 400;
  text-decoration: none;
  color: #c0c0c0;
  margin-left: 0.4rem;
  font-size: 0.85em;
  opacity: 0;
  transition: opacity 0.15s ease;
}
h2:hover a.anchor, summary:hover a.anchor,
h2:focus-within a.anchor, summary:focus-within a.anchor {
  opacity: 1;
}
h2 a.anchor:hover, summary a.anchor:hover { color: #525252; }

/* Search + control toolbar */
.faq-toolbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.7rem 0;
  margin: 0 0 1.2rem 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
}
.faq-toolbar .faq-search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 200px;
}
.faq-toolbar input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #c8c8c8;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.faq-toolbar input[type="search"]:focus {
  outline: none;
  border-color: #525252;
}
/* Live-suggest dropdown — appears below the input as the user types. */
.faq-suggest {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #c8c8c8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 10;
}
.faq-suggest[hidden] { display: none; }
.faq-suggest li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #ececec;
}
.faq-suggest li:last-child { border-bottom: none; }
.faq-suggest li a {
  display: block;
  padding: 0.55rem 0.8rem;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}
.faq-suggest li a .faq-suggest-id {
  display: inline-block;
  min-width: 2.6em;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
  margin-right: 0.4em;
}
.faq-suggest li a:hover,
.faq-suggest li.is-active a {
  background: #f4f4f4;
  color: #000;
}
.faq-suggest li a mark {
  background: #fff2a8;
  color: #1a1a1a;
  padding: 0 0.1em;
}
.faq-suggest-empty {
  padding: 0.6rem 0.8rem;
  color: #8a8a8a;
  font-style: italic;
  font-size: 0.9rem;
}
.faq-toolbar .faq-controls {
  font-size: 0.9rem;
  color: #6e6e6e;
  display: flex;
  gap: 0.9rem;
}
.faq-toolbar .faq-controls button {
  font-family: inherit;
  font-size: 0.9rem;
  background: none;
  border: none;
  color: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 0;
  cursor: pointer;
}
.faq-toolbar .faq-controls button:hover { color: #525252; border-bottom-color: #525252; }
.faq-toolbar .faq-count {
  font-size: 0.85rem;
  color: #8a8a8a;
  font-style: italic;
  flex-basis: 100%;
  margin: 0;
}

/* Auto-TOC */
.faq-toc {
  border: 1px solid #e0e0e0;
  background: #fbfbfb;
  padding: 1rem 1.2rem 1.1rem 1.2rem;
  margin: 0 0 2rem 0;
  font-size: 0.95rem;
}
.faq-toc .toc-title {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  border: none;
  padding: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #525252;
}
.faq-toc ul { list-style: none; padding: 0; margin: 0.4rem 0; }
.faq-toc .toc-section-list > li { margin: 0.55rem 0; }
.faq-toc .toc-q-list {
  margin: 0.3rem 0 0.4rem 1.1rem;
  border-left: 1px solid #e0e0e0;
  padding-left: 0.8rem;
}
.faq-toc .toc-q-list li { margin: 0.18rem 0; }
.faq-toc a {
  text-decoration: none;
  color: #1a1a1a;
  border-bottom: 1px dotted transparent;
}
.faq-toc a:hover { border-bottom-color: #8a8a8a; }
.faq-toc .toc-q-list a { color: #525252; font-size: 0.92rem; }

/* Collapsible question blocks. Default open — collapsibility is for users
   who want to scan; first-time visitor sees full content as before. */
details.faq-q {
  border-bottom: 1px solid #ececec;
  padding: 0.4rem 0 0.7rem 0;
  margin: 0;
}
details.faq-q[hidden] { display: none; }
details.faq-q > summary {
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  position: relative;
  padding-left: 1.4rem;
}
details.faq-q > summary::-webkit-details-marker { display: none; }
details.faq-q > summary::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0.55rem;
  font-size: 0.9rem;
  color: #8a8a8a;
  transition: transform 0.15s ease;
}
details.faq-q[open] > summary::before { transform: rotate(90deg); }
details.faq-q > summary:hover { color: #525252; }
details.faq-q > summary:focus-visible { outline: 2px solid #525252; outline-offset: 2px; }
details.faq-q > *:not(summary) { margin-left: 1.4rem; }
details.faq-q > *:first-of-type:not(summary) { margin-top: 0.3rem; }

/* Search-hit highlight on summaries when filtering */
details.faq-q[data-hit="1"] > summary { color: #1a1a1a; }
details.faq-q[data-hit="1"] > summary mark {
  background: #f0f0f0;
  color: #1a1a1a;
  padding: 0 0.1em;
}

/* Scroll-margin so deep-link target sits below the sticky toolbar */
details.faq-q, h2[id] { scroll-margin-top: 5.5rem; }

@media (max-width: 560px) {
  .faq-toolbar { padding: 0.5rem 0; gap: 0.5rem; }
  .faq-toolbar .faq-controls { font-size: 0.85rem; gap: 0.7rem; }
  .faq-toc { padding: 0.85rem 1rem; }
  details.faq-q > summary { font-size: 1.02rem; padding-left: 1.2rem; }
  details.faq-q > *:not(summary) { margin-left: 1.2rem; }
}

/* ── Yaksha-mini floating chatbot (bottom-right, commercial-style) ── */
.ym-launcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.ym-launcher:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), 0 2px 4px rgba(0, 0, 0, 0.1);
}
.ym-launcher:active { transform: translateY(0); }
.ym-launcher svg { width: 26px; height: 26px; display: block; }
.ym-launcher[hidden] { display: none; }
.ym-launcher-tooltip {
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.42rem 0.7rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ym-launcher-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a1a;
}
.ym-launcher:hover .ym-launcher-tooltip,
.ym-launcher:focus-visible .ym-launcher-tooltip { opacity: 1; }

.yaksha-mini {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9100;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 580px;
  max-height: calc(100vh - 2rem);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.yaksha-mini[hidden] { display: none; }
.yaksha-mini-head {
  padding: 0.95rem 1.05rem;
  background: #1a1a1a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.yaksha-mini-head .ym-titles { display: flex; align-items: center; gap: 0.7rem; }
.yaksha-mini-head .ym-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.yaksha-mini-head .ym-avatar svg { width: 22px; height: 22px; }
.yaksha-mini-head .ym-title-stack { display: flex; flex-direction: column; line-height: 1.2; }
.yaksha-mini-head .ym-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #ffffff;
}
.yaksha-mini-head .ym-sub {
  font-size: 0.78rem;
  color: #c8c8c8;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.yaksha-mini-head .ym-online-dot {
  width: 0.45rem; height: 0.45rem;
  background: #c0c0c0;
  border-radius: 50%;
  display: inline-block;
}
.yaksha-mini-head .ym-close {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.yaksha-mini-head .ym-close:hover { background: rgba(255,255,255,0.12); }

.yaksha-mini-log {
  flex: 1 1 auto;
  padding: 1rem 0.95rem 0.6rem 0.95rem;
  overflow-y: auto;
  font-size: 0.94rem;
  background: #f5f5f5;
}
.yaksha-mini-log:empty::before {
  content: ‘Hi — I’m Yaksha-mini. I answer strictly from this FAQ. Ask me about VINS, NOC, dates, stipend, or certificates.’;
  display: block;
  color: #525252;
  background: #ffffff;
  border-radius: 14px 14px 14px 4px;
  padding: 0.7rem 0.85rem;
  max-width: 84%;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ym-msg {
  margin: 0.45rem 0;
  display: flex;
}
.ym-msg .ym-bubble {
  max-width: 84%;
  padding: 0.62rem 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 0.93rem;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.ym-msg.user { justify-content: flex-end; }
.ym-msg.user .ym-bubble {
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 14px 14px 4px 14px;
}
.ym-msg.assistant { justify-content: flex-start; }
.ym-msg.assistant .ym-bubble {
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 14px 14px 14px 4px;
}
.ym-msg.error .ym-bubble {
  background: #ffffff;
  color: #525252;
  font-style: italic;
  border-radius: 14px 14px 14px 4px;
}
.ym-msg.thinking .ym-bubble {
  background: #ffffff;
  color: #8a8a8a;
  font-style: italic;
  border-radius: 14px 14px 14px 4px;
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
}
.ym-msg.thinking .ym-dots {
  display: inline-flex;
  gap: 0.18rem;
}
.ym-msg.thinking .ym-dots span {
  width: 0.32rem; height: 0.32rem;
  background: #8a8a8a;
  border-radius: 50%;
  animation: ym-blink 1.2s infinite ease-in-out both;
}
.ym-msg.thinking .ym-dots span:nth-child(2) { animation-delay: 0.2s; }
.ym-msg.thinking .ym-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ym-blink {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.yaksha-mini-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  background: #ffffff;
  border-top: 1px solid #ececec;
}
.yaksha-mini-form input[type="text"] {
  flex: 1 1 auto;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
  color: #1a1a1a;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}
.yaksha-mini-form input[type="text"]:focus {
  outline: none;
  border-color: #1a1a1a;
  background: #ffffff;
}
.yaksha-mini-form .ym-send-btn {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.yaksha-mini-form .ym-send-btn:hover { background: #2a2a2a; }
.yaksha-mini-form .ym-send-btn[disabled] { background: #c8c8c8; cursor: not-allowed; }
.yaksha-mini-form .ym-send-btn svg { width: 17px; height: 17px; }

.ym-help-bubble { display: flex; flex-direction: column; gap: 0.5rem; background: #f8fafc !important; border: 1px solid #e5e7eb !important; }
.ym-help-label { font-size: 0.78rem; color: #6b7280; margin-bottom: 0.1rem; }
.ym-help-btn {
  display: block; text-align: center; text-decoration: none; font-size: 0.82rem;
  font-weight: 600; padding: 0.45rem 0.75rem; border-radius: 6px; cursor: pointer;
}
.ym-help-primary { background: #0f172a; color: #fff; }
.ym-help-primary:hover { background: #1e293b; }
.ym-help-secondary { background: transparent; color: #0f172a; border: 1px solid #d1d5db; }
.ym-help-secondary:hover { background: #f1f5f9; }

.yaksha-mini-foot {
  font-size: 0.72rem;
  color: #8a8a8a;
  padding: 0.45rem 1.05rem 0.6rem 1.05rem;
  background: #ffffff;
  text-align: center;
}
@media (max-width: 560px) {
  .ym-launcher { right: 1rem; bottom: 1rem; width: 56px; height: 56px; }
  .yaksha-mini {
    right: 0; bottom: 0;
    width: 100vw; max-width: 100vw;
    height: 88vh; max-height: 88vh;
    border-radius: 14px 14px 0 0;
  }
}
