/* L2Pearl wiki. Colours and fonts come from the site (site.css); this file only adds what the wiki needs. */
.wiki .veil { opacity: .5; }
.wbar { background: color-mix(in srgb, var(--ink-2) 92%, transparent); border-bottom: 1px solid var(--edge-soft); position: relative; z-index: 30; }
.wbar__top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding-top: 10px; padding-bottom: 8px; }
.wsw { display: flex; gap: 6px; flex-wrap: wrap; }
.wsw a { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--edge); border-radius: 8px; color: var(--muted); text-decoration: none; font-family: "Barlow Condensed", sans-serif; letter-spacing: .04em; }
.wsw a b { font-weight: 600; font-size: 1rem; }
.wsw a small { font-size: .78rem; opacity: .8; }
.wsw a:hover { color: var(--bone); border-color: var(--gold); }
.wsw a[aria-current] { color: #1A1206; background: linear-gradient(180deg, #F1CE7E, #C8923A); border-color: transparent; }
.wsearch { position: relative; flex: 1 1 260px; min-width: 220px; max-width: 560px; margin-inline-start: auto; }
.wsearch input { width: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid var(--edge); color: var(--bone); border-radius: 8px; padding: 9px 12px; font: 500 .95rem "Barlow", sans-serif; }
.wsearch input:focus { outline: none; border-color: var(--gold); }
.wsearch__res { position: absolute; inset-inline: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--edge); border-radius: 8px; max-height: 60vh; overflow: auto; z-index: 40; box-shadow: 0 12px 30px #0009; }
.wsearch__res a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--edge-soft); }
.wsearch__res a:hover, .wsearch__res a.on { background: var(--surface-2); }
.wsearch__res img { width: 28px; height: 28px; border-radius: 4px; flex: none; }
.wsearch__res span { flex: 1; min-width: 0; }
.wsearch__res small { color: var(--faint); font-family: "Barlow Condensed", sans-serif; letter-spacing: .05em; white-space: nowrap; }
.wsearch__res p { margin: 0; padding: 10px; color: var(--faint); }
.wsec { display: flex; gap: 2px; flex-wrap: wrap; padding-bottom: 8px; }
.wsec a { padding: 5px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font: 600 .95rem "Barlow Condensed", sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.wsec a:hover { color: var(--bone); background: rgba(238,233,221,.05); }
.wsec a[aria-current] { color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold); }

