Jump to content

MediaWiki:Common.css: Difference between revisions

From Grantha
No edit summary
No edit summary
Tag: Reverted
Line 18: Line 18:
   .mw-parser-output on every page load via applyFontSize().
   .mw-parser-output on every page load via applyFontSize().
   The 20px here is the no-JS fallback only.
   The 20px here is the no-JS fallback only.
  All children use font-size: 1em so they scale with it.
   ────────────────────────────────────────────────────────────────── */
   ────────────────────────────────────────────────────────────────── */
.mw-parser-output {
.mw-parser-output {
Line 39: Line 38:
}
}


/* ── Headings: bold only, no size change ────────────────────────── */
/* ── Headings ───────────────────────────────────────────────────── */
.mw-parser-output h1,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h2,
Line 495: Line 494:
   transform: translateX(-50%) translateY(0);
   transform: translateX(-50%) translateY(0);
}
}
/* Replace default logo with favicon */
.mw-logo-icon {
  content: url('/favicon.ico');
  width: 28px;
  height: 28px;
}
/* ===== Grantha Header (FIXED) ===== */


.vector-header-container {
 
   background: #1a2e40 !important;
/* ════════════════════════════════════════════════════════════════
   border-bottom: 1px solid rgba(255,255,255,0.08);
  Grantha — Wiki chrome styling
  Reskins the existing MediaWiki UI to match Grantha's palette.
  Nothing is hidden — just restyled.
  ════════════════════════════════════════════════════════════════ */
 
/* ── Page background ── */
body {
   background: #f5f4f0 !important;
   font-family: system-ui, -apple-system, sans-serif;
}
}


/* ── Top header bar (Vector 2022) ── */
.mw-header,
.vector-header {
.vector-header {
   background: transparent !important;
   background: #1a2e40 !important;
   max-width: 100% !important;
   border-bottom: none !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) !important;
}
}


/* Left logo */
/* Site name / logo text */
.mw-logo-wordmark {
.mw-wiki-title,
   color: #ffffff !important;
#p-logo a,
   font-weight: 700;
.vector-header .mw-logo {
   font-size: 18px;
   color: #fff !important;
   letter-spacing: -0.01em;
   font-weight: 700 !important;
   font-size: 15px !important;
   opacity: 1 !important;
}
}


/* Icon */
/* Search box */
.mw-logo-icon {
.vector-search-box input,
   content: url('/favicon.ico');
.cdx-text-input__input {
   width: 24px;
   background: rgba(255,255,255,0.1) !important;
   height: 24px;
   border-color: rgba(255,255,255,0.2) !important;
   filter: invert(1);
   color: #fff !important;
   border-radius: 20px !important;
}
}


/* Right side text/icons */
.vector-search-box input::placeholder,
.vector-header-end,
.cdx-text-input__input::placeholder {
.vector-header-end * {
   color: rgba(255,255,255,0.45) !important;
   color: rgba(255,255,255,0.9) !important;
}
}


/* Remove spacing constraint */
.vector-search-box input:focus,
.vector-header-container .vector-header {
.cdx-text-input__input:focus {
   padding-left: 20px !important;
   background: rgba(255,255,255,0.18) !important;
   padding-right: 20px !important;
  border-color: rgba(255,255,255,0.5) !important;
   box-shadow: none !important;
}
}
/* ===== Search box (clean, modern) ===== */


#p-search {
/* User/personal tools in header */
   margin-left: 20px;
.vector-user-links a,
.mw-portlet-personal a,
#pt-login a,
#pt-createaccount a {
   color: rgba(255,255,255,0.8) !important;
  font-size: 13px !important;
}
}


.cdx-search-input__input {
.vector-user-links a:hover,
  background: rgba(255,255,255,0.12) !important;
.mw-portlet-personal a:hover {
  border: 1px solid rgba(255,255,255,0.2) !important;
   color: #fff !important;
   color: #fff !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
}
}


