/*
 * poewiki.net item-card styles (subset) + .poe-tooltip container.
 *
 * Source: https://www.poewiki.net/load.php?lang=en&modules=site.styles&only=styles&skin=vector
 * Extracted 2026-07-24. poewiki.net content is CC BY-NC-SA 3.0
 * (https://www.poewiki.net/wiki/PoEWiki:Copyrights) — attribution is shown
 * in the tooltip footer ("Item data: poewiki.net (CC BY-NC-SA)").
 *
 * Every extracted selector is scoped under .poe-tooltip so nothing leaks
 * into Tome's own styles. Root-relative url() references point at
 * poewiki.net directly (same as the item art in the card HTML itself).
 *
 * Fonts: the Fontin family (poewiki's item-card font) is vendored under
 * /vendor/fonts/ (Fontin by Jos Buivenga, free license, exljbris.com).
 */

@font-face {
  font-family:'Fontin';
  src:local('Fontin Regular'),url(/vendor/fonts/Fontin-Regular.ttf) format('truetype')
}

@font-face {
  font-family:'Fontin';
  src:local('Fontin Bold'),url(/vendor/fonts/Fontin-Bold.ttf) format('truetype');
  font-weight:bold
}

@font-face {
  font-family:'Fontin';
  src:local('Fontin Italic'),url(/vendor/fonts/Fontin-Italic.ttf) format('truetype');
  font-style:italic
}

@font-face {
  font-family:'FontinSmallCaps';
  src:local('Fontin SmallCaps'),url(/vendor/fonts/Fontin-SmallCaps.ttf) format('truetype')
}

