:root {
	color-scheme: light;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #171717;
	background: #fff;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 58px; background: #fbfbfa; color: #171717; font-size: 15px; line-height: 1.7; }
a { color: #171717; text-decoration-color: #bdbdbd; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: #f59e0b; color: #a65f00; }

.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid #ececec; background: #fff; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: #171717; text-decoration: none; white-space: nowrap; font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.brand:hover { color: #171717; }
.brand-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: #ff9d00; color: #171717; font-size: 13px; font-weight: 800; }
.brand-divider { color: #c4c4c4; font-weight: 400; }
.topnav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.topnav a { color: #555; text-decoration: none; }
.topnav a:hover { color: #111; }
.topnav .github-link { color: #171717; }

.layout { width: min(1180px, calc(100% - 48px)); margin: 38px auto 48px; display: grid; grid-template-columns: 205px minmax(0, 760px); gap: 64px; align-items: start; }
.sidebar { position: sticky; top: 22px; padding: 5px 0; }
.sidebar-label { margin: 0 0 10px 10px; color: #888; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar a { display: block; padding: 7px 10px; border-radius: 5px; color: #666; font-size: 13px; text-decoration: none; }
.sidebar a:hover { background: #f6f6f6; color: #171717; }
.sidebar a[aria-current="page"] { background: #f5f5f5; color: #171717; font-weight: 650; }
.sidebar-foot { margin: 18px 10px 0; padding-top: 13px; border-top: 1px solid #eee; color: #888; font-size: 11px; line-height: 1.55; }

.doc-content { min-width: 0; max-width: 760px; }
.doc-content h1, .doc-content h2, .doc-content h3 { color: #171717; line-height: 1.25; letter-spacing: -.035em; }
.doc-content h1 { margin: 0 0 18px; font-size: clamp(34px, 4vw, 44px); font-weight: 700; }
.doc-content h2 { margin: 44px 0 12px; padding-bottom: 9px; border-bottom: 1px solid #ededed; font-size: 21px; font-weight: 650; }
.doc-content h3 { margin: 25px 0 5px; font-size: 16px; font-weight: 650; }
.doc-content p { margin: 0 0 15px; color: #555; }
.doc-content .eyebrow { margin: 0 0 10px; color: #777; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.doc-content ul, .doc-content ol { padding-left: 23px; color: #555; }
.doc-content li { margin: 6px 0; padding-left: 2px; }
.doc-content blockquote { margin: 22px 0; padding: 2px 0 2px 14px; border-left: 2px solid #e5a32b; color: #555; }
.doc-content blockquote p { margin: 0; }
.doc-content code { padding: .12em .35em; border: 1px solid #e8e8e8; border-radius: 4px; background: #f7f7f7; color: #333; font-size: .9em; }
.doc-content pre { overflow-x: auto; padding: 17px; border: 1px solid #e5e5e5; border-radius: 8px; background: #f8f8f8; color: #222; }
.doc-content pre code { padding: 0; border: 0; background: transparent; }
.doc-content table { width: 100%; border-collapse: collapse; }
.doc-content th, .doc-content td { padding: 9px 10px; border-bottom: 1px solid #eee; text-align: left; }
.doc-content th { font-weight: 650; }
.doc-content details { margin: 16px 0; border: 1px solid #e8e8e8; border-radius: 7px; }
.doc-content details > summary { padding: 13px 15px; cursor: pointer; font-size: 14px; font-weight: 600; }
.doc-content details[open] > summary { border-bottom: 1px solid #eee; }
.doc-content details[open] > :not(summary) { margin-right: 16px; margin-left: 16px; }
.doc-content details[open] > h3:first-of-type { margin-top: 19px; }
.doc-content details pre { white-space: pre; }
.copy-button { margin: 0 16px 16px; padding: 7px 10px; border: 1px solid #ddd; border-radius: 5px; background: #fff; color: #333; font: inherit; font-size: 12px; cursor: pointer; }
.copy-button:hover { border-color: #aaa; background: #fafafa; }
.doc-content > ul { margin: 18px 0 22px; padding: 13px 17px 13px 34px; border: 1px solid #eee7db; border-radius: 8px; background: #fffdf9; }
.feature-list { display: grid; gap: 12px; margin: 28px 0; }
.feature-link { display: grid; grid-template-columns: 190px minmax(0, 1fr) 20px; align-items: center; gap: 18px; padding: 17px 18px; border: 1px solid #e7e7e5; border-radius: 8px; background: #fff; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.feature-link:hover { border-color: #d8b46e; background: #fffdf8; }
.feature-link strong { font-size: 15px; }
.feature-link span { color: #666; font-size: 13px; }
.feature-link .arrow { color: #9b6500; font-size: 18px; text-align: right; }
.doc-content > .feature-kicker { margin: 2px 0 7px !important; color: #a66a00; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.doc-content > details { scroll-margin-top: 20px; }
.feature { scroll-margin-top: 20px; margin: 22px 0; padding: 19px 22px; border: 1px solid #e8e8e6; border-radius: 9px; background: #fff; }
.feature h2 { margin: 2px 0 9px; padding: 0; border: 0; font-size: 22px; }
.feature-kicker { margin: 0 0 4px !important; color: #a66a00 !important; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.feature .requirement { margin: 15px 0 0; padding: 9px 12px; border-left: 2px solid #e8a834; background: #fcfaf5; color: #555; font-size: 13px; }
.feature details { margin: 15px 0 0; border-radius: 6px; }
.feature details > summary { padding: 10px 12px; font-size: 13px; }
.feature details[open] > :not(summary) { margin-right: 13px; margin-left: 13px; }
.feature details[open] > ol { margin-top: 16px; }
.feature details pre { font-size: 12px; }
.doc-content > details#agent-integration { margin-top: 23px; background: #fff; }
.doc-content > details#agent-integration > summary { font-size: 14px; }

.footer { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; height: 50px; border-top: 1px solid #e9e9e7; background: rgba(255,255,255,.96); color: #888; font-size: 11px; backdrop-filter: blur(8px); }
.footer-inner { width: min(1180px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer a { color: #555; }

@media (max-width: 760px) {
	.topbar { height: 58px; padding: 0 18px; }
	.layout { width: min(100% - 36px, 680px); margin: 23px auto 30px; display: block; }
	.sidebar { position: static; display: flex; gap: 4px; overflow-x: auto; margin-bottom: 25px; padding: 0 0 9px; border-bottom: 1px solid #eee; }
	.sidebar-label, .sidebar-foot { display: none; }
	.sidebar a { flex: 0 0 auto; padding: 6px 9px; font-size: 12px; }
	.doc-content { max-width: none; }
	.doc-content h2 { margin-top: 36px; }
	.feature { padding: 16px; }
	.feature-link { grid-template-columns: minmax(0, 1fr) 20px; gap: 3px 10px; }
	.feature-link strong { grid-column: 1; }
	.feature-link span:not(.arrow) { grid-column: 1; }
	.feature-link .arrow { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 500px) {
	.topbar { padding: 0 14px; }
	.brand { gap: 7px; font-size: 15px; }
	.brand-divider, .brand > span:last-child, .topnav > a:first-child { display: none; }
	.topnav { gap: 14px; font-size: 12px; }
	.footer-inner { width: calc(100% - 36px); }
}
