/* ==========================================================================
   PF CORE — GUIDE PAGES (Premium Fintech Edition)
   Path: wp-content/mu-plugins/pf-core/frontend/assets/css/guides.css
   
   A luxurious dark theme with dramatic glows, glassmorphism, and animations
   Matching the firm profile aesthetic for cohesive brand experience
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (inherited from firm.css for consistency)
   ========================================================================== */
.pf-guide-page {
    /* Core palette */
    --pf-bg-dark: #030712;
    --pf-bg-deeper: #010409;
    --pf-bg-panel: rgba(15, 23, 42, 0.65);
    --pf-bg-panel-solid: #0a1628;
    --pf-bg-panel-hover: rgba(20, 30, 55, 0.75);
    --pf-bg-glass: rgba(255, 255, 255, 0.03);
    --pf-bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    /* Borders */
    --pf-border-light: rgba(148, 163, 184, 0.15);
    --pf-border-glow: rgba(56, 189, 248, 0.3);
    --pf-border-accent: rgba(251, 191, 36, 0.4);
    
    /* Primary brand colors */
    --pf-primary: #38bdf8;
    --pf-primary-dark: #0ea5e9;
    --pf-primary-light: #7dd3fc;
    --pf-primary-glow: rgba(56, 189, 248, 0.5);
    --pf-primary-subtle: rgba(56, 189, 248, 0.1);
    
    /* Accent colors */
    --pf-accent-gold: #fbbf24;
    --pf-accent-gold-glow: rgba(251, 191, 36, 0.4);
    --pf-accent-emerald: #34d399;
    --pf-accent-emerald-glow: rgba(52, 211, 153, 0.4);
    --pf-accent-violet: #a78bfa;
    --pf-accent-violet-glow: rgba(167, 139, 250, 0.4);
    --pf-accent-rose: #fb7185;
    --pf-accent-rose-glow: rgba(251, 113, 133, 0.4);
    
    /* Text colors */
    --pf-text-main: #f8fafc;
    --pf-text-secondary: #e2e8f0;
    --pf-text-muted: #94a3b8;
    --pf-text-dim: #64748b;
    
    /* Typography */
    --pf-font-head: 'Sora', 'Space Grotesk', system-ui, sans-serif;
    --pf-font-body: 'Outfit', system-ui, sans-serif;
    --pf-font-mono: 'DM Mono', monospace;
    --pf-font-display: 'Playfair Display', serif;
    
    /* Spacing scale */
    --pf-space-xs: 4px;
    --pf-space-sm: 8px;
    --pf-space-md: 16px;
    --pf-space-lg: 24px;
    --pf-space-xl: 32px;
    --pf-space-2xl: 48px;
    --pf-space-3xl: 64px;
    
    /* Border radius */
    --pf-radius-sm: 8px;
    --pf-radius-md: 12px;
    --pf-radius-lg: 20px;
    --pf-radius-xl: 28px;
    --pf-radius-full: 9999px;
    
    /* Shadows */
    --pf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --pf-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --pf-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --pf-shadow-glow: 0 0 40px var(--pf-primary-glow);
    --pf-shadow-gold: 0 0 30px var(--pf-accent-gold-glow);
    
    /* Transitions */
    --pf-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
.pf-guide-page {
    position: relative;
    min-height: 100vh;
    background: var(--pf-bg-dark);
    color: var(--pf-text-main);
    font-family: var(--pf-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================================================
   ANIMATED BACKGROUND
   ========================================================================== */
.pf-guide-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(56, 189, 248, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(167, 139, 250, 0.06), transparent 40%),
        radial-gradient(ellipse 50% 60% at 70% 80%, rgba(251, 191, 36, 0.04), transparent 45%),
        radial-gradient(ellipse 40% 30% at 10% 90%, rgba(52, 211, 153, 0.03), transparent 35%);
    pointer-events: none;
    z-index: 0;
    animation: pfGuideBgPulse 25s ease-in-out infinite alternate;
}

@keyframes pfGuideBgPulse {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

/* Noise texture overlay */
.pf-guide-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.pf-guide-page .pf-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--pf-space-md) var(--pf-space-lg) var(--pf-space-xl);
}

/* ==========================================================================
   HERO SECTION — DIRECTORY STYLE (CENTERED)
   ========================================================================== */
.pf-guide-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--pf-space-lg);
    padding: var(--pf-space-lg) 0 var(--pf-space-md);
    border-bottom: 1px solid var(--pf-border-light);
}

