/* ==========================================================================
   Insight blog — overrides on top of the policy-insider-ai parent theme.
   Reuses parent tokens (--navy, --cobalt, --ink, --slate-*, --serif, --sans).
   ========================================================================== */

/* ---------- Hide parent header bits we don't want on the insight blog ---------- */
.site-nav .nav-cta,
.site-nav .lang-btn { display: none !important; }

/* ---------- Front-page hero (dark, editorial, with photo) ---------- */
.insight-hero {
  padding: 0 !important; max-width: none !important; margin: 0 !important;
  position: relative; overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(14,36,80,0.78) 0%, rgba(14,36,80,0.68) 50%, rgba(14,36,80,0.86) 100%),
    url('/wp-content/uploads/2025/09/524039989.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.insight-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(43,93,201,0.22) 0%, transparent 60%);
}
.insight-hero .section {
  padding: 130px 32px 120px;
  max-width: 1100px;
  position: relative; z-index: 1;
  text-align: center;
}
.insight-hero .section-eyebrow {
  color: var(--sky);
  justify-content: center;
}
.insight-hero .section-eyebrow::before { background: var(--sky); }
.insight-hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 400;
  color: #fff;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 auto 28px;
  max-width: 14ch;
}
.insight-hero-title em { color: var(--sky); font-style: italic; font-weight: 400; }
.insight-hero-lede {
  font-size: 18px; font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 40px;
}
.insight-hero-actions {
  display: flex; gap: 28px;
  align-items: center; justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
/* Override any inherited button/block styling on hero text links */
.insight-hero a.insight-hero-link,
.insight-hero .insight-hero-link {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: rgba(255,255,255,0.62);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  border-radius: 0;
  box-shadow: none;
}
.insight-hero a.insight-hero-link:hover,
.insight-hero .insight-hero-link:hover { color: #fff; background: transparent !important; }

/* ---------- Fake input that opens the iframe modal ---------- */
.hero-fake-input {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 880px;
  margin: 0 auto;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  padding: 9px 9px 9px 22px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px; font-weight: 400;
  color: var(--slate-500);
  text-align: left;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.hero-fake-input:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,0.24);
}
.hero-fake-input-text { flex: 1; color: var(--slate-500); font-weight: 400; }
.hero-fake-input-text strong { color: var(--ink); font-weight: 500; }
.hero-fake-input-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cobalt); color: #fff;
  font-size: 13.5px; font-weight: 500;
  padding: 11px 22px; border-radius: 999px;
  flex-shrink: 0; transition: background 0.2s;
}
.hero-fake-input:hover .hero-fake-input-cta { background: var(--sky); }
.hero-fake-input-note {
  margin: 14px auto 0;
  font-size: 12.5px; font-weight: 300;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ---------- Override parent contact modal positioning to be viewport-centered ----------
   Parent uses top:50%/left:50%/transform:translate(-50%,-50%) which can drift off-center
   in this layout. Use the inset:0 + margin:auto trick for rock-solid centering. */
dialog.piai-modal[open],
.piai-modal[open] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: auto !important;
  transform: none !important;
  height: max-content !important;
  max-height: calc(100vh - 48px) !important;
}

/* Same animation as the parent, minus the Y-translate so we don't fight the centering. */
@starting-style {
  dialog.piai-modal[open],
  .piai-modal[open] {
    opacity: 0;
  }
}

/* Lock body scroll while the modal is open. */
body:has(dialog.piai-modal[open]) { overflow: hidden; }

/* ---------- Newsletter carousel (3-up desktop, 1 mobile, scroll-snap) ---------- */
.newsletter-carousel { position: relative; margin-top: 40px; }
.newsletter-carousel-nav {
  display: flex; gap: 8px;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.newsletter-carousel-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--slate-100);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, opacity 0.18s, transform 0.15s;
  padding: 0;
}
.newsletter-carousel-arrow svg { width: 14px; height: 14px; }
.newsletter-carousel-arrow:hover:not([disabled]) {
  background: var(--cobalt); border-color: var(--cobalt); color: #fff;
  transform: translateY(-1px);
}
.newsletter-carousel-arrow[disabled] { opacity: 0.35; cursor: not-allowed; }

/* Pagination dots */
.newsletter-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.newsletter-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: var(--slate-100);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.25s ease, border-radius 0.2s ease;
}
.newsletter-carousel-dot:hover { background: var(--slate-300); }
.newsletter-carousel-dot.is-active {
  background: var(--cobalt);
  width: 24px;
  border-radius: 4px;
}

.newsletter-carousel-track {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y; /* explicit: horizontal swipe scrolls the track, vertical bubbles up */
  overscroll-behavior-x: contain; /* prevent rubber-band from scrolling parent horizontally */
  scrollbar-width: none;
  padding: 4px 4px 12px;
  margin: 0 -4px;
}
.newsletter-carousel-track::-webkit-scrollbar { display: none; }

/* Card sizing per breakpoint */
.newsletter-carousel-track .newsletter-card {
  flex: 0 0 calc((100% - 48px) / 3);  /* desktop: 3 visible, 2 gaps × 24px */
  scroll-snap-align: start;
  min-width: 0;
}
@media (max-width: 1100px) {
  .newsletter-carousel-track .newsletter-card {
    flex: 0 0 calc((100% - 24px) / 2);  /* tablet: 2 visible */
  }
}
@media (max-width: 700px) {
  .newsletter-carousel-track .newsletter-card {
    flex: 0 0 calc(100% - 36px);  /* mobile: 1 fully visible + peek of next so swipe is discoverable */
  }
  .newsletter-carousel-track { padding-right: 16px; } /* keeps last card flush against edge when scrolled to end */
  .newsletter-carousel-nav { justify-content: center; }
}

/* Card visual (used inside the carousel) */
.newsletter-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.newsletter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(43,93,201,0.22);
}
.newsletter-card .tax-badge { align-self: flex-start; margin: 0; }
.newsletter-card-title {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  text-align: center;
  color: var(--ink); margin: 10px 0; line-height: 1.25; letter-spacing: -0.01em;
}
.newsletter-card-body {
  font-size: 14.5px; font-weight: 300;
  color: var(--slate-500); line-height: 1.7;
  flex: 1; margin: 0;
}
.newsletter-card-link {
  color: var(--cobalt); font-weight: 500; text-decoration: none; font-size: 14px;
  align-self: flex-start; margin-top: 4px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}
.newsletter-card-link:hover { color: var(--sky); background: transparent !important; }

/* Bespoke card variant (the 4th, CTA-flavoured) */
.newsletter-card--bespoke {
  background: linear-gradient(135deg, var(--navy) 0%, #163272 100%);
  border-color: transparent;
  color: #fff;
}
.newsletter-card--bespoke .tax-badge {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}
.newsletter-card--bespoke .newsletter-card-title { color: #fff; }
.newsletter-card--bespoke .newsletter-card-body { color: rgba(255,255,255,0.72); }
.newsletter-card--bespoke .newsletter-card-link {
  color: #fff;
  background: var(--cobalt) !important;
  padding: 11px 22px !important;
  border-radius: 999px;
  margin-top: 10px;
}
.newsletter-card--bespoke .newsletter-card-link:hover {
  background: var(--sky) !important;
  color: #fff;
}


.newsletter-card-img{
  max-width: 95px;
  margin: auto;
}

/* ---------- Latest briefs (Query Loop on home + blog index) ----------
   The Query block renders <div.latest-briefs> > <ul.wp-block-post-template> > <li.wp-block-post>.
   Apply the grid to the inner <ul> so each <li> becomes a real grid cell. */
.latest-briefs .wp-block-post-template,
.blog-index-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* desktop: 4 per row */
  gap: 28px !important;
  margin: 40px 0 0 !important;
  list-style: none !important;
  padding: 0 !important;
}
@media (max-width: 1100px) {
  .latest-briefs .wp-block-post-template,
  .blog-index-grid .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important; /* tablet: 2 per row */
  }
}
@media (max-width: 700px) {
  .latest-briefs .wp-block-post-template,
  .blog-index-grid .wp-block-post-template {
    grid-template-columns: 1fr !important; /* mobile: 1 per row */
  }
}
.latest-briefs .wp-block-post,
.blog-index-grid .wp-block-post {
  margin: 0 !important;
  list-style: none;
  display: flex; /* let the article inside fill the grid cell height */
  height: 100%;
}
.latest-briefs .wp-block-post > .brief-card,
.blog-index-grid .wp-block-post > .brief-card {
  width: 100%;
  height: 100%;
}
.brief-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex !important; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.brief-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(43,93,201,0.22);
}
.brief-card .wp-block-post-featured-image,
.brief-card .brief-card-image { margin: 0 !important; }
.brief-card .wp-block-post-featured-image img,
.brief-card .brief-card-image img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.brief-card:hover .wp-block-post-featured-image img,
.brief-card:hover .brief-card-image img { transform: scale(1.04); }
.brief-card-inner { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.brief-card .tax-badge { align-self: flex-start; margin: 0 0 4px; }
.brief-card-title,
.brief-card .wp-block-post-title {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  color: var(--ink); line-height: 1.3; letter-spacing: -0.01em;
  margin: 0 !important;
}
.brief-card-title a,
.brief-card .wp-block-post-title a { color: inherit; text-decoration: none; }
.brief-card-title a:hover,
.brief-card .wp-block-post-title a:hover { color: var(--cobalt); }
.brief-card-excerpt,
.brief-card .wp-block-post-excerpt {
  font-family: var(--sans); font-size: 13.5px; font-weight: 300;
  color: var(--slate-500); line-height: 1.65;
  margin: 0 !important; flex: 1;
}
.brief-card-excerpt p, .brief-card .wp-block-post-excerpt p { margin: 0 !important; }
.brief-card-date,
.brief-card .wp-block-post-date {
  font-family: var(--sans); font-size: 12px;
  color: var(--slate-300); font-weight: 500;
  margin: 6px 0 0 !important;
}

/* ---------- Section variants used on the front page ---------- */
.section-paper { background: var(--paper); }
.section.section-paper { max-width: 1100px; }

/* Mist — muted lavender-slate background that extends edge-to-edge.
   The section itself stays max-width-constrained for content alignment, but a
   pseudo-element paints a full-viewport-width band behind it. Body has
   overflow-x: hidden so the 100vw extension doesn't cause horizontal scroll. */
.section-mist {
  position: relative;
  isolation: isolate;
}
.section-mist::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #A8B5CD;
  z-index: -1;
}
.section-mist .section-eyebrow { color: var(--navy); }
.section-mist .section-eyebrow::before { background: var(--navy); }

