/* Blog and answer pages (generated by scripts/build-blog.mjs). Layout only: colours, type,
   radii and the header/footer come from tokens.css. Reading width is capped for long text. */
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; color: var(--brown); }
main { display: block; padding-top: 4px; }

.post { padding: 28px 20px 32px; }
.post > *, .post-foot > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
/* A flex child grows to its widest content (min-width: auto); without this the 34rem comparison
   table widens the whole page on a phone instead of scrolling inside .table-wrap. */
.post > *, .post-foot > *, .prose, .table-wrap { min-width: 0; }
.post, .post-foot { overflow-wrap: anywhere; }
.post h1 { font-weight: 700; font-size: var(--h2-mobile); line-height: 1.08; margin: 6px auto 10px; }
.post .meta { color: var(--brown-soft); margin-bottom: 22px; }
.crumbs a { color: var(--brown-soft); text-decoration: none; }
.crumbs a::before { content: "\2190\00a0"; }
.crumbs a:hover { text-decoration: underline; }

.prose { font-size: var(--body-lg); line-height: 1.6; color: var(--brown-deep); }
.prose > * { margin: 0 0 1em; }
.prose h2 { font-weight: 700; font-size: 26px; line-height: 1.15; margin: 1.6em 0 .5em; }
.prose h3 { font-weight: 600; font-size: 20px; line-height: 1.25; margin: 1.3em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--teal-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--brown-deep); }
.prose blockquote {
  margin: 0 0 1.2em; padding: 12px 16px; background: var(--butter);
  border: 1.5px solid var(--oat-line); border-radius: 14px; font-size: 16px;
}
.prose blockquote p { margin: 0; }
.prose code { font-family: var(--font-mono); font-size: .9em; }
.prose hr { border: 0; border-top: 1.5px dashed var(--oat-line); margin: 2em 0; }

/* Tables scroll sideways on a phone instead of squeezing their columns. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.2em; border: 1.5px solid var(--oat-line); border-radius: 14px; background: var(--cream); }
.prose table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 15px; line-height: 1.4; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--oat-line); }
.prose thead th { background: var(--oat); font-family: var(--font-display); font-weight: 600; color: var(--brown); }
.prose tbody tr:last-child td { border-bottom: 0; }

.post-foot { padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 26px; }
.cta-card {
  display: flex; gap: 16px; align-items: center; padding: 18px;
  background: var(--oat); border: var(--outline); border-radius: var(--radius-card); width: 100%;
}
.cta-card img { width: 72px; height: auto; flex: none; }
.cta-card h2 { font-size: 22px; line-height: 1.1; margin: 0 0 6px; }
.cta-card p { margin: 0 0 12px; line-height: 1.45; color: var(--brown-deep); }
.related h2 { font-size: 20px; margin: 0 0 8px; }
.related ul { margin: 0; padding-left: 1.2em; line-height: 1.5; }
.related li { margin: 6px 0; }
.related a { color: var(--teal-ink); text-underline-offset: 3px; }

.blog-index .lead { font-size: var(--body-lg); line-height: 1.5; color: var(--brown-deep); margin: 0 auto 8px; }
.blog-index section { margin-top: 28px; }
.blog-index h2 { font-size: 24px; margin: 0 0 4px; }
.post-list { list-style: none; padding: 0; margin: 12px auto 0; display: grid; gap: 10px; }
.post-list a {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 44px;
  text-decoration: none; background: var(--cream); border: 1.5px solid var(--oat-line); border-radius: 14px;
}
.post-list a:hover { border-color: var(--contour); }
.post-list strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--brown); line-height: 1.25; }
.post-list span { font-size: 15px; line-height: 1.45; color: var(--brown-soft); }

@media (min-width: 900px) {
  .post { padding: 48px 40px 56px; }
  .post h1 { font-size: var(--h2-desktop); }
  .prose h2 { font-size: 30px; }
  .cta-card img { width: 96px; }
  .post-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .cta-card { flex-direction: column; align-items: flex-start; }
}

/* Short answer (TL;DR): the page's opening answer, boxed so it reads first. */
.prose .answer { margin: 0 0 1.4em; padding: 14px 18px 16px; background: var(--style-stage); border-radius: 18px; box-shadow: 0 4px 0 var(--peach-lip); }
.prose .answer p { margin: 0; }
.prose .answer .answer-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--peach-ink); margin-bottom: 4px; }
.compare ul { columns: 2 16rem; column-gap: 24px; }

/* Proof strip: two real app screens under the short answer. */
.prose .proof { margin: 0 0 1.6em; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.prose .proof img { width: min(220px, 42vw); height: auto; border-radius: 22px; box-shadow: 0 6px 0 var(--peach-lip); }
.prose .proof figcaption { flex-basis: 100%; text-align: center; font-size: 14px; color: var(--brown-soft); }
/* Sources sit after the App Store card. */
.sources-block { max-width: 46rem; margin: 0 auto; font-size: 14px; line-height: 1.5; color: var(--brown-soft); }
.sources-block h2 { font-size: 18px; margin: 0 0 6px; }
.sources-block a { color: var(--teal-ink); overflow-wrap: anywhere; }
