/* ============================================
   vostego.com Design System
   Inspired by: bankrate, allbusiness, legalzoom
   Aesthetic: Calm, professional, trustworthy
   ============================================ */

:root {
  /* === Color Palette (Refined Systems Update) === */
  --color-primary: var(--brand, var(--brand));
  --color-primary-light: var(--brand-soft, #e1e5ff);
  --color-primary-dark: var(--brand-deep, #3a3f8f);
  --color-primary-subtle: var(--brand-soft, #f3f4ff);

  --color-secondary: var(--sage, var(--sage));
  --color-secondary-light: var(--sage-soft, #cfe5df);
  --color-secondary-dark: #4c7b75;

  --color-accent: var(--clay, #d9986a);
  --color-accent-light: var(--clay-soft, #f2ceb6);
  --color-accent-dark: var(--clay-deep, #b46f43);

  --color-lavender: #c5b8f2;
  --color-sky: #a7c9ff;
  --color-sage: #b7d4c8;

  --color-background: var(--paper-0, var(--paper-0));
  --color-surface: var(--card, var(--card));
  --color-surface-hover: var(--paper-1, var(--paper-1));
  --color-border: var(--line, var(--line));
  --color-border-dark: var(--line-strong, var(--line-strong));

  --color-text-primary: var(--ink-1, var(--ink-1));
  --color-text-secondary: var(--ink-2, var(--ink-2));
  --color-text-tertiary: var(--ink-3, var(--ink-3));
  --color-text-inverse: var(--on-ink, var(--card));

  --color-success: #3c8f7c;
  --color-warning: #c9772a;
  --color-error: #c45454;
  --color-info: #6da0f1;

  /* === Resilience & Harmonized Tokens === */
  --resilience-success: var(--sage);
  --resilience-warning: var(--clay);
  --resilience-error: var(--clay);
  --vostego-primary: var(--brand);
  --vostego-radius: var(--r-md);
  --vostego-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);

  --color-doodle-ink: #111111;
  --color-doodle-fade: rgba(17, 17, 17, 0.08);
  --color-doodle-aqua-bg: #dcf5f7;
  --color-doodle-lilac-bg: #efe9ff;
  --color-doodle-clay-bg: #f6ebe5;

  /* Dark mode surfaces (used by skeleton loaders, overlays) */
  --color-surface-dark: #171a1f;
  --color-surface-hover-dark: #1f232b;

  /* === Watercolor Palette (from DESIGN.md) === */
  --wc-mint-light: #c8e6d7;
  --wc-mint-primary: #a8d8ba;
  --wc-sage-light: #d0dcc5;
  --wc-sage-primary: #b8c9a8;
  --wc-coral-light: #f5d0c8;
  --wc-coral-primary: #f0b8b0;
  --wc-rose-light: #f0d0df;
  --wc-rose-primary: #e8b8d0;
  --wc-apricot-light: #f5dcc2;
  --wc-apricot-primary: #f0c8a0;
  --wc-butter-light: #f9ecc8;
  --wc-butter-primary: #f5e0a0;
  --wc-periwinkle-light: #dcd4f0;
  --wc-periwinkle-primary: #c0b8e8;
  --wc-teal-light: #c8dfe3;
  --wc-teal-primary: #a0d0d8;
  --wc-blush-light: #f5dcd6;
  --wc-blush-primary: #f0c8c0;
  --wc-lavender-light: #e8dff7;
  --wc-lavender-primary: #d8c8f0;
   --wc-sky: #a7c9ff;

   /* === Watercolor Text Colors (for topic tags) === */
   --wc-mint-text: #1b5e20;
   --wc-mint-text-hover: #0d3817;
   --wc-coral-text: #bf360c;
   --wc-coral-text-hover: #7d2410;
   --wc-rose-text: #880e4f;
   --wc-rose-text-hover: #5d0a3d;
   --wc-apricot-text: #e65100;
   --wc-apricot-text-hover: #b23600;
   --wc-butter-text: #f57f17;
   --wc-butter-text-hover: #e65100;
   --wc-periwinkle-text: #0277bd;
   --wc-periwinkle-text-hover: #01579b;
   --wc-periwinkle-text-alt: #3f2c70;
   --wc-periwinkle-text-alt-hover: #2e1f52;
   --wc-teal-text: #01579b;
   --wc-teal-text-hover: #003d82;
   --wc-teal-text-alt: #00695c;
   --wc-teal-text-alt-hover: #004c40;
   --wc-blush-text: #3e2723;
   --wc-blush-text-hover: #2c1b19;
   --wc-lavender-text: #37474f;
   --wc-lavender-text-hover: #263238;
   --wc-sage-text: #556d2d;
   --wc-sage-text-hover: #3d4b23;
   --wc-sky-text: #1565c0;
   --wc-sky-text-hover: #0d47a1;
   --wc-purple-text: #6a1b9a;
   --wc-purple-text-hover: #4a148c;
    --wc-pink-text: #c2185b;
    --wc-pink-text-hover: #880e4f;

    /* === Dashboard-Specific Button States & Status Colors === */
    --btn-dark-primary: #4d53b8;        /* Dark button state */
    --btn-dark-hover: #3d4196;          /* Darker hover state */
    
    /* Overlay colors (for form validation & status states) */
    --overlay-error: rgba(244, 199, 199, 0.1);      /* Error background */
    --overlay-error-focus: rgba(244, 199, 199, 0.2); /* Error focus */
    --overlay-success: rgba(184, 230, 184, 0.1);    /* Success background */
    --overlay-success-focus: rgba(184, 230, 184, 0.2); /* Success focus */
    --overlay-info: rgba(95, 106, 211, 0.15);       /* Info background */
    --overlay-info-hover: rgba(95, 106, 211, 0.25); /* Info hover */
    --overlay-info-subtle: rgba(95, 106, 216, 0.06); /* Info subtle background */
    --overlay-info-strong: rgba(95, 106, 216, 0.08); /* Info strong focus */
    --overlay-brand-pulse: rgba(159, 179, 232, 0.3); /* Brand pulse animation */
    --overlay-brand-pulse-strong: rgba(159, 179, 232, 0.7); /* Brand pulse strong */
    --overlay-brand-pulse-fade: rgba(159, 179, 232, 0); /* Brand pulse fade */
    --overlay-white: rgba(255, 255, 255, 0.3);      /* White overlay */
    --overlay-dark-modal: rgba(0, 0, 0, 0.5);       /* Dark modal overlay */
    --overlay-white-radial: rgba(255, 255, 255, 0.5); /* White radial */
    --overlay-info-focus: rgba(95, 106, 211, 0.2);  /* Info focus */
    
    /* Semantic success color (green) */
    --color-semantic-success-primary: #10b981;      /* Success primary green */
    
    /* Overlay - Dark/Semi-transparent */
    --overlay-dark-semi: rgba(15, 17, 21, 0.45);    /* Dark semi-transparent overlay */
    
    /* Semantic status colors (additional) */
    --color-semantic-error-primary: #ff4d4f;        /* Error red (dashboard polish) */
    --color-semantic-success-dark: #2c6d54;         /* Dark green (job match) */
    --color-semantic-accent-dark: #b25b3a;          /* Dark brown/orange (job gap) */
    
     /* Shadow overlays (black with opacity) */
     --shadow-overlay-light: rgba(0, 0, 0, 0.04);    /* Light shadow overlay */
     --shadow-overlay-base: rgba(0, 0, 0, 0.1);      /* Base shadow overlay */
     
     /* Additional overlay variants */
     --overlay-white-light: rgba(255, 255, 255, 0.2); /* White light overlay (apply modal) */
     --overlay-border-light: rgba(0, 0, 0, 0.12);     /* Light border overlay (ui-states) */
     --color-semantic-error-light: rgba(196, 84, 84, 0.08); /* Error light bg (apply modal) */
     --color-semantic-error-border: rgba(196, 84, 84, 0.25); /* Error border (apply modal) */
     --color-accent-gold: #b06900;                    /* Gold accent (ui-states warning) */
     
     /* Component gradient colors */
     --component-gradient-indigo-dark: #1e1b4b;       /* Dark indigo gradient start */
     --component-gradient-indigo-light: #312e81;      /* Light indigo gradient end */
     --component-gradient-indigo-text: #e0e7ff;       /* Indigo text color */
     --component-gradient-green-dark: #064e3b;        /* Dark green gradient start */
     --component-gradient-green-light: #047857;       /* Light green gradient end */
     --component-gradient-green-text: #d1fae5;        /* Green text color */
     --component-gradient-green-accent: #6ee7b7;      /* Green accent color */
     --component-gradient-orange-dark: #78350f;       /* Dark orange gradient start */
     --component-gradient-orange-light: #b45309;      /* Light orange gradient end */
     --component-gradient-orange-text: #fef3c7;       /* Orange text color */
     --component-gradient-orange-accent: #fed7aa;     /* Orange accent color */
     --component-gradient-dark-bg: #0f172a;           /* Component dark background */
     --component-gradient-dark-text: #e2e8f0;         /* Component dark text */
     
     /* Resume coach modal colors */
     --color-surface-light: #f8fafc;                  /* Light surface (resume-coach-modal) */
     --color-text-muted: #334155;                     /* Muted text (resume-coach-modal) */
     --overlay-dark-strong: rgba(15, 23, 42, 0.6);    /* Dark strong overlay (resume-coach-modal) */
     
     /* Component-specific status and utility colors */
     --component-text-blue: #93c5fd;                  /* Light blue text (resource export tooltip) */
     --component-text-gray: #94a3b8;                  /* Slate gray text (export note) */
     --component-text-green: #065f46;                 /* Dark green text (status) */
     --component-bg-error-light: #fee2e2;             /* Light error background */
     --component-text-error-dark: #991b1b;            /* Dark error text */
     --component-text-brown: #92400e;                 /* Brown text (warning/status) */
     --component-bg-info-light: #dbeafe;              /* Light info background */
     --component-text-info-dark: #1e40af;             /* Dark info text */
     --component-bg-neutral: #fafafa;                 /* Neutral background */
     --component-border-light: #e8e8e8;               /* Light border */
     --overlay-blue-light: rgba(37, 99, 235, 0.1);    /* Blue light overlay (components) */
     --overlay-white-strong: rgba(255,255,255,0.8);   /* White strong overlay (components) */
     --overlay-dark-medium: rgba(15, 23, 42, 0.4);    /* Dark medium overlay (components) */
     
     /* Social media brand colors */
     --social-github: #24292e;                        /* GitHub dark gray */
     --social-linkedin: #0077B5;                      /* LinkedIn blue */
     --social-apple: #000000;                         /* Apple black */
     --social-twitter: #000000;                       /* Twitter (X) black */
     --social-facebook: #1877F2;                      /* Facebook blue */
     --social-mastodon: #000000;                      /* Mastodon black */
     --social-bluesky: #00A4EF;                       /* Bluesky blue */
     --social-google: #4285F4;                        /* Google blue */


    /* Semantic status colors */
    --color-semantic-success-bg: #dcfce7;           /* Success background */
    --color-semantic-success-text: #166534;         /* Success text */
    --color-semantic-success-border: #bbf7d0;       /* Success border */
    --color-semantic-info-bg: #fafbfc;              /* Info background */
    
    /* Gradient stops for action buttons */
    --gradient-light-lavender-start: #e8d5ff;       /* Light lavender gradient start */
    --gradient-light-lavender-end: #e0d1ff;         /* Light lavender gradient end */
    --gradient-dark-lavender-start: #d9c0f8;        /* Dark lavender gradient start */
    --gradient-dark-lavender-end: #d0baf6;          /* Dark lavender gradient end */
    --gradient-paper-start: #f5f5f3;                /* Paper gradient start */
     --gradient-paper-light: #f9f9f7;                /* Paper light gradient end */
     --gradient-fade: #f0eff7;                       /* Paper fade color */
     
     /* Dashboard-specific gradients */
     --dashboard-gradient-lavender-light: #f0eff7;   /* Light lavender gradient stop */
     --dashboard-gradient-lavender-dark: #dcd6f7;    /* Dark lavender gradient stop */
     
     /* Dashboard overlay colors */
     --overlay-brand-pulse-transparent: rgba(159, 179, 232, 0); /* Pulse fade */
     --overlay-warmth-light: rgba(244, 228, 193, 0.1); /* Warm beige overlay */
     --overlay-cool-light: rgba(212, 229, 247, 0.1); /* Cool blue overlay */
     --overlay-error-pulse-strong: rgba(255, 0, 0, 0.7); /* Error pulse strong */
     --overlay-error-pulse-fade: rgba(255, 0, 0, 0); /* Error pulse fade */
     
     /* Dashboard error states (button/form) */
     --dashboard-error-bg: #ff4d4f;                  /* Error red background */
     --dashboard-success-bg: #52c41a;                /* Success green background */
     --dashboard-error-light-border: #e8a8a8;        /* Error light border */
     --dashboard-error-medium-text: #a03030;         /* Error medium text */
     --dashboard-error-dark-text: #8b2e2e;           /* Error dark text */
     --dashboard-accent-gold: #b8860b;               /* Gold/brown accent */
     
     /* Dark mode theme overrides */
     --dark-mode-surface: #1a1a1a;                   /* Dark surface background */
     --dark-mode-border: #333;                       /* Dark border color */
     --dark-mode-text-primary: #f5f5f5;              /* Light text on dark */
     --dark-mode-bg-secondary: #2d2d2d;              /* Secondary dark background */
     --dark-mode-text-default: #f0eff7;              /* Default light text */
     --dark-mode-primary: #b3c7f0;                    /* Light primary on dark */
     --dark-mode-accent: #ead5c7;                    /* Light accent on dark */
     
     /* Animation / Skeleton Loading Gradients */
     --skeleton-light-light: #f0f0f0;                /* Light skeleton gradient start/end */
     --skeleton-light-dark: #e0e0e0;                 /* Light skeleton gradient middle */
     --skeleton-dark-light: #2a2a2a;                 /* Dark skeleton gradient start/end */
     --skeleton-dark-dark: #1a1a1a;                  /* Dark skeleton gradient middle */
     
     /* Admin Dark Theme Overlay Colors */
     --admin-overlay-indigo-light: rgba(107, 127, 216, 0.1); /* Indigo light overlay */
     --admin-overlay-indigo-medium: rgba(107, 127, 216, 0.15); /* Indigo medium overlay */
     --admin-overlay-indigo-dark: rgba(107, 127, 216, 0.2); /* Indigo dark overlay */
     --admin-button-indigo: #5a6ec4;                 /* Admin indigo button */
     --admin-overlay-error-light: rgba(239, 68, 68, 0.1); /* Error light overlay */
     --admin-overlay-warning-light: rgba(245, 158, 11, 0.1); /* Warning light overlay */
     --admin-overlay-success-light: rgba(16, 185, 129, 0.1); /* Success light overlay */
     
     /* Category Badge Colors (sidebar-harmonized) */
     --category-finance-bg: #f0f7ff;                 /* Finance background */
     --category-finance-text: #4682b4;               /* Finance text */
     --category-finance-border: #d0e3ff;             /* Finance border */
     --category-legal-bg: #fff9f0;                   /* Legal background */
     --category-legal-text: #b8860b;                 /* Legal text */
     --category-legal-border: #ffecce;               /* Legal border */
     --category-career-bg: #f2faf4;                  /* Career background */
     --category-career-text: #556b2f;                /* Career text */
     --category-career-border: #d9f0e1;              /* Career border */
     --category-consulting-bg: #faf5ff;              /* Consulting background */
     --category-consulting-text: #8a2be2;            /* Consulting text */
     --category-consulting-border: #ead9ff;          /* Consulting border */
     --category-marketing-bg: #f0fcf9;               /* Marketing background */
     --category-marketing-text: #20b2aa;             /* Marketing text */
     --category-marketing-border: #d4f5ee;           /* Marketing border */
     --category-operations-bg: #fffff0;              /* Operations background */
     --category-operations-text: #daa520;            /* Operations text */
     --category-operations-border: #ffffd0;          /* Operations border */
     --category-news-bg: #f8f9fa;                    /* News background */
     --category-news-text: #708090;                  /* News text */
     --category-news-border: #e9ecef;                /* News border */
     --category-template-bg: #f5f3ff;                /* Template background */
     --category-template-text: #6d28d9;              /* Template text */
     --category-template-border: #ddd6fe;            /* Template border */
     --category-tool-bg: #ecfeff;                    /* Tool background */
     --category-tool-text: #0891b2;                  /* Tool text */
     --category-tool-border: #cffafe;                /* Tool border */
     --category-library-bg: #fff1f2;                 /* Library background */
     --category-library-text: #e11d48;               /* Library text */
     --category-library-border: #ffe4e6;             /* Library border */
     
     /* Instance Switcher Specific Colors */
     --instance-switcher-gradient-start: #667eea;    /* Purple gradient start */
     --instance-switcher-gradient-end: #764ba2;      /* Purple gradient end */
     --instance-switcher-button: #667eea;            /* Purple button color */
     --instance-switcher-bg-light: #f5f5f5;          /* Light gray background */
     --overlay-white-light-3: rgba(255, 255, 255, 0.3); /* White overlay 30% */
     --overlay-white-light-15: rgba(255, 255, 255, 0.15); /* White overlay 15% */
     --overlay-white-light-25: rgba(255, 255, 255, 0.25); /* White overlay 25% */
     --overlay-white-light-50: rgba(255, 255, 255, 0.5); /* White overlay 50% */
     --overlay-white-light-2: rgba(255, 255, 255, 0.2); /* White overlay 20% */
     --overlay-white-light-3: rgba(255, 255, 255, 0.3); /* White overlay 30% */
     --overlay-white-light-35: rgba(255, 255, 255, 0.35); /* White overlay 35% */
     --overlay-white-light-4: rgba(255, 255, 255, 0.4); /* White overlay 40% */
      --overlay-white-light-6: rgba(255, 255, 255, 0.6); /* White overlay 60% */
      
      /* News Page Specific - Neutral Grays */
      --gray-divider-light: rgba(0, 0, 0, 0.05); /* Light divider */
      --gray-divider-medium: rgba(0, 0, 0, 0.12); /* Medium divider */
      --gray-bg-e0: #E0E0E0;                     /* Light gray background */
      --gray-bg-e6: #E6E6E6;                     /* Medium gray background */
      --gray-bg-f3: #F3F3F3;                     /* Very light gray */
      
      /* News Page Specific - Dark Mode */
      --dark-bg-1f: #1f232b;                     /* Primary dark background */
      --dark-bg-2d: #2d323d;                     /* Secondary dark background */
      --dark-overlay: rgba(0, 0, 0, 0.4);       /* Dark overlay */
      
      /* News Page Specific - Brand Accent Overlays (Blue) */
      --brand-overlay-01: rgba(95, 106, 211, 0.01);  /* 1% */
      --brand-overlay-02: rgba(95, 106, 211, 0.02);  /* 2% */
      --brand-overlay-03: rgba(95, 106, 211, 0.03);  /* 3% */
      --brand-overlay-04: rgba(95, 106, 211, 0.04);  /* 4% */
      --brand-overlay-05: rgba(95, 106, 211, 0.05);  /* 5% */
      --brand-overlay-08: rgba(95, 106, 211, 0.08);  /* 8% */
      --brand-overlay-10: rgba(95, 106, 211, 0.1);   /* 10% */
      --brand-overlay-85: rgba(230, 230, 230, 0.85); /* Gradient center */
      --shimmer-transparent: rgba(243, 243, 243, 0);   /* Transparent shimmer edge */
      
      /* Refined Marketing Specific - Organic Accent Colors */
      --marketing-earthy: rgba(196, 123, 74, 1);       /* Burnt orange */
      --marketing-earthy-18: rgba(196, 123, 74, 0.18); /* Burnt orange at 18% */
      --marketing-earthy-14: rgba(196, 123, 74, 0.14); /* Burnt orange at 14% */
      --marketing-earthy-30: rgba(196, 123, 74, 0.3);  /* Burnt orange at 30% */
      --marketing-sage: rgba(109, 168, 162, 1);        /* Sage/Teal */
      --marketing-sage-16: rgba(109, 168, 162, 0.16);  /* Sage at 16% */
      --marketing-sage-14: rgba(109, 168, 162, 0.14);  /* Sage at 14% */
      --marketing-sage-30: rgba(109, 168, 162, 0.3);   /* Sage at 30% */
      
      /* Refined Marketing Specific - Dark Overlays & Shadows */
      --marketing-dark-charcoal: rgba(20, 22, 28, 1);      /* Dark charcoal */
      --marketing-dark-06: rgba(20, 22, 28, 0.06);         /* Charcoal at 6% */
      --marketing-dark-48: rgba(20, 22, 28, 0.48);         /* Charcoal at 48% */
      --marketing-dark-92: rgba(20, 22, 28, 0.92);         /* Charcoal at 92% (near opaque) */
      
      /* Refined Marketing Specific - Text & Accents */
      --marketing-lavender: rgba(230, 232, 238, 1);       /* Light lavender text */
      --marketing-white-70: rgba(255, 255, 255, 0.7);     /* White text at 70% */
      --marketing-white-82: rgba(255, 255, 255, 0.82);    /* White text at 82% */
      --marketing-accent-blue: rgba(95, 106, 211, 0.22);  /* Blue accent at 22% */
      
      /* Shadow Hierarchy */
      --shadow-04: rgba(0, 0, 0, 0.04);                   /* Extra light shadow */
      --shadow-06: rgba(0, 0, 0, 0.06);                   /* Light shadow */
      --shadow-10: rgba(0, 0, 0, 0.1);                    /* Medium shadow */
      --shadow-12: rgba(0, 0, 0, 0.12);                   /* Medium-dark shadow */
      --shadow-18: rgba(0, 0, 0, 0.18);                   /* Dark shadow */
      
      /* Org Layout Specific - White Overlays */
      --overlay-white-10: rgba(255, 255, 255, 0.1);   /* White overlay 10% */
      --overlay-white-12: rgba(255, 255, 255, 0.12);  /* White overlay 12% */
      --overlay-white-15: rgba(255, 255, 255, 0.15);  /* White overlay 15% */
      --overlay-white-18: rgba(255, 255, 255, 0.18);  /* White overlay 18% */
      --overlay-white-20: rgba(255, 255, 255, 0.2);   /* White overlay 20% */
      --overlay-white-30: rgba(255, 255, 255, 0.3);   /* White overlay 30% */
      --overlay-white-72: rgba(255, 255, 255, 0.72);  /* White overlay 72% */
      
      /* Org Layout Specific - Organization Role Colors */
      --org-status-alert: rgba(196, 84, 84, 0.08);    /* Alert/Critical (red) */
      --org-status-caution: rgba(201, 119, 42, 0.4);  /* Caution border (orange) */
      --org-status-caution-bg: rgba(201, 119, 42, 0.08); /* Caution background */
      
      /* Org Layout Specific - Member Role Border Colors */
      --role-engineering: #3b82f6;                    /* Engineering (blue) */
      --role-product: #ec4899;                        /* Product (pink) */
      --role-design: #8b5cf6;                         /* Design (purple) */
      --role-manager: #f59e0b;                        /* Manager (amber) */
      
      /* Org Layout Specific - Blue Color System */
      --org-blue-50: #f0f9ff;                         /* Very light blue */
      --org-blue-100: #e0f2fe;                        /* Light blue */
      --org-blue-200: #bae6fd;                        /* Medium light blue */
      --org-blue-400: #0ea5e9;                        /* Medium blue */
      --org-blue-500: #38bdf8;                        /* Medium-bright blue */
      --org-blue-600: #0284c7;                        /* Dark blue */
      --org-blue-700: #0369a1;                        /* Dark blue (text) */
      --org-blue-900: #0c4a6e;                        /* Very dark blue */
      
      /* Org Layout Specific - Dark Gradient */
      --org-dark-gradient-start: #0f172a;             /* Dark gradient start */
      --org-dark-gradient-end: #1e293b;               /* Dark gradient end */
      
      /* Enterprise Paths Specific - Slate/Blue Color System */
      --ep-accent: #2563EB;                           /* Primary accent (blue) */
      --ep-accent-dark: #1e3a8a;                      /* Dark accent (navy) */
      --ep-dark-bg: #0f172a;                          /* Very dark background */
      --ep-slate-900: #0f172a;                        /* Text primary */
      --ep-slate-700: #334155;                        /* Text secondary */
      --ep-slate-600: #475569;                        /* Text tertiary */
      --ep-slate-500: #64748b;                        /* Text muted */
      --ep-slate-400: #94a3b8;                        /* Text subtle */
      --ep-slate-200: #e2e8f0;                        /* Border primary */
      --ep-slate-150: #cbd5e1;                        /* Border secondary */
      --ep-slate-100: #f1f5f9;                        /* Border subtle */
      --ep-slate-50: #f8fafc;                         /* Background light */
      --ep-slate-700: #334155;                        /* Text secondary */
      
      /* Enterprise Paths Specific - Status Colors */
      --ep-warning-bg: #fffbeb;                       /* Warning background */
      --ep-warning-border: #fde68a;                   /* Warning border */
      --ep-warning-dark: #78350f;                     /* Warning text (dark) */
      --ep-warning-medium: #92400e;                   /* Warning text (medium) */
      --ep-success-bg: #f0fdf4;                       /* Success background */
      --ep-success-border: #bbf7d0;                   /* Success border */
      --ep-success: #166534;                          /* Success text (dark) */
      --ep-success-bright: #059669;                   /* Success accent (bright) */
      
      --ep-warning: #d97706;                          /* Warning/Amber */
      
      --ep-indigo-bg: #e0e7ff;                        /* Indigo background */
      --ep-indigo-text: #3730a3;                      /* Indigo text */
      
      /* Enterprise Paths Specific - Gradients & Overlays */
      --ep-dark-gradient: linear-gradient(135deg, #0f172a, #1e3a8a);
      --ep-white-light-10: rgba(255, 255, 255, 0.1);
      --ep-white-light-30: rgba(255, 255, 255, 0.3);
      
      /* Material Design - Complete Gradient Palette for Topics */
      --md-pink-1: #f8bbd0;
      --md-pink-2: #f48fb1;
      --md-pink-3: #f06292;
      --md-green-1: #c8e6c9;
      --md-green-2: #a5d6a7;
      --md-green-3: #81c784;
      --md-light-blue-1: #e1f5fe;
      --md-light-blue-2: #b3e5fc;
      --md-light-blue-3: #81d4fa;
      --md-blue-1: #e3f2fd;
      --md-blue-2: #bbdefb;
      --md-blue-3: #90caf9;
      --md-purple-1: #f3e5f5;
      --md-purple-2: #e1bee7;
      --md-purple-3: #ce93d8;
      --md-teal-1: #e0f2f1;
      --md-teal-2: #b2dfdb;
      --md-teal-3: #80cbc4;
      --md-amber-1: #fff9c4;
      --md-amber-2: #fff59d;
      --md-amber-3: #fff176;
      --md-orange-1: #ffccbc;
      --md-orange-2: #ffab91;
      --md-orange-3: #ff8a65;
      --md-indigo-1: #d1c4e9;
      --md-indigo-2: #b39ddb;
      --md-indigo-3: #9575cd;
      --md-rose-1: #fce4ec;
      --md-rose-2: #f8bbd0;
      
      /* Material Design - Additional Colors (Amber, Yellow-Green, Lime) */
      --md-amber-yellow-1: #ffe0b2;
      --md-amber-yellow-2: #ffcc80;
      --md-amber-yellow-3: #ffb74d;
      --md-lime-yellow-1: #f0f4c3;
      --md-lime-yellow-2: #e6ee9c;
      

  --font-display: "DM Sans", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Line heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.9;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* === Spacing === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.65rem;
  --radius-lg: 0.85rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-full: 9999px;
  --radius-btn-xs: 0.75rem;
  --radius-btn-lg: 1.125rem;

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-btn-default: 0 2px 6px rgba(0, 0, 0, 0.08), 0 var(--space-1) var(--space-3) rgba(0, 0, 0, 0.04);
  --shadow-btn-hover: 0 var(--space-1) var(--space-3) rgba(0, 0, 0, 0.12), 0 var(--space-2) var(--space-6) rgba(0, 0, 0, 0.08);
  --shadow-focus: 0 0 0 3px rgba(95, 106, 211, 0.2);

   /* === Layout === */
   --container-max-width: 1200px;
   --content-max-width: 720px;
   --text-container-max-width: 600px;
   --sidebar-width: 320px;
   --search-input-min-width: 300px;
   --form-field-min-width: 250px;
   --header-max-width: 320px;
   --container-padding: var(--space-8);

  /* === Easing === */
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* === Transitions === */
  --transition-fast: 150ms var(--ease-smooth);
  --transition-base: 260ms var(--ease-smooth);
  --transition-slow: 420ms var(--ease-smooth);

  /* === Z-index === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Responsive Typography & Mobile Header Polish */
h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .navbar {
    height: var(--space-16) !important;
  }
  
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
  
  .container {
    padding: 0 var(--space-5);
  }
}

[data-theme="dark"] {
  /* Re-bind legacy --color-* tokens to refined dark-theme values so any
     component still referencing them re-themes correctly. */
  --color-primary: var(--brand);
  --color-primary-light: var(--brand-soft);
  --color-primary-dark: var(--brand-deep);
  --color-primary-subtle: var(--brand-soft);
  --color-secondary: var(--sage);
  --color-secondary-light: var(--sage-soft);
  --color-secondary-dark: #c1fff7;
  --color-accent: var(--clay);
  --color-accent-light: var(--clay-soft);
  --color-accent-dark: var(--clay-deep);
  --color-background: var(--paper-0);
  --color-surface: var(--card);
  --color-surface-hover: var(--paper-1);
  --color-border: var(--line);
  --color-border-dark: var(--line-strong);
  --color-text-primary: var(--ink-1);
  --color-text-secondary: var(--ink-2);
  --color-text-tertiary: var(--ink-3);
  --color-text-inverse: var(--on-ink);
  background-color: var(--paper-0);
  color: var(--ink-0);
}

[data-theme="editorial"] {
  /* Re-bind legacy --color-* tokens to refined editorial values so any
     component still referencing them (navbar legacy paths, older
     site components) inherits the navy/periwinkle/dusty-rose palette
     instead of staying on warm-purple. */
  --color-primary: var(--brand);
  --color-primary-light: var(--brand-soft);
  --color-primary-dark: var(--brand-deep);
  --color-primary-subtle: var(--brand-soft);
  --color-secondary: var(--sage);
  --color-secondary-light: var(--sage-soft);
  --color-accent: var(--clay);
  --color-accent-light: var(--clay-soft);
  --color-accent-dark: var(--clay-deep);
  --color-background: var(--paper-0);
  --color-surface: var(--card);
  --color-surface-hover: var(--paper-1);
  --color-border: var(--line);
  --color-border-dark: var(--line-strong);
  --color-text-primary: var(--ink-0);
  --color-text-secondary: var(--ink-1);
  --color-text-tertiary: var(--ink-3);
  --color-text-inverse: var(--on-ink);
  background-color: var(--paper-0);
  color: var(--ink-2);
}

/* ============================================
   Base Styles
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--space-4);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink-0);
  background-color: var(--paper-0);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  color: var(--ink-0);
}

h3 { font-size: var(--text-2xl); margin-top: var(--space-6); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: var(--font-semibold); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--brand-deep);
  text-decoration: none;
  outline: none;
}

.section {
  padding: var(--space-20) var(--space-10);
}

@media (max-width: 1024px) {
  .section {
    padding: var(--space-20) var(--space-5);
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-12) var(--space-5);
  }
}

@media (max-width: 599px) {
  .section {
    padding: var(--space-12) var(--space-4);
  }
}

@media (max-width: 374px) {
  .section {
    padding: var(--space-8) var(--space-3);
  }
}

/* ============================================
   Layout
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  
  
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  
  
  /* Footer responsive improvements */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: var(--space-8);
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  
  /* Section padding consistency */
  .section {
    padding: var(--space-12) 0;
  }
  
  .container {
    padding: 0 var(--space-6);
  }
  
  /* Hero actions stacking */
  .hero-actions {
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Responsive typography */
  h1 { font-size: var(--text-3xl) !important; }
  h2 { font-size: var(--text-2xl) !important; }
  h3 { font-size: var(--text-xl) !important; }
  
  body {
    font-size: 14px;
  }
  
  /* Ensure consistent button sizing on mobile */
  button, .btn, .modal-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Touch-friendly spacing */
  .card, .modal-content {
    padding: var(--space-4);
  }
  
  /* Fix overflow on small screens - maintain minimum buffer */
  .container, .resources-container {
    padding: 0 var(--space-4);
  }
  
  /* Modal adjustments for mobile */
  .modal-content {
    width: 95%;
    margin: 0 auto;
  }

  /* Ensure breadcrumbs and other elements maintain minimum padding */
  .breadcrumbs {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

@media (max-width: 480px) {
  /* Extra small screen optimizations */
  h1 { font-size: var(--text-2xl) !important; }
  h2 { font-size: var(--text-xl) !important; }
  h3 { font-size: var(--text-lg) !important; }
  
  body {
    font-size: 13px;
  }
  
  /* Stack all flex items */
  .flex-row,
  .flex-between,
  .flex-center {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Full width inputs and buttons */
  input, button, .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
  
  /* Reduce padding on very small screens */
  .space-4, .p-4 { padding: var(--space-2); }
  .space-6, .p-6 { padding: var(--space-3); }
  .space-8, .p-8 { padding: var(--space-4); }
  
  /* Modal footer adjustments */
  .modal-auth-buttons {
    flex-direction: column;
  }
  
  .modal-auth-buttons button {
    width: 100%;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Slightly larger tap targets */
  button, a, input {
    min-height: 48px;
  }
  
  /* Reduce hover effects on touch devices */
  button:hover {
    transform: none;
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Component Library
   ============================================ */

/* === BUTTONS === */
/* Warm, human-centered design matching doodle aesthetic */

.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  text-align: center;
  border-radius: var(--r-lg);
  font-family: var(--font-sans);
  transition: all var(--transition-base);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  overflow-wrap: break-word;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--shadow-btn-default);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .btn {
    white-space: normal;
    word-break: break-word;
  }
}

/* Subtle inner highlight for warmth (like doodle white strokes) */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 2px var(--space-1) rgba(0, 0, 0, 0.08);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:focus {
  outline: none;
  box-shadow: var(--shadow-btn-hover), var(--shadow-focus);
}

/* Button Variants - Each with personality */

/* Primary Variant - Warm, inviting, human */
.btn-primary {
  background: linear-gradient(135deg, #6b7fd8 0%, var(--brand) 100%);
  color: var(--color-text-inverse);
  border-color: var(--brand);
}

.btn-primary:hover:not(:disabled),
a.btn-primary:hover,
.job-card .btn-primary:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%) !important;
  border-color: var(--brand-deep) !important;
  color: var(--color-text-inverse) !important;
  text-decoration: none !important;
}

/* Bookmark Button - Icon only consistent style */
.bookmark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  border-color: var(--brand);
  background: var(--paper-1);
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.bookmark-btn.lg {
  width: 48px;
  height: 48px;
}

.bookmark-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.bookmark-btn.bookmarked {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

.bookmark-btn svg {
  width: var(--space-4);
  height: var(--space-4);
  flex-shrink: 0;
  transition: fill var(--transition-base);
}

.bookmark-btn.bookmarked svg {
  fill: var(--brand);
}

@media (max-width: 480px) {
  .bookmark-btn.lg {
    width: var(--space-10);
    height: var(--space-10);
  }
}

/* Secondary Variant - Complementary accent */
.btn-secondary {
  background: linear-gradient(135deg, #7db5af 0%, var(--sage) 100%);
  color: var(--color-text-inverse);
  border-color: var(--sage);
}

.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--sage) 0%, var(--color-secondary-dark) 100%);
  border-color: var(--color-secondary-dark);
}

/* Outline Variant - Warm outline style, not cold */
.btn-outline {
  background-color: var(--paper-1);
  color: var(--brand);
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: 0 2px var(--space-1) rgba(197, 184, 242, 0.1);
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.btn-outline:hover:not(:disabled) {
  background: linear-gradient(135deg, #f8f7ff 0%, var(--brand-soft) 100%);
  border-color: var(--brand);
  box-shadow: 0 2px var(--space-2) rgba(95, 106, 211, 0.12), 0 var(--space-1) var(--space-3) rgba(95, 106, 211, 0.06);
  transform: translateY(-2px) scale(1.02);
}

.btn-outline:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  transition-duration: 100ms;
}

.btn-outline-dark {
  background-color: white;
  color: #333;
  border-color: #e0e0e0;
  border-width: 2px;
  box-shadow: 0 2px var(--space-1) rgba(0, 0, 0, 0.06);
}

.btn-outline-dark:hover:not(:disabled) {
  background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
  border-color: #999;
  box-shadow: 0 2px var(--space-2) rgba(0, 0, 0, 0.1), 0 var(--space-1) var(--space-3) rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Ghost Variant - Subtle, friendly */
.btn-ghost {
  background-color: transparent;
  color: var(--brand);
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--brand-soft);
  color: var(--brand-deep);
  box-shadow: 0 2px 6px rgba(95, 106, 211, 0.08);
}

.btn-ghost:active:not(:disabled) {
  background-color: var(--brand-soft);
}

/* Link Variant - Conversational */
.btn-link {
  background-color: transparent;
  color: var(--brand);
  border-color: transparent;
  padding: 0;
  text-decoration: none;
  font-weight: 500;
  box-shadow: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

.btn-link:hover:not(:disabled) {
  color: var(--brand-deep);
  border-bottom-color: var(--brand-deep);
}

/* Danger Variant - Warm but clear warning */
.btn-danger {
  background: linear-gradient(135deg, #e08080 0%, #d96464 100%);
  color: white;
  border-color: #d96464;
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #d96464 0%, #a93a3a 100%);
  border-color: #a93a3a;
}

/* Success Variant - Encouraging and warm */

/* Accent Variant - Warm peachy for secondary CTAs */

/* Button Sizes - Proportional warmth */

.btn-xs {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  min-height: 44px;
  border-radius: var(--radius-btn-xs);
  gap: var(--space-1);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 44px;
  border-radius: var(--r-lg);
  gap: var(--space-1);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  min-height: 48px;
  border-radius: var(--radius-btn-lg);
  gap: var(--space-3);
  font-weight: 700;
}

/* Button Modifiers */

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-icon {
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: var(--space-5);
  height: var(--space-5);
}

/* Loading state */
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: var(--space-2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === CARDS === */

.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background-color: var(--paper-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: rgba(0,0,0,0.05);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--brand-soft);
  box-shadow: 0 var(--space-1) var(--space-3) rgba(95, 106, 211, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-4);
}

.card-header h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--ink-0);
}

.card-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--ink-0);
}

.card-subtitle {
  margin: var(--space-2) 0 0 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
  font-weight: var(--font-normal);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card-footer {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

/* === INPUTS & FORMS === */

input, textarea, select {
   padding: var(--space-3) var(--space-4);
   border: 1.5px solid var(--line);
   border-radius: var(--r-lg);
   font-size: var(--text-base);
   font-family: var(--font-sans);
   background-color: var(--paper-1);
   color: var(--ink-0);
   transition: all var(--transition-base);
}

input:hover, textarea:hover, select:hover {
   border-color: rgba(95, 106, 211, 0.3);
   box-shadow: 0 2px var(--space-2) rgba(95, 106, 211, 0.04);
}

input:focus, textarea:focus, select:focus {
   outline: none;
   border-color: var(--brand);
   box-shadow: 0 0 0 var(--space-1) rgba(95, 106, 211, 0.12), 0 0 0 1px var(--brand);
   background-color: rgba(255, 255, 255, 0.8);
}

input:disabled, textarea:disabled, select:disabled {
   background-color: var(--paper-1);
   color: var(--ink-3);
   cursor: not-allowed;
   opacity: 0.6;
   border-color: var(--line);
}

input::placeholder, textarea::placeholder {
   color: var(--ink-3);
   opacity: 0.7;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--ink-0);
}

.form-label.required::after {
  content: ' *';
  color: var(--clay);
}

.form-help {
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--clay);
  margin-top: var(--space-1);
}

.form-error.show {
  display: block;
}

/* Checkbox & Radio */
input[type="checkbox"], input[type="radio"] {
  width: var(--space-5);
  height: var(--space-5);
  padding: 0;
  margin: 0;
  cursor: pointer;
  accent-color: var(--brand);
}

input[type="checkbox"]:disabled, input[type="radio"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Checkbox wrapper for better styling */
.checkbox-wrapper, .radio-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.checkbox-wrapper input, .radio-wrapper input {
  margin: 0;
}

.checkbox-label, .radio-label {
  cursor: pointer;
  font-size: var(--text-base);
  color: var(--ink-0);
  user-select: none;
}

/* Textarea specific */
textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sans);
  line-height: var(--leading-normal);
}

/* === BADGES & TAGS === */

.badge {
   display: inline-flex;
   align-items: center;
   gap: var(--space-2);
   padding: var(--space-1) var(--space-3);
   border-radius: var(--radius-full);
   font-size: var(--text-xs);
   font-weight: var(--font-semibold);
   background-color: var(--brand-soft);
   color: var(--brand);
   border: 1px solid var(--brand-soft);
   overflow-wrap: break-word;
   word-break: break-word;
}

.badge-primary {
  background-color: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-soft);
}

.badge-secondary {
  background-color: rgba(109, 168, 162, 0.1);
  color: var(--color-secondary-dark);
  border-color: var(--color-secondary-light);
}

.badge-success {
  background-color: rgba(60, 143, 124, 0.1);
  color: var(--sage);
  border-color: rgba(60, 143, 124, 0.3);
}

.badge-warning {
  background-color: rgba(201, 119, 42, 0.1);
  color: var(--clay);
  border-color: rgba(201, 119, 42, 0.3);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

/* Tag variant (similar to badge but slightly different styling) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  background-color: var(--paper-1);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

/* === PILLS === */

.pill {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  background-color: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-soft);
  transition: all var(--transition-base);
  cursor: default;
}

.pill:hover {
  background-color: var(--brand-soft);
  color: var(--brand-deep);
}

/* === CONTAINERS === */

.container-default {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Panels */
.panel {
  padding: var(--space-6);
  background-color: var(--paper-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* === ALERTS === */

.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: var(--text-sm);
  align-items: flex-start;
}

.alert-info {
  background-color: rgba(109, 160, 241, 0.08);
  border-color: var(--color-info);
  color: var(--color-info);
}

.alert-success {
  background-color: rgba(60, 143, 124, 0.08);
  border-color: var(--sage);
  color: var(--sage);
}

.alert-warning {
  background-color: rgba(201, 119, 42, 0.08);
  border-color: var(--clay);
  color: var(--clay);
}

.alert-error {
  background-color: rgba(196, 84, 84, 0.08);
  border-color: var(--clay);
  color: var(--clay);
}

/* === MODALS & OVERLAYS === */

.modal-backdrop {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: rgba(95, 106, 211, 0.15);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: var(--z-modal-backdrop);
   backdrop-filter: blur(2px);
}

.modal {
   display: none;
   position: relative;
   background-color: var(--paper-1);
   border-radius: var(--r-2xl);
   box-shadow: 0 25px 60px rgba(95, 106, 211, 0.2), 0 var(--space-2) var(--space-6) rgba(12, 23, 34, 0.1);
   max-width: none;
   width: 90%;
   max-height: 90vh;
   overflow: auto;
   z-index: var(--z-modal);
   border: 1px solid rgba(95, 106, 211, 0.1);
   animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.is-open {
   display: flex;
}

@keyframes modalSlideIn {
   from {
     opacity: 0;
     transform: scale(0.95) translateY(calc(var(--space-5) * -1));
   }
   to {
     opacity: 1;
     transform: scale(1) translateY(0);
   }
}

.modal-header {
   padding: var(--space-8);
   background: linear-gradient(135deg, rgba(197, 184, 242, 0.4) 0%, rgba(167, 201, 255, 0.25) 100%);
   border-bottom: 1px solid rgba(95, 106, 211, 0.1);
   display: flex;
   justify-content: space-between;
   align-items: center;
   border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}

.modal-title {
   margin: 0;
   font-size: var(--text-xl);
   font-weight: 700;
   color: var(--ink-0);
   letter-spacing: -0.3px;
}

.modal-close {
   background: rgba(255, 255, 255, 0.7);
   border: none;
   font-size: var(--text-xl);
   color: var(--ink-2);
   cursor: pointer;
   padding: 0;
   width: var(--space-10);
   height: var(--space-10);
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all var(--transition-base);
   border-radius: var(--r-lg);
}

.modal-close:hover {
   background: white;
}

@media (max-width: 768px) {
   .modal-close {
      width: 44px;
      height: 44px;
      padding: 0.125rem;
   }
   color: var(--brand);
   transform: rotate(90deg);
}

.modal-body {
   padding: var(--space-8);
   color: var(--ink-2);
}

.modal-footer {
   padding: var(--space-8);
   border-top: 1px solid var(--line);
   display: flex;
   gap: var(--space-4);
   justify-content: flex-end;
   background: rgba(245, 243, 255, 0.5);
   border-radius: 0 0 var(--r-2xl) var(--r-2xl);
}

/* === DROPDOWNS === */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin-top: var(--space-2);
  background-color: var(--paper-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 6px var(--space-6) 0 10px 15px -3px rgba(0,0,0,0.1);
  z-index: var(--z-dropdown);
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  text-align: left;
  color: var(--ink-0);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: var(--paper-1);
  color: var(--brand);
}

/* === TOOLTIPS === */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* === LOADING STATES === */

.skeleton {
  background: linear-gradient(90deg, var(--paper-1) 0%, var(--line) 50%, var(--paper-1) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: var(--space-2);
  border-radius: var(--r-md);
}

.skeleton-avatar {
  width: var(--space-10);
  height: var(--space-10);
  border-radius: 50%;
}

/* === EMPTY STATES === */

.empty-state-vostego {
  padding: var(--space-12) var(--space-6);
  text-align: center;
  background: var(--paper-1);
  border-radius: var(--r-xl);
  border: 2px dashed var(--line);
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state-icon {
  font-size: 48px;
  color: var(--ink-3);
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--ink-0);
}

.empty-state-desc {
  font-size: var(--text-base);
  color: var(--ink-2);
  max-width: 400px;
  margin: 0 auto var(--space-6) auto;
  line-height: var(--leading-relaxed);
}

/* ============================================
   Utilities
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-secondary { color: var(--ink-2); }
.text-tertiary { color: var(--ink-3); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0 var(--space-12);
  background: radial-gradient(circle at 10% 10%, var(--paper-1) 0%, #fefdfa 38%, var(--paper-0) 100%);
}

[data-theme="dark"] .hero {
  background: radial-gradient(circle at 15% 15%, var(--paper-1) 0%, #13161c 45%, var(--paper-0) 100%);
}

.hero-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12);
  /* flex-wrap: wrap;  Removed to enforce side-by-side on desktop */
}

.hero-copy {
  flex: 1;
  min-width: 0; /* Prevent flex item from overflowing */
  max-width: 720px; /* Ensure optimal line length and space for panel */
}

@media (max-width: 1150px) {
  .hero-grid {
    gap: var(--space-6);
  }
  
   .hero-panel {
     min-width: var(--form-field-min-width);
     max-width: 340px;
   }
}

@media (max-width: 960px) {
  .hero-grid {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-8);
  }
  
  .hero-copy {
    max-width: 100%;
  }
  
  .hero-panel {
    width: 100%;
    max-width: 100%;
    margin-top: var(--space-4);
  }
}

.mode-toggle {
  display: inline-flex;
  gap: 2px;
  padding: var(--space-1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(17, 24, 39, 0.08);
  margin-bottom: var(--space-4);
  background: rgba(255,255,255,0.8);
}

.mode-toggle-btn {
  border: none;
  background: transparent;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--ink-2);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mode-toggle-btn.is-active {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

body.mode-enterprise .hero-actions--consumer {
  display: none;
}

body.mode-enterprise .hero-actions--enterprise {
  display: flex;
}

.why-join-newsletter {
  margin-top: var(--space-12);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-newsletter-form {
    flex-direction: column;
  }
  
  .hero-newsletter-form .form-input {
    width: 100%;
  }
}

.hero-newsletter-note {
  font-size: var(--text-sm);
  color: var(--ink-2);
  margin-top: var(--space-2);
}

.hero-panel {
  width: 380px;
  min-width: 380px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--r-2xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  position: relative;
  z-index: 1;
  margin-top: 56px; 
}

.hero-signal-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

[data-theme="dark"] .hero-panel {
  background: rgba(23, 26, 31, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12);
}

.hero-copy {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

.hero-panel {
  width: 380px; /* Fixed width for consistency */
  min-width: 380px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--r-2xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  position: relative;
  z-index: 1;
  margin-top: 56px; 
}

.hero-signal-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero-copy {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

.hero-panel {
  min-width: var(--form-field-min-width);
  max-width: 420px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--r-2xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  position: relative;
  z-index: 1;
  /* Push panel down to align with H1 */
  margin-top: 56px; 
}

@media (max-width: 960px) {
  .hero-grid {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-8);
  }
  
  .hero-copy {
    max-width: 100%;
  }
  
  .hero-panel {
    width: 100%;
    max-width: 100%;
    margin-top: var(--space-4);
  }
}

@media (max-width: 1150px) {
  .hero-grid {
    gap: var(--space-6);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-8);
  }
  
  .hero-copy {
    max-width: 100%;
  }
  
  
  
  .hero-actions {
    justify-content: flex-start;
  }
  
  .hero-panel {
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1150px) {
  .hero-grid {
    gap: var(--space-6);
  }
  
   .hero-panel {
     min-width: var(--form-field-min-width);
     max-width: 360px;
   }
}

@media (max-width: 960px) {
  .hero-grid {
    flex-direction: column;
    align-items: flex-start; /* Keep left aligned instead of switching to center */
    text-align: left;
    gap: var(--space-8);
  }
  
  .hero-copy {
    max-width: 100%;
  }
  
  
  
  .hero-actions {
    justify-content: flex-start;
  }
  
  .hero-panel {
    margin: 0;
    width: 100%;
    max-width: 100%; /* Take full width on small screens but keep same row if space allows? */
   }
 }
 
 @media (max-width: 768px) {
  .hero-doodles {
    opacity: 0.4;
  }
  
  
  
  
  
  
}

@media (max-width: 480px) {
  .hero-doodles {
    display: none;
  }
}

.doodle svg {
  width: 100%;
  height: 100%;
}

/* Standardized Hero Icon Box for Articles and Tips */
.hero-icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-8);
  background: var(--paper-1);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--space-4);
  box-shadow: rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
}

.hero-icon-box .doodle {
  width: 100px;
  height: 100px;
  display: block;
}

.hero-icon-box .doodle svg {
  filter: drop-shadow(0 var(--space-1) var(--space-3) rgba(0, 0, 0, 0.08));
}

@media (max-width: 768px) {
  .hero-doodles {
    opacity: 0.4; /* Soften background doodles on mobile */
  }
  
  
  
  
  
  
}

@media (max-width: 480px) {
  .hero-doodles {
    display: none; /* Hide entirely on very small screens to avoid clutter */
  }
}

.support-intro {
  max-width: 760px;
  margin: var(--space-6) auto var(--space-4);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--ink-2);
}

.why-join-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.why-join-section .why-join-content {
  background: var(--paper-1);
  border-radius: var(--r-2xl);
  padding: var(--space-10);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.pillar-card {
  border-radius: var(--r-xl);
  padding: var(--space-5);
  background: var(--paper-1);
  border: 1px solid var(--line);
  box-shadow: rgba(0,0,0,0.05);
}

.pillar-card[data-tone="lavender"] {
  background: var(--brand);
  color: var(--ink-0);
  border-color: rgba(0, 0, 0, 0.05);
}

.pillar-card[data-tone="sage"] {
  background: var(--color-sage);
  border-color: rgba(0, 0, 0, 0.04);
}

.pillar-card[data-tone="clay"] {
  background: var(--color-accent-light);
  border-color: rgba(0, 0, 0, 0.04);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(17, 24, 39, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
}

.pillar-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.pillar-description {
  margin: 0;
  color: var(--ink-2);
}

.why-join-newsletter {
  border-radius: var(--r-2xl);
  padding: var(--space-8);
  background: linear-gradient(120deg, rgba(166, 201, 255, 0.35), rgba(215, 192, 255, 0.35));
}

[data-theme="dark"] .why-join-newsletter {
  background: linear-gradient(120deg, rgba(165, 180, 252, 0.18), rgba(99, 102, 241, 0.18));
}

.why-join-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pricing-tiers .pricing-card {
  border-radius: var(--r-2xl);
  padding: var(--space-6);
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  box-shadow: rgba(0,0,0,0.05);
}

.pricing-card[data-tone="lavender"] {
  background: rgba(197, 184, 242, 0.4);
}

.pricing-card[data-tone="sage"] {
  background: rgba(183, 212, 200, 0.45);
}

.pricing-card[data-tone="clay"] {
  background: rgba(249, 214, 197, 0.55);
}

.pricing-card[data-tone="sky"] {
  background: rgba(167, 201, 255, 0.35);
}

.pricing-card.is-popular {
  border-color: var(--brand);
  box-shadow: 0 var(--space-5) 60px rgba(95, 106, 211, 0.18);
}

.pricing-card.highlight {
  border-color: var(--brand);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.pricing-card .tier-eyebrow {
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--ink-2);
  margin-bottom: var(--space-2);
}

.pricing-card .tier-price {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
}

.pricing-card .tier-price span {
  font-size: var(--text-sm);
  color: var(--ink-2);
  margin-left: var(--space-2);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: var(--space-2);
}

.pricing-card li {
  display: flex;
  gap: var(--space-2);
  color: var(--ink-2);
}

.support-enterprise-cta {
  margin-top: var(--space-10);
  padding: var(--space-6);
  border-radius: var(--r-2xl);
  background: rgba(95, 106, 211, 0.08);
  border: 1px solid rgba(95, 106, 211, 0.25);
}

@media (max-width: 1024px) {
  .hero {
    padding: var(--space-12) 0;
  }
  .hero-grid {
    flex-direction: column;
  }
  .hero-panel {
    width: 100%;
  }
}

.section-breath {
  padding: var(--space-16) 0;
}

.calm-callout {
  border-radius: var(--r-2xl);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  background: linear-gradient(120deg, rgba(197, 184, 242, 0.35), rgba(167, 201, 255, 0.25));
  border: 1px solid rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calm-callout strong {
  font-family: var(--font-display);
}

.calm-toast-stack {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 999;
  pointer-events: none;
}

@media (max-width: 768px) {
  .calm-toast-stack {
    bottom: var(--space-3);
    right: var(--space-3);
    left: var(--space-3);
    max-width: calc(100% - var(--space-6));
  }

  .calm-toast {
    max-width: 100%;
  }
}

.calm-toast {
  background: rgba(255,255,255,0.95);
  border-radius: var(--r-xl);
  border: 1px solid rgba(17, 24, 39, 0.1);
  padding: var(--space-3) var(--space-5);
  color: var(--ink-0);
  font-weight: var(--font-medium);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.15);
  opacity: 0;
  transform: translateY(var(--space-2));
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.calm-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .calm-toast-stack {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - var(--space-8));
  }
  .calm-toast {
    width: 100%;
  }
}

[data-fade] {
  opacity: 0;
  transform: translateY(var(--space-3));
  transition: opacity var(--transition-base), transform var(--transition-base);
}

[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.glossary-term {
  border-bottom: 1px dashed currentColor;
  cursor: help;
  position: relative;
}

.glossary-popover {
  position: fixed;
  max-width: 220px;
  background: var(--paper-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  font-size: var(--text-sm);
  color: var(--ink-0);
  z-index: 1200;
}

@media (max-width: 768px) {
  .glossary-popover {
    max-width: 160px;
    font-size: var(--text-xs);
    padding: var(--space-2);
  }
}

[data-theme="dark"] .glossary-popover {
  background: var(--paper-1);
  border-color: rgba(255,255,255,0.1);
}

/* ============================================
   UNIFIED RESPONSIVE PADDING SYSTEM
   All containers follow same breakpoints
   ============================================ */

/* Desktop (1200px+) */
.container,
.container-default,
.container-compact,
.container-wide,
.container-fluid,
.content-narrow {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-10); /* var(--space-10) */
}

.content-narrow {
  max-width: var(--content-max-width);
}

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
  .container,
  .container-default,
  .container-compact,
  .container-wide,
  .container-fluid,
  .content-narrow {
    padding: 0 var(--space-6); /* var(--space-6) */
  }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
  .container,
  .container-default,
  .container-compact,
  .container-wide,
  .container-fluid,
  .content-narrow {
    padding: 0 var(--space-4); /* var(--space-4) */
  }
}

/* Small mobile (< 480px) */
@media (max-width: 479px) {
  .container,
  .container-default,
  .container-compact,
  .container-wide,
  .container-fluid,
  .content-narrow {
    padding: 0 var(--space-3); /* var(--space-3) */
  }
}

/* ============================================
   ROGUE CONTAINERS — Bring into unified system
   Pages that bypass the standard container classes
   ============================================ */

.news-page-container,
.resources-container,
.guides-page-root,
.calculator-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--space-10);
  padding-right: var(--space-10);
}

/* Legal pages using dashboard-container as a wrapper */
.dashboard-container.section-breath {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--space-10);
  padding-right: var(--space-10);
}

@media (max-width: 1199px) {
  .news-page-container,
  .resources-container,
  .guides-page-root,
  .calculator-container,
  .dashboard-container.section-breath {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (max-width: 767px) {
  .news-page-container,
  .resources-container,
  .guides-page-root,
  .calculator-container,
  .dashboard-container.section-breath {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

@media (max-width: 479px) {
  .news-page-container,
  .resources-container,
  .guides-page-root,
  .calculator-container,
  .dashboard-container.section-breath {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

/* ============================================
   GLOBAL OVERLAY CLEANUP
   Coach/Scope modals hidden by default,
   shown only on pages that use them
   ============================================ */
#resumeCoachOverlay,
#consultingScopeOverlay {
  display: none !important;
}

/* Re-enable on pages that use coaching tools */
.coach-enabled #resumeCoachOverlay,
.coach-enabled #consultingScopeOverlay {
  display: block !important;
}

/* ============================================
   MOBILE GRID FIXES
   Force single column on small screens
   ============================================ */
@media (max-width: 479px) {
  .articles-grid,
  .tips-grid,
  .resources-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Article Grid Layout (Desktop 2-column with rail) */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 1024px) {
  .article-grid {
    grid-template-columns: 1fr 320px;
  }
}

.article-main {
  min-width: 0;
}

/* Rail Card Styling (based on job-card-mini) */
.rail-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-1);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.rail-card:hover {
  border-color: var(--brand);
  box-shadow: rgba(0,0,0,0.05);
}

.rail-card-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.rail-card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
  color: var(--ink-0);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.news-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.news-item:hover {
  background: var(--paper-0);
}

.news-item-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-0);
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-item:hover .news-item-title {
  color: var(--brand);
}

.rail-item-inline-meta {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Desktop Sticky Ad */

/* Mobile Layout: Stack ad -> content -> ad -> points of view -> news -> resources */
@media (max-width: 1023px) {
  .article-grid {
    display: flex;
    flex-direction: column;
  }

  

  

  .article-main {
    order: 2;
  }

  /* Point of view section */
  #voices-from-creators-container {
    order: 3;
  }

  /* News box */
  .rail-card:nth-of-type(1) {
    order: 4;
    margin-bottom: var(--space-6);
  }

  

  /* Resources box */
  .rail-card:nth-of-type(2) {
    order: 6;
  }
}

/* Tablet breakpoint - maintain good spacing */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

.section {
  padding: var(--space-24) 0;
}

.pillar-card {
  padding: var(--space-8) !important;
}

.why-join-newsletter {
  padding: var(--space-12) !important;
  margin-top: var(--space-16) !important;
}

.hero-newsletter-form .form-input {
  height: 52px;
  border-radius: var(--r-lg);
}

.search-input::placeholder {
  font-weight: 500;
  opacity: 0.7;
}

.main-content {
  margin-top: 72px;
  min-height: calc(100vh - 72px - 300px);
  position: relative;
  z-index: 1;
}

.main-content--flush {
  margin-top: 72px;
}

@media (max-width: 768px) {
  .main-content, .main-content--flush {
    margin-top: 60px;
  }
}

.section:first-child {
  padding-top: var(--space-12);
}

.main-content--flush {
  margin-top: 72px;
}

@media (max-width: 768px) {
  .main-content, .main-content--flush {
    margin-top: 60px;
  }
}

/* Ensure sections have consistent top breath */
.section:first-child {
  padding-top: var(--space-12);
}

.auth-menu-details .menu-icon {
  font-size: 18px;
  line-height: 1;
}

.auth-button-group .auth-cta {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-lg);
  min-width: fit-content;
  white-space: nowrap;
}

.auth-button-group .auth-cta:hover {
  transform: translateY(-2px);
}

.auth-menu-details-logged-out > summary.auth-menu-toggle {
  padding: var(--space-3) 14px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.auth-menu-details-logged-out > summary.auth-menu-toggle:hover {
  transform: none;
  box-shadow: none;
  z-index: 2;
}

.auth-menu-details .menu-icon {
  margin-left: var(--space-2);
}

.user-menu-language .language-switcher,
.user-menu-language .language-toggle {
  width: 100%;
  justify-content: space-between;
}

/* Ensure consistent button styling in auth panel */

.auth-buttons .auth-cta {
   overflow-wrap: break-word;
   word-break: break-word;
}

@media (max-width: 768px) {
   .auth-buttons .auth-cta {
     white-space: normal;
   }
}

/* Article hero SVG - override for article pages */

/* ============================================
   Dashboard Polish (New Styles)
   ============================================ */

/* Dashboard Layout (3-column desktop: header + main + sidebar) */
.dashboard-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr 300px;
  }
}

.dashboard-main {
  min-width: 0;
}

.dashboard-sidebar {
  display: none;
}

@media (min-width: 1200px) {
  .dashboard-sidebar {
    display: block;
  }
}

.dashboard-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}

/* Onboarding page header (center-aligned) */
.dashboard-header.text-center {
  align-items: center;
  border-bottom: none;
  padding-bottom: 0;
  max-width: var(--text-container-max-width);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (max-width: 767px) {
  .dashboard-header.text-center {
    margin-bottom: var(--space-6);
    gap: var(--space-3);
  }
}

@media (max-width: 599px) {
  .dashboard-header.text-center {
    margin-bottom: var(--space-4);
    gap: var(--space-2);
  }
}

.dashboard-header h1 {
  margin-bottom: var(--space-1);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
}

/* Onboarding h1 */
.dashboard-header.text-center h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

@media (max-width: 767px) {
  .dashboard-header.text-center h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
  }
}

@media (max-width: 599px) {
  .dashboard-header.text-center h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
  }
}

.dashboard-header p {
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

/* Onboarding p */
.dashboard-header.text-center p {
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .dashboard-header.text-center p {
    font-size: var(--text-base);
  }
}

@media (max-width: 599px) {
  .dashboard-header.text-center p {
    font-size: var(--text-sm);
  }
}

.dashboard-root-container {
  padding-left: var(--space-10) !important;
  padding-right: var(--space-10) !important;
}

/* Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
  .dashboard-root-container {
    padding-left: var(--space-5) !important;
    padding-right: var(--space-5) !important;
  }
}

/* Large phone / Small tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .dashboard-root-container {
    padding-left: var(--space-5) !important;
    padding-right: var(--space-5) !important;
  }
}

/* Mobile (599px - 767px) */
@media (max-width: 767px) {
  .dashboard-root-container {
    padding-left: var(--space-5) !important;
    padding-right: var(--space-5) !important;
  }
}

/* Small mobile (375px - 599px) */
@media (max-width: 599px) {
  .dashboard-root-container {
    padding-left: var(--space-4) !important;
    padding-right: var(--space-4) !important;
  }
}

/* Very small mobile (320px - 374px) */
@media (max-width: 374px) {
  .dashboard-root-container {
    padding-left: var(--space-3) !important;
    padding-right: var(--space-3) !important;
  }
}

@media (max-width: 768px) {

.dashboard-header-wrapper {
  margin-bottom: var(--space-6);
}

.mood-btn {
  font-size: var(--space-5);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 2px;
  transition: all var(--transition-base);
  opacity: 0.5;
}

.mood-btn:hover {
  opacity: 1;
  background: var(--paper-0);
  transform: scale(1.1);
}

.mood-btn.active {
  opacity: 1;
  border-color: var(--brand-soft);
  background: var(--brand-soft);
  transform: scale(1.1);
}

/* Mood Display and Note Section */
.mood-display {
  display: flex;
  align-items: center;
  margin-top: var(--space-3);
  gap: var(--space-3);
  position: relative;
}

.mood-picker.hidden {
  display: none;
}

.dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  
}

.dashboard-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
  box-shadow: rgba(0,0,0,0.05);
}

.dashboard-card:hover {
  border-color: var(--brand-soft);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.dashboard-card-header {
  padding: var(--space-3) var(--space-5);
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.dashboard-card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin: 0;
  color: var(--ink-0);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-card-subtitle {
  font-size: var(--text-base);
  color: var(--ink-2);
  font-weight: normal;
  margin-top: 1px;
}

.dashboard-card-content {
  padding: var(--space-5);
}

.resumes-section, .wins-section {
  min-width: 0;
}

.mb-0 { margin-bottom: 0 !important; }

/* Action Buttons Grid (Quick Start) */

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--paper-0) 0%, var(--paper-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
  height: 100%;
}

.action-btn:hover {
  background: linear-gradient(135deg, white 0%, #f9f9f7 100%);
  border-color: var(--brand);
  box-shadow: 0 var(--space-1) var(--space-3) rgba(95, 106, 211, 0.12);
  transform: translateY(-3px);
}

.action-btn:hover .action-btn-icon-wrapper {
  background: linear-gradient(135deg, #d9c0f8 0%, #d0baf6 100%);
  transform: scale(1.1);
}

/* Secondary Goals Chips */

/* Segmented Control for News Toggle */
.segmented-control {
  display: flex;
  background: var(--paper-0);
  padding: 2px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.segment-btn {
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all var(--transition-base);
}

.segment-btn:hover {
  color: var(--ink-0);
}

.segment-btn.active {
  background: white;
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* News Feed Polish */
.news-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.news-item:hover {
  background: var(--paper-0);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-0);
  margin-bottom: 3px;
  line-height: 1.3;
}

.news-item:hover .news-item-title {
  color: var(--brand);
}

.news-item-meta {
  font-size: 10px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.loading-state, .empty-state, .empty-state-mini {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: var(--space-8);
   gap: var(--space-4);
   text-align: center;
}

.empty-state-mini {
   border: 2px dashed rgba(95, 106, 211, 0.2);
   border-radius: var(--r-xl);
   background: linear-gradient(135deg, rgba(197, 184, 242, 0.08) 0%, rgba(167, 201, 255, 0.08) 100%);
   padding: var(--space-6);
   transition: all var(--transition-slow);
}

.empty-state-mini:hover {
   border-color: rgba(95, 106, 211, 0.35);
   background: linear-gradient(135deg, rgba(197, 184, 242, 0.12) 0%, rgba(167, 201, 255, 0.12) 100%);
}

.empty-state-mini p {
   color: var(--ink-2);
   font-size: 14px;
   margin: 0;
   font-weight: 500;
}

.spinner {
   width: 48px;
   height: 48px;
   border: var(--space-1) solid rgba(95, 106, 211, 0.15);
   border-top-color: var(--brand);
   border-right-color: var(--clay);
   border-radius: 50%;
   animation: spin 0.8s linear infinite;
}

@keyframes spin {
   to { transform: rotate(360deg); }
}

.loading-state p {
   color: var(--ink-2);
   font-size: var(--text-sm);
   margin: 0;
}

.empty-state {
   min-height: 240px;
   justify-content: center;
}

.resume-item {
   display: flex;
   align-items: center;
   padding: var(--space-3);
   border: 1.5px solid rgba(95, 106, 211, 0.08);
   border-radius: var(--r-lg);
   margin-bottom: var(--space-3);
   background: white;
   transition: all var(--transition-base);
}

.resume-item:hover {
   border-color: rgba(95, 106, 211, 0.25);
   background: rgba(197, 184, 242, 0.08);
   box-shadow: 0 var(--space-1) var(--space-3) rgba(95, 106, 211, 0.06);
}

.win-card {
   background: white;
   border: 1.5px solid rgba(95, 106, 211, 0.08);
   border-radius: var(--r-lg);
   padding: var(--space-4);
   margin-bottom: var(--space-3);
   display: grid;
   grid-template-columns: var(--space-20) 1fr auto;
   gap: var(--space-4);
   align-items: start;
   transition: all var(--transition-base);
}

.win-card:hover {
   border-color: rgba(95, 106, 211, 0.2);
   background: rgba(197, 184, 242, 0.06);
   box-shadow: 0 var(--space-1) var(--space-3) rgba(95, 106, 211, 0.06);
}

.resume-item:hover {
  border-color: var(--brand-soft);
  background: var(--paper-1);
}

.resume-info {
  flex: 1;
  min-width: 0;
}

.resume-name {
   font-size: 13px;
   font-weight: 600;
   color: var(--ink-0);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

@media (max-width: 768px) {
   .resume-name {
     white-space: normal;
     overflow-wrap: break-word;
     overflow: visible;
   }
}

.resume-meta {
  font-size: 9px;
  color: var(--ink-3);
}

.resume-actions {
  display: flex;
  gap: var(--space-1);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.win-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  display: grid;
  grid-template-columns: var(--space-20) 1fr auto;
  gap: var(--space-3);
  align-items: start;
}

.win-date {
  font-size: 10px;
  font-weight: bold;
  color: var(--ink-3);
  text-transform: uppercase;
}

.win-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 1px;
}

.win-desc {
  font-size: var(--space-3);
  color: var(--ink-2);
  line-height: 1.3;
}

.win-actions {
  margin-top: var(--space-1);
}

/* Sidebar Styles Overrides */
.rail-card {
  margin-bottom: var(--space-3);
}

.rail-card-header {
  padding: var(--space-2) var(--space-4);
}

.rail-card-title {
  font-size: 9px;
}

.news-item, .resource-item {
  padding: var(--space-3);
}

.news-item-title, .resource-item-title {
  font-size: 13px;
}

.rail-item-excerpt {
  font-size: 11px;
  margin-bottom: var(--space-1);
}

.rail-item-inline-meta {
  font-size: 10px;
}

.rail-item-inline-category {
  font-size: 9px;
  padding: 1px var(--space-2);
}

/* Article-specific styles moved to main.css */
.article-page { background: var(--paper-0); }
.article-content-container {
  position: relative;
  padding: 0 var(--space-10) !important;
  margin-top: 0;
  min-height: 600px;
}

/* Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
  .article-content-container {
    padding: 0 var(--space-5) !important;
  }
}

/* Large phone / Small tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .article-content-container {
    padding: 0 var(--space-5) !important;
  }
}

/* Mobile (599px - 767px) */
@media (max-width: 767px) {
  .article-content-container {
    padding: 0 var(--space-5) !important;
  }
}

/* Small mobile (375px - 599px) */
@media (max-width: 599px) {
  .article-content-container {
    padding: 0 var(--space-4) !important;
  }
}

/* Very small mobile (320px - 374px) */
@media (max-width: 374px) {
  .article-content-container {
    padding: 0 var(--space-3) !important;
  }
}

.article-header-main {
  margin-bottom: var(--space-8);
  padding: 0 0 var(--space-8);
  background: transparent;
  color: var(--ink-0);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

/* Tablet optimization */
@media (max-width: 1199px) {
  .article-header-main {
    padding: 0 0 var(--space-6);
    margin-bottom: var(--space-6);
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .article-header-main {
    padding: 0 0 var(--space-6);
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 599px) {
  .article-header-main {
    padding: 0 0 var(--space-4);
    margin-bottom: var(--space-4);
  }
}

.article-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--ink-0);
}

/* Tablet optimization */
@media (max-width: 1199px) {
  .article-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .article-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 599px) {
  .article-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
  }
}

.article-meta {
  display: flex;
  gap: var(--space-6);
  color: var(--ink-3);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* Tablet optimization */
@media (max-width: 1199px) {
  .article-meta {
    gap: var(--space-4);
    margin-bottom: var(--space-3);
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .article-meta {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 599px) {
  .article-meta {
    gap: var(--space-2);
    font-size: var(--text-xs);
  }
}

.article-meta-item { display: flex; align-items: center; gap: var(--space-2); }
.article-excerpt { font-size: var(--text-xl); color: var(--ink-2); line-height: 1.6; margin-bottom: var(--space-8); }
.article-tags-container { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }

.article-body-wrapper { font-size: 1.125rem; line-height: 1.8; color: var(--ink-0); }
.article-body-wrapper p { margin-bottom: var(--space-6); }
.article-body-wrapper ul, .article-body-wrapper ol { 
  margin-bottom: var(--space-8); 
  padding-left: 2.5rem; 
  list-style-position: outside; 
}
.article-body-wrapper li { margin-bottom: var(--space-3); padding-left: 0.5rem; }

.article-body-wrapper.is-gated {
  max-height: 400px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

/* Content Gate Overlay Styles */
.content-gate-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  width: 100% !important; 
  height: 100% !important; 
  z-index: 100; 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--paper-0) 300px, var(--paper-0) 100%); 
  pointer-events: auto; 
  padding-top: 300px; 
}

.content-gate-card { 
  max-width: 520px; 
  width: 90%; 
  background: white; 
  border: 1px solid var(--line); 
  border-radius: var(--r-2xl); 
  padding: var(--space-8); 
  box-shadow: var(--shadow-2xl); 
  position: sticky;
  top: 120px;
  text-align: left;
}

.content-gate-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

.content-gate-card strong {
  display: block;
  font-size: var(--text-2xl);
  line-height: 1.2;
  margin-bottom: var(--space-3);
  color: var(--ink-0);
}

.content-gate-card span {
  display: block;
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

.content-gate-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
}

.content-gate-benefits li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-0);
  margin-bottom: var(--space-2);
}

.content-gate-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
}

.content-gate-cta {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-3);
   margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
   .content-gate-cta {
     grid-template-columns: 1fr;
   }
}

.content-gate-note {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  margin-top: var(--space-4);
}

.content-gate-sublabel {
  font-size: var(--text-xs);
  color: var(--ink-2);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.voices-from-creators-block { padding: var(--space-8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--space-10) 0; }
.voices-from-creators-block .section-header { text-align: left; margin-bottom: var(--space-4); }
.voices-from-creators-block .section-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-1); }
.voices-from-creators-block .section-subtitle { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }

.video-card { background: white; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; width: 100%; box-shadow: rgba(0,0,0,0.05); }
.video-embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.video-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-info { padding: var(--space-4); }
.video-title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); color: var(--ink-0); }
.video-meta { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-xs); color: var(--ink-2); }

.shuffle-btn { display: inline-flex; align-items: center; background: none; border: none; color: var(--brand); font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px 6px; border-radius: var(--r-md); transition: all var(--transition-base); text-transform: none; line-height: 1; box-shadow: none; margin: 0; }
.shuffle-btn:hover { background: var(--brand-soft); color: var(--brand-deep); }
.shuffle-btn svg { width: 14px; height: 14px; }

.author-bio-card { display: flex; gap: var(--space-8); padding: var(--space-8); background: white; border: 1px solid var(--line); border-radius: var(--r-lg); align-items: center; }
.author-avatar img { width: var(--space-20); height: var(--space-20); border-radius: 50%; object-fit: cover; }
/* ============================================
   Harmonized Sidebar (Right Rail) Styles
   ============================================ */

.rail-card { 
  background: white; 
  border: 1px solid var(--line); 
  border-radius: var(--r-xl); 
  overflow: hidden; 
  margin-bottom: var(--space-2);
  transition: all var(--transition-base);
  width: 100%;
}

.rail-card:hover {
  border-color: var(--brand-soft);
  box-shadow: rgba(0,0,0,0.05);
}

.rail-card-header { 
  padding: var(--space-2) var(--space-4);
  background: var(--paper-1); 
  border-bottom: 1px solid var(--line); 
}

.rail-card-title { 
  font-size: 10px;
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  color: var(--ink-3); 
  margin: 0; 
}

.rail-card-content { 
  padding: 0; 
  display: block; /* Vertical flow */
}

/* Sidebar List Items (Articles, News, Resources) */
.sidebar-article-item, .news-item, .resource-item {
  display: block;
  padding: var(--space-4);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: all var(--transition-base);
}

.sidebar-article-item:last-child, .news-item:last-child, .resource-item:last-child {
  border-bottom: none;
}

.sidebar-article-item:hover, .news-item:hover, .resource-item:hover {
  background: var(--paper-1);
}

.sidebar-article-title, .news-item-title, .resource-item-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-0);
  margin-bottom: 2px;
}

