/* Increase line spacing for unordered list items */
ul li {
  line-height: 1.5; /* Adjust this value as needed. Default is usually around 1.2 to 1.5 */
  /* Alternatively, or in addition, you can add margin to the bottom of each list item: */
  margin-bottom: 0.5em; /* Adjust this value for space between items */
}
h1, h2, h3, h4, h5, h6 {
  line-height: 1.4; /* Adjust for multi-line headings */
  margin-bottom: 0.2em; /* Example: Adjust space after headings */
  color: #d9a35d;
}

h1 {
  color: #D8D8E0;
}

p {
  line-height: 1.4; /* Adjust for multi-line paragraphs */
  /* margin-bottom: 0.5em; Space below paragraphs */
}

p#tagline {
  font-size: 1.3rem; /* Adjust the size of the tagline */
  color: #d9a35d;
}

/* Custom Styling for Article Blocks */
article {
  border-color: var(--mantle_color, #9E6B3F); 
}

h1#title {
  font-size: 2rem; /* Adjust the size of the title */
}

/* --- Visually Differentiating Headings H2-H5 (Subtle Monochrome Approach) --- */

/* H2 Headings */
h2 {
  /* font-size: 2em; */     /* Example: Adjust to your theme and preference */
  /* color: #FFFFFF;          /* Your hltext_color_dark (White) for maximum (but still monochrome) prominence */
  /* Optional H2 color: If you want ONLY H2 to have your primary accent color: */
  color: #e8c390;    /* Your primary_color_dark */
  font-weight: 600;         /* Semi-bold or 'bold' */
  padding-bottom: 0.3em;    /* Space between text and the border */
  margin-top: 1.5em;        /* Example: Space above H2 */
  margin-bottom: 0.6em;     /* Space below H2 before content */
  border-bottom: 2px solid #2A2D3A; /* Your mantle_color_dark for a subtle separator */
}

/* H3 Headings */
h3 {
  /* font-size: 1.6em; */    /* Example: Adjust as needed */
  color: #d9a35d;          /* A very light grey, softer than pure white but brighter than text_color_dark */
  font-weight: 600;         /* Semi-bold or 'bold' */
  padding-bottom: 0.25em;
  margin-top: 1.2em;        /* Example: Space above H3 */
  margin-bottom: 0.5em;     /* Space below H3 */
  border-bottom: 1px solid #2A2D3A; /* Your mantle_color_dark */
}

/* H4 Headings - Using your existing font-size and weight */
h4 {
  font-size: 1.1em;         /* Your existing setting */
  font-weight: bold;        /* Your existing setting */
  color: #e6c38c;          /* Your text_color_dark (warm-grey) */
  padding-bottom: 0.2em;
  margin-top: 1em;          /* Example: Space above H4 */
  margin-bottom: 0.5em;     /* Your existing setting */
  border-bottom: 1px dashed #2A2D3A; /* Your mantle_color_dark, dashed for visual difference */
}

/* H5 Headings */
h5 {
  /* font-size: 1em; */     /* Example: Often close to body text size */
  color: #f2e0c2;          /* Your text_color_dark (warm-grey) */
  font-weight: bold;      /* Normal weight to be less prominent than H4 */
  /* For a bit more distinction from body text of the same color & weight, consider: */
  /* font-style: italic; */
  /* Or, if normal weight isn't distinct enough from body text: */
  /* font-weight: 500; */  /* A slightly bolder than normal, but less than H4's bold */
  margin-top: 0.8em;        /* Example: Space above H5 */
  margin-bottom: 0.4em;     /* Space below H5 */
  /* Optional: No border for H5 for a cleaner look at this level */
  /* border-bottom: 1px dotted #2A2D3A; */ /* Your mantle_color_dark */
}

/* --- New styles for PDF page breaks --- */
@media print {
  /* Ensure H2 elements (your ## section headings) start on a new page */
  h2 {
    page-break-before: avoid;
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  /* Attempt to prevent a page break before the very first H2 on the page.
     This assumes your "## Professional Summary" is the first H2 after the main H1 title.
     If your "landing" theme wraps content differently, this might need adjustment.
  */
  h2 + h3 {
    page-break-before: avoid; /* Avoid breaking the page before the first H2 */
    padding-top: 0; /* No extra padding if it's not starting a new page */
  }

  /* Remove left border from the main content area when printing */
  #content {
    border-left: none !important; /* Override the theme's border-left */
    padding-left: 0 !important; /* Optional: Adjust padding if the border removal affects layout */
                                /* Or set to a specific value like '1.5rem' if needed */
  }
  
  /* Ensure avatar image is visible and reasonably sized for print */
  img#avatar {
    display: block !important; /* Ensure it's displayed */
    max-width: 150px !important; /* Adjust size as needed for print */
    max-height: 150px !important; /* Adjust size as needed for print */
    margin: 0 auto 1em auto !important; /* Center it and add some bottom margin */
    border-radius: 50%; /* If it's a round avatar, ensure this is maintained if not by theme */
    page-break-inside: avoid !important; /* Try to prevent it from being split across pages */
  }


  
  /* Optional: Ensure articles don't break across pages if possible,
     though this can sometimes lead to large empty spaces. Use with caution. */
  
  article {
    page-break-inside: avoid;
  }
 
  #current-position {
    page-break-before: avoid; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }



  #platform-owner-product-owner {
    page-break-before: always; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #senior-system-architect {
    page-break-before: always; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #senior-system-engineer {
    page-break-before: always; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #freelance-it-consultant {
    page-break-before: always; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #system-engineer {
    page-break-before: avoid; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #system-administrator {
    page-break-before: always; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #education {
    page-break-before: always; /* Ensure the Professional Experience section starts on a new page */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #skills {
    page-break-before: always; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #leadership-strategy {
    page-break-before: avoid; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #methodologies-frameworks {
    page-break-before: avoid; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #core-technical-competencies {
    page-break-before: always; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #key-technologies-tools {
    page-break-before: always; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  #languages {
    page-break-before: avoid; /* Ensure the Professional Experience section starts on a new page */
    page-break-after: avoid; /* Avoid breaking the page after this section */
    padding-top: 1.5em; /* Add some space at the top of the new page */
    margin-top: 0; /* Reset top margin if padding-top is used */
  }

  /* Optional: Hide elements you don't want in the PDF, like site navigation or footers.
     You'll need to use your browser's developer tools to find the correct selectors
     for your theme's navigation/header/footer elements.
     Example (these are generic selectors, update them for your theme):
  */
  #return-top {
    display: none !important; /* Hide the "Return to Top" button */
  }
  #footer {
    display: none !important; /* Hide the footer */
  }
  /*
  .md-header,       // Common selector for Material for MkDocs header
  .md-sidebar,      // Common selector for Material for MkDocs sidebar
  .md-footer,       // Common selector for Material for MkDocs footer
  nav.language-switcher { // If you had a language switcher
    display: none !important;
  }
  */

  /* Ensure the main content area uses the full page width if sidebars are hidden */
  
  .md-main__inner {
    margin: 0 !important;
  }
  article {
    margin-left: 0 !important; // If your theme had a margin-left on articles
  }
 
}