.tiangi-design .tg-18d-picture {
  display: contents;
}

.tiangi-design .gallery--hero .gallery-stage img[data-tg-image-role="feature"] {
  max-inline-size: min(94%, var(--photo-w));
  max-block-size: min(92%, var(--photo-h));
}

.tiangi-design .gallery--section .gallery-stage:has(img[data-tg-image-role="feature"]) {
  width: min(100%, 620px);
  padding: clamp(12px, 2.5vw, 26px);
}

.tiangi-design .gallery--section .gallery-stage img[data-tg-image-role="feature"] {
  max-inline-size: 100%;
  max-block-size: min(460px, var(--photo-h));
  height: auto;
}

.tiangi-design .content-photo img[data-tg-image-role="card"] {
  max-inline-size: 100%;
  max-block-size: min(440px, var(--photo-h));
}

@media (min-width: 1024px) {
  .tiangi-design .home-hero-photo img[data-tg-image-role="feature"] {
    width: min(100%, 510px);
    filter: none;
  }

  .tiangi-design .inspection-pair .dimmer-stage img[data-tg-image-role="card"] {
    width: min(100%, 350px);
  }

  .tiangi-design .inspection-rcd-body img[data-tg-image-role="card"] {
    width: min(100%, 470px);
  }
}

.tiangi-design .tg-18j-diagram {
  width: min(100%, var(--tg-diagram-width, 640px));
  margin: clamp(1.4rem, 2.4vw, 2.25rem) auto;
}
.tiangi-design .tg-18j-diagram img,
.tiangi-design .tg-18j-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #daddd9;
  border-radius: 9px;
}
.tiangi-design :is(.tg-18j-diagram,.tg-18j-photo,.tg-18j-form) figcaption {
  margin-top: .65rem;
  color: #555d57;
  font-size: .92rem;
  line-height: 1.45;
}
.tiangi-design .tg-18j-photo {
  width: min(100%, 700px);
  margin: clamp(1.2rem, 2.5vw, 2rem) 0;
}
.tiangi-design .tg-18j-photo img,
.tiangi-design .tg-18j-inquiry-link img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f6f6f4;
  border: 1px solid #dde0de;
  border-radius: 9px;
}
.tiangi-design .tg-18j-group,
.tiangi-design .tg-18j-inquiry-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(12px, 2vw, 25px);
  margin-block: 1.6rem;
}
.tiangi-design .tg-18j-group .tg-18j-photo { width: 100%; margin: 0; }
.tiangi-design .tg-18j-group img { max-height: 380px; aspect-ratio: 5/4; }
.tiangi-design .tg-18j-cover {
  width: min(100%, var(--tg-diagram-width, 700px));
  margin: clamp(1.3rem, 2.4vw, 2.25rem) 0 .3rem;
}
.tiangi-design .tg-18j-cover img {
  aspect-ratio: 16/9;
  background: #f4f5f2;
  object-fit: contain;
}
.tiangi-design .tg-18j-form {
  width: min(100%, 520px);
  margin: 0;
  align-self: start;
}
.tiangi-design .tg-18j-form img { width: 100%; height: auto; }
.tiangi-design .tg-18j-inquiry-link { display: block; font-weight: 650; }
.tiangi-design .tg-18j-inquiry-link img { aspect-ratio: 5/3; margin-bottom: .5rem; }
.tiangi-design #sample-test-items[data-tg-18j-tests] table { border: 0; }
.tiangi-design #sample-test-items[data-tg-18j-tests] .table-scroll { overflow: visible; }
.tiangi-design #sample-test-items[data-tg-18j-tests] .table-hint { display: none; }
.tiangi-design #sample-test-items[data-tg-18j-tests] table,
.tiangi-design #sample-test-items[data-tg-18j-tests] thead {
  display: block;
  width: 100%;
  min-width: 0;
}
.tiangi-design #sample-test-items[data-tg-18j-tests] thead tr { display: flex; gap: 1rem; }
.tiangi-design #sample-test-items[data-tg-18j-tests] thead th {
  min-width: 0;
  padding: .5rem .1rem;
  border: 0;
  background: none;
  color: #4b544e;
}
.tiangi-design #sample-test-items[data-tg-18j-tests] tbody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: .85rem;
  margin-top: .6rem;
}
.tiangi-design #sample-test-items[data-tg-18j-tests] tbody tr {
  display: grid;
  align-content: start;
  padding: .95rem;
  background: #fff;
  border: 1px solid #d8dbd7;
  border-radius: 8px;
}
.tiangi-design #sample-test-items[data-tg-18j-tests] tbody td { padding: .2rem 0; border: 0; background: none; min-width: 0; }
.tiangi-design #sample-test-items[data-tg-18j-tests] tbody td:first-child { font-weight: 700; }