.rail-item-excerpt {
  font-size: var(--space-3);
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 6px 0; /* Space before meta */
}

.rail-item-inline-meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rail-item-inline-category {
  font-weight: 600;
  text-transform: lowercase;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-size: 10px;
}

.resource-item {
  display: block;
}

/* Sidebar Ad Units */
.rail-ad-top {
  margin-bottom: var(--space-2);
  width: 100%;
}

/* === Category Pastel Colors === */

.rail-item-inline-category--career { background-color: #e8f5e9 !important; color: #2e7d32 !important; border: 1px solid #c8e6c9; }
.rail-item-inline-category--consulting { background-color: #f3e5f5 !important; color: #7b1fa2 !important; border: 1px solid #e1bee7; }

/* Article-specific styles moved to main.css */
.article-page { background: var(--paper-0); }
.article-content-container {
  position: relative;
  padding: 0 var(--space-10) !important;
  margin-top: 0;
  min-height: 600px;
}

/* Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
  .article-content-container {
    padding: 0 var(--space-5) !important;
  }
}

/* Large phone / Small tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .article-content-container {
    padding: 0 var(--space-5) !important;
  }
}

/* Mobile (599px - 767px) */
@media (max-width: 767px) {
  .article-content-container {
    padding: 0 var(--space-5) !important;
  }
}

/* Small mobile (375px - 599px) */
@media (max-width: 599px) {
  .article-content-container {
    padding: 0 var(--space-4) !important;
  }
}

/* Very small mobile (320px - 374px) */
@media (max-width: 374px) {
  .article-content-container {
    padding: 0 var(--space-3) !important;
  }
}

.article-header-main {
  margin-bottom: var(--space-8);
  padding: 0 0 var(--space-8);
  background: transparent;
  color: var(--ink-0);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

/* Tablet optimization */
@media (max-width: 1199px) {
  .article-header-main {
    padding: 0 0 var(--space-6);
    margin-bottom: var(--space-6);
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .article-header-main {
    padding: 0 0 var(--space-6);
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 599px) {
  .article-header-main {
    padding: 0 0 var(--space-4);
    margin-bottom: var(--space-4);
  }
}

.article-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--ink-0);
}

/* Tablet optimization */
@media (max-width: 1199px) {
  .article-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .article-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 599px) {
  .article-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
  }
}

.article-meta {
  display: flex;
  gap: var(--space-6);
  color: var(--ink-3);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* Tablet optimization */
@media (max-width: 1199px) {
  .article-meta {
    gap: var(--space-4);
    margin-bottom: var(--space-3);
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .article-meta {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 599px) {
  .article-meta {
    gap: var(--space-2);
    font-size: var(--text-xs);
  }
}

.article-meta-item { display: flex; align-items: center; gap: var(--space-2); }
.article-excerpt { font-size: var(--text-xl); color: var(--ink-2); line-height: 1.6; margin-bottom: var(--space-8); }
.article-tags-container { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }

.article-body-wrapper { font-size: 1.125rem; line-height: 1.8; color: var(--ink-0); }
.article-body-wrapper p { margin-bottom: var(--space-6); }
.article-body-wrapper ul, .article-body-wrapper ol { 
  margin-bottom: var(--space-8); 
  padding-left: 2.5rem; 
  list-style-position: outside; 
}
.article-body-wrapper li { margin-bottom: var(--space-3); padding-left: 0.5rem; }

.article-body-wrapper.is-gated {
  max-height: 400px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

/* Content Gate Overlay Styles */
.content-gate-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  width: 100% !important; 
  height: 100% !important; 
  z-index: 100; 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--paper-0) 300px, var(--paper-0) 100%); 
  pointer-events: auto; 
  padding-top: 300px; 
}

.content-gate-card { 
  max-width: 520px; 
  width: 90%; 
  background: white; 
  border: 1px solid var(--line); 
  border-radius: var(--r-2xl); 
  padding: var(--space-8); 
  box-shadow: var(--shadow-2xl); 
  position: sticky;
  top: 120px;
  text-align: left;
}

.content-gate-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

.content-gate-card strong {
  display: block;
  font-size: var(--text-2xl);
  line-height: 1.2;
  margin-bottom: var(--space-3);
  color: var(--ink-0);
}

.content-gate-card span {
  display: block;
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

.content-gate-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
}

.content-gate-benefits li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-0);
  margin-bottom: var(--space-2);
}

.content-gate-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
}