.poe-tooltip {
  --bright-text-color:#dfcf99;
  --bright-text-filter:invert(94%) sepia(12%) saturate(1025%) hue-rotate(346deg) brightness(93%) contrast(88%);
  --content-background-color:#0f0f0f;
  --default-font:Verdana,Arial,Helvetica,sans-serif;
  --horizontal-rule-color:#5e4f45;
  --image-box-background-color:#130f0a;
  --image-box-border-color:#75511d;
  --image-box-inner-background-color:#000;
  --image-box-inner-border-color:#503a1e;
  --link-active-color:#f2dcae;
  --link-color:#f2c462;
  --monospace-font:"Cascadia Code","Source Code Pro",Menlo,Consolas,"DejaVu Sans Mono","Liberation Mono",monospace;
  --outer-link-color:#e8e6e3;
  --outer-link-text-shadow:0 0 0.5rem rgba(0,0,0,1),-1px -1px 0 rgba(0,0,0,0.25),1px -1px 0 rgba(0,0,0,0.25),-1px 1px 0 rgba(0,0,0,0.25),1px 1px 0 rgba(0,0,0,0.25);
  --outer-text-color:#c6bbb3;
  --poe-color-afflictionmod:rgb(22,25,28);
  --poe-color-afflictionmodoutline:rgb(151,164,181);
  --poe-color-allocatedcruciblemod:rgb(255,115,57);
  --poe-color-ancestralblue:rgb(134,178,195);
  --poe-color-ancestralprimary:rgb(212,208,204);
  --poe-color-ancestralsecondary:rgb(158,151,143);
  --poe-color-archnemesisitem:rgb(170,158,130);
  --poe-color-atlasmaven:rgb(182,12,169);
  --poe-color-atlasskillstitle:rgb(110,132,149);
  --poe-color-atlasunlocktext:rgb(175,108,25);
  --poe-color-augmented:rgb(136,136,255);
  --poe-color-azmerigreen:rgb(179,192,129);
  --poe-color-bestiarymod:rgb(255,255,255);
  --poe-color-bestiarymodoutline:rgb(219,34,0);
  --poe-color-blightmod:rgb(255,255,255);
  --poe-color-blightmodoutline:rgb(215,0,0);
  --poe-color-bloodlinemod:rgb(210,0,220);
  --poe-color-bloodlinemodoutline:rgb(58,0,125);
  --poe-color-brequelmutated:rgb(205,34,133);
  --poe-color-brequelwarning:rgb(255,55,55);
  --poe-color-canttradeormodify:rgb(210,0,0);
  --poe-color-chaos:rgb(208,32,144);
  --poe-color-cold:rgb(54,100,146);
  --poe-color-corrupted:rgb(210,0,0);
  --poe-color-craftaffectpropertyremove:rgb(254,51,0);
  --poe-color-craftaffectremove:rgb(254,153,0);
  --poe-color-craftaffectreroll:rgb(254,153,0);
  --poe-color-craftaffectwarning:rgb(235,200,80);
  --poe-color-crafted:rgb(184,218,242);
  --poe-color-craftingattack:rgb(218,129,77);
  --poe-color-craftingblue:rgb(162,207,251);
  --poe-color-craftingcaster:rgb(179,248,254);
  --poe-color-craftingchaos:rgb(216,167,211);
  --poe-color-craftingcold:rgb(147,216,255);
  --poe-color-craftingcrit:rgb(178,167,214);
  --poe-color-craftingdefences:rgb(168,143,103);
  --poe-color-craftingfire:rgb(255,154,119);
  --poe-color-craftinggreen:rgb(134,189,163);
  --poe-color-craftinglife:rgb(201,110,110);
  --poe-color-craftinglightning:rgb(248,203,118);
  --poe-color-craftingphysical:rgb(199,157,147);
  --poe-color-craftingred:rgb(200,103,110);
  --poe-color-craftingspeed:rgb(207,238,165);
  --poe-color-currency:rgb(170,158,130);
  --poe-color-currencyitem:rgb(170,158,130);
  --poe-color-default:rgb(127,127,127);
  --poe-color-descendancygrey:rgb(188,204,187);
  --poe-color-disabledstats:rgb(150,150,167);
  --poe-color-divination:rgb(14,186,255);
  --poe-color-enchanted:rgb(184,218,242);
  --poe-color-essencemod:rgb(164,210,255);
  --poe-color-essencemodoutline:rgb(0,41,82);
  --poe-color-fakeitemcount:rgb(200,200,200);
  --poe-color-favour:rgb(170,158,130);
  --poe-color-fire:rgb(150,0,0);
  --poe-color-fractured:rgb(162,145,98);
  --poe-color-gem:rgb(27,162,155);
  --poe-color-gemitem:rgb(27,162,155);
  --poe-color-goldchanged:rgb(220,200,139);
  --poe-color-goldname:rgb(170,161,132);
  --poe-color-goldvalue:rgb(188,162,83);
  --poe-color-harvestmonstertier1:rgb(127,127,127);
  --poe-color-harvestmonstertier2:rgb(200,200,200);
  --poe-color-harvestmonstertier3:rgb(184,218,242);
  --poe-color-harvestmonstertier4:rgb(175,96,37);
  --poe-color-harvestprimary:rgb(100,111,73);
  --poe-color-harvestsecondary:rgb(83,130,161);
  --poe-color-heist:rgb(25,30,25);
  --poe-color-heiststolenitem:rgb(210,0,0);
  --poe-color-hellscaped:rgb(255,110,37);
  --poe-color-incursionunreachable:rgb(90,90,90);
  --poe-color-kalguurblack:rgb(25,30,25);
  --poe-color-kalguurgrey:rgb(65,65,65);
  --poe-color-kalguurlightgrey:rgb(216,200,185);
  --poe-color-kalguurred:rgb(99,0,0);
  --poe-color-lakeofkalandrareachable:rgb(136,136,255);
  --poe-color-lakeofkalandraunreachable:rgb(90,90,90);
  --poe-color-legacy:rgb(212,145,63);
  --poe-color-lightning:rgb(255,215,0);
  --poe-color-lockedinplaceitem:rgb(127,127,127);
  --poe-color-lockedtoaccount:rgb(136,136,255);
  --poe-color-magic:rgb(136,136,255);
  --poe-color-magicitem:rgb(136,136,255);
  --poe-color-mavenfightpopupglow:rgb(30,30,94);
  --poe-color-mavenfightpopuptitle:rgb(0,143,206);
  --poe-color-necropoliscraftbook:rgb(33,32,31);
  --poe-color-necropolisdownside:rgb(175,181,203);
  --poe-color-necropolisoutline:rgb(0,0,0);
  --poe-color-necropolisupside:rgb(255,204,27);
  --poe-color-nemesismod:rgb(255,200,0);
  --poe-color-nemesismodoutline:rgb(219,34,0);
  --poe-color-normal:rgb(200,200,200);
  --poe-color-premiumchat:rgb(253,242,126);
  --poe-color-premiumchatoutline:rgb(209,46,46);
  --poe-color-prophecy:rgb(181,75,255);
  --poe-color-quest:rgb(74,230,58);
  --poe-color-questitem:rgb(74,230,58);
  --poe-color-rare:rgb(255,255,119);
  --poe-color-rareitem:rgb(255,255,119);
  --poe-color-sanctumboon:rgb(181,168,144);
  --poe-color-sanctumcurse:rgb(160,109,202);
  --poe-color-sanctumpact:rgb(171,139,173);
  --poe-color-sentinelsnapshotwarning:rgb(200,103,110);
  --poe-color-skillextrainfo:rgb(255,192,119);
  --poe-color-skillpopuptitle:rgb(249,230,202);
  --poe-color-stackitemlevel:rgb(255,255,255);
  --poe-color-supporterpackincludes:rgb(242,162,47);
  --poe-color-supporterpackitem:rgb(163,141,109);
  --poe-color-supporterpacknewitem:rgb(180,96,0);
  --poe-color-talismanmod:rgb(141,241,79);
  --poe-color-talismanmodoutline:rgb(0,0,0);
  --poe-color-title:rgb(231,180,120);
  --poe-color-tormentmod:rgb(50,230,100);
  --poe-color-tormentmodoutline:rgb(0,78,117);
  --poe-color-ultimatumnumber:rgb(254,92,81);
  --poe-color-unique:rgb(175,96,37);
  --poe-color-uniquefoil:rgb(130,173,106);
  --poe-color-uniqueitem:rgb(175,96,37);
  --poe-color-unmet:rgb(210,0,0);
  --poe-color-valuedefault:rgb(255,255,255);
  --poe-color-whiteitem:rgb(200,200,200);
  --red-link-active-color:#f2b4ae;
  --red-link-color:#f25749;
  --stylized-font:Fontin,Verdana,Arial,Helvetica,sans-serif;
  --stylized-smallcaps-font:FontinSmallCaps,Verdana,Arial,Helvetica,sans-serif;
  --subdued-text-color:#5e4f45;
  --table-background-color:#26231b;
  --table-background-color-alt:#211F18;
  --table-border-color:#1a1812;
  --table-header-background-color:#332f24;
  --table-header-text-color:var(--text-color);
  --table-text-color:var(--text-color);
  --text-color:#a38d6d;
  color-scheme:dark;
}

