:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 0%;
    
    --card: 0 0% 98%;
    --card-foreground: 0 0% 0%;
    
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 0%;
    
    --primary: 152 65% 29%;
    --primary-foreground: 0 0% 100%;
    
    --secondary: 270 52% 37%;
    --secondary-foreground: 0 0% 100%;
    
    --muted: 220 14% 96%;
    --muted-foreground: 220 12% 28%;
    
    --accent: 152 65% 29%;
    --accent-foreground: 0 0% 100%;
    
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    
    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 152 65% 29%;
    
    --radius: 0.875rem;
    
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 0 0% 0%;
    --sidebar-primary: 152 65% 29%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 220 14% 96%;
    --sidebar-accent-foreground: 0 0% 0%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 152 65% 29%;

    /* Domain colors — from SLS Brand Guide */
    --spiritual: 152 65% 29%;
    --physical: 214 60% 41%;
    --emotional: 270 52% 37%;
    --relational: 44 87% 53%;
    --intellectual: 24 82% 50%;
    --occupational: 348 63% 34%;

    /* Accessible amber for Connect headings on light surfaces. */
    --connect-heading: 26 83% 31%;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, hsl(152 65% 29%), hsl(214 60% 41%));
    --gradient-glow: radial-gradient(ellipse at 80% 0%, hsla(152, 65%, 29%, 0.04) 0%, transparent 45%);

    /* ========================================
       SURFACE SYSTEM — structural + statement bands.
       Structural neutrals dominate ~90% of every page.
       Statement (domain) surfaces appear at most once per page.
       Never two colored bands back-to-back.
       ======================================== */

    /* Structural neutrals */
    --surface-ivory: 43 50% 96%;       /* #FAF7F0 */
    --surface-white: 0 0% 100%;        /* #FFFFFF */
    --surface-graphite: 218 13% 13%;   /* #1C2024 */
    --surface-slate: 218 11% 25%;      /* #3A4048 */

    /* Statement surfaces — reuse domain colors */
    --surface-spiritual: 152 41% 34%;
    --surface-physical: 214 54% 40%;
    --surface-emotional: 270 31% 35%;
    --surface-intellectual: 50 96% 58%;
    --surface-occupational: 13 90% 57%;
    --surface-relational: 352 57% 44%;

    /* Foreground per surface — pre-bound for contrast */
    --foreground-ivory: 0 0% 0%;
    --foreground-white: 0 0% 0%;
    --foreground-graphite: 0 0% 100%;
    --foreground-slate: 0 0% 100%;
    --foreground-spiritual: 0 0% 100%;
    --foreground-physical: 0 0% 100%;
    --foreground-emotional: 0 0% 100%;
    --foreground-intellectual: 0 0% 0%;
    --foreground-occupational: 0 0% 100%;
    --foreground-relational: 0 0% 100%;

    /* Treatment tokens — texture/depth on statement bands */
    --texture-grain:
      radial-gradient(hsla(0, 0%, 100%, 0.035) 1px, transparent 1px);
    --gradient-band-radial:
      radial-gradient(ellipse at 20% 0%, hsla(0, 0%, 100%, 0.08) 0%, transparent 55%),
      radial-gradient(ellipse at 85% 100%, hsla(0, 0%, 0%, 0.18) 0%, transparent 60%);
    --shadow-card-lift: 0 20px 50px -20px hsla(218, 13%, 13%, 0.18);
  }
body{margin:0;background:hsl(var(--background));color:hsl(var(--foreground));}
.framework-reference {
  max-width: 880px;
  margin: 0 auto;
  padding: 112px 24px 64px;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
}
.framework-reference nav { font-size: 14px; }
.framework-reference a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 4px; }
.framework-reference a:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 5px; }
.framework-reference h1, .framework-reference h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.framework-reference h1 { font-size: 48px; margin: 16px 0 24px; }
.framework-reference h2 { font-size: 30px; margin: 0 0 20px; }
.framework-reference p { font-size: 18px; margin: 16px 0; }
.framework-reference .reference-eyebrow { font-size: 12px; text-transform: uppercase; color: hsl(var(--primary)); margin-top: 32px; }
.framework-reference .reference-definition { font-size: 22px; }
.framework-reference .reference-credit, .framework-reference .reference-note { color: hsl(var(--muted-foreground)); font-size: 14px; }
.framework-reference section { padding: 32px 0; border-top: 1px solid hsl(var(--border)); scroll-margin-top: 96px; }
.framework-reference .reference-intro { padding-bottom: 24px; }
.reference-list { margin: 24px 0; padding-left: 24px; }
.reference-list li { font-size: 18px; margin: 12px 0; padding-left: 4px; }
.framework-reference nav[aria-label="Related frameworks"] { display: flex; flex-wrap: wrap; gap: 16px 28px; font-size: 18px; }
.reference-static-header, .reference-static-footer { padding: 20px 24px; border-bottom: 1px solid hsl(var(--border)); font-family: 'DM Sans', sans-serif; }
.reference-static-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.reference-static-header a, .reference-static-footer a { color: hsl(var(--primary)); text-underline-offset: 4px; }
.reference-static-header > a { display: flex; align-items: center; gap: 12px; font-family: 'Cormorant Garamond', serif; font-size: 26px; text-decoration: none; }
.reference-static-header img { width: 44px; height: 44px; }
.reference-static-header nav { display: flex; gap: 24px; }
.reference-static-footer { border-top: 1px solid hsl(var(--border)); border-bottom: 0; text-align: center; }
@media (max-width: 640px) {
  .framework-reference { padding: 96px 20px 40px; }
  .framework-reference h1 { font-size: 36px; }
  .framework-reference h2 { font-size: 26px; }
  .framework-reference .reference-definition { font-size: 20px; }
}
@media print {
  .framework-reference { padding: 0; max-width: none; }
  .reference-static-header, .reference-static-footer { display: none; }
}