/* NORAVARYN TOOL LAB catalog page. Glassy dark boxes, matching the homepage. */

.tool-lab-page .page-header h1 {
  font-family: var(--font-brand, "Michroma", sans-serif);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 4vw + 0.4rem, 2.25rem);
  text-align: center;
}

.tool-lab-page .page-header p {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  text-align: center;
  color: var(--dk-muted, #c0c0c4);
  font-size: 1.02rem;
  line-height: 1.5;
}

.tool-lab-page .tool-lab {
  margin: 0.5rem 0 2rem;
}

.tool-lab-page .tool-lab__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 48rem) {
  .tool-lab-page .tool-lab__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.tool-lab-page .tool-lab__card {
  padding: 0.85rem 0.75rem 0.9rem;
  min-width: 0;
  background: linear-gradient(160deg, rgba(52, 52, 57, 0.72), rgba(30, 30, 34, 0.62));
  border: 0.0625rem solid rgba(192, 192, 196, 0.26);
  border-radius: 1.15rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.4), inset 0 0.0625rem 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(1rem) saturate(1.15);
  backdrop-filter: blur(1rem) saturate(1.15);
}

.tool-lab-page .tool-lab__card:hover {
  border-color: rgba(192, 192, 196, 0.5);
  background: linear-gradient(160deg, rgba(58, 58, 64, 0.78), rgba(36, 36, 40, 0.7));
}

.tool-lab-page .tool-lab__name {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.tool-lab-page .tool-lab__name-link {
  color: #fff;
  text-decoration: none;
}

.tool-lab-page .tool-lab__name-link:hover,
.tool-lab-page .tool-lab__name-link:focus-visible {
  text-decoration: underline;
}

.tool-lab-page .tool-lab__desc {
  margin: 0 0 0.7rem;
  color: rgba(220, 220, 224, 0.78);
  font-size: 0.7rem;
  line-height: 1.4;
}

.tool-lab-page .tool-lab__slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.tool-lab-page .tool-lab__box {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  border: 0.0625rem solid rgba(192, 192, 196, 0.3);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(16, 16, 20, 0.7));
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.1), 0 0.3rem 0.7rem rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.tool-lab-page .tool-lab__box:hover,
.tool-lab-page .tool-lab__box:focus-visible {
  border-color: rgba(192, 192, 196, 0.55);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(22, 22, 26, 0.75));
}

.tool-lab-page .tool-lab__name a,
body.home .tool-lab__name-link {
  color: inherit;
  text-decoration: none;
}
body.home .tool-lab__name-link:hover,
body.home .tool-lab__name-link:focus-visible {
  text-decoration: underline;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tool-lab-page .tool-lab__card {
    background: #2b2b2f;
  }
}


/* Phone layout for the Tool Lab catalog */
.tool-lab-page .wrap {
  overflow-x: hidden;
  max-width: 100%;
}
.tool-lab-page .page-header {
  padding-right: 0;
  min-width: 0;
}
.tool-lab-page .page-header h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 6.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tool-lab-page .page-header p {
  max-width: 40rem;
}
.tool-lab-page .tool-lab__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
}
.tool-lab-page .tool-lab__card {
  min-width: 0;
}
.tool-lab-page .tool-lab__slots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 48rem) {
  .tool-lab-page .tool-lab__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 64rem) {
  .tool-lab-page .tool-lab__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