.content-gate-cta {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-3);
   margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
   .content-gate-cta {
     grid-template-columns: 1fr;
   }
}

.content-gate-note {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  margin-top: var(--space-4);
}

.content-gate-sublabel {
  font-size: var(--text-xs);
  color: var(--ink-2);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.voices-from-creators-block { padding: var(--space-8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--space-10) 0; }
.voices-from-creators-block .section-header { text-align: left; margin-bottom: var(--space-4); }
.voices-from-creators-block .section-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-1); }
.voices-from-creators-block .section-subtitle { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }

.video-card { background: white; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; width: 100%; box-shadow: rgba(0,0,0,0.05); }
.video-embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.video-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-info { padding: var(--space-4); }
.video-title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); color: var(--ink-0); }
.video-meta { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-xs); color: var(--ink-2); }

.shuffle-btn { display: inline-flex; align-items: center; background: none; border: none; color: var(--brand); font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px 6px; border-radius: var(--r-md); transition: all var(--transition-base); text-transform: none; line-height: 1; box-shadow: none; margin: 0; }
.shuffle-btn:hover { background: var(--brand-soft); color: var(--brand-deep); }
.shuffle-btn svg { width: 14px; height: 14px; }

.author-bio-card { display: flex; gap: var(--space-8); padding: var(--space-8); background: white; border: 1px solid var(--line); border-radius: var(--r-lg); align-items: center; }
.author-avatar img { width: var(--space-20); height: var(--space-20); border-radius: 50%; object-fit: cover; }
/* ============================================
   Harmonized Sidebar (Right Rail) Styles
   ============================================ */