.pf-guide-hero--directory {
    display: block !important;
    text-align: center;
    padding: var(--pf-space-xl) 0 var(--pf-space-md);
    border: none !important;
    margin-bottom: 0;
}

/* Decorative orb behind hero */
.pf-guide-hero--directory::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, var(--pf-primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    animation: pfHeroOrbFloat 10s ease-in-out infinite;
}

@keyframes pfHeroOrbFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.1); }
}

.pf-guide-hero-main {
    max-width: 720px;
}

/* ==========================================================================
   HERO EYEBROW
   ========================================================================== */
.pf-guide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--pf-space-sm);
    font-family: var(--pf-font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pf-primary-light);
    margin-bottom: var(--pf-space-sm);
    animation: pfFadeInUp 0.6s ease-out both;
}

.pf-guide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pf-primary);
    box-shadow: 0 0 16px var(--pf-primary-glow), 0 0 32px var(--pf-primary-glow);
    animation: pfDotPulse 2s ease-in-out infinite;
}

@keyframes pfDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ==========================================================================
   HERO TITLE
   ========================================================================== */
.pf-guide-title {
    position: relative;
    margin: 0 0 var(--pf-space-sm);
    font-family: var(--pf-font-head);
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    animation: pfFadeInUp 0.7s ease-out 0.1s both;
}

/* Gradient text effect for hero title */
.pf-guide-hero--directory .pf-guide-title {
    background: linear-gradient(135deg, #fff 0%, var(--pf-primary-light) 50%, var(--pf-accent-gold) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pfFadeInUp 0.7s ease-out 0.1s both, pfGradientShift 8s ease infinite;
}

@keyframes pfGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ==========================================================================
   HERO SUBTITLE
   ========================================================================== */
.pf-guide-subtitle {
    max-width: 800px;
    margin: 0 auto var(--pf-space-md);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pf-text-muted);
    animation: pfFadeInUp 0.7s ease-out 0.2s both;
}

.pf-guide-hero--directory .pf-guide-subtitle {
    max-width: 860px;
}

/* ==========================================================================
   META CHIPS — PREMIUM GLASSMORPHISM
   ========================================================================== */
.pf-guide-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--pf-space-sm);
    margin-top: var(--pf-space-md);
    animation: pfFadeInUp 0.7s ease-out 0.3s both;
}

.pf-guide-meta-chip {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--pf-radius-full);
    
    /* Glassmorphism */
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
        radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.12), transparent 60%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(56, 189, 248, 0.05) inset;
    
    font-family: var(--pf-font-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pf-text-secondary);
    
    transition: all var(--pf-transition-base);
    cursor: default;
}

/* Animated glow dot */
.pf-guide-meta-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pf-primary);
    box-shadow: 0 0 10px var(--pf-primary-glow), 0 0 20px var(--pf-primary-glow);
    animation: pfDotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Animated sheen effect */
.pf-guide-meta-chip::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    transform: rotate(25deg);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    animation: pfChipSheen 7s ease-in-out infinite;
    animation-delay: var(--sheen-delay, 0s);
}

.pf-guide-meta-chip:nth-child(1) { --sheen-delay: 0s; }
.pf-guide-meta-chip:nth-child(2) { --sheen-delay: 2.3s; }
.pf-guide-meta-chip:nth-child(3) { --sheen-delay: 4.6s; }

@keyframes pfChipSheen {
    0%, 70% { transform: translateX(0) rotate(25deg); opacity: 0; }
    75% { opacity: 0.5; }
    100% { transform: translateX(350%) rotate(25deg); opacity: 0; }
}

/* Hover state */
.pf-guide-meta-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 
        0 10px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(56, 189, 248, 0.1) inset,
        0 0 30px rgba(56, 189, 248, 0.1);
}

/* Special styling for the last chip (usually the facet label) */
.pf-guide-meta-chip:last-child {
    background: 
        linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.04) 100%),
        rgba(255, 255, 255, 0.02);
    border-color: rgba(251, 191, 36, 0.15);
}

.pf-guide-meta-chip:last-child::before {
    background: var(--pf-accent-gold);
    box-shadow: 0 0 10px var(--pf-accent-gold-glow), 0 0 20px var(--pf-accent-gold-glow);
}

