/* ============================================================================
   guides-theme.css — shared theme for /guides/ long-form pages
   ----------------------------------------------------------------------------
   Why this file exists:
   Guide pages previously shipped their own self-contained mini design system
   (a plain ".nav" strip, a bare text footer, an isolated colour scale). The
   result rendered as a different website from the marketing pages.

   This stylesheet carries the SAME design tokens and the SAME .navbar /
   .footer chrome used by index.html / pricing.html / about.html, so guide
   pages inherit the site's identity, plus long-form article typography that
   the marketing pages don't need.

   Load order on a guide page:
     1. Inter + Cairo (Google Fonts)   — typefaces
     2. Font Awesome                    — nav + footer icons
     3. ../guides-theme.css             — this file (tokens + chrome + article)
     4. ../site-ui.css                  — shared mobile-nav overrides (LAST:
                                          it intentionally overrides .navbar
                                          behaviour under 1024px)
   Also load ../site-ui.js so the mobile hamburger works.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
    --primary: #2A86FF;
    --primary-glow: rgba(42, 134, 255, 0.6);
    --bg-base: #020617;
    --bg-surface: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', system-ui, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Reading column. --content is the TEXT width; --content-box adds the
       horizontal gutter so padded blocks (.article-body, .tail, .related)
       align pixel-for-pixel with the unpadded .guide-hero-inner. */
    --content: 820px;
    --gutter: 1.5rem;
    --content-box: calc(var(--content) + (var(--gutter) * 2));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul,
ol {
    list-style: none;
}

/* ------------------------------------------------- floating pill navbar -- */
/* Lifted verbatim from index.html so guides and marketing pages share one
   navbar. The !important flags are inherited from the source rules — they
   exist because site-ui.css re-declares these properties for mobile. */
.navbar {
    position: fixed !important;
    top: 1.5rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 95% !important;
    max-width: 1200px !important;
    background: rgba(15, 23, 42, 0.25) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 100px !important;
    z-index: 1000 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.8rem 1.5rem !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.nav-brand {
    display: flex;
    justify-content: flex-start;
}

.nav-brand img {
    height: 40px;
    width: auto;
    display: block;
    margin-top: 2px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.nav-center {
    position: absolute;
    left: 45%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    white-space: nowrap;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    text-shadow: 0 0 15px var(--primary-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.lang-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-right: 1px solid var(--glass-border);
    padding-right: 1.5rem;
    margin-right: 0.5rem;
    font-weight: 600;
}

.lang-btn {
    transition: 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    color: white;
    text-shadow: 0 0 10px white;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* --------------------------------------------------------------- buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00d2ff);
    color: white;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   GUIDE HERO
   ========================================================================== */
.guide-hero {
    position: relative;
    padding: 11rem 0 3.5rem;
    overflow: hidden;
}

/* Ambient glow behind the hero — echoes the marketing pages' aurora effect. */
.guide-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(42, 134, 255, 0.16) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.guide-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--content-box);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    opacity: 0.4;
    font-size: 0.7rem;
}

.breadcrumb .current {
    color: var(--text-main);
}

/* Eyebrow pill -------------------------------------------------------- */
.guide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    background: rgba(42, 134, 255, 0.1);
    border: 1px solid rgba(42, 134, 255, 0.28);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: clamp(2.1rem, 5.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 46rem;
}

/* Byline / meta row --------------------------------------------------- */
.guide-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.guide-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-meta i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ==========================================================================
   ARTICLE BODY
   ========================================================================== */
main {
    position: relative;
    z-index: 1;
}

.article-body {
    max-width: var(--content-box);
    margin: 0 auto;
    padding: 0 var(--gutter) 4rem;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #cbd5e1;
}

.article-body h2 {
    font-size: clamp(1.5rem, 3vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-main);
    margin: 3.5rem 0 1.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--glass-border);
    scroll-margin-top: 7rem;
}

.article-body h2:first-child {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 650;
    color: var(--text-main);
    margin: 2.25rem 0 0.85rem;
    scroll-margin-top: 7rem;
}

.article-body p {
    margin-bottom: 1.35rem;
}

