/* Nanopixo Terms Glossary (Phase 1). Builds on /css/style.css (header, footer, .btn, container). */
:root { --gl-ink: #111418; --gl-muted: #6b7280; --gl-line: #e7e7ea; --gl-soft: #f6f6f7; --gl-yellow: #ffff20; --gl-az-h: 56px; }

.gl-body { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--gl-ink); }
/* Narrow reading column for the content only; header/footer keep the site width. */
.gl-body main .container { max-width: 960px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
/* The bottom CTA + newsletter run wider, like the blog (not the reading column). */
.gl-body main .container.blog-freecta-wrap, .gl-body main .newsletter .container { max-width: 1120px; }
.gl-body main { padding-bottom: 0; }

/* Breadcrumb */
.gl-crumb { font-size: 13px; color: var(--gl-muted); margin: 22px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gl-crumb a { color: var(--gl-muted); text-decoration: none; }
.gl-crumb a:hover { color: var(--gl-ink); }
.gl-crumb__sep { opacity: .5; }
.gl-crumb [aria-current] { color: var(--gl-ink); font-weight: 600; }

/* Hero */
.gl-hero { padding: 28px 0 8px; }
.gl-hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; margin: 0 0 14px; max-width: 24ch; }
.gl-hero p { font-size: 18px; line-height: 1.6; color: #2b2f36; font-weight: 500; max-width: 680px; margin: 0 0 22px; }

/* Search + count */
.gl-search { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.gl-search__wrap { position: relative; display: block; flex: 1 1 380px; max-width: 460px; }
.gl-search__ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--gl-muted); pointer-events: none; }
.gl-search input { width: 100%; padding: 13px 18px 13px 46px; font-size: 15px; border: 1.5px solid var(--gl-line); border-radius: 12px; outline: none; }
.gl-search input:focus { border-color: var(--gl-ink); }
.gl-count { font-size: 14px; color: var(--gl-muted); font-weight: 600; white-space: nowrap; }

/* View toggle (A-Z / by theme) */
.gl-views { display: inline-flex; gap: 4px; margin-top: 18px; background: var(--gl-soft); padding: 4px; border-radius: 999px; }
.gl-views__btn { border: none; background: none; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--gl-muted); cursor: pointer; }
.gl-views__btn.is-active { background: var(--gl-ink); color: #fff; }

/* Sticky A-Z bar */
.gl-az { position: sticky; top: 0; z-index: 150; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); display: flex; flex-wrap: wrap; justify-content: center; gap: 1px 2px; padding: 9px 12px; margin: 22px 0 6px; min-height: var(--gl-az-h); }
.gl-az__l { font-size: 13px; font-weight: 700; color: var(--gl-ink); text-decoration: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.gl-az__l:hover { background: var(--gl-yellow); }
.gl-az__l.is-off { color: #c9c9cf; pointer-events: none; }

/* Section heads (letter or theme) */
.gl-head { font-size: 30px; font-weight: 900; letter-spacing: -.02em; color: var(--gl-ink); margin: 38px 0 12px; scroll-margin-top: calc(var(--gl-az-h) + 70px); }
.gl-head:first-child { margin-top: 14px; }

/* Term entry */
.gl-term { padding: 16px 0; border-bottom: 1px solid var(--gl-line); scroll-margin-top: calc(var(--gl-az-h) + 78px); }
.gl-term__name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.gl-term__copy { position: relative; border: none; background: none; padding: 2px; width: 26px; height: 26px; color: var(--gl-muted); cursor: pointer; opacity: 0; transition: opacity .12s, color .12s; flex: none; border-radius: 6px; }
.gl-term__copy svg { width: 16px; height: 16px; }
.gl-term:hover .gl-term__copy, .gl-term__copy:focus { opacity: 1; }
.gl-term__copy:hover { color: var(--gl-ink); background: var(--gl-soft); }
.gl-term__copy.is-copied { color: #1a7f37; opacity: 1; }
/* "Copied" confirmation bubble above the icon. */
.gl-term__copy::after { content: attr(data-copied); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) translateY(4px); background: var(--gl-ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .01em; padding: 5px 9px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease, transform .12s ease; z-index: 5; }
.gl-term__copy::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 1px); transform: translateX(-50%) translateY(4px); border: 5px solid transparent; border-top-color: var(--gl-ink); opacity: 0; transition: opacity .12s ease, transform .12s ease; }
.gl-term__copy.is-copied::after, .gl-term__copy.is-copied::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.gl-term__def { font-size: 16px; line-height: 1.6; color: #1d1d1f; margin: 0; }
.gl-term__ctx { font-size: 15px; line-height: 1.6; color: var(--gl-muted); margin: 6px 0 0; }
.gl-term__see { font-size: 14px; color: var(--gl-muted); margin: 8px 0 0; }
.gl-term__see-label { font-weight: 700; }
.gl-term__see a { color: var(--gl-ink); font-weight: 600; text-decoration: none; }
.gl-term__see a:hover { text-decoration: underline; }
.gl-term__sep { opacity: .5; margin: 0 8px; }
.gl-term[hidden] { display: none; }
.gl-head[hidden] { display: none; }

.gl-noresults { font-size: 16px; color: var(--gl-muted); padding: 28px 0; text-align: center; }

/* CTA band */
.gl-cta { margin-top: 56px; }
.gl-cta__inner { background: var(--gl-soft); border-radius: 18px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.gl-cta__title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.gl-cta__text { margin: 0; color: var(--gl-muted); }

/* Newsletter title matches the free-CTA title (same as the blog). */
.gl-body .newsletter__title { font-family: 'Roboto', sans-serif; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }

/* Back to top */
.gl-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 999px; border: none; background: var(--gl-ink); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 160; }
.gl-top.is-on { opacity: 1; pointer-events: auto; }

@media (max-width: 560px) {
  .gl-az { gap: 0; padding: 8px 6px; }
  .gl-az__l { width: 21px; font-size: 12px; }
  .gl-search__wrap { flex-basis: 100%; }
  .gl-cta__inner { flex-direction: column; align-items: stretch; text-align: left; }
}
