/* ============================================================
 * /guides/glossary  —  page-specific styles
 *
 * Page chrome (.container, .section-heading, .cta-section, .mist,
 * type utilities, buttons) lives in brand.css. This file holds only
 * the glossary hero and the term-list layout.
 * ============================================================ */

/* HERO */
.breadcrumb + .glossary-hero { padding-top: var(--space-24); }
.glossary-hero {
  padding-top: var(--space-section-standard);
  padding-bottom: var(--space-section-tight);
}
.glossary-hero .glossary-meta {
  margin-top: var(--space-16);
  font-family: var(--font-mono);
  font-size: var(--type-body-s);
  color: var(--color-stone-60);
  letter-spacing: 0.01em;
}
.glossary-hero .descriptor {
  max-width: 60ch;
  margin-top: var(--space-20);
  color: var(--color-stone-60);
}

/* CATEGORY QUICK-NAV  —  pill jump links to each section */
.glossary-nav-section {
  padding-block: 0 var(--space-section-tight);
}
.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}
.glossary-nav a {
  display: inline-flex;
  align-items: center;
  padding-block: var(--space-8);
  padding-inline: var(--space-16);
  border-radius: var(--radius-pill);
  background: var(--color-mist);
  color: var(--color-navy);
  font-size: var(--type-body-s);
  font-weight: 500;
  transition: background var(--duration-instant) var(--ease-standard),
              color var(--duration-instant) var(--ease-standard);
}
.glossary-nav a:hover,
.glossary-nav a:focus-visible {
  background: var(--color-royal);
  color: var(--color-paper);
}

/* KEEP READING  —  cross-links back into the guides (cards in site-chrome.css) */
.glossary-related {
  padding-top: var(--space-section-standard);
  padding-bottom: var(--space-section-standard);
}

/* SECTIONS  —  .mist alternation comes from brand.css */
.glossary-section {
  padding-top: var(--space-section-standard);
  padding-bottom: var(--space-section-standard);
}
/* Clear the sticky header when a category link lands on a section */
.glossary-section[id] { scroll-margin-top: var(--space-96); }

/* TERM LIST */
.glossary-list {
  display: grid;
  gap: var(--space-32);
  max-width: 780px;
  margin-top: var(--space-32);
}
.glossary-term {
  scroll-margin-top: var(--space-96);   /* clear the sticky header on deep-links */
}
.term-name {
  color: var(--color-midnight);
  margin-bottom: var(--space-8);
}
.term-def {
  color: var(--color-stone-60);
  max-width: 68ch;
}
.term-def a {
  color: var(--color-royal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* END CTA  —  centered, with generous vertical breathing room
   (matches the .cta-section treatment on the homepage and pricing). */
.cta-section { text-align: center; padding-block: var(--space-section-generous); }
.cta-section h2 { max-inline-size: 22ch; margin-inline: auto; }
.cta-section .cta-lede { margin-top: var(--space-20); }
