.photomask-family-intro {
  max-width: 780px;
  margin-bottom: 36px;
}

.photomask-family-intro h2,
.photomask-family-selection h2,
.photomask-selection-axes h2,
.photomask-family-inquiry h2,
.photomask-engineering h2 {
  color: #171717;
  font-weight: 500;
  letter-spacing: 0;
}

.photomask-family-intro p {
  max-width: 72ch;
  margin: 12px 0 0;
  color: #171717;
  font-size: 16px;
  line-height: 1.72;
}

.photomask-family-catalog .feature-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 22px;
}

.photomask-family-catalog .feature-catalog-title {
  font-size: 19px;
}

@media (prefers-reduced-motion: no-preference) {
  .photomask-family-intro > *,
  .photomask-family-catalog .feature-catalog-card,
  .photomask-axis-grid article,
  .photomask-family-inquiry li,
  .photomask-engineering-grid > * {
    animation: photomask-enter .62s both;
  }

  .photomask-family-catalog .feature-catalog-card:nth-child(2),
  .photomask-axis-grid article:nth-child(2),
  .photomask-family-inquiry li:nth-child(2) { animation-delay: .07s; }
  .photomask-family-catalog .feature-catalog-card:nth-child(3),
  .photomask-axis-grid article:nth-child(3),
  .photomask-family-inquiry li:nth-child(3) { animation-delay: .14s; }
  .photomask-family-catalog .feature-catalog-card:nth-child(4),
  .photomask-family-inquiry li:nth-child(4) { animation-delay: .21s; }
  .photomask-family-catalog .feature-catalog-card:nth-child(5),
  .photomask-family-inquiry li:nth-child(5) { animation-delay: .28s; }
  .photomask-family-catalog .feature-catalog-card:nth-child(6),
  .photomask-family-inquiry li:nth-child(6) { animation-delay: .35s; }
  .photomask-family-inquiry li:nth-child(7) { animation-delay: .42s; }
  .photomask-family-inquiry li:nth-child(8) { animation-delay: .49s; }
}

@keyframes photomask-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.photomask-family-selection .selection-table-scroll {
  margin-top: 28px;
  overflow-x: auto;
}

.photomask-family-selection .selection-table {
  min-width: 820px;
}

.photomask-family-selection .selection-table :is(th, td) {
  padding: 18px 20px;
  vertical-align: top;
  line-height: 1.58;
}

.photomask-family-selection .selection-table a {
  color: #0050a4;
  text-decoration: none;
}

.photomask-family-selection .selection-table a:hover,
.photomask-family-selection .selection-table a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.photomask-axis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: #dfe3e8;
}

.photomask-axis-grid article {
  min-height: 210px;
  padding: 28px;
  background: #fff;
}

.photomask-axis-grid h3 {
  margin: 0 0 14px;
  color: #171717;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.photomask-axis-grid p,
.photomask-family-inquiry p,
.photomask-engineering p {
  color: #171717;
  line-height: 1.7;
}

.photomask-family-inquiry .category-detail {
  align-items: start;
}

.photomask-family-inquiry .plain-list {
  max-width: 70ch;
}

.photomask-engineering {
  background: #f0f0f0;
}

.photomask-engineering-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(440px, 1.28fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.photomask-engineering-grid > div {
  max-width: 520px;
}

.photomask-engineering-figure {
  min-width: 0;
  min-height: 350px;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #d7d7d7; /* taste-skill-ignore: engineering figure boundary */
  border-radius: 6px;
  background: #fff;
  color: #171717;
}

.photomask-engineering-figure dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
}

.photomask-engineering-figure dl div {
  padding: 12px;
  background: #f0f0f0;
}

.photomask-engineering-figure dt {
  color: #171717;
  font-size: 14px;
  font-weight: 600;
}

.photomask-engineering-figure dd {
  margin: 4px 0 0;
  color: #5d6267;
  font-size: 13px;
}

.pm-stack-visual {
  display: grid;
  align-content: center;
  min-height: 190px;
}

.pm-chrome-layer {
  display: grid;
  grid-template-columns: 1fr .38fr 1.5fr .55fr .8fr;
  height: 42px;
}

.pm-chrome-layer span {
  background: #2d2d2d;
}

.pm-chrome-layer i {
  background: #fff;
}

.pm-glass-layer {
  height: 98px;
  border: 1px solid #8fb2d4; /* taste-skill-ignore: glass layer boundary */
  background: #e8f0f7;
}

.pm-material-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 260px;
}

.pm-material-choice > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 22px;
  border: 1px solid #d7d7d7; /* taste-skill-ignore: material comparison boundary */
}

.pm-material-swatch {
  flex: 1;
  min-height: 120px;
  margin-bottom: 22px;
  border: 1px solid #8fb2d4; /* taste-skill-ignore: substrate boundary */
  background: #e8f0f7;
}

.pm-silica-swatch {
  background: #f6f9fc;
  border-bottom: 10px solid #dbe9f5;
}

.pm-material-choice strong,
.pm-material-choice small {
  display: block;
}

.pm-material-choice strong {
  font-size: 16px;
  line-height: 1.35;
}

.pm-material-choice small {
  margin-top: 6px;
  color: #5d6267;
  font-size: 13px;
  line-height: 1.45;
}

.pm-exposure-visual {
  display: grid;
  align-content: center;
  min-height: 270px;
  text-align: center;
}

