/* Blog layer on top of the marketing site's styles.css */

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-bar .nav { top: 32px; }

.blog-hero { padding-bottom: 60px; }
.blog-hero h1 .page-no { color: var(--faint); font-weight: 400; }
.blog-search { display: flex; gap: 10px; margin-top: 28px; max-width: 460px; }
.blog-search input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; background: #0a1330; color: var(--text); font: inherit; font-size: 16px; padding: 11px 15px; }
.blog-search input::placeholder { color: var(--faint); }
.blog-search input:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

.section-light.blog-list { margin-top: 0; padding: 48px 0 104px; }

.topics { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 26px; scrollbar-width: none; }
.topics a { flex-shrink: 0; border: 1px solid #d5deef; border-radius: 999px; background: #fdfdff; color: #3c4865; font-size: 14px; font-weight: 500; padding: 8px 16px; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.topics a:hover { border-color: #9db8f2; color: #17367f; }
.topics a[aria-current] { background: #1d4ed8; border-color: #1d4ed8; color: #f3f7ff; }

/* ---------- cards ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { overflow: hidden; }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: #0f1523; }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #0a1a56, #10269c); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card-link:hover .post-thumb img { transform: scale(1.035); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px; }
.post-cat { font-size: 13px; font-weight: 600; color: #2456d6; margin-bottom: 8px; }
.post-card h2 { font-size: 18px; font-weight: 600; line-height: 1.32; letter-spacing: -0.012em; text-wrap: balance; }
.post-card-link:hover h2 { color: #1d4ed8; }
.post-excerpt { color: #57627e; font-size: 14.5px; line-height: 1.55; margin-top: 9px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; gap: 14px; margin-top: auto; padding-top: 16px; color: #5d6988; font-size: 13px; }
.post-card-link:focus-visible { outline-offset: -3px; }

.post-grid.has-lead > .post-card:first-child { grid-column: 1 / -1; }
.post-grid.has-lead > .post-card:first-child .post-card-link { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.post-grid.has-lead > .post-card:first-child .post-thumb { aspect-ratio: auto; min-height: 340px; }
.post-grid.has-lead > .post-card:first-child .post-card-body { padding: 40px 42px; justify-content: center; }
.post-grid.has-lead > .post-card:first-child h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.18; letter-spacing: -0.022em; }
.post-grid.has-lead > .post-card:first-child .post-excerpt { font-size: 16px; -webkit-line-clamp: 4; }
.post-grid.has-lead > .post-card:first-child .post-meta { margin-top: 0; padding-top: 22px; }

.no-posts { color: #47526e; font-size: 17px; padding: 40px 0; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { border: 1px solid #d5deef; border-radius: 10px; background: #fdfdff; color: #3c4865; font-size: 14.5px; font-weight: 500; padding: 9px 15px; }
.pagination a.page-numbers:hover { border-color: #9db8f2; color: #17367f; background: #fdfdff; }
.pagination .page-numbers.current { background: #0f1e4a; border-color: #0f1e4a; color: #f3f7ff; }
.pagination .page-numbers.dots { border-color: transparent; background: none; }

/* ---------- article ---------- */

.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--blue-2); transform: scaleX(0); transform-origin: left; z-index: 60; }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: read-progress linear; animation-timeline: scroll(); }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

.page-hero.post-hero { padding: 138px 0 58px; }
.page-hero.post-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 24ch; }
.post-byline { display: flex; flex-wrap: wrap; gap: 6px 20px; color: #b8c6ec; font-size: 15px; }

.section-light.post-body { margin-top: 0; padding: 56px 0 72px; background: #fbfcfe; }
.post-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 64px; justify-content: center; align-items: start; }
.post-layout.no-toc { grid-template-columns: minmax(0, 760px); }

.toc { position: sticky; top: 96px; font-size: 14px; }
.toc summary { font-weight: 600; color: #0f1523; cursor: pointer; list-style: none; margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; display: grid; max-height: calc(100vh - 170px); overflow-y: auto; }
.toc a { display: block; color: #5d6988; line-height: 1.4; padding: 6px 12px; border-radius: 8px; transition: color 0.2s ease, background 0.2s ease; }
.toc a:hover { color: #17367f; background: #eef3fd; }
.toc a.on { color: #1d4ed8; background: #e9effc; font-weight: 600; }

.post-lead { margin-bottom: 38px; }
.post-lead img { width: 100%; height: auto; border-radius: 16px; }

.prose { color: #26304a; font-size: 18px; line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { color: #0f1523; letter-spacing: -0.018em; line-height: 1.22; text-wrap: balance; scroll-margin-top: 92px; }
.prose h2 { font-size: 1.65em; font-weight: 600; margin-top: 2em; }
.prose h3 { font-size: 1.25em; font-weight: 600; margin-top: 1.7em; }
.prose h4 { font-size: 1.05em; font-weight: 600; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose a { color: #1d4ed8; text-decoration: underline; text-decoration-color: #a9c0f4; text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color 0.2s ease; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: #2456d6; }
.prose strong { color: #0f1523; font-weight: 600; }
.prose figure { margin: 1.8em 0; }
.prose img { height: auto; border-radius: 12px; }
.prose figcaption { color: #5d6988; font-size: 14.5px; line-height: 1.5; margin-top: 10px; }
.prose blockquote { background: #eef3fd; border-radius: 12px; padding: 20px 24px; color: #26304a; }
.table-scroll { overflow-x: auto; border: 1px solid #dbe3f1; border-radius: 12px; background: #fdfdff; }
.table-scroll:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.prose td, .prose th { padding: 12px 16px; text-align: left; border-top: 1px solid #e6ebf5; min-width: 110px; }
.prose tr:first-child td, .prose thead th { border-top: 0; background: #f1f5fc; color: #0f1523; font-weight: 600; }
/* WordPress's own table rules draw solid borders */
.prose .wp-block-table td, .prose .wp-block-table th { border: 0; border-top: 1px solid #e6ebf5; padding: 12px 16px; }
.prose .wp-block-table tr:first-child td { border-top: 0; }

.post-cta { display: flex; gap: 28px; align-items: center; justify-content: space-between; margin-top: 52px; border-radius: 18px; background: #0a1330; color: #c8d5f5; padding: 28px 32px; font-size: 15.5px; }
.post-cta-title { color: #f1f5ff; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.post-cta .btn { flex-shrink: 0; }
.post-note { color: #5d6988; font-size: 14px; line-height: 1.55; margin-top: 26px; }

.section-light.related { margin-top: 0; padding: 72px 0 104px; }
.related .section-title { margin: 0 0 26px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.blog-body .cta-mini { margin-top: 0; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid.has-lead > .post-card:first-child .post-card-link { display: flex; }
  .post-grid.has-lead > .post-card:first-child .post-thumb { aspect-ratio: 16 / 9; min-height: 0; }
  .post-grid.has-lead > .post-card:first-child .post-card-body { padding: 24px; }
  .post-layout { grid-template-columns: minmax(0, 760px); gap: 26px; }
  .toc { position: static; border: 1px solid #dbe3f1; border-radius: 12px; background: #fdfdff; padding: 14px 18px; }
  .toc summary { margin: 0; }
  .toc details[open] summary { margin-bottom: 8px; }
  .toc ol { max-height: none; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17px; }
  .post-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
