/* ==========================================================================
   Blog + landing pages on the v2 design system.

   blog.css, aeo.css and pseo.css were written against the old landing page's
   --pxv-* variables. Rather than rewrite them, the variables are mapped onto
   the v2 tokens here, then a few components are restyled to match the new
   site. Loaded last, after /assets/css/site.css and the blog files.
   ========================================================================== */

:root {
  --pxv-indigo: var(--violet);
  --pxv-indigo-light: var(--violet-wash);
  --pxv-coral: var(--flame);
  --pxv-coral-light: #FF8A72;
  --pxv-dark: var(--ink);
  --pxv-dark-soft: var(--ink-3);
  --pxv-white: #fff;
  --pxv-sand: var(--paper-2);
  --pxv-sand-dark: var(--paper-3);
  --pxv-text: var(--ink);
  --pxv-text-light: var(--grey);
  --pxv-text-lighter: var(--muted);
  --pxv-border: var(--line);
  --pxv-font-heading: var(--font-display);
  --pxv-font-body: var(--font);
  --pxv-font-mono: var(--font);
  --pxv-radius: 14px;
  --pxv-radius-lg: var(--r-panel);
  --pxv-shadow: 0 10px 30px -18px rgba(0,0,0,.35);
  --pxv-shadow-lg: 0 24px 50px -24px rgba(0,0,0,.4);
  --pxv-transition: .25s var(--ease);
  --pxv-container: var(--container);
}

body { background: var(--paper); }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Headings: one family, v2 weights and tracking. */
.blog-hero__title, .post-single__title, .pseo-header__title, .programs-hero__title,
.post-content h2, .post-content h3, .pseo-content h2, .pseo-content h3 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; text-wrap: balance;
}
.post-single__title, .pseo-header__title { font-size: clamp(30px, 2.4vw + 14px, 48px); line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; }

/* Breadcrumbs on the old templates sit inside .container already. */
.breadcrumbs { padding-top: var(--s-5); }

/* Article body: comfortable measure and rhythm. */
.post-content, .pseo-content { font-size: 16.5px; line-height: 1.75; }
.post-content h2, .pseo-content h2 { font-size: clamp(24px, 1vw + 18px, 32px); line-height: 1.15; margin-top: 1.8em; }
.post-content h3, .pseo-content h3 { font-size: clamp(19px, .4vw + 16px, 22px); line-height: 1.25; margin-top: 1.5em; }
.post-content a, .pseo-content a { color: var(--violet); text-underline-offset: 3px; }
.post-content table, .pseo-content table { font-size: 15.5px; }

/* Cards in the v2 style: soft panels, no heavy shadows. */
.post-card { border-radius: var(--r); border: 1px solid var(--line); box-shadow: none; overflow: hidden; background: var(--surface); transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__title, .post-card__title a { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
.post-card__category, .post-single__category { background: var(--violet-wash); color: var(--violet); border-radius: var(--r-pill); font-weight: 500; }

/* Answer-first blocks keep their job, in v2 colours. */
.post-answer__tldr, .answer-capsule { border-left-color: var(--flame); background: var(--paper-2); border-radius: 14px; }
.post-answer__label { color: var(--flame-ink); font-family: var(--font); letter-spacing: .02em; }

/* Buttons used inside stored landing-page content. */
.pseo-cta-btn { background: var(--ink); color: #fff; border-radius: var(--r-pill); font-weight: 500; font-family: var(--font); }
.pseo-cta-btn:hover { background: var(--accent); }
.pseo-cta-btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.pseo-cta-btn--outline:hover { background: var(--ink); color: #fff; }

/* Author box gets a real photo now. */
.author-box { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-box__name { font-family: var(--font-display); font-weight: 500; }
.author-box__role { font-size: 14px; color: var(--violet); font-weight: 500; margin-top: 2px; }
.author-box__link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }

/* The old blog nav/footer styles are dead: the v2 header and footer replace them. */
.blog-nav, .blog-footer, .whatsapp-float { display: none !important; }

/* blog.css colours every link; the shared header, menu and footer keep their own colours. */
.site-header a:not(.btn), .mega-menu a, .site-footer a:not(.btn) { color: inherit; }
.site-header a:not(.btn):hover { color: inherit; }

/* The old navbar was fixed and overlapped content, so pages padded for it.
   The v2 header is sticky and takes its own space. */
.pseo-page { padding-top: 8px !important; }

/* v6: the blog hero matches the rest of the site (light, quiet, left-aligned). */
.blog-hero { background: transparent; color: var(--ink); text-align: left; padding: clamp(48px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.blog-hero::before { display: none; }
.blog-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: .01em; color: var(--text-2); }
.blog-hero__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.blog-hero__title { font-size: var(--fs-hero); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; }
.blog-hero__desc { color: var(--text-2); margin: 0; max-width: 56ch; font-size: var(--fs-lead); line-height: 1.6; }
.category-bar { justify-content: flex-start; padding: 8px 0 24px; }
.category-pill { font-size: 14px; border-color: var(--line-2); background: var(--surface); }
.category-pill:hover, .category-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-card__category, .post-single__category { font-size: 12px; letter-spacing: .02em; text-transform: none; }
.post-content strong, .pseo-content strong { font-weight: 600; }
.post-content blockquote { border-left-color: var(--accent); }
.post-card__category { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 12px; }
.author-box__link { display: inline-flex; align-items: center; min-height: 32px; }
.post-card__title a { display: inline; }
/* Wide data tables inside articles scroll sideways inside their own box on
   small screens instead of spilling past the page; never vertically. */
.post-content table, .pseo-content table { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.post-content table:focus-visible, .pseo-content table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-content th, .post-content td, .pseo-content th, .pseo-content td { min-width: 150px; }
