MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ═══════════════════════════════════════════════════════════════════
MediaWiki:Common.css — grantha.io (v7 — complete replacement)
Replace your entire Common.css with this file.
═══════════════════════════════════════════════════════════════════ */
/* ── 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;
}
@font-face {
font-family: "AdishilaVedic";
src: url("/resources/fonts/adishila/AdishilaVedic.ttf") format("truetype");
font-weight: normal; font-style: normal;
}
/* ── CSS custom properties ──────────────────────────────────────── */
:root {
--gr-maroon: #800000;
--gr-orange: #f57c00;
--gr-black: #222222;
--gr-red: #be100e;
--gr-i2mm: 20px;
--gr-i5mm: 20px;
--gr-i7mm: 24px;
--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;
}
/* ── Global parser output ───────────────────────────────────────── */
.mw-parser-output,
.mw-parser-output * {
font-family: var(--gr-font) !important;
}
.mw-parser-output {
font-size: 20px;
line-height: 1.7;
color: var(--gr-black);
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 p { margin: 0 0 0.4em; }
.mw-parser-output p:empty { display: none !important; margin: 0 !important; }
.mw-heading .mw-editsection { display: none !important; }
/* ── Document title ─────────────────────────────────────────────── */
.gr-doc-title {
font-size: 22px !important; font-weight: 500 !important;
color: var(--gr-maroon) !important;
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] {
border-bottom: 1px dotted var(--gr-maroon) !important;
padding-bottom: 8px !important; margin-bottom: 20px !important;
}
/* ── Chapter headings (== h2 ==) ────────────────────────────────── */
.mw-parser-output h1.chapter-heading,
.mw-parser-output .chapter-heading {
font-size: 20px !important; font-weight: 600 !important;
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,
.mw-parser-output .mw-heading2 h2 {
font-size: 18px !important; font-weight: 600 !important;
color: var(--gr-maroon) !important;
text-align: center !important;
border: none !important; border-bottom: 2px dotted var(--gr-maroon) !important;
margin: 28px auto 8px !important; padding: 0 !important; width: 80%; line-height: 1.6;
}
/* Section headings (=== h3 ===) */
.mw-parser-output h3.adhikarana-heading,
.mw-parser-output .adhikarana-heading,
.mw-parser-output h3,
.mw-parser-output .mw-heading3 h3 {
font-size: 16px !important; font-weight: 600 !important;
color: var(--gr-orange) !important;
text-align: center !important;
border: none !important; border-bottom: 1px dotted var(--gr-orange) !important;
margin: 22px auto 6px !important; padding: 0 !important; width: 70%; line-height: 1.5;
}
/* Sub-headings (h4) */
.gr-section-head, .gr-gadya-head,
h4.gr-section-head, h4.gr-gadya-head {
font-size: 15px !important; font-weight: 600 !important;
color: var(--gr-orange) !important;
text-align: center !important;
margin: 16px 0 6px !important; padding: 0 !important; border: none !important;
}
/* Adhyaya block (section label below heading) */
.adhyaya-block { margin: 2px 0 6px; }
.adhyaya-trans { font-size: 0.88em; 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;
font-size: 18px; font-weight: 600; font-style: normal;
color: var(--gr-orange);
padding-left: var(--gr-i5mm); line-height: 1.6; margin: 0;
}
/* Sutra type */
.mw-parser-output .verse[type="sutra"] .shloka-line {
color: var(--gr-maroon) !important; font-style: normal !important;
}
/* Mantra/Vedic type */
.mw-parser-output .verse[type="mantra"] .shloka-line,
.mw-parser-output .verse[type="sutramantra"] .shloka-line {
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 {
color: var(--gr-orange) !important; font-style: italic;
}
/* ── Introduction (XSL: div.introduction) ──────────────────────── */
.mw-parser-output .introduction {
font-size: 16px; color: var(--gr-black);
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; }
/* ── Bhashya prose (XSL: div.bhashya) ──────────────────────────── */
.mw-parser-output .bhashya {
font-size: 16px; 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; }
.mw-parser-output .bhashya.footnote {
font-size: 0.88em; padding-left: 40px; padding-top: 10px; padding-bottom: 10px;
border-top: 1px solid #007bff; border-bottom: 1px solid #007bff;
text-indent: 0;
}
/* ── Leading bhashya (XSL: div.leading-bhashya) ────────────────── */
.mw-parser-output .leading-bhashya {
font-style: italic; color: var(--gr-black);
margin: 0.5em 0 0.4em; line-height: 1.6; font-size: 16px;
}
/* ── Inline para run ────────────────────────────────────────────── */
.mw-parser-output .gr-inlinepara-run {
font-size: 16px; color: var(--gr-black);
text-align: justify; line-height: 1.7; margin: 0.2em 0;
}
/* ── Pramana (XSL: div.pramana > div.padya / div.gadya) ─────────── */
.mw-parser-output .pramana {
font-style: italic; color: var(--gr-red); margin: 0.5em 0;
}
.mw-parser-output .pramana .padya {
margin-bottom: 1.2em; text-align: left;
padding-left: var(--gr-i5mm); line-height: 1.6;
}
.mw-parser-output .pramana .gadya {
margin-bottom: 0.8em; text-align: justify;
text-indent: var(--gr-i7mm); padding-left: var(--gr-i2mm);
}
/* ── Uvaaca (XSL: blockquote.uvaaca) ───────────────────────────── */
.mw-parser-output blockquote.uvaaca,
.mw-parser-output .uvaaca {
color: #BF360C; padding: 8px 40px;
border-left: 3px solid #BF360C; margin: 16px 0 20px;
background-color: #FFF4F3; font-style: normal; font-weight: 500;
font-size: 17px;
}
/* ── Author note ────────────────────────────────────────────────── */
.mw-parser-output .author-note,
.mw-parser-output .gr-author-note {
font-size: 15px !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;
}
/* ── Prateeka inline (XSL: span.prateeka) ───────────────────────── */
.mw-parser-output .prateeka,
.mw-parser-output .gr-prateeka {
font-weight: bold !important; font-style: normal !important;
color: var(--gr-orange) !important; display: inline-block; margin: 0 0.1em;
}
/* Moola inline (XSL: em.Moola) */
.mw-parser-output .Moola,
.mw-parser-output .gr-moola {
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,
.mw-parser-output .gr-mulaprateeka-block {
font-weight: bold !important; font-style: italic !important;
color: var(--gr-maroon) !important; text-align: center !important;
margin: 0.7em 0 0.3em !important; line-height: 1.5; display: block;
}
/* ── Reference / quote links (XSL: a.qt) ───────────────────────── */
.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,
.mw-parser-output .gr-reference:hover { text-decoration: underline dotted !important; }
/* ── Avataranika ────────────────────────────────────────────────── */
.mw-parser-output .avataranika {
font-style: italic; color: #444; margin: 0.3em 0 0.5em 0.5em;
padding-left: 0.6em; border-left: 2px solid #c9a96e; line-height: 1.6;
}
/* ── Gadya topichead (hidden per ref site) ──────────────────────── */
.mw-parser-output h2.topichead { display: none !important; }
/* ── Teeka block (vyakhya embedded commentary) ──────────────────── */
.teeka-block {
border-radius: 5px; padding: 6px 10px 8px; margin: 0.3em 0;
font-size: 0.92em; line-height: 1.65; color: var(--gr-black);
background: #fffdf5; border: 1px solid #f0e0b0;
}
.teeka-title {
font-family: var(--gr-system) !important;
font-size: 0.75em; font-weight: 700; letter-spacing: 0.06em;
text-transform: uppercase; color: #a07040;
margin-bottom: 4px; padding-bottom: 3px; border-bottom: 1px solid #e8d4a0;
}
.teeka-body { font-family: inherit; margin: 0; }
.teeka-body .bhashya,
.teeka-body .introduction {
font-size: 15px !important; text-indent: var(--gr-i7mm); padding-left: var(--gr-i2mm);
}
.teeka-body .shloka-line {
font-size: 15px !important; color: var(--gr-red) !important; font-style: italic;
padding-left: var(--gr-i10mm) !important;
}
/* Moola reference above teeka entries */
.gr-moola-ref {
display: block; margin: 0 0 6px; padding: 4px 0 4px var(--gr-i5mm);
border-left: 3px solid var(--gr-orange);
}
.gr-moola-ref .shloka-line {
font-size: 17px !important; color: var(--gr-orange) !important; padding-left: 0 !important;
}
/* ── Vyakhya descriptor headings ────────────────────────────────── */
.gr-vyakhya-head, .gr-section-head {
font-size: 14px; font-weight: 700; color: #6a3e00;
margin: 0.4em 0 0.2em; border: none; padding: 0; font-family: inherit;
}
/* ── Nyaya / Prasna ─────────────────────────────────────────────── */
.nyaya-block, .prasna-block {
margin: 28px 0; padding-top: 10px; border-top: 1px solid #eee;
}
.nyaya-title, .prasna-title {
font-size: 1em; font-weight: 500; color: #e65100;
margin-bottom: 0.4rem; border-bottom: 1px dotted #e65100; width: 50%;
}
.nyaya-title span, .prasna-title span { display: block; font-size: 0.85em; color: #666; }
.nyaya-body, .prasna-question, .prasna-answer { color: var(--gr-black); line-height: 1.75; }
.prasna-answer { margin-left: 50px; }
/* ── Padapatha / devatachandas / vargikarana ────────────────────── */
.mw-parser-output .padapatha, .mw-parser-output .rgdevatachandas {
font-size: 1.05em; color: #E07C6E; font-weight: 400; margin-top: 8px;
}
.mw-parser-output .rgvargikarana {
font-size: 1.4em; color: #F77628; font-weight: 500; margin-top: 8px; text-align: center;
}
/* ── 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 {
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;
}
.gr-embedded-bhashya { margin: 0.2em 0 0.2em 1em; line-height: 1.6; }
.gr-bhashya-anchor { /* inline anchor, no visual */ }
/* ── TOC (inline box on pages without sidebar) ──────────────────── */
.toc {
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 {
font-size: 0.85em !important; font-weight: 600 !important; color: #5a3a00 !important;
border: none !important; margin: 0 0 6px !important; text-transform: uppercase;
}
.toc ul { margin: 0 !important; padding-left: 1.2em !important; list-style: none !important; }
.toc a { color: #7a4a10 !important; text-decoration: none !important; }
.toc a:hover { color: var(--gr-orange) !important; }
.tocnumber { color: #aaa; margin-right: 4px; font-size: 0.85em; }
/* ── Vector 2022 sidebar TOC ────────────────────────────────────── */
.vector-toc { font-size: 0.93em !important; line-height: 1.55 !important; }
.vector-toc .vector-toc-title {
font-size: 0.72em !important; font-weight: 700 !important;
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 {
background: none !important; border: none !important; box-shadow: none !important;
color: #9a6030 !important; opacity: 1 !important; transition: color 0.15s !important;
}
.vector-toc .cdx-button.vector-toc-toggle:hover { color: var(--gr-orange) !important; background: none !important; }
.vector-toc .cdx-button.vector-toc-toggle svg { fill: currentColor !important; }
.vector-toc .vector-toc-numb { display: none !important; }
.vector-toc .vector-toc-text {
white-space: normal !important; word-break: break-word !important;
overflow-wrap: anywhere !important; line-height: 1.35 !important; display: inline !important;
}
.vector-toc a,
.vector-toc .vector-toc-link { color: #5a3a00 !important; text-decoration: none !important; font-weight: 400 !important; }
.vector-toc a:hover,
.vector-toc .vector-toc-link:hover { color: var(--gr-orange) !important; }
/* Active item: only the LEAF active item (no active child below) */
.vector-toc .vector-toc-list-item-active .vector-toc-link,
.vector-toc .vector-toc-list-item-active .vector-toc-link * {
color: var(--gr-orange) !important; font-weight: 700 !important;
}
/* TOC doc-nav (मूल / उल्लेख buttons) */
#gr-toc-doc-nav { font-family: var(--gr-font); }
#gr-toc-doc-nav a:focus { outline: 2px solid var(--gr-orange); outline-offset: 1px; }
/* ── 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) ────────────────────────────────── */
.gr-ullekha-title {
color: var(--gr-maroon) !important; font-size: 20px !important;
border-bottom: 1.5px dotted var(--gr-maroon) !important;
padding-bottom: 6px !important; margin-bottom: 20px !important; text-align: left !important;
}
.gr-ullekha-list { margin: 0.5em 0 1.2em !important; padding-left: 1.6em !important; list-style: decimal !important; }
.gr-ullekha-list li { margin: 0.3em 0; line-height: 1.6; }
.gr-ullekha-ref-link a, .gr-ullekha-list li a {
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; }
.gr-ullekha-highlight { background: #fff176 !important; border-radius: 2px; padding: 0 2px; }
/* ── Teeka view modes ───────────────────────────────────────────── */
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 + 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 { 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,.07); padding: 18px 20px 20px; flex: 1 1 280px; min-width: 240px; max-width: 360px; }
.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; }
.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-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-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:hover { background: #fdf0ed; }
.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 ────────────────────────────────────────── */
.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-btn { 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: #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; }
.gm-title { font-weight: bold; margin-bottom: 10px; }
.gm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
/* ── Code / pre ─────────────────────────────────────────────────── */
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; }
.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; }
.mw-heading .mw-editsection, .adhyaya-block .mw-editsection { display: none !important; }
.cargo-store-only { display: none !important; }
/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
.mw-parser-output { font-size: 16px; }
.mw-parser-output h2 { width: 100% !important; }
.mw-parser-output h3 { width: 100% !important; }
.mw-parser-output .bhashya { text-indent: 12px !important; padding-left: 4px !important; }
.mw-parser-output .shloka-line { padding-left: 8px !important; }
.toc { max-width: 100%; }
}