/* A public invitation appears only after the site supplies a checked invite. */
[data-discord-community][hidden] { display: none !important; }
.discord-community-icon { flex: none; width: 22px; height: 22px; fill: currentColor; }
#siteNav .discord-community-nav,
.discord-community-footer { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-gold-light, #ffe29d); font-size: 13px; font-weight: 700; text-decoration: none; }
#siteNav .discord-community-nav { color: var(--brand-gold-light, #ffe29d); }
.directory-home .discord-community {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  width: min(1160px, calc(100% - 48px));
  margin: 30px auto 55px;
  padding: 28px 30px;
  border: 1px solid #ffd16f45;
  border-radius: 20px;
  background: radial-gradient(ellipse at 5% 10%, #ffd16f17, transparent 65%), linear-gradient(120deg, #253c2c, #1b2d23);
  box-shadow: 0 12px 36px #070f0b24;
  color: var(--brand-cream, #fff6df);
}
.discord-community-mascot { width: 85px; height: 85px; object-fit: contain; filter: drop-shadow(0 5px 7px #0003); -webkit-user-drag: none; }
.discord-community .kicker { margin: 0 0 9px; color: var(--brand-gold-light, #ffe29d); font-size: 10px; letter-spacing: .14em; }
.discord-community h2 { margin: 0 0 9px; color: inherit; font: 800 clamp(21px, 2.4vw, 29px)/1.2 ui-sans-serif, system-ui, sans-serif; letter-spacing: -.02em; }
.discord-community-copy > p:not(.kicker) { max-width: 600px; margin: 0; color: var(--brand-muted, #b7c2ac); font-size: 14px; line-height: 1.7; }
.discord-community-topics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; color: #d8e8c9; font-size: 12px; line-height: 1.6; }
.discord-community-topics li::before { content: '✦'; padding-right: 6px; color: var(--brand-gold, #ffd16f); }
.discord-community .discord-community-join { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 18px; white-space: nowrap; border: 1px solid #ffe29d; border-radius: 12px; background: linear-gradient(130deg, #ffe29d, #ffd16f); color: #20372b; font: 800 13px/1.4 ui-sans-serif, system-ui, sans-serif; text-decoration: none; box-shadow: 0 4px 12px #0002; }
.discord-community-join:hover { filter: brightness(1.06); }
[data-discord-invite]:focus-visible { outline: 3px solid #82d8eb; outline-offset: 5px; border-radius: 8px; }
@media (max-width: 760px) {
  .directory-home .discord-community { grid-template-columns: 62px minmax(0, 1fr); gap: 16px; padding: 22px; }
  .discord-community-mascot { width: 62px; height: 62px; }
  .discord-community .discord-community-join { grid-column: 2; justify-self: start; }
}
@media (max-width: 430px) {
  .directory-home .discord-community { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 22px 20px; }
  .discord-community-mascot { width: 64px; height: 64px; }
  .discord-community .discord-community-join { grid-column: 1; justify-self: stretch; white-space: normal; }
}

/* Keep the community shortcut beside the collapsed navigation. */
.directory-home .discord-community-shortcut { display: none; }
@media (max-width: 1100px) {
  .directory-home .hero header > .brand { min-width: 0; max-width: calc(100% - 104px); flex-shrink: 1; }
  .directory-home .discord-community-shortcut {
    display: inline-flex;
    order: 2;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid #f0e3bb4d;
    border-radius: 11px;
    background: #183123dc;
    color: var(--brand-gold-light, #ffe29d);
  }
  .directory-home .discord-community-shortcut:hover { background: #294532; }
  .directory-home .menu-toggle { margin-left: 8px; }
}
