/* EPTEK control contrast and narrow-screen refinements, 2026-11-14 */
/* The shared link colour must not replace text on filled controls. */
body.eptek-complete a.btn:not(.secondary):not(.outline),
body.eptek-complete button.btn:not(.secondary):not(.outline),
body.eptek-complete a.button.button-primary,
body.eptek-complete button.button.button-primary,
body.eptek-complete .pd-project a,
body.eptek-complete .pd-project a:visited,
body.eptek-complete .paste-upgrade a.p-button,
body.eptek-complete .resin-upgrade a.rx-button,
body.eptek-complete .e-button:not(.outline) {
  color:#fff!important;
}
body.eptek-complete .pd-project a:hover,
body.eptek-complete .pd-project a:focus-visible {
  background:#943b10;
}
body.eptek-complete .pd-project a:focus-visible {
  outline:2px solid #fff;
  outline-offset:3px;
}
/* The legacy primary-button hover orange was too light for small white text. */
body.eptek-complete .button.button-primary:hover,
body.eptek-complete .button.button-primary:focus-visible {
  background:#b94c17;
  border-color:#b94c17;
}
body.eptek-complete a.btn.secondary,
body.eptek-complete a.btn.outline {
  color:#152d38;
}
body.eptek-complete .compare-tray button.secondary,
body.eptek-complete .compare-tray a.btn.secondary {
  background:#fff;
  color:#152d38;
}
/* Table headers own their foreground: white on dark heads, dark on light heads. */
body.eptek-complete table th a {
  color:inherit!important;
}
/* Keep the PDF and weight-calculator actions distinct from paragraph links. */
body.eptek-complete #properties .two-col > div > a {
  display:block;
  width:fit-content;
  max-width:100%;
  margin-top:12px;
  line-height:1.65;
}
body.eptek-complete #properties .two-col > div > a + a {
  margin-top:10px;
}
@media(max-width:640px) {
  body.eptek-complete main h1 {
    text-wrap:balance;
    max-width:100%;
  }
}
