/*
Theme Name:   Pioneers Fiberglass Child
Theme URI:    https://pioneersfiberglass.com
Description:  Premium child theme for Pioneers Fiberglass blog pages, built on Astra.
Author:       Pioneers Fiberglass
Author URI:   https://pioneersfiberglass.com
Template:     astra
Version:      2.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  pioneers-fiberglass-child
*/

:root {
  --pfg-navy: #0A1F44;
  --pfg-navy-2: #07172F;
  --pfg-blue: #1B6FD8;
  --pfg-blue-2: #0E4FAE;
  --pfg-orange: #E8500A;
  --pfg-orange-2: #C74107;
  --pfg-ink: #0B1629;
  --pfg-text: #263044;
  --pfg-muted: #64748B;
  --pfg-line: rgba(11, 22, 41, 0.10);
  --pfg-line-strong: rgba(11, 22, 41, 0.16);
  --pfg-bg: #F8FAFC;
  --pfg-bg-2: #EEF4FA;
  --pfg-white: #FFFFFF;
  --pfg-radius: 22px;
  --pfg-radius-md: 16px;
  --pfg-shadow: 0 16px 45px rgba(10, 31, 68, 0.08);
  --pfg-shadow-lg: 0 24px 70px rgba(10, 31, 68, 0.14);
  --pfg-font-body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pfg-font-display: 'Fraunces', Georgia, serif;
  --pfg-ease: 220ms cubic-bezier(.2, .8, .2, 1);
}

html {
  scroll-behavior: smooth;
}

body.single-post,
body.blog,
body.archive,
body.search {
  background: var(--pfg-bg);
}

body.single-post .site-content,
body.blog .site-content,
body.archive .site-content,
body.search .site-content {
  padding: 0 !important;
}

body.single-post .ast-container,
body.blog .ast-container,
body.archive .ast-container,
body.search .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.single-post .entry-header.ast-no-thumbnail,
body.single-post .ast-single-post-order .ast-post-format-wrapper {
  display: none !important;
}

body.single-post.ast-separate-container .ast-article-single,
body.blog.ast-separate-container .ast-article-post,
body.archive.ast-separate-container .ast-article-post,
body.search.ast-separate-container .ast-article-post {
  padding: 0 !important;
}

#pfg-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--pfg-orange), #FF8A3D);
  pointer-events: none;
  transition: width 120ms linear;
}

.pfg-page {
  font-family: var(--pfg-font-body);
  color: var(--pfg-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(27, 111, 216, 0.08), transparent 32rem),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.pfg-container {
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
}

.pfg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--pfg-orange);
}

.pfg-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.pfg-eyebrow--light {
  color: #FFB17E;
}

.pfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform var(--pfg-ease), box-shadow var(--pfg-ease), background var(--pfg-ease), color var(--pfg-ease), border-color var(--pfg-ease);
}

.pfg-btn:hover {
  transform: translateY(-1px);
}

.pfg-btn--orange {
  background: var(--pfg-orange);
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(232, 80, 10, .24);
}

.pfg-btn--orange:hover {
  background: var(--pfg-orange-2);
  color: #fff !important;
}

.pfg-btn--blue {
  background: var(--pfg-blue);
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(27, 111, 216, .22);
}

.pfg-btn--blue:hover {
  background: var(--pfg-blue-2);
  color: #fff !important;
}

.pfg-btn--ghost-light {
  border-color: rgba(255,255,255,.38);
  color: #fff !important;
  background: rgba(255,255,255,.07);
}

.pfg-btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,.14);
  color: #fff !important;
}

/* ---------------- Single post header ---------------- */
.pfg-single-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 76px) 0 clamp(34px, 5vw, 58px);
  background:
    radial-gradient(circle at 78% 10%, rgba(232,80,10,.24), transparent 22rem),
    linear-gradient(135deg, var(--pfg-navy) 0%, #09275A 48%, var(--pfg-navy-2) 100%);
  color: #fff;
}

.pfg-single-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image:
    linear-gradient(rgba(255,255,255,.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.20) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.pfg-single-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pfg-orange), var(--pfg-blue), transparent 78%);
}

.pfg-single-hero__inner {
  position: relative;
  z-index: 1;
}

.pfg-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: rgba(255,255,255,.62);
}

.pfg-breadcrumb a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-weight: 700;
}

.pfg-breadcrumb a:hover {
  color: #fff;
}

.pfg-breadcrumb span:last-child {
  color: #FFB17E;
}

.pfg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 9px 14px;
}

.pfg-back-link:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.pfg-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pfg-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232,80,10,.18);
  border: 1px solid rgba(232,80,10,.36);
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.pfg-meta-pill {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 600;
}

.pfg-single-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--pfg-font-display);
  color: #fff !important;
  font-size: clamp(34px, 5.4vw, 62px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em;
  font-weight: 600 !important;
}

.pfg-single-excerpt {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.pfg-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.pfg-author-mini {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pfg-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pfg-orange), #FF8A3D);
  color: #fff;
  font-weight: 900;
  letter-spacing: .05em;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.pfg-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfg-author-name {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.pfg-author-role {
  margin-top: 2px;
  color: rgba(255,255,255,.56);
  font-size: 13px;
}

.pfg-share-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
  color: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
  font-family: var(--pfg-font-body);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--pfg-ease), border-color var(--pfg-ease), transform var(--pfg-ease);
}

.pfg-share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.46);
  background: rgba(255,255,255,.13);
}

.pfg-featured-image {
  margin-top: -1px;
  background: linear-gradient(180deg, #fff, var(--pfg-bg));
}

.pfg-featured-image__wrap {
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--pfg-shadow-lg);
  background: #DDE8F4;
  max-height: 520px;
}

.pfg-featured-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

/* ---------------- Single body ---------------- */
.pfg-single-body {
  display: grid;
  grid-template-columns: minmax(0, 880px) 340px;
  gap: 44px;
  justify-content: center;
  align-items: start;
  padding: 42px 0 72px;
}

.pfg-article-card {
  background: #fff;
  border: 1px solid var(--pfg-line);
  border-radius: var(--pfg-radius);
  box-shadow: var(--pfg-shadow);
  padding: clamp(24px, 4.5vw, 54px);
}

.pfg-entry-content {
  overflow-wrap: anywhere;
}

.pfg-entry-content > *:first-child {
  margin-top: 0 !important;
}

.pfg-entry-content p {
  margin: 1.25rem 0 0 !important;
  color: var(--pfg-text) !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 18px !important;
  line-height: 1.88 !important;
}

.pfg-entry-content > p:first-of-type::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: var(--pfg-orange);
  font-family: var(--pfg-font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: .82;
}

.pfg-entry-content h2,
.pfg-entry-content h3,
.pfg-entry-content h4 {
  color: var(--pfg-ink) !important;
  scroll-margin-top: 110px;
}

.pfg-entry-content h2 {
  margin: 3.05rem 0 1rem !important;
  padding-bottom: .72rem;
  border-bottom: 2px solid rgba(232,80,10,.26);
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(27px, 3vw, 38px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.025em;
  font-weight: 650 !important;
}

.pfg-entry-content h2::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin-top: .72rem;
  border-radius: 999px;
  background: var(--pfg-orange);
}

.pfg-entry-content h3 {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 2.35rem 0 .8rem !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(22px, 2.2vw, 28px) !important;
  line-height: 1.22 !important;
  font-weight: 650 !important;
}

.pfg-entry-content h3::before {
  content: '';
  flex: 0 0 22px;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--pfg-blue);
}

