/* Spanish by Leo - glossary pages (loaded only on /glossary pages; builds on style.css tokens) */
.term-hero { margin: 4px 0 18px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.term-word { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.term-es { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; overflow-wrap: anywhere; }
.term-pron { margin: 8px 0 0; color: var(--ink-soft); }
.term-pron b { color: var(--ink); letter-spacing: .02em; }
.quick .pron { font-weight: 700; color: var(--ink); }
.term .lesson-sec h3 { margin-top: 14px; font-size: 1.1rem; }
.gl-related { display: flex; flex-wrap: wrap; gap: 10px; }
.gl-chip { display: inline-flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: inherit; transition: border-color .15s ease; }
.gl-chip:hover { border-color: var(--ink); color: inherit; }
.gl-es { font-weight: 800; font-family: var(--font-head); font-size: 1.1rem; }
.gl-en { color: var(--ink-soft); font-size: .88rem; }
.gl-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.gl-pager a { text-decoration: none; font-weight: 700; padding: 8px 4px; }
.gl-back { margin-top: 14px; color: var(--ink-soft); }
.gl-tools { display: grid; gap: 12px; margin: 6px 0 18px; }
.gl-tools[hidden] { display: none; }
.gl-search input { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--radius-md); background: var(--white); color: var(--ink); }
.gl-search input:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.gl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-f { font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.gl-f[aria-pressed="true"] { background: var(--orange-tint); border-color: var(--orange); }
.gl-cats { margin: 22px 0; }
.gl-sample { color: var(--ink-soft); font-size: .95rem; }
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; position: sticky; top: 0; z-index: 5; background: var(--cream, #fff); padding: 8px 0; }
.az-nav a { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 800; background: var(--white); color: var(--ink); }
.az-nav a:hover { border-color: var(--ink); }
.gl-letter { margin-top: 26px; scroll-margin-top: 70px; }
.gl-letter h2 { font-size: 1.6rem; border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin-bottom: 12px; }
.gl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gl-list li[hidden], .gl-letter[hidden] { display: none; }
.gl-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; height: 100%; }
.gl-list a:hover { border-color: var(--ink); }
.gl-none { padding: 20px; text-align: center; color: var(--ink-soft); }
@media (max-width: 480px) { .gl-list { grid-template-columns: 1fr; } .gl-chip { min-width: 0; flex: 1 1 140px; } }
