/* WoW Hub — гайди з професій. Простий вигляд, як у звичайній документації: без градієнтів, без рамок навколо всього. */
.whpg-page {
	--whpg-bg: #0d0f12;
	--whpg-surface: #14171c;
	--whpg-surface-2: #1a1e24;
	--whpg-line: #262b33;
	--whpg-line-strong: #353c46;
	--whpg-text: #e6e9ee;
	--whpg-soft: #c3cad4;
	--whpg-muted: #98a2b0;
	--whpg-accent: #e7b64c;
	--whpg-link: #f1c96e;
	--whpg-alliance: #3b8eea;
	--whpg-horde: #d8433f;
}

body.whpg-page { background: var(--whpg-bg); color: var(--whpg-text); }
.whpg-page.footer-sliding #Footer { position: static !important; z-index: 1 !important; }
.whpg-page.footer-sliding #Wrapper { margin-bottom: 0 !important; }
/* BeTheme ставить #Wrapper overflow-x: hidden — це робить його контейнером прокрутки, і sticky-колонки не тримаються. clip обрізає так само, але не заважає sticky. */
.whpg-page #Wrapper { overflow-x: clip !important; overflow-y: visible !important; }
.whpg-page *, .whpg-page *::before, .whpg-page *::after { box-sizing: border-box; }

.whpg-shell { width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; color: var(--whpg-text); font-size: 16px; font-weight: 400; line-height: 1.65; }
.whpg-shell a { color: var(--whpg-link); text-decoration: none; }
.whpg-shell a:hover, .whpg-shell a:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: var(--whpg-muted); }
.whpg-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.whpg-layout--toc { grid-template-columns: 220px 200px minmax(0, 1fr); }

