/* Glysimi Health Theme Custom Styles - Modern Typography & Spacing */

/* Font imports and base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Variables for Glysimi brand colors - Enhanced for modern design */
:root {
  /* Brand Colors */
  --glysimi-teal: #4A90A4;
  --glysimi-teal-dark: #367084;
  --glysimi-light-teal: #E8F4F6;
  --glysimi-accent: #F59E0B;
  --glysimi-success: #10B981;
  --glysimi-warning: #F59E0B;
  --glysimi-error: #EF4444;
  --glysimi-info: #3B82F6;
  
  /* Warm Accent Colors for Trust & Personality */
  --warm-coral: #FF6B6B;
  --warm-coral-light: #FFE5E5;
  --warm-amber: #FFB366;
  --warm-amber-light: #FFF4E6;
  --gentle-sage: #9BCF53;
  --gentle-sage-light: #F2F9E6;
  --soft-lavender: #B19CD9;
  --soft-lavender-light: #F4F1FA;
  
  /* Background & Surface Colors */
  --background-soft: #FAFBFC;
  --background-white: #FFFFFF;
  --background-warm: #FDFDFD;
  
  /* Text Colors - Enhanced hierarchy */
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-accent: var(--glysimi-teal);
  
  /* Border & Surface */
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  
  /* Enhanced Shadows with Warm Tints */
  --shadow-warm: 0 4px 20px rgba(255, 107, 107, 0.1);
  --shadow-trust: 0 2px 12px rgba(74, 144, 164, 0.15);
  --shadow-gentle: 0 6px 24px rgba(155, 207, 83, 0.12);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(74, 144, 164, 0.1);
  
  /* Border Radius - Softer, more modern */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  
  /* Typography Scale - Optimized for article reading */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.0625rem;  /* 17px */
  --font-size-xl: 1.125rem;   /* 18px */
  --font-size-2xl: 1.25rem;   /* 20px */
  --font-size-3xl: 1.5rem;    /* 24px */
  --font-size-4xl: 1.875rem;  /* 30px */
  --font-size-5xl: 2.25rem;   /* 36px */
  
  /* Line Heights - Optimized for readability */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 1.75;
  
  /* Spacing Scale - Optimized for article reading */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 0.75rem;   /* 12px */
  --spacing-lg: 1rem;      /* 16px */
  --spacing-xl: 1.25rem;   /* 20px */
  --spacing-2xl: 1.5rem;   /* 24px */
  --spacing-3xl: 1.75rem;  /* 28px */
  --spacing-4xl: 2rem;     /* 32px */
  --spacing-5xl: 2.5rem;   /* 40px */
  --spacing-6xl: 3rem;     /* 48px */
  
  /* Content Widths - Optimal reading experience */
  --content-width: 65ch;    /* ~65 characters per line */
  --content-width-wide: 75ch;
  --content-width-narrow: 55ch;
}

/* Global overrides - Enhanced typography foundation */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background: var(--background-soft);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 107, 107, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(155, 207, 83, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 179, 102, 0.02) 0%, transparent 50%);
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--warm-coral);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

/* Enhanced form styling */
input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  background: linear-gradient(135deg, var(--background-white), var(--background-soft));
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-md) var(--spacing-lg);
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: var(--font-size-base);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--warm-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
  background: var(--background-white);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
  border-color: var(--warm-amber);
}

/* Enhanced language selector */
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--warm-coral) 50%),
                    linear-gradient(135deg, var(--warm-coral) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
                       calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

/* Enhanced link styles with better hierarchy */
.internal-link {
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.internal-link:hover {
  border-bottom-color: var(--text-accent);
  color: var(--glysimi-teal-dark);
}


.unpublished-link {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
  cursor: help;
}

.broken-link {
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.8;
  cursor: help;
  position: relative;
  display: inline-block;
}

.draft-link {
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.draft-link:hover {
  border-bottom-color: var(--text-accent);
  color: var(--glysimi-teal-dark);
}

/* Enhanced label styles with better spacing */
.draft-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.broken-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  background-color: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* External link styling - Enhanced */
.external-link::after {
  content: "↗";
  display: inline-block;
  margin-left: var(--spacing-xs);
  font-size: 0.8em;
  line-height: 1;
  opacity: 0.7;
  vertical-align: super;
  transition: opacity 0.2s ease;
}

.external-link:hover::after {
  opacity: 1;
}

/* Modern Typography System - Optimized for readability */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-3xl);
  margin-top: var(--spacing-5xl);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Remove excessive top margin from first headings */
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

/* Typography hierarchy with perfect scaling */
h1 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-snug);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-3xl);
  margin-top: var(--spacing-6xl);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  font-weight: 600;
  margin-bottom: var(--spacing-2xl);
  margin-top: var(--spacing-5xl);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
  margin-top: var(--spacing-4xl);
}