.pfg-entry-content h4 {
  margin: 1.7rem 0 .6rem !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

.pfg-entry-content ul,
.pfg-entry-content ol {
  margin: 1.25rem 0 0 !important;
  padding-left: 1.35rem !important;
}

.pfg-entry-content li {
  margin-bottom: .55rem !important;
  color: var(--pfg-text) !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
}

.pfg-entry-content li::marker {
  color: var(--pfg-orange);
  font-weight: 800;
}

.pfg-entry-content a {
  color: var(--pfg-blue) !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: rgba(27,111,216,.30) !important;
  text-underline-offset: 4px !important;
}

.pfg-entry-content a:hover {
  color: var(--pfg-orange) !important;
  text-decoration-color: rgba(232,80,10,.40) !important;
}

.pfg-entry-content strong,
.pfg-entry-content b {
  color: var(--pfg-ink);
  font-weight: 800;
}

.pfg-entry-content blockquote {
  margin: 2rem 0 !important;
  padding: 1.2rem 1.35rem !important;
  border: 1px solid rgba(232,80,10,.18) !important;
  border-left: 5px solid var(--pfg-orange) !important;
  border-radius: 0 var(--pfg-radius-md) var(--pfg-radius-md) 0 !important;
  background: linear-gradient(90deg, rgba(232,80,10,.08), rgba(27,111,216,.04)) !important;
  color: var(--pfg-ink) !important;
}

.pfg-entry-content blockquote p {
  margin-top: 0 !important;
  font-family: var(--pfg-font-display) !important;
  font-size: 20px !important;
  line-height: 1.65 !important;
}

.pfg-entry-content img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 1.8rem 0 !important;
  border-radius: 18px;
  border: 1px solid var(--pfg-line);
  box-shadow: 0 14px 35px rgba(10,31,68,.08);
}

.pfg-entry-content figure {
  margin: 2rem 0 !important;
}

.pfg-entry-content figcaption {
  margin-top: .75rem;
  color: var(--pfg-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.pfg-table-scroll,
.pfg-entry-content .wp-block-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border: 1px solid var(--pfg-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(10,31,68,.06);
}

.pfg-entry-content .wp-block-table table,
.pfg-entry-content table {
  width: 100% !important;
  min-width: 640px;
  margin: 0 !important;
  border-collapse: collapse !important;
  border: 0 !important;
  table-layout: auto;
  font-size: 15px;
}

.pfg-entry-content th {
  background: var(--pfg-navy) !important;
  color: #fff !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 3px solid var(--pfg-orange) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .08em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.pfg-entry-content td {
  padding: 13px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pfg-line) !important;
  color: var(--pfg-text) !important;
  line-height: 1.55 !important;
  vertical-align: top;
}

.pfg-entry-content tr:nth-child(even) td {
  background: #F5F8FC !important;
}

.pfg-entry-content tr:last-child td {
  border-bottom: 0 !important;
}

.pfg-table-hint {
  display: none;
  margin: .65rem 0 0;
  color: var(--pfg-muted);
  font-size: 12px;
  font-weight: 700;
}

/* ---------------- Sidebar ---------------- */
.pfg-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pfg-side-card {
  overflow: hidden;
  border: 1px solid var(--pfg-line);
  border-radius: var(--pfg-radius);
  background: #fff;
  box-shadow: var(--pfg-shadow);
}

.pfg-side-card__header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--pfg-line);
}

.pfg-side-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pfg-orange);
  box-shadow: 0 0 0 5px rgba(232,80,10,.10);
}

.pfg-side-label {
  color: var(--pfg-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pfg-toc-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  max-height: 56vh;
  overflow: auto;
}

.pfg-toc-list li {
  margin: 0;
}

.pfg-toc-link {
  display: block;
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 8px 11px;
  color: rgba(11,22,41,.68) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
  text-decoration: none !important;
  transition: background var(--pfg-ease), color var(--pfg-ease), border-color var(--pfg-ease);
}

.pfg-toc-link:hover,
.pfg-toc-link.active {
  border-left-color: var(--pfg-orange);
  background: rgba(232,80,10,.07);
  color: var(--pfg-orange) !important;
}

.pfg-toc-link.is-h3 {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(11,22,41,.55) !important;
}

.pfg-mini-cta {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(145deg, var(--pfg-navy), #08275B);
  color: #fff;
}

.pfg-mini-cta::after {
  content: '';
  position: absolute;
  right: -52px;
  bottom: -52px;
  width: 155px;
  height: 155px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,80,10,.42), transparent 68%);
  pointer-events: none;
}

.pfg-mini-cta > * {
  position: relative;
  z-index: 1;
}

.pfg-mini-cta h3 {
  margin: 10px 0 9px;
  color: #fff;
  font-family: var(--pfg-font-display);
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -.02em;
}

.pfg-mini-cta p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.70);
  font-size: 14px;
  line-height: 1.65;
}

.pfg-related-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.pfg-related-item {
  display: block;
  padding: 13px;
  border: 1px solid var(--pfg-line);
  border-radius: 14px;
  background: #F7FAFD;
  text-decoration: none !important;
  transition: transform var(--pfg-ease), border-color var(--pfg-ease), background var(--pfg-ease);
}

.pfg-related-item:hover {
  transform: translateY(-1px);
  border-color: rgba(27,111,216,.30);
  background: #fff;
}

.pfg-related-item strong {
  display: block;
  color: var(--pfg-ink);
  font-size: 14px;
  line-height: 1.38;
}

.pfg-related-item span {
  display: block;
  margin-top: 6px;
  color: var(--pfg-muted);
  font-size: 12px;
  font-weight: 700;
}

/* ---------------- Tags / footer / CTA ---------------- */
.pfg-tags-card {
  margin-top: 20px;
}

.pfg-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px;
}

.pfg-tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--pfg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pfg-ink) !important;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}

.pfg-tag-pill:hover {
  border-color: rgba(232,80,10,.32);
  background: rgba(232,80,10,.07);
  color: var(--pfg-orange) !important;
}

.pfg-project-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--pfg-radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(232,80,10,.30), transparent 18rem),
    linear-gradient(135deg, var(--pfg-navy) 0%, var(--pfg-blue) 100%);
  color: #fff;
  box-shadow: var(--pfg-shadow-lg);
}

.pfg-project-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .14;
}

.pfg-project-cta__glow {
  position: absolute;
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}

.pfg-project-cta__content,
.pfg-project-cta__actions {
  position: relative;
  z-index: 1;
}

.pfg-project-cta h2 {
  max-width: 650px;
  margin: 10px 0 10px;
  color: #fff !important;
  font-family: var(--pfg-font-display);
  font-size: clamp(27px, 3vw, 42px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em;
}

.pfg-project-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 16px;
  line-height: 1.75;
}

.pfg-project-cta__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.pfg-project-cta--compact {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px;
}

.pfg-project-cta--compact .pfg-project-cta__actions {
  justify-content: flex-start;
}

.pfg-footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--pfg-line);
  border-radius: var(--pfg-radius);
  background: #fff;
  box-shadow: var(--pfg-shadow);
}

.pfg-footer-strip strong {
  display: block;
  color: var(--pfg-ink);
  font-family: var(--pfg-font-display);
  font-size: 22px;
  line-height: 1.2;
}

.pfg-footer-strip span {
  display: block;
  margin-top: 5px;
  color: var(--pfg-muted);
  font-size: 14px;
}

/* ---------------- Blog listing / archives ---------------- */
.pfg-listing-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 94px) 0 clamp(44px, 5vw, 70px);
  color: #fff;
  background:
    radial-gradient(circle at 76% 12%, rgba(232,80,10,.25), transparent 24rem),
    linear-gradient(135deg, var(--pfg-navy) 0%, #09275A 55%, var(--pfg-navy-2) 100%);
}

.pfg-listing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .10;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 24px 24px;
}

.pfg-listing-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.pfg-listing-hero h1 {
  margin: 12px 0 14px;
  color: #fff !important;
  font-family: var(--pfg-font-display);
  font-size: clamp(38px, 6vw, 68px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em;
}

.pfg-listing-hero p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.72;
}

.pfg-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  padding: 44px 0 72px;
  align-items: start;
}

.pfg-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.pfg-post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--pfg-line);
  border-radius: var(--pfg-radius);
  background: #fff;
  box-shadow: var(--pfg-shadow);
  transition: transform var(--pfg-ease), box-shadow var(--pfg-ease), border-color var(--pfg-ease);
}

.pfg-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(27,111,216,.26);
  box-shadow: var(--pfg-shadow-lg);
}

.pfg-post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #E9F1FA, #D7E7F8);
  text-decoration: none !important;
}

.pfg-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.pfg-post-card:hover .pfg-post-card__media img {
  transform: scale(1.04);
}

.pfg-post-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(10,31,68,.20);
  font-family: var(--pfg-font-display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: .08em;
}

.pfg-post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 21px;
}

