/* Reusable compact article cards; append future posts to .blog-post-list. */
.blog-post-list { display: grid; gap: 24px; }
.blog-post { background: #fff; border: 1px solid #dce5f2; border-radius: 16px; padding: 28px; }
.blog-post-header h2 { margin: 0 0 16px; font-size: clamp(23px,2.4vw,30px); line-height: 1.3; letter-spacing: -.02em; color: #182847; }
.blog-post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; color: #60728e; font-size: 13px; }
.blog-post-meta > span { font-weight: 750; color: #182847; }
.blog-post-meta > a { color: #0d4f9c; text-decoration: underline; text-underline-offset: 3px; }
.why-story-prose .blog-post-author-role { margin: 8px 0 20px; font-size: 12px !important; line-height: 1.6 !important; color: #71819a; }
.why-story-prose .blog-post-preview { margin: 0 0 18px; }
.blog-post-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; color: #0d4f9c; font-size: 14px; font-weight: 750; padding: 12px 0 0; border-top: 1px solid #e5ebf4; }
.blog-post-details > summary::-webkit-details-marker { display: none; }
.blog-post-details > summary:focus-visible { outline: 2px solid #2478bd; outline-offset: 5px; border-radius: 4px; }
.blog-read-less { display: none; }
.blog-post-details[open] .blog-read-more { display: none; }
.blog-post-details[open] .blog-read-less { display: inline; }
.blog-toggle-icon { font-size: 22px; line-height: 1; transition: transform .2s; }
.blog-post-details[open] .blog-toggle-icon { transform: rotate(45deg); }
.blog-post-body { padding-top: 24px; }
.why-story-prose .blog-post-body p { margin: 0 0 18px; }
.blog-post-body h3 { margin: 32px 0 18px; font-size: 23px; line-height: 1.35; letter-spacing: -.015em; color: #182847; }
.why-story-prose .blog-post-body p:last-child { margin-bottom: 0; }
@media(max-width:700px) { .blog-post { padding: 22px 18px; } }
@media(prefers-reduced-motion:reduce) { .blog-toggle-icon { transition: none; } }

/* Article library: shared page banner and light background, image cards and sidebar. */
.blogs-page .why-story-shell { width: min(1180px, calc(100% - 48px)); }
.blogs-page .why-story-prose { max-width: none; }
.blog-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 24px; align-items: start; }
.blog-results { min-width: 0; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.blog-filters button { border: 1px solid #dce5f2; border-radius: 24px; padding: 10px 14px; background: #fff; color: #182847; font: inherit; font-size: 13px; cursor: pointer; }
.blog-filters button[aria-pressed="true"] { background: linear-gradient(100deg,#7837ad,#2478bd); color: #fff; border-color: transparent; }
.blog-post-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: start; }
.blog-post { padding: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 8px 24px #14223608; }
.blog-post[hidden], .blog-empty[hidden] { display: none; }
.blog-cover { display: block; width: 100%; aspect-ratio: 1.8; object-fit: cover; }
.blog-card-content { padding: 18px; }
.blog-card-category { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 11px; color: #71819a; }
.blog-card-category > span { color: #2478bd; font-weight: 750; }
.blog-post-header h2 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.blog-post:not(.is-expanded) .blog-post-header h2 { height: 104px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.blog-post:not(.is-expanded) .blog-post-meta { min-height: 44px; }
.blogs-page .blog-post:not(.is-expanded) .blog-post-preview { height: 65.1px; }
.blog-post-meta { font-size: 12px; gap: 8px; }
.blog-post-meta time, .blog-post-author-role { display: none; }
.blog-post-meta > a { display: block; width: 100%; }
.blogs-page .blog-post-preview { font-size: 14px !important; line-height: 1.55 !important; margin: 14px 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-post-details > summary { border: 0; padding: 0; }
.blog-post.is-expanded { grid-column: 1 / -1; }
.blog-post.is-expanded .blog-cover { max-height: 280px; }
.blog-post.is-expanded .blog-card-content { padding: 28px; }
.blog-post.is-expanded .blog-post-header h2 { font-size: 28px; }
.blog-post.is-expanded .blog-post-author-role { display: block; }
.blogs-page .blog-post.is-expanded .blog-post-preview { display: block; }
.blog-sidebar { display: grid; gap: 20px; }
.blog-search-label { font-size: 13px; color: #445475; margin-bottom: -12px; }
#blog-search { width: 100%; min-width: 0; border: 1px solid #dce5f2; border-radius: 12px; background: #fff; padding: 14px; color: #182847; font: inherit; font-size: 14px; }
.blog-sidebar-panel { padding: 20px; background: #fff; border: 1px solid #dce5f2; border-radius: 14px; }
.blog-sidebar-panel h2 { font-size: 21px; margin: 0 0 16px; color: #182847; }
.blog-category-list { display: grid; gap: 4px; }
.blog-category-list button { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #445475; font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.blog-category-list button[aria-pressed="true"] { background: #edf3fc; color: #0d4f9c; }
.blog-count { color: #71819a; }
.blogs-page .blog-sidebar-panel p { font-size: 14px !important; line-height: 1.6 !important; margin-bottom: 18px; }
.blog-sidebar-panel .button { width: 100%; justify-content: center; }
.blog-filters button:focus-visible, .blog-category-list button:focus-visible, #blog-search:focus-visible { outline: 2px solid #2478bd; outline-offset: 3px; }
@media(max-width:1100px) { .blog-post-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) { .blog-layout { grid-template-columns: 1fr; } .blog-sidebar { grid-row: 1; } .blog-sidebar-panel { display: none; } }
@media(max-width:550px) { .blogs-page .why-story-shell { width: calc(100% - 30px); } .blog-post-list { grid-template-columns: 1fr; } .blog-post.is-expanded .blog-card-content { padding: 20px; } .blog-post.is-expanded .blog-post-header h2 { font-size: 23px; } }
