/* ============================================================
   CRCGS — GLOSSARY PAGE — glossary.css
   Prefix: crcgs-gl-
   Variables + reset scoped to .crcgs-gl-root — fully isolated.
   Base palette matches about.html; warm sand/taupe accent for
   a clean, neutral reference-tool feel.
   ============================================================ */

.crcgs-gl-root *,
.crcgs-gl-root *::before,
.crcgs-gl-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.crcgs-gl-root {
  --gl-navy:        #1D3461;
  --gl-navy-deep:   #111F3D;
  --gl-navy-mid:    #243a6e;
  --gl-gold:        #D4A84A;
  --gl-sand:        #A68A64;
  --gl-sand-light:  #C9B896;
  --gl-cream:       #F5EDE0;
  --gl-warm-white:  #FDFAF5;
  --gl-pearl:       #FAFAF7;
  --gl-text:        #1A1A2E;
  --gl-muted:       #6B7280;
  --gl-border:      #ddd0b8;
  --gl-border-lt:   #ece5d5;
  --gl-transition:  0.3s cubic-bezier(0.4,0,0.2,1);

  font-family: 'Spectral', Georgia, serif;
  color: var(--gl-text);
  background: var(--gl-warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.crcgs-gl-root h1, .crcgs-gl-root h2, .crcgs-gl-root h3 { font-family: 'Cormorant Garamond', Georgia, serif; }
.crcgs-gl-root a:focus-visible,
.crcgs-gl-root button:focus-visible,
.crcgs-gl-root input:focus-visible { outline: 2px solid var(--gl-sand); outline-offset: 3px; }

.crcgs-gl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.9rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--gl-transition);
  white-space: nowrap;
}
.crcgs-gl-btn-primary { background: var(--gl-sand); color: var(--gl-warm-white); border-color: var(--gl-sand); }
.crcgs-gl-btn-primary:hover { background: var(--gl-sand-light); color: var(--gl-navy-deep); transform: translateY(-2px); }

/* ════════════════════════════════════════════════════════════
   HERO + SEARCH  (left-aligned, compact, no vh)
════════════════════════════════════════════════════════════ */
.crcgs-gl-hero {
  position: relative;
  overflow: hidden;
  background: var(--gl-navy);
  padding: 80px clamp(20px, 6vw, 80px) 56px;
}
.crcgs-gl-hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,184,150,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,184,150,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.crcgs-gl-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 70% at 85% 15%, rgba(201,184,150,.13) 0%, transparent 65%);
  pointer-events: none;
}
.crcgs-gl-hero-inner { max-width: 680px; position: relative; z-index: 2; }
.crcgs-gl-hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gl-sand-light);
  font-weight: 700;
  margin-bottom: 1rem;
}
.crcgs-gl-hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 400;
  color: var(--gl-warm-white);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.crcgs-gl-hero-title em { font-style: italic; font-weight: 600; color: var(--gl-sand-light); }
.crcgs-gl-hero-sub {
  font-size: 1rem;
  color: rgba(253,250,245,.7);
  max-width: 52ch;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.6rem;
}
.crcgs-gl-search-wrap { max-width: 420px; }
.crcgs-gl-search {
  width: 100%;
  font-family: 'Spectral', serif;
  font-size: 0.96rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(253,250,245,.25);
  background: rgba(253,250,245,.07);
  color: var(--gl-warm-white);
}
.crcgs-gl-search::placeholder { color: rgba(253,250,245,.45); }

/* ════════════════════════════════════════════════════════════
   A-Z JUMP NAV
════════════════════════════════════════════════════════════ */
.crcgs-gl-az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  background: var(--gl-cream);
  padding: 1rem clamp(20px, 6vw, 80px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--gl-border);
}
.crcgs-gl-az-link {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gl-navy);
  text-decoration: none;
  background: var(--gl-warm-white);
  border: 1px solid var(--gl-border-lt);
  transition: var(--gl-transition);
}
.crcgs-gl-az-link:hover { background: var(--gl-sand); color: var(--gl-warm-white); border-color: var(--gl-sand); }
.crcgs-gl-az-link--disabled { color: var(--gl-muted); opacity: 0.4; cursor: default; }
.crcgs-gl-az-link--disabled:hover { background: var(--gl-warm-white); color: var(--gl-muted); }

/* ════════════════════════════════════════════════════════════
   TERMS
════════════════════════════════════════════════════════════ */
.crcgs-gl-terms { background: var(--gl-warm-white); padding: 2.5rem clamp(20px, 6vw, 80px) 1rem; }
.crcgs-gl-terms-inner { max-width: 820px; margin: 0 auto; }

.crcgs-gl-letter-group { display: flex; gap: 1.6rem; padding: 1.6rem 0; border-bottom: 1px solid var(--gl-border-lt); scroll-margin-top: 70px; }
.crcgs-gl-letter-group:last-of-type { border-bottom: none; }
.crcgs-gl-letter-marker {
  flex-shrink: 0;
  width: 48px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gl-sand-light);
  line-height: 1;
}
.crcgs-gl-letter-entries { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.crcgs-gl-term-name { font-size: 1.08rem; font-weight: 600; color: var(--gl-navy); margin-bottom: 0.4rem; }
.crcgs-gl-term-full { font-size: 0.84rem; font-weight: 400; font-style: italic; color: var(--gl-muted); }
.crcgs-gl-term-def { font-size: 0.9rem; color: var(--gl-text); line-height: 1.7; font-weight: 300; }
.crcgs-gl-empty-state { text-align: center; color: var(--gl-muted); font-style: italic; padding: 2rem 0; }

/* ════════════════════════════════════════════════════════════
   CLOSING CTA
════════════════════════════════════════════════════════════ */
.crcgs-gl-closing {
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(201,184,150,.1) 0%, transparent 60%), var(--gl-navy-deep);
  padding: 3rem clamp(20px, 6vw, 80px);
  text-align: center;
  border-top: 3px solid var(--gl-sand);
}
.crcgs-gl-closing-inner { max-width: 560px; margin: 0 auto; }
.crcgs-gl-closing-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 300; color: var(--gl-warm-white); margin-bottom: 0.8rem; }
.crcgs-gl-closing-title em { font-style: italic; color: var(--gl-sand-light); }
.crcgs-gl-closing-sub { font-size: 0.92rem; color: rgba(253,250,245,.62); font-weight: 300; margin-bottom: 1.6rem; }
.crcgs-gl-closing-ctas { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .crcgs-gl-hero { padding: 64px clamp(20px,5vw,48px) 44px; }
  .crcgs-gl-az { padding: 0.9rem clamp(20px,5vw,48px); }
  .crcgs-gl-terms { padding: 2.2rem clamp(20px,5vw,48px) 1rem; }
  .crcgs-gl-closing { padding: 2.6rem clamp(20px,5vw,48px); }
}

@media (max-width: 600px) {
  .crcgs-gl-hero { padding: 56px 20px 36px; }
  .crcgs-gl-hero-title { font-size: 2rem; }
  .crcgs-gl-hero-sub { font-size: 0.9rem; }

  .crcgs-gl-az { padding: 0.8rem 16px; gap: 0.25rem; }
  .crcgs-gl-az-link { width: 26px; height: 26px; font-size: 0.66rem; }

  .crcgs-gl-terms { padding: 1.8rem 16px 0.5rem; }
  .crcgs-gl-letter-group { gap: 1rem; }
  .crcgs-gl-letter-marker { width: 36px; font-size: 1.7rem; }
  .crcgs-gl-term-name { font-size: 1rem; }
  .crcgs-gl-closing { padding: 2.2rem 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .crcgs-gl-root * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
