/* ===== Oasis Component Styles ===== */

/* --- Navigation Tabs --- */
.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ctp-overlay1);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
}
.nav-tab:hover {
  color: var(--ctp-text);
  background: var(--surface-hover);
}
.nav-tab-active {
  color: var(--ctp-blue) !important;
  background: color-mix(in srgb, var(--ctp-blue) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-blue) 20%, transparent);
}
.nav-tab-active.nav-tab-peach {
  color: var(--ctp-peach) !important;
  background: color-mix(in srgb, var(--ctp-peach) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-peach) 20%, transparent);
}
.nav-tab-active.nav-tab-green {
  color: var(--ctp-green) !important;
  background: color-mix(in srgb, var(--ctp-green) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-green) 20%, transparent);
}
.nav-tab-active.nav-tab-lavender {
  color: var(--ctp-lavender) !important;
  background: color-mix(in srgb, var(--ctp-lavender) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-lavender) 20%, transparent);
}
.nav-tab-active.nav-tab-pink {
  color: var(--ctp-pink) !important;
  background: color-mix(in srgb, var(--ctp-pink) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-pink) 20%, transparent);
}
.nav-tab-active.nav-tab-red {
  color: var(--ctp-red) !important;
  background: color-mix(in srgb, var(--ctp-red) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-red) 20%, transparent);
}
.nav-tab-active.nav-tab-flamingo {
  color: var(--ctp-flamingo) !important;
  background: color-mix(in srgb, var(--ctp-flamingo) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-flamingo) 20%, transparent);
}
.nav-tab-active.nav-tab-sky {
  color: var(--ctp-sky) !important;
  background: color-mix(in srgb, var(--ctp-sky) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-sky) 20%, transparent);
}
.nav-tab-active.nav-tab-teal {
  color: var(--ctp-teal) !important;
  background: color-mix(in srgb, var(--ctp-teal) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-teal) 20%, transparent);
}
.nav-tab-active.nav-tab-yellow {
  color: var(--ctp-yellow) !important;
  background: color-mix(in srgb, var(--ctp-yellow) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-yellow) 20%, transparent);
}
.nav-tab-active.nav-tab-mauve {
  color: var(--ctp-mauve) !important;
  background: color-mix(in srgb, var(--ctp-mauve) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--ctp-mauve) 20%, transparent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  border: 1px solid transparent;
  outline: none;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--ctp-base), 0 0 0 4px var(--ctp-blue);
}

.btn-primary {
  background: var(--ctp-blue);
  color: var(--ctp-base);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--glow-blue);
}

.btn-secondary {
  background: var(--ctp-surface0);
  color: var(--ctp-text);
  border-color: var(--ctp-surface1);
}
.btn-secondary:hover {
  background: var(--ctp-surface1);
  border-color: var(--ctp-surface2);
}

.btn-ghost {
  background: transparent;
  color: var(--ctp-subtext0);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--ctp-text);
}

.btn-danger {
  background: var(--ctp-red);
  color: var(--ctp-base);
}
.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-sm {
  padding: 4px 10px;
  font-size: var(--text-xs);
}
.btn-xs {
  padding: 2px 8px;
  font-size: var(--text-xs);
  gap: 4px;
}
.btn-lg {
  padding: 10px 20px;
  font-size: var(--text-base);
}

/* --- Cards --- */
.card {
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--duration-normal) var(--ease-out-expo);
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ctp-surface2);
}

/* Stat card with gradient accent */
.stat-card {
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-expo);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ctp-blue), var(--ctp-mauve));
  opacity: 0;
  transition: opacity var(--duration-normal);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ctp-surface2);
}
.stat-card:hover::before { opacity: 1; }
.stat-card .stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--ctp-text);
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: var(--text-xs);
  font-family: var(--font-display);
  color: var(--ctp-overlay1);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Tables --- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ctp-overlay1);
  border-bottom: 1px solid var(--ctp-surface1);
  cursor: pointer;
  user-select: none;
  transition: color var(--duration-fast);
}
.data-table thead th:hover { color: var(--ctp-text); }
.data-table thead th.sorted { color: var(--ctp-blue); }