.pf-guide-meta-chip:last-child:hover {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 
        0 10px 32px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(251, 191, 36, 0.15);
}

/* ==========================================================================
   HERO ASIDE CARD
   ========================================================================== */
.pf-guide-hero-aside {
    flex: 0 0 280px;
}

.pf-guide-hero-card {
    position: relative;
    background: var(--pf-bg-panel);
    border-radius: var(--pf-radius-xl);
    border: 1px solid var(--pf-border-light);
    padding: var(--pf-space-lg);
    font-size: 0.9rem;
    color: var(--pf-text-muted);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--pf-shadow-lg);
    overflow: hidden;
    transition: all var(--pf-transition-base);
}

.pf-guide-hero-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pf-primary) 0%, transparent 60%);
    opacity: 0.12;
    border-radius: var(--pf-radius-xl) 0 0 0;
    transition: all var(--pf-transition-base);
}

.pf-guide-hero-card:hover {
    border-color: var(--pf-border-glow);
}

.pf-guide-hero-card:hover::before {
    opacity: 0.2;
    width: 120px;
    height: 120px;
}

.pf-guide-hero-card h2 {
    margin: 0 0 var(--pf-space-sm);
    font-family: var(--pf-font-head);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.pf-guide-hero-card p {
    margin: 0 0 var(--pf-space-sm);
    line-height: 1.6;
}

.pf-guide-hero-card ul {
    margin: var(--pf-space-sm) 0 0;
    padding-left: var(--pf-space-lg);
}

.pf-guide-hero-card li {
    margin-bottom: var(--pf-space-xs);
}

.pf-guide-hero-card li::marker {
    color: var(--pf-primary);
}

/* ==========================================================================
   RESULTS SECTION (FIRMS LISTING) — TIGHT SPACING
   ========================================================================== */
.pf-guide-results {
    position: relative;
    z-index: 2;
    margin: var(--pf-space-sm) 0 var(--pf-space-md);
    padding: 0;
    animation: pfFadeInUp 0.8s ease-out 0.4s both;
}

/* Remove any extra spacing from nested wrappers */
.pf-guide-results .pf-directory,
.pf-guide-results .pf-dir,
.pf-guide-results .pf-cards,
.pf-guide-results .pf-cards-wrap,
.pf-guide-results .pf-cards-shell,
.pf-guide-results .pf-cards-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ==========================================================================
   GUIDE CARDS (LEGACY LAYOUT)
   ========================================================================== */
.pf-guide-list-section {
    margin-top: var(--pf-space-md);
}

.pf-guide-list-heading {
    margin: 0 0 var(--pf-space-sm);
    font-family: var(--pf-font-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pf-text-muted);
}

.pf-guide-cards {
    display: flex;
    flex-direction: column;
    gap: var(--pf-space-sm);
}

.pf-guide-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: var(--pf-space-md);
    padding: var(--pf-space-md);
    border-radius: var(--pf-radius-lg);
    border: 1px solid var(--pf-border-light);
    background: var(--pf-bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: all var(--pf-transition-base);
}

/* Top border glow on hover */
.pf-guide-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pf-primary), var(--pf-accent-violet), var(--pf-accent-gold));
    opacity: 0;
    transition: opacity var(--pf-transition-base);
}

.pf-guide-card:hover {
    border-color: var(--pf-border-glow);
    transform: translateY(-2px);
    box-shadow: var(--pf-shadow-md);
}

.pf-guide-card:hover::after {
    opacity: 1;
}

/* Card identity (logo) */
.pf-guide-card .id {
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-guide-card .logo2 {
    width: 64px;
    height: 64px;
    border-radius: var(--pf-radius-md);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--pf-shadow-sm);
    transition: all var(--pf-transition-base);
}

.pf-guide-card:hover .logo2 {
    transform: scale(1.03);
    box-shadow: var(--pf-shadow-md), 0 0 20px var(--pf-primary-glow);
}

.pf-guide-card .logo2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card stats grid */
.pf-guide-card .stats {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--pf-space-xs);
}

.pf-guide-card .kpi {
    padding: var(--pf-space-xs) var(--pf-space-sm);
    border-radius: var(--pf-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.15);
    transition: all var(--pf-transition-fast);
}

.pf-guide-card .kpi:hover {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.15);
}

