/* Small additions on top of Tailwind (loaded from CDN with the design tokens in views/partials/head.ejs). */

/* Honeypot field: hidden from humans, still present for bots. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Subtle dotted backdrop used by heroes */
.bg-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Reading progress bar on article pages */
#reading-progress {
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 80ms linear;
}

/* Quill editor */
.ql-toolbar.ql-snow {
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 1rem 1rem 0 0;
  background: #f8fafc;
  padding: 10px 12px !important;
  position: sticky;
  top: 64px;
  z-index: 10;
}
.ql-container.ql-snow {
  border: 0 !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1.0625rem !important;
}
#editor .ql-editor {
  min-height: 480px;
  line-height: 1.8;
  padding: 1.5rem 1.75rem;
  color: #1e293b;
}
#editor .ql-editor h2 { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 1.5rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
#editor .ql-editor h3 { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 1.2rem; font-weight: 700; margin: 1rem 0 .4rem; }
#editor .ql-editor blockquote { border-left: 4px solid #a5b4fc; padding-left: 1rem; color: #475569; }
#editor .ql-editor.ql-blank::before { color: #94a3b8; font-style: normal; left: 1.75rem; }

/* Ad slots never overflow the layout on mobile */
.ad-slot {
  max-width: 100%;
  overflow: hidden;
}

/* Long URLs in article content should wrap */
.prose a {
  overflow-wrap: anywhere;
}
