/* ===========================================================
   Youth Group — SSC & TK Raid Guide
   Wowhead-influenced theme: dark navy, gold + cyan accents,
   tooltip-style cards, class-colored names. Sharp corners.
   =========================================================== */

:root {
  /* Surface — slight blue undertone like Wowhead's modern theme */
  --bg:        #1a1b1d;
  --bg-2:      #1f2124;
  --surface:   #25272a;
  --surface-2: #2c2e32;
  --inset:     #131416;

  /* Lines — thicker and more visible */
  --line:      #3a3d42;
  --line-2:    #4d5158;
  --line-strong: #6a6f78;

  /* Text */
  --fg:        #e8e8e8;
  --fg-2:      #b9bbbf;
  --fg-3:      #888a90;
  --fg-4:      #5a5d63;

  /* Accents */
  --gold:      #ffd100;          /* Wowhead gold — links, headings */
  --gold-2:    #d4a017;          /* darker gold for borders */
  --gold-3:    #8a6a10;          /* deep gold for inset */
  --cyan:      #1eb0e8;          /* hyperlink cyan */
  --cyan-2:    #2dccff;          /* hover cyan */

  /* Status colors — WoW quality colors */
  --epic:      #a335ee;
  --rare:      #0070dd;
  --uncommon:  #1eff00;
  --legendary: #ff8000;
  --poor:      #9d9d9d;

  --danger:    #e85a4f;
  --warn:      #f4a425;
  --ok:        #4ec973;
  --info:      #3b9ddd;

  /* WoW class colors (Wowhead-saturated) */
  --c-warrior: #c79c6e;
  --c-paladin: #f58cba;
  --c-hunter:  #abd473;
  --c-rogue:   #fff569;
  --c-priest:  #ffffff;
  --c-shaman:  #0070de;
  --c-mage:    #69ccf0;
  --c-warlock: #9482c9;
  --c-druid:   #ff7d0a;

  /* Schools / damage types */
  --frost:     #69ccf0;
  --nature:    #abd473;
  --fire:      #ff7d0a;
  --shadow:    #9482c9;
  --arcane:    #ff79f8;
  --holy:      #fff8d8;

  --content:   1100px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 100%),
    var(--bg);
  background-image:
    radial-gradient(ellipse 1200px 500px at 50% -10%, rgba(255, 209, 0, 0.04), transparent 60%),
    radial-gradient(ellipse 800px 400px at 50% 100%, rgba(30, 176, 232, 0.03), transparent 60%);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

::selection { background: var(--gold); color: #000; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-2);
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold);
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.8rem;
  color: var(--gold);
  border-left: 3px solid var(--gold-2);
  padding-left: 0.7rem;
  font-family: "Cinzel", Georgia, serif;
}
h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
}

p { margin: 0.5rem 0 1rem; color: var(--fg); }

a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.12s ease;
}
a:hover {
  color: var(--cyan-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

strong { color: var(--fg); font-weight: 600; }
em { color: var(--gold-2); font-style: italic; }

/* Quality colored words (item names, abilities) */
.epic    { color: var(--epic); font-weight: 600; }
.rare    { color: var(--rare); font-weight: 600; }
.legendary { color: var(--legendary); font-weight: 600; }
.uncommon { color: var(--uncommon); font-weight: 600; }
.spell   { color: var(--gold); font-weight: 600; }
.debuff  { color: var(--danger); font-weight: 600; }

/* ----- Header / Nav ----- */
header.site {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--gold-3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 0 var(--inset), 0 0 30px rgba(0, 0, 0, 0.5);
}
header.site::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
header.site .inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
header.site .brand {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 209, 0, 0.3);
}
header.site .brand small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-top: 3px;
  text-shadow: none;
}
nav.site ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.site a {
  color: var(--fg-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
nav.site a:hover { color: var(--gold); border-bottom-color: var(--gold-3); }
nav.site a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 209, 0, 0.4);
}

