/* ═════════ SOLUTION PAGE · SECTION 6 · NEXT SOLUTION ═════════
   A full-width link to the next solution; the outlined name fills on hover. */
.sd-section6 {
  position: relative;
  padding: 0 0 70px;
  overflow: hidden;
}

.sd6-next {
  display: block;
  padding: 38px 0 46px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.5s var(--ease);
}

.sd6-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sd6-label span:first-child {
  color: var(--blue-light);
}

/* starts where the page content starts, and may run off the far edge */
.sd6-name {
  display: block;
  padding-inline-start: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  white-space: nowrap;
  overflow: hidden;
}

.sd6-name-i {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.4rem, 7.4vw, 7rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157, 187, 255, 0.45);
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s;
}

.sd6-next:hover {
  background: rgba(20, 99, 243, 0.05);
}

.sd6-next:hover .sd6-name-i {
  color: var(--text);
  -webkit-text-stroke-color: transparent;
}

.sd6-foot {
  margin-top: 30px;
}

.sd6-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.sd6-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  transition: background 0.3s, border-color 0.3s;
}

.sd6-back svg {
  transform: scaleX(-1);
}

[dir="rtl"] .sd6-back svg {
  transform: none;
}

.sd6-all:hover {
  color: var(--text);
}

.sd6-all:hover .sd6-back {
  background: var(--blue);
  border-color: var(--blue);
}

/* long names wrap on phones instead of running off the screen */
@media (max-width: 900px) {
  .sd6-name { white-space: normal; }
  .sd6-name-i { font-size: clamp(2rem, 10vw, 3.2rem); }
}
