Jump to content

MediaWiki:Common.css: Difference between revisions

From Grantha
No edit summary
No edit summary
 
(28 intermediate revisions by the same user not shown)
Line 13: Line 13:
}
}


/* ── Base ─────────────────────────────────────────────────────────
.mw-parser-output,
  font-size is NOT set with !important — ReaderToolbar JS owns it.
.mw-parser-output *,
  20px is the no-JS fallback only.
.mw-parser-output pre,
  ────────────────────────────────────────────────────────────────*/
.mw-parser-output code,
.mw-parser-output tt,
.mw-parser-output kbd {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
}
 
.mw-parser-output {
.mw-parser-output {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif;
   font-size: 22px;
   font-size: 20px;
   line-height: 1.75;
   line-height: 1.75;
   color: #555;                 /* ref: body color */
   color: #555;
   max-width: 820px;
   max-width: 100%;
   margin: 0 auto;
  width: 100%;
   margin: 0;
  padding: 0;
  box-sizing: border-box;
}
}


.mw-parser-output p,
h1.firstHeading,
.mw-parser-output li,
#firstHeading,
.mw-parser-output td,
.mw-page-title-main {
.mw-parser-output span,
   display: none !important;
.mw-parser-output div {
   font-family: inherit;
  font-size: 1em;
  line-height: inherit;
}
}


/* ── Headings ───────────────────────────────────────────────────*/
.mw-parser-output h1,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output .mw-heading h1,
.mw-parser-output h6 {
.mw-parser-output .mw-heading h2,
  font-family: inherit;
.mw-parser-output .mw-heading h3 {
  font-size: 1em;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   font-weight: bold;
   border: none !important;
   line-height: 1.75;
   border-bottom: none !important;
  margin: 1.4rem 0 0.2rem;
   padding: 0 !important;
   border: none;
   background: none !important;
   padding: 0;
   color: inherit;
}
}


.mw-parser-output h2 {
.mw-parser-output .mw-heading {
   font-size: 1.1em;
   border: none !important;
  border-bottom: none !important;
  margin: 0; padding: 0;
}
}


/* ── Paragraphs ─────────────────────────────────────────────────*/
.gr-doc-title {
.mw-parser-output p {
  font-size: 1.6em;
   margin: 0 0 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
   margin: 0 0 16px;
  border: none !important;
}
}


.mw-parser-output p:empty,
.gr-doc-teekas + p:empty {
.mw-parser-output > div > p:empty {
   display: none !important;
   display: none !important;
   margin: 0 !important;
   margin: 0 !important;
   line-height: 0 !important;
  height: 0 !important;
}
 
.adhyaya-block h2,
.adhyaya-heading,
.mw-parser-output .mw-heading2 h2,
.mw-parser-output h2 {
  font-size: 1.2em !important;
  font-weight: 500 !important;
  color: #f57c00 !important;
   line-height: 2;
  margin: 28px 0 4px !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 2px dotted #f57c00 !important;
  width: 75%;
}
}


.mw-parser-output div[style*="font-size"] > p {
.mw-parser-output .mw-heading3 h3,
.mw-parser-output h3 {
  font-size: 1em !important;
  font-weight: 500 !important;
  color: #e65100 !important;
  line-height: 1.6;
  margin: 30px 0 10px !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px dotted #e65100 !important;
  width: 55%;
}
 
.mw-heading .mw-editsection,
.adhyaya-block .mw-editsection { display: none !important; }
 
.mw-parser-output p { margin: 0 0 0.85rem; }
.mw-parser-output p:empty,
.mw-parser-output > div > p:empty,
.mw-heading + p:empty,
.mw-heading2 + p:empty,
.adhyaya-block + p:empty,
.verse-block + p:empty {
  display: none !important;
   margin: 0 !important;
   margin: 0 !important;
}
}


/* ── Shloka block ────────────────────────────────────────────────
  ref: .shloka p — italic, #be100e, centred
  ────────────────────────────────────────────────────────────────*/
.shloka-block {
.shloka-block {
   display: block;
   display: block;
   font-family: inherit;
   text-align: left;
  font-size: 1em;
   margin: 10px 0 0;
   margin: 0.5rem 0 1rem 0;
  padding-left: 0;
  text-align: center;          /* ref: text-align:center */
}
}


.shloka-line {
.shloka-line {
   display: flex;
   display: block;
   align-items: center;
   font-style: normal;
   justify-content: center;      /* centred, matching reference */
   color: #333;
  gap: 10px;
   line-height: 1.6;
   line-height: 1.8;
  font-style: italic;           /* ref: font-style: italic */
  color: #be100e;              /* ref: .shloka p color */
}
}


.shloka-line > *:first-child {
.verse-block {
   flex: 1;
  display: block;
  margin: 10px 0 0;
   text-align: left;
}
}


/* ── Commentary body ────────────────────────────────────────────*/
.verse-block .shloka-block {
.commentary-body {
   text-align: left;
  display: block;
   margin: 0;
  font-family: inherit;
  font-size: 1em;
   line-height: 1.75;
  color: #555;                 /* ref: body / bhashya-content color */
   margin-top: 0.6rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
}


.commentary-body p,
.verse-block .shloka-line {
.commentary-body span,
  display: block;
.commentary-body div {
  font-style: italic;
   font-family: inherit;
  color: #c65;
   font-weight: 500;
  line-height: 1.6;
}
}


.commentary-body + .commentary-body {
.verse-block + p { display: none !important; margin: 0 !important; }
  margin-top: 6px;
}


.commentary-body.open {
.uvacha-block {
   max-height: 500px;
   display: block;
   opacity: 1;
  font-weight: bold;
   border: 1px solid #ededed;
   color: #c65;
   background: #fafafa;
  margin: 1.2rem 0 0;
   padding: 5px 10px;
   padding: 2px 0 2px 12px;
   overflow: auto;
   border-left: 3px solid #c65;
   text-align: left;
   font-style: normal;
}
}


.commentary-body.commentary-hidden + p:empty,
.uvacha-block + .verse-block {
.verse-block > p:empty {
   margin-top: 4px;
   display: none;
}
}


/* ── Bhashyam: running prose, no bubble ─────────────────────────
.bhashyam-block {
  ref: .sutra .bhashya-content — color #555, margin-left 60px
  ────────────────────────────────────────────────────────────────*/
.gr-bhashyam {
   display: block;
   display: block;
   font-size: 1em;
   font-size: 1em;
   line-height: 1.85;
   line-height: 1.85;
   color: #555;                 /* ref: bhashya-content color */
   color: #555;
   margin: 0.55em 0 0.8em;
   margin: 0.55em 0 0.8em 60px;
  margin-left: 60px;           /* ref: margin-left: 60px */
   padding: 0;
   padding: 0;
   border: none;
   border: none;
   background: transparent;
   background: transparent;
  max-height: none;
  overflow: visible;
  opacity: 1;
}
}


