/* /glossary page (templates/glossary.hubl.html). Body markup is generated by
   build/glossary.mjs; tooltip styles live in assets/js/t4n-glossary.js. */
.t4n-gl-page {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.t4n-gl-index {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 2rem;
  padding: 0.7rem 0;
  background: #fff;
  border-bottom: 1px solid #dfe5f1;
}
.t4n-gl-index > span {
  margin-right: 0.6rem;
  font-family: "Martian Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6680;
}
.t4n-gl-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.45rem;
  border: 1px solid #dfe5f1;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #09152b;
  text-decoration: none;
}
.t4n-gl-index a:hover,
.t4n-gl-index a:focus-visible {
  border-color: #0e9e77;
  color: #0b7f60;
}
.t4n-gl-group {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #dfe5f1;
  scroll-margin-top: 4.5rem;
}
.t4n-gl-index + .t4n-gl-group {
  border-top: 0;
  padding-top: 0.5rem;
}
.t4n-gl-group__letter {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0e9e77;
}
.t4n-gl-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
}
.t4n-gl-item {
  min-width: 0;
  scroll-margin-top: 5rem;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 2px solid #d5efe6;
}
.t4n-gl-item:target {
  border-left-color: #0e9e77;
  background: #f1faf7;
}
.t4n-gl-item dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
  margin: 0 0 0.3rem;
}
.t4n-gl-item dfn {
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  color: #09152b;
}
.t4n-gl-item__full {
  font-family: "Martian Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #0b7f60;
  overflow-wrap: anywhere;
}
.t4n-gl-item dd {
  margin: 0;
}
.t4n-gl-item dd p {
  margin: 0;
  color: #3b4763;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.t4n-gl-item__link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #2964da;
  text-decoration: none;
}
.t4n-gl-item__link::after {
  content: " \2192";
}
.t4n-gl-item__link:hover {
  text-decoration: underline;
}
.t4n-gl-item__fig {
  margin-top: 0.7rem !important;
  max-width: 20rem;
  padding: 0.6rem 0.7rem;
  background: #f7f9fc;
  border-radius: 8px;
}
.t4n-gl-item__fig svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .t4n-gl-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .t4n-gl-group {
    grid-template-columns: minmax(0, 1fr);
  }
  .t4n-gl-group__letter {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
  }
  .t4n-gl-index {
    position: static;
  }
}
/* Language chips under the centred hero text */
.t4n-sec-hero .t4n-lang--hero {
  justify-content: center;
}
