/* Blog detail only. Editorial content stays editable in CKEditor. */
.sp-blog-post {
    --sp-blog-ink: #302437;
    --sp-blog-muted: #625b68;
    --sp-blog-plum: #704587;
    --sp-blog-line: #e9e0ed;
    --sp-blog-paper: #faf7fc;
    padding-block: clamp(32px, 5vw, 76px);
    background: linear-gradient(180deg, #faf7fc 0, #fff 620px);
}
.sp-blog-post > .container { width: 100%; max-width: 1440px; padding-inline: clamp(20px, 3vw, 44px); }
.sp-blog-post .single_post { min-width: 0; }
.sp-blog-post .single_post > .blog_title {
    max-width: 1050px; margin: 0 0 24px; color: var(--sp-blog-ink);
    font-size: clamp(30px, 3.5vw, 52px); line-height: 1.13;
    font-weight: 600; letter-spacing: -.035em; text-wrap: balance;
}
.sp-blog-post .single_post > .blog_meta {
    display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 32px;
    padding: 0; color: var(--sp-blog-muted); font-size: 13px; line-height: 1.6;
}
.sp-blog-post .single_post > .blog_meta li { margin: 0; padding: 0; }
.sp-blog-post .single_post > .blog_meta i { color: var(--sp-blog-plum); }
.sp-blog-post .single_post > .blog_meta a { color: var(--sp-blog-plum); }
.sp-blog-post .single_post > .blog_img {
    margin: 0 0 clamp(30px, 4vw, 52px); border-radius: 24px; overflow: hidden;
    background: #f5f0f7; box-shadow: 0 16px 42px rgb(48 36 55 / 7%);
}
.sp-blog-post .single_post > .blog_img img { display: block; width: 100%; height: auto; margin: 0; }
.sp-blog-post .sp-blog-hero > .blog_img img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center; }
.sp-blog-post .single_post > .blog_content { padding: 0; }
.sp-blog-post .single_post > .blog_content > .blog_text { min-width: 0; }
.sp-blog-post .sp-blog-article, .sp-blog-post .sp-blog-article * { box-sizing: border-box; }
.sp-blog-post .sp-blog-article {
    max-width: 940px; margin-inline: auto; color: var(--sp-blog-ink);
    font-size: 17px; line-height: 1.85; overflow-wrap: anywhere;
}
.sp-blog-post .sp-blog-article p,
.sp-blog-post .sp-blog-article li { color: var(--sp-blog-muted); font-size: inherit; line-height: inherit; }
.sp-blog-post .sp-blog-article p { margin: 0 0 22px; }
.sp-blog-post .sp-blog-article strong { color: var(--sp-blog-ink); font-weight: 600; }
.sp-blog-post .sp-blog-article > p:first-child {
    color: #4b3b54; font-size: clamp(19px, 1.65vw, 22px); line-height: 1.75;
    margin-bottom: 28px; letter-spacing: -.01em;
}
.sp-blog-post .sp-blog-article > p:nth-child(2) {
    padding: 24px 28px; border-inline-start: 3px solid #9465a5;
    border-radius: 0 16px 16px 0; background: var(--sp-blog-paper); margin-block: 28px;
}
.sp-blog-post .sp-blog-article > section {
    margin-block: 44px; padding-top: 36px; border-top: 1px solid var(--sp-blog-line);
    display: flow-root;
}
.sp-blog-post .sp-blog-article h2 {
    max-width: 850px; margin: 0 0 24px; color: var(--sp-blog-ink);
    font-size: clamp(25px, 2.2vw, 34px); font-weight: 600; line-height: 1.25;
    letter-spacing: -.025em; text-wrap: balance; scroll-margin-top: 110px;
}
.sp-blog-post .sp-blog-article h3 {
    margin: 30px 0 16px; color: #654377; font-size: clamp(20px, 1.6vw, 23px);
    font-weight: 600; line-height: 1.4; letter-spacing: -.015em; scroll-margin-top: 110px;
}
.sp-blog-post .sp-blog-article h4 { margin: 24px 0 12px; color: var(--sp-blog-ink); font-size: 19px; line-height: 1.5; }
.sp-blog-post .sp-blog-article a {
    color: var(--sp-blog-plum); text-decoration: underline; text-decoration-color: #c5a7d4;
    text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .18s, text-decoration-color .18s;
}
.sp-blog-post .sp-blog-article a:hover { color: #452454; text-decoration-color: currentColor; }
.sp-blog-post .sp-blog-article a:focus-visible { outline: 3px solid #b68bc8; outline-offset: 4px; border-radius: 3px; }
.sp-blog-post .sp-blog-article ul, .sp-blog-post .sp-blog-article ol { margin: 24px 0 30px; padding-left: 26px; }
.sp-blog-post .sp-blog-article ul { list-style: disc outside; }
.sp-blog-post .sp-blog-article li { margin: 12px 0; padding-left: 8px; }
.sp-blog-post .sp-blog-article li::marker { color: var(--sp-blog-plum); font-weight: 700; }
.sp-blog-post .sp-blog-article ol { list-style: decimal outside; padding-left: 38px; }
.sp-blog-post .sp-blog-article ol > li { padding: 16px 20px; border-radius: 14px; background: #f8f5fa; }
.sp-blog-post .sp-blog-article blockquote {
    margin: 32px 0; padding: 26px 30px; border: 0; border-inline-start: 3px solid #b087bf;
    border-radius: 0 18px 18px 0; background: #f7f2f9; font-style: normal;
}
.sp-blog-post .sp-blog-article blockquote p:last-child { margin-bottom: 0; }
/* Preserve aspect ratios and CKEditor resizing/alignment. */
.sp-blog-post .sp-blog-article img { max-width: 100%; height: auto; border-radius: 16px; }
.sp-blog-post .sp-blog-article figure.image {
    display: table; max-width: 100%; margin: 32px auto; overflow: hidden;
    border-radius: 18px; background: #f7f3f8;
}
.sp-blog-post .sp-blog-article figure.image img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 0; }
.sp-blog-post .sp-blog-article figure.image.image_resized { display: block; }
.sp-blog-post .sp-blog-article figure.image.image_resized img { width: 100%; }
.sp-blog-post .sp-blog-article figure.image > a { display: block; }
.sp-blog-post .sp-blog-article figure.image figcaption {
    display: table-caption; caption-side: bottom; padding: 14px 20px;
    background: #f7f3f8; color: #6a5d70; text-align: center; font-size: 13px; line-height: 1.65;
}
.sp-blog-post .sp-blog-article figure.image.image_resized figcaption { display: block; }
.sp-blog-post .sp-blog-article .image-style-align-left { float: left; margin: 8px 28px 20px 0; max-width: 48%; }
.sp-blog-post .sp-blog-article .image-style-align-right,
.sp-blog-post .sp-blog-article .image-style-side { float: right; margin: 8px 0 20px 28px; max-width: 48%; }
.sp-blog-post .sp-blog-article figure.table {
    display: block; width: 100%; max-width: 100%; margin: 28px 0 32px;
    overflow-x: auto; border: 1px solid #e5d8eb; border-radius: 18px;
    background: #fff; -webkit-overflow-scrolling: touch;
}
.sp-blog-post .sp-blog-article table { width: 100%; border-collapse: collapse; border: 0; font-size: 15px; line-height: 1.65; }
.sp-blog-post .sp-blog-article table th,
.sp-blog-post .sp-blog-article table td { padding: 18px 20px; border: 0; border-bottom: 1px solid #ebe3ee; text-align: center; vertical-align: middle; }
.sp-blog-post .sp-blog-article table thead th { background: #543261; color: #fff; font-weight: 600; }
.sp-blog-post .sp-blog-article table tbody th { font-weight: 600; color: #50385c; }
.sp-blog-post .sp-blog-article table tbody tr:nth-child(even) { background: #faf7fc; }
.sp-blog-post .sp-blog-article table tbody tr:last-child > * { border-bottom: 0; }
.sp-blog-post .sp-blog-article > section:last-of-type {
    padding: clamp(24px, 3vw, 40px); border: 1px solid #785284; border-radius: 24px;
    background: linear-gradient(135deg, #3c2748, #654473); box-shadow: 0 16px 40px rgb(60 39 72 / 10%);
}
.sp-blog-post .sp-blog-article > section:last-of-type h2,
.sp-blog-post .sp-blog-article > section:last-of-type h3,
.sp-blog-post .sp-blog-article > section:last-of-type strong { color: #fff; }
.sp-blog-post .sp-blog-article > section:last-of-type p,
.sp-blog-post .sp-blog-article > section:last-of-type li { color: #eee6f2; }
.sp-blog-post .sp-blog-article > section:last-of-type a { color: #fff; text-decoration-color: #d0b9dc; }
.sp-blog-post .sp-blog-article > section:last-of-type p:last-child { margin-bottom: 0; }
.sp-blog-post .sp-blog-article > p:has(small) { padding-top: 20px; border-top: 1px solid var(--sp-blog-line); }
.sp-blog-post .sp-blog-article small { color: #746c7a; font-size: 13px; line-height: 1.7; }
.sp-blog-post .blog_post_footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--sp-blog-line); }
@media (max-width: 767px) {
    .sp-blog-post .sp-blog-hero > .blog_img img { aspect-ratio: auto; height: auto; }
    .sp-blog-post .single_post > .blog_meta { margin-bottom: 24px; gap: 8px 16px; font-size: 12px; }
    .sp-blog-post .single_post > .blog_img { border-radius: 16px; }
    .sp-blog-post .sp-blog-article { font-size: 16px; line-height: 1.8; }
    .sp-blog-post .sp-blog-article > p:nth-child(2) { padding: 20px; }
    .sp-blog-post .sp-blog-article > section { margin-block: 32px; padding-top: 28px; }
    .sp-blog-post .sp-blog-article figure.table { border-radius: 12px; }
    .sp-blog-post .sp-blog-article table th, .sp-blog-post .sp-blog-article table td { padding: 13px 10px; }
    .sp-blog-post .sp-blog-article table { min-width: 340px; font-size: 14px; }
    .sp-blog-post .sp-blog-article figure.image { margin-block: 26px; }
    .sp-blog-post .sp-blog-article figure.image.image_resized,
    .sp-blog-post .sp-blog-article .image-style-align-left,
    .sp-blog-post .sp-blog-article .image-style-align-right,
    .sp-blog-post .sp-blog-article .image-style-side { float: none; width: 100% !important; max-width: 100%; margin-inline: auto; }
    .sp-blog-post .sp-blog-article ol { padding-left: 27px; }
    .sp-blog-post .sp-blog-article ol > li { padding: 14px; }
    .sp-blog-post .sp-blog-article > section:last-of-type { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .sp-blog-post .sp-blog-article a { transition: none; } }

/* Article banner label is not a heading; retain the existing breadcrumb typography. */
.page-title-mini .page-title .sp-blog-breadcrumb-label { font-size: 28px; font-weight: 700; line-height: 1.2; color: #292b2c; margin: 0; }
