Jump to content

MediaWiki:Common.css: Difference between revisions

From Grantha
No edit summary
No edit summary
Line 1: Line 1:
/* ═══════════════════════════════════════════════════════════════════
  MediaWiki:Common.css  —  grantha.io  (v6 additions)
  Paste this entire block INTO your existing Common.css, replacing
  or appending as appropriate. Sections marked NEW are net additions.
  ═══════════════════════════════════════════════════════════════════ */
/* ── Fonts ────────────────────────────────────────────────────── */
@font-face {
@font-face {
   font-family: "Adishila";
   font-family: "Adishila";
   src: url("/resources/fonts/adishila/Adishila.ttf") format("truetype");
   src: url("/resources/fonts/adishila/Adishila.ttf") format("truetype");
   font-weight: normal;
   font-weight: normal; font-style: normal;
  font-style: normal;
}
}
@font-face {
@font-face {
   font-family: "Adishila";
   font-family: "Adishila";
   src: url("/resources/fonts/adishila/AdishilaBold.ttf") format("truetype");
   src: url("/resources/fonts/adishila/AdishilaBold.ttf") format("truetype");
   font-weight: bold;
   font-weight: bold; font-style: normal;
  font-style: normal;
}
}


Line 24: Line 28:
.mw-parser-output {
.mw-parser-output {
   font-size: 22px;
   font-size: 22px;
   line-height: 1.75;
   line-height: 1.65;          /* REDUCED from 1.75 */
   color: #555;
   color: #555;
   max-width: 100%;
   max-width: 100%;
   width: 100%;
   width: 100%;
   margin: 0;
   margin: 0; padding: 0;
  padding: 0;
   box-sizing: border-box;
   box-sizing: border-box;
}
}


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


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


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


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


