/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/markdown.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
.markdown-content {
  /* Base styles */
  color: #333333;
  font-family: "Work Sans", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  padding-right: 1em;
  
  @media (prefers-color-scheme: dark) {
    color: #f1f1f1;
  }
  
  /* Smaller text on mobile screens */
  @media (max-width: 768px) {
    font-size: 14px;
  }
  
  /* Print/PDF styles for content container */
  @media print {
    padding: 0 0.5cm !important; /* Add consistent page margins */
    margin: 0 auto !important;
    width: calc(100% - 1cm) !important; /* Total 1cm margins (0.5cm each side) */
    max-width: calc(100% - 1cm) !important;
    overflow: hidden !important; /* Prevent any overflow */
    box-sizing: border-box !important;
  }

  /* Headings - matching main app styling */
  h1, h2, h3, h4, h5, h6 {
    font-family: "Cocogoose Pro", sans-serif;
    line-height: 1.2;
    font-style: normal;
    margin-top: 1em;
   margin-bottom: 0.5em;;
  }

  h1 { 
    font-size: 2.25rem;
  }
  h2 { 
    font-size: 1.75rem;
    font-weight: 110;
  }
  h3 { 
    font-size: 1.35rem;
    font-weight: 110;
  }
  h4 { 
    font-size: 1.15rem;
    font-weight: 110;
  }
  h5 { 
    font-size: 1rem;
    font-weight: 110;
  }
  h6 { 
    font-size: 0.9rem;
    font-weight: 110;
  }
  
  /* Smaller headings on mobile */
  @media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.9rem; }
    h6 { font-size: 0.8rem; }
  }

  /* Paragraphs and spacing */
  p {
    margin: 0.5em 0;
    line-height: 1.6;
    padding: 0 0.5em 0 0.2em;
  }

  /* Text formatting */
  strong, b {
    font-weight: 110;
  }

  em, i {
    font-style: italic;
  }

  /* Strikethrough - GFM feature */
  del, s {
    text-decoration: line-through;
  }

  /* Lists */
  ul, ol {
    margin: 0;
    padding-left: 2em;
    line-height: 1.6;
  }

  li {
    margin: 0;
    padding-left: 0.5em;
  }

  ul li {
    list-style-type: disc;
  }

  ol li {
    list-style-type: decimal;
  }

  /* Task lists - GFM feature */
  ul.contains-task-list {
    list-style-type: none;
    padding-left: 0;
  }

  .task-list-item {
    list-style-type: none;
    padding-left: 1.5em;
    position: relative;
  }

  .task-list-item-checkbox {
    position: absolute;
    left: 0;
    top: 0.25em;
    margin-right: 0.5em;
  }

  /* Links */
  a {
    color: rgb(20, 184, 166);
    text-decoration: underline;
    font-weight: 500;
    display: inline-block;
    margin: 0.1em 0;
    max-width: 30ch; /* Limit to 40 characters */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    
    @media (prefers-color-scheme: dark) {
      color: rgb(168 85 247);
    }
    
    &:hover {
      opacity: 0.8;
      color: rgb(13, 148, 136);
    }
  }
  
  /* Print/PDF styles for links - show full URL */
  @media print {
    a {
      max-width: none;
      white-space: normal;
      word-wrap: break-word;
      overflow: visible;
    }
  }

  /* Code blocks */
  pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
    
    @media (prefers-color-scheme: dark) {
      background-color: #1e1e1e;
    }
  }

  code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    padding: 0 0.4em;
    background-color: #f5f5f5;
    border-radius: 3px;
    color: #333;
    
    @media (prefers-color-scheme: dark) {
      background-color: #1e1e1e;
      color: #f1f1f1;
    }
  }

  /* Blockquotes */
  blockquote {
    border-left: 4px solid rgb(20, 184, 166);
    margin: 0;
    padding-left: 1em;
    font-style: italic;
    background-color: rgba(20, 184, 166, 0.1);
    border-radius: 0 4px 4px 0;
  }

  /* Tables - Theme-matching styling */
  table {
    margin: 1em 1em 1em 0;
    border-radius: 4px;
    border: 1px solid #4B5563;
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.1);
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    white-space: nowrap; /* Prevent text wrapping in cells */
  }
  
  /* Print/PDF styles for tables - Fixed approach */
  @media print {
    /* Reset table to standard display */
    table {
      display: table !important;
      width: 70% !important;
      max-width: 70% !important; /* Force columns to fit */
      border-collapse: collapse !important;
      margin: 1em 0 !important;
      page-break-inside: auto;
      overflow: hidden !important;
      white-space: normal !important;
      padding-right: 1rem;
    }
    
    /* Table cells with constrained width */
    th, td {
      border: 0.5pt solid #666 !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      word-break: break-all !important; /* Force break long words */
      overflow-wrap: anywhere !important;
      overflow: hidden !important;
      vertical-align: top !important;
      font-size: 7pt !important;
      line-height: 1.1 !important;
      max-width: 0 !important; /* This forces table-layout: fixed to work */
    }
    
    /* Headers */
    th {
      font-weight: 600 !important;
      background-color: #f0f0f0 !important;
      font-size: 7pt !important;
    }
  }

  th, td {
    border: 1px solid #4B5563; /* Lighter border color for better contrast */
    padding: 0.75em;
    text-align: left;
    white-space: normal; /* Allow text wrapping within cells */
    
    @media (prefers-color-scheme: dark) {
      border-color: #444;
    }
  }

  /* Horizontal rule */
  hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 1.5em 0;
  }

  /* Images */
  img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
  }

  /* Definition Lists */
  dl {
    margin: 1em 0;
  }

  dt {
    font-weight: bold;
    margin-top: 0.5em;
  }

  dd {
    margin-left: 2em;
    margin-bottom: 0.5em;
  }
}