/* Navy — full navy background edge-to-edge, used on Latest briefs on the home. */
.section-navy {
  position: relative;
  isolation: isolate;
}
.section-navy::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #0E2450;
  z-index: -1;
}
/* Recolor the section's labels for legibility on the dark band — eyebrow goes
   sky, title goes white. Cards keep their white surface. */
.section-navy .section-eyebrow { color: var(--sky); }
.section-navy .section-eyebrow::before { background: var(--sky); }
.section-navy .section-title,
.section-navy h2.section-title,
.section-navy h2 { color: #fff; }
/* "Read all briefs →" link tail anchored to slate-300 so it doesn't disappear */
.section-navy a.newsletter-card-link { color: rgba(255,255,255,0.78); }
.section-navy a.newsletter-card-link:hover { color: #fff; }

/* White — same edge-to-edge technique as .section-mist, but pure white. */
.section-white {
  position: relative;
  isolation: isolate;
}
.section-white::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #FFFFFF;
  z-index: -1;
}

/* Soften the all-section bottom padding on the home so sections breathe together */
body.home .section + .section { padding-top: 64px; }

/* ---------- Blog-index hero (page 9 / home.html) ---------- */
.blog-index-hero { padding: 0 !important; max-width: none !important; margin: 0 !important; }
.blog-index-hero .section { padding: 110px 48px 70px; max-width: 980px; }
.blog-index-hero h1 {
  font-family: var(--serif); font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400; color: var(--ink);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px;
}
.blog-index-hero .blog-index-lede {
  font-size: 17px; font-weight: 300; color: var(--slate-500);
  line-height: 1.7; max-width: 560px; margin: 0;
}

/* ---------- Pagination on home.html / archives ---------- */
.wp-block-query-pagination { margin-top: 48px !important; justify-content: center !important; gap: 8px !important; }
.wp-block-query-pagination a, .wp-block-query-pagination .wp-block-query-pagination-numbers {
  font-family: var(--sans); font-size: 14px; color: var(--slate-500);
}
.wp-block-query-pagination a:hover { color: var(--cobalt); }
.wp-block-query-pagination .current {
  color: var(--ink); font-weight: 600;
}

/* ---------- About Insights — two-column with image ---------- */
.about-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .about-insights-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
.about-insights-text { text-align: center; }
.about-insights-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.about-insights-text p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.75;
  margin: 0 auto 18px;
  max-width: 50ch;
}
.about-insights-text p:last-child { margin-bottom: 0; }
.about-insights-text p strong {
  color: var(--ink);
  font-weight: 600;
}
.about-insights-text a {
  color: var(--cobalt);
  text-decoration: none;
  font-weight: 500;
}
.about-insights-text a:hover {
  color: var(--sky);
  text-decoration: underline;
}
.about-insights-image {
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.about-insights-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* When the placeholder src is empty, hide the broken-image icon so the
   white card sits empty until you swap in the real image */
.about-insights-image img:not([src]),
.about-insights-image img[src=""] { visibility: hidden; }

/* ---------- Trust section (founder + bullets, on mist bg) ---------- */
.trust-section { /* sits on .section-mist for the lavender band */ }
.trust-section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 56px;
}

/* Top row: photo on left, intro paragraphs on right */
.trust-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 36px;
}
@media (max-width: 880px) {
  .trust-intro-grid { grid-template-columns: 1fr; gap: 36px; }
}
.trust-photo-col { text-align: center; }
.trust-photo {
  margin: 0 auto;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.trust-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trust-read-more {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px;
  color: var(--cobalt);
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.trust-read-more svg { width: 22px; height: 22px; flex-shrink: 0; }
.trust-read-more:hover { color: var(--sky); gap: 16px; }

/* Two-column bullets */
.trust-bullets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 32px;
}
@media (max-width: 880px) {
  .trust-bullets-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Shared bullet typography (intro list + 2-col bullets) */
.trust-section .trust-bullets {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
}
.trust-section .trust-bullets > li {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 22px;
  padding-left: 4px;
}
.trust-section .trust-bullets > li:last-child { margin-bottom: 0; }
.trust-section .trust-bullets > li::marker { color: var(--ink); }
.trust-section .trust-bullets > li strong { font-weight: 700; color: var(--ink); }
.trust-section .trust-bullets > li em { font-style: italic; }

/* Intro column paragraphs */
.trust-intro-col p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 16px;
}
.trust-intro-col p strong { color: var(--ink); font-weight: 700; }
.trust-intro-col p em { font-style: italic; }

/* Bottom CTA + signature + LinkedIn */
.trust-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(14,36,80,0.08);
}
.trust-cta p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 18px;
}
.trust-cta .trust-link {
  color: var(--cobalt);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.trust-cta .trust-link:hover { color: var(--sky); text-decoration: underline; }
.trust-signature { margin-top: 18px !important; }
.trust-signature em { font-style: italic; }
.trust-linkedin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  margin-top: 10px;
  color: var(--navy);
  background: transparent;
  border-radius: 4px;
  transition: color 0.2s, transform 0.15s;
}
.trust-linkedin svg { width: 22px; height: 22px; }
.trust-linkedin:hover { color: var(--cobalt); transform: translateY(-1px); }

/* ---------- PQ Insights — image + bullets + subscribe bar ---------- */
.pq-insights-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
}
.pq-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .pq-insights-grid { grid-template-columns: 1fr; gap: 40px; }
}
.pq-insights-image {
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pq-insights-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pq-insights-text p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 18px;
}
.pq-insights-text p strong { font-weight: 600; color: var(--ink); }
.pq-insights-bullets {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 22px;
}
.pq-insights-bullets > li {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 4px;
}
.pq-insights-bullets > li:last-child { margin-bottom: 0; }
.pq-insights-bullets > li::marker { color: var(--ink); }
.pq-insights-bullets > li strong { font-weight: 700; color: var(--ink); }

/* Subscribe bar */
.pq-subscribe {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  margin: 56px auto 0;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 999px;
  padding: 9px 9px 9px 28px;
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 6px 22px rgba(14,36,80,0.10);
}
.pq-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(14,36,80,0.14);
  border-color: rgba(43,93,201,0.28);
}
.pq-subscribe-text {
  flex: 1;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--slate-500);
}
.pq-subscribe-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14.5px; font-weight: 500;
  padding: 13px 28px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.pq-subscribe-cta svg { width: 16px; height: 16px; }
.pq-subscribe:hover .pq-subscribe-cta { background: var(--cobalt); }
@media (max-width: 700px) {
  .pq-subscribe {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 16px;
    gap: 12px;
  }
  .pq-subscribe-text { text-align: center; padding: 4px 8px; }
  .pq-subscribe-cta { width: 100%; justify-content: center; }
}

/* ---------- About Policy-Insider.AI — text + video on mist ---------- */
.about-piai-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
}
.about-piai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .about-piai-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-piai-text {
  text-align: center;
}
.about-piai-text p {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
  margin: 0 auto 18px;
  max-width: 50ch;
}
.about-piai-text p:last-child { margin-bottom: 0; }
.about-piai-text p strong { font-weight: 700; color: var(--ink); }
.about-piai-text a {
  color: var(--cobalt);
  text-decoration: none;
  font-weight: 500;
}
.about-piai-text a:hover { color: var(--sky); text-decoration: underline; }

/* "Read the full story →" CTA pointing to /about/ */
.about-piai-text a.about-piai-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cobalt);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.005em;
  margin-top: 8px;
  transition: color 0.18s, gap 0.18s;
}
.about-piai-text a.about-piai-readmore:hover {
  color: var(--sky);
  text-decoration: none;
  gap: 8px;
}

.about-piai-media { text-align: center; }
.about-piai-video {
  margin: 0 auto 24px;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.about-piai-video video {
  width: 100%;
  height: auto;
  display: block;
}
/* "About Insights" logo card on the right column — same shape as the video
   card above so the section keeps a consistent rhythm. */
.about-piai-logo {
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.about-piai-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 760px) {
  .about-piai-logo { max-width: 320px; padding: 36px; }
}

/* ====================================================================
   "About Insights" — richly-designed home section
   Eyebrow + headline + lede, a 3-stat strip with hairline dividers,
   and a 4-card feature grid with cobalt-tinted icon tiles.
   ==================================================================== */
.about-insights {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  padding: 100px 32px !important;
  max-width: none !important;
}
.about-insights-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.about-insights .about-insights-eyebrow {
  justify-content: center;
  color: var(--cobalt);
  margin: 0 auto 18px;
}
.about-insights-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.018em;
  margin: 0 auto 22px;
  max-width: 22ch;
}
.about-insights-headline em {
  font-style: italic;
  color: var(--cobalt);
  font-weight: 700;
}
.about-insights-lede {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
}
.about-insights-lede a {
  color: var(--cobalt);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 93, 201, 0.32);
  transition: color 0.15s, border-color 0.15s;
}
.about-insights-lede a:hover { color: var(--sky); border-color: var(--sky); }

/* 3-stat strip with hairline dividers */
.about-insights-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 56px auto 0;
  flex-wrap: wrap;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 36px;
  position: relative;
}
.about-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--slate-100);
}
.about-stat-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  display: block;
}
.about-stat-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate-500);
  display: block;
}
@media (max-width: 600px) {
  .about-insights-stats { gap: 8px 0; }
  .about-stat { flex: 0 0 100%; padding: 14px 0; }
  .about-stat:not(:last-child)::after {
    right: auto; left: 50%; top: auto; bottom: 0;
    transform: translateX(-50%);
    width: 36px; height: 1px;
  }
}

/* 4-card feature grid */
.about-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 64px auto 0;
}
@media (max-width: 980px) {
  .about-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .about-insights-grid { grid-template-columns: 1fr; }
}
.about-insights-grid { align-items: stretch; }
.about-feature {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-self: stretch;
}
.about-feature .about-feature-body { flex: 1; }
.about-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(15, 30, 70, 0.16);
  border-color: rgba(43, 93, 201, 0.28);
}
.about-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43, 93, 201, 0.10) 0%, rgba(43, 93, 201, 0.20) 100%);
  color: var(--cobalt);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.about-feature-icon svg { width: 22px; height: 22px; }
