.rc-tt-text .highlight-green {
  color: #1eff00;
}

.rc-tt-text .highlight-gold {
  color: #ffd100;
}

.rc-tt-text .highlight-lblue {
  color: #69ccf0;
}

.rc-tt-text .highlight-red {
  color: #ff6b6b;
}

/* css/sections.css */
:root {
  --bg-introduction: url('../images/Backgrounds/introduction.webp');
  --bg-playable-content: url('../images/Backgrounds/playable-content.webp');
  --bg-systems-mechanics: url('../images/Backgrounds/systems-mechanics.webp');
}

/* Shared section band. Each section gets its own background,
   with a dark gradient on top so text stays readable. */
.site-section {
  position: relative;
  background-color: #0b0f18;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: #e6e6e6;
  padding: 4rem 1.5rem;
  box-sizing: border-box;
}

.site-column {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

#introduction {
  min-height: 100vh;
  background-image:
    linear-gradient(180deg, rgba(11, 15, 24, .55) 0%, rgba(11, 15, 24, .85) 100%),
    var(--bg-introduction);
}

#playable-content {
  background-image:
    linear-gradient(180deg, rgba(11, 15, 24, .55) 0%, rgba(11, 15, 24, .85) 100%),
    var(--bg-playable-content);
}

#systems-mechanics {
  background-image:
    linear-gradient(180deg, rgba(11, 15, 24, .55) 0%, rgba(11, 15, 24, .85) 100%),
    var(--bg-systems-mechanics);
}


/* ---------- Introduction ---------- */

.intro-title {
  font-size: 4.5rem;
  margin: 0 0 1.5rem;
  text-align: center;
  color: #f0c94a;
}

.intro-vision {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.intro-vision p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.intro-goals-title {
  text-align: center;
  color: #f0c94a;
  font-size: 2rem;
  margin: 0 0 1.5rem;
}

.goal-cards {
  list-style: none;
  margin: 0 0 3rem;

  background-image: url("/images/ui/goal-cards-bg.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;

  padding: 30px;
  box-sizing: border-box;
}

.goal-card {
  padding: 1.25rem;
}

.goal-card h4 {
  margin: 0 0 .5rem;
  color: #f0c94a;
  font-size: 1.3rem;
}

.goal-card p {
  margin: 0;
  line-height: 1.55;
  color: #d6dcea;
}

.intro-guide {
  text-align: center;
}

.intro-guide p {
  margin: 0 0 1rem;
  color: #d6dcea;
}

.intro-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.intro-toc a {
  display: block;
  width: 280px;
  height: 50px;
  box-sizing: border-box;

  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;

}

.intro-toc a:hover {
  border-color: #f0c94a;
  transform: scale(1.01);
  transition: transform 0.3s ease;

}

/* Individual navigation images */
.intro-toc .toc-player-character {
  background-image: url("/images/ui/pcb-btn.webp");
}

.intro-toc .toc-playable-content {
  background-image: url("/images/ui/pc-btn.webp");
}

.intro-toc .toc-systems-mechanics {
  background-image: url("/images/ui/sm-btn.webp");
}

/* ---------- Placeholder headings ---------- */

.section-heading {
  font-size: 3rem;
  text-align: center;
  color: #f0c94a;
  margin: 0;
}

/* ---------- Playable Content subsections ---------- */

.pc-sub {
  padding: 3rem 0;
  border-top: 1px solid rgba(201, 162, 39, .35);
}

.pc-sub:first-of-type {
  border-top: none;
}

.pc-sub-title {
  color: #f0c94a;
  font-size: 2rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.pc-text p,
.pc-prose p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #d6dcea;
  margin: 0 0 1rem;
}

/* Dungeons & Raids: text left, loot sidebar right */
.pc-split {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  align-items: start;
}

.pc-loot {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1rem;

}

.pc-loot-label {
  margin: 0;
  color: #c9a227;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Professions & Economy: centered prose */
.pc-prose {
  max-width: 780px;
  margin: 0 auto;
}

.pc-callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #c9a227;
  border-radius: 6px;
  background: rgba(201, 162, 39, .06);
}

.pc-callout-title {
  margin: 0 0 .5rem;
  color: #f0c94a;
  font-weight: 700;
}

.pc-callout ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #d6dcea;
  line-height: 1.6;
}

/* Zones & Quests: spell cards across the top, text below */
.pc-spell-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

/* Item names used in the text and loot areas */
.pc-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 4px;
  background: rgba(10, 18, 34, 0.8);
  font-weight: 700;
  line-height: 1;
  cursor: default;
  vertical-align: middle;
  width: fit-content;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(214, 201, 156, 0.4);
}