.cdx-search-input__input::placeholder {
/* ── Left sidebar ── */
   color: rgba(255,255,255,0.6);
#mw-panel,
.mw-sidebar,
.vector-sidebar,
.vector-sidebar-container {
   background: #fff !important;
  border-right: 1px solid #e8eaed !important;
}
}


/* Search button */
/* Sidebar headings */
.cdx-search-input__end-button {
.vector-menu-heading,
   background: rgba(255,255,255,0.15) !important;
.mw-portlet-nav-heading,
   color: #fff !important;
#mw-panel .portal h3,
.vector-sidebar .vector-menu-heading {
   font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .09em !important;
   color: #8a9bb0 !important;
  padding: 16px 16px 6px !important;
   border: none !important;
   border: none !important;
  background: none !important;
}
}


/* ===== Icons (user, watchlist etc.) ===== */
/* Sidebar links */
#mw-panel .portal .body a,
.vector-sidebar a,
.mw-portlet-nav a {
  color: #1a2e40 !important;
  font-size: 13px !important;
  padding: 5px 16px !important;
  border-radius: 6px !important;
  display: block !important;
  transition: background .1s !important;
}


.vector-header .vector-icon {
#mw-panel .portal .body a:hover,
   filter: invert(1);
.vector-sidebar a:hover,
   opacity: 0.9;
.mw-portlet-nav a:hover {
   background: #f0f4f8 !important;
  color: #1a2e40 !important;
   text-decoration: none !important;
}
}


/* ===== User name ===== */
/* ── Page action tabs (Edit, History, Talk …) ── */
#p-views ul,
.mw-portlet-views ul,
.vector-page-tools ul {
  background: none !important;
  border: none !important;
  gap: 2px !important;
}


.vector-user-links a {
#p-views li a,
   color: rgba(255,255,255,0.9) !important;
.mw-portlet-views li a,
.vector-page-tools li a,
#ca-edit a, #ca-ve-edit a, #ca-history a, #ca-talk a {
  font-size: 12.5px !important;
   color: #4a5568 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  background: none !important;
  transition: background .12s, border-color .12s !important;
}
}
.vector-header {
 
   display: flex;
#p-views li a:hover,
   align-items: center;
.mw-portlet-views li a:hover,
   justify-content: space-between;
#ca-edit a:hover, #ca-history a:hover {
   background: #f0f4f8 !important;
   border-color: #dde3ea !important;
   color: #1a2e40 !important;
}
}


.vector-header-start {
#p-views li.selected a,
   display: flex;
.mw-portlet-views li.selected a {
   align-items: center;
   background: #1a2e40 !important;
   gap: 14px;
   color: #fff !important;
   border-color: #1a2e40 !important;
}
}


.vector-header-end {
/* ── Footer ── */
   display: flex;
#footer,
   align-items: center;
.mw-footer,
   gap: 12px;
.vector-footer {
   background: #1a2e40 !important;
   border-top: none !important;
  color: rgba(255,255,255,0.5) !important;
   font-size: 12px !important;
  padding: 20px 24px !important;
}
}
.vector-search-box {
 
   max-width: 420px;
#footer a,
.mw-footer a,
.vector-footer a {
   color: rgba(255,255,255,0.65) !important;
}
}
/* ===== Prevent header shifting on search ===== */


.vector-header {
#footer a:hover,
   display: flex !important;
.mw-footer a:hover {
  align-items: center;
   color: #fff !important;
  justify-content: space-between;
}
}


.vector-header-start {
/* ── Site notice ── */
   flex: 0 0 auto !important;
#siteNotice {
   display: flex;
  background: #eef3ff !important;
   align-items: center;
  border: 1px solid #c8d8f5 !important;
  border-radius: 8px !important;
  color: #1a2e40 !important;
   font-size: 13px !important;
   padding: 8px 14px !important;
   margin-bottom: 16px !important;
}
}


