/* =========================================================
   Cordinant Blog Post Content Styles
   File: /assets/css/post.css
   Use for: public blog post content blocks rendered inside .article-content
   ========================================================= */

/* Base article typography */
.article-content {
    color: #33485f;
    font-size: 1.03rem;
    line-height: 1.78;
}

.article-content h2 {
    margin: 42px 0 16px;
    color: #142235;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.article-content h3 {
    margin: 30px 0 12px;
    color: #1f334a;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.article-content p {
    margin: 0 0 18px;
    color: #33485f;
    font-size: 1.03rem;
    line-height: 1.78;
}

.article-content a {
    color: #2e6aa3;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #b6183d;
}

.article-content ul,
.article-content ol {
    margin: 18px 0 24px;
    padding-left: 24px;
    color: #33485f;
}

.article-content li {
    margin: 8px 0;
    line-height: 1.7;
}

.article-content strong {
    color: #142235;
}

/* Images */
.article-image,
.article-screenshot {
    margin: 34px 0;
}

.article-image img,
.article-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(31, 75, 122, 0.14);
    box-shadow: 0 18px 45px rgba(20, 34, 53, 0.10);
}

.article-screenshot img {
    background: #f8fafc;
    padding: 8px;
}

.article-image figcaption,
.article-screenshot figcaption,
.article-gallery figcaption {
    margin-top: 10px;
    color: #718096;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
}

/* Gallery */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 34px 0;
}

.article-gallery figure {
    margin: 0;
}

.article-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(31, 75, 122, 0.14);
    box-shadow: 0 14px 35px rgba(20, 34, 53, 0.08);
}

/* Notice blocks */
.article-note,
.article-warning,
.article-success,
.article-experience {
    margin: 28px 0;
    padding: 22px 24px;
    border-radius: 22px;
    line-height: 1.7;
}

.article-note {
    background: #f4f8ff;
    border: 1px solid rgba(46, 106, 163, 0.18);
}

.article-warning {
    background: #fff7ed;
    border: 1px solid rgba(201, 144, 82, 0.24);
}

.article-success {
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.article-experience {
    background: #f8fbff;
    border: 1px solid rgba(182, 24, 61, 0.16);
    box-shadow: 0 14px 35px rgba(20, 34, 53, 0.06);
}

.article-note strong,
.article-warning strong,
.article-success strong,
.article-experience strong {
    display: block;
    margin-bottom: 8px;
    color: #142235;
}

.article-note p:last-child,
.article-warning p:last-child,
.article-success p:last-child,
.article-experience p:last-child {
    margin-bottom: 0;
}

.article-experience h3 {
    margin-top: 0;
}

/* Quote */
.article-quote {
    margin: 34px 0;
    padding: 24px 28px;
    border-left: 5px solid #2e6aa3;
    border-radius: 18px;
    background: #f8fbff;
    color: #24364a;
    font-size: 1.1rem;
    line-height: 1.75;
}

.article-quote p {
    margin-bottom: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Code */
.article-code {
    margin: 30px 0;
    padding: 20px;
    overflow-x: auto;
    border-radius: 18px;
    background: #101827;
    color: #e5edf7;
    font-size: 0.94rem;
    line-height: 1.65;
}

.article-code code {
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Tables */
.article-table {
    margin: 32px 0;
    overflow-x: auto;
}

.article-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid rgba(31, 75, 122, 0.14);
    border-radius: 18px;
    overflow: hidden;
}

.article-table th,
.article-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(31, 75, 122, 0.10);
    text-align: left;
    vertical-align: top;
}

.article-table th {
    background: #f4f8ff;
    color: #142235;
    font-weight: 800;
}

.article-table tr:last-child td {
    border-bottom: 0;
}

/* Video */
.article-video {
    position: relative;
    margin: 34px 0;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 18px 45px rgba(20, 34, 53, 0.12);
}

.article-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Checklist */
.article-checklist {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.article-checklist li {
    position: relative;
    margin: 0;
    padding-left: 30px;
    color: #33485f;
    font-weight: 700;
    line-height: 1.6;
}

.article-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2e6aa3;
    font-weight: 900;
}

/* Two-column content block */
.article-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 32px 0;
}

.article-columns > div {
    padding: 22px;
    border: 1px solid rgba(31, 75, 122, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(20, 34, 53, 0.06);
}

.article-columns h3 {
    margin-top: 0;
}

/* Inline CTA */
.article-cta {
    margin: 38px 0;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(135deg, #142235 0%, #1f4b7a 100%);
    color: #ffffff;
    box-shadow: 0 22px 55px rgba(20, 34, 53, 0.18);
}

.article-cta h3 {
    margin: 0 0 10px;
    color: #ffffff;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.84);
}

.article-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #142235;
    font-weight: 800;
    text-decoration: none;
}

.article-cta a:hover {
    color: #142235;
    transform: translateY(-1px);
}

/* Divider */
.article-divider {
    margin: 38px 0;
    border: 0;
    border-top: 1px solid rgba(31, 75, 122, 0.14);
}

/* Small helper classes */
.article-muted {
    color: #718096;
}

.article-lead {
    color: #24364a;
    font-size: 1.12rem;
    line-height: 1.75;
}

/* Responsive */
@media (max-width: 760px) {
    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        margin-top: 34px;
    }

    .article-gallery,
    .article-columns {
        grid-template-columns: 1fr;
    }

    .article-note,
    .article-warning,
    .article-success,
    .article-quote,
    .article-experience,
    .article-cta,
    .article-columns > div {
        padding: 18px;
    }

    .article-image img,
    .article-screenshot img,
    .article-video {
        border-radius: 18px;
    }
}
