/*
 * sky.css — the sky system's tints over the docs (as on developers.tringify.com and the stores): sky blue and
 * lime accents for the current place, blue-tinted code and tables, mono section labels. Loaded last; colours only,
 * no layout. Dark values first, light values under [data-theme="light"].
 */
:root {
  --sky-blue: #2f74e0;
  --sky-deep: #0037c9;
  --sky-lime: #d6f46b;
  --sky-accent: var(--sky-lime);
  --sky-tint: rgb(47 116 224 / 0.14);
  --sky-tint-strong: rgb(47 116 224 / 0.22);
  --sky-code-bg: rgb(47 116 224 / 0.16);
  --sky-code-ink: #cfe5ff;
  --sky-link-line: rgb(111 176 255 / 0.55);
  --sky-header-glow: radial-gradient(70% 140% at 0% 0%, rgb(47 116 224 / 0.18), transparent 60%), radial-gradient(40% 120% at 100% 0%, rgb(214 244 107 / 0.06), transparent 60%);
}
:root[data-theme="light"] {
  --sky-accent: var(--sky-blue);
  --sky-tint: #eaf3ff;
  --sky-tint-strong: #dceafe;
  --sky-code-bg: #e4f0ff;
  --sky-code-ink: #0037c9;
  --sky-link-line: rgb(47 116 224 / 0.45);
  --sky-header-glow: radial-gradient(70% 140% at 0% 0%, rgb(47 116 224 / 0.10), transparent 60%), radial-gradient(40% 120% at 100% 0%, rgb(214 244 107 / 0.18), transparent 60%);
}

/* Header and product bar: a faint sky glow, the current product underlined in the accent. */
.site-header { background-image: var(--sky-header-glow); }
.catalog-link.is-current { border-bottom-color: var(--sky-accent); }
.catalog-link.is-current svg { color: var(--sky-accent); }

/* Sidebar: mono section labels; the current page as a tinted pill with the accent rail. */
.sidebar-group-title { font-family: var(--font-mono); letter-spacing: 0.14em; }
.sidebar-item { border-radius: 0 10px 10px 0; }
.sidebar-item:hover { background: var(--sky-tint); }
.sidebar-item.is-active { background: var(--sky-tint); border-left-color: var(--sky-accent); }

/* On this page: the current heading on the accent rail. */
.toc-item.is-active { border-left-color: var(--sky-accent); }

/* Article: sky-blue link underlines, blue-tinted inline code, tables with a tinted head and rounded frame. */
.docs-article-body a { text-decoration-color: var(--sky-link-line); }
.docs-article-body a:hover { text-decoration-color: var(--sky-accent); }
.docs-article-body :not(pre) > code { background: var(--sky-code-bg); color: var(--sky-code-ink); }
.block-table-wrapper { border-radius: 14px; }
.block-table th, .api-params-table th, .endpoint-param-table th, .csv-table thead th { background: var(--sky-tint); }

/* Search: the accent ring on focus. */
.site-search-btn:focus-visible, .site-search-btn:hover { border-color: var(--sky-accent); }
