/* Hearthrealm Idle wiki - generated by tools/wiki/build_wiki.py. Palette = playhearthrealm.com (web/site/site.css). */
:root {
  --bg: #12141b; --panel: #1b1e28; --panel2: #232735; --line: #2f3446; --line2: #3b4157;
  --fg: #ece6d6; --dim: #a9a394; --gold: #e2b55a; --gold2: #f3d58f; --gem: #7ad0ff; --good: #7bd88f; --bad: #e57a6a;
  --poor: #9d9d9d; --common: #ffffff; --uncommon: #1eff00; --rare: #3d8fe8; --epic: #b45cf5; --legendary: #ff8000; --heirloom: #e6cc80;
  --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
img.px, .px { image-rendering: pixelated; image-rendering: crisp-edges; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h1 { font-size: 30px; margin: 4px 0 6px; color: var(--gold2); }
h2 { font-size: 22px; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--gold); }
h3 { font-size: 18px; margin: 22px 0 8px; }
p { margin: 0 0 12px; }
code, kbd { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 14px; }
.dim { color: var(--dim); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.small { font-size: 14px; }

/* top bar */
header.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
header.top .brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 800; white-space: nowrap; }
header.top .brand img { height: 38px; width: auto; }
header.top .brand span { font-size: 15px; color: var(--dim); font-weight: 600; }
#menu-btn { display: none; background: var(--panel2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px;
  height: 38px; width: 42px; font-size: 20px; cursor: pointer; }
.search { position: relative; margin-left: auto; width: min(360px, 46vw); }
.search input { width: 100%; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--bg); color: var(--fg); font-size: 15px; }
.search input:focus { outline: 2px solid var(--gold); border-color: transparent; }
#search-results { position: absolute; top: 44px; right: 0; width: min(440px, 92vw); max-height: 70vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: none; }
#search-results.open { display: block; }
#search-results a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; color: var(--fg); border-bottom: 1px solid var(--line); }
#search-results a:hover, #search-results a.sel { background: var(--panel2); text-decoration: none; }
#search-results a img { width: 24px; height: 24px; }
#search-results .k { margin-left: auto; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
#search-results .none { padding: 10px 12px; color: var(--dim); }

/* layout */
.layout { display: flex; align-items: flex-start; }
nav.side { position: sticky; top: 60px; width: var(--side); flex: 0 0 var(--side); height: calc(100vh - 60px); overflow-y: auto;
  padding: 14px 10px 40px; background: var(--panel); border-right: 1px solid var(--line); font-size: 14.5px; }
nav.side .grp { margin: 0 0 14px; }
nav.side .grp > b { display: block; padding: 0 8px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
nav.side a { display: flex; align-items: center; gap: 7px; padding: 3px 8px; border-radius: 6px; color: var(--fg); }
nav.side a img { width: 20px; height: 20px; }
nav.side a:hover { background: var(--panel2); text-decoration: none; }
nav.side a.cur { background: var(--panel2); color: var(--gold2); font-weight: 700; }
main { flex: 1 1 auto; min-width: 0; padding: 18px 28px 60px; max-width: 1200px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 2px; }
.crumbs a { color: var(--dim); }
.lead { font-size: 17px; color: var(--fg); }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px;
  padding: 10px 14px; margin: 12px 0; }