.pc-item:hover {
  border-color: rgba(201, 162, 39, 0.9);
}

.pc-item-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 24px;
  border: 1px solid rgba(201, 162, 39, 0.6);
  border-radius: 3px;
  background: #000;
  object-fit: cover;
}

/* Narrow screens: stack the sidebar under the text */
@media (max-width: 900px) {
  .pc-split {
    grid-template-columns: 1fr;
  }
}

/* ================= PLAYABLE CONTENT: SUBSECTION BACKGROUNDS ================= */

/* Each subsection is its own panel: image, dark overlay, and a gold inset frame.
   Overlays sit on top of the image so text stays readable. */
.pc-sub {
  position: relative;
  isolation: isolate;
  /* keeps the ::before/::after layers inside the panel */
  margin: 2.5rem 0;
  padding: 3rem 2.5rem;
  border: 1px solid var(--pc-line);
  border-top: none;
  /* replaces the divider used by the old layout */
  background-color: #0a0f1c;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Image layer */
.pc-sub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--pc-sub-bg);
  background-size: cover;
  background-position: center;
  opacity: .9;
}

/* Vignette and gradient so panels read as one family */
.pc-sub::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(10, 15, 28, 0) 0%, rgba(10, 15, 28, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.15) 0%, rgba(10, 15, 28, 0.5) 100%);
  pointer-events: none;
}

/* Inset gold frame */
.pc-sub>* {
  position: relative;
}

.pc-dungeons {
  --pc-sub-bg: url("/images/Backgrounds/dungeons-raids.webp");
}

.pc-professions {
  --pc-sub-bg: url("/images/Backgrounds/professions-economy.webp");
}

.pc-zones {
  --pc-sub-bg: url("/images/Backgrounds/zones-quests.webp");
}

/* Keep the existing per-subsection layouts intact */
.pc-dungeons,
.pc-professions,
.pc-zones {
  border-top: 1px solid var(--pc-line);
}

/* Give the aside and rule cards a solid base so they don't blend into the image */
.pc-sub-aside,
.pc-rule,
.pc-spell {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--pc-line);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.pc-spell-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--pc-gold);
  border-radius: 4px;
  background: #000;
}

.pc-spell-body {
  min-width: 0;
}

.pc-spell-meta {
  margin: 0;
  font-size: 1.3rem;
  color: var(--pc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pc-spell-class {
  color: var(--pc-gold);
}

.pc-spell-name {
  margin: 0.15rem 0;
  font-size: 1.35rem;
  color: var(--pc-gold-hi);
}

.pc-spell-stats {
  margin: 0 0 0.4rem !important;
  font-size: 1.15rem;
  color: var(--pc-muted);
}

.pc-spell-desc {
  margin: 0 !important;
  font-size: 1.15rem;
  line-height: 1.55;
}

/* Narrow screens: tighter padding so the panels don't crowd small viewports */
@media (max-width: 800px) {
  .pc-sub {
    padding: 2rem 1.25rem;
    margin: 1.75rem 0;
  }
}

/* ================= PLAYABLE CONTENT: PINNED BACKGROUND ================= */

/* The section no longer pads itself. The layers below handle spacing. */
#playable-content.pc {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
}

/* Stationary background. Sticky keeps it on screen until the section ends. */
.pc-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  /* takes no flow space, so content starts at the section top */
  z-index: 0;
  background-color: #070b14;
  background-image: url("/images/Backgrounds/playable-content.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Overlay so the image sits back behind the panels */
.pc-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(7, 11, 20, 0.7) 0%,
      rgba(7, 11, 20, 0.85) 60%,
      rgba(7, 11, 20, 0.95) 100%);
  pointer-events: none;
}

/* Stationary heading. Sits above the scrolling panels. */
.pc-header {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg,
      rgba(7, 11, 20, 0.92) 0%,
      rgba(7, 11, 20, 0.7) 75%,
      rgba(7, 11, 20, 0) 100%);
}

