/* Expanded knowledge map and decision tree */
.theme-button{border:1px solid #afc2ad;background:transparent;color:var(--forest);padding:12px 13px;border-radius:4px;font-size:12px;font-weight:700;white-space:nowrap}
.header{gap:20px}.header nav{gap:26px}.map-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 28px;border-bottom:1px solid #e3e9df;color:#64786b;font-size:12px}.map-controls label{display:flex;align-items:center;gap:8px}.map-controls select{border:1px solid #d6e1d3;border-radius:4px;background:#fafbf6;color:#40594b;padding:7px}.zoom-controls{display:flex;align-items:center;gap:10px}.zoom-controls button{border:1px solid #d6e1d3;background:#fafbf6;color:#40594b;border-radius:4px;width:30px;height:30px;font-size:18px}.zoom-controls span{min-width:38px;text-align:center}.map-area{height:630px;min-height:0;overflow:auto;overscroll-behavior:contain}.map-area svg{display:block;max-width:none;height:auto;min-height:0}.cluster-bg{fill:#f5f8ef;fill-opacity:.76;stroke:#dce5d7}.cluster-label{fill:#667f6c;font:700 12px 'DM Sans',sans-serif;letter-spacing:1px}.map-line{stroke:#a8bbaa;stroke-width:1.1;stroke-opacity:.38}.map-line.active{stroke:#426b50;stroke-width:3;stroke-opacity:1}.map-line.muted{stroke-opacity:.07}.graph-node text{font-size:12px}.graph-node.dim{opacity:.18}.graph-node circle{stroke:#fafbf6}.topic-directory summary{padding:10px 25px 18px;font-size:12px;color:#5b7563;cursor:pointer}.topic-list{padding-top:0;max-height:220px;overflow:auto}.connection-note{font-size:11px!important}.detail{max-height:920px;overflow:auto}.thinking{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tree-intro>p:not(.eyebrow){max-width:440px;line-height:1.8;color:#718075}.tree-note{font-size:12px}.tree-overview{grid-column:1 / -1;background:#f1f4ea;border:1px solid #dce5d7;padding:25px}.tree-overview>div:first-child>p:not(.tiny-label){font-size:12px;color:#718075}.tree-scroll{overflow:auto}.tree-scroll svg{display:block;width:1150px;height:410px;max-width:none}.tree-edge{stroke:#9fb5a1;stroke-width:1.6}.arrow-head{fill:#7f9c82}.tree-node{cursor:pointer}.tree-node rect{fill:#fcfdf9;stroke:#b9cbb8;stroke-width:1.5}.tree-node text{font:600 13px 'DM Sans',sans-serif;fill:#365346;pointer-events:none}.tree-node:hover rect,.tree-node:focus rect,.tree-node.current rect{fill:#dceacb;stroke:#547a5f;stroke-width:2}.tree-topic-heading{font-size:10px;color:#728873;letter-spacing:.12em;margin:22px 0 10px}.question-card .related a{border:1px solid #b8c9b2;padding:7px 10px;border-radius:20px;font-size:11px;color:#496452;text-decoration:none}
/* Dark colours are deliberately applied to surfaces, controls and SVG, not just the page background. */
html[data-theme="dark"]{color-scheme:dark;--ink:#e1eadf;--muted:#b9cbbd;--cream:#17241f;--forest:#d4e8c9;--line:#43584b}
html[data-theme="dark"] body{background:#17241f;color:#e1eadf}
html[data-theme="dark"] .header{border-color:#394c40}html[data-theme="dark"] .header nav a,html[data-theme="dark"] .header-button,html[data-theme="dark"] .theme-button{color:#d8e5d8;border-color:#78907b}
html[data-theme="dark"] .hero-text,html[data-theme="dark"] .intro-right,html[data-theme="dark"] .section-heading p:not(.eyebrow),html[data-theme="dark"] .thinking>div:first-child>p:last-child,html[data-theme="dark"] .tree-intro>p:not(.eyebrow){color:#becfc1}
html[data-theme="dark"] .hero-note,html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .tiny-label{color:#adc4ae}
html[data-theme="dark"] .primary{background:#c7dba9;color:#1c3427}html[data-theme="dark"] .art-center{background:#365343;box-shadow:0 0 0 20px #263d31;color:#eef3e8}html[data-theme="dark"] .art-center span{color:#c1d4bb}html[data-theme="dark"] .art-node{color:#30483b}
html[data-theme="dark"] .ticker{background:#263b2e;border-color:#405847}html[data-theme="dark"] .ticker-inner{color:#bcd0ba}
html[data-theme="dark"] .explore-section{background:#203128}html[data-theme="dark"] .workspace,html[data-theme="dark"] dialog{background:#283c31;border-color:#4b6251;color:#e1eadf}html[data-theme="dark"] .map-toolbar,html[data-theme="dark"] .map-footer,html[data-theme="dark"] .map-controls,html[data-theme="dark"] .detail{border-color:#465e4c}
html[data-theme="dark"] .map-area{background-color:#24362b;background-image:radial-gradient(#415b48 1px,transparent 1px)}html[data-theme="dark"] .cluster-bg{fill:#2d4435;stroke:#59705c}html[data-theme="dark"] .cluster-label{fill:#c0d1bf}html[data-theme="dark"] .map-line{stroke:#9fbda4;stroke-opacity:.48}html[data-theme="dark"] .map-line.active{stroke:#d4eaa8;stroke-opacity:1}html[data-theme="dark"] .map-line.muted{stroke-opacity:.08}html[data-theme="dark"] .graph-node text{fill:#e2ecdf}html[data-theme="dark"] .graph-node circle{stroke:#2d4435}html[data-theme="dark"] .graph-node:hover circle,html[data-theme="dark"] .graph-node:focus circle,html[data-theme="dark"] .graph-node.selected circle{stroke:#f1f6e5}
html[data-theme="dark"] .search,html[data-theme="dark"] .map-controls select,html[data-theme="dark"] .zoom-controls button,html[data-theme="dark"] .guide-content input,html[data-theme="dark"] .guide-content select{background:#1c3024;border-color:#607765;color:#e4ede0}html[data-theme="dark"] .search input{color:#e4ede0}
html[data-theme="dark"] .map-toolbar p,html[data-theme="dark"] .map-controls,html[data-theme="dark"] .map-footer,html[data-theme="dark"] .topic-directory summary,html[data-theme="dark"] .detail p,html[data-theme="dark"] .detail a,html[data-theme="dark"] .detail h4,html[data-theme="dark"] .guide-content>p:not(.eyebrow),html[data-theme="dark"] .form-note{color:#c1d2bf}
html[data-theme="dark"] .topic-list button,html[data-theme="dark"] .related button{background:#263d2f;border-color:#64806a;color:#e1ebdc}html[data-theme="dark"] .detail .reflection{background:#344d3a;color:#e1edda}
html[data-theme="dark"] .question-card,html[data-theme="dark"] .tree-overview{background:#2c4233;border-color:#506957}html[data-theme="dark"] .choices button,html[data-theme="dark"] .question-card .related a{border-color:#809d7e;color:#e1ebdc}html[data-theme="dark"] .choices button:hover{background:#47634c}html[data-theme="dark"] .reflection-answer,html[data-theme="dark"] .tree-reset,html[data-theme="dark"] .tree-overview>div:first-child>p:not(.tiny-label),html[data-theme="dark"] .card-foot{color:#c3d6c0}html[data-theme="dark"] .tree-node rect{fill:#23382a;stroke:#78947a}html[data-theme="dark"] .tree-node text{fill:#e3eddf}html[data-theme="dark"] .tree-node:hover rect,html[data-theme="dark"] .tree-node:focus rect,html[data-theme="dark"] .tree-node.current rect{fill:#4b6c4c;stroke:#c3dfa6}html[data-theme="dark"] .tree-edge{stroke:#adc7aa}html[data-theme="dark"] .arrow-head{fill:#adc7aa}
html[data-theme="dark"] .care{background:#10221b}html[data-theme="dark"] .footer p{color:#b5c8b8}html[data-theme="dark"] .guide-close button,html[data-theme="dark"] .skip{color:#d4e7d0}
@media(max-width:800px){.header{gap:8px}.header .theme-button{margin-left:auto}.header .header-button{margin-left:0}.map-area{height:510px}.map-controls{padding:10px 15px}.thinking{grid-template-columns:1fr}.tree-overview{grid-column:1}.tree-scroll svg{width:1150px}}
@media(max-width:450px){.header{padding:0 14px}.brand{font-size:28px}.theme-button{padding:10px 9px;font-size:11px}.header-button{padding:10px 9px;font-size:11px}.header-button span{padding-left:4px}.map-controls{align-items:flex-start;flex-wrap:wrap}.map-controls label{flex-direction:column;align-items:flex-start;gap:3px}.map-area{height:440px}}

/* Drag-to-pan and selectable links, with keyboard-accessible alternatives. */
.map-area{touch-action:none;cursor:grab;user-select:none}.map-area.dragging{cursor:grabbing}.map-edge{cursor:pointer}.map-edge .edge-hit{stroke:transparent;stroke-width:18;pointer-events:stroke}.map-edge:hover .map-line,.map-edge:focus .map-line{stroke:#416d4e;stroke-opacity:1;stroke-width:3}.map-edge:focus-visible{outline:none}.map-edge:focus-visible .map-line{stroke:#b26d56;stroke-opacity:1;stroke-width:4}.graph-node{cursor:pointer}.connection-list{padding:0;margin:0;list-style:none}.connection-list li{border-bottom:1px solid #e2e9df}.connection-list button{width:100%;border:0;background:transparent;text-align:left;padding:10px 0;color:#476953;font-size:12px;font-weight:700}.connection-list button span{display:block;color:#809587;font-size:10px;font-weight:400;margin-top:3px}.edge-join{color:#8bab87}.culture-atlas{padding-top:100px;padding-bottom:50px}.culture-atlas h2{font-size:clamp(38px,4vw,53px);line-height:1.1;margin:20px 0}.culture-atlas h2 em{color:#8ba47c;font-weight:400}.atlas-lead{color:#607168;line-height:1.8;max-width:760px}.case-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:30px}.case-card{background:#eaf0e3;padding:30px 34px;border:1px solid #d8e3d3}.case-tag{font-size:10px;font-weight:700;letter-spacing:.12em;color:#728b75}.case-card h3{font-size:29px;margin:17px 0}.case-card p{line-height:1.75;color:#5b6f62;font-size:13px}.case-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:18px}.case-links a{font-size:12px;font-weight:700;color:#456a50}.case-card button{margin-top:24px;border:0;background:none;color:#345b40;font-size:12px;font-weight:700;padding:0;text-align:left;text-decoration:underline;text-underline-offset:4px}
html[data-theme="dark"] .map-edge:hover .map-line,html[data-theme="dark"] .map-edge:focus .map-line{stroke:#e1f0ba;stroke-opacity:1}html[data-theme="dark"] .connection-list li{border-color:#4b6552}html[data-theme="dark"] .connection-list button{color:#d7ead2}html[data-theme="dark"] .connection-list button span{color:#afc7b0}html[data-theme="dark"] .atlas-lead{color:#c1d2bf}html[data-theme="dark"] .case-card{background:#2c4233;border-color:#506957}html[data-theme="dark"] .case-card p,html[data-theme="dark"] .case-links a,html[data-theme="dark"] .case-card button,html[data-theme="dark"] .case-tag{color:#d1e0ce}
@media(max-width:800px){.case-grid{grid-template-columns:1fr}.culture-atlas{padding-top:70px}.case-card{padding:25px}}