.vector-header-end {
/* ── Category links ── */
   flex: 0 0 auto !important;
#catlinks,
   display: flex;
.catlinks {
   align-items: center;
  background: #f8f9fa !important;
  border: 1px solid #e8eaed !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
   color: #6b7a8d !important;
   padding: 8px 14px !important;
   margin-top: 24px !important;
}
}


/* Keep search contained */
#catlinks a,
.vector-search-box {
.catlinks a {
   flex: 0 0 360px !important;
   color: #2a5298 !important;
}
}
/* Keep logo visible ALWAYS */
.mw-logo {
  display: flex !important;
  align-items: center;
  opacity: 1 !important;
  visibility: visible !important;
}
/* ===== Search dropdown (fix visibility) ===== */


.cdx-typeahead-search {
 
   background: #ffffff !important;
/* ════════════════════════════════════════════════════════════════
   color: #202124 !important;
  Grantha — Main Page
   border-radius: 10px;
  ════════════════════════════════════════════════════════════════ */
   box-shadow: 0 6px 24px rgba(0,0,0,0.2);
 
#se-home {
   font-family: system-ui, -apple-system, sans-serif;
   max-width: 680px;
   margin: 0 auto;
   padding: 0 0 48px;
}
}


/* Search results text */
#se-home h2,
.cdx-menu-item {
#se-home .mw-heading {
   color: #202124 !important;
   display: none;
}
}


/* Hover */
.se-hero {
.cdx-menu-item:hover {
   background: linear-gradient(160deg, #f7f4ef 0%, #faf8f3 60%, #eef3f8 100%);
   background: #f1f3f4 !important;
  padding: 44px 28px 36px;
}
  text-align: center;
/* Input text color */
  border-radius: 12px;
.cdx-text-input__input {
  margin-bottom: 32px;
   color: #ffffff !important;
   border: 1px solid #e8e4dc;
}
}


/* When typing */
.se-hero-verse {
.cdx-text-input__input:focus {
   font-size: 14px;
   background: rgba(255,255,255,0.18) !important;
  color: #8a7e6c;
}
  font-style: italic;
/* Disable auto expand behavior */
   line-height: 1.9;
.vector-search-box-auto-expand-width {
  margin-bottom: 18px;
   max-width: 360px !important;
   opacity: .85;
}
body.page-Main_Page #mw-panel,
body.page-Main_Page .vector-sidebar-container {
   display: none !important;
}
}


body.page-Main_Page #footer {
.se-hero-title {
   display: none !important;
   font-size: 30px;
}
   font-weight: 700;
.grantha-new-btn {
   color: #1a2e40;
  background: rgba(255,255,255,0.1);
   letter-spacing: -.01em;
   border: 1px solid rgba(255,255,255,0.3);
   margin-bottom: 6px;
   color: white;
   padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
   margin-right: 10px;
}
}


.grantha-modal {
.se-hero-sub {
   position: fixed;
   font-size: 13px;
  inset: 0;
   color: #8a9bb0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
   justify-content: center;
  z-index: 10000;
}
}


.grantha-modal-box {
.se-section {
   background: white;
   margin-bottom: 32px;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
}
}


.gm-title {
.se-section-label {
   font-weight: bold;
  font-size: 11px;
   font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8a9bb0;
   margin-bottom: 10px;
   margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f3;
}
}


.gm-actions {
.se-doclist {
   display: flex;
   border: 1px solid #e8eaed;
   justify-content: flex-end;
   border-radius: 10px;
  gap: 10px;
   overflow: hidden;
   margin-top: 12px;
}
#se-home {
  max-width: 700px;
  margin: 40px auto;
}
}


.se-docrow {
.se-docrow {
   cursor: pointer;
   display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  transition: background .1s;
}
}


.se-docrow-title {
.se-docrow:last-child {
   text-decoration: none;
   border-bottom: none;
  color: #1a2e40;
}
}


.se-docrow:hover {
.se-docrow:hover {
   background: #f4f7fb;
   background: #f7f9fc;
}
}
/* 🚫 Disable Vector search takeover completely */
 