h5 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

h6 {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Enhanced body text with optimal spacing */
p {
  margin-bottom: var(--spacing-2xl);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  max-width: var(--content-width);
}

/* Text size variants */
.text-large {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
}

.text-small {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.text-caption {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-normal);
  color: var(--text-muted);
}

/* Lists with better spacing */
ul, ol {
  margin-bottom: var(--spacing-2xl);
  padding-left: var(--spacing-3xl);
  line-height: var(--line-height-relaxed);
  max-width: var(--content-width);
}

ul {
  list-style: none;
  position: relative;
}

ul li {
  position: relative;
  padding-left: var(--spacing-lg);
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--glysimi-teal);
  border-radius: 50%;
  transform: translateY(-50%);
}

li {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

li:last-child {
  margin-bottom: 0;
}

/* Nested lists */
ul ul, ol ol, ul ol, ol ul {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

/* Nested list bullets - smaller and slightly different position */
ul ul li::before {
  width: 6px;
  height: 6px;
  background: var(--glysimi-teal-dark);
  top: 0.65em;
}

/* Third level nested bullets */
ul ul ul li::before {
  width: 4px;
  height: 4px;
  background: var(--text-accent);
  top: 0.7em;
}

/* Better list markers for ordered lists */
ol {
  list-style-type: decimal !important;
}

ol li::marker {
  color: var(--text-accent);
  font-weight: 600;
}

/* Modern Prose System - Optimized for long-form reading */
.prose {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* Prose typography with better spacing */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin-top: var(--spacing-4xl);
  margin-bottom: var(--spacing-xl);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  scroll-margin-top: var(--spacing-4xl);
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--spacing-4xl);
}

.prose h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-top: var(--spacing-4xl);
}

.prose h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-top: var(--spacing-3xl);
}

.prose h4 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-top: var(--spacing-4xl);
}

/* Enhanced links with better accessibility */
.prose a {
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
  word-break: break-word;
}

.prose a:hover {
  color: var(--glysimi-teal-dark);
  border-bottom-color: var(--text-accent);
}

.prose a:focus {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Better emphasis and strong */
.prose strong {
  color: var(--text-primary);
  font-weight: 700;
}

.prose em {
  font-style: italic;
  color: var(--text-primary);
}

/* Optimized paragraphs for readability */
.prose p {
  margin-bottom: var(--spacing-2xl);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  max-width: var(--content-width);
  hanging-punctuation: first last;
}

/* Lists with better spacing */
.prose ul,
.prose ol {
  margin-bottom: var(--spacing-2xl);
  margin-top: var(--spacing-lg);
  padding-left: var(--spacing-3xl);
  max-width: var(--content-width);
}

.prose ul {
  list-style: none;
  position: relative;
}

.prose ul li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--glysimi-teal);
  border-radius: 50%;
  transform: translateY(-50%);
}

