/* Adapted from PGEXT, Apache-2.0; see source-lock.json. All presentation rules are module-scoped. */
/* ================================================================
   PGEXT.CLOUD — design system
   concept: "the catalog is a database" — an almanac of the
   PostgreSQL extension universe. serif display / mono data.
   ================================================================ */

#pgext-root {
  /* paper (light) */
  --bg: #f7f7f4;
  --bg-card: #fdfdfc;
  --bg-raise: #f0f0ec;
  --bg-inset: #eeeeea;
  --bg-code: #131c28;
  --fg-code: #dbe4f0;
  --ink: #131c28;
  --ink-2: #45536b;
  --ink-3: #626f88;
  --line: #e2e1da;
  --line-2: #d3d2c9;
  --accent: #1e5f9e;
  --accent-fg: #1e5f9e;
  --accent-wash: rgba(30, 95, 158, 0.08);
  --good: #0b7a0b;
  --bad: #c03535;
  --shadow: 0 1px 2px rgba(19, 28, 40, 0.05), 0 8px 28px -12px rgba(19, 28, 40, 0.14);
  --shadow-lift: 0 2px 4px rgba(19, 28, 40, 0.06), 0 14px 40px -12px rgba(19, 28, 40, 0.22);

  /* 16 category hues — CVD-validated, fixed canonical order */
  --c-TIME: #b97e0c; --c-GIS: #2f9e4f;  --c-RAG: #7c3aed;  --c-FTS: #e8590c;
  --c-OLAP: #2456b8; --c-FEAT: #d13ad6; --c-LANG: #0f9e99; --c-TYPE: #5b5bd6;
  --c-UTIL: #9d5c00; --c-FUNC: #0e8fb3; --c-ADMIN: #a61e4d; --c-STAT: #6a9a0a;
  --c-SEC: #d21f3c;  --c-FDW: #e04e8f;  --c-SIM: #9741c9;  --c-ETL: #b8540f;

  /* dimension hue scale (license / language / repo) — aliases the category
     palette so both themes stay tuned; PostgreSQL blues + slate are bespoke.
     cool = permissive/common → warm = restrictive/rare, violet = commercial. */
  --h-blue: var(--c-OLAP);  --h-cyan: var(--c-FUNC);   --h-teal: var(--c-LANG);
  --h-green: var(--c-GIS);  --h-olive: var(--c-STAT);  --h-amber: var(--c-TIME);
  --h-orange: var(--c-FTS); --h-red: var(--c-SEC);     --h-maroon: var(--c-ADMIN);
  --h-violet: var(--c-RAG); --h-indigo: var(--c-TYPE); --h-pink: var(--c-FDW);
  --h-pgblue: #336791; --h-pgnavy: #1d4266; --h-slate: #64748b;

  /* build-matrix palette — muted, gallery-grade tones */
  --gmx-pgdg: #5b84ae; --gmx-pigsty: #679c74; --gmx-missing: #c26d5c; --gmx-na: #e6e5de;

  --font-display: "Charter", "Iowan Old Style", "Palatino", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --maxw: 1200px;
  color-scheme: light;
}



/* explicit theme override (toggle) — must win both directions */
html[data-theme="light"] #pgext-root {
  --bg: #f7f7f4; --bg-card: #fdfdfc; --bg-raise: #f0f0ec; --bg-inset: #eeeeea;
  --bg-code: #131c28; --fg-code: #dbe4f0;
  --ink: #131c28; --ink-2: #45536b; --ink-3: #626f88;
  --line: #e2e1da; --line-2: #d3d2c9;
  --accent: #1e5f9e; --accent-fg: #1e5f9e; --accent-wash: rgba(30, 95, 158, 0.08);
  --good: #0b7a0b; --bad: #c03535;
  --shadow: 0 1px 2px rgba(19, 28, 40, 0.05), 0 8px 28px -12px rgba(19, 28, 40, 0.14);
  --shadow-lift: 0 2px 4px rgba(19, 28, 40, 0.06), 0 14px 40px -12px rgba(19, 28, 40, 0.22);
  --c-TIME: #b97e0c; --c-GIS: #2f9e4f;  --c-RAG: #7c3aed;  --c-FTS: #e8590c;
  --c-OLAP: #2456b8; --c-FEAT: #d13ad6; --c-LANG: #0f9e99; --c-TYPE: #5b5bd6;
  --c-UTIL: #9d5c00; --c-FUNC: #0e8fb3; --c-ADMIN: #a61e4d; --c-STAT: #6a9a0a;
  --c-SEC: #d21f3c;  --c-FDW: #e04e8f;  --c-SIM: #9741c9;  --c-ETL: #b8540f;
  --h-pgblue: #336791; --h-pgnavy: #1d4266; --h-slate: #64748b;
  --gmx-pgdg: #5b84ae; --gmx-pigsty: #679c74; --gmx-missing: #c26d5c; --gmx-na: #e6e5de;
  color-scheme: light;
}
html[data-theme="dark"] #pgext-root {
  --bg: #0a0f1c; --bg-card: #111a2b; --bg-raise: #16213480; --bg-inset: #0d1524;
  --bg-code: #0d1524; --fg-code: #cdd9ea;
  --ink: #eef2f8; --ink-2: #aab6c8; --ink-3: #8492a6;
  --line: #1e2a3f; --line-2: #2a3852;
  --accent: #77aee8; --accent-fg: #8dbcf0; --accent-wash: rgba(119, 174, 232, 0.1);
  --good: #2eb82e; --bad: #e05252;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 18px 44px -12px rgba(0, 0, 0, 0.7);
  --c-TIME: #bd861a; --c-GIS: #33a856;  --c-RAG: #8f6ff0;  --c-FTS: #db5a18;
  --c-OLAP: #2e63c6; --c-FEAT: #c337d7; --c-LANG: #14ab9c; --c-TYPE: #7379f0;
  --c-UTIL: #b0742f; --c-FUNC: #1e9fc9; --c-ADMIN: #c93d6e; --c-STAT: #769c1c;
  --c-SEC: #e04b41;  --c-FDW: #e2609f;  --c-SIM: #a05fd6;  --c-ETL: #c45f1e;
  --h-pgblue: #5f96c9; --h-pgnavy: #86a7c9; --h-slate: #8e9cae;
  --gmx-pgdg: #4c7096; --gmx-pigsty: #4f8060; --gmx-missing: #a2604f; --gmx-na: #1b2537;
  color-scheme: dark;
}

/* ---------------- base ---------------- */
#pgext-root * { box-sizing: border-box; margin: 0; padding: 0; }
#pgext-root { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
#pgext-root {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.66 var(--font-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}
#pgext-root a { color: var(--accent-fg); text-decoration: none; }
#pgext-root a:hover { text-decoration: underline; text-underline-offset: 3px; }
#pgext-root code, #pgext-root kbd { font-family: var(--font-mono); }
#pgext-root::selection { background: var(--accent); color: var(--bg); }
#pgext-root :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
#pgext-root button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
#pgext-root input, #pgext-root select { font: inherit; color: inherit; }

#pgext-root .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* matrix pages stretch wider with slimmer margins, so the full 80-column
   sheet fits on a roomy screen; anything narrower scrolls inside the card */
#pgext-root .wrap.page-wide { max-width: 1448px; padding-left: 18px; padding-right: 18px; }
#pgext-root .mono { font-family: var(--font-mono); }
#pgext-root .muted { color: var(--ink-3); }
#pgext-root .nowrap { white-space: nowrap; }

/* eyebrow rendered as a SQL comment */
#pgext-root .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
#pgext-root .eyebrow::before { content: "-- "; opacity: 0.7; }

/* ---------------- nav ---------------- */
#pgext-root .nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
#pgext-root .nav-in { display: flex; align-items: center; gap: 20px; height: 56px; }
#pgext-root .brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; letter-spacing: 0.01em; }
#pgext-root .brand:hover { text-decoration: none; }
#pgext-root .brand .pigsty-logo { display: block; flex-shrink: 0; }
#pgext-root .brand-name { font-size: 15px; }
#pgext-root .brand-name .tld { color: var(--ink-3); font-weight: 450; }
#pgext-root .nav-links { display: flex; gap: 4px; margin-left: 8px; }
#pgext-root .nav-links a {
  color: var(--ink-2); font-size: 14px; padding: 6px 10px; border-radius: 7px;
}
#pgext-root .nav-links a:hover { color: var(--ink); background: var(--accent-wash); text-decoration: none; }
#pgext-root .nav-links a[aria-current="true"] { color: var(--ink); font-weight: 600; }
/* the Matrix entry drops a per-platform menu on hover */
#pgext-root .nav-drop { position: relative; display: inline-flex; }
#pgext-root .nav-menu {
  position: absolute; top: 100%; left: 0; z-index: 60; display: none;
  grid-template-columns: repeat(2, minmax(112px, max-content)); gap: 1px; padding: 7px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--bg-card); box-shadow: var(--shadow-lift);
}
#pgext-root .nav-drop:hover .nav-menu, #pgext-root .nav-drop:focus-within .nav-menu { display: grid; }
#pgext-root .nav-menu a { padding: 5px 10px; border-radius: 6px; color: var(--ink-2); font: 12px var(--font-mono); white-space: nowrap; }
#pgext-root .nav-menu a:hover { color: var(--ink); background: var(--accent-wash); text-decoration: none; }
#pgext-root .nav-menu .nav-menu-all { grid-column: 1 / -1; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 3px; color: var(--ink); font-weight: 650; }
#pgext-root .nav-menu-sep { grid-column: 1 / -1; height: 1px; margin: 4px 0 3px; background: var(--line); }
#pgext-root .nav-menu-pgs { grid-column: 1 / -1; display: flex; gap: 1px; }
#pgext-root .nav-menu-pgs a { flex: 1 1 0; min-width: 0; padding: 5px 0; text-align: center; overflow: hidden; }
/* the Index entry drops the full dimension map: 16 categories + 3 × 6 dims */
#pgext-root .nav-menu.nav-menu-index { display: none; grid-template-columns: none; padding: 10px 12px; }
#pgext-root .nav-drop:hover .nav-menu.nav-menu-index, #pgext-root .nav-drop:focus-within .nav-menu.nav-menu-index { display: flex; gap: 16px; }
#pgext-root .nav-idx-cats { display: grid; grid-template-columns: repeat(2, minmax(64px, max-content)); grid-auto-flow: column; grid-template-rows: repeat(8, auto); gap: 1px 8px; padding-right: 14px; border-right: 1px solid var(--line); }
#pgext-root .nav-idx-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; color: var(--seg, var(--ink-2)); font: 700 11.5px var(--font-mono); }
#pgext-root .nav-idx-cats a i { width: 7px; height: 7px; border-radius: 2px; background: var(--seg); }
#pgext-root .nav-idx-cats a:hover { background: var(--accent-wash); text-decoration: none; }
#pgext-root .nav-idx-col { display: flex; flex-direction: column; justify-content: space-between; gap: 1px; }
#pgext-root .nav-idx-col a { padding: 3px 9px; border-radius: 5px; color: var(--ink-2); font: 12px var(--font-body); white-space: nowrap; }
#pgext-root .nav-idx-col a:hover { color: var(--ink); background: var(--accent-wash); text-decoration: none; }
#pgext-root .nav-spacer { flex: 1; }
#pgext-root .nav-actions { display: flex; align-items: center; gap: 4px; }
/* bare icon actions: language, theme, GitHub — no button chrome */
#pgext-root .nav-ico {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px; color: var(--ink-2); border-radius: 7px;
}
#pgext-root .nav-ico:hover { color: var(--accent-fg); }
#pgext-root .nav-ico svg { display: block; }
/* quick search: a quiet inline field whose suggestions drop below the nav */
#pgext-root .nav-search { position: relative; display: flex; align-items: center; gap: 6px; margin-right: 4px; }
#pgext-root .nav-search input {
  width: 172px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); background: color-mix(in srgb, var(--bg-card) 72%, transparent);
  font: 12px var(--font-mono); outline: none; transition: border-color .12s, width .15s;
}
#pgext-root .nav-search input:focus { width: 230px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
#pgext-root .nav-search input::placeholder { color: var(--ink-3); opacity: .8; }
#pgext-root .nav-search kbd {
  position: absolute; right: 7px; color: var(--ink-3); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 10px; pointer-events: none;
}
#pgext-root .nav-search input:focus ~ kbd { display: none; }
#pgext-root .nav-sugg {
  position: absolute; top: calc(100% + 7px); right: 0; z-index: 70; width: 330px; max-width: 84vw;
  overflow: hidden; border: 1px solid var(--line-2); border-radius: 11px;
  background: var(--bg-card); box-shadow: var(--shadow-lift);
}
#pgext-root .ns-item {
  display: grid; grid-template-columns: 10px max-content minmax(0, max-content) minmax(0, 1fr); gap: 8px;
  align-items: baseline; padding: 7px 11px; border-bottom: 1px solid var(--line); color: inherit;
}
#pgext-root .ns-item:last-child { border-bottom: 0; }
#pgext-root .ns-item:hover, #pgext-root .ns-item.on { background: var(--accent-wash); text-decoration: none; }
#pgext-root .ns-item i { width: 8px; height: 8px; border-radius: 2px; background: var(--seg, var(--accent)); align-self: center; }
#pgext-root .ns-item b { color: var(--ink); font: 650 12.5px var(--font-mono); white-space: nowrap; }
#pgext-root .ns-item code { overflow: hidden; color: var(--ink-3); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
#pgext-root .ns-item span { overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- hero ---------------- */
#pgext-root .hero { padding: 64px 0 0; }
#pgext-root .hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.9vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 16px 0 16px;
}
#pgext-root .hero h1.oneline { white-space: nowrap; }
#pgext-root .hero h1 em { font-style: italic; color: var(--accent-fg); }
#pgext-root .hero-sub { font-size: clamp(13.5px, 1.45vw, 17px); color: var(--ink-2); }
#pgext-root .hero-sub.oneline { white-space: nowrap; }
#pgext-root .hero-sub b { color: var(--ink); font-weight: 650; }
#pgext-root .hero-sub code {
  font-size: 14.5px; background: var(--accent-wash); color: var(--accent-fg);
  padding: 1px 6px; border-radius: 5px;
}
/* six key figures, spread across one line */
#pgext-root .hero-stats {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 26px;
  margin: 30px 0 0; padding: 0; list-style: none;
}
#pgext-root .hero-stats .num { font-family: var(--font-mono); font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
#pgext-root .hero-stats .lbl { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }

/* ---------------- the universe field ---------------- */
#pgext-root .universe { margin: 32px 0 8px; }
#pgext-root .universe-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* ---------------- search console ---------------- */
#pgext-root .console { margin: 30px 0 14px; }
#pgext-root .searchbox {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 18px; box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
#pgext-root .searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash), var(--shadow); }
#pgext-root .searchbox .prompt { font-family: var(--font-mono); font-size: 16px; color: var(--accent-fg); user-select: none; }
#pgext-root .searchbox input {
  flex: 1; border: none; outline: none; background: none;
  font-family: var(--font-mono); font-size: 16px; color: var(--ink);
  min-width: 0;
}
#pgext-root .searchbox input::placeholder { color: var(--ink-3); opacity: 0.75; }
#pgext-root .searchbox kbd {
  font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px;
}
#pgext-root .sql-readout {
  margin: 12px 4px 0; font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline;
  cursor: pointer; border: none; text-align: left; width: 100%;
}
#pgext-root .sql-readout:hover .sql-q { color: var(--ink-2); }
#pgext-root .sql-readout .kw { color: var(--accent-fg); font-weight: 600; }
#pgext-root .sql-readout .lit { color: var(--c-GIS); }
#pgext-root .sql-readout .rcount { color: var(--ink); font-weight: 650; margin-left: auto; }
#pgext-root .sql-readout .copied { color: var(--good); }

/* filter chips + selects */
#pgext-root .filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; align-items: center; }
#pgext-root .chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-2); background: var(--bg-card);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px;
}
#pgext-root .chip:hover { border-color: var(--ink-3); color: var(--ink); }
#pgext-root .chip[aria-pressed="true"] {
  color: var(--ink); border-color: var(--accent); background: var(--accent-wash);
  font-weight: 600;
}
#pgext-root .chip .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--seg, var(--accent)); }
#pgext-root .filterbar select {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  background: var(--bg-card); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 4px 8px; max-width: 150px;
}
#pgext-root .filterbar select.on { color: var(--ink); border-color: var(--accent); background: var(--accent-wash); font-weight: 600; }
#pgext-root .filterbar .spacer { flex: 1; }
#pgext-root .dimension-link {
  display: inline-flex; align-items: center; padding: 4px 10px; border: 1px dashed var(--line-2); border-radius: 999px;
  color: var(--accent-fg); font: 600 11.5px var(--font-mono); white-space: nowrap;
}
#pgext-root .dimension-link:hover { border-style: solid; border-color: var(--accent); background: var(--accent-wash); text-decoration: none; }
#pgext-root .active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 15px 0 -5px; }
#pgext-root .active-filters > span { margin-right: 3px; color: var(--ink-3); font: 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .055em; }
#pgext-root .active-filters button {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px 4px 9px; border: 1px solid var(--accent); border-radius: 7px;
  color: var(--ink-2); background: var(--accent-wash); font: 10.5px var(--font-mono);
}
#pgext-root .active-filters button:hover { color: var(--ink); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 15%, transparent); }
#pgext-root .active-filters button b { color: var(--ink-3); font-weight: 500; }
#pgext-root .active-filters button code { color: var(--accent-fg); font-weight: 650; }
#pgext-root .active-filters button i { color: var(--ink-3); font-style: normal; font-size: 13px; }
#pgext-root .viewtoggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
#pgext-root .viewtoggle button { font-family: var(--font-mono); font-size: 12.5px; padding: 5px 10px; color: var(--ink-3); background: var(--bg-card); }
#pgext-root .viewtoggle button + button { border-left: 1px solid var(--line); }
#pgext-root .viewtoggle button[aria-pressed="true"] { color: var(--ink); background: var(--accent-wash); font-weight: 650; }

/* expanded faceted search: scan first, select without opening menus */
#pgext-root .facet-panel {
  overflow: hidden; margin: 22px 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--bg-card) 78%, var(--bg)); box-shadow: 0 12px 36px -34px rgba(19, 28, 40, .7);
}
#pgext-root .facet-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 12px 15px; border-bottom: 1px solid var(--line);
}
#pgext-root .facet-row:last-of-type { border-bottom: 0; }
#pgext-root .facet-name { display: flex; flex-direction: column; gap: 3px; padding: 5px 0 0 2px; }
#pgext-root .facet-name b {
  color: var(--ink-2); font: 650 11.5px/1.4 var(--font-mono); letter-spacing: .055em; text-transform: uppercase;
}
/* facet headers link to their /list index page */
#pgext-root .facet-head { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border-radius: 5px; }
#pgext-root .facet-head i { color: var(--ink-3); font-style: normal; font-size: 10px; opacity: 0; transition: opacity .12s, transform .12s; }
#pgext-root .facet-head:hover { text-decoration: none; }
#pgext-root .facet-head:hover b { color: var(--accent-fg); }
#pgext-root .facet-head:hover i { opacity: 1; transform: translateX(2px); color: var(--accent-fg); }
#pgext-root .facet-name span { max-width: 25ch; color: var(--ink-3); font-size: 10px; line-height: 1.42; }
#pgext-root .facet-name code { padding: 0 3px; border-radius: 3px; color: var(--accent-fg); background: var(--accent-wash); font-size: 9.5px; }
#pgext-root .facet-values { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
#pgext-root .facet-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); background: var(--bg-card);
  font: 12px/1.35 var(--font-mono); white-space: nowrap; transition: border-color .1s, background .1s, color .1s;
}
#pgext-root .facet-btn:hover { border-color: var(--line-2); color: var(--ink); background: var(--bg-raise); }
#pgext-root .facet-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-fg); background: var(--accent-wash); font-weight: 700; }
#pgext-root .facet-btn small { color: var(--ink-3); font: 10.5px/1 var(--font-mono); }
#pgext-root .facet-btn[aria-pressed="true"] small { color: currentColor; opacity: .75; }
#pgext-root .facet-btn.any { padding-left: 11px; padding-right: 11px; }
/* categories: Any stands alone in the first column; the 16 codes align 8 × 2 */
#pgext-root .category-facet .facet-values { display: grid; grid-template-columns: auto repeat(8, max-content); gap: 6px; justify-content: start; }
#pgext-root .category-facet .facet-btn.any { grid-row: span 2; align-self: stretch; justify-content: center; }
#pgext-root .facet-btn.category, #pgext-root .facet-btn.hued { gap: 7px; min-width: 0; }
#pgext-root .facet-btn.category i, #pgext-root .facet-btn.hued i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 2px; background: var(--seg); opacity: .8; }
#pgext-root .facet-btn.category span { display: inline-flex; gap: 5px; align-items: baseline; min-width: 0; }
#pgext-root .facet-btn.category code { color: var(--seg); font-size: 11.5px; font-weight: 750; }
#pgext-root .facet-btn.category[aria-pressed="true"], #pgext-root .facet-btn.hued[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--seg) 65%, var(--line));
  color: var(--ink); background: color-mix(in srgb, var(--seg) 9%, var(--bg-card));
}
/* license: like categories, Any stands alone on the left; the license chips
   (and the all-licenses link) wrap as one aligned block beside it */
#pgext-root .license-facet .facet-values { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px; }
#pgext-root .license-facet .facet-btn.any { align-self: stretch; justify-content: center; }
#pgext-root .facet-sub { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
@media (max-width: 900px) {
  #pgext-root .category-facet .facet-values { display: flex; flex-wrap: wrap; }
  #pgext-root .category-facet .facet-btn.any { align-self: auto; }
}
#pgext-root .facet-more {
  display: inline-flex; align-items: center; min-height: 29px; padding: 4px 8px;
  color: var(--accent-fg); font: 600 11.5px/1.35 var(--font-mono); white-space: nowrap;
}
#pgext-root .facet-more:hover { text-decoration: none; background: var(--accent-wash); border-radius: 6px; }
#pgext-root .facet-panel > footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 15px;
  border-top: 1px solid var(--line); background: var(--bg-raise);
}
#pgext-root .facet-panel > footer span { color: var(--ink-3); font: 9.5px var(--font-mono); }
#pgext-root .catalog-toolbar {
  display: flex; align-items: center; gap: 18px; min-height: 52px; margin: 16px 0 4px; padding: 9px 11px 9px 14px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--bg-card);
}
#pgext-root .result-summary { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
#pgext-root .result-summary strong { color: var(--ink); font: 700 18px var(--font-mono); }
#pgext-root .result-summary span { color: var(--ink-3); font-size: 12.5px; }
#pgext-root .catalog-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 14px; margin-left: auto; }
/* sort control — same two-segment anatomy as the view toggles:
   static label on the left, centered field dropdown on the right */
#pgext-root .sortctl { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--bg-card); }
#pgext-root .sortctl > span {
  display: inline-flex; align-items: center; padding: 5px 10px; border-right: 1px solid var(--line);
  color: var(--ink-3); font: 12.5px/1 var(--font-mono);
}
#pgext-root .sortctl > select {
  appearance: none; -webkit-appearance: none; border: 0; min-height: 29px; padding: 4px 22px 4px 12px;
  color: var(--ink); font: 650 12.5px var(--font-mono); text-align: center; text-align-last: center; cursor: pointer;
  background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23848d9c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 7px center / 9px;
}
#pgext-root .sortctl > select:hover { color: var(--accent-fg); }
#pgext-root .control-cluster { display: inline-flex; align-items: center; gap: 7px; }
#pgext-root .control-cluster > span:first-child { color: var(--ink-3); font: 9px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }

/* ---------------- extension wall : grid ---------------- */
#pgext-root .wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 10px; margin: 18px 0 30px; padding: 0; list-style: none;
}
/* extension cards: fixed four-up grid; the whole card is a link (cover), while
   the GitHub badge, package subtitle and dimension tags stay clickable above
   it. Packaged entries carry an emphasized border + left band: out-of-the-box. */
#pgext-root .ext-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
#pgext-root .ecard {
  position: relative; display: flex; flex-direction: column; gap: 5px; height: 100%;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px 11px;
  content-visibility: auto; contain-intrinsic-size: 158px;
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
#pgext-root .ecard::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--seg); opacity: 0.4; border-radius: 10px 0 0 10px;
}
#pgext-root .ecard.packaged { border-color: color-mix(in srgb, var(--seg) 42%, var(--line-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--seg) 22%, transparent); }
#pgext-root .ecard.packaged::before { opacity: 0.95; }
#pgext-root .ecard:hover {
  border-color: color-mix(in srgb, var(--seg) 60%, var(--line));
  transform: translateY(-1px); box-shadow: var(--shadow-lift);
}
/* click model: the cover link owns the whole card; children ignore the
   pointer except real links, which sit above the cover */
#pgext-root .card-cover { position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
#pgext-root .ecard > :not(.card-cover) { position: relative; pointer-events: none; }
#pgext-root .ecard a:not(.card-cover) { pointer-events: auto; position: relative; z-index: 2; }
#pgext-root .card-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
#pgext-root .card-name {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
#pgext-root .card-gh {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto; flex-shrink: 0;
  color: var(--ink-3); font: 600 12px var(--font-mono);
  padding: 2px 7px; border: 1px solid transparent; border-radius: 6px;
}
#pgext-root .card-gh svg { display: block; }
#pgext-root a.card-gh:hover { color: var(--ink); border-color: var(--line-2); background: var(--bg-raise); text-decoration: none; }
#pgext-root .card-sub {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3);
}
#pgext-root .card-sub a { color: var(--ink-3); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pgext-root .card-sub a:hover { color: var(--accent-fg); }
#pgext-root .card-sub .ver { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pgext-root .card-desc {
  font-size: 13.5px; line-height: 1.52; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
#pgext-root .card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 3px; }
#pgext-root .tg {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 10.5px/1.6 var(--font-mono); color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; background: var(--bg-raise);
}
#pgext-root .tg:hover { color: var(--ink); border-color: var(--line-2); text-decoration: none; background: var(--accent-wash); }
#pgext-root .tg.tg-cat, #pgext-root .tg.tg-hue { color: var(--seg); border-color: color-mix(in srgb, var(--seg) 38%, var(--line)); background: color-mix(in srgb, var(--seg) 8%, var(--bg-card)); }
#pgext-root .tg.tg-cat:hover, #pgext-root .tg.tg-hue:hover { color: var(--seg); border-color: color-mix(in srgb, var(--seg) 62%, var(--line)); background: color-mix(in srgb, var(--seg) 15%, var(--bg-card)); }
#pgext-root .tg.tg-dim { font-weight: 500; }
#pgext-root .tg.tg-life { color: var(--c-TIME); border-color: color-mix(in srgb, var(--c-TIME) 35%, var(--line)); }

/* package card: extra delivered extensions flow as plain gray inline links */
#pgext-root .card-exts { display: flex; flex-wrap: wrap; gap: 2px 10px; }
#pgext-root .card-exts a {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 11px/1.6 var(--font-mono); color: var(--ink-3);
}
#pgext-root .card-exts a:hover { color: var(--accent-fg); }

/* package table: the first cell stacks delivered extensions under the name */
#pgext-root .pkg-table .r-pkg { vertical-align: top; }
#pgext-root .r-pkg-name { font-family: var(--font-mono); font-weight: 700; font-size: 13.5px; }
#pgext-root .r-exts { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--seg, var(--accent)) 35%, var(--line)); }
#pgext-root .r-exts a { width: fit-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font: 500 11.5px/1.65 var(--font-mono); }
#pgext-root .r-exts a:hover { color: var(--accent-fg); }
#pgext-root .pkg-table .r-name { max-width: 230px; }

@media (max-width: 1080px) { #pgext-root .ext-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { #pgext-root .ext-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { #pgext-root .ext-wall { grid-template-columns: 1fr; } }


/* wall : psql table density */
#pgext-root .rows { margin: 18px 0 30px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-card); }
#pgext-root .rows-scroll { overflow-x: auto; }
#pgext-root .rows table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 860px; }
#pgext-root .rows th {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; text-align: left;
  color: var(--ink-3); letter-spacing: 0.05em; white-space: nowrap;
  padding: 9px 12px; border-bottom: 1px solid var(--line-2);
  background: var(--bg-card);
}
#pgext-root .rows td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
#pgext-root .rows tr:last-child td { border-bottom: none; }
#pgext-root .rows tbody tr:hover { background: var(--accent-wash); }
#pgext-root .rows .r-name a { font-family: var(--font-mono); font-weight: 650; font-size: 13.5px; }
#pgext-root .rows .r-cat { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--seg); letter-spacing: 0.04em; }
#pgext-root .rows .r-desc { color: var(--ink-2); max-width: 420px; }
#pgext-root .rows .r-mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
#pgext-root .rows .r-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); text-align: right; }
/* extension list: name and license are capped so a few extreme values cannot
   widen their columns; description absorbs the remaining width. */
#pgext-root .ext-table .r-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pgext-root .ext-table .r-lic { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
#pgext-root .ext-table .r-ver { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
#pgext-root .ext-table .r-desc { max-width: none; width: 99%; }

#pgext-root .load-more { display: block; margin: 0 auto 40px; }
#pgext-root .result-empty {
  margin: 30px 0 60px; padding: 40px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: 12px; color: var(--ink-3);
}
#pgext-root .result-empty code { color: var(--ink-2); }

