/* ==========================================================================
   COMMUNAUTÉ BC-250 — MODERN HARDWARE DESIGN SYSTEM (PURE CSS)
   Aesthetic: Dark-Tech / Open Hardware / Precision Engineering
   Ultra-Responsive: Mobile (320px+), Tablet (768px+), Desktop (1024px+), Wide (1440px+)
   ========================================================================== */

:root {
  --bg-main: #0B0F17;
  --bg-surface: #101622;
  --bg-card: #161E2E;
  --bg-card-hover: #1C263A;
  --bg-input: #0E131D;
  --border-color: #222F46;
  --border-focus: #00E5FF;
  
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dark: #64748B;
  
  --brand-cyan: #00E5FF;
  --brand-cyan-glow: rgba(0, 229, 255, 0.25);
  --brand-emerald: #10B981;
  --brand-emerald-glow: rgba(16, 185, 129, 0.25);
  --brand-amber: #F59E0B;
  --brand-amber-glow: rgba(245, 158, 11, 0.25);
  --brand-purple: #8B5CF6;
  --brand-rose: #F43F5E;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px -5px var(--brand-cyan-glow);
  --header-height: 68px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1280px) {
  .container { padding: 0 2rem; }
}

/* ==========================================================================
   NAVBAR & HEADER RESPONSIVE
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 0.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1002;
  flex-shrink: 0;
}
.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.brand-logo-icon .pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--brand-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-emerald);
}
.brand-text-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
@media (max-width: 360px) {
  .brand-text-title { font-size: 0.92rem; }
}
.badge-eu {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-weight: 700;
}
.brand-text-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .brand-text-sub { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: #FFF;
  background: var(--bg-card);
}
.nav-link.active {
  color: var(--brand-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 1002;
}

/* Search Trigger Button */
.btn-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 38px;
}
.btn-search-trigger:hover {
  border-color: var(--brand-cyan);
  color: #FFF;
}
.kbd-shortcut {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}
@media (max-width: 600px) {
  .btn-search-trigger span, .kbd-shortcut { display: none; }
  .btn-search-trigger { padding: 0.45rem 0.55rem; }
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.78rem;
  cursor: pointer;
  min-height: 38px;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 150px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  padding: 0.35rem 0;
  display: none;
  z-index: 1010;
}
.lang-menu.show {
  display: block;
}
.lang-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
}
.lang-item:hover {
  background: var(--bg-surface);
  color: #FFF;
}
.lang-item.active {
  color: var(--brand-cyan);
  font-weight: 700;
  background: rgba(0, 229, 255, 0.08);
}

/* Mobile Menu Drawer (Touch friendly) */
.mobile-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.4rem 0.65rem;
  font-size: 1.2rem;
  cursor: pointer;
  min-height: 38px;
  line-height: 1;
}

@media (max-width: 960px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 0.65rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links.mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-surface);
  }
  .nav-link:active {
    background: var(--bg-card);
  }
}

/* ==========================================================================
   HERO SECTION & FLUID TYPOGRAPHY
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 2.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 20%, rgba(0, 229, 255, 0.08) 0%, rgba(11, 15, 23, 0) 70%);
}
@media (min-width: 768px) {
  .hero-section { padding: 4rem 0 3rem; }
}

.hero-title {
  font-size: clamp(1.75rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFF;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 0.75rem;
}
.hero-desc {
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.75rem;
  padding: 0 0.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-align: center;
  min-height: 42px;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--brand-cyan);
  color: var(--bg-main);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: #67E8F9;
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}
.btn-emerald {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-emerald:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
  transform: translateY(-2px);
}
.btn-amber {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-amber:hover {
  border-color: var(--brand-amber);
  color: var(--brand-amber);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .hero-cta-group .btn { width: 100%; }
}

/* ==========================================================================
   RESPONSIVE GRIDS & SPECIFICATIONS
   ========================================================================== */

