.certified-glass .cg-process,
.certified-glass .cg-specifications {
  padding-block: clamp(44px, 7vw, 92px);
}

.cg-story,
.cg-specifications .vf-wrap {
  max-width: 860px;
  margin-inline: auto;
}

.cg-story {
  list-style: none;
  margin-block: 0;
  padding: 0;
}

.cg-step h2,
.cg-specifications h2 {
  font-size: clamp(30px, 4vw, 45px);
}

.cg-step p {
  margin-block: .65rem 1.25rem;
  max-width: 68ch;
  color: var(--muted);
}

.cg-step + .cg-step {
  position: relative;
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.cg-step + .cg-step::before {
  position: absolute;
  content: "↓";
  color: var(--red);
  font-size: 1.65rem;
  line-height: 1;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  background: #fff;
  padding-inline: .6rem;
}

.cg-media {
  display: block;
}

.cg-media:focus-visible,
.cg-coverages a:focus-visible,
.cg-dialog button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.cg-media img {
  display: block;
  width: 100%;
  height: auto;
}

.cg-comparison {
  margin: 0;
}

.cg-comparison figcaption,
.cg-note {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.6;
}

.cg-comparison figcaption {
  margin-top: .65rem;
}

.cg-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}

.cg-options h3 img {
  display: block;
}

.cg-options .cg-thickness {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--ink);
  margin-block: .5rem 1rem;
}

.cg-thickness span {
  font-size: .76em;
  color: var(--muted);
  white-space: nowrap;
}

.cg-options dl {
  margin-block: 1rem;
  line-height: 1.5;
}

.cg-options dt {
  font-weight: 700;
}

.cg-options dd {
  margin: 0 0 .9rem;
  color: var(--muted);
}

.cg-options dd:not(:last-child) {
  padding-bottom: .9rem;
  border-bottom: 1px solid #eceeeb;
}

.cg-coverages {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.cg-coverages a,
.cg-dialog button {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: .55rem .9rem;
  text-decoration: none;
}

.cg-coverages a:hover,
.cg-dialog button[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.cg-specifications .text-link {
  margin-top: .7rem;
}

.cg-dialog {
  width: min(1020px, calc(100% - 30px));
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}

.cg-dialog::backdrop {
  background: rgb(0 0 0 / 66%);
}

.cg-dialog-header,
.cg-dialog-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.cg-dialog-header {
  justify-content: space-between;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.cg-dialog-header h2 {
  font-size: clamp(21px, 3vw, 29px);
  margin: 0;
}

.cg-dialog-controls form {
  margin: 0;
}

.cg-dialog-scroll {
  overflow: auto;
  max-height: 72vh;
  background: #f4f6f8;
}

.cg-dialog-scroll img {
  width: 100%;
  height: auto;
  display: block;
}

.cg-dialog.is-zoomed img {
  width: max(1250px, 150%);
  max-width: none;
}

@media (max-width: 620px) {
  .cg-options {
    grid-template-columns: 1fr;
  }
}