.rail-card { 
  background: white; 
  border: 1px solid var(--line); 
  border-radius: var(--r-xl); 
  overflow: hidden; 
  margin-bottom: var(--space-2);
  transition: all var(--transition-base);
  width: 100%;
}

.rail-card:hover {
  border-color: var(--brand-soft);
  box-shadow: rgba(0,0,0,0.05);
}

.rail-card-header { 
  padding: var(--space-2) var(--space-4);
  background: var(--paper-1); 
  border-bottom: 1px solid var(--line); 
}

.rail-card-title { 
  font-size: 10px;
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  color: var(--ink-3); 
  margin: 0; 
}

.rail-card-content { 
  padding: 0; 
  display: block; /* Vertical flow */
}

.rail-card { 
   background: white; 
   border: 1.5px solid rgba(95, 106, 211, 0.08);
   border-radius: var(--r-xl); 
   overflow: hidden; 
   margin-bottom: var(--space-6);
   transition: all var(--transition-slow);
   width: 100%;
   box-shadow: 0 2px var(--space-2) rgba(0, 0, 0, 0.02);
}

.rail-card:hover {
   border-color: rgba(95, 106, 211, 0.2);
   box-shadow: 0 var(--space-2) var(--space-6) rgba(95, 106, 211, 0.08);
   transform: translateY(-2px);
}

