/* Blog pages, on top of either site design (classic or modern). Colours follow the page text colour. */
.blog-page, .blog-post { max-width: 980px; margin-inline: auto; }
.blog-post { max-width: 820px; }
.blog-page h1, .blog-post h1 { line-height: 1.35; }

/* Category chips */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.blog-cats a { text-decoration: none; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .05); color: inherit; font-size: .92rem; }
.blog-cats a span { opacity: .65; }
.blog-cats a.on { background: #2a2a2a; color: #fff; }

/* Cards */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.blog-card { margin: 0; }
.blog-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: rgba(255, 255, 255, .85); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: transform .15s, box-shadow .15s; }
.blog-card-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.blog-card-link img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blog-card-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #ffe792; color: #2a2a2a; }
.blog-card-noimg svg { width: 42px; height: 42px; }
.blog-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.blog-card-cat { font-size: .78rem; font-weight: 600; opacity: .7; }
.blog-card-title { font-weight: 600; font-size: 1.05rem; line-height: 1.45; }
.blog-card-excerpt { font-size: .92rem; opacity: .8; line-height: 1.6; }
.blog-card-meta { margin-top: auto; font-size: .82rem; opacity: .6; }
.blog-card.is-featured .blog-card-link { outline: 2px solid #ffd95e; }
.blog-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 26px 0 8px; flex-wrap: wrap; }
.blog-pager a { display: inline-flex; align-items: center; gap: 4px; }

/* Post */
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; opacity: .75; font-size: .92rem; margin: 0 0 16px; }
.blog-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-meta svg { width: 15px; height: 15px; }
.blog-hero { margin: 0 0 22px; }
.blog-hero img { width: 100%; height: auto; border-radius: 18px; display: block; }
.blog-preview-note { background: #fff4d6; color: #5a4100; padding: 10px 14px; border-radius: 12px; display: flex; gap: 8px; align-items: center; }

.post-body { font-size: 1.06rem; line-height: 1.85; overflow-wrap: anywhere; }
.post-body h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; line-height: 1.4; }
.post-body h3 { font-size: 1.18rem; margin: 1.4em 0 .4em; }
.post-body h4 { font-size: 1.05rem; margin: 1.2em 0 .3em; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.post-body blockquote:not(.instagram-media):not(.twitter-tweet) { margin: 1.2em 0; padding: .6em 1.1em; border-left: 4px solid #ffd95e; background: rgba(0, 0, 0, .03); border-radius: 0 12px 12px 0; }
.post-body pre { overflow-x: auto; background: rgba(0, 0, 0, .05); padding: 12px 14px; border-radius: 10px; font-size: .92rem; }
.post-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid rgba(0, 0, 0, .15); padding: 6px 10px; text-align: left; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body a { overflow-wrap: anywhere; }
.tti-yt-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.2em 0; border-radius: 14px; overflow: hidden; background: #000; }
.tti-yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body .instagram-media, .post-body .twitter-tweet { margin: 1.2em auto !important; }

/* Share + CTA + related */
.blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, .1); }
.blog-share a, .blog-copy { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .06); color: inherit; text-decoration: none; font: inherit; font-size: .9rem; border: 0; cursor: pointer; }
.blog-share a:hover, .blog-copy:hover { background: rgba(0, 0, 0, .1); }
.blog-copy svg { width: 15px; height: 15px; }
.blog-cta { margin: 28px 0; padding: 20px 22px; border-radius: 20px; background: #2a2a2a; color: #fff; }
.blog-cta h2 { margin: 0 0 8px; font-size: 1.2rem; color: #ffd95e; }
.blog-cta p { margin: 0 0 12px; line-height: 1.7; }
.blog-cta-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.blog-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: #ffd95e; color: #2a2a2a !important; text-decoration: none; font-weight: 600; font-size: .95rem; }
.blog-btn svg { width: 16px; height: 16px; }
.blog-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff !important; }
.blog-related h2 { font-size: 1.25rem; }

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 1rem; }
}
@media print {
  .blog-share, .blog-cta, .blog-related, .blog-cats { display: none; }
}

/* The coloured Play icon inside the app card is not a post image. */
.post-body .gp-icon { width: 15px; height: 16px; max-width: none; border-radius: 0; }
.post-body .app-promo-icon { border-radius: 14px; }