/* ── Chapter / section headings ──────────────────────────────── */
.adhyaya-block h2,
.adhyaya-block h2,
.adhyaya-heading,
.adhyaya-heading,
.mw-parser-output .mw-heading2 h2,
.mw-parser-output .mw-heading2 h2,
.mw-parser-output h2 {
.mw-parser-output h2 {
   font-size: 1.2em !important;
   font-size: 1.2em !important; font-weight: 500 !important;
  font-weight: 500 !important;
   color: #f57c00 !important; line-height: 1.8;
   color: #f57c00 !important;
   margin: 24px 0 4px !important; padding: 0 !important;
  line-height: 2;
   margin: 28px 0 4px !important;
  padding: 0 !important;
   border: none !important;
   border: none !important;
   border-bottom: 2px dotted #f57c00 !important;
   border-bottom: 2px dotted #f57c00 !important;
Line 91: Line 75:
.mw-parser-output .mw-heading3 h3,
.mw-parser-output .mw-heading3 h3,
.mw-parser-output h3 {
.mw-parser-output h3 {
   font-size: 1em !important;
   font-size: 1em !important; font-weight: 500 !important;
  font-weight: 500 !important;
   color: #e65100 !important; line-height: 1.5;
   color: #e65100 !important;
   margin: 24px 0 8px !important; padding: 0 !important;
  line-height: 1.6;
   margin: 30px 0 10px !important;
  padding: 0 !important;
   border: none !important;
   border: none !important;
   border-bottom: 1px dotted #e65100 !important;
   border-bottom: 1px dotted #e65100 !important;
Line 105: Line 86:
.adhyaya-block .mw-editsection { display: none !important; }
.adhyaya-block .mw-editsection { display: none !important; }


.mw-parser-output p { margin: 0 0 0.85rem; }
.mw-parser-output p { margin: 0 0 0.6rem; }       /* REDUCED */
.mw-parser-output p:empty,
.mw-parser-output p:empty,
.mw-parser-output > div > p:empty,
.mw-parser-output > div > p:empty,
Line 112: Line 93:
.adhyaya-block + p:empty,
.adhyaya-block + p:empty,
.verse-block + p:empty {
.verse-block + p:empty {
   display: none !important;
   display: none !important; margin: 0 !important;
  margin: 0 !important;
}
}


/* ── Verse blocks — tightened spacing ────────────────────────── */
.shloka-block {
.shloka-block {
   display: block;
   display: block;
   text-align: left;
   text-align: left;
   margin: 10px 0 0;
   margin: 6px 0 0;           /* REDUCED from 10px */
}
}


Line 126: Line 107:
   font-style: normal;
   font-style: normal;
   color: #333;
   color: #333;
   line-height: 1.6;
   line-height: 1.45;          /* REDUCED from 1.6 */
  margin: 0;                 /* no extra gap between lines */
}
}


.verse-block {
.verse-block {
   display: block;
   display: block;
   margin: 10px 0 0;
   margin: 6px 0 0;           /* REDUCED from 10px */
   text-align: left;
   text-align: left;
}
}


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


.verse-block .shloka-line {
.verse-block .shloka-line {
Line 145: Line 124:
   color: #c65;
   color: #c65;
   font-weight: 500;
   font-weight: 500;
   line-height: 1.6;
   line-height: 1.45;          /* REDUCED */
  margin: 0;
}
}


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


/* ── Uvacha ───────────────────────────────────────────────────── */
.uvacha-block {
.uvacha-block {
   display: block;
   display: block;
   font-weight: bold;
   font-weight: bold; color: #c65;
  color: #c65;
   margin: 0.8rem 0 0;         /* REDUCED from 1.2rem */
   margin: 1.2rem 0 0;
   padding: 2px 0 2px 12px;
   padding: 2px 0 2px 12px;
   border-left: 3px solid #c65;
   border-left: 3px solid #c65;
   text-align: left;
   text-align: left; font-style: normal;
  font-style: normal;
}
 
.uvacha-block + .verse-block {
  margin-top: 4px;
}
}
.uvacha-block + .verse-block { margin-top: 2px; }


/* ── Bhashyam ─────────────────────────────────────────────────── */
.bhashyam-block {
.bhashyam-block {
   display: block;
   display: block;
   font-size: 1em;
   font-size: 1em; line-height: 1.75;  /* REDUCED from 1.85 */
  line-height: 1.85;
   color: #555;
   color: #555;
   margin: 0.55em 0 0.8em 60px;
   margin: 0.4em 0 0.6em 60px;       /* REDUCED */
   padding: 0;
   padding: 0; border: none; background: transparent;
  border: none;
  background: transparent;
}
}


/* ── Padya block (bhashyam that is verse — red italic) ──────────*/
/* ── Padya ────────────────────────────────────────────────────── */
.padya-block {
.padya-block {
   display: block;
   display: block; font-size: 1em; line-height: 1.75;
  font-size: 1em;
   color: #c65 !important; font-style: italic; font-weight: 500;
  line-height: 1.85;
   margin: 0.4em 0 0.6em 60px; padding: 0; border: none; background: transparent;
   color: #c65 !important;
  font-style: italic;
  font-weight: 500;
   margin: 0.55em 0 0.8em 60px;
  padding: 0;
  border: none;
  background: transparent;
}
/* ── Prateeka — inline bold (quoted lemma being explained) ──────*/
.gr-prateeka {
  font-weight: bold;
  font-style: normal;
  color: #333;
}
}


/* ── Mulaprateeka block-level centered bold heading ───────────*/
/* ── Prateeka (inline bold lemma) ────────────────────────────── */
.gr-prateeka { font-weight: bold; font-style: normal; color: #333; }
 
/* ── Mulaprateeka (block-level centered bold) ────────────────── */
.gr-mulaprateeka-block {
.gr-mulaprateeka-block {
   display: block;
   display: block; font-weight: bold; font-style: normal;
  font-weight: bold;
   text-align: center; color: #333;
  font-style: normal;
   margin: 0.7em 0 0.3em; line-height: 1.5;
   text-align: center;
  color: #333;
   margin: 1em 0 0.4em;
  line-height: 1.6;
}
}


/* ── Moola inline highlighted source text ─────────────────────*/
/* ── Moola (inline highlighted source text) ──────────────────── */
.gr-moola {
.gr-moola { font-weight: bold; font-style: italic; color: #c65; }
  font-weight: bold;
  font-style: italic;
  color: #c65;
}


/* ── Teeka ────────────────────────────────────────────────────── */
/* NEW — teeka now has a subtle warm background (was unstyled) */
.teeka-block {
.teeka-block {
   border-radius: 8px;
   border-radius: 6px;
   padding: 10px 14px 12px;
   padding: 8px 12px 10px;
   margin: 0.7em 0 0.7em 0;
   margin: 0.5em 0 0.5em 0;
   font-size: 0.93em;
   font-size: 0.93em; line-height: 1.7; /* REDUCED */
  line-height: 1.8;
   color: #555;
   color: #555;
  background: #fffdf5;                  /* NEW */
  border: 1px solid #f0e0b0;            /* NEW */
}
}


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


.teeka-block .shloka-block {
.teeka-block .shloka-block { margin: 0 0 0.5em; text-align: left; }
  margin: 0 0 0.6em;
  text-align: left;
}
 
.teeka-block .shloka-line {
.teeka-block .shloka-line {
   display: block;
   display: block; font-style: italic; color: #be100e;
  font-style: italic;
   line-height: 1.45; font-size: 1em;
  color: #be100e;
   line-height: 1.6;
  font-size: 1em;
}
}


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


.nyaya-block {
/* ── Nyaya ────────────────────────────────────────────────────── */
  margin: 40px 0;
.nyaya-block { margin: 32px 0; padding-top: 12px; border-top: 1px solid #eee; }
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.nyaya-title {
.nyaya-title {
   font-size: 1em;
   font-size: 1em; font-weight: 500; color: #e65100;
  font-weight: 500;
   margin-bottom: 0.4rem; border-bottom: 1px dotted #e65100; width: 50%;
  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-title span { display: block; font-size: 0.85em; color: #666; }
.nyaya-body { color: #555; line-height: 1.85; margin-top: 0.5rem; }
.nyaya-body { color: #555; line-height: 1.75; margin-top: 0.5rem; }


.prasna-block {
/* ── Prasna ───────────────────────────────────────────────────── */
  margin: 40px 0;
.prasna-block { margin: 32px 0; padding-top: 12px; border-top: 1px solid #eee; }
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.prasna-title {
.prasna-title {
   font-size: 1em;
   font-size: 1em; font-weight: 500; color: #e65100;
  font-weight: 500;
   margin-bottom: 0.4rem; border-bottom: 1px dotted #e65100; width: 50%;
  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-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-question, .prasna-answer { color: #555; line-height: 1.75; margin-top: 0.5rem; }
.prasna-answer { margin-left: 60px; }
.prasna-answer { margin-left: 60px; }


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


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


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


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


.mw-collapsible,
.mw-collapsible, .mw-collapsible-content, blockquote, .quotebox {
.mw-collapsible-content,
   background-color: transparent !important; border: none !important;
blockquote,
   font-style: normal !important; padding: 0 !important; margin-left: 0 !important;
.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; }
.cargo-store-only { display: none !important; }


/* ── TOC — inline box ────────────────────────────────────────────*/
/* ── TOC — inline box ─────────────────────────────────────────── */
.toc {
.toc {
   display: block !important;
   display: block !important; background: #fffdf5;
  background: #fffdf5;
   border: 1px solid #e8c88a; border-radius: 8px;
   border: 1px solid #e8c88a;
   padding: 12px 16px; margin: 0 0 24px 0;
  border-radius: 8px;
   width: fit-content; min-width: 220px; max-width: 420px;
   padding: 12px 16px;
   font-size: 0.9em; line-height: 2;
  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;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
}
}
 
.toc h2, .toc .toctitle {
.toc h2,
   font-size: 0.85em !important; font-weight: 600 !important;
.toc .toctitle {
   color: #5a3a00 !important; border: none !important;
   font-size: 0.85em !important;
   border-bottom: none !important; width: auto !important;
  font-weight: 600 !important;
   margin: 0 0 6px !important; text-transform: uppercase; letter-spacing: 0.05em;
   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 ul { margin: 0 !important; padding-left: 1.2em !important; list-style: none !important; }
.toc li { margin: 0; padding: 0; }
.toc li { margin: 0; padding: 0; }
 
.toc a { color: #7a4a10 !important; text-decoration: none !important; }
.toc a {
  color: #7a4a10 !important;
  text-decoration: none !important;
}
 
.toc a:hover { color: #f57c00 !important; }
.toc a:hover { color: #f57c00 !important; }
.toc .toclevel-1 > a { font-weight: 600; color: #5a3a00 !important; }
.toc .toclevel-1 > a { font-weight: 600; color: #5a3a00 !important; }
.toc .toclevel-2 > a { color: #7a4a10 !important; }
.toc .toclevel-2 > a { color: #7a4a10 !important; }
.toc .toclevel-3 > a { color: #9a6020 !important; font-size: 0.95em; }
.toc .toclevel-3 > a { color: #9a6020 !important; font-size: 0.95em; }
.tocnumber { color: #aaa; margin-right: 4px; font-size: 0.85em; }
.tocnumber { color: #aaa; margin-right: 4px; font-size: 0.85em; }


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


/* Adishila only on text, not icons */
.vector-toc .vector-toc-link,
.vector-toc .vector-toc-link,
.vector-toc .vector-toc-text,
.vector-toc .vector-toc-text,
Line 440: Line 310:


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


/* TOC list item — let Vector's default block layout handle rows.
  We only need the toggle to sit inline with the link, which Vector
  already does via its own flex. We avoid overriding display/flex-wrap
  here because that was collapsing link text to single characters. */
/* Toggle button — fixed px size, immune to parent font-size: 1.1em */
.vector-toc .cdx-button.vector-toc-toggle {
.vector-toc .cdx-button.vector-toc-toggle {
   background: none !important;
   background: none !important; border: none !important;
  border: none !important;
   box-shadow: none !important; outline: none !important;
   box-shadow: none !important;
   padding: 0 !important; margin: 0 !important;
  outline: none !important;
   min-width: 0 !important; min-height: 0 !important;
   padding: 0 !important;
   width: 24px !important; height: 24px !important;
  margin: 0 !important;
   cursor: pointer !important; opacity: 0.5;
   min-width: 0 !important;
   display: inline-flex !important; align-items: center !important;
  min-height: 0 !important;
   justify-content: center !important; vertical-align: middle !important;
   width: 24px !important;
  height: 24px !important;
   cursor: pointer !important;
  opacity: 0.5;
   display: inline-flex !important;
  align-items: center !important;
   justify-content: center !important;
  vertical-align: middle !important;
}
}


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


/* Active highlight */
/* ── TOC ACTIVE ITEM — fixed for Vector 2022 + Common.js span wrapping ─
.vector-toc li.vector-toc-list-item-active > a,
*
.vector-toc li.vector-toc-list-item-active > .vector-toc-link,
* Common.js wraps every text node (including TOC link text) inside a
* <span data-deva="…"> for transliteration. This means the direct >a
* child selector fails — we need descendant selectors that reach into
* the link regardless of span nesting.
*
* We also target BOTH the <a> element AND any [data-deva] span inside
* it to ensure the colour propagates regardless of how deep the span is.
* ──────────────────────────────────────────────────────────────────── */
.vector-toc .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 {
.vector-toc .vector-toc-list-item-active .vector-toc-link *,
.vector-toc .vector-toc-list-item-active > a,
.vector-toc .vector-toc-list-item-active > a *,
.vector-toc .vector-toc-level-1-active .vector-toc-link,
.vector-toc .vector-toc-level-1-active .vector-toc-link * {
   color: #f57c00 !important;
   color: #f57c00 !important;
   font-weight: 700 !important;
   font-weight: 700 !important;
}
}


.vector-toc .vector-toc-level-1 > .vector-toc-link {
.vector-toc .vector-toc-level-1 > .vector-toc-link,
   font-weight: 600 !important;
.vector-toc .vector-toc-level-1 > .vector-toc-link * {
  color: #3a1f00 !important;
   font-weight: 600 !important; color: #3a1f00 !important;
}
}
 
.vector-toc .vector-toc-level-2 > .vector-toc-link,
.vector-toc .vector-toc-level-2 > .vector-toc-link {
.vector-toc .vector-toc-level-2 > .vector-toc-link * { color: #5a3a00 !important; }
   color: #5a3a00 !important;
.vector-toc .vector-toc-level-3 > .vector-toc-link,
.vector-toc .vector-toc-level-3 > .vector-toc-link * {
   color: #7a5010 !important; font-size: 0.95em !important;
}
}
 
/* Override for active: must come AFTER level rules */
.vector-toc .vector-toc-level-3 > .vector-toc-link {
.vector-toc .vector-toc-list-item-active .vector-toc-level-1 > .vector-toc-link,
   color: #7a5010 !important;
.vector-toc .vector-toc-list-item-active .vector-toc-level-2 > .vector-toc-link,
  font-size: 0.95em !important;
.vector-toc .vector-toc-list-item-active .vector-toc-level-3 > .vector-toc-link {
   color: #f57c00 !important; font-weight: 700 !important;
}
}


/* Let Vector control .vector-toc-link height/display — we don't override it. */
/* ── Doc teekas ───────────────────────────────────────────────── */
 
.gr-doc-teekas { margin-bottom: 1em; }
.gr-doc-teekas { margin-bottom: 1em; }
.gr-doc-teekas + p:empty { display: none !important; margin: 0 !important; height: 0 !important; }


/* ── Main page ───────────────────────────────────────────────────*/
/* ── Main page ────────────────────────────────────────────────── */
.gr-home {
.gr-home { max-width: 1080px; margin: 0 auto; padding: 0; }
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}
 
.gr-home-page-title {
.gr-home-page-title {
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   text-align: center;
   text-align: center; font-size: 1.8em; font-weight: 500;
  font-size: 1.8em;
   color: #1a2e40; margin: 24px 0 32px;
  font-weight: 500;
   color: #1a2e40;
  margin: 24px 0 32px;
}
}
 
.gr-home-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.gr-home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}
 
.gr-home-card {
.gr-home-card {
   background: #fff;
   background: #fff; border: 1px solid #e8e4df; border-radius: 10px;
  border: 1px solid #e8e4df;
  border-radius: 10px;
   box-shadow: 0 2px 8px rgba(0,0,0,0.07);
   box-shadow: 0 2px 8px rgba(0,0,0,0.07);
   padding: 18px 20px 20px;
   padding: 18px 20px 20px; flex: 1 1 280px; min-width: 240px; max-width: 360px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 360px;
}
}
.gr-home-card-title {
.gr-home-card-title {
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   font-size: 1em;
   font-size: 1em; font-weight: 600; color: #1a2e40;
  font-weight: 600;
   text-align: center; padding-bottom: 10px; margin-bottom: 12px;
  color: #1a2e40;
   text-align: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
   border-bottom: 1.5px solid #c0392b;
   border-bottom: 1.5px solid #c0392b;
}
}
 
.gr-home-card ol { margin: 0; padding-left: 1.4em; list-style: decimal; }
.gr-home-card ol {
.gr-home-card li { font-size: 0.95em; line-height: 1.85; color: #333; }
  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 { color: #c0392b; text-decoration: none; }
.gr-home-card li a:hover { text-decoration: underline; }
.gr-home-card li a:hover { text-decoration: underline; }
.gr-home-card li a.new { color: #c08080; }
.gr-home-card li a.new { color: #c08080; }
.gr-home-note { font-size: 0.82em; color: #888; }
.gr-home-note { font-size: 0.82em; color: #888; }
.gr-home-group-label {
.gr-home-group-label {
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   font-size: 1.1em;
   font-size: 1.1em; font-weight: 600; color: #1a2e40;
  font-weight: 600;
   text-align: center; margin: 36px 0 16px; padding-bottom: 8px;
  color: #1a2e40;
   text-align: center;
  margin: 36px 0 16px;
  padding-bottom: 8px;
   border-bottom: 2px solid #c0392b;
   border-bottom: 2px solid #c0392b;
}
}


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


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


 
/* ── Main page view toggle ────────────────────────────────────── */
/* ── Main page view toggle ───────────────────────────────────*/
.gr-home-toggle { display: flex; gap: 8px; margin: 0 0 24px; justify-content: center; }
.gr-home-toggle {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  justify-content: center;
}
 
.gr-toggle-btn {
.gr-toggle-btn {
   font-family: 'Adishila', 'Noto Serif Devanagari', serif;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif;
   font-size: 0.88em;
   font-size: 0.88em; padding: 6px 20px;
  padding: 6px 20px;
   border: 1.5px solid #c0392b; border-radius: 20px;
   border: 1.5px solid #c0392b;
   background: transparent; color: #c0392b;
  border-radius: 20px;
   cursor: pointer; user-select: none; transition: background 0.15s, color 0.15s;
   background: transparent;
  color: #c0392b;
   cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
}
.gr-toggle-btn:hover { background: #fdf0ed; }
.gr-toggle-btn.gr-toggle-active { background: #c0392b; color: #fff; }


.gr-toggle-btn:hover {
/* ── Script switcher bar ──────────────────────────────────────── */
   background: #fdf0ed;
.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-toggle-btn.gr-toggle-active {
.gr-script-btn {
  background: #c0392b;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif;
  color: #fff;
   color: #c0392b !important; text-decoration: underline dotted !important; cursor: pointer;
}
/* ── 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%; }
}
}
.gr-script-btn.active { color: #888 !important; text-decoration: none !important; cursor: default; }


/* ════════════════════════════════════════════════════════════════
/* ── Vector 2022 header ───────────────────────────────────────── */
  VECTOR 2022 HEADER
  ════════════════════════════════════════════════════════════════*/
.vector-header-container {
.vector-header-container {
   background: #b5451b !important;
   background: #b5451b !important;
Line 663: Line 452:
}
}
.vector-header {
.vector-header {
   background: transparent !important;
   background: transparent !important; max-width: 100% !important;
  max-width: 100% !important;
   display: flex !important; align-items: center !important;
   display: flex !important;
  align-items: center !important;
   justify-content: space-between !important;
   justify-content: space-between !important;
   padding-left: 20px !important;
   padding-left: 20px !important; padding-right: 20px !important;
  padding-right: 20px !important;
}
}
.vector-header-start {
.vector-header-start {
   flex: 0 0 auto !important;
   flex: 0 0 auto !important; display: flex !important;
  display: flex !important;
   align-items: center !important; gap: 12px;
   align-items: center !important;
  gap: 12px;
}
}
.vector-header-end {
.vector-header-end {
   flex: 0 0 auto !important;
   flex: 0 0 auto !important; display: flex !important;
  display: flex !important;
   align-items: center !important; gap: 16px; margin-left: auto;
   align-items: center !important;
  gap: 16px;
  margin-left: auto;
}
}
.mw-logo { display: flex !important; align-items: center; opacity: 1 !important; }
.mw-logo { display: flex !important; align-items: center; opacity: 1 !important; }
Line 688: Line 469:
.mw-logo-icon { content: url('/favicon.ico'); width: 24px; height: 24px; }
.mw-logo-icon { content: url('/favicon.ico'); width: 24px; height: 24px; }
.vector-header .vector-icon { filter: invert(1); opacity: 0.9; }
.vector-header .vector-icon { filter: invert(1); opacity: 0.9; }
.cdx-search-input .vector-icon,
.cdx-search-input .vector-icon, .cdx-search-input svg, .cdx-search-input path,
.cdx-search-input svg,
.cdx-search-input__end-button .vector-icon, .cdx-search-input__end-button svg,
.cdx-search-input path,
.cdx-search-input__end-button path { filter: none !important; fill: #202124 !important; opacity: 1 !important; }
.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-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; }
.vector-user-links a { color: rgba(255,255,255,0.9) !important; }


/* ── Search ──────────────────────────────────────────────────────*/
#p-search { margin-left: 8px; }
#p-search { margin-left: 8px; }
.vector-search-box,
.vector-search-box, .vector-search-box-expanded, .vector-search-box-auto-expand-width {
.vector-search-box-expanded,
.vector-search-box-auto-expand-width {
   min-width: 0 !important; flex-grow: 0 !important;
   min-width: 0 !important; flex-grow: 0 !important;
   position: relative !important; margin: 0 !important;
   position: relative !important; margin: 0 !important;
}
}
.cdx-search-input__input,
.cdx-search-input__input, .cdx-text-input__input {
.cdx-text-input__input {
   background: #ffffff !important; border: none !important;
   background: #ffffff !important;
   border-radius: 8px !important; color: #202124 !important;
  border: none !important;
   padding: 6px 10px !important; font-family: system-ui, sans-serif !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-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;
}
.cdx-search-input__end-button { background: transparent !important; border: none !important; }
.cdx-search-input__end-button { background: transparent !important; border: none !important; }
.cdx-typeahead-search,
.cdx-typeahead-search, .cdx-typeahead-search__menu, .cdx-menu {
.cdx-typeahead-search__menu,
.cdx-menu {
   background: #ffffff !important; color: #202124 !important;
   background: #ffffff !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--selected { background: #f1f3f4 !important; }
.cdx-menu-item--active,
.cdx-menu-item__icon, .cdx-menu-item__icon svg,
.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; }
.cdx-menu-item__icon path { fill: #202124 !important; filter: none !important; }


/* ── Script switcher bar ─────────────────────────────────────────*/
/* ── Gadya styled as a sub-subheading (NOT adhyaya-title level)
.gr-script-bar {
  *
  margin: 0 0 20px;
  * Previously gadya used adhyaya-title styles which was too prominent.
  font-size: 0.8em;
  * Now it renders as a modest bold sub-heading, similar to h3 but
  color: #888;
  * without the dotted border, clearly below chapter level.
  display: flex;
  * ──────────────────────────────────────────────────────────────── */
  align-items: center;
.gr-gadya,
  gap: 12px;
.verse-line.gr-gadya,
  flex-wrap: wrap;
.gr-verse-text.gr-gadya {
}
  display: block !important;
 
  font-size: 0.96em !important;
.gr-script-label {
  font-weight: 600 !important;
  font-family: system-ui, sans-serif;
  font-style: normal !important;
  color: #aaa;
  color: #555 !important;       /* muted — not as loud as orange heading */
}
  margin: 16px 0 4px !important;
 
  border-bottom: 1px solid #ddd !important;
.gr-script-btn {
  width: 60%;
  font-family: 'Adishila', 'Noto Serif Devanagari', serif;
  line-height: 1.5 !important;
  color: #c0392b !important;
  letter-spacing: 0.01em;
  text-decoration: underline dotted !important;
  cursor: pointer;
}
 
.gr-script-btn.active {
  color: #888 !important;
  text-decoration: none !important;
  cursor: default;
}
/* ═══════════════════════════════════════════════════════════════════════════
  grantha.io MediaWiki:Common.css additions
  Add these rules to your existing MediaWiki:Common.css page.
  ═══════════════════════════════════════════════════════════════════════════ */
/* ── leading-bhashya ────────────────────────────────────────────────────────
  Bridging/introductory prose between adhikaranas (BS.xml) or between
  chapters (Mandu.xml). Rendered as {{Bhashyam}} so it picks up the same
  running-prose styling as regular bhashya — no extra CSS needed beyond what
  .gr-bhashyam already provides.  The class below is available if you ever
  want to visually distinguish these bridge passages.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-leading-bhashya {
    font-style: italic;
    color: #555;
    margin: 0.4em 0 0.6em 0;
}
   
/* ── avataranika ─────────────────────────────────────────────────────────────
  Lead-in / introductory gloss that precedes the main commentary block in
  tika files (pramaanalakshana-tika, tattvasankhyanam-tika, tatvaviveka-tika,
  yamakabharata-tika-yadupatyam). Displayed as a slightly inset italic block
  before the main {{Bhashyam}} / {{Teeka}} bubble.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-avataranika {
    font-style: italic;
    color: #444;
    margin: 0 0 0.5em 0.5em;
    padding-left: 0.6em;
    border-left: 2px solid #c9a96e;
    line-height: 1.7;
}
   
/* ── vyakhya-heading ────────────────────────────────────────────────────────
  Named section headings within a tika (e.g. "प्रथमः भङ्गः", "द्वितीयभङ्गः"
  in bhavadipika, bhavaprakashaha, bhavavivaranam, nyayadeepika).  These are
  rendered as === wiki headings ===, so this rule targets the MW h3 that MW
  generates from them.  If you prefer a custom look, add:
      .gr-vyakhya-heading { … }
  and change the script output from === … === to a <div class="gr-vyakhya-heading">.
  ─────────────────────────────────────────────────────────────────────────── */
/* (wiki h3 styling is sufficient; add overrides here if needed) */
   
/* ── vyakhya-pada ───────────────────────────────────────────────────────────
  Word-by-word (padaccheda / anvaya) analysis block that appears after the
  main commentary in yamakabharata-tika-yadupatyam. Displayed in a smaller
  mono-spaced style to distinguish it from the prose commentary.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-vyakhya-pada {
    font-size: 0.88em;
    color: #555;
    background: #fafafa;
    border: 1px solid #e8e0d0;
    border-radius: 4px;
    padding: 0.5em 0.8em;
    margin: 0.6em 0;
    line-height: 1.6;
    white-space: pre-wrap;
}
/* ── vyakhya-gadya ──────────────────────────────────────────────────────────
  Section-label / heading gadya elements inside vyakhya-descriptors
  (e.g. "मङ्गलाचरणम्", "तत्वसामान्यलक्षणपरीक्षा" in tatvaviveka-tika).
  Displayed as a small, bold, centred Sanskrit heading.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-vyakhya-gadya {
    font-weight: bold;
    font-size: 0.95em;
    text-align: center;
    color: #8b1a1a;
    margin: 1em 0 0.4em 0;
    letter-spacing: 0.03em;
}
/* ── author-note (in vyakhya pages) ────────────────────────────────────────
  Colophon / completion note at end of a tika section
  (e.g. "इति श्रीपद्मनाभतीर्थभट्टारकविरचिता … समाप्ता").
  Displayed centred in a muted italic style.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-author-note {
    font-style: italic;
    color: #666;
    text-align: center;
    font-size: 0.9em;
    margin: 1em 0 0.5em 0;
    border-top: 1px solid #ddd;
    padding-top: 0.5em;
}
/* ═══════════════════════════════════════════════════════════════════════════
  grantha.io — MediaWiki:Common.css additions
  Add these rules to your existing MediaWiki:Common.css page.
  ═══════════════════════════════════════════════════════════════════════════ */
 
/* ── leading-bhashya ────────────────────────────────────────────────────────
  Bridging/introductory prose between adhikaranas (BS.xml) or between
  chapters (Mandu.xml). Rendered as {{Bhashyam}} so it picks up the same
  running-prose styling as regular bhashya — no extra CSS needed beyond what
  .gr-bhashyam already provides.  The class below is available if you ever
  want to visually distinguish these bridge passages.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-leading-bhashya {
    font-style: italic;
    color: #555;
    margin: 0.4em 0 0.6em 0;
}
}


/* ── avataranika ─────────────────────────────────────────────────────────────
/* ── Avataranika ──────────────────────────────────────────────── */
  Lead-in / introductory gloss that precedes the main commentary block in
  tika files (pramaanalakshana-tika, tattvasankhyanam-tika, tatvaviveka-tika,
  yamakabharata-tika-yadupatyam).  Displayed as a slightly inset italic block
  before the main {{Bhashyam}} / {{Teeka}} bubble.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-avataranika {
.gr-avataranika {
    font-style: italic;
  font-style: italic; color: #444;
    color: #444;
  margin: 0 0 0.5em 0.5em; padding-left: 0.6em;
    margin: 0 0 0.5em 0.5em;
  border-left: 2px solid #c9a96e; line-height: 1.6;
    padding-left: 0.6em;
    border-left: 2px solid #c9a96e;
    line-height: 1.7;
}
}


/* ── vyakhya-heading ────────────────────────────────────────────────────────
/* ── Vyakhya-pada ─────────────────────────────────────────────── */
  Named section headings within a tika (e.g. "प्रथमः भङ्गः", "द्वितीयभङ्गः"
  in bhavadipika, bhavaprakashaha, bhavavivaranam, nyayadeepika).  These are
  rendered as === wiki headings ===, so this rule targets the MW h3 that MW
  generates from them.  If you prefer a custom look, add:
      .gr-vyakhya-heading { … }
  and change the script output from === … === to a <div class="gr-vyakhya-heading">.
  ─────────────────────────────────────────────────────────────────────────── */
/* (wiki h3 styling is sufficient; add overrides here if needed) */
 
/* ── vyakhya-pada ───────────────────────────────────────────────────────────
  Word-by-word (padaccheda / anvaya) analysis block that appears after the
  main commentary in yamakabharata-tika-yadupatyam.  Displayed in a smaller
  mono-spaced style to distinguish it from the prose commentary.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-vyakhya-pada {
.gr-vyakhya-pada {
    font-size: 0.88em;
  font-size: 0.88em; color: #555;
    color: #555;
  background: #fafafa; border: 1px solid #e8e0d0;
    background: #fafafa;
  border-radius: 4px; padding: 0.5em 0.8em;
    border: 1px solid #e8e0d0;
  margin: 0.5em 0; line-height: 1.5; white-space: pre-wrap;
    border-radius: 4px;
    padding: 0.5em 0.8em;
    margin: 0.6em 0;
    line-height: 1.6;
    white-space: pre-wrap;
}
}


/* ── vyakhya-gadya ──────────────────────────────────────────────────────────
/* ── Vyakhya-gadya ────────────────────────────────────────────── */
  Section-label / heading gadya elements inside vyakhya-descriptors
  (e.g. "मङ्गलाचरणम्", "तत्वसामान्यलक्षणपरीक्षा" in tatvaviveka-tika).
  Displayed as a small, bold, centred Sanskrit heading.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-vyakhya-gadya {
.gr-vyakhya-gadya {
    font-weight: bold;
  font-weight: bold; font-size: 0.95em; text-align: center;
    font-size: 0.95em;
  color: #8b1a1a; margin: 0.8em 0 0.3em 0; letter-spacing: 0.03em;
    text-align: center;
    color: #8b1a1a;
    margin: 1em 0 0.4em 0;
    letter-spacing: 0.03em;
}
}


/* ── author-note (in vyakhya pages) ────────────────────────────────────────
/* ── Author note ──────────────────────────────────────────────── */
  Colophon / completion note at end of a tika section
  (e.g. "इति श्रीपद्मनाभतीर्थभट्टारकविरचिता … समाप्ता").
  Displayed centred in a muted italic style.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-author-note {
.gr-author-note {
    font-style: italic;
  font-style: italic; color: #666; text-align: center;
    color: #666;
  font-size: 0.9em; margin: 0.8em 0 0.4em 0;
    text-align: center;
  border-top: 1px solid #ddd; padding-top: 0.4em;
    font-size: 0.9em;
    margin: 1em 0 0.5em 0;
    border-top: 1px solid #ddd;
    padding-top: 0.5em;
}
}


/* ═══════════════════════════════════════════════════════════════════════════
/* ── Leading bhashya ──────────────────────────────────────────── */
  VERSE & GADYA STYLING — matches anandamakaranda.in ref site
.gr-leading-bhashya { font-style: italic; color: #555; margin: 0.4em 0 0.5em 0; }
  Add to MediaWiki:Common.css
  ═══════════════════════════════════════════════════════════════════════════ */


/* ── Verse text (mantra / shloka / sutra) ───────────────────────────────────
/* ── Verse text (general) ─────────────────────────────────────── */
  The ref site renders verse lines in italic red-orange.
.gr-verse-text, .verse-line, .verse-text {
  These classes are output by the {{VerseBlock}} template.
  color: #b5451b; font-style: italic; line-height: 1.5; /* REDUCED */
  ─────────────────────────────────────────────────────────────────────────── */
  display: block; margin: 0.1em 0;
.gr-verse-text,
.verse-line,
.verse-text {
    color: #b5451b;
    font-style: italic;
    line-height: 1.9;
    display: block;
    margin: 0.15em 0;
}
}
/* Mantra type — same red italic, slightly larger */
.gr-verse-type-mantra .gr-verse-text,
.gr-verse-type-mantra .gr-verse-text,
.verse-block[data-type="mantra"] .verse-line {
.verse-block[data-type="mantra"] .verse-line { font-size: 1.05em; }
    font-size: 1.05em;
}
 
/* Sutra type — upright (not italic) red, matches BS sutra display */
.gr-verse-type-sutra .gr-verse-text,
.gr-verse-type-sutra .gr-verse-text,
.verse-block[data-type="sutra"] .verse-line {
.verse-block[data-type="sutra"] .verse-line { font-style: normal; font-weight: 600; color: #b5451b; }
    font-style: normal;
    font-weight: 600;
    color: #b5451b;
}


/* ── Gadya subheadings ──────────────────────────────────────────────────────
/* ── Bhashyam / commentary prose ─────────────────────────────── */
  gadya elements now render as wiki headings (== / ===).
.gr-bhashyam, .commentary-bhashyam {
  These are the section-label headings like "मङ्गलाचरणम्",
  color: #222; font-style: normal; line-height: 1.75; margin: 0.3em 0 0.5em 0;
  "व्याहृत्यर्थः गायत्र्यर्थश्च एक एव" etc.
  MW renders them as h2/h3. Style them to look like the ref site's
  smaller, less prominent subheadings (not full chapter-level h2).
  ─────────────────────────────────────────────────────────────────────────── */
 
/* Gadya inline-blocks (used when gadya appears inside a verse) */
.gr-gadya {
    color: #444;
    font-style: normal;
    font-weight: 600;
    font-size: 0.88em;
    display: block;
    margin: 0.8em 0 0.3em 1em;
    border: none;
    background: transparent;
}
}


/* ── Verse block container ──────────────────────────────────────────────────
/* ── Padapatha ────────────────────────────────────────────────── */
  Spacing between verse blocks and commentary.
.gr-padapatha { font-size: 0.9em; color: #555; margin: 0.2em 0 0.3em 0.8em; font-style: normal; }
  ─────────────────────────────────────────────────────────────────────────── */
.verse-block,
.gr-verse-block {
    margin: 0.8em 0 0.5em 0;
    padding: 0;
}


/* ── Bhashyam prose (running commentary) ───────────────────────────────────
/* ── Devatachandas / vargikarana ─────────────────────────────── */
  Plain body text, normal weight/color. Already covered by readerToolbar.js
.gr-devatachandas { font-size: 0.82em; color: #777; font-style: normal; margin: 0.4em 0 0.2em 0; }
  injected styles, but adding here for MW template direct rendering.
.gr-vargikarana  { font-size: 0.82em; color: #888; font-style: normal; margin: 0.5em 0 0.1em 0; }
  ─────────────────────────────────────────────────────────────────────────── */
.gr-bhashyam,
.commentary-bhashyam {
    color: #222;
    font-style: normal;
    line-height: 1.85;
    margin: 0.4em 0 0.7em 0;
}


/* ── Padapatha (word-split analysis) ───────────────────────────────────────
/* ── Uvaaca ───────────────────────────────────────────────────── */
  Shown in normal weight, slightly smaller, indented.
.gr-uvaaca, .uvaaca {
  ─────────────────────────────────────────────────────────────────────────── */
  color: #b5451b; font-weight: 600; font-size: 0.92em;
.gr-padapatha {
  margin: 0.5em 0 0.2em 0; display: block;
    font-size: 0.9em;
    color: #555;
    margin: 0.2em 0 0.4em 0.8em;
    font-style: normal;
}
}


/* ── Devatachandas (metre / deity annotation) ───────────────────────────────
/* ── Responsive ───────────────────────────────────────────────── */
  Small metadata line before verses in Rigbhashyam sections.
@media (max-width: 600px) {
  ─────────────────────────────────────────────────────────────────────────── */
  .mw-parser-output { font-size: 16px; }
.gr-devatachandas {
  .mw-parser-output h2, .mw-parser-output .mw-heading2 h2 { width: 100% !important; }
    font-size: 0.82em;
  .mw-parser-output h3, .mw-parser-output .mw-heading3 h3 { width: 100% !important; }
    color: #777;
  .nyaya-title, .prasna-title { width: 100%; }
    font-style: normal;
  .bhashyam-block, .teeka-block { margin-left: 10px; }
    margin: 0.5em 0 0.2em 0;
  .toc { max-width: 100%; }
}
  .gr-gadya { width: 90%; }
 
/* ── Vargikarana (sukta/group metadata) ─────────────────────────────────────
  e.g. "मण्डलम्—१. अध्यायः –१. अनुवाकः–१. सूक्तम्–१."
  ─────────────────────────────────────────────────────────────────────────── */
.gr-vargikarana {
    font-size: 0.82em;
    color: #888;
    font-style: normal;
    margin: 0.6em 0 0.15em 0;
}
 
/* ── Uvaaca (speaker attribution) ──────────────────────────────────────────
  "श्री भगवानुवाच" etc.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-uvaaca,
.uvaaca {
    color: #b5451b;
    font-weight: 600;
    font-size: 0.92em;
    margin: 0.6em 0 0.2em 0;
    display: block;
}
}

Revision as of 07:05, 22 April 2026

/* ═══════════════════════════════════════════════════════════════════
   MediaWiki:Common.css  —  grantha.io  (v6 additions)
   Paste this entire block INTO your existing Common.css, replacing
   or appending as appropriate. Sections marked NEW are net additions.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Fonts ────────────────────────────────────────────────────── */
@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.65;          /* REDUCED from 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;
}

/* ── Chapter / section headings ──────────────────────────────── */
.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: 1.8;
  margin: 24px 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.5;
  margin: 24px 0 8px !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.6rem; }       /* REDUCED */
.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;
}

/* ── Verse blocks — tightened spacing ────────────────────────── */
.shloka-block {
  display: block;
  text-align: left;
  margin: 6px 0 0;            /* REDUCED from 10px */
}

.shloka-line {
  display: block;
  font-style: normal;
  color: #333;
  line-height: 1.45;          /* REDUCED from 1.6 */
  margin: 0;                  /* no extra gap between lines */
}

.verse-block {
  display: block;
  margin: 6px 0 0;            /* REDUCED from 10px */
  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.45;          /* REDUCED */
  margin: 0;
}

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

/* ── Uvacha ───────────────────────────────────────────────────── */
.uvacha-block {
  display: block;
  font-weight: bold; color: #c65;
  margin: 0.8rem 0 0;         /* REDUCED from 1.2rem */
  padding: 2px 0 2px 12px;
  border-left: 3px solid #c65;
  text-align: left; font-style: normal;
}
.uvacha-block + .verse-block { margin-top: 2px; }

/* ── Bhashyam ─────────────────────────────────────────────────── */
.bhashyam-block {
  display: block;
  font-size: 1em; line-height: 1.75;  /* REDUCED from 1.85 */
  color: #555;
  margin: 0.4em 0 0.6em 60px;        /* REDUCED */
  padding: 0; border: none; background: transparent;
}

/* ── Padya ────────────────────────────────────────────────────── */
.padya-block {
  display: block; font-size: 1em; line-height: 1.75;
  color: #c65 !important; font-style: italic; font-weight: 500;
  margin: 0.4em 0 0.6em 60px; padding: 0; border: none; background: transparent;
}

/* ── Prateeka (inline bold lemma) ────────────────────────────── */
.gr-prateeka { font-weight: bold; font-style: normal; color: #333; }

/* ── Mulaprateeka (block-level centered bold) ────────────────── */
.gr-mulaprateeka-block {
  display: block; font-weight: bold; font-style: normal;
  text-align: center; color: #333;
  margin: 0.7em 0 0.3em; line-height: 1.5;
}

/* ── Moola (inline highlighted source text) ──────────────────── */
.gr-moola { font-weight: bold; font-style: italic; color: #c65; }

/* ── Teeka ────────────────────────────────────────────────────── */
/* NEW — teeka now has a subtle warm background (was unstyled) */
.teeka-block {
  border-radius: 6px;
  padding: 8px 12px 10px;
  margin: 0.5em 0 0.5em 0;
  font-size: 0.93em; line-height: 1.7;  /* REDUCED */
  color: #555;
  background: #fffdf5;                   /* NEW */
  border: 1px solid #f0e0b0;            /* NEW */
}

.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: 5px; padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

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

.teeka-block .shloka-block { margin: 0 0 0.5em; text-align: left; }
.teeka-block .shloka-line {
  display: block; font-style: italic; color: #be100e;
  line-height: 1.45; font-size: 1em;
}

/* ── Adhyaya block ────────────────────────────────────────────── */
.adhyaya-block { margin: 0 0 4px; }
.adhyaya-trans { font-size: 0.9em; color: #666; margin: 2px 0 0; }
.adhyaya-intro { margin-top: 8px; line-height: 1.75; color: #555; }

/* ── Nyaya ────────────────────────────────────────────────────── */
.nyaya-block { margin: 32px 0; padding-top: 12px; 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.75; margin-top: 0.5rem; }

/* ── Prasna ───────────────────────────────────────────────────── */
.prasna-block { margin: 32px 0; padding-top: 12px; 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.75; margin-top: 0.5rem; }
.prasna-answer { margin-left: 60px; }

/* ── Verse action buttons ─────────────────────────────────────── */
.verse-actions {
  display: flex; flex-direction: row;
  align-items: center; gap: 6px; margin-top: 4px;
  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);
}

/* ── Code / pre ───────────────────────────────────────────────── */
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.65;
}

.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 sidebar TOC ──────────────────────────────────── */
.vector-toc {
  font-size: 1.1em !important;
  line-height: 1.9 !important;   /* REDUCED from 2 */
}

.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;
}

.vector-toc .cdx-button.vector-toc-toggle {
  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: 24px !important; height: 24px !important;
  cursor: pointer !important; opacity: 0.5;
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important; vertical-align: middle !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; }

/* ── TOC ACTIVE ITEM — fixed for Vector 2022 + Common.js span wrapping ─
 *
 * Common.js wraps every text node (including TOC link text) inside a
 * <span data-deva="…"> for transliteration. This means the direct >a
 * child selector fails — we need descendant selectors that reach into
 * the link regardless of span nesting.
 *
 * We also target BOTH the <a> element AND any [data-deva] span inside
 * it to ensure the colour propagates regardless of how deep the span is.
 * ──────────────────────────────────────────────────────────────────── */
.vector-toc .vector-toc-list-item-active .vector-toc-link,
.vector-toc .vector-toc-list-item-active .vector-toc-link *,
.vector-toc .vector-toc-list-item-active > a,
.vector-toc .vector-toc-list-item-active > a *,
.vector-toc .vector-toc-level-1-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,
.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,
.vector-toc .vector-toc-level-2 > .vector-toc-link * { color: #5a3a00 !important; }
.vector-toc .vector-toc-level-3 > .vector-toc-link,
.vector-toc .vector-toc-level-3 > .vector-toc-link * {
  color: #7a5010 !important; font-size: 0.95em !important;
}
/* Override for active: must come AFTER level rules */
.vector-toc .vector-toc-list-item-active .vector-toc-level-1 > .vector-toc-link,
.vector-toc .vector-toc-list-item-active .vector-toc-level-2 > .vector-toc-link,
.vector-toc .vector-toc-list-item-active .vector-toc-level-3 > .vector-toc-link {
  color: #f57c00 !important; font-weight: 700 !important;
}

/* ── Doc teekas ───────────────────────────────────────────────── */
.gr-doc-teekas { margin-bottom: 1em; }
.gr-doc-teekas + p:empty { display: none !important; margin: 0 !important; height: 0 !important; }

/* ── 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; }

/* ── Main page view toggle ────────────────────────────────────── */
.gr-home-toggle { display: flex; gap: 8px; margin: 0 0 24px; justify-content: center; }
.gr-toggle-btn {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif;
  font-size: 0.88em; padding: 6px 20px;
  border: 1.5px solid #c0392b; border-radius: 20px;
  background: transparent; color: #c0392b;
  cursor: pointer; user-select: none; transition: background 0.15s, color 0.15s;
}
.gr-toggle-btn:hover { background: #fdf0ed; }
.gr-toggle-btn.gr-toggle-active { background: #c0392b; color: #fff; }

/* ── 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; }

/* ── 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; }

#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; }

/* ── Gadya — styled as a sub-subheading (NOT adhyaya-title level) ─
 *
 * Previously gadya used adhyaya-title styles which was too prominent.
 * Now it renders as a modest bold sub-heading, similar to h3 but
 * without the dotted border, clearly below chapter level.
 * ──────────────────────────────────────────────────────────────── */
.gr-gadya,
.verse-line.gr-gadya,
.gr-verse-text.gr-gadya {
  display: block !important;
  font-size: 0.96em !important;
  font-weight: 600 !important;
  font-style: normal !important;
  color: #555 !important;        /* muted — not as loud as orange heading */
  margin: 16px 0 4px !important;
  border-bottom: 1px solid #ddd !important;
  width: 60%;
  line-height: 1.5 !important;
  letter-spacing: 0.01em;
}

/* ── Avataranika ──────────────────────────────────────────────── */
.gr-avataranika {
  font-style: italic; color: #444;
  margin: 0 0 0.5em 0.5em; padding-left: 0.6em;
  border-left: 2px solid #c9a96e; line-height: 1.6;
}

/* ── Vyakhya-pada ─────────────────────────────────────────────── */
.gr-vyakhya-pada {
  font-size: 0.88em; color: #555;
  background: #fafafa; border: 1px solid #e8e0d0;
  border-radius: 4px; padding: 0.5em 0.8em;
  margin: 0.5em 0; line-height: 1.5; white-space: pre-wrap;
}

/* ── Vyakhya-gadya ────────────────────────────────────────────── */
.gr-vyakhya-gadya {
  font-weight: bold; font-size: 0.95em; text-align: center;
  color: #8b1a1a; margin: 0.8em 0 0.3em 0; letter-spacing: 0.03em;
}

/* ── Author note ──────────────────────────────────────────────── */
.gr-author-note {
  font-style: italic; color: #666; text-align: center;
  font-size: 0.9em; margin: 0.8em 0 0.4em 0;
  border-top: 1px solid #ddd; padding-top: 0.4em;
}

/* ── Leading bhashya ──────────────────────────────────────────── */
.gr-leading-bhashya { font-style: italic; color: #555; margin: 0.4em 0 0.5em 0; }

/* ── Verse text (general) ─────────────────────────────────────── */
.gr-verse-text, .verse-line, .verse-text {
  color: #b5451b; font-style: italic; line-height: 1.5;  /* REDUCED */
  display: block; margin: 0.1em 0;
}
.gr-verse-type-mantra .gr-verse-text,
.verse-block[data-type="mantra"] .verse-line { font-size: 1.05em; }
.gr-verse-type-sutra .gr-verse-text,
.verse-block[data-type="sutra"] .verse-line { font-style: normal; font-weight: 600; color: #b5451b; }

/* ── Bhashyam / commentary prose ─────────────────────────────── */
.gr-bhashyam, .commentary-bhashyam {
  color: #222; font-style: normal; line-height: 1.75; margin: 0.3em 0 0.5em 0;
}

/* ── Padapatha ────────────────────────────────────────────────── */
.gr-padapatha { font-size: 0.9em; color: #555; margin: 0.2em 0 0.3em 0.8em; font-style: normal; }

/* ── Devatachandas / vargikarana ─────────────────────────────── */
.gr-devatachandas { font-size: 0.82em; color: #777; font-style: normal; margin: 0.4em 0 0.2em 0; }
.gr-vargikarana   { font-size: 0.82em; color: #888; font-style: normal; margin: 0.5em 0 0.1em 0; }

/* ── Uvaaca ───────────────────────────────────────────────────── */
.gr-uvaaca, .uvaaca {
  color: #b5451b; font-weight: 600; font-size: 0.92em;
  margin: 0.5em 0 0.2em 0; display: block;
}

/* ── 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%; }
  .gr-gadya { width: 90%; }
}