body {
    background: var(--bg);
}

.grid-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.member-resources-container {
    width: min(900px, 92vw);
    margin: 64px auto;
    padding: 40px 36px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.member-resources-header {
    text-align: center;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 600;
    color: var(--ink-strong);
    margin: 0 0 8px;
}

.member-resources-intro {
    text-align: center;
    font-size: 16px;
    color: var(--ink-muted);
    margin-bottom: 32px;
}

.resource-section {
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

/* Removes default border from the last item */
.resource-section:last-of-type {
    border-bottom: none;
}

.resource-section summary {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-strong);
    padding: 16px 8px;
    cursor: pointer;
    list-style: none; /* Removes default triangle in some browsers */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
}

/* Custom dropdown arrow for summary */
.resource-section summary::after {
    content: "+";
    font-size: 24px;
    font-weight: 400;
    color: var(--accent-strong);
    transition: transform 0.3s ease;
}

.resource-section[open] summary::after {
    transform: rotate(45deg);
}

.resource-section summary:hover {
    color: var(--accent-strong);
}

/* Hides the default WebKit triangle */
.resource-section summary::-webkit-details-marker {
    display: none;
}

.resource-content {
    padding: 0 8px 24px 8px;
}

.resource-content p {
    font-size: 16px;
    color: var(--ink-muted);
    margin: 0 0 12px;
    line-height: 1.6;
}

.resource-content ul {
    padding-left: 24px;
    margin: 0 0 16px;
    color: var(--ink-muted);
}

.resource-content li {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.6;
}

.resource-content a {
    color: var(--accent-strong);
    text-decoration: underline;
}

@media screen and (max-width: 850px) {
    .member-resources-container {
        margin: 40px auto;
        padding: 28px 22px;
    }
}