/* ---------------- shared page scaffolding ---------------- */
#pgext-root .page { padding: 44px 24px 30px; }
#pgext-root .page-head { margin-bottom: 26px; }
#pgext-root .page-head h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.01em; margin: 10px 0 8px; }
#pgext-root .page-head .lede { color: var(--ink-2); max-width: 68ch; font-size: 15.5px; }
#pgext-root .crumbs { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#pgext-root .crumbs a { color: var(--ink-3); }
#pgext-root .crumbs a:hover { color: var(--accent-fg); }
#pgext-root .crumbs .sep { opacity: 0.5; }
#pgext-root .crumbs .here { color: var(--ink-2); font-weight: 600; }
#pgext-root .crumbs .here { min-width: 0; overflow-wrap: anywhere; }

#pgext-root .section { margin: 34px 0; }
#pgext-root .section > h2 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
#pgext-root .section > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------- extension detail ---------------- */
#pgext-root .ext-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: baseline; margin: 14px 0 6px; }
#pgext-root .ext-head h1 { min-width: 0; max-width: 100%; font-family: var(--font-mono); font-weight: 700; font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -0.02em; overflow-wrap: anywhere; }
/* the detail title is a cross-link: /ext ↔ its /pkg counterpart */
#pgext-root .ext-head h1 .title-link { color: inherit; }
#pgext-root .ext-head h1 .title-link:hover { color: var(--accent-fg); text-decoration: none; }
#pgext-root .ext-head .ver { font-family: var(--font-mono); font-size: 17px; color: var(--ink-3); }
#pgext-root .ext-tagline {
  font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 24px); font-weight: 450;
  color: var(--ink-2); max-width: 60ch; line-height: 1.45; margin: 4px 0 16px; overflow-wrap: anywhere;
}
#pgext-root .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 9px;
  color: var(--ink-2); background: var(--bg-card); white-space: nowrap;
}
#pgext-root .badge:hover { text-decoration: none; border-color: var(--ink-3); color: var(--ink); }
#pgext-root .badge .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--seg, var(--ink-3)); }
#pgext-root .badge.cat, #pgext-root .badge.hued { color: var(--seg); border-color: color-mix(in srgb, var(--seg) 40%, var(--line-2)); background: color-mix(in srgb, var(--seg) 8%, var(--bg-card)); }
#pgext-root .badge.hued:hover { border-color: color-mix(in srgb, var(--seg) 62%, var(--line-2)); background: color-mix(in srgb, var(--seg) 15%, var(--bg-card)); }
#pgext-root .badge.flag-on { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line-2)); }
#pgext-root .badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
/* labeled hero badges: a quiet gray dimension name in front of the value —
   no box, no divider, just text */
#pgext-root .badge.lbl { gap: 6px; }
#pgext-root .badge.lbl .bk { color: var(--ink-3); font-weight: 450; font-size: 11px; }
#pgext-root .badge.cat.lbl .dot { margin: 0 1px 0 0; }
/* Keep every dimension and resource link accessible as the hero narrows. */
#pgext-root .detail-hero .badge-row { flex-wrap: wrap; }
#pgext-root .detail-hero .badge-row:empty { display: none; }
#pgext-root .detail-hero .badge { min-width: 0; max-width: 100%; white-space: normal; }
#pgext-root .detail-hero .badge .bk, #pgext-root .detail-hero .badge svg { flex-shrink: 0; }
#pgext-root .detail-hero .badge .bv { min-width: 0; overflow-wrap: anywhere; }
/* outbound URL badges: glyph + label + a small raised outbound mark */
#pgext-root .badge.link-badge { gap: 6px; color: var(--ink-2); }
#pgext-root .badge.link-badge svg:first-child { color: var(--ink-3); }
#pgext-root .badge.link-badge:hover { color: var(--ink); }
#pgext-root .badge.link-badge:hover svg:first-child { color: var(--accent-fg); }
#pgext-root .badge .ext-mark { align-self: flex-start; margin: 3px 0 0 1px; color: var(--ink-3); opacity: .75; }
/* tag chips share the second hero row with the URL badges */
#pgext-root .detail-hero .hero-tag { align-self: center; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
/* quiet visit counter at the right end of the kicker row */
#pgext-root .hero-visits { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font: 500 11.5px var(--font-mono); }
#pgext-root .hero-visits svg { opacity: .75; }
#pgext-root .ghstats { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 10px; flex-wrap: wrap; }
#pgext-root .ghstats b { color: var(--ink); font-weight: 650; }
#pgext-root .notice {
  margin-top: 12px; padding: 10px 13px; border: 1px solid var(--line-2);
  border-radius: 8px; color: var(--ink-2); font-size: 14px; background: var(--bg-card);
}
#pgext-root .notice.provider { border-left: 3px solid var(--accent); }
#pgext-root .notice.lifecycle { border-left: 3px solid var(--c-TIME); }


/* install tabs */
#pgext-root .install { background: var(--bg-code); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
#pgext-root .install-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
#pgext-root .install-tabs button {
  font-family: var(--font-mono); font-size: 12.5px; color: #93a4bd;
  padding: 6px 12px; border-radius: 7px 7px 0 0;
}
#pgext-root .install-tabs button[aria-selected="true"] { color: #e8eef8; background: rgba(255,255,255,0.07); font-weight: 650; }
#pgext-root .install-body { position: relative; padding: 14px 16px; }
#pgext-root .install-body pre {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; color: var(--fg-code);
  overflow-x: auto; white-space: pre;
}
#pgext-root .install-body .cmt { color: #7d8ca3; }
#pgext-root .install-body .kw { color: #8dbcf0; }
#pgext-root .copy-btn {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-mono); font-size: 10.5px; color: #93a4bd;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 3px 8px;
}
#pgext-root .copy-btn:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
#pgext-root .copy-btn.ok { color: #6ee26e; border-color: #6ee26e55; }

/* availability matrix */
#pgext-root .matrix-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
#pgext-root .matrix { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 12.5px; }
#pgext-root .matrix th {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); font-weight: 600;
  padding: 9px 12px; border-bottom: 1px solid var(--line-2); text-align: center; letter-spacing: 0.05em;
}
#pgext-root .matrix th:first-child, #pgext-root .matrix td:first-child { text-align: left; padding-left: 16px; }
#pgext-root .matrix td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: center; }
#pgext-root .matrix tr:last-child td { border-bottom: none; }
#pgext-root .matrix .rowlab { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
#pgext-root .matrix .rowlab small { display: block; color: var(--ink-3); font-size: 10.5px; }
#pgext-root .matrix .ok { color: var(--good); font-weight: 700; font-family: var(--font-mono); font-size: 12px; }
#pgext-root .matrix .no { color: var(--ink-3); opacity: 0.45; font-family: var(--font-mono); }
#pgext-root .matrix .pkgname { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); margin-top: 1px; }

/* prose (rendered stub docs) */
#pgext-root .prose { max-width: 76ch; font-size: 16px; }
#pgext-root .prose h2 { font-family: var(--font-display); font-size: 26px; font-weight: 550; margin: 30px 0 12px; letter-spacing: -0.01em; }
#pgext-root .prose h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 24px 0 10px; }
#pgext-root .prose p { margin: 10px 0; color: var(--ink-2); }
#pgext-root .prose li { margin: 4px 0 4px 2px; color: var(--ink-2); }
#pgext-root .prose ul, #pgext-root .prose ol { padding-left: 22px; margin: 10px 0; }
#pgext-root .prose code {
  font-size: 14px; background: var(--accent-wash); color: var(--accent-fg);
  padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere;
}
#pgext-root .prose pre {
  background: var(--bg-code); color: var(--fg-code); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto; margin: 14px 0; box-shadow: var(--shadow);
}
#pgext-root .prose pre code { background: none; color: inherit; padding: 0; font-size: 13.5px; line-height: 1.7; }
#pgext-root .prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
#pgext-root .prose blockquote {
  border-left: 3px solid var(--line-2); padding: 2px 0 2px 16px; margin: 12px 0;
  color: var(--ink-3); font-style: italic;
}
#pgext-root .prose .rows-scroll { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; }
#pgext-root .prose table { border-collapse: collapse; width: 100%; font-size: 13px; }
#pgext-root .prose th {
  text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink-3); padding: 8px 12px;
  border-bottom: 1px solid var(--line-2); background: var(--bg-raise); white-space: nowrap;
}
#pgext-root .prose td { padding: 7px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: baseline; }
#pgext-root .prose tr:last-child td { border-bottom: none; }
#pgext-root .prose h4 { font-size: 16px; font-weight: 650; margin: 18px 0 8px; }
#pgext-root .docs-missing {
  border: 1px dashed var(--line-2); border-radius: 12px; padding: 22px;
  color: var(--ink-3); font-size: 13.5px; max-width: 76ch;
}
#pgext-root .docs-missing code { color: var(--ink-2); }

/* related strip */
#pgext-root .related { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 10px; padding: 0; list-style: none; }

/* ---------------- category page ---------------- */
#pgext-root .cat-hero { border-left: 4px solid var(--seg); padding-left: 22px; }
#pgext-root .cat-hero .code { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--seg); letter-spacing: 0.1em; }
#pgext-root .cat-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
#pgext-root .cat-strip { display: flex; gap: 2px; margin: 26px 0 8px; height: 8px; border-radius: 4px; overflow: hidden; }
#pgext-root .cat-strip a { flex: 1; background: var(--seg); opacity: 0.35; transition: opacity 0.12s; min-width: 8px; }
#pgext-root .cat-strip a:hover { opacity: 0.8; }
#pgext-root .cat-strip a[aria-current="true"] { opacity: 1; }

/* horizontal value nav on dimension landing pages */
#pgext-root .value-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
#pgext-root .value-nav .facet-btn[aria-pressed="true"] { pointer-events: none; }
#pgext-root .value-nav a:hover { text-decoration: none; }

/* ---------------- browse / dimension pages ---------------- */
#pgext-root .browse-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
#pgext-root .browse-stats span {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-3); background: var(--bg-card); font: 10.5px var(--font-mono);
}
#pgext-root .browse-stats b { color: var(--ink); font-size: 13px; }
#pgext-root .dimension-group { margin: 38px 0 48px; }
#pgext-root .dimension-group > header { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
#pgext-root .dimension-group > header h2 { color: var(--ink); font: 600 19px var(--font-display); }
#pgext-root .dimension-group > header span {
  min-width: 24px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3);
  text-align: center; font: 10.5px var(--font-mono);
}
#pgext-root .dimension-group > header::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
#pgext-root .dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 0; list-style: none; }
/* the 16 functional categories: compact cards, 4 × 4 */
#pgext-root .cat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; }
#pgext-root .cat-card {
  position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 76px; overflow: hidden;
  padding: 10px 11px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card);
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
#pgext-root .cat-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--seg); opacity: .8; }
#pgext-root .cat-card:hover { text-decoration: none; transform: translateY(-1px); border-color: color-mix(in srgb, var(--seg) 55%, var(--line)); box-shadow: var(--shadow); }
#pgext-root .cat-card code { color: var(--seg); font: 750 12.5px var(--font-mono); }
#pgext-root .cat-card b { overflow: hidden; color: var(--ink); font-size: 11.5px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
#pgext-root .cat-card span { margin-top: auto; color: var(--ink-3); font: 10.5px var(--font-mono); }
@media (max-width: 900px) { #pgext-root .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#pgext-root .dim-card {
  position: relative; min-height: 154px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 16px; color: inherit; display: flex; flex-direction: column; gap: 7px;
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
#pgext-root .dim-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 76%); opacity: .65; }
#pgext-root .dim-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
#pgext-root .dim-card .dim-field { overflow: hidden; color: var(--ink-3); font: 9.5px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
#pgext-root .dim-card .dim-field code { color: var(--accent-fg); }
#pgext-root .dim-card .t { margin-top: 2px; font-weight: 650; font-size: 16px; color: var(--ink); display: flex; align-items: baseline; }
#pgext-root .dim-card .t .n { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); font-weight: 450; }
#pgext-root .dim-card .d { font-size: 12.5px; line-height: 1.48; color: var(--ink-3); }
#pgext-root .dim-card .preview { display: flex; gap: 2px; height: 7px; border-radius: 4px; overflow: hidden; margin-top: auto; padding-top: 2px; }
#pgext-root .dim-card .preview i { flex: var(--w) 0 0; background: var(--seg, var(--accent)); opacity: 0.75; min-width: 2px; }

#pgext-root .dimension-head { margin-top: 23px; }
#pgext-root .dim-source {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink-3); background: var(--bg-card); font: 9.5px var(--font-mono);
}
#pgext-root .dim-source code { color: var(--accent-fg); }
#pgext-root .dim-toolbar { display: flex; align-items: center; gap: 14px; margin: 12px 0 12px; }
#pgext-root .dim-toolbar label {
  display: flex; align-items: center; gap: 8px; width: min(440px, 100%); padding: 8px 12px; border: 1px solid var(--line-2);
  border-radius: 9px; background: var(--bg-card); box-shadow: 0 3px 12px -12px rgba(19, 28, 40, .6);
}
#pgext-root .dim-toolbar label:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
#pgext-root .dim-toolbar label > span { color: var(--accent-fg); font: 18px/1 var(--font-mono); }
#pgext-root .dim-toolbar input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font: 12px var(--font-mono); }
#pgext-root .dim-toolbar > span { margin-left: auto; color: var(--ink-3); font: 10.5px var(--font-mono); white-space: nowrap; }
#pgext-root .dimtable { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--bg-card); box-shadow: 0 10px 34px -34px rgba(19, 28, 40, .65); }
#pgext-root .dimtable table { width: 100%; border-collapse: collapse; font-size: 14px; }
#pgext-root .dimtable th {
  text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--line-2); font-weight: 600;
}
#pgext-root .dimtable td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
#pgext-root .dimtable tr:last-child td { border-bottom: none; }
#pgext-root .dimtable tr[hidden] { display: none; }
#pgext-root .dimtable tbody tr:hover { background: var(--accent-wash); }
#pgext-root .dimtable .v { min-width: 220px; }
#pgext-root .dimtable .v a { display: block; color: inherit; font-weight: 600; }
#pgext-root .dimtable .v a:hover { text-decoration: none; }
#pgext-root .dimtable .v .mono { font-size: 12px; }
#pgext-root .dim-category, #pgext-root .dim-value-name { display: flex; flex-direction: column; gap: 2px; }
#pgext-root .dim-category code { color: var(--seg, var(--accent)); font-size: 11px; font-weight: 750; }
#pgext-root .dim-category b, #pgext-root .dim-value-name b { color: var(--ink); font-size: 12.5px; }
#pgext-root .dim-value-name code { color: var(--ink-3); font-size: 9.5px; font-weight: 500; }
#pgext-root .dimtable .n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); text-align: right; white-space: nowrap; }
#pgext-root .dimtable .bar { width: 34%; min-width: 110px; }
#pgext-root .dimtable .bar i {
  display: block; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--seg, var(--accent)), color-mix(in srgb, var(--seg, var(--accent)) 55%, transparent)); opacity: 0.8; min-width: 2px;
}
#pgext-root .dimtable .ex { min-width: 170px; max-width: 330px; color: var(--ink-3); font-family: var(--font-mono); font-size: 10.5px; }
#pgext-root .dimtable .ex a { display: inline-block; max-width: 150px; overflow: hidden; margin: 2px 5px 2px 0; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
#pgext-root .dimtable .ex a:hover { border-color: var(--line-2); color: var(--accent-fg); background: var(--accent-wash); text-decoration: none; }

