/* Colour raster icons use the surrounding font as their sizing reference. */
img.ehasa-icon[data-icon-size]{display:inline-block;box-sizing:border-box;font-size:var(--ehasa-icon-font-size,2em);vertical-align:-.15em;object-fit:contain;flex:none;background:transparent;border:0;border-radius:0;padding:0;filter:none}
img.ehasa-icon[data-icon-size=inline]{--ehasa-icon-font-size:1.25em}
img.ehasa-icon[data-icon-size=small]{--ehasa-icon-font-size:1.5em}
img.ehasa-icon[data-icon-size=normal]{--ehasa-icon-font-size:2em}
img.ehasa-icon[data-icon-size=large]{--ehasa-icon-font-size:2.5em}
img.ehasa-icon[data-icon-size=heading]{--ehasa-icon-font-size:1.25em}
img.ehasa-icon[data-icon-size=symbol]{--ehasa-icon-font-size:1em}
img.ehasa-icon[data-icon-size=hit]{--ehasa-icon-font-size:3.5em}
img.ehasa-icon[data-raster-symbol]{vertical-align:middle}
#main[data-icon-sizing=v304] .rule-chip-list img.ehasa-icon{--ehasa-icon-font-size:1.5em}
img.ticket-tba-art.ehasa-icon{--ehasa-icon-font-size:4em}
/* Scope beats legacy article image rules that use fixed or full widths. */
img.ehasa-icon[data-icon-size],#main[data-icon-sizing=v304] .reading img.ehasa-icon[data-icon-size],#main[data-icon-sizing=v304] #rule-squad-example img.ehasa-icon[data-icon-size]{width:1em!important;height:1em!important;min-width:1em!important;min-height:1em!important;max-width:1em!important;max-height:1em!important}
#main[data-icon-sizing=v304] .reading img.ehasa-icon[data-icon-size]{margin:0!important;padding:0!important;background:transparent;float:none!important}
#main[data-icon-sizing=v304] .reading img.trusted-player-patch-icon.ehasa-icon{float:left!important;margin:.2em .5em .2em 0!important}
#main[data-icon-sizing=v304] .reading img.guide-packing-heading-icon.ehasa-icon{background:#f4f6ef;border-radius:.15em}
.event-chapter>summary{grid-template-columns:2em minmax(0,1fr) 1.375em}
/* Squad role artwork has different built-in margins. Match its visible ink
   to the existing DMR badge, while sizing every image through its font. */
#main[data-icon-sizing=v304] #rule-squad-example{--squad-role-size:2.75rem}
#main[data-icon-sizing=v304] #rule-squad-example [data-role-image=leader]{--squad-role-scale:.94}
#main[data-icon-sizing=v304] #rule-squad-example [data-role-image=medic]{--squad-role-scale:1.18}
#main[data-icon-sizing=v304] #rule-squad-example [data-role-image=engineer]{--squad-role-scale:1}
#main[data-icon-sizing=v304] #rule-squad-example [data-role-image=at]{--squad-role-scale:.995}
#main[data-icon-sizing=v304] #rule-squad-example [data-role-image=m249]{--squad-role-scale:1.08}
#main[data-icon-sizing=v304] #rule-squad-example img.role-example-image{--ehasa-icon-font-size:calc(var(--squad-role-size)*var(--squad-role-scale,1));font-size:var(--ehasa-icon-font-size);width:1em!important;height:1em!important;min-width:1em!important;min-height:1em!important;max-width:1em!important;max-height:1em!important;object-fit:contain!important}
@media(max-width:600px){#main[data-icon-sizing=v304] #rule-squad-example{--squad-role-size:2.5rem}}
/* Shared illustrated Paladin health counters: capacity is shown by broken
   coloured tips; intact unused slots are grey. Keep every slot aligned. */
#main[data-icon-sizing=v304] .vehicle-paladins[data-health-bar=v325]{display:inline-flex;align-items:flex-end;gap:.25em;padding:.35em .45em;margin:0;max-width:100%;background:#edf1e9;border:1px solid #ccd5c7;border-radius:.375em;box-shadow:none}
#main[data-icon-sizing=v304] .vehicle-paladins[data-health-bar=v325] img.ehasa-icon{font-size:var(--ehasa-icon-font-size);display:block;width:.5em!important;height:1em!important;min-width:.5em!important;max-width:.5em!important;min-height:1em!important;max-height:1em!important;object-fit:contain;image-rendering:auto;filter:none;opacity:1;vertical-align:middle}
#main[data-icon-sizing=v304] .vehicle-paladins[data-health-bar=v325] img[data-broken=false]{filter:grayscale(1);opacity:.4}
/* Illustrated armband/ghillie notes need readable artwork, not an inline glyph. */
#main[data-icon-sizing=v304] .notice[data-notice-symbol] .rule-note-icon img.ehasa-icon{--ehasa-icon-font-size:2.5em}

/* One compound role-equipment icon occupies its own em-sized column. */
#main[data-icon-sizing=v304] #find-c65ef32ff612{display:grid;grid-template-columns:3em minmax(0,1fr);gap:.75em;align-items:start}
#main[data-icon-sizing=v304] #find-c65ef32ff612>.guide-role-kit-v342{display:block;box-sizing:border-box;flex:none;width:3em;min-width:0;max-width:100%;height:auto;line-height:0;align-self:start}
#main[data-icon-sizing=v304] #find-c65ef32ff612>.guide-role-kit-v342 img.guide-role-kit-image-v342{--ehasa-icon-font-size:3em;display:block}
#main[data-icon-sizing=v304] #find-c65ef32ff612>div{min-width:0}

/* Ticket follow-ups v348: display size stays font-relative in the shared source. */
#main[data-ticket-followups=v348] :is(#find-1e86c39a503e,#find-edc4e6ec41ba,#find-f3f3e2628307,#find-328815e3d607) img.ehasa-icon{--ehasa-icon-font-size:3em}
#main[data-ticket-followups=v348] #find-d115dcbf2b89 img.ehasa-icon{--ehasa-icon-font-size:3.5em}
#main[data-ticket-followups=v348] .ticket-leader-emblem img.ehasa-icon{--ehasa-icon-font-size:2.5em}
#main[data-ticket-followups=v348] .ticket-rank h3 img.ehasa-icon{--ehasa-icon-font-size:2em}
#main[data-ticket-followups=v348] img.ticket-tba-art[data-icon=ui-patch]{--ehasa-icon-font-size:4em}
