/* WoW Forever page — builds on /style.css tokens */
:root { --wf-gold: #f5c542; --wf-alli: #4f8cff; --wf-horde: #e0483e; --danger: #f87171; }

/* photos */
.wf-heroes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 720px; margin: 14px auto 18px; }
.wf-heroes img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 10px 30px rgba(0,0,0,0.45); cursor: zoom-in; transition: transform .15s ease; }
.wf-heroes img:hover { transform: translateY(-3px); }
@media (max-width: 600px) { .wf-heroes { gap: 8px; margin: 12px 0 14px; } .wf-heroes img { border-radius: 10px; } }
.wf-lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.wf-lightbox::backdrop { background: rgba(0,0,0,0.85); }
.wf-lightbox img { display: block; max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 14px; cursor: zoom-out; }
.wf-lightbox:focus, .wf-lightbox:focus-visible { outline: none; }

[hidden] { display: none !important; }

/* tabs */
.wf-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.wf-tabs button { flex: 1 1 0; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.wf-tabs button:hover { color: var(--text); }
.wf-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--wf-gold); }

/* inputs */
.wf-panel input[type="search"], .wf-panel input[type="number"], .wf-panel input:not([type]), .wf-panel select, .wf-panel textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px;
}
.wf-panel input:focus, .wf-panel select:focus, .wf-panel textarea:focus { outline: none; border-color: var(--wf-gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.18); }
.wf-panel textarea { resize: vertical; }
.wf-small { font-size: 0.82rem; color: var(--muted); }
.wf-empty { color: var(--muted); margin: 8px 4px; }
.wf-linkbtn { background: none; border: 0; padding: 0; color: var(--accent-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- guide ---------- */
.wf-guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.wf-toc { position: sticky; top: 80px; padding: 12px; max-height: calc(100vh - 100px); overflow-y: auto; }
.wf-toc input { margin-bottom: 10px; }
.wf-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.wf-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.wf-toc a:hover { background: var(--surface-2); color: var(--text); }
.wf-toc a.on { color: var(--text); background: rgba(245, 197, 66, 0.1); }
.wf-toc a span { color: var(--wf-gold); font-family: "Rajdhani", sans-serif; font-weight: 700; min-width: 1.3em; }
.wf-toc li.dim a { opacity: .35; }

.wf-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wf-sec { padding: 20px 22px; scroll-margin-top: 80px; }
.wf-sec h3 { margin: 0 0 10px; font-size: 1.45rem; display: flex; align-items: center; gap: 10px; }
.wf-sec h4 { margin: 20px 0 8px; font-size: 1.02rem; color: var(--wf-gold); font-family: inherit; letter-spacing: 0; }
.wf-sec p { margin: 0 0 10px; line-height: 1.6; }
.wf-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: rgba(245, 197, 66, 0.14); color: var(--wf-gold); font-size: 1rem; }
.wf-lead { font-size: 1.02rem; color: var(--text); background: var(--surface-2); border-left: 3px solid var(--wf-gold); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.wf-tip { background: rgba(46, 230, 166, 0.08); border: 1px solid rgba(46, 230, 166, 0.3); border-radius: 10px; padding: 10px 14px; font-size: 0.94rem; }
.wf-good { color: var(--accent-2); font-weight: 600; }
.wf-new { display: inline-block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 999px; background: rgba(245, 197, 66, 0.16); color: var(--wf-gold); vertical-align: 2px; margin-left: 4px; }
.wf-unsure { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: rgba(248, 113, 113, 0.14); color: #fca5a5; vertical-align: 1px; }
.wf-list { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }
.wf-list li { margin: 4px 0; }
.wf-steps { margin: 0 0 10px; padding-left: 22px; line-height: 1.6; }
.wf-steps li { margin: 6px 0; }
.wf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.wf-facts div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.wf-facts b { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wf-facts span { font-size: 0.94rem; }
.wf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.wf-faction { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); }
.wf-faction b { font-family: "Rajdhani", sans-serif; font-size: 1.25rem; }
.wf-alli { background: linear-gradient(135deg, rgba(79,140,255,.16), transparent); border-color: rgba(79,140,255,.4); }
.wf-alli b, .wf-a { color: #8fb4ff; }
.wf-horde { background: linear-gradient(135deg, rgba(224,72,62,.16), transparent); border-color: rgba(224,72,62,.4); }
.wf-horde b, .wf-h { color: #ff8a80; }

.wf-table-wrap { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--border); border-radius: 10px; }
.wf-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.wf-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); padding: 8px 10px; white-space: nowrap; }
.wf-table td { padding: 8px 10px; border-top: 1px solid var(--border); vertical-align: top; }
.wf-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.wf-dtable td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wf-dtable button { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.wf-dtable button:hover { color: var(--accent-2); }

.wf-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.wf-roles > div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; line-height: 1.5; }
.wf-role { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px; margin: 0 6px 4px 0; }
.wf-tank { background: rgba(79,140,255,.18); color: #8fb4ff; }
.wf-heal { background: rgba(46,230,166,.16); color: #5ff0bd; }
.wf-dps { background: rgba(248,113,113,.16); color: #fca5a5; }

.card-inset { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.wf-quiz { margin: 14px 0; }
.wf-quiz h4 { margin-top: 0; }
.wf-q { margin: 10px 0; }
.wf-q > span { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; }
.wf-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-opts button, .wf-chip { background: var(--surface); border: 1px solid var(--border); color: var(--muted); font: inherit; font-size: 0.86rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.wf-opts button:hover, .wf-chip:hover { color: var(--text); }
.wf-opts button[aria-pressed="true"], .wf-chip[aria-pressed="true"] { background: rgba(245,197,66,.14); border-color: var(--wf-gold); color: var(--text); }
.wf-quiz-out:empty { display: none; }
.wf-quiz-out { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.wf-pick { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.wf-pick b { font-family: "Rajdhani", sans-serif; font-size: 1.15rem; }
.wf-medal { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; background: var(--surface-2); }

.wf-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wf-class { text-align: left; background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--cc); border-radius: 12px; padding: 12px 14px; color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.wf-class:hover { border-color: var(--cc); }
.wf-class[aria-expanded="true"] { grid-column: 1 / -1; cursor: default; }
.wf-class .wf-cname { font-family: "Rajdhani", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--cc); }
.wf-class .wf-cline { font-size: 0.84rem; color: var(--muted); }
.wf-ease { display: inline-flex; gap: 3px; vertical-align: middle; }
.wf-ease i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); display: inline-block; }
.wf-ease i.on { background: var(--accent-2); }
.wf-cdetail { margin-top: 8px; font-size: 0.92rem; line-height: 1.55; cursor: auto; }
.wf-cdetail p { margin: 0 0 8px; }
.wf-cdetail ul { margin: 0 0 8px; padding-left: 18px; }
.wf-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.wf-specs span { background: var(--surface-2); border-radius: 8px; padding: 4px 9px; font-size: 0.84rem; }

.wf-check { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.wf-check li { position: relative; padding: 9px 12px 9px 42px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; line-height: 1.5; font-size: 0.94rem; user-select: none; }
.wf-check li::before { content: ""; position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border); }
.wf-check li.done { color: var(--muted); }
.wf-check li.done::before { background: var(--accent-2); border-color: var(--accent-2); }
.wf-check li.done::after { content: ""; position: absolute; left: 19px; top: 14px; width: 5px; height: 10px; border: solid #0b0d12; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.wf-finder { margin: 12px 0 4px; }
.wf-finder h4 { margin-top: 0; }
.wf-finder-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 8px 0 12px; }
.wf-finder-row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.wf-finder-row input[type="number"] { width: 110px; }
.wf-finder-row select { width: 150px; }
.wf-inline { flex-direction: row !important; align-items: center; gap: 8px !important; padding-bottom: 10px; }
.wf-inline input { width: auto; }
.wf-zgroup { margin: 8px 0; }
.wf-zgroup > b { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.wf-zones { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-zone { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; font-size: 0.88rem; color: var(--text); font-family: inherit; cursor: pointer; text-align: left; }
.wf-zone:hover { border-color: var(--wf-gold); }
.wf-zone small { color: var(--muted); margin-left: 6px; }
.wf-zone.best { border-color: rgba(46,230,166,.55); }

.wf-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.wf-timeline div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 0.88rem; line-height: 1.45; }
.wf-timeline b { display: block; font-family: "Rajdhani", sans-serif; font-size: 1.1rem; color: var(--wf-gold); }
.wf-raids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wf-raids b { font-family: "Rajdhani", sans-serif; font-size: 1.2rem; }
.wf-raids p { font-size: 0.9rem; margin: 6px 0 0; }

.wf-det { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; margin: 8px 0; }
.wf-det summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.wf-det summary::-webkit-details-marker { display: none; }
.wf-det summary::after { content: "+"; color: var(--wf-gold); font-weight: 700; }
.wf-det[open] summary::after { content: "–"; }
.wf-det[open] { padding-bottom: 6px; }

.wf-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; margin: 10px 0; }
.wf-keys div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; font-size: 0.88rem; line-height: 1.8; }
.wf-keys div > kbd:last-of-type { margin-right: 8px; }
kbd { display: inline-block; min-width: 1.6em; text-align: center; font-family: inherit; font-size: 0.78rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; color: var(--text); }
.wf-sec code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 0.86em; }
.wf-suffix { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-bottom: 10px; }
.wf-suffix span { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; font-size: 0.88rem; }
.wf-suffix b { color: #1eff00; margin-right: 6px; font-weight: 600; }
.wf-gloss { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 0.93rem; }
.wf-gloss dt { font-weight: 700; color: var(--wf-gold); }
.wf-gloss dd { margin: 0; color: var(--text); }
.wf-srcs a { color: var(--accent-2); }
.wf-nohit { color: var(--muted); }
mark.wf-hl { background: rgba(245,197,66,.35); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- chat ---------- */
.wf-chat { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.wf-chat-log { display: flex; flex-direction: column; gap: 10px; }
.wf-msg { max-width: 92%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.55; }
.wf-msg p { margin: 0 0 6px; } .wf-msg p:last-child { margin: 0; }
.wf-msg ul { margin: 4px 0 6px; padding-left: 20px; }
.wf-msg li { margin: 2px 0; }
.wf-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-top-left-radius: 4px; }
.wf-me { align-self: flex-end; background: rgba(245, 197, 66, 0.14); border: 1px solid rgba(245, 197, 66, 0.4); border-top-right-radius: 4px; white-space: pre-wrap; }
.wf-thinking { color: var(--muted); font-style: italic; }
.wf-err { color: var(--danger); }
.wf-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-ask { display: flex; gap: 10px; align-items: flex-end; }
.wf-ask textarea { flex: 1; min-height: 52px; }
.wf-ask .btn { flex: none; height: 52px; padding: 0 22px; }
.wf-foot { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* ---------- lookup ---------- */
.wf-toolbar { margin-bottom: 12px; }
.wf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wf-look { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.wf-look .card { padding: 14px; }
.wf-look-list { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.wf-count { font-size: 0.8rem; color: var(--muted); margin: 0 4px 8px; }
.wf-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wf-results button { width: 100%; text-align: left; background: none; border: 1px solid transparent; color: var(--text); font: inherit; padding: 7px 9px; border-radius: 10px; cursor: pointer; }
.wf-results button:hover { background: var(--surface-2); }
.wf-results button[aria-current="true"] { background: rgba(245,197,66,.1); border-color: rgba(245,197,66,.45); }
.wf-rname { font-weight: 600; font-size: 0.95rem; display: block; line-height: 1.25; }
.wf-rsub { display: block; font-size: 0.78rem; color: var(--muted); }
.wf-look-detail { min-height: 200px; }
.wf-look-detail h3 { margin: 0 0 6px; font-size: 1.6rem; }
.wf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wf-tag { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.wf-tag.a { color: #8fb4ff; } .wf-tag.h { color: #ff8a80; }
.wf-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 0.93rem; margin: 0 0 12px; }
.wf-kv dt { color: var(--muted); }
.wf-kv dd { margin: 0; }
.wf-related { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-related button { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; color: var(--text); font: inherit; font-size: 0.86rem; cursor: pointer; }
.wf-related button:hover { border-color: var(--wf-gold); }
.wf-sub { margin: 16px 0 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.wf-wiki { padding: 14px; margin-top: 16px; }
.wf-wiki-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.wf-wiki-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wf-wiki-list a { font-weight: 600; color: var(--accent-2); }
.wf-wiki-list p { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }

/* ---------- questing route ---------- */
.wf-ours { border-color: rgba(224,72,62,.5) !important; background: linear-gradient(135deg, rgba(224,72,62,.14), transparent) !important; }
.wf-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin: 6px 0; }
.wf-names span { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; font-size: 0.88rem; }
.wf-names b { color: #ff8a80; margin-right: 6px; }
.wq-top { padding: 18px 20px; margin-bottom: 14px; }
.wq-top h3 { margin: 0 0 6px; font-size: 1.45rem; }
.wq-top p { margin: 0 0 8px; line-height: 1.55; }
.wq-me { margin: 12px 0 6px; }
.wq-me select { width: 170px; }
.wq-sync { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0 !important; }
.wq-sync a { color: var(--accent-2); }
.wq-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 7px; vertical-align: 1px; }
.wq-dot.on { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.2); }
.wq-dot.off { background: var(--danger); }
.wq-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.wq-step { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.wq-step.here { border-color: rgba(52,211,153,.55); }
.wq-head { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; padding: 12px 16px; cursor: pointer; }
.wq-head:hover { background: rgba(255,255,255,.02); }
.wq-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(224,72,62,.18); color: #ff8a80; font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.05rem; }
.wq-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wq-tt b { font-size: 1.02rem; }
.wq-tt small { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wq-lvs { flex: none; font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--wf-gold); font-variant-numeric: tabular-nums; }
.wq-badge { flex: none; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(52,211,153,.14); color: #6ee7b7; }
.wq-you { flex: none; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: #34d399; color: #062018; }
.wq-body { padding: 0 16px 14px 58px; font-size: 0.94rem; line-height: 1.55; }
.wq-body p { margin: 0 0 8px; }
.wq-start { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
.wq-start b { color: #ff8a80; }
.wq-start p { margin: 4px 0 0; }
.wq-how { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
.wq-pvp { font-size: 0.88rem; color: #fca5a5; }
.wq-pvp b { color: #fca5a5; }
.wq-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wq-acts .btn { padding: 6px 12px; font-size: 0.84rem; border-radius: 8px; }
.wq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wq-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; }
.wq-lv { flex: none; min-width: 28px; text-align: center; font-family: "Rajdhani", sans-serif; font-weight: 700; color: var(--wf-gold); font-size: 1.05rem; line-height: 1.4; }
.wq-list a { color: var(--text); font-weight: 600; }
.wq-list a:hover { color: var(--accent-2); }
.wq-h, .wq-n { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.wq-h { background: rgba(224,72,62,.18); color: #ff8a80; }
.wq-n { background: var(--surface-2); color: var(--muted); }
.wq-obj { font-size: 0.86rem; color: var(--text); opacity: .85; margin-top: 2px; }
.wq-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.wq-fresh { padding: 4px 16px 14px; margin-top: 14px; }
.wq-fresh:empty { display: none; }

/* ---------- map ---------- */
.mp { padding: 12px; }
.mp-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mp-bar .wf-chips { margin: 0; }
.mp-zoom { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mp-btn { width: 34px; height: 32px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.mp-btn:hover { border-color: var(--wf-gold); }
.mp-main { display: flex; flex-direction: column; gap: 12px; }
.mp-side { display: grid !important; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px !important; align-items: start; }
.mp-side > .wf-small { grid-column: 2; margin: -6px 0 0; }
.mp-stage { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: radial-gradient(ellipse at 50% 40%, #13263b 0%, #0b1622 70%, #08111a 100%); }
#mp-svg { display: block; width: 100%; height: auto; aspect-ratio: 684 / 624; max-height: 80vh; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; background: #2a2418; }
#mp-svg:active { cursor: grabbing; }
#mp-svg:not(.is-zone) { background: #88836a; }
.mp-layers { margin: 0 0 10px; }
/* zones drawn over the real map art: territory tint, white outline on hover */
.mz { cursor: pointer; outline: none; }
.mz-a { stroke-width: 1.1; stroke-linejoin: round; transition: fill .15s, stroke .15s, opacity .2s; vector-effect: non-scaling-stroke; }
.mz.f-H .mz-a { fill: rgba(224,72,62,.30); stroke: rgba(255,130,120,.9); }
.mz.f-C .mz-a { fill: rgba(245,197,66,.14); stroke: rgba(250,210,90,.75); }
.mz.f-A .mz-a { fill: rgba(79,140,255,.26); stroke: rgba(140,180,255,.9); stroke-dasharray: 4 3; }
.mz.f-S .mz-a { fill: rgba(167,139,250,.25); stroke: rgba(196,181,253,.8); }
.mz.f-N .mz-a { fill: rgba(52,211,153,.2); stroke: rgba(110,231,183,.85); }
#mp-svg.hide-terr .mz .mz-a { fill: rgba(0,0,0,0); stroke: rgba(255,255,255,.18); stroke-dasharray: none; }
.mz:hover .mz-a, .mz:focus .mz-a { fill: rgba(255,248,225,.36) !important; stroke: #fff !important; stroke-width: 2.2; stroke-dasharray: none; }
.mz.ok .mz-a { stroke: #34d399; stroke-width: 2.6; stroke-dasharray: none; }
.mz.sel .mz-a { stroke: #fff; stroke-width: 2.6; stroke-dasharray: none; }
.mz.dim .mz-a { opacity: .45; }
.mzl { pointer-events: none; transition: opacity .2s; }
.mzl.dim { opacity: .5; }
.mz-n { fill: #fff7e6; font: 700 10.5px Inter, sans-serif; paint-order: stroke; stroke: rgba(20,12,4,.92); stroke-width: 2.6px; stroke-linejoin: round; }
.mz-l { fill: #fcd34d; font: 700 9.5px "Rajdhani", sans-serif; paint-order: stroke; stroke: rgba(20,12,4,.92); stroke-width: 2.4px; }
.mzl.f-A .mz-n { fill: #d6e2ff; }
.mzl.ok .mz-l { fill: #6ee7b7; }
#mp-svg.zsmall .mz-l { display: none; }
.mp-fly { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1; stroke-dasharray: 1.5 2.5; pointer-events: none; vector-effect: non-scaling-stroke; }
.mp-tr { fill: none; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mp-tr.t-zep { stroke: #fb923c; stroke-dasharray: 7 5; }
.mp-tr.t-boat { stroke: #38bdf8; stroke-dasharray: 7 5; }
.mp-tr.t-sky { stroke: #c4b5fd; stroke-dasharray: 3 5; }
.mp-tr.t-walk { stroke: #f3f4f6; stroke-dasharray: 2 4; }
.mp-tr:hover, .mp-out:hover .mp-tr, .mp-trip:hover .mp-tr { stroke-width: 4; }
.mp-trip { cursor: pointer; }
.mp-hit { fill: none; stroke: transparent; stroke-width: 14; vector-effect: non-scaling-stroke; }
.mp-cname { fill: rgba(58,40,14,.55); font: 700 15px "Rajdhani", sans-serif; letter-spacing: 6px; pointer-events: none; }
#mp-svg.z2 .mp-cname { display: none; }
.mp-out { cursor: pointer; }
.mp-out-n { font: 700 8.5px Inter, sans-serif; paint-order: stroke; stroke: rgba(10,8,4,.9); stroke-width: 2.4px; }
.mp-out.t-zep .mp-out-n { fill: #fdba74; } .mp-out.t-boat .mp-out-n { fill: #7dd3fc; } .mp-out.t-sky .mp-out-n { fill: #ddd6fe; }
.mh { cursor: pointer; }
.mh circle, .mh rect { stroke: #1a1206; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.mh.t-cap rect { fill: #ff4d40; }
.mh.t-fp circle { fill: #ff8a80; }
.mh.t-nfp circle { fill: #fcd34d; }
.mh.t-port circle { fill: #38bdf8; }
.mh.t-hub circle { fill: #f3f4f6; }
.mh.sel circle, .mh.sel rect { stroke: #fff; stroke-width: 2.5; }
.mh-n { fill: #fff; font: 600 7px Inter, sans-serif; paint-order: stroke; stroke: rgba(10,8,4,.92); stroke-width: 2.2px; pointer-events: none; display: none; }
.mh-n.cap { display: block; font-weight: 800; font-size: 8px; fill: #ffd9d4; }
#mp-svg.z2 .mh-n { display: block; }
.md { cursor: pointer; }
.md path { fill: #a78bfa; stroke: #1a1206; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.md.raid path { fill: #f472b6; }
.md.sel path { stroke: #fff; stroke-width: 2.5; }
.md-n { fill: #ede9fe; font: 600 6.5px Inter, sans-serif; paint-order: stroke; stroke: rgba(10,8,4,.92); stroke-width: 2px; pointer-events: none; display: none; }
#mp-svg.z3 .md-n { display: block; }
.mr-line { fill: none; stroke: #34d399; stroke-width: 2.4; stroke-opacity: .85; pointer-events: none; vector-effect: non-scaling-stroke; }
.mr-pt { cursor: pointer; }
.mr-pt circle { fill: #065f46; stroke: #34d399; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mr-pt text { fill: #ecfdf5; font: 800 7.5px Inter, sans-serif; pointer-events: none; }
.mr-pt.on circle { fill: #34d399; stroke: #fff; }
.mr-pt.on text { fill: #052e1f; }
#mp-svg.hide-travel .lay-travel, #mp-svg.hide-dung .lay-dung, #mp-svg.hide-route .lay-route { display: none; }
#mp-svg.is-zone { cursor: grab; aspect-ratio: 3 / 2; }
.mp-crumb { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.mp-crumb > * { pointer-events: auto; }
.mp-backbtn { background: rgba(12,14,20,.86); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; font: inherit; font-weight: 600; font-size: 0.9rem; padding: 7px 12px; cursor: pointer; backdrop-filter: blur(4px); }
.mp-backbtn:hover { border-color: var(--wf-gold); }
.mp-crumb-t { display: flex; flex-direction: column; background: rgba(12,14,20,.78); border-radius: 9px; padding: 5px 11px; line-height: 1.25; backdrop-filter: blur(4px); }
.mp-crumb-t b { font-family: "Rajdhani", sans-serif; font-size: 1.1rem; }
.mp-crumb-t span { font-size: 0.78rem; color: #e5e7eb; }
.mp-crumb-t .side-H { color: #ffa39b; } .mp-crumb-t .side-A { color: #a9c4ff; } .mp-crumb-t .side-C { color: #fcd34d; } .mp-crumb-t .side-S { color: #ddd6fe; } .mp-crumb-t .side-N { color: #6ee7b7; }
.mp-tip { position: absolute; z-index: 4; pointer-events: none; background: rgba(12,14,20,.92); border: 1px solid rgba(255,255,255,.2); border-radius: 9px; padding: 7px 10px; font-size: 0.82rem; line-height: 1.35; max-width: 260px; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.mp-tip b { font-size: 0.92rem; }
.mp-tip span { color: #e5e7eb; }
.mp-tip small { color: var(--muted); margin-top: 2px; }
.mp-tip i { font-style: normal; } .mp-tip .side-H { color: #ffa39b; } .mp-tip .side-A { color: #a9c4ff; } .mp-tip .side-C { color: #fcd34d; } .mp-tip .side-N { color: #6ee7b7; } .mp-tip .side-S { color: #ddd6fe; }
.mp-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #e5e7eb; font-size: 0.9rem; background: rgba(10,12,18,.35); pointer-events: none; z-index: 2; }
.mp-hint { position: absolute; left: 10px; bottom: 8px; margin: 0; z-index: 2; font-size: 0.78rem; color: #fff; background: rgba(12,14,20,.7); padding: 4px 9px; border-radius: 8px; pointer-events: none; }
.lg.z-N { background: rgba(52,211,153,.25); border: 1px solid rgba(110,231,183,.8); }
.mp-side { display: flex; flex-direction: column; gap: 10px; }
.mp-info { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.5; min-height: 90px; }
.mp-info h4 { margin: 0 0 6px; font-size: 1.15rem; font-family: "Rajdhani", sans-serif; }
.mp-info p { margin: 0 0 8px; }
.mp-info .wf-zones { margin-bottom: 8px; }
.wf-tag.side-H { color: #ff8a80; } .wf-tag.side-A { color: #8fb4ff; } .wf-tag.side-C { color: var(--wf-gold); } .wf-tag.side-S { color: #c4b5fd; }
.mp-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 0.78rem; color: var(--muted); }
.mp-legend span { display: flex; align-items: center; gap: 6px; }
.lg { display: inline-block; flex: none; width: 14px; height: 10px; border-radius: 3px; }
.lg.z-H { background: rgba(224,72,62,.45); border: 1px solid rgba(255,120,110,.7); }
.lg.z-C { background: rgba(245,197,66,.2); border: 1px solid rgba(245,197,66,.5); }
.lg.z-A { background: rgba(79,140,255,.22); border: 1px dashed rgba(120,165,255,.6); }
.lg.z-S { background: rgba(167,139,250,.3); border: 1px solid rgba(196,181,253,.7); }
.lg.cap { width: 9px; height: 9px; background: #ff6b5e; transform: rotate(45deg); border-radius: 2px; margin: 0 2px; }
.lg.fp { width: 9px; height: 9px; border-radius: 50%; background: #ff8a80; margin: 0 2px; }
.lg.nfp { width: 9px; height: 9px; border-radius: 50%; background: #fcd34d; margin: 0 2px; }
.lg.dung { width: 9px; height: 9px; background: #a78bfa; transform: rotate(45deg); border-radius: 1px; margin: 0 2px; }
.lg.raid { width: 9px; height: 9px; background: #f472b6; transform: rotate(45deg); border-radius: 1px; margin: 0 2px; }
.lg.zep { height: 0; border-top: 2px dashed #fb923c; border-radius: 0; }
.lg.boat { height: 0; border-top: 2px dashed #38bdf8; border-radius: 0; }
.lg.route { height: 0; border-top: 3px solid #34d399; border-radius: 0; }

@media (max-width: 860px) {
  .wf-guide { grid-template-columns: minmax(0, 1fr); }
  .wf-toc { position: static; max-height: none; }
  .wf-toc ol { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .wf-toc a { padding: 4px 9px; font-size: 0.82rem; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; }
  .wf-look { grid-template-columns: minmax(0, 1fr); }
  .wf-look-list { position: static; max-height: 42vh; }
  .mp-side { grid-template-columns: minmax(0, 1fr); }
  .mp-side > .wf-small { grid-column: 1; margin: 0; }
  #mp-svg { max-height: 70vh; }
}
@media (max-width: 600px) {
  .wf-sec { padding: 16px 14px; }
  .wf-sec h3 { font-size: 1.22rem; }
  .wf-two, .wf-roles, .wf-raids { grid-template-columns: minmax(0, 1fr); }
  .wq-body { padding-left: 16px; }
  .wq-head { padding: 11px 12px; gap: 9px; }
  .wq-badge { display: none; }
  .wq-me label { flex: 1 1 140px; }
  .wq-me select, .wq-me input { width: 100% !important; }
  .mp { padding: 8px; }
  .mp-zoom .wf-chip { padding: 5px 10px; font-size: 0.8rem; }
  #mp-svg { aspect-ratio: 4 / 5; max-height: 76vh; }
  .mp-backbtn { padding: 6px 10px; font-size: 0.85rem; }
  .mp-crumb-t b { font-size: 1rem; }
  .mz-n { font-size: 13.5px; } .mz-l { font-size: 12px; }
  .wf-gloss { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wf-gloss dd { margin-bottom: 8px; }
  .wf-msg { max-width: 100%; }
  .wf-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .wf-tabs button { padding: 9px 10px; font-size: 0.9rem; }
}

/* class guides + talent builds */
.cg-chips { margin: 12px 0 6px; }
.cg-chip { display: inline-flex; align-items: center; gap: 7px; }
.cg-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--cc); flex: none; }
.cg-chip[aria-pressed="true"] { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 16%, transparent); }
.cg-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; }
.cg-main { padding: 20px 22px; border-top: 3px solid var(--cc); line-height: 1.55; }
.cg-main h4 { margin: 18px 0 6px; font-size: 1.08rem; }
.cg-main p { margin: 0 0 8px; }
.cg-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.cg-head h3 { margin: 0; font-size: 1.7rem; color: var(--cc); }
.cg-head p { margin: 0; color: var(--muted); }
.cg-side { display: flex; flex-direction: column; gap: 14px; }
.cg-card { padding: 16px 18px; }
.cg-card h4 { margin: 0 0 10px; }
.cg-news, .cg-links { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cg-news a, .cg-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.cg-news a:hover, .cg-links a:hover { color: var(--accent-2); text-decoration: underline; }
.cg-news span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.cg-ab { border-top: 1px solid var(--border); padding: 8px 0; }
.cg-ab summary { cursor: pointer; font-weight: 600; }
.cg-ab summary small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.cg-ab .wf-table { margin-top: 6px; }
.cg-ab td { padding: 5px 8px; }
.cg-lv { width: 34px; color: var(--wf-gold); font-variant-numeric: tabular-nums; font-weight: 700; }

.tb-purp { display: inline-flex; gap: 4px; padding: 4px; margin: 6px 0 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; }
.tb-purp button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.tb-purp button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 -2px 0 var(--wf-gold); }
.tb-intro { margin: 16px 2px 10px; }
.tb-card { padding: 18px 20px; margin-bottom: 14px; border-left: 3px solid var(--cc); line-height: 1.55; }
.tb-card p { margin: 0 0 8px; }
.tb-card h5 { margin: 14px 0 4px; font-size: 0.95rem; }
.tb-card ol { margin: 0 0 8px; padding-left: 22px; }
.tb-card li { margin-bottom: 3px; }
.tb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tb-head h4 { margin: 0; font-size: 1.3rem; }
.tb-head h4 span { color: var(--muted); font-weight: 500; font-size: 1rem; margin-left: 4px; }
.tb-uses { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.tb-uses i { font-style: normal; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(245,197,66,.13); color: var(--wf-gold); }
.tb-pts { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--cc); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-split { display: flex; gap: 3px; margin: 12px 0; height: 26px; border-radius: 7px; overflow: hidden; }
.tb-split span { display: flex; align-items: center; padding: 0 8px; font-size: 0.78rem; white-space: nowrap; overflow: hidden; min-width: 0; color: #fff; }
.tb-split b { margin-right: 4px; }
.tb-s0 { background: color-mix(in srgb, var(--cc) 75%, #000); }
.tb-s1 { background: color-mix(in srgb, var(--cc) 50%, #000); }
.tb-s2 { background: color-mix(in srgb, var(--cc) 32%, #000); }
.tb-note { color: var(--text); font-weight: 600; }
.tb-warn { color: #fbbf24; }
.tb-det { margin: 10px 0 6px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: rgba(0,0,0,.12); }
.tb-det summary { cursor: pointer; font-weight: 600; padding: 2px 0; }
.tb-trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.tb-tree.none { opacity: .55; }
.tb-th { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: 5px; margin-bottom: 6px; }
.tb-th span { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--cc); }
.tb-th small { font-family: inherit; font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.tb-row { display: flex; gap: 4px; align-items: stretch; margin-bottom: 4px; }
.tb-tier { flex: none; width: 20px; font-size: 0.68rem; color: var(--muted); padding-top: 6px; text-align: right; }
.tb-tal { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-size: 0.72rem; line-height: 1.2; color: var(--muted); opacity: .6; }
.tb-tal span { overflow-wrap: break-word; hyphens: auto; }
.tb-tal em { font-style: normal; font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.tb-tal.part, .tb-tal.full { opacity: 1; color: var(--text); border-color: color-mix(in srgb, var(--cc) 60%, transparent); background: color-mix(in srgb, var(--cc) 14%, var(--surface)); }
.tb-tal.full em { color: var(--cc); font-weight: 700; }
.tb-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px !important; }
.tb-links a:not(.btn) { color: var(--accent-2); }
@media (max-width: 900px) { .cg-grid { grid-template-columns: minmax(0, 1fr); } .tb-trees { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .wf-tabs { grid-template-columns: 1fr 1fr 1fr; }
  .wf-tabs button { padding: 9px 4px; font-size: 0.84rem; white-space: normal; }
  .cg-main, .tb-card { padding: 15px 14px; }
  .tb-purp { display: flex; }
  .tb-purp button { flex: 1; padding: 8px 4px; }
  .tb-pts { font-size: 1.3rem; }
  .cg-chip { padding: 5px 10px; font-size: 0.82rem; }
}
@media (max-width: 900px) { .tb-tree.none .tb-row { display: none; } }
@media (min-width: 601px) and (max-width: 940px) { .wf-tabs { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; } .wf-tabs button { white-space: normal; } }

/* professions */
.pf-pick { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.pf-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-lbl { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 92px; }
.pf-head { margin-top: 14px; }
.pf-head .pf-tag { color: var(--text); font-weight: 600; }
.pf-grid { margin-top: 14px; align-items: stretch; }
.pf-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pf-sec { padding: 16px 18px; scroll-margin-top: 80px; }
.pf-sec > h4 { margin: 0 0 10px; font-size: 1.12rem; color: var(--wf-gold); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-sec h5 { margin: 14px 0 6px; font-size: 0.95rem; }
.pf-sec p { margin: 0 0 8px; line-height: 1.55; }
.pf-side { align-self: stretch; }
.pf-nav { position: sticky; top: 76px; }
.pf-nav ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.pf-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.pf-nav a:hover { color: var(--accent-2); }
.pf-route td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-route tr.pf-on td { background: rgba(245,197,66,.12); }
.pf-route tr.pf-on td:first-child { box-shadow: inset 3px 0 0 var(--wf-gold); }
.pf-route tr.pf-done td { opacity: .45; }
.pf-skillrow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.pf-skill { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; }
.pf-skill input { width: 84px !important; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.pf-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; margin-bottom: 8px; }
.pf-shop div { padding: 6px 10px; background: var(--surface-2); border-radius: 8px; font-size: 0.9rem; }
.pf-shop b { color: var(--wf-gold); font-variant-numeric: tabular-nums; margin-right: 4px; }
.pf-q { display: inline-flex; gap: 3px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.82rem; }
.pf-q i { font-style: normal; padding: 0 4px; border-radius: 4px; }
.pf-q .o { color: #ff9b4a; } .pf-q .y { color: #f5d742; } .pf-q .g { color: #5ad16a; } .pf-q .x { color: #8b93a4; }
.pf-q.pf-c-o .o, .pf-q.pf-c-y .y, .pf-q.pf-c-g .g, .pf-q.pf-c-x .x { background: currentColor; }
.pf-q.pf-c-o .o { color: #ff9b4a; box-shadow: 0 0 0 1px #ff9b4a; background: rgba(255,155,74,.18); }
.pf-q.pf-c-y .y { box-shadow: 0 0 0 1px #f5d742; background: rgba(245,215,66,.18); }
.pf-q.pf-c-g .g { box-shadow: 0 0 0 1px #5ad16a; background: rgba(90,209,106,.18); }
.pf-q.pf-c-x .x { box-shadow: 0 0 0 1px #8b93a4; background: rgba(139,147,164,.18); }
.pf-q.pf-c-r { opacity: .55; }
.pf-legend .pf-q { margin-right: 6px; }
.pf-live a, .pf-recipes a { color: var(--text); font-weight: 600; text-decoration: none; }
.pf-live a:hover, .pf-recipes a:hover { color: var(--accent-2); text-decoration: underline; }
.pf-recipes td:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 700; }
.pf-c-ok { color: #5ad16a; } .pf-c-r { color: var(--muted); }
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.pf-filters input[type="search"] { flex: 1 1 220px; width: auto; min-width: 0; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.pf-filters select { width: auto; flex: 0 1 auto; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; max-width: 100%; }
.pf-tog { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pf-card { text-align: left; background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--cc); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.pf-card:hover { border-color: var(--cc); }
.pf-card small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.pf-card span { font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.pf-objs td:nth-child(n+2) { font-size: 0.86rem; }
@media (max-width: 900px) { .pf-side .pf-nav { display: none; } }
@media (max-width: 600px) {
  .pf-lbl { min-width: 100%; }
  .pf-sec { padding: 14px 12px; }
  .pf-route td, .pf-recipes td { padding: 6px 7px; font-size: 0.84rem; }
  .pf-tog { white-space: normal; }
}

/* ================= Rotations tab ================= */
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rt-mode { margin: 0; }
.rt-head { padding: 16px 18px; border-left: 4px solid var(--cc); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; align-items: flex-start; }
.rt-head h3 { margin: 0 0 6px; }
.rt-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.rt-role { font-size: 0.78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle; }
.rt-links { margin: 2px 0 0; font-size: 0.9rem; }
.rt-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.rt-main, .rt-side { display: grid; gap: 14px; align-content: start; }
.rt-card { padding: 16px 18px; }
.rt-card h4 { margin: 0 0 10px; }
.rt-card h5 { margin: 14px 0 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rt-card p { margin: 0 0 6px; }
.rt-sub { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.rt-st { border-top: 3px solid var(--wf-gold); }
.rt-aoe { border-top: 3px solid #f87171; }
.rt-pvp { border-top: 3px solid #a78bfa; }
.rt-tier { color: var(--muted); }
.rt-tier b { color: var(--text); }
.rt-pri { list-style: none; counter-reset: rt; margin: 0; padding: 0; display: grid; gap: 8px; }
.rt-pri li { counter-increment: rt; position: relative; padding: 9px 12px 9px 42px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.rt-pri li::before { content: counter(rt); position: absolute; left: 11px; top: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--wf-gold); }
.rt-btn { color: var(--text); }
.rt-lv { display: inline-block; margin-left: 8px; font-size: 0.72rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; vertical-align: 1px; }
.rt-why { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.rt-open { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rt-open > i { color: var(--muted); font-style: normal; }
.rt-step { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px 4px 5px; font-size: 0.9rem; }
.rt-step em { font-style: normal; font-weight: 700; font-size: 0.75rem; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--wf-gold); color: #1a1206; }
.rt-basis { margin: 12px 2px 0; }
@media (max-width: 940px) { .rt-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .rt-bar .tb-purp { display: flex; width: 100%; } .rt-bar .tb-purp button { flex: 1; padding: 8px 6px; font-size: 0.85rem; } .rt-card { padding: 14px; } .rt-pri li { padding-left: 38px; } }

/* Auction House tab */
.ah-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.ah-mk { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.ah-mk select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; font: inherit; font-size: 0.9rem; }
.ah-card { padding: 16px 18px; }
.ah-card h4 { margin: 0 0 10px; }
.ah-card h5 { margin: 16px 0 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ah-card p { margin: 0 0 8px; }
.ah-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; align-items: start; }
.ah-left, .ah-right { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ah-lbl { display: block; font-weight: 700; margin-bottom: 8px; }
#ah-q { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; }
.ah-res { margin-top: 8px; }
.ah-res:empty { display: none; }
.ah-reslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; }
.ah-reslist button { width: 100%; display: flex; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 11px; color: var(--text); font: inherit; font-size: 0.92rem; cursor: pointer; text-align: left; }
.ah-reslist button:hover { border-color: var(--wf-gold); }
.ah-reslist em { font-style: normal; white-space: nowrap; }
.ah-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.ah-money { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.ah-g { color: #f5c542; } .ah-s { color: #c9d1dc; } .ah-c { color: #d08a52; }
.ah-na { color: var(--muted); font-weight: 400; font-size: 0.88rem; }
.ah-pct { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.ah-low { background: rgba(52,211,153,.14); color: #34d399; }
.ah-high { background: rgba(248,113,113,.14); color: #f87171; }
.ah-mid { background: var(--surface-2); color: var(--muted); }
.ah-conf { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.ah-conf-high { color: #34d399; border-color: rgba(52,211,153,.4); }
.ah-conf-medium { color: var(--wf-gold); border-color: rgba(245,197,66,.4); }
.ah-ih { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ah-ih h4 { margin: 0; font-size: 1.2rem; }
.ah-ih h4 a { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--muted); }
.ah-ih h4 a:hover { color: var(--accent-2); }
.ah-ih .wf-chips { margin: 0; }
.ah-verdict { padding: 9px 12px; border-radius: 10px; font-weight: 600; border-left: 3px solid var(--border); background: var(--surface-2); }
.ah-v-buy { border-left-color: #34d399; }
.ah-v-sell { border-left-color: #f87171; }
.ah-v-mid { border-left-color: var(--wf-gold); font-weight: 500; }
.ah-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.ah-stats > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.ah-stats > div > span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ah-stats > div > b { display: block; font-size: 1.08rem; margin: 3px 0; }
.ah-stats > div > i { display: block; font-style: normal; font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.ah-chart { width: 100%; height: auto; display: block; }
.ah-chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.ah-gl { stroke: var(--border); stroke-dasharray: 3 4; }
.ah-line { fill: none; stroke: var(--wf-gold); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ah-area { fill: rgba(245,197,66,.10); }
.ah-chart circle { fill: var(--wf-gold); }
.ah-days { gap: 4px; }
.ah-days .wf-chip { padding: 4px 10px; font-size: 0.8rem; }
.ah-tbl td { vertical-align: middle; }
.ah-tbl td:not(:first-child) { white-space: nowrap; }
.ah-flip { display: block; font-weight: 400; }
.ah-crafts { display: grid; gap: 6px; }
.ah-craft { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.ah-craft summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; cursor: pointer; }
.ah-craft summary::-webkit-details-marker { display: none; }
.ah-craft[open] summary { border-bottom: 1px solid var(--border); }
.ah-cn b { display: block; }
.ah-cn i, .ah-cp i { display: block; font-style: normal; font-size: 0.78rem; color: var(--muted); }
.ah-cp { text-align: right; }
.ah-trust { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.ah-t-verified { background: rgba(52,211,153,.14); color: #34d399; }
.ah-t-caution { background: rgba(245,197,66,.14); color: var(--wf-gold); }
.ah-mats { padding: 10px 12px; }
.ah-matul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ah-matul li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; }
.ah-how { font-style: normal; font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.ah-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ah-gsec .wf-list { margin-bottom: 4px; }
#ah-g-ours, #ah-g-where, #ah-g-addons, #ah-g-gold, #ah-g-data { grid-column: 1 / -1; }
.ah-src { grid-column: 1 / -1; margin: 0 2px; }
.ah-src a { color: var(--accent-2); }
.ah-load { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ah-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--wf-gold); animation: ah-spin .8s linear infinite; }
@keyframes ah-spin { to { transform: rotate(360deg); } }
.ah-err { border-left: 3px solid var(--danger); }
.ah-stalenote { color: var(--wf-gold); }
#ah-wl .ah-load, #ah-dl .ah-load, #ah-cl .ah-load { padding: 12px 0; background: none; border: 0; box-shadow: none; }
@media (max-width: 940px) { .ah-grid, .ah-guide { grid-template-columns: minmax(0, 1fr); } .ah-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ah-bar .tb-purp { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .ah-bar .tb-purp button { padding: 8px 4px; font-size: 0.82rem; }
  .ah-mk { width: 100%; } .ah-mk select { flex: 1; }
  .ah-card { padding: 14px; }
  .ah-craft summary { grid-template-columns: minmax(0, 1fr) auto; }
  .ah-trust { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .ah-spin { animation: none; } }
@media (min-width: 941px) { .wf-tabs button { padding: 10px 6px; font-size: 0.94rem; } }
@media (min-width: 941px) and (max-width: 1060px) { .wf-tabs { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; } .wf-tabs button { white-space: normal; } }

/* 12 tabs: two rows of six on desktop */
@media (min-width: 941px) { .wf-tabs { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; } .wf-tabs button { white-space: normal; padding: 9px 6px; } }

/* Dungeons & Raids tab */
.dg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dg-bar .tb-purp { margin: 0; }
.dg-f { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.dg-f input[type=number] { width: 70px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 9px; padding: 7px 9px; font: inherit; }
.dg-chk input { accent-color: var(--wf-gold); }
#dg-q { flex: 1 1 220px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font: inherit; }
.dg-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 14px; align-items: start; }
.dg-side { padding: 10px; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.dg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.dg-grp { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px 8px 4px; }
.dg-list button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; text-align: left; background: none; border: 1px solid transparent; border-radius: 9px; padding: 7px 9px; color: var(--text); font: inherit; cursor: pointer; }
.dg-list button:hover { background: var(--surface-2); }
.dg-list button[aria-current="true"] { background: var(--surface-2); border-color: var(--wf-gold); }
.dg-nm { font-weight: 600; font-size: 0.93rem; }
.dg-lvl { font-family: "Rajdhani", sans-serif; font-weight: 700; color: var(--wf-gold); font-variant-numeric: tabular-nums; }
.dg-sub { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); }
.dg-none { padding: 10px; }
.dg-detail { display: grid; gap: 14px; min-width: 0; }
.dg-head { padding: 18px 20px; border-left: 4px solid var(--wf-gold); }
.dg-head h3 { margin: 0 0 8px; font-size: 1.45rem; }
.dg-head p { margin: 10px 0 0; line-height: 1.55; }
.dg-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dg-nav .wf-chip { padding: 4px 11px; font-size: 0.8rem; }
.dg-flag { color: var(--wf-gold); font-weight: 600; }
.dg-sec { padding: 16px 18px; scroll-margin-top: 90px; }
.dg-sec h4 { margin: 0 0 10px; }
.dg-sec p { margin: 0 0 8px; }
.dg-qt td:first-child { font-weight: 600; white-space: nowrap; }
.dg-qt a { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--muted); }
.dg-qt a:hover { color: var(--accent-2); }
.dg-bosses { list-style: none; counter-reset: dg; margin: 0; padding: 0; display: grid; gap: 8px; }
.dg-bosses li { counter-increment: dg; position: relative; padding: 10px 12px 10px 44px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.dg-bosses li::before { content: counter(dg); position: absolute; left: 11px; top: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--wf-gold); }
.dg-bosses.dg-bg li::before { content: "•"; }
.dg-bosses b { display: block; margin-bottom: 2px; }
.dg-bosses p { margin: 4px 0 0; color: var(--muted); font-size: 0.93rem; }
.dg-bosses .dg-how { color: var(--text); }
.dg-how span { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #34d399; margin-right: 8px; }
.dg-fv { margin-top: 10px !important; padding: 9px 12px; background: var(--surface-2); border-left: 3px solid var(--wf-gold); border-radius: 0 10px 10px 0; }
.dg-wq { columns: 2; column-gap: 24px; }
.dg-wq li { break-inside: avoid; }
.dg-loot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.dg-loot details { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; }
.dg-loot summary { cursor: pointer; font-weight: 600; }
.dg-loot ul { margin: 6px 0 2px; padding-left: 18px; font-size: 0.9rem; }
.dg-loot a, .ct-wiki a, .dg-wlink a { color: var(--accent-2); }
.ct-wiki .wf-kv { margin-top: 4px; }
@media (max-width: 940px) {
  .dg-grid { grid-template-columns: minmax(0, 1fr); }
  .dg-side { position: static; max-height: 340px; }
  .dg-loot { grid-template-columns: minmax(0, 1fr); }
  .dg-wq { columns: 1; }
}
@media (max-width: 600px) {
  .dg-bar .tb-purp { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .dg-head, .dg-sec { padding: 14px; }
  .dg-qt td:first-child { white-space: normal; }
  .dg-bosses li { padding-left: 40px; }
}