.about-feature-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.about-feature-body {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

/* ====================================================================
   "Built on Policy-Insider.AI" — closing section with the platform demo
   video, on a clean white-paper background. Bold contrast comes from the
   serif headline (cobalt italic accent), the video card with its dark
   shadow, and the cobalt CTA pill.
   ==================================================================== */
.about-piai-bold {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  padding: 110px 32px !important;
  max-width: none !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.about-piai-bold::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(43, 93, 201, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(43, 93, 201, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.about-piai-bold-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .about-piai-bold { padding: 80px 32px !important; }
  .about-piai-bold-inner { grid-template-columns: 1fr; gap: 44px; }
}
.about-piai-bold .about-piai-bold-eyebrow {
  color: var(--cobalt);
  margin: 0 0 18px;
}
.about-piai-bold .about-piai-bold-eyebrow::before { background: var(--cobalt); }
.about-piai-bold-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.018em;
  margin: 0 0 22px;
}
.about-piai-bold-title em {
  font-style: italic;
  color: var(--cobalt);
  font-weight: 700;
}
.about-piai-bold-lede {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 540px;
}
.about-piai-bold-lede strong { color: var(--ink); font-weight: 600; }
.about-piai-bold-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 14px;
}
.about-piai-bold-features li {
  position: relative;
  padding-left: 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}
.about-piai-bold-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 14px;
  height: 2px;
  background: var(--cobalt);
}
.about-piai-bold-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cobalt);
  color: #fff !important;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.18s, transform 0.15s, box-shadow 0.2s, gap 0.18s;
  box-shadow: 0 14px 30px -10px rgba(43, 93, 201, 0.40);
}
.about-piai-bold-cta:hover {
  background: var(--sky);
  transform: translateY(-1px);
  gap: 12px;
  box-shadow: 0 18px 36px -10px rgba(74, 130, 228, 0.55);
}
.about-piai-bold-caption {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--slate-500);
  margin: 16px 0 0;
}

/* Right column: the video card — keep a punchy dark frame so the demo pops
   against the light section. */
.about-piai-bold-media { position: relative; }
.about-piai-bold-video {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy);
  position: relative;
  box-shadow:
    0 28px 60px -18px rgba(15, 30, 70, 0.30),
    0 0 0 1px rgba(15, 30, 70, 0.06) inset;
}
.about-piai-bold-video video {
  width: 100%;
  height: auto;
  display: block;
}
.about-piai-bold-video::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(74, 130, 228, 0.10) 0%, transparent 45%);
  pointer-events: none;
}

/* ====================================================================
   "Why You Can Trust Our AI Policy Newsletters" — trust-section
   restyled on a bold navy gradient with sky-blue accents.
   The section markup uses .section-white which paints a white pseudo-
   element band edge-to-edge; we override that ::before for trust-section
   to layer the navy gradient + radial highlights instead.
   ==================================================================== */
section.trust-section {
  padding: 120px 32px !important;
  /* No overflow:hidden — the parent .section-white::before band uses
     width:100vw + transform:translateX(-50%) to extend edge-to-edge, so
     clipping here would re-create the white bars on the sides. */
}
section.trust-section::before {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(74, 130, 228, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(43, 93, 201, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, #0E2450 0%, #163272 55%, #1c3a82 100%);
}
section.trust-section > * { position: relative; z-index: 1; }

/* Title — white serif, larger, with subtle text shadow */
.trust-section .trust-section-title {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  font-size: clamp(30px, 3.6vw, 48px);
  margin-bottom: 64px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

/* Photo — cobalt → sky gradient halo behind it */
.trust-section .trust-photo {
  position: relative;
  background: linear-gradient(135deg, var(--cobalt), var(--sky));
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
}
.trust-section .trust-photo::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--radius-lg) + 10px);
  background: linear-gradient(135deg, rgba(74, 130, 228, 0.55), rgba(43, 93, 201, 0.40));
  filter: blur(28px);
  z-index: -1;
  opacity: 0.7;
}

/* Read more — sky tint, white on hover */
.trust-section .trust-read-more { color: var(--sky); }
.trust-section .trust-read-more:hover { color: #fff; }

/* Intro column copy — light text */
.trust-section .trust-intro-col p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}
.trust-section .trust-intro-col p strong { color: #fff; font-weight: 700; }
.trust-section .trust-intro-col p em { color: rgba(255, 255, 255, 0.95); }

/* Bullets — replace disc with sky-blue dash accent */
.trust-section .trust-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-section .trust-bullets > li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}
.trust-section .trust-bullets > li::marker { content: ''; }
.trust-section .trust-bullets > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--sky);
}
.trust-section .trust-bullets > li strong { color: #fff; font-weight: 700; }
.trust-section .trust-bullets > li em { color: rgba(255, 255, 255, 0.95); }

/* Bottom CTA + signature + LinkedIn */
.trust-section .trust-cta { border-top-color: rgba(255, 255, 255, 0.14); }
.trust-section .trust-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}
.trust-section .trust-cta p em { color: rgba(255, 255, 255, 0.95); }
.trust-section .trust-cta .trust-link {
  color: var(--sky);
  border-bottom: 1px solid rgba(74, 130, 228, 0.4);
}
.trust-section .trust-cta .trust-link:hover {
  color: #fff;
  text-decoration: none;
  border-bottom-color: #fff;
}
.trust-section .trust-signature { color: rgba(255, 255, 255, 0.85); }
.trust-section .trust-signature em { color: #fff; }
.trust-section .trust-linkedin {
  color: rgba(255, 255, 255, 0.7);
}
.trust-section .trust-linkedin:hover { color: #fff; }

.about-piai-cta {
  display: inline-block;
  background: var(--slate-300);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  margin-top: 8px;
}
.about-piai-cta:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}
.about-piai-caption {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  margin: 16px 0 0;
}

.pi-newsletter-sign-up-button{
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--cobalt);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.2s;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* ==========================================================================
   SINGLE POST — Phase A
   ========================================================================== */

/* ---------- Featured image banner (full-bleed, above the navy hero) ---------- */
.wp-block-post-featured-image.post-featured-banner {
  margin: 0 !important;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  height: clamp(280px, 38vw, 460px);
  overflow: hidden;
}
.wp-block-post-featured-image.post-featured-banner img,
.wp-block-post-featured-image.post-featured-banner a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wp-block-post-featured-image.post-featured-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(14,36,80,0.18) 100%);
}
/* Hide the banner cleanly when no featured image is set */
.wp-block-post-featured-image.post-featured-banner:empty,
body.post-no-featured .wp-block-post-featured-image.post-featured-banner { display: none; }

/* ---------- .pi-paula-* — AI-generated post heading classes ---------- */
/* These appear in 200+ imported posts; they currently have no parent CSS. */
.post-body-wrap .pi-paula-report-container,
.post-body-wrap .pi-paula-content-section {
  max-width: 760px;
  margin: 0 auto;
}
.post-body-wrap .pi-paula-content-section + .pi-paula-content-section { margin-top: 56px; }

.post-body-wrap h2.pi-paula-overview-title,
.post-body-wrap .pi-paula-overview-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Major section banner ("category banner") ----------------
   Magazine-style chapter divider: dark navy/cobalt gradient with a giant
   watermark numeral, glass-effect icon, and a pill eyebrow. */
.post-body-wrap .pi-paula-report-container { counter-reset: pi-paula-section; }
.post-body-wrap .pi-paula-category-banner-wrapper {
  counter-increment: pi-paula-section;
  max-width: 760px;
  margin: 88px auto 40px;
}
.post-body-wrap .pi-paula-category-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px 34px;
  background:
    radial-gradient(ellipse 600px 220px at 100% 0%, rgba(74, 130, 228, 0.42) 0%, transparent 62%),
    radial-gradient(ellipse 500px 260px at 0% 100%, rgba(43, 93, 201, 0.34) 0%, transparent 62%),
    linear-gradient(135deg, #0F1E46 0%, #142a5e 55%, #1c3a82 100%);
  border-radius: 18px;
  box-shadow:
    0 22px 50px -22px rgba(15, 30, 70, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  isolation: isolate;
}
.post-body-wrap .pi-paula-category-banner::before {
  content: counter(pi-paula-section, decimal-leading-zero);
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 156px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.07);
  line-height: 0.85;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.post-body-wrap .pi-paula-category-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 130, 228, 0.55) 30%, rgba(74, 130, 228, 0.55) 70%, transparent);
  pointer-events: none;
  z-index: 0;
}
.post-body-wrap .pi-paula-category-icon-container {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 26px -12px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}
.post-body-wrap .pi-paula-category-title-container {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.post-body-wrap .pi-paula-category-title-container::before {
  content: 'Section ' counter(pi-paula-section, decimal-leading-zero);
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #BBD0FF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 4px 11px 3px;
  margin-bottom: 12px;
  vertical-align: middle;
}
.post-body-wrap h2.pi-paula-category-title,
.post-body-wrap .pi-paula-category-banner h2.pi-paula-category-title,
.post-body-wrap .pi-paula-category-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0;
  padding-top: 0;
  border-top: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
@media (max-width: 700px) {
  .post-body-wrap .pi-paula-category-banner-wrapper {
    margin: 60px auto 28px;
  }
  .post-body-wrap .pi-paula-category-banner {
    gap: 16px;
    padding: 22px 22px;
    border-radius: 14px;
  }
  .post-body-wrap .pi-paula-category-banner::before {
    font-size: 110px;
    right: -6px;
  }
  .post-body-wrap .pi-paula-category-icon-container {
    width: 56px;
    height: 56px;
    font-size: 26px;
    border-radius: 14px;
  }
  .post-body-wrap .pi-paula-category-title-container::before {
    font-size: 10px;
    margin-bottom: 8px;
    padding: 3px 9px 2px;
  }
}
.post-body-wrap h3.pi-paula-light-themed-section-title,
.post-body-wrap .pi-paula-light-themed-section-title {
  font-family: var(--sans);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.32;
  margin: 36px 0 12px;
  letter-spacing: -0.005em;
}

/* ---------- Themed sub-section (e.g. "Three Major Themes") --------- */
.post-body-wrap .pi-paula-themed-section {
  max-width: 760px;
  margin: 56px auto;
}
.post-body-wrap .pi-paula-themed-section-header {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 18px;
}
.post-body-wrap .pi-paula-themed-section-header::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--slate-100);
}
.post-body-wrap .pi-paula-themed-section-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--cobalt) 0%, var(--sky) 100%);
  border-radius: 2px;
}
.post-body-wrap h3.pi-paula-themed-section-title,
.post-body-wrap .pi-paula-themed-section-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0;
}

/* When a themed section contains a <ul>, render the items as a card grid.
   Each <strong> at the start of the <li> becomes the eyebrow tag, and the
   first child gets a numbered watermark and colored top accent. */
