/* Showplain blog: article + index layout. Loaded after /css/app.css on /blog pages only.
   Uses the tokens defined in app.css (:root). Does not override any app.css rule outside .blog-wrap. */

.blog-wrap { max-width: 760px; padding-top: 22px; }

/* breadcrumb */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 22px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li { display: inline; overflow-wrap: anywhere; }
.crumbs li + li::before { content: '\203A'; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); }
.crumbs [aria-current] { color: var(--ink); }

/* article header */
.post { max-width: 720px; margin: 0 auto; }
.post-head { margin-bottom: 26px; }
.post-head h1 { font-size: clamp(30px, 5.2vw, 44px); line-height: 1.08; margin: 10px 0 14px; overflow-wrap: anywhere; }
.post-cat { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--lime-soft); color: var(--ink); text-decoration: none; }
.post-meta { margin: 0; color: var(--muted); font-size: 14px; }

/* table of contents */
.toc { margin: 26px 0 30px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.blog-wrap .toc-title { font: 600 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.blog-wrap .toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.blog-wrap .toc li { margin: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--lime); }

/* body copy */
.prose { font-size: 17px; line-height: 1.72; color: #2b2a31; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(23px, 3.6vw, 28px); line-height: 1.18; margin: 1.9em 0 .55em; color: var(--ink); scroll-margin-top: 80px; }
.prose h3 { font-size: 19px; line-height: 1.3; margin: 1.6em 0 .45em; color: var(--ink); scroll-margin-top: 80px; }
.prose h4 { font: 600 16px/1.4 var(--display); margin: 1.4em 0 .4em; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: 0 0 .45em; }
.prose li > ul, .prose li > ol { margin: .45em 0 0; }
.prose strong { color: var(--ink); }
.prose a { overflow-wrap: anywhere; }
.prose img { display: block; height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 1.4em auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--lime); color: var(--ink); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font: 14.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #1413180d; padding: .12em .38em; border-radius: 6px; }
.prose pre { background: var(--navy); color: #f7f5ee; padding: 16px 18px; border-radius: 12px; overflow-x: auto; margin: 0 0 1.3em; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: 14px; }
.prose kbd { font: 600 13px/1 ui-monospace, monospace; padding: 3px 6px; border-radius: 6px; border: 1px solid #14131833; border-bottom-width: 2px; background: #fff; }

/* tables: always wrapped in .table-wrap by the build so they scroll inside, never the page */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0 1.6em; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { font: 600 13.5px/1.3 var(--display); background: #1413180a; color: var(--ink); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .prose table { min-width: 520px; } }

/* callout box  (markdown: ":::callout" ... ":::"  or ":::callout tip|warning") */
.callout { margin: 1.5em 0; padding: 16px 18px; border-radius: 14px; background: #c6f23c26; border: 1px solid #c6f23c; font-size: 16px; line-height: 1.6; }
.callout > :last-child { margin-bottom: 0; }
.callout-tip { background: #12b76a12; border-color: #12b76a55; }
.callout-warning { background: #fff6e5; border-color: #ffd58a; }

/* CTA card (inline, not sticky) */
.cta-card { margin: 30px 0; padding: 24px 22px; border-radius: var(--radius); background: var(--navy); color: #fff; display: grid; gap: 10px; justify-items: start; box-shadow: 6px 6px 0 var(--lime); }
.blog-wrap .cta-card .cta-title { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; margin: 0; color: #fff; }
.blog-wrap .cta-card p { margin: 0; color: #ffffffc7; font-size: 15px; line-height: 1.55; }
.cta-card .btn { margin-top: 6px; white-space: normal; text-align: center; }

/* visible FAQ (mirrors the FAQPage JSON-LD) */
.post-faq { margin: 40px 0 10px; }
.post-faq h2 { font-size: clamp(23px, 3.6vw, 28px); margin-bottom: 14px; scroll-margin-top: 80px; }
.post-faq .faq-list { display: grid; gap: 10px; }
.post-faq details { padding: 15px 18px; }
.post-faq summary { font-weight: 600; cursor: pointer; }
.post-faq details p { margin: 10px 0 0; color: var(--muted); }

/* related posts */
.related { margin: 40px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; margin-bottom: 12px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related a { display: block; padding: 14px 16px; text-decoration: none; font-weight: 600; }
.related a:hover { box-shadow: 0 0 0 2px var(--lime), var(--shadow); }
.related .small { display: block; font-weight: 400; margin-top: 3px; }

/* blog index */
.blog-head { margin: 0 0 26px; }
.blog-head h1 { font-size: clamp(30px, 5.2vw, 44px); margin: 0 0 10px; }
.blog-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 620px; }
.blog-group { margin: 34px 0 0; }
.blog-group h2 { font-size: 22px; margin: 0 0 12px; scroll-margin-top: 80px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-list li { padding: 18px 20px; }
.post-list h3 { font-size: 19px; line-height: 1.25; margin: 0 0 6px; }
.post-list h3 a { text-decoration: none; }
.post-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.post-list p { margin: 0 0 6px; color: #2b2a31; font-size: 15px; }
.post-list .small { margin: 0; color: var(--muted); }
.blog-empty { padding: 24px 22px; text-align: center; color: var(--muted); }

@media (max-width: 560px) {
  .blog-wrap { padding-top: 16px; }
  .prose { font-size: 16.5px; }
  .toc, .cta-card { padding: 16px; }
  .cta-card { box-shadow: 4px 4px 0 var(--lime); }
}
