/* Luma blog (/luma/blog/ + /luma/en/blog/), loaded after luma.css. Long-form reading layout:
   one calm text column, a sticky table of contents on wide screens, tables and FAQ in the
   same style as the product page. Generated pages come from luma/blog/_build/build.py. */

/* ── Head ───────────────────────────── */
.post-head, .blog-hero { padding-top: 150px; }
.blog-hero { padding-bottom: 40px; }
.post-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; color: var(--ink-faint); font-size: 14px; }
.post-crumbs li + li::before { content: '/'; margin-right: 8px; color: rgba(11, 30, 21, .25); }
.post-crumbs a:hover { color: var(--ink); }
.post-head h1, .blog-hero h1 { max-width: 980px; margin: 0; font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 72px); font-weight: 500; line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.post-lead { max-width: 760px; margin: 26px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; letter-spacing: -.012em; }
.post-meta { margin: 22px 0 0; color: var(--ink-faint); font-size: 14px; }

/* ── Layout ─────────────────────────── */
.post-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 70px; justify-content: start; margin-top: 64px; padding-bottom: 100px; border-top: 1px solid var(--line); padding-top: 50px; }
.post-toc { position: relative; }
.toc-desk { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow: auto; }
.toc-h { margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 650; }
.post-toc ul { margin: 0; padding: 0; list-style: none; }
.post-toc li a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--ink-faint); font-size: 13.5px; line-height: 1.4; transition: color 160ms ease, border-color 160ms ease; }
.post-toc li a:hover { color: var(--ink); border-left-color: var(--green); }
.toc-mob { display: none; }

/* ── Body text ──────────────────────── */
.post-body { min-width: 0; color: #2c3a33; font-size: 17.5px; line-height: 1.78; letter-spacing: -.008em; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 20px; }
.post-body h2 { margin: 64px 0 18px; font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.032em; color: var(--ink); scroll-margin-top: 100px; text-wrap: balance; }
.post-body h3 { margin: 38px 0 10px; font-size: 21px; line-height: 1.3; letter-spacing: -.025em; color: var(--ink); scroll-margin-top: 100px; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--green); }
.post-body strong { color: var(--ink); font-weight: 650; }
.post-body a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body code { padding: 2px 6px; border-radius: 6px; background: var(--paper-soft); font-size: .88em; overflow-wrap: anywhere; }
.post-body abbr { text-decoration: none; }

/* "In short" box at the top: the direct answer, for readers and answer engines alike. */
.tldr { margin: 0 0 40px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.tldr > p:first-child { margin: 0 0 10px; color: var(--green); font-size: 14px; font-weight: 650; }
.tldr ul { margin: 0; }
.tldr li:last-child { margin-bottom: 0; }

.callout { margin: 30px 0; padding: 22px 24px; border-radius: 18px; background: var(--green-pale); color: #1f3a2b; font-size: 16px; line-height: 1.7; }
.callout > :last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: 4px; }

/* Tables: same look as the product page, scroll on overflow, stacked cards on phones. */
.post-body .table-scroll { margin: 26px 0 30px; }
.post-body .cmp { font-size: 15px; }
.post-body .cmp th, .post-body .cmp td { padding: 13px 18px 13px 0; }
.post-body .cmp td:first-child, .post-body .cmp tbody th { color: var(--ink); font-weight: 600; }
.post-body .cmp caption { position: static; width: auto; height: auto; overflow: visible; clip: auto; padding: 0 0 10px; color: var(--ink-faint); font-size: 13.5px; text-align: left; caption-side: bottom; padding-top: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pull figures (big numbers) */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 34px; }
.figures div { padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .6); }
.figures b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -.035em; color: var(--ink); line-height: 1.1; }
.figures span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }

/* FAQ */
.post-body details.qa { border-bottom: 1px solid var(--line); }
.post-body details.qa:first-of-type { border-top: 1px solid var(--line); }
.post-body .qa summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); line-height: 1.35; }
.post-body .qa summary::-webkit-details-marker { display: none; }
.post-body .qa summary::after { content: '+'; flex: none; color: var(--ink-faint); transition: transform 220ms var(--ease); }
.post-body .qa[open] summary::after { transform: rotate(45deg); color: var(--green); }
.post-body .qa .ans { padding: 0 30px 20px 0; color: var(--ink-soft); font-size: 16px; }
.post-body .qa .ans p:last-child { margin-bottom: 0; }

/* Sources */
.post-body ul.sources { padding-left: 0; list-style: none; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.post-body ul.sources li { margin-bottom: 10px; padding-left: 16px; border-left: 2px solid var(--line); }
.post-body ul.sources a { overflow-wrap: anywhere; }
.post-feedback { margin-top: 50px !important; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14.5px; }

/* ── End of article: CTA + more posts ─ */
.post-end { padding: 0 0 120px; }
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 44px 48px; border-radius: var(--radius); background: var(--night); color: #fff; }
.post-cta h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -.035em; }
.post-cta p { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .68); font-size: 15.5px; line-height: 1.65; }
.post-cta-actions { display: flex; flex: none; gap: 12px; flex-wrap: wrap; }
.button--ghost { border-color: rgba(255, 255, 255, .22); color: #fff; }
.button--ghost:hover { border-color: rgba(255, 255, 255, .5); }
.post-cta :focus-visible { outline-color: var(--neon); }
.post-more-h { margin: 90px 0 26px; font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -.03em; }

.blog-list { padding: 20px 0 130px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .62); transition: border-color 180ms ease, transform 180ms var(--ease); }
.post-card:hover { border-color: rgba(11, 30, 21, .26); transform: translateY(-2px); }
.post-card-section { margin: 0 0 14px; color: var(--green); font-size: 14px; font-weight: 600; }
.post-card h2, .post-card h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.post-card h2 a::after, .post-card h3 a::after { content: ''; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.post-card .post-card-meta { margin: auto 0 0; color: var(--ink-faint); font-size: 13.5px; }

/* ── Responsive ─────────────────────── */
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
  .toc-desk { display: none; }
  .toc-mob { display: block; margin: 0 0 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
  .toc-mob summary { padding: 14px 18px; cursor: pointer; font-size: 15px; font-weight: 650; }
  .toc-mob ul { padding: 0 18px 12px; }
  .post-head { max-width: 800px; margin-inline: auto; }
  .post-head.wrap { width: min(calc(100% - 40px), 760px); }
}
@media (max-width: 760px) {
  .post-cta { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .figures { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-head, .blog-hero { padding-top: 118px; }
  .post-layout { margin-top: 40px; padding-top: 34px; }
  .post-body { font-size: 16.5px; }
  .tldr { padding: 22px 20px; }
  .post-body .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .post-body .cmp tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .post-body .cmp td, .post-body .cmp tbody th { display: block; padding: 2px 0; border: 0; }
  .post-body .cmp td:first-child, .post-body .cmp tbody th { padding-bottom: 6px; }
  .post-body .cmp td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--ink-faint); font-weight: 600; }
  .post-grid { grid-template-columns: 1fr; }
}