/* Scrolling content sits above the background and below the heading */
.pc-scroll {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

/* Each subsection is a mini section that takes up roughly a screen */
.pc-sub {
  min-height: 10vh;
  padding: 2.25rem 2rem;
  margin: 0 0 2rem;
}

/* Narrow screens: no minimum height, tighter spacing */
@media (max-width: 800px) {
  .pc-header {
    padding: 1.75rem 1rem 1.25rem;
  }

  .pc-scroll {
    padding: 0.5rem 1rem 3rem;
  }

  .pc-sub {
    min-height: 0;
    margin: 0 0 1.75rem;
  }
}

/* Overlay so the image sits back and the subsection panels stand out */
#playable-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.7) 0%, rgba(7, 11, 20, 0.85) 60%, rgba(7, 11, 20, 0.95) 100%);
  pointer-events: none;
}

#playable-content {
  --pc-main-bg: url("/images/Backgrounds/playable-content.webp");
}

/* Narrow screens: less padding so panels get more width */
@media (max-width: 800px) {
  #playable-content {
    padding: 3rem 1rem;
  }
}

/* Zones & Quests spell cost: match the spell name color, no outline */
.cp-page .cp-spell-cost {
  color: #f0c94a;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* ================= RACIALS SELECTOR ================= */

/* The panel takes the race background. Background is set per race inline. */
.pc-racials {
  padding: 0;
  overflow: hidden;
}

.rc-stage {
  height: 720px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  padding: 2rem 1.75rem 2.25rem;
  background-color: #0a0f1c;
  background-image: linear-gradient(180deg, rgba(10, 15, 28, 0.45) 0%, rgba(10, 15, 28, 0.92) 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--pc-line);
}

.rc-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.45) 0%, rgba(10, 15, 28, 0.92) 100%);
  pointer-events: none;
}

/* Portrait row */
.rc-portraits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  flex: 0 0 auto;
}

.rc-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 112px;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 4px;
  color: var(--pc-muted);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 120ms, color 120ms;
}

.rc-portrait img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.5);
}

.rc-portrait:hover {
  color: var(--pc-text);
  border-color: var(--pc-gold);
}

.rc-portrait.is-active {
  color: var(--pc-gold-hi);
  border-color: var(--pc-gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.35);
}

.rc-portrait.is-active img {
  border-color: var(--pc-gold-hi);
}

/* Race body */
.rc-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.rc-race {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  color: var(--pc-gold-hi);
  letter-spacing: 0.02em;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.rc-lore {
  margin: 0 auto 1.75rem;
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--pc-text);
}

/* Ability icons */
.rc-abilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.rc-ability {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 88px;
  cursor: help;
}

.rc-ability img {
  width: 52px;
  height: 52px;
  border: 2px solid var(--pc-gold);
  border-radius: 4px;
  background: #000;
  transition: transform 120ms, box-shadow 120ms;
  outline: solid;
  outline-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 0 22px rgba(201, 162, 39, 0.5);
}

.rc-ability:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}

.rc-ability-name {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--pc-muted);
}

.rc-ability.is-combat img {
  border-color: #ff6b6b;
}

.rc-ability.is-combat .rc-ability-name {
  color: #ff8a8a;
}

/* Tooltip, styled like the spell tooltips */
.rc-tooltip {
  position: fixed;
  display: none;
  z-index: 10000;
  pointer-events: none;
  max-width: 300px;
  padding: 10px 12px;
  background: rgba(10, 10, 14, 0.96);
  border: 2px solid #8a8a8a;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  color: #e6e6e6;
  font-size: 1.1rem;
  line-height: 1.3;
}

.rc-tt-name {
  font-weight: 700;
  color: #f0c94a;
  margin-bottom: 2px;
}

.rc-tt-type {
  font-size: 0.85rem;
  color: #9d9d9d;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.rc-tt-text {
  color: #e6e6e6;
}

@media (max-width: 800px) {
  .rc-stage {
    padding: 1.5rem 1rem;
  }
}

/* Racials header sits at the top edge of its block, no gap above it */
#racials.pc-sub {
  margin: 0;
  padding-top: 0;
  border: none;
  overflow: visible;
}

#racials .pc-sub-title {
  margin: 0 0 1rem;
  padding-top: 1.5rem;
}

#racials.pc-sub {
  background-color: #16243f85;
  background-image:
    linear-gradient(180deg, rgba(10, 15, 28, 0) 0%, rgba(10, 15, 28, 0.85) 70%),
    url("/images/Backgrounds/racials-bg.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

#racials .pc-lead {
  max-width: 760px;
  margin: 0 auto 1.75rem;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--pc-text);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Smooth race switching: content fades, background crossfades */
