/* ==================================================
   Codexal — long-form article layout.

   The 2026 trend articles share one stylesheet instead of each edition
   carrying its own 400-line <style> block. The openai-codex article is
   where this vocabulary was first written by hand; everything below is
   that vocabulary, plus the [dir="rtl"] overrides the Arabic edition
   used to keep in a forked copy of the same block.

   Loaded with:  <link rel="stylesheet" href="/assets/css/article.css">
================================================== */

.blog-article {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.blog-header {
    margin-bottom: 30px;
}

.blog-meta {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.blog-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0 36px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.lead-text {
    font-size: 19px;
    line-height: 1.7;
    color: #475569;
}

.blog-content {
    line-height: 1.85;
    color: #334155;
    font-size: 17px;
}

.blog-content h2 {
    font-size: 27px;
    line-height: 1.3;
    color: #0f172a;
    margin: 44px 0 16px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.blog-content h3 {
    font-size: 21px;
    color: #0f172a;
    margin: 30px 0 12px;
    font-weight: 700;
}

.blog-content h4 {
    font-size: 18px;
    color: #1e293b;
    margin: 22px 0 10px;
    font-weight: 600;
}

.blog-content ul,
.blog-content ol {
    padding-left: 26px;
    margin: 16px 0;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-content a {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Terminal blocks. Forced LTR so the Arabic edition of this article can
   reuse the same markup without the shell reordering a command. */
.code-block {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 14.5px;
    line-height: 1.7;
    white-space: pre;
    tab-size: 2;
}

.code-block .cmt {
    color: #7dd3fc;
}

.code-label {
    direction: ltr;
    display: inline-block;
    background: #1e293b;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 6px 6px 0 0;
    margin: 22px 0 -20px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.blog-content code {
    direction: ltr;
    unicode-bidi: isolate;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
}

.highlight-box {
    background: #f8fafc;
    border-left: 5px solid #0284c7;
    padding: 24px;
    margin: 28px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pro-tip {
    background: #f0fdf4;
    border-left: 5px solid #16a34a;
    padding: 20px;
    margin: 24px 0;
    border-radius: 8px;
}

.warning-box {
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
    padding: 20px;
    margin: 24px 0;
    border-radius: 8px;
}

.toc-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0 40px;
}

.toc-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.toc-list a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
}

.toc-list a:hover {
    color: #0369a1;
    text-decoration: underline;
}

.comparison-table {
    width: 100%;
    margin: 28px 0;
    font-size: 15px;
    overflow-x: auto;
    display: block;
}

.comparison-table table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 13px 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: #f8fafc;
}

.role-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 22px;
    margin: 18px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.role-card h4 {
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.surface-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.faq-accordion {
    margin: 28px 0;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #ffffff;
}

.faq-header {
    padding: 16px 20px;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    border-radius: 8px;
}

.faq-body {
    padding: 18px 20px;
    color: #475569;
    line-height: 1.7;
}

.next-read {
    display: block;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff !important;
    border-radius: 14px;
    padding: 24px 28px;
    margin: 32px 0;
    text-decoration: none !important;
    border: 1px solid #334155;
}

.next-read .kicker {
    display: block;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.next-read strong {
    display: block;
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.next-read em {
    display: block;
    color: #cbd5e1;
    font-style: normal;
    font-size: 15px;
    line-height: 1.6;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 26px 0;
}

.plan-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
}

.plan-col h4 {
    margin-top: 0 !important;
    color: #0369a1;
}

.plan-col ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.key-facts {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 0;
    margin: 28px 0;
}

.key-facts dl {
    margin: 0;
    display: grid;
    grid-template-columns: 200px 1fr;
}

.key-facts dt {
    font-weight: 600;
    color: #0f172a;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.key-facts dd {
    margin: 0;
    padding: 12px 20px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
    .key-facts dl {
        grid-template-columns: 1fr;
    }

    .key-facts dt {
        border-bottom: none;
        padding-bottom: 0;
    }

    .blog-content h2 {
        font-size: 23px;
    }
}

/* ---- RTL editions ------------------------------------------------------
   Arabic and Urdu mix Arabic prose with Latin product names, so the only
   things that change are the ones that have a side: list indents, table
   alignment, and the accent border on a callout. Terminal blocks and
   inline <code> are already isolated LTR above, which is what keeps a
   shell command from being reordered mid-line. */

[dir="rtl"] .blog-tag {
    text-transform: none;
}

[dir="rtl"] .lead-text {
    line-height: 1.9;
}

[dir="rtl"] .blog-content {
    line-height: 2;
}

[dir="rtl"] .blog-content h2 {
    font-size: 26px;
    line-height: 1.5;
}

[dir="rtl"] .blog-content ul,
[dir="rtl"] .blog-content ol {
    padding-left: 0;
    padding-right: 26px;
}

[dir="rtl"] .blog-content a {
    text-underline-offset: 3px;
}

[dir="rtl"] .comparison-table th,
[dir="rtl"] .comparison-table td {
    text-align: right;
}

[dir="rtl"] .highlight-box,
[dir="rtl"] .pro-tip,
[dir="rtl"] .warning-box {
    border-left: 0;
    border-right: 5px solid #0284c7;
}

[dir="rtl"] .pro-tip {
    border-right-color: #16a34a;
}

[dir="rtl"] .warning-box {
    border-right-color: #f59e0b;
}

[dir="rtl"] .plan-col ul {
    padding-left: 0;
    padding-right: 20px;
}

/* ---- Added for the data-led 2026 trend articles ------------------------
   A trend article lives or dies on whether its numbers are legible and
   attributed, so figures get their own tile and every block of figures
   gets a visible source line. */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
}

.stat b {
    display: block;
    font-size: 26px;
    line-height: 1.15;
    color: #0284c7;
    margin-bottom: 6px;
}

.stat span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.source-note {
    font-size: 13.5px;
    color: #64748b;
    margin: -12px 0 26px;
}

.source-note a {
    color: #64748b;
}
