/* ═══════════════════════════════════════════════════════════════════════════
   site-glossary.css — /glossary/ and /compare/ only. Loaded after site.css.
   Generated by tools/seo/gen_g.py; colour, size and curve come from
   /v2/css/tokens.css and nothing here introduces a new one.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── The A–Z strip ─────────────────────────────────────────────────────────
   A letter with no term is a span, not a dead link: a disabled look on an
   anchor is a control that does nothing when pressed. */
.az { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.az a, .az span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px;
                  border-radius: var(--r-sm); font-size: var(--fs-caption); font-weight: 500; }
.az a { color: var(--text); background: var(--surface); border: 1px solid var(--border-control); }
.az a:hover { text-decoration: none; background: var(--surface-2); }
.az span { color: var(--muted); border: 1px dashed var(--border); }

/* ── Topic groups on the hub ─────────────────────────────────────────────── */
.gl-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 720px) { .gl-topics { grid-template-columns: 1fr; } }
.gl-topic { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
            box-shadow: var(--shadow-1); padding: 18px 20px; min-width: 0; }
.gl-topic h3 { font-size: 18px; line-height: 1.3; }
.gl-topic p { color: var(--text-soft); font-size: var(--fs-caption); margin-top: 6px; text-wrap: pretty; }
.gl-topic .links { margin-top: 12px; }
.gl-topic p.gl-topic-in { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.gl-topic-in a { font-weight: 500; }

/* ── The A–Z list: term, then its one-line definition ───────────────────── */
.gl-letter { margin-top: 36px; padding-bottom: 8px; border-bottom: 1px solid var(--border); max-width: 960px;
             font-size: 22px; line-height: 1.2; }
.gl-list { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 12px 28px; margin: 14px 0 0;
           max-width: 960px; }
.gl-list dt { font-weight: 500; }
.gl-list dt a { color: var(--text); }
.gl-list dt a:hover { color: var(--primary); }
.gl-list dt small { display: block; font-size: var(--fs-micro); color: var(--muted); font-weight: 400; margin-top: 2px; }
.gl-list dd { margin: 0; color: var(--text-soft); text-wrap: pretty; }
@media (max-width: 640px) {
  .gl-list { grid-template-columns: 1fr; gap: 0; }
  .gl-list dd { margin: 4px 0 16px; }
}

/* ── A term page ─────────────────────────────────────────────────────────── */
.gl-def p { font-size: 17px; line-height: 1.65; }
.gl-def p b { font-weight: 500; }
.gl-meta { margin-top: 14px; font-size: var(--fs-caption); color: var(--muted); max-width: 820px; }
.gl-meta a { color: var(--text-soft); }
.gl-body { margin-top: 8px; }
.prose ul.ticks { padding-left: 0; }
.prose ul.ticks li + li { margin-top: 0; }
.gl-formula { font-family: var(--font-mono); font-size: 15px; line-height: 1.6; color: var(--text);
              background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
              padding: 12px 14px; overflow-x: auto; }
.prose .gl-formula { color: var(--text); }
.gl-example { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; }
.gl-example > * + * { margin-top: 10px; }
.prose .gl-example p { line-height: 1.7; }

/* Sources: small print, but a real heading so the page's outline stays whole */
.gl-sources { border-top: 1px solid var(--border); padding-top: 18px; }
.gl-sources h2 { font-family: var(--font-body); font-size: var(--fs-micro); line-height: var(--lh-micro); text-transform: uppercase;
                 letter-spacing: var(--tr-micro); color: var(--muted); font-weight: 500; margin: 0 0 8px; }
.gl-sources ol { margin: 0; padding-left: 18px; }
.gl-sources a { color: var(--text-soft); }
.gl-sources .gl-note { margin-top: 12px; color: var(--muted); }

/* Related terms and where it lives in the product */
.gl-sub { font-family: var(--font-body); font-size: var(--fs-micro); line-height: var(--lh-micro); text-transform: uppercase;
          letter-spacing: var(--tr-micro); color: var(--muted); font-weight: 500; margin-top: 20px; }
.gl-sub + .links { margin-top: 10px; }

/* Previous / next term — two plain links, never a carousel */
.gl-pn { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px;
         border-top: 1px solid var(--border); font-size: var(--fs-caption); max-width: 960px; }
.gl-pn a { color: var(--text-soft); max-width: 46%; }
.gl-pn a:hover { color: var(--text); }
.gl-pn .gl-next { margin-left: auto; text-align: right; }
@media (max-width: 480px) { .gl-pn a { max-width: 100%; } .gl-pn .gl-next { text-align: left; margin-left: 0; } }

/* ── Comparisons ─────────────────────────────────────────────────────────── */
.cmp-note { margin-top: 10px; font-size: var(--fs-caption); color: var(--muted); max-width: 72ch; }
.cmp-verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; max-width: 960px; }
@media (max-width: 720px) { .cmp-verdicts { grid-template-columns: 1fr; } }
.cmp-verdict { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; min-width: 0; }
.cmp-verdict h3 { font-size: 17px; line-height: 1.35; }
.cmp-verdict p, .cmp-verdict li { color: var(--text-soft); font-size: var(--fs-caption); line-height: 1.6; text-wrap: pretty; }
.cmp-verdict p { margin-top: 8px; }
.cmp-verdict ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.cmp-verdict.is-them { border-left: 3px solid var(--border-control); }
.cmp-verdict.is-us { border-left: 3px solid var(--accent); }
.tbl td b { color: var(--text); font-weight: 500; }
.tbl caption { caption-side: top; text-align: left; padding: 12px 14px 0; font-size: var(--fs-caption); color: var(--muted); }
.cmp-tbl thead th:first-child { width: 18%; }

/* On a phone a comparison row becomes a block — the row's name, then each
   column's answer under its own label — so nothing has to be read sideways.
   The labels come from data-label, which gen_g.py writes on every cell. */
@media (max-width: 640px) {
  .cmp-tbl table, .cmp-tbl tbody, .cmp-tbl tr, .cmp-tbl tbody th, .cmp-tbl td { display: block; width: auto; }
  .cmp-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp-tbl caption { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .cmp-tbl tr { padding: 14px; border-bottom: 1px solid var(--border); }
  .cmp-tbl tr:last-child { border-bottom: none; }
  .cmp-tbl tbody th, .cmp-tbl td { padding: 0; border: none; }
  .cmp-tbl tbody th { font-size: 16px; }
  .cmp-tbl td { margin-top: 10px; }
  .cmp-tbl td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--fs-micro);
                        line-height: var(--lh-micro); text-transform: uppercase; letter-spacing: var(--tr-micro); color: var(--muted); }
}

/* Numbered steps inside an article keep their own gutter, not the list's */
.prose ol.steps { padding-left: 0; }
.prose ol.steps li + li { margin-top: 0; }
