/* WRAECLAST (static/js/poe2.js): the Path of Exile 2 companion. BruNet's holo panels with Wraeclast's dark gold (--wg). */
#tab-wraeclast { --wg: #c8a46a; --wg-dim: rgba(200, 164, 106, .25); }
.p2-pane { display: flex; flex-direction: column; gap: 10px; }
.p2-sect { padding: 12px 14px; }
.p2-sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.p2-sh b { font: 800 12px var(--mono); letter-spacing: .22em; color: var(--wg); text-shadow: 0 0 12px rgba(200, 164, 106, .35); }
.p2-sh span { font: 10px var(--mono); color: var(--mute); letter-spacing: .06em; }
.p2-sh.small { margin: 12px 0 6px; } .p2-sh.small b { font-size: 10px; color: var(--holo); text-shadow: none; }
.p2-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0; font: 11px var(--mono); }
.p2-row input:not([type=checkbox]), .p2-row select { max-width: 320px; }
.p2-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.p2-credit { font: 9px var(--mono); color: var(--mute); opacity: .7; text-align: center; }
#tab-wraeclast textarea { width: 100%; box-sizing: border-box; font: 12px/1.4 var(--mono); resize: vertical; }
#tab-wraeclast .p2-big { color: var(--wg) !important; border-color: var(--wg) !important; background: rgba(200, 164, 106, .1) !important; font: 700 11px var(--mono) !important; letter-spacing: .14em; }

