/*
Theme Name:   IronStake Child
Theme URI:    https://ironstake.com.sa
Description:  IronStake child theme for Astra with branded blog, contact, and technical content layouts.
Author:       IronStake
Author URI:   https://ironstake.com.sa
Template:     astra
Version:      3.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: #123B5D;
  --pfg-navy-2: #0B2F4A;
  --pfg-blue: #008C95;
  --pfg-blue-2: #00747C;
  --pfg-orange: #008C95;
  --pfg-orange-2: #00747C;
  --pfg-ink: #123B5D;
  --pfg-text: #526575;
  --pfg-muted: #6A7B88;
  --pfg-line: rgba(11, 22, 41, 0.10);
  --pfg-line-strong: rgba(11, 22, 41, 0.16);
  --pfg-bg: #F4F9FA;
  --pfg-bg-2: #EAF5F8;
  --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: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-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 IronStake 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 IronStake 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 IronStake 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;
  }
}

/* ============================================================
   PFG v2.1 final polish: brand-color alignment + PolymersIQ-style
   locked article cards, cleaner library page, and stable sticky sidebar.
   ============================================================ */
:root {
  --pfg-navy: #123B5D;
  --pfg-navy-2: #0B2F4A;
  --pfg-blue: #1377E8;
  --pfg-blue-2: #0B5FC4;
  --pfg-orange: #008C95;
  --pfg-cream: #F7F4EE;
  --pfg-soft-card: #FFFFFF;
}

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

/* IronStake brand: blue is primary, orange is only a technical accent. */
.pfg-btn--blue,
body.single-post .pfg-project-cta .pfg-btn--blue,
body.single-post .pfg-mini-cta .pfg-btn,
.pfg-library-page .pfg-project-cta .pfg-btn--blue {
  background: linear-gradient(135deg, var(--pfg-blue), var(--pfg-blue-2)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 16px 34px rgba(19,119,232,.24) !important;
}

.pfg-btn--orange {
  background: linear-gradient(135deg, var(--pfg-orange), #F06B22) !important;
}

/* ---------------- Blog / archive page like the technical-library reference ---------------- */
body.blog .pfg-listing-hero,
body.archive .pfg-listing-hero,
body.search .pfg-listing-hero {
  display: none !important;
}

.pfg-library-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(19,119,232,.06), transparent 34rem),
    linear-gradient(180deg, #fff 0%, var(--pfg-cream) 38%, var(--pfg-cream) 100%) !important;
}

.pfg-library-hero {
  padding: clamp(44px, 5vw, 76px) 0 clamp(34px, 4vw, 58px) !important;
  background:
    linear-gradient(rgba(10,31,68,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,68,.025) 1px, transparent 1px),
    #fff !important;
  background-size: 26px 26px, 26px 26px, auto !important;
  border-bottom: 1px solid rgba(10,31,68,.06) !important;
}

.pfg-library-hero__inner {
  max-width: 920px !important;
  margin: 0 !important;
}

.pfg-library-hero h1 {
  max-width: 850px !important;
  margin: 24px 0 18px !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(52px, 7vw, 92px) !important;
  font-weight: 400 !important;
  line-height: .94 !important;
  letter-spacing: -.055em !important;
}

.pfg-library-hero p {
  max-width: 790px !important;
  margin: 0 !important;
  color: #46556B !important;
  font-size: clamp(18px, 1.45vw, 23px) !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
}

.pfg-library-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  margin: 34px 0 28px !important;
  color: #8893A4 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

.pfg-library-stats span {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.pfg-library-stats strong {
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: 27px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.pfg-library-search {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: 760px !important;
}

.pfg-library-search input[type="search"] {
  flex: 1 1 auto !important;
  height: 60px !important;
  padding: 0 22px !important;
  border: 1px solid rgba(10,31,68,.13) !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 16px !important;
  outline: none !important;
  box-shadow: 0 14px 28px rgba(10,31,68,.04) !important;
}

.pfg-library-search input[type="search"]:focus {
  border-color: rgba(19,119,232,.50) !important;
  box-shadow: 0 0 0 4px rgba(19,119,232,.10) !important;
}

.pfg-library-search button {
  min-width: 170px !important;
  height: 60px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--pfg-ink) !important;
  color: #fff !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.pfg-library-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 24px !important;
}

.pfg-library-chips a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 42px !important;
  padding: 9px 18px !important;
  border: 1px solid rgba(10,31,68,.12) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--pfg-ink) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(10,31,68,.035) !important;
}

.pfg-library-chips a:hover,
.pfg-library-chips a.is-active {
  background: var(--pfg-ink) !important;
  color: #fff !important;
  border-color: var(--pfg-ink) !important;
}

.pfg-library-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 390px !important;
  gap: 34px !important;
  align-items: start !important;
  padding-top: 42px !important;
  padding-bottom: 26px !important;
}

.pfg-library-featured {
  overflow: hidden !important;
  border-radius: 24px !important;
  background: #fff !important;
  border: 1px solid rgba(10,31,68,.08) !important;
  box-shadow: 0 22px 54px rgba(10,31,68,.09) !important;
}

.pfg-library-featured__image {
  position: relative !important;
  display: block !important;
  height: clamp(300px, 32vw, 470px) !important;
  overflow: hidden !important;
  background: #EAF2FB !important;
}

.pfg-library-featured__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.pfg-library-badge {
  position: absolute !important;
  top: 22px !important;
  left: 22px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--pfg-orange), #F06B22) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}

.pfg-library-featured__body {
  padding: clamp(26px, 3vw, 38px) !important;
}

