/*==================================================
    PSK Archive / Category Description Box
    باکس توضیحات صفحه‌ی آرشیو/دسته‌بندی — با دکمه‌ی بیشتر/کمتر
==================================================*/

.psk-desc-wrap{
    position:relative;
}

.page-description{
    position:relative;
    background:#fff;
    border:1px solid var(--line,#e3e8f2);
    border-radius:16px;
    padding:26px 28px;
    margin-bottom:32px;
    max-height:400px;
    overflow:hidden;
    transition:max-height .5s ease;
    color:var(--ink,#111d33);
    line-height:1.95;
    font-size:14.5px;
    box-shadow:0 10px 30px -14px rgba(0,26,67,.14);
}

.term-description h1, .term-description h2, .term-description h3,
.page-description h1, .page-description h2, .page-description h3{
    color:var(--navy,#001a43);
    font-weight:800;
    margin-top:0;
}

.term-description p, .page-description p{
    margin:0 0 12px;
}

.term-description.psk-expanded,
.page-description.psk-expanded{
    max-height:none;
}

/* گرادیانِ محو‌کننده روی لبه‌ی پایین وقتی بسته است */
.term-description::after,
.page-description::after{
    content:"";
    position:absolute;
    right:0; left:0; bottom:0;
    height:74px;
    background:linear-gradient(0deg,#fff 20%, rgba(255,255,255,0));
    pointer-events:none;
    transition:opacity .3s ease;
    border-radius:0 0 16px 16px;
}

.term-description.psk-expanded::after,
.page-description.psk-expanded::after{
    opacity:0;
}
.psk-desc-toggle {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    background: var(--navy, #001a43);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background .2s ease, transform .15s ease;
    position: absolute;
    left: 0;
    bottom: -20px;
    right: 0;
    margin: 0 auto;
}
.psk-desc-toggle:hover{
    background:var(--amber,#ff7a1a);
    color:var(--navy-deep,#000d26);
    transform:translateY(-1px);
}
.psk-desc-toggle svg{
    width:14px; height:14px;
    stroke:currentColor; fill:none; stroke-width:2.2;
    transition:transform .3s ease;
}
.psk-desc-toggle.is-open svg{
    transform:rotate(180deg);
}
