/* docs.stackship.se chrome. Page bodies are styled by @stackship/docs's docs.css (.stackship-doc). */
:root {
  --foreground: #1f2328;
  --muted-foreground: #59636e;
  --border: #d1d9e0;
  --muted: #f6f8fa;
  --primary: #0969da;
  --background: #ffffff;
  --ds-accent-bg: #ddf4ff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --foreground: #e6edf3;
    --muted-foreground: #9198a1;
    --border: #3d444d;
    --muted: #151b23;
    --primary: #4493f8;
    --background: #0d1117;
    --ds-accent-bg: #121d2f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--primary); }
.ds-skip { position: absolute; left: -9999px; }
.ds-skip:focus { left: 1rem; top: 0.5rem; z-index: 10; background: var(--background); padding: 0.5rem; }

.ds-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.75rem 1.5rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.ds-brand { font-weight: 600; color: var(--foreground); text-decoration: none; }
.ds-search { flex: 1 1 18rem; min-width: 12rem; max-width: 36rem; }
.ds-version { font-size: 0.875rem; color: var(--muted-foreground); }
.ds-version select { font: inherit; color: var(--foreground); background: var(--background); border: 1px solid var(--border); border-radius: 6px; padding: 0.125rem 0.25rem; }
.ds-lang { font-size: 0.875rem; }

/* Pagefind UI search (pagefind-ui.css is loaded before this file). Its variables are set on
   .ds-search from the site tokens, so the field and results follow light and dark mode. */
.ds-search {
  position: relative;
  --pagefind-ui-scale: 0.8;
  --pagefind-ui-primary: var(--primary);
  --pagefind-ui-text: var(--foreground);
  --pagefind-ui-background: var(--background);
  --pagefind-ui-border: var(--border);
  --pagefind-ui-tag: var(--muted);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 6px;
  --pagefind-ui-font: inherit;
  --ds-search-height: 2.25rem;
}
.ds-search .pagefind-ui__form::before {
  top: calc((var(--ds-search-height) - 18px * var(--pagefind-ui-scale)) / 2);
  left: 0.75rem;
  background-color: var(--muted-foreground);
  opacity: 1;
}
.ds-search .pagefind-ui__search-input {
  height: var(--ds-search-height);
  padding: 0 4.5rem 0 2.25rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--foreground);
  background-color: var(--muted);
}
.ds-search .pagefind-ui__search-input::placeholder { color: var(--muted-foreground); opacity: 1; }
.ds-search .pagefind-ui__search-input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }
.ds-search .pagefind-ui__search-clear {
  top: 1px; right: 1px;
  height: calc(var(--ds-search-height) - 2px);
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  background-color: var(--muted);
  border: 0;
}
.ds-search .pagefind-ui__search-clear:hover { color: var(--foreground); }
/* Results open as a dropdown under the field instead of pushing the header down. */
.ds-search .pagefind-ui__drawer:not(.pagefind-ui__hidden) {
  position: absolute; z-index: 20;
  top: calc(var(--ds-search-height) + 0.375rem); left: 0; right: 0;
  max-height: min(70vh, 36rem); overflow-y: auto;
  padding: 0 1rem 0.75rem;
  background: var(--background);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
}
.ds-search .pagefind-ui__drawer { flex-direction: column; flex-wrap: nowrap; gap: 0; }
.ds-search .pagefind-ui__results-area { margin-top: 0; }
.ds-search .pagefind-ui .pagefind-ui__filter-panel { flex: none; margin: 0.25rem 0 0; padding: 0; border: 0; min-width: 0; }
.ds-search .pagefind-ui .pagefind-ui__filter-block { padding: 0.5rem 0; border-bottom-width: 1px; }
.ds-search .pagefind-ui .pagefind-ui__filter-group { gap: 0.5rem; padding-top: 0.5rem; }
.ds-search .pagefind-ui__message { color: var(--muted-foreground); font-weight: 500; padding: 0.75rem 0; height: auto; }
.ds-search .pagefind-ui .pagefind-ui__result { padding: 0.75rem 0; }
.ds-search .pagefind-ui .pagefind-ui__result-inner { margin-top: 0; }
.ds-search .pagefind-ui .pagefind-ui__result-title { font-size: 1rem; }
.ds-search .pagefind-ui .pagefind-ui__result-excerpt { font-size: 0.875rem; color: var(--muted-foreground); min-width: 0; }
.ds-search .pagefind-ui__result-excerpt mark { background: var(--ds-accent-bg); color: var(--foreground); font-weight: 600; }
.ds-search .pagefind-ui__button { color: var(--primary); }
.ds-banner { padding: 0.5rem 1.5rem; background: var(--ds-accent-bg); border-bottom: 1px solid var(--border); font-size: 0.875rem; }

