/* ============================================================
   Long-Form Article Reading Experience Enhancement
   Optimized for 10,000+ word technical content
   Minimal theme compatible - Professional design approach
   ============================================================ */

/* CSS Variables for consistent theming */
:root {
  --minimal-text: #2c3e50;  /* Softer than pure black - reduces eye strain */
  --minimal-text-secondary: #586069;
  --minimal-text-muted: #6a737d;
  --minimal-border: #e1e4e8;
  --minimal-border-light: #f1f3f4;
  --minimal-bg: #ffffff;
  --minimal-bg-secondary: #f6f8fa;
  --minimal-accent: #3498db;  /* Slightly brighter blue for better visibility */
  --minimal-accent-hover: #2980b9;
  --minimal-success: #27ae60;
  --minimal-warning: #f39c12;
  --minimal-shadow: rgba(0, 0, 0, 0.1);
  --minimal-shadow-light: rgba(0, 0, 0, 0.05);
}

/* ============================================================
   1. Typography: The Soul of Readability
   ============================================================ */

/* Base typography improvements for post layout */
.post-layout {
  font-size: 19px; /* Desktop: Premium reading experience (18-22px is optimal) */
  line-height: 1.75; /* Generous vertical rhythm - reduces fatigue */
  color: var(--minimal-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile typography adjustments */
@media (max-width: 768px) {
  .post-layout {
    font-size: 17px; /* Mobile: Slightly larger for better readability without zoom */
    line-height: 1.65;
  }
}

/* Content width control for optimal reading experience */
.post-layout section {
  max-width: 70ch; /* ~70 characters per line - optimal sweet spot */
  margin: 0 auto;
  padding: 0 2.5rem;
  margin-left: 320px; /* Add left margin to accommodate floating TOC */
}

/* Large screen optimization */
@media (min-width: 1400px) {
  .post-layout section {
    max-width: 75ch; /* Slightly wider on very large screens */
    padding: 0 3rem;
  }
}

/* ============================================================
   2. Heading Hierarchy: Clear Visual Structure
   ============================================================ */

.post-layout h1 {
  font-size: 2.625rem; /* 42px - Commanding presence */
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 0;
  font-weight: 700;
  color: var(--minimal-text);
  letter-spacing: -0.02em;
}

.post-layout h2 {
  font-size: 2rem; /* 32px */
  line-height: 1.3;
  margin-top: 3.5rem; /* Generous top spacing creates "visual chapters" */
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--minimal-text);
  letter-spacing: -0.01em;
  position: relative;
}

.post-layout h3 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.4;
  margin-top: 2.5rem; /* Increased from 2rem */
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--minimal-text);
}

.post-layout h4 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.4;
  margin-top: 2rem; /* Increased from 1.5rem */
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--minimal-text);
}

.post-layout h5,
.post-layout h6 {
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--minimal-text);
}

/* ============================================================
   3. Layout & Spacing: The Art of Breathing Room
   ============================================================ */

/* Paragraph spacing and rhythm */
.post-layout p {
  margin-bottom: 1.75rem; /* 28px - generous breathing room */
  max-width: none; /* Inherit from parent container */
  text-align: left; /* Left-align is actually more readable than justify for web */
  hyphens: none; /* Prevent awkward hyphenation */
}

/* List styling improvements */
.post-layout ul,
.post-layout ol {
  margin-bottom: 1.75rem; /* Match paragraph spacing */
  padding-left: 1.75rem; /* Slightly more indent for clarity */
}

.post-layout li {
  margin-bottom: 0.75rem; /* Increased from 0.5rem for better scanning */
  line-height: 1.75; /* Match body line-height */
}

.post-layout ul li {
  list-style-type: disc;
}

.post-layout ol li {
  list-style-type: decimal;
}

/* Nested lists */
.post-layout ul ul,
.post-layout ol ol,
.post-layout ul ol,
.post-layout ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   4. Enhanced Blockquotes & Callouts - Professional Design
   ============================================================ */

