/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "highlight.css";

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.group:hover .cursor-blink {
  animation: blink 1.5s step-end infinite;
}

/* ── Article prose styling ── */

.prose-styled h1,
.prose-styled h2,
.prose-styled h3,
.prose-styled h4 {
  font-weight: 600;
  line-height: 1.3;
}

.prose-styled h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose-styled h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.5rem; }

.prose-styled p {
  margin-bottom: 1.25rem;
}

.prose-styled a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-primary);
  transition: text-decoration-thickness 0.15s;
}

.prose-styled a:hover {
  text-decoration-thickness: 2px;
}

.prose-styled blockquote {
  border-left: 3px solid var(--color-base-300);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--color-base-content);
  opacity: 0.8;
  margin: 1.5rem 0;
}

.prose-styled pre {
  background: var(--color-base-200);
  border: 1px solid var(--color-base-300);
  border-radius: var(--radius-box);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.prose-styled code {
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  background: var(--color-base-200);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

.prose-styled pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.prose-styled ul,
.prose-styled ol {
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}

.prose-styled ul { list-style-type: disc; }
.prose-styled ol { list-style-type: decimal; }

.prose-styled li {
  margin-bottom: 0.35rem;
}

.prose-styled hr {
  border: 0;
  border-top: 1px solid var(--color-base-300);
  margin: 2rem 0;
}

.prose-styled img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-box);
  margin: 1.5rem 0;
}

.prose-styled table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.prose-styled th,
.prose-styled td {
  border: 1px solid var(--color-base-300);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.prose-styled th {
  background: var(--color-base-200);
  font-weight: 600;
}

.prose-styled del {
  opacity: 0.5;
}
