/* sgxblue.asia - Financial Blog Theme Custom Styles */

/* Smooth transitions for interactive elements only */
a, button, .group img { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
a, button { transition-duration: 150ms; }
.group img { transition-duration: 500ms; }

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Pagination styling - financial blog style */
.pagination { display: flex; gap: 0.375rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  color: #64748b;
  text-decoration: none;
  border: 1px solid transparent;
}
.pagination a:hover { background: #f1f5f9; color: #0f172a; }
.pagination .active { background: #003893; color: #ffffff; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #003893;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #cce0ff;
  color: #00173a;
}

/* Print styles */
@media print {
  header, footer, aside, #mobile-menu, #back-to-top { display: none !important; }
  main { padding: 0 !important; }
  .article-content { max-width: 100% !important; }
  body { background: white !important; color: black !important; }
}

/* Article content styling - serif font for readability */
.article-content { font-family: 'Noto Serif SC', 'Noto Serif TC', Georgia, serif; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #0f172a; letter-spacing: -0.025em; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #1e293b; }
.article-content p { margin-bottom: 1.25rem; line-height: 1.8; color: #334155; font-size: 1.05rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; color: #334155; line-height: 1.7; }
.article-content a { color: #003893; text-decoration: underline; text-underline-offset: 2px; }
.article-content img { max-width: 100%; border-radius: 0.5rem; margin: 1.5rem 0; }
.article-content blockquote { border-left: 3px solid #CE1126; padding: 1rem 1.5rem; background: #fef2f2; border-radius: 0 0.5rem 0.5rem 0; margin: 1.5rem 0; font-style: italic; color: #991b1b; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.article-content th, .article-content td { border: 1px solid #e2e8f0; padding: 0.75rem 1rem; text-align: left; }
.article-content th { background: #f8fafc; font-weight: 600; color: #0f172a; }
.article-content code { background: #f1f5f9; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-family: 'JetBrains Mono', monospace; font-size: 0.9em; color: #002d75; }
.article-content pre { background: #0f172a; color: #e2e8f0; padding: 1.25rem; border-radius: 0.5rem; overflow-x: auto; margin: 1.5rem 0; }
.article-content pre code { background: none; padding: 0; color: inherit; }

/* Summary box - Reuters style */
.summary-box {
  background: #f8fafc;
  border-left: 3px solid #003893;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}
.summary-box h4 {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.summary-box ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}
.summary-box li {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.375rem;
}
