.page-section-title {
    font-size: 2.5rem;
    color: #80c7ff;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid #444;
    border-top: 3px solid #444;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.dev-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.moderator-card {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 14px;
    width: 300px;
    padding: 1rem;
    box-shadow: 0 0 8px rgb(195, 138, 74);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.moderator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 12px rgb(195, 138, 74);
}
.moderator-card > summary {
    list-style: none;
    display: flex;
    flex-direction: column;
}


/* Header line inside summary */
.card-header {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
    align-items: center;
}

/* Portraits */
.card-header img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(128, 199, 255, 0.2);
    border: 1px solid #2b2b2b;
}

/* Text area */
.card-text {
    padding-left: 35px;
    min-width: 0;
}
.card-name {
    color: #80c7ff;
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 0.15rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.moderator-name {
    color: #c38a4a;
    font-size: 22px;
    font-weight: 600;
}

.card-name,
[class$="-name"] {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 100%;
}

.card-role {
    color: #cfcfcf;
    font-size: 0.92rem;
    line-height: 1.3;
}

[class$="-name"] a {
    color: inherit;          /* use the same color as the parent name class */
    text-decoration: none;   /* remove default underline */
}

/* Links row in summary */
.card-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid #2f2f2f;
    background: #1a1a1a;
    color: #80c7ff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.chip:hover {
    background: #232323;
    border-color: #3a3a3a;
    transform: translateY(-1px);
}
.roblox-link i {
    font-size: 0.9rem;
}

/* Body revealed when open */
.dev-card-body {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #2e2e2e;
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* === Group Banners === */
.group-banner {
    position: relative;
    width: 100%;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(128, 199, 255, 0.25);
    margin: 0.75rem auto 1rem auto;
    background-image: var(--banner);
    background-size: cover;
    background-position: center;
    border: 1px solid #333;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.65) 10%,
            rgba(0,0,0,0.3) 60%,
            rgba(0,0,0,0.2) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.2rem;
}
.banner-overlay h4 {
    color: #eaf4ff;
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
}
.banner-overlay p {
    color: #d6e7ff;
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
}

/* === Text Card Grid Fix === */
.text-card-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Tier headings */
.tier-title {
    color: #80c7ff;
    font-size: 1.6rem;
    margin: 1rem auto;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    text-align: center;
    max-width: 900px;
}

/* Dev credits spacing */
#dev-credits {
    margin-top: 2rem;
}

/* Accessibility: focus ring for keyboard users */
.dev-card > summary:focus {
    outline: 2px solid #80c7ff;
    outline-offset: 4px;
    border-radius: 10px;
}