.poe-tooltip .tc {
  font-style:normal
}

.poe-tooltip em.tc {
  font-style:normal
}

.poe-tooltip em.tc.-i {
  font-style:italic
}

.poe-tooltip .tc a {
  color:inherit !important
}

.poe-tooltip .tc abbr {
  color:inherit
}

.poe-tooltip .tc.-mod {
  font-family:var(--stylized-smallcaps-font);
  font-variant-ligatures:none;
  color:var(--poe-color-augmented)
}

.poe-tooltip .tc.-default,
.poe-tooltip .tc.-stat {
  color:var(--poe-color-default)
}

.poe-tooltip .tc.-valuedefault,
.poe-tooltip .tc.-value {
  color:var(--poe-color-valuedefault)
}

.poe-tooltip .tc.-fire {
  color:var(--poe-color-fire)
}

.poe-tooltip .tc.-cold {
  color:var(--poe-color-cold)
}

.poe-tooltip .tc.-lightning {
  color:var(--poe-color-lightning)
}

.poe-tooltip .tc.-chaos {
  color:var(--poe-color-chaos)
}

.poe-tooltip .tc.-augmented {
  color:var(--poe-color-augmented)
}

.poe-tooltip .tc.-crafted,
.poe-tooltip .tc.-craft {
  color:var(--poe-color-crafted)
}

