/* PREPARED CANDIDATE ONLY. Not connected to the production build/publisher.
   Existing approved layouts, technical content and interactions are retained. */

/* The retained catalogue facts bar is navy, not the v2 paper surface. */
main#main-content[data-grades-v2] #grades-directory .gg-facts,
main#main-content[data-grades-v2] #grades-directory .gg-facts :is(dt, dd, .gg-note),
main#main-content[data-grades-v2] #grades-directory .gg-facts a:link,
main#main-content[data-grades-v2] #grades-directory .gg-facts a:visited,
main#main-content[data-grades-v2] #grades-directory .gg-facts a:hover,
main#main-content[data-grades-v2] #grades-directory .gg-facts a:active {
  color: #f3f2ec;
}
main#main-content[data-grades-v2] #grades-directory .gg-facts a.gg-button:is(:link, :visited, :hover, :active) {
  background: #315c3d;
  color: #fcfcf8;
}
main#main-content[data-grades-v2] #grades-directory .gg-facts a:focus-visible {
  color: #f3f2ec;
  outline: 3px solid #f3f2ec;
  outline-offset: 4px;
}

/* The frozen Grades header override uses !important. Counter it only in the
   dark support footer on that same Grades scope, not in light navigation. */
body.homepage-redesign:has(#main-content[data-grades-v2]) header.site-header .mobile-drawer__service a:is(:link, :visited, :hover, :active, :focus-visible) {
  color: #ffffff !important;
}
body.homepage-redesign:has(#main-content[data-grades-v2]) header.site-header .mobile-drawer__service .mobile-drawer__service-label {
  color: #a2c528 !important;
}
body.homepage-redesign:has(#main-content[data-grades-v2]) header.site-header .mobile-drawer__service a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Decorative connector overlays are useful only in their spatial desktop layout.
   The buttons, scene markers, detail panels and runtime remain untouched. */
@media (max-width: 1100px) {
  [data-approved-preview].approved-preview-mining #approved-mining-mining-scene12 .board > svg.lines {
    display: none;
  }
}
@media (max-width: 900px) {
  [data-approved-preview].approved-preview-bridge .explorer > svg.connections,
  [data-approved-preview].approved-preview-buildings .stage > svg.connectors,
  [data-approved-preview].approved-preview-automotive .stage > svg.connectors,
  [data-approved-preview].approved-preview-oil-gas .engineering > svg.connectors {
    display: none;
  }
}

/* Restore legibility in the two measured embedded official-shell headers. */
@media (min-width: 1101px) {
  body.homepage-redesign.native-application-page .os-site-header :is(.os-nav-group__button, .os-site-header__contact-link, .os-site-header__quote-link) {
    font-size: 13px;
    line-height: 1.35;
  }
}

/* Preserve the supply-summary RFQ destination and analytics attributes. */
main#main-content[data-grades-v2] .product-supply-summary__rfq a.source-port-button--primary:is(:link, :visited, :hover, :active, :focus-visible) {
  color: #ffffff;
  background: #1f5695;
  font-size: 16px;
  line-height: 1.4;
}
main#main-content[data-grades-v2] .product-supply-summary__rfq a.source-port-button--primary:focus-visible {
  outline: 3px solid #10202d;
  outline-offset: 4px;
}
