/* Content layout only. Shared primitives own all control and type roles. */
.currency-archive{min-width:0}
.currency-page-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}.currency-scope-note{margin:0 0 12px}
.currency-search{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:16px}.currency-period-control{flex:0 1 200px;min-width:0}.currency-search-field{flex:1 1 240px;min-width:0}.currency-filters{display:flex;gap:12px;min-width:0}.currency-filters>.ui-field{min-width:110px}.currency-result-count{display:flex;align-items:center;gap:8px}.currency-archive[data-currency-landing=true] .currency-result-count{display:none}
.currency-layout{display:block;min-width:0}.currency-layout.has-directory{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:start;gap:20px}.currency-sidebar,.currency-reader{min-width:0}.currency-categories{display:flex;flex-direction:column;gap:3px;margin-top:10px}.currency-directory-content{padding-top:4px;max-height:65vh;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.currency-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.currency-result{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:11px;border:1px solid var(--u-line);border-radius:3px;background:#fff;text-decoration:none}.currency-result>img{flex:0 0 36px;width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 1px 2px #65707d80)}.currency-result-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.currency-result-title{overflow-wrap:anywhere}.currency-result-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin:0}.currency-result-category{display:flex;flex-wrap:wrap;gap:3px 8px}.currency-result-group{margin:0 0 16px}.currency-result-group>.ui-subsection-title{display:flex;align-items:center;gap:8px}.currency-tutorial-group{margin:10px 0}.currency-tutorial-group[open]>.currency-results{margin-top:10px}.currency-results.compact{display:flex;flex-direction:column;gap:0}.currency-results.compact .currency-result{padding:8px 6px;border:0;border-bottom:1px solid var(--u-line);border-radius:0;background:transparent}.currency-results.compact .currency-result-summary{-webkit-line-clamp:2}
.currency-detail{max-width:780px;margin:0 auto;min-width:0}.currency-detail-heading{margin-bottom:14px}.currency-section-label{margin:0 0 5px}.currency-entry-meta{display:flex;gap:5px 14px;flex-wrap:wrap;padding:0;margin:0;list-style:none}.currency-text{margin:9px 0;white-space:pre-line;overflow-wrap:anywhere}.currency-text.dialogue-line{margin-left:0;padding-left:0}.currency-story-link{margin:16px 0}.currency-conditions{margin:18px 0}.currency-related{margin-top:24px}.currency-related-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px}.currency-related-list a{overflow-wrap:anywhere}.currency-related-list a>span{display:block}.currency-no-results{padding:12px 0}
@media(max-width:1100px){.currency-layout.has-directory{grid-template-columns:170px minmax(0,1fr);gap:15px}.currency-results{grid-template-columns:repeat(2,minmax(0,1fr))}.currency-filters>.ui-field{min-width:95px}}
@media(max-width:760px){.currency-layout.has-directory{display:block}.currency-sidebar,.currency-directory{margin-bottom:16px}.currency-directory-content{max-height:300px}.currency-period-control{flex:1 1 100%;min-width:0}.currency-search-field{flex-basis:100%}.currency-filters{flex:1}.currency-filters>.ui-field{flex:1;min-width:0}}
@media(max-width:680px){.currency-results{grid-template-columns:minmax(0,1fr)}}
@media(max-width:420px){.currency-related-list{grid-template-columns:minmax(0,1fr)}}
/* Currency catalog identities: use each native category's information density. */
.currency-mobile-nav{display:none}
.currency-catalog [data-currency-group="section:roles"] .currency-results{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.currency-catalog [data-currency-group="section:traits"] .currency-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.currency-catalog [data-currency-group="section:competitors"] .currency-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.currency-catalog .currency-result--roles,.currency-catalog .currency-result--traits,.currency-catalog .currency-result--competitors{align-items:center;min-height:102px;padding:12px;border-radius:7px;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.currency-catalog .currency-result--roles:hover,.currency-catalog .currency-result--traits:hover,.currency-catalog .currency-result--competitors:hover{border-color:#b69b64;box-shadow:0 5px 16px #25344a16;transform:translateY(-2px)}
.currency-catalog .currency-result:focus-visible,.currency-mobile-nav a:focus-visible,.currency-rival-members a:focus-visible{outline:2px solid #a37d3c;outline-offset:2px}
.currency-catalog .currency-result--roles{background:linear-gradient(135deg,#f4f7fa,#fff 65%)}
.currency-catalog .currency-result--roles>img{flex:0 0 68px;width:68px;height:76px;object-fit:contain;object-position:center bottom;background:linear-gradient(145deg,#dce5ee,#f8fafc);border-radius:6px;filter:none}
.currency-catalog .currency-result--roles .currency-result-summary{-webkit-line-clamp:2;color:#63768a;font-size:.82em;line-height:1.4}
.currency-catalog .currency-result--traits{align-items:flex-start;min-height:122px;background:#fff}
.currency-catalog .currency-result--traits>img{flex:0 0 50px;width:50px;height:50px;padding:6px;box-sizing:border-box;border-radius:8px;background:#4d5f77;filter:none}
.currency-catalog .currency-result--traits .currency-result-summary{-webkit-line-clamp:3;color:#465b71;line-height:1.55}
.currency-catalog .currency-result--competitors{background:linear-gradient(135deg,#f4f6f9,#fff 68%)}
.currency-catalog .currency-result--competitors>img{flex:0 0 72px;width:72px;height:74px;padding:4px;box-sizing:border-box;object-fit:contain;background:linear-gradient(145deg,#dce5ee,#f7f9fc);border-radius:6px;filter:none}
.currency-catalog .currency-result--competitors .currency-result-summary{color:#63768a;font-size:.84em}
.currency-catalog .currency-result-category:empty{display:none}
.currency-detail-heading--identity{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--u-line);border-radius:8px;background:linear-gradient(120deg,#eef3f7,#fff 78%)}
.currency-detail-heading-copy{min-width:0}.currency-detail-heading--identity .currency-native-icon{width:84px;height:84px;flex:0 0 84px;object-fit:contain;border-radius:7px;background:#52637a}
.currency-archive[data-currency-section="roles"] .currency-detail-heading--identity .currency-native-icon,.currency-archive[data-currency-section="competitors"] .currency-detail-heading--identity .currency-native-icon{background:#e0e8ef}
.currency-skill-list,.currency-rival-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 0;padding:0;list-style:none}
.currency-skill-list li,.currency-rival-members li{display:flex;align-items:center;gap:9px;min-width:0;padding:9px 11px;border:1px solid var(--u-line);border-radius:6px;background:#f8fafc;overflow-wrap:anywhere}
.currency-skill-list>li>img,.currency-ability>img,.currency-rival-members img{flex:none;width:32px;height:32px;object-fit:contain}
.currency-rivals{margin-top:24px}.currency-rival-members a{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.currency-mobile-nav{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;padding:0 0 10px;margin:-4px 0 14px;scrollbar-width:thin}.currency-mobile-nav a{flex:none;padding:7px 12px;border:1px solid var(--u-line);border-radius:6px;color:#425b72;text-decoration:none;white-space:nowrap;font-size:.86em}.currency-mobile-nav a[aria-current="page"]{border-color:#b3955a;background:#f6f1e6;color:#344a60;font-weight:600}.currency-catalog [data-currency-group="section:roles"] .currency-results,.currency-catalog [data-currency-group="section:competitors"] .currency-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.currency-catalog [data-currency-group="section:traits"] .currency-results{grid-template-columns:1fr}.currency-catalog .currency-result--roles,.currency-catalog .currency-result--competitors{min-height:88px;padding:8px;gap:8px}.currency-catalog .currency-result--roles>img,.currency-catalog .currency-result--competitors>img{flex-basis:52px;width:52px;height:62px}.currency-catalog .currency-result-title{font-size:.91em}.currency-detail-heading--identity{padding:12px;gap:12px}.currency-detail-heading--identity .currency-native-icon{width:68px;height:68px;flex-basis:68px}.currency-skill-list,.currency-rival-members{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.currency-catalog .currency-result{transition:none}.currency-catalog .currency-result:hover{transform:none}}
.currency-variant-id{margin-left:auto;white-space:nowrap;color:#75869a;font-size:.72em}
@media(max-width:760px){.currency-catalog .currency-result--roles .currency-result-summary{display:none}}
.currency-role-badges{display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px}.currency-cost-badge{display:inline-block;padding:2px 6px;border-radius:4px;background:#f4ead5;color:#7d5c26;font-size:.75em;font-weight:700;line-height:1.35}.currency-position-badge{color:#667b90;font-size:.75em;line-height:1.35}
.currency-role-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;flex:1 1 100%;min-width:0}.currency-role-filters .ui-field{min-width:0}.currency-role-filters select{width:100%;min-width:0}
.currency-skill-list>li>img,.currency-ability>img{padding:3px;box-sizing:border-box;background:#4d5f77;border-radius:5px}.currency-skill-list li{align-items:flex-start}.currency-skill-list strong{display:block}.currency-skill-list p{margin:5px 0 0;line-height:1.55}.currency-bond-links,.currency-bond-tiers,.currency-bond-members{margin-top:22px}.currency-bond-links>div,.currency-bond-members>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.currency-bond-links a,.currency-bond-members a{padding:6px 10px;border:1px solid var(--u-line);border-radius:5px;background:#f8fafc;text-decoration:none}.currency-bond-members a span{font-size:.78em;color:#8b6c38}.currency-bond-tiers ul{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0 0;padding:0;list-style:none}.currency-bond-tiers li{padding:7px 10px;border:1px solid var(--u-line);border-radius:6px;background:#f8fafc}.currency-bond-tiers li>span{display:block;margin-top:4px}
@media(max-width:760px){.currency-role-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.currency-catalog .currency-result--roles{align-items:flex-start}.currency-role-badges{gap:3px 5px}.currency-cost-badge,.currency-position-badge{font-size:.7em}}
.currency-skill-list{grid-template-columns:minmax(0,1fr)}.currency-skill-list>li>div{flex:1;min-width:0}.currency-ability-list{display:grid;gap:10px;margin-top:12px}.currency-ability{display:flex;align-items:flex-start;gap:9px;padding:10px;background:#fff;border:1px solid var(--u-line);border-radius:6px}.currency-ability>div{min-width:0}.currency-ability strong small{color:#728499;font-size:.75em;font-weight:400}.currency-bond-tiers ul{display:grid;grid-template-columns:minmax(0,1fr)}.currency-bond-tiers li{display:flex;align-items:flex-start;gap:10px;line-height:1.55}.currency-bond-tiers li strong{flex:none;min-width:4em;color:#7d5c26}.currency-bond-tiers li>span{margin-top:0;flex:1;min-width:0}
@media(max-width:760px){.currency-bond-tiers li{display:block}.currency-bond-tiers li strong,.currency-bond-tiers li>span{display:block}.currency-bond-tiers li>span{margin-top:4px}}
.currency-detail-cost{display:inline-flex;align-items:center;gap:7px;margin:8px 0;padding:4px 9px;background:#f2e7ce;border-radius:5px;color:#745323;font-size:.85em;font-weight:600}.currency-detail-cost strong{font-size:1.3em;line-height:1}

.currency-role-filter-panel{flex:1 1 100%;min-width:0}.currency-role-filter-panel>summary{display:none}@media(max-width:760px){.currency-role-filter-panel>summary{display:list-item;cursor:pointer;color:#435b72;padding:8px 0}.currency-role-filter-panel[open] .currency-role-filters{padding-top:6px}}
.currency-results.compact .currency-result--traits>img{padding:4px;box-sizing:border-box;border-radius:6px;background:#4d5f77;filter:none}
.currency-unique-bond{display:inline-block;align-self:flex-start;padding:2px 6px;border-radius:4px;background:#edf1f6;color:#596f86;font-size:.74em;line-height:1.35}
.currency-role-traits{display:flex;flex-wrap:wrap;gap:3px;margin-top:2px}.currency-role-traits span{padding:1px 5px;border-radius:3px;background:#eaf0f5;color:#536d84;font-size:.68em;line-height:1.4}
.currency-role-tag{display:inline-block;padding:1px 5px;border-radius:4px;background:#e5eef3;color:#47677a;font-size:.7em;line-height:1.4}
.currency-equipment-category{display:inline-block;align-self:flex-start;padding:2px 6px;border-radius:4px;background:#edf1f6;color:#586e84;font-size:.74em}.currency-equipment-section{margin-top:22px}.currency-equipment-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:9px 0 0}.currency-equipment-stats>div{padding:9px 11px;border:1px solid var(--u-line);border-radius:6px;background:#f8fafc}.currency-equipment-stats dt{color:#687d90;font-size:.83em}.currency-equipment-stats dd{margin:3px 0 0;color:#3c5671;font-weight:700}.currency-recipes{display:grid;gap:8px;margin-top:9px}.currency-recipes>div{padding:10px;border:1px solid var(--u-line);border-radius:6px;background:#f8fafc}.currency-recipes>div>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:5px}.currency-recipes a,.currency-recommendations a{padding:5px 8px;border:1px solid var(--u-line);border-radius:5px;background:#fff;text-decoration:none}.currency-recommendations{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.currency-recommendation-group{margin-top:12px}.currency-recommendation-group>p{margin:0}.currency-rival-group{margin-top:16px}.currency-rival-group h4{margin:0;font-size:.95em;color:#435b72}.currency-rival-group h4 span{margin-left:5px}@media(max-width:760px){.currency-equipment-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.currency-catalog [data-currency-group="section:items"] .currency-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.currency-catalog .currency-result--items{min-height:108px;align-items:flex-start;padding:12px;border-radius:7px;background:#fff}.currency-catalog .currency-result--items>img{flex:0 0 54px;width:54px;height:54px;object-fit:contain;filter:none}.currency-catalog .currency-result--items .currency-result-summary{-webkit-line-clamp:3;color:#52687e;line-height:1.5}.currency-archive[data-currency-section="items"] .currency-detail-heading--identity .currency-native-icon{background:#e8eef3}
@media(max-width:760px){.currency-catalog [data-currency-group="section:items"] .currency-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.currency-catalog .currency-result--items{min-height:100px;padding:8px;gap:7px}.currency-catalog .currency-result--items>img{flex-basis:42px;width:42px;height:42px}.currency-catalog .currency-result--items .currency-result-summary{-webkit-line-clamp:2;font-size:.78em}}

/* Keep each bond tier's effects together and readable at every width. */
.currency-bond-tiers li{display:grid;grid-template-columns:minmax(4em,max-content) minmax(0,1fr);align-items:start;gap:8px 10px}.currency-bond-tiers li>strong{display:block;min-width:0}.currency-bond-tier-body{min-width:0;overflow-wrap:anywhere}.currency-bond-tier-body p{margin:0;white-space:pre-line}.currency-bond-tier-body p+p{margin-top:4px}
