/* glossary/index.html: the page's own styles, moved out of its <style> block onto the
   --ds- tokens (docs/DESIGN-SYSTEM.md). Tokens only. */

.gloss-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 2px;
  margin: 24px 0 36px;
  padding: 18px 20px;
  background: var(--ds-surface-alt);
  border-left: 3px solid var(--ds-accent);
  border-radius: 2px;
}
  .gloss-alpha-nav a {
  font-family: var(--ds-font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ds-fg);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
  .gloss-alpha-nav a:hover {
  background: var(--ds-accent);
  color: var(--ds-on-accent);
}
  .gloss-alpha-nav .sep {
  color: var(--ds-fg-muted);
  align-self: center;
  font-size: 15px;
}
  .gloss-letter-head {
  font-family: var(--ds-font-sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--ds-accent-fg);
  margin: 44px 0 4px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ds-border);
  line-height: 1;
}
  .gloss-dl {
  margin: 0 0 8px;
}
  .gloss-dl dt {
  font-family: var(--ds-font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ds-fg);
  margin: 22px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
  .gloss-dl dt a.self-link {
  font-family: var(--ds-font-sans);
  font-size: 18px;
  /* Muted at rest, gold on hover: both hold 4.5:1, where a faded gold did not. */
  color: var(--ds-fg-muted);
  text-decoration: none;
  transition: color var(--ds-fast) var(--ds-ease);
}
  .gloss-dl dt a.self-link:hover,
  .gloss-dl dt a.self-link:focus-visible {
  color: var(--ds-accent-fg);
}
  .gloss-dl dd {
  margin: 0 0 0 0;
  padding: 0 0 14px 16px;
  border-left: 2px solid var(--ds-border);
  color: var(--ds-fg);
  line-height: 1.65;
}
  .gloss-category-label {
  font-family: var(--ds-font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ds-accent-fg);
  font-weight: 700;
  margin: 36px 0 0;
}
  .gloss-intro {
  max-width: 700px;
  color: var(--ds-fg);
  margin-bottom: 10px;
}

/* An italic phrase inside a heading is the spec's serif lead-in. */
:where(h1, h2, h3) em {
  font-family: var(--ds-font-serif);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
