/* =========================================================================
   PRINCEPEDIA WIKIPEDIA BLOGS STYLESHEET
   Document styles, infoboxes, citations, light theme overrides & author modal
   ========================================================================= */

#backdrop-depth-veil {
  display: none !important;
}

/* Wikipedia Classic Document Styles */
.wiki-article-body {
  font-family: 'Newsreader', 'Libre Baskerville', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--font-color);
}

.wiki-article-body p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.wiki-lead-para::first-letter {
  float: left;
  font-family: 'Rozha One', serif;
  font-size: 3.4rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 2px;
  color: var(--sarson, #E5A93C);
}

.wiki-section-heading {
  font-family: 'Cinzel', serif;
  border-bottom: 1px solid rgba(229, 169, 60, 0.3);
  padding-bottom: 0.35rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.wiki-edit-anchor {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  opacity: 0.65;
  text-decoration: underline;
  cursor: pointer;
}
.wiki-edit-anchor:hover {
  opacity: 1;
  color: var(--sarson);
}

.wiki-infobox {
  float: right;
  width: 100%;
  max-width: 330px;
  margin: 0 0 1.5rem 1.5rem;
  border-radius: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .wiki-infobox {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
  }
}

.wiki-citation {
  font-size: 0.75em;
  vertical-align: super;
  font-family: 'Fira Code', monospace;
  font-weight: bold;
  color: #00A896;
  padding: 0 2px;
  cursor: pointer;
}
.wiki-citation:hover {
  text-decoration: underline;
  color: #E5A93C;
}

/* Table of contents styling */
.wiki-toc-item.active {
  background: rgba(229, 169, 60, 0.15);
  border-left: 3px solid #E5A93C;
  font-weight: 600;
  color: #E5A93C !important;
}

/* =========================================================================
   PRINCEPEDIA WIKI HIGH-CONTRAST LIGHT MODE (DAYLIGHT SANDSTONE)
   ========================================================================= */
body.theme-sandstone header {
  background-color: var(--header-bg, #FAF2E6) !important;
  border-bottom: 1px solid rgba(158, 59, 36, 0.22) !important;
}
body.theme-sandstone header .font-heading {
  color: #110B13 !important;
}
body.theme-sandstone header .text-sandstone\/60 {
  color: #594136 !important;
}
body.theme-sandstone header a.rounded-xl {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(158, 59, 36, 0.25) !important;
  color: #3D2B24 !important;
  font-weight: 600 !important;
}
body.theme-sandstone header a.rounded-xl:hover {
  color: #8A2E0E !important;
  border-color: #8A2E0E !important;
}
body.theme-sandstone #theme-toggle-btn {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(158, 59, 36, 0.25) !important;
  color: #3D2B24 !important;
}

body.theme-sandstone #wiki-search-input {
  background-color: #FFFFFF !important;
  color: #110B13 !important;
  border: 1.5px solid rgba(158, 59, 36, 0.35) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}
body.theme-sandstone #wiki-search-input::placeholder,
body.theme-sandstone #wiki-search-input::-webkit-input-placeholder {
  color: #634B3F !important;
  opacity: 1 !important;
  font-style: italic !important;
}
body.theme-sandstone #wiki-search-results {
  background-color: #FFFFFF !important;
  border: 1.5px solid rgba(158, 59, 36, 0.35) !important;
  color: #110B13 !important;
  box-shadow: 0 10px 30px rgba(60, 42, 33, 0.15) !important;
}
body.theme-sandstone #wiki-search-results button:hover {
  background-color: #FAF2E6 !important;
}
body.theme-sandstone #wiki-search-results strong {
  color: #110B13 !important;
}
body.theme-sandstone #wiki-search-results span {
  color: #594136 !important;
}