.gr-bhashyam .commentary-toggle,
/* ── Padya block (bhashyam that is verse — red italic) ──────────*/
.gr-bhashyam .commentary-accordion-toggle {
.padya-block {
   display: none !important;
  display: block;
  font-size: 1em;
  line-height: 1.85;
  color: #c65 !important;
  font-style: italic;
  font-weight: 500;
  margin: 0.55em 0 0.8em 60px;
  padding: 0;
   border: none;
  background: transparent;
}
}


/* ── Teeka: titled grey bubble, always visible ──────────────────*/
.teeka-block {
.gr-teeka {
   display: block;
   display: block;
   background: #f6f6f7;
   background: #f6f6f7;
Line 167: Line 196:
   border-radius: 8px;
   border-radius: 8px;
   padding: 10px 14px 12px;
   padding: 10px 14px 12px;
   margin: 0.7em 0 0.7em 60px; /* indented same as bhashyam */
   margin: 0.7em 0 0.7em 0;
   font-size: 0.93em;
   font-size: 0.93em;
   line-height: 1.8;
   line-height: 1.8;
   color: #555;                  /* ref: body color */
   color: #555;
  max-height: none;
  overflow: visible;
  opacity: 1;
}
}


.gr-teeka.commentary-hidden {
.teeka-title {
  display: block !important;
   font-family: system-ui, -apple-system, sans-serif !important;
}
 
.gr-teeka-title {
   font-family: system-ui, -apple-system, sans-serif;
   font-size: 0.78em;
   font-size: 0.78em;
   font-weight: 600;
   font-weight: 600;
Line 192: Line 214:
}
}


/* ── Commentary toggle ──────────────────────────────────────────*/
.teeka-body { font-family: inherit; }
.commentary-toggle {
  cursor: pointer;
  margin-left: 0.5em;
  font-size: 0.7em;
  vertical-align: middle;
  opacity: 0.4;
  user-select: none;
  display: inline;
  transition: opacity 0.2s ease;
}
 
.commentary-toggle:hover {
  opacity: 1;
}
 
.commentary-toggle-btn {
  margin-bottom: 1em;
  padding: 6px 14px;
  cursor: pointer;
}


/* ── mw-collapsible ─────────────────────────────────────────────*/
.teeka-block .shloka-block {
.commentary-block .mw-collapsible-toggle {
   margin: 0 0 0.6em;
   font-family: inherit;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-left: 4px solid #8b6914;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: bold;
   text-align: left;
   text-align: left;
  float: none !important;
}
}


.adhyaya-intro .mw-collapsible-toggle {
.teeka-block .shloka-line {
  font-family: inherit;
   display: block;
   display: block;
  width: 100%;
   font-style: italic;
  box-sizing: border-box;
   color: #be100e;
  cursor: pointer;
   line-height: 1.6;
   font-weight: bold;
   font-size: 1em;
   text-align: left;
  float: none !important;
  text-transform: uppercase;
   letter-spacing: 0.07em;
   font-size: 0.78em;
}
 
.commentary-block .mw-collapsible-toggle a {
  font-family: inherit;
  text-decoration: none;
}
 
.mw-collapsible,
.mw-collapsible-content,
blockquote,
.quotebox {
  background-color: transparent !important;
  border: none !important;
  font-style: normal !important;
  padding: 0 !important;
  margin-left: 0 !important;
}
 
/* ── Cargo store ────────────────────────────────────────────────*/
.cargo-store-only {
  display: none !important;
}
}


/* ── Adhyaya ─────────────────────────────────────────────────────
  ref: .adhyaya-heading / .paada-heading
    font-size 24px → 1.1em relative, color #f57c00,
    border-bottom: 2px dotted #f57c00, width 75%
  ────────────────────────────────────────────────────────────────*/
.adhyaya-block {
.adhyaya-block {
  font-family: inherit;
   margin: 0 0 4px;
  margin: 32px 0 18px;
  text-align: left;
}
 
.adhyaya-block h2 {
  font-size: 1.1em;            /* ref: font-size 24px / 20px base ≈ 1.2em */
  font-weight: 500;            /* ref: font-weight 500 */
  color: #f57c00;              /* ref: .adhyaya-heading color */
  line-height: 2.4;            /* ref: line-height 48px */
   margin: 0;
  padding-top: 20px;
  padding-bottom: 0;
  border: none;
  border-bottom: 2px dotted #f57c00;  /* ref: border-bottom */
  width: 75%;                  /* ref: width 75% */
}
 
.adhyaya-heading {
  font-family: inherit;
  font-size: 1.1em;
  font-weight: 500;
  color: #f57c00;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 2.4;
  border-bottom: 2px dotted #f57c00;
  width: 75%;
}
}
 
.adhyaya-trans {
.adhyaya-heading span,
.adhyaya-block p {
   font-size: 0.9em;
   font-size: 0.9em;
   color: #666;
   color: #666;
   margin-top: 2px;
   margin: 2px 0 0;
}
}
.adhyaya-anchor {
  opacity: 0;
  transition: opacity 0.2s;
}
.adhyaya-heading:hover .adhyaya-anchor {
  opacity: 0.7;
}
.adhyaya-intro.mw-collapsible {
  font-family: inherit;
}
.adhyaya-intro {
.adhyaya-intro {
   margin-top: 10px;
   margin-top: 10px;
   line-height: 1.85;
   line-height: 1.85;
   color: #555;                 /* ref: body color */
   color: #555;
}
 
/* ── Adhikarana heading ──────────────────────────────────────────
  ref: .adhikarana-heading
    color #e65100, border-bottom 1px dotted #e65100, width 50%
  ────────────────────────────────────────────────────────────────*/
.mw-parser-output h3 {
  font-size: 1em;
  font-weight: 500;            /* ref: font-weight 500 */
  color: #e65100;              /* ref: .adhikarana-heading color */
  line-height: 1.6;            /* ref: line-height 32px */
  padding-top: 30px;
  margin-bottom: 30px;
  border-bottom: 1px dotted #e65100;  /* ref: border-bottom */
  width: 50%;                  /* ref: width 50% */
}
}