.rail-card-header { 
   padding: var(--space-5) var(--space-6);
   background: linear-gradient(135deg, rgba(197, 184, 242, 0.08) 0%, rgba(167, 201, 255, 0.06) 100%);
   border-bottom: 1.5px solid rgba(95, 106, 211, 0.08);
}

.rail-card-title { 
   font-size: 11px;
   font-weight: 700; 
   text-transform: uppercase; 
   letter-spacing: 0.12em; 
   color: var(--brand); 
   margin: 0; 
}

.rail-card-content { 
   padding: 0; 
   display: block;
}

.sidebar-article-item, .news-item, .resource-item {
   display: block;
   padding: var(--space-5);
   text-decoration: none;
   color: inherit;
   border-bottom: 1px solid rgba(95, 106, 211, 0.06);
   transition: all var(--transition-base);
}

.sidebar-article-item:last-child, .news-item:last-child, .resource-item:last-child {
   border-bottom: none;
}

.sidebar-article-item:hover, .news-item:hover, .resource-item:hover {
   background: rgba(197, 184, 242, 0.08);
}

.sidebar-article-title, .news-item-title, .resource-item-title {
   display: block;
   font-size: var(--text-sm);
   font-weight: 700;
   line-height: 1.4;
   color: var(--ink-0);
   margin-bottom: var(--space-1);
}

