/* SYMBIONT Archive System — Phase 8.4 */

.sym-cpt-archive{
    width:min(1180px,calc(100% - 40px));
    margin:42px auto 80px;
    color:var(--sym-card-text,#10161a);
}

.sym-archive-hero{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin:0 0 22px;
    padding:34px 38px;
    border:1px solid var(--sym-card-border,rgba(19,214,168,.20));
    border-radius:22px;
    background:
        radial-gradient(circle at 88% 0%,rgba(18,230,173,.18),transparent 42%),
        linear-gradient(135deg,var(--sym-card-bg,rgba(255,255,255,.86)),var(--sym-card-bg-2,rgba(236,255,249,.72)));
    box-shadow:var(--sym-card-shadow,0 18px 46px rgba(22,32,48,.10));
}

.sym-archive-hero__content{
    min-width:0;
    max-width:760px;
}

.sym-archive-hero__eyebrow{
    margin:0 0 9px;
    color:var(--sym-card-accent,#12e6ad);
    font-size:11px;
    font-weight:800;
    line-height:1;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.sym-archive-hero h1{
    margin:0;
    color:var(--sym-card-text,#10161a);
    font-size:clamp(42px,5.4vw,84px);
    font-weight:650;
    line-height:.86;
    letter-spacing:-.055em;
}

.sym-archive-hero p{
    max-width:720px;
    margin:16px 0 0;
    color:var(--sym-card-muted,rgba(16,22,26,.62));
    font-size:16px;
    line-height:1.38;
}

.sym-archive-hero__buttons{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:9px;
    min-width:240px;
}

.sym-archive-hero__buttons a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 14px;
    border:1px solid var(--sym-card-border,rgba(19,214,168,.20));
    border-radius:999px;
    background:rgba(18,230,173,.08);
    color:var(--sym-card-text,#10161a)!important;
    font-size:12px;
    font-weight:720;
    line-height:1;
    text-decoration:none!important;
    transition:.18s;
}

.sym-archive-hero__buttons a:hover{
    border-color:rgba(18,230,173,.52);
    background:rgba(18,230,173,.18);
    transform:translateY(-1px);
}

.sym-archive-filter-shell{
    display:flex;
    align-items:center;
    gap:14px;
    margin:0 0 16px;
    padding:12px 14px;
    border:1px dashed var(--sym-card-border,rgba(19,214,168,.20));
    border-radius:16px;
    background:rgba(255,255,255,.32);
}

.sym-archive-filter-shell__label{
    flex:0 0 auto;
    padding:6px 9px;
    border-radius:999px;
    background:rgba(18,230,173,.10);
    color:var(--sym-card-accent,#12e6ad);
    font-size:10px;
    font-weight:850;
    line-height:1;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.sym-archive-filter-shell__body{
    min-width:0;
    color:var(--sym-card-muted,rgba(16,22,26,.62));
    font-size:12px;
    line-height:1.3;
}

.sym-archive-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:0 0 16px;
    color:var(--sym-card-muted,rgba(16,22,26,.62));
    font-size:12px;
}

.sym-archive-toolbar__view{
    padding:5px 9px;
    border:1px solid var(--sym-card-border,rgba(19,214,168,.20));
    border-radius:999px;
    color:var(--sym-card-dim,rgba(16,22,26,.42));
    font-weight:700;
}

.sym-archive-grid{
    margin-top:0;
}

.sym-archive-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin:34px 0 0;
}

.sym-archive-pagination__item .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    min-height:34px;
    padding:0 10px;
    border:1px solid var(--sym-card-border,rgba(19,214,168,.20));
    border-radius:999px;
    background:transparent;
    color:var(--sym-card-text,#10161a)!important;
    font-size:12px;
    font-weight:760;
    text-decoration:none!important;
}

.sym-archive-pagination__item .page-numbers.current,
.sym-archive-pagination__item .page-numbers:hover{
    background:rgba(18,230,173,.16);
    border-color:rgba(18,230,173,.52);
}

html[data-theme="dark"] .sym-archive-filter-shell,
body.dark .sym-archive-filter-shell,
body.theme-dark .sym-archive-filter-shell,
body.digital_newspaper_dark_mode .sym-archive-filter-shell{
    background:rgba(255,255,255,.035);
}

@media(max-width:980px){
    .sym-cpt-archive{
        width:min(100% - 32px,760px);
        margin-top:32px;
    }
    .sym-archive-hero{
        align-items:flex-start;
        flex-direction:column;
        padding:28px;
    }
    .sym-archive-hero__buttons{
        justify-content:flex-start;
        min-width:0;
    }
}

@media(max-width:620px){
    .sym-cpt-archive{
        width:min(100% - 24px,420px);
        margin-top:24px;
    }
    .sym-archive-hero{
        padding:22px;
        border-radius:18px;
    }
    .sym-archive-hero h1{
        font-size:44px;
    }
    .sym-archive-hero p{
        font-size:14px;
    }
    .sym-archive-filter-shell,
    .sym-archive-toolbar{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* Phase 8.4.1 — archive toolbar/pagination placement fix */
.sym-cpt-archive .sym-archive-grid{
    margin-bottom:0;
}

.sym-cpt-archive .sym-archive-pagination{
    width:100%;
    margin:42px auto 0;
    padding-top:4px;
    display:flex;
    justify-content:center;
    align-items:center;
    clear:both;
}

.sym-cpt-archive .sym-archive-toolbar:empty{
    display:none!important;
}


/* Releases archive: shareable ACF genre tabs — v1.1 */
.sym-cpt-archive--type-releases .sym-release-genre-filter{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    margin:0 0 14px;
    padding:7px 10px;
    border:1px solid var(--sym-card-border,rgba(19,214,168,.20));
    border-radius:12px;
    background:var(--sym-card-bg,rgba(255,255,255,.46));
    overflow:hidden;
}

.sym-cpt-archive--type-releases .sym-release-genre-filter__title{
    flex:0 0 auto;
    margin:0;
    padding:0;
    color:var(--sym-card-muted,rgba(16,22,26,.68));
    font-family:Ruda,Arial,sans-serif;
    font-size:11px;
    font-weight:750;
    line-height:1;
    white-space:nowrap;
}

.sym-cpt-archive--type-releases .sym-release-genre-filter__tabs{
    display:flex;
    align-items:center;
    flex:1 1 auto;
    flex-wrap:nowrap;
    gap:6px;
    min-width:0;
    overflow-x:auto;
    padding:1px 1px 2px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
}

.sym-cpt-archive--type-releases .sym-release-genre-filter__tab{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-height:24px;
    padding:0 9px;
    border:1px solid var(--sym-card-border,rgba(19,214,168,.25));
    border-radius:999px;
    background:rgba(0,159,152,.055);
    color:var(--sym-card-text,#10161a)!important;
    font-family:Ruda,Arial,sans-serif;
    font-size:10px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
    text-decoration:none!important;
    transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}

.sym-cpt-archive--type-releases .sym-release-genre-filter__tab:hover{
    border-color:rgba(0,159,152,.58);
    background:rgba(0,159,152,.13);
    transform:translateY(-1px);
}

.sym-cpt-archive--type-releases .sym-release-genre-filter__tab.is-active{
    border-color:#009f98;
    background:#009f98;
    color:#fff!important;
}

html[data-theme="dark"] .sym-cpt-archive--type-releases .sym-release-genre-filter,
body.dark .sym-cpt-archive--type-releases .sym-release-genre-filter,
body.theme-dark .sym-cpt-archive--type-releases .sym-release-genre-filter,
body.digital_newspaper_dark_mode .sym-cpt-archive--type-releases .sym-release-genre-filter{
    background:var(--sym-card-bg,rgba(20,25,29,.72));
}

html[data-theme="dark"] .sym-cpt-archive--type-releases .sym-release-genre-filter__tab,
body.dark .sym-cpt-archive--type-releases .sym-release-genre-filter__tab,
body.theme-dark .sym-cpt-archive--type-releases .sym-release-genre-filter__tab,
body.digital_newspaper_dark_mode .sym-cpt-archive--type-releases .sym-release-genre-filter__tab{
    background:rgba(255,255,255,.035);
    color:var(--sym-card-text,#f4f8f7)!important;
}

html[data-theme="dark"] .sym-cpt-archive--type-releases .sym-release-genre-filter__tab.is-active,
body.dark .sym-cpt-archive--type-releases .sym-release-genre-filter__tab.is-active,
body.theme-dark .sym-cpt-archive--type-releases .sym-release-genre-filter__tab.is-active,
body.digital_newspaper_dark_mode .sym-cpt-archive--type-releases .sym-release-genre-filter__tab.is-active{
    background:#009f98;
    color:#fff!important;
}

@media(max-width:620px){
    .sym-cpt-archive--type-releases .sym-release-genre-filter{
        gap:8px;
        padding:7px 8px;
    }

    .sym-cpt-archive--type-releases .sym-release-genre-filter__title{
        font-size:10px;
    }

    .sym-cpt-archive--type-releases .sym-release-genre-filter__tab{
        min-height:23px;
        padding:0 8px;
        font-size:9px;
    }
}
