/* Item detail components used by both player and admin tooltips. */
.item-name-primary { display: inline !important; color: var(--item-name-color, #fff) !important; font-family: 'Find Sans Pro', var(--project-body-font, 'Geoform'), sans-serif !important; }
.item-name-secondary { display: inline !important; margin: 0 0 0 .35em !important; color: var(--item-secondary-name-color, var(--primary-gold)) !important; font-family: var(--project-secondary-font, 'Geoform'), sans-serif !important; font-weight: 800; }
.item-enchant-prefix { display: inline-block; margin-right: 0; color: #ffe28a; font-weight: 900; }
.item-stage-separator { color: rgba(224,216,190,.55); font-weight: 500; }
.item-stage-label { display: inline; color: var(--item-stage-color, #e7d8a2); font-weight: 800; }
.item-stage-branch { display: inline; margin-left: .28em; color: var(--item-branch-color, #c79cff); font-weight: 900; text-shadow: 0 0 8px color-mix(in srgb, var(--item-branch-color, #c79cff) 35%, transparent); }
.item-name-secondary::before { content: "·"; margin-right: .35em; color: var(--text-muted); }
.item-hover-tooltip .tooltip-header > .item-icon-composite { width:44px;height:44px;flex:0 0 44px; }
.item-hover-tooltip { border-radius:3px!important; }
.item-hover-tooltip .tooltip-item-icon { display:block;width:44px;height:44px;flex:0 0 44px; }
.item-hover-tooltip .tooltip-header .item-icon-composite { width:44px!important;height:44px!important;flex:0 0 44px;border-radius:3px!important; }
.item-hover-tooltip .tooltip-header .item-icon-composite img { border-radius:3px!important; }
.item-detail-description { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5; }
.item-detail-section { margin-bottom:8px;padding:10px 11px;border:1px solid rgba(255,255,255,.09);border-radius:3px;background:rgba(0,0,0,.2);font-size:12px; }
.item-detail-section-title { margin-bottom:7px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.07);color:#dbe3ee;font-size:12px;font-weight:650; }
.item-detail-subtitle { margin-top:10px; }
.item-detail-lines { display:flex;flex-direction:column;gap:5px;color:#e2e8f0;line-height:1.45; }
.item-detail-line { display:flex;align-items:flex-start;gap:7px; }
.item-detail-marker { color:#d8bd67;font-weight:700; }
.set-effect-section { margin-top:6px; }
.item-attachment-effect-section { padding:9px!important;border-radius:3px; }
.item-attachment-effect-section .item-detail-lines>div { display:grid;gap:2px; }
.item-attachment-effect-section .item-detail-lines strong { color:#fff;font-size:.68rem; }
.item-attachment-effect-section .item-detail-lines span { color:var(--text-sub,#c9ced8);font-size:.64rem;line-height:1.4;white-space:pre-line; }
.item-attachment-effect-section.soul { border-color:color-mix(in srgb,var(--soul-effect-color,#6ab7ef) 55%,transparent)!important;background:var(--soul-effect-background,rgba(106,183,239,.09)); }
.item-attachment-effect-section.enchantment { border-color:color-mix(in srgb,var(--enchantment-effect-color,#bf96eb) 55%,transparent)!important;background:var(--enchantment-effect-background,rgba(191,150,235,.09)); }
/* Quiet subsections inside Characteristics, not independent effect badges. */
.game-effects[data-item-details-renderer="shared"] { white-space:normal; }
.item-characteristics .item-detail-effect-title { margin:0 0 3px;color:#dbe3ee;font-size:inherit;font-weight:600; }
.item-characteristics .agathion-main-bonus + .agathion-additional-bonus { margin-top:9px; }
.item-characteristics .agathion-main-bonus .item-detail-description { color:var(--text-muted,#a0a0a0); }
.item-characteristics .agathion-main-bonus.is-active .item-detail-description,
.item-characteristics .agathion-additional-bonus .item-detail-description { color:#fff; }
.item-characteristics .relation-description-effect { margin-top:8px;padding:6px 8px;border:1px solid color-mix(in srgb,var(--conditional-effect-color,#d8bd67) 14%,transparent);border-radius:3px;background:color-mix(in srgb,var(--conditional-effect-color,#d8bd67) 3%,transparent); }
.item-characteristics .relation-description-effect:first-child { margin-top:0; }
.item-characteristics .relation-description-copy { color:var(--text-sub,#c9ced8);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45; }
.item-characteristics .relation-effect-line { display:grid;gap:3px;line-height:1.45; }
.item-characteristics .relation-description-copy + .relation-effect-line,
.item-characteristics .relation-effect-line + .relation-effect-line { margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.05); }
.item-characteristics .relation-effect-bonus { color:var(--text-muted,#a0a0a0);font-weight:400; }
.item-characteristics .relation-effect-line.is-active .relation-effect-bonus { color:#fff; }
