/* @import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap'); */

/* ---------- Global ---------- */

html,
body,
.md-main,
.md-main__inner,
.md-content,
.md-content__inner,
.md-container {
  background: #132238 !important;
}

.md-typeset,
.md-typeset p,
.md-typeset div,
.md-typeset li,
.md-typeset a,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6,
.section-title,
.product-home-subtitle,
.product-home-text,
.contact-box-text,
.contact-box-address {
  color: #ffffff !important;
}

.md-typeset,
.md-header,
.md-tabs,
.md-footer,
.md-header__inner,
.md-footer__inner,
.md-tabs__link,
.md-footer-meta,
.md-footer-copyright {
  font-family: 'IBM Plex Sans', Arial, sans-serif !important;
}

.md-typeset a {
  text-decoration: underline;
}

.md-sidebar--primary,
.md-sidebar--secondary {
  display: none !important;
}

.md-content {
  margin-left: 0 !important;
}

.md-grid {
  max-width: 1400px !important;
}

.md-content__inner {
  max-width: 1280px !important;
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */

.md-header__button.md-logo {
  display: none !important;
}

.md-header__title {
  display: none !important;
}

/* sakrij default MkDocs header */
.md-header,
.md-header__inner {
  display: none !important;
}

/* prikazi samo custom top bar */
.md-tabs {
  display: block !important;
  background: #7a7a7a !important;
  margin: 0 !important;
  box-shadow: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2000 !important;
  min-height: 88px !important;
}

.md-tabs__inner {
  display: block !important;
  background: transparent !important;
}

.md-tabs .md-grid {
  position: relative;
  min-height: 88px;
  padding-right: 250px !important;
  display: flex;
  align-items: center;
}

.md-tabs .md-grid::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 210px;
  height: 72px;
  background: url("../assets/logo.jpg") center center / contain no-repeat;
  pointer-events: none;
}

.md-tabs__list {
  display: flex;
  align-items: center;
  min-height: 88px;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.md-tabs__item {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.md-tabs__link {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 0 0.5rem !important;
  margin: 0 !important;
  color: #f2f2f2 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  line-height: 1 !important;
}

.md-tabs__link--active {
  font-weight: 700;
}

/* spusti sadržaj ispod fixed headera */
.md-main {
  margin-top: 88px !important;
}

.md-main__inner,
.md-content {
  padding-top: 0 !important;
}

/* ---------- Typography ---------- */

.md-typeset h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #ffffff !important;
}

.md-typeset p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 1100px;
}

/* ---------- Hero ---------- */


.home-intro-text {
  max-width: 980px;
  margin: 1.2rem auto 1.8rem auto;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-style: italic;
  font-weight: 600;
}

.home-hero {
  display: block;
  background: #132238;
  color: #ffffff;
  padding: 1.2rem 0 2.2rem 0;
  margin: 0 0 2.2rem 0;
}

.home-hero-title {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem 0;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.home-hero-image-wide {
  margin: 0 0 2rem 0;
  display: flex;
  justify-content: center;
}

/* .home-hero-image-wide img {
  display: block;
  width: 420px;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
} */

.home-hero-image-wide img {
  display: block;
  width: 45%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
}

.home-hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}

.home-hero-features-box,
.applications-box {
  width: 100%;
  max-width: none;
}

.home-hero-features-box {
  padding: 1.15rem 1.3rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-sizing: border-box;
}

.home-hero-features-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.home-hero-features-list {
  margin: 0;
  padding-left: 1.1rem;
}

.home-hero-features-list li {
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.home-hero-apps {
  display: block;
  padding: 0;
  margin: 0;
}

.applications-box {
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-sizing: border-box;
}

.applications-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.applications-box-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.applications-box-list li {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Section titles ---------- */

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

/* ---------- Products + Contact row ---------- */

.products-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.products-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.product-home-card {
  width: auto;
  min-width: 0;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.product-home-card img {
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.85rem auto;
  border-radius: 8px;
  background: #f2f2f2;
}

.product-home-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.product-home-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.85) !important;
}

.product-home-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* ---------- Contact ---------- */

.contact-section {
  margin-top: 2.2rem;
}

.contact-box {
  width: 100%;
  max-width: 320px;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-sizing: border-box;
}

.contact-box-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #ffffff;
}

