:root {
  color-scheme: light;
  --ink: #152033;
  --muted: #5c687d;
  --line: #dbe2ec;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --navy: #142b4a;
  --blue: #2357d8;
  --cyan: #15a8b8;
  --green: #18794e;
  --amber: #9a6700;
  --red: #c4314b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); line-height: 1.65; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { padding: .12rem .35rem; border-radius: .35rem; background: #eef2f8; font-size: .9em; }
pre { margin: 1rem 0 1.5rem; padding: 1rem 1.1rem; overflow: auto; border: 1px solid #273a55; border-radius: .7rem; color: #e9f2ff; background: #132238; }
pre code { padding: 0; color: inherit; background: transparent; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); font-weight: 760; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-size: .8rem; }
.top-links { display: flex; gap: 18px; font-size: .92rem; }

.portal { max-width: 1120px; margin: 0 auto; padding: 72px 28px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .82rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { max-width: 820px; margin: 0 0 20px; font-size: clamp(2.25rem, 5vw, 4.2rem); }
h2 { margin-top: 2.6rem; font-size: 1.65rem; }
h3 { margin-top: 2rem; font-size: 1.12rem; }
.lede { max-width: 760px; margin: 0 0 34px; color: var(--muted); font-size: 1.15rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 18px; margin-top: 34px; }
.card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: linear-gradient(180deg,#fff,#fafcff); box-shadow: 0 10px 30px rgba(20,43,74,.06); }
.card:hover { border-color: #9db5e6; text-decoration: none; transform: translateY(-1px); }
.card h2 { margin: 10px 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; color: var(--green); background: #e8f7ef; font-size: .72rem; font-weight: 750; text-transform: uppercase; }

.docs-shell { display: grid; grid-template-columns: 250px minmax(0,820px); gap: 44px; max-width: 1200px; margin: 0 auto; padding: 38px 28px 80px; }
.sidebar { position: sticky; top: 92px; align-self: start; }
.sidebar-title { margin-bottom: 14px; color: var(--navy); font-weight: 750; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar a { padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: .92rem; }
.sidebar a:hover, .sidebar a[aria-current="page"] { color: var(--blue); background: #eef3ff; text-decoration: none; }
.content h1 { margin: 0 0 16px; font-size: clamp(2rem,4vw,3rem); }
.content > p:first-of-type { color: var(--muted); font-size: 1.08rem; }
.callout { margin: 1.25rem 0; padding: 14px 17px; border-left: 4px solid var(--blue); border-radius: 6px; background: #f2f6ff; }
.callout.warning { border-color: var(--amber); background: #fff8e6; }
.callout.success { border-color: var(--green); background: #edf9f2; }
.endpoint { display: flex; align-items: center; gap: 10px; margin: 1.5rem 0 .6rem; }
.method { padding: 4px 8px; border-radius: 5px; color: #fff; background: var(--blue); font-size: .78rem; font-weight: 800; }
.method.get { background: var(--green); }
.table-wrap { overflow-x: auto; }
table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); }
.status-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.status-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.footer { padding: 28px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .86rem; }

@media (max-width: 800px) {
  .topbar { padding: 0 18px; }
  .top-links { display: none; }
  .portal { padding: 48px 20px; }
  .docs-shell { display: block; padding: 28px 20px 64px; }
  .sidebar { position: static; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