.pfg-library-meta {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
  color: #7A8698 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.pfg-library-meta a,
.pfg-library-latest-card em {
  display: inline-flex !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(232,80,10,.20) !important;
  border-radius: 999px !important;
  background: rgba(232,80,10,.07) !important;
  color: var(--pfg-orange) !important;
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.pfg-library-featured h2 {
  margin: 0 0 16px !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(32px, 3.2vw, 46px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
}

.pfg-library-featured h2 a {
  color: inherit !important;
  text-decoration: none !important;
}

.pfg-library-featured p {
  max-width: 870px !important;
  margin: 0 0 24px !important;
  color: #536276 !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

.pfg-library-latest {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  position: sticky !important;
  top: 112px !important;
}

.pfg-library-side-title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #9AA3B2 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

.pfg-library-side-title::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: rgba(10,31,68,.10) !important;
}

.pfg-library-latest-card {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 14px !important;
  border: 1px solid rgba(10,31,68,.07) !important;
  border-radius: 22px !important;
  background: #fff !important;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 16px 34px rgba(10,31,68,.065) !important;
}

.pfg-library-latest-card__thumb {
  display: block !important;
  width: 104px !important;
  height: 82px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #EAF2FB !important;
}

.pfg-library-latest-card__thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.pfg-library-latest-card__text {
  min-width: 0 !important;
}

.pfg-library-latest-card strong {
  display: block !important;
  margin: 8px 0 6px !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-size: 18px !important;
  line-height: 1.18 !important;
}

.pfg-library-latest-card small {
  color: #7B8798 !important;
  font-size: 13px !important;
}

.pfg-library-latest .pfg-project-cta--compact {
  margin-top: 2px !important;
  padding: 28px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 90% 90%, rgba(19,119,232,.35), transparent 48%),
    linear-gradient(145deg, #061022 0%, #0A1F44 70%, #102F64 100%) !important;
}

.pfg-library-latest .pfg-project-cta--compact h2 {
  font-size: 28px !important;
}

.pfg-library-more {
  padding-top: 18px !important;
  padding-bottom: 48px !important;
}

.pfg-library-more .pfg-post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* ---------------- Single article page: locked white cards + professional padding ---------------- */
body.single-post .pfg-featured-image {
  background: var(--pfg-cream) !important;
}

body.single-post .pfg-container.pfg-single-body {
  width: min(1390px, calc(100% - 72px)) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 860px) 350px !important;
  gap: 42px !important;
  align-items: start !important;
  justify-content: center !important;
  padding-top: 56px !important;
  padding-bottom: 70px !important;
}

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

body.single-post .pfg-key-card,
body.single-post article.pfg-article-card,
body.single-post .pfg-article-card,
body.single-post .pfg-faq-section,
body.single-post .pfg-tags-card,
body.single-post .pfg-footer-strip,
body.single-post .pfg-comments-wrap {
  max-width: 860px !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 24px !important;
  background: #fff !important;
  border: 1px solid rgba(10,31,68,.08) !important;
  box-shadow: 0 18px 44px rgba(10,31,68,.065) !important;
  overflow: hidden !important;
}

body.single-post .pfg-key-card {
  padding: clamp(26px, 3vw, 36px) !important;
  border-color: rgba(232,80,10,.18) !important;
}

body.single-post article.pfg-article-card,
body.single-post .pfg-article-card {
  padding: clamp(42px, 5vw, 68px) clamp(44px, 5vw, 64px) !important;
}

body.single-post .pfg-entry-content {
  max-width: 760px !important;
  margin: 0 auto !important;
  color: #07172F !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 19px !important;
  line-height: 1.82 !important;
  font-weight: 500 !important;
}

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

body.single-post .pfg-entry-content h2,
body.single-post .pfg-entry-content h3 {
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  letter-spacing: -.035em !important;
}

body.single-post .pfg-entry-content h2 {
  margin: 64px 0 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 2px solid var(--pfg-orange) !important;
  font-size: clamp(36px, 3.1vw, 48px) !important;
  line-height: 1.08 !important;
}

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

body.single-post .pfg-entry-content h3 {
  margin: 42px 0 18px !important;
  padding-left: 0 !important;
  font-size: clamp(26px, 2.1vw, 34px) !important;
  line-height: 1.18 !important;
}

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

body.single-post .pfg-entry-content table,
body.single-post .pfg-entry-content .wp-block-table,
body.single-post .pfg-entry-content .pfg-table-scroll,
body.single-post .pfg-entry-content .pfg-formula-box,
body.single-post .pfg-entry-content blockquote,
body.single-post .pfg-entry-content pre {
  width: 100% !important;
  max-width: 100% !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: 34px 0 !important;
  padding: 28px 32px !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,.96)) !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 {
  color: #07172F !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(19px, 1.7vw, 23px) !important;
  font-style: italic !important;
  line-height: 1.58 !important;
}

/* Sidebar: fixed reference-style location, TOC scrolls internally, CTA is never cropped. */
body.single-post .pfg-sidebar {
  position: sticky !important;
  top: 112px !important;
  width: 350px !important;
  max-width: 350px !important;
  max-height: none !important;
  align-self: start !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  overflow: visible !important;
  padding: 0 !important;
}

body.single-post .pfg-toc-card {
  display: flex !important;
  flex-direction: column !important;
  max-height: min(500px, calc(100vh - 300px)) !important;
  min-height: 250px !important;
  padding: 0 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(10,31,68,.07) !important;
  overflow: hidden !important;
}

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

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

body.single-post .pfg-toc-card .pfg-toc-list::-webkit-scrollbar {
  width: 6px !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(19,119,232,.34) !important;
  border-radius: 999px !important;
}

body.single-post .pfg-toc-card .pfg-side-dot::before {
  color: var(--pfg-orange) !important;
}

body.single-post .pfg-toc-card .pfg-toc-link {
  padding: 9px 12px !important;
  border-radius: 10px !important;
  color: #4E5B6D !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 650 !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.is-h3 {
  margin-left: 14px !important;
  color: #6B7280 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.single-post .pfg-mini-cta {
  padding: 26px 24px !important;
  border-radius: 22px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 92% 92%, rgba(19,119,232,.40), transparent 46%),
    linear-gradient(145deg, #061022 0%, #0A1F44 74%, #133A78 100%) !important;
  box-shadow: 0 22px 52px rgba(10,31,68,.16) !important;
  overflow: hidden !important;
}

body.single-post .pfg-mini-cta h3 {
  margin: 14px 0 12px !important;
  color: #fff !important;
  font-size: 25px !important;
  line-height: 1.08 !important;
}

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

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

body.single-post .pfg-project-cta {
  background:
    radial-gradient(circle at 80% 20%, rgba(19,119,232,.24), transparent 28rem),
    linear-gradient(135deg, #0A1F44 0%, #174D92 100%) !important;
}

/* Hide any accidental related-post card inside the sticky sidebar to keep it identical to the reference behavior. */
body.single-post .pfg-sidebar [aria-label="Related posts"] {
  display: none !important;
}

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

  .pfg-library-latest,
  body.single-post .pfg-sidebar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }

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

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

  .pfg-library-more .pfg-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

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

  .pfg-library-hero {
    padding: 38px 0 34px !important;
  }

  .pfg-library-hero h1 {
    font-size: clamp(42px, 13vw, 58px) !important;
  }

  .pfg-library-search {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .pfg-library-search button {
    width: 100% !important;
  }

  .pfg-library-grid {
    padding-top: 28px !important;
  }

  .pfg-library-featured__image {
    height: 250px !important;
  }

  .pfg-library-latest-card {
    grid-template-columns: 86px 1fr !important;
  }

  .pfg-library-latest-card__thumb {
    width: 86px !important;
    height: 76px !important;
  }

  .pfg-library-more .pfg-post-grid {
    grid-template-columns: 1fr !important;
  }

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

  body.single-post .pfg-entry-content {
    max-width: 100% !important;
    font-size: 17px !important;
    line-height: 1.78 !important;
  }

  body.single-post .pfg-entry-content h2 {
    font-size: 32px !important;
    margin-top: 48px !important;
  }

  body.single-post .pfg-key-card {
    padding: 24px 20px !important;
  }

  body.single-post .pfg-footer-strip {
    display: grid !important;
  }
}

/* v2.2: Blog index polish — remove counters and keep the hero compact/professional. */
.pfg-library-stats {
  display: none !important;
}

body.blog .pfg-library-hero,
body.archive .pfg-library-hero,
body.search .pfg-library-hero {
  padding: clamp(42px, 4.2vw, 68px) 0 clamp(36px, 4vw, 54px) !important;
}

body.blog .pfg-library-hero .pfg-container,
body.archive .pfg-library-hero .pfg-container,
body.search .pfg-library-hero .pfg-container,
.pfg-library-hero__inner {
  width: min(1280px, calc(100% - 72px)) !important;
  max-width: 1280px !important;
  margin-inline: auto !important;
}

body.blog .pfg-library-hero h1,
body.archive .pfg-library-hero h1,
body.search .pfg-library-hero h1 {
  max-width: 900px !important;
  margin: 22px 0 18px !important;
  font-size: clamp(54px, 5.7vw, 86px) !important;
  line-height: .96 !important;
  letter-spacing: -.052em !important;
}

body.blog .pfg-library-hero p,
body.archive .pfg-library-hero p,
body.search .pfg-library-hero p {
  max-width: 820px !important;
  margin: 0 0 30px !important;
}

.pfg-library-controls {
  margin-top: 0 !important;
}

body.blog .pfg-library-chips,
body.archive .pfg-library-chips,
body.search .pfg-library-chips {
  margin-top: 24px !important;
}

.pfg-library-grid {
  padding-top: 46px !important;
}

@media (max-width: 1024px) {
  body.blog .pfg-library-hero .pfg-container,
  body.archive .pfg-library-hero .pfg-container,
  body.search .pfg-library-hero .pfg-container,
  .pfg-library-hero__inner {
    width: min(100% - 44px, 1000px) !important;
  }

  body.blog .pfg-library-hero h1,
  body.archive .pfg-library-hero h1,
  body.search .pfg-library-hero h1 {
    font-size: clamp(46px, 8vw, 70px) !important;
  }
}

@media (max-width: 640px) {
  body.blog .pfg-library-hero,
  body.archive .pfg-library-hero,
  body.search .pfg-library-hero {
    padding: 34px 0 32px !important;
  }

  body.blog .pfg-library-hero .pfg-container,
  body.archive .pfg-library-hero .pfg-container,
  body.search .pfg-library-hero .pfg-container,
  .pfg-library-hero__inner {
    width: min(100% - 28px, 100%) !important;
  }

  body.blog .pfg-library-hero h1,
  body.archive .pfg-library-hero h1,
  body.search .pfg-library-hero h1 {
    margin-top: 18px !important;
    font-size: clamp(40px, 14vw, 54px) !important;
  }

  body.blog .pfg-library-hero p,
  body.archive .pfg-library-hero p,
  body.search .pfg-library-hero p {
    margin-bottom: 24px !important;
    font-size: 16px !important;
  }
}


/* ============================================================
   PFG v2.3 ZERO-ISSUE FINAL
   PolymersIQ-style typography, right fixed/scrolling Contents card,
   compact CTA, clean blog page, and IronStake brand colors.
   ============================================================ */

:root {
  --pfg-navy: #123B5D;
  --pfg-navy-2: #0B2F4A;
  --pfg-blue: #1377E8;
  --pfg-blue-2: #0B5FC4;
  --pfg-orange: #008C95;
  --pfg-ink: #123B5D;
  --pfg-body-final: #172033;
  --pfg-muted-final: #647084;
  --pfg-paper-final: #F6F3EE;
  --pfg-font-body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pfg-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* Keep blog/post pages aligned with main website colors: navy + blue as primary, orange as accent only. */
body.single-post,
body.blog,
body.archive,
body.search {
  background: var(--pfg-paper-final) !important;
}

body.single-post .pfg-page,
body.blog .pfg-page,
body.archive .pfg-page,
body.search .pfg-page {
  color: var(--pfg-body-final) !important;
  font-family: var(--pfg-font-body) !important;
  background:
    radial-gradient(circle at 76% 0%, rgba(19,119,232,.055), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--pfg-paper-final) 42%, var(--pfg-paper-final) 100%) !important;
}

/* ---------------- Single post top hero: keep premium Pioneers look without overpowering article cards. ---------------- */
body.single-post .pfg-single-hero {
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(232,80,10,.13), transparent 34rem),
    linear-gradient(135deg, #07172F 0%, #0A1F44 58%, #102F64 100%) !important;
  background-size: 32px 32px, 32px 32px, auto, auto !important;
}

body.single-post .pfg-single-title {
  font-family: var(--pfg-font-display) !important;
  letter-spacing: -.052em !important;
  line-height: .98 !important;
}

/* Featured image: professional reference-style width, no excessive height. */
body.single-post .pfg-featured-image {
  padding: 0 !important;
  background: var(--pfg-paper-final) !important;
}

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

body.single-post .pfg-featured-image__wrap {
  max-height: 520px !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 18px 44px rgba(10,31,68,.06) !important;
}

body.single-post .pfg-featured-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: cover !important;
}

/* ---------------- Article grid: reference-style fixed card column + right sidebar. ---------------- */
@media (min-width: 1181px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(1240px, calc(100% - 72px)) !important;
    max-width: 1240px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 820px) 330px !important;
    gap: 38px !important;
    align-items: start !important;
    justify-content: center !important;
    margin: 52px auto 72px !important;
    padding: 0 !important;
  }

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

body.single-post .pfg-key-card,
body.single-post article.pfg-article-card,
body.single-post .pfg-article-card,
body.single-post .pfg-faq-section,
body.single-post .pfg-tags-card,
body.single-post .pfg-footer-strip,
body.single-post .pfg-comments-wrap,
body.single-post .pfg-project-cta {
  width: 100% !important;
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #fff !important;
  border: 1px solid rgba(10,31,68,.08) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 44px rgba(10,31,68,.055) !important;
  overflow: hidden !important;
}

body.single-post .pfg-key-card {
  padding: 28px 34px !important;
  border-color: rgba(232,80,10,.18) !important;
}

body.single-post .pfg-key-card__label {
  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 {
  gap: 13px !important;
}

body.single-post .pfg-key-card li {
  color: var(--pfg-body-final) !important;
  font-size: 16.5px !important;
  line-height: 1.72 !important;
  font-weight: 450 !important;
}

body.single-post article.pfg-article-card,
body.single-post .pfg-article-card {
  padding: clamp(48px, 4.8vw, 66px) clamp(42px, 4.5vw, 62px) !important;
}

body.single-post .pfg-entry-content {
  max-width: 704px !important;
  margin: 0 auto !important;
  color: var(--pfg-body-final) !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 17px !important;
  line-height: 1.84 !important;
  font-weight: 400 !important;
  letter-spacing: -.006em !important;
}

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

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

body.single-post .pfg-entry-content strong,
body.single-post .pfg-entry-content b {
  color: #07172F !important;
  font-weight: 800 !important;
}

body.single-post .pfg-entry-content h2,
body.single-post .pfg-entry-content h3,
body.single-post .pfg-entry-content h4 {
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
}

body.single-post .pfg-entry-content h2 {
  margin: 58px 0 24px !important;
  padding: 0 0 15px !important;
  border-bottom: 2px solid var(--pfg-orange) !important;
  font-size: clamp(32px, 2.8vw, 42px) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}

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

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

body.single-post .pfg-entry-content h3 {
  margin: 40px 0 16px !important;
  padding-left: 0 !important;
  font-size: clamp(24px, 2vw, 30px) !important;
  font-weight: 600 !important;
  line-height: 1.16 !important;
  letter-spacing: -.03em !important;
}

body.single-post .pfg-entry-content h4 {
  margin: 28px 0 12px !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
}

/* PolymersIQ-like drop cap but softer and cleaner. */
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: 66px !important;
  line-height: .72 !important;
  font-weight: 500 !important;
}

