/* Category 3: Custom Chrome Photomasks — Unified V2 Design System
   Preserves TL OPTIK global palette (#FFFFFF, #F0F0F0, #2D2D2D, #171717, #0050A4),
   typography, and approved v2 hero/spec/explainer/acceptance cadence. */

:is(body.photomask-v2-hub, body.photomask-v2-page) #main {
  --sv-ink: #171717;
  --sv-muted: #626b75;
  --sv-soft: #f0f0f0;
  --sv-blue: #0050a4;
  --sv-blue-dark: #003b7b;
  --sv-focus: #2676bf;
  --sv-dark: #2d2d2d;
  color: var(--sv-ink);
  background: #ffffff;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .section.soft-band {
  background: var(--sv-soft);
}

/* Remove legacy ::after dashes, section shadows, and 1px decorative card frames */
:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.text-link, .related-link)::after {
  content: none !important;
  display: none !important;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(
  .soft-band,
  .feature-catalog-card,
  .pmv-three-grid article,
  .pmv-two-col article,
  .sv-acceptance-grid article,
  .sv-context-grid article,
  .related-link
) {
  box-shadow: none !important; /* taste-skill-ignore: resets legacy section box-shadow */
  border-color: transparent;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(p, li, td, th) {
  color: var(--sv-ink);
  font-size: 16px;
  line-height: 1.62;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main h1,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main h2,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main h3 {
  color: var(--sv-ink);
  font-weight: 400;
  letter-spacing: -0.015em;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.24;
  max-width: 34ch;
  margin: 0 0 18px;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 12px;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main p {
  margin: 0 0 16px;
  max-width: 72ch;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .button {
  background: var(--sv-ink);
  border-color: var(--sv-ink);
  color: #ffffff;
  border-radius: 6px;
  font-weight: 500;
  min-height: 46px;
  padding: 12px 24px;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .button:hover {
  background: #333333;
  border-color: #333333;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main a.text-link,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main a.related-link,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main a.pmh-table-link,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main a.sv-stage-link,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main .sv-context-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2px 6px;
  min-height: 44px;
  color: var(--sv-blue);
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
  padding: 4px 0;
  border: 0;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .locale-en-badge {
  display: inline-block;
  margin-inline-start: 4px;
  flex: none;
  vertical-align: middle;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main a.text-link:hover,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main a.related-link:hover,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main a.pmh-table-link:hover,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main a.sv-stage-link:hover,
:is(body.photomask-v2-hub, body.photomask-v2-page) #main .sv-context-grid a:hover {
  color: var(--sv-blue-dark);
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--sv-focus);
  outline-offset: 3px;
}

/* ==========================================================================
   Shared Grids, Tables & Lists (Hub + Detail Pages)
   ========================================================================== */

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .pmv-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 16px 24px;
  background: transparent;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .sv-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  margin: 0;
}

body.photomask-v2-hub #main .pmh-selection .pmv-table-scroll .sv-table {
  min-width: 0;
}

body.photomask-v2-hub #main .pmh-writing .pmv-table-scroll .sv-table {
  min-width: 540px;
}

body.photomask-v2-page #main .pmv-table-scroll .sv-table {
  min-width: 0;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .sv-table thead th {
  background: var(--sv-dark);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  padding: 15px 18px;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .sv-table tbody :is(th, td) {
  text-align: left;
  vertical-align: top;
  padding: 15px 18px;
  border-bottom: 1px solid var(--sv-soft);
  background: #ffffff;
  color: var(--sv-ink);
  font-size: 15px;
  line-height: 1.58;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .sv-table tbody th {
  font-weight: 500;
  width: 30%;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .pmv-bullet-list {
  margin: 0;
  padding-left: 20px;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .pmv-bullet-list li + li {
  margin-top: 10px;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .pmv-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  margin-top: 28px;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main .pmv-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.pmv-three-grid, .pmv-two-col, .sv-acceptance-grid, .sv-context-grid) > article {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  align-content: start;
  min-width: 0;
  overflow-wrap: break-word;
  background: transparent;
  padding: 0;
  border: 0;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.pmv-three-grid, .pmv-two-col, .sv-acceptance-grid, .sv-context-grid) > article > .card-row-body > :last-child {
  margin-bottom: 0;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.sv-faq, .sv-faq-list) details {
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  margin-bottom: 10px;
  background: var(--sv-soft);
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.sv-faq, .sv-faq-list) details:last-child {
  margin-bottom: 0;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.sv-faq, .sv-faq-list) summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--sv-ink);
  padding: 18px 0;
  list-style: none;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.sv-faq, .sv-faq-list) summary::-webkit-details-marker {
  display: none;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.sv-faq, .sv-faq-list) summary::after {
  content: '+';
  color: var(--sv-blue);
  font-size: 22px;
  font-weight: 400;
  flex: none;
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.sv-faq, .sv-faq-list) details[open] summary::after {
  content: '−';
}

:is(body.photomask-v2-hub, body.photomask-v2-page) #main :is(.sv-faq, .sv-faq-list) details p {
  margin: 0 0 20px;
  max-width: 78ch;
  color: var(--sv-ink);
}

/* ==========================================================================
   1. Category Hub Page (body.photomask-v2-hub)
   ========================================================================== */

body.photomask-v2-hub #main .product-workspace-content {
  min-width: 0;
  overflow-x: clip;
}

body.photomask-v2-hub #main .product-workspace-content .container {
  width: min(1140px, calc(100% - 64px));
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 0;
}

body.photomask-v2-hub #main .product-workspace-content .page-heading {
  padding-block: 36px 20px;
}

body.photomask-v2-hub #main .product-workspace-content .section {
  padding-block: 48px;
}

