/* ═══════════════════════════════════════════
   Point Immat — Custom Styles
   TailwindCSS loaded via CDN in head.html
   ═══════════════════════════════════════════ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* 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;
}

/* ═══════════════════════════════════════════
   Prose — Article content
   ═══════════════════════════════════════════ */

.prose p {
  margin-bottom: 1.125rem;
}
.prose ul, .prose ol {
  margin-bottom: 1.125rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.375rem;
}
.prose img {
  border-radius: 0.75rem;
}

/* Zebra striping on tables */
.prose tbody tr:nth-child(even) {
  background-color: rgba(249, 250, 251, 1);
}
.prose thead {
  border-bottom: 2px solid #e5e7eb;
}
.prose table {
  border-radius: 0.5rem;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5e7eb;
  width: 100%;
}
.prose th {
  text-align: left;
}

/* Blockquote — styled callout */
.prose blockquote {
  font-style: normal;
  border-left-width: 3px;
  margin: 1.5rem 0;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   Table of Contents
   ═══════════════════════════════════════════ */

#toc-list a {
  display: block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  color: #6b7280;
  transition: all 0.15s ease;
  line-height: 1.4;
}
#toc-list a:hover {
  color: #111827;
  background-color: rgba(0, 0, 0, 0.04);
}
#toc-list a.active {
  color: var(--tw-prose-primary, #ea580c);
  background-color: rgba(234, 88, 12, 0.06);
  font-weight: 600;
}
#toc-list .toc-h3 {
  padding-left: 1.5rem;
  font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════
   Reading progress bar
   ═══════════════════════════════════════════ */

#reading-progress {
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   Focus states — accessibility
   ═══════════════════════════════════════════ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Transition defaults */
a, button {
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Header transition */
#site-header {
  transition: box-shadow 0.2s ease;
}

/* ═══════════════════════════════════════════
   Print styles
   ═══════════════════════════════════════════ */

@media print {
  header, footer, nav, .no-print, #reading-progress, #toc, .share-buttons {
    display: none !important;
  }
  .prose {
    max-width: 100%;
  }
  body {
    background: white !important;
  }
}
