/* Sofiya archive/tax/search listing CSS. */
.archive-shell {
    padding-bottom: 40px
}

.archive-description {
    color: var(--muted)
}

.pagination-wrap {
    margin-top: 28px;
    display: flex;
    justify-content: center
}

.pagination-wrap .nav-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap
}

.pagination-wrap .page-numbers {
    min-width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff0a;
    border: 1px solid var(--line)
}

.pagination-wrap .current {
    background: var(--green);
    color: #080808;
    border-color: transparent
}

.empty-state {
    background: #ffffff08;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 20px;
    text-align: center
}

.page-head--archive,.page-head--home {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 20px
}

.page-head--archive h1,.page-head--home h2 {
    margin: 0;
    font-size: 1.35rem
}

.archive-shell {
    padding-top: 18px
}

.home-content-surface,
.term-content-surface,
.hero-content-shell--home,
.hero-content-shell--term {
    position: relative;
    z-index: 6;
    min-height: 60vh;
    margin-top: calc(var(--hero-overlap) * -.42);
    padding-top: calc(var(--hero-overlap) + 10px);
    padding-bottom: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    isolation: isolate;
}

.home-content-surface::before,
.term-content-surface::before,
.hero-content-shell--home::before,
.hero-content-shell--term::before {
    content: none;
    display: none;
}

.home-content-surface > *,
.term-content-surface > *,
.hero-content-shell--home > *,
.hero-content-shell--term > * {
    position: relative;
    z-index: 1;
}

.hero-content-shell--home .archive-shell--home,
.hero-content-shell--home .sfc-section,
.hero-content-shell--home .sfw-section,
.hero-content-shell--term .archive-shell,
.hero-content-shell--term .sfc-section,
.term-content-surface .archive-shell,
.term-content-surface .sfc-section {
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.hero-content-shell--home .archive-shell--home,
.hero-content-shell--home .sfc-section,
.hero-content-shell--home .sfw-section,
.hero-content-shell--term .archive-shell,
.term-content-surface .archive-shell {
    padding-inline: clamp(10px,2vw,18px);
}

.hero-content-shell--home .sfc-section + .sfc-section,
.hero-content-shell--home .sfw-section + .sfc-section,
.hero-content-shell--term .sfc-section + .sfc-section,
.term-content-surface .sfc-section + .sfc-section,
.hero-content-shell--term .sfc-section + .archive-shell,
.term-content-surface .sfc-section + .archive-shell {
    margin-top: clamp(8px,1.2vw,18px);
}

@media (max-width: 767px) {
.content-box,.details-grid div,.hero-content-shell:not(.hero-content-shell--home):not(.hero-content-shell--term),.hero-content-shell--single .single-body {
        border-radius: var(--radius-2xl)!important
    }
}

@media (max-width: 767px) {
.content-box,.details-grid div,.hero-content-shell:not(.hero-content-shell--home):not(.hero-content-shell--term),.hero-content-shell--single .single-body,.site-footer--immersive {
        border-radius: var(--radius-2xl)!important
    }
}

.archive-shell--after-term-features{position:relative;z-index:8;margin-top:clamp(18px,3vw,36px)}

.sofiya-term-page-head{position:relative;z-index:12;display:block;width:100%;margin:0 0 clamp(20px,3vw,34px);padding:clamp(14px,2vw,20px);border-radius:var(--radius-4xl);background:linear-gradient(135deg,#ffffff12,#ffffff07);border:1px solid #ffffff18;box-shadow:0 20px 60px #00000036;backdrop-filter:blur(var(--blur-3xl));-webkit-backdrop-filter:blur(var(--blur-3xl));overflow:hidden}

.sofiya-term-page-head__main{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;direction:rtl}

.sofiya-term-page-head__title{display:flex;align-items:center;gap:12px;min-width:0;max-width:34%;flex:0 0 auto;text-align:right;order:1}

.sofiya-term-page-head__kicker{display:none!important}

.sofiya-term-page-head h1{margin:0;font-size:clamp(1.45rem,2.8vw,2.35rem);font-weight:1000;letter-spacing:-.035em;line-height:1.15;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.sofiya-term-page-head .archive-description{max-width:100%;margin:14px 0 0;padding-top:14px;border-top:1px solid #ffffff14;color:#ffffffb8;font-size:.94rem;line-height:1.9;text-align:right}

@media (max-width: 640px) {
.sofiya-term-page-head{border-radius:var(--radius-2xl);margin-bottom:22px;padding:12px}

.sofiya-term-page-head__main{gap:10px;align-items:center;flex-wrap:nowrap}

.sofiya-term-page-head__title{flex:0 0 auto;max-width:34%;gap:7px}

.sofiya-term-page-head h1{font-size:1.42rem;max-width:100%}

.sofiya-term-page-head .archive-description{font-size:.88rem;margin-top:10px;padding-top:10px}
}

.archive-shell,.cards-grid[data-archive-grid]{position:relative}

.sul-archive-shell .sofiya-archive-pagination{display:flex;justify-content:center}

@media (max-width: 640px) {
.home-content-surface,
    .term-content-surface,
    .hero-content-shell--home,
    .hero-content-shell--term {
        padding-top: calc(var(--hero-overlap) + 12px);
        border-radius: 0;
    }

.home-content-surface::before,
    .term-content-surface::before,
    .hero-content-shell--home::before,
    .hero-content-shell--term::before {
        content: none;
        display: none;
    }
}

/* Phase 5: transport-neutral archive request feedback. */
.sofiya-archive-request-error{margin:0 0 14px;padding:11px 14px;border:1px solid rgba(255,99,99,.28);border-radius:var(--radius-md);background:rgba(86,18,18,.34);color:#ffd7d7;font-size:.82rem;line-height:1.8;text-align:center}
