﻿.ar-root {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.ar-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ar-section {
    padding: 3rem 0;
}

.ar-footer {
    padding: 4rem 0;
    background: var(--bg-soft);
}

.ar-card {
    background: var(--elev);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.ar-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 4px;
    width: 0%;
    z-index: 50;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
    transition: width .3s ease;
}

.ar-share {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
}

.ar-share-card {
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.ar-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: filter .2s ease, transform .15s ease;
}

    .ar-btn:active {
        transform: translateY(1px);
    }

.ar-btn--twitter {
    background: #1da1f2;
}

    .ar-btn--twitter:hover {
        filter: brightness(0.95);
    }

.ar-btn--linkedin {
    background: #0a66c2;
}

    .ar-btn--linkedin:hover {
        filter: brightness(0.95);
    }

.ar-btn--whatsapp {
    background: #22c55e;
}

    .ar-btn--whatsapp:hover {
        filter: brightness(0.95);
    }

.ar-btn--link {
    background: #6b7280;
}

    .ar-btn--link:hover {
        filter: brightness(0.95);
    }

.ar-toc {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    max-height: 60vh;
    overflow: auto;
}

.ar-toc-card {
    width: 16rem;
    padding: 1.5rem;
}

.ar-toc-title {
    margin: 0 0 1rem;
    font-weight: 800;
    color: var(--text);
}

.ar-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.ar-toc-item {
    font-size: .95rem;
    color: var(--text-soft);
    cursor: pointer;
    user-select: none;
    transition: color .2s ease;
}

    .ar-toc-item:hover {
        color: var(--brand-purple);
    }

.ar-hero {
    padding: 5rem 0 3rem;
    background: var(--bg);
}

.ar-hero-inner {
    text-align: center;
    margin-bottom: 2rem;
}

.ar-meta-row {
    display: inline-flex;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.ar-chip {
    background: color-mix(in oklab, var(--brand-blue) 15%, transparent);
    color: var(--brand-blue);
    font-weight: 700;
    font-size: .85rem;
    padding: .35rem .75rem;
    border-radius: 999px;
}

.ar-dot {
    color: #d1d5db;
}

.ar-meta {
    color: #6b7280;
    font-size: .9rem;
}

.ar-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 800;
    margin: .5rem 0 1rem;
    color: var(--text);
}

.ar-subtitle {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.7;
    max-width: 48rem;
    margin: 0 auto;
}

.ar-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
}

.ar-author-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
}

.ar-author-name {
    margin: 0;
    font-weight: 800;
    color: var(--text);
}

.ar-author-role, .ar-author-org {
    margin: 0;
    color: var(--text-soft);
}

.ar-author-org {
    font-size: .9rem;
}

.ar-author-stats {
    display: flex;
    gap: 1.25rem;
}

.ar-stat {
    display: flex;
    gap: .4rem;
    align-items: center;
    color: #9aa1ac;
}

    .ar-stat i {
        font-size: .95rem;
    }

.ar-article {
    overflow: hidden;
}

.ar-hero-img {
    position: relative;
    height: clamp(16rem, 40vw, 24rem);
}

.ar-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ar-article-body {
    padding: 2rem 2.5rem;
}

.article-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 2rem 0;
    color: var(--text);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--text);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.25rem 0;
    color: var(--text);
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 1.25rem 0;
    color: var(--text);
}

.article-content ul, .article-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    color: var(--text);
}

.article-content li {
    margin: .5rem 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
}

.article-content blockquote {
    border-left: 4px solid var(--brand-blue);
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: .5rem;
    background: var(--bg);
    font-style: italic;
}

.article-content code {
    background: #152f49;
    padding: .2rem .45rem;
    border-radius: .25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
}

.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: .75rem;
    overflow: auto;
    margin: 1.25rem 0 1.75rem;
}


.ar-footer-card {
    padding: 2rem;
}

.ar-footer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ar-footer-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.ar-footer-actions {
    display: flex;
    gap: .75rem;
}

.ar-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    border-radius: .75rem;
    padding: .6rem .9rem;
    cursor: pointer;
    color: #fff;
    transition: filter .2s ease, transform .15s ease;
}

    .ar-cta:active {
        transform: translateY(1px);
    }

.ar-cta--like {
    background: #ef4444;
}

    .ar-cta--like:hover {
        filter: brightness(.95);
    }

.ar-cta--share {
    background: var(--brand-blue);
}

    .ar-cta--share:hover {
        filter: brightness(.95);
    }

.ar-footer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.ar-related-title {
    margin: .25rem 0 1rem;
    font-weight: 800;
}

.ar-related-list {
    display: grid;
    gap: .75rem;
}

.ar-related-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem;
    border-radius: .75rem;
    text-decoration: none;
    /*    color: inherit;*/
    transition: background-color .2s ease;
}

    .ar-related-item:hover {
        background: #f3f4f6;
    }

.ar-related-icon {
    width: 64px;
    height: 64px;
    border-radius: .75rem;
    display: grid;
    place-items: center;
    background: color-mix(in oklab, var(--brand-blue) 12%, transparent);
    color: var(--brand-blue);
}

.ar-related-text {
    font-weight: 600;
    color: var(--text-soft);
}

@media (max-width: 1280px) {
    .ar-share, .ar-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .ar-author {
        flex-direction: column;
        align-items: flex-start;
    }

    .ar-author-stats {
        padding-top: .25rem;
    }

    .ar-article-body {
        padding: 1.25rem;
    }

    .ar-footer-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
