/* ==========================================================================
   Softzqua Labs — Monochromatic Design Tokens & Core System
   Compliant with ui_design.text and Technical Design Specification
   ========================================================================== */

:root {
  /* Canvas & Surface Colors */
  --bg-canvas: #0A0A0A;
  --bg-surface: #121212;
  --bg-surface-hover: #1A1A1A;
  --bg-surface-elevated: #161616;

  /* High Contrast Typography */
  --text-primary: #EDEDED;
  --text-white: #FFFFFF;
  --text-muted: #8E8E93;
  --text-subtle: #737373;

  /* Borders & Dividers */
  --border-subtle: #262626;
  --border-hover: #404040;
  --border-focus: #2376EA;

  /* Brand Accent Tokens */
  --primary: #2376EA;
  --primary-hover: #1A62C6;
  --primary-light: rgba(35, 118, 234, 0.12);
  --primary-border: rgba(35, 118, 234, 0.30);

  /* Status Tokens */
  --status-success: #10B981;
  --status-success-bg: rgba(16, 185, 129, 0.12);
  --status-warning: #F59E0B;
  --status-warning-bg: rgba(245, 158, 11, 0.12);
  --status-error: #EF4444;
  --status-error-bg: rgba(239, 68, 68, 0.12);
  --status-info: #3B82F6;
  --status-info-bg: rgba(59, 130, 246, 0.12);

  /* Typography Scales */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;

  /* Spatial Constraints */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 9999px;
  --nav-height: 64px;
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Strict Zero Shadow Rule */
*, *::before, *::after {
  box-shadow: none !important;
}

/* Accessible Focus Visible Rings */
:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Headings & Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.text-muted {
  color: var(--text-muted) !important;
}

.text-subtle {
  color: var(--text-subtle) !important;
}

.text-primary-accent {
  color: var(--primary) !important;
}

.font-mono {
  font-family: var(--font-mono) !important;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--text-white);
}

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

main#main {
  flex: 1 0 auto;
  width: 100%;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

/* Grid Utilities */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* --------------------------------------------------------------------------
   Cards & Surfaces
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

.card-compact {
  padding: 1rem;
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
  user-select: none;
}

.btn:active, .btn-bouncy:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-white);
}

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

.btn-outline:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-white);
}

.btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 11.5px;
  height: 24px;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 14px;
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Badges, Pills & Status Chips
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-neutral {
  background-color: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.badge-success {
  background-color: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 1-Click Shortlink Pill */
.shortlink-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 24px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.shortlink-pill:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-white);
}

.shortlink-pill .copy-icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* Keyboard Hint Badges */
.kbd-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Precision Lists & Tables (ui_design.text Spec)
   -------------------------------------------------------------------------- */
.data-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px !important;
  letter-spacing: -0.01em !important;
}

.data-table th {
  background-color: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.75rem !important;
  height: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 0 0.75rem !important;
  height: 32px !important;
  max-height: 32px !important;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  white-space: nowrap;
}

.data-table tr:hover td {
  background-color: var(--bg-surface-hover) !important;
}

/* --------------------------------------------------------------------------
   Forms & Inputs
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-control:focus {
  background-color: var(--bg-surface-hover);
  border-color: var(--primary);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-subtle);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Header / Navbar Styles
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.szq-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav-links.is-open {
    display: flex;
  }
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h5 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-white);
}

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

.footer-legal-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Toast Notification System
   -------------------------------------------------------------------------- */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2050;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  width: calc(100vw - 40px);
  pointer-events: none;
}

.toast-msg {
  pointer-events: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 13px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.toast-msg.toast-success {
  border-left-color: var(--status-success);
}

.toast-msg.toast-error {
  border-left-color: var(--status-error);
}

.toast-msg.toast-info {
  border-left-color: var(--status-info);
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Modal Structure
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  padding: 1.75rem;
  position: relative;
}

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

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-white);
  border-color: var(--border-hover);
}

/* --------------------------------------------------------------------------
   Global 5-Second Toast Stack & Progress Bar
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 2.5rem);
}

.toast-card {
  pointer-events: auto;
  background: #141414;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #EDEDED;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  animation: slideInRight 0.25s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-card.toast-success { border-left-color: #10B981; }
.toast-card.toast-warning { border-left-color: #F59E0B; }
.toast-card.toast-error { border-left-color: #EF4444; }

.toast-card.toast-fading {
  opacity: 0;
  transform: translateX(20px);
}

.toast-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  width: 100%;
  animation: toastProgress 5s linear forwards;
}

.toast-card.toast-success .toast-progress-bar { background: #10B981; }
.toast-card.toast-error .toast-progress-bar { background: #EF4444; }

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-close-btn {
  background: none;
  border: none;
  color: #8E8E93;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.toast-close-btn:hover { color: #FFFFFF; }

/* -----------------------------------------------------------------------------
   Form Controls & Input Fields
----------------------------------------------------------------------------- */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background-color: #161616;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  outline: none;
  display: block;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(35, 118, 234, 0.2);
  background-color: #1A1A1A;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #666666;
}

.form-textarea {
  resize: vertical;
  min-height: 85px;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238E8E93' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
  padding-right: 2.2rem;
  cursor: pointer;
}

.form-select option {
  background-color: #161616;
  color: var(--text-white);
  padding: 6px;
}

.form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  background-color: #161616;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.15s ease;
  vertical-align: middle;
  margin: 0;
  flex-shrink: 0;
}

.form-checkbox:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-checkbox:checked::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translate(1px, -1px);
}

.form-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(35, 118, 234, 0.25);
}

/* -----------------------------------------------------------------------------
   Rich HTML Content Rendering (CKEditor 5 Output)
----------------------------------------------------------------------------- */
.rich-content {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1.05rem;
}

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

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  color: var(--text-white);
  font-family: var(--font-heading);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rich-content h1 { font-size: 1.85rem; }
.rich-content h2 { font-size: 1.5rem; }
.rich-content h3 { font-size: 1.25rem; }
.rich-content h4 { font-size: 1.1rem; }

.rich-content ul,
.rich-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 0.5rem;
}

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

.rich-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background-color: #141414;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #CCCCCC;
  font-style: italic;
}

.rich-content pre,
.rich-content code {
  font-family: var(--font-mono);
  background-color: #181818;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.rich-content code {
  padding: 0.2rem 0.4rem;
  font-size: 0.9em;
  color: #60A5FA;
}

.rich-content pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.rich-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #EDEDED;
}

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

.rich-content a:hover {
  color: #60A5FA;
}

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

.rich-content table th,
.rich-content table td {
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  text-align: left;
}

.rich-content table th {
  background-color: #161616;
  color: var(--text-white);
  font-weight: 600;
}