/* Бічний список професій */
.whpg-sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding-right: 16px; border-right: 1px solid var(--whpg-line); scrollbar-width: thin; }
.whpg-sidebar__box > summary { display: none; }
.whpg-version { display: flex; gap: 10px; align-items: center; padding: 6px 8px; color: #fff !important; font-size: 17px; font-weight: 700; }
.whpg-version img { width: 28px !important; height: 28px !important; object-fit: contain; }
.whpg-version:hover { text-decoration: none !important; }
.whpg-sidebar__group { margin: 18px 0 6px; padding: 0 8px; color: var(--whpg-muted); font-size: 13px; font-weight: 600; }
.whpg-nav { display: grid; gap: 1px; }
.whpg-nav a { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 4px; color: var(--whpg-soft) !important; font-size: 15px; line-height: 1.3; }
.whpg-nav a:hover, .whpg-nav a:focus-visible { background: var(--whpg-surface-2); color: #fff !important; text-decoration: none !important; }
.whpg-nav a[aria-current="page"] { background: var(--whpg-surface-2); color: var(--whpg-accent) !important; font-weight: 600; }
.whpg-nav img { flex: none; width: 22px !important; height: 22px !important; border-radius: 3px; }

/* «На цій сторінці» */
.whpg-toc { position: sticky; top: 24px; display: grid; padding-left: 14px; border-left: 1px solid var(--whpg-line); }
.whpg-toc__title { margin: 0 0 8px; color: var(--whpg-muted); font-size: 13px; font-weight: 600; }
.whpg-toc a { position: relative; padding: 5px 0; color: var(--whpg-muted) !important; font-size: 14px; line-height: 1.35; }
.whpg-toc a:hover { color: #fff !important; text-decoration: none !important; }
.whpg-toc a[aria-current]::before { position: absolute; top: 4px; bottom: 4px; left: -15px; border-left: 2px solid var(--whpg-accent); content: ""; }
.whpg-toc a[aria-current] { color: #fff !important; }

/* Текст гайду */
.whpg-guide { min-width: 0; max-width: 900px; }
.whpg-guide h1 { margin: 0 0 18px; color: #fff; font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.whpg-lead { color: var(--whpg-soft); }
.whpg-content p { margin: 0 0 14px; color: var(--whpg-soft); }
.whpg-content strong { color: var(--whpg-text); }
.whpg-intro { display: flow-root; }
.whpg-intro__icon { float: left; width: 64px !important; height: 64px !important; margin: 4px 14px 6px 0; border: 1px solid var(--whpg-line-strong); border-radius: 6px; }
.whpg-section { scroll-margin-top: 24px; margin-top: 40px; }
.whpg-section > h2 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--whpg-line-strong); color: #fff; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; }
.whpg-section h3 { margin: 26px 0 10px; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.3; }
.whpg-content ul.whpg-list { margin: 0 0 14px; padding-left: 20px; color: var(--whpg-soft); list-style: disc outside !important; }
.whpg-content ul.whpg-list li { margin: 2px 0; }
.whpg-muted { color: var(--whpg-muted); }

/* Список покупок із позначками */
.whpg-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px 24px; align-items: start; }
.whpg-shop h3 { margin-top: 8px; }
.whpg-check { margin: 0; padding: 0; border: 1px solid var(--whpg-line); border-radius: 6px; list-style: none; overflow: hidden; }
.whpg-check li { margin: 0; border-bottom: 1px solid var(--whpg-line); }
.whpg-check li:last-child { border-bottom: 0; }
.whpg-check label { display: flex; gap: 10px; align-items: center; margin: 0 !important; padding: 7px 10px; color: var(--whpg-text); font-size: 15px; font-weight: 400; line-height: 1.35; cursor: pointer; }
.whpg-check label:hover { background: var(--whpg-surface); }
.whpg-check input { flex: none; width: 16px; height: 16px; margin: 0 !important; accent-color: var(--whpg-accent); }
.whpg-check input:checked ~ span { color: var(--whpg-muted); text-decoration: line-through; }
.whpg-check input:checked ~ span a { color: var(--whpg-muted) !important; }
.whpg-qty { color: var(--whpg-muted); }
.whpg-vendor { color: var(--whpg-muted); font-size: 14px; }

/* Таблиці */
.whpg-table-wrap { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--whpg-line); border-radius: 6px; }
.whpg-table { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.whpg-table th, .whpg-table td { padding: 9px 12px !important; border: 0 !important; border-bottom: 1px solid var(--whpg-line) !important; background: transparent !important; color: var(--whpg-soft); text-align: left !important; vertical-align: top; }
.whpg-table th { background: var(--whpg-surface) !important; color: var(--whpg-text); font-weight: 600; }
.whpg-table tr:last-child td { border-bottom: 0 !important; }
.whpg-table td:first-child { color: var(--whpg-text); }
.whpg-table small { display: block; margin-top: 2px; color: var(--whpg-muted); font-size: 13px; }
.whpg-money { white-space: nowrap; }
.whpg-coin { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 2px; border-radius: 50%; vertical-align: 0; }
.whpg-coin--g { background: #e7b64c; }
.whpg-coin--s { background: #c3cad4; }
.whpg-coin--c { background: #c97b45; }

/* Вкладки фракцій */
.whpg-tabs__nav { display: flex; gap: 4px; margin: 0 0 -1px; }
.whpg-tabs__nav button { position: relative; margin: 0 !important; padding: 8px 16px !important; border: 1px solid transparent !important; border-radius: 6px 6px 0 0 !important; box-shadow: none !important; background: transparent !important; color: var(--whpg-muted) !important; font: inherit; font-size: 15px !important; font-weight: 600 !important; line-height: 1.3 !important; text-transform: none !important; cursor: pointer; }
.whpg-tabs__nav button:hover, .whpg-tabs__nav button:focus-visible { color: #fff !important; }
.whpg-tabs__nav button[aria-selected="true"] { border-color: var(--whpg-line) var(--whpg-line) transparent !important; background: var(--whpg-bg) !important; color: #fff !important; }
.whpg-tabs__nav button[aria-selected="true"]::after { position: absolute; top: -1px; right: -1px; left: -1px; border-top: 2px solid var(--whpg-tab, var(--whpg-accent)); border-radius: 6px 6px 0 0; content: ""; }
.whpg-tab--horde { --whpg-tab: var(--whpg-horde); }
.whpg-tab--alliance { --whpg-tab: var(--whpg-alliance); }
.whpg-tabs__panel { padding-top: 12px; border-top: 1px solid var(--whpg-line); }
.whpg-tabs__panel:has(> .whpg-table-wrap:first-child), .whpg-tabs__panel:has(> .whpg-tabs:first-child) { padding-top: 0; }
.whpg-tabs__panel .whpg-table-wrap { border-top: 0; border-radius: 0 0 6px 6px; }
.whpg-tabs__panel[hidden] { display: none !important; }

/* Кроки прокачки */
.whpg-step { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--whpg-line); }
.whpg-step:not(.whpg-step--alt):last-of-type { border-bottom: 0; }
.whpg-step__range { color: var(--whpg-accent); font-size: 17px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.whpg-step__body > *:last-child { margin-bottom: 0 !important; }
.whpg-step__craft { margin: 0 0 2px !important; color: var(--whpg-text) !important; font-size: 17px; }
.whpg-step__mats { margin: 0 0 8px !important; color: var(--whpg-muted) !important; font-size: 15px; }
.whpg-step--alt { margin: 4px 0; padding: 14px 16px; border: 1px dashed var(--whpg-line-strong); border-radius: 6px; }
.whpg-step--alt .whpg-step__range { color: var(--whpg-muted); font-size: 15px; }

/* Де вчитися далі та примітки */
.whpg-train { margin: 0 0 8px; padding: 14px 16px; border-radius: 6px; background: var(--whpg-surface); }
.whpg-train p:last-child, .whpg-train ul:last-child { margin-bottom: 0 !important; }
.whpg-train__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 24px; }
.whpg-train__cols p { margin-bottom: 4px !important; }
.whpg-note { margin: 0 0 14px; padding: 12px 16px; border-radius: 6px; background: var(--whpg-surface-2); }
.whpg-note > strong { display: block; margin-bottom: 4px; color: var(--whpg-accent); }
.whpg-note p:last-child { margin-bottom: 0; }
.whpg-done { margin-top: 36px; color: var(--whpg-text) !important; font-weight: 600; }

.whpg-code { margin: 0 0 14px; padding: 12px 14px; overflow-x: auto; border: 1px solid var(--whpg-line); border-radius: 6px; background: #0a0c0f; color: var(--whpg-text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; line-height: 1.6; white-space: pre; }
.whpg-code code { padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: inherit; }

.whpg-figure { max-width: 760px; margin: 4px 0 18px; }
.whpg-figure a { display: block; border: 1px solid var(--whpg-line); border-radius: 6px; overflow: hidden; background: #090b0d; }
.whpg-figure img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; margin: 0 !important; }
.whpg-figure figcaption { margin-top: 6px; color: var(--whpg-muted); font-size: 14px; line-height: 1.45; }
.whpg-step__body .whpg-figure, .whpg-tabs__panel .whpg-figure { margin-top: 10px; }

/* Сітка версій / професій */
.whpg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 20px; }
.whpg-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid transparent; border-radius: 6px; background: var(--whpg-surface); color: #fff !important; font-weight: 600; line-height: 1.3; }
.whpg-card:hover, .whpg-card:focus-visible { border-color: var(--whpg-line-strong); text-decoration: none !important; }
.whpg-card img { flex: none; width: 40px !important; height: 40px !important; border-radius: 4px; object-fit: contain; }
.whpg-card small { display: block; margin-top: 2px; color: var(--whpg-muted); font-size: 13px; font-weight: 400; }

/* Джерело внизу */
.whpg-source { margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--whpg-line); color: var(--whpg-muted); font-size: 14px; }
.whpg-source p { margin: 0 0 4px; }

@media (max-width: 1180px) {
	.whpg-layout--toc { grid-template-columns: 210px minmax(0, 1fr); }
	.whpg-toc { position: static; grid-column: 2; padding: 12px 14px; border: 1px solid var(--whpg-line); border-radius: 6px; }
	.whpg-toc a[aria-current]::before { display: none; }
	.whpg-layout--toc .whpg-guide { grid-column: 2; }
	.whpg-layout--toc .whpg-sidebar { grid-row: 1 / span 2; }
}

@media (max-width: 860px) {
	.whpg-shell { width: min(100% - 24px, 760px); padding-top: 16px; }
	.whpg-layout, .whpg-layout--toc { display: block; }
	.whpg-sidebar { position: static; max-height: none; margin-bottom: 14px; padding: 0; overflow: visible; border: 1px solid var(--whpg-line); border-radius: 6px; }
	.whpg-sidebar__box > summary { display: block; padding: 10px 12px; color: #fff; font-weight: 600; cursor: pointer; }
	.whpg-sidebar__box[open] { padding-bottom: 8px; }
	.whpg-sidebar__box[open] > summary { border-bottom: 1px solid var(--whpg-line); }
	.whpg-toc { margin-bottom: 18px; }
}

@media (max-width: 560px) {
	.whpg-shell { width: calc(100% - 16px); }
	.whpg-step { grid-template-columns: 1fr; gap: 2px; }
	.whpg-intro__icon { width: 48px !important; height: 48px !important; }
}
