/* Klaris Developers: clean and quiet, in the style of developer sites like OpenAI's.
   White header with the name in bold, a light grey strip of tabs, grouped side menus,
   a soft highlight on the open page, and larger text. System fonts only. */

:root {
  --md-text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --md-code-font: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --kl-ink: #0d0d0d;
  --kl-muted: #6b6b6b;
  --kl-line: #e5e5e5;
  --kl-band: #f5f5f5;
  --kl-hover: #efefef;
}
[data-md-color-scheme="slate"] {
  --kl-ink: #ececec;
  --kl-muted: #a3a3a3;
  --kl-line: #2e2e2e;
  --kl-band: #171717;
  --kl-hover: #262626;
  --md-default-bg-color: #0d0d0d;
}
[data-md-color-scheme="default"] { --md-typeset-a-color: var(--kl-ink); }
[data-md-color-scheme="slate"] { --md-typeset-a-color: var(--kl-ink); }

/* Header: white, no logo, the site's name in bold, always (not swapped for the page title). */
.md-header { background: var(--md-default-bg-color); color: var(--kl-ink); box-shadow: none; border-bottom: 1px solid var(--kl-line); }
.md-header__inner { padding: .5rem .8rem; }
.md-header__button.md-logo { display: none; }
.md-header__title { margin-left: .4rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.md-header__title--active .md-header__topic:first-child { opacity: 1; transform: none; z-index: 1; pointer-events: auto; }
.md-header__topic + .md-header__topic { display: none; }
.md-search__form { background: var(--kl-band); border-radius: 999px; }
.md-search__input::placeholder { color: var(--kl-muted); }

/* Tabs: a light grey strip, the open tab underlined in black. */
.md-tabs { background: var(--kl-band); color: var(--kl-ink); border-bottom: 1px solid var(--kl-line); }
.md-tabs__list { display: flex; justify-content: center; }
.md-tabs__item { height: 2.6rem; padding: 0 .8rem; }
.md-tabs__link { margin-top: .85rem; font-size: .75rem; opacity: 1; color: var(--kl-muted); }
.md-tabs__item--active .md-tabs__link { color: var(--kl-ink); font-weight: 600; }
.md-tabs__item--active { box-shadow: inset 0 -2px 0 var(--kl-ink); }
.md-tabs__link:hover { color: var(--kl-ink); }

/* Left menu: bold group names, plain links, a soft rounded highlight on the open page. */
.md-nav { font-size: .72rem; }
.md-nav--primary .md-nav__item--section > .md-nav__link { color: var(--kl-ink); font-weight: 600; margin-top: 1.1rem; }
.md-nav__link { color: var(--kl-ink); padding: .3rem .6rem; border-radius: 8px; margin-top: .1rem; }
.md-nav__link:hover { background: var(--kl-hover); color: var(--kl-ink); }
.md-nav--primary .md-nav__link--active { background: var(--kl-hover); color: var(--kl-ink); font-weight: 500; }
.md-nav--primary .md-nav__item--section > .md-nav__link,
.md-nav--primary .md-nav__item--section > .md-nav__link:hover { background: none; cursor: default; }
.md-nav--primary .md-nav__title { display: none; }

/* Right "on this page": a thin line, the current heading marked. */
.md-sidebar--secondary .md-nav { border-left: 1px solid var(--kl-line); }
.md-sidebar--secondary .md-nav__link { color: var(--kl-muted); border-radius: 0; background: none; padding: .2rem .8rem; }
.md-sidebar--secondary .md-nav__link--active { color: var(--kl-ink); box-shadow: inset 2px 0 0 var(--kl-ink); }
.md-sidebar--secondary .md-nav__title { color: var(--kl-ink); font-weight: 600; background: none; box-shadow: none; }

/* Reading: larger text, a big plain title, underlined links. */
.md-typeset { font-size: .85rem; line-height: 1.7; color: var(--kl-ink); }
.md-typeset h1 { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; color: var(--kl-ink); margin-bottom: 1rem; }
.md-typeset h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; margin-top: 2rem; }
.md-typeset h3 { font-size: 1rem; font-weight: 600; }
.md-typeset a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.md-typeset a:hover { color: var(--kl-muted); }
.md-typeset .headerlink { text-decoration: none; }
.md-typeset code { border-radius: 6px; font-size: .8em; overflow-wrap: anywhere; }
.md-typeset pre > code { font-size: .8em; }

/* Tables: light lines, long text wraps; field and parameter names stay whole. */
.md-typeset table:not([class]) { display: table; width: 100%; font-size: .78rem; border: 1px solid var(--kl-line); border-radius: 10px; box-shadow: none; }
.md-typeset table:not([class]) th { background: var(--kl-band); font-weight: 600; }
.md-typeset table:not([class]) td { vertical-align: top; border-top: 1px solid var(--kl-line); }
.md-typeset table:not([class]) td:first-child code { white-space: nowrap; overflow-wrap: normal; }

/* API cards on the home page. */
.md-typeset .grid.cards > ul > li { border: 1px solid var(--kl-line); border-radius: 14px; padding: 1.2rem 1.4rem; box-shadow: none; }
.md-typeset .grid.cards > ul > li:hover { border-color: var(--kl-muted); box-shadow: none; }

/* Code tabs and notes in the same quiet style. */
.md-typeset .tabbed-labels > label { font-size: .75rem; }
.md-typeset .admonition, .md-typeset details { border-radius: 10px; border-width: 1px; box-shadow: none; font-size: .8rem; }