body.theme-sandstone nav {
  background-color: #F5EBE1 !important;
  border-bottom: 1px solid rgba(158, 59, 36, 0.2) !important;
  color: #3D2B24 !important;
}
body.theme-sandstone nav button {
  color: #3D2B24 !important;
  font-weight: 600 !important;
}
body.theme-sandstone nav button:hover {
  background-color: #EFE2D3 !important;
  color: #8A2E0E !important;
}
body.theme-sandstone nav .text-sandstone\/60,
body.theme-sandstone nav .text-sandstone\/70 {
  color: #594136 !important;
}
body.theme-sandstone #wiki-status-badge {
  color: #0F5249 !important;
  font-weight: 600 !important;
}

body.theme-sandstone aside .shisha-card {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(158, 59, 36, 0.22) !important;
  box-shadow: 0 4px 15px rgba(60, 42, 33, 0.05) !important;
}
body.theme-sandstone aside button,
body.theme-sandstone aside a {
  color: #2B1D1A !important;
  font-weight: 500 !important;
}
body.theme-sandstone aside button:hover,
body.theme-sandstone aside a:hover {
  background-color: #FAF2E6 !important;
  color: #8A2E0E !important;
}
body.theme-sandstone aside .text-sandstone\/50 {
  color: #634B3F !important;
}
body.theme-sandstone #cat-btn-all,
body.theme-sandstone #cat-btn-heritage,
body.theme-sandstone #cat-btn-marine,
body.theme-sandstone #cat-btn-structural,
body.theme-sandstone #cat-btn-research,
body.theme-sandstone #cat-btn-community {
  border: 1px solid rgba(158, 59, 36, 0.25) !important;
  font-weight: 600 !important;
}
body.theme-sandstone .wiki-toc-item {
  color: #3D2B24 !important;
  font-weight: 500 !important;
}
body.theme-sandstone .wiki-toc-item:hover {
  color: #8A2E0E !important;
  background-color: #FAF2E6 !important;
}
body.theme-sandstone .wiki-toc-item.active {
  background-color: rgba(229, 169, 60, 0.22) !important;
  border-left-color: #9A3412 !important;
  color: #8A2E0E !important;
  font-weight: 700 !important;
}

body.theme-sandstone #article-display-container,
body.theme-sandstone #all-articles-index-container {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(158, 59, 36, 0.22) !important;
  box-shadow: 0 6px 25px rgba(60, 42, 33, 0.06) !important;
}
body.theme-sandstone #article-title {
  color: #110B13 !important;
  font-weight: 800 !important;
}
body.theme-sandstone #article-badge {
  background-color: rgba(229, 169, 60, 0.2) !important;
  border-color: rgba(158, 59, 36, 0.35) !important;
  color: #8A2E0E !important;
  font-weight: 700 !important;
}
body.theme-sandstone #article-reading-time {
  color: #594136 !important;
  font-weight: 500 !important;
}
body.theme-sandstone button[onclick*="shareActiveArticle"],
body.theme-sandstone button[onclick*="openArticleEditor"] {
  color: #594136 !important;
  font-weight: 600 !important;
}
body.theme-sandstone button[onclick*="shareActiveArticle"]:hover {
  color: #8A2E0E !important;
}
body.theme-sandstone .wiki-article-body {
  color: #110B13 !important;
}
body.theme-sandstone .wiki-article-body p {
  color: #22161E !important;
  line-height: 1.85 !important;
}
body.theme-sandstone .wiki-article-body h2,
body.theme-sandstone .wiki-article-body h3 {
  color: #110B13 !important;
  font-weight: 700 !important;
  border-bottom: 1.5px solid rgba(158, 59, 36, 0.25) !important;
}
body.theme-sandstone .wiki-edit-anchor {
  color: #8A2E0E !important;
  opacity: 0.8 !important;
}
body.theme-sandstone .wiki-edit-anchor:hover {
  opacity: 1 !important;
  color: #C83E74 !important;
}
body.theme-sandstone .wiki-lead-para::first-letter {
  color: #8A2E0E !important;
  font-weight: 800 !important;
}
body.theme-sandstone .wiki-article-body blockquote {
  background-color: #F6EBE0 !important;
  border-left: 4px solid #8A2E0E !important;
  color: #2B1D1A !important;
  font-style: italic !important;
  padding: 1rem 1.25rem !important;
  border-radius: 0.75rem !important;
}
body.theme-sandstone .wiki-citation {
  color: #0F5249 !important;
  font-weight: 700 !important;
}
body.theme-sandstone .wiki-citation:hover {
  color: #8A2E0E !important;
}
body.theme-sandstone .wiki-infobox {
  background-color: #FAF2E6 !important;
  border: 1.5px solid rgba(158, 59, 36, 0.3) !important;
  color: #110B13 !important;
  box-shadow: 0 4px 15px rgba(60, 42, 33, 0.08) !important;
}
body.theme-sandstone .wiki-infobox h4 {
  color: #110B13 !important;
  font-weight: 700 !important;
}
body.theme-sandstone .wiki-infobox table td {
  color: #18111A !important;
  border-color: rgba(158, 59, 36, 0.18) !important;
}
body.theme-sandstone .wiki-infobox table td:first-child {
  color: #594136 !important;
  font-weight: 700 !important;
}
body.theme-sandstone #article-references-section {
  border-top-color: rgba(158, 59, 36, 0.3) !important;
}
body.theme-sandstone #article-references-section h3 {
  color: #8A2E0E !important;
  font-weight: 700 !important;
}
body.theme-sandstone #article-references-list {
  color: #3D2B24 !important;
}
body.theme-sandstone #article-references-list li {
  color: #3D2B24 !important;
}
body.theme-sandstone #article-categories-list span {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(158, 59, 36, 0.25) !important;
  color: #3D2B24 !important;
  font-weight: 600 !important;
}

