﻿/* Increase top navbar height */
.md-header {
  min-height: 3.1rem;
}

.md-header__inner {
  min-height: 3.1rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 2.1rem;
  width: auto;
}

/* Header title color */
.md-header__title,
.md-header__topic .md-ellipsis {
  color: #374151 !important;
}

/* Sticky footer */
.md-footer__inner {
  display: none;
}

.md-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
}

.md-footer-meta {
  background: #ffffff !important;
  border-top: 1px solid #e5e7eb;
}

.md-footer-meta__inner {
  max-width: 100%;
  padding: 0.35rem 0.75rem;
  display: flex;
  justify-content: center;
}

.md-copyright {
  width: 100%;
  margin: 0;
}

/* Left | Center | Right with proper spacing */
.custom-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1200px, 100%);
  margin: 0 auto;
  gap: 1rem;
  color: #9ca3af;
  font-size: 0.66rem;
  line-height: 1.2;
}

.custom-footer a {
  text-decoration: none;
}

.custom-footer a:hover {
  text-decoration: underline;
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  justify-content: flex-start;
  text-align: left;
}

.footer-center {
  flex: 1;
  text-align: center;
}

.footer-right {
  flex: 1;
  text-align: right;
}

.googleai-logo {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: conic-gradient(#4285f4 0deg 90deg, #34a853 90deg 180deg, #fbbc05 180deg 270deg, #ea4335 270deg 360deg);
  display: inline-block;
}

.footer-center,
.footer-center a,
.footer-left,
.footer-right,
.footer-right a {
  color: #9ca3af !important;
}

.footer-right a:hover,
.footer-center a:hover {
  color: #6b7280 !important;
}

body {
  padding-bottom: 44px;
}

@media (max-width: 900px) {
  .custom-footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: unset;
    justify-content: center;
    text-align: center;
  }

  body {
    padding-bottom: 76px;
  }
}

/* Reduce excessive right-side gap in content area */
@media (min-width: 76.25em) {
  .md-sidebar--secondary {
    display: none;
  }

  .md-content {
    margin-right: 0;
  }

  .md-grid {
    max-width: 92rem;
  }
}

.powered-by-logo {
  height: 17px !important;
  max-height: 18px !important;
  width: auto !important;
  display: inline-block;
  vertical-align: middle;
}

.manufex-brand {
  font-weight: 700;
  color: #6b7280;
}

/* Shopfloor Insights content alignment */
.md-typeset .shopfloor-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0.75rem auto 1.25rem;
}