/* Transparency note and important callouts */
.post-layout blockquote {
  background: var(--minimal-bg-secondary);
  border-left: 4px solid var(--minimal-accent);
  padding: 1.75rem 2rem; /* More generous padding */
  margin: 2.5rem 0; /* Increased from 2rem for better separation */
  border-radius: 0 8px 8px 0;
  font-style: normal; /* Remove italic for better readability */
  position: relative;
  box-shadow: 0 2px 12px var(--minimal-shadow-light);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-layout blockquote:hover {
  box-shadow: 0 4px 16px var(--minimal-shadow-light);
  transform: translateX(2px);
}

.post-layout blockquote::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -4px;
  width: 4px;
  height: calc(100% + 2px);
  background: var(--minimal-accent);
  border-radius: 2px 0 0 2px;
}

.post-layout blockquote p {
  margin-bottom: 0;
  font-size: 1em; /* Full size for better readability */
  color: var(--minimal-text-secondary);
  line-height: 1.75;
}

.post-layout blockquote p:last-child {
  margin-bottom: 0;
}

.post-layout blockquote p + p {
  margin-top: 1rem;
}

/* Highlight boxes for important information */
.post-layout .highlight-box {
  background: var(--minimal-bg-secondary);
  border: 1px solid var(--minimal-border);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  position: relative;
  box-shadow: 0 2px 8px var(--minimal-shadow-light);
}

.post-layout .highlight-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--minimal-accent);
  border-radius: 4px 0 0 4px;
}

/* Warning callout variant */
.post-layout .warning-box {
  background: rgba(243, 156, 18, 0.08);
  border-left: 4px solid var(--minimal-warning);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  border-radius: 0 8px 8px 0;
  position: relative;
}

/* Success callout variant */
.post-layout .success-box {
  background: rgba(39, 174, 96, 0.08);
  border-left: 4px solid var(--minimal-success);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  border-radius: 0 8px 8px 0;
  position: relative;
}

/* ============================================================
   5. Code Blocks: Enhanced Readability
   ============================================================ */

.post-layout .highlight {
  background: var(--minimal-bg-secondary);
  border: 1px solid var(--minimal-border);
  border-radius: 8px;
  margin: 2.5rem 0; /* Increased from 2rem */
  overflow: hidden;
  box-shadow: 0 2px 8px var(--minimal-shadow-light);
  position: relative;
}

.post-layout .highlight pre {
  padding: 1.75rem 2rem; /* More generous padding */
  margin: 0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7; /* Increased from 1.6 */
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--minimal-border) transparent;
}

/* Custom scrollbar for code blocks */
.post-layout .highlight pre::-webkit-scrollbar {
  height: 8px;
}

.post-layout .highlight pre::-webkit-scrollbar-track {
  background: transparent;
}

.post-layout .highlight pre::-webkit-scrollbar-thumb {
  background: var(--minimal-border);
  border-radius: 4px;
}

.post-layout .highlight pre::-webkit-scrollbar-thumb:hover {
  background: var(--minimal-text-muted);
}

.post-layout .highlight code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.7;
}

/* Inline code styling */
.post-layout code:not(.highlight code) {
  background: rgba(52, 152, 219, 0.1);
  color: var(--minimal-accent);
  padding: 0.25em 0.5em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  border: 1px solid rgba(52, 152, 219, 0.2);
  font-weight: 500;
}

/* ============================================================
   6. Images & Media: Visual Break and Context
   ============================================================ */

.post-layout img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--minimal-shadow);
  margin: 3rem auto; /* Center and increase spacing */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.post-layout img:hover {
  transform: scale(1.015); /* Subtle zoom on hover */
  box-shadow: 0 8px 32px var(--minimal-shadow);
  cursor: zoom-in;
}

/* Image captions - Enhanced styling */
.post-layout img + em {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--minimal-text-secondary);
  margin-top: 1rem;
  margin-bottom: 3rem;
  font-style: normal; /* Remove italic for better readability */
  line-height: 1.6;
  padding: 0 1rem;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

/* Caption decoration */
.post-layout img + em::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--minimal-border);
  margin: 0 auto 0.75rem auto;
}

/* Figure element support - Professional styling */
.post-layout figure {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--minimal-bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--minimal-border-light);
}

.post-layout figure img {
  margin: 0;
  box-shadow: 0 2px 8px var(--minimal-shadow-light);
  border-radius: 6px;
}

.post-layout figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--minimal-text-secondary);
  margin-top: 1.25rem;
  font-style: normal;
  line-height: 1.65;
  max-width: 90%;
  padding: 0 1rem;
}