body.theme-sandstone #all-articles-index-container h2 {
  color: #110B13 !important;
  font-weight: 700 !important;
}
body.theme-sandstone #all-articles-index-container button[onclick*="closeAllArticlesIndex"] {
  background-color: #FAF2E6 !important;
  border: 1px solid rgba(158, 59, 36, 0.28) !important;
  color: #8A2E0E !important;
  font-weight: 700 !important;
}
body.theme-sandstone #index-articles-grid .shisha-card {
  background-color: #FAF2E6 !important;
  border: 1px solid rgba(158, 59, 36, 0.25) !important;
}
body.theme-sandstone #index-articles-grid .shisha-card:hover {
  border-color: #8A2E0E !important;
  box-shadow: 0 8px 25px rgba(60, 42, 33, 0.1) !important;
}
body.theme-sandstone #index-articles-grid h4 {
  color: #110B13 !important;
  font-weight: 700 !important;
}
body.theme-sandstone #index-articles-grid p {
  color: #3D2B24 !important;
}

/* WIKIPEDIA AUTHORING MODAL IN LIGHT MODE (CRISP CONTRAST & READABLE TEXT) */
body.theme-sandstone dialog#article-editor-modal,
body.theme-sandstone dialog#talk-modal {
  background-color: #FAF2E6 !important;
  border: 1.5px solid rgba(158, 59, 36, 0.35) !important;
  color: #110B13 !important;
  box-shadow: 0 25px 60px -15px rgba(60, 42, 33, 0.35) !important;
}
body.theme-sandstone dialog::backdrop {
  background: rgba(30, 20, 16, 0.65) !important;
  backdrop-filter: blur(6px) !important;
}
body.theme-sandstone dialog h3,
body.theme-sandstone #editor-modal-title {
  color: #110B13 !important;
  font-weight: 700 !important;
}
body.theme-sandstone dialog label {
  color: #8A2E0E !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
}
body.theme-sandstone dialog details {
  background-color: #F3E6D5 !important;
  border: 1px solid rgba(158, 59, 36, 0.28) !important;
}
body.theme-sandstone dialog details summary {
  color: #8A2E0E !important;
  font-weight: 700 !important;
}
body.theme-sandstone dialog details label {
  color: #5A3D31 !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}
body.theme-sandstone dialog input,
body.theme-sandstone dialog textarea,
body.theme-sandstone dialog select,
body.theme-sandstone dialog .bg-black\/40 {
  background-color: #FFFFFF !important;
  color: #110B13 !important;
  border: 1.5px solid rgba(158, 59, 36, 0.45) !important;
  border-radius: 0.75rem !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}
body.theme-sandstone dialog input:focus,
body.theme-sandstone dialog textarea:focus,
body.theme-sandstone dialog select:focus {
  border-color: #8A2E0E !important;
  box-shadow: 0 0 0 3px rgba(138, 46, 14, 0.2) !important;
  outline: none !important;
  background-color: #FFFFFF !important;
  color: #110B13 !important;
}
body.theme-sandstone dialog input::placeholder,
body.theme-sandstone dialog textarea::placeholder,
body.theme-sandstone dialog input::-webkit-input-placeholder,
body.theme-sandstone dialog textarea::-webkit-input-placeholder {
  color: #634B3F !important;
  opacity: 1 !important;
  font-style: italic !important;
}
body.theme-sandstone dialog select option {
  background-color: #FFFFFF !important;
  color: #110B13 !important;
}
body.theme-sandstone dialog button.format-btn,
body.theme-sandstone dialog button[type="button"][onclick^="insertTag"] {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(138, 46, 14, 0.3) !important;
  color: #8A2E0E !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(60, 42, 33, 0.08) !important;
}
body.theme-sandstone dialog button.format-btn:hover,
body.theme-sandstone dialog button[type="button"][onclick^="insertTag"]:hover {
  background-color: #FAF2E6 !important;
  border-color: #8A2E0E !important;
}
body.theme-sandstone dialog button.cancel-modal-btn,
body.theme-sandstone dialog button[onclick="closeArticleEditor()"] {
  background-color: #F0E2D2 !important;
  border: 1px solid rgba(138, 46, 14, 0.3) !important;
  color: #3D2B24 !important;
  font-weight: 700 !important;
}
body.theme-sandstone dialog button.cancel-modal-btn:hover,
body.theme-sandstone dialog button[onclick="closeArticleEditor()"]:hover {
  background-color: #E6D2BD !important;
  color: #8A2E0E !important;
}
body.theme-sandstone dialog #editor-tab-write {
  background-color: #E5A93C !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 700 !important;
}
body.theme-sandstone dialog #editor-tab-preview {
  background-color: #FFFFFF !important;
  color: #3D2B24 !important;
  border: 1px solid rgba(158, 59, 36, 0.3) !important;
  font-weight: 600 !important;
}
body.theme-sandstone #editor-preview-container {
  background-color: #FFFFFF !important;
  border: 1.5px solid rgba(158, 59, 36, 0.3) !important;
  color: #110B13 !important;
}
body.theme-sandstone #editor-preview-container h2 {
  color: #110B13 !important;
  font-weight: 700 !important;
  border-bottom: 1.5px solid rgba(158, 59, 36, 0.25) !important;
}

