/* ===================================================================
 * ResultsAIx Docs — page-specific styles (layered on top of style.css)
 * Palette: amber #f59e0b · ink #0a0a0a · paper #fafaf9 · subtle #f5f5f4
 * Type:    Outfit (display/body) · JetBrains Mono (mono)
 * =================================================================== */

body { padding-top: 64px; }

.active-nav { color: #f59e0b !important; }

/* ── Doc-nav — refined, no "frame" feel ────────────────────────── */
.docs-nav {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(10,10,10,.06);
    position: sticky;
    top: 64px;
    z-index: 50;
}
.docs-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
}
.docs-nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.docs-nav-row-top {
    flex-wrap: wrap;
}
.docs-nav-row-search {
    position: relative;
    width: 100%;
}
/* Lose the slash separator entirely — was visual noise */
.docs-nav-sep { display: none; }
.docs-nav-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #525252;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.docs-nav-home:hover {
    background: rgba(10,10,10,.04);
    color: #0a0a0a;
}
.docs-nav-home svg { color: #737373; }
.docs-nav-home:hover svg { color: #f59e0b; }
.docs-nav-sep {
    color: #d4d4d4;
    font-size: 16px;
    font-weight: 300;
}

/* Product dropdown */
.docs-nav-picker { position: relative; }
.docs-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 14px;
    background: #fff;
    border: 1px solid rgba(10,10,10,.1);
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    box-shadow: 0 2px 6px -2px rgba(10,10,10,.06);
}
.docs-nav-trigger:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px -4px rgba(245,158,11,.2);
}
.docs-nav-trigger[aria-expanded="true"] {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.docs-nav-trigger-ic { font-size: 16px; line-height: 1; }
.docs-nav-trigger-name { letter-spacing: -.01em; }
.docs-nav-trigger-chev {
    color: #737373;
    margin-left: 2px;
    transition: transform .2s cubic-bezier(.21,1,.27,1);
}
.docs-nav-trigger[aria-expanded="true"] .docs-nav-trigger-chev {
    transform: rotate(180deg);
    color: #f59e0b;
}

/* Dropdown menu — premium grid */
.docs-nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 460px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border: 1px solid rgba(10,10,10,.08);
    border-radius: 14px;
    box-shadow: 0 24px 48px -16px rgba(10,10,10,.18), 0 4px 12px -4px rgba(10,10,10,.06);
    overflow: hidden;
    z-index: 100;
    animation: docsMenuIn .14s cubic-bezier(.21,1,.27,1);
}
@keyframes docsMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.docs-nav-menu-head {
    padding: 12px 16px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #fafaf9;
    border-bottom: 1px solid rgba(10,10,10,.06);
}
.docs-nav-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 6px;
}
.docs-nav-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 9px;
    color: inherit;
    transition: background .12s;
}
.docs-nav-menu-item:hover {
    background: #fafaf9;
}
.docs-nav-menu-item.active {
    background: rgba(245,158,11,.08);
}
.docs-nav-menu-item-ic {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: #fafaf9;
    border: 1px solid rgba(10,10,10,.06);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.docs-nav-menu-item.active .docs-nav-menu-item-ic {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: rgba(245,158,11,.25);
}
.docs-nav-menu-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.docs-nav-menu-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    letter-spacing: -.01em;
}
.docs-nav-menu-item-meta {
    font-size: 11.5px;
    color: #737373;
    font-family: 'Outfit', system-ui, sans-serif;
    letter-spacing: .02em;
}
.docs-nav-menu-item-check {
    color: #f59e0b;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Breadcrumbs ──────────────────────────────────────────────────── */
.docs-crumbs {
    background: #fafaf9;
    border-bottom: 1px solid rgba(10,10,10,.05);
    padding: 14px 0;
    font-size: 13px;
    color: #737373;
    font-weight: 500;
}
.docs-crumbs a {
    color: #525252;
    transition: color .15s;
}
.docs-crumbs a:hover { color: #f59e0b; }
.docs-crumbs span[aria-current] { color: #0a0a0a; font-weight: 600; }
.docs-crumbs-sep { margin: 0 4px; color: #d4d4d4; }

/* ── Hero — root + product index ──────────────────────────────────── */
.docs-hero {
    padding: 60px 0 48px;
    background: linear-gradient(180deg, #fff 0%, #fafaf9 100%);
    border-bottom: 1px solid rgba(10,10,10,.05);
}
.docs-hero .lede { margin-bottom: 28px; }

.docs-product-hero {
    padding: 56px 0 40px;
    background: linear-gradient(180deg, #fff 0%, #fafaf9 100%);
    border-bottom: 1px solid rgba(10,10,10,.05);
    text-align: center;
}
.docs-product-hero-ic {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}
.docs-product-hero .lede { margin: 0 auto; }

/* ── Search ───────────────────────────────────────────────────────── */
.docs-search-wrap {
    position: relative;
    max-width: 640px;
    margin-top: 16px;
}
#docsSearch {
    width: 100%;
    padding: 16px 22px;
    font: inherit;
    font-size: 16px;
    border: 1.5px solid rgba(10,10,10,.12);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
#docsSearch:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}
.docs-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(10,10,10,.1);
    border-radius: 12px;
    box-shadow: 0 16px 40px -16px rgba(0,0,0,.18);
    max-height: 480px;
    overflow-y: auto;
    z-index: 30;
}
.docs-search-result {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(10,10,10,.05);
    transition: background .12s;
}
.docs-search-result:last-child { border-bottom: none; }
.docs-search-result:hover { background: #fafaf9; }
.docs-search-result-title {
    font-weight: 600;
    color: #0a0a0a;
    font-size: 14.5px;
    margin-bottom: 3px;
}
.docs-search-result-meta {
    font-size: 12px;
    color: #737373;
    font-family: 'Outfit', system-ui, sans-serif;
}
.docs-search-empty {
    padding: 14px 18px;
    color: #737373;
    font-size: 13.5px;
    text-align: center;
}

/* ── Root product grid ───────────────────────────────────────────── */
.docs-product-grid-section { padding: 48px 0 80px; }
.docs-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.docs-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid rgba(10,10,10,.08);
    border-radius: 14px;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    color: inherit;
}
.docs-product-card:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -16px rgba(245,158,11,.32);
}
.docs-product-card-ic {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.docs-product-card-body { flex: 1; min-width: 0; }
.docs-product-card-body h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.015em;
}
.docs-product-card-kind {
    font-size: 11px;
    color: #737373;
    font-family: 'Outfit', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 4px;
}
.docs-product-card-count {
    font-size: 13px;
    color: #525252;
    margin: 0;
}
.docs-product-card-arrow {
    color: #d4d4d4;
    font-size: 22px;
    font-weight: 600;
    transition: color .15s, transform .15s;
}
.docs-product-card:hover .docs-product-card-arrow {
    color: #f59e0b;
    transform: translateX(4px);
}

/* ── Article list (product index) ────────────────────────────────── */
.docs-article-list-section { padding: 40px 0 80px; }
.docs-article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.docs-article-row {
    display: block;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid rgba(10,10,10,.08);
    border-radius: 12px;
    transition: border-color .15s, transform .15s;
    color: inherit;
    position: relative;
}
.docs-article-row:hover {
    border-color: #f59e0b;
    transform: translateY(-1px);
}
.docs-article-row h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
}
.docs-article-row p {
    margin: 0;
    color: #525252;
    font-size: 14.5px;
    line-height: 1.55;
}
.docs-article-row-arrow {
    display: inline-block;
    margin-top: 8px;
    color: #f59e0b;
    font-weight: 600;
    font-size: 13px;
}

/* ── Article page — sidebar + main layout ───────────────────────── */
.docs-article-shell {
    padding: 32px 0 80px;
    background: #fff;
}
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) {
    .docs-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 132px;
    align-self: start;
    border-right: 1px solid rgba(10,10,10,.07);
    padding-right: 16px;
    max-height: calc(100vh - 152px);
    overflow-y: auto;
}
@media (max-width: 900px) {
    .docs-sidebar {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid rgba(10,10,10,.07);
        padding: 0 0 18px;
        margin-bottom: 12px;
    }
}
.docs-sidebar-head {
    font-size: 11px;
    color: #737373;
    font-family: 'Outfit', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.docs-sidebar-head strong {
    font-family: 'Outfit', sans-serif;
    text-transform: none;
    letter-spacing: -.01em;
    color: #0a0a0a;
    font-size: 13px;
    font-weight: 700;
}
.docs-sidebar-ic { font-size: 15px; line-height: 1; }
.docs-sidebar-list {
    display: flex;
    flex-direction: column;
}
.docs-sidebar-link {
    padding: 8px 12px;
    margin: 2px 0;
    font-size: 13.5px;
    color: #525252;
    font-weight: 500;
    border-radius: 7px;
    line-height: 1.4;
    transition: background .12s, color .12s;
    border-left: 2px solid transparent;
}
.docs-sidebar-link:hover {
    color: #0a0a0a;
    background: #fafaf9;
}
.docs-sidebar-link.active {
    color: #0a0a0a;
    background: rgba(245, 158, 11, .1);
    border-left-color: #f59e0b;
    font-weight: 600;
}

/* Article body */
.docs-article {
    min-width: 0;
    max-width: 720px;
}
.docs-article-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin: 0 0 28px;
    color: #0a0a0a;
}
.docs-article-body {
    font-size: 16px;
    line-height: 1.7;
    color: #262626;
}
.docs-article-body p {
    margin: 0 0 18px;
}
.docs-article-body h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.015em;
    margin: 36px 0 14px;
    color: #0a0a0a;
}
.docs-article-body ul,
.docs-article-body ol {
    margin: 0 0 22px;
    padding-left: 22px;
}
.docs-article-body li {
    margin-bottom: 8px;
}
.docs-article-body code {
    background: #fafaf9;
    border: 1px solid rgba(10,10,10,.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 13.5px;
}
.docs-article-body strong { font-weight: 700; color: #0a0a0a; }
.docs-article-body em { font-style: italic; }

/* Prev / Next pager */
.docs-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid rgba(10,10,10,.08);
}
@media (max-width: 640px) { .docs-pager { flex-direction: column; } }
.docs-pager-prev,
.docs-pager-next {
    flex: 0 0 calc(50% - 8px);
    padding: 16px 18px;
    background: #fafaf9;
    border: 1px solid rgba(10,10,10,.08);
    border-radius: 10px;
    transition: border-color .15s, transform .15s;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
@media (max-width: 640px) { .docs-pager-prev, .docs-pager-next { flex: 0 0 auto; } }
.docs-pager-next { text-align: right; align-items: flex-end; }
.docs-pager-prev:hover,
.docs-pager-next:hover {
    border-color: #f59e0b;
    transform: translateY(-1px);
}
.docs-pager-label {
    font-size: 11px;
    color: #f59e0b;
    font-family: 'Outfit', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.docs-pager-title {
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
}

/* ── Footer promo block ──────────────────────────────────────────── */
.docs-promo {
    padding: 64px 0;
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    margin-top: 40px;
}
.docs-promo h2 { color: #fff; }
.docs-promo .lede { color: #d4d4d4; margin: 0 auto 24px; }
.docs-promo .btn-primary { background: #f59e0b; color: #0a0a0a !important; }
.docs-promo .btn-primary:hover { background: #fbbf24; }

.doc-footer { margin-top: 0; padding: 28px 0; background: #fafaf9; }
.doc-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: #737373;
}
.doc-footer a { color: #525252; }
.doc-footer a:hover { color: #f59e0b; }
@media (max-width: 640px) {
    .doc-footer .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Real search input — looks polished at every width ────────────
   Replaces the old button-pretending-to-be-an-input. Full-width on its
   own row, magnifying-glass icon left, Cmd+K hint right. Clicking or
   focusing opens the modal (premium UX). On older deployed pages where
   the modal isn't present, the inline live-search wires up instead. */
.docs-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 12px;
    background: #fff;
    border: 1px solid rgba(10,10,10,.1);
    border-radius: 11px;
    box-shadow: 0 2px 6px -2px rgba(10,10,10,.06);
    transition: border-color .15s, box-shadow .15s;
    cursor: text;
}
.docs-search-field:hover,
.docs-search-field:focus-within {
    border-color: rgba(245,158,11,.55);
    box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.docs-search-field-ic {
    color: #a3a3a3;
    flex-shrink: 0;
}
.docs-search-field:focus-within .docs-search-field-ic { color: #f59e0b; }
.docs-search-field-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 0;
    font: inherit;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 14.5px;
    color: #0a0a0a;
    outline: none;
}
.docs-search-field-input::placeholder { color: #a3a3a3; font-weight: 400; }
.docs-search-field-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    background: rgba(10,10,10,.06);
    color: #525252;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    padding: 0;
}
.docs-search-field-clear:hover {
    background: #f59e0b;
    color: #0a0a0a;
}

/* Strip search live-result dropdown — sits inside the docs-nav row */
.docs-strip-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 80;
    max-height: 70vh;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .docs-search-field-input { font-size: 14px; }
}

/* ── Global search MODAL — premium Cmd+K experience ─────────────── */
.docs-search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: start center;
    padding: 12vh 20px 20px;
    pointer-events: auto;
    animation: docsModalIn .14s cubic-bezier(.21,1,.27,1);
}
@keyframes docsModalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.docs-search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,10,12,.55);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    cursor: pointer;
}
.docs-search-modal-panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 4px 12px -4px rgba(0,0,0,.1);
    overflow: hidden;
    animation: docsPanelIn .18s cubic-bezier(.21,1,.27,1);
    max-height: calc(100vh - 24vh - 20px);
    display: flex;
    flex-direction: column;
}
@keyframes docsPanelIn {
    from { opacity: 0; transform: translateY(-8px) scale(.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.docs-search-modal-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(10,10,10,.06);
}
.docs-search-modal-input-ic { color: #737373; flex-shrink: 0; }
#docsModalSearch {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 16.5px;
    color: #0a0a0a;
    padding: 6px 0;
    min-width: 0;
}
#docsModalSearch::placeholder { color: #a3a3a3; }
.docs-search-modal-close {
    background: #fafaf9;
    border: 1px solid rgba(10,10,10,.1);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.docs-search-modal-close kbd {
    display: inline-block;
    padding: 4px 9px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #525252;
}
.docs-search-modal-close:hover { background: #f5f5f4; border-color: rgba(10,10,10,.2); }

.docs-search-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 4px;
    min-height: 80px;
}
.docs-search-modal-hint {
    padding: 28px 20px;
    color: #737373;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}
.docs-search-modal-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    background: #fafaf9;
    border: 1px solid rgba(10,10,10,.1);
    border-radius: 4px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 10.5px;
    color: #525252;
    margin: 0 2px;
}
.docs-search-modal-empty {
    padding: 36px 20px;
    text-align: center;
    color: #737373;
}
.docs-search-modal-empty-ic {
    font-size: 30px;
    margin-bottom: 10px;
    opacity: .6;
}
.docs-search-modal-empty h4 {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 700;
    color: #0a0a0a;
}
.docs-search-modal-empty p { margin: 0; font-size: 13.5px; line-height: 1.55; }

.docs-search-modal-group { padding: 4px 0 8px; }
.docs-search-modal-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 6px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.docs-search-modal-group-ic { font-size: 13px; }
.docs-search-modal-group-count {
    margin-left: auto;
    padding: 1px 8px;
    background: #fafaf9;
    border-radius: 999px;
    font-size: 10px;
    color: #525252;
}
.docs-search-modal-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 4px;
    border-radius: 10px;
    color: inherit;
    transition: background .1s;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.docs-search-modal-result:hover,
.docs-search-modal-result.active {
    background: linear-gradient(90deg, rgba(245,158,11,.08) 0%, rgba(245,158,11,.02) 100%);
    border-left-color: #f59e0b;
}
.docs-search-modal-result.active {
    box-shadow: inset 0 0 0 1px rgba(245,158,11,.18);
}
.docs-search-modal-result-body { flex: 1; min-width: 0; }
.docs-search-modal-result-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.35;
    margin-bottom: 3px;
    word-break: break-word;
}
.docs-search-modal-result-snippet {
    font-size: 13px;
    color: #737373;
    line-height: 1.45;
    word-break: break-word;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.docs-search-modal-result-arrow {
    color: #a3a3a3;
    flex-shrink: 0;
    transition: transform .15s, color .15s;
}
.docs-search-modal-result:hover .docs-search-modal-result-arrow,
.docs-search-modal-result.active .docs-search-modal-result-arrow {
    color: #f59e0b;
    transform: translateX(2px);
}
.docs-search-modal-result mark {
    background: rgba(245, 158, 11, .25);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

.docs-search-modal-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-top: 1px solid rgba(10,10,10,.06);
    background: #fafaf9;
    font-size: 11.5px;
    color: #737373;
}
.docs-search-modal-fkbd {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.docs-search-modal-fkbd kbd {
    display: inline-block;
    padding: 1px 5px;
    background: #fff;
    border: 1px solid rgba(10,10,10,.1);
    border-radius: 3px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #525252;
}
.docs-search-modal-fbrand {
    margin-left: auto;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 10.5px;
    color: #a3a3a3;
}

@media (max-width: 640px) {
    .docs-search-modal { padding: 6vh 12px 12px; }
    .docs-search-modal-panel { border-radius: 12px; }
    .docs-search-modal-input-row { padding: 12px 14px; }
    #docsModalSearch { font-size: 15.5px; }
    .docs-search-modal-fkbd:nth-child(3) { display: none; }
}

/* ── Article meta strip (reading time + product) ─────────────────── */
.docs-article-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: -16px 0 32px;
    font-size: 13px;
    color: #737373;
    font-family: 'Outfit', system-ui, sans-serif;
}
.docs-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .01em;
}

/* ─────────────────────────────────────────────────────────────────
   Inline search results — fallback when the modal isn't on page
   (e.g., older deployed PHP without render_search_modal()) AND for
   in-page strip search on product/article pages.
   ────────────────────────────────────────────────────────────── */
.docs-inline-hint,
.docs-inline-empty {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 14px;
    font-family: 'Outfit', system-ui, sans-serif;
    color: #404040;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.docs-inline-empty {
    text-align: center;
}
.docs-inline-empty-ic {
    font-size: 30px;
    margin-bottom: 10px;
}
.docs-inline-empty h4 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #0a0a0a;
}
.docs-inline-empty p {
    margin: 0;
    font-size: 14px;
    color: #737373;
}
.docs-inline-group {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 14px 0 8px;
    margin-top: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    overflow: hidden;
}
.docs-inline-group + .docs-inline-group {
    margin-top: 10px;
}
.docs-inline-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 12px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #737373;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 4px;
}
.docs-inline-group-ic {
    font-size: 18px;
}
.docs-inline-group-count {
    margin-left: auto;
    background: #fafaf9;
    color: #737373;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.docs-inline-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    text-decoration: none;
    color: #0a0a0a;
    transition: background .12s ease;
    border-left: 3px solid transparent;
}
.docs-inline-result:hover,
.docs-inline-result:focus-visible {
    background: #fafaf9;
    border-left-color: #f59e0b;
    outline: none;
}
.docs-inline-result-body {
    flex: 1;
    min-width: 0;
}
.docs-inline-result-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
    color: #0a0a0a;
}
.docs-inline-result-snippet {
    font-size: 13px;
    color: #737373;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.docs-inline-result-arrow {
    color: #a3a3a3;
    flex-shrink: 0;
}
.docs-inline-result mark,
.docs-inline-result-title mark,
.docs-inline-result-snippet mark {
    background: #fef3c7;
    color: #0a0a0a;
    padding: 0 2px;
    border-radius: 3px;
}

/* ── Empty-state suggestion chips (modal + inline) ────────────────── */
.docs-search-modal-suggest,
.docs-inline-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}
.docs-search-modal-suggest-chip,
.docs-inline-suggest-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid rgba(10,10,10,.12);
    border-radius: 999px;
    font: inherit;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #404040;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.docs-search-modal-suggest-chip:hover,
.docs-inline-suggest-chip:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #0a0a0a;
    transform: translateY(-1px);
}

/* Diagnostic lines in the empty state — tells you instantly if the
   corpus loaded. "0 guides" means upload search-index.json. */
.docs-inline-diag,
.docs-search-modal-diag {
    margin: 8px auto 0;
    font-size: 14px;
    color: #525252;
    max-width: 520px;
}
.docs-inline-diag-error,
.docs-search-modal-diag-error {
    margin: 8px auto 0;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
    max-width: 560px;
}
