/* ===== Divine Precision issue fixes (R2-R45 batch) ===== */

/* R2: search empty error */
header .search_form .content {
  flex-wrap: wrap;
}
header .search_form .search_error {
  display: none;
  flex: 0 0 100%;
  order: -1;
  margin: 0 0 0.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 0.6rem;
  background: #fde8e8;
  color: #b42318;
  font-size: 1.4rem;
  line-height: 1.4;
}
header .search_form .search_error[hidden] {
  display: none !important;
}
header .search_form.has_error .search_error,
header .search_form .search_error:not([hidden]) {
  display: block !important;
}
header .search_form.has_error input[name="s"] {
  border-color: #d94a4a !important;
  outline-color: #d94a4a;
}

/* R3: language uppercase */
header .topbar .btn_lang {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* R5 / R8: quote modal - keep real CF7 submit hidden; only style label.btn (no duplicate) */
.quote_modal .modal_content .wpcf7-submit {
  display: none !important;
}
.quote_modal .modal_content label.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  float: none;
  margin: 0.4rem 0 0 auto;
  min-width: 18rem;
  height: 5.2rem;
  padding: 0 2.4rem;
  cursor: pointer;
}
/* Hide CF7 spinner from layout entirely —it only caused empty gaps */
.quote_modal .modal_content label.btn .wpcf7-spinner,
.quote_modal .modal_content .wpcf7-spinner {
  display: none !important;
  margin: 0 !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
}
/* Clean loading state on the visible button itself */
.quote_modal .modal_content form.submitting label.btn {
  pointer-events: none;
  opacity: 0.85;
  /* reserve room for the spinner so it never overlaps the label text */
  padding-right: 4.8rem;
}
.quote_modal .modal_content form.submitting label.btn::after {
  content: '';
  position: absolute;
  right: 1.6rem;
  top: 50%;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: -0.7rem;
  /* drop the arrow icon (mask + currentColor bg) that .btn.arrow::after draws, otherwise the loader is arrow-shaped/clipped */
  background: none;
  background-color: transparent;
  -webkit-mask: none;
  mask: none;
  box-sizing: border-box;
  transition: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sy_quote_spin 0.7s linear infinite;
}
.quote_modal .modal_content form.submitting label.btn:hover::after {
  transform: none;
  animation: sy_quote_spin 0.7s linear infinite;
}
@keyframes sy_quote_spin {
  to { transform: rotate(360deg); }
}
.quote_modal .modal_content .wpcf7-form .sy_submit_row,
.quote_modal .modal_content form.wpcf7-form > p:has(label.btn),
.quote_modal .modal_content form.wpcf7-form > p:last-of-type {
  display: flex;
  justify-content: flex-end;
  clear: both;
  margin-top: 0.8rem;
}
.quote_modal .modal_content .wpcf7-response-output {
  clear: both;
  margin: 1.6rem 0 0;
}

