/*
 * مدوّنةُ سعة (siea.sa/blog) — تصميمٌ تحريريٌّ فاتحٌ خاصّ (قرار المالك 2026-09-28).
 * ⚡ مستقلٌّ عن قالب الموقع (Velzon/Bootstrap): هذا الملفُّ وحدَه + خطّ IBM Plex Sans Arabic.
 */
:root {
    --ink: #1c2041;
    --muted: #5b6178;
    --faint: #8a8fa3;
    --line: #eceef4;
    --soft: #f7f8fb;
    --brand: #405189;
    --brand-dark: #2f3d6b;
    --accent: #0a8f7a;
    --accent-soft: #e6f5ee;
    --radius: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.blog {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.blog a {
    color: inherit;
}

.blog img {
    display: block;
    max-width: 100%;
    height: auto;
}

.blog :focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.blog-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* تخطٍّ إلى المحتوى — يظهر عند التركيز بلوحة المفاتيح */
.blog-skip {
    position: absolute;
    top: 0;
    transform: translateY(-120%); /* خارج الشاشة كلّيّاً — `top:-40px` ترك منه شريطاً ظاهراً */
    inset-inline-start: 12px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--ink);
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none;
}
.blog-skip:focus {
    transform: translateY(12px);
}

/* ── الهيدر: على نمط laravel.com/blog — أبيضُ لاصقٌ 64px بحدٍّ سفليٍّ رفيع ── */
.bh {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}
.bh-in {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
}
.bh-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.bh-brand img {
    height: 36px;
    width: auto;
}
.bh-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15.5px;
    font-weight: 500;
}
.bh-link,
.bh-trigger {
    color: var(--ink);
    text-decoration: none;
    padding: 20px 0;
}
.bh-link:hover,
.bh-trigger:hover {
    color: var(--brand);
}
.bh-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}
.bh-chev {
    color: var(--accent);
    transition: transform .2s;
}
.bh-menu {
    position: relative;
}
.bh-panel {
    display: none;
    position: absolute;
    top: calc(100% - 8px);
    inset-inline-start: -14px;
    min-width: 220px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px -16px rgba(28, 32, 65, .25);
}
.bh-panel-wide {
    min-width: 420px;
    grid-template-columns: 1fr 1fr;
}
.bh-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 400;
}
.bh-panel a:hover {
    background: var(--soft);
    color: var(--brand);
}
.bh-menu:hover .bh-panel,
.bh-menu:focus-within .bh-panel,
.bh-menu.open .bh-panel {
    display: block;
}
.bh-menu:hover .bh-panel-wide,
.bh-menu:focus-within .bh-panel-wide,
.bh-menu.open .bh-panel-wide {
    display: grid;
}
.bh-menu:hover .bh-chev,
.bh-menu.open .bh-chev {
    transform: rotate(180deg);
}
.bh-end {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bh-btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink) !important;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s, background .2s;
}
.bh-btn:hover {
    border-color: #cfd3df;
}
.bh-btn-dark {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff !important;
}
.bh-btn-dark:hover {
    background: #2a2f58;
    border-color: #2a2f58;
}
/* زرُّ صندوق الدعوة — الحجمُ الأكبر من زرّ الهيدر نفسِه */
.bh-btn-lg {
    height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
}
.bh-mobile {
    display: none;
    position: relative;
}
.bh-mobile summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    padding: 8px;
    color: var(--ink);
}
.bh-mobile summary::-webkit-details-marker {
    display: none;
}
.bh-close,
.bh-mobile[open] .bh-open {
    display: none;
}
.bh-mobile[open] .bh-close {
    display: block;
}
.bh-drawer {
    position: fixed;
    top: 60px;
    inset-inline: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 12px 20px 28px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}
.bh-drawer a {
    display: block;
    padding: 10px 0;
    color: var(--ink);
    text-decoration: none;
    font-size: 16px;
}
.bh-drawer-h {
    margin: 16px 0 4px;
    color: var(--faint);
    font-size: 13px;
    font-weight: 600;
}
.bh-drawer-cta {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.bh-drawer-cta .bh-btn {
    flex: 1;
    justify-content: center;
    height: 44px;
}

/* ── رأسُ المدوّنة (`bhd-` — ⛔ لا `bi-`: بادئةُ bootstrap-icons يقرؤها مولّدُ الأيقونات أسماءً): عنوانٌ كبيرٌ خفيف · RSS · تبويباتُ التصنيف والبحث ── */
.bhd-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 96px 0 0;
}
.bhd-title {
    margin: 0;
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
}
.bhd-rss {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}
.bhd-rss svg {
    color: var(--accent);
}
.bhd-rss:hover {
    color: var(--ink);
}
.bhd-desc {
    margin: 16px 0 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
}
.bhd-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 88px 0 40px;
    border-bottom: 1px solid var(--line);
}
.bhd-tabs {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}
.bhd-tabs::-webkit-scrollbar {
    display: none;
}
.bhd-tabs a {
    flex-shrink: 0;
    padding: 12px 2px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 15.5px;
    text-decoration: none;
    white-space: nowrap;
}
.bhd-tabs a:hover {
    color: var(--ink);
}
.bhd-tabs a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--ink);
    font-weight: 500;
}
.bhd-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--faint);
    padding-bottom: 4px;
}
.bhd-search input {
    width: 180px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15.5px;
    color: var(--ink);
}
.bhd-search input::placeholder {
    color: var(--faint);
}
.bhd-search:focus-within {
    color: var(--ink);
}
.bhd-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.bhd-results {
    margin: -16px 0 32px;
    color: var(--muted);
}

