/* ============================================================================
   glossary.css — Honeybee Fulfillment glossary (/glossary)
   Loaded AFTER site.css and blog.css. Term pages reuse the blog's article
   scaffolding (.blog-layout, .prose, .toc, .blog-faq, .book band) so a
   definition reads like the rest of the site; this file adds only what a
   glossary needs that an article doesn't — the definition capsule, the A–Z
   index, and the filter controls.
   ========================================================================== */

/* ---- Term page header --------------------------------------------------- */
.gl-head h1 {
  /* Terms are short strings, so they can run larger than an article headline
     without wrapping badly — the word IS the page. */
  font-size: clamp(34px, 5.4vw, 52px);
}
.gl-aka {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-500);
}
.gl-aka strong { color: var(--ink-700); font-weight: 600; }

.gl-platforms {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
}
.gl-platforms li {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
}

/* ---- The definition capsule -------------------------------------------- */
/* The single most important block on the page: the self-contained answer that
   featured snippets and AI Overviews lift. Visually weighted to match. */
.gl-definition {
  margin: 32px 0 0;
  padding: 26px 28px;
  background: var(--honey-50);
  border: 1px solid var(--honey-200);
  border-left: 3px solid var(--honey-400);
  border-radius: var(--radius-lg);
}
.gl-definition-label {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--honey-700);
}
.gl-definition-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-900);
}
.gl-definition-text a { color: var(--honey-700); text-decoration: underline; text-underline-offset: 2px; }
.gl-definition-text strong { font-weight: 600; }
@media (max-width: 520px) {
  .gl-definition { padding: 20px 18px; }
  .gl-definition-text { font-size: 17px; }
}

.gl-updated {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-300);
}

/* ---- Index: search + category filter ------------------------------------ */
.gl-index { padding: 8px 0 0; }

.gl-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-bottom: 28px;
}
.gl-search { position: relative; flex: 1 1 300px; max-width: 420px; }
.gl-search-ic {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-300);
  pointer-events: none;
}
.gl-search input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  padding: 12px 18px 12px 40px;
  transition: border-color var(--t), box-shadow var(--t);
}
.gl-search input::placeholder { color: var(--ink-300); }
.gl-search input:focus {
  outline: none;
  border-color: var(--honey-400);
  box-shadow: 0 0 0 3px var(--honey-50);
}
.gl-search input::-webkit-search-cancel-button { cursor: pointer; }

.gl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.gl-chip:hover { color: var(--ink-900); border-color: var(--line-2); }
.gl-chip[aria-pressed="true"] {
  color: #fff;
  background: var(--ink-900);
  border-color: var(--ink-900);
}

/* ---- A–Z jump nav ------------------------------------------------------- */
.gl-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 14px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gl-jump-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--honey-600);
  text-decoration: none;
  min-width: 26px;
  text-align: center;
  padding: 4px 2px;
  border-radius: var(--radius-xs);
  transition: color var(--t), background var(--t);
}
.gl-jump-link:hover { background: var(--honey-50); color: var(--honey-900); }
/* Letters with no terms (or filtered to zero) stay visible but inert, so the
   alphabet doesn't reflow as the reader types. */
.gl-jump-link.is-off,
.gl-jump-link.is-empty { color: var(--ink-200); pointer-events: none; background: none; }

/* ---- Letter groups + term cards ---------------------------------------- */
.gl-letter-group { padding: 34px 0 6px; scroll-margin-top: 100px; }
.gl-letter {
  font-size: 22px;
  line-height: 1;
  color: var(--honey-600);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.02em;
}

.gl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.gl-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.gl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.gl-card[hidden] { display: none; }
.gl-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
}
.gl-card-chip {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey-700);
  margin-bottom: 9px;
}
.gl-card-title {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 9px;
  color: var(--ink-900);
}
.gl-card:hover .gl-card-title { color: var(--honey-700); }
.gl-card-def {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0 0 16px;
}
/* Pushes the affordance to the card's bottom edge so a row of uneven
   definitions still lines up along its baseline. */
.gl-card-more {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--honey-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gl-noresults {
  text-align: center;
  font-family: var(--font-sans);
  color: var(--ink-500);
  padding: 56px 0;
}
.gl-noresults a { color: var(--honey-700); text-decoration: underline; }

.gl-related-all { margin: 26px 0 0; font-family: var(--font-sans); font-size: 15px; }
.gl-related-all a {
  color: var(--honey-700);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gl-related-all a:hover { color: var(--honey-900); }

/* ---- Closing CTA band on the index -------------------------------------- */
.gl-cta-band { margin-top: 72px; padding: var(--section-pad-sm) 0; }
.gl-cta-inner { max-width: 720px; text-align: center; }
.gl-cta-inner h2 {
  font-size: var(--display-sm);
  line-height: 1.15;
  margin: 0 0 16px;
  color: #fff;
}
.gl-cta-inner p {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  margin: 0 auto 28px;
  max-width: 560px;
}
.gl-cta-inner p strong { color: #fff; font-weight: 600; }
