/* ------------------------------------------------------------------
 * LinkedIn Glossary - CMS template page components
 * All rules scoped under .gl-root to avoid collisions in the shared
 * globals.css. Tokens come from the canonical --cs-* set (globals.css).
 * ------------------------------------------------------------------ */

.gl-root {
  font-family: var(--cs-font-body);
  color: var(--cs-ink-900);
  -webkit-font-smoothing: antialiased;
}

.gl-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.gl-header {
  background: var(--cs-surface-50);
  padding: 48px 0 8px;
}

.gl-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cs-ink-400);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gl-back:hover {
  color: var(--cs-ink-900);
}

.gl-eyebrow {
  display: block;
  margin: 28px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-brand-600);
}

.gl-title {
  margin: 0 0 24px;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--cs-ink-900);
}

@media (max-width: 767px) {
  .gl-title {
    font-size: 32px;
  }
}

.gl-definition-card {
  max-width: 760px;
  background: var(--cs-brand-25);
  border: 1px solid var(--cs-line-100);
  border-radius: var(--cs-radius-xl);
  padding: 24px;
}

.gl-definition-card__label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-ink-500);
}

.gl-definition-card__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--cs-ink-700);
}

/* ---------- Body (renders the CMS RichText field) ---------- */

.gl-body-section {
  background: var(--cs-surface-50);
  padding: 8px 0 48px;
}

.gl-body {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--cs-ink-400);
}

.gl-body h2 {
  margin: 40px 0 12px;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--cs-ink-900);
}

.gl-body h3 {
  margin: 28px 0 10px;
  font-family: var(--cs-font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--cs-ink-900);
}

.gl-body p {
  margin: 0 0 16px;
}

.gl-body p:last-child {
  margin-bottom: 0;
}

.gl-body strong {
  color: var(--cs-ink-900);
  font-weight: 600;
}

.gl-body a {
  color: var(--cs-brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gl-body a:hover {
  color: var(--cs-brand-700);
}

.gl-body ul,
.gl-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.gl-body ul {
  list-style: disc;
}

.gl-body ol {
  list-style: decimal;
}

.gl-body li {
  margin: 8px 0;
  padding-left: 4px;
}

.gl-body li::marker {
  color: var(--cs-ink-300);
  font-weight: 600;
}

.gl-body table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 15px;
}

.gl-body th {
  text-align: left;
  font-weight: 600;
  color: var(--cs-ink-900);
  background: var(--cs-surface-100);
  padding: 10px 14px;
  border: 1px solid var(--cs-line-200);
}

.gl-body td {
  padding: 10px 14px;
  border: 1px solid var(--cs-line-200);
  color: var(--cs-ink-400);
}

.gl-body blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--cs-brand-600);
  color: var(--cs-ink-700);
}

.gl-body hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--cs-line-200);
}

/* ---------- Related terms ---------- */

.gl-related {
  background: var(--cs-surface-50);
  padding: 8px 0 56px;
}

.gl-related__title {
  margin: 0 0 20px;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--cs-ink-900);
}

.gl-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1120px;
}

@media (max-width: 991px) {
  .gl-related__grid {
    grid-template-columns: 1fr;
  }
}

.gl-related-card {
  display: block;
  background: var(--cs-surface-0);
  border: 1px solid var(--cs-line-200);
  border-radius: var(--cs-radius-xl);
  padding: 20px;
  box-shadow: var(--cs-shadow-card);
  text-decoration: none;
  transition: box-shadow 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gl-related-card:hover {
  box-shadow: var(--cs-shadow-card-hover);
}

.gl-related-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--cs-ink-900);
}

.gl-related-card__title svg {
  flex: none;
  color: var(--cs-brand-600);
}

.gl-related-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cs-ink-400);
}

/* ---------- CTA panel ---------- */

.gl-cta {
  background: var(--cs-surface-50);
  padding: 8px 0 80px;
}

.gl-cta__panel {
  background: var(--cs-brand-600);
  border-radius: var(--cs-radius-2xl);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--cs-shadow-cta-blue);
}

.gl-cta__title {
  margin: 0 0 12px;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #ffffff;
}

@media (max-width: 767px) {
  .gl-cta__title {
    font-size: 28px;
  }
}

.gl-cta__body {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.gl-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--cs-radius-md);
  background: #ffffff;
  color: var(--cs-brand-600);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--cs-shadow-white-btn);
  transition: opacity 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gl-cta__btn:hover {
  opacity: 0.92;
}