.pf-guide-card .kpi .t {
    font-family: var(--pf-font-head);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pf-text-dim);
    margin-bottom: 2px;
}

.pf-guide-card .kpi .v {
    font-family: var(--pf-font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pf-text-main);
    word-break: break-word;
}

.pf-guide-card .kpi.rate .v {
    color: var(--pf-accent-gold);
}

/* Card actions */
.pf-guide-card .actions {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--pf-space-xs);
    text-align: right;
}

/* ==========================================================================
   BUTTONS (INSIDE GUIDE CARDS)
   ========================================================================== */
.pf-guide-card .btn,
.pf-guide-card .btn-ghost {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 var(--pf-space-md);
    border-radius: var(--pf-radius-sm);
    font-family: var(--pf-font-head);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    overflow: hidden;
    transition: all var(--pf-transition-base);
}

.pf-guide-card .btn {
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
    color: var(--pf-bg-dark) !important;
    box-shadow: 0 4px 12px var(--pf-primary-glow);
}

.pf-guide-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--pf-primary-glow);
}

.pf-guide-card .btn-ghost {
    background: rgba(0, 0, 0, 0.25);
    border-color: var(--pf-border-light);
    color: var(--pf-text-muted) !important;
}

.pf-guide-card .btn-ghost:hover {
    background: var(--pf-primary-subtle);
    border-color: var(--pf-primary);
    color: var(--pf-text-main) !important;
}

/* ==========================================================================
   EDITORIAL BODY CONTENT
   ========================================================================== */
.pf-guide-body {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: var(--pf-space-xl) 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--pf-text-secondary);
    animation: pfFadeInUp 0.8s ease-out 0.5s both;
}

.pf-guide-body p {
    margin: 0 0 1.1em;
    color: var(--pf-text-muted);
}

.pf-guide-body a {
    color: var(--pf-primary-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--pf-transition-fast);
}

.pf-guide-body a:hover {
    color: var(--pf-primary);
    border-bottom-color: var(--pf-primary);
}

/* ==========================================================================
   BODY HEADINGS
   ========================================================================== */
.pf-guide-body h2,
.pf-guide-body h3,
.pf-guide-body h4 {
    font-family: var(--pf-font-head);
    color: #fff;
    text-align: left !important;
    margin: 2rem 0 0.8rem;
}

.pf-guide-body h2 {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.5em;
    padding-left: var(--pf-space-md);
    border-bottom: 1px solid var(--pf-border-light);
}

/* Decorative bar for h2 */
.pf-guide-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--pf-primary), var(--pf-accent-violet));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--pf-primary-glow);
}

.pf-guide-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.35em;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

.pf-guide-body h4 {
    font-size: 1rem;
    font-weight: 600;
}

/* Strong inside headings */
.pf-guide-body h2 strong,
.pf-guide-body h3 strong,
.pf-guide-body h4 strong {
    font: inherit;
    font-weight: inherit;
}

/* Lists */
.pf-guide-body ul,
.pf-guide-body ol {
    margin: 0 0 1.3em;
    padding-left: 1.4em;
}

.pf-guide-body li {
    margin-bottom: 0.35em;
    padding-left: 0.4em;
}

.pf-guide-body li::marker {
    color: var(--pf-primary);
}

/* Paragraph-based headings: <p><strong>Title</strong></p> */
.pf-guide-body p > strong:first-child {
    display: block;
    margin: 1.8rem 0 0.8rem;
    padding-bottom: 0.35em;
    padding-left: var(--pf-space-md);
    border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
    font-family: var(--pf-font-head);
    font-size: 1.1rem;
    color: #fff;
    position: relative;
}

.pf-guide-body p > strong:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 3px;
    height: 18px;
    background: var(--pf-accent-gold);
    border-radius: 2px;
}

/* ==========================================================================
   SECTION TITLES (Quick Compare, Build Comparison, etc.)
   ========================================================================== */
.pf-guide-section-title {
    position: relative;
    margin: 0 0 var(--pf-space-sm);
    font-family: var(--pf-font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: var(--pf-space-sm);
}

.pf-guide-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--pf-primary), var(--pf-accent-violet));
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--pf-primary-glow);
}

.pf-guide-section-sub {
    margin: 0 0 var(--pf-space-md);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--pf-text-muted);
    max-width: 800px;
}

