/* ==========================================================================
   Characters: each character's own page (the Armory look: what it wears down both sides of its portrait and the
   weapons beneath, the character window's numbers beside it, its talents, professions and reputation below), its
   header and switcher, and the cards of a member's characters. --cc is the character's class colour (wcb-<CLASS>);
   the item tooltips are the site's deep blue with a thin gold edge.
   ========================================================================== */
.wc-MONK { color: #00ff98; } .wc-DEMONHUNTER { color: #a330c9; } .wc-EVOKER { color: #33937f; }
.wcb-WARRIOR { --cc: #c69b6d; } .wcb-PALADIN { --cc: #f48cba; } .wcb-HUNTER { --cc: #aad372; } .wcb-ROGUE { --cc: #fff468; }
.wcb-PRIEST { --cc: #f2f2f2; } .wcb-SHAMAN { --cc: #3b9cff; } .wcb-MAGE { --cc: #3fc7eb; } .wcb-WARLOCK { --cc: #8f90f5; }
.wcb-DRUID { --cc: #ff7c0a; } .wcb-DEATHKNIGHT { --cc: #e0384f; } .wcb-MONK { --cc: #00ff98; } .wcb-DEMONHUNTER { --cc: #a330c9; }
.wcb-EVOKER { --cc: #33937f; } .wcb-NONE { --cc: var(--gold); }

/* The heading: the character's portrait beside its name (in its class's colour, not the headings' gold) */
.char-title { display: inline-flex; align-items: center; gap: .7rem; }
.char-title-face { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #b9844a; box-shadow: 0 0 0 1px #000, 0 4px 14px -4px #000; }
.char-title > span { -webkit-text-fill-color: currentColor; }

/* Its three pages, and its player's other characters */
.char-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.char-pages a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 5px; font-family: var(--display);
  font-size: .88rem; color: #d3c8ac; text-decoration: none !important; }
.char-pages a:hover { color: #ffe6a0; background: rgba(69, 214, 214, .09); }
.char-pages a.is-on { background: var(--wow-lit, var(--accent)); color: #ffdc7a; text-shadow: 0 0 8px rgba(255, 200, 80, .55), 0 1px 0 #000;
  box-shadow: inset 0 0 0 1px #c99555, inset 0 0 0 2px rgba(0, 0, 0, .5), 0 0 12px -4px rgba(69, 214, 214, .8); }
.char-switch { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.char-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem .15rem .2rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); font-size: .84rem; font-weight: 600; text-decoration: none; }
.char-chip img { width: 20px; height: 20px; border-radius: 50%; }
.char-chip small { color: var(--muted); font-weight: 500; }
.char-chip:hover { border-color: var(--line-2); text-decoration: none; }
.char-chip-more { padding-left: .55rem; color: var(--muted); }

/* A member's characters: a card each */
.char-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.char-cards .panel + .panel { margin-top: 0; }
.char-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; color: inherit; text-decoration: none !important;
  border-left: 3px solid var(--cc); transition: border-color .15s, transform .15s; }
.char-card:hover { border-color: var(--cc); transform: translateY(-1px); }
.char-card-face { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--cc); box-shadow: 0 0 0 1px #000, 0 0 18px -6px var(--cc); }
.char-card-text { display: grid; gap: .1rem; min-width: 0; }
.char-card-name { font-size: 1.12rem; font-weight: 700; }
.char-card-guild { color: #40c040; }
.char-card-ilvl { display: grid; justify-items: end; line-height: 1.1; }
.char-card-ilvl b { font-size: 1.35rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.char-card-ilvl small { color: var(--muted); font-size: .72rem; }

/* The Armory: the character window and the stats beside it */
.armory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: 1rem; align-items: start; }
.armory .panel + .panel { margin-top: 0; }
.armory-doll { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 210px) minmax(0, 1fr); gap: .45rem .9rem;
  background: radial-gradient(70% 55% at 50% 38%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%) padding-box, var(--wow-slate, var(--panel)) padding-box, var(--wow-gold, var(--panel)) border-box; }
.armory-col { display: grid; gap: .45rem; align-content: start; }
.armory-weapons { grid-column: 1 / -1; display: flex; justify-content: center; gap: .45rem .9rem; flex-wrap: wrap; padding-top: .4rem; border-top: 1px solid var(--line); }
.armory-weapons .gear-slot { width: min(100%, 250px); }

.gear-slot { position: relative; display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .25rem .35rem; border-radius: 8px; outline: none; }
.gear-slot:hover, .gear-slot:focus-visible { background: var(--panel-hover); }
.gear-slot .wow-icon { width: 40px; height: 40px; box-shadow: 0 0 0 1px #000; }
.gear-slot-text { display: grid; min-width: 0; line-height: 1.2; }
.gear-slot-text .wow-item { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-slot-text small { display: flex; gap: .4rem; font-size: .76rem; min-width: 0; }
.gear-ilvl { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 600; }
.gear-enchant { color: #1eff00; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-slot.side-right { flex-direction: row-reverse; text-align: right; }
.gear-slot.side-right .gear-slot-text small { justify-content: flex-end; }
.gear-slot-blank { width: 40px; height: 40px; flex: none; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .8); }
.gear-slot.is-empty .gear-slot-text { opacity: .6; font-size: .84rem; }

/* An item's tooltip, as the game shows it: beside the slot, away from the edge; on a phone, along the bottom of the screen */
.item-tip { display: none; position: absolute; z-index: 30; top: 0; width: max-content; max-width: 330px; padding: .55rem .7rem; text-align: left;
  border: 1px solid #9a7140; border-radius: 6px; background: var(--wow-tooltip, var(--panel-solid)); color: #fff;
  box-shadow: var(--wow-tip-shadow, var(--shadow-lg)); font-size: .82rem; line-height: 1.35; pointer-events: none; }
.gear-slot:hover > .item-tip, .gear-slot:focus > .item-tip, .gear-slot:focus-within > .item-tip { display: block; }
.gear-slot.side-left > .item-tip { left: calc(100% + 8px); }
.gear-slot.side-right > .item-tip { right: calc(100% + 8px); }
.gear-slot.side-bottom > .item-tip { top: auto; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.item-tip-line { display: flex; justify-content: space-between; gap: 1.2rem; }
.item-tip-line:first-child { font-size: .95rem; font-weight: 600; }
.item-tip-r { white-space: nowrap; }

/* The portrait between the gear, its level, item level, specialization, health and power */
.armory-center { display: grid; justify-items: center; align-content: start; gap: .55rem; padding-top: .6rem; text-align: center; }
.armory-face { position: relative; width: 112px; height: 112px; border-radius: 50%; padding: 5px;
  background: linear-gradient(160deg, #fbe6ae, #d3a160 35%, #6b4518 70%, #d3a160);
  box-shadow: 0 0 0 1px #000, 0 0 34px -4px var(--cc, var(--gold)), 0 12px 26px -12px #000; }
.armory-face img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #000; object-fit: cover; }
.armory-level { position: absolute; right: -2px; bottom: 2px; min-width: 2rem; padding: .05rem .35rem; border-radius: 999px; border: 1px solid #b9844a;
  background: #120c06; color: var(--gold); font-weight: 800; font-size: .86rem; box-shadow: 0 2px 6px #000; }
.armory-ilvl { display: grid; line-height: 1.05; }
.armory-ilvl b { font-size: 2rem; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #000, 0 0 18px rgba(255, 170, 30, .3); }
.armory-ilvl span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.armory-spec { display: grid; gap: .1rem; justify-items: center; font-weight: 600; }
.armory-spec > span { display: inline-flex; align-items: center; gap: .35rem; }
.armory-spec img { border-radius: 4px; }
.armory-bars { display: grid; gap: .3rem; width: 100%; max-width: 190px; }
.armory-bar { display: flex; justify-content: space-between; gap: .5rem; padding: .12rem .5rem; border-radius: 4px; font-size: .8rem; font-weight: 600;
  color: #fff; text-shadow: 0 1px 0 #000; border: 1px solid rgba(0, 0, 0, .6); background: linear-gradient(180deg, #5a5f73, #2b2e3a); }
.armory-bar span { font-weight: 500; opacity: .85; }
.armory-bar.is-health { background: linear-gradient(180deg, #2fa82f, #146414); }
.armory-bar.is-mana { background: linear-gradient(180deg, #2f5fd6, #12307c); }
.armory-bar.is-rage { background: linear-gradient(180deg, #c92a2a, #6e1010); }
.armory-bar.is-energy { background: linear-gradient(180deg, #d6b42a, #7c6512); }
.armory-bar.is-focus { background: linear-gradient(180deg, #d67a2a, #7c3e12); }
.armory-bar.is-runic_power { background: linear-gradient(180deg, #2ab4d6, #12627c); }
.armory-title, .armory-when { font-size: .76rem; }
.armory-waiting { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .9rem; border: 1px dashed var(--line-2);
  border-radius: 8px; background: rgba(0, 0, 0, .25); }
.armory-waiting > .icon { flex: none; margin-top: .15rem; color: var(--gold); }
.armory-waiting p { margin: 0; color: var(--text-2); font-size: .9rem; }
.armory-waiting ol { margin: .3rem 0 0; padding-left: 1.3rem; color: var(--text-2); font-size: .9rem; }
.armory-waiting li + li { margin-top: .15rem; }

/* The character window's numbers */
.armory-stats h2 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .3rem; font-size: 1.05rem; }
.armory-stats h3 { margin: .8rem 0 .3rem; font-size: .74rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.armory-numbers { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .12rem .8rem; margin: 0; font-size: .88rem; }
.armory-numbers dt { color: var(--text-2); }
.armory-numbers dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.armory-numbers dd small { display: block; color: var(--muted); font-weight: 400; font-size: .74rem; }
.armory-stats > p { margin: .8rem 0 0; }

.armory-facts { margin: 1rem 0; }

/* Talents, professions and reputation beneath */
.armory-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.armory-more .panel + .panel { margin-top: 0; }
.armory-more h2 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; font-size: 1.05rem; }
.armory-more h2 small { margin-left: auto; color: var(--gold); font-variant-numeric: tabular-nums; }
.armory-more h3 { margin: .8rem 0 .4rem; font-size: .74rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.talent-trees { display: grid; gap: .8rem; }
.talent-tree header { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.talent-tree header img { border-radius: 5px; border: 1px solid #000; }
.talent-tree header b { margin-left: auto; color: var(--gold); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.talent-tree.is-unspent { opacity: .55; }
.talent-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .25rem; }
.talent-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: .5rem; align-items: center; font-size: .86rem; }
.talent-list img { border-radius: 5px; border: 1px solid #000; }
.talent-list b { color: #1eff00; font-variant-numeric: tabular-nums; font-size: .8rem; }
.talent-list b.is-max { color: var(--gold); }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.skill-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: .15rem .5rem; align-items: center; }
.skill-list img { grid-row: 1 / 3; border-radius: 5px; border: 1px solid #000; }
.skill-name { font-weight: 600; font-size: .9rem; }
.skill-rank { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .88rem; }
.skill-rank small { color: var(--muted); font-weight: 400; }
.skill-rank.is-max { color: var(--gold); }
.skill-bar { grid-column: 2 / 4; }
.skill-bar > i { background: linear-gradient(90deg, #3a82e8, #6fc2ff); }
.rep-group { margin-bottom: .4rem; }
.rep-group summary { cursor: pointer; font-weight: 700; font-size: .9rem; padding: .2rem 0; }
.rep-list { list-style: none; margin: .25rem 0 .5rem; padding: 0; display: grid; gap: .35rem; }
.rep-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .5rem; font-size: .84rem; }
.rep-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-standing { color: var(--rc, var(--text-2)); font-weight: 600; font-size: .78rem; }
.rep-bar { grid-column: 1 / -1; height: .35rem; }
.rep-bar > i { background: var(--rc, var(--accent)); }
.rep-s1 { --rc: #cc2222; } .rep-s2 { --rc: #ff3b1f; } .rep-s3 { --rc: #ee6622; } .rep-s4 { --rc: #ffd200; }
.rep-s5 { --rc: #33cc33; } .rep-s6 { --rc: #2ab85c; } .rep-s7 { --rc: #24c5a8; } .rep-s8 { --rc: #1fd3e0; }

@media (max-width: 1100px) {
  .armory { grid-template-columns: minmax(0, 1fr); }
  .armory-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .armory-doll { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .armory-center { grid-column: 1 / -1; grid-row: 1; }
  .armory-more { grid-template-columns: minmax(0, 1fr); }
  .gear-slot.side-right { flex-direction: row; text-align: left; }
  .gear-slot.side-right .gear-slot-text small { justify-content: flex-start; }
  .gear-slot > .item-tip, .gear-slot.side-left > .item-tip, .gear-slot.side-right > .item-tip, .gear-slot.side-bottom > .item-tip {
    position: fixed; left: 50%; right: auto; top: auto; bottom: 12px; transform: translateX(-50%); max-width: calc(100vw - 24px); }
}
@media (max-width: 480px) {
  .armory-doll { grid-template-columns: minmax(0, 1fr); }
}

/* Where a member stands, when there's something to do: under review (open a ticket), or not Verified yet (link Discord) */
.verified-banner { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; border-color: color-mix(in oklab, var(--success, #4be3a3) 45%, transparent); }
.verified-banner > .icon { flex: none; margin-top: .2rem; color: var(--success, #4be3a3); }
.verified-banner h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.verified-banner p { margin: 0 0 .4rem; color: var(--text-2); }
.verified-banner ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .2rem; color: var(--text-2); font-size: .92rem; }
.verified-banner.is-review { border-color: color-mix(in oklab, #ff8000 55%, transparent); }
.verified-banner.is-review > .icon { color: #ff8000; }
.gold-standing.is-underreview { border-color: color-mix(in oklab, #ff8000 55%, transparent); }
.gold-standing.is-verified h2 .icon { color: var(--success, #4be3a3); }
