/* Technical Writing Style for SCADADOG Intelligence Hub */

:root {
  --md-primary-fg-color: #2c2c2c;
  --md-primary-bg-color: #fefefe;
  --md-accent-fg-color: #666;
  --md-default-bg-color: #fefefe;
  --md-default-fg-color: #2c2c2c;
  --md-text-color: #2c2c2c;
  --md-text-link-color: #555;
}

/* Global text alignment override */
* {
  text-align: left !important;
}

/* Specific overrides for Material theme */
.md-content, .md-content__inner, .md-typeset, .md-typeset * {
  text-align: left !important;
}

/* Typography */
body, .md-typeset {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  color: #2c2c2c;
  text-align: left !important;
}

.md-header {
  background: #fefefe;
  color: #2c2c2c;
  box-shadow: none;
  border-bottom: 1px solid #e8e8e8;
}

.md-header__title {
  font-size: 1.1rem;
  font-weight: 400;
  color: #2c2c2c;
}

.md-tabs {
  background: #fefefe;
  border-bottom: 1px solid #e8e8e8;
}

.md-tabs__item {
  font-size: 0.85rem;
  text-transform: none;
}

.md-tabs__link {
  color: #666;
  font-weight: normal;
}

.md-tabs__link--active {
  color: #2c2c2c;
  font-weight: 400;
}

/* Content styling */
.md-content {
  max-width: 800px;
  margin: 0 auto;
}

.md-typeset h1 {
  font-size: 2.2rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin: 2rem 0 1rem 0;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 1rem;
}

.md-typeset h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: #2c2c2c;
  margin: 2.5rem 0 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.md-typeset h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #333;
  margin: 2rem 0 0.75rem 0;
}

.md-typeset h4 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #444;
  margin: 1.5rem 0 0.5rem 0;
}

.md-typeset p {
  margin: 1rem 0;
  text-align: left !important;
}

.md-typeset strong {
  font-weight: 600;
  color: #1a1a1a;
}

.md-typeset em {
  font-style: italic;
  color: #555;
}

/* Links */
.md-typeset a {
  color: #555;
  text-decoration: underline;
  text-decoration-color: #ccc;
}

.md-typeset a:hover {
  color: #333;
  text-decoration-color: #999;
}

/* Lists */
.md-typeset ul, .md-typeset ol {
  margin: 1rem 0;
  padding-left: 2rem;
  white-space: normal;
}

.md-typeset li {
  margin: 0.5rem 0;
  display: list-item;
  white-space: normal;
  word-wrap: break-word;
  text-align: left !important;
}

.md-typeset ol li {
  list-style-type: decimal;
}

.md-typeset ul li {
  list-style-type: disc;
}

/* Tables */
.md-typeset table {
  margin: 2rem 0;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.md-typeset th {
  background: #f8f8f8;
  color: #333;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
}

.md-typeset td {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
}

.md-typeset tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Code */
.md-typeset code {
  background: #f5f5f5;
  color: #333;
  font-family: Monaco, 'Courier New', monospace;
  font-size: 0.85em;
  padding: 0.2em 0.4em;
  border-radius: 2px;
}

.md-typeset pre {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  padding: 1rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

/* Admonitions */
.md-typeset .admonition {
  background: #f8f8f8;
  border-left: 3px solid #ddd;
  padding: 1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.md-typeset .admonition-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Navigation */
.md-nav {
  font-size: 0.9rem;
}

.md-nav__title {
  font-weight: 400;
  color: #333;
}

.md-nav__item {
  margin: 0.25rem 0;
}

.md-nav__link {
  color: #666;
  padding: 0.25rem 0;
}

.md-nav__link:hover {
  color: #333;
}

.md-nav__link--active {
  color: #2c2c2c;
  font-weight: 400;
}

/* Search */
.md-search__form {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
}

.md-search__input {
  color: #333;
  font-family: inherit;
}

/* Footer */
.md-footer {
  background: #f8f8f8;
  color: #666;
  border-top: 1px solid #e8e8e8;
}

/* Remove unnecessary elements */
.md-header__button.md-logo {
  display: none;
}

.md-footer-meta__inner {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .md-typeset {
    font-size: 16px;
  }
  
  .md-typeset h1 {
    font-size: 1.8rem;
  }
  
  .md-typeset h2 {
    font-size: 1.3rem;
  }
  
  .md-content {
    padding: 1rem;
  }
  
  /* Ensure lists render properly on mobile */
  .md-typeset ul, .md-typeset ol {
    margin: 1rem 0 !important;
    padding-left: 1.5rem !important;
    display: block !important;
    white-space: normal !important;
  }
  
  .md-typeset li {
    margin: 0.75rem 0 !important;
    display: list-item !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: left !important;
  }
  
  .md-typeset ol li {
    list-style-type: decimal !important;
    list-style-position: outside !important;
  }
  
  .md-typeset ul li {
    list-style-type: disc !important;
    list-style-position: outside !important;
  }
  
  /* Force proper paragraph spacing */
  .md-typeset p {
    margin: 1rem 0 !important;
    line-height: 1.7 !important;
    white-space: normal !important;
    text-align: left !important;
  }
}