.wmain { padding-top: 22px; padding-bottom: 50px; }
.wcrumbs { font: 600 .82rem "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.wcrumbs a { color: var(--muted); text-decoration: none; }
.wcrumbs a:hover { color: var(--gold-2); }
.wcrumbs i { font-style: normal; opacity: .5; margin-inline: 4px; }
.whead { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.whead img { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--gold); box-shadow: 0 0 18px #e2b25a33; image-rendering: pixelated; flex: none; }
.whead h1 { margin: 0; font: 700 clamp(1.5rem, 3.4vw, 2.1rem)/1.15 "Cinzel", Georgia, serif; color: var(--gold-2); }
.whead h1 em { font: 500 .6em "Barlow", sans-serif; color: var(--muted); font-style: normal; }
.wlead { color: var(--muted); margin: 4px 0 0; }
.wchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.wchip { font: 600 .78rem "Barlow Condensed", sans-serif; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--edge); color: var(--muted); }
.wchip--on { color: var(--live, #46D69A); border-color: #46d69a55; }
.wchip--warn { color: #F0A35E; border-color: #f0a35e55; }
.wg { font: 700 .72rem "Barlow Condensed", sans-serif; padding: 1px 6px; border-radius: 4px; margin-inline-start: 6px; vertical-align: 1px; background: #2c3b52; color: #9fc0e6; }
.wg-c { background: #2d4a33; color: #9fdca8; } .wg-b { background: #4a3b24; color: #eec27b; } .wg-a { background: #4a2d2d; color: #f0a0a0; } .wg-s, .wg-s80, .wg-s84 { background: #47305c; color: #d3aef2; }
.wgrid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.wcol { display: grid; gap: 16px; min-width: 0; }
.wcard { background: linear-gradient(180deg, var(--surface), #0c131f); border: 1px solid var(--edge-soft); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.wcard > h2 { margin: 0 0 10px; font: 700 .95rem "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.wcard > h2 small { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--faint); margin-inline-start: 6px; }
.wcard p { margin: 0 0 8px; color: var(--bone); white-space: pre-line; }
.wnote { color: var(--faint); font-size: .85rem; margin-top: 10px; }
.wstats { width: 100%; border-collapse: collapse; }
.wstats td { padding: 5px 0; border-bottom: 1px solid var(--edge-soft); }
.wstats td:first-child { color: var(--muted); }
.wstats td:last-child { text-align: end; font-weight: 600; }
.wscroll { overflow-x: auto; }
table.wlist { width: 100%; border-collapse: collapse; }
table.wlist th { font: 600 .76rem "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-align: start; padding: 6px 8px; border-bottom: 1px solid var(--edge); white-space: nowrap; }
table.wlist td { padding: 6px 8px; border-bottom: 1px solid var(--edge-soft); vertical-align: middle; }
table.wlist tbody tr:hover td { background: #142033aa; }
table.wlist .r { text-align: end; white-space: nowrap; }
table.wlist .c { color: var(--gold-2); font-weight: 600; white-space: nowrap; text-align: end; }
.wit { display: inline-flex; align-items: center; gap: 9px; color: var(--bone); text-decoration: none; min-width: 0; }
a.wit:hover span { color: var(--gold-2); }
.wit img { width: 32px; height: 32px; border-radius: 5px; border: 1px solid var(--edge); flex: none; }
.wit em { font-style: normal; color: var(--muted); font-size: .85em; }
.wmat { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wmat .wit img { width: 24px; height: 24px; }
.wtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wtile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--edge-soft); border-radius: 10px; color: var(--bone); text-decoration: none; }
.wtile:hover { border-color: var(--gold); color: var(--gold-2); }
.wtile small { color: var(--faint); }
.wtile--big { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; }
.wtile--big b { font: 700 1.2rem "Cinzel", serif; color: var(--gold-2); }
.wtile--big span { color: var(--muted); font-size: .9rem; }
.wgroup { margin: 18px 0 8px; font: 700 .95rem "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.wmap { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--edge); background: #181c20; }
.wmap polygon, .wmap circle { fill: rgba(235, 60, 60, .55); stroke: #ffd2c8; }
.wfilter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.wfilter button { background: var(--surface); border: 1px solid var(--edge); color: var(--muted); border-radius: 6px; padding: 5px 11px; font: 600 .85rem "Barlow Condensed", sans-serif; letter-spacing: .06em; cursor: pointer; }
.wfilter button[aria-pressed="true"] { color: #1A1206; background: var(--gold); border-color: var(--gold); }
.wfilter input { background: var(--surface); border: 1px solid var(--edge); color: var(--bone); border-radius: 6px; padding: 6px 10px; font: 500 .9rem "Barlow", sans-serif; min-width: 200px; }
.wart { max-width: 820px; }
.wart h2 { font: 700 1.25rem "Cinzel", serif; color: var(--gold-2); margin: 22px 0 8px; }
.wart ul { padding-inline-start: 20px; } .wart li { margin-bottom: 4px; }
.wskill { display: flex; align-items: flex-start; gap: 9px; }
.wskill img { width: 32px; height: 32px; border-radius: 5px; flex: none; }
.wskill b { font: 600 .98rem "Barlow", sans-serif; color: var(--bone); letter-spacing: 0; }
.wskill small { display: block; color: var(--muted); font: 400 .86rem/1.35 "Barlow", sans-serif; letter-spacing: 0; text-transform: none; }
.whero { text-align: center; padding: 26px 0 18px; }
.whero h1 { margin: 0 0 6px; font: 900 clamp(1.8rem, 5vw, 2.8rem) "Cinzel", serif; color: var(--gold-2); }
.whero p { color: var(--muted); margin: 0 auto; max-width: 640px; }
@media (max-width: 860px) { .wgrid { grid-template-columns: minmax(0, 1fr); } .wsearch { max-width: none; margin-inline-start: 0; } }
.wcardrow { padding: 8px 0; border-bottom: 1px solid var(--edge-soft); }
.wcardrow:last-child { border-bottom: 0; }
.wclass { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.wclass .wcard { align-self: start; }
.wtree, .wtree ul { list-style: none; margin: 0; padding: 0; }
.wtree ul { padding-inline-start: 14px; border-inline-start: 1px solid var(--edge); margin: 3px 0 6px 2px; }
.wtree li { padding: 2px 0; }
.wtree a, .wart a, .wlead a, .wcard p a { color: var(--gold-2); }
table.wlist a:not(.wit), .wcard > div > a { color: var(--bone); }
table.wlist a:not(.wit):hover, .wcard > div > a:hover { color: var(--gold-2); }
.wsteps { margin: 0; padding-inline-start: 20px; }
.wsteps li { margin-bottom: 8px; }
.wshot { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--edge); margin: 8px 0 14px; }
.wskill + .wskill { margin-top: 8px; }
.wart code { color: var(--gold-2); font-size: .95em; }