.post-body-wrap .pi-paula-themed-section ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 !important;
  margin: 0 !important;
  counter-reset: theme-cards;
}
.post-body-wrap .pi-paula-themed-section ul > li {
  counter-increment: theme-cards;
  position: relative;
  padding: 26px 24px 22px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(43, 93, 201, 0.045) 100%);
  border: 1px solid rgba(43, 93, 201, 0.16);
  border-radius: 14px;
  box-shadow: 0 4px 18px -10px rgba(15, 30, 70, 0.10);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--slate-500);
  margin: 0;
}
.post-body-wrap .pi-paula-themed-section ul > li::before {
  content: counter(theme-cards, decimal-leading-zero);
  position: absolute;
  right: -10px;
  top: -22px;
  font-family: var(--serif);
  font-size: 92px;
  font-weight: 700;
  font-style: italic;
  color: rgba(43, 93, 201, 0.10);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.post-body-wrap .pi-paula-themed-section ul > li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--cobalt);
}
.post-body-wrap .pi-paula-themed-section ul > li:nth-child(2)::after { background: var(--sky); }
.post-body-wrap .pi-paula-themed-section ul > li:nth-child(3)::after { background: var(--navy-mid); }
.post-body-wrap .pi-paula-themed-section ul > li:nth-child(2)::before { color: rgba(74, 130, 228, 0.13); }
.post-body-wrap .pi-paula-themed-section ul > li:nth-child(3)::before { color: rgba(15, 30, 70, 0.10); }
.post-body-wrap .pi-paula-themed-section ul > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -12px rgba(15, 30, 70, 0.18);
  border-color: rgba(43, 93, 201, 0.32);
}
.post-body-wrap .pi-paula-themed-section ul > li > strong:first-child {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cobalt);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.post-body-wrap .pi-paula-themed-section ul > li:nth-child(2) > strong:first-child { color: var(--sky); }
.post-body-wrap .pi-paula-themed-section ul > li:nth-child(3) > strong:first-child { color: var(--navy-mid); }
.post-body-wrap .pi-paula-themed-section ul > li a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(43, 93, 201, 0.35);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.post-body-wrap .pi-paula-themed-section ul > li a:hover {
  color: var(--cobalt);
  text-decoration-color: var(--cobalt);
}

/* When the themed section contains plain paragraphs (e.g. "Outlook /
   Emerging Trends"), render them as an inset, italicised takeaway block. */
.post-body-wrap .pi-paula-themed-section .pi-paula-content-section:not(:has(ul)) {
  padding: 22px 26px;
  background: linear-gradient(180deg, rgba(43, 93, 201, 0.04) 0%, rgba(43, 93, 201, 0.08) 100%);
  border-left: 3px solid var(--cobalt);
  border-radius: 0 10px 10px 0;
  font-family: var(--serif);
  font-size: 16.5px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
}
.post-body-wrap .pi-paula-themed-section .pi-paula-content-section:not(:has(ul)) p {
  margin: 0 0 12px;
}
.post-body-wrap .pi-paula-themed-section .pi-paula-content-section:not(:has(ul)) p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .post-body-wrap .pi-paula-themed-section ul {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .post-body-wrap .pi-paula-themed-section ul > li::before {
    font-size: 72px;
    top: -16px;
    right: -6px;
  }
}
.post-body-wrap h4.pi-paula-question-title,
.post-body-wrap .pi-paula-question-title {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  margin: 28px 0 10px;
}

/* ---------- Defensive content styling for post body ---------- */
/* Lists */
.post-body-wrap ul,
.post-body-wrap ol {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.85;
  margin: 0 0 24px;
  padding-left: 28px;
}
.post-body-wrap li { margin-bottom: 8px; }
.post-body-wrap li strong { color: var(--ink); font-weight: 600; }
.post-body-wrap li::marker { color: var(--slate-300); }

/* Blockquote */
.post-body-wrap blockquote,
.post-body-wrap .wp-block-quote {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  border-left: 4px solid var(--cobalt);
  border-top: 1px solid var(--slate-100);
  border-right: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 28px;
  margin: 28px 0;
}
.post-body-wrap blockquote cite,
.post-body-wrap blockquote .wp-block-quote__citation {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  color: var(--slate-300);
  font-weight: 500;
}

/* Tables */
.post-body-wrap table,
.post-body-wrap .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14.5px;
  margin: 28px 0;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.post-body-wrap thead { background: var(--navy); }
.post-body-wrap thead th {
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-align: left;
}
.post-body-wrap td {
  padding: 12px 16px;
  font-weight: 300;
  color: var(--slate-500);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}
.post-body-wrap tr:last-child td { border-bottom: 0; }
.post-body-wrap tr:nth-child(even) td { background: var(--slate-50); }
.post-body-wrap td strong { color: var(--ink); font-weight: 600; }

/* Code + pre */
.post-body-wrap code,
.post-body-wrap .wp-block-code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--paper);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 2px 6px;
  color: var(--ink);
}
.post-body-wrap pre,
.post-body-wrap pre.wp-block-preformatted,
.post-body-wrap .wp-block-code {
  display: block;
  padding: 18px 22px;
  margin: 24px 0;
  overflow-x: auto;
  line-height: 1.6;
}
.post-body-wrap pre code { background: transparent; border: 0; padding: 0; }

/* Horizontal rule */
.post-body-wrap hr,
.post-body-wrap .wp-block-separator {
  border: 0;
  height: 1px;
  background: var(--slate-100);
  margin: 40px 0;
  max-width: none;
}

/* Figures + captions */
.post-body-wrap figure { margin: 28px 0; }
.post-body-wrap figure img,
.post-body-wrap .wp-block-image img {
  border-radius: var(--radius-lg);
  display: block;
  max-width: 100%;
  height: auto;
}
.post-body-wrap figcaption,
.post-body-wrap .wp-block-image figcaption {
  font-family: var(--sans);
  font-size: 13px;
  font-style: italic;
  color: var(--slate-300);
  text-align: center;
  margin-top: 10px;
}

/* ---------- Post navigation prev/next as cards ---------- */
.post-nav-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--slate-100);
  align-items: stretch;
}
.post-nav-wrap--solo {
  grid-template-columns: 1fr;
}
a.post-nav-card,
a.post-nav-card:hover,
a.post-nav-card:focus,
a.post-nav-card:visited {
  text-decoration: none;
  text-decoration-color: transparent;
}
.post-nav-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
  min-height: 92px;
}
.post-nav-card:hover {
  border-color: rgba(43, 93, 201, 0.28);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.post-nav-card--prev { grid-column: 1; }
.post-nav-card--next { grid-column: 2; text-align: right; }
.post-nav-wrap--solo .post-nav-card { grid-column: 1; }
.post-nav-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-300);
}
.post-nav-card--next .post-nav-eyebrow {
  align-self: flex-end;
}
.post-nav-eyebrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.post-nav-title {
  display: block;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  transition: color 0.2s;
}
.post-nav-card:hover .post-nav-title { color: var(--cobalt); }
@media (max-width: 700px) {
  .post-nav-wrap { grid-template-columns: 1fr; }
  .post-nav-card--prev,
  .post-nav-card--next { grid-column: 1; text-align: left; }
  .post-nav-card--next .post-nav-eyebrow { align-self: flex-start; }
}

/* ---------- Related posts — appears after post body, before footer ---------- */
.related-posts {
  background: var(--paper);
}
.related-posts .section-eyebrow,
.related-posts .section-title {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}
.related-posts .section-eyebrow { color: var(--cobalt); }
.related-posts .section-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}
.related-posts-grid .brief-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.related-posts-grid .brief-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(43,93,201,0.22);
}
.related-posts-grid .brief-card-image { display: block; }
.related-posts-grid .brief-card-image img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.related-posts-grid .brief-card:hover .brief-card-image img { transform: scale(1.04); }
.related-posts-grid .brief-card-inner {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.related-posts-grid .tax-badge { align-self: flex-start; margin: 0 0 4px; }
.related-posts-grid .brief-card-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.related-posts-grid .brief-card-title a { color: inherit; text-decoration: none; }
.related-posts-grid .brief-card-title a:hover { color: var(--cobalt); }
.related-posts-grid .brief-card-excerpt {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.related-posts-grid .brief-card-date {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--slate-300);
  font-weight: 500;
  margin: 6px 0 0;
}

/* ==========================================================================
   SEARCH RESULTS — Phase C
   ========================================================================== */

/* Reuse .blog-index-hero on the search page */
body.search .blog-index-hero h1.wp-block-query-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

/* Search form (used in hero and empty state) */
.search-form-inline,
.wp-block-search.search-form-inline {
  max-width: 560px;
  margin: 24px 0 0;
}
.wp-block-search__inside-wrapper {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 999px !important;
  padding: 6px 6px 6px 22px !important;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.wp-block-search__inside-wrapper:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(43,93,201,0.12);
}
.wp-block-search__input,
.wp-block-search input[type="search"] {
  border: 0 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  padding: 8px 0 !important;
}
.wp-block-search__input::placeholder { color: var(--slate-300); }
.wp-block-search__button,
.wp-block-search button[type="submit"] {
  background: var(--cobalt) !important;
  color: #fff !important;
  font-family: var(--sans) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  border: 0 !important;
  cursor: pointer;
  transition: background 0.2s !important;
}
.wp-block-search__button:hover,
.wp-block-search button[type="submit"]:hover { background: var(--sky) !important; }

/* Empty state */
.search-empty {
  text-align: center;
  padding: 64px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.search-empty-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 14px;
}
.search-empty-body {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.7;
  margin: 0 0 28px;
}
.search-empty .search-form-inline { margin: 0 auto; }

/* ==========================================================================
   CATEGORY LANDING PAGES (EU Energy / EU Health / EU AI & Tech / Bespoke)
   Reusable layout — apply on top of .section-dark / .section-paper / etc.
   ========================================================================== */

/* ---------- Hero ---------- */
.category-hero {
  padding: 0 !important; max-width: none !important; margin: 0 !important;
  position: relative; overflow: hidden;
  background-color: var(--navy);
  /* --category-hero-bg is set inline by piai_child_category_hero_var() in
     functions.php using the page's featured image. Falls back to the
     parliament image if no featured image is set. */
  background-image: var(--category-hero-bg, url('/wp-content/uploads/2025/09/cropped-tracking-parliamentary-questions-brussels-european-parliament.png'));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* Dark overlay to keep title legible on top of the featured image —
   same approach as .post-hero--overlay::after on single posts. */
.category-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
}
.category-hero-inner {
  padding: 130px 32px 110px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  position: relative; z-index: 1;
  text-align: center;
}
.category-hero .section-eyebrow {
  color: var(--sky);
  justify-content: center;
}
.category-hero .section-eyebrow::before { background: var(--sky); }
.category-hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 auto 22px;
  max-width: 18ch;
}
.category-hero-lede {
  font-size: 17px; font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.65; max-width: 600px;
  margin: 0 auto 32px;
}
.category-hero-subscribe { max-width: 780px; margin: 0 auto; }