/* TODAY */
.p2-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 16px 18px; background: radial-gradient(ellipse at 0% 0%, rgba(200, 164, 106, .16), transparent 60%), var(--hub-bg); }
.p2-league small { display: block; font: 9px var(--mono); letter-spacing: .3em; color: var(--mute); }
.p2-league b { font: 700 26px/1.1 Georgia, "Times New Roman", serif; color: var(--wg); letter-spacing: .04em; text-shadow: 0 0 18px rgba(200, 164, 106, .4); }
.p2-rates { display: flex; flex-direction: column; gap: 2px; font: 12px var(--mono); color: var(--mute); }
.p2-rates b { color: #fff; font-size: 15px; } .p2-rates span { color: var(--wg); }
.p2-links { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.p2-links a, .p2-ext { font: 700 10px var(--mono); letter-spacing: .14em; color: var(--holo); border: 1px solid var(--holo-dim); border-radius: 6px; padding: 5px 9px; text-decoration: none; }
.p2-links a:hover, .p2-ext:hover { color: var(--wg); border-color: var(--wg); }
.p2-ptitle { margin: 2px 0 8px; font: 700 18px/1.2 Georgia, serif; color: #fff; }
.p2-list { display: flex; flex-direction: column; gap: 2px; }
.p2-list a { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; }
.p2-list a:hover { background: rgba(200, 164, 106, .07); color: #fff; }
.p2-list small { font: 10px var(--mono); color: var(--mute); }
.p2-movers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; margin-bottom: 10px; }
.p2-mover { display: grid; grid-template-columns: 26px 1fr auto auto auto; align-items: center; gap: 8px; font-size: 12px; }
.p2-mover img { width: 26px; height: 26px; object-fit: contain; }
.p2-mover span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p2-div { font-style: normal; color: #e0c27a; font: 10px var(--mono); }
.p2-ex { font-style: normal; color: #b7c9ff; font: 10px var(--mono); }
#tab-wraeclast em.up { font: normal 10px var(--mono); color: #7dff9a; } #tab-wraeclast em.down { font: normal 10px var(--mono); color: #ff6b5a; }
.p2-spark { display: block; }

/* BUILDS */
.p2-builds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
#tab-wraeclast .p2-build { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px !important; text-align: left; min-height: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 10%, transparent), rgba(5, 7, 13, .6)) !important; border: 1px solid color-mix(in srgb, var(--cc) 35%, transparent) !important;
  color: var(--text) !important; box-shadow: none !important; font-family: inherit; }
#tab-wraeclast .p2-build:hover, #tab-wraeclast .p2-build.on { border-color: var(--cc) !important; box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 35%, transparent) !important; }
.p2-build b { font-size: 14px; color: #fff; } .p2-build small { font: 10px var(--mono); color: var(--mute); }
.p2-build em { font: normal 700 9px var(--mono); letter-spacing: .14em; color: var(--wg); }
.p2-build em.st-retired { color: var(--mute); } .p2-build em.st-mapping, .p2-build em.st-endgame { color: #7dff9a; } .p2-build em.st-levelling { color: var(--holo); }
.p2-cls { display: inline-block; font: 800 9px var(--mono); letter-spacing: .18em; color: #05070d; background: var(--cc); padding: 2px 7px; border-radius: 4px; }
.p2-detail { border-color: color-mix(in srgb, var(--cc) 45%, transparent) !important; }
.p2-dh { display: flex; align-items: flex-start; gap: 12px; }
.p2-dh h3 { margin: 0; font: 700 20px/1.2 Georgia, serif; color: #fff; } .p2-dh small { font: 10px var(--mono); color: var(--mute); }
#tab-wraeclast .p2-x { margin-left: auto; width: 30px; height: 30px; padding: 0; min-height: 0; border-radius: 50% !important; }
.p2-skill { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 8px; margin-bottom: 4px; border-left: 2px solid var(--cc); background: rgba(255, 255, 255, .02); border-radius: 0 6px 6px 0; }
.p2-skill.off { opacity: .45; }
.p2-skill b { color: #fff; font-size: 13px; } .p2-skill small { font: 10px var(--mono); color: var(--wg); }
.p2-skill span { font: 11px var(--mono); color: #9fd8e6; padding: 1px 6px; border: 1px solid rgba(79, 227, 255, .2); border-radius: 10px; }
.p2-skill em { font: normal 9px var(--mono); color: var(--mute); margin-left: auto; }
.p2-item { display: grid; grid-template-columns: 90px 1fr; gap: 0 10px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 13px; }
.p2-item em { grid-row: span 2; font: normal 10px var(--mono); color: var(--mute); padding-top: 2px; }
.p2-item small { font: 10px var(--mono); color: var(--mute); }
.p2-note { white-space: pre-wrap; font-size: 13px; }
.p2-pre { white-space: pre-wrap; font: 12px/1.45 var(--mono); color: #cfd7e3; background: rgba(0, 0, 0, .25); padding: 10px; border-radius: 6px; max-height: 360px; overflow: auto; }

/* MARKET */
.p2-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
#tab-wraeclast .p2-tabs button { font: 9.5px var(--mono) !important; letter-spacing: .1em; padding: 4px 8px; min-height: 0; background: transparent !important; color: var(--mute) !important; border: 1px solid rgba(255, 255, 255, .1) !important; box-shadow: none !important; }
#tab-wraeclast .p2-tabs button.on { color: var(--wg) !important; border-color: var(--wg) !important; background: rgba(200, 164, 106, .1) !important; }
.p2-table { display: flex; flex-direction: column; }
.p2-tr { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.p2-tr summary { display: grid; grid-template-columns: 32px minmax(0, 1fr) 110px 70px 64px 110px; align-items: center; gap: 10px; padding: 5px 4px; cursor: pointer; list-style: none; font-size: 13px; }
.p2-tr summary::-webkit-details-marker { display: none; }
.p2-tr summary:hover { background: rgba(200, 164, 106, .05); }
.p2-tr img { width: 32px; height: 32px; object-fit: contain; }
.p2-tr .n { overflow: hidden; } .p2-tr .n small { display: block; font: 10px var(--mono); color: var(--mute); }
.p2-tr .v { text-align: right; } .p2-tr .vol { font: 10px var(--mono); color: var(--mute); text-align: right; }
.p2-tr ul { margin: 0 0 8px 46px; padding: 0; list-style: none; font: 12px/1.5 var(--mono); color: #8fb0ff; }

/* CRAFT BENCH */
.p2-steps { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.p2-step { display: grid; grid-template-columns: 22px 28px 1fr auto auto 110px 28px; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 6px; font-size: 13px; }
.p2-step .i { font: 700 11px var(--mono); color: var(--wg); } .p2-step img { width: 28px; height: 28px; object-fit: contain; }
.p2-step label { font: 9px var(--mono); color: var(--mute); display: flex; align-items: center; gap: 4px; }
.p2-step input { width: 56px; } .p2-step .v { text-align: right; }
#tab-wraeclast .p2-step button { width: 26px; height: 26px; padding: 0; min-height: 0; }
.p2-total { margin: 10px 0; font: 700 14px var(--mono); letter-spacing: .08em; color: var(--wg); }
.p2-total small { font-weight: 400; color: var(--mute); }

/* PATCH NOTES */
.p2-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 10px; align-items: start; }
.p2-plist { display: flex; flex-direction: column; gap: 2px; max-height: 75vh; overflow: auto; }
#tab-wraeclast .p2-plist button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 6px 8px; min-height: 0; background: transparent !important; color: var(--text) !important; border: 1px solid transparent !important; box-shadow: none !important; font: 600 12px var(--mono) !important; }
#tab-wraeclast .p2-plist button.on { border-color: var(--wg) !important; background: rgba(200, 164, 106, .08) !important; color: #fff !important; }
.p2-plist small { font: 9.5px var(--mono); color: var(--mute); font-weight: 400; }
.p2-rbody h4 { margin: 14px 0 6px; font: 700 12px var(--mono); letter-spacing: .14em; color: var(--wg); }
.p2-rbody ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.p2-rbody li { margin: 2px 0; }
.p2-rbody mark { background: rgba(200, 164, 106, .35); color: #fff; border-radius: 2px; padding: 0 2px; }

/* GUIDES */
.p2-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.p2-sites a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--wg-dim); border-radius: 8px; text-decoration: none; color: var(--text); }
.p2-sites a:hover { border-color: var(--wg); box-shadow: 0 0 12px rgba(200, 164, 106, .2); }
.p2-sites b { font: 700 12px var(--mono); letter-spacing: .08em; color: var(--wg); } .p2-sites span { font-size: 12px; color: var(--mute); }

@media (max-width: 820px) {
  .p2-split { grid-template-columns: 1fr; }
  .p2-plist { max-height: 220px; }
  .p2-tr summary { grid-template-columns: 28px minmax(0, 1fr) 90px 60px; }
  .p2-tr summary .p2-spark, .p2-tr summary .vol { display: none; }
  .p2-step { grid-template-columns: 22px 1fr auto 90px 28px; } .p2-step img, .p2-step label:nth-of-type(2) { display: none; }
  .p2-links { margin-left: 0; }
}