/* ==========================================================================
   QUICK COMPARE SECTION — Integrates with comparison.css
   ========================================================================== */
.pf-guide-quick-compare {
    position: relative;
    max-width: 1200px;
    margin: var(--pf-space-md) auto var(--pf-space-lg);
    animation: pfFadeInUp 0.8s ease-out 0.5s both;
}

.pf-guide-quick-compare .pf-guide-section-title,
.pf-guide-quick-compare .pf-guide-section-sub {
    text-align: left;
}

.pf-guide-quick-compare .pf-guide-section-title {
    margin: 0 0 var(--pf-space-xs);
    font-size: 1.25rem;
}

.pf-guide-quick-compare .pf-guide-section-sub {
    margin: 0 0 var(--pf-space-md);
    max-width: none;
    font-size: 0.88rem;
}

/* Let comparison.css handle the table styling - just adjust wrapper spacing */
.pf-guide-quick-compare .pf-compare-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide the H1 title from the compare shortcode when inside guide */
.pf-guide-quick-compare .pf-compare-title {
    display: none !important;
}

/* Hide the description from the compare shortcode when inside guide */
.pf-guide-quick-compare .pf-compare-sub {
    display: none !important;
}

/* ==========================================================================
   BUILD-YOUR-OWN COMPARISON PICKER
   ========================================================================== */
.pf-guide-compare-picker {
    position: relative;
    margin: var(--pf-space-lg) 0 var(--pf-space-xl);
    padding: var(--pf-space-lg);
    border-radius: var(--pf-radius-xl);
    border: 2px solid transparent;
    background: linear-gradient(145deg, rgba(5, 11, 30, 0.95), rgba(2, 6, 23, 0.95));
    overflow: hidden;
    animation: pfFadeInUp 0.8s ease-out 0.6s both;
}

/* Animated gradient border */
.pf-guide-compare-picker::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-accent-violet), var(--pf-accent-gold), var(--pf-primary));
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: pfGradientBorder 6s ease infinite;
}

@keyframes pfGradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Inner background to hide gradient except at border */
.pf-guide-compare-picker::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(145deg, rgba(5, 11, 30, 0.98), rgba(2, 6, 23, 0.98));
    border-radius: calc(var(--pf-radius-xl) - 2px);
    z-index: -1;
}

/* Section titles inside picker */
.pf-guide-compare-picker .pf-guide-section-title {
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

.pf-guide-compare-picker .pf-guide-section-title::before {
    display: none;
}

.pf-guide-compare-picker .pf-guide-section-sub {
    text-align: center;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
}

/* Firms list */
.pf-guide-compare-list {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto var(--pf-space-md);
    border-radius: var(--pf-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.pf-guide-compare-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pf-space-sm);
    padding: var(--pf-space-sm) var(--pf-space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    color: var(--pf-text-secondary);
    cursor: pointer;
    transition: all var(--pf-transition-fast);
}

.pf-guide-compare-row:last-child {
    border-bottom: 0;
}

.pf-guide-compare-row:hover {
    background: rgba(56, 189, 248, 0.05);
}

.pf-guide-compare-left {
    display: inline-flex;
    align-items: center;
    gap: var(--pf-space-sm);
}

/* Custom checkbox styling */
.pf-guide-compare-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--pf-border-light);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all var(--pf-transition-fast);
    flex-shrink: 0;
}

.pf-guide-compare-row input[type="checkbox"]:hover {
    border-color: var(--pf-primary);
}

.pf-guide-compare-row input[type="checkbox"]:checked {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
    box-shadow: 0 0 10px var(--pf-primary-glow);
}

.pf-guide-compare-row input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--pf-bg-dark);
    font-size: 11px;
    font-weight: bold;
}

.pf-guide-compare-name {
    font-weight: 600;
    color: var(--pf-text-main);
    font-size: 0.88rem;
}

.pf-guide-compare-meta {
    font-size: 0.75rem;
    color: var(--pf-text-dim);
    white-space: nowrap;
}

/* Launch button */
.pf-guide-compare-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: var(--pf-space-sm) var(--pf-space-lg);
    border: none;
    border-radius: var(--pf-radius-md);
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
    font-family: var(--pf-font-head);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pf-bg-dark) !important;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--pf-transition-base);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 4px 16px var(--pf-primary-glow);
}

