/* Custom Design Tokens & Keyframe Animations for NdotoYangu.com */
:root {
  --color-brand-dark: #0B132B;
  --color-brand-secondary: #1C2541;
  --color-accent-gold: #ad8851;
  --color-accent-gold-light: #c9a46c;
}

/* Smooth Transitions */
* {
  -webkit-tap-highlight-color: transparent;
}

/* TinyMCE Offline Warning Suppressions */
.tox-notifications-container,
.tox-statusbar__branding,
.tox-notification--warning,
.tox-notification--error {
  display: none !important;
}

/* Scripture blockquote styling */
.bible-verse {
  position: relative;
  border-left: 4px solid var(--color-accent-gold);
  background: rgba(173, 136, 81, 0.08);
  font-family: 'Lora', 'Merriweather', serif;
  font-style: italic;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}

.bible-verse cite {
  display: block;
  font-weight: 700;
  font-style: normal;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--color-accent-gold);
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* In-Page Push Ad Safe Spacing on Mobile */
.inpage-ad-safe-space {
  min-height: 10px;
}
@media (max-width: 640px) {
  .inpage-ad-safe-space {
    min-height: 44px; /* Leaves clean breathing space for push ads without blocking site logo or header */
  }
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSoft {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-soft {
  animation: pulseSoft 2.5s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

/* ==========================================================================
   Comprehensive Article Content Typography & Styling (.article-content)
   Restores full rich styling overridden by Tailwind Preflight
   ========================================================================== */
.article-content {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  line-height: 1.85;
}

.dark .article-content {
  color: #cbd5e1;
}

/* Headings */
/* Headings: Properly Proportioned Hierarchy (h1 is always dominant, h2 is smaller) */
.article-content h1,
.prose.article-content h1 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  line-height: 1.3 !important;
}

@media (min-width: 640px) {
  .article-content h1,
  .prose.article-content h1 {
    font-size: 2.1rem !important;
  }
}

.article-content h2,
.prose.article-content h2 {
  font-size: 1.22rem !important; /* Clearly smaller than page's h1 on mobile */
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 2.25rem !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.35 !important;
  border-bottom: 2px solid rgba(173, 136, 81, 0.25) !important;
  padding-bottom: 0.45rem !important;
}

@media (min-width: 640px) {
  .article-content h2,
  .prose.article-content h2 {
    font-size: 1.55rem !important;
    margin-top: 2.75rem !important;
  }
}

.dark .article-content h1,
.dark .article-content h2,
.dark .prose.article-content h1,
.dark .prose.article-content h2 {
  color: #f8fafc !important;
  border-bottom-color: rgba(173, 136, 81, 0.35) !important;
}

.article-content h3,
.prose.article-content h3,
.prose :where(.article-content h3),
.article-content .prose h3 {
  font-size: 1.05rem !important; /* Balanced sub-heading for mobile */
  font-weight: 700 !important;
  color: #ad8851 !important; /* Golden sand accent to distinctly highlight points */
  margin-top: 1.85rem !important;
  margin-bottom: 0.65rem !important;
  line-height: 1.4 !important;
  letter-spacing: -0.01em !important;
}

@media (min-width: 640px) {
  .article-content h3,
  .prose.article-content h3 {
    font-size: 1.28rem !important;
    margin-top: 2.35rem !important;
  }
}

.dark .article-content h3,
.dark .prose.article-content h3,
.dark .prose :where(.article-content h3),
.dark .article-content .prose h3 {
  color: #c9a46c !important; /* Rich golden sand in dark mode */
}

.article-content h4,
.prose.article-content h4 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
}

.dark .article-content h4,
.dark .prose.article-content h4 {
  color: #cbd5e1 !important;
}

/* Paragraphs: Natural, clean, comfortable mobile size (not oversized) */
.article-content p,
.prose.article-content p {
  font-size: 0.9375rem !important; /* 15px - optimal for mobile screens */
  line-height: 1.8 !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  color: #334155 !important;
}

.dark .article-content p,
.dark .prose.article-content p {
  color: #cbd5e1 !important;
}

@media (min-width: 640px) {
  .article-content p,
  .prose.article-content p {
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
    margin-bottom: 1.45rem !important;
  }
}

/* Lists (Unordered & Ordered with Golden Sand Markers) */
.article-content ul,
.prose.article-content ul {
  list-style-type: disc !important;
  margin-left: 1.35rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1.35rem !important;
  display: block !important;
}

.article-content ol,
.prose.article-content ol {
  list-style-type: decimal !important;
  margin-left: 1.35rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1.35rem !important;
  display: block !important;
}

.article-content li,
.prose.article-content li {
  font-size: 0.9375rem !important;
  margin-bottom: 0.55rem !important;
  line-height: 1.75 !important;
  padding-left: 0.25rem !important;
  display: list-item !important;
}

@media (min-width: 640px) {
  .article-content li,
  .prose.article-content li {
    font-size: 1.05rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.85 !important;
  }
}

/* Golden Sand List Markers for crystal-clear visual hierarchy */
.article-content li::marker,
.prose.article-content li::marker {
  color: #ad8851 !important;
  font-weight: 700 !important;
}

.dark .article-content li::marker,
.dark .prose.article-content li::marker {
  color: #c9a46c !important;
}

/* Nested lists */
.article-content ul ul,
.article-content ol ul {
  list-style-type: circle !important;
  margin-top: 0.5rem !important;
}

/* Strong / Bold */
.article-content strong,
.article-content b,
.prose.article-content strong {
  font-weight: 700 !important;
  color: #0f172a !important;
}

.dark .article-content strong,
.dark .article-content b,
.dark .prose.article-content strong {
  color: #ffffff !important;
}

/* Blockquotes & Bible Verses */
.article-content blockquote,
.prose.article-content blockquote {
  position: relative;
  border-left: 4px solid var(--color-accent-gold) !important;
  background: rgba(173, 136, 81, 0.08) !important;
  font-style: italic !important;
  padding: 1.35rem 1.6rem !important;
  margin: 2.25rem 0 !important;
  border-radius: 0 0.85rem 0.85rem 0 !important;
  color: #334155 !important;
  line-height: 1.9 !important;
}

.dark .article-content blockquote,
.dark .prose.article-content blockquote {
  color: #e2e8f0 !important;
  background: rgba(173, 136, 81, 0.12) !important;
}

/* Table Responsive Wrapper & Modern Editorial Tables */
.table-responsive-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dark .table-responsive-wrapper {
  border-color: #334155;
  background: #0f172a;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
}

/* Subtle sleek scrollbar for tables */
.table-responsive-wrapper::-webkit-scrollbar {
  height: 5px;
}
.table-responsive-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
.dark .table-responsive-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.table-responsive-wrapper::-webkit-scrollbar-thumb {
  background: rgba(173, 136, 81, 0.4);
  border-radius: 9999px;
}
.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(173, 136, 81, 0.7);
}