/* Quote modal: limit height + tighten spacing so form fits viewport */
.quote_modal {
  place-items: center;
  align-items: center;
  justify-items: center;
  padding: 2rem 1.6rem;
}
.quote_modal .modal_content {
  max-height: min(90vh, 78rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 3.2rem 3.2rem 2.4rem;
  -webkit-overflow-scrolling: touch;
}
.quote_modal .modal_content .head {
  margin-bottom: 0;
}
.quote_modal .modal_content .title {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.quote_modal .modal_content .desc {
  margin-bottom: 1.4rem;
  font-size: 1.5rem;
  line-height: 2.2rem;
}
.quote_modal .modal_content .row {
  gap: 1.2rem 1.6rem;
  margin-bottom: 0;
}
.quote_modal .modal_content label {
  margin-bottom: 1.2rem;
}
.quote_modal .modal_content label span {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}
.quote_modal .modal_content input[type="text"],
.quote_modal .modal_content input[type="email"],
.quote_modal .modal_content input[type="tel"],
.quote_modal .modal_content select,
.quote_modal .modal_content input[type="file"] {
  height: 4.4rem;
  min-height: 4.4rem;
  padding: 0 1.4rem;
  font-size: 1.4rem;
}
.quote_modal .modal_content textarea {
  height: 8rem;
  min-height: 8rem;
  padding: 1.1rem 1.4rem;
}
.quote_modal .modal_content input[type="file"] {
  height: auto;
  min-height: 0;
  padding: 1rem 1.4rem;
}
.quote_modal .modal_content label.btn {
  min-height: 4.8rem;
  height: 4.8rem;
  margin-top: 0.2rem;
}
@media screen and (max-width: 768px) {
  .quote_modal .modal_content {
    max-height: 92vh;
    padding: 4rem 1.6rem 2rem;
  }
  .quote_modal .modal_content .title {
    font-size: 2.2rem;
  }
  .quote_modal .modal_content textarea {
    height: 7.2rem;
    min-height: 7.2rem;
  }
}

/* R11: closed mega must not receive clicks */
.mega_mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(8, 16, 32, 0.35);
}
header.mega_open ~ .mega_mask,
body:has(header.mega_open) .mega_mask {
  display: block;
}
header nav .mega:not(.is_open) > .mega_panel {
  pointer-events: none !important;
  visibility: hidden;
}
header.mega_open nav .mega.is_open > .mega_panel {
  pointer-events: auto !important;
  visibility: visible;
}
/* after quote modal closed */
.quote_modal[style*="display: none"],
.quote_modal:not([style*="display: grid"]):not([style*="display:block"]) {
  pointer-events: none;
}
.quote_modal[style*="display: grid"],
.quote_modal[style*="display: block"] {
  pointer-events: auto;
}

/* R6: certificate carousel nav clickable, not clipped (incl. ~1114px) */
.home_certificate {
  overflow: visible;
}
.home_certificate .content,
.home_certificate .slider {
  overflow: visible;
}
.home_certificate .swiper {
  overflow: hidden;
}
.home_certificate .btn_prev,
.home_certificate .btn_next,
.home_certificate .swiper-button-prev,
.home_certificate .swiper-button-next,
.home_certificate .swiper_btns div {
  z-index: 5;
  pointer-events: auto !important;
  opacity: 1;
  cursor: pointer;
}
.home_certificate .btns,
.home_certificate .navs,
.home_certificate .swiper_btns {
  position: relative;
  z-index: 6;
}
@media screen and (min-width: 769px) and (max-width: 1400px) {
  .home_certificate .slider {
    padding: 0 6.4rem;
  }
  .home_certificate .swiper_btns .btn_prev {
    left: 0 !important;
  }
  .home_certificate .swiper_btns .btn_next {
    right: 0 !important;
  }
}

/* R7: FAQ answer / plus icon blue squares obscuring text */
.home_faqs .faq_item .answer,
.faqs_list .faq_item .answer,
.faq_item .answer {
  overflow: hidden;
}
.home_faqs .faq_item .question::after,
.home_faqs .faq_item .question::before,
.faq_item .question i,
.faq_item .question::after {
  flex-shrink: 0;
}
.home_faqs .pixels,
.home_faqs .faq_item .pixels {
  pointer-events: none;
}
/* prevent decorative fragments overlapping FAQ answers */
.home_faqs .list .faq_item.active .answer {
  position: relative;
  z-index: 2;
}
.home_faqs .faq_item .question {
  position: relative;
  z-index: 2;
}

/* R9: mobile mega — compact accordion; never force display on .open (breaks slideToggle) */
@media screen and (max-width: 768px) {
  header nav .mega_panel {
    visibility: visible !important;
  }
  /* Cap height when jQuery slideDown shows the panel */
  header nav .menu > li.mega > .mega_panel,
  header nav .menu > li.menu-item-has-children > .mega_panel {
    max-height: min(42vh, 320px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 4px !important;
    padding: 0 !important;
  }
  header nav .mega-products-panel .mega_item,
  header nav .mega_products_panel .mega_item,
  header nav .mega_list .mega_item,
  header nav .mega_list > li {
    margin: 0 !important;
  }
  header nav .mega_list .mega_item > a,
  header nav .mega_list > li > a,
  header nav .mega_card > a,
  header nav .mega_card.mega_cta > a,
  header nav .mega-products-panel .mega_card.mega_cta > a {
    display: block !important;
    padding: 6px 8px !important;
    line-height: 1.3 !important;
    font-size: 14px !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: auto !important;
    align-items: stretch !important;
    color: var(--text) !important;
    opacity: 1 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  /* Kill absolute overlay text that left ~251px empty CTA tiles */
  header nav .mega_card .mi_text,
  header nav .mega_card.mega_cta .mi_text {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    padding: 0 !important;
  }
  header nav .mega_list .mega_card .img,
  header nav .mega_list .mega_item .img,
  header nav .mega_card .mi_thumb,
  header nav .mega_card .mi_thumb img,
  header nav .mega_feature,
  header nav .mega_heading,
  header nav .mega_item .mi_text em,
  header nav .mega_card.mega_cta .mi_text em,
  header nav .mega_card > a::after,
  header nav .mega_card .mi_text strong::after,
  header nav .mega_item:not(.mega_card) > a::before {
    display: none !important;
  }
  header nav .mega_panel .mega_inner {
    display: block !important;
    padding: 0 0 4px !important;
  }
  header nav .mega-products-panel .mega_list.sub-menu,
  header nav .mega_list.sub-menu {
    display: block;
    grid-template-columns: none !important;
    gap: 0 !important;
  }
  header nav .mega_item .mi_text,
  header nav .mega_card .mi_text {
    position: static !important;
    display: block !important;
    padding: 0 !important;
  }
  header nav .mega_item .mi_text strong,
  header nav .mega_card .mi_text strong {
    display: block !important;
    padding: 0 !important;
    color: var(--text) !important;
    opacity: 1 !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
}

/* R10: desktop resources mega — boxed cards like megamenu.css */
@media screen and (min-width: 769px) {
  header nav .mega-resources-panel .mega_item > a {
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
  }
  header nav .mega-resources-panel .mega_item > a:hover {
    background-color: var(--light) !important;
    border-color: var(--line) !important;
  }
}
@media screen and (max-width: 768px) {
  header nav .mega-resources-panel .mega_item > a,
  header nav .menu > li .sub-menu > li > a,
  header nav .menu > li.menu-item-has-children .sub-menu a {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 10px 4px !important;
  }
  header nav .menu > li .sub-menu > li,
  header nav .mega-resources-panel .mega_item {
    border-bottom: 1px solid var(--line);
  }
  header nav .menu > li .sub-menu > li:last-child,
  header nav .mega-resources-panel .mega_item:last-child {
    border-bottom: 0;
  }
}

/* R12: footer menus accordion on mobile */
@media screen and (max-width: 768px) {
  footer .menus {
    display: block;
  }
  footer .menu_col {
    border-bottom: 1px solid var(--line);
    padding: 0;
  }
  footer .menu_col > strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
    font-size: 15px;
  }
  footer .menu_col > strong::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--title);
    border-bottom: 2px solid var(--title);
    transform: rotate(45deg);
    transition: transform 0.25s;
    margin-right: 4px;
  }
  footer .menu_col.is_open > strong::after {
    transform: rotate(-135deg);
    margin-top: 6px;
  }
  /* Closed by default via :not(.is_open). slideDown sets inline display so animation works. */
  footer .menu_col:not(.is_open) > .menu {
    display: none;
  }
  footer .menu_col > .menu {
    padding: 0 0 12px;
    overflow: hidden;
  }
  footer .menus,
  footer .right .menus,
  footer .top .menus {
    display: block !important;
  }
  footer .menu_col,
  footer .menu_col:nth-child(2),
  footer .menu_col:nth-child(3),
  footer .menu_col:last-child {
    width: 100% !important;
  }
  footer .menu_col .menu a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
  }
}

