/* SP Glossary (hidden preview) v2: matches the CURRENT live dark theme (body.sp-dark).
   Tokens taken from the live CSS: page #0a1626, card #13263d / 1px rgba(255,255,255,.07) / 20px radius /
   0 12px 32px rgba(0,0,0,.28) + inset 0 1px 0 rgba(255,255,255,.04); ink #f1f5f9; body text #c9d5e1;
   muted #93a6ba; teal #17b3a3 / link #2fc4b4; on-teal #04121f; field #0c1b2e / rgba(255,255,255,.16); font InterSP.
   Scoped to body.sp-gl-page / .spgl so it does not leak into the theme. */

/* Neutralise the theme frame on this virtual route; .spgl-card below draws the same framed card itself. */
body.sp-gl-page .site-content>.col-full,
html body.sp-gl-page #page#page > #content#content,
body.sp-gl-page .site-content{
  max-width:none!important;width:auto!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important
}
body.sp-gl-page .site-main{margin:0!important}
body.sp-gl-page .content-area{width:100%!important;float:none!important;margin:0!important}
body.sp-gl-page .widget-area,body.sp-gl-page .storefront-breadcrumb,body.sp-gl-page .entry-header{display:none!important}
body.sp-gl-page .hentry{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.sp-gl-page .entry-content{margin:0!important;padding:0!important;max-width:none!important}
html body.sp-gl-page{overflow-x:hidden}

body.sp-gl-page .spgl,body.sp-gl-page .spgl *{box-sizing:border-box}
body.sp-gl-page .spgl{
  --ink:#f1f5f9;--text:#c9d5e1;--muted:#93a6ba;--muted-2:#a7b7c8;
  --teal:#17b3a3;--teal-hi:#3fcfbf;--link:#2fc4b4;--link-hi:#6fe0d3;--on-teal:#04121f;
  --card:#13263d;--field:#0c1b2e;--field-b:rgba(255,255,255,.16);--line:rgba(255,255,255,.08);
  --font:"InterSP","Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  position:relative;color:var(--text);background:transparent;
  font-family:var(--font);font-size:16px;line-height:1.5;
  padding:40px 0 44px;overflow-x:hidden
}
body.sp-gl-page .spgl h1,body.sp-gl-page .spgl p,body.sp-gl-page .spgl ul,body.sp-gl-page .spgl li{
  margin:0;padding:0;text-transform:none;color:inherit;list-style:none
}
body.sp-gl-page .spgl a:focus-visible,
body.sp-gl-page .spgl button:focus-visible,
body.sp-gl-page .spgl input:focus-visible{outline:2px solid var(--link)!important;outline-offset:3px}

body.sp-gl-page .spgl .spgl-wrap{width:calc(100% - 224px);max-width:1216px;margin:0 auto;position:relative}

/* Framed card (same values as the live homepage / product frame) */
body.sp-gl-page .spgl .spgl-card{
  background:#13263d;background:var(--card);color:var(--text);
  border:1px solid rgba(255,255,255,.07);border-radius:20px;
  box-shadow:0 12px 32px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.04);
  padding:40px;overflow:hidden
}

/* Header */
body.sp-gl-page .spgl .spgl-head{display:flex;align-items:center;gap:16px;margin:0 0 12px}
body.sp-gl-page .spgl .spgl-icon{
  flex:none;display:inline-flex;align-items:center;justify-content:center;
  width:60px;height:60px;border-radius:16px;
  background:rgba(23,179,163,.12);border:1px solid rgba(23,179,163,.35);color:var(--link)
}
body.sp-gl-page .spgl .spgl-icon svg{width:28px;height:28px}
body.sp-gl-page .spgl .spgl-headtext{display:flex;flex-direction:column;gap:6px;min-width:0}
body.sp-gl-page .spgl .spgl-kicker{
  font:700 11.84px/1 var(--font);letter-spacing:.16em;text-transform:uppercase;color:var(--link)
}
html body.sp-gl-page .spgl h1.spgl-title{
  font:700 40px/1.05 var(--font)!important;color:#f1f5f9!important;letter-spacing:-.02em!important;margin:0!important;text-transform:none!important
}
body.sp-gl-page .spgl .spgl-lead{font:400 16px/1.55 var(--font);color:var(--text);margin:6px 0 22px;max-width:46em}

/* Search (matches the live dark fields) */
body.sp-gl-page .spgl .spgl-search{position:relative;margin:0 0 16px}
html body.sp-gl-page .spgl .spgl-search input[type="search"]{
  display:block!important;width:100%!important;max-width:none!important;height:auto!important;margin:0!important;
  -webkit-appearance:none!important;appearance:none!important;
  background:#0c1b2e!important;background-color:var(--field)!important;
  border:1px solid rgba(255,255,255,.16)!important;border-radius:999px!important;
  color:#f1f5f9!important;font:500 16px/1.25 var(--font)!important;letter-spacing:normal!important;
  padding:14px 20px 14px 48px!important;box-shadow:none!important
}
html body.sp-gl-page .spgl .spgl-search input[type="search"]::placeholder{color:#93a6ba!important;opacity:1}
html body.sp-gl-page .spgl .spgl-search input[type="search"]:focus{
  outline:0!important;border-color:#17b3a3!important;box-shadow:0 0 0 4px rgba(23,179,163,.22)!important;background-color:#0e2036!important
}
html body.sp-gl-page .spgl .spgl-search input[type="search"]::-webkit-search-cancel-button{filter:grayscale(1) invert(.85)}
body.sp-gl-page .spgl .spgl-search svg{
  position:absolute;left:18px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted);pointer-events:none;z-index:1
}