.pfg-post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--pfg-muted);
  font-size: 12px;
  font-weight: 800;
}

.pfg-post-card__meta a {
  color: var(--pfg-orange) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pfg-post-card h2 {
  margin: 0;
  font-family: var(--pfg-font-display);
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.025em;
}

.pfg-post-card h2 a {
  color: var(--pfg-ink) !important;
  text-decoration: none !important;
}

.pfg-post-card h2 a:hover {
  color: var(--pfg-blue) !important;
}

.pfg-post-card p {
  margin: 12px 0 18px;
  color: var(--pfg-muted);
  font-size: 15px;
  line-height: 1.72;
}

.pfg-read-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--pfg-blue) !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
}

.pfg-read-link:hover {
  color: var(--pfg-orange) !important;
}

.pfg-blog-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.pfg-blog-info-card {
  padding: 22px;
  border: 1px solid var(--pfg-line);
  border-radius: var(--pfg-radius);
  background: #fff;
  box-shadow: var(--pfg-shadow);
}

.pfg-blog-info-card h2,
.pfg-blog-info-card h3 {
  margin: 0 0 9px;
  color: var(--pfg-ink);
  font-family: var(--pfg-font-display);
  font-size: 24px;
  line-height: 1.16;
}

.pfg-blog-info-card p {
  margin: 0;
  color: var(--pfg-muted);
  font-size: 14px;
  line-height: 1.7;
}

.pfg-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.pfg-category-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--pfg-line);
  background: #F8FAFC;
  color: var(--pfg-ink) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}

.pfg-category-list a:hover {
  border-color: rgba(232,80,10,.32);
  color: var(--pfg-orange) !important;
  background: rgba(232,80,10,.07);
}

.pfg-pagination {
  margin-top: 32px;
}

.pfg-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pfg-pagination .page-numbers {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--pfg-line);
  background: #fff;
  color: var(--pfg-ink) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}

.pfg-pagination .page-numbers.current,
.pfg-pagination .page-numbers:hover {
  background: var(--pfg-blue);
  color: #fff !important;
  border-color: var(--pfg-blue);
}

.pfg-empty-state {
  padding: 34px;
  border: 1px solid var(--pfg-line);
  border-radius: var(--pfg-radius);
  background: #fff;
  box-shadow: var(--pfg-shadow);
}

.pfg-empty-state h2 {
  margin: 0 0 8px;
  color: var(--pfg-ink);
  font-family: var(--pfg-font-display);
}

.pfg-empty-state p {
  margin: 0;
  color: var(--pfg-muted);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .pfg-single-body,
  .pfg-blog-layout {
    grid-template-columns: 1fr;
  }

  .pfg-sidebar,
  .pfg-blog-sidebar {
    position: static;
  }

  .pfg-project-cta {
    grid-template-columns: 1fr;
  }

  .pfg-project-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .pfg-container {
    width: min(100% - 24px, 1120px);
  }

  .pfg-single-hero,
  .pfg-listing-hero {
    padding-top: 34px;
  }

  .pfg-breadcrumb {
    font-size: 12px;
  }

  .pfg-single-title,
  .pfg-listing-hero h1 {
    font-size: 34px !important;
  }

  .pfg-author-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pfg-single-body,
  .pfg-blog-layout {
    padding: 28px 0 54px;
    gap: 24px;
  }

  .pfg-article-card {
    border-radius: 18px;
    padding: 22px 16px;
  }

  .pfg-entry-content p,
  .pfg-entry-content li {
    font-size: 16px !important;
    line-height: 1.78 !important;
  }

  .pfg-entry-content > p:first-of-type::first-letter {
    font-size: 3.15rem;
  }

  .pfg-entry-content h2 {
    font-size: 27px !important;
  }

  .pfg-entry-content h3 {
    font-size: 22px !important;
  }

  .pfg-table-scroll,
  .pfg-entry-content .wp-block-table {
    margin-left: -2px;
    margin-right: -2px;
  }

  .pfg-table-hint {
    display: block;
  }

  .pfg-post-grid {
    grid-template-columns: 1fr;
  }

  .pfg-post-card__body {
    padding: 18px;
  }

  .pfg-footer-strip,
  .pfg-project-cta {
    border-radius: 18px;
  }

  .pfg-project-cta__actions,
  .pfg-project-cta__actions .pfg-btn {
    width: 100%;
  }

  .pfg-featured-image__wrap {
    border-radius: 0 0 20px 20px;
  }
}


/* ---------------- Final desktop polish / overflow protection ---------------- */
@media (min-width: 1181px) {
  .pfg-featured-image .pfg-container {
    width: min(1280px, calc(100% - 48px));
  }

  .pfg-single-hero__inner {
    max-width: 1180px;
  }

  .pfg-article-card {
    max-width: 880px;
  }

  .pfg-sidebar,
  .pfg-blog-sidebar {
    align-self: start;
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .pfg-container {
    width: min(1280px, calc(100% - 42px));
  }

  .pfg-single-body {
    grid-template-columns: minmax(0, 820px) 320px;
    gap: 34px;
  }

  .pfg-blog-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
  }

  .pfg-post-card h2 {
    font-size: clamp(21px, 1.85vw, 26px) !important;
  }
}

@media (max-width: 920px) {
  .pfg-post-grid {
    grid-template-columns: 1fr;
  }

  .pfg-container {
    width: min(100% - 32px, 1120px);
  }
}

.pfg-page,
.pfg-page * {
  box-sizing: border-box;
}

.pfg-page img,
.pfg-page video,
.pfg-page iframe {
  max-width: 100%;
}


/* ---------------- v1.4 PolymersIQ-inspired readability polish ---------------- */
@media (min-width: 1181px) {
  .pfg-container {
    width: min(1360px, calc(100% - 56px));
  }

  .pfg-single-body {
    grid-template-columns: minmax(0, 800px) 320px;
    gap: 36px;
  }

  .pfg-featured-image .pfg-container {
    width: min(1100px, calc(100% - 56px));
  }
}

.pfg-single-hero {
  padding: clamp(36px, 5vw, 62px) 0 clamp(30px, 4vw, 48px);
}

.pfg-single-title {
  max-width: 860px;
  font-size: clamp(34px, 4.8vw, 58px) !important;
}

.pfg-single-excerpt {
  max-width: 760px;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.68;
}

.pfg-featured-image__wrap {
  max-height: 430px;
  border-radius: 0 0 24px 24px;
}

.pfg-featured-image img {
  min-height: 230px;
}

.pfg-single-body {
  padding-top: 40px;
}

.pfg-article-card {
  border-radius: 20px;
  padding: clamp(26px, 3.4vw, 42px);
  box-shadow: 0 14px 38px rgba(10,31,68,.07);
}

.pfg-entry-content p {
  font-size: 17px !important;
  line-height: 1.78 !important;
  letter-spacing: -.005em;
}

.pfg-entry-content > p:first-of-type::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.pfg-entry-content h2 {
  margin-top: 2.65rem !important;
  font-size: clamp(26px, 2.6vw, 34px) !important;
  line-height: 1.18 !important;
}

.pfg-entry-content h3 {
  margin-top: 2rem !important;
  font-size: clamp(21px, 1.9vw, 25px) !important;
}

.pfg-key-card {
  margin-bottom: 24px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(232,80,10,.24);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(10,31,68,.07);
}