.data-table tbody tr {
  transition: background var(--duration-fast);
  border-left: 2px solid transparent;
}
.data-table tbody tr:hover {
  background: var(--surface-hover);
  border-left-color: var(--ctp-blue);
}
.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ctp-surface0);
  font-family: var(--font-mono);
}

/* Alternating rows */
.data-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--ctp-surface0) 30%, transparent);
}
.data-table tbody tr:nth-child(even):hover {
  background: var(--surface-hover);
}

/* --- Skeleton Loaders --- */
.skeleton {
  background: var(--ctp-surface1);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--ctp-surface2) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-text { height: 14px; width: 80%; }
.skeleton-text-sm { height: 11px; width: 60%; }
.skeleton-heading { height: 22px; width: 40%; }
.skeleton-card { height: 80px; }
.skeleton-row { height: 44px; width: 100%; margin-bottom: 2px; }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.4;
}
.badge-blue { background: color-mix(in srgb, var(--ctp-blue) 15%, transparent); color: var(--ctp-blue); }
.badge-green { background: color-mix(in srgb, var(--ctp-green) 15%, transparent); color: var(--ctp-green); }
.badge-yellow { background: color-mix(in srgb, var(--ctp-yellow) 15%, transparent); color: var(--ctp-yellow); }
.badge-red { background: color-mix(in srgb, var(--ctp-red) 15%, transparent); color: var(--ctp-red); }
.badge-mauve { background: color-mix(in srgb, var(--ctp-mauve) 15%, transparent); color: var(--ctp-mauve); }
.badge-surface { background: var(--ctp-surface1); color: var(--ctp-subtext0); }

/* --- Glass Panel --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-panel {
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 24px;
}
.modal-panel-lg { max-width: 900px; }
.modal-panel-xl { max-width: 1200px; }

/* --- Toast Container --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-family: var(--font-display);
  min-width: 300px;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}
.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--ctp-blue);
  animation: toastProgress linear forwards;
}
@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}
.toast-success { border-left: 3px solid var(--ctp-green); }
.toast-error { border-left: 3px solid var(--ctp-red); }
.toast-info { border-left: 3px solid var(--ctp-blue); }
.toast-warning { border-left: 3px solid var(--ctp-yellow); }

/* --- Input/Select polish --- */
.input {
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  font-size: var(--text-sm);
  color: var(--ctp-text);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
  width: 100%;
}
.input:focus {
  border-color: var(--ctp-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ctp-blue) 15%, transparent);
}
.input::placeholder { color: var(--ctp-overlay0); }

/* --- Progress Bar --- */
.progress-bar {
  height: 4px;
  background: var(--ctp-surface1);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ctp-blue), var(--ctp-teal));
  border-radius: 2px;
  transition: width var(--duration-normal) var(--ease-out-expo);
}

/* --- Sort Arrow --- */
.sort-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform var(--duration-fast);
}
.sort-arrow-asc {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
}
.sort-arrow-desc {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

/* --- Focus Ring (accessibility) --- */
.focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ctp-base), 0 0 0 4px var(--ctp-blue);
}

/* --- Scrollbar (thin variant for panels) --- */
.scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar-thin::-webkit-scrollbar-thumb { border-radius: 3px; }