/* Figure caption decoration */
.post-layout figcaption::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--minimal-accent);
  margin: 0 auto 0.875rem auto;
  opacity: 0.3;
}

/* Mobile caption adjustments */
@media (max-width: 768px) {
  .post-layout img + em,
  .post-layout figcaption {
    font-size: 13px;
    max-width: 95%;
    padding: 0 0.5rem;
  }

  .post-layout figure {
    padding: 1.5rem 1rem;
  }
}

/* Diagram and chart containers */
.post-layout .diagram-container {
  background: var(--minimal-bg-secondary);
  border: 1px solid var(--minimal-border);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.post-layout .diagram-container img {
  max-width: 100%;
  margin: 0;
  box-shadow: none;
  border-radius: 4px;
}

/* Allow diagrams to break out slightly wider than text */
.post-layout .wide-diagram {
  max-width: 85ch; /* Wider than text column */
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   7. Reading Progress Bar
   ============================================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--minimal-accent), var(--minimal-accent-hover));
  z-index: 1000;
  transition: width 0.1s ease;
  box-shadow: 0 2px 4px var(--minimal-shadow);
}

/* ============================================================
   8. Enhanced Table of Contents - Smart Integration
   ============================================================ */

/* Minimal wrapper modifications - preserve theme defaults */
.post-layout .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative; /* For absolute positioning of sidebar */
}

/* Sidebar container - fixed positioning with proper height management */
.post-layout .post-sidebar {
  position: fixed;
  left: 1rem;
  top: 2rem;
  width: 280px;
  height: calc(100vh - 4rem); /* Use most of viewport height */
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent outer scrollbar */
  -webkit-overflow-scrolling: auto; /* Disable momentum scrolling on container */
}

/* Main content area - add left margin to accommodate sidebar */
.post-layout .wrapper > section {
  margin-left: 320px; /* Space for sidebar */
  max-width: 65ch; /* Optimal reading width */
}

/* Professional floating TOC implementation - full height with flexbox */
.floating-toc {
  width: 100%;
  height: 100%; /* Fill the entire sidebar container */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--minimal-border);
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--minimal-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Vertical layout for header, nav, progress */
}

.floating-toc:hover {
  box-shadow: 0 12px 40px var(--minimal-shadow);
  transform: scale(1.02);
}

/* TOC collapsed state */
.floating-toc.collapsed {
  max-height: 30px;
}

.floating-toc.collapsed .toc-nav,
.floating-toc.collapsed .toc-progress {
  display: none;
}

/* TOC header - fixed at top */
.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--minimal-bg);
  border-bottom: 1px solid var(--minimal-border);
  font-weight: 600;
  flex-shrink: 0; /* Don't shrink */
}

.toc-title {
  margin: 0;
  font-size: 13px;
  color: var(--minimal-text);
  font-weight: 600;
}

.toc-toggle {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--minimal-text-secondary);
  cursor: pointer;
  padding: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.toc-toggle:hover {
  background-color: var(--minimal-border-light);
  color: var(--minimal-text);
}