.contact-box-text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.92) !important;
}

.contact-box-email {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.contact-box-linkedin {
  margin-bottom: 0.9rem;
}

.contact-box-linkedin img {
  width: 32px;
  height: 32px;
  display: block;
}

.contact-box-address {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ---------- Footer ---------- */

.md-copyright,
.md-copyright__highlight,
.md-footer-meta__inner,
.md-footer-meta__inner a {
  font-size: 0.8rem !important;
  line-height: 1 !important;
}

/* ---------- Product pages ---------- */

.product-page-title {
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.2rem 0;
  text-align: center;
}

.product-simple-image img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
}

.home-bottom-space {
  height: 2rem;
}

/* ---------- Responsive ---------- */

/* @media (max-width: 1100px) {
  .home-hero-bottom {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .home-hero-apps {
    padding-top: 0;
  }

  .products-contact-row {
    grid-template-columns: 1fr;
  }

  .contact-box {
    max-width: 100%;
  }

  .md-tabs .md-grid {
    min-height: 76px;
    padding-right: 170px !important;
  }

  .md-tabs .md-grid::after {
    width: 130px;
    height: 48px;
  }

  .md-tabs__list,
  .md-tabs__link {
    min-height: 76px;
  }

  .home-hero-image-wide img {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .home-hero-title {
    font-size: 2.35rem;
  }

  .md-tabs .md-grid {
    padding-right: 0 !important;
  }

  .md-tabs .md-grid::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .products-home-grid {
    grid-template-columns: 1fr;
  }
} */

/* keep top nav always visible */
.md-tabs,
.md-tabs__inner,
.md-tabs .md-grid,
.md-tabs__list,
.md-tabs__item,
.md-tabs__link {
  transform: none !important;
  transition: none !important;
}

.md-tabs {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2000 !important;
  min-height: 88px !important;
  background: #7a7a7a !important;
  box-shadow: none !important;
}

.md-tabs__inner {
  min-height: 88px !important;
  background: transparent !important;
}

.md-tabs .md-grid {
  position: relative !important;
  min-height: 88px !important;
  display: flex !important;
  align-items: center !important;
  padding-right: 250px !important;
}

.md-tabs__list {
  min-height: 88px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.md-tabs__link {
  min-height: 88px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 0.5rem !important;
  line-height: 1 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #f2f2f2 !important;
}

/* prevent theme scroll-hiding logic from moving the bar */
[data-md-state] .md-tabs,
[data-md-state] .md-tabs__inner,
[data-md-state] .md-tabs .md-grid {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* push page content below fixed nav */
.md-main,
.md-main__inner,
.md-content {
  padding-top: 0.5rem !important;
}

.md-tabs__link {
  /* pointer-events: none !important; */
  /* cursor: default !important;
  text-decoration: none !important;
  color: inherit !important; */
  cursor: pointer !important;
  text-decoration: none !important;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .md-tabs {
    min-height: 72px !important;
  }

  .md-tabs .md-grid {
    min-height: 72px !important;
    padding-right: 150px !important;
  }

  .md-tabs__list,
  .md-tabs__item,
  .md-tabs__link {
    min-height: 72px !important;
  }

  .md-tabs__link {
    font-size: 0.92rem !important;
    padding: 0 0.3rem !important;
  }

  .md-tabs .md-grid::after {
    display: block !important;
    width: 120px !important;
    height: 42px !important;
    right: 0.7rem !important;
  }

  .md-main {
    margin-top: 72px !important;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 1100px) {
  .md-main {
    margin-top: 72px !important;
  }

  .md-tabs {
    min-height: 72px !important;
  }

  .md-tabs .md-grid {
    min-height: 72px !important;
    padding-right: 140px !important;
  }

  .md-tabs__list,
  .md-tabs__item,
  .md-tabs__link {
    min-height: 72px !important;
  }

  .md-tabs__link {
    font-size: 0.8rem !important;
    padding: 0 0.28rem !important;
  }

  .md-tabs .md-grid::after {
    width: 110px !important;
    height: 38px !important;
    right: 0.6rem !important;
  }

  .home-hero-bottom,
  .products-contact-row {
    grid-template-columns: 1fr !important;
  }

  .contact-box {
    max-width: 100% !important;
  }
}

@media (max-width: 700px) {
  html, body {
    overflow-x: hidden !important;
  }

  .md-main {
    margin-top: 56px !important;
  }

  .md-tabs {
    min-height: 56px !important;
  }

  .md-tabs .md-grid {
    min-height: 56px !important;
    padding-right: 85px !important;
  }

  .md-tabs__list,
  .md-tabs__item,
  .md-tabs__link {
    min-height: 56px !important;
  }

  .md-tabs__link {
    font-size: 0.6rem !important;
    padding: 0 0.12rem !important;
  }

  .md-tabs .md-grid::after {
    display: block !important;
    width: 68px !important;
    height: 24px !important;
    right: 0.45rem !important;
  }

  .home-hero-title {
    font-size: 1.35rem !important;
    line-height: 1.08 !important;
  }

  .home-hero-image-wide img {
    width: 92% !important;
    max-width: 320px !important;
  }

  .home-intro-text {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .home-hero-bottom {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .home-hero-features-box,
  .applications-box,
  .contact-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.95rem 1rem !important;
    box-sizing: border-box !important;
  }

  .home-hero-features-list li,
  .applications-box-list li,
  .product-home-text,
  .contact-box-text,
  .contact-box-email,
  .contact-box-address {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  .products-contact-row {
    grid-template-columns: 1fr !important;
  }

  .products-home-grid {
    grid-template-columns: 1fr !important;
  }

  .product-home-card img {
    height: 140px !important;
  }
}

.md-header a,
.md-tabs a,
.md-nav a,
.md-tabs__link,
.md-nav__link {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* EL product pages */

.el-product-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem 4rem;
  font-family: "IBM Plex Sans", sans-serif;
}

.el-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 2.4rem;
  align-items: center;
  margin-top: 0.4rem;
  margin-bottom: 3rem;
}

.el-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.68;
  margin-bottom: 0.7rem;
}

.el-product-title {
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95;
  font-weight: 760;
  letter-spacing: -0.055em;
  margin: 0 0 0.7rem;
}

.el-product-subtitle {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.35;
  font-weight: 520;
  opacity: 0.9;
  margin-bottom: 1.4rem;
}

.el-product-intro {
  font-size: 1.12rem;
  line-height: 1.75;
  opacity: 0.88;
  max-width: 100%;
}

/* CDV page layout */

/* CDV page layout */

.cdv-page {
  max-width: 1180px;
}

.cdv-page .el-product-hero {
  display: block;
  margin-top: 0.4rem;
  margin-bottom: 3rem;
}

.cdv-page .el-product-intro {
  max-width: 1180px;
  font-size: 1.25rem;
  line-height: 1.75;
}

.el-product-image-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.el-product-image-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.el-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.el-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.2rem;
}

.el-stat-value {
  font-size: 1.45rem;
  font-weight: 720;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.el-stat-label {
  font-size: 0.95rem;
  line-height: 1.35;
  opacity: 0.78;
}

.el-section {
  margin-top: 3rem;
}

.el-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.el-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.88;
}

.el-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.el-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 1.35rem 1.45rem;
}

.el-panel h3 {
  font-size: 1.25rem;
  font-weight: 680;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.el-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 1.05rem;
}

.el-panel li {
  margin-bottom: 0.52rem;
  line-height: 1.55;
  opacity: 0.9;
}

/* Specifications table */

.spec-table-wrap {
  margin-top: 1.3rem;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.spec-table th,
.spec-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.spec-table th {
  font-weight: 700;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.045);
}

.spec-table td {
  opacity: 0.9;
}

.spec-table tbody tr:last-child td {
  border-bottom: none;
}

.spec-table td:first-child {
  font-weight: 650;
  opacity: 0.78;
  white-space: nowrap;
}

/* Contact block */

.el-contact {
  margin-top: 2.4rem;
  font-size: 1.08rem;
}

.el-contact a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Mobile layout */

@media screen and (max-width: 900px) {
  .el-product-hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .el-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .el-two-col {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 560px) {
  .el-product-page {
    padding: 0.4rem 1rem 3rem;
  }

  .el-stat-grid {
    grid-template-columns: 1fr;
  }

  .el-product-image-card img {
    max-height: 260px;
  }
}

/* Products page internal navigation */

.el-product-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.1rem 1.2rem 4rem;
  font-family: "IBM Plex Sans", sans-serif;
}

/* Hide automatic MkDocs page title on product pages */
.md-content__inner > h1:first-child {
  display: none;
}

.el-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 2.4rem;
  align-items: center;
  margin-top: 0;
  margin-bottom: 3rem;
}


.products-side-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 2.8rem;
}