.article-body strong {
    color: var(--text-main);
    font-weight: 650;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(42, 134, 255, 0.35);
    text-underline-offset: 3px;
}

.article-body a:hover {
    text-decoration-color: var(--primary);
}

/* Lists --------------------------------------------------------------- */
.article-body ul,
.article-body ol {
    margin: 0 0 1.5rem;
    padding-left: 0;
}

.article-body li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-body ul>li::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.article-body ol {
    counter-reset: guide-ol;
}

.article-body ol>li {
    counter-increment: guide-ol;
    padding-left: 2.5rem;
}

.article-body ol>li::before {
    content: counter(guide-ol);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(42, 134, 255, 0.12);
    border: 1px solid rgba(42, 134, 255, 0.3);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables -------------------------------------------------------------- */
.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0 2.25rem;
    font-size: 0.94rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.spec-table thead th {
    background: rgba(42, 134, 255, 0.09);
    color: var(--text-main);
    font-weight: 650;
    text-align: left;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.spec-table td {
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.spec-table tbody tr:last-child td {
    border-bottom: none;
}

.spec-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Wrap tables on small screens without breaking the reading column. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0 2.25rem;
}

.table-scroll .spec-table {
    margin: 0;
    min-width: 34rem;
}

/* FAQ (details/summary) ------------------------------------------------ */
.faq-mini {
    margin: 2rem 0 2.5rem;
    display: grid;
    gap: 0.75rem;
}

.faq-item-mini {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item-mini[open] {
    border-color: rgba(42, 134, 255, 0.35);
    background: rgba(42, 134, 255, 0.05);
}

.faq-q-mini {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 3rem 1.1rem 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    font-size: 1rem;
}

.faq-q-mini::-webkit-details-marker {
    display: none;
}

.faq-q-mini::after {
    content: '\f078';
    /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item-mini[open] .faq-q-mini::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-a-mini {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-a-mini p {
    margin-bottom: 0.75rem;
}

.faq-a-mini p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */
.tail {
    max-width: var(--content);
    margin: 1rem auto 6rem;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(42, 134, 255, 0.13), rgba(0, 210, 255, 0.05));
    border: 1px solid rgba(42, 134, 255, 0.28);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.tail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(42, 134, 255, 0.2) 0%, transparent 65%);
    pointer-events: none;
}

.tail>* {
    position: relative;
    z-index: 1;
}

.tail h2 {
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    font-weight: 750;
    color: var(--text-main);
    margin-bottom: 0.9rem;
    letter-spacing: -0.015em;
}

.tail p {
    color: var(--text-muted);
    max-width: 34rem;
    margin: 0 auto 2rem;
    line-height: 1.75;
    font-size: 1.03rem;
}

/* Related guides ------------------------------------------------------ */
.related {
    max-width: var(--content-box);
    margin: 0 auto 5rem;
    padding: 0 var(--gutter);
}

.related h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.related-card {
    display: block;
    padding: 1.35rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 134, 255, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.related-card .rc-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 0.55rem;
}

.related-card .rc-title {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.45;
    display: block;
}

/* ==========================================================================
   FOOTER — identical to index.html
   ========================================================================== */
.footer {
    background: var(--bg-base);
    border-top: 1px solid var(--glass-border);
    padding: 6rem 2rem 2rem;
    position: relative;
    z-index: 20;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    height: 45px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    margin-bottom: 1.5rem;
}

.footer-main p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 350px;
}

.socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: 0.3s;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--text-muted);
    margin-left: 2rem;
    transition: 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

/* ==========================================================================
   RESPONSIVE — same breakpoints as index.html (1024px / 768px)
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .guide-hero {
        padding-top: 9rem;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 1.25rem;
    }

    .navbar {
        border-radius: 20px;
        padding: 1rem 1.5rem;
        width: calc(100% - 2rem);
    }

    .nav-right {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-main p {
        margin: 0 auto 2rem;
    }

    .socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 80px;
    }

    .guide-hero {
        padding: 8rem 0 2.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        margin-top: 2.75rem;
    }

    .tail {
        margin-left: var(--gutter);
        margin-right: var(--gutter);
        padding: 2.25rem 1.5rem;
    }

    .tail .btn {
        width: 100%;
    }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   ADDITIONAL CONTENT PATTERNS  (added 2026-07-26)
   --------------------------------------------------------------------------
   The five guide pages were each authored with their own markup vocabulary
   before this stylesheet existed. Rather than rewrite their bodies — which
   would risk changing indexed copy — the classes they already use are styled
   here so every guide renders in one visual system.

     .article-content / .article-section / .section-intro
                                    arabic-music-distribution-complete-guide
     .toc, .highlight-box, .article-meta          "
     .article-body, .info-box, .meta,
     .faq-section/.faq-list/.faq-item/.faq-q/.faq-a
                                    how-to-release-music-uae-saudi-egypt
     .callout                       how-much-does-anghami-pay-per-stream,
                                    ar/guides/apple-music-distribution
     .container, .intro-section, .comparison-table, .decision-matrix,
     .decision-option, .winner-badge, .neutral-badge, .category,
     .cta-section, .footnote        nursil-music-vs-distrokid
   ========================================================================== */

/* Reading column aliases ------------------------------------------------ */
.article-content,
.container {
    max-width: var(--content-box);
    margin: 0 auto;
    padding: 0 var(--gutter) 4rem;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #cbd5e1;
}

.article-section {
    display: block;
}

.section-intro {
    color: var(--text-muted);
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Headings/lists/links/tables inside the alias containers get the same
   treatment as .article-body. Kept as a grouped selector rather than
   duplicated blocks so the two can never drift apart. */
.article-content h2,
.container h2 {
    font-size: clamp(1.5rem, 3vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-main);
    margin: 3.5rem 0 1.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--glass-border);
    scroll-margin-top: 7rem;
}

.article-content h3,
.container h3 {
    font-size: 1.2rem;
    font-weight: 650;
    color: var(--text-main);
    margin: 2.25rem 0 0.85rem;
    scroll-margin-top: 7rem;
}

.article-content p,
.container p {
    margin-bottom: 1.35rem;
}

.article-content strong,
.container strong,
.article-body em,
.article-content em,
.container em {
    color: var(--text-main);
}

.article-body em,
.article-content em,
.container em {
    font-style: italic;
}

.article-content a,
.container a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(42, 134, 255, 0.35);
    text-underline-offset: 3px;
}

