/* Neutral interiors keep role colors on their labels and section outlines. */
.roles-page .role-embed {
  background: var(--surface);
  border-radius: 2px;
}

.roles-page .role-list li,
.roles-page .role-note,
.roles-page .role-warning {
  background: var(--surface-strong);
}

.roles-page .role-warning {
  color: var(--muted);
}

/* Discord role colors checked against the production guild on 15 October 2026.
   Uncolored roles use normal text; generic Staff uses its purple tools artwork. */
.roles-page .role-pill[data-role-color="006dff"] { --role-pill: #006dff; }
.roles-page .role-pill[data-role-color="00f7fe"] { --role-pill: #00f7fe; }
.roles-page .role-pill[data-role-color="369876"] { --role-pill: #369876; }
.roles-page .role-pill[data-role-color="4c6eff"] { --role-pill: #4c6eff; }
.roles-page .role-pill[data-role-color="5865f2"] { --role-pill: #5865f2; }
.roles-page .role-pill[data-role-color="5dc0e4"] { --role-pill: #5dc0e4; }
.roles-page .role-pill[data-role-color="7333eb"] { --role-pill: #7333eb; }
.roles-page .role-pill[data-role-color="834cd0"] { --role-pill: #834cd0; }
.roles-page .role-pill[data-role-color="8eff1a"] { --role-pill: #8eff1a; }
.roles-page .role-pill[data-role-color="a023b9"] { --role-pill: #a023b9; }
.roles-page .role-pill[data-role-color="a7b3f0"] { --role-pill: #a7b3f0; }
.roles-page .role-pill[data-role-color="c6d43d"] { --role-pill: #c6d43d; }
.roles-page .role-pill[data-role-color="cbd114"] { --role-pill: #CBD114; }
.roles-page .role-pill[data-role-color="c7fcea"] { --role-pill: #c7fcea; }
.roles-page .role-pill[data-role-color="ce7d36"] { --role-pill: #ce7d36; }
.roles-page .role-pill[data-role-color="d62df0"] { --role-pill: #d62df0; }
.roles-page .role-pill[data-role-color="default"] { --role-pill: var(--text); }
.roles-page .role-pill[data-role-color="ecbe3f"] { --role-pill: #ecbe3f; }
.roles-page .role-pill[data-role-color="f19600"] { --role-pill: #f19600; }
.roles-page .role-pill[data-role-color="f80000"] { --role-pill: #f80000; }
.roles-page .role-pill[data-role-color="ff0000"] { --role-pill: #ff0000; }
.roles-page .role-pill[data-role-color="ff5dd6"] { --role-pill: #ff5dd6; }
.roles-page .role-pill[data-role-color="ff7700"] { --role-pill: #ff7700; }

/* Preserve the full portrait GIF instead of cropping it into a square. */
.roles-page .obtainable-thumbnail {
  width: 88px;
  height: auto;
  flex: 0 0 88px;
  align-self: center;
  object-fit: contain;
  object-position: center;
  border-radius: 0 !important;
}
@media (max-width: 600px) {
  .roles-page .role-embed-obtainable .role-embed-header { gap: 12px; }
  .roles-page .obtainable-thumbnail { width: 64px; flex-basis: 64px; }
  .roles-page .role-embed-obtainable .role-embed-title { gap: 8px; }
  .roles-page .role-embed-obtainable .role-embed-title > img { width: 32px; height: 32px; flex-basis: 32px; }
  .roles-page .role-embed-obtainable .role-embed-title h2 { font-size: 1.25rem; }
}

/* The local ticket artwork stays readable without relying on an icon font. */
.roles-page .role-note .role-support-ticket {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-self: center;
  object-fit: contain;
}
