/* Owner (2026-11-14): the AIONFLARE Docs, on top of the home page's styles (home.css): a header with
   search, the list of pages, the page, and "On this page". Light and dark follow the device. */
.docs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.docs-skip {
  position: absolute;
  left: -9999px;
}
.docs-skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--card);
}
.docs-top {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--border);
  background: var(--page);
}
.docs-top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.docs-brand .logo {
  width: auto;
  height: 30px;
}
.docs-tag {
  padding-left: 14px;
  border-left: 1px solid var(--border);
  color: var(--label);
  font:
    600 15px 'Poppins',
    sans-serif;
  text-decoration: none;
}
.docs-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 340px;
  margin-left: auto;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--card);
}
.docs-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.docs-search input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.docs-search kbd {
  margin-right: 10px;
  padding: 1px 6px;
  border: 1px solid var(--chip-border);
  border-radius: 6px;
  color: var(--muted);
  font:
    600 12px 'Source Sans 3',
    sans-serif;
}
.docs-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 6;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.docs-results[hidden] {
  display: none;
}
.docs-results a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
}
.docs-results a.on,
.docs-results a:hover {
  background: var(--chip);
}
.docs-results small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.docs-results p {
  margin: 8px 10px;
  color: var(--muted);
}
.docs-link {
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 200px;
  gap: 44px;
  padding-top: 30px;
  padding-bottom: 60px;
}
.docs-layout > .docs-nav {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.docs-nav-group {
  margin: 18px 0 6px;
  color: var(--label);
  font:
    700 12px 'Source Sans 3',
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.docs-nav-group:first-child {
  margin-top: 0;
}
.docs-nav a {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--body);
  font-size: 15px;
  text-decoration: none;
}
.docs-nav a:hover {
  color: var(--text);
}
.docs-nav a.on {
  background: var(--chip);
  color: var(--text);
  font-weight: 600;
}
.docs-mobile {
  display: none;
}
.docs-mobile summary {
  padding: 10px 14px;
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  background: var(--chip);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.docs-mobile .docs-nav {
  padding: 10px 4px 0;
}
.docs-crumb {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.docs-crumb a {
  color: var(--muted);
}
.docs-main h1 {
  margin: 6px 0 10px;
  color: var(--text);
  font:
    700 34px/1.2 'Poppins',
    sans-serif;
}
.docs-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}
.docs-main section h2 {
  margin: 32px 0 10px;
  color: var(--text);
  font:
    600 22px 'Poppins',
    sans-serif;
}
.docs-main p,
.docs-main li {
  color: var(--body);
  line-height: 1.65;
}
.docs-main ul {
  padding-left: 22px;
}
.docs-main li {
  margin-bottom: 6px;
}
.docs-main a {
  color: var(--label);
  font-weight: 600;
}
.docs-main kbd {
  padding: 1px 6px;
  border: 1px solid var(--chip-border);
  border-radius: 6px;
  background: var(--card);
  font:
    600 13px 'Source Sans 3',
    sans-serif;
}
.docs-main .steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.docs-main .steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin-bottom: 16px;
  counter-increment: step;
}
.docs-main .steps li::before {
  content: counter(step);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--chip);
  color: var(--label);
  font:
    600 14px 'Poppins',
    sans-serif;
}
.docs-main strong {
  color: var(--text);
}
.callout {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--chip-border);
  border-radius: 14px;
  background: var(--chip);
}
.docs-table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
  font-size: 15px;
}
.docs-table th,
.docs-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  text-align: left;
  vertical-align: top;
}
.docs-table th {
  color: var(--label);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.docs-main a.docs-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 400;
  text-decoration: none;
}
.docs-main a.docs-card:hover {
  border-color: var(--gold);
}
.docs-card strong {
  display: block;
  font:
    600 16px 'Poppins',
    sans-serif;
}
.docs-card span {
  color: var(--muted);
  font-size: 14.5px;
}
.docs-pager {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 40px;
}
.docs-pager a,
.docs-pager span {
  flex: 1;
}
.docs-main .docs-pager a {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}
.docs-main .docs-pager a:hover {
  border-color: var(--gold);
}
.docs-pager a.next {
  text-align: right;
}
.docs-pager small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.docs-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  font-size: 14px;
}
.docs-toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.docs-toc a {
  display: block;
  padding: 3px 0 3px 10px;
  border-left: 2px solid var(--border);
  color: var(--muted);
  text-decoration: none;
}
.docs-toc a:hover {
  border-left-color: var(--gold);
  color: var(--text);
}
.docs-footer {
  border-top: 1px solid var(--border);
}
.docs-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 18px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}
.docs-footer a {
  color: var(--muted);
}
@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
}
@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 20px;
  }
  .docs-layout > .docs-nav {
    display: none;
  }
  .docs-mobile {
    display: block;
    margin-bottom: 18px;
  }
  .docs-cards {
    grid-template-columns: 1fr;
  }
  .docs-search {
    width: auto;
    flex: 1;
  }
  .docs-search kbd,
  .docs-tag,
  .docs-link {
    display: none;
  }
  .docs-table {
    display: block;
    overflow-x: auto;
  }
}
@media (max-width: 560px) {
  .docs-top .wrap {
    gap: 10px;
  }
  .docs-top .button {
    padding: 8px 12px;
    font-size: 14px;
  }
  .docs-brand .logo {
    height: 24px;
  }
  .docs-main h1 {
    font-size: 28px;
  }
}
@media (prefers-color-scheme: dark) {
  .docs-search input {
    color-scheme: dark;
  }
}
/* A section opened from search or "On this page" stops below the sticky header. */
.docs-main section {
  scroll-margin-top: 84px;
}
/* Phones: the logo and search share the header; Open AIONFLARE is in the footer instead. */
@media (max-width: 560px) {
  .docs-top .button {
    display: none;
  }
  .docs-search {
    min-width: 0;
  }
}
/* Owner (2026-11-14): the Docs use the full width of the page: the list of pages at the left edge,
   On this page at the right edge, and the page between them. */
.docs .wrap {
  width: calc(100% - 64px);
  max-width: none;
}
.docs-layout {
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 56px;
}
@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .docs .wrap {
    width: calc(100% - 32px);
  }
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
