/* OHC Glossary — public page. Exact values from the design mockup. */
.gl-page {
  background: #f2f5f7;
  color: #12232b;
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
}
.gl-wrap { max-width: 1240px; margin: 0 auto; padding: 40px 32px 56px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; }
.gl-page a { color: #17707a; }
.gl-page a:hover { color: #0f525a; }
.gl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gl-page button { font-family: inherit; }
.gl-page input::placeholder { color: #6a7a82; }

/* Header */
.gl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gl-head__intro { display: flex; flex-direction: column; gap: 6px; }
.gl-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #17707a; margin: 0; }
.gl-head h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.01em; }
.gl-lede { margin: 0; font-size: 15px; color: #4f5f67; max-width: 620px; line-height: 1.5; }
.gl-source { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #4f5f67; }
.gl-stats { display: flex; gap: 28px; margin: 0; }
.gl-stats div { display: flex; flex-direction: column; gap: 2px; }
.gl-stats dt { order: 2; margin: 0; font-size: 13px; color: #4f5f67; }
.gl-stats dd { order: 1; margin: 0; font-size: 24px; font-weight: 600; }

/* Empty state (no published terms) */
.gl-empty-state { background: #fff; border: 1px solid #d9e2e6; border-radius: 14px; text-align: center; padding: 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gl-badge { width: 48px; height: 48px; border-radius: 24px; background: #e3f2f3; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #17707a; }
.gl-empty-state h2 { margin: 0; font-size: 20px; font-weight: 600; }
.gl-empty-state p { margin: 0; color: #4f5f67; font-size: 14px; max-width: 46ch; line-height: 1.5; }

.gl-notice { background: #fff8ec; border: 1px solid #f0dcb3; color: #6b5420; border-radius: 12px; padding: 14px 18px; font-size: 14px; }
.gl-notice a { font-weight: 600; }

/* Filter panel */
.gl-filters { background: #fff; border: 1px solid #d9e2e6; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.gl-filters__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gl-search { position: relative; flex: 1 1 360px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1px solid #b9c7cd; border-radius: 10px; background: #fbfcfd; box-sizing: border-box; }
.gl-search svg { flex: none; width: 18px; height: 18px; stroke: #4f5f67; stroke-width: 2; stroke-linecap: round; fill: none; }
.gl-search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 15px; font-family: inherit; color: #12232b; min-width: 0; }
.gl-filters__toggle { display: none; }

.gl-levels { display: flex; background: #edf2f4; border-radius: 10px; padding: 4px; gap: 4px; }
.gl-level { height: 40px; padding: 0 14px; border: 0; border-radius: 7px; font-size: 14px; cursor: pointer; background: transparent; color: #4f5f67; font-weight: 500; }
.gl-level.is-active { background: #fff; color: #12232b; font-weight: 600; box-shadow: 0 1px 2px rgba(18,35,43,.12); }

.gl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-chip { height: 40px; padding: 0 12px 0 14px; border-radius: 20px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #12232b; border: 1px solid #cbd6db; }
.gl-chip span { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #4f5f67; }
.gl-chip.is-active { background: #17707a; color: #fff; border-color: #17707a; }
.gl-chip.is-active span { color: #d6f0f2; }

.gl-az { display: flex; flex-wrap: wrap; gap: 2px; border-top: 1px solid #e6ecef; padding-top: 14px; }
.gl-letter { width: 36px; height: 36px; border-radius: 8px; border: 0; font-family: "IBM Plex Mono", monospace; font-size: 14px; background: transparent; color: #12232b; cursor: pointer; }
.gl-letter.is-active { background: #17707a; color: #fff; }
.gl-letter:disabled { color: #a9b7bd; cursor: default; }

/* List + detail */
.gl-main { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.gl-list-card { flex: 1 1 360px; max-width: 440px; min-width: 0; background: #fff; border: 1px solid #d9e2e6; border-radius: 14px; overflow: hidden; }
.gl-list-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e6ecef; margin: 0; }
.gl-list-head__count { font-size: 13px; font-weight: 500; color: #4f5f67; }
.gl-list-head__sort { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #4f5f67; }
.gl-list { max-height: 660px; overflow-y: auto; }
.gl-list:focus-visible { outline: 2px solid #17707a; outline-offset: -2px; }

.gl-row { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 16px 18px; border: 0; border-bottom: 1px solid #eef2f4; cursor: pointer; background: #fff; }
.gl-row.is-selected { background: #eaf5f6; box-shadow: inset 3px 0 0 #17707a; }
.gl-row__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gl-row__term { font-size: 16px; font-weight: 600; color: #12232b; }
.gl-row__cat { font-size: 12px; font-family: "IBM Plex Mono", monospace; color: #17707a; letter-spacing: .02em; }
.gl-row__desc { font-size: 14px; color: #4f5f67; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Pips */
.gl-pips { display: flex; gap: 3px; flex-shrink: 0; }
.gl-pip { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #d3dde1; }
.gl-pip.is-on { background: #17707a; }
.gl-pips.is-lg .gl-pip { width: 8px; height: 8px; }

/* No results */
.gl-noresults { padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.gl-noresults h3 { margin: 0; font-size: 17px; font-weight: 600; }
.gl-noresults p { margin: 0; font-size: 14px; color: #4f5f67; max-width: 280px; line-height: 1.5; }
.gl-clear { margin-top: 4px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid #17707a; background: #fff; color: #17707a; font-size: 14px; font-weight: 500; cursor: pointer; }

/* Detail */
.gl-detail-card { flex: 999 1 560px; min-width: 0; background: #fff; border: 1px solid #d9e2e6; border-radius: 14px; }
.gl-detail { padding: 40px 44px; display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; }
.gl-detail__head { display: flex; flex-direction: column; gap: 12px; }
.gl-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gl-tag { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .04em; color: #fff; background: #17707a; padding: 5px 10px; border-radius: 6px; }
.gl-level-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #12232b; border: 1px solid #d9e2e6; padding: 4px 10px; border-radius: 6px; }
.gl-detail__term { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -.015em; }
.gl-detail__aka { margin: 0; font-size: 14px; color: #4f5f67; }
.gl-detail__aka span { font-family: "IBM Plex Mono", monospace; color: #12232b; }
.gl-detail__def { margin: 0; font-size: 19px; line-height: 1.65; color: #1c2f37; max-width: 68ch; }

.gl-detail__meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; border-top: 1px solid #e6ecef; border-bottom: 1px solid #e6ecef; padding: 18px 0; margin: 0; }
.gl-detail__meta > div { display: flex; flex-direction: column; gap: 4px; }
.gl-detail__meta dt { font-size: 12px; font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: #4f5f67; margin: 0; }
.gl-detail__meta dd { margin: 0; font-size: 15px; font-weight: 500; }
.gl-detail__module { color: #17707a; }

.gl-related { display: flex; flex-direction: column; gap: 12px; }
.gl-related__label { font-size: 12px; font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: #4f5f67; margin: 0; }
.gl-related__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-pill { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #b9c7cd; background: #fbfcfd; color: #12232b; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.gl-pill:hover { border-color: #17707a; color: #12232b; }
.gl-pill.is-plain { color: #4f5f67; cursor: default; }

.gl-detail__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.gl-detail__source { font-size: 13px; color: #4f5f67; }
.gl-detail__actions { display: flex; gap: 8px; }
.gl-action { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #d9e2e6; background: #fff; color: #12232b; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.gl-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gl-action:hover { border-color: #17707a; color: #12232b; }
.gl-action.is-copied { background: #17707a; border-color: #17707a; color: #fff; }

/* Mobile */
@media (max-width: 900px) {
  .gl-wrap { padding: 24px 16px 48px; }
  .gl-head { align-items: flex-start; }
  .gl-head h1 { font-size: 26px; }
  .gl-stats { gap: 18px; }
  .gl-filters__toggle { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid #b9c7cd; border-radius: 8px; background: #fff; color: #17707a; font-size: 13px; cursor: pointer; }
  .gl-search { padding-right: 8px; }
  .gl-filters__body { display: none; flex-direction: column; gap: 16px; }
  .gl-filters__body.is-open { display: flex; }
  .gl-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .gl-chip { flex: 0 0 auto; }
  .gl-list-card { max-width: none; flex-basis: 100%; }
  .gl-list { max-height: none; }
  .gl-detail-card { flex-basis: 100%; }
  .gl-detail { padding: 28px 20px; }
  .gl-detail__term { font-size: 30px; }
  .gl-detail__def { font-size: 17px; }
  .gl-detail__meta { grid-template-columns: 1fr; }
}
