:root {
  --ink: #17212b;
  --muted: #607080;
  --line: #dce3e7;
  --surface: #ffffff;
  --surface-soft: #f5f7f8;
  --teal: #087f76;
  --teal-dark: #075f59;
  --teal-soft: #e7f5f2;
  --coral: #d85f45;
  --coral-soft: #fff0eb;
  --code: #121a21;
  --sidebar-width: 272px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: "Manrope", Arial, sans-serif; font-size: 15px; line-height: 1.65; letter-spacing: 0; }
button, input { font: inherit; }
a { color: inherit; }
code, pre, kbd { font-family: "DM Mono", Consolas, monospace; letter-spacing: 0; }
.topbar { position: fixed; z-index: 30; inset: 0 0 auto 0; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 42px; overflow: visible; background: white; }
.brand-mark img { display: block; width: 58px; height: 58px; max-width: none; object-fit: contain; transform: scale(1.12); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-size: 14px; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.version { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #24a36f; box-shadow: 0 0 0 3px #dff4e9; }
.rapidapi-link { display: flex; align-items: center; gap: 7px; color: var(--teal-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.rapidapi-link svg, .portal-link svg { width: 14px; }
.portal-link { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; }
.layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); padding-top: 68px; min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; top: 68px; bottom: 0; left: 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 22px 18px; border-right: 1px solid var(--line); background: var(--surface-soft); overflow-y: auto; }
.search-wrap { position: relative; display: flex; align-items: center; margin-bottom: 20px; }
.search-wrap svg { position: absolute; left: 11px; width: 15px; color: var(--muted); }
.search-wrap input { width: 100%; height: 38px; padding: 0 34px; border: 1px solid #ccd5da; border-radius: 6px; outline: none; color: var(--ink); background: white; font-size: 12px; }
.search-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.search-wrap kbd { position: absolute; right: 10px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav p { margin: 17px 10px 6px; color: #8a969f; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.nav p:first-child { margin-top: 0; }
.nav a { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 10px; border-left: 2px solid transparent; color: #53616d; font-size: 12px; font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--teal-dark); background: white; border-left-color: var(--teal); }
.method-mini { color: var(--teal); font-family: "DM Mono"; font-size: 8px; font-weight: 500; }
.sidebar-footer { display: flex; gap: 10px; align-items: center; margin-top: auto; padding: 18px 9px 2px; border-top: 1px solid var(--line); }
.sidebar-footer svg { width: 18px; color: var(--teal); }
.sidebar-footer span { display: flex; flex-direction: column; line-height: 1.3; }
.sidebar-footer strong { font-size: 11px; }
.sidebar-footer small { color: var(--muted); font-size: 9px; }
.content { grid-column: 2; width: min(100%, 1060px); padding: 72px 64px 48px; }
.doc-section { padding-bottom: 74px; border-bottom: 1px solid var(--line); margin-bottom: 72px; }
.intro { padding-top: 24px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--teal-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; }
h1 { max-width: 740px; margin: 14px 0 16px; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; font-weight: 700; }
.lead { max-width: 760px; margin: 0 0 28px; color: #52616d; font-size: 18px; line-height: 1.7; }
.base-url { display: grid; grid-template-columns: auto minmax(0,1fr) 36px; align-items: center; max-width: 760px; min-height: 50px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.base-url > span { align-self: stretch; display: grid; place-items: center; padding: 0 15px; color: white; background: var(--ink); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.base-url code { padding: 0 15px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.base-url-stack { display: grid; max-width: 760px; gap: 8px; }
.base-url-stack .base-url { max-width: none; }
.base-url.direct > span { background: var(--teal-dark); }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--teal); background: var(--teal-soft); }
.icon-button svg { width: 16px; }
.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 38px; border: 1px solid var(--line); background: var(--line); }
.capability-grid article { min-width: 0; padding: 24px; background: white; }
.capability-grid svg { width: 22px; color: var(--coral); margin-bottom: 14px; }
.capability-grid strong, .capability-grid span { display: block; }
.capability-grid strong { font-size: 13px; }
.capability-grid span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.access-card { display: flex; min-width: 0; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 6px; }
.access-card.direct-access { border-top-color: var(--coral); }
.access-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 5px; color: var(--teal-dark); background: var(--teal-soft); }
.direct-access .access-icon { color: var(--coral); background: var(--coral-soft); }
.access-icon svg { width: 19px; }
.access-label { margin: 18px 0 3px!important; color: var(--muted); font-size: 9px!important; font-weight: 700; text-transform: uppercase; }
.access-card h3 { margin: 0 0 8px; font-size: 20px; }
.access-card > p { margin: 0; color: var(--muted); font-size: 11px; }
.access-card ul { flex: 1; margin: 18px 0; padding-left: 18px; color: #45545f; font-size: 10px; }
.access-card li { margin: 7px 0; }
.access-card > a, .billing-choice a { display: flex; width: fit-content; align-items: center; gap: 7px; color: var(--teal-dark); font-size: 10px; font-weight: 700; text-decoration: none; }
.direct-access > a { color: var(--coral); }
.access-card a svg, .billing-choice a svg { width: 12px; }
.comparison-table { margin-top: 18px; }
.onboarding-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 28px; border: 1px solid var(--line); background: var(--line); }
.onboarding-steps article { display: flex; gap: 12px; padding: 16px; background: white; }
.onboarding-steps article > span { display: grid; flex: 0 0 25px; height: 25px; place-items: center; border-radius: 50%; color: white; background: var(--ink); font: 9px "DM Mono"; }
.onboarding-steps strong { font-size: 11px; }
.onboarding-steps p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.code-caption { padding: 0 10px; color: #85ddd4; font-size: 10px; font-weight: 700; }
.direct-code { margin-bottom: 20px; }
.section-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.section-heading > span { display: grid; place-items: center; flex: 0 0 34px; height: 26px; margin-top: 3px; border: 1px solid #acd8d2; border-radius: 4px; color: var(--teal-dark); background: var(--teal-soft); font-family: "DM Mono"; font-size: 10px; }
h2 { margin: 0; font-size: 27px; line-height: 1.3; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
h3 { margin: 30px 0 13px; font-size: 14px; }
.callout { display: flex; gap: 13px; padding: 16px 18px; border-left: 3px solid; border-radius: 4px; margin: 20px 0; }
.callout svg { flex: 0 0 18px; width: 18px; margin-top: 2px; }
.callout strong { font-size: 12px; }
.callout p { margin: 3px 0 0; font-size: 12px; }
.callout.warning { border-color: var(--coral); background: var(--coral-soft); }
.callout.warning svg { color: var(--coral); }
.callout.info { border-color: var(--teal); background: var(--teal-soft); }
.callout.info svg { color: var(--teal); }
.callout.neutral { border-color: #7a8995; background: var(--surface-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 11px 14px; color: #6d7b86; background: var(--surface-soft); font-size: 9px; text-transform: uppercase; }
td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; }
td code { color: var(--teal-dark); font-size: 11px; }
.required, .type { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.required { color: #a33f29; background: var(--coral-soft); }
.type { color: var(--teal-dark); background: var(--teal-soft); }
.code-panel { overflow: hidden; border: 1px solid #293641; border-radius: 6px; background: var(--code); }
.code-tabs { display: flex; align-items: center; min-height: 45px; padding: 0 8px; border-bottom: 1px solid #2b3944; }
.code-tab { height: 45px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; color: #8394a2; background: transparent; font-size: 11px; cursor: pointer; }
.code-tab.active { color: #85ddd4; border-bottom-color: #2db8aa; }
.code-copy { margin-left: auto; color: #8fa0ad; }
.code-copy:hover { color: white; background: #26343e; }
.code-block { display: none; min-height: 420px; max-height: 580px; margin: 0; padding: 24px; overflow: auto; color: #d8e3e8; background: var(--code); font-size: 11px; line-height: 1.75; white-space: pre; }
.code-block.active { display: block; }
.example-block { margin-top: 24px; overflow: hidden; border: 1px solid #293641; border-radius: 6px; background: var(--code); }
.example-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px; padding: 10px 16px; border-bottom: 1px solid #2b3944; color: white; }
.example-title span { font-size: 11px; font-weight: 700; }
.example-title small { color: #91a2ae; font-size: 9px; text-align: right; }
.example-code { max-height: 520px; margin: 0; padding: 22px; overflow: auto; color: #d8e3e8; background: var(--code); font-size: 10px; line-height: 1.7; white-space: pre; }
.example-code.tall { max-height: 680px; }
.fuel-examples { display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 26px; }
.endpoint-bar { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; }
.endpoint-bar > span:last-child { color: var(--muted); font-size: 12px; text-align: right; }
.method { padding: 4px 8px; border-radius: 3px; color: white; background: var(--teal); font-family: "DM Mono"; font-size: 9px; font-weight: 500; }
.response-codes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.response-codes b { margin-right: 4px; color: var(--ink); }
.parameter-list { border-top: 1px solid var(--line); }
.parameter-list article { display: grid; grid-template-columns: 235px 1fr; gap: 14px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.parameter-list article > div { grid-row: span 2; }
.parameter-list article > div > * { margin-right: 7px; }
.parameter-list p, .parameter-list small { margin: 0; }
.parameter-list p { font-size: 12px; }
.parameter-list small { color: var(--muted); font-size: 10px; }
.mode-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mode-grid article { padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 5px; }
.mode-grid article > span { color: var(--coral); font-family: "DM Mono"; font-size: 10px; }
.mode-grid h3 { margin: 12px 0 7px; }
.mode-grid p { min-height: 76px; margin: 0 0 13px; color: var(--muted); font-size: 11px; }
.mode-grid article > code { display: block; overflow: hidden; padding: 8px; background: var(--surface-soft); font-size: 9px; text-overflow: ellipsis; }
.split-example { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.split-example h3 { margin-top: 0; }
.split-example > div > p { color: var(--muted); font-size: 12px; }
.split-example pre { margin: 0; padding: 22px; border-radius: 6px; overflow-x: auto; color: #d8e3e8; background: var(--code); font-size: 11px; line-height: 1.7; }
details { border: 1px solid var(--line); border-radius: 6px; }
summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; font-size: 12px; font-weight: 700; cursor: pointer; }
summary svg { width: 16px; }
details[open] summary { border-bottom: 1px solid var(--line); }
.field-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 24px; padding: 18px; }
.field-columns code { min-width: 0; overflow-wrap: anywhere; color: var(--teal-dark); font-size: 10px; }
.schema-list { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.schema-list article { display: grid; grid-template-columns: minmax(210px,auto) 1fr; gap: 18px; padding: 15px; border-bottom: 1px solid var(--line); }
.schema-list article:last-child { border-bottom: 0; }
.schema-list code { color: var(--teal-dark); font-size: 10px; overflow-wrap: anywhere; }
.schema-list p { margin: 0; color: var(--muted); font-size: 10px; }
.status-code { display: inline-block; min-width: 35px; padding: 3px 6px; border-radius: 3px; text-align: center; font-family: "DM Mono"; font-size: 9px; }
.status-code.success { color: #096642; background: #e1f5ea; }
.status-code.client { color: #925023; background: #fff0dd; }
.status-code.server { color: #9e3525; background: #ffe7e3; }
.pricing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.billing-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.billing-choice article { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 13px; align-items:start; padding: 18px; border: 1px solid var(--line); border-radius: 5px; }
.billing-choice article > svg { width: 20px; color: var(--coral); }
.billing-choice strong { font-size: 11px; }
.billing-choice p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.direct-plan-note { display: flex; gap: 12px; margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--teal); background: var(--teal-soft); }
.direct-plan-note > svg { flex: 0 0 18px; width: 18px; color: var(--teal); }
.direct-plan-note strong { font-size: 11px; }
.direct-plan-note p { margin: 3px 0 0; color: #435b5a; font-size: 10px; }
.pricing-card { display: flex; min-width: 0; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-top: 3px solid #7d8992; border-radius: 6px; background: white; }
.pricing-card.recommended { border-color: var(--teal); border-top-width: 3px; box-shadow: 0 8px 24px rgba(8,127,118,.10); }
.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 27px; }
.plan-heading h3 { margin: 0; font-size: 14px; }
.plan-heading > span { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 3px; color: #775d00; background: #fff3bd; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.plan-heading > span svg { width: 10px; fill: currentColor; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin: 14px 0 17px; }
.plan-price strong { font-size: 29px; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 10px; }
.pricing-card dl { margin: 0 0 20px; }
.pricing-card dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.pricing-card dt { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.pricing-card dd { margin: 2px 0 0; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.pricing-card > a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; margin-top: auto; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); font-size: 10px; font-weight: 700; text-decoration: none; }
.pricing-card > a:hover, .pricing-card.recommended > a { color: white; background: var(--teal-dark); border-color: var(--teal-dark); }
.pricing-card > a svg { width: 12px; }
.volume-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 18px 20px; border-left: 3px solid var(--coral); border-radius: 4px; background: var(--surface-soft); }
.volume-cta > div { display: flex; align-items: center; gap: 13px; }
.volume-cta > div > svg { width: 21px; color: var(--coral); }
.volume-cta span { display: flex; flex-direction: column; }
.volume-cta strong { font-size: 12px; }
.volume-cta small { color: var(--muted); font-size: 10px; }
.volume-cta > a { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 4px; color: white; background: var(--coral); font-size: 10px; font-weight: 700; text-decoration: none; }
.volume-cta > a svg { width: 13px; }
.pricing-note { margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.contact-grid { display: grid; grid-template-columns: minmax(240px,.75fr) minmax(360px,1.25fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.contact-grid article { display: flex; gap: 14px; min-width: 0; padding: 20px; }
.contact-grid article + article { border-left: 1px solid var(--line); }
.contact-grid svg { flex: 0 0 20px; width: 20px; color: var(--coral); }
.contact-grid div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.contact-grid span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.contact-grid a { width: fit-content; color: var(--teal-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.contact-grid a:hover { text-decoration: underline; }
.contact-grid address { max-width: 520px; font-size: 12px; font-style: normal; line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 10px; }
footer span:last-child { text-align: right; }
.menu-button { display: none; }
.scrim { display: none; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; padding: 10px 14px; border-radius: 5px; color: white; background: var(--ink); font-size: 11px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }
.no-results { display: none; flex-direction: column; align-items: center; gap: 8px; padding: 80px 20px; color: var(--muted); text-align: center; }
.no-results svg { width: 28px; }
.no-results strong { color: var(--ink); }
.doc-section.filtered-out { display: none; }

@media (max-width: 900px) {
  .topbar { padding: 0 16px; }
  .menu-button { display: grid; }
  .brand { margin-right: auto; margin-left: 8px; }
  .version { display: none; }
  .layout { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 16px 0 40px rgba(23,33,43,.16); }
  .sidebar.open { transform: none; }
  .scrim { position: fixed; z-index: 15; inset: 68px 0 0 0; width: 100%; border: 0; background: rgba(23,33,43,.35); }
  .scrim.show { display: block; }
  .content { width: 100%; padding: 54px 32px 40px; }
  .capability-grid, .mode-grid { grid-template-columns: 1fr; }
  .billing-choice { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mode-grid p { min-height: 0; }
}

@media (max-width: 620px) {
  .topbar { height: 62px; }
  .layout { padding-top: 62px; }
  .sidebar { top: 62px; width: min(86vw, 300px); }
  .rapidapi-link { width: 34px; height: 34px; overflow: hidden; font-size: 0; }
  .rapidapi-link svg { width: 18px; }
  .portal-link { display: none; }
  .brand small { display: none; }
  .content { padding: 38px 18px 34px; }
  .doc-section { padding-bottom: 54px; margin-bottom: 52px; }
  h1 { font-size: 38px; }
  .lead { font-size: 15px; }
  .base-url { grid-template-columns: 1fr 36px; }
  .base-url > span { display: none; }
  .base-url code { font-size: 10px; }
  .section-heading { gap: 11px; }
  h2 { font-size: 23px; }
  .code-tabs { overflow-x: auto; }
  .code-tab { padding: 0 10px; }
  .code-block { min-height: 380px; padding: 18px; font-size: 10px; }
  .example-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  .example-title small { text-align: left; }
  .example-code { padding: 18px; font-size: 9px; }
  .endpoint-bar { grid-template-columns: auto 1fr; }
  .endpoint-bar > span:last-child { grid-column: 1 / -1; text-align: left; }
  .parameter-list article { grid-template-columns: 1fr; }
  .parameter-list article > div { grid-row: auto; }
  .split-example { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .access-grid, .onboarding-steps { grid-template-columns: 1fr; }
  .billing-choice article { grid-template-columns: 26px 1fr; }
  .billing-choice article > a { grid-column: 2; }
  .volume-cta { align-items: flex-start; flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .field-columns, .schema-list { grid-template-columns: 1fr; }
  .schema-list article { border-bottom: 1px solid var(--line); }
  .schema-list article:last-child { border-bottom: 0; }
  .schema-list article { grid-template-columns: 1fr; gap: 5px; }
  table { min-width: 620px; }
  footer { flex-direction: column; gap: 5px; }
  footer span:last-child { text-align: left; }
}
