/* Newsletter-specific styles with light/dark theme support */

:root {
  /* Catppuccin Latte (Light Mode) - Higher Contrast */
  --nl-bg-primary: #ffffff;
  --nl-bg-secondary: #eff1f5;
  --nl-bg-tertiary: #e6e9ef;
  --nl-text-primary: #11111b;
  --nl-text-secondary: #4c4f69;
  --nl-text-muted: #6c6f85;
  --nl-accent-primary: #179299;
  --nl-accent-hover: #127378;
  --nl-cta-bg: #fe640b;
  --nl-cta-hover: #e55a0a;
  --nl-border: #bcc0cc;
  --nl-border-hover: #acb0be;
  --nl-card-shadow: 0 1px 3px 0 rgb(76 79 105 / 0.15), 0 1px 2px -1px rgb(76 79 105 / 0.1);
  --nl-card-shadow-hover: 0 4px 6px -1px rgb(76 79 105 / 0.2), 0 2px 4px -2px rgb(76 79 105 / 0.15);
}

[data-theme="dark"] {
  /* Catppuccin Mocha (Dark Mode) - Higher Contrast */
  --nl-bg-primary: #11111b;
  --nl-bg-secondary: #1e1e2e;
  --nl-bg-tertiary: #313244;
  --nl-text-primary: #f5e0dc;
  --nl-text-secondary: #cdd6f4;
  --nl-text-muted: #a6adc8;
  --nl-accent-primary: #94e2d5;
  --nl-accent-hover: #a6f3e6;
  --nl-cta-bg: #fab387;
  --nl-cta-hover: #fcc9a8;
  --nl-border: #45475a;
  --nl-border-hover: #585b70;
  --nl-card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3);
  --nl-card-shadow-hover: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
}

