:root {
  --ink: #0b2238; --muted: #5f7184; --line: #dce6ed; --soft: #f3f8f8;
  --paper: #fbfdfc; --navy: #071b2b; --navy-2: #0b2a40; --mint: #86f0cf;
  --mint-strong: #2fcfa7; --blue: #2878ff; --code: #071a2b; --white: #fff;
  --shadow: 0 18px 60px rgba(6, 28, 44, .10); --radius: 14px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #e8f2f5; --muted: #93a9b7; --line: #233e50; --soft: #0c2638;
  --paper: #071a29; --white: #0b2233; --shadow: 0 18px 60px rgba(0,0,0,.24);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.7; }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -60px; padding: 10px 16px; background: var(--mint); color: var(--navy); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; padding: 0 3vw; color: white; background: rgba(7,27,43,.94); border-bottom: 1px solid rgba(255,255,255,.11); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand strong { color: var(--mint); font-weight: 600; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(3, 6px); gap: 3px; align-items: end; justify-content: center; padding: 6px; border-radius: 8px; background: var(--mint); transform: rotate(-6deg); }
.brand-mark i { display: block; background: var(--navy); border-radius: 2px 2px 1px 1px; }
.brand-mark i:nth-child(1) { height: 8px; }.brand-mark i:nth-child(2) { height: 16px; }.brand-mark i:nth-child(3) { height: 12px; }
.product-nav { display: flex; gap: 4px; margin-left: 6vw; height: 100%; align-items: center; }
.product-nav a { color: #afc2ce; text-decoration: none; padding: 8px 13px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: .2s; }
.product-nav a:hover, .product-nav a.active { color: white; background: rgba(255,255,255,.08); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle { border: 1px solid rgba(255,255,255,.16); color: white; background: rgba(255,255,255,.05); border-radius: 9px; min-width: 40px; height: 40px; cursor: pointer; }
.paytraq-link { text-decoration: none; color: var(--navy); background: var(--mint); padding: 9px 15px; border-radius: 9px; font-size: 13px; font-weight: 800; }
.menu-toggle { display: none; padding: 0 12px; }
.hero { position: relative; overflow: hidden; min-height: 440px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(420px,.9fr); gap: 7vw; align-items: center; padding: 68px max(5vw, calc((100vw - 1440px)/2)); color: white; background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(134,240,207,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(134,240,207,.11) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, black, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 450px; height: 450px; right: -160px; top: -180px; background: var(--mint); opacity: .12; filter: blur(60px); border-radius: 50%; }
.hero-grid, .hero-code { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #b8ccd6; font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(134,240,207,.10); }
.hero h1 { margin: 20px 0 18px; font-size: clamp(43px, 5vw, 70px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero p { max-width: 650px; color: #b8ccd6; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.primary-button { padding: 12px 17px; border-radius: 9px; color: var(--navy); background: var(--mint); text-decoration: none; font-weight: 800; }
.endpoint-copy { cursor: pointer; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 12px 15px; color: #c8d7df; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13); border-radius: 9px; font: 600 12px ui-monospace, monospace; }
.hero-code { border: 1px solid rgba(255,255,255,.13); border-radius: 14px; overflow: hidden; background: rgba(3,16,26,.72); box-shadow: 0 28px 70px rgba(0,0,0,.32); transform: perspective(900px) rotateY(-2deg); }
.window-bar { height: 43px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); }
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #405466; }.window-bar span:first-child { background: #f47676; }.window-bar span:nth-child(2) { background: #f2c25e; }.window-bar span:nth-child(3) { background: #69d098; }
.window-bar b { margin-left: 8px; color: #8299a7; font: 500 11px ui-monospace, monospace; }
.hero-code pre { margin: 0; padding: 28px; overflow: auto; color: #e7f1f4; font: 500 13px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }.code-muted { color: #708b9a; }.code-blue { color: #70adff; }.code-green { color: #8fe5ba; }
.docs-layout { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 900px) 210px; justify-content: center; align-items: start; }
.sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; padding: 30px 22px 40px 28px; border-right: 1px solid var(--line); background: var(--paper); }
.search-wrap { position: relative; margin-bottom: 26px; }.search-wrap label { position: absolute; width: 1px; height: 1px; overflow: hidden; }.search-wrap > span { position: absolute; left: 12px; top: 9px; color: var(--muted); }.search-wrap input { width: 100%; height: 39px; padding: 0 38px 0 34px; border-radius: 8px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); outline: none; font-size: 12px; }.search-wrap input:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(47,207,167,.12); }.search-wrap kbd { position: absolute; right: 10px; top: 9px; min-width: 20px; padding: 1px 5px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; text-align: center; font: 11px ui-monospace, monospace; }
.search-results { position: absolute; top: 45px; left: 0; right: 0; z-index: 10; max-height: 320px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: var(--shadow); }.search-results a { display: block; padding: 8px 9px; border-radius: 6px; text-decoration: none; font-size: 12px; line-height: 1.3; }.search-results a:hover { background: var(--soft); }.search-results small { display: block; color: var(--muted); }
.nav-label, .toc-title { margin: 0 10px 10px; color: var(--muted); font: 800 10px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }.side-link { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }.side-link span { color: #9eb0bb; font: 10px ui-monospace, monospace; }.side-link:hover { color: var(--ink); background: var(--soft); }.side-link.active { color: var(--ink); background: rgba(47,207,167,.12); }.side-link.active span { color: #159a79; }
.sidebar-card { margin: 28px 3px 0; padding: 16px; border-radius: 10px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); }.sidebar-card span { font-size: 12px; font-weight: 800; }.sidebar-card p { margin: 4px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }.sidebar-card a { color: #168d71; text-decoration: none; font-size: 11px; font-weight: 800; }
.documentation { min-width: 0; padding: 34px clamp(28px,4vw,66px) 80px; }
.content-banner { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 45px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 8px 30px rgba(8,36,51,.05); }.content-banner div { padding: 15px 18px; border-right: 1px solid var(--line); }.content-banner div:last-child { border: 0; }.content-banner span, .content-banner strong { display: block; }.content-banner span { color: var(--muted); font: 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .09em; }.content-banner strong { margin-top: 2px; font-size: 13px; }
.legacy-content { max-width: 760px; }.legacy-content > div:first-child h1 { margin-top: 0; }.legacy-content h1 { margin: 70px 0 15px; font-size: 34px; letter-spacing: -.035em; line-height: 1.15; }.legacy-content h2 { margin: 56px 0 16px; padding-top: 8px; font-size: 26px; line-height: 1.25; letter-spacing: -.025em; }.legacy-content h3 { display: flex; align-items: center; gap: 10px; margin: 42px 0 14px; padding-top: 8px; font-size: 19px; line-height: 1.35; }.legacy-content h4 { margin: 26px 0 10px; color: var(--muted); font: 800 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }.legacy-content p, .legacy-content li { color: var(--muted); }.legacy-content .lead { color: var(--ink); font-size: 18px; line-height: 1.65; }.legacy-content a { color: #168d71; text-decoration-thickness: 1px; text-underline-offset: 3px; }.legacy-content hr { margin: 45px 0; border: 0; border-top: 1px solid var(--line); }.legacy-content img { max-width: 100%; }.legacy-content .badge { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 5px; background: var(--soft); color: var(--muted); font: 800 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }
.method-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; color: #05664e; background: #d5f8ed; font: 800 10px ui-monospace, monospace; letter-spacing: .06em; }.method-post { color: #724400; background: #ffefc6; }
.code-shell { margin: 20px 0 30px; overflow: hidden; border-radius: 11px; background: var(--code); box-shadow: 0 12px 35px rgba(2,22,35,.15); }.code-bar { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; color: #7590a1; border-bottom: 1px solid rgba(255,255,255,.08); font: 700 9px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }.copy-button { cursor: pointer; padding: 5px 8px; color: #9db0bc; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 5px; font: 700 9px ui-monospace, monospace; }.copy-button:hover { color: white; }.code-shell pre { max-height: 530px; margin: 0; overflow: auto; padding: 20px; color: #d8e5ea; white-space: pre; tab-size: 2; font: 500 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.table-wrap { width: 100%; margin: 16px 0 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }.legacy-content table { width: 100%; border-collapse: collapse; font-size: 12px; }.legacy-content th, .legacy-content td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }.legacy-content tr:last-child td { border-bottom: 0; }.legacy-content th { color: var(--ink); background: var(--soft); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }.legacy-content td { color: var(--muted); }
.on-this-page { position: sticky; top: 72px; max-height: calc(100vh - 72px); overflow-y: auto; padding: 38px 24px; border-left: 1px solid var(--line); }.on-this-page nav { display: flex; flex-direction: column; }.on-this-page nav a { display: block; margin-bottom: 8px; padding-left: 11px; color: var(--muted); border-left: 1px solid var(--line); text-decoration: none; font-size: 11px; line-height: 1.4; }.on-this-page nav a:hover, .on-this-page nav a.active { color: var(--ink); border-color: var(--mint-strong); }.source-link { display: block; margin: 25px 0 0 11px; color: #168d71; text-decoration: none; font-size: 10px; font-weight: 800; }
.docs-footer { display: flex; justify-content: space-between; margin-top: 90px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }.docs-footer a { color: #168d71; text-decoration: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; padding: 10px 14px; border-radius: 8px; color: var(--paper); background: var(--mint); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 1180px) { .docs-layout { grid-template-columns: 230px minmax(0,900px); }.on-this-page { display: none; }.hero { grid-template-columns: 1fr 430px; gap: 4vw; }.product-nav { margin-left: 3vw; }.product-nav a { padding-inline: 8px; } }
@media (max-width: 900px) { .product-nav, .paytraq-link { display: none; }.menu-toggle { display: inline-block; }.hero { grid-template-columns: 1fr; padding: 55px 7vw; }.hero-code { max-width: 640px; width: 100%; transform: none; }.docs-layout { display: block; }.sidebar { position: fixed; z-index: 60; top: 72px; left: 0; width: min(310px,85vw); height: calc(100vh - 72px); transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }.mobile-overlay { position: fixed; inset: 72px 0 0; z-index: 55; background: rgba(2,15,25,.55); }.documentation { padding-inline: 7vw; }.legacy-content { max-width: none; } }
@media (max-width: 580px) { .topbar { padding-inline: 18px; }.brand strong { display: none; }.hero { min-height: auto; padding: 45px 20px; }.hero h1 { font-size: 42px; }.hero p { font-size: 16px; }.hero-actions { align-items: stretch; flex-direction: column; }.endpoint-copy { max-width: none; }.hero-code pre { padding: 20px; font-size: 11px; }.documentation { padding: 28px 20px 65px; }.content-banner { grid-template-columns: 1fr; }.content-banner div { border-right: 0; border-bottom: 1px solid var(--line); }.legacy-content h1 { font-size: 29px; }.legacy-content h2 { font-size: 23px; }.legacy-content h3 { align-items: flex-start; flex-direction: column; }.docs-footer { gap: 20px; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
/* PayTraq brand refresh */
:root { --ink:#1e2022; --muted:#596d82; --line:#dce5f2; --soft:#f7faff; --paper:#fff; --navy:#21325b; --navy-2:#1d4185; --mint:#377dff; --mint-strong:#377dff; --blue:#377dff; --code:#f7faff; --white:#fff; color-scheme:light; }
html[data-theme="dark"] { --ink:#1e2022; --muted:#677788; --line:#e7eaf3; --soft:#f7faff; --paper:#fff; --white:#fff; color-scheme:light; }
body { font-size:17px; line-height:1.75; }
.topbar { height:72px; color:#21325b; background:rgba(255,255,255,.96); border-bottom:1px solid #e7eaf3; box-shadow:0 3px 16px rgba(33,50,91,.06); }
.brand img { display:block; width:132px; height:46px; object-fit:contain; }
.product-nav a { color:#677788; font-size:14px; }.product-nav a:hover,.product-nav a.active { color:#377dff; background:#eaf1ff; }
.paytraq-link { color:#fff; background:#377dff; }.menu-toggle { color:#21325b; background:#f7faff; border-color:#e7eaf3; }
.compact-hero { min-height:270px; display:block; padding-top:38px; padding-bottom:38px; color:#1e2022; background:linear-gradient(135deg,#f7faff 0%,#eef4ff 65%,#fff 100%); border-bottom:1px solid #e7eaf3; }
.compact-hero .hero-grid { max-width:1050px; }
.compact-hero::before { opacity:.38; background-image:linear-gradient(rgba(55,125,255,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(55,125,255,.10) 1px,transparent 1px); mask-image:linear-gradient(to right,black,transparent 75%); }
.compact-hero::after { background:#377dff; opacity:.10; }
.compact-hero .eyebrow { color:#377dff; }.compact-hero .status-dot { background:#00c9a7; box-shadow:0 0 0 5px rgba(0,201,167,.12); }
.compact-hero h1 { margin:14px 0 10px; color:#21325b; font-size:clamp(36px,4vw,52px); }.compact-hero p { margin:0; color:#677788; font-size:18px; }
.primary-button { color:#fff; background:#377dff; }.endpoint-copy { color:#21325b; background:#fff; border-color:#d7e2f2; }
.endpoint-copyline { display:flex; align-items:center; gap:10px; min-width:0; max-width:100%; padding:9px 10px 9px 15px; color:#21325b; background:#fff; border:1px solid #d7e2f2; border-radius:9px; }
.endpoint-copyline code { overflow-wrap:anywhere; white-space:normal; font:700 14px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; }
.endpoint-copyline .endpoint-copy { flex:0 0 auto; height:34px; padding:0 11px; cursor:pointer; border:1px solid #d7e2f2; border-radius:6px; font-size:12px; font-weight:800; }
.docs-layout.two-column { max-width:1380px; grid-template-columns:280px minmax(0,1040px); }.docs-layout.two-column .documentation { padding-right:clamp(28px,5vw,80px); }
.side-link.active { color:#377dff; background:#eaf1ff; }.side-link.active span,.sidebar-card a,.legacy-content a,.docs-footer a { color:#377dff; }
.side-link { font-size:14px; padding-top:9px; padding-bottom:9px; }.nav-label,.toc-title { font-size:11px; }.search-wrap input { font-size:14px; }
.content-banner { box-shadow:0 8px 30px rgba(33,50,91,.05); }.content-banner span { font-size:11px; }.content-banner strong { font-size:15px; }
.method-badge { color:#075f4c; background:#d8f8f1; }.method-post { color:#174ea6; background:#eaf1ff; }
.legacy-content { max-width:820px; }.legacy-content p,.legacy-content li { font-size:16px; }.legacy-content .lead { font-size:20px; }.legacy-content h1 { font-size:38px; }.legacy-content h2 { font-size:30px; }.legacy-content h3 { font-size:22px; }.legacy-content h4 { font-size:12px; }
.authentication-content { margin-bottom:48px; }.authentication-content h3 { margin-top:44px; }.authentication-content h4 { margin:34px 0 12px; color:#21325b; font-family:inherit; font-size:18px; line-height:1.4; letter-spacing:-.01em; text-transform:none; }.authentication-content p code,.authentication-content li code { padding:2px 6px; color:#174ea6; background:#eaf1ff; border-radius:5px; font:700 .88em ui-monospace,SFMono-Regular,Menlo,monospace; }.authentication-content ul { margin:10px 0 22px; padding-left:24px; }.authentication-content li { margin:5px 0; }.auth-warning { margin:24px 0 32px; padding:16px 18px; color:#21325b; background:#fff6df; border:1px solid #f2d693; border-left:4px solid #f0b26b; border-radius:8px; font-size:15px; }.auth-code { margin-top:14px; margin-bottom:26px; }.auth-code pre { max-height:none; }
.code-shell { color:#1e2022; background:linear-gradient(135deg,#f7faff 0%,#eef4ff 100%); border:1px solid #d7e2f2; box-shadow:0 10px 28px rgba(33,50,91,.08); }
.code-bar { color:#596d82; background:rgba(255,255,255,.42); border-bottom-color:#d7e2f2; font-size:10px; }.code-shell pre { color:#21325b; font-size:14px; line-height:1.75; }.copy-button { color:#21325b; background:#fff; border-color:#cddaea; font-size:10px; }.copy-button:hover { color:#377dff; }
.search-wrap input:focus { border-color:#377dff; box-shadow:0 0 0 3px rgba(55,125,255,.12); }
.mobile-product-nav { display:none; }
@media (max-width:900px) { .compact-hero { padding:34px 7vw; }.docs-layout.two-column { display:block; }.mobile-product-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-bottom:22px; padding-bottom:22px; border-bottom:1px solid #dce5f2; }.mobile-product-nav a { padding:10px 12px; color:#596d82; background:#f7faff; border:1px solid #e7eaf3; border-radius:7px; text-decoration:none; font-size:14px; font-weight:700; }.mobile-product-nav a.active { color:#fff; background:#377dff; border-color:#377dff; } }
@media (max-width:580px) { .brand img { width:112px; }.compact-hero { padding:30px 20px; }.compact-hero h1 { font-size:36px; } }
