/* V2 palette experiment. Only data-v2-theme="charcoal-gold" activates it.
   The original brown palette stays in its existing stylesheets. Item rarity,
   class colors, enchant colors, faction artwork and talent art are untouched. */
html[data-v2-theme="charcoal-gold"] {
  --bg: #111316;
  --panel: #1c1f24;
  --raised: #282c32;
  --text: #e8ebef;
  --muted: #acb4c0;
  --accent: #e2c17d;
  --plan-accent: #e8c784;
  --theme-line: #39424d;
  --theme-input: #14171b;
  --theme-selected: #303133;
  --theme-gold-edge: #a68b55;
  --theme-blue: #73b8f4;
  --theme-red: #ee908a;
  --build-surface: #1c1f24;
  --build-surface-end: #191c21;
  --build-edge: #39424d;
  --build-hover: #282c32;
  --build-hover-edge: #a68b55;
  --build-title: #e8ebef;
  --collection-border: #39424d;
  --collection-title: #e2c17d;
  --collection-muted: #acb4c0;
  --collection-hover: #e2c17d0d;
  --collection-focus: #e2c17d;
  --menu-surface: #23272d;
  --menu-border: #4b5663;
  --menu-text: #e8ebef;
  --menu-hover: #e2c17d17;
  --menu-danger: #eea39d;
  --conversation-divider: #39424d;
  --conversation-hover: #e2c17d12;
  --conversation-name: #e8ebef;
  --conversation-muted: #acb4c0;
  --conversation-avatar-border: #4b5663;
  --conversation-avatar-bg: #282c32;
}
html[data-v2-theme="charcoal-gold"] body {
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
}
html[data-v2-theme="charcoal-gold"] :is(body>header, footer, .product-tabs, .character-gear-hero, .gf-choices-heading) {
  border-color: var(--theme-line);
}
html[data-v2-theme="charcoal-gold"] :is(.brand-wordmark, h1, h2, h3) { color: var(--accent); }
html[data-v2-theme="charcoal-gold"] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) {
  background-color: var(--theme-input);
  border-color: #4b5663;
  color: var(--text);
}
html[data-v2-theme="charcoal-gold"] input::placeholder,
html[data-v2-theme="charcoal-gold"] textarea::placeholder { color: #969fac; opacity: 1; }
html[data-v2-theme="charcoal-gold"] :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
html[data-v2-theme="charcoal-gold"] :is(.profile-bar, form, .planner-account-gate, .armory-setup,
  .armory-planner-bar, .armory-create-entry, .armory-no-build, .gf-setup, .gf-config-panel,
  .gf-slots, .gf-method-details, .gf-empty, .gf-draft-summary) {
  background: var(--panel); border-color: var(--theme-line);
}
html[data-v2-theme="charcoal-gold"] :is(dialog, body dialog#detail, #talent-dialog,
  #gf-review-dialog, .gear-preview-dialog, .character-link-dialog, .build-sharing-dialog) {
  background: var(--panel); color: var(--text); border-color: #65707b;
}
html[data-v2-theme="charcoal-gold"] :is(.dialog-actions, .armory-dialog-heading, .gf-dialog-heading,
  .gf-dialog-footer, .gear-preview-dialog>.gear-preview-heading, #talent-dialog .dialog-actions,
  .section-heading, .gear-header, #gear-panel .gear-header) {
  background: #23272d; border-color: var(--theme-line);
}
html[data-v2-theme="charcoal-gold"] :is(.quiet, button.dialog-dismiss, .gf-use,
  .profile-bar .overview-edit, .profile-bar .weights-shortcut, .profile-bar .profile-build-actions button) {
  background: var(--raised); border-color: #56616e; color: var(--text);
}
html[data-v2-theme="charcoal-gold"] :is(.quiet:hover, button.dialog-dismiss:hover, .gf-use:hover) {
  background: #33383f; border-color: var(--theme-gold-edge);
}
html[data-v2-theme="charcoal-gold"] :is(.loot-record, .wanted-record, .armory-compare-row,
  .gf-slots-heading, .gf-review-row, .armory-disconnect, .armory-existing-link) { border-color: var(--theme-line); }
html[data-v2-theme="charcoal-gold"] :is(.loot-record:hover, .wanted-record:hover) { background: #282c32; }
html[data-v2-theme="charcoal-gold"] :is(.table-columns, .location-table-heading, .armory-compare-heading,
  #find-gear-page .gf-list-legend, .catalog-layout-table .group-header) {
  background: #282c32; border-color: var(--theme-line); color: #c4cbd4;
}
html[data-v2-theme="charcoal-gold"] :is(#items-tabs, #item-explorer #item-explorer-tabs,
  .standalone-talent-classes, #find-gear-page .gf-classes.standalone-talent-classes) {
  background: var(--panel); border-color: var(--theme-line);
}
html[data-v2-theme="charcoal-gold"] :is(.standalone-talent-classes button,
  #find-gear-page .gf-classes button, .gf-slot, .gf-purpose button) { color: #c4cbd4; }
html[data-v2-theme="charcoal-gold"] :is(.standalone-talent-classes button[aria-pressed=true],
  #find-gear-page .gf-classes button[aria-pressed=true], .gf-slot[aria-pressed=true],
  .gf-purpose button[aria-pressed=true], .armory-view-tabs button[aria-pressed=true]) {
  background: var(--theme-selected); color: #f3d79c; border-color: var(--theme-gold-edge);
}
html[data-v2-theme="charcoal-gold"] :is(.armory-equipment-item, .armory-character-choice,
  .character-connect-shell .armory-character-choice) {
  background: var(--panel); border-color: #4b5663;
}
html[data-v2-theme="charcoal-gold"] .character-connect-shell .armory-character-choice:hover {
  background: var(--raised); border-color: var(--accent);
}
html[data-v2-theme="charcoal-gold"] .armory-comparison-summary {
  background: #242a30; border-color: #46505b;
}
html[data-v2-theme="charcoal-gold"] :is(.armory-identity small, .armory-help, .armory-freshness,
  .armory-compare-row p, .armory-item small, .armory-compare-row>div>small,
  .character-connect-disclosure, .character-connect-progress, .character-connect-shell .armory-body>p,
  .home-character-first .home-intro, .home-character-first .home-character-steps p) { color: var(--muted); }
html[data-v2-theme="charcoal-gold"] .armory-item .armory-stats { color: #c5d4a5; }
html[data-v2-theme="charcoal-gold"] .armory-item .armory-enchant { color: #86df70; }
html[data-v2-theme="charcoal-gold"] #find-gear-page :is(.gf-config-panel, .gf-choice) {
  background: var(--panel); border-color: var(--theme-line);
}
html[data-v2-theme="charcoal-gold"] #find-gear-page .gf-choice:nth-of-type(even) { background: #202329; }
html[data-v2-theme="charcoal-gold"] #find-gear-page .gf-choice.is-selected {
  background: #2e3032; border-color: var(--theme-gold-edge);
}
html[data-v2-theme="charcoal-gold"] :is(.gf-choice-meta, .gf-choice-source small,
  .gf-choices-heading p:not(.gf-eyebrow), .gf-limit, .gf-status, .gf-slots-heading>span) { color: var(--muted); }
html[data-v2-theme="charcoal-gold"] #home-page.home-character-first .home-character-steps {
  background: linear-gradient(145deg, #26292ef5, #1c1f24f5); border-color: #4b515a;
}
html[data-v2-theme="charcoal-gold"] .home-character-first .home-character-steps>li+li { border-top-color: var(--theme-line); }
html[data-v2-theme="charcoal-gold"] .home-faction-alliance { color: var(--theme-blue); }
html[data-v2-theme="charcoal-gold"] .home-faction-horde { color: var(--theme-red); }
/* Keep gold actions distinct from Battle.net's blue connection action. */
html[data-v2-theme="charcoal-gold"] #home-page.home-character-first .home-actions>#home-start[data-action=connect] {
  background: linear-gradient(135deg, #0877b6, #075784); border-color: #46a7dc; color: #fff;
}
html[data-v2-theme="charcoal-gold"] :is(#items-tabs, #item-explorer #item-explorer-tabs) #discovery-nav button {
  background: var(--panel); border-color: #4b5663; color: #c4cbd4;
}
html[data-v2-theme="charcoal-gold"] :is(#items-tabs, #item-explorer #item-explorer-tabs) #discovery-nav button.active {
  background: var(--theme-selected); color: #f3d79c;
  border-color: var(--theme-gold-edge); border-bottom-color: var(--accent);
}
html[data-v2-theme="charcoal-gold"] :is(#items-page, #item-explorer) #filters.items-single-editor .items-basic-range select {
  background-color: #292c30; color: #f3d79c; border-color: var(--theme-gold-edge);
}
html[data-v2-theme="charcoal-gold"] :is(#items-page, #item-explorer) #filters.items-single-editor .items-slot-picker>summary {
  background: var(--theme-input); border-color: #4b5663;
}
html[data-v2-theme="charcoal-gold"] :is(#results.catalog-layout-table, [data-wanted-preview-id="results"],
  .standalone-talents-editor, .talent-save-menu-items, .items-slot-menu) { background: var(--panel); border-color: var(--theme-line); }
html[data-v2-theme="charcoal-gold"] :is(.talent-toolbar, main>.data-status) {
  background: #23272d; border-color: var(--theme-line); color: var(--muted);
}
html[data-v2-theme="charcoal-gold"] .wanted-add {
  background: #33383f; color: #f3d79c; box-shadow: inset 0 0 0 1px #a68b55;
}

/* Cool the atmospheric artwork separately so the UI and official icons keep
   their own colors. Brown rollback restores the untouched original hero. */
html[data-v2-theme="charcoal-gold"] .home-page .home-hero::before {
  background: linear-gradient(90deg, #111316f5 0%, #111316bf 43%, #11131673 100%),
    url('hero-landscape-v1.webp') 62% center/cover no-repeat;
  filter: saturate(.2); opacity: .75;
}
html[data-v2-theme="charcoal-gold"] .home-hero-art::before { background: none; }
html[data-v2-theme="charcoal-gold"] body>header .site-nav>#nav-builds { background: #e2c17d08; }
html[data-v2-theme="charcoal-gold"] body>header .site-nav>#nav-builds:is(:hover,[aria-current=page]) { background: #e2c17d14; }
