/* NDT-inspired, consistent capability cards across product and service pages. */
:root {
  --cap-card-ink: #102536;
  --cap-card-copy: #526779;
  --cap-card-line: #cbd8e1;
  --cap-card-blue: #08aee0;
  --cap-card-wash: #f5f9fc;
  --cap-card-icon: #e8f2f7;
}

.card-grid {
  align-items: stretch;
  gap: 14px;
}
.card-grid > .card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 222px;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 20px 17px;
  border: 1px solid var(--cap-card-line);
  border-top: 3px solid var(--cap-card-blue);
  border-radius: 11px;
  background: linear-gradient(155deg, #fff 0%, var(--cap-card-wash) 100%);
  box-shadow: 0 8px 23px rgb(16 37 54 / 5%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.card-grid > .card:nth-child(3n + 2) {
  border-top-color: #53a8c8;
}
.card-grid > .card:hover {
  transform: translateY(-3px);
  border-color: #83b8ce;
  background: #fff;
  box-shadow: 0 14px 30px rgb(16 55 78 / 10%);
}
.card-grid > .card .card-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #d4e4ec;
  border-radius: 10px;
  background: var(--cap-card-icon);
  color: #147ca5;
  font: 700 11px 'DM Mono', ui-monospace, monospace;
}
.card-grid > .card h3 {
  margin: 15px 0 8px;
  color: var(--cap-card-ink);
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 680;
  line-height: 1.28;
  letter-spacing: -.025em;
}
.card-grid > .card p {
  flex: 1 0 auto;
  margin: 0;
  color: var(--cap-card-copy);
  font-size: 13px;
  line-height: 1.62;
}
.card-grid > .card .card-more {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #dbe6ec;
  color: #087fae;
  font-size: 12px;
  font-weight: 700;
}
.card-grid > .card .card-more:empty {
  display: none;
}

/* Embedded GUI & HMI capability cards */
.hmi-capabilities {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  border: 0;
}
.hmi-capabilities > article {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 194px;
  flex-direction: column;
  gap: 0;
  padding: 18px 19px 16px;
  border: 1px solid var(--cap-card-line);
  border-top: 3px solid var(--cap-card-blue);
  border-radius: 11px;
  background: linear-gradient(155deg, #fff 0%, var(--cap-card-wash) 100%);
  box-shadow: 0 8px 23px rgb(16 37 54 / 5%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hmi-capabilities > article:nth-child(3n + 2) {
  border-top-color: #53a8c8;
}
.hmi-capabilities > article:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: #83b8ce;
  background: #fff;
  box-shadow: 0 14px 30px rgb(16 55 78 / 10%);
}
.hmi-capabilities > article > span {
  width: 44px;
  height: 44px;
  border: 1px solid #d4e4ec;
  border-radius: 10px;
  background: var(--cap-card-icon);
  color: #147ca5;
  font-size: 11px;
}
.hmi-capabilities > article > div {
  margin-top: 14px;
}
.hmi-capabilities h3 {
  margin: 0 0 7px;
  color: var(--cap-card-ink);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.hmi-capabilities p {
  color: var(--cap-card-copy);
  font-size: 13px;
  line-height: 1.6;
}
.hmi-capabilities > article::after,
.codegen-capability-grid > article::after {
  width: 100%;
  height: 1px;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 15px;
  background: linear-gradient(#dbe6ec, #dbe6ec) left bottom / 100% 1px no-repeat;
  content: "";
}

/* Automation code-generation capability cards */
.codegen-capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  border: 0;
}
.codegen-capability-grid > article {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  padding: 18px 17px 15px;
  border: 1px solid var(--cap-card-line);
  border-top: 3px solid var(--cap-card-blue);
  border-radius: 11px;
  background: linear-gradient(155deg, #fff 0%, var(--cap-card-wash) 100%);
  box-shadow: 0 8px 23px rgb(16 37 54 / 5%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.codegen-capability-grid > article:nth-child(4n + 2) {
  border-top-color: #53a8c8;
}
.codegen-capability-grid > article:hover {
  transform: translateY(-3px);
  border-color: #83b8ce;
  background: #fff;
  box-shadow: 0 14px 30px rgb(16 55 78 / 10%);
}
.codegen-capability-grid > article > span {
  color: #14769a;
  font: 700 9px 'DM Mono', ui-monospace, monospace;
  letter-spacing: .1em;
}
.codegen-capability-grid h3 {
  margin: 14px 0 8px;
  color: var(--cap-card-ink);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.codegen-capability-grid p {
  flex: 1 0 auto;
  margin: 0;
  color: var(--cap-card-copy);
  font-size: 13px;
  line-height: 1.6;
}

/* Embedded engineering capability cards */
.firmware-capability-grid {
  align-items: stretch;
  gap: 13px;
}
.firmware-capability-grid > article {
  display: flex;
  min-width: 0;
  min-height: 232px;
  flex-direction: column;
  padding: 19px 19px 15px;
  border: 1px solid var(--cap-card-line);
  border-top: 3px solid var(--cap-card-blue);
  border-radius: 11px;
  background: linear-gradient(155deg, #fff 0%, var(--cap-card-wash) 100%);
  box-shadow: 0 8px 23px rgb(16 37 54 / 5%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.firmware-capability-grid > article:nth-child(3n + 2) {
  border-top-color: #53a8c8;
}
.firmware-capability-grid > article:hover {
  transform: translateY(-3px);
  border-color: #83b8ce;
  box-shadow: 0 14px 30px rgb(16 55 78 / 10%);
}
.firmware-capability-grid > article > span {
  color: #14769a;
  font-size: 9px;
}
.firmware-capability-grid h3 {
  margin: 13px 0 8px;
  color: var(--cap-card-ink);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.firmware-capability-grid p {
  flex: 1 0 auto;
  color: var(--cap-card-copy);
  font-size: 13px;
  line-height: 1.6;
}
.firmware-capability-grid > article > small {
  width: fit-content;
  max-width: 100%;
  margin-top: 15px;
  padding: 7px 9px;
  border: 1px solid #d8e7ed;
  border-radius: 999px;
  background: #eef5f8;
  color: #246c89;
  font-size: 8px;
  line-height: 1.3;
}

/* About page capability links */
.about-page .about-capability-grid {
  align-items: stretch;
  gap: 13px;
}
.about-page .about-capability {
  min-width: 0;
  min-height: 220px;
  padding: 19px 19px 16px;
  border: 1px solid var(--cap-card-line);
  border-top: 3px solid var(--cap-card-blue);
  border-radius: 11px;
  background: linear-gradient(155deg, #fff 0%, var(--cap-card-wash) 100%);
  box-shadow: 0 8px 23px rgb(16 37 54 / 5%);
}
.about-page .about-capability:nth-child(3n + 2) {
  border-top-color: #53a8c8;
}
.about-page .about-capability:hover {
  transform: translateY(-3px);
  border-color: #83b8ce;
  box-shadow: 0 14px 30px rgb(16 55 78 / 10%);
}
.about-page .about-capability .about-card-index {
  color: #14769a;
  font-size: 9px;
}
.about-page .about-capability h3 {
  margin: 14px 0 8px;
  color: var(--cap-card-ink);
  font-size: 17px;
  line-height: 1.3;
}
.about-page .about-capability p {
  margin: 0 0 14px;
  color: var(--cap-card-copy);
  font-size: 13px;
  line-height: 1.6;
}
.about-page .about-capability > b {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #dbe6ec;
  color: #087fae;
  font-size: 11px;
}

/* Keep every grid comfortable at tablet and phone widths. */
@media (max-width: 1100px) {
  .card-grid,
  .hmi-capabilities,
  .codegen-capability-grid,
  .firmware-capability-grid,
  .about-page .about-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .card-grid,
  .hmi-capabilities,
  .codegen-capability-grid,
  .firmware-capability-grid,
  .about-page .about-capability-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-grid > .card,
  .hmi-capabilities > article,
  .codegen-capability-grid > article,
  .firmware-capability-grid > article,
  .about-page .about-capability {
    min-height: 0;
  }
}


/* Readability pass: strengthen actual page copy while preserving small instrument telemetry. */
.hmi-contexts {
  gap: 13px;
}
.hmi-contexts > article {
  display: flex;
  min-width: 0;
  min-height: 205px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--cap-card-line);
  border-top: 3px solid var(--cap-card-blue);
  border-radius: 11px;
  background: linear-gradient(155deg, #fff 0%, var(--cap-card-wash) 100%);
  box-shadow: 0 8px 23px rgb(16 37 54 / 5%);
}
.hmi-contexts > article:nth-child(4n + 2) {
  border-top-color: #53a8c8;
}
.hmi-contexts > article > small {
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid #d4e4ec;
  border-radius: 6px;
  background: var(--cap-card-icon);
  color: #146f92;
  font: 700 9px 'DM Mono', ui-monospace, monospace;
  letter-spacing: .08em;
}
.hmi-contexts h3 {
  margin: 13px 0 7px;
  color: var(--cap-card-ink);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.hmi-contexts p {
  min-height: 0;
  flex: 1 0 auto;
  margin: 0;
  color: #4f6577;
  font-size: 13.5px;
  line-height: 1.58;
}
.hmi-contexts > article > span {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #dbe6ec;
  color: #315d73;
  font: 500 10px/1.5 'DM Sans', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0;
}

/* Generated-file cards use the same legible scale as the surrounding workflow. */
.codegen-artifact-grid {
  gap: 12px;
}
.codegen-artifact-grid > article {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--cap-card-line);
  border-top: 3px solid var(--cap-card-blue);
  border-radius: 11px;
  background: linear-gradient(155deg, #fff 0%, var(--cap-card-wash) 100%);
  box-shadow: 0 8px 23px rgb(16 37 54 / 5%);
}
.codegen-artifact-grid article > i {
  width: 38px;
  height: 38px;
  border: 1px solid #d4e4ec;
  border-radius: 9px;
  font-size: 10px;
}
.codegen-artifact-grid h3 {
  margin: 12px 0 7px;
  color: var(--cap-card-ink);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
}
.codegen-artifact-grid p {
  min-height: 0;
  flex: 1 0 auto;
  color: var(--cap-card-copy);
  font-size: 13px;
  line-height: 1.58;
}
.codegen-artifact-grid article > small {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #dbe6ec;
  color: #315d73;
  font: 500 9px/1.5 'DM Sans', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .02em;
}

/* Page-level descriptions and gallery captions stay readable on every screen. */
.firmware-workflow p,
.tech-card > p {
  font-size: 13px;
  line-height: 1.58;
}
.page-visual-tools p {
  color: #c6d7e0;
  font-size: 13px;
  line-height: 1.55;
}
.page-visual-card figcaption {
  font-size: 12px;
  line-height: 1.3;
  text-shadow: 0 1px 7px rgb(0 0 0 / 75%);
}
.ndt-products .ndt-product-card p {
  color: #465f72;
  font-size: 13px;
  line-height: 1.58;
}
.ndt-products .ndt-product-card > small {
  font-size: 9px;
}
.ndt-products .ndt-product-card > button {
  font-size: 12px;
}
.ndt-product-tabs button {
  font-size: 11px;
}

/* Raise the homepage's supporting copy to the same comfortable reading size. */
.home-page .home-foundations-grid p,
.home-page .home-approach-step p,
.home-page .home-overview-grid .home-solution-card p,
.home-page .home-solution-card p,
.home-page .home-why-card p {
  color: #4b6174;
  font-size: 13px;
  line-height: 1.58;
}
.home-app .card-more {
  font-size: 12px;
}

@media (max-width: 680px) {
  .page-visual-tools p {
    font-size: 12px;
    text-align: left;
  }
  .page-visual-card figcaption {
    font-size: 11px;
  }
}

.ndt-demo-ui:has(.paut-panel.is-current) .ndt-product-tabs button { font-size: 11px; }


/* HMI workflow steps: replace the ruled strip with clear, independent cards. */
.hmi-delivery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  border: 0;
}
.hmi-delivery > article,
.hmi-delivery > article:first-child {
  display: flex;
  min-width: 0;
  min-height: 218px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--cap-card-line);
  border-top: 3px solid var(--cap-card-blue);
  border-radius: 11px;
  background: linear-gradient(155deg, #fff 0%, var(--cap-card-wash) 100%);
  box-shadow: 0 8px 23px rgb(16 37 54 / 5%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hmi-delivery > article:nth-child(4n + 2) {
  border-top-color: #53a8c8;
}
.hmi-delivery > article:hover {
  transform: translateY(-3px);
  border-color: #83b8ce;
  box-shadow: 0 14px 30px rgb(16 55 78 / 10%);
}
.hmi-delivery article > b {
  width: 42px;
  height: 42px;
  border: 1px solid #d4e4ec;
  border-radius: 10px;
  background: var(--cap-card-icon);
  color: #147ca5;
  font: 700 11px 'DM Mono', ui-monospace, monospace;
}
.hmi-delivery h3 {
  margin: 14px 0 8px;
  color: var(--cap-card-ink);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.hmi-delivery p {
  min-height: 0;
  flex: 1 0 auto;
  margin: 0;
  color: var(--cap-card-copy);
  font-size: 13.5px;
  line-height: 1.58;
}
.hmi-delivery article > small {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #dbe6ec;
  color: #315d73;
  font: 600 10px/1.45 'DM Sans', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .025em;
}

/* Keep remaining explanatory copy and supporting labels easy to read. */
.card p {
  color: #4d6275;
  font-size: 13px;
  line-height: 1.6;
}
.ndt-products .ndt-product-card p {
  color: #465f72;
  font-size: 13.5px;
  line-height: 1.58;
}
.ndt-products .ndt-product-card > small {
  font-size: 9px;
}
.ndt-products .ndt-product-card > button {
  font-size: 12px;
}
.home-page .home-card-top,
.home-page .home-card-tags,
.home-page .home-why-card > span,
.home-page .home-industry-item > span,
.home-page .home-industry-item small,
.home-page .home-product-foot {
  font-size: 10px;
  line-height: 1.45;
}
.home-page .home-card-top {
  letter-spacing: .08em;
}
.home-page .home-card-tags {
  color: #43677c;
}
.home-page .home-product-foot a,
.home-page .home-link-row a {
  font-size: 12px;
}
.home-page .home-product-item small {
  font-size: 10px;
}
.ndtjob-card > span,
.ndtjob-coverage > span,
.ndtjob-findings > span {
  font-size: 9px;
  line-height: 1.45;
}
.enterprise-grid small,
.enterprise-grid span {
  font-size: 9px;
  line-height: 1.45;
}
.sample-card span,
.lab-results span {
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .hmi-delivery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .hmi-delivery {
    grid-template-columns: minmax(0, 1fr);
  }
  .hmi-delivery > article,
  .hmi-delivery > article:first-child {
    min-height: 0;
  }
}


/* Embedded GUI cross-links: balance the intro and make each destination scannable. */
.hmi-next {
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(22px, 3vw, 36px);
  border-color: #cbd8e1;
  border-radius: 12px;
  background: linear-gradient(130deg, #edf4f7 0%, #f4f8fb 100%);
}
.hmi-next h2 {
  max-width: 16ch;
  margin: 11px 0 12px;
  color: var(--cap-card-ink);
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.hmi-next > div:first-child > p {
  max-width: 39ch;
  margin: 0;
  color: #4d6376;
  font-size: 14px;
  line-height: 1.58;
}
.hmi-next-links {
  gap: 9px;
}
.hmi-next-links > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  min-height: 92px;
  padding: 13px 16px;
  border: 1px solid #cbd8e1;
  border-left: 3px solid var(--cap-card-blue);
  border-radius: 9px;
  background: linear-gradient(155deg, #fff 0%, #f8fbfd 100%);
  box-shadow: 0 5px 16px rgb(16 37 54 / 4%);
  color: var(--cap-card-ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hmi-next-links > a:nth-child(2) {
  border-left-color: #53a8c8;
}
.hmi-next-links > a:hover {
  transform: translateX(3px);
  border-color: #83b8ce;
  box-shadow: 0 9px 22px rgb(16 55 78 / 8%);
}
.hmi-next-links > a:focus-visible {
  outline: 3px solid rgb(8 174 224 / 38%);
  outline-offset: 2px;
}
.hmi-next-links small {
  color: #176f91;
  font: 700 9px/1.35 'DM Mono', ui-monospace, monospace;
  letter-spacing: .09em;
}
.hmi-next-links b {
  color: #102f43;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.32;
}
.hmi-next-links span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #526779;
  font-size: 13px;
  line-height: 1.4;
}
.hmi-next-links span i {
  flex: 0 0 auto;
  float: none;
  color: #087fae;
  font-size: 17px;
  font-style: normal;
}
@media (max-width: 760px) {
  .hmi-next {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .hmi-next h2 {
    max-width: 22ch;
    font-size: clamp(28px, 6vw, 36px);
  }
}
@media (max-width: 540px) {
  .hmi-next {
    padding: 18px;
  }
  .hmi-next-links > a {
    min-height: 0;
    padding: 12px;
  }
  .hmi-next-links b {
    font-size: 14px;
  }
  .hmi-next-links span {
    font-size: 12px;
  }
}
