/* ChainRegistry glossary page styles — Holo 2 round; tokens come from site.css
   /glossary: the index is a rail of 26 letter nodes beside the terms (sticky from 900 px up; a grid of letters above them on
   smaller screens), a lit node for every letter that has terms, with its count as the readout. Each letter's terms sit in one
   light-edge plate (.card, from site.css) with the chrome letter in a sticky gutter. A term reached through a link carries the
   cyan edge marker the tables use for a focused row. Also the questions panel on /about (.faq-*). No script, no motion. */

.g-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:32px;align-items:start;margin:28px 0 var(--gap-section)}
.g-groups{min-width:0}

/* ---- the index rail */
.g-index{position:sticky;top:84px;max-height:calc(100vh - 96px);overflow-y:auto;scrollbar-width:none;padding:4px 6px 12px 2px}
.g-index::-webkit-scrollbar{display:none}
.g-index-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 12px;font-family:var(--mono);font-size:var(--fs-label,10.5px);letter-spacing:.14em;text-transform:uppercase;color:var(--lavender-text)}
.g-index-head b{font-weight:500;letter-spacing:.06em;color:var(--text)}
.g-index ol{position:relative;list-style:none;margin:0;padding:0 0 0 20px}
.g-index ol::before{content:'';position:absolute;left:6px;top:12px;bottom:12px;width:1px;background:linear-gradient(var(--cyan-line),var(--line-2) 50%,var(--cyan-line))}
.g-index li{position:relative;display:flex;align-items:center;height:24px;font-family:var(--mono);font-size:12px;letter-spacing:.1em}
.g-index li::before{content:'';position:absolute;left:-17px;top:50%;width:7px;height:7px;margin-top:-4px;border-radius:50%;background:var(--bg);border:1px solid var(--line-3)}
.g-index .g-on::before{border-color:var(--cyan);background:var(--cyan-soft)}
.g-index a{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:100%;padding-right:4px;color:var(--text)}
.g-index a small{font-size:10.5px;letter-spacing:.04em;color:var(--faint)}
.g-index a:hover,.g-index a:focus-visible{color:var(--cyan);text-decoration:none}
.g-index a:hover small,.g-index a:focus-visible small{color:var(--cyan)}
.g-index .g-on:hover::before,.g-index .g-on:focus-within::before{background:var(--cyan);box-shadow:0 0 8px var(--cyan-glow)}
.g-index .g-off{color:var(--faint);opacity:.5}
.g-index-foot{margin:16px 0 0;font-size:13px;line-height:1.4}

/* ---- a letter and its terms */
.g-group{display:grid;grid-template-columns:64px minmax(0,1fr);gap:0 24px;margin:0 0 18px;padding:24px 28px 8px}
.g-gutter{position:relative}
/* no drop-shadow filter: Firefox shades the whole box behind text clipped to its background */
.g-letter{position:sticky;top:92px;margin:0;font-family:var(--display);font-size:44px;line-height:1;letter-spacing:0;color:var(--chrome);background:var(--chrome-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.g-up{display:none}
.g-list{margin:0}
.g-term{position:relative;padding:18px 0 20px;border-top:1px solid var(--line)}
/* a linked term, letter or question lands clear of the sticky header, which is taller on phones (two rows) than the site's scroll padding */
.g-term dt,.g-group,.faq,.faq-item{scroll-margin-top:28px}
.g-term:first-child{border-top:0;padding-top:2px}
.g-term dt{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin:0;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--text)}
.g-aka{font-family:var(--mono);font-size:11.5px;font-weight:400;letter-spacing:.04em;color:var(--lavender-text)}
/* the definition, and in the margin beside it the pages where the term shows up */
.g-term dd{display:grid;grid-template-columns:minmax(0,68ch) minmax(150px,220px);justify-content:space-between;align-items:start;gap:10px 48px;margin:8px 0 0}
.g-term dd>p{margin:0;line-height:1.65;color:var(--text-2);text-wrap:pretty}
.g-see{display:flex;flex-direction:column;gap:6px;margin-top:3px;padding-left:16px;border-left:1px solid var(--line-2)}
.g-see-k{font-family:var(--mono);font-size:var(--fs-label,10.5px);letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
.g-see ul{display:flex;flex-direction:column;gap:5px;list-style:none;margin:0;padding:0;font-size:13px;line-height:1.35}
@media (max-width:1180px){
  .g-term dd{display:block}
  .g-term dd>p{max-width:72ch}
  .g-see{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-top:10px;padding-left:0;border-left:0}
  .g-see ul{flex-direction:row;flex-wrap:wrap;gap:4px 18px}
  .g-see a{display:inline-block;padding:3px 0}
}
.g-see a{text-decoration:underline;text-decoration-color:var(--cyan-line);text-underline-offset:3px;text-decoration-thickness:1px}
.g-see a:hover{text-decoration-color:currentColor}
/* the term a link led to: the cyan edge marker */
.g-term dt:target{color:var(--cyan)}
.g-term:has(>dt:target)::before{content:'';position:absolute;left:-14px;top:16px;bottom:18px;width:2px;background:var(--cyan);box-shadow:0 0 12px var(--cyan-glow)}
.g-term:first-child:has(>dt:target)::before{top:0}

@media (max-width:900px){
  .g-layout{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:20px}
  .g-index{position:static;max-height:none;overflow:visible;padding:0}
  .g-index ol{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:4px;padding:0}
  .g-index ol::before,.g-index li::before{display:none}
  .g-index li{justify-content:center;height:38px;font-size:13px}
  .g-index ol a{justify-content:center;padding:0;border:1px solid var(--line-2);border-radius:var(--r)}
  .g-index ol a small{display:none}
  .g-index-foot{margin-top:12px}
  .g-group{grid-template-columns:minmax(0,1fr);padding:16px 18px 4px}
  .g-gutter{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}
  .g-letter{position:static;font-size:32px}
  .g-up{display:inline-block;padding:12px 0;font-family:var(--mono);font-size:var(--fs-label,10.5px);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
  .g-term dt{font-size:17px}
  .g-term:has(>dt:target)::before{left:-10px}
}
@media (max-width:640px){.g-index ol{grid-template-columns:repeat(9,minmax(0,1fr))}}

/* ---- the questions on /about */
.faq-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 44px;padding:4px 28px}
.faq-item{padding:22px 0 24px;border-top:1px solid var(--line)}
.faq-item:nth-child(-n+2){border-top:0}
.faq-item h3{margin:0 0 8px;font-size:17px;font-weight:600;line-height:1.35;letter-spacing:-.01em;color:var(--text)}
.faq-item p{margin:0;max-width:64ch;line-height:1.65;color:var(--text-2)}
.faq-item:target h3{color:var(--cyan)}
@media (max-width:900px){
  .faq-list{grid-template-columns:minmax(0,1fr);padding:2px 18px}
  .faq-item:nth-child(2){border-top:1px solid var(--line)}
}

@media (forced-colors:active){.g-letter{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText;filter:none}.g-index li::before{border-color:CanvasText}}