/* ── الصور ── */
.blog-media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--soft);
}
.blog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.blog-featured:hover .blog-media img,
.blog-card:hover .blog-media img {
    transform: scale(1.03);
}
.blog-media-empty {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 80% 20%, rgba(64, 81, 137, .12), transparent 55%),
        radial-gradient(circle at 20% 90%, rgba(10, 143, 122, .12), transparent 50%),
        var(--soft);
}

/* ── التصنيف والبيانات ── */
.blog-cat {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 13.5px;
    font-weight: 600;
}
.blog-excerpt {
    margin: 0 0 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--faint);
    font-size: 14px;
}

/* ── المقالُ المميّز ── */
.blog-featured {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 64px;
}
.blog-featured-title {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.45;
}
.blog-featured-title a,
.blog-card-title a {
    text-decoration: none;
    transition: color .2s;
}
.blog-featured-title a:hover,
.blog-card-title a:hover {
    color: var(--brand);
}
.blog-featured .blog-excerpt {
    font-size: 17px;
}

/* ── الشبكة ── */
.blog-section-title {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 700;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 32px;
}
.blog-card .blog-media {
    margin-bottom: 16px;
}
.blog-card-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.55;
}
.blog-card .blog-excerpt {
    font-size: 15px;
    -webkit-line-clamp: 2;
}

/* ── الترقيم ── */
.blog-pages {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 56px 0 0;
}
.blog-pages a {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}
.blog-pages a:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.blog-pages a[aria-current="page"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
}

/* ── فارغة ── */
.blog-empty {
    max-width: 560px;
    padding: 20px 0 8px;
}
.blog-empty h2 {
    margin: 0 0 8px;
    font-size: 24px;
}
.blog-empty p {
    margin: 0 0 16px;
    color: var(--muted);
}
.blog-link {
    color: var(--brand) !important;
    font-weight: 600;
    text-decoration: none;
}
.blog-link:hover {
    text-decoration: underline;
}

/* ── الدعوة ── */
.blog-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 80px 0 64px;
    padding: 36px 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef1fb 0%, #e8f6f1 100%);
}
.blog-cta-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
}
.blog-cta-text {
    margin: 0;
    color: var(--muted);
    max-width: 560px;
}

/* ── التذييل ── */
.blog-footer {
    background: var(--soft);
    border-top: 1px solid var(--line);
    font-size: 14.5px;
}
.blog-footer-in {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 24px;
}
.blog-footer-brand {
    max-width: 380px;
}
.blog-footer-brand img {
    height: 36px;
    width: auto;
    margin-bottom: 10px;
}
.blog-footer-brand p {
    margin: 0;
    color: var(--muted);
}
.blog-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px 22px;
}
.blog-footer-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
}
.blog-footer-links a:hover {
    color: var(--ink);
}
.blog-copy {
    padding-top: 16px;
    padding-bottom: 28px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 13.5px;
}

