/* Scoped to the How I Work production walk. */
#production-walk{--walk-blue:#eaf0f3;--walk-sage:#edf2ea;--walk-gold:#f5f0e4;--walk-wire:#b8c9c3}
#production-walk .walk-intro{max-width:62rem}
#production-walk .discreet{font-size:.85rem;color:var(--muted)}
#production-walk .walk-step,#production-walk .walk-ending{border-top:1px solid var(--line);margin-top:2rem;padding-top:1.75rem}
#production-walk .step-heading{display:flex;align-items:baseline;gap:1rem;margin-bottom:.75rem}
#production-walk .step-index{font-size:.8rem;letter-spacing:.08em;color:var(--accent);font-variant-numeric:tabular-nums}
#production-walk h2{font-size:1.8rem;margin:0;line-height:1.25}
#production-walk .walk-step>p{max-width:62rem;margin-bottom:1rem}
#production-walk .architecture{background:#f1f4f1;border:1px solid #dce5df;border-radius:.7rem;padding:1.25rem 1.5rem;margin:1rem 0 0}
#production-walk .diagram-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.13em;color:var(--accent);font-weight:650;margin-bottom:.85rem}
#production-walk .node{border:1px solid #d1ded8;border-radius:.4rem;background:#fafbf9;padding:.6rem .8rem;line-height:1.4;min-width:0}
#production-walk .node strong{display:block;font-weight:600;font-size:.95rem}
#production-walk .node small{display:block;color:var(--muted);font-size:.82rem;line-height:1.5;margin-top:.2rem}
#production-walk .blue{background:var(--walk-blue);border-color:#d2dfe4}
#production-walk .sage{background:var(--walk-sage)}
#production-walk .gold{background:var(--walk-gold);border-color:#e4dcc9}
#production-walk .flow{display:flex;align-items:stretch;gap:1.15rem;position:relative}
#production-walk .flow>.node{flex:1;position:relative;display:flex;flex-direction:column;justify-content:center}
#production-walk .flow>.node+.node::before{content:"";position:absolute;left:-1.15rem;top:50%;width:1.15rem;border-top:1px solid var(--walk-wire)}
#production-walk .flow>.node+.node::after{content:"";position:absolute;left:-.28rem;top:calc(50% - 2px);width:4px;height:4px;border-top:1px solid var(--walk-wire);border-right:1px solid var(--walk-wire);transform:rotate(45deg)}
#production-walk .tree{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;position:relative;padding-top:1rem;margin-top:0}
#production-walk .tree::before{content:"";position:absolute;left:12%;right:12%;top:0;border-top:1px solid var(--walk-wire)}
#production-walk .tree>.node{position:relative;text-align:center}
#production-walk .tree>.node::before{content:"";position:absolute;left:50%;top:-1rem;height:1rem;border-left:1px solid var(--walk-wire)}
#production-walk .split{display:flex;justify-content:center;gap:.5rem;margin-top:.6rem;font-size:.8rem;color:var(--accent)}
#production-walk .split span{border-top:1px solid var(--walk-wire);padding:.25rem .35rem 0}
#production-walk .underlay{margin-top:1rem;padding-top:.85rem;border-top:1px solid var(--line);font-size:.82rem;color:var(--muted);line-height:1.6}
#production-walk .underlay b{font-weight:600;color:var(--accent)}
#production-walk .two-streams{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
#production-walk .stream{border-left:1px solid var(--walk-wire);padding-left:1rem}
#production-walk .stream .node+.node{margin-top:.6rem}
#production-walk .stream-label{font-size:.68rem;letter-spacing:.09em;text-transform:uppercase;color:var(--accent);margin:0 0 .5rem}
#production-walk .merge{position:relative;margin:1.2rem auto 0;max-width:34rem;text-align:center}
#production-walk .merge::before{content:"";position:absolute;left:50%;top:-1.2rem;height:1.2rem;border-left:1px solid var(--walk-wire)}
#production-walk .tags{display:flex;flex-wrap:wrap;gap:.4rem;margin:.7rem 0 0;justify-content:center}
#production-walk .tags span{font-size:.78rem;border:1px solid #d6e0da;border-radius:.25rem;background:#fafbf9;padding:.2rem .5rem;color:var(--muted)}
#production-walk .source-nodes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}
#production-walk .source-nodes .node{text-align:center;font-size:.82rem}
#production-walk .compact-notes{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-top:1rem;font-size:.83rem;line-height:1.6;color:var(--muted)}
#production-walk .compact-notes p{margin:0}
#production-walk .compact-notes b{color:var(--ink);font-weight:600}
#production-walk .technical-note{border-left:2px solid #b6c8bc;padding:.2rem 0 .2rem 1rem;font-size:.85rem;line-height:1.6;margin:1rem 0 0;color:var(--muted)}
#production-walk .account-identity{text-align:center;font-family:Georgia,serif;font-size:1.2rem;margin-top:1rem;color:var(--accent)}
#production-walk .review-inputs{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}
#production-walk .review-inputs .node{font-size:.83rem}
#production-walk .cycle-return{margin-top:.8rem;text-align:center;font-size:.8rem;color:var(--accent)}
#production-walk .infrastructure{margin-top:1rem;padding:.8rem;border-top:2px solid #b9cec6;background:#e8efea;border-radius:0 0 .35rem .35rem;text-align:center;font-size:.85rem;line-height:1.7;color:var(--accent)}
#production-walk .infrastructure strong{font-weight:600;display:block}
#production-walk .principles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}
#production-walk .principles span{border-top:2px solid #b7cbbf;padding-top:.65rem;font-size:.73rem;letter-spacing:.05em;text-transform:uppercase;color:var(--accent)}
#production-walk .experience-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.75rem;margin-top:1.5rem}
#production-walk .experience-columns h3{font-family:inherit;text-transform:uppercase;letter-spacing:.08em;font-size:.73rem;font-weight:650;color:var(--accent);margin:0 0 .65rem}
#production-walk .experience-columns ul{margin:0;padding-left:1rem;font-size:.85rem;line-height:1.65;color:var(--muted)}
#production-walk .diagram-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding:.15rem .15rem .65rem}
#production-walk .long-flow{min-width:820px}
#production-walk .diagram-scroll:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
@media(max-width:767px){
#production-walk h2{font-size:1.5rem}
#production-walk .step-heading{gap:.7rem}
#production-walk .architecture{padding:1rem}
#production-walk .two-streams,#production-walk .compact-notes{grid-template-columns:1fr;gap:1rem}
#production-walk .tree{grid-template-columns:1fr 1fr;gap:.9rem;padding-top:0;margin-top:.25rem}
#production-walk .tree::before,#production-walk .tree>.node::before{display:none}
#production-walk .tree>.node{border-top:2px solid #b9cec6;text-align:left}
#production-walk .split{justify-content:flex-start}
#production-walk .source-nodes{grid-template-columns:1fr 1fr}
#production-walk .diagram-scroll{overflow-x:auto;scroll-snap-type:x proximity;padding:.15rem .15rem .75rem;overscroll-behavior-x:contain}
#production-walk .diagram-scroll>.flow{min-width:660px}
#production-walk .diagram-scroll>.flow.long-flow{min-width:820px}
#production-walk .flow>.node{scroll-snap-align:start}
#production-walk .principles{grid-template-columns:1fr 1fr}
#production-walk .experience-columns{grid-template-columns:1fr;gap:1.5rem}
#production-walk .diagram-label{font-size:.65rem}
}
@media(prefers-reduced-motion:reduce){#production-walk .diagram-scroll{scroll-behavior:auto}}

body:has(#production-walk) main.content{min-width:0;grid-column:screen-start / screen-end;width:calc(100% - 48px);max-width:1120px;box-sizing:border-box;margin-inline:auto;padding-inline:0}
@media(min-width:1024px){
body:has(#production-walk) main.content{grid-column:body-content-start / body-content-end;width:auto;max-width:none;margin-inline:calc((100% - (100vw - 15px)) * .2)}
}
#production-walk,#production-walk .walk-step,#production-walk .architecture,#production-walk .diagram-scroll{min-width:0;max-width:100%}

#production-walk .split{flex-wrap:wrap}
#production-walk .node{overflow-wrap:anywhere}
@media(max-width:360px){#production-walk .tree{grid-template-columns:1fr}}

/* Introductory spacing follows Home's paragraph and section rhythm. */
#production-walk .walk-intro>.eyebrow{margin-bottom:.75rem}
#production-walk .walk-intro>p{margin-bottom:1rem}
#production-walk .walk-intro>p:last-child{margin-bottom:0}
#production-walk .walk-intro+.walk-step{margin-top:2rem;padding-top:2rem}
@media(max-width:767px){#production-walk .walk-intro+.walk-step{margin-top:2.5rem}}

/* Product detail belongs only to the statistical-scope tree. */
#production-walk #step-01 .scope-subbranch,#production-walk #step-01 .scope-products{margin-top:.75rem;padding-top:.6rem;border-top:1px solid var(--walk-wire)}
#production-walk #step-01 .scope-subbranch b{font-size:.85rem;color:var(--accent);font-weight:600}
#production-walk #step-01 .tree>.node{align-self:start}

/* Scope: two equal agricultural subcolumns, compact peer branches. */
#production-walk #step-01 .scope-tree{grid-template-columns:2fr .95fr .95fr 1.55fr;align-items:start}
#production-walk #step-01 .scope-agriculture-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
#production-walk #step-01 .scope-kind{display:block;font-size:.75rem;font-weight:400;color:var(--muted);margin-bottom:.3rem}
#production-walk #step-01 .scope-tree small{font-size:.82rem;line-height:1.6}
@media(max-width:767px){
#production-walk #step-01 .scope-tree{grid-template-columns:repeat(2,minmax(0,1fr))}
#production-walk #step-01 .scope-agriculture,#production-walk #step-01 .scope-food{grid-column:1 / -1}
}
@media(max-width:360px){#production-walk #step-01 .scope-agriculture-columns{gap:.65rem}}

/* Section 02: distinguish product, industry and use requirements. */
#production-walk #step-02 .measurement-targets{display:grid;grid-template-columns:.85fr 1.1fr 1.2fr;gap:1.25rem;align-items:start}
#production-walk #step-02 .measurement-group{min-width:0}
#production-walk #step-02 .measurement-group ul{list-style:none;border-left:1px solid var(--walk-wire);margin:.85rem 0 0 .6rem;padding:0 0 0 1rem;font-size:.85rem;line-height:1.6}
#production-walk #step-02 .measurement-group li{position:relative;margin-bottom:.45rem}
#production-walk #step-02 .measurement-group li::before{content:"";position:absolute;left:-1rem;top:.8em;width:.6rem;border-top:1px solid var(--walk-wire)}
#production-walk #step-02 .measurement-group li span{font-size:.75rem;color:var(--muted);white-space:nowrap}
@media(max-width:767px){#production-walk #step-02 .measurement-targets{grid-template-columns:1fr;gap:1.1rem}}

/* Section 03: method requirements, feasibility and alternative routes. */
#production-walk #step-03 .method-requirements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
#production-walk #step-03 .method-requirements>.node{position:relative}
#production-walk #step-03 .method-requirements>.node+.node::before{content:"";position:absolute;left:-1rem;top:50%;width:1rem;border-top:1px solid var(--walk-wire)}
#production-walk #step-03 .method-branches{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--walk-wire)}
#production-walk #step-03 .method-route{position:relative;min-width:0}
#production-walk #step-03 .method-route::before{content:"";position:absolute;left:50%;top:-1rem;height:1rem;border-left:1px solid var(--walk-wire)}
@media(max-width:767px){
#production-walk #step-03 .method-requirements,#production-walk #step-03 .method-branches{grid-template-columns:1fr}
#production-walk #step-03 .method-requirements>.node+.node::before{left:50%;top:-1rem;width:0;height:1rem;border-top:0;border-left:1px solid var(--walk-wire)}
#production-walk #step-03 .method-branches{gap:1rem}
}

/* Section 04: complementary sources, kept distinct from processing. */
#production-walk #step-03 .data-source-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:start}
@media(max-width:767px){#production-walk #step-03 .data-source-groups{grid-template-columns:1fr}}

/* Section 04: source inputs by branch, with a shared administrative layer. */
#production-walk #step-03 .branch-source-map{display:grid;gap:.75rem}
#production-walk #step-03 .branch-source-row{display:grid;grid-template-columns:minmax(145px,.8fr) minmax(0,2.6fr);gap:1.25rem;align-items:center}
#production-walk #step-03 .branch-source-row>.node{position:relative}
#production-walk #step-03 .branch-source-row>.node::after{content:"";position:absolute;right:-1.25rem;top:50%;width:1.25rem;border-top:1px solid var(--walk-wire)}
#production-walk #step-03 .branch-source-detail{min-width:0;border-left:1px solid var(--walk-wire);padding:.4rem 0 .4rem 1rem;line-height:1.5}
#production-walk #step-03 .branch-source-detail strong{display:block;font-size:.9rem;font-weight:600}
#production-walk #step-03 .branch-source-detail small,#production-walk #step-03 .shared-admin small{display:block;font-size:.82rem;color:var(--muted);margin-top:.25rem;line-height:1.6}
#production-walk #step-03 .shared-admin{margin-top:1rem;padding:.8rem 1rem;border-top:2px solid #b9cec6;background:#e8efea;border-radius:0 0 .35rem .35rem}
#production-walk #step-03 .shared-admin strong{font-size:.9rem;font-weight:600;color:var(--accent)}
@media(max-width:767px){
#production-walk #step-03 .branch-source-row{grid-template-columns:1fr;gap:.4rem}
#production-walk #step-03 .branch-source-row>.node::after{display:none}
#production-walk #step-03 .branch-source-detail{margin-left:.6rem}
#production-walk #step-03 .branch-source-map{gap:1rem}
}

/* The remaining production stages use a shared, compact three-part pathway. */
#production-walk .completion-stage .completion-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;align-items:stretch}
#production-walk .completion-stage .completion-path>.node{position:relative;display:flex;flex-direction:column;justify-content:center}
#production-walk .completion-stage .completion-path>.node+.node::before{content:"";position:absolute;left:-1.25rem;top:50%;width:1.25rem;border-top:1px solid var(--walk-wire)}
#production-walk .completion-stage .completion-pair{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
@media(max-width:767px){
#production-walk .completion-stage .completion-path,#production-walk .completion-stage .completion-pair{grid-template-columns:1fr}
#production-walk .completion-stage .completion-path>.node+.node::before{left:50%;top:-1.25rem;width:0;height:1.25rem;border-top:0;border-left:1px solid var(--walk-wire)}
}

/* Section 05: processing responsibilities differ by source. */
#production-walk #step-05 .processing-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:start}
#production-walk #step-05 .processing-routes small{line-height:1.7}
@media(max-width:767px){#production-walk #step-05 .processing-routes{grid-template-columns:1fr}}

/* Section 05: parallel source routes join the estimation-ready inputs. */
#production-walk #step-05 .processing-routes{position:relative;align-items:stretch;padding-bottom:1rem}
#production-walk #step-05 .processing-routes::before{content:"";position:absolute;bottom:0;left:calc((100% - 2rem)/6);right:calc((100% - 2rem)/6);border-top:1px solid var(--walk-wire)}
#production-walk #step-05 .processing-routes>.node{position:relative}
#production-walk #step-05 .processing-routes>.node::after{content:"";position:absolute;left:50%;bottom:-1rem;height:1rem;border-left:1px solid var(--walk-wire)}
@media(max-width:767px){
#production-walk #step-05 .processing-routes{padding-left:1rem}
#production-walk #step-05 .processing-routes::before{left:0;right:auto;top:1.8rem;bottom:0;border-top:0;border-left:1px solid var(--walk-wire)}
#production-walk #step-05 .processing-routes::after{content:"";position:absolute;bottom:0;left:0;right:50%;border-top:1px solid var(--walk-wire)}
#production-walk #step-05 .processing-routes>.node::after{left:-1rem;top:50%;bottom:auto;height:0;width:1rem;border-left:0;border-top:1px solid var(--walk-wire)}
}

/* Desktop: use one continuous central connector for both levels. */
@media(min-width:768px){
#production-walk #step-05 .processing-routes::after{content:"";position:absolute;left:50%;top:calc(100% - 1rem);height:2.2rem;border-left:1px solid var(--walk-wire);transform:translateX(-50%)}
#production-walk #step-05 .processing-routes>.node:nth-child(2)::after,#production-walk #step-05 .processing-routes+.merge::before{display:none}
}

/* Source branches follow the scope diagram's four-column hierarchy. */
#production-walk .source-diagram-scroll{min-width:0;max-width:100%}
#production-walk .source-diagram-scroll:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
#production-walk #step-03 .source-tree{align-items:start}
#production-walk #step-03 .source-card-detail{margin-top:.75rem;padding-top:.6rem;border-top:1px solid var(--walk-wire);text-align:left}
#production-walk #step-03 .source-card-detail b{display:block;font-size:.85rem;font-weight:600;color:var(--accent);line-height:1.5}
#production-walk #step-03 .source-card-detail small{line-height:1.6;margin-top:.5rem}
@media(max-width:767px){
#production-walk .source-diagram-scroll{overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:.75rem;scrollbar-width:thin;scrollbar-color:var(--walk-wire) transparent}
#production-walk #step-01 .scope-tree{grid-template-columns:220px 150px 150px 220px;width:max-content;max-width:none;gap:.9rem}
#production-walk #step-01 .scope-agriculture,#production-walk #step-01 .scope-food{grid-column:auto}
#production-walk #step-03 .source-tree{grid-template-columns:repeat(4,220px);width:max-content;max-width:none;gap:.9rem}
#production-walk .source-diagram-scroll .tree>.node{scroll-snap-align:start}
}
