/* WoW Hub Forever Guides — same look as the dungeon guides (wowhub-dungeon-guides), own namespace. */
.whfg-page {
	--whfg-bg: #0d0f12;
	--whfg-surface: #15181d;
	--whfg-surface-2: #1b1f25;
	--whfg-border: #2b3139;
	--whfg-border-strong: #3a424d;
	--whfg-text: #eef1f5;
	--whfg-muted: #9da7b5;
	--whfg-accent: #e7b64c;
	--whfg-gold-line: #6d562a;
	--whfg-good: #64c28b;
	--whfg-link: #f1c96e;
	--whfg-alliance: #3b8eea;
	--whfg-horde: #d8433f;
}

body.whfg-page { background: var(--whfg-bg); color: var(--whfg-text); }
.whfg-page.footer-sliding #Footer { position: static !important; z-index: 1 !important; }
.whfg-page.footer-sliding #Wrapper { margin-bottom: 0 !important; }
.whfg-page *, .whfg-page *::before, .whfg-page *::after { box-sizing: border-box; }
.whfg-page a { color: var(--whfg-link); }
.whfg-shell { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 64px; color: var(--whfg-text); font-size: 16px; font-weight: 400; line-height: 1.62; }
.whfg-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.whfg-kicker { margin: 0 0 5px; color: var(--whfg-accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Sidebar */
.whfg-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 106px); overflow: auto; scrollbar-width: thin; }
.whfg-sidebar__box { border: 1px solid var(--whfg-border); background: var(--whfg-surface); }
.whfg-sidebar__box > summary { display: none; }
.whfg-sidebar__inside { padding: 15px; }
.whfg-sidebar h2 { margin: 0 0 12px; color: var(--whfg-text); font-size: 17px; line-height: 1.25; }
.whfg-guide-nav { display: grid; gap: 3px; }
.whfg-guide-nav a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 42px; padding: 5px 7px; border: 1px solid transparent; color: #cbd2dc; font-size: 13px; font-weight: 700; line-height: 1.22; text-decoration: none; }
.whfg-guide-nav a:hover, .whfg-guide-nav a:focus-visible { border-color: var(--whfg-border-strong); background: var(--whfg-surface-2); color: #fff; }
.whfg-guide-nav a[aria-current="page"] { border-color: var(--whfg-gold-line); background: #221d13; }
.whfg-guide-nav img { width: 32px !important; height: 32px !important; border: 1px solid var(--whfg-border-strong); object-fit: cover; }
.whfg-nav-name { grid-column: 2; min-width: 0; color: #fff; }
.whfg-guide-nav a[aria-current="page"] .whfg-nav-name { color: var(--whfg-accent); }
.whfg-nav-name small { display: block; margin-top: 2px; overflow: hidden; color: var(--whfg-muted); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.whfg-archive-link { display: block; margin: 13px 0 15px; padding: 8px 10px; border: 1px solid var(--whfg-border-strong); color: var(--whfg-text) !important; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.whfg-archive-link:hover { border-color: var(--whfg-gold-line); }
.whfg-sidebar__more { display: grid; padding-top: 13px; border-top: 1px solid var(--whfg-border); }
.whfg-sidebar__more a { padding: 4px 0; color: var(--whfg-muted) !important; font-size: 13px; text-decoration: none; }
.whfg-sidebar__more a:hover { color: #fff !important; }

/* Hero, facts, table of contents */
.whfg-guide { min-width: 0; }
.whfg-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); min-height: 275px; border: 1px solid var(--whfg-border-strong); background: var(--whfg-surface); }
.whfg-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 4vw, 48px); }
.whfg-hero__eyebrow { margin: 0 0 15px; color: var(--whfg-accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.whfg-hero h1 { margin: 0; color: #fff; font-size: clamp(29px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.whfg-hero__subtitle { margin: 9px 0 0; color: var(--whfg-muted); font-size: 15px; }
.whfg-hero__intro, .whfg-hero__intro p { margin: 15px 0 0; color: #c7ced7; font-size: 15px; line-height: 1.55; }
.whfg-hero__media { position: relative; min-height: 275px; margin: 0; overflow: hidden; border-left: 1px solid var(--whfg-border-strong); background: #090b0d; isolation: isolate; }
.whfg-hero__media img { position: absolute !important; inset: 0; display: block; width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important; object-fit: cover !important; opacity: .84; }
.whfg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: solid var(--whfg-border); border-width: 0 1px 1px; background: var(--whfg-surface-2); }
.whfg-facts div { min-width: 0; padding: 11px 14px; border-right: 1px solid var(--whfg-border); }
.whfg-facts div:last-child { border-right: 0; }
.whfg-facts span { display: block; margin-bottom: 2px; color: var(--whfg-muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.whfg-facts strong { display: block; color: var(--whfg-text); font-size: 14px; line-height: 1.35; }
.whfg-toc { position: sticky; top: 0; z-index: 10; display: flex; gap: 4px; margin: 14px 0 0; padding: 7px; overflow-x: auto; border: 1px solid var(--whfg-border); background: #111419; }
.whfg-toc a { flex: 0 0 auto; padding: 7px 10px; border: 1px solid transparent; color: var(--whfg-muted) !important; font-size: 12px; font-weight: 800; text-decoration: none; }
.whfg-toc a:hover, .whfg-toc a:focus-visible, .whfg-toc a[aria-current] { border-color: var(--whfg-border-strong); background: var(--whfg-surface-2); color: #fff !important; }

/* Content sections */
.whfg-content { margin-top: 14px; }
.whfg-section { scroll-margin-top: 68px; margin: 0 0 14px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--whfg-border); background: var(--whfg-surface); }
.whfg-section > h2 { margin: 0 0 18px; padding-left: 12px; border-left: 3px solid var(--whfg-accent); color: #fff; font-size: clamp(21px, 2.5vw, 29px); line-height: 1.18; }
.whfg-section h3 { color: #fff; }
.whfg-section p { margin: 0 0 12px; color: #c8cfd8; }
.whfg-section p:last-child { margin-bottom: 0; }
.whfg-section code { display: inline; padding: 1px 6px; border: 1px solid var(--whfg-border-strong); background: #0f1216; color: var(--whfg-text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; white-space: nowrap; }
.whfg-link { color: var(--whfg-link) !important; text-decoration: none !important; }
.whfg-link:hover, .whfg-link:focus-visible { color: #fff !important; text-decoration: underline !important; }
.whfg-callout { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #594827; background: #211c13; }
.whfg-callout > strong { display: block; margin-bottom: 5px; color: var(--whfg-accent); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.whfg-callout p { margin: 0; color: #efe3c7; }
.whfg-callout--good { border-color: #2e5a41; background: #13201a; }
.whfg-callout--good > strong { color: var(--whfg-good); }
.whfg-callout--good p { color: #d5eadd; }
.whfg-section > h3 { margin: 24px 0 12px; font-size: 19px; }
.whfg-tips { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.whfg-tips li { position: relative; margin: 0; padding: 10px 12px 10px 45px; border: 1px solid var(--whfg-border); background: var(--whfg-surface-2); color: #ccd3dc; counter-increment: tip; }
.whfg-tips li::before { position: absolute; top: 9px; left: 11px; width: 23px; height: 23px; border: 1px solid var(--whfg-gold-line); color: var(--whfg-accent); content: counter(tip); font-size: 11px; font-weight: 800; line-height: 21px; text-align: center; }
.whfg-tag { display: inline-block; min-width: 76px; margin-right: 9px; padding: 3px 6px; border: 1px solid var(--whfg-gold-line); color: var(--whfg-accent); font-size: 9px; font-weight: 800; letter-spacing: .04em; line-height: 1.3; text-align: center; text-transform: uppercase; vertical-align: 1px; }

/* Item card */
.whfg-item-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.whfg-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--whfg-border); border-left: 3px solid #4a9eff; background: #10151e; }
.whfg-item > img { flex: none; width: 56px !important; height: 56px !important; margin: 0; border: 1px solid var(--whfg-accent); }
.whfg-item__body { min-width: 0; font-size: 14px; line-height: 1.55; color: var(--whfg-text); }
.whfg-item__name { display: block; margin-bottom: 2px; color: #4a9eff !important; font-size: 18px; font-weight: 800; line-height: 1.3; text-decoration: none !important; }
.whfg-item__name--uncommon { color: #3ccf5a !important; }
.whfg-item__gold { color: var(--whfg-accent); }
.whfg-item__use { margin-top: 7px; color: #6fdc6f; }
.whfg-item__flavor { margin-top: 7px; color: var(--whfg-accent); font-style: italic; }
.whfg-item__price { margin-top: 7px; color: var(--whfg-muted); }
.whfg-coin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; }
.whfg-coin--silver { background: #c3cad4; }
.whfg-coin--copper { background: #c97b45; }
.whfg-item-stack { display: grid; gap: 10px; }

/* Faction tabs */
.whfg-tabs__nav { display: flex; overflow-x: auto; border: 1px solid var(--whfg-border); background: #101318; }
.whfg-tabs__nav button { display: inline-flex; flex: 1 1 0; gap: 8px; align-items: center; justify-content: center; min-height: 46px; margin: 0 !important; padding: 10px 16px !important; border: 0 !important; border-right: 1px solid var(--whfg-border) !important; border-radius: 0 !important; box-shadow: none !important; background: #101318 !important; color: var(--whfg-muted) !important; font: inherit; font-size: 14px !important; font-weight: 800 !important; line-height: 1.2 !important; text-transform: none !important; cursor: pointer; }
.whfg-tabs__nav button:last-child { border-right: 0 !important; }
.whfg-tabs__nav button:hover, .whfg-tabs__nav button:focus-visible { background: #1b2027 !important; color: #fff !important; }
.whfg-tabs__nav button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--whfg-tab-accent, var(--whfg-accent)) !important; background: var(--whfg-surface-2) !important; color: #fff !important; }
.whfg-tabs__nav button small { color: var(--whfg-muted); font-size: 12px; font-weight: 600; }
.whfg-tab--alliance { --whfg-tab-accent: var(--whfg-alliance); }
.whfg-tab--horde { --whfg-tab-accent: var(--whfg-horde); }
.whfg-tabs__panel { padding: 14px; border: solid var(--whfg-border); border-width: 0 1px 1px; background: #15191e; }
.whfg-tabs__panel[hidden] { display: none !important; }

/* Steps */
.whfg-step { margin: 0 0 12px; border: 1px solid var(--whfg-border); background: var(--whfg-surface-2); }
.whfg-step:last-child { margin-bottom: 0; }
.whfg-step__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--whfg-border); }
.whfg-step__num { flex: none; width: 30px; height: 30px; border: 1px solid var(--whfg-gold-line); color: var(--whfg-accent); font-size: 13px; font-weight: 800; line-height: 28px; text-align: center; }
.whfg-step__title { flex: 1 1 220px; min-width: 0; }
.whfg-step__title h3 { margin: 0; color: #fff; font-size: 18px; line-height: 1.25; }
.whfg-step__title p { margin: 2px 0 0 !important; color: var(--whfg-muted) !important; font-size: 13px; }
.whfg-step__way { flex: none; }
.whfg-step__way code { padding: 4px 10px; font-size: 13px; }
.whfg-step__rows { display: grid; margin: 0; padding: 0; list-style: none; }
.whfg-step__rows li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: baseline; margin: 0; padding: 10px 16px; border-bottom: 1px solid #262b33; color: #ccd3dc; }
.whfg-step__rows li:last-child { border-bottom: 0; }
.whfg-step__rows .whfg-tag { min-width: 0; margin: 0; }
.whfg-step__rows li.whfg-step__reward { background: #1d1a12; }
.whfg-step--optional { border-style: dashed; background: transparent; }
.whfg-step--optional .whfg-step__num { border-style: dashed; color: var(--whfg-muted); font-size: 16px; }
.whfg-step__note { margin: 0 !important; padding: 10px 16px; border-top: 1px solid #262b33; color: var(--whfg-muted) !important; font-size: 14px; }

/* Screenshots */
.whfg-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: start; padding: 14px 16px 16px; border-top: 1px solid #262b33; }
.whfg-shot { margin: 0; }
.whfg-shot a { display: block; border: 1px solid var(--whfg-border-strong); background: #090b0d; }
.whfg-shot img { display: block; width: 100% !important; height: auto !important; margin: 0; }
.whfg-shot figcaption { margin-top: 6px; color: var(--whfg-muted); font-size: 13px; font-style: italic; line-height: 1.45; }
.whfg-shot figcaption a { display: inline; border: 0; background: none; }
.whfg-section > .whfg-shot { max-width: 760px; margin: 0 auto; }

/* Footer */
.whfg-guide__footer { display: flex; justify-content: space-between; gap: 20px; padding: 12px 14px; border: 1px solid var(--whfg-border); background: #111419; color: var(--whfg-muted); font-size: 12px; }

/* Archive */
.whfg-archive { width: min(1320px, calc(100% - 32px)); }
.whfg-archive__header { max-width: 780px; padding: 16px 0 30px; }
.whfg-archive__header h1 { margin: 0; color: #fff; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.04em; }
.whfg-archive__header > p:not(.whfg-kicker) { color: #bac3ce; }
.whfg-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.whfg-card { overflow: hidden; border: 1px solid var(--whfg-border); background: var(--whfg-surface-2); }
.whfg-card__media { display: block; height: 170px; background: #090b0d; }
.whfg-card__media img { width: 100% !important; height: 100% !important; object-fit: cover; opacity: .82; transition: opacity .18s ease; }
.whfg-card:hover .whfg-card__media img { opacity: 1; }
.whfg-card__body { padding: 14px; }
.whfg-card__body h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.whfg-card__body h2 a { color: #fff !important; text-decoration: none; }
.whfg-card__body > p { margin: 4px 0 0; color: #b8c2cf; font-size: 13px; }
.whfg-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 11px; padding-top: 8px; border-top: 1px solid var(--whfg-border); color: var(--whfg-muted); font-size: 11px; }
.whfg-empty { padding: 14px; border: 1px dashed var(--whfg-border-strong); color: var(--whfg-muted); }

@media (max-width: 1120px) {
	.whfg-layout { grid-template-columns: 220px minmax(0, 1fr); }
	.whfg-hero { grid-template-columns: 1fr 300px; }
	.whfg-item-row { grid-template-columns: 1fr; }
	.whfg-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.whfg-shell { width: min(100% - 20px, 760px); padding-top: 18px; }
	.whfg-layout { display: block; }
	.whfg-sidebar { position: static; max-height: none; margin-bottom: 10px; overflow: visible; }
	.whfg-sidebar__box > summary { display: block; padding: 11px 13px; cursor: pointer; color: #fff; font-weight: 800; }
	.whfg-sidebar__box:not([open]) .whfg-sidebar__inside { display: none; }
	.whfg-hero { grid-template-columns: 1fr; }
	.whfg-hero__media { order: -1; min-height: clamp(200px, 50vw, 300px); border: 0; border-bottom: 1px solid var(--whfg-border-strong); }
	.whfg-hero__copy { padding: 24px; }
	.whfg-facts div { border-bottom: 1px solid var(--whfg-border); }
}

@media (max-width: 560px) {
	.whfg-shell, .whfg-archive { width: calc(100% - 12px); }
	.whfg-hero h1 { font-size: 31px; }
	.whfg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.whfg-facts div:nth-child(2n) { border-right: 0; }
	.whfg-section { padding: 16px; }
	.whfg-tabs__panel { padding: 10px; }
	.whfg-step__rows li { grid-template-columns: 1fr; gap: 5px; padding: 10px 12px; }
	.whfg-step__rows .whfg-tag { justify-self: start; min-width: 76px; }
	.whfg-step__head { padding: 12px; }
	.whfg-shots { padding: 12px; }
	.whfg-card-grid { grid-template-columns: 1fr; }
	.whfg-guide__footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
	.whfg-page *, .whfg-page *::before, .whfg-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
