/* glossary (/glossary/): search, A–Z bar and the term list. Site tokens and classes only. */
.hm-gl .hm-gl-tools { display: grid; gap: 1rem; margin: 0 auto 2rem !important; }
.hm-gl .hm-gl-search { display: grid; gap: .375rem; max-width: 32rem; }
.hm-gl .hm-gl-search label { font-size: .875rem; font-weight: 600; color: var(--text-primary); }
.hm-gl .hm-gl-search input { width: 100%; box-sizing: border-box; height: 2.75rem; padding: 0 .875rem; border: 1px solid var(--border-strong); border-radius: var(--wp--custom--radius--lg, .625rem);
	background: var(--surface-base); color: var(--text-primary); font: inherit; font-size: 1rem; }
.hm-gl .hm-gl-search input:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.hm-gl .hm-gl-az ul { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.hm-gl .hm-gl-az li { margin: 0; }
.hm-gl .hm-gl-az a, .hm-gl .hm-gl-az span { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--wp--custom--radius--md, .5rem);
	font-size: .875rem; font-weight: 600; text-decoration: none; }
.hm-gl .hm-gl-az a { color: var(--primary); background: var(--primary-subtle); }
.hm-gl .hm-gl-az a:hover { background: var(--primary); color: var(--primary-fg); }
.hm-gl .hm-gl-az a:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.hm-gl .hm-gl-az span { color: var(--text-disabled); }
.hm-gl .hm-gl-count { margin: 0; font-size: .875rem; color: var(--text-secondary); }
.hm-gl .hm-gl-count b { color: var(--text-primary); }
.hm-gl .hm-gl-none { margin: 0 auto 2rem !important; padding: 1rem 1.25rem; border: 1px dashed var(--border-strong); border-radius: var(--wp--custom--radius--card, 1rem); color: var(--text-secondary); }
.hm-gl .hm-gl-list { display: grid; gap: 2.5rem; }
.hm-gl .hm-gl-letter { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0 2rem; scroll-margin-top: 6rem; }
.hm-gl .hm-gl-letter[hidden] { display: none; }
.hm-gl .hm-gl-l { margin: 0 !important; font-size: var(--wp--preset--font-size--4-xl, 2.5rem); line-height: 1; color: var(--primary); grid-row: 1 / span 999; position: sticky; top: 6rem; align-self: start; }
.hm-gl .hm-gl-entry { grid-column: 2; padding: 1.25rem 0; border-top: 1px solid var(--border); scroll-margin-top: 6rem; }
.hm-gl .hm-gl-entry:first-of-type { border-top: 0; padding-top: 0; }
.hm-gl .hm-gl-entry[hidden] { display: none; }
.hm-gl .hm-gl-entry:target { border-radius: var(--wp--custom--radius--lg, .625rem); box-shadow: 0 0 0 .5rem var(--primary-subtle); background: var(--primary-subtle); }
.hm-gl .hm-gl-t { margin: 0 0 .375rem !important; font-size: 1.0625rem; }
.hm-gl .hm-gl-d { margin: 0 !important; color: var(--text-primary); }
.hm-gl .hm-gl-how { margin: .625rem 0 0 !important; font-size: .9375rem; color: var(--text-secondary); }
.hm-gl .hm-gl-tag { display: inline-block; margin-inline-end: .375rem; padding: .0625rem .5rem; border-radius: var(--wp--custom--radius--full, 9999px); background: var(--surface-raised); border: 1px solid var(--border);
	font-size: .75rem; font-weight: 600; color: var(--text-primary); }
.hm-gl .hm-gl-how a { font-weight: 600; white-space: nowrap; }
.hm-gl .hm-gl-foot { margin: 3rem auto 0 !important; font-size: .9375rem; color: var(--text-secondary); }
.hm-gl.is-filtered .hm-gl-entry:first-of-type, .hm-gl.is-filtered .hm-gl-entry { border-top: 0; padding: .75rem 0; }
@media (max-width: 781px) {
	.hm-gl .hm-gl-letter { grid-template-columns: minmax(0, 1fr); }
	.hm-gl .hm-gl-entry { grid-column: 1; }
	.hm-gl .hm-gl-l { position: static; grid-row: auto; margin-bottom: .5rem !important; font-size: var(--wp--preset--font-size--3-xl, 2rem); }
	.hm-gl .hm-gl-az a, .hm-gl .hm-gl-az span { width: 1.875rem; height: 1.875rem; }
	.hm-gl .hm-gl-how a { white-space: normal; }
}
/* the list starts right under the page header: a smaller top gap than a regular section */
.wp-block-group.kui-section.hm-gl { padding-top: 2.5rem !important; }