/* Table Structure: Compact & Non-bloated, displays 3 columns clearly on mobile */
.article-content table,
.prose.article-content table {
  width: 100% !important;
  min-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  table-layout: auto !important;
}

/* Mobile & Default Table Cells: Compact padding so 3 columns fit on screen */
.article-content thead th,
.article-content table th,
.prose.article-content thead th {
  background: #0b132b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.775rem !important;
  text-transform: none !important; /* Preserves exact original author casing */
  letter-spacing: 0.01em !important;
  padding: 0.75rem 0.65rem !important;
  border: none !important;
  border-bottom: 2px solid #ad8851 !important;
  white-space: normal !important;
  vertical-align: bottom !important;
  line-height: 1.35 !important;
}

.dark .article-content thead th,
.dark .article-content table th,
.dark .prose.article-content thead th {
  background: #070b19 !important;
  color: #f8fafc !important;
  border-bottom: 2px solid #c9a46c !important;
}

.article-content tbody td,
.article-content table td,
.prose.article-content tbody td {
  padding: 0.75rem 0.65rem !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
  line-height: 1.55 !important;
  font-size: 0.8125rem !important;
  vertical-align: top !important;
}

.dark .article-content tbody td,
.dark .article-content table td,
.dark .prose.article-content tbody td {
  border-bottom: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}

.article-content tbody tr:nth-child(even),
.article-content table tr:nth-child(even),
.prose.article-content tbody tr:nth-child(even) {
  background: #f8fafc !important;
}

.dark .article-content tbody tr:nth-child(even),
.dark .article-content table tr:nth-child(even),
.dark .prose.article-content tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.45) !important;
}

.article-content tbody tr:hover,
.article-content table tr:hover {
  background: rgba(173, 136, 81, 0.08) !important;
}

.dark .article-content tbody tr:hover,
.dark .article-content table tr:hover {
  background: rgba(173, 136, 81, 0.15) !important;
}

/* PC / Large Screen Adjustments (>= 768px): Spacious and elegant layout */
@media (min-width: 768px) {
  .article-content thead th,
  .article-content table th,
  .prose.article-content thead th {
    font-size: 0.875rem !important;
    padding: 1rem 1.25rem !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
  }
  .article-content tbody td,
  .article-content table td,
  .prose.article-content tbody td {
    padding: 1rem 1.25rem !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
  }
}

/* Links inside content */
.article-content a {
  color: var(--color-accent-gold);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.15s;
}

.article-content a:hover {
  color: var(--color-accent-gold-light);
}

/* Images inside content */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* Horizontal Rule */
.article-content hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

.dark .article-content hr {
  border-top-color: #334155;
}
