/* A white reading surface, with the existing Yukumo green as the navigation color. */
:root{--paper:#fff;--guide-tint:#f5f8f6;--guide-border:#dce5df}
body{background:#fff}.shell{background:#fff}.game-nav{position:sticky;top:0;z-index:25}.portal-section,.guide-section,.gathering-explorer{scroll-margin-top:65px}
.guide-heading{padding:24px 26px;border:1px solid var(--guide-border);margin-bottom:18px;background:#fff}
.guide-heading h1{font-size:30px;line-height:1.55;margin:5px 0 9px;letter-spacing:0}
.guide-heading p{color:var(--muted);margin:0;font-size:15px}
.guide-panel{border:1px solid var(--guide-border);background:#fff;padding:24px;min-width:0}
.guide-panel h2{font-size:22px;line-height:1.6;margin:0 0 15px}.guide-panel h3{font-size:18px;line-height:1.7}
.guide-panel p{font-size:16px;line-height:1.9}
.guide-caption,.guide-panel .guide-caption{font-size:14px;color:var(--muted);line-height:1.8}
.guide-source-note{border-top:1px solid var(--guide-border);padding-top:14px;font-size:14px!important;color:var(--muted);margin-top:24px}
.guide-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;padding:16px;background:var(--guide-tint);border:1px solid var(--guide-border)}
.guide-filter label{font-size:14px;color:#4d635a;flex:1;min-width:140px}
.guide-filter label>input:not([type=checkbox]),.guide-filter select{display:block;width:100%;height:40px;margin-top:6px;border:1px solid #ccd8d0;background:#fff;border-radius:3px;padding:0 10px;color:var(--ink);min-width:0}
.guide-filter button{height:40px;border:0;border-radius:3px;background:var(--green);color:#fff;padding:0 21px;cursor:pointer}
.guide-filter>a{font-size:14px;padding:9px 0}.guide-filter .checkbox-filter{display:flex;align-items:center;gap:7px;flex:0 0 auto;min-width:0;padding-bottom:8px}.checkbox-filter input{accent-color:var(--green)}
.guide-toolbar{display:flex;gap:10px 20px;align-items:center;flex-wrap:wrap;margin:16px 0;font-size:14px}.guide-toolbar strong{font-size:16px}.guide-toolbar>a{margin-left:auto}
.weapon-type-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-left:1px solid var(--guide-border);border-top:1px solid var(--guide-border);margin-bottom:18px}
.weapon-type-tabs>a{display:flex;gap:6px;align-items:center;justify-content:center;font-size:13px;padding:10px 5px;text-align:center;border-right:1px solid var(--guide-border);border-bottom:1px solid var(--guide-border);color:#2c604f;background:#fff}
.weapon-type-tabs>a[aria-current=page]{background:#edf5ef;box-shadow:inset 0 -3px #316450;font-weight:700}
.weapon-type-tabs .weapon-type-icon{width:26px;height:26px;display:grid;place-items:center;flex:0 0 26px}.weapon-type-tabs .weapon-type-icon img{width:24px;height:24px}
.weapon-family{border:1px solid var(--guide-border);margin:14px 0;border-radius:3px}
.weapon-family>summary{cursor:pointer;background:var(--guide-tint);padding:14px;font-weight:700;font-size:16px}
.weapon-family>summary>small{font-size:13px;font-weight:400;margin-left:14px;color:var(--muted)}
.weapon-family{scroll-margin-top:65px}.family-index{display:flex;gap:6px;flex-wrap:wrap;border:1px solid var(--guide-border);padding:12px;margin-top:16px}.family-index>a{font-size:13px;padding:5px 8px;background:#f3f7f4;border:1px solid #e2ebe5;border-radius:3px;line-height:1.8}
/* Every branch owns its connector. The last sibling stops at its own card. */
.weapon-section-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 18px;border-bottom:1px solid var(--guide-border);padding-bottom:12px}.weapon-section-tabs>a{padding:10px 14px;border:1px solid var(--guide-border);border-radius:4px;font-size:14px;background:#fff}.weapon-section-tabs>a[aria-current=page]{background:#315e4b;color:#fff;border-color:#315e4b;font-weight:700}.weapon-type-tabs small{font-size:13px;color:#758a7e}
.tree-scroll{overflow:auto;padding:0 15px 14px;scrollbar-color:#8ba697 #edf2ef}.tree-scroll:focus-visible{outline:2px solid #40745f;outline-offset:-2px}.tree-scroll-hint{font-size:13px!important;color:#718378;margin:8px 15px 0!important}
.weapon-tree,.weapon-tree .tree-branches{list-style:none;padding:0;margin:0}.weapon-tree{min-width:950px;--tree-indent:24px;--tree-joint:36px}.weapon-tree .tree-branches{padding-left:var(--tree-indent);margin-left:13px}.weapon-tree .tree-branch{position:relative;margin:0;padding:12px 0 0}.weapon-tree .tree-branches>.tree-branch:before{content:'';position:absolute;left:calc(-1 * var(--tree-indent));top:0;bottom:0;width:0;border-left:1px solid #9eb7a7}.weapon-tree .tree-branches>.tree-branch:last-child:before{bottom:auto;height:var(--tree-joint)}.weapon-tree .tree-branches>.tree-branch:after{content:'';position:absolute;left:calc(-1 * var(--tree-indent));top:var(--tree-joint);width:var(--tree-indent);border-top:1px solid #9eb7a7}
.tree-node{border:1px solid #dbe4df;background:#fff;padding:12px 14px;border-radius:4px;min-width:820px;display:grid;grid-template-columns:minmax(220px,1fr) 205px minmax(300px,1.3fr);gap:16px;align-items:start}.tree-node.is-selected{background:#fff8e9;border-color:#c7a56b;box-shadow:inset 3px 0 #bc9150}.tree-identity{min-width:0}.tree-node-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;line-height:1.7}.tree-node-title>a{font-size:15px;font-weight:700}.rarity-tag{background:#eef2ef;padding:2px 5px;font-size:13px;color:#51665a;border-radius:3px}.terminal-tag,.craft-tag{font-size:13px;white-space:nowrap;padding:2px 6px;border-radius:3px;border:1px solid #c7dccd;background:#eff7f1;color:#38634d}.craft-tag{border-color:#dce3e8;background:#f6f8fa;color:#5e7181}.tree-node-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;font-size:13px;margin:9px 0;color:#60706b;line-height:1.7}.tree-detail-link{display:inline-block;margin-top:7px;font-size:13px;color:#2a6b80}
.tree-performance{min-width:0;border-left:1px solid #e7ece8;padding-left:14px}.tree-performance h3{font-size:13px!important;margin:0 0 10px;line-height:1.8}.tree-performance .sharpness-block{padding:0;margin:0;border:0;background:transparent}.tree-performance .sharpness-block>div{gap:6px;margin:8px 0}.tree-performance .sharpness-block span{width:54px;flex:0 0 54px;font-size:13px}.tree-performance .sharpness-gauge{width:125px;flex:1;min-width:0;height:10px;background:#e3e8e2}.tree-ranged{font-size:13px;margin:0}.tree-ranged>div{display:flex;gap:10px;margin:5px 0}.tree-ranged dt{width:54px;color:#758679;flex:0 0 54px}.tree-ranged dd{margin:0;line-height:1.7}
.tree-recipe{font-size:13px;color:#50665b;display:flex;flex-direction:column;gap:10px;border-left:1px solid #e7ece8;padding-left:14px}.tree-recipe>div{line-height:1.8}.tree-recipe b{font-size:13px;display:inline-block;margin-right:9px;padding:1px 5px;background:#edf4ef;border-radius:3px;color:#38634d}.tree-cost{font-weight:650;color:#3f5849}.tree-materials{display:flex;flex-wrap:wrap;gap:3px 10px;list-style:none;padding:0;margin:4px 0 0}.tree-materials>li{padding:0;margin:0}.tree-materials a{display:inline-block;text-decoration:underline;text-decoration-color:#c4d7c9;text-underline-offset:2px}.tree-recipe-missing{display:block;color:#86948a;margin-top:4px}.tree-recipe p{font-size:13px;line-height:1.8;margin:0}
.terminal-grid{display:block;overflow:auto;padding-bottom:12px}.terminal-grid .tree-node{min-width:820px;margin:12px 0}
.focus-banner,.build-slot-note{padding:12px;border:1px solid #ead5ad;background:#fffaf0;font-size:14px!important}
.weapon-path-panel{margin:20px 0;padding:14px;background:var(--guide-tint);border:1px solid var(--guide-border);font-size:14px}.weapon-path-panel>div{display:flex;justify-content:space-between;gap:12px}.weapon-path-panel p{line-height:2}.weapon-path-panel p>span[aria-hidden]{padding:0 6px;color:#8c9e94}
.build-portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--guide-border);border-left:1px solid var(--guide-border)}
.build-portal-card{padding:14px 10px;display:flex;align-items:center;gap:9px;border-right:1px solid var(--guide-border);border-bottom:1px solid var(--guide-border);min-width:0}
.build-portal-card:hover{background:#f6faf7;text-decoration:none}.build-portal-card .weapon-type-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center}.build-portal-card .weapon-type-icon img{width:32px;height:32px}
.build-portal-card>span:nth-child(2){min-width:0}.build-portal-card strong{font-size:15px;display:block}.build-portal-card small{font-size:13px;display:block;color:#718174;margin:2px 0}.build-portal-card b{font-size:13px;display:block;color:#4c655c;font-weight:400;line-height:1.6}.build-portal-card>span:last-child{margin-left:auto;color:#90a297}
.guide-index-link{display:block;padding:12px 0;font-weight:700;font-size:15px}
.weapon-card-links{display:flex;border:1px solid var(--guide-border);border-top:0;margin-bottom:15px}.weapon-card-links a{flex:1;text-align:center;font-size:13px;padding:9px;background:#f8faf8;border-right:1px solid var(--guide-border)}.weapon-card-links a:last-child{border:0}
.weapon-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.weapon-guide-grid>div{border:1px solid var(--guide-border)}.weapon-guide-grid .weapon-guide-title{display:flex;align-items:center;gap:10px;padding:12px;font-size:15px;font-weight:700}.weapon-guide-title .weapon-type-icon img{width:28px;height:28px}.weapon-guide-grid .weapon-card-links{margin:0;border:0;border-top:1px solid var(--guide-border)}
.build-intro{padding:14px 17px;border-left:3px solid #afc7b9;background:#f7faf8;font-size:15px!important;margin:0 0 20px}
.guide-page-toc{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 25px;padding:12px;border:1px solid var(--guide-border)}.guide-page-toc>a{font-size:14px;padding:5px 10px;background:var(--guide-tint);border-radius:3px}
.guide-section{margin:26px 0;padding-top:3px}.guide-section>h2{border-bottom:2px solid #40745f;padding-bottom:9px;color:#315646}
.build-weapon-card{display:grid;grid-template-columns:45% 1fr;gap:20px;align-items:center}.build-weapon-card figure{margin:0}.game-image.build-weapon{height:180px;aspect-ratio:auto}.build-weapon-card figcaption{font-size:13px;color:var(--muted);margin-top:6px}.build-weapon-card h3{font-size:24px;line-height:1.7;margin:8px 0}
.build-role{font-size:13px;font-weight:700;padding:4px 8px;background:#f1f6ed;color:#5a733e}.build-weapon-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:12px 0}.build-weapon-facts>div{border-bottom:1px solid var(--guide-border);display:flex;gap:15px;padding:5px 0}.build-weapon-facts dt{font-size:13px;color:var(--muted)}.build-weapon-facts dd{font-size:15px;font-weight:700;margin:0}
.build-summary{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}.build-summary>span{font-size:13px;background:#f4f7f4;border:1px solid var(--guide-border);padding:4px 9px}
.build-equipment table{width:100%;min-width:540px;border-collapse:collapse;font-size:15px}.build-equipment th,.build-equipment td{border:1px solid #dce4df;padding:12px;text-align:left;line-height:1.9}.build-equipment thead th{background:#edf4ef;color:#385a48}.build-equipment tbody th{width:55px;background:#f8faf8;font-size:14px}.build-equipment tbody td:last-child{white-space:nowrap;font-size:13px;color:#6b7b72}
.build-skill-badges{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.build-skill-badges a{font-size:15px;padding:8px 12px;background:#edf6ef;border:1px solid #c9dccf;border-radius:4px;font-weight:700}
.skill-calculation{border:1px solid var(--guide-border);padding:12px}.skill-calculation summary{cursor:pointer;font-size:14px;font-weight:700}.skill-calculation table{font-size:14px;border-collapse:collapse;width:100%;margin-top:14px}.skill-calculation th,.skill-calculation td{padding:9px 12px;text-align:left;border-bottom:1px solid var(--guide-border)}
.lower-weapon{padding:16px;background:#f7faf8;border:1px solid var(--guide-border)}.lower-weapon>div{display:flex;align-items:center;gap:10px}.lower-weapon .weapon-type-icon img{width:28px;height:28px}.lower-weapon p{margin:8px 0;font-size:14px}.lower-weapon>a{font-size:14px}
.build-howto{padding-left:20px;line-height:1.8}.build-howto li{padding:10px}.build-howto span{display:block;font-size:15px;color:#64786b}.guide-sources{font-size:14px;line-height:2.2;padding-left:20px}
.gathering-explorer{min-width:0;margin:18px 0 26px}.guide-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}.guide-section-heading h2{margin:0;font-size:22px}.guide-section-heading>a{font-size:13px;white-space:nowrap}
.field-overview{border:1px solid var(--guide-border);padding:18px;margin-bottom:25px;background:#fff}.field-overview h2{margin:0 0 15px;font-size:22px}.field-overview-layout{display:grid;grid-template-columns:minmax(200px,320px) minmax(0,1fr);gap:24px;align-items:center}.field-overview figure{margin:0;padding:14px;background:#f5f8f5;border:1px solid #dce5df}.field-overview-svg{width:100%;height:300px;display:block}.field-overview-svg image{image-rendering:pixelated}.overview-selection{fill:#eecb4b28;stroke:#bb7320;stroke-width:1.4;stroke-dasharray:3 1.5;pointer-events:none}.field-overview figcaption{font-size:13px;color:var(--muted);text-align:center;margin-top:8px}.field-overview h3{font-size:23px}.field-overview h3>span{font-size:15px;margin-left:10px;background:#eef5ef;padding:4px 9px}.field-overview p{font-size:15px}.field-overview a{font-size:14px;font-weight:700}.gathering-layout{scroll-margin-top:65px}
.map-switcher,.area-pills,.point-pills,.map-zoom-controls{display:flex;gap:6px;flex-wrap:wrap}.map-switcher{margin:12px 0}.map-switcher>a,.area-pills>a,.point-pills>a,.map-zoom-controls>a{font-size:14px;border:1px solid #d1ddd5;padding:7px 12px;background:#fff;border-radius:3px;color:#466253}
.map-switcher>a[aria-current=page],.area-pills>a[aria-current=page],.point-pills>a[aria-current=page],.map-zoom-controls>a[aria-current=page]{background:#315e4b;border-color:#315e4b;color:#fff}
.area-pills{margin:14px 0}.area-pills>a{min-width:34px;text-align:center;padding:6px 10px}
.gathering-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;margin:18px 0}.area-map-figure{margin:0;min-width:0}.area-map-title{display:flex;justify-content:space-between;gap:10px;font-size:15px;padding:11px 13px;border:1px solid #d6e1da;background:#f5f9f6}.area-map-title>span{font-size:13px;color:var(--muted)}
.area-map-canvas{border:1px solid #d6e1da;border-top:0;background:#f2f4f2;padding:20px;display:grid;place-items:center;height:320px}.area-map-svg{height:100%;width:100%;overflow:hidden}.area-map-svg image{image-rendering:pixelated}.map-zoom-controls{margin-top:10px}.map-zoom-controls>a{flex:1;text-align:center;padding:7px 3px;font-size:13px}.area-map-figure figcaption{font-size:13px;color:var(--muted);line-height:1.7;margin-top:8px}
.gathering-summary{border:1px solid var(--guide-border);padding:17px;background:#fff}.gathering-summary h3{margin:6px 0 10px;font-size:20px}.gathering-summary>p{font-size:14px}.gathering-summary>.point-pills{margin:12px 0}.point-pills>a{font-size:13px;padding:6px 8px}.gathering-summary>a{font-size:13px}.map-back-link{display:block;margin-top:14px}.map-verification-note{padding:9px;background:#f7f8f5;color:#65776a;font-size:13px!important;line-height:1.8}
.gathering-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;scroll-margin-top:65px}.gather-point{border:1px solid var(--guide-border);padding:15px;min-width:0}.gather-point.is-selected{border-color:#789c85;box-shadow:inset 0 3px #789c85}.gather-point h3{font-size:16px;margin:0 0 12px;display:flex;gap:8px;align-items:center}.gather-point h3>span{display:grid;place-items:center;background:#3b6c54;color:#fff;width:23px;height:23px;border-radius:50%;font-size:14px}.gather-point h3>small{margin-left:auto;font-size:13px;color:var(--muted);font-weight:400}
.native-map-preview{margin-top:12px;border:1px solid var(--guide-border);padding:10px;background:#fff}.native-map-preview summary{font-size:14px;font-weight:700;cursor:pointer;line-height:1.8}.native-map-preview img{display:block;width:100%;height:auto;margin:12px auto}.native-map-preview p{font-size:13px!important;line-height:1.8!important;color:#617468}.native-map-preview>a{font-size:13px}.native-point-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.native-point-legend a{padding:7px;background:#f1f6f2;border:1px solid #d4e1d8;font-size:13px}.native-point-legend a[aria-current=page]{background:#e2f0e6;border-color:#528467}.native-point-legend b{color:#225d45}
.gather-loot{display:flex;flex-direction:column;gap:8px}.gather-loot>a{display:flex;align-items:center;gap:8px;font-size:14px;min-width:0}.gather-loot .game-image.thumb{width:30px;height:30px;flex:0 0 30px;border:0;background:transparent}.gather-loot .game-image.native-icon img{width:24px;height:24px}
.item-gathering-links{margin:22px 0}.item-gathering-links h2{font-size:20px!important}.item-gathering-links>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.item-gathering-links a{border:1px solid var(--guide-border);padding:10px;font-size:14px}.item-gathering-links strong,.item-gathering-links small{display:block}.item-gathering-links small{font-size:13px;color:var(--muted);margin-top:3px}
.item-gathering-links details{margin-top:12px}.item-gathering-links summary{cursor:pointer;font-size:14px}.item-gathering-links details>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}
@media(max-width:1000px){.weapon-type-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.build-portal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gathering-layout{gap:14px}.area-map-canvas{height:285px}}
@media(max-width:760px){.weapon-tree{--tree-indent:12px}.weapon-tree .tree-branches{margin-left:6px}.weapon-section-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.weapon-section-tabs>a{font-size:13px;padding:10px 8px;text-align:center}.weapon-type-tabs small{font-size:13px}}
@media(max-width:760px){.field-overview{padding:13px}.field-overview-layout{grid-template-columns:1fr;gap:14px}.field-overview-svg{height:260px}.field-overview h2{font-size:20px}.field-overview h3{font-size:20px;margin:6px 0}.field-overview p{font-size:14px}.field-overview-layout>div{padding:0 3px}}
@media(max-width:760px){.guide-heading{padding:19px 16px}.guide-heading h1{font-size:25px}.guide-panel{padding:16px}.guide-panel h2,.guide-section-heading h2{font-size:19px}.weapon-type-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.weapon-type-tabs>a{font-size:13px;gap:3px}.weapon-type-tabs .weapon-type-icon{width:23px;flex-basis:23px}.guide-filter{padding:12px;gap:12px}.guide-filter label{min-width:110px}.guide-filter button{padding:0 15px}.guide-toolbar{font-size:13px}.guide-toolbar>a{margin-left:0;width:100%}.guide-caption{font-size:13px}.terminal-grid{grid-template-columns:1fr}.tree-scroll{padding:0 9px 12px}.weapon-tree{min-width:950px}.weapon-family>summary{padding:12px;font-size:14px}.tree-node-title>a{font-size:14px}.tree-node-stats{font-size:13px;gap:5px 12px}.tree-node{padding:12px 14px}.weapon-path-panel p{font-size:14px}.build-portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.build-portal-card{padding:12px 7px;gap:6px}.build-portal-card .weapon-type-icon{width:27px;flex-basis:27px}.build-portal-card .weapon-type-icon img{width:26px;height:26px}.build-portal-card strong{font-size:14px}.build-portal-card b{font-size:13px}.weapon-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weapon-guide-grid .weapon-guide-title{padding:10px;font-size:14px}.weapon-card-links a{font-size:13px;padding:9px 3px}.build-weapon-card{grid-template-columns:1fr;gap:12px}.build-weapon-card h3{font-size:22px}.game-image.build-weapon{height:155px}.guide-panel p{font-size:15px}.build-weapon-facts{gap:7px}.guide-section{margin-top:24px}.guide-section-heading{display:block}.guide-section-heading>a{display:inline-block;margin:8px 0}.gathering-layout{grid-template-columns:1fr}.area-map-canvas{height:300px}.gathering-points{grid-template-columns:1fr}.map-switcher>a{flex:1;text-align:center;min-width:80px;font-size:13px;padding:7px}.item-gathering-links>div{grid-template-columns:repeat(2,minmax(0,1fr))}.map-verification-note{font-size:13px}.gather-loot .game-image.thumb{width:28px;height:28px;flex-basis:28px}}
