/* Static descriptor pages (rules, about, …) — matches product/auth blue–slate UI */

.desc-page {
    --desc-bg: #f1f5f9;
    --desc-card: #ffffff;
    --desc-text: #0f172a;
    --desc-muted: #64748b;
    --desc-line: rgba(148, 163, 184, 0.35);
    --desc-blue: #3b82f6;
    --desc-indigo: #6366f1;
    --desc-purple: #7c3aed;
    direction: rtl;
    text-align: right;
    font-family: iransans, yekan, Tahoma, sans-serif;
    color: var(--desc-text);
    padding: 18px 0 36px;
    background:
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
        radial-gradient(ellipse 55% 40% at 0% 15%, rgba(59, 130, 246, 0.08), transparent 50%),
        var(--desc-bg);
}

.desc-page a {
    text-decoration: none !important;
}

.desc-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--desc-muted);
}

.desc-crumb a {
    color: #4338ca !important;
    font-weight: 600;
    transition: color .15s ease;
}

.desc-crumb a:hover {
    color: #7c3aed !important;
}

.desc-crumb-sep {
    opacity: 0.4;
}

.desc-shell {
    background: var(--desc-card);
    border: 1px solid var(--desc-line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.desc-hero {
    position: relative;
    padding: 28px 28px 24px;
    background:
        radial-gradient(ellipse 80% 120% at 0% 0%, rgba(99, 102, 241, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 100% at 100% 100%, rgba(59, 130, 246, 0.18), transparent 50%),
        linear-gradient(165deg, #0f172a 0%, #1e293b 55%, #1e1b4b 120%);
    color: #e2e8f0;
}

.desc-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.28);
    color: #c4b5fd;
    font-family: yekan, iransans;
    font-size: 12px;
    font-weight: 700;
}

.desc-hero-title {
    margin: 0;
    font-family: yekan, iransans;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
}

.desc-hero-sub {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.85;
    color: #cbd5e1;
    max-width: 52rem;
}

.desc-body {
    padding: 26px 28px 30px;
    font-size: 14px;
    line-height: 2.05;
    color: #334155;
}

.desc-body > *:first-child {
    margin-top: 0 !important;
}

.desc-body > *:last-child {
    margin-bottom: 0 !important;
}

.desc-body h1,
.desc-body h2,
.desc-body h3,
.desc-body h4,
.desc-body h5,
.desc-body h6 {
    margin: 1.4em 0 0.55em;
    font-family: yekan, iransans;
    font-weight: 700;
    color: var(--desc-text);
    line-height: 1.5;
}

.desc-body h1 { font-size: 22px; }
.desc-body h2 { font-size: 19px; }
.desc-body h3 { font-size: 17px; }
.desc-body h4,
.desc-body h5,
.desc-body h6 { font-size: 15px; }

.desc-body p {
    margin: 0 0 1em;
}

.desc-body ul,
.desc-body ol {
    margin: 0 0 1.1em;
    padding: 0 1.4em 0 0;
}

.desc-body li {
    margin: 0.35em 0;
}

.desc-body a {
    color: #4338ca !important;
    font-weight: 600;
    border-bottom: 1px dashed rgba(67, 56, 202, 0.35);
}

.desc-body a:hover {
    color: #7c3aed !important;
    border-bottom-color: rgba(124, 58, 237, 0.55);
}

.desc-body strong,
.desc-body b {
    color: #1e293b;
    font-weight: 700;
}

.desc-body blockquote {
    margin: 1.1em 0;
    padding: 12px 16px;
    border-right: 3px solid #818cf8;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), transparent);
    color: #475569;
}

.desc-body table {
    width: 100%;
    margin: 1.1em 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--desc-line);
}

.desc-body th,
.desc-body td {
    padding: 10px 12px;
    border: 1px solid var(--desc-line);
    text-align: right;
    vertical-align: top;
}

.desc-body th {
    background: #f8fafc;
    font-family: yekan, iransans;
    font-weight: 700;
    color: #1e293b;
}

.desc-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.desc-body hr {
    border: 0;
    height: 1px;
    margin: 1.5em 0;
    background: linear-gradient(90deg, transparent, var(--desc-line), transparent);
}

.desc-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.desc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-family: yekan, iransans;
    font-size: 13px;
    font-weight: 700;
    transition: filter .15s ease, transform .12s ease, background .15s ease;
}

.desc-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #7c3aed 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
}

.desc-btn-primary:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

.desc-btn-ghost {
    color: #4338ca !important;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.desc-btn-ghost:hover {
    background: #eef2ff;
    color: #3730a3 !important;
}

@media screen and (max-width: 768px) {
    .desc-page {
        padding: 12px 0 28px;
    }

    .desc-hero {
        padding: 22px 18px 20px;
    }

    .desc-hero-title {
        font-size: 22px;
    }

    .desc-body {
        padding: 18px 16px 22px;
        font-size: 13.5px;
        line-height: 2;
    }
}
