/* =================================================
   ARTICLE PAGE
   ================================================= */

.article {
    width: 100%;
    min-height: 100vh;

    /* IMPORTANT:
       Keeps article content below fixed navbar */
    padding-top: 125px;
    padding-bottom: 80px;
}


.article .container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}


/* ===============================
   ARTICLE HEADER
   =============================== */

.article-header {
    margin-bottom: 50px;
}

.article-header .category {
    display: inline-block;

    margin-bottom: 14px;

    color: #38bdf8;
    font-size: 15px;
    font-weight: 600;
}


.article-header h1 {
    margin: 0;

    color: #f8fafc;

    font-size: 40px;
    line-height: 1.25;
    font-weight: 700;
}


.article-header .meta {
    margin-top: 16px;

    color: #94a3b8;

    font-size: 15px;
}


/* ===============================
   ARTICLE CONTENT
   =============================== */

.article-content {
    color: #cbd5e1;

    font-size: 16px;

    line-height: 1.8;
}


.article-content h2 {
    margin-top: 52px;
    margin-bottom: 18px;

    color: #f8fafc;

    font-size: 28px;
    line-height: 1.3;
}


.article-content h3 {
    margin-top: 38px;
    margin-bottom: 15px;

    color: #f8fafc;

    font-size: 22px;
}


.article-content p {
    margin-bottom: 25px;
}


.article-content strong {
    color: #f8fafc;
}


/* ===============================
   LISTS
   =============================== */

.article-content ul {
    margin: 20px 0 30px;

    padding-left: 28px;
}


.article-content li {
    margin: 9px 0;
}


.article-content li::marker {
    color: #38bdf8;
}


/* ===============================
   CODE
   =============================== */

.article-content pre {
    margin: 30px 0;

    padding: 22px;

    overflow-x: auto;

    background: #080f1d;

    border-left: 3px solid #38bdf8;
    border-radius: 7px;

    color: #7dd3fc;

    font-family: Consolas, "Courier New", monospace;

    font-size: 14px;
    line-height: 1.7;
}


.article-content code {
    font-family: Consolas, "Courier New", monospace;
}


/* ===============================
   TABLE
   =============================== */

.article-content table {
    width: 100%;

    margin: 30px 0;

    border-collapse: collapse;

    background: #111c2e;

    color: #cbd5e1;
}


.article-content th,
.article-content td {
    padding: 13px 16px;

    border: 1px solid #26364b;

    text-align: left;
}


.article-content th {
    color: #f8fafc;

    background: #18253a;
}


/* ===============================
   BACK BUTTON
   =============================== */

.back-btn {
    display: inline-block;

    margin-top: 55px;

    color: #38bdf8;

    text-decoration: none;

    font-weight: 600;
}


.back-btn:hover {
    text-decoration: underline;
}


/* ===============================
   MOBILE
   =============================== */

@media (max-width: 768px) {

    .article {
        padding-top: 120px;
    }

    .article .container {
        width: 90%;
    }

    .article-header h1 {
        font-size: 30px;
    }

    .article-content {
        font-size: 15.5px;
    }

    .article-content h2 {
        font-size: 25px;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
    }
}
