/**
 * Citadel Project Modern 2026 Stylesheet
 * 100% Self-Contained, Independent, Responsive Design System
 */

/* ==========================================================================
   Design Tokens & CSS Custom Properties
   ========================================================================== */
:root {
  /* Color Palette - Vibrant 2026 Open Source Theme (Light) */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-subtle: #eff6ff;
  --primary-border: #bfdbfe;

  --accent: #0284c7;
  --accent-cyan: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0284c7 100%);
  --hero-gradient: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #0284c7 100%);
  --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

  /* Neutrals & Surfaces */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-subtle: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-faint: #94a3b8;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;

  /* Code & Terminal */
  --code-bg: #090d16;
  --code-header-bg: #131b2e;
  --code-text: #e2e8f0;
  --code-inline-bg: #eff6ff;
  --code-inline-text: #1d4ed8;
  --code-inline-border: #dbeafe;

  /* Navigation & Blur */
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(226, 232, 240, 0.8);
  --nav-text: #1e293b;
  --nav-text-hover: #2563eb;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.07), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 14px 24px -4px rgba(0, 0, 0, 0.08), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 24px 38px -8px rgba(0, 0, 0, 0.12), 0 10px 16px -6px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Geometry */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Dark Theme (Automatic via System & Explicit via [data-theme="dark"])
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: #93c5fd;
    --primary-subtle: rgba(59, 130, 246, 0.15);
    --primary-border: rgba(59, 130, 246, 0.3);

    --accent: #38bdf8;
    --accent-cyan: #22d3ee;
    --brand-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0284c7 100%);
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
    --glass-gradient: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.7) 100%);

    --bg-page: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-elevated: #1e293b;
    --bg-muted: #141e33;
    --bg-subtle: #1f293d;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --text-inverse: #0b0f19;

    --border-color: #1e293b;
    --border-color-hover: #334155;

    --code-bg: #030712;
    --code-header-bg: #0b1120;
    --code-text: #e2e8f0;
    --code-inline-bg: rgba(59, 130, 246, 0.16);
    --code-inline-text: #93c5fd;
    --code-inline-border: rgba(59, 130, 246, 0.3);

    --nav-bg: rgba(11, 15, 25, 0.88);
    --nav-border: rgba(30, 41, 59, 0.8);
    --nav-text: #f1f5f9;
    --nav-text-hover: #60a5fa;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.5), 0 3px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 14px 24px -4px rgba(0, 0, 0, 0.6), 0 6px 12px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 38px -8px rgba(0, 0, 0, 0.7), 0 10px 16px -6px rgba(0, 0, 0, 0.5);
  }
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: #93c5fd;
  --primary-subtle: rgba(59, 130, 246, 0.15);
  --primary-border: rgba(59, 130, 246, 0.3);

  --accent: #38bdf8;
  --accent-cyan: #22d3ee;
  --brand-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0284c7 100%);
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  --glass-gradient: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.7) 100%);

  --bg-page: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-muted: #141e33;
  --bg-subtle: #1f293d;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --text-inverse: #0b0f19;

  --border-color: #1e293b;
  --border-color-hover: #334155;

  --code-bg: #030712;
  --code-header-bg: #0b1120;
  --code-text: #e2e8f0;
  --code-inline-bg: rgba(59, 130, 246, 0.16);
  --code-inline-text: #93c5fd;
  --code-inline-border: rgba(59, 130, 246, 0.3);

  --nav-bg: rgba(11, 15, 25, 0.88);
  --nav-border: rgba(30, 41, 59, 0.8);
  --nav-text: #f1f5f9;
  --nav-text-hover: #60a5fa;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.5), 0 3px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 14px 24px -4px rgba(0, 0, 0, 0.6), 0 6px 12px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 38px -8px rgba(0, 0, 0, 0.7), 0 10px 16px -6px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-top: 1.75em;
  margin-bottom: 0.65em;
}

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

h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lists */
ul, ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
}

li > a {
  font-weight: 500;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 2.5rem 0;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--bg-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.site-navbar {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow-sm) !important;
  color: var(--nav-text) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  min-height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.nav-brand-group img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 2px 6px;
  border: 1px solid var(--border-color) !important;
  margin: 0 !important;
  box-shadow: var(--shadow-xs) !important;
}

.nav-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Nav Link Items */
.nav-link {
  background: transparent !important;
  color: var(--nav-text) !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-subtle) !important;
  color: var(--primary) !important;
  text-decoration: none;
}

/* Nav Actions (theme switch, mobile trigger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle-btn,
.mobile-menu-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.theme-toggle-btn:hover,
.mobile-menu-btn:hover {
  background: var(--bg-muted);
  color: var(--text-main);
  border-color: var(--border-color-hover);
}

.mobile-menu-btn {
  display: none;
}

#themeIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Mobile Nav Drawer */
.nav-mobile-drawer {
  display: none;
  background: var(--bg-surface) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1.25rem;
}

.nav-mobile-drawer.open,
.nav-mobile-drawer.show {
  display: block !important;
}

.nav-mobile-link {
  color: var(--text-main) !important;
  padding: 0.65rem 1rem !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
  text-decoration: none;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  background: var(--primary-subtle) !important;
  color: var(--primary) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: var(--hero-gradient) !important;
  color: #ffffff !important;
  padding: 4.5rem 1.5rem !important;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: #ffffff;
  border: none;
  padding: 0;
  margin: 0 auto 1.5rem auto;
  max-width: 900px;
}

