:root {
  --sidebar-width: 280px;
  --content-max: 900px;
  --toc-width: 240px;
  
  --bg-primary: #fff;
  --bg-secondary: #fafcff;  /* Very light, soft pastel blue for sidebar */
  --bg-hover: #f0f7ff;      /* Subtle pastel blue for hover states */
  
  --text-primary: #000;
  --text-secondary: #000;
  --text-muted: #6b7280;
  
  --accent: #1292ee;         /* Primary blue */
  --accent-light: #f0f7ff;   /* Very light blue background for active items */
  --accent-hover: #0a7fd6;   /* Darker blue for hover */
  
  --border: #e8f1fc;         /* Very soft blue-tinted border */
  --border-light: #f2f8fe;
  
  --radius: 6px;
  --radius-lg: 8px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 10%);
  
  --font-sans: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, sans-serif;
  --font-mono: "SFMono-Regular", consolas, "Liberation Mono", menlo, monospace;
}

/* Add-on tag badge - styled as grey rounded tag */
.addon-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 0.65em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Dark mode support for addon tag */
@media (prefers-color-scheme: dark) {
  .addon-tag {
    color: #9ca3af;
    background: #374151;
    border-color: #4b5563;
  }
}

/* Ensure navigation items with tags display properly */
.nav-item,
.nav-parent {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #1e2936;     /* Dark blue-gray for sidebar */
    --bg-hover: #2a3644;         /* Slightly lighter blue-gray for hover */
    
    --text-primary: #fff;
    --text-secondary: #fff;
    --text-muted: #9ca3af;
    
    --accent: #4db8ff;           /* Lighter blue for dark mode */
    --accent-light: #0d3352;     /* Dark blue background for active items */
    --accent-hover: #66c2ff;     /* Even lighter blue for hover */
    
    --border: #2d3e50;           /* Blue-tinted dark border */
    --border-light: #1f2937;
  }
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
}

.site-name:hover {
  color: var(--accent);
}

/* Search Trigger Button */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem;
  padding: 0.5rem 0.75rem;
  width: calc(100% - 2rem);
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: #fafcff;  /* Very light blue background */
  border: 1px solid #e8f1fc;  /* Soft blue border */
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.search-trigger:hover {
  border-color: var(--accent);
  background: #f0f7ff;  /* Slightly deeper blue on hover */
  color: var(--text-primary);
}

.search-trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.search-trigger span {
  flex: 1;
  text-align: left;
}

.search-trigger kbd {
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* Navigation */
.nav-menu {
  padding: 0.5rem 0;
}

.nav-section {
  margin-bottom: 0;
}

.nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.nav-section-header {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--text-primary);
  margin-top: 0.5rem;
  cursor: default;
}

.nav-section-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0.25rem 1rem;  /* Match nav-item padding for alignment */
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-section.expanded .nav-section-toggle {
  transform: rotate(90deg);
}

.nav-item {
  display: block;
  padding: 0.25rem 1rem;  /* Reduced from 0.375rem to 0.25rem */
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 0;
  transition: all 0.15s;
  position: relative;
}

/* Only indent items that are children of nav-section (which have expandable parents) */
.nav-section .nav-children .nav-item {
  padding-left: 2rem;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--accent);
  font-weight: 500;
  background: var(--accent-light);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.nav-subsection-header {
  display: block;
  padding: 0.25rem 0;  /* Match nav-parent padding */
  font-size: 0.875rem;
  font-weight: normal;  /* Not bold */
  color: var(--text-secondary);
  cursor: pointer;  /* Show it's clickable */
  flex: 1;
}

/* Nested subsection headers should have same indent as their parent level */
.nav-section .nav-subsection-header {
  padding-left: 1rem;
}

.nav-parent {
  flex: 1;
  padding: 0.25rem 1rem;  /* Reduced to match nav-item padding */
  padding-right: 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s;
  position: relative;
  display: block;
}

.nav-parent:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-parent.active {
  color: var(--accent);
  font-weight: 500;
}

/* Apply background to entire title when parent is active AND no children are active */
.nav-section:not(:has(.nav-children .nav-item.active)) .nav-section-title:has(.nav-parent.active) {
  background: var(--accent-light);
}