.products-side-nav a {
  display: block;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.products-side-nav a:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.products-side-nav span {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.products-side-nav small {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.76;
}

@media screen and (max-width: 820px) {
  .products-side-nav {
    grid-template-columns: 1fr;
    margin: 1.4rem 0 2.2rem;
  }

  .products-side-nav a {
    padding: 1rem 1.1rem;
  }
}

.el-dimensions-card {
  margin-top: 1.3rem;
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.el-dimensions-card img {
  width: 80%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 560px) {
  .el-dimensions-card {
    padding: 0.8rem;
  }

  .el-dimensions-card img {
    max-height: 420px;
  }
}

.el-mechanical-row {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 1rem;
}

.el-mechanical-row .el-dimensions-card {
  flex: 1 1 0;
  max-width: 50%;
  height: 400px;              /* adjust this */
  display: flex;
  align-items: center;
  justify-content: center;
}

.el-mechanical-row .el-dimensions-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 700px) {
  .el-mechanical-row {
    flex-direction: column;
  }

  .el-mechanical-row .el-dimensions-card {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .el-mechanical-row .el-dimensions-card img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

/* Simple content pages */

.el-simple-page {
  max-width: 1180px;
  margin: -3rem 0 0 0;
  padding: 0rem 1.2rem 4rem;
  font-family: "IBM Plex Sans", sans-serif;
}

.el-simple-page h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.055em;
  margin-bottom: 1.2rem;
}

.el-simple-lead {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.55;
  opacity: 0.88;
  margin-bottom: 2.4rem;
}

.el-coming-soon-card {
  padding: 1.6rem 1.7rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.el-coming-soon-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  font-weight: 720;
  letter-spacing: -0.035em;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.el-coming-soon-card p {
  font-size: 1.06rem;
  line-height: 1.7;
  opacity: 0.88;
  margin-bottom: 0;
}

/* Simple pages list spacing */

.el-simple-page ul {
  margin-top: 1.2rem;
  margin-bottom: 1.8rem;
  padding-left: 1.4rem;
}

.el-simple-page li {
  margin-bottom: 0.55rem;
  line-height: 1.6;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* CDV page layout override */

.cdv-page {
  max-width: 1280px !important;
  width: 100%;
}

.cdv-page .el-product-hero {
  display: block !important;
  max-width: 1280px !important;
  margin-top: 0 !important;
  margin-bottom: 3rem;
}

.cdv-page .el-product-hero > div {
  max-width: 1280px !important;
  width: 100% !important;
}

.cdv-page .el-product-intro {
  max-width: 1120px !important;
  width: 100% !important;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.65;
  opacity: 0.9;
}

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 2rem 0 2.2rem;
}

.about-card {
  padding: 1.35rem 1.45rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.about-card h2 {
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 720;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.about-card p {
  font-size: 1.02rem;
  line-height: 1.65;
  opacity: 0.88;
  margin-bottom: 0;
}

@media screen and (max-width: 900px) {
  .about-card-grid {
    grid-template-columns: 1fr;
  }
}

.el-simple-lead {
  max-width: 1050px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.35;
  font-weight: 620;
  letter-spacing: -0.025em;
  opacity: 0.96;
  margin-bottom: 2.2rem;
}

/* ==========================================================
   FINAL RESPONSIVE OVERRIDES
   Mobile / tablet cleanup
   Put this block at the VERY END of extra.css
   ========================================================== */

/* General safety */
* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Give content breathing room on smaller screens */
@media screen and (max-width: 1100px) {
  .md-grid {
    max-width: 100% !important;
  }

  .md-content__inner {
    max-width: 100% !important;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }

  .md-typeset p {
    max-width: 100% !important;
  }
}

/* ---------- Header / top nav responsive ---------- */

@media screen and (max-width: 900px) {
  .md-tabs {
    min-height: 64px !important;
  }

  .md-tabs__inner {
    min-height: 64px !important;
  }

  .md-tabs .md-grid {
    min-height: 64px !important;
    padding-right: 105px !important;
    padding-left: 0.55rem !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .md-tabs .md-grid::-webkit-scrollbar {
    display: none;
  }

  .md-tabs__list,
  .md-tabs__item,
  .md-tabs__link {
    min-height: 64px !important;
  }

  .md-tabs__list {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .md-tabs__link {
    font-size: 0.78rem !important;
    padding: 0 0.28rem !important;
  }

  .md-tabs .md-grid::after {
    width: 82px !important;
    height: 30px !important;
    right: 0.55rem !important;
  }

  .md-main {
    margin-top: 64px !important;
  }
}

@media screen and (max-width: 560px) {
  .md-tabs {
    min-height: 58px !important;
  }

  .md-tabs__inner {
    min-height: 58px !important;
  }

  .md-tabs .md-grid {
    min-height: 58px !important;
    padding-right: 74px !important;
    padding-left: 0.35rem !important;
  }

  .md-tabs__list,
  .md-tabs__item,
  .md-tabs__link {
    min-height: 58px !important;
  }

  .md-tabs__link {
    font-size: 0.66rem !important;
    padding: 0 0.16rem !important;
  }

  .md-tabs .md-grid::after {
    width: 58px !important;
    height: 22px !important;
    right: 0.4rem !important;
  }

  .md-main {
    margin-top: 58px !important;
  }
}

/* ---------- Homepage responsive ---------- */

@media screen and (max-width: 900px) {
  .home-hero {
    padding: 0.8rem 0 1.8rem 0 !important;
    margin-bottom: 1.6rem !important;
  }

  .home-hero-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem) !important;
    line-height: 1.12 !important;
    margin-bottom: 1.2rem !important;
  }

  .home-intro-text {
    max-width: 100% !important;
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
    margin: 1rem auto 1.4rem auto !important;
    padding: 0 0.4rem !important;
  }

  .home-hero-image-wide img {
    width: 82% !important;
    max-width: 520px !important;
  }

  .home-hero-bottom {
    grid-template-columns: 1fr !important;
    gap: 1.1rem !important;
  }

  .products-contact-row {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .products-home-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .contact-box {
    max-width: 100% !important;
  }
}

@media screen and (max-width: 620px) {
  .home-hero-title {
    font-size: 1.45rem !important;
  }

  .home-hero-image-wide img {
    width: 94% !important;
    max-width: 340px !important;
  }

  .products-home-grid {
    grid-template-columns: 1fr !important;
  }

  .product-home-card img {
    height: 150px !important;
  }

  .home-hero-features-box,
  .applications-box,
  .product-home-card,
  .contact-box {
    padding: 1rem !important;
  }

  .home-hero-features-list li,
  .applications-box-list li,
  .product-home-text,
  .contact-box-text,
  .contact-box-address {
    font-size: 0.92rem !important;
    line-height: 1.48 !important;
  }

  .product-home-name {
    font-size: 1.18rem !important;
  }

  .product-home-subtitle {
    font-size: 0.98rem !important;
  }
}

/* ---------- Product pages responsive ---------- */

@media screen and (max-width: 900px) {
  .el-product-page {
    max-width: 100% !important;
    padding: 0.5rem 1rem 3rem !important;
  }

  .el-product-hero {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 2.2rem !important;
  }

  .el-product-title {
    font-size: clamp(2.5rem, 10vw, 4rem) !important;
  }

  .el-product-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
    line-height: 1.35 !important;
  }

  .el-product-intro {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
  }

  .el-product-image-card {
    padding: 1rem !important;
  }

  .el-product-image-card img {
    max-height: 280px !important;
  }

  .el-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.9rem !important;
  }

  .el-two-col {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .el-panel {
    padding: 1.15rem 1.2rem !important;
  }

  .products-side-nav {
    grid-template-columns: 1fr !important;
  }
}

@media screen and (max-width: 560px) {
  .el-product-page {
    padding: 0.35rem 0.8rem 2.5rem !important;
  }

  .el-eyebrow {
    font-size: 0.78rem !important;
    letter-spacing: 0.06em !important;
  }

  .el-product-title {
    font-size: 2.4rem !important;
    letter-spacing: -0.04em !important;
  }

  .el-product-subtitle {
    font-size: 1.12rem !important;
  }

  .el-product-intro {
    font-size: 0.98rem !important;
  }

  .el-stat-grid {
    grid-template-columns: 1fr !important;
  }

  .el-stat {
    padding: 1rem !important;
  }

  .el-stat-value {
    font-size: 1.25rem !important;
  }

  .el-stat-label {
    font-size: 0.92rem !important;
  }

  .el-section {
    margin-top: 2.2rem !important;
  }

  .el-section h2 {
    font-size: 1.55rem !important;
  }

  .el-section p,
  .el-panel ul,
  .el-panel li {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
  }
}

/* ---------- Mechanical drawings responsive ---------- */

@media screen and (max-width: 900px) {
  .el-mechanical-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .el-mechanical-row .el-dimensions-card {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .el-dimensions-card {
    padding: 0.9rem !important;
  }

  .el-dimensions-card img {
    width: 100% !important;
    max-height: none !important;
  }
}

/* ---------- Tables responsive ---------- */

@media screen and (max-width: 760px) {
  .spec-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .spec-table {
    min-width: 620px !important;
    font-size: 0.9rem !important;
  }

  .spec-table td,
  .spec-table th {
    padding: 0.7rem 0.75rem !important;
  }

  .spec-footer-note {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }
}

/* ---------- Simple pages: About / Blog ---------- */

@media screen and (max-width: 900px) {
  .el-simple-page {
    max-width: 100% !important;
    margin: -1.2rem 0 0 0 !important;
    padding: 0 1rem 3rem !important;
  }

  .el-simple-lead {
    max-width: 100% !important;
    font-size: clamp(1.35rem, 5vw, 2rem) !important;
    line-height: 1.32 !important;
  }

  .el-simple-page p {
    max-width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .about-card-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .about-card {
    padding: 1.15rem 1.2rem !important;
  }
}

@media screen and (max-width: 560px) {
  .el-simple-page {
    margin: -0.6rem 0 0 0 !important;
    padding: 0 0.85rem 2.5rem !important;
  }

  .el-simple-lead {
    font-size: 1.35rem !important;
  }

  .el-coming-soon-card {
    padding: 1.1rem !important;
  }

  .about-card h2,
  .el-coming-soon-card h2 {
    font-size: 1.35rem !important;
  }

  .about-card p,
  .el-coming-soon-card p {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
  }
}

/* ---------- CDV page responsive ---------- */

@media screen and (max-width: 900px) {
  .cdv-page {
    max-width: 100% !important;
  }

  .cdv-page .el-product-hero {
    display: block !important;
    max-width: 100% !important;
  }

  .cdv-page .el-product-hero > div {
    max-width: 100% !important;
  }

  .cdv-page .el-product-intro {
    max-width: 100% !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
  }
}

/* ---------- Screenshot cards, if used later ---------- */

@media screen and (max-width: 820px) {
  .el-screenshot-grid {
    grid-template-columns: 1fr !important;
  }

  .el-screenshot-card img {
    max-height: 320px !important;
  }
}

/* ---------- Specs table: mobile-friendly two-column layout ---------- */

@media screen and (max-width: 760px) {
  .spec-table-wrap {
    overflow-x: visible !important;
    width: 100% !important;
  }

  .spec-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    font-size: 0.88rem !important;
  }

  .spec-table td,
  .spec-table th {
    padding: 0.65rem 0.55rem !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    vertical-align: top !important;
  }

  .spec-table td:first-child {
    width: 42% !important;
    white-space: normal !important;
  }

  .spec-table td:nth-child(2) {
    width: 58% !important;
    white-space: normal !important;
  }
}