/* --- Empty State --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--ctp-overlay1);
}
.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state p {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  max-width: 320px;
}

/* --- Action Pills (compact action bar buttons) --- */
.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: var(--ctp-overlay1);
  background: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface2);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  white-space: nowrap;
}
.action-pill:hover:not(:disabled) {
  color: var(--ctp-text);
  background: var(--ctp-surface1);
  border-color: var(--ctp-overlay0);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.action-pill:active:not(:disabled) {
  transform: scale(0.97);
}
.action-pill:disabled, .action-pill-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.action-pill-active {
  font-weight: 600;
}
.action-pill-active.action-pill-yellow {
  color: var(--ctp-yellow);
  background: color-mix(in srgb, var(--ctp-yellow) 12%, var(--ctp-surface0));
  border-color: color-mix(in srgb, var(--ctp-yellow) 35%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ctp-yellow) 15%, transparent);
}
.action-pill-active.action-pill-sky {
  color: var(--ctp-sky);
  background: color-mix(in srgb, var(--ctp-sky) 12%, var(--ctp-surface0));
  border-color: color-mix(in srgb, var(--ctp-sky) 35%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ctp-sky) 15%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
.action-pill-active.action-pill-peach {
  color: var(--ctp-peach);
  background: color-mix(in srgb, var(--ctp-peach) 12%, var(--ctp-surface0));
  border-color: color-mix(in srgb, var(--ctp-peach) 35%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ctp-peach) 15%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
.action-pill-active.action-pill-mauve {
  color: var(--ctp-mauve);
  background: color-mix(in srgb, var(--ctp-mauve) 12%, var(--ctp-surface0));
  border-color: color-mix(in srgb, var(--ctp-mauve) 35%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ctp-mauve) 15%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
.action-pill-active.action-pill-teal {
  color: var(--ctp-teal);
  background: color-mix(in srgb, var(--ctp-teal) 12%, var(--ctp-surface0));
  border-color: color-mix(in srgb, var(--ctp-teal) 35%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ctp-teal) 15%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* ===== Mobile Responsive ===== */

/* --- Mobile Menu Toggle Button --- */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ctp-subtext0);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}
.mobile-menu-btn:hover {
  background: var(--surface-hover);
  color: var(--ctp-text);
}

/* --- Mobile Sidebar Overlay --- */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 60;
}
.mobile-sidebar-overlay.active { display: block; }

/* --- Mobile Sidebar Toggle Button --- */
.mobile-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ctp-teal);
  background: color-mix(in srgb, var(--ctp-teal) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ctp-teal) 20%, transparent);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.mobile-sidebar-toggle:hover {
  background: color-mix(in srgb, var(--ctp-teal) 15%, transparent);
}