/* ── الشاشاتُ الأصغر ── */
@media (max-width: 991.98px) {
    .blog-featured {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 991.98px) {
    .bh-nav,
    .bh-end > .bh-btn {
        display: none;
    }
    .bh-mobile {
        display: block;
    }
}
@media (max-width: 767.98px) {
    .bh-in {
        height: 60px;
    }
    .bh-brand img {
        height: 32px;
    }
    .bhd-head {
        padding-top: 48px;
        align-items: center;
    }
    .bhd-title {
        font-size: 40px;
    }
    .bhd-rss {
        margin-bottom: 0;
        font-size: 0;
    }
    .bhd-rss svg {
        width: 20px;
        height: 20px;
    }
    .bhd-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 40px 0 32px;
    }
    .bhd-search {
        order: -1;
        padding: 0 0 12px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 4px;
    }
    .bhd-search input {
        width: 100%;
    }
    .blog-featured {
        margin-bottom: 48px;
    }
    .blog-featured-title {
        font-size: 24px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .blog-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        margin: 56px 0 48px;
    }
    .blog-footer-in {
        flex-direction: column;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-media img,
    .bh-btn,
    .blog-featured-title a,
    .blog-card-title a {
        transition: none;
    }
    .blog-featured:hover .blog-media img,
    .blog-card:hover .blog-media img {
        transform: none;
    }
}

/* ══ صفحةُ المقال (blog/post.blade.php) — على نمط laravel.com/blog/… ══ */
.bp-preview {
    padding: 10px 20px;
    background: #fff7e6;
    border-bottom: 1px solid #f5d9a3;
    color: #8a5a00;
    text-align: center;
    font-size: 14px;
}
.bp-head {
    padding: 56px 0 32px;
    border-bottom: 1px solid var(--line);
}
.bp-crumbs {
    display: flex;
    gap: 8px;
    font-size: 15px;
    color: var(--faint);
}
.bp-crumbs a {
    color: var(--muted);
    text-decoration: none;
}
.bp-crumbs a:last-child {
    color: var(--ink);
}
.bp-crumbs a:hover {
    color: var(--brand);
}
.bp-meta {
    display: flex;
    gap: 6px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 15px;
}
.bp-title {
    margin: 16px 0 0;
    max-width: 900px;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.35;
}
.bp-lead {
    margin: 18px 0 0;
    max-width: 760px;
    color: var(--accent);
    font-size: 19px;
    line-height: 1.8;
}
.bp-cover {
    margin: 40px 0 0;
}
.bp-cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
}
.bp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 72px;
    padding-top: 48px;
}
.bp-main {
    min-width: 0;
    max-width: 720px;
}

/* ── نصُّ المقال ── */
.bp-prose {
    font-size: 18px;
    line-height: 1.95;
    color: #2b3050;
    overflow-wrap: anywhere;
}
.bp-prose > :first-child {
    margin-top: 0;
}
.bp-prose p {
    margin: 0 0 22px;
}
.bp-prose h2,
.bp-prose h3,
.bp-prose h4 {
    color: var(--ink);
    line-height: 1.5;
    scroll-margin-top: 88px;
}
.bp-prose h2 {
    margin: 48px 0 16px;
    font-size: 28px;
    font-weight: 600;
}
.bp-prose h3 {
    margin: 36px 0 12px;
    font-size: 22px;
    font-weight: 600;
}
.bp-prose h4 {
    margin: 28px 0 10px;
    font-size: 19px;
}
/* رابطُ «#» بجانب العنوان عند المرور — القفزُ إلى القسم بالرابط */
.bp-prose h2[id]:hover::after,
.bp-prose h3[id]:hover::after {
    content: " #";
    color: var(--faint);
}
.bp-prose a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bp-prose ul,
.bp-prose ol {
    margin: 0 0 22px;
    padding-inline-start: 26px;
}
.bp-prose li {
    margin-bottom: 8px;
}
.bp-prose blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-inline-start: 4px solid var(--accent);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--ink);
}
.bp-prose blockquote p:last-child {
    margin-bottom: 0;
}
.bp-prose img,
.bp-prose figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 8px 0;
}
.bp-prose figure {
    margin: 28px 0;
}
.bp-prose figcaption {
    margin-top: 6px;
    color: var(--faint);
    font-size: 14px;
    text-align: center;
}
.bp-prose iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 12px;
    margin: 28px 0;
}
.bp-prose hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 40px 0;
}
.bp-prose code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--soft);
    font-size: 15px;
}
.bp-prose pre {
    overflow-x: auto;
    padding: 16px;
    border-radius: 12px;
    background: var(--soft);
    direction: ltr;
    text-align: left;
}
.bp-prose pre code {
    padding: 0;
    background: none;
}
.bp-table {
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.bp-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.bp-prose th,
.bp-prose td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: start;
    vertical-align: top;
}
/* الخليّةُ جملةٌ غالباً فتلتفّ (كانت `nowrap` فتُقصّ على الجوّال) — والحدُّ الأدنى يُبقي جدولَ الأعمدة الكثيرة يتمرّر بدل أن ينسحق */
.bp-prose td {
    min-width: 7.5em;
}
.bp-prose th {
    background: var(--soft);
    font-weight: 600;
    white-space: nowrap;
}
.bp-prose tr:last-child td {
    border-bottom: 0;
}