/* Active border should span the entire nav-section-title */
.nav-section-title:has(.nav-parent.active)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.nav-children {
  display: block;
}

/* Hide children of collapsible sections by default */
.nav-section .nav-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Show children when section is expanded */
.nav-section.expanded .nav-children {
  max-height: 2000px;
}

/* Main Content */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  display: flex;
  flex: 1;
  max-width: calc(var(--content-max) + var(--toc-width) + 4rem);
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  gap: 3rem;
}

.content {
  flex: 1;
  min-width: 0;
}

/* Typography */
.content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content p {
  margin-bottom: 1.25rem;
}

.content a {
  color: var(--accent);
  text-decoration: underline;
}

/* Permalink anchors - hide by default, show on hover */
.content h2 a.headerlink,
.content h3 a.headerlink,
.content h4 a.headerlink,
.content h5 a.headerlink,
.content h6 a.headerlink {
  opacity: 0;
  font-size: 0.75em;
  margin-left: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s;
}

/* Special styling for h1 edit link */
.content h1 a.edit-header-link {
  display: none;
  font-size: 0.5em;
  margin-left: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  padding: 0.125rem 0.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.content h1:hover a.edit-header-link {
  display: inline-block;
}

.content h1 a.edit-header-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

.content h2:hover a.headerlink,
.content h3:hover a.headerlink,
.content h4:hover a.headerlink,
.content h5:hover a.headerlink,
.content h6:hover a.headerlink {
  opacity: 1;
}

.content a.headerlink:hover {
  color: var(--accent);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.content ul, .content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.125rem 0.25rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: 3px;
}

.content pre {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.content table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.content th {
  text-align: left;
  padding: 0.75rem;
  background: var(--bg-hover);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
}

.content td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Table of Contents */
.toc {
  position: sticky;
  top: 2rem;
  width: var(--toc-width);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.toc-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc-nav {
  display: flex;
  flex-direction: column;
}

.toc-link {
  padding: 0.375rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.toc-link:hover {
  color: var(--text-primary);
}

.toc-link.active {
  color: var(--accent);
  font-weight: 500;
}

.toc-child {
  padding-left: 1rem;
}

.toc-grandchild {
  padding-left: 2rem;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.page-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.nav-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  text-decoration: underline;
}

.edit-page {
  text-align: center;
  padding-top: 1rem;
}

.edit-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.edit-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* MkDocs search result structure */
#mkdocs-search-results h3 {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

#mkdocs-search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mkdocs-search-results li {
  border-bottom: 1px solid var(--border-light);
}

#mkdocs-search-results li:last-child {
  border-bottom: none;
}

#mkdocs-search-results a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s;
}

#mkdocs-search-results a:hover {
  background: var(--bg-hover);
}

#mkdocs-search-results a h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

#mkdocs-search-results a p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

#mkdocs-search-results mark {
  background: #fef3c7;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 500;
}

/* Mobile Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 50%);
  z-index: 98;
}

.sidebar-overlay.active {
  display: block;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 0 1rem;
  align-items: center;
  justify-content: space-between;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* Mobile Search Button */
