/* Dimension, the LUNARTECH Academy's blog: /blog, /blog/category/*, /blog/page/* and every article. All generated by tools/blog/build.mjs.
   Same structure as octavia.lunartech.ai/blog (editorial hero, category chips, featured article, image cards, pagination; the
   article with a contents rail, a share rail and a progress line), in the Academy's own voice: black, Geist 300, hairlines,
   hierarchy from size and colour rather than weight. No blur near the cards, so a long page stays cheap to scroll. */

body.lb-body { margin: 0; background-color: #050505; color: #f3f4f7; font-family: 'Geist', 'Inter', sans-serif; font-weight: 300; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.lb-body ::selection { background: rgba(255, 255, 255, 0.2); color: #fff; }
.lb-main { position: relative; display: block; padding-bottom: clamp(4rem, 8vw, 7rem); }
.lb-main :where(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, pre) { margin: 0; padding: 0; font-family: 'Geist', 'Inter', sans-serif; text-transform: none; letter-spacing: normal; }
.lb-main :where(a) { color: inherit; text-decoration: none; }
.lb-main :where(img) { display: block; max-width: 100%; }
.lb-main :focus-visible { outline: 1px solid rgba(255, 255, 255, 0.75); outline-offset: 3px; }
.lb-wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
@media (max-width: 767px) { .lb-wrap { padding: 0 16px; } }

/* ───────────── small shared pieces ───────────── */
.lb-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 9999px; font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: #c9ccd3; transition: border-color 0.25s, color 0.25s; }
a.lb-badge:hover { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.lb-pill { position: absolute; top: 16px; right: 16px; z-index: 2; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 9999px; background: rgba(5, 5, 5, 0.72); font-size: 11.5px; font-weight: 400; line-height: 1.2; color: #eceef2; }
.lb-pill--inline { position: static; }
.lb-meta { font-size: 12.5px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.46); }
.lb-go { display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 400; color: #f3f4f7; white-space: nowrap; }
.lb-go i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; font-style: normal; transition: background-color 0.25s, border-color 0.25s; }
.lb-go svg { width: 15px; height: 15px; }
a.lb-go:hover i, a:hover > .lb-feature-body .lb-go i { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
.lb-lede { font-size: clamp(15px, 1.05vw, 17px); font-weight: 300; line-height: 1.65; color: rgba(255, 255, 255, 0.62); }
.lb-rail-label { font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }

/* ───────────── listing: hero and filter ───────────── */
.lb-hero { padding-top: clamp(8.5rem, 13vw, 11rem); }
.lb-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem 5rem; margin-top: 1.6rem; }
.lb-main h1.lb-title { flex: 1 1 auto; min-width: 0; font-size: clamp(2.4rem, 4.6vw, 4.8rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.032em; color: #f5f5f6; }
.lb-title em, .lb-cta-title em { display: block; font-style: normal; color: rgba(255, 255, 255, 0.42); }
.lb-hero .lb-lede { flex: 0 0 min(25rem, 32%); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin: clamp(2.2rem, 4vw, 3.5rem) 0 1.4rem; }
.lb-count { font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.lb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-chip { padding: 0.5em 1em; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9999px; font-size: 13px; font-weight: 300; line-height: 1.25; color: rgba(255, 255, 255, 0.7); white-space: nowrap; transition: color 0.25s, border-color 0.25s, background-color 0.25s; }
.lb-chip:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.lb-chip.is-on { border-color: #f0f0f0; background-color: #f0f0f0; color: #050505; }

/* ───────────── listing: featured article ───────────── */
.lb-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); min-height: clamp(26rem, 58vh, 36rem); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 26px; background-color: #0a0a0a; transition: border-color 0.35s; }
.lb-feature:hover { border-color: rgba(255, 255, 255, 0.24); }
.lb-feature-img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lb-feature:hover .lb-feature-img { transform: scale(1.025); }
.lb-feature-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.2rem; padding: clamp(1.75rem, 3vw, 3rem); }
.lb-feature-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lb-feature-title { font-size: clamp(1.7rem, 2.6vw, 2.7rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.024em; color: #f5f5f6; text-wrap: balance; }
.lb-feature .lb-card-text { -webkit-line-clamp: 4; font-size: 15px; }
.lb-feature .lb-go { margin-top: 0.4rem; }

/* ───────────── listing: cards ───────────── */
.lb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lb-feature + .lb-grid { margin-top: 16px; }
.lb-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(25rem, 31vw, 29rem); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 22px; background-color: #0a0a0a; transition: border-color 0.35s; }
.lb-card:hover { border-color: rgba(255, 255, 255, 0.24); }
.lb-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lb-card:hover .lb-card-img { transform: scale(1.04); }
.lb-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.9) 34%, rgba(5, 5, 5, 0.32) 66%, rgba(5, 5, 5, 0.06) 100%); }
.lb-card-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.7rem; padding: 1.5rem; }
.lb-card-title { font-size: clamp(1.25rem, 1.55vw, 1.55rem); font-weight: 300; line-height: 1.18; letter-spacing: -0.016em; color: #f5f5f6; text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.lb-card-text { font-size: 13.5px; font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, 0.6); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lb-card .lb-meta { margin-top: 0.3rem; }

/* ───────────── listing: pages ───────────── */
.lb-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 13px; }
.lb-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lb-gap { display: grid; place-items: center; min-width: 24px; height: 40px; color: rgba(255, 255, 255, 0.38); }
.lb-page, .lb-page-step { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.72); transition: border-color 0.25s, color 0.25s; }
a.lb-page:hover, a.lb-page-step:hover { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.lb-page.is-current { border-color: #f0f0f0; background-color: #f0f0f0; color: #050505; }
.lb-page-step.is-off { opacity: 0.32; }
/* the pager only shows without scripts; with them the list carries on by itself (js/lunartech-blog-feed.js) */
.lb-pager[hidden] { display: none; }
.lb-feed-end { min-height: 1px; }
.lb-feed-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lb-feed-end button { display: none; background: none; font: inherit; font-size: 13px; cursor: pointer; }
.lb-feed-end button:hover { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.lb-feed-end.is-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.lb-feed-end.is-failed .lb-feed-status { position: static; width: auto; height: auto; clip-path: none; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.lb-feed-end.is-failed button { display: grid; }

/* ───────────── article: head and cover ───────────── */
.lb-progress { position: fixed; top: 0; left: 0; z-index: 9999; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.72); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.lb-head { display: flex; flex-direction: column; align-items: center; padding-top: clamp(8.5rem, 12vw, 10.5rem); text-align: center; }
.lb-main h1.lb-head-title { max-width: 62rem; margin-top: 1.5rem; font-size: clamp(2.1rem, 3.9vw, 4.1rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.03em; color: #f5f5f6; text-wrap: balance; }
.lb-head-dek { max-width: 46rem; margin-top: 1.4rem; font-size: clamp(15.5px, 1.2vw, 18.5px); font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, 0.62); text-wrap: pretty; }
.lb-head-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 1.5rem; font-size: 13px; color: rgba(255, 255, 255, 0.46); }
.lb-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* The picture sits between the title and the text and runs the full width of the screen: no frame, no rounded corners, no side margins.
   Width is the page's own (100%, never 100vw, which would add a sideways scroll bar); height follows the picture up to 80% of the window. */
.lb-cover { display: block; width: 100%; max-height: 80vh; margin: clamp(2.6rem, 5vw, 4.5rem) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background-color: #0a0a0a; }
.lb-cover img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ───────────── article: three columns ───────────── */
.lb-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem) minmax(0, 11rem); justify-content: center; gap: clamp(2rem, 3.6vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.lb-layout--no-toc { grid-template-columns: minmax(0, 46rem) minmax(0, 11rem); }
.lb-article-col { min-width: 0; }
.lb-toc, .lb-rail { position: sticky; top: 112px; align-self: start; }
.lb-toc { max-height: calc(100vh - 136px); display: flex; flex-direction: column; }
.lb-toc-list { list-style: none; margin: 0.9rem 0 0; padding: 0 0 1.5rem; overflow-y: auto; scrollbar-width: none; }
.lb-toc-list::-webkit-scrollbar { display: none; }
.lb-toc .lb-toc-list { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent); } /* the list follows the page, so a fade says there is more instead of a scrollbar */
.lb-main .lb-toc-list li { display: block; margin: 0; padding: 0; }
.lb-toc-list a { display: block; padding: 0.38em 0 0.38em 12px; border-left: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; font-weight: 300; line-height: 1.4; color: rgba(255, 255, 255, 0.5); transition: color 0.2s, border-color 0.2s; }
.lb-toc-l3 a { padding-left: 24px; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }
.lb-toc-list a:hover { color: #fff; }
.lb-toc-list a.is-on { border-left-color: #f0f0f0; color: #fff; }
.lb-toc-mobile { display: none; margin-bottom: 2rem; padding: 0.2rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; }
.lb-toc-mobile summary { padding: 0.8rem 0; font-size: 13.5px; font-weight: 400; color: #e6e7eb; cursor: pointer; }
.lb-toc-mobile .lb-toc-list { max-height: 50vh; margin: 0 0 0.9rem; }
.lb-rail-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.9rem; }
.lb-icon { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; background: none; color: #d9dbe1; cursor: pointer; transition: border-color 0.25s, color 0.25s; }
.lb-icon svg { width: 15px; height: 15px; }
.lb-icon:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.lb-icon.is-done { border-color: #f0f0f0; color: #fff; }
.lb-rail-label--2 { margin: 2rem 0 0.7rem; }
.lb-follow { display: block; padding: 0.26em 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); transition: color 0.2s; }
.lb-follow:hover { color: #fff; }

/* ───────────── article: the text ───────────── */
.lb-prose { font-size: 16.5px; line-height: 1.78; color: rgba(255, 255, 255, 0.76); overflow-wrap: anywhere; }
.lb-main .lb-prose p { margin: 0 0 1.25em; font-size: inherit; line-height: inherit; font-weight: 300; color: inherit; }
.lb-main .lb-prose h2 { margin: 2.4em 0 0.7em; font-size: clamp(1.55rem, 2.1vw, 2.05rem); font-weight: 300; line-height: 1.18; letter-spacing: -0.02em; color: #f5f5f6; scroll-margin-top: 112px; }
.lb-main .lb-prose h3 { margin: 2em 0 0.55em; font-size: clamp(1.14rem, 1.35vw, 1.3rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.008em; color: #eceef2; scroll-margin-top: 112px; }
.lb-main .lb-prose h4 { margin: 1.7em 0 0.45em; font-size: 1.02rem; font-weight: 400; line-height: 1.35; color: #e4e6ec; }
.lb-prose > :first-child { margin-top: 0 !important; }
.lb-prose strong, .lb-prose b { font-weight: 500; color: #eef0f4; }
.lb-prose em { font-style: italic; }
.lb-prose a { color: #f3f4f7; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.lb-prose a:hover { text-decoration-color: #fff; }
.lb-main .lb-prose ul, .lb-main .lb-prose ol { display: block; margin: 0 0 1.35em; padding: 0 0 0 1.35em; }
.lb-main .lb-prose ul { list-style: disc; }
.lb-main .lb-prose ol { list-style: decimal; }
.lb-main .lb-prose li { display: list-item; margin: 0 0 0.5em; font-size: inherit; line-height: 1.68; font-weight: 300; color: inherit; }
.lb-prose li::marker { color: rgba(255, 255, 255, 0.34); }
.lb-main .lb-prose blockquote { margin: 1.7em 0; padding: 0.15em 0 0.15em 1.3em; border-left: 1px solid rgba(255, 255, 255, 0.3); font-size: 1.06em; color: #e6e7eb; }
.lb-prose blockquote p:last-child { margin-bottom: 0; }
.lb-prose code { padding: 0.12em 0.36em; border-radius: 5px; background: rgba(255, 255, 255, 0.08); font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.87em; color: #eceef2; overflow-wrap: anywhere; }
.lb-main .lb-prose pre { position: relative; margin: 1.5em 0 1.7em; padding: 1.05rem 1.2rem; overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px; background: #0c0c0d; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
.lb-prose pre code { display: block; width: max-content; min-width: 100%; padding: 0; background: none; font-size: 13px; line-height: 1.65; color: #d6d8de; white-space: pre; overflow-wrap: normal; }
.lb-copy { position: absolute; top: 8px; right: 8px; padding: 4px 9px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 7px; background: #0c0c0d; font-family: inherit; font-size: 11.5px; color: rgba(255, 255, 255, 0.62); cursor: pointer; opacity: 0; transition: opacity 0.2s, color 0.2s; }
.lb-prose pre:hover .lb-copy, .lb-copy:focus-visible { opacity: 1; }
.lb-copy:hover { color: #fff; }
@media (hover: none) { .lb-copy { opacity: 1; } }
.lb-table { margin: 1.5em 0 1.8em; overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px; scrollbar-width: thin; }
.lb-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.lb-prose th { padding: 0.75em 1em; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-weight: 400; text-align: left; color: #eceef2; white-space: nowrap; }
.lb-prose td { padding: 0.72em 1em; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: top; }
.lb-prose tr:last-child td { border-bottom: 0; }
.lb-main .lb-prose figure { margin: 1.8em 0; }
.lb-prose img { width: 100%; height: auto; border-radius: 12px; }

/* ───────────── article: after the text ───────────── */
.lb-more { margin-top: clamp(4rem, 8vw, 7rem); padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.lb-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.lb-main h2.lb-more-title { font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.026em; color: #f5f5f6; }
.lb-cta { margin-top: clamp(3.5rem, 7vw, 6rem); text-align: center; }
.lb-main h2.lb-cta-title { font-size: clamp(1.9rem, 3.2vw, 3.3rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.026em; color: #f5f5f6; }
.lb-cta .lb-lede { margin-top: 1rem; }
.lb-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.75rem; }
.lb-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 9999px; font-size: 13.5px; font-weight: 400; color: #fff; transition: background-color 0.25s, border-color 0.25s; }
.lb-btn:hover { border-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.07); }
.lb-btn svg { width: 15px; height: 15px; }
.lb-btn--solid { border-color: #f0f0f0; background-color: #f0f0f0; color: #050505; }
.lb-btn--solid:hover { border-color: #fff; background-color: #fff; }

/* ───────────── narrower screens ───────────── */
@media (max-width: 1180px) {
  .lb-layout, .lb-layout--no-toc { grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); }
  .lb-layout--no-toc { grid-template-columns: minmax(0, 46rem); }
  .lb-rail { position: static; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.1rem; max-width: 46rem; width: 100%; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.09); }
  .lb-rail-icons, .lb-rail-label--2 { margin: 0; }
  .lb-rail-label--2 { margin-left: auto; }
}
@media (max-width: 991px) {
  .lb-hero-row { flex-direction: column; align-items: flex-start; }
  .lb-hero .lb-lede { flex: none; max-width: 32rem; }
  .lb-feature { grid-template-columns: minmax(0, 1fr); }
  .lb-feature-img { aspect-ratio: 16 / 9; height: auto; }
  .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-layout, .lb-layout--no-toc { grid-template-columns: minmax(0, 46rem); }
  .lb-toc { display: none; }
  .lb-toc-mobile { display: block; }
}
@media (max-width: 639px) {
  .lb-grid { grid-template-columns: minmax(0, 1fr); }
  .lb-card { min-height: 23rem; }
  .lb-feature { border-radius: 20px; }
  .lb-cover { aspect-ratio: 4 / 3; max-height: 70vh; }
  .lb-prose { font-size: 16px; }
  .lb-page-step { padding: 0 10px; }
  .lb-rail-label--2 { width: 100%; margin-left: 0; }
  .lb-more-head { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-main *, .lb-progress { transition: none !important; }
}