/* letter pages (/glossary/<letter>/): the current letter, related terms, previous and next page */
.hm-gl .hm-gl-az a[aria-current="page"] { background: var(--primary); color: var(--primary-fg); }
.hm-gl .hm-gl-count a { font-weight: 600; }
.hm-gl .hm-gl-rel { margin: .5rem 0 0 !important; font-size: .875rem; color: var(--text-secondary); }
.hm-gl .hm-gl-rel-l { font-weight: 600; color: var(--text-primary); margin-inline-end: .25rem; }
.hm-gl .hm-gl-pn2 { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 3rem auto 0 !important; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hm-gl .hm-gl-pn2 a { font-weight: 600; text-decoration: none; }
.hm-gl .hm-gl-pn2 .hm-gl-up { color: var(--text-secondary); font-weight: 500; }
/* the hub: most looked-up terms, the letter pages, the index of every term */
.hm-gl .hm-gl-h { margin: 0 0 1rem !important; font-size: var(--wp--preset--font-size--xl, 1.25rem); }
.hm-gl .hm-gl-browse { display: grid; gap: .5rem; margin-bottom: 3rem !important; }
.hm-gl .hm-gl-browse[hidden] { display: none; }
.hm-gl .hm-gl-feat { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.hm-gl .hm-gl-feat li { margin: 0; }
.hm-gl .hm-gl-feat a { display: inline-flex; padding: .375rem .875rem; border: 1px solid var(--border); border-radius: var(--wp--custom--radius--full, 9999px); background: var(--surface-raised);
	color: var(--text-primary); font-size: .875rem; font-weight: 500; text-decoration: none; }
.hm-gl .hm-gl-feat a:hover { border-color: var(--primary); color: var(--primary); }
.hm-gl .hm-gl-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.hm-gl .hm-gl-pages li { margin: 0; }
.hm-gl .hm-gl-pages a { display: grid; gap: .125rem; height: 100%; box-sizing: border-box; padding: .875rem 1rem 1rem; border: 1px solid var(--border); border-radius: var(--wp--custom--radius--card, 1rem);
	background: var(--surface-raised); color: var(--text-primary); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.hm-gl .hm-gl-pages a:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: var(--wp--preset--shadow--md); }
.hm-gl .hm-gl-pl { font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--primary); }
.hm-gl .hm-gl-pn { font-size: .8125rem; color: var(--text-secondary); }
.hm-gl .hm-gl-pn b { color: var(--text-primary); }
.hm-gl .hm-gl-px { margin-top: .375rem; font-size: .8125rem; line-height: 1.4; color: var(--text-secondary); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hm-gl .hm-gl-index { columns: 3 16rem; column-gap: 2.5rem; }
.hm-gl .hm-gl-index > .hm-gl-h { column-span: all; }
.hm-gl .hm-gl-ix { break-inside: avoid; margin: 0 0 1.5rem; }
.hm-gl .hm-gl-ix[hidden] { display: none; }
.hm-gl .hm-gl-ixl { margin: 0 0 .375rem !important; font-size: 1.125rem; }
.hm-gl .hm-gl-ixl a { color: var(--primary); text-decoration: none; }
.hm-gl .hm-gl-ix ul { margin: 0; padding: 0; list-style: none; }
.hm-gl .hm-gl-ix li { margin: 0; padding: .1875rem 0; font-size: .9375rem; line-height: 1.4; }
.hm-gl .hm-gl-ix li[hidden] { display: none; }
.hm-gl .hm-gl-ix a { color: var(--text-primary); text-decoration: none; }
.hm-gl .hm-gl-ix li a:hover { color: var(--primary); text-decoration: underline; }
.hm-gl--hub.is-filtered .hm-gl-index { columns: 2 16rem; }
@media (max-width: 781px) {
	.hm-gl .hm-gl-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-gl .hm-gl-pn2 { font-size: .9375rem; }
}

/* 1,000 terms (2026-11-19): topic chips, the PDF download, the category tag on entries */
.hm-gl .hm-gl-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.hm-gl .hm-gl-top .hm-gl-search { flex: 1 1 22rem; }
.hm-gl .hm-gl-pdf { margin: 0 !important; }
.hm-gl .hm-gl-pdf-btn { display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem; padding: 0 1.125rem; border-radius: var(--wp--custom--radius--lg, .625rem);
	background: var(--primary); color: var(--primary-fg); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.hm-gl .hm-gl-pdf-btn:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.hm-gl .hm-gl-pdf-btn:focus-visible, .hm-gl .hm-gl-cat:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.hm-gl .hm-gl-pdf-btn svg { width: 1rem; height: 1rem; flex: none; }
.hm-gl .hm-gl-pdf-btn small { font-size: .75rem; font-weight: 500; opacity: .85; }
.hm-gl .hm-gl-pdf-link { font-weight: 600; }
.hm-gl .hm-gl-pdf-link small { font-weight: 400; color: var(--text-secondary); }
.hm-gl .hm-gl-cats { display: flex; flex-wrap: wrap; gap: .375rem; }
.hm-gl .hm-gl-cat { display: inline-flex; align-items: center; gap: .375rem; padding: .3125rem .75rem; border: 1px solid var(--border); border-radius: var(--wp--custom--radius--full, 9999px);
	background: var(--surface-base); color: var(--text-primary); font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; }
.hm-gl .hm-gl-cat small { font-size: .75rem; color: var(--text-secondary); }
.hm-gl .hm-gl-cat:hover { border-color: var(--border-strong); }
.hm-gl .hm-gl-cat[aria-pressed="true"] { background: var(--primary-subtle); border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary); }
.hm-gl .hm-gl-cat[aria-pressed="true"] small { color: inherit; opacity: .8; }
.hm-gl .hm-gl-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .375rem 1rem; margin: .5rem 0 0 !important; font-size: .875rem; color: var(--text-secondary); }
.hm-gl .hm-gl-c { display: inline-block; padding: 0 .5rem; border-radius: var(--wp--custom--radius--full, 9999px); background: var(--surface-raised); border: 1px solid var(--border); font-size: .75rem; font-weight: 500; line-height: 1.5rem; }
.hm-gl .hm-gl-meta .hm-gl-rel { margin: 0 !important; }
.hm-gl.is-filtered .hm-gl-letter .hm-gl-entry:not([hidden]) { border-top: 1px solid var(--border); padding-top: 1.25rem; }
@media (max-width: 781px) {
	.hm-gl .hm-gl-pdf-btn { width: 100%; box-sizing: border-box; justify-content: center; white-space: normal; height: auto; min-height: 2.75rem; flex-wrap: wrap; padding: .5rem 1rem; }
	.hm-gl .hm-gl-pdf { width: 100%; }
	.hm-gl .hm-gl-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
	.hm-gl .hm-gl-cat { flex: none; }
	.hm-gl .hm-gl-az ul { gap: .1875rem; }
}

/* filtered hub (2026-11-19, owner: "I didn't like how it looks when a topic is selected"): a header and cards */
.hm-gl .hm-gl-sel { margin: 1rem auto 1.5rem !important; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: var(--wp--custom--radius--card, 1rem);
	background: linear-gradient(160deg, var(--primary-subtle), var(--surface-raised)); }
.hm-gl .hm-gl-sel[hidden], .hm-gl .hm-gl-results[hidden], .hm-gl .hm-gl-index[hidden], .hm-gl .hm-gl-count[hidden] { display: none; }
.hm-gl .hm-gl-sel-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .375rem 1rem; }
.hm-gl .hm-gl-sel-t { margin: 0 !important; font-size: var(--wp--preset--font-size--2-xl, 1.5rem); line-height: 1.2; }
.hm-gl .hm-gl-sel-n { font-size: .9375rem; color: var(--text-secondary); }
.hm-gl .hm-gl-sel-n b { color: var(--text-primary); }
.hm-gl .hm-gl-clear { margin-inline-start: auto; font-size: .875rem; font-weight: 600; }
.hm-gl .hm-gl-sel-d { margin: .375rem 0 0 !important; max-width: 44rem; color: var(--text-secondary); }
.hm-gl .hm-gl-gh { margin: 1.75rem 0 .75rem !important; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.hm-gl .hm-gl-gh:first-child { margin-top: 0 !important; }
.hm-gl .hm-gl-lh { position: sticky; top: 5.5rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; margin: 1.25rem 0 .625rem !important; padding: 0 .5rem;
	border-radius: var(--wp--custom--radius--md, .5rem); background: var(--primary); color: var(--primary-fg); font-size: .875rem; font-weight: 700; scroll-margin-top: 6rem; }
.hm-gl .hm-gl-lg { scroll-margin-top: 6rem; }
.hm-gl .hm-gl-lg:first-child .hm-gl-lh { margin-top: 0 !important; }
.hm-gl .hm-gl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .875rem; }
.hm-gl .hm-gl-card { position: relative; display: flex; flex-direction: column; gap: .375rem; padding: 1rem 1.125rem 1.125rem; border: 1px solid var(--border); border-radius: var(--wp--custom--radius--card, 1rem);
	background: var(--surface-raised); transition: border-color .2s, box-shadow .2s, transform .2s; }