body.single-post .pfg-entry-content .wp-block-table,
body.single-post .pfg-entry-content .pfg-table-scroll {
  margin: 30px 0 34px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

body.single-post .pfg-entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 34px rgba(10,31,68,.075) !important;
}

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

body.single-post .pfg-entry-content td {
  color: var(--pfg-body-final) !important;
  font-size: 16px !important;
}

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

body.single-post .pfg-entry-content tr:nth-child(odd) td {
  background: #fff !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 {
  max-width: 100% !important;
  margin: 32px 0 !important;
  padding: 24px 28px !important;
  border: 0 !important;
  border-left: 4px solid var(--pfg-orange) !important;
  border-radius: 0 16px 16px 0 !important;
  background: linear-gradient(90deg, rgba(232,80,10,.08), rgba(255,255,255,.96)) !important;
  box-shadow: inset 0 0 0 1px rgba(232,80,10,.055) !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,
body.single-post .pfg-entry-content pre,
body.single-post .pfg-entry-content .wp-block-preformatted {
  color: #07172F !important;
  font-family: var(--pfg-font-display) !important;
  font-size: clamp(19px, 1.65vw, 23px) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  line-height: 1.58 !important;
}

/* ---------------- Right sidebar: fixed professional card stack with internal TOC scroll. ---------------- */
@media (min-width: 1181px) {
  body.single-post .pfg-sidebar {
    position: sticky !important;
    top: 104px !important;
    align-self: start !important;
    width: 330px !important;
    max-width: 330px !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    overflow: visible !important;
    padding: 0 !important;
  }
}

body.single-post .pfg-toc-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-height: clamp(330px, calc(100vh - 420px), 430px) !important;
  min-height: 300px !important;
  border-radius: 21px !important;
  border: 1px solid rgba(10,31,68,.08) !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(10,31,68,.07) !important;
  overflow: hidden !important;
}

body.single-post .pfg-toc-card .pfg-side-card__header {
  flex: 0 0 58px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 21px !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: 13px !important;
  line-height: 1 !important;
}