/* ---------- "Why subscribe" — 3 bullets + image ---------- */
.category-why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .category-why-grid { grid-template-columns: 1fr; gap: 40px; } }

.category-why-text { /* left column */ }
.category-section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.category-section-title--center { text-align: center; margin: 0 auto 32px; max-width: 800px; }

.category-why-bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.category-why-bullets > li {
  display: flex; align-items: flex-start; gap: 14px;
}
.category-why-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(43,93,201,0.10);
  color: var(--cobalt);
  margin-top: 2px;
}
.category-why-icon svg { width: 15px; height: 15px; }
.category-why-bullets > li > p {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.65;
}
.category-why-bullets > li > p strong { font-weight: 600; color: var(--ink); }

.category-why-image {
  margin: 0;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.category-why-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- "Recent X Policy Insights" — search + grid ---------- */
.category-recent { /* sits on .section-mist for the lavender band */ }
.category-search {
  max-width: 720px;
  margin: 0 auto 28px;
}
/* Style the embedded shortcode search input if it uses .newsletter-input
   wrapper from the Shortcoder plugin. Defensive — works even if the inner
   structure differs. */
.category-search input[type="text"],
.category-search input[type="search"],
.category-search .newsletter-input input {
  width: 100% !important;
  background: var(--white) !important;
  border: 1px solid var(--slate-100) !important;
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-family: var(--sans) !important;
  font-size: 14.5px !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-sm) !important;
  outline: none;
}
.category-search input:focus { border-color: var(--cobalt) !important; box-shadow: 0 0 0 3px rgba(43,93,201,0.12) !important; }

/* The Query Loop on category pages re-uses .latest-briefs styling already
   defined elsewhere in this file (4-col → 2-col → 1-col). */

.category-subscribe-after {
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- "Why PQs Matter" — two-column text ---------- */
.category-why-pqs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 8px;
}
@media (max-width: 880px) { .category-why-pqs-grid { grid-template-columns: 1fr; gap: 32px; } }

.category-why-pqs-col p,
.category-why-pqs-col li {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
}
.category-why-pqs-col p { margin: 0 0 18px; }
.category-why-pqs-col p strong { color: var(--ink); font-weight: 700; }
.category-lead {
  font-size: 16px !important;
  margin-bottom: 24px !important;
}
.category-subheading {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.category-subheading:first-child { margin-top: 0; }

.category-topics-list {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 24px;
}
.category-topics-list > li {
  margin-bottom: 12px;
  padding-left: 2px;
}
.category-topics-list > li::marker { color: var(--cobalt); }
.category-topics-list > li strong { font-weight: 700; color: var(--ink); }

.category-cta-line {
  text-align: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.6;
  margin: 56px auto 24px !important;
  max-width: 760px;
}
.category-cta-line strong { font-weight: 700; color: var(--ink); }

/* ==========================================================================
   BESPOKE SERVICE PAGE — Custom Policy Insights
   ========================================================================== */

/* Hero CTA buttons (override generic .category-hero-actions for this page) */
.category-hero-actions {
  display: flex; gap: 22px;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.category-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cobalt); color: #fff;
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 500;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(43,93,201,0.30);
  transition: background 0.18s, transform 0.15s, box-shadow 0.2s;
}
.category-hero-cta:hover {
  background: var(--sky);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(74,130,228,0.40);
}
.category-hero-link {
  color: rgba(255,255,255,0.62);
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.category-hero-link:hover { color: #fff; }

/* Lead paragraph centered above two-column grids */
.bespoke-lead {
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

/* Two-column lists (Typical Users + Common Use Cases) */
.bespoke-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .bespoke-grid-2 { grid-template-columns: 1fr; gap: 32px; } }

.bespoke-bullets {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
}
.bespoke-bullets > li {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 12px;
}
.bespoke-bullets > li::marker { color: var(--cobalt); }
.bespoke-bullets > li strong { font-weight: 700; color: var(--ink); }

/* About-the-service section (text + image) */
.bespoke-about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .bespoke-about-grid { grid-template-columns: 1fr; gap: 40px; } }
.bespoke-about-text p {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 18px;
}
.bespoke-about-text p strong { font-weight: 700; color: var(--ink); }
.bespoke-about-text a { color: var(--cobalt); text-decoration: none; font-weight: 500; }
.bespoke-about-text a:hover { color: var(--sky); text-decoration: underline; }
.bespoke-about-image {
  margin: 0 auto;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.bespoke-about-image img { width: 75%; height: 75%; object-fit: contain; display: block; }

/* Card grid for "What You Receive" + "Define the Scope" — 3 cols */
.bespoke-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 1100px) { .bespoke-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .bespoke-cards-grid { grid-template-columns: 1fr; } }
.bespoke-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.bespoke-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(43,93,201,0.22);
}
.bespoke-card-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(43,93,201,0.10);
  color: var(--cobalt);
}
.bespoke-card-icon svg { width: 17px; height: 17px; }
.bespoke-card-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
  display: flex; align-items: baseline; gap: 12px;
}
.bespoke-card-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cobalt);
  background: rgba(43,93,201,0.10);
  padding: 3px 8px;
  border-radius: 4px;
}
.bespoke-card p {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

/* "Read recent issues" CTA below What You Receive grid */
.bespoke-receive-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(14,36,80,0.08);
}
.bespoke-receive-cta p {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--slate-500);
  margin: 0 0 8px;
}
.bespoke-receive-cta p strong { color: var(--ink); font-weight: 600; }
.bespoke-receive-link {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--cobalt);
  text-decoration: none;
  transition: color 0.2s;
}
.bespoke-receive-link:hover { color: var(--sky); }

/* Numbered process timeline */
.bespoke-process-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bespoke-process-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  transition: border-color 0.2s, transform 0.15s;
}
.bespoke-process-item:hover {
  border-color: rgba(43,93,201,0.22);
  transform: translateX(2px);
}
.bespoke-process-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
}
.bespoke-process-body { flex: 1; }
.bespoke-process-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 6px;
}
.bespoke-process-body p {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

/* Final scoping-call CTA at the bottom of the process section */
.bespoke-final-cta {
  text-align: center;
  margin: 56px auto 0;
  max-width: 600px;
}
.bespoke-final-cta p {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 18px;
}
.bespoke-final-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(14,36,80,0.20);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.bespoke-final-cta-button:hover {
  background: var(--cobalt);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(43,93,201,0.30);
}

/* ==========================================================================
   SINGLE POST — overlay hero + 2-column body + sidebar widgets
   ========================================================================== */

/* ---------- Hero with featured image as full-bleed background ---------- */
.post-hero.post-hero--overlay {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 0 !important;
  max-width: none !important;
  isolation: isolate;
  min-height: 480px;
}
.post-hero--overlay .wp-block-post-featured-image.post-hero-bg {
  position: absolute;
  inset: 0;
  margin: 0 !important;
  z-index: 0;
  pointer-events: none;
}
.post-hero--overlay .post-hero-bg img,
.post-hero--overlay .post-hero-bg a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.post-hero--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Plain dark gradient — no cobalt hue. Top is lighter so the photo shows
     through, bottom darkens for text legibility. */
  background: rgba(0,0,0,0.3);
}
.post-hero--overlay .wp-block-group.section.post-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px !important;
  margin: 0 auto !important;
  padding: 140px 32px 100px !important;
  text-align: left !important;
}
.post-hero--overlay .wp-block-post-terms.post-terms-eyebrow {
  display: inline-flex;
  margin: 0 0 18px 0 !important;
}
.post-hero--overlay .wp-block-post-title.post-title-hero {
  font-family: var(--serif) !important;
  font-size: clamp(28px, 4.2vw, 56px) !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.12 !important;
  letter-spacing: -0.018em !important;
  margin: 0 0 18px !important;
  max-width: 920px;
  text-align: left;
}
.post-hero--overlay .wp-block-post-date.post-date-hero,
.post-hero--overlay .wp-block-post-date.post-date-hero time {
  color: rgba(255,255,255,0.72);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- Body grid: main content + sidebar ---------- */
.wp-block-group.section.post-body-wrap {
  max-width: 1160px !important;
  padding: 64px 32px 96px !important;
}
.post-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 1000px) {
  .post-body-grid { grid-template-columns: 1fr; gap: 48px; }
}
.post-body-content {
  min-width: 0; /* allow flex/grid items with long content to shrink */
}
.post-body-content .wp-block-post-content {
  max-width: none !important;
  margin: 0 !important;
}
/* The 760px reading width still applies inside post content via the wp:post-content
   block's "constrained" layout, but on the post-body-content cell it's already capped. */
.post-body-content > .wp-block-post-content > * {
  max-width: 760px;
}