.pfg-key-card__label {
  margin-bottom: 14px;
  color: var(--pfg-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pfg-key-card ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.pfg-key-card li {
  position: relative;
  margin: 0 !important;
  padding-left: 28px;
  color: var(--pfg-ink);
  font-size: 16px;
  line-height: 1.62;
}

.pfg-key-card li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: .05em;
  color: var(--pfg-orange);
  font-size: 15px;
  line-height: 1;
}

.pfg-side-card {
  border-radius: 19px;
  box-shadow: 0 14px 38px rgba(10,31,68,.07);
}

.pfg-toc-list {
  max-height: 50vh;
  padding: 10px;
}

.pfg-toc-link {
  padding: 8px 10px;
  font-size: 12.5px;
}

.pfg-mini-cta {
  padding: 20px;
}

.pfg-mini-cta h3 {
  font-size: 21px;
}

.pfg-listing-hero {
  padding: clamp(42px, 5.2vw, 72px) 0 clamp(36px, 4vw, 54px);
}

.pfg-listing-hero h1 {
  font-size: clamp(36px, 5.2vw, 58px) !important;
}

.pfg-blog-layout {
  padding-top: 38px;
}

.pfg-project-cta {
  margin-top: 24px;
}

@media (max-width: 1180px) {
  .pfg-key-card {
    margin-bottom: 22px;
  }
}

@media (max-width: 760px) {
  .pfg-single-title,
  .pfg-listing-hero h1 {
    font-size: 32px !important;
  }

  .pfg-key-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .pfg-key-card li {
    font-size: 15px;
    line-height: 1.58;
  }
}


/* ---------------- v1.5 left-side article spacing polish ---------------- */
/* Goal: make the article body feel like the clean PolymersIQ reference while keeping Pioneers colors. */
@media (min-width: 1181px) {
  .pfg-single-body {
    width: min(1180px, calc(100% - 64px));
    grid-template-columns: minmax(0, 780px) 320px;
    gap: 42px;
    padding-top: 36px;
    margin-inline: auto;
  }

  .pfg-main-column {
    width: 100%;
    max-width: 780px;
  }

  .pfg-article-card {
    width: 100%;
    max-width: 780px;
    padding: 46px 52px;
  }

  .pfg-entry-content {
    max-width: 100%;
  }

  .pfg-featured-image .pfg-container {
    width: min(1080px, calc(100% - 64px));
  }
}

@media (min-width: 1381px) {
  .pfg-single-body {
    grid-template-columns: minmax(0, 800px) 330px;
    gap: 46px;
    width: min(1210px, calc(100% - 72px));
  }

  .pfg-main-column,
  .pfg-article-card {
    max-width: 800px;
  }

  .pfg-article-card {
    padding: 48px 56px;
  }
}

.pfg-article-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));
}

.pfg-article-card .pfg-key-card {
  margin: 0 0 34px;
}

.pfg-key-card--inside {
  border-color: rgba(232,80,10,.26);
  box-shadow: none;
  background:
    radial-gradient(circle at 0 0, rgba(232,80,10,.055), transparent 18rem),
    #fff;
}

.pfg-article-rule {
  height: 1px;
  margin: 0 0 34px;
  background: linear-gradient(90deg, rgba(232,80,10,.28), rgba(27,111,216,.12), transparent);
}

.pfg-entry-content h2:first-child {
  margin-top: 0 !important;
}

.pfg-entry-content p {
  max-width: 680px;
  margin-top: 1.18rem !important;
}

.pfg-entry-content h2,
.pfg-entry-content h3,
.pfg-entry-content h4,
.pfg-entry-content ul,
.pfg-entry-content ol,
.pfg-entry-content blockquote,
.pfg-entry-content figure,
.pfg-entry-content .wp-block-table,
.pfg-table-scroll {
  max-width: 100%;
}

.pfg-entry-content h2 {
  margin-top: 2.5rem !important;
  padding-bottom: .62rem;
}

.pfg-entry-content h2::after {
  width: 58px;
  height: 3px;
  margin-top: .58rem;
}

@media (max-width: 1180px) {
  .pfg-single-body {
    width: min(100% - 40px, 920px);
    margin-inline: auto;
  }

  .pfg-main-column,
  .pfg-article-card {
    max-width: 100%;
  }

  .pfg-entry-content p {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .pfg-single-body {
    width: min(100% - 24px, 920px);
    padding-top: 26px;
  }

  .pfg-article-card {
    padding: 24px 18px;
  }

  .pfg-article-card .pfg-key-card {
    margin-bottom: 26px;
  }

  .pfg-article-rule {
    margin-bottom: 26px;
  }
}


/* ---------------- v1.6 PolymersIQ-reference article system ---------------- */
/* Goal: match the clean technical article structure of the reference site while keeping Pioneers Fiberglass brand colors. */
body.single-post {
  background: #F6F3EE;
}

body.single-post .pfg-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(27,111,216,.045), transparent 30rem),
    linear-gradient(180deg, #F8FAFC 0%, #F6F3EE 42%, #F6F3EE 100%);
}

@media (min-width: 1181px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(1240px, calc(100% - 64px));
    display: grid;
    grid-template-columns: minmax(0, 860px) 320px;
    gap: 34px;
    justify-content: center;
    align-items: start;
    padding-top: 42px;
  }

  body.single-post .pfg-main-column {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  body.single-post .pfg-sidebar {
    top: 96px;
  }
}

@media (min-width: 1381px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(1260px, calc(100% - 80px));
    grid-template-columns: minmax(0, 870px) 330px;
    gap: 36px;
  }

  body.single-post .pfg-main-column {
    max-width: 870px;
  }
}

body.single-post .pfg-key-card {
  width: 100%;
  margin: 0;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(232,80,10,.22);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 18px 46px rgba(10,31,68,.07);
}

body.single-post .pfg-key-card__label {
  margin: 0 0 16px;
  color: var(--pfg-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.single-post .pfg-key-card ul {
  display: grid;
  gap: 13px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

body.single-post .pfg-key-card li {
  position: relative;
  margin: 0 !important;
  padding-left: 30px;
  max-width: 760px;
  color: var(--pfg-ink);
  font-size: 16.5px;
  line-height: 1.66;
}

body.single-post .pfg-key-card li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: .12em;
  color: var(--pfg-orange);
  font-size: 14px;
}

body.single-post .pfg-article-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(46px, 5vw, 70px) clamp(32px, 5vw, 68px);
  border: 1px solid rgba(10,31,68,.07);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 18px 48px rgba(10,31,68,.065);
}

body.single-post .pfg-entry-content {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

body.single-post .pfg-entry-content p,
body.single-post .pfg-entry-content li {
  color: var(--pfg-ink) !important;
  font-size: 17px !important;
  line-height: 1.82 !important;
  letter-spacing: -.006em;
}

body.single-post .pfg-entry-content p {
  max-width: 100%;
  margin-top: 1.32rem !important;
}

body.single-post .pfg-entry-content > p:first-of-type::first-letter {
  float: left;
  margin: .06em .16em 0 0;
  color: var(--pfg-orange);
  font-family: var(--pfg-font-display);
  font-size: 4.1rem;
  font-weight: 650;
  line-height: .82;
}

body.single-post .pfg-entry-content h2 {
  margin: 0 0 1.35rem !important;
  padding: 0 0 .9rem;
  border-bottom: 2px solid var(--pfg-orange);
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(28px, 2.6vw, 38px) !important;
  line-height: 1.14 !important;
  letter-spacing: -.028em;
  font-weight: 650 !important;
}

body.single-post .pfg-entry-content h2:not(:first-child) {
  margin-top: 4rem !important;
}

body.single-post .pfg-entry-content h2::after {
  display: none;
}

body.single-post .pfg-entry-content h3 {
  display: block !important;
  margin: 2.25rem 0 .85rem !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(22px, 2vw, 27px) !important;
  line-height: 1.22 !important;
  letter-spacing: -.018em;
  font-weight: 650 !important;
}

body.single-post .pfg-entry-content h3::before {
  display: none !important;
}

body.single-post .pfg-entry-content h4 {
  margin-top: 1.85rem !important;
  color: var(--pfg-ink) !important;
}

body.single-post .pfg-entry-content ul,
body.single-post .pfg-entry-content ol {
  margin-top: 1.25rem !important;
}

body.single-post .pfg-entry-content blockquote,
body.single-post .pfg-entry-content figure,
body.single-post .pfg-entry-content .wp-block-table,
body.single-post .pfg-table-scroll {
  width: 100%;
  max-width: 100%;
}

body.single-post .pfg-table-scroll,
body.single-post .pfg-entry-content .wp-block-table {
  margin-top: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(10,31,68,.055);
}

body.single-post .pfg-entry-content th {
  background: var(--pfg-navy) !important;
  border-bottom-color: var(--pfg-orange) !important;
}

body.single-post .pfg-entry-content tr:nth-child(even) td {
  background: #F5F6F8 !important;
}

body.single-post .pfg-side-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(10,31,68,.07);
}

body.single-post .pfg-side-card__header {
  padding: 15px 16px;
}

body.single-post .pfg-toc-list {
  max-height: 48vh;
  padding: 12px;
}

body.single-post .pfg-toc-link {
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  color: rgba(11,22,41,.68) !important;
  font-size: 12.5px;
  font-weight: 700;
}

body.single-post .pfg-toc-link:hover,
body.single-post .pfg-toc-link.active {
  border-left-color: var(--pfg-orange);
  background: rgba(232,80,10,.08);
  color: var(--pfg-orange) !important;
}

body.single-post .pfg-toc-link.is-h3 {
  margin-left: 12px;
  color: rgba(11,22,41,.54) !important;
  font-size: 12px;
  font-weight: 650;
}

body.single-post .pfg-mini-cta {
  padding: 24px;
  background:
    radial-gradient(circle at 92% 100%, rgba(232,80,10,.34), transparent 10rem),
    linear-gradient(145deg, #071225 0%, var(--pfg-navy) 100%);
}

body.single-post .pfg-mini-cta h3 {
  font-size: 22px;
  line-height: 1.16;
}

body.single-post .pfg-project-cta,
body.single-post .pfg-tags-card,
body.single-post .pfg-footer-strip,
body.single-post .pfg-comments-wrap {
  margin-top: 0;
}

body.single-post .pfg-featured-image__wrap {
  max-height: 390px;
  border-radius: 0 0 22px 22px;
}

@media (max-width: 1180px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(100% - 40px, 920px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    margin-inline: auto;
  }

  body.single-post .pfg-main-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 100%;
  }

  body.single-post .pfg-entry-content {
    max-width: 740px;
  }
}

@media (max-width: 760px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(100% - 24px, 920px);
    padding-top: 26px;
    gap: 20px;
  }

  body.single-post .pfg-key-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  body.single-post .pfg-key-card li {
    font-size: 15px;
    line-height: 1.62;
  }

  body.single-post .pfg-article-card {
    padding: 34px 20px;
    border-radius: 18px;
  }

  body.single-post .pfg-entry-content {
    max-width: 100%;
  }

  body.single-post .pfg-entry-content p,
  body.single-post .pfg-entry-content li {
    font-size: 16px !important;
    line-height: 1.78 !important;
  }

  body.single-post .pfg-entry-content > p:first-of-type::first-letter {
    font-size: 3.25rem;
    margin-right: .14em;
  }

  body.single-post .pfg-entry-content h2 {
    font-size: 28px !important;
  }
}