/* ----- Hero ----- */
.hero {
  max-width: var(--content);
  margin: 0 auto;
  padding: 4rem 2rem 2.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero .eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero h1 {
  font-size: 3.4rem;
  letter-spacing: 0.01em;
  margin: 0 0 1.2rem;
  text-shadow: 0 0 30px rgba(255, 209, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.5);
}
.hero .lead {
  color: var(--fg-2);
  font-size: 1.05rem;
  max-width: 65ch;
  margin: 0;
  line-height: 1.65;
}

/* ----- Main ----- */
main {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* ----- Cards (Wowhead tooltip-style) ----- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-top: 1px solid var(--line-strong);
  padding: 1.3rem 1.5rem;
  margin: 1.4rem 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.card.gold {
  border-color: var(--gold-2);
  border-top-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 209, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.card.danger { border-left: 3px solid var(--danger); }
.card.warn   { border-left: 3px solid var(--warn); }
.card.ok     { border-left: 3px solid var(--ok); }
.card.info   { border-left: 3px solid var(--info); }
.card h3, .card h4 { margin-top: 0; }

/* ----- Boss section ----- */
.boss {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--gold-3);
  padding: 2rem 2.2rem;
  margin: 2.5rem 0;
  scroll-margin-top: 90px;
  box-shadow: inset 0 1px 0 rgba(255, 209, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.boss-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.boss-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 1px;
  background: var(--gold);
}
.boss-header h2 {
  font-size: 2rem;
  border: none;
  padding: 0;
  margin: 0 0 0.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.boss-header h2::after { display: none; }
.boss-header .meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  font-weight: 500;
}
.boss-header .difficulty {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 0.6rem;
  vertical-align: 0.18em;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid currentColor;
}
.difficulty.easy   { color: var(--uncommon); }
.difficulty.medium { color: var(--gold); }
.difficulty.hard   { color: var(--legendary); }

/* ----- Class chips & player names (Wowhead-style highlighted) ----- */
.chip {
  display: inline-block;
  font-size: 0.8rem;
  padding: 1px 8px;
  border: 1px solid currentColor;
  font-weight: 600;
  margin: 0 1px;
  background: rgba(0, 0, 0, 0.35);
  text-shadow: 0 0 8px currentColor;
}
.chip.warrior { color: var(--c-warrior); }
.chip.paladin { color: var(--c-paladin); }
.chip.hunter  { color: var(--c-hunter); }
.chip.rogue   { color: var(--c-rogue); }
.chip.priest  { color: var(--c-priest); }
.chip.shaman  { color: var(--c-shaman); }
.chip.mage    { color: var(--c-mage); }
.chip.warlock { color: var(--c-warlock); }
.chip.druid   { color: var(--c-druid); }

.player {
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}
.player.warrior { color: var(--c-warrior); }
.player.paladin { color: var(--c-paladin); }
.player.hunter  { color: var(--c-hunter); }
.player.rogue   { color: var(--c-rogue); }
.player.priest  { color: var(--c-priest); }
.player.shaman  { color: var(--c-shaman); }
.player.mage    { color: var(--c-mage); }
.player.warlock { color: var(--c-warlock); }
.player.druid   { color: var(--c-druid); }

/* ----- Mechanics list ----- */
ul.mechanics {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1.3rem;
}
ul.mechanics li {
  padding: 0.6rem 0.9rem 0.6rem 1.6rem;
  background: linear-gradient(90deg, rgba(255, 209, 0, 0.04), transparent 30%);
  border-left: 3px solid var(--gold-3);
  margin-bottom: 4px;
  position: relative;
  color: var(--fg-2);
}
ul.mechanics li::before {
  content: "◆";
  position: absolute;
  left: 0.5rem;
  top: 0.6rem;
  color: var(--gold);
  font-size: 0.7rem;
}
ul.mechanics li strong { color: var(--gold); }
ul.mechanics li.danger { border-left-color: var(--danger); }
ul.mechanics li.danger::before { color: var(--danger); }
ul.mechanics li.warn   { border-left-color: var(--warn); }
ul.mechanics li.warn::before { color: var(--warn); }
ul.mechanics li.frost  { border-left-color: var(--frost); }
ul.mechanics li.frost::before  { color: var(--frost); }
ul.mechanics li.nature { border-left-color: var(--nature); }
ul.mechanics li.nature::before { color: var(--nature); }
ul.mechanics li.shadow { border-left-color: var(--shadow); }
ul.mechanics li.shadow::before { color: var(--shadow); }
ul.mechanics li.fire   { border-left-color: var(--fire); }
ul.mechanics li.fire::before   { color: var(--fire); }

/* ----- Phase blocks ----- */
.phase {
  background: linear-gradient(90deg, var(--inset), transparent);
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1.2rem;
  margin: 1.2rem 0;
}
.phase .phase-header {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ----- Tables ----- */
table.assignments {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  background: var(--inset);
}
table.assignments thead { background: var(--bg-2); }
table.assignments th, table.assignments td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.assignments th {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
  border-bottom: 2px solid var(--gold-3);
  font-family: "Inter", sans-serif;
}
table.assignments tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
table.assignments tbody tr:hover { background: rgba(255, 209, 0, 0.04); }
table.assignments td { color: var(--fg-2); }
table.assignments td:first-child { color: var(--fg); font-weight: 600; }

/* ----- Grid ----- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.2rem; }
  h1 { font-size: 1.9rem; }
  .hero { padding: 2.5rem 1.4rem 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .boss { padding: 1.4rem 1.2rem; }
  .boss-header h2 { font-size: 1.6rem; }
  main { padding: 2rem 1.4rem 4rem; }
  header.site .inner { padding: 0.9rem 1.4rem; }
  nav.site ul { gap: 1rem; }
  nav.site a { font-size: 0.7rem; }
}

/* ----- Roster grid ----- */
.roster {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--gold-3);
  background: var(--inset);
  margin: 1.5rem 0;
}
.roster .group {
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, transparent 100%);
}
.roster .group:last-child { border-right: none; }
.roster .group h4 {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-align: center;
  border-bottom: 1px solid var(--gold-3);
  padding-bottom: 0.4rem;
}
.roster .group ul { list-style: none; margin: 0; padding: 0; }
.roster .group li {
  padding: 0.25rem 0;
  font-size: 0.92rem;
  font-weight: 600;
}
@media (max-width: 1000px) {
  .roster { grid-template-columns: repeat(2, 1fr); }
  .roster .group { border-bottom: 1px solid var(--line); }
  .roster .group:nth-child(odd)  { border-right: 1px solid var(--line); }
  .roster .group:nth-child(even) { border-right: none; }
}

/* ----- Tank cards ----- */
.tank-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--gold-2);
  padding: 1.4rem 1.5rem;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 209, 0, 0.06);
}
.tank-card .role {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-2);
  margin-bottom: 0.6rem;
}
.tank-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
  border-left: none;
  padding-left: 0;
}
.tank-card p {
  margin: 0.3rem 0 0.9rem;
  color: var(--fg-3);
  font-size: 0.88rem;
}
.tank-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.tank-card ul li {
  padding: 0.4rem 0 0.4rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
  font-size: 0.88rem;
  position: relative;
  line-height: 1.5;
}
.tank-card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--gold-2);
  font-size: 0.75rem;
}
.tank-card ul li:last-child { border-bottom: none; }