.prose ol li {
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose ol {
  list-style-type: decimal !important;
}

.prose ol li::marker {
  color: var(--text-accent);
  font-weight: 600;
}

/* Nested lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

/* Nested list bullets in prose - smaller and slightly different position */
.prose ul ul li::before {
  width: 6px;
  height: 6px;
  background: var(--glysimi-teal-dark);
  top: 0.65em;
}

/* Third level nested bullets in prose */
.prose ul ul ul li::before {
  width: 4px;
  height: 4px;
  background: var(--text-accent);
  top: 0.7em;
}

/* Enhanced code styling */
.prose code {
  background-color: var(--glysimi-light-teal);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: 0.9em;
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
  letter-spacing: 0.025em;
  color: var(--glysimi-teal-dark);
  font-weight: 500;
}

.prose pre {
  background-color: var(--text-primary);
  color: var(--background-white);
  padding: var(--spacing-3xl);
  border-radius: var(--border-radius-lg);
  overflow-x: auto;
  margin: var(--spacing-4xl) 0;
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
  line-height: var(--line-height-relaxed);
  box-shadow: var(--shadow-soft);
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  font-size: var(--font-size-sm);
  color: inherit;
}

/* Enhanced blockquotes with better readability */
.prose blockquote {
  border-left: 4px solid var(--glysimi-teal);
  background: var(--background-soft);
  padding: var(--spacing-2xl) var(--spacing-3xl);
  margin: var(--spacing-4xl) 0;
  max-width: var(--content-width);
  position: relative;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  box-shadow: var(--shadow-subtle);
}

.prose blockquote p {
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
  font-style: italic;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

/* Ensure blockquotes don't merge */
.prose blockquote + blockquote {
  margin-top: var(--spacing-4xl);
}

/* Original Callout Design - Rounded with Left Border & Icons */
.callout {
  margin: var(--spacing-4xl) 0;
  border-radius: var(--border-radius);
  max-width: var(--content-width);
  position: relative;
  border-left: 4px solid;
  background: var(--background-white);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.callout-header {
  display: flex;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  font-weight: 600;
  font-size: var(--font-size-sm);
  position: relative;
}

.callout-header::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.callout-title {
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.callout-title-text {
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.callout-content {
  padding: 0 var(--spacing-xl) var(--spacing-xl);
}

.callout-content p {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
}

.callout-content p + p {
  margin-top: var(--spacing-lg);
}

/* Foldable callouts styling */
.callout-foldable summary {
  list-style: none;
  padding: var(--spacing-lg) var(--spacing-xl);
  cursor: pointer;
  position: relative;
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.callout-foldable summary::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.callout-foldable summary::-webkit-details-marker {
  display: none;
}

.callout-foldable summary::after {
  content: '▶';
  position: absolute;
  right: var(--spacing-xl);
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  font-size: var(--font-size-xs);
  opacity: 0.7;
  margin-left: auto;
}

.callout-foldable[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Callout Type Styles - Clean, Professional Design */

/* Note - Default blue/teal with note icon */
.callout-note {
  border-color: var(--glysimi-teal);
  background-color: var(--glysimi-light-teal);
}

.callout-note .callout-header,
.callout-note .callout-title,
.callout-note .callout-title-text {
  color: var(--glysimi-teal-dark);
  background-color: var(--glysimi-light-teal);
}

.callout-note .callout-header::before {
  content: '✎';
  font-size: 18px;
  color: var(--glysimi-teal-dark);
}

.callout-note .callout-foldable summary::before {
  content: '✎';
  font-size: 18px;
  color: var(--glysimi-teal-dark);
}

/* Info - Similar to note with info icon */
.callout-info {
  border-color: var(--glysimi-info);
  background-color: #E1F5FE;
}

.callout-info .callout-header,
.callout-info .callout-title,
.callout-info .callout-title-text {
  color: var(--glysimi-info);
  background-color: #E1F5FE;
}

.callout-info .callout-header::before {
  content: 'ℹ';
  font-size: 18px;
  color: var(--glysimi-info);
}

.callout-info .callout-foldable summary::before {
  content: 'ℹ';
  font-size: 18px;
  color: var(--glysimi-info);
}

/* Abstract/Summary - Soft purple for excerpts with abstract icon */
.callout-abstract,
.callout-summary,
.callout-tldr {
  border-color: var(--soft-lavender);
  background-color: var(--soft-lavender-light);
}

.callout-abstract .callout-header,
.callout-abstract .callout-title,
.callout-abstract .callout-title-text,
.callout-summary .callout-header,
.callout-summary .callout-title,
.callout-summary .callout-title-text,
.callout-tldr .callout-header,
.callout-tldr .callout-title,
.callout-tldr .callout-title-text {
  color: var(--soft-lavender);
  background-color: var(--soft-lavender-light);
}

.callout-abstract .callout-header::before,
.callout-summary .callout-header::before,
.callout-tldr .callout-header::before {
  content: '∑';
  font-size: 18px;
  color: var(--soft-lavender);
}

.callout-abstract .callout-foldable summary::before,
.callout-summary .callout-foldable summary::before,
.callout-tldr .callout-foldable summary::before {
  content: '∑';
  font-size: 18px;
  color: var(--soft-lavender);
}

/* Success - Green/sage with checkmark icon */
.callout-success,
.callout-check,
.callout-done {
  border-color: var(--gentle-sage);
  background-color: var(--gentle-sage-light);
}

.callout-success .callout-header,
.callout-success .callout-title,
.callout-success .callout-title-text,
.callout-check .callout-header,
.callout-check .callout-title,
.callout-check .callout-title-text,
.callout-done .callout-header,
.callout-done .callout-title,
.callout-done .callout-title-text {
  color: var(--gentle-sage);
  background-color: var(--gentle-sage-light);
}

.callout-success .callout-header::before,
.callout-check .callout-header::before,
.callout-done .callout-header::before {
  content: '✓';
  font-size: 18px;
  color: var(--gentle-sage);
  font-weight: bold;
}

.callout-success .callout-foldable summary::before,
.callout-check .callout-foldable summary::before,
.callout-done .callout-foldable summary::before {
  content: '✓';
  font-size: 18px;
  color: var(--gentle-sage);
  font-weight: bold;
}

/* Tip/Hint - Green/sage with lightbulb icon */
.callout-tip,
.callout-hint,
.callout-important {
  border-color: var(--gentle-sage);
  background-color: var(--gentle-sage-light);
}

.callout-tip .callout-header,
.callout-tip .callout-title,
.callout-tip .callout-title-text,
.callout-hint .callout-header,
.callout-hint .callout-title,
.callout-hint .callout-title-text,
.callout-important .callout-header,
.callout-important .callout-title,
.callout-important .callout-title-text {
  color: var(--gentle-sage);
  background-color: var(--gentle-sage-light);
}

.callout-tip .callout-header::before,
.callout-hint .callout-header::before,
.callout-important .callout-header::before {
  content: '💡';
  font-size: 16px;
  color: var(--gentle-sage);
}

.callout-tip .callout-foldable summary::before,
.callout-hint .callout-foldable summary::before,
.callout-important .callout-foldable summary::before {
  content: '💡';
  font-size: 16px;
  color: var(--gentle-sage);
}

/* Warning/Caution - Amber/yellow with warning icon */
.callout-warning,
.callout-caution,
.callout-attention {
  border-color: var(--warm-amber);
  background-color: var(--warm-amber-light);
}

.callout-warning .callout-header,
.callout-warning .callout-title,
.callout-warning .callout-title-text,
.callout-caution .callout-header,
.callout-caution .callout-title,
.callout-caution .callout-title-text,
.callout-attention .callout-header,
.callout-attention .callout-title,
.callout-attention .callout-title-text {
  color: #B45309;
  background-color: var(--warm-amber-light);
}

.callout-warning .callout-header::before,
.callout-caution .callout-header::before,
.callout-attention .callout-header::before {
  content: '⚠';
  font-size: 18px;
  color: #B45309;
}

.callout-warning .callout-foldable summary::before,
.callout-caution .callout-foldable summary::before,
.callout-attention .callout-foldable summary::before {
  content: '⚠';
  font-size: 18px;
  color: #B45309;
}

/* Failure/Error/Danger - Red/coral with X or bug icons */
.callout-failure,
.callout-fail,
.callout-missing,
.callout-danger,
.callout-error,
.callout-bug {
  border-color: var(--glysimi-error);
  background-color: #FEE2E2;
}

.callout-failure .callout-header,
.callout-failure .callout-title,
.callout-failure .callout-title-text,
.callout-fail .callout-header,
.callout-fail .callout-title,
.callout-fail .callout-title-text,
.callout-missing .callout-header,
.callout-missing .callout-title,
.callout-missing .callout-title-text,
.callout-danger .callout-header,
.callout-danger .callout-title,
.callout-danger .callout-title-text,
.callout-error .callout-header,
.callout-error .callout-title,
.callout-error .callout-title-text,
.callout-bug .callout-header,
.callout-bug .callout-title,
.callout-bug .callout-title-text {
  color: var(--glysimi-error);
  background-color: #FEE2E2;
}

.callout-failure .callout-header::before,
.callout-fail .callout-header::before,
.callout-missing .callout-header::before,
.callout-danger .callout-header::before,
.callout-error .callout-header::before {
  content: '✗';
  font-size: 18px;
  color: var(--glysimi-error);
  font-weight: bold;
}

.callout-bug .callout-header::before {
  content: '🐛';
  font-size: 16px;
  color: var(--glysimi-error);
}

.callout-failure .callout-foldable summary::before,
.callout-fail .callout-foldable summary::before,
.callout-missing .callout-foldable summary::before,
.callout-danger .callout-foldable summary::before,
.callout-error .callout-foldable summary::before {
  content: '✗';
  font-size: 18px;
  color: var(--glysimi-error);
  font-weight: bold;
}

.callout-bug .callout-foldable summary::before {
  content: '🐛';
  font-size: 16px;
  color: var(--glysimi-error);
}

/* Question/Help/FAQ - Blue with question mark icon */
.callout-question,
.callout-help,
.callout-faq {
  border-color: var(--glysimi-info);
  background-color: #E1F5FE;
}

.callout-question .callout-header,
.callout-question .callout-title,
.callout-question .callout-title-text,
.callout-help .callout-header,
.callout-help .callout-title,
.callout-help .callout-title-text,
.callout-faq .callout-header,
.callout-faq .callout-title,
.callout-faq .callout-title-text {
  color: var(--glysimi-info);
  background-color: #E1F5FE;
}

.callout-question .callout-header::before,
.callout-help .callout-header::before,
.callout-faq .callout-header::before {
  content: '?';
  font-size: 18px;
  color: var(--glysimi-info);
  font-weight: bold;
}

.callout-question .callout-foldable summary::before,
.callout-help .callout-foldable summary::before,
.callout-faq .callout-foldable summary::before {
  content: '?';
  font-size: 18px;
  color: var(--glysimi-info);
  font-weight: bold;
}

/* Quote/Cite - Grey with quote styling */
.callout-quote,
.callout-cite {
  border-color: var(--text-muted);
  background-color: #F8F9FA;
}

.callout-quote .callout-header,
.callout-quote .callout-title,
.callout-quote .callout-title-text,
.callout-cite .callout-header,
.callout-cite .callout-title,
.callout-cite .callout-title-text {
  color: var(--text-secondary);
  background-color: #F8F9FA;
}

.callout-quote .callout-header::before,
.callout-cite .callout-header::before {
  content: '❝';
  font-size: 20px;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout-quote .callout-foldable summary::before,
.callout-cite .callout-foldable summary::before {
  content: '❝';
  font-size: 20px;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Example - Amber with example icon */
.callout-example {
  border-color: var(--warm-amber);
  background-color: var(--warm-amber-light);
}

.callout-example .callout-header,
.callout-example .callout-title,
.callout-example .callout-title-text {
  color: #B45309;
  background-color: var(--warm-amber-light);
}

.callout-example .callout-header::before {
  content: 'Ὅd';
  font-size: 16px;
  color: #B45309;
}

.callout-example .callout-foldable summary::before {
  content: 'Ὅd';
  font-size: 16px;
  color: #B45309;
}

/* Todo - Light blue with checkbox icon */
.callout-todo {
  border-color: var(--glysimi-teal);
  background-color: var(--glysimi-light-teal);
}

.callout-todo .callout-header,
.callout-todo .callout-title,
.callout-todo .callout-title-text {
  color: var(--glysimi-teal-dark);
  background-color: var(--glysimi-light-teal);
}

.callout-todo .callout-header::before {
  content: '☐';
  font-size: 18px;
  color: var(--glysimi-teal-dark);
}

.callout-todo .callout-foldable summary::before {
  content: '☐';
  font-size: 18px;
  color: var(--glysimi-teal-dark);
}

/* Modern table styles */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-5xl) 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--background-white);
}

.prose th,
.prose td {
  border: none;
  padding: var(--spacing-xl) var(--spacing-2xl);
  text-align: left;
  font-size: var(--font-size-base);
}

.prose th {
  background-color: var(--glysimi-light-teal);
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose td {
  border-bottom: 1px solid var(--border-light);
  line-height: var(--line-height-relaxed);
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:nth-child(even) td {
  background-color: var(--background-soft);
}

/* Horizontal rules */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: var(--spacing-6xl) 0;
}

/* Enhanced research and medical content styling */
.research-metadata {
  background: linear-gradient(135deg, var(--gentle-sage-light), var(--warm-amber-light));
  border: 2px solid var(--gentle-sage);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-4xl);
  margin: var(--spacing-5xl) 0;
  max-width: var(--content-width);
  box-shadow: var(--shadow-gentle);
  position: relative;
  overflow: hidden;
}

.research-metadata::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gentle-sage), var(--warm-amber));
}

.research-metadata h3 {
  color: var(--gentle-sage);
  margin-bottom: var(--spacing-2xl);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-base);
}

.research-metadata p {
  margin-bottom: var(--spacing-xl);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
}

.research-metadata p:last-child {
  margin-bottom: 0;
}


/* Enhanced tag styles with warm personality */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-xl);
  background: linear-gradient(135deg, var(--glysimi-light-teal), var(--warm-coral-light));
  color: var(--text-accent);
  border-radius: 9999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  margin: var(--spacing-xs);
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.tag:hover::before {
  left: 100%;
}

.tag:hover {
  background: linear-gradient(135deg, var(--warm-coral), var(--warm-amber));
  color: var(--background-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
  border-color: var(--warm-coral);
}

.tag.research {
  background: linear-gradient(135deg, var(--gentle-sage-light), var(--warm-amber-light));
  color: var(--gentle-sage);
}

.tag.research:hover {
  background: linear-gradient(135deg, var(--gentle-sage), var(--warm-amber));
  color: var(--background-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gentle);
}

/* Modern button system with warm touches */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-2xl);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: var(--font-size-base);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:focus {
  outline: 2px solid var(--warm-coral);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--text-accent), var(--glysimi-teal-dark));
  color: var(--background-white);
  border-color: var(--text-accent);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--glysimi-teal-dark), var(--text-accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-trust);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--warm-coral), var(--warm-amber));
  color: var(--background-white);
  border-color: var(--warm-coral);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--warm-amber), var(--warm-coral));
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-accent);
  border-color: var(--text-accent);
}

