/* Interactive reference tree. Coordinates come from the same graph as the SVG edges. */
.tree-page-head{padding-bottom:29px;max-width:920px}.tree-page-head h1{font-size:57px}.tree-page-head p{font-size:14px;max-width:850px}.tree-view-tabs{display:flex;gap:34px;border-bottom:1px solid var(--line);align-items:center;margin-bottom:24px}.tree-view-tabs>a{padding:15px 0 18px;color:#b2beaa;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px}.tree-view-tabs>a.active{color:var(--gold);border-bottom-color:var(--gold)}.tree-view-tabs small{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:4px;letter-spacing:.01em}.tree-view-tabs>a.tree-directory-link{margin-left:auto;font-size:10px;align-self:center;border:0}.tree-directory-link span{margin-left:7px}.tree-filters{display:flex;gap:16px;align-items:end;margin-bottom:30px}.tree-filters .field{max-width:270px}.tree-filters .field label{font-size:9px}.tree-filters .button{font-size:11px;min-height:43px;padding:12px 19px}.tree-filters .text-button{font-size:11px;white-space:nowrap;padding:12px 0}.tree-explorer{min-width:0}.tree-heading{display:flex;gap:24px;justify-content:space-between;align-items:center;margin-bottom:12px}.tree-heading h2{font-size:32px;margin:6px 0 0}.tree-heading .eyebrow{font-size:9px}.tree-key{display:flex;gap:13px 20px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:520px;color:var(--muted);font-size:9px}.tree-key>span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.key-line{display:inline-block;width:26px;height:0;border-top:2px solid #9a9f8a}.key-line.promotion{border-color:var(--gold)}.key-line.prerequisite{border-color:#a8c0a0}.key-line.unlock{border-color:#788675;border-top-style:dashed;border-top-width:1px}.placeholder-key i{font-style:normal;font-family:var(--serif);font-size:10px;line-height:17px;text-align:center;width:22px;height:20px;border:1px solid var(--gold-dark);color:var(--gold);background:#2c3627}.tree-context{color:var(--muted);font-size:11px;line-height:1.8;margin:0 0 20px;max-width:1000px}.tree-context strong{font-weight:500;color:#d4c7a2}.tree-workspace{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:21px;align-items:start;min-width:0}.tree-chart-column{min-width:0}.tree-scroll-hint{font-size:9px;line-height:1.8;letter-spacing:.01em;color:#a7b69b;margin:0 0 9px}.tree-scroll-hint>span{font-size:14px;color:var(--gold);margin-right:6px}.tree-scroll{position:relative;max-width:100%;overflow:auto;border:1px solid #52604b;background:#172019;overscroll-behavior-x:contain;scrollbar-color:#68724d #19231c;scrollbar-width:thin;border-radius:2px}.tree-scroll::-webkit-scrollbar{height:12px;width:12px}.tree-scroll::-webkit-scrollbar-track{background:#19231c}.tree-scroll::-webkit-scrollbar-thumb{background:#68724d;border:3px solid #19231c;border-radius:9px}.tree-canvas{position:relative;isolation:isolate;min-width:100%;background:linear-gradient(180deg,#263126,#1d281e)}.tree-age-band{position:absolute;left:0;width:100%;border-top:1px solid #6c75544d;border-bottom:1px solid #0a100c55;background:#b4ad7a0a;pointer-events:none}.tree-age-band:nth-child(even){background:#d0c28d12}.tree-age-label{display:flex;position:sticky;left:0;z-index:8;flex-direction:column;align-items:center;justify-content:center;width:76px;height:100%;gap:10px;background:linear-gradient(90deg,#333c2b 90%,#333c2be8);border-right:1px solid #7e805a66;box-shadow:6px 0 10px #10180f22;color:#c7c4a0;text-align:center;font-size:8px;text-transform:uppercase;letter-spacing:.08em;line-height:1.7}.age-roman{display:flex;align-items:center;justify-content:center;height:38px;width:38px;font-family:var(--serif);font-size:24px;line-height:1;color:#e3cf8a;border:1px solid #9e925a77;background:#1e2b1e66}.tree-lane{position:absolute;top:0;height:100%;border-right:1px solid #8f96751c;pointer-events:none}.tree-lane-name{position:absolute;top:8px;left:0;width:100%;padding:0 8px;text-align:center;text-transform:uppercase;letter-spacing:.12em;font-size:8px;line-height:1.6;color:#c3c8ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-edges{position:absolute;left:0;top:0;z-index:1;overflow:visible;pointer-events:none}.tree-edge{fill:none;stroke:#9eae91;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:square;vector-effect:non-scaling-stroke}.edge-promotion{stroke:#d6ba70;stroke-width:2.2;filter:drop-shadow(0 0 2px #d6ba7020)}.edge-prerequisite{stroke:#a9c3a0;stroke-width:1.5}.edge-unlock{stroke:#809278;stroke-width:1;stroke-dasharray:5 4;opacity:.7}.tree-node{position:absolute;z-index:3;display:flex;flex-direction:column;align-items:center;text-align:center;color:#e1e4d0;padding:8px 5px 5px;border:1px solid #82936a;background:linear-gradient(145deg,#34442e,#243322);box-shadow:0 4px 6px #0a100a55;text-decoration:none;border-radius:2px;transition:background .12s,border-color .12s,box-shadow .12s;scroll-margin:140px 60px}.tree-node:before{content:'';position:absolute;inset:3px;border:1px solid #a9b78a22;pointer-events:none}.tree-node:hover{border-color:#e3c77d;color:#f4e5b3;background:linear-gradient(145deg,#435337,#2b3a25);box-shadow:0 0 0 2px #d4b57524,0 4px 7px #0006;z-index:5}.tree-node:focus-visible{outline:2px solid #f0d78c;outline-offset:3px;z-index:5}.tree-node.is-selected{border:2px solid #f0d184;background:linear-gradient(145deg,#596340,#34432b);box-shadow:0 0 0 3px #d6ba702d,0 4px 8px #0006;z-index:5;padding-top:7px}.tree-node-art{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:58px;height:58px;margin-bottom:6px;background:radial-gradient(ellipse,#79925733,transparent 70%)}.tree-node-art img{height:58px;width:58px;object-fit:contain;filter:drop-shadow(0 3px 3px #0006)}.node-age{position:absolute;right:-12px;top:-5px;height:17px;min-width:17px;padding:1px 3px;display:flex;align-items:center;justify-content:center;border:1px solid #ac9b5a;color:#e1d69e;background:#25311f;font-size:8px;font-family:var(--serif);line-height:1}.initials-tile{display:flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;background:linear-gradient(135deg,#b2a46a,#d2c18a 50%,#a5955d);border:2px solid #5a603a;outline:1px solid #c8b77e;color:#283923;font-family:var(--serif);font-size:25px;font-weight:bold;letter-spacing:.02em;box-shadow:inset 0 0 0 2px #e2d5a55a,0 3px 5px #0004;text-shadow:0 1px #e4d9ae77}.tree-node-name{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-family:var(--sans);font-size:9px;font-weight:600;line-height:1.3;letter-spacing:0;max-width:100%;overflow-wrap:break-word;hyphens:auto}.tree-node-state{font-size:6px;line-height:1.3;text-transform:uppercase;letter-spacing:.12em;color:#b7c2a4;margin-top:auto;padding-top:3px}.node-draft{border-color:#a69a5a}.node-draft .tree-node-state{color:#dcc68a}.kind-building{background:linear-gradient(145deg,#555b36,#313e26);border-color:#a99b5b;padding-top:5px}.kind-building .tree-node-art{height:40px;width:46px;margin-bottom:4px}.kind-building .tree-node-art img{width:45px;height:40px}.kind-building .initials-tile{width:35px;height:35px;font-size:17px}.kind-building .node-age{top:-2px;right:-14px}.kind-building .tree-node-name{font-size:9px;line-height:1.2;-webkit-line-clamp:2}.kind-building .tree-node-state{font-size:6px;letter-spacing:.07em;padding-top:2px}.tree-footnote{font-size:9px;color:#8fa081;line-height:1.9;margin:11px 0 0;max-width:850px}.tree-detail-panel{border:1px solid #697151;background:#202c21;position:sticky;top:20px;margin-top:26px;padding:22px;min-width:0;box-shadow:0 5px 15px #0002}.tree-detail-empty{text-align:center;padding:23px 0}.detail-rune{display:block;font-family:var(--serif);font-size:57px;color:#a5965c;line-height:1;margin-bottom:25px}.tree-detail-empty .eyebrow{font-size:8px}.tree-detail-empty h3{font-size:29px;margin:12px 0 16px}.tree-detail-empty p{color:#aeba9e;font-size:11px;line-height:1.9}.detail-example{text-align:left;margin-top:30px;border-top:1px solid var(--line);padding-top:17px;font-size:9px;line-height:2.9;color:#abb898}.detail-example span{font-size:8px;color:var(--gold);margin-right:9px}.tree-detail-art{height:135px;display:flex;justify-content:center;align-items:center;margin:-5px -5px 15px;background:radial-gradient(ellipse,#62754644,transparent 72%)}.tree-detail-art img{height:128px;width:128px;object-fit:contain;filter:drop-shadow(0 7px 7px #0006)}.initials-tile.large{height:84px;width:84px;font-size:38px;border-width:3px;box-shadow:inset 0 0 0 3px #e2d5a55a,0 6px 12px #0004}.tree-detail-title>.eyebrow{font-size:8px}.tree-detail-title h3{font-size:28px;line-height:1.18;margin:9px 0 14px;overflow-wrap:break-word}.tree-detail-title .status{font-size:7px;padding:4px 7px}.tree-detail-subtitle{font-family:var(--serif);font-size:16px;color:#c4cfb5;margin:14px 0 -3px}.tree-detail-description{font-size:11px;line-height:1.9;color:#b4c2a5;margin:17px 0 0}.tree-detail-section{padding-top:17px;margin-top:18px;border-top:1px solid #56624677}.tree-detail-section h4{font-family:var(--sans);font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:#d7d8bc;margin:0 0 12px;font-weight:600}.tree-detail-section .cost{gap:5px 12px}.tree-detail-section .resource{font-size:10px}.tree-detail-time{font-size:9px;color:#aab99a;margin:9px 0 0}.tree-small-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:0}.tree-small-stats dt{font-size:8px;color:#9fb18d}.tree-small-stats dd{font-family:var(--serif);font-size:20px;color:#e0e0c7;line-height:1.3;margin:4px 0 0}.tree-detail-note{font-size:9px;line-height:1.8;color:#9cac8b;margin:11px 0 0}.promotion-detail>.status{margin-bottom:13px;font-size:7px}.promotion-detail>h4{font-family:var(--serif);font-size:20px;text-transform:none;font-weight:400;letter-spacing:0;color:var(--gold);line-height:1.3;margin-bottom:10px}.promotion-detail>p:not(.tree-detail-time):not(.tree-detail-note){font-size:10px;color:#b7c3a5;line-height:1.9;margin-bottom:13px}.tree-connection-list{padding:0;margin:0;list-style:none}.tree-connection-list li+li{margin-top:13px}.tree-connection-list small{display:block;font-size:8px;color:#91a37e;margin-bottom:2px}.tree-connection-list a{font-size:10px;color:#d1c593;line-height:1.6}.tree-connection-list a:hover{color:#f0d693}.tree-connection-list a>span{margin-left:4px}.tree-full-reference{width:100%;font-size:10px;margin-top:22px;background:transparent;gap:15px}.tree-detail-panel[aria-busy=true]{opacity:.55}.tree-node.is-related{border-color:#b6c99e;box-shadow:0 0 0 2px #aac69333}.tree-edge.is-related{stroke:#f4da91;stroke-width:3}.tree-node.is-muted{opacity:.55}
@media(max-width:1200px){.tree-workspace{grid-template-columns:minmax(0,1fr) 255px;gap:17px}.tree-detail-panel{padding:19px}.tree-key{gap:10px 15px;max-width:450px}.tree-key>span{font-size:8px}.tree-filters{gap:12px}.tree-filters .field{max-width:230px}.tree-view-tabs{gap:26px}.tree-view-tabs>a{font-size:13px}.tree-view-tabs>a.tree-directory-link{font-size:9px}.tree-detail-title h3{font-size:26px}.tree-detail-section .resource{font-size:9px}.tree-small-stats dd{font-size:18px}}
@media(max-width:960px){.tree-page-head h1{font-size:49px}.tree-workspace{grid-template-columns:minmax(0,1fr) 225px;gap:14px}.tree-heading{align-items:start}.tree-heading h2{font-size:28px}.tree-key{max-width:315px;gap:8px 14px;padding-top:6px}.tree-filters{flex-wrap:wrap}.tree-filters .field{max-width:none;flex:1 1 200px}.tree-view-tabs{gap:22px}.tree-view-tabs>a{font-size:12px}.tree-view-tabs small{font-size:8px}.tree-view-tabs>a.tree-directory-link{max-width:140px;line-height:1.7;text-align:right}.tree-detail-panel{padding:17px}.tree-detail-title h3{font-size:24px}.tree-small-stats{grid-template-columns:repeat(2,1fr);gap:11px 10px}.tree-detail-empty{padding:12px 0}.tree-detail-empty h3{font-size:25px}.tree-detail-empty p{font-size:10px}.detail-example{font-size:8px;margin-top:24px}.tree-detail-title>.eyebrow{font-size:7px}.tree-detail-title .status{font-size:6px}.tree-context{font-size:10px}.tree-scroll-hint{font-size:8px}}
@media(max-width:720px){.tree-workspace{display:block}.tree-detail-panel{position:static;margin-top:20px;min-height:0;padding:23px}.tree-detail-empty{display:grid;grid-template-columns:70px 1fr;column-gap:18px;text-align:left;padding:0}.detail-rune{grid-row:1 / 5;align-self:center;font-size:50px;margin:0}.tree-detail-empty .eyebrow{margin:0}.tree-detail-empty h3{font-size:26px;margin:7px 0 12px}.tree-detail-empty p{font-size:11px;margin:0;max-width:450px}.detail-example{display:none}.tree-detail-art{float:left;width:115px;height:115px;margin:0 25px 18px 0}.tree-detail-art img{height:110px;width:110px}.initials-tile.large{height:76px;width:76px;font-size:35px}.tree-detail-title{min-height:115px;padding-top:6px}.tree-detail-title h3{font-size:29px}.tree-detail-title>.eyebrow{font-size:8px}.tree-detail-title .status{font-size:7px}.tree-detail-description{clear:both;font-size:12px;max-width:600px}.tree-detail-section{font-size:11px}.tree-small-stats{grid-template-columns:repeat(4,1fr);max-width:420px}.tree-small-stats dd{font-size:24px}.tree-small-stats dt{font-size:9px}.tree-detail-section .resource{font-size:11px}.tree-detail-section h4{font-size:10px}.tree-detail-time,.tree-detail-note{font-size:10px}.promotion-detail>p:not(.tree-detail-time):not(.tree-detail-note){font-size:11px}.tree-connection-list small{font-size:9px}.tree-connection-list a{font-size:11px}.tree-full-reference{max-width:240px}.tree-heading h2{font-size:29px}.tree-key{max-width:290px}.tree-view-tabs>a.tree-directory-link{margin-left:0;max-width:none;flex-basis:100%;text-align:left;padding:0 0 13px}.tree-view-tabs{flex-wrap:wrap;gap:0 30px}.tree-view-tabs>a:not(.tree-directory-link){padding-top:9px;padding-bottom:14px}.tree-view-tabs small{font-size:8px}.tree-filters{margin-bottom:23px}.tree-filters .field{flex-basis:calc(50% - 12px)}.tree-filters .button{font-size:10px;min-height:41px;padding:11px 17px}.tree-filters .text-button{font-size:10px;padding:11px 0}.tree-context{margin-bottom:17px}.tree-heading{gap:20px}.tree-scroll-hint{font-size:9px}.tree-footnote{font-size:9px}}
@media(max-width:500px){.tree-page-head h1{font-size:40px}.tree-page-head p{font-size:12px}.tree-view-tabs{gap:0 20px;margin-bottom:19px}.tree-view-tabs>a:not(.tree-directory-link){font-size:12px;max-width:calc(50% - 10px);flex-basis:calc(50% - 10px)}.tree-view-tabs small{font-size:7px;line-height:1.6;margin-top:4px;max-width:155px}.tree-view-tabs>a.tree-directory-link{font-size:9px;padding-top:10px}.tree-filters{gap:12px 10px}.tree-filters .field{flex-basis:100%}.tree-filters .field label{font-size:9px}.tree-heading{display:block;margin-bottom:15px}.tree-heading h2{font-size:30px}.tree-key{justify-content:flex-start;margin-top:14px;max-width:none;gap:9px 15px}.tree-key>span{font-size:8px}.key-line{width:21px}.placeholder-key i{height:18px;width:20px;font-size:9px}.tree-context{font-size:10px;line-height:1.9}.tree-detail-panel{padding:21px}.tree-detail-art{width:90px;height:100px;margin-right:18px}.tree-detail-art img{width:90px;height:100px}.initials-tile.large{width:68px;height:68px;font-size:31px}.tree-detail-title{min-height:110px;padding-top:3px}.tree-detail-title h3{font-size:25px;line-height:1.2;margin-bottom:12px}.tree-detail-title .eyebrow{font-size:7px}.tree-detail-title .status{font-size:6px}.tree-detail-subtitle{clear:both;padding-top:2px}.tree-detail-description{font-size:11px}.tree-detail-empty{grid-template-columns:45px 1fr;column-gap:16px}.detail-rune{font-size:40px}.tree-detail-empty h3{font-size:25px}.tree-detail-empty p{font-size:10px}.tree-detail-empty .eyebrow{font-size:7px}.tree-small-stats dd{font-size:22px}.tree-detail-section h4{font-size:9px}.tree-detail-section .resource{font-size:10px}.tree-detail-time,.tree-detail-note{font-size:9px}.tree-full-reference{max-width:100%}.tree-scroll{border-color:#6a7455}.tree-scroll-hint{font-size:8px;line-height:1.9}.tree-footnote{font-size:8px}.promotion-detail>h4{font-size:21px}.tree-lane-name{font-size:8px}}
.tree-edge.is-highlighted{stroke:#f4da91;stroke-width:3;opacity:1}
@media(prefers-reduced-motion:reduce){.tree-node{transition:none}}