.poe-tooltip .tc.-fractured {
  color:var(--poe-color-fractured)
}

.poe-tooltip .tc.-enchanted {
  color:var(--poe-color-enchanted)
}

.poe-tooltip .tc.-unmet {
  color:var(--poe-color-unmet)
}

.poe-tooltip .tc.-uniqueitem {
  color:var(--poe-color-uniqueitem)
}

.poe-tooltip .tc.-unique {
  color:var(--poe-color-unique)
}

.poe-tooltip .tc.-rareitem {
  color:var(--poe-color-rareitem)
}

.poe-tooltip .tc.-rare {
  color:var(--poe-color-rare)
}

.poe-tooltip .tc.-magicitem {
  color:var(--poe-color-magicitem)
}

.poe-tooltip .tc.-magic {
  color:var(--poe-color-magic)
}

.poe-tooltip .tc.-whiteitem,
.poe-tooltip .tc.-white {
  color:var(--poe-color-whiteitem)
}

.poe-tooltip .tc.-normal {
  color:var(--poe-color-normal)
}

.poe-tooltip .tc.-gemitem {
  color:var(--poe-color-gemitem)
}

.poe-tooltip .tc.-gem,
.poe-tooltip .tc.-gemdesc {
  color:var(--poe-color-gem)
}

.poe-tooltip .tc.-currencyitem {
  color:var(--poe-color-currencyitem)
}

.poe-tooltip .tc.-currency,
.poe-tooltip .tc.-cosmetic {
  color:var(--poe-color-currency)
}

.poe-tooltip .tc.-questitem {
  color:var(--poe-color-questitem)
}

.poe-tooltip .tc.-quest {
  color:var(--poe-color-quest)
}

.poe-tooltip .tc.-nemesismod,
.poe-tooltip .tc.-nemesis {
  font-weight:bold;
  color:var(--poe-color-nemesismod);
  text-shadow:-1px -1px 0 var(--poe-color-nemesismodoutline),1px -1px 0 var(--poe-color-nemesismodoutline),-1px 1px 0 var(--poe-color-nemesismodoutline),1px 1px 0 var(--poe-color-nemesismodoutline)
}

.poe-tooltip .tc.-talismanmod {
  font-weight:bold;
  color:var(--poe-color-talismanmod);
  text-shadow:-1px -1px 0 var(--poe-color-talismanmodoutline),1px -1px 0 var(--poe-color-talismanmodoutline),-1px 1px 0 var(--poe-color-talismanmodoutline),1px 1px 0 var(--poe-color-talismanmodoutline)
}

.poe-tooltip .tc.-title {
  color:var(--poe-color-title)
}

.poe-tooltip .tc.-corrupted {
  color:var(--poe-color-corrupted)
}

.poe-tooltip .tc.-favour {
  color:var(--poe-color-favour)
}

.poe-tooltip .tc.-supporterpacknewitem {
  color:var(--poe-color-supporterpacknewitem)
}

.poe-tooltip .tc.-supporterpackitem {
  color:var(--poe-color-supporterpackitem)
}

.poe-tooltip .tc.-bloodlinemod,
.poe-tooltip .tc.-bloodline {
  font-weight:bold;
  color:var(--poe-color-bloodlinemod);
  text-shadow:-1px -1px 0 var(--poe-color-bloodlinemodoutline),1px -1px 0 var(--poe-color-bloodlinemodoutline),-1px 1px 0 var(--poe-color-bloodlinemodoutline),1px 1px 0 var(--poe-color-bloodlinemodoutline)
}

.poe-tooltip .tc.-tormentmod,
.poe-tooltip .tc.-torment {
  font-weight:bold;
  color:var(--poe-color-tormentmod);
  text-shadow:-1px -1px 0 var(--poe-color-tormentmodoutline),1px -1px 0 var(--poe-color-tormentmodoutline),-1px 1px 0 var(--poe-color-tormentmodoutline),1px 1px 0 var(--poe-color-tormentmodoutline)
}