.article-content ul,
.article-content ol,
.container ul,
.container ol {
    margin: 0 0 1.5rem;
    padding-left: 0;
}

.article-content li,
.container li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-content ul>li::before,
.container ul>li::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.article-content ol,
.container ol {
    counter-reset: guide-ol;
}

.article-content ol>li,
.container ol>li {
    counter-increment: guide-ol;
    padding-left: 2.5rem;
}

.article-content ol>li::before,
.container ol>li::before {
    content: counter(guide-ol);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(42, 134, 255, 0.12);
    border: 1px solid rgba(42, 134, 255, 0.3);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Byline aliases -------------------------------------------------------- */
.article-meta,
.meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.article-meta span,
.meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i,
.meta i {
    color: var(--primary);
}

/* Table of contents ----------------------------------------------------- */
.toc {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.75rem 1.75rem 1.5rem;
    margin: 0 0 3rem;
}

.toc h3 {
    margin: 0 0 1.1rem !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.toc ol {
    margin-bottom: 0 !important;
    counter-reset: toc-ol;
}

.toc ol>li {
    counter-increment: toc-ol;
    margin-bottom: 0.55rem;
    padding-left: 2rem;
}

.toc ol>li::before {
    content: counter(toc-ol) ".";
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    width: auto !important;
    height: auto !important;
    font-size: 0.9rem !important;
    top: 0 !important;
}

.toc a {
    color: #cbd5e1;
    text-decoration: none !important;
}

.toc a:hover {
    color: var(--primary);
}

/* Callouts -------------------------------------------------------------- */
.callout,
.info-box,
.highlight-box,
.footnote {
    background: rgba(42, 134, 255, 0.07);
    border: 1px solid rgba(42, 134, 255, 0.25);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    margin: 2rem 0;
}

.callout p:last-child,
.info-box p:last-child,
.highlight-box p:last-child,
.footnote p:last-child {
    margin-bottom: 0;
}

.footnote {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* FAQ — non-"mini" variant --------------------------------------------- */
.faq-list,
.faq-section {
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0 2.5rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-bottom: 0.75rem;
}

.faq-item[open] {
    border-color: rgba(42, 134, 255, 0.35);
    background: rgba(42, 134, 255, 0.05);
}

.faq-q {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 3rem 1.1rem 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-q::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-a {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Comparison page (Nursil vs DistroKid) --------------------------------- */
.comparison-table,
.decision-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0 2.25rem;
    font-size: 0.94rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table thead th,
.decision-matrix thead th {
    background: rgba(42, 134, 255, 0.09);
    color: var(--text-main);
    font-weight: 650;
    text-align: left;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table td,
.decision-matrix td {
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.comparison-table tbody tr:last-child td,
.decision-matrix tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover,
.decision-matrix tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.winner-badge,
.neutral-badge,
.category {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.winner-badge {
    background: rgba(42, 134, 255, 0.15);
    border: 1px solid rgba(42, 134, 255, 0.4);
    color: var(--primary);
}

.neutral-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.category {
    background: none;
    border: none;
    color: var(--primary);
    padding-left: 0;
}

.decision-option {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.decision-option h3 {
    margin-top: 0 !important;
}

/* .cta-section mirrors .tail so both closing CTAs look identical. */
.cta-section {
    max-width: var(--content);
    margin: 1rem auto 4rem;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(42, 134, 255, 0.13), rgba(0, 210, 255, 0.05));
    border: 1px solid rgba(42, 134, 255, 0.28);
    border-radius: 24px;
}

.cta-section h2 {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.cta-section p {
    color: var(--text-muted);
    max-width: 34rem;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   RTL — Arabic guides (/ar/guides/*)
   The chrome is direction-agnostic except for the pieces that use physical
   left/right offsets; those are mirrored here.
   ========================================================================== */
[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}

[dir="rtl"] .article-body,
[dir="rtl"] .article-content,
[dir="rtl"] .container {
    text-align: right;
}

[dir="rtl"] .article-body li,
[dir="rtl"] .article-content li,
[dir="rtl"] .container li {
    padding-left: 0;
    padding-right: 1.75rem;
}

[dir="rtl"] .article-body ul>li::before,
[dir="rtl"] .article-content ul>li::before,
[dir="rtl"] .container ul>li::before {
    left: auto;
    right: 0.35rem;
}

[dir="rtl"] .article-body ol>li,
[dir="rtl"] .article-content ol>li,
[dir="rtl"] .container ol>li {
    padding-left: 0;
    padding-right: 2.5rem;
}

[dir="rtl"] .article-body ol>li::before,
[dir="rtl"] .article-content ol>li::before,
[dir="rtl"] .container ol>li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .spec-table thead th,
[dir="rtl"] .comparison-table thead th,
[dir="rtl"] .decision-matrix thead th {
    text-align: right;
}

[dir="rtl"] .faq-q-mini,
[dir="rtl"] .faq-q {
    padding: 1.1rem 1.25rem 1.1rem 3rem;
}

[dir="rtl"] .faq-q-mini::after,
[dir="rtl"] .faq-q::after {
    right: auto;
    left: 1.25rem;
}

[dir="rtl"] .callout,
[dir="rtl"] .info-box,
[dir="rtl"] .highlight-box,
[dir="rtl"] .footnote {
    border-left: 1px solid rgba(42, 134, 255, 0.25);
    border-right: 3px solid var(--primary);
}

[dir="rtl"] .nav-center {
    left: auto;
    right: 45%;
    transform: translateX(50%);
}

[dir="rtl"] .lang-toggle {
    border-right: none;
    border-left: 1px solid var(--glass-border);
    padding-right: 0;
    padding-left: 1.5rem;
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .footer-bottom a {
    margin-left: 0;
    margin-right: 2rem;
}

[dir="rtl"] .breadcrumb .sep {
    transform: rotate(180deg);
}
