MediaWiki:Common.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
(85 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* ═══════════════════════════════════════════════════════════════════
/* ═══════════════════════════════════════════════════════════════════
   MediaWiki:Common.css grantha.io  (v7 — complete replacement)
   MediaWiki:Common.css — Anandamakaranda
  Replace your entire Common.css with this file.
  Clean rebuild — works on Vector (desktop) + Minerva (mobile)
   ═══════════════════════════════════════════════════════════════════ */
   ═══════════════════════════════════════════════════════════════════ */


/* ── Fonts ──────────────────────────────────────────────────────── */
/* ── 1. CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --maroon:      #be100e;
  --orange:      #e65100;
  --light-orange: #f57c00;
  --dark-gray:    #555;
  --light-gray:  #eee;
  --muted-gray:  #888;
  --text:        #1a1a1a;
  --brown:        #a07040;
  --light-brown:  #e8d4a0;
}
 
/* ── 2. FONTS ──────────────────────────────────────────────────── */
@font-face {
@font-face {
   font-family: "Adishila";
   font-family: "Adishila";
Line 16: Line 29:
}
}
@font-face {
@font-face {
   font-family: "AdishilaVedic";
   font-family: "AdishilaDev";
   src: url("/resources/fonts/adishila/AdishilaVedic.ttf") format("truetype");
   src: url("/resources/fonts/AdishilaDev.ttf") format("truetype");
  font-weight: normal; font-style: normal;
}
@font-face {
  font-family: "AdishilaDev";
  src: url("/resources/fonts/AdishilaDeBv.ttf") format("truetype");
  font-weight: bold; font-style: normal;
}
@font-face {
  font-family: "AdishilaDevGuru";
  src: url("/resources/fonts/AdishilaDevGuru.ttf") format("truetype");
  font-weight: bold; font-style: normal;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("/resources/fonts/Noto_Sans_Devanagari/NotoSansDevanagari.ttf") format("truetype");
   font-weight: normal; font-style: normal;
   font-weight: normal; font-style: normal;
}
}


/* ── CSS custom properties ──────────────────────────────────────── */
/* ── Icon base ──────────────────────────────────────────────────── */
:root {
.gra-icon {
   --gr-maroon:      #800000;
   display: inline-block;
  --gr-orange:     #f57c00;
   width: 20px;
  --gr-black:      #222222;
   height: 20px;
   --gr-red:         #be100e;
   background-size: contain;
  --gr-i2mm:  20px;
   background-repeat: no-repeat;
   --gr-i5mm: 20px;
   background-position: center;
   --gr-i7mm: 24px;
   flex-shrink: 0;
   --gr-i10mm: 32px;
  --gr-font:    'Adishila', 'Noto Serif Devanagari', serif;
   --gr-vedic:   'AdishilaVedic', 'Adishila', 'Noto Serif Devanagari', serif;
   --gr-system: system-ui, -apple-system, sans-serif;
}
}
/* comment.svg → Feedback (flag/report)  */
.gra-icon-feedback { background-image: url('/images/feedback.svg'); }
/* notes.svg  → Notes                  */
.gra-icon-note    { background-image: url('/images/notes.svg'); }
.gra-icon-bookmark { background-image: url('/images/bookmark.svg'); }
.gra-icon-copy    { background-image: url('/images/copy.svg'); }
.gra-icon-search { background-image: url('/images/search.svg'); }
.gra-icon-dismiss { background-image: url('/images/close.svg'); }
.gra-icon-prev { background-image: url('/images/prev.svg'); }
.gra-icon-next { background-image: url('/images/next.svg'); }


/* ── Global parser output ───────────────────────────────────────── */
#mw-content-text {
.mw-parser-output,
   font-family: 'Adishila';
.mw-parser-output * {
   font-family: var(--gr-font) !important;
}
}
.mw-parser-output {
.mw-parser-output {
   font-size: 20px;
   font-size: 22px;
   line-height: 1.7;
   line-height: 1.7;
   color: var(--gr-black);
   color: #555;
   max-width: 100%; width: 100%;
   max-width: 100%;
   margin: 0; padding: 0; box-sizing: border-box;
  width: 100%;
   margin: 0; padding: 0;
  box-sizing: border-box;
}
}
// Danda marks wrap issue
.mw-parser-output { overflow-wrap: anywhere; }
/* ── 4. HIDE ELEMENTS (both skins) ────────────────────────────── */
/* Page title */
h1.firstHeading, #firstHeading, .mw-page-title-main { display: none !important; }
h1.firstHeading, #firstHeading, .mw-page-title-main { display: none !important; }
.mw-parser-output p { margin: 0 0 0.4em; }
/* Footer */
.mw-parser-output p:empty { display: none !important; margin: 0 !important; }
#footer, .mw-footer, .vector-footer, .vector-footer-container,
.mw-heading .mw-editsection { display: none !important; }
footer, .minerva-footer { display: none !important; }
/* Categories */
.catlinks, #catlinks, .mw-normal-catlinks, .mw-hidden-catlinks { display: none !important; }
/* Edit section links */
.mw-editsection, .mw-editsection-bracket { display: none !important; }
/* Site notice */
#siteNotice { display: none !important; }
/* Watchlist */
li#pt-watchlist, li#pt-watchlist-kbd { display: none !important; }
/* Appearance panel */
#vector-appearance, #vector-appearance-pinned-container,
#vector-appearance-unpinned-container, .mw-portlet-appearance,
#p-appearance, [aria-controls="vector-appearance"] { display: none !important; }
/* Vector hamburger + sidebar */
#mw-sidebar-button, .vector-main-menu, .vector-main-menu-container,
.vector-main-menu-landmark, #vector-main-menu-dropdown { display: none !important; }
/* Vector search box (we use our own) */
#p-search, .vector-search-box, .vector-search-box-vue,
.vector-search-box-collapses { display: none !important; }
/* Vector page toolbar */
.vector-page-toolbar, .vector-page-toolbar-container { display: none !important; }
/* Vector page tools */
.vector-page-tools { display: none !important; }
/* Empty paragraphs */
.mw-parser-output p:empty,
.mw-parser-output > div > p:empty,
.mw-heading + p:empty,
.adhyaya-block + p:empty,
.verse-block + p:empty { display: none !important; margin: 0 !important; }
/* Empty divs */
.adhyaya-block:empty, .mw-parser-output div:empty { display: none !important; }
/* Cargo hidden */
.cargo-store-only { display: none !important; }


