/* Feature guides inherit Newton Garden's typography and color tokens. */
.newton-docs { display:grid; grid-template-columns:220px minmax(0,1fr); gap:clamp(36px,5vw,80px); padding-block:52px 88px; align-items:start; }
.newton-docs-sidebar { position:sticky; top:32px; max-height:calc(100dvh - 64px); overflow-y:auto; padding:4px 12px 16px 0; }
.newton-docs-nav-title { font-size:14px; font-weight:650; margin-bottom:18px; }
.newton-docs nav ul { list-style:none; padding:0; margin:0; }
.newton-docs-sidebar li + li, .newton-docs-mobile-nav li + li { margin-top:4px; }
.newton-docs-sidebar a, .newton-docs-mobile-nav nav a { display:block; padding:10px 12px; border-left:2px solid transparent; font-size:14px; line-height:1.45; color:#bfc1bf; }
.newton-docs-sidebar a:hover, .newton-docs-mobile-nav nav a:hover { color:var(--foreground); background:var(--card); }
.newton-docs nav a[aria-current="page"] { color:var(--foreground); border-color:var(--accent); background:var(--secondary); }
.newton-docs-main { min-width:0; max-width:900px; }
.newton-docs-heading nav { display:flex; gap:12px; align-items:center; font-size:13px; color:#bfc1bf; margin-bottom:24px; }
.newton-docs-heading h1 { font-family:Georgia,'Times New Roman',serif; font-size:clamp(38px,4.4vw,62px); line-height:1.08; font-weight:400; letter-spacing:-.035em; text-wrap:balance; }
.newton-docs-deck { margin-top:20px; color:#bfc1bf; font-size:clamp(18px,1.5vw,21px); line-height:1.55; max-width:42ch; }
.newton-docs-content { margin-top:36px; line-height:1.8; overflow-wrap:anywhere; }
.newton-docs-content > p, .newton-docs-content > ul, .newton-docs-content > ol { max-width:74ch; }
.newton-docs-content > * + * { margin-top:22px; }
.newton-docs-content h2 { font-family:Georgia,'Times New Roman',serif; font-size:clamp(27px,2.6vw,34px); line-height:1.2; letter-spacing:-.025em; margin-top:52px; scroll-margin-top:28px; }
.newton-docs-content h3 { font-size:20px; }
.newton-docs-content ul, .newton-docs-content ol { padding-left:24px; }
.newton-docs-content li + li { margin-top:12px; }
.newton-docs-content strong { font-weight:650; }
.newton-docs-content a { color:#ff8176; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.newton-docs-content a:hover { color:var(--foreground); }
.newton-docs-content .wp-block-image { margin:32px 0; }
.newton-docs-content .wp-block-image img { display:block; width:100%; height:auto; border:1px solid var(--border); border-radius:10px; }
.newton-docs-content figcaption { background:transparent; border:0; text-align:left; color:#bfc1bf; line-height:1.6; padding:14px 0 0; font-size:13px; max-width:85ch; }
.newton-docs-pagination { display:flex; gap:24px; justify-content:space-between; border-top:1px solid var(--border); margin-top:48px; padding-top:24px; }
.newton-docs-pagination a { flex:1; max-width:50%; }
.newton-docs-pagination span { display:block; color:#bfc1bf; font-size:13px; margin-bottom:6px; }
.newton-docs-pagination strong { font-size:16px; font-weight:500; }
.newton-docs-pagination a:hover strong { color:#ff8176; }
.newton-docs-scope { color:#bfc1bf; font-size:12px; margin-top:32px; line-height:1.6; }
.newton-docs-mobile-nav { display:none; }
@media(max-width:900px) {
 .newton-docs { display:block; padding-top:24px; }
 .newton-docs-sidebar { display:none; }
 .newton-docs-mobile-nav { display:block; border:1px solid var(--border); border-radius:6px; margin-bottom:32px; }
 .newton-docs-mobile-nav summary { padding:14px 16px; cursor:pointer; font-weight:500; }
 .newton-docs-mobile-nav nav { padding:0 8px 12px; }
 .newton-docs-heading nav { margin-bottom:20px; }
 .newton-docs-content { font-size:16px; }
 .newton-docs-content h2 { margin-top:40px; }
}
@media(max-width:560px) {
 .newton-docs.wrap { width:calc(100% - 40px); }
 .newton-docs-pagination { flex-direction:column; }
 .newton-docs-pagination a { max-width:none; }
}
@media print {
 .newton-docs { display:block; padding:0; }
 .newton-docs-sidebar, .newton-docs-mobile-nav, .newton-docs-pagination { display:none; }
 .newton-docs-content .wp-block-image { break-inside:avoid; }
}
