/* Blog: listing cards, blog index, and article pages. Builds on styles.css tokens. */

/* Post cards (home "From the blog" + blog index) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #ffffff; border: 1px solid var(--emerald-line); border-radius: 12px; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--emerald); box-shadow: 0 12px 28px rgba(8, 44, 34, .1); }
.post-card-img { aspect-ratio: 16 / 9; background: var(--emerald-tint); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-ph { width: 100%; height: 100%; background: linear-gradient(45deg, var(--emerald), var(--emerald-deep)); }
.post-card-body { padding: 20px 22px 24px; }
.post-card-date { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.post-card h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); margin: 8px 0 10px; }
.post-card-body p:last-child { font-size: 15px; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Home: latest posts */
.partners { padding-bottom: 72px; }
.latest { padding-top: 72px; padding-bottom: 96px; border-top: 1px solid var(--emerald-line); }
.latest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.latest-all { color: var(--emerald); font-weight: 600; text-decoration: none; white-space: nowrap; }
.latest-all:hover { text-decoration: underline; }

/* Blog index */
.blog-hero { background: linear-gradient(45deg, var(--emerald) 0%, var(--emerald-deep) 100%); color: #ffffff; }
.blog-hero .wrap { padding-top: 72px; padding-bottom: 72px; }
.blog-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.08; margin-top: 14px; }
.blog-hero p:last-child { font-size: 19px; line-height: 1.6; color: #dff0e8; max-width: 600px; margin-top: 18px; }
.blog-list { padding-top: 64px; padding-bottom: 96px; }

/* Article page: the main site's post template (banner, article column, sticky
   sidebar) and its .rf-article styles, value for value, in RRM colours.
   Colour map: navy #1e3350 -> #0b3a2b, #2d4a6e -> #1b684e, #1a2535 -> #16241e,
   #f0f4f8 -> #f0f6f2, #e0e8f0 -> #dbe8e1, #d9e2ee -> #d3e8dd, teal link #1d7874 -> #1b684e,
   sidebar navy #16163f -> #082c22. Gold #c8a96e and grey #5a6473 unchanged. */
.post-banner {
  position: relative; min-height: 350px; display: flex; align-items: center;
  background: url('/img/hero-autumn.jpg') 50% 60% / cover no-repeat #082c22;
}
.post-banner::before { content: ""; position: absolute; inset: 0; background: rgba(8, 44, 34, .72); }
.post-banner .wrap { position: relative; width: 100%; }
.post-banner h1 {
  font-family: 'Inter Tight', sans-serif; font-size: 52px; font-weight: 500; line-height: 1;
  color: #ffffff; text-align: center; max-width: 1000px; margin: 0 auto; padding: 40px 0;
}

.post-layout { display: grid; grid-template-columns: minmax(0, 724px) 416px; justify-content: space-between; gap: 60px; padding-top: 100px; padding-bottom: 100px; max-width: 1240px; }
.post-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: 'Inter Tight', sans-serif; font-size: 16px; color: #4a4a4a; margin: 0 0 50px 14px; }
.post-info .pi-cat { display: inline-flex; align-items: center; gap: 6px; color: #111111; }
.post-info .pi-cat svg { width: 14px; height: 14px; fill: #111111; }
.post-info a { color: inherit; text-decoration: none; }
.post-feat { width: 100%; height: auto; display: block; margin: 0 0 40px; }
.post-content { min-width: 0; }

.post-side { position: relative; padding-left: 10px; }
.side-sticky { position: sticky; top: 100px; }
.side-share { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 20px; border-bottom: 1px solid #e3e3e3; margin-bottom: 36px; }
.post-side h2 { font-family: 'Inter Tight', sans-serif; font-size: 24px; font-weight: 500; color: #082c22; margin: 0; }
.side-more { padding: 0 16px; margin-bottom: 28px !important; }
.share-links { display: flex; gap: 22px; }
.share-links a { display: inline-flex; }
.share-links svg { width: 16px; height: 16px; fill: #082c22; }
.share-links a:hover svg { fill: #1b684e; }
.side-post { display: grid; grid-template-columns: 151px 1fr; gap: 16px; text-decoration: none; margin: 0 0 32px; }
.side-post img { width: 151px; height: 79px; object-fit: cover; display: block; }
.side-post h3 { font-family: 'Inter Tight', sans-serif; font-size: 18px; font-weight: 500; line-height: 1.2; color: #4a4a4a; margin: 0 0 12px; }
.side-post:hover h3 { color: #1b684e; }
.side-post p { font-family: -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 24px; color: #333333; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* "This week's blog, in 90 seconds" box (main site inline styles) */
.rf-video { background: #f0f6f2; border-radius: 14px; padding: 24px 24px 20px; margin: 0 0 32px; }
.rf-video-label { margin: 0 0 14px; font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #1b684e; }
.rf-video-frame { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; }
.rf-video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* .rf-article: main site stylesheet, recoloured */
.rf-article { font-family: 'Inter', -apple-system, sans-serif; color: #16241e; max-width: 680px; margin: 0 auto; padding: 8px 20px 64px; line-height: 1.65; font-size: 17.5px; }
.rf-article .rf-eyebrow { color: #c8a96e; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 40px 0 14px; }
.rf-article h1.rf-title { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 40px; line-height: 1.18; color: #0b3a2b; margin: 0 0 14px; }
.rf-article .rf-dek { font-size: 20px; line-height: 1.5; color: #5a6473; margin: 0 0 22px; }
.rf-article .rf-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #5a6473; padding-bottom: 14px; }
.rf-article .rf-meta p { margin: 0; }
.rf-article .rf-meta strong { color: #16241e !important; }
.rf-article .rf-avatar { width: 34px; height: 34px; border-radius: 999px; background: #1b684e; color: #fff; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.rf-article .rf-disclosure-line { font-size: 12.5px; color: #5a6473; border-top: 1px solid #dbe8e1; border-bottom: 1px solid #dbe8e1; padding: 10px 0; margin-bottom: 36px; }
.rf-article .rf-disclosure-line a { color: #1b684e; }
.rf-article .rf-takeaways { background: #f0f6f2; border-left: 3px solid #1b684e; border-radius: 0 14px 14px 0; padding: 22px 26px; margin: 0 0 40px; }
.rf-article .rf-takeaways h2 { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #1b684e; margin: 0 0 12px; }
.rf-article .rf-takeaways ul { margin: 0; padding-left: 18px; }
.rf-article .rf-takeaways li { margin-bottom: 8px; font-size: 16px; }
.rf-article h2 { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.3; color: #0b3a2b; margin: 52px 0 16px; }
.rf-article p { margin: 0 0 20px; }
.rf-article ul, .rf-article ol { margin: 0 0 20px; padding-left: 22px; }
.rf-article a { color: #1b684e; }
.rf-article .rf-pull { margin: 48px 0; padding: 0; }
.rf-article .rf-pull blockquote { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 500; font-size: 26px; line-height: 1.42; color: #1b684e; margin: 0 0 14px; padding: 0; border: none; }
.rf-article .rf-pull blockquote p { margin: 0; }
.rf-article .rf-pull-rule { width: 64px; height: 3px; background: #c8a96e; }
.rf-article .rf-cta { background: #1b684e; border-radius: 14px; padding: 30px 32px; margin: 56px 0 40px; color: #fff; }
.rf-article .rf-cta h3 { font-family: 'Lora', Georgia, serif; font-size: 22px; margin: 0 0 8px; color: #fff; }
.rf-article .rf-cta p { color: #d3e8dd; font-size: 15.5px; margin: 0 0 18px; }
.rf-article .rf-cta p:last-child { margin: 0; }
.rf-article .rf-cta a { display: inline-block; background: #c8a96e; color: #0b3a2b; font-weight: 600; font-size: 15px; padding: 11px 22px; border-radius: 8px; text-decoration: none; }
.rf-article .rf-bio { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid #dbe8e1; padding-top: 26px; margin-top: 8px; }
.rf-article .rf-bio .rf-avatar { width: 52px; height: 52px; font-size: 17px; flex-shrink: 0; }
.rf-article .rf-bio strong { color: #0b3a2b; }
.rf-article .rf-bio p { font-size: 14.5px; color: #5a6473; margin: 4px 0 0; }
.rf-article details.rf-disclosures { margin-top: 36px; font-size: 12.5px; color: #5a6473; border-top: 1px solid #dbe8e1; padding-top: 16px; }
.rf-article details.rf-disclosures summary { cursor: pointer; font-weight: 600; color: #1b684e; font-size: 13px; }
/* Older posts: plain WordPress markup inside the same article column */
.rf-article.rf-legacy { padding-top: 0; }
.rf-article.rf-legacy img { max-width: 100%; height: auto; }
.rf-article.rf-legacy table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 24px; display: block; overflow-x: auto; }
.rf-article.rf-legacy td, .rf-article.rf-legacy th { border: 1px solid #dbe8e1; padding: 10px 12px; text-align: left; vertical-align: top; }
.rf-article.rf-legacy hr { border: 0; border-top: 1px solid #dbe8e1; margin: 32px 0; }
.rf-article.rf-legacy .has-small-font-size { font-size: 13px; color: #5a6473; }
.rf-article .rf-avatar.rf-avatar-org { font-size: 11px; letter-spacing: .04em; }
.rf-article .rf-bio .rf-avatar.rf-avatar-org { font-size: 14px; }
@media (max-width: 640px) { .rf-article h1.rf-title { font-size: 31px; } .rf-article .rf-pull blockquote { font-size: 22px; } }

@media (max-width: 1180px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .side-sticky { position: static; }
  .post-banner { min-height: 260px; }
  .post-banner h1 { font-size: 36px; line-height: 1.1; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .latest-head { flex-direction: column; align-items: flex-start; }
  .post-banner h1 { font-size: 30px; }
  .post-info { margin-left: 0; margin-bottom: 28px; }
  .rf-article { padding-left: 0; padding-right: 0; }
  .blog-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
}

/* Stand-alone pages: Contact, Privacy */
.page-body { padding-top: 80px; padding-bottom: 96px; }
.contact-intro { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.contact-intro .section-title { margin-top: 12px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1000px; margin: 0 auto; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 22px 28px; border: 1px solid var(--emerald); border-radius: 10px; box-shadow: -10px -10px 0 0 var(--emerald-deep); background: #fff; text-decoration: none; color: inherit; margin-top: 26px; }
.contact-card .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--emerald); display: flex; align-items: center; justify-content: center; margin: -26px auto 12px; }
.contact-card .ic svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.contact-value { font-size: 18px; font-weight: 600; color: var(--emerald-deep); line-height: 1.5; }
a.contact-card:hover .contact-value { text-decoration: underline; }
.contact-note { text-align: center; font-size: 17px; color: var(--body); margin-top: 48px; }
.contact-small { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }
.legal { max-width: 780px; }
.legal-date { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.legal h2 { font-size: 22px; font-weight: 600; color: var(--emerald-deep); margin: 36px 0 12px; }
.legal p { font-size: 17px; line-height: 1.75; color: var(--body); margin: 0 0 14px; }
.legal a { color: var(--emerald); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) { .page-body { padding-top: 56px; padding-bottom: 64px; } }