/* =========================================================================
   PUBLIC READ-ONLY RESTRICTION & AUTHOR GATE STYLING
   ========================================================================= */
.author-only {
  display: none !important;
}
body.author-mode-active .author-only {
  display: inline-flex !important;
}
body.author-mode-active li.author-only {
  display: list-item !important;
}
body.author-mode-active div.author-only {
  display: flex !important;
}
.wiki-edit-anchor {
  display: none !important;
}
body.author-mode-active .wiki-edit-anchor {
  display: inline-block !important;
}

/* Light mode adaptations for Author Verification Modal */
body.theme-sandstone dialog#author-auth-modal {
  background-color: #FAF2E6 !important;
  border: 1.5px solid rgba(158, 59, 36, 0.35) !important;
  color: #110B13 !important;
  box-shadow: 0 25px 60px -15px rgba(60, 42, 33, 0.35) !important;
}
body.theme-sandstone #author-status-pill {
  background-color: rgba(229, 169, 60, 0.22) !important;
  border-color: rgba(158, 59, 36, 0.4) !important;
  color: #8A2E0E !important;
}
body.theme-sandstone #author-status-pill button {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(158, 59, 36, 0.3) !important;
  color: #8A2E0E !important;
}

/* =========================================================================
   RICH MEDIA EMBEDS (YouTube, Wikipedia Figures & Social Posts)
   ========================================================================= */
