/* --- Homepage layout fixes --- */
body.home,
body.home html { background: #050813; }
body.home .entry-content > .pi-nav,
body.home .entry-content > .pi-hero,
body.home .entry-content > .pi-stats { margin-top: 0 !important; }

/* #1 Hide blog-embed context line when tool is on the homepage */
body.home .pc-blog-context { display: none !important; }

/* #6 Fully opaque sticky nav — safe on every page type */
.pi-nav {
  background: rgb(8, 12, 24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* #9 Defensive narrow-screen safety: allow horizontal scroll if table overflows */
@media (max-width: 480px) {
  .pc-tool { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pc-tool .pc-table { min-width: 0; }
  .pc-tool .pc-thead,
  .pc-tool .pc-row { gap: 4px; }
}

/* ==========================================================================
   PEPTIDE INSIDER — Global Brand Styles (applies site-wide)
   Unifies homepage, blog listing, and single post styling.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Fraunces:wght@600;700;900&display=swap');

/* ---------- Base ---------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #0a0e1a;
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: #0891b2; }
a:hover { color: #06b6d4; }

h1, h2, h3, h4,
.wp-block-heading,
.wp-block-post-title,
.wp-block-post-title a,
.wp-block-query-title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0a0e1a;
}

.wp-block-post-title a:hover { color: #0891b2 !important; }

/* ---------- Dark Header (restyle the theme's template-part header) ---------- */
header.wp-block-template-part {
  background: rgb(8, 12, 24) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
}

header.wp-block-template-part .wp-block-site-title,
header.wp-block-template-part .wp-block-site-title a {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  font-size: 19px !important;
  letter-spacing: -0.5px;
  text-decoration: none;
}

header.wp-block-template-part nav a,
header.wp-block-template-part .wp-block-navigation a,
header.wp-block-template-part .wp-block-pages-list__item__link {
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: 'Inter', sans-serif !important;
  text-decoration: none;
}

header.wp-block-template-part nav a:hover,
header.wp-block-template-part .wp-block-navigation a:hover,
header.wp-block-template-part .wp-block-pages-list__item__link:hover {
  color: #06b6d4 !important;
}

header.wp-block-template-part .current-menu-item > a,
header.wp-block-template-part .wp-block-navigation-item.current-menu-item a {
  color: #ffffff !important;
}

header.wp-block-template-part .wp-block-button__link {
  background: #06b6d4 !important;
  color: #0a0e1a !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  border: none !important;
}

header.wp-block-template-part .wp-block-button__link:hover {
  background: #22d3ee !important;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.5);
}

header.wp-block-template-part .wp-block-navigation__responsive-container-open svg,
header.wp-block-template-part .wp-block-navigation__responsive-container-close svg {
  fill: #ffffff !important;
}

/* ---------- Dark Footer ---------- */
footer.wp-block-template-part {
  background: #050813 !important;
  color: #8b8b96 !important;
  padding: 40px 24px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer.wp-block-template-part,
footer.wp-block-template-part p,
footer.wp-block-template-part .wp-block-site-title {
  color: #8b8b96 !important;
}

footer.wp-block-template-part a {
  color: #8b8b96 !important;
  text-decoration: none;
}

footer.wp-block-template-part a:hover {
  color: #06b6d4 !important;
}

footer.wp-block-template-part h1,
footer.wp-block-template-part h2,
footer.wp-block-template-part h3,
footer.wp-block-template-part h4,
footer.wp-block-template-part .wp-block-site-title a {
  color: #ffffff !important;
}

/* ---------- Blog Listing & Post Cards ---------- */
.wp-block-post-excerpt,
.wp-block-post-excerpt p {
  color: #5b6478 !important;
}

.wp-block-post-date,
.wp-block-post-date time {
  color: #64748b !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 13px !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.wp-block-post-excerpt__more-link {
  color: #0891b2 !important;
  font-weight: 600 !important;
  text-decoration: none;
}

.wp-block-post-excerpt__more-link:hover {
  color: #06b6d4 !important;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  color: #0891b2 !important;
  font-family: 'JetBrains Mono', monospace;
}

.wp-block-query-pagination .page-numbers.current {
  color: #0a0e1a !important;
  font-weight: 700;
}

/* ---------- Single Post Pages ---------- */
.single .wp-block-post-title,
.wp-singular.single .wp-block-post-title,
.single-post .wp-block-post-title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(32px, 4vw, 52px) !important;
  font-weight: 900 !important;
  color: #0a0e1a !important;
  letter-spacing: -1px !important;
  line-height: 1.15 !important;
  margin-bottom: 16px !important;
}

.single .wp-block-post-date,
.single-post .wp-block-post-date {
  margin-bottom: 24px;
}

.single .wp-block-post-content p,
.single-post .wp-block-post-content p,
.single .entry-content p,
.single-post .entry-content p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #1e293b;
}

.single .wp-block-post-content h2,
.single-post .wp-block-post-content h2 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: #0a0e1a;
}

.single .wp-block-post-content h3,
.single-post .wp-block-post-content h3 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(20px, 2.4vw, 26px);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #0a0e1a;
}

.single .wp-block-post-content a,
.single-post .wp-block-post-content a {
  color: #0891b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single .wp-block-post-content a:hover,
.single-post .wp-block-post-content a:hover {
  color: #06b6d4;
}

.single blockquote,
.single-post blockquote,
.wp-block-quote {
  border-left: 3px solid #06b6d4;
  padding-left: 20px;
  margin-left: 0;
  color: #475569;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}

.wp-block-code,
.single code,
.single-post code {
  background: #0f172a !important;
  color: #f8fafc !important;
  font-family: 'JetBrains Mono', monospace !important;
  border-radius: 6px;
  padding: 2px 8px;
}

.wp-block-code {
  padding: 20px !important;
}

/* ---------- Blog listing page intro ---------- */
.page-id-74 h2.wp-block-heading:first-of-type {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(32px, 4vw, 44px);
  color: #0a0e1a;
  letter-spacing: -1px;
}

/* ---------- Cleanup: hide duplicate homepage in-content nav/footer now that the theme's own parts carry the styling ---------- */
body.home .pi-footer,
.page-id-74 .pi-footer { display: none !important; }
body.home footer.wp-block-template-part,
.page-id-74 footer.wp-block-template-part { display: block !important; }


/* ---------- Post-title link color fix (listing pages) ---------- */
/* The theme applies a per-block link color via .has-link-color that can blend
   into the background; force a readable dark color with high specificity. */
.wp-block-post-template .wp-block-post-title,
.wp-block-post-template .wp-block-post-title a,
.wp-block-post-template .wp-block-post-title a:link,
.wp-block-post-template .wp-block-post-title a:visited,
.wp-block-query .wp-block-post-title,
.wp-block-query .wp-block-post-title a,
h2.wp-block-post-title,
h2.wp-block-post-title a {
  color: #0a0e1a !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(22px, 2.2vw, 28px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

.wp-block-post-template .wp-block-post-title a:hover,
.wp-block-query .wp-block-post-title a:hover,
h2.wp-block-post-title a:hover {
  color: #0891b2 !important;
}


/* Force theme header visible on ALL pages (homepage's inline style was hiding it) */


/* ---------- Header inner-width alignment ----------
   On the homepage, :root overrides make alignwide = 100%. Force the theme
   header's inner group to a consistent max-width across all pages. */
header.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}


/* ==========================================================================
   Pricing comparison tool (.pc-tool) — fix contrast on blog posts
   The tool is designed for a dark-navy backdrop (homepage). On other pages
   the global heading/paragraph colors were making .pc-title / .pc-subtitle
   unreadable. Restore the tool's intended palette and give it a cohesive
   dark container so it doesn't feel out of place inside article content.
   ========================================================================== */

/* Force the tool's title to stay light — override global .wp-block-heading / h3 rules */
.pc-title,
.pc-tool .pc-title,
.single .pc-title,
.single-post .pc-title,
body:not(.home) h3.pc-title {
  color: #e8e8ec !important;
  font-family: 'Fraunces', Georgia, serif !important;
  letter-spacing: -0.3px;
}

/* Force the subtitle to the tool's muted-grey — override global paragraph color */
.pc-subtitle,
.pc-tool .pc-subtitle,
.single .pc-subtitle,
.single-post .pc-subtitle,
body:not(.home) p.pc-subtitle {
  color: #8b8b96 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
}

/* Give the tool a dark cohesive wrapper on every page except the homepage
   (the homepage already wraps it in a dark section). */
body:not(.home) .pc-tool {
  background: #050813 !important;
  padding: 36px 28px !important;
  border-radius: 16px !important;
  margin: 40px auto !important;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

/* Top blog-context callout ("Showing prices for Glow Blend…") sits above
   the dark wrapper — keep its light-blue tint but tighten the margin so it
   visually connects to the tool below. */
body:not(.home) .pc-blog-context {
  margin-bottom: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

body:not(.home) .pc-blog-context + .pc-tool {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Also prevent the global single-post link underline from interfering with
   buttons and chips inside the tool. */
.pc-tool a {
  text-decoration: none !important;
}


/* Shop button and other CTA links inside the pricing tool:
   my global a{color:#0891b2} was overriding the button's intended white text. */
.pc-tool .pc-shop-btn,
.pc-tool a.pc-shop-btn,
.pc-tool a[class*="shop-btn"],
.pc-tool a[class*="pc-cta"],
.pc-tool a[class*="pc-btn"] {
  color: #ffffff !important;
  text-decoration: none !important;
}

.pc-tool .pc-shop-btn:hover,
.pc-tool a.pc-shop-btn:hover {
  color: #ffffff !important;
}

/* Also make sure the "View full comparison →" link keeps its cyan color
   (that's the intended secondary link style, not a CTA) */
.pc-tool a[class*="view-full"],
.pc-tool a[href*="compare"] {
  /* let it stay cyan per global style */
}


/* === Menu height + heading visibility fixes (added) === */
/* Equalize header bar height across all pages (home vs blog) */
header.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Make dark-on-dark headings readable (white) on the dark sections */
.pi-section:not(.pi-vendors) h2,
.pi-newsletter h2,
.pi-section:not(.pi-vendors) .pi-article h3 {
  color: #ffffff !important;
}


/* === Header logo/menu spacing consistency (added) === */
/* Prevent the broad width:100% override from stretching header groups,
   so logo (left) and menu (right) spacing matches across all pages */
header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group {
  width: auto !important;
  flex: 0 1 auto !important;
}


/* Quick Summary block (Peptide Insider callout) */
.entry-content .quick-summary,
.wp-block-post-content .quick-summary {
  background: #f0fbfd;
  border: 1px solid #cdeef4;
  border-left: 5px solid #06b6d4;
  border-radius: 12px;
  padding: 22px 28px;
  margin: 0 0 34px;
}
.entry-content .quick-summary h2,
.wp-block-post-content .quick-summary h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
  color: #0a0e1a;
  display: flex;
  align-items: center;
  gap: 10px;
}
.entry-content .quick-summary h2::before,
.wp-block-post-content .quick-summary h2::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 9px;
  height: 22px;
  background: #06b6d4;
  border-radius: 3px;
}
.entry-content .quick-summary p,
.wp-block-post-content .quick-summary p {
  margin: 0;
  color: #334155;
  line-height: 1.7;
}
