/* ==========================================================================
   Position Decision Index -- Shared Stylesheet v2.4.0
   Mobile-first. Dark engine pages + AEO white editorial pages.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

*,*::before,*::after{box-sizing:border-box;}
body.pdi-page{margin:0;padding:0;-webkit-font-smoothing:antialiased;}
body.pdi-dark{background:#050507;color:#e2e2ea;font-family:'Source Serif 4',Georgia,serif;}
body.pdi-light{background:#fff;color:#1a1a1a;font-family:'EB Garamond',Georgia,serif;}

/* AEO Page Content -- 8-section structure */
.pdi-aeo-wrap{max-width:780px;margin:0 auto;padding:0 1.25rem;}

/* Section 1: Hero */
.pdi-aeo-hero{padding:2.5rem 0 2rem;border-bottom:1px solid #f0f0f0;margin-bottom:2.5rem;}
.pdi-aeo-hero h1{font-family:'EB Garamond',Georgia,serif;font-size:1.875rem;font-weight:500;line-height:1.15;color:#0a0a0a;max-width:780px;margin:0 0 1rem;}
.pdi-aeo-hero .pdi-aeo-subtext{font-size:1.125rem;color:#777;font-style:italic;max-width:600px;line-height:1.55;margin:0;}

/* Section 2: Answer Block (AEO Critical) */
.pdi-aeo-answer{background:#fafafa;border-left:3px solid #0a0a0a;padding:1.5rem 1.5rem 1.5rem 1.75rem;margin-bottom:2.5rem;}
.pdi-aeo-answer h2.pdi-aeo-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.pdi-aeo-answer p{font-family:'EB Garamond',Georgia,serif;font-size:1.125rem;font-weight:400;line-height:1.7;max-width:680px;margin:0;color:#1a1a1a;}

/* Section 3: Key Takeaways */
.pdi-aeo-takeaways{margin-bottom:2.5rem;}
.pdi-aeo-takeaways h2{font-family:'IBM Plex Mono',monospace;font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#555;margin:0 0 1.25rem;}
.pdi-aeo-takeaways ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1rem;}
.pdi-aeo-takeaways ul li{font-size:1rem;line-height:1.6;padding-left:1.5rem;position:relative;color:#1a1a1a;}
.pdi-aeo-takeaways ul li::before{content:'->';position:absolute;left:0;font-family:'IBM Plex Mono',monospace;font-size:.65rem;color:#e8234a;top:.38rem;}

/* Section 4: Structural Reading */
.pdi-aeo-structural{margin-bottom:2.5rem;}
.pdi-aeo-structural h2{font-family:'EB Garamond',Georgia,serif;font-size:1.625rem;font-weight:500;color:#0a0a0a;margin:0 0 1rem;}
.pdi-aeo-structural p{font-size:1.0625rem;line-height:1.75;max-width:700px;color:#2a2a2a;margin:0 0 .85rem;}

/* Section 5: Example */
.pdi-aeo-example{background:#f7f7f7;padding:1.75rem 1.5rem;margin-bottom:2.5rem;}
.pdi-aeo-example h2{font-family:'IBM Plex Mono',monospace;font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#555;margin:0 0 1rem;}
.pdi-aeo-example p{font-size:1rem;line-height:1.7;max-width:650px;color:#2a2a2a;margin:0;}

/* Section 6: Model Interpretation (terminal) */
.pdi-aeo-model{background:#0e0e14;border:1px solid #2a2a3a;padding:1.5rem;margin-bottom:2.5rem;}
.pdi-aeo-model h2{font-family:'IBM Plex Mono',monospace;font-size:.62rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#50506a;margin:0 0 1rem;}
.pdi-aeo-model p,.pdi-aeo-model pre{font-family:'IBM Plex Mono',monospace;font-size:.875rem;color:#a0a0b8;line-height:1.7;margin:0;white-space:pre-wrap;word-break:break-word;}
.pdi-aeo-model .pdi-model-label{color:#e8234a;font-size:.58rem;letter-spacing:.15em;}

/* Section 7: Limit Block */
.pdi-aeo-limit{border-left:3px solid #e8234a;background:rgba(232,35,74,.04);padding:1.25rem 1.5rem;margin-bottom:2.5rem;}
.pdi-aeo-limit h2{font-family:'IBM Plex Mono',monospace;font-size:1.125rem;font-weight:600;color:#e8234a;margin:0 0 .6rem;text-transform:none;letter-spacing:0;}
.pdi-aeo-limit p{font-size:1rem;line-height:1.65;color:#2a2a2a;margin:0;}

/* Section 8: CTA */
.pdi-aeo-cta{padding:2.5rem 0 4rem;border-top:1px solid #f0f0f0;}
.pdi-aeo-cta-btn{display:flex;align-items:center;justify-content:center;gap:.6rem;font-family:'IBM Plex Mono',monospace;font-size:.68rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;padding:.85rem 1.6rem;border:1px solid #1a1a1a;color:#1a1a1a;text-decoration:none;transition:background .15s,color .15s;}
.pdi-aeo-cta-btn::after{content:'->';}
.pdi-aeo-cta-btn:hover{background:#1a1a1a;color:#fff;}

/* Related links */
.pdi-aeo-related{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #f0f0f0;}
.pdi-aeo-related h3{font-family:'IBM Plex Mono',monospace;font-size:.62rem;color:#888;letter-spacing:.15em;text-transform:uppercase;margin:0 0 1rem;}
.pdi-aeo-related ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.6rem;}
.pdi-aeo-related ul li a{font-family:'IBM Plex Mono',monospace;font-size:.72rem;color:#555;text-decoration:none;letter-spacing:.04em;transition:color .15s;}
.pdi-aeo-related ul li a:hover{color:#e8234a;}

/* Desktop */
@media(min-width:768px){
  .pdi-aeo-wrap{padding:0 2rem;}
  .pdi-aeo-hero h1{font-size:2.625rem;}
  .pdi-aeo-cta-btn{display:inline-flex;width:auto;}
}
@media(min-width:1024px){.pdi-aeo-wrap{padding:0 3rem;}}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.pdi-legal-wrap{max-width:780px;margin:0 auto;padding:0 1.25rem 4rem;}
.pdi-legal-hero{padding:2.5rem 0 1.75rem;border-bottom:1px solid #f0f0f0;margin-bottom:2.5rem;}
.pdi-legal-hero h1{font-family:'EB Garamond',Georgia,serif;font-size:clamp(1.75rem,4vw,2.5rem);font-weight:500;line-height:1.2;color:#0a0a0a;margin:0;}
.pdi-legal-body h2{font-family:'EB Garamond',Georgia,serif;font-size:1.35rem;font-weight:500;color:#0a0a0a;margin:2rem 0 .85rem;}
.pdi-legal-body p{font-size:1rem;line-height:1.75;color:#2a2a2a;margin:0 0 1rem;}
.pdi-legal-body strong{color:#0a0a0a;font-weight:600;}
.pdi-legal-body ul{padding-left:1.5rem;margin:0 0 1rem;}
.pdi-legal-body ul li{font-size:1rem;line-height:1.7;color:#2a2a2a;margin-bottom:.35rem;}
.pdi-legal-body a{color:#e8234a;text-decoration:underline;}
.pdi-legal-body table{width:100%;border-collapse:collapse;margin:0 0 1.5rem;font-size:.92rem;}
.pdi-legal-body table th{font-family:'IBM Plex Mono',monospace;font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;color:#555;padding:.6rem .75rem;border-bottom:2px solid #e0e0e0;text-align:left;background:#f7f7f7;}
.pdi-legal-body table td{padding:.55rem .75rem;border-bottom:1px solid #f0f0f0;vertical-align:top;}
.pdi-legal-footer{display:flex;justify-content:space-between;align-items:center;padding:2rem 0;border-top:1px solid #f0f0f0;margin-top:2.5rem;flex-wrap:wrap;gap:1rem;}
.pdi-legal-back,.pdi-legal-sim{font-family:'IBM Plex Mono',monospace;font-size:.62rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#555;text-decoration:none;padding:.5rem 1rem;border:1px solid #ddd;transition:border-color .15s,color .15s;}
.pdi-legal-back:hover,.pdi-legal-sim:hover{border-color:#0a0a0a;color:#0a0a0a;}
@media(min-width:768px){.pdi-legal-wrap{padding:0 2rem 4rem;}}