/* ---------------- v1.7 FAQ accordion like PolymersIQ reference ---------------- */
body.single-post .pfg-faq-section {
  width: 100%;
  margin: 0;
}

body.single-post .pfg-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 22px;
}

body.single-post .pfg-section-heading > span {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: var(--pfg-orange);
  flex: 0 0 auto;
}

body.single-post .pfg-section-heading h2 {
  margin: 0 !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(28px, 2.6vw, 38px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.028em;
  font-weight: 650 !important;
}

body.single-post .pfg-faq-list {
  display: grid;
  gap: 12px;
}

body.single-post .pfg-faq-item {
  overflow: hidden;
  border: 1px solid rgba(10,31,68,.08);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(10,31,68,.06);
}

body.single-post .pfg-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  color: var(--pfg-ink);
  font-family: var(--pfg-font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

body.single-post .pfg-faq-item summary::-webkit-details-marker {
  display: none;
}

body.single-post .pfg-faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

body.single-post .pfg-faq-icon::before,
body.single-post .pfg-faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--pfg-orange);
  transform: translate(-50%, -50%);
  transition: transform var(--pfg-ease), opacity var(--pfg-ease);
}

body.single-post .pfg-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

body.single-post .pfg-faq-item[open] .pfg-faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

body.single-post .pfg-faq-item[open] summary {
  border-bottom: 1px solid rgba(10,31,68,.08);
}

body.single-post .pfg-faq-answer {
  padding: 0 22px 20px;
}

body.single-post .pfg-faq-answer p {
  max-width: 760px;
  margin: 0;
  color: var(--pfg-text);
  font-family: var(--pfg-font-body);
  font-size: 16px;
  line-height: 1.72;
}

@media (max-width: 760px) {
  body.single-post .pfg-section-heading {
    gap: 10px;
    margin-bottom: 16px;
  }

  body.single-post .pfg-section-heading > span {
    width: 30px;
  }

  body.single-post .pfg-section-heading h2 {
    font-size: 27px !important;
  }

  body.single-post .pfg-faq-item summary {
    padding: 16px 16px;
    font-size: 15px;
  }

  body.single-post .pfg-faq-answer {
    padding: 0 16px 18px;
  }

  body.single-post .pfg-faq-answer p {
    font-size: 15px;
  }
}


/* ==========================================================
   v1.8 - PolymersIQ-style article refinement
   Right TOC, typography, heading rhythm, and formula blocks
   ========================================================== */

body.single-post .pfg-single-body {
  align-items: flex-start;
}

body.single-post .pfg-main-column {
  min-width: 0;
}

body.single-post .pfg-article-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(48px, 5vw, 72px) clamp(38px, 5vw, 62px);
  border: 1px solid rgba(10, 31, 68, 0.075);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(10, 31, 68, 0.055);
}

body.single-post .pfg-key-card {
  max-width: 760px;
  margin-inline: auto;
}

body.single-post .pfg-entry-content {
  max-width: 100%;
}

body.single-post .pfg-entry-content p,
body.single-post .pfg-entry-content li {
  font-family: var(--pfg-font-body) !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
  letter-spacing: -0.01em;
}

body.single-post .pfg-entry-content h2 {
  margin-top: 4.25rem !important;
  margin-bottom: 1.35rem !important;
  padding-bottom: .85rem;
  border-bottom: 2px solid var(--pfg-orange);
  font-size: clamp(29px, 2.4vw, 39px) !important;
  letter-spacing: -0.035em;
}

body.single-post .pfg-entry-content h2:first-child {
  margin-top: 0 !important;
}

body.single-post .pfg-entry-content h3 {
  margin-top: 2.6rem !important;
  margin-bottom: .9rem !important;
  font-size: clamp(22px, 1.8vw, 28px) !important;
  letter-spacing: -0.022em;
}

