/* Scoped editorial layouts, sharing the site's blue palette and white cards. */
.container.blog-container { max-width: 1080px; }
.container.blog-index-container { max-width: 940px; }
.card.blog-shell { padding: clamp(1.25rem, 4vw, 2.75rem); }
.blog-shell a { text-underline-offset: .2em; }
.blog-shell a:focus-visible,
.blog-shell summary:focus-visible { outline: 3px solid #1565c0; outline-offset: 5px; border-radius: 4px; }
.blog-header { text-align: center; margin: .25rem auto 2rem; max-width: 740px; }
.blog-eyebrow { color: #426588; font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.blog-header h1 { margin: .65rem 0 .85rem; font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.2; letter-spacing: -.035em; }
.blog-header h1 span { color: #2d5a87; }
.blog-header > p:last-child { color: #596b7d; font-size: 1.03rem; line-height: 1.7; }
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.25rem 0; border-top: 1px solid #e8edf2; margin-bottom: .75rem; }
.blog-filters a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border: 1px solid #dfe7ef; border-radius: 22px; color: #415b75; text-decoration: none; font-size: .82rem; font-weight: 600; transition: background .15s, border-color .15s; }
.blog-filters a:hover { background: #f0f5fa; border-color: #9db6cd; }
.blog-filters a[aria-current] { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.blog-filters a span { font-size: .72rem; opacity: .8; }
.blog-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.blog-card:has(a:focus-visible) { outline: 3px solid #1565c0; outline-offset: 4px; }
.blog-card:hover h3 a { text-decoration: underline; }
/* A single chronological feed: date, headline, introduction, reading link. */
.blog-entry { padding: 1.8rem 0; border-bottom: 1px solid #e3eaf1; }
.blog-entry:last-child { border-bottom: 0; padding-bottom: .25rem; }
.blog-entry .blog-meta { font-size: .8rem; margin-bottom: .7rem; }
.blog-entry time { color: #345f86; font-weight: 650; }
.blog-entry h2 { text-align: left; font-size: clamp(1.25rem, 2.8vw, 1.55rem); line-height: 1.4; letter-spacing: -.015em; margin: 0 0 .85rem; }
.blog-entry h2 a { color: #1e3a5f; text-decoration: none; }
.blog-entry h2 a:hover { text-decoration: underline; }
.blog-entry > p { color: #526779; font-size: .97rem; line-height: 1.8; margin-bottom: 1rem; }
.blog-entry-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; }
.blog-entry-category { color: #687b8c; font-size: .8rem; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .76rem; color: #617184; }
.blog-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 2rem 0 1rem; }
.blog-section-heading h2 { margin: 0; text-align: left; font-size: 1.2rem; color: #1e3a5f; }
.blog-section-heading > span { flex-shrink: 0; font-size: .8rem; color: #66788a; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.blog-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 1.4rem; border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.blog-card:hover { border-color: #a3bbd1; box-shadow: 0 5px 18px rgb(30 58 95 / 6%); }
.blog-category { display: inline-block; font-size: .73rem; font-weight: 650; color: #315e88; background: #edf4fa; padding: .25rem .6rem; border-radius: 5px; text-decoration: none; }
.blog-card h3 { font-size: 1.15rem; line-height: 1.4; margin: .9rem 0 .65rem; letter-spacing: -.01em; }
.blog-card h3 a { color: #1e3a5f; text-decoration: none; }
.blog-card > p { color: #5c6b7a; font-size: .88rem; line-height: 1.65; margin-bottom: 1.25rem; }
.blog-card-bottom { width: 100%; margin-top: auto; display: flex; align-items: center; gap: .75rem; justify-content: space-between; }
.blog-card-arrow { color: #315e88; font-size: 1.35rem; }
.blog-training { display: flex; align-items: center; gap: 1.75rem; justify-content: space-between; background: #f1f6fb; border-left: 3px solid #2d5a87; border-radius: 0 10px 10px 0; padding: 1.5rem; margin-top: 2.25rem; }
.blog-training h2 { text-align: left; font-size: 1.15rem; margin: 0 0 .45rem; color: #1e3a5f; }
.blog-training p { color: #4d647b; font-size: .88rem; line-height: 1.65; max-width: 60ch; }
.blog-training .btn { flex-shrink: 0; white-space: nowrap; font-size: .9rem; padding: .7rem 1.1rem; }
.blog-text-link,
.blog-back-link { color: #2d5a87; font-weight: 600; font-size: .9rem; }
.blog-back-link { display: inline-block; margin-top: 1.75rem; }
.blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e3eaf1; font-size: .8rem; }
.blog-share > span { color: #5b7083; margin-right: .5rem; }
.blog-preview-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; margin: 1.5rem 0; border: 1px solid #d4e2ef; border-radius: 10px; background: #f1f6fb; color: #345f86; }
.blog-preview-notice p { font-size: .88rem; line-height: 1.65; }
.blog-preview-notice a { font-size: .85rem; color: #2d5a87; }
.blog-preview-notice .btn { margin: 0; }
.blog-publish-form { margin: 0; }
.blog-ai-review { padding: 1rem 1.25rem; margin: 1.5rem 0; border: 1px solid #d4e2ef; border-radius: 10px; background: #f7fafd; font-size: .9rem; line-height: 1.7; }
.blog-ai-review-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.blog-ai-review-heading h2 { margin: 0; text-align: left; font-size: 1.1rem; color: #345f86; }
.blog-ai-review .btn { padding: .4rem .7rem; font-size: .8rem; margin: 0; }
.blog-ai-review p { margin-top: .6rem; }
.blog-ai-review-meta { font-size: .78rem; color: #617184; }
.blog-ai-review details { margin-top: .8rem; }
.blog-ai-review summary { cursor: pointer; color: #345f86; font-weight: 600; }
.blog-ai-review h3 { font-size: .95rem; margin-top: 1rem; color: #345f86; }
.blog-ai-review ul { padding-left: 1.25rem; }
.blog-ai-review a { overflow-wrap: anywhere; }
.blog-empty { padding: 2rem 1rem; text-align: center; border: 1px dashed #cfdae5; border-radius: 12px; }
.blog-empty h2 { font-size: 1.25rem; }
.blog-empty p { color: #5c6b7a; max-width: 52ch; margin: 0 auto 1rem; }

/* Article reading: comfortable measure, quiet metadata, sticky desktop contents. */
.blog-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: #687b8d; font-size: .8rem; margin-bottom: 1.75rem; }
.blog-breadcrumb a { color: #476b8c; text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 5rem; }
.blog-article-header { padding-bottom: 1.75rem; margin-bottom: 2rem; border-bottom: 1px solid #e3eaf1; }
.blog-article-header h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.25; letter-spacing: -.025em; text-align: left; margin: 1rem 0; max-width: 30ch; }
.blog-article-description { font-size: 1.05rem; line-height: 1.7; color: #5a6e80; max-width: 72ch; margin-bottom: 1.25rem; }
.blog-byline { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; font-size: .8rem; color: #4c647b; }
.blog-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 205px; gap: 2rem; align-items: start; }
.blog-toc { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; border-left: 1px solid #dfe7ef; padding-left: 1.25rem; }
.blog-toc summary,
.blog-toc-desktop > p { color: #1e3a5f; font-size: .85rem; font-weight: 700; }
.blog-toc summary { cursor: pointer; }
.blog-toc-mobile { display: none; }
.blog-toc ol { list-style: none; margin-top: .85rem; }
.blog-toc li + li { margin-top: .65rem; }
.blog-toc a { color: #536e86; font-size: .78rem; line-height: 1.5; display: block; text-decoration: none; }
.blog-toc a:hover { color: #1e3a5f; text-decoration: underline; }
.blog-prose { grid-column: 1; grid-row: 1; min-width: 0; max-width: 70ch; color: #354454; font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.blog-prose > p:first-child { font-size: 1.08rem; color: #3a5269; }
.blog-prose p,
.blog-prose ul,
.blog-prose ol,
.blog-prose blockquote,
.blog-prose pre { margin-bottom: 1.15rem; }
.blog-prose h2,
.blog-prose h3,
.blog-prose h4 { text-align: left; line-height: 1.4; color: #1e3a5f; scroll-margin-top: 1.5rem; }
.blog-prose h2 { margin: 2rem 0 .85rem; font-size: 1.35rem; letter-spacing: -.015em; }
.blog-prose h3 { margin: 1.5rem 0 .65rem; font-size: 1.12rem; }
.blog-prose h4 { margin: 1.25rem 0 .5rem; }
.blog-prose strong { color: #253f59; font-weight: 650; }
.blog-prose a { color: #175f9b; text-decoration-thickness: 1px; }
.blog-prose a:hover { color: #123e65; }
.blog-prose ul,
.blog-prose ol { padding-left: 1.5rem; }
.blog-prose li + li { margin-top: .45rem; }
.blog-prose li > p { margin-bottom: .45rem; }
.blog-prose blockquote { border-left: 3px solid #8aaccb; background: #f3f7fb; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }
.blog-prose blockquote p:last-child { margin-bottom: 0; }
.blog-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .86rem; line-height: 1.6; margin: 1.5rem 0; }
.blog-prose th { background: #edf3f9; color: #254869; font-weight: 650; }
.blog-prose th,
.blog-prose td { padding: .7rem .85rem; border: 1px solid #dce5ee; text-align: left; min-width: 110px; }
.blog-prose tr:nth-child(even) td { background: #f8fafc; }
.blog-prose pre { overflow-x: auto; background: #f3f6f9; padding: 1rem; border-radius: 8px; }
.blog-prose code { font-size: .9em; background: #f0f4f8; border-radius: 3px; padding: .1em .25em; }
.blog-prose pre code { padding: 0; }
.blog-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-prose hr { border: 0; border-top: 1px solid #e3eaf1; margin: 2rem 0; }

@media (max-width: 800px) {
    .blog-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .blog-toc { grid-column: 1; grid-row: 1; position: static; border: 1px solid #e0e8ef; border-radius: 8px; padding: 1rem 1.25rem; background: #f7f9fc; }
    .blog-toc-desktop { display: none; }
    .blog-toc-mobile { display: block; }
    .blog-prose { grid-column: 1; grid-row: 2; max-width: none; }
    .blog-toc ol { columns: 2; column-gap: 1.5rem; }
    .blog-toc li { break-inside: avoid; padding-bottom: .5rem; }
    .blog-toc li + li { margin-top: 0; }
}
@media (max-width: 600px) {
    .blog-header { margin-bottom: 1.5rem; }
    .blog-header > p:last-child { font-size: .93rem; }
    .blog-desktop-break { display: none; }
    .blog-filters { gap: .4rem; }
    .blog-filters a { padding: .5rem .65rem; font-size: .76rem; }
    .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .blog-card { padding: 1.2rem; }
    .blog-training { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
    .blog-section-heading h2 { font-size: 1.08rem; }
    .blog-toc ol { columns: 1; }
    .blog-article-header { margin-bottom: 1.5rem; }
    .blog-article-description { font-size: .97rem; }
    .blog-prose { font-size: .97rem; line-height: 1.8; }
    .blog-prose > p:first-child { font-size: 1.02rem; }
    .blog-prose h2 { font-size: 1.2rem; }
    .blog-breadcrumb { margin-bottom: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-filters a { transition: none; }
}
@media print {
    .blog-toc,
    .blog-training,
    .blog-related,
    .blog-share,
    .blog-back-link { display: none; }
    .blog-reading-layout { display: block; }
    .blog-prose { max-width: none; }
}
