/* Structure only: typography, colours and link styling belong to the theme. */
.easy-ai-glossary-tools { display: grid; gap: .5em; margin-block: 1.5em; }
.easy-ai-glossary-search { display: flex; flex-wrap: wrap; gap: .5em; }
.easy-ai-glossary-search input[type="search"] { flex: 1 1 14em; min-width: 0; font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; padding: .65em; }
.easy-ai-glossary-search button { font: inherit; }
.easy-ai-glossary-alphabet, .easy-ai-glossary-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1em; margin-block: 1.5em; }
.easy-ai-glossary-alphabet a, .easy-ai-glossary-alphabet span { display: inline-flex; min-width: 1.5em; min-height: 2em; align-items: center; justify-content: center; }
.easy-ai-glossary-alphabet [aria-current] { font-weight: bold; outline: 1px solid currentColor; outline-offset: .2em; }
.easy-ai-glossary-alphabet [aria-disabled] { opacity: .4; }
.easy-ai-glossary-items--list { display: grid; }
.easy-ai-glossary-entry { min-width: 0; overflow-wrap: anywhere; padding-block: 1.5em; border-block-end: 1px solid currentColor; }
.easy-ai-glossary-entry > :first-child { margin-block-start: 0; }
.easy-ai-glossary-items--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5em; }
.easy-ai-glossary-items--cards .easy-ai-glossary-entry { padding: 1.5em; border: 1px solid currentColor; }
.easy-ai-glossary-public__section { margin-block: 2em; }
.easy-ai-glossary-public__media { margin-inline: 0; }
.easy-ai-glossary-public__media img { max-width: 100%; height: auto; }

/* Author fallback below every theme selector: prevent UA blue/purple when a
   theme only styles editor/widget links. Explicit theme link states still win. */
:where(.easy-ai-glossary-public a:any-link) { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
