/* ═══════════════════════════════════════════════════════
   SYNE Carbon — glossary.css
   Carbon Markets Glossary page styles.
   Base styles (nav, footer, pg-header, cta-sec, reveal,
   btn, eyebrow, section-title, breadcrumb) live in styles.css.
═══════════════════════════════════════════════════════ */

/* ── Nav active ──────────────────────────────────────── */
.nav-link-active { color: var(--blue) !important; }

/* ══════════════════════════════════════════════════════
   HEADER STATS STRIP
══════════════════════════════════════════════════════ */
.pg-header-inner { grid-template-columns: 1fr 1fr; align-items: end; }

.gloss-hdr-stats {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  align-self: center;
  max-width: 380px;
}

.ghs-item {
  flex: 1;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.ghs-item:last-child { border-right: none; }

.ghs-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
}
.ghs-val span { color: var(--blue); font-size: 16px; }
.ghs-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 5px;
}

/* ══════════════════════════════════════════════════════
   GLOSSARY LAYOUT  (sidebar + main, sticky sidebar)
══════════════════════════════════════════════════════ */
.glossary-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 48px;
  align-items: start;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
.gloss-sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 36px 0 36px 0;
  padding-right: 28px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.gloss-sidebar::-webkit-scrollbar { width: 4px; }
.gloss-sidebar::-webkit-scrollbar-track { background: transparent; }
.gloss-sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* Search */
.gloss-search-wrap { margin-bottom: 28px; }

.gloss-search {
  position: relative;
  display: flex;
  align-items: center;
}

.gloss-search .gs-ico {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--ink-4);
  flex-shrink: 0;
  pointer-events: none;
}

#gloss-input {
  width: 100%;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg-white);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 9px 36px 9px 34px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#gloss-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(57,172,231,.12);
}
#gloss-input::placeholder { color: var(--ink-4); }

.gs-clear {
  position: absolute;
  right: 9px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--ink-4);
  cursor: pointer;
  transition: color .12s;
}
.gs-clear:hover { color: var(--ink-2); }
.gs-clear svg { width: 14px; height: 14px; }

/* Sidebar labels */
.gloss-sb-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}

/* Category pills */
.gloss-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.gcat {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 7px 10px;
  border-radius: var(--r);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background .13s, color .13s;
  line-height: 1.3;
}
.gcat:hover { background: var(--bg-grey); color: var(--ink-2); }
.gcat.active { background: var(--blue-lt); color: var(--blue-dark); font-weight: 600; }

/* Alpha nav */
.gloss-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.ga-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: all .13s;
}
.ga-btn:hover { background: var(--bg-grey); color: var(--ink); }
.ga-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.ga-btn.disabled { opacity: .25; pointer-events: none; }

/* Results count */
.gloss-count {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ══════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════ */
.gloss-main {
  padding: 40px 0 80px 48px;
  min-height: 70vh;
}

/* Notice bar (search info) */
.gloss-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  background: var(--blue-lt);
  border: 1px solid var(--blue-mid);
  border-radius: var(--r);
  padding: 10px 14px;
  margin-bottom: 28px;
}
.gloss-notice svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; }

/* Empty state */
.gloss-empty {
  text-align: center;
  padding: 72px 0;
  color: var(--ink-3);
}
.gloss-empty svg {
  width: 40px;
  height: 40px;
  color: var(--ink-4);
  margin: 0 auto 16px;
  display: block;
}
.ge-title { font-size: 17px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.ge-sub { font-size: 13.5px; color: var(--ink-4); }
.ge-sub button {
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ══════════════════════════════════════════════════════
   ALPHA SECTIONS
══════════════════════════════════════════════════════ */
.alpha-section {
  margin-bottom: 0;
  scroll-margin-top: 90px;
}

.alpha-section.hidden { display: none; }

.alpha-heading {
  position: sticky;
  top: 60px;
  z-index: 2;
  background: var(--bg-white);
  padding: 16px 0 10px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--line);
}

.alpha-letter {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.04em;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════
   TERM ENTRIES
══════════════════════════════════════════════════════ */
.term-list { list-style: none; }

.term-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}

.term-item:last-child { border-bottom: 1px solid var(--line); }

.term-item.hidden { display: none; }

.term-item.highlighted { background: rgba(57,172,231,.05); }

.term-item dt {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.term-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.012em;
  line-height: 1.2;
}

/* Category tags on terms */
.term-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-vcm       { color: #166534;           background: var(--green-lt);  border-color: #BBF7D0; }
.tag-compliance{ color: var(--blue-dark);  background: var(--blue-lt);   border-color: var(--blue-mid); }
.tag-ratings   { color: #4338CA;           background: var(--indigo-lt); border-color: #C7D2FE; }
.tag-registry  { color: #92400E;           background: var(--amber-lt);  border-color: #FDE68A; }
.tag-trading   { color: #0369A1;           background: rgba(14,165,233,.1); border-color: #BAE6FD; }
.tag-science   { color: #065F46;           background: #ECFDF5;          border-color: #A7F3D0; }
.tag-policy    { color: #6B21A8;           background: #FAF5FF;          border-color: #E9D5FF; }
.tag-tech      { color: var(--ink-2);      background: var(--bg-slate);  border-color: var(--line); }

/* Term definition */
.term-item dd {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 72ch;
}

/* Search highlight */
mark {
  background: rgba(57,172,231,.18);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .glossary-layout { grid-template-columns: 220px 1fr; padding: 0 24px; }
  .gloss-main { padding-left: 32px; }
}

@media (max-width: 900px) {
  .glossary-layout { grid-template-columns: 1fr; padding: 0 24px; }
  .gloss-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    padding: 24px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .gloss-cats { flex-direction: row; flex-wrap: wrap; }
  .gcat { padding: 5px 10px; font-size: 12px; }
  .gloss-main { padding: 24px 0 56px; }
  .alpha-heading { top: 56px; }
}

@media (max-width: 640px) {
  .glossary-layout { padding: 0 16px; }
  .pg-header-inner { grid-template-columns: 1fr !important; }
  .gloss-hdr-stats { max-width: 100%; }
}