@media (max-width: 768px) {
  /* --- Header --- */
  .mobile-menu-btn { display: flex; }

  .header-stats,
  .header-actions-desktop {
    display: none !important;
  }

  .header-actions-mobile {
    display: flex !important;
  }

  /* Mobile dropdown menu */
  .mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 60;
    background: var(--ctp-surface0);
    border: 1px solid var(--ctp-surface1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mobile-dropdown-menu .btn {
    width: 100%;
    justify-content: flex-start;
  }

  /* --- Navigation Tabs --- */
  .nav-tab {
    padding: 8px 14px;
    font-size: var(--text-sm);
    min-height: 44px;
  }
  .nav-tab svg { width: 16px; height: 16px; }

  /* --- Main Content --- */
  .main-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  /* --- Topics List Sidebar --- */
  .mobile-sidebar-toggle { display: flex; }

  .tl-layout {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .tl-sidebar {
    width: 100% !important;
    flex-shrink: 1 !important;
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 280px !important;
    z-index: 70;
    background: var(--ctp-base);
    padding: 16px;
    overflow-y: auto;
    transition: left 0.25s var(--ease-out-expo);
  }
  .tl-sidebar.mobile-open {
    left: 0;
  }
  .tl-sidebar .sticky { position: static !important; }

  /* --- Cards --- */
  .card { padding: 14px; }
  .stat-card { padding: 12px 14px; }

  /* --- Tables --- */
  .data-table { font-size: var(--text-xs); }
  .data-table thead th { padding: 8px 10px; }
  .data-table tbody td { padding: 8px 10px; }

  /* --- Modal --- */
  .modal-panel {
    width: calc(100% - 16px);
    max-height: calc(100vh - 32px);
    padding: 16px;
    border-radius: var(--radius-lg);
  }
  .modal-panel-lg { max-width: 100%; }
  .modal-panel-xl { max-width: 100%; }

  /* --- Buttons: touch-friendly --- */
  .btn { min-height: 44px; padding: 10px 16px; }
  .btn-sm { min-height: 36px; padding: 8px 12px; }
  .btn-xs { min-height: 32px; padding: 6px 10px; }

  /* --- Inputs: touch-friendly --- */
  .input { min-height: 44px; padding: 10px 12px; font-size: 16px; }
  select.input { font-size: 16px; }

  /* --- Nav tab pills: touch-friendly --- */
  .action-pill { min-height: 36px; padding: 8px 14px; }

  /* --- Toast on mobile --- */
  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .toast {
    min-width: auto;
    max-width: 100%;
  }

  /* --- Prevent horizontal overflow --- */
  .max-w-7xl { max-width: 100% !important; }

  /* --- Fix fixed-width elements --- */
  img, video, canvas, svg.chart { max-width: 100%; height: auto; }

  /* --- Geo dropdown mobile --- */
  [class*="w-64"],
  [class*="w-72"],
  [class*="w-80"],
  [class*="w-96"] {
    max-width: calc(100vw - 32px);
  }


  /* --- Prevent body horizontal overflow --- */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* --- Flex containers stack on mobile --- */
  .flex-row-mobile-col { flex-direction: column !important; }
  .gap-5, .gap-6, .gap-8 { gap: 12px !important; }

  /* --- Font size adjustments for readability --- */
  .text-2xl { font-size: 1.25rem !important; }
  .text-3xl { font-size: 1.5rem !important; }
  .text-4xl { font-size: 1.75rem !important; }

  /* --- Ensure all overflow-x containers are scrollable --- */
  .overflow-x-auto { -webkit-overflow-scrolling: touch; }

  /* --- Fixed-width elements should not exceed viewport --- */
  pre, code, .font-mono { max-width: 100%; overflow-x: auto; word-break: break-word; }

  /* --- Modal improvements --- */
  .modal-panel h2, .modal-panel h3 { font-size: 1rem; }
  .modal-panel .text-sm { font-size: 0.8125rem; }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
  .nav-tab span:not(.badge):not([class*="px-"]) {
    /* Hide tab text labels, show icons only on very small screens */
  }
  .stat-card .stat-value { font-size: var(--text-xl); }
  .stat-card .stat-label { font-size: 10px; }

  /* Stack 2-col grids on very small screens where appropriate */
  .grid-cols-2:not(.gap-x-2) { grid-template-columns: 1fr !important; }
}

/* --- Article Prose (rendered markdown) --- */
.tl-article-prose {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ctp-text);
}
.tl-article-prose h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ctp-teal);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.tl-article-prose h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ctp-blue);
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}
.tl-article-prose h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ctp-mauve);
  margin: 1.25rem 0 0.4rem;
}
.tl-article-prose h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ctp-peach);
  margin: 1rem 0 0.3rem;
}
.tl-article-prose p {
  margin: 0 0 0.75rem;
}
.tl-article-prose ul, .tl-article-prose ol {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}
.tl-article-prose ul { list-style-type: disc; }
.tl-article-prose ol { list-style-type: decimal; }
.tl-article-prose li {
  margin-bottom: 0.25rem;
}
.tl-article-prose li > ul, .tl-article-prose li > ol {
  margin-top: 0.25rem;
  margin-bottom: 0;
}
.tl-article-prose strong {
  font-weight: 600;
  color: var(--ctp-text);
}
.tl-article-prose em {
  font-style: italic;
}
.tl-article-prose a {
  color: var(--ctp-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tl-article-prose a:hover {
  color: var(--ctp-teal);
}
.tl-article-prose blockquote {
  border-left: 3px solid var(--ctp-surface2);
  padding: 0.5rem 1rem;
  margin: 0.75rem 0;
  color: var(--ctp-subtext0);
  background: var(--ctp-surface0);
  border-radius: 0 0.375rem 0.375rem 0;
}
.tl-article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.8125rem;
}
.tl-article-prose th {
  text-align: left;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--ctp-surface2);
  color: var(--ctp-subtext1);
  background: var(--ctp-surface0);
}
.tl-article-prose td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--ctp-surface1);
}
.tl-article-prose tr:hover td {
  background: var(--ctp-surface0);
}
.tl-article-prose code {
  font-size: 0.8125rem;
  background: var(--ctp-surface1);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}
.tl-article-prose hr {
  border: none;
  border-top: 1px solid var(--ctp-surface2);
  margin: 1.25rem 0;
}
.tl-article-prose img {
  max-width: 100%;
  border-radius: 0.5rem;
}
