/* POS glossary: the hub (/glossary/) and the term pages (/glossary/<term>/). Same tokens as site.css. */

/* ---------- Hub: category and A–Z navigation in the hero ---------- */
.nd-gl__nav { margin-top: 2rem; display: grid; gap: 1.25rem; justify-items: center; }
.nd-gl__cats { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; max-width: 60rem; }
.nd-gl__cats li { margin: 0 !important; }
.nd-gl__cats a { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--nd-line-2); background: linear-gradient(180deg, #111113, #08080a); color: var(--nd-fg-2); font-size: 0.875rem; text-decoration: none !important; transition: border-color 0.2s var(--nd-ease), color 0.2s var(--nd-ease); }
.nd-gl__cats a:hover { border-color: rgba(110, 160, 255, 0.5); color: var(--nd-fg); }
.nd-gl__cats b { font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.75rem; color: var(--nd-blue-text); }
.nd-gl__az { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin: 0 !important; font-family: var(--wp--preset--font-family--mono); font-size: 0.875rem; }
.nd-gl__az a, .nd-gl__az span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; }
.nd-gl__az a { color: var(--nd-fg-2); border: 1px solid var(--nd-line); text-decoration: none !important; }
.nd-gl__az a:hover { border-color: var(--nd-blue); color: #fff; background: rgba(11, 87, 227, 0.18); }
.nd-gl__az span { color: #3f3f46; }

/* ---------- Hub: entries per category ---------- */
.nd-gl__entries { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--nd-line); }
.nd-gl__entries > * { margin: 0 !important; }
.nd-gl__entry { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--nd-line); scroll-margin-top: 6rem; }
.nd-gl__entry > * { margin: 0 !important; }
.nd-gl__entry > * + * { margin-top: 0.5rem !important; }
.nd-gl__entry h3 { font-size: 1.0625rem; color: var(--nd-fg); }
.nd-gl__entry h3 a { color: var(--nd-fg); text-decoration: none !important; }
.nd-gl__entry h3 a:hover { color: var(--nd-blue-text); }
.nd-gl__entry p { font-size: 0.9375rem; line-height: 1.6; color: var(--nd-muted); }
.nd-gl__entry:target { box-shadow: inset 2px 0 0 var(--nd-blue); padding-left: 1rem; }
.nd-gl__entry--page h3::after { content: "Full page"; margin-left: 0.6rem; vertical-align: middle; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nd-blue-soft); background: rgba(11, 87, 227, 0.14); border: 1px solid rgba(110, 160, 255, 0.32); border-radius: 999px; padding: 0.1rem 0.5rem; }
.nd-gl__aka { font-size: 0.8125rem !important; color: #8e8e98 !important; }
.nd-gl__more { display: inline-block; font-size: 0.875rem; color: var(--nd-blue-text); text-decoration: none !important; }
.nd-gl__more::after { content: " →"; }
.nd-gl__more:hover { color: #fff; }

/* ---------- Hub: A–Z index ---------- */
.nd-gl__azindex { columns: 4 13rem; column-gap: 2rem; }
.nd-gl__az-group { break-inside: avoid; margin: 0 0 1.5rem; scroll-margin-top: 6rem; }
.nd-gl__az-letter { margin: 0 0 0.4rem !important; font-family: var(--wp--preset--font-family--mono); font-size: 0.875rem !important; color: var(--nd-blue-text); border-bottom: 1px solid var(--nd-line); padding-bottom: 0.3rem; }
.nd-gl__az-group ul { list-style: none; padding: 0 !important; margin: 0; }
.nd-gl__az-group li { margin: 0.25rem 0 !important; font-size: 0.9rem; }
.nd-gl__az-group a { color: var(--nd-fg-2); text-decoration: none !important; }
.nd-gl__az-group a:hover { color: var(--nd-blue-text); }

/* ---------- Term pages ---------- */
.nd-hero .nd-gl__aka { margin-top: 1.25rem !important; max-width: 42rem; }
.nd-gl__body > * { margin-block: 0 !important; }
.nd-gl__body > * + * { margin-top: 1rem !important; }
.nd-gl__body > h2 { margin-top: 3rem !important; font-size: clamp(1.5rem, 3vw, 1.875rem) !important; }
.nd-gl__body > h2:first-child { margin-top: 0 !important; }
.nd-gl__body > h3 { margin-top: 2rem !important; font-size: 1.125rem; color: var(--nd-fg); }
.nd-gl__body p, .nd-gl__body li { line-height: 1.7; }
.nd-gl__body > p { color: var(--nd-fg-2); }
.nd-gl__body > ul:not(.nd-checks):not(.nd-chips), .nd-gl__body > ol { padding-left: 1.25rem; color: var(--nd-fg-2); }
.nd-gl__body > ul > li + li, .nd-gl__body > ol > li + li { margin-top: 0.5rem; }
.nd-gl__steps { counter-reset: nd-step; list-style: none; padding: 0 !important; display: grid; gap: 0.85rem; }
.nd-gl__steps > li { counter-increment: nd-step; position: relative; padding-left: 2.75rem; color: var(--nd-muted); min-height: 1.9rem; }
.nd-gl__steps > li::before { content: counter(nd-step, decimal-leading-zero); position: absolute; left: 0; top: 0.05rem; width: 1.9rem; height: 1.9rem; border-radius: 8px; display: grid; place-items: center; font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; color: var(--nd-blue-text); border: 1px solid rgba(110, 160, 255, 0.35); background: rgba(11, 87, 227, 0.1); }
.nd-gl__steps > li strong { color: var(--nd-fg); }
.nd-gl__formula { font-family: var(--wp--preset--font-family--mono); font-size: 1rem !important; padding: 1rem 1.2rem; border: 1px solid var(--nd-line-2); border-radius: 12px; background: #0b0b0d; color: var(--nd-fg) !important; }
.nd-gl__body .nd-table { margin-top: 1.25rem !important; overflow-x: auto; }
.nd-gl__body .nd-table table { min-width: 28rem; }
.nd-gl__body .nd-table td:first-child a { color: var(--nd-fg); }
.nd-gl__ndovu { margin-top: 3rem !important; border-color: rgba(110, 160, 255, 0.28); background: linear-gradient(180deg, rgba(11, 87, 227, 0.1), rgba(11, 87, 227, 0.02) 60%), var(--nd-card); }
.nd-gl__ndovu .nd-eyebrow { margin-bottom: 0 !important; }
.nd-gl__ndovu h3 { margin-top: 0.4rem !important; font-size: 1.25rem; }
.nd-gl__status { list-style: none; padding: 0 !important; margin: 1rem 0 0 !important; display: grid; gap: 0.65rem; }
.nd-gl__status li { color: var(--nd-fg-2); font-size: 0.9375rem; line-height: 1.55; }
.nd-gl__status .nd-soon { margin-right: 0.45rem; }
.nd-gl__no { color: #a1a1aa !important; background: rgba(255, 255, 255, 0.04) !important; border-color: var(--nd-line-2) !important; }
.nd-gl__links { margin-top: 1.4rem !important; justify-content: flex-start !important; }
.nd-gl__chips { justify-content: flex-start; }
.nd-gl__chips li { padding: 0; }
.nd-gl__chips a { display: block; padding: 0.5rem 0.95rem; color: var(--nd-fg-2); text-decoration: none !important; }
.nd-gl__chips li:hover { border-color: rgba(110, 160, 255, 0.5); }
.nd-gl__chips a:hover { color: #fff; }
.nd-gl__review { margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid var(--nd-line); }
.nd-gl__review h2 { font-size: 1.125rem !important; margin: 0 0 0.75rem !important; }
.nd-gl__sources { padding-left: 1.1rem; margin: 0 0 0.75rem !important; }
.nd-gl__sources li { font-size: 0.9rem; color: var(--nd-muted); margin: 0.3rem 0; }

@media (max-width: 760px) {
	.nd-gl__entries { grid-template-columns: minmax(0, 1fr); }
	.nd-gl__az a, .nd-gl__az span { width: 1.85rem; height: 1.85rem; }
	.nd-gl__cats a { font-size: 0.8125rem; padding: 0.45rem 0.8rem; }
}