body.photomask-v2-hub #main .product-workspace-content .pmh-intro {
  padding-top: 12px;
}

body.photomask-v2-hub #main .pmh-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
  margin-bottom: 32px;
}

body.photomask-v2-hub #main .pmh-intro-grid p {
  margin: 0;
  max-width: none;
}

body.photomask-v2-hub #main .pmh-catalog .feature-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

body.photomask-v2-hub #main .feature-catalog-card {
  opacity: 1 !important;
  transform: none !important;
}

body.photomask-v2-hub #main .pmh-catalog .feature-catalog-media img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: var(--sv-soft);
}

body.photomask-v2-hub #main .pmh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 36px;
}

body.photomask-v2-hub #main .pmh-section-head {
  margin-bottom: 24px;
}

body.photomask-v2-hub #main .pmh-section-head p {
  margin-bottom: 0;
}

body.photomask-v2-hub #main .pmh-writing .pmh-inline-link {
  margin: 4px 0 0;
}

body.photomask-v2-hub #main .pmh-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
}

body.photomask-v2-hub #main .pmh-faq details {
  background: #ffffff;
  padding: 0 22px;
  border-bottom: 0;
  border-radius: 6px;
  margin-bottom: 10px;
}

body.photomask-v2-hub #main .pmh-faq details:last-child {
  margin-bottom: 0;
}

body.photomask-v2-hub #main .pmh-faq details summary {
  padding: 18px 0;
}

body.photomask-v2-hub #main .category-partnership {
  padding-block: 52px;
  background: #ffffff;
}

body.photomask-v2-hub #main .category-partnership-cta {
  background: var(--sv-ink);
  border-color: var(--sv-ink);
}

body.photomask-v2-hub #main .category-partnership-cta:hover {
  background: #333333;
  border-color: #333333;
}

body.photomask-v2-hub #main .category-relations {
  padding-block: 48px;
}

body.photomask-v2-hub #main .category-relation-column .related-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2px 6px;
}

/* ==========================================================================
   2. Product Detail Pages (body.photomask-v2-page)
   ========================================================================== */

body.product-detail-page.site-detail-layout.photomask-v2-page[data-page] #main .photomask-v2 .page-heading {
  padding-block: clamp(28px, 3.6vw, 44px) 18px;
}

body.product-detail-page.site-detail-layout.photomask-v2-page[data-page] #main .photomask-v2 .page-heading h1 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 400;
  max-width: 30ch;
}