.wiki-media-embed {
  margin: 1.75rem 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(229, 169, 60, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.wiki-media-embed .embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.wiki-media-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.wiki-caption {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  padding: 0.55rem 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  color: var(--sarson, #E5A93C);
  border-top: 1px solid rgba(229, 169, 60, 0.2);
  text-align: center;
}
body.theme-sandstone .wiki-caption {
  background: rgba(229, 169, 60, 0.12);
  color: #8A2E0E;
}

.wiki-figure {
  margin: 1.75rem 0;
  padding: 0.65rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(229, 169, 60, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.wiki-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}
.wiki-figure figcaption {
  font-family: 'Newsreader', serif;
  font-size: 0.875rem;
  font-style: italic;
  padding: 0.5rem 0.5rem 0.25rem;
  color: var(--font-color);
  opacity: 0.85;
  text-align: center;
}

.wiki-social-embed {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(255, 183, 3, 0.08));
  border: 1px solid rgba(225, 48, 108, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
body.theme-sandstone .wiki-social-embed {
  background: #FFF5F7;
  border-color: rgba(200, 62, 116, 0.4);
  color: #110B13;
}
.wiki-social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: #FF1E6E;
  font-weight: bold;
}
.wiki-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #E1306C, #F77737);
  color: #FFFFFF !important;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.35);
  transition: transform 0.2s ease;
}
.wiki-social-btn:hover {
  transform: translateY(-2px);
}

/* =========================================================================
   COMPREHENSIVE WIKIPEDIA MONOGRAPH A4 PRINT STYLESHEET
   Ensures 100% visible, high-contrast, publication-grade academic printing
   ========================================================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 15mm 18mm 15mm 18mm;
  }

  /* Reset layout & backgrounds for ink efficiency */
  html, body {
    background: #FFFFFF !important;
    color: #111111 !important;
    font-size: 10.5pt !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* Hide interactive chrome, headers, navigation, talk modals, sidebars */
  header, 
  nav, 
  aside, 
  #wiki-sidebar, 
  footer, 
  button, 
  dialog,
  #article-talk-modal,
  #admin-auth-modal,
  #write-article-modal,
  #comments-section,
  #wiki-share-toast,
  .no-print,
  .author-only,
  #add-article-btn,
  #jump-to-top-btn,
  .wiki-action-btn,
  #action-edit-article-btn,
  .cmd-palette-backdrop {
    display: none !important;
    visibility: hidden !important;
  }

  /* Expand main container to full print width */
  main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
  }

  /* Article Wrapper */
  #article-display-container {
    background: #FFFFFF !important;
    color: #111111 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
  }

  /* Article Title & Top Banner */
  #article-header,
  #article-title-container {
    margin-bottom: 12pt !important;
  }

  #article-badge {
    border: 1px solid #777 !important;
    background: #EEEEEE !important;
    color: #111111 !important;
    font-size: 8pt !important;
    padding: 2pt 6pt !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
  }

  #article-reading-time {
    color: #555555 !important;
    font-size: 8.5pt !important;
  }

  #article-title {
    font-family: 'Newsreader', 'Libre Baskerville', Georgia, serif !important;
    font-size: 24pt !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #000000 !important;
    margin-top: 6pt !important;
    margin-bottom: 6pt !important;
    border-bottom: 2px solid #a2a9b1 !important;
    padding-bottom: 6pt !important;
  }

  #article-lead {
    font-family: 'Newsreader', 'Libre Baskerville', Georgia, serif !important;
    font-size: 11pt !important;
    line-height: 1.65 !important;
    color: #202122 !important;
    margin-bottom: 14pt !important;
    display: block !important;
  }

  #article-lead strong {
    font-weight: 700 !important;
    color: #000000 !important;
  }

  /* Academic Wikipedia Floating Infobox */
  #article-infobox-container,
  .wiki-infobox {
    float: right !important;
    width: 250px !important;
    margin: 0 0 14pt 16pt !important;
    background-color: #F8F9FA !important;
    border: 1px solid #A2A9B1 !important;
    padding: 8pt !important;
    font-size: 8.5pt !important;
    line-height: 1.4 !important;
    color: #202122 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    display: block !important;
    visibility: visible !important;
    box-shadow: none !important;
  }

  .wiki-infobox * {
    color: #202122 !important;
  }

  .wiki-infobox table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .wiki-infobox th,
  .wiki-infobox td {
    border-top: 1px solid #EAECF0 !important;
    padding: 3pt 4pt !important;
    font-size: 8.5pt !important;
    text-align: left !important;
  }

  .wiki-infobox th {
    font-weight: 600 !important;
    color: #000000 !important;
    width: 38% !important;
  }

  /* Article Body Sections & Typography */
  .wiki-article-body {
    color: #202122 !important;
    background: transparent !important;
    font-family: 'Newsreader', 'Libre Baskerville', Georgia, serif !important;
    font-size: 10.5pt !important;
    line-height: 1.65 !important;
    display: block !important;
    visibility: visible !important;
  }

  .wiki-article-body * {
    color: #202122 !important;
    background: transparent !important;
    visibility: visible !important;
  }

  .wiki-article-body h2 {
    font-family: 'Newsreader', 'Libre Baskerville', Georgia, serif !important;
    font-size: 15pt !important;
    font-weight: 700 !important;
    color: #000000 !important;
    border-bottom: 1px solid #A2A9B1 !important;
    padding-bottom: 3pt !important;
    margin-top: 16pt !important;
    margin-bottom: 8pt !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .wiki-article-body h3 {
    font-family: 'Newsreader', 'Libre Baskerville', Georgia, serif !important;
    font-size: 12.5pt !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin-top: 12pt !important;
    margin-bottom: 6pt !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .wiki-article-body p {
    margin-bottom: 10pt !important;
    text-align: justify !important;
    orphans: 3 !important;
    widows: 3 !important;
  }

  .wiki-article-body blockquote {
    border-left: 3px solid #72777D !important;
    padding: 4pt 0 4pt 12pt !important;
    margin: 10pt 0 10pt 6pt !important;
    color: #404244 !important;
    font-style: italic !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .wiki-article-body ul,
  .wiki-article-body ol {
    margin-left: 18pt !important;
    margin-bottom: 10pt !important;
  }

  .wiki-article-body li {
    margin-bottom: 3pt !important;
  }

  .wiki-article-body a {
    color: #0645AD !important;
    text-decoration: underline !important;
  }

  /* Citations & Footnotes Section */
  #article-references-container,
  .wiki-references {
    border-top: 1px solid #A2A9B1 !important;
    padding-top: 10pt !important;
    margin-top: 16pt !important;
    font-size: 8.5pt !important;
    line-height: 1.45 !important;
    color: #404244 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #article-references-container h3,
  .wiki-references h3 {
    font-size: 11pt !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-bottom: 6pt !important;
  }

  /* Categories Box */
  #article-categories-container,
  .wiki-categories-box {
    border: 1px solid #D1D5DB !important;
    background-color: #FAFAFA !important;
    padding: 6pt 10pt !important;
    margin-top: 14pt !important;
    font-size: 8pt !important;
    color: #555555 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Clear floats after article */
  #article-display-container::after {
    content: "";
    display: table;
    clear: both;
  }
}