/* ---------- Sidebar shell ---------- */
.post-sidebar {
  position: sticky;
  top: 96px; /* clear of fixed nav */
  align-self: start;
}
@media (max-width: 1000px) { .post-sidebar { position: static; } }
.post-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.post-sidebar-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.post-sidebar-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cobalt);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-sidebar-label::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--cobalt);
  border-radius: 1px;
}
.post-sidebar-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 8px;
}
.post-sidebar-body {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Share buttons ---------- */
.post-sidebar-share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post-share-btn {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--slate-100);
  border-radius: 50%;
  color: var(--slate-500);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
  padding: 0;
}
.post-share-btn:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
  transform: translateY(-1px);
}
.post-share-btn svg { width: 16px; height: 16px; }
.post-share-copy { font-family: var(--sans); }
.post-share-copied {
  position: absolute;
  bottom: -28px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 500;
  color: var(--cobalt);
  background: var(--white);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid var(--slate-100);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.post-share-btn.is-copied .post-share-copied { opacity: 1; }

/* ---------- Subscribe card ---------- */
.post-sidebar-subscribe { background: linear-gradient(180deg, var(--navy) 0%, #061533 100%); border-color: var(--navy); }
.post-sidebar-subscribe .post-sidebar-label { color: rgba(255,255,255,0.62); }
.post-sidebar-subscribe .post-sidebar-label::before { background: var(--sky); }
.post-sidebar-subscribe .post-sidebar-title { color: #fff; }
.post-sidebar-subscribe .post-sidebar-body { color: rgba(255,255,255,0.65); margin: 0 0 14px; }
.post-sidebar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cobalt);
  color: #fff !important;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.post-sidebar-cta:hover { background: var(--sky); }
/* Defensive: style anything the [sc name=...] newsletter shortcode renders inside our card */
.post-sidebar-subscribe-form .newsletter-input,
.post-sidebar-subscribe-form > div {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  display: flex; flex-direction: column; gap: 8px;
}
.post-sidebar-subscribe-form input[type="email"],
.post-sidebar-subscribe-form input[type="text"] {
  width: 100% !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 6px !important;
  padding: 9px 12px !important;
  font-family: var(--sans) !important;
  font-size: 13.5px !important;
  color: #fff !important;
}
.post-sidebar-subscribe-form input::placeholder { color: rgba(255,255,255,0.45) !important; }
.post-sidebar-subscribe-form input:focus { outline: none; border-color: var(--sky) !important; }
.post-sidebar-subscribe-form a,
.post-sidebar-subscribe-form button {
  background: var(--cobalt) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 9px 14px !important;
  font-family: var(--sans) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border: 0 !important;
}

/* ---------- Disclaimer card ---------- */
.post-sidebar-disclaimer { background: var(--paper); border-style: dashed; }
.post-sidebar-disclaimer .post-sidebar-body { font-size: 12.5px; line-height: 1.6; }

/* ---------- Tag cloud ---------- */
.post-sidebar-tag-cloud {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post-sidebar-tag-cloud > li > a {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500) !important;
  background: var(--paper);
  border: 1px solid var(--slate-100);
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.post-sidebar-tag-cloud > li > a:hover {
  color: var(--cobalt) !important;
  background: rgba(43,93,201,0.07);
  border-color: rgba(43,93,201,0.22);
}

/* ---------- .tax-badge link reset — beat default browser styling on the
   <a> tags rendered by wp:post-terms inside brief cards. Without this they
   inherit text-decoration:underline and purple :visited from the user agent. */
.tax-badge a,
.tax-badge a:link,
.tax-badge a:visited,
.tax-badge a:hover,
.tax-badge a:active,
.tax-badge a:focus {
  color: var(--cobalt) !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  background: transparent;
}
.tax-badge a:hover { color: var(--sky) !important; }

/* Footer "Address" column — match the link-col typography */
.footer-address {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 0;
}

/* Cookie Policy page hero — center the title. Scoped to the cookie-policy
   slug only so this doesn't override other landing pages that already
   render their own hero in post content. */
body.page-cookie-policy .post-hero--overlay .wp-block-group.section.post-hero-inner {
  text-align: center !important;
}
body.page-cookie-policy .post-hero--overlay .wp-block-post-title.post-title-hero,
body.page-cookie-policy .post-title-hero {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ====================================================================
   Editorial visual elements — drop cap, source link chips,
   stat callouts, pull quote.
   ==================================================================== */

/* (1) Drop cap on the Overview paragraph -------------------------- */
.post-body-wrap .pi-paula-report-container > .pi-paula-content-section:first-child p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.4em;
  font-weight: 700;
  color: var(--navy);
  float: left;
  line-height: 0.86;
  margin: 0.04em 0.1em 0 0;
  padding-top: 0.06em;
}

/* (2) Source link chips — references to policy-insider.ai documents */
.post-body-wrap a[href*="app.policy-insider.ai/document"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px 1px 7px;
  margin: 0 1px;
  background: rgba(43, 93, 201, 0.06);
  border: 1px solid rgba(43, 93, 201, 0.18);
  border-radius: 5px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--cobalt) !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  vertical-align: baseline;
  line-height: 1.45;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.post-body-wrap a[href*="app.policy-insider.ai/document"]:hover {
  background: rgba(43, 93, 201, 0.12);
  border-color: rgba(43, 93, 201, 0.36);
  color: var(--navy) !important;
}
.post-body-wrap a[href*="app.policy-insider.ai/document"]::before {
  content: '';
  width: 11px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/></svg>") no-repeat center / contain;
  flex-shrink: 0;
}

/* (3) Stat / figure callout — floats right inside paragraph on desktop */
.piai-stat-callout {
  display: block;
  float: right;
  width: 200px;
  margin: 6px 0 14px 24px;
  padding: 14px 16px 14px 18px;
  background: linear-gradient(180deg, rgba(43, 93, 201, 0.05) 0%, rgba(43, 93, 201, 0.10) 100%);
  border-left: 3px solid var(--cobalt);
  border-radius: 0 6px 6px 0;
  text-align: left;
  font-style: normal;
}
.piai-stat-callout-value {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 5px;
}
.piai-stat-callout-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--slate-500);
  line-height: 1.35;
}
@media (max-width: 760px) {
  .piai-stat-callout {
    float: none;
    width: auto;
    margin: 18px 0;
  }
}

/* (4) Pull quote — used after Overview, before first category banner */
.piai-pullquote {
  max-width: 760px;
  margin: 36px auto 44px;
  padding: 6px 0 6px 28px;
  border-left: 3px solid var(--cobalt);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.42;
  letter-spacing: -0.005em;
}
.piai-pullquote::before {
  content: '\201C';
  display: inline;
  margin-right: 2px;
  color: var(--cobalt);
  font-weight: 700;
  font-style: normal;
}
.piai-pullquote::after {
  content: '\201D';
  display: inline;
  margin-left: 1px;
  color: var(--cobalt);
  font-weight: 700;
  font-style: normal;
}

/* ---------- Tighten Yoast / shortcode artifacts on the home ---------- */
.ays_pb_hide_title_on_mobile { display: none !important; }





.newsletter-input:focus{
  outline: none;
}

.ays-pb-modals {
  z-index: 999 !important;
}

.email-to-sign-up::-webkit-input-placeholder {
  color: #6d6d6d;
  font-size: 13px;
}

/* Firefox 19+ */
.email-to-sign-up::-moz-placeholder {
  color: #6d6d6d;
  font-size: 13px;
}


/* Older Edge */
.email-to-sign-up::-ms-input-placeholder {
  color: #6d6d6d;
  font-size: 13px;
}

/* Standard syntax */
.email-to-sign-up::placeholder {
  color: #6d6d6d;
  font-size: 13px;
}



.input-placeholder::-webkit-input-placeholder {
  color: #6d6d6d;
  font-size: 13px;
}

/* Firefox 19+ */
.input-placeholder::-moz-placeholder {
  color: #6d6d6d;
  font-size: 13px;
}


/* Older Edge */
.input-placeholder::-ms-input-placeholder {
  color: #6d6d6d;
  font-size: 13px;
}

/* Standard syntax */
.input-placeholder::placeholder {
  color: #6d6d6d;
  font-size: 13px;
}


.newsletter-input{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  background-color: white;
  border-radius: 30px;
  height: 56px;
  align-items: center;
  padding: 0 10px;
  cursor: text;
}

.newsletter-input-text{
  display: flex;
  flex-grow: 1;
  padding: 0 20px;
  color: #6d6d6d;
  font-size: 13px;
  flex-wrap: nowrap;
  text-wrap: nowrap;
  overflow: hidden;
}

/* When .newsletter-input-text is used on a real <input> (e.g. the search
   bar), strip the browser-default chrome so the input looks seamless inside
   the white pill — no border, no focus ring, no webkit search appearance,
   no clear-button "x". */
input.newsletter-input-text,
.newsletter-input input.newsletter-input-text {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  min-width: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.4;
}
input.newsletter-input-text:hover,
input.newsletter-input-text:focus,
input.newsletter-input-text:focus-visible,
input.newsletter-input-text:active {
  outline: 0;
  box-shadow: none;
  background: transparent;
  border: 0;
}
input.newsletter-input-text::placeholder { color: #6d6d6d; opacity: 1; }
input.newsletter-input-text::-webkit-search-decoration,
input.newsletter-input-text::-webkit-search-cancel-button,
input.newsletter-input-text::-webkit-search-results-button,
input.newsletter-input-text::-webkit-search-results-decoration { -webkit-appearance: none; display: none; }

.newsletter-input-text-link{
  cursor: pointer;
  background-color: #0B477A;
  padding: 0px 20px;
  border-radius: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 40px;
  min-width: 134px;
  text-decoration: none;
}

.email-to-sign-up-container{
  display: flex;
  flex-grow: 1;
  padding: 0 20px;
}

@media only screen and (max-width: 767px) {
  .newsletter-input{
    background-color: transparent;
    justify-content: center;
  }
  .email-to-sign-up-container{
    display: none;

  }
  .newsletter-input-text{
    display: none;
  }

  .email-to-sign-up{
    display: none;
  }

  .newsletter-input-text-link{
    flex-grow: 1;
    justify-content: center;
    box-shadow: -2px 4px 4px #0f0f0f54;
    max-width: 500px;
  }

}

.hero-404{
  min-height: auto;
}


.nav-404-grid{
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 650px) {
  .nav-404-grid{
    grid-template-columns: repeat(1, 1fr);
  }
}


.nav-404-img{
  width: 80%;
  max-width: 70px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.hero::after{position: relative;};

/* ==========================================================================
   SEARCH RESULTS PAGE
   Force a clean light page background, polish the hero with a featured
   image and overlay, then render the results grid as proper white cards.
   Everything is scoped to body.search so the home blog-index is not
   affected (it also uses .blog-index-hero).
   ========================================================================== */
body.search,
body.search .wp-site-blocks,
body.search .wp-block-group.section,
body.search main.wp-block-group {
  background-color: var(--paper);
}

/* ---------- Hero ---------- */
body.search .blog-index-hero {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  background-image: url('/wp-content/uploads/2026/05/Generated-Image-May-06-2026-10_42AM.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  isolation: isolate;
}
body.search .blog-index-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
}
body.search .blog-index-hero .section {
  position: relative;
  z-index: 1;
  padding: 0 32px !important;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}
body.search .blog-index-hero .section-eyebrow {
  color: var(--sky);
  justify-content: center;
  margin: 0 auto 18px;
}
body.search .blog-index-hero .section-eyebrow::before { background: var(--sky); }
body.search .blog-index-hero h1,
body.search .blog-index-hero .wp-block-query-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 56px) !important;
  font-weight: 400;
  color: #fff !important;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-align: center;
}

/* Search pill in hero — white, lifted, no border flash */
body.search .blog-index-hero .search-form-inline {
  margin: 28px auto 0 !important;
  max-width: 600px;
}
body.search .blog-index-hero .wp-block-search__inside-wrapper {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
body.search .blog-index-hero .wp-block-search__inside-wrapper:focus-within {
  border-color: transparent;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(74, 130, 228, 0.35);
}

/* ---------- Results main wrapper ---------- */
body.search main.wp-block-group.section,
body.search main.section {
  padding: 72px 32px 96px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  background: transparent;
}

/* ---------- Results grid: 3-up cards ---------- */
body.search .blog-index-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.search .blog-index-grid .wp-block-post-template > li {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.search .brief-card {
  height: 100%;
  background: #fff !important;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 30, 70, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.search .brief-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(15, 30, 70, 0.18);
  border-color: rgba(43, 93, 201, 0.32);
}
@media (max-width: 1024px) {
  body.search .blog-index-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 640px) {
  body.search .blog-index-grid .wp-block-post-template { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Pagination — clean rounded buttons on light bg ---------- */
body.search .wp-block-query-pagination {
  margin-top: 56px !important;
  gap: 6px !important;
}
body.search .wp-block-query-pagination a,
body.search .wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--slate-100);
  color: var(--slate-500);
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
body.search .wp-block-query-pagination a:hover {
  background: var(--cobalt); border-color: var(--cobalt); color: #fff;
}
body.search .wp-block-query-pagination .current {
  background: var(--cobalt); border-color: var(--cobalt); color: #fff;
}

/* ---------- Empty state — clean white card ---------- */
body.search .search-empty {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(15, 30, 70, 0.04);
  max-width: 640px;
}

/* ==========================================================================
   EDITORIAL LONGFORM POSTS — body typography polish for posts that use the
   pi-paula-report-container layout (e.g. the "Why You Can Trust…" essay).
   Scoped so it doesn't affect the dense PQ briefs which use a different
   visual rhythm.
   ========================================================================== */
body.single-post.postid-3431 .post-body-content .pi-paula-report-container {
  max-width: 760px;
  margin: 0 auto;
}

/* Hide the sr-only/hidden h2 that some essays put at the very top
   (e.g. <h2 style="color:transparent;font-size:1px;">…</h2>). It already
   has inline styles, but the extra negative margin keeps it from creating
   a phantom gap above the first chapter banner. */
body.single-post.postid-3431 .pi-paula-report-header h2[style*="color: transparent"] {
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden;
}

/* Tighter banner → content spacing: chapter banner already has its own
   bottom margin from .pi-paula-category-banner-wrapper. The content section
   below should breathe but not float away. */
body.single-post.postid-3431 .pi-paula-content-section {
  margin: 0 auto 56px;
  max-width: 760px;
}

/* Body paragraph typography */
body.single-post.postid-3431 .pi-paula-content-section > p {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 22px;
}
body.single-post.postid-3431 .pi-paula-content-section > p:last-child { margin-bottom: 0; }

/* Lede: the first paragraph after each chapter banner reads slightly larger
   and lighter, so the section opens with a beat. */
body.single-post.postid-3431 .pi-paula-content-section > p:first-of-type {
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--ink);
}

/* Drop cap on the very first paragraph of the post (under the first
   chapter banner only — :nth-of-type(1) of the report container). */
body.single-post.postid-3431 .pi-paula-report-container > .pi-paula-content-section:first-of-type > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.2em;
  font-weight: 700;
  color: var(--navy);
  float: left;
  line-height: 0.86;
  margin: 0.04em 0.1em 0 0;
  padding-top: 0.06em;
}

/* Inline emphasis */
body.single-post.postid-3431 .pi-paula-content-section strong {
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
}
body.single-post.postid-3431 .pi-paula-content-section em {
  font-style: italic;
  color: var(--cobalt);
}
body.single-post.postid-3431 .pi-paula-content-section em strong,
body.single-post.postid-3431 .pi-paula-content-section strong em {
  color: var(--navy);
}

/* Inline links inside body */
body.single-post.postid-3431 .pi-paula-content-section a:not(.brief-card-image):not(.brief-card-title a) {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-color: rgba(43, 93, 201, 0.32);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
body.single-post.postid-3431 .pi-paula-content-section a:hover {
  color: var(--sky);
  text-decoration-color: var(--sky);
}

/* Lists inside the body (bullets and numbered) */
body.single-post.postid-3431 .pi-paula-content-section ul,
body.single-post.postid-3431 .pi-paula-content-section ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}
body.single-post.postid-3431 .pi-paula-content-section ul > li,
body.single-post.postid-3431 .pi-paula-content-section ol > li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
body.single-post.postid-3431 .pi-paula-content-section ul > li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
}
body.single-post.postid-3431 .pi-paula-content-section ol {
  counter-reset: editorial-list;
}
body.single-post.postid-3431 .pi-paula-content-section ol > li {
  counter-increment: editorial-list;
}
body.single-post.postid-3431 .pi-paula-content-section ol > li::before {
  content: counter(editorial-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--cobalt);
  line-height: 1.7;
  letter-spacing: 0.04em;
}

/* Banner icon container — when an essay uses a manual section number
   inside the icon container instead of an emoji, the inline color (#0b477a)
   gets washed out on the dark gradient. Force white. */
body.single-post.postid-3431 .pi-paula-category-icon-container span[style*="color"] {
  color: #fff !important;
  font-weight: 700 !important;
  font-family: var(--serif) !important;
}

/* Footer/author block at the very end of the essay (e.g. "Mark Jürgen-Mardin"
   intro paragraph). If the post ends with a small <p> after the last
   content-section, give it a divider rule. */
body.single-post.postid-3431 .pi-paula-report-container > .pi-paula-content-section:last-of-type {
  border-top: 1px solid var(--slate-100);
  padding-top: 36px;
  margin-top: 56px;
}

/* ==========================================================================
   BLOG INDEX (/blog/) — image hero + light results grid, mirroring the
   search-results page but scoped to body.blog so the home page and search
   page are unaffected.
   ========================================================================== */
body.blog,
body.blog .wp-site-blocks {
  background-color: var(--paper);
}
body.blog main.wp-block-group.section,
body.blog main.section {
  background-color: var(--paper);
}
/* Hero's inner .wp-block-group.section must NOT inherit the paper bg —
   it sits on top of the hero image and would create a white block. */
body.blog .blog-index-hero .wp-block-group.section,
body.blog .blog-index-hero > .section {
  background: transparent !important;
}

/* ---------- Hero ---------- */
body.blog .blog-index-hero {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  background-image: url('/wp-content/uploads/2026/05/Generated-Image-May-06-2026-11_52AM-1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  isolation: isolate;
}
body.blog .blog-index-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
}
body.blog .blog-index-hero .section {
  position: relative;
  z-index: 1;
  padding: 0 32px !important;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}
body.blog .blog-index-hero .section-eyebrow {
  color: var(--sky);
  justify-content: center;
  margin: 0 auto 18px;
}
body.blog .blog-index-hero .section-eyebrow::before { background: var(--sky); }
body.blog .blog-index-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px) !important;
  font-weight: 400;
  color: #fff !important;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
  text-align: center;
  max-width: 16ch;
}
body.blog .blog-index-hero .blog-index-lede {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Search bar that sits between the hero and the results grid ---------- */
body.blog .blog-index-search {
  background: var(--paper);
  padding: 36px 32px 0 !important;
  max-width: 760px;
  margin: 0 auto !important;
}
body.blog .blog-index-search .search-form-inline,
body.blog .blog-index-search .wp-block-search {
  margin: 0;
  max-width: none;
}
body.blog .blog-index-search .wp-block-search__inside-wrapper {
  background: #fff;
  border-color: var(--slate-100);
  box-shadow: 0 6px 22px -8px rgba(15, 30, 70, 0.12);
}
body.blog .blog-index-search .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 8px 26px -6px rgba(15, 30, 70, 0.18), 0 0 0 3px rgba(43, 93, 201, 0.14);
}