body.product-detail-page.site-detail-layout.photomask-v2-page[data-page] #main .photomask-v2 .product-section-nav {
  background: #ffffff;
  border: 0;
  box-shadow: none; /* taste-skill-ignore: resets legacy nav shadow */
  margin-block: 0;
  padding-block: 0;
}

body.product-detail-page.site-detail-layout.photomask-v2-page[data-page] #main .photomask-v2 .sv-hero {
  padding-block: 28px 56px;
  background: #ffffff;
}

body.photomask-v2-page #main .photomask-v2 .section:not(.sv-hero):not(.page-heading) {
  padding-block: 52px;
}

.photomask-v2 .sv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.photomask-v2 .sv-hero-media {
  margin: 0;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  background: transparent;
  border: 0;
}

.photomask-v2 .sv-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.photomask-v2 .sv-hero-copy {
  align-self: center;
  text-align: left;
  max-width: 58ch;
}

body.product-detail-page.site-detail-layout.photomask-v2-page[data-page] #main .photomask-v2 .sv-hero-copy h2 {
  font-size: clamp(26px, 2.5vw, 32px);
  line-height: 1.22;
  margin-bottom: 20px;
}

.photomask-v2 .sv-hero-note {
  color: var(--sv-ink);
}

.photomask-v2 .sv-actions {
  margin-top: 26px;
}

.photomask-v2 .sv-spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
}

.photomask-v2 .sv-spec-intro p:last-child {
  margin-bottom: 0;
}

.photomask-v2 .pm-spec-boundary {
  color: var(--sv-muted) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.photomask-v2 .sv-table-wrap {
  min-width: 0;
}

.photomask-v2 .sv-table-wrap .sv-table tbody th {
  width: 34%;
}

/* Engineering View & Flat Subject Diagrams */
.photomask-v2 .pm-eng-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.photomask-v2 .pm-eng-copy > :last-child {
  margin-bottom: 0;
}

.photomask-v2 .pm-eng-diagram {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--sv-soft);
  border-radius: 8px;
  border: 0;
}

.photomask-v2 .pm-eng-caption {
  margin: 16px 0 0 !important;
  color: var(--sv-muted) !important;
  font-size: 14px !important;
  text-align: center;
  max-width: none !important;
}

/* 1) Chrome Stack Diagram */
.photomask-v2 .pm-eng-stack {
  display: grid;
  gap: 0;
}

.photomask-v2 .pm-eng-chrome {
  display: grid;
  grid-template-columns: 1fr 0.4fr 1.4fr 0.55fr 0.85fr;
  height: 36px;
}

.photomask-v2 .pm-eng-chrome span {
  background: var(--sv-dark);
}

.photomask-v2 .pm-eng-chrome i {
  background: #ffffff;
}

.photomask-v2 .pm-eng-glass {
  height: 92px;
  background: #dce8f2;
}

.photomask-v2 .pm-eng-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 0;
}

.photomask-v2 .pm-eng-legend div {
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 4px;
}

.photomask-v2 .pm-eng-legend dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--sv-ink);
}

.photomask-v2 .pm-eng-legend dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--sv-muted);
}

/* 2) Silica Material Choice Diagram */
.photomask-v2 .pm-eng-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.photomask-v2 .pm-eng-compare > div {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #ffffff;
  border-radius: 6px;
}

.photomask-v2 .pm-eng-swatch {
  display: block;
  height: 112px;
  margin-bottom: 16px;
  border-radius: 4px;
}

.photomask-v2 .pm-eng-swatch-glass {
  background: #d2e2f0;
}

.photomask-v2 .pm-eng-swatch-silica {
  background: #edf5fc;
  border-bottom: 10px solid var(--sv-blue);
}

.photomask-v2 .pm-eng-compare strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--sv-ink);
}

.photomask-v2 .pm-eng-compare small {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sv-muted);
}

/* 3 & 4) Contact vs Proximity Exposure Stack */
.photomask-v2 .pm-eng-exposure {
  display: grid;
  gap: 0;
  text-align: center;
}

.photomask-v2 .pm-eng-ray-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--sv-blue);
  margin-bottom: 8px;
}

.photomask-v2 .pm-eng-rays {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16%;
  width: 74%;
  height: 44px;
  margin: 0 auto;
}

