/* Current shared guide shell: 208 / 48 / 944, and 736 / 16 / 192. */
.site-guide-page{background:var(--surface);color:var(--text-primary);font-family:'PingFang SC','Hanken Grotesk',-apple-system,BlinkMacSystemFont,sans-serif}
.site-guide-shell{display:grid;grid-template-columns:208px minmax(0,1fr);gap:48px;align-items:start;padding-block:24px 72px}
.guide-content,.guide-article{min-width:0}
.guide-global-nav,.guide-reading-layout>.guide-local-nav{position:sticky;top:84px;max-height:calc(100dvh - 108px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.guide-navigation{display:flex;flex-direction:column;gap:24px}
.guide-navigation>section{display:flex;flex-direction:column;gap:2px}
.guide-navigation h2{margin:0;font-size:13px;line-height:22px;font-weight:400;color:var(--text-secondary)}
.guide-navigation a{display:flex;align-items:center;min-height:44px;padding:10px 12px;border-radius:6px;font-size:14px;line-height:24px;font-weight:400;color:var(--text-secondary)}
.guide-navigation a:hover{background:var(--surface-hover)}
.guide-navigation a[aria-current]{background:var(--accent-subtle);color:var(--accent-default)}
.guide-reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 192px;gap:16px;align-items:start}
.guide-article{display:flex;flex-direction:column;gap:40px}
.guide-article-head h1{margin:0;font-size:42px;line-height:56px;font-weight:600;letter-spacing:0}
.guide-article-head>p{margin:16px 0 0;font-size:16px;line-height:28px;color:var(--text-secondary)}
.guide-article h2{margin:0;font-size:26px;line-height:38px;font-weight:600;letter-spacing:0}
.guide-article p{overflow-wrap:anywhere}
.guide-section{scroll-margin-top:84px}
.guide-section>p{margin:12px 0 0;font-size:16px;line-height:28px;color:var(--text-secondary)}
.guide-local-nav>strong{display:block;margin:0 0 12px;font-size:13px;line-height:22px;font-weight:400;color:var(--text-muted)}
.guide-local-nav nav{display:grid;gap:12px}
.guide-local-nav a{display:flex;align-items:center;min-height:44px;font-size:14px;line-height:24px;color:var(--text-muted)}
.guide-local-nav a:hover{color:var(--accent-default)}
.website .guide-local-nav a[aria-current="location"]{color:var(--text-primary)}
.guide-reading-layout>.guide-local-nav>strong{margin-bottom:4px}
.guide-reading-layout>.guide-local-nav nav{gap:4px}
.guide-reading-layout>.guide-local-nav a{min-height:32px;padding:4px 0}
.guide-local-nav-mobile{display:none}
.guide-scene{position:relative;display:block;overflow:hidden;flex:none}
.guide-scene>img{position:absolute;max-width:none;width:var(--art-desktop-width);height:var(--art-desktop-height);left:calc(50% + var(--art-desktop-left));top:var(--art-desktop-top)}
.guide-sequence{display:flex;align-items:flex-start;gap:24px;padding:20px;border-radius:6px}
.guide-sequence>.guide-scene{width:180px;height:140px}
.guide-sequence-copy{min-width:0;flex:1}
.guide-sequence h2{margin:0 0 8px;font-size:12px;line-height:20px;font-weight:400;color:var(--text-muted)}
.guide-sequence ol{display:flex;flex-direction:column;gap:8px;list-style:none;padding:0;margin:0}
.guide-sequence li{display:flex;gap:12px;min-height:24px;font-size:14px;line-height:24px;color:var(--text-primary)}
.guide-sequence li>span{flex:0 0 20px;font-size:12px;line-height:22px;color:var(--text-muted)}
.guide-example,.guide-condition{display:flex;flex-direction:column;border:1px solid var(--border-default);border-radius:4px}
.guide-example{padding:24px;gap:12px;background:var(--surface)}
.guide-example>*{width:calc(100% + 2px)}
.guide-example>small{font-size:12px;line-height:20px;color:var(--text-muted)}
.guide-example>h2{font-size:16px;line-height:26px;font-weight:500}
.guide-example>p{margin:0;font-size:16px;line-height:28px;color:var(--text-secondary)}
.guide-condition{padding:20px;gap:8px;background:var(--surface-subtle)}
.guide-condition>*{width:calc(100% + 2px)}
.guide-condition>h2{font-size:14px;line-height:24px;font-weight:400}
.guide-condition>p{margin:0;font-size:14px;line-height:25px;color:var(--text-secondary)}
.guide-content-rule{width:100%;height:1px;border:0;margin:0;background:var(--border-default)}
.guide-adjacent{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.guide-adjacent>a{display:flex;align-items:center;min-height:64px;padding:8px;border:1px solid var(--border-default);border-radius:4px;font-size:14px;line-height:24px;color:var(--text-secondary)}
.guide-adjacent-faq>a{min-height:60px;padding:12px}
.guide-adjacent>a:hover{border-color:var(--border-strong);color:var(--accent-default)}
.guide-index-section>h2{margin-bottom:24px}
.guide-index-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.guide-index-card{display:flex;flex-direction:column;gap:20px;padding:16px;border:1px solid var(--border-default);border-radius:4px;background:var(--surface);min-width:0}
.guide-index-card>*{width:calc(100% + 2px)}
.guide-index-card>.guide-scene{height:124px;border-radius:4px}
.guide-index-card h3{font-size:18px;line-height:28px;font-weight:500;margin:0}
.guide-index-card p{font-size:15px;line-height:26px;color:var(--text-secondary);margin:8px 0 0;min-height:52px}
.guide-index-card:hover{border-color:var(--border-strong)}
.guide-agent-cards,.guide-extension-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:12px}
.guide-agent-card{min-width:0;display:flex;flex-direction:column;gap:16px;padding:24px;border:1px solid var(--border-default);border-radius:4px}
.guide-agent-brand{display:flex;align-items:flex-start;gap:16px;min-height:40px}
.guide-agent-brand>.home-art,.guide-agent-brand>.home-cli-logo{width:40px;height:40px;flex:none}
.guide-agent-brand>span{font-size:13px;line-height:24px;color:var(--text-muted)}
.guide-agent-card h3{margin:0;font-size:24px;line-height:34px;font-weight:500}
.guide-agent-card>p{margin:0;min-height:52px;font-size:15px;line-height:26px;color:var(--text-secondary)}
.guide-agent-action{font-size:14px;line-height:24px;color:var(--accent-default)}
.guide-extension-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.guide-extension-cards>div{padding:20px;border-radius:6px;background:var(--surface-subtle)}
.guide-extension-cards h3{font-size:18px;line-height:28px;font-weight:500;margin:0}
.guide-extension-cards p{font-size:13px;line-height:22px;color:var(--text-secondary);margin:8px 0 0}
.guide-agents>.guide-section>.guide-condition{margin-top:12px}
.guide-faq-item{margin-top:24px}
.guide-faq-item h3{margin:0;font-size:18px;line-height:28px;font-weight:500}
.guide-faq-item p{margin:12px 0 0;font-size:16px;line-height:28px;color:var(--text-secondary)}
.site-guide-menu .site-mobile-menu-header{height:60px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border:0}
.site-guide-menu .site-mobile-menu-header>strong{font-size:18px;line-height:28px;font-weight:500}
.site-guide-menu .site-mobile-menu-close{position:static;width:44px;height:44px;font-size:14px;line-height:24px;font-weight:400;color:var(--text-secondary)}
.site-guide-menu{display:flex;flex-direction:column;background:var(--surface);overflow:hidden}
.guide-menu-scroll{padding:24px 20px;overflow:auto;min-height:0;overscroll-behavior:contain}
.site-guide-page a:focus-visible,.site-guide-menu a:focus-visible{outline:2px solid var(--accent-default);outline-offset:2px}
@media(max-width:1279px){.guide-reading-layout{display:block}.guide-reading-layout>.guide-local-nav{display:none}.guide-index-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.site-guide-shell{gap:32px}}
@media(max-width:959px){.site-guide-shell{display:block}.guide-global-nav{display:none}.guide-local-nav-mobile{display:block;padding:16px;border-radius:6px;background:var(--surface-subtle)}.guide-local-nav-mobile>strong{margin-bottom:8px}.guide-local-nav-mobile nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.guide-local-nav-mobile a{padding:12px 8px;border-radius:4px;background:var(--surface);font-size:13px;line-height:20px}.guide-index-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 .site-guide-shell{padding-block:24px 48px}
 .guide-article-head h1{font-size:34px;line-height:48px}
 .guide-article h2{font-size:24px;line-height:36px}
 .guide-sequence{flex-direction:column;gap:12px;padding:16px}
 .guide-sequence>.guide-scene{width:100%;height:104px}
 .guide-sequence-copy{width:100%}
 .guide-sequence h2{font-size:12px;line-height:20px}
 .guide-scene>img{width:var(--art-phone-width);height:var(--art-phone-height);left:calc(50% + var(--art-phone-left));top:var(--art-phone-top)}
 .guide-example{padding:20px}.guide-example>h2{font-size:16px;line-height:26px}
 .guide-condition{padding:16px}.guide-condition>h2{font-size:14px;line-height:24px}
 .guide-adjacent{grid-template-columns:1fr}.guide-adjacent>a{min-height:60px;padding:12px}
 .guide-index-cards,.guide-agent-cards,.guide-extension-cards{grid-template-columns:1fr}
 .guide-agent-card h3{font-size:24px;line-height:34px}
}
/* The shared execution note retains its original readable measure on wide Agent pages. */
@media(min-width:1280px){.guide-agents>.guide-section>.guide-condition>*{max-width:696px}}
.site-guide-menu .guide-navigation a{border:0;min-height:44px;padding:10px 12px;font-size:14px;line-height:24px}
.site-guide-menu .site-mobile-menu-header{flex:0 0 60px}
.site-guide-menu .site-mobile-menu-close{display:flex;align-items:center;justify-content:flex-start;width:72px;padding:10px 14px}
.guide-menu-scroll{flex:1}
/* A chapter sits 24px below the fixed 60px header; avoid doubling the global offset. */
html:has(.site-guide-page){scroll-padding-top:var(--site-header-height)}
.site-guide-page .guide-section{scroll-margin-top:24px}