/* ---------- Results main wrapper + grid (same shape as search) ---------- */
body.blog main.wp-block-group.section,
body.blog main.section {
  padding: 56px 32px 96px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  background: transparent;
}
body.blog .blog-index-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.blog .blog-index-grid .wp-block-post-template > li {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.blog .brief-card {
  height: 100%;
  background: #fff !important;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 30, 70, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.blog .brief-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(15, 30, 70, 0.18);
  border-color: rgba(43, 93, 201, 0.32);
}
@media (max-width: 1024px) {
  body.blog .blog-index-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 640px) {
  body.blog .blog-index-grid .wp-block-post-template { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================================================
   ABOUT page (page-id 6794)
   Polish layer on top of the shared landing-page primitives. Scoped so it
   does NOT affect the social-media page (4548) which uses the same
   .sm-card-grid / .sm-why-list classes.
   ========================================================================== */

/* (E) Hero: tighten the long tagline width */
body.page-id-6794 .category-hero-title { max-width: 22ch; }
body.page-id-6794 .category-hero-lede  { max-width: 56ch; }

/* (F) Section padding + content centering — same shape as the social-media
   landing, but scoped to the /about/ page so the layout actually has a
   width to grid into. Without this, .sm-card-grid had no grid styles and
   cards stacked vertically. */
body.page-id-6794 .sm-monitor,
body.page-id-6794 .sm-why,
body.page-id-6794 .sm-cta {
  padding: 80px 32px !important;
  max-width: none !important;
}
body.page-id-6794 .sm-monitor .section-eyebrow,
body.page-id-6794 .sm-monitor .section-title,
body.page-id-6794 .sm-monitor .sm-section-lede,
body.page-id-6794 .sm-monitor .sm-card-grid,
body.page-id-6794 .sm-why .section-eyebrow,
body.page-id-6794 .sm-why .section-title,
body.page-id-6794 .sm-why .sm-why-lede,
body.page-id-6794 .sm-why .about-process-list,
body.page-id-6794 .sm-why .about-founders-grid,
body.page-id-6794 .sm-cta .sm-cta-inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
body.page-id-6794 .sm-monitor .sm-section-lede,
body.page-id-6794 .sm-why .sm-why-lede {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 40px;
}

/* 2-column card grid for both .sm-card-grid instances on this page */
body.page-id-6794 .sm-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}
body.page-id-6794 .sm-card {
  padding: 26px 28px 28px;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px -8px rgba(15, 30, 70, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
body.page-id-6794 .sm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(15, 30, 70, 0.14);
  border-color: rgba(43, 93, 201, 0.28);
}
body.page-id-6794 .sm-card .tax-badge { align-self: flex-start; margin: 0; }
body.page-id-6794 .sm-card .newsletter-card-title {
  text-align: left;
  font-size: 19px;
  font-weight: 600;
  margin: 6px 0 4px;
  line-height: 1.28;
  color: var(--ink);
}
body.page-id-6794 .sm-card .newsletter-card-body {
  text-align: left;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--slate-500);
}
@media (max-width: 760px) {
  body.page-id-6794 .sm-card-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* (B) Numbered "Problem" cards — italic-serif watermark numerals on the
   first sm-card-grid only (the one tagged --numbered). Hide the small
   01/02/03/04 text badges since the watermark replaces them. */
body.page-id-6794 .sm-card-grid--numbered { counter-reset: about-cards; }
body.page-id-6794 .sm-card-grid--numbered > .sm-card {
  counter-increment: about-cards;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
body.page-id-6794 .sm-card-grid--numbered > .sm-card::before {
  content: counter(about-cards, decimal-leading-zero);
  position: absolute;
  right: -8px;
  top: -22px;
  font-family: var(--serif);
  font-size: 100px;
  font-weight: 700;
  font-style: italic;
  color: rgba(43, 93, 201, 0.10);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
body.page-id-6794 .sm-card-grid--numbered > .sm-card > * { position: relative; z-index: 1; }
body.page-id-6794 .sm-card-grid--numbered > .sm-card .tax-badge { display: none; }

/* (C) Founders pair as 2-card grid with circular initials avatars */
body.page-id-6794 .about-founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 28px auto 0;
}
@media (max-width: 700px) {
  body.page-id-6794 .about-founders-grid { grid-template-columns: 1fr; }
}
body.page-id-6794 .about-founder-card {
  background: linear-gradient(180deg, #ffffff 0%, rgba(43, 93, 201, 0.04) 100%);
  border: 1px solid rgba(43, 93, 201, 0.16);
  border-radius: 14px;
  padding: 28px 26px 26px;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 14px;
  align-items: center;
  box-shadow: 0 4px 18px -10px rgba(15, 30, 70, 0.10);
}
body.page-id-6794 .about-founder-avatar {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--navy) 100%);
  color: #fff;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 16px -8px rgba(15, 30, 70, 0.45);
}
body.page-id-6794 .about-founder-meta {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}
body.page-id-6794 .about-founder-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
body.page-id-6794 .about-founder-role {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cobalt);
}
body.page-id-6794 .about-founder-bio {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
  margin: 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate-500);
}

/* (D) "Our model" 4-step process list with connecting cobalt rail */
body.page-id-6794 .about-process-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  max-width: 760px;
  counter-reset: about-step;
}
body.page-id-6794 .about-process-list > li {
  counter-increment: about-step;
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 22px;
  align-items: start;
  padding: 0 0 28px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}