body.single-post .pfg-entry-content h4 {
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

/* Right sidebar contents card closer to the PolymersIQ reference */
body.single-post .pfg-sidebar {
  top: 104px;
}

body.single-post .pfg-toc-card {
  overflow: visible;
  border-radius: 18px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  background: #fff;
  box-shadow: 0 15px 36px rgba(10, 31, 68, 0.06);
}

body.single-post .pfg-toc-card .pfg-side-card__header {
  position: relative;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

body.single-post .pfg-toc-card .pfg-side-card__header::after {
  content: '⌄';
  margin-left: auto;
  color: rgba(100,116,139,.8);
  font-size: 13px;
  font-weight: 900;
  transform: translateY(-1px);
}

body.single-post .pfg-toc-card .pfg-side-dot {
  width: 15px;
  height: 15px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.single-post .pfg-toc-card .pfg-side-dot::before {
  content: '☰';
  color: var(--pfg-orange);
  font-size: 13px;
  line-height: 1;
  transform: scaleX(.85);
}

body.single-post .pfg-toc-card .pfg-side-label {
  color: #8B95A5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

body.single-post .pfg-toc-card .pfg-toc-list {
  max-height: none;
  overflow: visible;
  padding: 13px 14px 18px;
}

body.single-post .pfg-toc-card .pfg-toc-link {
  border-left: 0;
  border-radius: 9px;
  padding: 8px 10px;
  color: rgba(11,22,41,.72) !important;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  background: transparent;
}

body.single-post .pfg-toc-card .pfg-toc-link:hover,
body.single-post .pfg-toc-card .pfg-toc-link.active {
  border-left: 3px solid var(--pfg-orange);
  background: rgba(232, 80, 10, .09);
  color: var(--pfg-orange) !important;
  font-weight: 800;
}

body.single-post .pfg-toc-card .pfg-toc-link.is-h3 {
  margin-left: 14px;
  padding-top: 7px;
  padding-bottom: 7px;
  color: rgba(11,22,41,.58) !important;
  font-size: 12.8px;
  font-weight: 600;
}

body.single-post .pfg-toc-card .pfg-toc-link.is-h3:hover,
body.single-post .pfg-toc-card .pfg-toc-link.is-h3.active {
  color: var(--pfg-orange) !important;
}

/* Professional formula / calculation blocks for Gutenberg Shortcode, HTML, Quote, and Preformatted blocks */
body.single-post .pfg-entry-content .pfg-formula-box,
body.single-post .pfg-entry-content blockquote.is-style-pfg-formula,
body.single-post .pfg-entry-content .wp-block-quote.is-style-pfg-formula {
  margin: 2rem 0 2.15rem;
  padding: 22px 28px 22px 30px;
  border: 0;
  border-left: 4px solid var(--pfg-orange);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(232,80,10,.09) 0%, rgba(232,80,10,.035) 44%, rgba(255,255,255,.72) 100%);
  box-shadow: inset 0 0 0 1px rgba(232,80,10,.06);
}

body.single-post .pfg-entry-content .pfg-formula-title {
  display: block;
  margin: 0 0 .6rem;
  color: var(--pfg-orange);
  font-family: var(--pfg-font-body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.single-post .pfg-entry-content .pfg-formula-content,
body.single-post .pfg-entry-content .pfg-formula-content p,
body.single-post .pfg-entry-content blockquote.is-style-pfg-formula p,
body.single-post .pfg-entry-content .wp-block-quote.is-style-pfg-formula p {
  margin: 0 !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(18px, 1.7vw, 22px) !important;
  font-style: italic;
  font-weight: 500;
  line-height: 1.58 !important;
}

body.single-post .pfg-entry-content .pfg-formula-note {
  display: block;
  margin-top: .8rem;
  color: var(--pfg-muted);
  font-family: var(--pfg-font-body);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

body.single-post .pfg-entry-content pre,
body.single-post .pfg-entry-content .wp-block-preformatted {
  white-space: pre-wrap;
  overflow-x: auto;
  margin: 2rem 0;
  padding: 22px 28px;
  border-left: 4px solid var(--pfg-orange);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(232,80,10,.09), rgba(255,255,255,.85));
  color: var(--pfg-ink);
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(18px, 1.6vw, 21px);
  font-style: italic;
  line-height: 1.62;
}

body.single-post .pfg-entry-content code {
  border-radius: 7px;
  background: rgba(232,80,10,.08);
  color: var(--pfg-orange-2);
  padding: .12em .36em;
  font-size: .92em;
}

@media (max-width: 1180px) {
  body.single-post .pfg-toc-card .pfg-toc-list {
    max-height: 52vh;
    overflow: auto;
  }
}

@media (max-width: 980px) {
  body.single-post .pfg-article-card,
  body.single-post .pfg-key-card {
    max-width: none;
  }

  body.single-post .pfg-toc-card .pfg-toc-list {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  body.single-post .pfg-article-card {
    padding: 32px 20px;
    border-radius: 18px;
  }

  body.single-post .pfg-entry-content p,
  body.single-post .pfg-entry-content li {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  body.single-post .pfg-entry-content .pfg-formula-box,
  body.single-post .pfg-entry-content blockquote.is-style-pfg-formula,
  body.single-post .pfg-entry-content .wp-block-quote.is-style-pfg-formula,
  body.single-post .pfg-entry-content pre,
  body.single-post .pfg-entry-content .wp-block-preformatted {
    padding: 18px 18px 18px 20px;
  }
}

/* ==========================================================
   v1.9 - Final desktop padding + unlocked scrollable TOC
   Fixes: article left spacing/card width, right contents scroll, and sticky sidebar behavior.
   ========================================================== */

body.single-post .pfg-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(27, 111, 216, .04), transparent 34rem),
    linear-gradient(180deg, #F8FAFC 0%, #F6F3EE 36%, #F6F3EE 100%) !important;
}

@media (min-width: 1181px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(1200px, calc(100% - 72px)) !important;
    grid-template-columns: minmax(0, 800px) 330px !important;
    gap: 40px !important;
    justify-content: center !important;
    align-items: start !important;
    padding-top: 42px !important;
  }

  body.single-post .pfg-main-column {
    width: 100% !important;
    max-width: 800px !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 26px !important;
  }

  body.single-post article.pfg-article-card,
  body.single-post .pfg-article-card {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 58px 64px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(10, 31, 68, .08) !important;
    background: #fff !important;
    box-shadow: 0 18px 46px rgba(10, 31, 68, .055) !important;
  }

  body.single-post .pfg-entry-content {
    width: 100% !important;
    max-width: 672px !important;
    margin: 0 auto !important;
    overflow-wrap: break-word !important;
  }

  body.single-post .pfg-key-card {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 30px 34px !important;
  }

  body.single-post .pfg-featured-image .pfg-container {
    width: min(1120px, calc(100% - 72px)) !important;
  }
}

@media (min-width: 1480px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(1220px, calc(100% - 90px)) !important;
    grid-template-columns: minmax(0, 820px) 336px !important;
    gap: 42px !important;
  }

  body.single-post .pfg-main-column,
  body.single-post article.pfg-article-card,
  body.single-post .pfg-article-card,
  body.single-post .pfg-key-card {
    max-width: 820px !important;
  }

  body.single-post article.pfg-article-card,
  body.single-post .pfg-article-card {
    padding-left: 66px !important;
    padding-right: 66px !important;
  }

  body.single-post .pfg-entry-content {
    max-width: 688px !important;
  }
}

body.single-post .pfg-entry-content p,
body.single-post .pfg-entry-content li {
  font-size: 17px !important;
  line-height: 1.82 !important;
  letter-spacing: -.008em !important;
}

body.single-post .pfg-entry-content p {
  margin: 1.35rem 0 0 !important;
}

body.single-post .pfg-entry-content h2 {
  margin-top: 4.1rem !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: .9rem !important;
  border-bottom: 2px solid var(--pfg-orange) !important;
  color: var(--pfg-ink) !important;
  font-size: clamp(29px, 2.25vw, 38px) !important;
  line-height: 1.16 !important;
}

body.single-post .pfg-entry-content h2:first-child {
  margin-top: 0 !important;
}

body.single-post .pfg-entry-content h3 {
  margin-top: 2.5rem !important;
  margin-bottom: .8rem !important;
  color: var(--pfg-ink) !important;
  font-size: clamp(22px, 1.75vw, 27px) !important;
}

body.single-post .pfg-entry-content h3::before {
  display: none !important;
}

/* Keep the first paragraph drop-cap elegant but do not let it destroy left alignment. */
body.single-post .pfg-entry-content > p:first-of-type::first-letter {
  float: left !important;
  margin: .08em .16em 0 0 !important;
  color: var(--pfg-orange) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: 3.9rem !important;
  font-weight: 650 !important;
  line-height: .82 !important;
}

/* Right Contents card: fixed professional height with its own scroll, so it is not locked. */
@media (min-width: 981px) {
  body.single-post .pfg-sidebar {
    position: sticky !important;
    top: 104px !important;
    align-self: start !important;
    max-height: calc(100vh - 124px) !important;
    overflow: visible !important;
  }

  body.single-post .pfg-toc-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    max-height: min(58vh, 560px) !important;
    border-radius: 18px !important;
  }

  body.single-post .pfg-toc-card .pfg-side-card__header {
    flex: 0 0 auto !important;
    min-height: 54px !important;
  }

  body.single-post .pfg-toc-card .pfg-toc-list {
    flex: 1 1 auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 14px 18px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 80, 10, .55) rgba(10, 31, 68, .06);
  }

  body.single-post .pfg-toc-card .pfg-toc-list::-webkit-scrollbar {
    width: 7px;
  }

  body.single-post .pfg-toc-card .pfg-toc-list::-webkit-scrollbar-track {
    background: rgba(10, 31, 68, .05);
    border-radius: 999px;
  }

  body.single-post .pfg-toc-card .pfg-toc-list::-webkit-scrollbar-thumb {
    background: rgba(232, 80, 10, .58);
    border-radius: 999px;
  }
}

body.single-post .pfg-toc-card .pfg-toc-link {
  display: block !important;
  border-left: 3px solid transparent !important;
  border-radius: 9px !important;
  padding: 8px 10px !important;
  color: rgba(11, 22, 41, .72) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

body.single-post .pfg-toc-card .pfg-toc-link:hover,
body.single-post .pfg-toc-card .pfg-toc-link.active {
  border-left-color: var(--pfg-orange) !important;
  background: rgba(232, 80, 10, .09) !important;
  color: var(--pfg-orange) !important;
}

body.single-post .pfg-toc-card .pfg-toc-link.is-h3 {
  margin-left: 14px !important;
  color: rgba(11, 22, 41, .56) !important;
  font-size: 12.4px !important;
  font-weight: 600 !important;
}

/* Formula/calculation blocks: maintain the PolymersIQ-style custom technical note in Pioneers colors. */
body.single-post .pfg-entry-content .pfg-formula-box,
body.single-post .pfg-entry-content blockquote.is-style-pfg-formula,
body.single-post .pfg-entry-content .wp-block-quote.is-style-pfg-formula,
body.single-post .pfg-entry-content pre,
body.single-post .pfg-entry-content .wp-block-preformatted {
  max-width: 100% !important;
  margin: 2rem 0 2.2rem !important;
  border-left: 4px solid var(--pfg-orange) !important;
  border-radius: 0 16px 16px 0 !important;
  background: linear-gradient(90deg, rgba(232, 80, 10, .09) 0%, rgba(232, 80, 10, .035) 46%, rgba(255, 255, 255, .76) 100%) !important;
}

@media (max-width: 1180px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(100% - 40px, 920px) !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  body.single-post article.pfg-article-card,
  body.single-post .pfg-article-card,
  body.single-post .pfg-key-card {
    max-width: 100% !important;
  }

  body.single-post .pfg-entry-content {
    max-width: 720px !important;
    margin-inline: auto !important;
  }

  body.single-post .pfg-toc-card .pfg-toc-list {
    max-height: 46vh !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 760px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(100% - 24px, 920px) !important;
  }

  body.single-post article.pfg-article-card,
  body.single-post .pfg-article-card {
    padding: 32px 20px !important;
  }

  body.single-post .pfg-entry-content {
    max-width: 100% !important;
  }

  body.single-post .pfg-entry-content > p:first-of-type::first-letter {
    font-size: 3.2rem !important;
  }
}

/* =========================================================
   PFG FINAL POLISH v2.0 — PolymersIQ-style article system
   Purpose: professional article card spacing, stable sticky sidebar,
   clean TOC behavior, compact CTA, and reliable desktop/mobile layout.
   ========================================================= */

body.single-post {
  --pfg-page-bg-final: #F4F2EC;
  --pfg-card-final: #FFFFFF;
  --pfg-soft-orange-final: rgba(232, 80, 10, 0.10);
  --pfg-soft-line-final: rgba(10, 31, 68, 0.10);
  background: var(--pfg-page-bg-final) !important;
}

body.single-post .pfg-page {
  background:
    radial-gradient(circle at 72% 4%, rgba(27,111,216,.07), transparent 28rem),
    linear-gradient(180deg, #F8FAFC 0%, var(--pfg-page-bg-final) 34%, var(--pfg-page-bg-final) 100%) !important;
}

/* Overall article grid: controlled like the PolymersIQ reference, not full-width. */
body.single-post .pfg-container.pfg-single-body {
  width: min(1280px, calc(100% - 72px)) !important;
  max-width: 1280px !important;
  margin: clamp(34px, 4vw, 58px) auto 72px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 840px) 340px !important;
  gap: 34px !important;
  align-items: start !important;
  justify-content: center !important;
  padding: 0 !important;
}

body.single-post .pfg-main-column {
  width: 100% !important;
  max-width: 840px !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

/* Key takeaways card: same clean technical feel as reference, using Pioneers orange/navy. */
body.single-post .pfg-key-card {
  width: 100% !important;
  max-width: 840px !important;
  margin: 0 !important;
  padding: clamp(24px, 2.7vw, 34px) clamp(26px, 3.2vw, 42px) !important;
  background: #fff !important;
  border: 1px solid rgba(232, 80, 10, 0.24) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 45px rgba(10, 31, 68, 0.06) !important;
}

body.single-post .pfg-key-card__label {
  margin-bottom: 16px !important;
  color: var(--pfg-orange) !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

body.single-post .pfg-key-card ul {
  display: grid !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.single-post .pfg-key-card li {
  position: relative !important;
  margin: 0 !important;
  padding-left: 28px !important;
  color: var(--pfg-ink) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
}

body.single-post .pfg-key-card li::before {
  content: '✦' !important;
  position: absolute !important;
  left: 0 !important;
  top: .12em !important;
  color: var(--pfg-orange) !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

/* Main article card: clean white locked card, strong inner padding, controlled reading width. */
body.single-post article.pfg-article-card,
body.single-post .pfg-article-card {
  width: 100% !important;
  max-width: 840px !important;
  margin: 0 !important;
  padding: clamp(42px, 5vw, 64px) clamp(32px, 5vw, 58px) !important;
  background: var(--pfg-card-final) !important;
  border: 1px solid rgba(10,31,68,.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(10, 31, 68, .055) !important;
  overflow: hidden !important;
}

body.single-post .pfg-entry-content {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.single-post .pfg-entry-content > * {
  max-width: 100% !important;
}

body.single-post .pfg-entry-content p,
body.single-post .pfg-entry-content li {
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 18px !important;
  line-height: 1.82 !important;
  font-weight: 450 !important;
  letter-spacing: -0.01em !important;
}

body.single-post .pfg-entry-content p {
  margin: 0 0 28px !important;
}

body.single-post .pfg-entry-content strong,
body.single-post .pfg-entry-content b {
  font-weight: 850 !important;
  color: #06142B !important;
}

body.single-post .pfg-entry-content h2 {
  margin: clamp(48px, 5.5vw, 72px) 0 26px !important;
  padding: 0 0 16px !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(31px, 3vw, 42px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  border-bottom: 2px solid var(--pfg-orange) !important;
}

body.single-post .pfg-entry-content h2:first-child {
  margin-top: 0 !important;
}

body.single-post .pfg-entry-content h2::after {
  display: none !important;
}

body.single-post .pfg-entry-content h3 {
  position: relative !important;
  margin: 42px 0 18px !important;
  padding-left: 0 !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(24px, 2vw, 30px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}

body.single-post .pfg-entry-content h3::before {
  display: none !important;
}

body.single-post .pfg-entry-content h4 {
  margin: 30px 0 14px !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 19px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

body.single-post .pfg-entry-content > p:first-of-type::first-letter {
  float: left !important;
  margin: 10px 12px 0 0 !important;
  color: var(--pfg-orange) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: 72px !important;
  line-height: .72 !important;
  font-weight: 700 !important;
}

body.single-post .pfg-entry-content ul,
body.single-post .pfg-entry-content ol {
  margin: 0 0 30px 1.15em !important;
  padding: 0 !important;
}

body.single-post .pfg-entry-content li {
  margin: 0 0 12px !important;
  padding-left: 6px !important;
}

body.single-post .pfg-entry-content li::marker {
  color: var(--pfg-orange) !important;
  font-weight: 850 !important;
}

/* Tables and formula blocks remain inside the polished reading width. */
body.single-post .pfg-entry-content .wp-block-table,
body.single-post .pfg-entry-content .pfg-table-scroll,
body.single-post .pfg-entry-content table,
body.single-post .pfg-entry-content .pfg-formula-box,
body.single-post .pfg-entry-content blockquote.is-style-pfg-formula,
body.single-post .pfg-entry-content .wp-block-quote.is-style-pfg-formula,
body.single-post .pfg-entry-content pre,
body.single-post .pfg-entry-content .wp-block-preformatted {
  width: 100% !important;
  max-width: 100% !important;
}

body.single-post .pfg-entry-content .wp-block-table table,
body.single-post .pfg-entry-content table {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 36px rgba(10,31,68,.08) !important;
}

body.single-post .pfg-entry-content th {
  background: #081226 !important;
  color: #fff !important;
  border-bottom: 3px solid var(--pfg-orange) !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

body.single-post .pfg-entry-content .pfg-formula-box,
body.single-post .pfg-entry-content blockquote.is-style-pfg-formula,
body.single-post .pfg-entry-content .wp-block-quote.is-style-pfg-formula {
  margin: 30px 0 !important;
  padding: 26px 30px !important;
  border-left: 4px solid var(--pfg-orange) !important;
  border-radius: 0 18px 18px 0 !important;
  background: linear-gradient(90deg, rgba(232,80,10,.08), rgba(255,255,255,.92)) !important;
  box-shadow: none !important;
}

body.single-post .pfg-entry-content .pfg-formula-content,
body.single-post .pfg-entry-content .pfg-formula-content p,
body.single-post .pfg-entry-content blockquote.is-style-pfg-formula p,
body.single-post .pfg-entry-content .wp-block-quote.is-style-pfg-formula p {
  margin: 0 !important;
  color: #081226 !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(20px, 2vw, 24px) !important;
  font-style: italic !important;
  line-height: 1.55 !important;
}

/* Sidebar: sticky like the reference, but never locked or cut. */
body.single-post .pfg-sidebar {
  position: sticky !important;
  top: 118px !important;
  align-self: start !important;
  width: 340px !important;
  max-width: 340px !important;
  max-height: calc(100vh - 138px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 6px 18px 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(232,80,10,.38) transparent !important;
  overscroll-behavior: contain !important;
}

body.single-post .pfg-sidebar::-webkit-scrollbar {
  width: 6px !important;
}

body.single-post .pfg-sidebar::-webkit-scrollbar-track {
  background: transparent !important;
}

body.single-post .pfg-sidebar::-webkit-scrollbar-thumb {
  background: rgba(232,80,10,.36) !important;
  border-radius: 999px !important;
}

body.single-post .pfg-side-card {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid rgba(10,31,68,.08) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(10,31,68,.075) !important;
  overflow: hidden !important;
}

body.single-post .pfg-toc-card {
  flex: 0 0 auto !important;
  max-height: min(470px, calc(100vh - 190px)) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

body.single-post .pfg-toc-card .pfg-side-card__header {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 0 22px !important;
  border-bottom: 1px solid rgba(10,31,68,.08) !important;
  background: #fff !important;
}

body.single-post .pfg-toc-card .pfg-side-card__header::after {
  content: '⌄' !important;
  margin-left: auto !important;
  color: #7B8798 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

body.single-post .pfg-toc-card .pfg-side-dot {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post .pfg-toc-card .pfg-side-dot::before {
  content: '☰' !important;
  display: inline-block !important;
  color: var(--pfg-orange) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transform: scaleX(.85) !important;
}

body.single-post .pfg-toc-card .pfg-side-label {
  color: #7B8798 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

body.single-post .pfg-toc-card .pfg-toc-list {
  flex: 1 1 auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 18px 20px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(232,80,10,.36) transparent !important;
}

body.single-post .pfg-toc-card .pfg-toc-list::-webkit-scrollbar {
  width: 5px !important;
}

body.single-post .pfg-toc-card .pfg-toc-list::-webkit-scrollbar-track {
  background: transparent !important;
}

body.single-post .pfg-toc-card .pfg-toc-list::-webkit-scrollbar-thumb {
  background: rgba(232,80,10,.36) !important;
  border-radius: 999px !important;
}

body.single-post .pfg-toc-card .pfg-toc-list li {
  margin: 0 !important;
  list-style: none !important;
}

body.single-post .pfg-toc-card .pfg-toc-link {
  display: block !important;
  padding: 9px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: #4B5565 !important;
  background: transparent !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 14px !important;
  line-height: 1.34 !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  transition: background var(--pfg-ease), color var(--pfg-ease), border-color var(--pfg-ease) !important;
}

body.single-post .pfg-toc-card .pfg-toc-link:hover,
body.single-post .pfg-toc-card .pfg-toc-link.active {
  color: var(--pfg-orange) !important;
  background: rgba(232,80,10,.09) !important;
  border-color: rgba(232,80,10,.14) !important;
}

body.single-post .pfg-toc-card .pfg-toc-link.active {
  border-left: 3px solid var(--pfg-orange) !important;
  font-weight: 800 !important;
}

body.single-post .pfg-toc-card .pfg-toc-link.is-h3 {
  margin-left: 14px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.single-post .pfg-toc-card .pfg-toc-link.is-h3:hover,
body.single-post .pfg-toc-card .pfg-toc-link.is-h3.active {
  color: var(--pfg-orange) !important;
}

/* Compact sidebar CTA: visible below the TOC without ugly cropping. */
body.single-post .pfg-mini-cta {
  flex: 0 0 auto !important;
  padding: 28px 26px !important;
  min-height: auto !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 95% 100%, rgba(232,80,10,.38), transparent 45%),
    linear-gradient(145deg, #071226 0%, #09285D 100%) !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 24px 52px rgba(10,31,68,.16) !important;
}

body.single-post .pfg-mini-cta h3 {
  margin: 14px 0 12px !important;
  color: #fff !important;
  font-family: var(--pfg-font-display) !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

body.single-post .pfg-mini-cta p {
  margin: 0 0 18px !important;
  color: rgba(255,255,255,.76) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

body.single-post .pfg-mini-cta .pfg-btn {
  min-height: 42px !important;
  padding: 11px 18px !important;
  font-size: 13px !important;
}

body.single-post .pfg-project-cta {
  width: 100% !important;
  max-width: 840px !important;
  margin: 0 !important;
  padding: clamp(30px, 4vw, 46px) clamp(28px, 4vw, 48px) !important;
  border-radius: 24px !important;
}

body.single-post .pfg-project-cta h2 {
  font-size: clamp(32px, 3.8vw, 48px) !important;
  line-height: 1.05 !important;
}

body.single-post .pfg-tags-card,
body.single-post .pfg-footer-strip,
body.single-post .pfg-faq-section,
body.single-post .pfg-comments-wrap {
  max-width: 840px !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.single-post .pfg-footer-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 28px 30px !important;
  background: #fff !important;
  border: 1px solid rgba(10,31,68,.08) !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 38px rgba(10,31,68,.06) !important;
}

body.single-post .pfg-footer-strip strong {
  display: block !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
}

body.single-post .pfg-footer-strip span {
  display: block !important;
  margin-top: 6px !important;
  color: var(--pfg-muted) !important;
  font-size: 15px !important;
}

@media (max-width: 1180px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(1000px, calc(100% - 44px)) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  body.single-post .pfg-main-column,
  body.single-post article.pfg-article-card,
  body.single-post .pfg-article-card,
  body.single-post .pfg-key-card,
  body.single-post .pfg-project-cta,
  body.single-post .pfg-tags-card,
  body.single-post .pfg-footer-strip,
  body.single-post .pfg-faq-section,
  body.single-post .pfg-comments-wrap {
    max-width: 100% !important;
  }

  body.single-post .pfg-sidebar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: start !important;
  }

  body.single-post .pfg-toc-card {
    max-height: 420px !important;
  }
}

@media (max-width: 760px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(100% - 28px, 680px) !important;
    margin-top: 26px !important;
    gap: 22px !important;
  }

  body.single-post article.pfg-article-card,
  body.single-post .pfg-article-card {
    padding: 30px 20px !important;
    border-radius: 18px !important;
  }

  body.single-post .pfg-key-card {
    padding: 22px 20px !important;
    border-radius: 18px !important;
  }

  body.single-post .pfg-entry-content {
    max-width: 100% !important;
  }

  body.single-post .pfg-entry-content p,
  body.single-post .pfg-entry-content li {
    font-size: 16.5px !important;
    line-height: 1.75 !important;
  }

  body.single-post .pfg-entry-content > p:first-of-type::first-letter {
    font-size: 58px !important;
    margin-top: 8px !important;
  }

  body.single-post .pfg-entry-content h2 {
    font-size: 30px !important;
  }

  body.single-post .pfg-sidebar {
    display: flex !important;
    flex-direction: column !important;
  }

  body.single-post .pfg-toc-card {
    max-height: 360px !important;
  }

  body.single-post .pfg-footer-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 480px) {
  body.single-post .pfg-container.pfg-single-body {
    width: calc(100% - 20px) !important;
  }

  body.single-post article.pfg-article-card,
  body.single-post .pfg-article-card,
  body.single-post .pfg-key-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