.rc-content {
  transition: opacity 150ms ease;
}

.rc-content.is-swapping {
  opacity: 0;
}

.rc-stage {
  transition: background-image 300ms ease;
}

/* ================= SYSTEMS & MECHANICS ================= */

.sm {
  --sm-gold: #c9a227;
  --sm-gold-hi: #f0c94a;
  --sm-text: #e6e1d0;
  --sm-body: #d6dcea;
  --sm-muted: #b8b09a;
  --sm-line: rgba(201, 162, 39, 0.35);
  position: relative;
  isolation: isolate;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--sm-text);
}

/* Stationary background, same pattern as Playable Content */
.sm-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  z-index: 0;
  background-color: #070b14;
  background-image: url("/images/Backgrounds/systems-mechanics-bg.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.sm-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.7) 0%, rgba(7, 11, 20, 0.85) 60%, rgba(7, 11, 20, 0.95) 100%);
  pointer-events: none;
}

.sm-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.7) 75%, rgba(7, 11, 20, 0) 100%);
}

.sm-header .section-title {
  margin: 0;
  color: var(--sm-gold-hi);
}

.sm-scroll {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

/* ---------- Panels: each one its own background ---------- */

.sm-panel {
  position: relative;
  isolation: isolate;
  margin: 0 0 2.5rem;
  padding: 2.75rem 2.5rem;
  border: 1px solid var(--sm-line);
  background-color: #0a0f1c;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.sm-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--sm-panel-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

.sm-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(10, 15, 28, 0) 0%, rgba(10, 15, 28, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.15) 0%, rgba(10, 15, 28, 0.6) 100%);
  pointer-events: none;
}

.sm-dungeon-mods {
  --sm-panel-bg: url("/images/Backgrounds/dungeon-mods-bg.webp");
}

.sm-pvp {
  --sm-panel-bg: url("/images/Backgrounds/pvp-bg.webp");
}

.sm-guilds {
  --sm-panel-bg: url("/images/Backgrounds/guilds-rep-bg.webp");
}

.sm-world {
  --sm-panel-bg: url("/images/Backgrounds/world-interface-bg.webp");
}

.sm-post-raid {
  --sm-panel-bg: url("/images/Backgrounds/post-raid-bg.webp");
}

.sm-panel-title {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  text-align: center;
  color: var(--sm-gold-hi);
}

.sm-sub-title {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.2rem;
  color: var(--sm-gold-hi);
}

.sm-sub-title:first-child {
  margin-top: 0;
}

.sm-prose p,
.sm-panel>p,
.sm-narrative,
.sm-aura-note,
.sm-aura-example {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--sm-body);
  margin: 0 0 1rem;
}

.sm-note {
  color: var(--sm-muted) !important;
  font-size: 1.25rem !important;
}

.sm-key {
  color: var(--sm-gold-hi);
  font-weight: 700;
}

.sm-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--sm-body);
  line-height: 1.65;
}

.sm-list li {
  margin-bottom: 0.4rem;
}

.sm-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  font-size: 1.15rem;
  border: 1px solid var(--sm-gold);
  color: var(--sm-gold-hi);
  vertical-align: middle;
}

.sm-todo {
  color: #ff9b5e;
  font-style: italic;
  background: rgba(255, 155, 94, 0.08);
  padding: 0 0.3rem;
  border: 1px dashed rgba(255, 155, 94, 0.5);
}

/* Two-column split used in several panels */
.sm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
}

.sm-prose {
  min-width: 0;
}

/* Dungeon aura table */
.sm-aura {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--sm-line);
}

.sm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 1.15rem;
}

.sm-table th,
.sm-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--sm-body);
}

.sm-table th {
  color: var(--sm-gold-hi);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sm-aura-example {
  font-size: 1.1rem !important;
}

/* Cards */
.sm-cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sm-cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sm-card {
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(22, 36, 63, 0.85) 0%, rgba(10, 18, 34, 0.9) 100%);
  border: 1px solid var(--sm-line);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.sm-card h5 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--sm-gold-hi);
}

.sm-card p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--sm-body);
}

.sm-card-new {
  border-color: var(--sm-gold);
}

.sm-faction h5 {
  font-size: 1.15rem;
  text-align: center;
}