.specs-ribbon {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 1024px;
  margin: 2rem auto 0;
  text-align: left;
}
@media (min-width: 520px) {
  .specs-ribbon { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .specs-ribbon { grid-template-columns: repeat(4, 1fr); }
}

.spec-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.spec-box:hover {
  border-color: rgba(0, 229, 255, 0.4);
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.spec-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF;
  margin: 0.2rem 0;
}
.spec-sub {
  font-size: 0.72rem;
}

/* Hardware Cards & Unified Grids */
.hardware-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hardware-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

.grid-4x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 580px) {
  .grid-4x2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid-4x2 { grid-template-columns: repeat(4, 1fr); }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Section Header */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.section-title {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Tag & Badges */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.tag-cyan { background: rgba(0, 229, 255, 0.1); color: var(--brand-cyan); border-color: rgba(0, 229, 255, 0.3); }
.tag-emerald { background: rgba(16, 185, 129, 0.1); color: var(--brand-emerald); border-color: rgba(16, 185, 129, 0.3); }
.tag-amber { background: rgba(245, 158, 11, 0.1); color: var(--brand-amber); border-color: rgba(245, 158, 11, 0.3); }
.tag-purple { background: rgba(139, 92, 246, 0.1); color: var(--brand-purple); border-color: rgba(139, 92, 246, 0.3); }
.tag-rose { background: rgba(244, 63, 94, 0.1); color: var(--brand-rose); border-color: rgba(244, 63, 94, 0.3); }

/* Horizontal Scrollable Filter / Tab Ribbon */
.scroll-ribbon {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.35rem;
}
.scroll-ribbon::-webkit-scrollbar {
  display: none;
}
.scroll-ribbon .tag,
.scroll-ribbon .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   CAD VIEWER RESPONSIVE
   ========================================================================== */

.cad-viewer-box {
  width: 100%;
  height: 780px;
  background: #080C14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}
.cad-canvas-container {
  flex: 1;
  height: 100%;
  position: relative;
  min-width: 0;
}
.cad-sidebar {
  width: 360px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

@media (max-width: 960px) {
  .cad-viewer-box {
    flex-direction: column;
    height: auto;
    min-height: 720px;
  }
  .cad-canvas-container {
    height: 440px;
    width: 100%;
  }
  .cad-sidebar {
    width: 100%;
    height: 380px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}
@media (max-width: 480px) {
  .cad-canvas-container {
    height: 360px;
  }
}

/* ==========================================================================
   WIKI CONTENT & RESPONSIVE LAYOUT
   ========================================================================== */

.wiki-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 960px) {
  .wiki-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .wiki-sidebar {
    display: none;
  }
  .wiki-sidebar.mobile-show {
    display: block;
  }
}

.wiki-content {
  font-size: 0.92rem;
  color: #E2E8F0;
  line-height: 1.75;
  word-break: break-word;
  min-width: 0;
}

.wiki-content h1 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  color: #FFF;
  margin: 1.8rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}
.wiki-content h1:first-child { margin-top: 0; }

.wiki-content h2 {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 700;
  color: #F8FAFC;
  margin: 1.8rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki-content h3 {
  font-size: clamp(0.98rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--brand-cyan);
  margin: 1.4rem 0 0.45rem;
}

.wiki-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-emerald);
  margin: 1.1rem 0 0.35rem;
  font-family: var(--font-mono);
}

.wiki-content p {
  margin: 0.75rem 0;
  line-height: 1.7;
}

.wiki-content strong { color: #FFF; font-weight: 700; }
.wiki-content em { color: #CBD5E1; }

.wiki-content a {
  color: var(--brand-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.wiki-content a:hover { color: #67E8F9; }

.wiki-content ul, .wiki-content ol {
  margin: 0.75rem 0 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wiki-content li { color: #CBD5E1; }
.wiki-content li::marker { color: var(--brand-cyan); }

/* Inline Code */
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: #0E1420;
  color: #38BDF8;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  word-break: break-word;
}

/* Code Blocks with Header & Copy Button */
.code-container {
  margin: 1.25rem 0;
  background: #070B12;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.code-header {
  background: #0E131D;
  padding: 0.4rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.code-copy-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s;
}
.code-copy-btn:hover {
  background: var(--bg-card);
  color: #FFF;
  border-color: var(--brand-cyan);
}
.code-pre {
  padding: 1rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #E2E8F0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}

/* Tables Responsive */
.wiki-table-wrap, .table-responsive {
  margin: 1.25rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: 100%;
}
.wiki-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}
.wiki-table th {
  background: #0E1420;
  color: #FFF;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.72rem;
}
.wiki-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(34, 47, 70, 0.4);
  color: #CBD5E1;
}
.wiki-table tr:hover td {
  background: rgba(22, 30, 46, 0.5);
}

/* Admonition / Callout Blocks */
.admonition {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  font-size: 0.85rem;
  line-height: 1.6;
}
.admonition-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.admonition-note { background: rgba(0, 229, 255, 0.07); border-color: var(--brand-cyan); color: #BAE6FD; }
.admonition-note .admonition-title { color: var(--brand-cyan); }
.admonition-tip { background: rgba(16, 185, 129, 0.07); border-color: var(--brand-emerald); color: #A7F3D0; }
.admonition-tip .admonition-title { color: var(--brand-emerald); }
.admonition-warning { background: rgba(245, 158, 11, 0.08); border-color: var(--brand-amber); color: #FDE68A; }
.admonition-warning .admonition-title { color: var(--brand-amber); }
.admonition-important, .admonition-caution { background: rgba(244, 63, 94, 0.08); border-color: var(--brand-rose); color: #FECDD3; }
.admonition-important .admonition-title, .admonition-caution .admonition-title { color: var(--brand-rose); }

/* ==========================================================================
   FOOTER RESPONSIVE
   ========================================================================== */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: #080C14;
  padding: 2.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.825rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 580px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
}

/* Callouts */
.callout {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 1.25rem 0;
  display: flex;
  gap: 0.65rem;
}
.callout-amber { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); color: #FDE68A; }
.callout-cyan { background: rgba(0, 229, 255, 0.08); border-color: rgba(0, 229, 255, 0.3); color: #A5F3FC; }

/* Modal Responsive */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem 1rem;
}
.modal-overlay.show { display: flex; }
.modal-content {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.modal-search-input {
  width: 100%;
  background: var(--bg-card);
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 1.1rem;
  color: #FFF;
  font-size: 0.9rem;
  outline: none;
}
.modal-results-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.5rem;
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: background 0.15s;
}
.search-result-item:hover { background: var(--bg-card); }
