/* Make the faction module use the same compact banner composition as VIP. */
.dashboard .hub-primary #faction-showcase.vip-banner {
  grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr) !important;
  grid-template-areas: "copy action" !important;
  align-items: center;
  gap: 16px 24px;
  min-height: 0;
  margin-top: 18px;
  padding: 19px 22px;
  border: 1px solid #292b2d;
  border-left: 2px solid #b89a54;
  border-radius: 9px;
  background: #090a0b;
  box-shadow: none;
}

.dashboard #faction-showcase > .faction-intro {
  grid-area: copy !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center;
  min-width: 0;
  padding: 0;
}
.dashboard #faction-showcase .faction-intro .eyebrow {
  color: #c4a454;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.dashboard #faction-showcase .faction-intro .faction-badge {
  display: block;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.dashboard #faction-showcase .faction-intro .faction-badge::before { content: none !important; }
.dashboard #faction-showcase .faction-intro h2 {
  margin: 7px 0 !important;
  color: #f1f3f3;
  font-size: 24px !important;
  line-height: 1.15;
  letter-spacing: -.5px !important;
}
.dashboard #faction-showcase .faction-intro h2 span { color: #d5b56c !important; }
.dashboard #faction-showcase .faction-intro p {
  max-width: 470px;
  margin: 0;
  color: #a1a3a4;
  font-size: 12px;
  line-height: 1.6;
}
.dashboard #faction-showcase .faction-preview-note {
  margin-top: 9px;
  color: #777b7b;
  font-size: 10px;
}

.dashboard #faction-showcase > .faction-spotlight {
  grid-area: action !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px 16px;
  min-width: 0;
  margin: 0;
  padding: 2px 0 2px 22px !important;
  border: 0 !important;
  border-left: 1px solid #292b2d !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  justify-items: stretch;
}
.dashboard #faction-showcase > .faction-spotlight::before { content: none !important; display: none !important; }
.dashboard #faction-showcase .faction-feature-copy {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 11px;
  min-width: 0;
}
.dashboard #faction-showcase .spotlight-label {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: auto;
  margin-bottom: 2px;
  color: #c4a454;
  font-size: 9px;
  letter-spacing: 1.4px;
}
.dashboard #faction-showcase .featured-faction {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  gap: 2px 11px;
  min-width: 0;
  text-align: left;
}
.dashboard #faction-showcase .featured-faction .armband-halo { display: none; }
.dashboard #faction-showcase .featured-faction img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 42px;
  height: 47px;
  margin: 0;
}
.dashboard #faction-showcase .featured-faction strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  color: #e4e2dc;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard #faction-showcase .featured-faction .featured-stats {
  grid-column: 2;
  grid-row: 2;
  color: #85888a;
  font-size: 10px;
}
.dashboard #faction-showcase .faction-spotlight > .vip-button {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  min-height: 40px;
  padding: 9px 14px;
  border-color: #5b513a;
  border-radius: 7px;
  background: #17150f;
  color: #e3cf9a;
  font-size: 12px;
  white-space: nowrap;
}
.dashboard #faction-showcase .faction-spotlight > .vip-button:hover {
  border-color: #9d8550;
  background: #211d14;
}
.dashboard #faction-showcase .faction-spotlight > small {
  grid-column: 1 / -1;
  grid-row: 2;
  color: #777;
  font-size: 10px;
}
.dashboard #faction-showcase > .faction-topfive[hidden] { display: none !important; }

@media (max-width: 900px) {
  .dashboard .hub-primary #faction-showcase.vip-banner {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "copy" "action" !important;
    gap: 16px;
  }
  .dashboard #faction-showcase > .faction-intro,
  .dashboard #faction-showcase > .faction-spotlight {
    grid-column: 1 !important;
  }
  .dashboard #faction-showcase > .faction-intro { grid-row: 1 !important; }
  .dashboard #faction-showcase > .faction-spotlight {
    grid-row: 2 !important;
    padding: 14px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid #292b2d !important;
  }
}

@media (max-width: 560px) {
  .dashboard .hub-primary #faction-showcase.vip-banner { padding: 17px; }
  .dashboard #faction-showcase > .faction-spotlight {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: start;
  }
  .dashboard #faction-showcase .faction-feature-copy { grid-column: 1; grid-row: 1; }
  .dashboard #faction-showcase .faction-spotlight > .vip-button { grid-column: 1; grid-row: 2; justify-self: start; }
  .dashboard #faction-showcase .faction-spotlight > small { grid-column: 1; grid-row: 3; }
}