.rail-item-excerpt {
   font-size: 13px;
   color: var(--ink-2);
   line-height: 1.5;
   margin: 0 0 var(--space-2) 0;
   display: block;
}

.rail-item-inline-meta {
   font-size: var(--space-3);
   font-weight: 500;
   color: var(--ink-3);
   line-height: 1.4;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: var(--space-2);
}

.rail-item-inline-category {
  font-weight: 600;
  text-transform: lowercase;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  display: inline-block;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
}

.rail-item-inline-category:hover {
  opacity: 0.8;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Category-specific Pastel Colors (Muted) */

.rail-item-inline-category--career { background-color: #f2faf4 !important; color: #556b2f !important; border: 1px solid #d9f0e1; }
.rail-item-inline-category--consulting { background-color: #faf5ff !important; color: #8a2be2 !important; border: 1px solid #ead9ff; }

/* Article-specific styles moved to main.css */
.article-page { background: var(--paper-0); }
.article-content-container {
  position: relative;
  padding: 0 var(--space-10) !important;
  margin-top: 0;
  min-height: 600px;
}

/* Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
  .article-content-container {
    padding: 0 var(--space-5) !important;
  }
}

/* Large phone / Small tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .article-content-container {
    padding: 0 var(--space-5) !important;
  }
}

/* Mobile (599px - 767px) */
@media (max-width: 767px) {
  .article-content-container {
    padding: 0 var(--space-5) !important;
  }
}

/* Small mobile (375px - 599px) */
@media (max-width: 599px) {
  .article-content-container {
    padding: 0 var(--space-4) !important;
  }
}

/* Very small mobile (320px - 374px) */
@media (max-width: 374px) {
  .article-content-container {
    padding: 0 var(--space-3) !important;
  }
}

.article-header-main {
  margin-bottom: var(--space-8);
  padding: 0 0 var(--space-8);
  background: transparent;
  color: var(--ink-0);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

/* Tablet optimization */
@media (max-width: 1199px) {
  .article-header-main {
    padding: 0 0 var(--space-6);
    margin-bottom: var(--space-6);
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .article-header-main {
    padding: 0 0 var(--space-6);
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 599px) {
  .article-header-main {
    padding: 0 0 var(--space-4);
    margin-bottom: var(--space-4);
  }
}

.article-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--ink-0);
}

/* Tablet optimization */
@media (max-width: 1199px) {
  .article-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .article-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 599px) {
  .article-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
  }
}

.article-meta {
  display: flex;
  gap: var(--space-6);
  color: var(--ink-3);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* Tablet optimization */
@media (max-width: 1199px) {
  .article-meta {
    gap: var(--space-4);
    margin-bottom: var(--space-3);
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .article-meta {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 599px) {
  .article-meta {
    gap: var(--space-2);
    font-size: var(--text-xs);
  }
}

.article-meta-item { display: flex; align-items: center; gap: var(--space-2); }
.article-excerpt { font-size: var(--text-xl); color: var(--ink-2); line-height: 1.6; margin-bottom: var(--space-8); }
.article-tags-container { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }

.article-body-wrapper { font-size: 1.125rem; line-height: 1.8; color: var(--ink-0); }
.article-body-wrapper p { margin-bottom: var(--space-6); }
.article-body-wrapper ul, .article-body-wrapper ol { 
  margin-bottom: var(--space-8); 
  padding-left: 2.5rem; 
  list-style-position: outside; 
}
.article-body-wrapper li { margin-bottom: var(--space-3); padding-left: 0.5rem; }

.article-body-wrapper.is-gated {
  max-height: 400px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

/* Content Gate Overlay Styles */
.content-gate-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  width: 100% !important; 
  height: 100% !important; 
  z-index: 100; 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--paper-0) 300px, var(--paper-0) 100%); 
  pointer-events: auto; 
  padding-top: 300px; 
}

.content-gate-card { 
  max-width: 520px; 
  width: 90%; 
  background: white; 
  border: 1px solid var(--line); 
  border-radius: var(--r-2xl); 
  padding: var(--space-8); 
  box-shadow: var(--shadow-2xl); 
  position: sticky;
  top: 120px;
  text-align: left;
}

.content-gate-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

.content-gate-card strong {
  display: block;
  font-size: var(--text-2xl);
  line-height: 1.2;
  margin-bottom: var(--space-3);
  color: var(--ink-0);
}

.content-gate-card span {
  display: block;
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

.content-gate-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
}

.content-gate-benefits li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-0);
  margin-bottom: var(--space-2);
}

.content-gate-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
}

.content-gate-cta {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-3);
   margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
   .content-gate-cta {
     grid-template-columns: 1fr;
   }
}

