/* WP-09: shared publication identity */
@import url('production_experience.css');

/* CONTENT-PRODUCTION-001 WP-03 — Categories Experience */

/* Breadcrumb — horizontal path, not a numbered list */
.category-experience-breadcrumb {
    margin: 0 0 0.65rem;
}

ol.category-experience-breadcrumb-list,
.category-experience-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.25rem;
    margin: 0;
    padding: 0;
    padding-inline-start: 0;
    list-style: none;
    list-style-type: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: #6a7275;
}

.category-experience-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    max-width: 100%;
}

.category-experience-breadcrumb-item::marker {
    content: "";
    font-size: 0;
}

.category-experience-breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0;
    color: #c4a45e;
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1;
    speak: never;
}

.category-experience-breadcrumb-link {
    color: #5d6467;
    text-decoration: none;
    transition: color 140ms ease;
}

.category-experience-breadcrumb-link:hover,
.category-experience-breadcrumb-link:focus-visible {
    color: #8a6d2f;
}

.category-experience-breadcrumb-current {
    color: #1f2a2e;
    font-weight: 650;
}

@media (max-width: 575.98px) {
    .category-experience-breadcrumb {
        margin-bottom: 0.5rem;
    }

    ol.category-experience-breadcrumb-list,
    .category-experience-breadcrumb-list {
        font-size: 0.72rem;
        column-gap: 0.35rem;
    }

    .category-experience-breadcrumb-item {
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-experience-breadcrumb-link {
        transition: none;
    }
}

.category-experience-identity {
    max-width: 44rem;
}

.category-experience-identity-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

/*
 * Browse topbar: breadcrumb (left) + optional Add Article icon (right).
 * Icon renders only when authorized ∩ AUTHOR_CAT_SIMPLE — no reserved gap.
 */
.browse-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.browse-topbar-crumb {
    min-width: 0;
    flex: 1 1 auto;
}

.browse-topbar > .browse-add-article {
    flex: 0 0 auto;
    margin-left: auto;
}

/*
 * Circular Add Article action (AUTHOR_CAT_SIMPLE Browse consumer).
 * + drawn as centered background-image — avoids theme svg { vertical-align }
 * and text-glyph metric drift.
 */
a.browse-add-article {
    display: inline-block;
    box-sizing: border-box;
    width: 2.44rem; /* ~39px */
    height: 2.44rem;
    min-width: 2.44rem;
    min-height: 2.44rem;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #8a6d2f;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f2a2e' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 1.125rem 1.125rem;
    color: transparent !important;
    text-decoration: none !important;
    box-shadow: none;
    line-height: 0;
    font-size: 0;
    cursor: pointer;
    vertical-align: top;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

a.browse-add-article:hover {
    background-color: #faf7f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238a6d2f' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5z'/%3E%3C/svg%3E");
    border-color: #8a6d2f;
    text-decoration: none !important;
    box-shadow: 0 0 0 1px rgba(138, 109, 47, 0.25);
}

a.browse-add-article:focus {
    text-decoration: none !important;
}

a.browse-add-article:focus-visible {
    outline: 2px solid #8a6d2f;
    outline-offset: 3px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f2a2e' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5z'/%3E%3C/svg%3E");
}

@media (max-width: 575.98px) {
    a.browse-add-article {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
        min-height: 2.25rem;
        background-size: 1rem 1rem;
    }
}

.category-experience-title {
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1f2a2e;
}

.category-experience-title a {
    color: inherit;
}

.category-experience-title a:hover,
.category-experience-title a:focus-visible {
    color: #8a6d2f;
}

.category-experience-scent {
    margin: 0 0 0.85rem;
    color: #5f676a;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.category-experience-description {
    color: #5f676a;
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 40rem;
}

.category-experience-description p:last-child {
    margin-bottom: 0;
}

.browse-category-intro {
    padding-top: 1.75rem !important;
    padding-bottom: 1.25rem !important;
}

@media (min-width: 992px) {
    .browse-category-intro {
        padding-top: 2.25rem !important;
        padding-bottom: 1.5rem !important;
    }
}

.category-experience-rooms {
    margin-top: 1.5rem;
}

.category-experience-rooms-label {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c7275;
}

.browse-subcategory-tabs {
    margin-top: 0 !important;
}

.browse-subcategory-link {
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.browse-subcategory-link:focus-visible {
    outline: 2px solid rgba(212, 180, 106, 0.95);
    outline-offset: 2px;
}

.category-experience-empty {
    max-width: 32rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(31, 42, 46, 0.12);
    border-radius: 1rem;
    background: #fafaf8;
}

.category-experience-empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1f2a2e;
}

.category-experience-empty-message {
    margin: 0 0 0.75rem;
    color: #3f474a;
}

.category-experience-empty-hint {
    margin: 0;
    color: #6c7275;
    font-size: 0.92rem;
    line-height: 1.45;
}

.browse-list-orientation .browse-list-heading {
    letter-spacing: -0.01em;
}

.browse-category-banner {
    isolation: isolate;
}

.browse-category-banner-overlay {
    background: linear-gradient(
        180deg,
        rgba(15, 18, 20, 0.08) 0%,
        rgba(15, 18, 20, 0.28) 100%
    );
}

@media (prefers-reduced-motion: reduce) {
    .browse-subcategory-link {
        transition: none !important;
    }

    .browse-subcategory-link:hover,
    .browse-subcategory-link:focus-visible {
        transform: none !important;
    }
}