/* ----- TOC ----- */
.toc {
  background: linear-gradient(180deg, var(--bg-2) 0%, transparent 100%);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--gold-3);
  padding: 1.2rem 1.6rem;
  margin: 2rem 0 2.5rem;
}
.toc h4 {
  margin: 0 0 0.6rem;
  color: var(--gold);
}
.toc ol {
  margin: 0;
  padding-left: 1.6rem;
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  counter-reset: toc;
}
.toc ol li {
  padding: 0.2rem 0;
  counter-increment: toc;
  position: relative;
  color: var(--fg-2);
}
.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: -1.7rem;
  color: var(--gold-2);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  top: 0.32rem;
}
.toc ol li a { color: var(--cyan); font-weight: 500; }
.toc ol li a:hover { color: var(--gold); }
@media (max-width: 700px) { .toc ol { columns: 1; } }

/* ----- Callouts: tooltip-style ----- */
.callout {
  background: linear-gradient(90deg, var(--inset), transparent 70%);
  border-left: 3px solid var(--gold);
  padding: 0.8rem 1.1rem;
  margin: 1.4rem 0;
  font-size: 0.94rem;
  color: var(--fg-2);
}
.callout.danger { border-left-color: var(--danger); background: linear-gradient(90deg, rgba(232, 90, 79, 0.08), transparent 70%); }
.callout.warn   { border-left-color: var(--warn);   background: linear-gradient(90deg, rgba(244, 164, 37, 0.06), transparent 70%); }
.callout.ok     { border-left-color: var(--ok);     background: linear-gradient(90deg, rgba(78, 201, 115, 0.06), transparent 70%); }
.callout.info   { border-left-color: var(--info);   background: linear-gradient(90deg, rgba(59, 157, 221, 0.06), transparent 70%); }
.callout strong { color: var(--gold); }
.callout em { color: var(--cyan); }

