body.docs-site { margin: 0; color: var(--sv-ink); background: #fff; font-family: Arial, "Segoe UI", sans-serif; }
.docs-site *, .docs-site *::before, .docs-site *::after { box-sizing: border-box; }

/* הכותרת שומרת את המעבר בין תיעוד, חשבון ומוצר קצר וברור. */
.docs-header { position: sticky; z-index: 90; top: 0; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 28px; border-bottom: 1px solid var(--sv-line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); }
.docs-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--sv-ink); text-decoration: none; font-size: 22px; font-weight: 900; }
.docs-brand > span { height: 28px; display: flex; align-items: center; gap: 3px; direction: ltr; }
.docs-brand i { width: 3px; height: 12px; border-radius: 99px; background: var(--sv-blue); }
.docs-brand i:nth-child(2), .docs-brand i:nth-child(4) { height: 24px; }
.docs-brand i:nth-child(3) { height: 28px; }
.docs-header nav { display: flex; align-items: center; gap: 20px; }
.docs-header nav a { color: var(--sv-ink-soft); text-decoration: none; font-size: 10px; font-weight: 800; }
.docs-header nav a:hover { color: var(--sv-blue); }
.docs-header .docs-primary { padding: 9px 15px; border-radius: 999px; color: #fff; background: var(--sv-blue); }

.docs-layout { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 245px minmax(0, 1fr); }

/* סרגל התוכן דביק ומציג היררכיה תיעודית במקום רשימת קישורים שטוחה. */
.docs-sidebar { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; padding: 28px 18px; border-inline-end: 1px solid var(--sv-line); background: #f8fafc; overflow-y: auto; }
.docs-sidebar span { margin: 18px 10px 7px; color: #8b98aa; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.docs-sidebar span:first-child { margin-top: 0; }
.docs-sidebar a { padding: 7px 10px; border-radius: 8px; color: var(--sv-muted); text-decoration: none; font-size: 10px; }
.docs-sidebar a:hover { color: var(--sv-blue); background: var(--sv-blue-soft); }

.docs-content { width: min(920px, calc(100% - 56px)); margin-inline: auto; padding: 70px 0 110px; }
.docs-hero { padding-bottom: 62px; border-bottom: 1px solid var(--sv-line); }
.docs-hero > span, .docs-kicker, .docs-enterprise > span { color: var(--sv-blue); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.docs-hero h1 { margin: 15px 0 18px; font-size: clamp(44px, 6vw, 68px); line-height: 1; letter-spacing: -.06em; }
.docs-hero h1 b { color: var(--sv-blue); }
.docs-hero > p { max-width: 760px; margin: 0; color: var(--sv-muted); font-size: 15px; line-height: 1.8; }
.docs-base { width: fit-content; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; margin-top: 26px; padding: 10px 12px; border: 1px solid var(--sv-line); border-radius: 12px; background: #f8fafc; }
.docs-base small { color: var(--sv-muted); font-size: 8px; }
.docs-base code { color: var(--sv-ink); font-size: 11px; }
.docs-base button { border: 0; border-radius: 7px; padding: 6px 8px; color: #fff; background: var(--sv-blue); font-size: 8px; cursor: pointer; }

.docs-section { padding: 64px 0; border-bottom: 1px solid var(--sv-line); scroll-margin-top: 95px; }
.docs-section h2 { margin: 9px 0 13px; font-size: 34px; line-height: 1.1; letter-spacing: -.045em; }
.docs-section > p { max-width: 790px; color: var(--sv-muted); font-size: 13px; line-height: 1.8; }
.docs-section a { color: var(--sv-blue); }
.docs-section code, .docs-enterprise code { border-radius: 5px; padding: 2px 5px; color: #245184; background: #eef4fb; font-family: Consolas, monospace; font-size: .9em; direction: ltr; }
.docs-callout { display: grid; gap: 5px; margin-top: 22px; padding: 17px; border-inline-start: 4px solid var(--sv-yellow); border-radius: 10px; background: #fffbef; }
.docs-callout strong { font-size: 11px; }
.docs-callout span { color: #776d50; font-size: 10px; }
.docs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 22px; }
.docs-two article { padding: 20px; border: 1px solid var(--sv-line); border-radius: 15px; background: #fbfcfe; }
.docs-two article > span { color: var(--sv-blue); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.docs-two h3 { margin: 8px 0 5px; font-size: 17px; }
.docs-two p { margin: 0; color: var(--sv-muted); font-size: 10px; }
.docs-inline-link { display: inline-flex; margin-top: 14px; font-size: 11px; font-weight: 800; text-decoration: none; }

/* Endpoints מקבלים חתימת method ונתיב קריאה לפני קטע הקוד. */
.docs-route { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; direction: ltr; }
.docs-route b { min-width: 48px; padding: 5px 8px; border-radius: 7px; color: #fff; text-align: center; font-size: 8px; }
.docs-route .post { background: var(--sv-blue); }
.docs-route .get { background: var(--sv-mint); }
.docs-route code { padding: 0; color: var(--sv-ink); background: transparent; font-size: 12px; }
.docs-route span { padding: 4px 7px; border: 1px solid var(--sv-line); border-radius: 999px; color: var(--sv-muted); font-size: 7px; }
.docs-endpoint > pre, .docs-response pre { margin: 23px 0 0; overflow: auto; border: 1px solid #334159; border-radius: 16px; padding: 23px; color: #dce9ff; background: var(--sv-ink); box-shadow: 0 14px 34px rgba(16, 24, 40, .13); text-align: left; }
.docs-endpoint pre code, .docs-response pre code { padding: 0; color: inherit; background: transparent; font: 10px/1.8 Consolas, monospace; }
.docs-response { margin-top: 16px; }
.docs-response > span { color: var(--sv-mint); font: 8px Consolas, monospace; }
.docs-response pre { margin-top: 7px; background: #172235; }
.docs-table { display: grid; margin-top: 20px; border: 1px solid var(--sv-line); border-radius: 14px; overflow: hidden; }
.docs-table > div { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--sv-line); background: #fff; }
.docs-table > div:last-child { border-bottom: 0; }
.docs-table b { color: var(--sv-ink); font-size: 10px; }
.docs-table span { color: var(--sv-muted); font-size: 10px; direction: ltr; }

.docs-enterprise { margin-top: 64px; padding: 36px; border: 1px solid #b9d4f3; border-radius: 22px; background: linear-gradient(120deg, #f7fbff, #eaf3ff); }
.docs-enterprise h2 { margin: 9px 0; font-size: 34px; letter-spacing: -.045em; }
.docs-enterprise p { color: var(--sv-muted); font-size: 12px; }
.docs-enterprise a { color: var(--sv-blue); font-size: 11px; font-weight: 850; text-decoration: none; }

@media (max-width: 860px) {
    .docs-layout { display: block; }
    .docs-sidebar { position: static; width: 100%; height: auto; display: flex; flex-direction: row; gap: 5px; padding: 12px 16px; border-inline-end: 0; border-bottom: 1px solid var(--sv-line); overflow-x: auto; }
    .docs-sidebar span { display: none; }
    .docs-sidebar a { flex: 0 0 auto; }
    .docs-content { width: min(100% - 30px, 920px); padding-top: 48px; }
}

@media (max-width: 620px) {
    .docs-header { min-height: 62px; padding-inline: 14px; }
    .docs-header nav a:not(.docs-primary) { display: none; }
    .docs-content { padding-bottom: 74px; }
    .docs-hero h1 { font-size: 44px; }
    .docs-base { width: 100%; grid-template-columns: 1fr auto; }
    .docs-base small { grid-column: 1 / -1; }
    .docs-section { padding-block: 48px; }
    .docs-two { grid-template-columns: 1fr; }
    .docs-table > div { grid-template-columns: 1fr; gap: 4px; }
    .docs-enterprise { padding: 26px 21px; }
}
