/* Glossary tokens reuse the NFWare product palette and Roboto scale. */
.glossary-page {
 --g-blue: var(--brand); --g-violet: var(--accent-lb); --g-ink: #11182a;
 --g-mist: #f4f6fb; --g-border: #e0e6f0; --g-muted: #64718a;
 --g-card-bg: var(--white); --g-card-border: var(--g-border); --g-card-radius: 12px;
 --g-control-bg: var(--g-mist); --g-control-border: #cbd4e1; --g-focus: var(--brand-bright);
 --g-section-space: 64px; --g-fast: 160ms;
}
.g-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.glossary-page [hidden] { display: none !important; }
.glossary-hero { position: relative; overflow: hidden; padding-bottom: 42px; background: radial-gradient(ellipse at 87% 36%,rgba(4,127,228,.18),transparent 42%),linear-gradient(120deg,#0b1736 0%,#02001b 84%); }
.glossary-hero:after { content: ''; position: absolute; width: 600px; height: 600px; right: -150px; top: -260px; border: 1px solid rgba(69,124,188,.13); border-radius: 50%; pointer-events: none; }
.glossary-hero-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); align-items: center; gap: 48px; }
.glossary-intro .kicker { margin-top: 30px; font-size: 12px; letter-spacing: .15em; }
.glossary-intro h1 { font-size: clamp(52px,6.3vw,76px); line-height: 1.05; margin-top: 12px; font-weight: 400; letter-spacing: -1.5px; }
.glossary-tagline { font-size: 26px; line-height: 1.4; font-weight: 300; margin: 18px 0 8px; color: white; }
.glossary-summary { color: #b0bfd8; font-size: 17px; line-height: 1.65; max-width: 560px; margin: 0; }
.glossary-search { display: flex; align-items: center; gap: 14px; padding: 0 18px; min-height: 58px; max-width: 570px; margin-top: 28px; background: white; border: 2px solid transparent; border-radius: 10px; color: var(--g-muted); transition: border-color var(--g-fast),box-shadow var(--g-fast); }
.glossary-search:focus-within { border-color: var(--g-focus); box-shadow: 0 0 0 4px rgba(4,127,228,.13); }
.glossary-search > svg { width: 22px; height: 22px; flex-shrink: 0; }
.glossary-search input { min-width: 0; width: 100%; border: 0; background: transparent; font: 400 16px var(--font); color: var(--g-ink); outline: none; min-height: 54px; }
.glossary-search input::placeholder { color: #75829a; opacity: 1; }
.glossary-search input::-webkit-search-cancel-button { display: none; }
.glossary-search kbd { display: grid; place-items: center; flex: 0 0 25px; height: 26px; border: 1px solid var(--g-border); border-radius: 5px; color: #8792a5; font: 13px var(--font); }
.glossary-search button { padding: 8px; margin-right: -8px; display: grid; place-items: center; background: transparent; color: var(--g-muted); border: 0; cursor: pointer; }
.glossary-search button svg { width: 20px; height: 20px; }
.hero-glossary-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #aab9d2; font-size: 12px; margin: 15px 0 0; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #4b6385; }
.glossary-art { align-self: center; padding-top: 20px; }
.glossary-art svg { display: block; width: 100%; height: auto; }
.art-caption { display: block; text-align: center; margin-top: -3px; color: #6e8db6; font-size: 9px; letter-spacing: .15em; }
.glossary-directory { background: var(--g-mist); padding: 48px 0 64px; }
.directory-layout { display: grid; grid-template-columns: 204px minmax(0,1fr); gap: 44px; align-items: start; }
.glossary-sidebar { position: sticky; top: 119px; padding-top: 7px; }
.sidebar-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; color: var(--g-muted); margin-bottom: 18px; }
.category-list { display: flex; flex-direction: column; gap: 6px; }
.category-button { min-height: 48px; width: 100%; display: flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 10px 12px; font: 400 15px var(--font); color: #48556c; text-align: left; cursor: pointer; transition: background var(--g-fast),color var(--g-fast),border-color var(--g-fast); }
.category-button > svg { width: 19px; height: 19px; flex: 0 0 19px; }
.category-button:hover { background: #eaf0f9; }
.category-button.is-selected { color: #086bbb; background: #e5effc; border-color: #d0e3fa; font-weight: 500; }
.category-count { margin-left: auto; font-size: 12px; color: #7e8ca3; font-variant-numeric: tabular-nums; }
.category-button.is-selected .category-count { color: #0a6aba; }
.sidebar-help { border-top: 1px solid var(--g-border); margin: 30px 8px 0; padding-top: 24px; font-size: 13px; line-height: 1.6; }
.sidebar-help > span { color: var(--g-ink); font-weight: 500; }
.sidebar-help p { color: var(--g-muted); margin: 8px 0 12px; }
.sidebar-help a { display: inline-flex; align-items: center; gap: 5px; color: #0872c8; }
.sidebar-help a svg { width: 15px; height: 15px; }
.glossary-results { min-width: 0; }
.directory-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 30px; }
.directory-toolbar p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--g-muted); }
.directory-toolbar #results-count { color: var(--g-ink); font-size: 14px; }
.term-group + .term-group { margin-top: 44px; }
.group-heading { margin-bottom: 20px; }
.group-heading h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; line-height: 1.3; color: var(--g-ink); font-weight: 400; letter-spacing: -.3px; }
.group-heading p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--g-muted); }
.group-count { font: 400 11px/1 var(--font); min-width: 22px; height: 22px; padding: 5px 6px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #6d7b94; border: 1px solid #d5ddeb; }
.term-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.term-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 277px; padding: 24px 22px 21px; color: var(--g-ink); background: var(--g-card-bg); border: 1px solid var(--g-card-border); border-radius: var(--g-card-radius); text-decoration: none; transition: border-color var(--g-fast),transform var(--g-fast),box-shadow var(--g-fast); }
.term-card:hover { border-color: #7cb3e9; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20,45,80,.05); text-decoration: none; }
.term-card:focus-visible { outline: 2px solid var(--g-focus); outline-offset: 3px; }
.term-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 17px; border-radius: 8px; background: #edf5fd; color: var(--g-blue); }
.term-icon svg { width: 20px; height: 20px; }
.term-card[data-category="adc"] .term-icon { color: #8050d7; background: #f3edff; }
.term-card h3 { font-size: 23px; line-height: 1.2; color: var(--g-ink); font-weight: 500; letter-spacing: -.35px; text-wrap: pretty; }
.term-subtitle { font-size: 12px; line-height: 1.5; margin: 7px 0 0; color: var(--g-muted); min-height: 36px; }
.term-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.6; margin: 14px 0 20px; color: #59657d; }
.term-link { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; gap: 10px; padding-top: 16px; border-top: 1px solid #edf0f6; color: #0871c4; font-size: 12px; font-weight: 500; }
.term-link svg { width: 17px; height: 17px; }
.glossary-empty { padding: 72px 24px; background: white; border: 1px solid var(--g-border); border-radius: 12px; text-align: center; }
.glossary-empty > svg { width: 32px; height: 32px; color: #91a5c0; }
.glossary-empty h2 { margin-top: 16px; font-size: 27px; }
.glossary-empty p { font-size: 15px; color: var(--g-muted); }
.glossary-empty button { border: 0; border-radius: 24px; background: var(--g-blue); color: white; font: 14px var(--font); padding: 13px 22px; cursor: pointer; }
.glossary-contact { padding: 64px 0; background: white; }
.glossary-contact-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); align-items: center; gap: 64px; padding: 48px; border-radius: 20px; background: radial-gradient(ellipse at 0 100%,rgba(4,127,228,.18),transparent 70%),#050b26; }
.contact-intro .kicker { margin-top: 0; font-size: 11px; }
.contact-intro h2 { margin: 20px 0; color: white; font-size: clamp(34px,3.6vw,46px); line-height: 1.15; font-weight: 400; letter-spacing: -.5px; }
.contact-intro > p { color: #adbdd5; font-size: 17px; line-height: 1.7; max-width: 350px; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; color: white; font-size: 15px; margin-top: 16px; }
.contact-email svg { width: 17px; height: 17px; }
.contact-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; }
.contact-topics span { color: #a4b9d6; font-size: 10px; border: 1px solid #26365c; border-radius: 20px; padding: 5px 12px; }
.glossary-contact-form { background: white; padding: 28px; border-radius: 12px; min-width: 0; }
.form-heading { color: var(--g-ink); font-size: 21px; line-height: 1.35; margin-bottom: 24px; }
.contact-field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.contact-field { margin-bottom: 16px; min-width: 0; }
.contact-field label { display: block; font-size: 12px; font-weight: 500; color: #3c4861; margin-bottom: 7px; }
.contact-field input,.contact-field textarea { display: block; width: 100%; min-height: 44px; border: 1px solid var(--g-control-border); border-radius: 7px; padding: 11px 12px; font: 400 13px/1.5 var(--font); color: var(--g-ink); background: white; }
.contact-field input::placeholder,.contact-field textarea::placeholder { color: #8793a7; opacity: 1; }
.contact-field textarea { resize: vertical; min-height: 94px; }
.contact-field input:focus,.contact-field textarea:focus { border-color: var(--g-blue); outline: 2px solid #d8ebff; outline-offset: 1px; }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 45px; padding: 12px 24px; border: 0; border-radius: 24px; background: var(--g-blue); color: white; font: 400 14px var(--font); cursor: pointer; transition: background var(--g-fast); }
.contact-submit svg { width: 16px; height: 16px; }
.contact-submit:hover { background: #0069c0; }
.contact-submit:disabled { background: #9dbad8; cursor: not-allowed; }
.contact-privacy { margin: 14px 0 0; font-size: 10px; line-height: 1.65; color: #7c879b; }
.contact-privacy a { color: #526680; text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #42638b; }
.form-status:empty { margin: 0; }
@media(min-width:1101px) { .glossary-page + .site-footer .wrap { max-width: var(--container); } }
@media(max-width:1100px) {
 .term-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .directory-layout { grid-template-columns: 185px minmax(0,1fr); gap: 28px; }
 .glossary-contact-panel { gap: 32px; padding: 36px; }
 .contact-field-row { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media(max-width:760px) {
 .glossary-hero { padding-bottom: 30px; }
 .glossary-hero-grid { display: block; }
 .glossary-art { display: none; }
 .glossary-intro .kicker { margin-top: 24px; }
 .glossary-intro h1 { font-size: 54px; letter-spacing: -1px; }
 .glossary-tagline { font-size: 21px; margin-top: 14px; }
 .glossary-summary { font-size: 15px; }
 .glossary-search { min-height: 54px; margin-top: 24px; padding: 0 14px; gap: 10px; }
 .glossary-search input { min-height: 50px; font-size: 15px; }
 .glossary-search kbd { display: none; }
 .hero-glossary-meta { font-size: 10px; gap: 9px; }
 .glossary-directory { padding: 26px 0 36px; }
 .directory-layout { display: block; }
 .glossary-sidebar { position: static; padding-top: 0; margin-bottom: 24px; }
 .sidebar-label { font-size: 10px; margin-bottom: 12px; }
 .category-list { flex-direction: row; gap: 7px; }
 .category-button { width: auto; min-height: 44px; flex: 1 1 auto; justify-content: center; font-size: 13px; gap: 7px; padding: 9px 10px; white-space: nowrap; }
 .category-button > svg { display: none; }
 .category-count { font-size: 11px; margin-left: 3px; }
 .sidebar-help { display: none; }
 .directory-toolbar { margin-bottom: 24px; }
 .directory-toolbar p:last-child { font-size: 10px; }
 .group-heading h2 { font-size: 23px; }
 .group-heading p { font-size: 13px; }
 .term-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .term-card { min-height: 260px; padding: 18px 16px 17px; }
 .term-card h3 { font-size: 21px; }
 .term-subtitle { font-size: 11px; }
 .term-description { font-size: 12px; }
 .glossary-contact { padding: 36px 0; }
 .glossary-contact-panel { grid-template-columns: minmax(0,1fr); gap: 28px; padding: 28px; border-radius: 16px; }
 .contact-intro h2 { font-size: 35px; }
 .contact-intro > p { font-size: 15px; margin-bottom: 8px; }
 .contact-topics { margin-top: 24px; }
 .glossary-contact-form { padding: 24px; }
}
@media(max-width:480px) {
 .term-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
 .term-card { min-height: 0; padding: 22px; }
 .term-icon { margin-bottom: 14px; }
 .term-card h3 { font-size: 24px; }
 .term-subtitle { min-height: 0; font-size: 12px; }
 .term-description { font-size: 14px; margin: 13px 0 18px; -webkit-line-clamp: 2; }
 .term-link { font-size: 12px; padding-top: 13px; }
 .glossary-contact-panel { padding: 24px 18px 18px; }
 .glossary-contact-form { padding: 22px 18px; }
 .contact-submit { width: 100%; }
 .contact-field input,.contact-field textarea { font-size: 16px; }
}
@media(prefers-reduced-motion:reduce) { .term-card,.category-button,.glossary-search,.contact-submit { transition: none; } .term-card:hover { transform: none; } }

.glossary-contact-iframe { display: block; width: 100%; border: 0; min-height: 488px; background: white; }
.contact-form-fallback { font-size: 11px; line-height: 1.5; color: #7c879b; margin: 10px 0 0; }
.contact-form-fallback a { color: #526680; text-decoration: underline; }

/* Term template shares the catalog's semantic colors and site typography. */
.glossary-term-page { --g-prose-width: 760px; --g-prose-line: 1.8; }
.g-term-hero { padding: calc(var(--header-h) + 28px) 0 48px; }
.g-term-hero .crumbs { margin-bottom: 38px; }
.g-term-hero .kicker { color: var(--g-blue); font-size: 11px; letter-spacing: 1.5px; }
.g-term-hero .kicker span { padding: 0 10px; color: var(--g-muted); }
.g-term-hero h1 { max-width: 960px; margin: 18px 0; font-size: clamp(32px,4.1vw,54px); line-height: 1.15; font-weight: 400; letter-spacing: -.8px; overflow-wrap: anywhere; }
.g-term-subtitle { color: #c5d3e8; font-size: 20px; line-height: 1.5; margin: 0 0 22px; }
.g-source-date { display: block; color: #a4b9d6; font-size: 13px; margin-bottom: 20px; }
.g-back-link { display: inline-block; font-size: 13px; color: white; text-decoration: underline; text-underline-offset: 4px; }
.g-reading-section { background: white; padding: 56px 0 64px; }
.g-reading-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 64px; align-items: start; }
.g-reading-layout--short { display: block; max-width: var(--g-prose-width); }
.g-toc { position: sticky; top: 116px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; border-right: 1px solid var(--g-border); padding-right: 22px; }
.g-toc summary { font-size: 12px; font-weight: 500; color: var(--g-ink); list-style: none; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; margin: 0 0 16px; }
.g-toc summary::-webkit-details-marker { display: none; }
.g-toc nav { display: flex; flex-direction: column; gap: 4px; }
.g-toc a { color: var(--g-muted); font-size: 13px; line-height: 1.5; border-radius: 6px; padding: 7px 9px; margin-left: -9px; }
.g-toc a:hover { color: var(--g-blue); background: var(--g-control-bg); }
.g-toc a:focus-visible,.g-content a:focus-visible,.g-back-link:focus-visible { outline: 2px solid var(--g-blue); outline-offset: 4px; }
.g-content { min-width: 0; max-width: var(--g-prose-width); font: 400 17px/var(--g-prose-line) var(--font); color: var(--g-ink); overflow-wrap: anywhere; }
.g-source-block { scroll-margin-top: 120px; margin-bottom: 28px; }
.g-source-block:empty { display: none; }
.g-content h2 { color: var(--g-ink); font-size: clamp(24px,2.4vw,32px); font-weight: 400; line-height: 1.25; letter-spacing: -.3px; margin: 44px 0 20px; }
.g-source-block:first-child h2 { margin-top: 0; }
.g-content h3 { color: var(--g-ink); font-size: 21px; line-height: 1.4; font-weight: 500; margin: 26px 0 12px; }
.g-content h3 strong { font-weight: inherit; }
.g-content p { margin: 0 0 20px; }
.g-content a { color: var(--g-blue); text-decoration: underline; text-underline-offset: 3px; }
.g-content ul,.g-content ol { padding-left: 24px; margin: 20px 0; }
.g-content li { padding-left: 3px; margin-bottom: 10px; }
.g-content img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 10px; }
.g-content figure { margin: 28px 0; }
.g-content figcaption { margin: 10px 0 20px; font-size: 13px; color: var(--g-muted); text-align: center; }
.g-content .g-diagram-list { display: grid; gap: 16px; }
.g-diagram-list figure { margin: 0; border: 1px solid var(--g-border); border-radius: 10px; padding: 10px; }
.g-table-scroll { overflow: auto; max-width: 100%; border: 1px solid var(--g-border); border-radius: 12px; }
.g-content table { width: 100%; border-collapse: collapse; min-width: 630px; font-size: 14px; line-height: 1.6; }
.g-content th { text-align: left; background: var(--g-control-bg); font-weight: 500; }
.g-content th,.g-content td { padding: 16px; border-bottom: 1px solid var(--g-border); vertical-align: top; }
.g-content tr:last-child td { border-bottom: 0; }
.g-product-callout { border: 1px solid var(--g-border); border-left: 3px solid var(--g-blue); border-radius: 12px; background: var(--g-control-bg); padding: 24px; margin: 36px 0; font-size: 16px; }
.g-product-callout p:first-of-type { font-size: 22px; font-weight: 500; line-height: 1.4; }
.g-product-callout p:last-child { margin-bottom: 0; }
.g-product-callout figure { max-width: 310px; margin: 0 auto 24px; }
.g-case-list { display: grid; gap: 24px; }
.g-case { border: 1px solid var(--g-border); border-radius: 12px; padding: 24px; }
.g-case figure { margin: 0 0 20px; }
.g-case img { aspect-ratio: 2.4; object-fit: cover; }
.g-original-related { display: grid; gap: 16px; }
.g-original-related > div { border-bottom: 1px solid var(--g-border); padding-bottom: 8px; }
.g-related-section { background: var(--g-control-bg); padding: 48px 0; }
.g-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.g-related-heading h2 { margin: 0; font-size: 30px; font-weight: 400; color: var(--g-ink); }
.g-related-heading > a { display: inline-flex; align-items: center; gap: 10px; color: var(--g-blue); font-size: 14px; }
.g-related-heading svg { width: 17px; height: 17px; }
@media(max-width:1000px) { .g-reading-layout { grid-template-columns: 195px minmax(0,1fr); gap: 36px; } }
@media(max-width:760px) {
 .g-term-hero { padding: calc(var(--header-h) + 22px) 0 32px; }
 .g-term-hero .crumbs { margin-bottom: 28px; }
 .g-term-hero .kicker { font-size: 10px; letter-spacing: 1px; }
 .g-term-hero h1 { font-size: 34px; letter-spacing: -.4px; }
 .g-term-subtitle { font-size: 17px; }
 .g-reading-section { padding: 28px 0 36px; }
 .g-reading-layout { display: block; }
 .g-toc { position: static; max-height: none; border: 1px solid var(--g-border); border-radius: 10px; padding: 16px 18px; margin-bottom: 32px; }
 .g-toc summary { margin: 0; padding: 4px 0; }
 .g-toc details[open] summary { margin-bottom: 12px; }
 .g-toc summary::after { content: '−'; float: right; color: var(--g-blue); }
 .g-toc details:not([open]) summary::after { content: '+'; }
 .g-content { font-size: 16px; line-height: 1.8; }
 .g-content h2 { margin-top: 32px; font-size: 26px; }
 .g-content h3 { font-size: 20px; }
 .g-product-callout,.g-case { padding: 20px; }
 .g-related-section { padding: 32px 0; }
 .g-related-heading { display: block; }
 .g-related-heading h2 { font-size: 27px; margin-bottom: 14px; }
}
