/* ThinEmbed results pages (/query-encoders/, /cs/query-encoders/): the look of the ThinCtx results page
   (moravian.ai/constant-memory): its tokens, fonts, panels, tables and notes. Page-local; site.css is not used here. */
:root {
  --accent: #2f6fb3;
  --color-bg: #f6f7f9; --color-panel: #ffffff; --color-fg: #1b1f27; --color-fg-muted: #5d6676; --color-border-line: #dfe3ea;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --fs-caption: .8125rem; --fs-body: .9375rem; --fs-heading: 1.125rem; --fs-title: 1.75rem;
  --fw-medium: 500;
  --gap-xs: .375rem; --gap-sm: .625rem; --gap-md: 1rem; --gap-lg: 1.5rem;
  --pad-xs: .375rem; --pad-sm: .625rem; --pad-lg: 1.25rem; --radius: 10px;
  --code-bg: #f1f3f6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --accent: #79a8e6;
  --color-bg: #12151b; --color-panel: #1a1e26; --color-fg: #e7eaf0; --color-fg-muted: #9aa3b2; --color-border-line: #2c323d;
  --code-bg: #12151b;
  color-scheme: dark; } }
html, body { margin: 0; background: var(--color-bg); color: var(--color-fg); font-family: var(--font-sans); }
body { padding-block: 2rem 3rem; padding-inline: max(16px, 4vw); }
b, strong { font-weight: 600; }
a { color: var(--accent); }

/* the small header and footer shared with the ThinCtx results page */
.site-top, .site-foot { max-width: 72rem; margin-inline: auto; font-size: var(--fs-caption); color: var(--color-fg-muted); }
.site-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--gap-xs) var(--gap-sm); margin-bottom: var(--gap-lg); }
.site-top .home { color: var(--color-fg); font-weight: 600; text-decoration: none; }
.site-top .home:hover { text-decoration: underline; }
.site-top .lang { margin-left: auto; }
.site-top .lang a { color: var(--color-fg-muted); text-decoration: none; padding: 0 .2rem; }
.site-top .lang a[aria-current] { color: var(--color-fg); font-weight: 600; }
.site-foot { margin-top: var(--gap-lg); }

/* panels */
.rp { display: grid; gap: var(--gap-lg); max-width: 72rem; margin-inline: auto; }
.rp h1 { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-title); margin: 0; text-wrap: balance; }
.rp h2 { font-size: var(--fs-heading); font-weight: var(--fw-medium); margin: 0 0 var(--gap-xs); text-wrap: balance; }
.rp .lede { font-size: var(--fs-body); line-height: 1.55; max-width: 62ch; margin: var(--gap-sm) 0 0; }
.rp .note { color: var(--color-fg-muted); font-size: var(--fs-caption); line-height: 1.5; margin: 0 0 var(--gap-sm); max-width: 70ch; }
.rp .note:last-child { margin-bottom: 0; }
.rp .card { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--radius); padding: var(--pad-lg); min-width: 0; scroll-margin-top: 1rem; }
.rp .prose p { font-size: var(--fs-body); line-height: 1.6; max-width: 66ch; margin: 0 0 var(--gap-sm); }
.rp .prose ul { margin: 0 0 var(--gap-sm); padding-left: 1.2rem; max-width: 66ch; display: grid; gap: var(--gap-xs); }
.rp .prose li { font-size: var(--fs-body); line-height: 1.5; }

/* tables */
.rp .scroll { overflow-x: auto; }
.rp table { border-collapse: collapse; width: 100%; font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.rp th, .rp td { padding: var(--pad-xs) var(--pad-sm); text-align: right; border-bottom: 1px solid var(--color-border-line); white-space: nowrap; }
.rp th:first-child, .rp td:first-child { text-align: left; white-space: normal; min-width: 14rem; }
.rp thead th { color: var(--color-fg-muted); font-weight: var(--fw-medium); vertical-align: bottom; }
.rp tr.mine td { color: var(--color-fg); font-weight: var(--fw-medium); }
.rp td.ref { color: var(--color-fg-muted); }
.rp .text-table th, .rp .text-table td { text-align: left; white-space: normal; vertical-align: top; min-width: 8rem; }
.rp .text-table td:first-child { font-weight: var(--fw-medium); min-width: 12rem; }
.rp .mono, .rp code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }

/* code */
.rp pre { background: var(--code-bg); border: 1px solid var(--color-border-line); border-radius: 8px; padding: var(--pad-sm) var(--pad-lg); overflow-x: auto; font-size: var(--fs-caption); line-height: 1.5; margin: 0 0 var(--gap-sm); }
.rp pre code { font-size: inherit; }

/* links */
.rp .links { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--gap-xs); font-size: var(--fs-body); }

@media (max-width: 520px) {
  .rp th:first-child, .rp td:first-child { min-width: 9rem; }
  .rp .text-table td:first-child { min-width: 9rem; }
}