@media (max-width: 680px) {
  #pgext-root .dimension-group { margin: 30px 0 40px; }
  #pgext-root .dims { grid-template-columns: 1fr; }
  #pgext-root .dim-card { min-height: 142px; }
  #pgext-root .dim-toolbar { align-items: stretch; flex-direction: column; gap: 7px; }
  #pgext-root .dim-toolbar > span { margin-left: 2px; }
  #pgext-root .dimtable table { min-width: 500px; }
  #pgext-root .dimtable .bar { width: 28%; min-width: 80px; }
  #pgext-root .dimtable .ex { min-width: 120px; }
}

/* ---------------- build matrix (shared block: /matrix and /repo) ----------------
   The page sits inside the standard wrap like every other page; the sheet
   lives in a rounded card that scrolls horizontally when narrow. Cell size
   is FIXED — nothing is recomputed on resize — and the whole cell field is
   one canvas painted in a single pass. */
#pgext-root .gmx-titleline { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: 7px; }
#pgext-root .gmx-titleline h1 {
  color: var(--ink); font: 540 clamp(32px, 4vw, 48px)/1.04 var(--font-display); letter-spacing: -.025em;
}
#pgext-root .gmx-lede { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; white-space: nowrap; }
#pgext-root .gmx-lede b { color: var(--ink); }
#pgext-root .gmx-api {
  flex: 0 0 auto; margin-bottom: 3px; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 7px;
  color: var(--ink-3); background: var(--bg-card); font: 10.5px var(--font-mono); white-space: nowrap;
}
#pgext-root .gmx-api:hover { color: var(--accent-fg); border-color: var(--accent); text-decoration: none; }
#pgext-root .gmx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 6px; }
#pgext-root .gmx-search {
  display: flex; align-items: center; gap: 8px; width: min(340px, 100%); padding: 7px 10px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-card);
}
#pgext-root .gmx-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
#pgext-root .gmx-search > span { color: var(--accent-fg); font: 700 15px/1 var(--font-mono); }
#pgext-root .gmx-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font: 11.5px var(--font-mono); }
#pgext-root .gmx-showing { margin-left: auto; color: var(--ink-3); font: 10.5px var(--font-mono); white-space: nowrap; }
#pgext-root .gmx-legend { display: flex; flex-wrap: wrap; gap: 5px; }
#pgext-root .gmx-legend-item {
  display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 4px 7px;
  border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); background: var(--bg-card);
  font: 10px/1 var(--font-mono); transition: border-color .1s, background .1s, opacity .1s;
}
#pgext-root .gmx-legend-item:hover { border-color: var(--line-2); background: var(--bg-raise); }
#pgext-root .gmx-legend-item[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); }
#pgext-root .gmx-legend-item i { display: block; width: 9px; height: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.13); }
#pgext-root .gmx-legend-item b { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
#pgext-root .gmx-hint { margin: 0 0 10px; color: var(--ink-3); font: 9.5px var(--font-mono); }
/* the what-if summary line above a single-repository matrix */
#pgext-root .gmx-solo { margin: 2px 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--bg-card); color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
/* the rounded card holding the sheet; a narrow viewport scrolls inside it */
#pgext-root .mx-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); box-shadow: var(--shadow); }
#pgext-root .mx-scroll { overflow-x: auto; }
#pgext-root .gmx-sheet {
  --gmx-label: 190px; --gmx-cell-px: 15px; --gmx-row: 15px;
  position: relative; width: max-content; min-width: 100%;
}
#pgext-root .gmx-headrow {
  display: grid; grid-template-columns: var(--gmx-label) repeat(var(--gmx-columns), var(--gmx-cell-px));
  width: max-content; min-width: 100%;
}
#pgext-root .gmx-headrow { background: color-mix(in srgb, var(--bg-raise) 94%, var(--bg-card)); }
#pgext-root .gmx-os-row { height: 30px; }
#pgext-root .gmx-pg-row { height: 20px; }
#pgext-root .gmx-corner {
  position: sticky; left: 0; z-index: 15; display: flex; align-items: center; padding: 0 10px;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line); color: var(--ink-2);
  background: var(--bg-raise); font: 700 9.5px/1 var(--font-mono); letter-spacing: .035em;
}
#pgext-root .gmx-corner-sub { color: var(--ink-3); font-size: 8.5px; font-weight: 500; }
#pgext-root .gmx-oshead {
  display: flex; align-items: center; justify-content: center; min-width: 0;
  border-left: 2px solid var(--line-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink); font: 700 9px/1 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#pgext-root a.gmx-oshead:hover { color: var(--accent-fg); background: var(--accent-wash); text-decoration: none; }
#pgext-root .gmx-oshead b { color: var(--ink); }
#pgext-root .gmx-pghead {
  display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-2);
  color: var(--ink-3); background: var(--bg-raise); font: 650 8.5px/1 var(--font-mono);
}
#pgext-root a.gmx-pghead:hover { color: var(--accent-fg); background: var(--accent-wash); text-decoration: none; }
/* body: one sticky label column + ONE canvas */
#pgext-root .gmx-grid { display: grid; grid-template-columns: var(--gmx-label) max-content; width: max-content; min-width: 100%; }
#pgext-root .gmx-labels { display: flex; flex-direction: column; }
#pgext-root .gmx-canvas { display: block; cursor: pointer; }
#pgext-root .gmx-row-name {
  position: sticky; left: 0; z-index: 6; display: flex; align-items: center; gap: 7px; height: var(--gmx-row); min-width: 0; padding: 0 9px 0 14px;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); color: var(--ink); background: var(--bg-card);
  font: 10px/1 var(--font-mono); white-space: nowrap;
}
#pgext-root .gmx-row-name:hover { color: var(--accent-fg); background: color-mix(in srgb, var(--accent-wash) 60%, var(--bg)); text-decoration: none; }
#pgext-root .gmx-row-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#pgext-root .gmx-pghead.group-start { border-left: 2px solid var(--line-2); }
#pgext-root .gmx-legend-item.gmx-pgdg i, #pgext-root .gmx-tip-state.gmx-pgdg { background: var(--gmx-pgdg); }
#pgext-root .gmx-legend-item.gmx-pigsty i, #pgext-root .gmx-tip-state.gmx-pigsty { background: var(--gmx-pigsty); }
#pgext-root .gmx-legend-item.gmx-missing i, #pgext-root .gmx-tip-state.gmx-missing { background: var(--gmx-missing); }
#pgext-root .gmx-legend-item.gmx-na i, #pgext-root .gmx-tip-state.gmx-na { background: var(--gmx-na); }
#pgext-root .gmx-empty { padding: 26px 20px; color: var(--ink-3); font: 12px var(--font-mono); }
/* click-to-inspect readout strip */
#pgext-root .gmx-readout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px;
  color: var(--ink-2); font: 11px var(--font-mono);
}
#pgext-root .gmx-readout a b { font-weight: 700; }
#pgext-root .gmx-readout code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-card); color: var(--ink-2); font-size: 10.5px; }
#pgext-root .gmx-readout .gmx-ro-ver { color: var(--accent-fg); font-weight: 650; }
#pgext-root .gmx-readout .gmx-ro-dim { color: var(--ink-3); }
#pgext-root .gmx-source { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; color: var(--ink-3); font: 9.5px/1.55 var(--font-mono); }
#pgext-root .gmx-source code { color: var(--accent-fg); }
#pgext-root .gmx-source-copy { flex: 1 1 620px; }
#pgext-root .gmx-snapshot { margin-left: auto; white-space: nowrap; }
#pgext-root .gmx-tip-state { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; color: #fff; font-size: 9px; }

#pgext-root .gmx-labels { position: sticky; left: 0; z-index: 6; background: var(--bg-card); }

/* /os value navigation: 8 distro columns × two aligned arch rows */
#pgext-root .os-nav {
  display: grid; grid-template-columns: repeat(var(--os-cols, 8), minmax(0, 1fr)); gap: 6px;
  margin: 14px 0 0;
}
#pgext-root .os-cell {
  display: flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); background: var(--bg-card);
  font: 600 11.5px var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#pgext-root .os-cell:hover { border-color: var(--line-2); color: var(--ink); background: var(--bg-raise); text-decoration: none; }
#pgext-root .os-cell[aria-current="true"] { border-color: var(--accent); color: var(--accent-fg); background: var(--accent-wash); font-weight: 700; }
#pgext-root .os-cell.off { visibility: hidden; }

/* sliced build matrices on /pg and /os pages: version text colored by state;
   compact enough that the 16-platform table fits the page when it can */
#pgext-root .fmx.slice-mx { min-width: 0; width: 100%; }
#pgext-root .fmx.slice-mx th { padding: 6px 3px; }
#pgext-root .fmx.slice-mx th.os-th-cell { padding: 5px 2px; }
#pgext-root .fmx.slice-mx .os-th { display: flex; flex-direction: column; align-items: center; gap: 1px; }
#pgext-root .fmx.slice-mx .os-th b { color: var(--ink-2); font-size: 9.5px; font-weight: 700; }
#pgext-root .fmx.slice-mx .os-th span { color: var(--ink-3); font-size: 8px; font-weight: 600; }
#pgext-root .fmx.slice-mx td { padding: 3px 2px; }
#pgext-root .fmx.slice-mx .cellv { font-size: 9.5px; padding: 1px 3px; }
#pgext-root .fmx.slice-mx th a { color: inherit; }
#pgext-root .fmx.slice-mx .oslab { padding-left: 12px; padding-right: 6px; white-space: nowrap; }
#pgext-root .fmx.slice-mx .oslab b { font-size: 11px; }
#pgext-root .fmx.slice-mx th.corner { font-size: 9px; white-space: nowrap; }

#pgext-root .tip .k { display: inline-block; min-width: 62px; margin-top: 2px; color: color-mix(in srgb, var(--bg) 65%, transparent); }

@media (max-width: 760px) {
  #pgext-root .gmx-titleline { align-items: flex-start; flex-direction: column; gap: 12px; }
  #pgext-root .gmx-lede { white-space: normal; }
  #pgext-root .gmx-api { margin: 0; }
  #pgext-root .gmx-toolbar { align-items: stretch; flex-direction: column; gap: 7px; }
  #pgext-root .gmx-showing { margin-left: 1px; }
  #pgext-root .gmx-source { flex-direction: column; }
  #pgext-root .gmx-source-copy { flex-basis: auto; }
  #pgext-root .gmx-snapshot { margin-left: 0; }
}

/* ---------------- about: sections stack top to bottom ---------------- */
#pgext-root .about-cols { display: grid; grid-template-columns: 1fr; gap: 34px; margin-top: 10px; }
#pgext-root .about-cols h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
#pgext-root .about-cols p { color: var(--ink-2); font-size: 14.5px; margin: 6px 0; }
#pgext-root .about-cols .roadmap { max-width: 620px; }
#pgext-root .about-eco { display: block; max-width: 860px; margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
#pgext-root .about-eco img { display: block; width: 100%; height: auto; }
#pgext-root .about-cols .md-code { max-width: 720px; }
#pgext-root .roadmap { list-style: none; padding: 0; margin: 8px 0; }
#pgext-root .roadmap li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }
#pgext-root .roadmap li:last-child { border-bottom: none; }
#pgext-root .roadmap .tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-fg); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 7px; height: fit-content; margin-top: 2px; white-space: nowrap; }

/* ---------------- footer: brand + link columns + copyright line ---------------- */
#pgext-root .footer { border-top: 1px solid var(--line); margin-top: 44px; padding: 34px 0 0; background: color-mix(in srgb, var(--bg-raise) 40%, var(--bg)); }
#pgext-root .footer-in { display: flex; flex-wrap: wrap; gap: 26px 56px; align-items: flex-start; }
#pgext-root .footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 300px; }
#pgext-root .footer-brand p { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
#pgext-root .footer-snap { color: var(--ink-3); font: 10.5px var(--font-mono); }
#pgext-root .footer-col { display: flex; flex-direction: column; gap: 5px; }
#pgext-root .footer-col > span { margin-bottom: 3px; color: var(--ink-3); font: 600 10.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
#pgext-root .footer-col a { color: var(--ink-2); font-size: 13px; }
#pgext-root .footer-col a:hover { color: var(--accent-fg); }
#pgext-root .footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 28px; padding-top: 14px; padding-bottom: 20px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 12px;
}
#pgext-root .footer-bottom a { color: var(--ink-2); }
#pgext-root .footer-langs { display: inline-flex; align-items: center; gap: 8px; }
#pgext-root .footer-langs i { color: var(--ink-3); font-style: normal; opacity: .6; }
#pgext-root .footer-langs button { padding: 0; color: var(--ink-3); font-size: 12.5px; }
#pgext-root .footer-langs button:hover { color: var(--accent-fg); }
#pgext-root .footer-langs button[aria-pressed="true"] { color: var(--ink); font-weight: 650; }

/* ---------------- tooltip ---------------- */
#pgext-root .tip {
  position: fixed; z-index: 90; pointer-events: none;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5;
  padding: 6px 10px; border-radius: 7px; max-width: 300px;
  box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(3px); transition: opacity 0.1s, transform 0.1s;
}
#pgext-root .tip.show { opacity: 1; transform: none; }
#pgext-root .tip b { font-weight: 700; }
#pgext-root .tip .d { opacity: 0.75; }

/* ---------------- extension hovercard ---------------- */
#pgext-root #hovercard {
  position: fixed; z-index: 80; width: 340px; max-width: calc(100vw - 20px);
  background: var(--bg-card); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: var(--shadow-lift); padding: 13px 15px 11px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.13s, transform 0.13s, visibility 0.13s;
}
#pgext-root #hovercard.show { opacity: 1; visibility: visible; transform: none; }
#pgext-root #hovercard header { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
#pgext-root #hovercard header::before { content: ""; width: 9px; height: 9px; border-radius: 2.5px; background: var(--seg, var(--accent)); align-self: center; flex-shrink: 0; }
#pgext-root #hovercard .hc-title { min-width: 0; overflow-wrap: anywhere; font: 700 15px var(--font-mono); color: var(--ink); }
#pgext-root #hovercard .hc-title:hover { color: var(--accent-fg); text-decoration: none; }
#pgext-root #hovercard .hc-sub { display: block; margin-top: 5px; font: 500 11.5px var(--font-mono); color: var(--ink-3); }
#pgext-root #hovercard .hc-sub:hover { color: var(--accent-fg); text-decoration: none; }
#pgext-root #hovercard .hc-desc { margin: 8px 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
#pgext-root .hc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 14px; margin: 0 0 10px; }
#pgext-root .hc-facts > div { display: flex; gap: 8px; min-width: 0; padding: 3px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
#pgext-root .hc-facts dt { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
#pgext-root .hc-facts dd { margin-left: auto; color: var(--ink-2); font-family: var(--font-mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pgext-root .hc-facts dd b { font-weight: 650; }
/* package hovercard family table: headerless name | version | attr rows in
   the same dashed rhythm as hc-facts; sits at the very bottom of the card */