.ds-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); max-width: 90rem; margin: 0 auto; }
.ds-nav { padding: 1.25rem 1rem; border-right: 1px solid var(--border); font-size: 0.875rem; position: sticky; top: 3.5rem; align-self: start; max-height: calc(100vh - 3.5rem); overflow-y: auto; }
.ds-nav-title { margin: 0 0 0.5rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
.ds-nav ul { list-style: none; margin: 0; padding: 0; }
.ds-nav ul ul { padding-left: 0.875rem; }
.ds-nav li { margin: 0.125rem 0; }
.ds-nav a { color: var(--foreground); text-decoration: none; display: inline-block; padding: 0.125rem 0; }
.ds-nav a:hover { color: var(--primary); }
.ds-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.ds-module > a { font-weight: 500; }
.ds-audience > a, .ds-audience > span { color: var(--muted-foreground); font-size: 0.8125rem; }

.ds-main { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: 2rem; padding: 1.5rem 2rem 4rem; }
.ds-article { min-width: 0; max-width: 48rem; }
.ds-article h1 { font-size: 1.75rem; line-height: 1.25; margin: 0.25rem 0 0.75rem; }
.ds-article .stackship-doc { font-size: 1rem; }
.ds-meta { display: flex; gap: 0.75rem; margin: 0; font-size: 0.8125rem; color: var(--muted-foreground); }
.ds-machine { border: 1px solid var(--border); border-radius: 999px; padding: 0 0.5rem; }
.ds-lede { color: var(--muted-foreground); font-size: 1.0625rem; margin-top: 0; }
.ds-requires { font-size: 0.875rem; color: var(--muted-foreground); }
.ds-toc { position: sticky; top: 4.5rem; align-self: start; font-size: 0.8125rem; }
.ds-toc-title { font-weight: 600; margin: 0 0 0.5rem; }
.ds-toc ul { list-style: none; margin: 0; padding: 0; }
.ds-toc li { margin: 0.25rem 0; }
.ds-toc .ds-toc-3 { padding-left: 0.75rem; }
.ds-toc a { color: var(--muted-foreground); text-decoration: none; }
.ds-toc a:hover { color: var(--primary); }
.ds-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.ds-cards li { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.ds-cards a { font-weight: 600; }
.ds-cards p { margin: 0.375rem 0 0; color: var(--muted-foreground); font-size: 0.875rem; }
.ds-list li { margin: 0.375rem 0; }

/* Installation placeholders: the public example value, marked as "yours goes here". */
.stackship-doc var.doc-placeholder {
  font-style: normal;
  border-bottom: 1px dashed var(--primary);
  cursor: help;
}

@media (max-width: 64rem) {
  .ds-main { grid-template-columns: minmax(0, 1fr); }
  .ds-toc { display: none; }
}
@media (max-width: 48rem) {
  .ds-layout { grid-template-columns: minmax(0, 1fr); }
  .ds-nav { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); }
  .ds-main { padding: 1rem; }
  .ds-header { padding: 0.625rem 1rem; gap: 0.5rem 1rem; }
  .ds-search { order: 1; flex-basis: 100%; max-width: none; min-width: 0; }
  .ds-search .pagefind-ui__drawer:not(.pagefind-ui__hidden) { max-height: 60vh; }
}
