.cog-glossary {
  --cog-ink: #101828;
  --cog-muted: #667085;
  --cog-line: #e4e7ec;
  --cog-brand: #3f51f7;
  --cog-brand-dark: #2738d8;
  --cog-brand-soft: #eef0ff;
  --cog-surface: #ffffff;
  color: var(--cog-ink);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cog-glossary *, .cog-glossary *::before, .cog-glossary *::after { box-sizing: border-box; }
.cog-container { margin-inline: auto; }
.cog-toolbar { padding: 36px 0 22px; background: transparent; }
.cog-search { position: relative; display: flex; align-items: center; width: min(640px, 100%); color: #667085; }
.cog-search > svg { position: absolute; left: 17px; pointer-events: none; }
.cog-search-input { width: 100%; height: 56px; margin: 0; padding: 0 52px; border: 1px solid #d0d5dd; border-radius: 8px; outline: none; color: var(--cog-ink); background: #fff; font: inherit; font-size: 17px; box-shadow: 0 3px 10px rgba(16, 24, 40, .08); }
.cog-search-input::-webkit-search-cancel-button,
.cog-search-input::-webkit-search-decoration { display: none; appearance: none; -webkit-appearance: none; }
.cog-search-input::-ms-clear,
.cog-search-input::-ms-reveal { display: none; width: 0; height: 0; }
.cog-search-input:focus { border-color: var(--cog-brand); box-shadow: 0 0 0 3px rgba(63,81,247,.14); }
.cog-search-clear { position: absolute; right: 10px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: #475467; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.cog-search-clear:hover, .cog-search-clear:focus-visible { color: var(--cog-brand-dark); background: var(--cog-brand-soft); outline: none; }
.cog-category-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 27px; margin-top: 24px; color: var(--cog-muted); }
.cog-category-strip a { position: relative; display: inline-flex; align-items: center; min-height: 30px; color: inherit; font-size: 15px; font-weight: 650; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.cog-category-strip a::after { position: absolute; right: -15px; width: 3px; height: 3px; border-radius: 50%; background: #98a2b3; content: ""; }
.cog-category-strip a:last-child::after { display: none; }
.cog-category-strip a:hover { color: var(--cog-brand); }
.cog-category-strip a:focus-visible { border-radius: 3px; outline: 3px solid rgba(63,81,247,.22); outline-offset: 3px; }
.cog-groups { padding-block: 18px 80px; }
.cog-group { display: grid; grid-template-columns: minmax(160px, .72fr) minmax(0, 2.28fr); gap: clamp(28px, 6vw, 78px); margin-bottom: 0; padding: 48px 0; border: 0; border-bottom: 1px solid var(--cog-line); scroll-margin-top: 28px; }
.cog-group:last-of-type { border-bottom: 0 !important; }
.cog-category { position: sticky; top: 28px; margin: 0; color: var(--cog-ink); font-size: clamp(25px, 3vw, 40px); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.cog-terms { display: flex; min-width: 0; flex-direction: column; gap: 26px; }
.cog-term, .cog-term + .cog-term, .cog-term:last-child { padding: 0; border: 0; }
.cog-term h3 { margin: 0; font-size: clamp(22px, 2.4vw, 31px); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.cog-term h3 a { color: var(--cog-brand); text-decoration: none; text-underline-offset: .16em; }
.cog-term h3 a:hover { color: var(--cog-brand-dark); text-decoration: underline; }
.cog-term h3 a:focus-visible { border-radius: 3px; outline: 3px solid rgba(63,81,247,.28); outline-offset: 4px; }
.cog-term p { max-width: 760px; margin: 9px 0 0; color: var(--cog-muted); font-size: 16px; line-height: 1.65; }
.cog-empty, .cog-no-results { padding: 92px 24px; text-align: center; }
.cog-empty h2, .cog-no-results h2 { margin: 0 0 8px; font-size: 30px; }
.cog-empty p, .cog-no-results p { margin: 0; color: var(--cog-muted); font-size: 16px; }
.cog-glossary [hidden] { display: none !important; }

@media (max-width: 700px) {
  .cog-toolbar { padding: 26px 0 16px; }
  .cog-search-input { height: 54px; font-size: 16px; }
  .cog-category-strip { gap: 4px 20px; margin-top: 22px; }
  .cog-category-strip a { font-size: 14px; }
  .cog-category-strip a::after { right: -11px; }
  .cog-groups { padding-block: 4px 54px; }
  .cog-group { grid-template-columns: 1fr; gap: 24px; padding: 34px 0; }
  .cog-category { position: static; font-size: 28px; }
  .cog-term h3 { font-size: 23px; }
  .cog-term p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cog-glossary *, .cog-glossary *::before, .cog-glossary *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Keep the component stable inside opinionated themes and Elementor. */
.cog-glossary .cog-category,
.cog-glossary .cog-term h3 { text-transform: none; }
.cog-glossary .cog-term h3 a,
.cog-glossary .cog-term h3 a:hover,
.cog-glossary .cog-category-strip a,
.cog-glossary .cog-category-strip a:hover { box-shadow: none; }