/* ----- Footer ----- */
footer.site {
  border-top: 2px solid var(--gold-3);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--fg-3);
  font-size: 0.82rem;
  background: var(--bg-2);
  margin-top: 4rem;
}
footer.site::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
  margin: -2.5rem auto 1.5rem;
  max-width: 80%;
  position: relative;
  top: -1px;
}
footer.site a { color: var(--gold-2); }
footer.site a:hover { color: var(--gold); }

/* ----- Hydross dual-school visual ----- */
.hydross-schools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-2);
  margin: 1.4rem 0;
  background: var(--inset);
}
.school { padding: 1.2rem 1.4rem; }
.school.frost  { border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(105, 204, 240, 0.06), transparent); }
.school.nature { background: linear-gradient(180deg, rgba(171, 212, 115, 0.06), transparent); }
.school h4 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-family: "Cinzel", Georgia, serif;
}
.school.frost h4  { color: var(--frost); }
.school.nature h4 { color: var(--nature); }
.school p { margin: 0.3rem 0 0.6rem; font-size: 0.92rem; color: var(--fg-2); }
.school p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .hydross-schools { grid-template-columns: 1fr; }
  .school.frost { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ----- Phase progression bar ----- */
.phase-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--gold-3);
  background: var(--inset);
}
.phase-bar .seg {
  padding: 0.6rem 0.6rem;
  text-align: center;
  background: transparent;
  border-right: 1px solid var(--line);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 600;
}
.phase-bar .seg:last-child { border-right: none; }
.phase-bar .seg.active {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #000;
  font-weight: 700;
  text-shadow: none;
}

/* ----- Anchor jump pills ----- */
a.anchor-jump {
  display: inline-block;
  margin: 0 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold-3);
  background: var(--bg-2);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--fg-2);
  text-decoration: none;
  font-weight: 500;
}
a.anchor-jump:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--surface);
}

/* Lists inside cards/general content */
ul:not(.mechanics):not([class]) {
  padding-left: 1.4rem;
  list-style: none;
}
ul:not(.mechanics):not([class]) li {
  padding: 0.18rem 0 0.18rem 0.6rem;
  color: var(--fg-2);
  position: relative;
}
ul:not(.mechanics):not([class]) li::before {
  content: "•";
  position: absolute;
  left: -0.6rem;
  color: var(--gold-2);
  font-weight: 700;
}

ol:not([class]) li { padding: 0.2rem 0; color: var(--fg-2); }

.label {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-2);
  border: 1px solid var(--gold-3);
  padding: 1px 6px;
  font-weight: 600;
  background: var(--inset);
}