/* ── Nyaya ──────────────────────────────────────────────────────*/
.nyaya-block {
.nyaya-block {
  font-family: inherit;
   margin: 40px 0;
   margin: 40px 0;
   padding-top: 14px;
   padding-top: 14px;
   border-top: 1px solid #eee;
   border-top: 1px solid #eee;
}
}
.nyaya-block a[href^="#"] {
  opacity: 0;
  transition: opacity 0.2s;
}
.nyaya-block:hover a[href^="#"] {
  opacity: 0.7;
}
.nyaya-title {
.nyaya-title {
   font-size: 1em;
   font-size: 1em;
   font-weight: 500;
   font-weight: 500;
   color: #e65100;               /* ref: adhikarana-level orange */
   color: #e65100;
   margin-bottom: 0.4rem;
   margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
   border-bottom: 1px dotted #e65100;
   border-bottom: 1px dotted #e65100;
   width: 50%;
   width: 50%;
}
}
.nyaya-title span { display: block; font-size: 0.85em; color: #666; }
.nyaya-body { color: #555; line-height: 1.85; margin-top: 0.5rem; }


.nyaya-title span {
  display: block;
  font-size: 0.85em;
  color: #666;
}
.nyaya-body {
  color: #555;
  line-height: 1.85;
  margin-top: 0.5rem;
}
/* ── Prasna ─────────────────────────────────────────────────────*/
.prasna-block {
.prasna-block {
  font-family: inherit;
   margin: 40px 0;
   margin: 40px 0;
   padding-top: 14px;
   padding-top: 14px;
   border-top: 1px solid #eee;
   border-top: 1px solid #eee;
}
}
.prasna-block a[href^="#"] {
  opacity: 0;
  transition: opacity 0.2s;
}
.prasna-block:hover a[href^="#"] {
  opacity: 0.7;
}
.prasna-title {
.prasna-title {
   font-size: 1em;
   font-size: 1em;
   font-weight: 500;
   font-weight: 500;
   color: #e65100;               /* ref: adhikarana-level orange */
   color: #e65100;
   margin-bottom: 0.4rem;
   margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
   border-bottom: 1px dotted #e65100;
   border-bottom: 1px dotted #e65100;
   width: 50%;
   width: 50%;
}
}
.prasna-title span { display: block; font-size: 0.85em; color: #666; }
.prasna-question, .prasna-answer { color: #555; line-height: 1.85; margin-top: 0.5rem; }
.prasna-answer { margin-left: 60px; }


.prasna-title span {
  display: block;
  font-size: 0.85em;
  color: #666;
}
.prasna-question,
.prasna-answer {
  color: #555;
  line-height: 1.85;
  margin-top: 0.5rem;
}
.prasna-answer {
  margin-left: 60px;
}
/* ── ID chips ───────────────────────────────────────────────────*/
.nyaya-id,
.prasna-id {
  font-family: 'Consolas', 'Liberation Mono', monospace;
}
/* ── Verse block ─────────────────────────────────────────────────
  ref: .verse-text — color #c65, font-weight 500
  ────────────────────────────────────────────────────────────────*/
.verse-block {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
}
.verse-block:hover {
  background: #fafafa;
}
.verse-block + p {
  display: none !important;
  margin: 0 !important;
}
/* Shloka lines inside VerseBlock inherit the verse color */
.verse-block .shloka-block {
  text-align: left;            /* verse references stay left-aligned */
}
.verse-block .shloka-line {
  justify-content: flex-start;
  font-style: normal;
  color: #c65;                  /* ref: .verse-text color */
  font-weight: 500;            /* ref: .verse-text font-weight */
}
.verse-text {
  display: inline;
  font-size: 1em;
  font-weight: 500;            /* ref: font-weight 500 */
  color: #c65;                  /* ref: color #c65 */
  line-height: 1.75;
  letter-spacing: 0.01em;
}
/* ── Verse actions ──────────────────────────────────────────────*/
.verse-actions {
.verse-actions {
   display: flex;
   display: flex;
Line 476: Line 283:
   margin-top: 6px;
   margin-top: 6px;
   padding-left: 2px;
   padding-left: 2px;
  justify-content: center;
}
}
.verse-action-btn {
.verse-action-btn {
   display: inline-flex;
   display: inline-flex;
Line 488: Line 295:
   transition: all 0.2s ease;
   transition: all 0.2s ease;
}
}
.verse-action-btn:hover { opacity: 1; background-color: rgba(0,0,0,0.05); }


.verse-action-btn:hover {
  opacity: 1;
  background-color: rgba(0,0,0,0.05);
  transform: scale(1.05);
}
.verse-action-commentary {
  opacity: 0.7;
}
.verse-action-commentary.active {
  background-color: rgba(0, 0, 0, 0.08);
  opacity: 1;
}
.verse-action-commentary.active .icon {
  filter: invert(25%) sepia(80%) saturate(500%) hue-rotate(200deg);
}
/* ── Icons ──────────────────────────────────────────────────────*/
.icon {
.icon {
   display: inline-block;
   display: inline-block;
   width: 18px;
   width: 18px; height: 18px;
  height: 18px;
   background-repeat: no-repeat;
   background-repeat: no-repeat;
   background-position: center;
   background-position: center;
Line 519: Line 306:
   pointer-events: none;
   pointer-events: none;
}
}
.icon-copy { background-image: url('/images/copy.svg'); }
.icon-commentary { background-image: url('/images/commentary.svg'); }


.icon-copy {
  background-image: url('/images/copy.svg');
}
.icon-commentary {
  background-image: url('/images/commentary.svg');
}
/* ── CopyID button ──────────────────────────────────────────────*/
.copy-id-btn {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  cursor: pointer;
  background-image: url('/images/copy.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* ── Copy tooltip ───────────────────────────────────────────────*/
.copy-tooltip {
.copy-tooltip {
   position: absolute;
   position: absolute;
Line 556: Line 323:
   font-size: 0.75rem;
   font-size: 0.75rem;
   font-weight: 500;
   font-weight: 500;
  letter-spacing: 0.02em;
   background: rgba(30,30,30,0.82);
   background: rgba(30, 30, 30, 0.82);
   color: #fff;
   color: #fff;
   backdrop-filter: blur(6px);
   backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
   opacity: 0;
   opacity: 0;
   transition: opacity 0.2s ease, transform 0.2s ease;
   transition: opacity 0.2s ease, transform 0.2s ease;
}
}
.copy-tooltip.copy-tooltip-visible {
.copy-tooltip.copy-tooltip-visible {
   opacity: 1;
   opacity: 1;
Line 571: Line 334:
}
}


/* ── Code blocks ────────────────────────────────────────────────*/
pre, code, .mw-code, tt, kbd {
pre, code, .mw-code {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   background-color: transparent;
  background-color: transparent !important;
   border: none;
  border: none !important;
   padding: 0.5em;
  padding: 0.3em 0 !important;
   line-height: 1;
  line-height: 1.75;
   margin: 0.5em;
}
 
.mw-collapsible,
.mw-collapsible-content,
blockquote,
.quotebox {
   background-color: transparent !important;
  border: none !important;
  font-style: normal !important;
  padding: 0 !important;
  margin-left: 0 !important;
}
 
.cargo-store-only { display: none !important; }
 
/* ── TOC — inline box ────────────────────────────────────────────*/
.toc {
  display: block !important;
  background: #fffdf5;
  border: 1px solid #e8c88a;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 24px 0;
  width: fit-content;
  min-width: 220px;
  max-width: 420px;
  font-size: 0.9em;
  line-height: 2;
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
}
 
.toc h2,
.toc .toctitle {
  font-size: 0.85em !important;
  font-weight: 600 !important;
  color: #5a3a00 !important;
  border: none !important;
   border-bottom: none !important;
  width: auto !important;
  margin: 0 0 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
 
.toc ul {
  margin: 0 !important;
  padding-left: 1.2em !important;
   list-style: none !important;
}
 
.toc li { margin: 0; padding: 0; }
 
.toc a {
  color: #7a4a10 !important;
  text-decoration: none !important;
}
 
.toc a:hover { color: #f57c00 !important; }
 
.toc .toclevel-1 > a { font-weight: 600; color: #5a3a00 !important; }
.toc .toclevel-2 > a { color: #7a4a10 !important; }
.toc .toclevel-3 > a { color: #9a6020 !important; font-size: 0.95em; }
 
.tocnumber { color: #aaa; margin-right: 4px; font-size: 0.85em; }
 
/* ── Vector 2022 sticky sidebar TOC ─────────────────────────────*/
.vector-toc {
  font-size: 1.1em !important;
   line-height: 2 !important;
}
 
/* Adishila only on text, not icons */
.vector-toc .vector-toc-link,
.vector-toc .vector-toc-text,
.vector-toc .vector-toc-numb {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
}
 
.vector-toc .vector-toc-title {
  font-size: 0.85em !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888 !important;
  font-family: system-ui, sans-serif !important;
}
 
/* TOC list item — flex so link and toggle sit on same line */
.vector-toc .vector-toc-list-item {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}
 
.vector-toc .vector-toc-list-item > .vector-toc-link {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
 
/* Sublist takes full width on its own line */
.vector-toc .vector-toc-list-item > .vector-toc-list {
  flex: 0 0 100% !important;
}
 
/* Toggle button — inline, no box */
.vector-toc .cdx-button.vector-toc-toggle {
  flex: 0 0 auto !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
   margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 1.4em !important;
  height: 1.4em !important;
  cursor: pointer !important;
  opacity: 0.5;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
 
.vector-toc a,
.vector-toc .vector-toc-link {
  color: #5a3a00 !important;
  text-decoration: none !important;
}
 
.vector-toc a:hover,
.vector-toc .vector-toc-link:hover {
  color: #f57c00 !important;
}
 
/* Active highlight */
.vector-toc li.vector-toc-list-item-active > a,
.vector-toc li.vector-toc-list-item-active > .vector-toc-link,
.vector-toc .vector-toc-list-item-active .vector-toc-link,
.vector-toc .vector-toc-level-1-active > .vector-toc-link {
  color: #f57c00 !important;
  font-weight: 700 !important;
}
 
.vector-toc .vector-toc-level-1 > .vector-toc-link {
  font-weight: 600 !important;
  color: #3a1f00 !important;
}
 
.vector-toc .vector-toc-level-2 > .vector-toc-link {
  color: #5a3a00 !important;
}
}


/* ── Modals ─────────────────────────────────────────────────────*/
.vector-toc .vector-toc-level-3 > .vector-toc-link {
.grantha-new-btn {
   color: #7a5010 !important;
   background: rgba(255,255,255,0.1);
   font-size: 0.95em !important;
   border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  margin-right: 10px;
}
}


.grantha-modal {
.vector-toc-link,
   position: fixed;
.vector-toc-toggle {
  inset: 0;
   height: 2rem;
  background: rgba(0,0,0,0.35);
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
  justify-content: center;
  z-index: 10000;
}
}
.gr-doc-teekas { margin-bottom: 1em; }


.grantha-modal-box {
/* ── Main page ───────────────────────────────────────────────────*/
   background: white;
.gr-home {
   padding: 20px;
   max-width: 1080px;
   border-radius: 10px;
   margin: 0 auto;
  width: 300px;
   padding: 0;
}
}


.gm-title {
.gr-home-page-title {
   font-weight: bold;
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   margin-bottom: 10px;
  text-align: center;
  font-size: 1.8em;
   font-weight: 500;
  color: #1a2e40;
   margin: 24px 0 32px;
}
}


.gm-actions {
.gr-home-grid {
   display: flex;
   display: flex;
   justify-content: flex-end;
   flex-wrap: wrap;
   gap: 10px;
   gap: 20px;
   margin-top: 12px;
   margin-bottom: 32px;
}
}


/* ── Main page ──────────────────────────────────────────────────*/
.gr-home-card {
body.page-Main_Page #mw-panel,
  background: #fff;
body.page-Main_Page .vector-sidebar-container {
  border: 1px solid #e8e4df;
   display: none !important;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 18px 20px 20px;
  flex: 1 1 280px;
  min-width: 240px;
   max-width: 360px;
}
}


body.page-Main_Page #footer {
.gr-home-card-title {
   display: none !important;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  font-size: 1em;
  font-weight: 600;
  color: #1a2e40;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid #c0392b;
}
}


#se-home {
.gr-home-card ol {
   max-width: 700px;
   margin: 0;
   margin: 40px auto;
  padding-left: 1.4em;
   list-style: decimal;
}
}


.se-docrow {
.gr-home-card li {
   cursor: pointer;
   font-size: 0.95em;
  line-height: 1.85;
  color: #333;
}
}


.se-docrow-title {
.gr-home-card li a { color: #c0392b; text-decoration: none; }
  text-decoration: none;
.gr-home-card li a:hover { text-decoration: underline; }
.gr-home-card li a.new { color: #c08080; }
 
.gr-home-note { font-size: 0.82em; color: #888; }
 
.gr-home-group-label {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  font-size: 1.1em;
  font-weight: 600;
   color: #1a2e40;
   color: #1a2e40;
  text-align: center;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c0392b;
}
}


.se-docrow:hover {
/* ── Modals ──────────────────────────────────────────────────────*/
   background: #f4f7fb;
.grantha-new-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  margin-right: 10px;
}
.grantha-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
.grantha-modal-box {
   background: white; padding: 20px;
  border-radius: 10px; width: 300px;
}
}
.gm-title { font-weight: bold; margin-bottom: 10px; }
.gm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
/* ── Main page sidebar hide ──────────────────────────────────────*/
body.page-Main_Page #mw-panel,
body.page-Main_Page .vector-sidebar-container { display: none !important; }
body.page-Main_Page #footer { display: none !important; }


/* ── Responsive ─────────────────────────────────────────────────*/
/* ── Responsive ──────────────────────────────────────────────────*/
@media (max-width: 600px) {
@media (max-width: 600px) {
   .mw-parser-output {
   .mw-parser-output { font-size: 16px; }
    font-size: 16px;
   .mw-parser-output h2,
  }
   .mw-parser-output .mw-heading2 h2 { width: 100% !important; }
   .nyaya-id,
   .mw-parser-output h3,
   .prasna-id,
   .mw-parser-output .mw-heading3 h3 { width: 100% !important; }
  .adhyaya-anchor {
   .nyaya-title, .prasna-title { width: 100%; }
    display: none;
   .bhashyam-block, .teeka-block { margin-left: 10px; }
  }
  .toc { max-width: 100%; }
   .adhyaya-block h2,
   .adhyaya-heading,
   .nyaya-title,
  .prasna-title,
   .mw-parser-output h3 {
    width: 100%;
  }
}
}


/* ════════════════════════════════════════════════════════════════
/* ════════════════════════════════════════════════════════════════
   VECTOR 2022 HEADER
   VECTOR 2022 HEADER
  Navy background, white logo/icons, white search input box
   ════════════════════════════════════════════════════════════════*/
   ════════════════════════════════════════════════════════════════*/
/* ── Header background ──────────────────────────────────────────*/
.vector-header-container {
.vector-header-container {
   background: #1a2e40 !important;
   background: #b5451b !important;
   border-bottom: 1px solid rgba(255,255,255,0.08);
   border-bottom: 1px solid rgba(255,255,255,0.12);
}
}
.vector-header {
.vector-header {
   background: transparent !important;
   background: transparent !important;
Line 687: Line 636:
   padding-right: 20px !important;
   padding-right: 20px !important;
}
}
/* ── Header layout ──────────────────────────────────────────────*/
.vector-header-start {
.vector-header-start {
   flex: 0 0 auto !important;
   flex: 0 0 auto !important;
Line 695: Line 642:
   gap: 12px;
   gap: 12px;
}
}
.vector-header-end {
.vector-header-end {
   flex: 0 0 auto !important;
   flex: 0 0 auto !important;
Line 703: Line 649:
   margin-left: auto;
   margin-left: auto;
}
}
 
.mw-logo { display: flex !important; align-items: center; opacity: 1 !important; }
/* ── Logo ───────────────────────────────────────────────────────*/
.mw-logo-wordmark { color: #ffffff !important; font-weight: 700; font-size: 18px; }
.mw-logo {
.mw-logo-icon { content: url('/favicon.ico'); width: 24px; height: 24px; }
  display: flex !important;
.vector-header .vector-icon { filter: invert(1); opacity: 0.9; }
  align-items: center;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
 
.mw-logo-wordmark {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
 
.mw-logo-icon {
  content: url('/favicon.ico');
  width: 24px;
  height: 24px;
}
 
/* ── Header icons (watchlist, user, etc.) — white, NOT search ───*/
.vector-header .vector-icon {
  filter: invert(1);
  opacity: 0.9;
}
 
/* Search icon must NOT be inverted — it sits on a white input */
.cdx-search-input .vector-icon,
.cdx-search-input .vector-icon,
.cdx-search-input svg,
.cdx-search-input svg,
Line 739: Line 659:
.cdx-search-input__end-button svg,
.cdx-search-input__end-button svg,
.cdx-search-input__end-button path {
.cdx-search-input__end-button path {
   filter: none !important;
   filter: none !important; fill: #202124 !important; opacity: 1 !important;
  fill: #202124 !important;
  opacity: 1 !important;
}
 
/* ── Header text/links (user menu etc.) ─────────────────────────*/
.vector-header-end > *:not(#p-search) {
  color: rgba(255,255,255,0.9) !important;
}
 
.vector-user-links a {
  color: rgba(255,255,255,0.9) !important;
}
 
/* ════════════════════════════════════════════════════════════════
  SEARCH BOX
  White input, dark text, fixed width — never breaks header layout
  ════════════════════════════════════════════════════════════════*/
 
#p-search {
  margin-left: 8px;
}
}
.vector-header-end > *:not(#p-search) { color: rgba(255,255,255,0.9) !important; }
.vector-user-links a { color: rgba(255,255,255,0.9) !important; }


/* ── Search ──────────────────────────────────────────────────────*/
#p-search { margin-left: 8px; }
.vector-search-box,
.vector-search-box,
.vector-search-box-expanded,
.vector-search-box-expanded,
.vector-search-box-auto-expand-width {
.vector-search-box-auto-expand-width {
   min-width: 0 !important;
   min-width: 0 !important; flex-grow: 0 !important;
  flex-grow: 0 !important;
   position: relative !important; margin: 0 !important;
   position: relative !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
}
}
.cdx-search-input__input,
.cdx-search-input__input,
.cdx-text-input__input {
.cdx-text-input__input {
Line 780: Line 679:
   color: #202124 !important;
   color: #202124 !important;
   padding: 6px 10px !important;
   padding: 6px 10px !important;
   opacity: 1 !important;
   font-family: system-ui, sans-serif !important;
}
}
.cdx-search-input__input::placeholder,
.cdx-search-input__input::placeholder,
.cdx-text-input__input::placeholder {
.cdx-text-input__input::placeholder {
   color: rgba(32, 33, 36, 0.5) !important;
   color: rgba(32,33,36,0.5) !important;
  opacity: 1 !important;
}
}
 
.cdx-search-input__end-button { background: transparent !important; border: none !important; }
.cdx-search-input__end-button {
  background: transparent !important;
  border: none !important;
}
 
/* ── Dropdown ───────────────────────────────────────────────────*/
.cdx-typeahead-search,
.cdx-typeahead-search,
.cdx-typeahead-search__menu,
.cdx-typeahead-search__menu,
.cdx-menu {
.cdx-menu {
   background: #ffffff !important;
   background: #ffffff !important; color: #202124 !important;
  color: #202124 !important;
   border-radius: 10px !important;
   border-radius: 10px !important;
   box-shadow: 0 6px 24px rgba(0,0,0,0.2) !important;
   box-shadow: 0 6px 24px rgba(0,0,0,0.2) !important;
   filter: none !important;
   filter: none !important;
}
}
 
.cdx-menu-item, .cdx-menu-item * { color: #202124 !important; filter: none !important; }
.cdx-menu-item,
.cdx-menu-item * {
  color: #202124 !important;
  filter: none !important;
}
 
.cdx-menu-item:hover,
.cdx-menu-item:hover,
.cdx-menu-item--active,
.cdx-menu-item--active,
.cdx-menu-item--selected {
.cdx-menu-item--selected { background: #f1f3f4 !important; }
  background: #f1f3f4 !important;
  color: #202124 !important;
}
 
.cdx-menu-item__icon,
.cdx-menu-item__icon,
.cdx-menu-item__icon svg,
.cdx-menu-item__icon svg,
.cdx-menu-item__icon path {
.cdx-menu-item__icon path { fill: #202124 !important; filter: none !important; }
  fill: #202124 !important;
 
  filter: none !important;
/* ── Script switcher bar ─────────────────────────────────────────*/
.gr-script-bar {
  margin: 0 0 20px;
  font-size: 0.8em;
  color: #888;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
}
.bhashyam-block {
 
   display: block;
.gr-script-label {
   color: #555;
   font-family: system-ui, sans-serif;
  line-height: 1.85;
   color: #aaa;
  margin: 0.5em 0 0.8em 60px;
}
}
.teeka-block {
 
   background: #f6f6f7;
.gr-script-btn {
   border: 1px solid #e2e2e6;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif;
   border-radius: 8px;
   color: #c0392b !important;
   padding: 10px 14px 12px;
   text-decoration: underline dotted !important;
  margin: 0.7em 0 0.7em 60px;
   cursor: pointer;
  color: #555;
}
}
.teeka-title {
 
  font-size: 0.78em;
.gr-script-btn.active {
  font-weight: 600;
   color: #888 !important;
  text-transform: uppercase;
   text-decoration: none !important;
  letter-spacing: 0.06em;
   cursor: default;
   color: #777;
   border-bottom: 1px solid #ddd;
   padding-bottom: 5px;
  margin-bottom: 6px;
}
}

Latest revision as of 19:10, 13 April 2026

@font-face {
  font-family: "Adishila";
  src: url("/resources/fonts/adishila/Adishila.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Adishila";
  src: url("/resources/fonts/adishila/AdishilaBold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

.mw-parser-output,
.mw-parser-output *,
.mw-parser-output pre,
.mw-parser-output code,
.mw-parser-output tt,
.mw-parser-output kbd {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
}

.mw-parser-output {
  font-size: 22px;
  line-height: 1.75;
  color: #555;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1.firstHeading,
#firstHeading,
.mw-page-title-main {
  display: none !important;
}

.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output .mw-heading h1,
.mw-parser-output .mw-heading h2,
.mw-parser-output .mw-heading h3 {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  border: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  background: none !important;
}

.mw-parser-output .mw-heading {
  border: none !important;
  border-bottom: none !important;
  margin: 0; padding: 0;
}

.gr-doc-title {
  font-size: 1.6em;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 16px;
  border: none !important;
}

.gr-doc-teekas + p:empty {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

.adhyaya-block h2,
.adhyaya-heading,
.mw-parser-output .mw-heading2 h2,
.mw-parser-output h2 {
  font-size: 1.2em !important;
  font-weight: 500 !important;
  color: #f57c00 !important;
  line-height: 2;
  margin: 28px 0 4px !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 2px dotted #f57c00 !important;
  width: 75%;
}

.mw-parser-output .mw-heading3 h3,
.mw-parser-output h3 {
  font-size: 1em !important;
  font-weight: 500 !important;
  color: #e65100 !important;
  line-height: 1.6;
  margin: 30px 0 10px !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px dotted #e65100 !important;
  width: 55%;
}

.mw-heading .mw-editsection,
.adhyaya-block .mw-editsection { display: none !important; }

.mw-parser-output p { margin: 0 0 0.85rem; }
.mw-parser-output p:empty,
.mw-parser-output > div > p:empty,
.mw-heading + p:empty,
.mw-heading2 + p:empty,
.adhyaya-block + p:empty,
.verse-block + p:empty {
  display: none !important;
  margin: 0 !important;
}

.shloka-block {
  display: block;
  text-align: left;
  margin: 10px 0 0;
}

.shloka-line {
  display: block;
  font-style: normal;
  color: #333;
  line-height: 1.6;
}

.verse-block {
  display: block;
  margin: 10px 0 0;
  text-align: left;
}

.verse-block .shloka-block {
  text-align: left;
  margin: 0;
}

.verse-block .shloka-line {
  display: block;
  font-style: italic;
  color: #c65;
  font-weight: 500;
  line-height: 1.6;
}

.verse-block + p { display: none !important; margin: 0 !important; }

.uvacha-block {
  display: block;
  font-weight: bold;
  color: #c65;
  margin: 1.2rem 0 0;
  padding: 2px 0 2px 12px;
  border-left: 3px solid #c65;
  text-align: left;
  font-style: normal;
}

.uvacha-block + .verse-block {
  margin-top: 4px;
}

.bhashyam-block {
  display: block;
  font-size: 1em;
  line-height: 1.85;
  color: #555;
  margin: 0.55em 0 0.8em 60px;
  padding: 0;
  border: none;
  background: transparent;
}

/* ── Padya block (bhashyam that is verse — red italic) ──────────*/
.padya-block {
  display: block;
  font-size: 1em;
  line-height: 1.85;
  color: #c65 !important;
  font-style: italic;
  font-weight: 500;
  margin: 0.55em 0 0.8em 60px;
  padding: 0;
  border: none;
  background: transparent;
}

.teeka-block {
  display: block;
  background: #f6f6f7;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  padding: 10px 14px 12px;
  margin: 0.7em 0 0.7em 0;
  font-size: 0.93em;
  line-height: 1.8;
  color: #555;
}

.teeka-title {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

.teeka-body { font-family: inherit; }

.teeka-block .shloka-block {
  margin: 0 0 0.6em;
  text-align: left;
}

.teeka-block .shloka-line {
  display: block;
  font-style: italic;
  color: #be100e;
  line-height: 1.6;
  font-size: 1em;
}

.adhyaya-block {
  margin: 0 0 4px;
}
.adhyaya-trans {
  font-size: 0.9em;
  color: #666;
  margin: 2px 0 0;
}
.adhyaya-intro {
  margin-top: 10px;
  line-height: 1.85;
  color: #555;
}

.nyaya-block {
  margin: 40px 0;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.nyaya-title {
  font-size: 1em;
  font-weight: 500;
  color: #e65100;
  margin-bottom: 0.4rem;
  border-bottom: 1px dotted #e65100;
  width: 50%;
}
.nyaya-title span { display: block; font-size: 0.85em; color: #666; }
.nyaya-body { color: #555; line-height: 1.85; margin-top: 0.5rem; }

.prasna-block {
  margin: 40px 0;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.prasna-title {
  font-size: 1em;
  font-weight: 500;
  color: #e65100;
  margin-bottom: 0.4rem;
  border-bottom: 1px dotted #e65100;
  width: 50%;
}
.prasna-title span { display: block; font-size: 0.85em; color: #666; }
.prasna-question, .prasna-answer { color: #555; line-height: 1.85; margin-top: 0.5rem; }
.prasna-answer { margin-left: 60px; }

.verse-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-left: 2px;
  justify-content: center;
}
.verse-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.2s ease;
}
.verse-action-btn:hover { opacity: 1; background-color: rgba(0,0,0,0.05); }

.icon {
  display: inline-block;
  width: 18px; height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(2px);
  pointer-events: none;
}
.icon-copy { background-image: url('/images/copy.svg'); }
.icon-commentary { background-image: url('/images/commentary.svg'); }

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(30,30,30,0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.copy-tooltip.copy-tooltip-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

pre, code, .mw-code, tt, kbd {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0.3em 0 !important;
  line-height: 1.75;
}

.mw-collapsible,
.mw-collapsible-content,
blockquote,
.quotebox {
  background-color: transparent !important;
  border: none !important;
  font-style: normal !important;
  padding: 0 !important;
  margin-left: 0 !important;
}

.cargo-store-only { display: none !important; }

/* ── TOC — inline box ────────────────────────────────────────────*/
.toc {
  display: block !important;
  background: #fffdf5;
  border: 1px solid #e8c88a;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 24px 0;
  width: fit-content;
  min-width: 220px;
  max-width: 420px;
  font-size: 0.9em;
  line-height: 2;
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
}

.toc h2,
.toc .toctitle {
  font-size: 0.85em !important;
  font-weight: 600 !important;
  color: #5a3a00 !important;
  border: none !important;
  border-bottom: none !important;
  width: auto !important;
  margin: 0 0 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc ul {
  margin: 0 !important;
  padding-left: 1.2em !important;
  list-style: none !important;
}

.toc li { margin: 0; padding: 0; }

.toc a {
  color: #7a4a10 !important;
  text-decoration: none !important;
}

.toc a:hover { color: #f57c00 !important; }

.toc .toclevel-1 > a { font-weight: 600; color: #5a3a00 !important; }
.toc .toclevel-2 > a { color: #7a4a10 !important; }
.toc .toclevel-3 > a { color: #9a6020 !important; font-size: 0.95em; }

.tocnumber { color: #aaa; margin-right: 4px; font-size: 0.85em; }

/* ── Vector 2022 sticky sidebar TOC ─────────────────────────────*/
.vector-toc {
  font-size: 1.1em !important;
  line-height: 2 !important;
}

/* Adishila only on text, not icons */
.vector-toc .vector-toc-link,
.vector-toc .vector-toc-text,
.vector-toc .vector-toc-numb {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
}

.vector-toc .vector-toc-title {
  font-size: 0.85em !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888 !important;
  font-family: system-ui, sans-serif !important;
}

/* TOC list item — flex so link and toggle sit on same line */
.vector-toc .vector-toc-list-item {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.vector-toc .vector-toc-list-item > .vector-toc-link {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Sublist takes full width on its own line */
.vector-toc .vector-toc-list-item > .vector-toc-list {
  flex: 0 0 100% !important;
}

/* Toggle button — inline, no box */
.vector-toc .cdx-button.vector-toc-toggle {
  flex: 0 0 auto !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 1.4em !important;
  height: 1.4em !important;
  cursor: pointer !important;
  opacity: 0.5;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.vector-toc a,
.vector-toc .vector-toc-link {
  color: #5a3a00 !important;
  text-decoration: none !important;
}

.vector-toc a:hover,
.vector-toc .vector-toc-link:hover {
  color: #f57c00 !important;
}

/* Active highlight */
.vector-toc li.vector-toc-list-item-active > a,
.vector-toc li.vector-toc-list-item-active > .vector-toc-link,
.vector-toc .vector-toc-list-item-active .vector-toc-link,
.vector-toc .vector-toc-level-1-active > .vector-toc-link {
  color: #f57c00 !important;
  font-weight: 700 !important;
}

.vector-toc .vector-toc-level-1 > .vector-toc-link {
  font-weight: 600 !important;
  color: #3a1f00 !important;
}

.vector-toc .vector-toc-level-2 > .vector-toc-link {
  color: #5a3a00 !important;
}

.vector-toc .vector-toc-level-3 > .vector-toc-link {
  color: #7a5010 !important;
  font-size: 0.95em !important;
}

.vector-toc-link,
.vector-toc-toggle {
  height: 2rem;
  display: flex;
  align-items: center;
}
.gr-doc-teekas { margin-bottom: 1em; }

/* ── Main page ───────────────────────────────────────────────────*/
.gr-home {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

.gr-home-page-title {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  text-align: center;
  font-size: 1.8em;
  font-weight: 500;
  color: #1a2e40;
  margin: 24px 0 32px;
}

.gr-home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.gr-home-card {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 18px 20px 20px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 360px;
}

.gr-home-card-title {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  font-size: 1em;
  font-weight: 600;
  color: #1a2e40;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid #c0392b;
}

.gr-home-card ol {
  margin: 0;
  padding-left: 1.4em;
  list-style: decimal;
}

.gr-home-card li {
  font-size: 0.95em;
  line-height: 1.85;
  color: #333;
}

.gr-home-card li a { color: #c0392b; text-decoration: none; }
.gr-home-card li a:hover { text-decoration: underline; }
.gr-home-card li a.new { color: #c08080; }

.gr-home-note { font-size: 0.82em; color: #888; }

.gr-home-group-label {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  font-size: 1.1em;
  font-weight: 600;
  color: #1a2e40;
  text-align: center;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c0392b;
}

/* ── Modals ──────────────────────────────────────────────────────*/
.grantha-new-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  margin-right: 10px;
}
.grantha-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
.grantha-modal-box {
  background: white; padding: 20px;
  border-radius: 10px; width: 300px;
}
.gm-title { font-weight: bold; margin-bottom: 10px; }
.gm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* ── Main page sidebar hide ──────────────────────────────────────*/
body.page-Main_Page #mw-panel,
body.page-Main_Page .vector-sidebar-container { display: none !important; }
body.page-Main_Page #footer { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────*/
@media (max-width: 600px) {
  .mw-parser-output { font-size: 16px; }
  .mw-parser-output h2,
  .mw-parser-output .mw-heading2 h2 { width: 100% !important; }
  .mw-parser-output h3,
  .mw-parser-output .mw-heading3 h3 { width: 100% !important; }
  .nyaya-title, .prasna-title { width: 100%; }
  .bhashyam-block, .teeka-block { margin-left: 10px; }
  .toc { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   VECTOR 2022 HEADER
   ════════════════════════════════════════════════════════════════*/
.vector-header-container {
  background: #b5451b !important;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.vector-header {
  background: transparent !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.vector-header-start {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
}
.vector-header-end {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px;
  margin-left: auto;
}
.mw-logo { display: flex !important; align-items: center; opacity: 1 !important; }
.mw-logo-wordmark { color: #ffffff !important; font-weight: 700; font-size: 18px; }
.mw-logo-icon { content: url('/favicon.ico'); width: 24px; height: 24px; }
.vector-header .vector-icon { filter: invert(1); opacity: 0.9; }
.cdx-search-input .vector-icon,
.cdx-search-input svg,
.cdx-search-input path,
.cdx-search-input__end-button .vector-icon,
.cdx-search-input__end-button svg,
.cdx-search-input__end-button path {
  filter: none !important; fill: #202124 !important; opacity: 1 !important;
}
.vector-header-end > *:not(#p-search) { color: rgba(255,255,255,0.9) !important; }
.vector-user-links a { color: rgba(255,255,255,0.9) !important; }

/* ── Search ──────────────────────────────────────────────────────*/
#p-search { margin-left: 8px; }
.vector-search-box,
.vector-search-box-expanded,
.vector-search-box-auto-expand-width {
  min-width: 0 !important; flex-grow: 0 !important;
  position: relative !important; margin: 0 !important;
}
.cdx-search-input__input,
.cdx-text-input__input {
  background: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  color: #202124 !important;
  padding: 6px 10px !important;
  font-family: system-ui, sans-serif !important;
}
.cdx-search-input__input::placeholder,
.cdx-text-input__input::placeholder {
  color: rgba(32,33,36,0.5) !important;
}
.cdx-search-input__end-button { background: transparent !important; border: none !important; }
.cdx-typeahead-search,
.cdx-typeahead-search__menu,
.cdx-menu {
  background: #ffffff !important; color: #202124 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2) !important;
  filter: none !important;
}
.cdx-menu-item, .cdx-menu-item * { color: #202124 !important; filter: none !important; }
.cdx-menu-item:hover,
.cdx-menu-item--active,
.cdx-menu-item--selected { background: #f1f3f4 !important; }
.cdx-menu-item__icon,
.cdx-menu-item__icon svg,
.cdx-menu-item__icon path { fill: #202124 !important; filter: none !important; }

/* ── Script switcher bar ─────────────────────────────────────────*/
.gr-script-bar {
  margin: 0 0 20px;
  font-size: 0.8em;
  color: #888;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gr-script-label {
  font-family: system-ui, sans-serif;
  color: #aaa;
}

.gr-script-btn {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif;
  color: #c0392b !important;
  text-decoration: underline dotted !important;
  cursor: pointer;
}

.gr-script-btn.active {
  color: #888 !important;
  text-decoration: none !important;
  cursor: default;
}