/* Blog index (/blog) and posts (/blog/<slug>). Loaded after base.css and homepage.css (menu, footer, fonts). */

.blog-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 24px 24px;
    color: var(--black);
}

.blog-crumbs {
    margin: 0 0 10px;
    font-size: 14px;
    color: #5a5960;
}
.blog-crumbs a {
    color: var(--primarycolor);
    text-decoration: none;
}
.blog-crumbs a:hover {
    text-decoration: underline;
}
.blog-title {
    margin: 0;
    font-size: 36px;
    line-height: 1.25;
    font-weight: 700;
}
.blog-meta {
    margin: 12px 0 0;
    font-size: 14px;
    color: #5a5960;
}

/* Post body */
.blog-body {
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.75;
    color: #34333a;
}
.blog-body h2 {
    margin: 44px 0 12px;
    font-size: 25px;
    line-height: 1.3;
    color: var(--black);
}
.blog-body h3 {
    margin: 30px 0 8px;
    font-size: 19px;
    line-height: 1.35;
    color: var(--black);
}
.blog-body p {
    margin: 0 0 16px;
}
.blog-body ol,
.blog-body ul {
    margin: 0 0 16px;
    padding-left: 24px;
}
.blog-body li + li {
    margin-top: 6px;
}
.blog-body a {
    color: var(--primarycolor);
    font-weight: 600;
}
.blog-body code {
    padding: 1px 5px;
    font-size: 0.9em;
    background: #F3EEF7;
    border-radius: 4px;
}
.blog-body kbd {
    padding: 1px 6px;
    font: inherit;
    font-size: 0.85em;
    background: #ffffff;
    border: 1px solid #cfc6d8;
    border-bottom-width: 2px;
    border-radius: 4px;
}
.blog-answer {
    padding: 18px 20px;
    background: #F7F2FB;
    border: 1px solid #E4DAEC;
    border-radius: 12px;
}
.blog-tip {
    padding: 14px 18px;
    font-size: 16px;
    background: #FFF8EC;
    border: 1px solid #F3DDB3;
    border-radius: 10px;
}
.blog-body ul.blog-checklist {
    list-style: none;
    padding-left: 0;
}
.blog-checklist li {
    position: relative;
    padding-left: 32px;
}
.blog-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primarycolor);
    border-radius: 4px;
    box-sizing: border-box;
}

.blog-table-wrap {
    margin: 0 0 18px;
    overflow-x: auto;
    border: 1px solid #E4DAEC;
    border-radius: 12px;
}
.blog-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.55;
}
.blog-table thead tr {
    background: #F7F2FB;
}
.blog-table th,
.blog-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}
.blog-table tbody tr {
    border-top: 1px solid #f0ebf4;
}

/* FAQ (static, so Google and readers see every answer) */
.blog-faq {
    margin-top: 44px;
    padding-top: 8px;
}
.blog-faq h2 {
    margin: 0 0 12px;
    font-size: 25px;
}
.blog-faq-item {
    padding: 16px 0;
    border-top: 1px solid #ebe8f0;
}
.blog-faq-item h3 {
    margin: 0 0 6px;
    font-size: 17px;
}
.blog-faq-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #4a4b52;
}

.blog-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding: 24px 26px;
    background: var(--primarycolor);
    color: var(--white);
    border-radius: 14px;
}
.blog-cta > div {
    flex: 1 1 360px;
}
.blog-cta-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}
.blog-cta-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}
.blog-cta-button {
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primarycolor);
    background: var(--white);
    border-radius: 6px;
    text-decoration: none;
}
.blog-cta-button:hover {
    background: #F6F0FA;
}

/* Index */
.blog-index-lead {
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--textcolor);
}
.blog-list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.blog-card {
    padding: 24px;
    border: 1px solid #E4DAEC;
    border-radius: 14px;
}
.blog-card .blog-meta {
    margin: 0 0 6px;
}
.blog-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.35;
}
.blog-card h2 a {
    color: var(--black);
    text-decoration: none;
}
.blog-card h2 a:hover {
    color: var(--primarycolor);
    text-decoration: underline;
}
.blog-card p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--textcolor);
}
.blog-card-more {
    font-weight: 600;
    color: var(--primarycolor);
    text-decoration: none;
}

@media only screen and (max-width: 800px) {
    .blog-page {
        padding: 8px 16px 16px;
    }
    .blog-title {
        font-size: 27px;
    }
    .blog-body {
        font-size: 16px;
    }
    .blog-body h2,
    .blog-faq h2 {
        font-size: 21px;
    }
    .blog-cta {
        padding: 20px;
    }
}

/* Phones: each table row becomes a small card, with the column name above each value (td data-label). */
@media only screen and (max-width: 600px) {
    .blog-table-wrap {
        overflow: visible;
        border: 0;
    }
    .blog-table {
        min-width: 0;
    }
    .blog-table thead {
        display: none;
    }
    .blog-table tbody tr {
        display: block;
        margin-bottom: 12px;
        padding: 4px 0;
        border: 1px solid #E4DAEC;
        border-radius: 12px;
    }
    .blog-table td {
        display: block;
        padding: 8px 16px;
    }
    .blog-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.03em;
        color: var(--primarycolor);
    }
}