.pf-guide-compare-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--pf-transition-fast);
}

.pf-guide-compare-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 6px 24px var(--pf-primary-glow);
}

.pf-guide-compare-btn:hover::before {
    opacity: 1;
}

.pf-guide-compare-btn:active {
    transform: translateY(0) scale(0.99);
}

/* Adjusting Launch Button Position*/

/* Make the picker a column layout so we can pin the button to the bottom */
.pf-guide-compare-picker{
  display: flex;
  flex-direction: column;
}

/* Let the list consume available space */
.pf-guide-compare-picker .pf-guide-compare-list{
  flex: 1 1 auto;
  min-height: 0;           /* important for overflow in flex parents */
  overflow: auto;          /* list scrolls, button stays */
  padding-bottom: 14px;    /* spacing above button */
}

/* Pin the launch button to bottom-center */
.pf-guide-compare-picker .pf-guide-compare-btn{
  margin-top: auto;        /* pushes button to bottom */
  align-self: center;      /* centers in the container */
  width: 100%;
  max-width: 360px;

  /* optional: keep visible while list scrolls */
  position: sticky;
  bottom: 14px;
}

/* If you have a note under the button, keep it below */
.pf-guide-compare-picker .pf-guide-compare-note{
  margin-top: 10px;
}


/* Tip note */
.pf-guide-compare-note {
    position: relative;
    z-index: 1;
    margin: var(--pf-space-sm) 0 0;
    font-size: 0.75rem;
    text-align: center;
    color: var(--pf-text-dim);
}

/* ==========================================================================
   LOGO STRIP & LINKS (OPTIONAL)
   ========================================================================== */
.pf-guide-logo-grid {
    margin: var(--pf-space-xl) 0;
}

.pf-guide-logo-heading {
    margin: 0 0 var(--pf-space-sm);
    font-family: var(--pf-font-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.pf-guide-logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--pf-space-sm);
}

.pf-guide-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--pf-transition-spring);
}

.pf-guide-logo-link:hover {
    transform: translateY(-3px) scale(1.03);
}

.pf-guide-logo {
    width: 70px;
    height: 70px;
    border-radius: var(--pf-radius-md);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--pf-shadow-sm);
    transition: all var(--pf-transition-base);
}

.pf-guide-logo-link:hover .pf-guide-logo {
    border-color: var(--pf-primary);
    box-shadow: var(--pf-shadow-md), 0 0 20px var(--pf-primary-glow);
}

.pf-guide-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pf-guide-logo-fallback {
    font-family: var(--pf-font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--pf-text-muted);
}

/* Explore more links */
.pf-guide-explore-more {
    margin-top: var(--pf-space-xl);
}

.pf-guide-links {
    list-style: none;
    margin: var(--pf-space-xs) 0 0;
    padding: 0;
}

.pf-guide-links li {
    margin-bottom: 2px;
}

.pf-guide-links a {
    display: inline-flex;
    align-items: center;
    gap: var(--pf-space-sm);
    padding: var(--pf-space-xs) 0;
    font-size: 0.9rem;
    color: var(--pf-text-muted);
    text-decoration: none;
    transition: all var(--pf-transition-fast);
}

