/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.lg-sub-html,
.lg-outer.lg-components-open:not(.lg-zoomed) .lg-sub-html {
  display: hidden !important;
  opacity: 0 !important;
}

/* Standard Markdown styling (dark-friendly, GitHub-inspired) */
.markdown-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #e5e7eb; /* gray-200 */
  font-size: 16px;
}
.markdown-content h1 {
  font-size: 2em;
  margin: 0 0 1em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.3em;
}
.markdown-content h2 {
  font-size: 1.5em;
  margin: 1em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.3em;
}
.markdown-content h3 {
  font-size: 1.25em;
  margin: 1em 0;
}
.markdown-content p {
  margin: 1em 0;
}
.markdown-content ul,
.markdown-content ol {
  margin: 1em 0;
  padding-left: 2em;
}
.markdown-content li {
  margin: 0.5em 0;
}
.markdown-content code {
  background-color: #111827; /* gray-900 */
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 85%;
  color: #f3f4f6; /* gray-100 */
}
.markdown-content pre {
  background-color: #111827;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
}
.markdown-content pre code {
  background-color: transparent;
  padding: 0;
}
.markdown-content blockquote {
  margin: 1em 0;
  padding-left: 1em;
  color: #9ca3af; /* gray-400 */
  border-left: 0.25em solid #374151; /* gray-700 */
}
.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
.markdown-content th,
.markdown-content td {
  border: 1px solid #374151; /* gray-700 */
  padding: 0.6em 1em;
}
.markdown-content th {
  background-color: #111827;
  font-weight: 600;
}
.document-preview {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.3px;
}
.pointer {
  cursor: pointer;
}

@media (max-width: 768px) {
  .document-preview {
    padding: 1rem !important;
  }
  .markdown-content {
    font-size: 14px;
  }
  .markdown-content h1 {
    font-size: 1.75em;
  }
  .markdown-content h2 {
    font-size: 1.35em;
  }
  .markdown-content h3 {
    font-size: 1.15em;
  }
}

/* Hide scrollbars in fullscreen modal content but keep scroll behavior */
[data-modal-content] {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
[data-modal-content]::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Hide number input spinners (Chrome/Safari/Edge/Firefox) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