.btn-outline:hover {
  background-color: var(--text-accent);
  color: var(--background-white);
  transform: translateY(-1px);
}

/* Enhanced card system with warm touches */
.card {
  background-color: var(--background-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-4xl);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warm-coral), var(--warm-amber), var(--gentle-sage));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: var(--warm-coral);
  box-shadow: var(--shadow-warm);
  transform: translateY(-4px);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-2xl);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
}

.card-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
}

.card-meta {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-normal);
}

/* Enhanced header branding */
.header-branding h1 {
  background: linear-gradient(135deg, var(--text-primary), var(--glysimi-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.header-branding:hover h1 {
  background: linear-gradient(135deg, var(--warm-coral), var(--warm-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-1px);
}

.header-branding p {
  transition: all 0.3s ease;
}

/* Simplified navigation styling */
.nav-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: var(--font-size-base);
}

/* Simple hover override for both desktop and mobile navigation */
.nav-link:hover,
#mobile-menu a:hover {
  color: var(--glysimi-teal-dark) !important;
}

.nav-link.active {
  background: linear-gradient(135deg, var(--glysimi-light-teal), var(--background-soft));
  color: var(--glysimi-teal);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--spacing-lg);
  right: var(--spacing-lg);
  height: 3px;
  background: linear-gradient(90deg, var(--glysimi-teal), var(--glysimi-teal-dark));
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(74, 144, 164, 0.3);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  :root {
    --spacing-3xl: 1.5rem;
    --spacing-4xl: 2rem;
    --spacing-5xl: 2.5rem;
    --spacing-6xl: 3rem;
  }
  
  h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
    margin-top: var(--spacing-4xl);
    margin-bottom: var(--spacing-2xl);
  }
  
  h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--spacing-3xl);
  }
  
  .prose {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
  }
  
  .prose p {
    margin-bottom: var(--spacing-3xl);
  }
  
  .prose h1,
  .prose h2,
  .prose h3 {
    margin-top: var(--spacing-4xl);
    margin-bottom: var(--spacing-2xl);
  }
  
  .prose ul,
  .prose ol {
    margin-bottom: var(--spacing-3xl);
    padding-left: var(--spacing-2xl);
  }
  
  .prose li {
    margin-bottom: var(--spacing-md);
  }
  
  .prose blockquote {
    padding: var(--spacing-2xl);
    margin: var(--spacing-3xl) 0;
  }
  
  /* Callout responsive adjustments - tighter spacing on mobile */
  .callout {
    margin: var(--spacing-xl) 0;
  }
  
  .callout-header {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-xs);
  }
  
  .callout-content {
    padding: 0 var(--spacing-lg) var(--spacing-md);
  }
  
  .callout-foldable summary {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .callout-header::before,
  .callout-foldable summary::before {
    width: 16px;
    height: 16px;
    margin-right: var(--spacing-xs);
  }
  
  .card {
    padding: var(--spacing-2xl);
  }
  
  .research-metadata {
    padding: var(--spacing-2xl);
    margin: var(--spacing-3xl) 0;
  }
}