/* TOC navigation - scrollable area that takes remaining space */
.toc-nav {
  flex: 1; /* Take all remaining space */
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
  padding: 8px 0;
  scrollbar-gutter: stable;
  min-height: 0; /* Important for flexbox scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.toc-nav::-webkit-scrollbar {
  width: 6px;
  -webkit-appearance: none;
}

.toc-nav::-webkit-scrollbar-track {
  background: var(--minimal-bg-secondary);
}

.toc-nav::-webkit-scrollbar-thumb {
  background: var(--minimal-border);
  border-radius: 3px;
  min-height: 20px;
}

.toc-nav::-webkit-scrollbar-thumb:hover {
  background: var(--minimal-text-secondary);
}

/* TOC list styling */
.toc-nav .toc-list { 
  list-style: none; 
  margin: 0;
  padding: 0;       
}

.toc-item {
  margin: 0;
}

.toc-link {
  display: block;
  padding: 6px 12px;
  color: var(--minimal-text);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 12px;
  margin-bottom: 2px;
  border-radius: 0 4px 4px 0;
}

.toc-link:hover {
  color: var(--minimal-accent);
  background-color: rgba(3, 102, 214, 0.08);
  border-left-color: var(--minimal-accent);
  transform: translateX(2px);
}

.toc-link.active {
  color: var(--minimal-accent);
  background-color: rgba(3, 102, 214, 0.15);
  border-left-color: var(--minimal-accent);
  border-left-width: 3px;
  font-weight: 500;
}

/* TOC link hierarchy */
.toc-link.h1 {
  font-weight: 600;
  color: var(--minimal-text);
  font-size: 14px;
  padding: 8px 12px;
  margin-top: 4px;
  margin-bottom: 2px;
}

.toc-link.h2 {
  padding-left: 20px;
  font-size: 13px;
  background-color: transparent;
  font-weight: 500;
}

.toc-link.h2:hover {
  background-color: rgba(3, 102, 214, 0.08);
}

.toc-link.h2.active {
  background-color: rgba(3, 102, 214, 0.15);
}

.toc-link.h3 {
  padding-left: 28px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 12px;
}

.toc-link.h4 {
  padding-left: 36px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 11px;
  color: var(--minimal-text-secondary);
}

.toc-link.h5,
.toc-link.h6 {
  padding-left: 44px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 10px;
  color: var(--minimal-text-secondary);
}

/* TOC progress bar - fixed at bottom */
.toc-progress {
  height: 2px;
  background: var(--minimal-border);
  position: relative;
  flex-shrink: 0; /* Don't shrink */
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--minimal-accent), var(--minimal-accent-hover));
  width: 0%;
  transition: width 0.1s ease;
}

/* Responsive design for different screen sizes */
@media (max-width: 1200px) {
  .post-layout .wrapper {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .post-layout .post-sidebar {
    width: 260px; /* Slightly smaller on medium screens */
  }
  
  .post-layout .wrapper > section {
    margin-left: 280px; /* Adjust margin for smaller sidebar */
  }
}

/* Desktop: hide mobile TOC container */
@media (min-width: 1025px) {
  .mobile-toc-container {
    display: none;
  }
}

/* Transform TOC for tablet and mobile */
@media (max-width: 1024px) {
  /* Hide desktop fixed sidebar */
  .post-layout .post-sidebar {
    display: none;
  }

  .post-layout .wrapper > section {
    margin-left: 0; /* Reset margin */
  }

  /* Show mobile TOC container */
  .mobile-toc-container {
    display: block;
    margin: 0 0 2rem 0;
  }

  /* Mobile TOC styling */
  .mobile-toc-container .floating-toc {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    box-shadow: 0 2px 8px var(--minimal-shadow-light);
  }

  .mobile-toc-container .floating-toc.collapsed .toc-nav,
  .mobile-toc-container .floating-toc.collapsed .toc-progress {
    display: none;
  }

  .mobile-toc-container .toc-header {
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: var(--minimal-bg-secondary);
    user-select: none;
    border-bottom: 1px solid var(--minimal-border);
  }

  .mobile-toc-container .floating-toc:not(.collapsed) .toc-header {
    background: var(--minimal-bg);
  }

  .mobile-toc-container .toc-nav {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem 0;
  }

  .mobile-toc-container .toc-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  /* Start collapsed on mobile */
  .mobile-toc-container .floating-toc {
    /* JavaScript will handle initial state */
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .post-layout .wrapper {
    padding: 0 1rem;
  }
  
  .post-layout .wrapper > section {
    margin-left: 0;
    max-width: none; /* Full width on mobile */
  }
}

/* ============================================================
   9. Mobile Optimizations
   ============================================================ */

@media (max-width: 768px) {
  .post-layout section {
    padding: 0 1rem;
    max-width: none; /* Full width on mobile */
    margin-left: 0; /* Reset left margin on mobile */
  }
  
  .post-layout h1 {
    font-size: 2rem; /* 32px on mobile */
    line-height: 1.3;
  }
  
  .post-layout h2 {
    font-size: 1.75rem; /* 28px on mobile */
    margin-top: 2rem;
  }
  
  .post-layout h3 {
    font-size: 1.375rem; /* 22px on mobile */
    margin-top: 1.5rem;
  }
  
  .post-layout blockquote,
  .post-layout .highlight-box {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .post-layout .highlight pre {
    padding: 1rem;
    font-size: 13px;
  }
}

/* ============================================================
   10. Accessibility & Performance
   ============================================================ */

/* High contrast mode support */
@media (prefers-contrast: high) {
  .post-layout {
    color: #000000;
  }
  
  .post-layout blockquote,
  .post-layout .highlight-box {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .post-layout img,
  .floating-toc,
  .reading-progress {
    transition: none;
  }
}

/* ============================================================
   11. Special Content Blocks for Odoo Articles - Professional Design
   ============================================================ */

/* Transparency note styling */
.post-layout blockquote:first-of-type {
  background: var(--minimal-bg-secondary);
  border-left-color: var(--minimal-warning);
  border-left-width: 5px;
}

.post-layout blockquote:first-of-type::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -5px;
  width: 5px;
  height: calc(100% + 2px);
  background: var(--minimal-warning);
  border-radius: 3px 0 0 3px;
}

/* Benefits list styling */
.post-layout ul li:has(strong) {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--minimal-border-light);
}

.post-layout ul li:last-child {
  border-bottom: none;
}

.post-layout ul li strong {
  color: var(--minimal-accent);
  font-weight: 600;
}

/* Section dividers */
.post-layout hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--minimal-border), transparent);
  margin: 3rem 0;
}