.poe-tooltip .tc.-canttradeormodify {
  color:var(--poe-color-canttradeormodify)
}

.poe-tooltip .tc.-lockedtoaccount {
  color:var(--poe-color-lockedtoaccount)
}

.poe-tooltip .tc.-divination,
.poe-tooltip .tc.-card {
  color:var(--poe-color-divination)
}

.poe-tooltip .tc.-prophecy {
  color:var(--poe-color-prophecy)
}

.poe-tooltip .tc.-essencemod,
.poe-tooltip .tc.-essence {
  font-weight:bold;
  color:var(--poe-color-essencemod);
  text-shadow:-1px -1px 0 var(--poe-color-essencemodoutline),1px -1px 0 var(--poe-color-essencemodoutline),-1px 1px 0 var(--poe-color-essencemodoutline),1px 1px 0 var(--poe-color-essencemodoutline)
}

.poe-tooltip .tc.-uniquefoil,
.poe-tooltip .tc.-foil {
  color:var(--poe-color-uniquefoil)
}

.poe-tooltip .tc.-legacy {
  color:var(--poe-color-legacy)
}

.poe-tooltip .tc.-bestiarymod,
.poe-tooltip .tc.-bestiary {
  font-weight:bold;
  color:var(--poe-color-bestiarymod);
  text-shadow:-1px -1px 0 var(--poe-color-bestiarymodoutline),1px -1px 0 var(--poe-color-bestiarymodoutline),-1px 1px 0 var(--poe-color-bestiarymodoutline),1px 1px 0 var(--poe-color-bestiarymodoutline)
}

.poe-tooltip .tc.-blightmod,
.poe-tooltip .tc.-blight {
  font-weight:bold;
  color:var(--poe-color-blightmod);
  text-shadow:-1px -1px 0 var(--poe-color-blightmodoutline),1px -1px 0 var(--poe-color-blightmodoutline),-1px 1px 0 var(--poe-color-blightmodoutline),1px 1px 0 var(--poe-color-blightmodoutline)
}

.poe-tooltip .tc.-afflictionmod,
.poe-tooltip .tc.-deliriummod,
.poe-tooltip .tc.-delirium {
  font-weight:bold;
  color:var(--poe-color-afflictionmod);
  text-shadow:-1px -1px 0 var(--poe-color-afflictionmodoutline),1px -1px 0 var(--poe-color-afflictionmodoutline),-1px 1px 0 var(--poe-color-afflictionmodoutline),1px 1px 0 var(--poe-color-afflictionmodoutline)
}

.poe-tooltip .tc.-stackitemlevel {
  color:var(--poe-color-stackitemlevel)
}

.poe-tooltip .tc.-harvestprimary {
  color:var(--poe-color-harvestprimary)
}

.poe-tooltip .tc.-harvestsecondary {
  color:var(--poe-color-harvestsecondary)
}

.poe-tooltip .tc.-craftingcaster {
  color:var(--poe-color-craftingcaster)
}

.poe-tooltip .tc.-craftingphysical {
  color:var(--poe-color-craftingphysical)
}

.poe-tooltip .tc.-craftingfire {
  color:var(--poe-color-craftingfire)
}

.poe-tooltip .tc.-craftingcold {
  color:var(--poe-color-craftingcold)
}

.poe-tooltip .tc.-craftinglightning {
  color:var(--poe-color-craftinglightning)
}

.poe-tooltip .tc.-craftingchaos {
  color:var(--poe-color-craftingchaos)
}

.poe-tooltip .tc.-craftingspeed {
  color:var(--poe-color-craftingspeed)
}

.poe-tooltip .tc.-craftingcrit {
  color:var(--poe-color-craftingcrit)
}

.poe-tooltip .tc.-craftingred {
  color:var(--poe-color-craftingred)
}

.poe-tooltip .tc.-craftingblue {
  color:var(--poe-color-craftingblue)
}