#pgext-root .hc-exts { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
#pgext-root .hc-exts > div {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; gap: 10px;
  align-items: baseline; padding: 3px 0; border-bottom: 1px dashed var(--line);
}
#pgext-root .hc-exts > div:last-child { border-bottom: 0; }
#pgext-root .hc-exts a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: 600 11.5px var(--font-mono); }
#pgext-root .hc-exts a:hover { color: var(--accent-fg); text-decoration: none; }
#pgext-root .hc-exts span { color: var(--ink-3); font: 11px var(--font-mono); }
#pgext-root .hc-exts em { display: inline-flex; gap: 3px; font-style: normal; }
/* compact attribute chips (family tables, package hovercard) */
#pgext-root .attr-chip {
  display: inline-block; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink-3); background: var(--bg-raise); font: 650 9px/1.7 var(--font-mono); letter-spacing: .03em;
}
#pgext-root .r-attr { white-space: nowrap; }
#pgext-root .r-attr .attr-chip + .attr-chip { margin-left: 3px; }
/* link table: one row per destination — label | host | arrow */
#pgext-root .hc-links { border-top: 1px solid var(--line); }
#pgext-root .hc-links a {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 5px 2px; border-bottom: 1px dashed var(--line);
}
#pgext-root .hc-links a:last-child { border-bottom: 0; }
#pgext-root .hc-links a:hover { text-decoration: none; background: var(--accent-wash); }
#pgext-root .hc-links span { color: var(--ink-3); font: 600 10.5px var(--font-mono); }
#pgext-root .hc-links b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font: 500 10.5px var(--font-mono); }
#pgext-root .hc-links i { color: var(--accent-fg); font-style: normal; font-size: 10px; }

/* ---------------- GFM alerts in usage docs ---------------- */
#pgext-root .md-alert {
  margin: 16px 0; padding: 11px 16px 12px; border-left: 3px solid var(--accent);
  border-radius: 5px 10px 10px 5px; background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
}
#pgext-root .md-alert > .md-alert-title {
  display: flex; align-items: center; gap: 7px; margin: 0 0 6px;
  font: 700 12px var(--font-mono); letter-spacing: 0.04em; color: var(--accent-fg);
}
#pgext-root .md-alert > .md-alert-title span { font-size: 14px; line-height: 1; }
#pgext-root .md-alert > p:not(.md-alert-title) { margin: 6px 0; }
#pgext-root .md-alert > :last-child { margin-bottom: 0; }
#pgext-root .md-alert-tip { border-left-color: var(--good); background: color-mix(in srgb, var(--good) 6%, var(--bg-card)); }
#pgext-root .md-alert-tip > .md-alert-title { color: var(--good); }
#pgext-root .md-alert-important { border-left-color: var(--c-RAG); background: color-mix(in srgb, var(--c-RAG) 6%, var(--bg-card)); }
#pgext-root .md-alert-important > .md-alert-title { color: var(--c-RAG); }
#pgext-root .md-alert-warning { border-left-color: var(--c-TIME); background: color-mix(in srgb, var(--c-TIME) 7%, var(--bg-card)); }
#pgext-root .md-alert-warning > .md-alert-title { color: var(--c-TIME); }
#pgext-root .md-alert-caution { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 6%, var(--bg-card)); }
#pgext-root .md-alert-caution > .md-alert-title { color: var(--bad); }

/* ---------------- responsive ---------------- */
@media (max-width: 760px) {
  #pgext-root .nav-in { gap: 6px; }
  #pgext-root .brand-name { display: none; }
  #pgext-root .nav-links { display: flex; gap: 0; margin-left: 0; }
  #pgext-root .nav-links a { font-size: 11.5px; padding: 5px 6px; }
  #pgext-root .nav-actions { gap: 4px; }
  #pgext-root .nav-ico { padding: 4px; }
  #pgext-root .nav-github { display: none; }
  #pgext-root .hero { padding-top: 28px; }
  #pgext-root .hero h1 { margin-top: 10px; margin-bottom: 14px; }
  #pgext-root .hero h1.oneline, #pgext-root .hero-sub.oneline { white-space: normal; }
  #pgext-root .hero-sub { font-size: 15px; }
  #pgext-root .console { margin-top: 22px; }
  #pgext-root .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin-top: 22px; }
  #pgext-root .hero-stats .num { font-size: 19px; }
  #pgext-root .universe { margin-top: 24px; }
  #pgext-root .filterbar select { max-width: 135px; }
  #pgext-root .facet-row { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  #pgext-root .facet-name { padding: 0; }
  #pgext-root .facet-name span { max-width: none; }
  #pgext-root .facet-values { gap: 5px; }
  #pgext-root .facet-btn { min-height: 30px; }
  #pgext-root .facet-panel > footer { align-items: flex-start; flex-direction: column; gap: 7px; }
  #pgext-root .catalog-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  #pgext-root .catalog-controls { width: 100%; justify-content: flex-start; margin-left: 0; }
}

@media (max-width: 420px) {
  #pgext-root .wrap { padding-left: 16px; padding-right: 16px; }
  #pgext-root .nav-links a { padding-left: 5px; padding-right: 5px; }
  #pgext-root .nav-links a[href="/about"] { display: none; }
  #pgext-root .searchbox { padding: 12px 13px; gap: 8px; }
  #pgext-root .searchbox .prompt { font-size: 12px; }
  #pgext-root .searchbox input { font-size: 13px; }
  #pgext-root .searchbox kbd { display: none; }
  #pgext-root .filterbar { gap: 6px; }
  #pgext-root .chip { font-size: 11px; padding: 4px 9px; }
  #pgext-root .facet-panel { margin-left: -2px; margin-right: -2px; border-radius: 11px; }
  #pgext-root .facet-row { padding: 11px 10px; }
  #pgext-root .facet-btn.category em { display: none; }
  #pgext-root .catalog-controls { display: grid; grid-template-columns: 1fr; }
  #pgext-root .control-cluster { justify-content: space-between; }
  #pgext-root .viewtoggle { margin-left: auto; }
  #pgext-root .sortctl > select { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #pgext-root *, #pgext-root *::before, #pgext-root *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  #pgext-root { scroll-behavior: auto; }
}

/* ================================================================
   server-mode additions: boot splash, skeletons, full availability
   matrix, package file listings, doc-link strip
   ================================================================ */

/* boot splash & connection error */
#pgext-root .boot { max-width: var(--maxw); margin: 0 auto; padding: 120px 24px; }
#pgext-root .boot .line { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); }
#pgext-root .boot .line .p { color: var(--accent-fg); }
#pgext-root .boot .cursor {
  display: inline-block; width: 8px; height: 16px; vertical-align: -2px;
  background: var(--accent); animation: pgext-blink 1s steps(1) infinite;
}
@keyframes pgext-blink { 50% { opacity: 0; } }
#pgext-root .boot-err { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.8; }
#pgext-root .boot-err .e { color: var(--bad); }
#pgext-root .boot-err button { margin-top: 16px; }

/* loading skeletons */
#pgext-root .skel { border: 1px dashed var(--line-2); border-radius: 12px; padding: 18px; }
#pgext-root .skel .bar {
  height: 12px; border-radius: 6px; margin: 8px 0;
  background: linear-gradient(90deg, var(--bg-inset) 25%, var(--bg-raise) 50%, var(--bg-inset) 75%);
  background-size: 200% 100%; animation: pgext-shimmer 1.4s ease infinite;
}
@keyframes pgext-shimmer { to { background-position: -200% 0; } }
#pgext-root .hydrate-err {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--bad);
  border: 1px dashed color-mix(in srgb, var(--bad) 40%, var(--line-2));
  border-radius: 10px; padding: 14px 16px;
}

/* full availability matrix (os × pg) */
#pgext-root .fmx { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13px; }
#pgext-root .fmx th {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); font-weight: 600;
  padding: 9px 10px; border-bottom: 1px solid var(--line-2); text-align: center; letter-spacing: 0.05em;
  background: var(--bg-raise);
}
#pgext-root .fmx th:first-child { text-align: left; padding-left: 16px; }
#pgext-root .fmx th.corner { color: var(--ink-3); letter-spacing: 0.06em; }
#pgext-root .fmx td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: center; }
#pgext-root .fmx tr:last-child td { border-bottom: none; }
#pgext-root .fmx tr.fam-start td { border-top: 2px solid var(--line-2); }
/* the two architectures alternate: aarch64 rows zebra-stripe slightly darker,
   and each arch suffix carries its own color in the same type style */
#pgext-root .fmx tr.arch-arm td { background: color-mix(in srgb, var(--bg-inset) 62%, transparent); }
#pgext-root .fmx .oslab {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2);
  text-align: left; padding-left: 16px; white-space: nowrap;
}
/* the full target spelling in one type style — "el8.x86_64" — with the
   aarch64 suffix a shade lighter, no hue shift */
#pgext-root .fmx .oslab b, #pgext-root .fmx .oslab-dot, #pgext-root .fmx .oslab-arch { color: var(--ink); font-weight: 650; }
#pgext-root .fmx tr.arch-arm .oslab-arch { color: var(--ink-3); }
#pgext-root .fmx .oslab a { color: inherit; }
#pgext-root .fmx .oslab a:hover { color: var(--accent-fg); text-decoration: none; }
#pgext-root .fmx th a { color: inherit; }
#pgext-root .fmx th a:hover { color: var(--accent-fg); text-decoration: none; }
#pgext-root .cellv {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  padding: 2px 8px; border-radius: 5px; white-space: nowrap;
}
#pgext-root .cellv.org-pgdg { color: var(--accent-fg); background: var(--accent-wash); }
#pgext-root .cellv.org-pigsty { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
#pgext-root .cellv.org-other { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
#pgext-root .cellv.st-miss { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
#pgext-root .cellv.st-na { color: var(--ink-3); background: var(--bg-inset); opacity: .55; }
#pgext-root .mx-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}
#pgext-root .mx-legend .cellv { font-size: 10px; }
#pgext-root .mx-legend b { color: var(--ink); }
#pgext-root .mx-summary { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; }
#pgext-root .mx-summary b { color: var(--ink); font-family: var(--font-mono); }

/* package files */
#pgext-root .files-tabs { display: flex; gap: 2px; margin-bottom: 10px; flex-wrap: wrap; }
#pgext-root .files-tabs button {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 12px; background: var(--bg-card);
}
#pgext-root .files-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); background: var(--accent-wash); font-weight: 650; }
#pgext-root .files { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-card); }
#pgext-root .files table { border-collapse: collapse; width: 100%; min-width: 780px; font-size: 13px; }
#pgext-root .files th {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--ink-3); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line-2);
  background: var(--bg-raise);
}
#pgext-root .files td { padding: 6px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
#pgext-root .files tr:last-child td { border-bottom: none; }
#pgext-root .files td.f-os { white-space: nowrap; color: var(--ink); }
#pgext-root .files td.f-size { text-align: right; white-space: nowrap; color: var(--ink-3); }
#pgext-root .files td.f-sha { white-space: nowrap; }
#pgext-root .files td.f-sha button { font: inherit; color: var(--ink-3); }
#pgext-root .files td.f-sha button:hover { color: var(--accent-fg); }
#pgext-root .files td.f-file { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pgext-root .files td.f-file a { color: var(--accent-fg); }
#pgext-root .files tr.older { background: color-mix(in srgb, var(--bg-inset) 55%, transparent); }
#pgext-root .files-wrap:not(.show-all) tr.older { display: none; }
#pgext-root .files-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
#pgext-root .files-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* ---------------- complete extension / package manuals ---------------- */
#pgext-root .manual-page { padding-top: 32px; }
#pgext-root .detail-hero {
  position: relative; overflow: hidden; margin-top: 18px; padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 32%),
    linear-gradient(145deg, var(--bg-card), color-mix(in srgb, var(--bg-raise) 62%, var(--bg-card)));
  box-shadow: var(--shadow);
}
#pgext-root .detail-hero::after {
  content: ""; position: absolute; inset: auto -50px -78px auto; width: 220px; height: 220px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 50%; pointer-events: none;
}
#pgext-root .detail-kicker {
  color: var(--accent-fg); font: 700 10.5px/1.4 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase;
}
#pgext-root .detail-hero .ext-head { margin-top: 8px; }
#pgext-root .detail-hero .ext-tagline, #pgext-root .detail-hero .lede { position: relative; z-index: 1; }
#pgext-root .detail-hero .badge-row, #pgext-root .detail-hero .ghstats { position: relative; z-index: 2; }

/* detail hero: identity on the left, a compact project card + dates column
   on the right */
#pgext-root .ext-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px 44px; align-items: start; }
#pgext-root .ext-hero-main { min-width: 0; }
#pgext-root .detail-kicker-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#pgext-root .state-chip { font: 650 11.5px var(--font-mono); color: var(--ink-3); letter-spacing: 0.05em; }
#pgext-root .state-chip.ok { color: var(--good); }
#pgext-root .ext-hero-side { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
#pgext-root .matrix-pkg-note { margin-top: 12px; font: 600 13px var(--font-mono); }
#pgext-root .matrix-pkg-note code { color: var(--accent-fg); }
@media (max-width: 920px) {
  #pgext-root .ext-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The section index owns a column inside the host container. On small screens
   it becomes a single scrollable row rather than a tall block above the body. */
#pgext-root .manual-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
  margin-top: clamp(28px, 4vw, 44px);
}
#pgext-root .manual-content { min-width: 0; grid-row: 2; overflow-wrap: anywhere; }
#pgext-root .page-toc {
  grid-row: 1; display: flex; align-items: center; gap: 5px;
  min-width: 0; overflow-x: auto; padding: 3px 0;
}
#pgext-root .page-toc > span {
  flex-shrink: 0; padding: 4px 7px 4px 0; color: var(--ink-3);
  font: 600 10px/1.4 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase;
  white-space: nowrap;
}
#pgext-root .page-toc a {
  flex-shrink: 0; padding: 5px 8px; border-bottom: 2px solid var(--line); border-radius: 4px 4px 0 0;
  color: var(--ink-2); white-space: nowrap; font: 12px/1.5 var(--font-body);
}
#pgext-root .page-toc a:hover, #pgext-root .page-toc a[aria-current="location"] {
  border-color: var(--accent); color: var(--ink); background: var(--accent-wash); text-decoration: none;
}
#pgext-root .page-toc a[aria-current="location"] { font-weight: 650; }
@media (min-width: 1024px) {
  #pgext-root .manual-layout { grid-template-columns: minmax(0, 1fr) 180px; column-gap: 32px; }
  #pgext-root .manual-content { grid-column: 1; grid-row: 1; }
  #pgext-root .page-toc {
    grid-column: 2; grid-row: 1; align-self: start;
    position: sticky; top: calc(var(--pg-nav-h, 60px) + 24px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 0;
    max-height: calc(100dvh - var(--pg-nav-h, 60px) - 48px); overflow-y: auto; overflow-x: hidden;
  }
  #pgext-root .page-toc > span {
    padding: 0 10px 8px; white-space: normal;
  }
  #pgext-root .page-toc a {
    padding: 5px 10px; border-left: 2px solid var(--line); border-bottom: 0; border-radius: 0 5px 5px 0;
    white-space: normal; overflow-wrap: anywhere;
  }
}
/* The host scroll container already reserves the header height + 16px. */
#pgext-root .ext-section, #pgext-root .pkg-section { scroll-margin-top: 8px; }
/* section content sits flush inside detail pages — no stray table margins */
#pgext-root .manual-page .rows { margin: 0; }
#pgext-root .manual-page .section { margin: clamp(42px, 6vw, 72px) 0; }
#pgext-root .manual-content > .section:first-child { margin-top: 0; }
#pgext-root .manual-content > .section:last-child { margin-bottom: 0; }
#pgext-root .manual-page .section > h2 {
  gap: 14px; margin-bottom: 18px; color: var(--ink); text-transform: none; letter-spacing: -.015em;
  font: 550 clamp(24px, 2.8vw, 32px)/1.18 var(--font-display);
}
#pgext-root .manual-page .section > h2::before {
  content: ""; flex: 0 0 4px; width: 4px; height: 24px; border-radius: 3px;
  background: var(--accent);
}
#pgext-root .manual-page .section > h2::after { background: linear-gradient(90deg, var(--line-2), transparent); }
#pgext-root .section-lede { color: var(--ink-2); font-size: 15px; margin: -4px 0 16px; }
#pgext-root .section-subhead {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 12px;
  color: var(--ink-2); font: 650 14px/1.4 var(--font-display);
}
#pgext-root .section-subhead::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* the catalog comment, quoted under the overview tables */
#pgext-root .catalog-quote {
  margin: 14px 0 0; padding: 6px 18px; border-left: 3px solid var(--line-2);
  color: var(--ink-3); font-size: 14.5px; line-height: 1.65; font-style: italic;
}
#pgext-root .bool { white-space: nowrap; font: 11.5px/1.4 var(--font-mono); }
#pgext-root .bool.yes { color: var(--good); }
#pgext-root .bool.no { color: var(--ink-3); }

