.glossary-hub {
  background: #d2f29f;
  color: #003700;
}
.glossary-hero {
  background: #2c2c2c;
  color: #fff;
  padding: clamp(68px, 9vw, 118px) 0 52px;
}
.glossary-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d2f29f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.glossary-hero .eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: #9d2414;
}
.glossary-hero h1 {
  font:
    500 clamp(3.8rem, 7.8vw, 7.4rem)/0.9 "DM Sans",
    sans-serif;
  letter-spacing: -0.07em;
  margin: 22px 0;
  max-width: 970px;
}
.glossary-hero h1 em {
  font-style: normal;
  color: #fff3a1;
}
.glossary-hero > div > p {
  max-width: 760px;
  color: #e3ebe7;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}
.companion-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.companion-links a {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
  font-size: 0.85rem;
}
.companion-links a[aria-current="page"] {
  background: #d2f29f;
  color: #003700;
  border-color: #d2f29f;
}
.glossary-tools {
  background: #003700;
  color: #fff;
  padding: 28px 0;
  position: sticky;
  top: 82px;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.glossary-tool-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.glossary-search {
  position: relative;
  display: block;
}
.glossary-search input {
  width: 100%;
  border: 2px solid #fff3a1;
  border-radius: 999px;
  background: #fff3a1;
  color: #003700;
  padding: 15px 52px 15px 21px;
  font:
    600 1rem/1.2 "DM Sans",
    sans-serif;
  outline: 0;
}
.glossary-search input:focus {
  box-shadow: 0 0 0 4px rgba(195, 229, 255, 0.32);
}
.glossary-search span {
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  color: #003700;
  font-size: 1.2rem;
}
.alphabet {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.alphabet a {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
}
.alphabet a:hover,
.alphabet a:focus {
  background: #fff3a1;
  color: #003700;
  border-color: #fff3a1;
}
.glossary-status {
  font-size: 0.8rem;
  color: #c4d8cf;
  margin: 9px 0 0;
}
.letter-section {
  padding: clamp(52px, 7vw, 84px) 0;
  scroll-margin-top: 170px;
}
.letter-section:nth-child(4n + 1) {
  background: #d2f29f;
}
.letter-section:nth-child(4n + 2) {
  background: #fff1a0;
}
.letter-section:nth-child(4n + 3) {
  background: #d4f0a6;
}
.letter-section:nth-child(4n) {
  background: #fff1a0;
}
.letter-grid {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}
.letter {
  position: sticky;
  top: 190px;
  font:
    500 clamp(4.5rem, 9vw, 8rem)/0.75 "DM Sans",
    sans-serif;
  letter-spacing: -0.08em;
  color: #9d2414;
}
.term-list {
  border-top: 1px solid #003700;
}
.term {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(24px, 5vw, 70px);
  padding: 25px 0;
  border-bottom: 1px solid #003700;
  scroll-margin-top: 180px;
}
.term h2 {
  grid-column: 1;
  grid-row: 1;
  font:
    700 clamp(1.08rem, 1.8vw, 1.32rem)/1.2 "DM Sans",
    sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
}
.term-abbr {
  grid-column: 1;
  grid-row: 2;
  display: block;
  margin-top: 5px;
  color: #9d2414;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.term p {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #284e43;
  line-height: 1.65;
  margin: 0;
}
.term a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.glossary-empty {
  display: none;
  background: #fff3a1;
  padding: 70px 20px;
  text-align: center;
}
.glossary-empty h2 {
  font:
    500 clamp(2.2rem, 5vw, 4rem)/0.95 "DM Sans",
    sans-serif;
  letter-spacing: -0.055em;
  margin: 0 0 12px;
}
.glossary-cta {
  background: #003700;
  color: #fff;
  padding: clamp(64px, 8vw, 96px) 0;
}
.glossary-cta .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  align-items: center;
}
.glossary-cta h2 {
  font:
    500 clamp(2.6rem, 5vw, 4.8rem)/0.95 "DM Sans",
    sans-serif;
  letter-spacing: -0.055em;
  margin: 0 0 14px;
}
.glossary-cta p {
  color: #c9ddd4;
  max-width: 720px;
}
.glossary-cta .btn {
  background: #fff3a1 !important;
  color: #003700 !important;
  border-color: #fff3a1 !important;
  border-radius: 999px !important;
  white-space: nowrap;
}
.glossary-hub .nav .btn,
.glossary-hub header .btn {
  border-radius: 999px !important;
}
@media (max-width: 900px) {
  .glossary-tools {
    top: 70px;
  }
  .glossary-tool-row {
    grid-template-columns: 1fr;
  }
  .alphabet {
    justify-content: flex-start;
  }
  .letter-grid {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .letter {
    top: 175px;
  }
  .term {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .term h2,
  .term-abbr,
  .term p {
    grid-column: 1;
    grid-row: auto;
  }
  .glossary-cta .wrap {
    grid-template-columns: 1fr;
  }
  .glossary-cta .btn {
    justify-self: start;
  }
}
@media (max-width: 600px) {
  .glossary-hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }
  .glossary-tools {
    position: static;
  }
  .alphabet {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .letter-grid {
    grid-template-columns: 1fr;
  }
  .letter {
    position: static;
    font-size: 4.2rem;
  }
  .letter-section {
    scroll-margin-top: 10px;
  }
  .term {
    scroll-margin-top: 90px;
  }
}
