:root { --paper: #fffdf8; }
html { scroll-padding-top: 105px; scroll-behavior: smooth; }
body { background: var(--paper); }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 40; padding: 12px 20px; background: var(--sun); color: var(--ink); }
.skip-link:focus { top: 10px; }
.dev-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 16px 3vw; min-height: 80px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dev-header .brand { gap: 8px; }
.dev-header .brand img { flex: none; }
.dev-label { border-left: 1px solid var(--line); padding-left: 24px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.dev-header nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; }
.dev-header nav a { color: var(--ink); text-decoration: none; }
.dev-header a:hover { text-decoration: underline; }
.dev-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); max-width: 1480px; margin: auto; }
.dev-sidebar { position: sticky; top: 81px; align-self: start; height: calc(100dvh - 81px); overflow: auto; padding: 32px 24px; border-right: 1px solid var(--line); font-size: 14px; }
.nav-label { margin: 16px 0 10px 10px; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.dev-sidebar nav a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; }
.dev-sidebar nav a:hover { background: var(--cotton); color: var(--ink); }
.dev-sidebar nav a[aria-current] { background: #eaf0d4; color: #344707; font-weight: 700; }
.sidebar-note { margin: 40px 10px 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.sidebar-note strong { display: inline; font-size: 12px; }
.sidebar-note p { margin-top: 8px; }
.ink-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4c661b; margin-right: 8px; }
.support-link { display: block; margin: 10px; font-size: 12px; text-decoration: none; }
.dev-layout main { width: 100%; max-width: 1140px; padding: 0 clamp(24px, 5vw, 80px); min-width: 0; }
.dev-hero { padding: 66px 0 38px; }
.eyebrow { margin: 0 0 12px; color: var(--ink-soft); font-size: 10px; letter-spacing: .12em; font-weight: 800; }
h1 { max-width: 850px; font-size: clamp(44px, 5.7vw, 76px); color: var(--ink); line-height: 1.07; letter-spacing: -.04em; }
h1 em { color: var(--cobalt); font-weight: 450; }
.hero-copy { max-width: 570px; margin: 22px 0 24px; font-size: 17px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.dev-button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 46px; padding: 12px 20px; border: 1px solid var(--cobalt); border-radius: 6px; background: var(--cobalt); color: white; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.dev-button:hover { background: #202fae; }
.dev-button:disabled { opacity: .65; cursor: wait; }
.text-link { font-size: 14px; font-weight: 600; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 25px; color: var(--ink-soft); font-size: 11px; }
.hero-facts span::before { content: '✓'; margin-right: 7px; color: #48631a; }
.integration-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 45px; }
.path-card { position: relative; display: block; padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.path-card:hover { background: #f6f7ed; border-color: var(--cobalt); }
.path-icon { display: block; width: fit-content; margin-bottom: 20px; font: 700 21px monospace; color: var(--cobalt); }
.path-card h2 { margin: 5px 0 9px; font-size: 19px; }
.path-card h2 span { float: right; font-size: 15px; }
.path-card p { font-size: 13px; margin-bottom: 20px; }
.path-card code { font-size: 11px; }
main section:not(.dev-hero) { padding: 44px 0 22px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.section-number { display: grid; place-items: center; width: 32px; height: 32px; flex: none; margin-top: 3px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); font: 11px monospace; }
.section-heading .eyebrow { margin: 0 0 4px; }
.section-heading h2 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 31px; font-weight: 500; letter-spacing: -.025em; }
h3 { margin: 26px 0 10px; font-size: 17px; }
main section > p, .flow { font-size: 15px; line-height: 1.75; }
strong { color: var(--ink); }
code, textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
p code, td code, li code { padding: 2px 4px; border-radius: 3px; background: #eeeee9; font-size: .83em; overflow-wrap: anywhere; color: var(--ink); }
.endpoint { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; margin: 20px 0; background: #f2f3eb; border: 1px solid var(--line); border-radius: 6px; }
.endpoint code { overflow-wrap: anywhere; font-size: 12px; }
.endpoint .copy-button { margin-left: auto; }
.method { color: #456119; font: 700 10px ui-monospace, monospace; background: #e1ecc9; border-radius: 4px; padding: 4px 7px; }
.method.get { background: #e4e9fe; color: var(--cobalt); }
.code-example { margin: 22px 0; border: 1px solid #353c52; border-radius: 8px; overflow: hidden; background: #1d2337; color: #e6edce; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 8px 14px; border-bottom: 1px solid #353c52; background: #262d43; color: #c1c7d7; font-size: 11px; }
.code-toolbar [role='tablist'] { display: flex; gap: 6px; }
.code-toolbar [role='tab'] { border: 0; border-radius: 4px; padding: 6px 9px; background: none; font: inherit; color: #c1c7d7; cursor: pointer; }
.code-toolbar [aria-selected='true'] { background: #3c455e; color: #e3f2b7; }
.copy-button { min-height: 30px; padding: 4px 9px; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; font: inherit; font-size: 10px; cursor: pointer; }
.copy-button:hover { background: #ffffff15; }
pre { max-width: 100%; max-height: 480px; overflow: auto; margin: 0; padding: 22px; font-size: 12px; line-height: 1.9; tab-size: 2; }
pre code { background: none; color: inherit; }
main section > .small-note { font-size: 12px; }
.callout { padding: 18px 20px; margin: 24px 0; border-left: 3px solid #a1b64c; border-radius: 0 6px 6px 0; background: #f1f4e5; font-size: 13px; }
.callout p { margin: 5px 0 0; }
.tool-reference { padding: 18px 0; border-bottom: 1px solid var(--line); }
.tool-reference summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.tool-reference summary::before { content: '+'; color: var(--cobalt); font: 18px monospace; width: 16px; }
.tool-reference[open] summary::before { content: '−'; }
.tool-reference summary code { font-size: 13px; font-weight: 600; }
.tool-reference summary span { color: var(--ink-soft); font-size: 12px; }
.tool-reference p { margin: 14px 0 0; font-size: 13px; }
.tool-reference pre { margin-top: 15px; padding: 16px; border-radius: 6px; background: #f2f3eb; font-size: 11px; }
#explorer-form { padding: 22px; margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; background: #f9f8f3; }
#explorer-form label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
#explorer-form label span { color: var(--ink-soft); font-weight: 400; }
#explorer-form select, #explorer-form textarea { width: 100%; min-height: 44px; padding: 12px; border: 1px solid #aaa99f; border-radius: 5px; background: var(--paper); color: var(--ink); font-size: 13px; }
#explorer-form select { margin-bottom: 18px; }
#explorer-form textarea { resize: vertical; line-height: 1.7; }
.explorer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
#explorer-status { flex: 1 1 180px; font-size: 12px; color: var(--ink-soft); }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { padding: 10px; border-bottom: 1px solid var(--ink); color: var(--ink-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 14px 10px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
td:first-child { width: 23%; }
.flow { padding-left: 24px; }
.flow li { margin: 22px 0; padding-left: 7px; }
.flow li::marker { color: var(--cobalt); font-weight: 700; }
.flow p { margin: 6px 0 0; }
.docs-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 40px 0 20px; padding: 26px; border-radius: 8px; background: var(--sun); }
.docs-footer div { flex: 1 1 240px; }
.docs-footer h3 { margin: 0 0 5px; font-family: 'Fraunces', Georgia, serif; font-size: 23px; font-weight: 500; }
.docs-footer p { margin: 0; font-size: 12px; color: var(--ink); }
.dev-button.secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); white-space: nowrap; }
.dev-button.secondary:hover { background: #f2f4e6; }
.dev-footer { display: flex; flex-wrap: wrap; gap: 16px; padding: 26px 0; margin-top: 20px; border-top: 1px solid var(--line); font-size: 10px; color: var(--ink-soft); }
.dev-footer a { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1500px) { .dev-header { padding-inline: calc((100vw - 1390px) / 2); } }
@media (max-width: 1000px) { .dev-layout { grid-template-columns: 195px minmax(0, 1fr); } .dev-sidebar { padding: 22px 12px; } .dev-layout main { padding-inline: 30px; } .path-card { padding: 20px; } }
@media (max-width: 760px) {
  html { scroll-padding-top: 92px; }
  .dev-header { padding: 12px 18px; gap: 14px; min-height: 70px; }
  .dev-header .brand span { font-size: 22px; }
  .dev-header .brand img { width: 32px; height: 32px; }
  .dev-label { padding-left: 14px; font-size: 12px; }
  .dev-header nav { gap: 10px; font-size: 11px; }
  .dev-header nav a:last-child { display: none; }
  .dev-layout { display: block; }
  .dev-sidebar { position: static; height: auto; padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dev-sidebar nav { display: flex; gap: 8px; overflow: auto; }
  .dev-sidebar nav a { white-space: nowrap; padding: 6px 12px; font-size: 12px; }
  .nav-label, .sidebar-note, .support-link { display: none; }
  .dev-layout main { padding-inline: 20px; }
  .dev-hero { padding-top: 40px; }
  h1 { font-size: clamp(40px, 8vw, 62px); }
  .hero-copy { font-size: 15px; }
  .integration-paths { grid-template-columns: 1fr; gap: 12px; padding-bottom: 32px; }
  .path-card { padding: 22px; }
  .path-icon { float: right; }
  .path-card p { margin-bottom: 12px; max-width: 42ch; }
  .section-heading h2 { font-size: 28px; }
  main section:not(.dev-hero) { padding-top: 34px; }
  pre { padding: 16px; font-size: 11px; }
  .endpoint code { font-size: 11px; }
  .endpoint { gap: 8px; padding: 12px; }
  #mcp-url { flex: 1 1 180px; }
  td { padding: 12px 6px; }
  td:first-child { width: 27%; }
}
@media (max-width: 380px) { .dev-header { gap: 10px; padding-inline: 12px; } .dev-header .brand span { font-size: 19px; } .dev-label { padding-left: 10px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