.mobile-search-trigger {
  display: none;
  flex: 1;
  margin: 0 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.mobile-search-trigger:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.mobile-search-trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-search-trigger span {
  text-align: left;
}


/* Responsive */
@media (width <= 1024px) {
  .toc {
    display: none;
  }
}

@media (width <= 768px) {
  /* Show mobile header */
  .mobile-header {
    display: flex;
  }
  
  /* Make sidebar full-width and overlay */
  .sidebar {
    width: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 100;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  /* Hide desktop search trigger on mobile */
  .search-trigger {
    display: none !important;
  }
  
  /* Show mobile controls */
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-search-trigger {
    display: flex;
  }
  
  /* Adjust main content */
  .main {
    margin-left: 0;
    margin-top: 60px;
  }
  
  .content-wrapper {
    padding: 1rem;
  }
  
  /* Typography adjustments */
  .content h1 {
    font-size: 2rem;
  }
  
  .content h2 {
    font-size: 1.5rem;
  }
  
  .content h3 {
    font-size: 1.25rem;
  }
  
  /* Remove right border on mobile for active items */
  .nav-item.active::after,
  .nav-section-title:has(.nav-parent.active)::after {
    display: none;
  }
  
  /* Full-width active state on mobile */
  .nav-item.active {
    background: var(--accent-light);
  }
}

/* Admonitions / Callouts */
.admonition {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid;
}

.admonition.note {
  background: #e0f2fe;
  border-color: #0284c7;
}

.admonition.warning {
  background: #fef3c7;
  border-color: #f59e0b;
}

.admonition.danger {
  background: #fee2e2;
  border-color: #dc2626;
}

.admonition.tip {
  background: #d1fae5;
  border-color: #10b981;
}

@media (prefers-color-scheme: dark) {
  .admonition.note {
    background: #172554;
    border-color: #60a5fa;
  }
  
  .admonition.warning {
    background: #451a03;
    border-color: #fbbf24;
  }
  
  .admonition.danger {
    background: #450a0a;
    border-color: #f87171;
  }
  
  .admonition.tip {
    background: #052e16;
    border-color: #34d399;
  }
}

.admonition-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem;
}

.search-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 50%);
  backdrop-filter: blur(4px);
}

.search-modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 70vh;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.search-modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.search-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.search-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.search-modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-input-wrapper {
  position: relative;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.search-icon {
  position: absolute;
  left: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-modal-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  font-size: 1rem;
  border: 1px solid #e8f1fc;  /* Soft blue border */
  border-radius: var(--radius);
  background: #fafcff;  /* Very light blue background */
  transition: all 0.2s;
}

.search-modal-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #f0f7ff;  /* Slightly deeper blue on focus */
}

.search-clear {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.search-clear:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
}

/* Search Results in Modal */
.search-modal-results {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  position: relative;
}

.search-modal-results #mkdocs-search-results {
  position: static !important;
  display: block !important;
  border: none;
  box-shadow: none;
  background: transparent;
  max-height: none;
  padding: 0;
  margin: 0;
}

.search-modal-results #mkdocs-search-results:empty::after {
  content: "Start typing to search...";
  display: block;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.search-modal-results article {
  border-bottom: 1px solid var(--border-light);
}

.search-modal-results article:last-child {
  border-bottom: none;
}

.search-modal-results h3 {
  margin: 0;
}

.search-modal-results h3 a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}

.search-modal-results h3 a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.search-modal-results p {
  margin: 0;
  padding: 0 1.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.search-modal-results mark {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-weight: 500;
}

.search-modal-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-hover);
}

.search-shortcuts {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-shortcuts kbd {
  padding: 0.125rem 0.375rem;
  font-family: var(--font-mono);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* Video embed styles - responsive with max height constraint */
.video-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
}

.video-embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Default 16:9, override with inline style for specific videos */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #f0f0f0;
}

.video-embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Constrain maximum height to prevent overly tall videos */
@media (min-width: 768px) {
  .video-embed-responsive {
    max-height: 420px; /* Desktop max height */
  }
  
  /* When max-height kicks in, center the video */
  .video-embed-wrapper:has(.video-embed-responsive) {
    display: flex;
    justify-content: center;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .video-embed-responsive {
    max-height: 300px; /* Smaller on mobile */
  }
}

/* Image sizing constraints */
.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  box-shadow: var(--shadow);
}

/* Constrain maximum height to prevent overly tall images (similar to video handling) */
@media (min-width: 768px) {
  .content img {
    max-width: min(100%, 800px);
    max-height: 600px; /* Desktop max height */
    object-fit: contain; /* Maintain aspect ratio within constraints */
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .content img {
    max-width: 100%;
    max-height: 400px; /* Smaller on mobile */
    object-fit: contain;
    margin: 1rem auto;
  }
}

/* Allow specific image size overrides */
.content img.small {
  max-width: 400px;
}

.content img.medium {
  max-width: 600px;
}

.content img.large {
  max-width: 100%;
}

/* Inline images (not block) */
.content p img {
  display: inline-block;
  margin: 0 0.5rem;
  vertical-align: middle;
  box-shadow: none;
}