.poe-tooltip .tc.-craftinggreen {
  color:var(--poe-color-craftinggreen)
}

.poe-tooltip .tc.-craftinglife {
  color:var(--poe-color-craftinglife)
}

.poe-tooltip .tc.-craftingdefences {
  color:var(--poe-color-craftingdefences)
}

.poe-tooltip .tc.-craftingattack {
  color:var(--poe-color-craftingattack)
}

.poe-tooltip .tc.-help {
  font-style:italic;
  color:var(--poe-color-default)
}

.poe-tooltip .tc.-flavour {
  font-style:italic;
  color:var(--poe-color-unique)
}

.poe-tooltip .tc.-hellscaped,
.poe-tooltip .tc.-scourge {
  color:var(--poe-color-hellscaped)
}

.poe-tooltip .tc.-brequelmutated,
.poe-tooltip .tc.-foulborn {
  color:var(--poe-color-brequelmutated)
}

.poe-tooltip .tc.-primal {
  color:cyan
}

.poe-tooltip .tc.-vivid {
  color:yellow
}

.poe-tooltip .tc.-wild {
  color:magenta
}

.poe-tooltip .tc.-not {
  text-decoration:line-through;
  color:var(--poe-color-default)
}

.poe-tooltip .item-box {
  display:inline-block;
  box-sizing:border-box;
  border-width:1px;
  border-style:solid;
  padding:2px;
  min-width:220px;
  max-width:440px;
  text-align:center;
  font-family:var(--stylized-smallcaps-font);
  font-size:15px;
  line-height:1.265;
  font-weight:normal;
  font-style:normal;
  font-variant-ligatures:none;
  color:var(--poe-color-default);
  background-color:#000
}

.poe-tooltip .item-box a,
.poe-tooltip .item-box a:visited,
.poe-tooltip .item-box a:active {
  color:unset
}

.poe-tooltip .item-box.-normal {
  border-color:var(--poe-color-normal)
}

.poe-tooltip .item-box.-magic {
  border-color:var(--poe-color-magic)
}

.poe-tooltip .item-box.-rare {
  border-color:var(--poe-color-rare)
}

.poe-tooltip .item-box.-unique {
  border-color:var(--poe-color-unique)
}

.poe-tooltip .item-box.-currency {
  border-color:var(--poe-color-currency)
}

.poe-tooltip .item-box.-gem {
  border-color:var(--poe-color-gem)
}

.poe-tooltip .item-box.-quest {
  border-color:var(--poe-color-quest)
}

.poe-tooltip .item-box.-prophecy {
  border-color:var(--poe-color-prophecy)
}

.poe-tooltip .item-box.-foil {
  border-color:var(--poe-color-uniquefoil)
}

.poe-tooltip .item-box.-necropolis {
  border-color:rgb(52,58,64)
}

.poe-tooltip .item-box > .header {
  display:block;
  overflow:hidden;
  position:relative;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:20px;
  background-repeat:no-repeat,no-repeat,repeat-x
}

.poe-tooltip .item-box > .header > .symbol {
  content:"";
  display:block;
  position:absolute;
  top:0;
  background-position:center;
  background-repeat:no-repeat
}

.poe-tooltip .item-box > .header > .symbol:first-child {
  left:0
}

.poe-tooltip .item-box > .header > .symbol:last-child {
  right:0
}