.sm-faction p {
  text-align: center;
}

/* Narrative blocks */
.sm-narrative {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.sm-tldr {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  text-align: center;
  border: 1px solid var(--sm-gold);
  background: rgba(201, 162, 39, 0.08);
  color: var(--sm-text);
}

/* Narrow screens: stack the columns */
@media (max-width: 900px) {

  .sm-split,
  .sm-cards-2 {
    grid-template-columns: 1fr;
  }

  .sm-panel {
    padding: 2rem 1.25rem;
  }

  .sm-scroll {
    padding: 0.5rem 1rem 3rem;
  }

  .sm-header {
    padding: 1.75rem 1rem 1.25rem;
  }
}

/* ================= CARD BACKGROUNDS ================= */

.sm-list li {
  font-size: 1.2rem;
  line-height: 1.7;
}

.sm-bg-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.sm-bg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--sm-card-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

.sm-bg-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.45) 0%, rgba(10, 15, 28, 0.85) 100%);
  pointer-events: none;
}

/* Cards need a positioning context and clipping for the image layer */
.sm-cards-2 .sm-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Image layer, fills the card */
.sm-cards-2 .sm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--sm-card-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

/* Dark overlay so the text stays readable over the image */
.sm-cards-2 .sm-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.45) 0%, rgba(10, 15, 28, 0.85) 100%);
  pointer-events: none;
}

.sm-bg-warsong {
  --sm-card-bg: url("/images/Backgrounds/battlegrounds/warsong-bg.webp");
}

.sm-bg-alterac {
  --sm-card-bg: url("/images/Backgrounds/battlegrounds/alterac-bg.webp");
}

.sm-bg-arathi {
  --sm-card-bg: url("/images/Backgrounds/battlegrounds/arathi-bg.webp");
}

.sm-bg-azshara {
  --sm-card-bg: url("/images/Backgrounds/battlegrounds/azshara-bg.webp");
}

.sm-bg-silithid {
  --sm-card-bg: url("/images/Backgrounds/battlegrounds/silithid-bg.webp");
}


/* Guilds & Reputations */
.sm-bg-guild-banks {
  --sm-card-bg: url("/images/Backgrounds/guilds/guild-banks-bg.webp");
}

.sm-bg-guild-quests {
  --sm-card-bg: url("/images/Backgrounds/guilds/guild-quests-bg.webp");
}

.sm-bg-guild-rep {
  --sm-card-bg: url("/images/Backgrounds/guilds/guild-rep-bg.webp");
}

.sm-bg-guild-tabards {
  --sm-card-bg: url("/images/Backgrounds/guilds/guild-tabards-bg.webp");
}

/* Post-Raid factions */
.sm-bg-order-light {
  --sm-card-bg: url("/images/Backgrounds/post-raid/order-light-bg.webp");
}

.sm-bg-treespeaker {
  --sm-card-bg: url("/images/Backgrounds/post-raid/treespeaker-bg.webp");
}

/* World buff list */
.sm-buff-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.sm-buff-list li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--sm-line);
  font-size: 1.05rem;
}

.sm-buff-list li:last-child {
  border-bottom: none;
}

.sm-buff-name {
  display: block;
  font-weight: 700;
  color: var(--sm-gold-hi);
  margin-bottom: 0.2rem;
}

.sm-buff-text {
  color: var(--sm-body);
}

.sm-panel .sm-narrative {
  display: block;
  max-width: 780px;
  margin: 0 auto 1rem;
  text-align: center;
}

.pc-mini-title {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  color: #f0c94a;
}

#talents-augments .pc-text p,
#talents-augments .sm-list li {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #d6dcea;
}

.sm-itemization {
  --sm-panel-bg: url("/images/Backgrounds/itemization-bg.webp");
}

.sm-formula {
  font-size: 1.05rem;
}

.pc-tldr {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  text-align: center;
  border: 1px solid #c9a227;
  background: rgba(201, 162, 39, 0.08);
  color: #e6e1d0;
  font-size: 1.1rem;
}

#talents-augments .pc-text p,
#talents-augments .sm-list li {
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ================= TALENTS & AUGMENTS PANEL ================= */

