/* Modbus Platform 1.3.66: shared navigation and technical-content containment.
   Loaded after the legacy and translated styles; scoped overrides are necessary
   because those styles contain !important declarations and page-specific rules. */
body header.site-header.mp-navigation-ready .site-header__inner {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  width: 100%;
  max-width: 1360px !important;
  min-height: 68px !important;
  height: auto !important;
  padding: 8px 24px !important;
  gap: 12px !important;
  overflow: visible !important;
}
body header.site-header.mp-navigation-ready {
  height: auto !important;
  min-height: 68px !important;
  overflow: visible !important;
}
body header.mp-navigation-ready .site-branding {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  order: 0 !important;
}
body header.mp-navigation-ready .primary-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  order: 1 !important;
  position: static !important;
}
body header.mp-navigation-ready:not(.mp-compact-nav) .primary-menu {
  display: flex !important;
  flex-flow: row nowrap !important;
  position: static !important;
  width: max-content !important;
  flex-shrink: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
body header.mp-navigation-ready:not(.mp-compact-nav) .mobile-menu-toggle {
  display: none !important;
}
body header.mp-navigation-ready .header-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  width: auto !important;
  margin-left: 0 !important;
  order: 2 !important;
}
body header.mp-navigation-ready #mbi-lang-fab {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto;
  order: 3;
  z-index: 1001;
}
body header.mp-navigation-ready .mbi-fab-menu {
  top: calc(100% + 8px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
body header.mp-navigation-ready .mobile-menu-toggle {
  order: 4 !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
}
body header.mp-compact-nav .site-branding {
  flex: 1 1 auto !important;
}
body header.mp-compact-nav .official-branding__badge,
body header.mp-compact-nav .official-header-cta,
body header.mp-compact-nav .header-search-toggle,
body header.mp-compact-nav .user-menu {
  display: none !important;
}
body header.mp-compact-nav .site-branding__title {
  font-size: 16px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
body header.mp-compact-nav .header-cart-icon {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
}
body header.mp-compact-nav .mobile-menu-toggle { display: grid !important; }
body header.mp-compact-nav .primary-nav {
  flex: 0 0 0 !important;
  width: 0 !important;
  order: 5 !important;
}
body header.mp-compact-nav .primary-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  max-height: calc(100vh - var(--mp-navigation-bottom, 68px)) !important;
  max-height: calc(100dvh - var(--mp-navigation-bottom, 68px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: #fff !important;
  border: 1px solid var(--mp-line) !important;
  box-shadow: var(--mp-shadow) !important;
  border-radius: 0 0 12px 12px !important;
}
body header.mp-compact-nav .primary-menu.active { display: flex !important; }
body header.mp-compact-nav .primary-menu > .menu-item {
  width: 100% !important;
  flex-shrink: 0;
  text-align: left;
}
body header.mp-compact-nav .primary-menu > .menu-item > a {
  width: 100% !important;
  min-height: 44px !important;
  justify-content: space-between !important;
  color: var(--mp-ink) !important;
  white-space: normal !important;
}
body header.mp-compact-nav .primary-menu .sub-menu {
  display: none !important;
  position: static !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 4px 0 8px !important;
  padding: 6px !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-shadow: none !important;
  background: var(--mp-soft) !important;
}
body header.mp-compact-nav .primary-menu .open > .sub-menu { display: block !important; }
body header.mp-compact-nav .primary-menu .sub-menu a {
  color: var(--mp-ink) !important;
  white-space: normal !important;
  min-height: 44px;
}
body header.mp-compact-nav .primary-menu .sub-menu::before { display: none !important; }
body header.mp-compact-nav .mp-mobile-only { display: block !important; }
body header.mp-compact-nav .mp-menu-account { display: flex !important; padding: 8px !important; gap: 8px !important; }
body header.mp-compact-nav .mp-menu-account > a { flex: 1 1 0 !important; width: auto !important; justify-content: center !important; border-radius: 8px; }
body header.mp-compact-nav .mp-menu-account > a:first-child { color: #fff !important; background: var(--mp-blue) !important; }
body header.mp-compact-nav .mp-menu-search { padding: 8px !important; }
body header.mp-compact-nav .mp-search-form { display: flex; gap: 8px; }
body header.mp-compact-nav .mp-search-field { flex: 1 1 0; width: 0; min-width: 0; font-size: 16px !important; }
body header.mp-compact-nav .mp-search-submit { flex: 0 0 auto; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--mp-blue); color: #fff; }
body header.mp-compact-nav .header-search-dropdown { display: none !important; }

.official-article-layout__main, .official-article__body, .article__body, .entry-content { min-width: 0; }
.official-article__body, .article__body, .entry-content { overflow-wrap: anywhere; }
.mp-table-scroll, .official-article__body .wp-block-table, .article__body .wp-block-table, .entry-content .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}
.mp-table-scroll table, .official-article__body .wp-block-table table, .article__body .wp-block-table table, .entry-content .wp-block-table table {
  display: table;
  width: 100%;
  min-width: 520px;
  max-width: none;
  overflow: visible;
  overflow-wrap: normal;
  margin: 0;
}
.official-article__body pre, .article__body pre, .entry-content pre { max-width: 100%; overflow-x: auto; }
.official-article__body .ai-related-posts > div[style*="grid-template-columns"] {
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)) !important;
}
.mp-table-scroll:focus-visible, .site-header a:focus-visible, .site-header button:focus-visible { outline: 3px solid var(--mp-blue); outline-offset: 3px; }
html { scroll-padding-top: calc(var(--mp-navigation-bottom, 68px) + 16px); }
@media (max-width: 600px) {
  body header.site-header.mp-navigation-ready .site-header__inner { padding: 8px 12px !important; gap: 6px !important; }
  body header.mp-compact-nav .site-branding__title { font-size: 14px !important; }
  body header.mp-navigation-ready .mbi-fab-trigger { height: 44px !important; padding: 0 10px !important; }
  body header.mp-navigation-ready .mbi-fab-globe { display: none; }
  body header.mp-compact-nav .primary-menu { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; }
  .site-header input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header *, .scroll-to-top { transition: none !important; }
}