/* Enhanced print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: #000;
  }
  
  .prose p {
    margin-bottom: 12pt;
  }
  
  .card {
    box-shadow: none;
    border: 1pt solid #ccc;
    break-inside: avoid;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .broken-label,
  .draft-label {
    display: none;
  }
}

/* Enhanced accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: var(--spacing-md);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--text-accent);
  color: var(--background-white);
  border-radius: var(--border-radius);
  font-weight: 600;
  z-index: 9999;
}

/* Enhanced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support disabled as requested - keeping light theme only */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --background-soft: #0F172A;
    --background-white: #1E293B;
    --background-warm: #1E293B;
    --border-color: #334155;
    --border-light: #475569;
    --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  }
  
  body {
    background-color: var(--background-soft);
    color: var(--text-primary);
  }
  
  .card {
    background-color: var(--background-white);
    border-color: var(--border-color);
  }
  
  .prose th {
    background-color: var(--border-color);
  }
  
  .prose tr:nth-child(even) td {
    background-color: var(--border-light);
  }
  
  .research-metadata {
    background-color: var(--background-white);
    border-color: var(--border-color);
  }
  
  .callout {
    background-color: var(--background-white);
    border-color: var(--border-color);
  }
}
*/

/* Enhanced utility classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--line-height-relaxed);
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--line-height-relaxed);
}

/* Enhanced YouTube embed styles */
.youtube-embed {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: var(--spacing-5xl) auto;
  background-color: #000;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
}

