/* Research Single Page Styles with Academic Support - Scoped to avoid conflicts */

/* Container and Layout - Scoped */
.research-single-container {
  background: #f9fafb;
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

.research-single-layout {
  max-width: 82%;
  margin: 0 auto;
  padding: 1rem 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Breadcrumb Navigation - Scoped */
.research-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.research-breadcrumb-link {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.research-breadcrumb-link:hover {
  color: #2563eb;
}

.research-breadcrumb-separator {
  color: #9ca3af;
}

.research-breadcrumb-current {
  color: #374151;
  font-weight: 500;
}

/* Article Header - Scoped */
.research-article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.research-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.research-article-category {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
}

.research-article-category[data-category="publication"] {
  background: #dbeafe;
  color: #1e40af;
}

.research-article-category[data-category="conclusion"] {
  background: #d1fae5;
  color: #065f46;
}

.research-article-category[data-category="milestone"] {
  background: #fef3c7;
  color: #92400e;
}

.research-article-category[data-category="release"] {
  background: #ede9fe;
  color: #6b21a8;
}

.research-article-date {
  color: #6b7280;
  font-size: 0.875rem;
}

.research-article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 1.5rem;
}

.research-article-authors {
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.research-authors-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.research-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.research-article-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.research-article-tag:hover {
  background: #e2e8f0;
}

/* External Links - Scoped */
.research-article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.research-external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f9fafb;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.research-external-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.research-arxiv-link:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.research-github-link:hover {
  background: #f9fafb;
  border-color: #374151;
  color: #111827;
}

.research-huggingface-link:hover {
  background: #fefce8;
  border-color: #fde047;
  color: #a16207;
}

.research-link-icon {
  width: 16px;
  height: 16px;
}

/* Table of Contents - Scoped */
.research-toc-container {
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.research-toc-details {
  padding: 0;
}

.research-toc-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  list-style: none;
  user-select: none;
}

.research-toc-summary::-webkit-details-marker {
  display: none;
}

.research-toc-summary::marker {
  display: none;
}

.research-toc-icon {
  width: 16px;
  height: 16px;
}

.research-toc-nav {
  padding: 0 0.05rem 1rem 0.05rem;
  border-top: 1px solid #e5e7eb;
}

.research-toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.research-toc-nav li {
  margin: 0;
}

.research-toc-nav a {
  display: block;
  padding: 0.5rem 0;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}

.research-toc-nav a:hover {
  color: #3b82f6;
}

.research-toc-nav a.research-active {
  color: #3b82f6;
  border-left-color: #3b82f6;
  font-weight: 500;
}

.research-toc-nav ul ul a {
  padding-left: 1.5rem;
  font-size: 0.8125rem;
}

.research-toc-nav ul ul ul a {
  padding-left: 2.25rem;
}

/* Article Content - GitHub README Style - Scoped */
.research-article-content {
  font-family: "Iowan Old Style BT", "Iowan Old Style", "Georgia", "Times New Roman", serif;
  line-height: 1.7;
  color: #282828;
  margin-bottom: 3rem;
  font-size: 16px;
}

.research-article-content h1,
.research-article-content h2,
.research-article-content h3,
.research-article-content h4,
.research-article-content h5,
.research-article-content h6 {
  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #282828;
  scroll-margin-top: 160px;
}

.research-article-content h1 {
  font-size: 2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.research-article-content h2 {
  font-size: 1.75rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.research-article-content h3 {
  font-size: 1.5rem;
}

.research-article-content h4 {
  font-size: 1.25rem;
}

.research-article-content h5 {
  font-size: 1.125rem;
}

.research-article-content h6 {
  font-size: 1rem;
  color: #6b7280;
}

.research-article-content p {
  margin-bottom: 1rem;
  font-size: 16px;
}

.research-article-content ul,
.research-article-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.research-article-content li {
  margin-bottom: 0.25rem;
}

.research-article-content li > p {
  margin-bottom: 0.5rem;
}

.publication-authors {
  font-family: "Google Sans", sans-serif;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.author-block {
  display: inline-block;
  margin: 0 0.5rem;
}

/* Blockquotes - Scoped */
.research-article-content blockquote {
  border-left: 4px solid #e5e7eb;
  padding: 0 1rem;
  margin: 1.5rem 0;
  color: #6b7280;
  font-style: italic;
  background: #f9fafb;
  border-radius: 0 4px 4px 0;
}

.research-article-content blockquote p {
  margin-bottom: 0.5rem;
}

/* Code Blocks - GitHub Style - Scoped */
.research-article-content code {
  background: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
  color: #d73a49;
  font-family: "Roboto Mono", "SFMono-Regular", "Consolas", "Liberation Mono",
    "Menlo", monospace;
}

.research-article-content pre {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.research-article-content pre code {
  background: none;
  color: #24292e;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Tables - GitHub Style - Scoped */
.research-article-content table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin: 1rem 0;
  overflow: auto;
  display: block;
  white-space: nowrap;
  /* Add scroll shadow hint on mobile */
  background:
    linear-gradient(to right, white 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), white 70%) 0 100%,
    radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
  background-repeat: no-repeat;
  background-color: white;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-position: 0 0, 100%, 0 0, 100%;
  background-attachment: local, local, scroll, scroll;
}

.research-article-content table th,
.research-article-content table td {
  border: 1px solid #d0d7de;
  padding: 6px 13px;
  text-align: left;
  white-space: nowrap;
}

.research-article-content table th {
  background: #f6f8fa;
  font-weight: 600;
}

.research-article-content table tr:nth-child(2n) {
  background: #f6f8fa;
}

/* Table wrapper for better mobile experience */
@media (max-width: 768px) {
  .research-article-content table {
    font-size: 0.85rem;
  }

  .research-article-content table th,
  .research-article-content table td {
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .research-article-content table {
    font-size: 0.75rem;
  }

  .research-article-content table th,
  .research-article-content table td {
    padding: 3px 6px;
  }
}

/* Math Formulas - Scoped */
.research-article-content .MathJax {
  font-size: 1.1em !important;
}

.research-article-content .MathJax_Display {
  margin: 1.5rem 0 !important;
  text-align: center;
}

.research-article-content mjx-container[jax="CHTML"][display="true"] {
  margin: 1.5rem 0;
  text-align: center;
}

.research-article-content mjx-container[jax="CHTML"] {
  font-size: 1.1em;
}

/* Mermaid Diagrams - Scoped */
.research-article-content .mermaid {
  text-align: center;
  margin: 1.5rem 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

/* Links - Scoped */
.research-article-content a {
  color: #0969da;
  text-decoration: none;
}

.research-article-content a:hover {
  text-decoration: underline;
}

/* Images - Scoped */
.research-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

/* Horizontal Rules - Scoped */
.research-article-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* Task Lists - Scoped */
.research-article-content input[type="checkbox"] {
  margin-right: 0.5rem;
}

.research-article-content .task-list-item {
  list-style: none;
  margin-left: -2rem;
  padding-left: 2rem;
}

/* Article Footer - Scoped */
.research-article-footer {
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.research-reading-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.research-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.research-stat-icon {
  width: 16px;
  height: 16px;
}

/* Share Section - Scoped */
.research-share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.research-share-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.research-share-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.research-share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  cursor: pointer;
}

.research-share-link:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.research-twitter-share:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.research-linkedin-share:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.research-copy-link:hover {
  background: #f0fdf4;
  color: #16a34a;
}

/* Article Navigation - Scoped */
.research-article-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.research-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.research-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.research-nav-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.research-next-link {
  justify-content: flex-end;
  text-align: right;
}

.research-nav-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.research-nav-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.research-nav-title {
  font-weight: 600;
  color: #111827;
}

.research-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Back to Research - Scoped */
.research-back-to-research {
  text-align: center;
}

.research-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.research-back-link:hover {
  color: #2563eb;
}

.research-back-icon {
  width: 16px;
  height: 16px;
}

/* BibTeX Section Styling */
.bibtex-container {
  position: relative;
  margin: 1.5rem 0;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.5rem;
  border: 1px solid #e9ecef;
}

.bibtex-container pre {
  background: #f5f5f5;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  padding: 1.25rem 3rem 1.25rem 1.25rem; /* Extra right padding for copy button */
  overflow-x: auto;
  font-family: "Roboto Mono", "SFMono-Regular", "Consolas", "Liberation Mono",
    "Menlo", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  /* Prevent MathJax processing */
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  /* Hide line numbers */
  counter-reset: none;
  list-style: none;
}

.bibtex-container pre code {
  background: none;
  color: #363636;
  padding: 0;
  font-family: inherit;
  /* Ensure this stays as plain text */
  white-space: pre;
  word-wrap: normal;
  overflow-wrap: normal;
  /* Disable line numbers */
  counter-reset: none;
  list-style: none;
}

/* Hide any line number elements in BibTeX */
.bibtex-container .line-numbers,
.bibtex-container .line-number,
.bibtex-container .hljs-ln-numbers,
.bibtex-container .hljs-ln-line,
.bibtex-container pre .line-numbers-rows,
.bibtex-container pre .line-numbers-rows > span,
.bibtex-container code .line-numbers,
.bibtex-container code .line-number,
#BibTeX .line-numbers,
#BibTeX .line-number,
#BibTeX .hljs-ln-numbers,
#BibTeX .hljs-ln-line,
#BibTeX pre .line-numbers-rows,
#BibTeX pre .line-numbers-rows > span {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Disable Prism.js line numbers for BibTeX */
.bibtex-container pre.line-numbers,
.bibtex-container code.line-numbers,
#BibTeX pre.line-numbers,
#BibTeX code.line-numbers {
  padding-left: 1.25rem !important;
}

.bibtex-container pre.line-numbers::before,
.bibtex-container code.line-numbers::before,
#BibTeX pre.line-numbers::before,
#BibTeX code.line-numbers::before {
  display: none !important;
}

/* Disable highlight.js line numbers for BibTeX */
.bibtex-container .hljs.hljs-ln,
#BibTeX .hljs.hljs-ln {
  border-collapse: separate !important;
}

.bibtex-container .hljs-ln td,
#BibTeX .hljs-ln td {
  border: none !important;
  padding: 0 !important;
}

.bibtex-container .hljs-ln-numbers,
#BibTeX .hljs-ln-numbers {
  display: none !important;
}

.bibtex-container .hljs-ln-code,
#BibTeX .hljs-ln-code {
  padding-left: 0 !important;
}

/* Prevent MathJax from processing BibTeX content */
#BibTeX,
.bibtex-container,
.bibtex-section,
.bibtex-container *,
#BibTeX *,
.bibtex-section * {
  /* Force ignore for MathJax */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Completely disable MathJax for BibTeX areas */
#BibTeX .MathJax,
#BibTeX mjx-container,
.bibtex-container .MathJax,
.bibtex-container mjx-container,
.bibtex-section .MathJax,
.bibtex-section mjx-container {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Ensure BibTeX text remains as plain text */
#BibTeX pre,
#BibTeX code,
.bibtex-container pre,
.bibtex-container code {
  font-family: "Roboto Mono", "SFMono-Regular", "Consolas", "Liberation Mono",
    "Menlo", monospace !important;
  white-space: pre !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
}

/* Force plain text rendering */
#BibTeX pre *,
#BibTeX code *,
.bibtex-container pre *,
.bibtex-container code * {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  color: inherit !important;
  background: inherit !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Responsive BibTeX styling */
@media screen and (max-width: 768px) {
  .bibtex-container pre {
    font-size: 0.75rem;
    padding: 1rem 2.5rem 1rem 1rem;
  }

  .bibtex-container .copy-button {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }

  /* Optimize layout width for tablets */
  .research-single-layout {
    max-width: 95%;
    padding: 1.5rem;
  }
}

/* Mobile Optimizations - 480px and below */
@media (max-width: 480px) {
  .research-single-layout {
    max-width: 100%;
    margin: 0.25rem;
    padding: 1rem;
    border-radius: 0;
  }

  .research-article-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .research-article-content {
    font-size: 14px;
    line-height: 1.6;
  }

  .research-article-content h1 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .research-article-content h2 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .research-article-content h3 {
    font-size: 1.15rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .research-article-content h4 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  /* Code blocks optimization */
  .research-article-content pre {
    font-size: 0.75rem;
    padding: 0.75rem;
    margin: 0.75rem 0;
    overflow-x: auto;
  }

  .research-article-content code {
    font-size: 0.8em;
  }

  /* Images optimization */
  .research-article-content img {
    margin: 0.75rem 0;
  }

  /* Lists optimization */
  .research-article-content ul,
  .research-article-content ol {
    padding-left: 1.5rem;
  }

  /* Blockquotes optimization */
  .research-article-content blockquote {
    padding: 0.5rem 0.75rem;
    margin: 1rem 0;
    font-size: 0.9em;
  }

  /* Article header optimization */
  .research-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .research-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .research-article-tags {
    gap: 0.375rem;
  }

  .research-article-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  /* External links optimization */
  .research-article-links {
    gap: 0.75rem;
  }

  .research-external-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Navigation links optimization */
  .research-nav-links {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .research-nav-link {
    padding: 0.75rem;
  }

  .research-nav-title {
    font-size: 0.9rem;
  }
}

/* Mobile Responsive - 640px and below */
@media (max-width: 640px) {
  .research-single-layout {
    margin: 0.5rem;
    padding: 1rem;
    max-width: 100%;
  }

  .research-article-title {
    font-size: 1.75rem;
  }

  .research-breadcrumb-nav {
    font-size: 0.8rem;
  }

  .research-breadcrumb-current {
    display: none;
  }

  .research-article-content {
    font-size: 15px;
  }

  .research-article-content h1 {
    font-size: 1.75rem;
  }

  .research-article-content h2 {
    font-size: 1.5rem;
  }

  .research-article-content h3 {
    font-size: 1.25rem;
  }
}

/* Focus states for accessibility - Scoped */
.research-external-link:focus,
.research-share-link:focus,
.research-nav-link:focus,
.research-back-link:focus,
.research-toc-nav a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Print styles - Scoped */
@media print {
  .research-article-header,
  .research-article-footer,
  .research-article-navigation,
  .research-toc-container,
  .research-share-section {
    display: none;
  }

  .research-single-layout {
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  .research-article-content {
    color: black;
  }

  .research-article-content a {
    color: black;
    text-decoration: underline;
  }
}

/* Global code block styling - no line numbers */
pre,
code,
.highlight {
  counter-reset: none !important;
  list-style: none !important;
}

/* Hide all line number elements globally */
.line-numbers,
.line-number,
.hljs-ln-numbers,
.hljs-ln-line,
.line-numbers-rows,
.line-numbers-rows > span,
.highlight .line-numbers,
.highlight .line-number {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Disable Prism.js line numbers globally */
pre.line-numbers,
code.line-numbers {
  padding-left: 1rem !important;
}

pre.line-numbers::before,
code.line-numbers::before {
  display: none !important;
}

/* Disable highlight.js line numbers globally */
.hljs.hljs-ln {
  border-collapse: separate !important;
}

.hljs-ln td {
  border: none !important;
  padding: 0 !important;
}

.hljs-ln-numbers {
  display: none !important;
}

.hljs-ln-code {
  padding-left: 0 !important;
}

/* Research article content - no line numbers in code */
.research-article-content pre,
.research-article-content code,
.research-article-content .highlight {
  counter-reset: none !important;
  list-style: none !important;
}

.research-article-content .line-numbers,
.research-article-content .line-number,
.research-article-content .hljs-ln-numbers,
.research-article-content .hljs-ln-line,
.research-article-content .line-numbers-rows,
.research-article-content .line-numbers-rows > span {
  display: none !important;
  visibility: hidden !important;
}

/* Publication body - no line numbers */
.publication-body pre,
.publication-body code,
.publication-body .highlight {
  counter-reset: none !important;
  list-style: none !important;
}

.publication-body .line-numbers,
.publication-body .line-number,
.publication-body .hljs-ln-numbers,
.publication-body .hljs-ln-line,
.publication-body .line-numbers-rows,
.publication-body .line-numbers-rows > span {
  display: none !important;
  visibility: hidden !important;
}

/* Ensure MathJax doesn't add line numbers */
.MathJax,
mjx-container,
.MathJax_Display {
  counter-reset: none !important;
  list-style: none !important;
}

.MathJax .line-numbers,
.MathJax .line-number,
mjx-container .line-numbers,
mjx-container .line-number {
  display: none !important;
  visibility: hidden !important;
}
