/* ARI.Software Docs — faithful port of the original ari.software/docs design.
   White-only theme, JetBrains Mono throughout, black header bar, 280px sidebar.
   Values are hand-translated from the old site's Tailwind classes. */

html, body { margin: 0; padding: 0; }
body.ds {
  background: #fff; color: #000;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */
.ds-header {
  background: #000; color: #fff; height: 56px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.ds-header__brand { font-size: 14px; font-weight: 500; letter-spacing: .025em; }
.ds-header__nav { display: flex; align-items: center; gap: 32px; }
.ds-header__home {
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  transition: opacity .15s;
}
.ds-header__home:hover { opacity: .6; }
a.ds-header__dl {
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid #fff; background: #fff; color: #000; padding: 6px 16px;
  transition: background-color .15s, color .15s;
}
a.ds-header__dl:hover { background: transparent; color: #fff; }

/* ---------- layout ---------- */
.ds-body { display: flex; min-height: calc(100vh - 56px); }
.ds-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ds-mainflex { flex: 1; }

/* ---------- sidebar ---------- */
.ds-sidebar { width: 280px; flex-shrink: 0; border-right: 1px solid rgba(0,0,0,.1); }
@media (max-width: 1023px) { .ds-sidebar { display: none; } }
.ds-sidebar__inner { padding: 24px; position: sticky; top: 0; }

.ds-search { position: relative; margin-bottom: 32px; }
.ds-search__box {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,0,0,.15); border-radius: 4px; padding: 8px 12px;
}
.ds-search__box svg { opacity: .4; flex-shrink: 0; }
.ds-search__box input {
  font: inherit; font-size: 14px; flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0; color: inherit;
}
.ds-search__box input::placeholder { color: #000; opacity: .3; }
.ds-results {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
  background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: 4px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  z-index: 50; max-height: 320px; overflow-y: auto;
}
.ds-results a {
  display: block; padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background-color .15s;
}
.ds-results a:last-child { border-bottom: 0; }
.ds-results a:hover { background: rgba(0,0,0,.05); }
.ds-results__title { font-size: 14px; font-weight: 500; margin: 0; }
.ds-results__summary {
  font-size: 12px; opacity: .5; margin: 2px 0 0;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.ds-results__empty { font-size: 14px; opacity: .4; margin: 0; padding: 12px 16px; }

.ds-group { margin-bottom: 8px; }
.ds-group__btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 8px 0; background: none; border: 0; cursor: pointer; color: inherit;
  font: inherit; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  transition: opacity .15s; text-align: left;
}
.ds-group__btn:hover { opacity: .7; }
.ds-chev { transition: transform .2s; flex-shrink: 0; }
.ds-group[data-open="0"] .ds-chev { transform: rotate(-90deg); }
.ds-group[data-open="0"] .ds-group__items { display: none; }
.ds-group__items {
  border-left: 1px solid rgba(0,0,0,.15);
  margin-left: 2px; padding-left: 16px; padding-bottom: 8px;
}
.ds-group__items a { display: block; padding: 6px 0; font-size: 14px; opacity: .5; transition: opacity .15s; }
.ds-group__items a:hover { opacity: .8; }
.ds-group__items a.is-active { opacity: 1; font-weight: 500; }

/* ---------- page furniture ---------- */
.ds-doc { max-width: 900px; margin: 0 auto; padding: 64px 24px; }
.ds-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 12px; opacity: .5; }
.ds-eyebrow--plain { opacity: 1; }
.ds-title { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 8px; }
@media (min-width: 768px) { .ds-title { font-size: 36px; line-height: 40px; } }
.ds-summary { font-size: 14px; opacity: .5; margin: 0 0 48px; }

/* Landing page */
.ds-hero { max-width: 900px; margin: 0 auto; padding: 80px 24px 48px; }
.ds-divider { border: 0; border-top: 1px solid rgba(0,0,0,.2); margin: 0; }
.ds-section { max-width: 900px; margin: 0 auto; padding: 64px 24px; }
.ds-lede { font-size: 14px; line-height: 28px; max-width: 600px; margin: 0; }
.ds-section h2 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; margin: 40px 0 12px; }
a.ds-btn-solid {
  display: inline-block; background: #000; color: #fff; border: 1px solid #000;
  padding: 12px 32px; margin-top: 40px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  transition: background-color .15s, color .15s;
}
a.ds-btn-solid:hover { background: #fff; color: #000; }

/* Installation picker */
.ds-picker { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .ds-picker { grid-template-columns: repeat(3, 1fr); } }
.ds-picker a {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid rgba(0,0,0,.15); border-radius: 4px; padding: 32px;
  transition: border-color .15s, background-color .15s, color .15s;
}
.ds-picker a:hover { border-color: #000; background: #000; color: #fff; }
.ds-picker__icon { width: 40px; height: 40px; margin-bottom: 20px; opacity: .8; transition: opacity .15s; }
.ds-picker a:hover .ds-picker__icon { opacity: 1; }
.ds-picker__name { font-size: 16px; font-weight: 500; letter-spacing: .025em; margin-bottom: 4px; }
.ds-picker__desc { font-size: 12px; opacity: .5; transition: opacity .15s; }
.ds-picker a:hover .ds-picker__desc { opacity: .7; }

/* Bottom CTA */
.ds-cta { text-align: center; padding: 80px 0 96px; }
.ds-cta h2 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 16px; }
@media (min-width: 768px) { .ds-cta h2 { font-size: 30px; } }
.ds-cta p { font-size: 14px; line-height: 20px; opacity: .6; max-width: 448px; margin: 0 auto 40px; }
.ds-cta a {
  display: inline-block; border: 1px solid #000; padding: 12px 32px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  transition: background-color .15s, color .15s;
}
.ds-cta a:hover { background: #000; color: #fff; }

/* ---------- footer ---------- */
.ds-footer {
  background: #fff; border-top: 1px solid rgba(0,0,0,.1); height: 56px; margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.ds-footer__brand { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ds-footer__copy { font-size: 12px; letter-spacing: .025em; }

/* ---------- article prose (translated from the old Tailwind prose-sm overrides) ---------- */
.ds-prose { font-size: 14px; line-height: 1.7142857; }
.ds-prose > :first-child { margin-top: 0; }
.ds-prose > :last-child { margin-bottom: 0; }
.ds-prose p { font-size: 14px; line-height: 28px; margin: 16px 0; }
.ds-prose a { text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.ds-prose strong { font-weight: 600; }
.ds-prose h1, .ds-prose h2, .ds-prose h3, .ds-prose h4 { letter-spacing: -.025em; }
.ds-prose h1 { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0 0 21px; }
.ds-prose h2 { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 32px 0 16px; }
.ds-prose h3 { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 28px 0 8px; }
.ds-prose h4 { font-size: 14px; font-weight: 600; line-height: 1.5; margin: 20px 0 8px; }
.ds-prose ul, .ds-prose ol { padding-left: 22px; margin: 16px 0; }
.ds-prose ul { list-style: disc; }
.ds-prose ol { list-style: decimal; }
.ds-prose li { font-size: 14px; line-height: 28px; margin: 4px 0; padding-left: 6px; }
.ds-prose ul > li::marker { color: #d1d5db; }
.ds-prose ol > li::marker { color: #6b7280; }
.ds-prose code {
  font-family: inherit; font-size: 12px;
  background: rgba(0,0,0,.05); padding: 2px 6px; border-radius: 4px;
}
.ds-prose pre {
  background: rgba(0,0,0,.05); color: #000; font-size: 12px; line-height: 1.6666667;
  border: 1px solid rgba(0,0,0,.1); border-radius: 4px;
  padding: 12px 16px; overflow-x: auto; margin: 20px 0;
}
.ds-prose pre code { background: transparent; padding: 0; border-radius: 0; font-size: inherit; }
.ds-prose blockquote {
  border-left: 2px solid #60a5fa; background: #eff6ff;
  font-size: 12px; font-style: normal;
  border-radius: 0 4px 4px 0; padding: 4px 16px; margin: 16px 0;
}
.ds-prose blockquote p { font-size: 12px; line-height: 20px; margin: 8px 0; }
.ds-prose hr { border: 0; border-top: 1px solid rgba(0,0,0,.2); margin: 40px 0; }
.ds-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; margin: 28px 0; }
.ds-prose thead { border-bottom: 1px solid #d1d5db; }
.ds-prose th {
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 500;
  text-align: left; vertical-align: bottom; padding: 0 8px 8px;
}
.ds-prose td { vertical-align: baseline; padding: 8px; }
.ds-prose tbody tr { border-bottom: 1px solid #e5e7eb; }
.ds-prose tbody tr:last-child { border-bottom: 0; }
.ds-prose th:first-child, .ds-prose td:first-child { padding-left: 0; white-space: nowrap; }
.ds-prose th:last-child, .ds-prose td:last-child { padding-right: 0; }
.ds-prose td code, .ds-prose th code { white-space: nowrap; }
.ds-prose img { max-width: min(700px, 100%); height: auto; margin: 24px 0; }