/* R13: back_top must not cover footer copyright */
footer .bot {
  padding-right: 6rem;
}
footer .back_top {
  bottom: 7rem;
}
@media screen and (max-width: 768px) {
  footer .bot {
    padding-right: 56px;
    padding-bottom: 8px;
  }
  footer .back_top {
    bottom: 72px;
    right: 12px;
  }
}

/* R17: brochures select dark theme */
.brochures_request select,
.brochures_request .wpcf7-select,
.brochures_request select.wpcf7-form-control {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 5rem;
  padding: 0 4rem 0 1.6rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background-color: rgba(8, 20, 48, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.4rem center;
  background-size: 1.2rem auto;
  color: #fff;
  font-size: 1.5rem;
}
.brochures_request select option {
  color: #15181c;
  background: #fff;
}

/* R18 / R19: brochures form — hide CF7 submit; only style label.btn (no duplicate) */
.brochures_request .wpcf7-submit,
.brochures_request input.wpcf7-submit,
.brochures_request input[type="submit"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.brochures_request label.btn,
.brochures_request label.btn.white {
  position: relative;
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: auto;
  min-width: 18rem;
  max-width: 100%;
  height: 5.4rem;
  margin: 0.8rem 0 0;
  padding: 0 2.4rem;
  border: 0 !important;
  border-radius: 0.8rem;
  background: #fff !important;
  color: var(--title) !important;
  font-family: 'Funnel Display', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: none !important;
}
.brochures_request label.btn .wpcf7-spinner,
.brochures_request .wpcf7-spinner {
  display: none !important;
}
.brochures_request form.submitting label.btn {
  pointer-events: none;
  opacity: 0.85;
}
.brochures_request form.submitting label.btn::after {
  content: '';
  width: 1.4rem;
  height: 1.4rem;
  background: none;
  background-color: transparent;
  -webkit-mask: none;
  mask: none;
  border: 2px solid rgba(21, 24, 28, 0.22);
  border-top-color: #15181c;
  border-radius: 50%;
  animation: sy_quote_spin 0.7s linear infinite;
}
.brochures_request .note,
.brochures_request p.note {
  clear: both;
  margin-top: 1.2rem !important;
  position: relative;
  z-index: 1;
}
.brochures_request .wpcf7-not-valid-tip {
  color: #ffb4a8 !important;
  font-size: 1.3rem !important;
  font-weight: 600;
  margin-top: 0.6rem;
}
.brochures_request .wpcf7-response-output {
  margin: 1.6rem 0 0 !important;
  padding: 1.2rem 1.4rem !important;
  border-radius: 0.8rem !important;
  border-width: 1px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  font-size: 1.4rem !important;
  line-height: 1.5 !important;
}
.brochures_request .wpcf7-validation-errors,
.brochures_request form.invalid .wpcf7-response-output,
.brochures_request .wpcf7-response-output.wpcf7-validation-errors,
.brochures_request .wpcf7-response-output.wpcf7-spam-blocked,
.brochures_request .wpcf7-response-output.wpcf7-aborted {
  border-color: #ff8a7a !important;
  background: rgba(180, 40, 30, 0.55) !important;
  color: #fff !important;
}
.brochures_request .wpcf7-mail-sent-ok,
.brochures_request .wpcf7-response-output.wpcf7-mail-sent-ok {
  border-color: #7ddea0 !important;
  background: rgba(20, 120, 70, 0.5) !important;
  color: #fff !important;
}
.brochures_request textarea,
.brochures_request .wpcf7-textarea {
  margin-bottom: 0.4rem;
}

/* R33: banner text not constrained too narrow */
.faqs_banner .tcon,
.contact_banner .tcon,
[class*="_banner"] .tcon,
.img_bg.faqs_banner .tcon {
  max-width: min(72rem, 100%);
}
.ind1_banner .tcon,
.ind_banner .tcon,
section[class*="ind_banner"] .tcon,
section[class*="banner"] .tcon.light {
  max-width: min(90rem, 100%);
}

/* R36 / R37 quality text overlap & spacing - approximate */
.quality_page .overlap_fix,
.quality .text_block,
section.quality .content {
  position: relative;
  z-index: 2;
}
.cap6_quality,
.quality6,
section[class*="quality"] .tcon {
  padding-bottom: 2rem;
}

/* R39: image zoom transition */
.brochures_list .img img,
.resources_brochures .img img,
.case_list .img img,
.components_series .img img,
.resources_gallery .mosaic .img img,
.capability_gallery .mosaic .img img {
  transition: transform 0.45s ease;
}
.brochures_list .img:hover img,
.resources_brochures .img:hover img,
.case_list li:hover .img img,
.components_series li:hover .img img,
.resources_gallery .mosaic .img:hover img,
.capability_gallery .mosaic .img:hover img {
  transform: scale(1.05);
}

/* R41: blog featured image radius + spacing */
.article_body .post_detail img,
.article_banner .img img,
.single-post .post_detail img,
.resources_news .img,
.resources_news .img img {
  border-radius: 1.2rem;
}
.article_body {
  padding-bottom: 4rem;
}
.article_related {
  margin-top: 2rem;
}

/* R42: remove large empty gaps in article */
.article_body .post_detail > p:empty,
.article_body .post_detail > div:empty {
  display: none;
}
.article_body .post_detail p + p {
  margin-top: 1.2rem;
}

/* Loading spinner for filters (R25) */
.sy_filter_loading {
  position: relative;
  pointer-events: none;
  opacity: 0.55;
}
.sy_filter_loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(18, 100, 177, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: sy_spin 0.7s linear infinite;
  z-index: 5;
}
@keyframes sy_spin {
  to { transform: rotate(360deg); }
}

/* Tablet 2-col / full-width helpers used across list pages */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .content {
    max-width: none;
    width: 100%;
  }
  .industries_list .list,
  .capability_gallery .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .industries_list .list > li.big {
    grid-column: 1 / -1 !important;
  }
  .case_list ul,
  .components_series ul,
  .industries_list ul,
  .brochures_list ul,
  .resources_news ul,
  .resources_cases ul,
  .resources_brochures ul,
  .home_industries ul,
  .capability_machining ul,
  .capability_finishing ul,
  .cap_gallery ul,
  .comp_applications ul,
  .ind_parts ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  .case_list ul > li,
  .components_series ul > li,
  .industries_list ul > li,
  .brochures_list ul > li,
  .resources_news ul > li,
  .resources_cases ul > li,
  .resources_brochures ul > li,
  .home_industries ul > li,
  .capability_machining ul > li,
  .capability_finishing ul > li,
  .cap_gallery ul > li,
  .comp_applications ul > li,
  .ind_parts ul > li {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
  }
  /* R21/R24/R27: full bleed sections on tablet */
  .capability_machining .content,
  .capability_finishing .content,
  .capability_engineering .content,
  .cap_overview .content,
  .components_drawing .content,
  .comp_specs .content {
    max-width: 100%;
    padding-left: 2.4rem;
    padding-right: 2.4rem;
  }
}

/* R31 / R44: edge padding on mobile */
@media screen and (max-width: 768px) {
  .content {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  .content .content {
    padding-left: 0;
    padding-right: 0;
  }
}


/* R30: technical data tables */
.comp_specs .tables,
.tech_data .tables,
.sy_tech_tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}
.comp_specs table,
.tech_data table,
.sy_tech_table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 1rem 2.8rem rgba(11, 20, 46, 0.08);
  background: #fff;
}
.comp_specs table thead th,
.tech_data table thead th,
.sy_tech_table thead th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  padding: 1.4rem 1.8rem;
  font-family: 'Funnel Display', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
}
.comp_specs table td,
.tech_data table td,
.sy_tech_table td {
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  color: var(--text);
  vertical-align: top;
}
.comp_specs table td:first-child,
.tech_data table td:first-child,
.sy_tech_table td:first-child {
  color: var(--title);
  font-weight: 600;
  width: 42%;
}
.comp_specs table tr:last-child td,
.tech_data table tr:last-child td {
  border-bottom: 0;
}
@media screen and (max-width: 768px) {
  .comp_specs .tables,
  .tech_data .tables,
  .sy_tech_tables {
    grid-template-columns: 1fr;
  }
}