.pf-guide-links a::before {
    content: '→';
    color: var(--pf-primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: all var(--pf-transition-fast);
}

.pf-guide-links a:hover {
    color: var(--pf-text-main);
}

.pf-guide-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.pf-guide-empty {
    position: relative;
    margin: var(--pf-space-lg) 0;
    padding: var(--pf-space-xl);
    border-radius: var(--pf-radius-lg);
    border: 1px dashed var(--pf-border-light);
    background: rgba(56, 189, 248, 0.03);
    font-size: 0.9rem;
    text-align: center;
    color: var(--pf-text-muted);
}

.pf-guide-empty::before {
    content: '📊';
    display: block;
    font-size: 1.8rem;
    margin-bottom: var(--pf-space-sm);
    opacity: 0.6;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pfFadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .pf-guide-hero {
        flex-direction: column;
    }

    .pf-guide-hero-aside {
        width: 100%;
    }

    .pf-guide-card {
        flex-direction: column;
    }

    .pf-guide-card .actions {
        flex: 0 0 auto;
        text-align: left;
        flex-direction: row;
        justify-content: flex-start;
    }

    .pf-guide-card .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pf-guide-compare-meta {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .pf-guide-page .pf-container {
        padding: var(--pf-space-sm) var(--pf-space-md) var(--pf-space-lg);
    }

    .pf-guide-title {
        font-size: 1.65rem;
    }

    .pf-guide-subtitle {
        font-size: 0.92rem;
    }

    .pf-guide-card .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pf-guide-compare-list {
        max-width: 100%;
    }

    .pf-guide-meta-chip {
        padding: 8px 12px;
        font-size: 0.65rem;
    }
    
    .pf-guide-section-title {
        font-size: 1.15rem;
    }
    
    .pf-guide-compare-picker {
        padding: var(--pf-space-md);
    }
    
    .pf-guide-quick-compare .pf-guide-section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .pf-guide-hero--directory {
        padding: var(--pf-space-lg) 0 var(--pf-space-sm);
    }
    
    .pf-guide-title {
        font-size: 1.45rem;
    }

    .pf-guide-card .stats {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Horizontal scrolling chips on mobile */
    .pf-guide-meta-row {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: flex-start !important;
        padding: 0 2px var(--pf-space-xs) 2px !important;
        margin: var(--pf-space-sm) calc(-1 * var(--pf-space-md)) 0 !important;
        gap: var(--pf-space-xs) !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pf-guide-meta-row::-webkit-scrollbar {
        display: none;
    }

    .pf-guide-meta-chip {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        scroll-snap-align: start;
    }
    
    .pf-guide-compare-row {
        padding: var(--pf-space-xs) var(--pf-space-sm);
    }
    
    .pf-guide-body h2 {
        font-size: 1.25rem;
    }
    
    .pf-guide-body h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .pf-guide-title {
        font-size: 1.3rem;
    }
    
    .pf-guide-subtitle {
        font-size: 0.88rem;
    }
    
    .pf-guide-section-title {
        font-size: 1.05rem;
    }
    
    .pf-guide-compare-btn {
        padding: var(--pf-space-xs) var(--pf-space-md);
        font-size: 0.85rem;
    }
    
    .pf-guide-quick-compare .pf-guide-section-title {
        font-size: 1rem;
    }
    
    .pf-guide-quick-compare .pf-guide-section-sub {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .pf-guide-page {
        background: #fff;
        color: #000;
    }

    .pf-guide-page::before,
    .pf-guide-page::after {
        display: none;
    }

    .pf-guide-meta-chip {
        border: 1px solid #ccc;
        background: transparent;
    }

    .pf-guide-compare-picker {
        display: none;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .pf-guide-meta-chip::after {
        animation: none;
    }

    .pf-guide-compare-picker::before {
        animation: none;
    }
}

/* ==========================================================================
   FOCUS STATES (Accessibility)
   ========================================================================== */
.pf-guide-page a:focus-visible,
.pf-guide-page button:focus-visible,
.pf-guide-page input:focus-visible {
    outline: 2px solid var(--pf-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   SCROLLBAR STYLING
   ========================================================================== */
.pf-guide-page ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pf-guide-page ::-webkit-scrollbar-track {
    background: var(--pf-bg-deeper);
}

.pf-guide-page ::-webkit-scrollbar-thumb {
    background: var(--pf-border-light);
    border-radius: 4px;
}

.pf-guide-page ::-webkit-scrollbar-thumb:hover {
    background: var(--pf-text-dim);
}

/* ==========================================================================
   SELECTION STYLING
   ========================================================================== */
.pf-guide-page ::selection {
    background: var(--pf-primary);
    color: var(--pf-bg-dark);
}

/* ==========================================================================
   GUIDE INTRO WRAPPER (OPTIONAL)
   ========================================================================== */
.pf-guide-intro {
    max-width: 900px;
    margin: var(--pf-space-xl) auto;
    font-size: 0.95rem;
    color: var(--pf-text-muted);
}

.pf-guide-intro h2 {
    position: relative;
    font-family: var(--pf-font-head);
    font-size: 1.35rem;
    font-weight: 700;
    margin: var(--pf-space-xl) 0 var(--pf-space-md);
    padding-left: var(--pf-space-md);
    color: #fff;
    display: flex;
    align-items: center;
    gap: var(--pf-space-sm);
}

.pf-guide-intro h2::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--pf-primary);
    box-shadow: 0 0 10px var(--pf-primary-glow);
}

.pf-guide-intro h3 {
    margin-top: var(--pf-space-md);
    margin-bottom: var(--pf-space-sm);
    font-weight: 600;
    color: var(--pf-text-secondary);
}

/* ==========================================================================
   DIRECTORY WRAPPER INSIDE GUIDE — TIGHT SPACING
   ========================================================================== */
.pf-guide-page .pf-dir-wrap,
.pf-guide-page .pf-dir {
    margin-top: var(--pf-space-sm);
    margin-bottom: var(--pf-space-sm);
}

.pf-guide-page .pf-card-grid,
.pf-guide-page .pf-cards-wrap,
.pf-guide-page .pf-dir-main {
    margin-bottom: 0;
}

/* ==========================================================================
   COMPARISON SECTION ALIGNMENT — TIGHT SPACING
   ========================================================================== */
.pf-guide-compare-section {
    max-width: 1200px;
    margin: var(--pf-space-lg) auto var(--pf-space-md);
}

.pf-guide-compare-section .pf-guide-section-sub {
    max-width: 700px;
    margin-bottom: var(--pf-space-sm);
}

/* Container spacing after results */
.pf-guide-results + .pf-container {
    padding-top: var(--pf-space-sm) !important;
}

/* Tighter gap above quick compare when following results */
#pfGuideQuickCompare {
    margin-top: var(--pf-space-md) !important;
}

/* Tighter gap above build-your-own picker */
#pfGuideComparePicker {
    margin-top: var(--pf-space-md) !important;
}

/* =========================================================
   GUIDES — firm.css style layout + background isolation
   Goal: no page reflow, no extra scrollbars, no footer bounce
   ========================================================= */

/* 1) Guides wrapper behaves like .pf-wrap */
.pf-guide-page{
  position: relative;
  min-height: auto;          /* same idea as firm.css */
  overflow-x: hidden;        /* only X clipped */
  overflow-y: visible;       /* do NOT create a 2nd scroll container */
}

/* 2) Background layers are fixed and never affect layout */
.pf-guide-page::before,
.pf-guide-page::after{
  position: fixed;
  inset: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform, opacity;

  /* critical: clip to viewport so scale/blur can't change scroll height */
  clip-path: inset(0);
}

/* 3) Keep your pulse animation but avoid transform-based growth
      (transform scale is the usual culprit for footer bounce) */
@keyframes pfGuideBgPulse{
  0%   { opacity: 1; }
  100% { opacity: 0.6; }
}

/* 4) If you still want a subtle “motion”, do it via background-position (safe) */
.pf-guide-page::before{
  background-size: 200% 200%;
  animation: pfGuideBgPulse 25s ease-in-out infinite alternate,
             pfGuideBgDrift 35s ease-in-out infinite alternate;
}

@keyframes pfGuideBgDrift{
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}


/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */

/* =========================================================
   GUIDE QUICK COMPARE — Centered heading outside compare card
   (used with .pf-guide-compare-head/.pf-guide-compare-body markup)
   ========================================================= */

/* Let the quick-compare section span wider and breathe */
.pf-guide-quick-compare{
  max-width: 1280px;                 /* match container max */
  margin: var(--pf-space-md) auto var(--pf-space-xl);
  padding: 0;                        /* keep wrappers controlling padding */
}

/* Centered heading block (separate from compare card) */
.pf-guide-quick-compare .pf-guide-compare-head{
  max-width: 1100px;
  margin: 8px auto 16px;
  padding: 0 14px;
  text-align: center;
}

/* Heading style (standalone, not “inside table”) */
.pf-guide-quick-compare .pf-guide-compare-title{
  margin: 0;
  font-family: var(--pf-font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Optional: subtle glow underline */
.pf-guide-quick-compare .pf-guide-compare-title::after{
  content: '';
  display: block;
  width: min(220px, 45%);
  height: 2px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.65), rgba(251,191,36,.55), transparent);
  box-shadow: 0 0 18px rgba(56,189,248,.18);
  opacity: .9;
}

/* Compare body wrapper */
.pf-guide-quick-compare .pf-guide-compare-body{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Remove any accidental left alignment rules from older section-title styles */
.pf-guide-quick-compare .pf-guide-section-title,
.pf-guide-quick-compare .pf-guide-section-sub{
  text-align: unset;
}