.pm-light-label,
.pm-mask-layer span,
.pm-resist-layer span,
.pm-workpiece-layer span,
.pm-gap span,
.pm-contact-label {
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.pm-light-label {
  margin-bottom: 8px;
  color: #0050a4;
}

.pm-light-rays {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16%;
  width: 76%;
  height: 58px;
  margin: 0 auto;
}

.pm-light-rays i {
  width: 2px;
  height: 100%;
  margin: auto;
  background: #0050a4;
}

.pm-mask-layer,
.pm-resist-layer,
.pm-workpiece-layer {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid #707070; /* taste-skill-ignore: process layer boundary */
}

.pm-mask-layer {
  color: #fff;
  background: #2d2d2d;
}

.pm-mask-layer span {
  padding: 4px 8px;
  background: #2d2d2d;
}

.pm-resist-layer {
  min-height: 34px;
  border-color: #9eb5c9;
  background: #dce8f2;
}

.pm-workpiece-layer {
  min-height: 56px;
  border-color: #a7a7a7;
  background: #f0f0f0;
}

.pm-gap {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-inline: 1px dashed #8f8f8f;
  color: #0050a4;
}

.pm-contact-label {
  height: 24px;
  padding-top: 4px;
  color: #0050a4;
}

.pm-field-visual {
  position: relative;
  min-height: 270px;
  padding: 40px;
  border: 2px solid #2d2d2d;
  background: #f0f0f0;
}

.pm-field-active {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
  border: 2px solid #0050a4;
  background: #fff;
}

.pm-field-active > span {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 1;
  padding: 3px 6px;
  background: #fff;
  color: #0050a4;
  font-size: 12px;
}

.pm-field-active b {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: #0050a4;
  font-size: 12px;
  font-weight: 600;
}

.pm-field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 78%;
  height: 70%;
}

.pm-field-grid i {
  border: 1px solid #a9b8c4; /* taste-skill-ignore: repeated field cell boundary */
  background: #e8f0f7;
}

.pm-field-outline-label,
.pm-field-edge-label {
  position: absolute;
  color: #5d6267;
  font-size: 12px;
}

.pm-field-outline-label {
  top: 10px;
  left: 12px;
}

.pm-field-edge-label {
  right: 12px;
  bottom: 12px;
}

.pm-diagram-note {
  margin: 16px 0 0;
  color: #5d6267 !important;
  font-size: 13px;
  text-align: center;
}

.pm-layer-set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 260px;
  align-items: end;
}

.pm-set-mask {
  position: relative;
  height: 210px;
  border: 2px solid #2d2d2d;
  background: #f0f0f0;
}

.pm-set-mask span {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 600;
}

.pm-set-mask i {
  position: absolute;
  inset: 52px 20px 32px;
  border: 2px solid #0050a4;
}

.pm-set-mask-2 i {
  border-radius: 50%;
}

.pm-set-mask-3 i {
  transform: rotate(45deg) scale(.72);
}

.pm-set-mask b {
  position: absolute;
  color: #0050a4;
  font-size: 18px;
  font-weight: 500;
}

.pm-set-mask b:nth-of-type(1) {
  right: 8px;
  top: 6px;
}

.pm-set-mask b:nth-of-type(2) {
  bottom: 6px;
  left: 8px;
}

@media (max-width: 1000px) {
  .photomask-family-catalog .feature-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photomask-engineering-grid {
    grid-template-columns: 1fr;
  }

  .photomask-engineering-grid > div {
    max-width: 680px;
  }

  .photomask-family-selection .selection-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .photomask-family-selection .selection-table th:first-child {
    width: 30%;
  }

  .photomask-family-selection .selection-table th:last-child {
    width: 22%;
  }
}

@media (max-width: 700px) {
  body.product-visual-refresh #main .product-workspace-content:has(.photomask-family-catalog) .page-heading h1 {
    font-size: 24px;
    line-height: 1.18;
  }

  body.product-visual-refresh #main:has(.photomask-engineering) .page-heading h1 {
    font-size: 27px;
    line-height: 1.16;
  }

  .photomask-axis-grid,
  .photomask-family-catalog .feature-catalog-grid {
    grid-template-columns: 1fr;
  }

  .photomask-axis-grid article {
    min-height: 0;
    padding: 22px;
  }

  .photomask-engineering-figure {
    min-height: 0;
    padding: 20px;
  }

  .pm-material-choice,
  .pm-layer-set {
    grid-template-columns: 1fr;
  }

  .pm-material-choice > div {
    min-height: 210px;
  }

  .pm-layer-set {
    min-height: 0;
  }

  .pm-set-mask {
    height: 180px;
  }

  .pm-field-visual {
    min-height: 240px;
    padding: 34px 24px;
  }

  .pm-field-active {
    height: 170px;
  }

  .photomask-family-selection .selection-table-scroll {
    overflow: visible;
  }

  .photomask-family-selection .selection-table,
  .photomask-family-selection .selection-table tbody,
  .photomask-family-selection .selection-table tr,
  .photomask-family-selection .selection-table :is(th, td) {
    display: block;
    width: 100%;
  }

  .photomask-family-selection .selection-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .photomask-family-selection .selection-table tbody {
    display: grid;
    gap: 12px;
  }

  .photomask-family-selection .selection-table tr {
    padding: 18px;
    background: #f0f0f0;
  }

  .photomask-family-selection .selection-table :is(th, td) {
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .photomask-family-selection .selection-table td {
    margin-top: 10px;
  }

  .photomask-family-selection .selection-table td:last-child {
    color: #0050a4;
    font-size: 13px;
    font-weight: 600;
  }

  .photomask-family-selection .selection-table th:first-child,
  .photomask-family-selection .selection-table th:last-child {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photomask-engineering-figure * {
    animation: none !important;
    transition: none !important;
  }
}