#pgext-root .metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#pgext-root .metadata-grid.tri { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
/* rows align horizontally across the three panels */
#pgext-root .metadata-grid.tri .meta-row { min-height: 40px; align-items: center; }
#pgext-root .metadata-grid.tri .meta-row dd { overflow-wrap: anywhere; }
#pgext-root .meta-empty { padding: 12px 14px; color: var(--ink-3); font-size: 13px; }
#pgext-root .meta-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
#pgext-root .meta-panel h3 {
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-raise);
  color: var(--ink-3); font: 600 11.5px/1.4 var(--font-mono); letter-spacing: 0.065em; text-transform: uppercase;
}
#pgext-root .meta-row { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 12px; padding: 7px 14px; border-bottom: 1px solid var(--line); }
#pgext-root .meta-row:last-child { border-bottom: 0; }
#pgext-root .meta-row dt { color: var(--ink-3); font: 12px/1.5 var(--font-mono); white-space: nowrap; }
#pgext-root .meta-row dd { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); font-size: 13px; }
#pgext-root .meta-row dd.mono { font-family: var(--font-mono); font-size: 12.5px; }
/* attribute panel: value column centered, cursor hints at the hover tip */
#pgext-root .attr-row { cursor: help; }
#pgext-root .attr-row dd { text-align: center; }
/* links panel: narrow labels, hosts on one line — ellipsis, never wrap */
#pgext-root .meta-panel.links .meta-row { grid-template-columns: 74px minmax(0, 1fr); }
#pgext-root .res-link { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; white-space: nowrap; }
#pgext-root .res-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#pgext-root .res-link svg { flex-shrink: 0; opacity: .6; }
#pgext-root .pg-badges { display: inline-flex; flex-wrap: wrap; gap: 3px; }
#pgext-root .pg-badges a, #pgext-root .pg-badges span { padding: 1px 5px; border-radius: 4px; color: var(--accent-fg); background: var(--accent-wash); font: 600 11px/1.5 var(--font-mono); }
#pgext-root .pg-badges a:hover { background: var(--accent); color: var(--bg); text-decoration: none; }
/* PG-major cell: every active major, bare numbers, green = supported, red = not */
#pgext-root .pgm-cell { display: inline-flex; flex-wrap: wrap; gap: 3px; }
#pgext-root .pgm { min-width: 22px; padding: 1px 5px; border-radius: 4px; text-align: center; font: 650 11px/1.5 var(--font-mono); }
#pgext-root .pgm.on { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
#pgext-root .pgm.off { color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, transparent); opacity: .7; }
#pgext-root .pgm:hover { text-decoration: none; filter: brightness(1.08); }
#pgext-root .version-table td.r-deps { line-height: 1.7; }
#pgext-root .extra-meta { margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-card); }
#pgext-root .extra-meta summary { cursor: pointer; padding: 9px 13px; color: var(--ink-3); font: 11px var(--font-mono); }
#pgext-root .extra-meta .extra-body { position: relative; border-top: 1px solid var(--line); }
#pgext-root .extra-meta .extra-body .chip { position: absolute; top: 9px; right: 11px; z-index: 2; background: var(--bg-card); }
#pgext-root .extra-meta pre { overflow: auto; max-height: 480px; padding: 12px 14px; color: var(--ink-2); font: 11px/1.55 var(--font-mono); }

#pgext-root .version-table { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-card); }
#pgext-root .version-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
#pgext-root .version-table th { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line-2); color: var(--ink-3); background: var(--bg-raise); font: 600 11.5px/1.4 var(--font-mono); letter-spacing: 0.04em; }
#pgext-root .version-table td { padding: 8px 11px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
#pgext-root .version-table tr:last-child td { border-bottom: 0; }
#pgext-root .version-table td.mono { font: 12.5px/1.6 var(--font-mono); }
#pgext-root .version-table td:first-child { color: var(--ink); font-family: var(--font-mono); }

/* package changelog: date / version movement / bilingual note per release batch */
#pgext-root .chlog-table table { min-width: 560px; }
#pgext-root .chlog-table td.chlog-ds { white-space: nowrap; color: var(--ink-3); }
#pgext-root .chlog-table td.chlog-ver { white-space: nowrap; }
#pgext-root .chlog-table td.chlog-note { min-width: 260px; }
#pgext-root .chlog-old { color: var(--ink-3); }
#pgext-root .chlog-arrow { color: var(--ink-3); opacity: .7; margin: 0 5px; }
#pgext-root .chlog-new { color: var(--ink); font-weight: 650; }
#pgext-root .chlog-same { color: var(--ink-2); }
#pgext-root .chlog-tag { display: inline-block; margin-right: 7px; padding: 0 7px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-fg, var(--accent)); font: 650 10.5px/1.7 var(--font-mono); letter-spacing: .05em; vertical-align: 1px; }

/* relation entries render as one grid of navigable extension cards; the
   role (requires / required by / see also) is a label on each card */
#pgext-root .relation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px; }
#pgext-root .relation-grid .rel-role { color: var(--accent-fg); font-weight: 700; }
#pgext-root .relation-grid > a { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 84px; padding: 9px 11px 8px 13px; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: var(--bg-card); }
#pgext-root .relation-grid > a::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--seg, var(--accent)); border-radius: 8px 0 0 8px; opacity: .75; }
#pgext-root .relation-grid > a:hover { border-color: var(--line-2); text-decoration: none; box-shadow: var(--shadow); }
#pgext-root .relation-grid code { color: var(--ink); font-size: 12.5px; font-weight: 650; overflow-wrap: anywhere; }
#pgext-root .relation-grid span { margin-top: 3px; color: var(--ink-2); font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#pgext-root .relation-grid small { margin-top: auto; padding-top: 5px; color: var(--ink-3); font: 10.5px var(--font-mono); }
/* family table: the name column never compresses; the lead extension row
   reads one size up and heavier, no chip */
#pgext-root .family-table .r-name { max-width: none; overflow: visible; white-space: nowrap; }
#pgext-root .family-table tr.lead-row .r-name a { font-size: 15px; font-weight: 750; }

/* "Same Package" subhead with the package name two sizes up */
#pgext-root .section-subhead.sp-head { gap: 12px; }
#pgext-root .sp-pkg { min-width: 0; max-width: 100%; overflow-wrap: anywhere; color: var(--ink); font: 700 19px/1.2 var(--font-mono); }
#pgext-root .sp-pkg:hover { color: var(--accent-fg); text-decoration: none; }

/* dependency analysis: mind-map panel — upstream boxes branch in from the
   left, dependants branch out to the right, connector stubs meet a vertical
   rail on each side of the center box */
#pgext-root .dep-graph { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr); gap: 0 34px; align-items: center; margin-top: 2px; padding-top: 26px; }
#pgext-root .dep-cap { position: absolute; top: 0; color: var(--ink-3); font: 600 10px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
#pgext-root .dep-cap-up { left: 2px; }
#pgext-root .dep-cap-down { right: 2px; }
#pgext-root .dep-col { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; }
#pgext-root .dep-up { align-items: flex-end; }
#pgext-root .dep-down { align-items: flex-start; }
#pgext-root .dep-item {
  position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 6px 13px; max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--seg, var(--line-2)) 40%, var(--line)); border-radius: 8px;
  background: color-mix(in srgb, var(--seg, var(--ink-3)) 6%, var(--bg-card));
  color: var(--ink); font: 600 12.5px var(--font-mono); overflow-wrap: anywhere;
}
#pgext-root .dep-item:hover { text-decoration: none; border-color: var(--seg, var(--accent)); box-shadow: var(--shadow); }
#pgext-root .dep-item.dep-more { color: var(--ink-3); border-style: dashed; background: none; }
#pgext-root .dep-up .dep-item::after { content: ""; position: absolute; left: 100%; top: 50%; width: 17px; height: 1.5px; background: var(--line-2); }
#pgext-root .dep-down .dep-item::before { content: ""; position: absolute; right: 100%; top: 50%; width: 17px; height: 1.5px; background: var(--line-2); }
#pgext-root .dep-up::after { content: ""; position: absolute; right: -17px; top: 16px; bottom: 16px; width: 1.5px; background: var(--line-2); }
#pgext-root .dep-down::before { content: ""; position: absolute; left: -17px; top: 16px; bottom: 16px; width: 1.5px; background: var(--line-2); }
#pgext-root .dep-mid { position: relative; display: flex; justify-content: center; min-width: 0; max-width: 100%; }
#pgext-root .dep-self {
  display: inline-flex; align-items: center; padding: 9px 19px; max-width: min(100%, 320px);
  border: 1.5px solid color-mix(in srgb, var(--seg, var(--accent)) 55%, var(--line-2));
  border-radius: 10px; background: color-mix(in srgb, var(--seg, var(--accent)) 9%, var(--bg-card));
  color: var(--ink); font: 700 14.5px var(--font-mono); box-shadow: var(--shadow); overflow-wrap: anywhere;
}
#pgext-root .dep-graph.has-up .dep-mid::before { content: ""; position: absolute; right: 100%; top: 50%; width: 18px; height: 1.5px; background: var(--line-2); }
#pgext-root .dep-graph.has-down .dep-mid::after { content: ""; position: absolute; left: 100%; top: 50%; width: 18px; height: 1.5px; background: var(--line-2); }
/* arrowheads make the dependency direction explicit: upstream flows into the
   extension, the extension flows into its dependants */
#pgext-root .dep-self { position: relative; }
#pgext-root .dep-graph.has-up .dep-self::before {
  content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  border: 4px solid transparent; border-left: 6px solid var(--line-2); border-right: 0;
}
#pgext-root .dep-down .dep-item::after {
  content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: -1px;
  border: 4px solid transparent; border-left: 6px solid var(--line-2); border-right: 0;
}
#pgext-root .dep-none { min-width: 0; max-width: 100%; overflow-wrap: anywhere; color: var(--ink-3); font-size: 13px; }
#pgext-root .dep-graph > .dep-none:first-child { text-align: right; }
@media (max-width: 760px) {
  #pgext-root .dep-graph { grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: center; }
  #pgext-root .dep-cap { position: static; }
  #pgext-root .dep-up, #pgext-root .dep-down { align-items: center; }
  #pgext-root .dep-up::after, #pgext-root .dep-down::before, #pgext-root .dep-up .dep-item::after, #pgext-root .dep-down .dep-item::before, #pgext-root .dep-graph.has-up .dep-mid::before, #pgext-root .dep-graph.has-down .dep-mid::after, #pgext-root .dep-graph.has-up .dep-self::before, #pgext-root .dep-down .dep-item::after { display: none; }
  #pgext-root .dep-graph > .dep-none:first-child { text-align: center; }
}


#pgext-root .source-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin-bottom: 12px; }
#pgext-root .source-cards a { display: flex; flex-direction: column; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card); }
#pgext-root .source-cards a:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
#pgext-root .source-cards span { color: var(--ink-3); font: 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
#pgext-root .source-cards b { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: 600 11.5px var(--font-mono); }
/* build guidance flows as document copy, no card chrome */
#pgext-root .build-recipe, #pgext-root .build-note { min-width: 0; }
#pgext-root .build-recipe > p, #pgext-root .build-note p { color: var(--ink-2); font-size: 14px; }
#pgext-root .build-note b { font: 600 15px var(--font-display); color: var(--ink); }
#pgext-root .build-note p { margin: 5px 0 10px; }
#pgext-root .build-targets { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 11px 0; color: var(--ink-3); font: 11px var(--font-mono); }
#pgext-root .build-targets > span { display: inline-flex; align-items: center; gap: 6px; }

/* install steps read as one continuous document — headings, prose and
   md-code blocks with no card chrome, matching the usage manual below */
#pgext-root .install-steps { display: grid; min-width: 0; gap: 28px; }
#pgext-root .install-step { min-width: 0; }
#pgext-root .install-step > h3 { margin-bottom: 7px; color: var(--ink); font: 600 17px/1.35 var(--font-display); }
#pgext-root .install-step > p { color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
#pgext-root .install-step > p.step-done { margin: 0; color: var(--good); font-family: var(--font-mono); font-size: 13px; }
#pgext-root .install-step .install-plain { margin-top: 10px; }

#pgext-root .md-code { overflow: hidden; margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-code); box-shadow: var(--shadow); }
#pgext-root .md-codebar { display: flex; align-items: center; min-height: 30px; padding: 4px 8px 4px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); font: 11.5px var(--font-mono); }
#pgext-root .md-codebar button { margin-left: auto; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--ink-2); font: 10px var(--font-mono); }
#pgext-root .md-codebar button:hover { color: var(--ink); border-color: var(--ink-3); background: var(--accent-wash); }
#pgext-root .md-codebar button.ok { color: var(--good); border-color: var(--good); }
#pgext-root .md-code pre { overflow-x: auto; padding: 12px 14px; color: var(--fg-code); font: 13.5px/1.7 var(--font-mono); white-space: pre; }
#pgext-root .md-code.compact { margin: 8px 0 0; }

