/*
 * 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.
 */

/* Summernote Editor Content Styling - Override Tailwind CSS reset */
.note-editable {
  /* Headings */
  h1 { font-size: 2rem; font-weight: bold; margin: 0.5rem 0; }
  h2 { font-size: 1.75rem; font-weight: bold; margin: 0.5rem 0; }
  h3 { font-size: 1.5rem; font-weight: bold; margin: 0.5rem 0; }
  h4 { font-size: 1.25rem; font-weight: bold; margin: 0.5rem 0; }
  h5 { font-size: 1.125rem; font-weight: bold; margin: 0.5rem 0; }
  h6 { font-size: 1rem; font-weight: bold; margin: 0.5rem 0; }
  
  /* Lists */
  ul {
    list-style-type: disc;
    margin: 1rem 0;
    padding-left: 2rem;
  }
  
  ol {
    list-style-type: decimal;
    margin: 1rem 0;
    padding-left: 2rem;
  }
  
  li {
    margin: 0.25rem 0;
  }
  
  /* Nested lists */
  ul ul { list-style-type: circle; }
  ul ul ul { list-style-type: square; }
  ol ol { list-style-type: lower-alpha; }
  ol ol ol { list-style-type: lower-roman; }
  
  /* Paragraphs */
  p {
    margin: 0.5rem 0;
  }
  
  /* Bold and italic */
  strong, b { font-weight: bold; }
  em, i { font-style: italic; }
  
  /* Links */
  a {
    color: #3b82f6;
    text-decoration: underline;
  }
  
  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
  }
  
  table td, table th {
    border: 1px solid #d1d5db;
    padding: 0.5rem;
  }
  
  table th {
    background-color: #f3f4f6;
    font-weight: bold;
  }
}

/* Google Fonts for Summernote content */
.note-editable {
  font-family: 'Open Sans', sans-serif;
}

.note-editable [style*="font-family: 'Open Sans'"] { font-family: 'Open Sans', sans-serif !important; }
.note-editable [style*="font-family: 'Roboto'"] { font-family: 'Roboto', sans-serif !important; }
.note-editable [style*="font-family: 'Lato'"] { font-family: 'Lato', sans-serif !important; }
.note-editable [style*="font-family: 'Source Sans Pro'"] { font-family: 'Source Sans Pro', sans-serif !important; }
.note-editable [style*="font-family: 'Montserrat'"] { font-family: 'Montserrat', sans-serif !important; }
.note-editable [style*="font-family: 'Noto Sans'"] { font-family: 'Noto Sans', sans-serif !important; }
.note-editable [style*="font-family: 'Ubuntu'"] { font-family: 'Ubuntu', sans-serif !important; }
.note-editable [style*="font-family: 'Libre Baskerville'"] { font-family: 'Libre Baskerville', serif !important; }
.note-editable [style*="font-family: 'Crimson Text'"] { font-family: 'Crimson Text', serif !important; }
.note-editable [style*="font-family: 'Inconsolata'"] { font-family: 'Inconsolata', monospace !important; }
/* Be robust to different quoting – match any inline style that contains the string */
.note-editable [style*="Barthowheel"] { font-family: 'Barthowheel', cursive !important; }

/* Public content that may include inline styles from editor */
[style*="Barthowheel"] { font-family: 'Barthowheel', cursive; }