.hm-gl .hm-gl-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: var(--wp--preset--shadow--md); }
.hm-gl .hm-gl-card h3 { margin: 0 !important; font-size: 1rem; line-height: 1.3; }
.hm-gl .hm-gl-card h3 a { color: var(--text-primary); text-decoration: none; }
.hm-gl .hm-gl-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hm-gl .hm-gl-card h3 a:focus-visible { outline: none; }
.hm-gl .hm-gl-card:has(a:focus-visible) { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.hm-gl .hm-gl-cd { margin: 0 !important; font-size: .875rem; line-height: 1.5; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-gl .hm-gl-cm { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin: auto 0 0 !important; padding-top: .375rem; }
.hm-gl .hm-gl-hm { display: inline-flex; align-items: center; gap: .3125rem; font-size: .75rem; font-weight: 600; color: var(--primary); }
.hm-gl .hm-gl-hm::before { content: ""; width: .4375rem; height: .4375rem; border-radius: 9999px; background: var(--primary); }
.hm-gl mark { background: color-mix(in srgb, var(--warning, #f59e0b) 28%, transparent); color: inherit; border-radius: .1875rem; padding: 0 .0625rem; }
/* skeleton until the definitions are in */
.hm-gl .hm-gl-sk { display: grid; gap: .375rem; }
.hm-gl .hm-gl-sk span { display: block; height: .75rem; border-radius: .375rem; background: linear-gradient(90deg, var(--surface-sunken, #e5e7eb) 0%, var(--border) 50%, var(--surface-sunken, #e5e7eb) 100%);
	background-size: 200% 100%; animation: hm-gl-sk 1.2s ease-in-out infinite; }
.hm-gl .hm-gl-sk span + span { width: 70%; }
@keyframes hm-gl-sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .hm-gl .hm-gl-sk span { animation: none; } }
.hm-gl .hm-gl-moreb { margin: 1.5rem 0 0 !important; text-align: center; }
.hm-gl .hm-gl-more { padding: .625rem 1.25rem; border: 1px solid var(--border-strong); border-radius: var(--wp--custom--radius--lg, .625rem); background: var(--surface-base); color: var(--text-primary);
	font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.hm-gl .hm-gl-more:hover { border-color: var(--primary); color: var(--primary); }
.hm-gl .hm-gl-more:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.hm-gl .hm-gl-az a.is-off { opacity: .35; pointer-events: none; }
/* "All": the index as soft letter cards in columns */
.hm-gl .hm-gl-index { columns: 4 14rem; column-gap: 1rem; }
.hm-gl .hm-gl-ix { break-inside: avoid; margin: 0 0 1rem; padding: .875rem 1rem 1rem; border: 1px solid var(--border); border-radius: var(--wp--custom--radius--card, 1rem); background: var(--surface-raised); }
.hm-gl .hm-gl-ixl { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 .5rem !important; padding-bottom: .375rem; border-bottom: 1px solid var(--border); font-size: 1.375rem; }
.hm-gl .hm-gl-ix li { font-size: .875rem; padding: .125rem 0; }
/* letter pages: "Showing N <topic> terms on P · Clear" */
.hm-gl .hm-gl-showing { margin: 0 !important; padding: .625rem .875rem; border-radius: var(--wp--custom--radius--lg, .625rem); background: var(--primary-subtle); color: var(--text-primary); font-size: .9375rem; }
.hm-gl .hm-gl-showing[hidden] { display: none; }
.hm-gl .hm-gl-showing .hm-gl-clear { margin: 0; }
.hm-gl--page .hm-gl-entry { transition: opacity .2s; }
@media (max-width: 1023px) { .hm-gl .hm-gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) {
	.hm-gl .hm-gl-grid { grid-template-columns: minmax(0, 1fr); }
	.hm-gl .hm-gl-sel { padding: 1rem; }
	.hm-gl .hm-gl-clear { margin-inline-start: 0; }
	.hm-gl .hm-gl-lh { top: 4.5rem; }
}

/* the first paragraph (GEO, 2026-11-19): one quotable sentence about the page */
.hm-gl .hm-gl-intro { margin-top: 0 !important; margin-bottom: 1.5rem !important; font-size: 1.0625rem; line-height: 1.6; color: var(--text-primary); text-wrap: pretty; }