/* ── Document title ─────────────────────────────────────────────── */
/* ── 5. VECTOR HEADER (desktop only) ──────────────────────────── */
.gr-doc-title {
.vector-header-container {
   font-size: 22px !important; font-weight: 500 !important;
   background: #b5451b !important;
   color: var(--gr-maroon) !important;
   border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: center !important;
  margin: 0 0 18px !important; border: none !important; line-height: 1.5;
}
}
.gr-doc-title[data-has-moola], .gr-doc-title[data-has-ullekha] {
.vector-header {
   border-bottom: 1px dotted var(--gr-maroon) !important;
   background: transparent !important;
   padding-bottom: 8px !important; margin-bottom: 20px !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 {
/* ── Chapter headings (== h2 ==) ────────────────────────────────── */
   flex: 0 0 auto !important;
.mw-parser-output h1.chapter-heading,
   display: flex !important;
.mw-parser-output .chapter-heading {
   align-items: center !important;
   font-size: 20px !important; font-weight: 600 !important;
   gap: 12px;
   color: var(--gr-maroon) !important;
   text-align: center !important;
   border-bottom: 2px dotted var(--gr-maroon) !important;
  margin: 28px auto 8px !important; padding: 0 !important; width: 80%;
}
}
.mw-parser-output h2,
.vector-header-end {
.mw-parser-output .mw-heading2 h2 {
   flex: 0 0 auto !important;
   font-size: 18px !important; font-weight: 600 !important;
   display: flex !important;
   color: var(--gr-maroon) !important;
   align-items: center !important;
   text-align: center !important;
   gap: 16px;
   border: none !important; border-bottom: 2px dotted var(--gr-maroon) !important;
   margin-left: auto;
   margin: 28px auto 8px !important; padding: 0 !important; width: 80%; line-height: 1.6;
}
}
/* Section headings (=== h3 ===) */
.mw-logo { display: flex !important; align-items: center; opacity: 1 !important; }
.mw-parser-output h3.adhikarana-heading,
.mw-logo-icon { width: 24px; height: 24px; }
.mw-parser-output .adhikarana-heading,
 
.mw-parser-output h3,
/* Site name */
.mw-parser-output .mw-heading3 h3 {
.mw-logo-wordmark {
   font-size: 24px !important; font-weight: 600 !important;
   font-size: 0 !important;
   color: var(--gr-orange) !important;
   white-space: nowrap;
   text-align: center !important;
   display: flex !important;
   border: none !important; border-bottom: 1px dotted var(--gr-orange) !important;
   flex-direction: column !important;
  margin: 22px auto 6px !important; padding: 0 !important; width: 70%; line-height: 1.5;
}
}
/* Sub-headings (h4) */
.mw-logo-wordmark::before {
.gr-section-head, .gr-gadya-head,
  content: 'Anandamakaranda';
h4.gr-section-head, h4.gr-gadya-head {
   font-size: 17px;
   font-size: 24px !important; font-weight: 600 !important;
  font-weight: 700;
   color: var(--gr-orange) !important;
   color: #fff;
   text-align: center !important;
   font-family: system-ui, -apple-system, sans-serif;
   margin: 16px 0 6px !important; padding: 0 !important; border: none !important;
   letter-spacing: -0.01em;
}
}
/* Adhyaya block (section label below heading) */
.mw-logo-wordmark::after {
.adhyaya-block { margin: 2px 0 6px; }
  content: "A Digital Archive of Dvaita Vedanta Literature";
.adhyaya-trans { font-size: 24px; color: #777; margin: 0; display: none; }
 
/* ── Verse block (XSL: div.verse > div.verse-text > div.shloka) ── */
.mw-parser-output .verse { margin: 10px 0 6px; }
.mw-parser-output .verse-text { margin: 0; }
.mw-parser-output .shloka { margin: 0; padding: 0; }
.mw-parser-output .shloka-line {
   display: block;
   display: block;
   font-size: 24px; font-weight: 600; font-style: normal;
   font-size: 11px;
   color: var(--gr-orange);
  font-weight: 400;
   padding-left: var(--gr-i5mm); line-height: 1.6; margin: 0;
   color: rgba(255,255,255,0.85);
   letter-spacing: 0.3px;
  margin-top: 1px;
  font-family: sans-serif;
}
}
/* Sutra type */
 
.mw-parser-output .verse[type="sutra"] .shloka-line {
/* Header right links */
  color: var(--gr-maroon) !important; font-style: normal !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; }
 
/* User icon white */
.vector-user-menu-container .vector-icon svg,
.vector-user-menu-container .vector-icon svg path,
.vector-user-menu-container .vector-icon svg circle {
  fill: #fff !important; stroke: #fff !important;
}
}
/* Mantra/Vedic type */
.vector-user-links .vector-user-menu-chevron .vector-icon svg,
.mw-parser-output .verse[type="mantra"] .shloka-line,
.vector-user-links .vector-user-menu-chevron .vector-icon svg path {
.mw-parser-output .verse[type="sutramantra"] .shloka-line {
   fill: rgba(255,255,255,0.9) !important;
  font-family: var(--gr-vedic) !important;
   color: var(--gr-maroon) !important; font-weight: 700 !important;
}
}
/* Shloka (verse) type */
 
.mw-parser-output .verse[type="shloka"] .shloka-line {
/* User dropdown — dark text on white card */
   color: var(--gr-orange) !important; font-style: italic;
.vector-user-menu .mw-list-item a,
.vector-user-menu .vector-menu-content-list a,
#p-personal .vector-menu-content a,
.mw-portlet-personal .vector-menu-content a { color: #202122 !important; }
.vector-user-menu .mw-list-item a:hover { color: var(--light-orange) !important; }
 
/* Suppress Vector sticky header clone */
.vector-sticky-header { display: none !important; }
 
/* Suppress body top padding that Vector adds */
.mw-body { margin-top: 0 !important; padding-top: 0 !important; }
 
/* ── 6. VECTOR TOC (desktop sidebar) ──────────────────────────── */
.vector-toc .vector-toc-numb { display: none !important; }
.vector-toc .vector-toc-title {
  font-size: 0.72em !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.08em;
   color: var(--text) !important;
  font-family: 'Adishila', 'Noto Serif Devanagari', system-ui, sans-serif !important;
}
}
 
.vector-toc .vector-toc-text {
/* ── Introduction (XSL: div.introduction) ──────────────────────── */
   white-space: normal !important; word-break: break-word !important;
.mw-parser-output .introduction {
   overflow-wrap: anywhere !important; display: inline !important;
   font-size: 24px; color: var(--gr-black);
   font-family: 'Adishila', 'Noto Serif Devanagari', system-ui, sans-serif !important;
   text-align: justify; text-indent: var(--gr-i7mm);
   padding-left: var(--gr-i2mm); margin: 0.6em 0 0.4em; line-height: 1.7;
}
}
.mw-parser-output .introduction p { display: inline; margin: 0; }
.vector-toc a, .vector-toc .vector-toc-link {
 
   font-size: 1rem !important;
/* ── Bhashya prose (XSL: div.bhashya) ──────────────────────────── */
   font-family: 'Adishila', 'Noto Serif Devanagari', system-ui, sans-serif !important;
.mw-parser-output .bhashya {
   color: var(--text) !important; text-decoration: none !important;
   font-size: 24px; color: var(--gr-black);
   text-align: justify; text-indent: var(--gr-i7mm);
   padding-left: var(--gr-i2mm); margin: 0.2em 0 0.4em; line-height: 1.7;
}
}
.mw-parser-output .bhashya p { display: inline; margin: 0; }
.vector-toc a:hover { color: var(--light-orange) !important; }
.mw-parser-output .bhashya.footnote {
.vector-toc .vector-toc-list-item-active .vector-toc-link,
  font-size: 24px; padding-left: 40px; padding-top: 10px; padding-bottom: 10px;
.vector-toc .vector-toc-list-item-active .vector-toc-link * {
   border-top: 1px solid #007bff; border-bottom: 1px solid #007bff;
   color: var(--light-orange) !important; font-weight: 700 !important;
  text-indent: 0;
}
}
 
.vector-toc .cdx-button.vector-toc-toggle {
/* ── Leading bhashya (XSL: div.leading-bhashya) ────────────────── */
   background: none !important; border: none !important;
.mw-parser-output .leading-bhashya {
  box-shadow: none !important; color: var(--text) !important;
   font-style: italic; color: var(--gr-black);
  margin: 0.5em 0 0.4em; line-height: 1.6; font-size: 24px;
}
}


/* ── Inline para run ────────────────────────────────────────────── */
/* ── 7. HEADINGS ───────────────────────────────────────────────── */
.mw-parser-output .gr-inlinepara-run {
.mw-parser-output h1, .mw-parser-output h2, .mw-parser-output h3, .mw-parser-output h4,
   font-size: 16px; color: var(--gr-black);
.mw-parser-output .mw-heading h1, .mw-parser-output .mw-heading h2,
   text-align: justify; line-height: 1.7; margin: 0.2em 0;
.mw-parser-output .mw-heading h3 {
   font-family: 'Adishila', 'Noto Serif Devanagari', serif;
   border: none !important; padding: 0 !important; background: none !important;
}
}
.mw-parser-output .mw-heading { border: none !important; margin: 0; padding: 0; }


/* ── Pramana (XSL: div.pramana > div.padya / div.gadya) ─────────── */
.mw-heading, .mw-heading2, .mw-heading3 { text-align:center; }
.mw-parser-output .pramana {
.mw-parser-output h2, .mw-parser-output .mw-heading2 h2 {
   font-style: italic; color: var(--gr-red); margin: 0.5em 0;
   font-size: 1.2em !important; font-weight: 500 !important;
  color: var(--maroon) !important; line-height: 1.8;
  margin: 24px 0 4px !important;
  border-bottom: 2px dotted var(--maroon) !important;
  width: 75%; font-family: 'AdishilaDev'; text-align: center;
}
}
.mw-parser-output .pramana .padya {
.mw-parser-output h3, .mw-parser-output .mw-heading3 h3 {
   margin-bottom: 1.2em; text-align: left;
   font-size: 1em !important; font-weight: 500 !important;
   padding-left: var(--gr-i5mm); line-height: 1.6;
   color: var(--orange) !important; line-height: 1.5;
  margin: 24px 0 8px !important;
  border-bottom: 1px dotted var(--orange) !important;
  width: 55%; font-family: 'AdishilaDev'; text-align: center;
}
}
.mw-parser-output .pramana .gadya {
 
   margin-bottom: 0.8em; text-align: justify;
/* ── 8. PARAGRAPHS ─────────────────────────────────────────────── */
  text-indent: var(--gr-i7mm); padding-left: var(--gr-i2mm);
.mw-parser-output p { margin: 0 0 0.35rem !important; }
 
/* ── 9. DOCUMENT TITLE ─────────────────────────────────────────── */
.gr-doc-title {
   font-size: 2em; font-weight: 500; color: var(--maroon);
  line-height: 1.4; margin: 0 0 16px; border: none !important;
  text-align:center; font-family: 'AdishilaDev';
}
}


/* ── Uvaaca (XSL: blockquote.uvaaca) ───────────────────────────── */
/* ── 10. VERSE BLOCKS ──────────────────────────────────────────── */
.mw-parser-output blockquote.uvaaca,
.shloka-block { display: block; text-align: left; margin: 3px 0 0; padding-bottom: 0.5em; }
.mw-parser-output .uvaaca {
.shloka-line { display: block; font-style: normal; color: #333; line-height: 1.35; margin: 0; }
  color: #BF360C; padding: 8px 40px;
.verse-block { display: block; margin: 6px 0 0; text-align: left; }
  border-left: 3px solid #BF360C; margin: 16px 0 20px;
.verse-block .shloka-block { text-align: left; margin: 0; }
   background-color: #FFF4F3; font-style: normal; font-weight: 500;
.verse-block .shloka-line {
  font-size: 24px;
   display: block; font-style: italic; color: #c65;
  font-weight: 500; line-height: 1.35; margin: 0;
}
}
.verse-block + p { display: none !important; margin: 0 !important; }
.mw-parser-output .verse-block,
.mw-parser-output .shloka-block { margin-top: 2px !important; margin-bottom: 2px !important; }


/* ── Author note ────────────────────────────────────────────────── */
.gr-verse-text, .verse-line, .verse-text {
.mw-parser-output .author-note,
   color: #b5451b; font-style: italic; line-height: 1.5; display: block; margin: 0.1em 0;
.mw-parser-output .gr-author-note {
   font-size: 24px !important; font-weight: 700 !important;
  color: var(--gr-maroon) !important;
  text-align: center !important;
  margin: 16px 0 !important; padding: 0 !important;
  border: none !important; background: none !important; line-height: 1.6;
}
}
.gr-verse-type-sutra .gr-verse-text,
.verse-block[data-type="sutra"] .verse-line { font-style: normal; font-weight: 600; color: #b5451b; }


/* ── Prateeka inline (XSL: span.prateeka) ───────────────────────── */
/* ── 11. UVACHA ────────────────────────────────────────────────── */
.mw-parser-output .prateeka,
.uvacha-block {
.mw-parser-output .gr-prateeka {
   display: block; font-weight: bold; color: #c65;
   font-weight: bold !important; font-style: normal !important;
   margin: 0.5rem 0 0; padding: 2px 0 2px 12px;
   color: var(--gr-orange) !important; display: inline-block; margin: 0 0.1em;
  border-left: 3px solid #c65; font-style: normal;
}
}
/* Moola inline (XSL: em.Moola) */
.uvacha-block + .verse-block { margin-top: 2px; }
.mw-parser-output .Moola,
.gr-uvaaca, .uvaaca {
.mw-parser-output .gr-moola {
   color: #b5451b; font-weight: 600; font-size: 0.92em; margin: 0.5em 0 0.2em 0; display: block;
   font-weight: bold !important; font-style: italic !important;
  color: var(--gr-maroon) !important; display: inline-block; margin: 0 0.1em;
}
}
/* Mulaprateeka block */
 
.mw-parser-output .mulaprateeka,
/* ── 12. BHASHYAM ──────────────────────────────────────────────── */
.mw-parser-output .gr-mulaprateeka-block {
.bhashyam-block {
   font-weight: bold !important; font-style: italic !important;
   display: block; font-size: 1em; line-height: 1.6; color: #555;
  color: var(--gr-maroon) !important; text-align: center !important;
   margin: 0.25em 0 0.35em 48px; padding: 0; border: none; background: transparent;
   margin: 0.7em 0 0.3em !important; line-height: 1.5; display: block;
}
}
 
.gr-bhashyam, .commentary-bhashyam {
/* ── Reference / quote links (XSL: a.qt) ───────────────────────── */
   color: #222; font-style: normal; line-height: 1.75; margin: 0.3em 0 0.5em 0;
.mw-parser-output a.qt,
.mw-parser-output .gr-reference {
   color: var(--gr-orange) !important; font-style: italic; text-decoration: none !important;
}
}
.mw-parser-output a.qt:hover,
.gr-leading-bhashya { font-style: italic; color: #555; margin: 0.4em 0 0.5em 0; }
.mw-parser-output .gr-reference:hover { text-decoration: underline dotted !important; }


/* ── Avataranika ────────────────────────────────────────────────── */
/* ── 13. PADYA ─────────────────────────────────────────────────── */
.mw-parser-output .avataranika {
.padya-block {
   font-style: italic; color: #444; margin: 0.3em 0 0.5em 0.5em;
   display: block; font-size: 1em; line-height: 1.75; color: #c65 !important;
   padding-left: 0.6em; border-left: 2px solid #c9a96e; line-height: 1.6;
   font-style: italic; font-weight: 500; margin: 0.4em 0 0.6em 60px;
}
}
.gr-padapatha { font-size: 0.9em; color: #555; margin: 0.2em 0 0.3em 0.8em; }


/* ── Gadya topichead (hidden per ref site) ──────────────────────── */
/* ── 14. TEEKA ─────────────────────────────────────────────────── */
.mw-parser-output h2.topichead { display: none !important; }
 
/* ── Teeka block (vyakhya embedded commentary) ──────────────────── */
.teeka-block {
.teeka-block {
   border-radius: 5px; padding: 6px 10px 8px; margin: 0.3em 0;
   padding: 6px 10px 8px; margin: 0.3em 0; line-height: 1.6; color: #555;
  font-size: 24px; line-height: 1.65; color: var(--gr-black);
  background: #fffdf5; border: 1px solid #f0e0b0;
}
}
.teeka-title {
.teeka-title {
   font-family: var(--gr-system) !important;
   font-family: 'AdishilaDev';, sans-serif !important;
   font-size: 24px; font-weight: 700; letter-spacing: 0.06em;
   font-size: 1.75em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  text-transform: uppercase; color: #a07040;
   margin-bottom: 4px; padding-bottom: 3px;
   margin-bottom: 4px; padding-bottom: 3px; border-bottom: 1px solid #e8d4a0;
}
}
.teeka-body { font-family: inherit; margin: 0; }
.teeka-body .shloka-block {
.teeka-body .bhashya,
   margin: 0.4em 0; padding: 0.3em 0.6em; font-family: 'AdishilaDev';
.teeka-body .introduction {
   font-size: 24px !important; text-indent: var(--gr-i7mm); padding-left: var(--gr-i2mm);
}
.teeka-body .shloka-line {
  font-size: 24px !important; color: var(--gr-red) !important; font-style: italic;
  padding-left: var(--gr-i10mm) !important;
}
}
.teeka-body .shloka-line { font-style: italic; font-size: 0.97em; font-family: 'AdishilaDev'; }


/* Moola reference above teeka entries */
/* ── 15. PRATEEKA / MOOLA ──────────────────────────────────────── */
.gr-moola-ref {
.gr-prateeka { font-weight: bold; font-style: normal; color: #333; }
  display: block; margin: 0 0 6px; padding: 4px 0 4px var(--gr-i5mm);
.gr-mulaprateeka-block {
  border-left: 3px solid var(--gr-orange);
   display: block; font-weight: bold; font-style: normal;
}
  text-align: center; color: #333; margin: 0.7em 0 0.3em; line-height: 1.5;
.gr-moola-ref .shloka-line {
   font-size: 24px !important; color: var(--gr-orange) !important; padding-left: 0 !important;
}
}
.gr-moola { font-weight: bold; font-style: italic; color: #c65; }


/* ── Vyakhya descriptor headings ────────────────────────────────── */
/* ── 16. ADHYAYA ───────────────────────────────────────────────── */
.gr-vyakhya-head, .gr-section-head {
.adhyaya-block { margin: 0 0 4px; }
  font-size: 24px; font-weight: 700; color: #6a3e00;
.adhyaya-trans { font-size: 0.9em; color: #666; margin: 2px 0 0; }
  margin: 0.4em 0 0.2em; border: none; padding: 0; font-family: inherit;
.adhyaya-intro { margin-top: 8px; line-height: 1.75; color: #555; }
}
.introduction p { color: var(--dark-gray); font-weight: 400; margin: 0 !important; padding: 0 !important; }
.introduction { padding-bottom: 0.5em; text-align: justify; }


/* ── Nyaya / Prasna ─────────────────────────────────────────────── */
/* ── 17. NYAYA / PRASNA ────────────────────────────────────────── */
.nyaya-block, .prasna-block {
.nyaya-block { margin: 32px 0; padding-top: 12px; border-top: 1px solid #eee; }
  margin: 28px 0; padding-top: 10px; border-top: 1px solid #eee;
.nyaya-title {
  font-size: 1em; font-weight: 500; color: var(--orange);
  margin-bottom: 0.4rem; border-bottom: 1px dotted var(--orange); width: 50%;
}
}
.nyaya-title, .prasna-title {
.nyaya-body { color: #555; line-height: 1.75; margin-top: 0.5rem; }
   font-size: 1em; font-weight: 500; color: #e65100;
.prasna-block { margin: 32px 0; padding-top: 12px; border-top: 1px solid #eee; }
   margin-bottom: 0.4rem; border-bottom: 1px dotted #e65100; width: 50%;
.prasna-title {
   font-size: 1em; font-weight: 500; color: var(--orange);
   margin-bottom: 0.4rem; border-bottom: 1px dotted var(--orange); width: 50%;
}
}
.nyaya-title span, .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; }
.nyaya-body, .prasna-question, .prasna-answer { color: var(--gr-black); line-height: 1.75; }
.prasna-answer { margin-left: 60px; }
.prasna-answer { margin-left: 50px; }


/* ── Padapatha / devatachandas / vargikarana ────────────────────── */
/* ── 18. VYAKHYA ELEMENTS ──────────────────────────────────────── */
.mw-parser-output .padapatha, .mw-parser-output .rgdevatachandas {
.gr-vyakhya-head, .gr-section-head {
   font-size: 1.05em; color: #E07C6E; font-weight: 400; margin-top: 8px;
   font-size: 0.9em; font-weight: 700; color: #6a3e00;
  margin: 0.35em 0 0.15em; font-family: inherit; border: none; padding: 0;
}
}
.mw-parser-output .rgvargikarana {
.gr-avataranika {
   font-size: 1.4em; color: #F77628; font-weight: 500; margin-top: 8px; text-align: center;
   font-style: italic; color: #444; margin: 0.2em 0 0.5em 0.5em;
  padding-left: 0.6em; border-left: 2px solid #c9a96e; line-height: 1.6;
}
}
/* ── Vyakhya descriptor (level-2 sub-commentary) ───────────────── */
.gr-vyakhya-para { margin: 0 0 0.5em; line-height: 1.65; color: #444; }
.gr-vyakhya-gadya { font-weight: bold; font-size: 0.95em; text-align: center;
  color: #8b1a1a; margin: 0.8em 0 0.3em; letter-spacing: 0.03em; }
.gr-vyakhya-pada {
.gr-vyakhya-pada {
   font-size: 0.88em; color: #555; background: #fafafa;
   font-size: 0.88em; color: #555; background: #fafafa;
Line 298: Line 378:
   margin: 0.5em 0; line-height: 1.5; white-space: pre-wrap;
   margin: 0.5em 0; line-height: 1.5; white-space: pre-wrap;
}
}
.gr-vyakhya-gadya {
  font-weight: bold; font-size: 0.95em; text-align: center;
  color: #8b1a1a; margin: 0.2em 0; line-height: 1.6; letter-spacing: 0.03em;
}
.gr-vyakhya-para { margin: 0 0 0.5em 0; line-height: 1.65; color: #444; }
.gr-embedded-bhashya { margin: 0.2em 0 0.2em 1em; line-height: 1.6; }
.gr-embedded-bhashya { margin: 0.2em 0 0.2em 1em; line-height: 1.6; }
.gr-bhashya-anchor { /* inline anchor, no visual */ }
.gr-gadya {
 
   display: block !important; font-size: 0.96em !important; font-weight: 600 !important;
/* ── TOC (inline box on pages without sidebar) ──────────────────── */
   font-style: normal !important; color: #555 !important; margin: 16px 0 4px !important;
.toc {
   border-bottom: 1px solid #ddd !important; width: 60%; line-height: 1.5 !important;
   display: block !important; background: #fffdf5;
   border: 1px solid #e8c88a; border-radius: 8px;
  padding: 12px 16px; margin: 0 0 24px;
   width: fit-content; min-width: 220px; max-width: 420px;
  font-size: 0.88em; line-height: 2; font-family: var(--gr-font) !important;
}
}
.toc h2, .toc .toctitle {
.gr-author-note {
   font-size: 0.85em !important; font-weight: 600 !important; color: #5a3a00 !important;
   font-style: italic; color: var(--maroon); text-align: center; font-size: 0.9em;
   border: none !important; margin: 0 0 6px !important; text-transform: uppercase;
   margin: 0.8em 0 0.4em 0; border-top: 1px solid #ddd; padding-top: 0.4em; font-family: 'AdishilaDev'
}
}
.toc ul { margin: 0 !important; padding-left: 1.2em !important; list-style: none !important; }
.gr-devatachandas { font-size: 0.82em; color: #777; margin: 0.4em 0 0.2em 0; }
.toc a { color: #7a4a10 !important; text-decoration: none !important; }
.gr-vargikarana  { font-size: 0.82em; color: #888; margin: 0.5em 0 0.1em 0; }
.toc a:hover { color: var(--gr-orange) !important; }
 
.tocnumber { color: #aaa; margin-right: 4px; font-size: 0.85em; }
/* ── 20. BHASHYA COLLECTION ────────────────────────────────────── */
.mw-parser-output .bhashya-collection { margin: 0; padding: 0; }
.mw-parser-output .bhashya + p:empty,
.mw-parser-output .verse + p:empty,
.mw-parser-output .bhashya-collection + p:empty,
.mw-parser-output .pramana + p:empty,
.mw-parser-output .author-note + p:empty { display: none !important; margin: 0 !important; height: 0 !important; }


/* ── Vector 2022 sidebar TOC ────────────────────────────────────── */
/* ── 21. VERSE ACTIONS ─────────────────────────────────────────── */
.vector-toc { font-size: 0.93em !important; line-height: 1.55 !important; }
.verse-actions {
.vector-toc .vector-toc-title {
   display: flex; flex-direction: row; align-items: center;
   font-size: 0.72em !important; font-weight: 700 !important;
   gap: 6px; margin-top: 4px; justify-content: center;
  text-transform: uppercase; letter-spacing: 0.08em;
   color: #b07040 !important; font-family: var(--gr-system) !important; margin-bottom: 2px !important;
}
}
.vector-toc .cdx-button.vector-toc-toggle {
.verse-action-btn {
   background: none !important; border: none !important; box-shadow: none !important;
   display: inline-flex; align-items: center; justify-content: center;
   color: #9a6030 !important; opacity: 1 !important; transition: color 0.15s !important;
   padding: 4px; border-radius: 6px; cursor: pointer; opacity: 0.75; transition: all 0.2s;
}
}
.vector-toc .cdx-button.vector-toc-toggle:hover { color: var(--gr-orange) !important; background: none !important; }
.verse-action-btn:hover { opacity: 1; background-color: rgba(0,0,0,0.05); }
.vector-toc .cdx-button.vector-toc-toggle svg { fill: currentColor !important; }
.icon { display: inline-block; width: 18px; height: 18px; background-repeat: no-repeat; background-position: center; background-size: contain; }
.vector-toc .vector-toc-numb { display: none !important; }
.icon-copy      { background-image: url('/images/copy.svg'); }
.vector-toc .vector-toc-text {
.icon-commentary { background-image: url('/images/commentary.svg'); }
   white-space: normal !important; word-break: break-word !important;
.copy-tooltip {
   overflow-wrap: anywhere !important; line-height: 1.35 !important; display: inline !important;
  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;
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
}
}
.vector-toc a,
.copy-tooltip.copy-tooltip-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.vector-toc .vector-toc-link { color: #5a3a00 !important; text-decoration: none !important; font-weight: 400 !important; }
 
.vector-toc a:hover,
/* ── 22. CODE / PRE ────────────────────────────────────────────── */
.vector-toc .vector-toc-link:hover { color: var(--gr-orange) !important; }
pre, code, .mw-code, tt, kbd {
/* Active item: only the LEAF active item (no active child below) */
  font-family: 'Adishila', 'Noto Serif Devanagari', serif ;
.vector-toc .vector-toc-list-item-active .vector-toc-link,
   background-color: transparent !important; border: none !important; padding: 0.3em 0 !important;
.vector-toc .vector-toc-list-item-active .vector-toc-link * {
   color: var(--gr-orange) !important; font-weight: 700 !important;
}
}
/* TOC doc-nav (मूल / उल्लेख buttons) */
.mw-collapsible, .mw-collapsible-content, blockquote, .quotebox {
#gr-toc-doc-nav { font-family: var(--gr-font); }
  background-color: transparent !important; border: none !important;
#gr-toc-doc-nav a:focus { outline: 2px solid var(--gr-orange); outline-offset: 1px; }
   font-style: normal !important; padding: 0 !important; margin-left: 0 !important;
 
/* ── About / Main_Page: hide sidebar TOC ───────────────────────── */
body.page-My_wiki-About .vector-sidebar,
body.page-My_wiki-About .vector-sticky-pinned-container,
body.page-My_wiki-About #vector-toc-pinned-container { display: none !important; }
 
/* ── Moola page title ───────────────────────────────────────────── */
.gr-doc-title[data-moola="1"] {
   border-bottom: 2px solid var(--gr-orange) !important;
  padding-bottom: 8px !important; margin-bottom: 20px !important;
}
}


/* ── Ullekha (references index) ────────────────────────────────── */
/* ── 23. INLINE TOC BOX (wikitext __TOC__) ─────────────────────── */
.gr-ullekha-title {
.toc {
   color: var(--gr-maroon) !important; font-size: 24px !important;
   display: block !important; background: #fffdf5; border: 1px solid #e8c88a;
   border-bottom: 1.5px dotted var(--gr-maroon) !important;
  border-radius: 8px; padding: 12px 16px; margin: 0 0 24px 0;
   padding-bottom: 6px !important; margin-bottom: 20px !important; text-align: left !important;
   width: fit-content; min-width: 220px; max-width: 420px;
   font-size: 0.9em; line-height: 2;
}
}
.gr-ullekha-list { margin: 0.5em 0 1.2em !important; padding-left: 1.6em !important; list-style: decimal !important; }
.toc h2, .toc .toctitle {
.gr-ullekha-list li { margin: 0.3em 0; line-height: 1.6; }
  font-size: 0.85em !important; font-weight: 600 !important; color: var(--text) !important;
.gr-ullekha-ref-link a, .gr-ullekha-list li a {
  border: none !important; margin: 0 0 6px !important; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gr-orange) !important; font-style: italic; text-decoration: none !important;
}
}
.gr-ullekha-ref-link a:hover, .gr-ullekha-list li a:hover { text-decoration: underline dotted !important; }
.toc ul { margin: 0 !important; padding-left: 1.2em !important; list-style: none !important; }
.gr-ullekha-highlight { background: #fff176 !important; border-radius: 2px; padding: 0 2px; }
.toc li { margin: 0; padding: 0; }
.toc a { color: var(--text) !important; text-decoration: none !important; }
.toc a:hover { color: var(--light-orange) !important; }
.toc .toclevel-1 > a { font-weight: 600; }
.tocnumber { display: none; }


/* ── Teeka view modes ───────────────────────────────────────────── */
/* ── 24. DOC TEEKAS + TOC NAV ──────────────────────────────────── */
body.gr-standalone .gr-page-nav { display: block; }
body.gr-standalone .teeka-block { background: none !important; border: none !important; padding: 0 !important; border-radius: 0 !important; }
body.gr-standalone .teeka-title { display: none !important; }
body.gr-standalone .gr-teeka-entry { border-bottom: 1px solid #f0e8d8; padding-bottom: 0.8em; margin-bottom: 0.8em; }
body.gr-standalone .gr-teeka-entry:last-of-type { border-bottom: none; }
body.gr-ref-mode .teeka-block { background: #fffdf5 !important; border: 1px solid #f0e0b0 !important; padding: 6px 10px 8px !important; border-radius: 5px !important; }
body.gr-ref-mode .teeka-title { display: block !important; }
body.gr-ref-mode .gr-page-nav { display: none; }
.gr-teeka-page .teeka-block { background: #fffdf5; border: 1px solid #f0e0b0; }
 
/* ── Doc teekas list ────────────────────────────────────────────── */
.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; }
.gr-doc-teekas + p:empty { display: none !important; margin: 0 !important; height: 0 !important; }
.toc-main-links { display: flex; gap: 6px; padding: 5px; align-items: center; margin-bottom: 4px; }
.toc-main-link-item {
  font-size: 0.9em; color: var(--text); text-decoration: none; padding: 4px 8px;
  border-radius: 6px; background: rgba(0,0,0,0.05); transition: background 0.15s;
}
.toc-main-link-item:hover { background: rgba(0,0,0,0.10) !important; }
/* ── 25. MAIN PAGE ─────────────────────────────────────────────── */
body.page-Main_Page #mw-panel,
body.page-Main_Page .vector-sidebar-container { display: none !important; }


/* ── Main page ──────────────────────────────────────────────────── */
.gr-home { max-width: 1080px; margin: 0 auto; padding: 0; }
.gr-home { max-width: 1080px; margin: 0 auto; padding: 0; }
.gr-home-page-title { text-align: center; font-size: 1.8em; font-weight: 500; color: #1a2e40; margin: 24px 0 32px; }
.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-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,.07); padding: 18px 20px 20px; flex: 1 1 280px; min-width: 240px; max-width: 360px; }
.gr-home-card {
.gr-home-card-title { font-size: 1em; font-weight: 600; color: #1a2e40; text-align: center; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1.5px solid #c0392b; }
  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 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 { font-size: 0.95em; line-height: 1.85; color: #333; }
Line 400: Line 490:
.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-group-label { font-size: 1.1em; font-weight: 600; color: #1a2e40; text-align: center; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #c0392b; }
.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;
}
 
/* ── 26. TOGGLE BUTTONS ────────────────────────────────────────── */
.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 { 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 {
  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:hover { background: #fdf0ed; }
.gr-toggle-btn.gr-toggle-active { background: #c0392b; color: #fff; }
.gr-toggle-btn.gr-toggle-active { background: #c0392b; color: #fff; }
body.page-Main_Page #mw-panel, body.page-Main_Page .vector-sidebar-container { display: none !important; }
body.page-Main_Page #footer { display: none !important; }


/* ── Script switcher bar ────────────────────────────────────────── */
/* ── 27. SCRIPT 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-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: var(--gr-system); color: #aaa; }
.gr-script-label { font-family: system-ui, sans-serif; color: #aaa; }
.gr-script-btn { color: #c0392b !important; text-decoration: underline dotted !important; cursor: pointer; }
.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; }
.gr-script-btn.active { color: #888 !important; text-decoration: none !important; cursor: default; }


/* ── Vector 2022 header ─────────────────────────────────────────── */
/* ── 28. MODALS ────────────────────────────────────────────────── */
.vector-header-container { background: #b5451b !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
.grantha-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.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: #fff !important; font-weight: 700; font-size: 18px; }
.mw-logo-icon { content: url('/favicon.ico'); width: 24px; height: 24px; }
.vector-header .vector-icon:not(.vector-user-links .vector-icon):not(#vector-user-links-dropdown .vector-icon) { filter: invert(1); opacity: 0.9; }
.vector-user-links .vector-icon, #vector-user-links-dropdown .vector-icon, .vector-user-menu-container .vector-icon { filter: none !important; opacity: 1 !important; }
.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; }
li#pt-watchlist, li#pt-watchlist-kbd { display: none !important; }
#vector-appearance, #vector-appearance-pinned-container, #vector-appearance-unpinned-container, .mw-portlet-appearance, #p-appearance, .vector-appearance-pinnable-element, .vector-page-tools [aria-controls="vector-appearance"], .vector-sticky-header [aria-controls="vector-appearance"] { display: none !important; }
.vector-user-menu .mw-list-item a, .vector-user-menu .vector-menu-content-list a, #p-personal .vector-menu-content a, .mw-portlet-personal .vector-menu-content a, #vector-user-menu-overflow .vector-menu-content a, .vector-user-menu .vector-menu-content a, #pt-userpage, #pt-userpage a, .cdx-menu__listbox .cdx-menu-item__content, .cdx-menu__listbox a { color: #202122 !important; }
.vector-user-menu .mw-list-item a:hover, .vector-user-menu .vector-menu-content-list a:hover, .vector-user-menu .vector-menu-content a:hover, .mw-portlet-personal .vector-menu-content a:hover { color: var(--gr-orange) !important; background: #fdf3ed !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: #fff !important; border: none !important; border-radius: 8px !important; color: #202124 !important; padding: 6px 10px !important; font-family: var(--gr-system) !important; }
.cdx-search-input__input::placeholder, .cdx-text-input__input::placeholder { color: rgba(32,33,36,.5) !important; }
.cdx-search-input__end-button { background: transparent !important; border: none !important; }
.cdx-typeahead-search, .cdx-typeahead-search__menu, .cdx-menu { background: #fff !important; color: #202124 !important; border-radius: 10px !important; box-shadow: 0 6px 24px rgba(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; }
 
/* ── Modals ─────────────────────────────────────────────────────── */
.grantha-modal { position: fixed; inset: 0; background: rgba(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; }
.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; }


/* ── Code / pre ─────────────────────────────────────────────────── */
/* ── 29. LOGIN PAGE ────────────────────────────────────────────── */
pre, code, .mw-code, tt, kbd { font-family: var(--gr-font) !important; background-color: transparent !important; border: none !important; padding: 0.3em 0 !important; line-height: 1.65; }
body.page-Special_UserLogin .vector-search-box,
.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; }
body.page-Special_UserLogin #p-search { display: none !important; }
.mw-heading .mw-editsection, .adhyaya-block .mw-editsection { display: none !important; }
body.page-Special_UserLogin #content { max-width: 420px; margin: 40px auto !important; }
.cargo-store-only { display: none !important; }
 
/* ── 30. SPECIAL PAGES ─────────────────────────────────────────── */
body.ns-special #footer, body.ns-special .mw-footer,
body.ns-special .vector-footer { display: none !important; }
body.ns-special .vector-page-tools { display: none !important; }
 
/* ── 31. MINERVA (mobile) ──────────────────────────────────────── */
.skin-minerva .mw-parser-output {
  font-size: 18px !important;
  line-height: 1.8 !important;
}
.skin-minerva .mw-parser-output h2,
.skin-minerva .mw-parser-output .mw-heading2 h2 {
  width: 100% !important;
}
.skin-minerva .mw-parser-output h3,
.skin-minerva .mw-parser-output .mw-heading3 h3 {
  width: 100% !important;
}
.skin-minerva .bhashyam-block { margin-left: 16px !important; }
.skin-minerva .prasna-answer  { margin-left: 16px !important; }
.skin-minerva .padya-block    { margin-left: 16px !important; }
/* Home grid single column on Minerva */
.skin-minerva .gr-home-grid {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}
.skin-minerva .gr-home-card {
  max-width: 100% !important;
  min-width: unset !important;
  flex: 0 0 auto !important;
  width: 100% !important;
}
/* Hide things that should be hidden on mobile too */
.skin-minerva .catlinks,
.skin-minerva #catlinks { display: none !important; }
.skin-minerva .mw-editsection { display: none !important; }
/* Minerva already has its own TOC — hide our inline .toc */
.skin-minerva .toc { display: none !important; }
/* ReaderToolbar on Minerva */
.skin-minerva #gr-static-bar {
  height: auto !important;
  min-height: 52px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}
.skin-minerva #gr-static-bar::-webkit-scrollbar { display: none !important; }
.skin-minerva .gr-controls .gr-btn {
  height: 44px !important;
  min-width: 44px !important;
  font-size: 14px !important;
}
.skin-minerva .gr-btn-staging { display: none !important; }
.skin-minerva .gr-controls .gr-sep { display: none !important; }
/* Minerva already shows page title — don't double-hide */
.skin-minerva h1.firstHeading { display: block !important; }
 
/* ── 32. PRINT ─────────────────────────────────────────────────── */
@media print {
  #gr-static-bar, .gr-controls, .vector-header-container { display: none !important; }
  .mw-parser-output { font-size: 11pt !important; }
}
 
/* ── 33. TYPOGRAPHY CLASSES ────────────────────────────────────── */
 
/* Heading — center, maroon, AdishilaDevGuru */
.gr-heading {
  display: block;
  text-align: center;
  font-size: 1.09em;
  font-weight: 500;
  color: #be100e;
  font-family: 'AdishilaDevGuru', 'Adishila', 'Noto Serif Devanagari', serif;
  line-height: 1.4;
  margin: 0.45em 0;
}
 
/* Sub-heading — center, orange, AdishilaDevGuru */
.gr-sub-heading {
  display: block;
  text-align: center;
  font-size: 0.73em;
  font-weight: 500;
  color: #e65100;
  font-family: 'AdishilaDevGuru', 'Adishila', 'Noto Serif Devanagari', serif;
  line-height: 1.5;
  margin: 0.5em 0;
}
 
/* Chapter Heading — center, maroon, AdishilaDevGuru */
.gr-chapter-heading {
  display: block;
  text-align: center;
  font-size: 0.82em;
  font-weight: 500;
  color: #be100e;
  font-family: 'AdishilaDevGuru', 'Adishila', 'Noto Serif Devanagari', serif;
  line-height: 1.5;
  margin: 0.5em 0;
}
 
/* M.Veda Shloka — left, bold, maroon, AdishilaVed, 5mm indent */
.gr-mv-shloka {
  display: block;
  text-align: left;
  font-size: 0.82em;
  font-weight: bold;
  color: #be100e;
  font-family: 'AdishilaVed', 'Adishila', 'Noto Serif Devanagari', serif;
  padding-left: 0.86em;
  margin: 0;
  line-height: 1.75;
}
 
/* M.Veda Gadya — justify, bold, maroon, AdishilaVed */
.gr-mv-gadya {
  display: block;
  text-align: justify;
  font-size: 0.82em;
  font-weight: bold;
  color: #be100e;
  font-family: 'AdishilaVed', 'Adishila', 'Noto Serif Devanagari', serif;
  text-indent: 1.18em;
  padding-left: 0.36em;
  margin: 0;
  line-height: 1.75;
}
 
/* M.Shloka — left, bold, orange, AdishilaDev, 5mm indent */
.gr-m-shloka {
  display: block;
  text-align: left;
  font-size: 0.82em;
  font-weight: bold;
  color: #e65100;
  font-family: 'AdishilaDev', 'Adishila', 'Noto Serif Devanagari', serif;
  padding-left: 0.86em;
  margin: 0;
  line-height: 1.75;
}
 
/* B.Shloka / TK.Shloka / TP.Shloka — left, black, AdishilaDev, 10mm indent */
.gr-b-shloka,
.gr-tp-shloka {
  display: block;
  text-align: left;
  font-size: 0.73em;
  font-weight: normal;
  color: #1a1a1a;
  font-family: 'AdishilaDev', 'Adishila', 'Noto Serif Devanagari', serif;
  padding-left: 1.73em;
  margin: 0;
  line-height: 1.75;
}
 
/* Reference — orange, AdishilaDev */
.gr-reference {
  color: #e65100;
  font-family: 'AdishilaDev', 'Adishila', 'Noto Serif Devanagari', serif;
}
 
/* Custom tag span — subtle dashed underline only */
.gr-custom {
  border-bottom: 1px dashed #b5451b;
  padding-bottom: 1px;
}
 
/* ── 34. MINERVA HEADER — orange theme + sticky ────────────────── */
 
/* Kill space above header */
.skin-minerva body { margin-top: 0 !important; padding-top: 0 !important; }
.skin-minerva #mw-mf-viewport,
.skin-minerva #mw-mf-page-center { margin-top: 0 !important; padding-top: 0 !important; }
 
/* Header — orange, sticky */
.skin-minerva header.header-container {
  background: #b5451b !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff;
}
.skin-minerva .minerva-header {
  background: #b5451b !important;
  display: flex !important;
  align-items: center !important;
  min-height: 54px !important;
  padding: 0 12px !important;
  margin: 0 !important;
}
 
.minerva-icon {
filter: brightness(0) saturate(100%) invert(100%) sepia(4%) saturate(1%) hue-rotate(296deg) brightness(104%) contrast(100%);
}
 
/* Site name text */
.skin-minerva .branding-box { background: transparent !important; }
.skin-minerva .branding-box a {
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
}
.skin-minerva .branding-box a span {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  white-space: nowrap !important;
}
 
/* Hamburger + search icons — white */
.skin-minerva .minerva-header label,
.skin-minerva .minerva-header .search-toggle {
  color: #fff !important;
}
.skin-minerva .minerva-header svg path,
.skin-minerva .minerva-header svg rect,
.skin-minerva .minerva-header svg circle {
  fill: #fff !important;
}
.skin-minerva .minerva-header .mw-ui-icon:before {
  color: #fff !important;
  filter: brightness(10) !important;
}
 
/* Reader toolbar below Minerva header */
.skin-minerva #gr-static-bar {
  position: sticky !important;
  top: 54px !important;
  z-index: 100 !important;
}
 
/* ── 35. MINERVA — auto-expand sections ────────────────────────── */
.skin-minerva .collapsible-block,
.skin-minerva .collapsible-heading + .collapsible-block {
  display: block !important;
}
.skin-minerva .mf-section-0,
.skin-minerva .mf-section-1,
.skin-minerva .mf-section-2,
.skin-minerva .mf-section-3,
.skin-minerva .mf-section-4,
.skin-minerva .mf-section-5,
.skin-minerva .mf-section-6,
.skin-minerva .mf-section-7,
.skin-minerva .mf-section-8,
.skin-minerva .mf-section-9 {
  display: block !important;
}
.skin-minerva .section-heading {
  pointer-events: none !important;
}
.skin-minerva .section-heading .indicator {
  display: none !important;
}
/* ── Hide MediaWiki default header user/account controls (desktop) ── */
#pt-userpage-2,
#p-vector-user-menu-userpage,
/* Hide the right-side person-icon dropdown */
#vector-user-links-dropdown,
.vector-user-links-dropdown,
#p-personal-more,
.vector-user-menu,
.mw-portlet-vector-user-menu-overflow,
#pt-watchlist-2, #pt-watchlist {
    display: none !important;
}
/* Hide original userpage text link */
#p-vector-user-menu-userpage { display: none !important; }
 
/* Hide the right-side person-icon user menu dropdown */
#vector-user-links-dropdown { display: none !important; }
 
/* ── Custom username dropdown ── */
#gr-user-dropdown {
    position: relative;
    display: inline-block;
    font-family: system-ui, sans-serif;
}
#gr-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 0.9em;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}
#gr-user-trigger:hover { background: rgba(255,255,255,0.2); }
#gr-user-trigger .gr-caret { font-size: 0.7em; opacity: 0.8; }
 
#gr-user-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e0d8d2;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    padding: 6px;
    z-index: 1000;
    display: none;
}
#gr-user-menu.gr-open { display: block; }
#gr-user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #2c1810;
    text-decoration: none;
    font-size: 0.92em;
    border-radius: 6px;
    white-space: nowrap;
}
#gr-user-menu a:hover { background: #f7f1ed; }
.vector-user-links a {
    color: #1C1A17 !important;
}
.vector-user-links-main  {
display: none !important;
}
.gr-phone-row { margin-bottom: 12px; }
.gr-phone-label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 6px;
}
.gr-phone-inputs {
    display: flex;
    gap: 8px;
    align-items: stretch;
    height: 48px;
    position: relative;
    font-family: "Noto Sans Devanagari", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.gr-phone-country { width: 101px; border-radius: 12px; padding: 12px; gap: 8px; border: 1px solid #CED4DA;}
.gr-phone-national { flex: 1; border-radius: 12px; padding: 12px; border: 1px solid #CED4DA;}
 
/* ── Country trigger button ── */
.gr-country-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 101px;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #CED4DA;
    white-space: nowrap;
    background: #fff;
}
.gr-country-trigger:hover { border-color: #72777d; }
.gr-trigger-flag { font-size: 1.3rem; line-height: 1; }
.gr-trigger-dial { font-size: 0.9rem; color: #54595d; }
.gr-trigger-caret { font-size: 0.7rem; color: #54595d; }
 
/* ── Dropdown ── */
.gr-country-dropdown {
    position: absolute;
    top: calc(100% + 4px); left: 0;
    z-index: 9999;
    width: 280px;
    background: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.gr-country-search {
    width: 100%; box-sizing: border-box;
    padding: 8px 12px;
    border: none; border-bottom: 1px solid #eee;
    font-size: 0.9rem; outline: none;
}
.gr-country-list { max-height: 240px; overflow-y: auto; }
.gr-country-option {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; cursor: pointer; font-size: 0.9rem;
}
.gr-country-option:hover { background: #f8f9fa; }
.gr-country-flag { font-size: 1.2rem; flex-shrink: 0; }
.gr-country-name { flex: 1; color: #202122; }
.gr-country-dial { color: #54595d; font-size: 0.85rem; }


/* ── Responsive ─────────────────────────────────────────────────── */
.gr-phone-national:focus {
@media (max-width: 600px) {
    outline: none; border-color: #4A433A;
  .mw-parser-output { font-size: 16px; }
}
  .mw-parser-output h2 { width: 100% !important; }
/* Search Results Bar styles */
  .mw-parser-output h3 { width: 100% !important; }
.gr-search-hl-mobile {
  .mw-parser-output .bhashya { text-indent: 12px !important; padding-left: 4px !important; }
    position: fixed;
  .mw-parser-output .shloka-line { padding-left: 8px !important; }
    top: 105px;
   .toc { max-width: 100%; }
    left: 0px;
    right: 0px;
    z-index: 10200;
    background: rgb(181, 69, 27);
    color: rgb(255, 255, 255);
    padding: 0px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    font-family: "Noto Sans Devanagari", system-ui, sans-serif;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08) !important;
    height: 52px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08) !important;
    gap: 20px !important;
}
.gr-search-hl-mobile .gr-search-bar-btn {  
  height: 48px;
  width: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
   justify-content: center;
  position: relative;
  transition: background 0.15s;
}
}