.note.draft { border-left-color: var(--gem); }
footer.foot { margin-top: 50px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* infobox */
.infobox { float: right; clear: right; width: 300px; margin: 0 0 16px 22px; background: var(--panel); border: 1px solid var(--line2);
  border-radius: 10px; overflow: hidden; font-size: 14.5px; }
.infobox .ib-title { padding: 9px 12px; background: var(--panel2); font-weight: 800; font-size: 17px; text-align: center; border-bottom: 1px solid var(--line); }
.infobox .ib-img { display: flex; justify-content: center; align-items: center; padding: 14px; min-height: 96px;
  background: radial-gradient(circle at 50% 60%, #2a2f42 0%, var(--panel) 70%); border-bottom: 1px solid var(--line); }
.infobox .ib-img img { width: 96px; height: 96px; }
.infobox .ib-img img.big { width: 192px; height: 192px; }
.infobox table { width: 100%; border-collapse: collapse; }
.infobox th, .infobox td { padding: 5px 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.infobox th { width: 42%; color: var(--dim); font-weight: 600; }
.infobox tr:last-child th, .infobox tr:last-child td { border-bottom: 0; }
.infobox .ib-sec { background: var(--panel2); text-align: center; font-weight: 700; color: var(--gold); }
.clear { clear: both; }

/* tables */
.tw { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--line); border-radius: 10px; }
table.wt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.wt th, table.wt td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.wt th { background: var(--panel2); color: var(--gold2); font-weight: 700; white-space: nowrap; position: relative; }
table.wt th.sortable { cursor: pointer; user-select: none; padding-right: 20px; }
table.wt th.sortable::after { content: "\2195"; position: absolute; right: 6px; opacity: .35; font-size: 12px; }
table.wt th.asc::after { content: "\25B2"; opacity: .9; }
table.wt th.desc::after { content: "\25BC"; opacity: .9; }
table.wt tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
table.wt tbody tr:hover { background: rgba(226,181,90,.07); }
table.wt td.n, table.wt th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.wt tr:last-child td { border-bottom: 0; }
.ic { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.ic img { width: 28px; height: 28px; flex: 0 0 auto; }
.ic.sm img { width: 20px; height: 20px; }
.mats { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mats .ic img { width: 22px; height: 22px; }
.tag { display: inline-block; font-size: 11.5px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line2); color: var(--dim); margin-left: 4px; white-space: nowrap; }
.tag.gold { color: var(--gold2); border-color: #6b5426; }
.tag.blue { color: var(--gem); border-color: #2c5a72; }

/* rarity */
.r-poor { color: var(--poor); } .r-common { color: var(--common); } .r-uncommon { color: var(--uncommon); }
.r-rare { color: var(--rare); } .r-epic { color: var(--epic); } .r-legendary { color: var(--legendary); } .r-heirloom { color: var(--heirloom); }

/* money */
.g { color: #ffd700; } .s { color: #c0c0c0; } .c { color: #d08a50; }

/* main page grid */
.hero-banner { display: flex; align-items: center; gap: 22px; padding: 20px; margin: 4px 0 18px; border-radius: 14px;
  background: linear-gradient(135deg, #241d14 0%, var(--panel) 60%); border: 1px solid #4a3a1e; }
.hero-banner img { width: 110px; height: 110px; }
.hero-banner h1 { margin: 0 0 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.grid a.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font-weight: 700; font-size: 14.5px; }
.grid a.tile img { width: 48px; height: 48px; }
.grid a.tile small { color: var(--dim); font-weight: 500; font-size: 12.5px; }
.grid a.tile:hover { border-color: var(--gold); background: var(--panel2); text-decoration: none; transform: translateY(-1px); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.card h3 { margin-top: 2px; }
ul.links { margin: 0; padding-left: 18px; }
.sprite { width: 96px; height: 96px; }
.toc { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px 8px 0; margin: 6px 0 12px; font-size: 14.5px; }
.toc b { padding-left: 16px; color: var(--gold); }
.toc ol { margin: 4px 0 0; }

@media (max-width: 900px) {
  #menu-btn { display: block; }
  nav.side { position: fixed; top: 60px; left: 0; z-index: 25; transform: translateX(-100%); transition: transform .18s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.5); }
  body.nav-open nav.side { transform: none; }
  main { padding: 14px 16px 50px; }
  header.top .brand span { display: none; }
}
@media (max-width: 640px) {
  .infobox { float: none; width: 100%; margin: 0 0 16px; }
  h1 { font-size: 25px; }
  .hero-banner { flex-direction: column; text-align: center; }
  header.top .brand img { height: 30px; }
  .search { width: auto; flex: 1 1 auto; }
}

/* the game's item tooltip (ui_kit.gd make_theme TooltipPanel: #0e1016f0, gold border darkened 40%, radius 4, padding 8) */
.game-tip{position:fixed;z-index:1000;display:none;pointer-events:none;max-width:320px;padding:8px 10px;background:rgba(14,16,22,.94);
  border:1px solid #866a30;border-radius:4px;color:#e8e2d2;font-size:13px;line-height:1.45;white-space:pre-wrap;box-shadow:0 4px 14px rgba(0,0,0,.5)}
.game-tip b{font-size:14px}

/* header links: back to the game + the community Discord */
.hlinks { display: flex; gap: 8px; }
.hlinks a { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.hlinks .hplay { background: var(--gold); color: #1a1408; }
.hlinks .hdiscord { background: #5865f2; color: #fff; }
.hlinks a:hover { filter: brightness(1.1); text-decoration: none; }
@media (max-width: 640px) { .hlinks a { padding: 0 9px; font-size: 13px; } .hlinks .hdiscord { display: none; } }