/* Category pills: teal active, outlined inactive (same as the live size pills). Wrap; never scroll sideways. */
body.sp-gl-page .spgl .spgl-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
html body.sp-gl-page .spgl button.spgl-pill{
  -webkit-appearance:none!important;appearance:none!important;flex:0 0 auto;
  display:inline-flex!important;align-items:center;justify-content:center;
  width:auto!important;min-width:0!important;min-height:40px!important;margin:0!important;
  background:transparent!important;color:#e8eef4!important;
  border:1px solid rgba(255,255,255,.28)!important;border-radius:999px!important;
  font:600 15.2px/1 var(--font)!important;letter-spacing:normal!important;text-transform:none!important;
  padding:9px 20px!important;white-space:nowrap;cursor:pointer;box-shadow:none!important;text-shadow:none!important
}
html body.sp-gl-page .spgl button.spgl-pill:hover{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.5)!important}
html body.sp-gl-page .spgl button.spgl-pill[aria-pressed="true"],
html body.sp-gl-page .spgl button.spgl-pill[aria-pressed="true"]:hover{
  background:#17b3a3!important;color:#04121f!important;border-color:#17b3a3!important
}

body.sp-gl-page .spgl .spgl-count{font:600 13px/1 var(--font);color:var(--muted);margin:14px 0 2px;letter-spacing:.02em}

/* Entries */
body.sp-gl-page .spgl .spgl-list{border-top:1px solid var(--line);margin-top:12px}
body.sp-gl-page .spgl .spgl-item{padding:18px 0;border-bottom:1px solid var(--line)}
body.sp-gl-page .spgl .spgl-item:last-child{border-bottom:0;padding-bottom:4px}
body.sp-gl-page .spgl .spgl-item[hidden],body.sp-gl-page .spgl .spgl-list[hidden],body.sp-gl-page .spgl .spgl-empty[hidden]{display:none!important}
body.sp-gl-page .spgl .spgl-termline{margin:0 0 5px;line-height:1.3}
body.sp-gl-page .spgl .spgl-term{font:700 18px/1.3 var(--font);color:#f1f5f9;letter-spacing:-.01em;margin-right:8px}
body.sp-gl-page .spgl .spgl-tag{font:500 14px/1.3 var(--font);color:var(--muted);white-space:nowrap}
body.sp-gl-page .spgl .spgl-def{font:400 16px/1.6 var(--font);color:var(--text);overflow-wrap:anywhere}
html body.sp-gl-page .spgl a.spgl-src,html body.sp-gl-page .spgl a.spgl-src:visited{
  color:#2fc4b4!important;font-weight:600!important;text-decoration:underline!important;
  text-decoration-thickness:1px!important;text-underline-offset:3px!important;white-space:nowrap
}
html body.sp-gl-page .spgl a.spgl-src:hover{color:#6fe0d3!important}
body.sp-gl-page .spgl .spgl-empty{padding:30px 8px 14px;text-align:center;font:500 16px/1.4 var(--font);color:var(--muted)}

/* Page RUO (same wording as /peptide-library/) */
body.sp-gl-page .spgl .spgl-ruo{margin:22px 8px 0;font:600 14px/1.5 var(--font);color:var(--muted-2);text-align:center}

@media (max-width:1100px){
  body.sp-gl-page .spgl .spgl-wrap{width:calc(100% - 64px)}
}
@media (max-width:767px){
  body.sp-gl-page .spgl{padding:22.4px 0 36px}
  body.sp-gl-page .spgl .spgl-wrap{width:calc(100% - 45.3px)}
  body.sp-gl-page .spgl .spgl-card{padding:22.4px}
  body.sp-gl-page .spgl .spgl-icon{width:52px;height:52px;border-radius:14px}
  body.sp-gl-page .spgl .spgl-icon svg{width:24px;height:24px}
  html body.sp-gl-page .spgl h1.spgl-title{font-size:30px!important}
  body.sp-gl-page .spgl .spgl-lead{font-size:15px;margin-bottom:16px}
  html body.sp-gl-page .spgl .spgl-search input[type="search"]{padding:12px 16px 12px 44px!important}
  body.sp-gl-page .spgl .spgl-pills{gap:7px}
  html body.sp-gl-page .spgl button.spgl-pill{font-size:14px!important;padding:8px 14px!important;min-height:38px!important}
  body.sp-gl-page .spgl .spgl-term{font-size:17px}
  body.sp-gl-page .spgl .spgl-def{font-size:15.5px}
  body.sp-gl-page .spgl .spgl-ruo{font-size:13px;text-align:left;margin:18px 4px 0;padding-right:80px} /* keep clear of the fixed chat button */
}

body.sp-gl-page .spgl .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