/* Syntax colours follow the host's actual light or dark code surface. */
#pgext-root .tok-kw { color: var(--pg-link); font-weight: 600; }
#pgext-root .tok-str { color: var(--good); }
#pgext-root .tok-num { color: var(--code-number); }
#pgext-root .tok-cmt { color: var(--ink-2); font-style: italic; }
#pgext-root .tok-var { color: var(--code-variable); }

#pgext-root .resource-links { display: grid; }
#pgext-root .resource-links a { display: grid; grid-template-columns: minmax(76px, max-content) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
#pgext-root .resource-links a:last-child { border-bottom: 0; }
#pgext-root .resource-links a:hover { text-decoration: none; background: var(--accent-wash); }
#pgext-root .resource-links span { color: var(--ink-3); font: 11.5px var(--font-mono); white-space: nowrap; }
#pgext-root .resource-links b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font: 500 11.5px var(--font-mono); }
#pgext-root .resource-links i { color: var(--accent-fg); font-style: normal; }

/* target-free install tabs: light chip tab strip over md-code panes,
   sharing the .install class only for the data-itab pane mechanics */
#pgext-root .install.install-plain { background: transparent; border-radius: 0; overflow: visible; box-shadow: none; }
#pgext-root .install-plain .install-tabs { padding: 0; border-bottom: 0; gap: 6px; }
#pgext-root .install-plain .install-tabs button {
  padding: 4px 14px; border: 1px solid var(--line); border-radius: 7px;
  color: var(--ink-3); background: var(--bg-card); font: 600 11.5px/1.5 var(--font-mono);
}
#pgext-root .install-plain .install-tabs button:hover { color: var(--ink); border-color: var(--line-2); background: var(--bg-raise); }
#pgext-root .install-plain .install-tabs button[aria-selected="true"] { color: var(--accent-fg); border-color: var(--accent); background: var(--accent-wash); font-weight: 700; }

/* package manual */
#pgext-root .pkg-definitions table { min-width: 900px; }
/* unified empty-state / footnote copy across all detail sections */
#pgext-root .empty-note { color: var(--ink-3); font-size: 13.5px; }
#pgext-root .empty-note a { overflow-wrap: anywhere; }
#pgext-root .install-more { margin-top: 12px; color: var(--ink-3); font-size: 12.5px; }

/* hero side: project card + dates, vertically centered against the title block */
#pgext-root .ext-hero-side { gap: 10px; align-self: center; }
#pgext-root .detail-hero .badge-row { min-height: 26px; }
#pgext-root .gh-card {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 17px;
  border: 1px solid var(--line-2); border-radius: 12px; color: inherit;
  background: var(--bg-card); box-shadow: var(--shadow);
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
#pgext-root .gh-card:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
#pgext-root .gh-logo { flex-shrink: 0; display: flex; color: var(--ink); }
#pgext-root .gh-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#pgext-root .gh-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: 650 13.5px var(--font-mono); }
#pgext-root .gh-out { position: absolute; top: 9px; right: 10px; display: flex; color: var(--ink-3); font-style: normal; opacity: .7; }
#pgext-root .gh-card:hover .gh-out { color: var(--accent-fg); opacity: 1; }
#pgext-root .gh-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; }
#pgext-root .gh-stats > span { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font: 11px var(--font-mono); }
#pgext-root .gh-stats svg { color: var(--ink-3); }
#pgext-root .gh-stats b { color: var(--ink); font: 650 12.5px var(--font-mono); }
/* non-GitHub upstream: same card, the bare host instead of counters */
#pgext-root .gh-stats.gh-url { display: block; overflow: hidden; color: var(--ink-3); font: 500 11px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
/* dates in a 2 × 2 grid to use the wide side column well */
#pgext-root .hero-dates {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--bg-card) 72%, transparent);
}
#pgext-root .hero-dates > div { display: flex; flex-direction: column; gap: 1px; padding: 8px 13px 7px; font: 11.5px var(--font-mono); }
#pgext-root .hero-dates > div:nth-child(odd) { border-right: 1px dashed var(--line); }
#pgext-root .hero-dates > div:nth-child(n+3) { border-top: 1px dashed var(--line); }
#pgext-root .hero-dates dt { color: var(--ink-3); font-size: 10px; letter-spacing: .03em; }
#pgext-root .hero-dates dd { color: var(--ink-2); font-weight: 600; }
/* a single trailing date on an odd count spans the full row */
#pgext-root .hero-dates > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }

/* long-form Markdown usage manual */
/* usage renders as one ordinary full-width section of the page */
#pgext-root .usage-prose { min-width: 0; max-width: none; font-size: 17px; line-height: 1.82; overflow-wrap: anywhere; }
#pgext-root .usage-prose > :first-child { margin-top: 0; }
#pgext-root .usage-prose p { margin: 12px 0; }
#pgext-root .usage-prose li { margin: 6px 0; }
#pgext-root .usage-prose ul, #pgext-root .usage-prose ol { margin: 13px 0; padding-left: 26px; }
#pgext-root .usage-prose h2 { margin: 45px 0 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 30px; line-height: 1.24; }
#pgext-root .usage-prose h3 { margin: 32px 0 12px; font-size: 22px; line-height: 1.32; }
#pgext-root .usage-prose h4 { margin: 25px 0 9px; font-size: 17px; }
#pgext-root .usage-prose blockquote { margin: 18px 0; padding: 12px 18px; }
#pgext-root .prose h1, #pgext-root .prose h2, #pgext-root .prose h3, #pgext-root .prose h4, #pgext-root .prose h5, #pgext-root .prose h6 { scroll-margin-top: 8px; }
#pgext-root .prose h1 { font-family: var(--font-display); font-size: 30px; font-weight: 550; margin: 32px 0 13px; }
#pgext-root .prose h5, #pgext-root .prose h6 { font-size: 14px; font-weight: 650; margin: 16px 0 7px; }
#pgext-root .prose hr { height: 1px; margin: 25px 0; border: 0; background: var(--line); }
#pgext-root .prose del { color: var(--ink-3); }
#pgext-root .prose img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 9px; box-shadow: var(--shadow); }
#pgext-root .prose .md-code { margin: 14px 0; }
#pgext-root .prose .md-code pre { margin: 0; border-radius: 0; box-shadow: none; }
#pgext-root .prose .md-code pre code { font-size: 13.5px; }
#pgext-root .md-table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; }
#pgext-root .md-table table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 14px; }
#pgext-root .md-table th { padding: 8px 12px; border-bottom: 1px solid var(--line-2); background: var(--bg-raise); color: var(--ink-3); text-align: left; white-space: nowrap; font: 600 11px var(--font-mono); }
#pgext-root .md-table td { padding: 7px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
#pgext-root .md-table tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  #pgext-root .manual-page { padding-top: 24px; }
  #pgext-root .detail-hero { margin-top: 14px; padding: 23px 20px; border-radius: 14px; }
  #pgext-root .manual-page .section { margin: 44px 0; }
  #pgext-root .manual-page .section > h2 { font-size: 25px; }
  #pgext-root .usage-prose { font-size: 16px; line-height: 1.78; }
  #pgext-root .metadata-grid, #pgext-root .metadata-grid.tri { grid-template-columns: 1fr; }
  #pgext-root .relation-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  #pgext-root .usage-prose h2 { margin-top: 38px; font-size: 27px; }
  #pgext-root .usage-prose h3 { font-size: 21px; }
}

@media (max-width: 420px) {
  #pgext-root .meta-row { grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); padding-left: 10px; padding-right: 10px; }
  #pgext-root .meta-row dt { white-space: normal; overflow-wrap: anywhere; }
  #pgext-root .relation-grid { grid-template-columns: 1fr; }
}

/* PG.CENTER owns the surfaces, typography, links and the effective theme. */
#pgext-root, html[data-theme] #pgext-root {
  --bg: var(--pg-canvas); --bg-card: var(--pg-surface);
  --bg-raise: var(--pg-surface-2); --bg-inset: var(--pg-wash);
  --bg-code: var(--pg-code-bg); --fg-code: var(--pg-ink);
  --ink: var(--pg-ink); --ink-2: var(--pg-ink-2); --ink-3: var(--pg-muted);
  --line: var(--pg-line); --line-2: var(--pg-line-strong);
  --accent: var(--pg-primary); --accent-fg: var(--pg-link-content);
  --accent-wash: var(--pg-wash); --shadow: var(--pg-shadow-sm); --shadow-lift: var(--pg-shadow-md);
  --font-display: var(--pg-font); --font-body: var(--pg-font); --font-mono: var(--pg-font-mono);
  --code-number: #875413; --code-variable: #7a3e93;
  --maxw: 100%; min-width: 0; width: 100%; background: transparent;
  font: 15px/1.6 var(--pg-font); color: var(--pg-ink);
}
#pgext-root .wrap, #pgext-root .wrap.page-wide { max-width: 100%; padding-left: 0; padding-right: 0; }
#pgext-root .hero { padding-top: 28px; }
#pgext-root .hero h1, #pgext-root .page-head h1 { font-weight: 700; }
#pgext-root .hero h1 em { color: var(--pg-heading); font-style: normal; }
#pgext-root .page { padding-top: 28px; }
#pgext-root a:hover { color: var(--pg-link-content-hover); }
#pgext-root .card-cover { color: inherit; }
#pgext-root .hero-visits { display: none; }
#pgext-root .hero h1.oneline, #pgext-root .hero-sub.oneline { white-space: normal; }
html[data-theme="dark"] #pgext-root { --code-number: #e5c07b; --code-variable: #d8a8f0; }
#pgext-root .tip, #pgext-root #hovercard { z-index: 70; }
#pgext-root .about-cols > *, #pgext-root .dims > li { min-width: 0; }
@media (max-width: 680px) {
  #pgext-root .dims { grid-template-columns: minmax(0, 1fr); }
}
#pgext-root .pgext-loading { color: var(--pg-muted); }

/* ================================================================
   PG.CENTER voice. The catalog reads like the rest of the site: IBM
   Plex Sans for every label and control, Plex Mono only for code and
   identifiers, sentence-case labels, flat hairline surfaces, the Docs
   heading scale and rule, and the Docs table header. Category hues stay:
   they carry data. Upstream rules above are kept; this layer restyles.
   ================================================================ */
#pgext-root, html[data-theme] #pgext-root {
  --font-mono: var(--pg-font);
  --font-code: var(--pg-font-mono);
  --shadow: none;
  font-variant-numeric: tabular-nums;
}

/* Code and identifiers keep the monospace face. */
#pgext-root :is(code, kbd, pre, samp, .mono),
#pgext-root :is(.card-name, .ext-head h1, .rows .r-name a, .r-pkg-name, .r-exts a, .card-exts a, .card-sub,
  .sp-pkg, .dep-item, .dep-self, .gh-name, .ns-item b, .hc-title, .hc-sub, .hc-exts a, .gmx-row-name,
  .sql-readout, .boot .line, .boot-err, .files td.f-file, .files td.f-sha, .version-table td:first-child) {
  font-family: var(--font-code);
}

/* Labels: sentence case, no SQL-comment prefix, no tracking. */
#pgext-root .eyebrow { color: var(--pg-ink-2); font: 400 14px/1.5 var(--pg-font); letter-spacing: 0; }
#pgext-root .eyebrow::before { content: none; }
#pgext-root :is(.facet-name b, .active-filters > span, .control-cluster > span:first-child, .footer-col > span,
  .meta-panel h3, .page-toc > span, .dep-cap, .source-cards span, .section > h2) {
  letter-spacing: 0;
  text-transform: none;
}
/* Tracking belonged to the terminal face; Plex Sans is set solid. */
#pgext-root :is(th, .gmx-corner, .gmx-oshead, .attr-chip, .chlog-tag, .md-alert-title, .rows .r-cat, .cat-hero .code) { letter-spacing: 0; }
#pgext-root .gmx-corner { display: flex; color: var(--pg-heading); font: 600 11.5px/1 var(--pg-font); text-transform: lowercase; }
#pgext-root .gmx-corner::first-letter { text-transform: uppercase; }
#pgext-root .gmx-corner-sub { color: var(--pg-muted); font-size: 11px; font-weight: 500; }
#pgext-root .gmx-search { border-color: var(--pg-line-strong); border-radius: var(--pg-radius-sm); background: var(--pg-surface); }
#pgext-root .gmx-search:focus-within { border-color: var(--pg-blue); box-shadow: 0 0 0 3px rgba(var(--pg-blue-rgb), 0.16); }
#pgext-root .gmx-search > span { width: 15px; height: 15px; flex: none; overflow: hidden; color: transparent; font-size: 0; background: var(--pg-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------------------------------------------------------------- hero */
#pgext-root .hero { padding-top: 44px; }
#pgext-root .hero h1, #pgext-root .page-head h1, #pgext-root .gmx-titleline h1 {
  margin: 10px 0 12px;
  color: var(--pg-heading);
  font: 700 clamp(28px, 1.6vw + 14px, 34px)/1.18 var(--pg-font);
  letter-spacing: -0.015em;
}
#pgext-root .hero-sub, #pgext-root .page-head .lede { color: var(--pg-ink-2); font-size: 16px; line-height: 1.65; }
#pgext-root .hero-stats { margin-top: 28px; }
#pgext-root .hero-stats .num { font: 600 24px/1.3 var(--pg-font); letter-spacing: -0.01em; }
#pgext-root .hero-stats .lbl { color: var(--pg-muted); font-size: 13px; }

/* The search field is the site's search field: an icon, plain text, one ring. */
#pgext-root .searchbox { gap: 10px; padding: 11px 14px 11px 16px; border-color: var(--pg-line-strong); border-radius: var(--pg-radius); }
#pgext-root .searchbox:focus-within { border-color: var(--pg-blue); box-shadow: 0 0 0 3px rgba(var(--pg-blue-rgb), 0.16); }
#pgext-root .searchbox .prompt { width: 18px; height: 18px; flex: none; overflow: hidden; color: transparent; font-size: 0; background: var(--pg-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
#pgext-root .searchbox input { font: 400 16px/1.5 var(--pg-font); }
#pgext-root .searchbox input::placeholder { color: var(--pg-muted); opacity: 1; }
#pgext-root .searchbox kbd { border-bottom-width: 1px; font: 500 11px/1.5 var(--pg-font-mono); }
#pgext-root .sql-readout { margin-top: 10px; font-size: 12.5px; }
#pgext-root .sql-readout :is(.kw, .lit) { color: var(--pg-ink-2); }
#pgext-root .sql-readout .rcount { font-family: var(--pg-font); font-weight: 600; }