/* R23 process / finishing / quality tabs — only active panel visible */
.cap_process .panels > *:not(.active),
.quality_process .panels > *:not(.active) {
  display: none !important;
}
.cap_process .panels > *.active,
.quality_process .panels > *.active {
  display: block !important;
}
.capability_finishing .panels > li:not(.active),
.cap_quality .panels > li:not(.active) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
.capability_finishing .panels > li.active,
.cap_quality .panels > li.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

/* R28 */
.comp_hero .thumbs li { cursor: pointer; }
.comp_hero .thumbs li.active {
  outline: none;
}

/* R34 industry banner title highlight */
.ind_banner h1 em,
.ind1_banner h1 em,
section[class*="ind_banner"] h1 em {
  color: var(--secondary);
  font-style: normal;
}
.ind_banner h1,
.ind1_banner h1 {
  color: #fff;
}

/* R37 */
.quality_process .content,
.cap_process .content { padding-bottom: 3.2rem; }

/* R36-quality-float: keep quality_intro .float absolute on photo; only tame other cards */
.quality_intro .card,
.quality_standards .float_card,
.quality_standards .badge,
.about_quality .card,
section.quality .img .card,
.quality_and_service .card,
.qs_card,
.overlap_card {
  position: relative;
  z-index: 2;
  max-width: 28rem;
}
section[class*="quality"] .tcon,
section[class*="quality"] .text,
.quality_intro .text,
.quality_standards .text,
.quality_intro .info {
  position: relative;
  z-index: 3;
}
/* quality_intro float stays over the photo; pin inside .side so it never covers .info */
.quality_intro .side {
  position: relative;
  z-index: 1;
  overflow: visible;
}
/* default: float keeps original position (right:-5.4rem, bottom:0); moves inside the photo only when space gets tight */
/* below 1480px the content gets side padding, the column gap drops under the float's 5.4rem overhang */
@media screen and (min-width: 769px) and (max-width: 1480px) {
  .quality_intro .float {
    left: 2.4rem;
    right: auto;
    bottom: 2.4rem;
    width: min(33.6rem, calc(100% - 4.8rem));
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .quality_intro .float {
    left: 1.6rem;
    bottom: 1.6rem;
    width: min(26rem, calc(100% - 3.2rem));
  }
}
@media screen and (max-width: 1024px) {
  .overlap_card,
  .qs_card {
    position: static !important;
    margin: 1.6rem 0;
    max-width: 100%;
  }
}
@media screen and (max-width: 768px) {
  /* theme already stacks; reinforce so float never overlays copy */
  .quality_intro .float {
    position: static !important;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin-top: 14px;
  }
}

/* R30 list-as-table mirror */
.comp_specs ul.tables { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.4rem; align-items: stretch; margin-left: 0; margin-right: 0; padding: 0; }
/* Equal-height spec tables: each li fills its grid cell, the table fills the li */
.comp_specs ul.tables > li {
  display: flex;
  min-width: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}
.comp_specs ul.tables > li > table {
  flex: 1 1 auto;
  height: 100%;
}
/* Mobile: single column, tighter type, wrap long values */
@media screen and (max-width: 768px) {
  .comp_specs ul.tables {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
  }
  .comp_specs ul.tables > li > table {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(11, 20, 46, 0.08);
  }
  .comp_specs ul.tables table thead th {
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.3;
  }
  .comp_specs ul.tables table td {
    padding: 11px 16px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .comp_specs ul.tables table td:first-child {
    width: 40%;
    font-size: 13px;
  }
}


/* page_cta pixels under 1000px: do not cover / block other sections */
@media screen and (max-width: 1000px) {
  .page_cta {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }
  .page_cta > .pixels {
    display: none !important;
    pointer-events: none !important;
  }
}


/* Header: Quote farthest right when search + menu icons both show */
header .btns {
  display: flex;
  align-items: center;
}
header .btn_search { order: 1; }
header .btn_menu { order: 2; }
header .btn_quote { order: 3; }
@media screen and (max-width: 768px) {
  header .btn_menu {
    margin-left: 14px;
    margin-right: 0;
  }
  header .btn_quote {
    margin-left: 12px;
  }
}

/* FAQ text stays above the quote-band pixels that hang upward */
.home_faqs {
  position: relative;
  z-index: 4;
  background: #fff;
}
.page_cta > .pixels {
  pointer-events: none;
}

/* Related component cards: spec rows from the design */
.comp_related .specs {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.comp_related .specs li {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.4rem;
  line-height: 1.4;
}
.comp_related .specs span { color: var(--text); }
.comp_related .specs strong {
  color: var(--title);
  font-weight: 600;
  text-align: right;
}

/* Industry detail banner feature chips */
.ind_banner .features,
.ind1_banner .features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.ind_banner .features li,
.ind1_banner .features li {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.3;
}

/* Banner copy full-width on 600-1024 (tablet + large phone); keep PC (>1024) original max-width */
@media screen and (min-width: 600px) and (max-width: 1024px) {
  [class*="_banner"] .tcon,
  [class*="_banner"] .tcon p,
  [class*="_banner"] .tcon h1 {
    max-width: none !important;
  }
}

/* Default pages (Privacy Policy, Terms) */
html {
  background: #fff;
}
body .page_default {
  background: #fff;
}
.page_default .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 2rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
}
.page_default .crumbs li {
  display: flex;
  align-items: center;
  list-style: none;
}
.page_default .crumbs li + li::before {
  content: '/';
  margin: 0 1rem;
  color: #b0b7c0;
}
.page_default .crumbs a {
  color: var(--text);
  text-decoration: none;
}
.page_default .crumbs a:hover {
  color: var(--primary);
}
.page_default .crumbs li:last-child {
  color: var(--title);
}
.page_default h1 {
  margin: 0 0 2.8rem;
  color: var(--title);
  font-family: 'Funnel Display', sans-serif;
  font-size: 4.8rem;
  font-weight: 600;
  line-height: 1.15;
}
.page_default .post_detail {
  max-width: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.85;
}
/* Saved content sometimes wraps the body in another .content; don't treat that as the site container. */
.page_default .post_detail .content {
  max-width: none;
  margin: 0;
  padding: 0;
}
.page_default .post_detail h2,
.page_default .post_detail h3,
.page_default .post_detail h4 {
  color: var(--title);
  font-family: 'Funnel Display', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}
.page_default .post_detail h2 {
  margin: 3.2rem 0 1.2rem;
  font-size: 2.8rem;
}
.page_default .post_detail h2:first-child,
.page_default .post_detail > :first-child > h2:first-child {
  margin-top: 0;
}
.page_default .post_detail h3 {
  margin: 2.4rem 0 0.8rem;
  font-size: 2rem;
}
.page_default .post_detail h4 {
  margin: 2rem 0 0.6rem;
  font-size: 1.8rem;
}
.page_default .post_detail p,
.page_default .post_detail ul,
.page_default .post_detail ol {
  margin: 0 0 1.6rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.page_default .post_detail a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
.page_default .post_detail a:hover {
  color: var(--secondary);
}
.page_default .post_detail ul,
.page_default .post_detail ol {
  padding-left: 1.8rem;
}
.page_default .post_detail ul li {
  list-style: disc;
  margin: 0.4rem 0;
}
.page_default .post_detail ol li {
  list-style: decimal;
  margin: 0.4rem 0;
}
/* Capability machining cards: 2-up only above 600px; below 600px single column so overlay text stays readable */
@media screen and (min-width: 601px) and (max-width: 768px) {
  body .capability_machining .list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 600px) {
  body .capability_machining .list {
    grid-template-columns: 1fr !important;
  }
  body .capability_machining .list li {
    aspect-ratio: 16 / 10;
    min-height: 220px;
  }
  body .capability_machining .list .info {
    padding: 0 16px 16px;
  }
  body .capability_machining .list h3 {
    font-size: 18px;
    line-height: 1.25;
  }
  body .capability_machining .list p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
  }
  body .capability_machining .list .more {
    margin-top: 10px;
    font-size: 14px;
  }
}

/* Component hero: keep gallery|info side-by-side below 1500px with a clearer gap */
@media screen and (min-width: 1025px) and (max-width: 1500px) {
  body .comp_hero .wrap {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4.8rem;
  }
  body .comp_hero .gallery {
    width: 58rem;
    max-width: calc(52% - 2.4rem);
    flex: 0 1 auto;
  }
  body .comp_hero .info {
    width: 56rem;
    max-width: calc(48% - 2.4rem);
    flex: 1 1 auto;
    min-width: 0;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  body .comp_hero .wrap {
    flex-wrap: nowrap;
    gap: 3.6rem;
  }
  body .comp_hero .gallery {
    width: 44%;
    max-width: none;
  }
  body .comp_hero .info {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }
}
/* Components series: 2-up from 601-768; single column only below 600px */
@media screen and (min-width: 601px) and (max-width: 768px) {
  body .components_series .list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
  }
  body .components_series .list > li.big {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
@media screen and (max-width: 600px) {
  body .components_series .list {
    grid-template-columns: 1fr !important;
  }
  body .components_series .list > li,
  body .components_series .list > li.big {
    grid-column: auto;
    grid-row: auto;
  }
}
@media screen and (max-width: 768px) {
  .page_default h1 {
    font-size: 32px;
  }
  .page_default .post_detail h2 {
    font-size: 22px;
  }
  .page_default .post_detail h3 {
    font-size: 18px;
  }
  .page_default .post_detail h4 {
    font-size: 16px;
  }
  .page_default .post_detail {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* quality_intro .reverse <=768: fix uneven gaps (info is first; no image-above padding) */
@media screen and (max-width: 768px) {
  .quality_intro .content.reverse {
    margin-top: 56px;
  }
  .quality_intro .content.reverse .info {
    padding-top: 0;
  }
  .quality_intro .content.reverse .side {
    margin-top: 24px;
  }
  .quality_intro .content.reverse .info .btn {
    margin-top: 22px;
  }
}

/* Industry processes: 2-up from 601-768; single column only below 600px */
@media screen and (min-width: 601px) and (max-width: 768px) {
  body .ind_processes .list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}
@media screen and (max-width: 600px) {
  body .ind_processes .list {
    grid-template-columns: 1fr !important;
  }
}

/* Resources news: 2-up from 601-768; single column only below 600px */
@media screen and (min-width: 601px) and (max-width: 768px) {
  body .resources_news .list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}
@media screen and (max-width: 600px) {
  body .resources_news .list {
    grid-template-columns: 1fr !important;
  }
}

/* Article body WP images: more space above, less below */
.article_body .post_detail figure.wp-block-image,
.article_body .post_detail .wp-block-image {
  margin: 4.8rem 0 2.2rem;
}
.article_body .post_detail figure.wp-block-image img,
.article_body .post_detail .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.6rem;
}
@media screen and (max-width: 768px) {
  .article_body .post_detail figure.wp-block-image,
  .article_body .post_detail .wp-block-image {
    margin: 28px 0 16px;
  }
  .article_body .post_detail figure.wp-block-image img,
  .article_body .post_detail .wp-block-image img {
    border-radius: 10px;
  }
}

/* article_related → page_cta: kill leftover gap ≤1000 (theme CSS loads after issue-fixes) */
@media screen and (max-width: 1000px) {
  body section.article_related {
    padding-bottom: 3.2rem !important;
  }
  body section.page_cta {
    padding-top: 0 !important;
  }
}
@media screen and (min-width: 769px) and (max-width: 1000px) {
  body section.article_related {
    padding-top: 6rem !important;
    padding-bottom: 3.2rem !important;
  }
}
@media screen and (max-width: 768px) {
  body section.article_related {
    padding-bottom: 32px !important;
  }
  body section.page_cta {
    padding-top: 0 !important;
  }
}

/* service_supply: keep left/right columns from hugging near ~1028 */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  body .service_supply .content,
  body .service_supply .content.reverse {
    gap: 4.8rem;
    align-items: center;
  }
  body .service_supply .info {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 58%;
  }
  body .service_supply .side {
    width: 36%;
    flex-shrink: 0;
  }
}

/* service_list: 2-up from 601-768; single column only below 600px */
@media screen and (min-width: 601px) and (max-width: 768px) {
  body .service_list .list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }
  body .service_list .list > li.big,
  body .service_list .list > li.dark {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
@media screen and (max-width: 600px) {
  body .service_list .list {
    grid-template-columns: 1fr !important;
  }
  body .service_list .list > li.big,
  body .service_list .list > li.dark {
    grid-column: auto;
  }
}
/* quality_intro .checks: tighter gap above on mobile (page css is compiled in fronteditor, so override here) */
@media screen and (max-width: 768px) {
  .quality_intro .content .checks {
    margin-top: 12px;
    padding-top: 12px;
  }
}

/* comp_related: mobile bottom spacing before the CTA/footer */
@media screen and (max-width: 768px) {
  body section.comp_related {
    padding-bottom: 50px !important;
  }
}

/* home_industries: bg cross-fade. The outgoing panel stays fully opaque underneath until the incoming one has faded in on top, so there is no dip to the dark background. */
.home_industries .tab_box .panels > li {
  opacity: 1;
  z-index: 0;
  transition: visibility .05s linear .55s;
}
.home_industries .tab_box .panels > li.active {
  z-index: 1;
  transition: visibility 0s linear 0s;
}
.home_industries .tab_box .panels > li .bg {
  opacity: 0;
  transition: opacity .05s linear .55s;
}
.home_industries .tab_box .panels > li.active .bg {
  opacity: 1;
  transition: opacity .6s ease;
}
.home_industries .tab_box .panels > li .content {
  opacity: 0;
  transition: opacity .3s ease;
}
.home_industries .tab_box .panels > li.active .content {
  opacity: 1;
  transition: opacity .6s ease .15s;
}