.hero-section h2 b {
  color: #93c5fd;
  text-shadow: 0 0 20px rgba(147, 197, 253, 0.5);
}

.hero-section img {
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  margin: 2rem auto !important;
  display: block;
  max-width: 85%;
  transition: transform 0.3s ease;
}

.hero-section img:hover {
  transform: scale(1.01);
}

.hero-section h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   Layout Containers & Grid System
   ========================================================================== */
.page-container,
.container {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.content-grid {
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.col-main {
  flex: 1 1 540px;
  max-width: 100%;
}

.col-side {
  flex: 0 1 340px;
  max-width: 100%;
  margin: 0 auto;
}

.lead-text {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Section alternating backgrounds */
.section-alt {
  background-color: var(--bg-muted) !important;
  color: var(--text-main) !important;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Center utilities */
.text-center {
  text-align: center;
}

/* Visibility Utilities */
.is-hidden { display: none !important; }
.is-visible, .show { display: block !important; }

@media (max-width: 600px) {
  .hide-small { display: none !important; }
}
@media (max-width: 992px) and (min-width: 601px) {
  .hide-medium { display: none !important; }
}
@media (min-width: 993px) {
  .hide-large { display: none !important; }
}

/* ==========================================================================
   Modern Code Blocks & Preformatted Text (`pre`, `code`, `tt`)
   ========================================================================== */
pre {
  background-color: var(--code-bg) !important;
  color: var(--code-text) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.25rem 1.5rem !important;
  margin: 1.75rem 0 !important;
  box-shadow: var(--shadow-md) !important;
  position: relative;
  overflow-x: auto;
}

pre::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 16px 0 0 #f59e0b, 32px 0 0 #10b981;
  margin-bottom: 1rem;
}

code, tt {
  font-family: var(--font-mono) !important;
  font-size: 0.88em !important;
  background-color: var(--code-inline-bg) !important;
  color: var(--code-inline-text) !important;
  border: 1px solid var(--code-inline-border);
  border-radius: var(--radius-sm);
  padding: 0.15em 0.4em;
  font-weight: 500;
}

pre code, pre tt {
  background-color: transparent !important;
  color: inherit !important;
  border: none !important;
  padding: 0 !important;
  font-size: inherit !important;
}

.code-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.code-copy-btn.copied {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* ==========================================================================
   Modern Cards & Components
   ========================================================================== */
.card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: var(--transition) !important;
  overflow: hidden;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--primary) !important;
}

.card-body {
  padding: 1.75rem 2rem !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-main) !important;
}

.card h2 {
  font-size: 1.4rem !important;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  border-bottom: none !important;
  color: var(--text-main) !important;
}

/* Color themed cards */
.card-docker {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%) !important;
  border-left: 5px solid #2563eb !important;
}
.card-docker h2 { color: #2563eb !important; }

.card-build {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%) !important;
  border-left: 5px solid #10b981 !important;
}
.card-build h2 { color: #059669 !important; }

.card-source {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%) !important;
  border-left: 5px solid #f59e0b !important;
}
.card-source h2 { color: #d97706 !important; }

.card-hosting {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%) !important;
  border-left: 5px solid #ef4444 !important;
}
.card-hosting h2 { color: #dc2626 !important; }

/* Dark mode card accents */
[data-theme="dark"] .card-docker h2 { color: #60a5fa !important; }
[data-theme="dark"] .card-build h2 { color: #34d399 !important; }
[data-theme="dark"] .card-source h2 { color: #fbbf24 !important; }
[data-theme="dark"] .card-hosting h2 { color: #f87171 !important; }

/* Borders */
.border { border: 1px solid var(--border-color) !important; }
.border-blue { border-color: var(--primary) !important; }
.border-green { border-color: #10b981 !important; }
.border-amber { border-color: #f59e0b !important; }
.border-red { border-color: #ef4444 !important; }

/* ==========================================================================
   Images & Screenshot Showcase
   ========================================================================== */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

p + img,
h2 + img,
a > img {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin: 1rem 0 2rem 0;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

p + img:hover,
h2 + img:hover,
a > img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Tables
   ========================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

th, td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

tr:hover td {
  background: var(--bg-muted);
}

/* ==========================================================================
   Documentation, Wiki & Form Enhancements
   ========================================================================== */
.is-info {
  background-color: var(--primary-subtle) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--primary-border) !important;
  border-left: 4px solid var(--primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 1rem 1.25rem !important;
  margin: 1.5rem 0 !important;
}

textarea, input[type="text"], input[type="search"], select {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--bg-muted);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.table.sectionedit4, .table.sectionedit5, .table.sectionedit6, .table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table.inline {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

td.col0 {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

td.col1 {
  color: var(--text-muted);
}

tr.row0, tr.row1, tr.row2, tr.row3, tr.row4, tr.row5, tr.row6, tr.row7, tr.row8, tr.row9, tr.row10 {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
}

tr.row0:hover, tr.row1:hover, tr.row2:hover, tr.row3:hover {
  background-color: var(--bg-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer-wrapper {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 2rem 1.5rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.community-callout-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.community-callout-box a {
  color: var(--primary);
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.footer-bottom-bar a {
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .site-navbar {
    padding: 0.5rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .content-grid {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .col-main, .col-side {
    flex: 1 1 100%;
  }

  .hero-section {
    padding: 2.5rem 1rem !important;
  }

  .page-container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