/* Loading state removed - YouTube provides its own loading UI */

/* Enhanced responsive adjustments for YouTube embeds */
@media (max-width: 1440px) {
  .youtube-embed {
    max-width: 960px;
  }
}

@media (max-width: 768px) {
  .youtube-embed {
    max-width: 100%;
    margin: var(--spacing-4xl) 0;
    border-radius: var(--border-radius);
  }
}

@media (max-width: 480px) {
  .youtube-embed {
    max-width: 100%;
    margin: var(--spacing-3xl) 0;
  }
}

/* Enhanced contrast and accessibility */
@media (prefers-contrast: high) {
  .youtube-embed {
    box-shadow: 0 0 0 2px var(--text-primary);
  }
  
  .card {
    border-width: 2px;
  }
  
  .tag {
    border-width: 2px;
  }
  
  .btn {
    border-width: 3px;
  }
}

/* Enhanced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .tag:hover,
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* Enhanced Obsidian-style asset embeds */
.obsidian-asset {
  max-width: 100%;
  height: auto;
  margin: var(--spacing-4xl) 0;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.obsidian-asset:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-soft);
}

/* Center assets in prose content */
.prose .obsidian-asset {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--spacing-5xl);
  margin-bottom: var(--spacing-5xl);
}

/* Image captions */
.prose .obsidian-asset + em,
.prose img + em {
  display: block;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-4xl);
  font-style: italic;
}

