/* Documentation shares the SX navigation, footer and consent dialog with home.css. */
.documentation-page .nav-links [aria-current="page"] { color: var(--cyan); }
.docs-hero { padding-top: 60px; background: radial-gradient(ellipse at 84% 25%, #17303a 0, var(--ink) 66%); border-bottom: 1px solid #273944; }
.docs-hero-inner { display: flex; align-items: end; justify-content: space-between; gap: 60px; padding-bottom: 42px; }
.docs-hero-inner > div { max-width: 780px; }
.docs-hero .eyebrow { color: var(--cyan); margin-bottom: 22px; font-size: 10px; }
.docs-hero h1 { font-size: clamp(42px, 4.5vw, 62px); line-height: 1.1; letter-spacing: -2.7px; }
.docs-hero h1 span { display: block; color: #869ba8; margin-top: 9px; font-size: .62em; letter-spacing: -1.7px; }
.docs-hero-inner > div > p:last-child { max-width: 660px; margin-top: 23px; color: #aebfc9; font-size: 15px; line-height: 1.85; }
.docs-hero-inner > .text-link { flex-shrink: 0; margin-bottom: 6px; }
.docs-hero-meta { display: flex; gap: 32px; border-top: 1px solid #24343f; padding-block: 20px; color: #96abb8; font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.1px; }
.docs-surface { background: #f3f5f1; color: #25313b; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-block: 54px 74px; align-items: start; }
.docs-sidebar { position: sticky; top: 114px; align-self: start; min-width: 0; }
.docs-toc { border: 1px solid #d0dad6; border-radius: 8px; background: #e9efeb; overflow: hidden; }
.docs-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; list-style: none; padding: 19px 17px 15px; color: #40594f; font: 600 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .3px; cursor: pointer; }
.docs-toc summary::-webkit-details-marker { display: none; }
.docs-toc summary .icon { width: 15px; height: 15px; display: none; }
.docs-toc nav { display: flex; flex-direction: column; padding: 0 8px 14px; max-height: calc(100dvh - 245px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b0c4b7 transparent; }
.docs-toc nav a { display: block; border-left: 2px solid transparent; padding: 7px 11px 7px 16px; color: #52665e; font-size: 11px; line-height: 1.45; border-radius: 3px; }
.docs-toc nav a:hover { color: #152e35; background: #dce8e2; }
.docs-toc nav a.toc-group { font-size: 12px; color: #1d3831; font-weight: 650; padding-left: 10px; margin-top: 9px; }
.docs-toc nav a.is-active { border-color: #138b9a; color: #0c6774; background: #d8e9e2; }
.docs-help { display: block; padding: 18px 2px 0; font-size: 11px; color: #586960; }
.docs-help span { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12px; color: #1b4e43; font-weight: 600; }
.docs-help .icon { width: 13px; height: 13px; }
.docs-content { min-width: 0; }
.docs-section { padding-bottom: 40px; margin-bottom: 38px; border-bottom: 1px solid #d2dcd6; scroll-margin-top: 117px; }
.docs-content p.doc-kicker { color: #2f827a; font: 500 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.3px; margin-bottom: 13px; }
.docs-content h2 { color: #13252b; font-size: 38px; letter-spacing: -1.4px; line-height: 1.18; margin-bottom: 23px; }
.docs-content h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: #193037; font-size: 27px; letter-spacing: -.8px; line-height: 1.25; margin-bottom: 19px; }
.docs-content h4 { color: #1b383c; font-size: 16px; letter-spacing: -.2px; line-height: 1.4; }
.docs-content p { font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.docs-content p.doc-lead { color: #29434a; font-size: 18px; line-height: 1.7; }
.docs-content p.doc-muted { color: #60716a; font-size: 12px; }
.docs-content ul:not(.doc-benefits) { padding-left: 21px; font-size: 14px; line-height: 1.85; }
.docs-content ul li { padding-left: 4px; margin-bottom: 10px; }
.doc-note { padding: 21px 24px; margin-top: 24px; border: 1px solid #c9dcd4; border-left: 3px solid #22828b; border-radius: 0 7px 7px 0; background: #e9efeb; }
.doc-note > strong { color: #25554d; font-size: 12px; }
.doc-note p { margin-top: 8px; color: #48605a; }
.docs-content .doc-note p:last-child { margin-bottom: 0; font-size: 13px; }
.doc-steps { display: grid; gap: 0; padding: 0; margin: 25px 0 0; list-style: none; border: 1px solid #ccdad3; border-radius: 8px; overflow: hidden; }
.doc-steps li { display: flex; gap: 20px; padding: 22px; background: #eaf0eb; }
.doc-steps li + li { border-top: 1px solid #cddad3; }
.doc-steps li > span { display: flex; align-items: center; justify-content: center; height: 37px; width: 37px; flex-shrink: 0; border: 1px solid #a5c8bd; border-radius: 5px; color: #1e6c62; font: 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.doc-steps h4 { margin-bottom: 7px; }
.docs-content .doc-steps p { margin-bottom: 0; color: #50645b; font-size: 13px; }
.doc-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; padding: 0; margin-block: 23px; list-style: none; }
.docs-content .doc-benefits li { position: relative; padding: 13px 0 13px 23px; margin: 0; border-top: 1px solid #d2dcd6; font-size: 13px; line-height: 1.75; }
.doc-benefits li::before { content: "✓"; position: absolute; left: 0; color: #238572; font-weight: 600; }
.doc-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 25px; gap: 16px; }
.doc-timeline > div { padding: 20px 17px; border: 1px solid #c7d8d0; border-top: 3px solid #41958d; background: #eaf0eb; border-radius: 5px; }
.doc-timeline span { font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; color: #357869; letter-spacing: .8px; }
.doc-timeline h4 { margin-top: 12px; font-size: 14px; }
.docs-content .doc-timeline p { color: #5c6f65; font-size: 12px; margin: 9px 0 0; }
.doc-figure { margin: 25px 0 30px; overflow: hidden; border: 1px solid #c6d3cd; border-radius: 8px; background: #fff; }
.diagram-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #a1c6bd #eaf2ee; }
.doc-figure img { display: block; width: 100%; height: auto; }
.doc-figure-process img, .doc-figure-interface img { min-width: 900px; }
.doc-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid #d1dcd6; color: #30504a; background: #e9efeb; font-size: 12px; font-weight: 600; }
.doc-figure figcaption span, .doc-figure figcaption a { color: #516e64; font-size: 10px; font-weight: 400; }
.doc-figure figcaption a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.doc-figure figcaption a:hover { color: #0c6774; }
.doc-figure-mobile img { width: auto; max-height: 660px; margin-inline: auto; }
.doc-architecture { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-block: 28px; background: #33524e; border: 1px solid #33524e; border-radius: 8px; overflow: hidden; }
.doc-architecture > div { padding: 22px 19px; background: #152b33; }
.doc-architecture > div:last-child { background: #203226; }
.doc-architecture span { color: #7cdaef; font: 7px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .5px; }
.doc-architecture > div:last-child span { color: #c3f878; }
.doc-architecture h4 { color: #eff4f4; margin-top: 10px; font-size: 22px; letter-spacing: -.7px; }
.docs-content .doc-architecture p { color: #acbdc4; margin: 10px 0 0; font-size: 11px; }
.doc-inline-link { display: inline-flex; align-items: center; gap: 11px; color: #126d73; font-size: 12px; font-weight: 600; }
.doc-inline-link .icon { width: 16px; height: 16px; }
.doc-inline-link:hover { color: #1c514b; }
.doc-status { border: 1px solid #b6cbb8; border-radius: 4px; padding: 5px 7px; background: #e4eddd; color: #47713e; font: 500 8px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .6px; }
.doc-related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.doc-related-links a { display: flex; align-items: center; gap: 15px; padding: 11px 13px; border: 1px solid #bdd2c9; border-radius: 4px; font-size: 11px; color: #245d55; }
.doc-related-links a:hover { background: #e2ede5; }
.doc-related-links .icon { width: 13px; height: 13px; }
.doc-ai-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-block: 25px; }
.doc-ai-principles > div { padding: 23px; border: 1px solid #c0d4ca; border-radius: 7px; background: #e7efea; }
.doc-ai-principles span { display: block; color: #287f78; font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; margin-top: 7px; }
.docs-content .doc-ai-principles p { color: #50655d; font-size: 13px; margin: 15px 0 0; }
.docs-end { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 32px; border: 1px solid #b1c6b0; background: #dbecc9; border-radius: 9px; }
.docs-end .eyebrow { font-size: 8px; color: #4c6c3f; margin-bottom: 12px; }
.docs-end h3 { font-size: 24px; margin-bottom: 13px; }
.docs-content .docs-end p:not(.eyebrow) { font-size: 12px; color: #557146; margin-bottom: 0; }
.docs-end .button { font-size: 11px; min-height: 44px; gap: 12px; white-space: nowrap; }

@media (max-width: 1200px) {
    .docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
    .docs-hero-inner { gap: 30px; }
    .docs-hero-inner > .text-link { display: none; }
    .doc-architecture { grid-template-columns: 1fr; }
    .doc-architecture > div { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 20px; padding: 19px 24px; }
    .doc-architecture span { grid-column: 1; }
    .doc-architecture h4 { grid-column: 1; margin-top: 4px; }
    .docs-content .doc-architecture p { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 12px; }
    .docs-end { flex-direction: column; align-items: start; }
}
@media (max-width: 1040px) {
    .docs-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 30px; }
    .docs-toc summary { font-size: 9px; }
    .docs-toc nav a { font-size: 10px; }
    .doc-timeline { grid-template-columns: 1fr; gap: 12px; }
    .doc-timeline > div { padding: 20px; }
    .doc-timeline h4 { font-size: 16px; }
    .doc-benefits { grid-template-columns: 1fr; }
    .doc-ai-principles { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .docs-hero { padding-top: 38px; }
    .docs-hero-inner { padding-bottom: 27px; }
    .docs-hero .eyebrow { font-size: 8px; letter-spacing: .7px; margin-bottom: 18px; }
    .docs-hero h1 { font-size: 40px; letter-spacing: -2px; }
    .docs-hero h1 span { font-size: 26px; letter-spacing: -1px; margin-top: 11px; }
    .docs-hero-inner > div > p:last-child { font-size: 13px; margin-top: 19px; }
    .docs-hero-meta { flex-wrap: wrap; gap: 14px 23px; font-size: 8px; padding-block: 17px; }
    .docs-layout { display: block; padding-block: 26px 42px; }
    .docs-sidebar { position: static; margin-bottom: 36px; }
    .docs-toc summary { padding: 17px 20px; font-size: 11px; }
    .docs-toc summary .icon { display: block; }
    .docs-toc[open] summary .icon { transform: rotate(45deg); }
    .docs-toc nav { max-height: 325px; padding-inline: 12px; }
    .docs-toc nav a { font-size: 12px; padding-block: 9px; }
    .docs-toc nav a.toc-group { font-size: 13px; }
    .docs-help { display: none; }
    .docs-section { margin-bottom: 29px; padding-bottom: 31px; scroll-margin-top: 98px; }
    .docs-content h2 { font-size: 32px; }
    .docs-content h3 { font-size: 25px; }
    .docs-content p { font-size: 13px; }
    .docs-content p.doc-lead { font-size: 17px; }
    .docs-content ul:not(.doc-benefits) { font-size: 13px; }
    .doc-note { padding: 18px; }
    .doc-steps li { padding: 19px 17px; gap: 15px; }
    .doc-steps li > span { width: 33px; height: 33px; }
    .doc-figure { margin-top: 22px; }
    .doc-figure figcaption { flex-wrap: wrap; gap: 7px; padding: 12px 15px; }
    .doc-figure figcaption span { width: 100%; }
    .doc-figure-process img, .doc-figure-interface img { min-width: 900px; }
    .doc-architecture > div { padding: 18px; column-gap: 15px; }
    .doc-architecture h4 { font-size: 20px; }
    .docs-content .doc-architecture p { font-size: 10px; line-height: 1.9; }
    .doc-ai-principles > div { padding: 20px; }
    .docs-end { padding: 24px; gap: 23px; }
    .docs-end h3 { font-size: 24px; }
}
@media (max-width: 360px) {
    .docs-hero h1 { font-size: 34px; }
    .docs-hero h1 span { font-size: 23px; }
    .docs-content h3 { font-size: 23px; }
    .doc-architecture > div { display: block; }
    .docs-content .doc-architecture p { font-size: 12px; margin-top: 7px; }
}
