.glossary-page,
.term-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 36px 88px;
}
.glossary-hero {
  max-width: 790px;
  margin-bottom: 40px;
}
.glossary-hero h1,
.term-hero h1 {
  font: 500 clamp(40px, 5vw, 68px)/1.05 var(--serif);
  letter-spacing: -0.04em;
  margin: 18px 0 24px;
  overflow-wrap: anywhere;
}
.glossary-hero h1 em {
  color: var(--orange);
  font-weight: 450;
}
.glossary-hero > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
}
.glossary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0 0;
}
.glossary-stats span {
  font-size: 12px;
  color: var(--muted);
}
.glossary-stats strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}
.glossary-tools {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.glossary-search label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
}
.glossary-search > div {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 680px;
  overflow: hidden;
}
.glossary-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 16px 18px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.glossary-search input:focus {
  outline-offset: -3px;
}
.glossary-search button {
  margin: 6px;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: var(--orange);
  color: white;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.glossary-search > a {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
}
.glossary-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}
.glossary-alphabet a {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
}
.glossary-alphabet a:hover,
.glossary-alphabet a[aria-current] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.glossary-note {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 870px;
  margin: 0 0 30px;
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.glossary-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-width: 0;
}
.glossary-card h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.glossary-card h2 a {
  text-decoration: none;
}
.glossary-card h2 a:hover {
  color: var(--orange);
}
.glossary-card h2 span {
  color: var(--orange);
  font-weight: 400;
}
.glossary-card > p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.glossary-card-meta {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.term-page {
  max-width: 1000px;
}
.term-page .breadcrumbs {
  padding: 0;
  margin: 0 0 36px;
}
.term-hero > p:last-child {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}
.term-definitions {
  display: grid;
  gap: 18px;
}
.term-definition {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-width: 0;
}
.term-source-label {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 650;
}
.term-scope,
.term-annotation {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin: 14px 0;
}
.term-definition-text {
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.term-definition-text p {
  margin: 16px 0;
}
.term-source {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.term-source > a:first-child,
.term-mentions a {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  text-decoration: none;
}
.term-source a span,
.term-mentions a span {
  display: block;
  font-size: 11px;
  color: var(--orange);
  margin-top: 4px;
}
.term-official {
  color: var(--muted);
  font-size: 11px;
}
.term-mentions {
  margin-top: 46px;
}
.term-mentions h2 {
  font: 500 32px/1.2 var(--serif);
  margin-bottom: 20px;
}
.term-mentions ul {
  list-style: none;
  padding: 0;
}
.term-mentions li {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.term-back {
  display: inline-block;
  margin-top: 32px;
  font-size: 13px;
}
.glossary-result-count {
  font-size: 13px;
  margin: 20px 0;
}
.glossary-page .pagination,
.term-page .pagination {
  margin-top: 36px;
}
@media (max-width: 680px) {
  .glossary-page,
  .term-page {
    padding: 36px 20px 60px;
  }
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  .glossary-card,
  .term-definition {
    padding: 22px;
  }
  .glossary-stats {
    gap: 20px;
  }
  .glossary-stats strong {
    font-size: 22px;
  }
  .glossary-stats span {
    font-size: 11px;
  }
  .glossary-hero h1,
  .term-hero h1 {
    font-size: 43px;
  }
  .glossary-search button {
    padding: 0 15px;
  }
  .glossary-alphabet {
    gap: 5px;
  }
  .glossary-alphabet a {
    min-width: 33px;
  }
  .term-mentions h2 {
    font-size: 28px;
  }
}
