/* Template: glossary index (brand v3). Find a term fast: big filter in the hero, sticky A–Z bar,
   a short "start with these" list, then the full A–Z in editorial rows. Classes "gl-". */

.gl-all [hidden], .gl-intro[hidden] { display: none !important; }

/* hero filter */
.gl-search { margin-top: 2rem; max-width: 40rem; padding: 0.3rem 0.4rem 0.3rem 1.2rem; border-radius: 12px; }
.gl-search svg { width: 20px; height: 20px; }
.gl-search input { min-height: 48px; font-size: 1.05rem; }

/* sticky A–Z bar: one row; scrolls sideways on small screens */
.az-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.az-bar ul { list-style: none; display: flex; gap: 0; padding: 0; margin: 0; overflow-x: auto; scrollbar-width: none; }
.az-bar ul::-webkit-scrollbar { display: none; }
.az-bar li { flex: 1 0 auto; }
.az-bar a, .az-bar span { position: relative; display: grid; place-items: center; min-width: 2.6rem; height: 44px; border-radius: 8px; font-family: var(--font); font-weight: 700; font-size: 0.95rem; text-decoration: none; color: var(--ink); }
.az-bar a:hover { background: var(--snow); }
.az-bar a.is-active { background: var(--ink); color: #fff; }
.az-bar a.is-active::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--lamp); }
.az-bar span, .az-bar a.is-off { color: #b4b4ba; font-weight: 500; }
.az-bar a.is-off { pointer-events: none; }
@media (max-width: 1000px) { .az-bar .container { padding-inline: 0.5rem; } .az-bar a, .az-bar span { min-width: 44px; } }

/* intro: split heading, then the starter terms as a ruled list (not cards) */
.gl-h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1.08; letter-spacing: -0.035em; }
.gl-lead { color: var(--slate); font-size: 1.1rem; max-width: 36rem; }
.gl-meaning { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.gl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.gl-split .gl-lead { padding-top: 0.4rem; }
.gl-start-sec { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem) clamp(3rem, 2rem + 3vw, 5rem); }
.gl-start { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
.gl-start li { border-top: 1px solid var(--line); }
.gl-start__item { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.1rem 0 1.3rem; color: var(--ink); text-decoration: none; }
.gl-start__item b { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.gl-start__item p { color: var(--slate); font-size: 0.95rem; line-height: 1.5; }
.gl-start__go { margin-top: auto; padding-top: 0.3rem; font-size: 0.92rem; font-weight: 700; }
.gl-start__go::after { content: " \2192"; display: inline-block; transition: transform 0.2s; }
.gl-start__item:hover b { text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.gl-start__item:hover .gl-start__go::after { transform: translateX(3px); }
.gl-more { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--slate); line-height: 1.9; }
.gl-more strong { color: var(--ink); }

/* the full A–Z */
.gl-all { background: var(--snow); padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) var(--section); }
.az-count { font-family: var(--font); font-size: 0.95rem; color: var(--slate); margin-bottom: 0.5rem; }
.az-group { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.6rem; border-top: 1px solid #d4d4d9; scroll-margin-top: calc(var(--header-h) + 64px); }
.az-group__letter { font-size: clamp(2.4rem, 1.9rem + 1.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.az-group__list { list-style: none; padding: 0; columns: 3 13rem; column-gap: 2.2rem; }
.az-group__list li { break-inside: avoid; }
.az-group__list a { display: flex; align-items: center; min-height: 44px; padding-block: 0.3rem; line-height: 1.35; color: var(--ink); text-decoration: none; font-weight: 500; }
.az-group__list a:hover { text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.az-empty { display: none; padding: 2.5rem 0; font-size: 1.1rem; border-top: 1px solid #d4d4d9; }
.az-empty.is-visible { display: block; }
.gl-suggest { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 2.5rem; padding: 1.4rem 1.6rem; border-radius: 18px; border: 2px dashed #b9b9c0; }
.gl-suggest__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.gl-suggest__text { margin-top: 0.3rem; color: var(--slate); }

@media (max-width: 1000px) { .gl-start { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gl-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .gl-start { grid-template-columns: minmax(0, 1fr); }
  .gl-start__item { padding-block: 0.9rem 1rem; }
  .az-group { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) { .gl-start__go::after { transition: none; } }

/* ---------- human touch (2026-11-20): the SEO meaning as a narrow pull quote, lighter A-Z letters ---------- */
.gl-meaning .gl-split { grid-template-columns: minmax(0, 1fr); max-width: calc(44rem + 2 * var(--gutter)); gap: 1.2rem; }
.gl-meaning .gl-h2 { font-weight: 500; letter-spacing: -0.03em; }
.gl-split .gl-pull { padding-top: 1.1rem; max-width: 40ch; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
.gl-pull a { font-weight: 600; }
.gl-start__item b { font-weight: 700; }
/* the big letters: light and large, like a dictionary's thumb index */
.az-group__letter { font-weight: 300; font-size: clamp(2.8rem, 2.1rem + 2vw, 4rem); letter-spacing: -0.03em; }
.az-count { font-variant-numeric: tabular-nums; }