/* Focus-visible enhancements */
.obsidian-asset:focus-visible,
.youtube-embed:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 4px;
  border-radius: var(--border-radius-lg);
}

/* CSS-based decorative icons and visual elements */
.health-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  position: relative;
  margin-right: var(--spacing-sm);
  vertical-align: middle;
}

.health-icon.glucose::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, var(--warm-coral), var(--warm-amber));
  border-radius: 50%;
  box-shadow: 
    0 0 0 2px rgba(255, 107, 107, 0.3),
    0 0 0 4px rgba(255, 179, 102, 0.2);
}

.health-icon.research::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 2px;
  background: var(--gentle-sage);
  border-radius: 1px;
  box-shadow: 
    0 -3px 0 var(--gentle-sage),
    0 3px 0 var(--gentle-sage),
    0 6px 0 var(--warm-amber);
}

.health-icon.heart::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 6px;
  height: 10px;
  background: var(--warm-coral);
  border-radius: 6px 6px 0 0;
  transform-origin: 0 100%;
}

.health-icon.heart::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -50%) rotate(45deg);
  width: 6px;
  height: 10px;
  background: var(--warm-coral);
  border-radius: 6px 6px 0 0;
  transform-origin: 0 100%;
}

/* Section dividers with subtle patterns */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: var(--spacing-6xl) 0;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  background: linear-gradient(90deg, var(--warm-coral), var(--warm-amber), var(--gentle-sage));
  border-radius: 3px;
  opacity: 0.7;
}

