.nextjs-route-page{--rh-bg:#f5f8fc;--rh-surface:#fff;--rh-soft:#edf3fb;--rh-text:#12203a;--rh-muted:#5b6a82;--rh-border:#d7e1ef;--rh-cyan:#0284c7;--rh-violet:#7c3aed;--rh-green:#059669;--rh-red:#dc2626;background:var(--rh-bg);color:var(--rh-text)}
.nextjs-route-page.active-dark-mode{--rh-bg:#07111f;--rh-surface:#0e1a2c;--rh-soft:#15243b;--rh-text:#e9f1ff;--rh-muted:#a8b7ce;--rh-border:#28405f;--rh-cyan:#4fc3f7;--rh-violet:#a78bfa;--rh-green:#34d399;--rh-red:#fb7185}
.nextjs-route-page .blog-hero--article{padding:116px 0 68px;border-bottom:1px solid var(--rh-border);background:radial-gradient(circle at 84% 12%,rgba(124,58,237,.18),transparent 29%),radial-gradient(circle at 12% 20%,rgba(2,132,199,.2),transparent 30%),var(--rh-bg)}
.nextjs-route-page .blog-hero--article .blog-container{display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:clamp(34px,5vw,76px);align-items:center}.nextjs-route-page .blog-breadcrumbs,.nextjs-route-page .blog-eyebrow,.nextjs-route-page .blog-hero h1,.nextjs-route-page .blog-hero__intro,.nextjs-route-page .article-meta{grid-column:1}.route-hero__visual{grid-column:2;grid-row:1/7;margin:0;border:1px solid var(--rh-border);border-radius:24px;overflow:hidden;box-shadow:0 30px 80px rgba(3,12,29,.32)}.route-hero__visual img,.article-art img{display:block;width:100%;height:auto}
.nextjs-route-page .article-layout{width:min(1120px,calc(100% - 40px));grid-template-columns:minmax(0,760px) minmax(220px,280px);gap:64px}.nextjs-route-page .article-content>p,.nextjs-route-page .article-content>ul,.nextjs-route-page .article-content>ol{color:var(--rh-muted)}.nextjs-route-page .article-content code{overflow-wrap:anywhere}
.learning-path,.route-diagram{margin:36px 0 44px;padding:clamp(20px,4vw,32px);border:1px solid var(--rh-border);border-radius:22px;background:var(--rh-surface);box-shadow:0 16px 40px rgba(19,42,82,.08)}.learning-path h2{margin-top:0}.learning-path ol{display:grid;grid-template-columns:repeat(10,1fr);gap:7px;margin:22px 0 0;padding:0;list-style:none}.learning-path li{position:relative;min-width:0;padding:13px 3px;border:1px solid var(--rh-border);border-radius:13px;background:var(--rh-soft);text-align:center}.learning-path li:not(:last-child)::after{position:absolute;z-index:2;top:50%;right:-7px;content:'\203A';color:var(--rh-cyan);font-size:18px;transform:translate(50%,-50%)}.learning-path a{display:block;color:inherit;text-decoration:none}.learning-path small,.learning-path strong{display:block}.learning-path strong{margin-top:4px;font-size:9px}.learning-path .is-current{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--rh-cyan),var(--rh-violet))}
.route-diagram figcaption{margin-bottom:24px}.route-diagram figcaption strong{display:block;color:var(--rh-text);font-size:1.08rem}.route-diagram figcaption span{display:block;margin-top:5px;color:var(--rh-muted)}.route-diagram b,.route-diagram em,.route-diagram li{font-style:normal}.route-diagram b,.route-diagram em,.route-diagram li,.route-diagram section{border:1px solid var(--rh-border);border-radius:12px;background:var(--rh-soft)}
.diagram-row,.dynamic-flow>div,.branch-flow>div{display:flex;gap:12px;align-items:center}.diagram-row>b,.dynamic-flow b,.branch-flow b{padding:16px;text-align:center}.diagram-row i,.dynamic-flow i,.branch-flow i{color:var(--rh-cyan);font-size:24px;font-style:normal}.diagram-row section{display:flex;gap:7px;padding:8px}.diagram-row em{padding:8px 11px;background:var(--rh-surface);font-weight:700}
.request-flow ol,.secure-flow ol{display:grid;grid-template-columns:repeat(5,1fr);gap:24px;margin:0;padding:0;list-style:none}.request-flow li,.secure-flow li{position:relative;display:grid;min-height:76px;padding:12px;place-content:center;text-align:center}.request-flow li:not(:last-child)::after,.secure-flow li:not(:last-child)::after{position:absolute;top:50%;right:-21px;content:'\2192';color:var(--rh-cyan);font-size:23px;transform:translateY(-50%)}.secure-flow ol{grid-template-columns:repeat(7,1fr);gap:18px}.secure-flow li{font-size:12px}.secure-flow li:last-child{border-color:var(--rh-green)}
.branch-flow section{display:grid;gap:8px;padding:9px}.branch-flow em{padding:10px}.branch-flow em:last-child{color:var(--rh-red)}
.cors-flow>div,.decision-flow section,.crud-flow>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.cors-flow section,.crud-flow section{padding:17px;text-align:center}.cors-flow b,.cors-flow em,.crud-flow b,.crud-flow em{display:block;border:0;background:transparent}.cors-flow em,.crud-flow em{margin-top:7px;color:var(--rh-muted)}
.decision-flow>div>b{display:block;padding:15px;text-align:center}.decision-flow section{grid-template-columns:repeat(2,1fr);margin-top:12px;padding:12px}.decision-flow em{padding:15px;text-align:center}.crud-flow>div{grid-template-columns:repeat(2,1fr)}
.article-art{margin:34px 0 44px;border:1px solid var(--rh-border);border-radius:22px;overflow:hidden;background:var(--rh-surface);box-shadow:0 18px 48px rgba(8,22,48,.13)}.article-art figcaption{padding:16px 20px;color:var(--rh-muted)}.article-art figcaption strong{color:var(--rh-text)}
.table-scroll{max-width:100%;margin:28px 0;overflow-x:auto;border:1px solid var(--rh-border);border-radius:16px;background:var(--rh-surface)}.table-scroll table{width:100%;min-width:620px;margin:0;border-collapse:collapse}.table-scroll th,.table-scroll td{padding:14px 16px;border-bottom:1px solid var(--rh-border);text-align:left;vertical-align:top}.table-scroll th{background:var(--rh-soft);color:var(--rh-text)}.table-scroll tr:last-child td{border-bottom:0}.mistake-list{display:grid;gap:10px}.nextjs-route-page .article-toc{top:106px;max-height:calc(100vh - 126px);overflow:auto}
@media(max-width:991px){.nextjs-route-page .blog-hero--article .blog-container{grid-template-columns:1fr}.nextjs-route-page .blog-breadcrumbs,.nextjs-route-page .blog-eyebrow,.nextjs-route-page .blog-hero h1,.nextjs-route-page .blog-hero__intro,.nextjs-route-page .article-meta,.route-hero__visual{grid-column:1}.route-hero__visual{grid-row:auto}.nextjs-route-page .article-layout{grid-template-columns:1fr}.learning-path ol{grid-template-columns:repeat(5,1fr)}.learning-path li:nth-child(5n)::after{display:none}.secure-flow ol{grid-template-columns:repeat(4,1fr)}.secure-flow li:nth-child(4)::after{display:none}.nextjs-route-page .article-toc{display:none}}
@media(max-width:767px){.nextjs-route-page .blog-hero--article{padding:102px 0 46px}.nextjs-route-page .article-layout{width:min(100% - 28px,760px)}.diagram-row,.dynamic-flow>div,.branch-flow>div{flex-direction:column}.diagram-row i,.dynamic-flow i,.branch-flow i{transform:rotate(90deg)}.diagram-row section{flex-wrap:wrap;justify-content:center}.request-flow ol,.secure-flow ol,.cors-flow>div,.decision-flow section,.crud-flow>div{grid-template-columns:1fr}.request-flow li:not(:last-child)::after,.secure-flow li:not(:last-child)::after{top:auto;right:50%;bottom:-24px;transform:translateX(50%) rotate(90deg)}.secure-flow li:nth-child(4)::after{display:block}.route-diagram{margin-inline:-2px}.route-hero__visual{border-radius:16px}.nextjs-route-page .code-block pre{max-width:100%;overflow-x:auto}}
@media(max-width:420px){.nextjs-route-page .blog-container{width:min(100% - 22px,1180px)}.route-diagram{padding:16px}.learning-path ol{grid-template-columns:repeat(2,1fr)}.learning-path li:nth-child(5n)::after{display:block}.learning-path li:nth-child(2n)::after{display:none}.learning-path strong{font-size:12px}.table-scroll{margin-inline:0}}
@media print{.route-diagram,.article-art{break-inside:avoid}.route-hero__visual{box-shadow:none}}