/* ── بطاقةُ القطاع · الأسئلة · آخرُ تحديث · الكاتب ── */
.bp-solution {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 40px 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f4f6fd 0%, #eef8f4 100%);
    text-decoration: none;
    transition: border-color .2s;
}
.bp-solution:hover {
    border-color: var(--brand);
}
.bp-solution span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bp-solution b {
    color: var(--ink);
    font-size: 18px;
}
.bp-solution small {
    color: var(--muted);
    font-size: 14.5px;
}
.bp-solution .bp-solution-eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}
.bp-solution-go {
    color: var(--brand);
    font-size: 22px;
}
.bp-faq {
    margin: 48px 0 0;
}
.bp-faq h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 600;
}
.bp-faq details {
    border-bottom: 1px solid var(--line);
}
.bp-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.bp-faq summary::-webkit-details-marker {
    display: none;
}
.bp-faq summary::after {
    content: "+";
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
}
.bp-faq details[open] summary::after {
    content: "−";
}
.bp-faq details p {
    margin: 0 0 16px;
    color: var(--muted);
}
.bp-updated {
    margin: 32px 0 0;
    color: var(--faint);
    font-size: 14.5px;
}
.bp-author-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 40px 0 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.bp-author-card img,
.bp-side-author img {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.bp-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 22px;
}
.bp-avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 16px;
}
.bp-author-name {
    margin: 0;
    font-weight: 600;
    font-size: 17px;
}
.bp-author-role {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}
.bp-author-bio {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
}
.bp-author-links {
    display: flex;
    gap: 14px;
    margin: 8px 0 0;
    font-size: 14px;
}
.bp-author-links a {
    color: var(--brand);
}

/* ── العمودُ الجانبيُّ اللاصق ── */
.bp-sticky {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.bp-side-h {
    margin: 0 0 12px;
    font-weight: 600;
    font-size: 15px;
}
.bp-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-inline-start: 1px solid var(--line);
}
.bp-toc a {
    display: block;
    padding: 6px 16px;
    margin-inline-start: -1px;
    border-inline-start: 2px solid transparent;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    text-decoration: none;
}
.bp-toc .lv3 a {
    padding-inline-start: 30px;
}
.bp-toc a:hover {
    color: var(--ink);
}
.bp-toc a[aria-current] {
    color: var(--ink);
    border-inline-start-color: var(--accent);
    font-weight: 500;
}
.bp-side-author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.bp-share div {
    display: flex;
    gap: 10px;
}
.bp-share a,
.bp-copy {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.bp-share a:hover,
.bp-copy:hover {
    color: var(--ink);
    border-color: #cfd3df;
}
.bp-copy.done {
    color: var(--accent);
    border-color: var(--accent);
}
.bp-cta {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--soft);
    border: 1px solid var(--line);
}
.bp-cta-h {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 17px;
}
.bp-cta p {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0 0 14px;
}
.bp-toc-m {
    display: none;
}

/* ── مقالاتٌ أخرى: أسطرٌ كـ«More from Laravel» ── */
.bp-related {
    margin-top: 80px;
}
.bp-related h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
}
.bp-related ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}
.bp-related a {
    display: grid;
    grid-template-columns: 1fr 180px 150px;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}
.bp-rel-title {
    font-weight: 500;
    font-size: 17px;
}
.bp-related a:hover .bp-rel-title {
    color: var(--brand);
}
.bp-rel-cat,
.bp-related time {
    color: var(--muted);
    font-size: 14.5px;
}
.bp-related time {
    text-align: end;
}

@media (max-width: 991.98px) {
    .bp-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .bp-side {
        display: none;
    }
    .bp-main {
        max-width: none;
    }
    .bp-toc-m {
        display: block;
        margin: 0 0 28px;
        padding: 14px 18px;
        border: 1px solid var(--line);
        border-radius: 12px;
    }
    .bp-toc-m summary {
        cursor: pointer;
        font-weight: 600;
    }
    .bp-toc-m ol {
        margin: 12px 0 0;
        padding-inline-start: 20px;
    }
    .bp-toc-m li {
        margin: 6px 0;
    }
    .bp-toc-m .lv3 {
        margin-inline-start: 14px;
    }
    .bp-toc-m a {
        color: var(--muted);
        text-decoration: none;
    }
}
@media (max-width: 767.98px) {
    .bp-head {
        padding-top: 32px;
    }
    .bp-title {
        font-size: 30px;
    }
    .bp-lead {
        font-size: 17px;
    }
    .bp-cover {
        margin-top: 24px;
    }
    .bp-grid {
        padding-top: 28px;
    }
    .bp-prose {
        font-size: 17px;
    }
    .bp-prose h2 {
        font-size: 23px;
    }
    .bp-related a {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .bp-related time {
        text-align: start;
    }
}
/* المشاركةُ على الجوّال — العمودُ الجانبيُّ يختفي تحت 992px */
.bp-share-m {
    display: none;
    margin-top: 28px;
}
@media (max-width: 991.98px) {
    .bp-share-m {
        display: block;
    }
}