/* Base Newsletter Styles */
.nl-body {
  background-color: var(--nl-bg-primary);
  color: var(--nl-text-primary);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.nl-header {
  background-color: var(--nl-bg-secondary);
  border-bottom: 1px solid var(--nl-border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nl-header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nl-logo {
  font-family: 'Cartridge', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--nl-text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nl-logo:hover {
  color: var(--nl-accent-primary);
}

.nl-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nl-nav-link {
  color: var(--nl-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nl-nav-link:hover {
  color: var(--nl-text-primary);
}

.nl-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.nl-theme-toggle {
  background: transparent;
  border: 1px solid var(--nl-border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--nl-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nl-theme-toggle:hover {
  background-color: var(--nl-bg-tertiary);
  color: var(--nl-text-primary);
  border-color: var(--nl-border-hover);
}

.nl-theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nl-theme-toggle .icon-sun {
  display: none;
}

.nl-theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .nl-theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .nl-theme-toggle .icon-moon {
  display: none;
}

/* Scroll Progress Bar */
.nl-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background-color: transparent;
}

.nl-scroll-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--nl-cta-bg);
  transition: width 0.1s ease-out;
}

/* Breadcrumb Bar */
.nl-breadcrumb {
  background-color: var(--nl-bg-primary);
  border-bottom: 1px solid var(--nl-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nl-breadcrumb-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}

.nl-breadcrumb-link {
  font-size: 0.8125rem;
  color: var(--nl-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.nl-breadcrumb-link:hover {
  color: var(--nl-text-primary);
}

/* CTA Button */
.nl-btn-cta {
  background-color: var(--nl-cta-bg);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

[data-theme="dark"] .nl-btn-cta {
  color: #1e1e2e;
}

.nl-btn-cta:hover {
  background-color: var(--nl-cta-hover);
  transform: translateY(-1px);
}

.nl-btn-cta-lg {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

/* Hero Section */
.nl-hero {
  background-color: var(--nl-bg-secondary);
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--nl-border);
}

.nl-hero-inner {
  max-width: 50rem;
  margin: 0 auto;
}

.nl-hero-title {
  font-family: 'Cartridge', sans-serif;
  font-size: clamp(2rem, 6vw + 0.5rem, 3.5rem);
  font-weight: 900;
  color: var(--nl-text-primary);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.nl-hero-subtitle {
  font-size: 1.25rem;
  color: var(--nl-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Subscribe Form */
.nl-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

@media (min-width: 640px) {
  .nl-subscribe-form {
    flex-direction: row;
  }
}

.nl-email-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--nl-border);
  border-radius: 0.5rem;
  background-color: var(--nl-bg-primary);
  color: var(--nl-text-primary);
  transition: all 0.2s ease;
}

.nl-email-input::placeholder {
  color: var(--nl-text-muted);
}

.nl-email-input:focus {
  outline: none;
  border-color: var(--nl-accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .nl-email-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.nl-social-proof {
  font-size: 0.875rem;
  color: var(--nl-text-muted);
}

.nl-social-proof strong {
  color: var(--nl-text-secondary);
}

/* Subscribed Confirmation */
.nl-subscribed-message {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--nl-accent-primary);
  padding: 1rem 0;
}

.nl-form-error {
  font-size: 0.875rem;
  color: #d20f39;
  margin-top: 0.5rem;
}

[data-theme="dark"] .nl-form-error {
  color: #f38ba8;
}

/* Main Content */
.nl-main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Narrower width for reading articles */
.nl-main-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Section Label */
.nl-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nl-text-muted);
  margin-bottom: 1.5rem;
}

/* Newsletter Cards Grid */
.nl-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .nl-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Newsletter Card */
.nl-card {
  background-color: var(--nl-bg-primary);
  border: 1px solid var(--nl-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--nl-card-shadow);
}

.nl-card:hover {
  border-color: var(--nl-border-hover);
  box-shadow: var(--nl-card-shadow-hover);
  transform: translateY(-2px);
}

.nl-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nl-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nl-card-date {
  font-size: 0.75rem;
  color: var(--nl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.nl-card-title {
  font-family: 'Cartridge', sans-serif;
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
  font-weight: 900;
  color: var(--nl-text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nl-card-link:hover .nl-card-title {
  color: var(--nl-accent-primary);
}

.nl-card-meta {
  font-size: 0.875rem;
  color: var(--nl-text-muted);
  margin-bottom: 0.75rem;
}

.nl-card-excerpt {
  font-size: 1rem;
  color: var(--nl-text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* Card with Image */
.nl-card-with-image {
  padding: 0;
  overflow: hidden;
}

.nl-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nl-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nl-card:hover .nl-card-image img {
  transform: scale(1.05);
}

.nl-card-with-image .nl-card-content {
  padding: 1.5rem;
}

/* Show Page Styles */
.nl-back-link {
  font-size: 0.875rem;
  color: var(--nl-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.nl-back-link:hover {
  color: var(--nl-text-primary);
}

.nl-article-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--nl-border);
}

.nl-article-date {
  font-size: 0.75rem;
  color: var(--nl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.nl-article-title {
  font-family: 'Cartridge', sans-serif;
  font-size: clamp(1.75rem, 5vw + 0.5rem, 2.5rem);
  font-weight: 900;
  color: var(--nl-text-primary);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Blurb Section */
.nl-blurb {
  font-size: 1.125rem;
  color: var(--nl-text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.nl-blurb p {
  margin-bottom: 1rem;
}

.nl-blurb a {
  color: var(--nl-accent-primary);
  text-decoration: underline;
}

.nl-blurb a:hover {
  color: var(--nl-accent-hover);
}

/* Articles Section */
.nl-articles-section {
  margin-bottom: 3rem;
}

.nl-article-item {
  background-color: var(--nl-bg-secondary);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: background-color 0.2s ease;
}

.nl-article-item:hover {
  background-color: var(--nl-bg-tertiary);
}

.nl-article-item-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.nl-source-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.nl-source-badge-hn {
  background-color: #ff6600;
  color: #ffffff;
}

.nl-source-badge-reddit {
  background-color: #ff4500;
  color: #ffffff;
}

.nl-article-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nl-accent-primary);
  text-decoration: none;
  line-height: 1.4;
}

.nl-article-item-title:hover {
  text-decoration: underline;
}

.nl-article-item-meta {
  font-size: 0.8125rem;
  color: var(--nl-text-muted);
  margin-top: 0.25rem;
}

.nl-article-item-meta a {
  color: var(--nl-text-muted);
  text-decoration: none;
}

.nl-article-item-meta a:hover {
  color: var(--nl-text-secondary);
  text-decoration: underline;
}

.nl-article-commentary {
  font-size: 0.9375rem;
  color: var(--nl-text-secondary);
  font-style: italic;
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--nl-border);
}

/* Bottom CTA Banner */
.nl-cta-banner {
  background-color: var(--nl-bg-secondary);
  border: 1px solid var(--nl-border);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.nl-cta-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nl-text-primary);
  margin-bottom: 0.5rem;
}

.nl-cta-banner-subtitle {
  font-size: 1rem;
  color: var(--nl-text-secondary);
  margin-bottom: 1.5rem;
}

/* Footer */
.nl-footer {
  background-color: var(--nl-bg-secondary);
  border-top: 1px solid var(--nl-border);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.nl-footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .nl-footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.nl-footer-brand {
  font-weight: 600;
  color: var(--nl-text-primary);
}

.nl-footer-tagline {
  color: var(--nl-text-muted);
  font-size: 0.875rem;
}

.nl-footer-links {
  display: flex;
  gap: 1.5rem;
}

.nl-footer-link {
  color: var(--nl-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.nl-footer-link:hover {
  color: var(--nl-text-primary);
}

.nl-footer-copyright {
  font-size: 0.8125rem;
  color: var(--nl-text-muted);
}

/* Empty State */
.nl-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--nl-text-muted);
}

.nl-empty-state p {
  font-size: 1rem;
}

/* Utility Classes */
.nl-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nl-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;
}

/* ==========================================================================
   Rich Text Content (ActionText/Trix) - Dark Mode Support
   ========================================================================== */

/* Base rich text styling for newsletter */
.nl-blurb .trix-content,
.nl-blurb .lexxy-content {
  color: var(--nl-text-secondary);
}

.nl-blurb .trix-content p,
.nl-blurb .lexxy-content p {
  margin-bottom: 1rem;
}

.nl-blurb .trix-content a,
.nl-blurb .lexxy-content a {
  color: var(--nl-accent-primary);
  text-decoration: underline;
}

.nl-blurb .trix-content a:hover,
.nl-blurb .lexxy-content a:hover {
  color: var(--nl-accent-hover);
}

.nl-blurb .trix-content strong,
.nl-blurb .lexxy-content strong {
  color: var(--nl-text-primary);
  font-weight: 600;
}

.nl-blurb .trix-content em,
.nl-blurb .lexxy-content em {
  font-style: italic;
}

.nl-blurb .trix-content h1,
.nl-blurb .lexxy-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nl-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.nl-blurb .trix-content blockquote,
.nl-blurb .lexxy-content blockquote {
  border-left-color: var(--nl-border);
  color: var(--nl-text-muted);
  padding-left: 1rem;
  margin-left: 0;
  font-style: italic;
}

.nl-blurb .trix-content ul,
.nl-blurb .lexxy-content ul,
.nl-blurb .trix-content ol,
.nl-blurb .lexxy-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.nl-blurb .trix-content li,
.nl-blurb .lexxy-content li {
  margin-bottom: 0.5rem;
}

/* Code blocks */
.nl-blurb .trix-content pre,
.nl-blurb .lexxy-content pre {
  background-color: var(--nl-code-bg, #1e293b);
  color: var(--nl-code-text, #e2e8f0);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.nl-blurb .trix-content code,
.nl-blurb .lexxy-content code {
  background-color: var(--nl-code-inline-bg, #f1f5f9);
  color: var(--nl-code-inline-text, #1e293b);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Menlo, monospace;
  font-size: 0.875em;
}

.nl-blurb .trix-content pre code,
.nl-blurb .lexxy-content pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

/* Light mode code variables - Catppuccin Latte */
:root {
  --nl-code-bg: #e6e9ef;
  --nl-code-text: #4c4f69;
  --nl-code-inline-bg: #dce0e8;
  --nl-code-inline-text: #4c4f69;

  /* Lexxy code syntax highlighting - Catppuccin Latte */
  --lexxy-color-code-bg: #e6e9ef;
  --lexxy-color-code-token-comment: #9ca0b0;
  --lexxy-color-code-token-punctuation: #6c6f85;
  --lexxy-color-code-token-property: #1e66f5;
  --lexxy-color-code-token-number: #fe640b;
  --lexxy-color-code-token-string: #40a02b;
  --lexxy-color-code-token-selector: #ea76cb;
  --lexxy-color-code-token-operator: #179299;
  --lexxy-color-code-token-keyword: #8839ef;
  --lexxy-color-code-token-function: #1e66f5;
  --lexxy-color-code-token-variable: #fe640b;
  --lexxy-color-code-token-att: #d20f39;
}

/* Dark mode code variables - Catppuccin Mocha theme (higher contrast) */
[data-theme="dark"] {
  --nl-code-bg: #181825;
  --nl-code-text: #cdd6f4;
  --nl-code-inline-bg: #313244;
  --nl-code-inline-text: #cdd6f4;

  /* Lexxy code syntax highlighting - Catppuccin Mocha */
  --lexxy-color-code-bg: #181825;
  --lexxy-color-code-token-comment: #9399b2;
  --lexxy-color-code-token-punctuation: #bac2de;
  --lexxy-color-code-token-property: #89b4fa;
  --lexxy-color-code-token-number: #fab387;
  --lexxy-color-code-token-string: #a6e3a1;
  --lexxy-color-code-token-selector: #f5c2e7;
  --lexxy-color-code-token-operator: #89dceb;
  --lexxy-color-code-token-keyword: #cba6f7;
  --lexxy-color-code-token-function: #89b4fa;
  --lexxy-color-code-token-variable: #fab387;
  --lexxy-color-code-token-att: #f38ba8;
}

/* Dark mode rich text content */
[data-theme="dark"] .nl-blurb .trix-content,
[data-theme="dark"] .nl-blurb .lexxy-content,
[data-theme="dark"] .nl-blurb [class*="action-text"] {
  color: var(--nl-text-secondary);
}

[data-theme="dark"] .nl-blurb .trix-content blockquote,
[data-theme="dark"] .nl-blurb .lexxy-content blockquote {
  border-left-color: var(--nl-border);
  color: var(--nl-text-muted);
}

/* Syntax highlighting tokens - Catppuccin Latte (Light Mode) */
.nl-blurb .trix-content pre .token.comment,
.nl-blurb .trix-content pre .token.prolog,
.nl-blurb .trix-content pre .token.doctype,
.nl-blurb .trix-content pre .token.cdata,
.nl-blurb .lexxy-content pre .token.comment {
  color: #9ca0b0;
}

.nl-blurb .trix-content pre .token.punctuation,
.nl-blurb .lexxy-content pre .token.punctuation {
  color: #6c6f85;
}

.nl-blurb .trix-content pre .token.property,
.nl-blurb .trix-content pre .token.tag,
.nl-blurb .trix-content pre .token.boolean,
.nl-blurb .trix-content pre .token.number,
.nl-blurb .trix-content pre .token.constant,
.nl-blurb .trix-content pre .token.symbol,
.nl-blurb .lexxy-content pre .token.property,
.nl-blurb .lexxy-content pre .token.number {
  color: #1e66f5;
}

.nl-blurb .trix-content pre .token.selector,
.nl-blurb .trix-content pre .token.attr-name,
.nl-blurb .trix-content pre .token.string,
.nl-blurb .trix-content pre .token.char,
.nl-blurb .trix-content pre .token.builtin,
.nl-blurb .lexxy-content pre .token.string,
.nl-blurb .lexxy-content pre .token.selector {
  color: #40a02b;
}

.nl-blurb .trix-content pre .token.operator,
.nl-blurb .trix-content pre .token.entity,
.nl-blurb .trix-content pre .token.url,
.nl-blurb .lexxy-content pre .token.operator {
  color: #179299;
}

.nl-blurb .trix-content pre .token.atrule,
.nl-blurb .trix-content pre .token.attr-value,
.nl-blurb .trix-content pre .token.keyword,
.nl-blurb .lexxy-content pre .token.keyword {
  color: #8839ef;
}

.nl-blurb .trix-content pre .token.function,
.nl-blurb .trix-content pre .token.class-name,
.nl-blurb .lexxy-content pre .token.function {
  color: #1e66f5;
}

.nl-blurb .trix-content pre .token.variable,
.nl-blurb .lexxy-content pre .token.variable {
  color: #fe640b;
}

/* Syntax highlighting tokens - Catppuccin Mocha (Dark Mode) */
[data-theme="dark"] .nl-blurb .trix-content pre .token.comment,
[data-theme="dark"] .nl-blurb .trix-content pre .token.prolog,
[data-theme="dark"] .nl-blurb .trix-content pre .token.doctype,
[data-theme="dark"] .nl-blurb .trix-content pre .token.cdata,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.comment {
  color: #9399b2;
}

[data-theme="dark"] .nl-blurb .trix-content pre .token.punctuation,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.punctuation {
  color: #bac2de;
}

[data-theme="dark"] .nl-blurb .trix-content pre .token.property,
[data-theme="dark"] .nl-blurb .trix-content pre .token.tag,
[data-theme="dark"] .nl-blurb .trix-content pre .token.boolean,
[data-theme="dark"] .nl-blurb .trix-content pre .token.number,
[data-theme="dark"] .nl-blurb .trix-content pre .token.constant,
[data-theme="dark"] .nl-blurb .trix-content pre .token.symbol,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.property,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.number {
  color: #89b4fa;
}

[data-theme="dark"] .nl-blurb .trix-content pre .token.selector,
[data-theme="dark"] .nl-blurb .trix-content pre .token.attr-name,
[data-theme="dark"] .nl-blurb .trix-content pre .token.string,
[data-theme="dark"] .nl-blurb .trix-content pre .token.char,
[data-theme="dark"] .nl-blurb .trix-content pre .token.builtin,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.string,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.selector {
  color: #a6e3a1;
}

[data-theme="dark"] .nl-blurb .trix-content pre .token.operator,
[data-theme="dark"] .nl-blurb .trix-content pre .token.entity,
[data-theme="dark"] .nl-blurb .trix-content pre .token.url,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.operator {
  color: #89dceb;
}

[data-theme="dark"] .nl-blurb .trix-content pre .token.atrule,
[data-theme="dark"] .nl-blurb .trix-content pre .token.attr-value,
[data-theme="dark"] .nl-blurb .trix-content pre .token.keyword,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.keyword {
  color: #cba6f7;
}

[data-theme="dark"] .nl-blurb .trix-content pre .token.function,
[data-theme="dark"] .nl-blurb .trix-content pre .token.class-name,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.function {
  color: #89b4fa;
}

[data-theme="dark"] .nl-blurb .trix-content pre .token.variable,
[data-theme="dark"] .nl-blurb .lexxy-content pre .token.variable {
  color: #fab387;
}

/* Images in rich text */
.nl-blurb .trix-content img,
.nl-blurb .lexxy-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Attachments */
[data-theme="dark"] .nl-blurb .trix-content .attachment--file,
[data-theme="dark"] .nl-blurb .lexxy-content .attachment--file {
  color: var(--nl-text-primary);
  border-color: var(--nl-border);
  background-color: var(--nl-bg-secondary);
}

[data-theme="dark"] .nl-blurb .trix-content .attachment__caption,
[data-theme="dark"] .nl-blurb .lexxy-content .attachment__caption {
  color: var(--nl-text-muted);
}