/* Enhanced visual hierarchy for sections */
.content-section {
  position: relative;
  padding: var(--spacing-5xl) 0;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50vw;
  right: -50vw;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 107, 107, 0.02) 0%, 
    rgba(255, 179, 102, 0.01) 50%, 
    rgba(155, 207, 83, 0.02) 100%);
  z-index: -1;
  pointer-events: none;
}

.content-section:nth-child(even)::before {
  background: linear-gradient(135deg, 
    rgba(155, 207, 83, 0.02) 0%, 
    rgba(255, 179, 102, 0.01) 50%, 
    rgba(177, 156, 217, 0.02) 100%);
}

/* Decorative elements for trust and warmth */
.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--gentle-sage-light), var(--background-white));
  border: 1px solid var(--gentle-sage);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gentle-sage);
  margin: var(--spacing-xs);
  position: relative;
  overflow: hidden;
}

.trust-badge::before {
  content: '✓';
  margin-right: var(--spacing-xs);
  font-weight: 800;
  color: var(--gentle-sage);
}

.warm-highlight {
  background: linear-gradient(135deg, var(--warm-coral-light), var(--warm-amber-light));
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  border: 1px solid var(--warm-coral);
  color: var(--text-primary);
  font-weight: 500;
}

/* Enhanced breadcrumb styling */
.breadcrumb-item {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.breadcrumb-item:hover {
  color: var(--warm-coral);
}

.breadcrumb-separator {
  color: var(--warm-amber);
  margin: 0 var(--spacing-sm);
}

/* Welcoming animation on page load */
@keyframes gentle-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-gentle-fade {
  animation: gentle-fade-in 0.8s ease-out;
}

/* Staggered animation for cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* Medical credibility indicators */
.medical-indicator {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--gentle-sage);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.medical-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gentle-sage);
  border-radius: 50%;
  margin-right: var(--spacing-xs);
  animation: gentle-pulse 2s infinite;
}

@keyframes gentle-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Custom tooltip for broken links - instant popup */
.broken-link-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--text-primary);
  color: var(--background-white);
  font-size: var(--font-size-sm);
  font-style: normal;
  font-weight: 500;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Tooltip arrow */
.broken-link-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
}

/* Show tooltip on hover (desktop) */
.broken-link:hover .broken-link-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Show tooltip when active (mobile tap) */
.broken-link.tooltip-active .broken-link-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsive positioning for mobile */
@media (max-width: 768px) {
  .broken-link-tooltip {
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    box-shadow: var(--shadow-elevated);
    backdrop-filter: blur(8px);
    background: rgba(30, 41, 59, 0.95);
  }
  
  .broken-link-tooltip::after {
    display: none;
  }
  
  .broken-link.tooltip-active .broken-link-tooltip {
    transform: translate(-50%, -50%);
  }
}

/* Unpublished link tooltip styles */
.unpublished-link {
  position: relative;
  display: inline-block;
  cursor: help;
}

.unpublished-link-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--warm-amber);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-style: normal;
  font-weight: 500;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.unpublished-link-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--warm-amber);
}

.unpublished-link:hover .unpublished-link-tooltip,
.unpublished-link.tooltip-active .unpublished-link-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .unpublished-link-tooltip {
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    box-shadow: var(--shadow-elevated);
    backdrop-filter: blur(8px);
    background: rgba(255, 179, 102, 0.95);
  }
  
  .unpublished-link-tooltip::after {
    display: none;
  }
  
  .unpublished-link.tooltip-active .unpublished-link-tooltip {
    transform: translate(-50%, -50%);
  }
}