/* tripinz.app/blog: posts and the guides list. Builds on home.css and trek.css (same tokens, cards and hero). */
.post-hero { min-height: min(70vh, 640px); }
.post-hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 22ch; line-height: 1.08; }
.post-main { max-width: 780px; padding-top: 8px; padding-bottom: 20px; }
.post-meta { font-size: 15px; color: var(--soft); margin: 8px 0 22px; }

.toc { padding: 18px 22px; margin-bottom: 8px; }
.toc strong { display: block; font-size: 15px; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { font-size: 15px; padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--primary); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.post { font-size: 18px; line-height: 1.65; }
.post h2 { font-size: clamp(25px, 3.2vw, 32px); margin: 48px 0 14px; line-height: 1.2; scroll-margin-top: 90px; }
.post h3 { font-size: 21px; margin: 30px 0 8px; scroll-margin-top: 90px; }
.post p { margin: 0 0 16px; }
.post ul, .post ol { margin: 0 0 18px; padding-left: 24px; }
.post li { margin: 6px 0; }
.post a:not(.btn):not(.trek) { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post strong { font-weight: 600; }
.post code { font-size: .9em; background: var(--tint); padding: 1px 6px; border-radius: 6px; }

.post .table { overflow-x: auto; margin: 8px 0 22px; background: var(--surface); border-radius: var(--r-tile); }
.post table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.post th, .post td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.post th { font-weight: 600; background: var(--tint); }
.post tr:last-child td { border-bottom: 0; }

.callout { background: var(--tint); border-radius: var(--r-tile); padding: 16px 20px; margin: 8px 0 22px; }
.callout p { margin: 0; font-size: 17px; }

.inline-trek { margin: 10px 0 24px; }
.inline-trek .trek { height: 300px; }
.months-card { margin: 10px 0 24px; }
.post .months { padding-left: 0; margin: 0; }
.post .months li { margin: 0; }
.months-card figcaption { font-size: 14px; color: var(--soft); margin-top: 12px; }

.app-inline { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--r-card); padding: 18px 20px; margin: 14px 0 26px; }
.app-inline img { border-radius: 13px; flex: none; }
.app-inline div { flex: 1; min-width: 0; }
.app-inline strong { display: block; font-size: 18px; }
.app-inline span { display: block; font-size: 15px; color: var(--soft); line-height: 1.45; margin-top: 2px; }
.app-inline .btn { flex: none; }

.post .faq h3.q { font-size: 19px; margin: 24px 0 6px; }

/* post cards: same height as trek cards, the title may take two lines */
.post-card .trek-body h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 20px; line-height: 1.2; }
.trek-grid.posts { margin-top: 28px; }

@media (max-width: 640px) {
  .post { font-size: 17px; }
  .toc ol { columns: 1; }
  .app-inline { flex-wrap: wrap; }
  .app-inline .btn { width: 100%; justify-content: center; }
}

/* app screenshots in phone frames: one centred, or two or three side by side */
.shots { display: flex; justify-content: center; gap: 18px; margin: 14px 0 28px; }
.shot { margin: 0; flex: 0 1 260px; min-width: 0; }
.shot-frame { background: #1F2B22; border-radius: 34px; padding: 7px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 28px; }
.shot figcaption { font-size: 14px; line-height: 1.45; color: var(--soft); text-align: center; margin-top: 10px; }
@media (prefers-color-scheme: dark) { .shot-frame { background: #2A362D; } }
@media (max-width: 640px) {
  .shots { gap: 10px; }
  .shots.n1 .shot { flex-basis: 230px; }
  .shot-frame { border-radius: 24px; padding: 5px; }
  .shot-frame img { border-radius: 20px; }
  .shot figcaption { font-size: 12.5px; }
}
