/* Reserved for static root stylesheet. */

/* ── Accessibility ── */

/* Skip-to-content link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #1e293b;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.15s ease;
  white-space: nowrap;
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

/* Focus-visible ring for keyboard navigation (all interactive elements) */
:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove focus ring for mouse/touch interactions */
:focus:not(:focus-visible) {
  outline: none;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Light Mode: Ensure inputs are always light-styled ── */
/* ── Dark Mode Global Overrides ── */
/* ── Dark Mode: Colored Tint Backgrounds ── */
/* ── Dark Mode: Colored Text Adaptation ── */
/* ── Dark Mode: Colored Borders ── */
.prose {
  color: #334155;
  max-width: 72ch;
  line-height: 1.75;
  font-size: 1.05rem;
}

.prose :where(h1, h2, h3, h4, h5, h6) {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

.prose :where(h1) {
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-top: 0;
}

.prose :where(h2) {
  font-size: clamp(1.45rem, 2.8vw, 1.8rem);
  letter-spacing: -0.01em;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e2e8f0;
}

.prose :where(h3) {
  font-size: clamp(1.2rem, 2.2vw, 1.35rem);
}

.prose :where(h4, h5, h6) {
  font-size: 1.05rem;
}

.prose :where(p, ul, ol, blockquote, pre, table, img, hr) {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.prose :where(p) {
  color: #334155;
}

.prose :where(ul, ol) {
  padding-left: 1.4rem;
}

.prose :where(ul) {
  list-style: disc;
}

.prose :where(ol) {
  list-style: decimal;
}

.prose :where(li) {
  margin: 0.35rem 0;
  padding-left: 0.2rem;
}

.prose :where(li > ul, li > ol) {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose :where(a) {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.prose :where(a:hover) {
  color: #1d4ed8;
}

.insight-content a[href*="src=insight_cta"] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border-radius: 0.72rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.insight-content a[href*="src=insight_cta"]:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  text-decoration: none;
}

.prose :where(blockquote) {
  border-left: 4px solid #cbd5e1;
  padding-left: 1rem;
  color: #475569;
  font-style: italic;
}

.prose :where(code):not(pre code) {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.1rem 0.35rem;
  color: #0f172a;
  font-size: 0.92em;
}

.prose :where(pre) {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  overflow: auto;
}

.prose :where(pre code) {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 0.9rem;
  padding: 0;
}

.prose :where(hr) {
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.prose :where(img) {
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  max-width: 100%;
  height: auto;
}

/* ── Dark Mode Prose ── */
/* ── Dark Scrollbar ── */