.vector-search-box-expanded {
.se-docrow--dev {
   position: relative !important;
   background: #f5f8ff;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  max-width: 360px !important;
  margin: 0 !important;
}
}
/* Freeze header layout */
 
.vector-header-container,
.se-docrow--dev:hover {
.vector-header {
   background: #edf2ff;
   display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
}


.vector-header-start {
.se-docrow-num {
   flex: 0 0 auto !important;
   font-size: 12px;
   display: flex !important;
   color: #c8d0da;
   align-items: center !important;
  min-width: 20px;
   gap: 12px;
   flex-shrink: 0;
   font-variant-numeric: tabular-nums;
}
}


.vector-header-end {
.se-docrow-title {
   flex: 0 0 auto !important;
   font-size: 14.5px;
  display: flex !important;
   font-weight: 600;
   align-items: center !important;
   flex: 1;
  gap: 16px;
}
/* 🔥 Override Vector hiding logic */
.mw-logo,
.vector-header-start .mw-logo {
   display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}
/* Keep search ALWAYS in header-end */
.vector-search-box {
  order: 2 !important;
}
}


.vector-header-start {
.se-docrow-title a {
   order: 1 !important;
   color: #1a2e40;
  text-decoration: none;
  display: block;
}
}


.vector-header-end {
.se-docrow-title a:hover {
  order: 3 !important;
   color: #2a5298;
}
/* Dropdown container */
.cdx-typeahead-search {
  background: #ffffff !important;
   color: #202124 !important;
  border-radius: 12px;
  overflow: hidden;
}
}


/* Individual results */
.se-doclist-actions {
.cdx-menu-item {
   margin-top: 14px;
   color: #202124 !important;
  padding: 10px 14px;
}
}


/* Hover */
.se-newdoc-trigger {
.cdx-menu-item:hover {
   display: inline-flex;
   background: #f1f3f4 !important;
  align-items: center;
}
  gap: 7px;
/* Input box */
  font-size: 13px;
.cdx-text-input__input {
   font-weight: 600;
   background: rgba(255,255,255,0.12) !important;
   color: #1a2e40;
   color: #ffffff !important;
  padding: 8px 20px;
   border-radius: 6px;
   border-radius: 20px;
   padding: 6px 10px;
   border: 1.5px solid #1a2e40;
  cursor: pointer;
  transition: background .14s, color .14s;
}
}


/* Placeholder */
.se-newdoc-trigger:hover {
.cdx-text-input__input::placeholder {
  background: #1a2e40;
   color: rgba(255,255,255,0.7) !important;
   color: #fff;
}
}

Revision as of 17:25, 6 April 2026

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

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

/* ── Base ───────────────────────────────────────────────────────────
   font-size is intentionally NOT set with !important here.
   ReaderToolbar JS owns font-size: it writes directly to
   .mw-parser-output on every page load via applyFontSize().
   The 20px here is the no-JS fallback only.
   ────────────────────────────────────────────────────────────────── */
.mw-parser-output {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif;
  font-size: 20px;
  line-height: 1.75;
  color: #222;
  max-width: 820px;
  margin: 0 auto;
}

.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output td,
.mw-parser-output span,
.mw-parser-output div {
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
}

/* ── Headings ───────────────────────────────────────────────────── */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
  font-family: inherit;
  font-size: 1em;
  font-weight: bold;
  line-height: 1.75;
  margin: 1.4rem 0 0.2rem;
  border: none;
  padding: 0;
  color: inherit;
}

.mw-parser-output h2 {
  font-size: 1.1em;
}

/* ── Paragraphs ─────────────────────────────────────────────────── */
.mw-parser-output p {
  margin: 0 0 0.85rem;
}

.mw-parser-output p:empty,
.mw-parser-output > div > p:empty {
  display: none !important;
  margin: 0 !important;
  line-height: 0 !important;
}

