/* CFO Insights: blog posts, the landing at /revolutioningfinancewithai and its
   category pages. Built on the shared px- system (css/px.css), laid out after
   openai.com's news and article pages. Brand values come from site.css. */

/* ---------- Landing and category heroes ---------- */
.px-hero .cfo-title { max-width: 18ch; }
.px-hero .cfo-sub { max-width: 58ch; font-size: clamp(16px, 1.5vw, 18px); }
.cfo-hero-badge { width: 100%; max-width: 440px; margin: 56px auto 0; }
.px-kicker a { color: inherit; text-decoration: none; }
.px-kicker a:hover { color: var(--nxt-cobalt); text-decoration: underline; }
.cfo-cat-posts { padding-top: 64px; }

/* Left-aligned pill buttons inside the band and the feature story. */
.px .cfo-actions-left { justify-content: flex-start; }
.cfo-band-actions { margin-top: 32px !important; }
.cfo-btn-inverse { background: #fff; color: var(--nxt-midnight); }
.cfo-btn-inverse:hover { background: var(--nxt-ink-100); color: var(--nxt-midnight); }
.px-band .px-band-copy + .px-band-copy { margin-top: 6px !important; }

/* ---------- Category filters: quiet pills ---------- */
.blog-nav { margin: 0 0 48px; }
.blog-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--nxt-gray); text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.blog-nav a:hover { background: var(--nxt-ink-50); color: var(--nxt-midnight); }
.blog-nav a[aria-current="page"] { background: var(--nxt-midnight); color: #fff; }

/* ---------- Post cards: image, title, grey meta ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--nxt-midnight); }
.post-card-link:hover { color: var(--nxt-midnight); }
.post-card-link img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--nxt-ink-50);
  transition: transform 400ms var(--ease-out);
}
.post-card-link:hover img { transform: scale(0.98); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.post-card-title { font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: var(--nxt-midnight); margin: 0; }
.post-card-link:hover .post-card-title { color: var(--nxt-cobalt); }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--nxt-gray); }
.post-card-cat { color: var(--nxt-midnight); font-weight: 500; }
.post-card-excerpt {
  font-size: 14px; line-height: 1.6; color: var(--nxt-graphite);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.post-empty { padding: 24px 0 8px; }
.post-empty h2 { font-size: 24px; font-weight: 500; margin-bottom: 8px; }

/* ---------- White papers ---------- */
.cfo-first > img { aspect-ratio: 1170 / 1020; }
.wp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 24px; margin-top: 112px; }
.wp-card { display: flex; flex-direction: column; }
.wp-card img { width: 100%; aspect-ratio: 1600 / 2071; object-fit: cover; background: var(--nxt-ink-50); }
.wp-body { display: flex; flex-direction: column; flex: 1; padding-top: 18px; font-size: 14px; line-height: 1.6; color: var(--nxt-graphite); }
.wp-body h3 { font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 10px; }
.wp-body p { margin-bottom: 0.6em; }
.wp-action { margin: auto 0 0 !important; padding-top: 12px; }
.cfo-top { margin: 72px 0 96px !important; text-align: center; font-size: 14px; }
.cfo-top a { color: var(--nxt-gray); font-weight: 500; text-decoration: none; }
.cfo-top a:hover { color: var(--nxt-cobalt); }
.cfo-top a::before { content: "\2191"; margin-right: 6px; }

/* ---------- Post ---------- */
.post-hero h1 { font-size: clamp(27px, 3.67vw, 44px); line-height: 1.08; letter-spacing: -0.04em; max-width: 22ch; overflow-wrap: anywhere; }
.post-back { font-size: 14px; margin: 0 0 28px !important; }
.post-back a { color: var(--nxt-gray); font-weight: 500; text-decoration: none; }
.post-back a::before { content: "\2190"; margin-right: 6px; }
.post-back a:hover { color: var(--nxt-cobalt); }
.post-cat { color: inherit; text-decoration: none; }
.post-cat:hover { color: var(--nxt-cobalt); text-decoration: underline; }
.post-meta { margin: 0 !important; }
.post-cover { margin: 56px 0 0; }
.post-cover img { width: 100%; }

.post-body { margin-top: 72px; overflow-wrap: anywhere; }
.post-body > :last-child { margin-bottom: 0; }
.post-body strong { color: var(--nxt-midnight); font-weight: 600; }
.post-figure { margin: 32px 0; }
.post-figure:first-child { margin-top: 0; }
.post-figure img { width: 100%; margin: 0; }
.post-back-end { margin: 72px 0 120px !important; }

@media (prefers-reduced-motion: reduce) {
  .post-card-link img, .blog-nav a { transition: none; }
}
@media (max-width: 1020px) {
  .post-list, .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .post-list, .wp-grid { grid-template-columns: 1fr; gap: 48px; }
  .wp-grid { margin-top: 80px; }
  .cfo-hero-badge { max-width: 300px; margin-top: 40px; }
  .post-cover { margin-top: 40px; }
  .post-body { margin-top: 48px; font-size: 16px; }
  .post-back-end { margin: 56px 0 88px !important; }
}

/* CFO playbook tiles (moved from the home page, 29 Oct): 3D frosted blue */
.v9-pb-tiles { position: relative; isolation: isolate; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.v9-pb-tiles::before { content: ""; position: absolute; z-index: -1; inset: 8% 6%; border-radius: 50%; filter: blur(60px); background: radial-gradient(closest-side, rgba(44, 91, 255, 0.45), rgba(111, 180, 255, 0.25) 60%, transparent); pointer-events: none; }
body .px .v9-pb-tiles li:not(#_) { display: grid; place-items: center; aspect-ratio: 5 / 7; padding: 20px; border-radius: 22px; overflow: hidden; text-align: center; color: #fff; font-size: clamp(16px, 1.45vw, 20px); font-weight: 500; line-height: 1.35;
  background: linear-gradient(160deg, rgba(40, 60, 255, 0.95) 0%, rgba(32, 39, 225, 0.93) 45%, rgba(14, 20, 150, 0.96) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 18px rgba(255, 255, 255, 0.12), inset 0 -18px 30px rgba(8, 12, 80, 0.4), 0 24px 44px -18px rgba(16, 22, 140, 0.55);
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1); }
body .px .v9-pb-tiles li:hover { transform: translateY(-6px); }
.v9-pb-tiles li span { max-width: 9em; text-shadow: 0 1px 8px rgba(8, 12, 80, 0.35); }
body .px .v9-pb-tiles li.is-photo:not(#_) { background: #E9E9E9 url("/assets/img/home/tile-photo.jpg") center / cover no-repeat; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 24px 44px -18px rgba(16, 22, 77, 0.4); }
@media (max-width: 900px) { .v9-pb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } body .px .v9-pb-tiles li:not(#_) { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { body .px .v9-pb-tiles li:hover { transform: none; } }
/* smaller playbook tiles (Pooja, 29 Oct) */
.v9-pb-tiles { max-width: 900px; margin: 0 auto; gap: 12px; }
body .px .v9-pb-tiles li:not(#_) { aspect-ratio: 4 / 5; padding: 14px; border-radius: 18px; font-size: clamp(14px, 1.15vw, 16px); }
@media (max-width: 900px) { body .px .v9-pb-tiles li:not(#_) { aspect-ratio: 1 / 1; } }
