/* Alliance knowledge uses the same parchment, library frames and wooden actions. */
.action-sheet[data-view='alliance-technology']{inset:0;width:100%;max-height:100%}
.action-sheet[data-view='alliance-technology'] .sheet-handle{display:none}
.action-sheet[data-view='alliance-technology'] .sheet-content{padding-inline:20px}
.action-sheet[data-view='alliance-technology'] .sheet-heading{position:relative;min-height:72px;padding-right:calc(50px + var(--sheet-close-inset,12px) + var(--space,8px))}
.action-sheet[data-view='alliance-technology'] .sheet-heading>div{min-width:0}
.action-sheet[data-view='alliance-technology'] .sheet-heading h2{overflow-wrap:anywhere}
.action-sheet[data-view='alliance-technology'] #close-sheet{position:absolute;right:var(--sheet-close-inset,12px);top:50%;transform:translateY(-50%);z-index:3;flex:none;width:50px;height:50px;min-width:50px;min-height:50px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent url('./art-web/governor-regalia-v1-d5b7eac8bf.webp') right center/200% 100% no-repeat;color:#e0be70;filter:drop-shadow(0 2px 1px #31180999)}
.action-sheet[data-view='alliance-technology'] #close-sheet .icon{width:25px;height:25px;stroke-width:1.8}
.action-sheet[data-view='alliance-technology'] #close-sheet:hover{filter:brightness(1.12) drop-shadow(0 2px 1px #31180999)}
.alliance-technology-panel{min-width:0;color:var(--antique-ink)}
.alliance-technology-panel .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.alliance-technology-panel :is(.primary-button,.secondary-button){min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;--button-overhang:-5px;font-size:17px}
.alliance-technology-panel :focus-visible{outline:2px solid var(--antique-gold);outline-offset:2px}
.sheet-content .alliance-technology-panel h3{font:700 24px/1.15 var(--serif);color:var(--green);overflow-wrap:anywhere}
.sheet-content .alliance-technology-panel h4{margin:0 0 10px;font:700 20px/1.15 var(--serif);color:var(--green)}
.sheet-content .alliance-technology-tabs,.sheet-content .alliance-technology-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 0 14px}
.sheet-content .alliance-technology-tabs>button,.sheet-content .alliance-technology-categories>button{min-width:0;min-height:44px;padding:8px 3px;font:700 16px/1.2 var(--serif);white-space:normal;overflow-wrap:anywhere}
.sheet-content .alliance-technology-panel .alliance-technology-tabs>button{border:0;background:none;box-shadow:none;color:#f7e7bd;text-shadow:0 1px 3px #060805}.sheet-content .alliance-technology-panel .alliance-technology-tabs>button.active{border:0;background:none;box-shadow:none;color:#f7e7bd}
.alliance-technology-wallet{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px;padding:10px 12px;border:1px solid #b3965a88;box-shadow:inset 0 0 16px #c6aa7040;background:linear-gradient(135deg,#f8eddb80,#d9c99f44);font:14px var(--sans)}
.alliance-technology-wallet>span{display:flex;align-items:center;gap:6px;min-width:0}.alliance-technology-wallet>span:last-child{flex:none;font:700 24px var(--serif)}
.alliance-token{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border:2px ridge #b79856;border-radius:50%;background:linear-gradient(125deg,#e7cb85,#ac7b32);color:#624522;box-shadow:inset 0 0 0 1px #67491f44}.alliance-token>.icon{width:18px;height:18px}
.sheet-content .alliance-technology-intro{margin:0 0 16px;color:var(--antique-muted);font:13px/1.45 var(--sans)}
.alliance-technology-tree{position:relative;isolation:isolate;display:grid;gap:32px;margin:0 0 16px;min-width:0}
.alliance-technology-links{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible;pointer-events:none}.alliance-technology-links path{fill:none;stroke:#98714099;stroke-width:1.5;vector-effect:non-scaling-stroke}
.alliance-technology-tree-level{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}.alliance-technology-tree-level[data-technology-columns='1']{grid-template-columns:minmax(0,1fr);width:calc(50% - 6px);justify-self:center}.alliance-technology-tree-level[data-technology-columns='3']{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.alliance-technology-tree-level[data-technology-columns='3'] .research-node-copy strong{font-size:15px}.alliance-technology-tree-level[data-technology-columns='3'] .research-node-select{padding-inline:5px}
.alliance-technology-node.research-node{margin:0;display:flex;flex-direction:column;border:1px solid #98714077;box-shadow:inset 0 0 0 2px #f8ebcd66;background:linear-gradient(135deg,#f8eddb80,#d9c99f44)}
.alliance-technology-node.research-node::before{display:none}
.alliance-technology-node .research-node-select{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:12px 8px;text-align:center;min-height:166px}
.alliance-technology-node .research-node-select>.icon:last-child{display:none}
.alliance-technology-node .research-node-symbol{width:56px;height:56px;border:2px ridge #b79856;background:radial-gradient(ellipse at 50% 32%,#f7e7c375,#c29c573d 82%);box-shadow:inset 0 0 0 2px #67491f44,inset 0 0 13px #74512633;color:var(--green)}
.alliance-technology-node .research-node-symbol .icon{width:32px;height:32px}
.alliance-technology-art{display:grid;place-items:center;width:100%;height:100%;background-image:url('./art-web/buildings-v2-e72f6589ea.webp');background-size:400% 400%;background-repeat:no-repeat;pointer-events:none}
.alliance-technology-art>.icon{display:none}
.alliance-technology-art[data-technology-art='headquarters']{background-image:url('./art-web/alliance-hq-v1-201e99be5e.webp');background-size:contain;background-position:center}
.alliance-technology-art[data-technology-art='flag']{background-image:url('./art-web/alliance-flag-v1-d842655fa8.webp');background-size:contain;background-position:center}
.alliance-technology-art[data-technology-art='construction']{background-position:33.333333% 66.666667%}
.alliance-technology-art[data-technology-art='library']{background-position:33.333333% 100%}
.alliance-technology-art[data-technology-art='hospital']{background-position:66.666667% 100%}
.alliance-technology-art[data-technology-art='food']{background-position:33.333333% 33.333333%}
.alliance-technology-art[data-technology-art='wood']{background-position:66.666667% 33.333333%}
.alliance-technology-art[data-technology-art='stone']{background-position:100% 33.333333%}
.alliance-technology-art[data-technology-art='iron']{background-position:0 66.666667%}
.alliance-technology-art:is([data-technology-art='training'],[data-technology-art='infantry'],[data-technology-art='ranged'],[data-technology-art='cavalry']){background-image:url('./art-web/report-units-v1-a439069e2c.webp');background-size:200% 200%;background-position:0 0}
.alliance-technology-art[data-technology-art='ranged']{background-position:100% 0}.alliance-technology-art[data-technology-art='cavalry']{background-position:0 100%}
.alliance-technology-node .research-node-copy{display:flex;flex-direction:column;justify-content:flex-start;gap:5px;flex:1;width:100%}
.alliance-technology-node .research-node-copy strong{font-size:17px;line-height:1.2}
.alliance-technology-node .research-node-copy small{font:11px/1.35 var(--sans);margin:0;color:var(--antique-muted)}
.alliance-technology-level{font:700 16px/1.2 var(--serif);color:var(--green)}
.alliance-technology-node.locked .research-node-symbol{color:var(--antique-muted);filter:saturate(.4)}
.alliance-technology-node>progress{width:calc(100% - 16px);margin:0 8px 8px;height:6px;accent-color:var(--green)}
.alliance-technology-active{display:flex;align-items:center;gap:10px;margin:14px 0;padding:12px;border:1px solid #567043;background:#78945816}.alliance-technology-active>.icon{flex:none;color:var(--green);width:28px;height:28px}.alliance-technology-active>span{min-width:0}.alliance-technology-active strong{display:block;font:700 19px/1.2 var(--serif);overflow-wrap:anywhere}.alliance-technology-active small{display:block;margin-top:5px;font:12px/1.35 var(--sans)}
.alliance-technology-detail{margin-top:18px;min-width:0}.alliance-technology-detail>header{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid #b3965a66}.alliance-technology-detail>header h3{margin:0 0 7px}.sheet-content .alliance-technology-detail>header p{margin:0;font:12px/1.4 var(--sans);color:var(--antique-muted)}
.alliance-technology-emblem{display:grid;place-items:center;width:64px;height:64px;border:2px ridge #b79856;background:radial-gradient(ellipse at 50% 32%,#f7e7c375,#c29c573d 82%);box-shadow:inset 0 0 0 2px #67491f44,inset 0 0 13px #74512633;color:var(--green)}.alliance-technology-emblem>.icon{width:44px;height:44px}
.sheet-content .alliance-technology-detail>p{font:13px/1.5 var(--sans);margin:14px 0;overflow-wrap:anywhere}
.alliance-technology-benefits{margin:14px 0;border-block:1px solid #b3965a66}.alliance-technology-benefits>div{display:grid;grid-template-columns:minmax(0,1fr) 64px 64px;gap:8px;padding:9px 0;font:13px/1.35 var(--sans)}.alliance-technology-benefits>div:first-child{font-size:11px;color:var(--antique-muted)}.alliance-technology-benefits>div+div{border-top:1px solid #b3965a44}.alliance-technology-benefits>div>:nth-child(n+2){text-align:right;overflow-wrap:anywhere}.alliance-technology-benefits>div>:last-child{color:var(--green)}
.alliance-technology-prerequisites{margin:18px 0}.alliance-technology-prerequisites>button{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 0;background:transparent;color:var(--antique-ink);text-align:left;border:0;border-block-end:1px solid #b3965a44;font:13px/1.35 var(--sans)}.alliance-technology-prerequisites>button>.icon{flex:none;width:18px;height:18px;color:var(--green)}.alliance-technology-prerequisites>button>span{flex:1;min-width:0}.alliance-technology-prerequisites small{flex:none;color:var(--antique-muted);font-size:11px}
.alliance-technology-funding,.alliance-technology-research{margin:20px 0;padding:14px 12px;border:1px solid #b3965a88;background:#ede2c744;min-width:0}
.alliance-technology-progress-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font:12px/1.35 var(--sans)}.alliance-technology-progress-label>strong{flex:none;font-variant-numeric:tabular-nums}
.alliance-technology-funding>progress{display:block;width:100%;height:9px;margin:8px 0 14px;accent-color:var(--green)}
.alliance-technology-package{display:flex;align-items:center;justify-content:space-between;gap:8px;font:12px/1.35 var(--sans)}.alliance-technology-package>span:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.alliance-technology-resource{display:inline-flex;align-items:center;gap:5px;font:13px/1.4 var(--sans)}.alliance-technology-resource>.icon{width:24px;height:24px;flex:none}
.sheet-content .alliance-technology-panel .muted{font:12px/1.45 var(--sans);color:var(--antique-muted);margin:10px 0}.sheet-content .alliance-technology-panel .notice{font:13px/1.4 var(--sans);overflow-wrap:anywhere}
.alliance-technology-charges{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin:14px 0;font:12px/1.4 var(--sans)}.alliance-technology-charges small{font:11px/1.4 var(--sans);color:var(--antique-muted)}
.alliance-technology-donate{display:grid;grid-template-columns:78px minmax(0,1fr);gap:14px;align-items:end;margin:14px 4px 8px}.alliance-technology-donate>label{display:grid;gap:6px;font:12px/1.3 var(--sans)}.alliance-technology-donate input{width:100%;min-width:0;min-height:44px;padding:8px;color:var(--antique-ink);background:#fff9e9;border:1px solid var(--antique-gold);font:16px var(--sans)}.alliance-technology-donate>button{margin:0;min-height:44px;padding-inline:8px}
.alliance-technology-cost-head,.alliance-technology-cost-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(50px,auto) minmax(50px,auto);gap:8px;align-items:center;padding:9px 0;font:12px/1.4 var(--sans);border-bottom:1px solid #b3965a44}.alliance-technology-cost-head{font-size:11px;color:var(--antique-muted)}.alliance-technology-cost-row>span:first-child{display:flex;align-items:center;gap:6px;min-width:0}.alliance-technology-cost-row .icon{width:24px;height:24px;flex:none}.alliance-technology-cost-head>:nth-child(n+2),.alliance-technology-cost-row>:nth-child(n+2){text-align:right;overflow-wrap:anywhere}.alliance-technology-cost-row .is-insufficient{color:#8b3424}.alliance-technology-research>.primary-button{width:calc(100% - 8px);margin:14px 4px 8px}
.alliance-shop-hero{display:flex;align-items:center;justify-content:flex-end;min-height:122px;margin:0 0 12px;padding:12px;border:1px solid #b3965a88;background:linear-gradient(90deg,transparent 25%,#efe3ca26 46%,#efe3cae8 70%),var(--alliance-shop-hero) center/cover}
.alliance-shop-wallet{display:grid;width:48%;min-width:120px;gap:8px;margin:0;padding:10px 8px;background:linear-gradient(135deg,#f8eddbc7,#e6d5b099);box-shadow:inset 0 0 0 2px #f8ebcd66,inset 0 0 16px #c6aa7040}
.alliance-shop-wallet>span{font:16px/1.15 var(--serif);flex-wrap:wrap}
.alliance-shop-wallet>span:last-child{font:700 36px/1.1 var(--serif)}
.alliance-shop-wallet .alliance-token{width:36px;height:36px}.alliance-shop-wallet .alliance-token>.icon{width:24px;height:24px}
.alliance-technology-shop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.alliance-technology-shop-item{display:grid;grid-template-columns:60px minmax(0,1fr);gap:8px;align-items:center;min-width:0;padding:10px 8px;border:1px solid #b3965a88;box-shadow:inset 0 0 0 2px #f8ebcd66,inset 0 0 16px #c6aa7040;background:linear-gradient(135deg,#f8eddb80,#d9c99f44)}
.sheet-content .alliance-technology-shop-item h3{font-size:21px;line-height:1.1;margin:0 0 6px;color:var(--antique-ink)}
.alliance-shop-item-copy{min-width:0}
.alliance-technology-shop-art{display:grid;place-items:center;width:60px;height:88px;position:relative;min-width:0;filter:drop-shadow(0 2px 1px #64432133)}
.alliance-technology-shop-art>.icon{width:58px;height:70px}
.alliance-shop-resource{display:grid;place-items:center;width:100%;aspect-ratio:1;background:url('./art-web/report-resources-compact-v2-91562db5ea.webp') no-repeat;background-size:200% 200%}
.alliance-shop-resource.food{background-position:0 0}.alliance-shop-resource.wood{background-position:100% 0}.alliance-shop-resource.stone{background-position:0 100%}.alliance-shop-resource.iron{background-position:100% 100%}
.alliance-shop-resource>.icon,.alliance-shop-resource>.standard-item-art{display:none}
.alliance-technology-shop-art>.inventory-item-art{width:100%;background-image:url('./art-web/inventory-rewards-compact-v2-913f584e23.webp')}.alliance-technology-shop-art>.inventory-item-art>.icon{display:none}
.alliance-technology-shop-art>.teleport-item-art{width:100%;height:100%;max-width:none}.alliance-technology-shop-art .teleport-item-art img{object-fit:contain;width:100%;height:100%}
.alliance-technology-reward{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font:16px/1.25 var(--serif);overflow-wrap:anywhere}
.alliance-technology-shop-item .alliance-technology-reward .alliance-technology-resource>.standard-item-art,.alliance-technology-shop-item .alliance-technology-reward .alliance-technology-resource>.icon{display:none}
.alliance-technology-shop-item .alliance-technology-resource{font:16px/1.25 var(--serif)}
.sheet-content .alliance-technology-price{display:flex;align-items:center;gap:5px;margin:8px 0 0;font:13px var(--sans)}.alliance-technology-price>strong{font:700 21px var(--serif)}
.alliance-technology-shop-item>button{grid-column:1/-1;margin:4px 2px;min-width:0;padding-inline:5px}
.alliance-technology-shop-item>small{grid-column:1/-1;text-align:center;font:12px var(--sans);color:var(--antique-muted);overflow-wrap:anywhere}
.alliance-shop-delivery{margin:14px 0;text-align:center;font:16px/1.3 var(--serif);border-top:1px solid #b3965a66;padding-top:12px}
@media(max-width:360px){.alliance-technology-shop{grid-template-columns:minmax(0,1fr)}.alliance-technology-shop-item{grid-template-columns:90px minmax(0,1fr);gap:8px 12px;padding:12px}.alliance-technology-shop-art{width:90px;height:108px}.alliance-technology-shop-item>button{grid-column:2;margin:0 2px 4px}.alliance-technology-shop-art{grid-row:1/3}.alliance-shop-wallet{width:54%;min-width:115px}.alliance-shop-wallet>span:last-child{font-size:30px}}
@media(min-width:440px){.alliance-technology-shop-item{grid-template-columns:76px minmax(0,1fr);gap:8px;padding:12px}.alliance-technology-shop-art{width:76px;height:112px}.alliance-technology-shop-item>button{grid-column:2;margin:0 2px 4px}.alliance-technology-shop-art{grid-row:1/3}}
@media(forced-colors:active){.alliance-shop-hero,.alliance-shop-wallet{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}.alliance-shop-resource{background:none}.alliance-shop-resource>.icon,.alliance-shop-resource>.standard-item-art{display:block}.alliance-technology-shop-art>.inventory-item-art{background:none}.alliance-technology-shop-art>.inventory-item-art>.icon{display:block}}
.sheet-content .alliance-technology-week>h3{margin:0 0 10px}.sheet-content .alliance-technology-week>p{font:13px/1.45 var(--sans);margin:0 0 16px}.alliance-technology-week>.metric-line{font:12px/1.4 var(--sans)}.alliance-technology-week>.metric-line>strong{font:700 14px/1.4 var(--sans)}
.alliance-technology-prizes{display:grid;gap:8px;margin:16px 0}.alliance-technology-prizes>article{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border:1px solid #b3965a66;background:#ac873015;font:700 18px var(--serif)}.alliance-technology-prizes>article>div{display:flex;flex-wrap:wrap;gap:8px 12px}
.alliance-technology-awarded{margin:20px 0;padding-top:14px;border-top:1px solid #b3965a66}.alliance-technology-awarded>article{display:grid;gap:8px;padding:12px 0;font:700 18px/1.3 var(--serif)}
.alliance-technology-leaderboard{display:grid;gap:7px;list-style:none;margin:18px 0;padding:0}.alliance-technology-leaderboard>li:not(.notice){display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:64px;padding:10px 8px;border:1px solid #b3965a4d;background:#ffffff1c;font:13px var(--sans)}.alliance-technology-leaderboard>li.is-you{border-color:#567043;background:#78945816}.alliance-technology-rank{font:700 21px var(--serif);text-align:center;color:var(--green)}.alliance-technology-leaderboard>li>span:nth-child(2){min-width:0}.alliance-technology-leaderboard>li>span:nth-child(2)>strong{display:block;font:700 18px/1.2 var(--serif);overflow-wrap:anywhere}.alliance-technology-leaderboard small{display:block;font:11px var(--sans);color:var(--green);margin-top:5px}.alliance-technology-feedback{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:390px){.action-sheet[data-view='alliance-technology'] .sheet-content{padding-inline:16px}.sheet-content .alliance-technology-tabs>button,.sheet-content .alliance-technology-categories>button{font-size:15px}.alliance-technology-tree-level{gap:10px}.alliance-technology-node .research-node-copy strong{font-size:16px}.alliance-technology-tree-level[data-technology-columns='3'] .research-node-copy strong{font-size:14px}.alliance-technology-funding,.alliance-technology-research{padding:12px 10px}.alliance-technology-benefits>div{grid-template-columns:minmax(0,1fr) 50px 50px}}
@media(min-width:700px){.action-sheet[data-view='alliance-technology']{left:auto;right:18px;top:18px;bottom:18px;width:480px;max-width:calc(100% - 36px);max-height:calc(100% - 36px)}}
@media(forced-colors:active){.alliance-technology-panel :is(.alliance-technology-wallet,.alliance-technology-node,.alliance-technology-emblem,.research-node-symbol,.alliance-technology-active,.alliance-technology-funding,.alliance-technology-research,.alliance-technology-shop-item,.alliance-technology-shop-art,.alliance-token){background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}.alliance-technology-panel :is(h3,h4,strong,small,.alliance-technology-level){color:CanvasText!important}.action-sheet[data-view='alliance-technology'] #close-sheet{background:ButtonFace;border:1px solid ButtonText;color:ButtonText;filter:none}.alliance-technology-panel :focus-visible{outline-color:Highlight}.alliance-technology-art{background:none!important}.alliance-technology-art>.icon{display:block}}
