/* whichlib site: one stylesheet for Home, Docs, Pricing and 404.
   Tokens match site/repos/index.html (the dashboard) so /repos/ looks like the rest. */
:root {
  --bg: #f5f7f9; --surface: #ffffff; --text: #1a1f26; --muted: #5b6673;
  --border: #d9dfe6; --border-strong: #b9c2cc; --accent: #0b6e7a; --accent-soft: #d6eef0;
  --star: #b7791f; --tier-strong-bg: #dcefe1; --tier-strong-text: #1d5a30; --focus: #0b6e7a;
  --on-accent: #ffffff; --code-bg: #eef2f5; --shadow: 0 1px 2px rgba(20, 30, 40, .06);
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1218; --surface: #151b23; --text: #e4e9ef; --muted: #8b97a5;
    --border: #26303b; --border-strong: #3a4653; --accent: #33b3c0; --accent-soft: #123c42;
    --star: #e0a437; --tier-strong-bg: #173a24; --tier-strong-text: #9ad7ab; --focus: #33b3c0;
    --on-accent: #0e1218; --code-bg: #1b232d; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1218; --surface: #151b23; --text: #e4e9ef; --muted: #8b97a5;
  --border: #26303b; --border-strong: #3a4653; --accent: #33b3c0; --accent-soft: #123c42;
  --star: #e0a437; --tier-strong-bg: #173a24; --tier-strong-text: #9ad7ab; --focus: #33b3c0;
  --on-accent: #0e1218; --code-bg: #1b232d; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 12px 14px; border-radius: 8px; overflow-x: auto; margin: 0; }
pre code { background: none; padding: 0; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.site-nav .brand { font-weight: 600; color: var(--text); text-decoration: none; margin-right: auto; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 28px 0 40px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
h2 { font-size: 21px; margin: 36px 0 10px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; max-width: 46em; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }
.table-scroll td:first-child a { white-space: nowrap; }
.tier { white-space: nowrap; display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 13px; background: var(--accent-soft); color: var(--text); }
.tier.strong { background: var(--tier-strong-bg); color: var(--tier-strong-text); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tabs button { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cmd { display: flex; gap: 8px; align-items: stretch; margin: 6px 0; }
.cmd pre { flex: 1; min-width: 0; }
.copy { font: inherit; font-size: 13px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }

.site-footer { border-top: 1px solid var(--border); padding: 18px 0 32px; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
@media (max-width: 560px) { h1 { font-size: 25px; } .lead { font-size: 17px; } }