.content-gate-note {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  margin-top: var(--space-4);
}

.content-gate-sublabel {
  font-size: var(--text-xs);
  color: var(--ink-2);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.voices-from-creators-block { padding: var(--space-8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--space-10) 0; }
.voices-from-creators-block .section-header { text-align: left; margin-bottom: var(--space-4); }
.voices-from-creators-block .section-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-1); }
.voices-from-creators-block .section-subtitle { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }

.video-card { background: white; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; width: 100%; box-shadow: rgba(0,0,0,0.05); }
.video-embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.video-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-info { padding: var(--space-4); }
.video-title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); color: var(--ink-0); }
.video-meta { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-xs); color: var(--ink-2); }

.shuffle-btn { display: inline-flex; align-items: center; background: none; border: none; color: var(--brand); font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px 6px; border-radius: var(--r-md); transition: all var(--transition-base); text-transform: none; line-height: 1; box-shadow: none; margin: 0; }
.shuffle-btn:hover { background: var(--brand-soft); color: var(--brand-deep); }
.shuffle-btn svg { width: 14px; height: 14px; }

.author-bio-card { display: flex; gap: var(--space-8); padding: var(--space-8); background: white; border: 1px solid var(--line); border-radius: var(--r-lg); align-items: center; }
.author-avatar img { width: var(--space-20); height: var(--space-20); border-radius: 50%; object-fit: cover; }