.mw-parser-output div[style*="font-size"] > p {
  margin: 0 !important;
}

/* ── Shloka block ───────────────────────────────────────────────── */
.shloka-block {
  display: block;
  font-family: inherit;
  font-size: 1em;
  margin: 0.5rem 0 1rem 0;
  padding-left: 0;
}

.shloka-line {
  display: block;
  line-height: 1.8;
}

/* ── Commentary body ────────────────────────────────────────────── */
.commentary-body {
  display: block;
  font-family: inherit;
  font-size: 1em;
  line-height: 1.75;
  color: #333;
  margin-top: 0.6rem;
}

.commentary-body p,
.commentary-body span,
.commentary-body div {
  font-family: inherit;
}

.commentary-body + .commentary-body {
  margin-top: 6px;
}
.commentary-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.commentary-body.open {
  max-height: 200px;
  opacity: 1;
  border: 1px solid #ededed;
  background: #fafafa;
  padding: 5px 10px;
  overflow: auto;
}
.commentary-body.commentary-hidden + p:empty,
.verse-block > p:empty {
  display: none;
}

/* ── Commentary toggle ──────────────────────────────────────────── */
.commentary-toggle {
  cursor: pointer;
  margin-left: 0.5em;
  font-size: 0.7em;
  vertical-align: middle;
  opacity: 0.4;
  user-select: none;
  display: inline;
  transition: opacity 0.2s ease;
}

.commentary-toggle:hover {
  opacity: 1;
}

.commentary-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.commentary-body.open {
  max-height: 500px;
  opacity: 1;
}

.commentary-toggle-btn {
  margin-bottom: 1em;
  padding: 6px 14px;
  cursor: pointer;
}

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

.adhyaya-intro .mw-collapsible-toggle {
  font-family: inherit;
  display: block;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  font-weight: bold;
  text-align: left;
  float: none !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78em;
}

.commentary-block .mw-collapsible-toggle a {
  font-family: inherit;
  text-decoration: none;
}

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

/* ── Cargo store ────────────────────────────────────────────────── */
.cargo-store-only {
  display: none !important;
}

/* ── Adhyaya (Chapter) ──────────────────────────────────────────── */
.adhyaya-block {
  font-family: inherit;
  margin: 32px 0 18px;
  text-align: left;
}

.adhyaya-heading {
  font-family: inherit;
  font-size: 1em;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.75;
}

.adhyaya-heading span,
.adhyaya-block p {
  font-size: 0.9em;
  color: #666;
  margin-top: 2px;
}

.adhyaya-anchor {
  opacity: 0;
  transition: opacity 0.2s;
}

.adhyaya-heading:hover .adhyaya-anchor {
  opacity: 0.7;
}

.adhyaya-intro.mw-collapsible {
  font-family: inherit;
}

.adhyaya-intro {
  margin-top: 10px;
  line-height: 1.85;
  color: #444;
}

