.collections-hero,
.collections-section,
.collection-detail-page {
    margin-top: 2rem;
}

.collections-hero {
    padding: 2rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #eff6ff 100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.collections-eyebrow {
    margin-bottom: 0.75rem;
    color: #8f4b23;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.collections-hero h1,
.collections-section__header h2,
.collection-detail-page__header h1 {
    color: #18212f;
    font-weight: 800;
}

.collections-section__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.collections-link {
    color: #7a411e;
    font-weight: 700;
    text-decoration: none;
}

.collection-card-grid,
.collection-category-tile-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collection-card,
.collection-category-tile,
.collection-detail-page__hero {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.collection-detail-page__content {
    position: relative;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: visible;
}

.collection-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, #eef5ff 100%);
}

.collection-card__media img,
.collection-detail-page__hero img,
.collection-article-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card__media-fallback,
.collection-category-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 180px;
    text-align: center;
    color: #18212f;
    font-weight: 800;
}

.collection-card__body {
    padding: 1rem;
}

.collection-card__category,
.collection-card__title {
    display: block;
    text-decoration: none;
}

.collection-card__category {
    color: #7a411e;
    font-weight: 700;
}

.collection-card__title {
    margin-top: 0.4rem;
    color: #18212f;
    font-size: 1.1rem;
    font-weight: 800;
}

.collection-card__summary,
.collection-card__meta,
.collections-section__header p,
.collection-detail-page__summary {
    color: #5f6d7e;
}

.collection-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    font-size: 0.86rem;
}

.collection-category-tile {
    flex-direction: column;
    gap: 0.55rem;
    text-decoration: none;
}

.collection-detail-page__content {
    padding: 1.5rem;
}

.collection-detail-page__header,
.collection-detail-page__footer {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.collection-breadcrumb {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.collection-breadcrumb a {
    color: #7a411e;
    text-decoration: none;
}

.collection-detail-page__hero {
    margin: 1.5rem 0;
}

.collection-article-body {
    color: #223142;
    line-height: 1.8;
}

.collection-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 18px;
}

.collection-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(24, 33, 47, 0.82);
    color: #fff;
    text-decoration: none;
}

.collection-article-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.collection-download-menu {
    position: relative;
}

.collection-download-menu__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 10.5rem;
    padding: 0.45rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    z-index: 10;
}

.collection-article-actions--bottom .collection-download-menu__panel {
    top: auto;
    bottom: calc(100% + 0.45rem);
}

.collection-download-menu__item {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: #18212f;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.collection-download-menu__item:hover {
    background: #f5f8fc;
    color: #7a411e;
}

.collection-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.collection-tag {
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: #edf4fb;
    color: #2f5b84;
    font-weight: 600;
}

.collection-download-status {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    max-width: min(26rem, calc(100vw - 2rem));
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(24, 33, 47, 0.94);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    font-weight: 600;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.collection-download-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1199px) {
    .collection-card-grid,
    .collection-category-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .collection-card-grid,
    .collection-category-tile-grid {
        grid-template-columns: 1fr;
    }

    .collection-detail-page__header,
    .collection-detail-page__footer,
    .collections-section__header {
        flex-direction: column;
        align-items: start;
    }

    .collection-article-actions {
        flex-direction: row;
    }
}