.photomask-v2 .pm-eng-rays i {
  width: 2px;
  height: 100%;
  margin: auto;
  background: var(--sv-blue);
}

.photomask-v2 .pm-eng-mask {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--sv-dark);
  color: #ffffff;
  font-size: 14px;
}

.photomask-v2 .pm-eng-gap {
  display: grid;
  place-items: center;
  min-height: 44px;
  background: #ffffff;
  border-inline: 2px dashed var(--sv-blue);
  color: var(--sv-blue);
  font-size: 14px;
  font-weight: 500;
}

.photomask-v2 .pm-eng-contact-line {
  padding: 8px 12px;
  background: #ffffff;
  color: var(--sv-blue);
  font-size: 14px;
  font-weight: 500;
}

.photomask-v2 .pm-eng-resist {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 8px 12px;
  background: #dce8f2;
  color: var(--sv-ink);
  font-size: 14px;
}

/* 5) Large-Area Field Architecture */
.photomask-v2 .pm-eng-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 4px;
}

.photomask-v2 .pm-eng-field-outline,
.photomask-v2 .pm-eng-field-margin {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sv-muted);
}

.photomask-v2 .pm-eng-field-margin {
  align-self: flex-end;
}

.photomask-v2 .pm-eng-field-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--sv-soft);
  border: 2px solid var(--sv-blue);
}

.photomask-v2 .pm-eng-field-active > span,
.photomask-v2 .pm-eng-field-active > b {
  align-self: flex-start;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sv-blue);
}

.photomask-v2 .pm-eng-field-active > span {
  font-weight: 500;
}

.photomask-v2 .pm-eng-field-active > b {
  font-weight: 600;
}

.photomask-v2 .pm-eng-field-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 72%;
  height: 92px;
}

.photomask-v2 .pm-eng-field-cells i {
  background: #dce8f2;
}

/* 6) Multi-Layer Mask Set Architecture */
.photomask-v2 .pm-eng-set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photomask-v2 .pm-eng-plate {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 114px auto;
  align-items: center;
  gap: 10px 8px;
  min-height: 204px;
  padding: 14px 14px 12px;
  background: #ffffff;
  border-radius: 4px;
}

.photomask-v2 .pm-eng-plate span {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--sv-ink);
}

.photomask-v2 .pm-eng-plate i {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  width: 64px;
  height: 64px;
  min-height: 0;
  justify-self: center;
  align-self: center;
  margin: 0;
  border: 2px solid var(--sv-blue);
}

.photomask-v2 .pm-eng-plate-2 i {
  border-radius: 50%;
}

.photomask-v2 .pm-eng-plate-3 i {
  width: 54px;
  height: 54px;
  transform: rotate(45deg);
}

.photomask-v2 .pm-eng-plate b {
  color: var(--sv-blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

.photomask-v2 .pm-eng-plate b:nth-of-type(1) {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.photomask-v2 .pm-eng-plate b:nth-of-type(2) {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: start;
}

/* Manual 3-Slide Process & Metrology Guide */
.photomask-v2 .reticle-fit .rf-panels {
  border-color: #dce1e6;
  background: #ffffff;
}

body.photomask-v2-page #main .photomask-v2 .reticle-fit .rf-panel {
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.95fr);
  gap: 36px;
}

.photomask-v2 .reticle-fit .rf-media {
  background: #ffffff;
}

.photomask-v2 .reticle-fit .rf-media img {
  object-fit: contain;
}

.photomask-v2 .reticle-fit .rf-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photomask-v2 .reticle-fit .rf-tab {
  grid-row: span 3;
}

.photomask-v2 .reticle-fit .rf-copy h3 {
  font-size: clamp(22px, 2vw, 26px);
  margin: 0 0 14px;
}

body.photomask-v2-page #main .photomask-v2 .reticle-fit .rf-copy h3 a.sv-stage-link {
  display: inline;
  min-height: 0;
  padding: 6px 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 500;
}

.photomask-v2 .reticle-fit .rf-copy p {
  margin: 0;
  max-width: 58ch;
}

/* Acceptance Band, Related Products & Context Navigation */
.photomask-v2 .sv-acceptance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 56px;
}