/* ── Nyaya (Reasoning block) ────────────────────────────────────── */
.nyaya-block {
  font-family: inherit;
  margin: 40px 0;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.nyaya-block a[href^="#"] {
  opacity: 0;
  transition: opacity 0.2s;
}

.nyaya-block:hover a[href^="#"] {
  opacity: 0.7;
}

.nyaya-title {
  font-size: 1em;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.nyaya-title span {
  display: block;
  font-size: 0.85em;
  color: #666;
}

/* ── Prasna (Question block) ────────────────────────────────────── */
.prasna-block {
  font-family: inherit;
  margin: 40px 0;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.prasna-block a[href^="#"] {
  opacity: 0;
  transition: opacity 0.2s;
}

.prasna-block:hover a[href^="#"] {
  opacity: 0.7;
}

.prasna-title {
  font-size: 1em;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.prasna-title span {
  display: block;
  font-size: 0.85em;
  color: #666;
}

/* ── ID chips ───────────────────────────────────────────────────── */
.nyaya-id,
.prasna-id {
  font-family: 'Consolas', 'Liberation Mono', monospace;
}

/* ── Verse block ────────────────────────────────────────────────── */
.verse-block {
  margin: 10px 0;
}

.verse-block:hover {
  background: #fafafa;
}

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

.verse-text {
  display: inline;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* ── CopyID button ──────────────────────────────────────────────── */
.copy-id-btn {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  cursor: pointer;
  background-image: url('/images/copy.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Code blocks ────────────────────────────────────────────────── */
pre, code, .mw-code {
  background-color: transparent;
  border: none;
  padding: 0.5em;
  line-height: 1;
  margin: 0.5em;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .mw-parser-output {
    font-size: 16px;
  }
  .nyaya-id,
  .prasna-id,
  .adhyaya-anchor {
    display: none;
  }
}

.icon-copy {
  background-image: url('/images/copy.svg');
}

.icon-commentary {
  background-image: url('/images/commentary.svg');
}

.verse-action-btn {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.verse-action-btn:hover {
  opacity: 1;
}

.shloka-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.shloka-line > *:first-child {
  flex: 1;
}

.verse-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  opacity: 0.8;
  padding-left: 12px;
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(2px);
  pointer-events: none;
}

.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);
  transform: scale(1.05);
}

.verse-action-commentary {
  opacity: 0.7;
}

.verse-action-commentary.active {
  background-color: rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.verse-action-commentary.active .icon {
  filter: invert(25%) sepia(80%) saturate(500%) hue-rotate(200deg);
}

.verse-block {
  display: flex;
  flex-direction: column;
}

.verse-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-left: 2px;
}

.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;
  border-radius: 999px;
  font-size: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(30, 30, 30, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-tooltip.copy-tooltip-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ════════════════════════════════════════════════════════════════
   Grantha — Wiki chrome styling
   Reskins the existing MediaWiki UI to match Grantha's palette.
   Nothing is hidden — just restyled.
   ════════════════════════════════════════════════════════════════ */

/* ── Page background ── */
body {
  background: #f5f4f0 !important;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ── Top header bar (Vector 2022) ── */
.mw-header,
.vector-header {
  background: #1a2e40 !important;
  border-bottom: none !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* Site name / logo text */
.mw-wiki-title,
#p-logo a,
.vector-header .mw-logo {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  opacity: 1 !important;
}

/* Search box */
.vector-search-box input,
.cdx-text-input__input {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border-radius: 20px !important;
}

.vector-search-box input::placeholder,
.cdx-text-input__input::placeholder {
  color: rgba(255,255,255,0.45) !important;
}

.vector-search-box input:focus,
.cdx-text-input__input:focus {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.5) !important;
  box-shadow: none !important;
}

/* User/personal tools in header */
.vector-user-links a,
.mw-portlet-personal a,
#pt-login a,
#pt-createaccount a {
  color: rgba(255,255,255,0.8) !important;
  font-size: 13px !important;
}

.vector-user-links a:hover,
.mw-portlet-personal a:hover {
  color: #fff !important;
}

/* ── Left sidebar ── */
#mw-panel,
.mw-sidebar,
.vector-sidebar,
.vector-sidebar-container {
  background: #fff !important;
  border-right: 1px solid #e8eaed !important;
}

/* Sidebar headings */
.vector-menu-heading,
.mw-portlet-nav-heading,
#mw-panel .portal h3,
.vector-sidebar .vector-menu-heading {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .09em !important;
  color: #8a9bb0 !important;
  padding: 16px 16px 6px !important;
  border: none !important;
  background: none !important;
}

/* Sidebar links */
#mw-panel .portal .body a,
.vector-sidebar a,
.mw-portlet-nav a {
  color: #1a2e40 !important;
  font-size: 13px !important;
  padding: 5px 16px !important;
  border-radius: 6px !important;
  display: block !important;
  transition: background .1s !important;
}

#mw-panel .portal .body a:hover,
.vector-sidebar a:hover,
.mw-portlet-nav a:hover {
  background: #f0f4f8 !important;
  color: #1a2e40 !important;
  text-decoration: none !important;
}

/* ── Page action tabs (Edit, History, Talk …) ── */
#p-views ul,
.mw-portlet-views ul,
.vector-page-tools ul {
  background: none !important;
  border: none !important;
  gap: 2px !important;
}

#p-views li a,
.mw-portlet-views li a,
.vector-page-tools li a,
#ca-edit a, #ca-ve-edit a, #ca-history a, #ca-talk a {
  font-size: 12.5px !important;
  color: #4a5568 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  background: none !important;
  transition: background .12s, border-color .12s !important;
}

#p-views li a:hover,
.mw-portlet-views li a:hover,
#ca-edit a:hover, #ca-history a:hover {
  background: #f0f4f8 !important;
  border-color: #dde3ea !important;
  color: #1a2e40 !important;
}

#p-views li.selected a,
.mw-portlet-views li.selected a {
  background: #1a2e40 !important;
  color: #fff !important;
  border-color: #1a2e40 !important;
}

/* ── Footer ── */
#footer,
.mw-footer,
.vector-footer {
  background: #1a2e40 !important;
  border-top: none !important;
  color: rgba(255,255,255,0.5) !important;
  font-size: 12px !important;
  padding: 20px 24px !important;
}

#footer a,
.mw-footer a,
.vector-footer a {
  color: rgba(255,255,255,0.65) !important;
}

#footer a:hover,
.mw-footer a:hover {
  color: #fff !important;
}

/* ── Site notice ── */
#siteNotice {
  background: #eef3ff !important;
  border: 1px solid #c8d8f5 !important;
  border-radius: 8px !important;
  color: #1a2e40 !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  margin-bottom: 16px !important;
}

/* ── Category links ── */
#catlinks,
.catlinks {
  background: #f8f9fa !important;
  border: 1px solid #e8eaed !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  color: #6b7a8d !important;
  padding: 8px 14px !important;
  margin-top: 24px !important;
}

#catlinks a,
.catlinks a {
  color: #2a5298 !important;
}


/* ════════════════════════════════════════════════════════════════
   Grantha — Main Page
   ════════════════════════════════════════════════════════════════ */

#se-home {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 48px;
}

#se-home h2,
#se-home .mw-heading {
  display: none;
}

.se-hero {
  background: linear-gradient(160deg, #f7f4ef 0%, #faf8f3 60%, #eef3f8 100%);
  padding: 44px 28px 36px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid #e8e4dc;
}

.se-hero-verse {
  font-size: 14px;
  color: #8a7e6c;
  font-style: italic;
  line-height: 1.9;
  margin-bottom: 18px;
  opacity: .85;
}

.se-hero-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a2e40;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.se-hero-sub {
  font-size: 13px;
  color: #8a9bb0;
}

.se-section {
  margin-bottom: 32px;
}

.se-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8a9bb0;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f3;
}

.se-doclist {
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
}

.se-docrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  transition: background .1s;
}

.se-docrow:last-child {
  border-bottom: none;
}

.se-docrow:hover {
  background: #f7f9fc;
}

.se-docrow--dev {
  background: #f5f8ff;
}

.se-docrow--dev:hover {
  background: #edf2ff;
}

.se-docrow-num {
  font-size: 12px;
  color: #c8d0da;
  min-width: 20px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.se-docrow-title {
  font-size: 14.5px;
  font-weight: 600;
  flex: 1;
}

.se-docrow-title a {
  color: #1a2e40;
  text-decoration: none;
  display: block;
}

.se-docrow-title a:hover {
  color: #2a5298;
}

.se-doclist-actions {
  margin-top: 14px;
}

.se-newdoc-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2e40;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid #1a2e40;
  cursor: pointer;
  transition: background .14s, color .14s;
}

.se-newdoc-trigger:hover {
  background: #1a2e40;
  color: #fff;
}