body.page-id-6794 .about-process-list > li:last-child { padding-bottom: 0; }
body.page-id-6794 .about-process-list > li::before {
  content: counter(about-step, decimal-leading-zero);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cobalt);
  color: var(--cobalt);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 2px;
}
/* Vertical cobalt rail connecting steps */
body.page-id-6794 .about-process-list > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 46px;
  bottom: -2px;
  width: 2px;
  background: rgba(43, 93, 201, 0.22);
  z-index: 0;
}
/* Both spans must explicitly sit in column 2 — otherwise grid auto-placement
   drops the second span (the body) into row 2 column 1 (the 56px circle
   column), causing every word to wrap onto its own line. */
body.page-id-6794 .about-process-list > li > .about-process-step,
body.page-id-6794 .about-process-list > li > .about-process-body {
  grid-column: 2;
  min-width: 0;
}
body.page-id-6794 .about-process-list .about-process-step {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 8px 0 6px;
  letter-spacing: -0.005em;
}
body.page-id-6794 .about-process-list .about-process-step strong { font-weight: 700; }
body.page-id-6794 .about-process-list .about-process-body {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-500);
}

/* ==========================================================================
   SOCIAL MEDIA INSIGHTS landing page (page-id 4548)
   Reuses .category-hero / .newsletter-card / .section-* primitives;
   adds a 2x2 card grid, a why-it-matters list, and a navy CTA block.
   ========================================================================== */
body.page-id-4548 .sm-monitor,
body.page-id-4548 .sm-why,
body.page-id-4548 .sm-cta {
  padding: 80px 32px !important;
  max-width: none !important;
}
body.page-id-4548 .sm-monitor > .wp-block-html-inner,
body.page-id-4548 .sm-monitor,
body.page-id-4548 .sm-why,
body.page-id-4548 .sm-cta {
  text-align: left;
}

/* All inner content gets centered to a max width */
body.page-id-4548 .sm-monitor .section-eyebrow,
body.page-id-4548 .sm-monitor .section-title,
body.page-id-4548 .sm-monitor .sm-section-lede,
body.page-id-4548 .sm-monitor .sm-card-grid,
body.page-id-4548 .sm-why .section-eyebrow,
body.page-id-4548 .sm-why .section-title,
body.page-id-4548 .sm-why .sm-why-lede,
body.page-id-4548 .sm-why .sm-why-list,
body.page-id-4548 .sm-cta .sm-cta-inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
body.page-id-4548 .sm-monitor .sm-section-lede,
body.page-id-4548 .sm-why .sm-why-lede {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 40px;
}

/* Cards grid: 2 columns on desktop, 1 on mobile */
body.page-id-4548 .sm-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 760px) {
  body.page-id-4548 .sm-card-grid { grid-template-columns: 1fr; gap: 18px; }
}
body.page-id-4548 .sm-card {
  padding: 26px 28px 28px;
}
body.page-id-4548 .sm-card .tax-badge {
  align-self: flex-start;
}
body.page-id-4548 .sm-card .newsletter-card-title {
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  margin: 12px 0 10px;
  line-height: 1.28;
}
body.page-id-4548 .sm-card .newsletter-card-body {
  text-align: left;
  font-size: 14.5px;
  line-height: 1.7;
}

/* Why-it-matters list */
body.page-id-4548 .sm-why-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  max-width: 760px;
  display: grid;
  gap: 14px;
}
body.page-id-4548 .sm-why-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  background: rgba(43, 93, 201, 0.04);
  border-left: 3px solid var(--cobalt);
  border-radius: 0 8px 8px 0;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
}
body.page-id-4548 .sm-why-list li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
}
body.page-id-4548 .sm-why-list li strong { color: var(--navy); font-weight: 600; }

/* CTA block — navy background, white text, button */
body.page-id-4548 .sm-cta {
  background: linear-gradient(135deg, #0E2450 0%, #163272 100%);
  position: relative;
  overflow: hidden;
}
body.page-id-4548 .sm-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 90% 10%, rgba(74, 130, 228, 0.32) 0%, transparent 60%);
  pointer-events: none;
}
body.page-id-4548 .sm-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}
body.page-id-4548 .sm-cta .section-eyebrow { color: var(--sky); justify-content: center; }
body.page-id-4548 .sm-cta .section-eyebrow::before { background: var(--sky); }
body.page-id-4548 .sm-cta-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 40px);
  color: #fff;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 20px;
}
body.page-id-4548 .sm-cta-body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0 auto 18px;
  max-width: 720px;
}
body.page-id-4548 .sm-cta-tagline {
  font-family: var(--sans);
  font-size: 16px;
  color: #fff;
  margin: 0 auto 32px;
  max-width: 680px;
}
body.page-id-4548 .sm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cobalt);
  color: #fff !important;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.18s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 24px -8px rgba(43, 93, 201, 0.6);
}
body.page-id-4548 .sm-cta-btn:hover {
  background: var(--sky);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(74, 130, 228, 0.7);
}

/* ---------- Pagination — same clean buttons as search ---------- */
body.blog .wp-block-query-pagination {
  margin-top: 56px !important;
  gap: 6px !important;
}
body.blog .wp-block-query-pagination a,
body.blog .wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--slate-100);
  color: var(--slate-500);
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
body.blog .wp-block-query-pagination a:hover {
  background: var(--cobalt); border-color: var(--cobalt); color: #fff;
}
body.blog .wp-block-query-pagination .current {
  background: var(--cobalt); border-color: var(--cobalt); color: #fff;
}

/* ============================================================
   Animation pass (2026-05-18)
   - Reading progress bar (single posts)
   - CTA shimmer on .btn-primary hover
   - Newsletter card image zoom on hover
   - Stagger improvements on homepage grids
   - prefers-reduced-motion: respected at the bottom
   ============================================================ */

/* Reading progress bar — fills as you scroll a single post.
   Visible only on body.single. Width is driven by the JS-set
   custom property --piai-reading-progress (0–1). */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
  overflow: hidden;
}
.reading-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cobalt) 0%, var(--sky) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
  box-shadow: 0 0 6px rgba(43, 93, 201, 0.45);
  will-change: transform;
}
body:not(.single) .reading-progress { display: none; }

/* CTA shimmer — a subtle highlight sweep across the primary button
   on hover. Decorative; purely CSS-driven. */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.18) 40%, rgba(255,255,255,0.30) 50%, rgba(255,255,255,0.18) 60%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: -1;
  transition: left 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.btn-primary:hover::after {
  left: 130%;
}

/* Featured-image cards: gentle image zoom + card lift refinement.
   The .brief-card hover-zoom already exists; this adds the same
   pattern to .newsletter-card. */
.newsletter-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.newsletter-card img,
.newsletter-card .newsletter-card-image,
.newsletter-card .newsletter-card-image img {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.newsletter-card:hover img,
.newsletter-card:hover .newsletter-card-image img {
  transform: scale(1.045);
}

/* Stagger inside homepage grids. The IntersectionObserver in
   functions.php already supports [data-stagger]; this only adds
   the entrance transform so children animate in nicely. */
.js-ready [data-stagger] > .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.js-ready [data-stagger] > .reveal.in {
  opacity: 1;
  transform: none;
}

/* Founder card — gentle entrance + glow on hover. */
.founder-card {
  transition: box-shadow 0.35s ease, transform 0.25s ease;
}
.founder-card:hover {
  box-shadow: 0 24px 60px rgba(14, 36, 80, 0.18), 0 2px 6px rgba(14, 36, 80, 0.08);
  transform: translateY(-2px);
}

/* Animated underline on inline links inside post content.
   Uses background-size trick so it animates cleanly even on
   wrapping links. */
.post-body-wrap a:not(.btn-primary):not(.btn-outline):not(.post-link-callout a):not([class*="ez-toc"]) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.post-body-wrap a:not(.btn-primary):not(.btn-outline):not(.post-link-callout a):not([class*="ez-toc"]):hover {
  background-size: 100% 1px;
}

/* Accessibility — disable all the above for users who opt out
   of motion. The existing .reveal block already has a similar
   rule in parent custom.css; this complements it for the new
   keyframes / transitions added in this file. */
@media (prefers-reduced-motion: reduce) {
  .reading-progress-fill {
    animation: none;
    transition: none;
  }
  .btn-primary::after { display: none; }
  .newsletter-card img,
  .newsletter-card .newsletter-card-image img {
    transition: none;
  }
  .newsletter-card:hover img,
  .newsletter-card:hover .newsletter-card-image img {
    transform: none;
  }
  .founder-card,
  .founder-card:hover {
    transition: none;
    transform: none;
    box-shadow: inherit;
  }
  .post-body-wrap a {
    transition: none;
    background-size: 100% 1px;  /* show underline statically */
  }
}