.tiangi-design .tg-18j-table tr:nth-child(even)>:is(th,td) { background: #edf0ec; }
.tiangi-design .tg-18j-table tbody tr>:first-child { font-weight: 700; }
.tiangi-design .tg-18j-table table { border-collapse: separate; border-spacing: 0; }
.tiangi-design .tg-18j-table thead th { color: #202620; background: #e0e5e0; }
.tiangi-design .tg-18j-note,
.tiangi-design .tg-18j-list {
  color: #252a27;
  background: #f2f2f2;
  border-inline-start: 3px solid #ff6600;
  padding: clamp(.9rem, 2vw, 1.35rem);
}
.tiangi-design .tg-18j-list { padding-inline-start: 2.15rem; }

@media (min-width: 1024px) {
  .tiangi-design .tg-18j-illustrated {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, .95fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(20px, 4vw, 60px);
    row-gap: 1rem;
    align-items: start;
  }
  .tiangi-design .tg-18j-illustrated > h1 { grid-area: 1 / 1; align-self: start; }
  .tiangi-design .tg-18j-illustrated > .hero-copy { grid-area: 2 / 1; }
  .tiangi-design .tg-18j-illustrated > .tg-18j-form { grid-area: 1 / 2 / 3 / 3; }
  .tiangi-design .tg-18j-illustrated > .product-hero-facts { grid-area: 3 / 2; margin: 0; }
  .tiangi-design .tg-18j-illustrated > .product-hero-note { grid-area: 3 / 1; }
  .tiangi-design .tg-18j-table .table-scroll { overflow: visible; }
  .tiangi-design .tg-18j-table table { width: 100%; min-width: 0; table-layout: fixed; }
  .tiangi-design .tg-18j-table :is(th,td) { overflow-wrap: anywhere; vertical-align: top; }
  .tiangi-design .tg-18j-table thead th { position: sticky; top: 68px; z-index: 3; }
  .tiangi-design .tg-18j-inquiry { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(360px, 1.2fr); gap: clamp(25px, 6vw, 88px); }
}
@media (max-width: 1023px) {
  .tiangi-design .tg-18j-illustrated { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; grid-template-areas: "title" "image" "copy" "facts" "note"; }
  .tiangi-design .tg-18j-form { grid-area: image; margin-inline: auto; }
}
@media (max-width: 767px) {
  .tiangi-design :is(.tg-18j-diagram,.tg-18j-cover,.tg-18j-form) { width: 100%; }
  .tiangi-design .tg-18j-cover img { aspect-ratio: 4/3; }
  .tiangi-design .tg-18j-inquiry-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tiangi-design .resource-thumbnail[data-tg-18j="resource-thumbnail"] {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #f4f4f1;
}
.tiangi-design .inspection-indicators img[data-tg-18j="photo-swap"] { width: 100%; max-width: 100%; height: auto; }
.tiangi-design .tg-18j-illustrated > figure { max-width: 100%; }

@media (min-width: 1024px) {
  .tiangi-design .split-section > .tg-18j-diagram {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .tiangi-design .split-section:has(> h2:first-child + .section-copy + .tg-18j-diagram:last-child) {
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: clamp(16px, 2vw, 28px);
  }
  .tiangi-design .split-section:has(> h2:first-child + .section-copy + .tg-18j-diagram:last-child) > h2 {
    grid-area: 1 / 1;
  }
  .tiangi-design .split-section:has(> h2:first-child + .section-copy + .tg-18j-diagram:last-child) > .section-copy {
    grid-area: 1 / 2 / 3 / 3;
  }
  .tiangi-design .split-section:has(> h2:first-child + .section-copy + .tg-18j-diagram:last-child) > .tg-18j-diagram {
    grid-area: 2 / 1;
    margin: 0 auto;
  }
}

.tiangi-design .site-header .desktop-nav > a,
.tiangi-design .site-header .desktop-nav > .nav-disclosure > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: .45rem .12rem;
  background: transparent;
  font: inherit;
  font-weight: 560;
  color: var(--ink);
  cursor: pointer;
}
.tiangi-design .site-header .desktop-nav > .nav-disclosure > summary > span {
  flex: 0 0 .39rem;
}

.tiangi-design #menu-products .nav-panel .shell:has(.nav-power-series) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