/* Quest Cards */
.quest-card {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--brand-soft);
  margin-bottom: var(--space-3);
  border-left: var(--space-1) solid var(--brand);
}

.quest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quest-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.quest-steps {
  margin-top: var(--space-3);
  display: none;
  flex-direction: column;
  gap: var(--space-2);
}

.quest-step.completed {
  background: var(--paper-1);
  opacity: 0.6;
}

/* Job Card Mini (Roadmap) */

/* === RESPONSIVE VERTICAL SPACING SCALE === */
/* Use these classes for consistent vertical spacing across breakpoints */

.section {
  margin-bottom: var(--space-12);
}

@media (max-width: 1199px) {
  .section {
    margin-bottom: var(--space-8);
  }
}

@media (max-width: 767px) {
  .section {
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 599px) {
  .section {
    margin-bottom: var(--space-4);
  }
}

/* Between cards/items in a grid */

/* Tight spacing (within sections, form fields) */

/* Normal spacing (default paragraph spacing) */

/* Comfortable spacing (between subsections) */

/* Loose spacing (between major sections) */

/* Very loose spacing (between page sections) */

/* === PHASE 3 POLISH: PATTERNS & DOODLES === */

.bg-pattern-overlay {
  position: relative;
  overflow: hidden;
}

.bg-pattern-overlay::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%235f6ad3' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .bg-pattern-overlay::before {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* Global Doodle Classes */
.doodle-icon {
  width: var(--space-6);
  height: var(--space-6);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  vertical-align: middle;
}

.doodle-alert { background-image: url('/assets/svg/doodle-alert.svg'); }
.doodle-trophy { background-image: url('/assets/svg/doodle-trophy.svg'); }
.doodle-continue { background-image: url('/assets/svg/doodle-continue.svg'); }
.doodle-resume { background-image: url('/assets/svg/doodle-resume.svg'); }
.doodle-close { background-image: url('/assets/svg/doodle-close.svg'); }

.doodle-chart { background-image: url('/assets/svg/doodle-chart.svg'); }
.doodle-coin { background-image: url('/assets/svg/doodle-coin.svg'); }
.doodle-idea { background-image: url('/assets/svg/doodle-idea.svg'); }

/* ============================================
   Quick Tip Page Styles
   ============================================ */

.tip-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.tip-header h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  color: var(--ink-0);
}

.tip-meta {
  display: flex;
  gap: var(--space-6);
  color: var(--ink-3);
  font-size: var(--text-sm);
  margin-top: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.tip-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tip-meta-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.tip-category-badge {
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: capitalize;
}

/* Tablet optimization for tips */
@media (max-width: 1199px) {
  .tip-header {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
  }
  .tip-header h1 {
    font-size: var(--text-3xl);
  }
}

/* Mobile optimization for tips */
@media (max-width: 767px) {
  .tip-meta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
}

/* Standard Skeleton Loader */
.vostego-skeleton {
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  min-height: 1rem;
}

.vostego-skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
  animation: vostego-shimmer 1.5s infinite;
}

@keyframes vostego-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Footer Time Worthy Media link - Color contrast fix for WCAG 2.1 AA */
a[href*="timeworthymedia.com"] {
  color: #7b9eff !important;
}

a[href*="timeworthymedia.com"]:hover,
a[href*="timeworthymedia.com"]:focus {
  color: var(--color-text-inverse) !important;
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.animate-entrance {
  animation: entranceFadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes entranceFadeUp {
  from {
    opacity: 0;
    transform: translateY(var(--space-8)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scale hover utility for cards */
.hover-lift {
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease;
}

.hover-lift:hover {
  transform: translateY(calc(var(--space-1) * -1)) scale(1.01);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* Fix P1 Touch Targets for Mobile (added via automated UX Audit refactoring) */
@media (max-width: 768px) {
  .navbar-brand,
  .nav-link,
  footer a,
  .social-icon,
  .hamburger {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  .navbar-brand {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  footer a {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }
}
