/* Uses the public template's font, colors, card shell and button classes. */
.blog-wrap { max-width: 72rem; padding-inline: 1.5rem; margin-inline: auto; }
.blog-hero { position: relative; padding: 150px 0 56px; }
.blog-hero > .blog-wrap { position: relative; text-align: center; }
.blog-kicker { color: #2563eb; font-size: 14px; font-weight: 500; }
.blog-hero h1 { margin: 20px 0; }
.blog-hero p:last-child { max-width: 740px; margin-inline: auto; }
.blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-block: 40px; }
.blog-card { overflow: hidden; transition: box-shadow .2s, transform .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px #1118270d; }
.blog-card > a { display: flex; flex-direction: column; height: 100%; }
.blog-card img { width: 100%; aspect-ratio: 1.8; object-fit: cover; background: #f3f4f6; }
.blog-card-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 24px; }
.blog-category { display: inline-block; color: #1d4ed8; font-size: 13px; font-weight: 500; background: #eff6ff; border-radius: 6px; padding: 6px 12px; }
.blog-card h2 { font-size: 22px; font-weight: 700; line-height: 1.5; margin: 14px 0 10px; }
.blog-card p { color: #4b5563; font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.blog-read { margin-top: auto; color: #2563eb; font-size: 14px; font-weight: 500; }
.blog-pagination { margin: 0 auto 50px; }
.blog-article { position: relative; padding: 145px 0 70px; }
.blog-article > .blog-wrap { position: relative; max-width: 848px; }
.blog-back { display: inline-block; margin-bottom: 28px; color: #4b5563; font-size: 14px; }
.blog-back:hover { color: #2563eb; }
.blog-article h1 { font-size: clamp(30px,4vw,48px); line-height: 1.35; font-weight: 700; margin: 18px 0; }
.blog-deck { font-size: 18px; line-height: 1.8; color: #4b5563; margin: 16px 0 24px; }
.blog-meta { color: #6b7280; font-size: 14px; line-height: 1.8; margin: 12px 0 26px; }
.blog-cover { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 16px; margin-bottom: 30px; }
.blog-toc { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px 28px; margin-bottom: 35px; }
.blog-toc ol { padding-inline-start: 22px; margin-top: 12px; line-height: 2; list-style: decimal; }
.blog-toc a:hover { color: #2563eb; text-decoration: underline; }
.blog-body { font-size: 18px; line-height: 1.95; overflow-wrap: anywhere; }
.blog-body h2 { font-size: 28px; font-weight: 700; margin: 38px 0 16px; scroll-margin-top: 110px; }
.blog-body h3 { font-size: 23px; font-weight: 700; margin: 28px 0 12px; scroll-margin-top: 110px; }
.blog-body p { margin: 16px 0; }
.blog-body ul,.blog-body ol { padding-inline-start: 28px; margin: 16px 0; list-style: disc; }
.blog-body ol { list-style: decimal; }
.blog-body a { text-decoration: underline; color: #2563eb; }
.blog-body pre { direction: ltr; text-align: left; background: #111827; color: #e5e7eb; border-radius: 12px; padding: 24px; overflow: auto; font: 14px/1.9 ui-monospace,Consolas,monospace; margin: 24px 0; }
.blog-body code { font-family: ui-monospace,Consolas,monospace; direction: ltr; unicode-bidi: isolate; }
.blog-body :not(pre) > code { background: #e5e7eb; padding: 2px 5px; border-radius: 4px; font-size: .88em; }
.blog-body img { max-width: 100%; height: auto; border-radius: 10px; }
.blog-body table { display: block; overflow: auto; width: 100%; border-collapse: collapse; font-size: 16px; margin: 24px 0; overflow-wrap: normal; }
.blog-body th,.blog-body td { border: 1px solid #e5e7eb; padding: 10px 14px; text-align: start; }
.blog-body th,.blog-body td code { white-space: nowrap; }
.blog-body blockquote { border-inline-start: 4px solid #60a5fa; padding-inline-start: 18px; color: #4b5563; }
.blog-cta { margin-block: 35px; }
.blog-related { border-top: 1px solid #e5e7eb; padding-top: 30px; }
.blog-related h2 { font-size: 25px; font-weight: 700; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.blog-related-grid a { padding: 20px; font-size: 17px; font-weight: 500; line-height: 1.7; }
.blog-related-grid a:hover { color: #2563eb; }
.blog-preview { background: #fef3c7; padding: 15px; text-align: center; color: #92400e; margin-bottom: 25px; border-radius: 8px; }
.blog-empty { padding: 50px; grid-column: 1/-1; color: #4b5563; text-align: center; }
.blog-pagination nav { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.blog-pagination a { border: 1px solid #e5e7eb; background: #fff; padding: 10px 18px; border-radius: 8px; }
.blog-pagination a:hover { border-color: #2563eb; }
.blog-article a:focus-visible,.blog-grid a:focus-visible,.blog-pagination a:focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; }
.blog-filters { grid-column: 1/-1; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; }
.blog-filters a { background: #fff; border: 1px solid #e5e7eb; color: #4b5563; }
.blog-filters a:hover { color: #2563eb; border-color: #bfdbfe; }
.blog-filters [aria-current=page] { background: #2563eb; color: #fff; border-color: #2563eb; }
.blog-filters [aria-current=page]:hover { color: #fff; }
@media(max-width:850px) { .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:570px) {
    .blog-wrap { padding-inline: 16px; }
    .blog-grid,.blog-related-grid { grid-template-columns: 1fr; }
    .blog-hero { padding: 120px 0 32px; }
    .blog-article { padding-top: 110px; }
    .blog-body,.blog-hero p:last-child { font-size: 18px; }
    .blog-body pre { padding: 16px; }
    .blog-toc { padding: 18px; }
    .blog-pagination { padding-inline: 20px; }
}
@media(prefers-reduced-motion:reduce) { .blog-card { transition: none; }.blog-card:hover { transform: none; } }