/* Terminal markdown style */
.markdown-terminal {
  /* Base styles */
  color: #00FF00;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.5;

  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    color: #00FF00;
    line-height: 1.2;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
  }

  h1 { font-size: 1.5em; }
  h2 { font-size: 1.3em; }
  h3 { font-size: 1.2em; }
  h4 { font-size: 1.1em; }
  h5 { font-size: 1em; }
  h6 { font-size: 0.9em; }

  /* Paragraphs and spacing */
  p {
    margin: 0.75em 0;
    line-height: 1.5;
  }

  /* Text formatting */
  strong, b {
    color: #FFFFFF;
    font-weight: bold;
  }

  em, i {
    color: #AAFFAA;
  }

  /* Lists */
  ul, ol {
    margin: 0.75em 0;
    padding-left: 2em;
  }

  li {
    margin: 0.25em 0;
  }

  ul li {
    list-style-type: '> ';
  }

  ol li {
    list-style-type: decimal;
  }

  /* Links */
  a {
    color: #00FFFF;
    text-decoration: underline;
    overflow-wrap: break-word;
    
    
    &:hover {
      color: #AAFFFF;
    }
  }

  /* Code blocks */
  pre {
    background-color: #001100;
    border: 1px solid #00AA00;
    padding: 0.5em;
    margin: 0.75em 0;
    overflow-x: auto;
  }

  code {
    color: #FFFF00;
    background-color: #001100;
    padding: 0.1em 0.3em;
  }

  /* Blockquotes */
  blockquote {
    border-left: 2px solid #00AA00;
    margin: 0.75em 0;
    padding-left: 1em;
    color: #AAFFAA;
  }

  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.75em 0;
    border: 1px solid #00AA00;
  }

  th, td {
    border: 1px solid #00AA00;
    padding: 0.4em;
    text-align: left;
  }

  th {
    background-color: #001100;
    color: #FFFFFF;
  }

  /* Horizontal rule */
  hr {
    border: 0;
    border-top: 1px dashed #00AA00;
    margin: 1em 0;
  }
  
  /* Images */
  img {
    max-width: 100%;
    border: 1px solid #00AA00;
    padding: 2px;
    background-color: #000000;
  }
} 