/* ===========================================================
   POSITIONING DIAGRAMS (SVG)
   =========================================================== */
.positioning {
  background:
    repeating-linear-gradient(0deg, rgba(255, 209, 0, 0.025) 0px, rgba(255, 209, 0, 0.025) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(90deg, rgba(255, 209, 0, 0.025) 0px, rgba(255, 209, 0, 0.025) 1px, transparent 1px, transparent 30px),
    linear-gradient(180deg, var(--inset) 0%, var(--bg) 100%);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--gold-3);
  padding: 1rem 1rem 0.5rem;
  margin: 1.5rem 0;
  position: relative;
}
.positioning .pos-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-weight: 700;
  text-align: center;
}
.positioning svg {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 800px;
}
.positioning .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  justify-content: center;
  padding: 0.7rem 0.4rem 0.5rem;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--fg-2);
}
.positioning .legend .item { display: flex; align-items: center; gap: 0.4rem; }
.positioning .legend .swatch {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.positioning .legend .swatch.tank   { background: #c0392b; }
.positioning .legend .swatch.ot     { background: #d4a017; }
.positioning .legend .swatch.melee  { background: #e67e22; border-radius: 50%; }
.positioning .legend .swatch.ranged { background: #16a085; border-radius: 50%; }
.positioning .legend .swatch.healer { background: #ecf0f1; border-radius: 50%; }
.positioning .legend .swatch.boss   { background: var(--epic); }
.positioning .legend .swatch.danger { background: var(--danger); }
.positioning .legend .swatch.add    { background: var(--c-druid); border-radius: 50%; }

/* SVG color tokens (used inline) */
.diagram-bg          { fill: #1a1d24; }
.diagram-zone        { fill: #232831; stroke: var(--line-2); stroke-width: 1; }
.diagram-zone-frost  { fill: rgba(105, 204, 240, 0.10); stroke: var(--frost); stroke-width: 1.5; stroke-dasharray: 4 3; }
.diagram-zone-nature { fill: rgba(171, 212, 115, 0.10); stroke: var(--nature); stroke-width: 1.5; stroke-dasharray: 4 3; }
.diagram-line        { stroke: var(--gold-3); stroke-width: 1.5; fill: none; }
.diagram-divider     { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 3; }
.diagram-arrow       { stroke: var(--cyan); stroke-width: 2; fill: none; marker-end: url(#arrow); }
.diagram-danger      { fill: rgba(232, 90, 79, 0.18); stroke: var(--danger); stroke-width: 1.5; stroke-dasharray: 3 2; }
.diagram-platform    { fill: #2a3038; stroke: var(--gold-3); stroke-width: 2; }

.tok-boss   { fill: var(--epic); stroke: #fff; stroke-width: 1.5; }
.tok-tank   { fill: #c0392b; stroke: #fff; stroke-width: 1; }
.tok-ot     { fill: #d4a017; stroke: #000; stroke-width: 1; }
.tok-melee  { fill: #e67e22; stroke: #000; stroke-width: 0.75; }
.tok-ranged { fill: #16a085; stroke: #000; stroke-width: 0.75; }
.tok-healer { fill: #ecf0f1; stroke: #000; stroke-width: 0.75; }
.tok-add    { fill: var(--c-druid); stroke: #000; stroke-width: 0.75; }

.lbl, .lbl-sm, .lbl-tiny {
  font-family: "Inter", sans-serif;
  fill: var(--fg);
  text-anchor: middle;
  font-weight: 600;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.7);
  stroke-width: 2;
  stroke-linejoin: round;
}
.lbl       { font-size: 14px; }
.lbl-sm    { font-size: 11px; }
.lbl-tiny  { font-size: 9px; }
.lbl-gold  { fill: var(--gold); }
.lbl-cyan  { fill: var(--cyan); }
.lbl-frost { fill: var(--frost); }
.lbl-nature{ fill: var(--nature); }
.lbl-danger{ fill: var(--danger); }
