/**
 * Stylesheet Khusus Portal Berita BeritaPenyidik
 * Aksesibilitas, Mode Kontras Tinggi & Tipografi Redaksional
 */

/* Animasi Marquee Ticker Breaking News */
@keyframes bp-marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: inline-flex;
  animation: bp-marquee 35s linear infinite;
}

.hover\:pause:hover {
  animation-play-state: paused;
}

/* Aksesibilitas: Skala Ukuran Font */
html.font-size-normal {
  font-size: 16px;
}

html.font-size-large {
  font-size: 18.5px;
}

html.font-size-xlarge {
  font-size: 21px;
}

/* Aksesibilitas: Mode Kontras Tinggi (WCAG AAA) */
html.high-contrast body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html.high-contrast .bg-white,
html.high-contrast .bg-slate-50,
html.high-contrast .bg-slate-100,
html.high-contrast .bg-slate-800,
html.high-contrast .bg-slate-900 {
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

html.high-contrast * {
  border-color: #ffffff !important;
  text-shadow: none !important;
}

html.high-contrast a {
  text-decoration: underline !important;
  color: #ffff00 !important; /* Kuning kontras tinggi */
}

html.high-contrast a:hover {
  color: #00ffff !important;
}

html.high-contrast h1,
html.high-contrast h2,
html.high-contrast h3,
html.high-contrast h4,
html.high-contrast strong {
  color: #ffffff !important;
}

html.high-contrast .text-slate-400,
html.high-contrast .text-slate-500,
html.high-contrast .text-slate-600 {
  color: #e2e8f0 !important;
}

/* Styling Konten Investigasi */
#article-content-body h2 {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
  border-left: 4px solid #dc2626;
  padding-left: 0.75rem;
}

.dark #article-content-body h2 {
  color: #f8fafc;
}

#article-content-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.dark #article-content-body h3 {
  color: #e2e8f0;
}

#article-content-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #334155;
}

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

#article-content-body blockquote {
  border-left: 4px solid #dc2626;
  background-color: #fef2f2;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin: 1.25rem 0;
  font-style: italic;
  color: #991b1b;
}

.dark #article-content-body blockquote {
  background-color: rgba(69, 10, 10, 0.4);
  color: #fca5a5;
  border-color: #ef4444;
}

#article-content-body ul,
#article-content-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

#article-content-body ul {
  list-style-type: disc;
}

#article-content-body ol {
  list-style-type: decimal;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
