/* Hyperion blog: /blog and /blog/<slug>. Loaded after site.css and built on its tokens.
   All blue, Montserrat, gradient hero with the sphere watermark, no eyebrow labels. */

/* Hero */
.blog-hero .wrap { padding-top: 80px; padding-bottom: 88px; }
.blog-hero h1 { margin: 0 0 22px; font-size: clamp(36px, 5vw, 60px); max-width: 940px; }
.post-hero .wrap { padding-top: 76px; padding-bottom: 150px; }
.post-hero h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 920px; }
.post-hero .lead { max-width: 760px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 26px; font-size: 15.5px; font-weight: 500; color: var(--mist); }
.post-meta .dot { opacity: .7; }

/* Cover */
.post-wrap { position: relative; z-index: 2; max-width: 1100px; }
.post-cover { margin: -104px 0 0; border-radius: 24px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover-ph { position: relative; background: var(--grad); aspect-ratio: 16 / 5; }
.post-cover-ph .mark { position: absolute; width: 420px; right: -60px; top: -120px; opacity: .12; }

/* Article body */
.prose { max-width: 740px; margin: 60px auto 0; font-size: 19px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; margin-top: 2.1em; }
.prose h3 { font-size: 22px; line-height: 1.3; margin-top: 1.7em; }
.prose h4, .prose h5, .prose h6 { font-size: 19px; line-height: 1.35; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--indigo); font-weight: 600; }
.prose a:hover { color: var(--teal); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.35em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li > p { margin: 0; }
.prose li::marker { color: var(--steel); font-weight: 600; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--teal); color: var(--slate); font-size: 20px; }
.prose blockquote p + p { margin-top: .8em; }
.prose img { width: 100%; height: auto; border-radius: 16px; }
.prose figure { margin-left: 0; margin-right: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--divider); margin: 2.4em 0; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 16.5px; line-height: 1.5; }
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.prose tr:first-child td { font-weight: 700; color: var(--indigo); border-bottom: 2px solid var(--divider); }
.prose pre { background: var(--panel); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 15px; line-height: 1.6; }

/* Inline figures */
.prose figure.post-fig { display: block; margin: 2.2em 0; }
.prose figure.post-fig img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 14, 66, .06), 0 16px 44px rgba(0, 14, 66, .10); }
.prose figcaption { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--slate); }
@media (min-width: 1100px) { .prose figure.post-fig { margin-left: -60px; margin-right: -60px; } .prose figcaption { margin-left: 60px; margin-right: 60px; } }

/* Cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--steel); }
.pc-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.pc-img { position: relative; aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { position: absolute; inset: 0; background: var(--grad); }
.pc-ph .mark { position: absolute; width: 240px; right: -40px; top: -60px; opacity: .12; }
.pc-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 26px 26px; }
.pc-title { font-size: 21px; line-height: 1.28; letter-spacing: -.01em; }
.pc-excerpt { font-size: 16px; line-height: 1.6; color: var(--slate); }
.pc-meta { margin-top: auto; padding-top: 4px; font-size: 14.5px; font-weight: 500; color: var(--slate); }

/* Empty state and pager */
.blog-empty { max-width: 820px; padding: 56px 52px; border-radius: 24px; background: var(--panel); }
.blog-empty h2 { font-size: clamp(26px, 3vw, 36px); }
.blog-empty p { margin-top: 16px; font-size: 18px; color: var(--slate); max-width: 640px; }
.blog-empty .hero-actions { margin-top: 30px; }
.blog-pager { display: flex; justify-content: center; margin-top: 52px; }

/* Closing call to action */
.blog-cta-sec { padding-top: 96px; }
.blog-list + .blog-cta-sec { padding-top: 0; }
.blog-cta-in { position: relative; max-width: 780px; }
.blog-cta h2 { margin: 0 0 18px; font-size: clamp(28px, 3.4vw, 42px); }
.blog-cta .hero-actions { margin-top: 30px; }
.blog-cta-note { margin-top: 26px; font-size: 15.5px; color: var(--mist); max-width: 640px; }
.blog-cta-note a { color: var(--white); font-weight: 600; }

/* Related */
.blog-related { background: var(--panel); }
.blog-related h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 34px; }
.blog-related .post-card { border-color: transparent; }

@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .blog-hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .post-hero .wrap { padding-bottom: 112px; }
  .post-cover { margin-top: -72px; border-radius: 18px; }
  .prose { margin-top: 44px; font-size: 18px; }
  .blog-cta-sec { padding-top: 72px; }
}
@media (max-width: 700px) {
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .post-cover { max-height: 45vh; }
  .blog-empty { padding: 34px 24px; }
  .blog-empty .hero-actions .btn { width: 100%; }
  .prose blockquote { font-size: 18.5px; padding-left: 18px; }
}