/* Code block improvements for technical content */
.post-layout .highlight {
  position: relative;
  margin: 2.5rem 0;
}

.post-layout .highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--minimal-accent);
  border-radius: 4px 0 0 4px;
}

/* ============================================================
   12. Post Metadata (Date & Reading Time)
   ============================================================ */

.post-layout .post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--minimal-border-light);
}

.post-layout .post-date,
.post-layout .post-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 14px;
  color: var(--minimal-text-muted);
  font-weight: 400;
}

.post-layout .post-reading-time {
  color: var(--minimal-text-secondary);
}

.post-layout .reading-time-icon {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  opacity: 0.7;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .post-layout .post-meta {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .post-layout .post-date,
  .post-layout .post-reading-time {
    font-size: 13px;
  }
}

/* ============================================================
   13. Post Tags Styling
   ============================================================ */

.post-layout .post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--minimal-border-light);
}

.post-layout .post-tags small {
  color: var(--minimal-text-muted);
  font-size: 13px;
}

.post-layout .post-tags em {
  color: var(--minimal-text-secondary);
  font-style: normal;
  font-weight: 500;
}

/* ============================================================
   14. Breadcrumb Navigation - Post Layout Specific
   ============================================================ */

/* Override post-layout section styles for breadcrumb container */
.post-layout .breadcrumb-nav {
  margin: 0 0 1.5rem 0;
  padding: 0;
  border-bottom: 1px solid var(--minimal-border);
  /* Reset any post-layout section overrides */
  max-width: none !important;
  width: 100% !important;
}

.post-layout .breadcrumb {
  list-style: none;
  padding: 0 0 0.75rem 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px; /* Increased from 13px for better readability */
  line-height: 1.5;
}

.post-layout .breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--minimal-text-secondary);
}

.post-layout .breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--minimal-border);
}

.post-layout .breadcrumb li a {
  color: var(--minimal-accent);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  border-radius: 4px;
}

.post-layout .breadcrumb li a:hover {
  color: var(--minimal-accent-hover);
  background-color: rgba(52, 152, 219, 0.08);
  text-decoration: none;
}

.post-layout .breadcrumb li.active span {
  color: var(--minimal-text);
  font-weight: 500;
}

/* Mobile breadcrumb adjustments */
@media (max-width: 768px) {
  .post-layout .breadcrumb-nav {
    margin: 0 0 1rem 0;
  }

  .post-layout .breadcrumb {
    font-size: 12px;
    padding-bottom: 0.5rem;
  }

  .post-layout .breadcrumb li:not(:last-child)::after {
    margin: 0 0.375rem;
  }
}

/* ============================================================
   13. Print Styles
   ============================================================ */

@media print {
  .floating-toc,
  .reading-progress,
  .back-to-top {
    display: none !important;
  }
  
  .post-layout {
    font-size: 12pt;
    line-height: 1.5;
    color: #000000;
  }
  
  .post-layout section {
    max-width: none;
    padding: 0;
  }
  
  .post-layout blockquote,
  .post-layout .highlight-box {
    border: 1px solid #000000;
    background: #ffffff;
  }
}
