/* Graph layout and controls. All colors are defined in theme.css. */
.wide-main .article-layout{display:block;padding-bottom:35px}.wide-main .article{max-width:none;min-width:0}.site-map-page .article-header{padding-bottom:0;margin-bottom:22px;border:0}.site-map-page .article-header h1{font-size:40px;margin-bottom:10px;max-width:none}.site-map-page .article-header .lead{font-size:16px;max-width:none;margin-bottom:0}.site-map-page .breadcrumbs{padding-bottom:22px}
.site-map-workspace{margin-bottom:24px!important;min-width:0}.map-summary{display:flex;justify-content:space-between;gap:12px 25px;flex-wrap:wrap;margin-bottom:15px}.map-summary p{font-size:12px!important;margin:0}.map-summary span{margin:0 7px}.map-controls{display:flex;align-items:end;gap:12px 20px;flex-wrap:wrap;margin-bottom:16px}.map-controls label{display:grid;gap:5px;font-size:11px;font-weight:600}.map-controls input[type=search]{background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:4px;padding:8px 11px;font-size:12px;height:39px;max-width:100%}.map-controls input[type=search]{width:250px}.map-zoom{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.map-zoom button{background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:4px;padding:8px 11px;min-height:39px;font-size:12px}.map-zoom button:hover{background:var(--surface-hover)}.map-zoom output{font-size:11px;min-width:45px;text-align:center}.map-legend{display:flex;flex-wrap:wrap;gap:8px 20px;list-style:none;padding:0!important;max-width:none!important;margin:0 0 16px}.map-legend li{display:flex;align-items:center;gap:6px;padding:0;margin:0;font-size:11px!important}.map-swatch{width:12px;height:12px;border:1px solid var(--map-node-line);border-radius:3px;flex:0 0 auto}.map-type-count{font-size:10px;color:var(--subtle)}
.map-swatch.type-overview{background:var(--map-overview)}.map-swatch.type-learning{background:var(--map-learning)}.map-swatch.type-walkthrough{background:var(--map-walkthrough)}.map-swatch.type-task{background:var(--map-task)}.map-swatch.type-guide{background:var(--map-guide)}.map-swatch.type-reference{background:var(--map-reference)}.map-swatch.type-help{background:var(--map-help)}.map-swatch.type-map{background:var(--map-map)}
.map-body{min-width:0}.map-stage{position:relative;height:clamp(440px,66dvh,780px);width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--line-strong);border-radius:7px;background:var(--map-paper);cursor:grab;touch-action:pan-x pan-y}.map-stage.is-dragging{cursor:grabbing;user-select:none}.map-stage a{cursor:pointer}.map-stage:focus-visible{outline-offset:3px}#map-sheet{display:grid;place-items:center;min-width:0;min-height:0}#website-graph{display:block;max-width:none;flex:none}#website-graph .node{transition:opacity .12s}#website-graph .node a:focus-visible{outline:none}#website-graph .node a:focus-visible path,#website-graph .node.is-selected path{stroke:var(--map-focus);stroke-width:2.5}#website-graph.is-focused .node:not(.is-selected):not(.is-neighbor){opacity:.4}#website-graph.is-focused .edge:not(.is-neighbor){opacity:.3}#website-graph .edge.is-incoming path{stroke:var(--map-incoming);stroke-opacity:1;stroke-width:1.8}#website-graph .edge.is-incoming polygon{stroke:var(--map-incoming);fill:var(--map-incoming);fill-opacity:1;stroke-opacity:1}#website-graph .edge.is-outgoing path{stroke:var(--map-outgoing);stroke-opacity:1;stroke-width:1.8}#website-graph .edge.is-outgoing polygon{stroke:var(--map-outgoing);fill:var(--map-outgoing);fill-opacity:1;stroke-opacity:1}#website-graph .node.is-neighbor path{stroke-width:1.5}#website-graph.is-searching .node:not(.matches-search){opacity:.18}#map-stage[data-show-hierarchy=false] .hierarchy-link{display:none}#map-stage[data-show-content=true] .secondary-link,#map-stage[data-show-navigation=true] .navigation-link,#map-stage .edge.is-neighbor{display:inline}
.map-details{display:grid;grid-template-columns:minmax(200px,.9fr) minmax(300px,1.6fr) minmax(150px,.65fr);gap:22px;margin-top:18px;border-top:1px solid var(--line);padding-top:20px}.map-details .eyebrow{font-size:9px;margin-bottom:9px}.map-details h2{font:400 25px/1.2 Georgia,serif;margin-bottom:9px}.map-details p{font-size:12px!important;line-height:1.7;margin-bottom:10px}.map-details code{display:block;overflow-wrap:anywhere;font-size:10px;margin:8px 0 12px}.map-open-page{font-size:12px;font-weight:650;color:var(--accent)}#map-connections{display:grid;grid-template-columns:1fr 1fr;gap:20px}.map-neighbors h3{font:600 12px/1.4 'Segoe UI',sans-serif;margin-bottom:8px}.map-neighbors h3 span{font-weight:400;color:var(--subtle)}.map-neighbors ul{max-height:180px;overflow:auto;margin:0;padding:0;list-style:none}.map-neighbors li{padding:0;margin:0 0 7px}.map-neighbors a{font-size:11px;text-decoration:none;display:block;line-height:1.5}.map-neighbors a:hover{text-decoration:underline}.map-neighbors small{font-size:9px;color:var(--subtle);display:block}.map-key{font-size:10px!important;line-height:2!important}.map-line{display:inline-block;width:18px;border-top:2px solid var(--map-edge);margin-right:6px;vertical-align:middle}.map-line-secondary{opacity:.3}.map-line-navigation{opacity:.15}.map-line-incoming{border-color:var(--map-incoming)}.map-line-outgoing{border-color:var(--map-outgoing)}.map-status{font-size:12px!important;color:var(--subtle);margin:15px 0 0!important}.map-downloads{display:flex;gap:20px;flex-wrap:wrap;margin-top:14px;font-size:12px}.map-scope{font-size:13px}.map-scope p{font-size:13px!important}.map-scope summary{font-size:13px;font-weight:650;cursor:pointer}
.site-map-workspace:fullscreen{display:flex;flex-direction:column;padding:18px;background:var(--content-background);color:var(--content-ink);overflow:auto}.site-map-workspace:fullscreen .map-body{flex:1;min-height:0;position:relative}.site-map-workspace:fullscreen .map-stage{height:100%;min-height:300px}.site-map-workspace:fullscreen .map-details{display:none}.site-map-workspace:fullscreen .map-downloads{display:none}
@media(max-width:1000px){.map-details{grid-template-columns:1fr 1.5fr}.map-key{grid-column:1/-1}.map-stage{height:600px}}
@media(max-width:650px){.site-map-page .article-header h1{font-size:34px}.map-controls{gap:12px}.map-controls label{width:100%}.map-controls input[type=search]{width:100%}.map-zoom{gap:5px}.map-zoom button{padding:8px 10px}.map-summary{gap:5px}.map-details{grid-template-columns:1fr}.map-key{grid-column:auto}.map-stage{height:500px}.map-legend{gap:7px 14px}.map-legend li{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){#website-graph .node{transition:none}}
@media print{.site-map-page .site-header,.map-controls,.map-details,.map-status,.map-downloads,.map-scope{display:none}.map-stage{height:auto!important;overflow:visible;border:0}#map-sheet{width:100%!important;height:auto!important}#website-graph{width:100%!important;height:auto!important}.wide-main .wrap{width:100%}.map-summary,.map-legend{break-inside:avoid}}

#map-connections[hidden],#map-open-page[hidden]{display:none!important}

/* Independent additive link layers; checkbox styling is separate from search. */
.map-layers{border:0;margin:0;padding:0;display:flex;align-items:center;gap:5px 14px;flex-wrap:wrap;min-width:0;min-height:61px}
.map-layers legend{padding:0;margin:0 0 5px;font-size:11px;font-weight:600}
.map-controls .map-layers label{display:inline-flex;align-items:center;gap:6px;width:auto;min-height:39px;font-size:12px;white-space:nowrap;cursor:pointer}
.map-controls .map-layers input{width:16px;height:16px;margin:0;accent-color:var(--content-accent);cursor:pointer}
@media(max-width:650px){.map-layers{width:100%;gap:0 12px}.map-controls .map-layers label{font-size:11px}}

/* Branch disclosure is independent of page selection and global link layers. */
.map-script-only{display:none}.map-ready .map-script-only{display:flex}.map-ready .map-summary .map-script-only{display:inline}
.map-branch-controls{align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px;font-size:11px}.map-branch-controls>span:first-child{font-weight:600;margin-right:3px}.map-branch-controls button,#map-reveal-connections{background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:4px;padding:7px 10px;font:inherit;cursor:pointer}.map-branch-controls button:hover,#map-reveal-connections:hover{background:var(--surface-hover)}.map-branch-hint{color:var(--subtle);margin-left:5px}
#map-reveal-connections{display:block;margin-top:12px;font-size:11px}#map-reveal-connections[hidden]{display:none}
#website-graph [data-map-hidden=true]{display:none!important}
#website-graph .edge{pointer-events:none}
#website-graph.is-interactive .branch-action{display:inline;fill:var(--map-ink)}#website-graph.is-interactive .branch-heading{cursor:pointer}#website-graph .branch-heading:hover .branch-hit,#website-graph .branch-heading:focus-visible .branch-hit{fill:var(--map-paper);stroke:var(--map-focus);stroke-width:1.25}#website-graph .branch-heading:focus-visible{outline:none}#website-graph.is-interactive .is-collapsed .branch-summary{display:inline}
#website-graph.is-interactive .has-no-descendants .branch-action{display:none}#website-graph.is-interactive .has-no-descendants .branch-heading{cursor:default}#website-graph .has-no-descendants .branch-heading:hover .branch-hit{fill:transparent;stroke:none}
@media(max-width:650px){.map-branch-hint{width:100%;margin:2px 0 0}}
@media print{.map-branch-controls{display:none!important}}

/* A task's disclosure is a separate control from the page-selection link. */
#website-graph.is-interactive .task-reference-count{visibility:hidden}
#website-graph .task-disclosure{cursor:pointer}#website-graph .task-disclosure rect{fill:var(--map-task);stroke:var(--map-node-line);stroke-width:.5;stroke-opacity:.55}#website-graph .task-disclosure text{fill:var(--map-ink);pointer-events:none}#website-graph .task-disclosure:hover rect,#website-graph .task-disclosure:focus-visible rect{stroke:var(--map-focus);stroke-width:1.5;stroke-opacity:1}#website-graph .task-disclosure:focus-visible{outline:none}#website-graph.is-focused .task-disclosure:not(.is-selected):not(.is-neighbor){opacity:.4}

.map-view-hint{font-size:12px!important;margin:0 0 14px!important;color:var(--subtle)}
