.glossary-topics{background:#fffaf5;border:1px solid #d9cadf;border-radius:24px;padding:1.4rem;margin-bottom:2rem;scroll-margin-top:1.25rem}
.glossary-topics [hidden],#term-empty[hidden],#term-clear[hidden]{display:none!important}
.glossary-topic-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.65rem}
.glossary-topic-heading h2{margin:0;font-size:1.8rem}
.glossary-topics-intro{font-size:1.08rem;margin-bottom:.4rem}
.glossary-topic-note{font-size:.92rem;color:#526167;margin-bottom:1.1rem}
.glossary-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}
.glossary-topic{position:relative;display:flex;align-items:center;gap:.65rem;min-width:0;min-height:7.25rem;padding:.8rem;border:2px solid #d9cadf;border-radius:16px;background:#eee6f5;color:#241a3a;font:inherit;text-align:left;cursor:pointer;box-shadow:0 3px 0 rgba(36,26,58,.06)}
.glossary-topic:nth-child(4n+2){background:#e2f1e9}
.glossary-topic:nth-child(4n+3){background:#fff0ce}
.glossary-topic:nth-child(4n+4){background:#fae3dd}
.glossary-topic img{width:3rem;height:3rem;flex:0 0 3rem;object-fit:contain}
.glossary-topic-copy{min-width:0}
.glossary-topic strong{display:block;font-size:1.02rem;line-height:1.3;color:inherit;font-weight:750}
.glossary-topic small{display:block;font-size:.85rem;line-height:1.3;margin-top:.4rem;color:inherit}
.glossary-topic-check{display:none;position:absolute;right:.45rem;top:.2rem;font-size:1rem;font-weight:800}
.glossary-topic:hover{border-color:#8d739f;box-shadow:0 4px 0 rgba(36,26,58,.12)}
.glossary-topic[aria-pressed=true]{background:#241a3a;color:#fff;border-color:#241a3a}
.glossary-topic[aria-pressed=true] .glossary-topic-check{display:block}
.glossary-topic-all{display:inline-flex;align-items:center;gap:.5rem;min-height:48px;padding:.6rem 1rem;border:2px solid #241a3a;border-radius:999px;background:#fff;color:#241a3a;font:inherit;font-size:.95rem;font-weight:750;cursor:pointer}
.glossary-topic-all[aria-pressed=true]{background:#241a3a;color:#fff}
.glossary-topic-all .glossary-topic-check{position:static}
.glossary-topic-all[aria-pressed=true] .glossary-topic-check{display:inline}
.glossary-search-row{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.glossary-search-row .term-search{flex:1 1 14rem;min-width:0;width:100%}
#term-clear{min-height:48px;padding:.55rem .8rem;border:2px solid #8d739f;border-radius:10px;background:#fff;color:#241a3a;font:inherit;font-size:.9rem;font-weight:700;cursor:pointer}
#term-empty{background:#fff0ce;color:#241a3a;padding:1rem 1.2rem;border-radius:12px;margin:0 0 1.2rem;max-width:100%}
.term-card{scroll-margin-top:1.25rem}
html[data-theme=dark] .glossary-topics{background:#2b2237;border-color:#847392}
html[data-theme=dark] .glossary-topic-note{color:#dfd4e9}
html[data-theme=dark] :is(.glossary-topic,.glossary-topic-all,#term-clear){background:#3b2e4c;border-color:#a899b7;color:#f7f4fb}
html[data-theme=dark] .glossary-topic strong{color:inherit}
html[data-theme=dark] :is(.glossary-topic,.glossary-topic-all)[aria-pressed=true]{background:#ffd27a;color:#241a3a;border-color:#ffd27a}
html[data-theme=dark] #term-empty{background:#3b321f;color:#fff4dd}
html[data-theme=contrast] .glossary-topics{background:#fff;border:2px solid #000}
html[data-theme=contrast] .glossary-topic-note{color:#000}
html[data-theme=contrast] :is(.glossary-topic,.glossary-topic-all,#term-clear){background:#fff;color:#000;border:2px solid #000;box-shadow:none}
html[data-theme=contrast] .glossary-topic strong{color:inherit}
html[data-theme=contrast] :is(.glossary-topic,.glossary-topic-all)[aria-pressed=true]{background:#000;color:#fff}
html[data-theme=contrast] #term-empty{background:#fff;color:#000;border:2px solid #000}
@media(prefers-color-scheme:dark){
  html:not([data-theme=light]):not([data-theme=contrast]):not([data-theme=dark]) .glossary-topics{background:#2b2237;border-color:#847392}
  html:not([data-theme=light]):not([data-theme=contrast]):not([data-theme=dark]) .glossary-topic-note{color:#dfd4e9}
  html:not([data-theme=light]):not([data-theme=contrast]):not([data-theme=dark]) :is(.glossary-topic,.glossary-topic-all,#term-clear){background:#3b2e4c;border-color:#a899b7;color:#f7f4fb}
  html:not([data-theme=light]):not([data-theme=contrast]):not([data-theme=dark]) .glossary-topic strong{color:inherit}
  html:not([data-theme=light]):not([data-theme=contrast]):not([data-theme=dark]) :is(.glossary-topic,.glossary-topic-all)[aria-pressed=true]{background:#ffd27a;color:#241a3a;border-color:#ffd27a}
}
@media(max-width:1000px){.glossary-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.glossary-topic{min-height:6rem}}
@media(max-width:540px){.glossary-topics{padding:1rem}.glossary-topic-grid{gap:.65rem}.glossary-topic{min-height:6.8rem;padding:.75rem;align-items:flex-start}.glossary-topic img{display:none}.glossary-topic strong{font-size:1rem}.glossary-topic-heading{align-items:flex-start}.glossary-topic-heading h2{font-size:1.55rem}}
@media(max-width:340px){.glossary-topic-grid{grid-template-columns:1fr}.glossary-topic{min-height:0}}
@media print{.glossary-topics,.glossary-search-row,#term-search,#term-clear,#term-count,#term-empty{display:none!important}}
