
/* Glossary CMS — chunk 03: article sections, tables, mistakes, related, in-body CTA */

.ch-glossary-content > section,
.ch-glossary-content > div,
article.ch-glossary-content > section,
article section,
.ch-glossary-page article section {
  margin-bottom: 2.75rem;
}

.ch-glossary-content section.is-empty {
  display: none;
}

.ch-glossary-content h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.125;
  color: var(--black);
  margin: 0 0 0.85rem;
}

.ch-glossary-content h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  margin: 1.5rem 0 0.5rem;
}

.ch-glossary-content p,
.ch-glossary-content li,
.ch-glossary-content [data-cms] p,
.ch-glossary-content [data-cms] li,
.ch-glossary-content .w-richtext p,
.ch-glossary-content .w-richtext li {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.6;
}

.ch-glossary-content p,
.ch-glossary-content [data-cms] p,
.ch-glossary-content .w-richtext p {
  margin: 0 0 1rem;
}

.ch-glossary-content ol,
.ch-glossary-content ul,
.ch-glossary-content [data-cms] ol,
.ch-glossary-content [data-cms] ul,
.ch-glossary-content .w-richtext ol,
.ch-glossary-content .w-richtext ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.ch-glossary-content li,
.ch-glossary-content [data-cms] li,
.ch-glossary-content .w-richtext li {
  margin-bottom: 0.45rem;
}

.ch-glossary-content a,
.ch-glossary-content [data-cms] a,
.ch-glossary-content .w-richtext a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ch-glossary-content a:hover,
.ch-glossary-content [data-cms] a:hover,
.ch-glossary-content .w-richtext a:hover {
  opacity: 0.7;
}

.ch-glossary-cta-band {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--light-bg);
  border: 1px solid var(--grey);
  border-radius: var(--ch-radius-lg);
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.5;
}

.ch-glossary-cta-band a {
  font-weight: 400;
  text-decoration: underline;
}

.ch-glossary-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--grey);
  border-radius: var(--ch-radius-lg);
  background: var(--light-base);
}

.ch-glossary-content table,
.ch-glossary-content [data-cms] table,
.ch-glossary-content .w-richtext table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-secondary);
  font-size: clamp(0.875rem, 2vw, 1rem);
  min-width: min(32rem, 100%);
}

.ch-glossary-content th,
.ch-glossary-content td,
.ch-glossary-content [data-cms] th,
.ch-glossary-content [data-cms] td,
.ch-glossary-content .w-richtext th,
.ch-glossary-content .w-richtext td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--grey);
}

.ch-glossary-content tr:last-child th,
.ch-glossary-content tr:last-child td,
.ch-glossary-content [data-cms] tr:last-child th,
.ch-glossary-content [data-cms] tr:last-child td,
.ch-glossary-content .w-richtext tr:last-child th,
.ch-glossary-content .w-richtext tr:last-child td {
  border-bottom: 0;
}

.ch-glossary-content th,
.ch-glossary-content [data-cms] th,
.ch-glossary-content .w-richtext th {
  font-family: var(--font-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 400;
  background: var(--light-bg);
}

.ch-glossary-mistakes,
.ch-glossary-page .w-richtext .ch-glossary-mistakes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ch-glossary-mistakes li,
.ch-glossary-page .w-richtext .ch-glossary-mistakes li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--grey);
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.6;
}

.ch-glossary-mistakes li:first-child {
  padding-top: 0;
}

.ch-glossary-mistakes li:last-child,
.ch-glossary-page .w-richtext .ch-glossary-mistakes li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ch-glossary-mistakes strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-primary);
  font-weight: 500;
}

.ch-glossary-related,
.ch-glossary-page .w-richtext .ch-glossary-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ch-glossary-related li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ch-glossary-related a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--light-base);
  border: 1px solid var(--grey);
  border-radius: 999px;
  font-family: var(--font-secondary);
  font-size: 14px;
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.ch-glossary-related a:hover {
  border-color: var(--black);
  opacity: 1;
}

@media (max-width: 767px) {
  .ch-glossary-content > section,
  .ch-glossary-content > div,
  article section,
  .ch-glossary-page section {
    margin-bottom: 2.25rem;
  }
}

@media (max-width: 479px) {
  .ch-glossary-content table,
  .ch-glossary-content .w-richtext table {
    min-width: 28rem;
  }
}
