/* Responsive overrides for legacy fixed-width templates */
@media (max-width: 1024px) {
  *, *::before, *::after { box-sizing: border-box; }
  * { max-width: 100%; }
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  img { max-width: 100%; height: auto; }
  table, iframe, video, pre, code { max-width: 100%; }

  #header, #menubar, #banner, #wrapper, #main, #footer, #foot, #foot2, #abouts,
  #productbar, #productbar1, #productbar2, #productbar3, #productbar4,
  #position, .product_section, .product_unit, .product_main, .product_img,
  .relations, #news, #service, #friend, .news, #sidebar,
  #product_detail, #product_list, #support_list, #company_list, #download_list, #news_detail,
  .detail_unit, .pbtn_list, .maininfo, .detail_unit .info, .detail_unit h3,
  .support_unit, .company_unit, .support_unit .img, .support_unit .info,
  .company_unit .img, .company_unit .info, .download_unit,
  .container, .wrapper, .hero, .hero-support, .section, .guide-category,
  .product-card, .download-card, .feature-card, .resource-card, .community-card, .faq-item,
  .two-column, .features-grid, .products-grid, .downloads-grid, .resources-grid,
  .community-grid, .cards-grid, .product-grid, .faq-grid {
    width: 100% !important;
    max-width: 100% !important;
  }

  #header { height: auto; min-height: 90px; background-size: cover; }
  #logo {
    position: static;
    width: 100% !important;
    max-width: 370px;
    margin: 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  #logo a { width: 100%; }

  #menubar { width: 100% !important; height: auto; background: #2c3e50; }
  .menu_list { width: 100% !important; }
  #menu { display: flex; flex-wrap: wrap; justify-content: center; }
  #menubar li { float: none; }
  #menubar a { padding: 8px 10px; line-height: 1.5; font-size: 15px; }
  #menubar ul ul, #menubar ul ul ul {
    position: static; width: 100%; display: none;
    border: 0; background: transparent;
  }
  #menubar li:hover > ul, #menubar li:focus-within > ul { display: block; }
  #menubar ul ul li a { width: auto; height: auto; padding: 6px 10px; font-size: 13px; }
  #menu > li > img { display: none; }

  /* Footer */
  #footer { display: block; padding: 18px 12px 14px; }
  #footer > br { display: none; }
  #foot, #foot2 {
    width: 100% !important;
    height: auto;
    min-height: 0;
    overflow: visible;
    display: block;
    margin: 0 auto;
    text-align: center;
  }
  #menubar_foot { width: 100%; }
  #menubar_foot ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 0;
  }
  #menubar_foot li { float: none; display: inline-block; }
  #menubar_foot li a { padding: 6px 8px; font-size: 13px; line-height: 1.5; }
  #copyright {
    float: none;
    padding: 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
  }
  #foot2 { margin-top: 8px; }

  #content { width: 100% !important; padding: 10px !important; }
  #sidebar { float: none; width: 100% !important; }
  #position { height: auto; }
  .product_section .img, .product_section .introduction,
  .support_unit .img, .support_unit .info,
  .company_unit .img, .company_unit .info { float: none !important; width: 100% !important; }
  .product_section .btn { position: static !important; left: auto; bottom: auto; }
  #product_detail .detail_unit .img { float: none; padding: 0 0 10px; }
  .maininfo { padding: 0 !important; }

  .two-column, .features-grid, .products-grid, .downloads-grid, .resources-grid,
  .community-grid, .cards-grid, .product-grid, .faq-grid { grid-template-columns: 1fr !important; }
  .hero h1, .hero-support h1 { font-size: 2rem; }
  #product_detail h1, #product_detail h2 { font-size: 1.35rem; }
  #product_detail, #product_list, #support_list, #company_list, #download_list, #news_detail { padding: 16px !important; }
}

@media (max-width: 640px) {
  #menubar a { font-size: 14px; padding: 6px 8px; }
  .hero h1, .hero-support h1 { font-size: 1.6rem; }
  #logo { max-width: 320px; }
  #header { background-size: auto 90px; }
  #product_detail h1, #product_detail h2 { font-size: 1.2rem; }
  #product_detail, #product_list, #support_list, #company_list, #download_list, #news_detail { padding: 10px !important; }

  /* Footer: hide "|" separators and give links room to wrap */
  #menubar_foot li:nth-child(even) { display: none; }
  #menubar_foot li a { padding: 6px 10px; }
  #footer { padding: 16px 10px 12px; }
  #copyright { font-size: 11.5px; }
}

/* Standards & references blocks on technical articles */
.seo-references {
  margin: 28px 0 0;
  padding: 16px 18px;
  border-top: 1px solid #d6d3cc;
  background: #faf9f7;
  font-size: 13px;
  line-height: 1.65;
  color: #333;
}
.seo-references h2 {
  font-size: 15px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: #1e3a5f;
}
.seo-references p { margin: 0 0 8px; }
.seo-references ul { margin: 0 0 8px 18px; padding: 0; }
.seo-references li { margin: 4px 0; }
.seo-references__meta { color: #6b7280; font-size: 12px; margin: 8px 0 0; }
