/* Sources Block - PhotoWorkout (Collapsible) */
.pw-sources-block {
    margin: 2rem 0;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #6b7280;
    overflow: hidden;
}

/* Clickable header - !important to override theme button styles */
.pw-sources-block__header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    background: #f9fafb !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: background-color 0.15s ease !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.pw-sources-block__header:hover {
    background: #f3f4f6 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.pw-sources-block__header:focus {
    outline: 2px solid #6b7280 !important;
    outline-offset: -2px !important;
    background: #f9fafb !important;
}

.pw-sources-block__header:active {
    background: #e5e7eb !important;
}

.pw-sources-block__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.pw-sources-block__toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #9ca3af;
    transition: transform 0.2s ease, color 0.15s ease;
    flex-shrink: 0;
}

.pw-sources-block__header:hover .pw-sources-block__toggle-icon {
    color: #6b7280;
}

/* Rotate icon when expanded */
.pw-sources-block[data-expanded="true"] .pw-sources-block__toggle-icon {
    transform: rotate(180deg);
}

/* Collapsible content */
.pw-sources-block__content {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    animation: pw-sources-slideDown 0.2s ease;
}

.pw-sources-block__content[hidden] {
    display: none;
}

@keyframes pw-sources-slideDown {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pw-sources-block__intro {
    margin: 1rem 0 1rem 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Category sections */
.pw-sources-block__categories {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.pw-sources-block__category {
    margin: 0;
}

.pw-sources-block__category-title {
    margin: 0 0 0.375rem 0;
    font-size: 0.875rem;
    color: #374151;
}

/* Source list */
.pw-sources-block__list {
    margin: 0;
    padding-left: 1.125rem;
    list-style-type: disc;
}

.pw-sources-block__item {
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #4b5563;
}

.pw-sources-block__item:last-child {
    margin-bottom: 0;
}

.pw-sources-block__item a {
    color: #2563eb;
    text-decoration: none;
}

.pw-sources-block__item a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.pw-sources-block__source-name {
    color: #374151;
}

.pw-sources-block__description {
    color: #6b7280;
}

/* Disclosure text */
.pw-sources-block__disclosure {
    margin: 1rem 0 0 0;
    padding-top: 0.875rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.55;
}

/* Responsive */
@media (max-width: 480px) {
    .pw-sources-block__header {
        padding: 0.875rem 1rem;
    }

    .pw-sources-block__content {
        padding: 0 1rem 1rem;
    }

    .pw-sources-block__title {
        font-size: 0.9375rem;
    }

    .pw-sources-block__item {
        font-size: 0.8rem;
    }
}