.photomask-v2 .sv-acceptance-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}

.photomask-v2 .sv-related {
  padding-bottom: 24px;
}

.photomask-v2 .sv-related .related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.photomask-v2 .sv-context {
  padding-top: 24px;
}

.photomask-v2 .sv-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
}

body.photomask-v2-page #main .photomask-v2 .sv-context-grid h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 12px;
}

.photomask-v2 .sv-context-grid .card-row-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* ==========================================================================
   3. Responsive Breakpoints (1100 / 800 / 640 / 560)
   ========================================================================== */

@media (max-width: 1100px) {
  body.photomask-v2-page #main .photomask-v2 .sv-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  body.photomask-v2-page #main .photomask-v2 .sv-spec-grid,
  body.photomask-v2-page #main .photomask-v2 .pm-eng-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  body.photomask-v2-hub #main .product-workspace-content .container {
    width: calc(100% - 48px);
  }

  body.photomask-v2-hub #main .pmh-intro-grid,
  body.photomask-v2-hub #main .pmh-catalog .feature-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.photomask-v2-hub #main .pmv-three-grid,
  body.photomask-v2-hub #main .pmv-two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.photomask-v2-hub #main :is(.pmv-three-grid, .pmv-two-col) > article {
    grid-row: auto;
    grid-template-rows: auto;
  }
}

@media (max-width: 800px) {
  body.photomask-v2-page #main .photomask-v2 .sv-hero-grid,
  body.photomask-v2-page #main .photomask-v2 .reticle-fit .rf-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.photomask-v2-page #main .photomask-v2 .sv-hero-media {
    max-width: 440px;
  }

  body.photomask-v2-page #main .photomask-v2 .pmv-three-grid,
  body.photomask-v2-page #main .photomask-v2 .sv-acceptance-grid,
  body.photomask-v2-page #main .photomask-v2 .sv-context-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.photomask-v2-page #main .photomask-v2 :is(.pmv-three-grid, .sv-acceptance-grid, .sv-context-grid) > article {
    grid-row: auto;
    grid-template-rows: auto;
  }

  body.photomask-v2-page #main .photomask-v2 .reticle-fit .rf-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.photomask-v2-hub #main .product-workspace-content .container {
    width: calc(100% - 32px);
  }

  body.photomask-v2-hub #main .pmh-intro-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.product-detail-page.site-detail-layout.photomask-v2-page[data-page] #main {
    --detail-gutter: 16px;
  }

  body.photomask-v2-page #main .photomask-v2 .pm-eng-compare,
  body.photomask-v2-page #main .photomask-v2 .pm-eng-set,
  body.photomask-v2-page #main .photomask-v2 .pm-eng-legend {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body.photomask-v2-hub #main .product-workspace-content .page-heading h1 {
    font-size: 26px;
    line-height: 1.18;
    max-width: none;
  }

  body.photomask-v2-page #main .photomask-v2 h2 {
    font-size: 21px;
    line-height: 1.24;
    max-width: none;
  }

  body.photomask-v2-page #main .photomask-v2 .sv-hero-copy h2 {
    font-size: 23px;
    line-height: 1.22;
  }

  body.photomask-v2-page #main .photomask-v2 h3 {
    font-size: 18px;
    line-height: 1.32;
  }

  body.photomask-v2-hub #main .pmh-catalog .feature-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(body.photomask-v2-hub, body.photomask-v2-page) #main .sv-table :is(thead th, tbody th, tbody td) {
    padding: 13px 12px;
    font-size: 14px;
  }

  body.photomask-v2-hub #main .pmh-writing .pmv-table-scroll .sv-table {
    min-width: 460px;
  }

  body.photomask-v2-hub #main .pmh-writing .sv-table :is(thead th, tbody th, tbody td) {
    padding: 11px 8px;
    font-size: 13px;
  }

  body.photomask-v2-page #main .photomask-v2 .sv-table-wrap .sv-table tbody th {
    width: 36%;
  }

  body.photomask-v2-page #main .photomask-v2 .reticle-fit .rf-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.photomask-v2-hub, body.photomask-v2-page) #main * {
    animation: none !important;
    transition: none !important;
  }
}
