.staff-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 6px var(--page-pad-x);
  background-color: var(--c-blue-mid);
}

.staff-nav-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--c-blue-deep);
  z-index: 0;
}

.staff-nav {
  display: flex;
  gap: var(--sp-sm);
  width: 100%;
  max-width: 900px;
}

.staff-nav a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  background-color: var(--role-color, var(--c-blue-mid));
  border: var(--bd-w) solid var(--role-edge, var(--c-blue-dark));
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}

.staff-nav a:hover {
  background-color: var(--role-hover, var(--c-blue-dark));
}

.staff-nav a.active {
  background-color: var(--role-bg, var(--c-white));
  color: var(--role-edge, var(--c-blue-dark));
  box-shadow: inset 0 0 0 2px var(--role-edge, var(--c-blue-dark));
}

.staff-nav a.active:hover {
  background-color: var(--role-bg-hover, var(--c-blue-soft));
}

.staff-nav a[data-target="assistant"] {
  --role-color: #96d7f2;
  --role-hover: #6cc6ea;
  --role-edge: #2585b3;
  --role-bg: #f1f9fd;
  --role-bg-hover: #d8ebf6;
}
.staff-nav a[data-target="moderator"] {
  --role-color: #8fe38c;
  --role-hover: #6dd16a;
  --role-edge: #3a9a37;
  --role-bg: #f1faf0;
  --role-bg-hover: #d6edd4;
}
.staff-nav a[data-target="administrator"] {
  --role-color: #f2727e;
  --role-hover: #ec5662;
  --role-edge: #c14250;
  --role-bg: #fef2f3;
  --role-bg-hover: #fad5d9;
}

.staff {
  padding-top: 1.5em;
  padding-bottom: 2em;
}

.role-section {
  display: none;
  counter-reset: section-num;
}

.role-section.active {
  display: block;
}

#assistant     { --role-color: #96d7f2; --role-text: #96d7f2; }
#moderator     { --role-color: #8fe38c; --role-text: #8fe38c; }
#administrator { --role-color: #f2727e; --role-text: #f2727e; }

/* Hero */
.role-section .role-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--role-color, var(--c-blue));
}

.role-section h2 {
  margin: 0;
  font-size: 2.8em;
  font-weight: var(--fw-heavy);
  color: var(--role-text, var(--c-blue-dark));
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.role-staff-heads {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.role-head {
  position: relative;
  display: inline-block;
  cursor: default;
}

.role-head img {
  display: block;
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.role-head-name {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-white);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  padding: 3px 7px;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
  pointer-events: none;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.role-head:hover .role-head-name {
  opacity: 1;
  visibility: visible;
}

.role-section .role-tagline {
  color: var(--c-ink-muted);
  font-style: italic;
  margin: 0.7em 0 0 0;
  font-weight: var(--fw-medium);
  font-size: var(--fs-md);
  line-height: 1.5;
}

/* Two-column reference-card layout */
.role-block {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #e2e2e2;
}

.role-tagline + .role-block {
  border-top: none;
  margin-top: 1.1em;
}

/* h3 = compact left label */
.role-section h3 {
  counter-increment: section-num;
  flex-shrink: 0;
  width: 140px;
  margin: 0;
  padding: 10px 14px 10px 0;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-heavy);
  color: var(--c-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.role-section h3::before {
  content: counter(section-num, decimal-leading-zero);
  font-family: monospace;
  color: var(--role-text, var(--c-ink-faint));
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
}

/* Content column */
.role-block-content {
  flex: 1;
  min-width: 0;
  padding: 10px 0 10px 16px;
  border-left: 1px solid #e2e2e2;
}

.role-block-content > *:last-child {
  margin-bottom: 0;
}

/* Body text */
.role-section p {
  margin: 0 0 0.5em 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  line-height: 1.5;
}

.role-section ul,
.role-section ol {
  margin: 0 0 0.5em 0;
  padding-left: 1.3em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  line-height: 1.45;
}

.role-section ul li,
.role-section ol li {
  margin-bottom: 0.22em;
}

.role-section code {
  font-family: monospace;
  font-size: 0.9em;
  background-color: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
}

.role-section a {
  color: var(--c-blue-deep);
  font-weight: var(--fw-heavy);
  transition: color var(--t);
}

.role-section a:hover {
  color: var(--c-blue-mid);
}

/* Investigation — tools + ban protocol side by side */
.mod-tools-bans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.mod-panel-title {
  margin: 0 0 8px 0;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-heavy);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

/* Tools — 2-col grid */
.role-section .tool-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.role-section .tool-grid li {
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.role-section .tool-grid li strong {
  display: block;
  color: var(--c-ink);
  font-weight: var(--fw-heavy);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

/* Perks — 3-col grid */
.role-section .perk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}

.role-section .perk-list li {
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.role-section .perk-list li strong {
  display: block;
  color: var(--c-ink);
  font-weight: var(--fw-heavy);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

/* Rules — numbered list */
.role-section .rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rule-num;
}

.role-section .rule-list li {
  counter-increment: rule-num;
  position: relative;
  padding: 0.55em 0 0.55em 2.4em;
  font-size: var(--fs-sm);
  line-height: 1.45;
  border-top: 1px solid #eeeeee;
}

.role-section .rule-list li:first-child {
  border-top: none;
}

.role-section .rule-list li::before {
  content: counter(rule-num, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.65em;
  color: var(--role-text, var(--c-ink-faint));
  font-family: monospace;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
}

.role-section .rule-list li strong {
  color: var(--c-ink);
  font-weight: var(--fw-heavy);
}

/* Ban table */
.ban-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6em 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.ban-table th,
.ban-table td {
  padding: 6px 0;
  text-align: left;
  border-bottom: 1px solid #e2e2e2;
  color: var(--c-ink);
}

.ban-table th:last-child,
.ban-table td:last-child {
  text-align: right;
  padding-right: 24px;
}

.ban-table th {
  font-weight: var(--fw-heavy);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-ink-muted);
}


/* Command tables */
.role-section .command-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.5em 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.role-section .command-table td {
  padding: 4px 10px 4px 0;
  border-bottom: 1px solid #eeeeee;
  vertical-align: baseline;
  color: var(--c-ink);
  line-height: 1.4;
}

.role-section .command-table td:first-child {
  white-space: nowrap;
  padding-right: 18px;
}

.role-section .command-table tr:last-child td {
  border-bottom: none;
}

.role-section .command-table--vanish td:last-child {
  text-align: right;
  padding-right: 0;
  white-space: nowrap;
}

.vanish-check {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-ink-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .staff-nav {
    flex-wrap: wrap;
    gap: 4px;
  }

  .staff-nav a {
    flex: 1 0 calc(33.333% - 4px);
    padding: 4px;
    font-size: var(--fs-2xs);
  }

  .role-section h2 {
    font-size: 2.4em;
  }

  .role-head img {
    width: 28px;
    height: 28px;
  }

  .role-block {
    flex-direction: column;
  }

  .role-section h3 {
    width: auto;
    padding: 8px 0 3px 0;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    font-size: var(--fs-xs);
  }

  .role-block-content {
    border-left: none;
    padding: 0 0 12px 0;
  }

  .role-section .tool-grid {
    grid-template-columns: 1fr;
  }

  .mod-tools-bans {
    grid-template-columns: 1fr;
  }

  .role-section .perk-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .role-section .perk-list {
    grid-template-columns: 1fr;
  }
}
