/* CalorAI blog: article layout on top of the site's Electric Noir theme (styles.css) */
.blog-header { padding: 150px 0 40px; text-align: left; }
.blog-header .crumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.blog-header .crumbs a { color: var(--accent-cyan); text-decoration: none; }
.blog-header h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.02em; color: var(--text-primary); max-width: 860px; }
.blog-header .lede { margin-top: 18px; font-size: 19px; color: var(--text-secondary); max-width: 760px; line-height: 1.6; }
.blog-header .meta { margin-top: 16px; font-size: 14px; color: var(--text-muted); }

.article { max-width: 760px; margin: 0 auto; padding: 0 0 80px; font-size: 18px; line-height: 1.75; color: var(--text-secondary); }
.article h2 { font-family: var(--font-display); color: var(--text-primary); font-size: 28px; line-height: 1.25; margin: 48px 0 14px; }
.article h3 { font-family: var(--font-display); color: var(--text-primary); font-size: 21px; margin: 32px 0 10px; }
.article p { margin: 0 0 18px; }
.article strong { color: var(--text-primary); }
.article ul, .article ol { margin: 0 0 20px 22px; }
.article li { margin-bottom: 8px; }
.article a { color: var(--accent-cyan); }
.article sup a { text-decoration: none; font-size: 13px; }

.article figure { margin: 32px 0; }
.article figure img, .article figure video { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--border-subtle); background: var(--bg-card); }
.article figure.square { max-width: 520px; margin-left: auto; margin-right: auto; }
.article figcaption { font-size: 14px; color: var(--text-muted); margin-top: 10px; text-align: center; }
.hero-img { max-width: 1000px; margin: 0 auto 48px; }
.hero-img img { width: 100%; height: auto; display: block; border-radius: 20px; border: 1px solid var(--border-subtle); }

.article table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }
.article th { color: var(--text-primary); font-weight: 600; }

.callout { background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: 16px; padding: 20px 24px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }

.app-cta { margin: 56px 0 40px; padding: 36px 32px; border-radius: 22px; text-align: center;
  background: linear-gradient(160deg, #0A5830 0%, #16882B 100%); color: #fff; }
.app-cta img.icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.app-cta h2 { color: #fff; margin: 16px 0 8px; font-size: 28px; }
.app-cta p { color: rgba(255,255,255,.9); margin: 0 0 22px; }
.store-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 14px; background: #000; color: #fff !important;
  text-decoration: none; border: 1px solid rgba(255,255,255,.25); font-weight: 600; min-width: 200px; justify-content: center; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1; }
.store-btn span { text-align: left; line-height: 1.2; font-size: 17px; }
.store-btn svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store-btn:hover { background: #111; }

.sources { font-size: 15px; line-height: 1.6; }
.sources ol { margin-left: 20px; }
.sources li { margin-bottom: 10px; word-break: break-word; }
.blog-disclaimer { font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border-subtle); padding-top: 18px; margin-top: 32px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; padding-bottom: 100px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 18px; overflow: hidden; text-decoration: none; transition: var(--transition-smooth); display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.post-card img { width: 100%; aspect-ratio: 1200 / 628; object-fit: cover; display: block; }
.post-card .body { padding: 20px 22px 24px; }
.post-card h2 { font-family: var(--font-display); color: var(--text-primary); font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.post-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

@media (max-width: 640px) {
  .blog-header { padding-top: 120px; }
  .article { font-size: 17px; }
  .app-cta { padding: 28px 18px; }
}