.poe-tooltip .item-box > .header > .symbol.-shaper {
  background-image:url(https://www.poewiki.net/w/images/5/55/Shaper-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-elder {
  background-image:url(https://www.poewiki.net/w/images/1/1b/Elder-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-crusader {
  background-image:url(https://www.poewiki.net/w/images/d/d1/Crusader-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-redeemer {
  background-image:url(https://www.poewiki.net/w/images/9/9c/Redeemer-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-hunter {
  background-image:url(https://www.poewiki.net/w/images/a/a8/Hunter-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-warlord {
  background-image:url(https://www.poewiki.net/w/images/f/f1/Warlord-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-veiled {
  background-image:url(https://www.poewiki.net/w/images/f/fd/Veiled-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-fractured {
  background-image:url(https://www.poewiki.net/w/images/9/97/Fractured-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-synthesised {
  background-image:url(https://www.poewiki.net/w/images/4/4c/Synthesised-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-searingexarch {
  background-image:url(https://www.poewiki.net/w/images/c/c2/Searing-exarch-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-eaterofworlds {
  background-image:url(https://www.poewiki.net/w/images/a/a2/Eater-of-worlds-item-symbol.png)
}

.poe-tooltip .item-box > .header > .symbol.-replica {
  background-image:url(https://www.poewiki.net/w/images/5/50/Replica-item-symbol.png)
}

.poe-tooltip .item-box.-normal > .header {
  color:var(--poe-color-normal)
}

.poe-tooltip .item-box.-magic > .header {
  color:var(--poe-color-magic)
}

.poe-tooltip .item-box.-rare > .header {
  color:var(--poe-color-rare)
}

.poe-tooltip .item-box.-unique > .header {
  color:var(--poe-color-unique)
}

.poe-tooltip .item-box.-currency > .header {
  color:var(--poe-color-currency)
}

.poe-tooltip .item-box.-gem > .header {
  color:var(--poe-color-gem)
}

.poe-tooltip .item-box.-quest > .header {
  color:var(--poe-color-quest)
}

.poe-tooltip .item-box.-prophecy > .header {
  color:var(--poe-color-prophecy)
}

.poe-tooltip .item-box.-foil > .header {
  color:var(--poe-color-uniquefoil)
}

.poe-tooltip .item-box.-necropolis > .header {
  color:rgb(181,168,144)
}

.poe-tooltip .item-box > .header.-single {
  background-image:url(https://www.poewiki.net/w/images/9/9b/Item-ui-header-single.png),url(https://www.poewiki.net/w/images/9/9b/Item-ui-header-single.png),url(https://www.poewiki.net/w/images/9/9b/Item-ui-header-single.png)
}

.poe-tooltip .item-box > .header.-single {
  padding:3px 32px;
  height:28px;
  line-height:25px
}

.poe-tooltip .item-box > .header.-single > .symbol {
  width:32px;
  height:34px
}

.poe-tooltip .item-box.-normal > .header.-single {
  background-position:left 0,right -68px,center -34px
}

.poe-tooltip .item-box.-magic > .header.-single {
  background-position:left -102px,right -170px,center -136px
}

.poe-tooltip .item-box.-currency > .header.-single {
  background-position:left -204px,right -272px,center -238px
}

.poe-tooltip .item-box.-gem > .header.-single {
  background-position:left -306px,right -374px,center -340px
}

.poe-tooltip .item-box.-quest > .header.-single {
  background-position:left -408px,right -476px,center -442px
}

.poe-tooltip .item-box.-prophecy > .header.-single {
  background-position:left -510px,right -578px,center -544px
}

.poe-tooltip .item-box.-necropolis > .header.-single {
  margin:-5px -14px 0;
  padding:0 40px;
  height:45px;
  line-height:42px;
  background-image:url(https://www.poewiki.net/w/images/a/a0/Item-ui-header-necropolis.png),url(https://www.poewiki.net/w/images/a/a0/Item-ui-header-necropolis.png),url(https://www.poewiki.net/w/images/a/a0/Item-ui-header-necropolis.png);
  background-position:left 0,right -90px,center -45px;
  background-clip:border-box,border-box,content-box
}

.poe-tooltip .item-box > .header.-double {
  background-image:url(https://www.poewiki.net/w/images/e/e8/Item-ui-header-double.png),url(https://www.poewiki.net/w/images/e/e8/Item-ui-header-double.png),url(https://www.poewiki.net/w/images/e/e8/Item-ui-header-double.png)
}

.poe-tooltip .item-box > .header.-double {
  padding:3px 44px;
  height:48px;
  line-height:23px
}

.poe-tooltip .item-box > .header.-double > .symbol {
  width:32px;
  height:54px
}

.poe-tooltip .item-box.-rare > .header.-double {
  background-position:left 0,right -108px,center -54px
}

.poe-tooltip .item-box.-unique > .header.-double {
  background-position:left -162px,right -270px,center -216px
}

.poe-tooltip .item-stats {
  display:block;
  padding:7px 12px;
  margin:0 auto
}

.poe-tooltip .item-stats.-nopad {
  padding:0
}

.poe-tooltip .item-stats > .group {
  display:block;
  margin:0 auto
}

.poe-tooltip .item-stats > .group:nth-last-child(n+2)::after,
.poe-tooltip .item-stat-separator::before {
  display:block;
  margin:5px auto;
  width:auto;
  height:3px;
  background-image:url(https://www.poewiki.net/w/images/e/ef/Item-ui-separators.png);
  background-position:center 0;
  background-repeat:no-repeat;
  content:""
}

.poe-tooltip .item-box.-magic > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-magic::before {
  background-position:center -3px
}

.poe-tooltip .item-box.-rare > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-rare::before {
  background-position:center -6px
}

.poe-tooltip .item-box.-unique > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-unique::before {
  background-position:center -9px
}

.poe-tooltip .item-box.-currency > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-currency::before,
.poe-tooltip .item-box.-divicard > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-divicard::before {
  background-position:center -12px
}

.poe-tooltip .item-box.-gem > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-gem::before {
  background-position:center -15px
}

.poe-tooltip .item-box.-quest > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-quest::before {
  background-position:center -18px
}

.poe-tooltip .item-box.-prophecy > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-prophecy::before {
  background-position:center -21px
}

.poe-tooltip .item-box.-foil > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-foil::before {
  background-position:center -24px
}

.poe-tooltip .item-box.-necropolis > .item-stats > .group::after,
.poe-tooltip .item-stat-separator.-necropolis::before {
  height:5px;
  background-image:url(https://www.poewiki.net/w/images/a/af/Item-ui-separator-necropolis.png)
}

.poe-tooltip .item-stats > .group > .secondary-header {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:3px 0;
  height:28px;
  font-size:20px;
  line-height:25px;
  background-position:center 0;
  background-repeat:no-repeat;
  background-size:contain
}

.poe-tooltip .item-box.-gem > .item-stats > .group > .secondary-header {
  color:var(--poe-color-gem);
  background-image:url(https://www.poewiki.net/w/images/9/96/Item_UI_header_gem_secondary.png)
}

.poe-tooltip .item-box > .image {
  display:block;
  padding:7px 12px
}

.poe-tooltip .itembox-tabs {
  z-index:1;
  display:flex;
  column-gap:4px
}

.poe-tooltip .itembox-tab {
  height:35px
}

.poe-tooltip .itembox-tab * {
  display:inline-block;
  height:34px;
  line-height:34px
}

.poe-tooltip .itembox-tab a {
  border-width:1px 1px 0 1px;
  border-style:solid;
  border-color:transparent;
  border-radius:4px 4px 0 0;
  background-color:#27292a
}

.poe-tooltip .itembox-tab a:hover,
.poe-tooltip .itembox-tab a:focus {
  background-color:#343738
}

.poe-tooltip .itembox-tab.-selected a {
  border-color:var(--poe-color-gem);
  height:35px;
  background-color:#000
}

.poe-tooltip .itembox-tab img {
  vertical-align:baseline
}

.poe-tooltip .item-box.-divicard {
  border-color:var(--poe-color-divination)
}

.poe-tooltip .item-box.-divicard:first-child {
  border:none;
  padding:0;
  background:none
}

.poe-tooltip .legacy-stats .tc {
  font-size:1.167em
}


/* --- Tome-side tooltip chrome (not from poewiki) ---
   No frame of its own: the poewiki item-card already ships its rarity frame. */
.poe-tooltip {
  position: absolute;
  z-index: 10000;
  max-width: 420px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #dfcf99;
}
.poe-tooltip .poe-tooltip-footer {
  margin-top: 2px;
  font-size: 10px;
  color: #a38d6d;
  text-align: right;
}
