/* Forever demo planner: existing TheWoWDB surfaces and restrained gold accents. */
.wgf-forever-page .forever-page { max-width: 1200px; margin: 0 auto; }
.forever-hero { padding: 12px 0 0; max-width: 1100px; }
.forever-eyebrow { color: #c5aa72; font-size: 11px; font-weight: 700; letter-spacing: .14em; margin: 0 0 8px; }
.forever-hero h1 { color: var(--wgf-gold, #dfc18b); font-family: var(--font-game, Georgia, serif); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; margin: 0 0 10px; }
.forever-lede { color: #ddd5c5; font-size: 16px; line-height: 1.5; max-width: 1000px; margin: 0 0 9px; }
.forever-hero__facts { color: #b4ad9f; font-size: 12px; line-height: 1.6; margin: 8px 0; }
.forever-disclaimer { padding-left: 13px; border-left: 2px solid #94743d; color: #b9b09f; font-size: 13px; line-height: 1.5; max-width: 1000px; margin: 8px 0; }
.forever-page a { color: #dbb97d; text-underline-offset: 3px; }
.forever-reference, .forever-methodology { border-top: 1px solid #514738; padding: 21px 0; margin-top: 22px; color: #c3bcad; font-size: 14px; line-height: 1.7; }
.forever-reference > summary { color: #e4cfaa; font-size: 18px; cursor: pointer; font-family: var(--font-game, Georgia, serif); }
.forever-reference summary span { font-family: inherit; font-size: 11px; margin-left: 10px; color: #a9a08f; }
.forever-reference__trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.forever-reference__trees h3 { color: #d8c297; font-size: 17px; }
.forever-reference__talent { padding: 10px 0; border-bottom: 1px solid #34322b; }
.forever-reference__talent summary { cursor: pointer; color: #d3cbbb; font-size: 13px; }
.forever-reference__talent ol { padding-left: 20px; font-size: 12px; }
.forever-reference__sources { font-size: 11px; overflow-wrap: anywhere; }
.forever-reference__caution { color: #c7ae81; font-size: 12px; }
.forever-methodology { max-width: 920px; }
.forever-methodology h2 { color: #dbc298; font-family: var(--font-game, Georgia, serif); font-size: 24px; margin: 0 0 16px; }
.forever-methodology p { margin: 14px 0; }
.forever-planner { --ff-gold: var(--wgf-gold, #d4af6a); --ff-muted: var(--wgf-muted, #aaa69e); color: var(--wgf-text, #ebe7df); margin: 18px auto; max-width: 1200px; }
.forever-planner *, .forever-planner *::before, .forever-planner *::after { box-sizing: border-box; }
.forever-planner [hidden] { display: none !important; }
.ff-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border: 1px solid #574b37; border-radius: 10px 10px 0 0; background: #1b1a18; }
.ff-summary { display: flex; flex-direction: column; gap: 4px; }
.ff-count { color: var(--ff-gold); font-size: 25px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ff-split { font-size: 13px; color: var(--ff-muted); }
.ff-actions, .ff-budget-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ff-button, .ff-tab, .ff-rank-button { font: inherit; color: #e6e1d6; cursor: pointer; border: 1px solid #686053; border-radius: 6px; background: #292621; min-height: 44px; padding: 10px 14px; line-height: 1.3; }
.ff-button:hover, .ff-tab:hover { border-color: var(--ff-gold); background: #393226; }
.ff-button--gold, .ff-rank-button--add { color: #191611; background: var(--ff-gold); border-color: var(--ff-gold); font-weight: 700; }
.ff-button--gold:hover, .ff-rank-button--add:hover { background: #e5c283; }
.forever-planner button:focus-visible, .forever-planner a:focus-visible, .forever-planner input:focus-visible, .forever-planner summary:focus-visible { outline: 2px solid #f1cf91; outline-offset: 4px; }
.forever-planner button:disabled { cursor: not-allowed; opacity: .43; }
.ff-budget-details { background: #171715; border: 1px solid #403b31; border-top: 0; border-radius: 0 0 8px 8px; padding: 12px 20px; }
.ff-budget-details summary { color: #cbc3b2; cursor: pointer; font-size: 13px; padding: 4px 0; }
.ff-budget-details p { max-width: 950px; font-size: 13px; line-height: 1.65; }
.ff-budget-form { margin: 16px 0 4px; font-size: 13px; }
.ff-input { min-height: 44px; border: 1px solid #6c604c; border-radius: 5px; background: #101110; color: #eee8dc; font: inherit; padding: 10px 12px; }
.ff-budget-form .ff-input { width: 86px; }
.ff-share-box { padding: 16px 20px; background: #20201b; border: 1px solid #62513a; margin-top: 12px; display: grid; gap: 9px; }
.ff-share-box label { font-weight: 700; }
.ff-share-box .ff-input { width: 100%; font-size: 13px; }
.ff-notice { min-height: 42px; padding: 12px 0; margin: 0; font-size: 13px; line-height: 1.5; color: #cbc4b6; overflow-wrap: anywhere; }
.ff-tabs { display: none; }
.ff-back-tree { display: none; }
.ff-trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ff-tree { border: 1px solid #484235; border-radius: 8px; overflow: hidden; min-width: 0; background: linear-gradient(160deg, #28231bbd, #161716ed 70%), url('/assets/bg/iconbg-class-priest-dcb9b14282.webp') center / cover; }
.ff-tree[data-tree*="shadow"] { background-color: #251c31; }
.ff-tree-head { min-height: 61px; padding: 17px 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: #191916e8; border-bottom: 1px solid #4c4333; }
.ff-tree-head h2 { font-family: var(--font-game, Georgia, serif); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.25; color: var(--ff-gold); margin: 0; }
.ff-tree-count { color: #c3bcad; white-space: nowrap; font-size: 12px; }
.ff-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(var(--ff-rows, 7), 92px); padding: 16px 7px 8px; isolation: isolate; }
.ff-connectors { position: absolute; inset: 16px 7px 8px; width: calc(100% - 14px); height: calc(100% - 24px); z-index: -1; overflow: visible; pointer-events: none; }
.ff-connectors path { fill: none; stroke: #ae9362; stroke-width: 1.8; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .72; }
.ff-node { border: 0; background: transparent; color: #d7d2c7; font: inherit; display: flex; align-items: center; flex-direction: column; justify-content: flex-start; padding: 0 2px; cursor: pointer; min-width: 0; position: relative; }
.ff-node-icon { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #70644b; border-radius: 6px; background: #191a18; box-shadow: 0 3px 9px #0006; margin: 0 0 7px; }
.ff-node-icon img { display: block; border-radius: 5px; width: 40px; height: 40px; object-fit: cover; }
.ff-initial { color: #c2b392; font: 16px var(--font-game, Georgia, serif); }
.ff-node-name { font-size: 11px; line-height: 1.22; max-width: 91px; overflow-wrap: anywhere; text-align: center; }
.ff-node-rank { position: absolute; right: -5px; bottom: -5px; border: 1px solid #6c5d40; border-radius: 3px; padding: 0 3px; color: #d2c9b6; background: #141611; font-size: 10px; line-height: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ff-node:hover .ff-node-icon, .ff-node--selected .ff-node-icon { outline: 2px solid var(--ff-gold); outline-offset: 3px; }
.ff-node--selected .ff-node-name { color: #f6d598; }
.ff-node--allocated .ff-node-icon { border: 2px solid #a9b975; background: #283022; }
.ff-node--allocated .ff-node-rank { color: #cbe79e; border-color: #8b9c60; }
.ff-node--maxed .ff-node-rank { color: #f8dd91; border-color: #c0a761; }
.ff-node--locked .ff-node-icon img { filter: grayscale(.8) brightness(.75); }
.ff-detail { margin-top: 18px; border: 1px solid #756044; border-radius: 8px; padding: 24px; background: #1a1b18; display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr); column-gap: 28px; align-items: start; scroll-margin-top: 80px; }
.ff-detail > h2 { margin: 0; color: #f2d397; font-family: var(--font-game, Georgia, serif); font-size: 25px; line-height: 1.3; }
.ff-detail-meta { color: #bcb6aa; margin: 8px 0 0; font-size: 13px; grid-column: 1; }
.ff-source-status { color: #b1ab9e; margin: 9px 0 0; font-size: 12px; grid-column: 1; }
.ff-rank-controls { display: flex; align-items: center; gap: 15px; margin: 18px 0 8px; grid-column: 1; }
.ff-rank-button { min-width: 48px; height: 44px; padding: 0; font-size: 25px; }
.ff-detail-rank { min-width: 54px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.ff-gate-reason { font-size: 12px; color: #c2b898; line-height: 1.5; grid-column: 1; margin: 4px 0 0; }
.ff-cascade { margin-top: 12px; grid-column: 1; text-align: left; font-size: 12px; }
.ff-rank-text { grid-column: 2; grid-row: 1 / span 6; }
.ff-rank-copy + .ff-rank-copy { margin-top: 19px; padding-top: 14px; border-top: 1px solid #454236; }
.ff-detail h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .055em; color: #d8c9a7; margin: 0 0 8px; }
.ff-rank-copy p { margin: 0 0 8px; font-size: 15px; line-height: 1.7; white-space: pre-line; }
.ff-unknown { color: #b8b1a2; font-style: italic; }
.ff-muted { color: var(--ff-muted); }
.ff-rank-copy small { font-size: 11px; line-height: 1.5; display: block; }
.ff-evidence { grid-column: 1 / -1; border-top: 1px solid #494234; padding-top: 20px; margin-top: 20px; font-size: 12px; line-height: 1.6; }
.ff-evidence p { margin: 8px 0; }
.ff-evidence ul { margin: 10px 0 0; padding-left: 18px; }
.ff-evidence li + li { margin-top: 7px; }
.ff-evidence a { color: #e0bd7b; text-decoration: underline; text-underline-offset: 3px; }
.ff-candidate { color: #dec18e; }
.ff-help { color: #a39d91; font-size: 12px; line-height: 1.6; margin: 15px 0; }
@media (min-width: 1100px) {
  .ff-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 16px; align-items: start; }
  .ff-trees { gap: 10px; }
  .ff-tree-head { padding: 13px 10px; min-height: 52px; }
  .ff-tree-head h2 { font-size: 18px; }
  .ff-tree-count { font-size: 11px; }
  .ff-grid { grid-template-rows: repeat(var(--ff-rows, 7), 92px); padding-left: 4px; padding-right: 4px; }
  .ff-node-name { font-size: 10px; line-height: 1.3; }
  .ff-detail { display: block; position: sticky; top: 100px; margin-top: 0; padding: 18px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; }
  .ff-detail > h2 { font-size: 22px; }
  .ff-detail-meta { font-size: 12px; }
  .ff-rank-text { margin-top: 20px; }
  .ff-rank-copy p { font-size: 14px; line-height: 1.6; }
  .ff-evidence { margin-top: 15px; padding-top: 15px; }
}
@media (max-width: 899px) {
  .wgf-forever-page #chromie-chat-launcher { display: none; }
  .ff-tabs { display: flex; gap: 5px; margin-bottom: 11px; scroll-margin-top: 120px; }
  .ff-back-tree { display: block; margin-bottom: 15px; font-size: 12px; grid-column: 1 / -1; grid-row: 1; }
  .ff-rank-text { grid-row: 2 / span 6; }
  .ff-tab { flex: 1; min-width: 0; font-size: 12px; padding: 10px 5px; }
  .ff-tab[aria-pressed="true"] { color: #211b11; background: var(--ff-gold); border-color: var(--ff-gold); font-weight: 700; }
  .ff-trees { display: block; }
  .ff-tree { display: none; }
  .ff-tree--active { display: block; }
  .ff-grid { max-width: 530px; margin: auto; grid-template-rows: repeat(var(--ff-rows, 7), 87px); }
  .ff-node-name { font-size: 12px; max-width: 110px; }
  .ff-tree-head h2 { font-size: 21px; }
}
@media (max-width: 599px) {
  .forever-reference__trees { display: block; }
  .forever-hero { padding-top: 20px; }
  .forever-lede { font-size: 15px; }
  .forever-planner { margin-top: 16px; }
  .ff-toolbar { padding: 16px; gap: 15px; }
  .ff-count { font-size: 23px; }
  .ff-actions { width: 100%; }
  .ff-actions .ff-button { flex: 1; font-size: 13px; padding: 10px; }
  .ff-budget-details { padding: 10px 16px; }
  .ff-budget-form label { width: 100%; }
  .ff-detail { display: block; padding: 18px; }
  .ff-detail > h2 { font-size: 23px; }
  .ff-rank-text { margin-top: 22px; }
  .ff-rank-copy p { font-size: 14px; }
  .ff-grid { grid-template-rows: repeat(var(--ff-rows, 7), 89px); padding-left: 5px; padding-right: 5px; }
  .ff-node-name { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .forever-planner { scroll-behavior: auto; } }
