/* Grow'n Go — inner-page styles.
   Ported from the per-page inline <style> blocks in the design system mockups
   (programs ratio cards, blog-post article layout), plus styling for the
   WordPress Query Loop on the blog index + single post. Loaded site-wide after
   site.css. All values reference the design tokens. */

/* ---- Programs: ratio cards ---- */
.ratio-card { text-align: center; padding: var(--space-6) var(--space-5); }
.ratio-card .gg-program__icon,
.ratio-card__icon { width: 56px; height: 56px; border-radius: var(--radius-lg); display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto var(--space-4); }
.ratio-card__big { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-3xl); color: var(--coral-500); line-height: 1; }
.ratio-card h3 { margin: var(--space-3) 0 var(--space-1); font-size: var(--text-lg); }
.ratio-card p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }

/* ---- Blog post: article layout ---- */
.article-head { max-width: var(--container-narrow); margin-inline: auto; padding: var(--space-9) var(--gutter) var(--space-6); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.article-head h1 { margin: 0; font-size: clamp(2rem, 5vw, var(--text-3xl)); }
.article-meta { display: flex; align-items: center; gap: var(--space-3); color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--weight-semibold); flex-wrap: wrap; justify-content: center; }
.article-figure { max-width: var(--container-wide); margin: 0 auto var(--space-8); padding-inline: var(--gutter); }
.article-figure .gg-imgph { aspect-ratio: 16 / 9; }
.author-card { max-width: var(--container-narrow); margin: var(--space-9) auto 0; display: flex; flex-direction: row; gap: var(--space-4); align-items: center; padding: var(--space-5); }

/* ---- Blog index + related: WordPress Query Loop styled as cards ----
   Core renders each item as <li class="wp-block-post">; we dress those to match
   the design's gg-card look without needing per-post markup. */
.gg-posts { list-style: none; margin: 0; padding: 0; }
.gg-posts li.wp-block-post {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-out);
}
.gg-posts li.wp-block-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gg-posts .wp-block-post-featured-image { margin: 0; }
.gg-posts .wp-block-post-featured-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gg-posts .wp-block-post-featured-image a,
.gg-posts .wp-block-post-featured-image { aspect-ratio: 16 / 9; }
.gg-posts .gg-post__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.gg-posts .wp-block-post-title { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-xl); line-height: var(--leading-snug); margin: 0; }
.gg-posts .wp-block-post-title a { color: var(--text-strong); text-decoration: none; }
.gg-posts .wp-block-post-title a:hover { color: var(--coral-700); }
.gg-posts .wp-block-post-excerpt { margin: 0; color: var(--text-body); }
.gg-posts .wp-block-post-excerpt__excerpt { font-size: var(--text-md); }
.gg-posts .wp-block-post-date { color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--weight-semibold); margin: 0; }
.gg-posts .wp-block-post-terms { font-size: var(--text-sm); }

/* Placeholder media tile when a post has no featured image */
.gg-posts li.wp-block-post:not(:has(.wp-block-post-featured-image)) .gg-post__body { padding-top: var(--space-6); }

/* ---- Live social feed: real post image filling a tile ---- */
.gg-feed__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Single post: coral hero, post-content prose, author card ---- */
.page-hero--coral { background: var(--surface-coral); border-bottom: 1px solid var(--border-subtle); }
.article-head { position: relative; z-index: 1; }
.article-head .wp-block-post-terms { font-size: var(--text-sm); }
.article-head .wp-block-post-terms a { display: inline-block; background: var(--coral-400); color: var(--ink-900); font-weight: var(--weight-bold); font-size: var(--text-sm); padding: 4px 14px; border-radius: var(--radius-pill); text-decoration: none; }
.prose .wp-block-post-content { max-width: var(--container-narrow); margin-inline: auto; }
.prose .wp-block-post-content p { line-height: var(--leading-relaxed); }
.prose .wp-block-post-content blockquote { padding: var(--space-5) var(--space-6); background: var(--surface-coral); border-radius: var(--radius-lg); font-family: var(--font-display); font-size: var(--text-lg); color: var(--coral-700); border: 0; margin-inline: 0; }
.author-card .wp-block-post-author { display: flex; align-items: center; gap: var(--space-4); }
.author-card .wp-block-post-author__avatar img { border-radius: var(--radius-pill); }
.author-card .wp-block-post-author__name { font-family: var(--font-display); font-weight: var(--weight-semibold); color: var(--text-strong); }
.author-card .wp-block-post-author__bio { color: var(--text-muted); font-size: var(--text-sm); margin: 2px 0 0; }
