/* ==========================================================================
   CSIRT-Pro Documentation - Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.md-footer-meta {
  background-color: var(--md-primary-fg-color, #1a1a2e);
}

[data-md-color-scheme="slate"] .md-footer-meta {
  background-color: #1a1a2e;
}

[data-md-color-scheme="default"] .md-footer-meta {
  background-color: #263238;
}

.md-copyright {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.md-copyright__highlight {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.md-social__link svg {
  fill: rgba(255, 255, 255, 0.6);
  transition: fill 0.2s;
}

.md-social__link:hover svg {
  fill: rgba(255, 255, 255, 1);
}

/* --------------------------------------------------------------------------
   Header logo area
   -------------------------------------------------------------------------- */

.md-header {
  transition: background-color 0.3s;
}

/* --------------------------------------------------------------------------
   Admonition Tweaks
   -------------------------------------------------------------------------- */

.md-typeset .admonition,
.md-typeset details {
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Code block improvements
   -------------------------------------------------------------------------- */

.md-typeset code {
  border-radius: 4px;
}

.md-typeset pre > code {
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Table improvements
   -------------------------------------------------------------------------- */

.md-typeset table:not([class]) {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.md-typeset table:not([class]) th {
  background-color: var(--md-default-fg-color--lightest);
  font-weight: 600;
  white-space: nowrap;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Navigation tab styling
   -------------------------------------------------------------------------- */

.md-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

[data-md-color-scheme="slate"] .md-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* --------------------------------------------------------------------------
   Content tabs (PRQL examples etc.)
   -------------------------------------------------------------------------- */

.md-typeset .tabbed-labels > label {
  font-size: 0.75rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */

@media screen and (max-width: 76.1875em) {
  .md-footer-meta__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