.ta-panel {
  position: relative;
  isolation: isolate;
  margin: 0;
  /* was: margin: 0 0 2rem; */
  padding: 3rem 2.75rem 2.5rem;
  border: 1px solid var(--pc-line);
  background-color: #0a0f1c;
  background-image: url("/images/Backgrounds/talents-augments-bg.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #d6dcea;
}

/* Dark gradient so text stays readable and the panel reads as one piece */
.ta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top, rgba(10, 15, 28, 0.2) 0%, rgba(10, 15, 28, 0.85) 80%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.5) 0%, rgba(10, 15, 28, 0.9) 100%);
  pointer-events: none;
}

.ta-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ta-header .pc-sub-title {
  margin-bottom: 0.4rem;
}

.ta-subtitle {
  margin: 0;
  font-style: italic;
  color: #b8b09a;
  font-size: 1.05rem;
}

/* Two framed columns */
.ta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.ta-col {
  padding: 1.5rem 1.6rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.ta-col p {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d6dcea;
}

.ta-col-title {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  font-size: 1.4rem;
  color: #f0c94a;
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
}

.ta-note {
  color: #b8b09a !important;
  font-style: italic;
}

/* Augment type cards */
.ta-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
}

.ta-type {
  padding: 0.9rem 1.1rem;
  background: linear-gradient(180deg, #16243f 0%, #0a1222 100%);
  border: 1px solid #3a4560;
  border-left: 3px solid #c9a227;
}

.ta-type h5 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #f0c94a;
}

.ta-type p {
  margin: 0 !important;
  font-size: 1rem !important;
}

.ta-type-pinnacle {
  border-left-color: #f0c94a;
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.25);
}

/* Bottom summary line */
.ta-tldr {
  margin: 2rem auto 0;
  max-width: 760px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.15rem;
  color: #e6e1d0;
  border: 1px solid #c9a227;
  background: rgba(201, 162, 39, 0.1);
}

.ta-tldr strong {
  color: #f0c94a;
}

@media (max-width: 900px) {
  .ta-grid {
    grid-template-columns: 1fr;
  }

  .ta-panel {
    padding: 2rem 1.25rem;
  }
}

/* Faction tint on race portrait cards */
.rc-faction-alliance {
  border-color: rgba(60, 130, 255, 0.6);
  background: linear-gradient(180deg, rgba(20, 50, 110, 0.55) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.rc-faction-horde {
  border-color: rgba(220, 50, 50, 0.6);
  background: linear-gradient(180deg, rgba(120, 20, 20, 0.55) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.rc-faction-alliance img {
  border-color: #3c82ff;
}

.rc-faction-horde img {
  border-color: #dc3232;
}

.rc-faction-alliance:hover {
  border-color: #6fa8ff;
}

.rc-faction-horde:hover {
  border-color: #ff6b6b;
}

/* Selected card keeps a stronger glow in its faction color */
.rc-faction-alliance.is-active {
  box-shadow: 0 0 14px rgba(60, 130, 255, 0.6);
  border-color: #6fa8ff;
}

.rc-faction-horde.is-active {
  box-shadow: 0 0 14px rgba(220, 50, 50, 0.6);
  border-color: #ff6b6b;
}

/* Player Character keeps the per-class background from the class page.
   Clip it to this section so the fixed background doesn't bleed into
   the sections above and below it. */
#player-character {
  position: relative;
  clip-path: inset(0);
  padding: 0;
}

#player-character > #talents-augments.ta-panel {
  margin: 0;
  border-top: none;
}

#player-character > #app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#player-character > #racials.pc-sub {
  margin: 0;
}
/* Keep the Talents panel and Racials above the Class Page's fixed backgrounds */
#player-character > #talents-augments.ta-panel {
  position: relative;
  z-index: 2;
}

#player-character > #racials.pc-sub {
  position: relative;
  z-index: 2;
}

/* ---------- Professions & Economy: node variants (3 columns) ---------- */

.pc-variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.pc-variant-col {
  padding: 1.25rem 1.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 6px double rgba(201, 162, 39, 0.4); ;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.pc-variant-title {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #f0c94a;
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
}

.pc-variant-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #1eff00;
}

.pc-variant-tag-new {
  color: #ffd100;
  border-color: rgba(255, 209, 0, 0.6);
}

.pc-variant {
  margin-bottom: 0.9rem;
}

.pc-variant-name {
  display: block;
  font-weight: 700;
  color: #f0c94a;
  margin-bottom: 0.2rem;
}

.pc-variant p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #d6dcea;
}

@media (max-width: 900px) {
  .pc-variants {
    grid-template-columns: 1fr;
  }
}