/* -------------------------------------------------------------- facets */
#pgext-root .facet-panel { border-radius: var(--pg-radius); background: var(--pg-surface); box-shadow: none; }
#pgext-root .facet-row { grid-template-columns: 112px minmax(0, 1fr); padding: 12px 16px; }
#pgext-root .facet-name b { color: var(--pg-heading); font: 600 13px/1.4 var(--pg-font); }
#pgext-root .facet-name span { color: var(--pg-muted); font-size: 11.5px; }
#pgext-root .facet-btn, #pgext-root .facet-more, #pgext-root .chip, #pgext-root .os-cell {
  border-radius: 999px;
  font-family: var(--pg-font);
  font-size: 13px;
}
#pgext-root .facet-btn { min-height: 28px; padding: 3px 11px; border-color: var(--pg-line); }
#pgext-root .facet-btn:hover { border-color: var(--pg-line-strong); background: var(--pg-wash); }
#pgext-root .facet-btn[aria-pressed="true"] { border-color: var(--pg-ink-2); color: var(--pg-heading); background: var(--pg-wash-strong); font-weight: 600; }
#pgext-root .facet-btn small { color: var(--pg-muted); font: 400 11.5px/1 var(--pg-font); }
#pgext-root .facet-btn.category code { font: 600 12.5px/1 var(--pg-font); letter-spacing: 0.01em; }
/* A pill cannot stretch across wrapped rows; it sits at the top instead. */
#pgext-root :is(.category-facet, .license-facet) .facet-btn.any { align-self: start; }
#pgext-root .facet-more { font-weight: 600; color: var(--pg-link-content); }
#pgext-root .facet-panel > footer { background: var(--pg-surface-2); }
#pgext-root .facet-panel > footer span { font-size: 12px; }
#pgext-root .active-filters > span { font-size: 12.5px; }
#pgext-root .active-filters button { border-radius: 999px; border-color: var(--pg-line-strong); background: var(--pg-surface); font-size: 12.5px; }
#pgext-root .dimension-link { border-radius: 999px; font: 600 12.5px var(--pg-font); color: var(--pg-link-content); }

/* ----------------------------------------------------- toolbar & wall */
#pgext-root .catalog-toolbar { border-radius: var(--pg-radius); }
#pgext-root .result-summary strong { font: 700 18px var(--pg-font); }
#pgext-root .result-summary span, #pgext-root .control-cluster > span:first-child { color: var(--pg-muted); font-size: 12.5px; }
#pgext-root .sortctl, #pgext-root .viewtoggle { border-color: var(--pg-line-strong); border-radius: var(--pg-radius-sm); }
#pgext-root .sortctl > span, #pgext-root .viewtoggle button { font-size: 13px; }
#pgext-root .sortctl > select { font: 600 13px var(--pg-font); background-color: var(--pg-wash); }
#pgext-root .viewtoggle button[aria-pressed="true"] { background: var(--pg-wash-strong); }
#pgext-root .ecard { border-radius: var(--pg-radius); padding: 14px 16px 12px; }
#pgext-root .card-cover { border-radius: var(--pg-radius); }
#pgext-root .ecard::before { border-radius: var(--pg-radius) 0 0 var(--pg-radius); }
#pgext-root .ecard:hover, #pgext-root .cat-card:hover, #pgext-root .dim-card:hover, #pgext-root .gh-card:hover {
  transform: none;
  box-shadow: var(--pg-shadow-sm);
}
#pgext-root .card-name { font-size: 14.5px; font-weight: 600; }
#pgext-root .card-gh { font: 500 12px var(--pg-font); }
#pgext-root .card-sub { font-size: 12px; }
#pgext-root .card-desc { font-size: 13.5px; line-height: 1.55; }
#pgext-root .tg { border-radius: 999px; padding: 0 8px; font: 500 11.5px/1.65 var(--pg-font); }

/* Tables use the Docs header: a quiet tinted row in the reading face. */
#pgext-root :is(.rows, .version-table, .md-table, .files, .dimtable, .matrix-scroll, .prose .rows-scroll) { border-radius: 10px; box-shadow: none; }
#pgext-root :is(.rows th, .version-table th, .md-table th, .files th, .fmx th, .matrix th, .dimtable th, .prose th) {
  border-bottom-color: var(--pg-line-strong);
  background: var(--pg-surface-2);
  color: var(--pg-heading);
  font: 600 13px/1.4 var(--pg-font);
  letter-spacing: 0;
}
#pgext-root .rows .r-name a { font-size: 13.5px; font-weight: 600; }
#pgext-root :is(.rows .r-mono, .rows .r-num, .dimtable .n) { font-size: 13px; }

/* ------------------------------------------------- page scaffolding */
#pgext-root .page { padding-top: 32px; }
#pgext-root .crumbs { gap: 6px; color: var(--pg-line-strong); font: 600 13px/1.5 var(--pg-font); }
#pgext-root .crumbs a { color: var(--pg-muted); }
#pgext-root .crumbs a:hover { color: var(--pg-link-content); text-decoration: none; }
#pgext-root .crumbs .sep { opacity: 1; }
#pgext-root .crumbs .here { color: var(--pg-ink-2); }
/* Section headings follow #pgContentWrap h2: Docs scale, one hairline. */
#pgext-root .section > h2, #pgext-root .manual-page .section > h2 {
  gap: 0.75em;
  margin-bottom: 18px;
  color: var(--pg-heading);
  font: 700 1.45rem/1.25 var(--pg-font);
  letter-spacing: -0.005em;
}
#pgext-root .manual-page .section > h2::before { content: none; }
#pgext-root .section > h2::after, #pgext-root .manual-page .section > h2::after, #pgext-root .dimension-group > header::after { height: 1px; background: var(--pg-line); }
#pgext-root .section-subhead { color: var(--pg-heading); font: 600 1.05rem/1.4 var(--pg-font); }
#pgext-root .section-lede { font-size: 15px; }
#pgext-root .dimension-group > header h2 { font: 700 1.2rem/1.3 var(--pg-font); }

/* --------------------------------------------- extension and package */
#pgext-root .manual-page { padding-top: 28px; }
#pgext-root .detail-hero {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  box-shadow: none;
}
#pgext-root .detail-hero::after { content: none; }
#pgext-root .detail-kicker { display: inline-block; color: var(--pg-muted); font: 600 13px/1.4 var(--pg-font); letter-spacing: 0; text-transform: lowercase; }
#pgext-root .detail-kicker::first-letter { text-transform: uppercase; }
#pgext-root .state-chip { font: 500 13px var(--pg-font); letter-spacing: 0; }
#pgext-root .ext-head h1 { font-size: clamp(28px, 1.8vw + 12px, 36px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; }
#pgext-root .ext-head .ver { color: var(--pg-muted); font: 500 15px var(--pg-font); }
#pgext-root .ext-tagline { color: var(--pg-ink-2); font: 400 18px/1.55 var(--pg-font); }
#pgext-root .badge { border-radius: 999px; padding: 3px 11px; font: 500 12.5px var(--pg-font); }
#pgext-root .badge.lbl .bk { color: var(--pg-muted); font-size: 12px; font-weight: 400; }
#pgext-root .gh-card { border-color: var(--pg-line); border-radius: var(--pg-radius); }
#pgext-root .gh-card:hover { border-color: var(--pg-line-strong); }
#pgext-root .gh-name { font-size: 13.5px; font-weight: 600; }
#pgext-root .gh-stats > span, #pgext-root .gh-stats.gh-url { font-size: 12px; }
#pgext-root .hero-dates { border-radius: var(--pg-radius-sm); background: transparent; }
#pgext-root .hero-dates > div { font-size: 13px; }
#pgext-root .hero-dates dt { color: var(--pg-muted); font-size: 12px; letter-spacing: 0; }
#pgext-root .meta-panel { border-radius: 10px; }
#pgext-root .meta-panel h3 { padding: 10px 14px; border-bottom-color: var(--pg-line-strong); background: var(--pg-surface-2); color: var(--pg-heading); font: 600 13px/1.4 var(--pg-font); }
#pgext-root .meta-row dt { color: var(--pg-muted); font: 400 13px/1.5 var(--pg-font); }
#pgext-root .meta-row dd { color: var(--pg-ink); font-size: 13.5px; }
#pgext-root .bool { font: 500 12.5px/1.4 var(--pg-font); }
#pgext-root .catalog-quote { font-style: normal; color: var(--pg-ink-2); }
#pgext-root .extra-meta { border-radius: var(--pg-radius-sm); }
#pgext-root .extra-meta summary { color: var(--pg-ink-2); font: 500 12.5px var(--pg-font); }
#pgext-root .relation-grid > a, #pgext-root .source-cards a { border-radius: 10px; }
#pgext-root .relation-grid small, #pgext-root .source-cards span { font-size: 11.5px; }
#pgext-root .dep-cap { font: 600 12px/1.4 var(--pg-font); }

/* "On this page", as in Wiki and component readers. */
#pgext-root .page-toc > span { color: var(--pg-ink-2); font: 500 12px/1.4 var(--pg-font); }
#pgext-root .page-toc a { color: var(--pg-muted); font: 600 13px/1.375 var(--pg-font); }
#pgext-root .page-toc a:hover, #pgext-root .page-toc a[aria-current="location"] { border-color: var(--pg-heading); color: var(--pg-heading); background: transparent; }
@media (min-width: 1024px) {
  #pgext-root .page-toc { gap: 0; border-left: 1px solid var(--pg-line); }
  #pgext-root .page-toc > span { padding: 0 0 10px 14px; }
  #pgext-root .page-toc a { margin-left: -1px; padding: 4px 0 4px 14px; border-left: 1px solid transparent; border-radius: 0; }
}

/* Code: the site's code frame — the reading surface, a hairline, no shadow. */
#pgext-root .md-code { border-radius: var(--pg-radius-sm); box-shadow: none; }
#pgext-root .md-codebar { color: var(--pg-muted); font: 500 12px var(--pg-font); }
#pgext-root .md-codebar button { border-radius: 6px; font: 500 11.5px var(--pg-font); }
#pgext-root .install-plain .install-tabs button { border-radius: 999px; font: 500 12.5px/1.5 var(--pg-font); }
#pgext-root .install-plain .install-tabs button[aria-selected="true"] { border-color: var(--pg-ink-2); color: var(--pg-heading); background: var(--pg-wash-strong); font-weight: 600; }
#pgext-root .install-step > h3 { font: 600 1.05rem/1.4 var(--pg-font); }
#pgext-root .install-step > p.step-done { font-family: var(--pg-font); }

/* Long-form usage reads like the manuals. */
#pgext-root .usage-prose { font-size: 16px; line-height: 1.75; font-variant-numeric: normal; }
#pgext-root :is(.prose, .usage-prose) :is(h2, h3, h4) { color: var(--pg-heading); font-family: var(--pg-font); letter-spacing: -0.005em; }
#pgext-root :is(.prose, .usage-prose) h2 { overflow: hidden; margin: 2em 0 0.75em; padding: 0; border: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.25; }
#pgext-root :is(.prose, .usage-prose) h2::after { content: ""; display: inline-block; width: 100%; height: 1px; margin: 0 -100% 0 0.75em; vertical-align: middle; background: var(--pg-line); }
#pgext-root :is(.prose, .usage-prose) h3 { margin: 1.7em 0 0.6em; font-size: 1.2rem; font-weight: 600; }
#pgext-root :is(.prose, .usage-prose) h4 { font-size: 1.02rem; font-weight: 600; }
#pgext-root .prose p, #pgext-root .prose li { color: var(--pg-ink); }
#pgext-root .prose a { font-weight: 600; text-decoration: none; }
#pgext-root .prose code { padding: 0.1em 0.35em; border-radius: 5px; background: var(--pg-code-inline-bg); color: inherit; font-size: 0.9em; }
#pgext-root .prose pre { border: 1px solid var(--pg-line); border-radius: var(--pg-radius-sm); box-shadow: none; }
#pgext-root .prose img { box-shadow: none; border: 1px solid var(--pg-line); }
#pgext-root .prose blockquote, #pgext-root .md-alert {
  border-left: 3px solid var(--pg-line-strong);
  border-radius: 0 var(--pg-radius-sm) var(--pg-radius-sm) 0;
  background: var(--pg-wash);
  color: var(--pg-ink-2);
  font-style: normal;
}
#pgext-root .md-alert > .md-alert-title { font: 600 13px var(--pg-font); letter-spacing: 0; }
#pgext-root :is(.md-alert-tip, .md-alert-important, .md-alert-warning, .md-alert-caution) { background: var(--pg-wash); }
#pgext-root .notice { border-radius: var(--pg-radius-sm); }

/* ---------------------------------------------- index, matrix, about */
#pgext-root .cat-card, #pgext-root .dim-card { border-radius: var(--pg-radius); }
#pgext-root .dim-card::before { content: none; }
#pgext-root .cat-card b { font-size: 12.5px; }
/* Codes on cards are labels: no inline-code chip from the site's prose rules.
   main.css forces code to 0.9rem and the manual code colour with !important;
   outside long-form prose the catalog's codes follow their label instead. */
#pgext-root code:not(:is(.prose, .usage-prose) code) { margin: 0; font-size: 0.92em !important; color: inherit !important; }
#pgext-root :is(.cat-card, .facet-btn.category) code { color: var(--seg, var(--pg-heading)) !important; }
#pgext-root :is(.cat-card, .dim-card, .facet-btn, .facet-name, .relation-grid) code { padding: 0; border-radius: 0; background: none; }
#pgext-root .cat-card code { font: 600 13px/1.4 var(--pg-font); letter-spacing: 0.01em; }
#pgext-root .dim-card .dim-field code { color: var(--pg-ink-2) !important; font: 500 12px var(--pg-font-mono); }
#pgext-root .dim-card .d { color: var(--pg-ink-2); font-weight: 400; }
#pgext-root .cat-card span, #pgext-root .dim-card .dim-field, #pgext-root .browse-stats span, #pgext-root .dim-source { font-size: 12px; }
#pgext-root .dim-card .t { font-size: 16px; font-weight: 600; }
#pgext-root .dim-toolbar input, #pgext-root .gmx-search input { font: 400 14px var(--pg-font); }
#pgext-root .dim-toolbar > span, #pgext-root .gmx-showing, #pgext-root .gmx-hint, #pgext-root .gmx-source { font-size: 12px; }
#pgext-root .gmx-legend-item { font-size: 12px; border-radius: 999px; padding: 4px 10px; }
#pgext-root .gmx-api { border-radius: 999px; font-size: 12px; }
#pgext-root .mx-card { border-radius: var(--pg-radius); }
#pgext-root .about-cols h3 { font: 700 1.2rem/1.35 var(--pg-font); }
#pgext-root .roadmap .tag { border-radius: 999px; font: 500 11.5px var(--pg-font); }
#pgext-root .tip { font: 400 12.5px/1.5 var(--pg-font); }
#pgext-root .hc-facts dt, #pgext-root .hc-links span { font-size: 12px; }
@media (max-width: 760px) {
  #pgext-root .hero { padding-top: 28px; }
  #pgext-root .facet-row { grid-template-columns: 1fr; }
  #pgext-root .ext-head h1 { font-size: 26px; }
  #pgext-root :is(.prose, .usage-prose) h2 { font-size: 1.3rem; }
}