body.single-post .pfg-toc-card .pfg-side-dot,
body.single-post .pfg-toc-card .pfg-side-dot::before {
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post .pfg-toc-card .pfg-side-dot {
  width: auto !important;
  height: auto !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;
  transform: scaleX(.82) !important;
}

body.single-post .pfg-toc-card .pfg-side-label {
  color: #8792A2 !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;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 16px 15px 18px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(19,119,232,.45) transparent !important;
}

body.single-post .pfg-toc-card .pfg-toc-list::-webkit-scrollbar {
  width: 6px !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(19,119,232,.38) !important;
  border-radius: 999px !important;
}

body.single-post .pfg-toc-card .pfg-toc-link {
  display: block !important;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
  border-left: 3px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #4D596B !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 13.25px !important;
  line-height: 1.34 !important;
  font-weight: 600 !important;
  text-decoration: none !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;
  border-color: rgba(232,80,10,.14) !important;
  background: rgba(232,80,10,.08) !important;
  color: var(--pfg-orange) !important;
  font-weight: 750 !important;
}

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

body.single-post .pfg-mini-cta {
  flex: 0 0 auto !important;
  width: 100% !important;
  padding: 25px 24px !important;
  border-radius: 21px !important;
  background:
    radial-gradient(circle at 92% 92%, rgba(19,119,232,.34), transparent 47%),
    linear-gradient(145deg, #071226 0%, #0A1F44 78%, #133A78 100%) !important;
  color: #fff !important;
  box-shadow: 0 22px 52px rgba(10,31,68,.14) !important;
  overflow: hidden !important;
}

body.single-post .pfg-mini-cta h3 {
  margin: 13px 0 11px !important;
  color: #fff !important;
  font-family: var(--pfg-font-display) !important;
  font-size: 24px !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

body.single-post .pfg-mini-cta p {
  margin: 0 0 17px !important;
  color: rgba(255,255,255,.75) !important;
  font-size: 13.5px !important;
  line-height: 1.62 !important;
  font-weight: 400 !important;
}

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

/* Large CTA inside article: compact and fully visible. */
body.single-post .pfg-project-cta {
  padding: 38px 42px !important;
  background:
    radial-gradient(circle at 78% 18%, rgba(19,119,232,.22), transparent 26rem),
    linear-gradient(135deg, #0A1F44 0%, #174D92 100%) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

body.single-post .pfg-project-cta h2 {
  color: #fff !important;
  font-size: clamp(32px, 3.2vw, 44px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
}

body.single-post .pfg-project-cta p {
  color: rgba(255,255,255,.78) !important;
}

/* ---------------- Blog index page: clean reference layout, no numbers, no oversized hero. ---------------- */
.pfg-library-stats {
  display: none !important;
}

body.blog .pfg-library-hero,
body.archive .pfg-library-hero,
body.search .pfg-library-hero {
  padding: clamp(44px, 4.5vw, 68px) 0 clamp(36px, 4vw, 52px) !important;
  background:
    linear-gradient(rgba(10,31,68,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,68,.025) 1px, transparent 1px),
    #fff !important;
  background-size: 26px 26px, 26px 26px, auto !important;
}

body.blog .pfg-library-hero .pfg-container,
body.archive .pfg-library-hero .pfg-container,
body.search .pfg-library-hero .pfg-container,
.pfg-library-hero__inner {
  width: min(1180px, calc(100% - 72px)) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

body.blog .pfg-library-hero h1,
body.archive .pfg-library-hero h1,
body.search .pfg-library-hero h1 {
  max-width: 780px !important;
  margin: 22px 0 16px !important;
  color: var(--pfg-ink) !important;
  font-size: clamp(48px, 5.2vw, 78px) !important;
  font-weight: 400 !important;
  line-height: .96 !important;
  letter-spacing: -.055em !important;
}

body.blog .pfg-library-hero p,
body.archive .pfg-library-hero p,
body.search .pfg-library-hero p {
  max-width: 760px !important;
  margin: 0 0 28px !important;
  color: #46556B !important;
  font-size: clamp(17px, 1.25vw, 20px) !important;
  line-height: 1.65 !important;
  font-weight: 450 !important;
}

.pfg-library-search {
  max-width: 690px !important;
}

.pfg-library-search input[type="search"],
.pfg-library-search button {
  height: 56px !important;
  border-radius: 17px !important;
}

.pfg-library-grid {
  width: min(1180px, calc(100% - 72px)) !important;
  max-width: 1180px !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 32px !important;
  padding-top: 42px !important;
}

.pfg-library-latest {
  top: 104px !important;
}

.pfg-library-featured h2,
.pfg-post-card h2,
.pfg-library-latest-card strong {
  font-family: var(--pfg-font-display) !important;
  color: var(--pfg-ink) !important;
}

/* ---------------- Responsive safety ---------------- */
@media (max-width: 1180px) {
  body.single-post .pfg-container.pfg-single-body,
  .pfg-library-grid {
    width: min(100% - 44px, 980px) !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  body.single-post .pfg-sidebar,
  .pfg-library-latest {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }

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

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

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

@media (max-width: 780px) {
  body.single-post .pfg-featured-image .pfg-container,
  body.blog .pfg-library-hero .pfg-container,
  body.archive .pfg-library-hero .pfg-container,
  body.search .pfg-library-hero .pfg-container,
  body.single-post .pfg-container.pfg-single-body,
  .pfg-library-grid {
    width: min(100% - 28px, 100%) !important;
  }

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

  body.single-post .pfg-entry-content,
  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: 54px !important;
    margin: 8px 10px 0 0 !important;
  }

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

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

  body.blog .pfg-library-hero h1,
  body.archive .pfg-library-hero h1,
  body.search .pfg-library-hero h1 {
    font-size: clamp(40px, 12vw, 56px) !important;
  }

  .pfg-library-search {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .pfg-library-search button {
    width: 100% !important;
  }
}


/* ============================================================
   PFG v2.4 FINAL BUG FIX
   Fixes reported screenshots: duplicate leading article image,
   professional PolymersIQ-like font rhythm, stable right Contents card,
   compact blog front page, and IronStake brand-color alignment.
   ============================================================ */

:root {
  --pfg-navy: #123B5D;
  --pfg-blue: #1377E8;
  --pfg-orange: #008C95;
  --pfg-ink: #123B5D;
  --pfg-body-final: #172033;
  --pfg-paper-final: #F6F3EE;
  --pfg-font-body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pfg-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

body.single-post,
body.blog,
body.archive,
body.search {
  background: var(--pfg-paper-final) !important;
  overflow-x: hidden !important;
}

body.single-post .pfg-page,
body.blog .pfg-page,
body.archive .pfg-page,
body.search .pfg-page {
  font-family: var(--pfg-font-body) !important;
  color: var(--pfg-body-final) !important;
}

/* Full-width single hero with no right-side beige strip. */
body.single-post .pfg-single-page,
body.single-post .pfg-single-hero,
body.single-post .pfg-featured-image {
  width: 100% !important;
  max-width: none !important;
}

body.single-post .pfg-single-hero {
  margin: 0 !important;
  padding: clamp(44px, 5vw, 74px) 0 clamp(36px, 4.6vw, 60px) !important;
}

body.single-post .pfg-single-hero .pfg-container {
  width: min(1180px, calc(100% - 72px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.single-post .pfg-single-title {
  max-width: 880px !important;
  font-family: var(--pfg-font-display) !important;
  font-weight: 500 !important;
  line-height: .99 !important;
  letter-spacing: -.055em !important;
}

body.single-post .pfg-single-excerpt {
  max-width: 760px !important;
  font-weight: 500 !important;
}

/* Featured image: keep one clean image between hero and cards. */
body.single-post .pfg-featured-image .pfg-container {
  width: min(1180px, calc(100% - 72px)) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

body.single-post .pfg-featured-image__wrap {
  max-height: 480px !important;
  border-radius: 0 0 22px 22px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(10,31,68,.055) !important;
}

body.single-post .pfg-featured-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 480px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Fallback: hide accidental duplicated leading image inside article body if WordPress content includes the same featured image. */
body.single-post .pfg-entry-content > figure.wp-block-image:first-child,
body.single-post .pfg-entry-content > .wp-block-image:first-child,
body.single-post .pfg-entry-content > p:first-child:has(img),
body.single-post .pfg-entry-content > div:first-child:has(> figure.wp-block-image),
body.single-post .pfg-entry-content > div:first-child:has(img) {
  display: none !important;
}

/* Article grid: clean left card + right fixed Contents stack. */
@media (min-width: 1181px) {
  body.single-post .pfg-container.pfg-single-body {
    width: min(1240px, calc(100% - 72px)) !important;
    max-width: 1240px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 820px) 340px !important;
    gap: 40px !important;
    align-items: start !important;
    margin: 52px auto 76px !important;
    padding: 0 !important;
  }

  body.single-post .pfg-main-column {
    max-width: 820px !important;
    gap: 28px !important;
  }

  body.single-post .pfg-sidebar {
    position: sticky !important;
    top: 104px !important;
    width: 340px !important;
    max-width: 340px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    padding: 0 !important;
    align-self: start !important;
  }
}

body.single-post .pfg-key-card,
body.single-post .pfg-article-card,
body.single-post article.pfg-article-card,
body.single-post .pfg-faq-section,
body.single-post .pfg-tags-card,
body.single-post .pfg-footer-strip,
body.single-post .pfg-project-cta {
  width: 100% !important;
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.single-post .pfg-key-card,
body.single-post .pfg-article-card,
body.single-post article.pfg-article-card {
  background: #fff !important;
  border: 1px solid rgba(10,31,68,.08) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 44px rgba(10,31,68,.055) !important;
  overflow: hidden !important;
}

body.single-post .pfg-key-card {
  padding: 30px 34px !important;
  border-color: rgba(232,80,10,.18) !important;
}

body.single-post .pfg-key-card li {
  font-family: var(--pfg-font-body) !important;
  font-size: 16.5px !important;
  line-height: 1.68 !important;
  font-weight: 600 !important;
  color: var(--pfg-ink) !important;
}

body.single-post .pfg-article-card,
body.single-post article.pfg-article-card {
  padding: clamp(48px, 4.8vw, 66px) clamp(42px, 4.4vw, 62px) !important;
}

body.single-post .pfg-entry-content {
  max-width: 704px !important;
  margin: 0 auto !important;
  color: var(--pfg-body-final) !important;
  font-family: var(--pfg-font-body) !important;
}

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

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

body.single-post .pfg-entry-content h2,
body.single-post .pfg-entry-content h3 {
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-display) !important;
  font-weight: 600 !important;
}

body.single-post .pfg-entry-content h2 {
  margin: 58px 0 24px !important;
  padding-bottom: 15px !important;
  border-bottom: 2px solid var(--pfg-orange) !important;
  font-size: clamp(32px, 2.8vw, 42px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}

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

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

body.single-post .pfg-entry-content h3 {
  display: block !important;
  margin: 40px 0 16px !important;
  padding-left: 0 !important;
  font-size: clamp(24px, 2vw, 30px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.03em !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: 64px !important;
  line-height: .72 !important;
  font-weight: 500 !important;
}

/* Right Contents card: fixed at professional top location; list scrolls internally; CTA does not get cropped. */
body.single-post .pfg-toc-card {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  height: min(430px, calc(100vh - 250px)) !important;
  min-height: 320px !important;
  max-height: 430px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(10,31,68,.08) !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(10,31,68,.07) !important;
  overflow: hidden !important;
}

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

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

body.single-post .pfg-toc-card .pfg-toc-list::-webkit-scrollbar {
  width: 6px !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(19,119,232,.38) !important;
  border-radius: 999px !important;
}

body.single-post .pfg-toc-card .pfg-toc-link {
  display: block !important;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
  border-left: 3px solid transparent !important;
  border-radius: 10px !important;
  color: #4D596B !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 13.25px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  text-decoration: none !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;
  border-color: rgba(232,80,10,.14) !important;
  background: rgba(232,80,10,.08) !important;
  color: var(--pfg-orange) !important;
  font-weight: 760 !important;
}

body.single-post .pfg-toc-card .pfg-toc-link.is-h3 {
  margin-left: 12px !important;
  font-size: 12.5px !important;
  font-weight: 550 !important;
  color: #667085 !important;
}

body.single-post .pfg-mini-cta {
  width: 100% !important;
  padding: 24px 23px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 92% 94%, rgba(19,119,232,.34), transparent 47%),
    linear-gradient(145deg, #071226 0%, #0A1F44 78%, #133A78 100%) !important;
  box-shadow: 0 22px 52px rgba(10,31,68,.14) !important;
  overflow: hidden !important;
}

body.single-post .pfg-mini-cta h3 {
  margin: 13px 0 10px !important;
  color: #fff !important;
  font-family: var(--pfg-font-display) !important;
  font-size: 23px !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

body.single-post .pfg-mini-cta p {
  margin-bottom: 16px !important;
  color: rgba(255,255,255,.76) !important;
  font-size: 13.3px !important;
  line-height: 1.6 !important;
}

/* Blog front page: compact technical library, no numbers, card flow starts earlier. */
body.blog .pfg-library-hero,
body.archive .pfg-library-hero,
body.search .pfg-library-hero {
  padding: clamp(34px, 3.8vw, 58px) 0 clamp(28px, 3.4vw, 42px) !important;
  min-height: 0 !important;
}

body.blog .pfg-library-hero .pfg-container,
body.archive .pfg-library-hero .pfg-container,
body.search .pfg-library-hero .pfg-container,
.pfg-library-hero__inner {
  width: min(1180px, calc(100% - 72px)) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

body.blog .pfg-library-hero h1,
body.archive .pfg-library-hero h1,
body.search .pfg-library-hero h1 {
  max-width: 780px !important;
  margin: 18px 0 14px !important;
  font-size: clamp(44px, 4.8vw, 70px) !important;
  line-height: .98 !important;
}

body.blog .pfg-library-hero p,
body.archive .pfg-library-hero p,
body.search .pfg-library-hero p {
  margin-bottom: 22px !important;
  max-width: 760px !important;
}

.pfg-library-stats {
  display: none !important;
}

.pfg-library-search input[type="search"],
.pfg-library-search button {
  height: 54px !important;
}

.pfg-library-chips {
  margin-top: 18px !important;
}

.pfg-library-grid {
  padding-top: 30px !important;
}

.pfg-library-more {
  padding-top: 18px !important;
}

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

  body.single-post .pfg-sidebar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-post .pfg-toc-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

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

@media (max-width: 780px) {
  body.single-post .pfg-single-hero .pfg-container,
  body.single-post .pfg-featured-image .pfg-container,
  body.single-post .pfg-container.pfg-single-body,
  body.blog .pfg-library-hero .pfg-container,
  body.archive .pfg-library-hero .pfg-container,
  body.search .pfg-library-hero .pfg-container,
  .pfg-library-grid {
    width: min(100% - 28px, 100%) !important;
  }

  body.single-post .pfg-single-title,
  body.blog .pfg-library-hero h1,
  body.archive .pfg-library-hero h1,
  body.search .pfg-library-hero h1 {
    font-size: clamp(38px, 11vw, 54px) !important;
  }

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

/* ============================================================
   PFG v2.5 final blog-page fix
   Goal: compact right latest column so the quote CTA does not push
   the More Technical Articles section down. Keep IronStake colors,
   but match the clean PolymersIQ article-library rhythm.
   ============================================================ */

/* Blog/archive/search page: controlled, compact library layout. */
body.blog .pfg-library-page,
body.archive .pfg-library-page,
body.search .pfg-library-page {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F4EE 42%, #F7F4EE 100%) !important;
}

body.blog .pfg-library-hero,
body.archive .pfg-library-hero,
body.search .pfg-library-hero {
  padding: clamp(34px, 3.4vw, 54px) 0 clamp(26px, 3vw, 42px) !important;
}

body.blog .pfg-library-hero h1,
body.archive .pfg-library-hero h1,
body.search .pfg-library-hero h1 {
  font-size: clamp(44px, 6vw, 76px) !important;
  line-height: .96 !important;
  margin: 18px 0 16px !important;
  max-width: 800px !important;
}

body.blog .pfg-library-hero p,
body.archive .pfg-library-hero p,
body.search .pfg-library-hero p {
  max-width: 760px !important;
  font-size: clamp(17px, 1.3vw, 21px) !important;
  line-height: 1.62 !important;
}

body.blog .pfg-library-controls,
body.archive .pfg-library-controls,
body.search .pfg-library-controls {
  margin-top: 24px !important;
}

body.blog .pfg-library-grid,
body.archive .pfg-library-grid,
body.search .pfg-library-grid {
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 28px !important;
  padding-top: 32px !important;
  padding-bottom: 8px !important;
}

body.blog .pfg-library-featured,
body.archive .pfg-library-featured,
body.search .pfg-library-featured {
  border-radius: 22px !important;
  box-shadow: 0 18px 44px rgba(10,31,68,.075) !important;
}

body.blog .pfg-library-featured__image,
body.archive .pfg-library-featured__image,
body.search .pfg-library-featured__image {
  height: clamp(260px, 27vw, 405px) !important;
}

body.blog .pfg-library-featured__body,
body.archive .pfg-library-featured__body,
body.search .pfg-library-featured__body {
  padding: clamp(22px, 2.4vw, 32px) !important;
}

body.blog .pfg-library-featured h2,
body.archive .pfg-library-featured h2,
body.search .pfg-library-featured h2 {
  font-size: clamp(29px, 2.7vw, 40px) !important;
  line-height: 1.07 !important;
  margin-bottom: 13px !important;
}

body.blog .pfg-library-featured p,
body.archive .pfg-library-featured p,
body.search .pfg-library-featured p {
  font-size: 16.5px !important;
  line-height: 1.65 !important;
  margin-bottom: 18px !important;
}

/* Right column: compact latest cards so CTA stays visible higher on the page. */
body.blog .pfg-library-latest,
body.archive .pfg-library-latest,
body.search .pfg-library-latest {
  gap: 12px !important;
  top: 96px !important;
}

body.blog .pfg-library-side-title,
body.archive .pfg-library-side-title,
body.search .pfg-library-side-title {
  margin-bottom: 2px !important;
}

body.blog .pfg-library-latest-card,
body.archive .pfg-library-latest-card,
body.search .pfg-library-latest-card {
  grid-template-columns: 86px minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: 116px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(10,31,68,.055) !important;
}

body.blog .pfg-library-latest-card__thumb,
body.archive .pfg-library-latest-card__thumb,
body.search .pfg-library-latest-card__thumb {
  width: 86px !important;
  height: 72px !important;
  border-radius: 12px !important;
}

body.blog .pfg-library-latest-card em,
body.archive .pfg-library-latest-card em,
body.search .pfg-library-latest-card em {
  padding: 5px 10px !important;
  font-size: 10px !important;
  letter-spacing: .08em !important;
}

body.blog .pfg-library-latest-card strong,
body.archive .pfg-library-latest-card strong,
body.search .pfg-library-latest-card strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 6px 0 4px !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
}

body.blog .pfg-library-latest-card small,
body.archive .pfg-library-latest-card small,
body.search .pfg-library-latest-card small {
  font-size: 12px !important;
}

/* Compact listing-page CTA; it should support the layout, not dominate it. */
body.blog .pfg-library-latest .pfg-project-cta--compact,
body.archive .pfg-library-latest .pfg-project-cta--compact,
body.search .pfg-library-latest .pfg-project-cta--compact {
  margin-top: 4px !important;
  padding: 22px 22px 20px !important;
  border-radius: 22px !important;
  min-height: 0 !important;
  box-shadow: 0 18px 42px rgba(10,31,68,.16) !important;
}

body.blog .pfg-library-latest .pfg-project-cta--compact .pfg-eyebrow,
body.archive .pfg-library-latest .pfg-project-cta--compact .pfg-eyebrow,
body.search .pfg-library-latest .pfg-project-cta--compact .pfg-eyebrow {
  font-size: 10px !important;
  letter-spacing: .13em !important;
}

body.blog .pfg-library-latest .pfg-project-cta--compact h2,
body.archive .pfg-library-latest .pfg-project-cta--compact h2,
body.search .pfg-library-latest .pfg-project-cta--compact h2 {
  margin: 14px 0 12px !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
}

body.blog .pfg-library-latest .pfg-project-cta--compact p,
body.archive .pfg-library-latest .pfg-project-cta--compact p,
body.search .pfg-library-latest .pfg-project-cta--compact p {
  margin-bottom: 16px !important;
  font-size: 13.5px !important;
  line-height: 1.58 !important;
}

body.blog .pfg-library-latest .pfg-project-cta--compact .pfg-project-cta__actions,
body.archive .pfg-library-latest .pfg-project-cta--compact .pfg-project-cta__actions,
body.search .pfg-library-latest .pfg-project-cta--compact .pfg-project-cta__actions {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

body.blog .pfg-library-latest .pfg-project-cta--compact .pfg-btn,
body.archive .pfg-library-latest .pfg-project-cta--compact .pfg-btn,
body.search .pfg-library-latest .pfg-project-cta--compact .pfg-btn {
  min-height: 42px !important;
  padding: 10px 15px !important;
  font-size: 12.5px !important;
}

body.blog .pfg-library-more,
body.archive .pfg-library-more,
body.search .pfg-library-more {
  padding-top: 22px !important;
}

/* Single post final sidebar stability: TOC scrolls internally; compact CTA remains visible. */
@media (min-width: 1181px) {
  body.single-post .pfg-sidebar {
    top: 100px !important;
    width: 330px !important;
    max-width: 330px !important;
    gap: 16px !important;
  }

  body.single-post .pfg-toc-card {
    max-height: min(390px, calc(100vh - 360px)) !important;
    min-height: 270px !important;
  }

  body.single-post .pfg-mini-cta {
    padding: 22px 22px 20px !important;
    border-radius: 21px !important;
  }

  body.single-post .pfg-mini-cta h3 {
    font-size: 23px !important;
  }

  body.single-post .pfg-mini-cta p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-bottom: 14px !important;
  }
}

/* Responsive protection: never keep a cramped right sidebar on smaller desktop/tablet. */
@media (max-width: 1180px) {
  body.blog .pfg-library-grid,
  body.archive .pfg-library-grid,
  body.search .pfg-library-grid {
    grid-template-columns: 1fr !important;
  }

  body.blog .pfg-library-latest,
  body.archive .pfg-library-latest,
  body.search .pfg-library-latest {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.blog .pfg-library-side-title,
  body.archive .pfg-library-side-title,
  body.search .pfg-library-side-title,
  body.blog .pfg-library-latest .pfg-project-cta--compact,
  body.archive .pfg-library-latest .pfg-project-cta--compact,
  body.search .pfg-library-latest .pfg-project-cta--compact {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 720px) {
  body.blog .pfg-library-hero,
  body.archive .pfg-library-hero,
  body.search .pfg-library-hero {
    padding: 30px 0 34px !important;
  }

  body.blog .pfg-library-hero .pfg-container,
  body.archive .pfg-library-hero .pfg-container,
  body.search .pfg-library-hero .pfg-container,
  .pfg-library-hero__inner {
    width: min(100% - 32px, 1180px) !important;
  }

  body.blog .pfg-library-search,
  body.archive .pfg-library-search,
  body.search .pfg-library-search {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body.blog .pfg-library-latest,
  body.archive .pfg-library-latest,
  body.search .pfg-library-latest {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   PFG v2.6 MOBILE RESPONSIVE FIX
   Fixes mobile article readability: smaller text, cleaner headings,
   no drop cap on phones, balanced card padding, safe tables, and
   non-overlapping back-to-top button. Desktop v2.5 remains unchanged.
   ============================================================ */

@media (max-width: 780px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body.single-post .pfg-page {
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F4EE 42%, #F7F4EE 100%) !important;
  }

  body.single-post .pfg-single-hero {
    padding: 38px 0 42px !important;
  }

  body.single-post .pfg-single-hero .pfg-container,
  body.single-post .pfg-featured-image .pfg-container,
  body.single-post .pfg-container.pfg-single-body {
    width: calc(100% - 22px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.single-post .pfg-single-title {
    max-width: 100% !important;
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
  }

  body.single-post .pfg-single-excerpt {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }

  body.single-post .pfg-featured-image__wrap {
    max-height: 280px !important;
    border-radius: 0 0 18px 18px !important;
  }

  body.single-post .pfg-featured-image img {
    max-height: 280px !important;
    object-fit: cover !important;
  }

  body.single-post .pfg-container.pfg-single-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 22px !important;
    margin-bottom: 46px !important;
    padding: 0 !important;
  }

  body.single-post .pfg-main-column {
    width: 100% !important;
    max-width: 100% !important;
    gap: 18px !important;
  }

  body.single-post .pfg-key-card,
  body.single-post .pfg-article-card,
  body.single-post article.pfg-article-card,
  body.single-post .pfg-faq-section,
  body.single-post .pfg-tags-card,
  body.single-post .pfg-footer-strip,
  body.single-post .pfg-project-cta {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 18px !important;
  }

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

  body.single-post .pfg-key-card__label {
    margin-bottom: 12px !important;
    font-size: 11px !important;
    letter-spacing: .12em !important;
  }

  body.single-post .pfg-key-card ul {
    gap: 10px !important;
  }

  body.single-post .pfg-key-card li {
    padding-left: 24px !important;
    font-size: 15px !important;
    line-height: 1.58 !important;
    font-weight: 600 !important;
  }

  body.single-post .pfg-key-card li::before {
    top: .18em !important;
    font-size: 13px !important;
  }

  body.single-post .pfg-article-card,
  body.single-post article.pfg-article-card {
    padding: 28px 18px !important;
    overflow: hidden !important;
  }

  body.single-post .pfg-entry-content {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15.75px !important;
    line-height: 1.68 !important;
    letter-spacing: -0.003em !important;
  }

  body.single-post .pfg-entry-content p,
  body.single-post .pfg-entry-content li {
    font-size: 15.75px !important;
    line-height: 1.68 !important;
    font-weight: 400 !important;
    letter-spacing: -0.003em !important;
  }

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

  /* Mobile reading: remove the large decorative first letter completely. */
  body.single-post .pfg-entry-content > p:first-of-type::first-letter {
    float: none !important;
    margin: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
  }

  body.single-post .pfg-entry-content h2 {
    margin: 38px 0 18px !important;
    padding-bottom: 11px !important;
    font-size: clamp(27px, 8vw, 32px) !important;
    line-height: 1.12 !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 h3 {
    margin: 30px 0 12px !important;
    font-size: clamp(22px, 6.5vw, 26px) !important;
    line-height: 1.17 !important;
    letter-spacing: -0.025em !important;
  }

  body.single-post .pfg-entry-content h4 {
    margin: 22px 0 10px !important;
    font-size: 16.5px !important;
    line-height: 1.35 !important;
  }

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

  body.single-post .pfg-entry-content .wp-block-table,
  body.single-post .pfg-entry-content .pfg-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 22px 0 26px !important;
    border-radius: 14px !important;
  }

  body.single-post .pfg-entry-content table {
    min-width: 560px !important;
    font-size: 14px !important;
  }

  body.single-post .pfg-entry-content th,
  body.single-post .pfg-entry-content td {
    padding: 12px 14px !important;
    font-size: 14px !important;
    line-height: 1.45 !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 {
    margin: 22px 0 !important;
    padding: 18px 18px 18px 20px !important;
    border-radius: 0 14px 14px 0 !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,
  body.single-post .pfg-entry-content pre,
  body.single-post .pfg-entry-content .wp-block-preformatted {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  /* On mobile the desktop right column becomes noise; keep the article focused. */
  body.single-post .pfg-sidebar {
    display: none !important;
  }

  body.single-post .pfg-project-cta {
    padding: 26px 20px !important;
  }

  body.single-post .pfg-project-cta h2 {
    font-size: 30px !important;
    line-height: 1.06 !important;
  }

  body.single-post .pfg-project-cta p {
    font-size: 15px !important;
    line-height: 1.62 !important;
  }

  body.single-post .pfg-project-cta__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.single-post .pfg-tags-card,
  body.single-post .pfg-footer-strip {
    padding: 20px 18px !important;
  }

  body.single-post .pfg-footer-strip strong {
    font-size: 24px !important;
  }

  body.single-post .pfg-faq-item summary {
    padding: 15px 16px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

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

  body.single-post .pfg-faq-answer p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  #ast-scroll-top,
  .ast-scroll-top-icon,
  .pfg-scroll-top,
  .pfg-back-to-top,
  button[aria-label*='top'],
  a[aria-label*='top'] {
    right: 14px !important;
    bottom: 18px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 8px !important;
    z-index: 50 !important;
  }
}

@media (max-width: 420px) {
  body.single-post .pfg-single-hero .pfg-container,
  body.single-post .pfg-featured-image .pfg-container,
  body.single-post .pfg-container.pfg-single-body {
    width: calc(100% - 18px) !important;
  }

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

  body.single-post .pfg-key-card {
    padding: 18px 16px !important;
  }

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

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

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

/* ---------------- Contact page template ---------------- */
body.page-id-contact .site-content,
body.page-template-page-contact .site-content,
body.page .pfg-contact-page {
  padding: 0 !important;
}

.pfg-contact-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(27,111,216,.08), transparent 32rem),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 72%, #F8FAFC 100%);
  color: var(--pfg-text);
}

.pfg-contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 6.5vw, 98px) 0 clamp(54px, 6vw, 86px);
  background:
    radial-gradient(circle at 80% 12%, rgba(232,80,10,.22), transparent 22rem),
    linear-gradient(135deg, var(--pfg-navy) 0%, #0E4FAE 58%, #0A1F44 100%);
  color: #fff;
}

.pfg-contact-hero__bg {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.pfg-contact-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-contact-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.pfg-contact-hero h1 {
  max-width: 900px;
  margin: 20px 0 18px;
  color: #fff;
  font-family: var(--pfg-font-display);
  font-size: clamp(46px, 6vw, 84px);
  line-height: .97;
  letter-spacing: -0.055em;
}

.pfg-contact-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.65;
}

.pfg-contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.pfg-contact-hero__panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.07));
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}

.pfg-contact-hero__panel span {
  display: block;
  margin-bottom: 16px;
  color: #FFB17E;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pfg-contact-hero__panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pfg-contact-hero__panel li {
  position: relative;
  padding-left: 24px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}

.pfg-contact-hero__panel li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pfg-orange);
}

.pfg-contact-strip {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding-bottom: 28px;
}

.pfg-contact-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pfg-contact-mini-card,
.pfg-contact-mini-card:hover {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 106px;
  padding: 18px;
  border: 1px solid var(--pfg-line);
  border-radius: 22px;
  background: #fff;
  color: var(--pfg-ink);
  text-decoration: none;
  box-shadow: var(--pfg-shadow);
}

.pfg-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pfg-blue), var(--pfg-navy));
  font-size: 19px;
  font-style: normal;
  font-weight: 900;
}

.pfg-contact-mini-card strong,
.pfg-contact-mini-card em {
  display: block;
  font-style: normal;
}

.pfg-contact-mini-card strong {
  margin-bottom: 4px;
  color: var(--pfg-ink);
  font-size: 15px;
  font-weight: 900;
}

.pfg-contact-mini-card em {
  color: var(--pfg-muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.pfg-contact-main {
  padding: clamp(28px, 4vw, 60px) 0;
}

.pfg-contact-main__grid {
  display: grid;
  grid-template-columns: minmax(320px, .46fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.pfg-contact-info-card,
.pfg-contact-form-card {
  border: 1px solid var(--pfg-line);
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--pfg-shadow-lg);
}

.pfg-contact-info-card {
  position: sticky;
  top: 110px;
  padding: clamp(26px, 3vw, 38px);
}

.pfg-contact-info-card h2,
.pfg-contact-form-card h2,
.pfg-contact-map__copy h2,
.pfg-contact-process h2 {
  margin: 12px 0 12px;
  color: var(--pfg-ink);
  font-family: var(--pfg-font-display);
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.pfg-contact-info-card > p,
.pfg-contact-form-card > p,
.pfg-contact-map__copy p {
  margin: 0;
  color: var(--pfg-muted);
  font-size: 17px;
  line-height: 1.65;
}

.pfg-contact-detail-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.pfg-contact-detail,
.pfg-contact-detail:hover {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(11,22,41,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #F8FAFC);
  text-decoration: none;
}

.pfg-contact-detail > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--pfg-orange);
  background: rgba(232,80,10,.09);
  font-weight: 900;
}

.pfg-contact-detail strong,
.pfg-contact-detail em {
  display: block;
  font-style: normal;
}

.pfg-contact-detail strong {
  margin-bottom: 4px;
  color: var(--pfg-ink);
  font-size: 15px;
  font-weight: 900;
}

.pfg-contact-detail em {
  color: var(--pfg-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.pfg-contact-info-actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.pfg-btn--outline-dark {
  color: var(--pfg-ink) !important;
  background: #fff;
  border-color: var(--pfg-line-strong);
}

.pfg-btn--outline-dark:hover {
  border-color: var(--pfg-navy);
  color: var(--pfg-navy) !important;
}

.pfg-contact-form-card {
  padding: clamp(28px, 4vw, 52px);
}

.pfg-fluent-form-wrap {
  margin-top: 30px;
}

.pfg-contact-form-card .fluentform,
.pfg-contact-form-card .frm-fluent-form {
  font-family: var(--pfg-font-body) !important;
}

.pfg-contact-form-card .ff-el-group {
  margin-bottom: 18px !important;
}

.pfg-contact-form-card .ff-el-input--label label,
.pfg-contact-form-card label {
  color: var(--pfg-ink) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.pfg-contact-form-card input,
.pfg-contact-form-card select,
.pfg-contact-form-card textarea,
.pfg-contact-form-card .ff-el-form-control {
  min-height: 54px !important;
  border: 1px solid rgba(11,22,41,.12) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--pfg-ink) !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 15px !important;
  box-shadow: 0 8px 22px rgba(10,31,68,.04) !important;
}

.pfg-contact-form-card textarea,
.pfg-contact-form-card textarea.ff-el-form-control {
  min-height: 126px !important;
}

.pfg-contact-form-card input:focus,
.pfg-contact-form-card select:focus,
.pfg-contact-form-card textarea:focus,
.pfg-contact-form-card .ff-el-form-control:focus {
  border-color: var(--pfg-blue) !important;
  box-shadow: 0 0 0 4px rgba(27,111,216,.10) !important;
}

.pfg-contact-form-card .ff-btn-submit,
.pfg-contact-form-card button[type='submit'],
.pfg-contact-form-card input[type='submit'] {
  min-height: 54px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--pfg-blue) !important;
  color: #fff !important;
  font-family: var(--pfg-font-body) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 32px rgba(27,111,216,.22) !important;
}

.pfg-contact-process {
  padding: clamp(30px, 5vw, 74px) 0;
}

.pfg-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.pfg-section-heading > span {
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: var(--pfg-orange);
}

.pfg-section-heading h2 {
  margin: 0;
}

.pfg-contact-process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pfg-process-card {
  padding: 26px;
  border: 1px solid var(--pfg-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--pfg-shadow);
}

.pfg-process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: rgba(232,80,10,.10);
  color: var(--pfg-orange);
  font-weight: 900;
}

.pfg-process-card h3 {
  margin: 0 0 10px;
  color: var(--pfg-ink);
  font-size: 21px;
  font-weight: 900;
}

.pfg-process-card p {
  margin: 0;
  color: var(--pfg-muted);
  font-size: 15px;
  line-height: 1.6;
}

.pfg-contact-map {
  padding: 0 0 clamp(48px, 5vw, 80px);
}

.pfg-contact-map__inner {
  display: grid;
  grid-template-columns: minmax(300px, .42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--pfg-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--pfg-shadow-lg);
}

.pfg-contact-map__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}

.pfg-contact-map__copy h2 {
  font-size: clamp(30px, 3vw, 44px);
}

.pfg-contact-map__frame {
  overflow: hidden;
  min-height: 340px;
  border-radius: 24px;
  background: #EEF4FA;
}

.pfg-contact-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

@media (max-width: 1100px) {
  .pfg-contact-hero__inner,
  .pfg-contact-main__grid,
  .pfg-contact-map__inner {
    grid-template-columns: 1fr;
  }

  .pfg-contact-info-card {
    position: static;
  }

  .pfg-contact-strip__grid,
  .pfg-contact-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pfg-contact-page .pfg-container {
    width: calc(100% - 24px) !important;
  }

  .pfg-contact-hero {
    padding: 42px 0 68px;
  }

  .pfg-contact-hero h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.02;
  }

  .pfg-contact-hero p {
    font-size: 16px;
    line-height: 1.62;
  }

  .pfg-contact-hero__panel {
    padding: 20px;
    border-radius: 22px;
  }

  .pfg-contact-hero__actions,
  .pfg-contact-info-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pfg-contact-strip {
    margin-top: -34px;
  }

  .pfg-contact-strip__grid,
  .pfg-contact-process__grid {
    grid-template-columns: 1fr;
  }

  .pfg-contact-mini-card {
    min-height: 88px;
  }

  .pfg-contact-main {
    padding: 22px 0 34px;
  }

  .pfg-contact-info-card,
  .pfg-contact-form-card,
  .pfg-contact-map__inner {
    border-radius: 22px;
  }

  .pfg-contact-info-card,
  .pfg-contact-form-card {
    padding: 22px 18px;
  }

  .pfg-contact-info-card h2,
  .pfg-contact-form-card h2,
  .pfg-contact-map__copy h2,
  .pfg-contact-process h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .pfg-contact-info-card > p,
  .pfg-contact-form-card > p,
  .pfg-contact-map__copy p {
    font-size: 15px;
    line-height: 1.6;
  }

  .pfg-contact-detail {
    grid-template-columns: 38px 1fr;
    padding: 12px;
  }

  .pfg-contact-detail > span {
    width: 38px;
    height: 38px;
  }

  .pfg-contact-form-card input,
  .pfg-contact-form-card select,
  .pfg-contact-form-card textarea,
  .pfg-contact-form-card .ff-el-form-control {
    min-height: 50px !important;
    font-size: 15px !important;
  }

  .pfg-contact-map__inner {
    padding: 14px;
  }

  .pfg-contact-map__frame,
  .pfg-contact-map__frame iframe {
    min-height: 260px;
  }
}



/* =========================================================
   IronStake Header Dropdown + Mobile Menu Fix
   Desktop + Mobile Complete Combined Code
   Paste at bottom of child theme style.css
========================================================= */

/* Desktop dropdown styling */
@media (min-width: 922px) {
  .main-header-menu .sub-menu,
  .ast-builder-menu .main-navigation .sub-menu,
  .site-header .sub-menu {
    min-width: 270px;
    padding: 12px 0;
    background: #ffffff;
    border: 1px solid rgba(10, 31, 68, 0.08);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 22px 50px rgba(10, 31, 68, 0.14);
    overflow: hidden;
    z-index: 99999;
  }

  .main-header-menu .sub-menu .menu-link,
  .main-header-menu .sub-menu a,
  .site-header .sub-menu a {
    padding: 10px 22px !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #0A1F44 !important;
    background: transparent !important;
    transition: all 0.18s ease;
  }

  .main-header-menu .sub-menu .menu-link:hover,
  .main-header-menu .sub-menu a:hover,
  .site-header .sub-menu a:hover {
    color: #0E7CF4 !important;
    background: #F3F8FF !important;
    padding-left: 26px !important;
  }

  .main-header-menu > .menu-item > .menu-link,
  .site-header .main-navigation a {
    font-weight: 600;
  }

  .ast-button,
  .site-header .wp-block-button__link,
  .site-header .menu-cta a,
  .header-quote-btn {
    font-weight: 700;
  }
}

/* Mobile header logo and hamburger */
@media (max-width: 921px) {
  .ast-mobile-header-wrap .site-branding img,
  .ast-mobile-header-wrap .custom-logo {
    max-width: 245px !important;
    height: auto !important;
  }

  .ast-button-wrap .menu-toggle,
  .ast-mobile-menu-trigger-minimal,
  .ast-mobile-popup-drawer .menu-toggle,
  .ast-mobile-popup-drawer button,
  .ast-mobile-popup-drawer .ast-mobile-popup-close {
    outline: none !important;
    box-shadow: none !important;
  }

  .ast-button-wrap .menu-toggle:focus,
  .ast-mobile-menu-trigger-minimal:focus,
  .ast-mobile-popup-drawer .menu-toggle:focus,
  .ast-mobile-popup-drawer button:focus,
  .ast-mobile-popup-drawer .ast-mobile-popup-close:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  .ast-mobile-popup-drawer,
  .ast-mobile-popup-inner,
  .ast-mobile-popup-content {
    background: #ffffff !important;
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    width: min(86vw, 420px) !important;
    max-width: 420px !important;
    box-shadow: 0 28px 70px rgba(10, 31, 68, 0.22) !important;
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-header {
    padding: 16px 20px 10px !important;
    border-bottom: 1px solid rgba(10, 31, 68, 0.08);
    background: #ffffff !important;
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-close {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid rgba(10, 31, 68, 0.08) !important;
  }

  .ast-mobile-popup-drawer .main-header-menu,
  .ast-mobile-popup-drawer .main-navigation,
  .ast-mobile-popup-drawer .ast-builder-menu-mobile {
    width: 100% !important;
    background: #ffffff !important;
  }

  .ast-mobile-popup-drawer .main-header-menu > .menu-item {
    border-bottom: 1px solid rgba(10, 31, 68, 0.06) !important;
  }

  .ast-mobile-popup-drawer .main-header-menu > .menu-item > .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .menu-item > .menu-link {
    min-height: 58px !important;
    padding: 0 26px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #0A1F44 !important;
    background: #ffffff !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .current-menu-item > .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .current-menu-ancestor > .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .menu-link:hover {
    color: #0E7CF4 !important;
    background: #F3F8FF !important;
  }

  .ast-mobile-popup-drawer .menu-item-has-children {
    position: relative !important;
  }

  .ast-mobile-popup-drawer .menu-item-has-children > .menu-link {
    padding-right: 78px !important;
  }

  .ast-mobile-popup-drawer .ast-menu-toggle {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 1px solid rgba(10, 31, 68, 0.06) !important;
    background: #ffffff !important;
    color: #0A1F44 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .ast-mobile-popup-drawer .ast-menu-toggle:focus,
  .ast-mobile-popup-drawer .ast-menu-toggle:hover {
    outline: none !important;
    box-shadow: none !important;
    background: #F3F8FF !important;
    color: #0E7CF4 !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu,
  .ast-mobile-popup-drawer .main-navigation .sub-menu,
  .ast-mobile-popup-drawer .ast-builder-menu-mobile .sub-menu {
    position: static !important;
    min-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-item {
    border-bottom: 1px solid rgba(10, 31, 68, 0.05) !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .sub-menu a,
  .ast-mobile-popup-drawer .main-navigation .sub-menu .menu-link,
  .ast-mobile-popup-drawer .main-navigation .sub-menu a {
    min-height: 46px !important;
    padding: 10px 26px 10px 42px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 16px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    color: #0A1F44 !important;
    background: #ffffff !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link:hover,
  .ast-mobile-popup-drawer .main-header-menu .sub-menu a:hover,
  .ast-mobile-popup-drawer .main-navigation .sub-menu .menu-link:hover,
  .ast-mobile-popup-drawer .main-navigation .sub-menu a:hover {
    color: #0E7CF4 !important;
    background: #F3F8FF !important;
    padding-left: 46px !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link::before,
  .ast-mobile-popup-drawer .main-header-menu .sub-menu a::before {
    content: "›";
    margin-right: 8px;
    color: #0E7CF4;
    font-weight: 800;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu .ast-menu-toggle {
    height: 46px !important;
    min-height: 46px !important;
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-content {
    padding-bottom: 22px !important;
  }
}

/* Small mobile refinement */
@media (max-width: 480px) {
  .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    width: 90vw !important;
  }

  .ast-mobile-header-wrap .site-branding img,
  .ast-mobile-header-wrap .custom-logo {
    max-width: 220px !important;
  }

  .ast-mobile-popup-drawer .main-header-menu > .menu-item > .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .menu-item > .menu-link {
    font-size: 17px !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .sub-menu a {
    font-size: 15.5px !important;
  }
}

/* Final Mobile Menu Polish */
@media (max-width: 921px) {
  .ast-mobile-popup-drawer .ast-mobile-popup-close,
  .ast-mobile-popup-drawer .ast-mobile-popup-close:focus,
  .ast-mobile-popup-drawer .ast-mobile-popup-close:focus-visible,
  .ast-button-wrap .menu-toggle,
  .ast-button-wrap .menu-toggle:focus,
  .ast-button-wrap .menu-toggle:focus-visible,
  .ast-mobile-popup-drawer button,
  .ast-mobile-popup-drawer button:focus,
  .ast-mobile-popup-drawer button:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
    border-style: solid !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link::before,
  .ast-mobile-popup-drawer .main-header-menu .sub-menu a::before {
    content: none !important;
    display: none !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .sub-menu a {
    padding-left: 34px !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link:hover,
  .ast-mobile-popup-drawer .main-header-menu .sub-menu a:hover {
    padding-left: 38px !important;
  }
}




/* =========================================================
   IronStake Footer Polish
   Main Website Footer Styling
========================================================= */

.site-footer,
.site-primary-footer-wrap,
.site-above-footer-wrap,
.site-below-footer-wrap {
  font-family: inherit;
}

.site-primary-footer-wrap {
  background:
    radial-gradient(circle at 90% 10%, rgba(14, 124, 244, 0.10), transparent 26rem),
    linear-gradient(135deg, #071F44 0%, #0A2F5F 100%) !important;
  padding: 56px 0 48px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-primary-footer-wrap .ast-builder-grid-row,
.site-footer .ast-builder-grid-row {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  column-gap: 54px;
  row-gap: 34px;
}

.site-footer h2,
.site-footer h3,
.site-footer .widget-title,
.site-footer .wp-block-heading {
  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin: 0 0 18px !important;
}

.site-footer p,
.site-footer li,
.site-footer .textwidget,
.site-footer .wp-block-paragraph {
  color: rgba(219, 234, 254, 0.88) !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
}

.site-footer a {
  color: rgba(219, 234, 254, 0.92) !important;
  text-decoration: none !important;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.site-footer a:hover {
  color: #ffffff !important;
  padding-left: 4px;
}

.site-footer ul,
.site-footer ol {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.site-footer li {
  margin-bottom: 8px !important;
}

.site-footer-section-1 img,
.site-footer .custom-logo-link img {
  max-width: 90px !important;
  height: auto !important;
  margin-bottom: 12px !important;
  background: #ffffff;
  border-radius: 3px;
  padding: 2px;
}

.site-footer-section-1 h2,
.site-footer-section-1 h3,
.site-footer-section-1 .widget-title {
  font-size: 28px !important;
  margin-bottom: 4px !important;
}

.site-footer-section-1 p {
  max-width: 470px;
}

.site-footer-section-1 p:not(:first-child) {
  margin-bottom: 14px !important;
}

.site-footer-section-1 p,
.site-footer-section-1 a {
  color: rgba(219, 234, 254, 0.92) !important;
}

.site-footer-section-1 strong {
  color: #ffffff !important;
}

.site-footer .footer-widget-area {
  margin-bottom: 0 !important;
}

.site-footer .wp-block-social-links,
.site-footer .ast-builder-social-element,
.site-footer .ast-footer-social-wrap {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.site-footer .wp-social-link,
.site-footer .ast-builder-social-element a {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.site-footer .wp-social-link:hover,
.site-footer .ast-builder-social-element a:hover {
  background: #0E7CF4 !important;
  border-color: #0E7CF4 !important;
  transform: translateY(-1px);
}

.site-below-footer-wrap {
  background: #ffffff !important;
  border-top: 1px solid rgba(10, 31, 68, 0.08) !important;
  padding: 22px 0 !important;
}

.site-below-footer-wrap .ast-builder-grid-row {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
  color: #263044 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Footer mobile fix */
@media (max-width: 921px) {
  .site-primary-footer-wrap {
    padding: 42px 0 34px !important;
  }

  .site-primary-footer-wrap .ast-builder-grid-row,
  .site-footer .ast-builder-grid-row {
    grid-template-columns: 1fr 1fr !important;
    column-gap: 24px !important;
    row-gap: 30px !important;
  }

  .site-footer-section-1 {
    grid-column: 1 / -1 !important;
  }

  .site-footer h2,
  .site-footer h3,
  .site-footer .widget-title,
  .site-footer .wp-block-heading {
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }

  .site-footer p,
  .site-footer li,
  .site-footer a {
    font-size: 15px !important;
  }

  .site-footer-section-1 h2,
  .site-footer-section-1 h3,
  .site-footer-section-1 .widget-title {
    font-size: 26px !important;
  }

  .site-below-footer-wrap {
    padding: 18px 0 !important;
  }

  .site-footer .ast-footer-copyright,
  .site-footer .ast-footer-copyright p {
    text-align: center !important;
  }
}

@media (max-width: 560px) {
  .site-primary-footer-wrap .ast-builder-grid-row,
  .site-footer .ast-builder-grid-row {
    grid-template-columns: 1fr !important;
    row-gap: 28px !important;
  }

  .site-primary-footer-wrap {
    padding: 38px 0 30px !important;
  }

  .site-footer-section-1 img,
  .site-footer .custom-logo-link img {
    max-width: 86px !important;
  }

  .site-footer-section-1 p {
    max-width: 100%;
  }
}

/* =========================================================
   Final Footer Premium Polish - Desktop + Mobile
========================================================= */

.site-primary-footer-wrap {
  padding: 48px 0 44px !important;
  overflow-x: hidden !important;
}

.site-primary-footer-wrap .ast-builder-grid-row,
.site-footer .ast-builder-grid-row {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  column-gap: 54px !important;
  row-gap: 34px !important;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title,
.site-footer .wp-block-heading {
  position: relative;
  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  margin: 0 0 18px !important;
}

.site-footer h2::after,
.site-footer h3::after,
.site-footer h4::after,
.site-footer .widget-title::after,
.site-footer .wp-block-heading::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: #E8500A;
}

.site-footer p,
.site-footer li,
.site-footer a,
.site-footer .textwidget {
  color: rgba(219, 234, 254, 0.90) !important;
  font-size: 16px !important;
  line-height: 1.68 !important;
}

.site-footer a {
  text-decoration: none !important;
  transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer a:hover {
  color: #ffffff !important;
}

.site-footer ul,
.site-footer ol,
.pfg-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer li,
.pfg-footer-links li {
  margin: 0 0 10px !important;
}

.site-footer ul li a,
.pfg-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer ul li a::before,
.pfg-footer-links a::before {
  content: "›";
  color: #E8500A;
  font-weight: 900;
  line-height: 1;
}

.site-footer-section-1 img,
.site-footer .custom-logo-link img {
  max-width: 100px !important;
  height: auto !important;
  margin-bottom: 16px !important;
  background: #ffffff;
  border-radius: 4px;
  padding: 2px;
}

.site-footer-section-1 h2,
.site-footer-section-1 h3,
.site-footer-section-1 .widget-title {
  font-size: 30px !important;
  margin-bottom: 6px !important;
}

.site-footer-section-1 p {
  max-width: 470px;
}

.pfg-footer-resources h4 {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 0 0 18px !important;
}

.pfg-footer-links a {
  color: rgba(219, 234, 254, 0.92) !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.pfg-footer-mini-cta {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pfg-footer-mini-cta span {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.pfg-footer-mini-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0E7CF4;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800;
  text-decoration: none !important;
}

.pfg-footer-mini-cta a::before {
  display: none !important;
}

.pfg-footer-mini-cta a:hover {
  background: #E8500A;
}

.site-below-footer-wrap {
  background: #ffffff !important;
  padding: 18px 0 !important;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
  color: #263044 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Tablet footer */
@media (max-width: 921px) {
  .site-primary-footer-wrap {
    padding: 38px 0 34px !important;
  }

  .site-primary-footer-wrap .ast-builder-grid-row,
  .site-footer .ast-builder-grid-row {
    grid-template-columns: 1fr 1fr !important;
    column-gap: 28px !important;
    row-gap: 30px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }

  .site-footer-section-1 {
    grid-column: 1 / -1 !important;
  }
}

/* Mobile footer */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .site-footer,
  .site-primary-footer-wrap,
  .site-below-footer-wrap {
    overflow-x: hidden !important;
  }

  .site-primary-footer-wrap {
    padding: 36px 0 30px !important;
  }

  .site-primary-footer-wrap .ast-builder-grid-row,
  .site-footer .ast-builder-grid-row {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .site-footer-section,
  .site-footer-section-1,
  .site-footer-section-2,
  .site-footer-section-3,
  .site-footer-section-4,
  .site-footer .footer-widget-area {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
    text-align: left !important;
  }

  .site-footer-section-1 img,
  .site-footer .custom-logo-link img {
    max-width: 88px !important;
    margin-bottom: 14px !important;
  }

  .site-footer-section-1 h2,
  .site-footer-section-1 h3,
  .site-footer-section-1 .widget-title {
    font-size: 30px !important;
  }

  .site-footer h2,
  .site-footer h3,
  .site-footer h4,
  .site-footer .widget-title,
  .site-footer .wp-block-heading {
    font-size: 24px !important;
    margin-bottom: 14px !important;
  }

  .site-footer p,
  .site-footer li,
  .site-footer a,
  .site-footer .textwidget {
    font-size: 16px !important;
    line-height: 1.62 !important;
    overflow-wrap: anywhere !important;
  }

  .site-footer li,
  .pfg-footer-links li {
    margin-bottom: 9px !important;
  }

  .site-footer ul li a,
  .pfg-footer-links a {
    gap: 9px !important;
  }

  .pfg-footer-mini-cta {
    margin-top: 20px !important;
    padding: 18px !important;
    border-radius: 18px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pfg-footer-mini-cta span {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .pfg-footer-mini-cta a {
    width: 100% !important;
    max-width: 270px !important;
    min-height: 46px !important;
    font-size: 15px !important;
  }

  .site-below-footer-wrap {
    padding: 18px 22px !important;
  }

  .site-below-footer-wrap .ast-builder-grid-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .site-footer .ast-footer-copyright,
  .site-footer .ast-footer-copyright p {
    text-align: center !important;
    font-size: 14px !important;
  }

  .pfg-email-float {
    right: 14px !important;
    bottom: 132px !important;
    width: 48px !important;
    height: 48px !important;
  }

  .pfg-email-float svg {
    width: 24px !important;
    height: 24px !important;
  }

  .pfg-whatsapp-float {
    right: 14px !important;
    bottom: 74px !important;
    width: 50px !important;
    height: 50px !important;
  }

  .pfg-whatsapp-float svg {
    width: 28px !important;
    height: 28px !important;
  }

  #ast-scroll-top,
  .ast-scroll-top-icon,
  .ast-scroll-to-top-right {
    right: 16px !important;
    bottom: 18px !important;
  }
}


/* Floating WhatsApp Button - Global */
.pfg-whatsapp-float {
  position: fixed;
  right: 26px;
  bottom: 94px;
  z-index: 999999;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff !important;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.38);
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.pfg-whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

.pfg-whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  background: #20bd5a;
  box-shadow: 0 22px 52px rgba(37, 211, 102, 0.48);
}

.pfg-whatsapp-float:focus,
.pfg-whatsapp-float:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.22), 0 18px 42px rgba(37, 211, 102, 0.38);
}

@media (max-width: 768px) {
  .pfg-whatsapp-float {
    right: 18px;
    bottom: 82px;
    width: 56px;
    height: 56px;
  }

  .pfg-whatsapp-float svg {
    width: 31px;
    height: 31px;
  }
}


/* Floating Email Button - Global */
.pfg-email-float {
  position: fixed;
  right: 26px;
  bottom: 166px;
  z-index: 999999;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0E7CF4;
  color: #ffffff !important;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(14, 124, 244, 0.34);
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.pfg-email-float svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.pfg-email-float:hover {
  transform: translateY(-4px) scale(1.04);
  background: #0A1F44;
  box-shadow: 0 22px 52px rgba(14, 124, 244, 0.44);
}

.pfg-email-float:focus,
.pfg-email-float:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 5px rgba(14, 124, 244, 0.22), 0 18px 42px rgba(14, 124, 244, 0.34);
}

@media (max-width: 768px) {
  .pfg-email-float {
    right: 18px;
    bottom: 148px;
    width: 54px;
    height: 54px;
  }

  .pfg-email-float svg {
    width: 27px;
    height: 27px;
  }
}


/* About Section - 45+ Years Floating Badge */
.pfg-excellence-visual {
  position: relative !important;
  overflow: visible !important;
}

.pfg-excellence-visual img {
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(10, 31, 68, 0.12);
}

.pfg-excellence-badge {
  position: absolute !important;
  left: -44px !important;
  bottom: -38px !important;
  z-index: 10 !important;
  width: 245px !important;
  min-height: 132px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 26px 34px !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #2EAD72 0%, #20945F 100%) !important;
  box-shadow: 0 22px 48px rgba(32, 148, 95, 0.30) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.pfg-excellence-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 82% 18%, rgba(255,255,255,0.18), transparent 34%);
  pointer-events: none;
}

.pfg-excellence-badge .elementor-widget {
  margin: 0 !important;
}

.pfg-excellence-badge .elementor-heading-title,
.pfg-excellence-badge h1,
.pfg-excellence-badge h2,
.pfg-excellence-badge h3 {
  color: #ffffff !important;
  font-size: 46px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  margin: 0 0 8px !important;
}

.pfg-excellence-badge p,
.pfg-excellence-badge .elementor-widget-text-editor,
.pfg-excellence-badge .elementor-widget-text-editor p {
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

/* Tablet / Mobile */
@media (max-width: 921px) {
  .pfg-excellence-badge {
    left: 24px !important;
    bottom: -34px !important;
    width: 220px !important;
    min-height: 118px !important;
    padding: 22px 28px !important;
    border-radius: 20px !important;
  }

  .pfg-excellence-badge .elementor-heading-title,
  .pfg-excellence-badge h1,
  .pfg-excellence-badge h2,
  .pfg-excellence-badge h3 {
    font-size: 40px !important;
  }
}

@media (max-width: 560px) {
  .pfg-excellence-visual {
    margin-bottom: 64px !important;
  }

  .pfg-excellence-badge {
    left: 50% !important;
    bottom: -54px !important;
    transform: translateX(-50%) !important;
    width: 210px !important;
    min-height: 112px !important;
    align-items: center !important;
    text-align: center !important;
  }

  .pfg-excellence-badge .elementor-heading-title,
  .pfg-excellence-badge h1,
  .pfg-excellence-badge h2,
  .pfg-excellence-badge h3 {
    font-size: 38px !important;
  }

  .pfg-excellence-badge p,
  .pfg-excellence-badge .elementor-widget-text-editor,
  .pfg-excellence-badge .elementor-widget-text-editor p {
    font-size: 15px !important;
  }
}

/* Fix 45+ badge position near image */
.pfg-excellence-visual {
  position: relative !important;
  align-self: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  margin-bottom: 70px !important;
}

.pfg-excellence-badge {
  position: absolute !important;
  left: -42px !important;
  bottom: -48px !important;
  transform: none !important;
  z-index: 20 !important;
}